@mobielnl/elements 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,213 @@
1
+ (function(rt,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],h):(rt=typeof globalThis<"u"?globalThis:rt||self,h(rt.Elements={},rt.React,rt.ReactDOM))})(this,function(rt,h,Yo){"use strict";"use client";var process=typeof globalThis<"u"&&globalThis.process?globalThis.process:{env:{NODE_ENV:"production"}};function Wp(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 Ut=Wp(h);var kr={exports:{}},Jn={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Ra;function qp(){if(Ra)return Jn;Ra=1;var e=h,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(a,l,u){var c,d={},m=null,g=null;u!==void 0&&(m=""+u),l.key!==void 0&&(m=""+l.key),l.ref!==void 0&&(g=l.ref);for(c in l)r.call(l,c)&&!i.hasOwnProperty(c)&&(d[c]=l[c]);if(a&&a.defaultProps)for(c in l=a.defaultProps,l)d[c]===void 0&&(d[c]=l[c]);return{$$typeof:t,type:a,key:m,ref:g,props:d,_owner:o.current}}return Jn.Fragment=n,Jn.jsx=s,Jn.jsxs=s,Jn}var Zn={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Ba;function Yp(){return Ba||(Ba=1,process.env.NODE_ENV!=="production"&&function(){var e=h,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),y=Symbol.iterator,b="@@iterator";function x(T){if(T===null||typeof T!="object")return null;var R=y&&T[y]||T[b];return typeof R=="function"?R:null}var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function $(T){{for(var R=arguments.length,G=new Array(R>1?R-1:0),ne=1;ne<R;ne++)G[ne-1]=arguments[ne];A("error",T,G)}}function A(T,R,G){{var ne=v.ReactDebugCurrentFrame,be=ne.getStackAddendum();be!==""&&(R+="%s",G=G.concat([be]));var Ee=G.map(function(de){return String(de)});Ee.unshift("Warning: "+R),Function.prototype.apply.call(console[T],console,Ee)}}var M=!1,I=!1,O=!1,L=!1,k=!1,V;V=Symbol.for("react.module.reference");function j(T){return!!(typeof T=="string"||typeof T=="function"||T===r||T===i||k||T===o||T===u||T===c||L||T===g||M||I||O||typeof T=="object"&&T!==null&&(T.$$typeof===m||T.$$typeof===d||T.$$typeof===s||T.$$typeof===a||T.$$typeof===l||T.$$typeof===V||T.getModuleId!==void 0))}function f(T,R,G){var ne=T.displayName;if(ne)return ne;var be=R.displayName||R.name||"";return be!==""?G+"("+be+")":G}function S(T){return T.displayName||"Context"}function N(T){if(T==null)return null;if(typeof T.tag=="number"&&$("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof T=="function")return T.displayName||T.name||null;if(typeof T=="string")return T;switch(T){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case c:return"SuspenseList"}if(typeof T=="object")switch(T.$$typeof){case a:var R=T;return S(R)+".Consumer";case s:var G=T;return S(G._context)+".Provider";case l:return f(T,T.render,"ForwardRef");case d:var ne=T.displayName||null;return ne!==null?ne:N(T.type)||"Memo";case m:{var be=T,Ee=be._payload,de=be._init;try{return N(de(Ee))}catch{return null}}}return null}var w=Object.assign,D=0,p,C,E,B,H,X,_;function z(){}z.__reactDisabledLog=!0;function K(){{if(D===0){p=console.log,C=console.info,E=console.warn,B=console.error,H=console.group,X=console.groupCollapsed,_=console.groupEnd;var T={configurable:!0,enumerable:!0,value:z,writable:!0};Object.defineProperties(console,{info:T,log:T,warn:T,error:T,group:T,groupCollapsed:T,groupEnd:T})}D++}}function ie(){{if(D--,D===0){var T={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:w({},T,{value:p}),info:w({},T,{value:C}),warn:w({},T,{value:E}),error:w({},T,{value:B}),group:w({},T,{value:H}),groupCollapsed:w({},T,{value:X}),groupEnd:w({},T,{value:_})})}D<0&&$("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ee=v.ReactCurrentDispatcher,re;function we(T,R,G){{if(re===void 0)try{throw Error()}catch(be){var ne=be.stack.trim().match(/\n( *(at )?)/);re=ne&&ne[1]||""}return`
18
+ `+re+T}}var ve=!1,J;{var Pe=typeof WeakMap=="function"?WeakMap:Map;J=new Pe}function xe(T,R){if(!T||ve)return"";{var G=J.get(T);if(G!==void 0)return G}var ne;ve=!0;var be=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ee;Ee=ee.current,ee.current=null,K();try{if(R){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(nt){ne=nt}Reflect.construct(T,[],de)}else{try{de.call()}catch(nt){ne=nt}T.call(de.prototype)}}else{try{throw Error()}catch(nt){ne=nt}T()}}catch(nt){if(nt&&ne&&typeof nt.stack=="string"){for(var ue=nt.stack.split(`
19
+ `),Qe=ne.stack.split(`
20
+ `),Le=ue.length-1,Fe=Qe.length-1;Le>=1&&Fe>=0&&ue[Le]!==Qe[Fe];)Fe--;for(;Le>=1&&Fe>=0;Le--,Fe--)if(ue[Le]!==Qe[Fe]){if(Le!==1||Fe!==1)do if(Le--,Fe--,Fe<0||ue[Le]!==Qe[Fe]){var dt=`
21
+ `+ue[Le].replace(" at new "," at ");return T.displayName&&dt.includes("<anonymous>")&&(dt=dt.replace("<anonymous>",T.displayName)),typeof T=="function"&&J.set(T,dt),dt}while(Le>=1&&Fe>=0);break}}}finally{ve=!1,ee.current=Ee,ie(),Error.prepareStackTrace=be}var Xn=T?T.displayName||T.name:"",un=Xn?we(Xn):"";return typeof T=="function"&&J.set(T,un),un}function Z(T,R,G){return xe(T,!1)}function le(T){var R=T.prototype;return!!(R&&R.isReactComponent)}function me(T,R,G){if(T==null)return"";if(typeof T=="function")return xe(T,le(T));if(typeof T=="string")return we(T);switch(T){case u:return we("Suspense");case c:return we("SuspenseList")}if(typeof T=="object")switch(T.$$typeof){case l:return Z(T.render);case d:return me(T.type,R,G);case m:{var ne=T,be=ne._payload,Ee=ne._init;try{return me(Ee(be),R,G)}catch{}}}return""}var oe=Object.prototype.hasOwnProperty,Te={},Ie=v.ReactDebugCurrentFrame;function ce(T){if(T){var R=T._owner,G=me(T.type,T._source,R?R.type:null);Ie.setExtraStackFrame(G)}else Ie.setExtraStackFrame(null)}function Se(T,R,G,ne,be){{var Ee=Function.call.bind(oe);for(var de in T)if(Ee(T,de)){var ue=void 0;try{if(typeof T[de]!="function"){var Qe=Error((ne||"React class")+": "+G+" type `"+de+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof T[de]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Qe.name="Invariant Violation",Qe}ue=T[de](R,de,ne,G,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Le){ue=Le}ue&&!(ue instanceof Error)&&(ce(be),$("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ne||"React class",G,de,typeof ue),ce(null)),ue instanceof Error&&!(ue.message in Te)&&(Te[ue.message]=!0,ce(be),$("Failed %s type: %s",G,ue.message),ce(null))}}}var De=Array.isArray;function ge(T){return De(T)}function We(T){{var R=typeof Symbol=="function"&&Symbol.toStringTag,G=R&&T[Symbol.toStringTag]||T.constructor.name||"Object";return G}}function tt(T){try{return ye(T),!1}catch{return!0}}function ye(T){return""+T}function He(T){if(tt(T))return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",We(T)),ye(T)}var xt=v.ReactCurrentOwner,cn={key:!0,ref:!0,__self:!0,__source:!0},At,Pr;function Ho(T){if(oe.call(T,"ref")){var R=Object.getOwnPropertyDescriptor(T,"ref").get;if(R&&R.isReactWarning)return!1}return T.ref!==void 0}function Go(T){if(oe.call(T,"key")){var R=Object.getOwnPropertyDescriptor(T,"key").get;if(R&&R.isReactWarning)return!1}return T.key!==void 0}function Wo(T,R){typeof T.ref=="string"&&xt.current}function ut(T,R){{var G=function(){At||(At=!0,$("%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://reactjs.org/link/special-props)",R))};G.isReactWarning=!0,Object.defineProperty(T,"key",{get:G,configurable:!0})}}function jp(T,R){{var G=function(){Pr||(Pr=!0,$("%s: `ref` 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://reactjs.org/link/special-props)",R))};G.isReactWarning=!0,Object.defineProperty(T,"ref",{get:G,configurable:!0})}}var Rp=function(T,R,G,ne,be,Ee,de){var ue={$$typeof:t,type:T,key:R,ref:G,props:de,_owner:Ee};return ue._store={},Object.defineProperty(ue._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ue,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ne}),Object.defineProperty(ue,"_source",{configurable:!1,enumerable:!1,writable:!1,value:be}),Object.freeze&&(Object.freeze(ue.props),Object.freeze(ue)),ue};function Bp(T,R,G,ne,be){{var Ee,de={},ue=null,Qe=null;G!==void 0&&(He(G),ue=""+G),Go(R)&&(He(R.key),ue=""+R.key),Ho(R)&&(Qe=R.ref,Wo(R,be));for(Ee in R)oe.call(R,Ee)&&!cn.hasOwnProperty(Ee)&&(de[Ee]=R[Ee]);if(T&&T.defaultProps){var Le=T.defaultProps;for(Ee in Le)de[Ee]===void 0&&(de[Ee]=Le[Ee])}if(ue||Qe){var Fe=typeof T=="function"?T.displayName||T.name||"Unknown":T;ue&&ut(de,Fe),Qe&&jp(de,Fe)}return Rp(T,ue,Qe,be,ne,xt.current,de)}}var qo=v.ReactCurrentOwner,he=v.ReactDebugCurrentFrame;function Ae(T){if(T){var R=T._owner,G=me(T.type,T._source,R?R.type:null);he.setExtraStackFrame(G)}else he.setExtraStackFrame(null)}var Ot;Ot=!1;function Yn(T){return typeof T=="object"&&T!==null&&T.$$typeof===t}function Sr(){{if(qo.current){var T=N(qo.current.type);if(T)return`
22
+
23
+ Check the render method of \``+T+"`."}return""}}function gT(T){return""}var zp={};function bT(T){{var R=Sr();if(!R){var G=typeof T=="string"?T:T.displayName||T.name;G&&(R=`
24
+
25
+ Check the top-level render call using <`+G+">.")}return R}}function Up(T,R){{if(!T._store||T._store.validated||T.key!=null)return;T._store.validated=!0;var G=bT(R);if(zp[G])return;zp[G]=!0;var ne="";T&&T._owner&&T._owner!==qo.current&&(ne=" It was passed a child from "+N(T._owner.type)+"."),Ae(T),$('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',G,ne),Ae(null)}}function Kp(T,R){{if(typeof T!="object")return;if(ge(T))for(var G=0;G<T.length;G++){var ne=T[G];Yn(ne)&&Up(ne,R)}else if(Yn(T))T._store&&(T._store.validated=!0);else if(T){var be=x(T);if(typeof be=="function"&&be!==T.entries)for(var Ee=be.call(T),de;!(de=Ee.next()).done;)Yn(de.value)&&Up(de.value,R)}}}function vT(T){{var R=T.type;if(R==null||typeof R=="string")return;var G;if(typeof R=="function")G=R.propTypes;else if(typeof R=="object"&&(R.$$typeof===l||R.$$typeof===d))G=R.propTypes;else return;if(G){var ne=N(R);Se(G,T.props,"prop",ne,T)}else if(R.PropTypes!==void 0&&!Ot){Ot=!0;var be=N(R);$("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",be||"Unknown")}typeof R.getDefaultProps=="function"&&!R.getDefaultProps.isReactClassApproved&&$("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function yT(T){{for(var R=Object.keys(T.props),G=0;G<R.length;G++){var ne=R[G];if(ne!=="children"&&ne!=="key"){Ae(T),$("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ne),Ae(null);break}}T.ref!==null&&(Ae(T),$("Invalid attribute `ref` supplied to `React.Fragment`."),Ae(null))}}var Hp={};function Gp(T,R,G,ne,be,Ee){{var de=j(T);if(!de){var ue="";(T===void 0||typeof T=="object"&&T!==null&&Object.keys(T).length===0)&&(ue+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Qe=gT();Qe?ue+=Qe:ue+=Sr();var Le;T===null?Le="null":ge(T)?Le="array":T!==void 0&&T.$$typeof===t?(Le="<"+(N(T.type)||"Unknown")+" />",ue=" Did you accidentally export a JSX literal instead of a component?"):Le=typeof T,$("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Le,ue)}var Fe=Bp(T,R,G,be,Ee);if(Fe==null)return Fe;if(de){var dt=R.children;if(dt!==void 0)if(ne)if(ge(dt)){for(var Xn=0;Xn<dt.length;Xn++)Kp(dt[Xn],T);Object.freeze&&Object.freeze(dt)}else $("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 Kp(dt,T)}if(oe.call(R,"key")){var un=N(T),nt=Object.keys(R).filter(function(CT){return CT!=="key"}),ja=nt.length>0?"{key: someKey, "+nt.join(": ..., ")+": ...}":"{key: someKey}";if(!Hp[un+ja]){var $T=nt.length>0?"{"+nt.join(": ..., ")+": ...}":"{}";$(`A props object containing a "key" prop is being spread into JSX:
26
+ let props = %s;
27
+ <%s {...props} />
28
+ React keys must be passed directly to JSX without using spread:
29
+ let props = %s;
30
+ <%s key={someKey} {...props} />`,ja,un,$T,un),Hp[un+ja]=!0}}return T===r?yT(Fe):vT(Fe),Fe}}function wT(T,R,G){return Gp(T,R,G,!0)}function xT(T,R,G){return Gp(T,R,G,!1)}var ET=xT,TT=wT;Zn.Fragment=r,Zn.jsx=ET,Zn.jsxs=TT}()),Zn}var za;function Xp(){return za||(za=1,process.env.NODE_ENV==="production"?kr.exports=qp():kr.exports=Yp()),kr.exports}var P=Xp();function Jp({children:e}){return P.jsx("div",{className:"mobielnl-elements",children:e})}var Zp={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},Qp={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground"},eh={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger"},th={default:"bg-default/40 text-default-700",primary:"bg-primary/20 text-primary-600",secondary:"bg-secondary/20 text-secondary-600",success:"bg-success/20 text-success-700 dark:text-success",warning:"bg-warning/20 text-warning-700 dark:text-warning",danger:"bg-danger/20 text-danger-600 dark:text-danger-500"},nh={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger"},rh={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger"},oh={default:"border-default text-default-foreground",primary:"border-primary text-primary",secondary:"border-secondary text-secondary",success:"border-success text-success",warning:"border-warning text-warning",danger:"border-danger text-danger"},U={solid:Zp,shadow:Qp,bordered:eh,flat:th,faded:nh,light:rh,ghost:oh},ih={".spinner-bar-animation":{"animation-delay":"calc(-1.2s + (0.1s * var(--bar-index)))",transform:"rotate(calc(30deg * var(--bar-index)))translate(140%)"},".spinner-dot-animation":{"animation-delay":"calc(250ms * var(--dot-index))"},".spinner-dot-blink-animation":{"animation-delay":"calc(200ms * var(--dot-index))"}},sh={".leading-inherit":{"line-height":"inherit"},".bg-img-inherit":{"background-image":"inherit"},".bg-clip-inherit":{"background-clip":"inherit"},".text-fill-inherit":{"-webkit-text-fill-color":"inherit"},".tap-highlight-transparent":{"-webkit-tap-highlight-color":"transparent"},".input-search-cancel-button-none":{"&::-webkit-search-cancel-button":{"-webkit-appearance":"none"}}},ah={".scrollbar-hide":{"-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"}},".scrollbar-default":{"-ms-overflow-style":"auto","scrollbar-width":"auto","&::-webkit-scrollbar":{display:"block"}}},lh={".text-tiny":{"font-size":"var(--heroui-font-size-tiny)","line-height":"var(--heroui-line-height-tiny)"},".text-small":{"font-size":"var(--heroui-font-size-small)","line-height":"var(--heroui-line-height-small)"},".text-medium":{"font-size":"var(--heroui-font-size-medium)","line-height":"var(--heroui-line-height-medium)"},".text-large":{"font-size":"var(--heroui-font-size-large)","line-height":"var(--heroui-line-height-large)"}},ht="250ms",ch={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":ht},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":ht},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":ht},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":ht},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":ht},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":ht},".transition-transform-opacity":{"transition-property":"transform, scale, opacity rotate","transition-timing-function":"ease","transition-duration":ht},".transition-transform-background":{"transition-property":"transform, scale, background","transition-timing-function":"ease","transition-duration":ht},".transition-transform-colors":{"transition-property":"transform, scale, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":ht},".transition-transform-colors-opacity":{"transition-property":"transform, scale, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":ht}},uh={...sh,...ch,...ah,...lh,...ih},Ir=["small","medium","large"],Xo={theme:{spacing:["divider"],radius:Ir},classGroups:{shadow:[{shadow:Ir}],opacity:[{opacity:["disabled"]}],"font-size":[{text:["tiny",...Ir]}],"border-w":[{border:Ir}],"bg-image":["bg-stripe-gradient-default","bg-stripe-gradient-primary","bg-stripe-gradient-secondary","bg-stripe-gradient-success","bg-stripe-gradient-warning","bg-stripe-gradient-danger"],transition:Object.keys(uh).filter(e=>e.includes(".transition")).map(e=>e.replace(".",""))}},Ua=e=>e===!1?"false":e===!0?"true":e===0?"0":e,et=e=>{if(!e||typeof e!="object")return!0;for(let t in e)return!1;return!0},dh=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++){let i=n[o];if(!r.includes(i)||e[i]!==t[i])return!1}return!0};function Ka(e,t){for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?Ka(r,t):t.push(r)}}var Ha=(...e)=>{let t=[];Ka(e,t);let n=[];for(let r=0;r<t.length;r++)t[r]&&n.push(t[r]);return n},Ga=(e,t)=>{let n={};for(let r in e){let o=e[r];if(r in t){let i=t[r];Array.isArray(o)||Array.isArray(i)?n[r]=Ha(i,o):typeof o=="object"&&typeof i=="object"&&o&&i?n[r]=Ga(o,i):n[r]=i+" "+o}else n[r]=o}for(let r in t)r in e||(n[r]=t[r]);return n},fh=/\s+/g,Wa=e=>!e||typeof e!="string"?e:e.replace(fh," ").trim();const Jo="-",ph=e=>{const t=mh(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(Jo);return a[0]===""&&a.length!==1&&a.shift(),qa(a,t)||hh(s)},getConflictingClassGroupIds:(s,a)=>{const l=n[s]||[];return a&&r[s]?[...l,...r[s]]:l}}},qa=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?qa(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Jo);return t.validators.find(({validator:s})=>s(i))?.classGroupId},Ya=/^\[(.+)\]$/,hh=e=>{if(Ya.test(e)){const t=Ya.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},mh=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)Zo(n[o],r,o,t);return r},Zo=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Xa(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(gh(o)){Zo(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Zo(s,Xa(t,i),n,r)})})},Xa=(e,t)=>{let n=e;return t.split(Jo).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},gh=e=>e.isThemeGetter,bh=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},Qo="!",ei=":",vh=ei.length,yh=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let s=0,a=0,l=0,u;for(let y=0;y<o.length;y++){let b=o[y];if(s===0&&a===0){if(b===ei){i.push(o.slice(l,y)),l=y+vh;continue}if(b==="/"){u=y;continue}}b==="["?s++:b==="]"?s--:b==="("?a++:b===")"&&a--}const c=i.length===0?o:o.substring(l),d=wh(c),m=d!==c,g=u&&u>l?u-l:void 0;return{modifiers:i,hasImportantModifier:m,baseClassName:d,maybePostfixModifierPosition:g}};if(t){const o=t+ei,i=r;r=s=>s.startsWith(o)?i(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},wh=e=>e.endsWith(Qo)?e.substring(0,e.length-1):e.startsWith(Qo)?e.substring(1):e,xh=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let i=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...i.sort(),s),i=[]):i.push(s)}),o.push(...i.sort()),o}},Eh=e=>({cache:bh(e.cacheSize),parseClassName:yh(e),sortModifiers:xh(e),...ph(e)}),Th=/\s+/,$h=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(Th);let l="";for(let u=a.length-1;u>=0;u-=1){const c=a[u],{isExternal:d,modifiers:m,hasImportantModifier:g,baseClassName:y,maybePostfixModifierPosition:b}=n(c);if(d){l=c+(l.length>0?" "+l:l);continue}let x=!!b,v=r(x?y.substring(0,b):y);if(!v){if(!x){l=c+(l.length>0?" "+l:l);continue}if(v=r(y),!v){l=c+(l.length>0?" "+l:l);continue}x=!1}const $=i(m).join(":"),A=g?$+Qo:$,M=A+v;if(s.includes(M))continue;s.push(M);const I=o(v,x);for(let O=0;O<I.length;++O){const L=I[O];s.push(A+L)}l=c+(l.length>0?" "+l:l)}return l};function Ch(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Ja(t))&&(r&&(r+=" "),r+=n);return r}const Ja=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Ja(e[r]))&&(n&&(n+=" "),n+=t);return n};function ti(e,...t){let n,r,o,i=s;function s(l){const u=t.reduce((c,d)=>d(c),e());return n=Eh(u),r=n.cache.get,o=n.cache.set,i=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=$h(l,n);return o(l,c),c}return function(){return i(Ch.apply(null,arguments))}}const je=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Za=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Qa=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ph=/^\d+\/\d+$/,Sh=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kh=/\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$/,Ih=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ah=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Oh=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,dn=e=>Ph.test(e),se=e=>!!e&&!Number.isNaN(Number(e)),Mt=e=>!!e&&Number.isInteger(Number(e)),ni=e=>e.endsWith("%")&&se(e.slice(0,-1)),Et=e=>Sh.test(e),Mh=()=>!0,Nh=e=>kh.test(e)&&!Ih.test(e),el=()=>!1,Dh=e=>Ah.test(e),Lh=e=>Oh.test(e),Vh=e=>!W(e)&&!q(e),_h=e=>fn(e,il,el),W=e=>Za.test(e),Kt=e=>fn(e,sl,Nh),ri=e=>fn(e,zh,se),tl=e=>fn(e,rl,el),Fh=e=>fn(e,ol,Lh),Ar=e=>fn(e,al,Dh),q=e=>Qa.test(e),Qn=e=>pn(e,sl),jh=e=>pn(e,Uh),nl=e=>pn(e,rl),Rh=e=>pn(e,il),Bh=e=>pn(e,ol),Or=e=>pn(e,al,!0),fn=(e,t,n)=>{const r=Za.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},pn=(e,t,n=!1)=>{const r=Qa.exec(e);return r?r[1]?t(r[1]):n:!1},rl=e=>e==="position"||e==="percentage",ol=e=>e==="image"||e==="url",il=e=>e==="length"||e==="size"||e==="bg-size",sl=e=>e==="length",zh=e=>e==="number",Uh=e=>e==="family-name",al=e=>e==="shadow",oi=()=>{const e=je("color"),t=je("font"),n=je("text"),r=je("font-weight"),o=je("tracking"),i=je("leading"),s=je("breakpoint"),a=je("container"),l=je("spacing"),u=je("radius"),c=je("shadow"),d=je("inset-shadow"),m=je("text-shadow"),g=je("drop-shadow"),y=je("blur"),b=je("perspective"),x=je("aspect"),v=je("ease"),$=je("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...M(),q,W],O=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto","contain","none"],k=()=>[q,W,l],V=()=>[dn,"full","auto",...k()],j=()=>[Mt,"none","subgrid",q,W],f=()=>["auto",{span:["full",Mt,q,W]},Mt,q,W],S=()=>[Mt,"auto",q,W],N=()=>["auto","min","max","fr",q,W],w=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],D=()=>["start","end","center","stretch","center-safe","end-safe"],p=()=>["auto",...k()],C=()=>[dn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],E=()=>[e,q,W],B=()=>[...M(),nl,tl,{position:[q,W]}],H=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",Rh,_h,{size:[q,W]}],_=()=>[ni,Qn,Kt],z=()=>["","none","full",u,q,W],K=()=>["",se,Qn,Kt],ie=()=>["solid","dashed","dotted","double"],ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>[se,ni,nl,tl],we=()=>["","none",y,q,W],ve=()=>["none",se,q,W],J=()=>["none",se,q,W],Pe=()=>[se,q,W],xe=()=>[dn,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Et],breakpoint:[Et],color:[Mh],container:[Et],"drop-shadow":[Et],ease:["in","out","in-out"],font:[Vh],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Et],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Et],shadow:[Et],spacing:["px",se],text:[Et],"text-shadow":[Et],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",dn,W,q,x]}],container:["container"],columns:[{columns:[se,W,q,a]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"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:I()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{start:V()}],end:[{end:V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[Mt,"auto",q,W]}],basis:[{basis:[dn,"full","auto",a,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[se,dn,"auto","initial","none",W]}],grow:[{grow:["",se,q,W]}],shrink:[{shrink:["",se,q,W]}],order:[{order:[Mt,"first","last","none",q,W]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:f()}],"col-start":[{"col-start":S()}],"col-end":[{"col-end":S()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:f()}],"row-start":[{"row-start":S()}],"row-end":[{"row-end":S()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":N()}],"auto-rows":[{"auto-rows":N()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...w(),"normal"]}],"justify-items":[{"justify-items":[...D(),"normal"]}],"justify-self":[{"justify-self":["auto",...D()]}],"align-content":[{content:["normal",...w()]}],"align-items":[{items:[...D(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...D(),{baseline:["","last"]}]}],"place-content":[{"place-content":w()}],"place-items":[{"place-items":[...D(),"baseline"]}],"place-self":[{"place-self":["auto",...D()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:p()}],mx:[{mx:p()}],my:[{my:p()}],ms:[{ms:p()}],me:[{me:p()}],mt:[{mt:p()}],mr:[{mr:p()}],mb:[{mb:p()}],ml:[{ml:p()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:C()}],w:[{w:[a,"screen",...C()]}],"min-w":[{"min-w":[a,"screen","none",...C()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...C()]}],h:[{h:["screen","lh",...C()]}],"min-h":[{"min-h":["screen","lh","none",...C()]}],"max-h":[{"max-h":["screen","lh",...C()]}],"font-size":[{text:["base",n,Qn,Kt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,q,ri]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ni,W]}],"font-family":[{font:[jh,W,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,q,W]}],"line-clamp":[{"line-clamp":[se,"none",q,ri]}],leading:[{leading:[i,...k()]}],"list-image":[{"list-image":["none",q,W]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",q,W]}],"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:[...ie(),"wavy"]}],"text-decoration-thickness":[{decoration:[se,"from-font","auto",q,Kt]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[se,"auto",q,W]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q,W]}],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",q,W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:B()}],"bg-repeat":[{bg:H()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Mt,q,W],radial:["",q,W],conic:[Mt,q,W]},Bh,Fh]}],"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:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:K()}],"border-w-x":[{"border-x":K()}],"border-w-y":[{"border-y":K()}],"border-w-s":[{"border-s":K()}],"border-w-e":[{"border-e":K()}],"border-w-t":[{"border-t":K()}],"border-w-r":[{"border-r":K()}],"border-w-b":[{"border-b":K()}],"border-w-l":[{"border-l":K()}],"divide-x":[{"divide-x":K()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":K()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ie(),"hidden","none"]}],"divide-style":[{divide:[...ie(),"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:[...ie(),"none","hidden"]}],"outline-offset":[{"outline-offset":[se,q,W]}],"outline-w":[{outline:["",se,Qn,Kt]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","none",c,Or,Ar]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",d,Or,Ar]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[se,Kt]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":K()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",m,Or,Ar]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[se,q,W]}],"mix-blend":[{"mix-blend":[...ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ee()}],"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":[se]}],"mask-image-linear-from-pos":[{"mask-linear-from":re()}],"mask-image-linear-to-pos":[{"mask-linear-to":re()}],"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":re()}],"mask-image-t-to-pos":[{"mask-t-to":re()}],"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":re()}],"mask-image-r-to-pos":[{"mask-r-to":re()}],"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":re()}],"mask-image-b-to-pos":[{"mask-b-to":re()}],"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":re()}],"mask-image-l-to-pos":[{"mask-l-to":re()}],"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":re()}],"mask-image-x-to-pos":[{"mask-x-to":re()}],"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":re()}],"mask-image-y-to-pos":[{"mask-y-to":re()}],"mask-image-y-from-color":[{"mask-y-from":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[q,W]}],"mask-image-radial-from-pos":[{"mask-radial-from":re()}],"mask-image-radial-to-pos":[{"mask-radial-to":re()}],"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":M()}],"mask-image-conic-pos":[{"mask-conic":[se]}],"mask-image-conic-from-pos":[{"mask-conic-from":re()}],"mask-image-conic-to-pos":[{"mask-conic-to":re()}],"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:B()}],"mask-repeat":[{mask:H()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",q,W]}],filter:[{filter:["","none",q,W]}],blur:[{blur:we()}],brightness:[{brightness:[se,q,W]}],contrast:[{contrast:[se,q,W]}],"drop-shadow":[{"drop-shadow":["","none",g,Or,Ar]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",se,q,W]}],"hue-rotate":[{"hue-rotate":[se,q,W]}],invert:[{invert:["",se,q,W]}],saturate:[{saturate:[se,q,W]}],sepia:[{sepia:["",se,q,W]}],"backdrop-filter":[{"backdrop-filter":["","none",q,W]}],"backdrop-blur":[{"backdrop-blur":we()}],"backdrop-brightness":[{"backdrop-brightness":[se,q,W]}],"backdrop-contrast":[{"backdrop-contrast":[se,q,W]}],"backdrop-grayscale":[{"backdrop-grayscale":["",se,q,W]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[se,q,W]}],"backdrop-invert":[{"backdrop-invert":["",se,q,W]}],"backdrop-opacity":[{"backdrop-opacity":[se,q,W]}],"backdrop-saturate":[{"backdrop-saturate":[se,q,W]}],"backdrop-sepia":[{"backdrop-sepia":["",se,q,W]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",q,W]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[se,"initial",q,W]}],ease:[{ease:["linear","initial",v,q,W]}],delay:[{delay:[se,q,W]}],animate:[{animate:["none",$,q,W]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,q,W]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:ve()}],"rotate-x":[{"rotate-x":ve()}],"rotate-y":[{"rotate-y":ve()}],"rotate-z":[{"rotate-z":ve()}],scale:[{scale:J()}],"scale-x":[{"scale-x":J()}],"scale-y":[{"scale-y":J()}],"scale-z":[{"scale-z":J()}],"scale-3d":["scale-3d"],skew:[{skew:Pe()}],"skew-x":[{"skew-x":Pe()}],"skew-y":[{"skew-y":Pe()}],transform:[{transform:[q,W,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:xe()}],"translate-x":[{"translate-x":xe()}],"translate-y":[{"translate-y":xe()}],"translate-z":[{"translate-z":xe()}],"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",q,W]}],"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":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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",q,W]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[se,Qn,Kt,ri]}],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"]}},Kh=(e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:o={},override:i={}})=>(er(e,"cacheSize",t),er(e,"prefix",n),er(e,"experimentalParseClassName",r),Mr(e.theme,i.theme),Mr(e.classGroups,i.classGroups),Mr(e.conflictingClassGroups,i.conflictingClassGroups),Mr(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),er(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),Nr(e.theme,o.theme),Nr(e.classGroups,o.classGroups),Nr(e.conflictingClassGroups,o.conflictingClassGroups),Nr(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),ll(e,o,"orderSensitiveModifiers"),e),er=(e,t,n)=>{n!==void 0&&(e[t]=n)},Mr=(e,t)=>{if(t)for(const n in t)er(e,n,t[n])},Nr=(e,t)=>{if(t)for(const n in t)ll(e,t,n)},ll=(e,t,n)=>{const r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},cl=(e,...t)=>typeof e=="function"?ti(oi,e,...t):ti(()=>Kh(oi(),e),...t),Hh=ti(oi);var Gh=e=>et(e)?Hh:cl({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),Wh={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Dr=(...e)=>{let t=[];ul(e,t);let n="";for(let r=0;r<t.length;r++)t[r]&&(n&&(n+=" "),n+=t[r]);return n||void 0};function ul(e,t){for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?ul(r,t):r&&t.push(r)}}var ii=null,si={},ai=!1,Lr=(...e)=>t=>{let n=Dr(e);return!n||!t.twMerge?n:((!ii||ai)&&(ai=!1,ii=Gh(si)),ii(n)||void 0)},dl=(e,t)=>{for(let n in t)n in e?e[n]=Dr(e[n],t[n]):e[n]=t[n];return e},qh=(e,t)=>{let{extend:n=null,slots:r={},variants:o={},compoundVariants:i=[],compoundSlots:s=[],defaultVariants:a={}}=e,l={...Wh,...t},u=n?.base?Dr(n.base,e?.base):e?.base,c=n?.variants&&!et(n.variants)?Ga(o,n.variants):o,d=n?.defaultVariants&&!et(n.defaultVariants)?{...n.defaultVariants,...a}:a;!et(l.twMergeConfig)&&!dh(l.twMergeConfig,si)&&(ai=!0,si=l.twMergeConfig);let m=et(n?.slots),g=et(r)?{}:{base:Dr(e?.base,m&&n?.base),...r},y=m?g:dl({...n?.slots},et(g)?{base:e?.base}:g),b=et(n?.compoundVariants)?i:Ha(n?.compoundVariants,i),x=$=>{if(et(c)&&et(r)&&m)return Lr(u,$?.class,$?.className)(l);if(b&&!Array.isArray(b))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof b}`);if(s&&!Array.isArray(s))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof s}`);let A=(S,N,w=[],D)=>{let p=w;if(typeof N=="string"){let C=Wa(N).split(" ");for(let E=0;E<C.length;E++)p.push(`${S}:${C[E]}`)}else if(Array.isArray(N))for(let C=0;C<N.length;C++)p.push(`${S}:${N[C]}`);else if(typeof N=="object"&&typeof D=="string"&&D in N){let C=N[D];if(C&&typeof C=="string"){let E=Wa(C).split(" "),B=[];for(let H=0;H<E.length;H++)B.push(`${S}:${E[H]}`);p[D]=p[D]?p[D].concat(B):B}else if(Array.isArray(C)&&C.length>0){let E=[];for(let B=0;B<C.length;B++)E.push(`${S}:${C[B]}`);p[D]=E}}return p},M=(S,N=c,w=null,D=null)=>{let p=N[S];if(!p||et(p))return null;let C=D?.[S]??$?.[S];if(C===null)return null;let E=Ua(C),B=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,H=d?.[S],X=[];if(typeof E=="object"&&B)for(let[K,ie]of Object.entries(E)){let ee=p[ie];if(K==="initial"){H=ie;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(K)||(X=A(K,ee,X,w))}let _=E!=null&&typeof E!="object"?E:Ua(H),z=p[_||"false"];return typeof X=="object"&&typeof w=="string"&&X[w]?dl(X,z):X.length>0?(X.push(z),w==="base"?X.join(" "):X):z},I=()=>{if(!c)return null;let S=Object.keys(c),N=[];for(let w=0;w<S.length;w++){let D=M(S[w],c);D&&N.push(D)}return N},O=(S,N)=>{if(!c||typeof c!="object")return null;let w=[];for(let D in c){let p=M(D,c,S,N),C=S==="base"&&typeof p=="string"?p:p&&p[S];C&&w.push(C)}return w},L={};for(let S in $){let N=$[S];N!==void 0&&(L[S]=N)}let k=(S,N)=>{let w=typeof $?.[S]=="object"?{[S]:$[S]?.initial}:{};return{...d,...L,...w,...N}},V=(S=[],N)=>{let w=[],D=S.length;for(let p=0;p<D;p++){let{class:C,className:E,...B}=S[p],H=!0,X=k(null,N);for(let _ in B){let z=B[_],K=X[_];if(Array.isArray(z)){if(!z.includes(K)){H=!1;break}}else{if((z==null||z===!1)&&(K==null||K===!1))continue;if(K!==z){H=!1;break}}}H&&(C&&w.push(C),E&&w.push(E))}return w},j=S=>{let N=V(b,S);if(!Array.isArray(N))return N;let w={},D=Lr;for(let p=0;p<N.length;p++){let C=N[p];if(typeof C=="string")w.base=D(w.base,C)(l);else if(typeof C=="object")for(let E in C)w[E]=D(w[E],C[E])(l)}return w},f=S=>{if(s.length<1)return null;let N={},w=k(null,S);for(let D=0;D<s.length;D++){let{slots:p=[],class:C,className:E,...B}=s[D];if(!et(B)){let H=!0;for(let X in B){let _=w[X],z=B[X];if(_===void 0||(Array.isArray(z)?!z.includes(_):z!==_)){H=!1;break}}if(!H)continue}for(let H=0;H<p.length;H++){let X=p[H];N[X]||(N[X]=[]),N[X].push([C,E])}}return N};if(!et(r)||!m){let S={};if(typeof y=="object"&&!et(y)){let N=Lr;for(let w in y)S[w]=D=>{let p=j(D),C=f(D);return N(y[w],O(w,D),p?p[w]:void 0,C?C[w]:void 0,D?.class,D?.className)(l)}}return S}return Lr(u,I(),V(b),$?.class,$?.className)(l)},v=()=>{if(!(!c||typeof c!="object"))return Object.keys(c)};return x.variantKeys=v(),x.extend=n,x.base=u,x.slots=y,x.variants=c,x.defaultVariants=d,x.compoundSlots=s,x.compoundVariants=b,x},ot=(e,t)=>{var n,r,o;return qh(e,{...t,twMerge:(n=void 0)!=null?n:!0,twMergeConfig:{theme:{...(r=void 0)==null?void 0:r.theme,...Xo.theme},classGroups:{...(o=void 0)==null?void 0:o.classGroups,...Xo.classGroups}}})},fl=ot({slots:{base:"relative inline-flex flex-col gap-2 items-center justify-center",wrapper:"relative flex",label:"text-foreground dark:text-foreground-dark font-regular",circle1:"absolute w-full h-full rounded-full",circle2:"absolute w-full h-full rounded-full",dots:"relative rounded-full mx-auto",spinnerBars:["absolute","animate-fade-out","rounded-full","w-[25%]","h-[8%]","left-[calc(37.5%)]","top-[calc(46%)]","spinner-bar-animation"]},variants:{size:{sm:{wrapper:"w-5 h-5",circle1:"border-2",circle2:"border-2",dots:"size-1",label:"text-small"},md:{wrapper:"w-8 h-8",circle1:"border-3",circle2:"border-3",dots:"size-1.5",label:"text-medium"},lg:{wrapper:"w-10 h-10",circle1:"border-3",circle2:"border-3",dots:"size-2",label:"text-large"}},color:{current:{circle1:"border-b-current",circle2:"border-b-current",dots:"bg-current",spinnerBars:"bg-current"},white:{circle1:"border-b-white",circle2:"border-b-white",dots:"bg-white",spinnerBars:"bg-white"},default:{circle1:"border-b-default",circle2:"border-b-default",dots:"bg-default",spinnerBars:"bg-default"},primary:{circle1:"border-b-primary",circle2:"border-b-primary",dots:"bg-primary",spinnerBars:"bg-primary"},secondary:{circle1:"border-b-secondary",circle2:"border-b-secondary",dots:"bg-secondary",spinnerBars:"bg-secondary"},success:{circle1:"border-b-success",circle2:"border-b-success",dots:"bg-success",spinnerBars:"bg-success"},warning:{circle1:"border-b-warning",circle2:"border-b-warning",dots:"bg-warning",spinnerBars:"bg-warning"},danger:{circle1:"border-b-danger",circle2:"border-b-danger",dots:"bg-danger",spinnerBars:"bg-danger"}},labelColor:{foreground:{label:"text-foreground"},primary:{label:"text-primary"},secondary:{label:"text-secondary"},success:{label:"text-success"},warning:{label:"text-warning"},danger:{label:"text-danger"}},variant:{default:{circle1:["animate-spinner-ease-spin","border-solid","border-t-transparent","border-l-transparent","border-r-transparent"],circle2:["opacity-75","animate-spinner-linear-spin","border-dotted","border-t-transparent","border-l-transparent","border-r-transparent"]},gradient:{circle1:["border-0","bg-gradient-to-b","from-transparent","via-transparent","to-primary","animate-spinner-linear-spin","[animation-duration:1s]","[-webkit-mask:radial-gradient(closest-side,rgba(0,0,0,0.0)calc(100%-3px),rgba(0,0,0,1)calc(100%-3px))]"],circle2:["hidden"]},wave:{wrapper:"translate-y-3/4",dots:["animate-sway","spinner-dot-animation"]},dots:{wrapper:"translate-y-2/4",dots:["animate-blink","spinner-dot-blink-animation"]},spinner:{},simple:{wrapper:"text-foreground h-5 w-5 animate-spin",circle1:"opacity-25",circle2:"opacity-75"}}},defaultVariants:{size:"md",color:"primary",labelColor:"foreground",variant:"default"},compoundVariants:[{variant:"gradient",color:"current",class:{circle1:"to-current"}},{variant:"gradient",color:"white",class:{circle1:"to-white"}},{variant:"gradient",color:"default",class:{circle1:"to-default"}},{variant:"gradient",color:"primary",class:{circle1:"to-primary"}},{variant:"gradient",color:"secondary",class:{circle1:"to-secondary"}},{variant:"gradient",color:"success",class:{circle1:"to-success"}},{variant:"gradient",color:"warning",class:{circle1:"to-warning"}},{variant:"gradient",color:"danger",class:{circle1:"to-danger"}},{variant:"wave",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"wave",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"wave",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"dots",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"dots",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"dots",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"simple",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"simple",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"simple",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"simple",color:"current",class:{wrapper:"text-current"}},{variant:"simple",color:"white",class:{wrapper:"text-white"}},{variant:"simple",color:"default",class:{wrapper:"text-default"}},{variant:"simple",color:"primary",class:{wrapper:"text-primary"}},{variant:"simple",color:"secondary",class:{wrapper:"text-secondary"}},{variant:"simple",color:"success",class:{wrapper:"text-success"}},{variant:"simple",color:"warning",class:{wrapper:"text-warning"}},{variant:"simple",color:"danger",class:{wrapper:"text-danger"}}]}),tr=["outline-solid outline-transparent","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],Yh=["outline-solid outline-transparent","group-data-[focus-visible=true]:z-10","group-data-[focus-visible=true]:ring-2","group-data-[focus-visible=true]:ring-focus","group-data-[focus-visible=true]:ring-offset-2","group-data-[focus-visible=true]:ring-offset-background"],Xh=["outline-solid outline-transparent","ring-2","ring-focus","ring-offset-2","ring-offset-background"],hn={default:["[&+.border-medium.border-default]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],primary:["[&+.border-medium.border-primary]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],secondary:["[&+.border-medium.border-secondary]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],success:["[&+.border-medium.border-success]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],warning:["[&+.border-medium.border-warning]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],danger:["[&+.border-medium.border-danger]:ms-[calc(var(--heroui-border-width-medium)*-1)]"]},Jh=["font-inherit","text-[100%]","leading-[1.15]","m-0","p-0","overflow-visible","box-border","absolute","top-0","w-full","h-full","opacity-[0.0001]","z-[1]","cursor-pointer","disabled:cursor-default"],pl=ot({slots:{base:["z-0","relative","bg-transparent","before:content-['']","before:hidden","before:z-[-1]","before:absolute","before:rotate-45","before:w-2.5","before:h-2.5","before:rounded-sm","data-[arrow=true]:before:block","data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top]:before:left-1/2","data-[placement=top]:before:-translate-x-1/2","data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-start]:before:left-3","data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-end]:before:right-3","data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom]:before:left-1/2","data-[placement=bottom]:before:-translate-x-1/2","data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-start]:before:left-3","data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-end]:before:right-3","data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=left]:before:top-1/2","data-[placement=left]:before:-translate-y-1/2","data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-start]:before:top-1/4","data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-end]:before:bottom-1/4","data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=right]:before:top-1/2","data-[placement=right]:before:-translate-y-1/2","data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-start]:before:top-1/4","data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-end]:before:bottom-1/4",...tr],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-solid outline-transparent","box-border"],trigger:["z-10"],backdrop:["hidden"],arrow:[]},variants:{size:{sm:{content:"text-tiny"},md:{content:"text-small"},lg:{content:"text-medium"}},color:{default:{base:"before:bg-content1 before:shadow-small",content:"bg-content1"},foreground:{base:"before:bg-foreground",content:U.solid.foreground},primary:{base:"before:bg-primary",content:U.solid.primary},secondary:{base:"before:bg-secondary",content:U.solid.secondary},success:{base:"before:bg-success",content:U.solid.success},warning:{base:"before:bg-warning",content:U.solid.warning},danger:{base:"before:bg-danger",content:U.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{none:{content:"shadow-none"},sm:{content:"shadow-small"},md:{content:"shadow-medium"},lg:{content:"shadow-large"}},backdrop:{transparent:{},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"}},triggerScaleOnOpen:{true:{trigger:["aria-expanded:scale-[0.97]","aria-expanded:opacity-70","subpixel-antialiased"]},false:{}},disableAnimation:{true:{base:"animate-none"}},isTriggerDisabled:{true:{trigger:"opacity-disabled pointer-events-none"},false:{}}},defaultVariants:{color:"default",radius:"lg",size:"md",shadow:"md",backdrop:"transparent",triggerScaleOnOpen:!0},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"block w-full h-full fixed inset-0 -z-30"}}]}),li=ot({slots:{base:"flex flex-col w-full gap-1",labelWrapper:"w-full flex justify-between items-center",label:"",value:"",step:["h-1.5","w-1.5","absolute","rounded-full","bg-default-300/50","data-[in-range=true]:bg-background/50"],mark:["absolute","text-small","cursor-default","opacity-50","data-[in-range=true]:opacity-100"],trackWrapper:"relative flex gap-2",track:["flex","w-full","relative","rounded-full","bg-default-300/50"],filler:"h-full absolute",thumb:["flex","justify-center","items-center","before:absolute","before:w-11","before:h-11","before:rounded-full","after:shadow-small","after:shadow-small","after:bg-background","data-[focused=true]:z-10",tr],startContent:[],endContent:[]},variants:{size:{sm:{label:"text-small",value:"text-small",thumb:"w-5 h-5 after:w-4 after:h-4",step:"data-[in-range=false]:bg-default-200"},md:{thumb:"w-6 h-6 after:w-5 after:h-5",label:"text-small",value:"text-small"},lg:{thumb:"h-7 w-7 after:w-5 after:h-5",step:"w-2 h-2",label:"text-medium",value:"text-medium",mark:"mt-2"}},radius:{none:{thumb:"rounded-none after:rounded-none"},sm:{thumb:"rounded-[calc(var(--heroui-radius-small)/2)] after:rounded-[calc(var(--heroui-radius-small)/3)]"},md:{thumb:"rounded-[calc(var(--heroui-radius-medium)/2)] after:rounded-[calc(var(--heroui-radius-medium)/3)]"},lg:{thumb:"rounded-[calc(var(--heroui-radius-large)/1.5)] after:rounded-[calc(var(--heroui-radius-large)/2)]"},full:{thumb:"rounded-full after:rounded-full"}},color:{foreground:{filler:"bg-foreground",thumb:"bg-foreground"},primary:{filler:"bg-primary",thumb:"bg-primary"},secondary:{filler:"bg-secondary",thumb:"bg-secondary"},success:{filler:"bg-success",thumb:"bg-success"},warning:{filler:"bg-warning",thumb:"bg-warning"},danger:{filler:"bg-danger",thumb:"bg-danger"}},isVertical:{true:{base:"w-auto h-full flex-col-reverse items-center",trackWrapper:"flex-col h-full justify-center items-center",filler:"w-full h-auto",thumb:"left-1/2",track:"h-full border-y-transparent",labelWrapper:"flex-col justify-center items-center",step:["left-1/2","-translate-x-1/2","translate-y-1/2"],mark:["left-1/2","ml-1","translate-x-1/2","translate-y-1/2"]},false:{thumb:"top-1/2",trackWrapper:"items-center",track:"border-x-transparent",step:["top-1/2","-translate-x-1/2","-translate-y-1/2"],mark:["top-1/2","mt-1","-translate-x-1/2","translate-y-1/2"]}},isDisabled:{false:{thumb:["cursor-grab","data-[dragging=true]:cursor-grabbing"]},true:{base:"opacity-disabled",thumb:"cursor-default"}},hasMarks:{true:{base:"mb-5",mark:"cursor-pointer"},false:{}},showOutline:{true:{thumb:"ring-2 ring-background"},false:{thumb:"ring-transparent border-0"}},hideValue:{true:{value:"sr-only"}},hideThumb:{true:{thumb:"sr-only",track:"cursor-pointer"}},hasSingleThumb:{true:{},false:{}},disableAnimation:{true:{thumb:"data-[dragging=true]:after:scale-100"},false:{thumb:"after:transition-all motion-reduce:after:transition-none",mark:"transition-opacity motion-reduce:transition-none"}},disableThumbScale:{true:{},false:{thumb:"data-[dragging=true]:after:scale-80"}}},compoundVariants:[{size:["sm","md"],showOutline:!1,class:{thumb:"shadow-small"}},{size:"sm",color:"foreground",class:{step:"data-[in-range=true]:bg-foreground"}},{size:"sm",color:"primary",class:{step:"data-[in-range=true]:bg-primary"}},{size:"sm",color:"secondary",class:{step:"data-[in-range=true]:bg-secondary"}},{size:"sm",color:"success",class:{step:"data-[in-range=true]:bg-success"}},{size:"sm",color:"warning",class:{step:"data-[in-range=true]:bg-warning"}},{size:"sm",color:"danger",class:{step:"data-[in-range=true]:bg-danger"}},{size:"sm",isVertical:!1,class:{track:"h-1 my-[calc((theme(spacing.5)-theme(spacing.1))/2)] border-x-[calc(theme(spacing.5)/2)]"}},{size:"md",isVertical:!1,class:{track:"h-3 my-[calc((theme(spacing.6)-theme(spacing.3))/2)] border-x-[calc(theme(spacing.6)/2)]"}},{size:"lg",isVertical:!1,class:{track:"h-7 my-[calc((theme(spacing.7)-theme(spacing.5))/2)] border-x-[calc(theme(spacing.7)/2)]"}},{size:"sm",isVertical:!0,class:{track:"w-1 mx-[calc((theme(spacing.5)-theme(spacing.1))/2)] border-y-[calc(theme(spacing.5)/2)]"}},{size:"md",isVertical:!0,class:{track:"w-3 mx-[calc((theme(spacing.6)-theme(spacing.3))/2)] border-y-[calc(theme(spacing.6)/2)]"}},{size:"lg",isVertical:!0,class:{track:"w-7 mx-[calc((theme(spacing.7)-theme(spacing.5))/2)] border-y-[calc(theme(spacing.7)/2)]"}},{color:"foreground",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-foreground data-[fill-end=true]:border-e-foreground"}},{color:"primary",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-primary data-[fill-end=true]:border-e-primary"}},{color:"secondary",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-secondary data-[fill-end=true]:border-e-secondary"}},{color:"success",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-success data-[fill-end=true]:border-e-success"}},{color:"warning",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-warning data-[fill-end=true]:border-e-warning"}},{color:"danger",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-danger data-[fill-end=true]:border-e-danger"}},{color:"foreground",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-foreground data-[fill-end=true]:border-t-foreground"}},{color:"primary",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-primary data-[fill-end=true]:border-t-primary"}},{color:"secondary",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-secondary data-[fill-end=true]:border-t-secondary"}},{color:"success",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-success data-[fill-end=true]:border-t-success"}},{color:"warning",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-warning data-[fill-end=true]:border-t-warning"}},{color:"danger",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-danger data-[fill-end=true]:border-t-danger"}}],defaultVariants:{size:"md",color:"primary",radius:"full",hideValue:!1,hideThumb:!1,isDisabled:!1,disableThumbScale:!1,showOutline:!1}}),hl=ot({base:["relative inline-flex items-center outline-solid outline-transparent tap-highlight-transparent",...tr],variants:{size:{sm:"text-small",md:"text-medium",lg:"text-large"},color:{foreground:"text-foreground",primary:"text-primary",secondary:"text-secondary",success:"text-success",warning:"text-warning",danger:"text-danger"},underline:{none:"no-underline",hover:"hover:underline",always:"underline",active:"active:underline",focus:"focus:underline"},isBlock:{true:["px-2","py-1","hover:after:opacity-100","after:content-['']","after:inset-0","after:opacity-0","after:w-full","after:h-full","after:rounded-xl","after:transition-background","after:absolute"],false:"hover:opacity-hover active:opacity-disabled transition-opacity"},isDisabled:{true:"opacity-disabled cursor-default pointer-events-none"},disableAnimation:{true:"after:transition-none transition-none"}},compoundVariants:[{isBlock:!0,color:"foreground",class:"hover:after:bg-foreground/10"},{isBlock:!0,color:"primary",class:"hover:after:bg-primary/20"},{isBlock:!0,color:"secondary",class:"hover:after:bg-secondary/20"},{isBlock:!0,color:"success",class:"hover:after:bg-success/20"},{isBlock:!0,color:"warning",class:"hover:after:bg-warning/20"},{isBlock:!0,color:"danger",class:"hover:after:bg-danger/20"},{underline:["hover","always","active","focus"],class:"underline-offset-4"}],defaultVariants:{color:"primary",size:"md",isBlock:!1,underline:"none",isDisabled:!1}}),Zh="flex mx-1 text-current self-center",Qh=ot({base:"shrink-0 bg-divider border-none",variants:{orientation:{horizontal:"w-full h-divider",vertical:"h-full w-divider"}},defaultVariants:{orientation:"horizontal"}}),em=ot({base:"flex flex-col gap-2 items-start"}),ml=ot({slots:{wrapper:"relative shadow-black/5",zoomedWrapper:"relative overflow-hidden rounded-inherit",img:"relative z-10 opacity-0 shadow-black/5 data-[loaded=true]:opacity-100",blurredImg:["absolute","z-0","inset-0","w-full","h-full","object-cover","filter","blur-lg","scale-105","saturate-150","opacity-30","translate-y-1"]},variants:{radius:{none:{},sm:{},md:{},lg:{},full:{}},shadow:{none:{wrapper:"shadow-none",img:"shadow-none"},sm:{wrapper:"shadow-small",img:"shadow-small"},md:{wrapper:"shadow-medium",img:"shadow-medium"},lg:{wrapper:"shadow-large",img:"shadow-large"}},isZoomed:{true:{img:["object-cover","transform","hover:scale-125"]}},showSkeleton:{true:{wrapper:["group","relative","overflow-hidden","bg-content3 dark:bg-content2"],img:"opacity-0"}},disableAnimation:{true:{img:"transition-none"},false:{img:"transition-transform-opacity motion-reduce:transition-none !duration-300"}}},defaultVariants:{radius:"lg",shadow:"none",isZoomed:!1,isBlurred:!1,showSkeleton:!1},compoundVariants:[{showSkeleton:!0,disableAnimation:!1,class:{wrapper:["before:opacity-100","before:absolute","before:inset-0","before:-translate-x-full","before:animate-shimmer","before:border-t","before:border-content4/30","before:bg-gradient-to-r","before:from-transparent","before:via-content4","dark:before:via-default-700/10","before:to-transparent","after:opacity-100","after:absolute","after:inset-0","after:-z-10","after:bg-content3","dark:after:bg-content2"]}}],compoundSlots:[{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"none",class:"rounded-none"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"full",class:"rounded-full"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"sm",class:"rounded-small"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"md",class:"rounded-md"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"lg",class:"rounded-large"}]}),tm=ot({base:["z-0","group","relative","inline-flex","items-center","justify-center","box-border","appearance-none","outline-solid outline-transparent","select-none","whitespace-nowrap","min-w-max","font-normal","subpixel-antialiased","overflow-hidden","tap-highlight-transparent","transform-gpu data-[pressed=true]:scale-[0.97]","cursor-pointer",...tr],variants:{variant:{solid:"",bordered:"border-medium bg-transparent",light:"bg-transparent",flat:"",faded:"border-medium",shadow:"",ghost:"border-medium bg-transparent"},size:{sm:"px-3 min-w-16 h-8 text-tiny gap-2 rounded-small",md:"px-4 min-w-20 h-10 text-small gap-2 rounded-medium",lg:"px-6 min-w-24 h-12 text-medium gap-3 rounded-large"},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},radius:{none:"rounded-none",sm:"rounded-small",md:"rounded-medium",lg:"rounded-large",full:"rounded-full"},fullWidth:{true:"w-full"},isDisabled:{true:"opacity-disabled pointer-events-none"},isInGroup:{true:"[&:not(:first-child):not(:last-child)]:rounded-none"},isIconOnly:{true:"px-0 !gap-0",false:"[&>svg]:max-w-[theme(spacing.8)]"},disableAnimation:{true:"!transition-none data-[pressed=true]:scale-100",false:"transition-transform-colors-opacity motion-reduce:transition-none"}},defaultVariants:{size:"md",variant:"solid",color:"default",fullWidth:!1,isDisabled:!1,isInGroup:!1},compoundVariants:[{variant:"solid",color:"default",class:U.solid.default},{variant:"solid",color:"primary",class:U.solid.primary},{variant:"solid",color:"secondary",class:U.solid.secondary},{variant:"solid",color:"success",class:U.solid.success},{variant:"solid",color:"warning",class:U.solid.warning},{variant:"solid",color:"danger",class:U.solid.danger},{variant:"shadow",color:"default",class:U.shadow.default},{variant:"shadow",color:"primary",class:U.shadow.primary},{variant:"shadow",color:"secondary",class:U.shadow.secondary},{variant:"shadow",color:"success",class:U.shadow.success},{variant:"shadow",color:"warning",class:U.shadow.warning},{variant:"shadow",color:"danger",class:U.shadow.danger},{variant:"bordered",color:"default",class:U.bordered.default},{variant:"bordered",color:"primary",class:U.bordered.primary},{variant:"bordered",color:"secondary",class:U.bordered.secondary},{variant:"bordered",color:"success",class:U.bordered.success},{variant:"bordered",color:"warning",class:U.bordered.warning},{variant:"bordered",color:"danger",class:U.bordered.danger},{variant:"flat",color:"default",class:U.flat.default},{variant:"flat",color:"primary",class:U.flat.primary},{variant:"flat",color:"secondary",class:U.flat.secondary},{variant:"flat",color:"success",class:U.flat.success},{variant:"flat",color:"warning",class:U.flat.warning},{variant:"flat",color:"danger",class:U.flat.danger},{variant:"faded",color:"default",class:U.faded.default},{variant:"faded",color:"primary",class:U.faded.primary},{variant:"faded",color:"secondary",class:U.faded.secondary},{variant:"faded",color:"success",class:U.faded.success},{variant:"faded",color:"warning",class:U.faded.warning},{variant:"faded",color:"danger",class:U.faded.danger},{variant:"light",color:"default",class:[U.light.default,"data-[hover=true]:bg-default/40"]},{variant:"light",color:"primary",class:[U.light.primary,"data-[hover=true]:bg-primary/20"]},{variant:"light",color:"secondary",class:[U.light.secondary,"data-[hover=true]:bg-secondary/20"]},{variant:"light",color:"success",class:[U.light.success,"data-[hover=true]:bg-success/20"]},{variant:"light",color:"warning",class:[U.light.warning,"data-[hover=true]:bg-warning/20"]},{variant:"light",color:"danger",class:[U.light.danger,"data-[hover=true]:bg-danger/20"]},{variant:"ghost",color:"default",class:[U.ghost.default,"data-[hover=true]:!bg-default"]},{variant:"ghost",color:"primary",class:[U.ghost.primary,"data-[hover=true]:!bg-primary data-[hover=true]:!text-primary-foreground"]},{variant:"ghost",color:"secondary",class:[U.ghost.secondary,"data-[hover=true]:!bg-secondary data-[hover=true]:!text-secondary-foreground"]},{variant:"ghost",color:"success",class:[U.ghost.success,"data-[hover=true]:!bg-success data-[hover=true]:!text-success-foreground"]},{variant:"ghost",color:"warning",class:[U.ghost.warning,"data-[hover=true]:!bg-warning data-[hover=true]:!text-warning-foreground"]},{variant:"ghost",color:"danger",class:[U.ghost.danger,"data-[hover=true]:!bg-danger data-[hover=true]:!text-danger-foreground"]},{isInGroup:!0,class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,size:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,isRounded:!0,class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,radius:"none",class:"rounded-none first:rounded-s-none last:rounded-e-none"},{isInGroup:!0,radius:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,radius:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,radius:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,radius:"full",class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,variant:["ghost","bordered"],color:"default",className:hn.default},{isInGroup:!0,variant:["ghost","bordered"],color:"primary",className:hn.primary},{isInGroup:!0,variant:["ghost","bordered"],color:"secondary",className:hn.secondary},{isInGroup:!0,variant:["ghost","bordered"],color:"success",className:hn.success},{isInGroup:!0,variant:["ghost","bordered"],color:"warning",className:hn.warning},{isInGroup:!0,variant:["ghost","bordered"],color:"danger",className:hn.danger},{isIconOnly:!0,size:"sm",class:"min-w-8 w-8 h-8"},{isIconOnly:!0,size:"md",class:"min-w-10 w-10 h-10"},{isIconOnly:!0,size:"lg",class:"min-w-12 w-12 h-12"},{variant:["solid","faded","flat","bordered","shadow"],class:"data-[hover=true]:opacity-hover"}]});ot({base:"inline-flex items-center justify-center h-auto",variants:{fullWidth:{true:"w-full"}},defaultVariants:{fullWidth:!1}});var gl=ot({slots:{base:["flex","flex-col","relative","overflow-hidden","h-auto","outline-solid outline-transparent","text-foreground","box-border","bg-content1",...tr],header:["flex","p-3","z-10","w-full","justify-start","items-center","shrink-0","overflow-inherit","color-inherit","subpixel-antialiased"],body:["relative","flex","flex-1","w-full","p-3","flex-auto","flex-col","place-content-inherit","align-items-inherit","h-auto","break-words","text-left","overflow-y-auto","subpixel-antialiased"],footer:["p-3","h-auto","flex","w-full","items-center","overflow-hidden","color-inherit","subpixel-antialiased"]},variants:{shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},radius:{none:{base:"rounded-none",header:"rounded-none",footer:"rounded-none"},sm:{base:"rounded-small",header:"rounded-t-small",footer:"rounded-b-small"},md:{base:"rounded-medium",header:"rounded-t-medium",footer:"rounded-b-medium"},lg:{base:"rounded-large",header:"rounded-t-large",footer:"rounded-b-large"}},fullWidth:{true:{base:"w-full"}},isHoverable:{true:{base:"data-[hover=true]:bg-content2 dark:data-[hover=true]:bg-content2"}},isPressable:{true:{base:"cursor-pointer"}},isBlurred:{true:{base:["bg-background/80","dark:bg-background/20","backdrop-blur-md","backdrop-saturate-150"]}},isFooterBlurred:{true:{footer:["bg-background/10","backdrop-blur","backdrop-saturate-150"]}},isDisabled:{true:{base:"opacity-disabled cursor-not-allowed"}},disableAnimation:{true:"",false:{base:"transition-transform-background motion-reduce:transition-none"}}},compoundVariants:[{isPressable:!0,class:"data-[pressed=true]:scale-[0.97] tap-highlight-transparent"}],defaultVariants:{radius:"lg",shadow:"md",fullWidth:!1,isHoverable:!1,isPressable:!1,isDisabled:!1,isFooterBlurred:!1}}),nm=ot({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",wrapper:["relative","inline-flex","items-center","justify-center","shrink-0","overflow-hidden","before:content-['']","before:absolute","before:inset-0","before:border-solid","before:border-2","before:box-border","before:border-default","after:content-['']","after:absolute","after:inset-0","after:scale-50","after:opacity-0","after:origin-center","group-data-[selected=true]:after:scale-100","group-data-[selected=true]:after:opacity-100","group-data-[hover=true]:before:bg-default-100",...Yh],hiddenInput:Jh,icon:"z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100 pointer-events-none",label:"relative text-foreground select-none"},variants:{color:{default:{wrapper:"after:bg-default after:text-default-foreground text-default-foreground"},primary:{wrapper:"after:bg-primary after:text-primary-foreground text-primary-foreground"},secondary:{wrapper:"after:bg-secondary after:text-secondary-foreground text-secondary-foreground"},success:{wrapper:"after:bg-success after:text-success-foreground text-success-foreground"},warning:{wrapper:"after:bg-warning after:text-warning-foreground text-warning-foreground"},danger:{wrapper:"after:bg-danger after:text-danger-foreground text-danger-foreground"}},size:{sm:{wrapper:["w-4 h-4 me-2","rounded-[calc(var(--heroui-radius-medium)*0.5)]","before:rounded-[calc(var(--heroui-radius-medium)*0.5)]","after:rounded-[calc(var(--heroui-radius-medium)*0.5)]"],label:"text-small",icon:"w-3 h-2"},md:{wrapper:["w-5 h-5 me-2","rounded-[calc(var(--heroui-radius-medium)*0.6)]","before:rounded-[calc(var(--heroui-radius-medium)*0.6)]","after:rounded-[calc(var(--heroui-radius-medium)*0.6)]"],label:"text-medium",icon:"w-4 h-3"},lg:{wrapper:["w-6 h-6 me-2","rounded-[calc(var(--heroui-radius-medium)*0.7)]","before:rounded-[calc(var(--heroui-radius-medium)*0.7)]","after:rounded-[calc(var(--heroui-radius-medium)*0.7)]"],label:"text-large",icon:"w-5 h-4"}},radius:{none:{wrapper:"rounded-none before:rounded-none after:rounded-none"},sm:{wrapper:["rounded-[calc(var(--heroui-radius-medium)*0.5)]","before:rounded-[calc(var(--heroui-radius-medium)*0.5)]","after:rounded-[calc(var(--heroui-radius-medium)*0.5)]"]},md:{wrapper:["rounded-[calc(var(--heroui-radius-medium)*0.6)]","before:rounded-[calc(var(--heroui-radius-medium)*0.6)]","after:rounded-[calc(var(--heroui-radius-medium)*0.6)]"]},lg:{wrapper:["rounded-[calc(var(--heroui-radius-medium)*0.7)]","before:rounded-[calc(var(--heroui-radius-medium)*0.7)]","after:rounded-[calc(var(--heroui-radius-medium)*0.7)]"]},full:{wrapper:"rounded-full before:rounded-full after:rounded-full"}},lineThrough:{true:{label:["inline-flex","items-center","justify-center","before:content-['']","before:absolute","before:bg-foreground","before:w-0","before:h-0.5","group-data-[selected=true]:opacity-60","group-data-[selected=true]:before:w-full"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{wrapper:"before:border-danger",label:"text-danger"}},disableAnimation:{true:{wrapper:"transition-none",icon:"transition-none",label:"transition-none"},false:{wrapper:["before:transition-colors","group-data-[pressed=true]:scale-95","transition-transform","after:transition-transform-opacity","after:!ease-linear","after:!duration-200","motion-reduce:transition-none"],icon:"transition-opacity motion-reduce:transition-none",label:"transition-colors-opacity before:transition-width motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,lineThrough:!1}}),rm=ot({slots:{base:"relative flex flex-col gap-2",label:"relative text-medium text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-small text-foreground-400",errorMessage:"text-small text-danger"},variants:{isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isInvalid:{true:{description:"text-danger"}},disableAnimation:{true:{},false:{description:"transition-colors !duration-150 motion-reduce:transition-none"}}},defaultVariants:{isInvalid:!1,isRequired:!1}}),bl=ot({slots:{base:["relative","max-w-fit","min-w-min","inline-flex","items-center","justify-between","box-border","whitespace-nowrap"],content:"flex-1 text-inherit font-normal",dot:["w-2","h-2","ml-1","rounded-full"],avatar:"shrink-0",closeButton:["z-10","appearance-none","outline-solid outline-transparent","select-none","transition-opacity","opacity-70","hover:opacity-100","cursor-pointer","active:opacity-disabled","tap-highlight-transparent"]},variants:{variant:{solid:{},bordered:{base:"border-medium bg-transparent"},light:{base:"bg-transparent"},flat:{},faded:{base:"border-medium"},shadow:{},dot:{base:"border-medium border-default text-foreground bg-transparent"}},color:{default:{dot:"bg-default-400"},primary:{dot:"bg-primary"},secondary:{dot:"bg-secondary"},success:{dot:"bg-success"},warning:{dot:"bg-warning"},danger:{dot:"bg-danger"}},size:{sm:{base:"px-1 h-6 text-tiny",content:"px-1",closeButton:"text-medium",avatar:"w-4 h-4"},md:{base:"px-1 h-7 text-small",content:"px-2",closeButton:"text-large",avatar:"w-5 h-5"},lg:{base:"px-2 h-8 text-medium",content:"px-2",closeButton:"text-xl",avatar:"w-6 h-6"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isOneChar:{true:{},false:{}},isCloseable:{true:{},false:{}},hasStartContent:{true:{}},hasEndContent:{true:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isCloseButtonFocusVisible:{true:{closeButton:[...Xh,"ring-1","rounded-full"]}}},defaultVariants:{variant:"solid",color:"default",size:"md",radius:"full",isDisabled:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:U.solid.default}},{variant:"solid",color:"primary",class:{base:U.solid.primary}},{variant:"solid",color:"secondary",class:{base:U.solid.secondary}},{variant:"solid",color:"success",class:{base:U.solid.success}},{variant:"solid",color:"warning",class:{base:U.solid.warning}},{variant:"solid",color:"danger",class:{base:U.solid.danger}},{variant:"shadow",color:"default",class:{base:U.shadow.default}},{variant:"shadow",color:"primary",class:{base:U.shadow.primary}},{variant:"shadow",color:"secondary",class:{base:U.shadow.secondary}},{variant:"shadow",color:"success",class:{base:U.shadow.success}},{variant:"shadow",color:"warning",class:{base:U.shadow.warning}},{variant:"shadow",color:"danger",class:{base:U.shadow.danger}},{variant:"bordered",color:"default",class:{base:U.bordered.default}},{variant:"bordered",color:"primary",class:{base:U.bordered.primary}},{variant:"bordered",color:"secondary",class:{base:U.bordered.secondary}},{variant:"bordered",color:"success",class:{base:U.bordered.success}},{variant:"bordered",color:"warning",class:{base:U.bordered.warning}},{variant:"bordered",color:"danger",class:{base:U.bordered.danger}},{variant:"flat",color:"default",class:{base:U.flat.default}},{variant:"flat",color:"primary",class:{base:U.flat.primary}},{variant:"flat",color:"secondary",class:{base:U.flat.secondary}},{variant:"flat",color:"success",class:{base:U.flat.success}},{variant:"flat",color:"warning",class:{base:U.flat.warning}},{variant:"flat",color:"danger",class:{base:U.flat.danger}},{variant:"faded",color:"default",class:{base:U.faded.default}},{variant:"faded",color:"primary",class:{base:U.faded.primary}},{variant:"faded",color:"secondary",class:{base:U.faded.secondary}},{variant:"faded",color:"success",class:{base:U.faded.success}},{variant:"faded",color:"warning",class:{base:U.faded.warning}},{variant:"faded",color:"danger",class:{base:U.faded.danger}},{variant:"light",color:"default",class:{base:U.light.default}},{variant:"light",color:"primary",class:{base:U.light.primary}},{variant:"light",color:"secondary",class:{base:U.light.secondary}},{variant:"light",color:"success",class:{base:U.light.success}},{variant:"light",color:"warning",class:{base:U.light.warning}},{variant:"light",color:"danger",class:{base:U.light.danger}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"sm",class:{base:"w-5 h-5 min-w-5 min-h-5"}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"md",class:{base:"w-6 h-6 min-w-6 min-h-6"}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"lg",class:{base:"w-7 h-7 min-w-7 min-h-7"}},{isOneChar:!0,isCloseable:!1,hasStartContent:!1,hasEndContent:!1,class:{base:"px-0 justify-center",content:"px-0 flex-none"}},{isOneChar:!0,isCloseable:!0,hasStartContent:!1,hasEndContent:!1,class:{base:"w-auto"}},{isOneChar:!0,variant:"dot",class:{base:"w-auto h-7 px-1 items-center",content:"px-2"}},{hasStartContent:!0,size:"sm",class:{content:"pl-0.5"}},{hasStartContent:!0,size:["md","lg"],class:{content:"pl-1"}},{hasEndContent:!0,size:"sm",class:{content:"pr-0.5"}},{hasEndContent:!0,size:["md","lg"],class:{content:"pr-1"}}]}),om=process.env.NODE_ENV!=="production";process.env.NODE_ENV;function im(e){return typeof e=="function"}var fe=e=>e?"true":void 0;function vl(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=vl(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Be(...e){for(var t=0,n,r,o="";t<e.length;)(n=e[t++])&&(r=vl(n))&&(o&&(o+=" "),o+=r);return o}var yl=(...e)=>{let t=" ";for(const n of e)if(typeof n=="string"&&n.length>0){t=n;break}return t};function sm(e){return`${e}-${Math.floor(Math.random()*1e6)}`}function mn(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}function am(e,t,n){return Math.min(Math.max(e,t),n)}var wl={};function Vr(e,t,...n){const o=`[Hero UI]${t?` [${t}]`:" "}: ${e}`;if(!(typeof console>"u")&&!wl[o]&&(wl[o]=!0,process.env.NODE_ENV!=="production"))return console.warn(o,n)}function gn(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}var xl=new Map;function lm(e,t){if(e===t)return e;let n=xl.get(e);if(n)return n.forEach(o=>o.current=t),t;let r=xl.get(t);return r?(r.forEach(o=>o.current=e),e):t}function Ye(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],s=r[o];typeof i=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=gn(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=Be(i,s):o==="id"&&i&&s?t.id=lm(i,s):t[o]=s!==void 0?s:i}}return t}function cm(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(o=>{const i=El(o,t);return n||(n=typeof i=="function"),i});if(n)return()=>{r.forEach((o,i)=>{typeof o=="function"?o?.():El(e[i],null)})}}}function El(e,t){if(typeof e=="function")return()=>e(t);e!=null&&"current"in e&&(e.current=t)}function Tl(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Tl(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function um(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Tl(e))&&(r&&(r+=" "),r+=t);return r}var dm=cl({extend:Xo});function ci(...e){return dm(um(e))}const ui=typeof document<"u"?h.useLayoutEffect:()=>{};var di;const fm=(di=h.useInsertionEffect)!==null&&di!==void 0?di:ui;function Nt(e){const t=h.useRef(null);return fm(()=>{t.current=e},[e]),h.useCallback((...n)=>{const r=t.current;return r?.(...n)},[])}const _r={prefix:String(Math.round(Math.random()*1e10)),current:0},$l=h.createContext(_r),pm=h.createContext(!1);let hm=!!(typeof window<"u"&&window.document&&window.document.createElement),fi=new WeakMap;function mm(e=!1){let t=h.useContext($l),n=h.useRef(null);if(n.current===null&&!e){var r,o;let i=(o=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let s=fi.get(i);s==null?fi.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==s.state&&(t.current=s.id,fi.delete(i))}n.current=++t.current}return n.current}function gm(e){let t=h.useContext($l);t===_r&&!hm&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=mm(!!e),r=t===_r&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function bm(e){let t=h.useId(),[n]=h.useState(pi()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${_r.prefix}`;return e||`${r}-${t}`}const vm=typeof h.useId=="function"?bm:gm;function ym(){return!1}function wm(){return!0}function xm(e){return()=>{}}function pi(){return typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore(xm,ym,wm):h.useContext(pm)}let hi=new Map;typeof FinalizationRegistry<"u"&&new FinalizationRegistry(e=>{hi.delete(e)});function Em(e,t){if(e===t)return e;let n=hi.get(e);if(n)return n.forEach(o=>o.current=t),t;let r=hi.get(t);return r?(r.forEach(o=>o.current=e),e):t}function Cl(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Xe=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},it=e=>e&&"window"in e&&e.window===e?e:Xe(e).defaultView||window;function Tm(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function $m(e){return Tm(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let Cm=!1;function bn(){return Cm}function Me(e,t){if(!bn())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:$m(n)?n=n.host:n=n.parentNode}return!1}const nr=(e=document)=>{var t;if(!bn())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 $e(e){return bn()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function Pl(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=Pl(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Sl(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Pl(e))&&(r&&(r+=" "),r+=t);return r}function vn(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],s=r[o];typeof i=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Cl(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=Sl(i,s):o==="id"&&i&&s?t.id=Em(i,s):t[o]=s!==void 0?s:i}}return t}const Pm=new Set(["id"]),Sm=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),km=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Im=new Set(["dir","lang","hidden","inert","translate"]),kl=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),Am=/^(data-.*)$/;function Om(e,t={}){let{labelable:n,isLink:r,global:o,events:i=o,propNames:s}=t,a={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(Pm.has(l)||n&&Sm.has(l)||r&&km.has(l)||o&&Im.has(l)||i&&kl.has(l)||l.endsWith("Capture")&&kl.has(l.slice(0,-7))||s?.has(l)||Am.test(l))&&(a[l]=e[l]);return a}function yn(e){if(Mm())e.focus({preventScroll:!0});else{let t=Nm(e);e.focus(),Dm(t)}}let Fr=null;function Mm(){if(Fr==null){Fr=!1;try{document.createElement("div").focus({get preventScroll(){return Fr=!0,!0}})}catch{}}return Fr}function Nm(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 Dm(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function jr(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 mi(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 Tt(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const wn=Tt(function(){return mi(/^Mac/i)}),Lm=Tt(function(){return mi(/^iPhone/i)}),Il=Tt(function(){return mi(/^iPad/i)||wn()&&navigator.maxTouchPoints>1}),gi=Tt(function(){return Lm()||Il()});Tt(function(){return wn()||gi()});const Vm=Tt(function(){return jr(/AppleWebKit/i)&&!_m()}),_m=Tt(function(){return jr(/Chrome/i)}),Al=Tt(function(){return jr(/Android/i)}),Fm=Tt(function(){return jr(/Firefox/i)}),jm=h.createContext({isNative:!0,open:zm,useHref:e=>e});function Ol(){return h.useContext(jm)}function Rm(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function xn(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}=t;Fm()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(wn()?i=!0:s=!0);let u=Vm()&&wn()&&!Il()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l,bubbles:!0,cancelable:!0});xn.isOpening=n,yn(e),e.dispatchEvent(u),xn.isOpening=!1}xn.isOpening=!1;function Bm(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function zm(e,t){Bm(e,n=>xn(n,t))}function Um(e){let t=Ol();var n;const r=t.useHref((n=e?.href)!==null&&n!==void 0?n:"");return{href:e?.href?r:void 0,target:e?.target,rel:e?.rel,download:e?.download,ping:e?.ping,referrerPolicy:e?.referrerPolicy}}function Km(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&Rm(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}let Dt=new Map,bi=new Set;function Ml(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=Dt.get(r.target);o||(o=new Set,Dt.set(r.target,o),r.target.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let o=Dt.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),Dt.delete(r.target)),Dt.size===0)){for(let i of bi)i();bi.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Ml():document.addEventListener("DOMContentLoaded",Ml));function Hm(){for(const[e]of Dt)"isConnected"in e&&!e.isConnected&&Dt.delete(e)}function Nl(e){requestAnimationFrame(()=>{Hm(),Dt.size===0?e():bi.add(e)})}function Dl(){let e=h.useRef(new Map),t=h.useCallback((o,i,s,a)=>{let l=a?.once?(...u)=>{e.current.delete(s),s(...u)}:s;e.current.set(s,{type:i,eventTarget:o,fn:l,options:a}),o.addEventListener(i,l,a)},[]),n=h.useCallback((o,i,s,a)=>{var l;let u=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;o.removeEventListener(i,u,a),e.current.delete(s)},[]),r=h.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return h.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Ll(e,t){ui(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function vi(e){return e.pointerType===""&&e.isTrusted?!0:Al()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Gm(e){return!Al()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}const Wm=typeof Element<"u"&&"checkVisibility"in Element.prototype;function qm(e){const t=it(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:s,visibility:a}=i(e);o=s!=="none"&&a!=="hidden"&&a!=="collapse"}return o}function Ym(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Vl(e,t){return Wm?e.checkVisibility()&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&qm(e)&&Ym(e,t)&&(!e.parentElement||Vl(e.parentElement,e))}const _l=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],Xm=_l.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";_l.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function Jm(e){return e.matches(Xm)&&Vl(e)&&!Zm(e)}function Zm(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function Rr(e,t,n){let[r,o]=h.useState(e||t),i=h.useRef(e!==void 0),s=e!==void 0;h.useEffect(()=>{let u=i.current;u!==s&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),i.current=s},[s]);let a=s?e:r,l=h.useCallback((u,...c)=>{let d=(m,...g)=>{n&&(Object.is(a,m)||n(m,...g)),s||(a=m)};typeof u=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((g,...y)=>{let b=u(s?a:g,...y);return d(b,...c),s?g:b})):(s||o(u),d(u,...c))},[s,a,n]);return[a,l]}function En(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Br(e,t){let n=e,r=0,o=t.toString(),i=o.toLowerCase().indexOf("e-");if(i>0)r=Math.abs(Math.floor(Math.log10(Math.abs(t))))+i;else{let s=o.indexOf(".");s>=0&&(r=o.length-s)}if(r>0){let s=Math.pow(10,r);n=Math.round(n*s)/s}return n}function rr(e,t,n,r){t=Number(t),n=Number(n);let o=(e-(isNaN(t)?0:t))%r,i=Br(Math.abs(o)*2>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o,r);return isNaN(t)?!isNaN(n)&&i>n&&(i=Math.floor(Br(n/r,r))*r):i<t?i=t:!isNaN(n)&&i>n&&(i=t+Math.floor(Br((n-t)/r,r))*r),i=Br(i,r),i}function yi(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Fl(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function jl(e){let t=h.useRef({isFocused:!1,observer:null});ui(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Nt(r=>{e?.(r)});return h.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=s=>{if(t.current.isFocused=!1,o.disabled){let a=yi(s);n(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var s;(s=t.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}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let zr=!1;function Rl(e){for(;e&&!Jm(e);)e=e.parentElement;let t=it(e),n=t.document.activeElement;if(!n||n===e)return;zr=!0;let r=!1,o=c=>{(c.target===n||r)&&c.stopImmediatePropagation()},i=c=>{(c.target===n||r)&&(c.stopImmediatePropagation(),!e&&!r&&(r=!0,yn(n),l()))},s=c=>{(c.target===e||r)&&c.stopImmediatePropagation()},a=c=>{(c.target===e||r)&&(c.stopImmediatePropagation(),r||(r=!0,yn(n),l()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",a,!0),t.addEventListener("focus",s,!0);let l=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",a,!0),t.removeEventListener("focus",s,!0),zr=!1,r=!1},u=requestAnimationFrame(l);return l}let Tn="default",wi="",Ur=new WeakMap;function Bl(e){if(gi()){if(Tn==="default"){const t=Xe(e);wi=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Tn="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Ur.set(e,e.style[t]),e.style[t]="none"}}function xi(e){if(gi()){if(Tn!=="disabled")return;Tn="restoring",setTimeout(()=>{Nl(()=>{if(Tn==="restoring"){const t=Xe(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=wi||""),wi="",Tn="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Ur.has(e)){let t=Ur.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Ur.delete(e)}}const zl=h.createContext({register:()=>{}});zl.displayName="PressResponderContext";function Qm(e,t){return t.get?t.get.call(e):t.value}function Ul(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Kl(e,t){var n=Ul(e,t,"get");return Qm(e,n)}function eg(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Hl(e,t,n){eg(e,t),t.set(e,n)}function tg(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function Kr(e,t,n){var r=Ul(e,t,"set");return tg(e,r,n),n}function ng(e){let t=h.useContext(zl);if(t){let{register:n,...r}=t;e=vn(r,e),n()}return Ll(t,e.ref),e}var Hr=new WeakMap;let Gr=class{continuePropagation(){Kr(this,Hr,!1)}get shouldStopPropagation(){return Kl(this,Hr)}constructor(t,n,r,o){Hl(this,Hr,{writable:!0,value:void 0}),Kr(this,Hr,!0);var i;let s=(i=o?.target)!==null&&i!==void 0?i:r.currentTarget;const a=s?.getBoundingClientRect();let l,u=0,c,d=null;r.clientX!=null&&r.clientY!=null&&(c=r.clientX,d=r.clientY),a&&(c!=null&&d!=null?(l=c-a.left,u=d-a.top):(l=a.width/2,u=a.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=u}};const Gl=Symbol("linkClicked"),Wl="react-aria-pressable-style",ql="data-react-aria-pressable";function rg(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,onClick:s,isDisabled:a,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:m,...g}=ng(e),[y,b]=h.useState(!1),x=h.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:v,removeAllGlobalListeners:$}=Dl(),A=Nt((f,S)=>{let N=x.current;if(a||N.didFirePressStart)return!1;let w=!0;if(N.isTriggeringEvent=!0,r){let D=new Gr("pressstart",S,f);r(D),w=D.shouldStopPropagation}return n&&n(!0),N.isTriggeringEvent=!1,N.didFirePressStart=!0,b(!0),w}),M=Nt((f,S,N=!0)=>{let w=x.current;if(!w.didFirePressStart)return!1;w.didFirePressStart=!1,w.isTriggeringEvent=!0;let D=!0;if(o){let p=new Gr("pressend",S,f);o(p),D=p.shouldStopPropagation}if(n&&n(!1),b(!1),t&&N&&!a){let p=new Gr("press",S,f);t(p),D&&(D=p.shouldStopPropagation)}return w.isTriggeringEvent=!1,D}),I=Nt((f,S)=>{let N=x.current;if(a)return!1;if(i){N.isTriggeringEvent=!0;let w=new Gr("pressup",S,f);return i(w),N.isTriggeringEvent=!1,w.shouldStopPropagation}return!0}),O=Nt(f=>{let S=x.current;if(S.isPressed&&S.target){S.didFirePressStart&&S.pointerType!=null&&M(Ht(S.target,f),S.pointerType,!1),S.isPressed=!1,S.isOverTarget=!1,S.activePointerId=null,S.pointerType=null,$(),d||xi(S.target);for(let N of S.disposables)N();S.disposables=[]}}),L=Nt(f=>{c&&O(f)}),k=Nt(f=>{s?.(f)}),V=Nt((f,S)=>{if(s){let N=new MouseEvent("click",f);Fl(N,S),s(yi(N))}}),j=h.useMemo(()=>{let f=x.current,S={onKeyDown(w){if(Ti(w.nativeEvent,w.currentTarget)&&Me(w.currentTarget,$e(w.nativeEvent))){var D;Jl($e(w.nativeEvent),w.key)&&w.preventDefault();let p=!0;if(!f.isPressed&&!w.repeat){f.target=w.currentTarget,f.isPressed=!0,f.pointerType="keyboard",p=A(w,"keyboard");let C=w.currentTarget,E=B=>{Ti(B,C)&&!B.repeat&&Me(C,$e(B))&&f.target&&I(Ht(f.target,B),"keyboard")};v(Xe(w.currentTarget),"keyup",Cl(E,N),!0)}p&&w.stopPropagation(),w.metaKey&&wn()&&((D=f.metaKeyEvents)===null||D===void 0||D.set(w.key,w.nativeEvent))}else w.key==="Meta"&&(f.metaKeyEvents=new Map)},onClick(w){if(!(w&&!Me(w.currentTarget,$e(w.nativeEvent)))&&w&&w.button===0&&!f.isTriggeringEvent&&!xn.isOpening){let D=!0;if(a&&w.preventDefault(),!f.ignoreEmulatedMouseEvents&&!f.isPressed&&(f.pointerType==="virtual"||vi(w.nativeEvent))){let p=A(w,"virtual"),C=I(w,"virtual"),E=M(w,"virtual");k(w),D=p&&C&&E}else if(f.isPressed&&f.pointerType!=="keyboard"){let p=f.pointerType||w.nativeEvent.pointerType||"virtual",C=I(Ht(w.currentTarget,w),p),E=M(Ht(w.currentTarget,w),p,!0);D=C&&E,f.isOverTarget=!1,k(w),O(w)}f.ignoreEmulatedMouseEvents=!1,D&&w.stopPropagation()}}},N=w=>{var D;if(f.isPressed&&f.target&&Ti(w,f.target)){var p;Jl($e(w),w.key)&&w.preventDefault();let E=$e(w),B=Me(f.target,$e(w));M(Ht(f.target,w),"keyboard",B),B&&V(w,f.target),$(),w.key!=="Enter"&&Ei(f.target)&&Me(f.target,E)&&!w[Gl]&&(w[Gl]=!0,xn(f.target,w,!1)),f.isPressed=!1,(p=f.metaKeyEvents)===null||p===void 0||p.delete(w.key)}else if(w.key==="Meta"&&(!((D=f.metaKeyEvents)===null||D===void 0)&&D.size)){var C;let E=f.metaKeyEvents;f.metaKeyEvents=void 0;for(let B of E.values())(C=f.target)===null||C===void 0||C.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){S.onPointerDown=p=>{if(p.button!==0||!Me(p.currentTarget,$e(p.nativeEvent)))return;if(Gm(p.nativeEvent)){f.pointerType="virtual";return}f.pointerType=p.pointerType;let C=!0;if(!f.isPressed){f.isPressed=!0,f.isOverTarget=!0,f.activePointerId=p.pointerId,f.target=p.currentTarget,d||Bl(f.target),C=A(p,f.pointerType);let E=$e(p.nativeEvent);"releasePointerCapture"in E&&E.releasePointerCapture(p.pointerId),v(Xe(p.currentTarget),"pointerup",w,!1),v(Xe(p.currentTarget),"pointercancel",D,!1)}C&&p.stopPropagation()},S.onMouseDown=p=>{if(Me(p.currentTarget,$e(p.nativeEvent))&&p.button===0){if(u){let C=Rl(p.target);C&&f.disposables.push(C)}p.stopPropagation()}},S.onPointerUp=p=>{!Me(p.currentTarget,$e(p.nativeEvent))||f.pointerType==="virtual"||p.button===0&&!f.isPressed&&I(p,f.pointerType||p.pointerType)},S.onPointerEnter=p=>{p.pointerId===f.activePointerId&&f.target&&!f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!0,A(Ht(f.target,p),f.pointerType))},S.onPointerLeave=p=>{p.pointerId===f.activePointerId&&f.target&&f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!1,M(Ht(f.target,p),f.pointerType,!1),L(p))};let w=p=>{if(p.pointerId===f.activePointerId&&f.isPressed&&p.button===0&&f.target){if(Me(f.target,$e(p))&&f.pointerType!=null){let C=!1,E=setTimeout(()=>{f.isPressed&&f.target instanceof HTMLElement&&(C?O(p):(yn(f.target),f.target.click()))},80);v(p.currentTarget,"click",()=>C=!0,!0),f.disposables.push(()=>clearTimeout(E))}else O(p);f.isOverTarget=!1}},D=p=>{O(p)};S.onDragStart=p=>{Me(p.currentTarget,$e(p.nativeEvent))&&O(p)}}else if(process.env.NODE_ENV==="test"){S.onMouseDown=p=>{if(p.button!==0||!Me(p.currentTarget,$e(p.nativeEvent)))return;if(f.ignoreEmulatedMouseEvents){p.stopPropagation();return}if(f.isPressed=!0,f.isOverTarget=!0,f.target=p.currentTarget,f.pointerType=vi(p.nativeEvent)?"virtual":"mouse",Yo.flushSync(()=>A(p,f.pointerType))&&p.stopPropagation(),u){let E=Rl(p.target);E&&f.disposables.push(E)}v(Xe(p.currentTarget),"mouseup",w,!1)},S.onMouseEnter=p=>{if(!Me(p.currentTarget,$e(p.nativeEvent)))return;let C=!0;f.isPressed&&!f.ignoreEmulatedMouseEvents&&f.pointerType!=null&&(f.isOverTarget=!0,C=A(p,f.pointerType)),C&&p.stopPropagation()},S.onMouseLeave=p=>{if(!Me(p.currentTarget,$e(p.nativeEvent)))return;let C=!0;f.isPressed&&!f.ignoreEmulatedMouseEvents&&f.pointerType!=null&&(f.isOverTarget=!1,C=M(p,f.pointerType,!1),L(p)),C&&p.stopPropagation()},S.onMouseUp=p=>{Me(p.currentTarget,$e(p.nativeEvent))&&!f.ignoreEmulatedMouseEvents&&p.button===0&&!f.isPressed&&I(p,f.pointerType||"mouse")};let w=p=>{if(p.button===0){if(f.ignoreEmulatedMouseEvents){f.ignoreEmulatedMouseEvents=!1;return}f.target&&f.target.contains(p.target)&&f.pointerType!=null||O(p),f.isOverTarget=!1}};S.onTouchStart=p=>{if(!Me(p.currentTarget,$e(p.nativeEvent)))return;let C=og(p.nativeEvent);if(!C)return;f.activePointerId=C.identifier,f.ignoreEmulatedMouseEvents=!0,f.isOverTarget=!0,f.isPressed=!0,f.target=p.currentTarget,f.pointerType="touch",d||Bl(f.target),A(Lt(f.target,p),f.pointerType)&&p.stopPropagation(),v(it(p.currentTarget),"scroll",D,!0)},S.onTouchMove=p=>{if(!Me(p.currentTarget,$e(p.nativeEvent)))return;if(!f.isPressed){p.stopPropagation();return}let C=Yl(p.nativeEvent,f.activePointerId),E=!0;C&&Xl(C,p.currentTarget)?!f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!0,E=A(Lt(f.target,p),f.pointerType)):f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!1,E=M(Lt(f.target,p),f.pointerType,!1),L(Lt(f.target,p))),E&&p.stopPropagation()},S.onTouchEnd=p=>{if(!Me(p.currentTarget,$e(p.nativeEvent)))return;if(!f.isPressed){p.stopPropagation();return}let C=Yl(p.nativeEvent,f.activePointerId),E=!0;C&&Xl(C,p.currentTarget)&&f.pointerType!=null?(I(Lt(f.target,p),f.pointerType),E=M(Lt(f.target,p),f.pointerType),V(p.nativeEvent,f.target)):f.isOverTarget&&f.pointerType!=null&&(E=M(Lt(f.target,p),f.pointerType,!1)),E&&p.stopPropagation(),f.isPressed=!1,f.activePointerId=null,f.isOverTarget=!1,f.ignoreEmulatedMouseEvents=!0,f.target&&!d&&xi(f.target),$()},S.onTouchCancel=p=>{Me(p.currentTarget,$e(p.nativeEvent))&&(p.stopPropagation(),f.isPressed&&O(Lt(f.target,p)))};let D=p=>{f.isPressed&&Me($e(p),f.target)&&O({currentTarget:f.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};S.onDragStart=p=>{Me(p.currentTarget,$e(p.nativeEvent))&&O(p)}}return S},[v,a,u,$,d,O,L,M,A,I,k,V]);return h.useEffect(()=>{if(!m||process.env.NODE_ENV==="test")return;const f=Xe(m.current);if(!f||!f.head||f.getElementById(Wl))return;const S=f.createElement("style");S.id=Wl,S.textContent=`
31
+ @layer {
32
+ [${ql}] {
33
+ touch-action: pan-x pan-y pinch-zoom;
34
+ }
35
+ }
36
+ `.trim(),f.head.prepend(S)},[m]),h.useEffect(()=>{let f=x.current;return()=>{var S;d||xi((S=f.target)!==null&&S!==void 0?S:void 0);for(let N of f.disposables)N();f.disposables=[]}},[d]),{isPressed:l||y,pressProps:vn(g,j,{[ql]:!0})}}function Ei(e){return e.tagName==="A"&&e.hasAttribute("href")}function Ti(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof it(o).HTMLInputElement&&!Zl(o,n)||o instanceof it(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&Ei(o))&&n!=="Enter")}function og(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Yl(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const o=n[r];if(o.identifier===t)return o}return null}function Lt(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function Ht(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function ig(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function sg(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Xl(e,t){let n=t.getBoundingClientRect(),r=ig(e);return sg(n,r)}function ag(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Ei(e)}function Jl(e,t){return e instanceof HTMLInputElement?!Zl(e,t):ag(e)}const lg=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Zl(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":lg.has(e.type)}let $n=null,$i=new Set,or=new Map,Gt=!1,Ci=!1;const cg={Tab:!0,Escape:!0};function Pi(e,t){for(let n of $i)n(e,t)}function ug(e){return!(e.metaKey||!wn()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Wr(e){Gt=!0,ug(e)&&($n="keyboard",Pi("keyboard",e))}function st(e){$n="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Gt=!0,Pi("pointer",e))}function Ql(e){vi(e)&&(Gt=!0,$n="virtual")}function ec(e){e.target===window||e.target===document||zr||!e.isTrusted||(!Gt&&!Ci&&($n="virtual",Pi("virtual",e)),Gt=!1,Ci=!1)}function tc(){zr||(Gt=!1,Ci=!0)}function Si(e){if(typeof window>"u"||typeof document>"u"||or.get(it(e)))return;const t=it(e),n=Xe(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Gt=!0,r.apply(this,arguments)},n.addEventListener("keydown",Wr,!0),n.addEventListener("keyup",Wr,!0),n.addEventListener("click",Ql,!0),t.addEventListener("focus",ec,!0),t.addEventListener("blur",tc,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",st,!0),n.addEventListener("pointermove",st,!0),n.addEventListener("pointerup",st,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",st,!0),n.addEventListener("mousemove",st,!0),n.addEventListener("mouseup",st,!0)),t.addEventListener("beforeunload",()=>{nc(e)},{once:!0}),or.set(t,{focus:r})}const nc=(e,t)=>{const n=it(e),r=Xe(e);t&&r.removeEventListener("DOMContentLoaded",t),or.has(n)&&(n.HTMLElement.prototype.focus=or.get(n).focus,r.removeEventListener("keydown",Wr,!0),r.removeEventListener("keyup",Wr,!0),r.removeEventListener("click",Ql,!0),n.removeEventListener("focus",ec,!0),n.removeEventListener("blur",tc,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",st,!0),r.removeEventListener("pointermove",st,!0),r.removeEventListener("pointerup",st,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",st,!0),r.removeEventListener("mousemove",st,!0),r.removeEventListener("mouseup",st,!0)),or.delete(n))};function dg(e){const t=Xe(e);let n;return t.readyState!=="loading"?Si(e):(n=()=>{Si(e)},t.addEventListener("DOMContentLoaded",n)),()=>nc(e,n)}typeof document<"u"&&dg();function rc(){return $n!=="pointer"}function fg(){return $n}const pg=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function hg(e,t,n){let r=Xe(n?.target);const o=typeof window<"u"?it(n?.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?it(n?.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?it(n?.target).HTMLElement:HTMLElement,a=typeof window<"u"?it(n?.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof o&&!pg.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof s&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof a&&!cg[n.key])}function mg(e,t,n){Si(),h.useEffect(()=>{let r=(o,i)=>{hg(!!n?.isTextInput,o,i)&&e(rc())};return $i.add(r),()=>{$i.delete(r)}},t)}function gg(e){const t=Xe(e),n=nr(t);if(fg()==="virtual"){let r=n;Nl(()=>{nr(t)===r&&e.isConnected&&yn(e)})}else yn(e)}function oc(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=h.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),s=jl(i),a=h.useCallback(l=>{const u=Xe(l.target),c=u?nr(u):nr();l.target===l.currentTarget&&c===$e(l.nativeEvent)&&(n&&n(l),o&&o(!0),s(l))},[o,n,s]);return{focusProps:{onFocus:!t&&(n||o||r)?a:void 0,onBlur:!t&&(r||o)?i:void 0}}}function ic(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function bg(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:ic(e.onKeyDown),onKeyUp:ic(e.onKeyUp)}}}let vg=h.createContext(null);function yg(e){let t=h.useContext(vg)||{};Ll(t,e);let{ref:n,...r}=t;return r}function wg(e,t){let{focusProps:n}=oc(e),{keyboardProps:r}=bg(e),o=vn(n,r),i=yg(t),s=e.isDisabled?{}:i,a=h.useRef(e.autoFocus);h.useEffect(()=>{a.current&&t.current&&gg(t.current),a.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:vn({...o,tabIndex:l},s)}}function xg(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=h.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:a}=Dl(),l=h.useCallback(d=>{d.currentTarget.contains(d.target)&&i.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(i.current.isFocusWithin=!1,a(),n&&n(d),o&&o(!1))},[n,o,i,a]),u=jl(l),c=h.useCallback(d=>{if(!d.currentTarget.contains(d.target))return;const m=Xe(d.target),g=nr(m);if(!i.current.isFocusWithin&&g===$e(d.nativeEvent)){r&&r(d),o&&o(!0),i.current.isFocusWithin=!0,u(d);let y=d.currentTarget;s(m,"focus",b=>{if(i.current.isFocusWithin&&!Me(y,b.target)){let x=new m.defaultView.FocusEvent("blur",{relatedTarget:b.target});Fl(x,y);let v=yi(x);l(v)}},{capture:!0})}},[r,o,u,s,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:l}}}function Eg(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=h.useRef({isFocused:!1,isFocusVisible:t||rc()}),[i,s]=h.useState(!1),[a,l]=h.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=h.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),c=h.useCallback(g=>{o.current.isFocused=g,s(g),u()},[u]);mg(g=>{o.current.isFocusVisible=g,u()},[],{isTextInput:n});let{focusProps:d}=oc({isDisabled:r,onFocusChange:c}),{focusWithinProps:m}=xg({isDisabled:!r,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:a,focusProps:r?m:d}}function Tg(e,t){let{elementType:n="a",onPress:r,onPressStart:o,onPressEnd:i,onClick:s,isDisabled:a,...l}=e,u={};n!=="a"&&(u={role:"link",tabIndex:a?void 0:0});let{focusableProps:c}=wg(e,t),{pressProps:d,isPressed:m}=rg({onClick:s,onPress:r,onPressStart:o,onPressEnd:i,isDisabled:a,ref:t}),g=Om(l,{labelable:!0,isLink:n==="a"}),y=vn(c,d),b=Ol(),x=Um(e);return{isPressed:m,linkProps:vn(g,x,{...y,...u,"aria-disabled":a||void 0,"aria-current":e["aria-current"],onClick:v=>{var $;($=d.onClick)==null||$.call(d,v),Km(v,b,e.href,e.routerOptions)}})}}function qr(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=Ut.createContext(void 0);o.displayName=r;function i(){var s;const a=Ut.useContext(o);if(!a&&t){const l=new Error(n);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,i),l}return a}return[o.Provider,i,o]}function $g(e){return{UNSAFE_getDOMNode(){return e.current}}}function mt(e){const t=h.useRef(null);return h.useImperativeHandle(e,()=>t.current),t}function Cg(e,t){if(e!=null){if(im(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function sc(...e){return t=>{e.forEach(n=>Cg(n,t))}}function Pg(){const e=()=>()=>{};return Ut.useSyncExternalStore(e,()=>!0,()=>!1)}var Sg=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","enterKeyHint","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),kg=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),ac=/^(data-.*)$/,Ig=/^(aria-.*)$/,Yr=/^(on[A-Z].*)$/;function Vt(e,t={}){let{labelable:n=!0,enabled:r=!0,propNames:o,omitPropNames:i,omitEventNames:s,omitDataProps:a,omitEventProps:l}=t,u={};if(!r)return e;for(const c in e)i?.has(c)||s?.has(c)&&Yr.test(c)||Yr.test(c)&&!kg.has(c)||a&&ac.test(c)||l&&Yr.test(c)||(Object.prototype.hasOwnProperty.call(e,c)&&(Sg.has(c)||n&&Ig.test(c)||o?.has(c)||ac.test(c))||Yr.test(c))&&(u[c]=e[c]);return u}function ki({Component:e,props:t,renderCustom:n}){return n&&typeof n=="function"?n(t):Ut.createElement(e,t)}var[PT,$t]=qr({name:"ProviderContext",strict:!1});const Ag=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Og=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Mg(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return Ag.has(n.script)}let t=e.split("-")[0];return Og.has(t)}const Ng=Symbol.for("react-aria.i18n.locale");function lc(){let e=typeof window<"u"&&window[Ng]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Mg(e)?"rtl":"ltr"}}let Ii=lc(),ir=new Set;function cc(){Ii=lc();for(let e of ir)e(Ii)}function Dg(){let e=pi(),[t,n]=h.useState(Ii);return h.useEffect(()=>(ir.size===0&&window.addEventListener("languagechange",cc),ir.add(n),()=>{ir.delete(n),ir.size===0&&window.removeEventListener("languagechange",cc)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const Lg=h.createContext(null);function sr(){let e=Dg();return h.useContext(Lg)||e}const gt=typeof document<"u"?h.useLayoutEffect:()=>{};var Ai;const Vg=(Ai=h.useInsertionEffect)!==null&&Ai!==void 0?Ai:gt;function ze(e){const t=h.useRef(null);return Vg(()=>{t.current=e},[e]),h.useCallback((...n)=>{const r=t.current;return r?.(...n)},[])}function _g(e){let[t,n]=h.useState(e),r=h.useRef(null),o=ze(()=>{if(!r.current)return;let s=r.current.next();if(s.done){r.current=null;return}t===s.value?o():n(s.value)});gt(()=>{r.current&&o()});let i=ze(s=>{r.current=s(t),o()});return[t,i]}let Fg=!!(typeof window<"u"&&window.document&&window.document.createElement),Cn=new Map,ar;typeof FinalizationRegistry<"u"&&(ar=new FinalizationRegistry(e=>{Cn.delete(e)}));function lr(e){let[t,n]=h.useState(e),r=h.useRef(null),o=vm(t),i=h.useRef(null);if(ar&&ar.register(i,o),Fg){const s=Cn.get(o);s&&!s.includes(r)?s.push(r):Cn.set(o,[r])}return gt(()=>{let s=o;return()=>{ar&&ar.unregister(i),Cn.delete(s)}},[o]),h.useEffect(()=>{let s=r.current;return s&&n(s),()=>{s&&(r.current=null)}}),o}function jg(e,t){if(e===t)return e;let n=Cn.get(e);if(n)return n.forEach(o=>o.current=t),t;let r=Cn.get(t);return r?(r.forEach(o=>o.current=e),e):t}function uc(e=[]){let t=lr(),[n,r]=_g(t),o=h.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return gt(o,[t,o,...e]),n}function dc(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Ge=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},at=e=>e&&"window"in e&&e.window===e?e:Ge(e).defaultView||window;function Rg(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function Bg(e){return Rg(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function Oe(e,t){if(!bn())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:Bg(n)?n=n.host:n=n.parentNode}return!1}const cr=(e=document)=>{var t;if(!bn())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 Ce(e){return bn()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function Re(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],s=r[o];typeof i=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=dc(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=Sl(i,s):o==="id"&&i&&s?t.id=jg(i,s):t[o]=s!==void 0?s:i}}return t}const zg=new Set(["id"]),Ug=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Kg=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Hg=new Set(["dir","lang","hidden","inert","translate"]),fc=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),Gg=/^(data-.*)$/;function Xr(e,t={}){let{labelable:n,isLink:r,global:o,events:i=o,propNames:s}=t,a={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(zg.has(l)||n&&Ug.has(l)||r&&Kg.has(l)||o&&Hg.has(l)||i&&fc.has(l)||l.endsWith("Capture")&&fc.has(l.slice(0,-7))||s?.has(l)||Gg.test(l))&&(a[l]=e[l]);return a}function Wt(e){if(Wg())e.focus({preventScroll:!0});else{let t=qg(e);e.focus(),Yg(t)}}let Jr=null;function Wg(){if(Jr==null){Jr=!1;try{document.createElement("div").focus({get preventScroll(){return Jr=!0,!0}})}catch{}}return Jr}function qg(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 Yg(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Zr(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 Oi(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 Ct(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Pn=Ct(function(){return Oi(/^Mac/i)}),Xg=Ct(function(){return Oi(/^iPhone/i)}),pc=Ct(function(){return Oi(/^iPad/i)||Pn()&&navigator.maxTouchPoints>1}),Mi=Ct(function(){return Xg()||pc()});Ct(function(){return Pn()||Mi()});const hc=Ct(function(){return Zr(/AppleWebKit/i)&&!Jg()}),Jg=Ct(function(){return Zr(/Chrome/i)}),mc=Ct(function(){return Zr(/Android/i)}),Zg=Ct(function(){return Zr(/Firefox/i)});function ur(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}=t;Zg()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Pn()?i=!0:s=!0);let u=hc()&&Pn()&&!pc()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l,bubbles:!0,cancelable:!0});ur.isOpening=n,Wt(e),e.dispatchEvent(u),ur.isOpening=!1}ur.isOpening=!1;let _t=new Map,Ni=new Set;function gc(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=_t.get(r.target);o||(o=new Set,_t.set(r.target,o),r.target.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let o=_t.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),_t.delete(r.target)),_t.size===0)){for(let i of Ni)i();Ni.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?gc():document.addEventListener("DOMContentLoaded",gc));function Qg(){for(const[e]of _t)"isConnected"in e&&!e.isConnected&&_t.delete(e)}function bc(e){requestAnimationFrame(()=>{Qg(),_t.size===0?e():Ni.add(e)})}function Sn(){let e=h.useRef(new Map),t=h.useCallback((o,i,s,a)=>{let l=a?.once?(...u)=>{e.current.delete(s),s(...u)}:s;e.current.set(s,{type:i,eventTarget:o,fn:l,options:a}),o.addEventListener(i,l,a)},[]),n=h.useCallback((o,i,s,a)=>{var l;let u=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;o.removeEventListener(i,u,a),e.current.delete(s)},[]),r=h.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return h.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function eb(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=lr(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function tb(){return typeof window.ResizeObserver<"u"}function vc(e){const{ref:t,box:n,onResize:r}=e;h.useEffect(()=>{let o=t?.current;if(o)if(tb()){const i=new window.ResizeObserver(s=>{s.length&&r()});return i.observe(o,{box:n}),()=>{o&&i.unobserve(o)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function yc(e,t){gt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Di(e){return e.mozInputSource===0&&e.isTrusted?!0:mc()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function nb(e){return!mc()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function wc(e,t,n){let r=ze(()=>{n&&n(t)});h.useEffect(()=>{var o;let i=e==null||(o=e.current)===null||o===void 0?void 0:o.form;return i?.addEventListener("reset",r),()=>{i?.removeEventListener("reset",r)}},[e,r])}const rb=typeof Element<"u"&&"checkVisibility"in Element.prototype;function ob(e){const t=at(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:s,visibility:a}=i(e);o=s!=="none"&&a!=="hidden"&&a!=="collapse"}return o}function ib(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function xc(e,t){return rb?e.checkVisibility():e.nodeName!=="#comment"&&ob(e)&&ib(e,t)&&(!e.parentElement||xc(e.parentElement,e))}const Ec=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],sb=Ec.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Ec.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function ab(e){return e.matches(sb)&&xc(e)&&!lb(e)}function lb(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}let Li=new Map,Vi=!1;try{Vi=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Qr=!1;try{Qr=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Tc={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class cb{format(t){let n="";if(!Vi&&this.options.signDisplay!=null?n=db(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Qr){var r;let{unit:o,unitDisplay:i="short",locale:s}=this.resolvedOptions();if(!o)return n;let a=(r=Tc[o])===null||r===void 0?void 0:r[i];n+=a[s]||a.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Vi&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Qr&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=ub(t,n),this.options=n}}function ub(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Qr){var r;let{unit:s,unitDisplay:a="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=Tc[s])===null||r===void 0)&&r[a]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((s,a)=>s[0]<a[0]?-1:1).join():"");if(Li.has(o))return Li.get(o);let i=new Intl.NumberFormat(e,t);return Li.set(o,i),i}function db(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let o=e.format(-n),i=e.format(n),s=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(s,"+").replace("!!!",i)}else return e.format(n)}}function $c(e={}){let{locale:t}=sr();return h.useMemo(()=>new cb(t,e),[t,e])}const Cc=h.createContext({});function _i(e){const t=h.useRef(null);return t.current===null&&(t.current=e()),t.current}const Fi=typeof window<"u",Pc=Fi?h.useLayoutEffect:h.useEffect,eo=h.createContext(null);function fb(e,t){e.indexOf(t)===-1&&e.push(t)}function pb(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const qt=(e,t,n)=>n>t?t:n<e?e:n;function ji(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let kn=()=>{},Ft=()=>{};process.env.NODE_ENV!=="production"&&(kn=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(ji(t,n))},Ft=(e,t,n)=>{if(!e)throw new Error(ji(t,n))});const Pt={},Sc=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function hb(e){return typeof e=="object"&&e!==null}const kc=e=>/^0[^.\s]+$/u.test(e);function Ri(e){let t;return()=>(t===void 0&&(t=e()),t)}const In=e=>e,mb=(e,t)=>n=>t(e(n)),to=(...e)=>e.reduce(mb),Ic=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Ac{constructor(){this.subscriptions=[]}add(t){return fb(this.subscriptions,t),()=>pb(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const bt=e=>e*1e3,St=e=>e/1e3;function Oc(e,t){return t?e*(1e3/t):0}const Mc=new Set;function Bi(e,t,n){e||Mc.has(t)||(console.warn(ji(t,n)),Mc.add(t))}const Nc=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,gb=1e-7,bb=12;function vb(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=Nc(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>gb&&++a<bb);return s}function dr(e,t,n,r){if(e===t&&n===r)return In;const o=i=>vb(i,0,1,e,n);return i=>i===0||i===1?i:Nc(o(i),t,r)}const Dc=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Lc=e=>t=>1-e(1-t),Vc=dr(.33,1.53,.69,.99),zi=Lc(Vc),_c=Dc(zi),Fc=e=>(e*=2)<1?.5*zi(e):.5*(2-Math.pow(2,-10*(e-1))),Ui=e=>1-Math.sin(Math.acos(e)),yb=Lc(Ui),jc=Dc(Ui),wb=dr(.42,0,1,1),xb=dr(0,0,.58,1),Rc=dr(.42,0,.58,1),Eb=e=>Array.isArray(e)&&typeof e[0]!="number",Bc=e=>Array.isArray(e)&&typeof e[0]=="number",zc={linear:In,easeIn:wb,easeInOut:Rc,easeOut:xb,circIn:Ui,circInOut:jc,circOut:yb,backIn:zi,backInOut:_c,backOut:Vc,anticipate:Fc},Tb=e=>typeof e=="string",Uc=e=>{if(Bc(e)){Ft(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return dr(t,n,r,o)}else if(Tb(e))return Ft(zc[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),zc[e];return e},no=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function $b(e,t){let n=new Set,r=new Set,o=!1,i=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){s.has(c)&&(u.schedule(c),e()),c(a)}const u={schedule:(c,d=!1,m=!1)=>{const y=m&&o?n:r;return d&&s.add(c),y.has(c)||y.add(c),c},cancel:c=>{r.delete(c),s.delete(c)},process:c=>{if(a=c,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(l),n.clear(),o=!1,i&&(i=!1,u.process(c))}};return u}const Cb=40;function Kc(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=no.reduce((A,M)=>(A[M]=$b(i),A),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:m,render:g,postRender:y}=s,b=()=>{const A=Pt.useManualTiming?o.timestamp:performance.now();n=!1,Pt.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(A-o.timestamp,Cb),1)),o.timestamp=A,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),c.process(o),d.process(o),m.process(o),g.process(o),y.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(b))},x=()=>{n=!0,r=!0,o.isProcessing||e(b)};return{schedule:no.reduce((A,M)=>{const I=s[M];return A[M]=(O,L=!1,k=!1)=>(n||x(),I.schedule(O,L,k)),A},{}),cancel:A=>{for(let M=0;M<no.length;M++)s[no[M]].cancel(A)},state:o,steps:s}}const{schedule:ft,cancel:Ki,state:ro}=Kc(typeof requestAnimationFrame<"u"?requestAnimationFrame:In,!0);let oo;function Pb(){oo=void 0}const lt={now:()=>(oo===void 0&&lt.set(ro.isProcessing||Pt.useManualTiming?ro.timestamp:performance.now()),oo),set:e=>{oo=e,queueMicrotask(Pb)}},Hc=e=>t=>typeof t=="string"&&t.startsWith(e),Gc=Hc("--"),Sb=Hc("var(--"),Hi=e=>Sb(e)?kb.test(e.split("/*")[0].trim()):!1,kb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,An={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},fr={...An,transform:e=>qt(0,1,e)},io={...An,default:1},pr=e=>Math.round(e*1e5)/1e5,Gi=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ib(e){return e==null}const Ab=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Wi=(e,t)=>n=>!!(typeof n=="string"&&Ab.test(n)&&n.startsWith(e)||t&&!Ib(n)&&Object.prototype.hasOwnProperty.call(n,t)),Wc=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(Gi);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Ob=e=>qt(0,255,e),qi={...An,transform:e=>Math.round(Ob(e))},Yt={test:Wi("rgb","red"),parse:Wc("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+qi.transform(e)+", "+qi.transform(t)+", "+qi.transform(n)+", "+pr(fr.transform(r))+")"};function Mb(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Yi={test:Wi("#"),parse:Mb,transform:Yt.transform},hr=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),jt=hr("deg"),On=hr("%"),te=hr("px"),Nb=hr("vh"),Db=hr("vw"),qc={...On,parse:e=>On.parse(e)/100,transform:e=>On.transform(e*100)},Mn={test:Wi("hsl","hue"),parse:Wc("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+On.transform(pr(t))+", "+On.transform(pr(n))+", "+pr(fr.transform(r))+")"},Ve={test:e=>Yt.test(e)||Yi.test(e)||Mn.test(e),parse:e=>Yt.test(e)?Yt.parse(e):Mn.test(e)?Mn.parse(e):Yi.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Yt.transform(e):Mn.transform(e),getAnimatableNone:e=>{const t=Ve.parse(e);return t.alpha=0,Ve.transform(t)}},Lb=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Vb(e){return isNaN(e)&&typeof e=="string"&&(e.match(Gi)?.length||0)+(e.match(Lb)?.length||0)>0}const Yc="number",Xc="color",_b="var",Fb="var(",Jc="${}",jb=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function mr(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(jb,l=>(Ve.test(l)?(r.color.push(i),o.push(Xc),n.push(Ve.parse(l))):l.startsWith(Fb)?(r.var.push(i),o.push(_b),n.push(l)):(r.number.push(i),o.push(Yc),n.push(parseFloat(l))),++i,Jc)).split(Jc);return{values:n,split:a,indexes:r,types:o}}function Zc(e){return mr(e).values}function Qc(e){const{split:t,types:n}=mr(e),r=t.length;return o=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],o[s]!==void 0){const a=n[s];a===Yc?i+=pr(o[s]):a===Xc?i+=Ve.transform(o[s]):i+=o[s]}return i}}const Rb=e=>typeof e=="number"?0:Ve.test(e)?Ve.getAnimatableNone(e):e;function Bb(e){const t=Zc(e);return Qc(e)(t.map(Rb))}const Nn={test:Vb,parse:Zc,createTransformer:Qc,getAnimatableNone:Bb};function Xi(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function zb({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Xi(l,a,e+1/3),i=Xi(l,a,e),s=Xi(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function so(e,t){return n=>n>0?t:e}const ao=(e,t,n)=>e+(t-e)*n,Ji=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Ub=[Yi,Yt,Mn],Kb=e=>Ub.find(t=>t.test(e));function eu(e){const t=Kb(e);if(kn(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===Mn&&(n=zb(n)),n}const tu=(e,t)=>{const n=eu(e),r=eu(t);if(!n||!r)return so(e,t);const o={...n};return i=>(o.red=Ji(n.red,r.red,i),o.green=Ji(n.green,r.green,i),o.blue=Ji(n.blue,r.blue,i),o.alpha=ao(n.alpha,r.alpha,i),Yt.transform(o))},Zi=new Set(["none","hidden"]);function Hb(e,t){return Zi.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Gb(e,t){return n=>ao(e,t,n)}function Qi(e){return typeof e=="number"?Gb:typeof e=="string"?Hi(e)?so:Ve.test(e)?tu:Yb:Array.isArray(e)?nu:typeof e=="object"?Ve.test(e)?tu:Wb:so}function nu(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Qi(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function Wb(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Qi(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function qb(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],s=e.indexes[i][r[i]],a=e.values[s]??0;n[o]=a,r[i]++}return n}const Yb=(e,t)=>{const n=Nn.createTransformer(t),r=mr(e),o=mr(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Zi.has(e)&&!o.values.length||Zi.has(t)&&!r.values.length?Hb(e,t):to(nu(qb(r,o),o.values),n):(kn(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),so(e,t))};function ru(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ao(e,t,n):Qi(e)(e,t)}const Xb=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ft.update(t,n),stop:()=>Ki(t),now:()=>ro.isProcessing?ro.timestamp:lt.now()}},ou=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},lo=2e4;function es(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<lo;)t+=n,r=e.next(t);return t>=lo?1/0:t}function Jb(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(es(r),lo);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:St(o)}}const Zb=5;function iu(e,t,n){const r=Math.max(t-Zb,0);return Oc(n-e(r),t-r)}const ke={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ts=.001;function Qb({duration:e=ke.duration,bounce:t=ke.bounce,velocity:n=ke.velocity,mass:r=ke.mass}){let o,i;kn(e<=bt(ke.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=qt(ke.minDamping,ke.maxDamping,s),e=qt(ke.minDuration,ke.maxDuration,St(e)),s<1?(o=u=>{const c=u*s,d=c*e,m=c-n,g=ns(u,s),y=Math.exp(-d);return ts-m/g*y},i=u=>{const d=u*s*e,m=d*n+n,g=Math.pow(s,2)*Math.pow(u,2)*e,y=Math.exp(-d),b=ns(Math.pow(u,2),s);return(-o(u)+ts>0?-1:1)*((m-g)*y)/b}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-ts+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=tv(o,i,a);if(e=bt(e),isNaN(l))return{stiffness:ke.stiffness,damping:ke.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const ev=12;function tv(e,t,n){let r=n;for(let o=1;o<ev;o++)r=r-e(r)/t(r);return r}function ns(e,t){return e*Math.sqrt(1-t*t)}const nv=["duration","bounce"],rv=["stiffness","damping","mass"];function su(e,t){return t.some(n=>e[n]!==void 0)}function ov(e){let t={velocity:ke.velocity,stiffness:ke.stiffness,damping:ke.damping,mass:ke.mass,isResolvedFromDuration:!1,...e};if(!su(e,rv)&&su(e,nv))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*qt(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:ke.mass,stiffness:o,damping:i}}else{const n=Qb(e);t={...t,...n,mass:ke.mass},t.isResolvedFromDuration=!0}return t}function co(e=ke.visualDuration,t=ke.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:d,velocity:m,isResolvedFromDuration:g}=ov({...n,velocity:-St(n.velocity||0)}),y=m||0,b=u/(2*Math.sqrt(l*c)),x=s-i,v=St(Math.sqrt(l/c)),$=Math.abs(x)<5;r||(r=$?ke.restSpeed.granular:ke.restSpeed.default),o||(o=$?ke.restDelta.granular:ke.restDelta.default);let A;if(b<1){const I=ns(v,b);A=O=>{const L=Math.exp(-b*v*O);return s-L*((y+b*v*x)/I*Math.sin(I*O)+x*Math.cos(I*O))}}else if(b===1)A=I=>s-Math.exp(-v*I)*(x+(y+v*x)*I);else{const I=v*Math.sqrt(b*b-1);A=O=>{const L=Math.exp(-b*v*O),k=Math.min(I*O,300);return s-L*((y+b*v*x)*Math.sinh(k)+I*x*Math.cosh(k))/I}}const M={calculatedDuration:g&&d||null,next:I=>{const O=A(I);if(g)a.done=I>=d;else{let L=I===0?y:0;b<1&&(L=I===0?bt(y):iu(A,I,O));const k=Math.abs(L)<=r,V=Math.abs(s-O)<=o;a.done=k&&V}return a.value=a.done?s:O,a},toString:()=>{const I=Math.min(es(M),lo),O=ou(L=>M.next(I*L).value,I,30);return I+"ms "+O},toTransition:()=>{}};return M}co.applyToOptions=e=>{const t=Jb(e,100,co);return e.ease=t.ease,e.duration=bt(t.duration),e.type="keyframes",e};function rs({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],m={done:!1,value:d},g=k=>a!==void 0&&k<a||l!==void 0&&k>l,y=k=>a===void 0?l:l===void 0||Math.abs(a-k)<Math.abs(l-k)?a:l;let b=n*t;const x=d+b,v=s===void 0?x:s(x);v!==x&&(b=v-d);const $=k=>-b*Math.exp(-k/r),A=k=>v+$(k),M=k=>{const V=$(k),j=A(k);m.done=Math.abs(V)<=u,m.value=m.done?v:j};let I,O;const L=k=>{g(m.value)&&(I=k,O=co({keyframes:[m.value,y(m.value)],velocity:iu(A,k,m.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return L(0),{calculatedDuration:null,next:k=>{let V=!1;return!O&&I===void 0&&(V=!0,M(k),L(k)),I!==void 0&&k>=I?O.next(k-I):(!V&&M(k),m)}}}function iv(e,t,n){const r=[],o=n||Pt.mix||ru,i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||In:t;a=to(l,a)}r.push(a)}return r}function sv(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Ft(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=iv(t,r,o),l=a.length,u=c=>{if(s&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const m=Ic(e[d],e[d+1],c);return a[d](m)};return n?c=>u(qt(e[0],e[i-1],c)):u}function av(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Ic(0,t,r);e.push(ao(n,1,o))}}function lv(e){const t=[0];return av(t,e.length-1),t}function cv(e,t){return e.map(n=>n*t)}function uv(e,t){return e.map(()=>t||Rc).splice(0,e.length-1)}function Dn({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Eb(r)?r.map(Uc):Uc(r),i={done:!1,value:t[0]},s=cv(n&&n.length===t.length?n:lv(t),e),a=sv(s,t,{ease:Array.isArray(o)?o:uv(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const dv=e=>e!==null;function os(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(dv),a=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const fv={decay:rs,inertia:rs,tween:Dn,keyframes:Dn,spring:co};function au(e){typeof e.type=="string"&&(e.type=fv[e.type])}class is{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const pv=e=>e/100;class ss extends is{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==lt.now()&&this.tick(lt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;au(t);const{type:n=Dn,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const l=n||Dn;process.env.NODE_ENV!=="production"&&l!==Dn&&Ft(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==Dn&&typeof a[0]!="number"&&(this.mixKeyframes=to(pv,ru(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=es(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:c,repeat:d,repeatType:m,repeatDelay:g,type:y,onUpdate:b,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),$=this.playbackSpeed>=0?v<0:v>o;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let A=this.currentTime,M=r;if(d){const k=Math.min(this.currentTime,o)/a;let V=Math.floor(k),j=k%1;!j&&k>=1&&(j=1),j===1&&V--,V=Math.min(V,d+1),!!(V%2)&&(m==="reverse"?(j=1-j,g&&(j-=g/a)):m==="mirror"&&(M=s)),A=qt(0,1,j)*a}const I=$?{done:!1,value:c[0]}:M.next(A);i&&(I.value=i(I.value));let{done:O}=I;!$&&l!==null&&(O=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&O);return L&&y!==rs&&(I.value=os(c,this.options,x,this.speed)),b&&b(I.value),L&&this.finish(),I}then(t,n){return this.finished.then(t,n)}get duration(){return St(this.calculatedDuration)}get time(){return St(this.currentTime)}set time(t){t=bt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(lt.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=St(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Xb,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(lt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function hv(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Xt=e=>e*180/Math.PI,as=e=>{const t=Xt(Math.atan2(e[1],e[0]));return ls(t)},mv={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:as,rotateZ:as,skewX:e=>Xt(Math.atan(e[1])),skewY:e=>Xt(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ls=e=>(e=e%360,e<0&&(e+=360),e),lu=as,cu=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),uu=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),gv={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:cu,scaleY:uu,scale:e=>(cu(e)+uu(e))/2,rotateX:e=>ls(Xt(Math.atan2(e[6],e[5]))),rotateY:e=>ls(Xt(Math.atan2(-e[2],e[0]))),rotateZ:lu,rotate:lu,skewX:e=>Xt(Math.atan(e[4])),skewY:e=>Xt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function cs(e){return e.includes("scale")?1:0}function us(e,t){if(!e||e==="none")return cs(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=gv,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=mv,o=a}if(!o)return cs(t);const i=r[t],s=o[1].split(",").map(vv);return typeof i=="function"?i(s):s[i]}const bv=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return us(n,t)};function vv(e){return parseFloat(e.trim())}const Ln=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vn=new Set(Ln),du=e=>e===An||e===te,yv=new Set(["x","y","z"]),wv=Ln.filter(e=>!yv.has(e));function xv(e){const t=[];return wv.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Jt={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>us(t,"x"),y:(e,{transform:t})=>us(t,"y")};Jt.translateX=Jt.x,Jt.translateY=Jt.y;const Zt=new Set;let ds=!1,fs=!1,ps=!1;function fu(){if(fs){const e=Array.from(Zt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=xv(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{r.getValue(i)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}fs=!1,ds=!1,Zt.forEach(e=>e.complete(ps)),Zt.clear()}function pu(){Zt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(fs=!0)})}function Ev(){ps=!0,pu(),fu(),ps=!1}class hs{constructor(t,n,r,o,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Zt.add(this),ds||(ds=!0,ft.read(pu),ft.resolveKeyframes(fu))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o?.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),o&&i===void 0&&o.set(t[0])}hv(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Zt.delete(this)}cancel(){this.state==="scheduled"&&(Zt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Tv=e=>e.startsWith("--");function $v(e,t,n){Tv(t)?e.style.setProperty(t,n):e.style[t]=n}const Cv=Ri(()=>window.ScrollTimeline!==void 0),Pv={};function Sv(e,t){const n=Ri(e);return()=>Pv[t]??n()}const hu=Sv(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),gr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,mu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gr([0,.65,.55,1]),circOut:gr([.55,0,1,.45]),backIn:gr([.31,.01,.66,-.59]),backOut:gr([.33,1.53,.69,.99])};function gu(e,t){if(e)return typeof e=="function"?hu()?ou(e,t):"ease-out":Bc(e)?gr(e):Array.isArray(e)?e.map(n=>gu(n,t)||mu.easeOut):mu[e]}function kv(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const d=gu(a,o);Array.isArray(d)&&(c.easing=d);const m={delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return u&&(m.pseudoElement=u),e.animate(c,m)}function bu(e){return typeof e=="function"&&"applyToOptions"in e}function Iv({type:e,...t}){return bu(e)&&hu()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Av extends is{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,Ft(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=Iv(t);this.animation=kv(n,r,o,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const c=os(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):$v(n,r,c),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return St(Number(t))}get time(){return St(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=bt(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Cv()?(this.animation.timeline=t,In):n(this)}}const vu={anticipate:Fc,backInOut:_c,circInOut:jc};function Ov(e){return e in vu}function Mv(e){typeof e.ease=="string"&&Ov(e.ease)&&(e.ease=vu[e.ease])}const yu=10;class Nv extends Av{constructor(t){Mv(t),au(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new ss({...s,autoplay:!1}),l=bt(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-yu).value,a.sample(l).value,yu),a.stop()}}const wu=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Nn.test(e)||e==="0")&&!e.startsWith("url("));function Dv(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Lv(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],s=wu(o,t),a=wu(i,t);return kn(s===a,`You are trying to animate ${t} from "${o}" to "${i}". "${s?i:o}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:Dv(e)||(n==="spring"||bu(n))&&r}function ms(e){e.duration=0,e.type}const Vv=new Set(["opacity","clipPath","filter","transform"]),_v=Ri(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Fv(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return _v()&&n&&Vv.has(n)&&(n!=="transform"||!u)&&!l&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const jv=40;class Rv extends is{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:l,motionValue:u,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=lt.now();const m={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,name:l,motionValue:u,element:c,...d},g=c?.KeyframeResolver||hs;this.keyframeResolver=new g(a,(y,b,x)=>this.onKeyframesResolved(y,b,m,!x),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:i,type:s,velocity:a,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=lt.now(),Lv(t,i,s,a)||((Pt.instantAnimations||!l)&&c?.(os(t,r,n)),t[0]=t[t.length-1],ms(r),r.repeat=0);const m={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>jv?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},g=!u&&Fv(m)?new Nv({...m,element:m.motionValue.owner.current}):new ss(m);g.finished.then(()=>this.notifyFinished()).catch(In),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Ev()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const Bv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function zv(e){const t=Bv.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const Uv=4;function xu(e,t,n=1){Ft(n<=Uv,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=zv(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Sc(s)?parseFloat(s):s}return Hi(o)?xu(o,t,n+1):o}function Eu(e,t){return e?.[t]??e?.default??e}const Tu=new Set(["width","height","top","left","right","bottom",...Ln]),Kv={test:e=>e==="auto",parse:e=>e},$u=e=>t=>t.test(e),Cu=[An,te,On,jt,Db,Nb,Kv],Pu=e=>Cu.find($u(e));function Hv(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||kc(e):!0}const Gv=new Set(["brightness","contrast","saturate","opacity"]);function Wv(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Gi)||[];if(!r)return e;const o=n.replace(r,"");let i=Gv.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const qv=/\b([a-z-]*)\(.*?\)/gu,gs={...Nn,getAnimatableNone:e=>{const t=e.match(qv);return t?t.map(Wv).join(" "):e}},Su={...An,transform:Math.round},bs={borderWidth:te,borderTopWidth:te,borderRightWidth:te,borderBottomWidth:te,borderLeftWidth:te,borderRadius:te,radius:te,borderTopLeftRadius:te,borderTopRightRadius:te,borderBottomRightRadius:te,borderBottomLeftRadius:te,width:te,maxWidth:te,height:te,maxHeight:te,top:te,right:te,bottom:te,left:te,padding:te,paddingTop:te,paddingRight:te,paddingBottom:te,paddingLeft:te,margin:te,marginTop:te,marginRight:te,marginBottom:te,marginLeft:te,backgroundPositionX:te,backgroundPositionY:te,...{rotate:jt,rotateX:jt,rotateY:jt,rotateZ:jt,scale:io,scaleX:io,scaleY:io,scaleZ:io,skew:jt,skewX:jt,skewY:jt,distance:te,translateX:te,translateY:te,translateZ:te,x:te,y:te,z:te,perspective:te,transformPerspective:te,opacity:fr,originX:qc,originY:qc,originZ:te},zIndex:Su,fillOpacity:fr,strokeOpacity:fr,numOctaves:Su},Yv={...bs,color:Ve,backgroundColor:Ve,outlineColor:Ve,fill:Ve,stroke:Ve,borderColor:Ve,borderTopColor:Ve,borderRightColor:Ve,borderBottomColor:Ve,borderLeftColor:Ve,filter:gs,WebkitFilter:gs},ku=e=>Yv[e];function Iu(e,t){let n=ku(e);return n!==gs&&(n=Nn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Xv=new Set(["auto","none","0"]);function Jv(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!Xv.has(i)&&mr(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=Iu(n,o)}class Zv extends hs{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),Hi(u))){const c=xu(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Tu.has(r)||t.length!==2)return;const[o,i]=t,s=Pu(o),a=Pu(i);if(s!==a)if(du(s)&&du(a))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else Jt[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||Hv(t[o]))&&r.push(o);r.length&&Jv(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Jt[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,s=r[i];r[i]=Jt[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function Qv(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=n?.[e]??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const Au=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Ou(e){return hb(e)&&"offsetHeight"in e}const Mu=30,e0=e=>!isNaN(parseFloat(e));class t0{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=lt.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=lt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=e0(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Bi(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Ac);const r=this.events[t].add(n);return t==="change"?()=>{r(),ft.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=lt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Mu)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Mu);return Oc(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function uo(e,t){return new t0(e,t)}const{schedule:n0}=Kc(queueMicrotask,!1),r0={y:!1};function o0(){return r0.y}function Nu(e,t){const n=Qv(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function Du(e){return!(e.pointerType==="touch"||o0())}function i0(e,t,n={}){const[r,o,i]=Nu(e,n),s=a=>{if(!Du(a))return;const{target:l}=a,u=t(l,a);if(typeof u!="function"||!l)return;const c=d=>{Du(d)&&(u(d),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,o)};return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const Lu=(e,t)=>t?e===t?!0:Lu(e,t.parentElement):!1,s0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,a0=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function l0(e){return a0.has(e.tagName)||e.tabIndex!==-1}const fo=new WeakSet;function Vu(e){return t=>{t.key==="Enter"&&e(t)}}function vs(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const c0=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Vu(()=>{if(fo.has(n))return;vs(n,"down");const o=Vu(()=>{vs(n,"up")}),i=()=>vs(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function _u(e){return s0(e)&&!0}function u0(e,t,n={}){const[r,o,i]=Nu(e,n),s=a=>{const l=a.currentTarget;if(!_u(a))return;fo.add(l);const u=t(l,a),c=(g,y)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",m),fo.has(l)&&fo.delete(l),_u(g)&&typeof u=="function"&&u(g,{success:y})},d=g=>{c(g,l===window||l===document||n.useGlobalTarget||Lu(l,g.target))},m=g=>{c(g,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",m,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),Ou(a)&&(a.addEventListener("focus",u=>c0(u,o)),!l0(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}const Je=e=>!!(e&&e.getVelocity),d0=[...Cu,Ve,Nn],f0=e=>d0.find($u(e)),ys=h.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class p0 extends Ut.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=Ou(r)&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=o-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function h0({children:e,isPresent:t,anchorX:n,root:r}){const o=h.useId(),i=h.useRef(null),s=h.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=h.useContext(ys);return h.useInsertionEffect(()=>{const{width:l,height:u,top:c,left:d,right:m}=s.current;if(t||!i.current||!l||!u)return;const g=n==="left"?`left: ${d}`:`right: ${m}`;i.current.dataset.motionPopId=o;const y=document.createElement("style");a&&(y.nonce=a);const b=r??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(`
37
+ [data-motion-pop-id="${o}"] {
38
+ position: absolute !important;
39
+ width: ${l}px !important;
40
+ height: ${u}px !important;
41
+ ${g}px !important;
42
+ top: ${c}px !important;
43
+ }
44
+ `),()=>{b.contains(y)&&b.removeChild(y)}},[t]),P.jsx(p0,{isPresent:t,childRef:i,sizeRef:s,children:Ut.cloneElement(e,{ref:i})})}const m0=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a,root:l})=>{const u=_i(g0),c=h.useId();let d=!0,m=h.useMemo(()=>(d=!1,{id:c,initial:t,isPresent:n,custom:o,onExitComplete:g=>{u.set(g,!0);for(const y of u.values())if(!y)return;r&&r()},register:g=>(u.set(g,!1),()=>u.delete(g))}),[n,u,r]);return i&&d&&(m={...m}),h.useMemo(()=>{u.forEach((g,y)=>u.set(y,!1))},[n]),Ut.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),s==="popLayout"&&(e=P.jsx(h0,{isPresent:n,anchorX:a,root:l,children:e})),P.jsx(eo.Provider,{value:m,children:e})};function g0(){return new Map}function b0(e=!0){const t=h.useContext(eo);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=h.useId();h.useEffect(()=>{if(e)return o(i)},[e]);const s=h.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}const po=e=>e.key||"";function Fu(e){const t=[];return h.Children.forEach(e,n=>{h.isValidElement(n)&&t.push(n)}),t}const ju=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1,anchorX:a="left",root:l})=>{const[u,c]=b0(s),d=h.useMemo(()=>Fu(e),[e]),m=s&&!u?[]:d.map(po),g=h.useRef(!0),y=h.useRef(d),b=_i(()=>new Map),[x,v]=h.useState(d),[$,A]=h.useState(d);Pc(()=>{g.current=!1,y.current=d;for(let O=0;O<$.length;O++){const L=po($[O]);m.includes(L)?b.delete(L):b.get(L)!==!0&&b.set(L,!1)}},[$,m.length,m.join("-")]);const M=[];if(d!==x){let O=[...d];for(let L=0;L<$.length;L++){const k=$[L],V=po(k);m.includes(V)||(O.splice(L,0,k),M.push(k))}return i==="wait"&&M.length&&(O=M),A(Fu(O)),v(d),null}process.env.NODE_ENV!=="production"&&i==="wait"&&$.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:I}=h.useContext(Cc);return P.jsx(P.Fragment,{children:$.map(O=>{const L=po(O),k=s&&!u?!1:d===$||m.includes(L),V=()=>{if(b.has(L))b.set(L,!0);else return;let j=!0;b.forEach(f=>{f||(j=!1)}),j&&(I?.(),A(y.current),s&&c?.(),r&&r())};return P.jsx(m0,{isPresent:k,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:l,onExitComplete:k?void 0:V,anchorX:a,children:O},L)})})},ws=h.createContext({strict:!1}),Ru={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},_n={};for(const e in Ru)_n[e]={isEnabled:t=>Ru[e].some(n=>!!t[n])};function xs(e){for(const t in e)_n[t]={..._n[t],...e[t]}}function Bu({children:e,features:t,strict:n=!1}){const[,r]=h.useState(!Es(t)),o=h.useRef(void 0);if(!Es(t)){const{renderer:i,...s}=t;o.current=i,xs(s)}return h.useEffect(()=>{Es(t)&&t().then(({renderer:i,...s})=>{xs(s),o.current=i,r(!0)})},[]),P.jsx(ws.Provider,{value:{renderer:o.current,strict:n},children:e})}function Es(e){return typeof e=="function"}const v0=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ho(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||v0.has(e)}let zu=e=>!ho(e);function y0(e){typeof e=="function"&&(zu=t=>t.startsWith("on")?!ho(t):e(t))}try{y0(require("@emotion/is-prop-valid").default)}catch{}function w0(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(zu(o)||n===!0&&ho(o)||!t&&!ho(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const mo=h.createContext({});function go(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function br(e){return typeof e=="string"||Array.isArray(e)}const Ts=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$s=["initial",...Ts];function bo(e){return go(e.animate)||$s.some(t=>br(e[t]))}function Uu(e){return!!(bo(e)||e.variants)}function x0(e,t){if(bo(e)){const{initial:n,animate:r}=e;return{initial:n===!1||br(n)?n:void 0,animate:br(r)?r:void 0}}return e.inherit!==!1?t:{}}function E0(e){const{initial:t,animate:n}=x0(e,h.useContext(mo));return h.useMemo(()=>({initial:t,animate:n}),[Ku(t),Ku(n)])}function Ku(e){return Array.isArray(e)?e.join(" "):e}const T0={};function Hu(e,{layout:t,layoutId:n}){return Vn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!T0[e]||e==="opacity")}const $0={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},C0=Ln.length;function P0(e,t,n){let r="",o=!0;for(let i=0;i<C0;i++){const s=Ln[i],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=Au(a,bs[s]);if(!l){o=!1;const c=$0[s]||s;r+=`${c}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function Cs(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const l in t){const u=t[l];if(Vn.has(l)){s=!0;continue}else if(Gc(l)){o[l]=u;continue}else{const c=Au(u,bs[l]);l.startsWith("origin")?(a=!0,i[l]=c):r[l]=c}}if(t.transform||(s||n?r.transform=P0(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=i;r.transformOrigin=`${l} ${u} ${c}`}}const Ps=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Gu(e,t,n){for(const r in t)!Je(t[r])&&!Hu(r,n)&&(e[r]=t[r])}function S0({transformTemplate:e},t){return h.useMemo(()=>{const n=Ps();return Cs(n,t,e),Object.assign({},n.vars,n.style)},[t])}function k0(e,t){const n=e.style||{},r={};return Gu(r,n,e),Object.assign(r,S0(e,t)),r}function I0(e,t){const n={},r=k0(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const A0={offset:"stroke-dashoffset",array:"stroke-dasharray"},O0={offset:"strokeDashoffset",array:"strokeDasharray"};function M0(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?A0:O0;e[i.offset]=te.transform(-r);const s=te.transform(t),a=te.transform(n);e[i.array]=`${s} ${a}`}function Wu(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},l,u,c){if(Cs(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:m}=e;d.transform&&(m.transform=d.transform,delete d.transform),(m.transform||d.transformOrigin)&&(m.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),m.transform&&(m.transformBox=c?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),o!==void 0&&M0(d,o,i,s,!1)}const qu=()=>({...Ps(),attrs:{}}),Yu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function N0(e,t,n,r){const o=h.useMemo(()=>{const i=qu();return Wu(i,t,Yu(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Gu(i,e.style,e),o.style={...i,...o.style}}return o}const D0=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ss(e){return typeof e!="string"||e.includes("-")?!1:!!(D0.indexOf(e)>-1||/[A-Z]/u.test(e))}function L0(e,t,n,{latestValues:r},o,i=!1){const a=(Ss(e)?N0:I0)(t,r,o,e),l=w0(t,typeof e=="string",i),u=e!==h.Fragment?{...l,...a,ref:n}:{},{children:c}=t,d=h.useMemo(()=>Je(c)?c.get():c,[c]);return h.createElement(e,{...u,children:d})}function Xu(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function ks(e,t,n,r){if(typeof t=="function"){const[o,i]=Xu(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=Xu(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function V0(e){return Je(e)?e.get():e}function _0({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:F0(n,r,o,e),renderState:t()}}function F0(e,t,n,r){const o={},i=r(e,{});for(const m in i)o[m]=V0(i[m]);let{initial:s,animate:a}=e;const l=bo(e),u=Uu(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;if(d&&typeof d!="boolean"&&!go(d)){const m=Array.isArray(d)?d:[d];for(let g=0;g<m.length;g++){const y=ks(e,m[g]);if(y){const{transitionEnd:b,transition:x,...v}=y;for(const $ in v){let A=v[$];if(Array.isArray(A)){const M=c?A.length-1:0;A=A[M]}A!==null&&(o[$]=A)}for(const $ in b)o[$]=b[$]}}}return o}const Ju=e=>(t,n)=>{const r=h.useContext(mo),o=h.useContext(eo),i=()=>_0(e,t,r,o);return n?i():_i(i)};function Is(e,t,n){const{style:r}=e,o={};for(const i in r)(Je(r[i])||t.style&&Je(t.style[i])||Hu(i,e)||n?.getValue(i)?.liveStyle!==void 0)&&(o[i]=r[i]);return o}const j0=Ju({scrapeMotionValuesFromProps:Is,createRenderState:Ps});function Zu(e,t,n){const r=Is(e,t,n);for(const o in e)if(Je(e[o])||Je(t[o])){const i=Ln.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}const R0=Ju({scrapeMotionValuesFromProps:Zu,createRenderState:qu}),B0=Symbol.for("motionComponentSymbol");function Qu(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function z0(e,t,n){return h.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Qu(n)&&(n.current=r))},[t])}const As=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ed="data-"+As("framerAppearId"),U0=h.createContext({});function K0(e,t,n,r,o){const{visualElement:i}=h.useContext(mo),s=h.useContext(ws),a=h.useContext(eo),l=h.useContext(ys).reducedMotion,u=h.useRef(null);r=r||s.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,d=h.useContext(U0);c&&!c.projection&&o&&(c.type==="html"||c.type==="svg")&&H0(u.current,n,o,d);const m=h.useRef(!1);h.useInsertionEffect(()=>{c&&m.current&&c.update(n,a)});const g=n[ed],y=h.useRef(!!g&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return Pc(()=>{c&&(m.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),y.current&&c.animationState&&c.animationState.animateChanges())}),h.useEffect(()=>{c&&(!y.current&&c.animationState&&c.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),y.current=!1),c.enteringChildren=void 0)}),c}function H0(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:td(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&Qu(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}function td(e){if(e)return e.options.allowProjection!==!1?e.projection:td(e.parent)}function Os(e,{forwardMotionProps:t=!1}={},n,r){n&&xs(n);const o=Ss(e)?R0:j0;function i(a,l){let u;const c={...h.useContext(ys),...a,layoutId:G0(a)},{isStatic:d}=c,m=E0(a),g=o(a,d);if(!d&&Fi){W0(c,n);const y=q0(c);u=y.MeasureLayout,m.visualElement=K0(e,g,c,r,y.ProjectionNode)}return P.jsxs(mo.Provider,{value:m,children:[u&&m.visualElement?P.jsx(u,{visualElement:m.visualElement,...c}):null,L0(e,a,z0(g,m.visualElement,l),g,d,t)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=h.forwardRef(i);return s[B0]=e,s}function G0({layoutId:e}){const t=h.useContext(Cc).id;return t&&e!==void 0?t+"-"+e:e}function W0(e,t){const n=h.useContext(ws).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?kn(!1,r,"lazy-strict-mode"):Ft(!1,r,"lazy-strict-mode")}}function q0(e){const{drag:t,layout:n}=_n;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Y0(e,t){if(typeof Proxy>"u")return Os;const n=new Map,r=(i,s)=>Os(i,s,e,t),o=(i,s)=>(process.env.NODE_ENV!=="production"&&Bi(!1,"motion() is deprecated. Use motion.create() instead."),r(i,s));return new Proxy(o,{get:(i,s)=>s==="create"?r:(n.has(s)||n.set(s,Os(s,void 0,e,t)),n.get(s))})}const nd=Y0();function X0({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function J0(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Z0(e,t){return X0(J0(e.getBoundingClientRect(),t))}const rd=()=>({min:0,max:0}),od=()=>({x:rd(),y:rd()}),Ms={current:null},id={current:!1};function Q0(){if(id.current=!0,!!Fi)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ms.current=e.matches;e.addEventListener("change",t),t()}else Ms.current=!1}const ey=new WeakMap;function ty(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Je(o))e.addValue(r,o);else if(Je(i))e.addValue(r,uo(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,uo(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const sd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ny{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=hs,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=lt.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,ft.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=bo(n),this.isVariantNode=Uu(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in d){const g=d[m];l[m]!==void 0&&Je(g)&&g.set(l[m])}}mount(t){this.current=t,ey.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),id.current||Q0(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ms.current,process.env.NODE_ENV!=="production"&&Bi(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ki(this.notifyUpdate),Ki(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Vn.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&ft.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in _n){const n=_n[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):od()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<sd.length;r++){const o=sd[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,s=t[i];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=ty(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=uo(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Sc(r)||kc(r))?r=parseFloat(r):!f0(r)&&Nn.test(n)&&(r=Iu(t,n)),this.setBaseTarget(t,Je(r)?r.get():r)),Je(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const i=ks(this.props,n,this.presenceContext?.custom);i&&(r=i[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Je(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ac),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){n0.render(this.render)}}class ad extends ny{constructor(){super(...arguments),this.KeyframeResolver=Zv}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Je(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function ld(e,{style:t,vars:n},r,o){const i=e.style;let s;for(s in t)i[s]=t[s];o?.applyProjectionStyles(i,r);for(s in n)i.setProperty(s,n[s])}function ry(e){return window.getComputedStyle(e)}class oy extends ad{constructor(){super(...arguments),this.type="html",this.renderInstance=ld}readValueFromInstance(t,n){if(Vn.has(n))return this.projection?.isProjecting?cs(n):bv(t,n);{const r=ry(t),o=(Gc(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Z0(t,n)}build(t,n,r){Cs(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Is(t,n,r)}}const cd=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function iy(e,t,n,r){ld(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(cd.has(o)?o:As(o),t.attrs[o])}class sy extends ad{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=od}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Vn.has(n)){const r=ku(n);return r&&r.default||0}return n=cd.has(n)?n:As(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Zu(t,n,r)}build(t,n,r){Wu(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){iy(t,n,r,o)}mount(t){this.isSVGTag=Yu(t.tagName),super.mount(t)}}const ay=(e,t)=>Ss(e)?new sy(t):new oy(t,{allowProjection:e!==h.Fragment});function Fn(e,t,n){const r=e.getProps();return ks(r,t,n!==void 0?n:r.custom,e)}const Ns=e=>Array.isArray(e);function ly(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,uo(n))}function cy(e){return Ns(e)?e[e.length-1]||0:e}function uy(e,t){const n=Fn(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=cy(i[s]);ly(e,s,a)}}function dy(e){return!!(Je(e)&&e.add)}function fy(e,t){const n=e.getValue("willChange");if(dy(n))return n.add(t);if(!n&&Pt.WillChange){const r=new Pt.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function py(e){return e.props[ed]}const hy=e=>e!==null;function my(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(hy),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}const gy={type:"spring",stiffness:500,damping:25,restSpeed:10},by=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),vy={type:"keyframes",duration:.8},yy={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},wy=(e,{keyframes:t})=>t.length>2?vy:Vn.has(e)?e.startsWith("scale")?by(t[1]):gy:yy;function xy({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Ey=(e,t,n,r={},o,i)=>s=>{const a=Eu(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-bt(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:m=>{t.set(m),a.onUpdate&&a.onUpdate(m)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};xy(a)||Object.assign(c,wy(e,c)),c.duration&&(c.duration=bt(c.duration)),c.repeatDelay&&(c.repeatDelay=bt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(ms(c),c.delay===0&&(d=!0)),(Pt.instantAnimations||Pt.skipAnimations)&&(d=!0,ms(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const m=my(c.keyframes,a);if(m!==void 0){ft.update(()=>{c.onUpdate(m),c.onComplete()});return}}return a.isSync?new ss(c):new Rv(c)};function Ty({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ud(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=t;r&&(i=r);const l=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const c in a){const d=e.getValue(c,e.latestValues[c]??null),m=a[c];if(m===void 0||u&&Ty(u,c))continue;const g={delay:n,...Eu(i||{},c)},y=d.get();if(y!==void 0&&!d.isAnimating&&!Array.isArray(m)&&m===y&&!g.velocity)continue;let b=!1;if(window.MotionHandoffAnimation){const v=py(e);if(v){const $=window.MotionHandoffAnimation(v,c,ft);$!==null&&(g.startTime=$,b=!0)}}fy(e,c),d.start(Ey(c,d,m,e.shouldReduceMotion&&Tu.has(c)?{type:!1}:g,e,b));const x=d.animation;x&&l.push(x)}return s&&Promise.all(l).then(()=>{ft.update(()=>{s&&uy(e,s)})}),l}function dd(e,t,n,r=0,o=1){const i=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),s=e.size,a=(s-1)*r;return typeof n=="function"?n(i,s):o===1?i*r:a-i*r}function Ds(e,t,n={}){const r=Fn(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(ud(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return $y(e,t,l,u,c,d,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,u]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>u())}else return Promise.all([i(),s(n.delay)])}function $y(e,t,n=0,r=0,o=0,i=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Ds(l,t,{...s,delay:n+(typeof r=="function"?0:r)+dd(e.variantChildren,l,r,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function Cy(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Ds(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Ds(e,t,n);else{const o=typeof t=="function"?Fn(e,t,n.custom):t;r=Promise.all(ud(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function fd(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Py=$s.length;function pd(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?pd(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Py;n++){const r=$s[n],o=e.props[r];(br(o)||o===!1)&&(t[r]=o)}return t}const Sy=[...Ts].reverse(),ky=Ts.length;function Iy(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Cy(e,n,r)))}function Ay(e){let t=Iy(e),n=hd(),r=!0;const o=l=>(u,c)=>{const d=Fn(e,c,l==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:m,transitionEnd:g,...y}=d;u={...u,...y,...g}}return u};function i(l){t=l(e)}function s(l){const{props:u}=e,c=pd(e.parent)||{},d=[],m=new Set;let g={},y=1/0;for(let x=0;x<ky;x++){const v=Sy[x],$=n[v],A=u[v]!==void 0?u[v]:c[v],M=br(A),I=v===l?$.isActive:null;I===!1&&(y=x);let O=A===c[v]&&A!==u[v]&&M;if(O&&r&&e.manuallyAnimateOnMount&&(O=!1),$.protectedKeys={...g},!$.isActive&&I===null||!A&&!$.prevProp||go(A)||typeof A=="boolean")continue;const L=Oy($.prevProp,A);let k=L||v===l&&$.isActive&&!O&&M||x>y&&M,V=!1;const j=Array.isArray(A)?A:[A];let f=j.reduce(o(v),{});I===!1&&(f={});const{prevResolvedValues:S={}}=$,N={...S,...f},w=C=>{k=!0,m.has(C)&&(V=!0,m.delete(C)),$.needsAnimating[C]=!0;const E=e.getValue(C);E&&(E.liveStyle=!1)};for(const C in N){const E=f[C],B=S[C];if(g.hasOwnProperty(C))continue;let H=!1;Ns(E)&&Ns(B)?H=!fd(E,B):H=E!==B,H?E!=null?w(C):m.add(C):E!==void 0&&m.has(C)?w(C):$.protectedKeys[C]=!0}$.prevProp=A,$.prevResolvedValues=f,$.isActive&&(g={...g,...f}),r&&e.blockInitialAnimation&&(k=!1);const D=O&&L;k&&(!D||V)&&d.push(...j.map(C=>{const E={type:v};if(typeof C=="string"&&r&&!D&&e.manuallyAnimateOnMount&&e.parent){const{parent:B}=e,H=Fn(B,C);if(B.enteringChildren&&H){const{delayChildren:X}=H.transition||{};E.delay=dd(B.enteringChildren,e,X)}}return{animation:C,options:E}}))}if(m.size){const x={};if(typeof u.initial!="boolean"){const v=Fn(e,Array.isArray(u.initial)?u.initial[0]:u.initial);v&&v.transition&&(x.transition=v.transition)}m.forEach(v=>{const $=e.getBaseTarget(v),A=e.getValue(v);A&&(A.liveStyle=!0),x[v]=$??null}),d.push({animation:x})}let b=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(d):Promise.resolve()}function a(l,u){if(n[l].isActive===u)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(l,u)),n[l].isActive=u;const c=s(l);for(const d in n)n[d].protectedKeys={};return c}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=hd(),r=!0}}}function Oy(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!fd(t,e):!1}function Qt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function hd(){return{animate:Qt(!0),whileInView:Qt(),whileHover:Qt(),whileTap:Qt(),whileDrag:Qt(),whileFocus:Qt(),exit:Qt()}}class jn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class My extends jn{constructor(t){super(t),t.animationState||(t.animationState=Ay(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();go(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Ny=0;class Dy extends jn{constructor(){super(...arguments),this.id=Ny++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Ly={animation:{Feature:My},exit:{Feature:Dy}};function md(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function gd(e){return{point:{x:e.pageX,y:e.pageY}}}function bd(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&ft.postRender(()=>i(t,gd(t)))}class Vy extends jn{mount(){const{current:t}=this.node;t&&(this.unmount=i0(t,(n,r)=>(bd(this.node,r,"Start"),o=>bd(this.node,o,"End"))))}unmount(){}}class _y extends jn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=to(md(this.node.current,"focus",()=>this.onFocus()),md(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function vd(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&ft.postRender(()=>i(t,gd(t)))}class Fy extends jn{mount(){const{current:t}=this.node;t&&(this.unmount=u0(t,(n,r)=>(vd(this.node,r,"Start"),(o,{success:i})=>vd(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ls=new WeakMap,Vs=new WeakMap,jy=e=>{const t=Ls.get(e.target);t&&t(e)},Ry=e=>{e.forEach(jy)};function By({root:e,...t}){const n=e||document;Vs.has(n)||Vs.set(n,{});const r=Vs.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Ry,{root:e,...t})),r[o]}function zy(e,t,n){const r=By(t);return Ls.set(e,n),r.observe(e),()=>{Ls.delete(e),r.unobserve(e)}}const Uy={some:0,all:1};class Ky extends jn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:Uy[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),m=u?c:d;m&&m(l)};return zy(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Hy(t,n))&&this.startObserver()}unmount(){}}function Hy({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Gy={renderer:ay,...Ly,...{inView:{Feature:Ky},tap:{Feature:Fy},focus:{Feature:_y},hover:{Feature:Vy}}},vt={top:"top",bottom:"top",left:"left",right:"left"},vo={top:"bottom",bottom:"top",left:"right",right:"left"},Wy={top:"left",left:"top"},_s={top:"height",left:"width"},yd={width:"totalWidth",height:"totalHeight"},yo={};let Ue=typeof document<"u"?window.visualViewport:null;function wd(e){let t=0,n=0,r=0,o=0,i=0,s=0,a={};var l;let u=((l=Ue?.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let y=document.documentElement;r=y.clientWidth,o=y.clientHeight;var c;t=(c=Ue?.width)!==null&&c!==void 0?c:r;var d;n=(d=Ue?.height)!==null&&d!==void 0?d:o,a.top=y.scrollTop||e.scrollTop,a.left=y.scrollLeft||e.scrollLeft,Ue&&(i=Ue.offsetTop,s=Ue.offsetLeft)}else({width:t,height:n,top:i,left:s}=Rn(e)),a.top=e.scrollTop,a.left=e.scrollLeft,r=t,o=n;if(hc()&&(e.tagName==="BODY"||e.tagName==="HTML")&&u){a.top=0,a.left=0;var m;i=(m=Ue?.pageTop)!==null&&m!==void 0?m:0;var g;s=(g=Ue?.pageLeft)!==null&&g!==void 0?g:0}return{width:t,height:n,totalWidth:r,totalHeight:o,scroll:a,top:i,left:s}}function qy(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function xd(e,t,n,r,o,i,s){var a;let l=(a=o.scroll[e])!==null&&a!==void 0?a:0,u=r[_s[e]],c=r.scroll[vt[e]]+i,d=u+r.scroll[vt[e]]-i,m=t-l+s[e]-r[vt[e]],g=t-l+n+s[e]-r[vt[e]];return m<c?c-m:g>d?Math.max(d-g,c-m):0}function Yy(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Ed(e){if(yo[e])return yo[e];let[t,n]=e.split(" "),r=vt[t]||"right",o=Wy[r];vt[n]||(n="center");let i=_s[r],s=_s[o];return yo[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:s},yo[e]}function Fs(e,t,n,r,o,i,s,a,l,u){let{placement:c,crossPlacement:d,axis:m,crossAxis:g,size:y,crossSize:b}=r,x={};var v;x[g]=(v=e[g])!==null&&v!==void 0?v:0;var $,A,M,I;d==="center"?x[g]+=((($=e[b])!==null&&$!==void 0?$:0)-((A=n[b])!==null&&A!==void 0?A:0))/2:d!==g&&(x[g]+=((M=e[b])!==null&&M!==void 0?M:0)-((I=n[b])!==null&&I!==void 0?I:0)),x[g]+=i;const O=e[g]-n[b]+l+u,L=e[g]+e[b]-l-u;if(x[g]=En(x[g],O,L),c===m){const k=a?s[y]:t[yd[y]];x[vo[m]]=Math.floor(k-e[m]+o)}else x[m]=Math.floor(e[m]+e[y]+o);return x}function Xy(e,t,n,r,o,i,s,a){const l=r?n.height:t[yd.height];var u;let c=e.top!=null?n.top+e.top:n.top+(l-((u=e.bottom)!==null&&u!==void 0?u:0)-s);var d,m,g,y,b,x;let v=a!=="top"?Math.max(0,t.height+t.top+((d=t.scroll.top)!==null&&d!==void 0?d:0)-c-(((m=o.top)!==null&&m!==void 0?m:0)+((g=o.bottom)!==null&&g!==void 0?g:0)+i)):Math.max(0,c+s-(t.top+((y=t.scroll.top)!==null&&y!==void 0?y:0))-(((b=o.top)!==null&&b!==void 0?b:0)+((x=o.bottom)!==null&&x!==void 0?x:0)+i));return Math.min(t.height-i*2,v)}function Td(e,t,n,r,o,i){let{placement:s,axis:a,size:l}=i;var u,c;if(s===a)return Math.max(0,n[a]-e[a]-((u=e.scroll[a])!==null&&u!==void 0?u:0)+t[a]-((c=r[a])!==null&&c!==void 0?c:0)-r[vo[a]]-o);var d;return Math.max(0,e[l]+e[a]+e.scroll[a]-t[a]-n[a]-n[l]-((d=r[a])!==null&&d!==void 0?d:0)-r[vo[a]]-o)}function Jy(e,t,n,r,o,i,s,a,l,u,c,d,m,g,y,b){let x=Ed(e),{size:v,crossAxis:$,crossSize:A,placement:M,crossPlacement:I}=x,O=Fs(t,a,n,x,c,d,u,m,y,b),L=c,k=Td(a,u,t,o,i+c,x);if(s&&r[v]>k){let K=Ed(`${vo[M]} ${I}`),ie=Fs(t,a,n,K,c,d,u,m,y,b);Td(a,u,t,o,i+c,K)>k&&(x=K,O=ie,L=c)}let V="bottom";x.axis==="top"?x.placement==="top"?V="top":x.placement==="bottom"&&(V="bottom"):x.crossAxis==="top"&&(x.crossPlacement==="top"?V="bottom":x.crossPlacement==="bottom"&&(V="top"));let j=xd($,O[$],n[A],a,l,i,u);O[$]+=j;let f=Xy(O,a,u,m,o,i,n.height,V);g&&g<f&&(f=g),n.height=Math.min(n.height,f),O=Fs(t,a,n,x,L,d,u,m,y,b),j=xd($,O[$],n[A],a,l,i,u),O[$]+=j;let S={},N=t[$]+.5*t[A]-O[$]-o[vt[$]];const w=y/2+b;var D,p,C,E;const B=vt[$]==="left"?((D=o.left)!==null&&D!==void 0?D:0)+((p=o.right)!==null&&p!==void 0?p:0):((C=o.top)!==null&&C!==void 0?C:0)+((E=o.bottom)!==null&&E!==void 0?E:0),H=n[A]-B-y/2-b,X=t[$]+y/2-(O[$]+o[vt[$]]),_=t[$]+t[A]-y/2-(O[$]+o[vt[$]]),z=En(N,X,_);return S[$]=En(z,w,H),{position:O,maxHeight:f,arrowOffsetLeft:S.left,arrowOffsetTop:S.top,placement:x.placement}}function Zy(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:o,padding:i,shouldFlip:s,boundaryElement:a,offset:l,crossOffset:u,maxHeight:c,arrowSize:d=0,arrowBoundaryOffset:m=0}=e,g=r instanceof HTMLElement?Qy(r):document.documentElement,y=g===document.documentElement;const b=window.getComputedStyle(g).position;let x=!!b&&b!=="static",v=y?Rn(n):$d(n,g);if(!y){let{marginTop:S,marginLeft:N}=window.getComputedStyle(n);v.top+=parseInt(S,10)||0,v.left+=parseInt(N,10)||0}let $=Rn(r),A=Yy(r);var M,I;$.width+=((M=A.left)!==null&&M!==void 0?M:0)+((I=A.right)!==null&&I!==void 0?I:0);var O,L;$.height+=((O=A.top)!==null&&O!==void 0?O:0)+((L=A.bottom)!==null&&L!==void 0?L:0);let k=qy(o),V=wd(a),j=wd(g),f=a.tagName==="BODY"?Rn(g):$d(g,a);return g.tagName==="HTML"&&a.tagName==="BODY"&&(j.scroll.top=0,j.scroll.left=0),Jy(t,v,$,k,A,i,s,V,j,f,l,u,x,c,d,m)}function Rn(e){let{top:t,left:n,width:r,height:o}=e.getBoundingClientRect(),{scrollTop:i,scrollLeft:s,clientTop:a,clientLeft:l}=document.documentElement;return{top:t+i-a,left:n+s-l,width:r,height:o}}function $d(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:o,left:i,width:s,height:a}=e.getBoundingClientRect();r={top:o,left:i,width:s,height:a}}else{r=Rn(e);let o=Rn(t),i=window.getComputedStyle(t);o.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,o.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=o.top,r.left-=o.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function Qy(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!Cd(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Cd(t);)t=t.parentElement;return t||document.documentElement}function Cd(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const e1=new WeakMap;function t1(e){let{triggerRef:t,isOpen:n,onClose:r}=e;h.useEffect(()=>{if(!n||r===null)return;let o=i=>{let s=i.target;if(!t.current||s instanceof Node&&!s.contains(t.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let a=r||e1.get(t.current);a&&a()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}let Ne=typeof document<"u"?window.visualViewport:null;function n1(e){let{direction:t}=sr(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:i=o,placement:s="bottom",containerPadding:a=12,shouldFlip:l=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:c=0,crossOffset:d=0,shouldUpdatePosition:m=!0,isOpen:g=!0,onClose:y,maxHeight:b,arrowBoundaryOffset:x=0}=e,[v,$]=h.useState(null),A=[m,s,o.current,r.current,i.current,a,l,u,c,d,g,t,b,x,n],M=h.useRef(Ne?.scale);h.useEffect(()=>{g&&(M.current=Ne?.scale)},[g]);let I=h.useCallback(()=>{if(m===!1||!g||!o.current||!r.current||!u||Ne?.scale!==M.current)return;let j=null;if(i.current&&i.current.contains(document.activeElement)){var f;let E=(f=document.activeElement)===null||f===void 0?void 0:f.getBoundingClientRect(),B=i.current.getBoundingClientRect();var S;if(j={type:"top",offset:((S=E?.top)!==null&&S!==void 0?S:0)-B.top},j.offset>B.height/2){j.type="bottom";var N;j.offset=((N=E?.bottom)!==null&&N!==void 0?N:0)-B.bottom}}let w=o.current;if(!b&&o.current){var D;w.style.top="0px",w.style.bottom="";var p;w.style.maxHeight=((p=(D=window.visualViewport)===null||D===void 0?void 0:D.height)!==null&&p!==void 0?p:window.innerHeight)+"px"}let C=Zy({placement:o1(s,t),overlayNode:o.current,targetNode:r.current,scrollNode:i.current||o.current,padding:a,shouldFlip:l,boundaryElement:u,offset:c,crossOffset:d,maxHeight:b,arrowSize:n,arrowBoundaryOffset:x});if(C.position){if(w.style.top="",w.style.bottom="",w.style.left="",w.style.right="",Object.keys(C.position).forEach(E=>w.style[E]=C.position[E]+"px"),w.style.maxHeight=C.maxHeight!=null?C.maxHeight+"px":"",j&&document.activeElement&&i.current){let E=document.activeElement.getBoundingClientRect(),B=i.current.getBoundingClientRect(),H=E[j.type]-B[j.type];i.current.scrollTop+=H-j.offset}$(C)}},A);gt(I,A),r1(I),vc({ref:o,onResize:I}),vc({ref:r,onResize:I});let O=h.useRef(!1);gt(()=>{let j,f=()=>{O.current=!0,clearTimeout(j),j=setTimeout(()=>{O.current=!1},500),I()},S=()=>{O.current&&f()};return Ne?.addEventListener("resize",f),Ne?.addEventListener("scroll",S),()=>{Ne?.removeEventListener("resize",f),Ne?.removeEventListener("scroll",S)}},[I]);let L=h.useCallback(()=>{O.current||y?.()},[y,O]);t1({triggerRef:r,isOpen:g,onClose:y&&L});var k,V;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...v?.position,maxHeight:(k=v?.maxHeight)!==null&&k!==void 0?k:"100vh"}},placement:(V=v?.placement)!==null&&V!==void 0?V:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:v?.arrowOffsetLeft,top:v?.arrowOffsetTop}},updatePosition:I}}function r1(e){gt(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function o1(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function js(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Pd(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Sd(e){let t=h.useRef({isFocused:!1,observer:null});gt(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=ze(r=>{e?.(r)});return h.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=s=>{if(t.current.isFocused=!1,o.disabled){let a=js(s);n(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var s;(s=t.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}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let wo=!1;function kd(e){for(;e&&!ab(e);)e=e.parentElement;let t=at(e),n=t.document.activeElement;if(!n||n===e)return;wo=!0;let r=!1,o=c=>{(c.target===n||r)&&c.stopImmediatePropagation()},i=c=>{(c.target===n||r)&&(c.stopImmediatePropagation(),!e&&!r&&(r=!0,Wt(n),l()))},s=c=>{(c.target===e||r)&&c.stopImmediatePropagation()},a=c=>{(c.target===e||r)&&(c.stopImmediatePropagation(),r||(r=!0,Wt(n),l()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",a,!0),t.addEventListener("focus",s,!0);let l=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",a,!0),t.removeEventListener("focus",s,!0),wo=!1,r=!1},u=requestAnimationFrame(l);return l}let Bn="default",Rs="",xo=new WeakMap;function Bs(e){if(Mi()){if(Bn==="default"){const t=Ge(e);Rs=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Bn="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";xo.set(e,e.style[t]),e.style[t]="none"}}function Eo(e){if(Mi()){if(Bn!=="disabled")return;Bn="restoring",setTimeout(()=>{bc(()=>{if(Bn==="restoring"){const t=Ge(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Rs||""),Rs="",Bn="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&xo.has(e)){let t=xo.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),xo.delete(e)}}const Id=h.createContext({register:()=>{}});Id.displayName="PressResponderContext";function i1(e){let t=h.useContext(Id);if(t){let{register:n,...r}=t;e=Re(r,e),n()}return yc(t,e.ref),e}var To=new WeakMap;class $o{continuePropagation(){Kr(this,To,!1)}get shouldStopPropagation(){return Kl(this,To)}constructor(t,n,r,o){Hl(this,To,{writable:!0,value:void 0}),Kr(this,To,!0);var i;let s=(i=o?.target)!==null&&i!==void 0?i:r.currentTarget;const a=s?.getBoundingClientRect();let l,u=0,c,d=null;r.clientX!=null&&r.clientY!=null&&(c=r.clientX,d=r.clientY),a&&(c!=null&&d!=null?(l=c-a.left,u=d-a.top):(l=a.width/2,u=a.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=u}}const Ad=Symbol("linkClicked"),Od="react-aria-pressable-style",Md="data-react-aria-pressable";function zn(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,onClick:s,isDisabled:a,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:m,...g}=i1(e),[y,b]=h.useState(!1),x=h.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:v,removeAllGlobalListeners:$}=Sn(),A=ze((f,S)=>{let N=x.current;if(a||N.didFirePressStart)return!1;let w=!0;if(N.isTriggeringEvent=!0,r){let D=new $o("pressstart",S,f);r(D),w=D.shouldStopPropagation}return n&&n(!0),N.isTriggeringEvent=!1,N.didFirePressStart=!0,b(!0),w}),M=ze((f,S,N=!0)=>{let w=x.current;if(!w.didFirePressStart)return!1;w.didFirePressStart=!1,w.isTriggeringEvent=!0;let D=!0;if(o){let p=new $o("pressend",S,f);o(p),D=p.shouldStopPropagation}if(n&&n(!1),b(!1),t&&N&&!a){let p=new $o("press",S,f);t(p),D&&(D=p.shouldStopPropagation)}return w.isTriggeringEvent=!1,D}),I=ze((f,S)=>{let N=x.current;if(a)return!1;if(i){N.isTriggeringEvent=!0;let w=new $o("pressup",S,f);return i(w),N.isTriggeringEvent=!1,w.shouldStopPropagation}return!0}),O=ze(f=>{let S=x.current;if(S.isPressed&&S.target){S.didFirePressStart&&S.pointerType!=null&&M(en(S.target,f),S.pointerType,!1),S.isPressed=!1,S.isOverTarget=!1,S.activePointerId=null,S.pointerType=null,$(),d||Eo(S.target);for(let N of S.disposables)N();S.disposables=[]}}),L=ze(f=>{c&&O(f)}),k=ze(f=>{s?.(f)}),V=ze((f,S)=>{if(s){let N=new MouseEvent("click",f);Pd(N,S),s(js(N))}}),j=h.useMemo(()=>{let f=x.current,S={onKeyDown(w){if(Us(w.nativeEvent,w.currentTarget)&&Oe(w.currentTarget,Ce(w.nativeEvent))){var D;Ld(Ce(w.nativeEvent),w.key)&&w.preventDefault();let p=!0;if(!f.isPressed&&!w.repeat){f.target=w.currentTarget,f.isPressed=!0,f.pointerType="keyboard",p=A(w,"keyboard");let C=w.currentTarget,E=B=>{Us(B,C)&&!B.repeat&&Oe(C,Ce(B))&&f.target&&I(en(f.target,B),"keyboard")};v(Ge(w.currentTarget),"keyup",dc(E,N),!0)}p&&w.stopPropagation(),w.metaKey&&Pn()&&((D=f.metaKeyEvents)===null||D===void 0||D.set(w.key,w.nativeEvent))}else w.key==="Meta"&&(f.metaKeyEvents=new Map)},onClick(w){if(!(w&&!Oe(w.currentTarget,Ce(w.nativeEvent)))&&w&&w.button===0&&!f.isTriggeringEvent&&!ur.isOpening){let D=!0;if(a&&w.preventDefault(),!f.ignoreEmulatedMouseEvents&&!f.isPressed&&(f.pointerType==="virtual"||Di(w.nativeEvent))){let p=A(w,"virtual"),C=I(w,"virtual"),E=M(w,"virtual");k(w),D=p&&C&&E}else if(f.isPressed&&f.pointerType!=="keyboard"){let p=f.pointerType||w.nativeEvent.pointerType||"virtual",C=I(en(w.currentTarget,w),p),E=M(en(w.currentTarget,w),p,!0);D=C&&E,f.isOverTarget=!1,k(w),O(w)}f.ignoreEmulatedMouseEvents=!1,D&&w.stopPropagation()}}},N=w=>{var D;if(f.isPressed&&f.target&&Us(w,f.target)){var p;Ld(Ce(w),w.key)&&w.preventDefault();let E=Ce(w),B=Oe(f.target,Ce(w));M(en(f.target,w),"keyboard",B),B&&V(w,f.target),$(),w.key!=="Enter"&&zs(f.target)&&Oe(f.target,E)&&!w[Ad]&&(w[Ad]=!0,ur(f.target,w,!1)),f.isPressed=!1,(p=f.metaKeyEvents)===null||p===void 0||p.delete(w.key)}else if(w.key==="Meta"&&(!((D=f.metaKeyEvents)===null||D===void 0)&&D.size)){var C;let E=f.metaKeyEvents;f.metaKeyEvents=void 0;for(let B of E.values())(C=f.target)===null||C===void 0||C.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){S.onPointerDown=p=>{if(p.button!==0||!Oe(p.currentTarget,Ce(p.nativeEvent)))return;if(nb(p.nativeEvent)){f.pointerType="virtual";return}f.pointerType=p.pointerType;let C=!0;if(!f.isPressed){f.isPressed=!0,f.isOverTarget=!0,f.activePointerId=p.pointerId,f.target=p.currentTarget,d||Bs(f.target),C=A(p,f.pointerType);let E=Ce(p.nativeEvent);"releasePointerCapture"in E&&E.releasePointerCapture(p.pointerId),v(Ge(p.currentTarget),"pointerup",w,!1),v(Ge(p.currentTarget),"pointercancel",D,!1)}C&&p.stopPropagation()},S.onMouseDown=p=>{if(Oe(p.currentTarget,Ce(p.nativeEvent))&&p.button===0){if(u){let C=kd(p.target);C&&f.disposables.push(C)}p.stopPropagation()}},S.onPointerUp=p=>{!Oe(p.currentTarget,Ce(p.nativeEvent))||f.pointerType==="virtual"||p.button===0&&!f.isPressed&&I(p,f.pointerType||p.pointerType)},S.onPointerEnter=p=>{p.pointerId===f.activePointerId&&f.target&&!f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!0,A(en(f.target,p),f.pointerType))},S.onPointerLeave=p=>{p.pointerId===f.activePointerId&&f.target&&f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!1,M(en(f.target,p),f.pointerType,!1),L(p))};let w=p=>{if(p.pointerId===f.activePointerId&&f.isPressed&&p.button===0&&f.target){if(Oe(f.target,Ce(p))&&f.pointerType!=null){let C=!1,E=setTimeout(()=>{f.isPressed&&f.target instanceof HTMLElement&&(C?O(p):(Wt(f.target),f.target.click()))},80);v(p.currentTarget,"click",()=>C=!0,!0),f.disposables.push(()=>clearTimeout(E))}else O(p);f.isOverTarget=!1}},D=p=>{O(p)};S.onDragStart=p=>{Oe(p.currentTarget,Ce(p.nativeEvent))&&O(p)}}else if(process.env.NODE_ENV==="test"){S.onMouseDown=p=>{if(p.button!==0||!Oe(p.currentTarget,Ce(p.nativeEvent)))return;if(f.ignoreEmulatedMouseEvents){p.stopPropagation();return}if(f.isPressed=!0,f.isOverTarget=!0,f.target=p.currentTarget,f.pointerType=Di(p.nativeEvent)?"virtual":"mouse",Yo.flushSync(()=>A(p,f.pointerType))&&p.stopPropagation(),u){let E=kd(p.target);E&&f.disposables.push(E)}v(Ge(p.currentTarget),"mouseup",w,!1)},S.onMouseEnter=p=>{if(!Oe(p.currentTarget,Ce(p.nativeEvent)))return;let C=!0;f.isPressed&&!f.ignoreEmulatedMouseEvents&&f.pointerType!=null&&(f.isOverTarget=!0,C=A(p,f.pointerType)),C&&p.stopPropagation()},S.onMouseLeave=p=>{if(!Oe(p.currentTarget,Ce(p.nativeEvent)))return;let C=!0;f.isPressed&&!f.ignoreEmulatedMouseEvents&&f.pointerType!=null&&(f.isOverTarget=!1,C=M(p,f.pointerType,!1),L(p)),C&&p.stopPropagation()},S.onMouseUp=p=>{Oe(p.currentTarget,Ce(p.nativeEvent))&&!f.ignoreEmulatedMouseEvents&&p.button===0&&!f.isPressed&&I(p,f.pointerType||"mouse")};let w=p=>{if(p.button===0){if(f.ignoreEmulatedMouseEvents){f.ignoreEmulatedMouseEvents=!1;return}f.target&&f.target.contains(p.target)&&f.pointerType!=null||O(p),f.isOverTarget=!1}};S.onTouchStart=p=>{if(!Oe(p.currentTarget,Ce(p.nativeEvent)))return;let C=s1(p.nativeEvent);if(!C)return;f.activePointerId=C.identifier,f.ignoreEmulatedMouseEvents=!0,f.isOverTarget=!0,f.isPressed=!0,f.target=p.currentTarget,f.pointerType="touch",d||Bs(f.target),A(Rt(f.target,p),f.pointerType)&&p.stopPropagation(),v(at(p.currentTarget),"scroll",D,!0)},S.onTouchMove=p=>{if(!Oe(p.currentTarget,Ce(p.nativeEvent)))return;if(!f.isPressed){p.stopPropagation();return}let C=Nd(p.nativeEvent,f.activePointerId),E=!0;C&&Dd(C,p.currentTarget)?!f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!0,E=A(Rt(f.target,p),f.pointerType)):f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!1,E=M(Rt(f.target,p),f.pointerType,!1),L(Rt(f.target,p))),E&&p.stopPropagation()},S.onTouchEnd=p=>{if(!Oe(p.currentTarget,Ce(p.nativeEvent)))return;if(!f.isPressed){p.stopPropagation();return}let C=Nd(p.nativeEvent,f.activePointerId),E=!0;C&&Dd(C,p.currentTarget)&&f.pointerType!=null?(I(Rt(f.target,p),f.pointerType),E=M(Rt(f.target,p),f.pointerType),V(p.nativeEvent,f.target)):f.isOverTarget&&f.pointerType!=null&&(E=M(Rt(f.target,p),f.pointerType,!1)),E&&p.stopPropagation(),f.isPressed=!1,f.activePointerId=null,f.isOverTarget=!1,f.ignoreEmulatedMouseEvents=!0,f.target&&!d&&Eo(f.target),$()},S.onTouchCancel=p=>{Oe(p.currentTarget,Ce(p.nativeEvent))&&(p.stopPropagation(),f.isPressed&&O(Rt(f.target,p)))};let D=p=>{f.isPressed&&Oe(Ce(p),f.target)&&O({currentTarget:f.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};S.onDragStart=p=>{Oe(p.currentTarget,Ce(p.nativeEvent))&&O(p)}}return S},[v,a,u,$,d,O,L,M,A,I,k,V]);return h.useEffect(()=>{if(!m||process.env.NODE_ENV==="test")return;const f=Ge(m.current);if(!f||!f.head||f.getElementById(Od))return;const S=f.createElement("style");S.id=Od,S.textContent=`
45
+ @layer {
46
+ [${Md}] {
47
+ touch-action: pan-x pan-y pinch-zoom;
48
+ }
49
+ }
50
+ `.trim(),f.head.prepend(S)},[m]),h.useEffect(()=>{let f=x.current;return()=>{var S;d||Eo((S=f.target)!==null&&S!==void 0?S:void 0);for(let N of f.disposables)N();f.disposables=[]}},[d]),{isPressed:l||y,pressProps:Re(g,j,{[Md]:!0})}}function zs(e){return e.tagName==="A"&&e.hasAttribute("href")}function Us(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof at(o).HTMLInputElement&&!Vd(o,n)||o instanceof at(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&zs(o))&&n!=="Enter")}function s1(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Nd(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const o=n[r];if(o.identifier===t)return o}return null}function Rt(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function en(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function a1(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function l1(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Dd(e,t){let n=t.getBoundingClientRect(),r=a1(e);return l1(n,r)}function c1(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!zs(e)}function Ld(e,t){return e instanceof HTMLInputElement?!Vd(e,t):c1(e)}const u1=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Vd(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":u1.has(e.type)}let tn=null,Ks=new Set,vr=new Map,nn=!1,Hs=!1;const d1={Tab:!0,Escape:!0};function Co(e,t){for(let n of Ks)n(e,t)}function f1(e){return!(e.metaKey||!Pn()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Po(e){nn=!0,f1(e)&&(tn="keyboard",Co("keyboard",e))}function ct(e){tn="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(nn=!0,Co("pointer",e))}function _d(e){Di(e)&&(nn=!0,tn="virtual")}function Fd(e){e.target===window||e.target===document||wo||!e.isTrusted||(!nn&&!Hs&&(tn="virtual",Co("virtual",e)),nn=!1,Hs=!1)}function jd(){wo||(nn=!1,Hs=!0)}function Gs(e){if(typeof window>"u"||typeof document>"u"||vr.get(at(e)))return;const t=at(e),n=Ge(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){nn=!0,r.apply(this,arguments)},n.addEventListener("keydown",Po,!0),n.addEventListener("keyup",Po,!0),n.addEventListener("click",_d,!0),t.addEventListener("focus",Fd,!0),t.addEventListener("blur",jd,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ct,!0),n.addEventListener("pointermove",ct,!0),n.addEventListener("pointerup",ct,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",ct,!0),n.addEventListener("mousemove",ct,!0),n.addEventListener("mouseup",ct,!0)),t.addEventListener("beforeunload",()=>{Rd(e)},{once:!0}),vr.set(t,{focus:r})}const Rd=(e,t)=>{const n=at(e),r=Ge(e);t&&r.removeEventListener("DOMContentLoaded",t),vr.has(n)&&(n.HTMLElement.prototype.focus=vr.get(n).focus,r.removeEventListener("keydown",Po,!0),r.removeEventListener("keyup",Po,!0),r.removeEventListener("click",_d,!0),n.removeEventListener("focus",Fd,!0),n.removeEventListener("blur",jd,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ct,!0),r.removeEventListener("pointermove",ct,!0),r.removeEventListener("pointerup",ct,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",ct,!0),r.removeEventListener("mousemove",ct,!0),r.removeEventListener("mouseup",ct,!0)),vr.delete(n))};function p1(e){const t=Ge(e);let n;return t.readyState!=="loading"?Gs(e):(n=()=>{Gs(e)},t.addEventListener("DOMContentLoaded",n)),()=>Rd(e,n)}typeof document<"u"&&p1();function Ws(){return tn!=="pointer"}function Bd(){return tn}function zd(e){tn=e,Co(e,null)}const h1=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function m1(e,t,n){let r=Ge(n?.target);const o=typeof window<"u"?at(n?.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?at(n?.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?at(n?.target).HTMLElement:HTMLElement,a=typeof window<"u"?at(n?.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof o&&!h1.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof s&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof a&&!d1[n.key])}function g1(e,t,n){Gs(),h.useEffect(()=>{let r=(o,i)=>{m1(!!n?.isTextInput,o,i)&&e(Ws())};return Ks.add(r),()=>{Ks.delete(r)}},t)}function b1(e){const t=Ge(e),n=cr(t);if(Bd()==="virtual"){let r=n;bc(()=>{cr(t)===r&&e.isConnected&&Wt(e)})}else Wt(e)}function Ud(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=h.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),s=Sd(i),a=h.useCallback(l=>{const u=Ge(l.target),c=u?cr(u):cr();l.target===l.currentTarget&&c===Ce(l.nativeEvent)&&(n&&n(l),o&&o(!0),s(l))},[o,n,s]);return{focusProps:{onFocus:!t&&(n||o||r)?a:void 0,onBlur:!t&&(r||o)?i:void 0}}}function Kd(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function Hd(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Kd(e.onKeyDown),onKeyUp:Kd(e.onKeyUp)}}}let v1=h.createContext(null);function y1(e){let t=h.useContext(v1)||{};yc(t,e);let{ref:n,...r}=t;return r}function So(e,t){let{focusProps:n}=Ud(e),{keyboardProps:r}=Hd(e),o=Re(n,r),i=y1(t),s=e.isDisabled?{}:i,a=h.useRef(e.autoFocus);h.useEffect(()=>{a.current&&t.current&&b1(t.current),a.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:Re({...o,tabIndex:l},s)}}function ko(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=h.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:a}=Sn(),l=h.useCallback(d=>{d.currentTarget.contains(d.target)&&i.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(i.current.isFocusWithin=!1,a(),n&&n(d),o&&o(!1))},[n,o,i,a]),u=Sd(l),c=h.useCallback(d=>{if(!d.currentTarget.contains(d.target))return;const m=Ge(d.target),g=cr(m);if(!i.current.isFocusWithin&&g===Ce(d.nativeEvent)){r&&r(d),o&&o(!0),i.current.isFocusWithin=!0,u(d);let y=d.currentTarget;s(m,"focus",b=>{if(i.current.isFocusWithin&&!Oe(y,b.target)){let x=new m.defaultView.FocusEvent("blur",{relatedTarget:b.target});Pd(x,y);let v=js(x);l(v)}},{capture:!0})}},[r,o,u,s,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:l}}}let Io=!1,Ao=0;function qs(){Io=!0,setTimeout(()=>{Io=!1},50)}function Gd(e){e.pointerType==="touch"&&qs()}function w1(){if(!(typeof document>"u"))return Ao===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",Gd):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",qs)),Ao++,()=>{Ao--,!(Ao>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Gd):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",qs))}}function rn(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,s]=h.useState(!1),a=h.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;h.useEffect(w1,[]);let{addGlobalListener:l,removeAllGlobalListeners:u}=Sn(),{hoverProps:c,triggerHoverEnd:d}=h.useMemo(()=>{let m=(b,x)=>{if(a.pointerType=x,o||x==="touch"||a.isHovered||!b.currentTarget.contains(b.target))return;a.isHovered=!0;let v=b.currentTarget;a.target=v,l(Ge(b.target),"pointerover",$=>{a.isHovered&&a.target&&!Oe(a.target,$.target)&&g($,$.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:v,pointerType:x}),n&&n(!0),s(!0)},g=(b,x)=>{let v=a.target;a.pointerType="",a.target=null,!(x==="touch"||!a.isHovered||!v)&&(a.isHovered=!1,u(),r&&r({type:"hoverend",target:v,pointerType:x}),n&&n(!1),s(!1))},y={};return typeof PointerEvent<"u"?(y.onPointerEnter=b=>{Io&&b.pointerType==="mouse"||m(b,b.pointerType)},y.onPointerLeave=b=>{!o&&b.currentTarget.contains(b.target)&&g(b,b.pointerType)}):process.env.NODE_ENV==="test"&&(y.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},y.onMouseEnter=b=>{!a.ignoreEmulatedMouseEvents&&!Io&&m(b,"mouse"),a.ignoreEmulatedMouseEvents=!1},y.onMouseLeave=b=>{!o&&b.currentTarget.contains(b.target)&&g(b,"mouse")}),{hoverProps:y,triggerHoverEnd:g}},[t,n,r,o,a,l,u]);return h.useEffect(()=>{o&&d({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:c,isHovered:i}}function x1(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=h.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=ze(l=>{n&&Oo(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),a=ze(l=>{n&&n(l)});h.useEffect(()=>{let l=i.current;if(r)return;const u=t.current,c=Ge(u);if(typeof PointerEvent<"u"){let d=m=>{l.isPointerDown&&Oo(m,t)&&a(m),l.isPointerDown=!1};return c.addEventListener("pointerdown",s,!0),c.addEventListener("click",d,!0),()=>{c.removeEventListener("pointerdown",s,!0),c.removeEventListener("click",d,!0)}}else if(process.env.NODE_ENV==="test"){let d=g=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&Oo(g,t)&&a(g),l.isPointerDown=!1},m=g=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&Oo(g,t)&&a(g),l.isPointerDown=!1};return c.addEventListener("mousedown",s,!0),c.addEventListener("mouseup",d,!0),c.addEventListener("touchstart",s,!0),c.addEventListener("touchend",m,!0),()=>{c.removeEventListener("mousedown",s,!0),c.removeEventListener("mouseup",d,!0),c.removeEventListener("touchstart",s,!0),c.removeEventListener("touchend",m,!0)}}},[t,r,s,a])}function Oo(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}function Wd(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,o=h.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:i,removeGlobalListener:s}=Sn(),a=ze((c,d,m,g)=>{m===0&&g===0||(o.current.didMove||(o.current.didMove=!0,t?.({type:"movestart",pointerType:d,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey})),n?.({type:"move",pointerType:d,deltaX:m,deltaY:g,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey}))}),l=ze((c,d)=>{Eo(),o.current.didMove&&r?.({type:"moveend",pointerType:d,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey})});return{moveProps:h.useMemo(()=>{let c={},d=()=>{Bs(),o.current.didMove=!1};if(typeof PointerEvent>"u"&&process.env.NODE_ENV==="test"){let g=v=>{if(v.button===0){var $,A,M,I;a(v,"mouse",v.pageX-((M=($=o.current.lastPosition)===null||$===void 0?void 0:$.pageX)!==null&&M!==void 0?M:0),v.pageY-((I=(A=o.current.lastPosition)===null||A===void 0?void 0:A.pageY)!==null&&I!==void 0?I:0)),o.current.lastPosition={pageX:v.pageX,pageY:v.pageY}}},y=v=>{v.button===0&&(l(v,"mouse"),s(window,"mousemove",g,!1),s(window,"mouseup",y,!1))};c.onMouseDown=v=>{v.button===0&&(d(),v.stopPropagation(),v.preventDefault(),o.current.lastPosition={pageX:v.pageX,pageY:v.pageY},i(window,"mousemove",g,!1),i(window,"mouseup",y,!1))};let b=v=>{let $=[...v.changedTouches].findIndex(({identifier:L})=>L===o.current.id);if($>=0){var A,M;let{pageX:L,pageY:k}=v.changedTouches[$];var I,O;a(v,"touch",L-((I=(A=o.current.lastPosition)===null||A===void 0?void 0:A.pageX)!==null&&I!==void 0?I:0),k-((O=(M=o.current.lastPosition)===null||M===void 0?void 0:M.pageY)!==null&&O!==void 0?O:0)),o.current.lastPosition={pageX:L,pageY:k}}},x=v=>{[...v.changedTouches].findIndex(({identifier:A})=>A===o.current.id)>=0&&(l(v,"touch"),o.current.id=null,s(window,"touchmove",b),s(window,"touchend",x),s(window,"touchcancel",x))};c.onTouchStart=v=>{if(v.changedTouches.length===0||o.current.id!=null)return;let{pageX:$,pageY:A,identifier:M}=v.changedTouches[0];d(),v.stopPropagation(),v.preventDefault(),o.current.lastPosition={pageX:$,pageY:A},o.current.id=M,i(window,"touchmove",b,!1),i(window,"touchend",x,!1),i(window,"touchcancel",x,!1)}}else{let g=b=>{if(b.pointerId===o.current.id){var x,v;let M=b.pointerType||"mouse";var $,A;a(b,M,b.pageX-(($=(x=o.current.lastPosition)===null||x===void 0?void 0:x.pageX)!==null&&$!==void 0?$:0),b.pageY-((A=(v=o.current.lastPosition)===null||v===void 0?void 0:v.pageY)!==null&&A!==void 0?A:0)),o.current.lastPosition={pageX:b.pageX,pageY:b.pageY}}},y=b=>{if(b.pointerId===o.current.id){let x=b.pointerType||"mouse";l(b,x),o.current.id=null,s(window,"pointermove",g,!1),s(window,"pointerup",y,!1),s(window,"pointercancel",y,!1)}};c.onPointerDown=b=>{b.button===0&&o.current.id==null&&(d(),b.stopPropagation(),b.preventDefault(),o.current.lastPosition={pageX:b.pageX,pageY:b.pageY},o.current.id=b.pointerId,i(window,"pointermove",g,!1),i(window,"pointerup",y,!1),i(window,"pointercancel",y,!1))}}let m=(g,y,b)=>{d(),a(g,"keyboard",y,b),l(g,"keyboard")};return c.onKeyDown=g=>{switch(g.key){case"Left":case"ArrowLeft":g.preventDefault(),g.stopPropagation(),m(g,-1,0);break;case"Right":case"ArrowRight":g.preventDefault(),g.stopPropagation(),m(g,1,0);break;case"Up":case"ArrowUp":g.preventDefault(),g.stopPropagation(),m(g,0,-1);break;case"Down":case"ArrowDown":g.preventDefault(),g.stopPropagation(),m(g,0,1);break}},c},[o,i,s,a,l])}}let E1=null;function qd(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function T1(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Xd.traverse(Xd.getTreeNode(t)))if(n&&qd(e,n.current))return!0;return!1}function $1(e){return T1(e,E1)}class Ys{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new Yd({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&qd(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Ys;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Yd({scopeRef:null}),this.fastMap.set(null,this.root)}}class Yd{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Xd=new Ys;function yr(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=h.useRef({isFocused:!1,isFocusVisible:t||Ws()}),[i,s]=h.useState(!1),[a,l]=h.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=h.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),c=h.useCallback(g=>{o.current.isFocused=g,s(g),u()},[u]);g1(g=>{o.current.isFocusVisible=g,u()},[],{isTextInput:n});let{focusProps:d}=Ud({isDisabled:r,onFocusChange:c}),{focusWithinProps:m}=ko({isDisabled:!r,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:a,focusProps:r?m:d}}const C1=h.createContext({});function P1(){var e;return(e=h.useContext(C1))!==null&&e!==void 0?e:{}}const Xs=h.createContext(null);function S1(e){let{children:t}=e,n=h.useContext(Xs),[r,o]=h.useState(0),i=h.useMemo(()=>({parent:n,modalCount:r,addModal(){o(s=>s+1),n&&n.addModal()},removeModal(){o(s=>s-1),n&&n.removeModal()}}),[n,r]);return h.createElement(Xs.Provider,{value:i},t)}function k1(){let e=h.useContext(Xs);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function I1(e){let{modalProviderProps:t}=k1();return h.createElement("div",{"data-overlay-container":!0,...e,...t})}function A1(e){return h.createElement(S1,null,h.createElement(I1,e))}function Jd(e){let t=pi(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:o}=P1();if(!e.portalContainer&&o&&(n=o()),h.useEffect(()=>{if(n?.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let i=h.createElement(A1,r);return Yo.createPortal(i,n)}const Zd={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function O1(e={}){let{style:t,isFocusable:n}=e,[r,o]=h.useState(!1),{focusWithinProps:i}=ko({isDisabled:!n,onFocusWithinChange:a=>o(a)}),s=h.useMemo(()=>r?t:t?{...Zd,...t}:Zd,[r]);return{visuallyHiddenProps:{...i,style:s}}}function M1(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:s}=O1(e);return h.createElement(n,Re(i,s),t)}function Ze(e){return h.forwardRef(e)}var on=(e,t,n=!0)=>{if(!t)return[e,{}];const r=t.reduce((o,i)=>i in e?{...o,[i]:e[i]}:o,{});return n?[Object.keys(e).filter(i=>!t.includes(i)).reduce((i,s)=>({...i,[s]:e[s]}),{}),r]:[e,r]};function N1(e){const t=h.useRef(null);return h.useImperativeHandle(e,()=>t.current),t}process.env.NODE_ENV,process.env.NODE_ENV;var Js=e=>e?"true":void 0;function Qd(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Qd(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function D1(...e){for(var t=0,n,r,o="";t<e.length;)(n=e[t++])&&(r=Qd(n))&&(o&&(o+=" "),o+=r);return o}function L1(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}function V1(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}var ef=new Map;function _1(e,t){if(e===t)return e;let n=ef.get(e);if(n)return n.forEach(o=>o.current=t),t;let r=ef.get(t);return r?(r.forEach(o=>o.current=e),e):t}function F1(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],s=r[o];typeof i=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=V1(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=D1(i,s):o==="id"&&i&&s?t.id=_1(i,s):t[o]=s!==void 0?s:i}}return t}function j1(e){var t,n,r,o;const i=$t(),[s,a]=on(e,hl.variantKeys),{ref:l,as:u,children:c,anchorIcon:d,isExternal:m=!1,showAnchorIcon:g=!1,autoFocus:y=!1,className:b,onPress:x,onPressStart:v,onPressEnd:$,onClick:A,...M}=s,I=u||"a",O=N1(l),L=(n=(t=e?.disableAnimation)!=null?t:i?.disableAnimation)!=null?n:!1,{linkProps:k}=Tg({...M,onPress:x,onPressStart:v,onPressEnd:$,onClick:A,isDisabled:e.isDisabled,elementType:`${u}`},O),{isFocused:V,isFocusVisible:j,focusProps:f}=Eg({autoFocus:y});m&&(M.rel=(r=M.rel)!=null?r:"noopener noreferrer",M.target=(o=M.target)!=null?o:"_blank");const S=h.useMemo(()=>hl({...a,disableAnimation:L,className:b}),[L1(a),L,b]),N=h.useCallback(()=>({ref:O,className:S,"data-focus":Js(V),"data-disabled":Js(e.isDisabled),"data-focus-visible":Js(j),...F1(f,k,M)}),[S,V,j,f,k,M]);return{Component:I,children:c,anchorIcon:d,showAnchorIcon:g,getLinkProps:N}}var R1=e=>P.jsxs("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"1em",...e,children:[P.jsx("path",{d:"M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"}),P.jsx("path",{d:"M15 3h6v6"}),P.jsx("path",{d:"M10 14L21 3"})]}),B1=e=>P.jsx("svg",{"aria-hidden":"true",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:P.jsx("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:"currentColor"})}),tf=Ze((e,t)=>{const{Component:n,children:r,showAnchorIcon:o,anchorIcon:i=P.jsx(R1,{className:Zh}),getLinkProps:s}=j1({ref:t,...e});return P.jsx(n,{...s(),children:P.jsxs(P.Fragment,{children:[r,o&&i]})})});tf.displayName="HeroUI.Link";var z1=tf;function U1(e,t){return e.find(n=>n.id===t)}function Zs(e,t){return e.find(n=>n.id===t)?.value}class Un extends Error{response;request;constructor(t,n){const r=`${Un.extractMessage(t)}: ${JSON.stringify({response:t,request:n})}`;super(r),Object.setPrototypeOf(this,Un.prototype),this.response=t,this.request=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Un)}static extractMessage(t){return t.errors?.[0]?.message??`GraphQL Error (Code: ${String(t.status)})`}}const nf=e=>e.toUpperCase(),Qs=e=>typeof e=="function"?e():e,rf=(e,t)=>e.map((n,r)=>[n,t[r]]),Kn=e=>{let t={};return e instanceof Headers?t=K1(e):Array.isArray(e)?e.forEach(([n,r])=>{n&&r!==void 0&&(t[n]=r)}):e&&(t=e),t},K1=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},H1=e=>{try{const t=e();return G1(t)?t.catch(n=>of(n)):t}catch(t){return of(t)}},of=e=>e instanceof Error?e:new Error(String(e)),G1=e=>typeof e=="object"&&e!==null&&"then"in e&&typeof e.then=="function"&&"catch"in e&&typeof e.catch=="function"&&"finally"in e&&typeof e.finally=="function",ea=e=>{throw new Error(`Unhandled case: ${String(e)}`)},Mo=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),W1=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},q1=(e,t,n)=>e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0};function No(e,t){if(!!!e)throw new Error(t)}function Y1(e){return typeof e=="object"&&e!==null}function X1(e,t){if(!!!e)throw new Error("Unexpected invariant triggered.")}const J1=/\r\n|[\n\r]/g;function ta(e,t){let n=0,r=1;for(const o of e.body.matchAll(J1)){if(typeof o.index=="number"||X1(!1),o.index>=t)break;n=o.index+o[0].length,r+=1}return{line:r,column:t+1-n}}function Z1(e){return sf(e.source,ta(e.source,e.start))}function sf(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,o=t.line-1,i=e.locationOffset.line-1,s=t.line+i,a=t.line===1?n:0,l=t.column+a,u=`${e.name}:${s}:${l}
51
+ `,c=r.split(/\r\n|[\n\r]/g),d=c[o];if(d.length>120){const m=Math.floor(l/80),g=l%80,y=[];for(let b=0;b<d.length;b+=80)y.push(d.slice(b,b+80));return u+af([[`${s} |`,y[0]],...y.slice(1,m+1).map(b=>["|",b]),["|","^".padStart(g)],["|",y[m+1]]])}return u+af([[`${s-1} |`,c[o-1]],[`${s} |`,d],["|","^".padStart(l)],[`${s+1} |`,c[o+1]]])}function af(e){const t=e.filter(([r,o])=>o!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,o])=>r.padStart(n)+(o?" "+o:"")).join(`
52
+ `)}function Q1(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}class na extends Error{constructor(t,...n){var r,o,i;const{nodes:s,source:a,positions:l,path:u,originalError:c,extensions:d}=Q1(n);super(t),this.name="GraphQLError",this.path=u??void 0,this.originalError=c??void 0,this.nodes=lf(Array.isArray(s)?s:s?[s]:void 0);const m=lf((r=this.nodes)===null||r===void 0?void 0:r.map(y=>y.loc).filter(y=>y!=null));this.source=a??(m==null||(o=m[0])===null||o===void 0?void 0:o.source),this.positions=l??m?.map(y=>y.start),this.locations=l&&a?l.map(y=>ta(a,y)):m?.map(y=>ta(y.source,y.start));const g=Y1(c?.extensions)?c?.extensions:void 0;this.extensions=(i=d??g)!==null&&i!==void 0?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),c!=null&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,na):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(t+=`
53
+
54
+ `+Z1(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+=`
55
+
56
+ `+sf(this.source,n);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function lf(e){return e===void 0||e.length===0?void 0:e}function Ke(e,t,n){return new na(`Syntax Error: ${n}`,{source:e,positions:[t]})}class ew{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class cf{constructor(t,n,r,o,i,s){this.kind=t,this.start=n,this.end=r,this.line=o,this.column=i,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const uf={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},tw=new Set(Object.keys(uf));function df(e){const t=e?.kind;return typeof t=="string"&&tw.has(t)}var Hn;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(Hn||(Hn={}));var ra;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(ra||(ra={}));var Q;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(Q||(Q={}));function oa(e){return e===9||e===32}function wr(e){return e>=48&&e<=57}function ff(e){return e>=97&&e<=122||e>=65&&e<=90}function pf(e){return ff(e)||e===95}function nw(e){return ff(e)||wr(e)||e===95}function rw(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,o=-1;for(let s=0;s<e.length;++s){var i;const a=e[s],l=ow(a);l!==a.length&&(r=(i=r)!==null&&i!==void 0?i:s,o=s,s!==0&&l<n&&(n=l))}return e.map((s,a)=>a===0?s:s.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,o+1)}function ow(e){let t=0;for(;t<e.length&&oa(e.charCodeAt(t));)++t;return t}function iw(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),o=r.length===1,i=r.length>1&&r.slice(1).every(g=>g.length===0||oa(g.charCodeAt(0))),s=n.endsWith('\\"""'),a=e.endsWith('"')&&!s,l=e.endsWith("\\"),u=a||l,c=!o||e.length>70||u||i||s;let d="";const m=o&&oa(e.charCodeAt(0));return(c&&!m||i)&&(d+=`
57
+ `),d+=n,(c||u)&&(d+=`
58
+ `),'"""'+d+'"""'}var F;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(F||(F={}));class sw{constructor(t){const n=new cf(F.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==F.EOF)do if(t.next)t=t.next;else{const n=lw(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===F.COMMENT);return t}}function aw(e){return e===F.BANG||e===F.DOLLAR||e===F.AMP||e===F.PAREN_L||e===F.PAREN_R||e===F.SPREAD||e===F.COLON||e===F.EQUALS||e===F.AT||e===F.BRACKET_L||e===F.BRACKET_R||e===F.BRACE_L||e===F.PIPE||e===F.BRACE_R}function Gn(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Do(e,t){return hf(e.charCodeAt(t))&&mf(e.charCodeAt(t+1))}function hf(e){return e>=55296&&e<=56319}function mf(e){return e>=56320&&e<=57343}function sn(e,t){const n=e.source.body.codePointAt(t);if(n===void 0)return F.EOF;if(n>=32&&n<=126){const r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function _e(e,t,n,r,o){const i=e.line,s=1+n-e.lineStart;return new cf(t,n,r,i,s,o)}function lw(e,t){const n=e.source.body,r=n.length;let o=t;for(;o<r;){const i=n.charCodeAt(o);switch(i){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:n.charCodeAt(o+1)===10?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return cw(e,o);case 33:return _e(e,F.BANG,o,o+1);case 36:return _e(e,F.DOLLAR,o,o+1);case 38:return _e(e,F.AMP,o,o+1);case 40:return _e(e,F.PAREN_L,o,o+1);case 41:return _e(e,F.PAREN_R,o,o+1);case 46:if(n.charCodeAt(o+1)===46&&n.charCodeAt(o+2)===46)return _e(e,F.SPREAD,o,o+3);break;case 58:return _e(e,F.COLON,o,o+1);case 61:return _e(e,F.EQUALS,o,o+1);case 64:return _e(e,F.AT,o,o+1);case 91:return _e(e,F.BRACKET_L,o,o+1);case 93:return _e(e,F.BRACKET_R,o,o+1);case 123:return _e(e,F.BRACE_L,o,o+1);case 124:return _e(e,F.PIPE,o,o+1);case 125:return _e(e,F.BRACE_R,o,o+1);case 34:return n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34?mw(e,o):dw(e,o)}if(wr(i)||i===45)return uw(e,o,i);if(pf(i))return gw(e,o);throw Ke(e.source,o,i===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:Gn(i)||Do(n,o)?`Unexpected character: ${sn(e,o)}.`:`Invalid character: ${sn(e,o)}.`)}return _e(e,F.EOF,r,r)}function cw(e,t){const n=e.source.body,r=n.length;let o=t+1;for(;o<r;){const i=n.charCodeAt(o);if(i===10||i===13)break;if(Gn(i))++o;else if(Do(n,o))o+=2;else break}return _e(e,F.COMMENT,t,o,n.slice(t+1,o))}function uw(e,t,n){const r=e.source.body;let o=t,i=n,s=!1;if(i===45&&(i=r.charCodeAt(++o)),i===48){if(i=r.charCodeAt(++o),wr(i))throw Ke(e.source,o,`Invalid number, unexpected digit after 0: ${sn(e,o)}.`)}else o=ia(e,o,i),i=r.charCodeAt(o);if(i===46&&(s=!0,i=r.charCodeAt(++o),o=ia(e,o,i),i=r.charCodeAt(o)),(i===69||i===101)&&(s=!0,i=r.charCodeAt(++o),(i===43||i===45)&&(i=r.charCodeAt(++o)),o=ia(e,o,i),i=r.charCodeAt(o)),i===46||pf(i))throw Ke(e.source,o,`Invalid number, expected digit but got: ${sn(e,o)}.`);return _e(e,s?F.FLOAT:F.INT,t,o,r.slice(t,o))}function ia(e,t,n){if(!wr(n))throw Ke(e.source,t,`Invalid number, expected digit but got: ${sn(e,t)}.`);const r=e.source.body;let o=t+1;for(;wr(r.charCodeAt(o));)++o;return o}function dw(e,t){const n=e.source.body,r=n.length;let o=t+1,i=o,s="";for(;o<r;){const a=n.charCodeAt(o);if(a===34)return s+=n.slice(i,o),_e(e,F.STRING,t,o+1,s);if(a===92){s+=n.slice(i,o);const l=n.charCodeAt(o+1)===117?n.charCodeAt(o+2)===123?fw(e,o):pw(e,o):hw(e,o);s+=l.value,o+=l.size,i=o;continue}if(a===10||a===13)break;if(Gn(a))++o;else if(Do(n,o))o+=2;else throw Ke(e.source,o,`Invalid character within String: ${sn(e,o)}.`)}throw Ke(e.source,o,"Unterminated string.")}function fw(e,t){const n=e.source.body;let r=0,o=3;for(;o<12;){const i=n.charCodeAt(t+o++);if(i===125){if(o<5||!Gn(r))break;return{value:String.fromCodePoint(r),size:o}}if(r=r<<4|xr(i),r<0)break}throw Ke(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+o)}".`)}function pw(e,t){const n=e.source.body,r=gf(n,t+2);if(Gn(r))return{value:String.fromCodePoint(r),size:6};if(hf(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){const o=gf(n,t+8);if(mf(o))return{value:String.fromCodePoint(r,o),size:12}}throw Ke(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function gf(e,t){return xr(e.charCodeAt(t))<<12|xr(e.charCodeAt(t+1))<<8|xr(e.charCodeAt(t+2))<<4|xr(e.charCodeAt(t+3))}function xr(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function hw(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
59
+ `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw Ke(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function mw(e,t){const n=e.source.body,r=n.length;let o=e.lineStart,i=t+3,s=i,a="";const l=[];for(;i<r;){const u=n.charCodeAt(i);if(u===34&&n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34){a+=n.slice(s,i),l.push(a);const c=_e(e,F.BLOCK_STRING,t,i+3,rw(l).join(`
60
+ `));return e.line+=l.length-1,e.lineStart=o,c}if(u===92&&n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34&&n.charCodeAt(i+3)===34){a+=n.slice(s,i),s=i+1,i+=4;continue}if(u===10||u===13){a+=n.slice(s,i),l.push(a),u===13&&n.charCodeAt(i+1)===10?i+=2:++i,a="",s=i,o=i;continue}if(Gn(u))++i;else if(Do(n,i))i+=2;else throw Ke(e.source,i,`Invalid character within String: ${sn(e,i)}.`)}throw Ke(e.source,i,"Unterminated string.")}function gw(e,t){const n=e.source.body,r=n.length;let o=t+1;for(;o<r;){const i=n.charCodeAt(o);if(nw(i))++o;else break}return _e(e,F.NAME,t,o,n.slice(t,o))}const bw=10,bf=2;function sa(e){return Lo(e,[])}function Lo(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return vw(e,t);default:return String(e)}}function vw(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(yw(e)){const r=e.toJSON();if(r!==e)return typeof r=="string"?r:Lo(r,n)}else if(Array.isArray(e))return xw(e,n);return ww(e,n)}function yw(e){return typeof e.toJSON=="function"}function ww(e,t){const n=Object.entries(e);return n.length===0?"{}":t.length>bf?"["+Ew(e)+"]":"{ "+n.map(([o,i])=>o+": "+Lo(i,t)).join(", ")+" }"}function xw(e,t){if(e.length===0)return"[]";if(t.length>bf)return"[Array]";const n=Math.min(bw,e.length),r=e.length-n,o=[];for(let i=0;i<n;++i)o.push(Lo(e[i],t));return r===1?o.push("... 1 more item"):r>1&&o.push(`... ${r} more items`),"["+o.join(", ")+"]"}function Ew(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}const Tw=globalThis.process&&process.env.NODE_ENV==="production"?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;const o=n.prototype[Symbol.toStringTag],i=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(o===i){const s=sa(t);throw new Error(`Cannot use ${o} "${s}" from another module or realm.
61
+
62
+ Ensure that there is only one instance of "graphql" in the node_modules
63
+ directory. If different versions of "graphql" are the dependencies of other
64
+ relied on modules, use "resolutions" to ensure only one version is installed.
65
+
66
+ https://yarnpkg.com/en/docs/selective-version-resolutions
67
+
68
+ Duplicate "graphql" modules cannot be used at the same time since different
69
+ versions may have different capabilities and behavior. The data from one
70
+ version used in the function from another could produce confusing and
71
+ spurious results.`)}}return!1};class vf{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||No(!1,`Body must be a string. Received: ${sa(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||No(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||No(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function $w(e){return Tw(e,vf)}function Cw(e,t){const n=new Pw(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}class Pw{constructor(t,n={}){const r=$w(t)?t:new vf(t);this._lexer=new sw(r),this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(F.NAME);return this.node(t,{kind:Q.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:Q.DOCUMENT,definitions:this.many(F.SOF,this.parseDefinition,F.EOF)})}parseDefinition(){if(this.peek(F.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===F.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw Ke(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(F.BRACE_L))return this.node(t,{kind:Q.OPERATION_DEFINITION,operation:Hn.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let r;return this.peek(F.NAME)&&(r=this.parseName()),this.node(t,{kind:Q.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(F.NAME);switch(t.value){case"query":return Hn.QUERY;case"mutation":return Hn.MUTATION;case"subscription":return Hn.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(F.PAREN_L,this.parseVariableDefinition,F.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Q.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(F.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(F.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(F.DOLLAR),this.node(t,{kind:Q.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Q.SELECTION_SET,selections:this.many(F.BRACE_L,this.parseSelection,F.BRACE_R)})}parseSelection(){return this.peek(F.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let r,o;return this.expectOptionalToken(F.COLON)?(r=n,o=this.parseName()):o=n,this.node(t,{kind:Q.FIELD,alias:r,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(F.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(F.PAREN_L,n,F.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,r=this.parseName();return this.expectToken(F.COLON),this.node(n,{kind:Q.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(F.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(F.NAME)?this.node(t,{kind:Q.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:Q.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:Q.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:Q.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const n=this._lexer.token;switch(n.kind){case F.BRACKET_L:return this.parseList(t);case F.BRACE_L:return this.parseObject(t);case F.INT:return this.advanceLexer(),this.node(n,{kind:Q.INT,value:n.value});case F.FLOAT:return this.advanceLexer(),this.node(n,{kind:Q.FLOAT,value:n.value});case F.STRING:case F.BLOCK_STRING:return this.parseStringLiteral();case F.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:Q.BOOLEAN,value:!0});case"false":return this.node(n,{kind:Q.BOOLEAN,value:!1});case"null":return this.node(n,{kind:Q.NULL});default:return this.node(n,{kind:Q.ENUM,value:n.value})}case F.DOLLAR:if(t)if(this.expectToken(F.DOLLAR),this._lexer.token.kind===F.NAME){const r=this._lexer.token.value;throw Ke(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:Q.STRING,value:t.value,block:t.kind===F.BLOCK_STRING})}parseList(t){const n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:Q.LIST,values:this.any(F.BRACKET_L,n,F.BRACKET_R)})}parseObject(t){const n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:Q.OBJECT,fields:this.any(F.BRACE_L,n,F.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,r=this.parseName();return this.expectToken(F.COLON),this.node(n,{kind:Q.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(F.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(F.AT),this.node(n,{kind:Q.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let n;if(this.expectOptionalToken(F.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(F.BRACKET_R),n=this.node(t,{kind:Q.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(F.BANG)?this.node(t,{kind:Q.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:Q.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(F.STRING)||this.peek(F.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),o=this.many(F.BRACE_L,this.parseOperationTypeDefinition,F.BRACE_R);return this.node(t,{kind:Q.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:o})}parseOperationTypeDefinition(){const t=this._lexer.token,n=this.parseOperationType();this.expectToken(F.COLON);const r=this.parseNamedType();return this.node(t,{kind:Q.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),o=this.parseConstDirectives();return this.node(t,{kind:Q.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:o})}parseObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:Q.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:o,directives:i,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(F.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(F.BRACE_L,this.parseFieldDefinition,F.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),o=this.parseArgumentDefs();this.expectToken(F.COLON);const i=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(t,{kind:Q.FIELD_DEFINITION,description:n,name:r,arguments:o,type:i,directives:s})}parseArgumentDefs(){return this.optionalMany(F.PAREN_L,this.parseInputValueDef,F.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(F.COLON);const o=this.parseTypeReference();let i;this.expectOptionalToken(F.EQUALS)&&(i=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(t,{kind:Q.INPUT_VALUE_DEFINITION,description:n,name:r,type:o,defaultValue:i,directives:s})}parseInterfaceTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:Q.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:o,directives:i,fields:s})}parseUnionTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),o=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(t,{kind:Q.UNION_TYPE_DEFINITION,description:n,name:r,directives:o,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(F.EQUALS)?this.delimitedMany(F.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),o=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(t,{kind:Q.ENUM_TYPE_DEFINITION,description:n,name:r,directives:o,values:i})}parseEnumValuesDefinition(){return this.optionalMany(F.BRACE_L,this.parseEnumValueDefinition,F.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),o=this.parseConstDirectives();return this.node(t,{kind:Q.ENUM_VALUE_DEFINITION,description:n,name:r,directives:o})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Ke(this._lexer.source,this._lexer.token.start,`${Vo(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),o=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(t,{kind:Q.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:o,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(F.BRACE_L,this.parseInputValueDef,F.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===F.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.optionalMany(F.BRACE_L,this.parseOperationTypeDefinition,F.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:Q.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:Q.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(r.length===0&&o.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:Q.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:o,fields:i})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(r.length===0&&o.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:Q.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:o,fields:i})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseUnionMemberTypes();if(r.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:Q.UNION_TYPE_EXTENSION,name:n,directives:r,types:o})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();if(r.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:Q.ENUM_TYPE_EXTENSION,name:n,directives:r,values:o})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();if(r.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:Q.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:o})}parseDirectiveDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(F.AT);const r=this.parseName(),o=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(t,{kind:Q.DIRECTIVE_DEFINITION,description:n,name:r,arguments:o,repeatable:i,locations:s})}parseDirectiveLocations(){return this.delimitedMany(F.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(ra,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new ew(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){const n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw Ke(this._lexer.source,n.start,`Expected ${yf(t)}, found ${Vo(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const n=this._lexer.token;if(n.kind===F.NAME&&n.value===t)this.advanceLexer();else throw Ke(this._lexer.source,n.start,`Expected "${t}", found ${Vo(n)}.`)}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===F.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const n=t??this._lexer.token;return Ke(this._lexer.source,n.start,`Unexpected ${Vo(n)}.`)}any(t,n,r){this.expectToken(t);const o=[];for(;!this.expectOptionalToken(r);)o.push(n.call(this));return o}optionalMany(t,n,r){if(this.expectOptionalToken(t)){const o=[];do o.push(n.call(this));while(!this.expectOptionalToken(r));return o}return[]}many(t,n,r){this.expectToken(t);const o=[];do o.push(n.call(this));while(!this.expectOptionalToken(r));return o}delimitedMany(t,n){this.expectOptionalToken(t);const r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){const{maxTokens:t}=this._options,n=this._lexer.advance();if(n.kind!==F.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw Ke(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function Vo(e){const t=e.value;return yf(e.kind)+(t!=null?` "${t}"`:"")}function yf(e){return aw(e)?`"${e}"`:e}function Sw(e){return`"${e.replace(kw,Iw)}"`}const kw=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Iw(e){return Aw[e.charCodeAt(0)]}const Aw=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Ow=Object.freeze({});function Mw(e,t,n=uf){const r=new Map;for(const v of Object.values(Q))r.set(v,Nw(t,v));let o,i=Array.isArray(e),s=[e],a=-1,l=[],u=e,c,d;const m=[],g=[];do{a++;const v=a===s.length,$=v&&l.length!==0;if(v){if(c=g.length===0?void 0:m[m.length-1],u=d,d=g.pop(),$)if(i){u=u.slice();let M=0;for(const[I,O]of l){const L=I-M;O===null?(u.splice(L,1),M++):u[L]=O}}else{u={...u};for(const[M,I]of l)u[M]=I}a=o.index,s=o.keys,l=o.edits,i=o.inArray,o=o.prev}else if(d){if(c=i?a:s[a],u=d[c],u==null)continue;m.push(c)}let A;if(!Array.isArray(u)){var y,b;df(u)||No(!1,`Invalid AST Node: ${sa(u)}.`);const M=v?(y=r.get(u.kind))===null||y===void 0?void 0:y.leave:(b=r.get(u.kind))===null||b===void 0?void 0:b.enter;if(A=M?.call(t,u,c,d,m,g),A===Ow)break;if(A===!1){if(!v){m.pop();continue}}else if(A!==void 0&&(l.push([c,A]),!v))if(df(A))u=A;else{m.pop();continue}}if(A===void 0&&$&&l.push([c,u]),v)m.pop();else{var x;o={inArray:i,index:a,keys:s,edits:l,prev:o},i=Array.isArray(u),s=i?u:(x=n[u.kind])!==null&&x!==void 0?x:[],a=-1,l=[],d&&g.push(d),d=u}}while(o!==void 0);return l.length!==0?l[l.length-1][1]:e}function Nw(e,t){const n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function Dw(e){return Mw(e,Vw)}const Lw=80,Vw={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Y(e.definitions,`
72
+
73
+ `)},OperationDefinition:{leave(e){const t=ae("(",Y(e.variableDefinitions,", "),")"),n=Y([e.operation,Y([e.name,t]),Y(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+ae(" = ",n)+ae(" ",Y(r," "))},SelectionSet:{leave:({selections:e})=>pt(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:o}){const i=ae("",e,": ")+t;let s=i+ae("(",Y(n,", "),")");return s.length>Lw&&(s=i+ae(`(
74
+ `,_o(Y(n,`
75
+ `)),`
76
+ )`)),Y([s,Y(r," "),o]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+ae(" ",Y(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Y(["...",ae("on ",e),Y(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:o})=>`fragment ${e}${ae("(",Y(n,", "),")")} on ${t} ${ae("",Y(r," ")," ")}`+o},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?iw(e):Sw(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Y(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Y(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+ae("(",Y(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>ae("",e,`
77
+ `)+Y(["schema",Y(t," "),pt(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>ae("",e,`
78
+ `)+Y(["scalar",t,Y(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>ae("",e,`
79
+ `)+Y(["type",t,ae("implements ",Y(n," & ")),Y(r," "),pt(o)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:o})=>ae("",e,`
80
+ `)+t+(wf(n)?ae(`(
81
+ `,_o(Y(n,`
82
+ `)),`
83
+ )`):ae("(",Y(n,", "),")"))+": "+r+ae(" ",Y(o," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:o})=>ae("",e,`
84
+ `)+Y([t+": "+n,ae("= ",r),Y(o," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>ae("",e,`
85
+ `)+Y(["interface",t,ae("implements ",Y(n," & ")),Y(r," "),pt(o)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>ae("",e,`
86
+ `)+Y(["union",t,Y(n," "),ae("= ",Y(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>ae("",e,`
87
+ `)+Y(["enum",t,Y(n," "),pt(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>ae("",e,`
88
+ `)+Y([t,Y(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>ae("",e,`
89
+ `)+Y(["input",t,Y(n," "),pt(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:o})=>ae("",e,`
90
+ `)+"directive @"+t+(wf(n)?ae(`(
91
+ `,_o(Y(n,`
92
+ `)),`
93
+ )`):ae("(",Y(n,", "),")"))+(r?" repeatable":"")+" on "+Y(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Y(["extend schema",Y(e," "),pt(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Y(["extend scalar",e,Y(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Y(["extend type",e,ae("implements ",Y(t," & ")),Y(n," "),pt(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Y(["extend interface",e,ae("implements ",Y(t," & ")),Y(n," "),pt(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Y(["extend union",e,Y(t," "),ae("= ",Y(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Y(["extend enum",e,Y(t," "),pt(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Y(["extend input",e,Y(t," "),pt(n)]," ")}};function Y(e,t=""){var n;return(n=e?.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function pt(e){return ae(`{
94
+ `,_o(Y(e,`
95
+ `)),`
96
+ }`)}function ae(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function _o(e){return ae(" ",e.replace(/\n/g,`
97
+ `))}function wf(e){var t;return(t=e?.some(n=>n.includes(`
98
+ `)))!==null&&t!==void 0?t:!1}const xf="Accept",aa="Content-Type",la="application/json",Ef="application/graphql-response+json",Tf=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),_w=e=>{const t=e.toLowerCase();return t.includes(Ef)||t.includes(la)},$f=e=>{try{if(Array.isArray(e))return{_tag:"Batch",executionResults:e.map(Cf)};if(Mo(e))return{_tag:"Single",executionResult:Cf(e)};throw new Error(`Invalid execution result: result is not object or array.
99
+ Got:
100
+ ${String(e)}`)}catch(t){return t}},Cf=e=>{if(typeof e!="object"||e===null)throw new Error("Invalid execution result: result is not object");let t,n,r;if("errors"in e){if(!Mo(e.errors)&&!Array.isArray(e.errors))throw new Error("Invalid execution result: errors is not plain object OR array");t=e.errors}if("data"in e){if(!Mo(e.data)&&e.data!==null)throw new Error("Invalid execution result: data is not plain object");n=e.data}if("extensions"in e){if(!Mo(e.extensions))throw new Error("Invalid execution result: extensions is not plain object");r=e.extensions}return{data:n,errors:t,extensions:r}},Fw=e=>e._tag==="Batch"?e.executionResults.some(Pf):Pf(e.executionResult),Pf=e=>Array.isArray(e.errors)?e.errors.length>0:!!e.errors,Sf=e=>typeof e=="object"&&e!==null&&"kind"in e&&e.kind===Q.OPERATION_DEFINITION,jw=e=>{let t;const n=e.definitions.filter(Sf);return n.length===1&&(t=n[0].name?.value),t},Rw=e=>{let t=!1;const n=e.definitions.filter(Sf);return n.length===1&&(t=n[0].operation==="mutation"),t},ca=(e,t)=>{const n=typeof e=="string"?e:Dw(e);let r=!1,o;if(t)return{expression:n,isMutation:r,operationName:o};const i=H1(()=>typeof e=="string"?Cw(e):e);return i instanceof Error?{expression:n,isMutation:r,operationName:o}:(o=jw(i),r=Rw(i),{expression:n,operationName:o,isMutation:r})},ua=JSON,da=async e=>{const t={...e,method:e.request._tag==="Single"?e.request.document.isMutation?"POST":nf(e.method??"post"):e.request.hasMutations?"POST":nf(e.method??"post"),fetchOptions:{...e.fetchOptions,errorPolicy:e.fetchOptions.errorPolicy??"none"}},r=await zw(t.method)(t);if(!r.ok)return new Un({status:r.status,headers:r.headers},{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables});const o=await Bw(r,e.fetchOptions.jsonSerializer??ua);if(o instanceof Error)throw o;const i={status:r.status,headers:r.headers};if(Fw(o)&&t.fetchOptions.errorPolicy==="none"){const s=o._tag==="Batch"?{...o.executionResults,...i}:{...o.executionResult,...i};return new Un(s,{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables})}switch(o._tag){case"Single":return{...i,...kf(t)(o.executionResult)};case"Batch":return{...i,data:o.executionResults.map(kf(t))};default:ea(o)}},kf=e=>t=>({extensions:t.extensions,data:t.data,errors:e.fetchOptions.errorPolicy==="all"?t.errors:void 0}),Bw=async(e,t)=>{const n=e.headers.get(aa),r=await e.text();return n&&_w(n)?$f(t.parse(r)):$f(r)},zw=e=>async t=>{const n=new Headers(t.headers);let r=null,o;n.has(xf)||n.set(xf,[Ef,la].join(", ")),e==="POST"?(o=(t.fetchOptions.jsonSerializer??ua).stringify(Uw(t)),typeof o=="string"&&!n.has(aa)&&n.set(aa,la)):r=Kw(t);const i={method:e,headers:n,body:o,...t.fetchOptions};let s=new URL(t.url),a=i;if(t.middleware){const u=await Promise.resolve(t.middleware({...i,url:t.url,operationName:t.request._tag==="Single"?t.request.document.operationName:void 0,variables:t.request.variables})),{url:c,...d}=u;s=new URL(c),a=d}return r&&r.forEach((u,c)=>{s.searchParams.append(c,u)}),await(t.fetch??fetch)(s,a)},Uw=e=>{switch(e.request._tag){case"Single":return{query:e.request.document.expression,variables:e.request.variables,operationName:e.request.document.operationName};case"Batch":return rf(e.request.query,e.request.variables??[]).map(([t,n])=>({query:t,variables:n}));default:throw ea(e.request)}},Kw=e=>{const t=e.fetchOptions.jsonSerializer??ua,n=new URLSearchParams;switch(e.request._tag){case"Single":return n.append("query",Tf(e.request.document.expression)),e.request.variables&&n.append("variables",t.stringify(e.request.variables)),e.request.document.operationName&&n.append("operationName",e.request.document.operationName),n;case"Batch":{const r=e.request.variables?.map(s=>t.stringify(s))??[],o=e.request.query.map(Tf),i=rf(o,r).map(([s,a])=>({query:s,variables:a}));return n.append("query",t.stringify(i)),n}default:throw ea(e.request)}};class Hw{url;requestConfig;constructor(t,n={}){this.url=t,this.requestConfig=n}rawRequest=async(...t)=>{const[n,r,o]=t,i=q1(n,r,o),{headers:s,fetch:a=globalThis.fetch,method:l="POST",requestMiddleware:u,responseMiddleware:c,excludeOperationName:d,...m}=this.requestConfig,{url:g}=this;i.signal!==void 0&&(m.signal=i.signal);const y=ca(i.query,d),b=await da({url:g,request:{_tag:"Single",document:y,variables:i.variables},headers:{...Kn(Qs(s)),...Kn(i.requestHeaders)},fetch:a,method:l,fetchOptions:m,middleware:u});if(c&&await c(b,{operationName:y.operationName,variables:r,url:this.url}),b instanceof Error)throw b;return b};async request(t,...n){const[r,o]=n,i=Gw(t,r,o),{headers:s,fetch:a=globalThis.fetch,method:l="POST",requestMiddleware:u,responseMiddleware:c,excludeOperationName:d,...m}=this.requestConfig,{url:g}=this;i.signal!==void 0&&(m.signal=i.signal);const y=ca(i.document,d),b=await da({url:g,request:{_tag:"Single",document:y,variables:i.variables},headers:{...Kn(Qs(s)),...Kn(i.requestHeaders)},fetch:a,method:l,fetchOptions:m,middleware:u});if(c&&await c(b,{operationName:y.operationName,variables:i.variables,url:this.url}),b instanceof Error)throw b;return b.data}async batchRequests(t,n){const r=W1(t,n),{headers:o,excludeOperationName:i,...s}=this.requestConfig;r.signal!==void 0&&(s.signal=r.signal);const a=r.documents.map(({document:m})=>ca(m,i)),l=a.map(({expression:m})=>m),u=a.some(({isMutation:m})=>m),c=r.documents.map(({variables:m})=>m),d=await da({url:this.url,request:{_tag:"Batch",operationName:void 0,query:l,hasMutations:u,variables:c},headers:{...Kn(Qs(o)),...Kn(r.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:s,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware&&await this.requestConfig.responseMiddleware(d,{operationName:void 0,variables:c,url:this.url}),d instanceof Error)throw d;return d.data}setHeaders(t){return this.requestConfig.headers=t,this}setHeader(t,n){const{headers:r}=this.requestConfig;return r?r[t]=n:this.requestConfig.headers={[t]:n},this}setEndpoint(t){return this.url=t,this}}const Gw=(e,t,n)=>e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0},If=(e,...t)=>e.reduce((n,r,o)=>`${n}${r}${o in t?String(t[o]):""}`,"");var Wn=(e=>(e.Avg="AVG",e.Cardinality="CARDINALITY",e.Max="MAX",e.Min="MIN",e.Sum="SUM",e))(Wn||{});const Ww=If`
101
+ fragment ProductCardProposition on Proposition {
102
+ key
103
+ creditFee
104
+ baseMonthlyFee
105
+ lifetimeMonthlyFee
106
+ tcoPerMonth
107
+ activationFee
108
+ price
109
+ productType
110
+ modificationPromotions
111
+ deliveryPromise
112
+ handsetCreditMonthlyFee
113
+ bundles {
114
+ displayName
115
+ usps
116
+ contentTypes
117
+ }
118
+ planVariant {
119
+ contractTerm
120
+ }
121
+ monthlyFees {
122
+ fee
123
+ term
124
+ }
125
+ tags {
126
+ type
127
+ label
128
+ slug
129
+ }
130
+ content {
131
+ dataSpeedDown
132
+ dataSpeedUp
133
+ channels
134
+ hdChannels
135
+ networkGeneration
136
+ dataEu
137
+ receivers
138
+ types
139
+ data
140
+ minutes
141
+ sms
142
+ sharedCredits
143
+ }
144
+ provider {
145
+ name
146
+ imageUrl
147
+ slug
148
+ network
149
+ }
150
+ specialPromotions {
151
+ type
152
+ visualType
153
+ publicTitle
154
+ description
155
+ weight
156
+ validUntil
157
+ showBanner
158
+ shortDescription
159
+ stickerImageUrl
160
+ }
161
+ }
162
+ `,qw=If`
163
+ query resultsSimOnlyPropositions($query: ElasticQuery!, $modificationBlocks: [InputModificationBlock]) {
164
+ search: searchPropositions(
165
+ query: $query
166
+ type: "sim-only"
167
+ modificationBlocks: $modificationBlocks
168
+ ) {
169
+ count
170
+ aggs {
171
+ metrics {
172
+ key
173
+ value
174
+ }
175
+ terms {
176
+ key
177
+ values {
178
+ value
179
+ count
180
+ }
181
+ }
182
+ }
183
+ records {
184
+ weight
185
+ labels
186
+ provider {
187
+ mobileRank
188
+ includeInLabels
189
+ }
190
+ planVariant {
191
+ contractType
192
+ }
193
+ ...ProductCardProposition
194
+ }
195
+ }
196
+ }
197
+ ${Ww}`;function Yw(e){return["ja","nee","0","1"].includes(e)}function Af(e){return new RegExp(/^\d*\.?\d*$/).test(e)}function Of(e){return new RegExp(/^\d*\.?\d*-\d*\.?\d*$/).test(e)}function Mf(e){return!e.includes("nee")&&!e.includes("0")?[!0]:!e.includes("ja")&&!e.includes("1")?[!1]:[!0,!1]}function Nf(e){return parseFloat(e)||0}function Df(e){const[t,n]=e.split("-").map(parseFloat);return Number.isNaN(t)?{to:n}:Number.isNaN(n)?{from:t}:{from:t,to:n}}function Lf(e){const{col:t,ranges:n,values:r}=Xw(e),o=e.operator==="and";if(o&&n)return n.map(i=>({col:t,ranges:[i]}));if(o&&r){if(r.length===0)return[{col:t,values:r}];const i=r[0];if(typeof i=="string")return r.map(s=>({col:t,values:[s]}));if(typeof i=="number")return r.map(s=>({col:t,values:[s]}));if(typeof i=="boolean")return r.map(s=>({col:t,values:[s]}))}return[{col:t,ranges:n,values:r}]}function Xw({col:e,values:t,valueType:n}){return t.length===0?{col:e,values:t}:n==="boolean"?{col:e,values:Mf(t)}:(n==="integer"||n==="decimal")&&t.every(Of)?{col:e,ranges:t.map(Df)}:(n==="integer"||n==="decimal")&&t.every(Af)?{col:e,values:t.map(Nf)}:n==="string"?{col:e,values:t}:t.every(Yw)?{col:e,values:Mf(t)}:t.every(Of)?{col:e,ranges:t.map(Df)}:t.every(Af)?{col:e,values:t.map(Nf)}:{col:e,values:t}}function Jw({key:e,col:t,type:n,filter:r=!1,options:o=[]}){const[{values:i,ranges:s}]=Lf({col:t,values:o});switch(n){case"max":return[{key:`max_${e}`,metric:Wn.Max,col:t}];case"min":return[{key:`min_${e}`,metric:Wn.Min,col:t}];case"minMax":return[{key:`min_${e}`,metric:Wn.Min,col:t},{key:`max_${e}`,metric:Wn.Max,col:t}];case"values":return s?[{key:e,col:t,filter:r,ranges:s}]:i&&i.length>0?[{key:e,col:t,filter:r,include:i}]:[{key:e,col:t,filter:r}]}}class Zw{_id;_limit;_offset;_sort;_groupBy;_search;_wheres;_aggregations;constructor(t){this._id=t,this._offset=0,this._sort=[],this._wheres=[],this._aggregations=[]}sort(t){return this._sort=Array.isArray(t)?t:[t],this}limit(t){return this._limit=t,this}where(t){return this._wheres=[...this._wheres,...Lf(t)],this}aggregation(t){return this._aggregations=[...this._aggregations,...Jw(t)],this}page(t){if(!this._limit)throw new Error("Cannot paginate without a limit");return this._offset=(t-1)*this._limit,this}groupBy(t){return this._groupBy=t,this}search(t){return this._search=t,this}serialize(){return{limit:this._limit,offset:this._offset,sort:this._sort,where:this._wheres,collapse:this._groupBy?{field:this._groupBy}:void 0,search:this._search,aggs:this._groupBy?[...this._aggregations,{key:"count",metric:Wn.Cardinality,col:this._groupBy}]:this._aggregations}}}function Qw({filterOptions:e,filterValues:t,limit:n=10}){const r=new Zw;r.limit(n),t.forEach(i=>{const s=U1(e,i.id);s&&r.where({col:i.id,values:(Array.isArray(i.value)?i.value:[i.value]).map(a=>String(a)),valueType:s.type})});const o=Zs(t,"provider");return r.groupBy(Array.isArray(o)&&o.length===1?"data_and_speed":"provider"),r}const fa=new WeakMap;function pa(e,t){let n=fa.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function ha(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=lr(t);let s=lr(),a={};n?(r=r?`${s} ${r}`:s,a={id:s,htmlFor:i==="label"?t:void 0}):!r&&!o&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=eb({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:a,fieldProps:l}}function ex(e){let{description:t,errorMessage:n,isInvalid:r,validationState:o}=e,{labelProps:i,fieldProps:s}=ha(e),a=uc([!!t,!!n,r,o]),l=uc([!!t,!!n,r,o]);return s=Re(s,{"aria-describedby":[a,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:s,descriptionProps:{id:a},errorMessageProps:{id:l}}}function tx(e,t,n){let{labelProps:r,fieldProps:o}=ha(e),i=e.orientation==="vertical";var s;fa.set(t,{id:(s=r.id)!==null&&s!==void 0?s:o.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:a}=sr(),{addGlobalListener:l,removeGlobalListener:u}=Sn();const c=h.useRef(null),d=a==="rtl",m=h.useRef(null),{moveProps:g}=Wd({onMoveStart(){m.current=null},onMove({deltaX:v,deltaY:$}){if(!n.current)return;let{height:A,width:M}=n.current.getBoundingClientRect(),I=i?A:M;m.current==null&&c.current!=null&&(m.current=t.getThumbPercent(c.current)*I);let O=i?$:v;if((i||d)&&(O=-O),m.current+=O,c.current!=null&&n.current){const L=En(m.current/I,0,1);t.setThumbPercent(c.current,L)}},onMoveEnd(){c.current!=null&&(t.setThumbDragging(c.current,!1),c.current=null)}});let y=h.useRef(void 0),b=(v,$,A,M)=>{if(n.current&&!e.isDisabled&&t.values.every((I,O)=>!t.isThumbDragging(O))){let{height:I,width:O,top:L,left:k}=n.current.getBoundingClientRect(),V=i?I:O,N=((i?M:A)-(i?L:k))/V;(a==="rtl"||i)&&(N=1-N);let w=t.getPercentValue(N),D,p=t.values.findIndex(C=>w-C<0);if(p===0)D=p;else if(p===-1)D=t.values.length-1;else{let C=t.values[p-1],E=t.values[p];Math.abs(C-w)<Math.abs(E-w)?D=p-1:D=p}D>=0&&t.isThumbEditable(D)?(v.preventDefault(),c.current=D,t.setFocusedThumb(D),y.current=$,t.setThumbDragging(c.current,!0),t.setThumbValue(D,w),l(window,"mouseup",x,!1),l(window,"touchend",x,!1),l(window,"pointerup",x,!1)):c.current=null}},x=v=>{var $,A;((A=v.pointerId)!==null&&A!==void 0?A:($=v.changedTouches)===null||$===void 0?void 0:$[0].identifier)===y.current&&(c.current!=null&&(t.setThumbDragging(c.current,!1),c.current=null),u(window,"mouseup",x,!1),u(window,"touchend",x,!1),u(window,"pointerup",x,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var v;(v=document.getElementById(pa(t,0)))===null||v===void 0||v.focus(),zd("keyboard")}),{labelProps:r,groupProps:{role:"group",...o},trackProps:Re({onMouseDown(v){v.button!==0||v.altKey||v.ctrlKey||v.metaKey||b(v,void 0,v.clientX,v.clientY)},onPointerDown(v){v.pointerType==="mouse"&&(v.button!==0||v.altKey||v.ctrlKey||v.metaKey)||b(v,v.pointerId,v.clientX,v.clientY)},onTouchStart(v){b(v,v.changedTouches[0].identifier,v.changedTouches[0].clientX,v.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},g),outputProps:{htmlFor:t.values.map((v,$)=>pa(t,$)).join(" "),"aria-live":"off"}}}function nx(e,t){let{index:n=0,isRequired:r,validationState:o,isInvalid:i,trackRef:s,inputRef:a,orientation:l=t.orientation,name:u,form:c}=e,d=e.isDisabled||t.isDisabled,m=l==="vertical",{direction:g}=sr(),{addGlobalListener:y,removeGlobalListener:b}=Sn(),x=fa.get(t);var v;const{labelProps:$,fieldProps:A}=ha({...e,id:pa(t,n),"aria-labelledby":`${x.id} ${(v=e["aria-labelledby"])!==null&&v!==void 0?v:""}`.trim()}),M=t.values[n],I=h.useCallback(()=>{a.current&&Wt(a.current)},[a]),O=t.focusedThumb===n;h.useEffect(()=>{O&&I()},[O,I]);let L=g==="rtl",k=h.useRef(null),{keyboardProps:V}=Hd({onKeyDown(C){let{getThumbMaxValue:E,getThumbMinValue:B,decrementThumb:H,incrementThumb:X,setThumbValue:_,setThumbDragging:z,pageSize:K}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(C.key)){C.continuePropagation();return}switch(C.preventDefault(),z(n,!0),C.key){case"PageUp":X(n,K);break;case"PageDown":H(n,K);break;case"Home":_(n,B(n));break;case"End":_(n,E(n));break}z(n,!1)}}),{moveProps:j}=Wd({onMoveStart(){k.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:C,deltaY:E,pointerType:B,shiftKey:H}){const{getThumbPercent:X,setThumbPercent:_,decrementThumb:z,incrementThumb:K,step:ie,pageSize:ee}=t;if(!s.current)return;let{width:re,height:we}=s.current.getBoundingClientRect(),ve=m?we:re;if(k.current==null&&(k.current=X(n)*ve),B==="keyboard")C>0&&L||C<0&&!L||E>0?z(n,H?ee:ie):K(n,H?ee:ie);else{let J=m?E:C;(m||L)&&(J=-J),k.current+=J,_(n,En(k.current/ve,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!d);const{focusableProps:f}=So(Re(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),a);let S=h.useRef(void 0),N=C=>{I(),S.current=C,t.setThumbDragging(n,!0),y(window,"mouseup",w,!1),y(window,"touchend",w,!1),y(window,"pointerup",w,!1)},w=C=>{var E,B;((B=C.pointerId)!==null&&B!==void 0?B:(E=C.changedTouches)===null||E===void 0?void 0:E[0].identifier)===S.current&&(I(),t.setThumbDragging(n,!1),b(window,"mouseup",w,!1),b(window,"touchend",w,!1),b(window,"pointerup",w,!1))},D=t.getThumbPercent(n);(m||g==="rtl")&&(D=1-D);let p=d?{}:Re(V,j,{onMouseDown:C=>{C.button!==0||C.altKey||C.ctrlKey||C.metaKey||N()},onPointerDown:C=>{C.button!==0||C.altKey||C.ctrlKey||C.metaKey||N(C.pointerId)},onTouchStart:C=>{N(C.changedTouches[0].identifier)}});return wc(a,t.defaultValues[n],C=>{t.setThumbValue(n,C)}),{inputProps:Re(f,A,{type:"range",tabIndex:d?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:M,name:u,form:c,disabled:d,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":i||o==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[x["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[x["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:C=>{t.setThumbValue(n,parseFloat(C.target.value))}}),thumbProps:{...p,style:{position:"absolute",[m?"top":"left"]:`${D*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:$,isDragging:t.isThumbDragging(n),isDisabled:d,isFocused:O}}function rx(e){const{ref:t,as:n,state:r,index:o,name:i,trackRef:s,className:a,tooltipProps:l,isVertical:u,showTooltip:c,getTooltipValue:d,formatOptions:m,renderThumb:g,...y}=e,b=n||"div",x=mt(t),v=h.useRef(null),$=$c(m),{thumbProps:A,inputProps:M,isDragging:I,isFocused:O}=nx({index:o,trackRef:s,inputRef:v,name:i,...y},r),{hoverProps:L,isHovered:k}=rn({isDisabled:r.isDisabled}),{focusProps:V,isFocusVisible:j}=yr(),{pressProps:f,isPressed:S}=zn({isDisabled:r.isDisabled});return{Component:b,index:o,showTooltip:c,renderThumb:g,getThumbProps:(p={})=>({ref:x,"data-slot":"thumb","data-hover":fe(k),"data-pressed":fe(S),"data-dragging":fe(I),"data-focused":fe(O),"data-focus-visible":fe(j),"aria-label":p["aria-label"]||`Slider thumb ${o!==void 0?`${o+1}`:""}`,...Ye(A,f,L,y),className:a,...p}),getTooltipProps:()=>{const p=l?.content?l.content:d?r.values.length===1?d(r.values[o??0]):d(r.values,o??0):r.values[o??0],C=$&&typeof p=="number"?$.format(p):p;return{...l,placement:l?.placement?l?.placement:u?"right":"top",content:l?.content?l?.content:C,updatePositionDeps:[I,k,O,j,C],isOpen:l?.isOpen!==void 0?l?.isOpen:k||I||O||j,role:"tooltip","aria-label":`Current value: ${C}`}},getInputProps:(p={})=>({ref:v,...Ye(M,V),...p})}}function ox(e){let[t,n]=Rr(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=h.useCallback(()=>{n(!0)},[n]),o=h.useCallback(()=>{n(!1)},[n]),i=h.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:o,toggle:i}}const ix=1500,Vf=500;let an={},sx=0,Er=!1,kt=null,ln=null;function ax(e={}){let{delay:t=ix,closeDelay:n=Vf}=e,{isOpen:r,open:o,close:i}=ox(e),s=h.useMemo(()=>`${++sx}`,[]),a=h.useRef(null),l=h.useRef(i),u=()=>{an[s]=m},c=()=>{for(let y in an)y!==s&&(an[y](!0),delete an[y])},d=()=>{a.current&&clearTimeout(a.current),a.current=null,c(),u(),Er=!0,o(),kt&&(clearTimeout(kt),kt=null),ln&&(clearTimeout(ln),ln=null)},m=y=>{y||n<=0?(a.current&&clearTimeout(a.current),a.current=null,l.current()):a.current||(a.current=setTimeout(()=>{a.current=null,l.current()},n)),kt&&(clearTimeout(kt),kt=null),Er&&(ln&&clearTimeout(ln),ln=setTimeout(()=>{delete an[s],ln=null,Er=!1},Math.max(Vf,n)))},g=()=>{c(),u(),!r&&!kt&&!Er?kt=setTimeout(()=>{kt=null,Er=!0,d()},t):r||d()};return h.useEffect(()=>{l.current=i},[i]),h.useEffect(()=>()=>{a.current&&clearTimeout(a.current),an[s]&&delete an[s]},[s]),{isOpen:r,open:y=>{!y&&t>0&&!a.current?g():d()},close:m}}function lx(e,t){let n=Xr(e,{labelable:!0}),{hoverProps:r}=rn({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:Re(n,r,{role:"tooltip"})}}function cx(e,t,n){let{isDisabled:r,trigger:o}=e,i=lr(),s=h.useRef(!1),a=h.useRef(!1),l=()=>{(s.current||a.current)&&t.open(a.current)},u=v=>{!s.current&&!a.current&&t.close(v)};h.useEffect(()=>{let v=$=>{n&&n.current&&$.key==="Escape"&&($.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",v,!0),()=>{document.removeEventListener("keydown",v,!0)}},[n,t]);let c=()=>{o!=="focus"&&(Bd()==="pointer"?s.current=!0:s.current=!1,l())},d=()=>{o!=="focus"&&(a.current=!1,s.current=!1,u())},m=()=>{a.current=!1,s.current=!1,u(!0)},g=()=>{Ws()&&(a.current=!0,l())},y=()=>{a.current=!1,s.current=!1,u(!0)},{hoverProps:b}=rn({isDisabled:r,onHoverStart:c,onHoverEnd:d}),{focusableProps:x}=So({isDisabled:r,onFocus:g,onBlur:y},n);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...Re(x,b,{onPointerDown:m,onKeyDown:m,tabIndex:void 0})},tooltipProps:{id:i}}}var ux=e=>{const t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return t?.[e]||{}},dx=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],_f=(e,t)=>{if(t.includes("-")){const[,n]=t.split("-");return`${e}-${n}`}return e},Fo=globalThis?.document?h.useLayoutEffect:h.useEffect,yt=[];function fx(e,t){const{disableOutsideEvents:n=!0,isDismissable:r=!1,isKeyboardDismissDisabled:o=!1,isOpen:i,onClose:s,shouldCloseOnBlur:a,shouldCloseOnInteractOutside:l}=e;h.useEffect(()=>{if(i&&!yt.includes(t))return yt.push(t),()=>{let b=yt.indexOf(t);b>=0&&yt.splice(b,1)}},[i,t]);const u=()=>{yt[yt.length-1]===t&&s&&s()},c=b=>{(!l||l(b.target))&&(yt[yt.length-1]===t&&n&&(b.stopPropagation(),b.preventDefault()),u())},d=b=>{(!l||l(b.target))&&(yt[yt.length-1]===t&&n&&(b.stopPropagation(),b.preventDefault()),u())},m=b=>{b.key==="Escape"&&!o&&!b.nativeEvent.isComposing&&(b.stopPropagation(),b.preventDefault(),u())};x1({isDisabled:!(r&&i),onInteractOutside:r&&i?d:void 0,onInteractOutsideStart:c,ref:t});const{focusWithinProps:g}=ko({isDisabled:!a,onBlurWithin:b=>{!b.relatedTarget||$1(b.relatedTarget)||(!l||l(b.relatedTarget))&&u()}}),y=b=>{b.target===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:m,...g},underlayProps:{onPointerDown:y}}}function px(e){var t,n;const r=$t(),[o,i]=on(e,pl.variantKeys),{ref:s,as:a,isOpen:l,content:u,children:c,defaultOpen:d,onOpenChange:m,isDisabled:g,trigger:y,shouldFlip:b=!0,containerPadding:x=12,placement:v="top",delay:$=0,closeDelay:A=500,showArrow:M=!1,offset:I=7,crossOffset:O=0,isDismissable:L,shouldCloseOnBlur:k=!0,portalContainer:V,isKeyboardDismissDisabled:j=!1,updatePositionDeps:f=[],shouldCloseOnInteractOutside:S,className:N,onClose:w,motionProps:D,classNames:p,...C}=o,E=a||"div",B=(n=(t=e?.disableAnimation)!=null?t:r?.disableAnimation)!=null?n:!1,H=ax({delay:$,closeDelay:A,isDisabled:g,defaultOpen:d,isOpen:l,onOpenChange:oe=>{m?.(oe),oe||w?.()}}),X=h.useRef(null),_=h.useRef(null),z=h.useId(),K=H.isOpen&&!g;h.useImperativeHandle(s,()=>$g(_));const{triggerProps:ie,tooltipProps:ee}=cx({isDisabled:g,trigger:y},H,X),{tooltipProps:re}=lx({isOpen:K,...Ye(o,ee)},H),{overlayProps:we,placement:ve,updatePosition:J}=n1({isOpen:K,targetRef:X,placement:dx(v),overlayRef:_,offset:M?I+3:I,crossOffset:O,shouldFlip:b,containerPadding:x});Fo(()=>{f.length&&J()},f);const{overlayProps:Pe}=fx({isOpen:K,onClose:H.close,isDismissable:L,shouldCloseOnBlur:k,isKeyboardDismissDisabled:j,shouldCloseOnInteractOutside:S},_),xe=h.useMemo(()=>{var oe,Te,Ie;return pl({...i,disableAnimation:B,radius:(oe=e?.radius)!=null?oe:"md",size:(Te=e?.size)!=null?Te:"md",shadow:(Ie=e?.shadow)!=null?Ie:"sm"})},[mn(i),B,e?.radius,e?.size,e?.shadow]),Z=h.useCallback((oe={},Te=null)=>({...Ye(ie,oe),ref:sc(Te,X),"aria-describedby":K?z:void 0}),[ie,K,z,H]),le=h.useCallback(()=>({ref:_,"data-slot":"base","data-open":fe(K),"data-arrow":fe(M),"data-disabled":fe(g),"data-placement":_f(ve||"top",v),...Ye(re,Pe,C),style:Ye(we.style,C.style,o.style),className:xe.base({class:p?.base}),id:z}),[xe,K,M,g,ve,v,re,Pe,C,we,o,z]),me=h.useCallback(()=>({"data-slot":"content","data-open":fe(K),"data-arrow":fe(M),"data-disabled":fe(g),"data-placement":_f(ve||"top",v),className:xe.content({class:Be(p?.content,N)})}),[xe,K,M,g,ve,v,p]);return{Component:E,content:u,children:c,isOpen:K,triggerRef:X,showArrow:M,portalContainer:V,placement:v,disableAnimation:B,isDisabled:g,motionProps:D,getTooltipContentProps:me,getTriggerProps:Z,getTooltipProps:le}}var hx={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.2}},exit:{transform:"scale(0.85)",opacity:0,transition:{type:"easeOut",duration:.15}}}},mx=()=>Promise.resolve().then(()=>Fp).then(e=>e.default),Ff=Ze((e,t)=>{var n;const{Component:r,children:o,content:i,isOpen:s,portalContainer:a,placement:l,disableAnimation:u,motionProps:c,getTriggerProps:d,getTooltipProps:m,getTooltipContentProps:g}=px({...e,ref:t});let y;try{if(h.Children.count(o)!==1)throw new Error;if(!h.isValidElement(o))y=P.jsx("p",{...d(),children:o});else{const I=o,O=(n=I.props.ref)!=null?n:I.ref;y=h.cloneElement(I,d(I.props,O))}}catch{y=P.jsx("span",{}),Vr("Tooltip must have only one child node. Please, check your code.")}const{ref:b,id:x,style:v,...$}=m(),A=P.jsx("div",{ref:b,id:x,style:v,children:P.jsx(nd.div,{animate:"enter",exit:"exit",initial:"exit",variants:hx.scaleSpring,...Ye(c,$),style:{...ux(l)},children:P.jsx(r,{...g(),children:i})},`${x}-tooltip-inner`)},`${x}-tooltip-content`);return P.jsxs(P.Fragment,{children:[y,u?s&&P.jsx(Jd,{portalContainer:a,children:P.jsx("div",{ref:b,id:x,style:v,...$,children:P.jsx(r,{...g(),children:i})})}):P.jsx(Bu,{features:mx,children:P.jsx(ju,{children:s&&P.jsx(Jd,{portalContainer:a,children:A})})})]})});Ff.displayName="HeroUI.Tooltip";var gx=Ff,jf=Ze((e,t)=>{const{Component:n,index:r,renderThumb:o,showTooltip:i,getTooltipProps:s,getThumbProps:a,getInputProps:l}=rx({...e,ref:t}),u={...a(),index:r,children:P.jsx(M1,{children:P.jsx("input",{...l()})})},c=ki({Component:n,props:u,renderCustom:o});return i?P.jsx(gx,{...s(),children:c}):c});jf.displayName="HeroUI.SliderThumb";var bx=jf;const vx=0,yx=100,wx=1;function xx(e){const{isDisabled:t=!1,minValue:n=vx,maxValue:r=yx,numberFormatter:o,step:i=wx,orientation:s="horizontal"}=e;let a=h.useMemo(()=>{let _=(r-n)/10;return _=rr(_,0,_+i,i),Math.max(_,i)},[i,r,n]),l=h.useCallback(_=>_?.map((z,K)=>{let ie=K===0?n:_[K-1],ee=K===_.length-1?r:_[K+1];return rr(z,ie,ee,i)}),[n,r,i]),u=h.useMemo(()=>l(Bf(e.value)),[e.value,l]),c=h.useMemo(()=>{var _;return l((_=Bf(e.defaultValue))!==null&&_!==void 0?_:[n])},[e.defaultValue,n,l]),d=zf(e.value,e.defaultValue,e.onChange),m=zf(e.value,e.defaultValue,e.onChangeEnd);const[g,y]=Rr(u,c,d);let[b]=h.useState(g);const[x,v]=h.useState(new Array(g.length).fill(!1)),$=h.useRef(new Array(g.length).fill(!0)),[A,M]=h.useState(void 0),I=h.useRef(g),O=h.useRef(x);let L=_=>{I.current=_,y(_)},k=_=>{O.current=_,v(_)};function V(_){return(_-n)/(r-n)}function j(_){return _===0?n:g[_-1]}function f(_){return _===g.length-1?r:g[_+1]}function S(_){return $.current[_]}function N(_,z){$.current[_]=z}function w(_,z){if(t||!S(_))return;const K=j(_),ie=f(_);z=rr(z,K,ie,i);let ee=Rf(I.current,_,z);L(ee)}function D(_,z){if(t||!S(_))return;z&&(I.current=g);const K=O.current[_];O.current=Rf(O.current,_,z),k(O.current),m&&K&&!O.current.some(Boolean)&&m(I.current)}function p(_){return o.format(_)}function C(_,z){w(_,B(z))}function E(_){return Math.round((_-n)/i)*i+n}function B(_){const z=_*(r-n)+n;return En(E(z),n,r)}function H(_,z=1){let K=Math.max(z,i);w(_,rr(g[_]+K,n,r,i))}function X(_,z=1){let K=Math.max(z,i);w(_,rr(g[_]-K,n,r,i))}return{values:g,defaultValues:e.defaultValue!==void 0?c:b,getThumbValue:_=>g[_],setThumbValue:w,setThumbPercent:C,isThumbDragging:_=>x[_],setThumbDragging:D,focusedThumb:A,setFocusedThumb:M,getThumbPercent:_=>V(g[_]),getValuePercent:V,getThumbValueLabel:_=>p(g[_]),getFormattedValue:p,getThumbMinValue:j,getThumbMaxValue:f,getPercentValue:B,isThumbEditable:S,setThumbEditable:N,incrementThumb:H,decrementThumb:X,step:i,pageSize:a,orientation:s,isDisabled:t}}function Rf(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function Bf(e){if(e!=null)return Array.isArray(e)?e:[e]}function zf(e,t,n){return r=>{n?.(typeof e=="number"||typeof t=="number"?r[0]:r)}}function Ex(e){var t,n,r,o;const i=$t(),[s,a]=on(e,li.variantKeys),{ref:l,as:u,name:c,label:d,formatOptions:m,value:g,maxValue:y=100,minValue:b=0,step:x=1,showSteps:v=!1,showTooltip:$=!1,orientation:A="horizontal",marks:M=[],startContent:I,endContent:O,fillOffset:L,className:k,classNames:V,renderThumb:j,renderLabel:f,renderValue:S,onChange:N,onChangeEnd:w,getValue:D,getTooltipValue:p,tooltipValueFormatOptions:C=m,tooltipProps:E={},...B}=s,H=b===y;H&&Vr("Min and max values should not be the same. This may cause unexpected behavior.");const X=u||"div",_=typeof X=="string",z=(n=(t=e?.disableAnimation)!=null?t:i?.disableAnimation)!=null?n:!1,K=mt(l),ie=h.useRef(null),ee=$c(m),{direction:re}=sr(),we=h.useCallback(he=>Math.min(Math.max(he,b),y),[b,y]),ve=h.useMemo(()=>{if(H)return b;if(g!==void 0)return Array.isArray(g)?g.map(we):we(g)},[g,we,H,b]),J=xx({...B,value:ve,isDisabled:(r=e?.isDisabled)!=null?r:!1,orientation:A,step:x,minValue:b,maxValue:y,numberFormatter:ee,onChange:N,onChangeEnd:w}),Pe={offset:5,delay:0,size:"sm",showArrow:!0,color:e?.color?e?.color:(o=li.defaultVariants)==null?void 0:o.color,isDisabled:e.isDisabled,...E},{groupProps:xe,trackProps:Z,labelProps:le,outputProps:me}=tx(e,J,ie),{isHovered:oe,hoverProps:Te}=rn({isDisabled:e.isDisabled}),Ie=Be(V?.base,k),ce=A==="vertical",Se=M?.length>0,De=L===void 0?J.values.length===1:!1,ge=h.useMemo(()=>li({...a,hasMarks:Se,disableAnimation:z,hasSingleThumb:De,isVertical:ce}),[mn(a),ce,z,De,Se]),[We,tt]=[J.values.length>1?J.getThumbPercent(0):L!==void 0?J.getValuePercent(L):0,J.getThumbPercent(J.values.length-1)].sort(),ye=J.values.length===1?ee.format(J.values[0]):ee.formatRange(J.values[0],J.values[J.values.length-1]),He=v?Math.floor((y-b)/x)+1:0;return{Component:X,state:J,value:ye,domRef:K,label:d,steps:He,marks:M,startContent:I,endContent:O,getStepProps:he=>{const Ae=J.getValuePercent(he*x+b);return{className:ge.step({class:V?.step}),"data-slot":"step","data-in-range":Ae<=tt&&Ae>=We,style:{[ce?"bottom":re==="rtl"?"right":"left"]:`${Ae*100}%`}}},getBaseProps:(he={})=>({ref:K,"data-orientation":J.orientation,"data-slot":"base","data-hover":oe,className:ge.base({class:Ie}),...Ye(xe,Te,Vt(B,{enabled:_}),Vt(he))}),getValue:D,renderLabel:f,renderValue:S,getTrackWrapperProps:(he={})=>({"data-slot":"track-wrapper",className:ge.trackWrapper({class:V?.trackWrapper}),...he}),getLabelWrapperProps:(he={})=>({className:ge.labelWrapper({class:V?.labelWrapper}),"data-slot":"labelWrapper",...he}),getLabelProps:(he={})=>({"data-slot":"label",className:ge.label({class:V?.label}),children:d,...le,...he}),getValueProps:(he={})=>({"data-slot":"value",className:ge.value({class:V?.value}),children:D&&typeof D=="function"?D(J.values):ye,...me,...he}),getTrackProps:(he={})=>{const Ae=(tt-We)*100;return{ref:ie,"data-slot":"track","data-thumb-hidden":!!e?.hideThumb,"data-vertical":ce,...De?{"data-fill-start":Ae>0,"data-fill-end":Ae==100}:{"data-fill-start":We==0,"data-fill-end":We*100+Ae==100},className:ge.track({class:V?.track}),...Z,...he}},getFillerProps:(he={})=>({"data-slot":"filler",className:ge.filler({class:V?.filler}),...he,style:{...he.style,[ce?"bottom":re==="rtl"?"right":"left"]:`${We*100}%`,...ce?{height:`${(tt-We)*100}%`}:{width:`${(tt-We)*100}%`}}}),getThumbProps:he=>({name:c,index:he,state:J,trackRef:ie,orientation:A,isVertical:ce,tooltipProps:Pe,getTooltipValue:p,showTooltip:$,renderThumb:j,formatOptions:C,className:ge.thumb({class:V?.thumb})}),getMarkProps:he=>{const Ae=J.getValuePercent(he.value);return{className:ge.mark({class:V?.mark}),"data-slot":"mark","data-in-range":Ae<=tt&&Ae>=We,style:{[ce?"bottom":re==="rtl"?"right":"left"]:`${Ae*100}%`},onMouseDown:Ot=>Ot.stopPropagation(),onPointerDown:Ot=>Ot.stopPropagation(),onClick:Ot=>{if(Ot.stopPropagation(),!H)if(J.values.length===1)J.setThumbPercent(0,Ae);else{const Yn=J.values[0],Sr=J.values[1];he.value<Yn?J.setThumbPercent(0,Ae):he.value>Sr?J.setThumbPercent(1,Ae):Math.abs(he.value-Yn)<Math.abs(he.value-Sr)?J.setThumbPercent(0,Ae):J.setThumbPercent(1,Ae)}}}},getStartContentProps:(he={})=>({"data-slot":"startContent",className:ge.startContent({class:V?.startContent}),...he}),getEndContentProps:(he={})=>({"data-slot":"endContent",className:ge.endContent({class:V?.endContent}),...he})}}var Uf=Ze((e,t)=>{const{Component:n,state:r,label:o,steps:i,marks:s,startContent:a,endContent:l,getStepProps:u,getBaseProps:c,renderValue:d,renderLabel:m,getTrackWrapperProps:g,getLabelWrapperProps:y,getLabelProps:b,getValueProps:x,getTrackProps:v,getFillerProps:$,getThumbProps:A,getMarkProps:M,getStartContentProps:I,getEndContentProps:O}=Ex({...e,ref:t});return P.jsxs(n,{...c(),children:[o&&P.jsxs("div",{...y(),children:[ki({Component:"label",props:b(),renderCustom:m}),ki({Component:"output",props:x(),renderCustom:d})]}),P.jsxs("div",{...g(),children:[a&&P.jsx("div",{...I(),children:a}),P.jsxs("div",{...v(),children:[P.jsx("div",{...$()}),Number.isFinite(i)&&Array.from({length:i},(L,k)=>P.jsx("div",{...u(k)},k)),r.values.map((L,k)=>P.jsx(bx,{...A(k)},k)),s?.length>0&&s.map((L,k)=>P.jsx("div",{...M(L),children:L.label},k))]}),l&&P.jsx("div",{...O(),children:l})]})]})});Uf.displayName="HeroUI.Slider";var Tx=Uf;function Kf({min:e,max:t,step:n=1,unit:r="",value:o,onChange:i}){const s=a=>{if(Array.isArray(a)){const l=[a[0],a[1]];i(l)}};return P.jsx(Tx,{className:"w-full",size:"sm",step:n,hideValue:!0,label:`${r} ${e} - ${r} ${t}`,minValue:e,maxValue:t,value:o||[e,t],onChange:s,marks:[{value:e,label:e.toString()},{value:t,label:t.toString()}]})}const ma={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Hf={...ma,customError:!0,valid:!1},qn={isInvalid:!1,validationDetails:ma,validationErrors:[]},Gf=h.createContext({}),jo="__formValidationState"+Date.now();function ga(e){if(e[jo]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}=e[jo];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}}return $x(e)}function $x(e){let{isInvalid:t,validationState:n,name:r,value:o,builtinValidation:i,validate:s,validationBehavior:a="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:Hf}:null,u=h.useMemo(()=>{if(!s||o==null)return null;let j=Cx(s,o);return Wf(j)},[s,o]);i?.validationDetails.valid&&(i=void 0);let c=h.useContext(Gf),d=h.useMemo(()=>r?Array.isArray(r)?r.flatMap(j=>ba(c[j])):ba(c[r]):[],[c,r]),[m,g]=h.useState(c),[y,b]=h.useState(!1);c!==m&&(g(c),b(!1));let x=h.useMemo(()=>Wf(y?[]:d),[y,d]),v=h.useRef(qn),[$,A]=h.useState(qn),M=h.useRef(qn),I=()=>{if(!O)return;L(!1);let j=u||i||v.current;va(j,M.current)||(M.current=j,A(j))},[O,L]=h.useState(!1);return h.useEffect(I),{realtimeValidation:l||x||u||i||qn,displayValidation:a==="native"?l||x||$:l||x||u||i||$,updateValidation(j){a==="aria"&&!va($,j)?A(j):v.current=j},resetValidation(){let j=qn;va(j,M.current)||(M.current=j,A(j)),a==="native"&&L(!1),b(!0)},commitValidation(){a==="native"&&L(!0),b(!0)}}}function ba(e){return e?Array.isArray(e)?e:[e]:[]}function Cx(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return ba(n)}return[]}function Wf(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Hf}:null}function va(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function Px(...e){let t=new Set,n=!1,r={...ma};for(let s of e){var o,i;for(let a of s.validationErrors)t.add(a);n||(n=s.isInvalid);for(let a in r)(o=r)[i=a]||(o[i]=s.validationDetails[a])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function Sx(e,t,n){let{validationBehavior:r,focus:o}=e;gt(()=>{if(r==="native"&&n?.current&&!n.current.disabled){let u=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(u),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(Ix(n.current))}});let i=h.useRef(!1),s=ze(()=>{i.current||t.resetValidation()}),a=ze(u=>{var c;t.displayValidation.isInvalid||t.commitValidation();let d=n==null||(c=n.current)===null||c===void 0?void 0:c.form;if(!u.defaultPrevented&&n&&d&&Ax(d)===n.current){var m;o?o():(m=n.current)===null||m===void 0||m.focus(),zd("keyboard")}u.preventDefault()}),l=ze(()=>{t.commitValidation()});h.useEffect(()=>{let u=n?.current;if(!u)return;let c=u.form,d=c?.reset;return c&&(c.reset=()=>{i.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,d?.call(c),i.current=!1}),u.addEventListener("invalid",a),u.addEventListener("change",l),c?.addEventListener("reset",s),()=>{u.removeEventListener("invalid",a),u.removeEventListener("change",l),c?.removeEventListener("reset",s),c&&(c.reset=d)}},[n,a,l,s,r])}function kx(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function Ix(e){return{isInvalid:!e.validity.valid,validationDetails:kx(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function Ax(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function Ox(e,t,n){let{isDisabled:r=!1,isReadOnly:o=!1,value:i,name:s,form:a,children:l,"aria-label":u,"aria-labelledby":c,validationState:d="valid",isInvalid:m,onPressStart:g,onPressEnd:y,onPressChange:b,onPress:x,onPressUp:v,onClick:$}=e,A=N=>{N.stopPropagation(),t.setSelected(N.target.checked)},M=l!=null,I=u!=null||c!=null;!M&&!I&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:O,isPressed:L}=zn({onPressStart:g,onPressEnd:y,onPressChange:b,onPress:x,onPressUp:v,onClick:$,isDisabled:r}),{pressProps:k,isPressed:V}=zn({onPressStart:g,onPressEnd:y,onPressChange:b,onPressUp:v,onClick:$,onPress(N){var w;x?.(N),t.toggle(),(w=n.current)===null||w===void 0||w.focus()},isDisabled:r||o}),{focusableProps:j}=So(e,n),f=Re(O,j),S=Xr(e,{labelable:!0});return wc(n,t.defaultSelected,t.setSelected),{labelProps:Re(k,{onClick:N=>N.preventDefault()}),inputProps:Re(S,{"aria-invalid":m||d==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:A,disabled:r,...i==null?{}:{value:i},name:s,form:a,type:"checkbox",...f}),isSelected:t.isSelected,isPressed:L||V,isDisabled:r,isReadOnly:o,isInvalid:m||d==="invalid"}}function qf(e,t,n){let r=ga({...e,value:t.isSelected}),{isInvalid:o,validationErrors:i,validationDetails:s}=r.displayValidation,{labelProps:a,inputProps:l,isSelected:u,isPressed:c,isDisabled:d,isReadOnly:m}=Ox({...e,isInvalid:o},t,n);Sx(e,r,n);let{isIndeterminate:g,isRequired:y,validationBehavior:b="aria"}=e;h.useEffect(()=>{n.current&&(n.current.indeterminate=!!g)});let{pressProps:x}=zn({isDisabled:d||m,onPress(){let{[jo]:v}=e,{commitValidation:$}=v||r;$()}});return{labelProps:Re(a,x),inputProps:{...l,checked:u,"aria-required":y&&b==="aria"||void 0,required:y&&b==="native"},isSelected:u,isPressed:c,isDisabled:d,isReadOnly:m,isInvalid:o,validationErrors:i,validationDetails:s}}const Yf=new WeakMap;function Mx(e,t){let{isDisabled:n,name:r,form:o,validationBehavior:i="aria"}=e,{isInvalid:s,validationErrors:a,validationDetails:l}=t.displayValidation,{labelProps:u,fieldProps:c,descriptionProps:d,errorMessageProps:m}=ex({...e,labelElementType:"span",isInvalid:s,errorMessage:e.errorMessage||a});Yf.set(t,{name:r,form:o,descriptionId:d.id,errorMessageId:m.id,validationBehavior:i});let g=Xr(e,{labelable:!0}),{focusWithinProps:y}=ko({onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:Re(g,{role:"group","aria-disabled":n||void 0,...c,...y}),labelProps:u,descriptionProps:d,errorMessageProps:m,isInvalid:s,validationErrors:a,validationDetails:l}}function Xf(e={}){let{isReadOnly:t}=e,[n,r]=Rr(e.isSelected,e.defaultSelected||!1,e.onChange),[o]=h.useState(n);function i(l){t||r(l)}function s(){t||r(!n)}var a;return{isSelected:n,defaultSelected:(a=e.defaultSelected)!==null&&a!==void 0?a:o,setSelected:i,toggle:s}}function Nx(e,t,n){const r=Xf({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),defaultSelected:t.defaultValue.includes(e.value),onChange(v){v?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(v)}});let{name:o,form:i,descriptionId:s,errorMessageId:a,validationBehavior:l}=Yf.get(t);var u;l=(u=e.validationBehavior)!==null&&u!==void 0?u:l;let{realtimeValidation:c}=ga({...e,value:r.isSelected,name:void 0,validationBehavior:"aria"}),d=h.useRef(qn),m=()=>{t.setInvalid(e.value,c.isInvalid?c:d.current)};h.useEffect(m);let g=t.realtimeValidation.isInvalid?t.realtimeValidation:c,y=l==="native"?t.displayValidation:g;var b;let x=qf({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||o,form:e.form||i,isRequired:(b=e.isRequired)!==null&&b!==void 0?b:t.isRequired,validationBehavior:l,[jo]:{realtimeValidation:g,displayValidation:y,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(v){d.current=v,m()}}},r,n);return{...x,inputProps:{...x.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?a:null,s].filter(Boolean).join(" ")||void 0}}}function Dx(e={}){let[t,n]=Rr(e.value,e.defaultValue||[],e.onChange),[r]=h.useState(t),o=!!e.isRequired&&t.length===0,i=h.useRef(new Map),s=ga({...e,value:t}),a=s.displayValidation.isInvalid;var l,u;return{...s,value:t,defaultValue:(l=e.defaultValue)!==null&&l!==void 0?l:r,setValue(d){e.isReadOnly||e.isDisabled||n(d)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected(d){return t.includes(d)},addValue(d){e.isReadOnly||e.isDisabled||t.includes(d)||(t=t.concat(d),n(t))},removeValue(d){e.isReadOnly||e.isDisabled||t.includes(d)&&n(t.filter(m=>m!==d))},toggleValue(d){e.isReadOnly||e.isDisabled||(t.includes(d)?n(t.filter(m=>m!==d)):n(t.concat(d)))},setInvalid(d,m){let g=new Map(i.current);m.isInvalid?g.set(d,m):g.delete(d),i.current=g,s.updateValidation(Px(...g.values()))},validationState:(u=e.validationState)!==null&&u!==void 0?u:a?"invalid":null,isInvalid:a,isRequired:o}}var Jf=Symbol("default");function Lx(e){const t=h.useRef(null),n=h.useRef(void 0),r=h.useCallback(o=>{if(typeof e=="function"){const i=e,s=i(o);return()=>{typeof s=="function"?s():i(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return h.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,n.current&&(n.current(),n.current=void 0),o!=null&&(n.current=r(o))}}),[r])}function ya(e,t){let n=h.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=new Intl.ListFormat().format(Object.keys(n.slots).map(i=>`"${i}"`));if(!t&&!n.slots[Jf])throw new Error(`A slot prop is required. Valid slot names are ${r}.`);let o=t||Jf;if(!n.slots[o])throw new Error(`Invalid slot "${t}". Valid slot names are ${r}.`);return n.slots[o]}return n}function Vx(e,t,n){let r=ya(n,e.slot)||{},{ref:o,...i}=r,s=Lx(h.useMemo(()=>cm(t,o),[t,o])),a=Ye(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?a.style=l=>{let u=typeof i.style=="function"?i.style(l):i.style,c={...l.defaultStyle,...u},d=typeof e.style=="function"?e.style({...l,defaultStyle:c}):e.style;return{...c,...d}}:a.style={...i.style,...e.style}),[a,s]}var Ro=h.createContext(null);h.forwardRef(function(t,n){[t,n]=Vx(t,n,Ro);let{validationErrors:r,validationBehavior:o="native",children:i,className:s,...a}=t;const l=h.useMemo(()=>em({className:s}),[s]);return P.jsx("form",{noValidate:o!=="native",...a,ref:n,className:l,children:P.jsx(Ro.Provider,{value:{...t,validationBehavior:o},children:P.jsx(Gf.Provider,{value:r??{},children:i})})})});function _x(e){var t,n;const r=$t(),{validationBehavior:o}=ya(Ro)||{},{as:i,ref:s,classNames:a,children:l,label:u,radius:c,value:d,name:m,defaultValue:g,isInvalid:y,validationState:b,size:x="md",color:v="primary",orientation:$="vertical",lineThrough:A=!1,isDisabled:M=!1,validationBehavior:I=(t=o??r?.validationBehavior)!=null?t:"native",disableAnimation:O=(n=r?.disableAnimation)!=null?n:!1,isReadOnly:L,isRequired:k,onValueChange:V,description:j,errorMessage:f,className:S,...N}=e,w=i||"div",D=typeof w=="string",p=mt(s),C=h.useMemo(()=>({...N,value:d,name:m,"aria-label":yl(N["aria-label"],u),defaultValue:g,isRequired:k,isReadOnly:L,orientation:$,validationBehavior:I,isInvalid:b==="invalid"||y,onChange:gn(e.onChange,V)}),[d,m,u,g,k,L,$,V,y,b,I,N["aria-label"],N]),E=Dx(C),{labelProps:B,groupProps:H,descriptionProps:X,errorMessageProps:_,validationErrors:z,validationDetails:K}=Mx(C,E),ie=h.useMemo(()=>({size:x,color:v,radius:c,lineThrough:A,isInvalid:E.isInvalid,isDisabled:M,disableAnimation:O,validationBehavior:I,groupState:E}),[x,v,c,A,M,O,I,E.value,E.isDisabled,E.isReadOnly,E.isInvalid,E.isSelected]),ee=h.useMemo(()=>rm({isRequired:k,isInvalid:E.isInvalid,disableAnimation:O}),[k,E.isInvalid,,O]),re=Be(a?.base,S),we=h.useCallback(()=>({ref:p,className:ee.base({class:re}),...Ye(H,Vt(N,{enabled:D}))}),[ee,p,re,H,N]),ve=h.useCallback(()=>({className:ee.label({class:a?.label}),...B}),[ee,B,a?.label]),J=h.useCallback(()=>({className:ee.wrapper({class:a?.wrapper}),role:"presentation","data-orientation":$}),[ee,$,a?.wrapper]),Pe=h.useCallback((Z={})=>({...Z,...X,className:ee.description({class:Be(a?.description,Z?.className)})}),[ee,X,a?.description]),xe=h.useCallback((Z={})=>({...Z,..._,className:ee.errorMessage({class:Be(a?.errorMessage,Z?.className)})}),[ee,_,a?.errorMessage]);return{Component:w,children:l,label:u,context:ie,description:j,isInvalid:E.isInvalid,errorMessage:typeof f=="function"?f({isInvalid:E.isInvalid,validationErrors:z,validationDetails:K}):f||z?.join(" "),getGroupProps:we,getLabelProps:ve,getWrapperProps:J,getDescriptionProps:Pe,getErrorMessageProps:xe}}var[Fx,jx]=qr({name:"CheckboxGroupContext",strict:!1}),Zf=Ze((e,t)=>{const{children:n,context:r,label:o,description:i,isInvalid:s,errorMessage:a,getGroupProps:l,getLabelProps:u,getWrapperProps:c,getDescriptionProps:d,getErrorMessageProps:m}=_x({...e,ref:t});return P.jsxs("div",{...l(),children:[o&&P.jsx("span",{...u(),children:o}),P.jsx("div",{...c(),children:P.jsx(Fx,{value:r,children:n})}),s&&a?P.jsx("div",{...m(),children:a}):i?P.jsx("div",{...d(),children:i}):null]})});Zf.displayName="HeroUI.CheckboxGroup";var Rx=Zf;function Bx(e){const{isSelected:t,disableAnimation:n,...r}=e;return P.jsx("svg",{"aria-hidden":"true",fill:"none",role:"presentation",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,style:!n&&t?{transition:"stroke-dashoffset 250ms linear 0.2s"}:{},viewBox:"0 0 17 18",...r,children:P.jsx("polyline",{points:"1 9 7 14 15 4"})})}function zx(e){const{isSelected:t,disableAnimation:n,...r}=e;return P.jsx("svg",{stroke:"currentColor",strokeWidth:3,viewBox:"0 0 24 24",...r,children:P.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function Ux(e){const{isIndeterminate:t,...n}=e,r=t?zx:Bx;return P.jsx(r,{...n})}function Kx(e,t=[]){const n=h.useRef(e);return Fo(()=>{n.current=e}),h.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function Hx(e={}){var t,n,r,o,i,s,a,l;const u=$t(),c=jx(),{validationBehavior:d}=ya(Ro)||{},m=!!c,{as:g,ref:y,value:b="",children:x,icon:v,name:$,isRequired:A,isReadOnly:M=!1,autoFocus:I=!1,isSelected:O,size:L=(t=c?.size)!=null?t:"md",color:k=(n=c?.color)!=null?n:"primary",radius:V=c?.radius,lineThrough:j=(r=c?.lineThrough)!=null?r:!1,isDisabled:f=(o=c?.isDisabled)!=null?o:!1,disableAnimation:S=(s=(i=c?.disableAnimation)!=null?i:u?.disableAnimation)!=null?s:!1,validationState:N,isInvalid:w=N?N==="invalid":(a=c?.isInvalid)!=null?a:!1,isIndeterminate:D=!1,validationBehavior:p=m?c.validationBehavior:(l=d??u?.validationBehavior)!=null?l:"native",defaultSelected:C,classNames:E,className:B,onValueChange:H,validate:X,..._}=e;c&&om&&(O&&Vr("The Checkbox.Group is being used, `isSelected` will be ignored. Use the `value` of the Checkbox.Group instead.","Checkbox"),C&&Vr("The Checkbox.Group is being used, `defaultSelected` will be ignored. Use the `defaultValue` of the Checkbox.Group instead.","Checkbox"));const z=g||"label",K=h.useRef(null),ie=h.useRef(null);let ee=e.onChange;m&&(ee=gn(()=>{c.groupState.resetValidation()},ee));const re=h.useId(),we=h.useMemo(()=>({name:$,value:b,children:x,autoFocus:I,defaultSelected:C,isIndeterminate:D,isRequired:A,isInvalid:w,isSelected:O,isDisabled:f,isReadOnly:M,"aria-label":yl(_["aria-label"],x),"aria-labelledby":_["aria-labelledby"]||re,onChange:H}),[$,b,x,I,C,D,A,w,O,f,M,_["aria-label"],_["aria-labelledby"],re,H]),ve=Xf(we),J={isInvalid:w,isRequired:A,validate:X,validationState:N,validationBehavior:p},{inputProps:Pe,isSelected:xe,isDisabled:Z,isReadOnly:le,isPressed:me,isInvalid:oe}=m?Nx({...we,...J},c.groupState,ie):qf({...we,...J},ve,ie),Te=Z||le,Ie=N==="invalid"||w||oe,ce=Te?!1:me,{hoverProps:Se,isHovered:De}=rn({isDisabled:Pe.disabled}),{focusProps:ge,isFocused:We,isFocusVisible:tt}=yr({autoFocus:Pe.autoFocus}),ye=h.useMemo(()=>nm({color:k,size:L,radius:V,isInvalid:Ie,lineThrough:j,isDisabled:Z,disableAnimation:S}),[k,L,V,Ie,j,Z,S]);Fo(()=>{if(!ie.current)return;const ut=!!ie.current.checked;ve.setSelected(ut)},[ie.current]);const He=Kx(ee),xt=h.useCallback(ut=>{if(le||Z){ut.preventDefault();return}He?.(ut)},[le,Z,He]),cn=Be(E?.base,B),At=h.useCallback(()=>({ref:K,className:ye.base({class:cn}),"data-disabled":fe(Z),"data-selected":fe(xe||D),"data-invalid":fe(Ie),"data-hover":fe(De),"data-focus":fe(We),"data-pressed":fe(ce),"data-readonly":fe(Pe.readOnly),"data-focus-visible":fe(tt),"data-indeterminate":fe(D),...Ye(Se,_)}),[ye,cn,Z,xe,D,Ie,De,We,ce,Pe.readOnly,tt,Se,_]),Pr=h.useCallback((ut={})=>({...ut,"aria-hidden":!0,className:Be(ye.wrapper({class:Be(E?.wrapper,ut?.className)}))}),[ye,E?.wrapper]),Ho=h.useCallback(()=>({ref:sc(ie,y),...Ye(Pe,ge),className:ye.hiddenInput({class:E?.hiddenInput}),onChange:gn(Pe.onChange,xt)}),[Pe,ge,xt,E?.hiddenInput]),Go=h.useCallback(()=>({id:re,className:ye.label({class:E?.label})}),[ye,E?.label,Z,xe,Ie]),Wo=h.useCallback(()=>({isSelected:xe,isIndeterminate:D,disableAnimation:S,className:ye.icon({class:E?.icon})}),[ye,E?.icon,xe,D,S]);return{Component:z,icon:v,children:x,isSelected:xe,isDisabled:Z,isInvalid:Ie,isFocused:We,isHovered:De,isFocusVisible:tt,getBaseProps:At,getWrapperProps:Pr,getInputProps:Ho,getLabelProps:Go,getIconProps:Wo}}var Qf=Ze((e,t)=>{const{Component:n,children:r,icon:o=P.jsx(Ux,{}),getBaseProps:i,getWrapperProps:s,getInputProps:a,getIconProps:l,getLabelProps:u}=Hx({...e,ref:t}),c=typeof o=="function"?o(l()):h.cloneElement(o,l());return P.jsxs(n,{...i(),children:[P.jsx("input",{...a()}),P.jsx("span",{...s(),children:c}),r&&P.jsx("span",{...u(),children:r})]})});Qf.displayName="HeroUI.Checkbox";var Gx=Qf;function ep({options:e,values:t=[],onChange:n}){return P.jsx(Rx,{size:"sm",radius:"none",value:t,onValueChange:n,children:e.map(r=>P.jsx(Gx,{color:"primary",value:r,classNames:{base:"max-w-full",label:"text-sm text-foreground",wrapper:"before:border-secondary-200 before:border-1 group-data-[hover=true]:before:bg-secondary-50 after:bg-transparent",icon:"text-primary-500"},children:r},r))})}function tp({filters:e,activeFilters:t,onFilterChange:n,onClearAll:r,className:o}){const i=t.length>0;function s(a,l){n({id:a,value:l})}return P.jsxs("div",{className:ci("w-60 shrink-0",o),children:[i&&P.jsx(z1,{size:"sm",color:"primary",underline:"always",onPress:r,className:"mb-4 cursor-pointer text-primary-500",children:"Wis alle filters"}),P.jsx("div",{className:"flex flex-col gap-6",children:e.map(a=>P.jsxs("div",{children:[P.jsx("div",{className:"font-bold text-base mb-1",children:a.label}),P.jsxs("div",{className:"flex flex-col gap-3",children:[a.type==="range"&&P.jsx(Kf,{id:a.id,min:a.min||0,max:a.max||100,step:a.step,unit:a.unit,value:Zs(t,a.id),onChange:l=>s(a.id,l)}),a.type==="select"&&a.options&&P.jsx(ep,{id:a.id,options:a.options,values:Zs(t,a.id),onChange:l=>s(a.id,l)})]})]},a.id))})]})}var[OT,Wx]=qr({name:"ButtonGroupContext",strict:!1});function np(e,t){let{elementType:n="button",isDisabled:r,onPress:o,onPressStart:i,onPressEnd:s,onPressUp:a,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:m,target:g,rel:y,type:b="button",allowTextSelectionOnPress:x}=e,v;n==="button"?v={type:b,disabled:r}:v={role:"button",href:n==="a"&&!r?m:void 0,target:n==="a"?g:void 0,type:n==="input"?b:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?y:void 0};let{pressProps:$,isPressed:A}=zn({onClick:d,onPressStart:i,onPressEnd:s,onPressUp:a,onPressChange:l,onPress:o,isDisabled:r,preventFocusOnPress:u,allowTextSelectionOnPress:x,ref:t}),{focusableProps:M}=So(e,t);c&&(M.tabIndex=r?-1:M.tabIndex);let I=Re(M,$,Xr(e,{labelable:!0}));return{isPressed:A,buttonProps:Re(v,I,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}var qx=()=>Promise.resolve().then(()=>Fp).then(e=>e.default),rp=e=>{const{ripples:t=[],motionProps:n,color:r="currentColor",style:o,onClear:i}=e;return P.jsx(P.Fragment,{children:t.map(s=>{const a=am(.01*s.size,.2,s.size>100?.75:.5);return P.jsx(Bu,{features:qx,children:P.jsx(ju,{mode:"popLayout",children:P.jsx(nd.span,{animate:{transform:"scale(2)",opacity:0},className:"heroui-ripple",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:r,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",overflow:"hidden",inset:0,zIndex:0,top:s.y,left:s.x,width:`${s.size}px`,height:`${s.size}px`,...o},transition:{duration:a},onAnimationComplete:()=>{i(s.key)},...n})})},s.key)})})};rp.displayName="HeroUI.Ripple";var op=rp;function ip(e={}){const[t,n]=h.useState([]),r=h.useCallback(i=>{const s=i.target,a=Math.max(s.clientWidth,s.clientHeight);n(l=>[...l,{key:sm(l.length.toString()),size:a,x:i.x-a/2,y:i.y-a/2}])},[]),o=h.useCallback(i=>{n(s=>s.filter(a=>a.key!==i))},[]);return{ripples:t,onClear:o,onPress:r,...e}}function Yx(e){var t,n,r,o,i,s,a,l,u;const c=Wx(),d=$t(),m=!!c,{ref:g,as:y,children:b,startContent:x,endContent:v,autoFocus:$,className:A,spinner:M,isLoading:I=!1,disableRipple:O=!1,fullWidth:L=(t=c?.fullWidth)!=null?t:!1,radius:k=c?.radius,size:V=(n=c?.size)!=null?n:"md",color:j=(r=c?.color)!=null?r:"default",variant:f=(o=c?.variant)!=null?o:"solid",disableAnimation:S=(s=(i=c?.disableAnimation)!=null?i:d?.disableAnimation)!=null?s:!1,isDisabled:N=(a=c?.isDisabled)!=null?a:!1,isIconOnly:w=(l=c?.isIconOnly)!=null?l:!1,spinnerPlacement:D="start",onPress:p,onClick:C,...E}=e,B=y||"button",H=typeof B=="string",X=mt(g),_=(u=O||d?.disableRipple)!=null?u:S,{isFocusVisible:z,isFocused:K,focusProps:ie}=yr({autoFocus:$}),ee=N||I,re=h.useMemo(()=>tm({size:V,color:j,variant:f,radius:k,fullWidth:L,isDisabled:ee,isInGroup:m,disableAnimation:S,isIconOnly:w,className:A}),[V,j,f,k,L,ee,m,w,S,A]),{onPress:we,onClear:ve,ripples:J}=ip(),Pe=h.useCallback(ge=>{_||ee||S||X.current&&we(ge)},[_,ee,S,X,we]),{buttonProps:xe,isPressed:Z}=np({elementType:y,isDisabled:ee,onPress:gn(p,Pe),onClick:C,...E},X),{isHovered:le,hoverProps:me}=rn({isDisabled:ee}),oe=h.useCallback((ge={})=>({"data-disabled":fe(ee),"data-focus":fe(K),"data-pressed":fe(Z),"data-focus-visible":fe(z),"data-hover":fe(le),"data-loading":fe(I),...Ye(xe,ie,me,Vt(E,{enabled:H}),Vt(ge)),className:re}),[I,ee,K,Z,H,z,le,xe,ie,me,E,re]),Te=ge=>h.isValidElement(ge)?h.cloneElement(ge,{"aria-hidden":!0,focusable:!1}):null,Ie=Te(x),ce=Te(v),Se=h.useMemo(()=>({sm:"sm",md:"sm",lg:"md"})[V],[V]),De=h.useCallback(()=>({ripples:J,onClear:ve}),[J,ve]);return{Component:B,children:b,domRef:X,spinner:M,styles:re,startContent:Ie,endContent:ce,isLoading:I,spinnerPlacement:D,spinnerSize:Se,disableRipple:_,getButtonProps:oe,getRippleProps:De,isIconOnly:w}}function Xx(e){var t,n;const[r,o]=on(e,fl.variantKeys),i=$t(),s=(n=(t=e?.variant)!=null?t:i?.spinnerVariant)!=null?n:"default",{children:a,className:l,classNames:u,label:c,...d}=r,m=h.useMemo(()=>fl({...o}),[mn(o)]),g=Be(u?.base,l),y=c||a,b=h.useMemo(()=>y&&typeof y=="string"?y:d["aria-label"]?"":"Loading",[a,y,d["aria-label"]]),x=h.useCallback(()=>({"aria-label":b,className:m.base({class:g}),...d}),[b,m,g,d]);return{label:y,slots:m,classNames:u,variant:s,getSpinnerProps:x}}var sp=Ze((e,t)=>{const{slots:n,classNames:r,label:o,variant:i,getSpinnerProps:s}=Xx({...e});return i==="wave"||i==="dots"?P.jsxs("div",{ref:t,...s(),children:[P.jsx("div",{className:n.wrapper({class:r?.wrapper}),children:[...new Array(3)].map((a,l)=>P.jsx("i",{className:n.dots({class:r?.dots}),style:{"--dot-index":l}},`dot-${l}`))}),o&&P.jsx("span",{className:n.label({class:r?.label}),children:o})]}):i==="simple"?P.jsxs("div",{ref:t,...s(),children:[P.jsxs("svg",{className:n.wrapper({class:r?.wrapper}),fill:"none",viewBox:"0 0 24 24",children:[P.jsx("circle",{className:n.circle1({class:r?.circle1}),cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),P.jsx("path",{className:n.circle2({class:r?.circle2}),d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",fill:"currentColor"})]}),o&&P.jsx("span",{className:n.label({class:r?.label}),children:o})]}):i==="spinner"?P.jsxs("div",{ref:t,...s(),children:[P.jsx("div",{className:n.wrapper({class:r?.wrapper}),children:[...new Array(12)].map((a,l)=>P.jsx("i",{className:n.spinnerBars({class:r?.spinnerBars}),style:{"--bar-index":l}},`star-${l}`))}),o&&P.jsx("span",{className:n.label({class:r?.label}),children:o})]}):P.jsxs("div",{ref:t,...s(),children:[P.jsxs("div",{className:n.wrapper({class:r?.wrapper}),children:[P.jsx("i",{className:n.circle1({class:r?.circle1})}),P.jsx("i",{className:n.circle2({class:r?.circle2})})]}),o&&P.jsx("span",{className:n.label({class:r?.label}),children:o})]})});sp.displayName="HeroUI.Spinner";var Jx=sp,ap=Ze((e,t)=>{const{Component:n,domRef:r,children:o,spinnerSize:i,spinner:s=P.jsx(Jx,{color:"current",size:i}),spinnerPlacement:a,startContent:l,endContent:u,isLoading:c,disableRipple:d,getButtonProps:m,getRippleProps:g,isIconOnly:y}=Yx({...e,ref:t});return P.jsxs(n,{ref:r,...m(),children:[l,c&&a==="start"&&s,c&&y?null:o,c&&a==="end"&&s,u,!d&&P.jsx(op,{...g()})]})});ap.displayName="HeroUI.Button";var Zx=ap,[Qx,wa]=qr({name:"CardContext",strict:!0,errorMessage:"useCardContext: `context` is undefined. Seems you forgot to wrap component within <Card />"}),lp=Ze((e,t)=>{var n;const{as:r,className:o,children:i,...s}=e,a=r||"div",l=mt(t),{slots:u,classNames:c}=wa(),d=Be(c?.body,o);return P.jsx(a,{ref:l,className:(n=u.body)==null?void 0:n.call(u,{class:d}),...s,children:i})});lp.displayName="HeroUI.CardBody";var eE=lp,cp=Ze((e,t)=>{var n;const{as:r,className:o,children:i,...s}=e,a=r||"div",l=mt(t),{slots:u,classNames:c}=wa(),d=Be(c?.footer,o);return P.jsx(a,{ref:l,className:(n=u.footer)==null?void 0:n.call(u,{class:d}),...s,children:i})});cp.displayName="HeroUI.CardFooter";var tE=cp,up=Ze((e,t)=>{var n;const{as:r,className:o,children:i,...s}=e,a=r||"div",l=mt(t),{slots:u,classNames:c}=wa(),d=Be(c?.header,o);return P.jsx(a,{ref:l,className:(n=u.header)==null?void 0:n.call(u,{class:d}),...s,children:i})});up.displayName="HeroUI.CardHeader";var nE=up;function rE(e){var t,n,r,o;const i=$t(),[s,a]=on(e,gl.variantKeys),{ref:l,as:u,children:c,onClick:d,onPress:m,autoFocus:g,className:y,classNames:b,allowTextSelectionOnPress:x=!0,...v}=s,$=mt(l),A=u||(e.isPressable?"button":"div"),M=typeof A=="string",I=(n=(t=e.disableAnimation)!=null?t:i?.disableAnimation)!=null?n:!1,O=(o=(r=e.disableRipple)!=null?r:i?.disableRipple)!=null?o:!1,L=Be(b?.base,y),{onClear:k,onPress:V,ripples:j}=ip(),f=h.useCallback(z=>{O||I||$.current&&V(z)},[O,I,$,V]),{buttonProps:S,isPressed:N}=np({onPress:gn(m,f),elementType:u,isDisabled:!e.isPressable,onClick:d,allowTextSelectionOnPress:x,...v},$),{hoverProps:w,isHovered:D}=rn({isDisabled:!e.isHoverable,...v}),{isFocusVisible:p,isFocused:C,focusProps:E}=yr({autoFocus:g}),B=h.useMemo(()=>gl({...a,disableAnimation:I}),[mn(a),I]),H=h.useMemo(()=>({slots:B,classNames:b,disableAnimation:I,isDisabled:e.isDisabled,isFooterBlurred:e.isFooterBlurred,fullWidth:e.fullWidth}),[B,b,e.isDisabled,e.isFooterBlurred,I,e.fullWidth]),X=h.useCallback((z={})=>({ref:$,className:B.base({class:L}),tabIndex:e.isPressable?0:-1,"data-hover":fe(D),"data-pressed":fe(N),"data-focus":fe(C),"data-focus-visible":fe(p),"data-disabled":fe(e.isDisabled),...Ye(e.isPressable?{...S,...E,role:"button"}:{},e.isHoverable?w:{},Vt(v,{enabled:M}),Vt(z))}),[$,B,L,M,e.isPressable,e.isHoverable,e.isDisabled,D,N,p,S,E,w,v]),_=h.useCallback(()=>({ripples:j,onClear:k}),[j,k]);return{context:H,domRef:$,Component:A,classNames:b,children:c,isHovered:D,isPressed:N,disableAnimation:I,isPressable:e.isPressable,isHoverable:e.isHoverable,disableRipple:O,handlePress:f,isFocusVisible:p,getCardProps:X,getRippleProps:_}}var dp=Ze((e,t)=>{const{children:n,context:r,Component:o,isPressable:i,disableAnimation:s,disableRipple:a,getCardProps:l,getRippleProps:u}=rE({...e,ref:t});return P.jsxs(o,{...l(),children:[P.jsx(Qx,{value:r,children:n}),i&&!s&&!a&&P.jsx(op,{...u()})]})});dp.displayName="HeroUI.Card";var oE=dp;function iE(e){const[t,n]=on(e,bl.variantKeys),{ref:r,as:o,children:i,avatar:s,startContent:a,endContent:l,onClose:u,classNames:c,className:d,...m}=t,g=o||"div",y=mt(r),b=Be(c?.base,d),x=!!u,v=e.variant==="dot",{focusProps:$,isFocusVisible:A}=yr(),M=h.useMemo(()=>typeof i=="string"&&i?.length===1,[i]),I=h.useMemo(()=>!!s||!!a,[s,a]),O=h.useMemo(()=>!!l||x,[l,x]),L=h.useMemo(()=>bl({...n,hasStartContent:I,hasEndContent:O,isOneChar:M,isCloseable:x,isCloseButtonFocusVisible:A}),[mn(n),A,I,O,M,x]),{pressProps:k}=zn({isDisabled:!!e?.isDisabled,onPress:u}),V=()=>({ref:y,className:L.base({class:b}),...m}),j=()=>({role:"button",tabIndex:0,className:L.closeButton({class:c?.closeButton}),"aria-label":"close chip",...Ye(k,$)}),f=N=>h.isValidElement(N)?h.cloneElement(N,{className:L.avatar({class:c?.avatar})}):null,S=N=>h.isValidElement(N)?h.cloneElement(N,{className:Be("max-h-[80%]",N.props.className)}):null;return{Component:g,children:i,slots:L,classNames:c,isDot:v,isCloseable:x,startContent:f(s)||S(a),endContent:S(l),getCloseButtonProps:j,getChipProps:V}}var fp=Ze((e,t)=>{const{Component:n,children:r,slots:o,classNames:i,isDot:s,isCloseable:a,startContent:l,endContent:u,getCloseButtonProps:c,getChipProps:d}=iE({...e,ref:t}),m=h.useMemo(()=>s&&!l?P.jsx("span",{className:o.dot({class:i?.dot})}):l,[o,l,s]),g=h.useMemo(()=>a?P.jsx("span",{...c(),children:u||P.jsx(B1,{})}):u,[u,a,c]);return P.jsxs(n,{...d(),children:[m,P.jsx("span",{className:o.content({class:i?.content}),children:r}),g]})});fp.displayName="HeroUI.Chip";var sE=fp;function aE(e){let t=Vt(e,{enabled:typeof e.elementType=="string"}),n;return e.orientation==="vertical"&&(n="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":n}}:{separatorProps:t}}function lE(e){const{as:t,className:n,orientation:r,...o}=e;let i=t||"hr";i==="hr"&&r==="vertical"&&(i="div");const{separatorProps:s}=aE({elementType:typeof i=="string"?i:"hr",orientation:r}),a=h.useMemo(()=>Qh({orientation:r,className:n}),[r,n]),l=h.useCallback((u={})=>({className:a,role:"separator","data-orientation":r,...s,...o,...u}),[a,r,s,o]);return{Component:i,getDividerProps:l}}var pp=Ze((e,t)=>{const{Component:n,getDividerProps:r}=lE({...e});return P.jsx(n,{ref:t,...r()})});pp.displayName="HeroUI.Divider";var cE=pp;function uE({fill:e="currentColor",filled:t=!1,size:n,height:r,width:o,className:i,style:s,...a}){return P.jsxs("svg",{fill:t?e:"none",height:n||r||24,width:n||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[P.jsx("title",{children:"Broadcast Icon"}),P.jsx("path",{d:"M18.364 19.3639C19.6227 18.1052 20.4798 16.5016 20.8271 14.7558C21.1743 13.0099 20.9961 11.2004 20.3149 9.55582C19.6337 7.9113 18.4802 6.50569 17.0001 5.51677C15.5201 4.52784 13.78 4 12 4C10.22 4 8.47992 4.52784 6.99988 5.51677C5.51984 6.50569 4.36629 7.9113 3.6851 9.55582C3.00391 11.2004 2.82567 13.0099 3.17293 14.7558C3.52019 16.5016 4.37734 18.1052 5.636 19.3639M15.536 16.5359C16.2351 15.8366 16.7112 14.9457 16.904 13.9758C17.0968 13.006 16.9978 12.0007 16.6193 11.0871C16.2408 10.1736 15.5999 9.39276 14.7777 8.84341C13.9555 8.29407 12.9889 8.00085 12 8.00085C11.0112 8.00085 10.0445 8.29407 9.22229 8.84341C8.40007 9.39276 7.75921 10.1736 7.38073 11.0871C7.00226 12.0007 6.90316 13.006 7.09598 13.9758C7.2888 14.9457 7.76487 15.8366 8.464 16.5359M13 12.9999C13 13.5522 12.5523 13.9999 12 13.9999C11.4477 13.9999 11 13.5522 11 12.9999C11 12.4476 11.4477 11.9999 12 11.9999C12.5523 11.9999 13 12.4476 13 12.9999Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function dE({fill:e="currentColor",filled:t=!1,size:n,height:r,width:o,className:i,style:s,...a}){return P.jsxs("svg",{fill:t?e:"none",height:n||r||24,width:n||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[P.jsx("title",{children:"Calculator Icon"}),P.jsx("path",{d:"M8 14V14.01M12 14V14.01M16 14V14.01M8 17V17.01M12 17V17.01M16 17V17.01M4 5C4 4.46957 4.21071 3.96086 4.58579 3.58579C4.96086 3.21071 5.46957 3 6 3H18C18.5304 3 19.0391 3.21071 19.4142 3.58579C19.7893 3.96086 20 4.46957 20 5V19C20 19.5304 19.7893 20.0391 19.4142 20.4142C19.0391 20.7893 18.5304 21 18 21H6C5.46957 21 4.96086 20.7893 4.58579 20.4142C4.21071 20.0391 4 19.5304 4 19V5ZM8 8C8 7.73478 8.10536 7.48043 8.29289 7.29289C8.48043 7.10536 8.73478 7 9 7H15C15.2652 7 15.5196 7.10536 15.7071 7.29289C15.8946 7.48043 16 7.73478 16 8V9C16 9.26522 15.8946 9.51957 15.7071 9.70711C15.5196 9.89464 15.2652 10 15 10H9C8.73478 10 8.48043 9.89464 8.29289 9.70711C8.10536 9.51957 8 9.26522 8 9V8Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function fE({fill:e="currentColor",filled:t=!1,size:n,height:r,width:o,className:i,style:s,...a}){return P.jsxs("svg",{fill:t?e:"none",height:n||r||24,width:n||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[P.jsx("title",{children:"Chevron Right Icon"}),P.jsx("path",{d:"M9 6L15 12L9 18",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function pE({fill:e="currentColor",filled:t=!0,size:n,height:r,width:o,className:i,style:s,...a}){return P.jsxs("svg",{fill:t?e:"none",height:n||r||24,width:n||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[P.jsx("title",{children:"Circle Check Filled Icon"}),P.jsx("path",{d:"M17 3.33989C18.5083 4.21075 19.7629 5.46042 20.6398 6.96519C21.5167 8.46997 21.9854 10.1777 21.9994 11.9192C22.0135 13.6608 21.5725 15.3758 20.72 16.8946C19.8676 18.4133 18.6332 19.6831 17.1392 20.5782C15.6452 21.4733 13.9434 21.9627 12.2021 21.998C10.4608 22.0332 8.74055 21.6131 7.21155 20.7791C5.68256 19.9452 4.39787 18.7264 3.48467 17.2434C2.57146 15.7604 2.06141 14.0646 2.005 12.3239L2 11.9999L2.005 11.6759C2.061 9.94888 2.56355 8.26585 3.46364 6.79089C4.36373 5.31592 5.63065 4.09934 7.14089 3.25977C8.65113 2.42021 10.3531 1.98629 12.081 2.00033C13.8089 2.01437 15.5036 2.47589 17 3.33989ZM15.707 9.29289C15.5348 9.12072 15.3057 9.01729 15.0627 9.002C14.8197 8.98672 14.5794 9.06064 14.387 9.20989L14.293 9.29289L11 12.5849L9.707 11.2929L9.613 11.2099C9.42058 11.0607 9.18037 10.9869 8.9374 11.0022C8.69444 11.0176 8.46541 11.121 8.29326 11.2932C8.12112 11.4653 8.01768 11.6943 8.00235 11.9373C7.98702 12.1803 8.06086 12.4205 8.21 12.6129L8.293 12.7069L10.293 14.7069L10.387 14.7899C10.5624 14.926 10.778 14.9998 11 14.9998C11.222 14.9998 11.4376 14.926 11.613 14.7899L11.707 14.7069L15.707 10.7069L15.79 10.6129C15.9393 10.4205 16.0132 10.1802 15.9979 9.93721C15.9826 9.69419 15.8792 9.46509 15.707 9.29289Z",fill:e})]})}function hE({fill:e="currentColor",filled:t=!1,size:n,height:r,width:o,className:i,style:s,...a}){return P.jsxs("svg",{fill:t?e:"none",height:n||r||24,width:n||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[P.jsx("title",{children:"Clock Hour Icon"}),P.jsx("path",{d:"M15 10L12 12V7M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function mE({fill:e="currentColor",filled:t=!1,size:n,height:r,width:o,className:i,style:s,...a}){return P.jsxs("svg",{fill:t?e:"none",height:n||r||24,width:n||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[P.jsx("title",{children:"Discount Icon"}),P.jsx("path",{d:"M8.99997 15L15 8.99997M8.99997 9.49997C8.99997 9.63258 9.05265 9.75976 9.14642 9.85353C9.24019 9.94729 9.36736 9.99997 9.49997 9.99997C9.63258 9.99997 9.75976 9.94729 9.85353 9.85353C9.94729 9.75976 9.99997 9.63258 9.99997 9.49997C9.99997 9.36736 9.94729 9.24019 9.85353 9.14642C9.75976 9.05265 9.63258 8.99997 9.49997 8.99997C9.36736 8.99997 9.24019 9.05265 9.14642 9.14642C9.05265 9.24019 8.99997 9.36736 8.99997 9.49997ZM14 14.5C14 14.6326 14.0527 14.7598 14.1464 14.8535C14.2402 14.9473 14.3674 15 14.5 15C14.6326 15 14.7598 14.9473 14.8535 14.8535C14.9473 14.7598 15 14.6326 15 14.5C15 14.3674 14.9473 14.2402 14.8535 14.1464C14.7598 14.0527 14.6326 14 14.5 14C14.3674 14 14.2402 14.0527 14.1464 14.1464C14.0527 14.2402 14 14.3674 14 14.5ZM4.99997 7.19997C4.99997 6.6165 5.23176 6.05692 5.64434 5.64434C6.05692 5.23176 6.6165 4.99997 7.19997 4.99997H8.19997C8.78087 4.99964 9.33806 4.76957 9.74997 4.35997L10.45 3.65997C10.6544 3.45437 10.8975 3.29121 11.1652 3.17988C11.4329 3.06855 11.72 3.01123 12.01 3.01123C12.2999 3.01123 12.587 3.06855 12.8547 3.17988C13.1225 3.29121 13.3655 3.45437 13.57 3.65997L14.27 4.35997C14.6819 4.76957 15.2391 4.99964 15.82 4.99997H16.82C17.4034 4.99997 17.963 5.23176 18.3756 5.64434C18.7882 6.05692 19.02 6.6165 19.02 7.19997V8.19997C19.0203 8.78087 19.2504 9.33806 19.66 9.74997L20.36 10.45C20.5656 10.6544 20.7287 10.8975 20.8401 11.1652C20.9514 11.4329 21.0087 11.72 21.0087 12.01C21.0087 12.2999 20.9514 12.587 20.8401 12.8547C20.7287 13.1225 20.5656 13.3655 20.36 13.57L19.66 14.27C19.2504 14.6819 19.0203 15.2391 19.02 15.82V16.82C19.02 17.4034 18.7882 17.963 18.3756 18.3756C17.963 18.7882 17.4034 19.02 16.82 19.02H15.82C15.2391 19.0203 14.6819 19.2504 14.27 19.66L13.57 20.36C13.3655 20.5656 13.1225 20.7287 12.8547 20.8401C12.587 20.9514 12.2999 21.0087 12.01 21.0087C11.72 21.0087 11.4329 20.9514 11.1652 20.8401C10.8975 20.7287 10.6544 20.5656 10.45 20.36L9.74997 19.66C9.33806 19.2504 8.78087 19.0203 8.19997 19.02H7.19997C6.6165 19.02 6.05692 18.7882 5.64434 18.3756C5.23176 17.963 4.99997 17.4034 4.99997 16.82V15.82C4.99964 15.2391 4.76957 14.6819 4.35997 14.27L3.65997 13.57C3.45437 13.3655 3.29121 13.1225 3.17988 12.8547C3.06855 12.587 3.01123 12.2999 3.01123 12.01C3.01123 11.72 3.06855 11.4329 3.17988 11.1652C3.29121 10.8975 3.45437 10.6544 3.65997 10.45L4.35997 9.74997C4.76957 9.33806 4.99964 8.78087 4.99997 8.19997V7.19997Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function gE({fill:e="currentColor",filled:t=!1,size:n,height:r,width:o,className:i,style:s,...a}){return P.jsxs("svg",{fill:t?e:"none",height:n||r||24,width:n||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[P.jsx("title",{children:"Gauge Icon"}),P.jsx("path",{d:"M13.41 10.59L16 8M7 12C7 10.6739 7.52678 9.40215 8.46447 8.46447C9.40215 7.52678 10.6739 7 12 7M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM13 12C13 12.5523 12.5523 13 12 13C11.4477 13 11 12.5523 11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function bE({fill:e="currentColor",filled:t=!1,size:n,height:r,width:o,className:i,style:s,...a}){return P.jsxs("svg",{fill:t?e:"none",height:n||r||24,width:n||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[P.jsx("title",{children:"Star Icon"}),P.jsx("path",{d:"M12.0001 17.75L5.82808 20.995L7.00708 14.122L2.00708 9.25495L8.90708 8.25495L11.9931 2.00195L15.0791 8.25495L21.9791 9.25495L16.9791 14.122L18.1581 20.995L12.0001 17.75Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function vE({fill:e="currentColor",filled:t=!1,size:n,height:r,width:o,className:i,style:s,...a}){return P.jsxs("svg",{fill:t?e:"none",height:n||r||24,width:n||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[P.jsx("title",{children:"World Icon"}),P.jsx("path",{d:"M3.6 9H20.4M3.6 15H20.4M11.5 3C9.81534 5.69961 8.9222 8.81787 8.9222 12C8.9222 15.1821 9.81534 18.3004 11.5 21M12.5 3C14.1847 5.69961 15.0778 8.81787 15.0778 12C15.0778 15.1821 14.1847 18.3004 12.5 21M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function yE({deviceDiscount:e,tcoPerMonth:t}){return P.jsxs("div",{className:"px-3 py-2 bg-primary-50 text-xs font-semibold text-primary-500 flex items-center gap-3",children:[e&&P.jsxs("div",{className:"flex items-center gap-1",children:[P.jsx(mE,{size:16}),e,",- toestelkorting"]}),P.jsxs("div",{className:"flex items-center gap-1",children:[P.jsx(dE,{size:16}),"gem. ",t," /mnd"]})]})}function wE({monthlyFeePromotionText:e,monthlyFee:t,productPrice:n}){return P.jsxs("div",{children:[e&&P.jsx("div",{className:"text-sm text-secondary-400",children:e}),P.jsxs("div",{className:"flex items-end gap-1",children:[P.jsx("div",{className:"text-3xl font-extrabold tracking-tighter text-foreground",children:t}),P.jsx("div",{className:"text-sm text-foreground",children:"/mnd"})]}),n&&P.jsxs("div",{className:"text-sm text-foreground",children:["+ ",P.jsxs("b",{children:[n,",-"]})," eenmalig"]})]})}function xE(e={}){const{onLoad:t,onError:n,ignoreFallback:r,src:o,crossOrigin:i,srcSet:s,sizes:a,loading:l,shouldBypassImageLoad:u=!1}=e,c=Pg(),d=h.useRef(c?new Image:null),[m,g]=h.useState("pending");h.useEffect(()=>{d.current&&(d.current.onload=x=>{y(),g("loaded"),t?.(x)},d.current.onerror=x=>{y(),g("failed"),n?.(x)})},[d.current]);const y=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)},b=h.useCallback(()=>{if(!o)return"pending";if(r||u)return"loaded";const x=new Image;return x.src=o,i&&(x.crossOrigin=i),s&&(x.srcset=s),a&&(x.sizes=a),l&&(x.loading=l),d.current=x,x.complete&&x.naturalWidth?"loaded":"loading"},[o,i,s,a,t,n,l,u]);return Fo(()=>{c&&g(b())},[c,b]),r?"loaded":m}function EE(e){var t,n;const r=$t(),[o,i]=on(e,ml.variantKeys),{ref:s,as:a,src:l,className:u,classNames:c,loading:d,isBlurred:m,fallbackSrc:g,isLoading:y,disableSkeleton:b=!!g,removeWrapper:x=!1,onError:v,onLoad:$,srcSet:A,sizes:M,crossOrigin:I,...O}=o,L=xE({src:l,loading:d,onError:v,onLoad:$,ignoreFallback:!1,srcSet:A,sizes:M,crossOrigin:I,shouldBypassImageLoad:a!==void 0}),k=(n=(t=e.disableAnimation)!=null?t:r?.disableAnimation)!=null?n:!1,V=L==="loaded"&&!y,j=L==="loading"||y,f=e.isZoomed,S=a||"img",N=mt(s),{w,h:D}=h.useMemo(()=>({w:o.width?typeof o.width=="number"?`${o.width}px`:o.width:"fit-content",h:o.height?typeof o.height=="number"?`${o.height}px`:o.height:"auto"}),[o?.width,o?.height]),p=(!l||!V)&&!!g,C=j&&!b,E=h.useMemo(()=>ml({...i,disableAnimation:k,showSkeleton:C}),[mn(i),k,C]),B=Be(u,c?.img),H=(z={})=>{const K=Be(B,z?.className);return{src:l,ref:N,"data-loaded":fe(V),className:E.img({class:K}),loading:d,srcSet:A,sizes:M,crossOrigin:I,...O,style:{...O?.height&&{height:D},...z.style,...O.style}}},X=h.useCallback(()=>{const z=p?{backgroundImage:`url(${g})`}:{};return{className:E.wrapper({class:c?.wrapper}),style:{...z,maxWidth:w}}},[E,p,g,c?.wrapper,w]),_=h.useCallback(()=>({src:l,"aria-hidden":fe(!0),className:E.blurredImg({class:c?.blurredImg})}),[E,l,c?.blurredImg]);return{Component:S,domRef:N,slots:E,classNames:c,isBlurred:m,disableSkeleton:b,fallbackSrc:g,removeWrapper:x,isZoomed:f,isLoading:j,getImgProps:H,getWrapperProps:X,getBlurredImgProps:_}}var hp=Ze((e,t)=>{const{Component:n,domRef:r,slots:o,classNames:i,isBlurred:s,isZoomed:a,fallbackSrc:l,removeWrapper:u,disableSkeleton:c,getImgProps:d,getWrapperProps:m,getBlurredImgProps:g}=EE({...e,ref:t}),y=P.jsx(n,{ref:r,...d()});if(u)return y;const b=P.jsx("div",{className:o.zoomedWrapper({class:i?.zoomedWrapper}),children:y});return s?P.jsxs("div",{...m(),children:[a?b:y,h.cloneElement(y,g())]}):a||!c||l?P.jsxs("div",{...m(),children:[" ",a?b:y]}):y});hp.displayName="HeroUI.Image";var mp=hp;function TE({title:e,subtitle:t,imageUrl:n,imageAlt:r,specifications:o,stockStatus:i,reviewCount:s,reviewScore:a}){return P.jsxs("div",{className:"w-full mb-3",children:[P.jsx("div",{className:"flex justify-center mb-6 mt-3 w-full",children:P.jsx(mp,{alt:r,height:200,src:n,width:200})}),P.jsx("div",{className:"text-lg font-semibold text-foreground leading-none",children:t}),P.jsx("div",{className:"text-2xl font-bold text-foreground",children:e}),P.jsxs("div",{className:"flex gap-2",children:[P.jsx("div",{className:`text-sm ${i==="in_stock"?"text-success":"text-foreground"}`,children:i==="in_stock"?"Op voorraad":"Niet leverbaar"}),P.jsxs("div",{className:"text-sm flex items-center gap-1",children:[P.jsx(bE,{size:16,filled:!0,className:"text-default"}),P.jsx("div",{className:"font-semibold text-foreground",children:a}),P.jsxs("span",{className:"text-secondary-400",children:["(",s,")"]})]})]}),o&&P.jsx("div",{className:"flex text-sm",children:o.map((l,u)=>P.jsxs("div",{className:"text-secondary-400",children:[l.title,u<o.length-1&&P.jsx("span",{className:"mx-1",children:"•"})]},l.title))})]})}function $E({promotions:e,className:t}){return P.jsx(P.Fragment,{children:e.map(n=>P.jsxs("div",{className:"flex items-center gap-1 text-foreground text-base",children:[P.jsx(pE,{size:24,className:ci("shrink-0",t)}),n]},n))})}function CE({title:e,subtitle:t,imageUrl:n,imageAlt:r,hasProduct:o}){return P.jsxs("div",{className:"flex justify-between w-full",children:[P.jsxs("div",{children:[P.jsx("div",{className:`${o?"text-2xl font-extrabold":"text-3xl font-extrabold"} text-foreground`,children:e}),P.jsx("div",{className:`${o?"text-base":"text-lg"} leading-none text-foreground`,children:t})]}),P.jsx(mp,{alt:r,height:o?35:50,src:n,width:o?75:100})]})}function gp({href:e,productTitle:t,productSubtitle:n,productImageUrl:r,productImageAlt:o,propositionTitle:i,propositionSubtitle:s,propositionImageUrl:a,propositionImageAlt:l,propositionSpecifications:u,monthlyFee:c,tcoPerMonth:d,specialPromotions:m,modificationPromotions:g,monthlyFeePromotionText:y,deliveryText:b,urgentText:x,productSpecifications:v,productStockStatus:$,productReviewCount:A,productReviewScore:M,productPrice:I,deviceDiscount:O,className:L,...k}){const V=!!(t&&n&&r&&o);return P.jsxs(oE,{...k,as:"a",href:e,children:[P.jsxs(nE,{className:"flex-col items-start text-start z-1",children:[V&&P.jsx(TE,{imageAlt:o||"",imageUrl:r||"",reviewCount:A,reviewScore:M,specifications:v,stockStatus:$,subtitle:n||"",title:t||""}),P.jsx(CE,{hasProduct:V,imageAlt:l,imageUrl:a,subtitle:s,title:i})]}),P.jsxs(eE,{className:"py-0",children:[!V&&u&&P.jsx("div",{className:"grid grid-cols-2 text-secondary-400 mb-3",children:u.map(j=>P.jsxs("div",{className:"text-sm flex items-center gap-1",children:[j.icon,j.title]},j.title))}),x&&P.jsx(sE,{className:"mb-1 text-default",color:"default",size:"sm",variant:"bordered",children:x}),P.jsx($E,{promotions:[...m,...g],className:"text-success"})]}),P.jsx(cE,{className:"mt-3"}),P.jsxs(tE,{className:"flex-col justify-between items-start text-start",children:[b&&P.jsx("div",{className:"text-success text-base mb-3 lg:text-sm",children:b}),P.jsxs("div",{className:"flex justify-between items-end w-full",children:[P.jsx(wE,{monthlyFeePromotionText:y,productPrice:I,monthlyFee:c}),P.jsxs(Zx,{color:"default",size:"lg",radius:"full",className:"gap-1 pl-6",disableRipple:!0,children:["Bekijk ",P.jsx(fE,{size:24})]})]})]}),P.jsx(yE,{deviceDiscount:O,tcoPerMonth:d})]})}var Bo={exports:{}},xa={};/**
198
+ * @license React
199
+ * use-sync-external-store-shim.production.js
200
+ *
201
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
202
+ *
203
+ * This source code is licensed under the MIT license found in the
204
+ * LICENSE file in the root directory of this source tree.
205
+ */var bp;function PE(){if(bp)return xa;bp=1;var e=h;function t(d,m){return d===m&&(d!==0||1/d===1/m)||d!==d&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function a(d,m){var g=m(),y=r({inst:{value:g,getSnapshot:m}}),b=y[0].inst,x=y[1];return i(function(){b.value=g,b.getSnapshot=m,l(b)&&x({inst:b})},[d,g,m]),o(function(){return l(b)&&x({inst:b}),d(function(){l(b)&&x({inst:b})})},[d]),s(g),g}function l(d){var m=d.getSnapshot;d=d.value;try{var g=m();return!n(d,g)}catch{return!0}}function u(d,m){return m()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return xa.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,xa}var Ea={};/**
206
+ * @license React
207
+ * use-sync-external-store-shim.development.js
208
+ *
209
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
210
+ *
211
+ * This source code is licensed under the MIT license found in the
212
+ * LICENSE file in the root directory of this source tree.
213
+ */var vp;function SE(){return vp||(vp=1,process.env.NODE_ENV!=="production"&&function(){function e(g,y){return g===y&&(g!==0||1/g===1/y)||g!==g&&y!==y}function t(g,y){c||o.startTransition===void 0||(c=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var b=y();if(!d){var x=y();i(b,x)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}x=s({inst:{value:b,getSnapshot:y}});var v=x[0].inst,$=x[1];return l(function(){v.value=b,v.getSnapshot=y,n(v)&&$({inst:v})},[g,b,y]),a(function(){return n(v)&&$({inst:v}),g(function(){n(v)&&$({inst:v})})},[g]),u(b),b}function n(g){var y=g.getSnapshot;g=g.value;try{var b=y();return!i(g,b)}catch{return!0}}function r(g,y){return y()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=h,i=typeof Object.is=="function"?Object.is:e,s=o.useState,a=o.useEffect,l=o.useLayoutEffect,u=o.useDebugValue,c=!1,d=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;Ea.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Ea}var yp;function kE(){return yp||(yp=1,process.env.NODE_ENV==="production"?Bo.exports=PE():Bo.exports=SE()),Bo.exports}var IE=kE();const wp=0,xp=1,Ep=2,Tp=3;var $p=Object.prototype.hasOwnProperty;function Ta(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Ta(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if($p.call(e,n)&&++r&&!$p.call(t,n)||!(n in t)||!Ta(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}const It=new WeakMap,Bt=()=>{},qe=Bt(),$a=Object,pe=e=>e===qe,wt=e=>typeof e=="function",zt=(e,t)=>({...e,...t}),Cp=e=>wt(e.then),Ca={},zo={},Pa="undefined",Tr=typeof window!=Pa,Sa=typeof document!=Pa,AE=Tr&&"Deno"in window,OE=()=>Tr&&typeof window.requestAnimationFrame!=Pa,Pp=(e,t)=>{const n=It.get(e);return[()=>!pe(t)&&e.get(t)||Ca,r=>{if(!pe(t)){const o=e.get(t);t in zo||(zo[t]=o),n[5](t,zt(o,r),o||Ca)}},n[6],()=>!pe(t)&&t in zo?zo[t]:!pe(t)&&e.get(t)||Ca]};let ka=!0;const ME=()=>ka,[Ia,Aa]=Tr&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Bt,Bt],NE=()=>{const e=Sa&&document.visibilityState;return pe(e)||e!=="hidden"},DE=e=>(Sa&&document.addEventListener("visibilitychange",e),Ia("focus",e),()=>{Sa&&document.removeEventListener("visibilitychange",e),Aa("focus",e)}),LE=e=>{const t=()=>{ka=!0,e()},n=()=>{ka=!1};return Ia("online",t),Ia("offline",n),()=>{Aa("online",t),Aa("offline",n)}},VE={isOnline:ME,isVisible:NE},_E={initFocus:DE,initReconnect:LE},Sp=!h.useId,$r=!Tr||AE,FE=e=>OE()?window.requestAnimationFrame(e):setTimeout(e,1),Oa=$r?h.useEffect:h.useLayoutEffect,Ma=typeof navigator<"u"&&navigator.connection,kp=!$r&&Ma&&(["slow-2g","2g"].includes(Ma.effectiveType)||Ma.saveData),Uo=new WeakMap,jE=e=>$a.prototype.toString.call(e),Na=(e,t)=>e===`[object ${t}]`;let RE=0;const Da=e=>{const t=typeof e,n=jE(e),r=Na(n,"Date"),o=Na(n,"RegExp"),i=Na(n,"Object");let s,a;if($a(e)===e&&!r&&!o){if(s=Uo.get(e),s)return s;if(s=++RE+"~",Uo.set(e,s),Array.isArray(e)){for(s="@",a=0;a<e.length;a++)s+=Da(e[a])+",";Uo.set(e,s)}if(i){s="#";const l=$a.keys(e).sort();for(;!pe(a=l.pop());)pe(e[a])||(s+=a+":"+Da(e[a])+",");Uo.set(e,s)}}else s=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return s},La=e=>{if(wt(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Da(e):"",[e,t]};let BE=0;const Va=()=>++BE;async function Ip(...e){const[t,n,r,o]=e,i=zt({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let s=i.populateCache;const a=i.rollbackOnError;let l=i.optimisticData;const u=m=>typeof a=="function"?a(m):a!==!1,c=i.throwOnError;if(wt(n)){const m=n,g=[],y=t.keys();for(const b of y)!/^\$(inf|sub)\$/.test(b)&&m(t.get(b)._k)&&g.push(b);return Promise.all(g.map(d))}return d(n);async function d(m){const[g]=La(m);if(!g)return;const[y,b]=Pp(t,g),[x,v,$,A]=It.get(t),M=()=>{const w=x[g];return(wt(i.revalidate)?i.revalidate(y().data,m):i.revalidate!==!1)&&(delete $[g],delete A[g],w&&w[0])?w[0](Ep).then(()=>y().data):y().data};if(e.length<3)return M();let I=r,O,L=!1;const k=Va();v[g]=[k,0];const V=!pe(l),j=y(),f=j.data,S=j._c,N=pe(S)?f:S;if(V&&(l=wt(l)?l(N,f):l,b({data:l,_c:N})),wt(I))try{I=I(N)}catch(w){O=w,L=!0}if(I&&Cp(I))if(I=await I.catch(w=>{O=w,L=!0}),k!==v[g][0]){if(L)throw O;return I}else L&&V&&u(O)&&(s=!0,b({data:N,_c:qe}));if(s&&!L)if(wt(s)){const w=s(I,N);b({data:w,error:qe,_c:qe})}else b({data:I,error:qe,_c:qe});if(v[g][1]=Va(),Promise.resolve(M()).then(()=>{b({_c:qe})}),L){if(c)throw O;return}return I}}const Ap=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},zE=(e,t)=>{if(!It.has(e)){const n=zt(_E,t),r=Object.create(null),o=Ip.bind(qe,e);let i=Bt;const s=Object.create(null),a=(c,d)=>{const m=s[c]||[];return s[c]=m,m.push(d),()=>m.splice(m.indexOf(d),1)},l=(c,d,m)=>{e.set(c,d);const g=s[c];if(g)for(const y of g)y(d,m)},u=()=>{if(!It.has(e)&&(It.set(e,[r,Object.create(null),Object.create(null),Object.create(null),o,l,a]),!$r)){const c=n.initFocus(setTimeout.bind(qe,Ap.bind(qe,r,wp))),d=n.initReconnect(setTimeout.bind(qe,Ap.bind(qe,r,xp)));i=()=>{c&&c(),d&&d(),It.delete(e)}}};return u(),[e,o,u,i]}return[e,It.get(e)[4]]},UE=(e,t,n,r,o)=>{const i=n.errorRetryCount,s=o.retryCount,a=~~((Math.random()+.5)*(1<<(s<8?s:8)))*n.errorRetryInterval;!pe(i)&&s>i||setTimeout(r,a,o)},KE=Ta,[Op,HE]=zE(new Map),GE=zt({onLoadingSlow:Bt,onSuccess:Bt,onError:Bt,onErrorRetry:UE,onDiscarded:Bt,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:kp?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:kp?5e3:3e3,compare:KE,isPaused:()=>!1,cache:Op,mutate:HE,fallback:{}},VE),WE=(e,t)=>{const n=zt(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:s}=t;r&&i&&(n.use=r.concat(i)),o&&s&&(n.fallback=zt(o,s))}return n},qE=h.createContext({}),YE="$inf$",Mp=Tr&&window.__SWR_DEVTOOLS_USE__,XE=Mp?window.__SWR_DEVTOOLS_USE__:[],JE=()=>{Mp&&(window.__SWR_DEVTOOLS_REACT__=h)},Np=e=>wt(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],ZE=()=>{const e=h.useContext(qE);return h.useMemo(()=>zt(GE,e),[e])},QE=e=>(t,n,r)=>e(t,n&&((...i)=>{const[s]=La(t),[,,,a]=It.get(Op);if(s.startsWith(YE))return n(...i);const l=a[s];return pe(l)?n(...i):(delete a[s],l)}),r),eT=XE.concat(QE),tT=e=>function(...n){const r=ZE(),[o,i,s]=Np(n),a=WE(r,s);let l=e;const{use:u}=a,c=(u||[]).concat(eT);for(let d=c.length;d--;)l=c[d](l);return l(o,i||a.fetcher||null,a)},nT=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}},rT=(e,t)=>(...n)=>{const[r,o,i]=Np(n),s=(i.use||[]).concat(t);return e(r,o,{...i,use:s})};JE();const _a=h.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),Fa={dedupe:!0},Dp=Promise.resolve(qe),oT=tT((e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:s,revalidateOnMount:a,revalidateIfStale:l,refreshInterval:u,refreshWhenHidden:c,refreshWhenOffline:d,keepPreviousData:m}=n,[g,y,b,x]=It.get(r),[v,$]=La(e),A=h.useRef(!1),M=h.useRef(!1),I=h.useRef(v),O=h.useRef(t),L=h.useRef(n),k=()=>L.current,V=()=>k().isVisible()&&k().isOnline(),[j,f,S,N]=Pp(r,v),w=h.useRef({}).current,D=pe(s)?pe(n.fallback)?qe:n.fallback[v]:s,p=(Z,le)=>{for(const me in w){const oe=me;if(oe==="data"){if(!o(Z[oe],le[oe])&&(!pe(Z[oe])||!o(ie,le[oe])))return!1}else if(le[oe]!==Z[oe])return!1}return!0},C=h.useMemo(()=>{const Z=!v||!t?!1:pe(a)?k().isPaused()||i?!1:l!==!1:a,le=Se=>{const De=zt(Se);return delete De._k,Z?{isValidating:!0,isLoading:!0,...De}:De},me=j(),oe=N(),Te=le(me),Ie=me===oe?Te:le(oe);let ce=Te;return[()=>{const Se=le(j());return p(Se,ce)?(ce.data=Se.data,ce.isLoading=Se.isLoading,ce.isValidating=Se.isValidating,ce.error=Se.error,ce):(ce=Se,Se)},()=>Ie]},[r,v]),E=IE.useSyncExternalStore(h.useCallback(Z=>S(v,(le,me)=>{p(me,le)||Z()}),[r,v]),C[0],C[1]),B=!A.current,H=g[v]&&g[v].length>0,X=E.data,_=pe(X)?D&&Cp(D)?_a(D):D:X,z=E.error,K=h.useRef(_),ie=m?pe(X)?pe(K.current)?_:K.current:X:_,ee=H&&!pe(z)?!1:B&&!pe(a)?a:k().isPaused()?!1:i?pe(_)?!1:l:pe(_)||l,re=!!(v&&t&&B&&ee),we=pe(E.isValidating)?re:E.isValidating,ve=pe(E.isLoading)?re:E.isLoading,J=h.useCallback(async Z=>{const le=O.current;if(!v||!le||M.current||k().isPaused())return!1;let me,oe,Te=!0;const Ie=Z||{},ce=!b[v]||!Ie.dedupe,Se=()=>Sp?!M.current&&v===I.current&&A.current:v===I.current,De={isValidating:!1,isLoading:!1},ge=()=>{f(De)},We=()=>{const ye=b[v];ye&&ye[1]===oe&&delete b[v]},tt={isValidating:!0};pe(j().data)&&(tt.isLoading=!0);try{if(ce&&(f(tt),n.loadingTimeout&&pe(j().data)&&setTimeout(()=>{Te&&Se()&&k().onLoadingSlow(v,n)},n.loadingTimeout),b[v]=[le($),Va()]),[me,oe]=b[v],me=await me,ce&&setTimeout(We,n.dedupingInterval),!b[v]||b[v][1]!==oe)return ce&&Se()&&k().onDiscarded(v),!1;De.error=qe;const ye=y[v];if(!pe(ye)&&(oe<=ye[0]||oe<=ye[1]||ye[1]===0))return ge(),ce&&Se()&&k().onDiscarded(v),!1;const He=j().data;De.data=o(He,me)?He:me,ce&&Se()&&k().onSuccess(me,v,n)}catch(ye){We();const He=k(),{shouldRetryOnError:xt}=He;He.isPaused()||(De.error=ye,ce&&Se()&&(He.onError(ye,v,He),(xt===!0||wt(xt)&&xt(ye))&&(!k().revalidateOnFocus||!k().revalidateOnReconnect||V())&&He.onErrorRetry(ye,v,He,cn=>{const At=g[v];At&&At[0]&&At[0](Tp,cn)},{retryCount:(Ie.retryCount||0)+1,dedupe:!0})))}return Te=!1,ge(),!0},[v,r]),Pe=h.useCallback((...Z)=>Ip(r,I.current,...Z),[]);if(Oa(()=>{O.current=t,L.current=n,pe(X)||(K.current=X)}),Oa(()=>{if(!v)return;const Z=J.bind(qe,Fa);let le=0;k().revalidateOnFocus&&(le=Date.now()+k().focusThrottleInterval);const oe=nT(v,g,(Te,Ie={})=>{if(Te==wp){const ce=Date.now();k().revalidateOnFocus&&ce>le&&V()&&(le=ce+k().focusThrottleInterval,Z())}else if(Te==xp)k().revalidateOnReconnect&&V()&&Z();else{if(Te==Ep)return J();if(Te==Tp)return J(Ie)}});return M.current=!1,I.current=v,A.current=!0,f({_k:$}),ee&&(b[v]||(pe(_)||$r?Z():FE(Z))),()=>{M.current=!0,oe()}},[v]),Oa(()=>{let Z;function le(){const oe=wt(u)?u(j().data):u;oe&&Z!==-1&&(Z=setTimeout(me,oe))}function me(){!j().error&&(c||k().isVisible())&&(d||k().isOnline())?J(Fa).then(le):le()}return le(),()=>{Z&&(clearTimeout(Z),Z=-1)}},[u,c,d,v]),h.useDebugValue(ie),i){const Z=v&&pe(_);if(!Sp&&$r&&Z)throw new Error("Fallback data is required when using Suspense in SSR.");Z&&(O.current=t,L.current=n,M.current=!1);const le=x[v],me=!pe(le)&&Z?Pe(le):Dp;if(_a(me),!pe(z)&&Z)throw z;const oe=Z?J(Fa):Dp;!pe(ie)&&Z&&(oe.status="fulfilled",oe.value=!0),_a(oe)}return{mutate:Pe,get data(){return w.data=!0,ie},get error(){return w.error=!0,z},get isValidating(){return w.isValidating=!0,we},get isLoading(){return w.isLoading=!0,ve}}}),iT=rT(oT,e=>(t,n,r)=>(r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,e(t,n,r)));function Ko(e,t){if(e===void 0)return"";const n=e.toFixed(2).toString().replace(".",","),r=t?.symbol?`${t.symbol} ${n}`:n;return t?.dashed?r.replace(/,00$/,",-"):r}function sT(e,t,n){if(!(t===e[0].fee&&e[0].fee===e[e.length-1].fee))return t>n?`Van ${Ko(t,{dashed:!0})} voor:`:`${e[0].term} mnd van ${Ko(t,{dashed:!0})} voor:`}const Cr=2147483647;function Lp(e){switch(e){case Cr:return"Onbp";case 0:return"-";default:return e}}function aT(e,t){const n=e.minutes!==0?`${Lp(e.minutes)} ${e.minutes===Cr?"min":"minuten"}`:void 0,r=e.sms!==0?`${Lp(e.sms)} sms`:void 0,o=e.minutes===Cr&&e.sms===Cr||["minutes","sms"].every(s=>e.sharedCredits?.includes(s)),i=o?" / ":" + ";return!n&&!r?"":o?[n,"sms"].join(i):[n,r].join(i)}function lT(e){switch(e){case 24:return"2 jaar";case 12:return"1 jaar";case 1:return"Maandelijks";default:return""}}function Vp(e,t){return e===Cr?`Onbp ${t}`:`${(e/1e3).toString().replace(".",",")} ${t}`}function cT(e){switch(e){case 3:return"3G";case 4:return"4G";case 4.5:return"4G+";case 4.9:return"5G-ready";case 5:return"5G";default:return""}}let _p;function uT(){const e={"MobielNl-Application":"elements-client"},t="https://graph.mobiel.nl/api";return _p=new Hw(t,{headers:e}),_p}function dT(e,t={}){return uT().request(e,t)}function fT([e,t]){return dT(e,t)}function pT(e){return(t,n,r)=>{const o=h.useRef(void 0),i=e(t,n,r);h.useEffect(()=>{i.data!==void 0&&(o.current=i.data)},[i.data]);const s=h.useCallback(()=>{o.current=void 0},[]),a=i.data===void 0?o.current:i.data,l=i.data===void 0&&o.current!==void 0;return Object.assign({},i,{data:a,isSticky:l,resetSticky:s})}}function hT({filterOptions:e=[],limit:t=3}){const[n,r]=h.useState([]),o=Qw({filterOptions:e,filterValues:n,limit:t}),{data:i,isValidating:s}=iT([qw,{query:o.serialize()}],{use:[pT],fetcher:fT}),a=i?.search.records||[],l=c=>{const d=n.filter(g=>g.id!==c.id);let m=!1;Array.isArray(c.value)?m=c.value.length>0:m=c.value!==""&&c.value!==void 0&&c.value!==null,m&&d.push(c),r(d)},u=()=>r([]);return P.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[P.jsx(tp,{className:"col-span-1",filters:e,activeFilters:n,onFilterChange:l,onClearAll:u}),P.jsx("div",{className:ci("gap-4 grid grid-cols-1 col-span-1 lg:grid-cols-3 lg:col-span-3",s&&"opacity-50 pointer-none"),children:a.map(c=>P.jsx(gp,{monthlyFee:Ko(c.monthlyFees[0].fee,{dashed:!0}),monthlyFeePromotionText:sT(c.monthlyFees,c.baseMonthlyFee,c.lifetimeMonthlyFee),tcoPerMonth:Ko(c.tcoPerMonth,{dashed:!0}),propositionTitle:Vp(c.content.data,"GB"),propositionSubtitle:aT(c.content),propositionImageUrl:c.provider.imageUrl,propositionImageAlt:c.provider.name,propositionSpecifications:[{title:lT(c.planVariant.contractTerm),icon:P.jsx(hE,{size:16})},{title:`${c.content.dataSpeedDown/1e3} Mbps`,icon:P.jsx(gE,{size:16})},{title:`${c.provider.network?.replace("-netwerk","")} ${cT(c.content.networkGeneration)}`,icon:P.jsx(uE,{size:16})},{title:`${Vp(c.content.dataEu,"GB")} in EU`,icon:P.jsx(vE,{size:16})}],specialPromotions:c.specialPromotions.map(d=>d.publicTitle),modificationPromotions:c.modificationPromotions,deliveryText:c.deliveryPromise??void 0,href:`https://www.mobiel.nl/aanbieding/${c.key}`},c.key))})]})}var mT=Gy;const Fp=Object.freeze(Object.defineProperty({__proto__:null,default:mT},Symbol.toStringTag,{value:"Module"}));rt.ElementsRoot=Jp,rt.FilterSidebar=tp,rt.ProductResults=hT,rt.PropositionCard=gp,rt.RangeFilter=Kf,rt.SelectFilter=ep,Object.defineProperty(rt,Symbol.toStringTag,{value:"Module"})});