diff --git a/providers/edge3/src/airflow/providers/edge3/openapi/v2-edge-generated.yaml b/providers/edge3/src/airflow/providers/edge3/openapi/v2-edge-generated.yaml index 6eabd5901f9fc..4619fc222354e 100644 --- a/providers/edge3/src/airflow/providers/edge3/openapi/v2-edge-generated.yaml +++ b/providers/edge3/src/airflow/providers/edge3/openapi/v2-edge-generated.yaml @@ -586,6 +586,73 @@ paths: security: - OAuth2PasswordBearer: [] - HTTPBearer: [] + /edge_worker/ui/worker/{worker_name}/maintenance: + post: + tags: + - UI + summary: Request Worker Maintenance + description: Put a worker into maintenance mode. + operationId: request_worker_maintenance + security: + - OAuth2PasswordBearer: [] + - HTTPBearer: [] + parameters: + - name: worker_name + in: path + required: true + schema: + type: string + title: Worker Name + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/MaintenanceRequest' + responses: + '200': + description: Successful Response + content: + application/json: + schema: + type: 'null' + title: Response Request Worker Maintenance + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + delete: + tags: + - UI + summary: Exit Worker Maintenance + description: Exit a worker from maintenance mode. + operationId: exit_worker_maintenance + security: + - OAuth2PasswordBearer: [] + - HTTPBearer: [] + parameters: + - name: worker_name + in: path + required: true + schema: + type: string + title: Worker Name + responses: + '200': + description: Successful Response + content: + application/json: + schema: + type: 'null' + title: Response Exit Worker Maintenance + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' components: schemas: BundleInfo: @@ -794,6 +861,17 @@ components: - total_entries title: JobCollectionResponse description: Job Collection serializer. + MaintenanceRequest: + properties: + maintenance_comment: + type: string + title: Maintenance Comment + description: Comment describing the maintenance reason. + type: object + required: + - maintenance_comment + title: MaintenanceRequest + description: Request body for maintenance operations. PushLogsBody: properties: log_chunk_time: diff --git a/providers/edge3/src/airflow/providers/edge3/plugins/www/dist/main.umd.cjs b/providers/edge3/src/airflow/providers/edge3/plugins/www/dist/main.umd.cjs index 8a897c96b3548..871159e89c8c2 100644 --- a/providers/edge3/src/airflow/providers/edge3/plugins/www/dist/main.umd.cjs +++ b/providers/edge3/src/airflow/providers/edge3/plugins/www/dist/main.umd.cjs @@ -1,4 +1,4 @@ -(function(A,Y){typeof exports=="object"&&typeof module<"u"?module.exports=Y(require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react","react-dom"],Y):(A=typeof globalThis<"u"?globalThis:A||self,A.AirflowPlugin=Y(A.React))})(this,function(A){"use strict";var dT=Object.defineProperty;var Vm=A=>{throw TypeError(A)};var hT=(A,Y,w)=>Y in A?dT(A,Y,{enumerable:!0,configurable:!0,writable:!0,value:w}):A[Y]=w;var qe=(A,Y,w)=>hT(A,typeof Y!="symbol"?Y+"":Y,w),bl=(A,Y,w)=>Y.has(A)||Vm("Cannot "+w);var x=(A,Y,w)=>(bl(A,Y,"read from private field"),w?w.call(A):Y.get(A)),j=(A,Y,w)=>Y.has(A)?Vm("Cannot add the same private member more than once"):Y instanceof WeakSet?Y.add(A):Y.set(A,w),L=(A,Y,w,Bn)=>(bl(A,Y,"write to private field"),Bn?Bn.call(A,w):Y.set(A,w),w),G=(A,Y,w)=>(bl(A,Y,"access private method"),w);var rs=(A,Y,w,Bn)=>({set _(Si){L(A,Y,Si,w)},get _(){return x(A,Y,Bn)}});var Fg,zg,Dg,Mg,Bg,$g,jg,Wg,Hg,Ug,Gg,qg,Kg,Xg,Yg,Qg,Jg,Zg,ep,tp,np,rp,ip,op,sp,ap,lp,cp,up,dp,hp,fp,gp,pp,mp,vp,bp,yp,xp,Sp,Cp,wp,kp,Ep,Op,Ip,Rp,Pp,Tp,Np,_p,Ap,Vp,Lp,Fp,zp,Dp,Mp,Bp,$p,jp,Wp,Hp,_n,nn,gr,Up,pr,rn,mr,Gp,An,qp,vr,br,at,Vn,ke,pi,Ln,pt,Bt,Kp,Rt,Xp,Pt,Fe,Fn,Tt,dn,Yp,zt,mt,mi,Qp,de,on,sn,yr,xr,an,Sr,Cr,Jp,Ge,H,vi,ze,zn,wr,Dt,ln,bi,kr,Er,Dn,Mn,cn,Or,ee,xi,yl,xl,Sl,Cl,wl,kl,El,zm,Zp,em,tm,nm,rm,im,om,sm,am,lm,cm,um,dm,hm,fm,gm,pm,mm,vm,bm,ym,xm,Sm,Cm,wm,km,Em,Om,Im,Rm,Pm;function Y(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 w=Y(A);function Bn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Si={exports:{}},Ci={};/** +(function(T,Y){typeof exports=="object"&&typeof module<"u"?module.exports=Y(require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react","react-dom"],Y):(T=typeof globalThis<"u"?globalThis:T||self,T.AirflowPlugin=Y(T.React))})(this,function(T){"use strict";var ZT=Object.defineProperty;var uv=T=>{throw TypeError(T)};var eN=(T,Y,w)=>Y in T?ZT(T,Y,{enumerable:!0,configurable:!0,writable:!0,value:w}):T[Y]=w;var Ke=(T,Y,w)=>eN(T,typeof Y!="symbol"?Y+"":Y,w),Vl=(T,Y,w)=>Y.has(T)||uv("Cannot "+w);var v=(T,Y,w)=>(Vl(T,Y,"read from private field"),w?w.call(T):Y.get(T)),D=(T,Y,w)=>Y.has(T)?uv("Cannot add the same private member more than once"):Y instanceof WeakSet?Y.add(T):Y.set(T,w),F=(T,Y,w,Xn)=>(Vl(T,Y,"write to private field"),Xn?Xn.call(T,w):Y.set(T,w),w),H=(T,Y,w)=>(Vl(T,Y,"access private method"),w);var ms=(T,Y,w,Xn)=>({set _(Ti){F(T,Y,Ti,w)},get _(){return v(T,Y,Xn)}});var up,dp,hp,fp,gp,pp,mp,vp,bp,yp,xp,Cp,Sp,wp,kp,Ep,Op,Ip,Rp,Pp,Tp,Np,_p,Ap,Vp,Fp,Lp,zp,Dp,Mp,$p,Bp,jp,Wp,Hp,Up,Gp,qp,Kp,Xp,Yp,Qp,Jp,Zp,em,tm,nm,rm,im,om,sm,am,lm,cm,um,dm,hm,fm,gm,pm,mm,vm,bm,sn,Nl,ym,$n,an,kr,xm,Er,ln,Or,Cm,Bn,Sm,jn,Ir,lt,Wn,Oe,ki,Hn,mt,Ht,wm,Ge,U,Ei,ze,Un,Rr,Mt,cn,Oi,Pr,Tr,Gn,qn,un,Nr,ee,Pi,Fl,Ll,zl,Dl,Ml,$l,Bl,fv,km,Tt,De,Kn,Nt,vn,Em,$t,vt,Ii,Om,dn,hn,qe,Bt,jt,xs,jl,Im,_t,Rm,he,fn,gn,_r,Ar,pn,Vr,Fr,Pm,Tm,Nm,_m,Am,Vm,Fm,Lm,zm,Dm,Mm,$m,Bm,jm,Wm,Hm,Um,Gm,qm,Km,Xm,Ym,Qm,Jm,Zm,ev,tv,nv,rv,iv,ov;function Y(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 w=Y(T);function Xn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ti={exports:{}},Ni={};/** * @license React * react-jsx-runtime.production.min.js * @@ -6,27 +6,27 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Mm=A,Bm=Symbol.for("react.element"),$m=Symbol.for("react.fragment"),jm=Object.prototype.hasOwnProperty,Wm=Mm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Hm={key:!0,ref:!0,__self:!0,__source:!0};function Ol(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)jm.call(t,r)&&!Hm.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Bm,type:e,key:o,ref:s,props:i,_owner:Wm.current}}Ci.Fragment=$m,Ci.jsx=Ol,Ci.jsxs=Ol,Si.exports=Ci;var C=Si.exports;function Il(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Um=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Gm=Il(function(e){return Um.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function qm(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ee(jn,--De):0,$n--,fe===10&&($n=1,Oi--),fe}function Ke(){return fe=De2||_r(fe)>3?"":" "}function sv(e,t){for(;--t&&Ke()&&!(fe<48||fe>102||fe>57&&fe<65||fe>70&&fe<97););return Nr(e,Ri()+(t<6&&bt()==32&&Ke()==32))}function ds(e){for(;Ke();)switch(fe){case e:return De;case 34:case 39:e!==34&&e!==39&&ds(fe);break;case 40:e===41&&ds(e);break;case 92:Ke();break}return De}function av(e,t){for(;Ke()&&e+fe!==57;)if(e+fe===84&&bt()===47)break;return"/*"+Nr(t,De-1)+"*"+ki(e===47?e:Ke())}function lv(e){for(;!_r(bt());)Ke();return Nr(e,De)}function cv(e){return Al(Ti("",null,null,null,[""],e=_l(e),0,[0],e))}function Ti(e,t,n,r,i,o,s,a,l){for(var u=0,c=0,d=s,h=0,m=0,f=0,g=1,p=1,v=1,b=0,S="",y=i,E=o,P=r,N=S;p;)switch(f=b,b=Ke()){case 40:if(f!=108&&Ee(N,d-1)==58){cs(N+=J(Pi(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:N+=Pi(b);break;case 9:case 10:case 13:case 32:N+=ov(f);break;case 92:N+=sv(Ri()-1,7);continue;case 47:switch(bt()){case 42:case 47:Ei(uv(av(Ke(),Ri()),t,n),l);break;default:N+="/"}break;case 123*g:a[u++]=vt(N)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:p=0;case 59+c:v==-1&&(N=J(N,/\f/g,"")),m>0&&vt(N)-d&&Ei(m>32?Ll(N+";",r,n,d-1):Ll(J(N," ","")+";",r,n,d-2),l);break;case 59:N+=";";default:if(Ei(P=Vl(N,t,n,u,c,i,a,S,y=[],E=[],d),o),b===123)if(c===0)Ti(N,t,P,P,y,o,d,a,E);else switch(h===99&&Ee(N,3)===110?100:h){case 100:case 108:case 109:case 115:Ti(e,P,P,r&&Ei(Vl(e,P,P,0,0,i,a,S,i,y=[],d),E),i,E,d,a,r?y:E);break;default:Ti(N,P,P,P,[""],E,0,a,E)}}u=c=m=0,g=v=1,S=N="",d=s;break;case 58:d=1+vt(N),m=f;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&iv()==125)continue}switch(N+=ki(b),b*g){case 38:v=c>0?1:(N+="\f",-1);break;case 44:a[u++]=(vt(N)-1)*v,v=1;break;case 64:bt()===45&&(N+=Pi(Ke())),h=bt(),c=d=vt(S=N+=lv(Ri())),b++;break;case 45:f===45&&vt(N)==2&&(g=0)}}return o}function Vl(e,t,n,r,i,o,s,a,l,u,c){for(var d=i-1,h=i===0?o:[""],m=us(h),f=0,g=0,p=0;f0?h[v]+" "+b:J(b,/&\f/g,h[v])))&&(l[p++]=S);return Ii(e,t,n,i===0?as:a,l,u,c)}function uv(e,t,n){return Ii(e,t,n,Rl,ki(rv()),Pr(e,2,-2),0)}function Ll(e,t,n,r){return Ii(e,t,n,ls,Pr(e,0,r),Pr(e,r+1,-1),r)}function Wn(e,t){for(var n="",r=us(e),i=0;i6)switch(Ee(e,t+1)){case 109:if(Ee(e,t+4)!==45)break;case 102:return J(e,/(.+:)(.+)-([^]+)/,"$1"+Q+"$2-$3$1"+wi+(Ee(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~cs(e,"stretch")?zl(J(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ee(e,t+1)!==115)break;case 6444:switch(Ee(e,vt(e)-3-(~cs(e,"!important")&&10))){case 107:return J(e,":",":"+Q)+e;case 101:return J(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Q+(Ee(e,14)===45?"inline-":"")+"box$3$1"+Q+"$2$3$1"+Ae+"$2box$3")+e}break;case 5936:switch(Ee(e,t+11)){case 114:return Q+e+Ae+J(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Q+e+Ae+J(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Q+e+Ae+J(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Q+e+Ae+e+e}return e}var yv=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case ls:t.return=zl(t.value,t.length);break;case Pl:return Wn([Tr(t,{value:J(t.value,"@","@"+Q)})],i);case as:if(t.length)return nv(t.props,function(o){switch(tv(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Wn([Tr(t,{props:[J(o,/:(read-\w+)/,":"+wi+"$1")]})],i);case"::placeholder":return Wn([Tr(t,{props:[J(o,/:(plac\w+)/,":"+Q+"input-$1")]}),Tr(t,{props:[J(o,/:(plac\w+)/,":"+wi+"$1")]}),Tr(t,{props:[J(o,/:(plac\w+)/,Ae+"input-$1")]})],i)}return""})}},xv=[yv],Sv=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(g){var p=g.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=t.stylisPlugins||xv,o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var p=g.getAttribute("data-emotion").split(" "),v=1;v0?Ie(Qn,--Me):0,Yn--,ge===10&&(Yn=1,Fi--),ge}function Xe(){return ge=Me2||Br(ge)>3?"":" "}function Lv(e,t){for(;--t&&Xe()&&!(ge<48||ge>102||ge>57&&ge<65||ge>70&&ge<97););return $r(e,zi()+(t<6&&yt()==32&&Xe()==32))}function Es(e){for(;Xe();)switch(ge){case e:return Me;case 34:case 39:e!==34&&e!==39&&Es(ge);break;case 40:e===41&&Es(e);break;case 92:Xe();break}return Me}function zv(e,t){for(;Xe()&&e+ge!==57;)if(e+ge===84&&yt()===47)break;return"/*"+$r(t,Me-1)+"*"+Ai(e===47?e:Xe())}function Dv(e){for(;!Br(yt());)Xe();return $r(e,Me)}function Mv(e){return Yl(Mi("",null,null,null,[""],e=Xl(e),0,[0],e))}function Mi(e,t,n,r,i,o,s,a,l){for(var c=0,u=0,d=s,h=0,m=0,f=0,g=1,p=1,b=1,y=0,C="",x=i,E=o,P=r,_=C;p;)switch(f=y,y=Xe()){case 40:if(f!=108&&Ie(_,d-1)==58){ws(_+=J(Di(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:_+=Di(y);break;case 9:case 10:case 13:case 32:_+=Fv(f);break;case 92:_+=Lv(zi()-1,7);continue;case 47:switch(yt()){case 42:case 47:Vi($v(zv(Xe(),zi()),t,n),l);break;default:_+="/"}break;case 123*g:a[c++]=bt(_)*b;case 125*g:case 59:case 0:switch(y){case 0:case 125:p=0;case 59+u:b==-1&&(_=J(_,/\f/g,"")),m>0&&bt(_)-d&&Vi(m>32?Jl(_+";",r,n,d-1):Jl(J(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(Vi(P=Ql(_,t,n,c,u,i,a,C,x=[],E=[],d),o),y===123)if(u===0)Mi(_,t,P,P,x,o,d,a,E);else switch(h===99&&Ie(_,3)===110?100:h){case 100:case 108:case 109:case 115:Mi(e,P,P,r&&Vi(Ql(e,P,P,0,0,i,a,C,i,x=[],d),E),i,E,d,a,r?x:E);break;default:Mi(_,P,P,P,[""],E,0,a,E)}}c=u=m=0,g=b=1,C=_="",d=s;break;case 58:d=1+bt(_),m=f;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&Vv()==125)continue}switch(_+=Ai(y),y*g){case 38:b=u>0?1:(_+="\f",-1);break;case 44:a[c++]=(bt(_)-1)*b,b=1;break;case 64:yt()===45&&(_+=Di(Xe())),h=yt(),u=d=bt(C=_+=Dv(zi())),y++;break;case 45:f===45&&bt(_)==2&&(g=0)}}return o}function Ql(e,t,n,r,i,o,s,a,l,c,u){for(var d=i-1,h=i===0?o:[""],m=ks(h),f=0,g=0,p=0;f0?h[b]+" "+y:J(y,/&\f/g,h[b])))&&(l[p++]=C);return Li(e,t,n,i===0?Cs:a,l,c,u)}function $v(e,t,n){return Li(e,t,n,Ul,Ai(Av()),Dr(e,2,-2),0)}function Jl(e,t,n,r){return Li(e,t,n,Ss,Dr(e,0,r),Dr(e,r+1,-1),r)}function Jn(e,t){for(var n="",r=ks(e),i=0;i6)switch(Ie(e,t+1)){case 109:if(Ie(e,t+4)!==45)break;case 102:return J(e,/(.+:)(.+)-([^]+)/,"$1"+Q+"$2-$3$1"+_i+(Ie(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ws(e,"stretch")?ec(J(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ie(e,t+1)!==115)break;case 6444:switch(Ie(e,bt(e)-3-(~ws(e,"!important")&&10))){case 107:return J(e,":",":"+Q)+e;case 101:return J(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Q+(Ie(e,14)===45?"inline-":"")+"box$3$1"+Q+"$2$3$1"+Ae+"$2box$3")+e}break;case 5936:switch(Ie(e,t+11)){case 114:return Q+e+Ae+J(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Q+e+Ae+J(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Q+e+Ae+J(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Q+e+Ae+e+e}return e}var Xv=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Ss:t.return=ec(t.value,t.length);break;case Gl:return Jn([Mr(t,{value:J(t.value,"@","@"+Q)})],i);case Cs:if(t.length)return _v(t.props,function(o){switch(Nv(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Jn([Mr(t,{props:[J(o,/:(read-\w+)/,":"+_i+"$1")]})],i);case"::placeholder":return Jn([Mr(t,{props:[J(o,/:(plac\w+)/,":"+Q+"input-$1")]}),Mr(t,{props:[J(o,/:(plac\w+)/,":"+_i+"$1")]}),Mr(t,{props:[J(o,/:(plac\w+)/,Ae+"input-$1")]})],i)}return""})}},Yv=[Xv],Qv=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(g){var p=g.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=t.stylisPlugins||Yv,o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var p=g.getAttribute("data-emotion").split(" "),b=1;b=4;++r,i-=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(i){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 _v={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},Av=/[A-Z]|^ms/g,Vv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Wl=function(t){return t.charCodeAt(1)===45},Hl=function(t){return t!=null&&typeof t!="boolean"},vs=Il(function(e){return Wl(e)?e:e.replace(Av,"-$&").toLowerCase()}),Ul=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Vv,function(r,i,o){return yt={name:i,styles:o,next:yt},i})}return _v[t]!==1&&!Wl(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ar(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 i=n;if(i.anim===1)return yt={name:i.name,styles:i.styles,next:yt},i.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)yt={name:s.name,styles:s.styles,next:yt},s=s.next;var a=o.styles+";";return a}return Lv(e,t,n)}case"function":{if(e!==void 0){var l=yt,u=n(e);return yt=l,Ar(e,t,u)}break}}var c=n;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function Lv(e,t,n){var r="";if(Array.isArray(n))for(var i=0;ir==null?void 0:r(...n))}}const jv=(...e)=>e.map(t=>{var n;return(n=t==null?void 0:t.trim)==null?void 0:n.call(t)}).filter(Boolean).join(" "),Wv=/^on[A-Z]/;function Vr(...e){let t={};for(let n of e){for(let r in t){if(Wv.test(r)&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=$v(t[r],n[r]);continue}if(r==="className"||r==="class"){t[r]=jv(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}function Hv(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function Uv(...e){return t=>{e.forEach(n=>{Hv(n,t)})}}function Lr(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}const et=(...e)=>e.filter(Boolean).map(t=>t.trim()).join(" ");function Gv(e){return e.default||e}const Me=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),xt=e=>typeof e=="string",ws=e=>typeof e=="function";function qv(e){var n;const t=w.version;return!xt(t)||t.startsWith("18.")?e==null?void 0:e.ref:(n=e==null?void 0:e.props)==null?void 0:n.ref}const Zl=(...e)=>{const t=e.reduce((n,r)=>(r!=null&&r.forEach(i=>n.add(i)),n),new Set([]));return Array.from(t)};function Kv(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Hn(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:o,defaultValue:s}=e,a=A.createContext(s);a.displayName=t;function l(){var c;const u=A.useContext(a);if(!u&&n){const d=new Error(o??Kv(r,i));throw d.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,d,l),d}return u}return[a.Provider,l,a]}const[Xv,$i]=Hn({name:"ChakraContext",strict:!0,providerName:""});function Yv(e){const{value:t,children:n}=e;return C.jsxs(Xv,{value:t,children:[!t._config.disableLayers&&C.jsx(Jl,{styles:t.layers.atRule}),C.jsx(Jl,{styles:t._global}),n]})}const Qv=(e,t)=>{const n={},r={},i=Object.keys(e);for(const o of i)t(o)?r[o]=e[o]:n[o]=e[o];return[r,n]},Un=(e,t)=>{const n=ws(t)?t:r=>t.includes(r);return Qv(e,n)},Jv=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function Zv(e){return typeof e=="string"&&Jv.has(e)}function eb(e,t,n){const{css:r,isValidProperty:i}=$i(),{children:o,...s}=e,a=A.useMemo(()=>{const[h,m]=Un(s,b=>n(b,t.variantKeys)),[f,g]=Un(m,t.variantKeys),[p,v]=Un(g,i);return{forwardedProps:h,variantProps:f,styleProps:p,elementProps:v}},[t.variantKeys,n,s,i]),{css:l,...u}=a.styleProps,c=A.useMemo(()=>{const h={...a.variantProps};return t.variantKeys.includes("colorPalette")||(h.colorPalette=s.colorPalette),t.variantKeys.includes("orientation")||(h.orientation=s.orientation),t(h)},[t,a.variantProps,s.colorPalette,s.orientation]);return{styles:A.useMemo(()=>r(c,...tb(l),u),[r,c,l,u]),props:{...a.forwardedProps,...a.elementProps,children:o}}}const tb=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),nb=Gv(Gm),rb=e=>e!=="theme",ib=(e,t,n)=>{let r;if(t){const i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?o=>e.__emotion_forwardProp(o)&&i(o):i}return typeof r!="function"&&n&&(r=e.__emotion_forwardProp),r};let ob=typeof document<"u";const ec=({cache:e,serialized:t,isStringTag:n})=>{ps(e,t,n);const r=Kl(()=>ms(e,t,n));if(!ob&&r!==void 0){let i=t.name,o=t.next;for(;o!==void 0;)i=et(i,o.name),o=o.next;return C.jsx("style",{"data-emotion":et(e.key,i),dangerouslySetInnerHTML:{__html:r},nonce:e.sheet.nonce})}return null},tc={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"]},sb=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ks=((e,t={},n={})=>{if(sb(tc,e)){n.forwardProps||(n.forwardProps=[]);const u=tc[e];n.forwardProps=Zl([...n.forwardProps,...u])}const r=e.__emotion_real===e,i=r&&e.__emotion_base||e;let o,s;n!==void 0&&(o=n.label,s=n.target);let a=[];const l=ys((u,c,d)=>{var Ne;const{cva:h,isValidProperty:m}=$i(),f=t.__cva__?t:h(t),g=ab(e.__emotion_cva,f),p=U=>(ie,he)=>U.includes(ie)?!0:!(he!=null&&he.includes(ie))&&!m(ie);!n.shouldForwardProp&&n.forwardProps&&(n.shouldForwardProp=p(n.forwardProps));const v=(U,ie)=>{const he=typeof e=="string"&&e.charCodeAt(0)>96?nb:rb,$=!(ie!=null&&ie.includes(U))&&!m(U);return he(U)&&$},b=ib(e,n,r)||v,S=w.useMemo(()=>Object.assign({},n.defaultProps,Lr(u)),[u]),{props:y,styles:E}=eb(S,g,b);let P="",N=[E],O=y;if(y.theme==null){O={};for(let U in y)O[U]=y[U];O.theme=w.useContext(xs)}typeof y.className=="string"?P=jl(c.registered,N,y.className):y.className!=null&&(P=et(P,y.className));const I=bs(a.concat(N),c.registered,O);I.styles&&(P=et(P,`${c.key}-${I.name}`)),s!==void 0&&(P=et(P,s));const R=!b("as");let z=R&&y.as||i,F={};for(let U in y)if(!(R&&U==="as")){if(Zv(U)){const ie=U.replace("html","").toLowerCase();F[ie]=y[U];continue}b(U)&&(F[U]=y[U])}let X=P.trim();X?F.className=X:Reflect.deleteProperty(F,"className"),F.ref=d;const Z=n.forwardAsChild||((Ne=n.forwardProps)==null?void 0:Ne.includes("asChild"));if(y.asChild&&!Z){const U=w.isValidElement(y.children)?w.Children.only(y.children):w.Children.toArray(y.children).find(w.isValidElement);if(!U)throw new Error("[chakra-ui > factory] No valid child found");z=U.type,F.children=null,Reflect.deleteProperty(F,"asChild"),F=Vr(F,U.props),F.ref=Uv(d,qv(U))}return F.as&&Z?(F.as=void 0,C.jsxs(w.Fragment,{children:[C.jsx(ec,{cache:c,serialized:I,isStringTag:typeof z=="string"}),C.jsx(z,{asChild:!0,...F,children:C.jsx(y.as,{children:F.children})})]})):C.jsxs(w.Fragment,{children:[C.jsx(ec,{cache:c,serialized:I,isStringTag:typeof z=="string"}),C.jsx(z,{...F})]})});return l.displayName=o!==void 0?o:`chakra(${typeof i=="string"?i:i.displayName||i.name||"Component"})`,l.__emotion_real=l,l.__emotion_base=i,l.__emotion_forwardProp=n.shouldForwardProp,l.__emotion_cva=t,Object.defineProperty(l,"toString",{value(){return`.${s}`}}),l}).bind(),Es=new Map,Ve=new Proxy(ks,{apply(e,t,n){return ks(...n)},get(e,t){return Es.has(t)||Es.set(t,ks(t)),Es.get(t)}}),ab=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),$t=Ve("div");$t.displayName="Box";const lb=Object.freeze({}),cb=Object.freeze({});function ub(e){const{key:t,recipe:n}=e,r=$i();return A.useMemo(()=>{const i=n||(t!=null?r.getRecipe(t):{});return r.cva(structuredClone(i))},[t,n,r])}const db=e=>e.charAt(0).toUpperCase()+e.slice(1);function ji(e){const{key:t,recipe:n}=e,r=db(t||n.className||"Component"),[i,o]=Hn({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`});function s(u){const{unstyled:c,...d}=u,h=ub({key:t,recipe:d.recipe||n}),[m,f]=A.useMemo(()=>h.splitVariantProps(d),[h,d]);return{styles:c?lb:h(m),className:h.className,props:f}}const a=(u,c)=>{const d=Ve(u,{},c),h=A.forwardRef((m,f)=>{const g=o(),p=A.useMemo(()=>Vr(g,m),[m,g]),{styles:v,className:b,props:S}=s(p);return C.jsx(d,{...S,ref:f,css:[v,p.css],className:et(b,p.className)})});return h.displayName=u.displayName||u.name,h};function l(){return i}return{withContext:a,PropsProvider:i,withPropsProvider:l,usePropsContext:o,useRecipeResult:s}}function Os(e){return e==null?[]:Array.isArray(e)?e:[e]}var Fr=e=>e[0],Is=e=>e[e.length-1],hb=(e,t)=>e.indexOf(t)!==-1,hn=(e,...t)=>e.concat(t),fn=(e,...t)=>e.filter(n=>!t.includes(n)),Gn=e=>Array.from(new Set(e)),Rs=(e,t)=>{const n=new Set(t);return e.filter(r=>!n.has(r))},qn=(e,t)=>hb(e,t)?fn(e,t):hn(e,t);function nc(e,t,n={}){const{step:r=1,loop:i=!0}=n,o=t+r,s=e.length,a=s-1;return t===-1?r>0?0:a:o<0?i?a:0:o>=s?i?0:t>s?s:t:o}function fb(e,t,n={}){return e[nc(e,t,n)]}function gb(e,t,n={}){const{step:r=1,loop:i=!0}=n;return nc(e,t,{step:-r,loop:i})}function pb(e,t,n={}){return e[gb(e,t,n)]}function rc(e,t){return e.reduce(([n,r],i)=>(t(i)?n.push(i):r.push(i),[n,r]),[[],[]])}var ic=e=>(e==null?void 0:e.constructor.name)==="Array",mb=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof(e==null?void 0:e.isEqual)=="function"&&typeof(t==null?void 0:t.isEqual)=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(ic(e)&&ic(t))return mb(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 i=0;iArray.isArray(e),vb=e=>e===!0||e===!1,oc=e=>e!=null&&typeof e=="object",gn=e=>oc(e)&&!zr(e),sc=e=>typeof e=="function",bb=e=>e==null,jt=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),yb=e=>Object.prototype.toString.call(e),ac=Function.prototype.toString,xb=ac.call(Object),Sb=e=>{if(!oc(e)||yb(e)!="[object Object]"||kb(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const n=jt(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&ac.call(n)==xb},Cb=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,wb=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,kb=e=>Cb(e)||wb(e),Eb=()=>{},Ps=(...e)=>(...t)=>{e.forEach(function(n){n==null||n(...t)})};function Nt(e,t,...n){var i;if(e in t){const o=t[e];return sc(o)?o(...n):o}const r=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw(i=Error.captureStackTrace)==null||i.call(Error,r,Nt),r}var lc=(e,t)=>{var n;try{return e()}catch(r){return r instanceof Error&&((n=Error.captureStackTrace)==null||n.call(Error,r,lc)),t==null?void 0:t()}},{floor:cc,abs:uc,round:Wi,min:Ob,max:Ib,pow:Rb,sign:Pb}=Math,Ts=e=>Number.isNaN(e),Wt=e=>Ts(e)?0:e,dc=(e,t)=>(e%t+t)%t,Tb=(e,t)=>(e%t+t)%t,Nb=(e,t)=>Wt(e)>=t,_b=(e,t)=>Wt(e)<=t,Ab=(e,t,n)=>{const r=Wt(e),i=t==null||r>=t,o=n==null||r<=n;return i&&o},Vb=(e,t,n)=>Wi((Wt(e)-t)/n)*n+t,Be=(e,t,n)=>Ob(Ib(Wt(e),t),n),Lb=(e,t,n)=>(Wt(e)-t)/(n-t),Fb=(e,t,n,r)=>Be(Vb(e*(n-t)+t,t,r),t,n),hc=(e,t)=>{let n=e,r=t.toString(),i=r.indexOf("."),o=i>=0?r.length-i:0;if(o>0){let s=Rb(10,o);n=Wi(n*s)/s}return n},Ns=(e,t)=>typeof t=="number"?cc(e*t+.5)/t:Wi(e),fc=(e,t,n,r)=>{const i=t!=null?Number(t):0,o=Number(n),s=(e-i)%r;let a=uc(s)*2>=r?e+Pb(s)*(r-uc(s)):e-s;if(a=hc(a,r),!Ts(i)&&ao){const l=cc((o-i)/r),u=i+l*r;a=l<=0||u{const r=Math.pow(n,t);return Wi(e*r)/r},gc=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},pc=(e,t,n)=>{let r=t==="+"?e+n:e-n;if(e%1!==0||n%1!==0){const i=10**Math.max(gc(e),gc(n));e=Math.round(e*i),n=Math.round(n*i),r=t==="+"?e+n:e-n,r/=i}return r},zb=(e,t)=>pc(Wt(e),"+",t),Db=(e,t)=>pc(Wt(e),"-",t);function mc(e){if(!Sb(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),n={};for(const r of t){const i=e[r];i!==void 0&&(n[r]=mc(i))}return n}function Mb(e,t=Object.is){let n={...e};const r=new Set,i=c=>(r.add(c),()=>r.delete(c)),o=()=>{r.forEach(c=>c())};return{subscribe:i,get:c=>n[c],set:(c,d)=>{t(n[c],d)||(n[c]=d,o())},update:c=>{let d=!1;for(const h in c){const m=c[h];m!==void 0&&!t(n[h],m)&&(n[h]=m,d=!0)}d&&o()},snapshot:()=>({...n})}}function vc(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function Bb(e,t){if(e==null)throw new Error(t())}function $b(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 bc=e=>Math.max(0,Math.min(1,e)),jb=(e,t)=>e.map((n,r)=>e[(Math.max(t,0)+r)%e.length]),Wb=()=>{},Hi=e=>typeof e=="object"&&e!==null,Hb=2147483647,Ub=1,Gb=9,qb=11,$e=e=>Hi(e)&&e.nodeType===Ub&&typeof e.nodeName=="string",yc=e=>Hi(e)&&e.nodeType===Gb,Kb=e=>Hi(e)&&e===e.window,xc=e=>$e(e)?e.localName||"":"#document";function Xb(e){return["html","body","#document"].includes(xc(e))}var Yb=e=>Hi(e)&&e.nodeType!==void 0,Dr=e=>Yb(e)&&e.nodeType===qb&&"host"in e,Qb=e=>$e(e)&&e.localName==="input",Jb=e=>$e(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1,Zb=/(textarea|select)/;function ey(e){if(e==null||!$e(e))return!1;try{return Qb(e)&&e.selectionStart!=null||Zb.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function pn(e,t){var r;if(!e||!t||!$e(e)||!$e(t))return!1;const n=(r=t.getRootNode)==null?void 0:r.call(t);if(e===t||e.contains(t))return!0;if(n&&Dr(n)){let i=t;for(;i;){if(e===i)return!0;i=i.parentNode||i.host}}return!1}function _t(e){return yc(e)?e:Kb(e)?e.document:(e==null?void 0:e.ownerDocument)??document}function ty(e){return _t(e).documentElement}function Oe(e){var t;return Dr(e)?Oe(e.host):yc(e)?e.defaultView??window:$e(e)?((t=e.ownerDocument)==null?void 0:t.defaultView)??window:window}function ny(e){if(xc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Dr(e)&&e.host||ty(e);return Dr(t)?t.host:t}var _s=new WeakMap;function ry(e){return _s.has(e)||_s.set(e,Oe(e).getComputedStyle(e)),_s.get(e)}var Ui=()=>typeof document<"u";function iy(){const e=navigator.userAgentData;return(e==null?void 0:e.platform)??navigator.platform}function oy(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}var As=e=>Ui()&&e.test(iy()),Sc=e=>Ui()&&e.test(oy()),sy=e=>Ui()&&e.test(navigator.vendor),Cc=()=>Ui()&&!!navigator.maxTouchPoints,ay=()=>As(/^iPhone/i),ly=()=>As(/^iPad/i)||Gi()&&navigator.maxTouchPoints>1,Vs=()=>ay()||ly(),cy=()=>Gi()||Vs(),Gi=()=>As(/^Mac/i),wc=()=>cy()&&sy(/apple/i),uy=()=>Sc(/Firefox/i),dy=()=>Sc(/Android/i);function hy(e){var t,n,r;return((t=e.composedPath)==null?void 0:t.call(e))??((r=(n=e.nativeEvent)==null?void 0:n.composedPath)==null?void 0:r.call(n))}function Ht(e){const t=hy(e);return(t==null?void 0:t[0])??e.target}function fy(e){return vy(e).isComposing||e.keyCode===229}function gy(e){return e.pointerType===""&&e.isTrusted?!0:dy()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var py=e=>e.button===2||Gi()&&e.ctrlKey&&e.button===0,my=e=>"touches"in e&&e.touches.length>0;function vy(e){return e.nativeEvent??e}function by(e,t="client"){const n=my(e)?e.touches[0]||e.changedTouches[0]:e;return{x:n[`${t}X`],y:n[`${t}Y`]}}var Ie=(e,t,n,r)=>{const i=typeof e=="function"?e():e;return i==null||i.addEventListener(t,n,r),()=>{i==null||i.removeEventListener(t,n,r)}};function yy(e,t){const{type:n="HTMLInputElement",property:r="value"}=t,i=Oe(e)[n].prototype;return Object.getOwnPropertyDescriptor(i,r)??{}}function xy(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function qi(e,t,n="value"){var i;if(!e)return;const r=xy(e);r&&((i=yy(e,{type:r,property:n}).set)==null||i.call(e,t)),e.setAttribute(n,t)}function Sy(e,t){const{value:n,bubbles:r=!0}=t;if(!e)return;const i=Oe(e);e instanceof i.HTMLInputElement&&(qi(e,`${n}`),e.dispatchEvent(new i.Event("input",{bubbles:r})))}function Cy(e){return wy(e)?e.form:e.closest("form")}function wy(e){return e.matches("textarea, input, select, button")}function ky(e,t){if(!e)return;const n=Cy(e),r=i=>{i.defaultPrevented||t()};return n==null||n.addEventListener("reset",r,{passive:!0}),()=>n==null?void 0:n.removeEventListener("reset",r)}function Ey(e,t){const n=e==null?void 0:e.closest("fieldset");if(!n)return;t(n.disabled);const r=Oe(n),i=new r.MutationObserver(()=>t(n.disabled));return i.observe(n,{attributes:!0,attributeFilter:["disabled"]}),()=>i.disconnect()}function Ls(e,t){if(!e)return;const{onFieldsetDisabledChange:n,onFormReset:r}=t,i=[ky(e,r),Ey(e,n)];return()=>i.forEach(o=>o==null?void 0:o())}var Oy=e=>$e(e)&&e.tagName==="IFRAME",Iy=e=>parseInt(e.getAttribute("tabindex")||"0",10)<0,kc="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";function Fs(e){return!e||e.closest("[inert]")?!1:e.matches(kc)&&Jb(e)}function Ec(e,t){if(!e)return[];const r=Array.from(e.querySelectorAll(kc)).filter(Ry);return r.forEach((i,o)=>{if(Oy(i)&&i.contentDocument){const s=i.contentDocument.body,a=Ec(s);r.splice(o,1,...a)}}),r.length,r}function Ry(e){return e!=null&&e.tabIndex>0?!0:Fs(e)&&!Iy(e)}function zs(e){const{root:t,getInitialEl:n,filter:r,enabled:i=!0}=e;if(!i)return;let o=null;if(o||(o=typeof n=="function"?n():n),o||(o=t==null?void 0:t.querySelector("[data-autofocus],[autofocus]")),!o){const s=Ec(t);o=r?s.filter(r)[0]:s[0]}return o||t||void 0}function Oc(e){const t=new Set;function n(r){const i=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(i))}return n(()=>n(e)),function(){t.forEach(i=>i())}}function K(e){let t;const n=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(n),t==null||t()}}function Py(e,t,n){const r=K(()=>{e.removeEventListener(t,i,!0),n()}),i=()=>{r(),n()};return e.addEventListener(t,i,{once:!0,capture:!0}),r}function Ty(e,t){if(!e)return;const{attributes:n,callback:r}=t,i=e.ownerDocument.defaultView||window,o=new i.MutationObserver(s=>{for(const a of s)a.type==="attributes"&&a.attributeName&&n.includes(a.attributeName)&&r(a)});return o.observe(e,{attributes:!0,attributeFilter:n}),()=>o.disconnect()}function Ki(e,t){const{defer:n}=t,r=n?K:o=>o(),i=[];return i.push(r(()=>{const o=typeof e=="function"?e():e;i.push(Ty(o,t))})),()=>{i.forEach(o=>o==null?void 0:o())}}function Ic(e){const t=()=>{const n=Oe(e);e.dispatchEvent(new n.MouseEvent("click"))};uy()?Py(e,"keyup",t):queueMicrotask(t)}function Xi(e){const t=ny(e);return Xb(t)?_t(t).body:$e(t)&&Ds(t)?t:Xi(t)}function Rc(e,t=[]){const n=Xi(e),r=n===e.ownerDocument.body,i=Oe(n);return r?t.concat(i,i.visualViewport||[],Ds(n)?n:[]):t.concat(n,Rc(n,[]))}var Ny=/auto|scroll|overlay|hidden|clip/,_y=new Set(["inline","contents"]);function Ds(e){const t=Oe(e),{overflow:n,overflowX:r,overflowY:i,display:o}=t.getComputedStyle(e);return Ny.test(n+i+r)&&!_y.has(o)}function Ay(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Yi(e,t){const{rootEl:n,...r}=t||{};!e||!n||!Ds(n)||!Ay(n)||e.scrollIntoView(r)}function Pc(e,t){const{left:n,top:r,width:i,height:o}=t.getBoundingClientRect(),s={x:e.x-n,y:e.y-r},a={x:bc(s.x/i),y:bc(s.y/o)};function l(u={}){const{dir:c="ltr",orientation:d="horizontal",inverted:h}=u,m=typeof h=="object"?h.x:h,f=typeof h=="object"?h.y:h;return d==="horizontal"?c==="rtl"||m?1-a.x:a.x:f?1-a.y:a.y}return{offset:s,percent:a,getPercentValue:l}}function Vy(e,t){const n=e.body,r="pointerLockElement"in e||"mozPointerLockElement"in e,i=()=>!!e.pointerLockElement;function o(){}function s(l){i(),console.error("PointerLock error occurred:",l),e.exitPointerLock()}if(!r)return;try{n.requestPointerLock()}catch{}const a=[Ie(e,"pointerlockchange",o,!1),Ie(e,"pointerlockerror",s,!1)];return()=>{a.forEach(l=>l()),e.exitPointerLock()}}var Kn="default",Ms="",Qi=new WeakMap;function Ly(e={}){const{target:t,doc:n}=e,r=n??document,i=r.documentElement;return Vs()?(Kn==="default"&&(Ms=i.style.webkitUserSelect,i.style.webkitUserSelect="none"),Kn="disabled"):t&&(Qi.set(t,t.style.userSelect),t.style.userSelect="none"),()=>Fy({target:t,doc:r})}function Fy(e={}){const{target:t,doc:n}=e,i=(n??document).documentElement;if(Vs()){if(Kn!=="disabled")return;Kn="restoring",setTimeout(()=>{Oc(()=>{Kn==="restoring"&&(i.style.webkitUserSelect==="none"&&(i.style.webkitUserSelect=Ms||""),Ms="",Kn="default")})},300)}else if(t&&Qi.has(t)){const o=Qi.get(t);t.style.userSelect==="none"&&(t.style.userSelect=o??""),t.getAttribute("style")===""&&t.removeAttribute("style"),Qi.delete(t)}}function Tc(e={}){const{defer:t,target:n,...r}=e,i=t?K:s=>s(),o=[];return o.push(i(()=>{const s=typeof n=="function"?n():n;o.push(Ly({...r,target:s}))})),()=>{o.forEach(s=>s==null?void 0:s())}}function zy(e,t){const{onPointerMove:n,onPointerUp:r}=t,o=[Ie(e,"pointermove",s=>{const a=by(s),l=Math.sqrt(a.x**2+a.y**2),u=s.pointerType==="touch"?10:5;if(!(l{o.forEach(s=>s())}}function Ji(e,t){return Array.from((e==null?void 0:e.querySelectorAll(t))??[])}function Dy(e,t){return(e==null?void 0:e.querySelector(t))??null}var Bs=e=>e.id;function My(e,t,n=Bs){return e.find(r=>n(r)===t)}function $s(e,t,n=Bs){const r=My(e,t,n);return r?e.indexOf(r):-1}function By(e,t,n=!0){let r=$s(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function $y(e,t,n=!0){let r=$s(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 jy=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(),Wy=e=>{var t;return jy(((t=e.dataset)==null?void 0:t.valuetext)??e.textContent??"")},Hy=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function Uy(e,t,n,r=Bs){const i=n?$s(e,n,r):-1;let o=n?jb(e,i):e;return t.length===1&&(o=o.filter(a=>r(a)!==n)),o.find(a=>Hy(Wy(a),t))}function Gy(e,t){if(!e)return Wb;const n=Object.keys(t).reduce((r,i)=>(r[i]=e.style.getPropertyValue(i),r),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,n),e.style.length===0&&e.removeAttribute("style")}}function qy(e,t){const{state:n,activeId:r,key:i,timeout:o=350,itemToId:s}=t,a=n.keysSoFar+i,u=a.length>1&&Array.from(a).every(f=>f===a[0])?a[0]:a;let c=e.slice();const d=Uy(c,u,r,s);function h(){clearTimeout(n.timer),n.timer=-1}function m(f){n.keysSoFar=f,h(),f!==""&&(n.timer=+setTimeout(()=>{m(""),h()},o))}return m(a),d}var Mr=Object.assign(qy,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:Ky});function Ky(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}function Xy(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(u=>{r.aborted||(clearTimeout(l),s(u))}).catch(u=>{r.aborted||(clearTimeout(l),a(u))})}),()=>t.abort()]}function Yy(e,t){const{timeout:n,rootNode:r}=t,i=Oe(r),o=_t(r),s=new i.AbortController;return Xy(new Promise(a=>{const l=e();if(l){a(l);return}const u=new i.MutationObserver(()=>{const c=e();c&&c.isConnected&&(u.disconnect(),a(c))});u.observe(o.body,{childList:!0,subtree:!0})}),s,n)}function Nc(e,t,n){let r=[],i;return o=>{const s=e(o);return(s.length!==r.length||s.some((l,u)=>!ct(r[u],l)))&&(r=s,i=t(...s)),i}}function Ut(){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 mT(e){return e}function _c(){return{guards:Ut(),createMachine:e=>e,choose:e=>function({choose:n}){var r;return(r=n(e))==null?void 0:r.actions}}}var D=()=>e=>Array.from(new Set(e));const Zi=Ve("span"),{withContext:Qy}=ji({key:"text"}),Jy=Qy("p");var M=(e,t=[])=>({parts:(...n)=>{if(Zy(t))return M(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>M(e,[...t,...n]),omit:(...n)=>M(e,t.filter(r=>!n.includes(r))),rename:n=>M(n,t),keys:()=>t,build:()=>[...new Set(t)].reduce((n,r)=>Object.assign(n,{[r]:{selector:[`&[data-scope="${Xn(e)}"][data-part="${Xn(r)}"]`,`& [data-scope="${Xn(e)}"][data-part="${Xn(r)}"]`].join(", "),attrs:{"data-scope":Xn(e),"data-part":Xn(r)}}}),{})}),Xn=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),Zy=e=>e.length===0,Ac=M("collapsible").parts("root","trigger","content","indicator");Ac.build(),D()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","defaultOpen","open"]);var e0=Object.defineProperty,t0=(e,t,n)=>t in e?e0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,js=(e,t,n)=>t0(e,t+"",n),n0=(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},Ws=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:i}=this.getChannelRange(e);return Lb(n,r,i)}getChannelPercentValue(e,t){const{minValue:n,maxValue:r,step:i}=this.getChannelRange(e),o=Fb(t,n,r,i);return fc(o,n,r,i)}withChannelValue(e,t){const{minValue:n,maxValue:r}=this.getChannelRange(e);if(e in this){let i=this.clone();return i[e]=Be(t,n,r),i}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:n}=e,r=t||this.getChannels().find(s=>s!==n),i=n||this.getChannels().find(s=>s!==r),o=this.getChannels().find(s=>s!==r&&s!==i);return{xChannel:r,yChannel:i,zChannel:o}}incrementChannel(e,t){const{minValue:n,maxValue:r,step:i}=this.getChannelRange(e),o=fc(Be(this.getChannelValue(e)+t,n,r),n,r,i);return this.withChannelValue(e,o)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return n0(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},r0=/^#[\da-f]+$/i,i0=/^rgba?\((.*)\)$/,o0=/[^#]/gi,Vc=class is extends Ws{constructor(t,n,r,i){super(),this.red=t,this.green=n,this.blue=r,this.alpha=i}static parse(t){let n=[];if(r0.test(t)&&[4,5,7,9].includes(t.length)){const i=(t.length<6?t.replace(o0,"$&$&"):t).slice(1).split("");for(;i.length>0;)n.push(parseInt(i.splice(0,2).join(""),16));n[3]=n[3]!==void 0?n[3]/255:void 0}const r=t.match(i0);return r!=null&&r[1]&&(n=r[1].split(",").map(i=>Number(i.trim())).map((i,o)=>Be(i,0,o<3?255:1))),n.length<3?void 0:new is(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,i=Math.min(t,n,r),o=Math.max(t,n,r),s=o-i,a=o===0?0:s/o;let l=0;if(s!==0){switch(o){case t:l=(n-r)/s+(nNumber(a.trim().replace("%","")));return new os(dc(r,360),Be(i,0,100),Be(o,0,100),Be(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 Gs(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,i=n*Math.min(r,1-r),o=(s,a=(s+t/30)%12)=>r-i*Math.max(Math.min(a-3,9-a,1),-1);return new Hs(Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255),oe(this.alpha,2))}clone(){return new os(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),i=this.getChannelValue(t);return(t==="saturation"||t==="lightness")&&(i/=100),new Intl.NumberFormat(n,r).format(i)}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 os.colorChannels}};js(Lc,"colorChannels",["hue","saturation","lightness"]);var Us=Lc,a0=/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+)?)\)/,Fc=class ss extends Ws{constructor(t,n,r,i){super(),this.hue=t,this.saturation=n,this.brightness=r,this.alpha=i}static parse(t){let n;if(n=t.match(a0)){const[r,i,o,s]=(n[1]??n[2]).split(",").map(a=>Number(a.trim().replace("%","")));return new ss(dc(r,360),Be(i,0,100),Be(o,0,100),Be(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 Us(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,i=(o,s=(o+t/60)%6)=>r-n*r*Math.max(Math.min(s,4-s,1),0);return new Hs(Math.round(i(5)*255),Math.round(i(3)*255),Math.round(i(1)*255),oe(this.alpha,2))}clone(){return new ss(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),i=this.getChannelValue(t);return(t==="saturation"||t==="brightness")&&(i/=100),new Intl.NumberFormat(n,r).format(i)}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 ss.colorChannels}};js(Fc,"colorChannels",["hue","saturation","brightness"]);var Gs=Fc,l0="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",c0=e=>{const t=new Map,n=e.split(",");for(let r=0;r{var n;if(zc.has(e))return eo(zc.get(e));const t=Hs.parse(e)||Gs.parse(e)||Us.parse(e);if(!t){const r=new Error("Invalid color value: "+e);throw(n=Error.captureStackTrace)==null||n.call(Error,r,eo),r}return t};const u0=["top","right","bottom","left"],Gt=Math.min,Ye=Math.max,to=Math.round,no=Math.floor,St=e=>({x:e,y:e}),d0={left:"right",right:"left",bottom:"top",top:"bottom"},h0={start:"end",end:"start"};function qs(e,t,n){return Ye(e,Gt(t,n))}function At(e,t){return typeof e=="function"?e(t):e}function Vt(e){return e.split("-")[0]}function Yn(e){return e.split("-")[1]}function Ks(e){return e==="x"?"y":"x"}function Xs(e){return e==="y"?"height":"width"}const f0=new Set(["top","bottom"]);function Ct(e){return f0.has(Vt(e))?"y":"x"}function Ys(e){return Ks(Ct(e))}function g0(e,t,n){n===void 0&&(n=!1);const r=Yn(e),i=Ys(e),o=Xs(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=ro(s)),[s,ro(s)]}function p0(e){const t=ro(e);return[Qs(e),t,Qs(t)]}function Qs(e){return e.replace(/start|end/g,t=>h0[t])}const Dc=["left","right"],Mc=["right","left"],m0=["top","bottom"],v0=["bottom","top"];function b0(e,t,n){switch(e){case"top":case"bottom":return n?t?Mc:Dc:t?Dc:Mc;case"left":case"right":return t?m0:v0;default:return[]}}function y0(e,t,n,r){const i=Yn(e);let o=b0(Vt(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(Qs)))),o}function ro(e){return e.replace(/left|right|bottom|top/g,t=>d0[t])}function x0(e){return{top:0,right:0,bottom:0,left:0,...e}}function Bc(e){return typeof e!="number"?x0(e):{top:e,right:e,bottom:e,left:e}}function io(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function $c(e,t,n){let{reference:r,floating:i}=e;const o=Ct(t),s=Ys(t),a=Xs(s),l=Vt(t),u=o==="y",c=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,h=r[a]/2-i[a]/2;let m;switch(l){case"top":m={x:c,y:r.y-i.height};break;case"bottom":m={x:c,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-i.width,y:d};break;default:m={x:r.x,y:r.y}}switch(Yn(t)){case"start":m[s]-=h*(n&&u?-1:1);break;case"end":m[s]+=h*(n&&u?-1:1);break}return m}const S0=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=$c(u,r,l),h=r,m={},f=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=At(e,t)||{};if(u==null)return{};const d=Bc(c),h={x:n,y:r},m=Ys(i),f=Xs(m),g=await s.getDimensions(u),p=m==="y",v=p?"top":"left",b=p?"bottom":"right",S=p?"clientHeight":"clientWidth",y=o.reference[f]+o.reference[m]-h[m]-o.floating[f],E=h[m]-o.reference[m],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let N=P?P[S]:0;(!N||!await(s.isElement==null?void 0:s.isElement(P)))&&(N=a.floating[S]||o.floating[f]);const O=y/2-E/2,I=N/2-g[f]/2-1,R=Gt(d[v],I),z=Gt(d[b],I),F=R,X=N-g[f]-z,Z=N/2-g[f]/2+O,Ne=qs(F,Z,X),U=!l.arrow&&Yn(i)!=null&&Z!==Ne&&o.reference[f]/2-(ZZ<=0)){var z,F;const Z=(((z=o.flip)==null?void 0:z.index)||0)+1,Ne=N[Z];if(Ne&&(!(d==="alignment"?b!==Ct(Ne):!1)||R.every(he=>Ct(he.placement)===b?he.overflows[0]>0:!0)))return{data:{index:Z,overflows:R},reset:{placement:Ne}};let U=(F=R.filter(ie=>ie.overflows[0]<=0).sort((ie,he)=>ie.overflows[1]-he.overflows[1])[0])==null?void 0:F.placement;if(!U)switch(m){case"bestFit":{var X;const ie=(X=R.filter(he=>{if(P){const $=Ct(he.placement);return $===b||$==="y"}return!0}).map(he=>[he.placement,he.overflows.filter($=>$>0).reduce(($,ae)=>$+ae,0)]).sort((he,$)=>he[1]-$[1])[0])==null?void 0:X[0];ie&&(U=ie);break}case"initialPlacement":U=a;break}if(i!==U)return{reset:{placement:U}}}return{}}}};function jc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Wc(e){return u0.some(t=>e[t]>=0)}const k0=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=At(e,t);switch(r){case"referenceHidden":{const o=await Br(t,{...i,elementContext:"reference"}),s=jc(o,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Wc(s)}}}case"escaped":{const o=await Br(t,{...i,altBoundary:!0}),s=jc(o,n.floating);return{data:{escapedOffsets:s,escaped:Wc(s)}}}default:return{}}}}},Hc=new Set(["left","top"]);async function E0(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Vt(n),a=Yn(n),l=Ct(n)==="y",u=Hc.has(s)?-1:1,c=o&&l?-1:1,d=At(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:f}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof f=="number"&&(m=a==="end"?f*-1:f),l?{x:m*c,y:h*u}:{x:h*u,y:m*c}}const O0=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await E0(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},I0=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:p=>{let{x:v,y:b}=p;return{x:v,y:b}}},...l}=At(e,t),u={x:n,y:r},c=await Br(t,l),d=Ct(Vt(i)),h=Ks(d);let m=u[h],f=u[d];if(o){const p=h==="y"?"top":"left",v=h==="y"?"bottom":"right",b=m+c[p],S=m-c[v];m=qs(b,m,S)}if(s){const p=d==="y"?"top":"left",v=d==="y"?"bottom":"right",b=f+c[p],S=f-c[v];f=qs(b,f,S)}const g=a.fn({...t,[h]:m,[d]:f});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:o,[d]:s}}}}}},R0=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=At(e,t),c={x:n,y:r},d=Ct(i),h=Ks(d);let m=c[h],f=c[d];const g=At(a,t),p=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const S=h==="y"?"height":"width",y=o.reference[h]-o.floating[S]+p.mainAxis,E=o.reference[h]+o.reference[S]-p.mainAxis;mE&&(m=E)}if(u){var v,b;const S=h==="y"?"width":"height",y=Hc.has(Vt(i)),E=o.reference[d]-o.floating[S]+(y&&((v=s.offset)==null?void 0:v[d])||0)+(y?0:p.crossAxis),P=o.reference[d]+o.reference[S]+(y?0:((b=s.offset)==null?void 0:b[d])||0)-(y?p.crossAxis:0);fP&&(f=P)}return{[h]:m,[d]:f}}}},P0=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:s,elements:a}=t,{apply:l=()=>{},...u}=At(e,t),c=await Br(t,u),d=Vt(i),h=Yn(i),m=Ct(i)==="y",{width:f,height:g}=o.floating;let p,v;d==="top"||d==="bottom"?(p=d,v=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,p=h==="end"?"top":"bottom");const b=g-c.top-c.bottom,S=f-c.left-c.right,y=Gt(g-c[p],b),E=Gt(f-c[v],S),P=!t.middlewareData.shift;let N=y,O=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(N=b),P&&!h){const R=Ye(c.left,0),z=Ye(c.right,0),F=Ye(c.top,0),X=Ye(c.bottom,0);m?O=f-2*(R!==0||z!==0?R+z:Ye(c.left,c.right)):N=g-2*(F!==0||X!==0?F+X:Ye(c.top,c.bottom))}await l({...t,availableWidth:O,availableHeight:N});const I=await s.getDimensions(a.floating);return f!==I.width||g!==I.height?{reset:{rects:!0}}:{}}}};function oo(){return typeof window<"u"}function Qn(e){return Uc(e)?(e.nodeName||"").toLowerCase():"#document"}function Qe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function wt(e){var t;return(t=(Uc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Uc(e){return oo()?e instanceof Node||e instanceof Qe(e).Node:!1}function ut(e){return oo()?e instanceof Element||e instanceof Qe(e).Element:!1}function kt(e){return oo()?e instanceof HTMLElement||e instanceof Qe(e).HTMLElement:!1}function Gc(e){return!oo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Qe(e).ShadowRoot}const T0=new Set(["inline","contents"]);function $r(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=dt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!T0.has(i)}const N0=new Set(["table","td","th"]);function _0(e){return N0.has(Qn(e))}const A0=[":popover-open",":modal"];function so(e){return A0.some(t=>{try{return e.matches(t)}catch{return!1}})}const V0=["transform","translate","scale","rotate","perspective"],L0=["transform","translate","scale","rotate","perspective","filter"],F0=["paint","layout","strict","content"];function Js(e){const t=Zs(),n=ut(e)?dt(e):e;return V0.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)||L0.some(r=>(n.willChange||"").includes(r))||F0.some(r=>(n.contain||"").includes(r))}function z0(e){let t=qt(e);for(;kt(t)&&!Jn(t);){if(Js(t))return t;if(so(t))return null;t=qt(t)}return null}function Zs(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const D0=new Set(["html","body","#document"]);function Jn(e){return D0.has(Qn(e))}function dt(e){return Qe(e).getComputedStyle(e)}function ao(e){return ut(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qt(e){if(Qn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Gc(e)&&e.host||wt(e);return Gc(t)?t.host:t}function qc(e){const t=qt(e);return Jn(t)?e.ownerDocument?e.ownerDocument.body:e.body:kt(t)&&$r(t)?t:qc(t)}function jr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=qc(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=Qe(i);if(o){const a=ea(s);return t.concat(s,s.visualViewport||[],$r(i)?i:[],a&&n?jr(a):[])}return t.concat(i,jr(i,[],n))}function ea(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Kc(e){const t=dt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=kt(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=to(n)!==o||to(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function ta(e){return ut(e)?e:e.contextElement}function Zn(e){const t=ta(e);if(!kt(t))return St(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Kc(t);let s=(o?to(n.width):n.width)/r,a=(o?to(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const M0=St(0);function Xc(e){const t=Qe(e);return!Zs()||!t.visualViewport?M0:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function B0(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Qe(e)?!1:t}function mn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=ta(e);let s=St(1);t&&(r?ut(r)&&(s=Zn(r)):s=Zn(e));const a=B0(o,n,r)?Xc(o):St(0);let l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,c=i.width/s.x,d=i.height/s.y;if(o){const h=Qe(o),m=r&&ut(r)?Qe(r):r;let f=h,g=ea(f);for(;g&&r&&m!==f;){const p=Zn(g),v=g.getBoundingClientRect(),b=dt(g),S=v.left+(g.clientLeft+parseFloat(b.paddingLeft))*p.x,y=v.top+(g.clientTop+parseFloat(b.paddingTop))*p.y;l*=p.x,u*=p.y,c*=p.x,d*=p.y,l+=S,u+=y,f=Qe(g),g=ea(f)}}return io({width:c,height:d,x:l,y:u})}function lo(e,t){const n=ao(e).scrollLeft;return t?t.left+n:mn(wt(e)).left+n}function Yc(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-lo(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function $0(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=wt(r),a=t?so(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=St(1);const c=St(0),d=kt(r);if((d||!d&&!o)&&((Qn(r)!=="body"||$r(s))&&(l=ao(r)),kt(r))){const m=mn(r);u=Zn(r),c.x=m.x+r.clientLeft,c.y=m.y+r.clientTop}const h=s&&!d&&!o?Yc(s,l):St(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+h.x,y:n.y*u.y-l.scrollTop*u.y+c.y+h.y}}function j0(e){return Array.from(e.getClientRects())}function W0(e){const t=wt(e),n=ao(e),r=e.ownerDocument.body,i=Ye(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Ye(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+lo(e);const a=-n.scrollTop;return dt(r).direction==="rtl"&&(s+=Ye(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}const Qc=25;function H0(e,t){const n=Qe(e),r=wt(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const c=Zs();(!c||c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}const u=lo(r);if(u<=0){const c=r.ownerDocument,d=c.body,h=getComputedStyle(d),m=c.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,f=Math.abs(r.clientWidth-d.clientWidth-m);f<=Qc&&(o-=f)}else u<=Qc&&(o+=u);return{width:o,height:s,x:a,y:l}}const U0=new Set(["absolute","fixed"]);function G0(e,t){const n=mn(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=kt(e)?Zn(e):St(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,u=r*o.y;return{width:s,height:a,x:l,y:u}}function Jc(e,t,n){let r;if(t==="viewport")r=H0(e,n);else if(t==="document")r=W0(wt(e));else if(ut(t))r=G0(t,n);else{const i=Xc(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return io(r)}function Zc(e,t){const n=qt(e);return n===t||!ut(n)||Jn(n)?!1:dt(n).position==="fixed"||Zc(n,t)}function q0(e,t){const n=t.get(e);if(n)return n;let r=jr(e,[],!1).filter(a=>ut(a)&&Qn(a)!=="body"),i=null;const o=dt(e).position==="fixed";let s=o?qt(e):e;for(;ut(s)&&!Jn(s);){const a=dt(s),l=Js(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&U0.has(i.position)||$r(s)&&!l&&Zc(e,s))?r=r.filter(c=>c!==s):i=a,s=qt(s)}return t.set(e,r),r}function K0(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?so(t)?[]:q0(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,c)=>{const d=Jc(t,c,i);return u.top=Ye(d.top,u.top),u.right=Gt(d.right,u.right),u.bottom=Gt(d.bottom,u.bottom),u.left=Ye(d.left,u.left),u},Jc(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function X0(e){const{width:t,height:n}=Kc(e);return{width:t,height:n}}function Y0(e,t,n){const r=kt(t),i=wt(t),o=n==="fixed",s=mn(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=St(0);function u(){l.x=lo(i)}if(r||!r&&!o)if((Qn(t)!=="body"||$r(i))&&(a=ao(t)),r){const m=mn(t,!0,o,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else i&&u();o&&!r&&i&&u();const c=i&&!r&&!o?Yc(i,a):St(0),d=s.left+a.scrollLeft-l.x-c.x,h=s.top+a.scrollTop-l.y-c.y;return{x:d,y:h,width:s.width,height:s.height}}function na(e){return dt(e).position==="static"}function eu(e,t){if(!kt(e)||dt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return wt(e)===n&&(n=n.ownerDocument.body),n}function tu(e,t){const n=Qe(e);if(so(e))return n;if(!kt(e)){let i=qt(e);for(;i&&!Jn(i);){if(ut(i)&&!na(i))return i;i=qt(i)}return n}let r=eu(e,t);for(;r&&_0(r)&&na(r);)r=eu(r,t);return r&&Jn(r)&&na(r)&&!Js(r)?n:r||z0(e)||n}const Q0=async function(e){const t=this.getOffsetParent||tu,n=this.getDimensions,r=await n(e.floating);return{reference:Y0(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function J0(e){return dt(e).direction==="rtl"}const Z0={convertOffsetParentRelativeRectToViewportRelativeRect:$0,getDocumentElement:wt,getClippingRect:K0,getOffsetParent:tu,getElementRects:Q0,getClientRects:j0,getDimensions:X0,getScale:Zn,isElement:ut,isRTL:J0};function nu(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ex(e,t){let n=null,r;const i=wt(e);function o(){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),o();const u=e.getBoundingClientRect(),{left:c,top:d,width:h,height:m}=u;if(a||t(),!h||!m)return;const f=no(d),g=no(i.clientWidth-(c+h)),p=no(i.clientHeight-(d+m)),v=no(c),S={rootMargin:-f+"px "+-g+"px "+-p+"px "+-v+"px",threshold:Ye(0,Gt(1,l))||1};let y=!0;function E(P){const N=P[0].intersectionRatio;if(N!==l){if(!y)return s();N?s(!1,N):r=setTimeout(()=>{s(!1,1e-7)},1e3)}N===1&&!nu(u,e.getBoundingClientRect())&&s(),y=!1}try{n=new IntersectionObserver(E,{...S,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,S)}n.observe(e)}return s(!0),o}function tx(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=ta(e),c=i||o?[...u?jr(u):[],...jr(t)]:[];c.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),o&&v.addEventListener("resize",n)});const d=u&&a?ex(u,n):null;let h=-1,m=null;s&&(m=new ResizeObserver(v=>{let[b]=v;b&&b.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var S;(S=m)==null||S.observe(t)})),n()}),u&&!l&&m.observe(u),m.observe(t));let f,g=l?mn(e):null;l&&p();function p(){const v=mn(e);g&&!nu(g,v)&&n(),g=v,f=requestAnimationFrame(p)}return n(),()=>{var v;c.forEach(b=>{i&&b.removeEventListener("scroll",n),o&&b.removeEventListener("resize",n)}),d==null||d(),(v=m)==null||v.disconnect(),m=null,l&&cancelAnimationFrame(f)}}const nx=O0,rx=I0,ix=w0,ox=P0,sx=k0,ax=C0,lx=R0,cx=(e,t,n)=>{const r=new Map,i={platform:Z0,...n},o={...i.platform,_c:r};return S0(e,t,{...i,platform:o})};function ru(e=0,t=0,n=0,r=0){if(typeof DOMRect=="function")return new DOMRect(e,t,n,r);const i={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return{...i,toJSON:()=>i}}function ux(e){if(!e)return ru();const{x:t,y:n,width:r,height:i}=e;return ru(t,n,r,i)}function dx(e,t){return{contextElement:$e(e)?e:void 0,getBoundingClientRect:()=>{const n=e,r=t==null?void 0:t(n);return r||!n?ux(r):n.getBoundingClientRect()}}}var iu=e=>({variable:e,reference:`var(${e})`}),ou={transformOrigin:iu("--transform-origin"),arrowOffset:iu("--arrow-offset")},hx=e=>e==="top"||e==="bottom"?"y":"x";function fx(e,t){return{name:"transformOrigin",fn(n){var I,R,z,F;const{elements:r,middlewareData:i,placement:o,rects:s,y:a}=n,l=o.split("-")[0],u=hx(l),c=((I=i.arrow)==null?void 0:I.x)||0,d=((R=i.arrow)==null?void 0:R.y)||0,h=(t==null?void 0:t.clientWidth)||0,m=(t==null?void 0:t.clientHeight)||0,f=c+h/2,g=d+m/2,p=Math.abs(((z=i.shift)==null?void 0:z.y)||0),v=s.reference.height/2,b=m/2,S=((F=e.offset)==null?void 0:F.mainAxis)??e.gutter,y=typeof S=="number"?S+b:S??b,E=p>y,P={top:`${f}px calc(100% + ${y}px)`,bottom:`${f}px ${-y}px`,left:`calc(100% + ${y}px) ${g}px`,right:`${-y}px ${g}px`}[l],N=`${f}px ${s.reference.y+v-a}px`,O=!!e.overlap&&u==="y"&&E;return r.floating.style.setProperty(ou.transformOrigin.variable,O?N:P),{data:{transformOrigin:O?N:P}}}}}var gx={name:"rects",fn({rects:e}){return{data:e}}},px=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:n}){if(!n.arrow)return{};const{x:r,y:i}=n.arrow,o=t.split("-")[0];return Object.assign(e.style,{left:r!=null?`${r}px`:"",top:i!=null?`${i}px`:"",[o]:`calc(100% + ${ou.arrowOffset.reference})`}),{}}}};function mx(e){const[t,n]=e.split("-");return{side:t,align:n,hasAlign:n!=null}}function vx(e){return e.split("-")[0]}var bx={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function su(e,t){const n=e.devicePixelRatio||1;return Math.round(t*n)/n}function ra(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function yx(e,t,n){const r=e||t.createElement("div");return ax({element:r,padding:n.arrowPadding})}function xx(e,t){if(!bb(t.offset??t.gutter))return nx(({placement:n})=>{var u,c;const r=((e==null?void 0:e.clientHeight)||0)/2,i=((u=t.offset)==null?void 0:u.mainAxis)??t.gutter,o=typeof i=="number"?i+r:i??r,{hasAlign:s}=mx(n),a=s?void 0:t.shift,l=((c=t.offset)==null?void 0:c.crossAxis)??a;return mc({crossAxis:l,mainAxis:o,alignmentAxis:t.shift})})}function Sx(e){if(!e.flip)return;const t=ra(e.boundary);return ix({...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function Cx(e){if(!e.slide&&!e.overlap)return;const t=ra(e.boundary);return rx({...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:lx()})}function wx(e){return ox({padding:e.overflowPadding,apply({elements:t,rects:n,availableHeight:r,availableWidth:i}){const o=t.floating,s=Math.round(n.reference.width),a=Math.round(n.reference.height);i=Math.floor(i),r=Math.floor(r),o.style.setProperty("--reference-width",`${s}px`),o.style.setProperty("--reference-height",`${a}px`),o.style.setProperty("--available-width",`${i}px`),o.style.setProperty("--available-height",`${r}px`)}})}function kx(e){if(e.hideWhenDetached)return sx({strategy:"referenceHidden",boundary:ra(e.boundary)??"clippingAncestors"})}function Ex(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function Ox(e,t,n={}){const r=dx(e,n.getAnchorRect);if(!t||!r)return;const i=Object.assign({},bx,n),o=t.querySelector("[data-part=arrow]"),s=[xx(o,i),Sx(i),Cx(i),yx(o,t.ownerDocument,i),px(o),fx({gutter:i.gutter,offset:i.offset,overlap:i.overlap},o),wx(i),kx(i),gx],{placement:a,strategy:l,onComplete:u,onPositioned:c}=i,d=async()=>{var y;if(!r||!t)return;const g=await cx(r,t,{placement:a,middleware:s,strategy:l});u==null||u(g),c==null||c({placed:!0});const p=Oe(t),v=su(p,g.x),b=su(p,g.y);t.style.setProperty("--x",`${v}px`),t.style.setProperty("--y",`${b}px`),i.hideWhenDetached&&(((y=g.middlewareData.hide)==null?void 0:y.referenceHidden)?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const S=t.firstElementChild;if(S){const E=ry(S);t.style.setProperty("--z-index",E.zIndex)}},h=async()=>{n.updatePosition?(await n.updatePosition({updatePosition:d,floatingElement:t}),c==null||c({placed:!0})):await d()},m=Ex(i.listeners),f=i.listeners?tx(r,t,h,m):Eb;return h(),()=>{f==null||f(),c==null||c({placed:!1})}}function ht(e,t,n={}){const{defer:r,...i}=n,o=r?K:a=>a(),s=[];return s.push(o(()=>{const a=typeof e=="function"?e():e,l=typeof t=="function"?t():t;s.push(Ox(a,l,i))})),()=>{s.forEach(a=>a==null?void 0:a())}}function Ix(e){const t={each(n){var r;for(let i=0;i<((r=e.frames)==null?void 0:r.length);i+=1){const o=e.frames[i];o&&n(o)}},addEventListener(n,r,i){return t.each(o=>{try{o.document.addEventListener(n,r,i)}catch{}}),()=>{try{t.removeEventListener(n,r,i)}catch{}}},removeEventListener(n,r,i){t.each(o=>{try{o.document.removeEventListener(n,r,i)}catch{}})}};return t}function Rx(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(n,r,i)=>{try{t==null||t.addEventListener(n,r,i)}catch{}return()=>{try{t==null||t.removeEventListener(n,r,i)}catch{}}},removeEventListener:(n,r,i)=>{try{t==null||t.removeEventListener(n,r,i)}catch{}}}}var au="pointerdown.outside",lu="focus.outside";function Px(e){for(const t of e)if($e(t)&&Fs(t))return!0;return!1}var cu=e=>"clientY"in e;function Tx(e,t){if(!cu(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 Nx(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function uu(e,t){if(!t||!cu(e))return!1;const n=t.scrollHeight>t.clientHeight,r=n&&e.clientX>t.offsetLeft+t.clientWidth,i=t.scrollWidth>t.clientWidth,o=i&&e.clientY>t.offsetTop+t.clientHeight,s={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(n?16:0),height:t.clientHeight+(i?16:0)},a={x:e.clientX,y:e.clientY};return Nx(s,a)?r||o:!1}function _x(e,t){const{exclude:n,onFocusOutside:r,onPointerDownOutside:i,onInteractOutside:o,defer:s}=t;if(!e)return;const a=_t(e),l=Oe(e),u=Ix(l),c=Rx(l);function d(b,S){if(!$e(S)||!S.isConnected||pn(e,S)||Tx(e,b))return!1;const y=a.querySelector(`[aria-controls="${e.id}"]`);if(y){const P=Xi(y);if(uu(b,P))return!1}const E=Xi(e);return uu(b,E)?!1:!(n!=null&&n(S))}const h=new Set,m=Dr(e==null?void 0:e.getRootNode());function f(b){function S(y){var O;const E=s&&!Cc()?K:I=>I(),P=y??b,N=((O=P==null?void 0:P.composedPath)==null?void 0:O.call(P))??[P==null?void 0:P.target];E(()=>{const I=m?N[0]:Ht(b);if(!(!e||!d(b,I))){if(i||o){const R=Ps(i,o);e.addEventListener(au,R,{once:!0})}du(e,au,{bubbles:!1,cancelable:!0,detail:{originalEvent:P,contextmenu:py(P),focusable:Px(N),target:I}})}})}b.pointerType==="touch"?(h.forEach(y=>y()),h.add(Ie(a,"click",S,{once:!0})),h.add(c.addEventListener("click",S,{once:!0})),h.add(u.addEventListener("click",S,{once:!0}))):S()}const g=new Set,p=setTimeout(()=>{g.add(Ie(a,"pointerdown",f,!0)),g.add(c.addEventListener("pointerdown",f,!0)),g.add(u.addEventListener("pointerdown",f,!0))},0);function v(b){(s?K:y=>y())(()=>{const y=Ht(b);if(!(!e||!d(b,y))){if(r||o){const E=Ps(r,o);e.addEventListener(lu,E,{once:!0})}du(e,lu,{bubbles:!1,cancelable:!0,detail:{originalEvent:b,contextmenu:!1,focusable:Fs(y),target:y}})}})}return Cc()||(g.add(Ie(a,"focusin",v,!0)),g.add(c.addEventListener("focusin",v,!0)),g.add(u.addEventListener("focusin",v,!0))),()=>{clearTimeout(p),h.forEach(b=>b()),g.forEach(b=>b())}}function Ax(e,t){const{defer:n}=t,r=n?K:o=>o(),i=[];return i.push(r(()=>{const o=typeof e=="function"?e():e;i.push(_x(o,t))})),()=>{i.forEach(o=>o==null?void 0:o())}}function du(e,t,n){const r=e.ownerDocument.defaultView||window,i=new r.CustomEvent(t,n);return e.dispatchEvent(i)}function Vx(e,t){const n=r=>{r.key==="Escape"&&(r.isComposing||t==null||t(r))};return Ie(_t(e),"keydown",n,{capture:!0})}var hu="layer:request-dismiss",tt={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){var r;const t=this.indexOf(e),n=this.topMostPointerBlockingLayer()?this.indexOf((r=this.topMostPointerBlockingLayer())==null?void 0:r.node):-1;return tpn(n.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>pn(t,e))},add(e){this.layers.push(e),this.syncLayerIndex()},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(ttt.dismiss(r.node,e)),this.layers.splice(t,1),this.syncLayerIndex())},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayerIndex(){this.layers.forEach((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`)})},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];Fx(e,hu,i=>{var o;(o=r.requestDismiss)==null||o.call(r,i),i.defaultPrevented||r==null||r.dismiss()}),Lx(e,hu,{originalLayer:e,targetLayer:t,originalIndex:n,targetIndex:t?this.indexOf(t):-1}),this.syncLayerIndex()},clear(){this.remove(this.layers[0].node)}};function Lx(e,t,n){const r=e.ownerDocument.defaultView||window,i=new r.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:n});return e.dispatchEvent(i)}function Fx(e,t,n){e.addEventListener(t,n,{once:!0})}var fu;function gu(){tt.layers.forEach(({node:e})=>{e.style.pointerEvents=tt.isBelowPointerBlockingLayer(e)?"none":"auto"})}function zx(e){e.style.pointerEvents=""}function Dx(e,t){const n=_t(e),r=[];return tt.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(fu=document.body.style.pointerEvents,queueMicrotask(()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")})),t==null||t.forEach(i=>{const[o,s]=Yy(()=>{const a=i();return $e(a)?a:null},{timeout:1e3});o.then(a=>r.push(Gy(a,{pointerEvents:"auto"}))),r.push(s)}),()=>{tt.hasPointerBlockingLayer()||(queueMicrotask(()=>{n.body.style.pointerEvents=fu,n.body.removeAttribute("data-inert"),n.body.style.length===0&&n.body.removeAttribute("style")}),r.forEach(i=>i()))}}function Mx(e,t){const{warnOnMissingNode:n=!0}=t;if(n&&!e){vc("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:r,onRequestDismiss:i,pointerBlocking:o,exclude:s,debug:a}=t,l={dismiss:r,node:e,pointerBlocking:o,requestDismiss:i};tt.add(l),gu();function u(f){var p,v;const g=Ht(f.detail.originalEvent);tt.isBelowPointerBlockingLayer(e)||tt.isInBranch(g)||((p=t.onPointerDownOutside)==null||p.call(t,f),(v=t.onInteractOutside)==null||v.call(t,f),!f.defaultPrevented&&(a&&console.log("onPointerDownOutside:",f.detail.originalEvent),r==null||r()))}function c(f){var p,v;const g=Ht(f.detail.originalEvent);tt.isInBranch(g)||((p=t.onFocusOutside)==null||p.call(t,f),(v=t.onInteractOutside)==null||v.call(t,f),!f.defaultPrevented&&(a&&console.log("onFocusOutside:",f.detail.originalEvent),r==null||r()))}function d(f){var g;tt.isTopMost(e)&&((g=t.onEscapeKeyDown)==null||g.call(t,f),!f.defaultPrevented&&r&&(f.preventDefault(),r()))}function h(f){var b;if(!e)return!1;const g=typeof s=="function"?s():s,p=Array.isArray(g)?g:[g],v=(b=t.persistentElements)==null?void 0:b.map(S=>S()).filter($e);return v&&p.push(...v),p.some(S=>pn(S,f))||tt.isInNestedLayer(e,f)}const m=[o?Dx(e,t.persistentElements):void 0,Vx(e,d),Ax(e,{exclude:h,onFocusOutside:c,onPointerDownOutside:u,defer:t.defer})];return()=>{tt.remove(e),gu(),zx(e),m.forEach(f=>f==null?void 0:f())}}function Wr(e,t){const{defer:n}=t,r=n?K:o=>o(),i=[];return i.push(r(()=>{const o=sc(e)?e():e;i.push(Mx(o,t))})),()=>{i.forEach(o=>o==null?void 0:o())}}var pu=M("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"]);pu.build();var Bx=e=>{var t;return((t=e.ids)==null?void 0:t.hiddenInput)??`color-picker:${e.id}:hidden-input`},$x=e=>{var t;return((t=e.ids)==null?void 0:t.control)??`color-picker:${e.id}:control`},jx=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`color-picker:${e.id}:trigger`},Wx=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`color-picker:${e.id}:content`},Hx=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`color-picker:${e.id}:positioner`},Ux=e=>{var t;return((t=e.ids)==null?void 0:t.formatSelect)??`color-picker:${e.id}:format-select`},Gx=e=>{var t;return((t=e.ids)==null?void 0:t.area)??`color-picker:${e.id}:area`},qx=e=>{var t;return((t=e.ids)==null?void 0:t.areaThumb)??`color-picker:${e.id}:area-thumb`},Kx=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.channelSliderTrack)==null?void 0:r.call(n,t))??`color-picker:${e.id}:slider-track:${t}`},Xx=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.channelSliderThumb)==null?void 0:r.call(n,t))??`color-picker:${e.id}:slider-thumb:${t}`},co=e=>e.getById(Wx(e)),Yx=e=>e.getById(qx(e)),Qx=(e,t)=>e.getById(Xx(e,t)),Jx=e=>e.getById(Ux(e)),mu=e=>e.getById(Bx(e)),Zx=e=>e.getById(Gx(e)),e1=(e,t,n)=>{const r=Zx(e);if(!r)return;const{getPercentValue:i}=Pc(t,r);return{x:i({dir:n,orientation:"horizontal"}),y:i({orientation:"vertical"})}},t1=e=>e.getById($x(e)),ia=e=>e.getById(jx(e)),n1=e=>e.getById(Hx(e)),r1=(e,t)=>e.getById(Kx(e,t)),i1=(e,t,n,r)=>{const i=r1(e,n);if(!i)return;const{getPercentValue:o}=Pc(t,i);return{x:o({dir:r,orientation:"horizontal"}),y:o({orientation:"vertical"})}},o1=e=>[...Ji(co(e),"input[data-channel]"),...Ji(t1(e),"input[data-channel]")];function s1(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 vu=e=>eo(e),a1=/^[0-9a-fA-F]{3,8}$/;function l1(e){return a1.test(e)}function c1(e){return e.startsWith("#")?e:l1(e)?`#${e}`:e}var{and:u1}=Ut();u1("isOpenControlled","closeOnSelect");function bu(e,t,n){const r=o1(e);K(()=>{r.forEach(i=>{const o=i.dataset.channel;qi(i,s1(n||t,o))})})}function d1(e,t){const n=Jx(e);n&&K(()=>qi(n,t))}D()(["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"]),D()(["xChannel","yChannel"]),D()(["channel","orientation"]),D()(["value","disabled"]),D()(["value","respectAlpha"]),D()(["size"]);var yu=M("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");yu.build();var xu=e=>{var t;return((t=e.ids)==null?void 0:t.root)??`accordion:${e.id}`},Su=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.itemTrigger)==null?void 0:r.call(n,t))??`accordion:${e.id}:trigger:${t}`},h1=e=>e.getById(xu(e)),uo=e=>{const n=`[aria-controls][data-ownedby='${CSS.escape(xu(e))}']:not([disabled])`;return Ji(h1(e),n)},f1=e=>Fr(uo(e)),g1=e=>Is(uo(e)),p1=(e,t)=>By(uo(e),Su(e,t)),m1=(e,t)=>$y(uo(e),Su(e,t)),{and:v1,not:b1}=Ut();v1("isExpanded","canToggle"),b1("isExpanded"),D()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]),D()(["value","disabled"]);var Hr=(e,t)=>({x:e,y:t});function y1(e){const{x:t,y:n,width:r,height:i}=e,o=t+r/2,s=n+i/2;return{x:t,y:n,width:r,height:i,minX:t,minY:n,maxX:t+r,maxY:n+i,midX:o,midY:s,center:Hr(o,s)}}function x1(e){const t=Hr(e.minX,e.minY),n=Hr(e.maxX,e.minY),r=Hr(e.maxX,e.maxY),i=Hr(e.minX,e.maxY);return{top:t,right:n,bottom:r,left:i}}function S1(e,t){const n=y1(e),{top:r,right:i,left:o,bottom:s}=x1(n),[a]=t.split("-");return{top:[o,r,i,s],right:[r,i,s,o],bottom:[r,o,s,i],left:[i,r,o,s]}[a]}function C1(e,t){const{x:n,y:r}=t;let i=!1;for(let o=0,s=e.length-1;or!=c>r&&n<(u-a)*(r-l)/(c-l)+a&&(i=!i)}return i}var Cu=M("avatar").parts("root","image","fallback");Cu.build(),D()(["dir","id","ids","onStatusChange","getRootNode"]);function w1(e){return!(e.metaKey||!Gi()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var k1=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function E1(e,t,n){const r=n?Ht(n):null,i=Oe(r);return e=e||r instanceof i.HTMLInputElement&&!k1.has(r==null?void 0:r.type)||r instanceof i.HTMLTextAreaElement||r instanceof i.HTMLElement&&r.isContentEditable,!(e&&t==="keyboard"&&n instanceof i.KeyboardEvent&&!Reflect.has(O1,n.key))}var vn=null,oa=new Set,Ur=new Map,bn=!1,sa=!1,O1={Tab:!0,Escape:!0};function ho(e,t){for(let n of oa)n(e,t)}function fo(e){bn=!0,w1(e)&&(vn="keyboard",ho("keyboard",e))}function nt(e){vn="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(bn=!0,ho("pointer",e))}function wu(e){gy(e)&&(bn=!0,vn="virtual")}function ku(e){const t=Ht(e);t===Oe(t)||t===_t(t)||(!bn&&!sa&&(vn="virtual",ho("virtual",e)),bn=!1,sa=!1)}function Eu(){bn=!1,sa=!0}function I1(e){if(typeof window>"u"||Ur.get(Oe(e)))return;const t=Oe(e),n=_t(e);let r=t.HTMLElement.prototype.focus;function i(){vn="virtual",ho("virtual",null),bn=!0,r.apply(this,arguments)}Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:i}),n.addEventListener("keydown",fo,!0),n.addEventListener("keyup",fo,!0),n.addEventListener("click",wu,!0),t.addEventListener("focus",ku,!0),t.addEventListener("blur",Eu,!1),typeof t.PointerEvent<"u"?(n.addEventListener("pointerdown",nt,!0),n.addEventListener("pointermove",nt,!0),n.addEventListener("pointerup",nt,!0)):(n.addEventListener("mousedown",nt,!0),n.addEventListener("mousemove",nt,!0),n.addEventListener("mouseup",nt,!0)),t.addEventListener("beforeunload",()=>{R1(e)},{once:!0}),Ur.set(t,{focus:r})}var R1=(e,t)=>{const n=Oe(e),r=_t(e);Ur.has(n)&&(n.HTMLElement.prototype.focus=Ur.get(n).focus,r.removeEventListener("keydown",fo,!0),r.removeEventListener("keyup",fo,!0),r.removeEventListener("click",wu,!0),n.removeEventListener("focus",ku,!0),n.removeEventListener("blur",Eu,!1),typeof n.PointerEvent<"u"?(r.removeEventListener("pointerdown",nt,!0),r.removeEventListener("pointermove",nt,!0),r.removeEventListener("pointerup",nt,!0)):(r.removeEventListener("mousedown",nt,!0),r.removeEventListener("mousemove",nt,!0),r.removeEventListener("mouseup",nt,!0)),Ur.delete(n))};function Ou(){return vn==="keyboard"}function P1(e={}){const{isTextInput:t,autoFocus:n,onChange:r,root:i}=e;I1(i),r==null||r({isFocusVisible:n||Ou(),modality:vn});const o=(s,a)=>{E1(!!t,s,a)&&(r==null||r({isFocusVisible:Ou(),modality:s}))};return oa.add(o),()=>{oa.delete(o)}}var Iu=M("checkbox").parts("root","label","control","indicator");Iu.build(),D()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const T1=Iu.extendWith("group");var Ru=M("clipboard").parts("root","control","trigger","indicator","input","label");Ru.build(),D()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]),D()(["copied"]);const N1=pu.extendWith("view");var _1=Object.defineProperty,A1=(e,t,n)=>t in e?_1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t,n)=>A1(e,typeof t!="symbol"?t+"":t,n),go={itemToValue(e){return typeof e=="string"?e:gn(e)&&jt(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:gn(e)&&jt(e,"label")?e.label:go.itemToValue(e)},isItemDisabled(e){return gn(e)&&jt(e,"disabled")?!!e.disabled:!1}},po=class Lm{constructor(t){this.options=t,T(this,"items"),T(this,"indexMap",null),T(this,"copy",n=>new Lm({...this.options,items:n??[...this.items]})),T(this,"isEqual",n=>ct(this.items,n.items)),T(this,"setItems",n=>this.copy(n)),T(this,"getValues",(n=this.items)=>{const r=[];for(const i of n){const o=this.getItemValue(i);o!=null&&r.push(o)}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 i of n){const o=this.find(i);o!=null&&r.push(o)}return r}),T(this,"at",n=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[n]??null;let r=0;const i=this.group();for(const[,o]of i)for(const s of o){if(r===n)return s;r++}return null}),T(this,"sortFn",(n,r)=>{const i=this.indexOf(n),o=this.indexOf(r);return(i??0)-(o??0)}),T(this,"sort",n=>[...n].sort(this.sortFn.bind(this))),T(this,"getItemValue",n=>{var r,i;return n==null?null:((i=(r=this.options).itemToValue)==null?void 0:i.call(r,n))??go.itemToValue(n)}),T(this,"getItemDisabled",n=>{var r,i;return n==null?!1:((i=(r=this.options).isItemDisabled)==null?void 0:i.call(r,n))??go.isItemDisabled(n)}),T(this,"stringifyItem",n=>{var r,i;return n==null?null:((i=(r=this.options).itemToString)==null?void 0:i.call(r,n))??go.itemToString(n)}),T(this,"stringify",n=>n==null?null:this.stringifyItem(this.find(n))),T(this,"stringifyItems",(n,r=", ")=>{const i=[];for(const o of n){const s=this.stringifyItem(o);s!=null&&i.push(s)}return i.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 i=new Map;this.items.forEach((s,a)=>{const l=n(s,a);i.has(l)||i.set(l,[]),i.get(l).push(s)});let o=Array.from(i.entries());return r&&o.sort(([s],[a])=>{if(typeof r=="function")return r(s,a);if(Array.isArray(r)){const l=r.indexOf(s),u=r.indexOf(a);return l===-1?1:u===-1?-1:l-u}return r==="asc"?s.localeCompare(a):r==="desc"?a.localeCompare(s):0}),o}),T(this,"getNextValue",(n,r=1,i=!1)=>{let o=this.indexOf(n);if(o===-1)return null;for(o=i?Math.min(o+r,this.size-1):o+r;o<=this.size&&this.getItemDisabled(this.at(o));)o++;return this.getItemValue(this.at(o))}),T(this,"getPreviousValue",(n,r=1,i=!1)=>{let o=this.indexOf(n);if(o===-1)return null;for(o=i?Math.max(o-r,0):o-r;o>=0&&this.getItemDisabled(this.at(o));)o--;return this.getItemValue(this.at(o))}),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 i=this.group();for(const[,o]of i)for(const s of o){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 i=r!=null?this.indexOf(r):-1,o=n.length===1;for(let s=0;s{const{state:i,currentValue:o,timeout:s=350}=r,a=i.keysSoFar+n,u=a.length>1&&Array.from(a).every(f=>f===a[0])?a[0]:a,c=this.getByText(u,o),d=this.getItemValue(c);function h(){clearTimeout(i.timer),i.timer=-1}function m(f){i.keysSoFar=f,h(),f!==""&&(i.timer=+setTimeout(()=>{m(""),h()},s))}return m(a),d}),T(this,"update",(n,r)=>{let i=this.indexOf(n);return i===-1?this:this.copy([...this.items.slice(0,i),r,...this.items.slice(i+1)])}),T(this,"upsert",(n,r,i="append")=>{let o=this.indexOf(n);return o===-1?(i==="append"?this.append:this.prepend)(r):this.copy([...this.items.slice(0,o),r,...this.items.slice(o+1)])}),T(this,"insert",(n,...r)=>this.copy(Gr(this.items,n,...r))),T(this,"insertBefore",(n,...r)=>{let i=this.indexOf(n);if(i===-1)if(this.items.length===0)i=0;else return this;return this.copy(Gr(this.items,i,...r))}),T(this,"insertAfter",(n,...r)=>{let i=this.indexOf(n);if(i===-1)if(this.items.length===0)i=0;else return this;return this.copy(Gr(this.items,i+1,...r))}),T(this,"prepend",(...n)=>this.copy(Gr(this.items,0,...n))),T(this,"append",(...n)=>this.copy(Gr(this.items,this.items.length,...n))),T(this,"filter",n=>{const r=this.items.filter((i,o)=>n(this.stringifyItem(i),o,i));return this.copy(r)}),T(this,"remove",(...n)=>{const r=n.map(i=>typeof i=="string"?i:this.getItemValue(i));return this.copy(this.items.filter(i=>{const o=this.getItemValue(i);return o==null?!1:!r.includes(o)}))}),T(this,"move",(n,r)=>{const i=this.indexOf(n);return i===-1?this:this.copy(mo(this.items,[i],r))}),T(this,"moveBefore",(n,...r)=>{let i=this.items.findIndex(s=>this.getItemValue(s)===n);if(i===-1)return this;let o=r.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(mo(this.items,o,i))}),T(this,"moveAfter",(n,...r)=>{let i=this.items.findIndex(s=>this.getItemValue(s)===n);if(i===-1)return this;let o=r.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(mo(this.items,o,i+1))}),T(this,"reorder",(n,r)=>this.copy(mo(this.items,[n],r))),T(this,"compareValue",(n,r)=>{const i=this.indexOf(n),o=this.indexOf(r);return io?1:0}),T(this,"range",(n,r)=>{let i=[],o=n;for(;o!=null;){if(this.find(o)&&i.push(o),o===r)return i;o=this.getNextValue(o)}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 i=this.getItemValue(r),o=this.stringifyItem(r),s=this.getItemDisabled(r),a=[i,o,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}},V1=(e,t)=>!!(e!=null&&e.toLowerCase().startsWith(t.toLowerCase()));function Gr(e,t,...n){return[...e.slice(0,t),...n,...e.slice(t)]}function mo(e,t,n){t=[...t].sort((i,o)=>i-o);const r=t.map(i=>e[i]);for(let i=t.length-1;i>=0;i--)e=[...e.slice(0,t[i]),...e.slice(t[i]+1)];return n=Math.max(0,n-t.filter(i=>it[n])return 1}return e.length-t.length}function F1(e){return e.sort(Tu)}function z1(e,t){let n;return Je(e,{...t,onEnter:(r,i)=>{if(t.predicate(r,i))return n=r,"stop"}}),n}function D1(e,t){const n=[];return Je(e,{onEnter:(r,i)=>{t.predicate(r,i)&&n.push(r)},getChildren:t.getChildren}),n}function Nu(e,t){let n;return Je(e,{onEnter:(r,i)=>{if(t.predicate(r,i))return n=[...i],"stop"},getChildren:t.getChildren}),n}function M1(e,t){let n=t.initialResult;return Je(e,{...t,onEnter:(r,i)=>{n=t.nextResult(n,r,i)}}),n}function B1(e,t){return M1(e,{...t,initialResult:[],nextResult:(n,r,i)=>(n.push(...t.transform(r,i)),n)})}function $1(e,t){const{predicate:n,create:r,getChildren:i}=t,o=(s,a)=>{const l=i(s,a),u=[];l.forEach((m,f)=>{const g=[...a,f],p=o(m,g);p&&u.push(p)});const c=a.length===0,d=n(s,a),h=u.length>0;return c||d||h?r(s,u,a):null};return o(e,[])||r(e,[],[])}function j1(e,t){const n=[];let r=0;const i=new Map,o=new Map;return Je(e,{getChildren:t.getChildren,onEnter:(s,a)=>{i.has(s)||i.set(s,r++);const l=t.getChildren(s,a);l.forEach(m=>{o.has(m)||o.set(m,s),i.has(m)||i.set(m,r++)});const u=l.length>0?l.map(m=>i.get(m)):void 0,c=o.get(s),d=c?i.get(c):void 0,h=i.get(s);n.push({...s,_children:u,_parent:d,_index:h})}}),n}function W1(e,t){return{type:"insert",index:e,nodes:t}}function H1(e){return{type:"remove",indexes:e}}function aa(){return{type:"replace"}}function _u(e){return[e.slice(0,-1),e[e.length-1]]}function Au(e,t,n=new Map){var s;const[r,i]=_u(e);for(let a=r.length-1;a>=0;a--){const l=r.slice(0,a).join();switch((s=n.get(l))==null?void 0:s.type){case"remove":continue}n.set(l,aa())}const o=n.get(r.join());switch(o==null?void 0:o.type){case"remove":n.set(r.join(),{type:"removeThenInsert",removeIndexes:o.indexes,insertIndex:i,insertNodes:t});break;default:n.set(r.join(),W1(i,t))}return n}function Vu(e){const t=new Map,n=new Map;for(const r of e){const i=r.slice(0,-1).join(),o=n.get(i)??[];o.push(r[r.length-1]),n.set(i,o.sort((s,a)=>s-a))}for(const r of e)for(let i=r.length-2;i>=0;i--){const o=r.slice(0,i).join();t.has(o)||t.set(o,aa())}for(const[r,i]of n)t.set(r,H1(i));return t}function U1(e,t){const n=new Map,[r,i]=_u(e);for(let o=r.length-1;o>=0;o--){const s=r.slice(0,o).join();n.set(s,aa())}return n.set(r.join(),{type:"removeThenInsert",removeIndexes:[i],insertIndex:i,insertNodes:[t]}),n}function vo(e,t,n){return G1(e,{...n,getChildren:(r,i)=>{const o=i.join(),s=t.get(o);switch(s==null?void 0:s.type){case"replace":case"remove":case"removeThenInsert":case"insert":return n.getChildren(r,i);default:return[]}},transform:(r,i,o)=>{const s=o.join(),a=t.get(s);switch(a==null?void 0:a.type){case"remove":return n.create(r,i.filter((c,d)=>!a.indexes.includes(d)),o);case"removeThenInsert":const l=i.filter((c,d)=>!a.removeIndexes.includes(d)),u=a.removeIndexes.reduce((c,d)=>d{const o=[0,...i],s=o.join(),a=t.transform(r,n[s]??[],i),l=o.slice(0,-1).join(),u=n[l]??[];u.push(a),n[l]=u}}),n[""][0]}function q1(e,t){const{nodes:n,at:r}=t;if(r.length===0)throw new Error("Can't insert nodes at the root");const i=Au(r,n);return vo(e,i,t)}function K1(e,t){if(t.at.length===0)return t.node;const n=U1(t.at,t.node);return vo(e,n,t)}function X1(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=Vu(t.indexPaths);return vo(e,n,t)}function Y1(e,t){if(t.indexPaths.length===0)return e;for(const o of t.indexPaths)if(o.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=L1(t.indexPaths),r=n.map(o=>Pu(e,o,t)),i=Au(t.to,r,Vu(n));return vo(e,i,t)}function Je(e,t){const{onEnter:n,onLeave:r,getChildren:i}=t;let o=[],s=[{node:e}];const a=t.reuseIndexPath?()=>o:()=>o.slice();for(;s.length>0;){let l=s[s.length-1];if(l.state===void 0){const c=n==null?void 0:n(l.node,a());if(c==="stop")return;l.state=c==="skip"?-1:0}const u=l.children||i(l.node,a());if(l.children||(l.children=u),l.state!==-1){if(l.statect(this.rootNode,n.rootNode)),T(this,"getNodeChildren",n=>{var r,i;return((i=(r=this.options).nodeToChildren)==null?void 0:i.call(r,n))??er.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=>{var r,i;return((i=(r=this.options).nodeToChildrenCount)==null?void 0:i.call(r,n))??er.nodeToChildrenCount(n)}),T(this,"getNodeValue",n=>{var r,i;return((i=(r=this.options).nodeToValue)==null?void 0:i.call(r,n))??er.nodeToValue(n)}),T(this,"getNodeDisabled",n=>{var r,i;return((i=(r=this.options).isNodeDisabled)==null?void 0:i.call(r,n))??er.isNodeDisabled(n)}),T(this,"stringify",n=>{const r=this.findNode(n);return r?this.stringifyNode(r):null}),T(this,"stringifyNode",n=>{var r,i;return((i=(r=this.options).nodeToString)==null?void 0:i.call(r,n))??er.nodeToString(n)}),T(this,"getFirstNode",(n=this.rootNode)=>{let r;return Je(n,{getChildren:this.getNodeChildren,onEnter:(i,o)=>{if(!r&&o.length>0&&!this.getNodeDisabled(i))return r=i,"stop"}}),r}),T(this,"getLastNode",(n=this.rootNode,r={})=>{let i;return Je(n,{getChildren:this.getNodeChildren,onEnter:(o,s)=>{var a;if(!this.isSameNode(o,n)){if((a=r.skip)!=null&&a.call(r,{value:this.getNodeValue(o),node:o,indexPath:s}))return"skip";s.length>0&&!this.getNodeDisabled(o)&&(i=o)}}}),i}),T(this,"at",n=>Pu(this.rootNode,n,{getChildren:this.getNodeChildren})),T(this,"findNode",(n,r=this.rootNode)=>z1(r,{getChildren:this.getNodeChildren,predicate:i=>this.getNodeValue(i)===n})),T(this,"findNodes",(n,r=this.rootNode)=>{const i=new Set(n.filter(o=>o!=null));return D1(r,{getChildren:this.getNodeChildren,predicate:o=>i.has(this.getNodeValue(o))})}),T(this,"sort",n=>n.reduce((r,i)=>{const o=this.getIndexPath(i);return o&&r.push({value:i,indexPath:o}),r},[]).sort((r,i)=>Tu(r.indexPath,i.indexPath)).map(({value:r})=>r)),T(this,"getIndexPath",n=>Nu(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 i=[...n];for(;i.length>0;){const o=this.at(i);o&&r.unshift(this.getNodeValue(o)),i.pop()}return r}),T(this,"getDepth",n=>{const r=Nu(this.rootNode,{getChildren:this.getNodeChildren,predicate:i=>this.getNodeValue(i)===n});return(r==null?void 0:r.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((i,o)=>n[o]===r[o])),T(this,"getNextNode",(n,r={})=>{let i=!1,o;return Je(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{var u;if(this.isRootNode(s))return;const l=this.getNodeValue(s);if((u=r.skip)!=null&&u.call(r,{value:l,node:s,indexPath:a}))return l===n&&(i=!0),"skip";if(i&&!this.getNodeDisabled(s))return o=s,"stop";l===n&&(i=!0)}}),o}),T(this,"getPreviousNode",(n,r={})=>{let i,o=!1;return Je(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{var u;if(this.isRootNode(s))return;const l=this.getNodeValue(s);if((u=r.skip)!=null&&u.call(r,{value:l,node:s,indexPath:a}))return"skip";if(l===n)return o=!0,"stop";this.getNodeDisabled(s)||(i=s)}}),o?i:void 0}),T(this,"getParentNodes",n=>{var o;const r=(o=this.resolveIndexPath(n))==null?void 0:o.slice();if(!r)return[];const i=[];for(;r.length>0;){r.pop();const s=this.at(r);s&&!this.isRootNode(s)&&i.unshift(s)}return i}),T(this,"getDescendantNodes",(n,r)=>{const i=this.resolveNode(n);if(!i)return[];const o=[];return Je(i,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{a.length!==0&&(!(r!=null&&r.withBranch)&&this.isBranchNode(s)||o.push(s))}}),o}),T(this,"getDescendantValues",(n,r)=>this.getDescendantNodes(n,r).map(o=>this.getNodeValue(o))),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,...i}=n;Je(this.rootNode,{...i,getChildren:this.getNodeChildren,onEnter:(o,s)=>{var a;if(!this.isRootNode(o))return r!=null&&r({value:this.getNodeValue(o),node:o,indexPath:s})?"skip":(a=i.onEnter)==null?void 0:a.call(i,o,s)}})}),T(this,"getPreviousSibling",n=>{const r=this.getParentNode(n);if(!r)return;const i=this.getNodeChildren(r);let o=n[n.length-1];for(;--o>=0;){const s=i[o];if(!this.getNodeDisabled(s))return s}}),T(this,"getNextSibling",n=>{const r=this.getParentNode(n);if(!r)return;const i=this.getNodeChildren(r);let o=n[n.length-1];for(;++o{const r=this.getParentNode(n);return r?this.getNodeChildren(r):[]}),T(this,"getValues",(n=this.rootNode)=>B1(n,{getChildren:this.getNodeChildren,transform:i=>[this.getNodeValue(i)]}).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 i=[];return Je(n,{getChildren:this.getNodeChildren,onEnter:(o,s)=>{var l;if(s.length===0)return;const a=this.getNodeValue(o);if((l=r.skip)!=null&&l.call(r,{value:a,node:o,indexPath:s}))return"skip";this.isBranchNode(o)&&this.isValidDepth(s,r.depth)&&i.push(this.getNodeValue(o))}}),i}),T(this,"flatten",(n=this.rootNode)=>j1(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,i)=>this.copy(q1(n,{at:r,nodes:i,getChildren:this.getNodeChildren,create:this._create}))),T(this,"copy",n=>new Fm({...this.options,rootNode:n})),T(this,"_replace",(n,r,i)=>this.copy(K1(n,{at:r,node:i,getChildren:this.getNodeChildren,create:this._create}))),T(this,"_move",(n,r,i)=>this.copy(Y1(n,{indexPaths:r,to:i,getChildren:this.getNodeChildren,create:this._create}))),T(this,"_remove",(n,r)=>this.copy(X1(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 o=[...n.slice(0,-1),n[n.length-1]+1];return this._insert(this.rootNode,o,r)}),T(this,"move",(n,r)=>this._move(this.rootNode,n,r)),T(this,"filter",n=>{const r=$1(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}},er={nodeToValue(e){return typeof e=="string"?e:gn(e)&&jt(e,"value")?e.value:""},nodeToString(e){return typeof e=="string"?e:gn(e)&&jt(e,"label")?e.label:er.nodeToValue(e)},isNodeDisabled(e){return gn(e)&&jt(e,"disabled")?!!e.disabled:!1},nodeToChildren(e){return e.children},nodeToChildrenCount(e){if(gn(e)&&jt(e,"childrenCount"))return e.childrenCount}},tr=new WeakMap,bo=new WeakMap,yo={},la=0,zu=e=>e&&(e.host||zu(e.parentNode)),Q1=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=zu(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),J1=new Set(["script","output","status","next-route-announcer"]),Z1=e=>J1.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),eS=(e,t)=>{const{parentNode:n,markerName:r,controlAttribute:i}=t,o=Q1(n,Array.isArray(e)?e:[e]);yo[r]||(yo[r]=new WeakMap);const s=yo[r],a=[],l=new Set,u=new Set(o),c=h=>{!h||l.has(h)||(l.add(h),c(h.parentNode))};o.forEach(c);const d=h=>{!h||u.has(h)||Array.prototype.forEach.call(h.children,m=>{if(l.has(m))d(m);else try{if(Z1(m))return;const g=m.getAttribute(i)==="true",p=(tr.get(m)||0)+1,v=(s.get(m)||0)+1;tr.set(m,p),s.set(m,v),a.push(m),p===1&&g&&bo.set(m,!0),v===1&&m.setAttribute(r,""),g||m.setAttribute(i,"true")}catch(f){console.error("[zag-js > ariaHidden] cannot operate on ",m,f)}})};return d(n),l.clear(),la++,()=>{a.forEach(h=>{const m=tr.get(h)-1,f=s.get(h)-1;tr.set(h,m),s.set(h,f),m||(bo.has(h)||h.removeAttribute(i),bo.delete(h)),f||h.removeAttribute(r)}),la--,la||(tr=new WeakMap,tr=new WeakMap,bo=new WeakMap,yo={})}},tS=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,nS=(e,t=tS(e),n="data-aria-hidden")=>{if(t)return eS(e,{parentNode:t,markerName:n,controlAttribute:"aria-hidden"})},rS=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function iS(e,t={}){const{defer:n=!0}=t,r=n?rS:o=>o(),i=[];return i.push(r(()=>{const s=(typeof e=="function"?e():e).filter(Boolean);s.length!==0&&i.push(nS(s))})),()=>{i.forEach(o=>o==null?void 0:o())}}var Du=M("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");Du.build();var Mu=e=>new po(e);Mu.empty=()=>new po({items:[]});var oS=e=>{var t;return((t=e.ids)==null?void 0:t.control)??`combobox:${e.id}:control`},sS=e=>{var t;return((t=e.ids)==null?void 0:t.input)??`combobox:${e.id}:input`},aS=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`combobox:${e.id}:content`},lS=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`combobox:${e.id}:popper`},cS=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`combobox:${e.id}:toggle-btn`},uS=e=>{var t;return((t=e.ids)==null?void 0:t.clearTrigger)??`combobox:${e.id}:clear-btn`},Kt=e=>e.getById(aS(e)),nr=e=>e.getById(sS(e)),Bu=e=>e.getById(lS(e)),$u=e=>e.getById(oS(e)),qr=e=>e.getById(cS(e)),ju=e=>e.getById(uS(e)),Kr=(e,t)=>{if(t==null)return null;const n=`[role=option][data-value="${CSS.escape(t)}"]`;return Dy(Kt(e),n)},Wu=e=>{const t=nr(e);e.isActiveElement(t)||t==null||t.focus({preventScroll:!0})},dS=e=>{const t=qr(e);e.isActiveElement(t)||t==null||t.focus({preventScroll:!0})},{guards:hS,createMachine:fS,choose:gS}=_c(),{and:xe,not:Ze}=hS;fS({props({props:e}){return{loopFocus:!0,openOnClick:!1,defaultValue:[],closeOnSelect:!e.multiple,allowCustomValue:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:t}){Ic(t)},collection:Mu.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:ct,hash(i){return i.join(",")},onChange(i){var u;const o=n(),s=o.get("selectedItems"),a=e("collection"),l=i.map(c=>s.find(h=>a.getItemValue(h)===c)||a.find(c));o.set("selectedItems",l),(u=e("onValueChange"))==null||u({value:i,items:l})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(i){var s;const o=e("collection").find(i);(s=e("onHighlightChange"))==null||s({highlightedValue:i,highlightedItem:o})}})),inputValue:t(()=>{let i=e("inputValue")||e("defaultInputValue")||"";const o=e("defaultValue")||e("value")||[];if(!i.trim()&&!e("multiple")){const s=e("collection").stringifyMany(o);i=Nt(e("selectionBehavior"),{preserve:i||s,replace:s,clear:""})}return{defaultValue:i,value:e("inputValue"),onChange(s){var u;const a=r(),l=(a.previousEvent||a).src;(u=e("onInputValueChange"))==null||u({inputValue:s,reason:l})}}}),highlightedItem:t(()=>{const i=e("highlightedValue");return{defaultValue:e("collection").find(i)}}),selectedItems:t(()=>{const i=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(i)}})}},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:i}){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()],()=>{i({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:gS([{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",Ze("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",Ze("hasHighlightedItem"),Ze("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:xe("isCustomValue",Ze("hasHighlightedItem"),Ze("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",Ze("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:xe("isCustomValue",Ze("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",Ze("hasHighlightedItem"),Ze("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:xe("isCustomValue",Ze("hasHighlightedItem"),Ze("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",Ze("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:xe("isCustomValue",Ze("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 vb(n)?n:!!(n!=null&&n({inputValue:t.get("inputValue")}))},restoreFocus:({event:e})=>e.restoreFocus==null?!0:!!e.restoreFocus,isChangeEvent:({event:e})=>{var t;return((t=e.previousEvent)==null?void 0:t.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:Wr(()=>Kt(n),{defer:!0,exclude:()=>[nr(n),qr(n),ju(n)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(i){i.preventDefault(),i.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},hideOtherElements({scope:e}){return iS([nr(e),Kt(e),qr(e),ju(e)])},trackPlacement({context:e,prop:t,scope:n}){const r=()=>$u(n)||qr(n),i=()=>Bu(n);return e.set("currentPlacement",t("positioning").placement),ht(r,i,{...t("positioning"),defer:!0,onComplete(o){e.set("currentPlacement",o.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:n,event:r}){const i=nr(n);let o=[];const s=u=>{const c=r.current().type.includes("POINTER"),d=e.get("highlightedValue");if(c||!d)return;const h=Kt(n),m=t("scrollToIndexFn");if(m){const p=t("collection").indexOf(d);m({index:p,immediate:u,getElement:()=>Kr(n,d)});return}const f=Kr(n,d),g=K(()=>{Yi(f,{rootEl:h,block:"nearest"})});o.push(g)},a=K(()=>s(!0));o.push(a);const l=Ki(i,{attributes:["aria-activedescendant"],callback:()=>s(!1)});return o.push(l),()=>{o.forEach(u=>u())}}},actions:{reposition({context:e,prop:t,scope:n,event:r}){ht(()=>$u(n),()=>Bu(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){var a;const{context:t,prop:n}=e,r=n("collection"),i=t.get("highlightedValue");if(!i||!r.has(i))return;const o=n("multiple")?qn(t.get("value"),i):[i];(a=n("onSelect"))==null||a({value:o,itemValue:i}),t.set("value",o);const s=Nt(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(o),clear:""});t.set("inputValue",s)},scrollToHighlightedItem({context:e,prop:t,scope:n}){Oc(()=>{const r=e.get("highlightedValue");if(r==null)return;const i=Kr(n,r),o=Kt(n),s=t("scrollToIndexFn");if(s){const a=t("collection").indexOf(r);s({index:a,immediate:!0,getElement:()=>Kr(n,r)});return}Yi(i,{rootEl:o,block:"nearest"})})},selectItem(e){const{context:t,event:n,flush:r,prop:i}=e;n.value!=null&&r(()=>{var a;const o=i("multiple")?qn(t.get("value"),n.value):[n.value];(a=i("onSelect"))==null||a({value:o,itemValue:n.value}),t.set("value",o);const s=Nt(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:i("collection").stringifyMany(o),clear:""});t.set("inputValue",s)})},clearItem(e){const{context:t,event:n,flush:r,prop:i}=e;n.value!=null&&r(()=>{const o=fn(t.get("value"),n.value);t.set("value",o);const s=Nt(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:i("collection").stringifyMany(o),clear:""});t.set("inputValue",s)})},setInitialFocus({scope:e}){K(()=>{Wu(e)})},setFinalFocus({scope:e}){K(()=>{const t=qr(e);(t==null?void 0:t.dataset.focusable)==null?Wu(e):dS(e)})},syncInputValue({context:e,scope:t,event:n}){const r=nr(t);r&&(r.value=e.get("inputValue"),queueMicrotask(()=>{n.current().type!=="INPUT.CHANGE"&&$b(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"),i=Nt(r,{replace:n("hasSelectedItems")?n("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",i)},setValue(e){const{context:t,flush:n,event:r,prop:i}=e;n(()=>{t.set("value",r.value);const o=Nt(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:i("collection").stringifyMany(r.value),clear:""});t.set("inputValue",o)})},clearSelectedItems(e){const{context:t,flush:n,prop:r}=e;n(()=>{t.set("value",[]);const i=Nt(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:r("collection").stringifyMany([]),clear:""});t.set("inputValue",i)})},scrollContentToTop({prop:e,scope:t}){const n=e("scrollToIndexFn");if(n){const r=e("collection").firstValue;n({index:0,immediate:!0,getElement:()=>Kr(t,r)})}else{const r=Kt(t);if(!r)return;r.scrollTop=0}},invokeOnOpen({prop:e,event:t}){var r;const n=Hu(t);(r=e("onOpenChange"))==null||r({open:!0,reason:n})},invokeOnClose({prop:e,event:t}){var r;const n=Hu(t);(r=e("onOpenChange"))==null||r({open:!1,reason:n})},highlightFirstItem({context:e,prop:t,scope:n}){(Kt(n)?queueMicrotask:K)(()=>{const i=t("collection").firstValue;i&&e.set("highlightedValue",i)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:n}){(Kt(n)?queueMicrotask:K)(()=>{const i=t("collection").lastValue;i&&e.set("highlightedValue",i)})},highlightNextItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),i=t("collection");r?(n=i.getNextValue(r),!n&&t("loopFocus")&&(n=i.firstValue)):n=i.firstValue,n&&e.set("highlightedValue",n)},highlightPrevItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),i=t("collection");r?(n=i.getPreviousValue(r),!n&&t("loopFocus")&&(n=i.lastValue)):n=i.lastValue,n&&e.set("highlightedValue",n)},highlightFirstSelectedItem({context:e,prop:t}){K(()=>{const[n]=t("collection").sort(e.get("value"));n&&e.set("highlightedValue",n)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:n}){K(()=>{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}){K(()=>{const r=t("collection");let i=null;n("hasSelectedItems")?i=r.sort(e.get("value"))[0]:i=r.lastValue,i&&e.set("highlightedValue",i)})},autofillInputValue({context:e,computed:t,prop:n,event:r,scope:i}){const o=nr(i),s=n("collection");if(!t("autoComplete")||!o||!r.keypress)return;const a=s.stringify(e.get("highlightedValue"));K(()=>{o.value=a||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{const{context:t,prop:n}=e,r=n("collection"),i=t.get("value"),o=i.map(a=>t.get("selectedItems").find(u=>r.getItemValue(u)===a)||r.find(a));t.set("selectedItems",o);const s=Nt(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(i),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 Hu(e){return(e.previousEvent||e).src}D()(["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"]),D()(["htmlFor"]),D()(["id"]),D()(["item","persistFocus"]);const pS=Du.extendWith("empty");var ca=M("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger");ca.build(),D()(["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"]);var Uu=M("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");Uu.build(),D()(["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 Gu=M("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");Gu.build();const qu=M("fieldset").parts("root","errorText","helperText","legend");qu.build();var Ku=M("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");Ku.build(),D()(["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"]),D()(["file"]);var Xu=M("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");Xu.build();var mS=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`hover-card:${e.id}:trigger`},vS=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`hover-card:${e.id}:content`},bS=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`hover-card:${e.id}:popper`},ua=e=>e.getById(mS(e)),yS=e=>e.getById(vS(e)),Yu=e=>e.getById(bS(e)),{not:xo,and:Qu}=Ut();Qu("isOpenControlled",xo("isPointer")),xo("isPointer"),Qu("isOpenControlled",xo("isPointer")),xo("isPointer"),D()(["closeDelay","dir","getRootNode","id","ids","disabled","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var Ju=M("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","root","tree");Ju.build();var Zu=e=>new Fu(e);Zu.empty=()=>new Fu({rootNode:{children:[]}});var xS=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.node)==null?void 0:r.call(n,t))??`tree:${e.id}:node:${t}`},yn=(e,t)=>{var n;t!=null&&((n=e.getById(xS(e,t)))==null||n.focus())};function SS(e,t,n){const r=e.getDescendantValues(t),i=r.every(o=>n.includes(o));return Gn(i?fn(n,...r):hn(n,...r))}function So(e,t){const{context:n,prop:r,refs:i}=e;if(!r("loadChildren")){n.set("expandedValue",g=>Gn(hn(g,...t)));return}const o=n.get("loadingStatus"),[s,a]=rc(t,g=>o[g]==="loaded");if(s.length>0&&n.set("expandedValue",g=>Gn(hn(g,...s))),a.length===0)return;const l=r("collection"),[u,c]=rc(a,g=>{const p=l.findNode(g);return l.getNodeChildren(p).length>0});if(u.length>0&&n.set("expandedValue",g=>Gn(hn(g,...u))),c.length===0)return;n.set("loadingStatus",g=>({...g,...c.reduce((p,v)=>({...p,[v]:"loading"}),{})}));const d=c.map(g=>{const p=l.getIndexPath(g),v=l.getValuePath(p),b=l.findNode(g);return{id:g,indexPath:p,valuePath:v,node:b}}),h=i.get("pendingAborts"),m=r("loadChildren");Bb(m,()=>"[zag-js/tree-view] `loadChildren` is required for async expansion");const f=d.map(({id:g,indexPath:p,valuePath:v,node:b})=>{const S=h.get(g);S&&(S.abort(),h.delete(g));const y=new AbortController;return h.set(g,y),m({valuePath:v,indexPath:p,node:b,signal:y.signal})});Promise.allSettled(f).then(g=>{var y,E;const p=[],v=[],b=n.get("loadingStatus");let S=r("collection");g.forEach((P,N)=>{const{id:O,indexPath:I,node:R,valuePath:z}=d[N];P.status==="fulfilled"?(b[O]="loaded",p.push(O),S=S.replace(I,{...R,children:P.value})):(h.delete(O),Reflect.deleteProperty(b,O),v.push({node:R,error:P.reason,indexPath:I,valuePath:z}))}),n.set("loadingStatus",b),p.length&&(n.set("expandedValue",P=>Gn(hn(P,...p))),(y=r("onLoadChildrenComplete"))==null||y({collection:S})),v.length&&((E=r("onLoadChildrenError"))==null||E({nodes:v}))})}function Xt(e){const{prop:t,context:n}=e;return function({indexPath:i}){return t("collection").getValuePath(i).slice(0,-1).some(s=>!n.get("expandedValue").includes(s))}}var{and:Et}=Ut();Et("isMultipleSelection","moveFocus"),Et("isShiftKey","isMultipleSelection"),Et("isShiftKey","isMultipleSelection"),Et("isBranchFocused","isBranchExpanded"),Et("isShiftKey","isMultipleSelection"),Et("isShiftKey","isMultipleSelection"),Et("isCtrlKey","isMultipleSelection"),Et("isShiftKey","isMultipleSelection"),Et("isCtrlKey","isMultipleSelection"),Et("isShiftKey","isMultipleSelection"),D()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren"]),D()(["node","indexPath"]);var ed=M("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText");ed.build(),D()(["collection","defaultHighlightedValue","defaultValue","dir","disabled","deselectable","disallowSelectAll","getRootNode","highlightedValue","id","ids","loopFocus","onHighlightChange","onSelect","onValueChange","orientation","scrollToIndexFn","selectionMode","selectOnHighlight","typeahead","value"]),D()(["item","highlightOnHover"]),D()(["id"]),D()(["htmlFor"]);const CS=ed.extendWith("empty");var td=M("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");td.build();var nd=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`menu:${e.id}:trigger`},wS=e=>{var t;return((t=e.ids)==null?void 0:t.contextTrigger)??`menu:${e.id}:ctx-trigger`},rd=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`menu:${e.id}:content`},kS=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`menu:${e.id}:popper`},da=(e,t)=>`${e.id}/${t}`,xn=e=>(e==null?void 0:e.dataset.value)??null,Yt=e=>e.getById(rd(e)),id=e=>e.getById(kS(e)),Co=e=>e.getById(nd(e)),ES=(e,t)=>t?e.getById(da(e,t)):null,ha=e=>e.getById(wS(e)),Xr=e=>{const n=`[role^="menuitem"][data-ownedby=${CSS.escape(rd(e))}]:not([data-disabled])`;return Ji(Yt(e),n)},OS=e=>Fr(Xr(e)),IS=e=>Is(Xr(e)),fa=(e,t)=>t?e.id===t||e.dataset.value===t:!1,RS=(e,t)=>{const n=Xr(e),r=n.findIndex(i=>fa(i,t.value));return fb(n,r,{loop:t.loop??t.loopFocus})},PS=(e,t)=>{const n=Xr(e),r=n.findIndex(i=>fa(i,t.value));return pb(n,r,{loop:t.loop??t.loopFocus})},TS=(e,t)=>{const n=Xr(e),r=n.find(i=>fa(i,t.value));return Mr(n,{state:t.typeaheadState,key:t.key,activeId:(r==null?void 0:r.id)??null})},NS=e=>{var t;return!!((t=e==null?void 0:e.getAttribute("role"))!=null&&t.startsWith("menuitem"))&&!!(e!=null&&e.hasAttribute("aria-controls"))},_S="menu:select";function AS(e,t){if(!e)return;const n=Oe(e),r=new n.CustomEvent(_S,{detail:{value:t}});e.dispatchEvent(r)}var{not:rt,and:rr,or:VS}=Ut();rt("isSubmenu"),VS("isOpenAutoFocusEvent","isArrowDownEvent"),rr(rt("isTriggerItem"),"isOpenControlled"),rt("isTriggerItem"),rr("isSubmenu","isOpenControlled"),rt("isPointerSuspended"),rr(rt("isPointerSuspended"),rt("isTriggerItem")),rr(rt("isTriggerItemHighlighted"),rt("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),rr(rt("isTriggerItemHighlighted"),rt("isHighlightedItemEditable"),"closeOnSelect"),rr(rt("isTriggerItemHighlighted"),rt("isHighlightedItemEditable"));function od(e){let t=e.parent;for(;t&&t.context.get("isSubmenu");)t=t.refs.get("parent");t==null||t.send({type:"CLOSE"})}function LS(e,t){return e?C1(e,t):!1}function FS(e,t,n){const r=Object.keys(e).length>0;if(!t)return null;if(!r)return da(n,t);for(const i in e){const o=e[i],s=nd(o.scope);if(s===t)return s}return da(n,t)}D()(["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"]),D()(["closeOnSelect","disabled","value","valueText"]),D()(["htmlFor"]),D()(["id"]),D()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);let ga=new Map,pa=!1;try{pa=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let wo=!1;try{wo=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const sd={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class zS{format(t){let n="";if(!pa&&this.options.signDisplay!=null?n=MS(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!wo){var r;let{unit:i,unitDisplay:o="short",locale:s}=this.resolvedOptions();if(!i)return n;let a=(r=sd[i])===null||r===void 0?void 0:r[o];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= 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= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!pa&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!wo&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=DS(t,n),this.options=n}}function DS(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!wo){var r;let{unit:s,unitDisplay:a="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=sd[s])===null||r===void 0)&&r[a]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((s,a)=>s[0]0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),o=e.format(n),s=i.replace(o,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(o,"!!!").replace(s,"+").replace("!!!",o)}else return e.format(n)}}const BS=new RegExp("^.*\\(.*\\).*$"),$S=["latn","arab","hanidec","deva","beng","fullwide"];class ad{parse(t){return ma(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return ma(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return ma(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const ld=new Map;function ma(e,t,n){let r=cd(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of $S)if(i!==r.options.numberingSystem){let o=cd(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(o.isValidPartialNumber(n))return o}}return r}function cd(e,t){let n=e+(t?Object.entries(t).sort((i,o)=>i[0]-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,o;let s={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)+2,20)};return new ad(this.locale,s).parse(new zS(this.locale,s).format(r))}return this.options.currencySign==="accounting"&&BS.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=Yr(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&this.symbols.group&&(t=Yr(t," ",this.symbols.group),t=Yr(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=Yr(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=HS(t,this.formatter,this.options,n);var r,i;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const ud=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),WS=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function HS(e,t,n,r){var i,o,s,a;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),u=l.formatToParts(-10000.111),c=l.formatToParts(10000.111),d=WS.map(R=>l.formatToParts(R));var h;let m=(h=(i=u.find(R=>R.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&h!==void 0?h:"-",f=(o=c.find(R=>R.type==="plusSign"))===null||o===void 0?void 0:o.value;!f&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(f="+");let p=(s=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(R=>R.type==="decimal"))===null||s===void 0?void 0:s.value,v=(a=u.find(R=>R.type==="group"))===null||a===void 0?void 0:a.value,b=u.filter(R=>!ud.has(R.type)).map(R=>dd(R.value)),S=d.flatMap(R=>R.filter(z=>!ud.has(z.type)).map(z=>dd(z.value))),y=[...new Set([...b,...S])].sort((R,z)=>z.length-R.length),E=y.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${y.join("|")}|[\\p{White_Space}]`,"gu"),P=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),N=new Map(P.map((R,z)=>[R,z])),O=new RegExp(`[${P.join("")}]`,"g");return{minusSign:m,plusSign:f,decimal:p,group:v,literals:E,numeral:O,index:R=>String(N.get(R))}}function Yr(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function dd(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var hd=M("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");hd.build();var US=e=>{var t;return((t=e.ids)==null?void 0:t.input)??`number-input:${e.id}:input`},GS=e=>{var t;return((t=e.ids)==null?void 0:t.incrementTrigger)??`number-input:${e.id}:inc`},qS=e=>{var t;return((t=e.ids)==null?void 0:t.decrementTrigger)??`number-input:${e.id}:dec`},fd=e=>`number-input:${e.id}:cursor`,ko=e=>e.getById(US(e)),KS=e=>e.getById(GS(e)),XS=e=>e.getById(qS(e)),gd=e=>e.getDoc().getElementById(fd(e)),YS=(e,t)=>{let n=null;return t==="increment"&&(n=KS(e)),t==="decrement"&&(n=XS(e)),n},QS=(e,t)=>{if(!wc())return eC(e,t),()=>{var n;(n=gd(e))==null||n.remove()}},JS=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")}},ZS=(e,t)=>{const{point:n,isRtl:r,event:i}=t,o=e.getWin(),s=Ns(i.movementX,o.devicePixelRatio),a=Ns(i.movementY,o.devicePixelRatio);let l=s>0?"increment":s<0?"decrement":null;r&&l==="increment"&&(l="decrement"),r&&l==="decrement"&&(l="increment");const u={x:n.x+s,y:n.y+a},c=o.innerWidth,d=Ns(7.5,o.devicePixelRatio);return u.x=Tb(u.x+d,c)-d,{hint:l,point:u}},eC=(e,t)=>{const n=e.getDoc(),r=n.createElement("div");r.className="scrubber--cursor",r.id=fd(e),Object.assign(r.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:Hb,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),r.innerHTML=` + */var xe=typeof Symbol=="function"&&Symbol.for,Os=xe?Symbol.for("react.element"):60103,Is=xe?Symbol.for("react.portal"):60106,$i=xe?Symbol.for("react.fragment"):60107,Bi=xe?Symbol.for("react.strict_mode"):60108,ji=xe?Symbol.for("react.profiler"):60114,Wi=xe?Symbol.for("react.provider"):60109,Hi=xe?Symbol.for("react.context"):60110,Rs=xe?Symbol.for("react.async_mode"):60111,Ui=xe?Symbol.for("react.concurrent_mode"):60111,Gi=xe?Symbol.for("react.forward_ref"):60112,qi=xe?Symbol.for("react.suspense"):60113,Jv=xe?Symbol.for("react.suspense_list"):60120,Ki=xe?Symbol.for("react.memo"):60115,Xi=xe?Symbol.for("react.lazy"):60116,Zv=xe?Symbol.for("react.block"):60121,eb=xe?Symbol.for("react.fundamental"):60117,tb=xe?Symbol.for("react.responder"):60118,nb=xe?Symbol.for("react.scope"):60119;function Ye(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Os:switch(e=e.type,e){case Rs:case Ui:case $i:case ji:case Bi:case qi:return e;default:switch(e=e&&e.$$typeof,e){case Hi:case Gi:case Xi:case Ki:case Wi:return e;default:return t}}case Is:return t}}}function nc(e){return Ye(e)===Ui}te.AsyncMode=Rs,te.ConcurrentMode=Ui,te.ContextConsumer=Hi,te.ContextProvider=Wi,te.Element=Os,te.ForwardRef=Gi,te.Fragment=$i,te.Lazy=Xi,te.Memo=Ki,te.Portal=Is,te.Profiler=ji,te.StrictMode=Bi,te.Suspense=qi,te.isAsyncMode=function(e){return nc(e)||Ye(e)===Rs},te.isConcurrentMode=nc,te.isContextConsumer=function(e){return Ye(e)===Hi},te.isContextProvider=function(e){return Ye(e)===Wi},te.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Os},te.isForwardRef=function(e){return Ye(e)===Gi},te.isFragment=function(e){return Ye(e)===$i},te.isLazy=function(e){return Ye(e)===Xi},te.isMemo=function(e){return Ye(e)===Ki},te.isPortal=function(e){return Ye(e)===Is},te.isProfiler=function(e){return Ye(e)===ji},te.isStrictMode=function(e){return Ye(e)===Bi},te.isSuspense=function(e){return Ye(e)===qi},te.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===$i||e===Ui||e===ji||e===Bi||e===qi||e===Jv||typeof e=="object"&&e!==null&&(e.$$typeof===Xi||e.$$typeof===Ki||e.$$typeof===Wi||e.$$typeof===Hi||e.$$typeof===Gi||e.$$typeof===eb||e.$$typeof===tb||e.$$typeof===nb||e.$$typeof===Zv)},te.typeOf=Ye,tc.exports=te;var rb=tc.exports,rc=rb,ib={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ob={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ic={};ic[rc.ForwardRef]=ib,ic[rc.Memo]=ob;var sb=!0;function oc(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var Ps=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||sb===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},Ts=function(t,n,r){Ps(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function ab(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=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(i){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 lb={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},cb=/[A-Z]|^ms/g,ub=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sc=function(t){return t.charCodeAt(1)===45},ac=function(t){return t!=null&&typeof t!="boolean"},Ns=Hl(function(e){return sc(e)?e:e.replace(cb,"-$&").toLowerCase()}),lc=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(ub,function(r,i,o){return xt={name:i,styles:o,next:xt},i})}return lb[t]!==1&&!sc(t)&&typeof n=="number"&&n!==0?n+"px":n};function jr(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 i=n;if(i.anim===1)return xt={name:i.name,styles:i.styles,next:xt},i.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)xt={name:s.name,styles:s.styles,next:xt},s=s.next;var a=o.styles+";";return a}return db(e,t,n)}case"function":{if(e!==void 0){var l=xt,c=n(e);return xt=l,jr(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function db(e,t,n){var r="";if(Array.isArray(n))for(var i=0;ir==null?void 0:r(...n))}}const bb=(...e)=>e.map(t=>{var n;return(n=t==null?void 0:t.trim)==null?void 0:n.call(t)}).filter(Boolean).join(" "),yb=/^on[A-Z]/;function Wr(...e){let t={};for(let n of e){for(let r in t){if(yb.test(r)&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=vb(t[r],n[r]);continue}if(r==="className"||r==="class"){t[r]=bb(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}function xb(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function Cb(...e){return t=>{e.forEach(n=>{xb(n,t)})}}function Hr(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}const tt=(...e)=>e.filter(Boolean).map(t=>t.trim()).join(" ");function Sb(e){return e.default||e}const $e=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),Ct=e=>typeof e=="string",zs=e=>typeof e=="function";function wb(e){var n;const t=w.version;return!Ct(t)||t.startsWith("18.")?e==null?void 0:e.ref:(n=e==null?void 0:e.props)==null?void 0:n.ref}const mc=(...e)=>{const t=e.reduce((n,r)=>(r!=null&&r.forEach(i=>n.add(i)),n),new Set([]));return Array.from(t)};function kb(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:i="Provider",errorMessage:o,defaultValue:s}=e,a=T.createContext(s);a.displayName=t;function l(){var u;const c=T.useContext(a);if(!c&&n){const d=new Error(o??kb(r,i));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[a.Provider,l,a]}const[Eb,Yi]=Zn({name:"ChakraContext",strict:!0,providerName:""});function Ob(e){const{value:t,children:n}=e;return S.jsxs(Eb,{value:t,children:[!t._config.disableLayers&&S.jsx(pc,{styles:t.layers.atRule}),S.jsx(pc,{styles:t._global}),n]})}const Ib=(e,t)=>{const n={},r={},i=Object.keys(e);for(const o of i)t(o)?r[o]=e[o]:n[o]=e[o];return[r,n]},er=(e,t)=>{const n=zs(t)?t:r=>t.includes(r);return Ib(e,n)},Rb=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function Pb(e){return typeof e=="string"&&Rb.has(e)}function Tb(e,t,n){const{css:r,isValidProperty:i}=Yi(),{children:o,...s}=e,a=T.useMemo(()=>{const[h,m]=er(s,y=>n(y,t.variantKeys)),[f,g]=er(m,t.variantKeys),[p,b]=er(g,i);return{forwardedProps:h,variantProps:f,styleProps:p,elementProps:b}},[t.variantKeys,n,s,i]),{css:l,...c}=a.styleProps,u=T.useMemo(()=>{const h={...a.variantProps};return t.variantKeys.includes("colorPalette")||(h.colorPalette=s.colorPalette),t.variantKeys.includes("orientation")||(h.orientation=s.orientation),t(h)},[t,a.variantProps,s.colorPalette,s.orientation]);return{styles:T.useMemo(()=>r(u,...Nb(l),c),[r,u,l,c]),props:{...a.forwardedProps,...a.elementProps,children:o}}}const Nb=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),_b=Sb(Sv),Ab=e=>e!=="theme",Vb=(e,t,n)=>{let r;if(t){const i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?o=>e.__emotion_forwardProp(o)&&i(o):i}return typeof r!="function"&&n&&(r=e.__emotion_forwardProp),r};let Fb=typeof document<"u";const vc=({cache:e,serialized:t,isStringTag:n})=>{Ps(e,t,n);const r=dc(()=>Ts(e,t,n));if(!Fb&&r!==void 0){let i=t.name,o=t.next;for(;o!==void 0;)i=tt(i,o.name),o=o.next;return S.jsx("style",{"data-emotion":tt(e.key,i),dangerouslySetInnerHTML:{__html:r},nonce:e.sheet.nonce})}return null},bc={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"]},Lb=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Ds=((e,t={},n={})=>{if(Lb(bc,e)){n.forwardProps||(n.forwardProps=[]);const c=bc[e];n.forwardProps=mc([...n.forwardProps,...c])}const r=e.__emotion_real===e,i=r&&e.__emotion_base||e;let o,s;n!==void 0&&(o=n.label,s=n.target);let a=[];const l=As((c,u,d)=>{var Ne;const{cva:h,isValidProperty:m}=Yi(),f=t.__cva__?t:h(t),g=zb(e.__emotion_cva,f),p=G=>(ie,fe)=>G.includes(ie)?!0:!(fe!=null&&fe.includes(ie))&&!m(ie);!n.shouldForwardProp&&n.forwardProps&&(n.shouldForwardProp=p(n.forwardProps));const b=(G,ie)=>{const fe=typeof e=="string"&&e.charCodeAt(0)>96?_b:Ab,j=!(ie!=null&&ie.includes(G))&&!m(G);return fe(G)&&j},y=Vb(e,n,r)||b,C=w.useMemo(()=>Object.assign({},n.defaultProps,Hr(c)),[c]),{props:x,styles:E}=Tb(C,g,y);let P="",_=[E],O=x;if(x.theme==null){O={};for(let G in x)O[G]=x[G];O.theme=w.useContext(Vs)}typeof x.className=="string"?P=oc(u.registered,_,x.className):x.className!=null&&(P=tt(P,x.className));const I=_s(a.concat(_),u.registered,O);I.styles&&(P=tt(P,`${u.key}-${I.name}`)),s!==void 0&&(P=tt(P,s));const R=!y("as");let z=R&&x.as||i,L={};for(let G in x)if(!(R&&G==="as")){if(Pb(G)){const ie=G.replace("html","").toLowerCase();L[ie]=x[G];continue}y(G)&&(L[G]=x[G])}let X=P.trim();X?L.className=X:Reflect.deleteProperty(L,"className"),L.ref=d;const Z=n.forwardAsChild||((Ne=n.forwardProps)==null?void 0:Ne.includes("asChild"));if(x.asChild&&!Z){const G=w.isValidElement(x.children)?w.Children.only(x.children):w.Children.toArray(x.children).find(w.isValidElement);if(!G)throw new Error("[chakra-ui > factory] No valid child found");z=G.type,L.children=null,Reflect.deleteProperty(L,"asChild"),L=Wr(L,G.props),L.ref=Cb(d,wb(G))}return L.as&&Z?(L.as=void 0,S.jsxs(w.Fragment,{children:[S.jsx(vc,{cache:u,serialized:I,isStringTag:typeof z=="string"}),S.jsx(z,{asChild:!0,...L,children:S.jsx(x.as,{children:L.children})})]})):S.jsxs(w.Fragment,{children:[S.jsx(vc,{cache:u,serialized:I,isStringTag:typeof z=="string"}),S.jsx(z,{...L})]})});return l.displayName=o!==void 0?o:`chakra(${typeof i=="string"?i:i.displayName||i.name||"Component"})`,l.__emotion_real=l,l.__emotion_base=i,l.__emotion_forwardProp=n.shouldForwardProp,l.__emotion_cva=t,Object.defineProperty(l,"toString",{value(){return`.${s}`}}),l}).bind(),Ms=new Map,Ve=new Proxy(Ds,{apply(e,t,n){return Ds(...n)},get(e,t){return Ms.has(t)||Ms.set(t,Ds(t)),Ms.get(t)}}),zb=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),At=Ve("div");At.displayName="Box";const Db=Object.freeze({}),Mb=Object.freeze({});function $b(e){const{key:t,recipe:n}=e,r=Yi();return T.useMemo(()=>{const i=n||(t!=null?r.getRecipe(t):{});return r.cva(structuredClone(i))},[t,n,r])}const Bb=e=>e.charAt(0).toUpperCase()+e.slice(1);function Ur(e){const{key:t,recipe:n}=e,r=Bb(t||n.className||"Component"),[i,o]=Zn({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`});function s(c){const{unstyled:u,...d}=c,h=$b({key:t,recipe:d.recipe||n}),[m,f]=T.useMemo(()=>h.splitVariantProps(d),[h,d]);return{styles:u?Db:h(m),className:h.className,props:f}}const a=(c,u)=>{const d=Ve(c,{},u),h=T.forwardRef((m,f)=>{const g=o(),p=T.useMemo(()=>Wr(g,m),[m,g]),{styles:b,className:y,props:C}=s(p);return S.jsx(d,{...C,ref:f,css:[b,p.css],className:tt(y,p.className)})});return h.displayName=c.displayName||c.name,h};function l(){return i}return{withContext:a,PropsProvider:i,withPropsProvider:l,usePropsContext:o,useRecipeResult:s}}function $s(e){return e==null?[]:Array.isArray(e)?e:[e]}var Gr=e=>e[0],Bs=e=>e[e.length-1],jb=(e,t)=>e.indexOf(t)!==-1,bn=(e,...t)=>e.concat(t),yn=(e,...t)=>e.filter(n=>!t.includes(n)),tr=e=>Array.from(new Set(e)),js=(e,t)=>{const n=new Set(t);return e.filter(r=>!n.has(r))},nr=(e,t)=>jb(e,t)?yn(e,t):bn(e,t);function yc(e,t,n={}){const{step:r=1,loop:i=!0}=n,o=t+r,s=e.length,a=s-1;return t===-1?r>0?0:a:o<0?i?a:0:o>=s?i?0:t>s?s:t:o}function Wb(e,t,n={}){return e[yc(e,t,n)]}function Hb(e,t,n={}){const{step:r=1,loop:i=!0}=n;return yc(e,t,{step:-r,loop:i})}function Ub(e,t,n={}){return e[Hb(e,t,n)]}function xc(e,t){return e.reduce(([n,r],i)=>(t(i)?n.push(i):r.push(i),[n,r]),[[],[]])}var Cc=e=>(e==null?void 0:e.constructor.name)==="Array",Gb=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof(e==null?void 0:e.isEqual)=="function"&&typeof(t==null?void 0:t.isEqual)=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(Cc(e)&&Cc(t))return Gb(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 i=0;iArray.isArray(e),qb=e=>e===!0||e===!1,Sc=e=>e!=null&&typeof e=="object",xn=e=>Sc(e)&&!qr(e),Ws=e=>typeof e=="string",wc=e=>typeof e=="function",Kb=e=>e==null,Ut=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Xb=e=>Object.prototype.toString.call(e),kc=Function.prototype.toString,Yb=kc.call(Object),Qb=e=>{if(!Sc(e)||Xb(e)!="[object Object]"||e0(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const n=Ut(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&kc.call(n)==Yb},Jb=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,Zb=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,e0=e=>Jb(e)||Zb(e),t0=()=>{},Qi=(...e)=>(...t)=>{e.forEach(function(n){n==null||n(...t)})};function Vt(e,t,...n){var i;if(e in t){const o=t[e];return wc(o)?o(...n):o}const r=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw(i=Error.captureStackTrace)==null||i.call(Error,r,Vt),r}var Ec=(e,t)=>{var n;try{return e()}catch(r){return r instanceof Error&&((n=Error.captureStackTrace)==null||n.call(Error,r,Ec)),t==null?void 0:t()}},{floor:Oc,abs:Ic,round:Ji,min:n0,max:r0,pow:i0,sign:o0}=Math,Hs=e=>Number.isNaN(e),Gt=e=>Hs(e)?0:e,Rc=(e,t)=>(e%t+t)%t,s0=(e,t)=>(e%t+t)%t,a0=(e,t)=>Gt(e)>=t,l0=(e,t)=>Gt(e)<=t,c0=(e,t,n)=>{const r=Gt(e),i=t==null||r>=t,o=n==null||r<=n;return i&&o},u0=(e,t,n)=>Ji((Gt(e)-t)/n)*n+t,Be=(e,t,n)=>n0(r0(Gt(e),t),n),d0=(e,t,n)=>(Gt(e)-t)/(n-t),h0=(e,t,n,r)=>Be(u0(e*(n-t)+t,t,r),t,n),Pc=(e,t)=>{let n=e,r=t.toString(),i=r.indexOf("."),o=i>=0?r.length-i:0;if(o>0){let s=i0(10,o);n=Ji(n*s)/s}return n},Us=(e,t)=>typeof t=="number"?Oc(e*t+.5)/t:Ji(e),Tc=(e,t,n,r)=>{const i=t!=null?Number(t):0,o=Number(n),s=(e-i)%r;let a=Ic(s)*2>=r?e+o0(s)*(r-Ic(s)):e-s;if(a=Pc(a,r),!Hs(i)&&ao){const l=Oc((o-i)/r),c=i+l*r;a=l<=0||c{const r=Math.pow(n,t);return Ji(e*r)/r},Nc=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},_c=(e,t,n)=>{let r=t==="+"?e+n:e-n;if(e%1!==0||n%1!==0){const i=10**Math.max(Nc(e),Nc(n));e=Math.round(e*i),n=Math.round(n*i),r=t==="+"?e+n:e-n,r/=i}return r},f0=(e,t)=>_c(Gt(e),"+",t),g0=(e,t)=>_c(Gt(e),"-",t);function Ac(e){if(!Qb(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),n={};for(const r of t){const i=e[r];i!==void 0&&(n[r]=Ac(i))}return n}function p0(e,t=Object.is){let n={...e};const r=new Set,i=u=>(r.add(u),()=>r.delete(u)),o=()=>{r.forEach(u=>u())};return{subscribe:i,get:u=>n[u],set:(u,d)=>{t(n[u],d)||(n[u]=d,o())},update:u=>{let d=!1;for(const h in u){const m=u[h];m!==void 0&&!t(n[h],m)&&(n[h]=m,d=!0)}d&&o()},snapshot:()=>({...n})}}function Vc(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function m0(e,t){if(e==null)throw new Error(t())}function v0(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function b0(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:o,defaultValue:s}=e,a=T.createContext(s);a.displayName=t;function l(){var u;const c=T.useContext(a);if(!c&&n){const d=new Error(o??v0(r,i));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[a.Provider,l,a]}function y0(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 Fc=e=>Math.max(0,Math.min(1,e)),x0=(e,t)=>e.map((n,r)=>e[(Math.max(t,0)+r)%e.length]),C0=()=>{},Zi=e=>typeof e=="object"&&e!==null,S0=2147483647,w0=1,k0=9,E0=11,je=e=>Zi(e)&&e.nodeType===w0&&typeof e.nodeName=="string",Lc=e=>Zi(e)&&e.nodeType===k0,O0=e=>Zi(e)&&e===e.window,zc=e=>je(e)?e.localName||"":"#document";function I0(e){return["html","body","#document"].includes(zc(e))}var R0=e=>Zi(e)&&e.nodeType!==void 0,Kr=e=>R0(e)&&e.nodeType===E0&&"host"in e,P0=e=>je(e)&&e.localName==="input",T0=e=>je(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1,N0=/(textarea|select)/;function _0(e){if(e==null||!je(e))return!1;try{return P0(e)&&e.selectionStart!=null||N0.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function Cn(e,t){var r;if(!e||!t||!je(e)||!je(t))return!1;const n=(r=t.getRootNode)==null?void 0:r.call(t);if(e===t||e.contains(t))return!0;if(n&&Kr(n)){let i=t;for(;i;){if(e===i)return!0;i=i.parentNode||i.host}}return!1}function St(e){return Lc(e)?e:O0(e)?e.document:(e==null?void 0:e.ownerDocument)??document}function A0(e){return St(e).documentElement}function Ce(e){var t;return Kr(e)?Ce(e.host):Lc(e)?e.defaultView??window:je(e)?((t=e.ownerDocument)==null?void 0:t.defaultView)??window:window}function V0(e){if(zc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Kr(e)&&e.host||A0(e);return Kr(t)?t.host:t}var Gs=new WeakMap;function Dc(e){return Gs.has(e)||Gs.set(e,Ce(e).getComputedStyle(e)),Gs.get(e)}var eo=()=>typeof document<"u";function F0(){const e=navigator.userAgentData;return(e==null?void 0:e.platform)??navigator.platform}function L0(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}var qs=e=>eo()&&e.test(F0()),Mc=e=>eo()&&e.test(L0()),z0=e=>eo()&&e.test(navigator.vendor),$c=()=>eo()&&!!navigator.maxTouchPoints,D0=()=>qs(/^iPhone/i),M0=()=>qs(/^iPad/i)||to()&&navigator.maxTouchPoints>1,Ks=()=>D0()||M0(),$0=()=>to()||Ks(),to=()=>qs(/^Mac/i),Bc=()=>$0()&&z0(/apple/i),B0=()=>Mc(/Firefox/i),j0=()=>Mc(/Android/i);function W0(e){var t,n,r;return((t=e.composedPath)==null?void 0:t.call(e))??((r=(n=e.nativeEvent)==null?void 0:n.composedPath)==null?void 0:r.call(n))}function qt(e){const t=W0(e);return(t==null?void 0:t[0])??e.target}function H0(e){return K0(e).isComposing||e.keyCode===229}function U0(e){return e.pointerType===""&&e.isTrusted?!0:j0()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var G0=e=>e.button===2||to()&&e.ctrlKey&&e.button===0,q0=e=>"touches"in e&&e.touches.length>0;function K0(e){return e.nativeEvent??e}function X0(e,t="client"){const n=q0(e)?e.touches[0]||e.changedTouches[0]:e;return{x:n[`${t}X`],y:n[`${t}Y`]}}var Re=(e,t,n,r)=>{const i=typeof e=="function"?e():e;return i==null||i.addEventListener(t,n,r),()=>{i==null||i.removeEventListener(t,n,r)}};function Y0(e,t){const{type:n="HTMLInputElement",property:r="value"}=t,i=Ce(e)[n].prototype;return Object.getOwnPropertyDescriptor(i,r)??{}}function Q0(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function no(e,t,n="value"){var i;if(!e)return;const r=Q0(e);r&&((i=Y0(e,{type:r,property:n}).set)==null||i.call(e,t)),e.setAttribute(n,t)}function J0(e,t){const{value:n,bubbles:r=!0}=t;if(!e)return;const i=Ce(e);e instanceof i.HTMLInputElement&&(no(e,`${n}`),e.dispatchEvent(new i.Event("input",{bubbles:r})))}function Z0(e){return ey(e)?e.form:e.closest("form")}function ey(e){return e.matches("textarea, input, select, button")}function ty(e,t){if(!e)return;const n=Z0(e),r=i=>{i.defaultPrevented||t()};return n==null||n.addEventListener("reset",r,{passive:!0}),()=>n==null?void 0:n.removeEventListener("reset",r)}function ny(e,t){const n=e==null?void 0:e.closest("fieldset");if(!n)return;t(n.disabled);const r=Ce(n),i=new r.MutationObserver(()=>t(n.disabled));return i.observe(n,{attributes:!0,attributeFilter:["disabled"]}),()=>i.disconnect()}function Xs(e,t){if(!e)return;const{onFieldsetDisabledChange:n,onFormReset:r}=t,i=[ty(e,r),ny(e,n)];return()=>i.forEach(o=>o==null?void 0:o())}var ry=e=>je(e)&&e.tagName==="IFRAME",iy=e=>parseInt(e.getAttribute("tabindex")||"0",10)<0,jc="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";function Ys(e){return!e||e.closest("[inert]")?!1:e.matches(jc)&&T0(e)}function Wc(e,t){if(!e)return[];const r=Array.from(e.querySelectorAll(jc)).filter(oy);return r.forEach((i,o)=>{if(ry(i)&&i.contentDocument){const s=i.contentDocument.body,a=Wc(s);r.splice(o,1,...a)}}),r.length,r}function oy(e){return e!=null&&e.tabIndex>0?!0:Ys(e)&&!iy(e)}function Qs(e){const{root:t,getInitialEl:n,filter:r,enabled:i=!0}=e;if(!i)return;let o=null;if(o||(o=typeof n=="function"?n():n),o||(o=t==null?void 0:t.querySelector("[data-autofocus],[autofocus]")),!o){const s=Wc(t);o=r?s.filter(r)[0]:s[0]}return o||t||void 0}function Hc(e){const t=new Set;function n(r){const i=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(i))}return n(()=>n(e)),function(){t.forEach(i=>i())}}function K(e){let t;const n=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(n),t==null||t()}}function sy(e,t,n){const r=K(()=>{e.removeEventListener(t,i,!0),n()}),i=()=>{r(),n()};return e.addEventListener(t,i,{once:!0,capture:!0}),r}function ay(e,t){if(!e)return;const{attributes:n,callback:r}=t,i=e.ownerDocument.defaultView||window,o=new i.MutationObserver(s=>{for(const a of s)a.type==="attributes"&&a.attributeName&&n.includes(a.attributeName)&&r(a)});return o.observe(e,{attributes:!0,attributeFilter:n}),()=>o.disconnect()}function ro(e,t){const{defer:n}=t,r=n?K:o=>o(),i=[];return i.push(r(()=>{const o=typeof e=="function"?e():e;i.push(ay(o,t))})),()=>{i.forEach(o=>o==null?void 0:o())}}function Uc(e){const t=()=>{const n=Ce(e);e.dispatchEvent(new n.MouseEvent("click"))};B0()?sy(e,"keyup",t):queueMicrotask(t)}function io(e){const t=V0(e);return I0(t)?St(t).body:je(t)&&Js(t)?t:io(t)}function Gc(e,t=[]){const n=io(e),r=n===e.ownerDocument.body,i=Ce(n);return r?t.concat(i,i.visualViewport||[],Js(n)?n:[]):t.concat(n,Gc(n,[]))}var ly=/auto|scroll|overlay|hidden|clip/,cy=new Set(["inline","contents"]);function Js(e){const t=Ce(e),{overflow:n,overflowX:r,overflowY:i,display:o}=t.getComputedStyle(e);return ly.test(n+i+r)&&!cy.has(o)}function uy(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function oo(e,t){const{rootEl:n,...r}=t||{};!e||!n||!Js(n)||!uy(n)||e.scrollIntoView(r)}function qc(e,t){const{left:n,top:r,width:i,height:o}=t.getBoundingClientRect(),s={x:e.x-n,y:e.y-r},a={x:Fc(s.x/i),y:Fc(s.y/o)};function l(c={}){const{dir:u="ltr",orientation:d="horizontal",inverted:h}=c,m=typeof h=="object"?h.x:h,f=typeof h=="object"?h.y:h;return d==="horizontal"?u==="rtl"||m?1-a.x:a.x:f?1-a.y:a.y}return{offset:s,percent:a,getPercentValue:l}}function dy(e,t){const n=e.body,r="pointerLockElement"in e||"mozPointerLockElement"in e,i=()=>!!e.pointerLockElement;function o(){}function s(l){i(),console.error("PointerLock error occurred:",l),e.exitPointerLock()}if(!r)return;try{n.requestPointerLock()}catch{}const a=[Re(e,"pointerlockchange",o,!1),Re(e,"pointerlockerror",s,!1)];return()=>{a.forEach(l=>l()),e.exitPointerLock()}}var rr="default",Zs="",so=new WeakMap;function hy(e={}){const{target:t,doc:n}=e,r=n??document,i=r.documentElement;return Ks()?(rr==="default"&&(Zs=i.style.webkitUserSelect,i.style.webkitUserSelect="none"),rr="disabled"):t&&(so.set(t,t.style.userSelect),t.style.userSelect="none"),()=>fy({target:t,doc:r})}function fy(e={}){const{target:t,doc:n}=e,i=(n??document).documentElement;if(Ks()){if(rr!=="disabled")return;rr="restoring",setTimeout(()=>{Hc(()=>{rr==="restoring"&&(i.style.webkitUserSelect==="none"&&(i.style.webkitUserSelect=Zs||""),Zs="",rr="default")})},300)}else if(t&&so.has(t)){const o=so.get(t);t.style.userSelect==="none"&&(t.style.userSelect=o??""),t.getAttribute("style")===""&&t.removeAttribute("style"),so.delete(t)}}function Kc(e={}){const{defer:t,target:n,...r}=e,i=t?K:s=>s(),o=[];return o.push(i(()=>{const s=typeof n=="function"?n():n;o.push(hy({...r,target:s}))})),()=>{o.forEach(s=>s==null?void 0:s())}}function gy(e,t){const{onPointerMove:n,onPointerUp:r}=t,o=[Re(e,"pointermove",s=>{const a=X0(s),l=Math.sqrt(a.x**2+a.y**2),c=s.pointerType==="touch"?10:5;if(!(l{o.forEach(s=>s())}}function ao(e,t){return Array.from((e==null?void 0:e.querySelectorAll(t))??[])}function py(e,t){return(e==null?void 0:e.querySelector(t))??null}var ea=e=>e.id;function my(e,t,n=ea){return e.find(r=>n(r)===t)}function ta(e,t,n=ea){const r=my(e,t,n);return r?e.indexOf(r):-1}function vy(e,t,n=!0){let r=ta(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function by(e,t,n=!0){let r=ta(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 yy=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(),xy=e=>{var t;return yy(((t=e.dataset)==null?void 0:t.valuetext)??e.textContent??"")},Cy=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function Sy(e,t,n,r=ea){const i=n?ta(e,n,r):-1;let o=n?x0(e,i):e;return t.length===1&&(o=o.filter(a=>r(a)!==n)),o.find(a=>Cy(xy(a),t))}function wy(e,t){if(!e)return C0;const n=Object.keys(t).reduce((r,i)=>(r[i]=e.style.getPropertyValue(i),r),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,n),e.style.length===0&&e.removeAttribute("style")}}function ky(e,t){const{state:n,activeId:r,key:i,timeout:o=350,itemToId:s}=t,a=n.keysSoFar+i,c=a.length>1&&Array.from(a).every(f=>f===a[0])?a[0]:a;let u=e.slice();const d=Sy(u,c,r,s);function h(){clearTimeout(n.timer),n.timer=-1}function m(f){n.keysSoFar=f,h(),f!==""&&(n.timer=+setTimeout(()=>{m(""),h()},o))}return m(a),d}var Xr=Object.assign(ky,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:Ey});function Ey(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}function Oy(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 Iy(e,t){const{timeout:n,rootNode:r}=t,i=Ce(r),o=St(r),s=new i.AbortController;return Oy(new Promise(a=>{const l=e();if(l){a(l);return}const c=new i.MutationObserver(()=>{const u=e();u&&u.isConnected&&(c.disconnect(),a(u))});c.observe(o.body,{childList:!0,subtree:!0})}),s,n)}var Ry=(...e)=>e.map(t=>{var n;return(n=t==null?void 0:t.trim)==null?void 0:n.call(t)}).filter(Boolean).join(" "),Py=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,Xc=e=>{const t={};let n;for(;n=Py.exec(e);)t[n[1]]=n[2];return t},Ty=(e,t)=>{if(Ws(e)){if(Ws(t))return`${e};${t}`;e=Xc(e)}else Ws(t)&&(t=Xc(t));return Object.assign({},e??{},t??{})};function Yc(...e){let t={};for(let n of e){for(let r in t){if(r.startsWith("on")&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=Qi(n[r],t[r]);continue}if(r==="className"||r==="class"){t[r]=Ry(t[r],n[r]);continue}if(r==="style"){t[r]=Ty(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}function Qc(e,t,n){let r=[],i;return o=>{const s=e(o);return(s.length!==r.length||s.some((l,c)=>!ut(r[c],l)))&&(r=s,i=t(...s)),i}}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 iN(e){return e}function Jc(){return{guards:Kt(),createMachine:e=>e,choose:e=>function({choose:n}){var r;return(r=n(e))==null?void 0:r.actions}}}function Zc(...e){return t=>{const n=[];for(const r of e)if(typeof r=="function"){const i=r(t);typeof i=="function"&&n.push(i)}else r&&(r.current=t);if(n.length)return()=>{for(const r of n)r()}}}function Ny(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const na=e=>{const t=T.memo(T.forwardRef((n,r)=>{const{asChild:i,children:o,...s}=n;if(!i)return T.createElement(e,{...s,ref:r},o);if(!T.isValidElement(o))return null;const a=T.Children.only(o),l=Ny(a);return T.cloneElement(a,{...Yc(s,a.props),ref:r?Zc(r,l):l})}));return t.displayName=e.displayName||e.name,t},_y=(()=>{const e=new Map;return new Proxy(na,{apply(t,n,r){return na(r[0])},get(t,n){const r=n;return e.has(r)||e.set(r,na(r)),e.get(r)}})})();var M=()=>e=>Array.from(new Set(e));const lo=Ve("span"),{withContext:Ay}=Ur({key:"text"}),Vy=Ay("p");var $=(e,t=[])=>({parts:(...n)=>{if(Fy(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="${ir(e)}"][data-part="${ir(r)}"]`,`& [data-scope="${ir(e)}"][data-part="${ir(r)}"]`].join(", "),attrs:{"data-scope":ir(e),"data-part":ir(r)}}}),{})}),ir=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),Fy=e=>e.length===0,eu=$("collapsible").parts("root","trigger","content","indicator");eu.build(),M()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","defaultOpen","open"]);var Ly=Object.defineProperty,zy=(e,t,n)=>t in e?Ly(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ra=(e,t,n)=>zy(e,t+"",n),Dy=(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},ia=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:i}=this.getChannelRange(e);return d0(n,r,i)}getChannelPercentValue(e,t){const{minValue:n,maxValue:r,step:i}=this.getChannelRange(e),o=h0(t,n,r,i);return Tc(o,n,r,i)}withChannelValue(e,t){const{minValue:n,maxValue:r}=this.getChannelRange(e);if(e in this){let i=this.clone();return i[e]=Be(t,n,r),i}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:n}=e,r=t||this.getChannels().find(s=>s!==n),i=n||this.getChannels().find(s=>s!==r),o=this.getChannels().find(s=>s!==r&&s!==i);return{xChannel:r,yChannel:i,zChannel:o}}incrementChannel(e,t){const{minValue:n,maxValue:r,step:i}=this.getChannelRange(e),o=Tc(Be(this.getChannelValue(e)+t,n,r),n,r,i);return this.withChannelValue(e,o)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return Dy(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},My=/^#[\da-f]+$/i,$y=/^rgba?\((.*)\)$/,By=/[^#]/gi,tu=class vs extends ia{constructor(t,n,r,i){super(),this.red=t,this.green=n,this.blue=r,this.alpha=i}static parse(t){let n=[];if(My.test(t)&&[4,5,7,9].includes(t.length)){const i=(t.length<6?t.replace(By,"$&$&"):t).slice(1).split("");for(;i.length>0;)n.push(parseInt(i.splice(0,2).join(""),16));n[3]=n[3]!==void 0?n[3]/255:void 0}const r=t.match($y);return r!=null&&r[1]&&(n=r[1].split(",").map(i=>Number(i.trim())).map((i,o)=>Be(i,0,o<3?255:1))),n.length<3?void 0:new vs(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,i=Math.min(t,n,r),o=Math.max(t,n,r),s=o-i,a=o===0?0:s/o;let l=0;if(s!==0){switch(o){case t:l=(n-r)/s+(nNumber(a.trim().replace("%","")));return new bs(Rc(r,360),Be(i,0,100),Be(o,0,100),Be(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 aa(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,i=n*Math.min(r,1-r),o=(s,a=(s+t/30)%12)=>r-i*Math.max(Math.min(a-3,9-a,1),-1);return new oa(Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255),oe(this.alpha,2))}clone(){return new bs(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),i=this.getChannelValue(t);return(t==="saturation"||t==="lightness")&&(i/=100),new Intl.NumberFormat(n,r).format(i)}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 bs.colorChannels}};ra(nu,"colorChannels",["hue","saturation","lightness"]);var sa=nu,Wy=/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+)?)\)/,ru=class ys extends ia{constructor(t,n,r,i){super(),this.hue=t,this.saturation=n,this.brightness=r,this.alpha=i}static parse(t){let n;if(n=t.match(Wy)){const[r,i,o,s]=(n[1]??n[2]).split(",").map(a=>Number(a.trim().replace("%","")));return new ys(Rc(r,360),Be(i,0,100),Be(o,0,100),Be(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 sa(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,i=(o,s=(o+t/60)%6)=>r-n*r*Math.max(Math.min(s,4-s,1),0);return new oa(Math.round(i(5)*255),Math.round(i(3)*255),Math.round(i(1)*255),oe(this.alpha,2))}clone(){return new ys(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),i=this.getChannelValue(t);return(t==="saturation"||t==="brightness")&&(i/=100),new Intl.NumberFormat(n,r).format(i)}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 ys.colorChannels}};ra(ru,"colorChannels",["hue","saturation","brightness"]);var aa=ru,Hy="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",Uy=e=>{const t=new Map,n=e.split(",");for(let r=0;r{var n;if(iu.has(e))return co(iu.get(e));const t=oa.parse(e)||aa.parse(e)||sa.parse(e);if(!t){const r=new Error("Invalid color value: "+e);throw(n=Error.captureStackTrace)==null||n.call(Error,r,co),r}return t};const Gy=["top","right","bottom","left"],Xt=Math.min,Qe=Math.max,uo=Math.round,ho=Math.floor,wt=e=>({x:e,y:e}),qy={left:"right",right:"left",bottom:"top",top:"bottom"},Ky={start:"end",end:"start"};function la(e,t,n){return Qe(e,Xt(t,n))}function Ft(e,t){return typeof e=="function"?e(t):e}function Lt(e){return e.split("-")[0]}function or(e){return e.split("-")[1]}function ca(e){return e==="x"?"y":"x"}function ua(e){return e==="y"?"height":"width"}const Xy=new Set(["top","bottom"]);function kt(e){return Xy.has(Lt(e))?"y":"x"}function da(e){return ca(kt(e))}function Yy(e,t,n){n===void 0&&(n=!1);const r=or(e),i=da(e),o=ua(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=fo(s)),[s,fo(s)]}function Qy(e){const t=fo(e);return[ha(e),t,ha(t)]}function ha(e){return e.replace(/start|end/g,t=>Ky[t])}const ou=["left","right"],su=["right","left"],Jy=["top","bottom"],Zy=["bottom","top"];function ex(e,t,n){switch(e){case"top":case"bottom":return n?t?su:ou:t?ou:su;case"left":case"right":return t?Jy:Zy;default:return[]}}function tx(e,t,n,r){const i=or(e);let o=ex(Lt(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(ha)))),o}function fo(e){return e.replace(/left|right|bottom|top/g,t=>qy[t])}function nx(e){return{top:0,right:0,bottom:0,left:0,...e}}function au(e){return typeof e!="number"?nx(e):{top:e,right:e,bottom:e,left:e}}function go(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function lu(e,t,n){let{reference:r,floating:i}=e;const o=kt(t),s=da(t),a=ua(s),l=Lt(t),c=o==="y",u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,h=r[a]/2-i[a]/2;let m;switch(l){case"top":m={x:u,y:r.y-i.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-i.width,y:d};break;default:m={x:r.x,y:r.y}}switch(or(t)){case"start":m[s]-=h*(n&&c?-1:1);break;case"end":m[s]+=h*(n&&c?-1:1);break}return m}const rx=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=lu(c,r,l),h=r,m={},f=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Ft(e,t)||{};if(c==null)return{};const d=au(u),h={x:n,y:r},m=da(i),f=ua(m),g=await s.getDimensions(c),p=m==="y",b=p?"top":"left",y=p?"bottom":"right",C=p?"clientHeight":"clientWidth",x=o.reference[f]+o.reference[m]-h[m]-o.floating[f],E=h[m]-o.reference[m],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let _=P?P[C]:0;(!_||!await(s.isElement==null?void 0:s.isElement(P)))&&(_=a.floating[C]||o.floating[f]);const O=x/2-E/2,I=_/2-g[f]/2-1,R=Xt(d[b],I),z=Xt(d[y],I),L=R,X=_-g[f]-z,Z=_/2-g[f]/2+O,Ne=la(L,Z,X),G=!l.arrow&&or(i)!=null&&Z!==Ne&&o.reference[f]/2-(ZZ<=0)){var z,L;const Z=(((z=o.flip)==null?void 0:z.index)||0)+1,Ne=_[Z];if(Ne&&(!(d==="alignment"?y!==kt(Ne):!1)||R.every(fe=>kt(fe.placement)===y?fe.overflows[0]>0:!0)))return{data:{index:Z,overflows:R},reset:{placement:Ne}};let G=(L=R.filter(ie=>ie.overflows[0]<=0).sort((ie,fe)=>ie.overflows[1]-fe.overflows[1])[0])==null?void 0:L.placement;if(!G)switch(m){case"bestFit":{var X;const ie=(X=R.filter(fe=>{if(P){const j=kt(fe.placement);return j===y||j==="y"}return!0}).map(fe=>[fe.placement,fe.overflows.filter(j=>j>0).reduce((j,ae)=>j+ae,0)]).sort((fe,j)=>fe[1]-j[1])[0])==null?void 0:X[0];ie&&(G=ie);break}case"initialPlacement":G=a;break}if(i!==G)return{reset:{placement:G}}}return{}}}};function cu(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function uu(e){return Gy.some(t=>e[t]>=0)}const sx=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Ft(e,t);switch(r){case"referenceHidden":{const o=await Yr(t,{...i,elementContext:"reference"}),s=cu(o,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:uu(s)}}}case"escaped":{const o=await Yr(t,{...i,altBoundary:!0}),s=cu(o,n.floating);return{data:{escapedOffsets:s,escaped:uu(s)}}}default:return{}}}}},du=new Set(["left","top"]);async function ax(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Lt(n),a=or(n),l=kt(n)==="y",c=du.has(s)?-1:1,u=o&&l?-1:1,d=Ft(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:f}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof f=="number"&&(m=a==="end"?f*-1:f),l?{x:m*u,y:h*c}:{x:h*c,y:m*u}}const lx=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await ax(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},cx=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:p=>{let{x:b,y}=p;return{x:b,y}}},...l}=Ft(e,t),c={x:n,y:r},u=await Yr(t,l),d=kt(Lt(i)),h=ca(d);let m=c[h],f=c[d];if(o){const p=h==="y"?"top":"left",b=h==="y"?"bottom":"right",y=m+u[p],C=m-u[b];m=la(y,m,C)}if(s){const p=d==="y"?"top":"left",b=d==="y"?"bottom":"right",y=f+u[p],C=f-u[b];f=la(y,f,C)}const g=a.fn({...t,[h]:m,[d]:f});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:o,[d]:s}}}}}},ux=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Ft(e,t),u={x:n,y:r},d=kt(i),h=ca(d);let m=u[h],f=u[d];const g=Ft(a,t),p=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const C=h==="y"?"height":"width",x=o.reference[h]-o.floating[C]+p.mainAxis,E=o.reference[h]+o.reference[C]-p.mainAxis;mE&&(m=E)}if(c){var b,y;const C=h==="y"?"width":"height",x=du.has(Lt(i)),E=o.reference[d]-o.floating[C]+(x&&((b=s.offset)==null?void 0:b[d])||0)+(x?0:p.crossAxis),P=o.reference[d]+o.reference[C]+(x?0:((y=s.offset)==null?void 0:y[d])||0)-(x?p.crossAxis:0);fP&&(f=P)}return{[h]:m,[d]:f}}}},dx=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:s,elements:a}=t,{apply:l=()=>{},...c}=Ft(e,t),u=await Yr(t,c),d=Lt(i),h=or(i),m=kt(i)==="y",{width:f,height:g}=o.floating;let p,b;d==="top"||d==="bottom"?(p=d,b=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(b=d,p=h==="end"?"top":"bottom");const y=g-u.top-u.bottom,C=f-u.left-u.right,x=Xt(g-u[p],y),E=Xt(f-u[b],C),P=!t.middlewareData.shift;let _=x,O=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=y),P&&!h){const R=Qe(u.left,0),z=Qe(u.right,0),L=Qe(u.top,0),X=Qe(u.bottom,0);m?O=f-2*(R!==0||z!==0?R+z:Qe(u.left,u.right)):_=g-2*(L!==0||X!==0?L+X:Qe(u.top,u.bottom))}await l({...t,availableWidth:O,availableHeight:_});const I=await s.getDimensions(a.floating);return f!==I.width||g!==I.height?{reset:{rects:!0}}:{}}}};function po(){return typeof window<"u"}function sr(e){return hu(e)?(e.nodeName||"").toLowerCase():"#document"}function Je(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Et(e){var t;return(t=(hu(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function hu(e){return po()?e instanceof Node||e instanceof Je(e).Node:!1}function dt(e){return po()?e instanceof Element||e instanceof Je(e).Element:!1}function Ot(e){return po()?e instanceof HTMLElement||e instanceof Je(e).HTMLElement:!1}function fu(e){return!po()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Je(e).ShadowRoot}const hx=new Set(["inline","contents"]);function Qr(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=ht(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!hx.has(i)}const fx=new Set(["table","td","th"]);function gx(e){return fx.has(sr(e))}const px=[":popover-open",":modal"];function mo(e){return px.some(t=>{try{return e.matches(t)}catch{return!1}})}const mx=["transform","translate","scale","rotate","perspective"],vx=["transform","translate","scale","rotate","perspective","filter"],bx=["paint","layout","strict","content"];function fa(e){const t=ga(),n=dt(e)?ht(e):e;return mx.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)||vx.some(r=>(n.willChange||"").includes(r))||bx.some(r=>(n.contain||"").includes(r))}function yx(e){let t=Yt(e);for(;Ot(t)&&!ar(t);){if(fa(t))return t;if(mo(t))return null;t=Yt(t)}return null}function ga(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const xx=new Set(["html","body","#document"]);function ar(e){return xx.has(sr(e))}function ht(e){return Je(e).getComputedStyle(e)}function vo(e){return dt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Yt(e){if(sr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fu(e)&&e.host||Et(e);return fu(t)?t.host:t}function gu(e){const t=Yt(e);return ar(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ot(t)&&Qr(t)?t:gu(t)}function Jr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=gu(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=Je(i);if(o){const a=pa(s);return t.concat(s,s.visualViewport||[],Qr(i)?i:[],a&&n?Jr(a):[])}return t.concat(i,Jr(i,[],n))}function pa(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function pu(e){const t=ht(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ot(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=uo(n)!==o||uo(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function ma(e){return dt(e)?e:e.contextElement}function lr(e){const t=ma(e);if(!Ot(t))return wt(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=pu(t);let s=(o?uo(n.width):n.width)/r,a=(o?uo(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Cx=wt(0);function mu(e){const t=Je(e);return!ga()||!t.visualViewport?Cx:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Sx(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Je(e)?!1:t}function Sn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=ma(e);let s=wt(1);t&&(r?dt(r)&&(s=lr(r)):s=lr(e));const a=Sx(o,n,r)?mu(o):wt(0);let l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(o){const h=Je(o),m=r&&dt(r)?Je(r):r;let f=h,g=pa(f);for(;g&&r&&m!==f;){const p=lr(g),b=g.getBoundingClientRect(),y=ht(g),C=b.left+(g.clientLeft+parseFloat(y.paddingLeft))*p.x,x=b.top+(g.clientTop+parseFloat(y.paddingTop))*p.y;l*=p.x,c*=p.y,u*=p.x,d*=p.y,l+=C,c+=x,f=Je(g),g=pa(f)}}return go({width:u,height:d,x:l,y:c})}function bo(e,t){const n=vo(e).scrollLeft;return t?t.left+n:Sn(Et(e)).left+n}function vu(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-bo(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function wx(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=Et(r),a=t?mo(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},c=wt(1);const u=wt(0),d=Ot(r);if((d||!d&&!o)&&((sr(r)!=="body"||Qr(s))&&(l=vo(r)),Ot(r))){const m=Sn(r);c=lr(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}const h=s&&!d&&!o?vu(s,l):wt(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function kx(e){return Array.from(e.getClientRects())}function Ex(e){const t=Et(e),n=vo(e),r=e.ownerDocument.body,i=Qe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Qe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+bo(e);const a=-n.scrollTop;return ht(r).direction==="rtl"&&(s+=Qe(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}const bu=25;function Ox(e,t){const n=Je(e),r=Et(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const u=ga();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}const c=bo(r);if(c<=0){const u=r.ownerDocument,d=u.body,h=getComputedStyle(d),m=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,f=Math.abs(r.clientWidth-d.clientWidth-m);f<=bu&&(o-=f)}else c<=bu&&(o+=c);return{width:o,height:s,x:a,y:l}}const Ix=new Set(["absolute","fixed"]);function Rx(e,t){const n=Sn(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Ot(e)?lr(e):wt(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,c=r*o.y;return{width:s,height:a,x:l,y:c}}function yu(e,t,n){let r;if(t==="viewport")r=Ox(e,n);else if(t==="document")r=Ex(Et(e));else if(dt(t))r=Rx(t,n);else{const i=mu(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return go(r)}function xu(e,t){const n=Yt(e);return n===t||!dt(n)||ar(n)?!1:ht(n).position==="fixed"||xu(n,t)}function Px(e,t){const n=t.get(e);if(n)return n;let r=Jr(e,[],!1).filter(a=>dt(a)&&sr(a)!=="body"),i=null;const o=ht(e).position==="fixed";let s=o?Yt(e):e;for(;dt(s)&&!ar(s);){const a=ht(s),l=fa(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&Ix.has(i.position)||Qr(s)&&!l&&xu(e,s))?r=r.filter(u=>u!==s):i=a,s=Yt(s)}return t.set(e,r),r}function Tx(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?mo(t)?[]:Px(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,u)=>{const d=yu(t,u,i);return c.top=Qe(d.top,c.top),c.right=Xt(d.right,c.right),c.bottom=Xt(d.bottom,c.bottom),c.left=Qe(d.left,c.left),c},yu(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Nx(e){const{width:t,height:n}=pu(e);return{width:t,height:n}}function _x(e,t,n){const r=Ot(t),i=Et(t),o=n==="fixed",s=Sn(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=wt(0);function c(){l.x=bo(i)}if(r||!r&&!o)if((sr(t)!=="body"||Qr(i))&&(a=vo(t)),r){const m=Sn(t,!0,o,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else i&&c();o&&!r&&i&&c();const u=i&&!r&&!o?vu(i,a):wt(0),d=s.left+a.scrollLeft-l.x-u.x,h=s.top+a.scrollTop-l.y-u.y;return{x:d,y:h,width:s.width,height:s.height}}function va(e){return ht(e).position==="static"}function Cu(e,t){if(!Ot(e)||ht(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Et(e)===n&&(n=n.ownerDocument.body),n}function Su(e,t){const n=Je(e);if(mo(e))return n;if(!Ot(e)){let i=Yt(e);for(;i&&!ar(i);){if(dt(i)&&!va(i))return i;i=Yt(i)}return n}let r=Cu(e,t);for(;r&&gx(r)&&va(r);)r=Cu(r,t);return r&&ar(r)&&va(r)&&!fa(r)?n:r||yx(e)||n}const Ax=async function(e){const t=this.getOffsetParent||Su,n=this.getDimensions,r=await n(e.floating);return{reference:_x(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Vx(e){return ht(e).direction==="rtl"}const Fx={convertOffsetParentRelativeRectToViewportRelativeRect:wx,getDocumentElement:Et,getClippingRect:Tx,getOffsetParent:Su,getElementRects:Ax,getClientRects:kx,getDimensions:Nx,getScale:lr,isElement:dt,isRTL:Vx};function wu(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Lx(e,t){let n=null,r;const i=Et(e);function o(){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),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:m}=c;if(a||t(),!h||!m)return;const f=ho(d),g=ho(i.clientWidth-(u+h)),p=ho(i.clientHeight-(d+m)),b=ho(u),C={rootMargin:-f+"px "+-g+"px "+-p+"px "+-b+"px",threshold:Qe(0,Xt(1,l))||1};let x=!0;function E(P){const _=P[0].intersectionRatio;if(_!==l){if(!x)return s();_?s(!1,_):r=setTimeout(()=>{s(!1,1e-7)},1e3)}_===1&&!wu(c,e.getBoundingClientRect())&&s(),x=!1}try{n=new IntersectionObserver(E,{...C,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,C)}n.observe(e)}return s(!0),o}function zx(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=ma(e),u=i||o?[...c?Jr(c):[],...Jr(t)]:[];u.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),o&&b.addEventListener("resize",n)});const d=c&&a?Lx(c,n):null;let h=-1,m=null;s&&(m=new ResizeObserver(b=>{let[y]=b;y&&y.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var C;(C=m)==null||C.observe(t)})),n()}),c&&!l&&m.observe(c),m.observe(t));let f,g=l?Sn(e):null;l&&p();function p(){const b=Sn(e);g&&!wu(g,b)&&n(),g=b,f=requestAnimationFrame(p)}return n(),()=>{var b;u.forEach(y=>{i&&y.removeEventListener("scroll",n),o&&y.removeEventListener("resize",n)}),d==null||d(),(b=m)==null||b.disconnect(),m=null,l&&cancelAnimationFrame(f)}}const Dx=lx,Mx=cx,$x=ox,Bx=dx,jx=sx,Wx=ix,Hx=ux,Ux=(e,t,n)=>{const r=new Map,i={platform:Fx,...n},o={...i.platform,_c:r};return rx(e,t,{...i,platform:o})};function ku(e=0,t=0,n=0,r=0){if(typeof DOMRect=="function")return new DOMRect(e,t,n,r);const i={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return{...i,toJSON:()=>i}}function Gx(e){if(!e)return ku();const{x:t,y:n,width:r,height:i}=e;return ku(t,n,r,i)}function qx(e,t){return{contextElement:je(e)?e:void 0,getBoundingClientRect:()=>{const n=e,r=t==null?void 0:t(n);return r||!n?Gx(r):n.getBoundingClientRect()}}}var Eu=e=>({variable:e,reference:`var(${e})`}),Ou={transformOrigin:Eu("--transform-origin"),arrowOffset:Eu("--arrow-offset")},Kx=e=>e==="top"||e==="bottom"?"y":"x";function Xx(e,t){return{name:"transformOrigin",fn(n){var I,R,z,L;const{elements:r,middlewareData:i,placement:o,rects:s,y:a}=n,l=o.split("-")[0],c=Kx(l),u=((I=i.arrow)==null?void 0:I.x)||0,d=((R=i.arrow)==null?void 0:R.y)||0,h=(t==null?void 0:t.clientWidth)||0,m=(t==null?void 0:t.clientHeight)||0,f=u+h/2,g=d+m/2,p=Math.abs(((z=i.shift)==null?void 0:z.y)||0),b=s.reference.height/2,y=m/2,C=((L=e.offset)==null?void 0:L.mainAxis)??e.gutter,x=typeof C=="number"?C+y:C??y,E=p>x,P={top:`${f}px calc(100% + ${x}px)`,bottom:`${f}px ${-x}px`,left:`calc(100% + ${x}px) ${g}px`,right:`${-x}px ${g}px`}[l],_=`${f}px ${s.reference.y+b-a}px`,O=!!e.overlap&&c==="y"&&E;return r.floating.style.setProperty(Ou.transformOrigin.variable,O?_:P),{data:{transformOrigin:O?_:P}}}}}var Yx={name:"rects",fn({rects:e}){return{data:e}}},Qx=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:n}){if(!n.arrow)return{};const{x:r,y:i}=n.arrow,o=t.split("-")[0];return Object.assign(e.style,{left:r!=null?`${r}px`:"",top:i!=null?`${i}px`:"",[o]:`calc(100% + ${Ou.arrowOffset.reference})`}),{}}}};function Jx(e){const[t,n]=e.split("-");return{side:t,align:n,hasAlign:n!=null}}function Zx(e){return e.split("-")[0]}var e1={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function Iu(e,t){const n=e.devicePixelRatio||1;return Math.round(t*n)/n}function ba(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function t1(e,t,n){const r=e||t.createElement("div");return Wx({element:r,padding:n.arrowPadding})}function n1(e,t){if(!Kb(t.offset??t.gutter))return Dx(({placement:n})=>{var c,u;const r=((e==null?void 0:e.clientHeight)||0)/2,i=((c=t.offset)==null?void 0:c.mainAxis)??t.gutter,o=typeof i=="number"?i+r:i??r,{hasAlign:s}=Jx(n),a=s?void 0:t.shift,l=((u=t.offset)==null?void 0:u.crossAxis)??a;return Ac({crossAxis:l,mainAxis:o,alignmentAxis:t.shift})})}function r1(e){if(!e.flip)return;const t=ba(e.boundary);return $x({...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function i1(e){if(!e.slide&&!e.overlap)return;const t=ba(e.boundary);return Mx({...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:Hx()})}function o1(e){return Bx({padding:e.overflowPadding,apply({elements:t,rects:n,availableHeight:r,availableWidth:i}){const o=t.floating,s=Math.round(n.reference.width),a=Math.round(n.reference.height);i=Math.floor(i),r=Math.floor(r),o.style.setProperty("--reference-width",`${s}px`),o.style.setProperty("--reference-height",`${a}px`),o.style.setProperty("--available-width",`${i}px`),o.style.setProperty("--available-height",`${r}px`)}})}function s1(e){if(e.hideWhenDetached)return jx({strategy:"referenceHidden",boundary:ba(e.boundary)??"clippingAncestors"})}function a1(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function l1(e,t,n={}){const r=qx(e,n.getAnchorRect);if(!t||!r)return;const i=Object.assign({},e1,n),o=t.querySelector("[data-part=arrow]"),s=[n1(o,i),r1(i),i1(i),t1(o,t.ownerDocument,i),Qx(o),Xx({gutter:i.gutter,offset:i.offset,overlap:i.overlap},o),o1(i),s1(i),Yx],{placement:a,strategy:l,onComplete:c,onPositioned:u}=i,d=async()=>{var x;if(!r||!t)return;const g=await Ux(r,t,{placement:a,middleware:s,strategy:l});c==null||c(g),u==null||u({placed:!0});const p=Ce(t),b=Iu(p,g.x),y=Iu(p,g.y);t.style.setProperty("--x",`${b}px`),t.style.setProperty("--y",`${y}px`),i.hideWhenDetached&&(((x=g.middlewareData.hide)==null?void 0:x.referenceHidden)?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const C=t.firstElementChild;if(C){const E=Dc(C);t.style.setProperty("--z-index",E.zIndex)}},h=async()=>{n.updatePosition?(await n.updatePosition({updatePosition:d,floatingElement:t}),u==null||u({placed:!0})):await d()},m=a1(i.listeners),f=i.listeners?zx(r,t,h,m):t0;return h(),()=>{f==null||f(),u==null||u({placed:!1})}}function ft(e,t,n={}){const{defer:r,...i}=n,o=r?K:a=>a(),s=[];return s.push(o(()=>{const a=typeof e=="function"?e():e,l=typeof t=="function"?t():t;s.push(l1(a,l,i))})),()=>{s.forEach(a=>a==null?void 0:a())}}function c1(e){const t={each(n){var r;for(let i=0;i<((r=e.frames)==null?void 0:r.length);i+=1){const o=e.frames[i];o&&n(o)}},addEventListener(n,r,i){return t.each(o=>{try{o.document.addEventListener(n,r,i)}catch{}}),()=>{try{t.removeEventListener(n,r,i)}catch{}}},removeEventListener(n,r,i){t.each(o=>{try{o.document.removeEventListener(n,r,i)}catch{}})}};return t}function u1(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(n,r,i)=>{try{t==null||t.addEventListener(n,r,i)}catch{}return()=>{try{t==null||t.removeEventListener(n,r,i)}catch{}}},removeEventListener:(n,r,i)=>{try{t==null||t.removeEventListener(n,r,i)}catch{}}}}var Ru="pointerdown.outside",Pu="focus.outside";function d1(e){for(const t of e)if(je(t)&&Ys(t))return!0;return!1}var Tu=e=>"clientY"in e;function h1(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 f1(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,i=t.scrollWidth>t.clientWidth,o=i&&e.clientY>t.offsetTop+t.clientHeight,s={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(n?16:0),height:t.clientHeight+(i?16:0)},a={x:e.clientX,y:e.clientY};return f1(s,a)?r||o:!1}function g1(e,t){const{exclude:n,onFocusOutside:r,onPointerDownOutside:i,onInteractOutside:o,defer:s}=t;if(!e)return;const a=St(e),l=Ce(e),c=c1(l),u=u1(l);function d(y,C){if(!je(C)||!C.isConnected||Cn(e,C)||h1(e,y))return!1;const x=a.querySelector(`[aria-controls="${e.id}"]`);if(x){const P=io(x);if(Nu(y,P))return!1}const E=io(e);return Nu(y,E)?!1:!(n!=null&&n(C))}const h=new Set,m=Kr(e==null?void 0:e.getRootNode());function f(y){function C(x){var O;const E=s&&!$c()?K:I=>I(),P=x??y,_=((O=P==null?void 0:P.composedPath)==null?void 0:O.call(P))??[P==null?void 0:P.target];E(()=>{const I=m?_[0]:qt(y);if(!(!e||!d(y,I))){if(i||o){const R=Qi(i,o);e.addEventListener(Ru,R,{once:!0})}_u(e,Ru,{bubbles:!1,cancelable:!0,detail:{originalEvent:P,contextmenu:G0(P),focusable:d1(_),target:I}})}})}y.pointerType==="touch"?(h.forEach(x=>x()),h.add(Re(a,"click",C,{once:!0})),h.add(u.addEventListener("click",C,{once:!0})),h.add(c.addEventListener("click",C,{once:!0}))):C()}const g=new Set,p=setTimeout(()=>{g.add(Re(a,"pointerdown",f,!0)),g.add(u.addEventListener("pointerdown",f,!0)),g.add(c.addEventListener("pointerdown",f,!0))},0);function b(y){(s?K:x=>x())(()=>{const x=qt(y);if(!(!e||!d(y,x))){if(r||o){const E=Qi(r,o);e.addEventListener(Pu,E,{once:!0})}_u(e,Pu,{bubbles:!1,cancelable:!0,detail:{originalEvent:y,contextmenu:!1,focusable:Ys(x),target:x}})}})}return $c()||(g.add(Re(a,"focusin",b,!0)),g.add(u.addEventListener("focusin",b,!0)),g.add(c.addEventListener("focusin",b,!0))),()=>{clearTimeout(p),h.forEach(y=>y()),g.forEach(y=>y())}}function p1(e,t){const{defer:n}=t,r=n?K:o=>o(),i=[];return i.push(r(()=>{const o=typeof e=="function"?e():e;i.push(g1(o,t))})),()=>{i.forEach(o=>o==null?void 0:o())}}function _u(e,t,n){const r=e.ownerDocument.defaultView||window,i=new r.CustomEvent(t,n);return e.dispatchEvent(i)}function m1(e,t){const n=r=>{r.key==="Escape"&&(r.isComposing||t==null||t(r))};return Re(St(e),"keydown",n,{capture:!0})}var Au="layer:request-dismiss",nt={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){var r;const t=this.indexOf(e),n=this.topMostPointerBlockingLayer()?this.indexOf((r=this.topMostPointerBlockingLayer())==null?void 0:r.node):-1;return tCn(n.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>Cn(t,e))},add(e){this.layers.push(e),this.syncLayerIndex()},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(tnt.dismiss(r.node,e)),this.layers.splice(t,1),this.syncLayerIndex())},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayerIndex(){this.layers.forEach((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`)})},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];b1(e,Au,i=>{var o;(o=r.requestDismiss)==null||o.call(r,i),i.defaultPrevented||r==null||r.dismiss()}),v1(e,Au,{originalLayer:e,targetLayer:t,originalIndex:n,targetIndex:t?this.indexOf(t):-1}),this.syncLayerIndex()},clear(){this.remove(this.layers[0].node)}};function v1(e,t,n){const r=e.ownerDocument.defaultView||window,i=new r.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:n});return e.dispatchEvent(i)}function b1(e,t,n){e.addEventListener(t,n,{once:!0})}var Vu;function Fu(){nt.layers.forEach(({node:e})=>{e.style.pointerEvents=nt.isBelowPointerBlockingLayer(e)?"none":"auto"})}function y1(e){e.style.pointerEvents=""}function x1(e,t){const n=St(e),r=[];return nt.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(Vu=document.body.style.pointerEvents,queueMicrotask(()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")})),t==null||t.forEach(i=>{const[o,s]=Iy(()=>{const a=i();return je(a)?a:null},{timeout:1e3});o.then(a=>r.push(wy(a,{pointerEvents:"auto"}))),r.push(s)}),()=>{nt.hasPointerBlockingLayer()||(queueMicrotask(()=>{n.body.style.pointerEvents=Vu,n.body.removeAttribute("data-inert"),n.body.style.length===0&&n.body.removeAttribute("style")}),r.forEach(i=>i()))}}function C1(e,t){const{warnOnMissingNode:n=!0}=t;if(n&&!e){Vc("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:r,onRequestDismiss:i,pointerBlocking:o,exclude:s,debug:a}=t,l={dismiss:r,node:e,pointerBlocking:o,requestDismiss:i};nt.add(l),Fu();function c(f){var p,b;const g=qt(f.detail.originalEvent);nt.isBelowPointerBlockingLayer(e)||nt.isInBranch(g)||((p=t.onPointerDownOutside)==null||p.call(t,f),(b=t.onInteractOutside)==null||b.call(t,f),!f.defaultPrevented&&(a&&console.log("onPointerDownOutside:",f.detail.originalEvent),r==null||r()))}function u(f){var p,b;const g=qt(f.detail.originalEvent);nt.isInBranch(g)||((p=t.onFocusOutside)==null||p.call(t,f),(b=t.onInteractOutside)==null||b.call(t,f),!f.defaultPrevented&&(a&&console.log("onFocusOutside:",f.detail.originalEvent),r==null||r()))}function d(f){var g;nt.isTopMost(e)&&((g=t.onEscapeKeyDown)==null||g.call(t,f),!f.defaultPrevented&&r&&(f.preventDefault(),r()))}function h(f){var y;if(!e)return!1;const g=typeof s=="function"?s():s,p=Array.isArray(g)?g:[g],b=(y=t.persistentElements)==null?void 0:y.map(C=>C()).filter(je);return b&&p.push(...b),p.some(C=>Cn(C,f))||nt.isInNestedLayer(e,f)}const m=[o?x1(e,t.persistentElements):void 0,m1(e,d),p1(e,{exclude:h,onFocusOutside:u,onPointerDownOutside:c,defer:t.defer})];return()=>{nt.remove(e),Fu(),y1(e),m.forEach(f=>f==null?void 0:f())}}function Zr(e,t){const{defer:n}=t,r=n?K:o=>o(),i=[];return i.push(r(()=>{const o=wc(e)?e():e;i.push(C1(o,t))})),()=>{i.forEach(o=>o==null?void 0:o())}}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 S1=e=>{var t;return((t=e.ids)==null?void 0:t.hiddenInput)??`color-picker:${e.id}:hidden-input`},w1=e=>{var t;return((t=e.ids)==null?void 0:t.control)??`color-picker:${e.id}:control`},k1=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`color-picker:${e.id}:trigger`},E1=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`color-picker:${e.id}:content`},O1=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`color-picker:${e.id}:positioner`},I1=e=>{var t;return((t=e.ids)==null?void 0:t.formatSelect)??`color-picker:${e.id}:format-select`},R1=e=>{var t;return((t=e.ids)==null?void 0:t.area)??`color-picker:${e.id}:area`},P1=e=>{var t;return((t=e.ids)==null?void 0:t.areaThumb)??`color-picker:${e.id}:area-thumb`},T1=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.channelSliderTrack)==null?void 0:r.call(n,t))??`color-picker:${e.id}:slider-track:${t}`},N1=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.channelSliderThumb)==null?void 0:r.call(n,t))??`color-picker:${e.id}:slider-thumb:${t}`},yo=e=>e.getById(E1(e)),_1=e=>e.getById(P1(e)),A1=(e,t)=>e.getById(N1(e,t)),V1=e=>e.getById(I1(e)),zu=e=>e.getById(S1(e)),F1=e=>e.getById(R1(e)),L1=(e,t,n)=>{const r=F1(e);if(!r)return;const{getPercentValue:i}=qc(t,r);return{x:i({dir:n,orientation:"horizontal"}),y:i({orientation:"vertical"})}},z1=e=>e.getById(w1(e)),ya=e=>e.getById(k1(e)),D1=e=>e.getById(O1(e)),M1=(e,t)=>e.getById(T1(e,t)),$1=(e,t,n,r)=>{const i=M1(e,n);if(!i)return;const{getPercentValue:o}=qc(t,i);return{x:o({dir:r,orientation:"horizontal"}),y:o({orientation:"vertical"})}},B1=e=>[...ao(yo(e),"input[data-channel]"),...ao(z1(e),"input[data-channel]")];function j1(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 Du=e=>co(e),W1=/^[0-9a-fA-F]{3,8}$/;function H1(e){return W1.test(e)}function U1(e){return e.startsWith("#")?e:H1(e)?`#${e}`:e}var{and:G1}=Kt();G1("isOpenControlled","closeOnSelect");function Mu(e,t,n){const r=B1(e);K(()=>{r.forEach(i=>{const o=i.dataset.channel;no(i,j1(n||t,o))})})}function q1(e,t){const n=V1(e);n&&K(()=>no(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 $u=$("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");$u.build();var Bu=e=>{var t;return((t=e.ids)==null?void 0:t.root)??`accordion:${e.id}`},ju=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.itemTrigger)==null?void 0:r.call(n,t))??`accordion:${e.id}:trigger:${t}`},K1=e=>e.getById(Bu(e)),xo=e=>{const n=`[aria-controls][data-ownedby='${CSS.escape(Bu(e))}']:not([disabled])`;return ao(K1(e),n)},X1=e=>Gr(xo(e)),Y1=e=>Bs(xo(e)),Q1=(e,t)=>vy(xo(e),ju(e,t)),J1=(e,t)=>by(xo(e),ju(e,t)),{and:Z1,not:eC}=Kt();Z1("isExpanded","canToggle"),eC("isExpanded"),M()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]),M()(["value","disabled"]);var ei=(e,t)=>({x:e,y:t});function tC(e){const{x:t,y:n,width:r,height:i}=e,o=t+r/2,s=n+i/2;return{x:t,y:n,width:r,height:i,minX:t,minY:n,maxX:t+r,maxY:n+i,midX:o,midY:s,center:ei(o,s)}}function nC(e){const t=ei(e.minX,e.minY),n=ei(e.maxX,e.minY),r=ei(e.maxX,e.maxY),i=ei(e.minX,e.maxY);return{top:t,right:n,bottom:r,left:i}}function rC(e,t){const n=tC(e),{top:r,right:i,left:o,bottom:s}=nC(n),[a]=t.split("-");return{top:[o,r,i,s],right:[r,i,s,o],bottom:[r,o,s,i],left:[i,r,o,s]}[a]}function iC(e,t){const{x:n,y:r}=t;let i=!1;for(let o=0,s=e.length-1;or!=u>r&&n<(c-a)*(r-l)/(u-l)+a&&(i=!i)}return i}var Wu=$("avatar").parts("root","image","fallback");Wu.build(),M()(["dir","id","ids","onStatusChange","getRootNode"]);function oC(e){return!(e.metaKey||!to()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var sC=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function aC(e,t,n){const r=n?qt(n):null,i=Ce(r);return e=e||r instanceof i.HTMLInputElement&&!sC.has(r==null?void 0:r.type)||r instanceof i.HTMLTextAreaElement||r instanceof i.HTMLElement&&r.isContentEditable,!(e&&t==="keyboard"&&n instanceof i.KeyboardEvent&&!Reflect.has(lC,n.key))}var wn=null,xa=new Set,ti=new Map,kn=!1,Ca=!1,lC={Tab:!0,Escape:!0};function Co(e,t){for(let n of xa)n(e,t)}function So(e){kn=!0,oC(e)&&(wn="keyboard",Co("keyboard",e))}function rt(e){wn="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(kn=!0,Co("pointer",e))}function Hu(e){U0(e)&&(kn=!0,wn="virtual")}function Uu(e){const t=qt(e);t===Ce(t)||t===St(t)||(!kn&&!Ca&&(wn="virtual",Co("virtual",e)),kn=!1,Ca=!1)}function Gu(){kn=!1,Ca=!0}function cC(e){if(typeof window>"u"||ti.get(Ce(e)))return;const t=Ce(e),n=St(e);let r=t.HTMLElement.prototype.focus;function i(){wn="virtual",Co("virtual",null),kn=!0,r.apply(this,arguments)}Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:i}),n.addEventListener("keydown",So,!0),n.addEventListener("keyup",So,!0),n.addEventListener("click",Hu,!0),t.addEventListener("focus",Uu,!0),t.addEventListener("blur",Gu,!1),typeof t.PointerEvent<"u"?(n.addEventListener("pointerdown",rt,!0),n.addEventListener("pointermove",rt,!0),n.addEventListener("pointerup",rt,!0)):(n.addEventListener("mousedown",rt,!0),n.addEventListener("mousemove",rt,!0),n.addEventListener("mouseup",rt,!0)),t.addEventListener("beforeunload",()=>{uC(e)},{once:!0}),ti.set(t,{focus:r})}var uC=(e,t)=>{const n=Ce(e),r=St(e);ti.has(n)&&(n.HTMLElement.prototype.focus=ti.get(n).focus,r.removeEventListener("keydown",So,!0),r.removeEventListener("keyup",So,!0),r.removeEventListener("click",Hu,!0),n.removeEventListener("focus",Uu,!0),n.removeEventListener("blur",Gu,!1),typeof n.PointerEvent<"u"?(r.removeEventListener("pointerdown",rt,!0),r.removeEventListener("pointermove",rt,!0),r.removeEventListener("pointerup",rt,!0)):(r.removeEventListener("mousedown",rt,!0),r.removeEventListener("mousemove",rt,!0),r.removeEventListener("mouseup",rt,!0)),ti.delete(n))};function qu(){return wn==="keyboard"}function dC(e={}){const{isTextInput:t,autoFocus:n,onChange:r,root:i}=e;cC(i),r==null||r({isFocusVisible:n||qu(),modality:wn});const o=(s,a)=>{aC(!!t,s,a)&&(r==null||r({isFocusVisible:qu(),modality:s}))};return xa.add(o),()=>{xa.delete(o)}}var Ku=$("checkbox").parts("root","label","control","indicator");Ku.build(),M()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const hC=Ku.extendWith("group"),[sN,fC]=b0({name:"FieldContext",hookName:"useFieldContext",providerName:"",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 gC=Lu.extendWith("view");var pC=Object.defineProperty,mC=(e,t,n)=>t in e?pC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N=(e,t,n)=>mC(e,typeof t!="symbol"?t+"":t,n),wo={itemToValue(e){return typeof e=="string"?e:xn(e)&&Ut(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:xn(e)&&Ut(e,"label")?e.label:wo.itemToValue(e)},isItemDisabled(e){return xn(e)&&Ut(e,"disabled")?!!e.disabled:!1}},ko=class dv{constructor(t){this.options=t,N(this,"items"),N(this,"indexMap",null),N(this,"copy",n=>new dv({...this.options,items:n??[...this.items]})),N(this,"isEqual",n=>ut(this.items,n.items)),N(this,"setItems",n=>this.copy(n)),N(this,"getValues",(n=this.items)=>{const r=[];for(const i of n){const o=this.getItemValue(i);o!=null&&r.push(o)}return r}),N(this,"find",n=>{if(n==null)return null;const r=this.indexOf(n);return r!==-1?this.at(r):null}),N(this,"findMany",n=>{const r=[];for(const i of n){const o=this.find(i);o!=null&&r.push(o)}return r}),N(this,"at",n=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[n]??null;let r=0;const i=this.group();for(const[,o]of i)for(const s of o){if(r===n)return s;r++}return null}),N(this,"sortFn",(n,r)=>{const i=this.indexOf(n),o=this.indexOf(r);return(i??0)-(o??0)}),N(this,"sort",n=>[...n].sort(this.sortFn.bind(this))),N(this,"getItemValue",n=>{var r,i;return n==null?null:((i=(r=this.options).itemToValue)==null?void 0:i.call(r,n))??wo.itemToValue(n)}),N(this,"getItemDisabled",n=>{var r,i;return n==null?!1:((i=(r=this.options).isItemDisabled)==null?void 0:i.call(r,n))??wo.isItemDisabled(n)}),N(this,"stringifyItem",n=>{var r,i;return n==null?null:((i=(r=this.options).itemToString)==null?void 0:i.call(r,n))??wo.itemToString(n)}),N(this,"stringify",n=>n==null?null:this.stringifyItem(this.find(n))),N(this,"stringifyItems",(n,r=", ")=>{const i=[];for(const o of n){const s=this.stringifyItem(o);s!=null&&i.push(s)}return i.join(r)}),N(this,"stringifyMany",(n,r)=>this.stringifyItems(this.findMany(n),r)),N(this,"has",n=>this.indexOf(n)!==-1),N(this,"hasItem",n=>n==null?!1:this.has(this.getItemValue(n))),N(this,"group",()=>{const{groupBy:n,groupSort:r}=this.options;if(!n)return[["",[...this.items]]];const i=new Map;this.items.forEach((s,a)=>{const l=n(s,a);i.has(l)||i.set(l,[]),i.get(l).push(s)});let o=Array.from(i.entries());return r&&o.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}),o}),N(this,"getNextValue",(n,r=1,i=!1)=>{let o=this.indexOf(n);if(o===-1)return null;for(o=i?Math.min(o+r,this.size-1):o+r;o<=this.size&&this.getItemDisabled(this.at(o));)o++;return this.getItemValue(this.at(o))}),N(this,"getPreviousValue",(n,r=1,i=!1)=>{let o=this.indexOf(n);if(o===-1)return null;for(o=i?Math.max(o-r,0):o-r;o>=0&&this.getItemDisabled(this.at(o));)o--;return this.getItemValue(this.at(o))}),N(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 i=this.group();for(const[,o]of i)for(const s of o){const a=this.getItemValue(s);a!=null&&this.indexMap.set(a,r),r++}}return this.indexMap.get(n)??-1}),N(this,"getByText",(n,r)=>{const i=r!=null?this.indexOf(r):-1,o=n.length===1;for(let s=0;s{const{state:i,currentValue:o,timeout:s=350}=r,a=i.keysSoFar+n,c=a.length>1&&Array.from(a).every(f=>f===a[0])?a[0]:a,u=this.getByText(c,o),d=this.getItemValue(u);function h(){clearTimeout(i.timer),i.timer=-1}function m(f){i.keysSoFar=f,h(),f!==""&&(i.timer=+setTimeout(()=>{m(""),h()},s))}return m(a),d}),N(this,"update",(n,r)=>{let i=this.indexOf(n);return i===-1?this:this.copy([...this.items.slice(0,i),r,...this.items.slice(i+1)])}),N(this,"upsert",(n,r,i="append")=>{let o=this.indexOf(n);return o===-1?(i==="append"?this.append:this.prepend)(r):this.copy([...this.items.slice(0,o),r,...this.items.slice(o+1)])}),N(this,"insert",(n,...r)=>this.copy(ni(this.items,n,...r))),N(this,"insertBefore",(n,...r)=>{let i=this.indexOf(n);if(i===-1)if(this.items.length===0)i=0;else return this;return this.copy(ni(this.items,i,...r))}),N(this,"insertAfter",(n,...r)=>{let i=this.indexOf(n);if(i===-1)if(this.items.length===0)i=0;else return this;return this.copy(ni(this.items,i+1,...r))}),N(this,"prepend",(...n)=>this.copy(ni(this.items,0,...n))),N(this,"append",(...n)=>this.copy(ni(this.items,this.items.length,...n))),N(this,"filter",n=>{const r=this.items.filter((i,o)=>n(this.stringifyItem(i),o,i));return this.copy(r)}),N(this,"remove",(...n)=>{const r=n.map(i=>typeof i=="string"?i:this.getItemValue(i));return this.copy(this.items.filter(i=>{const o=this.getItemValue(i);return o==null?!1:!r.includes(o)}))}),N(this,"move",(n,r)=>{const i=this.indexOf(n);return i===-1?this:this.copy(Eo(this.items,[i],r))}),N(this,"moveBefore",(n,...r)=>{let i=this.items.findIndex(s=>this.getItemValue(s)===n);if(i===-1)return this;let o=r.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(Eo(this.items,o,i))}),N(this,"moveAfter",(n,...r)=>{let i=this.items.findIndex(s=>this.getItemValue(s)===n);if(i===-1)return this;let o=r.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(Eo(this.items,o,i+1))}),N(this,"reorder",(n,r)=>this.copy(Eo(this.items,[n],r))),N(this,"compareValue",(n,r)=>{const i=this.indexOf(n),o=this.indexOf(r);return io?1:0}),N(this,"range",(n,r)=>{let i=[],o=n;for(;o!=null;){if(this.find(o)&&i.push(o),o===r)return i;o=this.getNextValue(o)}return[]}),N(this,"getValueRange",(n,r)=>n&&r?this.compareValue(n,r)<=0?this.range(n,r):this.range(r,n):[]),N(this,"toString",()=>{let n="";for(const r of this.items){const i=this.getItemValue(r),o=this.stringifyItem(r),s=this.getItemDisabled(r),a=[i,o,s].filter(Boolean).join(":");n+=a+","}return n}),N(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}},vC=(e,t)=>!!(e!=null&&e.toLowerCase().startsWith(t.toLowerCase()));function ni(e,t,...n){return[...e.slice(0,t),...n,...e.slice(t)]}function Eo(e,t,n){t=[...t].sort((i,o)=>i-o);const r=t.map(i=>e[i]);for(let i=t.length-1;i>=0;i--)e=[...e.slice(0,t[i]),...e.slice(t[i]+1)];return n=Math.max(0,n-t.filter(i=>it[n])return 1}return e.length-t.length}function yC(e){return e.sort(Qu)}function xC(e,t){let n;return Ze(e,{...t,onEnter:(r,i)=>{if(t.predicate(r,i))return n=r,"stop"}}),n}function CC(e,t){const n=[];return Ze(e,{onEnter:(r,i)=>{t.predicate(r,i)&&n.push(r)},getChildren:t.getChildren}),n}function Ju(e,t){let n;return Ze(e,{onEnter:(r,i)=>{if(t.predicate(r,i))return n=[...i],"stop"},getChildren:t.getChildren}),n}function SC(e,t){let n=t.initialResult;return Ze(e,{...t,onEnter:(r,i)=>{n=t.nextResult(n,r,i)}}),n}function wC(e,t){return SC(e,{...t,initialResult:[],nextResult:(n,r,i)=>(n.push(...t.transform(r,i)),n)})}function kC(e,t){const{predicate:n,create:r,getChildren:i}=t,o=(s,a)=>{const l=i(s,a),c=[];l.forEach((m,f)=>{const g=[...a,f],p=o(m,g);p&&c.push(p)});const u=a.length===0,d=n(s,a),h=c.length>0;return u||d||h?r(s,c,a):null};return o(e,[])||r(e,[],[])}function EC(e,t){const n=[];let r=0;const i=new Map,o=new Map;return Ze(e,{getChildren:t.getChildren,onEnter:(s,a)=>{i.has(s)||i.set(s,r++);const l=t.getChildren(s,a);l.forEach(m=>{o.has(m)||o.set(m,s),i.has(m)||i.set(m,r++)});const c=l.length>0?l.map(m=>i.get(m)):void 0,u=o.get(s),d=u?i.get(u):void 0,h=i.get(s);n.push({...s,_children:c,_parent:d,_index:h})}}),n}function OC(e,t){return{type:"insert",index:e,nodes:t}}function IC(e){return{type:"remove",indexes:e}}function Sa(){return{type:"replace"}}function Zu(e){return[e.slice(0,-1),e[e.length-1]]}function ed(e,t,n=new Map){var s;const[r,i]=Zu(e);for(let a=r.length-1;a>=0;a--){const l=r.slice(0,a).join();switch((s=n.get(l))==null?void 0:s.type){case"remove":continue}n.set(l,Sa())}const o=n.get(r.join());switch(o==null?void 0:o.type){case"remove":n.set(r.join(),{type:"removeThenInsert",removeIndexes:o.indexes,insertIndex:i,insertNodes:t});break;default:n.set(r.join(),OC(i,t))}return n}function td(e){const t=new Map,n=new Map;for(const r of e){const i=r.slice(0,-1).join(),o=n.get(i)??[];o.push(r[r.length-1]),n.set(i,o.sort((s,a)=>s-a))}for(const r of e)for(let i=r.length-2;i>=0;i--){const o=r.slice(0,i).join();t.has(o)||t.set(o,Sa())}for(const[r,i]of n)t.set(r,IC(i));return t}function RC(e,t){const n=new Map,[r,i]=Zu(e);for(let o=r.length-1;o>=0;o--){const s=r.slice(0,o).join();n.set(s,Sa())}return n.set(r.join(),{type:"removeThenInsert",removeIndexes:[i],insertIndex:i,insertNodes:[t]}),n}function Oo(e,t,n){return PC(e,{...n,getChildren:(r,i)=>{const o=i.join(),s=t.get(o);switch(s==null?void 0:s.type){case"replace":case"remove":case"removeThenInsert":case"insert":return n.getChildren(r,i);default:return[]}},transform:(r,i,o)=>{const s=o.join(),a=t.get(s);switch(a==null?void 0:a.type){case"remove":return n.create(r,i.filter((u,d)=>!a.indexes.includes(d)),o);case"removeThenInsert":const l=i.filter((u,d)=>!a.removeIndexes.includes(d)),c=a.removeIndexes.reduce((u,d)=>d{const o=[0,...i],s=o.join(),a=t.transform(r,n[s]??[],i),l=o.slice(0,-1).join(),c=n[l]??[];c.push(a),n[l]=c}}),n[""][0]}function TC(e,t){const{nodes:n,at:r}=t;if(r.length===0)throw new Error("Can't insert nodes at the root");const i=ed(r,n);return Oo(e,i,t)}function NC(e,t){if(t.at.length===0)return t.node;const n=RC(t.at,t.node);return Oo(e,n,t)}function _C(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=td(t.indexPaths);return Oo(e,n,t)}function AC(e,t){if(t.indexPaths.length===0)return e;for(const o of t.indexPaths)if(o.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=bC(t.indexPaths),r=n.map(o=>Yu(e,o,t)),i=ed(t.to,r,td(n));return Oo(e,i,t)}function Ze(e,t){const{onEnter:n,onLeave:r,getChildren:i}=t;let o=[],s=[{node:e}];const a=t.reuseIndexPath?()=>o:()=>o.slice();for(;s.length>0;){let l=s[s.length-1];if(l.state===void 0){const u=n==null?void 0:n(l.node,a());if(u==="stop")return;l.state=u==="skip"?-1:0}const c=l.children||i(l.node,a());if(l.children||(l.children=c),l.state!==-1){if(l.stateut(this.rootNode,n.rootNode)),N(this,"getNodeChildren",n=>{var r,i;return((i=(r=this.options).nodeToChildren)==null?void 0:i.call(r,n))??cr.nodeToChildren(n)??[]}),N(this,"resolveIndexPath",n=>typeof n=="string"?this.getIndexPath(n):n),N(this,"resolveNode",n=>{const r=this.resolveIndexPath(n);return r?this.at(r):void 0}),N(this,"getNodeChildrenCount",n=>{var r,i;return((i=(r=this.options).nodeToChildrenCount)==null?void 0:i.call(r,n))??cr.nodeToChildrenCount(n)}),N(this,"getNodeValue",n=>{var r,i;return((i=(r=this.options).nodeToValue)==null?void 0:i.call(r,n))??cr.nodeToValue(n)}),N(this,"getNodeDisabled",n=>{var r,i;return((i=(r=this.options).isNodeDisabled)==null?void 0:i.call(r,n))??cr.isNodeDisabled(n)}),N(this,"stringify",n=>{const r=this.findNode(n);return r?this.stringifyNode(r):null}),N(this,"stringifyNode",n=>{var r,i;return((i=(r=this.options).nodeToString)==null?void 0:i.call(r,n))??cr.nodeToString(n)}),N(this,"getFirstNode",(n=this.rootNode)=>{let r;return Ze(n,{getChildren:this.getNodeChildren,onEnter:(i,o)=>{if(!r&&o.length>0&&!this.getNodeDisabled(i))return r=i,"stop"}}),r}),N(this,"getLastNode",(n=this.rootNode,r={})=>{let i;return Ze(n,{getChildren:this.getNodeChildren,onEnter:(o,s)=>{var a;if(!this.isSameNode(o,n)){if((a=r.skip)!=null&&a.call(r,{value:this.getNodeValue(o),node:o,indexPath:s}))return"skip";s.length>0&&!this.getNodeDisabled(o)&&(i=o)}}}),i}),N(this,"at",n=>Yu(this.rootNode,n,{getChildren:this.getNodeChildren})),N(this,"findNode",(n,r=this.rootNode)=>xC(r,{getChildren:this.getNodeChildren,predicate:i=>this.getNodeValue(i)===n})),N(this,"findNodes",(n,r=this.rootNode)=>{const i=new Set(n.filter(o=>o!=null));return CC(r,{getChildren:this.getNodeChildren,predicate:o=>i.has(this.getNodeValue(o))})}),N(this,"sort",n=>n.reduce((r,i)=>{const o=this.getIndexPath(i);return o&&r.push({value:i,indexPath:o}),r},[]).sort((r,i)=>Qu(r.indexPath,i.indexPath)).map(({value:r})=>r)),N(this,"getIndexPath",n=>Ju(this.rootNode,{getChildren:this.getNodeChildren,predicate:r=>this.getNodeValue(r)===n})),N(this,"getValue",n=>{const r=this.at(n);return r?this.getNodeValue(r):void 0}),N(this,"getValuePath",n=>{if(!n)return[];const r=[];let i=[...n];for(;i.length>0;){const o=this.at(i);o&&r.unshift(this.getNodeValue(o)),i.pop()}return r}),N(this,"getDepth",n=>{const r=Ju(this.rootNode,{getChildren:this.getNodeChildren,predicate:i=>this.getNodeValue(i)===n});return(r==null?void 0:r.length)??0}),N(this,"isSameNode",(n,r)=>this.getNodeValue(n)===this.getNodeValue(r)),N(this,"isRootNode",n=>this.isSameNode(n,this.rootNode)),N(this,"contains",(n,r)=>!n||!r?!1:r.slice(0,n.length).every((i,o)=>n[o]===r[o])),N(this,"getNextNode",(n,r={})=>{let i=!1,o;return Ze(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{var c;if(this.isRootNode(s))return;const l=this.getNodeValue(s);if((c=r.skip)!=null&&c.call(r,{value:l,node:s,indexPath:a}))return l===n&&(i=!0),"skip";if(i&&!this.getNodeDisabled(s))return o=s,"stop";l===n&&(i=!0)}}),o}),N(this,"getPreviousNode",(n,r={})=>{let i,o=!1;return Ze(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{var c;if(this.isRootNode(s))return;const l=this.getNodeValue(s);if((c=r.skip)!=null&&c.call(r,{value:l,node:s,indexPath:a}))return"skip";if(l===n)return o=!0,"stop";this.getNodeDisabled(s)||(i=s)}}),o?i:void 0}),N(this,"getParentNodes",n=>{var o;const r=(o=this.resolveIndexPath(n))==null?void 0:o.slice();if(!r)return[];const i=[];for(;r.length>0;){r.pop();const s=this.at(r);s&&!this.isRootNode(s)&&i.unshift(s)}return i}),N(this,"getDescendantNodes",(n,r)=>{const i=this.resolveNode(n);if(!i)return[];const o=[];return Ze(i,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{a.length!==0&&(!(r!=null&&r.withBranch)&&this.isBranchNode(s)||o.push(s))}}),o}),N(this,"getDescendantValues",(n,r)=>this.getDescendantNodes(n,r).map(o=>this.getNodeValue(o))),N(this,"getParentIndexPath",n=>n.slice(0,-1)),N(this,"getParentNode",n=>{const r=this.resolveIndexPath(n);return r?this.at(this.getParentIndexPath(r)):void 0}),N(this,"visit",n=>{const{skip:r,...i}=n;Ze(this.rootNode,{...i,getChildren:this.getNodeChildren,onEnter:(o,s)=>{var a;if(!this.isRootNode(o))return r!=null&&r({value:this.getNodeValue(o),node:o,indexPath:s})?"skip":(a=i.onEnter)==null?void 0:a.call(i,o,s)}})}),N(this,"getPreviousSibling",n=>{const r=this.getParentNode(n);if(!r)return;const i=this.getNodeChildren(r);let o=n[n.length-1];for(;--o>=0;){const s=i[o];if(!this.getNodeDisabled(s))return s}}),N(this,"getNextSibling",n=>{const r=this.getParentNode(n);if(!r)return;const i=this.getNodeChildren(r);let o=n[n.length-1];for(;++o{const r=this.getParentNode(n);return r?this.getNodeChildren(r):[]}),N(this,"getValues",(n=this.rootNode)=>wC(n,{getChildren:this.getNodeChildren,transform:i=>[this.getNodeValue(i)]}).slice(1)),N(this,"isValidDepth",(n,r)=>r==null?!0:typeof r=="function"?r(n.length):n.length===r),N(this,"isBranchNode",n=>this.getNodeChildren(n).length>0||this.getNodeChildrenCount(n)!=null),N(this,"getBranchValues",(n=this.rootNode,r={})=>{let i=[];return Ze(n,{getChildren:this.getNodeChildren,onEnter:(o,s)=>{var l;if(s.length===0)return;const a=this.getNodeValue(o);if((l=r.skip)!=null&&l.call(r,{value:a,node:o,indexPath:s}))return"skip";this.isBranchNode(o)&&this.isValidDepth(s,r.depth)&&i.push(this.getNodeValue(o))}}),i}),N(this,"flatten",(n=this.rootNode)=>EC(n,{getChildren:this.getNodeChildren})),N(this,"_create",(n,r)=>this.getNodeChildren(n).length>0||r.length>0?{...n,children:r}:{...n}),N(this,"_insert",(n,r,i)=>this.copy(TC(n,{at:r,nodes:i,getChildren:this.getNodeChildren,create:this._create}))),N(this,"copy",n=>new hv({...this.options,rootNode:n})),N(this,"_replace",(n,r,i)=>this.copy(NC(n,{at:r,node:i,getChildren:this.getNodeChildren,create:this._create}))),N(this,"_move",(n,r,i)=>this.copy(AC(n,{indexPaths:r,to:i,getChildren:this.getNodeChildren,create:this._create}))),N(this,"_remove",(n,r)=>this.copy(_C(n,{indexPaths:r,getChildren:this.getNodeChildren,create:this._create}))),N(this,"replace",(n,r)=>this._replace(this.rootNode,n,r)),N(this,"remove",n=>this._remove(this.rootNode,n)),N(this,"insertBefore",(n,r)=>this.getParentNode(n)?this._insert(this.rootNode,n,r):void 0),N(this,"insertAfter",(n,r)=>{if(!this.getParentNode(n))return;const o=[...n.slice(0,-1),n[n.length-1]+1];return this._insert(this.rootNode,o,r)}),N(this,"move",(n,r)=>this._move(this.rootNode,n,r)),N(this,"filter",n=>{const r=kC(this.rootNode,{predicate:n,getChildren:this.getNodeChildren,create:this._create});return this.copy(r)}),N(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=t.rootNode}},cr={nodeToValue(e){return typeof e=="string"?e:xn(e)&&Ut(e,"value")?e.value:""},nodeToString(e){return typeof e=="string"?e:xn(e)&&Ut(e,"label")?e.label:cr.nodeToValue(e)},isNodeDisabled(e){return xn(e)&&Ut(e,"disabled")?!!e.disabled:!1},nodeToChildren(e){return e.children},nodeToChildrenCount(e){if(xn(e)&&Ut(e,"childrenCount"))return e.childrenCount}},ur=new WeakMap,Io=new WeakMap,Ro={},wa=0,id=e=>e&&(e.host||id(e.parentNode)),VC=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=id(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),FC=new Set(["script","output","status","next-route-announcer"]),LC=e=>FC.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),zC=(e,t)=>{const{parentNode:n,markerName:r,controlAttribute:i}=t,o=VC(n,Array.isArray(e)?e:[e]);Ro[r]||(Ro[r]=new WeakMap);const s=Ro[r],a=[],l=new Set,c=new Set(o),u=h=>{!h||l.has(h)||(l.add(h),u(h.parentNode))};o.forEach(u);const d=h=>{!h||c.has(h)||Array.prototype.forEach.call(h.children,m=>{if(l.has(m))d(m);else try{if(LC(m))return;const g=m.getAttribute(i)==="true",p=(ur.get(m)||0)+1,b=(s.get(m)||0)+1;ur.set(m,p),s.set(m,b),a.push(m),p===1&&g&&Io.set(m,!0),b===1&&m.setAttribute(r,""),g||m.setAttribute(i,"true")}catch(f){console.error("[zag-js > ariaHidden] cannot operate on ",m,f)}})};return d(n),l.clear(),wa++,()=>{a.forEach(h=>{const m=ur.get(h)-1,f=s.get(h)-1;ur.set(h,m),s.set(h,f),m||(Io.has(h)||h.removeAttribute(i),Io.delete(h)),f||h.removeAttribute(r)}),wa--,wa||(ur=new WeakMap,ur=new WeakMap,Io=new WeakMap,Ro={})}},DC=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,MC=(e,t=DC(e),n="data-aria-hidden")=>{if(t)return zC(e,{parentNode:t,markerName:n,controlAttribute:"aria-hidden"})},$C=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function BC(e,t={}){const{defer:n=!0}=t,r=n?$C:o=>o(),i=[];return i.push(r(()=>{const s=(typeof e=="function"?e():e).filter(Boolean);s.length!==0&&i.push(MC(s))})),()=>{i.forEach(o=>o==null?void 0:o())}}var od=$("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");od.build();var sd=e=>new ko(e);sd.empty=()=>new ko({items:[]});var jC=e=>{var t;return((t=e.ids)==null?void 0:t.control)??`combobox:${e.id}:control`},WC=e=>{var t;return((t=e.ids)==null?void 0:t.input)??`combobox:${e.id}:input`},HC=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`combobox:${e.id}:content`},UC=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`combobox:${e.id}:popper`},GC=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`combobox:${e.id}:toggle-btn`},qC=e=>{var t;return((t=e.ids)==null?void 0:t.clearTrigger)??`combobox:${e.id}:clear-btn`},Qt=e=>e.getById(HC(e)),dr=e=>e.getById(WC(e)),ad=e=>e.getById(UC(e)),ld=e=>e.getById(jC(e)),ri=e=>e.getById(GC(e)),cd=e=>e.getById(qC(e)),ii=(e,t)=>{if(t==null)return null;const n=`[role=option][data-value="${CSS.escape(t)}"]`;return py(Qt(e),n)},ud=e=>{const t=dr(e);e.isActiveElement(t)||t==null||t.focus({preventScroll:!0})},KC=e=>{const t=ri(e);e.isActiveElement(t)||t==null||t.focus({preventScroll:!0})},{guards:XC,createMachine:YC,choose:QC}=Jc(),{and:Se,not:et}=XC;YC({props({props:e}){return{loopFocus:!0,openOnClick:!1,defaultValue:[],closeOnSelect:!e.multiple,allowCustomValue:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:t}){Uc(t)},collection:sd.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:ut,hash(i){return i.join(",")},onChange(i){var c;const o=n(),s=o.get("selectedItems"),a=e("collection"),l=i.map(u=>s.find(h=>a.getItemValue(h)===u)||a.find(u));o.set("selectedItems",l),(c=e("onValueChange"))==null||c({value:i,items:l})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(i){var s;const o=e("collection").find(i);(s=e("onHighlightChange"))==null||s({highlightedValue:i,highlightedItem:o})}})),inputValue:t(()=>{let i=e("inputValue")||e("defaultInputValue")||"";const o=e("defaultValue")||e("value")||[];if(!i.trim()&&!e("multiple")){const s=e("collection").stringifyMany(o);i=Vt(e("selectionBehavior"),{preserve:i||s,replace:s,clear:""})}return{defaultValue:i,value:e("inputValue"),onChange(s){var c;const a=r(),l=(a.previousEvent||a).src;(c=e("onInputValueChange"))==null||c({inputValue:s,reason:l})}}}),highlightedItem:t(()=>{const i=e("highlightedValue");return{defaultValue:e("collection").find(i)}}),selectedItems:t(()=>{const i=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(i)}})}},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:i}){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()],()=>{i({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:QC([{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:Se("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:Se("isCustomValue",et("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:Se("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:Se("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:Se("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:Se("isOpenControlled","isCustomValue",et("hasHighlightedItem"),et("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Se("isCustomValue",et("hasHighlightedItem"),et("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:Se("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:Se("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:Se("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:Se("isOpenControlled","isCustomValue",et("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Se("isCustomValue",et("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:Se("isOpenControlled","isCustomValue",et("hasHighlightedItem"),et("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Se("isCustomValue",et("hasHighlightedItem"),et("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:Se("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:Se("isOpenControlled","isCustomValue",et("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Se("isCustomValue",et("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:Se("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 qb(n)?n:!!(n!=null&&n({inputValue:t.get("inputValue")}))},restoreFocus:({event:e})=>e.restoreFocus==null?!0:!!e.restoreFocus,isChangeEvent:({event:e})=>{var t;return((t=e.previousEvent)==null?void 0:t.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:Zr(()=>Qt(n),{defer:!0,exclude:()=>[dr(n),ri(n),cd(n)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(i){i.preventDefault(),i.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},hideOtherElements({scope:e}){return BC([dr(e),Qt(e),ri(e),cd(e)])},trackPlacement({context:e,prop:t,scope:n}){const r=()=>ld(n)||ri(n),i=()=>ad(n);return e.set("currentPlacement",t("positioning").placement),ft(r,i,{...t("positioning"),defer:!0,onComplete(o){e.set("currentPlacement",o.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:n,event:r}){const i=dr(n);let o=[];const s=c=>{const u=r.current().type.includes("POINTER"),d=e.get("highlightedValue");if(u||!d)return;const h=Qt(n),m=t("scrollToIndexFn");if(m){const p=t("collection").indexOf(d);m({index:p,immediate:c,getElement:()=>ii(n,d)});return}const f=ii(n,d),g=K(()=>{oo(f,{rootEl:h,block:"nearest"})});o.push(g)},a=K(()=>s(!0));o.push(a);const l=ro(i,{attributes:["aria-activedescendant"],callback:()=>s(!1)});return o.push(l),()=>{o.forEach(c=>c())}}},actions:{reposition({context:e,prop:t,scope:n,event:r}){ft(()=>ld(n),()=>ad(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){var a;const{context:t,prop:n}=e,r=n("collection"),i=t.get("highlightedValue");if(!i||!r.has(i))return;const o=n("multiple")?nr(t.get("value"),i):[i];(a=n("onSelect"))==null||a({value:o,itemValue:i}),t.set("value",o);const s=Vt(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(o),clear:""});t.set("inputValue",s)},scrollToHighlightedItem({context:e,prop:t,scope:n}){Hc(()=>{const r=e.get("highlightedValue");if(r==null)return;const i=ii(n,r),o=Qt(n),s=t("scrollToIndexFn");if(s){const a=t("collection").indexOf(r);s({index:a,immediate:!0,getElement:()=>ii(n,r)});return}oo(i,{rootEl:o,block:"nearest"})})},selectItem(e){const{context:t,event:n,flush:r,prop:i}=e;n.value!=null&&r(()=>{var a;const o=i("multiple")?nr(t.get("value"),n.value):[n.value];(a=i("onSelect"))==null||a({value:o,itemValue:n.value}),t.set("value",o);const s=Vt(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:i("collection").stringifyMany(o),clear:""});t.set("inputValue",s)})},clearItem(e){const{context:t,event:n,flush:r,prop:i}=e;n.value!=null&&r(()=>{const o=yn(t.get("value"),n.value);t.set("value",o);const s=Vt(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:i("collection").stringifyMany(o),clear:""});t.set("inputValue",s)})},setInitialFocus({scope:e}){K(()=>{ud(e)})},setFinalFocus({scope:e}){K(()=>{const t=ri(e);(t==null?void 0:t.dataset.focusable)==null?ud(e):KC(e)})},syncInputValue({context:e,scope:t,event:n}){const r=dr(t);r&&(r.value=e.get("inputValue"),queueMicrotask(()=>{n.current().type!=="INPUT.CHANGE"&&y0(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"),i=Vt(r,{replace:n("hasSelectedItems")?n("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",i)},setValue(e){const{context:t,flush:n,event:r,prop:i}=e;n(()=>{t.set("value",r.value);const o=Vt(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:i("collection").stringifyMany(r.value),clear:""});t.set("inputValue",o)})},clearSelectedItems(e){const{context:t,flush:n,prop:r}=e;n(()=>{t.set("value",[]);const i=Vt(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:r("collection").stringifyMany([]),clear:""});t.set("inputValue",i)})},scrollContentToTop({prop:e,scope:t}){const n=e("scrollToIndexFn");if(n){const r=e("collection").firstValue;n({index:0,immediate:!0,getElement:()=>ii(t,r)})}else{const r=Qt(t);if(!r)return;r.scrollTop=0}},invokeOnOpen({prop:e,event:t}){var r;const n=dd(t);(r=e("onOpenChange"))==null||r({open:!0,reason:n})},invokeOnClose({prop:e,event:t}){var r;const n=dd(t);(r=e("onOpenChange"))==null||r({open:!1,reason:n})},highlightFirstItem({context:e,prop:t,scope:n}){(Qt(n)?queueMicrotask:K)(()=>{const i=t("collection").firstValue;i&&e.set("highlightedValue",i)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:n}){(Qt(n)?queueMicrotask:K)(()=>{const i=t("collection").lastValue;i&&e.set("highlightedValue",i)})},highlightNextItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),i=t("collection");r?(n=i.getNextValue(r),!n&&t("loopFocus")&&(n=i.firstValue)):n=i.firstValue,n&&e.set("highlightedValue",n)},highlightPrevItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),i=t("collection");r?(n=i.getPreviousValue(r),!n&&t("loopFocus")&&(n=i.lastValue)):n=i.lastValue,n&&e.set("highlightedValue",n)},highlightFirstSelectedItem({context:e,prop:t}){K(()=>{const[n]=t("collection").sort(e.get("value"));n&&e.set("highlightedValue",n)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:n}){K(()=>{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}){K(()=>{const r=t("collection");let i=null;n("hasSelectedItems")?i=r.sort(e.get("value"))[0]:i=r.lastValue,i&&e.set("highlightedValue",i)})},autofillInputValue({context:e,computed:t,prop:n,event:r,scope:i}){const o=dr(i),s=n("collection");if(!t("autoComplete")||!o||!r.keypress)return;const a=s.stringify(e.get("highlightedValue"));K(()=>{o.value=a||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{const{context:t,prop:n}=e,r=n("collection"),i=t.get("value"),o=i.map(a=>t.get("selectedItems").find(c=>r.getItemValue(c)===a)||r.find(a));t.set("selectedItems",o);const s=Vt(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(i),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 dd(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"]),M()(["htmlFor"]),M()(["id"]),M()(["item","persistFocus"]);const JC=od.extendWith("empty");var ka=$("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger");ka.build(),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"]);var hd=$("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");hd.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 fd=$("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");fd.build();var ZC=e=>{var c,u;if(!e)return;const t=Dc(e),n=Ce(e),r=St(e),i=()=>{requestAnimationFrame(()=>{e.style.height="auto";let d;t.boxSizing==="content-box"?d=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):d=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&d>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),d=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${d}px`})};e.addEventListener("input",i),(c=e.form)==null||c.addEventListener("reset",i);const o=Object.getPrototypeOf(e),s=Object.getOwnPropertyDescriptor(o,"value");Object.defineProperty(e,"value",{...s,set(){var d;(d=s==null?void 0:s.set)==null||d.apply(this,arguments),i()}});const a=new n.ResizeObserver(()=>{requestAnimationFrame(()=>i())});a.observe(e);const l=new n.MutationObserver(()=>i());return l.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),(u=r.fonts)==null||u.addEventListener("loadingdone",i),()=>{var d,h;e.removeEventListener("input",i),(d=e.form)==null||d.removeEventListener("reset",i),(h=r.fonts)==null||h.removeEventListener("loadingdone",i),a.disconnect(),l.disconnect()}};const gd=T.forwardRef((e,t)=>{const{autoresize:n,...r}=e,i=T.useRef(null),o=fC(),s=Yc(o==null?void 0:o.getTextareaProps(),{style:{resize:n?"none":void 0}},r);return T.useEffect(()=>{if(n)return ZC(i.current)},[n]),S.jsx(_y.textarea,{...s,ref:Zc(t,i)})});gd.displayName="FieldTextarea";const pd=$("fieldset").parts("root","errorText","helperText","legend");pd.build();var md=$("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");md.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"]);var vd=$("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");vd.build();var eS=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`hover-card:${e.id}:trigger`},tS=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`hover-card:${e.id}:content`},nS=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`hover-card:${e.id}:popper`},Ea=e=>e.getById(eS(e)),rS=e=>e.getById(tS(e)),bd=e=>e.getById(nS(e)),{not:Po,and:yd}=Kt();yd("isOpenControlled",Po("isPointer")),Po("isPointer"),yd("isOpenControlled",Po("isPointer")),Po("isPointer"),M()(["closeDelay","dir","getRootNode","id","ids","disabled","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var xd=$("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","root","tree");xd.build();var Cd=e=>new rd(e);Cd.empty=()=>new rd({rootNode:{children:[]}});var iS=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.node)==null?void 0:r.call(n,t))??`tree:${e.id}:node:${t}`},En=(e,t)=>{var n;t!=null&&((n=e.getById(iS(e,t)))==null||n.focus())};function oS(e,t,n){const r=e.getDescendantValues(t),i=r.every(o=>n.includes(o));return tr(i?yn(n,...r):bn(n,...r))}function To(e,t){const{context:n,prop:r,refs:i}=e;if(!r("loadChildren")){n.set("expandedValue",g=>tr(bn(g,...t)));return}const o=n.get("loadingStatus"),[s,a]=xc(t,g=>o[g]==="loaded");if(s.length>0&&n.set("expandedValue",g=>tr(bn(g,...s))),a.length===0)return;const l=r("collection"),[c,u]=xc(a,g=>{const p=l.findNode(g);return l.getNodeChildren(p).length>0});if(c.length>0&&n.set("expandedValue",g=>tr(bn(g,...c))),u.length===0)return;n.set("loadingStatus",g=>({...g,...u.reduce((p,b)=>({...p,[b]:"loading"}),{})}));const d=u.map(g=>{const p=l.getIndexPath(g),b=l.getValuePath(p),y=l.findNode(g);return{id:g,indexPath:p,valuePath:b,node:y}}),h=i.get("pendingAborts"),m=r("loadChildren");m0(m,()=>"[zag-js/tree-view] `loadChildren` is required for async expansion");const f=d.map(({id:g,indexPath:p,valuePath:b,node:y})=>{const C=h.get(g);C&&(C.abort(),h.delete(g));const x=new AbortController;return h.set(g,x),m({valuePath:b,indexPath:p,node:y,signal:x.signal})});Promise.allSettled(f).then(g=>{var x,E;const p=[],b=[],y=n.get("loadingStatus");let C=r("collection");g.forEach((P,_)=>{const{id:O,indexPath:I,node:R,valuePath:z}=d[_];P.status==="fulfilled"?(y[O]="loaded",p.push(O),C=C.replace(I,{...R,children:P.value})):(h.delete(O),Reflect.deleteProperty(y,O),b.push({node:R,error:P.reason,indexPath:I,valuePath:z}))}),n.set("loadingStatus",y),p.length&&(n.set("expandedValue",P=>tr(bn(P,...p))),(x=r("onLoadChildrenComplete"))==null||x({collection:C})),b.length&&((E=r("onLoadChildrenError"))==null||E({nodes:b}))})}function Jt(e){const{prop:t,context:n}=e;return function({indexPath:i}){return t("collection").getValuePath(i).slice(0,-1).some(s=>!n.get("expandedValue").includes(s))}}var{and:It}=Kt();It("isMultipleSelection","moveFocus"),It("isShiftKey","isMultipleSelection"),It("isShiftKey","isMultipleSelection"),It("isBranchFocused","isBranchExpanded"),It("isShiftKey","isMultipleSelection"),It("isShiftKey","isMultipleSelection"),It("isCtrlKey","isMultipleSelection"),It("isShiftKey","isMultipleSelection"),It("isCtrlKey","isMultipleSelection"),It("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"]),M()(["node","indexPath"]);var Sd=$("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText");Sd.build(),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 sS=Sd.extendWith("empty");var wd=$("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");wd.build();var kd=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`menu:${e.id}:trigger`},aS=e=>{var t;return((t=e.ids)==null?void 0:t.contextTrigger)??`menu:${e.id}:ctx-trigger`},Ed=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`menu:${e.id}:content`},lS=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`menu:${e.id}:popper`},Oa=(e,t)=>`${e.id}/${t}`,On=e=>(e==null?void 0:e.dataset.value)??null,Zt=e=>e.getById(Ed(e)),Od=e=>e.getById(lS(e)),No=e=>e.getById(kd(e)),cS=(e,t)=>t?e.getById(Oa(e,t)):null,Ia=e=>e.getById(aS(e)),oi=e=>{const n=`[role^="menuitem"][data-ownedby=${CSS.escape(Ed(e))}]:not([data-disabled])`;return ao(Zt(e),n)},uS=e=>Gr(oi(e)),dS=e=>Bs(oi(e)),Ra=(e,t)=>t?e.id===t||e.dataset.value===t:!1,hS=(e,t)=>{const n=oi(e),r=n.findIndex(i=>Ra(i,t.value));return Wb(n,r,{loop:t.loop??t.loopFocus})},fS=(e,t)=>{const n=oi(e),r=n.findIndex(i=>Ra(i,t.value));return Ub(n,r,{loop:t.loop??t.loopFocus})},gS=(e,t)=>{const n=oi(e),r=n.find(i=>Ra(i,t.value));return Xr(n,{state:t.typeaheadState,key:t.key,activeId:(r==null?void 0:r.id)??null})},pS=e=>{var t;return!!((t=e==null?void 0:e.getAttribute("role"))!=null&&t.startsWith("menuitem"))&&!!(e!=null&&e.hasAttribute("aria-controls"))},mS="menu:select";function vS(e,t){if(!e)return;const n=Ce(e),r=new n.CustomEvent(mS,{detail:{value:t}});e.dispatchEvent(r)}var{not:it,and:hr,or:bS}=Kt();it("isSubmenu"),bS("isOpenAutoFocusEvent","isArrowDownEvent"),hr(it("isTriggerItem"),"isOpenControlled"),it("isTriggerItem"),hr("isSubmenu","isOpenControlled"),it("isPointerSuspended"),hr(it("isPointerSuspended"),it("isTriggerItem")),hr(it("isTriggerItemHighlighted"),it("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),hr(it("isTriggerItemHighlighted"),it("isHighlightedItemEditable"),"closeOnSelect"),hr(it("isTriggerItemHighlighted"),it("isHighlightedItemEditable"));function Id(e){let t=e.parent;for(;t&&t.context.get("isSubmenu");)t=t.refs.get("parent");t==null||t.send({type:"CLOSE"})}function yS(e,t){return e?iC(e,t):!1}function xS(e,t,n){const r=Object.keys(e).length>0;if(!t)return null;if(!r)return Oa(n,t);for(const i in e){const o=e[i],s=kd(o.scope);if(s===t)return s}return Oa(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 Pa=new Map,Ta=!1;try{Ta=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let _o=!1;try{_o=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Rd={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class CS{format(t){let n="";if(!Ta&&this.options.signDisplay!=null?n=wS(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!_o){var r;let{unit:i,unitDisplay:o="short",locale:s}=this.resolvedOptions();if(!i)return n;let a=(r=Rd[i])===null||r===void 0?void 0:r[o];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= 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= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Ta&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!_o&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=SS(t,n),this.options=n}}function SS(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!_o){var r;let{unit:s,unitDisplay:a="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=Rd[s])===null||r===void 0)&&r[a]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((s,a)=>s[0]0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),o=e.format(n),s=i.replace(o,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(o,"!!!").replace(s,"+").replace("!!!",o)}else return e.format(n)}}const kS=new RegExp("^.*\\(.*\\).*$"),ES=["latn","arab","hanidec","deva","beng","fullwide"];class Pd{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 Td=new Map;function Na(e,t,n){let r=Nd(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of ES)if(i!==r.options.numberingSystem){let o=Nd(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(o.isValidPartialNumber(n))return o}}return r}function Nd(e,t){let n=e+(t?Object.entries(t).sort((i,o)=>i[0]-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,o;let s={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)+2,20)};return new Pd(this.locale,s).parse(new CS(this.locale,s).format(r))}return this.options.currencySign==="accounting"&&kS.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=si(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&this.symbols.group&&(t=si(t," ",this.symbols.group),t=si(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=si(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=RS(t,this.formatter,this.options,n);var r,i;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const _d=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),IS=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function RS(e,t,n,r){var i,o,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=IS.map(R=>l.formatToParts(R));var h;let m=(h=(i=c.find(R=>R.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&h!==void 0?h:"-",f=(o=u.find(R=>R.type==="plusSign"))===null||o===void 0?void 0:o.value;!f&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(f="+");let p=(s=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(R=>R.type==="decimal"))===null||s===void 0?void 0:s.value,b=(a=c.find(R=>R.type==="group"))===null||a===void 0?void 0:a.value,y=c.filter(R=>!_d.has(R.type)).map(R=>Ad(R.value)),C=d.flatMap(R=>R.filter(z=>!_d.has(z.type)).map(z=>Ad(z.value))),x=[...new Set([...y,...C])].sort((R,z)=>z.length-R.length),E=x.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${x.join("|")}|[\\p{White_Space}]`,"gu"),P=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),_=new Map(P.map((R,z)=>[R,z])),O=new RegExp(`[${P.join("")}]`,"g");return{minusSign:m,plusSign:f,decimal:p,group:b,literals:E,numeral:O,index:R=>String(_.get(R))}}function si(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function Ad(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var Vd=$("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");Vd.build();var PS=e=>{var t;return((t=e.ids)==null?void 0:t.input)??`number-input:${e.id}:input`},TS=e=>{var t;return((t=e.ids)==null?void 0:t.incrementTrigger)??`number-input:${e.id}:inc`},NS=e=>{var t;return((t=e.ids)==null?void 0:t.decrementTrigger)??`number-input:${e.id}:dec`},Fd=e=>`number-input:${e.id}:cursor`,Ao=e=>e.getById(PS(e)),_S=e=>e.getById(TS(e)),AS=e=>e.getById(NS(e)),Ld=e=>e.getDoc().getElementById(Fd(e)),VS=(e,t)=>{let n=null;return t==="increment"&&(n=_S(e)),t==="decrement"&&(n=AS(e)),n},FS=(e,t)=>{if(!Bc())return DS(e,t),()=>{var n;(n=Ld(e))==null||n.remove()}},LS=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")}},zS=(e,t)=>{const{point:n,isRtl:r,event:i}=t,o=e.getWin(),s=Us(i.movementX,o.devicePixelRatio),a=Us(i.movementY,o.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=o.innerWidth,d=Us(7.5,o.devicePixelRatio);return c.x=s0(c.x+d,u)-d,{hint:l,point:c}},DS=(e,t)=>{const n=e.getDoc(),r=n.createElement("div");r.className="scrubber--cursor",r.id=Fd(e),Object.assign(r.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:S0,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),r.innerHTML=` - `,n.body.appendChild(r)};function tC(e){if(!(!e||e.ownerDocument.activeElement!==e))try{const{selectionStart:t,selectionEnd:n,value:r}=e,i=r.substring(0,t),o=r.substring(n);return{start:t,end:n,value:r,beforeTxt:i,afterTxt:o}}catch{}}function nC(e,t){if(!(!e||e.ownerDocument.activeElement!==e)){if(!t){e.setSelectionRange(e.value.length,e.value.length);return}try{const{value:n}=e,{beforeTxt:r="",afterTxt:i="",start:o}=t;let s=n.length;if(n.endsWith(i))s=n.length-i.length;else if(n.startsWith(r))s=r.length;else if(o!=null){const a=r[o-1],l=n.indexOf(a,o-1);l!==-1&&(s=l+1)}e.setSelectionRange(s,s)}catch{}}}var rC=(e,t={})=>new Intl.NumberFormat(e,t),iC=(e,t={})=>new ad(e,t),va=(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()},oC=(e,t)=>{let n=e!==void 0&&!Number.isNaN(e)?e:1;return(t==null?void 0:t.style)==="percent"&&(e===void 0||Number.isNaN(e))&&(n=.01),n},{choose:sC,guards:aC,createMachine:lC}=_c(),{not:pd,and:md}=aC;lC({props({props:e}){const t=oC(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){var s;const i=n(),o=va(r,{computed:i,prop:e});(s=e("onValueChange"))==null||s({value:r,valueAsNumber:o})}})),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})=>va(e.get("value"),{computed:t,prop:n}),formattedValue:({computed:e,prop:t})=>Sn(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>_b(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>Nb(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!Ab(e("valueAsNumber"),t("min"),t("max")),isValueEmpty:({context:e})=>e.get("value")==="",isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),canIncrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMax"),canDecrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMin"),valueText:({prop:e,context:t})=>{var n,r;return(r=(n=e("translations")).valueText)==null?void 0:r.call(n,t.get("value"))},formatter:Nc(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>rC(e,t)),parser:Nc(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>iC(e,t))},watch({track:e,action:t,context:n,computed:r,prop:i}){e([()=>n.get("value"),()=>i("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:md("clampValueOnBlur",pd("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{guard:pd("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:sC([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:md("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=ko(t);return Ls(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 QS(t,n)},preventTextSelection({scope:e}){return JS(e)},trackButtonDisabled({context:e,scope:t,send:n}){const r=e.get("hint"),i=YS(t,r);return Ki(i,{attributes:["disabled"],callback(){n({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:n}){const r=ko(e);if(!r||!e.isActiveElement(r)||!n("allowMouseWheel"))return;function i(o){o.preventDefault();const s=Math.sign(o.deltaY)*-1;s===1?t({type:"VALUE.INCREMENT"}):s===-1&&t({type:"VALUE.DECREMENT"})}return Ie(r,"wheel",i,{passive:!1})},activatePointerLock({scope:e}){if(!wc())return Vy(e.getDoc())},trackMousemove({scope:e,send:t,context:n,computed:r}){const i=e.getDoc();function o(a){const l=n.get("scrubberCursorPoint"),u=r("isRtl"),c=ZS(e,{point:l,isRtl:u,event:a});c.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:c.hint,point:c.point})}function s(){t({type:"SCRUBBER.POINTER_UP"})}return Ps(Ie(i,"mousemove",o,!1),Ie(i,"mouseup",s,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const n=ko(e);e.isActiveElement(n)||K(()=>n==null?void 0:n.focus({preventScroll:!0}))},increment({context:e,event:t,prop:n,computed:r}){let i=zb(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(i=Be(i,n("min"),n("max"))),e.set("value",Sn(i,{computed:r,prop:n}))},decrement({context:e,event:t,prop:n,computed:r}){let i=Db(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(i=Be(i,n("min"),n("max"))),e.set("value",Sn(i,{computed:r,prop:n}))},setClampedValue({context:e,prop:t,computed:n}){const r=Be(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 i=va(t.value,{computed:r,prop:n});n("allowOverflow")||(i=Be(i,n("min"),n("max"))),e.set("value",Sn(i,{computed:r,prop:n}))},setValue({context:e,event:t}){var r;const n=((r=t.target)==null?void 0:r.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}){var n;(n=t("onFocusChange"))==null||n({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){var n;(n=t("onFocusChange"))==null||n({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:n}){var i;if(n.type==="INPUT.CHANGE")return;const r=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";(i=t("onValueInvalid"))==null||i({reason:r,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:n,scope:r}){const i=t.type.endsWith("CHANGE")?e.get("value"):n("formattedValue"),o=ko(r),s=tC(o);K(()=>{qi(o,i),nC(o,s)})},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=gd(t),r=e.get("scrubberCursorPoint");!n||!r||(n.style.transform=`translate3d(${r.x}px, ${r.y}px, 0px)`)}}}}),D()(["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 vd=M("pinInput").parts("root","label","input","control");vd.build(),D()(["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 bd=M("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger");bd.build(),D()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);var ba=M("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");ba.build(),D()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var yd=M("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");yd.build(),D()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var ya=M("radio-group").parts("root","label","item","itemText","itemControl","indicator");ya.build(),D()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]),D()(["value","disabled","invalid"]);var xd=M("rating-group").parts("root","label","item","control");xd.build(),D()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]),D()(["index"]);var Sd=M("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");Sd.build(),D()(["dir","getRootNode","ids","id"]);const Cd=ya.rename("segment-group");Cd.build();var wd=M("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");wd.build();var kd=e=>new po(e);kd.empty=()=>new po({items:[]});var cC=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`select:${e.id}:content`},uC=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`select:${e.id}:trigger`},dC=e=>{var t;return((t=e.ids)==null?void 0:t.clearTrigger)??`select:${e.id}:clear-trigger`},hC=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.item)==null?void 0:r.call(n,t))??`select:${e.id}:option:${t}`},fC=e=>{var t;return((t=e.ids)==null?void 0:t.hiddenSelect)??`select:${e.id}:select`},gC=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`select:${e.id}:positioner`},xa=e=>e.getById(fC(e)),Qr=e=>e.getById(cC(e)),Eo=e=>e.getById(uC(e)),pC=e=>e.getById(dC(e)),Ed=e=>e.getById(gC(e)),Sa=(e,t)=>t==null?null:e.getById(hC(e,t)),{and:Jr,not:Cn,or:mC}=Ut();mC("isTriggerArrowDownEvent","isTriggerEnterEvent"),Jr(Cn("multiple"),"hasSelectedItems"),Cn("multiple"),Jr(Cn("multiple"),"hasSelectedItems"),Cn("multiple"),Cn("multiple"),Cn("multiple"),Cn("multiple"),Jr("closeOnSelect","isOpenControlled"),Jr("hasHighlightedItem","loop","isLastItemHighlighted"),Jr("hasHighlightedItem","loop","isFirstItemHighlighted");function Od(e){var n;const t=e.restoreFocus??((n=e.previousEvent)==null?void 0:n.restoreFocus);return t==null||!!t}D()(["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"]),D()(["item","persistFocus"]),D()(["id"]),D()(["htmlFor"]);var Id=M("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");Id.build(),D()(["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"]),D()(["index","name"]);var Rd=M("switch").parts("root","label","control","thumb");Rd.build(),D()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);var Pd=M("tooltip").parts("trigger","arrow","arrowTip","positioner","content");Pd.build();var vC=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`tooltip:${e.id}:trigger`},bC=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`tooltip:${e.id}:popper`},Ca=e=>e.getById(vC(e)),Td=e=>e.getById(bC(e)),wn=Mb({id:null}),{and:yC,not:Nd}=Ut();yC("noVisibleTooltip",Nd("hasPointerMoveOpened")),Nd("hasPointerMoveOpened"),D()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);function _d(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}const xC=(e,t)=>{var l;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 i=t(`colors.${n}`),o=(l=t.raw(`opacity.${r}`))==null?void 0:l.value;if(!o&&isNaN(Number(r)))return{invalid:!0,value:n};const s=o?Number(o)*100+"%":`${r}%`,a=i??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 i="--mix-"+e;return{[i]:r.value,[e]:`var(${i}, ${r.color})`}};function wa(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>wa(n));const t=Object.create(Object.getPrototypeOf(e));for(const n of Object.keys(e))t[n]=wa(e[n]);return t}function ka(e,t){if(t==null)return e;for(const n of Object.keys(t))if(!(t[n]===void 0||n==="__proto__"))if(!Me(e[n])&&Me(t[n]))Object.assign(e,{[n]:t[n]});else if(e[n]&&Me(t[n]))ka(e[n],t[n]);else if(Array.isArray(t[n])&&Array.isArray(e[n])){let r=0;for(;re!=null;function Ot(e,t,n={}){const{stop:r,getKey:i}=n;function o(s,a=[]){if(Me(s)||Array.isArray(s)){const l={};for(const[u,c]of Object.entries(s)){const d=(i==null?void 0:i(u,c))??u,h=[...a,d];if(r!=null&&r(s,h))return t(s,a);const m=o(c,h);Ea(m)&&(l[d]=m)}return l}return t(s,a)}return o(e)}function Ad(e,t){return Array.isArray(e)?e.map(n=>Ea(n)?t(n):n):Me(e)?Ot(e,n=>t(n)):Ea(e)?t(e):e}const Oo=["value","type","description"],SC=e=>e&&typeof e=="object"&&!Array.isArray(e),Vd=(...e)=>{var n;const t=ir({},...e.map(wa));return(n=t.theme)!=null&&n.tokens&&Ot(t.theme.tokens,r=>{const s=Object.keys(r).filter(l=>!Oo.includes(l)).length>0,a=Oo.some(l=>r[l]!=null);return s&&a&&(r.DEFAULT||(r.DEFAULT={}),Oo.forEach(l=>{var u;r[l]!=null&&((u=r.DEFAULT)[l]||(u[l]=r[l]),delete r[l])})),r},{stop(r){return SC(r)&&Object.keys(r).some(i=>Oo.includes(i)||i!==i.toLowerCase()&&i!==i.toUpperCase())}}),t},CC=e=>e,ve=e=>e,B=e=>e,wC=e=>e,kC=e=>e,or=e=>e,EC=e=>e,OC=e=>e,IC=e=>e;function Ld(){const e=t=>t;return new Proxy(e,{get(){return e}})}const ge=Ld(),Oa=Ld(),Ia=e=>e,RC=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function PC(e){return`${e}`.replace(RC,t=>`\\${t}`)}const TC=/[A-Z]/g;function NC(e){return e.replace(TC,t=>`-${t.toLowerCase()}`)}function Fd(e,t={}){const{fallback:n="",prefix:r=""}=t,i=NC(["-",r,PC(e)].filter(Boolean).join("-"));return{var:i,ref:`var(${i}${n?`, ${n}`:""})`}}const _C=e=>/^var\(--.+\)$/.test(e),Se=(e,t)=>t!=null?`${e}(${t})`:t,kn=e=>{if(_C(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},zd=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]??{}}}),AC=ne("borderColor"),Lt=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),VC=CC({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"}),sr=Fd("bg-currentcolor"),Dd=e=>e===sr.ref||e==="currentBg",re=e=>({...e("colors"),currentBg:sr}),LC=Ia({conditions:VC,utilities:{background:{values:re,shorthand:["bg"],transform(e,t){if(Dd(t.raw))return{background:sr.ref};const n=ne("background")(e,t);return{...n,[sr.var]:n==null?void 0:n.background}}},backgroundColor:{values:re,shorthand:["bgColor"],transform(e,t){if(Dd(t.raw))return{backgroundColor:sr.ref};const n=ne("backgroundColor")(e,t);return{...n,[sr.var]:n==null?void 0: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])":AC(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":Se("blur",e)})},brightness:{transform:e=>({"--brightness":Se("brightness",e)})},contrast:{transform:e=>({"--contrast":Se("contrast",e)})},grayscale:{transform:e=>({"--grayscale":Se("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":Se("hue-rotate",kn(e))})},invert:{transform:e=>({"--invert":Se("invert",e)})},saturate:{transform:e=>({"--saturate":Se("saturate",e)})},sepia:{transform:e=>({"--sepia":Se("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":Se("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":Se("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":Se("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":Se("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":Se("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":Se("hue-rotate",kn(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":Se("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":Se("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":Se("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":Se("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:zd("&:is(:focus, [data-focus])"),focusVisibleRing:zd("&: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":kn(e)})},skewY:{transform:e=>({"--skew-y":kn(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:kn(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}}},rotateX:{transform(e){return{"--rotate-x":kn(e)}}},rotateY:{transform(e){return{"--rotate-y":kn(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 Lt("all");case"position":return Lt("left, right, top, bottom, inset-inline, inset-block");case"colors":return Lt("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return Lt("opacity");case"shadow":return Lt("box-shadow");case"transform":return Lt("transform");case"size":return Lt("width, height");case"backgrounds":return Lt("background, background-color, background-image, background-position");case"common":return Lt("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 FC[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"}}}),FC={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 zC="",DC=zC.split(","),MC="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",BC=MC.split(",").concat(DC),$C=new Map(BC.map(e=>[e,!0]));function jC(e){const t=Object.create(null);return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var WC=/&|@/,HC=jC(e=>$C.has(e)||e.startsWith("--")||WC.test(e));function Md(e,t){const n={};return Ot(e,(r,i)=>{r&&(n[i.join(".")]=r.value)},{stop:t}),n}var UC=Zr;Zr.default=Zr,Zr.stable=jd,Zr.stableStringify=jd;var Io="[...]",Bd="[Circular]",En=[],On=[];function $d(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function Zr(e,t,n,r){typeof r>"u"&&(r=$d()),Ra(e,"",0,[],void 0,0,r);var i;try{On.length===0?i=JSON.stringify(e,t,n):i=JSON.stringify(e,Wd(t),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;En.length!==0;){var o=En.pop();o.length===4?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}}return i}function ar(e,t,n,r){var i=Object.getOwnPropertyDescriptor(r,n);i.get!==void 0?i.configurable?(Object.defineProperty(r,n,{value:e}),En.push([r,n,t,i])):On.push([t,n,e]):(r[n]=e,En.push([r,n,t]))}function Ra(e,t,n,r,i,o,s){o+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;as.depthLimit){ar(Io,e,t,i);return}if(typeof s.edgesLimit<"u"&&n+1>s.edgesLimit){ar(Io,e,t,i);return}if(r.push(e),Array.isArray(e))for(a=0;at?1:0}function jd(e,t,n,r){typeof r>"u"&&(r=$d());var i=Pa(e,"",0,[],void 0,0,r)||e,o;try{On.length===0?o=JSON.stringify(i,t,n):o=JSON.stringify(i,Wd(t),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;En.length!==0;){var s=En.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return o}function Pa(e,t,n,r,i,o,s){o+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;as.depthLimit){ar(Io,e,t,i);return}if(typeof s.edgesLimit<"u"&&n+1>s.edgesLimit){ar(Io,e,t,i);return}if(r.push(e),Array.isArray(e))for(a=0;a0)for(var r=0;r{const t=Object.create(null);function n(...r){const i=r.map(o=>qC(o)).join("|");return t[i]===void 0&&(t[i]=e(...r)),t[i]}return n},Hd=16,Ro="px",Ta="em",ei="rem";function Ud(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),n=new RegExp(`${Ro}|${Ta}|${ei}`),r=e.match(new RegExp(`${t.source}(${n.source})`));return r==null?void 0:r[1]}function Gd(e=""){if(typeof e=="number")return`${e}px`;const t=Ud(e);if(!t||t===Ro)return e;if(t===Ta||t===ei)return`${parseFloat(e)*Hd}${Ro}`}function qd(e=""){const t=Ud(e);if(!t||t===ei)return e;if(t===Ta)return`${parseFloat(e)}${ei}`;if(t===Ro)return`${parseFloat(e)/Hd}${ei}`}const KC=e=>e.charAt(0).toUpperCase()+e.slice(1);function XC(e){const t=YC(e),n=Object.fromEntries(t);function r(h){return n[h]}function i(h){return lr(r(h))}function o(){const h=Object.keys(n),m=QC(h),f=h.flatMap(g=>{const p=r(g),v=[`${g}Down`,lr({max:Po(p.min)})],b=[g,lr({min:p.min})],S=[`${g}Only`,i(g)];return[b,S,v]}).filter(([,g])=>g!=="").concat(m.map(([g,p])=>{const v=r(g),b=r(p);return[`${g}To${KC(p)}`,lr({min:v.min,max:Po(b.min)})]}));return Object.fromEntries(f)}function s(){const h=o();return Object.fromEntries(Object.entries(h))}const a=s(),l=h=>a[h];function u(){return["base",...Object.keys(n)]}function c(h){return lr({min:r(h).min})}function d(h){return lr({max:Po(r(h).min)})}return{values:Object.values(n),only:i,keys:u,conditions:a,getCondition:l,up:c,down:d}}function Po(e){const t=parseFloat(Gd(e)??"")-.04;return qd(`${t}px`)}function YC(e){return Object.entries(e).sort(([,n],[,r])=>parseInt(n,10){var a;let s=null;return i<=o.length-1&&(s=(a=o[i+1])==null?void 0:a[1]),s!=null&&(s=Po(s)),[n,{name:n,min:qd(r),max:s}]})}function QC(e){const t=[];return e.forEach((n,r)=>{let i=r;i++;let o=e[i];for(;o;)t.push([n,o]),i++,o=e[i]}),t}function lr({min:e,max:t}){return e==null&&t==null?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const JC=(e,t)=>Object.fromEntries(Object.entries(e).map(([n,r])=>t(n,r))),ZC=e=>{const{breakpoints:t,conditions:n={}}=e,r=JC(n,(c,d)=>[`_${c}`,d]),i=Object.assign({},r,t.conditions);function o(){return Object.keys(i)}function s(c){return o().includes(c)||/^@|&|&$/.test(c)||c.startsWith("_")}function a(c){return c.filter(d=>d!=="base").sort((d,h)=>{const m=s(d),f=s(h);return m&&!f?1:!m&&f?-1:0})}function l(c){return c.startsWith("@breakpoint")?t.getCondition(c.replace("@breakpoint ","")):c}function u(c){return Reflect.get(i,c)||c}return{keys:o,sort:a,has:s,resolve:u,breakpoints:t.keys(),expandAtRule:l}},Kd=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.| + `,n.body.appendChild(r)};function MS(e){if(!(!e||e.ownerDocument.activeElement!==e))try{const{selectionStart:t,selectionEnd:n,value:r}=e,i=r.substring(0,t),o=r.substring(n);return{start:t,end:n,value:r,beforeTxt:i,afterTxt:o}}catch{}}function $S(e,t){if(!(!e||e.ownerDocument.activeElement!==e)){if(!t){e.setSelectionRange(e.value.length,e.value.length);return}try{const{value:n}=e,{beforeTxt:r="",afterTxt:i="",start:o}=t;let s=n.length;if(n.endsWith(i))s=n.length-i.length;else if(n.startsWith(r))s=r.length;else if(o!=null){const a=r[o-1],l=n.indexOf(a,o-1);l!==-1&&(s=l+1)}e.setSelectionRange(s,s)}catch{}}}var BS=(e,t={})=>new Intl.NumberFormat(e,t),jS=(e,t={})=>new Pd(e,t),_a=(e,t)=>{const{prop:n,computed:r}=t;return n("formatOptions")?e===""?Number.NaN:r("parser").parse(e):parseFloat(e)},In=(e,t)=>{const{prop:n,computed:r}=t;return Number.isNaN(e)?"":n("formatOptions")?r("formatter").format(e):e.toString()},WS=(e,t)=>{let n=e!==void 0&&!Number.isNaN(e)?e:1;return(t==null?void 0:t.style)==="percent"&&(e===void 0||Number.isNaN(e))&&(n=.01),n},{choose:HS,guards:US,createMachine:GS}=Jc(),{not:zd,and:Dd}=US;GS({props({props:e}){const t=WS(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){var s;const i=n(),o=_a(r,{computed:i,prop:e});(s=e("onValueChange"))==null||s({value:r,valueAsNumber:o})}})),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})=>_a(e.get("value"),{computed:t,prop:n}),formattedValue:({computed:e,prop:t})=>In(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>l0(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>a0(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!c0(e("valueAsNumber"),t("min"),t("max")),isValueEmpty:({context:e})=>e.get("value")==="",isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),canIncrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMax"),canDecrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMin"),valueText:({prop:e,context:t})=>{var n,r;return(r=(n=e("translations")).valueText)==null?void 0:r.call(n,t.get("value"))},formatter:Qc(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>BS(e,t)),parser:Qc(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>jS(e,t))},watch({track:e,action:t,context:n,computed:r,prop:i}){e([()=>n.get("value"),()=>i("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",zd("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{guard:zd("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:HS([{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=Ao(t);return Xs(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 FS(t,n)},preventTextSelection({scope:e}){return LS(e)},trackButtonDisabled({context:e,scope:t,send:n}){const r=e.get("hint"),i=VS(t,r);return ro(i,{attributes:["disabled"],callback(){n({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:n}){const r=Ao(e);if(!r||!e.isActiveElement(r)||!n("allowMouseWheel"))return;function i(o){o.preventDefault();const s=Math.sign(o.deltaY)*-1;s===1?t({type:"VALUE.INCREMENT"}):s===-1&&t({type:"VALUE.DECREMENT"})}return Re(r,"wheel",i,{passive:!1})},activatePointerLock({scope:e}){if(!Bc())return dy(e.getDoc())},trackMousemove({scope:e,send:t,context:n,computed:r}){const i=e.getDoc();function o(a){const l=n.get("scrubberCursorPoint"),c=r("isRtl"),u=zS(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 Qi(Re(i,"mousemove",o,!1),Re(i,"mouseup",s,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const n=Ao(e);e.isActiveElement(n)||K(()=>n==null?void 0:n.focus({preventScroll:!0}))},increment({context:e,event:t,prop:n,computed:r}){let i=f0(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(i=Be(i,n("min"),n("max"))),e.set("value",In(i,{computed:r,prop:n}))},decrement({context:e,event:t,prop:n,computed:r}){let i=g0(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(i=Be(i,n("min"),n("max"))),e.set("value",In(i,{computed:r,prop:n}))},setClampedValue({context:e,prop:t,computed:n}){const r=Be(n("valueAsNumber"),t("min"),t("max"));e.set("value",In(r,{computed:n,prop:t}))},setRawValue({context:e,event:t,prop:n,computed:r}){let i=_a(t.value,{computed:r,prop:n});n("allowOverflow")||(i=Be(i,n("min"),n("max"))),e.set("value",In(i,{computed:r,prop:n}))},setValue({context:e,event:t}){var r;const n=((r=t.target)==null?void 0:r.value)??t.value;e.set("value",n)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:n}){const r=In(t("max"),{computed:n,prop:t});e.set("value",r)},decrementToMin({context:e,prop:t,computed:n}){const r=In(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}){var n;(n=t("onFocusChange"))==null||n({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){var n;(n=t("onFocusChange"))==null||n({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:n}){var i;if(n.type==="INPUT.CHANGE")return;const r=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";(i=t("onValueInvalid"))==null||i({reason:r,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:n,scope:r}){const i=t.type.endsWith("CHANGE")?e.get("value"):n("formattedValue"),o=Ao(r),s=MS(o);K(()=>{no(o,i),$S(o,s)})},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=Ld(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 Md=$("pinInput").parts("root","label","input","control");Md.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 $d=$("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger");$d.build(),M()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);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 Bd=$("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");Bd.build(),M()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var Va=$("radio-group").parts("root","label","item","itemText","itemControl","indicator");Va.build(),M()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]),M()(["value","disabled","invalid"]);var jd=$("rating-group").parts("root","label","item","control");jd.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=Va.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 Gd=e=>new ko(e);Gd.empty=()=>new ko({items:[]});var qS=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`select:${e.id}:content`},KS=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`select:${e.id}:trigger`},XS=e=>{var t;return((t=e.ids)==null?void 0:t.clearTrigger)??`select:${e.id}:clear-trigger`},YS=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.item)==null?void 0:r.call(n,t))??`select:${e.id}:option:${t}`},QS=e=>{var t;return((t=e.ids)==null?void 0:t.hiddenSelect)??`select:${e.id}:select`},JS=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`select:${e.id}:positioner`},Fa=e=>e.getById(QS(e)),ai=e=>e.getById(qS(e)),Vo=e=>e.getById(KS(e)),ZS=e=>e.getById(XS(e)),qd=e=>e.getById(JS(e)),La=(e,t)=>t==null?null:e.getById(YS(e,t)),{and:li,not:Rn,or:ew}=Kt();ew("isTriggerArrowDownEvent","isTriggerEnterEvent"),li(Rn("multiple"),"hasSelectedItems"),Rn("multiple"),li(Rn("multiple"),"hasSelectedItems"),Rn("multiple"),Rn("multiple"),Rn("multiple"),Rn("multiple"),li("closeOnSelect","isOpenControlled"),li("hasHighlightedItem","loop","isLastItemHighlighted"),li("hasHighlightedItem","loop","isFirstItemHighlighted");function Kd(e){var n;const t=e.restoreFocus??((n=e.previousEvent)==null?void 0:n.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 Xd=$("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");Xd.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"]);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 Qd=$("tooltip").parts("trigger","arrow","arrowTip","positioner","content");Qd.build();var tw=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`tooltip:${e.id}:trigger`},nw=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`tooltip:${e.id}:popper`},za=e=>e.getById(tw(e)),Jd=e=>e.getById(nw(e)),Pn=p0({id:null}),{and:rw,not:Zd}=Kt();rw("noVisibleTooltip",Zd("hasPointerMoveOpened")),Zd("hasPointerMoveOpened"),M()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);function eh(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}const iw=(e,t)=>{var l;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 i=t(`colors.${n}`),o=(l=t.raw(`opacity.${r}`))==null?void 0:l.value;if(!o&&isNaN(Number(r)))return{invalid:!0,value:n};const s=o?Number(o)*100+"%":`${r}%`,a=i??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 i="--mix-"+e;return{[i]:r.value,[e]:`var(${i}, ${r.color})`}};function Da(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>Da(n));const t=Object.create(Object.getPrototypeOf(e));for(const n of Object.keys(e))t[n]=Da(e[n]);return t}function Ma(e,t){if(t==null)return e;for(const n of Object.keys(t))if(!(t[n]===void 0||n==="__proto__"))if(!$e(e[n])&&$e(t[n]))Object.assign(e,{[n]:t[n]});else if(e[n]&&$e(t[n]))Ma(e[n],t[n]);else if(Array.isArray(t[n])&&Array.isArray(e[n])){let r=0;for(;re!=null;function Rt(e,t,n={}){const{stop:r,getKey:i}=n;function o(s,a=[]){if($e(s)||Array.isArray(s)){const l={};for(const[c,u]of Object.entries(s)){const d=(i==null?void 0:i(c,u))??c,h=[...a,d];if(r!=null&&r(s,h))return t(s,a);const m=o(u,h);$a(m)&&(l[d]=m)}return l}return t(s,a)}return o(e)}function th(e,t){return Array.isArray(e)?e.map(n=>$a(n)?t(n):n):$e(e)?Rt(e,n=>t(n)):$a(e)?t(e):e}const Fo=["value","type","description"],ow=e=>e&&typeof e=="object"&&!Array.isArray(e),nh=(...e)=>{var n;const t=fr({},...e.map(Da));return(n=t.theme)!=null&&n.tokens&&Rt(t.theme.tokens,r=>{const s=Object.keys(r).filter(l=>!Fo.includes(l)).length>0,a=Fo.some(l=>r[l]!=null);return s&&a&&(r.DEFAULT||(r.DEFAULT={}),Fo.forEach(l=>{var c;r[l]!=null&&((c=r.DEFAULT)[l]||(c[l]=r[l]),delete r[l])})),r},{stop(r){return ow(r)&&Object.keys(r).some(i=>Fo.includes(i)||i!==i.toLowerCase()&&i!==i.toUpperCase())}}),t},sw=e=>e,ve=e=>e,B=e=>e,aw=e=>e,lw=e=>e,gr=e=>e,cw=e=>e,uw=e=>e,dw=e=>e;function rh(){const e=t=>t;return new Proxy(e,{get(){return e}})}const pe=rh(),Ba=rh(),ja=e=>e,hw=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function fw(e){return`${e}`.replace(hw,t=>`\\${t}`)}const gw=/[A-Z]/g;function pw(e){return e.replace(gw,t=>`-${t.toLowerCase()}`)}function ih(e,t={}){const{fallback:n="",prefix:r=""}=t,i=pw(["-",r,fw(e)].filter(Boolean).join("-"));return{var:i,ref:`var(${i}${n?`, ${n}`:""})`}}const mw=e=>/^var\(--.+\)$/.test(e),we=(e,t)=>t!=null?`${e}(${t})`:t,Tn=e=>{if(mw(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},oh=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]??{}}}),vw=ne("borderColor"),zt=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),bw=sw({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"}),pr=ih("bg-currentcolor"),sh=e=>e===pr.ref||e==="currentBg",re=e=>({...e("colors"),currentBg:pr}),yw=ja({conditions:bw,utilities:{background:{values:re,shorthand:["bg"],transform(e,t){if(sh(t.raw))return{background:pr.ref};const n=ne("background")(e,t);return{...n,[pr.var]:n==null?void 0:n.background}}},backgroundColor:{values:re,shorthand:["bgColor"],transform(e,t){if(sh(t.raw))return{backgroundColor:pr.ref};const n=ne("backgroundColor")(e,t);return{...n,[pr.var]:n==null?void 0: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])":vw(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":we("blur",e)})},brightness:{transform:e=>({"--brightness":we("brightness",e)})},contrast:{transform:e=>({"--contrast":we("contrast",e)})},grayscale:{transform:e=>({"--grayscale":we("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":we("hue-rotate",Tn(e))})},invert:{transform:e=>({"--invert":we("invert",e)})},saturate:{transform:e=>({"--saturate":we("saturate",e)})},sepia:{transform:e=>({"--sepia":we("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":we("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":we("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":we("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":we("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":we("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":we("hue-rotate",Tn(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":we("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":we("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":we("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":we("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:oh("&:is(:focus, [data-focus])"),focusVisibleRing:oh("&: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":Tn(e)})},skewY:{transform:e=>({"--skew-y":Tn(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:Tn(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}}},rotateX:{transform(e){return{"--rotate-x":Tn(e)}}},rotateY:{transform(e){return{"--rotate-y":Tn(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 zt("all");case"position":return zt("left, right, top, bottom, inset-inline, inset-block");case"colors":return zt("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return zt("opacity");case"shadow":return zt("box-shadow");case"transform":return zt("transform");case"size":return zt("width, height");case"backgrounds":return zt("background, background-color, background-image, background-position");case"common":return zt("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 xw[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"}}}),xw={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 Cw="",Sw=Cw.split(","),ww="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",kw=ww.split(",").concat(Sw),Ew=new Map(kw.map(e=>[e,!0]));function Ow(e){const t=Object.create(null);return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var Iw=/&|@/,Rw=Ow(e=>Ew.has(e)||e.startsWith("--")||Iw.test(e));function ah(e,t){const n={};return Rt(e,(r,i)=>{r&&(n[i.join(".")]=r.value)},{stop:t}),n}var Pw=ci;ci.default=ci,ci.stable=uh,ci.stableStringify=uh;var Lo="[...]",lh="[Circular]",Nn=[],_n=[];function ch(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function ci(e,t,n,r){typeof r>"u"&&(r=ch()),Wa(e,"",0,[],void 0,0,r);var i;try{_n.length===0?i=JSON.stringify(e,t,n):i=JSON.stringify(e,dh(t),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Nn.length!==0;){var o=Nn.pop();o.length===4?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}}return i}function mr(e,t,n,r){var i=Object.getOwnPropertyDescriptor(r,n);i.get!==void 0?i.configurable?(Object.defineProperty(r,n,{value:e}),Nn.push([r,n,t,i])):_n.push([t,n,e]):(r[n]=e,Nn.push([r,n,t]))}function Wa(e,t,n,r,i,o,s){o+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;as.depthLimit){mr(Lo,e,t,i);return}if(typeof s.edgesLimit<"u"&&n+1>s.edgesLimit){mr(Lo,e,t,i);return}if(r.push(e),Array.isArray(e))for(a=0;at?1:0}function uh(e,t,n,r){typeof r>"u"&&(r=ch());var i=Ha(e,"",0,[],void 0,0,r)||e,o;try{_n.length===0?o=JSON.stringify(i,t,n):o=JSON.stringify(i,dh(t),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Nn.length!==0;){var s=Nn.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return o}function Ha(e,t,n,r,i,o,s){o+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;as.depthLimit){mr(Lo,e,t,i);return}if(typeof s.edgesLimit<"u"&&n+1>s.edgesLimit){mr(Lo,e,t,i);return}if(r.push(e),Array.isArray(e))for(a=0;a0)for(var r=0;r<_n.length;r++){var i=_n[r];if(i[1]===t&&i[0]===n){n=i[2],_n.splice(r,1);break}}return e.call(this,t,n)}}const Nw=Xn(Pw),gt=e=>{const t=Object.create(null);function n(...r){const i=r.map(o=>Nw(o)).join("|");return t[i]===void 0&&(t[i]=e(...r)),t[i]}return n},hh=16,zo="px",Ua="em",ui="rem";function fh(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),n=new RegExp(`${zo}|${Ua}|${ui}`),r=e.match(new RegExp(`${t.source}(${n.source})`));return r==null?void 0:r[1]}function gh(e=""){if(typeof e=="number")return`${e}px`;const t=fh(e);if(!t||t===zo)return e;if(t===Ua||t===ui)return`${parseFloat(e)*hh}${zo}`}function ph(e=""){const t=fh(e);if(!t||t===ui)return e;if(t===Ua)return`${parseFloat(e)}${ui}`;if(t===zo)return`${parseFloat(e)/hh}${ui}`}const _w=e=>e.charAt(0).toUpperCase()+e.slice(1);function Aw(e){const t=Vw(e),n=Object.fromEntries(t);function r(h){return n[h]}function i(h){return vr(r(h))}function o(){const h=Object.keys(n),m=Fw(h),f=h.flatMap(g=>{const p=r(g),b=[`${g}Down`,vr({max:Do(p.min)})],y=[g,vr({min:p.min})],C=[`${g}Only`,i(g)];return[y,C,b]}).filter(([,g])=>g!=="").concat(m.map(([g,p])=>{const b=r(g),y=r(p);return[`${g}To${_w(p)}`,vr({min:b.min,max:Do(y.min)})]}));return Object.fromEntries(f)}function s(){const h=o();return Object.fromEntries(Object.entries(h))}const a=s(),l=h=>a[h];function c(){return["base",...Object.keys(n)]}function u(h){return vr({min:r(h).min})}function d(h){return vr({max:Do(r(h).min)})}return{values:Object.values(n),only:i,keys:c,conditions:a,getCondition:l,up:u,down:d}}function Do(e){const t=parseFloat(gh(e)??"")-.04;return ph(`${t}px`)}function Vw(e){return Object.entries(e).sort(([,n],[,r])=>parseInt(n,10){var a;let s=null;return i<=o.length-1&&(s=(a=o[i+1])==null?void 0:a[1]),s!=null&&(s=Do(s)),[n,{name:n,min:ph(r),max:s}]})}function Fw(e){const t=[];return e.forEach((n,r)=>{let i=r;i++;let o=e[i];for(;o;)t.push([n,o]),i++,o=e[i]}),t}function vr({min:e,max:t}){return e==null&&t==null?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const Lw=(e,t)=>Object.fromEntries(Object.entries(e).map(([n,r])=>t(n,r))),zw=e=>{const{breakpoints:t,conditions:n={}}=e,r=Lw(n,(u,d)=>[`_${u}`,d]),i=Object.assign({},r,t.conditions);function o(){return Object.keys(i)}function s(u){return o().includes(u)||/^@|&|&$/.test(u)||u.startsWith("_")}function a(u){return u.filter(d=>d!=="base").sort((d,h)=>{const m=s(d),f=s(h);return m&&!f?1:!m&&f?-1:0})}function l(u){return u.startsWith("@breakpoint")?t.getCondition(u.replace("@breakpoint ","")):u}function c(u){return Reflect.get(i,u)||u}return{keys:o,sort:a,has:s,resolve:c,breakpoints:t.keys(),expandAtRule:l}},mh=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.| )+\\(\\s*max(-device)?-${e}`,"i"),min:new RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:new RegExp(`(!?\\(\\s*max(-device)?-${e})(.| -)+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),ew=Kd("width"),tw=Kd("height"),Xd=e=>({isMin:th(e.minMax,e.maxMin,e.min),isMax:th(e.maxMin,e.minMax,e.max)}),{isMin:Na,isMax:Yd}=Xd(ew),{isMin:_a,isMax:Qd}=Xd(tw),Jd=/print/i,Zd=/^print$/i,nw=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,rw=/(\d)/,ti=Number.MAX_VALUE,iw={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function eh(e){const t=nw.exec(e)||(Na(e)||_a(e)?rw.exec(e):null);if(!t)return ti;if(t[0]==="0")return 0;const n=parseFloat(t[1]),r=t[2];return n*(iw[r]||1)}function th(e,t,n){return r=>e.test(r)||!t.test(r)&&n.test(r)}function ow(e,t){const n=Jd.test(e),r=Zd.test(e),i=Jd.test(t),o=Zd.test(t);return n&&i?!r&&o?1:r&&!o?-1:e.localeCompare(t):n?1:i?-1:null}const sw=ft((e,t)=>{const n=ow(e,t);if(n!==null)return n;const r=Na(e)||_a(e),i=Yd(e)||Qd(e),o=Na(t)||_a(t),s=Yd(t)||Qd(t);if(r&&s)return-1;if(i&&o)return 1;const a=eh(e),l=eh(t);return a===ti&&l===ti?e.localeCompare(t):a===ti?1:l===ti?-1:a!==l?a>l?i?-1:1:i?1:-1:e.localeCompare(t)});function nh(e){return e.sort(([t],[n])=>sw(t,n))}function rh(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]):Me(a)?r[s]=rh(a):r[s]=a;const i=nh(t),o=nh(n);return{...r,...Object.fromEntries(i),...Object.fromEntries(o)}}const ih=/\s*!(important)?/i,aw=e=>xt(e)?ih.test(e):!1,lw=e=>xt(e)?e.replace(ih,"").trim():e;function oh(e){const{transform:t,conditions:n,normalize:r}=e,i=dw(e);return ft(function(...s){const a=i(...s),l=r(a),u=Object.create(null);return Ot(l,(c,d)=>{const h=aw(c);if(c==null)return;const[m,...f]=n.sort(d).map(n.resolve);h&&(c=lw(c));let g=t(m,c)??Object.create(null);g=Ot(g,p=>xt(p)&&h?`${p} !important`:p,{getKey:p=>n.expandAtRule(p)}),cw(u,f.flat(),g)}),rh(u)})}function cw(e,t,n){let r=e;for(const i of t)i&&(r[i]||(r[i]=Object.create(null)),r=r[i]);ir(r,n)}function uw(...e){return e.filter(t=>Me(t)&&Object.keys(Lr(t)).length>0)}function dw(e){function t(n){const r=uw(...n);return r.length===1?r:r.map(i=>e.normalize(i))}return ft(function(...r){return ir({},...t(r))})}const sh=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function hw(e){const{css:t,conditions:n,normalize:r,layers:i}=e;function o(a={}){const{base:l,variants:u,defaultVariants:c,compoundVariants:d}=sh(a),h=oh({conditions:n,normalize:r,transform(b,S){var y;return(y=u[b])==null?void 0:y[S]}}),m=(b={})=>{const S=r({...c,...Lr(b)});let y={...l};ir(y,h(S));const E=s(d,S);return i.wrap("recipes",t(y,E))},f=Object.keys(u),g=b=>{const S=_d(b,["recipe"]),[y,E]=Un(S,f);return f.includes("colorPalette")||(y.colorPalette=b.colorPalette||c.colorPalette),f.includes("orientation")&&(E.orientation=b.orientation),[y,E]},p=Object.fromEntries(Object.entries(u).map(([b,S])=>[b,Object.keys(S)]));return Object.assign(b=>t(m(b)),{className:a.className,__cva__:!0,variantMap:p,variantKeys:f,raw:m,config:a,splitVariantProps:g,merge(b){return o(fw(e)(this,b))}})}function s(a,l){let u={};return a.forEach(c=>{Object.entries(c).every(([h,m])=>h==="css"?!0:(Array.isArray(m)?m:[m]).some(g=>l[h]===g))&&(u=t(u,c.css))}),u}return o}function fw(e){const{css:t}=e;return function(r,i){const o=sh(i.config),s=Zl(r.variantKeys,Object.keys(i.variants)),a=t(r.base,o.base),l=Object.fromEntries(s.map(h=>[h,t(r.config.variants[h],o.variants[h])])),u=ir(r.config.defaultVariants,o.defaultVariants),c=[...r.compoundVariants,...o.compoundVariants];return{className:et(r.className,i.className),base:a,variants:l,defaultVariants:u,compoundVariants:c}}}const gw={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},ah={reset:0,base:1,tokens:2,recipes:3};function pw(e){const t=e.layers??gw,r=Object.values(t).sort((i,o)=>ah[i]-ah[o]);return{names:r,atRule:`@layer ${r.join(", ")};`,wrap(i,o){return e.disableLayers?o:{[`@layer ${t[i]}`]:o}}}}function mw(e){const{utility:t,normalize:n}=e,{hasShorthand:r,resolveShorthand:i}=t;return function(o){return Ot(o,n,{stop:s=>Array.isArray(s),getKey:r?i:void 0})}}function vw(e){const{preflight:t}=e;if(!t)return{};const{scope:n="",level:r="parent"}=Me(t)?t:{};let i="";n&&r==="parent"?i=`${n} `:n&&r==="element"&&(i=`&${n}`);const o={"*":{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(o).reduce((l,[u,c])=>(l[u]={[i]:c},l),{});Object.assign(s,a)}else i?s[i]=o:Object.assign(s,o);return s}function bw(e){const{conditions:t,isValidProperty:n}=e;return function(i){return Ot(i,o=>o,{getKey:(o,s)=>Me(s)&&!t.has(o)&&!n(o)?yw(o).map(a=>"&"+a).join(", "):o})}}function yw(e){const t=[];let n=0,r="",i=!1;for(let o=0;o{const t=i=>{var o;return{base:((o=e.base)==null?void 0:o[i])??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?Sw(e.compoundVariants,i):[]}},r=(e.slots??[]).map(i=>[i,t(i)]);for(const[i,o]of Object.entries(e.variants??{}))for(const[s,a]of Object.entries(o))r.forEach(([l,u])=>{var c;(c=u.variants)[i]??(c[i]={}),u.variants[i][s]=a[l]??{}});return Object.fromEntries(r)},Sw=(e,t)=>e.filter(n=>n.css[t]).map(n=>({...n,css:n.css[t]}));function Cw(e){const{cva:t}=e;return function(r={}){const i=Object.entries(xw(r)).map(([d,h])=>[d,t(h)]);function o(d){const h=i.map(([m,f])=>[m,f(d)]);return Object.fromEntries(h)}const s=r.variants??{},a=Object.keys(s);function l(d){var g;const h=_d(d,["recipe"]),[m,f]=Un(h,a);return a.includes("colorPalette")||(m.colorPalette=d.colorPalette||((g=r.defaultVariants)==null?void 0:g.colorPalette)),a.includes("orientation")&&(f.orientation=d.orientation),[m,f]}const u=Object.fromEntries(Object.entries(s).map(([d,h])=>[d,Object.keys(h)]));let c={};return r.className&&(c=Object.fromEntries(r.slots.map(d=>[d,`${r.className}__${d}`]))),Object.assign(o,{variantMap:u,variantKeys:a,splitVariantProps:l,classNameMap:c})}}const ww=()=>e=>Array.from(new Set(e)),kw=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,Ew=function(e,t){return t?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},lh=e=>(e+"").replace(kw,Ew),ch=(e,t)=>{let n="",r=0,i="char",o="",s="";const a=[];for(;r{let t=0;const n=["("];for(;t{n instanceof Map?t[r]=Object.fromEntries(n):t[r]=n}),t}const dh=/({([^}]*)})/g,Iw=/[{}]/g,Rw=/\w+\.\w+/,hh=e=>{if(!xt(e))return[];const t=e.match(dh);return t?t.map(n=>n.replace(Iw,"")).map(n=>n.trim()):[]},Pw=e=>dh.test(e);function fh(e){var n,r,i;if(!((n=e.extensions)!=null&&n.references))return((i=(r=e.extensions)==null?void 0:r.cssVar)==null?void 0:i.ref)??e.value;const t=e.extensions.references??{};return e.value=Object.keys(t).reduce((o,s)=>{const a=t[s];if(a.extensions.conditions)return o;const l=fh(a);return o.replace(`{${s}}`,l)},e.value),delete e.extensions.references,e.value}function gh(e){return Me(e)&&e.reference?e.reference:String(e)}const To=(e,...t)=>t.map(gh).join(` ${e} `).replace(/calc/g,""),ph=(...e)=>`calc(${To("+",...e)})`,mh=(...e)=>`calc(${To("-",...e)})`,Aa=(...e)=>`calc(${To("*",...e)})`,vh=(...e)=>`calc(${To("/",...e)})`,bh=e=>{const t=gh(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Aa(t,-1)},cr=Object.assign(e=>({add:(...t)=>cr(ph(e,...t)),subtract:(...t)=>cr(mh(e,...t)),multiply:(...t)=>cr(Aa(e,...t)),divide:(...t)=>cr(vh(e,...t)),negate:()=>cr(bh(e)),toString:()=>e.toString()}),{add:ph,subtract:mh,multiply:Aa,divide:vh,negate:bh}),Tw={enforce:"pre",transform(e){const{prefix:t,allTokens:n,formatCssVar:r,formatTokenName:i,registerToken:o}=e;n.filter(({extensions:a})=>a.category==="spacing").forEach(a=>{const l=a.path.slice(),u=r(l,t);if(xt(a.value)&&a.value==="0rem")return;const c=structuredClone(a);Object.assign(c.extensions,{negative:!0,prop:`-${a.extensions.prop}`,originalPath:l}),c.value=cr.negate(u.ref);const d=c.path[c.path.length-1];d!=null&&(c.path[c.path.length-1]=`-${d}`),c.path&&(c.name=i(c.path)),o(c)})}},Nw=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),_w=[Tw,{enforce:"post",transform(e){const{allTokens:t,registerToken:n,formatTokenName:r}=e,i=t.filter(({extensions:a})=>a.category==="colors"),o=new Map,s=new Map;i.forEach(a=>{const{colorPalette:l}=a.extensions;l&&(l.keys.forEach(u=>{o.set(r(u),u)}),l.roots.forEach(u=>{var h;const c=r(u),d=s.get(c)||[];if(d.push(a),s.set(c,d),a.extensions.default&&u.length===1){const m=(h=l.keys[0])==null?void 0:h.filter(Boolean);if(!m.length)return;const f=u.concat(m);o.set(r(f),[])}}))}),o.forEach(a=>{const l=["colors","colorPalette",...a].filter(Boolean),u=r(l),c=r(l.slice(1));n({name:u,value:u,originalValue:u,path:l,extensions:{condition:"base",originalPath:l,category:"colors",prop:c,virtual:!0}},"pre")})}},{enforce:"post",transform(e){e.allTokens.filter(n=>Nw.has(n.extensions.category)&&!n.extensions.negative).forEach(n=>{Object.assign(n.extensions,{pixelValue:Gd(n.value)})})}},{enforce:"post",transform(e){e.allTokens=e.allTokens.filter(t=>t.value!=="")}}],Aw=[{type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:n,formatCssVar:r}=t,{negative:i,originalPath:o}=e.extensions,s=i?o: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,i=hh(e.value);return i.length&&i.forEach(o=>{const s=r(o.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,u,c)=>{const d=c.slice(0,u+1);return a.push(d),a},[]),i=n[0],o=t.formatTokenName(n),s=e.path.slice(e.path.indexOf(i)+1).reduce((a,l,u,c)=>(a.push(c.slice(u)),a),[]);return s.length===0&&s.push([""]),{colorPalette:{value:o,roots:r,keys:s}}}}],yh=e=>Me(e)&&Object.prototype.hasOwnProperty.call(e,"value");function Vw(e){return e?{breakpoints:Ad(e,t=>({value:t})),sizes:Object.fromEntries(Object.entries(e).map(([t,n])=>[`breakpoint-${t}`,{value:n}]))}:{breakpoints:{},sizes:{}}}function Lw(e){const{prefix:t="",tokens:n={},semanticTokens:r={},breakpoints:i={}}=e,o=V=>V.join("."),s=(V,_)=>Fd(V.join("-"),{prefix:_}),a=[],l=new Map,u=new Map,c=new Map,d=new Map,h=new Map,m=new Map,f=new Map,g=new Map,p=[];function v(V,_){a.push(V),l.set(V.name,V),_&&g.forEach(q=>{q.enforce===_&&ae(q,V)})}const b=Vw(i),S=Lr({...n,breakpoints:b.breakpoints,sizes:{...n.sizes,...b.sizes}});function y(){Ot(S,(V,_)=>{const q=_.includes("DEFAULT");_=xh(_);const se=_[0],be=o(_),_e=xt(V)?{value:V}:V,Mt={value:_e.value,originalValue:_e.value,name:be,path:_,extensions:{condition:"base",originalPath:_,category:se,prop:o(_.slice(1))}};q&&(Mt.extensions.default=!0),v(Mt)},{stop:yh}),Ot(r,(V,_)=>{const q=_.includes("DEFAULT");_=Sh(xh(_));const se=_[0],be=o(_),_e=xt(V.value)?{value:{base:V.value}}:V,Mt={value:_e.value.base||"",originalValue:_e.value.base||"",name:be,path:_,extensions:{originalPath:_,category:se,conditions:_e.value,condition:"base",prop:o(_.slice(1))}};q&&(Mt.extensions.default=!0),v(Mt)},{stop:yh})}function E(V){return l.get(V)}function P(V){const{condition:_}=V.extensions;_&&(u.has(_)||u.set(_,new Set),u.get(_).add(V))}function N(V){const{category:_,prop:q}=V.extensions;_&&(f.has(_)||f.set(_,new Map),f.get(_).set(q,V))}function O(V){const{condition:_,negative:q,virtual:se,cssVar:be}=V.extensions;q||se||!_||!be||(c.has(_)||c.set(_,new Map),c.get(_).set(be.var,V.value))}function I(V){const{category:_,prop:q,cssVar:se,negative:be}=V.extensions;if(!_)return;m.has(_)||m.set(_,new Map);const _e=be?V.extensions.conditions?V.originalValue:V.value:se.ref;m.get(_).set(q,_e),h.set([_,q].join("."),_e)}function R(V){const{colorPalette:_,virtual:q,default:se}=V.extensions;!_||q||_.roots.forEach(be=>{var Tm;const _e=o(be);d.has(_e)||d.set(_e,new Map);const Mt=zw([...V.path],[...be]),ns=o(Mt),Rr=E(ns);if(!Rr||!Rr.extensions.cssVar)return;const{var:lT}=Rr.extensions.cssVar;if(d.get(_e).set(lT,V.extensions.cssVar.ref),se&&be.length===1){const cT=o(["colors","colorPalette"]),Nm=E(cT);if(!Nm)return;const uT=o(V.path),_m=E(uT);if(!_m)return;const Am=(Tm=_.keys[0])==null?void 0:Tm.filter(Boolean);if(!Am.length)return;const vl=o(be.concat(Am));d.has(vl)||d.set(vl,new Map),d.get(vl).set(Nm.extensions.cssVar.var,_m.extensions.cssVar.ref)}})}let z={};function F(){a.forEach(V=>{P(V),N(V),O(V),I(V),R(V)}),z=uh(m)}const X=(V,_)=>{var Rr;if(!V||typeof V!="string")return{invalid:!0,value:V};const[q,se]=V.split("/");if(!q||!se)return{invalid:!0,value:q};const be=_(q),_e=(Rr=E(`opacity.${se}`))==null?void 0:Rr.value;if(!_e&&isNaN(Number(se)))return{invalid:!0,value:q};const Mt=_e?Number(_e)*100+"%":`${se}%`,ns=be??q;return{invalid:!1,color:ns,value:`color-mix(in srgb, ${ns} ${Mt}, transparent)`}},Z=ft((V,_)=>h.get(V)??_),Ne=ft(V=>z[V]||null),U=ft(V=>ch(V,_=>{if(!_)return;if(_.includes("/")){const se=X(_,be=>Z(be));if(se.invalid)throw new Error("Invalid color mix at "+_+": "+se.value);return se.value}const q=Z(_);return q||(Rw.test(_)?lh(_):_)})),ie={prefix:t,allTokens:a,tokenMap:l,registerToken:v,getByName:E,formatTokenName:o,formatCssVar:s,flatMap:h,cssVarMap:c,categoryMap:f,colorPaletteMap:d,getVar:Z,getCategoryValues:Ne,expandReferenceInValue:U};function he(...V){V.forEach(_=>{g.set(_.name,_)})}function $(...V){p.push(...V)}function ae(V,_){if(_.extensions.references||ws(V.match)&&!V.match(_))return;const se=(be=>V.transform(be,ie))(_);switch(!0){case V.type==="extensions":Object.assign(_.extensions,se);break;case V.type==="value":_.value=se;break;default:_[V.type]=se;break}}function le(V){p.forEach(_=>{_.enforce===V&&_.transform(ie)})}function lt(V){g.forEach(_=>{_.enforce===V&&a.forEach(q=>{ae(_,q)})})}function un(){a.forEach(V=>{const _=Fw(V);!_||_.length===0||_.forEach(q=>{v(q)})})}function yi(V){return hh(V).map(q=>E(q)).filter(Boolean)}function Ir(){a.forEach(V=>{if(!Pw(V.value))return;const _=yi(V.value);V.extensions.references=_.reduce((q,se)=>(q[se.name]=se,q),{})})}function ml(){a.forEach(V=>{fh(V)})}function aT(){le("pre"),lt("pre"),un(),Ir(),ml(),le("post"),lt("post"),F()}return y(),he(...Aw),$(..._w),aT(),ie}function xh(e){return e[0]==="DEFAULT"?e:e.filter(t=>t!=="DEFAULT")}function Sh(e){return e.filter(t=>t!=="base")}function Fw(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,n=[];return Ot(t,(r,i)=>{const o=Sh(i);if(!o.length)return;const s=structuredClone(e);s.value=r,s.extensions.condition=o.join(":"),n.push(s)}),n}function zw(e,t){const n=e.findIndex((r,i)=>t.every((o,s)=>e[i+s]===o));return n===-1||(e.splice(n,t.length),e.splice(n,0,"colorPalette")),e}ww()(["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"]);function wT(e){return e}function Dw(e){return Object.fromEntries(Object.entries(e).map(([t,n])=>[t,n]))}function Mw(e){const t=Dw(e.config),n=e.tokens,r=new Map,i=new Map;function o(O,I){t[O]=I,s(O,I)}const s=(O,I)=>{const R=g(I);R&&(i.set(O,R),d(O,I))},a=()=>{for(const[O,I]of Object.entries(t))I&&s(O,I)},l=()=>{for(const[O,I]of Object.entries(t)){const{shorthand:R}=I??{};if(!R)continue;(Array.isArray(R)?R:[R]).forEach(F=>r.set(F,O))}},u=()=>{const O=uh(n.colorPaletteMap);o("colorPalette",{values:Object.keys(O),transform:ft(I=>O[I])})},c=new Map,d=(O,I)=>{if(!I)return;const R=g(I,F=>`type:Tokens["${F}"]`);if(typeof R=="object"&&R.type){c.set(O,new Set([`type:${R.type}`]));return}if(R){const F=new Set(Object.keys(R));c.set(O,F)}const z=c.get(O)??new Set;I.property&&c.set(O,z.add(`CssProperties["${I.property}"]`))},h=()=>{for(const[O,I]of Object.entries(t))I&&d(O,I)},m=(O,I)=>{const R=c.get(O)??new Set;c.set(O,new Set([...R,...I]))},f=()=>{const O=new Map;for(const[I,R]of c.entries()){if(R.size===0){O.set(I,["string"]);continue}const z=Array.from(R).map(F=>F.startsWith("CssProperties")?F:F.startsWith("type:")?F.replace("type:",""):JSON.stringify(F));O.set(I,z)}return O},g=(O,I)=>{const{values:R}=O,z=F=>{const X=I==null?void 0:I(F);return X?{[X]:X}:void 0};return xt(R)?(z==null?void 0:z(R))??n.getCategoryValues(R)??{}:Array.isArray(R)?R.reduce((F,X)=>(F[X]=X,F),{}):ws(R)?R(I?z:n.getCategoryValues):R},p=ft((O,I)=>({[O]:O.startsWith("--")?n.getVar(I,I):I})),v=Object.assign(n.getVar,{raw:O=>n.getByName(O)}),b=ft((O,I)=>{var Z;const R=E(O);xt(I)&&!I.includes("_EMO_")&&(I=n.expandReferenceInValue(I));const z=t[R];if(!z)return p(R,I);const F=(Z=i.get(R))==null?void 0:Z[I];if(!z.transform)return p(O,F??I);const X=Ne=>xC(Ne,v);return z.transform(F??I,{raw:I,token:v,utils:{colorMix:X}})});function S(){l(),u(),a(),h()}S();const y=r.size>0,E=ft(O=>r.get(O)??O);return{keys:()=>[...Array.from(r.keys()),...Object.keys(t)],hasShorthand:y,transform:b,shorthands:r,resolveShorthand:E,register:o,getTypes:f,addPropertyType:m}}const je={};function Ch(...e){const t=Vd(...e),{theme:n={},utilities:r={},globalCss:i={},cssVarsRoot:o=":where(:root, :host)",cssVarsPrefix:s="chakra",preflight:a}=t,l=pw(t),u=Lw({breakpoints:n.breakpoints,tokens:n.tokens,semanticTokens:n.semanticTokens,prefix:s}),c=XC(n.breakpoints??je),d=ZC({conditions:t.conditions??je,breakpoints:c}),h=Mw({config:r,tokens:u});function m(){const{textStyles:$,layerStyles:ae,animationStyles:le}=n,lt=Lr({textStyle:$,layerStyle:ae,animationStyle:le});for(const[un,yi]of Object.entries(lt)){const Ir=Md(yi??je,wh);h.register(un,{values:Object.keys(Ir),transform(ml){return S(Ir[ml])}})}}m(),h.addPropertyType("animationName",Object.keys(n.keyframes??je));const f=new Set(["css",...h.keys(),...d.keys()]),g=ft($=>f.has($)||HC($)),p=$=>Array.isArray($)?$.reduce((ae,le,lt)=>{const un=d.breakpoints[lt];return le!=null&&(ae[un]=le),ae},{}):$,v=mw({utility:h,normalize:p}),b=bw({conditions:d,isValidProperty:g}),S=oh({transform:h.transform,conditions:d,normalize:v}),y=hw({css:S,conditions:d,normalize:v,layers:l}),E=Cw({cva:y});function P(){const $={};for(const[ae,le]of u.cssVarMap.entries()){const lt=Object.fromEntries(le);if(Object.keys(lt).length===0)continue;const un=ae==="base"?o:d.resolve(ae),yi=un.startsWith("@"),Ir=S(b({[un]:yi?{[o]:lt}:lt}));ir($,Ir)}return l.wrap("tokens",$)}function N(){const $=Object.fromEntries(Object.entries(n.keyframes??je).map(([le,lt])=>[`@keyframes ${le}`,lt])),ae=Object.assign({},$,S(b(i)));return l.wrap("base",ae)}function O($){return Un($,g)}function I(){const $=vw({preflight:a});return l.wrap("reset",$)}const R=Bw(u),z=($,ae)=>{var le;return((le=R.get($))==null?void 0:le.value)||ae};z.var=($,ae)=>{var le;return((le=R.get($))==null?void 0:le.variable)||ae};function F($,ae){var le;return((le=n.recipes)==null?void 0:le[$])??ae}function X($,ae){var le;return((le=n.slotRecipes)==null?void 0:le[$])??ae}function Z($){return Object.hasOwnProperty.call(n.recipes??je,$)}function Ne($){return Object.hasOwnProperty.call(n.slotRecipes??je,$)}function U($){return Z($)||Ne($)}const ie=[I(),N(),P()],he={layerStyles:Va(n.layerStyles??je),textStyles:Va(n.textStyles??je),animationStyles:Va(n.animationStyles??je),tokens:kh(u,Object.keys(n.tokens??je),($,ae)=>!$.extensions.conditions&&!ae.includes("colorPalette")),semanticTokens:kh(u,Object.keys(n.semanticTokens??je),$=>!!$.extensions.conditions),keyframes:Eh(n.keyframes??je),breakpoints:Eh(n.breakpoints??je)};return{$$chakra:!0,_config:t,_global:ie,breakpoints:c,tokens:u,conditions:d,utility:h,token:z,properties:f,layers:l,isValidProperty:g,splitCssProps:O,normalizeValue:p,getTokenCss:P,getGlobalCss:N,getPreflightCss:I,css:S,cva:y,sva:E,getRecipe:F,getSlotRecipe:X,hasRecipe:U,isRecipe:Z,isSlotRecipe:Ne,query:he}}function Bw(e){const t=new Map;return e.allTokens.forEach(n=>{const{cssVar:r,virtual:i,conditions:o}=n.extensions,s=o||i?r.ref:n.value;t.set(n.name,{value:s,variable:r.ref})}),t}const wh=e=>Me(e)&&"value"in e,Va=e=>({list(){return Object.keys(Md(e,wh))},search(t){return this.list().filter(n=>n.includes(t))}}),kh=(e,t,n)=>({categoryKeys:t,list(r){var i;return Array.from(((i=e.categoryMap.get(r))==null?void 0:i.entries())??[]).reduce((o,[s,a])=>(n(a,s)&&o.push(s),o),[])},search(r,i){return this.list(r).filter(o=>o.includes(i))}}),Eh=e=>({list(){return Object.keys(e)},search(t){return this.list().filter(n=>n.includes(t))}}),$w={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},La="var(--chakra-empty,/*!*/ /*!*/)",jw=kC({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":La,"--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}`,La])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,La])),"--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"}}),Ww=IC({"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:{}}}),Hw=OC({"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"}}}),Fa=ve({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"}}),Uw=ve({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"}}),Re=ve({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:Gw,defaultVariants:qw}=Fa,Kw=ve({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:Gw,defaultVariants:qw}),Oh=ve({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"}}),Xw=ve({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"}}}}),Yw=ve({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"}}),Qw=ve({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"}}),pe=ve({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"}}),Jw=ve({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:pe.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"}}),Zw=ve({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"}}),ek=ve({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"}}),tk=ve({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:{}}}}),Pe=ve({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"}}),nk=ve({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"}}),rk=ve({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}}),ik=ve({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"}}}),ok=ve({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"}}),sk=ve({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"}}),ak={badge:Fa,button:Uw,code:Kw,container:Xw,heading:Yw,input:pe,inputAddon:Jw,kbd:Zw,link:ek,mark:tk,separator:nk,skeleton:rk,skipNavLink:ik,spinner:ok,textarea:sk,icon:Qw,checkmark:Re,radiomark:Pe,colorSwatch:Oh},lk=Oa.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}"}}}}),ck=Oa.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),uk=Oa.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}"}}}),dk=yu.extendWith("itemBody"),hk=M("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),fk=M("alert").parts("title","description","root","indicator","content"),gk=M("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),pk=M("blockquote").parts("root","icon","content","caption"),mk=M("card").parts("root","header","body","footer","title","description"),vk=M("checkbox-card",["root","control","label","description","addon","indicator","content"]),bk=M("data-list").parts("root","item","itemLabel","itemValue"),yk=ca.extendWith("header","body","footer","backdrop"),xk=ca.extendWith("header","body","footer","backdrop"),Sk=Uu.extendWith("textarea"),Ck=M("empty-state",["root","content","indicator","title","description"]),wk=Gu.extendWith("requiredIndicator"),kk=qu.extendWith("content"),Ek=Ku.extendWith("itemContent","dropzoneContent","fileText"),Ok=M("list").parts("root","item","indicator"),Ik=td.extendWith("itemCommand"),Rk=M("select").parts("root","field","indicator"),Pk=bd.extendWith("header","body","footer"),Ih=ya.extendWith("itemAddon","itemIndicator"),Tk=Ih.extendWith("itemContent","itemDescription"),Nk=xd.extendWith("itemIndicator"),_k=wd.extendWith("indicatorGroup"),Ak=pS.extendWith("indicatorGroup","empty"),Vk=Id.extendWith("markerIndicator"),Lk=M("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),Fk=M("status").parts("root","indicator"),zk=M("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),Dk=Rd.extendWith("indicator"),Mk=M("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),Bk=M("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),$k=M("tabs").parts("root","trigger","list","content","contentGroup","indicator"),jk=M("tag").parts("root","label","closeTrigger","startElement","endElement"),Wk=M("timeline").parts("root","item","content","separator","indicator","connector","title","description"),Hk=N1.extendWith("channelText"),Uk=M("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]);Ru.extendWith("valueText");const Gk=CS,qk=B({className:"chakra-accordion",slots:dk.keys(),base:{root:{width:"full","--accordion-radius":"radii.l2"},item:{overflowAnchor:"none"},itemTrigger:{display:"flex",alignItems:"center",textAlign:"start",width:"full",outline:"0",gap:"3",fontWeight:"medium",borderRadius:"var(--accordion-radius)",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{layerStyle:"disabled"}},itemBody:{pt:"var(--accordion-padding-y)",pb:"calc(var(--accordion-padding-y) * 2)"},itemContent:{overflow:"hidden",borderRadius:"var(--accordion-radius)",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}},itemIndicator:{transition:"rotate 0.2s",transformOrigin:"center",color:"fg.subtle",_open:{rotate:"180deg"},_icon:{width:"1.2em",height:"1.2em"}}},variants:{variant:{outline:{item:{borderBottomWidth:"1px"}},subtle:{itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{borderRadius:"var(--accordion-radius)",_open:{bg:"colorPalette.subtle"}}},enclosed:{root:{borderWidth:"1px",borderRadius:"var(--accordion-radius)",divideY:"1px",overflow:"hidden"},itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{_open:{bg:"bg.subtle"}}},plain:{}},size:{sm:{root:{"--accordion-padding-x":"spacing.3","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"sm",py:"var(--accordion-padding-y)"}},md:{root:{"--accordion-padding-x":"spacing.4","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"md",py:"var(--accordion-padding-y)"}},lg:{root:{"--accordion-padding-x":"spacing.4.5","--accordion-padding-y":"spacing.2.5"},itemTrigger:{textStyle:"lg",py:"var(--accordion-padding-y)"}}}},defaultVariants:{size:"md",variant:"outline"}}),Kk=B({className:"chakra-action-bar",slots:hk.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"}}}),Xk=B({slots:fk.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}}),Yk=B({slots:Cu.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"}}),Qk=B({className:"chakra-blockquote",slots:pk.keys(),base:{root:{position:"relative",display:"flex",flexDirection:"column",gap:"2"},caption:{textStyle:"sm",color:"fg.muted"},icon:{boxSize:"5"}},variants:{justify:{start:{root:{alignItems:"flex-start",textAlign:"start"}},center:{root:{alignItems:"center",textAlign:"center"}},end:{root:{alignItems:"flex-end",textAlign:"end"}}},variant:{subtle:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.muted"},icon:{color:"colorPalette.fg"}},solid:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.solid"},icon:{color:"colorPalette.solid"}},plain:{root:{paddingX:"5"},icon:{color:"colorPalette.solid"}}}},defaultVariants:{variant:"subtle",justify:"start"}}),Jk=B({className:"chakra-breadcrumb",slots:gk.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"}}),Zk=B({className:"chakra-card",slots:mk.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"}}),eE=B({slots:T1.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:Re.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:(zg=(Fg=Re.variants)==null?void 0:Fg.size)==null?void 0:zg.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:(Mg=(Dg=Re.variants)==null?void 0:Dg.size)==null?void 0:Mg.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:($g=(Bg=Re.variants)==null?void 0:Bg.size)==null?void 0:$g.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:(Wg=(jg=Re.variants)==null?void 0:jg.size)==null?void 0:Wg.lg}},variant:{outline:{control:(Ug=(Hg=Re.variants)==null?void 0:Hg.variant)==null?void 0:Ug.outline},solid:{control:(qg=(Gg=Re.variants)==null?void 0:Gg.variant)==null?void 0:qg.solid},subtle:{control:(Xg=(Kg=Re.variants)==null?void 0:Kg.variant)==null?void 0:Xg.subtle}}},defaultVariants:{variant:"solid",size:"md"}}),tE=B({slots:vk.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:Re.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:(Yg=Re.variants)==null?void 0:Yg.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:(Qg=Re.variants)==null?void 0:Qg.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:(Jg=Re.variants)==null?void 0:Jg.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:(Zg=Re.variants)==null?void 0:Zg.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:(ep=Re.variants)==null?void 0:ep.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:(tp=Re.variants)==null?void 0:tp.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:(np=Re.variants)==null?void 0:np.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"}}),nE=B({slots:Uk.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",overflow:"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",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",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"}}),rE=B({slots:Ac.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}),iE=B({className:"colorPicker",slots:Hk.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:{...Oh.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:{...pe.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:(ip=(rp=pe.variants)==null?void 0:rp.size)==null?void 0:ip["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:(sp=(op=pe.variants)==null?void 0:op.size)==null?void 0:sp.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:(lp=(ap=pe.variants)==null?void 0:ap.size)==null?void 0:lp.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:(up=(cp=pe.variants)==null?void 0:cp.size)==null?void 0:up.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:(hp=(dp=pe.variants)==null?void 0:dp.size)==null?void 0:hp.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:(gp=(fp=pe.variants)==null?void 0:fp.size)==null?void 0:gp.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:(mp=(pp=pe.variants)==null?void 0:pp.size)==null?void 0:mp["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:(bp=(vp=pe.variants)==null?void 0:vp.variant)==null?void 0:bp.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:(xp=(yp=pe.variants)==null?void 0:yp.variant)==null?void 0:xp.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),oE=B({className:"chakra-combobox",slots:Ak.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"}}),sE=B({slots:bk.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"}}),aE=B({slots:yk.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"}}),lE=B({slots:xk.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"}}),Rh=or({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),cE=B({slots:Sk.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...Rh,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...Rh,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"}}),uE=B({slots:Ck.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"}}),dE=B({className:"chakra-field",slots:wk.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"}}),hE=B({className:"fieldset",slots:kk.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"}}),fE=B({className:"chakra-file-upload",slots:Ek.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:{}}),gE=B({className:"chakra-hover-card",slots:Xu.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"}}),pE=B({className:"chakra-list",slots:Ok.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"}}),mE=B({className:"chakra-listbox",slots:Gk.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"}}),vE=B({className:"chakra-menu",slots:Ik.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"}}),No=B({className:"chakra-select",slots:_k.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"}}),bE=B({className:"chakra-native-select",slots:Rk.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:(Sp=No.variants)==null?void 0:Sp.variant.outline.trigger},subtle:{field:(Cp=No.variants)==null?void 0:Cp.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:No.defaultVariants});function za(e,t){const n={};for(const r in e){const i=t(r,e[r]);n[i[0]]=i[1]}return n}const Ph=or({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"}}),yE=B({className:"chakra-number-input",slots:hd.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...pe.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:{...Ph,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...Ph,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:pe.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:pe.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:pe.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:pe.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:za(pe.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:Th,defaultVariants:xE}=pe,SE=B({className:"chakra-pin-input",slots:vd.keys(),base:{input:{...pe.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:za(Th.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:za(Th.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:xE}),CE=B({className:"chakra-popover",slots:Pk.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"}}),wE=B({slots:ba.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"}}),kE=B({className:"chakra-progress-circle",slots:ba.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"}}),EE=B({slots:yd.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"}}),OE=B({className:"chakra-radio-card",slots:Tk.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",isolation:"isolate"},item:{flex:"1",display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",_focus:{bg:"colorPalette.muted/20"},_disabled:{opacity:"0.8",borderColor:"border.disabled"},_checked:{zIndex:"1"}},label:{display:"inline-flex",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},itemText:{fontWeight:"medium",flex:"1"},itemDescription:{opacity:"0.64",textStyle:"sm"},itemControl:{display:"inline-flex",flex:"1",pos:"relative",rounded:"inherit",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)",_disabled:{bg:"bg.muted"}},itemIndicator:Pe.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:(wp=Pe.variants)==null?void 0:wp.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:(kp=Pe.variants)==null?void 0:kp.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:(Ep=Pe.variants)==null?void 0:Ep.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:(Op=Pe.variants)==null?void 0:Op.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:(Ip=Pe.variants)==null?void 0:Ip.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:(Rp=Pe.variants)==null?void 0:Rp.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:(Pp=Pe.variants)==null?void 0:Pp.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"}}),IE=B({className:"chakra-radio-group",slots:Ih.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:Pe.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:(Np=(Tp=Pe.variants)==null?void 0:Tp.variant)==null?void 0:Np.outline},subtle:{itemControl:(Ap=(_p=Pe.variants)==null?void 0:_p.variant)==null?void 0:Ap.subtle},solid:{itemControl:(Lp=(Vp=Pe.variants)==null?void 0:Vp.variant)==null?void 0:Lp.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:(zp=(Fp=Pe.variants)==null?void 0:Fp.size)==null?void 0:zp.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:(Mp=(Dp=Pe.variants)==null?void 0:Dp.size)==null?void 0:Mp.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:($p=(Bp=Pe.variants)==null?void 0:Bp.size)==null?void 0:$p.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:(Wp=(jp=Pe.variants)==null?void 0:jp.size)==null?void 0:Wp.lg}}},defaultVariants:{size:"md",variant:"solid"}}),RE=B({className:"chakra-rating-group",slots:Nk.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"}}),PE=B({className:"chakra-scroll-area",slots:Sd.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"}}),TE=B({className:"chakra-segment-group",slots:Cd.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"}}),NE=B({className:"chakra-slider",slots:Vk.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"}}),_E=B({className:"chakra-stat",slots:Lk.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"}}),AE=B({className:"chakra-status",slots:Fk.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"}}),VE=B({className:"chakra-steps",slots:zk.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"}}),LE=B({slots:Dk.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"}}),FE=B({className:"chakra-table",slots:Mk.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}}),zE=B({slots:$k.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"}}),it=(Hp=Fa.variants)==null?void 0:Hp.variant,DE=B({slots:jk.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:it==null?void 0:it.subtle},solid:{root:it==null?void 0:it.solid},outline:{root:it==null?void 0:it.outline},surface:{root:it==null?void 0:it.surface}}},defaultVariants:{size:"md",variant:"surface"}}),ME=B({slots:Wk.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"& :where(.chakra-timeline__separator)":{display:"none"}}},separator:{position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"6",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid"}}),BE=B({slots:Bk.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"}}}}),$E=B({slots:Pd.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)"}}}),Nh=or({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"}}),_h=or({flex:"1"}),Ah=or({_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}),Vh=or({_selected:{layerStyle:"fill.solid"}}),jE=B({slots:Ju.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:Nh,item:Nh,itemText:_h,branchText:_h,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:Ah,item:Ah},solid:{branchControl:Vh,item:Vh}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}),WE={accordion:qk,actionBar:Kk,alert:Xk,avatar:Yk,blockquote:Qk,breadcrumb:Jk,card:Zk,checkbox:eE,checkboxCard:tE,codeBlock:nE,collapsible:rE,dataList:sE,dialog:aE,drawer:lE,editable:cE,emptyState:uE,field:dE,fieldset:hE,fileUpload:fE,hoverCard:gE,list:pE,listbox:mE,menu:vE,nativeSelect:bE,numberInput:yE,pinInput:SE,popover:CE,progress:wE,progressCircle:kE,radioCard:OE,radioGroup:IE,ratingGroup:RE,scrollArea:PE,segmentGroup:TE,select:No,combobox:oE,slider:NE,stat:_E,steps:VE,switch:LE,table:FE,tabs:zE,tag:DE,toast:BE,tooltip:$E,status:AE,timeline:ME,colorPicker:iE,qrCode:EE,treeView:jE},HE=EC({"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"}}}),UE=ge.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"}}),GE=ge.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"}}),qE=ge.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),KE=ge.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),XE=ge.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"}}}),YE=ge.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"}}),QE=ge.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),JE=ge.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)"}}),ZE=ge.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"}}),eO=ge.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"}}),Lh='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',tO=ge.fonts({heading:{value:`Inter, ${Lh}`},body:{value:`Inter, ${Lh}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),nO=wC({spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"0"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"0"}},"expand-width":{from:{width:"0"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"0"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}}),rO=ge.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),iO=ge.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),oO=ge.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"}}),Fh=ge.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"}}),sO=ge.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"}}),aO=ge.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"}}),lO=ge.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%"}}),cO=ge.sizes({...sO,...Fh,...lO,...aO}),uO=ge.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}}),dO=Ia({preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:jw,theme:{breakpoints:$w,keyframes:nO,tokens:{aspectRatios:GE,animations:UE,blurs:qE,borders:KE,colors:XE,durations:QE,easings:JE,fonts:tO,fontSizes:ZE,fontWeights:eO,letterSpacings:rO,lineHeights:iO,radii:oO,spacing:Fh,sizes:cO,zIndex:uO,cursor:YE},semanticTokens:{colors:lk,shadows:uk,radii:ck},recipes:ak,slotRecipes:WE,textStyles:HE,layerStyles:Ww,animationStyles:Hw}}),ot=Vd(LC,dO);Ch(ot);function hO(e){const{key:t,recipe:n}=e,r=$i();return A.useMemo(()=>{const i=n||(t!=null?r.getSlotRecipe(t):{});return r.sva(structuredClone(i))},[t,n,r])}const fO=e=>e.charAt(0).toUpperCase()+e.slice(1),zh=e=>{const{key:t,recipe:n}=e,r=fO(t||n.className||"Component"),[i,o]=Hn({name:`${r}StylesContext`,errorMessage:`use${r}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `}),[s,a]=Hn({name:`${r}ClassNameContext`,errorMessage:`use${r}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `,strict:!1}),[l,u]=Hn({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`,defaultValue:{}});function c(f){const{unstyled:g,...p}=f,v=hO({key:t,recipe:p.recipe||n}),[b,S]=A.useMemo(()=>v.splitVariantProps(p),[p,v]);return{styles:A.useMemo(()=>g?cb:v(b),[g,b,v]),classNames:v.classNameMap,props:S}}function d(f,g={}){const{defaultProps:p}=g,v=b=>{const S=u(),y=A.useMemo(()=>Vr(p,S,b),[S,b]),{styles:E,classNames:P,props:N}=c(y);return C.jsx(i,{value:E,children:C.jsx(s,{value:P,children:C.jsx(f,{...N})})})};return v.displayName=f.displayName||f.name,v}return{StylesProvider:i,ClassNamesProvider:s,PropsProvider:l,usePropsContext:u,useRecipeResult:c,withProvider:(f,g,p)=>{const{defaultProps:v,...b}=p??{},S=Ve(f,{},b),y=A.forwardRef((E,P)=>{var Z;const N=u(),O=A.useMemo(()=>Vr(v??{},N,E),[N,E]),{styles:I,props:R,classNames:z}=c(O),F=z[g],X=C.jsx(i,{value:I,children:C.jsx(s,{value:z,children:C.jsx(S,{ref:P,...R,css:[I[g],O.css],className:et(O.className,F)})})});return((Z=p==null?void 0:p.wrapElement)==null?void 0:Z.call(p,X,O))??X});return y.displayName=f.displayName||f.name,y},withContext:(f,g,p)=>{const v=Ve(f,{},p),b=A.forwardRef((S,y)=>{const{unstyled:E,...P}=S,N=o(),O=a(),I=O==null?void 0:O[g];return C.jsx(v,{...P,css:[!E&&g?N[g]:void 0,S.css],ref:y,className:et(S.className,I)})});return b.displayName=f.displayName||f.name,b},withRootProvider:d,useStyles:o,useClassNames:a}},Dh=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"}});Dh.displayName="AbsoluteCenter";const gO=e=>C.jsx(Ve.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:C.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"})}),Mh=e=>C.jsx(Ve.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:C.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"})}),Bh=e=>C.jsx(Ve.svg,{viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",...e,children:C.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"})}),[pO,mO]=Hn({name:"AlertStatusContext",hookName:"useAlertStatusContext",providerName:""}),{withProvider:vO,withContext:Da,useStyles:bO}=zh({key:"alert"}),yO=vO("div","root",{forwardAsChild:!0,wrapElement(e,t){return C.jsx(pO,{value:{status:t.status||"info"},children:e})}}),$h=Da("div","title"),xO=Da("div","description"),SO=Da("div","content"),CO={info:Bh,warning:Mh,success:gO,error:Mh,neutral:Bh},wO=A.forwardRef(function(t,n){const r=mO(),i=bO(),o=typeof r.status=="string"?CO[r.status]:A.Fragment,{children:s=C.jsx(o,{}),...a}=t;return C.jsx(Ve.span,{ref:n,...a,css:[i.indicator,t.css],children:s})}),kO=e=>e?"":void 0,{withContext:EO}=ji({key:"badge"}),jh=EO("span"),{withContext:OO}=ji({key:"spinner"}),IO=OO("span"),RO=w.forwardRef(function(t,n){const{spinner:r=C.jsx(IO,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:i="start",children:o,text:s,visible:a=!0,...l}=t;return a?s?C.jsxs(Zi,{ref:n,display:"contents",...l,children:[i==="start"&&r,s,i==="end"&&r]}):r?C.jsxs(Zi,{ref:n,display:"contents",...l,children:[C.jsx(Dh,{display:"inline-flex",children:r}),C.jsx(Zi,{visibility:"hidden",display:"contents",children:o})]}):C.jsx(Zi,{ref:n,display:"contents",...l,children:o}):o}),{useRecipeResult:PO,usePropsContext:TO}=ji({key:"button"}),NO=A.forwardRef(function(t,n){const r=TO(),i=A.useMemo(()=>Vr(r,t),[r,t]),o=PO(i),{loading:s,loadingText:a,children:l,spinner:u,spinnerPlacement:c,...d}=o.props;return C.jsx(Ve.button,{type:"button",ref:n,...d,"data-loading":kO(s),disabled:s||d.disabled,className:et(o.className,i.className),css:[o.styles,i.css],children:!i.asChild&&s?C.jsx(RO,{spinner:u,text:a,spinnerPlacement:c,children:l}):l})}),_O=A.forwardRef(function(t,n){return C.jsx(NO,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:n,...t})}),Wh=Ve("div",{base:{display:"flex",alignItems:"center",justifyContent:"center"},variants:{inline:{true:{display:"inline-flex"}}}});Wh.displayName="Center";function AO(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{"&":Ad(n,i=>r[i])}}function VO(e){return A.Children.toArray(e).filter(t=>A.isValidElement(t))}const LO=A.forwardRef(function(t,n){const{direction:r="column",align:i,justify:o,gap:s="0.5rem",wrap:a,children:l,separator:u,className:c,...d}=t,h=A.useMemo(()=>AO({gap:s,direction:r}),[s,r]),m=A.useMemo(()=>A.isValidElement(u)?VO(l).map((f,g,p)=>{const v=typeof f.key<"u"?f.key:g,b=u,S=A.cloneElement(b,{css:[h,b.props.css]});return C.jsxs(A.Fragment,{children:[f,g===p.length-1?null:S]},v)}):l,[l,u,h]);return C.jsx(Ve.div,{ref:n,display:"flex",alignItems:i,justifyContent:o,flexDirection:r,flexWrap:a,gap:u?void 0:s,className:et("chakra-stack",c),...d,children:m})}),FO=A.forwardRef(function(t,n){const{direction:r,align:i,justify:o,wrap:s,basis:a,grow:l,shrink:u,inline:c,...d}=t;return C.jsx(Ve.div,{ref:n,...d,css:{display:c?"inline-flex":"flex",flexDirection:r,alignItems:i,justifyContent:o,flexWrap:s,flexBasis:a,flexGrow:l,flexShrink:u,...t.css}})}),zO=A.forwardRef(function(t,n){return C.jsx(LO,{align:"center",...t,direction:"row",ref:n})}),{StylesProvider:DO,ClassNamesProvider:MO,useRecipeResult:BO,withContext:Ft}=zh({key:"table"}),Hh=A.forwardRef(function({native:t,...n},r){const{styles:i,props:o,classNames:s}=BO(n),a=A.useMemo(()=>t?{...i.root,"& thead":i.header,"& tbody":i.body,"& tfoot":i.footer,"& thead th":i.columnHeader,"& tr":i.row,"& td":i.cell,"& caption":i.caption}:i.root,[i,t]);return C.jsx(MO,{value:s,children:C.jsx(DO,{value:i,children:C.jsx(Ve.table,{ref:r,...o,css:[a,n.css],className:et(s==null?void 0:s.root,n.className)})})})}),_o=Ft("tr","row");Ve("div",{base:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflow:"auto",maxWidth:"100%"}});const Uh=Ft("thead","header");Ft("tfoot","footer");const Ce=Ft("th","columnHeader"),we=Ft("td","cell");Ft("caption","caption",{defaultProps:{captionSide:"bottom"}});const Gh=Ft("tbody","body");Ft("colgroup"),Ft("col");var ni=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(){}},In=typeof window>"u"||"Deno"in globalThis;function We(){}function $O(e,t){return typeof e=="function"?e(t):e}function Ma(e){return typeof e=="number"&&e>=0&&e!==1/0}function qh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Qt(e,t){return typeof e=="function"?e(t):e}function st(e,t){return typeof e=="function"?e(t):e}function Kh(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Ba(s,t.options))return!1}else if(!ii(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||i&&i!==t.state.fetchStatus||o&&!o(t))}function Xh(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(ri(t.options.mutationKey)!==ri(o))return!1}else if(!ii(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Ba(e,t){return((t==null?void 0:t.queryKeyHashFn)||ri)(e)}function ri(e){return JSON.stringify(e,(t,n)=>ja(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function ii(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ii(e[n],t[n])):!1}var jO=Object.prototype.hasOwnProperty;function Yh(e,t){if(e===t)return e;const n=Qh(e)&&Qh(t);if(!n&&!(ja(e)&&ja(t)))return t;const i=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),s=o.length,a=n?new Array(s):{};let l=0;for(let u=0;u{setTimeout(t,e)})}function Wa(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Yh(e,t):t}function HO(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function UO(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ha=Symbol();function Zh(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Ha?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function GO(e,t){return typeof e=="function"?e(...t):!!e}var qO=(Up=class extends ni{constructor(){super();j(this,_n);j(this,nn);j(this,gr);L(this,gr,t=>{if(!In&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){x(this,nn)||this.setEventListener(x(this,gr))}onUnsubscribe(){var t;this.hasListeners()||((t=x(this,nn))==null||t.call(this),L(this,nn,void 0))}setEventListener(t){var n;L(this,gr,t),(n=x(this,nn))==null||n.call(this),L(this,nn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){x(this,_n)!==t&&(L(this,_n,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof x(this,_n)=="boolean"?x(this,_n):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},_n=new WeakMap,nn=new WeakMap,gr=new WeakMap,Up),Ua=new qO,KO=(Gp=class extends ni{constructor(){super();j(this,pr,!0);j(this,rn);j(this,mr);L(this,mr,t=>{if(!In&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){x(this,rn)||this.setEventListener(x(this,mr))}onUnsubscribe(){var t;this.hasListeners()||((t=x(this,rn))==null||t.call(this),L(this,rn,void 0))}setEventListener(t){var n;L(this,mr,t),(n=x(this,rn))==null||n.call(this),L(this,rn,t(this.setOnline.bind(this)))}setOnline(t){x(this,pr)!==t&&(L(this,pr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return x(this,pr)}},pr=new WeakMap,rn=new WeakMap,mr=new WeakMap,Gp),Ao=new KO;function Ga(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function XO(e){return Math.min(1e3*2**e,3e4)}function ef(e){return(e??"online")==="online"?Ao.isOnline():!0}var qa=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function tf(e){let t=!1,n=0,r;const i=Ga(),o=()=>i.status!=="pending",s=g=>{var p;if(!o()){const v=new qa(g);h(v),(p=e.onCancel)==null||p.call(e,v)}},a=()=>{t=!0},l=()=>{t=!1},u=()=>Ua.isFocused()&&(e.networkMode==="always"||Ao.isOnline())&&e.canRun(),c=()=>ef(e.networkMode)&&e.canRun(),d=g=>{o()||(r==null||r(),i.resolve(g))},h=g=>{o()||(r==null||r(),i.reject(g))},m=()=>new Promise(g=>{var p;r=v=>{(o()||u())&&g(v)},(p=e.onPause)==null||p.call(e)}).then(()=>{var g;r=void 0,o()||(g=e.onContinue)==null||g.call(e)}),f=()=>{if(o())return;let g;const p=n===0?e.initialPromise:void 0;try{g=p??e.fn()}catch(v){g=Promise.reject(v)}Promise.resolve(g).then(d).catch(v=>{var P;if(o())return;const b=e.retry??(In?0:3),S=e.retryDelay??XO,y=typeof S=="function"?S(n,v):S,E=b===!0||typeof b=="number"&&nu()?void 0:m()).then(()=>{t?h(v):f()})})};return{promise:i,status:()=>i.status,cancel:s,continue:()=>(r==null||r(),i),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?f():m().then(f),i)}}var YO=e=>setTimeout(e,0);function QO(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=YO;const o=a=>{t?e.push(a):i(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var Te=QO(),nf=(qp=class{constructor(){j(this,An)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ma(this.gcTime)&&L(this,An,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(In?1/0:5*60*1e3))}clearGcTimeout(){x(this,An)&&(clearTimeout(x(this,An)),L(this,An,void 0))}},An=new WeakMap,qp),JO=(Kp=class extends nf{constructor(t){super();j(this,pt);j(this,vr);j(this,br);j(this,at);j(this,Vn);j(this,ke);j(this,pi);j(this,Ln);L(this,Ln,!1),L(this,pi,t.defaultOptions),this.setOptions(t.options),this.observers=[],L(this,Vn,t.client),L(this,at,x(this,Vn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,L(this,vr,ZO(this.options)),this.state=t.state??x(this,vr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=x(this,ke))==null?void 0:t.promise}setOptions(t){this.options={...x(this,pi),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&x(this,at).remove(this)}setData(t,n){const r=Wa(this.state.data,t,this.options);return G(this,pt,Bt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){G(this,pt,Bt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=x(this,ke))==null?void 0:r.promise;return(i=x(this,ke))==null||i.cancel(t),n?n.then(We).catch(We):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(x(this,vr))}isActive(){return this.observers.some(t=>st(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ha||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Qt(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!qh(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=x(this,ke))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=x(this,ke))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),x(this,at).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(x(this,ke)&&(x(this,Ln)?x(this,ke).cancel({revert:!0}):x(this,ke).cancelRetry()),this.scheduleGc()),x(this,at).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||G(this,pt,Bt).call(this,{type:"invalidate"})}async fetch(t,n){var l,u,c,d,h,m,f,g,p,v,b,S;if(this.state.fetchStatus!=="idle"&&((l=x(this,ke))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(x(this,ke))return x(this,ke).continueRetry(),x(this,ke).promise}if(t&&this.setOptions(t),!this.options.queryFn){const y=this.observers.find(E=>E.options.queryFn);y&&this.setOptions(y.options)}const r=new AbortController,i=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(L(this,Ln,!0),r.signal)})},o=()=>{const y=Zh(this.options,n),P=(()=>{const N={client:x(this,Vn),queryKey:this.queryKey,meta:this.meta};return i(N),N})();return L(this,Ln,!1),this.options.persister?this.options.persister(y,P,this):y(P)},a=(()=>{const y={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:x(this,Vn),state:this.state,fetchFn:o};return i(y),y})();(u=this.options.behavior)==null||u.onFetch(a,this),L(this,br,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&G(this,pt,Bt).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta}),L(this,ke,tf({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:y=>{y instanceof qa&&y.revert&&this.setState({...x(this,br),fetchStatus:"idle"}),r.abort()},onFail:(y,E)=>{G(this,pt,Bt).call(this,{type:"failed",failureCount:y,error:E})},onPause:()=>{G(this,pt,Bt).call(this,{type:"pause"})},onContinue:()=>{G(this,pt,Bt).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const y=await x(this,ke).start();if(y===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(y),(m=(h=x(this,at).config).onSuccess)==null||m.call(h,y,this),(g=(f=x(this,at).config).onSettled)==null||g.call(f,y,this.state.error,this),y}catch(y){if(y instanceof qa){if(y.silent)return x(this,ke).promise;if(y.revert){if(this.state.data===void 0)throw y;return this.state.data}}throw G(this,pt,Bt).call(this,{type:"error",error:y}),(v=(p=x(this,at).config).onError)==null||v.call(p,y,this),(S=(b=x(this,at).config).onSettled)==null||S.call(b,this.state.data,y,this),y}finally{this.scheduleGc()}}},vr=new WeakMap,br=new WeakMap,at=new WeakMap,Vn=new WeakMap,ke=new WeakMap,pi=new WeakMap,Ln=new WeakMap,pt=new WeakSet,Bt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...rf(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return L(this,br,t.manual?i:void 0),i;case"error":const o=t.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Te.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),x(this,at).notify({query:this,type:"updated",action:t})})},Kp);function rf(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ef(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function ZO(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 eI=(Xp=class extends ni{constructor(t={}){super();j(this,Rt);this.config=t,L(this,Rt,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??Ba(i,n);let s=this.get(o);return s||(s=new JO({client:t,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){x(this,Rt).has(t.queryHash)||(x(this,Rt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=x(this,Rt).get(t.queryHash);n&&(t.destroy(),n===t&&x(this,Rt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Te.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return x(this,Rt).get(t)}getAll(){return[...x(this,Rt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Kh(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Kh(t,r)):n}notify(t){Te.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Te.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Te.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Rt=new WeakMap,Xp),tI=(Yp=class extends nf{constructor(t){super();j(this,Tt);j(this,Pt);j(this,Fe);j(this,Fn);this.mutationId=t.mutationId,L(this,Fe,t.mutationCache),L(this,Pt,[]),this.state=t.state||nI(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){x(this,Pt).includes(t)||(x(this,Pt).push(t),this.clearGcTimeout(),x(this,Fe).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){L(this,Pt,x(this,Pt).filter(n=>n!==t)),this.scheduleGc(),x(this,Fe).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){x(this,Pt).length||(this.state.status==="pending"?this.scheduleGc():x(this,Fe).remove(this))}continue(){var t;return((t=x(this,Fn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,a,l,u,c,d,h,m,f,g,p,v,b,S,y,E,P,N,O;const n=()=>{G(this,Tt,dn).call(this,{type:"continue"})};L(this,Fn,tf({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(I,R)=>{G(this,Tt,dn).call(this,{type:"failed",failureCount:I,error:R})},onPause:()=>{G(this,Tt,dn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>x(this,Fe).canRun(this)}));const r=this.state.status==="pending",i=!x(this,Fn).canStart();try{if(r)n();else{G(this,Tt,dn).call(this,{type:"pending",variables:t,isPaused:i}),await((s=(o=x(this,Fe).config).onMutate)==null?void 0:s.call(o,t,this));const R=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));R!==this.state.context&&G(this,Tt,dn).call(this,{type:"pending",context:R,variables:t,isPaused:i})}const I=await x(this,Fn).start();return await((c=(u=x(this,Fe).config).onSuccess)==null?void 0:c.call(u,I,t,this.state.context,this)),await((h=(d=this.options).onSuccess)==null?void 0:h.call(d,I,t,this.state.context)),await((f=(m=x(this,Fe).config).onSettled)==null?void 0:f.call(m,I,null,this.state.variables,this.state.context,this)),await((p=(g=this.options).onSettled)==null?void 0:p.call(g,I,null,t,this.state.context)),G(this,Tt,dn).call(this,{type:"success",data:I}),I}catch(I){try{throw await((b=(v=x(this,Fe).config).onError)==null?void 0:b.call(v,I,t,this.state.context,this)),await((y=(S=this.options).onError)==null?void 0:y.call(S,I,t,this.state.context)),await((P=(E=x(this,Fe).config).onSettled)==null?void 0:P.call(E,void 0,I,this.state.variables,this.state.context,this)),await((O=(N=this.options).onSettled)==null?void 0:O.call(N,void 0,I,t,this.state.context)),I}finally{G(this,Tt,dn).call(this,{type:"error",error:I})}}finally{x(this,Fe).runNext(this)}}},Pt=new WeakMap,Fe=new WeakMap,Fn=new WeakMap,Tt=new WeakSet,dn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Te.batch(()=>{x(this,Pt).forEach(r=>{r.onMutationUpdate(t)}),x(this,Fe).notify({mutation:this,type:"updated",action:t})})},Yp);function nI(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var rI=(Qp=class extends ni{constructor(t={}){super();j(this,zt);j(this,mt);j(this,mi);this.config=t,L(this,zt,new Set),L(this,mt,new Map),L(this,mi,0)}build(t,n,r){const i=new tI({mutationCache:this,mutationId:++rs(this,mi)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){x(this,zt).add(t);const n=Vo(t);if(typeof n=="string"){const r=x(this,mt).get(n);r?r.push(t):x(this,mt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(x(this,zt).delete(t)){const n=Vo(t);if(typeof n=="string"){const r=x(this,mt).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&x(this,mt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Vo(t);if(typeof n=="string"){const r=x(this,mt).get(n),i=r==null?void 0:r.find(o=>o.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=Vo(t);if(typeof n=="string"){const i=(r=x(this,mt).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Te.batch(()=>{x(this,zt).forEach(t=>{this.notify({type:"removed",mutation:t})}),x(this,zt).clear(),x(this,mt).clear()})}getAll(){return Array.from(x(this,zt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Xh(n,r))}findAll(t={}){return this.getAll().filter(n=>Xh(t,n))}notify(t){Te.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Te.batch(()=>Promise.all(t.map(n=>n.continue().catch(We))))}},zt=new WeakMap,mt=new WeakMap,mi=new WeakMap,Qp);function Vo(e){var t;return(t=e.options.scope)==null?void 0:t.id}function of(e){return{onFetch:(t,n)=>{var c,d,h,m,f;const r=t.options,i=(h=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,o=((m=t.state.data)==null?void 0:m.pages)||[],s=((f=t.state.data)==null?void 0:f.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let g=!1;const p=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},v=Zh(t.options,t.fetchOptions),b=async(S,y,E)=>{if(g)return Promise.reject();if(y==null&&S.pages.length)return Promise.resolve(S);const N=(()=>{const z={client:t.client,queryKey:t.queryKey,pageParam:y,direction:E?"backward":"forward",meta:t.options.meta};return p(z),z})(),O=await v(N),{maxPages:I}=t.options,R=E?UO:HO;return{pages:R(S.pages,O,I),pageParams:R(S.pageParams,y,I)}};if(i&&o.length){const S=i==="backward",y=S?iI:sf,E={pages:o,pageParams:s},P=y(r,E);a=await b(E,P,S)}else{const S=e??o.length;do{const y=l===0?s[0]??r.initialPageParam:sf(r,a);if(l>0&&y==null)break;a=await b(a,y),l++}while(l{var g,p;return(p=(g=t.options).persister)==null?void 0:p.call(g,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function sf(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 iI(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var oI=(Jp=class{constructor(e={}){j(this,de);j(this,on);j(this,sn);j(this,yr);j(this,xr);j(this,an);j(this,Sr);j(this,Cr);L(this,de,e.queryCache||new eI),L(this,on,e.mutationCache||new rI),L(this,sn,e.defaultOptions||{}),L(this,yr,new Map),L(this,xr,new Map),L(this,an,0)}mount(){rs(this,an)._++,x(this,an)===1&&(L(this,Sr,Ua.subscribe(async e=>{e&&(await this.resumePausedMutations(),x(this,de).onFocus())})),L(this,Cr,Ao.subscribe(async e=>{e&&(await this.resumePausedMutations(),x(this,de).onOnline())})))}unmount(){var e,t;rs(this,an)._--,x(this,an)===0&&((e=x(this,Sr))==null||e.call(this),L(this,Sr,void 0),(t=x(this,Cr))==null||t.call(this),L(this,Cr,void 0))}isFetching(e){return x(this,de).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return x(this,on).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=x(this,de).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=x(this,de).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Qt(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return x(this,de).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=x(this,de).get(r.queryHash),o=i==null?void 0:i.state.data,s=$O(t,o);if(s!==void 0)return x(this,de).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Te.batch(()=>x(this,de).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=x(this,de).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=x(this,de);Te.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=x(this,de);return Te.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Te.batch(()=>x(this,de).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(We).catch(We)}invalidateQueries(e,t={}){return Te.batch(()=>(x(this,de).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Te.batch(()=>x(this,de).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(We)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(We)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=x(this,de).build(this,t);return n.isStaleByTime(Qt(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(We).catch(We)}fetchInfiniteQuery(e){return e.behavior=of(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(We).catch(We)}ensureInfiniteQueryData(e){return e.behavior=of(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ao.isOnline()?x(this,on).resumePausedMutations():Promise.resolve()}getQueryCache(){return x(this,de)}getMutationCache(){return x(this,on)}getDefaultOptions(){return x(this,sn)}setDefaultOptions(e){L(this,sn,e)}setQueryDefaults(e,t){x(this,yr).set(ri(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...x(this,yr).values()],n={};return t.forEach(r=>{ii(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){x(this,xr).set(ri(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...x(this,xr).values()],n={};return t.forEach(r=>{ii(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...x(this,sn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ba(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===Ha&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...x(this,sn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){x(this,de).clear(),x(this,on).clear()}},de=new WeakMap,on=new WeakMap,sn=new WeakMap,yr=new WeakMap,xr=new WeakMap,an=new WeakMap,Sr=new WeakMap,Cr=new WeakMap,Jp),sI=(Zp=class extends ni{constructor(t,n){super();j(this,ee);j(this,Ge);j(this,H);j(this,vi);j(this,ze);j(this,zn);j(this,wr);j(this,Dt);j(this,ln);j(this,bi);j(this,kr);j(this,Er);j(this,Dn);j(this,Mn);j(this,cn);j(this,Or,new Set);this.options=n,L(this,Ge,t),L(this,ln,null),L(this,Dt,Ga()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(x(this,H).addObserver(this),af(x(this,H),this.options)?G(this,ee,xi).call(this):this.updateResult(),G(this,ee,Cl).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ka(x(this,H),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ka(x(this,H),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,G(this,ee,wl).call(this),G(this,ee,kl).call(this),x(this,H).removeObserver(this)}setOptions(t){const n=this.options,r=x(this,H);if(this.options=x(this,Ge).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof st(this.options.enabled,x(this,H))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");G(this,ee,El).call(this),x(this,H).setOptions(this.options),n._defaulted&&!$a(this.options,n)&&x(this,Ge).getQueryCache().notify({type:"observerOptionsUpdated",query:x(this,H),observer:this});const i=this.hasListeners();i&&lf(x(this,H),r,this.options,n)&&G(this,ee,xi).call(this),this.updateResult(),i&&(x(this,H)!==r||st(this.options.enabled,x(this,H))!==st(n.enabled,x(this,H))||Qt(this.options.staleTime,x(this,H))!==Qt(n.staleTime,x(this,H)))&&G(this,ee,yl).call(this);const o=G(this,ee,xl).call(this);i&&(x(this,H)!==r||st(this.options.enabled,x(this,H))!==st(n.enabled,x(this,H))||o!==x(this,cn))&&G(this,ee,Sl).call(this,o)}getOptimisticResult(t){const n=x(this,Ge).getQueryCache().build(x(this,Ge),t),r=this.createResult(n,t);return lI(this,r)&&(L(this,ze,r),L(this,wr,this.options),L(this,zn,x(this,H).state)),r}getCurrentResult(){return x(this,ze)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&!this.options.experimental_prefetchInRender&&x(this,Dt).status==="pending"&&x(this,Dt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,i))})}trackProp(t){x(this,Or).add(t)}getCurrentQuery(){return x(this,H)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=x(this,Ge).defaultQueryOptions(t),r=x(this,Ge).getQueryCache().build(x(this,Ge),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return G(this,ee,xi).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),x(this,ze)))}createResult(t,n){var I;const r=x(this,H),i=this.options,o=x(this,ze),s=x(this,zn),a=x(this,wr),u=t!==r?t.state:x(this,vi),{state:c}=t;let d={...c},h=!1,m;if(n._optimisticResults){const R=this.hasListeners(),z=!R&&af(t,n),F=R&&lf(t,r,n,i);(z||F)&&(d={...d,...rf(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:f,errorUpdatedAt:g,status:p}=d;m=d.data;let v=!1;if(n.placeholderData!==void 0&&m===void 0&&p==="pending"){let R;o!=null&&o.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(R=o.data,v=!0):R=typeof n.placeholderData=="function"?n.placeholderData((I=x(this,Er))==null?void 0:I.state.data,x(this,Er)):n.placeholderData,R!==void 0&&(p="success",m=Wa(o==null?void 0:o.data,R,n),h=!0)}if(n.select&&m!==void 0&&!v)if(o&&m===(s==null?void 0:s.data)&&n.select===x(this,bi))m=x(this,kr);else try{L(this,bi,n.select),m=n.select(m),m=Wa(o==null?void 0:o.data,m,n),L(this,kr,m),L(this,ln,null)}catch(R){L(this,ln,R)}x(this,ln)&&(f=x(this,ln),m=x(this,kr),g=Date.now(),p="error");const b=d.fetchStatus==="fetching",S=p==="pending",y=p==="error",E=S&&b,P=m!==void 0,O={status:p,fetchStatus:d.fetchStatus,isPending:S,isSuccess:p==="success",isError:y,isInitialLoading:E,isLoading:E,data:m,dataUpdatedAt:d.dataUpdatedAt,error:f,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:b,isRefetching:b&&!S,isLoadingError:y&&!P,isPaused:d.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:y&&P,isStale:Xa(t,n),refetch:this.refetch,promise:x(this,Dt),isEnabled:st(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const R=X=>{O.status==="error"?X.reject(O.error):O.data!==void 0&&X.resolve(O.data)},z=()=>{const X=L(this,Dt,O.promise=Ga());R(X)},F=x(this,Dt);switch(F.status){case"pending":t.queryHash===r.queryHash&&R(F);break;case"fulfilled":(O.status==="error"||O.data!==F.value)&&z();break;case"rejected":(O.status!=="error"||O.error!==F.reason)&&z();break}}return O}updateResult(){const t=x(this,ze),n=this.createResult(x(this,H),this.options);if(L(this,zn,x(this,H).state),L(this,wr,this.options),x(this,zn).data!==void 0&&L(this,Er,x(this,H)),$a(n,t))return;L(this,ze,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,o=typeof i=="function"?i():i;if(o==="all"||!o&&!x(this,Or).size)return!0;const s=new Set(o??x(this,Or));return this.options.throwOnError&&s.add("error"),Object.keys(x(this,ze)).some(a=>{const l=a;return x(this,ze)[l]!==t[l]&&s.has(l)})};G(this,ee,zm).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&G(this,ee,Cl).call(this)}},Ge=new WeakMap,H=new WeakMap,vi=new WeakMap,ze=new WeakMap,zn=new WeakMap,wr=new WeakMap,Dt=new WeakMap,ln=new WeakMap,bi=new WeakMap,kr=new WeakMap,Er=new WeakMap,Dn=new WeakMap,Mn=new WeakMap,cn=new WeakMap,Or=new WeakMap,ee=new WeakSet,xi=function(t){G(this,ee,El).call(this);let n=x(this,H).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(We)),n},yl=function(){G(this,ee,wl).call(this);const t=Qt(this.options.staleTime,x(this,H));if(In||x(this,ze).isStale||!Ma(t))return;const r=qh(x(this,ze).dataUpdatedAt,t)+1;L(this,Dn,setTimeout(()=>{x(this,ze).isStale||this.updateResult()},r))},xl=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(x(this,H)):this.options.refetchInterval)??!1},Sl=function(t){G(this,ee,kl).call(this),L(this,cn,t),!(In||st(this.options.enabled,x(this,H))===!1||!Ma(x(this,cn))||x(this,cn)===0)&&L(this,Mn,setInterval(()=>{(this.options.refetchIntervalInBackground||Ua.isFocused())&&G(this,ee,xi).call(this)},x(this,cn)))},Cl=function(){G(this,ee,yl).call(this),G(this,ee,Sl).call(this,G(this,ee,xl).call(this))},wl=function(){x(this,Dn)&&(clearTimeout(x(this,Dn)),L(this,Dn,void 0))},kl=function(){x(this,Mn)&&(clearInterval(x(this,Mn)),L(this,Mn,void 0))},El=function(){const t=x(this,Ge).getQueryCache().build(x(this,Ge),this.options);if(t===x(this,H))return;const n=x(this,H);L(this,H,t),L(this,vi,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},zm=function(t){Te.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(x(this,ze))}),x(this,Ge).getQueryCache().notify({query:x(this,H),type:"observerResultsUpdated"})})},Zp);function aI(e,t){return st(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function af(e,t){return aI(e,t)||e.state.data!==void 0&&Ka(e,t,t.refetchOnMount)}function Ka(e,t,n){if(st(t.enabled,e)!==!1&&Qt(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Xa(e,t)}return!1}function lf(e,t,n,r){return(e!==t||st(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Xa(e,n)}function Xa(e,t){return st(t.enabled,e)!==!1&&e.isStaleByTime(Qt(t.staleTime,e))}function lI(e,t){return!$a(e.getCurrentResult(),t)}var cf=w.createContext(void 0),cI=e=>{const t=w.useContext(cf);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},uI=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),C.jsx(cf.Provider,{value:e,children:t})),uf=w.createContext(!1),dI=()=>w.useContext(uf);uf.Provider;function hI(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var fI=w.createContext(hI()),gI=()=>w.useContext(fI),pI=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},mI=e=>{w.useEffect(()=>{e.clearReset()},[e])},vI=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||GO(n,[e.error,r])),bI=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},yI=(e,t)=>e.isLoading&&e.isFetching&&!t,xI=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,df=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function SI(e,t,n){var d,h,m,f,g;const r=dI(),i=gI(),o=cI(),s=o.defaultQueryOptions(e);(h=(d=o.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||h.call(d,s),s._optimisticResults=r?"isRestoring":"optimistic",bI(s),pI(s,i),mI(i);const a=!o.getQueryCache().get(s.queryHash),[l]=w.useState(()=>new t(o,s)),u=l.getOptimisticResult(s),c=!r&&e.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(p=>{const v=c?l.subscribe(Te.batchCalls(p)):We;return l.updateResult(),v},[l,c]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),w.useEffect(()=>{l.setOptions(s)},[s,l]),xI(s,u))throw df(s,l,i);if(vI({result:u,errorResetBoundary:i,throwOnError:s.throwOnError,query:o.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw u.error;if((f=(m=o.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||f.call(m,s,u),s.experimental_prefetchInRender&&!In&&yI(u,r)){const p=a?df(s,l,i):(g=o.getQueryCache().get(s.queryHash))==null?void 0:g.promise;p==null||p.catch(We).finally(()=>{l.updateResult()})}return s.notifyOnChangeProps?u:l.trackResult(u)}function hf(e,t){return SI(e,sI)}function ff(e,t){return function(){return e.apply(t,arguments)}}const{toString:CI}=Object.prototype,{getPrototypeOf:Ya}=Object,{iterator:Lo,toStringTag:gf}=Symbol,Fo=(e=>t=>{const n=CI.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),gt=e=>(e=e.toLowerCase(),t=>Fo(t)===e),zo=e=>t=>typeof t===e,{isArray:ur}=Array,oi=zo("undefined");function si(e){return e!==null&&!oi(e)&&e.constructor!==null&&!oi(e.constructor)&&He(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const pf=gt("ArrayBuffer");function wI(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&pf(e.buffer),t}const kI=zo("string"),He=zo("function"),mf=zo("number"),ai=e=>e!==null&&typeof e=="object",EI=e=>e===!0||e===!1,Do=e=>{if(Fo(e)!=="object")return!1;const t=Ya(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(gf in e)&&!(Lo in e)},OI=e=>{if(!ai(e)||si(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},II=gt("Date"),RI=gt("File"),PI=gt("Blob"),TI=gt("FileList"),NI=e=>ai(e)&&He(e.pipe),_I=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||He(e.append)&&((t=Fo(e))==="formdata"||t==="object"&&He(e.toString)&&e.toString()==="[object FormData]"))},AI=gt("URLSearchParams"),[VI,LI,FI,zI]=["ReadableStream","Request","Response","Headers"].map(gt),DI=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function li(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),ur(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Rn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:globalThis,bf=e=>!oi(e)&&e!==Rn;function Qa(){const{caseless:e}=bf(this)&&this||{},t={},n=(r,i)=>{const o=e&&vf(t,i)||i;Do(t[o])&&Do(r)?t[o]=Qa(t[o],r):Do(r)?t[o]=Qa({},r):ur(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(li(t,(i,o)=>{n&&He(i)?e[o]=ff(i,n):e[o]=i},{allOwnKeys:r}),e),BI=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$I=(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)},jI=(e,t,n,r)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Ya(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},WI=(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},HI=e=>{if(!e)return null;if(ur(e))return e;let t=e.length;if(!mf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},UI=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ya(Uint8Array)),GI=(e,t)=>{const r=(e&&e[Lo]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},qI=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},KI=gt("HTMLFormElement"),XI=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),yf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),YI=gt("RegExp"),xf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};li(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(r[o]=s||i)}),Object.defineProperties(e,r)},QI=e=>{xf(e,(t,n)=>{if(He(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(He(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+"'")})}})},JI=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return ur(e)?r(e):r(String(e).split(t)),n},ZI=()=>{},eR=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function tR(e){return!!(e&&He(e.append)&&e[gf]==="FormData"&&e[Lo])}const nR=e=>{const t=new Array(10),n=(r,i)=>{if(ai(r)){if(t.indexOf(r)>=0)return;if(si(r))return r;if(!("toJSON"in r)){t[i]=r;const o=ur(r)?[]:{};return li(r,(s,a)=>{const l=n(s,i+1);!oi(l)&&(o[a]=l)}),t[i]=void 0,o}}return r};return n(e,0)},rR=gt("AsyncFunction"),iR=e=>e&&(ai(e)||He(e))&&He(e.then)&&He(e.catch),Sf=((e,t)=>e?setImmediate:t?((n,r)=>(Rn.addEventListener("message",({source:i,data:o})=>{i===Rn&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Rn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",He(Rn.postMessage)),oR=typeof queueMicrotask<"u"?queueMicrotask.bind(Rn):typeof process<"u"&&process.nextTick||Sf,k={isArray:ur,isArrayBuffer:pf,isBuffer:si,isFormData:_I,isArrayBufferView:wI,isString:kI,isNumber:mf,isBoolean:EI,isObject:ai,isPlainObject:Do,isEmptyObject:OI,isReadableStream:VI,isRequest:LI,isResponse:FI,isHeaders:zI,isUndefined:oi,isDate:II,isFile:RI,isBlob:PI,isRegExp:YI,isFunction:He,isStream:NI,isURLSearchParams:AI,isTypedArray:UI,isFileList:TI,forEach:li,merge:Qa,extend:MI,trim:DI,stripBOM:BI,inherits:$I,toFlatObject:jI,kindOf:Fo,kindOfTest:gt,endsWith:WI,toArray:HI,forEachEntry:GI,matchAll:qI,isHTMLForm:KI,hasOwnProperty:yf,hasOwnProp:yf,reduceDescriptors:xf,freezeMethods:QI,toObjectSet:JI,toCamelCase:XI,noop:ZI,toFiniteNumber:eR,findKey:vf,global:Rn,isContextDefined:bf,isSpecCompliantForm:tR,toJSONObject:nR,isAsyncFn:rR,isThenable:iR,setImmediate:Sf,asap:oR,isIterable:e=>e!=null&&He(e[Lo])};function W(e,t,n,r,i){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),i&&(this.response=i,this.status=i.status?i.status:null)}k.inherits(W,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:k.toJSONObject(this.config),code:this.code,status:this.status}}});const Cf=W.prototype,wf={};["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=>{wf[e]={value:e}}),Object.defineProperties(W,wf),Object.defineProperty(Cf,"isAxiosError",{value:!0}),W.from=(e,t,n,r,i,o)=>{const s=Object.create(Cf);return k.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),W.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const sR=null;function Ja(e){return k.isPlainObject(e)||k.isArray(e)}function kf(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function Ef(e,t,n){return e?e.concat(t).map(function(i,o){return i=kf(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function aR(e){return k.isArray(e)&&!e.some(Ja)}const lR=k.toFlatObject(k,{},null,function(t){return/^is[A-Z]/.test(t)});function Mo(e,t,n){if(!k.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=k.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,p){return!k.isUndefined(p[g])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(t);if(!k.isFunction(i))throw new TypeError("visitor must be a function");function u(f){if(f===null)return"";if(k.isDate(f))return f.toISOString();if(k.isBoolean(f))return f.toString();if(!l&&k.isBlob(f))throw new W("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(f)||k.isTypedArray(f)?l&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function c(f,g,p){let v=f;if(f&&!p&&typeof f=="object"){if(k.endsWith(g,"{}"))g=r?g:g.slice(0,-2),f=JSON.stringify(f);else if(k.isArray(f)&&aR(f)||(k.isFileList(f)||k.endsWith(g,"[]"))&&(v=k.toArray(f)))return g=kf(g),v.forEach(function(S,y){!(k.isUndefined(S)||S===null)&&t.append(s===!0?Ef([g],y,o):s===null?g:g+"[]",u(S))}),!1}return Ja(f)?!0:(t.append(Ef(p,g,o),u(f)),!1)}const d=[],h=Object.assign(lR,{defaultVisitor:c,convertValue:u,isVisitable:Ja});function m(f,g){if(!k.isUndefined(f)){if(d.indexOf(f)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(f),k.forEach(f,function(v,b){(!(k.isUndefined(v)||v===null)&&i.call(t,v,k.isString(b)?b.trim():b,g,h))===!0&&m(v,g?g.concat(b):[b])}),d.pop()}}if(!k.isObject(e))throw new TypeError("data must be an object");return m(e),t}function Of(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Za(e,t){this._pairs=[],e&&Mo(e,this,t)}const If=Za.prototype;If.append=function(t,n){this._pairs.push([t,n])},If.toString=function(t){const n=t?function(r){return t.call(this,r,Of)}:Of;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function cR(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Rf(e,t,n){if(!t)return e;const r=n&&n.encode||cR;k.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=k.isURLSearchParams(t)?t.toString():new Za(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Pf{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){k.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Tf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},uR={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Za,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},el=typeof window<"u"&&typeof document<"u",tl=typeof navigator=="object"&&navigator||void 0,dR=el&&(!tl||["ReactNative","NativeScript","NS"].indexOf(tl.product)<0),hR=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fR=el&&window.location.href||"http://localhost",Le={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:el,hasStandardBrowserEnv:dR,hasStandardBrowserWebWorkerEnv:hR,navigator:tl,origin:fR},Symbol.toStringTag,{value:"Module"})),...uR};function gR(e,t){return Mo(e,new Le.classes.URLSearchParams,{visitor:function(n,r,i,o){return Le.isNode&&k.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function pR(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function mR(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return s=!s&&k.isArray(i)?i.length:s,l?(k.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!k.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&k.isArray(i[s])&&(i[s]=mR(i[s])),!a)}if(k.isFormData(e)&&k.isFunction(e.entries)){const n={};return k.forEachEntry(e,(r,i)=>{t(pR(r),i,n,0)}),n}return null}function vR(e,t,n){if(k.isString(e))try{return(t||JSON.parse)(e),k.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ci={transitional:Tf,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=k.isObject(t);if(o&&k.isHTMLForm(t)&&(t=new FormData(t)),k.isFormData(t))return i?JSON.stringify(Nf(t)):t;if(k.isArrayBuffer(t)||k.isBuffer(t)||k.isStream(t)||k.isFile(t)||k.isBlob(t)||k.isReadableStream(t))return t;if(k.isArrayBufferView(t))return t.buffer;if(k.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return gR(t,this.formSerializer).toString();if((a=k.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Mo(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),vR(t)):t}],transformResponse:[function(t){const n=this.transitional||ci.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(k.isResponse(t)||k.isReadableStream(t))return t;if(t&&k.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?W.from(a,W.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:Le.classes.FormData,Blob:Le.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],e=>{ci.headers[e]={}});const bR=k.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"]),yR=e=>{const t={};let n,r,i;return e&&e.split(` -`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&bR[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},_f=Symbol("internals");function ui(e){return e&&String(e).trim().toLowerCase()}function Bo(e){return e===!1||e==null?e:k.isArray(e)?e.map(Bo):String(e)}function xR(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 SR=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function nl(e,t,n,r,i){if(k.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!k.isString(t)){if(k.isString(r))return t.indexOf(r)!==-1;if(k.isRegExp(r))return r.test(t)}}function CR(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function wR(e,t){const n=k.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}let Ue=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(a,l,u){const c=ui(l);if(!c)throw new Error("header name must be a non-empty string");const d=k.findKey(i,c);(!d||i[d]===void 0||u===!0||u===void 0&&i[d]!==!1)&&(i[d||l]=Bo(a))}const s=(a,l)=>k.forEach(a,(u,c)=>o(u,c,l));if(k.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(k.isString(t)&&(t=t.trim())&&!SR(t))s(yR(t),n);else if(k.isObject(t)&&k.isIterable(t)){let a={},l,u;for(const c of t){if(!k.isArray(c))throw TypeError("Object iterator must return a key-value pair");a[u=c[0]]=(l=a[u])?k.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}s(a,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=ui(t),t){const r=k.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return xR(i);if(k.isFunction(n))return n.call(this,i,r);if(k.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ui(t),t){const r=k.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||nl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(s){if(s=ui(s),s){const a=k.findKey(r,s);a&&(!n||nl(r,r[a],a,n))&&(delete r[a],i=!0)}}return k.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||nl(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return k.forEach(this,(i,o)=>{const s=k.findKey(r,o);if(s){n[s]=Bo(i),delete n[o];return}const a=t?CR(o):String(o).trim();a!==o&&delete n[o],n[a]=Bo(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return k.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&k.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(` -`)}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(i=>r.set(i)),r}static accessor(t){const r=(this[_f]=this[_f]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=ui(s);r[a]||(wR(i,s),r[a]=!0)}return k.isArray(t)?t.forEach(o):o(t),this}};Ue.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),k.reduceDescriptors(Ue.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),k.freezeMethods(Ue);function rl(e,t){const n=this||ci,r=t||n,i=Ue.from(r.headers);let o=r.data;return k.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Af(e){return!!(e&&e.__CANCEL__)}function dr(e,t,n){W.call(this,e??"canceled",W.ERR_CANCELED,t,n),this.name="CanceledError"}k.inherits(dr,W,{__CANCEL__:!0});function Vf(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new W("Request failed with status code "+n.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function kR(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ER(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[o];s||(s=u),n[i]=l,r[i]=u;let d=o,h=0;for(;d!==i;)h+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-s{n=c,i=null,o&&(clearTimeout(o),o=null),e(...u)};return[(...u)=>{const c=Date.now(),d=c-n;d>=r?s(u,c):(i=u,o||(o=setTimeout(()=>{o=null,s(i)},r-d)))},()=>i&&s(i)]}const $o=(e,t,n=3)=>{let r=0;const i=ER(50,250);return OR(o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,l=s-r,u=i(l),c=s<=a;r=s;const d={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a&&c?(a-s)/u:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},Lf=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ff=e=>(...t)=>k.asap(()=>e(...t)),IR=Le.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Le.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Le.origin),Le.navigator&&/(msie|trident)/i.test(Le.navigator.userAgent)):()=>!0,RR=Le.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const s=[e+"="+encodeURIComponent(t)];k.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),k.isString(r)&&s.push("path="+r),k.isString(i)&&s.push("domain="+i),o===!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 PR(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function TR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function zf(e,t,n){let r=!PR(t);return e&&(r||n==!1)?TR(e,t):t}const Df=e=>e instanceof Ue?{...e}:e;function Pn(e,t){t=t||{};const n={};function r(u,c,d,h){return k.isPlainObject(u)&&k.isPlainObject(c)?k.merge.call({caseless:h},u,c):k.isPlainObject(c)?k.merge({},c):k.isArray(c)?c.slice():c}function i(u,c,d,h){if(k.isUndefined(c)){if(!k.isUndefined(u))return r(void 0,u,d,h)}else return r(u,c,d,h)}function o(u,c){if(!k.isUndefined(c))return r(void 0,c)}function s(u,c){if(k.isUndefined(c)){if(!k.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:o,method:o,data:o,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:(u,c,d)=>i(Df(u),Df(c),d,!0)};return k.forEach(Object.keys({...e,...t}),function(c){const d=l[c]||i,h=d(e[c],t[c],c);k.isUndefined(h)&&d!==a||(n[c]=h)}),n}const Mf=e=>{const t=Pn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=t;t.headers=s=Ue.from(s),t.url=Rf(zf(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(k.isFormData(n)){if(Le.hasStandardBrowserEnv||Le.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[u,...c]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...c].join("; "))}}if(Le.hasStandardBrowserEnv&&(r&&k.isFunction(r)&&(r=r(t)),r||r!==!1&&IR(t.url))){const u=i&&o&&RR.read(o);u&&s.set(i,u)}return t},NR=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const i=Mf(e);let o=i.data;const s=Ue.from(i.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:u}=i,c,d,h,m,f;function g(){m&&m(),f&&f(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let p=new XMLHttpRequest;p.open(i.method.toUpperCase(),i.url,!0),p.timeout=i.timeout;function v(){if(!p)return;const S=Ue.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),E={data:!a||a==="text"||a==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:S,config:e,request:p};Vf(function(N){n(N),g()},function(N){r(N),g()},E),p=null}"onloadend"in p?p.onloadend=v:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(v)},p.onabort=function(){p&&(r(new W("Request aborted",W.ECONNABORTED,e,p)),p=null)},p.onerror=function(){r(new W("Network Error",W.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let y=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const E=i.transitional||Tf;i.timeoutErrorMessage&&(y=i.timeoutErrorMessage),r(new W(y,E.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,p)),p=null},o===void 0&&s.setContentType(null),"setRequestHeader"in p&&k.forEach(s.toJSON(),function(y,E){p.setRequestHeader(E,y)}),k.isUndefined(i.withCredentials)||(p.withCredentials=!!i.withCredentials),a&&a!=="json"&&(p.responseType=i.responseType),u&&([h,f]=$o(u,!0),p.addEventListener("progress",h)),l&&p.upload&&([d,m]=$o(l),p.upload.addEventListener("progress",d),p.upload.addEventListener("loadend",m)),(i.cancelToken||i.signal)&&(c=S=>{p&&(r(!S||S.type?new dr(null,e,p):S),p.abort(),p=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const b=kR(i.url);if(b&&Le.protocols.indexOf(b)===-1){r(new W("Unsupported protocol "+b+":",W.ERR_BAD_REQUEST,e));return}p.send(o||null)})},_R=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(u){if(!i){i=!0,a();const c=u instanceof Error?u:this.reason;r.abort(c instanceof W?c:new dr(c instanceof Error?c.message:c))}};let s=t&&setTimeout(()=>{s=null,o(new W(`timeout ${t} of ms exceeded`,W.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>k.asap(a),l}},AR=function*(e,t){let n=e.byteLength;if(n{const i=VR(e,t);let o=0,s,a=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await i.next();if(u){a(),l.close();return}let d=c.byteLength;if(n){let h=o+=d;n(h)}l.enqueue(new Uint8Array(c))}catch(u){throw a(u),u}},cancel(l){return a(l),i.return()}},{highWaterMark:2})},jo=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",$f=jo&&typeof ReadableStream=="function",FR=jo&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),jf=(e,...t)=>{try{return!!e(...t)}catch{return!1}},zR=$f&&jf(()=>{let e=!1;const t=new Request(Le.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Wf=64*1024,il=$f&&jf(()=>k.isReadableStream(new Response("").body)),Wo={stream:il&&(e=>e.body)};jo&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Wo[t]&&(Wo[t]=k.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new W(`Response type '${t}' is not supported`,W.ERR_NOT_SUPPORT,r)})})})(new Response);const DR=async e=>{if(e==null)return 0;if(k.isBlob(e))return e.size;if(k.isSpecCompliantForm(e))return(await new Request(Le.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(k.isArrayBufferView(e)||k.isArrayBuffer(e))return e.byteLength;if(k.isURLSearchParams(e)&&(e=e+""),k.isString(e))return(await FR(e)).byteLength},MR=async(e,t)=>{const n=k.toFiniteNumber(e.getContentLength());return n??DR(t)},ol={http:sR,xhr:NR,fetch:jo&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:u,headers:c,withCredentials:d="same-origin",fetchOptions:h}=Mf(e);u=u?(u+"").toLowerCase():"text";let m=_R([i,o&&o.toAbortSignal()],s),f;const g=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let p;try{if(l&&zR&&n!=="get"&&n!=="head"&&(p=await MR(c,r))!==0){let E=new Request(t,{method:"POST",body:r,duplex:"half"}),P;if(k.isFormData(r)&&(P=E.headers.get("content-type"))&&c.setContentType(P),E.body){const[N,O]=Lf(p,$o(Ff(l)));r=Bf(E.body,Wf,N,O)}}k.isString(d)||(d=d?"include":"omit");const v="credentials"in Request.prototype;f=new Request(t,{...h,signal:m,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:v?d:void 0});let b=await fetch(f,h);const S=il&&(u==="stream"||u==="response");if(il&&(a||S&&g)){const E={};["status","statusText","headers"].forEach(I=>{E[I]=b[I]});const P=k.toFiniteNumber(b.headers.get("content-length")),[N,O]=a&&Lf(P,$o(Ff(a),!0))||[];b=new Response(Bf(b.body,Wf,N,()=>{O&&O(),g&&g()}),E)}u=u||"text";let y=await Wo[k.findKey(Wo,u)||"text"](b,e);return!S&&g&&g(),await new Promise((E,P)=>{Vf(E,P,{data:y,headers:Ue.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:f})})}catch(v){throw g&&g(),v&&v.name==="TypeError"&&/Load failed|fetch/i.test(v.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,e,f),{cause:v.cause||v}):W.from(v,v&&v.code,e,f)}})};k.forEach(ol,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Hf=e=>`- ${e}`,BR=e=>k.isFunction(e)||e===null||e===!1,Uf={getAdapter:e=>{e=k.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since : -`+o.map(Hf).join(` -`):" "+Hf(o[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:ol};function sl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new dr(null,e)}function Gf(e){return sl(e),e.headers=Ue.from(e.headers),e.data=rl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Uf.getAdapter(e.adapter||ci.adapter)(e).then(function(r){return sl(e),r.data=rl.call(e,e.transformResponse,r),r.headers=Ue.from(r.headers),r},function(r){return Af(r)||(sl(e),r&&r.response&&(r.response.data=rl.call(e,e.transformResponse,r.response),r.response.headers=Ue.from(r.response.headers))),Promise.reject(r)})}const qf="1.11.0",Ho={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ho[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Kf={};Ho.transitional=function(t,n,r){function i(o,s){return"[Axios v"+qf+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(t===!1)throw new W(i(s," has been removed"+(n?" in "+n:"")),W.ERR_DEPRECATED);return n&&!Kf[s]&&(Kf[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,a):!0}},Ho.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function $R(e,t,n){if(typeof e!="object")throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const a=e[o],l=a===void 0||s(a,o,e);if(l!==!0)throw new W("option "+o+" must be "+l,W.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new W("Unknown option "+o,W.ERR_BAD_OPTION)}}const Uo={assertOptions:$R,validators:Ho},It=Uo.validators;let Tn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Pf,response:new Pf}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+o):r.stack=o}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:i,headers:o}=n;r!==void 0&&Uo.assertOptions(r,{silentJSONParsing:It.transitional(It.boolean),forcedJSONParsing:It.transitional(It.boolean),clarifyTimeoutError:It.transitional(It.boolean)},!1),i!=null&&(k.isFunction(i)?n.paramsSerializer={serialize:i}:Uo.assertOptions(i,{encode:It.function,serialize:It.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Uo.assertOptions(n,{baseUrl:It.spelling("baseURL"),withXsrfToken:It.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&k.merge(o.common,o[n.method]);o&&k.forEach(["delete","get","head","post","put","patch","common"],f=>{delete o[f]}),n.headers=Ue.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,d=0,h;if(!l){const f=[Gf.bind(this),void 0];for(f.unshift(...a),f.push(...u),h=f.length,c=Promise.resolve(n);d{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,a){r.reason||(r.reason=new dr(o,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 Dm(function(i){t=i}),cancel:t}}};function WR(e){return function(n){return e.apply(null,n)}}function HR(e){return k.isObject(e)&&e.isAxiosError===!0}const al={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(al).forEach(([e,t])=>{al[t]=e});function Xf(e){const t=new Tn(e),n=ff(Tn.prototype.request,t);return k.extend(n,Tn.prototype,t,{allOwnKeys:!0}),k.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Xf(Pn(e,i))},n}const ce=Xf(ci);ce.Axios=Tn,ce.CanceledError=dr,ce.CancelToken=jR,ce.isCancel=Af,ce.VERSION=qf,ce.toFormData=Mo,ce.AxiosError=W,ce.Cancel=ce.CanceledError,ce.all=function(t){return Promise.all(t)},ce.spread=WR,ce.isAxiosError=HR,ce.mergeConfig=Pn,ce.AxiosHeaders=Ue,ce.formToJSON=e=>Nf(k.isHTMLForm(e)?new FormData(e):e),ce.getAdapter=Uf.getAdapter,ce.HttpStatusCode=al,ce.default=ce;const{Axios:LT,AxiosError:FT,CanceledError:zT,isCancel:DT,CancelToken:MT,VERSION:BT,all:$T,Cancel:jT,isAxiosError:WT,spread:HT,toFormData:UT,AxiosHeaders:GT,HttpStatusCode:qT,formToJSON:KT,getAdapter:XT,mergeConfig:YT}=ce;var Go=["light","dark"],ll="(prefers-color-scheme: dark)",UR=typeof window>"u",Yf=w.createContext(void 0),GR=e=>w.useContext(Yf)?e.children:w.createElement(KR,{...e}),qR=["light","dark"],KR=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:i="theme",themes:o=qR,defaultTheme:s=n?"system":"light",attribute:a="data-theme",value:l,children:u,nonce:c})=>{let[d,h]=w.useState(()=>Qf(i,s)),[m,f]=w.useState(()=>Qf(i)),g=l?Object.values(l):o,p=w.useCallback(y=>{let E=y;if(!E)return;y==="system"&&n&&(E=Jf());let P=l?l[E]:E,N=t?YR():null,O=document.documentElement;if(a==="class"?(O.classList.remove(...g),P&&O.classList.add(P)):P?O.setAttribute(a,P):O.removeAttribute(a),r){let I=Go.includes(s)?s:null,R=Go.includes(E)?E:I;O.style.colorScheme=R}N==null||N()},[]),v=w.useCallback(y=>{let E=typeof y=="function"?y(y):y;h(E);try{localStorage.setItem(i,E)}catch{}},[e]),b=w.useCallback(y=>{let E=Jf(y);f(E),d==="system"&&n&&!e&&p("system")},[d,e]);w.useEffect(()=>{let y=window.matchMedia(ll);return y.addListener(b),b(y),()=>y.removeListener(b)},[b]),w.useEffect(()=>{let y=E=>{if(E.key!==i)return;let P=E.newValue||s;v(P)};return window.addEventListener("storage",y),()=>window.removeEventListener("storage",y)},[v]),w.useEffect(()=>{p(e??d)},[e,d]);let S=w.useMemo(()=>({theme:d,setTheme:v,forcedTheme:e,resolvedTheme:d==="system"?m:d,themes:n?[...o,"system"]:o,systemTheme:n?m:void 0}),[d,v,e,m,n,o]);return w.createElement(Yf.Provider,{value:S},w.createElement(XR,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:r,storageKey:i,themes:o,defaultTheme:s,attribute:a,value:l,children:u,attrs:g,nonce:c}),u)},XR=w.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:o,value:s,attrs:a,nonce:l})=>{let u=o==="system",c=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(f=>`'${f}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=i?Go.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(f,g=!1,p=!0)=>{let v=s?s[f]:f,b=g?f+"|| ''":`'${v}'`,S="";return i&&p&&!g&&Go.includes(f)&&(S+=`d.style.colorScheme = '${f}';`),n==="class"?g||v?S+=`c.add(${b})`:S+="null":v&&(S+=`d[s](n,${b})`),S},m=e?`!function(){${c}${h(e)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${ll}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${h(s?"x[e]":"e",!0)}}${u?"":"else{"+h(o,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${h(s?"x[e]":"e",!0)}}else{${h(o,!1,!1)};}${d}}catch(t){}}();`;return w.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:m}})}),Qf=(e,t)=>{if(UR)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},YR=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},Jf=e=>(e||(e=window.matchMedia(ll)),e.matches?"dark":"light");const QR=e=>C.jsx(GR,{attribute:"class",disableTransitionOnChange:!0,...e});/** +)+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),Dw=mh("width"),Mw=mh("height"),vh=e=>({isMin:wh(e.minMax,e.maxMin,e.min),isMax:wh(e.maxMin,e.minMax,e.max)}),{isMin:Ga,isMax:bh}=vh(Dw),{isMin:qa,isMax:yh}=vh(Mw),xh=/print/i,Ch=/^print$/i,$w=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,Bw=/(\d)/,di=Number.MAX_VALUE,jw={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function Sh(e){const t=$w.exec(e)||(Ga(e)||qa(e)?Bw.exec(e):null);if(!t)return di;if(t[0]==="0")return 0;const n=parseFloat(t[1]),r=t[2];return n*(jw[r]||1)}function wh(e,t,n){return r=>e.test(r)||!t.test(r)&&n.test(r)}function Ww(e,t){const n=xh.test(e),r=Ch.test(e),i=xh.test(t),o=Ch.test(t);return n&&i?!r&&o?1:r&&!o?-1:e.localeCompare(t):n?1:i?-1:null}const Hw=gt((e,t)=>{const n=Ww(e,t);if(n!==null)return n;const r=Ga(e)||qa(e),i=bh(e)||yh(e),o=Ga(t)||qa(t),s=bh(t)||yh(t);if(r&&s)return-1;if(i&&o)return 1;const a=Sh(e),l=Sh(t);return a===di&&l===di?e.localeCompare(t):a===di?1:l===di?-1:a!==l?a>l?i?-1:1:i?1:-1:e.localeCompare(t)});function kh(e){return e.sort(([t],[n])=>Hw(t,n))}function Eh(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]):$e(a)?r[s]=Eh(a):r[s]=a;const i=kh(t),o=kh(n);return{...r,...Object.fromEntries(i),...Object.fromEntries(o)}}const Oh=/\s*!(important)?/i,Uw=e=>Ct(e)?Oh.test(e):!1,Gw=e=>Ct(e)?e.replace(Oh,"").trim():e;function Ih(e){const{transform:t,conditions:n,normalize:r}=e,i=Xw(e);return gt(function(...s){const a=i(...s),l=r(a),c=Object.create(null);return Rt(l,(u,d)=>{const h=Uw(u);if(u==null)return;const[m,...f]=n.sort(d).map(n.resolve);h&&(u=Gw(u));let g=t(m,u)??Object.create(null);g=Rt(g,p=>Ct(p)&&h?`${p} !important`:p,{getKey:p=>n.expandAtRule(p)}),qw(c,f.flat(),g)}),Eh(c)})}function qw(e,t,n){let r=e;for(const i of t)i&&(r[i]||(r[i]=Object.create(null)),r=r[i]);fr(r,n)}function Kw(...e){return e.filter(t=>$e(t)&&Object.keys(Hr(t)).length>0)}function Xw(e){function t(n){const r=Kw(...n);return r.length===1?r:r.map(i=>e.normalize(i))}return gt(function(...r){return fr({},...t(r))})}const Rh=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function Yw(e){const{css:t,conditions:n,normalize:r,layers:i}=e;function o(a={}){const{base:l,variants:c,defaultVariants:u,compoundVariants:d}=Rh(a),h=Ih({conditions:n,normalize:r,transform(y,C){var x;return(x=c[y])==null?void 0:x[C]}}),m=(y={})=>{const C=r({...u,...Hr(y)});let x={...l};fr(x,h(C));const E=s(d,C);return i.wrap("recipes",t(x,E))},f=Object.keys(c),g=y=>{const C=eh(y,["recipe"]),[x,E]=er(C,f);return f.includes("colorPalette")||(x.colorPalette=y.colorPalette||u.colorPalette),f.includes("orientation")&&(E.orientation=y.orientation),[x,E]},p=Object.fromEntries(Object.entries(c).map(([y,C])=>[y,Object.keys(C)]));return Object.assign(y=>t(m(y)),{className:a.className,__cva__:!0,variantMap:p,variantKeys:f,raw:m,config:a,splitVariantProps:g,merge(y){return o(Qw(e)(this,y))}})}function s(a,l){let c={};return a.forEach(u=>{Object.entries(u).every(([h,m])=>h==="css"?!0:(Array.isArray(m)?m:[m]).some(g=>l[h]===g))&&(c=t(c,u.css))}),c}return o}function Qw(e){const{css:t}=e;return function(r,i){const o=Rh(i.config),s=mc(r.variantKeys,Object.keys(i.variants)),a=t(r.base,o.base),l=Object.fromEntries(s.map(h=>[h,t(r.config.variants[h],o.variants[h])])),c=fr(r.config.defaultVariants,o.defaultVariants),u=[...r.compoundVariants,...o.compoundVariants];return{className:tt(r.className,i.className),base:a,variants:l,defaultVariants:c,compoundVariants:u}}}const Jw={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},Ph={reset:0,base:1,tokens:2,recipes:3};function Zw(e){const t=e.layers??Jw,r=Object.values(t).sort((i,o)=>Ph[i]-Ph[o]);return{names:r,atRule:`@layer ${r.join(", ")};`,wrap(i,o){return e.disableLayers?o:{[`@layer ${t[i]}`]:o}}}}function ek(e){const{utility:t,normalize:n}=e,{hasShorthand:r,resolveShorthand:i}=t;return function(o){return Rt(o,n,{stop:s=>Array.isArray(s),getKey:r?i:void 0})}}function tk(e){const{preflight:t}=e;if(!t)return{};const{scope:n="",level:r="parent"}=$e(t)?t:{};let i="";n&&r==="parent"?i=`${n} `:n&&r==="element"&&(i=`&${n}`);const o={"*":{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(o).reduce((l,[c,u])=>(l[c]={[i]:u},l),{});Object.assign(s,a)}else i?s[i]=o:Object.assign(s,o);return s}function nk(e){const{conditions:t,isValidProperty:n}=e;return function(i){return Rt(i,o=>o,{getKey:(o,s)=>$e(s)&&!t.has(o)&&!n(o)?rk(o).map(a=>"&"+a).join(", "):o})}}function rk(e){const t=[];let n=0,r="",i=!1;for(let o=0;o{const t=i=>{var o;return{base:((o=e.base)==null?void 0:o[i])??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?ok(e.compoundVariants,i):[]}},r=(e.slots??[]).map(i=>[i,t(i)]);for(const[i,o]of Object.entries(e.variants??{}))for(const[s,a]of Object.entries(o))r.forEach(([l,c])=>{var u;(u=c.variants)[i]??(u[i]={}),c.variants[i][s]=a[l]??{}});return Object.fromEntries(r)},ok=(e,t)=>e.filter(n=>n.css[t]).map(n=>({...n,css:n.css[t]}));function sk(e){const{cva:t}=e;return function(r={}){const i=Object.entries(ik(r)).map(([d,h])=>[d,t(h)]);function o(d){const h=i.map(([m,f])=>[m,f(d)]);return Object.fromEntries(h)}const s=r.variants??{},a=Object.keys(s);function l(d){var g;const h=eh(d,["recipe"]),[m,f]=er(h,a);return a.includes("colorPalette")||(m.colorPalette=d.colorPalette||((g=r.defaultVariants)==null?void 0:g.colorPalette)),a.includes("orientation")&&(f.orientation=d.orientation),[m,f]}const c=Object.fromEntries(Object.entries(s).map(([d,h])=>[d,Object.keys(h)]));let u={};return r.className&&(u=Object.fromEntries(r.slots.map(d=>[d,`${r.className}__${d}`]))),Object.assign(o,{variantMap:c,variantKeys:a,splitVariantProps:l,classNameMap:u})}}const ak=()=>e=>Array.from(new Set(e)),lk=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,ck=function(e,t){return t?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},Th=e=>(e+"").replace(lk,ck),Nh=(e,t)=>{let n="",r=0,i="char",o="",s="";const a=[];for(;r{let t=0;const n=["("];for(;t{n instanceof Map?t[r]=Object.fromEntries(n):t[r]=n}),t}const Ah=/({([^}]*)})/g,dk=/[{}]/g,hk=/\w+\.\w+/,Vh=e=>{if(!Ct(e))return[];const t=e.match(Ah);return t?t.map(n=>n.replace(dk,"")).map(n=>n.trim()):[]},fk=e=>Ah.test(e);function Fh(e){var n,r,i;if(!((n=e.extensions)!=null&&n.references))return((i=(r=e.extensions)==null?void 0:r.cssVar)==null?void 0:i.ref)??e.value;const t=e.extensions.references??{};return e.value=Object.keys(t).reduce((o,s)=>{const a=t[s];if(a.extensions.conditions)return o;const l=Fh(a);return o.replace(`{${s}}`,l)},e.value),delete e.extensions.references,e.value}function Lh(e){return $e(e)&&e.reference?e.reference:String(e)}const Mo=(e,...t)=>t.map(Lh).join(` ${e} `).replace(/calc/g,""),zh=(...e)=>`calc(${Mo("+",...e)})`,Dh=(...e)=>`calc(${Mo("-",...e)})`,Ka=(...e)=>`calc(${Mo("*",...e)})`,Mh=(...e)=>`calc(${Mo("/",...e)})`,$h=e=>{const t=Lh(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Ka(t,-1)},br=Object.assign(e=>({add:(...t)=>br(zh(e,...t)),subtract:(...t)=>br(Dh(e,...t)),multiply:(...t)=>br(Ka(e,...t)),divide:(...t)=>br(Mh(e,...t)),negate:()=>br($h(e)),toString:()=>e.toString()}),{add:zh,subtract:Dh,multiply:Ka,divide:Mh,negate:$h}),gk={enforce:"pre",transform(e){const{prefix:t,allTokens:n,formatCssVar:r,formatTokenName:i,registerToken:o}=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=br.negate(c.ref);const d=u.path[u.path.length-1];d!=null&&(u.path[u.path.length-1]=`-${d}`),u.path&&(u.name=i(u.path)),o(u)})}},pk=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),mk=[gk,{enforce:"post",transform(e){const{allTokens:t,registerToken:n,formatTokenName:r}=e,i=t.filter(({extensions:a})=>a.category==="colors"),o=new Map,s=new Map;i.forEach(a=>{const{colorPalette:l}=a.extensions;l&&(l.keys.forEach(c=>{o.set(r(c),c)}),l.roots.forEach(c=>{var h;const u=r(c),d=s.get(u)||[];if(d.push(a),s.set(u,d),a.extensions.default&&c.length===1){const m=(h=l.keys[0])==null?void 0:h.filter(Boolean);if(!m.length)return;const f=c.concat(m);o.set(r(f),[])}}))}),o.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=>pk.has(n.extensions.category)&&!n.extensions.negative).forEach(n=>{Object.assign(n.extensions,{pixelValue:gh(n.value)})})}},{enforce:"post",transform(e){e.allTokens=e.allTokens.filter(t=>t.value!=="")}}],vk=[{type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:n,formatCssVar:r}=t,{negative:i,originalPath:o}=e.extensions,s=i?o: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,i=Vh(e.value);return i.length&&i.forEach(o=>{const s=r(o.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},[]),i=n[0],o=t.formatTokenName(n),s=e.path.slice(e.path.indexOf(i)+1).reduce((a,l,c,u)=>(a.push(u.slice(c)),a),[]);return s.length===0&&s.push([""]),{colorPalette:{value:o,roots:r,keys:s}}}}],Bh=e=>$e(e)&&Object.prototype.hasOwnProperty.call(e,"value");function bk(e){return e?{breakpoints:th(e,t=>({value:t})),sizes:Object.fromEntries(Object.entries(e).map(([t,n])=>[`breakpoint-${t}`,{value:n}]))}:{breakpoints:{},sizes:{}}}function yk(e){const{prefix:t="",tokens:n={},semanticTokens:r={},breakpoints:i={}}=e,o=V=>V.join("."),s=(V,A)=>ih(V.join("-"),{prefix:A}),a=[],l=new Map,c=new Map,u=new Map,d=new Map,h=new Map,m=new Map,f=new Map,g=new Map,p=[];function b(V,A){a.push(V),l.set(V.name,V),A&&g.forEach(q=>{q.enforce===A&&ae(q,V)})}const y=bk(i),C=Hr({...n,breakpoints:y.breakpoints,sizes:{...n.sizes,...y.sizes}});function x(){Rt(C,(V,A)=>{const q=A.includes("DEFAULT");A=jh(A);const se=A[0],ye=o(A),_e=Ct(V)?{value:V}:V,Wt={value:_e.value,originalValue:_e.value,name:ye,path:A,extensions:{condition:"base",originalPath:A,category:se,prop:o(A.slice(1))}};q&&(Wt.extensions.default=!0),b(Wt)},{stop:Bh}),Rt(r,(V,A)=>{const q=A.includes("DEFAULT");A=Wh(jh(A));const se=A[0],ye=o(A),_e=Ct(V.value)?{value:{base:V.value}}:V,Wt={value:_e.value.base||"",originalValue:_e.value.base||"",name:ye,path:A,extensions:{originalPath:A,category:se,conditions:_e.value,condition:"base",prop:o(A.slice(1))}};q&&(Wt.extensions.default=!0),b(Wt)},{stop:Bh})}function E(V){return l.get(V)}function P(V){const{condition:A}=V.extensions;A&&(c.has(A)||c.set(A,new Set),c.get(A).add(V))}function _(V){const{category:A,prop:q}=V.extensions;A&&(f.has(A)||f.set(A,new Map),f.get(A).set(q,V))}function O(V){const{condition:A,negative:q,virtual:se,cssVar:ye}=V.extensions;q||se||!A||!ye||(u.has(A)||u.set(A,new Map),u.get(A).set(ye.var,V.value))}function I(V){const{category:A,prop:q,cssVar:se,negative:ye}=V.extensions;if(!A)return;m.has(A)||m.set(A,new Map);const _e=ye?V.extensions.conditions?V.originalValue:V.value:se.ref;m.get(A).set(q,_e),h.set([A,q].join("."),_e)}function R(V){const{colorPalette:A,virtual:q,default:se}=V.extensions;!A||q||A.roots.forEach(ye=>{var sv;const _e=o(ye);d.has(_e)||d.set(_e,new Map);const Wt=Ck([...V.path],[...ye]),ps=o(Wt),zr=E(ps);if(!zr||!zr.extensions.cssVar)return;const{var:YT}=zr.extensions.cssVar;if(d.get(_e).set(YT,V.extensions.cssVar.ref),se&&ye.length===1){const QT=o(["colors","colorPalette"]),av=E(QT);if(!av)return;const JT=o(V.path),lv=E(JT);if(!lv)return;const cv=(sv=A.keys[0])==null?void 0:sv.filter(Boolean);if(!cv.length)return;const Al=o(ye.concat(cv));d.has(Al)||d.set(Al,new Map),d.get(Al).set(av.extensions.cssVar.var,lv.extensions.cssVar.ref)}})}let z={};function L(){a.forEach(V=>{P(V),_(V),O(V),I(V),R(V)}),z=_h(m)}const X=(V,A)=>{var zr;if(!V||typeof V!="string")return{invalid:!0,value:V};const[q,se]=V.split("/");if(!q||!se)return{invalid:!0,value:q};const ye=A(q),_e=(zr=E(`opacity.${se}`))==null?void 0:zr.value;if(!_e&&isNaN(Number(se)))return{invalid:!0,value:q};const Wt=_e?Number(_e)*100+"%":`${se}%`,ps=ye??q;return{invalid:!1,color:ps,value:`color-mix(in srgb, ${ps} ${Wt}, transparent)`}},Z=gt((V,A)=>h.get(V)??A),Ne=gt(V=>z[V]||null),G=gt(V=>Nh(V,A=>{if(!A)return;if(A.includes("/")){const se=X(A,ye=>Z(ye));if(se.invalid)throw new Error("Invalid color mix at "+A+": "+se.value);return se.value}const q=Z(A);return q||(hk.test(A)?Th(A):A)})),ie={prefix:t,allTokens:a,tokenMap:l,registerToken:b,getByName:E,formatTokenName:o,formatCssVar:s,flatMap:h,cssVarMap:u,categoryMap:f,colorPaletteMap:d,getVar:Z,getCategoryValues:Ne,expandReferenceInValue:G};function fe(...V){V.forEach(A=>{g.set(A.name,A)})}function j(...V){p.push(...V)}function ae(V,A){if(A.extensions.references||zs(V.match)&&!V.match(A))return;const se=(ye=>V.transform(ye,ie))(A);switch(!0){case V.type==="extensions":Object.assign(A.extensions,se);break;case V.type==="value":A.value=se;break;default:A[V.type]=se;break}}function ce(V){p.forEach(A=>{A.enforce===V&&A.transform(ie)})}function ct(V){g.forEach(A=>{A.enforce===V&&a.forEach(q=>{ae(A,q)})})}function mn(){a.forEach(V=>{const A=xk(V);!A||A.length===0||A.forEach(q=>{b(q)})})}function Ri(V){return Vh(V).map(q=>E(q)).filter(Boolean)}function Lr(){a.forEach(V=>{if(!fk(V.value))return;const A=Ri(V.value);V.extensions.references=A.reduce((q,se)=>(q[se.name]=se,q),{})})}function _l(){a.forEach(V=>{Fh(V)})}function XT(){ce("pre"),ct("pre"),mn(),Lr(),_l(),ce("post"),ct("post"),L()}return x(),fe(...vk),j(...mk),XT(),ie}function jh(e){return e[0]==="DEFAULT"?e:e.filter(t=>t!=="DEFAULT")}function Wh(e){return e.filter(t=>t!=="base")}function xk(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,n=[];return Rt(t,(r,i)=>{const o=Wh(i);if(!o.length)return;const s=structuredClone(e);s.value=r,s.extensions.condition=o.join(":"),n.push(s)}),n}function Ck(e,t){const n=e.findIndex((r,i)=>t.every((o,s)=>e[i+s]===o));return n===-1||(e.splice(n,t.length),e.splice(n,0,"colorPalette")),e}ak()(["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 fN(e){return e}function Sk(e){return Object.fromEntries(Object.entries(e).map(([t,n])=>[t,n]))}function wk(e){const t=Sk(e.config),n=e.tokens,r=new Map,i=new Map;function o(O,I){t[O]=I,s(O,I)}const s=(O,I)=>{const R=g(I);R&&(i.set(O,R),d(O,I))},a=()=>{for(const[O,I]of Object.entries(t))I&&s(O,I)},l=()=>{for(const[O,I]of Object.entries(t)){const{shorthand:R}=I??{};if(!R)continue;(Array.isArray(R)?R:[R]).forEach(L=>r.set(L,O))}},c=()=>{const O=_h(n.colorPaletteMap);o("colorPalette",{values:Object.keys(O),transform:gt(I=>O[I])})},u=new Map,d=(O,I)=>{if(!I)return;const R=g(I,L=>`type:Tokens["${L}"]`);if(typeof R=="object"&&R.type){u.set(O,new Set([`type:${R.type}`]));return}if(R){const L=new Set(Object.keys(R));u.set(O,L)}const z=u.get(O)??new Set;I.property&&u.set(O,z.add(`CssProperties["${I.property}"]`))},h=()=>{for(const[O,I]of Object.entries(t))I&&d(O,I)},m=(O,I)=>{const R=u.get(O)??new Set;u.set(O,new Set([...R,...I]))},f=()=>{const O=new Map;for(const[I,R]of u.entries()){if(R.size===0){O.set(I,["string"]);continue}const z=Array.from(R).map(L=>L.startsWith("CssProperties")?L:L.startsWith("type:")?L.replace("type:",""):JSON.stringify(L));O.set(I,z)}return O},g=(O,I)=>{const{values:R}=O,z=L=>{const X=I==null?void 0:I(L);return X?{[X]:X}:void 0};return Ct(R)?(z==null?void 0:z(R))??n.getCategoryValues(R)??{}:Array.isArray(R)?R.reduce((L,X)=>(L[X]=X,L),{}):zs(R)?R(I?z:n.getCategoryValues):R},p=gt((O,I)=>({[O]:O.startsWith("--")?n.getVar(I,I):I})),b=Object.assign(n.getVar,{raw:O=>n.getByName(O)}),y=gt((O,I)=>{var Z;const R=E(O);Ct(I)&&!I.includes("_EMO_")&&(I=n.expandReferenceInValue(I));const z=t[R];if(!z)return p(R,I);const L=(Z=i.get(R))==null?void 0:Z[I];if(!z.transform)return p(O,L??I);const X=Ne=>iw(Ne,b);return z.transform(L??I,{raw:I,token:b,utils:{colorMix:X}})});function C(){l(),c(),a(),h()}C();const x=r.size>0,E=gt(O=>r.get(O)??O);return{keys:()=>[...Array.from(r.keys()),...Object.keys(t)],hasShorthand:x,transform:y,shorthands:r,resolveShorthand:E,register:o,getTypes:f,addPropertyType:m}}const We={};function Hh(...e){const t=nh(...e),{theme:n={},utilities:r={},globalCss:i={},cssVarsRoot:o=":where(:root, :host)",cssVarsPrefix:s="chakra",preflight:a}=t,l=Zw(t),c=yk({breakpoints:n.breakpoints,tokens:n.tokens,semanticTokens:n.semanticTokens,prefix:s}),u=Aw(n.breakpoints??We),d=zw({conditions:t.conditions??We,breakpoints:u}),h=wk({config:r,tokens:c});function m(){const{textStyles:j,layerStyles:ae,animationStyles:ce}=n,ct=Hr({textStyle:j,layerStyle:ae,animationStyle:ce});for(const[mn,Ri]of Object.entries(ct)){const Lr=ah(Ri??We,Uh);h.register(mn,{values:Object.keys(Lr),transform(_l){return C(Lr[_l])}})}}m(),h.addPropertyType("animationName",Object.keys(n.keyframes??We));const f=new Set(["css",...h.keys(),...d.keys()]),g=gt(j=>f.has(j)||Rw(j)),p=j=>Array.isArray(j)?j.reduce((ae,ce,ct)=>{const mn=d.breakpoints[ct];return ce!=null&&(ae[mn]=ce),ae},{}):j,b=ek({utility:h,normalize:p}),y=nk({conditions:d,isValidProperty:g}),C=Ih({transform:h.transform,conditions:d,normalize:b}),x=Yw({css:C,conditions:d,normalize:b,layers:l}),E=sk({cva:x});function P(){const j={};for(const[ae,ce]of c.cssVarMap.entries()){const ct=Object.fromEntries(ce);if(Object.keys(ct).length===0)continue;const mn=ae==="base"?o:d.resolve(ae),Ri=mn.startsWith("@"),Lr=C(y({[mn]:Ri?{[o]:ct}:ct}));fr(j,Lr)}return l.wrap("tokens",j)}function _(){const j=Object.fromEntries(Object.entries(n.keyframes??We).map(([ce,ct])=>[`@keyframes ${ce}`,ct])),ae=Object.assign({},j,C(y(i)));return l.wrap("base",ae)}function O(j){return er(j,g)}function I(){const j=tk({preflight:a});return l.wrap("reset",j)}const R=kk(c),z=(j,ae)=>{var ce;return((ce=R.get(j))==null?void 0:ce.value)||ae};z.var=(j,ae)=>{var ce;return((ce=R.get(j))==null?void 0:ce.variable)||ae};function L(j,ae){var ce;return((ce=n.recipes)==null?void 0:ce[j])??ae}function X(j,ae){var ce;return((ce=n.slotRecipes)==null?void 0:ce[j])??ae}function Z(j){return Object.hasOwnProperty.call(n.recipes??We,j)}function Ne(j){return Object.hasOwnProperty.call(n.slotRecipes??We,j)}function G(j){return Z(j)||Ne(j)}const ie=[I(),_(),P()],fe={layerStyles:Xa(n.layerStyles??We),textStyles:Xa(n.textStyles??We),animationStyles:Xa(n.animationStyles??We),tokens:Gh(c,Object.keys(n.tokens??We),(j,ae)=>!j.extensions.conditions&&!ae.includes("colorPalette")),semanticTokens:Gh(c,Object.keys(n.semanticTokens??We),j=>!!j.extensions.conditions),keyframes:qh(n.keyframes??We),breakpoints:qh(n.breakpoints??We)};return{$$chakra:!0,_config:t,_global:ie,breakpoints:u,tokens:c,conditions:d,utility:h,token:z,properties:f,layers:l,isValidProperty:g,splitCssProps:O,normalizeValue:p,getTokenCss:P,getGlobalCss:_,getPreflightCss:I,css:C,cva:x,sva:E,getRecipe:L,getSlotRecipe:X,hasRecipe:G,isRecipe:Z,isSlotRecipe:Ne,query:fe}}function kk(e){const t=new Map;return e.allTokens.forEach(n=>{const{cssVar:r,virtual:i,conditions:o}=n.extensions,s=o||i?r.ref:n.value;t.set(n.name,{value:s,variable:r.ref})}),t}const Uh=e=>$e(e)&&"value"in e,Xa=e=>({list(){return Object.keys(ah(e,Uh))},search(t){return this.list().filter(n=>n.includes(t))}}),Gh=(e,t,n)=>({categoryKeys:t,list(r){var i;return Array.from(((i=e.categoryMap.get(r))==null?void 0:i.entries())??[]).reduce((o,[s,a])=>(n(a,s)&&o.push(s),o),[])},search(r,i){return this.list(r).filter(o=>o.includes(i))}}),qh=e=>({list(){return Object.keys(e)},search(t){return this.list().filter(n=>n.includes(t))}}),Ek={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Ya="var(--chakra-empty,/*!*/ /*!*/)",Ok=lw({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":Ya,"--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}`,Ya])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,Ya])),"--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"}}),Ik=dw({"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:{}}}),Rk=uw({"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"}}}),Qa=ve({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"}}),Pk=ve({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"}}),Pe=ve({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:Tk,defaultVariants:Nk}=Qa,_k=ve({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:Tk,defaultVariants:Nk}),Kh=ve({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"}}),Ak=ve({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"}}}}),Vk=ve({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"}}),Fk=ve({className:"chakra-icon",base:{display:"inline-block",lineHeight:"1em",flexShrink:"0",color:"currentcolor",verticalAlign:"middle"},variants:{size:{inherit:{},xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"},xl:{boxSize:"7"},"2xl":{boxSize:"8"}}},defaultVariants:{size:"inherit"}}),me=ve({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"}}),Lk=ve({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:me.variants.size,variant:{outline:{borderWidth:"1px",borderColor:"border",bg:"bg.muted"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.emphasized"},flushed:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}},defaultVariants:{size:"md",variant:"outline"}}),zk=ve({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"}}),Dk=ve({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"}}),Mk=ve({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:{}}}}),Te=ve({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"}}),$k=ve({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"}}),Bk=ve({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}}),jk=ve({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"}}}),Wk=ve({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"}}),Hk=ve({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"}}),Uk={badge:Qa,button:Pk,code:_k,container:Ak,heading:Vk,input:me,inputAddon:Lk,kbd:zk,link:Dk,mark:Mk,separator:$k,skeleton:Bk,skipNavLink:jk,spinner:Wk,textarea:Hk,icon:Fk,checkmark:Pe,radiomark:Te,colorSwatch:Kh},Gk=Ba.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}"}}}}),qk=Ba.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),Kk=Ba.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}"}}}),Xk=$u.extendWith("itemBody"),Yk=$("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),Qk=$("alert").parts("title","description","root","indicator","content"),Jk=$("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),Zk=$("blockquote").parts("root","icon","content","caption"),eE=$("card").parts("root","header","body","footer","title","description"),tE=$("checkbox-card",["root","control","label","description","addon","indicator","content"]),nE=$("data-list").parts("root","item","itemLabel","itemValue"),rE=ka.extendWith("header","body","footer","backdrop"),iE=ka.extendWith("header","body","footer","backdrop"),oE=hd.extendWith("textarea"),sE=$("empty-state",["root","content","indicator","title","description"]),aE=fd.extendWith("requiredIndicator"),lE=pd.extendWith("content"),cE=md.extendWith("itemContent","dropzoneContent","fileText"),uE=$("list").parts("root","item","indicator"),dE=wd.extendWith("itemCommand"),hE=$("select").parts("root","field","indicator"),fE=$d.extendWith("header","body","footer"),Xh=Va.extendWith("itemAddon","itemIndicator"),gE=Xh.extendWith("itemContent","itemDescription"),pE=jd.extendWith("itemIndicator"),mE=Ud.extendWith("indicatorGroup"),vE=JC.extendWith("indicatorGroup","empty"),bE=Xd.extendWith("markerIndicator"),yE=$("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),xE=$("status").parts("root","indicator"),CE=$("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),SE=Yd.extendWith("indicator"),wE=$("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),kE=$("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),EE=$("tabs").parts("root","trigger","list","content","contentGroup","indicator"),OE=$("tag").parts("root","label","closeTrigger","startElement","endElement"),IE=$("timeline").parts("root","item","content","separator","indicator","connector","title","description"),RE=gC.extendWith("channelText"),PE=$("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]);Xu.extendWith("valueText");const TE=sS,NE=B({className:"chakra-accordion",slots:Xk.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"}}),_E=B({className:"chakra-action-bar",slots:Yk.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"}}}),AE=B({slots:Qk.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}}),VE=B({slots:Wu.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"}}),FE=B({className:"chakra-blockquote",slots:Zk.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"}}),LE=B({className:"chakra-breadcrumb",slots:Jk.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"}}),zE=B({className:"chakra-card",slots:eE.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"}}),DE=B({slots:hC.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:Pe.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:(dp=(up=Pe.variants)==null?void 0:up.size)==null?void 0:dp.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:(fp=(hp=Pe.variants)==null?void 0:hp.size)==null?void 0:fp.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:(pp=(gp=Pe.variants)==null?void 0:gp.size)==null?void 0:pp.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:(vp=(mp=Pe.variants)==null?void 0:mp.size)==null?void 0:vp.lg}},variant:{outline:{control:(yp=(bp=Pe.variants)==null?void 0:bp.variant)==null?void 0:yp.outline},solid:{control:(Cp=(xp=Pe.variants)==null?void 0:xp.variant)==null?void 0:Cp.solid},subtle:{control:(wp=(Sp=Pe.variants)==null?void 0:Sp.variant)==null?void 0:wp.subtle}}},defaultVariants:{variant:"solid",size:"md"}}),ME=B({slots:tE.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:Pe.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:(kp=Pe.variants)==null?void 0:kp.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:(Ep=Pe.variants)==null?void 0:Ep.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:(Op=Pe.variants)==null?void 0:Op.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:(Ip=Pe.variants)==null?void 0:Ip.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:(Rp=Pe.variants)==null?void 0:Rp.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:(Pp=Pe.variants)==null?void 0:Pp.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:(Tp=Pe.variants)==null?void 0:Tp.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"}}),$E=B({slots:PE.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",overflow:"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",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",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"}}),BE=B({slots:eu.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}),jE=B({className:"colorPicker",slots:RE.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:{...Kh.base,borderRadius:"l1"},swatchIndicator:{color:"white",rounded:"full"},channelSliderThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",transform:"translate(-50%, -50%)",focusVisibleRing:"outside",focusRingOffset:"1px"},channelInput:{...me.base,"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}},formatSelect:{textStyle:"xs",textTransform:"uppercase",borderWidth:"1px",minH:"6",focusRing:"inside",rounded:"l2"},transparencyGrid:{borderRadius:"l2"},view:{display:"flex",flexDirection:"column",gap:"2"}},variants:{size:{"2xs":{channelInput:(_p=(Np=me.variants)==null?void 0:Np.size)==null?void 0:_p["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:(Vp=(Ap=me.variants)==null?void 0:Ap.size)==null?void 0:Vp.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:(Lp=(Fp=me.variants)==null?void 0:Fp.size)==null?void 0:Lp.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:(Dp=(zp=me.variants)==null?void 0:zp.size)==null?void 0:Dp.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:($p=(Mp=me.variants)==null?void 0:Mp.size)==null?void 0:$p.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:(jp=(Bp=me.variants)==null?void 0:Bp.size)==null?void 0:jp.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:(Hp=(Wp=me.variants)==null?void 0:Wp.size)==null?void 0:Hp["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:(Gp=(Up=me.variants)==null?void 0:Up.variant)==null?void 0:Gp.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:(Kp=(qp=me.variants)==null?void 0:qp.variant)==null?void 0:Kp.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),WE=B({className:"chakra-combobox",slots:vE.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"}}),HE=B({slots:nE.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"}}),UE=B({slots:rE.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"}}),GE=B({slots:iE.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"}}),Yh=gr({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),qE=B({slots:oE.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...Yh,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...Yh,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"}}),KE=B({slots:sE.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"}}),XE=B({className:"chakra-field",slots:aE.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"}}),YE=B({className:"fieldset",slots:lE.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"}}),QE=B({className:"chakra-file-upload",slots:cE.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:{}}),JE=B({className:"chakra-hover-card",slots:vd.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"}}),ZE=B({className:"chakra-list",slots:uE.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"}}),eO=B({className:"chakra-listbox",slots:TE.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"}}),tO=B({className:"chakra-menu",slots:dE.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"}}),$o=B({className:"chakra-select",slots:mE.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"}}),nO=B({className:"chakra-native-select",slots:hE.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:(Xp=$o.variants)==null?void 0:Xp.variant.outline.trigger},subtle:{field:(Yp=$o.variants)==null?void 0:Yp.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:$o.defaultVariants});function Ja(e,t){const n={};for(const r in e){const i=t(r,e[r]);n[i[0]]=i[1]}return n}const Qh=gr({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"}}),rO=B({className:"chakra-number-input",slots:Vd.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...me.base,verticalAlign:"top",pe:"calc(var(--stepper-width) + 0.5rem)"},control:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",width:"var(--stepper-width)",height:"calc(100% - 2px)",zIndex:"1",borderStartWidth:"1px",divideY:"1px"},incrementTrigger:{...Qh,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...Qh,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:me.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:me.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:me.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:me.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:Ja(me.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:Jh,defaultVariants:iO}=me,oO=B({className:"chakra-pin-input",slots:Md.keys(),base:{input:{...me.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:Ja(Jh.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:Ja(Jh.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:iO}),sO=B({className:"chakra-popover",slots:fE.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"}}),aO=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"}}),lO=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"}}),cO=B({slots:Bd.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"}}),uO=B({className:"chakra-radio-card",slots:gE.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:Te.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:(Qp=Te.variants)==null?void 0:Qp.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:(Jp=Te.variants)==null?void 0:Jp.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:(Zp=Te.variants)==null?void 0:Zp.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:(em=Te.variants)==null?void 0:em.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:(tm=Te.variants)==null?void 0:tm.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:(nm=Te.variants)==null?void 0:nm.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:(rm=Te.variants)==null?void 0:rm.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"}}),dO=B({className:"chakra-radio-group",slots:Xh.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:Te.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:(om=(im=Te.variants)==null?void 0:im.variant)==null?void 0:om.outline},subtle:{itemControl:(am=(sm=Te.variants)==null?void 0:sm.variant)==null?void 0:am.subtle},solid:{itemControl:(cm=(lm=Te.variants)==null?void 0:lm.variant)==null?void 0:cm.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:(dm=(um=Te.variants)==null?void 0:um.size)==null?void 0:dm.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:(fm=(hm=Te.variants)==null?void 0:hm.size)==null?void 0:fm.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:(pm=(gm=Te.variants)==null?void 0:gm.size)==null?void 0:pm.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:(vm=(mm=Te.variants)==null?void 0:mm.size)==null?void 0:vm.lg}}},defaultVariants:{size:"md",variant:"solid"}}),hO=B({className:"chakra-rating-group",slots:pE.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"}}),fO=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"}}),gO=B({className:"chakra-segment-group",slots:Hd.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"}}),pO=B({className:"chakra-slider",slots:bE.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"}}),mO=B({className:"chakra-stat",slots:yE.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"}}),vO=B({className:"chakra-status",slots:xE.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"}}),bO=B({className:"chakra-steps",slots:CE.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"}}),yO=B({slots:SE.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"}}),xO=B({className:"chakra-table",slots:wE.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}}),CO=B({slots:EE.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"}}),ot=(bm=Qa.variants)==null?void 0:bm.variant,SO=B({slots:OE.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:ot==null?void 0:ot.subtle},solid:{root:ot==null?void 0:ot.solid},outline:{root:ot==null?void 0:ot.outline},surface:{root:ot==null?void 0:ot.surface}}},defaultVariants:{size:"md",variant:"surface"}}),wO=B({slots:IE.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"& :where(.chakra-timeline__separator)":{display:"none"}}},separator:{position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"6",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid"}}),kO=B({slots:kE.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"}}}}),EO=B({slots:Qd.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)"}}}),Zh=gr({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"}}),ef=gr({flex:"1"}),tf=gr({_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}),nf=gr({_selected:{layerStyle:"fill.solid"}}),OO=B({slots:xd.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:Zh,item:Zh,itemText:ef,branchText:ef,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:tf,item:tf},solid:{branchControl:nf,item:nf}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}),IO={accordion:NE,actionBar:_E,alert:AE,avatar:VE,blockquote:FE,breadcrumb:LE,card:zE,checkbox:DE,checkboxCard:ME,codeBlock:$E,collapsible:BE,dataList:HE,dialog:UE,drawer:GE,editable:qE,emptyState:KE,field:XE,fieldset:YE,fileUpload:QE,hoverCard:JE,list:ZE,listbox:eO,menu:tO,nativeSelect:nO,numberInput:rO,pinInput:oO,popover:sO,progress:aO,progressCircle:lO,radioCard:uO,radioGroup:dO,ratingGroup:hO,scrollArea:fO,segmentGroup:gO,select:$o,combobox:WE,slider:pO,stat:mO,steps:bO,switch:yO,table:xO,tabs:CO,tag:SO,toast:kO,tooltip:EO,status:vO,timeline:wO,colorPicker:jE,qrCode:cO,treeView:OO},RO=cw({"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"}}}),PO=pe.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"}}),TO=pe.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"}}),NO=pe.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),_O=pe.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),AO=pe.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"}}}),VO=pe.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"}}),FO=pe.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),LO=pe.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)"}}),zO=pe.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"}}),DO=pe.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"}}),rf='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',MO=pe.fonts({heading:{value:`Inter, ${rf}`},body:{value:`Inter, ${rf}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),$O=aw({spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"0"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"0"}},"expand-width":{from:{width:"0"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"0"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}}),BO=pe.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),jO=pe.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),WO=pe.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"}}),of=pe.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"}}),HO=pe.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"}}),UO=pe.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"}}),GO=pe.sizes({"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"}}),qO=pe.sizes({...HO,...of,...GO,...UO}),KO=pe.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}}),XO=ja({preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:Ok,theme:{breakpoints:Ek,keyframes:$O,tokens:{aspectRatios:TO,animations:PO,blurs:NO,borders:_O,colors:AO,durations:FO,easings:LO,fonts:MO,fontSizes:zO,fontWeights:DO,letterSpacings:BO,lineHeights:jO,radii:WO,spacing:of,sizes:qO,zIndex:KO,cursor:VO},semanticTokens:{colors:Gk,shadows:Kk,radii:qk},recipes:Uk,slotRecipes:IO,textStyles:RO,layerStyles:Ik,animationStyles:Rk}}),st=nh(yw,XO);Hh(st);function YO(e){const{key:t,recipe:n}=e,r=Yi();return T.useMemo(()=>{const i=n||(t!=null?r.getSlotRecipe(t):{});return r.sva(structuredClone(i))},[t,n,r])}const QO=e=>e.charAt(0).toUpperCase()+e.slice(1),sf=e=>{const{key:t,recipe:n}=e,r=QO(t||n.className||"Component"),[i,o]=Zn({name:`${r}StylesContext`,errorMessage:`use${r}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `}),[s,a]=Zn({name:`${r}ClassNameContext`,errorMessage:`use${r}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `,strict:!1}),[l,c]=Zn({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`,defaultValue:{}});function u(f){const{unstyled:g,...p}=f,b=YO({key:t,recipe:p.recipe||n}),[y,C]=T.useMemo(()=>b.splitVariantProps(p),[p,b]);return{styles:T.useMemo(()=>g?Mb:b(y),[g,y,b]),classNames:b.classNameMap,props:C}}function d(f,g={}){const{defaultProps:p}=g,b=y=>{const C=c(),x=T.useMemo(()=>Wr(p,C,y),[C,y]),{styles:E,classNames:P,props:_}=u(x);return S.jsx(i,{value:E,children:S.jsx(s,{value:P,children:S.jsx(f,{..._})})})};return b.displayName=f.displayName||f.name,b}return{StylesProvider:i,ClassNamesProvider:s,PropsProvider:l,usePropsContext:c,useRecipeResult:u,withProvider:(f,g,p)=>{const{defaultProps:b,...y}=p??{},C=Ve(f,{},y),x=T.forwardRef((E,P)=>{var Z;const _=c(),O=T.useMemo(()=>Wr(b??{},_,E),[_,E]),{styles:I,props:R,classNames:z}=u(O),L=z[g],X=S.jsx(i,{value:I,children:S.jsx(s,{value:z,children:S.jsx(C,{ref:P,...R,css:[I[g],O.css],className:tt(O.className,L)})})});return((Z=p==null?void 0:p.wrapElement)==null?void 0:Z.call(p,X,O))??X});return x.displayName=f.displayName||f.name,x},withContext:(f,g,p)=>{const b=Ve(f,{},p),y=T.forwardRef((C,x)=>{const{unstyled:E,...P}=C,_=o(),O=a(),I=O==null?void 0:O[g];return S.jsx(b,{...P,css:[!E&&g?_[g]:void 0,C.css],ref:x,className:tt(C.className,I)})});return y.displayName=f.displayName||f.name,y},withRootProvider:d,useStyles:o,useClassNames:a}},af=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"}});af.displayName="AbsoluteCenter";const JO=e=>S.jsx(Ve.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:S.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"})}),lf=e=>S.jsx(Ve.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:S.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"})}),cf=e=>S.jsx(Ve.svg,{viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",...e,children:S.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"})}),[ZO,eI]=Zn({name:"AlertStatusContext",hookName:"useAlertStatusContext",providerName:""}),{withProvider:tI,withContext:Za,useStyles:nI}=sf({key:"alert"}),rI=tI("div","root",{forwardAsChild:!0,wrapElement(e,t){return S.jsx(ZO,{value:{status:t.status||"info"},children:e})}}),uf=Za("div","title"),iI=Za("div","description"),oI=Za("div","content"),sI={info:cf,warning:lf,success:JO,error:lf,neutral:cf},aI=T.forwardRef(function(t,n){const r=eI(),i=nI(),o=typeof r.status=="string"?sI[r.status]:T.Fragment,{children:s=S.jsx(o,{}),...a}=t;return S.jsx(Ve.span,{ref:n,...a,css:[i.indicator,t.css],children:s})}),lI=e=>e?"":void 0,{withContext:cI}=Ur({key:"badge"}),df=cI("span"),{withContext:uI}=Ur({key:"spinner"}),dI=uI("span"),hI=w.forwardRef(function(t,n){const{spinner:r=S.jsx(dI,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:i="start",children:o,text:s,visible:a=!0,...l}=t;return a?s?S.jsxs(lo,{ref:n,display:"contents",...l,children:[i==="start"&&r,s,i==="end"&&r]}):r?S.jsxs(lo,{ref:n,display:"contents",...l,children:[S.jsx(af,{display:"inline-flex",children:r}),S.jsx(lo,{visibility:"hidden",display:"contents",children:o})]}):S.jsx(lo,{ref:n,display:"contents",...l,children:o}):o}),{useRecipeResult:fI,usePropsContext:gI}=Ur({key:"button"}),pI=T.forwardRef(function(t,n){const r=gI(),i=T.useMemo(()=>Wr(r,t),[r,t]),o=fI(i),{loading:s,loadingText:a,children:l,spinner:c,spinnerPlacement:u,...d}=o.props;return S.jsx(Ve.button,{type:"button",ref:n,...d,"data-loading":lI(s),disabled:s||d.disabled,className:tt(o.className,i.className),css:[o.styles,i.css],children:!i.asChild&&s?S.jsx(hI,{spinner:c,text:a,spinnerPlacement:u,children:l}):l})}),hi=T.forwardRef(function(t,n){return S.jsx(pI,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:n,...t})}),hf=Ve("div",{base:{display:"flex",alignItems:"center",justifyContent:"center"},variants:{inline:{true:{display:"inline-flex"}}}});hf.displayName="Center";function mI(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{"&":th(n,i=>r[i])}}function vI(e){return T.Children.toArray(e).filter(t=>T.isValidElement(t))}const ff=T.forwardRef(function(t,n){const{direction:r="column",align:i,justify:o,gap:s="0.5rem",wrap:a,children:l,separator:c,className:u,...d}=t,h=T.useMemo(()=>mI({gap:s,direction:r}),[s,r]),m=T.useMemo(()=>T.isValidElement(c)?vI(l).map((f,g,p)=>{const b=typeof f.key<"u"?f.key:g,y=c,C=T.cloneElement(y,{css:[h,y.props.css]});return S.jsxs(T.Fragment,{children:[f,g===p.length-1?null:C]},b)}):l,[l,c,h]);return S.jsx(Ve.div,{ref:n,display:"flex",alignItems:i,justifyContent:o,flexDirection:r,flexWrap:a,gap:c?void 0:s,className:tt("chakra-stack",u),...d,children:m})}),el=T.forwardRef(function(t,n){const{direction:r,align:i,justify:o,wrap:s,basis:a,grow:l,shrink:c,inline:u,...d}=t;return S.jsx(Ve.div,{ref:n,...d,css:{display:u?"inline-flex":"flex",flexDirection:r,alignItems:i,justifyContent:o,flexWrap:s,flexBasis:a,flexGrow:l,flexShrink:c,...t.css}})}),gf=T.forwardRef(function(t,n){return S.jsx(ff,{align:"center",...t,direction:"row",ref:n})}),pf=T.forwardRef(function(t,n){return S.jsx(ff,{align:"center",...t,direction:"column",ref:n})}),{StylesProvider:bI,ClassNamesProvider:yI,useRecipeResult:xI,withContext:Dt}=sf({key:"table"}),mf=T.forwardRef(function({native:t,...n},r){const{styles:i,props:o,classNames:s}=xI(n),a=T.useMemo(()=>t?{...i.root,"& thead":i.header,"& tbody":i.body,"& tfoot":i.footer,"& thead th":i.columnHeader,"& tr":i.row,"& td":i.cell,"& caption":i.caption}:i.root,[i,t]);return S.jsx(yI,{value:s,children:S.jsx(bI,{value:i,children:S.jsx(Ve.table,{ref:r,...o,css:[a,n.css],className:tt(s==null?void 0:s.root,n.className)})})})}),Bo=Dt("tr","row");Ve("div",{base:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflow:"auto",maxWidth:"100%"}});const vf=Dt("thead","header");Dt("tfoot","footer");const ke=Dt("th","columnHeader"),Ee=Dt("td","cell");Dt("caption","caption",{defaultProps:{captionSide:"bottom"}});const bf=Dt("tbody","body");Dt("colgroup"),Dt("col");const{withContext:CI}=Ur({key:"textarea"}),SI=CI(gd);var yr=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(){}},wI={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},kI=(ym=class{constructor(){D(this,sn,wI);D(this,Nl,!1)}setTimeoutProvider(e){F(this,sn,e)}setTimeout(e,t){return v(this,sn).setTimeout(e,t)}clearTimeout(e){v(this,sn).clearTimeout(e)}setInterval(e,t){return v(this,sn).setInterval(e,t)}clearInterval(e){v(this,sn).clearInterval(e)}},sn=new WeakMap,Nl=new WeakMap,ym),An=new kI;function EI(e){setTimeout(e,0)}var Vn=typeof window>"u"||"Deno"in globalThis;function Le(){}function OI(e,t){return typeof e=="function"?e(t):e}function tl(e){return typeof e=="number"&&e>=0&&e!==1/0}function yf(e,t){return Math.max(e+(t||0)-Date.now(),0)}function en(e,t){return typeof e=="function"?e(t):e}function at(e,t){return typeof e=="function"?e(t):e}function xf(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==nl(s,t.options))return!1}else if(!fi(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||i&&i!==t.state.fetchStatus||o&&!o(t))}function Cf(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Fn(t.options.mutationKey)!==Fn(o))return!1}else if(!fi(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function nl(e,t){return((t==null?void 0:t.queryKeyHashFn)||Fn)(e)}function Fn(e){return JSON.stringify(e,(t,n)=>rl(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function fi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>fi(e[n],t[n])):!1}var II=Object.prototype.hasOwnProperty;function Sf(e,t){if(e===t)return e;const n=wf(e)&&wf(t);if(!n&&!(rl(e)&&rl(t)))return t;const i=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),s=o.length,a=n?new Array(s):{};let l=0;for(let c=0;c{An.setTimeout(t,e)})}function il(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Sf(e,t):t}function PI(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function TI(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ol=Symbol();function Ef(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===ol?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Of(e,t){return typeof e=="function"?e(...t):!!e}var NI=(xm=class extends yr{constructor(){super();D(this,$n);D(this,an);D(this,kr);F(this,kr,t=>{if(!Vn&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){v(this,an)||this.setEventListener(v(this,kr))}onUnsubscribe(){var t;this.hasListeners()||((t=v(this,an))==null||t.call(this),F(this,an,void 0))}setEventListener(t){var n;F(this,kr,t),(n=v(this,an))==null||n.call(this),F(this,an,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){v(this,$n)!==t&&(F(this,$n,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof v(this,$n)=="boolean"?v(this,$n):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},$n=new WeakMap,an=new WeakMap,kr=new WeakMap,xm),sl=new NI;function al(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var _I=EI;function AI(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=_I;const o=a=>{t?e.push(a):i(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var be=AI(),VI=(Cm=class extends yr{constructor(){super();D(this,Er,!0);D(this,ln);D(this,Or);F(this,Or,t=>{if(!Vn&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){v(this,ln)||this.setEventListener(v(this,Or))}onUnsubscribe(){var t;this.hasListeners()||((t=v(this,ln))==null||t.call(this),F(this,ln,void 0))}setEventListener(t){var n;F(this,Or,t),(n=v(this,ln))==null||n.call(this),F(this,ln,t(this.setOnline.bind(this)))}setOnline(t){v(this,Er)!==t&&(F(this,Er,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return v(this,Er)}},Er=new WeakMap,ln=new WeakMap,Or=new WeakMap,Cm),Wo=new VI;function FI(e){return Math.min(1e3*2**e,3e4)}function If(e){return(e??"online")==="online"?Wo.isOnline():!0}var ll=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Rf(e){let t=!1,n=0,r;const i=al(),o=()=>i.status!=="pending",s=g=>{var p;if(!o()){const b=new ll(g);h(b),(p=e.onCancel)==null||p.call(e,b)}},a=()=>{t=!0},l=()=>{t=!1},c=()=>sl.isFocused()&&(e.networkMode==="always"||Wo.isOnline())&&e.canRun(),u=()=>If(e.networkMode)&&e.canRun(),d=g=>{o()||(r==null||r(),i.resolve(g))},h=g=>{o()||(r==null||r(),i.reject(g))},m=()=>new Promise(g=>{var p;r=b=>{(o()||c())&&g(b)},(p=e.onPause)==null||p.call(e)}).then(()=>{var g;r=void 0,o()||(g=e.onContinue)==null||g.call(e)}),f=()=>{if(o())return;let g;const p=n===0?e.initialPromise:void 0;try{g=p??e.fn()}catch(b){g=Promise.reject(b)}Promise.resolve(g).then(d).catch(b=>{var P;if(o())return;const y=e.retry??(Vn?0:3),C=e.retryDelay??FI,x=typeof C=="function"?C(n,b):C,E=y===!0||typeof y=="number"&&nc()?void 0:m()).then(()=>{t?h(b):f()})})};return{promise:i,status:()=>i.status,cancel:s,continue:()=>(r==null||r(),i),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?f():m().then(f),i)}}var Pf=(Sm=class{constructor(){D(this,Bn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),tl(this.gcTime)&&F(this,Bn,An.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Vn?1/0:5*60*1e3))}clearGcTimeout(){v(this,Bn)&&(An.clearTimeout(v(this,Bn)),F(this,Bn,void 0))}},Bn=new WeakMap,Sm),LI=(wm=class extends Pf{constructor(t){super();D(this,mt);D(this,jn);D(this,Ir);D(this,lt);D(this,Wn);D(this,Oe);D(this,ki);D(this,Hn);F(this,Hn,!1),F(this,ki,t.defaultOptions),this.setOptions(t.options),this.observers=[],F(this,Wn,t.client),F(this,lt,v(this,Wn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,F(this,jn,Nf(this.options)),this.state=t.state??v(this,jn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=v(this,Oe))==null?void 0:t.promise}setOptions(t){if(this.options={...v(this,ki),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Nf(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),F(this,jn,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&v(this,lt).remove(this)}setData(t,n){const r=il(this.state.data,t,this.options);return H(this,mt,Ht).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){H(this,mt,Ht).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=v(this,Oe))==null?void 0:r.promise;return(i=v(this,Oe))==null||i.cancel(t),n?n.then(Le).catch(Le):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(v(this,jn))}isActive(){return this.observers.some(t=>at(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ol||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>en(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!yf(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=v(this,Oe))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=v(this,Oe))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),v(this,lt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(v(this,Oe)&&(v(this,Hn)?v(this,Oe).cancel({revert:!0}):v(this,Oe).cancelRetry()),this.scheduleGc()),v(this,lt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||H(this,mt,Ht).call(this,{type:"invalidate"})}async fetch(t,n){var l,c,u,d,h,m,f,g,p,b,y,C;if(this.state.fetchStatus!=="idle"&&((l=v(this,Oe))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(v(this,Oe))return v(this,Oe).continueRetry(),v(this,Oe).promise}if(t&&this.setOptions(t),!this.options.queryFn){const x=this.observers.find(E=>E.options.queryFn);x&&this.setOptions(x.options)}const r=new AbortController,i=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(F(this,Hn,!0),r.signal)})},o=()=>{const x=Ef(this.options,n),P=(()=>{const _={client:v(this,Wn),queryKey:this.queryKey,meta:this.meta};return i(_),_})();return F(this,Hn,!1),this.options.persister?this.options.persister(x,P,this):x(P)},a=(()=>{const x={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:v(this,Wn),state:this.state,fetchFn:o};return i(x),x})();(c=this.options.behavior)==null||c.onFetch(a,this),F(this,Ir,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&H(this,mt,Ht).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta}),F(this,Oe,Rf({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:x=>{x instanceof ll&&x.revert&&this.setState({...v(this,Ir),fetchStatus:"idle"}),r.abort()},onFail:(x,E)=>{H(this,mt,Ht).call(this,{type:"failed",failureCount:x,error:E})},onPause:()=>{H(this,mt,Ht).call(this,{type:"pause"})},onContinue:()=>{H(this,mt,Ht).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const x=await v(this,Oe).start();if(x===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(x),(m=(h=v(this,lt).config).onSuccess)==null||m.call(h,x,this),(g=(f=v(this,lt).config).onSettled)==null||g.call(f,x,this.state.error,this),x}catch(x){if(x instanceof ll){if(x.silent)return v(this,Oe).promise;if(x.revert){if(this.state.data===void 0)throw x;return this.state.data}}throw H(this,mt,Ht).call(this,{type:"error",error:x}),(b=(p=v(this,lt).config).onError)==null||b.call(p,x,this),(C=(y=v(this,lt).config).onSettled)==null||C.call(y,this.state.data,x,this),x}finally{this.scheduleGc()}}},jn=new WeakMap,Ir=new WeakMap,lt=new WeakMap,Wn=new WeakMap,Oe=new WeakMap,ki=new WeakMap,Hn=new WeakMap,mt=new WeakSet,Ht=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Tf(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return F(this,Ir,t.manual?i:void 0),i;case"error":const o=t.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),be.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),v(this,lt).notify({query:this,type:"updated",action:t})})},wm);function Tf(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:If(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Nf(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 zI=(km=class extends yr{constructor(t,n){super();D(this,ee);D(this,Ge);D(this,U);D(this,Ei);D(this,ze);D(this,Un);D(this,Rr);D(this,Mt);D(this,cn);D(this,Oi);D(this,Pr);D(this,Tr);D(this,Gn);D(this,qn);D(this,un);D(this,Nr,new Set);this.options=n,F(this,Ge,t),F(this,cn,null),F(this,Mt,al()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(v(this,U).addObserver(this),_f(v(this,U),this.options)?H(this,ee,Pi).call(this):this.updateResult(),H(this,ee,Dl).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return cl(v(this,U),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return cl(v(this,U),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,H(this,ee,Ml).call(this),H(this,ee,$l).call(this),v(this,U).removeObserver(this)}setOptions(t){const n=this.options,r=v(this,U);if(this.options=v(this,Ge).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof at(this.options.enabled,v(this,U))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");H(this,ee,Bl).call(this),v(this,U).setOptions(this.options),n._defaulted&&!jo(this.options,n)&&v(this,Ge).getQueryCache().notify({type:"observerOptionsUpdated",query:v(this,U),observer:this});const i=this.hasListeners();i&&Af(v(this,U),r,this.options,n)&&H(this,ee,Pi).call(this),this.updateResult(),i&&(v(this,U)!==r||at(this.options.enabled,v(this,U))!==at(n.enabled,v(this,U))||en(this.options.staleTime,v(this,U))!==en(n.staleTime,v(this,U)))&&H(this,ee,Fl).call(this);const o=H(this,ee,Ll).call(this);i&&(v(this,U)!==r||at(this.options.enabled,v(this,U))!==at(n.enabled,v(this,U))||o!==v(this,un))&&H(this,ee,zl).call(this,o)}getOptimisticResult(t){const n=v(this,Ge).getQueryCache().build(v(this,Ge),t),r=this.createResult(n,t);return MI(this,r)&&(F(this,ze,r),F(this,Rr,this.options),F(this,Un,v(this,U).state)),r}getCurrentResult(){return v(this,ze)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&!this.options.experimental_prefetchInRender&&v(this,Mt).status==="pending"&&v(this,Mt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,i))})}trackProp(t){v(this,Nr).add(t)}getCurrentQuery(){return v(this,U)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=v(this,Ge).defaultQueryOptions(t),r=v(this,Ge).getQueryCache().build(v(this,Ge),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return H(this,ee,Pi).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),v(this,ze)))}createResult(t,n){var I;const r=v(this,U),i=this.options,o=v(this,ze),s=v(this,Un),a=v(this,Rr),c=t!==r?t.state:v(this,Ei),{state:u}=t;let d={...u},h=!1,m;if(n._optimisticResults){const R=this.hasListeners(),z=!R&&_f(t,n),L=R&&Af(t,r,n,i);(z||L)&&(d={...d,...Tf(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:f,errorUpdatedAt:g,status:p}=d;m=d.data;let b=!1;if(n.placeholderData!==void 0&&m===void 0&&p==="pending"){let R;o!=null&&o.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(R=o.data,b=!0):R=typeof n.placeholderData=="function"?n.placeholderData((I=v(this,Tr))==null?void 0:I.state.data,v(this,Tr)):n.placeholderData,R!==void 0&&(p="success",m=il(o==null?void 0:o.data,R,n),h=!0)}if(n.select&&m!==void 0&&!b)if(o&&m===(s==null?void 0:s.data)&&n.select===v(this,Oi))m=v(this,Pr);else try{F(this,Oi,n.select),m=n.select(m),m=il(o==null?void 0:o.data,m,n),F(this,Pr,m),F(this,cn,null)}catch(R){F(this,cn,R)}v(this,cn)&&(f=v(this,cn),m=v(this,Pr),g=Date.now(),p="error");const y=d.fetchStatus==="fetching",C=p==="pending",x=p==="error",E=C&&y,P=m!==void 0,O={status:p,fetchStatus:d.fetchStatus,isPending:C,isSuccess:p==="success",isError:x,isInitialLoading:E,isLoading:E,data:m,dataUpdatedAt:d.dataUpdatedAt,error:f,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:y,isRefetching:y&&!C,isLoadingError:x&&!P,isPaused:d.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:x&&P,isStale:ul(t,n),refetch:this.refetch,promise:v(this,Mt),isEnabled:at(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const R=X=>{O.status==="error"?X.reject(O.error):O.data!==void 0&&X.resolve(O.data)},z=()=>{const X=F(this,Mt,O.promise=al());R(X)},L=v(this,Mt);switch(L.status){case"pending":t.queryHash===r.queryHash&&R(L);break;case"fulfilled":(O.status==="error"||O.data!==L.value)&&z();break;case"rejected":(O.status!=="error"||O.error!==L.reason)&&z();break}}return O}updateResult(){const t=v(this,ze),n=this.createResult(v(this,U),this.options);if(F(this,Un,v(this,U).state),F(this,Rr,this.options),v(this,Un).data!==void 0&&F(this,Tr,v(this,U)),jo(n,t))return;F(this,ze,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,o=typeof i=="function"?i():i;if(o==="all"||!o&&!v(this,Nr).size)return!0;const s=new Set(o??v(this,Nr));return this.options.throwOnError&&s.add("error"),Object.keys(v(this,ze)).some(a=>{const l=a;return v(this,ze)[l]!==t[l]&&s.has(l)})};H(this,ee,fv).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&H(this,ee,Dl).call(this)}},Ge=new WeakMap,U=new WeakMap,Ei=new WeakMap,ze=new WeakMap,Un=new WeakMap,Rr=new WeakMap,Mt=new WeakMap,cn=new WeakMap,Oi=new WeakMap,Pr=new WeakMap,Tr=new WeakMap,Gn=new WeakMap,qn=new WeakMap,un=new WeakMap,Nr=new WeakMap,ee=new WeakSet,Pi=function(t){H(this,ee,Bl).call(this);let n=v(this,U).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Le)),n},Fl=function(){H(this,ee,Ml).call(this);const t=en(this.options.staleTime,v(this,U));if(Vn||v(this,ze).isStale||!tl(t))return;const r=yf(v(this,ze).dataUpdatedAt,t)+1;F(this,Gn,An.setTimeout(()=>{v(this,ze).isStale||this.updateResult()},r))},Ll=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(v(this,U)):this.options.refetchInterval)??!1},zl=function(t){H(this,ee,$l).call(this),F(this,un,t),!(Vn||at(this.options.enabled,v(this,U))===!1||!tl(v(this,un))||v(this,un)===0)&&F(this,qn,An.setInterval(()=>{(this.options.refetchIntervalInBackground||sl.isFocused())&&H(this,ee,Pi).call(this)},v(this,un)))},Dl=function(){H(this,ee,Fl).call(this),H(this,ee,zl).call(this,H(this,ee,Ll).call(this))},Ml=function(){v(this,Gn)&&(An.clearTimeout(v(this,Gn)),F(this,Gn,void 0))},$l=function(){v(this,qn)&&(An.clearInterval(v(this,qn)),F(this,qn,void 0))},Bl=function(){const t=v(this,Ge).getQueryCache().build(v(this,Ge),this.options);if(t===v(this,U))return;const n=v(this,U);F(this,U,t),F(this,Ei,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},fv=function(t){be.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(v(this,ze))}),v(this,Ge).getQueryCache().notify({query:v(this,U),type:"observerResultsUpdated"})})},km);function DI(e,t){return at(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function _f(e,t){return DI(e,t)||e.state.data!==void 0&&cl(e,t,t.refetchOnMount)}function cl(e,t,n){if(at(t.enabled,e)!==!1&&en(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&ul(e,t)}return!1}function Af(e,t,n,r){return(e!==t||at(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&ul(e,n)}function ul(e,t){return at(t.enabled,e)!==!1&&e.isStaleByTime(en(t.staleTime,e))}function MI(e,t){return!jo(e.getCurrentResult(),t)}function Vf(e){return{onFetch:(t,n)=>{var u,d,h,m,f;const r=t.options,i=(h=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,o=((m=t.state.data)==null?void 0:m.pages)||[],s=((f=t.state.data)==null?void 0:f.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let g=!1;const p=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},b=Ef(t.options,t.fetchOptions),y=async(C,x,E)=>{if(g)return Promise.reject();if(x==null&&C.pages.length)return Promise.resolve(C);const _=(()=>{const z={client:t.client,queryKey:t.queryKey,pageParam:x,direction:E?"backward":"forward",meta:t.options.meta};return p(z),z})(),O=await b(_),{maxPages:I}=t.options,R=E?TI:PI;return{pages:R(C.pages,O,I),pageParams:R(C.pageParams,x,I)}};if(i&&o.length){const C=i==="backward",x=C?$I:Ff,E={pages:o,pageParams:s},P=x(r,E);a=await y(E,P,C)}else{const C=e??o.length;do{const x=l===0?s[0]??r.initialPageParam:Ff(r,a);if(l>0&&x==null)break;a=await y(a,x),l++}while(l{var g,p;return(p=(g=t.options).persister)==null?void 0:p.call(g,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function Ff(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 $I(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var BI=(Em=class extends Pf{constructor(t){super();D(this,Nt);D(this,Tt);D(this,De);D(this,Kn);this.mutationId=t.mutationId,F(this,De,t.mutationCache),F(this,Tt,[]),this.state=t.state||Lf(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){v(this,Tt).includes(t)||(v(this,Tt).push(t),this.clearGcTimeout(),v(this,De).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){F(this,Tt,v(this,Tt).filter(n=>n!==t)),this.scheduleGc(),v(this,De).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){v(this,Tt).length||(this.state.status==="pending"?this.scheduleGc():v(this,De).remove(this))}continue(){var t;return((t=v(this,Kn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,a,l,c,u,d,h,m,f,g,p,b,y,C,x,E,P,_,O;const n=()=>{H(this,Nt,vn).call(this,{type:"continue"})};F(this,Kn,Rf({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(I,R)=>{H(this,Nt,vn).call(this,{type:"failed",failureCount:I,error:R})},onPause:()=>{H(this,Nt,vn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>v(this,De).canRun(this)}));const r=this.state.status==="pending",i=!v(this,Kn).canStart();try{if(r)n();else{H(this,Nt,vn).call(this,{type:"pending",variables:t,isPaused:i}),await((s=(o=v(this,De).config).onMutate)==null?void 0:s.call(o,t,this));const R=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));R!==this.state.context&&H(this,Nt,vn).call(this,{type:"pending",context:R,variables:t,isPaused:i})}const I=await v(this,Kn).start();return await((u=(c=v(this,De).config).onSuccess)==null?void 0:u.call(c,I,t,this.state.context,this)),await((h=(d=this.options).onSuccess)==null?void 0:h.call(d,I,t,this.state.context)),await((f=(m=v(this,De).config).onSettled)==null?void 0:f.call(m,I,null,this.state.variables,this.state.context,this)),await((p=(g=this.options).onSettled)==null?void 0:p.call(g,I,null,t,this.state.context)),H(this,Nt,vn).call(this,{type:"success",data:I}),I}catch(I){try{throw await((y=(b=v(this,De).config).onError)==null?void 0:y.call(b,I,t,this.state.context,this)),await((x=(C=this.options).onError)==null?void 0:x.call(C,I,t,this.state.context)),await((P=(E=v(this,De).config).onSettled)==null?void 0:P.call(E,void 0,I,this.state.variables,this.state.context,this)),await((O=(_=this.options).onSettled)==null?void 0:O.call(_,void 0,I,t,this.state.context)),I}finally{H(this,Nt,vn).call(this,{type:"error",error:I})}}finally{v(this,De).runNext(this)}}},Tt=new WeakMap,De=new WeakMap,Kn=new WeakMap,Nt=new WeakSet,vn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),be.batch(()=>{v(this,Tt).forEach(r=>{r.onMutationUpdate(t)}),v(this,De).notify({mutation:this,type:"updated",action:t})})},Em);function Lf(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var jI=(Om=class extends yr{constructor(t={}){super();D(this,$t);D(this,vt);D(this,Ii);this.config=t,F(this,$t,new Set),F(this,vt,new Map),F(this,Ii,0)}build(t,n,r){const i=new BI({mutationCache:this,mutationId:++ms(this,Ii)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){v(this,$t).add(t);const n=Ho(t);if(typeof n=="string"){const r=v(this,vt).get(n);r?r.push(t):v(this,vt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(v(this,$t).delete(t)){const n=Ho(t);if(typeof n=="string"){const r=v(this,vt).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&v(this,vt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Ho(t);if(typeof n=="string"){const r=v(this,vt).get(n),i=r==null?void 0:r.find(o=>o.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=Ho(t);if(typeof n=="string"){const i=(r=v(this,vt).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){be.batch(()=>{v(this,$t).forEach(t=>{this.notify({type:"removed",mutation:t})}),v(this,$t).clear(),v(this,vt).clear()})}getAll(){return Array.from(v(this,$t))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Cf(n,r))}findAll(t={}){return this.getAll().filter(n=>Cf(t,n))}notify(t){be.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return be.batch(()=>Promise.all(t.map(n=>n.continue().catch(Le))))}},$t=new WeakMap,vt=new WeakMap,Ii=new WeakMap,Om);function Ho(e){var t;return(t=e.options.scope)==null?void 0:t.id}var WI=(Im=class extends yr{constructor(t,n){super();D(this,jt);D(this,dn);D(this,hn);D(this,qe);D(this,Bt);F(this,dn,t),this.setOptions(n),this.bindMethods(),H(this,jt,xs).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var r;const n=this.options;this.options=v(this,dn).defaultMutationOptions(t),jo(this.options,n)||v(this,dn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:v(this,qe),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Fn(n.mutationKey)!==Fn(this.options.mutationKey)?this.reset():((r=v(this,qe))==null?void 0:r.state.status)==="pending"&&v(this,qe).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=v(this,qe))==null||t.removeObserver(this)}onMutationUpdate(t){H(this,jt,xs).call(this),H(this,jt,jl).call(this,t)}getCurrentResult(){return v(this,hn)}reset(){var t;(t=v(this,qe))==null||t.removeObserver(this),F(this,qe,void 0),H(this,jt,xs).call(this),H(this,jt,jl).call(this)}mutate(t,n){var r;return F(this,Bt,n),(r=v(this,qe))==null||r.removeObserver(this),F(this,qe,v(this,dn).getMutationCache().build(v(this,dn),this.options)),v(this,qe).addObserver(this),v(this,qe).execute(t)}},dn=new WeakMap,hn=new WeakMap,qe=new WeakMap,Bt=new WeakMap,jt=new WeakSet,xs=function(){var n;const t=((n=v(this,qe))==null?void 0:n.state)??Lf();F(this,hn,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},jl=function(t){be.batch(()=>{var n,r,i,o,s,a,l,c;if(v(this,Bt)&&this.hasListeners()){const u=v(this,hn).variables,d=v(this,hn).context;(t==null?void 0:t.type)==="success"?((r=(n=v(this,Bt)).onSuccess)==null||r.call(n,t.data,u,d),(o=(i=v(this,Bt)).onSettled)==null||o.call(i,t.data,null,u,d)):(t==null?void 0:t.type)==="error"&&((a=(s=v(this,Bt)).onError)==null||a.call(s,t.error,u,d),(c=(l=v(this,Bt)).onSettled)==null||c.call(l,void 0,t.error,u,d))}this.listeners.forEach(u=>{u(v(this,hn))})})},Im),HI=(Rm=class extends yr{constructor(t={}){super();D(this,_t);this.config=t,F(this,_t,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??nl(i,n);let s=this.get(o);return s||(s=new LI({client:t,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){v(this,_t).has(t.queryHash)||(v(this,_t).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=v(this,_t).get(t.queryHash);n&&(t.destroy(),n===t&&v(this,_t).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){be.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return v(this,_t).get(t)}getAll(){return[...v(this,_t).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>xf(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>xf(t,r)):n}notify(t){be.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){be.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){be.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},_t=new WeakMap,Rm),UI=(Pm=class{constructor(e={}){D(this,he);D(this,fn);D(this,gn);D(this,_r);D(this,Ar);D(this,pn);D(this,Vr);D(this,Fr);F(this,he,e.queryCache||new HI),F(this,fn,e.mutationCache||new jI),F(this,gn,e.defaultOptions||{}),F(this,_r,new Map),F(this,Ar,new Map),F(this,pn,0)}mount(){ms(this,pn)._++,v(this,pn)===1&&(F(this,Vr,sl.subscribe(async e=>{e&&(await this.resumePausedMutations(),v(this,he).onFocus())})),F(this,Fr,Wo.subscribe(async e=>{e&&(await this.resumePausedMutations(),v(this,he).onOnline())})))}unmount(){var e,t;ms(this,pn)._--,v(this,pn)===0&&((e=v(this,Vr))==null||e.call(this),F(this,Vr,void 0),(t=v(this,Fr))==null||t.call(this),F(this,Fr,void 0))}isFetching(e){return v(this,he).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return v(this,fn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=v(this,he).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=v(this,he).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(en(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return v(this,he).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=v(this,he).get(r.queryHash),o=i==null?void 0:i.state.data,s=OI(t,o);if(s!==void 0)return v(this,he).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return be.batch(()=>v(this,he).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=v(this,he).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=v(this,he);be.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=v(this,he);return be.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=be.batch(()=>v(this,he).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Le).catch(Le)}invalidateQueries(e,t={}){return be.batch(()=>(v(this,he).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=be.batch(()=>v(this,he).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Le)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Le)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=v(this,he).build(this,t);return n.isStaleByTime(en(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Le).catch(Le)}fetchInfiniteQuery(e){return e.behavior=Vf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Le).catch(Le)}ensureInfiniteQueryData(e){return e.behavior=Vf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Wo.isOnline()?v(this,fn).resumePausedMutations():Promise.resolve()}getQueryCache(){return v(this,he)}getMutationCache(){return v(this,fn)}getDefaultOptions(){return v(this,gn)}setDefaultOptions(e){F(this,gn,e)}setQueryDefaults(e,t){v(this,_r).set(Fn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...v(this,_r).values()],n={};return t.forEach(r=>{fi(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){v(this,Ar).set(Fn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...v(this,Ar).values()],n={};return t.forEach(r=>{fi(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...v(this,gn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=nl(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===ol&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...v(this,gn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){v(this,he).clear(),v(this,fn).clear()}},he=new WeakMap,fn=new WeakMap,gn=new WeakMap,_r=new WeakMap,Ar=new WeakMap,pn=new WeakMap,Vr=new WeakMap,Fr=new WeakMap,Pm),zf=w.createContext(void 0),Df=e=>{const t=w.useContext(zf);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},GI=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),S.jsx(zf.Provider,{value:e,children:t})),Mf=w.createContext(!1),qI=()=>w.useContext(Mf);Mf.Provider;function KI(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var XI=w.createContext(KI()),YI=()=>w.useContext(XI),QI=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},JI=e=>{w.useEffect(()=>{e.clearReset()},[e])},ZI=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||Of(n,[e.error,r])),eR=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},tR=(e,t)=>e.isLoading&&e.isFetching&&!t,nR=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,$f=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function rR(e,t,n){var d,h,m,f,g;const r=qI(),i=YI(),o=Df(),s=o.defaultQueryOptions(e);(h=(d=o.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||h.call(d,s),s._optimisticResults=r?"isRestoring":"optimistic",eR(s),QI(s,i),JI(i);const a=!o.getQueryCache().get(s.queryHash),[l]=w.useState(()=>new t(o,s)),c=l.getOptimisticResult(s),u=!r&&e.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(p=>{const b=u?l.subscribe(be.batchCalls(p)):Le;return l.updateResult(),b},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),w.useEffect(()=>{l.setOptions(s)},[s,l]),nR(s,c))throw $f(s,l,i);if(ZI({result:c,errorResetBoundary:i,throwOnError:s.throwOnError,query:o.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw c.error;if((f=(m=o.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||f.call(m,s,c),s.experimental_prefetchInRender&&!Vn&&tR(c,r)){const p=a?$f(s,l,i):(g=o.getQueryCache().get(s.queryHash))==null?void 0:g.promise;p==null||p.catch(Le).finally(()=>{l.updateResult()})}return s.notifyOnChangeProps?c:l.trackResult(c)}function Bf(e,t){return rR(e,zI)}function jf(e,t){const n=Df(),[r]=w.useState(()=>new WI(n,e));w.useEffect(()=>{r.setOptions(e)},[r,e]);const i=w.useSyncExternalStore(w.useCallback(s=>r.subscribe(be.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=w.useCallback((s,a)=>{r.mutate(s,a).catch(Le)},[r]);if(i.error&&Of(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}function Wf(e,t){return function(){return e.apply(t,arguments)}}const{toString:iR}=Object.prototype,{getPrototypeOf:dl}=Object,{iterator:Uo,toStringTag:Hf}=Symbol,Go=(e=>t=>{const n=iR.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),pt=e=>(e=e.toLowerCase(),t=>Go(t)===e),qo=e=>t=>typeof t===e,{isArray:xr}=Array,gi=qo("undefined");function pi(e){return e!==null&&!gi(e)&&e.constructor!==null&&!gi(e.constructor)&&He(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Uf=pt("ArrayBuffer");function oR(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Uf(e.buffer),t}const sR=qo("string"),He=qo("function"),Gf=qo("number"),mi=e=>e!==null&&typeof e=="object",aR=e=>e===!0||e===!1,Ko=e=>{if(Go(e)!=="object")return!1;const t=dl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Hf in e)&&!(Uo in e)},lR=e=>{if(!mi(e)||pi(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},cR=pt("Date"),uR=pt("File"),dR=pt("Blob"),hR=pt("FileList"),fR=e=>mi(e)&&He(e.pipe),gR=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||He(e.append)&&((t=Go(e))==="formdata"||t==="object"&&He(e.toString)&&e.toString()==="[object FormData]"))},pR=pt("URLSearchParams"),[mR,vR,bR,yR]=["ReadableStream","Request","Response","Headers"].map(pt),xR=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function vi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),xr(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Ln=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:globalThis,Kf=e=>!gi(e)&&e!==Ln;function hl(){const{caseless:e}=Kf(this)&&this||{},t={},n=(r,i)=>{const o=e&&qf(t,i)||i;Ko(t[o])&&Ko(r)?t[o]=hl(t[o],r):Ko(r)?t[o]=hl({},r):xr(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(vi(t,(i,o)=>{n&&He(i)?e[o]=Wf(i,n):e[o]=i},{allOwnKeys:r}),e),SR=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),wR=(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)},kR=(e,t,n,r)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&dl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ER=(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},OR=e=>{if(!e)return null;if(xr(e))return e;let t=e.length;if(!Gf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},IR=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&dl(Uint8Array)),RR=(e,t)=>{const r=(e&&e[Uo]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},PR=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},TR=pt("HTMLFormElement"),NR=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Xf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),_R=pt("RegExp"),Yf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};vi(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(r[o]=s||i)}),Object.defineProperties(e,r)},AR=e=>{Yf(e,(t,n)=>{if(He(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(He(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+"'")})}})},VR=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return xr(e)?r(e):r(String(e).split(t)),n},FR=()=>{},LR=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function zR(e){return!!(e&&He(e.append)&&e[Hf]==="FormData"&&e[Uo])}const DR=e=>{const t=new Array(10),n=(r,i)=>{if(mi(r)){if(t.indexOf(r)>=0)return;if(pi(r))return r;if(!("toJSON"in r)){t[i]=r;const o=xr(r)?[]:{};return vi(r,(s,a)=>{const l=n(s,i+1);!gi(l)&&(o[a]=l)}),t[i]=void 0,o}}return r};return n(e,0)},MR=pt("AsyncFunction"),$R=e=>e&&(mi(e)||He(e))&&He(e.then)&&He(e.catch),Qf=((e,t)=>e?setImmediate:t?((n,r)=>(Ln.addEventListener("message",({source:i,data:o})=>{i===Ln&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Ln.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",He(Ln.postMessage)),BR=typeof queueMicrotask<"u"?queueMicrotask.bind(Ln):typeof process<"u"&&process.nextTick||Qf,k={isArray:xr,isArrayBuffer:Uf,isBuffer:pi,isFormData:gR,isArrayBufferView:oR,isString:sR,isNumber:Gf,isBoolean:aR,isObject:mi,isPlainObject:Ko,isEmptyObject:lR,isReadableStream:mR,isRequest:vR,isResponse:bR,isHeaders:yR,isUndefined:gi,isDate:cR,isFile:uR,isBlob:dR,isRegExp:_R,isFunction:He,isStream:fR,isURLSearchParams:pR,isTypedArray:IR,isFileList:hR,forEach:vi,merge:hl,extend:CR,trim:xR,stripBOM:SR,inherits:wR,toFlatObject:kR,kindOf:Go,kindOfTest:pt,endsWith:ER,toArray:OR,forEachEntry:RR,matchAll:PR,isHTMLForm:TR,hasOwnProperty:Xf,hasOwnProp:Xf,reduceDescriptors:Yf,freezeMethods:AR,toObjectSet:VR,toCamelCase:NR,noop:FR,toFiniteNumber:LR,findKey:qf,global:Ln,isContextDefined:Kf,isSpecCompliantForm:zR,toJSONObject:DR,isAsyncFn:MR,isThenable:$R,setImmediate:Qf,asap:BR,isIterable:e=>e!=null&&He(e[Uo])};function W(e,t,n,r,i){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),i&&(this.response=i,this.status=i.status?i.status:null)}k.inherits(W,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:k.toJSONObject(this.config),code:this.code,status:this.status}}});const Jf=W.prototype,Zf={};["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=>{Zf[e]={value:e}}),Object.defineProperties(W,Zf),Object.defineProperty(Jf,"isAxiosError",{value:!0}),W.from=(e,t,n,r,i,o)=>{const s=Object.create(Jf);return k.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),W.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const jR=null;function fl(e){return k.isPlainObject(e)||k.isArray(e)}function eg(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function tg(e,t,n){return e?e.concat(t).map(function(i,o){return i=eg(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function WR(e){return k.isArray(e)&&!e.some(fl)}const HR=k.toFlatObject(k,{},null,function(t){return/^is[A-Z]/.test(t)});function Xo(e,t,n){if(!k.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=k.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,p){return!k.isUndefined(p[g])});const r=n.metaTokens,i=n.visitor||u,o=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(t);if(!k.isFunction(i))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(k.isDate(f))return f.toISOString();if(k.isBoolean(f))return f.toString();if(!l&&k.isBlob(f))throw new W("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(f)||k.isTypedArray(f)?l&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function u(f,g,p){let b=f;if(f&&!p&&typeof f=="object"){if(k.endsWith(g,"{}"))g=r?g:g.slice(0,-2),f=JSON.stringify(f);else if(k.isArray(f)&&WR(f)||(k.isFileList(f)||k.endsWith(g,"[]"))&&(b=k.toArray(f)))return g=eg(g),b.forEach(function(C,x){!(k.isUndefined(C)||C===null)&&t.append(s===!0?tg([g],x,o):s===null?g:g+"[]",c(C))}),!1}return fl(f)?!0:(t.append(tg(p,g,o),c(f)),!1)}const d=[],h=Object.assign(HR,{defaultVisitor:u,convertValue:c,isVisitable:fl});function m(f,g){if(!k.isUndefined(f)){if(d.indexOf(f)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(f),k.forEach(f,function(b,y){(!(k.isUndefined(b)||b===null)&&i.call(t,b,k.isString(y)?y.trim():y,g,h))===!0&&m(b,g?g.concat(y):[y])}),d.pop()}}if(!k.isObject(e))throw new TypeError("data must be an object");return m(e),t}function ng(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function gl(e,t){this._pairs=[],e&&Xo(e,this,t)}const rg=gl.prototype;rg.append=function(t,n){this._pairs.push([t,n])},rg.toString=function(t){const n=t?function(r){return t.call(this,r,ng)}:ng;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function UR(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ig(e,t,n){if(!t)return e;const r=n&&n.encode||UR;k.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=k.isURLSearchParams(t)?t.toString():new gl(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class og{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){k.forEach(this.handlers,function(r){r!==null&&t(r)})}}const sg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},GR={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:gl,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},pl=typeof window<"u"&&typeof document<"u",ml=typeof navigator=="object"&&navigator||void 0,qR=pl&&(!ml||["ReactNative","NativeScript","NS"].indexOf(ml.product)<0),KR=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",XR=pl&&window.location.href||"http://localhost",Fe={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:pl,hasStandardBrowserEnv:qR,hasStandardBrowserWebWorkerEnv:KR,navigator:ml,origin:XR},Symbol.toStringTag,{value:"Module"})),...GR};function YR(e,t){return Xo(e,new Fe.classes.URLSearchParams,{visitor:function(n,r,i,o){return Fe.isNode&&k.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function QR(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function JR(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return s=!s&&k.isArray(i)?i.length:s,l?(k.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!k.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&k.isArray(i[s])&&(i[s]=JR(i[s])),!a)}if(k.isFormData(e)&&k.isFunction(e.entries)){const n={};return k.forEachEntry(e,(r,i)=>{t(QR(r),i,n,0)}),n}return null}function ZR(e,t,n){if(k.isString(e))try{return(t||JSON.parse)(e),k.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const bi={transitional:sg,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=k.isObject(t);if(o&&k.isHTMLForm(t)&&(t=new FormData(t)),k.isFormData(t))return i?JSON.stringify(ag(t)):t;if(k.isArrayBuffer(t)||k.isBuffer(t)||k.isStream(t)||k.isFile(t)||k.isBlob(t)||k.isReadableStream(t))return t;if(k.isArrayBufferView(t))return t.buffer;if(k.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return YR(t,this.formSerializer).toString();if((a=k.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Xo(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),ZR(t)):t}],transformResponse:[function(t){const n=this.transitional||bi.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(k.isResponse(t)||k.isReadableStream(t))return t;if(t&&k.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?W.from(a,W.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:Fe.classes.FormData,Blob:Fe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],e=>{bi.headers[e]={}});const e2=k.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"]),t2=e=>{const t={};let n,r,i;return e&&e.split(` +`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&e2[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},lg=Symbol("internals");function yi(e){return e&&String(e).trim().toLowerCase()}function Yo(e){return e===!1||e==null?e:k.isArray(e)?e.map(Yo):String(e)}function n2(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 r2=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function vl(e,t,n,r,i){if(k.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!k.isString(t)){if(k.isString(r))return t.indexOf(r)!==-1;if(k.isRegExp(r))return r.test(t)}}function i2(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function o2(e,t){const n=k.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}let Ue=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(a,l,c){const u=yi(l);if(!u)throw new Error("header name must be a non-empty string");const d=k.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=Yo(a))}const s=(a,l)=>k.forEach(a,(c,u)=>o(c,u,l));if(k.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(k.isString(t)&&(t=t.trim())&&!r2(t))s(t2(t),n);else if(k.isObject(t)&&k.isIterable(t)){let a={},l,c;for(const u of t){if(!k.isArray(u))throw TypeError("Object iterator must return a key-value pair");a[c=u[0]]=(l=a[c])?k.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}s(a,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=yi(t),t){const r=k.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return n2(i);if(k.isFunction(n))return n.call(this,i,r);if(k.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=yi(t),t){const r=k.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||vl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(s){if(s=yi(s),s){const a=k.findKey(r,s);a&&(!n||vl(r,r[a],a,n))&&(delete r[a],i=!0)}}return k.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||vl(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return k.forEach(this,(i,o)=>{const s=k.findKey(r,o);if(s){n[s]=Yo(i),delete n[o];return}const a=t?i2(o):String(o).trim();a!==o&&delete n[o],n[a]=Yo(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return k.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&k.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(` +`)}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(i=>r.set(i)),r}static accessor(t){const r=(this[lg]=this[lg]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=yi(s);r[a]||(o2(i,s),r[a]=!0)}return k.isArray(t)?t.forEach(o):o(t),this}};Ue.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),k.reduceDescriptors(Ue.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),k.freezeMethods(Ue);function bl(e,t){const n=this||bi,r=t||n,i=Ue.from(r.headers);let o=r.data;return k.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function cg(e){return!!(e&&e.__CANCEL__)}function Cr(e,t,n){W.call(this,e??"canceled",W.ERR_CANCELED,t,n),this.name="CanceledError"}k.inherits(Cr,W,{__CANCEL__:!0});function ug(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new W("Request failed with status code "+n.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function s2(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function a2(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[o];s||(s=c),n[i]=l,r[i]=c;let d=o,h=0;for(;d!==i;)h+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-s{n=u,i=null,o&&(clearTimeout(o),o=null),e(...c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?s(c,u):(i=c,o||(o=setTimeout(()=>{o=null,s(i)},r-d)))},()=>i&&s(i)]}const Qo=(e,t,n=3)=>{let r=0;const i=a2(50,250);return l2(o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,l=s-r,c=i(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:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},dg=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},hg=e=>(...t)=>k.asap(()=>e(...t)),c2=Fe.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Fe.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Fe.origin),Fe.navigator&&/(msie|trident)/i.test(Fe.navigator.userAgent)):()=>!0,u2=Fe.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const s=[e+"="+encodeURIComponent(t)];k.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),k.isString(r)&&s.push("path="+r),k.isString(i)&&s.push("domain="+i),o===!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 d2(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function h2(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function fg(e,t,n){let r=!d2(t);return e&&(r||n==!1)?h2(e,t):t}const gg=e=>e instanceof Ue?{...e}:e;function zn(e,t){t=t||{};const n={};function r(c,u,d,h){return k.isPlainObject(c)&&k.isPlainObject(u)?k.merge.call({caseless:h},c,u):k.isPlainObject(u)?k.merge({},u):k.isArray(u)?u.slice():u}function i(c,u,d,h){if(k.isUndefined(u)){if(!k.isUndefined(c))return r(void 0,c,d,h)}else return r(c,u,d,h)}function o(c,u){if(!k.isUndefined(u))return r(void 0,u)}function s(c,u){if(k.isUndefined(u)){if(!k.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:o,method:o,data:o,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)=>i(gg(c),gg(u),d,!0)};return k.forEach(Object.keys({...e,...t}),function(u){const d=l[u]||i,h=d(e[u],t[u],u);k.isUndefined(h)&&d!==a||(n[u]=h)}),n}const pg=e=>{const t=zn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=t;t.headers=s=Ue.from(s),t.url=ig(fg(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(k.isFormData(n)){if(Fe.hasStandardBrowserEnv||Fe.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Fe.hasStandardBrowserEnv&&(r&&k.isFunction(r)&&(r=r(t)),r||r!==!1&&c2(t.url))){const c=i&&o&&u2.read(o);c&&s.set(i,c)}return t},f2=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const i=pg(e);let o=i.data;const s=Ue.from(i.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=i,u,d,h,m,f;function g(){m&&m(),f&&f(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let p=new XMLHttpRequest;p.open(i.method.toUpperCase(),i.url,!0),p.timeout=i.timeout;function b(){if(!p)return;const C=Ue.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),E={data:!a||a==="text"||a==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:C,config:e,request:p};ug(function(_){n(_),g()},function(_){r(_),g()},E),p=null}"onloadend"in p?p.onloadend=b:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(b)},p.onabort=function(){p&&(r(new W("Request aborted",W.ECONNABORTED,e,p)),p=null)},p.onerror=function(){r(new W("Network Error",W.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const E=i.transitional||sg;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),r(new W(x,E.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,p)),p=null},o===void 0&&s.setContentType(null),"setRequestHeader"in p&&k.forEach(s.toJSON(),function(x,E){p.setRequestHeader(E,x)}),k.isUndefined(i.withCredentials)||(p.withCredentials=!!i.withCredentials),a&&a!=="json"&&(p.responseType=i.responseType),c&&([h,f]=Qo(c,!0),p.addEventListener("progress",h)),l&&p.upload&&([d,m]=Qo(l),p.upload.addEventListener("progress",d),p.upload.addEventListener("loadend",m)),(i.cancelToken||i.signal)&&(u=C=>{p&&(r(!C||C.type?new Cr(null,e,p):C),p.abort(),p=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const y=s2(i.url);if(y&&Fe.protocols.indexOf(y)===-1){r(new W("Unsupported protocol "+y+":",W.ERR_BAD_REQUEST,e));return}p.send(o||null)})},g2=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(c){if(!i){i=!0,a();const u=c instanceof Error?c:this.reason;r.abort(u instanceof W?u:new Cr(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,o(new W(`timeout ${t} of ms exceeded`,W.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>k.asap(a),l}},p2=function*(e,t){let n=e.byteLength;if(n{const i=m2(e,t);let o=0,s,a=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await i.next();if(c){a(),l.close();return}let d=u.byteLength;if(n){let h=o+=d;n(h)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),i.return()}},{highWaterMark:2})},Jo=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",vg=Jo&&typeof ReadableStream=="function",b2=Jo&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),bg=(e,...t)=>{try{return!!e(...t)}catch{return!1}},y2=vg&&bg(()=>{let e=!1;const t=new Request(Fe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),yg=64*1024,yl=vg&&bg(()=>k.isReadableStream(new Response("").body)),Zo={stream:yl&&(e=>e.body)};Jo&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Zo[t]&&(Zo[t]=k.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new W(`Response type '${t}' is not supported`,W.ERR_NOT_SUPPORT,r)})})})(new Response);const x2=async e=>{if(e==null)return 0;if(k.isBlob(e))return e.size;if(k.isSpecCompliantForm(e))return(await new Request(Fe.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(k.isArrayBufferView(e)||k.isArrayBuffer(e))return e.byteLength;if(k.isURLSearchParams(e)&&(e=e+""),k.isString(e))return(await b2(e)).byteLength},C2=async(e,t)=>{const n=k.toFiniteNumber(e.getContentLength());return n??x2(t)},xl={http:jR,xhr:f2,fetch:Jo&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:h}=pg(e);c=c?(c+"").toLowerCase():"text";let m=g2([i,o&&o.toAbortSignal()],s),f;const g=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let p;try{if(l&&y2&&n!=="get"&&n!=="head"&&(p=await C2(u,r))!==0){let E=new Request(t,{method:"POST",body:r,duplex:"half"}),P;if(k.isFormData(r)&&(P=E.headers.get("content-type"))&&u.setContentType(P),E.body){const[_,O]=dg(p,Qo(hg(l)));r=mg(E.body,yg,_,O)}}k.isString(d)||(d=d?"include":"omit");const b="credentials"in Request.prototype;f=new Request(t,{...h,signal:m,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:b?d:void 0});let y=await fetch(f,h);const C=yl&&(c==="stream"||c==="response");if(yl&&(a||C&&g)){const E={};["status","statusText","headers"].forEach(I=>{E[I]=y[I]});const P=k.toFiniteNumber(y.headers.get("content-length")),[_,O]=a&&dg(P,Qo(hg(a),!0))||[];y=new Response(mg(y.body,yg,_,()=>{O&&O(),g&&g()}),E)}c=c||"text";let x=await Zo[k.findKey(Zo,c)||"text"](y,e);return!C&&g&&g(),await new Promise((E,P)=>{ug(E,P,{data:x,headers:Ue.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:f})})}catch(b){throw g&&g(),b&&b.name==="TypeError"&&/Load failed|fetch/i.test(b.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,e,f),{cause:b.cause||b}):W.from(b,b&&b.code,e,f)}})};k.forEach(xl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const xg=e=>`- ${e}`,S2=e=>k.isFunction(e)||e===null||e===!1,Cg={getAdapter:e=>{e=k.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since : +`+o.map(xg).join(` +`):" "+xg(o[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:xl};function Cl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cr(null,e)}function Sg(e){return Cl(e),e.headers=Ue.from(e.headers),e.data=bl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Cg.getAdapter(e.adapter||bi.adapter)(e).then(function(r){return Cl(e),r.data=bl.call(e,e.transformResponse,r),r.headers=Ue.from(r.headers),r},function(r){return cg(r)||(Cl(e),r&&r.response&&(r.response.data=bl.call(e,e.transformResponse,r.response),r.response.headers=Ue.from(r.response.headers))),Promise.reject(r)})}const wg="1.11.0",es={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{es[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const kg={};es.transitional=function(t,n,r){function i(o,s){return"[Axios v"+wg+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(t===!1)throw new W(i(s," has been removed"+(n?" in "+n:"")),W.ERR_DEPRECATED);return n&&!kg[s]&&(kg[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,a):!0}},es.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function w2(e,t,n){if(typeof e!="object")throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const a=e[o],l=a===void 0||s(a,o,e);if(l!==!0)throw new W("option "+o+" must be "+l,W.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new W("Unknown option "+o,W.ERR_BAD_OPTION)}}const ts={assertOptions:w2,validators:es},Pt=ts.validators;let Dn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new og,response:new og}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=zn(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&ts.assertOptions(r,{silentJSONParsing:Pt.transitional(Pt.boolean),forcedJSONParsing:Pt.transitional(Pt.boolean),clarifyTimeoutError:Pt.transitional(Pt.boolean)},!1),i!=null&&(k.isFunction(i)?n.paramsSerializer={serialize:i}:ts.assertOptions(i,{encode:Pt.function,serialize:Pt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ts.assertOptions(n,{baseUrl:Pt.spelling("baseURL"),withXsrfToken:Pt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&k.merge(o.common,o[n.method]);o&&k.forEach(["delete","get","head","post","put","patch","common"],f=>{delete o[f]}),n.headers=Ue.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,d=0,h;if(!l){const f=[Sg.bind(this),void 0];for(f.unshift(...a),f.push(...c),h=f.length,u=Promise.resolve(n);d{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,a){r.reason||(r.reason=new Cr(o,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 gv(function(i){t=i}),cancel:t}}};function E2(e){return function(n){return e.apply(null,n)}}function O2(e){return k.isObject(e)&&e.isAxiosError===!0}const Sl={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(Sl).forEach(([e,t])=>{Sl[t]=e});function Eg(e){const t=new Dn(e),n=Wf(Dn.prototype.request,t);return k.extend(n,Dn.prototype,t,{allOwnKeys:!0}),k.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Eg(zn(e,i))},n}const ue=Eg(bi);ue.Axios=Dn,ue.CanceledError=Cr,ue.CancelToken=k2,ue.isCancel=cg,ue.VERSION=wg,ue.toFormData=Xo,ue.AxiosError=W,ue.Cancel=ue.CanceledError,ue.all=function(t){return Promise.all(t)},ue.spread=E2,ue.isAxiosError=O2,ue.mergeConfig=zn,ue.AxiosHeaders=Ue,ue.formToJSON=e=>ag(k.isHTMLForm(e)?new FormData(e):e),ue.getAdapter=Cg.getAdapter,ue.HttpStatusCode=Sl,ue.default=ue;const{Axios:EN,AxiosError:ON,CanceledError:IN,isCancel:RN,CancelToken:PN,VERSION:TN,all:NN,Cancel:_N,isAxiosError:AN,spread:VN,toFormData:FN,AxiosHeaders:LN,HttpStatusCode:zN,formToJSON:DN,getAdapter:MN,mergeConfig:$N}=ue;var ns=["light","dark"],wl="(prefers-color-scheme: dark)",I2=typeof window>"u",Og=w.createContext(void 0),R2=e=>w.useContext(Og)?e.children:w.createElement(T2,{...e}),P2=["light","dark"],T2=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:i="theme",themes:o=P2,defaultTheme:s=n?"system":"light",attribute:a="data-theme",value:l,children:c,nonce:u})=>{let[d,h]=w.useState(()=>Ig(i,s)),[m,f]=w.useState(()=>Ig(i)),g=l?Object.values(l):o,p=w.useCallback(x=>{let E=x;if(!E)return;x==="system"&&n&&(E=Rg());let P=l?l[E]:E,_=t?_2():null,O=document.documentElement;if(a==="class"?(O.classList.remove(...g),P&&O.classList.add(P)):P?O.setAttribute(a,P):O.removeAttribute(a),r){let I=ns.includes(s)?s:null,R=ns.includes(E)?E:I;O.style.colorScheme=R}_==null||_()},[]),b=w.useCallback(x=>{let E=typeof x=="function"?x(x):x;h(E);try{localStorage.setItem(i,E)}catch{}},[e]),y=w.useCallback(x=>{let E=Rg(x);f(E),d==="system"&&n&&!e&&p("system")},[d,e]);w.useEffect(()=>{let x=window.matchMedia(wl);return x.addListener(y),y(x),()=>x.removeListener(y)},[y]),w.useEffect(()=>{let x=E=>{if(E.key!==i)return;let P=E.newValue||s;b(P)};return window.addEventListener("storage",x),()=>window.removeEventListener("storage",x)},[b]),w.useEffect(()=>{p(e??d)},[e,d]);let C=w.useMemo(()=>({theme:d,setTheme:b,forcedTheme:e,resolvedTheme:d==="system"?m:d,themes:n?[...o,"system"]:o,systemTheme:n?m:void 0}),[d,b,e,m,n,o]);return w.createElement(Og.Provider,{value:C},w.createElement(N2,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:r,storageKey:i,themes:o,defaultTheme:s,attribute:a,value:l,children:c,attrs:g,nonce:u}),c)},N2=w.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:o,value:s,attrs:a,nonce:l})=>{let c=o==="system",u=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(f=>`'${f}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=i?ns.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(f,g=!1,p=!0)=>{let b=s?s[f]:f,y=g?f+"|| ''":`'${b}'`,C="";return i&&p&&!g&&ns.includes(f)&&(C+=`d.style.colorScheme = '${f}';`),n==="class"?g||b?C+=`c.add(${y})`:C+="null":b&&(C+=`d[s](n,${y})`),C},m=e?`!function(){${u}${h(e)}}()`:r?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${wl}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${h(s?"x[e]":"e",!0)}}${c?"":"else{"+h(o,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${h(s?"x[e]":"e",!0)}}else{${h(o,!1,!1)};}${d}}catch(t){}}();`;return w.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:m}})}),Ig=(e,t)=>{if(I2)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},_2=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},Rg=e=>(e||(e=window.matchMedia(wl)),e.matches?"dark":"light");const A2=e=>S.jsx(R2,{attribute:"class",disableTransitionOnChange:!0,...e});/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. @@ -35,7 +35,7 @@ * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function di(){return di=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function eg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ZR(){return Math.random().toString(36).substr(2,8)}function tg(e,t){return{usr:e.state,key:e.key,idx:t}}function cl(e,t,n,r){return n===void 0&&(n=null),di({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?hr(t):t,{state:n,key:t&&t.key||r||ZR()})}function qo(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function hr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function eP(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=Jt.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(di({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){a=Jt.Pop;let p=c(),v=p==null?null:p-u;u=p,l&&l({action:a,location:g.location,delta:v})}function h(p,v){a=Jt.Push;let b=cl(g.location,p,v);u=c()+1;let S=tg(b,u),y=g.createHref(b);try{s.pushState(S,"",y)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(y)}o&&l&&l({action:a,location:g.location,delta:1})}function m(p,v){a=Jt.Replace;let b=cl(g.location,p,v);u=c();let S=tg(b,u),y=g.createHref(b);s.replaceState(S,"",y),o&&l&&l({action:a,location:g.location,delta:0})}function f(p){let v=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof p=="string"?p:qo(p);return b=b.replace(/ $/,"%20"),ue(v,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,v)}let g={get action(){return a},get location(){return e(i,s)},listen(p){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Zf,d),l=p,()=>{i.removeEventListener(Zf,d),l=null}},createHref(p){return t(i,p)},createURL:f,encodeLocation(p){let v=f(p);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:h,replace:m,go(p){return s.go(p)}};return g}var ng;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ng||(ng={}));function tP(e,t,n){return n===void 0&&(n="/"),nP(e,t,n)}function nP(e,t,n,r){let i=typeof t=="string"?hr(t):t,o=fr(i.pathname||"/",n);if(o==null)return null;let s=rg(e);rP(s);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(ue(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Zt([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(ue(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),rg(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:uP(u,o.index),routesMeta:c})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of ig(o.path))i(o,s,l)}),t}function ig(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=ig(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function rP(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:dP(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const iP=/^:[\w-]+$/,oP=3,sP=2,aP=1,lP=10,cP=-2,og=e=>e==="*";function uP(e,t){let n=e.split("/"),r=n.length;return n.some(og)&&(r+=cP),t&&(r+=sP),n.filter(i=>!og(i)).reduce((i,o)=>i+(iP.test(o)?oP:o===""?aP:lP),r)}function dP(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function hP(e,t,n){let{routesMeta:r}=e,i={},o="/",s=[];for(let a=0;a{let{paramName:h,isOptional:m}=c;if(h==="*"){let g=a[d]||"";s=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const f=a[d];return m&&!f?u[h]=void 0:u[h]=(f||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:s,pattern:e}}function fP(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),eg(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function gP(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return eg(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function fr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function pP(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?hr(e):e;return{pathname:n?n.startsWith("/")?n:mP(n,t):t,search:yP(r),hash:xP(i)}}function mP(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function dl(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function vP(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function sg(e,t){let n=vP(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ag(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=hr(e):(i=di({},e),ue(!i.pathname||!i.pathname.includes("?"),dl("?","pathname","search",i)),ue(!i.pathname||!i.pathname.includes("#"),dl("#","pathname","hash",i)),ue(!i.search||!i.search.includes("#"),dl("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),d-=1;i.pathname=h.join("/")}a=d>=0?t[d]:"/"}let l=pP(i,a),u=s&&s!=="/"&&s.endsWith("/"),c=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Zt=e=>e.join("/").replace(/\/\/+/g,"/"),bP=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),yP=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,xP=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function SP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const lg=["post","put","patch","delete"];new Set(lg);const CP=["get",...lg];new Set(CP);/** + */function xi(){return xi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Tg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function F2(){return Math.random().toString(36).substr(2,8)}function Ng(e,t){return{usr:e.state,key:e.key,idx:t}}function kl(e,t,n,r){return n===void 0&&(n=null),xi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Sr(t):t,{state:n,key:t&&t.key||r||F2()})}function rs(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Sr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function L2(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=tn.Pop,l=null,c=u();c==null&&(c=0,s.replaceState(xi({},s.state,{idx:c}),""));function u(){return(s.state||{idx:null}).idx}function d(){a=tn.Pop;let p=u(),b=p==null?null:p-c;c=p,l&&l({action:a,location:g.location,delta:b})}function h(p,b){a=tn.Push;let y=kl(g.location,p,b);c=u()+1;let C=Ng(y,c),x=g.createHref(y);try{s.pushState(C,"",x)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(x)}o&&l&&l({action:a,location:g.location,delta:1})}function m(p,b){a=tn.Replace;let y=kl(g.location,p,b);c=u();let C=Ng(y,c),x=g.createHref(y);s.replaceState(C,"",x),o&&l&&l({action:a,location:g.location,delta:0})}function f(p){let b=i.location.origin!=="null"?i.location.origin:i.location.href,y=typeof p=="string"?p:rs(p);return y=y.replace(/ $/,"%20"),de(b,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,b)}let g={get action(){return a},get location(){return e(i,s)},listen(p){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Pg,d),l=p,()=>{i.removeEventListener(Pg,d),l=null}},createHref(p){return t(i,p)},createURL:f,encodeLocation(p){let b=f(p);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:h,replace:m,go(p){return s.go(p)}};return g}var _g;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(_g||(_g={}));function z2(e,t,n){return n===void 0&&(n="/"),D2(e,t,n)}function D2(e,t,n,r){let i=typeof t=="string"?Sr(t):t,o=wr(i.pathname||"/",n);if(o==null)return null;let s=Ag(e);M2(s);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(de(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=nn([r,l.relativePath]),u=n.concat(l);o.children&&o.children.length>0&&(de(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Ag(o.children,t,u,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:G2(c,o.index),routesMeta:u})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of Vg(o.path))i(o,s,l)}),t}function Vg(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=Vg(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function M2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:q2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const $2=/^:[\w-]+$/,B2=3,j2=2,W2=1,H2=10,U2=-2,Fg=e=>e==="*";function G2(e,t){let n=e.split("/"),r=n.length;return n.some(Fg)&&(r+=U2),t&&(r+=j2),n.filter(i=>!Fg(i)).reduce((i,o)=>i+($2.test(o)?B2:o===""?W2:H2),r)}function q2(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function K2(e,t,n){let{routesMeta:r}=e,i={},o="/",s=[];for(let a=0;a{let{paramName:h,isOptional:m}=u;if(h==="*"){let g=a[d]||"";s=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const f=a[d];return m&&!f?c[h]=void 0:c[h]=(f||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:s,pattern:e}}function X2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Tg(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Y2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Tg(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function wr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Q2(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Sr(e):e;return{pathname:n?n.startsWith("/")?n:J2(n,t):t,search:tP(r),hash:nP(i)}}function J2(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Ol(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Z2(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Lg(e,t){let n=Z2(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function zg(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Sr(e):(i=xi({},e),de(!i.pathname||!i.pathname.includes("?"),Ol("?","pathname","search",i)),de(!i.pathname||!i.pathname.includes("#"),Ol("#","pathname","hash",i)),de(!i.search||!i.search.includes("#"),Ol("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),d-=1;i.pathname=h.join("/")}a=d>=0?t[d]:"/"}let l=Q2(i,a),c=s&&s!=="/"&&s.endsWith("/"),u=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const nn=e=>e.join("/").replace(/\/\/+/g,"/"),eP=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),tP=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,nP=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function rP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Dg=["post","put","patch","delete"];new Set(Dg);const iP=["get",...Dg];new Set(iP);/** * React Router v6.30.1 * * Copyright (c) Remix Software Inc. @@ -44,7 +44,7 @@ * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function hi(){return hi=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),w.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=ag(u,JSON.parse(s),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Zt([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,s,o,e])}function Yo(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=w.useContext(en),{matches:i}=w.useContext(Nn),{pathname:o}=gi(),s=JSON.stringify(sg(i,r.v7_relativeSplatPath));return w.useMemo(()=>ag(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function OP(e,t){return IP(e,t)}function IP(e,t,n,r){fi()||ue(!1);let{navigator:i}=w.useContext(en),{matches:o}=w.useContext(Nn),s=o[o.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=gi(),c;if(t){var d;let p=typeof t=="string"?hr(t):t;l==="/"||(d=p.pathname)!=null&&d.startsWith(l)||ue(!1),c=p}else c=u;let h=c.pathname||"/",m=h;if(l!=="/"){let p=l.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(p.length).join("/")}let f=tP(e,{pathname:m}),g=_P(f&&f.map(p=>Object.assign({},p,{params:Object.assign({},a,p.params),pathname:Zt([l,i.encodeLocation?i.encodeLocation(p.pathname).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?l:Zt([l,i.encodeLocation?i.encodeLocation(p.pathnameBase).pathname:p.pathnameBase])})),o,n,r);return t&&g?w.createElement(Xo.Provider,{value:{location:hi({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Jt.Pop}},g):g}function RP(){let e=FP(),t=SP(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:i},n):null,null)}const PP=w.createElement(RP,null);class TP extends w.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?w.createElement(Nn.Provider,{value:this.props.routeContext},w.createElement(ug.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function NP(e){let{routeContext:t,match:n,children:r}=e,i=w.useContext(Ko);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement(Nn.Provider,{value:t},r)}function _P(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let c=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);c>=0||ue(!1),s=s.slice(0,Math.min(s.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,d,h)=>{let m,f=!1,g=null,p=null;n&&(m=a&&d.route.id?a[d.route.id]:void 0,g=d.route.errorElement||PP,l&&(u<0&&h===0?(DP("route-fallback"),f=!0,p=null):u===h&&(f=!0,p=d.route.hydrateFallbackElement||null)));let v=t.concat(s.slice(0,h+1)),b=()=>{let S;return m?S=g:f?S=p:d.route.Component?S=w.createElement(d.route.Component,null):d.route.element?S=d.route.element:S=c,w.createElement(NP,{match:d,routeContext:{outlet:c,matches:v,isDataRoute:n!=null},children:S})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?w.createElement(TP,{location:n.location,revalidation:n.revalidation,component:g,error:m,children:b(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):b()},null)}var hg=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(hg||{}),fg=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(fg||{});function AP(e){let t=w.useContext(Ko);return t||ue(!1),t}function VP(e){let t=w.useContext(cg);return t||ue(!1),t}function LP(e){let t=w.useContext(Nn);return t||ue(!1),t}function gg(e){let t=LP(),n=t.matches[t.matches.length-1];return n.route.id||ue(!1),n.route.id}function FP(){var e;let t=w.useContext(ug),n=VP(),r=gg();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function zP(){let{router:e}=AP(hg.UseNavigateStable),t=gg(fg.UseNavigateStable),n=w.useRef(!1);return dg(()=>{n.current=!0}),w.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,hi({fromRouteId:t},o)))},[e,t])}const pg={};function DP(e,t,n){pg[e]||(pg[e]=!0)}function MP(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function hl(e){ue(!1)}function BP(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Jt.Pop,navigator:o,static:s=!1,future:a}=e;fi()&&ue(!1);let l=t.replace(/^\/*/,"/"),u=w.useMemo(()=>({basename:l,navigator:o,static:s,future:hi({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof r=="string"&&(r=hr(r));let{pathname:c="/",search:d="",hash:h="",state:m=null,key:f="default"}=r,g=w.useMemo(()=>{let p=fr(c,l);return p==null?null:{location:{pathname:p,search:d,hash:h,state:m,key:f},navigationType:i}},[l,c,d,h,m,f,i]);return g==null?null:w.createElement(en.Provider,{value:u},w.createElement(Xo.Provider,{children:n,value:g}))}function $P(e){let{children:t,location:n}=e;return OP(fl(t),n)}new Promise(()=>{});function fl(e,t){t===void 0&&(t=[]);let n=[];return w.Children.forEach(e,(r,i)=>{if(!w.isValidElement(r))return;let o=[...t,i];if(r.type===w.Fragment){n.push.apply(n,fl(r.props.children,o));return}r.type!==hl&&ue(!1),!r.props.index||!r.props.children||ue(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=fl(r.props.children,o)),n.push(s)}),n}/** + */function Ci(){return Ci=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),w.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=zg(c,JSON.parse(s),o,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:nn([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,s,o,e])}function ss(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=w.useContext(rn),{matches:i}=w.useContext(Mn),{pathname:o}=wi(),s=JSON.stringify(Lg(i,r.v7_relativeSplatPath));return w.useMemo(()=>zg(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function lP(e,t){return cP(e,t)}function cP(e,t,n,r){Si()||de(!1);let{navigator:i}=w.useContext(rn),{matches:o}=w.useContext(Mn),s=o[o.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c=wi(),u;if(t){var d;let p=typeof t=="string"?Sr(t):t;l==="/"||(d=p.pathname)!=null&&d.startsWith(l)||de(!1),u=p}else u=c;let h=u.pathname||"/",m=h;if(l!=="/"){let p=l.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(p.length).join("/")}let f=z2(e,{pathname:m}),g=gP(f&&f.map(p=>Object.assign({},p,{params:Object.assign({},a,p.params),pathname:nn([l,i.encodeLocation?i.encodeLocation(p.pathname).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?l:nn([l,i.encodeLocation?i.encodeLocation(p.pathnameBase).pathname:p.pathnameBase])})),o,n,r);return t&&g?w.createElement(os.Provider,{value:{location:Ci({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:tn.Pop}},g):g}function uP(){let e=bP(),t=rP(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:i},n):null,null)}const dP=w.createElement(uP,null);class hP extends w.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?w.createElement(Mn.Provider,{value:this.props.routeContext},w.createElement($g.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function fP(e){let{routeContext:t,match:n,children:r}=e,i=w.useContext(is);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement(Mn.Provider,{value:t},r)}function gP(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let u=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);u>=0||de(!1),s=s.slice(0,Math.min(s.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((u,d,h)=>{let m,f=!1,g=null,p=null;n&&(m=a&&d.route.id?a[d.route.id]:void 0,g=d.route.errorElement||dP,l&&(c<0&&h===0?(xP("route-fallback"),f=!0,p=null):c===h&&(f=!0,p=d.route.hydrateFallbackElement||null)));let b=t.concat(s.slice(0,h+1)),y=()=>{let C;return m?C=g:f?C=p:d.route.Component?C=w.createElement(d.route.Component,null):d.route.element?C=d.route.element:C=u,w.createElement(fP,{match:d,routeContext:{outlet:u,matches:b,isDataRoute:n!=null},children:C})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?w.createElement(hP,{location:n.location,revalidation:n.revalidation,component:g,error:m,children:y(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):y()},null)}var jg=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(jg||{}),Wg=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Wg||{});function pP(e){let t=w.useContext(is);return t||de(!1),t}function mP(e){let t=w.useContext(Mg);return t||de(!1),t}function vP(e){let t=w.useContext(Mn);return t||de(!1),t}function Hg(e){let t=vP(),n=t.matches[t.matches.length-1];return n.route.id||de(!1),n.route.id}function bP(){var e;let t=w.useContext($g),n=mP(),r=Hg();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function yP(){let{router:e}=pP(jg.UseNavigateStable),t=Hg(Wg.UseNavigateStable),n=w.useRef(!1);return Bg(()=>{n.current=!0}),w.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ci({fromRouteId:t},o)))},[e,t])}const Ug={};function xP(e,t,n){Ug[e]||(Ug[e]=!0)}function CP(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Il(e){de(!1)}function SP(e){let{basename:t="/",children:n=null,location:r,navigationType:i=tn.Pop,navigator:o,static:s=!1,future:a}=e;Si()&&de(!1);let l=t.replace(/^\/*/,"/"),c=w.useMemo(()=>({basename:l,navigator:o,static:s,future:Ci({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof r=="string"&&(r=Sr(r));let{pathname:u="/",search:d="",hash:h="",state:m=null,key:f="default"}=r,g=w.useMemo(()=>{let p=wr(u,l);return p==null?null:{location:{pathname:p,search:d,hash:h,state:m,key:f},navigationType:i}},[l,u,d,h,m,f,i]);return g==null?null:w.createElement(rn.Provider,{value:c},w.createElement(os.Provider,{children:n,value:g}))}function wP(e){let{children:t,location:n}=e;return lP(Rl(t),n)}new Promise(()=>{});function Rl(e,t){t===void 0&&(t=[]);let n=[];return w.Children.forEach(e,(r,i)=>{if(!w.isValidElement(r))return;let o=[...t,i];if(r.type===w.Fragment){n.push.apply(n,Rl(r.props.children,o));return}r.type!==Il&&de(!1),!r.props.index||!r.props.children||de(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Rl(r.props.children,o)),n.push(s)}),n}/** * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. @@ -53,7 +53,7 @@ * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Qo(){return Qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function jP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function WP(e,t){return e.button===0&&(!t||t==="_self")&&!jP(e)}const HP=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],UP=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],GP="6";try{window.__reactRouterVersion=GP}catch{}const qP=w.createContext({isTransitioning:!1}),vg=w["startTransition"];function KP(e){let{basename:t,children:n,future:r,window:i}=e,o=w.useRef();o.current==null&&(o.current=JR({window:i,v5Compat:!0}));let s=o.current,[a,l]=w.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=w.useCallback(d=>{u&&vg?vg(()=>l(d)):l(d)},[l,u]);return w.useLayoutEffect(()=>s.listen(c),[s,c]),w.useEffect(()=>MP(r),[r]),w.createElement(BP,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const XP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",YP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,QP=w.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:u,preventScrollReset:c,viewTransition:d}=t,h=mg(t,HP),{basename:m}=w.useContext(en),f,g=!1;if(typeof u=="string"&&YP.test(u)&&(f=u,XP))try{let S=new URL(window.location.href),y=u.startsWith("//")?new URL(S.protocol+u):new URL(u),E=fr(y.pathname,m);y.origin===S.origin&&E!=null?u=E+y.search+y.hash:g=!0}catch{}let p=wP(u,{relative:i}),v=e2(u,{replace:s,state:a,target:l,preventScrollReset:c,relative:i,viewTransition:d});function b(S){r&&r(S),S.defaultPrevented||v(S)}return w.createElement("a",Qo({},h,{href:f||p,onClick:g||o?r:b,ref:n,target:l}))}),JP=w.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:s=!1,style:a,to:l,viewTransition:u,children:c}=t,d=mg(t,UP),h=Yo(l,{relative:d.relative}),m=gi(),f=w.useContext(cg),{navigator:g,basename:p}=w.useContext(en),v=f!=null&&t2(h)&&u===!0,b=g.encodeLocation?g.encodeLocation(h).pathname:h.pathname,S=m.pathname,y=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;i||(S=S.toLowerCase(),y=y?y.toLowerCase():null,b=b.toLowerCase()),y&&p&&(y=fr(y,p)||y);const E=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let P=S===b||!s&&S.startsWith(b)&&S.charAt(E)==="/",N=y!=null&&(y===b||!s&&y.startsWith(b)&&y.charAt(b.length)==="/"),O={isActive:P,isPending:N,isTransitioning:v},I=P?r:void 0,R;typeof o=="function"?R=o(O):R=[o,P?"active":null,N?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let z=typeof a=="function"?a(O):a;return w.createElement(QP,Qo({},d,{"aria-current":I,className:R,ref:n,style:z,to:l,viewTransition:u}),typeof c=="function"?c(O):c)});var gl;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(gl||(gl={}));var bg;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(bg||(bg={}));function ZP(e){let t=w.useContext(Ko);return t||ue(!1),t}function e2(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:a}=t===void 0?{}:t,l=kP(),u=gi(),c=Yo(e,{relative:s});return w.useCallback(d=>{if(WP(d,n)){d.preventDefault();let h=r!==void 0?r:qo(u)===qo(c);l(e,{replace:h,state:i,preventScrollReset:o,relative:s,viewTransition:a})}},[u,l,c,r,i,n,e,o,s,a])}function t2(e,t){t===void 0&&(t={});let n=w.useContext(qP);n==null&&ue(!1);let{basename:r}=ZP(gl.useViewTransitionState),i=Yo(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=fr(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=fr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ul(i.pathname,s)!=null||ul(i.pathname,o)!=null}const n2="UiServiceWorker",r2=e=>[n2],i2="UiServiceJobs",o2=e=>[i2];class yg{constructor(){qe(this,"_fns");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 xg={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}};class Sg extends Error{constructor(n,r,i){super(i);qe(this,"url");qe(this,"status");qe(this,"statusText");qe(this,"body");qe(this,"request");this.name="ApiError",this.url=r.url,this.status=r.status,this.statusText=r.statusText,this.body=r.body,this.request=n}}class s2 extends Error{constructor(t){super(t),this.name="CancelError"}get isCancelled(){return!0}}class a2{constructor(t){qe(this,"_isResolved");qe(this,"_isRejected");qe(this,"_isCancelled");qe(this,"cancelHandlers");qe(this,"promise");qe(this,"_resolve");qe(this,"_reject");this._isResolved=!1,this._isRejected=!1,this._isCancelled=!1,this.cancelHandlers=[],this.promise=new Promise((n,r)=>{this._resolve=n,this._reject=r;const i=a=>{this._isResolved||this._isRejected||this._isCancelled||(this._isResolved=!0,this._resolve&&this._resolve(a))},o=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(i,o,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 s2("Request aborted"))}}get isCancelled(){return this._isCancelled}}const Jo=e=>typeof e=="string",pl=e=>Jo(e)&&e!=="",Cg=e=>e instanceof Blob,l2=e=>e instanceof FormData,wg=e=>e>=200&&e<300,c2=e=>{try{return btoa(e)}catch{return Buffer.from(e).toString("base64")}},u2=e=>{const t=[],n=(i,o)=>{t.push(`${encodeURIComponent(i)}=${encodeURIComponent(String(o))}`)},r=(i,o)=>{o!=null&&(o instanceof Date?n(i,o.toISOString()):Array.isArray(o)?o.forEach(s=>r(i,s)):typeof o=="object"?Object.entries(o).forEach(([s,a])=>r(`${i}[${s}]`,a)):n(i,o))};return Object.entries(e).forEach(([i,o])=>r(i,o)),t.length?`?${t.join("&")}`:""},d2=(e,t)=>{const n=encodeURI,r=t.url.replace("{api-version}",e.VERSION).replace(/{(.*?)}/g,(o,s)=>{var a;return(a=t.path)!=null&&a.hasOwnProperty(s)?n(String(t.path[s])):o}),i=e.BASE+r;return t.query?i+u2(t.query):i},h2=e=>{if(e.formData){const t=new FormData,n=(r,i)=>{Jo(i)||Cg(i)?t.append(r,i):t.append(r,JSON.stringify(i))};return Object.entries(e.formData).filter(([,r])=>r!=null).forEach(([r,i])=>{Array.isArray(i)?i.forEach(o=>n(r,o)):n(r,i)}),t}},Zo=async(e,t)=>t,f2=async(e,t)=>{const[n,r,i,o]=await Promise.all([Zo(t,e.TOKEN),Zo(t,e.USERNAME),Zo(t,e.PASSWORD),Zo(t,e.HEADERS)]),s=Object.entries({Accept:"application/json",...o,...t.headers}).filter(([,a])=>a!=null).reduce((a,[l,u])=>({...a,[l]:String(u)}),{});if(pl(n)&&(s.Authorization=`Bearer ${n}`),pl(r)&&pl(i)){const a=c2(`${r}:${i}`);s.Authorization=`Basic ${a}`}return t.body!==void 0?t.mediaType?s["Content-Type"]=t.mediaType:Cg(t.body)?s["Content-Type"]=t.body.type||"application/octet-stream":Jo(t.body)?s["Content-Type"]="text/plain":l2(t.body)||(s["Content-Type"]="application/json"):t.formData!==void 0&&t.mediaType&&(s["Content-Type"]=t.mediaType),s},g2=e=>{if(e.body)return e.body},p2=async(e,t,n,r,i,o,s,a)=>{const l=new AbortController;let u={data:r??i,headers:o,method:t.method,signal:l.signal,url:n,withCredentials:e.WITH_CREDENTIALS};s(()=>l.abort());for(const c of e.interceptors.request._fns)u=await c(u);try{return await a.request(u)}catch(c){const d=c;if(d.response)return d.response;throw c}},m2=(e,t)=>{if(t){const n=e.headers[t];if(Jo(n))return n}},v2=e=>{if(e.status!==204)return e.data},b2=(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 i=t.status??"unknown",o=t.statusText??"unknown",s=(()=>{try{return JSON.stringify(t.body,null,2)}catch{return}})();throw new Sg(e,t,`Generic Error: status: ${i}; status text: ${o}; body: ${s}`)}},kg=(e,t,n=ce)=>new a2(async(r,i,o)=>{try{const s=d2(e,t),a=h2(t),l=g2(t),u=await f2(e,t);if(!o.isCancelled){let c=await p2(e,t,s,l,a,u,o,n);for(const g of e.interceptors.response._fns)c=await g(c);const d=v2(c),h=m2(c,t.responseHeader);let m=d;t.responseTransformer&&wg(c.status)&&(m=await t.responseTransformer(d));const f={url:s,ok:wg(c.status),status:c.status,statusText:c.statusText,body:h??m};b2(t,f),r(f.body)}}catch(s){i(s)}});class Eg{static worker(){return kg(xg,{method:"GET",url:"/edge_worker/ui/worker"})}static jobs(){return kg(xg,{method:"GET",url:"/edge_worker/ui/jobs"})}}const y2=(e,t)=>hf({queryKey:r2(),queryFn:()=>Eg.worker(),...t}),x2=(e,t)=>hf({queryKey:o2(),queryFn:()=>Eg.jobs(),...t});var Og={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Ig=A.createContext&&A.createContext(Og),S2=["attr","size","title"];function C2(e,t){if(e==null)return{};var n=w2(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function w2(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 es(){return es=Object.assign?Object.assign.bind():function(e){for(var t=1;tA.createElement(t.tag,ts({key:n},t.attr),Pg(t.child)))}function me(e){return t=>A.createElement(I2,es({attr:ts({},e.attr)},t),Pg(e.child))}function I2(e){var t=n=>{var{attr:r,size:i,title:o}=e,s=C2(e,S2),a=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),A.createElement("svg",es({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:l,style:ts(ts({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&A.createElement("title",null,o),e.children)};return Ig!==void 0?A.createElement(Ig.Consumer,null,n=>t(n)):t(Og)}function R2(e){return me({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 P2(e){return me({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 Tg(e){return me({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 T2(e){return me({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 N2(e){return me({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 _2(e){return me({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 A2=A.forwardRef((e,t)=>C.jsx(_O,{"aria-label":"Close",ref:t,variant:"ghost",...e,children:e.children??C.jsx(_2,{})})),V2=A.forwardRef((e,t)=>{const{children:n,closable:r,endElement:i,icon:o,onClose:s,startElement:a,title:l,...u}=e;return C.jsxs(yO,{ref:t,...u,alignItems:"center",children:[a??C.jsx(wO,{children:o}),n?C.jsxs(SO,{children:[C.jsx($h,{children:l}),C.jsx(xO,{children:n})]}):C.jsx($h,{flex:"1",children:l}),i,r?C.jsx(A2,{alignSelf:"flex-start",insetEnd:"-2",onClick:s,pos:"relative",size:"sm",top:"-2"}):void 0]})}),Ng=({error:e})=>{var i;const t=e;if(!t)return;const n=(i=t.body)==null?void 0:i.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]}`)),C.jsx(V2,{status:"error",children:C.jsxs(zO,{align:"start",flexDirection:"column",gap:2,mt:-1,children:[t.status," ",t.message,r===t.message?void 0:C.jsx(Jy,{whiteSpace:"preserve",wordBreak:"break-all",children:r})]})})};function _g(e){return me({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 L2(e){return me({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 F2(e){return me({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 z2(e){return me({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 D2(e){return me({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 M2(e){return me({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 Ag(e){return me({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 B2(e){return me({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 $2(e){return me({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 j2=({state:e,...t})=>{switch(e){case"deferred":return C.jsx(Ag,{...t});case"failed":return C.jsx(B2,{...t});case"queued":return C.jsx($2,{...t});case"removed":return C.jsx(M2,{...t});case"restarting":return C.jsx(z2,{...t});case"running":return C.jsx(_g,{...t});case"scheduled":return C.jsx(F2,{...t});case"skipped":return C.jsx(D2,{...t});case"success":return C.jsx(P2,{...t});case"up_for_reschedule":return C.jsx(R2,{...t});case"up_for_retry":return C.jsx(N2,{...t});case"upstream_failed":return C.jsx(T2,{...t});default:return C.jsx(Tg,{...t})}},W2=w.forwardRef(({children:e,state:t,...n},r)=>C.jsxs(jh,{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:C.jsx(j2,{state:t}),e]}));/*! + */function as(){return as=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function kP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function EP(e,t){return e.button===0&&(!t||t==="_self")&&!kP(e)}const OP=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],IP=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],RP="6";try{window.__reactRouterVersion=RP}catch{}const PP=w.createContext({isTransitioning:!1}),qg=w["startTransition"];function TP(e){let{basename:t,children:n,future:r,window:i}=e,o=w.useRef();o.current==null&&(o.current=V2({window:i,v5Compat:!0}));let s=o.current,[a,l]=w.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},u=w.useCallback(d=>{c&&qg?qg(()=>l(d)):l(d)},[l,c]);return w.useLayoutEffect(()=>s.listen(u),[s,u]),w.useEffect(()=>CP(r),[r]),w.createElement(SP,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const NP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_P=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,AP=w.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,h=Gg(t,OP),{basename:m}=w.useContext(rn),f,g=!1;if(typeof c=="string"&&_P.test(c)&&(f=c,NP))try{let C=new URL(window.location.href),x=c.startsWith("//")?new URL(C.protocol+c):new URL(c),E=wr(x.pathname,m);x.origin===C.origin&&E!=null?c=E+x.search+x.hash:g=!0}catch{}let p=oP(c,{relative:i}),b=LP(c,{replace:s,state:a,target:l,preventScrollReset:u,relative:i,viewTransition:d});function y(C){r&&r(C),C.defaultPrevented||b(C)}return w.createElement("a",as({},h,{href:f||p,onClick:g||o?r:y,ref:n,target:l}))}),VP=w.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:s=!1,style:a,to:l,viewTransition:c,children:u}=t,d=Gg(t,IP),h=ss(l,{relative:d.relative}),m=wi(),f=w.useContext(Mg),{navigator:g,basename:p}=w.useContext(rn),b=f!=null&&zP(h)&&c===!0,y=g.encodeLocation?g.encodeLocation(h).pathname:h.pathname,C=m.pathname,x=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;i||(C=C.toLowerCase(),x=x?x.toLowerCase():null,y=y.toLowerCase()),x&&p&&(x=wr(x,p)||x);const E=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let P=C===y||!s&&C.startsWith(y)&&C.charAt(E)==="/",_=x!=null&&(x===y||!s&&x.startsWith(y)&&x.charAt(y.length)==="/"),O={isActive:P,isPending:_,isTransitioning:b},I=P?r:void 0,R;typeof o=="function"?R=o(O):R=[o,P?"active":null,_?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let z=typeof a=="function"?a(O):a;return w.createElement(AP,as({},d,{"aria-current":I,className:R,ref:n,style:z,to:l,viewTransition:c}),typeof u=="function"?u(O):u)});var Pl;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Pl||(Pl={}));var Kg;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Kg||(Kg={}));function FP(e){let t=w.useContext(is);return t||de(!1),t}function LP(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:a}=t===void 0?{}:t,l=sP(),c=wi(),u=ss(e,{relative:s});return w.useCallback(d=>{if(EP(d,n)){d.preventDefault();let h=r!==void 0?r:rs(c)===rs(u);l(e,{replace:h,state:i,preventScrollReset:o,relative:s,viewTransition:a})}},[c,l,u,r,i,n,e,o,s,a])}function zP(e,t){t===void 0&&(t={});let n=w.useContext(PP);n==null&&de(!1);let{basename:r}=FP(Pl.useViewTransitionState),i=ss(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=wr(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=wr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return El(i.pathname,s)!=null||El(i.pathname,o)!=null}const DP="UiServiceWorker",MP=e=>[DP],$P="UiServiceJobs",BP=e=>[$P];class Xg{constructor(){Ke(this,"_fns");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 ls={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 Xg,response:new Xg}};class Yg extends Error{constructor(n,r,i){super(i);Ke(this,"url");Ke(this,"status");Ke(this,"statusText");Ke(this,"body");Ke(this,"request");this.name="ApiError",this.url=r.url,this.status=r.status,this.statusText=r.statusText,this.body=r.body,this.request=n}}class jP extends Error{constructor(t){super(t),this.name="CancelError"}get isCancelled(){return!0}}class WP{constructor(t){Ke(this,"_isResolved");Ke(this,"_isRejected");Ke(this,"_isCancelled");Ke(this,"cancelHandlers");Ke(this,"promise");Ke(this,"_resolve");Ke(this,"_reject");this._isResolved=!1,this._isRejected=!1,this._isCancelled=!1,this.cancelHandlers=[],this.promise=new Promise((n,r)=>{this._resolve=n,this._reject=r;const i=a=>{this._isResolved||this._isRejected||this._isCancelled||(this._isResolved=!0,this._resolve&&this._resolve(a))},o=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(i,o,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 jP("Request aborted"))}}get isCancelled(){return this._isCancelled}}const cs=e=>typeof e=="string",Tl=e=>cs(e)&&e!=="",Qg=e=>e instanceof Blob,HP=e=>e instanceof FormData,Jg=e=>e>=200&&e<300,UP=e=>{try{return btoa(e)}catch{return Buffer.from(e).toString("base64")}},GP=e=>{const t=[],n=(i,o)=>{t.push(`${encodeURIComponent(i)}=${encodeURIComponent(String(o))}`)},r=(i,o)=>{o!=null&&(o instanceof Date?n(i,o.toISOString()):Array.isArray(o)?o.forEach(s=>r(i,s)):typeof o=="object"?Object.entries(o).forEach(([s,a])=>r(`${i}[${s}]`,a)):n(i,o))};return Object.entries(e).forEach(([i,o])=>r(i,o)),t.length?`?${t.join("&")}`:""},qP=(e,t)=>{const n=encodeURI,r=t.url.replace("{api-version}",e.VERSION).replace(/{(.*?)}/g,(o,s)=>{var a;return(a=t.path)!=null&&a.hasOwnProperty(s)?n(String(t.path[s])):o}),i=e.BASE+r;return t.query?i+GP(t.query):i},KP=e=>{if(e.formData){const t=new FormData,n=(r,i)=>{cs(i)||Qg(i)?t.append(r,i):t.append(r,JSON.stringify(i))};return Object.entries(e.formData).filter(([,r])=>r!=null).forEach(([r,i])=>{Array.isArray(i)?i.forEach(o=>n(r,o)):n(r,i)}),t}},us=async(e,t)=>t,XP=async(e,t)=>{const[n,r,i,o]=await Promise.all([us(t,e.TOKEN),us(t,e.USERNAME),us(t,e.PASSWORD),us(t,e.HEADERS)]),s=Object.entries({Accept:"application/json",...o,...t.headers}).filter(([,a])=>a!=null).reduce((a,[l,c])=>({...a,[l]:String(c)}),{});if(Tl(n)&&(s.Authorization=`Bearer ${n}`),Tl(r)&&Tl(i)){const a=UP(`${r}:${i}`);s.Authorization=`Basic ${a}`}return t.body!==void 0?t.mediaType?s["Content-Type"]=t.mediaType:Qg(t.body)?s["Content-Type"]=t.body.type||"application/octet-stream":cs(t.body)?s["Content-Type"]="text/plain":HP(t.body)||(s["Content-Type"]="application/json"):t.formData!==void 0&&t.mediaType&&(s["Content-Type"]=t.mediaType),s},YP=e=>{if(e.body)return e.body},QP=async(e,t,n,r,i,o,s,a)=>{const l=new AbortController;let c={data:r??i,headers:o,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}},JP=(e,t)=>{if(t){const n=e.headers[t];if(cs(n))return n}},ZP=e=>{if(e.status!==204)return e.data},eT=(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 Yg(e,t,r);if(!t.ok){const i=t.status??"unknown",o=t.statusText??"unknown",s=(()=>{try{return JSON.stringify(t.body,null,2)}catch{return}})();throw new Yg(e,t,`Generic Error: status: ${i}; status text: ${o}; body: ${s}`)}},ds=(e,t,n=ue)=>new WP(async(r,i,o)=>{try{const s=qP(e,t),a=KP(t),l=YP(t),c=await XP(e,t);if(!o.isCancelled){let u=await QP(e,t,s,l,a,c,o,n);for(const g of e.interceptors.response._fns)u=await g(u);const d=ZP(u),h=JP(u,t.responseHeader);let m=d;t.responseTransformer&&Jg(u.status)&&(m=await t.responseTransformer(d));const f={url:s,ok:Jg(u.status),status:u.status,statusText:u.statusText,body:h??m};eT(t,f),r(f.body)}}catch(s){i(s)}});class hs{static worker(){return ds(ls,{method:"GET",url:"/edge_worker/ui/worker"})}static jobs(){return ds(ls,{method:"GET",url:"/edge_worker/ui/jobs"})}static requestWorkerMaintenance(t){return ds(ls,{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 exitWorkerMaintenance(t){return ds(ls,{method:"DELETE",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}}const tT=(e,t)=>Bf({queryKey:MP(),queryFn:()=>hs.worker(),...t}),nT=(e,t)=>Bf({queryKey:BP(),queryFn:()=>hs.jobs(),...t}),rT=e=>jf({mutationFn:({requestBody:t,workerName:n})=>hs.requestWorkerMaintenance({requestBody:t,workerName:n}),...e}),iT=e=>jf({mutationFn:({workerName:t})=>hs.exitWorkerMaintenance({workerName:t}),...e});var Zg={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ep=T.createContext&&T.createContext(Zg),oT=["attr","size","title"];function sT(e,t){if(e==null)return{};var n=aT(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function aT(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 fs(){return fs=Object.assign?Object.assign.bind():function(e){for(var t=1;tT.createElement(t.tag,gs({key:n},t.attr),np(t.child)))}function le(e){return t=>T.createElement(dT,fs({attr:gs({},e.attr)},t),np(e.child))}function dT(e){var t=n=>{var{attr:r,size:i,title:o}=e,s=sT(e,oT),a=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),T.createElement("svg",fs({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:l,style:gs(gs({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&T.createElement("title",null,o),e.children)};return ep!==void 0?T.createElement(ep.Consumer,null,n=>t(n)):t(Zg)}function hT(e){return le({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 fT(e){return le({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 rp(e){return le({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 gT(e){return le({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 pT(e){return le({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 mT(e){return le({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 vT=T.forwardRef((e,t)=>S.jsx(hi,{"aria-label":"Close",ref:t,variant:"ghost",...e,children:e.children??S.jsx(mT,{})})),bT=T.forwardRef((e,t)=>{const{children:n,closable:r,endElement:i,icon:o,onClose:s,startElement:a,title:l,...c}=e;return S.jsxs(rI,{ref:t,...c,alignItems:"center",children:[a??S.jsx(aI,{children:o}),n?S.jsxs(oI,{children:[S.jsx(uf,{children:l}),S.jsx(iI,{children:n})]}):S.jsx(uf,{flex:"1",children:l}),i,r?S.jsx(vT,{alignSelf:"flex-start",insetEnd:"-2",onClick:s,pos:"relative",size:"sm",top:"-2"}):void 0]})}),ip=({error:e})=>{var i;const t=e;if(!t)return;const n=(i=t.body)==null?void 0:i.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]}`)),S.jsx(bT,{status:"error",children:S.jsxs(gf,{align:"start",flexDirection:"column",gap:2,mt:-1,children:[t.status," ",t.message,r===t.message?void 0:S.jsx(Vy,{whiteSpace:"preserve",wordBreak:"break-all",children:r})]})})};function op(e){return le({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 yT(e){return le({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 xT(e){return le({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 CT(e){return le({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 ST(e){return le({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 wT(e){return le({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 sp(e){return le({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 kT(e){return le({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 ET(e){return le({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 OT=({state:e,...t})=>{switch(e){case"deferred":return S.jsx(sp,{...t});case"failed":return S.jsx(kT,{...t});case"queued":return S.jsx(ET,{...t});case"removed":return S.jsx(wT,{...t});case"restarting":return S.jsx(CT,{...t});case"running":return S.jsx(op,{...t});case"scheduled":return S.jsx(xT,{...t});case"skipped":return S.jsx(ST,{...t});case"success":return S.jsx(fT,{...t});case"up_for_reschedule":return S.jsx(hT,{...t});case"up_for_retry":return S.jsx(pT,{...t});case"upstream_failed":return S.jsx(gT,{...t});default:return S.jsx(rp,{...t})}},IT=w.forwardRef(({children:e,state:t,...n},r)=>S.jsxs(df,{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:S.jsx(OT,{state:t}),e]}));/*! * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -70,7 +70,7 @@ * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - */const Vg=5e3;/*! + */const ap=5e3;/*! * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -87,7 +87,7 @@ * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - */const H2=e=>{const[t,n]=A.useState(0);return A.useEffect(()=>{if(!e.current)return;const r=new ResizeObserver(i=>{for(const o of i)n(o.contentRect.width)});return r.observe(e.current),()=>{r.disconnect()}},[e]),t};/*! + */const RT=e=>{const[t,n]=T.useState(0);return T.useEffect(()=>{if(!e.current)return;const r=new ResizeObserver(i=>{for(const o of i)n(o.contentRect.width)});return r.observe(e.current),()=>{r.disconnect()}},[e]),t};/*! * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -104,7 +104,7 @@ * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - */const Lg="token",U2=()=>{const e=document.cookie.split(";");for(const t of e){const[n,r]=t.split("=");if((n==null?void 0:n.trim())==="_token"&&r!==void 0)return localStorage.setItem(Lg,r),document.cookie="_token=; expires=Sat, 01 Jan 2000 00:00:00 UTC; path=/;",r}},G2=e=>{const t=localStorage.getItem(Lg)??U2();return t!==void 0&&(e.headers.Authorization=`Bearer ${t}`),e},q2=()=>{const{data:e,error:t}=x2(void 0,{enabled:!0,refetchInterval:Vg});return e?C.jsx($t,{p:2,children:C.jsxs(Hh,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[C.jsx(Uh,{children:C.jsxs(_o,{children:[C.jsx(Ce,{children:"Dag ID"}),C.jsx(Ce,{children:"Run ID"}),C.jsx(Ce,{children:"Task ID"}),C.jsx(Ce,{children:"Map Index"}),C.jsx(Ce,{children:"Try Number"}),C.jsx(Ce,{children:"State"}),C.jsx(Ce,{children:"Queue"}),C.jsx(Ce,{children:"Queued DTTM"}),C.jsx(Ce,{children:"Edge Worker"}),C.jsx(Ce,{children:"Last Update"})]})}),C.jsx(Gh,{children:e.jobs.map(n=>C.jsxs(_o,{children:[C.jsx(we,{children:n.dag_id}),C.jsx(we,{children:n.run_id}),C.jsx(we,{children:n.task_id}),C.jsx(we,{children:n.map_index}),C.jsx(we,{children:n.try_number}),C.jsx(we,{children:C.jsx(W2,{state:n.state,children:n.state})}),C.jsx(we,{children:n.queue}),C.jsx(we,{children:n.queued_dttm}),C.jsx(we,{children:n.edge_worker}),C.jsx(we,{children:n.last_update})]},`${n.dag_id}.${n.run_id}.${n.task_id}.${n.map_index}.${n.try_number}`))})]})}):t?C.jsxs($t,{p:2,children:[C.jsx("p",{children:"Unable to load data:"}),C.jsx(Ng,{error:t})]}):C.jsx($t,{p:2,children:"Loading..."})};function K2(e){return me({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 X2(e){return me({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 Y2(e){return me({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)}function Q2(e){return me({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 J2(e){return me({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 Z2=({state:e,...t})=>{switch(e){case"starting":return C.jsx(Ag,{...t});case"running":return C.jsx(_g,{...t});case"idle":return C.jsx(K2,{...t});case"shutdown request":case"terminating":return C.jsx(L2,{...t});case"offline":return C.jsx(Q2,{...t});case"unknown":return C.jsx(J2,{...t});case"maintenance request":case"maintenance pending":case"maintenance exit":return C.jsx(Y2,{...t});case"maintenance mode":case"offline maintenance":return C.jsx(X2,{...t});default:return C.jsx(Tg,{...t})}},eT=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"}},tT=w.forwardRef(({children:e,state:t,...n},r)=>C.jsxs(jh,{borderRadius:"full",colorPalette:eT(t),fontSize:"sm",px:e===void 0?1:2,py:1,ref:r,variant:"solid",...n,children:[t===void 0?void 0:C.jsx(Z2,{state:t}),e]})),nT=()=>{const{data:e,error:t}=y2(void 0,{enabled:!0,refetchInterval:Vg});return e?C.jsx($t,{p:2,children:C.jsxs(Hh,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[C.jsx(Uh,{children:C.jsxs(_o,{children:[C.jsx(Ce,{children:"Worker Name"}),C.jsx(Ce,{children:"State"}),C.jsx(Ce,{children:"Queues"}),C.jsx(Ce,{children:"First Online"}),C.jsx(Ce,{children:"Last Heartbeat"}),C.jsx(Ce,{children:"Active Jobs"}),C.jsx(Ce,{children:"System Information"}),C.jsx(Ce,{children:"Operations"})]})}),C.jsx(Gh,{children:e.workers.map(n=>C.jsxs(_o,{children:[C.jsx(we,{children:n.worker_name}),C.jsx(we,{children:C.jsx(tT,{state:n.state,children:n.state})}),C.jsx(we,{children:n.queues?C.jsx("ul",{children:n.queues.map(r=>C.jsx("li",{children:r},r))}):"(default)"}),C.jsx(we,{children:n.first_online}),C.jsx(we,{children:n.last_heartbeat}),C.jsx(we,{children:n.jobs_active}),C.jsx(we,{children:n.sysinfo?C.jsx("ul",{children:Object.entries(n.sysinfo).map(([r,i])=>C.jsxs("li",{children:[r,": ",i]},r))}):"N/A"}),C.jsx(we,{children:n.maintenance_comments})]},n.worker_name))})]})}):t?C.jsxs($t,{p:2,children:[C.jsx("p",{children:"Unable to load data:"}),C.jsx(Ng,{error:t})]}):C.jsx($t,{p:2,children:"Loading..."})},rT=({tabs:e})=>{const t=A.useRef(null),n=H2(t);return C.jsx(FO,{alignItems:"center",borderBottomWidth:1,mb:2,ref:t,children:e.map(({icon:r,label:i,value:o})=>C.jsx(JP,{end:!0,title:i,to:{pathname:o},children:({isActive:s})=>C.jsx(Wh,{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?i:r})},o))})},iT=()=>{const e=[{label:"Edge Worker",value:"plugin/edge_worker"},{label:"Edge Jobs",value:"plugin/edge_jobs"}];return C.jsx($t,{p:2,children:C.jsxs(KP,{children:[C.jsx(rT,{tabs:e}),C.jsxs($P,{children:[C.jsx(hl,{path:"plugin/edge_worker",element:C.jsx(nT,{})}),C.jsx(hl,{path:"plugin/edge_jobs",element:C.jsx(q2,{})})]})]})})};/*! + */const lp="token",PT=()=>{const e=document.cookie.split(";");for(const t of e){const[n,r]=t.split("=");if((n==null?void 0:n.trim())==="_token"&&r!==void 0)return localStorage.setItem(lp,r),document.cookie="_token=; expires=Sat, 01 Jan 2000 00:00:00 UTC; path=/;",r}},TT=e=>{const t=localStorage.getItem(lp)??PT();return t!==void 0&&(e.headers.Authorization=`Bearer ${t}`),e},NT=()=>{const{data:e,error:t}=nT(void 0,{enabled:!0,refetchInterval:ap});return e?S.jsx(At,{p:2,children:S.jsxs(mf,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[S.jsx(vf,{children:S.jsxs(Bo,{children:[S.jsx(ke,{children:"Dag ID"}),S.jsx(ke,{children:"Run ID"}),S.jsx(ke,{children:"Task ID"}),S.jsx(ke,{children:"Map Index"}),S.jsx(ke,{children:"Try Number"}),S.jsx(ke,{children:"State"}),S.jsx(ke,{children:"Queue"}),S.jsx(ke,{children:"Queued DTTM"}),S.jsx(ke,{children:"Edge Worker"}),S.jsx(ke,{children:"Last Update"})]})}),S.jsx(bf,{children:e.jobs.map(n=>S.jsxs(Bo,{children:[S.jsx(Ee,{children:n.dag_id}),S.jsx(Ee,{children:n.run_id}),S.jsx(Ee,{children:n.task_id}),S.jsx(Ee,{children:n.map_index}),S.jsx(Ee,{children:n.try_number}),S.jsx(Ee,{children:S.jsx(IT,{state:n.state,children:n.state})}),S.jsx(Ee,{children:n.queue}),S.jsx(Ee,{children:n.queued_dttm}),S.jsx(Ee,{children:n.edge_worker}),S.jsx(Ee,{children:n.last_update})]},`${n.dag_id}.${n.run_id}.${n.task_id}.${n.map_index}.${n.try_number}`))})]})}):t?S.jsxs(At,{p:2,children:[S.jsx("p",{children:"Unable to load data:"}),S.jsx(ip,{error:t})]}):S.jsx(At,{p:2,children:"Loading..."})};function _T(e){return le({attr:{version:"1",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"polygon",attr:{fill:"#43A047",points:"40.6,12.1 17,35.7 7.4,26.1 4.6,29 17,41.3 43.4,14.9"},child:[]}]})(e)}function cp(e){return le({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 AT(e){return le({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)}function VT(e){return le({attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M15.854 12.854c-0-0-0-0-0-0l-4.854-4.854 4.854-4.854c0-0 0-0 0-0 0.052-0.052 0.090-0.113 0.114-0.178 0.066-0.178 0.028-0.386-0.114-0.529l-2.293-2.293c-0.143-0.143-0.351-0.181-0.529-0.114-0.065 0.024-0.126 0.062-0.178 0.114 0 0-0 0-0 0l-4.854 4.854-4.854-4.854c-0-0-0-0-0-0-0.052-0.052-0.113-0.090-0.178-0.114-0.178-0.066-0.386-0.029-0.529 0.114l-2.293 2.293c-0.143 0.143-0.181 0.351-0.114 0.529 0.024 0.065 0.062 0.126 0.114 0.178 0 0 0 0 0 0l4.854 4.854-4.854 4.854c-0 0-0 0-0 0-0.052 0.052-0.090 0.113-0.114 0.178-0.066 0.178-0.029 0.386 0.114 0.529l2.293 2.293c0.143 0.143 0.351 0.181 0.529 0.114 0.065-0.024 0.126-0.062 0.178-0.114 0-0 0-0 0-0l4.854-4.854 4.854 4.854c0 0 0 0 0 0 0.052 0.052 0.113 0.090 0.178 0.114 0.178 0.066 0.386 0.029 0.529-0.114l2.293-2.293c0.143-0.143 0.181-0.351 0.114-0.529-0.024-0.065-0.062-0.126-0.114-0.178z"},child:[]}]})(e)}function FT(e){return le({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 LT=({onCancel:e,onSubmit:t})=>{const[n,r]=T.useState(""),i=()=>{n.trim()&&t(n.trim())};return S.jsxs(pf,{gap:2,align:"stretch",children:[S.jsx(SI,{placeholder:"Enter maintenance comment (required)",value:n,onChange:o=>r(o.target.value),required:!0,maxLength:1024,size:"sm"}),S.jsxs(gf,{gap:2,children:[S.jsx(hi,{size:"sm",colorScheme:"green",onClick:i,disabled:!n.trim(),"aria-label":"Confirm Maintenance",title:"Confirm Maintenance",children:S.jsx(_T,{})}),S.jsx(hi,{size:"sm",colorScheme:"red",variant:"outline",onClick:e,"aria-label":"Cancel",title:"Cancel",children:S.jsx(VT,{})})]})]})},zT=({activeMaintenanceForm:e,onExitMaintenance:t,onRequestMaintenance:n,onSetActiveMaintenanceForm:r,worker:i})=>{const o=i.worker_name,s=i.state;let a=null;return s==="idle"||s==="running"?e===o?a=S.jsx(LT,{onSubmit:l=>n(o,l),onCancel:()=>r(null)}):a=S.jsx(el,{justifyContent:"end",children:S.jsx(hi,{size:"sm",variant:"ghost",onClick:()=>r(o),"aria-label":"Enter Maintenance",title:"Enter Maintenance",children:S.jsx(cp,{})})}):(s==="maintenance pending"||s==="maintenance mode"||s==="maintenance request"||s==="offline maintenance")&&(a=S.jsxs(pf,{gap:2,align:"stretch",children:[S.jsx(At,{fontSize:"sm",whiteSpace:"pre-wrap",children:i.maintenance_comments||"No comment"}),S.jsx(el,{justifyContent:"end",children:S.jsx(hi,{size:"sm",variant:"ghost",onClick:()=>t(o),"aria-label":"Exit Maintenance",title:"Exit Maintenance",children:S.jsx(FT,{})})})]})),a};function DT(e){return le({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 MT(e){return le({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 $T(e){return le({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 BT=({state:e,...t})=>{switch(e){case"starting":return S.jsx(sp,{...t});case"running":return S.jsx(op,{...t});case"idle":return S.jsx(DT,{...t});case"shutdown request":case"terminating":return S.jsx(yT,{...t});case"offline":return S.jsx(MT,{...t});case"unknown":return S.jsx($T,{...t});case"maintenance request":case"maintenance pending":case"maintenance exit":return S.jsx(AT,{...t});case"maintenance mode":case"offline maintenance":return S.jsx(cp,{...t});default:return S.jsx(rp,{...t})}},jT=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=w.forwardRef(({children:e,state:t,...n},r)=>S.jsxs(df,{borderRadius:"full",colorPalette:jT(t),fontSize:"sm",px:e===void 0?1:2,py:1,ref:r,variant:"solid",...n,children:[t===void 0?void 0:S.jsx(BT,{state:t}),e]})),HT=()=>{const{data:e,error:t,refetch:n}=tT(void 0,{enabled:!0,refetchInterval:ap}),[r,i]=T.useState(null),o=rT({onError:c=>{console.error("Error requesting maintenance:",c),alert(`Error requesting maintenance: ${c}`)},onSuccess:()=>{console.log("Maintenance request successful"),i(null),n()}}),s=iT({onError:c=>{console.error("Error exiting maintenance:",c),alert(`Error exiting maintenance: ${c}`)},onSuccess:()=>{console.log("Exit maintenance successful"),n()}}),a=(c,u)=>{console.log(`Requesting maintenance for worker: ${c}, comment: ${u}`),o.mutate({requestBody:{maintenance_comment:u},workerName:c})},l=c=>{console.log(`Exiting maintenance for worker: ${c}`),s.mutate({workerName:c})};return e?S.jsx(At,{p:2,children:S.jsxs(mf,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[S.jsx(vf,{children:S.jsxs(Bo,{children:[S.jsx(ke,{children:"Worker Name"}),S.jsx(ke,{children:"State"}),S.jsx(ke,{children:"Queues"}),S.jsx(ke,{children:"First Online"}),S.jsx(ke,{children:"Last Heartbeat"}),S.jsx(ke,{children:"Active Jobs"}),S.jsx(ke,{children:"System Information"}),S.jsx(ke,{children:"Operations"})]})}),S.jsx(bf,{children:e.workers.map(c=>S.jsxs(Bo,{children:[S.jsx(Ee,{children:c.worker_name}),S.jsx(Ee,{children:S.jsx(WT,{state:c.state,children:c.state})}),S.jsx(Ee,{children:c.queues?S.jsx("ul",{children:c.queues.map(u=>S.jsx("li",{children:u},u))}):"(default)"}),S.jsx(Ee,{children:c.first_online}),S.jsx(Ee,{children:c.last_heartbeat}),S.jsx(Ee,{children:c.jobs_active}),S.jsx(Ee,{children:c.sysinfo?S.jsx("ul",{children:Object.entries(c.sysinfo).map(([u,d])=>S.jsxs("li",{children:[u,": ",d]},u))}):"N/A"}),S.jsx(Ee,{children:S.jsx(zT,{worker:c,activeMaintenanceForm:r,onSetActiveMaintenanceForm:i,onRequestMaintenance:a,onExitMaintenance:l})})]},c.worker_name))})]})}):t?S.jsxs(At,{p:2,children:[S.jsx("p",{children:"Unable to load data:"}),S.jsx(ip,{error:t})]}):S.jsx(At,{p:2,children:"Loading..."})},UT=({tabs:e})=>{const t=T.useRef(null),n=RT(t);return S.jsx(el,{alignItems:"center",borderBottomWidth:1,mb:2,ref:t,children:e.map(({icon:r,label:i,value:o})=>S.jsx(VP,{end:!0,title:i,to:{pathname:o},children:({isActive:s})=>S.jsx(hf,{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?i:r})},o))})},GT=()=>{const e=[{label:"Edge Worker",value:"plugin/edge_worker"},{label:"Edge Jobs",value:"plugin/edge_jobs"}];return S.jsx(At,{p:2,children:S.jsxs(TP,{children:[S.jsx(UT,{tabs:e}),S.jsxs(wP,{children:[S.jsx(Il,{path:"plugin/edge_worker",element:S.jsx(HT,{})}),S.jsx(Il,{path:"plugin/edge_jobs",element:S.jsx(NT,{})})]})]})})};/*! * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -121,4 +121,4 @@ * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - */const tn=(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}`}}}),oT=Ia({theme:{tokens:{colors:{success:{50:{value:"#E0FFE0"},100:{value:"#C2FFC2"},200:{value:"#80FF80"},300:{value:"#42FF42"},400:{value:"#00FF00"},500:{value:"#00C200"},600:{value:"#008000"},700:{value:"#006100"},800:{value:"#004200"},900:{value:"#001F00"},950:{value:"#000F00"}},failed:((nm=(tm=(em=ot.theme)==null?void 0:em.tokens)==null?void 0:tm.colors)==null?void 0:nm.red)??{},queued:{50:{value:"#F5F5F5"},100:{value:"#EBEBEB"},200:{value:"#D4D4D4"},300:{value:"#BFBFBF"},400:{value:"#ABABAB"},500:{value:"#969696"},600:{value:"#808080"},700:{value:"#616161"},800:{value:"#404040"},900:{value:"#212121"},950:{value:"#0F0F0F"}},skipped:((om=(im=(rm=ot.theme)==null?void 0:rm.tokens)==null?void 0:im.colors)==null?void 0:om.pink)??{},up_for_reschedule:((lm=(am=(sm=ot.theme)==null?void 0:sm.tokens)==null?void 0:am.colors)==null?void 0:lm.cyan)??{},up_for_retry:((dm=(um=(cm=ot.theme)==null?void 0:cm.tokens)==null?void 0:um.colors)==null?void 0:dm.yellow)??{},upstream_failed:((gm=(fm=(hm=ot.theme)==null?void 0:hm.tokens)==null?void 0:fm.colors)==null?void 0:gm.orange)??{},running:{50:{value:"#EFFBEF"},100:{value:"#DEF7DE"},200:{value:"#B9EEB9"},300:{value:"#98E698"},400:{value:"#78DE78"},500:{value:"#53D553"},600:{value:"#32CD32"},700:{value:"#269C26"},800:{value:"#196719"},900:{value:"#0D350D"},950:{value:"#061906"}},restarting:{50:{value:"#F6EBFF"},100:{value:"#EDD6FF"},200:{value:"#D9A8FF"},300:{value:"#C880FF"},400:{value:"#B657FF"},500:{value:"#A229FF"},600:{value:"#8F00FF"},700:{value:"#6E00C2"},800:{value:"#480080"},900:{value:"#260042"},950:{value:"#11001F"}},deferred:{50:{value:"#F6F3FC"},100:{value:"#EDE7F9"},200:{value:"#DACEF3"},300:{value:"#C8B6ED"},400:{value:"#B9A1E7"},500:{value:"#A689E1"},600:{value:"#9370DB"},700:{value:"#6432C8"},800:{value:"#412182"},900:{value:"#211041"},950:{value:"#100821"}},scheduled:{50:{value:"#FBF8F4"},100:{value:"#F8F3ED"},200:{value:"#F1E7DA"},300:{value:"#E8D9C4"},400:{value:"#E1CDB2"},500:{value:"#DAC1A0"},600:{value:"#D2B48C"},700:{value:"#B9894B"},800:{value:"#7D5C31"},900:{value:"#3E2E18"},950:{value:"#21180D"}},none:{50:{value:"#F7FBFD"},100:{value:"#F3F9FB"},200:{value:"#E4F2F7"},300:{value:"#D8ECF3"},400:{value:"#C8E5EE"},500:{value:"#BDDFEB"},600:{value:"#ADD8E6"},700:{value:"#5FB2CE"},800:{value:"#30819C"},900:{value:"#18414E"},950:{value:"#0C2027"}},removed:{50:{value:"#FCFCFC"},100:{value:"#F7F7F7"},200:{value:"#F0F0F0"},300:{value:"#E8E8E8"},400:{value:"#E0E0E0"},500:{value:"#DBDBDB"},600:{value:"#D3D3D3"},700:{value:"#9E9E9E"},800:{value:"#696969"},900:{value:"#363636"},950:{value:"#1A1A1A"}}}},semanticTokens:{colors:{success:tn("success"),failed:((vm=(mm=(pm=ot.theme)==null?void 0:pm.semanticTokens)==null?void 0:mm.colors)==null?void 0:vm.red)??{},queued:tn("queued"),skipped:((xm=(ym=(bm=ot.theme)==null?void 0:bm.semanticTokens)==null?void 0:ym.colors)==null?void 0:xm.pink)??{},up_for_reschedule:((wm=(Cm=(Sm=ot.theme)==null?void 0:Sm.semanticTokens)==null?void 0:Cm.colors)==null?void 0:wm.cyan)??{},up_for_retry:((Om=(Em=(km=ot.theme)==null?void 0:km.semanticTokens)==null?void 0:Em.colors)==null?void 0:Om.yellow)??{},upstream_failed:((Pm=(Rm=(Im=ot.theme)==null?void 0:Im.semanticTokens)==null?void 0:Rm.colors)==null?void 0:Pm.orange)??{},running:tn("running"),restarting:tn("restarting"),deferred:tn("deferred"),scheduled:tn("scheduled"),none:tn("none","black"),removed:tn("removed","black")}}}}),sT=Ch(ot,oT);return()=>{ce.interceptors.request.use(G2);const e=new oI({defaultOptions:{queries:{staleTime:1/0}}});return C.jsx(Yv,{value:sT,children:C.jsx(uI,{client:e,children:C.jsx(QR,{children:C.jsx(iT,{})})})})}}); + */const on=(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=ja({theme:{tokens:{colors:{success:{50:{value:"#E0FFE0"},100:{value:"#C2FFC2"},200:{value:"#80FF80"},300:{value:"#42FF42"},400:{value:"#00FF00"},500:{value:"#00C200"},600:{value:"#008000"},700:{value:"#006100"},800:{value:"#004200"},900:{value:"#001F00"},950:{value:"#000F00"}},failed:((_m=(Nm=(Tm=st.theme)==null?void 0:Tm.tokens)==null?void 0:Nm.colors)==null?void 0:_m.red)??{},queued:{50:{value:"#F5F5F5"},100:{value:"#EBEBEB"},200:{value:"#D4D4D4"},300:{value:"#BFBFBF"},400:{value:"#ABABAB"},500:{value:"#969696"},600:{value:"#808080"},700:{value:"#616161"},800:{value:"#404040"},900:{value:"#212121"},950:{value:"#0F0F0F"}},skipped:((Fm=(Vm=(Am=st.theme)==null?void 0:Am.tokens)==null?void 0:Vm.colors)==null?void 0:Fm.pink)??{},up_for_reschedule:((Dm=(zm=(Lm=st.theme)==null?void 0:Lm.tokens)==null?void 0:zm.colors)==null?void 0:Dm.cyan)??{},up_for_retry:((Bm=($m=(Mm=st.theme)==null?void 0:Mm.tokens)==null?void 0:$m.colors)==null?void 0:Bm.yellow)??{},upstream_failed:((Hm=(Wm=(jm=st.theme)==null?void 0:jm.tokens)==null?void 0:Wm.colors)==null?void 0:Hm.orange)??{},running:{50:{value:"#EFFBEF"},100:{value:"#DEF7DE"},200:{value:"#B9EEB9"},300:{value:"#98E698"},400:{value:"#78DE78"},500:{value:"#53D553"},600:{value:"#32CD32"},700:{value:"#269C26"},800:{value:"#196719"},900:{value:"#0D350D"},950:{value:"#061906"}},restarting:{50:{value:"#F6EBFF"},100:{value:"#EDD6FF"},200:{value:"#D9A8FF"},300:{value:"#C880FF"},400:{value:"#B657FF"},500:{value:"#A229FF"},600:{value:"#8F00FF"},700:{value:"#6E00C2"},800:{value:"#480080"},900:{value:"#260042"},950:{value:"#11001F"}},deferred:{50:{value:"#F6F3FC"},100:{value:"#EDE7F9"},200:{value:"#DACEF3"},300:{value:"#C8B6ED"},400:{value:"#B9A1E7"},500:{value:"#A689E1"},600:{value:"#9370DB"},700:{value:"#6432C8"},800:{value:"#412182"},900:{value:"#211041"},950:{value:"#100821"}},scheduled:{50:{value:"#FBF8F4"},100:{value:"#F8F3ED"},200:{value:"#F1E7DA"},300:{value:"#E8D9C4"},400:{value:"#E1CDB2"},500:{value:"#DAC1A0"},600:{value:"#D2B48C"},700:{value:"#B9894B"},800:{value:"#7D5C31"},900:{value:"#3E2E18"},950:{value:"#21180D"}},none:{50:{value:"#F7FBFD"},100:{value:"#F3F9FB"},200:{value:"#E4F2F7"},300:{value:"#D8ECF3"},400:{value:"#C8E5EE"},500:{value:"#BDDFEB"},600:{value:"#ADD8E6"},700:{value:"#5FB2CE"},800:{value:"#30819C"},900:{value:"#18414E"},950:{value:"#0C2027"}},removed:{50:{value:"#FCFCFC"},100:{value:"#F7F7F7"},200:{value:"#F0F0F0"},300:{value:"#E8E8E8"},400:{value:"#E0E0E0"},500:{value:"#DBDBDB"},600:{value:"#D3D3D3"},700:{value:"#9E9E9E"},800:{value:"#696969"},900:{value:"#363636"},950:{value:"#1A1A1A"}}}},semanticTokens:{colors:{success:on("success"),failed:((qm=(Gm=(Um=st.theme)==null?void 0:Um.semanticTokens)==null?void 0:Gm.colors)==null?void 0:qm.red)??{},queued:on("queued"),skipped:((Ym=(Xm=(Km=st.theme)==null?void 0:Km.semanticTokens)==null?void 0:Xm.colors)==null?void 0:Ym.pink)??{},up_for_reschedule:((Zm=(Jm=(Qm=st.theme)==null?void 0:Qm.semanticTokens)==null?void 0:Jm.colors)==null?void 0:Zm.cyan)??{},up_for_retry:((nv=(tv=(ev=st.theme)==null?void 0:ev.semanticTokens)==null?void 0:tv.colors)==null?void 0:nv.yellow)??{},upstream_failed:((ov=(iv=(rv=st.theme)==null?void 0:rv.semanticTokens)==null?void 0:iv.colors)==null?void 0:ov.orange)??{},running:on("running"),restarting:on("restarting"),deferred:on("deferred"),scheduled:on("scheduled"),none:on("none","black"),removed:on("removed","black")}}}}),KT=Hh(st,qT);return()=>{ue.interceptors.request.use(TT);const e=new UI({defaultOptions:{queries:{staleTime:1/0}}});return S.jsx(Ob,{value:KT,children:S.jsx(GI,{client:e,children:S.jsx(A2,{children:S.jsx(GT,{})})})})}}); diff --git a/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/queries/common.ts b/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/queries/common.ts index a6bd624189703..43908424fb071 100644 --- a/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/queries/common.ts +++ b/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/queries/common.ts @@ -28,6 +28,8 @@ export const UseUiServiceJobsKeyFn = (queryKey?: Array) => [useUiServic export type JobsServiceFetchMutationResult = Awaited>; export type LogsServicePushLogsMutationResult = Awaited>; export type WorkerServiceRegisterMutationResult = Awaited>; +export type UiServiceRequestWorkerMaintenanceMutationResult = Awaited>; export type JobsServiceStateMutationResult = Awaited>; export type WorkerServiceSetStateMutationResult = Awaited>; export type WorkerServiceUpdateQueuesMutationResult = Awaited>; +export type UiServiceExitWorkerMaintenanceMutationResult = Awaited>; diff --git a/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/queries/queries.ts b/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/queries/queries.ts index cb94b352977f3..c23397614c27e 100644 --- a/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/queries/queries.ts +++ b/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/queries/queries.ts @@ -2,7 +2,7 @@ import { UseMutationOptions, UseQueryOptions, useMutation, useQuery } from "@tanstack/react-query"; import { JobsService, LogsService, MonitorService, UiService, WorkerService } from "../requests/services.gen"; -import { PushLogsBody, TaskInstanceState, WorkerQueueUpdateBody, WorkerQueuesBody, WorkerStateBody } from "../requests/types.gen"; +import { MaintenanceRequest, PushLogsBody, TaskInstanceState, WorkerQueueUpdateBody, WorkerQueuesBody, WorkerStateBody } from "../requests/types.gen"; import * as Common from "./common"; export const useLogsServiceLogfilePath = = unknown[]>({ authorization, dagId, mapIndex, runId, taskId, tryNumber }: { authorization: string; @@ -50,6 +50,13 @@ export const useWorkerServiceRegister = ({ mutationFn: ({ authorization, requestBody, workerName }) => WorkerService.register({ authorization, requestBody, workerName }) as unknown as Promise, ...options }); +export const useUiServiceRequestWorkerMaintenance = (options?: Omit, "mutationFn">) => useMutation({ mutationFn: ({ requestBody, workerName }) => UiService.requestWorkerMaintenance({ requestBody, workerName }) as unknown as Promise, ...options }); export const useJobsServiceState = (options?: Omit({ mutationFn: ({ authorization, requestBody, workerName }) => WorkerService.updateQueues({ authorization, requestBody, workerName }) as unknown as Promise, ...options }); +export const useUiServiceExitWorkerMaintenance = (options?: Omit, "mutationFn">) => useMutation({ mutationFn: ({ workerName }) => UiService.exitWorkerMaintenance({ workerName }) as unknown as Promise, ...options }); diff --git a/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/requests/schemas.gen.ts b/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/requests/schemas.gen.ts index f542a791a9f72..d605e434669a0 100644 --- a/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/requests/schemas.gen.ts +++ b/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/requests/schemas.gen.ts @@ -252,6 +252,20 @@ export const $JobCollectionResponse = { description: 'Job Collection serializer.' } as const; +export const $MaintenanceRequest = { + properties: { + maintenance_comment: { + type: 'string', + title: 'Maintenance Comment', + description: 'Comment describing the maintenance reason.' + } + }, + type: 'object', + required: ['maintenance_comment'], + title: 'MaintenanceRequest', + description: 'Request body for maintenance operations.' +} as const; + export const $PushLogsBody = { properties: { log_chunk_time: { diff --git a/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/requests/services.gen.ts b/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/requests/services.gen.ts index 4d7a7b0b95191..728a1ae550722 100644 --- a/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/requests/services.gen.ts +++ b/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/requests/services.gen.ts @@ -3,7 +3,7 @@ import type { CancelablePromise } from './core/CancelablePromise'; import { OpenAPI } from './core/OpenAPI'; import { request as __request } from './core/request'; -import type { FetchData, FetchResponse, StateData, StateResponse, LogfilePathData, LogfilePathResponse, PushLogsData, PushLogsResponse, RegisterData, RegisterResponse, SetStateData, SetStateResponse, UpdateQueuesData, UpdateQueuesResponse, HealthResponse, WorkerResponse, JobsResponse } from './types.gen'; +import type { FetchData, FetchResponse, StateData, StateResponse, LogfilePathData, LogfilePathResponse, PushLogsData, PushLogsResponse, RegisterData, RegisterResponse, SetStateData, SetStateResponse, UpdateQueuesData, UpdateQueuesResponse, HealthResponse, WorkerResponse, JobsResponse, RequestWorkerMaintenanceData, RequestWorkerMaintenanceResponse, ExitWorkerMaintenanceData, ExitWorkerMaintenanceResponse } from './types.gen'; export class JobsService { /** @@ -286,4 +286,49 @@ export class UiService { }); } + /** + * Request Worker Maintenance + * Put a worker into maintenance mode. + * @param data The data for the request. + * @param data.workerName + * @param data.requestBody + * @returns null Successful Response + * @throws ApiError + */ + public static requestWorkerMaintenance(data: RequestWorkerMaintenanceData): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/edge_worker/ui/worker/{worker_name}/maintenance', + path: { + worker_name: data.workerName + }, + body: data.requestBody, + mediaType: 'application/json', + errors: { + 422: 'Validation Error' + } + }); + } + + /** + * Exit Worker Maintenance + * Exit a worker from maintenance mode. + * @param data The data for the request. + * @param data.workerName + * @returns null Successful Response + * @throws ApiError + */ + public static exitWorkerMaintenance(data: ExitWorkerMaintenanceData): CancelablePromise { + return __request(OpenAPI, { + method: 'DELETE', + url: '/edge_worker/ui/worker/{worker_name}/maintenance', + path: { + worker_name: data.workerName + }, + errors: { + 422: 'Validation Error' + } + }); + } + } \ No newline at end of file diff --git a/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/requests/types.gen.ts b/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/requests/types.gen.ts index 5319871312822..61bf7663a9abd 100644 --- a/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/requests/types.gen.ts +++ b/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/requests/types.gen.ts @@ -126,6 +126,16 @@ export type JobCollectionResponse = { total_entries: number; }; +/** + * Request body for maintenance operations. + */ +export type MaintenanceRequest = { + /** + * Comment describing the maintenance reason. + */ + maintenance_comment: string; +}; + /** * Incremental new log content from worker. */ @@ -460,6 +470,19 @@ export type WorkerResponse = WorkerCollectionResponse; export type JobsResponse = JobCollectionResponse; +export type RequestWorkerMaintenanceData = { + requestBody: MaintenanceRequest; + workerName: string; +}; + +export type RequestWorkerMaintenanceResponse = null; + +export type ExitWorkerMaintenanceData = { + workerName: string; +}; + +export type ExitWorkerMaintenanceResponse = null; + export type $OpenApiTs = { '/edge_worker/v1/jobs/fetch/{worker_name}': { post: { @@ -652,4 +675,32 @@ export type $OpenApiTs = { }; }; }; + '/edge_worker/ui/worker/{worker_name}/maintenance': { + post: { + req: RequestWorkerMaintenanceData; + res: { + /** + * Successful Response + */ + 200: null; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; + }; + delete: { + req: ExitWorkerMaintenanceData; + res: { + /** + * Successful Response + */ + 200: null; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; + }; + }; }; \ No newline at end of file diff --git a/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/OperationsCell.tsx b/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/OperationsCell.tsx new file mode 100644 index 0000000000000..bf7fe3b4d942d --- /dev/null +++ b/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/OperationsCell.tsx @@ -0,0 +1,147 @@ +/*! + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +import { Box, Flex, HStack, IconButton, Textarea, VStack } from "@chakra-ui/react"; +import type { Worker } from "openapi/requests/types.gen"; +import { useState } from "react"; +import { FcCheckmark } from "react-icons/fc"; +import { HiOutlineWrenchScrewdriver } from "react-icons/hi2"; +import { ImCross } from "react-icons/im"; +import { IoMdExit } from "react-icons/io"; + +interface MaintenanceFormProps { + onSubmit: (comment: string) => void; + onCancel: () => void; +} + +const MaintenanceForm = ({ onCancel, onSubmit }: MaintenanceFormProps) => { + const [comment, setComment] = useState(""); + + const handleSubmit = () => { + if (comment.trim()) { + onSubmit(comment.trim()); + } + }; + + return ( + +