@blakesteve/roster 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.d.ts +2 -0
- package/dist/components/atoms/Avatar/Avatar.d.ts +11 -0
- package/dist/components/atoms/Avatar/avatar-variants.d.ts +5 -0
- package/dist/components/atoms/Badge/Badge.d.ts +10 -0
- package/dist/components/atoms/Badge/badge-variants.d.ts +6 -0
- package/dist/components/atoms/Button/Button.d.ts +10 -0
- package/dist/components/atoms/Button/button-variants.d.ts +5 -0
- package/dist/components/atoms/Card/Card.d.ts +14 -0
- package/dist/components/atoms/Card/card-variants.d.ts +4 -0
- package/dist/components/atoms/Disclosure/Disclosure.d.ts +13 -0
- package/dist/components/atoms/Disclosure/disclosure-variants.d.ts +7 -0
- package/dist/components/atoms/Input/Input.d.ts +12 -0
- package/dist/components/atoms/Input/input-variants.d.ts +4 -0
- package/dist/components/atoms/Link/Link.d.ts +14 -0
- package/dist/components/atoms/Link/link-variants.d.ts +5 -0
- package/dist/components/atoms/Select/Select.d.ts +18 -0
- package/dist/components/atoms/Select/select-variants.d.ts +4 -0
- package/dist/components/atoms/Spinner/Spinner.d.ts +9 -0
- package/dist/components/atoms/Switch/Switch.d.ts +13 -0
- package/dist/components/atoms/Switch/switch-variants.d.ts +7 -0
- package/dist/components/atoms/Textarea/Textarea.d.ts +10 -0
- package/dist/components/atoms/Textarea/textarea-variants.d.ts +5 -0
- package/dist/components/molecules/Accordion/Accordion.d.ts +17 -0
- package/dist/components/molecules/Breadcrumbs/Breadcrumbs.d.ts +14 -0
- package/dist/components/molecules/Breadcrumbs/breadcrumb-variants.d.ts +3 -0
- package/dist/components/molecules/CallToAction/CallToAction.d.ts +12 -0
- package/dist/components/molecules/CallToAction/call-to-action-variants.d.ts +3 -0
- package/dist/components/molecules/EmptyState/EmptyState.d.ts +11 -0
- package/dist/components/molecules/EmptyState/empty-state-variants.d.ts +3 -0
- package/dist/components/molecules/ErrorState/ErrorState.d.ts +12 -0
- package/dist/components/molecules/ErrorState/error-state-variants.d.ts +3 -0
- package/dist/components/molecules/MatchupCard/MatchupCard.d.ts +19 -0
- package/dist/components/organisms/ActionBar/ActionBar.d.ts +17 -0
- package/dist/components/organisms/ActionBar/action-bar-variants.d.ts +4 -0
- package/dist/components/organisms/Countdown/Countdown.d.ts +14 -0
- package/dist/components/organisms/Dialog/Dialog.d.ts +18 -0
- package/dist/components/organisms/Footer/Footer.d.ts +9 -0
- package/dist/components/organisms/Navbar/Navbar.d.ts +25 -0
- package/dist/components/organisms/Navbar/navbar-variants.d.ts +4 -0
- package/dist/hooks/useCountdown.d.ts +9 -0
- package/dist/index.d.ts +40 -1
- package/dist/lib/utils.d.ts +2 -0
- package/dist/roster.es.js +11175 -1677
- package/dist/roster.umd.js +562 -4
- package/package.json +2 -1
- package/dist/vite.svg +0 -1
package/dist/roster.umd.js
CHANGED
|
@@ -1,9 +1,567 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(q,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],f):(q=typeof globalThis<"u"?globalThis:q||self,f(q.Roster={},q.React,q.ReactDOM))})(this,(function(q,f,He){"use strict";function oi(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 R=oi(f),or=oi(He);var ar={exports:{}},mn={};var ai;function Nf(){if(ai)return mn;ai=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,a){var i=null;if(a!==void 0&&(i=""+a),o.key!==void 0&&(i=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:r,key:i,ref:o!==void 0?o:null,props:a}}return mn.Fragment=t,mn.jsx=n,mn.jsxs=n,mn}var pn={};var ii;function Cf(){return ii||(ii=1,process.env.NODE_ENV!=="production"&&(function(){function e($){if($==null)return null;if(typeof $=="function")return $.$$typeof===j?null:$.displayName||$.name||null;if(typeof $=="string")return $;switch($){case v:return"Fragment";case w:return"Profiler";case y:return"StrictMode";case C:return"Suspense";case T:return"SuspenseList";case N:return"Activity"}if(typeof $=="object")switch(typeof $.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),$.$$typeof){case h:return"Portal";case k:return $.displayName||"Context";case x:return($._context.displayName||"Context")+".Consumer";case S:var _=$.render;return $=$.displayName,$||($=_.displayName||_.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case O:return _=$.displayName||null,_!==null?_:e($.type)||"Memo";case G:_=$._payload,$=$._init;try{return e($(_))}catch{}}return null}function t($){return""+$}function n($){try{t($);var _=!1}catch{_=!0}if(_){_=console;var P=_.error,I=typeof Symbol=="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object";return P.call(_,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",I),t($)}}function r($){if($===v)return"<>";if(typeof $=="object"&&$!==null&&$.$$typeof===G)return"<...>";try{var _=e($);return _?"<"+_+">":"<...>"}catch{return"<...>"}}function o(){var $=K.A;return $===null?null:$.getOwner()}function a(){return Error("react-stack-top-frame")}function i($){if(X.call($,"key")){var _=Object.getOwnPropertyDescriptor($,"key").get;if(_&&_.isReactWarning)return!1}return $.key!==void 0}function s($,_){function P(){W||(W=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",_))}P.isReactWarning=!0,Object.defineProperty($,"key",{get:P,configurable:!0})}function l(){var $=e(this.type);return Q[$]||(Q[$]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),$=this.props.ref,$!==void 0?$:null}function u($,_,P,I,J,H){var L=P.ref;return $={$$typeof:g,type:$,key:_,props:P,_owner:I},(L!==void 0?L:null)!==null?Object.defineProperty($,"ref",{enumerable:!1,get:l}):Object.defineProperty($,"ref",{enumerable:!1,value:null}),$._store={},Object.defineProperty($._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty($,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty($,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:J}),Object.defineProperty($,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:H}),Object.freeze&&(Object.freeze($.props),Object.freeze($)),$}function c($,_,P,I,J,H){var L=_.children;if(L!==void 0)if(I)if(M(L)){for(I=0;I<L.length;I++)m(L[I]);Object.freeze&&Object.freeze(L)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(L);if(X.call(_,"key")){L=e($);var fe=Object.keys(_).filter(function(Be){return Be!=="key"});I=0<fe.length?"{key: someKey, "+fe.join(": ..., ")+": ...}":"{key: someKey}",te[L+I]||(fe=0<fe.length?"{"+fe.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
2
|
let props = %s;
|
|
3
3
|
<%s {...props} />
|
|
4
4
|
React keys must be passed directly to JSX without using spread:
|
|
5
5
|
let props = %s;
|
|
6
|
-
<%s key={someKey} {...props} />`,S,E,D,E),ve[E+S]=!0)}if(E=null,k!==void 0&&(t(k),E=""+k),a(y)&&(t(y.key),E=""+y.key),"key"in y){k={};for(var U in y)U!=="key"&&(k[U]=y[U])}else k=y;return E&&c(k,typeof l=="function"?l.displayName||l.name||"Unknown":l),u(l,E,k,n(),V,se)}function p(l){w(l)?l._store&&(l._store.validated=1):typeof l=="object"&&l!==null&&l.$$typeof===A&&(l._payload.status==="fulfilled"?w(l._payload.value)&&l._payload.value._store&&(l._payload.value._store.validated=1):l._store&&(l._store.validated=1))}function w(l){return typeof l=="object"&&l!==null&&l.$$typeof===N}var $=b,N=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),Z=Symbol.for("react.consumer"),B=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),Ce=Symbol.for("react.activity"),Ae=Symbol.for("react.client.reference"),Y=$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pe=Object.prototype.hasOwnProperty,be=Array.isArray,j=console.createTask?console.createTask:function(){return null};$={react_stack_bottom_frame:function(l){return l()}};var _,F={},g=$.react_stack_bottom_frame.bind($,s)(),ge=j(o(s)),ve={};le.Fragment=T,le.jsx=function(l,y,k){var S=1e4>Y.recentlyCreatedOwnerStacks++;return m(l,y,k,!1,S?Error("react-stack-top-frame"):g,S?j(o(l)):ge)},le.jsxs=function(l,y,k){var S=1e4>Y.recentlyCreatedOwnerStacks++;return m(l,y,k,!0,S?Error("react-stack-top-frame"):g,S?j(o(l)):ge)}})()),le}var Je;function Dt(){return Je||(Je=1,process.env.NODE_ENV==="production"?he.exports=It():he.exports=Vt()),he.exports}var ee=Dt();function Xe(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(r=0;r<n;r++)e[r]&&(t=Xe(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function Ze(){for(var e,r,t=0,o="",n=arguments.length;t<n;t++)(e=arguments[t])&&(r=Xe(e))&&(o&&(o+=" "),o+=r);return o}const Qe=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,et=Ze,tt=(e,r)=>t=>{var o;if(r?.variants==null)return et(e,t?.class,t?.className);const{variants:n,defaultVariants:s}=r,a=Object.keys(n).map(u=>{const m=t?.[u],p=s?.[u];if(m===null)return null;const w=Qe(m)||Qe(p);return n[u][w]}),c=t&&Object.entries(t).reduce((u,m)=>{let[p,w]=m;return w===void 0||(u[p]=w),u},{}),i=r==null||(o=r.compoundVariants)===null||o===void 0?void 0:o.reduce((u,m)=>{let{class:p,className:w,...$}=m;return Object.entries($).every(N=>{let[v,T]=N;return Array.isArray(T)?T.includes({...s,...c}[v]):{...s,...c}[v]===T})?[...u,p,w]:u},[]);return et(e,a,i,t?.class,t?.className)},Gt=(e,r)=>{const t=new Array(e.length+r.length);for(let o=0;o<e.length;o++)t[o]=e[o];for(let o=0;o<r.length;o++)t[e.length+o]=r[o];return t},Ht=(e,r)=>({classGroupId:e,validator:r}),rt=(e=new Map,r=null,t)=>({nextPart:e,validators:r,classGroupId:t}),ye="-",ot=[],Wt="arbitrary..",Bt=e=>{const r=Yt(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Kt(a);const c=a.split(ye),i=c[0]===""&&c.length>1?1:0;return nt(c,i,r)},getConflictingClassGroupIds:(a,c)=>{if(c){const i=o[a],u=t[a];return i?u?Gt(u,i):i:u||ot}return t[a]||ot}}},nt=(e,r,t)=>{if(e.length-r===0)return t.classGroupId;const n=e[r],s=t.nextPart.get(n);if(s){const u=nt(e,r+1,s);if(u)return u}const a=t.validators;if(a===null)return;const c=r===0?e.join(ye):e.slice(r).join(ye),i=a.length;for(let u=0;u<i;u++){const m=a[u];if(m.validator(c))return m.classGroupId}},Kt=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=e.slice(1,-1),t=r.indexOf(":"),o=r.slice(0,t);return o?Wt+o:void 0})(),Yt=e=>{const{theme:r,classGroups:t}=e;return Ut(t,r)},Ut=(e,r)=>{const t=rt();for(const o in e){const n=e[o];_e(n,t,o,r)}return t},_e=(e,r,t,o)=>{const n=e.length;for(let s=0;s<n;s++){const a=e[s];qt(a,r,t,o)}},qt=(e,r,t,o)=>{if(typeof e=="string"){Jt(e,r,t);return}if(typeof e=="function"){Xt(e,r,t,o);return}Zt(e,r,t,o)},Jt=(e,r,t)=>{const o=e===""?r:st(r,e);o.classGroupId=t},Xt=(e,r,t,o)=>{if(Qt(e)){_e(e(o),r,t,o);return}r.validators===null&&(r.validators=[]),r.validators.push(Ht(t,e))},Zt=(e,r,t,o)=>{const n=Object.entries(e),s=n.length;for(let a=0;a<s;a++){const[c,i]=n[a];_e(i,st(r,c),t,o)}},st=(e,r)=>{let t=e;const o=r.split(ye),n=o.length;for(let s=0;s<n;s++){const a=o[s];let c=t.nextPart.get(a);c||(c=rt(),t.nextPart.set(a,c)),t=c}return t},Qt=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,er=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=Object.create(null),o=Object.create(null);const n=(s,a)=>{t[s]=a,r++,r>e&&(r=0,o=t,t=Object.create(null))};return{get(s){let a=t[s];if(a!==void 0)return a;if((a=o[s])!==void 0)return n(s,a),a},set(s,a){s in t?t[s]=a:n(s,a)}}},Oe="!",at=":",tr=[],it=(e,r,t,o,n)=>({modifiers:e,hasImportantModifier:r,baseClassName:t,maybePostfixModifierPosition:o,isExternal:n}),rr=e=>{const{prefix:r,experimentalParseClassName:t}=e;let o=n=>{const s=[];let a=0,c=0,i=0,u;const m=n.length;for(let v=0;v<m;v++){const T=n[v];if(a===0&&c===0){if(T===at){s.push(n.slice(i,v)),i=v+1;continue}if(T==="/"){u=v;continue}}T==="["?a++:T==="]"?a--:T==="("?c++:T===")"&&c--}const p=s.length===0?n:n.slice(i);let w=p,$=!1;p.endsWith(Oe)?(w=p.slice(0,-1),$=!0):p.startsWith(Oe)&&(w=p.slice(1),$=!0);const N=u&&u>i?u-i:void 0;return it(s,$,w,N)};if(r){const n=r+at,s=o;o=a=>a.startsWith(n)?s(a.slice(n.length)):it(tr,!1,a,void 0,!0)}if(t){const n=o;o=s=>t({className:s,parseClassName:n})}return o},or=e=>{const r=new Map;return e.orderSensitiveModifiers.forEach((t,o)=>{r.set(t,1e6+o)}),t=>{const o=[];let n=[];for(let s=0;s<t.length;s++){const a=t[s],c=a[0]==="[",i=r.has(a);c||i?(n.length>0&&(n.sort(),o.push(...n),n=[]),o.push(a)):n.push(a)}return n.length>0&&(n.sort(),o.push(...n)),o}},nr=e=>({cache:er(e.cacheSize),parseClassName:rr(e),sortModifiers:or(e),...Bt(e)}),sr=/\s+/,ar=(e,r)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:s}=r,a=[],c=e.trim().split(sr);let i="";for(let u=c.length-1;u>=0;u-=1){const m=c[u],{isExternal:p,modifiers:w,hasImportantModifier:$,baseClassName:N,maybePostfixModifierPosition:v}=t(m);if(p){i=m+(i.length>0?" "+i:i);continue}let T=!!v,P=o(T?N.substring(0,v):N);if(!P){if(!T){i=m+(i.length>0?" "+i:i);continue}if(P=o(N),!P){i=m+(i.length>0?" "+i:i);continue}T=!1}const O=w.length===0?"":w.length===1?w[0]:s(w).join(":"),Z=$?O+Oe:O,B=Z+P;if(a.indexOf(B)>-1)continue;a.push(B);const K=n(P,T);for(let I=0;I<K.length;++I){const Q=K[I];a.push(Z+Q)}i=m+(i.length>0?" "+i:i)}return i},ir=(...e)=>{let r=0,t,o,n="";for(;r<e.length;)(t=e[r++])&&(o=lt(t))&&(n&&(n+=" "),n+=o);return n},lt=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=lt(e[o]))&&(t&&(t+=" "),t+=r);return t},lr=(e,...r)=>{let t,o,n,s;const a=i=>{const u=r.reduce((m,p)=>p(m),e());return t=nr(u),o=t.cache.get,n=t.cache.set,s=c,c(i)},c=i=>{const u=o(i);if(u)return u;const m=ar(i,t);return n(i,m),m};return s=a,(...i)=>s(ir(...i))},cr=[],C=e=>{const r=t=>t[e]||cr;return r.isThemeGetter=!0,r},ct=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ut=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ur=/^\d+\/\d+$/,dr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,mr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,pr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,br=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,te=e=>ur.test(e),x=e=>!!e&&!Number.isNaN(Number(e)),G=e=>!!e&&Number.isInteger(Number(e)),je=e=>e.endsWith("%")&&x(e.slice(0,-1)),R=e=>dr.test(e),gr=()=>!0,vr=e=>fr.test(e)&&!mr.test(e),dt=()=>!1,hr=e=>pr.test(e),yr=e=>br.test(e),wr=e=>!d(e)&&!f(e),xr=e=>re(e,gt,dt),d=e=>ct.test(e),q=e=>re(e,vt,vr),Fe=e=>re(e,Sr,x),ft=e=>re(e,pt,dt),kr=e=>re(e,bt,yr),we=e=>re(e,ht,hr),f=e=>ut.test(e),ce=e=>oe(e,vt),Er=e=>oe(e,Nr),mt=e=>oe(e,pt),$r=e=>oe(e,gt),Tr=e=>oe(e,bt),xe=e=>oe(e,ht,!0),re=(e,r,t)=>{const o=ct.exec(e);return o?o[1]?r(o[1]):t(o[2]):!1},oe=(e,r,t=!1)=>{const o=ut.exec(e);return o?o[1]?r(o[1]):t:!1},pt=e=>e==="position"||e==="percentage",bt=e=>e==="image"||e==="url",gt=e=>e==="length"||e==="size"||e==="bg-size",vt=e=>e==="length",Sr=e=>e==="number",Nr=e=>e==="family-name",ht=e=>e==="shadow",Pr=lr(()=>{const e=C("color"),r=C("font"),t=C("text"),o=C("font-weight"),n=C("tracking"),s=C("leading"),a=C("breakpoint"),c=C("container"),i=C("spacing"),u=C("radius"),m=C("shadow"),p=C("inset-shadow"),w=C("text-shadow"),$=C("drop-shadow"),N=C("blur"),v=C("perspective"),T=C("aspect"),P=C("ease"),O=C("animate"),Z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],K=()=>[...B(),f,d],I=()=>["auto","hidden","clip","visible","scroll"],Q=()=>["auto","contain","none"],h=()=>[f,d,i],A=()=>[te,"full","auto",...h()],Ce=()=>[G,"none","subgrid",f,d],Ae=()=>["auto",{span:["full",G,f,d]},G,f,d],Y=()=>[G,"auto",f,d],pe=()=>["auto","min","max","fr",f,d],be=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],j=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["auto",...h()],F=()=>[te,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...h()],g=()=>[e,f,d],ge=()=>[...B(),mt,ft,{position:[f,d]}],ve=()=>["no-repeat",{repeat:["","x","y","space","round"]}],l=()=>["auto","cover","contain",$r,xr,{size:[f,d]}],y=()=>[je,ce,q],k=()=>["","none","full",u,f,d],S=()=>["",x,ce,q],V=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],E=()=>[x,je,mt,ft],D=()=>["","none",N,f,d],U=()=>["none",x,f,d],ae=()=>["none",x,f,d],Ye=()=>[x,f,d],Le=()=>[te,"full",...h()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[R],breakpoint:[R],color:[gr],container:[R],"drop-shadow":[R],ease:["in","out","in-out"],font:[wr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[R],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[R],shadow:[R],spacing:["px",x],text:[R],"text-shadow":[R],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",te,d,f,T]}],container:["container"],columns:[{columns:[x,d,f,c]}],"break-after":[{"break-after":Z()}],"break-before":[{"break-before":Z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:K()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:Q()}],"overscroll-x":[{"overscroll-x":Q()}],"overscroll-y":[{"overscroll-y":Q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{start:A()}],end:[{end:A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[G,"auto",f,d]}],basis:[{basis:[te,"full","auto",c,...h()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[x,te,"auto","initial","none",d]}],grow:[{grow:["",x,f,d]}],shrink:[{shrink:["",x,f,d]}],order:[{order:[G,"first","last","none",f,d]}],"grid-cols":[{"grid-cols":Ce()}],"col-start-end":[{col:Ae()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":Ce()}],"row-start-end":[{row:Ae()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":pe()}],"auto-rows":[{"auto-rows":pe()}],gap:[{gap:h()}],"gap-x":[{"gap-x":h()}],"gap-y":[{"gap-y":h()}],"justify-content":[{justify:[...be(),"normal"]}],"justify-items":[{"justify-items":[...j(),"normal"]}],"justify-self":[{"justify-self":["auto",...j()]}],"align-content":[{content:["normal",...be()]}],"align-items":[{items:[...j(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...j(),{baseline:["","last"]}]}],"place-content":[{"place-content":be()}],"place-items":[{"place-items":[...j(),"baseline"]}],"place-self":[{"place-self":["auto",...j()]}],p:[{p:h()}],px:[{px:h()}],py:[{py:h()}],ps:[{ps:h()}],pe:[{pe:h()}],pt:[{pt:h()}],pr:[{pr:h()}],pb:[{pb:h()}],pl:[{pl:h()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":h()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":h()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],w:[{w:[c,"screen",...F()]}],"min-w":[{"min-w":[c,"screen","none",...F()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[a]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",t,ce,q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,f,Fe]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",je,d]}],"font-family":[{font:[Er,d,r]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,f,d]}],"line-clamp":[{"line-clamp":[x,"none",f,Fe]}],leading:[{leading:[s,...h()]}],"list-image":[{"list-image":["none",f,d]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",f,d]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:g()}],"text-color":[{text:g()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:[x,"from-font","auto",f,q]}],"text-decoration-color":[{decoration:g()}],"underline-offset":[{"underline-offset":[x,"auto",f,d]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:h()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",f,d]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",f,d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ge()}],"bg-repeat":[{bg:ve()}],"bg-size":[{bg:l()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},G,f,d],radial:["",f,d],conic:[G,f,d]},Tr,kr]}],"bg-color":[{bg:g()}],"gradient-from-pos":[{from:y()}],"gradient-via-pos":[{via:y()}],"gradient-to-pos":[{to:y()}],"gradient-from":[{from:g()}],"gradient-via":[{via:g()}],"gradient-to":[{to:g()}],rounded:[{rounded:k()}],"rounded-s":[{"rounded-s":k()}],"rounded-e":[{"rounded-e":k()}],"rounded-t":[{"rounded-t":k()}],"rounded-r":[{"rounded-r":k()}],"rounded-b":[{"rounded-b":k()}],"rounded-l":[{"rounded-l":k()}],"rounded-ss":[{"rounded-ss":k()}],"rounded-se":[{"rounded-se":k()}],"rounded-ee":[{"rounded-ee":k()}],"rounded-es":[{"rounded-es":k()}],"rounded-tl":[{"rounded-tl":k()}],"rounded-tr":[{"rounded-tr":k()}],"rounded-br":[{"rounded-br":k()}],"rounded-bl":[{"rounded-bl":k()}],"border-w":[{border:S()}],"border-w-x":[{"border-x":S()}],"border-w-y":[{"border-y":S()}],"border-w-s":[{"border-s":S()}],"border-w-e":[{"border-e":S()}],"border-w-t":[{"border-t":S()}],"border-w-r":[{"border-r":S()}],"border-w-b":[{"border-b":S()}],"border-w-l":[{"border-l":S()}],"divide-x":[{"divide-x":S()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":S()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...V(),"hidden","none"]}],"divide-style":[{divide:[...V(),"hidden","none"]}],"border-color":[{border:g()}],"border-color-x":[{"border-x":g()}],"border-color-y":[{"border-y":g()}],"border-color-s":[{"border-s":g()}],"border-color-e":[{"border-e":g()}],"border-color-t":[{"border-t":g()}],"border-color-r":[{"border-r":g()}],"border-color-b":[{"border-b":g()}],"border-color-l":[{"border-l":g()}],"divide-color":[{divide:g()}],"outline-style":[{outline:[...V(),"none","hidden"]}],"outline-offset":[{"outline-offset":[x,f,d]}],"outline-w":[{outline:["",x,ce,q]}],"outline-color":[{outline:g()}],shadow:[{shadow:["","none",m,xe,we]}],"shadow-color":[{shadow:g()}],"inset-shadow":[{"inset-shadow":["none",p,xe,we]}],"inset-shadow-color":[{"inset-shadow":g()}],"ring-w":[{ring:S()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:g()}],"ring-offset-w":[{"ring-offset":[x,q]}],"ring-offset-color":[{"ring-offset":g()}],"inset-ring-w":[{"inset-ring":S()}],"inset-ring-color":[{"inset-ring":g()}],"text-shadow":[{"text-shadow":["none",w,xe,we]}],"text-shadow-color":[{"text-shadow":g()}],opacity:[{opacity:[x,f,d]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[x]}],"mask-image-linear-from-pos":[{"mask-linear-from":E()}],"mask-image-linear-to-pos":[{"mask-linear-to":E()}],"mask-image-linear-from-color":[{"mask-linear-from":g()}],"mask-image-linear-to-color":[{"mask-linear-to":g()}],"mask-image-t-from-pos":[{"mask-t-from":E()}],"mask-image-t-to-pos":[{"mask-t-to":E()}],"mask-image-t-from-color":[{"mask-t-from":g()}],"mask-image-t-to-color":[{"mask-t-to":g()}],"mask-image-r-from-pos":[{"mask-r-from":E()}],"mask-image-r-to-pos":[{"mask-r-to":E()}],"mask-image-r-from-color":[{"mask-r-from":g()}],"mask-image-r-to-color":[{"mask-r-to":g()}],"mask-image-b-from-pos":[{"mask-b-from":E()}],"mask-image-b-to-pos":[{"mask-b-to":E()}],"mask-image-b-from-color":[{"mask-b-from":g()}],"mask-image-b-to-color":[{"mask-b-to":g()}],"mask-image-l-from-pos":[{"mask-l-from":E()}],"mask-image-l-to-pos":[{"mask-l-to":E()}],"mask-image-l-from-color":[{"mask-l-from":g()}],"mask-image-l-to-color":[{"mask-l-to":g()}],"mask-image-x-from-pos":[{"mask-x-from":E()}],"mask-image-x-to-pos":[{"mask-x-to":E()}],"mask-image-x-from-color":[{"mask-x-from":g()}],"mask-image-x-to-color":[{"mask-x-to":g()}],"mask-image-y-from-pos":[{"mask-y-from":E()}],"mask-image-y-to-pos":[{"mask-y-to":E()}],"mask-image-y-from-color":[{"mask-y-from":g()}],"mask-image-y-to-color":[{"mask-y-to":g()}],"mask-image-radial":[{"mask-radial":[f,d]}],"mask-image-radial-from-pos":[{"mask-radial-from":E()}],"mask-image-radial-to-pos":[{"mask-radial-to":E()}],"mask-image-radial-from-color":[{"mask-radial-from":g()}],"mask-image-radial-to-color":[{"mask-radial-to":g()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":B()}],"mask-image-conic-pos":[{"mask-conic":[x]}],"mask-image-conic-from-pos":[{"mask-conic-from":E()}],"mask-image-conic-to-pos":[{"mask-conic-to":E()}],"mask-image-conic-from-color":[{"mask-conic-from":g()}],"mask-image-conic-to-color":[{"mask-conic-to":g()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ge()}],"mask-repeat":[{mask:ve()}],"mask-size":[{mask:l()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",f,d]}],filter:[{filter:["","none",f,d]}],blur:[{blur:D()}],brightness:[{brightness:[x,f,d]}],contrast:[{contrast:[x,f,d]}],"drop-shadow":[{"drop-shadow":["","none",$,xe,we]}],"drop-shadow-color":[{"drop-shadow":g()}],grayscale:[{grayscale:["",x,f,d]}],"hue-rotate":[{"hue-rotate":[x,f,d]}],invert:[{invert:["",x,f,d]}],saturate:[{saturate:[x,f,d]}],sepia:[{sepia:["",x,f,d]}],"backdrop-filter":[{"backdrop-filter":["","none",f,d]}],"backdrop-blur":[{"backdrop-blur":D()}],"backdrop-brightness":[{"backdrop-brightness":[x,f,d]}],"backdrop-contrast":[{"backdrop-contrast":[x,f,d]}],"backdrop-grayscale":[{"backdrop-grayscale":["",x,f,d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x,f,d]}],"backdrop-invert":[{"backdrop-invert":["",x,f,d]}],"backdrop-opacity":[{"backdrop-opacity":[x,f,d]}],"backdrop-saturate":[{"backdrop-saturate":[x,f,d]}],"backdrop-sepia":[{"backdrop-sepia":["",x,f,d]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":h()}],"border-spacing-x":[{"border-spacing-x":h()}],"border-spacing-y":[{"border-spacing-y":h()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",f,d]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[x,"initial",f,d]}],ease:[{ease:["linear","initial",P,f,d]}],delay:[{delay:[x,f,d]}],animate:[{animate:["none",O,f,d]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,f,d]}],"perspective-origin":[{"perspective-origin":K()}],rotate:[{rotate:U()}],"rotate-x":[{"rotate-x":U()}],"rotate-y":[{"rotate-y":U()}],"rotate-z":[{"rotate-z":U()}],scale:[{scale:ae()}],"scale-x":[{"scale-x":ae()}],"scale-y":[{"scale-y":ae()}],"scale-z":[{"scale-z":ae()}],"scale-3d":["scale-3d"],skew:[{skew:Ye()}],"skew-x":[{"skew-x":Ye()}],"skew-y":[{"skew-y":Ye()}],transform:[{transform:[f,d,"","none","gpu","cpu"]}],"transform-origin":[{origin:K()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Le()}],"translate-x":[{"translate-x":Le()}],"translate-y":[{"translate-y":Le()}],"translate-z":[{"translate-z":Le()}],"translate-none":["translate-none"],accent:[{accent:g()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:g()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",f,d]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":h()}],"scroll-mx":[{"scroll-mx":h()}],"scroll-my":[{"scroll-my":h()}],"scroll-ms":[{"scroll-ms":h()}],"scroll-me":[{"scroll-me":h()}],"scroll-mt":[{"scroll-mt":h()}],"scroll-mr":[{"scroll-mr":h()}],"scroll-mb":[{"scroll-mb":h()}],"scroll-ml":[{"scroll-ml":h()}],"scroll-p":[{"scroll-p":h()}],"scroll-px":[{"scroll-px":h()}],"scroll-py":[{"scroll-py":h()}],"scroll-ps":[{"scroll-ps":h()}],"scroll-pe":[{"scroll-pe":h()}],"scroll-pt":[{"scroll-pt":h()}],"scroll-pr":[{"scroll-pr":h()}],"scroll-pb":[{"scroll-pb":h()}],"scroll-pl":[{"scroll-pl":h()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",f,d]}],fill:[{fill:["none",...g()]}],"stroke-w":[{stroke:[x,ce,q,Fe]}],stroke:[{stroke:["none",...g()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function yt(...e){return Pr(Ze(e))}const Cr=tt("animate-spin rounded-full border-b-2 border-t-2",{variants:{size:{sm:"h-4 w-4 border-2",md:"h-6 w-6 border-2",lg:"h-8 w-8 border-3"}},defaultVariants:{size:"md"}}),wt=({size:e,className:r})=>ee.jsx("div",{className:yt(Cr({size:e}),"border-current border-r-transparent border-l-transparent",r),role:"status","aria-label":"loading"}),Ar=typeof document<"u"?b.useLayoutEffect:()=>{},H=e=>{var r;return(r=e?.ownerDocument)!==null&&r!==void 0?r:document},J=e=>e&&"window"in e&&e.window===e?e:H(e).defaultView||window;function Lr(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function _r(e){return Lr(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let Or=!1;function Me(){return Or}function W(e,r){if(!Me())return r&&e?e.contains(r):!1;if(!e||!r)return!1;let t=r;for(;t!==null;){if(t===e)return!0;t.tagName==="SLOT"&&t.assignedSlot?t=t.assignedSlot.parentNode:_r(t)?t=t.host:t=t.parentNode}return!1}const Re=(e=document)=>{var r;if(!Me())return e.activeElement;let t=e.activeElement;for(;t&&"shadowRoot"in t&&(!((r=t.shadowRoot)===null||r===void 0)&&r.activeElement);)t=t.shadowRoot.activeElement;return t};function xt(e){return Me()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function jr(e){if(Fr())e.focus({preventScroll:!0});else{let r=Mr(e);e.focus(),Rr(r)}}let ke=null;function Fr(){if(ke==null){ke=!1;try{document.createElement("div").focus({get preventScroll(){return ke=!0,!0}})}catch{}}return ke}function Mr(e){let r=e.parentNode,t=[],o=document.scrollingElement||document.documentElement;for(;r instanceof HTMLElement&&r!==o;)(r.offsetHeight<r.scrollHeight||r.offsetWidth<r.scrollWidth)&&t.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),r=r.parentNode;return o instanceof HTMLElement&&t.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),t}function Rr(e){for(let{element:r,scrollTop:t,scrollLeft:o}of e)r.scrollTop=t,r.scrollLeft=o}function Ee(e){var r;if(typeof window>"u"||window.navigator==null)return!1;let t=(r=window.navigator.userAgentData)===null||r===void 0?void 0:r.brands;return Array.isArray(t)&&t.some(o=>e.test(o.brand))||e.test(window.navigator.userAgent)}function ze(e){var r;return typeof window<"u"&&window.navigator!=null?e.test(((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.platform)||window.navigator.platform):!1}function z(e){if(process.env.NODE_ENV==="test")return e;let r=null;return()=>(r==null&&(r=e()),r)}const ue=z(function(){return ze(/^Mac/i)}),zr=z(function(){return ze(/^iPhone/i)}),kt=z(function(){return ze(/^iPad/i)||ue()&&navigator.maxTouchPoints>1}),Ir=z(function(){return zr()||kt()});z(function(){return ue()||Ir()});const Vr=z(function(){return Ee(/AppleWebKit/i)&&!Dr()}),Dr=z(function(){return Ee(/Chrome/i)}),Gr=z(function(){return Ee(/Android/i)}),Hr=z(function(){return Ee(/Firefox/i)});function de(e,r,t=!0){var o,n;let{metaKey:s,ctrlKey:a,altKey:c,shiftKey:i}=r;Hr()&&(!((n=window.event)===null||n===void 0||(o=n.type)===null||o===void 0)&&o.startsWith("key"))&&e.target==="_blank"&&(ue()?s=!0:a=!0);let u=Vr()&&ue()&&!kt()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:a,altKey:c,shiftKey:i}):new MouseEvent("click",{metaKey:s,ctrlKey:a,altKey:c,shiftKey:i,detail:1,bubbles:!0,cancelable:!0});de.isOpening=t,jr(e),e.dispatchEvent(u),de.isOpening=!1}de.isOpening=!1;function Et(){let e=b.useRef(new Map),r=b.useCallback((n,s,a,c)=>{let i=c?.once?(...u)=>{e.current.delete(a),a(...u)}:a;e.current.set(a,{type:s,eventTarget:n,fn:i,options:c}),n.addEventListener(s,i,c)},[]),t=b.useCallback((n,s,a,c)=>{var i;let u=((i=e.current.get(a))===null||i===void 0?void 0:i.fn)||a;n.removeEventListener(s,u,c),e.current.delete(a)},[]),o=b.useCallback(()=>{e.current.forEach((n,s)=>{t(n.eventTarget,n.type,s,n.options)})},[t]);return b.useEffect(()=>o,[o]),{addGlobalListener:r,removeGlobalListener:t,removeAllGlobalListeners:o}}function Wr(e){return e.pointerType===""&&e.isTrusted?!0:Gr()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function $t(e){let r=e;return r.nativeEvent=e,r.isDefaultPrevented=()=>r.defaultPrevented,r.isPropagationStopped=()=>r.cancelBubble,r.persist=()=>{},r}function Br(e,r){Object.defineProperty(e,"target",{value:r}),Object.defineProperty(e,"currentTarget",{value:r})}function Tt(e){let r=b.useRef({isFocused:!1,observer:null});return Ar(()=>{const t=r.current;return()=>{t.observer&&(t.observer.disconnect(),t.observer=null)}},[]),b.useCallback(t=>{if(t.target instanceof HTMLButtonElement||t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement||t.target instanceof HTMLSelectElement){r.current.isFocused=!0;let o=t.target,n=s=>{if(r.current.isFocused=!1,o.disabled){let a=$t(s);e?.(a)}r.current.observer&&(r.current.observer.disconnect(),r.current.observer=null)};o.addEventListener("focusout",n,{once:!0}),r.current.observer=new MutationObserver(()=>{if(r.current.isFocused&&o.disabled){var s;(s=r.current.observer)===null||s===void 0||s.disconnect();let a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),r.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let Kr=!1,fe=null;const Ie=new Set;let me=new Map,X=!1,Ve=!1;const Yr={Tab:!0,Escape:!0};function De(e,r){for(let t of Ie)t(e,r)}function Ur(e){return!(e.metaKey||!ue()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function $e(e){X=!0,!de.isOpening&&Ur(e)&&(fe="keyboard",De("keyboard",e))}function L(e){fe="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(X=!0,De("pointer",e))}function St(e){!de.isOpening&&Wr(e)&&(X=!0,fe="virtual")}function Nt(e){e.target===window||e.target===document||Kr||!e.isTrusted||(!X&&!Ve&&(fe="virtual",De("virtual",e)),X=!1,Ve=!1)}function Pt(){X=!1,Ve=!0}function Ge(e){if(typeof window>"u"||typeof document>"u"||me.get(J(e)))return;const r=J(e),t=H(e);let o=r.HTMLElement.prototype.focus;r.HTMLElement.prototype.focus=function(){X=!0,o.apply(this,arguments)},t.addEventListener("keydown",$e,!0),t.addEventListener("keyup",$e,!0),t.addEventListener("click",St,!0),r.addEventListener("focus",Nt,!0),r.addEventListener("blur",Pt,!1),typeof PointerEvent<"u"?(t.addEventListener("pointerdown",L,!0),t.addEventListener("pointermove",L,!0),t.addEventListener("pointerup",L,!0)):process.env.NODE_ENV==="test"&&(t.addEventListener("mousedown",L,!0),t.addEventListener("mousemove",L,!0),t.addEventListener("mouseup",L,!0)),r.addEventListener("beforeunload",()=>{Ct(e)},{once:!0}),me.set(r,{focus:o})}const Ct=(e,r)=>{const t=J(e),o=H(e);r&&o.removeEventListener("DOMContentLoaded",r),me.has(t)&&(t.HTMLElement.prototype.focus=me.get(t).focus,o.removeEventListener("keydown",$e,!0),o.removeEventListener("keyup",$e,!0),o.removeEventListener("click",St,!0),t.removeEventListener("focus",Nt,!0),t.removeEventListener("blur",Pt,!1),typeof PointerEvent<"u"?(o.removeEventListener("pointerdown",L,!0),o.removeEventListener("pointermove",L,!0),o.removeEventListener("pointerup",L,!0)):process.env.NODE_ENV==="test"&&(o.removeEventListener("mousedown",L,!0),o.removeEventListener("mousemove",L,!0),o.removeEventListener("mouseup",L,!0)),me.delete(t))};function qr(e){const r=H(e);let t;return r.readyState!=="loading"?Ge(e):(t=()=>{Ge(e)},r.addEventListener("DOMContentLoaded",t)),()=>Ct(e,t)}typeof document<"u"&&qr();function He(){return fe!=="pointer"}const Jr=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Xr(e,r,t){let o=H(t?.target);const n=typeof window<"u"?J(t?.target).HTMLInputElement:HTMLInputElement,s=typeof window<"u"?J(t?.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?J(t?.target).HTMLElement:HTMLElement,c=typeof window<"u"?J(t?.target).KeyboardEvent:KeyboardEvent;return e=e||o.activeElement instanceof n&&!Jr.has(o.activeElement.type)||o.activeElement instanceof s||o.activeElement instanceof a&&o.activeElement.isContentEditable,!(e&&r==="keyboard"&&t instanceof c&&!Yr[t.key])}function Zr(e,r,t){Ge(),b.useEffect(()=>{if(t?.enabled===!1)return;let o=(n,s)=>{Xr(!!t?.isTextInput,n,s)&&e(He())};return Ie.add(o),()=>{Ie.delete(o)}},r)}function Qr(e){let{isDisabled:r,onFocus:t,onBlur:o,onFocusChange:n}=e;const s=b.useCallback(i=>{if(i.target===i.currentTarget)return o&&o(i),n&&n(!1),!0},[o,n]),a=Tt(s),c=b.useCallback(i=>{const u=H(i.target),m=u?Re(u):Re();i.target===i.currentTarget&&m===xt(i.nativeEvent)&&(t&&t(i),n&&n(!0),a(i))},[n,t,a]);return{focusProps:{onFocus:!r&&(t||n||o)?c:void 0,onBlur:!r&&(o||n)?s:void 0}}}function eo(e){let{isDisabled:r,onBlurWithin:t,onFocusWithin:o,onFocusWithinChange:n}=e,s=b.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:c}=Et(),i=b.useCallback(p=>{W(p.currentTarget,p.target)&&s.current.isFocusWithin&&!W(p.currentTarget,p.relatedTarget)&&(s.current.isFocusWithin=!1,c(),t&&t(p),n&&n(!1))},[t,n,s,c]),u=Tt(i),m=b.useCallback(p=>{if(!W(p.currentTarget,p.target))return;const w=H(p.target),$=Re(w);if(!s.current.isFocusWithin&&$===xt(p.nativeEvent)){o&&o(p),n&&n(!0),s.current.isFocusWithin=!0,u(p);let N=p.currentTarget;a(w,"focus",v=>{if(s.current.isFocusWithin&&!W(N,v.target)){let T=new w.defaultView.FocusEvent("blur",{relatedTarget:v.target});Br(T,N);let P=$t(T);i(P)}},{capture:!0})}},[o,n,u,a,i]);return r?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:m,onBlur:i}}}let Te=!1,Se=0;function We(){Te=!0,setTimeout(()=>{Te=!1},50)}function At(e){e.pointerType==="touch"&&We()}function to(){if(!(typeof document>"u"))return Se===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",At):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",We)),Se++,()=>{Se--,!(Se>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",At):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",We))}}function ro(e){let{onHoverStart:r,onHoverChange:t,onHoverEnd:o,isDisabled:n}=e,[s,a]=b.useState(!1),c=b.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;b.useEffect(to,[]);let{addGlobalListener:i,removeAllGlobalListeners:u}=Et(),{hoverProps:m,triggerHoverEnd:p}=b.useMemo(()=>{let w=(v,T)=>{if(c.pointerType=T,n||T==="touch"||c.isHovered||!W(v.currentTarget,v.target))return;c.isHovered=!0;let P=v.currentTarget;c.target=P,i(H(v.target),"pointerover",O=>{c.isHovered&&c.target&&!W(c.target,O.target)&&$(O,O.pointerType)},{capture:!0}),r&&r({type:"hoverstart",target:P,pointerType:T}),t&&t(!0),a(!0)},$=(v,T)=>{let P=c.target;c.pointerType="",c.target=null,!(T==="touch"||!c.isHovered||!P)&&(c.isHovered=!1,u(),o&&o({type:"hoverend",target:P,pointerType:T}),t&&t(!1),a(!1))},N={};return typeof PointerEvent<"u"?(N.onPointerEnter=v=>{Te&&v.pointerType==="mouse"||w(v,v.pointerType)},N.onPointerLeave=v=>{!n&&W(v.currentTarget,v.target)&&$(v,v.pointerType)}):process.env.NODE_ENV==="test"&&(N.onTouchStart=()=>{c.ignoreEmulatedMouseEvents=!0},N.onMouseEnter=v=>{!c.ignoreEmulatedMouseEvents&&!Te&&w(v,"mouse"),c.ignoreEmulatedMouseEvents=!1},N.onMouseLeave=v=>{!n&&W(v.currentTarget,v.target)&&$(v,"mouse")}),{hoverProps:N,triggerHoverEnd:$}},[r,t,o,n,c,i,u]);return b.useEffect(()=>{n&&p({currentTarget:c.target},c.pointerType)},[n]),{hoverProps:m,isHovered:s}}function oo(e={}){let{autoFocus:r=!1,isTextInput:t,within:o}=e,n=b.useRef({isFocused:!1,isFocusVisible:r||He()}),[s,a]=b.useState(!1),[c,i]=b.useState(()=>n.current.isFocused&&n.current.isFocusVisible),u=b.useCallback(()=>i(n.current.isFocused&&n.current.isFocusVisible),[]),m=b.useCallback($=>{n.current.isFocused=$,n.current.isFocusVisible=He(),a($),u()},[u]);Zr($=>{n.current.isFocusVisible=$,u()},[t,s],{enabled:s,isTextInput:t});let{focusProps:p}=Qr({isDisabled:o,onFocusChange:m}),{focusWithinProps:w}=eo({isDisabled:!o,onFocusWithinChange:m});return{isFocused:s,isFocusVisible:c,focusProps:o?w:p}}var no=Object.defineProperty,so=(e,r,t)=>r in e?no(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Be=(e,r,t)=>(so(e,typeof r!="symbol"?r+"":r,t),t);let ao=class{constructor(){Be(this,"current",this.detect()),Be(this,"handoffState","pending"),Be(this,"currentId",0)}set(r){this.current!==r&&(this.handoffState="pending",this.currentId=0,this.current=r)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Lt=new ao;function io(e){var r;return Lt.isServer?null:e==null?document:(r=e?.ownerDocument)!=null?r:document}function lo(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(r=>setTimeout(()=>{throw r}))}function _t(){let e=[],r={addEventListener(t,o,n,s){return t.addEventListener(o,n,s),r.add(()=>t.removeEventListener(o,n,s))},requestAnimationFrame(...t){let o=requestAnimationFrame(...t);return r.add(()=>cancelAnimationFrame(o))},nextFrame(...t){return r.requestAnimationFrame(()=>r.requestAnimationFrame(...t))},setTimeout(...t){let o=setTimeout(...t);return r.add(()=>clearTimeout(o))},microTask(...t){let o={current:!0};return lo(()=>{o.current&&t[0]()}),r.add(()=>{o.current=!1})},style(t,o,n){let s=t.style.getPropertyValue(o);return Object.assign(t.style,{[o]:n}),this.add(()=>{Object.assign(t.style,{[o]:s})})},group(t){let o=_t();return t(o),this.add(()=>o.dispose())},add(t){return e.includes(t)||e.push(t),()=>{let o=e.indexOf(t);if(o>=0)for(let n of e.splice(o,1))n()}},dispose(){for(let t of e.splice(0))t()}};return r}function co(){let[e]=b.useState(_t);return b.useEffect(()=>()=>e.dispose(),[e]),e}let uo=(e,r)=>{Lt.isServer?b.useEffect(e,r):b.useLayoutEffect(e,r)};function fo(e){let r=b.useRef(e);return uo(()=>{r.current=e},[e]),r}let Ot=function(e){let r=fo(e);return b.useCallback((...t)=>r.current(...t),[r])};function mo(e){let r=e.width/2,t=e.height/2;return{top:e.clientY-t,right:e.clientX+r,bottom:e.clientY+t,left:e.clientX-r}}function po(e,r){return!(!e||!r||e.right<r.left||e.left>r.right||e.bottom<r.top||e.top>r.bottom)}function bo({disabled:e=!1}={}){let r=b.useRef(null),[t,o]=b.useState(!1),n=co(),s=Ot(()=>{r.current=null,o(!1),n.dispose()}),a=Ot(c=>{if(n.dispose(),r.current===null){r.current=c.currentTarget,o(!0);{let i=io(c.currentTarget);n.addEventListener(i,"pointerup",s,!1),n.addEventListener(i,"pointermove",u=>{if(r.current){let m=mo(u);o(po(m,r.current.getBoundingClientRect()))}},!1),n.addEventListener(i,"pointercancel",s,!1)}}});return{pressed:t,pressProps:e?{}:{onPointerDown:a,onPointerUp:s,onClick:s}}}function go(e){return b.useMemo(()=>e,Object.values(e))}let vo=b.createContext(void 0);function ho(){return b.useContext(vo)}function jt(...e){return Array.from(new Set(e.flatMap(r=>typeof r=="string"?r.split(" "):[]))).filter(Boolean).join(" ")}function Ft(e,r,...t){if(e in r){let n=r[e];return typeof n=="function"?n(...t):n}let o=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(r).map(n=>`"${n}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,Ft),o}var yo=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(yo||{}),wo=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(wo||{});function xo(){let e=Eo();return b.useCallback(r=>ko({mergeRefs:e,...r}),[e])}function ko({ourProps:e,theirProps:r,slot:t,defaultTag:o,features:n,visible:s=!0,name:a,mergeRefs:c}){c=c??$o;let i=Mt(r,e);if(s)return Ne(i,t,o,a,c);let u=n??0;if(u&2){let{static:m=!1,...p}=i;if(m)return Ne(p,t,o,a,c)}if(u&1){let{unmount:m=!0,...p}=i;return Ft(m?0:1,{0(){return null},1(){return Ne({...p,hidden:!0,style:{display:"none"}},t,o,a,c)}})}return Ne(i,t,o,a,c)}function Ne(e,r={},t,o,n){let{as:s=t,children:a,refName:c="ref",...i}=Ke(e,["unmount","static"]),u=e.ref!==void 0?{[c]:e.ref}:{},m=typeof a=="function"?a(r):a;"className"in i&&i.className&&typeof i.className=="function"&&(i.className=i.className(r)),i["aria-labelledby"]&&i["aria-labelledby"]===i.id&&(i["aria-labelledby"]=void 0);let p={};if(r){let w=!1,$=[];for(let[N,v]of Object.entries(r))typeof v=="boolean"&&(w=!0),v===!0&&$.push(N.replace(/([A-Z])/g,T=>`-${T.toLowerCase()}`));if(w){p["data-headlessui-state"]=$.join(" ");for(let N of $)p[`data-${N}`]=""}}if(Pe(s)&&(Object.keys(ne(i)).length>0||Object.keys(ne(p)).length>0))if(!b.isValidElement(m)||Array.isArray(m)&&m.length>1||Po(m)){if(Object.keys(ne(i)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(ne(i)).concat(Object.keys(ne(p))).map(w=>` - ${w}`).join(`
|
|
7
|
-
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(
|
|
6
|
+
<%s key={someKey} {...props} />`,I,L,fe,L),te[L+I]=!0)}if(L=null,P!==void 0&&(n(P),L=""+P),i(_)&&(n(_.key),L=""+_.key),"key"in _){P={};for(var ge in _)ge!=="key"&&(P[ge]=_[ge])}else P=_;return L&&s(P,typeof $=="function"?$.displayName||$.name||"Unknown":$),u($,L,P,o(),J,H)}function m($){p($)?$._store&&($._store.validated=1):typeof $=="object"&&$!==null&&$.$$typeof===G&&($._payload.status==="fulfilled"?p($._payload.value)&&$._payload.value._store&&($._payload.value._store.validated=1):$._store&&($._store.validated=1))}function p($){return typeof $=="object"&&$!==null&&$.$$typeof===g}var d=f,g=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),k=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),j=Symbol.for("react.client.reference"),K=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=Object.prototype.hasOwnProperty,M=Array.isArray,z=console.createTask?console.createTask:function(){return null};d={react_stack_bottom_frame:function($){return $()}};var W,Q={},E=d.react_stack_bottom_frame.bind(d,a)(),U=z(r(a)),te={};pn.Fragment=v,pn.jsx=function($,_,P){var I=1e4>K.recentlyCreatedOwnerStacks++;return c($,_,P,!1,I?Error("react-stack-top-frame"):E,I?z(r($)):U)},pn.jsxs=function($,_,P){var I=1e4>K.recentlyCreatedOwnerStacks++;return c($,_,P,!0,I?Error("react-stack-top-frame"):E,I?z(r($)):U)}})()),pn}var si;function Of(){return si||(si=1,process.env.NODE_ENV==="production"?ar.exports=Nf():ar.exports=Cf()),ar.exports}var b=Of();const Af=typeof document<"u"?f.useLayoutEffect:()=>{},ct=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},It=e=>e&&"window"in e&&e.window===e?e:ct(e).defaultView||window;function If(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function Tf(e){return If(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let Ff=!1;function mo(){return Ff}function ft(e,t){if(!mo())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:Tf(n)?n=n.host:n=n.parentNode}return!1}const po=(e=document)=>{var t;if(!mo())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function li(e){return mo()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function ui(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ui(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ci(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ui(e))&&(r&&(r+=" "),r+=t);return r}function jf(e){if(Mf())e.focus({preventScroll:!0});else{let t=Lf(e);e.focus(),_f(t)}}let ir=null;function Mf(){if(ir==null){ir=!1;try{document.createElement("div").focus({get preventScroll(){return ir=!0,!0}})}catch{}}return ir}function Lf(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function _f(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function sr(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function go(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Ze(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const gn=Ze(function(){return go(/^Mac/i)}),Df=Ze(function(){return go(/^iPhone/i)}),fi=Ze(function(){return go(/^iPad/i)||gn()&&navigator.maxTouchPoints>1}),zf=Ze(function(){return Df()||fi()});Ze(function(){return gn()||zf()});const Vf=Ze(function(){return sr(/AppleWebKit/i)&&!Bf()}),Bf=Ze(function(){return sr(/Chrome/i)}),Hf=Ze(function(){return sr(/Android/i)}),Wf=Ze(function(){return sr(/Firefox/i)});function hn(e,t,n=!0){var r,o;let{metaKey:a,ctrlKey:i,altKey:s,shiftKey:l}=t;Wf()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(gn()?a=!0:i=!0);let u=Vf()&&gn()&&!fi()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:i,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:i,altKey:s,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});hn.isOpening=n,jf(e),e.dispatchEvent(u),hn.isOpening=!1}hn.isOpening=!1;function di(){let e=f.useRef(new Map),t=f.useCallback((o,a,i,s)=>{let l=s?.once?(...u)=>{e.current.delete(i),i(...u)}:i;e.current.set(i,{type:a,eventTarget:o,fn:l,options:s}),o.addEventListener(a,l,s)},[]),n=f.useCallback((o,a,i,s)=>{var l;let u=((l=e.current.get(i))===null||l===void 0?void 0:l.fn)||i;o.removeEventListener(a,u,s),e.current.delete(i)},[]),r=f.useCallback(()=>{e.current.forEach((o,a)=>{n(o.eventTarget,o.type,a,o.options)})},[n]);return f.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Rf(e){return e.pointerType===""&&e.isTrusted?!0:Hf()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function mi(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Uf(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function pi(e){let t=f.useRef({isFocused:!1,observer:null});return Af(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),f.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=n.target,o=a=>{if(t.current.isFocused=!1,r.disabled){let i=mi(a);e?.(i)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let i=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:i})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:i}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let Gf=!1,vn=null;const ho=new Set;let bn=new Map,Tt=!1,vo=!1;const Yf={Tab:!0,Escape:!0};function bo(e,t){for(let n of ho)n(e,t)}function Kf(e){return!(e.metaKey||!gn()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function lr(e){Tt=!0,!hn.isOpening&&Kf(e)&&(vn="keyboard",bo("keyboard",e))}function Fe(e){vn="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(Tt=!0,bo("pointer",e))}function gi(e){!hn.isOpening&&Rf(e)&&(Tt=!0,vn="virtual")}function hi(e){e.target===window||e.target===document||Gf||!e.isTrusted||(!Tt&&!vo&&(vn="virtual",bo("virtual",e)),Tt=!1,vo=!1)}function vi(){Tt=!1,vo=!0}function yo(e){if(typeof window>"u"||typeof document>"u"||bn.get(It(e)))return;const t=It(e),n=ct(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Tt=!0,r.apply(this,arguments)},n.addEventListener("keydown",lr,!0),n.addEventListener("keyup",lr,!0),n.addEventListener("click",gi,!0),t.addEventListener("focus",hi,!0),t.addEventListener("blur",vi,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Fe,!0),n.addEventListener("pointermove",Fe,!0),n.addEventListener("pointerup",Fe,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",Fe,!0),n.addEventListener("mousemove",Fe,!0),n.addEventListener("mouseup",Fe,!0)),t.addEventListener("beforeunload",()=>{bi(e)},{once:!0}),bn.set(t,{focus:r})}const bi=(e,t)=>{const n=It(e),r=ct(e);t&&r.removeEventListener("DOMContentLoaded",t),bn.has(n)&&(n.HTMLElement.prototype.focus=bn.get(n).focus,r.removeEventListener("keydown",lr,!0),r.removeEventListener("keyup",lr,!0),r.removeEventListener("click",gi,!0),n.removeEventListener("focus",hi,!0),n.removeEventListener("blur",vi,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Fe,!0),r.removeEventListener("pointermove",Fe,!0),r.removeEventListener("pointerup",Fe,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",Fe,!0),r.removeEventListener("mousemove",Fe,!0),r.removeEventListener("mouseup",Fe,!0)),bn.delete(n))};function Xf(e){const t=ct(e);let n;return t.readyState!=="loading"?yo(e):(n=()=>{yo(e)},t.addEventListener("DOMContentLoaded",n)),()=>bi(e,n)}typeof document<"u"&&Xf();function xo(){return vn!=="pointer"}const qf=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Jf(e,t,n){let r=ct(n?.target);const o=typeof window<"u"?It(n?.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?It(n?.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?It(n?.target).HTMLElement:HTMLElement,s=typeof window<"u"?It(n?.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof o&&!qf.has(r.activeElement.type)||r.activeElement instanceof a||r.activeElement instanceof i&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof s&&!Yf[n.key])}function Qf(e,t,n){yo(),f.useEffect(()=>{if(n?.enabled===!1)return;let r=(o,a)=>{Jf(!!n?.isTextInput,o,a)&&e(xo())};return ho.add(r),()=>{ho.delete(r)}},t)}function Zf(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const a=f.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),i=pi(a),s=f.useCallback(l=>{const u=ct(l.target),c=u?po(u):po();l.target===l.currentTarget&&c===li(l.nativeEvent)&&(n&&n(l),o&&o(!0),i(l))},[o,n,i]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:!t&&(r||o)?a:void 0}}}function ed(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,a=f.useRef({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:s}=di(),l=f.useCallback(m=>{ft(m.currentTarget,m.target)&&a.current.isFocusWithin&&!ft(m.currentTarget,m.relatedTarget)&&(a.current.isFocusWithin=!1,s(),n&&n(m),o&&o(!1))},[n,o,a,s]),u=pi(l),c=f.useCallback(m=>{if(!ft(m.currentTarget,m.target))return;const p=ct(m.target),d=po(p);if(!a.current.isFocusWithin&&d===li(m.nativeEvent)){r&&r(m),o&&o(!0),a.current.isFocusWithin=!0,u(m);let g=m.currentTarget;i(p,"focus",h=>{if(a.current.isFocusWithin&&!ft(g,h.target)){let v=new p.defaultView.FocusEvent("blur",{relatedTarget:h.target});Uf(v,g);let y=mi(v);l(y)}},{capture:!0})}},[r,o,u,i,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:l}}}let ur=!1,cr=0;function wo(){ur=!0,setTimeout(()=>{ur=!1},50)}function yi(e){e.pointerType==="touch"&&wo()}function td(){if(!(typeof document>"u"))return cr===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",yi):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",wo)),cr++,()=>{cr--,!(cr>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",yi):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",wo))}}function Ft(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[a,i]=f.useState(!1),s=f.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;f.useEffect(td,[]);let{addGlobalListener:l,removeAllGlobalListeners:u}=di(),{hoverProps:c,triggerHoverEnd:m}=f.useMemo(()=>{let p=(h,v)=>{if(s.pointerType=v,o||v==="touch"||s.isHovered||!ft(h.currentTarget,h.target))return;s.isHovered=!0;let y=h.currentTarget;s.target=y,l(ct(h.target),"pointerover",w=>{s.isHovered&&s.target&&!ft(s.target,w.target)&&d(w,w.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:y,pointerType:v}),n&&n(!0),i(!0)},d=(h,v)=>{let y=s.target;s.pointerType="",s.target=null,!(v==="touch"||!s.isHovered||!y)&&(s.isHovered=!1,u(),r&&r({type:"hoverend",target:y,pointerType:v}),n&&n(!1),i(!1))},g={};return typeof PointerEvent<"u"?(g.onPointerEnter=h=>{ur&&h.pointerType==="mouse"||p(h,h.pointerType)},g.onPointerLeave=h=>{!o&&ft(h.currentTarget,h.target)&&d(h,h.pointerType)}):process.env.NODE_ENV==="test"&&(g.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},g.onMouseEnter=h=>{!s.ignoreEmulatedMouseEvents&&!ur&&p(h,"mouse"),s.ignoreEmulatedMouseEvents=!1},g.onMouseLeave=h=>{!o&&ft(h.currentTarget,h.target)&&d(h,"mouse")}),{hoverProps:g,triggerHoverEnd:d}},[t,n,r,o,s,l,u]);return f.useEffect(()=>{o&&m({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:c,isHovered:a}}function jt(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=f.useRef({isFocused:!1,isFocusVisible:t||xo()}),[a,i]=f.useState(!1),[s,l]=f.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=f.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),c=f.useCallback(d=>{o.current.isFocused=d,o.current.isFocusVisible=xo(),i(d),u()},[u]);Qf(d=>{o.current.isFocusVisible=d,u()},[n,a],{enabled:a,isTextInput:n});let{focusProps:m}=Zf({isDisabled:r,onFocusChange:c}),{focusWithinProps:p}=ed({isDisabled:!r,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:s,focusProps:r?p:m}}var nd=Object.defineProperty,rd=(e,t,n)=>t in e?nd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,So=(e,t,n)=>(rd(e,typeof t!="symbol"?t+"":t,n),n);let od=class{constructor(){So(this,"current",this.detect()),So(this,"handoffState","pending"),So(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},We=new od;function dt(e){var t;return We.isServer?null:e==null?document:(t=e?.ownerDocument)!=null?t:document}function mt(e){var t,n;return We.isServer?null:e==null?document:(n=(t=e?.getRootNode)==null?void 0:t.call(e))!=null?n:document}function pt(e){var t,n;return(n=(t=mt(e))==null?void 0:t.activeElement)!=null?n:null}function Eo(e){return pt(e)===e}function fr(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Pe(){let e=[],t={addEventListener(n,r,o,a){return n.addEventListener(r,o,a),t.add(()=>n.removeEventListener(r,o,a))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return fr(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let a=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:a})})},group(n){let r=Pe();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function Re(){let[e]=f.useState(Pe);return f.useEffect(()=>()=>e.dispose(),[e]),e}let se=(e,t)=>{We.isServer?f.useEffect(e,t):f.useLayoutEffect(e,t)};function Ue(e){let t=f.useRef(e);return se(()=>{t.current=e},[e]),t}let F=function(e){let t=Ue(e);return f.useCallback((...n)=>t.current(...n),[t])};function ad(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function id(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function yn({disabled:e=!1}={}){let t=f.useRef(null),[n,r]=f.useState(!1),o=Re(),a=F(()=>{t.current=null,r(!1),o.dispose()}),i=F(s=>{if(o.dispose(),t.current===null){t.current=s.currentTarget,r(!0);{let l=dt(s.currentTarget);o.addEventListener(l,"pointerup",a,!1),o.addEventListener(l,"pointermove",u=>{if(t.current){let c=ad(u);r(id(c,t.current.getBoundingClientRect()))}},!1),o.addEventListener(l,"pointercancel",a,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:i,onPointerUp:a,onClick:a}}}function de(e){return f.useMemo(()=>e,Object.values(e))}let xi=f.createContext(void 0);function gt(){return f.useContext(xi)}function sd({value:e,children:t}){return f.createElement(xi.Provider,{value:e},t)}function ko(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function he(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,he),r}var je=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(je||{}),ht=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ht||{});function ae(){let e=ud();return f.useCallback(t=>ld({mergeRefs:e,...t}),[e])}function ld({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:a=!0,name:i,mergeRefs:s}){s=s??cd;let l=wi(t,e);if(a)return dr(l,n,r,i,s);let u=o??0;if(u&2){let{static:c=!1,...m}=l;if(c)return dr(m,n,r,i,s)}if(u&1){let{unmount:c=!0,...m}=l;return he(c?0:1,{0(){return null},1(){return dr({...m,hidden:!0,style:{display:"none"}},n,r,i,s)}})}return dr(l,n,r,i,s)}function dr(e,t={},n,r,o){let{as:a=n,children:i,refName:s="ref",...l}=$o(e,["unmount","static"]),u=e.ref!==void 0?{[s]:e.ref}:{},c=typeof i=="function"?i(t):i;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let m={};if(t){let p=!1,d=[];for(let[g,h]of Object.entries(t))typeof h=="boolean"&&(p=!0),h===!0&&d.push(g.replace(/([A-Z])/g,v=>`-${v.toLowerCase()}`));if(p){m["data-headlessui-state"]=d.join(" ");for(let g of d)m[`data-${g}`]=""}}if(xn(a)&&(Object.keys(vt(l)).length>0||Object.keys(vt(m)).length>0))if(!f.isValidElement(c)||Array.isArray(c)&&c.length>1||dd(c)){if(Object.keys(vt(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(vt(l)).concat(Object.keys(vt(m))).map(p=>` - ${p}`).join(`
|
|
7
|
+
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(p=>` - ${p}`).join(`
|
|
8
8
|
`)].join(`
|
|
9
|
-
`))}else{let w=m.props,$=w?.className,N=typeof $=="function"?(...P)=>jt($(...P),i.className):jt($,i.className),v=N?{className:N}:{},T=Mt(m.props,ne(Ke(i,["ref"])));for(let P in p)P in T&&delete p[P];return b.cloneElement(m,Object.assign({},T,p,u,{ref:n(No(m),u.ref)},v))}return b.createElement(s,Object.assign({},Ke(i,["ref"]),!Pe(s)&&u,!Pe(s)&&p),m)}function Eo(){let e=b.useRef([]),r=b.useCallback(t=>{for(let o of e.current)o!=null&&(typeof o=="function"?o(t):o.current=t)},[]);return(...t)=>{if(!t.every(o=>o==null))return e.current=t,r}}function $o(...e){return e.every(r=>r==null)?void 0:r=>{for(let t of e)t!=null&&(typeof t=="function"?t(r):t.current=r)}}function Mt(...e){if(e.length===0)return{};if(e.length===1)return e[0];let r={},t={};for(let o of e)for(let n in o)n.startsWith("on")&&typeof o[n]=="function"?(t[n]!=null||(t[n]=[]),t[n].push(o[n])):r[n]=o[n];if(r.disabled||r["aria-disabled"])for(let o in t)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(o)&&(t[o]=[n=>{var s;return(s=n?.preventDefault)==null?void 0:s.call(n)}]);for(let o in t)Object.assign(r,{[o](n,...s){let a=t[o];for(let c of a){if((n instanceof Event||n?.nativeEvent instanceof Event)&&n.defaultPrevented)return;c(n,...s)}}});return r}function To(...e){if(e.length===0)return{};if(e.length===1)return e[0];let r={},t={};for(let o of e)for(let n in o)n.startsWith("on")&&typeof o[n]=="function"?(t[n]!=null||(t[n]=[]),t[n].push(o[n])):r[n]=o[n];for(let o in t)Object.assign(r,{[o](...n){let s=t[o];for(let a of s)a?.(...n)}});return r}function So(e){var r;return Object.assign(b.forwardRef(e),{displayName:(r=e.displayName)!=null?r:e.name})}function ne(e){let r=Object.assign({},e);for(let t in r)r[t]===void 0&&delete r[t];return r}function Ke(e,r=[]){let t=Object.assign({},e);for(let o of r)o in t&&delete t[o];return t}function No(e){return b.version.split(".")[0]>="19"?e.props.ref:e.ref}function Pe(e){return e===b.Fragment||e===Symbol.for("react.fragment")}function Po(e){return Pe(e.type)}let Co="button";function Ao(e,r){var t;let o=ho(),{disabled:n=o||!1,autoFocus:s=!1,...a}=e,{isFocusVisible:c,focusProps:i}=oo({autoFocus:s}),{isHovered:u,hoverProps:m}=ro({isDisabled:n}),{pressed:p,pressProps:w}=bo({disabled:n}),$=To({ref:r,type:(t=a.type)!=null?t:"button",disabled:n||void 0,autoFocus:s},i,m,w),N=go({disabled:n,hover:u,focus:c,active:p,autofocus:s});return xo()({ourProps:$,theirProps:a,slot:N,defaultTag:Co,name:"Button"})}let Lo=So(Ao);const Rt=tt("inline-flex items-center justify-center cursor-pointer whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"border border-transparent shadow-sm",soft:"border-transparent shadow-none",outline:"border bg-transparent shadow-sm",ghost:"border border-transparent bg-transparent",link:"bg-transparent underline-offset-4 hover:underline"},colorScheme:{primary:"",orange:"",teal:"",purple:"",amber:"",success:"",error:"",neutral:""},size:{sm:"h-9 rounded-md px-3",default:"h-10 px-4 py-2",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},compoundVariants:[{variant:"solid",colorScheme:"primary",className:"bg-primary-600 text-white hover:bg-primary-700"},{variant:"solid",colorScheme:"orange",className:"bg-orange-500 text-white hover:bg-orange-600"},{variant:"solid",colorScheme:"teal",className:"bg-teal-500 text-white hover:bg-teal-600"},{variant:"solid",colorScheme:"purple",className:"bg-purple-500 text-white hover:bg-purple-600"},{variant:"solid",colorScheme:"amber",className:"bg-amber-400 text-black hover:bg-amber-500"},{variant:"solid",colorScheme:"success",className:"bg-success-600 text-white hover:bg-success-700"},{variant:"solid",colorScheme:"error",className:"bg-error-600 text-white hover:bg-error-700"},{variant:"solid",colorScheme:"neutral",className:"bg-gray-600 text-white hover:bg-gray-700"},{variant:"soft",colorScheme:"primary",className:"bg-primary-100 text-primary-700 hover:bg-primary-200"},{variant:"soft",colorScheme:"orange",className:"bg-orange-100 text-orange-700 hover:bg-orange-200"},{variant:"soft",colorScheme:"teal",className:"bg-teal-100 text-teal-700 hover:bg-teal-200"},{variant:"soft",colorScheme:"purple",className:"bg-purple-100 text-purple-700 hover:bg-purple-200"},{variant:"soft",colorScheme:"amber",className:"bg-amber-100 text-amber-800 hover:bg-amber-200"},{variant:"soft",colorScheme:"success",className:"bg-success-100 text-success-800 hover:bg-success-200"},{variant:"soft",colorScheme:"error",className:"bg-error-100 text-error-800 hover:bg-error-200"},{variant:"soft",colorScheme:"neutral",className:"bg-gray-100 text-gray-800 hover:bg-gray-200"},{variant:"outline",colorScheme:"primary",className:"border-primary-500 text-primary-500 hover:bg-primary-50"},{variant:"outline",colorScheme:"orange",className:"border-orange-500 text-orange-500 hover:bg-orange-50"},{variant:"outline",colorScheme:"teal",className:"border-teal-500 text-teal-500 hover:bg-teal-50"},{variant:"outline",colorScheme:"purple",className:"border-purple-500 text-purple-500 hover:bg-purple-50"},{variant:"outline",colorScheme:"amber",className:"border-amber-500 text-amber-600 hover:bg-amber-50"},{variant:"outline",colorScheme:"success",className:"border-success-500 text-success-600 hover:bg-success-50"},{variant:"outline",colorScheme:"error",className:"border-error-500 text-error-600 hover:bg-error-50"},{variant:"outline",colorScheme:"neutral",className:"border-gray-300 text-gray-700 hover:bg-gray-100"},{variant:"ghost",colorScheme:"primary",className:"text-primary-500 hover:bg-primary-50 hover:text-primary-600"},{variant:"ghost",colorScheme:"orange",className:"text-orange-500 hover:bg-orange-50 hover:text-orange-600"},{variant:"ghost",colorScheme:"teal",className:"text-teal-500 hover:bg-teal-50 hover:text-teal-600"},{variant:"ghost",colorScheme:"purple",className:"text-purple-500 hover:bg-purple-50 hover:text-purple-600"},{variant:"ghost",colorScheme:"amber",className:"text-amber-600 hover:bg-amber-50 hover:text-amber-700"},{variant:"ghost",colorScheme:"success",className:"text-success-600 hover:bg-success-50 hover:text-success-700"},{variant:"ghost",colorScheme:"error",className:"text-error-600 hover:bg-error-50 hover:text-error-700"},{variant:"ghost",colorScheme:"neutral",className:"text-gray-600 hover:bg-gray-100 hover:text-gray-900"},{variant:"link",colorScheme:"primary",className:"text-primary-500 hover:text-primary-700"},{variant:"link",colorScheme:"orange",className:"text-orange-500 hover:text-orange-700"},{variant:"link",colorScheme:"teal",className:"text-teal-500 hover:text-teal-700"},{variant:"link",colorScheme:"purple",className:"text-purple-500 hover:text-purple-700"},{variant:"link",colorScheme:"amber",className:"text-amber-600 hover:text-amber-800"},{variant:"link",colorScheme:"success",className:"text-success-600 hover:text-success-800"},{variant:"link",colorScheme:"error",className:"text-error-600 hover:text-error-800"},{variant:"link",colorScheme:"neutral",className:"text-gray-500 hover:text-gray-900"}],defaultVariants:{colorScheme:"primary",variant:"solid",size:"default"}}),zt=b.forwardRef(({className:e,colorScheme:r,variant:t,size:o,isLoading:n=!1,startIcon:s,endIcon:a,disabled:c,children:i,...u},m)=>{const p=c||n;return ee.jsxs(Lo,{className:yt(Rt({colorScheme:r,variant:t,size:o}),e),ref:m,disabled:p,...u,children:[n&&ee.jsx("span",{className:"mr-2 flex items-center",children:ee.jsx(wt,{size:"sm",className:"text-current"})}),!n&&s&&ee.jsx("span",{className:"mr-2 inline-flex shrink-0 items-center",children:s}),i,!n&&a&&ee.jsx("span",{className:"ml-2 inline-flex shrink-0 items-center",children:a})]})});zt.displayName="Button",M.Button=zt,M.Spinner=wt,M.buttonVariants=Rt,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
|
|
9
|
+
`))}else{let p=c.props,d=p?.className,g=typeof d=="function"?(...y)=>ko(d(...y),l.className):ko(d,l.className),h=g?{className:g}:{},v=wi(c.props,vt($o(l,["ref"])));for(let y in m)y in v&&delete m[y];return f.cloneElement(c,Object.assign({},v,m,u,{ref:o(fd(c),u.ref)},h))}return f.createElement(a,Object.assign({},$o(l,["ref"]),!xn(a)&&u,!xn(a)&&m),c)}function ud(){let e=f.useRef([]),t=f.useCallback(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function cd(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function wi(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[o=>{var a;return(a=o?.preventDefault)==null?void 0:a.call(o)}]);for(let r in n)Object.assign(t,{[r](o,...a){let i=n[r];for(let s of i){if((o instanceof Event||o?.nativeEvent instanceof Event)&&o.defaultPrevented)return;s(o,...a)}}});return t}function Le(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];for(let r in n)Object.assign(t,{[r](...o){let a=n[r];for(let i of a)i?.(...o)}});return t}function oe(e){var t;return Object.assign(f.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function vt(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function $o(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function fd(e){return f.version.split(".")[0]>="19"?e.props.ref:e.ref}function xn(e){return e===f.Fragment||e===Symbol.for("react.fragment")}function dd(e){return xn(e.type)}let md="button";function pd(e,t){var n;let r=gt(),{disabled:o=r||!1,autoFocus:a=!1,...i}=e,{isFocusVisible:s,focusProps:l}=jt({autoFocus:a}),{isHovered:u,hoverProps:c}=Ft({isDisabled:o}),{pressed:m,pressProps:p}=yn({disabled:o}),d=Le({ref:t,type:(n=i.type)!=null?n:"button",disabled:o||void 0,autoFocus:a},l,c,p),g=de({disabled:o,hover:u,focus:s,active:m,autofocus:a});return ae()({ourProps:d,theirProps:i,slot:g,defaultTag:md,name:"Button"})}let gd=oe(pd);function Si(e,t,n){let[r,o]=f.useState(n),a=e!==void 0,i=f.useRef(a),s=f.useRef(!1),l=f.useRef(!1);return a&&!i.current&&!s.current?(s.current=!0,i.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!a&&i.current&&!l.current&&(l.current=!0,i.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[a?e:r,F(u=>(a||He.flushSync(()=>o(u)),t?.(u)))]}function Ei(e){let[t]=f.useState(e);return t}function ki(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))Pi(n,$i(t,r),o);return n}function $i(e,t){return e?e+"["+t+"]":t}function Pi(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())Pi(e,$i(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):hd(n)&&!f.isValidElement(n)&&ki(n,t,e)}function Ni(e){var t,n;let r=(t=e?.form)!=null?t:e.closest("form");if(r){for(let o of r.elements)if(o!==e&&(o.tagName==="INPUT"&&o.type==="submit"||o.tagName==="BUTTON"&&o.type==="submit"||o.nodeName==="INPUT"&&o.type==="image")){o.click();return}(n=r.requestSubmit)==null||n.call(r)}}function hd(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}let vd="span";var Ge=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Ge||{});function bd(e,t){var n;let{features:r=1,...o}=e,a={ref:t,"aria-hidden":(r&2)===2?!0:(n=o["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return ae()({ourProps:a,theirProps:o,slot:{},defaultTag:vd,name:"Hidden"})}let et=oe(bd),Ci=f.createContext(null);function yd(e){let[t,n]=f.useState(null);return f.createElement(Ci.Provider,{value:{target:t}},e.children,f.createElement(et,{features:Ge.Hidden,ref:n}))}function xd({children:e}){let t=f.useContext(Ci);if(!t)return f.createElement(f.Fragment,null,e);let{target:n}=t;return n?He.createPortal(f.createElement(f.Fragment,null,e),n):null}function Oi({data:e,form:t,disabled:n,onReset:r,overrides:o}){let[a,i]=f.useState(null),s=Re();return f.useEffect(()=>{if(r&&a)return s.addEventListener(a,"reset",r)},[a,t,r]),f.createElement(xd,null,f.createElement(wd,{setForm:i,formId:t}),ki(e).map(([l,u])=>f.createElement(et,{features:Ge.Hidden,...vt({key:l,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:l,value:u,...o})})))}function wd({setForm:e,formId:t}){return f.useEffect(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:f.createElement(et,{features:Ge.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let r=n.closest("form");r&&e(r)}})}let Ai=f.createContext(void 0);function wn(){return f.useContext(Ai)}function Sd({id:e,children:t}){return f.createElement(Ai.Provider,{value:e},t)}function Ii(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function tt(e){return Ii(e)&&"tagName"in e}function xe(e){return tt(e)&&"accessKey"in e}function _e(e){return tt(e)&&"tabIndex"in e}function Ed(e){return tt(e)&&"style"in e}function kd(e){return xe(e)&&e.nodeName==="IFRAME"}function Ti(e){return xe(e)&&e.nodeName==="INPUT"}function Po(e){return xe(e)&&e.nodeName==="LABEL"}function $d(e){return xe(e)&&e.nodeName==="FIELDSET"}function Fi(e){return xe(e)&&e.nodeName==="LEGEND"}function Pd(e){return tt(e)?e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'):!1}function Sn(e){let t=e.parentElement,n=null;for(;t&&!$d(t);)Fi(t)&&(n=t),t=t.parentElement;let r=t?.getAttribute("disabled")==="";return r&&Nd(n)?!1:r}function Nd(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(Fi(t))return!1;t=t.previousElementSibling}return!0}let ji=Symbol();function Mi(e,t=!0){return Object.assign(e,{[ji]:t})}function ue(...e){let t=f.useRef(e);f.useEffect(()=>{t.current=e},[e]);let n=F(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||r?.[ji])?void 0:n}let mr=f.createContext(null);mr.displayName="DescriptionContext";function Li(){let e=f.useContext(mr);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Li),t}return e}function pr(){var e,t;return(t=(e=f.useContext(mr))==null?void 0:e.value)!=null?t:void 0}function gr(){let[e,t]=f.useState([]);return[e.length>0?e.join(" "):void 0,f.useMemo(()=>function(n){let r=F(a=>(t(i=>[...i,a]),()=>t(i=>{let s=i.slice(),l=s.indexOf(a);return l!==-1&&s.splice(l,1),s}))),o=f.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return f.createElement(mr.Provider,{value:o},n.children)},[t])]}let Cd="p";function Od(e,t){let n=f.useId(),r=gt(),{id:o=`headlessui-description-${n}`,...a}=e,i=Li(),s=ue(t);se(()=>i.register(o),[o,i.register]);let l=de({...i.slot,disabled:r||!1}),u={ref:s,...i.props,id:o};return ae()({ourProps:u,theirProps:a,slot:l,defaultTag:Cd,name:i.name||"Description"})}let Ad=oe(Od),En=Object.assign(Ad,{});var Z=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Z||{});let hr=f.createContext(null);hr.displayName="LabelContext";function No(){let e=f.useContext(hr);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,No),t}return e}function kn(e){var t,n,r;let o=(n=(t=f.useContext(hr))==null?void 0:t.value)!=null?n:void 0;return((r=e?.length)!=null?r:0)>0?[o,...e].filter(Boolean).join(" "):o}function $n({inherit:e=!1}={}){let t=kn(),[n,r]=f.useState([]),o=e?[t,...n].filter(Boolean):n;return[o.length>0?o.join(" "):void 0,f.useMemo(()=>function(a){let i=F(l=>(r(u=>[...u,l]),()=>r(u=>{let c=u.slice(),m=c.indexOf(l);return m!==-1&&c.splice(m,1),c}))),s=f.useMemo(()=>({register:i,slot:a.slot,name:a.name,props:a.props,value:a.value}),[i,a.slot,a.name,a.props,a.value]);return f.createElement(hr.Provider,{value:s},a.children)},[r])]}let Id="label";function Td(e,t){var n;let r=f.useId(),o=No(),a=wn(),i=gt(),{id:s=`headlessui-label-${r}`,htmlFor:l=a??((n=o.props)==null?void 0:n.htmlFor),passive:u=!1,...c}=e,m=ue(t);se(()=>o.register(s),[s,o.register]);let p=F(h=>{let v=h.currentTarget;if(!(h.target!==h.currentTarget&&Pd(h.target))&&(Po(v)&&h.preventDefault(),o.props&&"onClick"in o.props&&typeof o.props.onClick=="function"&&o.props.onClick(h),Po(v))){let y=document.getElementById(v.htmlFor);if(y){let w=y.getAttribute("disabled");if(w==="true"||w==="")return;let x=y.getAttribute("aria-disabled");if(x==="true"||x==="")return;(Ti(y)&&(y.type==="file"||y.type==="radio"||y.type==="checkbox")||y.role==="radio"||y.role==="checkbox"||y.role==="switch")&&y.click(),y.focus({preventScroll:!0})}}}),d=de({...o.slot,disabled:i||!1}),g={ref:m,...o.props,id:s,htmlFor:l,onClick:p};return u&&("onClick"in g&&(delete g.htmlFor,delete g.onClick),"onClick"in c&&delete c.onClick),ae()({ourProps:g,theirProps:c,slot:d,defaultTag:l?Id:"div",name:o.name||"Label"})}let Fd=oe(Td),Pn=Object.assign(Fd,{}),jd=f.createContext(()=>{});function Co({value:e,children:t}){return f.createElement(jd.Provider,{value:e},t)}function Md(e,t){return e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"&&"id"in e&&"id"in t?e.id===t.id:e===t}function Ld(e=Md){return f.useCallback((t,n)=>{if(typeof e=="string"){let r=e;return t?.[r]===n?.[r]}return e(t,n)},[e])}function _i(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function Oo(e,t,n=!1){let[r,o]=f.useState(()=>_i(t));return se(()=>{if(!t||!e)return;let a=Pe();return a.requestAnimationFrame(function i(){a.requestAnimationFrame(i),o(s=>{let l=_i(t);return l.width===s.width&&l.height===s.height?s:l})}),()=>{a.dispose()}},[t,e]),n?{width:`${r.width}px`,height:`${r.height}px`}:r}var Di=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(Di||{});function zi(e){let t=f.useRef(null),n=F(o=>{t.current=o.pointerType,!Sn(o.currentTarget)&&o.pointerType==="mouse"&&o.button===Di.Left&&(o.preventDefault(),e(o))}),r=F(o=>{t.current!=="mouse"&&(Sn(o.currentTarget)||e(o))});return{onPointerDown:n,onClick:r}}let Vi=class extends Map{constructor(t){super(),this.factory=t}get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t),this.set(t,n)),n}};var _d=Object.defineProperty,Dd=(e,t,n)=>t in e?_d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zd=(e,t,n)=>(Dd(e,t+"",n),n),Bi=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Me=(e,t,n)=>(Bi(e,t,"read from private field"),n?n.call(e):t.get(e)),Ao=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Hi=(e,t,n,r)=>(Bi(e,t,"write to private field"),t.set(e,n),n),Ye,Nn,Cn;let vr=class{constructor(t){Ao(this,Ye,{}),Ao(this,Nn,new Vi(()=>new Set)),Ao(this,Cn,new Set),zd(this,"disposables",Pe()),Hi(this,Ye,t),We.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return Me(this,Ye)}subscribe(t,n){if(We.isServer)return()=>{};let r={selector:t,callback:n,current:t(Me(this,Ye))};return Me(this,Cn).add(r),this.disposables.add(()=>{Me(this,Cn).delete(r)})}on(t,n){return We.isServer?()=>{}:(Me(this,Nn).get(t).add(n),this.disposables.add(()=>{Me(this,Nn).get(t).delete(n)}))}send(t){let n=this.reduce(Me(this,Ye),t);if(n!==Me(this,Ye)){Hi(this,Ye,n);for(let r of Me(this,Cn)){let o=r.selector(Me(this,Ye));Wi(r.current,o)||(r.current=o,r.callback(o))}for(let r of Me(this,Nn).get(t.type))r(Me(this,Ye),t)}}};Ye=new WeakMap,Nn=new WeakMap,Cn=new WeakMap;function Wi(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null?!1:Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:Io(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size!==t.size?!1:Io(e.entries(),t.entries()):Ri(e)&&Ri(t)?Io(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()):!1}function Io(e,t){do{let n=e.next(),r=t.next();if(n.done&&r.done)return!0;if(n.done||r.done||!Object.is(n.value,r.value))return!1}while(!0)}function Ri(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function On(e){let[t,n]=e(),r=Pe();return(...o)=>{t(...o),r.dispose(),r.microTask(n)}}var Vd=Object.defineProperty,Bd=(e,t,n)=>t in e?Vd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ui=(e,t,n)=>(Bd(e,typeof t!="symbol"?t+"":t,n),n),To=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(To||{});let Hd={0(e,t){let n=t.id,r=e.stack,o=e.stack.indexOf(n);if(o!==-1){let a=e.stack.slice();return a.splice(o,1),a.push(n),r=a,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(r===-1)return e;let o=e.stack.slice();return o.splice(r,1),{...e,stack:o}}},Wd=class Ef extends vr{constructor(){super(...arguments),Ui(this,"actions",{push:t=>this.send({type:0,id:t}),pop:t=>this.send({type:1,id:t})}),Ui(this,"selectors",{isTop:(t,n)=>t.stack[t.stack.length-1]===n,inStack:(t,n)=>t.stack.includes(n)})}static new(){return new Ef({stack:[]})}reduce(t,n){return he(n.type,Hd,t,n)}};const Mt=new Vi(()=>Wd.new());var br={exports:{}},Fo={};var Gi;function Rd(){if(Gi)return Fo;Gi=1;var e=f;function t(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,o=e.useRef,a=e.useEffect,i=e.useMemo,s=e.useDebugValue;return Fo.useSyncExternalStoreWithSelector=function(l,u,c,m,p){var d=o(null);if(d.current===null){var g={hasValue:!1,value:null};d.current=g}else g=d.current;d=i(function(){function v(S){if(!y){if(y=!0,w=S,S=m(S),p!==void 0&&g.hasValue){var C=g.value;if(p(C,S))return x=C}return x=S}if(C=x,n(w,S))return C;var T=m(S);return p!==void 0&&p(C,T)?(w=S,C):(w=S,x=T)}var y=!1,w,x,k=c===void 0?null:c;return[function(){return v(u())},k===null?void 0:function(){return v(k())}]},[u,c,m,p]);var h=r(l,d[0],d[1]);return a(function(){g.hasValue=!0,g.value=h},[h]),s(h),h},Fo}var jo={};var Yi;function Ud(){return Yi||(Yi=1,process.env.NODE_ENV!=="production"&&(function(){function e(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=f,n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,o=t.useRef,a=t.useEffect,i=t.useMemo,s=t.useDebugValue;jo.useSyncExternalStoreWithSelector=function(l,u,c,m,p){var d=o(null);if(d.current===null){var g={hasValue:!1,value:null};d.current=g}else g=d.current;d=i(function(){function v(S){if(!y){if(y=!0,w=S,S=m(S),p!==void 0&&g.hasValue){var C=g.value;if(p(C,S))return x=C}return x=S}if(C=x,n(w,S))return C;var T=m(S);return p!==void 0&&p(C,T)?(w=S,C):(w=S,x=T)}var y=!1,w,x,k=c===void 0?null:c;return[function(){return v(u())},k===null?void 0:function(){return v(k())}]},[u,c,m,p]);var h=r(l,d[0],d[1]);return a(function(){g.hasValue=!0,g.value=h},[h]),s(h),h},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),jo}var Ki;function Gd(){return Ki||(Ki=1,process.env.NODE_ENV==="production"?br.exports=Rd():br.exports=Ud()),br.exports}var Yd=Gd();function ie(e,t,n=Wi){return Yd.useSyncExternalStoreWithSelector(F(r=>e.subscribe(Kd,r)),F(()=>e.state),F(()=>e.state),F(t),n)}function Kd(e){return e}function An(e,t){let n=f.useId(),r=Mt.get(t),[o,a]=ie(r,f.useCallback(i=>[r.selectors.isTop(i,n),r.selectors.inStack(i,n)],[r,n]));return se(()=>{if(e)return r.actions.push(n),()=>r.actions.pop(n)},[r,e,n]),e?a?o:!0:!1}let Mo=new Map,In=new Map;function Xi(e){var t;let n=(t=In.get(e))!=null?t:0;return In.set(e,n+1),n!==0?()=>qi(e):(Mo.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>qi(e))}function qi(e){var t;let n=(t=In.get(e))!=null?t:1;if(n===1?In.delete(e):In.set(e,n-1),n!==1)return;let r=Mo.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,Mo.delete(e))}function Lo(e,{allowed:t,disallowed:n}={}){let r=An(e,"inert-others");se(()=>{var o,a;if(!r)return;let i=Pe();for(let l of(o=n?.())!=null?o:[])l&&i.add(Xi(l));let s=(a=t?.())!=null?a:[];for(let l of s){if(!l)continue;let u=dt(l);if(!u)continue;let c=l.parentElement;for(;c&&c!==u.body;){for(let m of c.children)s.some(p=>m.contains(p))||i.add(Xi(m));c=c.parentElement}}return i.dispose},[r,t,n])}function yr(e,t,n){let r=Ue(o=>{let a=o.getBoundingClientRect();a.x===0&&a.y===0&&a.width===0&&a.height===0&&n()});f.useEffect(()=>{if(!e)return;let o=t===null?null:xe(t)?t:t.current;if(!o)return;let a=Pe();if(typeof ResizeObserver<"u"){let i=new ResizeObserver(()=>r.current(o));i.observe(o),a.add(()=>i.disconnect())}if(typeof IntersectionObserver<"u"){let i=new IntersectionObserver(()=>r.current(o));i.observe(o),a.add(()=>i.disconnect())}return()=>a.dispose()},[t,r,e])}let xr=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),Xd=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var ve=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(ve||{}),Gt=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Gt||{}),qd=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(qd||{});function Tn(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(xr)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function Jd(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Xd)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Fn=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Fn||{});function jn(e,t=0){var n;return e===((n=dt(e))==null?void 0:n.body)?!1:he(t,{0(){return e.matches(xr)},1(){let r=e;for(;r!==null;){if(r.matches(xr))return!0;r=r.parentElement}return!1}})}function Ji(e){Pe().nextFrame(()=>{let t=pt(e);t&&_e(t)&&!jn(t,0)&&Ke(e)})}var Qd=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Qd||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Ke(e){e?.focus({preventScroll:!0})}let Zd=["textarea","input"].join(",");function em(e){var t,n;return(n=(t=e?.matches)==null?void 0:t.call(e,Zd))!=null?n:!1}function _o(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),a=t(r);if(o===null||a===null)return 0;let i=o.compareDocumentPosition(a);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Qi(e,t,n=e===null?document.body:mt(e)){return Oe(Tn(n),t,{relativeTo:e})}function Oe(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let a=Array.isArray(e)?e.length>0?mt(e[0]):document:mt(e),i=Array.isArray(e)?n?_o(e):e:t&64?Jd(e):Tn(e);o.length>0&&i.length>1&&(i=i.filter(d=>!o.some(g=>g!=null&&"current"in g?g?.current===d:g===d))),r=r??a?.activeElement;let s=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,i.indexOf(r))-1;if(t&4)return Math.max(0,i.indexOf(r))+1;if(t&8)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},c=0,m=i.length,p;do{if(c>=m||c+m<=0)return 0;let d=l+c;if(t&16)d=(d+m)%m;else{if(d<0)return 3;if(d>=m)return 1}p=i[d],p?.focus(u),c+=s}while(p!==pt(p));return t&6&&em(p)&&p.select(),2}function Zi(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function tm(){return/Android/gi.test(window.navigator.userAgent)}function es(){return Zi()||tm()}function Yt(e,t,n,r){let o=Ue(n);f.useEffect(()=>{if(!e)return;function a(i){o.current(i)}return document.addEventListener(t,a,r),()=>document.removeEventListener(t,a,r)},[e,t,r])}function ts(e,t,n,r){let o=Ue(n);f.useEffect(()=>{if(!e)return;function a(i){o.current(i)}return window.addEventListener(t,a,r),()=>window.removeEventListener(t,a,r)},[e,t,r])}const ns=30;function wr(e,t,n){let r=Ue(n),o=f.useCallback(function(s,l){if(s.defaultPrevented)return;let u=l(s);if(u===null||!u.getRootNode().contains(u)||!u.isConnected)return;let c=(function m(p){return typeof p=="function"?m(p()):Array.isArray(p)||p instanceof Set?p:[p]})(t);for(let m of c)if(m!==null&&(m.contains(u)||s.composed&&s.composedPath().includes(m)))return;return!jn(u,Fn.Loose)&&u.tabIndex!==-1&&s.preventDefault(),r.current(s,u)},[r,t]),a=f.useRef(null);Yt(e,"pointerdown",s=>{var l,u;es()||(a.current=((u=(l=s.composedPath)==null?void 0:l.call(s))==null?void 0:u[0])||s.target)},!0),Yt(e,"pointerup",s=>{if(es()||!a.current)return;let l=a.current;return a.current=null,o(s,()=>l)},!0);let i=f.useRef({x:0,y:0});Yt(e,"touchstart",s=>{i.current.x=s.touches[0].clientX,i.current.y=s.touches[0].clientY},!0),Yt(e,"touchend",s=>{let l={x:s.changedTouches[0].clientX,y:s.changedTouches[0].clientY};if(!(Math.abs(l.x-i.current.x)>=ns||Math.abs(l.y-i.current.y)>=ns))return o(s,()=>_e(s.target)?s.target:null)},!0),ts(e,"blur",s=>o(s,()=>kd(window.document.activeElement)?window.document.activeElement:null),!0)}function nt(...e){return f.useMemo(()=>dt(...e),[...e])}function nm(...e){return f.useMemo(()=>mt(...e),[...e])}var rm=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(rm||{});const bt={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}},om=200,rs=5;function os(e,{trigger:t,action:n,close:r,select:o}){let a=f.useRef(null),i=f.useRef(null),s=f.useRef(null);Yt(e&&t!==null,"pointerdown",l=>{Ii(l?.target)&&t!=null&&t.contains(l.target)&&(i.current=l.x,s.current=l.y,a.current=l.timeStamp)}),Yt(e&&t!==null,"pointerup",l=>{var u,c;let m=a.current;if(m===null||(a.current=null,!_e(l.target))||Math.abs(l.x-((u=i.current)!=null?u:l.x))<rs&&Math.abs(l.y-((c=s.current)!=null?c:l.y))<rs)return;let p=n(l);switch(p.kind){case 0:return;case 1:{l.timeStamp-m>om&&(o(p.target),r());break}case 2:{r();break}}},{capture:!0})}function Do(e,t,n,r){let o=Ue(n);f.useEffect(()=>{e=e??window;function a(i){o.current(i)}return e.addEventListener(t,a,r),()=>e.removeEventListener(t,a,r)},[e,t,r])}function Sr(e,t){return f.useMemo(()=>{var n;if(e.type)return e.type;let r=(n=e.as)!=null?n:"button";if(typeof r=="string"&&r.toLowerCase()==="button"||t?.tagName==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}function am(e){return f.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}function im(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...a){let i=t[o].call(n,...a);i&&(n=i,r.forEach(s=>s()))}}}function sm(){let e;return{before({doc:t}){var n;let r=t.documentElement,o=(n=t.defaultView)!=null?n:window;e=Math.max(0,o.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),a=Math.max(0,e-o);n.style(r,"paddingRight",`${a}px`)}}}function lm(){return Zi()?{before({doc:e,d:t,meta:n}){function r(o){for(let a of n().containers)for(let i of a())if(i.contains(o))return!0;return!1}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let s=Pe();s.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>s.dispose()))}let a=(o=window.scrollY)!=null?o:window.pageYOffset,i=null;t.addEventListener(e,"click",s=>{if(_e(s.target))try{let l=s.target.closest("a");if(!l)return;let{hash:u}=new URL(l.href),c=e.querySelector(u);_e(c)&&!r(c)&&(i=c)}catch{}},!0),t.group(s=>{t.addEventListener(e,"touchstart",l=>{if(s.dispose(),_e(l.target)&&Ed(l.target))if(r(l.target)){let u=l.target;for(;u.parentElement&&r(u.parentElement);)u=u.parentElement;s.style(u,"overscrollBehavior","contain")}else s.style(l.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",s=>{if(_e(s.target)){if(Ti(s.target))return;if(r(s.target)){let l=s.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&s.preventDefault()}else s.preventDefault()}},{passive:!1}),t.add(()=>{var s;let l=(s=window.scrollY)!=null?s:window.pageYOffset;a!==l&&window.scrollTo(0,a),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{}}function um(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function as(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Lt=im(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Pe(),meta:new Set,computedMeta:{}};return r.count++,r.meta.add(t),r.computedMeta=as(r.meta),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t),n.computedMeta=as(n.meta)),this},SCROLL_PREVENT(e){let t={doc:e.doc,d:e.d,meta(){return e.computedMeta}},n=[lm(),sm(),um()];n.forEach(({before:r})=>r?.(t)),n.forEach(({after:r})=>r?.(t))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Lt.subscribe(()=>{let e=Lt.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&Lt.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Lt.dispatch("TEARDOWN",n)}});function cm(e,t,n=()=>({containers:[]})){let r=am(Lt),o=t?r.get(t):void 0,a=o?o.count>0:!1;return se(()=>{if(!(!t||!e))return Lt.dispatch("PUSH",t,n),()=>Lt.dispatch("POP",t,n)},[e,t]),a}function Er(e,t,n=()=>[document.body]){let r=An(e,"scroll-lock");cm(r,t,o=>{var a;return{containers:[...(a=o.containers)!=null?a:[],n]}})}function is(e){return[e.screenX,e.screenY]}function ss(){let e=f.useRef([-1,-1]);return{wasMoved(t){let n=is(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=is(t)}}}function fm(e=0){let[t,n]=f.useState(e),r=f.useCallback(l=>n(l),[]),o=f.useCallback(l=>n(u=>u|l),[]),a=f.useCallback(l=>(t&l)===l,[t]),i=f.useCallback(l=>n(u=>u&~l),[]),s=f.useCallback(l=>n(u=>u^l),[]);return{flags:t,setFlag:r,addFlag:o,hasFlag:a,removeFlag:i,toggleFlag:s}}var ls,us;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((ls=process==null?void 0:process.env)==null?void 0:ls.NODE_ENV)==="test"&&typeof((us=Element?.prototype)==null?void 0:us.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
|
|
10
|
+
`)),[]});var dm=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(dm||{});function Mn(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function Ln(e,t,n,r){let[o,a]=f.useState(n),{hasFlag:i,addFlag:s,removeFlag:l}=fm(e&&o?3:0),u=f.useRef(!1),c=f.useRef(!1),m=Re();return se(()=>{var p;if(e){if(n&&a(!0),!t){n&&s(3);return}return(p=r?.start)==null||p.call(r,n),mm(t,{inFlight:u,prepare(){c.current?c.current=!1:c.current=u.current,u.current=!0,!c.current&&(n?(s(3),l(4)):(s(4),l(2)))},run(){c.current?n?(l(3),s(4)):(l(4),s(3)):n?l(1):s(1)},done(){var d;c.current&&hm(t)||(u.current=!1,l(7),n||a(!1),(d=r?.end)==null||d.call(r,n))}})}},[e,n,t,m]),e?[o,{closed:i(1),enter:i(2),leave:i(4),transition:i(2)||i(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function mm(e,{prepare:t,run:n,done:r,inFlight:o}){let a=Pe();return gm(e,{prepare:t,inFlight:o}),a.nextFrame(()=>{n(),a.requestAnimationFrame(()=>{a.add(pm(e,r))})}),a.dispose}function pm(e,t){var n,r;let o=Pe();if(!e)return o.dispose;let a=!1;o.add(()=>{a=!0});let i=(r=(n=e.getAnimations)==null?void 0:n.call(e).filter(s=>s instanceof CSSTransition))!=null?r:[];return i.length===0?(t(),o.dispose):(Promise.allSettled(i.map(s=>s.finished)).then(()=>{a||t()}),o.dispose)}function gm(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}function hm(e){var t,n;return((n=(t=e.getAnimations)==null?void 0:t.call(e))!=null?n:[]).some(r=>r instanceof CSSTransition&&r.playState!=="finished")}function vm(e,{container:t,accept:n,walk:r}){let o=f.useRef(n),a=f.useRef(r);f.useEffect(()=>{o.current=n,a.current=r},[n,r]),se(()=>{if(!t||!e)return;let i=dt(t);if(!i)return;let s=o.current,l=a.current,u=Object.assign(m=>s(m),{acceptNode:s}),c=i.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,u,!1);for(;c.nextNode();)l(c.currentNode)},[t,e,o,a])}function zo(e,t){let n=f.useRef([]),r=F(e);f.useEffect(()=>{let o=[...n.current];for(let[a,i]of t.entries())if(n.current[a]!==i){let s=r(t,o);return n.current=t,s}},[r,...t])}function kr(){return typeof window<"u"}function Kt(e){return cs(e)?(e.nodeName||"").toLowerCase():"#document"}function Ae(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xe(e){var t;return(t=(cs(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function cs(e){return kr()?e instanceof Node||e instanceof Ae(e).Node:!1}function Se(e){return kr()?e instanceof Element||e instanceof Ae(e).Element:!1}function qe(e){return kr()?e instanceof HTMLElement||e instanceof Ae(e).HTMLElement:!1}function fs(e){return!kr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ae(e).ShadowRoot}const bm=new Set(["inline","contents"]);function _n(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=De(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!bm.has(o)}const ym=new Set(["table","td","th"]);function xm(e){return ym.has(Kt(e))}const wm=[":popover-open",":modal"];function $r(e){return wm.some(t=>{try{return e.matches(t)}catch{return!1}})}const Sm=["transform","translate","scale","rotate","perspective"],Em=["transform","translate","scale","rotate","perspective","filter"],km=["paint","layout","strict","content"];function Vo(e){const t=Bo(),n=Se(e)?De(e):e;return Sm.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)||Em.some(r=>(n.willChange||"").includes(r))||km.some(r=>(n.contain||"").includes(r))}function $m(e){let t=yt(e);for(;qe(t)&&!Xt(t);){if(Vo(t))return t;if($r(t))return null;t=yt(t)}return null}function Bo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Pm=new Set(["html","body","#document"]);function Xt(e){return Pm.has(Kt(e))}function De(e){return Ae(e).getComputedStyle(e)}function Pr(e){return Se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function yt(e){if(Kt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fs(e)&&e.host||Xe(e);return fs(t)?t.host:t}function ds(e){const t=yt(e);return Xt(t)?e.ownerDocument?e.ownerDocument.body:e.body:qe(t)&&_n(t)?t:ds(t)}function Dn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ds(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=Ae(o);if(a){const s=Ho(i);return t.concat(i,i.visualViewport||[],_n(o)?o:[],s&&n?Dn(s):[])}return t.concat(o,Dn(o,[],n))}function Ho(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Nm(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}const _t=Math.min,Ee=Math.max,zn=Math.round,Nr=Math.floor,Je=e=>({x:e,y:e}),Cm={left:"right",right:"left",bottom:"top",top:"bottom"},Om={start:"end",end:"start"};function ms(e,t,n){return Ee(e,_t(t,n))}function qt(e,t){return typeof e=="function"?e(t):e}function xt(e){return e.split("-")[0]}function Vn(e){return e.split("-")[1]}function ps(e){return e==="x"?"y":"x"}function gs(e){return e==="y"?"height":"width"}const Am=new Set(["top","bottom"]);function rt(e){return Am.has(xt(e))?"y":"x"}function hs(e){return ps(rt(e))}function Im(e,t,n){n===void 0&&(n=!1);const r=Vn(e),o=hs(e),a=gs(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Cr(i)),[i,Cr(i)]}function Tm(e){const t=Cr(e);return[Wo(e),t,Wo(t)]}function Wo(e){return e.replace(/start|end/g,t=>Om[t])}const vs=["left","right"],bs=["right","left"],Fm=["top","bottom"],jm=["bottom","top"];function Mm(e,t,n){switch(e){case"top":case"bottom":return n?t?bs:vs:t?vs:bs;case"left":case"right":return t?Fm:jm;default:return[]}}function Lm(e,t,n,r){const o=Vn(e);let a=Mm(xt(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(Wo)))),a}function Cr(e){return e.replace(/left|right|bottom|top/g,t=>Cm[t])}function _m(e){return{top:0,right:0,bottom:0,left:0,...e}}function Dm(e){return typeof e!="number"?_m(e):{top:e,right:e,bottom:e,left:e}}function Or(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ys(e,t,n){let{reference:r,floating:o}=e;const a=rt(t),i=hs(t),s=gs(i),l=xt(t),u=a==="y",c=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let d;switch(l){case"top":d={x:c,y:r.y-o.height};break;case"bottom":d={x:c,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:m};break;case"left":d={x:r.x-o.width,y:m};break;default:d={x:r.x,y:r.y}}switch(Vn(t)){case"start":d[i]-=p*(n&&u?-1:1);break;case"end":d[i]+=p*(n&&u?-1:1);break}return d}async function xs(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:m="floating",altBoundary:p=!1,padding:d=0}=qt(t,e),g=Dm(d),v=s[p?m==="floating"?"reference":"floating":m],y=Or(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(v)))==null||n?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),w=m==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),k=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},S=Or(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:x,strategy:l}):w);return{top:(y.top-S.top+g.top)/k.y,bottom:(S.bottom-y.bottom+g.bottom)/k.y,left:(y.left-S.left+g.left)/k.x,right:(S.right-y.right+g.right)/k.x}}const zm=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:m}=ys(u,r,l),p=r,d={},g=0;for(let v=0;v<s.length;v++){var h;const{name:y,fn:w}=s[v],{x,y:k,data:S,reset:C}=await w({x:c,y:m,initialPlacement:r,placement:p,strategy:o,middlewareData:d,rects:u,platform:{...i,detectOverflow:(h=i.detectOverflow)!=null?h:xs},elements:{reference:e,floating:t}});c=x??c,m=k??m,d={...d,[y]:{...d[y],...S}},C&&g<=50&&(g++,typeof C=="object"&&(C.placement&&(p=C.placement),C.rects&&(u=C.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:c,y:m}=ys(u,p,l)),v=-1)}return{x:c,y:m,placement:p,strategy:o,middlewareData:d}},Vm=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...v}=qt(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=xt(o),w=rt(s),x=xt(s)===s,k=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=p||(x||!h?[Cr(s)]:Tm(s)),C=g!=="none";!p&&C&&S.push(...Lm(s,h,g,k));const T=[s,...S],O=await l.detectOverflow(t,v),G=[];let N=((r=a.flip)==null?void 0:r.overflows)||[];if(c&&G.push(O[y]),m){const M=Im(o,i,k);G.push(O[M[0]],O[M[1]])}if(N=[...N,{placement:o,overflows:G}],!G.every(M=>M<=0)){var j,K;const M=(((j=a.flip)==null?void 0:j.index)||0)+1,z=T[M];if(z&&(!(m==="alignment"?w!==rt(z):!1)||N.every(E=>rt(E.placement)===w?E.overflows[0]>0:!0)))return{data:{index:M,overflows:N},reset:{placement:z}};let W=(K=N.filter(Q=>Q.overflows[0]<=0).sort((Q,E)=>Q.overflows[1]-E.overflows[1])[0])==null?void 0:K.placement;if(!W)switch(d){case"bestFit":{var X;const Q=(X=N.filter(E=>{if(C){const U=rt(E.placement);return U===w||U==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(U=>U>0).reduce((U,te)=>U+te,0)]).sort((E,U)=>E[1]-U[1])[0])==null?void 0:X[0];Q&&(W=Q);break}case"initialPlacement":W=s;break}if(o!==W)return{reset:{placement:W}}}return{}}}},Bm=new Set(["left","top"]);async function Hm(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=xt(n),s=Vn(n),l=rt(n)==="y",u=Bm.has(i)?-1:1,c=a&&l?-1:1,m=qt(t,e);let{mainAxis:p,crossAxis:d,alignmentAxis:g}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return s&&typeof g=="number"&&(d=s==="end"?g*-1:g),l?{x:d*c,y:p*u}:{x:p*u,y:d*c}}const Wm=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await Hm(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},Rm=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:a}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:y=>{let{x:w,y:x}=y;return{x:w,y:x}}},...u}=qt(e,t),c={x:n,y:r},m=await a.detectOverflow(t,u),p=rt(xt(o)),d=ps(p);let g=c[d],h=c[p];if(i){const y=d==="y"?"top":"left",w=d==="y"?"bottom":"right",x=g+m[y],k=g-m[w];g=ms(x,g,k)}if(s){const y=p==="y"?"top":"left",w=p==="y"?"bottom":"right",x=h+m[y],k=h-m[w];h=ms(x,h,k)}const v=l.fn({...t,[d]:g,[p]:h});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[d]:i,[p]:s}}}}}},Um=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:l=()=>{},...u}=qt(e,t),c=await i.detectOverflow(t,u),m=xt(o),p=Vn(o),d=rt(o)==="y",{width:g,height:h}=a.floating;let v,y;m==="top"||m==="bottom"?(v=m,y=p===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=m,v=p==="end"?"top":"bottom");const w=h-c.top-c.bottom,x=g-c.left-c.right,k=_t(h-c[v],w),S=_t(g-c[y],x),C=!t.middlewareData.shift;let T=k,O=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=w),C&&!p){const N=Ee(c.left,0),j=Ee(c.right,0),K=Ee(c.top,0),X=Ee(c.bottom,0);d?O=g-2*(N!==0||j!==0?N+j:Ee(c.left,c.right)):T=h-2*(K!==0||X!==0?K+X:Ee(c.top,c.bottom))}await l({...t,availableWidth:O,availableHeight:T});const G=await i.getDimensions(s.floating);return g!==G.width||h!==G.height?{reset:{rects:!0}}:{}}}};function ws(e){const t=De(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=qe(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=zn(n)!==a||zn(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function Ro(e){return Se(e)?e:e.contextElement}function Jt(e){const t=Ro(e);if(!qe(t))return Je(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=ws(t);let i=(a?zn(n.width):n.width)/r,s=(a?zn(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Gm=Je(0);function Ss(e){const t=Ae(e);return!Bo()||!t.visualViewport?Gm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ym(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ae(e)?!1:t}function Dt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Ro(e);let i=Je(1);t&&(r?Se(r)&&(i=Jt(r)):i=Jt(e));const s=Ym(a,n,r)?Ss(a):Je(0);let l=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,c=o.width/i.x,m=o.height/i.y;if(a){const p=Ae(a),d=r&&Se(r)?Ae(r):r;let g=p,h=Ho(g);for(;h&&r&&d!==g;){const v=Jt(h),y=h.getBoundingClientRect(),w=De(h),x=y.left+(h.clientLeft+parseFloat(w.paddingLeft))*v.x,k=y.top+(h.clientTop+parseFloat(w.paddingTop))*v.y;l*=v.x,u*=v.y,c*=v.x,m*=v.y,l+=x,u+=k,g=Ae(h),h=Ho(g)}}return Or({width:c,height:m,x:l,y:u})}function Ar(e,t){const n=Pr(e).scrollLeft;return t?t.left+n:Dt(Xe(e)).left+n}function Es(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ar(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Km(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",i=Xe(r),s=t?$r(t.floating):!1;if(r===i||s&&a)return n;let l={scrollLeft:0,scrollTop:0},u=Je(1);const c=Je(0),m=qe(r);if((m||!m&&!a)&&((Kt(r)!=="body"||_n(i))&&(l=Pr(r)),qe(r))){const d=Dt(r);u=Jt(r),c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}const p=i&&!m&&!a?Es(i,l):Je(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+p.x,y:n.y*u.y-l.scrollTop*u.y+c.y+p.y}}function Xm(e){return Array.from(e.getClientRects())}function qm(e){const t=Xe(e),n=Pr(e),r=e.ownerDocument.body,o=Ee(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Ee(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Ar(e);const s=-n.scrollTop;return De(r).direction==="rtl"&&(i+=Ee(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}const ks=25;function Jm(e,t){const n=Ae(e),r=Xe(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const c=Bo();(!c||c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}const u=Ar(r);if(u<=0){const c=r.ownerDocument,m=c.body,p=getComputedStyle(m),d=c.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,g=Math.abs(r.clientWidth-m.clientWidth-d);g<=ks&&(a-=g)}else u<=ks&&(a+=u);return{width:a,height:i,x:s,y:l}}const Qm=new Set(["absolute","fixed"]);function Zm(e,t){const n=Dt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=qe(e)?Jt(e):Je(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,l=o*a.x,u=r*a.y;return{width:i,height:s,x:l,y:u}}function $s(e,t,n){let r;if(t==="viewport")r=Jm(e,n);else if(t==="document")r=qm(Xe(e));else if(Se(t))r=Zm(t,n);else{const o=Ss(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Or(r)}function Ps(e,t){const n=yt(e);return n===t||!Se(n)||Xt(n)?!1:De(n).position==="fixed"||Ps(n,t)}function ep(e,t){const n=t.get(e);if(n)return n;let r=Dn(e,[],!1).filter(s=>Se(s)&&Kt(s)!=="body"),o=null;const a=De(e).position==="fixed";let i=a?yt(e):e;for(;Se(i)&&!Xt(i);){const s=De(i),l=Vo(i);!l&&s.position==="fixed"&&(o=null),(a?!l&&!o:!l&&s.position==="static"&&!!o&&Qm.has(o.position)||_n(i)&&!l&&Ps(e,i))?r=r.filter(c=>c!==i):o=s,i=yt(i)}return t.set(e,r),r}function tp(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?$r(t)?[]:ep(t,this._c):[].concat(n),r],s=i[0],l=i.reduce((u,c)=>{const m=$s(t,c,o);return u.top=Ee(m.top,u.top),u.right=_t(m.right,u.right),u.bottom=_t(m.bottom,u.bottom),u.left=Ee(m.left,u.left),u},$s(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function np(e){const{width:t,height:n}=ws(e);return{width:t,height:n}}function rp(e,t,n){const r=qe(t),o=Xe(t),a=n==="fixed",i=Dt(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=Je(0);function u(){l.x=Ar(o)}if(r||!r&&!a)if((Kt(t)!=="body"||_n(o))&&(s=Pr(t)),r){const d=Dt(t,!0,a,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else o&&u();a&&!r&&o&&u();const c=o&&!r&&!a?Es(o,s):Je(0),m=i.left+s.scrollLeft-l.x-c.x,p=i.top+s.scrollTop-l.y-c.y;return{x:m,y:p,width:i.width,height:i.height}}function Uo(e){return De(e).position==="static"}function Ns(e,t){if(!qe(e)||De(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Xe(e)===n&&(n=n.ownerDocument.body),n}function Cs(e,t){const n=Ae(e);if($r(e))return n;if(!qe(e)){let o=yt(e);for(;o&&!Xt(o);){if(Se(o)&&!Uo(o))return o;o=yt(o)}return n}let r=Ns(e,t);for(;r&&xm(r)&&Uo(r);)r=Ns(r,t);return r&&Xt(r)&&Uo(r)&&!Vo(r)?n:r||$m(e)||n}const op=async function(e){const t=this.getOffsetParent||Cs,n=this.getDimensions,r=await n(e.floating);return{reference:rp(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ap(e){return De(e).direction==="rtl"}const ip={convertOffsetParentRelativeRectToViewportRelativeRect:Km,getDocumentElement:Xe,getClippingRect:tp,getOffsetParent:Cs,getElementRects:op,getClientRects:Xm,getDimensions:np,getScale:Jt,isElement:Se,isRTL:ap};function Os(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function sp(e,t){let n=null,r;const o=Xe(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function i(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const u=e.getBoundingClientRect(),{left:c,top:m,width:p,height:d}=u;if(s||t(),!p||!d)return;const g=Nr(m),h=Nr(o.clientWidth-(c+p)),v=Nr(o.clientHeight-(m+d)),y=Nr(c),x={rootMargin:-g+"px "+-h+"px "+-v+"px "+-y+"px",threshold:Ee(0,_t(1,l))||1};let k=!0;function S(C){const T=C[0].intersectionRatio;if(T!==l){if(!k)return i();T?i(!1,T):r=setTimeout(()=>{i(!1,1e-7)},1e3)}T===1&&!Os(u,e.getBoundingClientRect())&&i(),k=!1}try{n=new IntersectionObserver(S,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,x)}n.observe(e)}return i(!0),a}function lp(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Ro(e),c=o||a?[...u?Dn(u):[],...Dn(t)]:[];c.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const m=u&&s?sp(u,n):null;let p=-1,d=null;i&&(d=new ResizeObserver(y=>{let[w]=y;w&&w.target===u&&d&&(d.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var x;(x=d)==null||x.observe(t)})),n()}),u&&!l&&d.observe(u),d.observe(t));let g,h=l?Dt(e):null;l&&v();function v(){const y=Dt(e);h&&!Os(h,y)&&n(),h=y,g=requestAnimationFrame(v)}return n(),()=>{var y;c.forEach(w=>{o&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),m?.(),(y=d)==null||y.disconnect(),d=null,l&&cancelAnimationFrame(g)}}const Go=xs,up=Wm,cp=Rm,fp=Vm,dp=Um,mp=(e,t,n)=>{const r=new Map,o={platform:ip,...n},a={...o.platform,_c:r};return zm(e,t,{...o,platform:a})};var pp=typeof document<"u",gp=function(){},Ir=pp?f.useLayoutEffect:gp;function Tr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Tr(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Tr(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function As(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Is(e,t){const n=As(e);return Math.round(t*n)/n}function Yo(e){const t=R.useRef(e);return Ir(()=>{t.current=e}),t}function hp(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,m]=R.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,d]=R.useState(r);Tr(p,r)||d(r);const[g,h]=R.useState(null),[v,y]=R.useState(null),w=R.useCallback(E=>{E!==C.current&&(C.current=E,h(E))},[]),x=R.useCallback(E=>{E!==T.current&&(T.current=E,y(E))},[]),k=a||g,S=i||v,C=R.useRef(null),T=R.useRef(null),O=R.useRef(c),G=l!=null,N=Yo(l),j=Yo(o),K=Yo(u),X=R.useCallback(()=>{if(!C.current||!T.current)return;const E={placement:t,strategy:n,middleware:p};j.current&&(E.platform=j.current),mp(C.current,T.current,E).then(U=>{const te={...U,isPositioned:K.current!==!1};M.current&&!Tr(O.current,te)&&(O.current=te,or.flushSync(()=>{m(te)}))})},[p,t,n,j,K]);Ir(()=>{u===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,m(E=>({...E,isPositioned:!1})))},[u]);const M=R.useRef(!1);Ir(()=>(M.current=!0,()=>{M.current=!1}),[]),Ir(()=>{if(k&&(C.current=k),S&&(T.current=S),k&&S){if(N.current)return N.current(k,S,X);X()}},[k,S,X,N,G]);const z=R.useMemo(()=>({reference:C,floating:T,setReference:w,setFloating:x}),[w,x]),W=R.useMemo(()=>({reference:k,floating:S}),[k,S]),Q=R.useMemo(()=>{const E={position:n,left:0,top:0};if(!W.floating)return E;const U=Is(W.floating,c.x),te=Is(W.floating,c.y);return s?{...E,transform:"translate("+U+"px, "+te+"px)",...As(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:U,top:te}},[n,s,W.floating,c.x,c.y]);return R.useMemo(()=>({...c,update:X,refs:z,elements:W,floatingStyles:Q}),[c,X,z,W,Q])}const Ts=(e,t)=>({...up(e),options:[e,t]}),vp=(e,t)=>({...cp(e),options:[e,t]}),bp=(e,t)=>({...fp(e),options:[e,t]}),yp=(e,t)=>({...dp(e),options:[e,t]}),Fs={...R},xp=Fs.useInsertionEffect||(e=>e());function js(e){const t=R.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return xp(()=>{t.current=e}),R.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}var Ko=typeof document<"u"?f.useLayoutEffect:f.useEffect;let Ms=!1,wp=0;const Ls=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+wp++;function Sp(){const[e,t]=R.useState(()=>Ms?Ls():void 0);return Ko(()=>{e==null&&t(Ls())},[]),R.useEffect(()=>{Ms=!0},[]),e}const Ep=Fs.useId||Sp;let Bn;process.env.NODE_ENV!=="production"&&(Bn=new Set);function kp(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((e=Bn)!=null&&e.has(o))){var a;(a=Bn)==null||a.add(o),console.warn(o)}}function $p(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((e=Bn)!=null&&e.has(o))){var a;(a=Bn)==null||a.add(o),console.error(o)}}function Pp(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const Np=R.createContext(null),Cp=R.createContext(null),Op=()=>{var e;return((e=R.useContext(Np))==null?void 0:e.id)||null},Ap=()=>R.useContext(Cp),Ip="data-floating-ui-focusable";function Tp(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Ep(),a=R.useRef({}),[i]=R.useState(()=>Pp()),s=Op()!=null;if(process.env.NODE_ENV!=="production"){const d=r.reference;d&&!Se(d)&&$p("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,u]=R.useState(r.reference),c=js((d,g,h)=>{a.current.openEvent=d?g:void 0,i.emit("openchange",{open:d,event:g,reason:h,nested:s}),n?.(d,g,h)}),m=R.useMemo(()=>({setPositionReference:u}),[]),p=R.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return R.useMemo(()=>({dataRef:a,open:t,onOpenChange:c,elements:p,events:i,floatingId:o,refs:m}),[t,c,p,i,o,m])}function Fp(e){e===void 0&&(e={});const{nodeId:t}=e,n=Tp({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[a,i]=R.useState(null),[s,l]=R.useState(null),c=o?.domReference||a,m=R.useRef(null),p=Ap();Ko(()=>{c&&(m.current=c)},[c]);const d=hp({...e,elements:{...o,...s&&{reference:s}}}),g=R.useCallback(x=>{const k=Se(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),contextElement:x}:x;l(k),d.refs.setReference(k)},[d.refs]),h=R.useCallback(x=>{(Se(x)||x===null)&&(m.current=x,i(x)),(Se(d.refs.reference.current)||d.refs.reference.current===null||x!==null&&!Se(x))&&d.refs.setReference(x)},[d.refs]),v=R.useMemo(()=>({...d.refs,setReference:h,setPositionReference:g,domReference:m}),[d.refs,h,g]),y=R.useMemo(()=>({...d.elements,domReference:c}),[d.elements,c]),w=R.useMemo(()=>({...d,...r,refs:v,elements:y,nodeId:t}),[d,v,y,t,r]);return Ko(()=>{r.dataRef.current.floatingContext=w;const x=p?.nodesRef.current.find(k=>k.id===t);x&&(x.context=w)}),R.useMemo(()=>({...d,context:w,refs:v,elements:y}),[d,v,y,w])}const _s="active",Ds="selected";function Xo(e,t,n){const r=new Map,o=n==="item";let a=e;if(o&&e){const{[_s]:i,[Ds]:s,...l}=e;a=l}return{...n==="floating"&&{tabIndex:-1,[Ip]:""},...a,...t.map(i=>{const s=i?i[n]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((i,s)=>(s&&Object.entries(s).forEach(l=>{let[u,c]=l;if(!(o&&[_s,Ds].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof c=="function"){var m;(m=r.get(u))==null||m.push(c),i[u]=function(){for(var p,d=arguments.length,g=new Array(d),h=0;h<d;h++)g[h]=arguments[h];return(p=r.get(u))==null?void 0:p.map(v=>v(...g)).find(v=>v!==void 0)}}}else i[u]=c}),i),{})}}function jp(e){e===void 0&&(e=[]);const t=e.map(s=>s?.reference),n=e.map(s=>s?.floating),r=e.map(s=>s?.item),o=R.useCallback(s=>Xo(s,e,"reference"),t),a=R.useCallback(s=>Xo(s,e,"floating"),n),i=R.useCallback(s=>Xo(s,e,"item"),r);return R.useMemo(()=>({getReferenceProps:o,getFloatingProps:a,getItemProps:i}),[o,a,i])}function zs(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const Mp=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:o,offset:a=0,index:i=0,minItemsVisible:s=4,referenceOverflowThreshold:l=0,scrollRef:u,...c}=qt(e,t),{rects:m,elements:{floating:p}}=t,d=n.current[i],g=u?.current||p,h=p.clientTop||g.clientTop,v=p.clientTop!==0,y=g.clientTop!==0,w=p===g;if(process.env.NODE_ENV!=="production"&&(t.placement.startsWith("bottom")||kp('`placement` side must be "bottom" when using the `inner`',"middleware.")),!d)return{};const x={...t,...await Ts(-d.offsetTop-p.clientTop-m.reference.height/2-d.offsetHeight/2-a).fn(t)},k=await Go(zs(x,g.scrollHeight+h+p.clientTop),c),S=await Go(x,{...c,elementContext:"reference"}),C=Ee(0,k.top),T=x.y+C,N=(g.scrollHeight>g.clientHeight?j=>j:zn)(Ee(0,g.scrollHeight+(v&&w||y?h*2:0)-C-Ee(0,k.bottom)));if(g.style.maxHeight=N+"px",g.scrollTop=C,o){const j=g.offsetHeight<d.offsetHeight*_t(s,n.current.length)-1||S.top>=-l||S.bottom>=-l;or.flushSync(()=>o(j))}return r&&(r.current=await Go(zs({...x,y:T},g.offsetHeight+h+p.clientTop),c)),{y:T}}});function Lp(e,t){const{open:n,elements:r}=e,{enabled:o=!0,overflowRef:a,scrollRef:i,onChange:s}=t,l=js(s),u=R.useRef(!1),c=R.useRef(null),m=R.useRef(null);R.useEffect(()=>{if(!o)return;function d(h){if(h.ctrlKey||!g||a.current==null)return;const v=h.deltaY,y=a.current.top>=-.5,w=a.current.bottom>=-.5,x=g.scrollHeight-g.clientHeight,k=v<0?-1:1,S=v<0?"max":"min";g.scrollHeight<=g.clientHeight||(!y&&v>0||!w&&v<0?(h.preventDefault(),or.flushSync(()=>{l(C=>C+Math[S](v,x*k))})):/firefox/i.test(Nm())&&(g.scrollTop+=v))}const g=i?.current||r.floating;if(n&&g)return g.addEventListener("wheel",d),requestAnimationFrame(()=>{c.current=g.scrollTop,a.current!=null&&(m.current={...a.current})}),()=>{c.current=null,m.current=null,g.removeEventListener("wheel",d)}},[o,n,r.floating,a,i,l]);const p=R.useMemo(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const d=i?.current||r.floating;if(!(!a.current||!d||!u.current)){if(c.current!==null){const g=d.scrollTop-c.current;(a.current.bottom<-.5&&g<-1||a.current.top<-.5&&g>1)&&or.flushSync(()=>l(h=>h+g))}requestAnimationFrame(()=>{c.current=d.scrollTop})}}}),[r.floating,l,a,i]);return R.useMemo(()=>o?{floating:p}:{},[o,p])}let Qt=f.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Qt.displayName="FloatingContext";let qo=f.createContext(null);qo.displayName="PlacementContext";function Jo(e){return f.useMemo(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function Qo(){return f.useContext(Qt).setReference}function Vs(){return f.useContext(Qt).getReferenceProps}function Zo(){let{getFloatingProps:e,slot:t}=f.useContext(Qt);return f.useCallback((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function ea(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=f.useContext(qo),n=f.useMemo(()=>e,[JSON.stringify(e,(o,a)=>{var i;return(i=a?.outerHTML)!=null?i:a})]);se(()=>{t?.(n??null)},[t,n]);let r=f.useContext(Qt);return f.useMemo(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}let Bs=4;function ta({children:e,enabled:t=!0}){let[n,r]=f.useState(null),[o,a]=f.useState(0),i=f.useRef(null),[s,l]=f.useState(null);_p(s);let u=t&&n!==null&&s!==null,{to:c="bottom",gap:m=0,offset:p=0,padding:d=0,inner:g}=Dp(n,s),[h,v="center"]=c.split(" ");se(()=>{u&&a(0)},[u]);let{refs:y,floatingStyles:w,context:x}=Fp({open:u,placement:h==="selection"?v==="center"?"bottom":`bottom-${v}`:v==="center"?`${h}`:`${h}-${v}`,strategy:"absolute",transform:!1,middleware:[Ts({mainAxis:h==="selection"?0:m,crossAxis:p}),vp({padding:d}),h!=="selection"&&bp({padding:d}),h==="selection"&&g?Mp({...g,padding:d,overflowRef:i,offset:o,minItemsVisible:Bs,referenceOverflowThreshold:d,onFallbackChange(j){var K,X;if(!j)return;let M=x.elements.floating;if(!M)return;let z=parseFloat(getComputedStyle(M).scrollPaddingBottom)||0,W=Math.min(Bs,M.childElementCount),Q=0,E=0;for(let U of(X=(K=x.elements.floating)==null?void 0:K.childNodes)!=null?X:[])if(xe(U)){let te=U.offsetTop,$=te+U.clientHeight+z,_=M.scrollTop,P=_+M.clientHeight;if(te>=_&&$<=P)W--;else{E=Math.max(0,Math.min($,P)-Math.max(te,_)),Q=U.clientHeight;break}}W>=1&&a(U=>{let te=Q*W-E+z;return U>=te?U:te})}}):null,yp({padding:d,apply({availableWidth:j,availableHeight:K,elements:X}){Object.assign(X.floating.style,{overflow:"auto",maxWidth:`${j}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${K}px)`})}})].filter(Boolean),whileElementsMounted:lp}),[k=h,S=v]=x.placement.split("-");h==="selection"&&(k="selection");let C=f.useMemo(()=>({anchor:[k,S].filter(Boolean).join(" ")}),[k,S]),T=Lp(x,{overflowRef:i,onChange:a}),{getReferenceProps:O,getFloatingProps:G}=jp([T]),N=F(j=>{l(j),y.setFloating(j)});return R.createElement(qo.Provider,{value:r},R.createElement(Qt.Provider,{value:{setFloating:N,setReference:y.setReference,styles:w,getReferenceProps:O,getFloatingProps:G,slot:C}},e))}function _p(e){se(()=>{if(!e)return;let t=new MutationObserver(()=>{let n=window.getComputedStyle(e).maxHeight,r=parseFloat(n);if(isNaN(r))return;let o=parseInt(n);isNaN(o)||r!==o&&(e.style.maxHeight=`${Math.ceil(r)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function Dp(e,t){var n,r,o;let a=na((n=e?.gap)!=null?n:"var(--anchor-gap, 0)",t),i=na((r=e?.offset)!=null?r:"var(--anchor-offset, 0)",t),s=na((o=e?.padding)!=null?o:"var(--anchor-padding, 0)",t);return{...e,gap:a,offset:i,padding:s}}function na(e,t,n=void 0){let r=Re(),o=F((l,u)=>{if(l==null)return[n,null];if(typeof l=="number")return[l,null];if(typeof l=="string"){if(!u)return[n,null];let c=Ws(l,u);return[c,m=>{let p=Hs(l);{let d=p.map(g=>window.getComputedStyle(u).getPropertyValue(g));r.requestAnimationFrame(function g(){r.nextFrame(g);let h=!1;for(let[y,w]of p.entries()){let x=window.getComputedStyle(u).getPropertyValue(w);if(d[y]!==x){d[y]=x,h=!0;break}}if(!h)return;let v=Ws(l,u);c!==v&&(m(v),c=v)})}return r.dispose}]}return[n,null]}),a=f.useMemo(()=>o(e,t)[0],[e,t]),[i=a,s]=f.useState();return se(()=>{let[l,u]=o(e,t);if(s(l),!!u)return u(s)},[e,t]),i}function Hs(e){let t=/var\((.*)\)/.exec(e);if(t){let n=t[1].indexOf(",");if(n===-1)return[t[1]];let r=t[1].slice(0,n).trim(),o=t[1].slice(n+1).trim();return o?[r,...Hs(o)]:[r]}return[]}function Ws(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}function zp({children:e,freeze:t},n){let r=Rs(t,e);return f.isValidElement(r)?f.cloneElement(r,{ref:n}):f.createElement(f.Fragment,null,r)}f.forwardRef(zp);function Rs(e,t){let[n,r]=f.useState(t);return!e&&n!==t&&r(t),e?n:t}let Fr=f.createContext(null);Fr.displayName="OpenClosedContext";var me=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(me||{});function wt(){return f.useContext(Fr)}function jr({value:e,children:t}){return f.createElement(Fr.Provider,{value:e},t)}function Us({children:e}){return f.createElement(Fr.Provider,{value:null},e)}function Vp(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let St=[];Vp(()=>{function e(t){if(!_e(t.target)||t.target===document.body||St[0]===t.target)return;let n=t.target;n=n.closest(xr),St.unshift(n??t.target),St=St.filter(r=>r!=null&&r.isConnected),St.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Bp(e){throw new Error("Unexpected object: "+e)}var ne=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(ne||{});function Et(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=r??-1;switch(e.focus){case 0:{for(let a=0;a<n.length;++a)if(!t.resolveDisabled(n[a],a,n))return a;return r}case 1:{o===-1&&(o=n.length);for(let a=o-1;a>=0;--a)if(!t.resolveDisabled(n[a],a,n))return a;return r}case 2:{for(let a=o+1;a<n.length;++a)if(!t.resolveDisabled(n[a],a,n))return a;return r}case 3:{for(let a=n.length-1;a>=0;--a)if(!t.resolveDisabled(n[a],a,n))return a;return r}case 4:{for(let a=0;a<n.length;++a)if(t.resolveId(n[a],a,n)===e.id)return a;return r}case 5:return null;default:Bp(e)}}function Hn(e){let t=F(e),n=f.useRef(!1);f.useEffect(()=>(n.current=!1,()=>{n.current=!0,fr(()=>{n.current&&t()})}),[t])}let Gs=f.createContext(!1);function Hp(){return f.useContext(Gs)}function Ys(e){return f.createElement(Gs.Provider,{value:e.force},e.children)}function Wp(e){let t=Hp(),n=f.useContext(Xs),[r,o]=f.useState(()=>{var a;if(!t&&n!==null)return(a=n.current)!=null?a:null;if(We.isServer)return null;let i=e?.getElementById("headlessui-portal-root");if(i)return i;if(e===null)return null;let s=e.createElement("div");return s.setAttribute("id","headlessui-portal-root"),e.body.appendChild(s)});return f.useEffect(()=>{r!==null&&(e!=null&&e.body.contains(r)||e==null||e.body.appendChild(r))},[r,e]),f.useEffect(()=>{t||n!==null&&o(n.current)},[n,o,t]),r}let Ks=f.Fragment,Rp=oe(function(e,t){let{ownerDocument:n=null,...r}=e,o=f.useRef(null),a=ue(Mi(p=>{o.current=p}),t),i=nt(o.current),s=n??i,l=Wp(s),u=f.useContext(ra),c=Re(),m=ae();return Hn(()=>{var p;l&&l.childNodes.length<=0&&((p=l.parentElement)==null||p.removeChild(l))}),l?He.createPortal(f.createElement("div",{"data-headlessui-portal":"",ref:p=>{c.dispose(),u&&p&&c.add(u.register(p))}},m({ourProps:{ref:a},theirProps:r,slot:{},defaultTag:Ks,name:"Portal"})),l):null});function Up(e,t){let n=ue(t),{enabled:r=!0,ownerDocument:o,...a}=e,i=ae();return r?f.createElement(Rp,{...a,ownerDocument:o,ref:n}):i({ourProps:{ref:n},theirProps:a,slot:{},defaultTag:Ks,name:"Portal"})}let Gp=f.Fragment,Xs=f.createContext(null);function Yp(e,t){let{target:n,...r}=e,o={ref:ue(t)},a=ae();return f.createElement(Xs.Provider,{value:n},a({ourProps:o,theirProps:r,defaultTag:Gp,name:"Popover.Group"}))}let ra=f.createContext(null);function qs(){let e=f.useContext(ra),t=f.useRef([]),n=F(a=>(t.current.push(a),e&&e.register(a),()=>r(a))),r=F(a=>{let i=t.current.indexOf(a);i!==-1&&t.current.splice(i,1),e&&e.unregister(a)}),o=f.useMemo(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,f.useMemo(()=>function({children:a}){return f.createElement(ra.Provider,{value:o},a)},[o])]}let Kp=oe(Up),Js=oe(Yp),Wn=Object.assign(Kp,{Group:Js});const kt={Idle:{kind:"Idle"},Tracked:e=>({kind:"Tracked",position:e}),Moved:{kind:"Moved"}};function oa(e){let t=e.getBoundingClientRect();return`${t.x},${t.y}`}function Qs(e,t,n){let r=Pe();if(t.kind==="Tracked"){let o=function(){a!==oa(e)&&(r.dispose(),n())},{position:a}=t,i=new ResizeObserver(o);i.observe(e),r.add(()=>i.disconnect()),r.addEventListener(window,"scroll",o,{passive:!0}),r.addEventListener(window,"resize",o)}return()=>r.dispose()}function Xp(e,t=typeof document<"u"?document.defaultView:null,n){let r=An(e,"escape");Do(t,"keydown",o=>{r&&(o.defaultPrevented||o.key===Z.Escape&&n(o))})}function qp(){var e;let[t]=f.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=f.useState((e=t?.matches)!=null?e:!1);return se(()=>{if(!t)return;function o(a){r(a.matches)}return t.addEventListener("change",o),()=>t.removeEventListener("change",o)},[t]),n}function Zs({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=F(()=>{var o,a;let i=dt(n),s=[];for(let l of e)l!==null&&(tt(l)?s.push(l):"current"in l&&tt(l.current)&&s.push(l.current));if(t!=null&&t.current)for(let l of t.current)s.push(l);for(let l of(o=i?.querySelectorAll("html > *, body > *"))!=null?o:[])l!==document.body&&l!==document.head&&tt(l)&&l.id!=="headlessui-portal-root"&&(n&&(l.contains(n)||l.contains((a=n?.getRootNode())==null?void 0:a.host))||s.some(u=>l.contains(u))||s.push(l));return s});return{resolveContainers:r,contains:F(o=>r().some(a=>a.contains(o)))}}let el=f.createContext(null);function Mr({children:e,node:t}){let[n,r]=f.useState(null),o=aa(t??n);return f.createElement(el.Provider,{value:o},e,o===null&&f.createElement(et,{features:Ge.Hidden,ref:a=>{var i,s;if(a){for(let l of(s=(i=dt(a))==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?s:[])if(l!==document.body&&l!==document.head&&tt(l)&&l!=null&&l.contains(a)){r(l);break}}}}))}function aa(e=null){var t;return(t=f.useContext(el))!=null?t:e}function Jp(){let e=typeof document>"u";return"useSyncExternalStore"in R?(t=>t.useSyncExternalStore)(R)(()=>()=>{},()=>!1,()=>!e):!1}function Lr(){let e=Jp(),[t,n]=R.useState(We.isHandoffComplete);return t&&We.isHandoffComplete===!1&&n(!1),R.useEffect(()=>{t!==!0&&n(!0)},[t]),R.useEffect(()=>We.handoff(),[]),e?!1:t}function ia(){let e=f.useRef(!1);return se(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var Ie=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Ie||{});function sa(){let e=f.useRef(0);return ts(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function tl(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)tt(n.current)&&t.add(n.current);return t}let Qp="div";var zt=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(zt||{});function Zp(e,t){let n=f.useRef(null),r=ue(n,t),{initialFocus:o,initialFocusFallback:a,containers:i,features:s=15,...l}=e;Lr()||(s=0);let u=nt(n.current);rg(s,{ownerDocument:u});let c=og(s,{ownerDocument:u,container:n,initialFocus:o,initialFocusFallback:a});ag(s,{ownerDocument:u,container:n,containers:i,previousActiveElement:c});let m=sa(),p=F(w=>{if(!xe(n.current))return;let x=n.current;(k=>k())(()=>{he(m.current,{[Ie.Forwards]:()=>{Oe(x,ve.First,{skipElements:[w.relatedTarget,a]})},[Ie.Backwards]:()=>{Oe(x,ve.Last,{skipElements:[w.relatedTarget,a]})}})})}),d=An(!!(s&2),"focus-trap#tab-lock"),g=Re(),h=f.useRef(!1),v={ref:r,onKeyDown(w){w.key=="Tab"&&(h.current=!0,g.requestAnimationFrame(()=>{h.current=!1}))},onBlur(w){if(!(s&4))return;let x=tl(i);xe(n.current)&&x.add(n.current);let k=w.relatedTarget;_e(k)&&k.dataset.headlessuiFocusGuard!=="true"&&(nl(x,k)||(h.current?Oe(n.current,he(m.current,{[Ie.Forwards]:()=>ve.Next,[Ie.Backwards]:()=>ve.Previous})|ve.WrapAround,{relativeTo:w.target}):_e(w.target)&&Ke(w.target)))}},y=ae();return f.createElement(f.Fragment,null,d&&f.createElement(et,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:Ge.Focusable}),y({ourProps:v,theirProps:l,defaultTag:Qp,name:"FocusTrap"}),d&&f.createElement(et,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:Ge.Focusable}))}let eg=oe(Zp),tg=Object.assign(eg,{features:zt});function ng(e=!0){let t=f.useRef(St.slice());return zo(([n],[r])=>{r===!0&&n===!1&&fr(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=St.slice())},[e,St,t]),F(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function rg(e,{ownerDocument:t}){let n=!!(e&8),r=ng(n);zo(()=>{n||Eo(t?.body)&&Ke(r())},[n]),Hn(()=>{n&&Ke(r())})}function og(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:o}){let a=f.useRef(null),i=An(!!(e&1),"focus-trap#initial-focus"),s=ia();return zo(()=>{if(e===0)return;if(!i){o!=null&&o.current&&Ke(o.current);return}let l=n.current;l&&fr(()=>{if(!s.current)return;let u=t?.activeElement;if(r!=null&&r.current){if(r?.current===u){a.current=u;return}}else if(l.contains(u)){a.current=u;return}if(r!=null&&r.current)Ke(r.current);else{if(e&16){if(Oe(l,ve.First|ve.AutoFocus)!==Gt.Error)return}else if(Oe(l,ve.First)!==Gt.Error)return;if(o!=null&&o.current&&(Ke(o.current),t?.activeElement===o.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}a.current=t?.activeElement})},[o,i,e]),a}function ag(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:o}){let a=ia(),i=!!(e&4);Do(t?.defaultView,"focus",s=>{if(!i||!a.current)return;let l=tl(r);xe(n.current)&&l.add(n.current);let u=o.current;if(!u)return;let c=s.target;xe(c)?nl(l,c)?(o.current=c,Ke(c)):(s.preventDefault(),s.stopPropagation(),Ke(u)):Ke(o.current)},!0)}function nl(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function rl(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||!xn((t=e.as)!=null?t:al)||f.Children.count(e.children)===1}let _r=f.createContext(null);_r.displayName="TransitionContext";var ig=(e=>(e.Visible="visible",e.Hidden="hidden",e))(ig||{});function sg(){let e=f.useContext(_r);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function lg(){let e=f.useContext(Dr);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Dr=f.createContext(null);Dr.displayName="NestingContext";function zr(e){return"children"in e?zr(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function ol(e,t){let n=Ue(e),r=f.useRef([]),o=ia(),a=Re(),i=F((d,g=ht.Hidden)=>{let h=r.current.findIndex(({el:v})=>v===d);h!==-1&&(he(g,{[ht.Unmount](){r.current.splice(h,1)},[ht.Hidden](){r.current[h].state="hidden"}}),a.microTask(()=>{var v;!zr(r)&&o.current&&((v=n.current)==null||v.call(n))}))}),s=F(d=>{let g=r.current.find(({el:h})=>h===d);return g?g.state!=="visible"&&(g.state="visible"):r.current.push({el:d,state:"visible"}),()=>i(d,ht.Unmount)}),l=f.useRef([]),u=f.useRef(Promise.resolve()),c=f.useRef({enter:[],leave:[]}),m=F((d,g,h)=>{l.current.splice(0),t&&(t.chains.current[g]=t.chains.current[g].filter(([v])=>v!==d)),t?.chains.current[g].push([d,new Promise(v=>{l.current.push(v)})]),t?.chains.current[g].push([d,new Promise(v=>{Promise.all(c.current[g].map(([y,w])=>w)).then(()=>v())})]),g==="enter"?u.current=u.current.then(()=>t?.wait.current).then(()=>h(g)):h(g)}),p=F((d,g,h)=>{Promise.all(c.current[g].splice(0).map(([v,y])=>y)).then(()=>{var v;(v=l.current.shift())==null||v()}).then(()=>h(g))});return f.useMemo(()=>({children:r,register:s,unregister:i,onStart:m,onStop:p,wait:u,chains:c}),[s,i,r,m,p,c,u])}let al=f.Fragment,il=je.RenderStrategy;function ug(e,t){var n,r;let{transition:o=!0,beforeEnter:a,afterEnter:i,beforeLeave:s,afterLeave:l,enter:u,enterFrom:c,enterTo:m,entered:p,leave:d,leaveFrom:g,leaveTo:h,...v}=e,[y,w]=f.useState(null),x=f.useRef(null),k=rl(e),S=ue(...k?[x,t,w]:t===null?[]:[t]),C=(n=v.unmount)==null||n?ht.Unmount:ht.Hidden,{show:T,appear:O,initial:G}=sg(),[N,j]=f.useState(T?"visible":"hidden"),K=lg(),{register:X,unregister:M}=K;se(()=>X(x),[X,x]),se(()=>{if(C===ht.Hidden&&x.current){if(T&&N!=="visible"){j("visible");return}return he(N,{hidden:()=>M(x),visible:()=>X(x)})}},[N,x,X,M,T,C]);let z=Lr();se(()=>{if(k&&z&&N==="visible"&&x.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[x,N,z,k]);let W=G&&!O,Q=O&&T&&G,E=f.useRef(!1),U=ol(()=>{E.current||(j("hidden"),M(x))},K),te=F(L=>{E.current=!0;let fe=L?"enter":"leave";U.onStart(x,fe,ge=>{ge==="enter"?a?.():ge==="leave"&&s?.()})}),$=F(L=>{let fe=L?"enter":"leave";E.current=!1,U.onStop(x,fe,ge=>{ge==="enter"?i?.():ge==="leave"&&l?.()}),fe==="leave"&&!zr(U)&&(j("hidden"),M(x))});f.useEffect(()=>{k&&o||(te(T),$(T))},[T,k,o]);let _=!(!o||!k||!z||W),[,P]=Ln(_,y,T,{start:te,end:$}),I=vt({ref:S,className:((r=ko(v.className,Q&&u,Q&&c,P.enter&&u,P.enter&&P.closed&&c,P.enter&&!P.closed&&m,P.leave&&d,P.leave&&!P.closed&&g,P.leave&&P.closed&&h,!P.transition&&T&&p))==null?void 0:r.trim())||void 0,...Mn(P)}),J=0;N==="visible"&&(J|=me.Open),N==="hidden"&&(J|=me.Closed),T&&N==="hidden"&&(J|=me.Opening),!T&&N==="visible"&&(J|=me.Closing);let H=ae();return f.createElement(Dr.Provider,{value:U},f.createElement(jr,{value:J},H({ourProps:I,theirProps:v,defaultTag:al,features:il,visible:N==="visible",name:"Transition.Child"})))}function cg(e,t){let{show:n,appear:r=!1,unmount:o=!0,...a}=e,i=f.useRef(null),s=rl(e),l=ue(...s?[i,t]:t===null?[]:[t]);Lr();let u=wt();if(n===void 0&&u!==null&&(n=(u&me.Open)===me.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,m]=f.useState(n?"visible":"hidden"),p=ol(()=>{n||m("hidden")}),[d,g]=f.useState(!0),h=f.useRef([n]);se(()=>{d!==!1&&h.current[h.current.length-1]!==n&&(h.current.push(n),g(!1))},[h,n]);let v=f.useMemo(()=>({show:n,appear:r,initial:d}),[n,r,d]);se(()=>{n?m("visible"):!zr(p)&&i.current!==null&&m("hidden")},[n,p]);let y={unmount:o},w=F(()=>{var S;d&&g(!1),(S=e.beforeEnter)==null||S.call(e)}),x=F(()=>{var S;d&&g(!1),(S=e.beforeLeave)==null||S.call(e)}),k=ae();return f.createElement(Dr.Provider,{value:p},f.createElement(_r.Provider,{value:v},k({ourProps:{...y,as:f.Fragment,children:f.createElement(sl,{ref:l,...y,...a,beforeEnter:w,beforeLeave:x})},theirProps:{},defaultTag:f.Fragment,features:il,visible:c==="visible",name:"Transition"})))}function fg(e,t){let n=f.useContext(_r)!==null,r=wt()!==null;return f.createElement(f.Fragment,null,!n&&r?f.createElement(la,{ref:t,...e}):f.createElement(sl,{ref:t,...e}))}let la=oe(cg),sl=oe(ug),Rn=oe(fg),Zt=Object.assign(la,{Child:Rn,Root:la});var dg=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(dg||{}),mg=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(mg||{});let pg={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},ua=f.createContext(null);ua.displayName="DialogContext";function Vr(e){let t=f.useContext(ua);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Vr),n}return t}function gg(e,t){return he(t.type,pg,e,t)}let ll=oe(function(e,t){let n=f.useId(),{id:r=`headlessui-dialog-${n}`,open:o,onClose:a,initialFocus:i,role:s="dialog",autoFocus:l=!0,__demoMode:u=!1,unmount:c=!1,...m}=e,p=f.useRef(!1);s=(function(){return s==="dialog"||s==="alertdialog"?s:(p.current||(p.current=!0,console.warn(`Invalid role [${s}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")})();let d=wt();o===void 0&&d!==null&&(o=(d&me.Open)===me.Open);let g=f.useRef(null),h=ue(g,t),v=nt(g.current),y=o?0:1,[w,x]=f.useReducer(gg,{titleId:null,descriptionId:null,panelRef:f.createRef()}),k=F(()=>a(!1)),S=F(P=>x({type:0,id:P})),C=Lr()?y===0:!1,[T,O]=qs(),G={get current(){var P;return(P=w.panelRef.current)!=null?P:g.current}},N=aa(),{resolveContainers:j}=Zs({mainTreeNode:N,portals:T,defaultContainers:[G]}),K=d!==null?(d&me.Closing)===me.Closing:!1;Lo(u||K?!1:C,{allowed:F(()=>{var P,I;return[(I=(P=g.current)==null?void 0:P.closest("[data-headlessui-portal]"))!=null?I:null]}),disallowed:F(()=>{var P;return[(P=N?.closest("body > *:not(#headlessui-portal-root)"))!=null?P:null]})});let X=Mt.get(null);se(()=>{if(C)return X.actions.push(r),()=>X.actions.pop(r)},[X,r,C]);let M=ie(X,f.useCallback(P=>X.selectors.isTop(P,r),[X,r]));wr(M,j,P=>{P.preventDefault(),k()}),Xp(M,v?.defaultView,P=>{P.preventDefault(),P.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),k()}),Er(u||K?!1:C,v,j),yr(C,g,k);let[z,W]=gr(),Q=f.useMemo(()=>[{dialogState:y,close:k,setTitleId:S,unmount:c},w],[y,k,S,c,w]),E=de({open:y===0}),U={ref:h,id:r,role:s,tabIndex:-1,"aria-modal":u?void 0:y===0?!0:void 0,"aria-labelledby":w.titleId,"aria-describedby":z,unmount:c},te=!qp(),$=zt.None;C&&!u&&($|=zt.RestoreFocus,$|=zt.TabLock,l&&($|=zt.AutoFocus),te&&($|=zt.InitialFocus));let _=ae();return f.createElement(Us,null,f.createElement(Ys,{force:!0},f.createElement(Wn,null,f.createElement(ua.Provider,{value:Q},f.createElement(Js,{target:g},f.createElement(Ys,{force:!1},f.createElement(W,{slot:E},f.createElement(O,null,f.createElement(tg,{initialFocus:i,initialFocusFallback:g,containers:j,features:$},f.createElement(Co,{value:k},_({ourProps:U,theirProps:m,slot:E,defaultTag:hg,features:vg,visible:y===0,name:"Dialog"})))))))))))}),hg="div",vg=je.RenderStrategy|je.Static;function bg(e,t){let{transition:n=!1,open:r,...o}=e,a=wt(),i=e.hasOwnProperty("open")||a!==null,s=e.hasOwnProperty("onClose");if(!i&&!s)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!i)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!s)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!a&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(r!==void 0||n)&&!o.static?f.createElement(Mr,null,f.createElement(Zt,{show:r,transition:n,unmount:o.unmount},f.createElement(ll,{ref:t,...o}))):f.createElement(Mr,null,f.createElement(ll,{ref:t,open:r,...o}))}let yg="div";function xg(e,t){let n=f.useId(),{id:r=`headlessui-dialog-panel-${n}`,transition:o=!1,...a}=e,[{dialogState:i,unmount:s},l]=Vr("Dialog.Panel"),u=ue(t,l.panelRef),c=de({open:i===0}),m=F(v=>{v.stopPropagation()}),p={ref:u,id:r,onClick:m},d=o?Rn:f.Fragment,g=o?{unmount:s}:{},h=ae();return f.createElement(d,{...g},h({ourProps:p,theirProps:a,slot:c,defaultTag:yg,name:"Dialog.Panel"}))}let wg="div";function Sg(e,t){let{transition:n=!1,...r}=e,[{dialogState:o,unmount:a}]=Vr("Dialog.Backdrop"),i=de({open:o===0}),s={ref:t,"aria-hidden":!0},l=n?Rn:f.Fragment,u=n?{unmount:a}:{},c=ae();return f.createElement(l,{...u},c({ourProps:s,theirProps:r,slot:i,defaultTag:wg,name:"Dialog.Backdrop"}))}let Eg="h2";function kg(e,t){let n=f.useId(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:a,setTitleId:i}]=Vr("Dialog.Title"),s=ue(t);f.useEffect(()=>(i(r),()=>i(null)),[r,i]);let l=de({open:a===0}),u={ref:s,id:r};return ae()({ourProps:u,theirProps:o,slot:l,defaultTag:Eg,name:"Dialog.Title"})}let $g=oe(bg),ul=oe(xg),Pg=oe(Sg),cl=oe(kg),Ng=Object.assign($g,{Panel:ul,Title:cl,Description:En}),Cg="div";function Og(e,t){let n=`headlessui-control-${f.useId()}`,[r,o]=$n(),[a,i]=gr(),s=gt(),{disabled:l=s||!1,...u}=e,c=de({disabled:l}),m={ref:t,disabled:l||void 0,"aria-disabled":l||void 0},p=ae();return f.createElement(sd,{value:l},f.createElement(o,{value:r},f.createElement(i,{value:a},f.createElement(Sd,{id:n},p({ourProps:m,theirProps:{...u,children:f.createElement(yd,null,typeof u.children=="function"?u.children(c):u.children)},slot:c,defaultTag:Cg,name:"Field"})))))}let ca=oe(Og),Ag="input";function Ig(e,t){let n=f.useId(),r=wn(),o=gt(),{id:a=r||`headlessui-input-${n}`,disabled:i=o||!1,autoFocus:s=!1,invalid:l=!1,...u}=e,c=kn(),m=pr(),{isFocused:p,focusProps:d}=jt({autoFocus:s}),{isHovered:g,hoverProps:h}=Ft({isDisabled:i}),v=Le({ref:t,id:a,"aria-labelledby":c,"aria-describedby":m,"aria-invalid":l?"true":void 0,disabled:i||void 0,autoFocus:s},d,h),y=de({disabled:i,invalid:l,hover:g,focus:p,autofocus:s});return ae()({ourProps:v,theirProps:u,slot:y,defaultTag:Ag,name:"Input"})}let Tg=oe(Ig),fl=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function dl(e){var t,n;let r=(t=e.innerText)!=null?t:"",o=e.cloneNode(!0);if(!xe(o))return r;let a=!1;for(let s of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),a=!0;let i=a?(n=o.innerText)!=null?n:"":r;return fl.test(i)&&(i=i.replace(fl,"")),i}function Fg(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(o=>{let a=document.getElementById(o);if(a){let i=a.getAttribute("aria-label");return typeof i=="string"?i.trim():dl(a).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return dl(e).trim()}function ml(e){let t=f.useRef(""),n=f.useRef("");return F(()=>{let r=e.current;if(!r)return"";let o=r.innerText;if(t.current===o)return n.current;let a=Fg(r).trim().toLowerCase();return t.current=o,n.current=a,a})}var jg=Object.defineProperty,Mg=(e,t,n)=>t in e?jg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pl=(e,t,n)=>(Mg(e,typeof t!="symbol"?t+"":t,n),n),ke=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ke||{}),$t=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))($t||{}),Br=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Br||{}),gl=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.SelectOption=5]="SelectOption",e[e.RegisterOptions=6]="RegisterOptions",e[e.UnregisterOptions=7]="UnregisterOptions",e[e.SetButtonElement=8]="SetButtonElement",e[e.SetOptionsElement=9]="SetOptionsElement",e[e.SortOptions=10]="SortOptions",e[e.MarkButtonAsMoved=11]="MarkButtonAsMoved",e))(gl||{});function hl(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=_o(t(e.options.slice()),a=>a.dataRef.current.domRef.current),o=n?r.indexOf(n):null;return o===-1&&(o=null),{options:r,activeOptionIndex:o}}let Lg={1(e){if(e.dataRef.current.disabled||e.listboxState===1)return e;let t=e.buttonElement?kt.Tracked(oa(e.buttonElement)):e.buttonPositionState;return{...e,activeOptionIndex:null,pendingFocus:{focus:ne.Nothing},listboxState:1,__demoMode:!1,buttonPositionState:t}},0(e,t){if(e.dataRef.current.disabled||e.listboxState===0)return e;let n=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,o=e.options.findIndex(a=>r(a.dataRef.current.value));return o!==-1&&(n=o),{...e,frozenValue:!1,pendingFocus:t.focus,listboxState:0,activeOptionIndex:n,__demoMode:!1,buttonPositionState:kt.Idle}},2(e,t){var n,r,o,a,i;if(e.dataRef.current.disabled||e.listboxState===1)return e;let s={...e,searchQuery:"",activationTrigger:(n=t.trigger)!=null?n:1,__demoMode:!1};if(t.focus===ne.Nothing)return{...s,activeOptionIndex:null};if(t.focus===ne.Specific)return{...s,activeOptionIndex:e.options.findIndex(c=>c.id===t.id)};if(t.focus===ne.Previous){let c=e.activeOptionIndex;if(c!==null){let m=e.options[c].dataRef.current.domRef,p=Et(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:d=>d.id,resolveDisabled:d=>d.dataRef.current.disabled});if(p!==null){let d=e.options[p].dataRef.current.domRef;if(((r=m.current)==null?void 0:r.previousElementSibling)===d.current||((o=d.current)==null?void 0:o.previousElementSibling)===null)return{...s,activeOptionIndex:p}}}}else if(t.focus===ne.Next){let c=e.activeOptionIndex;if(c!==null){let m=e.options[c].dataRef.current.domRef,p=Et(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:d=>d.id,resolveDisabled:d=>d.dataRef.current.disabled});if(p!==null){let d=e.options[p].dataRef.current.domRef;if(((a=m.current)==null?void 0:a.nextElementSibling)===d.current||((i=d.current)==null?void 0:i.nextElementSibling)===null)return{...s,activeOptionIndex:p}}}}let l=hl(e),u=Et(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:c=>c.id,resolveDisabled:c=>c.dataRef.current.disabled});return{...s,...l,activeOptionIndex:u}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(i=>{var s;return!i.dataRef.current.disabled&&((s=i.dataRef.current.textValue)==null?void 0:s.startsWith(r))}),a=o?e.options.indexOf(o):-1;return a===-1||a===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:a,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5(e){return e.dataRef.current.mode===0?{...e,frozenValue:!0}:{...e}},6:(e,t)=>{let n=e.options.concat(t.options),r=e.activeOptionIndex;if(e.pendingFocus.focus!==ne.Nothing&&(r=Et(e.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:o=>o.id,resolveDisabled:o=>o.dataRef.current.disabled})),e.activeOptionIndex===null){let{isSelected:o}=e.dataRef.current;if(o){let a=n.findIndex(i=>o?.(i.dataRef.current.value));a!==-1&&(r=a)}}return{...e,options:n,activeOptionIndex:r,pendingFocus:{focus:ne.Nothing},pendingShouldSort:!0}},7:(e,t)=>{let n=e.options,r=[],o=new Set(t.options);for(let[a,i]of n.entries())if(o.has(i.id)&&(r.push(a),o.delete(i.id),o.size===0))break;if(r.length>0){n=n.slice();for(let a of r.reverse())n.splice(a,1)}return{...e,options:n,activationTrigger:1}},8:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},9:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},10:e=>e.pendingShouldSort?{...e,...hl(e),pendingShouldSort:!1}:e,11(e){return e.buttonPositionState.kind!=="Tracked"?e:{...e,buttonPositionState:kt.Moved}}},_g=class kf extends vr{constructor(t){super(t),pl(this,"actions",{onChange:n=>{let{onChange:r,compare:o,mode:a,value:i}=this.state.dataRef.current;return he(a,{0:()=>r?.(n),1:()=>{let s=i.slice(),l=s.findIndex(u=>o(u,n));return l===-1?s.push(n):s.splice(l,1),r?.(s)}})},registerOption:On(()=>{let n=[],r=new Set;return[(o,a)=>{r.has(a)||(r.add(a),n.push({id:o,dataRef:a}))},()=>(r.clear(),this.send({type:6,options:n.splice(0)}))]}),unregisterOption:On(()=>{let n=[];return[r=>n.push(r),()=>{this.send({type:7,options:n.splice(0)})}]}),goToOption:On(()=>{let n=null;return[(r,o)=>{n={type:2,...r,trigger:o}},()=>n&&this.send(n)]}),closeListbox:()=>{this.send({type:1})},openListbox:n=>{this.send({type:0,focus:n})},selectActiveOption:()=>{var n;if(this.state.activeOptionIndex!==null){let{dataRef:r}=this.state.options[this.state.activeOptionIndex];this.actions.selectOption(r.current.value)}else this.state.dataRef.current.mode===0&&(this.actions.closeListbox(),(n=this.state.buttonElement)==null||n.focus({preventScroll:!0}))},selectOption:n=>{this.send({type:5,value:n})},search:n=>{this.send({type:3,value:n})},clearSearch:()=>{this.send({type:4})},setButtonElement:n=>{this.send({type:8,element:n})},setOptionsElement:n=>{this.send({type:9,element:n})}}),pl(this,"selectors",{activeDescendantId(n){var r;let o=n.activeOptionIndex,a=n.options;return o===null||(r=a[o])==null?void 0:r.id},isActive(n,r){var o;let a=n.activeOptionIndex,i=n.options;return a!==null?((o=i[a])==null?void 0:o.id)===r:!1},hasFrozenValue(n){return n.frozenValue},shouldScrollIntoView(n,r){return n.__demoMode||n.listboxState!==0||n.activationTrigger===0?!1:this.isActive(n,r)},didButtonMove(n){return n.buttonPositionState.kind==="Moved"}}),this.on(6,()=>{requestAnimationFrame(()=>{this.send({type:10})})});{let n=this.state.id,r=Mt.get(null);this.disposables.add(r.on(To.Push,o=>{!r.selectors.isTop(o,n)&&this.state.listboxState===0&&this.actions.closeListbox()})),this.on(0,()=>r.actions.push(n)),this.on(1,()=>r.actions.pop(n))}this.disposables.group(n=>{this.on(1,r=>{r.buttonElement&&(n.dispose(),n.add(Qs(r.buttonElement,r.buttonPositionState,()=>{this.send({type:11})})))})}),this.on(5,(n,r)=>{var o;this.actions.onChange(r.value),this.state.dataRef.current.mode===0&&(this.actions.closeListbox(),(o=this.state.buttonElement)==null||o.focus({preventScroll:!0}))})}static new({id:t,__demoMode:n=!1}){return new kf({id:t,dataRef:{current:{}},listboxState:n?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:ne.Nothing},frozenValue:!1,__demoMode:n,buttonPositionState:kt.Idle})}reduce(t,n){return he(n.type,Lg,t,n)}};const vl=f.createContext(null);function fa(e){let t=f.useContext(vl);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,bl),n}return t}function bl({id:e,__demoMode:t=!1}){let n=f.useMemo(()=>_g.new({id:e,__demoMode:t}),[]);return Hn(()=>n.dispose()),n}let Hr=f.createContext(null);Hr.displayName="ListboxDataContext";function Un(e){let t=f.useContext(Hr);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Un),n}return t}let Dg=f.Fragment;function zg(e,t){let n=f.useId(),r=gt(),{value:o,defaultValue:a,form:i,name:s,onChange:l,by:u,invalid:c=!1,disabled:m=r||!1,horizontal:p=!1,multiple:d=!1,__demoMode:g=!1,...h}=e;const v=p?"horizontal":"vertical";let y=ue(t),w=Ei(a),[x=d?[]:void 0,k]=Si(o,l,w),S=bl({id:n,__demoMode:g}),C=f.useRef({static:!1,hold:!1}),T=f.useRef(new Map),O=Ld(u),G=f.useCallback(_=>he(N.mode,{[$t.Multi]:()=>x.some(P=>O(P,_)),[$t.Single]:()=>O(x,_)}),[x]),N=de({value:x,disabled:m,invalid:c,mode:d?$t.Multi:$t.Single,orientation:v,onChange:k,compare:O,isSelected:G,optionsPropsRef:C,listRef:T});se(()=>{S.state.dataRef.current=N},[N]);let j=ie(S,_=>_.listboxState),K=Mt.get(null),X=ie(K,f.useCallback(_=>K.selectors.isTop(_,n),[K,n])),[M,z]=ie(S,_=>[_.buttonElement,_.optionsElement]);wr(X,[M,z],(_,P)=>{S.send({type:gl.CloseListbox}),jn(P,Fn.Loose)||(_.preventDefault(),M?.focus())});let W=de({open:j===ke.Open,disabled:m,invalid:c,value:x}),[Q,E]=$n({inherit:!0}),U={ref:y},te=f.useCallback(()=>{if(w!==void 0)return k?.(w)},[k,w]),$=ae();return f.createElement(E,{value:Q,props:{htmlFor:M?.id},slot:{open:j===ke.Open,disabled:m}},f.createElement(ta,null,f.createElement(vl.Provider,{value:S},f.createElement(Hr.Provider,{value:N},f.createElement(jr,{value:he(j,{[ke.Open]:me.Open,[ke.Closed]:me.Closed})},s!=null&&x!=null&&f.createElement(Oi,{disabled:m,data:{[s]:x},form:i,onReset:te}),$({ourProps:U,theirProps:h,slot:W,defaultTag:Dg,name:"Listbox"}))))))}let Vg="button";function Bg(e,t){let n=f.useId(),r=wn(),o=Un("Listbox.Button"),a=fa("Listbox.Button"),{id:i=r||`headlessui-listbox-button-${n}`,disabled:s=o.disabled||!1,autoFocus:l=!1,...u}=e,c=ue(t,Qo(),a.actions.setButtonElement),m=Vs(),[p,d,g]=ie(a,z=>[z.listboxState,z.buttonElement,z.optionsElement]),h=p===ke.Open;os(h,{trigger:d,action:f.useCallback(z=>{if(d!=null&&d.contains(z.target))return bt.Ignore;let W=z.target.closest('[role="option"]:not([data-disabled])');return xe(W)?bt.Select(W):g!=null&&g.contains(z.target)?bt.Ignore:bt.Close},[d,g]),close:a.actions.closeListbox,select:a.actions.selectActiveOption});let v=F(z=>{switch(z.key){case Z.Enter:Ni(z.currentTarget);break;case Z.Space:case Z.ArrowDown:z.preventDefault(),a.actions.openListbox({focus:o.value?ne.Nothing:ne.First});break;case Z.ArrowUp:z.preventDefault(),a.actions.openListbox({focus:o.value?ne.Nothing:ne.Last});break}}),y=F(z=>{z.key===Z.Space&&z.preventDefault()}),w=zi(z=>{var W;a.state.listboxState===ke.Open?(He.flushSync(()=>a.actions.closeListbox()),(W=a.state.buttonElement)==null||W.focus({preventScroll:!0})):(z.preventDefault(),a.actions.openListbox({focus:ne.Nothing}))}),x=F(z=>z.preventDefault()),k=kn([i]),S=pr(),{isFocusVisible:C,focusProps:T}=jt({autoFocus:l}),{isHovered:O,hoverProps:G}=Ft({isDisabled:s}),{pressed:N,pressProps:j}=yn({disabled:s}),K=de({open:p===ke.Open,active:N||p===ke.Open,disabled:s,invalid:o.invalid,value:o.value,hover:O,focus:C,autofocus:l}),X=ie(a,z=>z.listboxState===ke.Open),M=Le(m(),{ref:c,id:i,type:Sr(e,d),"aria-haspopup":"listbox","aria-controls":g?.id,"aria-expanded":X,"aria-labelledby":k,"aria-describedby":S,disabled:s||void 0,autoFocus:l,onKeyDown:v,onKeyUp:y,onKeyPress:x},w,T,G,j);return ae()({ourProps:M,theirProps:u,slot:K,defaultTag:Vg,name:"Listbox.Button"})}let yl=f.createContext(!1),Hg="div",Wg=je.RenderStrategy|je.Static;function Rg(e,t){let n=f.useId(),{id:r=`headlessui-listbox-options-${n}`,anchor:o,portal:a=!1,modal:i=!0,transition:s=!1,...l}=e,u=Jo(o),[c,m]=f.useState(null);u&&(a=!0);let p=Un("Listbox.Options"),d=fa("Listbox.Options"),[g,h,v,y]=ie(d,H=>[H.listboxState,H.buttonElement,H.optionsElement,H.__demoMode]),w=nt(h),x=nt(v),k=wt(),[S,C]=Ln(s,c,k!==null?(k&me.Open)===me.Open:g===ke.Open);yr(S,h,d.actions.closeListbox);let T=y?!1:i&&g===ke.Open;Er(T,x);let O=y?!1:i&&g===ke.Open;Lo(O,{allowed:f.useCallback(()=>[h,v],[h,v])});let G=ie(d,d.selectors.didButtonMove)?!1:S,N=ie(d,d.selectors.hasFrozenValue)&&!e.static,j=Rs(N,p.value),K=f.useCallback(H=>p.compare(j,H),[p.compare,j]),X=ie(d,H=>{var L;if(u==null||!((L=u?.to)!=null&&L.includes("selection")))return null;let fe=H.options.findIndex(ge=>K(ge.dataRef.current.value));return fe===-1&&(fe=0),fe}),M=(()=>{if(u==null)return;if(X===null)return{...u,inner:void 0};let H=Array.from(p.listRef.current.values());return{...u,inner:{listRef:{current:H},index:X}}})(),[z,W]=ea(M),Q=Zo(),E=ue(t,u?z:null,d.actions.setOptionsElement,m),U=Re();f.useEffect(()=>{let H=v;H&&g===ke.Open&&(Eo(H)||H==null||H.focus({preventScroll:!0}))},[g,v]);let te=F(H=>{var L;switch(U.dispose(),H.key){case Z.Space:if(d.state.searchQuery!=="")return H.preventDefault(),H.stopPropagation(),d.actions.search(H.key);case Z.Enter:H.preventDefault(),H.stopPropagation(),d.actions.selectActiveOption();break;case he(p.orientation,{vertical:Z.ArrowDown,horizontal:Z.ArrowRight}):return H.preventDefault(),H.stopPropagation(),d.actions.goToOption({focus:ne.Next});case he(p.orientation,{vertical:Z.ArrowUp,horizontal:Z.ArrowLeft}):return H.preventDefault(),H.stopPropagation(),d.actions.goToOption({focus:ne.Previous});case Z.Home:case Z.PageUp:return H.preventDefault(),H.stopPropagation(),d.actions.goToOption({focus:ne.First});case Z.End:case Z.PageDown:return H.preventDefault(),H.stopPropagation(),d.actions.goToOption({focus:ne.Last});case Z.Escape:H.preventDefault(),H.stopPropagation(),He.flushSync(()=>d.actions.closeListbox()),(L=d.state.buttonElement)==null||L.focus({preventScroll:!0});return;case Z.Tab:H.preventDefault(),H.stopPropagation(),He.flushSync(()=>d.actions.closeListbox()),Qi(d.state.buttonElement,H.shiftKey?ve.Previous:ve.Next);break;default:H.key.length===1&&(d.actions.search(H.key),U.setTimeout(()=>d.actions.clearSearch(),350));break}}),$=ie(d,H=>{var L;return(L=H.buttonElement)==null?void 0:L.id}),_=de({open:g===ke.Open}),P=Le(u?Q():{},{id:r,ref:E,"aria-activedescendant":ie(d,d.selectors.activeDescendantId),"aria-multiselectable":p.mode===$t.Multi?!0:void 0,"aria-labelledby":$,"aria-orientation":p.orientation,onKeyDown:te,role:"listbox",tabIndex:g===ke.Open?0:void 0,style:{...l.style,...W,"--button-width":Oo(S,h,!0).width},...Mn(C)}),I=ae(),J=f.useMemo(()=>p.mode===$t.Multi?p:{...p,isSelected:K},[p,K]);return f.createElement(Wn,{enabled:a?e.static||S:!1,ownerDocument:w},f.createElement(Hr.Provider,{value:J},I({ourProps:P,theirProps:l,slot:_,defaultTag:Hg,features:Wg,visible:G,name:"Listbox.Options"})))}let Ug="div";function Gg(e,t){let n=f.useId(),{id:r=`headlessui-listbox-option-${n}`,disabled:o=!1,value:a,...i}=e,s=f.useContext(yl)===!0,l=Un("Listbox.Option"),u=fa("Listbox.Option"),c=ie(u,N=>u.selectors.isActive(N,r)),m=l.isSelected(a),p=f.useRef(null),d=ml(p),g=Ue({disabled:o,value:a,domRef:p,get textValue(){return d()}}),h=ue(t,p,N=>{N?l.listRef.current.set(r,N):l.listRef.current.delete(r)}),v=ie(u,N=>u.selectors.shouldScrollIntoView(N,r));se(()=>{if(v)return Pe().requestAnimationFrame(()=>{var N,j;(j=(N=p.current)==null?void 0:N.scrollIntoView)==null||j.call(N,{block:"nearest"})})},[v,p]),se(()=>{if(!s)return u.actions.registerOption(r,g),()=>u.actions.unregisterOption(r)},[g,r,s]);let y=F(N=>{if(o)return N.preventDefault();u.actions.selectOption(a)}),w=F(()=>{if(o)return u.actions.goToOption({focus:ne.Nothing});u.actions.goToOption({focus:ne.Specific,id:r})}),x=ss(),k=F(N=>x.update(N)),S=F(N=>{x.wasMoved(N)&&(o||c&&u.state.activationTrigger===Br.Pointer||u.actions.goToOption({focus:ne.Specific,id:r},Br.Pointer))}),C=F(N=>{x.wasMoved(N)&&(o||c&&u.state.activationTrigger===Br.Pointer&&u.actions.goToOption({focus:ne.Nothing}))}),T=de({active:c,focus:c,selected:m,disabled:o,selectedOption:m&&s}),O=s?{}:{id:r,ref:h,role:"option",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-selected":m,disabled:void 0,onClick:y,onFocus:w,onPointerEnter:k,onMouseEnter:k,onPointerMove:S,onMouseMove:S,onPointerLeave:C,onMouseLeave:C},G=ae();return!m&&s?null:G({ourProps:O,theirProps:i,slot:T,defaultTag:Ug,name:"Listbox.Option"})}let Yg=f.Fragment;function Kg(e,t){let{options:n,placeholder:r,...o}=e,a={ref:ue(t)},i=Un("ListboxSelectedOption"),s=de({}),l=i.value===void 0||i.value===null||i.mode===$t.Multi&&Array.isArray(i.value)&&i.value.length===0,u=ae();return f.createElement(yl.Provider,{value:!0},u({ourProps:a,theirProps:{...o,children:f.createElement(f.Fragment,null,r&&l?r:n)},slot:s,defaultTag:Yg,name:"ListboxSelectedOption"}))}let Xg=oe(zg),xl=oe(Bg),wl=Pn,Sl=oe(Rg),El=oe(Gg),qg=oe(Kg),Jg=Object.assign(Xg,{Button:xl,Label:wl,Options:Sl,Option:El,SelectedOption:qg});var Qg=Object.defineProperty,Zg=(e,t,n)=>t in e?Qg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kl=(e,t,n)=>(Zg(e,typeof t!="symbol"?t+"":t,n),n),$e=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))($e||{}),Wr=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Wr||{}),ce=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItems=5]="RegisterItems",e[e.UnregisterItems=6]="UnregisterItems",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetItemsElement=8]="SetItemsElement",e[e.SortItems=9]="SortItems",e[e.MarkButtonAsMoved=10]="MarkButtonAsMoved",e))(ce||{});function $l(e,t=n=>n){let n=e.activeItemIndex!==null?e.items[e.activeItemIndex]:null,r=_o(t(e.items.slice()),a=>a.dataRef.current.domRef.current),o=n?r.indexOf(n):null;return o===-1&&(o=null),{items:r,activeItemIndex:o}}let eh={1(e){if(e.menuState===1)return e;let t=e.buttonElement?kt.Tracked(oa(e.buttonElement)):e.buttonPositionState;return{...e,activeItemIndex:null,pendingFocus:{focus:ne.Nothing},menuState:1,buttonPositionState:t}},0(e,t){return e.menuState===0?e:{...e,__demoMode:!1,pendingFocus:t.focus,menuState:0,buttonPositionState:kt.Idle}},2:(e,t)=>{var n,r,o,a,i;if(e.menuState===1)return e;let s={...e,searchQuery:"",activationTrigger:(n=t.trigger)!=null?n:1,__demoMode:!1};if(t.focus===ne.Nothing)return{...s,activeItemIndex:null};if(t.focus===ne.Specific)return{...s,activeItemIndex:e.items.findIndex(c=>c.id===t.id)};if(t.focus===ne.Previous){let c=e.activeItemIndex;if(c!==null){let m=e.items[c].dataRef.current.domRef,p=Et(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:d=>d.id,resolveDisabled:d=>d.dataRef.current.disabled});if(p!==null){let d=e.items[p].dataRef.current.domRef;if(((r=m.current)==null?void 0:r.previousElementSibling)===d.current||((o=d.current)==null?void 0:o.previousElementSibling)===null)return{...s,activeItemIndex:p}}}}else if(t.focus===ne.Next){let c=e.activeItemIndex;if(c!==null){let m=e.items[c].dataRef.current.domRef,p=Et(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:d=>d.id,resolveDisabled:d=>d.dataRef.current.disabled});if(p!==null){let d=e.items[p].dataRef.current.domRef;if(((a=m.current)==null?void 0:a.nextElementSibling)===d.current||((i=d.current)==null?void 0:i.nextElementSibling)===null)return{...s,activeItemIndex:p}}}}let l=$l(e),u=Et(t,{resolveItems:()=>l.items,resolveActiveIndex:()=>l.activeItemIndex,resolveId:c=>c.id,resolveDisabled:c=>c.dataRef.current.disabled});return{...s,...l,activeItemIndex:u}},3:(e,t)=>{let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(e.activeItemIndex!==null?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find(i=>{var s;return((s=i.dataRef.current.textValue)==null?void 0:s.startsWith(r))&&!i.dataRef.current.disabled}),a=o?e.items.indexOf(o):-1;return a===-1||a===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:a,activationTrigger:1}},4(e){return e.searchQuery===""?e:{...e,searchQuery:"",searchActiveItemIndex:null}},5:(e,t)=>{let n=e.items.concat(t.items.map(o=>o)),r=e.activeItemIndex;return e.pendingFocus.focus!==ne.Nothing&&(r=Et(e.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>e.activeItemIndex,resolveId:o=>o.id,resolveDisabled:o=>o.dataRef.current.disabled})),{...e,items:n,activeItemIndex:r,pendingFocus:{focus:ne.Nothing},pendingShouldSort:!0}},6:(e,t)=>{let n=e.items,r=[],o=new Set(t.items);for(let[a,i]of n.entries())if(o.has(i.id)&&(r.push(a),o.delete(i.id),o.size===0))break;if(r.length>0){n=n.slice();for(let a of r.reverse())n.splice(a,1)}return{...e,items:n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.itemsElement===t.element?e:{...e,itemsElement:t.element},9:e=>e.pendingShouldSort?{...e,...$l(e),pendingShouldSort:!1}:e,10(e){return e.buttonPositionState.kind!=="Tracked"?e:{...e,buttonPositionState:kt.Moved}}},th=class $f extends vr{constructor(t){super(t),kl(this,"actions",{registerItem:On(()=>{let n=[],r=new Set;return[(o,a)=>{r.has(a)||(r.add(a),n.push({id:o,dataRef:a}))},()=>(r.clear(),this.send({type:5,items:n.splice(0)}))]}),unregisterItem:On(()=>{let n=[];return[r=>n.push(r),()=>this.send({type:6,items:n.splice(0)})]})}),kl(this,"selectors",{activeDescendantId(n){var r;let o=n.activeItemIndex,a=n.items;return o===null||(r=a[o])==null?void 0:r.id},isActive(n,r){var o;let a=n.activeItemIndex,i=n.items;return a!==null?((o=i[a])==null?void 0:o.id)===r:!1},shouldScrollIntoView(n,r){return n.__demoMode||n.menuState!==0||n.activationTrigger===0?!1:this.isActive(n,r)},didButtonMove(n){return n.buttonPositionState.kind==="Moved"}}),this.on(5,()=>{this.disposables.requestAnimationFrame(()=>{this.send({type:9})})});{let n=this.state.id,r=Mt.get(null);this.disposables.add(r.on(To.Push,o=>{!r.selectors.isTop(o,n)&&this.state.menuState===0&&this.send({type:1})})),this.on(0,()=>r.actions.push(n)),this.on(1,()=>r.actions.pop(n))}this.disposables.group(n=>{this.on(1,r=>{r.buttonElement&&(n.dispose(),n.add(Qs(r.buttonElement,r.buttonPositionState,()=>{this.send({type:10})})))})})}static new({id:t,__demoMode:n=!1}){return new $f({id:t,__demoMode:n,menuState:n?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1,pendingShouldSort:!1,pendingFocus:{focus:ne.Nothing},buttonPositionState:kt.Idle})}reduce(t,n){return he(n.type,eh,t,n)}};const Pl=f.createContext(null);function da(e){let t=f.useContext(Pl);if(t===null){let n=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Nl),n}return t}function Nl({id:e,__demoMode:t=!1}){let n=f.useMemo(()=>th.new({id:e,__demoMode:t}),[]);return Hn(()=>n.dispose()),n}let nh=f.Fragment;function rh(e,t){let n=f.useId(),{__demoMode:r=!1,...o}=e,a=Nl({id:n,__demoMode:r}),[i,s,l]=ie(a,v=>[v.menuState,v.itemsElement,v.buttonElement]),u=ue(t),c=Mt.get(null),m=ie(c,f.useCallback(v=>c.selectors.isTop(v,n),[c,n]));wr(m,[l,s],(v,y)=>{var w;a.send({type:ce.CloseMenu}),jn(y,Fn.Loose)||(v.preventDefault(),(w=a.state.buttonElement)==null||w.focus())});let p=F(()=>{a.send({type:ce.CloseMenu})}),d=de({open:i===$e.Open,close:p}),g={ref:u},h=ae();return f.createElement(ta,null,f.createElement(Pl.Provider,{value:a},f.createElement(jr,{value:he(i,{[$e.Open]:me.Open,[$e.Closed]:me.Closed})},h({ourProps:g,theirProps:o,slot:d,defaultTag:nh,name:"Menu"}))))}let oh="button";function ah(e,t){let n=da("Menu.Button"),r=f.useId(),{id:o=`headlessui-menu-button-${r}`,disabled:a=!1,autoFocus:i=!1,...s}=e,l=f.useRef(null),u=Vs(),c=ue(t,l,Qo(),F(N=>n.send({type:ce.SetButtonElement,element:N}))),m=F(N=>{switch(N.key){case Z.Space:case Z.Enter:case Z.ArrowDown:N.preventDefault(),N.stopPropagation(),n.send({type:ce.OpenMenu,focus:{focus:ne.First}});break;case Z.ArrowUp:N.preventDefault(),N.stopPropagation(),n.send({type:ce.OpenMenu,focus:{focus:ne.Last}});break}}),p=F(N=>{N.key===Z.Space&&N.preventDefault()}),[d,g,h]=ie(n,N=>[N.menuState,N.buttonElement,N.itemsElement]),v=d===$e.Open;os(v,{trigger:g,action:f.useCallback(N=>{if(g!=null&&g.contains(N.target))return bt.Ignore;let j=N.target.closest('[role="menuitem"]:not([data-disabled])');return xe(j)?bt.Select(j):h!=null&&h.contains(N.target)?bt.Ignore:bt.Close},[g,h]),close:f.useCallback(()=>n.send({type:ce.CloseMenu}),[]),select:f.useCallback(N=>N.click(),[])});let y=zi(N=>{var j;a||(d===$e.Open?(He.flushSync(()=>n.send({type:ce.CloseMenu})),(j=l.current)==null||j.focus({preventScroll:!0})):(N.preventDefault(),n.send({type:ce.OpenMenu,focus:{focus:ne.Nothing},trigger:Wr.Pointer})))}),{isFocusVisible:w,focusProps:x}=jt({autoFocus:i}),{isHovered:k,hoverProps:S}=Ft({isDisabled:a}),{pressed:C,pressProps:T}=yn({disabled:a}),O=de({open:d===$e.Open,active:C||d===$e.Open,disabled:a,hover:k,focus:w,autofocus:i}),G=Le(u(),{ref:c,id:o,type:Sr(e,l.current),"aria-haspopup":"menu","aria-controls":h?.id,"aria-expanded":d===$e.Open,disabled:a||void 0,autoFocus:i,onKeyDown:m,onKeyUp:p},y,x,S,T);return ae()({ourProps:G,theirProps:s,slot:O,defaultTag:oh,name:"Menu.Button"})}let ih="div",sh=je.RenderStrategy|je.Static;function lh(e,t){let n=f.useId(),{id:r=`headlessui-menu-items-${n}`,anchor:o,portal:a=!1,modal:i=!0,transition:s=!1,...l}=e,u=Jo(o),c=da("Menu.Items"),[m,p]=ea(u),d=Zo(),[g,h]=f.useState(null),v=ue(t,u?m:null,F(E=>c.send({type:ce.SetItemsElement,element:E})),h),[y,w]=ie(c,E=>[E.menuState,E.buttonElement]),x=nt(w),k=nt(g);u&&(a=!0);let S=wt(),[C,T]=Ln(s,g,S!==null?(S&me.Open)===me.Open:y===$e.Open);yr(C,w,()=>{c.send({type:ce.CloseMenu})});let O=ie(c,E=>E.__demoMode),G=O?!1:i&&y===$e.Open;Er(G,k);let N=O?!1:i&&y===$e.Open;Lo(N,{allowed:f.useCallback(()=>[w,g],[w,g])});let j=ie(c,c.selectors.didButtonMove)?!1:C;f.useEffect(()=>{let E=g;E&&y===$e.Open&&(Eo(E)||E.focus({preventScroll:!0}))},[y,g]),vm(y===$e.Open,{container:g,accept(E){return E.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:E.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(E){E.setAttribute("role","none")}});let K=Re(),X=F(E=>{var U,te,$;switch(K.dispose(),E.key){case Z.Space:if(c.state.searchQuery!=="")return E.preventDefault(),E.stopPropagation(),c.send({type:ce.Search,value:E.key});case Z.Enter:if(E.preventDefault(),E.stopPropagation(),c.state.activeItemIndex!==null){let{dataRef:_}=c.state.items[c.state.activeItemIndex];(te=(U=_.current)==null?void 0:U.domRef.current)==null||te.click()}c.send({type:ce.CloseMenu}),Ji(c.state.buttonElement);break;case Z.ArrowDown:return E.preventDefault(),E.stopPropagation(),c.send({type:ce.GoToItem,focus:ne.Next});case Z.ArrowUp:return E.preventDefault(),E.stopPropagation(),c.send({type:ce.GoToItem,focus:ne.Previous});case Z.Home:case Z.PageUp:return E.preventDefault(),E.stopPropagation(),c.send({type:ce.GoToItem,focus:ne.First});case Z.End:case Z.PageDown:return E.preventDefault(),E.stopPropagation(),c.send({type:ce.GoToItem,focus:ne.Last});case Z.Escape:E.preventDefault(),E.stopPropagation(),He.flushSync(()=>c.send({type:ce.CloseMenu})),($=c.state.buttonElement)==null||$.focus({preventScroll:!0});break;case Z.Tab:E.preventDefault(),E.stopPropagation(),He.flushSync(()=>c.send({type:ce.CloseMenu})),Qi(c.state.buttonElement,E.shiftKey?ve.Previous:ve.Next);break;default:E.key.length===1&&(c.send({type:ce.Search,value:E.key}),K.setTimeout(()=>c.send({type:ce.ClearSearch}),350));break}}),M=F(E=>{E.key===Z.Space&&E.preventDefault()}),z=de({open:y===$e.Open}),W=Le(u?d():{},{"aria-activedescendant":ie(c,c.selectors.activeDescendantId),"aria-labelledby":ie(c,E=>{var U;return(U=E.buttonElement)==null?void 0:U.id}),id:r,onKeyDown:X,onKeyUp:M,role:"menu",tabIndex:y===$e.Open?0:void 0,ref:v,style:{...l.style,...p,"--button-width":Oo(C,w,!0).width},...Mn(T)}),Q=ae();return f.createElement(Wn,{enabled:a?e.static||C:!1,ownerDocument:x},Q({ourProps:W,theirProps:l,slot:z,defaultTag:ih,features:sh,visible:j,name:"Menu.Items"}))}let uh=f.Fragment;function ch(e,t){let n=f.useId(),{id:r=`headlessui-menu-item-${n}`,disabled:o=!1,...a}=e,i=da("Menu.Item"),s=ie(i,j=>i.selectors.isActive(j,r)),l=f.useRef(null),u=ue(t,l),c=ie(i,j=>i.selectors.shouldScrollIntoView(j,r));se(()=>{if(c)return Pe().requestAnimationFrame(()=>{var j,K;(K=(j=l.current)==null?void 0:j.scrollIntoView)==null||K.call(j,{block:"nearest"})})},[c,l]);let m=ml(l),p=f.useRef({disabled:o,domRef:l,get textValue(){return m()}});se(()=>{p.current.disabled=o},[p,o]),se(()=>(i.actions.registerItem(r,p),()=>i.actions.unregisterItem(r)),[p,r]);let d=F(()=>{i.send({type:ce.CloseMenu})}),g=F(j=>{if(o)return j.preventDefault();i.send({type:ce.CloseMenu}),Ji(i.state.buttonElement)}),h=F(()=>{if(o)return i.send({type:ce.GoToItem,focus:ne.Nothing});i.send({type:ce.GoToItem,focus:ne.Specific,id:r})}),v=ss(),y=F(j=>v.update(j)),w=F(j=>{v.wasMoved(j)&&(o||s||i.send({type:ce.GoToItem,focus:ne.Specific,id:r,trigger:Wr.Pointer}))}),x=F(j=>{v.wasMoved(j)&&(o||s&&i.state.activationTrigger===Wr.Pointer&&i.send({type:ce.GoToItem,focus:ne.Nothing}))}),[k,S]=$n(),[C,T]=gr(),O=de({active:s,focus:s,disabled:o,close:d}),G={id:r,ref:u,role:"menuitem",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-labelledby":k,"aria-describedby":C,disabled:void 0,onClick:g,onFocus:h,onPointerEnter:y,onMouseEnter:y,onPointerMove:w,onMouseMove:w,onPointerLeave:x,onMouseLeave:x},N=ae();return f.createElement(S,null,f.createElement(T,null,N({ourProps:G,theirProps:a,slot:O,defaultTag:uh,name:"Menu.Item"})))}let fh="div";function dh(e,t){let[n,r]=$n(),o=e,a={ref:t,"aria-labelledby":n,role:"group"},i=ae();return f.createElement(r,null,i({ourProps:a,theirProps:o,slot:{},defaultTag:fh,name:"Menu.Section"}))}let mh="header";function ph(e,t){let n=f.useId(),{id:r=`headlessui-menu-heading-${n}`,...o}=e,a=No();se(()=>a.register(r),[r,a.register]);let i={id:r,ref:t,role:"presentation",...a.props};return ae()({ourProps:i,theirProps:o,slot:{},defaultTag:mh,name:"Menu.Heading"})}let gh="div";function hh(e,t){let n=e,r={ref:t,role:"separator"};return ae()({ourProps:r,theirProps:n,slot:{},defaultTag:gh,name:"Menu.Separator"})}let vh=oe(rh),Cl=oe(ah),Ol=oe(lh),ma=oe(ch),bh=oe(dh),yh=oe(ph),xh=oe(hh),wh=Object.assign(vh,{Button:Cl,Items:Ol,Item:ma,Section:bh,Heading:yh,Separator:xh});var Sh=Object.defineProperty,Eh=(e,t,n)=>t in e?Sh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Al=(e,t,n)=>(Eh(e,typeof t!="symbol"?t+"":t,n),n),be=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(be||{}),kh=(e=>(e[e.OpenPopover=0]="OpenPopover",e[e.ClosePopover=1]="ClosePopover",e[e.SetButton=2]="SetButton",e[e.SetButtonId=3]="SetButtonId",e[e.SetPanel=4]="SetPanel",e[e.SetPanelId=5]="SetPanelId",e))(kh||{});let $h={0:e=>e.popoverState===0?e:{...e,popoverState:0,__demoMode:!1},1(e){return e.popoverState===1?e:{...e,popoverState:1,__demoMode:!1}},2(e,t){return e.button===t.button?e:{...e,button:t.button}},3(e,t){return e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId}},4(e,t){return e.panel===t.panel?e:{...e,panel:t.panel}},5(e,t){return e.panelId===t.panelId?e:{...e,panelId:t.panelId}}},Ph=class Pf extends vr{constructor(t){super(t),Al(this,"actions",{close:()=>this.send({type:1}),refocusableClose:n=>{this.actions.close();let r=n?xe(n)?n:"current"in n&&xe(n.current)?n.current:this.state.button:this.state.button;r?.focus()},open:()=>this.send({type:0}),setButtonId:n=>this.send({type:3,buttonId:n}),setButton:n=>this.send({type:2,button:n}),setPanelId:n=>this.send({type:5,panelId:n}),setPanel:n=>this.send({type:4,panel:n})}),Al(this,"selectors",{isPortalled:n=>{var r;if(!n.button||!n.panel)return!1;let o=(r=dt(n.button))!=null?r:document;for(let m of o.querySelectorAll("body > *"))if(Number(m?.contains(n.button))^Number(m?.contains(n.panel)))return!0;let a=Tn(o),i=a.indexOf(n.button),s=(i+a.length-1)%a.length,l=(i+1)%a.length,u=a[s],c=a[l];return!n.panel.contains(u)&&!n.panel.contains(c)}});{let n=this.state.id,r=Mt.get(null);this.on(0,()=>r.actions.push(n)),this.on(1,()=>r.actions.pop(n))}}static new({id:t,__demoMode:n=!1}){return new Pf({id:t,__demoMode:n,popoverState:n?0:1,buttons:{current:[]},button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:{current:null},afterPanelSentinel:{current:null},afterButtonSentinel:{current:null}})}reduce(t,n){return he(n.type,$h,t,n)}};const Il=f.createContext(null);function Rr(e){let t=f.useContext(Il);if(t===null){let n=new Error(`<${e} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Rr),n}return t}function Nh({id:e,__demoMode:t=!1}){let n=f.useMemo(()=>Ph.new({id:e,__demoMode:t}),[]);return Hn(()=>n.dispose()),n}let pa=f.createContext(null);pa.displayName="PopoverGroupContext";function Tl(){return f.useContext(pa)}let Ur=f.createContext(null);Ur.displayName="PopoverPanelContext";function Ch(){return f.useContext(Ur)}let Oh="div";function Ah(e,t){var n;let r=f.useId(),{__demoMode:o=!1,...a}=e,i=Nh({id:r,__demoMode:o}),s=f.useRef(null),l=ue(t,Mi(M=>{s.current=M})),[u,c,m,p,d]=ie(i,f.useCallback(M=>[M.popoverState,M.button,M.panel,M.buttonId,M.panelId],[])),g=nm((n=s.current)!=null?n:c),h=Ue(p),v=Ue(d),y=f.useMemo(()=>({buttonId:h,panelId:v,close:i.actions.close}),[h,v,i]),w=Tl(),x=w?.registerPopover,k=F(()=>{var M,z;let W=pt((M=s.current)!=null?M:c);return(z=w?.isFocusWithinPopoverGroup())!=null?z:W&&(c?.contains(W)||m?.contains(W))});f.useEffect(()=>x?.(y),[x,y]);let[S,C]=qs(),T=aa(c),O=Zs({mainTreeNode:T,portals:S,defaultContainers:[{get current(){return i.state.button}},{get current(){return i.state.panel}}]});Do(g,"focus",M=>{var z,W,Q,E,U,te;M.target!==window&&_e(M.target)&&i.state.popoverState===be.Open&&(k()||i.state.button&&i.state.panel&&(O.contains(M.target)||(W=(z=i.state.beforePanelSentinel.current)==null?void 0:z.contains)!=null&&W.call(z,M.target)||(E=(Q=i.state.afterPanelSentinel.current)==null?void 0:Q.contains)!=null&&E.call(Q,M.target)||(te=(U=i.state.afterButtonSentinel.current)==null?void 0:U.contains)!=null&&te.call(U,M.target)||i.actions.close()))},!0);let G=u===be.Open;wr(G,O.resolveContainers,(M,z)=>{i.actions.close(),jn(z,Fn.Loose)||(M.preventDefault(),c?.focus())});let N=de({open:u===be.Open,close:i.actions.refocusableClose}),j=ie(i,f.useCallback(M=>he(M.popoverState,{[be.Open]:me.Open,[be.Closed]:me.Closed}),[])),K={ref:l},X=ae();return f.createElement(Mr,{node:T},f.createElement(ta,null,f.createElement(Ur.Provider,{value:null},f.createElement(Il.Provider,{value:i},f.createElement(Co,{value:i.actions.refocusableClose},f.createElement(jr,{value:j},f.createElement(C,null,X({ourProps:K,theirProps:a,slot:N,defaultTag:Oh,name:"Popover"}))))))))}let Ih="button";function Th(e,t){let n=f.useId(),{id:r=`headlessui-popover-button-${n}`,disabled:o=!1,autoFocus:a=!1,...i}=e,s=Rr("Popover.Button"),[l,u,c,m,p,d,g]=ie(s,f.useCallback(I=>[I.popoverState,s.selectors.isPortalled(I),I.button,I.buttonId,I.panel,I.panelId,I.afterButtonSentinel],[])),h=f.useRef(null),v=`headlessui-focus-sentinel-${f.useId()}`,y=Tl(),w=y?.closeOthers,x=Ch()!==null;f.useEffect(()=>{if(!x)return s.actions.setButtonId(r),()=>s.actions.setButtonId(null)},[x,r,s]);let[k]=f.useState(()=>Symbol()),S=ue(h,t,Qo(),F(I=>{if(!x){if(I)s.state.buttons.current.push(k);else{let J=s.state.buttons.current.indexOf(k);J!==-1&&s.state.buttons.current.splice(J,1)}s.state.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),I&&s.actions.setButton(I)}})),C=ue(h,t),T=F(I=>{var J,H,L;if(x){if(s.state.popoverState===be.Closed)return;switch(I.key){case Z.Space:case Z.Enter:I.preventDefault(),(H=(J=I.target).click)==null||H.call(J),s.actions.close(),(L=s.state.button)==null||L.focus();break}}else switch(I.key){case Z.Space:case Z.Enter:I.preventDefault(),I.stopPropagation(),s.state.popoverState===be.Closed?(w?.(s.state.buttonId),s.actions.open()):s.actions.close();break;case Z.Escape:if(s.state.popoverState!==be.Open)return w?.(s.state.buttonId);if(!h.current)return;let fe=pt(h.current);if(fe&&!h.current.contains(fe))return;I.preventDefault(),I.stopPropagation(),s.actions.close();break}}),O=F(I=>{x||I.key===Z.Space&&I.preventDefault()}),G=F(I=>{var J,H;Sn(I.currentTarget)||o||(x?(s.actions.close(),(J=s.state.button)==null||J.focus()):(I.preventDefault(),I.stopPropagation(),s.state.popoverState===be.Closed?(w?.(s.state.buttonId),s.actions.open()):s.actions.close(),(H=s.state.button)==null||H.focus()))}),N=F(I=>{I.preventDefault(),I.stopPropagation()}),{isFocusVisible:j,focusProps:K}=jt({autoFocus:a}),{isHovered:X,hoverProps:M}=Ft({isDisabled:o}),{pressed:z,pressProps:W}=yn({disabled:o}),Q=l===be.Open,E=de({open:Q,active:z||Q,disabled:o,hover:X,focus:j,autofocus:a}),U=Sr(e,c),te=Le(x?{ref:C,type:U,onKeyDown:T,onClick:G,disabled:o||void 0,autoFocus:a}:{ref:S,id:m,type:U,"aria-expanded":l===be.Open,"aria-controls":p?d:void 0,disabled:o||void 0,autoFocus:a,onKeyDown:T,onKeyUp:O,onClick:G,onMouseDown:N},K,M,W),$=sa(),_=F(()=>{if(!xe(s.state.panel))return;let I=s.state.panel;function J(){he($.current,{[Ie.Forwards]:()=>Oe(I,ve.First),[Ie.Backwards]:()=>Oe(I,ve.Last)})===Gt.Error&&Oe(Tn(mt(s.state.button)).filter(H=>H.dataset.headlessuiFocusGuard!=="true"),he($.current,{[Ie.Forwards]:ve.Next,[Ie.Backwards]:ve.Previous}),{relativeTo:s.state.button})}J()}),P=ae();return f.createElement(f.Fragment,null,P({ourProps:te,theirProps:i,slot:E,defaultTag:Ih,name:"Popover.Button"}),Q&&!x&&u&&f.createElement(et,{id:v,ref:g,features:Ge.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:_}))}let Fh="div",jh=je.RenderStrategy|je.Static;function Fl(e,t){let n=f.useId(),{id:r=`headlessui-popover-backdrop-${n}`,transition:o=!1,...a}=e,i=Rr("Popover.Backdrop"),s=ie(i,f.useCallback(y=>y.popoverState,[])),[l,u]=f.useState(null),c=ue(t,u),m=wt(),[p,d]=Ln(o,l,m!==null?(m&me.Open)===me.Open:s===be.Open),g=F(y=>{if(Sn(y.currentTarget))return y.preventDefault();i.actions.close()}),h=de({open:s===be.Open}),v={ref:c,id:r,"aria-hidden":!0,onClick:g,...Mn(d)};return ae()({ourProps:v,theirProps:a,slot:h,defaultTag:Fh,features:jh,visible:p,name:"Popover.Backdrop"})}let Mh="div",Lh=je.RenderStrategy|je.Static;function _h(e,t){let n=f.useId(),{id:r=`headlessui-popover-panel-${n}`,focus:o=!1,anchor:a,portal:i=!1,modal:s=!1,transition:l=!1,...u}=e,c=Rr("Popover.Panel"),m=ie(c,c.selectors.isPortalled),[p,d,g,h,v]=ie(c,f.useCallback(P=>[P.popoverState,P.button,P.__demoMode,P.beforePanelSentinel,P.afterPanelSentinel],[])),y=`headlessui-focus-sentinel-before-${n}`,w=`headlessui-focus-sentinel-after-${n}`,x=f.useRef(null),k=Jo(a),[S,C]=ea(k),T=Zo();k&&(i=!0);let[O,G]=f.useState(null),N=ue(x,t,k?S:null,c.actions.setPanel,G),j=nt(d),K=nt(x.current);se(()=>(c.actions.setPanelId(r),()=>c.actions.setPanelId(null)),[r,c]);let X=wt(),[M,z]=Ln(l,O,X!==null?(X&me.Open)===me.Open:p===be.Open);yr(M,d,c.actions.close),Er(g?!1:s&&M,K);let W=F(P=>{var I;switch(P.key){case Z.Escape:if(c.state.popoverState!==be.Open||!x.current)return;let J=pt(x.current);if(J&&!x.current.contains(J))return;P.preventDefault(),P.stopPropagation(),c.actions.close(),(I=c.state.button)==null||I.focus();break}});f.useEffect(()=>{var P;e.static||p===be.Closed&&((P=e.unmount)==null||P)&&c.actions.setPanel(null)},[p,e.unmount,e.static,c]),f.useEffect(()=>{if(g||!o||p!==be.Open||!x.current)return;let P=pt(x.current);x.current.contains(P)||Oe(x.current,ve.First)},[g,o,x.current,p]);let Q=de({open:p===be.Open,close:c.actions.refocusableClose}),E=Le(k?T():{},{ref:N,id:r,onKeyDown:W,onBlur:o&&p===be.Open?P=>{var I,J,H,L,fe;let ge=P.relatedTarget;ge&&x.current&&((I=x.current)!=null&&I.contains(ge)||(c.actions.close(),((H=(J=h.current)==null?void 0:J.contains)!=null&&H.call(J,ge)||(fe=(L=v.current)==null?void 0:L.contains)!=null&&fe.call(L,ge))&&ge.focus({preventScroll:!0})))}:void 0,tabIndex:-1,style:{...u.style,...C,"--button-width":Oo(M,d,!0).width},...Mn(z)}),U=sa(),te=F(()=>{let P=x.current;if(!P)return;function I(){he(U.current,{[Ie.Forwards]:()=>{var J;Oe(P,ve.First)===Gt.Error&&((J=c.state.afterPanelSentinel.current)==null||J.focus())},[Ie.Backwards]:()=>{var J;(J=c.state.button)==null||J.focus({preventScroll:!0})}})}I()}),$=F(()=>{let P=x.current;if(!P)return;function I(){he(U.current,{[Ie.Forwards]:()=>{var J;if(!c.state.button)return;let H=(J=mt(c.state.button))!=null?J:document.body,L=Tn(H),fe=L.indexOf(c.state.button),ge=L.slice(0,fe+1),Be=[...L.slice(fe+1),...ge];for(let Rt of Be.slice())if(Rt.dataset.headlessuiFocusGuard==="true"||O!=null&&O.contains(Rt)){let Ut=Be.indexOf(Rt);Ut!==-1&&Be.splice(Ut,1)}Oe(Be,ve.First,{sorted:!1})},[Ie.Backwards]:()=>{var J;Oe(P,ve.Previous)===Gt.Error&&((J=c.state.button)==null||J.focus())}})}I()}),_=ae();return f.createElement(Us,null,f.createElement(Ur.Provider,{value:r},f.createElement(Co,{value:c.actions.refocusableClose},f.createElement(Wn,{enabled:i?e.static||M:!1,ownerDocument:j},M&&m&&f.createElement(et,{id:y,ref:h,features:Ge.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:te}),_({ourProps:E,theirProps:u,slot:Q,defaultTag:Mh,features:Lh,visible:M,name:"Popover.Panel"}),M&&m&&f.createElement(et,{id:w,ref:v,features:Ge.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:$})))))}let Dh="div";function zh(e,t){let n=f.useRef(null),r=ue(n,t),[o,a]=f.useState([]),i=F(h=>{a(v=>{let y=v.indexOf(h);if(y!==-1){let w=v.slice();return w.splice(y,1),w}return v})}),s=F(h=>(a(v=>[...v,h]),()=>i(h))),l=F(()=>{var h;let v=mt(n.current);if(!v)return!1;let y=pt(n.current);return(h=n.current)!=null&&h.contains(y)?!0:o.some(w=>{var x,k;return((x=v.getElementById(w.buttonId.current))==null?void 0:x.contains(y))||((k=v.getElementById(w.panelId.current))==null?void 0:k.contains(y))})}),u=F(h=>{for(let v of o)v.buttonId.current!==h&&v.close()}),c=f.useMemo(()=>({registerPopover:s,unregisterPopover:i,isFocusWithinPopoverGroup:l,closeOthers:u}),[s,i,l,u]),m=de({}),p=e,d={ref:r},g=ae();return f.createElement(Mr,null,f.createElement(pa.Provider,{value:c},g({ourProps:d,theirProps:p,slot:m,defaultTag:Dh,name:"Popover.Group"})))}let Vh=oe(Ah),Gr=oe(Th),Bh=oe(Fl),Hh=oe(Fl),ga=oe(_h),Wh=oe(zh),jl=Object.assign(Vh,{Button:Gr,Backdrop:Hh,Overlay:Bh,Panel:ga,Group:Wh}),ha=f.createContext(null);ha.displayName="GroupContext";let Rh=f.Fragment;function Uh(e){var t;let[n,r]=f.useState(null),[o,a]=$n(),[i,s]=gr(),l=f.useMemo(()=>({switch:n,setSwitch:r}),[n,r]),u={},c=e,m=ae();return f.createElement(s,{name:"Switch.Description",value:i},f.createElement(a,{name:"Switch.Label",value:o,props:{htmlFor:(t=l.switch)==null?void 0:t.id,onClick(p){n&&(Po(p.currentTarget)&&p.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},f.createElement(ha.Provider,{value:l},m({ourProps:u,theirProps:c,slot:{},defaultTag:Rh,name:"Switch.Group"}))))}let Gh="button";function Yh(e,t){var n;let r=f.useId(),o=wn(),a=gt(),{id:i=o||`headlessui-switch-${r}`,disabled:s=a||!1,checked:l,defaultChecked:u,onChange:c,name:m,value:p,form:d,autoFocus:g=!1,...h}=e,v=f.useContext(ha),[y,w]=f.useState(null),x=f.useRef(null),k=ue(x,t,v===null?null:v.setSwitch,w),S=Ei(u),[C,T]=Si(l,c,S??!1),O=Re(),[G,N]=f.useState(!1),j=F(()=>{N(!0),T?.(!C),O.nextFrame(()=>{N(!1)})}),K=F(L=>{if(Sn(L.currentTarget))return L.preventDefault();L.preventDefault(),j()}),X=F(L=>{L.key===Z.Space?(L.preventDefault(),j()):L.key===Z.Enter&&Ni(L.currentTarget)}),M=F(L=>L.preventDefault()),z=kn(),W=pr(),{isFocusVisible:Q,focusProps:E}=jt({autoFocus:g}),{isHovered:U,hoverProps:te}=Ft({isDisabled:s}),{pressed:$,pressProps:_}=yn({disabled:s}),P=de({checked:C,disabled:s,hover:U,focus:Q,active:$,autofocus:g,changing:G}),I=Le({id:i,ref:k,role:"switch",type:Sr(e,y),tabIndex:e.tabIndex===-1?0:(n=e.tabIndex)!=null?n:0,"aria-checked":C,"aria-labelledby":z,"aria-describedby":W,disabled:s||void 0,autoFocus:g,onClick:K,onKeyUp:X,onKeyPress:M},E,te,_),J=f.useCallback(()=>{if(S!==void 0)return T?.(S)},[T,S]),H=ae();return f.createElement(f.Fragment,null,m!=null&&f.createElement(Oi,{disabled:s,data:{[m]:p||"on"},overrides:{type:"checkbox",checked:C},form:d,onReset:J}),H({ourProps:I,theirProps:h,slot:P,defaultTag:Gh,name:"Switch"}))}let Kh=oe(Yh),Xh=Uh,qh=Pn,Jh=En,Qh=Object.assign(Kh,{Group:Xh,Label:qh,Description:Jh}),Zh="textarea";function ev(e,t){let n=f.useId(),r=wn(),o=gt(),{id:a=r||`headlessui-textarea-${n}`,disabled:i=o||!1,autoFocus:s=!1,invalid:l=!1,...u}=e,c=kn(),m=pr(),{isFocused:p,focusProps:d}=jt({autoFocus:s}),{isHovered:g,hoverProps:h}=Ft({isDisabled:i}),v=Le({ref:t,id:a,"aria-labelledby":c,"aria-describedby":m,"aria-invalid":l?"true":void 0,disabled:i||void 0,autoFocus:s},d,h),y=de({disabled:i,invalid:l,hover:g,focus:p,autofocus:s});return ae()({ourProps:v,theirProps:u,slot:y,defaultTag:Zh,name:"Textarea"})}let tv=oe(ev);const Ml=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ll=ci,le=(e,t)=>n=>{var r;if(t?.variants==null)return Ll(e,n?.class,n?.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(u=>{const c=n?.[u],m=a?.[u];if(c===null)return null;const p=Ml(c)||Ml(m);return o[u][p]}),s=n&&Object.entries(n).reduce((u,c)=>{let[m,p]=c;return p===void 0||(u[m]=p),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:m,className:p,...d}=c;return Object.entries(d).every(g=>{let[h,v]=g;return Array.isArray(v)?v.includes({...a,...s}[h]):{...a,...s}[h]===v})?[...u,m,p]:u},[]);return Ll(e,i,l,n?.class,n?.className)},nv=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},rv=(e,t)=>({classGroupId:e,validator:t}),_l=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Yr="-",Dl=[],ov="arbitrary..",av=e=>{const t=sv(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return iv(i);const s=i.split(Yr),l=s[0]===""&&s.length>1?1:0;return zl(s,l,t)},getConflictingClassGroupIds:(i,s)=>{if(s){const l=r[i],u=n[i];return l?u?nv(u,l):l:u||Dl}return n[i]||Dl}}},zl=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],a=n.nextPart.get(o);if(a){const u=zl(e,t+1,a);if(u)return u}const i=n.validators;if(i===null)return;const s=t===0?e.join(Yr):e.slice(t).join(Yr),l=i.length;for(let u=0;u<l;u++){const c=i[u];if(c.validator(s))return c.classGroupId}},iv=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?ov+r:void 0})(),sv=e=>{const{theme:t,classGroups:n}=e;return lv(n,t)},lv=(e,t)=>{const n=_l();for(const r in e){const o=e[r];va(o,n,r,t)}return n},va=(e,t,n,r)=>{const o=e.length;for(let a=0;a<o;a++){const i=e[a];uv(i,t,n,r)}},uv=(e,t,n,r)=>{if(typeof e=="string"){cv(e,t,n);return}if(typeof e=="function"){fv(e,t,n,r);return}dv(e,t,n,r)},cv=(e,t,n)=>{const r=e===""?t:Vl(t,e);r.classGroupId=n},fv=(e,t,n,r)=>{if(mv(e)){va(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(rv(n,e))},dv=(e,t,n,r)=>{const o=Object.entries(e),a=o.length;for(let i=0;i<a;i++){const[s,l]=o[i];va(l,Vl(t,s),n,r)}},Vl=(e,t)=>{let n=e;const r=t.split(Yr),o=r.length;for(let a=0;a<o;a++){const i=r[a];let s=n.nextPart.get(i);s||(s=_l(),n.nextPart.set(i,s)),n=s}return n},mv=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,pv=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(a,i)=>{n[a]=i,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let i=n[a];if(i!==void 0)return i;if((i=r[a])!==void 0)return o(a,i),i},set(a,i){a in n?n[a]=i:o(a,i)}}},ba="!",Bl=":",gv=[],Hl=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),hv=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let i=0,s=0,l=0,u;const c=o.length;for(let h=0;h<c;h++){const v=o[h];if(i===0&&s===0){if(v===Bl){a.push(o.slice(l,h)),l=h+1;continue}if(v==="/"){u=h;continue}}v==="["?i++:v==="]"?i--:v==="("?s++:v===")"&&s--}const m=a.length===0?o:o.slice(l);let p=m,d=!1;m.endsWith(ba)?(p=m.slice(0,-1),d=!0):m.startsWith(ba)&&(p=m.slice(1),d=!0);const g=u&&u>l?u-l:void 0;return Hl(a,d,p,g)};if(t){const o=t+Bl,a=r;r=i=>i.startsWith(o)?a(i.slice(o.length)):Hl(gv,!1,i,void 0,!0)}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},vv=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let a=0;a<n.length;a++){const i=n[a],s=i[0]==="[",l=t.has(i);s||l?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(i)):o.push(i)}return o.length>0&&(o.sort(),r.push(...o)),r}},bv=e=>({cache:pv(e.cacheSize),parseClassName:hv(e),sortModifiers:vv(e),...av(e)}),yv=/\s+/,xv=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(yv);let l="";for(let u=s.length-1;u>=0;u-=1){const c=s[u],{isExternal:m,modifiers:p,hasImportantModifier:d,baseClassName:g,maybePostfixModifierPosition:h}=n(c);if(m){l=c+(l.length>0?" "+l:l);continue}let v=!!h,y=r(v?g.substring(0,h):g);if(!y){if(!v){l=c+(l.length>0?" "+l:l);continue}if(y=r(g),!y){l=c+(l.length>0?" "+l:l);continue}v=!1}const w=p.length===0?"":p.length===1?p[0]:a(p).join(":"),x=d?w+ba:w,k=x+y;if(i.indexOf(k)>-1)continue;i.push(k);const S=o(y,v);for(let C=0;C<S.length;++C){const T=S[C];i.push(x+T)}l=c+(l.length>0?" "+l:l)}return l},wv=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=Wl(n))&&(o&&(o+=" "),o+=r);return o},Wl=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Wl(e[r]))&&(n&&(n+=" "),n+=t);return n},Sv=(e,...t)=>{let n,r,o,a;const i=l=>{const u=t.reduce((c,m)=>m(c),e());return n=bv(u),r=n.cache.get,o=n.cache.set,a=s,s(l)},s=l=>{const u=r(l);if(u)return u;const c=xv(l,n);return o(l,c),c};return a=i,(...l)=>a(wv(...l))},Ev=[],ye=e=>{const t=n=>n[e]||Ev;return t.isThemeGetter=!0,t},Rl=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ul=/^\((?:(\w[\w-]*):)?(.+)\)$/i,kv=/^\d+\/\d+$/,$v=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pv=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Nv=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Cv=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ov=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,en=e=>kv.test(e),re=e=>!!e&&!Number.isNaN(Number(e)),Pt=e=>!!e&&Number.isInteger(Number(e)),ya=e=>e.endsWith("%")&&re(e.slice(0,-1)),ot=e=>$v.test(e),Av=()=>!0,Iv=e=>Pv.test(e)&&!Nv.test(e),Gl=()=>!1,Tv=e=>Cv.test(e),Fv=e=>Ov.test(e),jv=e=>!V(e)&&!B(e),Mv=e=>tn(e,Jl,Gl),V=e=>Rl.test(e),Vt=e=>tn(e,Ql,Iv),xa=e=>tn(e,Vv,re),Yl=e=>tn(e,Xl,Gl),Lv=e=>tn(e,ql,Fv),Kr=e=>tn(e,Zl,Tv),B=e=>Ul.test(e),Gn=e=>nn(e,Ql),_v=e=>nn(e,Bv),Kl=e=>nn(e,Xl),Dv=e=>nn(e,Jl),zv=e=>nn(e,ql),Xr=e=>nn(e,Zl,!0),tn=(e,t,n)=>{const r=Rl.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},nn=(e,t,n=!1)=>{const r=Ul.exec(e);return r?r[1]?t(r[1]):n:!1},Xl=e=>e==="position"||e==="percentage",ql=e=>e==="image"||e==="url",Jl=e=>e==="length"||e==="size"||e==="bg-size",Ql=e=>e==="length",Vv=e=>e==="number",Bv=e=>e==="family-name",Zl=e=>e==="shadow",Hv=Sv(()=>{const e=ye("color"),t=ye("font"),n=ye("text"),r=ye("font-weight"),o=ye("tracking"),a=ye("leading"),i=ye("breakpoint"),s=ye("container"),l=ye("spacing"),u=ye("radius"),c=ye("shadow"),m=ye("inset-shadow"),p=ye("text-shadow"),d=ye("drop-shadow"),g=ye("blur"),h=ye("perspective"),v=ye("aspect"),y=ye("ease"),w=ye("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...k(),B,V],C=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],O=()=>[B,V,l],G=()=>[en,"full","auto",...O()],N=()=>[Pt,"none","subgrid",B,V],j=()=>["auto",{span:["full",Pt,B,V]},Pt,B,V],K=()=>[Pt,"auto",B,V],X=()=>["auto","min","max","fr",B,V],M=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],W=()=>["auto",...O()],Q=()=>[en,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],E=()=>[e,B,V],U=()=>[...k(),Kl,Yl,{position:[B,V]}],te=()=>["no-repeat",{repeat:["","x","y","space","round"]}],$=()=>["auto","cover","contain",Dv,Mv,{size:[B,V]}],_=()=>[ya,Gn,Vt],P=()=>["","none","full",u,B,V],I=()=>["",re,Gn,Vt],J=()=>["solid","dashed","dotted","double"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],L=()=>[re,ya,Kl,Yl],fe=()=>["","none",g,B,V],ge=()=>["none",re,B,V],Be=()=>["none",re,B,V],Rt=()=>[re,B,V],Ut=()=>[en,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ot],breakpoint:[ot],color:[Av],container:[ot],"drop-shadow":[ot],ease:["in","out","in-out"],font:[jv],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ot],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ot],shadow:[ot],spacing:["px",re],text:[ot],"text-shadow":[ot],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",en,V,B,v]}],container:["container"],columns:[{columns:[re,V,B,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{start:G()}],end:[{end:G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[Pt,"auto",B,V]}],basis:[{basis:[en,"full","auto",s,...O()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[re,en,"auto","initial","none",V]}],grow:[{grow:["",re,B,V]}],shrink:[{shrink:["",re,B,V]}],order:[{order:[Pt,"first","last","none",B,V]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:j()}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":X()}],"auto-rows":[{"auto-rows":X()}],gap:[{gap:O()}],"gap-x":[{"gap-x":O()}],"gap-y":[{"gap-y":O()}],"justify-content":[{justify:[...M(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...M()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":M()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:O()}],px:[{px:O()}],py:[{py:O()}],ps:[{ps:O()}],pe:[{pe:O()}],pt:[{pt:O()}],pr:[{pr:O()}],pb:[{pb:O()}],pl:[{pl:O()}],m:[{m:W()}],mx:[{mx:W()}],my:[{my:W()}],ms:[{ms:W()}],me:[{me:W()}],mt:[{mt:W()}],mr:[{mr:W()}],mb:[{mb:W()}],ml:[{ml:W()}],"space-x":[{"space-x":O()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":O()}],"space-y-reverse":["space-y-reverse"],size:[{size:Q()}],w:[{w:[s,"screen",...Q()]}],"min-w":[{"min-w":[s,"screen","none",...Q()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...Q()]}],h:[{h:["screen","lh",...Q()]}],"min-h":[{"min-h":["screen","lh","none",...Q()]}],"max-h":[{"max-h":["screen","lh",...Q()]}],"font-size":[{text:["base",n,Gn,Vt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,B,xa]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ya,V]}],"font-family":[{font:[_v,V,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,B,V]}],"line-clamp":[{"line-clamp":[re,"none",B,xa]}],leading:[{leading:[a,...O()]}],"list-image":[{"list-image":["none",B,V]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",B,V]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:E()}],"text-color":[{text:E()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[re,"from-font","auto",B,Vt]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[re,"auto",B,V]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",B,V]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",B,V]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:U()}],"bg-repeat":[{bg:te()}],"bg-size":[{bg:$()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Pt,B,V],radial:["",B,V],conic:[Pt,B,V]},zv,Lv]}],"bg-color":[{bg:E()}],"gradient-from-pos":[{from:_()}],"gradient-via-pos":[{via:_()}],"gradient-to-pos":[{to:_()}],"gradient-from":[{from:E()}],"gradient-via":[{via:E()}],"gradient-to":[{to:E()}],rounded:[{rounded:P()}],"rounded-s":[{"rounded-s":P()}],"rounded-e":[{"rounded-e":P()}],"rounded-t":[{"rounded-t":P()}],"rounded-r":[{"rounded-r":P()}],"rounded-b":[{"rounded-b":P()}],"rounded-l":[{"rounded-l":P()}],"rounded-ss":[{"rounded-ss":P()}],"rounded-se":[{"rounded-se":P()}],"rounded-ee":[{"rounded-ee":P()}],"rounded-es":[{"rounded-es":P()}],"rounded-tl":[{"rounded-tl":P()}],"rounded-tr":[{"rounded-tr":P()}],"rounded-br":[{"rounded-br":P()}],"rounded-bl":[{"rounded-bl":P()}],"border-w":[{border:I()}],"border-w-x":[{"border-x":I()}],"border-w-y":[{"border-y":I()}],"border-w-s":[{"border-s":I()}],"border-w-e":[{"border-e":I()}],"border-w-t":[{"border-t":I()}],"border-w-r":[{"border-r":I()}],"border-w-b":[{"border-b":I()}],"border-w-l":[{"border-l":I()}],"divide-x":[{"divide-x":I()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":I()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:E()}],"border-color-x":[{"border-x":E()}],"border-color-y":[{"border-y":E()}],"border-color-s":[{"border-s":E()}],"border-color-e":[{"border-e":E()}],"border-color-t":[{"border-t":E()}],"border-color-r":[{"border-r":E()}],"border-color-b":[{"border-b":E()}],"border-color-l":[{"border-l":E()}],"divide-color":[{divide:E()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[re,B,V]}],"outline-w":[{outline:["",re,Gn,Vt]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","none",c,Xr,Kr]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",m,Xr,Kr]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[re,Vt]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":I()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",p,Xr,Kr]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[re,B,V]}],"mix-blend":[{"mix-blend":[...H(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":H()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[re]}],"mask-image-linear-from-pos":[{"mask-linear-from":L()}],"mask-image-linear-to-pos":[{"mask-linear-to":L()}],"mask-image-linear-from-color":[{"mask-linear-from":E()}],"mask-image-linear-to-color":[{"mask-linear-to":E()}],"mask-image-t-from-pos":[{"mask-t-from":L()}],"mask-image-t-to-pos":[{"mask-t-to":L()}],"mask-image-t-from-color":[{"mask-t-from":E()}],"mask-image-t-to-color":[{"mask-t-to":E()}],"mask-image-r-from-pos":[{"mask-r-from":L()}],"mask-image-r-to-pos":[{"mask-r-to":L()}],"mask-image-r-from-color":[{"mask-r-from":E()}],"mask-image-r-to-color":[{"mask-r-to":E()}],"mask-image-b-from-pos":[{"mask-b-from":L()}],"mask-image-b-to-pos":[{"mask-b-to":L()}],"mask-image-b-from-color":[{"mask-b-from":E()}],"mask-image-b-to-color":[{"mask-b-to":E()}],"mask-image-l-from-pos":[{"mask-l-from":L()}],"mask-image-l-to-pos":[{"mask-l-to":L()}],"mask-image-l-from-color":[{"mask-l-from":E()}],"mask-image-l-to-color":[{"mask-l-to":E()}],"mask-image-x-from-pos":[{"mask-x-from":L()}],"mask-image-x-to-pos":[{"mask-x-to":L()}],"mask-image-x-from-color":[{"mask-x-from":E()}],"mask-image-x-to-color":[{"mask-x-to":E()}],"mask-image-y-from-pos":[{"mask-y-from":L()}],"mask-image-y-to-pos":[{"mask-y-to":L()}],"mask-image-y-from-color":[{"mask-y-from":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[B,V]}],"mask-image-radial-from-pos":[{"mask-radial-from":L()}],"mask-image-radial-to-pos":[{"mask-radial-to":L()}],"mask-image-radial-from-color":[{"mask-radial-from":E()}],"mask-image-radial-to-color":[{"mask-radial-to":E()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[re]}],"mask-image-conic-from-pos":[{"mask-conic-from":L()}],"mask-image-conic-to-pos":[{"mask-conic-to":L()}],"mask-image-conic-from-color":[{"mask-conic-from":E()}],"mask-image-conic-to-color":[{"mask-conic-to":E()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:U()}],"mask-repeat":[{mask:te()}],"mask-size":[{mask:$()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",B,V]}],filter:[{filter:["","none",B,V]}],blur:[{blur:fe()}],brightness:[{brightness:[re,B,V]}],contrast:[{contrast:[re,B,V]}],"drop-shadow":[{"drop-shadow":["","none",d,Xr,Kr]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",re,B,V]}],"hue-rotate":[{"hue-rotate":[re,B,V]}],invert:[{invert:["",re,B,V]}],saturate:[{saturate:[re,B,V]}],sepia:[{sepia:["",re,B,V]}],"backdrop-filter":[{"backdrop-filter":["","none",B,V]}],"backdrop-blur":[{"backdrop-blur":fe()}],"backdrop-brightness":[{"backdrop-brightness":[re,B,V]}],"backdrop-contrast":[{"backdrop-contrast":[re,B,V]}],"backdrop-grayscale":[{"backdrop-grayscale":["",re,B,V]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[re,B,V]}],"backdrop-invert":[{"backdrop-invert":["",re,B,V]}],"backdrop-opacity":[{"backdrop-opacity":[re,B,V]}],"backdrop-saturate":[{"backdrop-saturate":[re,B,V]}],"backdrop-sepia":[{"backdrop-sepia":["",re,B,V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":O()}],"border-spacing-x":[{"border-spacing-x":O()}],"border-spacing-y":[{"border-spacing-y":O()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",B,V]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[re,"initial",B,V]}],ease:[{ease:["linear","initial",y,B,V]}],delay:[{delay:[re,B,V]}],animate:[{animate:["none",w,B,V]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,B,V]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:ge()}],"rotate-x":[{"rotate-x":ge()}],"rotate-y":[{"rotate-y":ge()}],"rotate-z":[{"rotate-z":ge()}],scale:[{scale:Be()}],"scale-x":[{"scale-x":Be()}],"scale-y":[{"scale-y":Be()}],"scale-z":[{"scale-z":Be()}],"scale-3d":["scale-3d"],skew:[{skew:Rt()}],"skew-x":[{"skew-x":Rt()}],"skew-y":[{"skew-y":Rt()}],transform:[{transform:[B,V,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ut()}],"translate-x":[{"translate-x":Ut()}],"translate-y":[{"translate-y":Ut()}],"translate-z":[{"translate-z":Ut()}],"translate-none":["translate-none"],accent:[{accent:E()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:E()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",B,V]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",B,V]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[re,Gn,Vt,xa]}],stroke:[{stroke:["none",...E()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function D(...e){return Hv(ci(e))}const eu=le("relative inline-flex items-center justify-center overflow-hidden font-semibold border transition-colors focus:outline-hidden select-none shrink-0",{variants:{size:{xs:"h-6 w-6 text-[10px]",sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base",xl:"h-16 w-16 text-xl"},colorScheme:{primary:"bg-primary-100 text-primary-700 border-primary-200",orange:"bg-orange-100 text-orange-700 border-orange-200",teal:"bg-teal-100 text-teal-700 border-teal-200",purple:"bg-purple-100 text-purple-700 border-purple-200",amber:"bg-amber-100 text-amber-700 border-amber-200",success:"bg-success-100 text-success-700 border-success-200",error:"bg-error-100 text-error-700 border-error-200",neutral:"bg-gray-100 text-gray-700 border-gray-200"},shape:{circle:"rounded-full",square:"rounded-md"}},defaultVariants:{size:"md",colorScheme:"primary",shape:"circle"}}),wa=f.forwardRef(({className:e,size:t,colorScheme:n,shape:r,initials:o,src:a,alt:i,title:s,...l},u)=>{const[c,m]=f.useState(!1),p=a&&!c,d=b.jsx("div",{ref:u,className:D(eu({size:t,colorScheme:n,shape:r}),e),...l,children:p?b.jsx("img",{src:a,alt:i||"Avatar",className:"h-full w-full object-cover",onError:()=>m(!0)}):b.jsx("span",{className:"leading-none uppercase",children:o?.slice(0,2)})});return s?b.jsxs(jl,{className:"relative inline-flex",children:[b.jsx(Gr,{as:"div",className:"outline-none cursor-pointer",children:d}),b.jsx(ga,{anchor:"bottom",className:D("z-50 mt-2 rounded-md bg-gray-800 px-3 py-1.5 text-xs text-white shadow-md ring-1 ring-white/10","transition duration-200 ease-in-out data-closed:opacity-0 data-closed:translate-y-1"),children:s})]}):d});wa.displayName="Avatar";const tu=le("inline-flex items-center justify-center font-medium transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 border",{variants:{variant:{primary:"border-primary-200 text-primary-700",orange:"border-orange-200 text-orange-700",teal:"border-teal-200 text-teal-700",purple:"border-purple-200 text-purple-700",amber:"border-amber-200 text-amber-700",success:"border-success-200 text-success-700",error:"border-error-200 text-error-700",neutral:"border-gray-200 text-gray-700"},fill:{soft:"",solid:"border-transparent text-white",outline:"bg-transparent"},statusBadge:{true:"rounded-full justify-center",false:"rounded-md"},size:{xs:"text-[10px] px-1.5 py-0.5 h-5 gap-x-1",sm:"text-xs px-2.5 py-0.5 h-6 gap-x-1.5",md:"text-sm px-3 py-1 h-7 gap-x-2"}},compoundVariants:[{fill:"soft",variant:"primary",className:"bg-primary-500/15"},{fill:"soft",variant:"orange",className:"bg-orange-500/15"},{fill:"soft",variant:"teal",className:"bg-teal-500/15"},{fill:"soft",variant:"purple",className:"bg-purple-500/15"},{fill:"soft",variant:"amber",className:"bg-amber-500/15"},{fill:"soft",variant:"success",className:"bg-success-500/15"},{fill:"soft",variant:"error",className:"bg-error-500/15"},{fill:"soft",variant:"neutral",className:"bg-gray-500/15"},{fill:"solid",variant:"primary",className:"bg-primary-500 hover:bg-primary-600"},{fill:"solid",variant:"orange",className:"bg-orange-500 hover:bg-orange-600"},{fill:"solid",variant:"teal",className:"bg-teal-500 hover:bg-teal-600"},{fill:"solid",variant:"purple",className:"bg-purple-500 hover:bg-purple-600"},{fill:"solid",variant:"amber",className:"bg-amber-500 hover:bg-amber-600"},{fill:"solid",variant:"success",className:"bg-success-500 hover:bg-success-600"},{fill:"solid",variant:"error",className:"bg-error-500 hover:bg-error-600"},{fill:"solid",variant:"neutral",className:"bg-gray-500 hover:bg-gray-600 text-white"},{statusBadge:!0,size:"xs",className:"min-w-[1.25rem] h-5 px-1"},{statusBadge:!0,size:"sm",className:"min-w-[1.5rem] h-6 px-1.5"},{statusBadge:!0,size:"md",className:"min-w-[1.75rem] h-7 px-2"}],defaultVariants:{variant:"primary",fill:"soft",size:"sm",statusBadge:!1}}),qr=R.forwardRef(({className:e,variant:t,statusBadge:n,size:r,fill:o,leftIcon:a,rightIcon:i,children:s,...l},u)=>b.jsxs("span",{ref:u,className:D(tu({variant:t,statusBadge:n,size:r,fill:o}),e),...l,children:[a&&b.jsx("span",{className:"flex items-center justify-center opacity-70",children:a}),s,i&&b.jsx("span",{className:"flex items-center justify-center opacity-70",children:i})]}));qr.displayName="Badge";const Wv=le("animate-spin rounded-full border-b-2 border-t-2",{variants:{size:{sm:"h-4 w-4 border-2",md:"h-6 w-6 border-2",lg:"h-8 w-8 border-3"}},defaultVariants:{size:"md"}}),nu=({size:e,className:t})=>b.jsx("div",{className:D(Wv({size:e}),"border-current border-r-transparent border-l-transparent",t),role:"status","aria-label":"loading"}),ru=le("inline-flex items-center justify-center cursor-pointer whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"border border-transparent shadow-sm",soft:"border-transparent shadow-none",outline:"border bg-transparent shadow-sm",ghost:"border border-transparent bg-transparent",link:"bg-transparent underline-offset-4 hover:underline"},colorScheme:{primary:"",orange:"",teal:"",purple:"",amber:"",success:"",error:"",neutral:""},size:{sm:"h-9 rounded-md px-3",default:"h-10 px-4 py-2",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},compoundVariants:[{variant:"solid",colorScheme:"primary",className:"bg-primary-600 text-white hover:bg-primary-700"},{variant:"solid",colorScheme:"orange",className:"bg-orange-500 text-white hover:bg-orange-600"},{variant:"solid",colorScheme:"teal",className:"bg-teal-500 text-white hover:bg-teal-600"},{variant:"solid",colorScheme:"purple",className:"bg-purple-500 text-white hover:bg-purple-600"},{variant:"solid",colorScheme:"amber",className:"bg-amber-400 text-black hover:bg-amber-500"},{variant:"solid",colorScheme:"success",className:"bg-success-600 text-white hover:bg-success-700"},{variant:"solid",colorScheme:"error",className:"bg-error-600 text-white hover:bg-error-700"},{variant:"solid",colorScheme:"neutral",className:"bg-gray-600 text-white hover:bg-gray-700"},{variant:"soft",colorScheme:"primary",className:"bg-primary-100 text-primary-700 hover:bg-primary-200"},{variant:"soft",colorScheme:"orange",className:"bg-orange-100 text-orange-700 hover:bg-orange-200"},{variant:"soft",colorScheme:"teal",className:"bg-teal-100 text-teal-700 hover:bg-teal-200"},{variant:"soft",colorScheme:"purple",className:"bg-purple-100 text-purple-700 hover:bg-purple-200"},{variant:"soft",colorScheme:"amber",className:"bg-amber-100 text-amber-800 hover:bg-amber-200"},{variant:"soft",colorScheme:"success",className:"bg-success-100 text-success-800 hover:bg-success-200"},{variant:"soft",colorScheme:"error",className:"bg-error-100 text-error-800 hover:bg-error-200"},{variant:"soft",colorScheme:"neutral",className:"bg-gray-100 text-gray-800 hover:bg-gray-200"},{variant:"outline",colorScheme:"primary",className:"border-primary-500 text-primary-500 hover:bg-primary-50"},{variant:"outline",colorScheme:"orange",className:"border-orange-500 text-orange-500 hover:bg-orange-50"},{variant:"outline",colorScheme:"teal",className:"border-teal-500 text-teal-500 hover:bg-teal-50"},{variant:"outline",colorScheme:"purple",className:"border-purple-500 text-purple-500 hover:bg-purple-50"},{variant:"outline",colorScheme:"amber",className:"border-amber-500 text-amber-600 hover:bg-amber-50"},{variant:"outline",colorScheme:"success",className:"border-success-500 text-success-600 hover:bg-success-50"},{variant:"outline",colorScheme:"error",className:"border-error-500 text-error-600 hover:bg-error-50"},{variant:"outline",colorScheme:"neutral",className:"border-gray-300 text-gray-700 hover:bg-gray-100"},{variant:"ghost",colorScheme:"primary",className:"text-primary-500 hover:bg-primary-50 hover:text-primary-600"},{variant:"ghost",colorScheme:"orange",className:"text-orange-500 hover:bg-orange-50 hover:text-orange-600"},{variant:"ghost",colorScheme:"teal",className:"text-teal-500 hover:bg-teal-50 hover:text-teal-600"},{variant:"ghost",colorScheme:"purple",className:"text-purple-500 hover:bg-purple-50 hover:text-purple-600"},{variant:"ghost",colorScheme:"amber",className:"text-amber-600 hover:bg-amber-50 hover:text-amber-700"},{variant:"ghost",colorScheme:"success",className:"text-success-600 hover:bg-success-50 hover:text-success-700"},{variant:"ghost",colorScheme:"error",className:"text-error-600 hover:bg-error-50 hover:text-error-700"},{variant:"ghost",colorScheme:"neutral",className:"text-gray-600 hover:bg-gray-100 hover:text-gray-900"},{variant:"link",colorScheme:"primary",className:"text-primary-500 hover:text-primary-700"},{variant:"link",colorScheme:"orange",className:"text-orange-500 hover:text-orange-700"},{variant:"link",colorScheme:"teal",className:"text-teal-500 hover:text-teal-700"},{variant:"link",colorScheme:"purple",className:"text-purple-500 hover:text-purple-700"},{variant:"link",colorScheme:"amber",className:"text-amber-600 hover:text-amber-800"},{variant:"link",colorScheme:"success",className:"text-success-600 hover:text-success-800"},{variant:"link",colorScheme:"error",className:"text-error-600 hover:text-error-800"},{variant:"link",colorScheme:"neutral",className:"text-gray-500 hover:text-gray-900"}],defaultVariants:{colorScheme:"primary",variant:"solid",size:"default"}}),rn=f.forwardRef(({className:e,colorScheme:t,variant:n,size:r,isLoading:o=!1,startIcon:a,endIcon:i,disabled:s,children:l,...u},c)=>{const m=s||o;return b.jsxs(gd,{className:D(ru({colorScheme:t,variant:n,size:r}),e),ref:c,disabled:m,...u,children:[o&&b.jsx("span",{className:"mr-2 flex items-center",children:b.jsx(nu,{size:"sm",className:"text-current"})}),!o&&a&&b.jsx("span",{className:"mr-2 inline-flex shrink-0 items-center",children:a}),l,!o&&i&&b.jsx("span",{className:"ml-2 inline-flex shrink-0 items-center",children:i})]})});rn.displayName="Button";const ou=le("relative w-full overflow-hidden rounded-xl text-gray-900 transition-all",{variants:{variant:{default:"bg-white border border-gray-200 shadow-sm",filled:"bg-gray-300 border-transparent shadow-none",ghost:"bg-gray-50 border-none shadow-none"},padding:{none:"p-0",sm:"p-4",md:"p-6",lg:"p-8"}},defaultVariants:{variant:"default",padding:"md"}}),au=f.forwardRef(({className:e,variant:t,padding:n,branded:r=!1,brandColorTop:o,brandColorBottom:a,children:i,...s},l)=>b.jsxs("div",{ref:l,className:D(ou({variant:t,padding:n}),e),...s,children:[r&&b.jsx("div",{className:D("absolute top-0 left-0 right-0 h-1 z-10",!o&&"bg-orange-500"),style:o?{backgroundColor:o}:void 0}),i,r&&b.jsx("div",{className:D("absolute bottom-0 left-0 right-0 h-1 z-10",!a&&"bg-primary-500"),style:a?{backgroundColor:a}:void 0})]}));au.displayName="Card";function Sa(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Rv(e){if(Array.isArray(e))return e}function Uv(e){if(Array.isArray(e))return Sa(e)}function Gv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,su(r.key),r)}}function Kv(e,t,n){return t&&Yv(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jr(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ea(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
11
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return i=l.done,l},e:function(l){s=!0,a=l},f:function(){try{i||n.return==null||n.return()}finally{if(s)throw a}}}}function ee(e,t,n){return(t=su(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xv(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qv(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(c){u=!0,o=c}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return s}}function Jv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
12
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
13
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iu(Object(n),!0).forEach(function(r){ee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iu(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qr(e,t){return Rv(e)||qv(e,t)||Ea(e,t)||Jv()}function ze(e){return Uv(e)||Xv(e)||Ea(e)||Qv()}function Zv(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function su(e){var t=Zv(e,"string");return typeof t=="symbol"?t:t+""}function Zr(e){"@babel/helpers - typeof";return Zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zr(e)}function Ea(e,t){if(e){if(typeof e=="string")return Sa(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sa(e,t):void 0}}var lu=function(){},ka={},uu={},cu=null,fu={mark:lu,measure:lu};try{typeof window<"u"&&(ka=window),typeof document<"u"&&(uu=document),typeof MutationObserver<"u"&&(cu=MutationObserver),typeof performance<"u"&&(fu=performance)}catch{}var eb=ka.navigator||{},du=eb.userAgent,mu=du===void 0?"":du,Nt=ka,pe=uu,pu=cu,eo=fu;Nt.document;var at=!!pe.documentElement&&!!pe.head&&typeof pe.addEventListener=="function"&&typeof pe.createElement=="function",gu=~mu.indexOf("MSIE")||~mu.indexOf("Trident/"),$a,tb=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|gt|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,nb=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Graphite|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i,hu={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"},slab:{"fa-regular":"regular",faslr:"regular"},"slab-press":{"fa-regular":"regular",faslpr:"regular"},thumbprint:{"fa-light":"light",fatl:"light"},whiteboard:{"fa-semibold":"semibold",fawsb:"semibold"},notdog:{"fa-solid":"solid",fans:"solid"},"notdog-duo":{"fa-solid":"solid",fands:"solid"},etch:{"fa-solid":"solid",faes:"solid"},graphite:{"fa-thin":"thin",fagt:"thin"},jelly:{"fa-regular":"regular",fajr:"regular"},"jelly-fill":{"fa-regular":"regular",fajfr:"regular"},"jelly-duo":{"fa-regular":"regular",fajdr:"regular"},chisel:{"fa-regular":"regular",facr:"regular"},utility:{"fa-semibold":"semibold",fausb:"semibold"},"utility-duo":{"fa-semibold":"semibold",faudsb:"semibold"},"utility-fill":{"fa-semibold":"semibold",faufsb:"semibold"}},rb={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},vu=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-graphite","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],we="classic",Yn="duotone",bu="sharp",yu="sharp-duotone",xu="chisel",wu="etch",Su="graphite",Eu="jelly",ku="jelly-duo",$u="jelly-fill",Pu="notdog",Nu="notdog-duo",Cu="slab",Ou="slab-press",Au="thumbprint",Iu="utility",Tu="utility-duo",Fu="utility-fill",ju="whiteboard",ob="Classic",ab="Duotone",ib="Sharp",sb="Sharp Duotone",lb="Chisel",ub="Etch",cb="Graphite",fb="Jelly",db="Jelly Duo",mb="Jelly Fill",pb="Notdog",gb="Notdog Duo",hb="Slab",vb="Slab Press",bb="Thumbprint",yb="Utility",xb="Utility Duo",wb="Utility Fill",Sb="Whiteboard",Mu=[we,Yn,bu,yu,xu,wu,Su,Eu,ku,$u,Pu,Nu,Cu,Ou,Au,Iu,Tu,Fu,ju];$a={},ee(ee(ee(ee(ee(ee(ee(ee(ee(ee($a,we,ob),Yn,ab),bu,ib),yu,sb),xu,lb),wu,ub),Su,cb),Eu,fb),ku,db),$u,mb),ee(ee(ee(ee(ee(ee(ee(ee(ee($a,Pu,pb),Nu,gb),Cu,hb),Ou,vb),Au,bb),Iu,yb),Tu,xb),Fu,wb),ju,Sb);var Eb={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"},slab:{400:"faslr"},"slab-press":{400:"faslpr"},whiteboard:{600:"fawsb"},thumbprint:{300:"fatl"},notdog:{900:"fans"},"notdog-duo":{900:"fands"},etch:{900:"faes"},graphite:{100:"fagt"},chisel:{400:"facr"},jelly:{400:"fajr"},"jelly-fill":{400:"fajfr"},"jelly-duo":{400:"fajdr"},utility:{600:"fausb"},"utility-duo":{600:"faudsb"},"utility-fill":{600:"faufsb"}},kb={"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Graphite":{100:"fagt",normal:"fagt"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}},$b=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["chisel",{defaultShortPrefixId:"facr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["etch",{defaultShortPrefixId:"faes",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["graphite",{defaultShortPrefixId:"fagt",defaultStyleId:"thin",styleIds:["thin"],futureStyleIds:[],defaultFontWeight:100}],["jelly",{defaultShortPrefixId:"fajr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-duo",{defaultShortPrefixId:"fajdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-fill",{defaultShortPrefixId:"fajfr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["notdog",{defaultShortPrefixId:"fans",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog-duo",{defaultShortPrefixId:"fands",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["slab",{defaultShortPrefixId:"faslr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press",{defaultShortPrefixId:"faslpr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["thumbprint",{defaultShortPrefixId:"fatl",defaultStyleId:"light",styleIds:["light"],futureStyleIds:[],defaultFontWeight:300}],["utility",{defaultShortPrefixId:"fausb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-duo",{defaultShortPrefixId:"faudsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-fill",{defaultShortPrefixId:"faufsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["whiteboard",{defaultShortPrefixId:"fawsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}]]),Pb={chisel:{regular:"facr"},classic:{brands:"fab",light:"fal",regular:"far",solid:"fas",thin:"fat"},duotone:{light:"fadl",regular:"fadr",solid:"fad",thin:"fadt"},etch:{solid:"faes"},graphite:{thin:"fagt"},jelly:{regular:"fajr"},"jelly-duo":{regular:"fajdr"},"jelly-fill":{regular:"fajfr"},notdog:{solid:"fans"},"notdog-duo":{solid:"fands"},sharp:{light:"fasl",regular:"fasr",solid:"fass",thin:"fast"},"sharp-duotone":{light:"fasdl",regular:"fasdr",solid:"fasds",thin:"fasdt"},slab:{regular:"faslr"},"slab-press":{regular:"faslpr"},thumbprint:{light:"fatl"},utility:{semibold:"fausb"},"utility-duo":{semibold:"faudsb"},"utility-fill":{semibold:"faufsb"},whiteboard:{semibold:"fawsb"}},Lu=["fak","fa-kit","fakd","fa-kit-duotone"],_u={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},Nb=["kit"],Cb="kit",Ob="kit-duotone",Ab="Kit",Ib="Kit Duotone";ee(ee({},Cb,Ab),Ob,Ib);var Tb={kit:{"fa-kit":"fak"}},Fb={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},jb={kit:{fak:"fa-kit"}},Du={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Pa,to={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Mb=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-graphite","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],Lb="classic",_b="duotone",Db="sharp",zb="sharp-duotone",Vb="chisel",Bb="etch",Hb="graphite",Wb="jelly",Rb="jelly-duo",Ub="jelly-fill",Gb="notdog",Yb="notdog-duo",Kb="slab",Xb="slab-press",qb="thumbprint",Jb="utility",Qb="utility-duo",Zb="utility-fill",e0="whiteboard",t0="Classic",n0="Duotone",r0="Sharp",o0="Sharp Duotone",a0="Chisel",i0="Etch",s0="Graphite",l0="Jelly",u0="Jelly Duo",c0="Jelly Fill",f0="Notdog",d0="Notdog Duo",m0="Slab",p0="Slab Press",g0="Thumbprint",h0="Utility",v0="Utility Duo",b0="Utility Fill",y0="Whiteboard";Pa={},ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(Pa,Lb,t0),_b,n0),Db,r0),zb,o0),Vb,a0),Bb,i0),Hb,s0),Wb,l0),Rb,u0),Ub,c0),ee(ee(ee(ee(ee(ee(ee(ee(ee(Pa,Gb,f0),Yb,d0),Kb,m0),Xb,p0),qb,g0),Jb,h0),Qb,v0),Zb,b0),e0,y0);var x0="kit",w0="kit-duotone",S0="Kit",E0="Kit Duotone";ee(ee({},x0,S0),w0,E0);var k0={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"},slab:{"fa-regular":"faslr"},"slab-press":{"fa-regular":"faslpr"},whiteboard:{"fa-semibold":"fawsb"},thumbprint:{"fa-light":"fatl"},notdog:{"fa-solid":"fans"},"notdog-duo":{"fa-solid":"fands"},etch:{"fa-solid":"faes"},graphite:{"fa-thin":"fagt"},jelly:{"fa-regular":"fajr"},"jelly-fill":{"fa-regular":"fajfr"},"jelly-duo":{"fa-regular":"fajdr"},chisel:{"fa-regular":"facr"},utility:{"fa-semibold":"fausb"},"utility-duo":{"fa-semibold":"faudsb"},"utility-fill":{"fa-semibold":"faufsb"}},$0={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"],slab:["faslr"],"slab-press":["faslpr"],whiteboard:["fawsb"],thumbprint:["fatl"],notdog:["fans"],"notdog-duo":["fands"],etch:["faes"],graphite:["fagt"],jelly:["fajr"],"jelly-fill":["fajfr"],"jelly-duo":["fajdr"],chisel:["facr"],utility:["fausb"],"utility-duo":["faudsb"],"utility-fill":["faufsb"]},Na={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"},slab:{faslr:"fa-regular"},"slab-press":{faslpr:"fa-regular"},whiteboard:{fawsb:"fa-semibold"},thumbprint:{fatl:"fa-light"},notdog:{fans:"fa-solid"},"notdog-duo":{fands:"fa-solid"},etch:{faes:"fa-solid"},graphite:{fagt:"fa-thin"},jelly:{fajr:"fa-regular"},"jelly-fill":{fajfr:"fa-regular"},"jelly-duo":{fajdr:"fa-regular"},chisel:{facr:"fa-regular"},utility:{fausb:"fa-semibold"},"utility-duo":{faudsb:"fa-semibold"},"utility-fill":{faufsb:"fa-semibold"}},P0=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"],zu=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","faslr","faslpr","fawsb","fatl","fans","fands","faes","fagt","fajr","fajfr","fajdr","facr","fausb","faudsb","faufsb"].concat(Mb,P0),N0=["solid","regular","light","thin","duotone","brands","semibold"],Vu=[1,2,3,4,5,6,7,8,9,10],C0=Vu.concat([11,12,13,14,15,16,17,18,19,20]),O0=["aw","fw","pull-left","pull-right"],A0=[].concat(ze(Object.keys($0)),N0,O0,["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","inverse","layers","layers-bottom-left","layers-bottom-right","layers-counter","layers-text","layers-top-left","layers-top-right","li","pull-end","pull-start","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","width-auto","width-fixed",to.GROUP,to.SWAP_OPACITY,to.PRIMARY,to.SECONDARY]).concat(Vu.map(function(e){return"".concat(e,"x")})).concat(C0.map(function(e){return"w-".concat(e)})),I0={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},it="___FONT_AWESOME___",Ca=16,Bu="fa",Hu="svg-inline--fa",Bt="data-fa-i2svg",Oa="data-fa-pseudo-element",T0="data-fa-pseudo-element-pending",Aa="data-prefix",Ia="data-icon",Wu="fontawesome-i2svg",F0="async",j0=["HTML","HEAD","STYLE","SCRIPT"],Ru=["::before","::after",":before",":after"],Uu=(function(){try{return process.env.NODE_ENV==="production"}catch{return!1}})();function Kn(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[we]}})}var Gu=A({},hu);Gu[we]=A(A(A(A({},{"fa-duotone":"duotone"}),hu[we]),_u.kit),_u["kit-duotone"]);var M0=Kn(Gu),Ta=A({},Pb);Ta[we]=A(A(A(A({},{duotone:"fad"}),Ta[we]),Du.kit),Du["kit-duotone"]);var Yu=Kn(Ta),Fa=A({},Na);Fa[we]=A(A({},Fa[we]),jb.kit);var ja=Kn(Fa),Ma=A({},k0);Ma[we]=A(A({},Ma[we]),Tb.kit),Kn(Ma);var L0=tb,Ku="fa-layers-text",_0=nb,D0=A({},Eb);Kn(D0);var z0=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],La=rb,V0=[].concat(ze(Nb),ze(A0)),Xn=Nt.FontAwesomeConfig||{};function B0(e){var t=pe.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function H0(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(pe&&typeof pe.querySelector=="function"){var W0=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-search-pseudo-elements","searchPseudoElements"],["data-search-pseudo-elements-warnings","searchPseudoElementsWarnings"],["data-search-pseudo-elements-full-scan","searchPseudoElementsFullScan"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];W0.forEach(function(e){var t=Qr(e,2),n=t[0],r=t[1],o=H0(B0(n));o!=null&&(Xn[r]=o)})}var Xu={styleDefault:"solid",familyDefault:we,cssPrefix:Bu,replacementClass:Hu,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Xn.familyPrefix&&(Xn.cssPrefix=Xn.familyPrefix);var on=A(A({},Xu),Xn);on.autoReplaceSvg||(on.observeMutations=!1);var Y={};Object.keys(Xu).forEach(function(e){Object.defineProperty(Y,e,{enumerable:!0,set:function(n){on[e]=n,qn.forEach(function(r){return r(Y)})},get:function(){return on[e]}})}),Object.defineProperty(Y,"familyPrefix",{enumerable:!0,set:function(t){on.cssPrefix=t,qn.forEach(function(n){return n(Y)})},get:function(){return on.cssPrefix}}),Nt.FontAwesomeConfig=Y;var qn=[];function R0(e){return qn.push(e),function(){qn.splice(qn.indexOf(e),1)}}var an=Ca,Qe={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function U0(e){if(!(!e||!at)){var t=pe.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=pe.head.childNodes,r=null,o=n.length-1;o>-1;o--){var a=n[o],i=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(i)>-1&&(r=a)}return pe.head.insertBefore(t,r),e}}var G0="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function qu(){for(var e=12,t="";e-- >0;)t+=G0[Math.random()*62|0];return t}function sn(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function _a(e){return e.classList?sn(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function Ju(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Y0(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(Ju(e[n]),'" ')},"").trim()}function no(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Da(e){return e.size!==Qe.size||e.x!==Qe.x||e.y!==Qe.y||e.rotate!==Qe.rotate||e.flipX||e.flipY}function K0(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},a="translate(".concat(t.x*32,", ").concat(t.y*32,") "),i="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(a," ").concat(i," ").concat(s)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:l,path:u}}function X0(e){var t=e.transform,n=e.width,r=n===void 0?Ca:n,o=e.height,a=o===void 0?Ca:o,i="";return gu?i+="translate(".concat(t.x/an-r/2,"em, ").concat(t.y/an-a/2,"em) "):i+="translate(calc(-50% + ".concat(t.x/an,"em), calc(-50% + ").concat(t.y/an,"em)) "),i+="scale(".concat(t.size/an*(t.flipX?-1:1),", ").concat(t.size/an*(t.flipY?-1:1),") "),i+="rotate(".concat(t.rotate,"deg) "),i}var q0=`:root, :host {
|
|
14
|
+
--fa-font-solid: normal 900 1em/1 'Font Awesome 7 Free';
|
|
15
|
+
--fa-font-regular: normal 400 1em/1 'Font Awesome 7 Free';
|
|
16
|
+
--fa-font-light: normal 300 1em/1 'Font Awesome 7 Pro';
|
|
17
|
+
--fa-font-thin: normal 100 1em/1 'Font Awesome 7 Pro';
|
|
18
|
+
--fa-font-duotone: normal 900 1em/1 'Font Awesome 7 Duotone';
|
|
19
|
+
--fa-font-duotone-regular: normal 400 1em/1 'Font Awesome 7 Duotone';
|
|
20
|
+
--fa-font-duotone-light: normal 300 1em/1 'Font Awesome 7 Duotone';
|
|
21
|
+
--fa-font-duotone-thin: normal 100 1em/1 'Font Awesome 7 Duotone';
|
|
22
|
+
--fa-font-brands: normal 400 1em/1 'Font Awesome 7 Brands';
|
|
23
|
+
--fa-font-sharp-solid: normal 900 1em/1 'Font Awesome 7 Sharp';
|
|
24
|
+
--fa-font-sharp-regular: normal 400 1em/1 'Font Awesome 7 Sharp';
|
|
25
|
+
--fa-font-sharp-light: normal 300 1em/1 'Font Awesome 7 Sharp';
|
|
26
|
+
--fa-font-sharp-thin: normal 100 1em/1 'Font Awesome 7 Sharp';
|
|
27
|
+
--fa-font-sharp-duotone-solid: normal 900 1em/1 'Font Awesome 7 Sharp Duotone';
|
|
28
|
+
--fa-font-sharp-duotone-regular: normal 400 1em/1 'Font Awesome 7 Sharp Duotone';
|
|
29
|
+
--fa-font-sharp-duotone-light: normal 300 1em/1 'Font Awesome 7 Sharp Duotone';
|
|
30
|
+
--fa-font-sharp-duotone-thin: normal 100 1em/1 'Font Awesome 7 Sharp Duotone';
|
|
31
|
+
--fa-font-slab-regular: normal 400 1em/1 'Font Awesome 7 Slab';
|
|
32
|
+
--fa-font-slab-press-regular: normal 400 1em/1 'Font Awesome 7 Slab Press';
|
|
33
|
+
--fa-font-whiteboard-semibold: normal 600 1em/1 'Font Awesome 7 Whiteboard';
|
|
34
|
+
--fa-font-thumbprint-light: normal 300 1em/1 'Font Awesome 7 Thumbprint';
|
|
35
|
+
--fa-font-notdog-solid: normal 900 1em/1 'Font Awesome 7 Notdog';
|
|
36
|
+
--fa-font-notdog-duo-solid: normal 900 1em/1 'Font Awesome 7 Notdog Duo';
|
|
37
|
+
--fa-font-etch-solid: normal 900 1em/1 'Font Awesome 7 Etch';
|
|
38
|
+
--fa-font-graphite-thin: normal 100 1em/1 'Font Awesome 7 Graphite';
|
|
39
|
+
--fa-font-jelly-regular: normal 400 1em/1 'Font Awesome 7 Jelly';
|
|
40
|
+
--fa-font-jelly-fill-regular: normal 400 1em/1 'Font Awesome 7 Jelly Fill';
|
|
41
|
+
--fa-font-jelly-duo-regular: normal 400 1em/1 'Font Awesome 7 Jelly Duo';
|
|
42
|
+
--fa-font-chisel-regular: normal 400 1em/1 'Font Awesome 7 Chisel';
|
|
43
|
+
--fa-font-utility-semibold: normal 600 1em/1 'Font Awesome 7 Utility';
|
|
44
|
+
--fa-font-utility-duo-semibold: normal 600 1em/1 'Font Awesome 7 Utility Duo';
|
|
45
|
+
--fa-font-utility-fill-semibold: normal 600 1em/1 'Font Awesome 7 Utility Fill';
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.svg-inline--fa {
|
|
49
|
+
box-sizing: content-box;
|
|
50
|
+
display: var(--fa-display, inline-block);
|
|
51
|
+
height: 1em;
|
|
52
|
+
overflow: visible;
|
|
53
|
+
vertical-align: -0.125em;
|
|
54
|
+
width: var(--fa-width, 1.25em);
|
|
55
|
+
}
|
|
56
|
+
.svg-inline--fa.fa-2xs {
|
|
57
|
+
vertical-align: 0.1em;
|
|
58
|
+
}
|
|
59
|
+
.svg-inline--fa.fa-xs {
|
|
60
|
+
vertical-align: 0em;
|
|
61
|
+
}
|
|
62
|
+
.svg-inline--fa.fa-sm {
|
|
63
|
+
vertical-align: -0.0714285714em;
|
|
64
|
+
}
|
|
65
|
+
.svg-inline--fa.fa-lg {
|
|
66
|
+
vertical-align: -0.2em;
|
|
67
|
+
}
|
|
68
|
+
.svg-inline--fa.fa-xl {
|
|
69
|
+
vertical-align: -0.25em;
|
|
70
|
+
}
|
|
71
|
+
.svg-inline--fa.fa-2xl {
|
|
72
|
+
vertical-align: -0.3125em;
|
|
73
|
+
}
|
|
74
|
+
.svg-inline--fa.fa-pull-left,
|
|
75
|
+
.svg-inline--fa .fa-pull-start {
|
|
76
|
+
float: inline-start;
|
|
77
|
+
margin-inline-end: var(--fa-pull-margin, 0.3em);
|
|
78
|
+
}
|
|
79
|
+
.svg-inline--fa.fa-pull-right,
|
|
80
|
+
.svg-inline--fa .fa-pull-end {
|
|
81
|
+
float: inline-end;
|
|
82
|
+
margin-inline-start: var(--fa-pull-margin, 0.3em);
|
|
83
|
+
}
|
|
84
|
+
.svg-inline--fa.fa-li {
|
|
85
|
+
width: var(--fa-li-width, 2em);
|
|
86
|
+
inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
|
|
87
|
+
inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.fa-layers-counter, .fa-layers-text {
|
|
91
|
+
display: inline-block;
|
|
92
|
+
position: absolute;
|
|
93
|
+
text-align: center;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.fa-layers {
|
|
97
|
+
display: inline-block;
|
|
98
|
+
height: 1em;
|
|
99
|
+
position: relative;
|
|
100
|
+
text-align: center;
|
|
101
|
+
vertical-align: -0.125em;
|
|
102
|
+
width: var(--fa-width, 1.25em);
|
|
103
|
+
}
|
|
104
|
+
.fa-layers .svg-inline--fa {
|
|
105
|
+
inset: 0;
|
|
106
|
+
margin: auto;
|
|
107
|
+
position: absolute;
|
|
108
|
+
transform-origin: center center;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.fa-layers-text {
|
|
112
|
+
left: 50%;
|
|
113
|
+
top: 50%;
|
|
114
|
+
transform: translate(-50%, -50%);
|
|
115
|
+
transform-origin: center center;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.fa-layers-counter {
|
|
119
|
+
background-color: var(--fa-counter-background-color, #ff253a);
|
|
120
|
+
border-radius: var(--fa-counter-border-radius, 1em);
|
|
121
|
+
box-sizing: border-box;
|
|
122
|
+
color: var(--fa-inverse, #fff);
|
|
123
|
+
line-height: var(--fa-counter-line-height, 1);
|
|
124
|
+
max-width: var(--fa-counter-max-width, 5em);
|
|
125
|
+
min-width: var(--fa-counter-min-width, 1.5em);
|
|
126
|
+
overflow: hidden;
|
|
127
|
+
padding: var(--fa-counter-padding, 0.25em 0.5em);
|
|
128
|
+
right: var(--fa-right, 0);
|
|
129
|
+
text-overflow: ellipsis;
|
|
130
|
+
top: var(--fa-top, 0);
|
|
131
|
+
transform: scale(var(--fa-counter-scale, 0.25));
|
|
132
|
+
transform-origin: top right;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.fa-layers-bottom-right {
|
|
136
|
+
bottom: var(--fa-bottom, 0);
|
|
137
|
+
right: var(--fa-right, 0);
|
|
138
|
+
top: auto;
|
|
139
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
|
140
|
+
transform-origin: bottom right;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.fa-layers-bottom-left {
|
|
144
|
+
bottom: var(--fa-bottom, 0);
|
|
145
|
+
left: var(--fa-left, 0);
|
|
146
|
+
right: auto;
|
|
147
|
+
top: auto;
|
|
148
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
|
149
|
+
transform-origin: bottom left;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.fa-layers-top-right {
|
|
153
|
+
top: var(--fa-top, 0);
|
|
154
|
+
right: var(--fa-right, 0);
|
|
155
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
|
156
|
+
transform-origin: top right;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.fa-layers-top-left {
|
|
160
|
+
left: var(--fa-left, 0);
|
|
161
|
+
right: auto;
|
|
162
|
+
top: var(--fa-top, 0);
|
|
163
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
|
164
|
+
transform-origin: top left;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.fa-1x {
|
|
168
|
+
font-size: 1em;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.fa-2x {
|
|
172
|
+
font-size: 2em;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.fa-3x {
|
|
176
|
+
font-size: 3em;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.fa-4x {
|
|
180
|
+
font-size: 4em;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.fa-5x {
|
|
184
|
+
font-size: 5em;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.fa-6x {
|
|
188
|
+
font-size: 6em;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.fa-7x {
|
|
192
|
+
font-size: 7em;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.fa-8x {
|
|
196
|
+
font-size: 8em;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.fa-9x {
|
|
200
|
+
font-size: 9em;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.fa-10x {
|
|
204
|
+
font-size: 10em;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.fa-2xs {
|
|
208
|
+
font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that's relative to the scale's 16px base */
|
|
209
|
+
line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
|
210
|
+
vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.fa-xs {
|
|
214
|
+
font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that's relative to the scale's 16px base */
|
|
215
|
+
line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
|
216
|
+
vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.fa-sm {
|
|
220
|
+
font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that's relative to the scale's 16px base */
|
|
221
|
+
line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
|
222
|
+
vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.fa-lg {
|
|
226
|
+
font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that's relative to the scale's 16px base */
|
|
227
|
+
line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
|
228
|
+
vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.fa-xl {
|
|
232
|
+
font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that's relative to the scale's 16px base */
|
|
233
|
+
line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
|
234
|
+
vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.fa-2xl {
|
|
238
|
+
font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that's relative to the scale's 16px base */
|
|
239
|
+
line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
|
240
|
+
vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.fa-width-auto {
|
|
244
|
+
--fa-width: auto;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.fa-fw,
|
|
248
|
+
.fa-width-fixed {
|
|
249
|
+
--fa-width: 1.25em;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.fa-ul {
|
|
253
|
+
list-style-type: none;
|
|
254
|
+
margin-inline-start: var(--fa-li-margin, 2.5em);
|
|
255
|
+
padding-inline-start: 0;
|
|
256
|
+
}
|
|
257
|
+
.fa-ul > li {
|
|
258
|
+
position: relative;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.fa-li {
|
|
262
|
+
inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
|
|
263
|
+
position: absolute;
|
|
264
|
+
text-align: center;
|
|
265
|
+
width: var(--fa-li-width, 2em);
|
|
266
|
+
line-height: inherit;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/* Heads Up: Bordered Icons will not be supported in the future!
|
|
270
|
+
- This feature will be deprecated in the next major release of Font Awesome (v8)!
|
|
271
|
+
- You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.
|
|
272
|
+
*/
|
|
273
|
+
/* Notes:
|
|
274
|
+
* --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)
|
|
275
|
+
* --@{v.$css-prefix}-border-padding =
|
|
276
|
+
** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it's vertical alignment)
|
|
277
|
+
** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)
|
|
278
|
+
*/
|
|
279
|
+
.fa-border {
|
|
280
|
+
border-color: var(--fa-border-color, #eee);
|
|
281
|
+
border-radius: var(--fa-border-radius, 0.1em);
|
|
282
|
+
border-style: var(--fa-border-style, solid);
|
|
283
|
+
border-width: var(--fa-border-width, 0.0625em);
|
|
284
|
+
box-sizing: var(--fa-border-box-sizing, content-box);
|
|
285
|
+
padding: var(--fa-border-padding, 0.1875em 0.25em);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.fa-pull-left,
|
|
289
|
+
.fa-pull-start {
|
|
290
|
+
float: inline-start;
|
|
291
|
+
margin-inline-end: var(--fa-pull-margin, 0.3em);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.fa-pull-right,
|
|
295
|
+
.fa-pull-end {
|
|
296
|
+
float: inline-end;
|
|
297
|
+
margin-inline-start: var(--fa-pull-margin, 0.3em);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.fa-beat {
|
|
301
|
+
animation-name: fa-beat;
|
|
302
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
303
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
304
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
305
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
306
|
+
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.fa-bounce {
|
|
310
|
+
animation-name: fa-bounce;
|
|
311
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
312
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
313
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
314
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
315
|
+
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.fa-fade {
|
|
319
|
+
animation-name: fa-fade;
|
|
320
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
321
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
322
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
323
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
324
|
+
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.fa-beat-fade {
|
|
328
|
+
animation-name: fa-beat-fade;
|
|
329
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
330
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
331
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
332
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
333
|
+
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.fa-flip {
|
|
337
|
+
animation-name: fa-flip;
|
|
338
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
339
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
340
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
341
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
342
|
+
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.fa-shake {
|
|
346
|
+
animation-name: fa-shake;
|
|
347
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
348
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
349
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
350
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
351
|
+
animation-timing-function: var(--fa-animation-timing, linear);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.fa-spin {
|
|
355
|
+
animation-name: fa-spin;
|
|
356
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
357
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
358
|
+
animation-duration: var(--fa-animation-duration, 2s);
|
|
359
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
360
|
+
animation-timing-function: var(--fa-animation-timing, linear);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.fa-spin-reverse {
|
|
364
|
+
--fa-animation-direction: reverse;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.fa-pulse,
|
|
368
|
+
.fa-spin-pulse {
|
|
369
|
+
animation-name: fa-spin;
|
|
370
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
371
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
372
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
373
|
+
animation-timing-function: var(--fa-animation-timing, steps(8));
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
@media (prefers-reduced-motion: reduce) {
|
|
377
|
+
.fa-beat,
|
|
378
|
+
.fa-bounce,
|
|
379
|
+
.fa-fade,
|
|
380
|
+
.fa-beat-fade,
|
|
381
|
+
.fa-flip,
|
|
382
|
+
.fa-pulse,
|
|
383
|
+
.fa-shake,
|
|
384
|
+
.fa-spin,
|
|
385
|
+
.fa-spin-pulse {
|
|
386
|
+
animation: none !important;
|
|
387
|
+
transition: none !important;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
@keyframes fa-beat {
|
|
391
|
+
0%, 90% {
|
|
392
|
+
transform: scale(1);
|
|
393
|
+
}
|
|
394
|
+
45% {
|
|
395
|
+
transform: scale(var(--fa-beat-scale, 1.25));
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
@keyframes fa-bounce {
|
|
399
|
+
0% {
|
|
400
|
+
transform: scale(1, 1) translateY(0);
|
|
401
|
+
}
|
|
402
|
+
10% {
|
|
403
|
+
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
|
404
|
+
}
|
|
405
|
+
30% {
|
|
406
|
+
transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
|
|
407
|
+
}
|
|
408
|
+
50% {
|
|
409
|
+
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
|
410
|
+
}
|
|
411
|
+
57% {
|
|
412
|
+
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
|
413
|
+
}
|
|
414
|
+
64% {
|
|
415
|
+
transform: scale(1, 1) translateY(0);
|
|
416
|
+
}
|
|
417
|
+
100% {
|
|
418
|
+
transform: scale(1, 1) translateY(0);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
@keyframes fa-fade {
|
|
422
|
+
50% {
|
|
423
|
+
opacity: var(--fa-fade-opacity, 0.4);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
@keyframes fa-beat-fade {
|
|
427
|
+
0%, 100% {
|
|
428
|
+
opacity: var(--fa-beat-fade-opacity, 0.4);
|
|
429
|
+
transform: scale(1);
|
|
430
|
+
}
|
|
431
|
+
50% {
|
|
432
|
+
opacity: 1;
|
|
433
|
+
transform: scale(var(--fa-beat-fade-scale, 1.125));
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
@keyframes fa-flip {
|
|
437
|
+
50% {
|
|
438
|
+
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
@keyframes fa-shake {
|
|
442
|
+
0% {
|
|
443
|
+
transform: rotate(-15deg);
|
|
444
|
+
}
|
|
445
|
+
4% {
|
|
446
|
+
transform: rotate(15deg);
|
|
447
|
+
}
|
|
448
|
+
8%, 24% {
|
|
449
|
+
transform: rotate(-18deg);
|
|
450
|
+
}
|
|
451
|
+
12%, 28% {
|
|
452
|
+
transform: rotate(18deg);
|
|
453
|
+
}
|
|
454
|
+
16% {
|
|
455
|
+
transform: rotate(-22deg);
|
|
456
|
+
}
|
|
457
|
+
20% {
|
|
458
|
+
transform: rotate(22deg);
|
|
459
|
+
}
|
|
460
|
+
32% {
|
|
461
|
+
transform: rotate(-12deg);
|
|
462
|
+
}
|
|
463
|
+
36% {
|
|
464
|
+
transform: rotate(12deg);
|
|
465
|
+
}
|
|
466
|
+
40%, 100% {
|
|
467
|
+
transform: rotate(0deg);
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
@keyframes fa-spin {
|
|
471
|
+
0% {
|
|
472
|
+
transform: rotate(0deg);
|
|
473
|
+
}
|
|
474
|
+
100% {
|
|
475
|
+
transform: rotate(360deg);
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
.fa-rotate-90 {
|
|
479
|
+
transform: rotate(90deg);
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
.fa-rotate-180 {
|
|
483
|
+
transform: rotate(180deg);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.fa-rotate-270 {
|
|
487
|
+
transform: rotate(270deg);
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.fa-flip-horizontal {
|
|
491
|
+
transform: scale(-1, 1);
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.fa-flip-vertical {
|
|
495
|
+
transform: scale(1, -1);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.fa-flip-both,
|
|
499
|
+
.fa-flip-horizontal.fa-flip-vertical {
|
|
500
|
+
transform: scale(-1, -1);
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.fa-rotate-by {
|
|
504
|
+
transform: rotate(var(--fa-rotate-angle, 0));
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.svg-inline--fa .fa-primary {
|
|
508
|
+
fill: var(--fa-primary-color, currentColor);
|
|
509
|
+
opacity: var(--fa-primary-opacity, 1);
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.svg-inline--fa .fa-secondary {
|
|
513
|
+
fill: var(--fa-secondary-color, currentColor);
|
|
514
|
+
opacity: var(--fa-secondary-opacity, 0.4);
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.svg-inline--fa.fa-swap-opacity .fa-primary {
|
|
518
|
+
opacity: var(--fa-secondary-opacity, 0.4);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.svg-inline--fa.fa-swap-opacity .fa-secondary {
|
|
522
|
+
opacity: var(--fa-primary-opacity, 1);
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
.svg-inline--fa mask .fa-primary,
|
|
526
|
+
.svg-inline--fa mask .fa-secondary {
|
|
527
|
+
fill: black;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
.svg-inline--fa.fa-inverse {
|
|
531
|
+
fill: var(--fa-inverse, #fff);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.fa-stack {
|
|
535
|
+
display: inline-block;
|
|
536
|
+
height: 2em;
|
|
537
|
+
line-height: 2em;
|
|
538
|
+
position: relative;
|
|
539
|
+
vertical-align: middle;
|
|
540
|
+
width: 2.5em;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.fa-inverse {
|
|
544
|
+
color: var(--fa-inverse, #fff);
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
.svg-inline--fa.fa-stack-1x {
|
|
548
|
+
--fa-width: 1.25em;
|
|
549
|
+
height: 1em;
|
|
550
|
+
width: var(--fa-width);
|
|
551
|
+
}
|
|
552
|
+
.svg-inline--fa.fa-stack-2x {
|
|
553
|
+
--fa-width: 2.5em;
|
|
554
|
+
height: 2em;
|
|
555
|
+
width: var(--fa-width);
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.fa-stack-1x,
|
|
559
|
+
.fa-stack-2x {
|
|
560
|
+
inset: 0;
|
|
561
|
+
margin: auto;
|
|
562
|
+
position: absolute;
|
|
563
|
+
z-index: var(--fa-stack-z-index, auto);
|
|
564
|
+
}`;function Qu(){var e=Bu,t=Hu,n=Y.cssPrefix,r=Y.replacementClass,o=q0;if(n!==e||r!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),i=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");o=o.replace(a,".".concat(n,"-")).replace(i,"--".concat(n,"-")).replace(s,".".concat(r))}return o}var Zu=!1;function za(){Y.autoAddCss&&!Zu&&(U0(Qu()),Zu=!0)}var J0={mixout:function(){return{dom:{css:Qu,insertCss:za}}},hooks:function(){return{beforeDOMElementCreation:function(){za()},beforeI2svg:function(){za()}}}},st=Nt||{};st[it]||(st[it]={}),st[it].styles||(st[it].styles={}),st[it].hooks||(st[it].hooks={}),st[it].shims||(st[it].shims=[]);var Ve=st[it],ec=[],tc=function(){pe.removeEventListener("DOMContentLoaded",tc),ro=1,ec.map(function(t){return t()})},ro=!1;at&&(ro=(pe.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(pe.readyState),ro||pe.addEventListener("DOMContentLoaded",tc));function Q0(e){at&&(ro?setTimeout(e,0):ec.push(e))}function Jn(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,o=e.children,a=o===void 0?[]:o;return typeof e=="string"?Ju(e):"<".concat(t," ").concat(Y0(r),">").concat(a.map(Jn).join(""),"</").concat(t,">")}function nc(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Va=function(t,n,r,o){var a=Object.keys(t),i=a.length,s=n,l,u,c;for(r===void 0?(l=1,c=t[a[0]]):(l=0,c=r);l<i;l++)u=a[l],c=s(c,t[u],u,t);return c};function rc(e){return ze(e).length!==1?null:e.codePointAt(0).toString(16)}function oc(e){return Object.keys(e).reduce(function(t,n){var r=e[n],o=!!r.icon;return o?t[r.iconName]=r.icon:t[n]=r,t},{})}function Ba(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,o=r===void 0?!1:r,a=oc(t);typeof Ve.hooks.addPack=="function"&&!o?Ve.hooks.addPack(e,oc(t)):Ve.styles[e]=A(A({},Ve.styles[e]||{}),a),e==="fas"&&Ba("fa",t)}var Qn=Ve.styles,Z0=Ve.shims,ac=Object.keys(ja),ey=ac.reduce(function(e,t){return e[t]=Object.keys(ja[t]),e},{}),Ha=null,ic={},sc={},lc={},uc={},cc={};function ty(e){return~V0.indexOf(e)}function ny(e,t){var n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r===e&&o!==""&&!ty(o)?o:null}var fc=function(){var t=function(a){return Va(Qn,function(i,s,l){return i[l]=Va(s,a,{}),i},{})};ic=t(function(o,a,i){if(a[3]&&(o[a[3]]=i),a[2]){var s=a[2].filter(function(l){return typeof l=="number"});s.forEach(function(l){o[l.toString(16)]=i})}return o}),sc=t(function(o,a,i){if(o[i]=i,a[2]){var s=a[2].filter(function(l){return typeof l=="string"});s.forEach(function(l){o[l]=i})}return o}),cc=t(function(o,a,i){var s=a[2];return o[i]=i,s.forEach(function(l){o[l]=i}),o});var n="far"in Qn||Y.autoFetchSvg,r=Va(Z0,function(o,a){var i=a[0],s=a[1],l=a[2];return s==="far"&&!n&&(s="fas"),typeof i=="string"&&(o.names[i]={prefix:s,iconName:l}),typeof i=="number"&&(o.unicodes[i.toString(16)]={prefix:s,iconName:l}),o},{names:{},unicodes:{}});lc=r.names,uc=r.unicodes,Ha=oo(Y.styleDefault,{family:Y.familyDefault})};R0(function(e){Ha=oo(e.styleDefault,{family:Y.familyDefault})}),fc();function Wa(e,t){return(ic[e]||{})[t]}function ry(e,t){return(sc[e]||{})[t]}function Ht(e,t){return(cc[e]||{})[t]}function dc(e){return lc[e]||{prefix:null,iconName:null}}function oy(e){var t=uc[e],n=Wa("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Ct(){return Ha}var mc=function(){return{prefix:null,iconName:null,rest:[]}};function ay(e){var t=we,n=ac.reduce(function(r,o){return r[o]="".concat(Y.cssPrefix,"-").concat(o),r},{});return Mu.forEach(function(r){(e.includes(n[r])||e.some(function(o){return ey[r].includes(o)}))&&(t=r)}),t}function oo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?we:n,o=M0[r][e];if(r===Yn&&!e)return"fad";var a=Yu[r][e]||Yu[r][o],i=e in Ve.styles?e:null,s=a||i||null;return s}function iy(e){var t=[],n=null;return e.forEach(function(r){var o=ny(Y.cssPrefix,r);o?n=o:r&&t.push(r)}),{iconName:n,rest:t}}function pc(e){return e.sort().filter(function(t,n,r){return r.indexOf(t)===n})}var gc=zu.concat(Lu);function ao(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.skipLookups,r=n===void 0?!1:n,o=null,a=pc(e.filter(function(d){return gc.includes(d)})),i=pc(e.filter(function(d){return!gc.includes(d)})),s=a.filter(function(d){return o=d,!vu.includes(d)}),l=Qr(s,1),u=l[0],c=u===void 0?null:u,m=ay(a),p=A(A({},iy(i)),{},{prefix:oo(c,{family:m})});return A(A(A({},p),cy({values:e,family:m,styles:Qn,config:Y,canonical:p,givenPrefix:o})),sy(r,o,p))}function sy(e,t,n){var r=n.prefix,o=n.iconName;if(e||!r||!o)return{prefix:r,iconName:o};var a=t==="fa"?dc(o):{},i=Ht(r,o);return o=a.iconName||i||o,r=a.prefix||r,r==="far"&&!Qn.far&&Qn.fas&&!Y.autoFetchSvg&&(r="fas"),{prefix:r,iconName:o}}var ly=Mu.filter(function(e){return e!==we||e!==Yn}),uy=Object.keys(Na).filter(function(e){return e!==we}).map(function(e){return Object.keys(Na[e])}).flat();function cy(e){var t=e.values,n=e.family,r=e.canonical,o=e.givenPrefix,a=o===void 0?"":o,i=e.styles,s=i===void 0?{}:i,l=e.config,u=l===void 0?{}:l,c=n===Yn,m=t.includes("fa-duotone")||t.includes("fad"),p=u.familyDefault==="duotone",d=r.prefix==="fad"||r.prefix==="fa-duotone";if(!c&&(m||p||d)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&ly.includes(n)){var g=Object.keys(s).find(function(v){return uy.includes(v)});if(g||u.autoFetchSvg){var h=$b.get(n).defaultShortPrefixId;r.prefix=h,r.iconName=Ht(r.prefix,r.iconName)||r.iconName}}return(r.prefix==="fa"||a==="fa")&&(r.prefix=Ct()||"fas"),r}var fy=(function(){function e(){Gv(this,e),this.definitions={}}return Kv(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var i=o.reduce(this._pullDefinitions,{});Object.keys(i).forEach(function(s){n.definitions[s]=A(A({},n.definitions[s]||{}),i[s]),Ba(s,i[s]);var l=ja[we][s];l&&Ba(l,i[s]),fc()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var o=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(o).map(function(a){var i=o[a],s=i.prefix,l=i.iconName,u=i.icon,c=u[2];n[s]||(n[s]={}),c.length>0&&c.forEach(function(m){typeof m=="string"&&(n[s][m]=u)}),n[s][l]=u}),n}}])})(),hc=[],ln={},un={},dy=Object.keys(un);function my(e,t){var n=t.mixoutsTo;return hc=e,ln={},Object.keys(un).forEach(function(r){dy.indexOf(r)===-1&&delete un[r]}),hc.forEach(function(r){var o=r.mixout?r.mixout():{};if(Object.keys(o).forEach(function(i){typeof o[i]=="function"&&(n[i]=o[i]),Zr(o[i])==="object"&&Object.keys(o[i]).forEach(function(s){n[i]||(n[i]={}),n[i][s]=o[i][s]})}),r.hooks){var a=r.hooks();Object.keys(a).forEach(function(i){ln[i]||(ln[i]=[]),ln[i].push(a[i])})}r.provides&&r.provides(un)}),n}function Ra(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a=ln[e]||[];return a.forEach(function(i){t=i.apply(null,[t].concat(r))}),t}function Wt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=ln[e]||[];o.forEach(function(a){a.apply(null,n)})}function Ot(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return un[e]?un[e].apply(null,t):void 0}function Ua(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||Ct();if(t)return t=Ht(n,t)||t,nc(vc.definitions,n,t)||nc(Ve.styles,n,t)}var vc=new fy,py=function(){Y.autoReplaceSvg=!1,Y.observeMutations=!1,Wt("noAuto")},gy={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return at?(Wt("beforeI2svg",t),Ot("pseudoElements2svg",t),Ot("i2svg",t)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;Y.autoReplaceSvg===!1&&(Y.autoReplaceSvg=!0),Y.observeMutations=!0,Q0(function(){vy({autoReplaceSvgRoot:n}),Wt("watch",t)})}},hy={icon:function(t){if(t===null)return null;if(Zr(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Ht(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=oo(t[0]);return{prefix:r,iconName:Ht(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(Y.cssPrefix,"-"))>-1||t.match(L0))){var o=ao(t.split(" "),{skipLookups:!0});return{prefix:o.prefix||Ct(),iconName:Ht(o.prefix,o.iconName)||o.iconName}}if(typeof t=="string"){var a=Ct();return{prefix:a,iconName:Ht(a,t)||t}}}},Te={noAuto:py,config:Y,dom:gy,parse:hy,library:vc,findIconDefinition:Ua,toHtml:Jn},vy=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?pe:n;(Object.keys(Ve.styles).length>0||Y.autoFetchSvg)&&at&&Y.autoReplaceSvg&&Te.dom.i2svg({node:r})};function io(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Jn(r)})}}),Object.defineProperty(e,"node",{get:function(){if(at){var r=pe.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function by(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,a=e.styles,i=e.transform;if(Da(i)&&n.found&&!r.found){var s=n.width,l=n.height,u={x:s/l/2,y:.5};o.style=no(A(A({},a),{},{"transform-origin":"".concat(u.x+i.x/16,"em ").concat(u.y+i.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function yy(e){var t=e.prefix,n=e.iconName,r=e.children,o=e.attributes,a=e.symbol,i=a===!0?"".concat(t,"-").concat(Y.cssPrefix,"-").concat(n):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:A(A({},o),{},{id:i}),children:r}]}]}function xy(e){var t=["aria-label","aria-labelledby","title","role"];return t.some(function(n){return n in e})}function Ga(e){var t=e.icons,n=t.main,r=t.mask,o=e.prefix,a=e.iconName,i=e.transform,s=e.symbol,l=e.maskId,u=e.extra,c=e.watchable,m=c===void 0?!1:c,p=r.found?r:n,d=p.width,g=p.height,h=[Y.replacementClass,a?"".concat(Y.cssPrefix,"-").concat(a):""].filter(function(S){return u.classes.indexOf(S)===-1}).filter(function(S){return S!==""||!!S}).concat(u.classes).join(" "),v={children:[],attributes:A(A({},u.attributes),{},{"data-prefix":o,"data-icon":a,class:h,role:u.attributes.role||"img",viewBox:"0 0 ".concat(d," ").concat(g)})};!xy(u.attributes)&&!u.attributes["aria-hidden"]&&(v.attributes["aria-hidden"]="true"),m&&(v.attributes[Bt]="");var y=A(A({},v),{},{prefix:o,iconName:a,main:n,mask:r,maskId:l,transform:i,symbol:s,styles:A({},u.styles)}),w=r.found&&n.found?Ot("generateAbstractMask",y)||{children:[],attributes:{}}:Ot("generateAbstractIcon",y)||{children:[],attributes:{}},x=w.children,k=w.attributes;return y.children=x,y.attributes=k,s?yy(y):by(y)}function bc(e){var t=e.content,n=e.width,r=e.height,o=e.transform,a=e.extra,i=e.watchable,s=i===void 0?!1:i,l=A(A({},a.attributes),{},{class:a.classes.join(" ")});s&&(l[Bt]="");var u=A({},a.styles);Da(o)&&(u.transform=X0({transform:o,width:n,height:r}),u["-webkit-transform"]=u.transform);var c=no(u);c.length>0&&(l.style=c);var m=[];return m.push({tag:"span",attributes:l,children:[t]}),m}function wy(e){var t=e.content,n=e.extra,r=A(A({},n.attributes),{},{class:n.classes.join(" ")}),o=no(n.styles);o.length>0&&(r.style=o);var a=[];return a.push({tag:"span",attributes:r,children:[t]}),a}var Ya=Ve.styles;function Ka(e){var t=e[0],n=e[1],r=e.slice(4),o=Qr(r,1),a=o[0],i=null;return Array.isArray(a)?i={tag:"g",attributes:{class:"".concat(Y.cssPrefix,"-").concat(La.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Y.cssPrefix,"-").concat(La.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(Y.cssPrefix,"-").concat(La.PRIMARY),fill:"currentColor",d:a[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:a}},{found:!0,width:t,height:n,icon:i}}var Sy={found:!1,width:512,height:512};function Ey(e,t){!Uu&&!Y.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Xa(e,t){var n=t;return t==="fa"&&Y.styleDefault!==null&&(t=Ct()),new Promise(function(r,o){if(n==="fa"){var a=dc(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&Ya[t]&&Ya[t][e]){var i=Ya[t][e];return r(Ka(i))}Ey(e,t),r(A(A({},Sy),{},{icon:Y.showMissingIcons&&e?Ot("missingIconAbstract")||{}:{}}))})}var yc=function(){},qa=Y.measurePerformance&&eo&&eo.mark&&eo.measure?eo:{mark:yc,measure:yc},Zn='FA "7.2.0"',ky=function(t){return qa.mark("".concat(Zn," ").concat(t," begins")),function(){return xc(t)}},xc=function(t){qa.mark("".concat(Zn," ").concat(t," ends")),qa.measure("".concat(Zn," ").concat(t),"".concat(Zn," ").concat(t," begins"),"".concat(Zn," ").concat(t," ends"))},Ja={begin:ky,end:xc},so=function(){};function wc(e){var t=e.getAttribute?e.getAttribute(Bt):null;return typeof t=="string"}function $y(e){var t=e.getAttribute?e.getAttribute(Aa):null,n=e.getAttribute?e.getAttribute(Ia):null;return t&&n}function Py(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Y.replacementClass)}function Ny(){if(Y.autoReplaceSvg===!0)return lo.replace;var e=lo[Y.autoReplaceSvg];return e||lo.replace}function Cy(e){return pe.createElementNS("http://www.w3.org/2000/svg",e)}function Oy(e){return pe.createElement(e)}function Sc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?Cy:Oy:n;if(typeof e=="string")return pe.createTextNode(e);var o=r(e.tag);Object.keys(e.attributes||[]).forEach(function(i){o.setAttribute(i,e.attributes[i])});var a=e.children||[];return a.forEach(function(i){o.appendChild(Sc(i,{ceFn:r}))}),o}function Ay(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var lo={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(o){n.parentNode.insertBefore(Sc(o),n)}),n.getAttribute(Bt)===null&&Y.keepOriginalSource){var r=pe.createComment(Ay(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~_a(n).indexOf(Y.replacementClass))return lo.replace(t);var o=new RegExp("".concat(Y.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var a=r[0].attributes.class.split(" ").reduce(function(s,l){return l===Y.replacementClass||l.match(o)?s.toSvg.push(l):s.toNode.push(l),s},{toNode:[],toSvg:[]});r[0].attributes.class=a.toSvg.join(" "),a.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",a.toNode.join(" "))}var i=r.map(function(s){return Jn(s)}).join(`
|
|
565
|
+
`);n.setAttribute(Bt,""),n.innerHTML=i}};function Ec(e){e()}function kc(e,t){var n=typeof t=="function"?t:so;if(e.length===0)n();else{var r=Ec;Y.mutateApproach===F0&&(r=Nt.requestAnimationFrame||Ec),r(function(){var o=Ny(),a=Ja.begin("mutate");e.map(o),a(),n()})}}var Qa=!1;function $c(){Qa=!0}function Za(){Qa=!1}var uo=null;function Pc(e){if(pu&&Y.observeMutations){var t=e.treeCallback,n=t===void 0?so:t,r=e.nodeCallback,o=r===void 0?so:r,a=e.pseudoElementsCallback,i=a===void 0?so:a,s=e.observeMutationsRoot,l=s===void 0?pe:s;uo=new pu(function(u){if(!Qa){var c=Ct();sn(u).forEach(function(m){if(m.type==="childList"&&m.addedNodes.length>0&&!wc(m.addedNodes[0])&&(Y.searchPseudoElements&&i(m.target),n(m.target)),m.type==="attributes"&&m.target.parentNode&&Y.searchPseudoElements&&i([m.target],!0),m.type==="attributes"&&wc(m.target)&&~z0.indexOf(m.attributeName))if(m.attributeName==="class"&&$y(m.target)){var p=ao(_a(m.target)),d=p.prefix,g=p.iconName;m.target.setAttribute(Aa,d||c),g&&m.target.setAttribute(Ia,g)}else Py(m.target)&&o(m.target)})}}),at&&uo.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Iy(){uo&&uo.disconnect()}function Ty(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,o){var a=o.split(":"),i=a[0],s=a.slice(1);return i&&s.length>0&&(r[i]=s.join(":").trim()),r},{})),n}function Fy(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",o=ao(_a(e));return o.prefix||(o.prefix=Ct()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=ry(o.prefix,e.innerText)||Wa(o.prefix,rc(e.innerText))),!o.iconName&&Y.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function jy(e){var t=sn(e.attributes).reduce(function(n,r){return n.name!=="class"&&n.name!=="style"&&(n[r.name]=r.value),n},{});return t}function My(){return{iconName:null,prefix:null,transform:Qe,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Nc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=Fy(e),r=n.iconName,o=n.prefix,a=n.rest,i=jy(e),s=Ra("parseNodeAttributes",{},e),l=t.styleParser?Ty(e):[];return A({iconName:r,prefix:o,transform:Qe,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:l,attributes:i}},s)}var Ly=Ve.styles;function Cc(e){var t=Y.autoReplaceSvg==="nest"?Nc(e,{styleParser:!1}):Nc(e);return~t.extra.classes.indexOf(Ku)?Ot("generateLayersText",e,t):Ot("generateSvgReplacementMutation",e,t)}function _y(){return[].concat(ze(Lu),ze(zu))}function Oc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!at)return Promise.resolve();var n=pe.documentElement.classList,r=function(m){return n.add("".concat(Wu,"-").concat(m))},o=function(m){return n.remove("".concat(Wu,"-").concat(m))},a=Y.autoFetchSvg?_y():vu.concat(Object.keys(Ly));a.includes("fa")||a.push("fa");var i=[".".concat(Ku,":not([").concat(Bt,"])")].concat(a.map(function(c){return".".concat(c,":not([").concat(Bt,"])")})).join(", ");if(i.length===0)return Promise.resolve();var s=[];try{s=sn(e.querySelectorAll(i))}catch{}if(s.length>0)r("pending"),o("complete");else return Promise.resolve();var l=Ja.begin("onTree"),u=s.reduce(function(c,m){try{var p=Cc(m);p&&c.push(p)}catch(d){Uu||d.name==="MissingIcon"&&console.error(d)}return c},[]);return new Promise(function(c,m){Promise.all(u).then(function(p){kc(p,function(){r("active"),r("complete"),o("pending"),typeof t=="function"&&t(),l(),c()})}).catch(function(p){l(),m(p)})})}function Dy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Cc(e).then(function(n){n&&kc([n],t)})}function zy(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Ua(t||{}),o=n.mask;return o&&(o=(o||{}).icon?o:Ua(o||{})),e(r,A(A({},n),{},{mask:o}))}}var Vy=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,o=r===void 0?Qe:r,a=n.symbol,i=a===void 0?!1:a,s=n.mask,l=s===void 0?null:s,u=n.maskId,c=u===void 0?null:u,m=n.classes,p=m===void 0?[]:m,d=n.attributes,g=d===void 0?{}:d,h=n.styles,v=h===void 0?{}:h;if(t){var y=t.prefix,w=t.iconName,x=t.icon;return io(A({type:"icon"},t),function(){return Wt("beforeDOMElementCreation",{iconDefinition:t,params:n}),Ga({icons:{main:Ka(x),mask:l?Ka(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:y,iconName:w,transform:A(A({},Qe),o),symbol:i,maskId:c,extra:{attributes:g,styles:v,classes:p}})})}},By={mixout:function(){return{icon:zy(Vy)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Oc,n.nodeCallback=Dy,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,o=r===void 0?pe:r,a=n.callback,i=a===void 0?function(){}:a;return Oc(o,i)},t.generateSvgReplacementMutation=function(n,r){var o=r.iconName,a=r.prefix,i=r.transform,s=r.symbol,l=r.mask,u=r.maskId,c=r.extra;return new Promise(function(m,p){Promise.all([Xa(o,a),l.iconName?Xa(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(d){var g=Qr(d,2),h=g[0],v=g[1];m([n,Ga({icons:{main:h,mask:v},prefix:a,iconName:o,transform:i,symbol:s,maskId:u,extra:c,watchable:!0})])}).catch(p)})},t.generateAbstractIcon=function(n){var r=n.children,o=n.attributes,a=n.main,i=n.transform,s=n.styles,l=no(s);l.length>0&&(o.style=l);var u;return Da(i)&&(u=Ot("generateAbstractTransformGrouping",{main:a,transform:i,containerWidth:a.width,iconWidth:a.width})),r.push(u||a.icon),{children:r,attributes:o}}}},Hy={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.classes,a=o===void 0?[]:o;return io({type:"layer"},function(){Wt("beforeDOMElementCreation",{assembler:n,params:r});var i=[];return n(function(s){Array.isArray(s)?s.map(function(l){i=i.concat(l.abstract)}):i=i.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(Y.cssPrefix,"-layers")].concat(ze(a)).join(" ")},children:i}]})}}}},Wy={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};r.title;var o=r.classes,a=o===void 0?[]:o,i=r.attributes,s=i===void 0?{}:i,l=r.styles,u=l===void 0?{}:l;return io({type:"counter",content:n},function(){return Wt("beforeDOMElementCreation",{content:n,params:r}),wy({content:n.toString(),extra:{attributes:s,styles:u,classes:["".concat(Y.cssPrefix,"-layers-counter")].concat(ze(a))}})})}}}},Ry={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.transform,a=o===void 0?Qe:o,i=r.classes,s=i===void 0?[]:i,l=r.attributes,u=l===void 0?{}:l,c=r.styles,m=c===void 0?{}:c;return io({type:"text",content:n},function(){return Wt("beforeDOMElementCreation",{content:n,params:r}),bc({content:n,transform:A(A({},Qe),a),extra:{attributes:u,styles:m,classes:["".concat(Y.cssPrefix,"-layers-text")].concat(ze(s))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var o=r.transform,a=r.extra,i=null,s=null;if(gu){var l=parseInt(getComputedStyle(n).fontSize,10),u=n.getBoundingClientRect();i=u.width/l,s=u.height/l}return Promise.resolve([n,bc({content:n.innerHTML,width:i,height:s,transform:o,extra:a,watchable:!0})])}}},Ac=new RegExp('"',"ug"),Ic=[1105920,1112319],Tc=A(A(A(A({},{FontAwesome:{normal:"fas",400:"fas"}}),kb),I0),Fb),ei=Object.keys(Tc).reduce(function(e,t){return e[t.toLowerCase()]=Tc[t],e},{}),Uy=Object.keys(ei).reduce(function(e,t){var n=ei[t];return e[t]=n[900]||ze(Object.entries(n))[0][1],e},{});function Gy(e){var t=e.replace(Ac,"");return rc(ze(t)[0]||"")}function Yy(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),n=e.getPropertyValue("content"),r=n.replace(Ac,""),o=r.codePointAt(0),a=o>=Ic[0]&&o<=Ic[1],i=r.length===2?r[0]===r[1]:!1;return a||i||t}function Ky(e,t){var n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),o=isNaN(r)?"normal":r;return(ei[n]||{})[o]||Uy[n]}function Fc(e,t){var n="".concat(T0).concat(t.replace(":","-"));return new Promise(function(r,o){if(e.getAttribute(n)!==null)return r();var a=sn(e.children),i=a.filter(function(C){return C.getAttribute(Oa)===t})[0],s=Nt.getComputedStyle(e,t),l=s.getPropertyValue("font-family"),u=l.match(_0),c=s.getPropertyValue("font-weight"),m=s.getPropertyValue("content");if(i&&!u)return e.removeChild(i),r();if(u&&m!=="none"&&m!==""){var p=s.getPropertyValue("content"),d=Ky(l,c),g=Gy(p),h=u[0].startsWith("FontAwesome"),v=Yy(s),y=Wa(d,g),w=y;if(h){var x=oy(g);x.iconName&&x.prefix&&(y=x.iconName,d=x.prefix)}if(y&&!v&&(!i||i.getAttribute(Aa)!==d||i.getAttribute(Ia)!==w)){e.setAttribute(n,w),i&&e.removeChild(i);var k=My(),S=k.extra;S.attributes[Oa]=t,Xa(y,d).then(function(C){var T=Ga(A(A({},k),{},{icons:{main:C,mask:mc()},prefix:d,iconName:w,extra:S,watchable:!0})),O=pe.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(O,e.firstChild):e.appendChild(O),O.outerHTML=T.map(function(G){return Jn(G)}).join(`
|
|
566
|
+
`),e.removeAttribute(n),r()}).catch(o)}else r()}else r()})}function Xy(e){return Promise.all([Fc(e,"::before"),Fc(e,"::after")])}function qy(e){return e.parentNode!==document.head&&!~j0.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Oa)&&(!e.parentNode||e.parentNode.tagName!=="svg")}var Jy=function(t){return!!t&&Ru.some(function(n){return t.includes(n)})},Qy=function(t){if(!t)return[];var n=new Set,r=t.split(/,(?![^()]*\))/).map(function(l){return l.trim()});r=r.flatMap(function(l){return l.includes("(")?l:l.split(",").map(function(u){return u.trim()})});var o=Jr(r),a;try{for(o.s();!(a=o.n()).done;){var i=a.value;if(Jy(i)){var s=Ru.reduce(function(l,u){return l.replace(u,"")},i);s!==""&&s!=="*"&&n.add(s)}}}catch(l){o.e(l)}finally{o.f()}return n};function jc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(at){var n;if(t)n=e;else if(Y.searchPseudoElementsFullScan)n=e.querySelectorAll("*");else{var r=new Set,o=Jr(document.styleSheets),a;try{for(o.s();!(a=o.n()).done;){var i=a.value;try{var s=Jr(i.cssRules),l;try{for(s.s();!(l=s.n()).done;){var u=l.value,c=Qy(u.selectorText),m=Jr(c),p;try{for(m.s();!(p=m.n()).done;){var d=p.value;r.add(d)}}catch(h){m.e(h)}finally{m.f()}}}catch(h){s.e(h)}finally{s.f()}}catch(h){Y.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(i.href," (").concat(h.message,`)
|
|
567
|
+
If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(h){o.e(h)}finally{o.f()}if(!r.size)return;var g=Array.from(r).join(", ");try{n=e.querySelectorAll(g)}catch{}}return new Promise(function(h,v){var y=sn(n).filter(qy).map(Xy),w=Ja.begin("searchPseudoElements");$c(),Promise.all(y).then(function(){w(),Za(),h()}).catch(function(){w(),Za(),v()})})}}var Zy={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=jc,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,o=r===void 0?pe:r;Y.searchPseudoElements&&jc(o)}}},Mc=!1,ex={mixout:function(){return{dom:{unwatch:function(){$c(),Mc=!0}}}},hooks:function(){return{bootstrap:function(){Pc(Ra("mutationObserverCallbacks",{}))},noAuto:function(){Iy()},watch:function(n){var r=n.observeMutationsRoot;Mc?Za():Pc(Ra("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},Lc=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,o){var a=o.toLowerCase().split("-"),i=a[0],s=a.slice(1).join("-");if(i&&s==="h")return r.flipX=!0,r;if(i&&s==="v")return r.flipY=!0,r;if(s=parseFloat(s),isNaN(s))return r;switch(i){case"grow":r.size=r.size+s;break;case"shrink":r.size=r.size-s;break;case"left":r.x=r.x-s;break;case"right":r.x=r.x+s;break;case"up":r.y=r.y-s;break;case"down":r.y=r.y+s;break;case"rotate":r.rotate=r.rotate+s;break}return r},n)},tx={mixout:function(){return{parse:{transform:function(n){return Lc(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-transform");return o&&(n.transform=Lc(o)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,o=n.transform,a=n.containerWidth,i=n.iconWidth,s={transform:"translate(".concat(a/2," 256)")},l="translate(".concat(o.x*32,", ").concat(o.y*32,") "),u="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),c="rotate(".concat(o.rotate," 0 0)"),m={transform:"".concat(l," ").concat(u," ").concat(c)},p={transform:"translate(".concat(i/2*-1," -256)")},d={outer:s,inner:m,path:p};return{tag:"g",attributes:A({},d.outer),children:[{tag:"g",attributes:A({},d.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:A(A({},r.icon.attributes),d.path)}]}]}}}},ti={x:0,y:0,width:"100%",height:"100%"};function _c(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function nx(e){return e.tag==="g"?e.children:[e]}var rx={hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-mask"),a=o?ao(o.split(" ").map(function(i){return i.trim()})):mc();return a.prefix||(a.prefix=Ct()),n.mask=a,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,o=n.attributes,a=n.main,i=n.mask,s=n.maskId,l=n.transform,u=a.width,c=a.icon,m=i.width,p=i.icon,d=K0({transform:l,containerWidth:m,iconWidth:u}),g={tag:"rect",attributes:A(A({},ti),{},{fill:"white"})},h=c.children?{children:c.children.map(_c)}:{},v={tag:"g",attributes:A({},d.inner),children:[_c(A({tag:c.tag,attributes:A(A({},c.attributes),d.path)},h))]},y={tag:"g",attributes:A({},d.outer),children:[v]},w="mask-".concat(s||qu()),x="clip-".concat(s||qu()),k={tag:"mask",attributes:A(A({},ti),{},{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[g,y]},S={tag:"defs",children:[{tag:"clipPath",attributes:{id:x},children:nx(p)},k]};return r.push(S,{tag:"rect",attributes:A({fill:"currentColor","clip-path":"url(#".concat(x,")"),mask:"url(#".concat(w,")")},ti)}),{children:r,attributes:o}}}},ox={provides:function(t){var n=!1;Nt.matchMedia&&(n=Nt.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],o={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:A(A({},o),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var i=A(A({},a),{},{attributeName:"opacity"}),s={tag:"circle",attributes:A(A({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||s.children.push({tag:"animate",attributes:A(A({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:A(A({},i),{},{values:"1;0;1;1;0;1;"})}),r.push(s),r.push({tag:"path",attributes:A(A({},o),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:A(A({},i),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:A(A({},o),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:A(A({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},ax={hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-symbol"),a=o===null?!1:o===""?!0:o;return n.symbol=a,n}}}},ix=[J0,By,Hy,Wy,Ry,Zy,ex,tx,rx,ox,ax];my(ix,{mixoutsTo:Te}),Te.noAuto;var er=Te.config;Te.library,Te.dom;var Dc=Te.parse;Te.findIconDefinition,Te.toHtml;var sx=Te.icon;Te.layer,Te.text,Te.counter;function lx(e){return e=e-0,e===e}function zc(e){return lx(e)?e:(e=e.replace(/[_-]+(.)?/g,(t,n)=>n?n.toUpperCase():""),e.charAt(0).toLowerCase()+e.slice(1))}function ux(e){return e.charAt(0).toUpperCase()+e.slice(1)}var cn=new Map,cx=1e3;function fx(e){if(cn.has(e))return cn.get(e);const t={};let n=0;const r=e.length;for(;n<r;){const o=e.indexOf(";",n),a=o===-1?r:o,i=e.slice(n,a).trim();if(i){const s=i.indexOf(":");if(s>0){const l=i.slice(0,s).trim(),u=i.slice(s+1).trim();if(l&&u){const c=zc(l);t[c.startsWith("webkit")?ux(c):c]=u}}}n=a+1}if(cn.size===cx){const o=cn.keys().next().value;o&&cn.delete(o)}return cn.set(e,t),t}function Vc(e,t,n={}){if(typeof t=="string")return t;const r=(t.children||[]).map(c=>Vc(e,c)),o=t.attributes||{},a={};for(const[c,m]of Object.entries(o))switch(!0){case c==="class":{a.className=m;break}case c==="style":{a.style=fx(String(m));break}case c.startsWith("aria-"):case c.startsWith("data-"):{a[c.toLowerCase()]=m;break}default:a[zc(c)]=m}const{style:i,role:s,"aria-label":l,...u}=n;return i&&(a.style=a.style?{...a.style,...i}:i),s&&(a.role=s),l&&(a["aria-label"]=l,a["aria-hidden"]="false"),e(t.tag,{...a,...u},...r)}var dx=Vc.bind(null,f.createElement),Bc=(e,t)=>{const n=f.useId();return e||(t?n:void 0)},mx=class{constructor(e="react-fontawesome"){this.enabled=!1;let t=!1;try{t=typeof process<"u"&&process.env?.NODE_ENV==="development"}catch{}this.scope=e,this.enabled=t}log(...e){this.enabled&&console.log(`[${this.scope}]`,...e)}warn(...e){this.enabled&&console.warn(`[${this.scope}]`,...e)}error(...e){this.enabled&&console.error(`[${this.scope}]`,...e)}};typeof process<"u"&&process.env?.FA_VERSION;var px="searchPseudoElementsFullScan"in er?"7.0.0":"6.0.0",gx=Number.parseInt(px)>=7,tr="fa",lt={beat:"fa-beat",fade:"fa-fade",beatFade:"fa-beat-fade",bounce:"fa-bounce",shake:"fa-shake",spin:"fa-spin",spinPulse:"fa-spin-pulse",spinReverse:"fa-spin-reverse",pulse:"fa-pulse"},hx={left:"fa-pull-left",right:"fa-pull-right"},vx={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},bx={"2xs":"fa-2xs",xs:"fa-xs",sm:"fa-sm",lg:"fa-lg",xl:"fa-xl","2xl":"fa-2xl","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x"},ut={border:"fa-border",fixedWidth:"fa-fw",flip:"fa-flip",flipHorizontal:"fa-flip-horizontal",flipVertical:"fa-flip-vertical",inverse:"fa-inverse",rotateBy:"fa-rotate-by",swapOpacity:"fa-swap-opacity",widthAuto:"fa-width-auto"};function yx(e){const t=er.cssPrefix||er.familyPrefix||tr;return t===tr?e:e.replace(new RegExp(String.raw`(?<=^|\s)${tr}-`,"g"),`${t}-`)}function xx(e){const{beat:t,fade:n,beatFade:r,bounce:o,shake:a,spin:i,spinPulse:s,spinReverse:l,pulse:u,fixedWidth:c,inverse:m,border:p,flip:d,size:g,rotation:h,pull:v,swapOpacity:y,rotateBy:w,widthAuto:x,className:k}=e,S=[];return k&&S.push(...k.split(" ")),t&&S.push(lt.beat),n&&S.push(lt.fade),r&&S.push(lt.beatFade),o&&S.push(lt.bounce),a&&S.push(lt.shake),i&&S.push(lt.spin),l&&S.push(lt.spinReverse),s&&S.push(lt.spinPulse),u&&S.push(lt.pulse),c&&S.push(ut.fixedWidth),m&&S.push(ut.inverse),p&&S.push(ut.border),d===!0&&S.push(ut.flip),(d==="horizontal"||d==="both")&&S.push(ut.flipHorizontal),(d==="vertical"||d==="both")&&S.push(ut.flipVertical),g!=null&&S.push(bx[g]),h!=null&&h!==0&&S.push(vx[h]),v!=null&&S.push(hx[v]),y&&S.push(ut.swapOpacity),gx?(w&&S.push(ut.rotateBy),x&&S.push(ut.widthAuto),(er.cssPrefix||er.familyPrefix||tr)===tr?S:S.map(yx)):S}var wx=e=>typeof e=="object"&&"icon"in e&&!!e.icon;function Hc(e){if(e)return wx(e)?e:Dc.icon(e)}function Sx(e){return Object.keys(e)}var Wc=new mx("FontAwesomeIcon"),Rc={border:!1,className:"",mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1},Ex=new Set(Object.keys(Rc)),Ne=f.forwardRef((e,t)=>{const n={...Rc,...e},{icon:r,mask:o,symbol:a,title:i,titleId:s,maskId:l,transform:u}=n,c=Bc(l,!!o),m=Bc(s,!!i),p=Hc(r);if(!p)return Wc.error("Icon lookup is undefined",r),null;const d=xx(n),g=typeof u=="string"?Dc.transform(u):u,h=Hc(o),v=sx(p,{...d.length>0&&{classes:d},...g&&{transform:g},...h&&{mask:h},symbol:a,title:i,titleId:m,maskId:c});if(!v)return Wc.error("Could not find icon",p),null;const{abstract:y}=v,w={ref:t};for(const x of Sx(n))Ex.has(x)||(w[x]=n[x]);return dx(y[0],w)});Ne.displayName="FontAwesomeIcon";var kx={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M290.4 19.8C295.4 7.8 307.1 0 320 0L480 0c17.7 0 32 14.3 32 32l0 160c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9L400 157.3 246.6 310.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L354.7 112 297.4 54.6c-9.2-9.2-11.9-22.9-6.9-34.9zM0 176c0-44.2 35.8-80 80-80l80 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-80 0c-8.8 0-16 7.2-16 16l0 256c0 8.8 7.2 16 16 16l256 0c8.8 0 16-7.2 16-16l0-80c0-17.7 14.3-32 32-32s32 14.3 32 32l0 80c0 44.2-35.8 80-80 80L80 512c-44.2 0-80-35.8-80-80L0 176z"]},Uc=kx,$x={prefix:"fas",iconName:"right-from-bracket",icon:[512,512,["sign-out-alt"],"f2f5","M505 273c9.4-9.4 9.4-24.6 0-33.9L361 95c-6.9-6.9-17.2-8.9-26.2-5.2S320 102.3 320 112l0 80-112 0c-26.5 0-48 21.5-48 48l0 32c0 26.5 21.5 48 48 48l112 0 0 80c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2L505 273zM160 96c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 32C43 32 0 75 0 128L0 384c0 53 43 96 96 96l64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l64 0z"]},Px={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z"]},Nx={prefix:"fas",iconName:"house",icon:[512,512,[127968,63498,63500,"home","home-alt","home-lg-alt"],"f015","M277.8 8.6c-12.3-11.4-31.3-11.4-43.5 0l-224 208c-9.6 9-12.8 22.9-8 35.1S18.8 272 32 272l16 0 0 176c0 35.3 28.7 64 64 64l288 0c35.3 0 64-28.7 64-64l0-176 16 0c13.2 0 25-8.1 29.8-20.3s1.6-26.2-8-35.1l-224-208zM240 320l32 0c26.5 0 48 21.5 48 48l0 96-128 0 0-96c0-26.5 21.5-48 48-48z"]},Cx=Nx,co={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]},Gc={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M201.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 338.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},Ox={prefix:"fas",iconName:"inbox",icon:[512,512,[],"f01c","M91.8 32C59.9 32 32.9 55.4 28.4 86.9L.6 281.2c-.4 3-.6 6-.6 9.1L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-125.7c0-3-.2-6.1-.6-9.1L483.6 86.9C479.1 55.4 452.1 32 420.2 32L91.8 32zm0 64l328.5 0 27.4 192-59.9 0c-12.1 0-23.2 6.8-28.6 17.7l-14.3 28.6c-5.4 10.8-16.5 17.7-28.6 17.7l-120.4 0c-12.1 0-23.2-6.8-28.6-17.7l-14.3-28.6c-5.4-10.8-16.5-17.7-28.6-17.7L64.3 288 91.8 96z"]},Ax={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 0c14.7 0 28.2 8.1 35.2 21l216 400c6.7 12.4 6.4 27.4-.8 39.5S486.1 480 472 480L40 480c-14.1 0-27.2-7.4-34.4-19.5s-7.5-27.1-.8-39.5l216-400c7-12.9 20.5-21 35.2-21zm0 352a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.5 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"]},Ix={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]};const Yc=le("group flex w-full items-center justify-between px-4 py-3 text-left text-sm font-medium transition-all focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500/75 cursor-pointer",{variants:{variant:{soft:"bg-gray-100 text-gray-900 hover:bg-gray-200",filled:"bg-gray-300 text-gray-900 hover:bg-gray-400/80",outline:"bg-white border border-gray-200 text-gray-900 hover:bg-gray-50",ghost:"bg-transparent text-gray-700 hover:bg-gray-100 hover:text-gray-900"},rounded:{true:"rounded-md",false:""}},defaultVariants:{variant:"soft",rounded:!0}}),Kc=le("px-4 pb-4 pt-1 text-sm",{variants:{variant:{soft:"bg-gray-100 text-gray-700",filled:"bg-gray-300 text-gray-800",outline:"bg-white border-x border-b border-gray-200 text-gray-600",ghost:"bg-transparent text-gray-600"}},defaultVariants:{variant:"soft"}}),Xc=({title:e,children:t,variant:n,className:r,defaultOpen:o=!1,isOpen:a,onToggle:i,icon:s,...l})=>{const[u,c]=f.useState(o),m=a!==void 0?a:u,p=()=>{const d=!m;a===void 0&&c(d),i?.(d)};return b.jsxs("div",{className:D("w-full",r),...l,children:[b.jsxs("button",{type:"button",onClick:p,"aria-expanded":m,className:D(Yc({variant:n}),m?"rounded-t-md rounded-b-none":"rounded-md"),children:[b.jsx("span",{className:"flex-1 text-left",children:e}),b.jsx("span",{className:D("ml-2 flex items-center transition-transform duration-200",m?"rotate-180":""),children:s||b.jsx(Ne,{icon:Gc,className:"h-3.5 w-3.5 opacity-60"})})]}),b.jsx(Zt,{show:m,enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",children:b.jsx("div",{className:D(Kc({variant:n}),"rounded-b-md"),children:t})})]})},qc=le("flex w-full rounded-md border py-2.5 px-4 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 disabled:cursor-not-allowed disabled:opacity-50 transition-all",{variants:{variant:{outline:"border-gray-300 bg-white placeholder:text-gray-400 focus-visible:border-primary-500",soft:"border-transparent bg-gray-100 text-gray-900 placeholder:text-gray-400 focus-visible:bg-white focus-visible:border-primary-500",ghost:"border-transparent bg-transparent text-gray-900 placeholder:text-gray-400 hover:bg-gray-100 focus-visible:bg-gray-100",filled:"border-transparent bg-gray-300 text-gray-900 placeholder:text-gray-500 focus-visible:bg-white focus-visible:border-primary-500"},error:{true:"border-error-500 focus-visible:ring-error-500 text-error-600 placeholder:text-error-300",false:""}},defaultVariants:{variant:"outline",error:!1}}),Jc=f.forwardRef(({className:e,type:t,label:n,helperText:r,errorMessage:o,variant:a,error:i,startIcon:s,endIcon:l,disabled:u,...c},m)=>{const p=!!o||i;return b.jsxs(ca,{className:D("w-full space-y-1.5",e),children:[n&&b.jsx(Pn,{className:"block text-sm font-medium leading-none text-gray-900 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:n}),b.jsxs("div",{className:"relative",children:[s&&b.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500",children:s}),b.jsx(Tg,{ref:m,type:t,disabled:u,className:D(qc({variant:a,error:p}),s&&"pl-10",l&&"pr-10"),...c}),l&&b.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-500",children:l})]}),(r||o)&&b.jsx(En,{className:D("text-xs",p?"text-error-600 font-medium":"text-gray-500"),children:o||r})]})});Jc.displayName="Input";const Qc=le("inline-flex items-center gap-1.5 font-semibold transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 rounded-sm cursor-pointer",{variants:{variant:{primary:"text-primary-500 hover:text-primary-600",neutral:"text-gray-600 hover:text-gray-900",danger:"text-error-600 hover:text-error-700",white:"text-gray-200 hover:text-white"},underline:{always:"underline underline-offset-4",hover:"no-underline hover:underline underline-offset-4",none:"no-underline"},size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{variant:"primary",underline:"hover",size:"md"}}),fn=({as:e,className:t,variant:n,underline:r,size:o,external:a,showExternalIcon:i,children:s,...l})=>{const u=e||"a",c=l.href,m=a||typeof c=="string"&&c.startsWith("http"),p=i??m,d=D(Qc({variant:n,underline:r,size:o}),t);return m?b.jsxs("a",{href:c,className:d,target:"_blank",rel:"noopener noreferrer",...l,children:[s,p&&b.jsx(Ne,{icon:Uc,className:"ml-0.5 h-3 w-3","data-testid":"external-icon"})]}):b.jsxs(u,{className:d,...l,children:[s,p&&b.jsx(Ne,{icon:Uc,className:"ml-1 h-3 w-3 opacity-70","data-testid":"external-icon"})]})},Zc=le("relative w-full cursor-pointer rounded-md py-2.5 pl-4 pr-10 text-left text-sm font-medium shadow-sm ring-1 ring-inset transition-all focus:outline-none focus:ring-2 focus:ring-primary-500 sm:leading-6",{variants:{variant:{outline:"bg-white text-gray-900 ring-gray-300 hover:bg-gray-50",soft:"bg-gray-100 text-gray-900 ring-transparent hover:bg-gray-200",ghost:"bg-transparent text-gray-700 ring-transparent hover:bg-gray-100 hover:text-gray-900",filled:"bg-gray-300 text-gray-900 ring-transparent hover:bg-gray-400"},error:{true:"ring-error-500 text-error-600 focus:ring-error-500",false:""}},defaultVariants:{variant:"outline",error:!1}}),Tx=({options:e,value:t,onChange:n,placeholder:r="Select an option",disabled:o=!1,variant:a,error:i,className:s,label:l})=>{const u=e.find(c=>c.value===t);return b.jsx(Jg,{value:t??void 0,onChange:n,disabled:o,children:b.jsxs("div",{className:D("flex flex-col gap-1.5",s),children:[l&&b.jsx(wl,{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 text-left",children:l}),b.jsxs("div",{className:"relative",children:[b.jsxs(xl,{className:D(Zc({variant:a,error:i})),children:[b.jsx("span",{className:D("block truncate",!u&&"text-gray-500"),children:u?u.label:r}),b.jsx("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",children:b.jsx(Ne,{icon:Gc,className:"h-3.5 w-3.5 text-gray-400","aria-hidden":"true"})})]}),b.jsx(Wn,{children:b.jsx(Zt,{as:f.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:b.jsx(Sl,{anchor:"bottom start",className:D("w-(--button-width) z-50 rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black/5 focus:outline-none sm:text-sm","[--anchor-gap:4px]"),children:e.map(c=>b.jsx(El,{value:c.value,disabled:c.disabled,className:({focus:m,selected:p,disabled:d})=>D("relative cursor-default select-none py-2.5 pl-4 pr-9 transition-colors",m?"bg-primary-100 text-primary-900":"text-gray-900",p&&!m&&"bg-gray-50",d&&"opacity-50 cursor-not-allowed"),children:({selected:m,focus:p})=>b.jsxs(b.Fragment,{children:[b.jsx("span",{className:D("block truncate",m?"font-semibold":"font-normal"),children:c.label}),m?b.jsx("span",{className:D("absolute inset-y-0 right-0 flex items-center pr-4","text-primary-600"),children:b.jsx(Ne,{icon:Px,className:"h-3.5 w-3.5"})}):null]})},c.value))})})})]})]})})},ef=le("group relative inline-flex shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{variant:{primary:"bg-gray-200 data-[checked]:bg-primary-500 focus-visible:ring-primary-500",success:"bg-gray-200 data-[checked]:bg-green-500 focus-visible:ring-green-500",danger:"bg-gray-200 data-[checked]:bg-error-500 focus-visible:ring-error-500",neutral:"bg-gray-200 data-[checked]:bg-gray-600 focus-visible:ring-gray-600"},size:{sm:"h-5 w-9",md:"h-6 w-11",lg:"h-7 w-14"}},defaultVariants:{variant:"primary",size:"md"}}),tf=le("pointer-events-none inline-block rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out transform",{variants:{size:{sm:"h-4 w-4 translate-x-0 group-data-[checked]:translate-x-4",md:"h-5 w-5 translate-x-0 group-data-[checked]:translate-x-5",lg:"h-6 w-6 translate-x-0 group-data-[checked]:translate-x-7"}},defaultVariants:{size:"md"}}),Fx=({checked:e,onChange:t,label:n,description:r,disabled:o=!1,size:a,variant:i,className:s,ariaLabel:l})=>b.jsxs(ca,{as:"div",className:D("flex items-center justify-between gap-4",s),children:[(n||r)&&b.jsxs("span",{className:"flex flex-col",children:[n&&b.jsx(Pn,{passive:!0,className:D("text-sm font-medium text-gray-900",o&&"opacity-50"),children:n}),r&&b.jsx(En,{className:D("text-xs text-gray-500",o&&"opacity-50"),children:r})]}),b.jsxs(Qh,{checked:e,onChange:t,disabled:o,"aria-label":l,className:D(ef({variant:i,size:a})),children:[b.jsx("span",{className:"sr-only",children:n||l||"Toggle setting"}),b.jsx("span",{"aria-hidden":"true",className:D(tf({size:a}))})]})]}),nf=le("flex w-full min-h-[80px] rounded-md border py-2.5 px-4 text-sm ring-offset-background placeholder:text-gray-400 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 disabled:cursor-not-allowed disabled:opacity-50 transition-all",{variants:{variant:{outline:"border-gray-300 bg-white focus-visible:border-primary-500",soft:"border-transparent bg-gray-100 text-gray-900 focus-visible:bg-white focus-visible:border-primary-500",ghost:"border-transparent bg-transparent text-gray-900 hover:bg-gray-100 focus-visible:bg-gray-100",filled:"border-transparent bg-gray-300 text-gray-900 focus-visible:bg-white focus-visible:border-primary-500"},error:{true:"border-error-500 focus-visible:ring-error-500 text-error-600 placeholder:text-error-300",false:""},resize:{none:"resize-none",vertical:"resize-y",horizontal:"resize-x",both:"resize"}},defaultVariants:{variant:"outline",error:!1,resize:"vertical"}}),rf=f.forwardRef(({className:e,label:t,helperText:n,errorMessage:r,variant:o,error:a,resize:i,disabled:s,...l},u)=>{const c=!!r||a;return b.jsxs(ca,{className:D("w-full space-y-1.5",e),children:[t&&b.jsx(Pn,{className:"block text-sm font-medium leading-none text-gray-900 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:t}),b.jsx(tv,{ref:u,disabled:s,className:D(nf({variant:o,resize:i,error:c})),...l}),(n||r)&&b.jsx(En,{className:D("text-xs",c?"text-error-600 font-medium":"text-gray-500"),children:r||n})]})});rf.displayName="Textarea";const jx=({items:e,allowMultiple:t=!1,variant:n="soft",className:r,showDividers:o=!1,defaultOpenIds:a=[]})=>{const[i,s]=f.useState(new Set(a)),l=u=>{s(c=>{const m=new Set(c),p=m.has(u);return t?p?m.delete(u):m.add(u):(m.clear(),p||m.add(u)),m})};return b.jsx("div",{className:D("w-full space-y-1",r),children:e.map((u,c)=>b.jsxs("div",{className:"relative",children:[o&&c>0&&b.jsx("div",{className:"mx-4 h-px bg-gray-200/50 mb-1"}),b.jsx(Xc,{title:u.title,variant:n,isOpen:i.has(u.id),onToggle:()=>l(u.id),children:u.content})]},u.id))})},ni=le("flex items-center text-sm font-medium transition-colors",{variants:{variant:{default:"text-gray-500 hover:text-gray-900",inverse:"text-gray-400 hover:text-white",primary:"text-primary-600 hover:text-primary-800"}},defaultVariants:{variant:"default"}}),Mx=({items:e,separator:t,showHomeIcon:n,variant:r,className:o,...a})=>{const i=t??b.jsx("span",{className:"text-gray-300 text-sm",children:"/"});return b.jsx("nav",{"aria-label":"Breadcrumb",className:D("flex",o),...a,children:b.jsxs("ol",{className:"flex items-center space-x-2",children:[n&&b.jsxs("li",{className:"flex items-center",children:[b.jsx(fn,{href:"/",className:D(ni({variant:r})),"aria-label":"Home",children:b.jsx(Ne,{icon:Cx,className:"h-4 w-4"})}),b.jsx("span",{className:"ml-2 flex select-none items-center","aria-hidden":"true",children:i})]}),e.map((s,l)=>{const u=l===e.length-1;return b.jsxs("li",{className:"flex items-center",children:[l>0&&b.jsx("span",{className:"mr-2 flex select-none items-center","aria-hidden":"true",children:i}),u?b.jsx("span",{className:D("font-medium text-sm cursor-default",r==="inverse"?"text-gray-300":"text-gray-400"),"aria-current":"page",children:s.label}):b.jsx(fn,{href:s.href,className:D(ni({variant:r})),children:s.label})]},s.href)})]})})},of=le("relative flex flex-col gap-4 overflow-hidden rounded-lg border p-6 shadow-sm transition-all md:flex-row md:items-center md:justify-between",{variants:{variant:{primary:"border-primary-200 bg-primary-50 text-primary-900",neutral:"border-gray-200 bg-white text-gray-900",warning:"border-amber-200 bg-amber-50 text-amber-900",error:"border-red-200 bg-red-50 text-red-900"}},defaultVariants:{variant:"primary"}}),Lx=({title:e,description:t,action:n,icon:r,variant:o,onDismiss:a,className:i,...s})=>b.jsxs("div",{className:D(of({variant:o}),i),...s,children:[b.jsxs("div",{className:"flex items-start gap-4",children:[r&&b.jsx("div",{className:"mt-1 shrink-0 opacity-80",children:r}),b.jsxs("div",{className:"flex flex-col gap-1.5",children:[b.jsx("h3",{className:"text-lg font-bold leading-tight tracking-tight",children:e}),t&&b.jsx("p",{className:"max-w-prose text-sm leading-relaxed opacity-90",children:t})]})]}),n&&b.jsx("div",{className:"shrink-0 pt-2 md:pt-0",children:n}),a&&b.jsx("div",{className:"absolute right-2 top-2",children:b.jsx(rn,{variant:"ghost",size:"sm",className:"h-8 w-8 rounded-full p-0 opacity-60 hover:opacity-100",onClick:a,"aria-label":"Dismiss",children:b.jsx(Ne,{icon:co,className:"h-4 w-4"})})})]}),af=le("flex flex-col items-center justify-center text-center p-8 rounded-lg transition-colors",{variants:{variant:{dashed:"border-2 border-dashed border-gray-300 bg-gray-50 hover:bg-gray-100/50",simple:"border-transparent bg-transparent p-0"}},defaultVariants:{variant:"dashed"}}),_x=({title:e,description:t,icon:n,action:r,variant:o,className:a,...i})=>b.jsxs("div",{className:D(af({variant:o}),a),...i,children:[n&&b.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-gray-100 text-gray-400",children:b.jsx("div",{className:"h-6 w-6 [&>svg]:h-full [&>svg]:w-full",children:n})}),b.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:e}),t&&b.jsx("p",{className:"mt-1 max-w-sm text-sm text-gray-500",children:t}),r&&b.jsx("div",{className:"mt-6",children:r})]}),sf=le("flex flex-col items-center justify-center text-center p-8 rounded-lg transition-colors",{variants:{variant:{card:"border border-error-200 bg-error-50 text-error-900",page:"bg-transparent text-gray-900 max-w-lg mx-auto py-16"}},defaultVariants:{variant:"card"}}),Dx=({title:e="An Error Occurred",description:t,onRetry:n,action:r,icon:o,variant:a,className:i,...s})=>b.jsxs("div",{className:D(sf({variant:a}),i),...s,children:[b.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-error-100 text-error-600",children:b.jsx("div",{className:"h-6 w-6 flex items-center justify-center",children:o||b.jsx(Ne,{icon:Ax,className:"h-full w-full"})})}),b.jsx("h3",{className:"text-lg font-bold tracking-tight",children:e}),b.jsx("p",{className:D("mt-2 text-sm leading-relaxed",a==="card"?"text-error-800/80":"text-gray-500"),children:t}),b.jsx("div",{className:"mt-6",children:r||(n?b.jsx(rn,{onClick:n,colorScheme:"error",variant:a==="card"?"outline":"solid",children:"Try Again"}):null)})]}),lf=le("flex items-center gap-2 transition-all",{variants:{state:{default:"",winner:"",loser:"opacity-50 grayscale",tie:""}},defaultVariants:{state:"default"}}),uf=le("h-8 w-8 object-contain transition-all rounded-full",{variants:{state:{default:"",winner:"ring-2 ring-success-500 bg-success-200/25",loser:"",tie:"ring-2 ring-gray-400"}},defaultVariants:{state:"default"}}),cf=f.forwardRef(({awayTeam:e,homeTeam:t,isCompleted:n=!1,isTie:r=!1,className:o,...a},i)=>{const s=c=>n?r?"tie":c.isWinner?"winner":"loser":"default",l=s(e),u=s(t);return b.jsxs("button",{ref:i,type:"button",className:D("flex items-center gap-3 rounded-lg p-2 text-left transition hover:bg-gray-100 dark:hover:bg-slate-800",o),...a,children:[b.jsxs("div",{className:lf({state:l}),children:[b.jsx("div",{className:"relative",children:b.jsx("img",{src:e.logoSrc,alt:e.name||`Team ${e.id}`,className:uf({state:l})})}),b.jsxs("div",{className:"flex flex-col items-end",children:[e.accessory&&b.jsx("span",{className:D("text-sm text-gray-800 dark:text-gray-300",e.isWinner&&"font-bold"),children:e.accessory}),n&&e.score!==void 0&&b.jsx("span",{className:"text-xs font-mono font-semibold text-gray-900 dark:text-white",children:e.score})]})]}),b.jsx("span",{className:"text-xs font-medium text-gray-500 self-center px-1",children:n?"-":"@"}),b.jsxs("div",{className:lf({state:u}),children:[b.jsxs("div",{className:"flex flex-col items-start",children:[t.accessory&&b.jsx("span",{className:D("text-sm text-gray-800 dark:text-gray-300",t.isWinner&&"font-bold"),children:t.accessory}),n&&t.score!==void 0&&b.jsx("span",{className:"text-xs font-mono font-semibold text-gray-900 dark:text-white",children:t.score})]}),b.jsx("div",{className:"relative",children:b.jsx("img",{src:t.logoSrc,alt:t.name||`Team ${t.id}`,className:uf({state:u})})})]})]})});cf.displayName="MatchupCard";const ff=le("w-full z-20 shadow-lg backdrop-blur-sm transition-all",{variants:{position:{top:"sticky top-0",bottom:"sticky bottom-0 border-t",static:"relative"},themeMode:{light:"bg-white/90 border-gray-200 text-gray-900",dark:"bg-slate-800/90 border-slate-700 text-white"}},defaultVariants:{position:"top",themeMode:"light"}}),df=f.forwardRef(({title:e,subtitle:t,badge:n,actions:r,children:o,position:a,themeMode:i,className:s,...l},u)=>b.jsx("div",{ref:u,className:D(ff({position:a,themeMode:i}),s),...l,children:b.jsxs("div",{className:"container mx-auto p-4",children:[b.jsxs("div",{className:"flex justify-between items-center",children:[b.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-x-4 gap-y-2",children:[e&&b.jsx("span",{className:"font-semibold",children:e}),n&&b.jsx("div",{className:"max-w-44 sm:max-w-max mr-2",children:n})]}),r&&b.jsx("div",{className:"flex gap-2",children:r})]}),t&&b.jsx("div",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:t}),o&&b.jsx("div",{className:"flex flex-wrap items-center mt-3 pt-3 border-t border-gray-200 dark:border-slate-700 gap-y-2",children:o})]})}));df.displayName="ActionBar";const zx=864e5,Vx=6e4,Bx=36e5,mf=Symbol.for("constructDateFrom");function dn(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&mf in e?e[mf](t):e instanceof Date?new e.constructor(t):new Date(t)}function Ce(e,t){return dn(e,e)}function Hx(e,t,n){const r=Ce(e);return isNaN(t)?dn(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Wx(e,t,n){const r=Ce(e);if(isNaN(t))return dn(e,NaN);if(!t)return r;const o=r.getDate(),a=dn(e,r.getTime());a.setMonth(r.getMonth()+t+1,0);const i=a.getDate();return o>=i?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}function nr(e,t,n){const{years:r=0,months:o=0,weeks:a=0,days:i=0,hours:s=0,minutes:l=0,seconds:u=0}=t,c=Ce(e),m=o||r?Wx(c,o+r*12):c,p=i||a?Hx(m,i+a*7):m,d=l+s*60,h=(u+d*60)*1e3;return dn(e,+p+h)}function pf(e){const t=Ce(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function At(e,...t){const n=dn.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function gf(e,t){const n=Ce(e);return n.setHours(0,0,0,0),n}function Rx(e,t,n){const[r,o]=At(n?.in,e,t),a=gf(r),i=gf(o),s=+a-pf(a),l=+i-pf(i);return Math.round((s-l)/zx)}function rr(e,t){const n=+Ce(e)-+Ce(t);return n<0?-1:n>0?1:n}function Ux(e,t,n){const[r,o]=At(n?.in,e,t),a=r.getFullYear()-o.getFullYear(),i=r.getMonth()-o.getMonth();return a*12+i}function Gx(e,t,n){const[r,o]=At(n?.in,e,t);return r.getFullYear()-o.getFullYear()}function Yx(e,t,n){const[r,o]=At(n?.in,e,t),a=hf(r,o),i=Math.abs(Rx(r,o));r.setDate(r.getDate()-a*i);const s=+(hf(r,o)===-a),l=a*(i-s);return l===0?0:l}function hf(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function ri(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function Kx(e,t,n){const[r,o]=At(n?.in,e,t),a=(+r-+o)/Bx;return ri(n?.roundingMethod)(a)}function vf(e,t){return+Ce(e)-+Ce(t)}function Xx(e,t,n){const r=vf(e,t)/Vx;return ri(n?.roundingMethod)(r)}function qx(e,t){const n=Ce(e);return n.setHours(23,59,59,999),n}function Jx(e,t){const n=Ce(e),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Qx(e,t){const n=Ce(e);return+qx(n)==+Jx(n)}function Zx(e,t,n){const[r,o,a]=At(n?.in,e,e,t),i=rr(o,a),s=Math.abs(Ux(o,a));if(s<1)return 0;o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-i*s);let l=rr(o,a)===-i;Qx(r)&&s===1&&rr(r,a)===1&&(l=!1);const u=i*(s-+l);return u===0?0:u}function e1(e,t,n){const r=vf(e,t)/1e3;return ri(n?.roundingMethod)(r)}function t1(e,t,n){const[r,o]=At(n?.in,e,t),a=rr(r,o),i=Math.abs(Gx(r,o));r.setFullYear(1584),o.setFullYear(1584);const s=rr(r,o)===-a,l=a*(i-+s);return l===0?0:l}function n1(e,t){const[n,r]=At(e,t.start,t.end);return{start:n,end:r}}function r1(e,t){const{start:n,end:r}=n1(t?.in,e),o={},a=t1(r,n);a&&(o.years=a);const i=nr(n,{years:o.years}),s=Zx(r,i);s&&(o.months=s);const l=nr(i,{months:o.months}),u=Yx(r,l);u&&(o.days=u);const c=nr(l,{days:o.days}),m=Kx(r,c);m&&(o.hours=m);const p=nr(c,{hours:o.hours}),d=Xx(r,p);d&&(o.minutes=d);const g=nr(p,{minutes:o.minutes}),h=e1(r,g);return h&&(o.seconds=h),o}function o1(e,t){return+Ce(e)>+Ce(t)}const bf=e=>{const t=()=>{const o=new Date;if(o1(o,e))return{days:0,hours:0,minutes:0,seconds:0,isFinished:!0};const a=r1({start:o,end:e});return{days:a.days??0,hours:a.hours??0,minutes:a.minutes??0,seconds:a.seconds??0,isFinished:!1}},[n,r]=f.useState(t);return f.useEffect(()=>{if(isNaN(e.getTime()))return;r(t());const o=setInterval(()=>{const a=t();r(a),a.isFinished&&clearInterval(o)},1e3);return()=>clearInterval(o)},[e]),n},yf=le("font-semibold uppercase tracking-wider mb-4",{variants:{size:{xs:"text-sm",sm:"text-base",md:"text-lg",lg:"text-xl",xl:"text-2xl"},themeMode:{light:"text-gray-900",dark:"text-gray-100"}},defaultVariants:{size:"md",themeMode:"light"}}),a1=le("font-mono bg-clip-text text-transparent animate-pulse",{variants:{size:{xs:"text-2xl",sm:"text-3xl",md:"text-4xl",lg:"text-5xl",xl:"text-6xl"},themeMode:{light:"bg-gradient-to-br from-primary-700 via-accent-600 to-primary-700 drop-shadow-sm",dark:"bg-gradient-to-br from-primary-400 via-accent-300 to-primary-400 drop-shadow-md"}},defaultVariants:{size:"md",themeMode:"light"}}),i1=le("uppercase tracking-widest mt-1",{variants:{size:{xs:"text-[10px]",sm:"text-xs",md:"text-xs",lg:"text-sm",xl:"text-sm"},themeMode:{light:"text-gray-600",dark:"text-gray-400"}},defaultVariants:{size:"md",themeMode:"light"}}),fo=({value:e,label:t,size:n,themeMode:r})=>b.jsxs("div",{className:"flex flex-col items-center",children:[b.jsx("span",{className:D(a1({size:n,themeMode:r})),children:String(e).padStart(2,"0")}),b.jsx("span",{className:D(i1({size:n,themeMode:r})),children:t})]}),xf=f.forwardRef(({targetDate:e,title:t,size:n,themeMode:r="light",className:o,completionText:a,...i},s)=>{const{days:l,hours:u,minutes:c,seconds:m,isFinished:p}=bf(e);return p?a?b.jsx("div",{ref:s,className:D("font-bold w-full text-center",o),...i,children:b.jsx("h3",{className:D(yf({size:n,themeMode:r}),"mb-0"),children:a})}):null:b.jsxs("div",{ref:s,className:D("font-bold w-full text-center",o),...i,children:[t&&b.jsx("h3",{className:D(yf({size:n,themeMode:r})),children:t}),b.jsxs("div",{className:"flex justify-center gap-4 sm:gap-6 md:gap-8",children:[b.jsx(fo,{value:l,label:"Days",size:n,themeMode:r}),b.jsx(fo,{value:u,label:"Hours",size:n,themeMode:r}),b.jsx(fo,{value:c,label:"Minutes",size:n,themeMode:r}),b.jsx(fo,{value:m,label:"Seconds",size:n,themeMode:r})]})]})});xf.displayName="Countdown";const s1=le("relative w-full transform overflow-hidden rounded-2xl p-6 text-left align-middle shadow-xl transition-all",{variants:{size:{xs:"max-w-xs",sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl",full:"max-w-[95vw] m-4"},variant:{default:"border",destructive:"border-x border-b border-t-4",success:"border-x border-b border-t-4",glass:"backdrop-blur-xl border"},themeMode:{light:"",dark:""}},compoundVariants:[{variant:"default",themeMode:"light",className:"bg-white border-gray-200"},{variant:"destructive",themeMode:"light",className:"bg-white border-x-gray-200 border-b-gray-200 border-t-error-500"},{variant:"success",themeMode:"light",className:"bg-white border-x-gray-200 border-b-gray-200 border-t-success-500"},{variant:"default",themeMode:"dark",className:"bg-slate-800 border-slate-700 shadow-2xl shadow-black/50"},{variant:"destructive",themeMode:"dark",className:"bg-slate-800 border-x-slate-700 border-b-slate-700 border-t-error-500 shadow-2xl shadow-black/50"},{variant:"success",themeMode:"dark",className:"bg-slate-800 border-x-slate-700 border-b-slate-700 border-t-success-500 shadow-2xl shadow-black/50"},{variant:"glass",themeMode:"light",className:"bg-white/80 border-white/20"},{variant:"glass",themeMode:"dark",className:"bg-slate-900/80 border-slate-700/50 shadow-2xl shadow-black/50"}],defaultVariants:{size:"md",variant:"default",themeMode:"light"}}),l1=le("text-xl font-bold leading-6",{variants:{themeMode:{light:"text-gray-900",dark:"text-white"}},defaultVariants:{themeMode:"light"}}),u1=le("mt-1 text-sm",{variants:{themeMode:{light:"text-gray-500",dark:"text-gray-400"}},defaultVariants:{themeMode:"light"}}),c1=le("inline-flex rounded-md bg-transparent focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2 transition-colors",{variants:{themeMode:{light:"text-gray-400 hover:text-gray-500",dark:"text-gray-400 hover:text-gray-300"}},defaultVariants:{themeMode:"light"}}),f1=({isOpen:e,onClose:t,title:n,description:r,size:o,variant:a,themeMode:i="light",children:s,className:l})=>b.jsx(Zt,{appear:!0,show:e,as:f.Fragment,children:b.jsxs(Ng,{as:"div",className:"relative z-50",onClose:t,children:[b.jsx(Rn,{as:f.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:b.jsx(Pg,{className:D("fixed inset-0 transition-opacity",a==="glass"?"bg-slate-900/40":"bg-slate-900/60 backdrop-blur-sm")})}),b.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:b.jsx("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:b.jsx(Rn,{as:f.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:b.jsxs(ul,{className:D(s1({size:o,variant:a,themeMode:i}),l),children:[b.jsxs("div",{className:"flex items-start justify-between",children:[b.jsxs("div",{children:[b.jsx(cl,{as:"h2",className:D(l1({themeMode:i})),children:n}),r&&b.jsx("p",{className:D(u1({themeMode:i})),children:r})]}),b.jsx("div",{className:"ml-4 flex shrink-0",children:b.jsx("button",{type:"button",onClick:t,className:D(c1({themeMode:i})),"aria-label":"Close dialog",children:b.jsx(Ne,{icon:co,className:"h-5 w-5"})})})]}),b.jsx("div",{className:"mt-6",children:s})]})})})})]})}),wf=f.forwardRef(({className:e,companyName:t="Ball Collaborative",...n},r)=>{const o=new Date().getFullYear();return b.jsx("footer",{ref:r,className:D("w-full py-4 mt-auto",e),...n,children:b.jsxs("p",{className:D("text-center text-xs text-gray-100",e&&"text-inherit"),children:["© ",o," ",t,", All rights reserved."]})})});wf.displayName="Footer";const Sf=le("w-full z-30 border-b transition-colors duration-200",{variants:{variant:{slate:"bg-gray-700 border-gray-600 text-gray-100",primary:"bg-primary-900 border-primary-800 text-white",white:"bg-white border-gray-200 text-gray-900",transparent:"bg-transparent border-transparent text-white"},position:{fixed:"fixed top-0 left-0 right-0",sticky:"sticky top-0",static:"static"}},defaultVariants:{variant:"slate",position:"fixed"}}),d1=({logoSrc:e,brandName:t,items:n,activePath:r,routerElement:o,user:a,onLogout:i,onInboxClick:s,className:l,variant:u,position:c,themeMode:m,notificationVariant:p="error",...d})=>{const g=(a?.notificationCount||0)>0,v=(m??(u==="white"?"light":"dark"))==="dark",y={brand:v?"text-white hover:text-white/80":"text-gray-900 hover:text-gray-600",linkBase:v?"text-gray-300 hover:text-white":"text-gray-500 hover:text-gray-900",linkActive:v?"text-primary-400 font-semibold hover:text-primary-300":"text-primary-600 font-semibold hover:text-primary-700",mobileBg:v?"bg-gray-700":"bg-white",mobileText:v?"text-white":"text-gray-900",mobileHover:v?"hover:bg-gray-600":"hover:bg-gray-50",mobileActiveBg:v?"bg-gray-600":"bg-gray-100",hamburger:v?"text-gray-400 hover:bg-white/10 hover:text-white":"text-gray-400 hover:bg-gray-100 hover:text-gray-500"};return b.jsx(jl,{as:"nav",className:D(Sf({variant:u,position:c}),l),...d,children:({open:w,close:x})=>b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"container mx-auto flex items-center justify-between px-4 h-16",children:[b.jsxs(fn,{as:o,href:"/",to:"/",variant:"neutral",className:D("flex items-center gap-3 transition-opacity no-underline",y.brand),children:[b.jsx("img",{src:e,alt:`${t} Logo`,className:"h-8 w-8 rounded-md"}),b.jsx("span",{className:"text-xl font-bold tracking-tight",children:t})]}),b.jsxs("div",{className:"hidden md:flex items-center gap-8",children:[b.jsx("div",{className:"flex items-center gap-6",children:n.map(k=>{const S=r===k.path;return b.jsx(fn,{as:o,href:k.path,to:k.path,variant:"neutral",className:D("text-sm font-medium transition-colors duration-200 no-underline",S?y.linkActive:y.linkBase),children:k.label},k.path)})}),a?b.jsxs(wh,{as:"div",className:"relative ml-2",children:[b.jsxs(Cl,{className:"relative flex rounded-full text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2 ring-offset-transparent",children:[b.jsx("span",{className:"sr-only",children:"Open user menu"}),b.jsx(wa,{initials:a.initials,src:a.avatarSrc,size:"sm",shape:"circle",colorScheme:"primary"}),g&&b.jsx("div",{className:"absolute -top-1 -right-2",children:b.jsx(qr,{fill:"solid",size:"xs",statusBadge:!0,variant:p,children:a.notificationCount})})]}),b.jsx(Zt,{as:f.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:b.jsxs(Ol,{className:"absolute right-0 z-10 mt-2 w-48 origin-top-right rounded-md bg-white py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",children:[g&&b.jsx(ma,{children:({focus:k})=>b.jsxs("button",{onClick:s,className:D(k?"bg-gray-100":"","flex w-full items-center gap-2 px-4 py-2 text-sm text-gray-700 border-b border-gray-100"),children:[b.jsx(Ne,{icon:Ox,className:"text-primary-500"}),b.jsxs("span",{children:["Inbox (",a.notificationCount,")"]})]})}),b.jsx(ma,{children:({focus:k})=>b.jsxs("button",{onClick:i,className:D(k?"bg-gray-100":"","flex w-full items-center gap-2 px-4 py-2 text-sm text-gray-700"),children:[b.jsx(Ne,{icon:$x,className:"text-gray-400"}),"Sign out"]})})]})})]}):b.jsx(rn,{size:"sm",variant:"solid",colorScheme:"primary",children:"Log In"})]}),b.jsx("div",{className:"flex md:hidden",children:b.jsxs(Gr,{className:D("inline-flex items-center justify-center rounded-md p-2 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-primary-500",y.hamburger),children:[b.jsx("span",{className:"sr-only",children:"Open main menu"}),w?b.jsx(Ne,{icon:co,className:"block h-6 w-6","aria-hidden":"true"}):b.jsxs("div",{className:"relative",children:[b.jsx(Ne,{icon:Ix,className:"block h-6 w-6","aria-hidden":"true"}),g&&b.jsx("span",{className:"absolute top-0 right-0 block h-2.5 w-2.5 rounded-full bg-error-500 ring-2 ring-transparent transform translate-x-1/4 -translate-y-1/4"})]})]})})]}),b.jsx(Zt,{as:f.Fragment,enter:"duration-200 ease-out",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"duration-100 ease-in",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:b.jsx(ga,{focus:!0,className:"absolute top-0 inset-x-0 z-30 origin-top-right transform p-2 transition md:hidden",children:b.jsxs("div",{className:D("rounded-lg shadow-lg ring-1 ring-black ring-opacity-5 divide-y divide-gray-700",y.mobileBg),children:[b.jsxs("div",{className:"px-5 pt-5 pb-6",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsxs("div",{className:"flex items-center gap-3",children:[b.jsx("img",{src:e,alt:t,className:"h-8 w-8"}),b.jsx("span",{className:D("font-bold",y.mobileText),children:t})]}),b.jsx("div",{className:"-mr-2",children:b.jsxs(Gr,{className:D("inline-flex items-center justify-center rounded-md p-2 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-primary-500",y.hamburger),children:[b.jsx("span",{className:"sr-only",children:"Close menu"}),b.jsx(Ne,{icon:co,className:"h-6 w-6","aria-hidden":"true"})]})})]}),b.jsx("div",{className:"mt-6",children:b.jsx("nav",{className:"grid gap-y-4",children:n.map(k=>{const S=r===k.path;return b.jsx(fn,{as:o,href:k.path,to:k.path,onClick:()=>x(),variant:"neutral",className:D("-m-3 flex items-center rounded-md p-3 no-underline",y.mobileHover,S?y.mobileActiveBg:y.mobileText),children:b.jsx("span",{className:D("ml-3 text-base font-medium",S?"text-primary-400 font-bold":y.mobileText),children:k.label})},k.path)})})})]}),a&&b.jsxs("div",{className:"py-6 px-5 space-y-4",children:[g&&b.jsxs("button",{onClick:()=>{s(),x()},className:D("flex w-full items-center justify-between rounded-md px-4 py-2 text-base font-medium transition-colors",y.mobileHover,y.mobileText),children:[b.jsx("span",{children:"Pending Invitations"}),b.jsx(qr,{fill:"solid",size:"xs",statusBadge:!0,variant:p,children:a.notificationCount})]}),b.jsx(rn,{variant:"outline",colorScheme:"error",className:"w-full justify-center",onClick:()=>{i(),x()},children:"Log Out"})]})]})})})]})})};q.Accordion=jx,q.ActionBar=df,q.Avatar=wa,q.Badge=qr,q.Breadcrumbs=Mx,q.Button=rn,q.CallToAction=Lx,q.Card=au,q.Countdown=xf,q.Dialog=f1,q.Disclosure=Xc,q.EmptyState=_x,q.ErrorState=Dx,q.Footer=wf,q.Input=Jc,q.Link=fn,q.MatchupCard=cf,q.Navbar=d1,q.Select=Tx,q.Spinner=nu,q.Switch=Fx,q.Textarea=rf,q.actionBarVariants=ff,q.avatarVariants=eu,q.badgeVariants=tu,q.breadcrumbVariants=ni,q.buttonVariants=ru,q.cardVariants=ou,q.cn=D,q.ctaVariants=of,q.disclosureContentVariants=Kc,q.disclosureTriggerVariants=Yc,q.emptyStateVariants=af,q.errorStateVariants=sf,q.inputVariants=qc,q.linkVariants=Qc,q.navbarVariants=Sf,q.selectTriggerVariants=Zc,q.switchThumbVariants=tf,q.switchTrackVariants=ef,q.textareaVariants=nf,q.useCountdown=bf,Object.defineProperty(q,Symbol.toStringTag,{value:"Module"})}));
|