@clasing/ui 0.0.46 → 0.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +5697 -1141
- package/dist/index.umd.js +18 -10
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(X,T){typeof exports=="object"&&typeof module<"u"?T(exports,require("react"),require("@tabler/icons-react")):typeof define=="function"&&define.amd?define(["exports","react","@tabler/icons-react"],T):(X=typeof globalThis<"u"?globalThis:X||self,T(X["react-beautiful-timeline"]={},X.React,X.TablerIcons))})(this,function(X,T,wo){"use strict";function hr(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const We=hr(T),pr=hr(wo);var Ke={exports:{}},Zt={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var mr;function To(){if(mr)return Zt;mr=1;var t=T,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(a,l,c){var u,d={},h=null,p=null;c!==void 0&&(h=""+c),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(p=l.ref);for(u in l)r.call(l,u)&&!o.hasOwnProperty(u)&&(d[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:e,type:a,key:h,ref:p,props:d,_owner:i.current}}return Zt.Fragment=n,Zt.jsx=s,Zt.jsxs=s,Zt}var Jt={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,17 +14,25 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+
|
|
19
|
-
`),
|
|
20
|
-
`),
|
|
21
|
-
`+
|
|
17
|
+
*/var gr;function Po(){return gr||(gr=1,process.env.NODE_ENV!=="production"&&function(){var t=T,e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),b=Symbol.iterator,m="@@iterator";function x(f){if(f===null||typeof f!="object")return null;var g=b&&f[b]||f[m];return typeof g=="function"?g:null}var P=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(f){{for(var g=arguments.length,w=new Array(g>1?g-1:0),A=1;A<g;A++)w[A-1]=arguments[A];v("error",f,w)}}function v(f,g,w){{var A=P.ReactDebugCurrentFrame,O=A.getStackAddendum();O!==""&&(g+="%s",w=w.concat([O]));var F=w.map(function(D){return String(D)});F.unshift("Warning: "+g),Function.prototype.apply.call(console[f],console,F)}}var C=!1,M=!1,I=!1,J=!1,k=!1,_;_=Symbol.for("react.module.reference");function $(f){return!!(typeof f=="string"||typeof f=="function"||f===r||f===o||k||f===i||f===c||f===u||J||f===p||C||M||I||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===d||f.$$typeof===s||f.$$typeof===a||f.$$typeof===l||f.$$typeof===_||f.getModuleId!==void 0))}function ot(f,g,w){var A=f.displayName;if(A)return A;var O=g.displayName||g.name||"";return O!==""?w+"("+O+")":w}function j(f){return f.displayName||"Context"}function Q(f){if(f==null)return null;if(typeof f.tag=="number"&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case r:return"Fragment";case n:return"Portal";case o:return"Profiler";case i:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case a:var g=f;return j(g)+".Consumer";case s:var w=f;return j(w._context)+".Provider";case l:return ot(f,f.render,"ForwardRef");case d:var A=f.displayName||null;return A!==null?A:Q(f.type)||"Memo";case h:{var O=f,F=O._payload,D=O._init;try{return Q(D(F))}catch{return null}}}return null}var tt=Object.assign,N=0,H,yt,dt,kt,be,Mt,Nt;function so(){}so.__reactDisabledLog=!0;function Id(){{if(N===0){H=console.log,yt=console.info,dt=console.warn,kt=console.error,be=console.group,Mt=console.groupCollapsed,Nt=console.groupEnd;var f={configurable:!0,enumerable:!0,value:so,writable:!0};Object.defineProperties(console,{info:f,log:f,warn:f,error:f,group:f,groupCollapsed:f,groupEnd:f})}N++}}function Bd(){{if(N--,N===0){var f={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:tt({},f,{value:H}),info:tt({},f,{value:yt}),warn:tt({},f,{value:dt}),error:tt({},f,{value:kt}),group:tt({},f,{value:be}),groupCollapsed:tt({},f,{value:Mt}),groupEnd:tt({},f,{value:Nt})})}N<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ir=P.ReactCurrentDispatcher,sr;function Ne(f,g,w){{if(sr===void 0)try{throw Error()}catch(O){var A=O.stack.trim().match(/\n( *(at )?)/);sr=A&&A[1]||""}return`
|
|
18
|
+
`+sr+f}}var or=!1,ze;{var _d=typeof WeakMap=="function"?WeakMap:Map;ze=new _d}function oo(f,g){if(!f||or)return"";{var w=ze.get(f);if(w!==void 0)return w}var A;or=!0;var O=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var F;F=ir.current,ir.current=null,Id();try{if(g){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(D,[])}catch(nt){A=nt}Reflect.construct(f,[],D)}else{try{D.call()}catch(nt){A=nt}f.call(D.prototype)}}else{try{throw Error()}catch(nt){A=nt}f()}}catch(nt){if(nt&&A&&typeof nt.stack=="string"){for(var R=nt.stack.split(`
|
|
19
|
+
`),et=A.stack.split(`
|
|
20
|
+
`),W=R.length-1,K=et.length-1;W>=1&&K>=0&&R[W]!==et[K];)K--;for(;W>=1&&K>=0;W--,K--)if(R[W]!==et[K]){if(W!==1||K!==1)do if(W--,K--,K<0||R[W]!==et[K]){var at=`
|
|
21
|
+
`+R[W].replace(" at new "," at ");return f.displayName&&at.includes("<anonymous>")&&(at=at.replace("<anonymous>",f.displayName)),typeof f=="function"&&ze.set(f,at),at}while(W>=1&&K>=0);break}}}finally{or=!1,ir.current=F,Bd(),Error.prepareStackTrace=O}var qt=f?f.displayName||f.name:"",zt=qt?Ne(qt):"";return typeof f=="function"&&ze.set(f,zt),zt}function Nd(f,g,w){return oo(f,!1)}function zd(f){var g=f.prototype;return!!(g&&g.isReactComponent)}function Ue(f,g,w){if(f==null)return"";if(typeof f=="function")return oo(f,zd(f));if(typeof f=="string")return Ne(f);switch(f){case c:return Ne("Suspense");case u:return Ne("SuspenseList")}if(typeof f=="object")switch(f.$$typeof){case l:return Nd(f.render);case d:return Ue(f.type,g,w);case h:{var A=f,O=A._payload,F=A._init;try{return Ue(F(O),g,w)}catch{}}}return""}var ye=Object.prototype.hasOwnProperty,ao={},lo=P.ReactDebugCurrentFrame;function $e(f){if(f){var g=f._owner,w=Ue(f.type,f._source,g?g.type:null);lo.setExtraStackFrame(w)}else lo.setExtraStackFrame(null)}function Ud(f,g,w,A,O){{var F=Function.call.bind(ye);for(var D in f)if(F(f,D)){var R=void 0;try{if(typeof f[D]!="function"){var et=Error((A||"React class")+": "+w+" type `"+D+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof f[D]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw et.name="Invariant Violation",et}R=f[D](g,D,A,w,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(W){R=W}R&&!(R instanceof Error)&&($e(O),y("%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).",A||"React class",w,D,typeof R),$e(null)),R instanceof Error&&!(R.message in ao)&&(ao[R.message]=!0,$e(O),y("Failed %s type: %s",w,R.message),$e(null))}}}var $d=Array.isArray;function ar(f){return $d(f)}function Wd(f){{var g=typeof Symbol=="function"&&Symbol.toStringTag,w=g&&f[Symbol.toStringTag]||f.constructor.name||"Object";return w}}function Kd(f){try{return co(f),!1}catch{return!0}}function co(f){return""+f}function uo(f){if(Kd(f))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Wd(f)),co(f)}var ve=P.ReactCurrentOwner,Gd={key:!0,ref:!0,__self:!0,__source:!0},fo,ho,lr;lr={};function Yd(f){if(ye.call(f,"ref")){var g=Object.getOwnPropertyDescriptor(f,"ref").get;if(g&&g.isReactWarning)return!1}return f.ref!==void 0}function Hd(f){if(ye.call(f,"key")){var g=Object.getOwnPropertyDescriptor(f,"key").get;if(g&&g.isReactWarning)return!1}return f.key!==void 0}function Xd(f,g){if(typeof f.ref=="string"&&ve.current&&g&&ve.current.stateNode!==g){var w=Q(ve.current.type);lr[w]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',Q(ve.current.type),f.ref),lr[w]=!0)}}function qd(f,g){{var w=function(){fo||(fo=!0,y("%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)",g))};w.isReactWarning=!0,Object.defineProperty(f,"key",{get:w,configurable:!0})}}function Zd(f,g){{var w=function(){ho||(ho=!0,y("%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)",g))};w.isReactWarning=!0,Object.defineProperty(f,"ref",{get:w,configurable:!0})}}var Jd=function(f,g,w,A,O,F,D){var R={$$typeof:e,type:f,key:g,ref:w,props:D,_owner:F};return R._store={},Object.defineProperty(R._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(R,"_self",{configurable:!1,enumerable:!1,writable:!1,value:A}),Object.defineProperty(R,"_source",{configurable:!1,enumerable:!1,writable:!1,value:O}),Object.freeze&&(Object.freeze(R.props),Object.freeze(R)),R};function Qd(f,g,w,A,O){{var F,D={},R=null,et=null;w!==void 0&&(uo(w),R=""+w),Hd(g)&&(uo(g.key),R=""+g.key),Yd(g)&&(et=g.ref,Xd(g,O));for(F in g)ye.call(g,F)&&!Gd.hasOwnProperty(F)&&(D[F]=g[F]);if(f&&f.defaultProps){var W=f.defaultProps;for(F in W)D[F]===void 0&&(D[F]=W[F])}if(R||et){var K=typeof f=="function"?f.displayName||f.name||"Unknown":f;R&&qd(D,K),et&&Zd(D,K)}return Jd(f,R,et,O,A,ve.current,D)}}var cr=P.ReactCurrentOwner,po=P.ReactDebugCurrentFrame;function Xt(f){if(f){var g=f._owner,w=Ue(f.type,f._source,g?g.type:null);po.setExtraStackFrame(w)}else po.setExtraStackFrame(null)}var ur;ur=!1;function dr(f){return typeof f=="object"&&f!==null&&f.$$typeof===e}function mo(){{if(cr.current){var f=Q(cr.current.type);if(f)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+
|
|
23
|
+
Check the render method of \``+f+"`."}return""}}function tf(f){return""}var go={};function ef(f){{var g=mo();if(!g){var w=typeof f=="string"?f:f.displayName||f.name;w&&(g=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+
|
|
25
|
+
Check the top-level render call using <`+w+">.")}return g}}function bo(f,g){{if(!f._store||f._store.validated||f.key!=null)return;f._store.validated=!0;var w=ef(g);if(go[w])return;go[w]=!0;var A="";f&&f._owner&&f._owner!==cr.current&&(A=" It was passed a child from "+Q(f._owner.type)+"."),Xt(f),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',w,A),Xt(null)}}function yo(f,g){{if(typeof f!="object")return;if(ar(f))for(var w=0;w<f.length;w++){var A=f[w];dr(A)&&bo(A,g)}else if(dr(f))f._store&&(f._store.validated=!0);else if(f){var O=x(f);if(typeof O=="function"&&O!==f.entries)for(var F=O.call(f),D;!(D=F.next()).done;)dr(D.value)&&bo(D.value,g)}}}function nf(f){{var g=f.type;if(g==null||typeof g=="string")return;var w;if(typeof g=="function")w=g.propTypes;else if(typeof g=="object"&&(g.$$typeof===l||g.$$typeof===d))w=g.propTypes;else return;if(w){var A=Q(g);Ud(w,f.props,"prop",A,f)}else if(g.PropTypes!==void 0&&!ur){ur=!0;var O=Q(g);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",O||"Unknown")}typeof g.getDefaultProps=="function"&&!g.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function rf(f){{for(var g=Object.keys(f.props),w=0;w<g.length;w++){var A=g[w];if(A!=="children"&&A!=="key"){Xt(f),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",A),Xt(null);break}}f.ref!==null&&(Xt(f),y("Invalid attribute `ref` supplied to `React.Fragment`."),Xt(null))}}var vo={};function xo(f,g,w,A,O,F){{var D=$(f);if(!D){var R="";(f===void 0||typeof f=="object"&&f!==null&&Object.keys(f).length===0)&&(R+=" 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 et=tf();et?R+=et:R+=mo();var W;f===null?W="null":ar(f)?W="array":f!==void 0&&f.$$typeof===e?(W="<"+(Q(f.type)||"Unknown")+" />",R=" Did you accidentally export a JSX literal instead of a component?"):W=typeof f,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",W,R)}var K=Qd(f,g,w,O,F);if(K==null)return K;if(D){var at=g.children;if(at!==void 0)if(A)if(ar(at)){for(var qt=0;qt<at.length;qt++)yo(at[qt],f);Object.freeze&&Object.freeze(at)}else y("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 yo(at,f)}if(ye.call(g,"key")){var zt=Q(f),nt=Object.keys(g).filter(function(uf){return uf!=="key"}),fr=nt.length>0?"{key: someKey, "+nt.join(": ..., ")+": ...}":"{key: someKey}";if(!vo[zt+fr]){var cf=nt.length>0?"{"+nt.join(": ..., ")+": ...}":"{}";y(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,We,Z,Yr,Z),pt[Z+We]=!0}}return e===o?Wr(T):Fr(T),T}}function Dr(e,i,c){return mt(e,i,c,!0)}function $r(e,i,c){return mt(e,i,c,!1)}var Br=$r,Gr=Dr;ie.Fragment=o,ie.jsx=Br,ie.jsxs=Gr}()),ie}process.env.NODE_ENV==="production"?Ce.exports=yt():Ce.exports=xt();var x=Ce.exports;function Ye(t){var n,r,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(n=0;n<s;n++)t[n]&&(r=Ye(t[n]))&&(o&&(o+=" "),o+=r)}else for(r in t)t[r]&&(o&&(o+=" "),o+=r);return o}function wt(){for(var t,n,r=0,o="",s=arguments.length;r<s;r++)(t=arguments[r])&&(n=Ye(t))&&(o&&(o+=" "),o+=n);return o}const Re="-";function kt(t){const n=Et(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=t;function s(l){const u=l.split(Re);return u[0]===""&&u.length!==1&&u.shift(),Ue(u,n)||St(l)}function a(l,u){const d=r[l]||[];return u&&o[l]?[...d,...o[l]]:d}return{getClassGroupId:s,getConflictingClassGroupIds:a}}function Ue(t,n){var l;if(t.length===0)return n.classGroupId;const r=t[0],o=n.nextPart.get(r),s=o?Ue(t.slice(1),o):void 0;if(s)return s;if(n.validators.length===0)return;const a=t.join(Re);return(l=n.validators.find(({validator:u})=>u(a)))==null?void 0:l.classGroupId}const Le=/^\[(.+)\]$/;function St(t){if(Le.test(t)){const n=Le.exec(t)[1],r=n==null?void 0:n.substring(0,n.indexOf(":"));if(r)return"arbitrary.."+r}}function Et(t){const{theme:n,prefix:r}=t,o={nextPart:new Map,validators:[]};return Rt(Object.entries(t.classGroups),r).forEach(([a,l])=>{_e(l,o,a,n)}),o}function _e(t,n,r,o){t.forEach(s=>{if(typeof s=="string"){const a=s===""?n:Je(n,s);a.classGroupId=r;return}if(typeof s=="function"){if(Ct(s)){_e(s(o),n,r,o);return}n.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([a,l])=>{_e(l,Je(n,a),r,o)})})}function Je(t,n){let r=t;return n.split(Re).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r}function Ct(t){return t.isThemeGetter}function Rt(t,n){return n?t.map(([r,o])=>{const s=o.map(a=>typeof a=="string"?n+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([l,u])=>[n+l,u])):a);return[r,s]}):t}function _t(t){if(t<1)return{get:()=>{},set:()=>{}};let n=0,r=new Map,o=new Map;function s(a,l){r.set(a,l),n++,n>t&&(n=0,o=r,r=new Map)}return{get(a){let l=r.get(a);if(l!==void 0)return l;if((l=o.get(a))!==void 0)return s(a,l),l},set(a,l){r.has(a)?r.set(a,l):s(a,l)}}}const Ke="!";function jt(t){const n=t.separator,r=n.length===1,o=n[0],s=n.length;return function(l){const u=[];let d=0,b=0,g;for(let R=0;R<l.length;R++){let j=l[R];if(d===0){if(j===o&&(r||l.slice(R,R+s)===n)){u.push(l.slice(b,R)),b=R+s;continue}if(j==="/"){g=R;continue}}j==="["?d++:j==="]"&&d--}const h=u.length===0?l:l.substring(b),C=h.startsWith(Ke),P=C?h.substring(1):h,F=g&&g>b?g-b:void 0;return{modifiers:u,hasImportantModifier:C,baseClassName:P,maybePostfixModifierPosition:F}}}function Tt(t){if(t.length<=1)return t;const n=[];let r=[];return t.forEach(o=>{o[0]==="["?(n.push(...r.sort(),o),r=[]):r.push(o)}),n.push(...r.sort()),n}function At(t){return{cache:_t(t.cacheSize),splitModifiers:jt(t),...kt(t)}}const Pt=/\s+/;function Ot(t,n){const{splitModifiers:r,getClassGroupId:o,getConflictingClassGroupIds:s}=n,a=new Set;return t.trim().split(Pt).map(l=>{const{modifiers:u,hasImportantModifier:d,baseClassName:b,maybePostfixModifierPosition:g}=r(l);let h=o(g?b.substring(0,g):b),C=!!g;if(!h){if(!g)return{isTailwindClass:!1,originalClassName:l};if(h=o(b),!h)return{isTailwindClass:!1,originalClassName:l};C=!1}const P=Tt(u).join(":");return{isTailwindClass:!0,modifierId:d?P+Ke:P,classGroupId:h,originalClassName:l,hasPostfixModifier:C}}).reverse().filter(l=>{if(!l.isTailwindClass)return!0;const{modifierId:u,classGroupId:d,hasPostfixModifier:b}=l,g=u+d;return a.has(g)?!1:(a.add(g),s(d,b).forEach(h=>a.add(u+h)),!0)}).reverse().map(l=>l.originalClassName).join(" ")}function zt(){let t=0,n,r,o="";for(;t<arguments.length;)(n=arguments[t++])&&(r=qe(n))&&(o&&(o+=" "),o+=r);return o}function qe(t){if(typeof t=="string")return t;let n,r="";for(let o=0;o<t.length;o++)t[o]&&(n=qe(t[o]))&&(r&&(r+=" "),r+=n);return r}function It(t,...n){let r,o,s,a=l;function l(d){const b=n.reduce((g,h)=>h(g),t());return r=At(b),o=r.cache.get,s=r.cache.set,a=u,u(d)}function u(d){const b=o(d);if(b)return b;const g=Ot(d,r);return s(d,g),g}return function(){return a(zt.apply(null,arguments))}}function E(t){const n=r=>r[t]||[];return n.isThemeGetter=!0,n}const Xe=/^\[(?:([a-z-]+):)?(.+)\]$/i,Nt=/^\d+\/\d+$/,Mt=new Set(["px","full","screen"]),Vt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ft=/\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$/,Wt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Dt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$t=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function $(t){return K(t)||Mt.has(t)||Nt.test(t)}function B(t){return Q(t,"length",qt)}function K(t){return!!t&&!Number.isNaN(Number(t))}function pe(t){return Q(t,"number",K)}function ae(t){return!!t&&Number.isInteger(Number(t))}function Bt(t){return t.endsWith("%")&&K(t.slice(0,-1))}function p(t){return Xe.test(t)}function G(t){return Vt.test(t)}const Gt=new Set(["length","size","percentage"]);function Yt(t){return Q(t,Gt,He)}function Ut(t){return Q(t,"position",He)}const Lt=new Set(["image","url"]);function Jt(t){return Q(t,Lt,Ht)}function Kt(t){return Q(t,"",Xt)}function le(){return!0}function Q(t,n,r){const o=Xe.exec(t);return o?o[1]?typeof n=="string"?o[1]===n:n.has(o[1]):r(o[2]):!1}function qt(t){return Ft.test(t)&&!Wt.test(t)}function He(){return!1}function Xt(t){return Dt.test(t)}function Ht(t){return $t.test(t)}function Zt(){const t=E("colors"),n=E("spacing"),r=E("blur"),o=E("brightness"),s=E("borderColor"),a=E("borderRadius"),l=E("borderSpacing"),u=E("borderWidth"),d=E("contrast"),b=E("grayscale"),g=E("hueRotate"),h=E("invert"),C=E("gap"),P=E("gradientColorStops"),F=E("gradientColorStopPositions"),R=E("inset"),j=E("margin"),O=E("opacity"),S=E("padding"),me=E("saturate"),se=E("scale"),ve=E("sepia"),he=E("skew"),ye=E("space"),xe=E("translate"),ee=()=>["auto","contain","none"],ce=()=>["auto","hidden","clip","visible","scroll"],ue=()=>["auto",p,n],w=()=>[p,n],N=()=>["",$,B],M=()=>["auto",K,p],U=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],X=()=>["solid","dashed","dotted","double","none"],de=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",p],be=()=>["auto","avoid","all","avoid-page","page","left","right","column"],J=()=>[K,pe],H=()=>[K,p];return{cacheSize:500,separator:":",theme:{colors:[le],spacing:[$,B],blur:["none","",G,p],brightness:J(),borderColor:[t],borderRadius:["none","","full",G,p],borderSpacing:w(),borderWidth:N(),contrast:J(),grayscale:L(),hueRotate:H(),invert:L(),gap:w(),gradientColorStops:[t],gradientColorStopPositions:[Bt,B],inset:ue(),margin:ue(),opacity:J(),padding:w(),saturate:J(),scale:J(),sepia:L(),skew:H(),space:w(),translate:w()},classGroups:{aspect:[{aspect:["auto","square","video",p]}],container:["container"],columns:[{columns:[G]}],"break-after":[{"break-after":be()}],"break-before":[{"break-before":be()}],"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"],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:[...U(),p]}],overflow:[{overflow:ce()}],"overflow-x":[{"overflow-x":ce()}],"overflow-y":[{"overflow-y":ce()}],overscroll:[{overscroll:ee()}],"overscroll-x":[{"overscroll-x":ee()}],"overscroll-y":[{"overscroll-y":ee()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[R]}],"inset-x":[{"inset-x":[R]}],"inset-y":[{"inset-y":[R]}],start:[{start:[R]}],end:[{end:[R]}],top:[{top:[R]}],right:[{right:[R]}],bottom:[{bottom:[R]}],left:[{left:[R]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ae,p]}],basis:[{basis:ue()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",p]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",ae,p]}],"grid-cols":[{"grid-cols":[le]}],"col-start-end":[{col:["auto",{span:["full",ae,p]},p]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[le]}],"row-start-end":[{row:["auto",{span:[ae,p]},p]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",p]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",p]}],gap:[{gap:[C]}],"gap-x":[{"gap-x":[C]}],"gap-y":[{"gap-y":[C]}],"justify-content":[{justify:["normal",...te()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...te(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...te(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[j]}],mx:[{mx:[j]}],my:[{my:[j]}],ms:[{ms:[j]}],me:[{me:[j]}],mt:[{mt:[j]}],mr:[{mr:[j]}],mb:[{mb:[j]}],ml:[{ml:[j]}],"space-x":[{"space-x":[ye]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ye]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",p,n]}],"min-w":[{"min-w":[p,n,"min","max","fit"]}],"max-w":[{"max-w":[p,n,"none","full","min","max","fit","prose",{screen:[G]},G]}],h:[{h:[p,n,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[p,n,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[p,n,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[p,n,"auto","min","max","fit"]}],"font-size":[{text:["base",G,B]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",pe]}],"font-family":[{font:[le]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",p]}],"line-clamp":[{"line-clamp":["none",K,pe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",$,p]}],"list-image":[{"list-image":["none",p]}],"list-style-type":[{list:["none","disc","decimal",p]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[O]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",$,B]}],"underline-offset":[{"underline-offset":["auto",$,p]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",p]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[O]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...U(),Ut]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Yt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Jt]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[F]}],"gradient-via-pos":[{via:[F]}],"gradient-to-pos":[{to:[F]}],"gradient-from":[{from:[P]}],"gradient-via":[{via:[P]}],"gradient-to":[{to:[P]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[O]}],"border-style":[{border:[...X(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[O]}],"divide-style":[{divide:X()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...X()]}],"outline-offset":[{"outline-offset":[$,p]}],"outline-w":[{outline:[$,B]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[O]}],"ring-offset-w":[{"ring-offset":[$,B]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",G,Kt]}],"shadow-color":[{shadow:[le]}],opacity:[{opacity:[O]}],"mix-blend":[{"mix-blend":[...de(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":de()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",G,p]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[h]}],saturate:[{saturate:[me]}],sepia:[{sepia:[ve]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[O]}],"backdrop-saturate":[{"backdrop-saturate":[me]}],"backdrop-sepia":[{"backdrop-sepia":[ve]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",p]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",p]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",p]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[se]}],"scale-x":[{"scale-x":[se]}],"scale-y":[{"scale-y":[se]}],rotate:[{rotate:[ae,p]}],"translate-x":[{"translate-x":[xe]}],"translate-y":[{"translate-y":[xe]}],"skew-x":[{"skew-x":[he]}],"skew-y":[{"skew-y":[he]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",p]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],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",p]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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",p]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[$,B,pe]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}}const Qt=It(Zt),q=(...t)=>Qt(wt(t));function Ze(t){var n,r,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=Ze(t[n]))&&(o&&(o+=" "),o+=r);else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function er(){for(var t,n,r=0,o="";r<arguments.length;)(t=arguments[r++])&&(n=Ze(t))&&(o&&(o+=" "),o+=n);return o}const Qe=t=>typeof t=="boolean"?"".concat(t):t===0?"0":t,et=er,W=(t,n)=>r=>{var o;if((n==null?void 0:n.variants)==null)return et(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:a}=n,l=Object.keys(s).map(b=>{const g=r==null?void 0:r[b],h=a==null?void 0:a[b];if(g===null)return null;const C=Qe(g)||Qe(h);return s[b][C]}),u=r&&Object.entries(r).reduce((b,g)=>{let[h,C]=g;return C===void 0||(b[h]=C),b},{}),d=n==null||(o=n.compoundVariants)===null||o===void 0?void 0:o.reduce((b,g)=>{let{class:h,className:C,...P}=g;return Object.entries(P).every(F=>{let[R,j]=F;return Array.isArray(j)?j.includes({...a,...u}[R]):{...a,...u}[R]===j})?[...b,h,C]:b},[]);return et(t,l,d,r==null?void 0:r.class,r==null?void 0:r.className)},Y=({iconName:t,...n})=>{if($e[t]){const r=$e[t];return x.jsx(r,{...n})}else return console.error(`Icon ${t} not found`),null},tr=W("flex w-fit items-center justify-center gap-2 rounded-sm transition-colors",{variants:{status:{locked:"bg-bg-disabled text-content-text-subtle","locked-outline":"text-content-text-subtlest outline !outline-sm outline-border-disabled",available:"bg-bg-utility-discovery-bolder text-content-text-inverse","available-outline":"text-content-utility-discovery outline !outline-sm outline-border-utility-discovery",inProgress:"bg-bg-accent-blue-subtle text-content-text-default","inProgress-outline":"text-content-accent-blue outline !outline-sm outline-border-accent-blue",completed:"bg-bg-utility-success-bolder text-content-text-default","completed-outline":"text-content-utility-success outline !outline-sm outline-border-utility-success",viewed:"bg-bg-utility-informative-bolder text-content-text-inverse","viewed-outline":"text-content-utility-informative outline !outline-sm outline-border-utility-informative"},intent:{neutral:"bg-bg-bolder text-content-text-inverse","neutral-outline":"text-content-text-default outline !outline-sm outline-border-bolder",blue:"bg-bg-accent-blue text-content-text-inverse","blue-outline":"text-content-accent-blue outline !outline-sm outline-border-accent-blue",mustard:"bg-bg-accent-mustard text-content-text-default","mustard-outline":"text-content-accent-mustard outline !outline-sm outline-border-accent-mustard",green:"bg-bg-accent-green text-content-text-inverse","green-outline":"text-content-accent-green outline !outline-sm outline-border-accent-green",lime:"bg-bg-accent-lime text-content-text-default","lime-outline":"text-content-accent-lime outline !outline-sm outline-border-accent-lime",fuchsia:"bg-bg-accent-fuchsia text-content-text-inverse","fuchsia-outline":"text-content-accent-fuchsia outline !outline-sm outline-border-accent-fuchsia",marine:"bg-bg-accent-marine text-content-text-inverse","marine-outline":"text-content-accent-marine outline !outline-sm outline-border-accent-marine",ice:"bg-bg-accent-ice text-content-text-inverse","ice-outline":"text-content-accent-ice outline !outline-sm outline-border-accent-ice",gray:"bg-bg-accent-gray text-content-text-inverse","gray-outline":"text-content-accent-gray outline !outline-sm outline-border-accent-gray"},size:{small:"h-[34px] px-4 py-2 text-2xs",medium:"h-9 px-4 py-2 text-sm",large:"h-10 px-4 py-2 text-base"},fontWeight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},rounded:{rectangle:"rounded-sm",full:"rounded-full"}},defaultVariants:{size:"medium",fontWeight:"regular",rounded:"rectangle"}}),rr=({children:t,iconLeft:n,iconRight:r,status:o,intent:s,size:a="medium",rounded:l="rectangle",className:u,...d})=>{typeof n=="string"&&(n={name:n}),typeof r=="string"&&(r={name:r});const b={small:"h-4",medium:"h-4",large:"h-5"},g=o?{status:o}:{intent:s};return x.jsxs("span",{className:q(tr({...g,size:a,rounded:l,className:u})),...d,children:[n&&x.jsx(Y,{iconName:n.name,stroke:n.stroke,className:b[a||"medium"]}),t,r&&x.jsx(Y,{iconName:r.name,stroke:r.stroke,className:b[a||"medium"]})]})},je=({className:t})=>x.jsx(Y,{iconName:"IconLoader2",className:`${t} animate-spin`}),Te="flex items-center justify-center gap-2 rounded-sm !border-xs transition-colors",nr=W(Te,{variants:{intent:{primary:["bg-button-primary-background-enabled","text-button-primary-content-enabled","border-button-primary-border-enabled","lg:hover:bg-button-primary-background-hover","lg:hover:text-button-primary-content-hover","lg:hover:border-button-primary-border-hover","lg:active:bg-button-primary-background-pressed","lg:active:text-button-primary-content-pressed","lg:active:border-button-primary-border-pressed"],secondary:["bg-button-secondary-background-enabled","text-button-secondary-content-enabled","border-button-secondary-border-enabled","lg:hover:bg-button-secondary-background-hover","lg:hover:text-button-secondary-content-hover","lg:hover:border-button-secondary-border-hover","lg:active:bg-button-secondary-background-pressed","lg:active:text-button-secondary-content-pressed","lg:active:border-button-secondary-border-pressed"],tertiary:["bg-button-tertiary-background-enabled","text-button-tertiary-content-enabled","border-button-tertiary-border-enabled","lg:hover:bg-button-tertiary-background-hover","lg:hover:text-button-tertiary-content-hover","lg:hover:border-button-tertiary-border-hover","lg:active:bg-button-tertiary-background-pressed","lg:active:text-button-tertiary-content-pressed","lg:active:border-button-tertiary-border-pressed"],ghost:["bg-button-ghost-background-enabled","text-button-ghost-content-enabled","border-button-ghost-border-enabled","lg:hover:bg-button-ghost-background-hover","lg:hover:text-button-ghost-content-hover","lg:hover:border-button-ghost-border-hover","lg:active:bg-button-ghost-background-pressed","lg:active:text-button-ghost-content-pressed","lg:active:border-button-ghost-border-pressed"],outline:["bg-button-outline-background-enabled","text-button-outline-content-enabled","border-button-outline-border-enabled","lg:hover:bg-button-outline-background-hover","lg:hover:text-button-outline-content-hover","lg:hover:border-button-outline-border-hover","lg:active:bg-button-outline-background-pressed","lg:active:text-button-outline-content-pressed","lg:active:border-button-outline-border-pressed"],destructive:["bg-button-destructive-background-enabled","text-button-destructive-content-enabled","border-button-destructive-border-enabled","lg:hover:bg-button-destructive-background-hover","lg:hover:text-button-destructive-content-hover","lg:hover:border-button-destructive-border-hover","lg:active:bg-button-destructive-background-pressed","lg:active:text-button-destructive-content-pressed","lg:active:border-button-destructive-border-pressed"],link:["border-button-link-border-enabled","text-button-link-content-enabled","lg:hover:border-button-link-border-hover","lg:hover:text-button-link-content-hover","lg:active:border-button-link-border-pressed","lg:active:text-button-link-content-pressed"]},size:{small:"h-10 text-xs",medium:"h-11 text-sm",large:"h-12 text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},compoundVariants:[{intent:"link",className:"w-fit rounded-none !border-[0px] !border-b-xs px-1"},{intent:["primary","secondary","tertiary","ghost","outline","destructive"],size:"small",className:"min-w-36 p-button-sm"},{intent:["primary","secondary","tertiary","ghost","outline","destructive"],size:"medium",className:"min-w-44 p-button-md"},{intent:["primary","secondary","tertiary","ghost","outline","destructive"],size:"large",className:"min-w-52 p-button-lg"}],defaultVariants:{intent:"primary",size:"medium",weight:"regular"}}),or=W(`${Te} cursor-default`,{variants:{intent:{primary:["border-button-primary-border-pressed","bg-button-primary-background-pressed","text-button-primary-content-pressed"],secondary:["border-button-secondary-border-enabled","bg-button-secondary-background-enabled","text-button-secondary-content-enabled"],tertiary:["border-button-tertiary-border-enabled","bg-button-tertiary-background-enabled","text-button-tertiary-content-enabled"],ghost:["border-button-ghost-border-pressed","bg-button-ghost-background-pressed","text-button-ghost-content-pressed"],outline:["border-button-outline-border-pressed","bg-button-outline-background-pressed","text-button-outline-content-pressed"],destructive:["border-button-destructive-border-pressed","bg-button-destructive-background-pressed","text-button-destructive-content-pressed"],link:["border-b border-button-link-border-pressed","text-button-link-content-pressed"]},size:{small:"h-10text-xs",medium:"h-11 text-sm",large:"h-12 text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},compoundVariants:[{intent:"link",className:"w-24 rounded-none !border-[0px] !border-b-xs px-1"},{intent:["primary","secondary","tertiary","ghost","outline","destructive"],size:"small",className:"min-w-36 p-button-sm"},{intent:["primary","secondary","tertiary","ghost","outline","destructive"],size:"medium",className:"min-w-44 p-button-md"},{intent:["primary","secondary","tertiary","ghost","outline","destructive"],size:"large",className:"min-w-52 p-button-lg"}],defaultVariants:{intent:"primary",size:"medium",weight:"regular"}}),ir=W(Te,{variants:{intent:{primary:["border-button-primary-border-disabled","bg-button-primary-background-disabled","text-button-primary-content-disabled"],secondary:["border-button-secondary-border-disabled","bg-button-secondary-background-disabled","text-button-secondary-content-disabled"],tertiary:["border-button-tertiary-border-disabled","bg-button-tertiary-background-disabled","text-button-tertiary-content-disabled"],ghost:["border-button-ghost-border-disabled","bg-button-ghost-background-disabled","text-button-ghost-content-disabled"],outline:["border-button-outline-border-disabled","bg-button-outline-background-disabled","text-button-outline-content-disabled"],destructive:["border-button-destructive-border-disabled","bg-button-destructive-background-disabled","text-button-destructive-content-disabled"],link:["border-b border-button-link-border-disabled","text-button-link-content-disabled"]},size:{small:"h-10 text-xs",medium:"h-11 text-sm",large:"h-12 text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},compoundVariants:[{intent:"link",className:"w-24 rounded-none !border-[0px] !border-b-xs px-1"},{intent:["primary","secondary","tertiary","ghost","outline","destructive"],size:"small",className:"min-w-36 p-button-sm"},{intent:["primary","secondary","tertiary","ghost","outline","destructive"],size:"medium",className:"min-w-44 p-button-md"},{intent:["primary","secondary","tertiary","ghost","outline","destructive"],size:"large",className:"min-w-52 p-button-lg"}],defaultVariants:{intent:"primary",size:"medium",weight:"regular"}}),ar=({className:t,intent:n,size:r,children:o,iconLeft:s,iconRight:a,isLoading:l,disabled:u,...d})=>{typeof s=="string"&&(s={name:s}),typeof a=="string"&&(a={name:a});const b={small:"h-5",medium:"h-5",large:"h-6"};return x.jsx("button",{className:q(l?or({intent:n,size:r,className:t}):u?ir({intent:n,size:r,className:t}):nr({intent:n,size:r,className:t})),disabled:u||l,...d,children:l?x.jsx(je,{className:b[r||"medium"]}):x.jsxs(x.Fragment,{children:[s&&x.jsx(Y,{iconName:s.name,stroke:s.stroke,className:b[r||"medium"]}),o,a&&x.jsx(Y,{iconName:a.name,stroke:a.stroke,className:b[r||"medium"]})]})})},Ae="flex items-center justify-center transition-colors relative border !border-xs",lr=W(Ae,{variants:{intent:{fill:["bg-button-icon-fill-bg-enabled","text-button-icon-fill-content-enabled","border-button-icon-fill-border-enabled","lg:hover:bg-button-icon-fill-bg-hover","lg:hover:text-button-icon-fill-content-hover","lg:hover:border-button-icon-fill-border-hover","lg:active:bg-button-icon-fill-border-disabled","lg:active:text-button-icon-fill-content-disabled","lg:active:border-button-icon-fill-border-disabled"],outline:["bg-button-icon-outline-bg-enabled","text-button-icon-outline-content-enabled","border-button-icon-outline-border-enabled","lg:hover:bg-button-icon-outline-bg-hover","lg:hover:text-button-icon-outline-content-hover","lg:hover:border-button-icon-outline-border-hover","lg:active:bg-button-icon-outline-bg-pressed","lg:active:text-button-icon-outline-content-pressed","lg:active:border-button-icon-outline-border-pressed"],ghost:["bg-button-icon-ghost-bg-enabled","text-button-icon-ghost-content-enabled","border-button-icon-ghost-border-enabled","lg:hover:bg-button-icon-ghost-bg-hover","lg:hover:text-button-icon-ghost-content-hover","lg:hover:border-button-icon-ghost-border-hover","lg:active:bg-button-icon-ghost-bg-pressed","lg:active:text-button-icon-ghost-content-pressed","lg:active:border-button-icon-ghost-border-pressed"]},size:{small:"h-[38px] w-[38px] p-[9px]",medium:"h-11 w-11 p-[10px]",large:"h-12 w-12 p-3"},rounded:{full:"rounded-full",sm:"rounded-sm"}},defaultVariants:{intent:"fill",size:"medium",rounded:"sm"}}),sr=W(Ae,{variants:{intent:{fill:["border-button-icon-fill-border-pressed","bg-button-icon-fill-bg-pressed","text-button-icon-fill-content-pressed"],outline:["border-button-icon-outline-border-enabled","bg-button-icon-outline-bg-enabled","text-button-icon-outline-content-enabled"],ghost:["border-button-icon-ghost-border-enabled","bg-button-icon-ghost-bg-enabled","text-button-icon-ghost-content-enabled"]},size:{small:"h-[38px] w-[38px] p-[9px]",medium:"h-11 w-11 p-[10px]",large:"h-12 w-12 p-3"},rounded:{full:"rounded-full",sm:"rounded-sm"}},defaultVariants:{intent:"fill",size:"medium",rounded:"sm"}}),cr=W(Ae,{variants:{intent:{fill:["border-button-icon-fill-border-disabled","bg-button-icon-fill-bg-disabled","text-button-icon-fill-content-disabled"],outline:["border-button-icon-outline-border-disabled","bg-button-icon-outline-bg-disabled","text-button-icon-outline-content-disabled"],ghost:["border-button-icon-ghost-border-disabled","bg-button-icon-ghost-bg-disabled","text-button-icon-ghost-content-disabled"]},size:{small:"h-[38px] w-[38px] p-[9px]",medium:"h-11 w-11 p-[10px]",large:"h-12 w-12 p-3"},rounded:{full:"rounded-full",sm:"rounded-sm"}},defaultVariants:{intent:"fill",size:"medium",rounded:"sm"}}),ur=({iconName:t,className:n,intent:r="fill",size:o="medium",rounded:s,disabled:a,isLoading:l,notification:u,...d})=>{typeof t=="string"&&(t={name:t});const b={small:"h-5",medium:"h-5",large:"h-6"};return x.jsxs("button",{className:q(l?sr({intent:r,size:o,rounded:s,className:n}):a?cr({intent:r,size:o,rounded:s,className:n}):lr({intent:r,size:o,rounded:s,className:n})),disabled:a||l,...d,children:[u&&!l&&x.jsx(Y,{iconName:"IconCircleFilled",className:`absolute ${s==="full"?"right-2 top-2":"right-1 top-1"} h-[6px] w-[6px] ${r==="fill"?"text-button-primary-content-pressed":"text-button-primary-background-enabled"}`}),l?x.jsx(je,{className:b[o||"medium"]}):x.jsx(x.Fragment,{children:t&&x.jsx(Y,{iconName:t.name,stroke:t.stroke,className:b[o||"medium"]})})]})},dr=W("flex flex-col gap-3 p-4 rounded-lg",{variants:{intent:{default:"text-content-primary bg-bg-white",outline:"!border-xs border-solid border-border-utility-discovery bg-bg-white text-content-text-default"},shadow:{none:"",xs:"shadow-xs",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg",xl:"shadow-xl","2xl":"shadow-2xl"}},defaultVariants:{intent:"default",shadow:"none"}}),br=({className:t,intent:n,children:r,...o})=>x.jsx("div",{className:q(dr({intent:n,className:t})),...o,children:r}),fr={top:{placementStyles:"bottom-full left-1/2 mb-2",initialAnimation:{opacity:0,y:10,x:"-50%",scale:.95},targetAnimation:{opacity:1,y:0,x:"-50%",scale:1},exitAnimation:{opacity:0,y:10,x:"-50%",scale:.95}},"top-right":{placementStyles:"bottom-full right-0 mb-2",initialAnimation:{opacity:0,y:10,x:10,scale:.95},targetAnimation:{opacity:1,y:0,x:0,scale:1},exitAnimation:{opacity:0,y:10,x:10,scale:.95}},"top-left":{placementStyles:"bottom-full left-0 mb-2",initialAnimation:{opacity:0,y:10,x:-10,scale:.95},targetAnimation:{opacity:1,y:0,x:0,scale:1},exitAnimation:{opacity:0,y:10,x:-10,scale:.95}},bottom:{placementStyles:"top-full left-1/2 mt-2",initialAnimation:{opacity:0,y:-10,x:"-50%",scale:.95},targetAnimation:{opacity:1,y:0,x:"-50%",scale:1},exitAnimation:{opacity:0,y:-10,x:"-50%",scale:.95}},"bottom-right":{placementStyles:"top-full right-0 mt-2",initialAnimation:{opacity:0,y:-10,x:10,scale:.95},targetAnimation:{opacity:1,y:0,x:0,scale:1},exitAnimation:{opacity:0,y:-10,x:10,scale:.95}},"bottom-left":{placementStyles:"top-full left-0 mt-2",initialAnimation:{opacity:0,y:-10,x:-10,scale:.95},targetAnimation:{opacity:1,y:0,x:0,scale:1},exitAnimation:{opacity:0,y:-10,x:-10,scale:.95}},left:{placementStyles:"right-full top-1/2 mr-2",initialAnimation:{opacity:0,x:10,y:"-50%",scale:.95},targetAnimation:{opacity:1,x:0,y:"-50%",scale:1},exitAnimation:{opacity:0,x:10,y:"-50%",scale:.95}},right:{placementStyles:"left-full top-1/2 ml-2",initialAnimation:{opacity:0,x:-10,y:"-50%",scale:.95},targetAnimation:{opacity:1,x:0,y:"-50%",scale:1},exitAnimation:{opacity:0,x:-10,y:"-50%",scale:.95}}},gr=({children:t,placement:n="bottom-left",closePopover:r})=>{const{placementStyles:o,initialAnimation:s,targetAnimation:a,exitAnimation:l}=fr[n],u=d=>{d.stopPropagation(),r&&r()};return x.jsx(De.motion.div,{initial:s,animate:a,exit:l,transition:{duration:.15,damping:10},className:`bg-white absolute z-30 flex w-fit flex-col gap-2 rounded-lg p-4 shadow-2xl ${o}`,onClick:u,children:t||x.jsx("div",{children:"Your placeholder here"})})},pr=({children:t,trigger:n,open:r=!1,placement:o="bottom-left",closeOnAction:s=!1})=>{const[a,l]=D.useState(r);D.useEffect(()=>{l(r)},[r]),D.useEffect(()=>{const d=()=>{a&&l(!1)};return document.addEventListener("click",d),()=>{document.removeEventListener("click",d)}},[a]);const u=d=>{d.stopPropagation(),l(b=>!b)};return x.jsxs("div",{className:"relative",children:[x.jsx("div",{onClick:u,children:n}),x.jsx(De.AnimatePresence,{children:a&&x.jsx(gr,{placement:o,closePopover:s?()=>l(!1):void 0,children:t})})]})},tt=W("transition-all ease-out duration-500 relative overflow-hidden w-full",{variants:{intent:{primary:"bg-bg-brand",green:"bg-bg-accent-green",blue:"bg-bg-accent-blue",violet:"bg-bg-accent-violet",mustard:"bg-bg-accent-mustard",lime:"bg-bg-accent-lime",marine:"bg-bg-accent-marine",ice:"bg-bg-accent-ice",gray:"bg-bg-accent-gray",fuchsia:"bg-bg-accent-fuchsia"},size:{small:"h-3",medium:"h-4",large:"h-5"},rounded:{full:"rounded-full",sm:"rounded-sm"}},defaultVariants:{intent:"primary",size:"medium",rounded:"full"}}),mr=({progress:t,className:n,intent:r="primary",size:o="medium",rounded:s="full",...a})=>{const l={small:"text-2xs",medium:"text-sm",large:"text-base"};return x.jsx("div",{className:q(tt({size:o,rounded:s,className:n}),"relative bg-bg-accent-gray-subtle-hover"),...a,children:x.jsx("div",{className:q(tt({intent:r,size:o,rounded:s})),style:{width:`${t}%`},children:x.jsxs("span",{className:`absolute -right-2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-content-text-inverse ${l[o||"medium"]}`,children:[t,"%"]})})})},vr=W("transition-colors",{variants:{intent:{"display-sm":"text-7xl leading-6xl tracking-tight","display-lg":"text-9xl leading-7xl tracking-tight","title-xs":"text-2xl leading-2xl tracking-tight","title-sm":"text-3xl leading-3xl tracking-tight","title-md":"text-4xl leading-4xl tracking-tight","title-lg":"text-5xl leading-5xl tracking-tight","title-xl":"text-6xl leading-6xl tracking-tight","label-xs":"text-2xs leading-xs tracking-normal","label-sm":"text-xs leading-sm tracking-normal","label-md":"text-sm leading-md tracking-normal","label-lg":"text-base leading-lg tracking-normal","label-xl":"text-lg leading-lg tracking-normal","label-2xl":"text-xl leading-xl tracking-normal","label-3xl":"text-2xl leading-2xl tracking-normal","paragraph-xs":"text-xs leading-md tracking-normal","paragraph-sm":"text-sm leading-md tracking-normal","paragraph-md":"text-base leading-lg tracking-normal","paragraph-lg":"text-lg leading-xl tracking-normal","overline-sm":"text-xs leading-md tracking-widest","overline-lg":"text-sm leading-md tracking-widest"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"paragraph-md",weight:"regular"}}),hr=({as:t="span",intent:n,className:r,weight:o,...s})=>{const a=t;return x.jsx(a,{className:q(vr({intent:n,weight:o,className:r})),...s})};A.Badge=rr,A.Button=ar,A.ButtonIcon=ur,A.Card=br,A.IconComponent=Y,A.Popover=pr,A.ProgressBar=mr,A.Spinner=je,A.Text=hr,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});
|
|
30
|
+
<%s key={someKey} {...props} />`,fr,zt,cf,zt),vo[zt+fr]=!0}}return f===r?rf(K):nf(K),K}}function sf(f,g,w){return xo(f,g,w,!0)}function of(f,g,w){return xo(f,g,w,!1)}var af=of,lf=sf;Jt.Fragment=r,Jt.jsx=af,Jt.jsxs=lf}()),Jt}process.env.NODE_ENV==="production"?Ke.exports=To():Ke.exports=Po();var V=Ke.exports;function br(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=br(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function So(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=br(t))&&(r&&(r+=" "),r+=e);return r}const Ge="-";function Co(t){const e=Vo(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;function i(s){const a=s.split(Ge);return a[0]===""&&a.length!==1&&a.shift(),yr(a,e)||Ao(s)}function o(s,a){const l=n[s]||[];return a&&r[s]?[...l,...r[s]]:l}return{getClassGroupId:i,getConflictingClassGroupIds:o}}function yr(t,e){var s;if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),i=r?yr(t.slice(1),r):void 0;if(i)return i;if(e.validators.length===0)return;const o=t.join(Ge);return(s=e.validators.find(({validator:a})=>a(o)))==null?void 0:s.classGroupId}const vr=/^\[(.+)\]$/;function Ao(t){if(vr.test(t)){const e=vr.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}}function Vo(t){const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return ko(Object.entries(t.classGroups),n).forEach(([o,s])=>{Ye(s,r,o,e)}),r}function Ye(t,e,n,r){t.forEach(i=>{if(typeof i=="string"){const o=i===""?e:xr(e,i);o.classGroupId=n;return}if(typeof i=="function"){if(Eo(i)){Ye(i(r),e,n,r);return}e.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,s])=>{Ye(s,xr(e,o),n,r)})})}function xr(t,e){let n=t;return e.split(Ge).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function Eo(t){return t.isThemeGetter}function ko(t,e){return e?t.map(([n,r])=>{const i=r.map(o=>typeof o=="string"?e+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([s,a])=>[e+s,a])):o);return[n,i]}):t}function Mo(t){if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;function i(o,s){n.set(o,s),e++,e>t&&(e=0,r=n,n=new Map)}return{get(o){let s=n.get(o);if(s!==void 0)return s;if((s=r.get(o))!==void 0)return i(o,s),s},set(o,s){n.has(o)?n.set(o,s):i(o,s)}}}const wr="!";function Ro(t){const e=t.separator,n=e.length===1,r=e[0],i=e.length;return function(s){const a=[];let l=0,c=0,u;for(let m=0;m<s.length;m++){let x=s[m];if(l===0){if(x===r&&(n||s.slice(m,m+i)===e)){a.push(s.slice(c,m)),c=m+i;continue}if(x==="/"){u=m;continue}}x==="["?l++:x==="]"&&l--}const d=a.length===0?s:s.substring(c),h=d.startsWith(wr),p=h?d.substring(1):d,b=u&&u>c?u-c:void 0;return{modifiers:a,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:b}}}function Do(t){if(t.length<=1)return t;const e=[];let n=[];return t.forEach(r=>{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e}function jo(t){return{cache:Mo(t.cacheSize),splitModifiers:Ro(t),...Co(t)}}const Oo=/\s+/;function Lo(t,e){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:i}=e,o=new Set;return t.trim().split(Oo).map(s=>{const{modifiers:a,hasImportantModifier:l,baseClassName:c,maybePostfixModifierPosition:u}=n(s);let d=r(u?c.substring(0,u):c),h=!!u;if(!d){if(!u)return{isTailwindClass:!1,originalClassName:s};if(d=r(c),!d)return{isTailwindClass:!1,originalClassName:s};h=!1}const p=Do(a).join(":");return{isTailwindClass:!0,modifierId:l?p+wr:p,classGroupId:d,originalClassName:s,hasPostfixModifier:h}}).reverse().filter(s=>{if(!s.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:c}=s,u=a+l;return o.has(u)?!1:(o.add(u),i(l,c).forEach(d=>o.add(a+d)),!0)}).reverse().map(s=>s.originalClassName).join(" ")}function Fo(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=Tr(e))&&(r&&(r+=" "),r+=n);return r}function Tr(t){if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=Tr(t[r]))&&(n&&(n+=" "),n+=e);return n}function Io(t,...e){let n,r,i,o=s;function s(l){const c=e.reduce((u,d)=>d(u),t());return n=jo(c),r=n.cache.get,i=n.cache.set,o=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=Lo(l,n);return i(l,u),u}return function(){return o(Fo.apply(null,arguments))}}function B(t){const e=n=>n[t]||[];return e.isThemeGetter=!0,e}const Pr=/^\[(?:([a-z-]+):)?(.+)\]$/i,Bo=/^\d+\/\d+$/,_o=new Set(["px","full","screen"]),No=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zo=/\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$/,Uo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,$o=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Wo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function ft(t){return Rt(t)||_o.has(t)||Bo.test(t)}function vt(t){return Ut(t,"length",Jo)}function Rt(t){return!!t&&!Number.isNaN(Number(t))}function xe(t){return Ut(t,"number",Rt)}function Qt(t){return!!t&&Number.isInteger(Number(t))}function Ko(t){return t.endsWith("%")&&Rt(t.slice(0,-1))}function E(t){return Pr.test(t)}function xt(t){return No.test(t)}const Go=new Set(["length","size","percentage"]);function Yo(t){return Ut(t,Go,Sr)}function Ho(t){return Ut(t,"position",Sr)}const Xo=new Set(["image","url"]);function qo(t){return Ut(t,Xo,ta)}function Zo(t){return Ut(t,"",Qo)}function te(){return!0}function Ut(t,e,n){const r=Pr.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1}function Jo(t){return zo.test(t)&&!Uo.test(t)}function Sr(){return!1}function Qo(t){return $o.test(t)}function ta(t){return Wo.test(t)}function ea(){const t=B("colors"),e=B("spacing"),n=B("blur"),r=B("brightness"),i=B("borderColor"),o=B("borderRadius"),s=B("borderSpacing"),a=B("borderWidth"),l=B("contrast"),c=B("grayscale"),u=B("hueRotate"),d=B("invert"),h=B("gap"),p=B("gradientColorStops"),b=B("gradientColorStopPositions"),m=B("inset"),x=B("margin"),P=B("opacity"),y=B("padding"),v=B("saturate"),C=B("scale"),M=B("sepia"),I=B("skew"),J=B("space"),k=B("translate"),_=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],ot=()=>["auto",E,e],j=()=>[E,e],Q=()=>["",ft,vt],tt=()=>["auto",Rt,E],N=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],yt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],dt=()=>["start","end","center","between","around","evenly","stretch"],kt=()=>["","0",E],be=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Mt=()=>[Rt,xe],Nt=()=>[Rt,E];return{cacheSize:500,separator:":",theme:{colors:[te],spacing:[ft,vt],blur:["none","",xt,E],brightness:Mt(),borderColor:[t],borderRadius:["none","","full",xt,E],borderSpacing:j(),borderWidth:Q(),contrast:Mt(),grayscale:kt(),hueRotate:Nt(),invert:kt(),gap:j(),gradientColorStops:[t],gradientColorStopPositions:[Ko,vt],inset:ot(),margin:ot(),opacity:Mt(),padding:j(),saturate:Mt(),scale:Mt(),sepia:kt(),skew:Nt(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",E]}],container:["container"],columns:[{columns:[xt]}],"break-after":[{"break-after":be()}],"break-before":[{"break-before":be()}],"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"],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:[...N(),E]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Qt,E]}],basis:[{basis:ot()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",E]}],grow:[{grow:kt()}],shrink:[{shrink:kt()}],order:[{order:["first","last","none",Qt,E]}],"grid-cols":[{"grid-cols":[te]}],"col-start-end":[{col:["auto",{span:["full",Qt,E]},E]}],"col-start":[{"col-start":tt()}],"col-end":[{"col-end":tt()}],"grid-rows":[{"grid-rows":[te]}],"row-start-end":[{row:["auto",{span:[Qt,E]},E]}],"row-start":[{"row-start":tt()}],"row-end":[{"row-end":tt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",E]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",E]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...dt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...dt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...dt(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[J]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[J]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",E,e]}],"min-w":[{"min-w":[E,e,"min","max","fit"]}],"max-w":[{"max-w":[E,e,"none","full","min","max","fit","prose",{screen:[xt]},xt]}],h:[{h:[E,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[E,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[E,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[E,e,"auto","min","max","fit"]}],"font-size":[{text:["base",xt,vt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",xe]}],"font-family":[{font:[te]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",E]}],"line-clamp":[{"line-clamp":["none",Rt,xe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ft,E]}],"list-image":[{"list-image":["none",E]}],"list-style-type":[{list:["none","disc","decimal",E]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ft,vt]}],"underline-offset":[{"underline-offset":["auto",ft,E]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",E]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",E]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...N(),Ho]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Yo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},qo]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:H()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[ft,E]}],"outline-w":[{outline:[ft,vt]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[ft,vt]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",xt,Zo]}],"shadow-color":[{shadow:[te]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...yt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":yt()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",xt,E]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[v]}],sepia:[{sepia:[M]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",E]}],duration:[{duration:Nt()}],ease:[{ease:["linear","in","out","in-out",E]}],delay:[{delay:Nt()}],animate:[{animate:["none","spin","ping","pulse","bounce",E]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Qt,E]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[I]}],"skew-y":[{"skew-y":[I]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",E]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],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",E]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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",E]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[ft,vt,xe]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}}const na=Io(ea),Dt=(...t)=>na(So(t));function Cr(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=Cr(t[e]))&&(r&&(r+=" "),r+=n);else for(e in t)t[e]&&(r&&(r+=" "),r+=e);return r}function ra(){for(var t,e,n=0,r="";n<arguments.length;)(t=arguments[n++])&&(e=Cr(t))&&(r&&(r+=" "),r+=e);return r}const Ar=t=>typeof t=="boolean"?"".concat(t):t===0?"0":t,Vr=ra,lt=(t,e)=>n=>{var r;if((e==null?void 0:e.variants)==null)return Vr(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=e,s=Object.keys(i).map(c=>{const u=n==null?void 0:n[c],d=o==null?void 0:o[c];if(u===null)return null;const h=Ar(u)||Ar(d);return i[c][h]}),a=n&&Object.entries(n).reduce((c,u)=>{let[d,h]=u;return h===void 0||(c[d]=h),c},{}),l=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:h,...p}=u;return Object.entries(p).every(b=>{let[m,x]=b;return Array.isArray(x)?x.includes({...o,...a}[m]):{...o,...a}[m]===x})?[...c,d,h]:c},[]);return Vr(t,s,l,n==null?void 0:n.class,n==null?void 0:n.className)},wt=({iconName:t,...e})=>{if(pr[t]){const n=pr[t];return V.jsx(n,{...e})}else return console.error(`Icon ${t} not found`),null},ia=lt("flex w-fit items-center justify-center gap-2 rounded-sm transition-colors",{variants:{status:{locked:"bg-bg-disabled text-content-text-subtle","locked-outline":"text-content-text-subtlest outline !outline-sm outline-border-disabled",available:"bg-bg-utility-discovery-bolder text-content-text-inverse","available-outline":"text-content-utility-discovery outline !outline-sm outline-border-utility-discovery",inProgress:"bg-bg-accent-blue-subtle text-content-text-default","inProgress-outline":"text-content-accent-blue outline !outline-sm outline-border-accent-blue",completed:"bg-bg-utility-success-bolder text-content-text-default","completed-outline":"text-content-utility-success outline !outline-sm outline-border-utility-success",viewed:"bg-bg-utility-informative-bolder text-content-text-inverse","viewed-outline":"text-content-utility-informative outline !outline-sm outline-border-utility-informative"},intent:{neutral:"bg-bg-bolder text-content-text-inverse","neutral-outline":"text-content-text-default outline !outline-sm outline-border-bolder",blue:"bg-bg-accent-blue text-content-text-inverse","blue-outline":"text-content-accent-blue outline !outline-sm outline-border-accent-blue",mustard:"bg-bg-accent-mustard text-content-text-default","mustard-outline":"text-content-accent-mustard outline !outline-sm outline-border-accent-mustard",green:"bg-bg-accent-green text-content-text-inverse","green-outline":"text-content-accent-green outline !outline-sm outline-border-accent-green",lime:"bg-bg-accent-lime text-content-text-default","lime-outline":"text-content-accent-lime outline !outline-sm outline-border-accent-lime",fuchsia:"bg-bg-accent-fuchsia text-content-text-inverse","fuchsia-outline":"text-content-accent-fuchsia outline !outline-sm outline-border-accent-fuchsia",marine:"bg-bg-accent-marine text-content-text-inverse","marine-outline":"text-content-accent-marine outline !outline-sm outline-border-accent-marine",ice:"bg-bg-accent-ice text-content-text-inverse","ice-outline":"text-content-accent-ice outline !outline-sm outline-border-accent-ice",gray:"bg-bg-accent-gray text-content-text-inverse","gray-outline":"text-content-accent-gray outline !outline-sm outline-border-accent-gray"},size:{small:"h-[34px] px-4 py-2 text-2xs",medium:"h-9 px-4 py-2 text-sm",large:"h-10 px-4 py-2 text-base"},fontWeight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},rounded:{rectangle:"rounded-sm",full:"rounded-full"}},defaultVariants:{size:"medium",fontWeight:"regular",rounded:"rectangle"}}),sa=({children:t,iconLeft:e,iconRight:n,status:r,intent:i,size:o="medium",rounded:s="rectangle",className:a,...l})=>{typeof e=="string"&&(e={name:e}),typeof n=="string"&&(n={name:n});const c={small:"h-4",medium:"h-4",large:"h-5"},u=r?{status:r}:{intent:i};return V.jsxs("span",{className:Dt(ia({...u,size:o,rounded:s,className:a})),...l,children:[e&&V.jsx(wt,{iconName:e.name,stroke:e.stroke,className:c[o||"medium"]}),t,n&&V.jsx(wt,{iconName:n.name,stroke:n.stroke,className:c[o||"medium"]})]})},He=({className:t})=>V.jsx(wt,{iconName:"IconLoader2",className:`${t} animate-spin`}),Xe="flex items-center justify-center gap-2 rounded-sm !border-xs transition-colors",oa=lt(Xe,{variants:{intent:{primary:["bg-button-primary-background-enabled","text-button-primary-content-enabled","border-button-primary-border-enabled","lg:hover:bg-button-primary-background-hover","lg:hover:text-button-primary-content-hover","lg:hover:border-button-primary-border-hover","lg:active:bg-button-primary-background-pressed","lg:active:text-button-primary-content-pressed","lg:active:border-button-primary-border-pressed"],secondary:["bg-button-secondary-background-enabled","text-button-secondary-content-enabled","border-button-secondary-border-enabled","lg:hover:bg-button-secondary-background-hover","lg:hover:text-button-secondary-content-hover","lg:hover:border-button-secondary-border-hover","lg:active:bg-button-secondary-background-pressed","lg:active:text-button-secondary-content-pressed","lg:active:border-button-secondary-border-pressed"],tertiary:["bg-button-tertiary-background-enabled","text-button-tertiary-content-enabled","border-button-tertiary-border-enabled","lg:hover:bg-button-tertiary-background-hover","lg:hover:text-button-tertiary-content-hover","lg:hover:border-button-tertiary-border-hover","lg:active:bg-button-tertiary-background-pressed","lg:active:text-button-tertiary-content-pressed","lg:active:border-button-tertiary-border-pressed"],ghost:["bg-button-ghost-background-enabled","text-button-ghost-content-enabled","border-button-ghost-border-enabled","lg:hover:bg-button-ghost-background-hover","lg:hover:text-button-ghost-content-hover","lg:hover:border-button-ghost-border-hover","lg:active:bg-button-ghost-background-pressed","lg:active:text-button-ghost-content-pressed","lg:active:border-button-ghost-border-pressed"],outline:["bg-button-outline-background-enabled","text-button-outline-content-enabled","border-button-outline-border-enabled","lg:hover:bg-button-outline-background-hover","lg:hover:text-button-outline-content-hover","lg:hover:border-button-outline-border-hover","lg:active:bg-button-outline-background-pressed","lg:active:text-button-outline-content-pressed","lg:active:border-button-outline-border-pressed"],destructive:["bg-button-destructive-background-enabled","text-button-destructive-content-enabled","border-button-destructive-border-enabled","lg:hover:bg-button-destructive-background-hover","lg:hover:text-button-destructive-content-hover","lg:hover:border-button-destructive-border-hover","lg:active:bg-button-destructive-background-pressed","lg:active:text-button-destructive-content-pressed","lg:active:border-button-destructive-border-pressed"],link:["border-button-link-border-enabled","text-button-link-content-enabled","lg:hover:border-button-link-border-hover","lg:hover:text-button-link-content-hover","lg:active:border-button-link-border-pressed","lg:active:text-button-link-content-pressed"]},size:{small:"h-10 text-xs",medium:"h-11 text-sm",large:"h-12 text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},compoundVariants:[{intent:"link",className:"w-fit rounded-none !border-[0px] !border-b-xs px-1"},{intent:["primary","secondary","tertiary","ghost","outline","destructive"],size:"small",className:"min-w-36 p-button-sm"},{intent:["primary","secondary","tertiary","ghost","outline","destructive"],size:"medium",className:"min-w-44 p-button-md"},{intent:["primary","secondary","tertiary","ghost","outline","destructive"],size:"large",className:"min-w-52 p-button-lg"}],defaultVariants:{intent:"primary",size:"medium",weight:"regular"}}),aa=lt(`${Xe} cursor-default`,{variants:{intent:{primary:["border-button-primary-border-pressed","bg-button-primary-background-pressed","text-button-primary-content-pressed"],secondary:["border-button-secondary-border-enabled","bg-button-secondary-background-enabled","text-button-secondary-content-enabled"],tertiary:["border-button-tertiary-border-enabled","bg-button-tertiary-background-enabled","text-button-tertiary-content-enabled"],ghost:["border-button-ghost-border-pressed","bg-button-ghost-background-pressed","text-button-ghost-content-pressed"],outline:["border-button-outline-border-pressed","bg-button-outline-background-pressed","text-button-outline-content-pressed"],destructive:["border-button-destructive-border-pressed","bg-button-destructive-background-pressed","text-button-destructive-content-pressed"],link:["border-b border-button-link-border-pressed","text-button-link-content-pressed"]},size:{small:"h-10text-xs",medium:"h-11 text-sm",large:"h-12 text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},compoundVariants:[{intent:"link",className:"w-24 rounded-none !border-[0px] !border-b-xs px-1"},{intent:["primary","secondary","tertiary","ghost","outline","destructive"],size:"small",className:"min-w-36 p-button-sm"},{intent:["primary","secondary","tertiary","ghost","outline","destructive"],size:"medium",className:"min-w-44 p-button-md"},{intent:["primary","secondary","tertiary","ghost","outline","destructive"],size:"large",className:"min-w-52 p-button-lg"}],defaultVariants:{intent:"primary",size:"medium",weight:"regular"}}),la=lt(Xe,{variants:{intent:{primary:["border-button-primary-border-disabled","bg-button-primary-background-disabled","text-button-primary-content-disabled"],secondary:["border-button-secondary-border-disabled","bg-button-secondary-background-disabled","text-button-secondary-content-disabled"],tertiary:["border-button-tertiary-border-disabled","bg-button-tertiary-background-disabled","text-button-tertiary-content-disabled"],ghost:["border-button-ghost-border-disabled","bg-button-ghost-background-disabled","text-button-ghost-content-disabled"],outline:["border-button-outline-border-disabled","bg-button-outline-background-disabled","text-button-outline-content-disabled"],destructive:["border-button-destructive-border-disabled","bg-button-destructive-background-disabled","text-button-destructive-content-disabled"],link:["border-b border-button-link-border-disabled","text-button-link-content-disabled"]},size:{small:"h-10 text-xs",medium:"h-11 text-sm",large:"h-12 text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},compoundVariants:[{intent:"link",className:"w-24 rounded-none !border-[0px] !border-b-xs px-1"},{intent:["primary","secondary","tertiary","ghost","outline","destructive"],size:"small",className:"min-w-36 p-button-sm"},{intent:["primary","secondary","tertiary","ghost","outline","destructive"],size:"medium",className:"min-w-44 p-button-md"},{intent:["primary","secondary","tertiary","ghost","outline","destructive"],size:"large",className:"min-w-52 p-button-lg"}],defaultVariants:{intent:"primary",size:"medium",weight:"regular"}}),ca=({className:t,intent:e,size:n,children:r,iconLeft:i,iconRight:o,isLoading:s,disabled:a,...l})=>{typeof i=="string"&&(i={name:i}),typeof o=="string"&&(o={name:o});const c={small:"h-5",medium:"h-5",large:"h-6"};return V.jsx("button",{className:Dt(s?aa({intent:e,size:n,className:t}):a?la({intent:e,size:n,className:t}):oa({intent:e,size:n,className:t})),disabled:a||s,...l,children:s?V.jsx(He,{className:c[n||"medium"]}):V.jsxs(V.Fragment,{children:[i&&V.jsx(wt,{iconName:i.name,stroke:i.stroke,className:c[n||"medium"]}),r,o&&V.jsx(wt,{iconName:o.name,stroke:o.stroke,className:c[n||"medium"]})]})})},qe="flex items-center justify-center transition-colors relative border !border-xs",ua=lt(qe,{variants:{intent:{fill:["bg-button-icon-fill-bg-enabled","text-button-icon-fill-content-enabled","border-button-icon-fill-border-enabled","lg:hover:bg-button-icon-fill-bg-hover","lg:hover:text-button-icon-fill-content-hover","lg:hover:border-button-icon-fill-border-hover","lg:active:bg-button-icon-fill-border-disabled","lg:active:text-button-icon-fill-content-disabled","lg:active:border-button-icon-fill-border-disabled"],outline:["bg-button-icon-outline-bg-enabled","text-button-icon-outline-content-enabled","border-button-icon-outline-border-enabled","lg:hover:bg-button-icon-outline-bg-hover","lg:hover:text-button-icon-outline-content-hover","lg:hover:border-button-icon-outline-border-hover","lg:active:bg-button-icon-outline-bg-pressed","lg:active:text-button-icon-outline-content-pressed","lg:active:border-button-icon-outline-border-pressed"],ghost:["bg-button-icon-ghost-bg-enabled","text-button-icon-ghost-content-enabled","border-button-icon-ghost-border-enabled","lg:hover:bg-button-icon-ghost-bg-hover","lg:hover:text-button-icon-ghost-content-hover","lg:hover:border-button-icon-ghost-border-hover","lg:active:bg-button-icon-ghost-bg-pressed","lg:active:text-button-icon-ghost-content-pressed","lg:active:border-button-icon-ghost-border-pressed"]},size:{small:"h-[38px] w-[38px] p-[9px]",medium:"h-11 w-11 p-[10px]",large:"h-12 w-12 p-3"},rounded:{full:"rounded-full",sm:"rounded-sm"}},defaultVariants:{intent:"fill",size:"medium",rounded:"sm"}}),da=lt(qe,{variants:{intent:{fill:["border-button-icon-fill-border-pressed","bg-button-icon-fill-bg-pressed","text-button-icon-fill-content-pressed"],outline:["border-button-icon-outline-border-enabled","bg-button-icon-outline-bg-enabled","text-button-icon-outline-content-enabled"],ghost:["border-button-icon-ghost-border-enabled","bg-button-icon-ghost-bg-enabled","text-button-icon-ghost-content-enabled"]},size:{small:"h-[38px] w-[38px] p-[9px]",medium:"h-11 w-11 p-[10px]",large:"h-12 w-12 p-3"},rounded:{full:"rounded-full",sm:"rounded-sm"}},defaultVariants:{intent:"fill",size:"medium",rounded:"sm"}}),fa=lt(qe,{variants:{intent:{fill:["border-button-icon-fill-border-disabled","bg-button-icon-fill-bg-disabled","text-button-icon-fill-content-disabled"],outline:["border-button-icon-outline-border-disabled","bg-button-icon-outline-bg-disabled","text-button-icon-outline-content-disabled"],ghost:["border-button-icon-ghost-border-disabled","bg-button-icon-ghost-bg-disabled","text-button-icon-ghost-content-disabled"]},size:{small:"h-[38px] w-[38px] p-[9px]",medium:"h-11 w-11 p-[10px]",large:"h-12 w-12 p-3"},rounded:{full:"rounded-full",sm:"rounded-sm"}},defaultVariants:{intent:"fill",size:"medium",rounded:"sm"}}),ha=({iconName:t,className:e,intent:n="fill",size:r="medium",rounded:i,disabled:o,isLoading:s,notification:a,...l})=>{typeof t=="string"&&(t={name:t});const c={small:"h-5",medium:"h-5",large:"h-6"};return V.jsxs("button",{className:Dt(s?da({intent:n,size:r,rounded:i,className:e}):o?fa({intent:n,size:r,rounded:i,className:e}):ua({intent:n,size:r,rounded:i,className:e})),disabled:o||s,...l,children:[a&&!s&&V.jsx(wt,{iconName:"IconCircleFilled",className:`absolute ${i==="full"?"right-2 top-2":"right-1 top-1"} h-[6px] w-[6px] ${n==="fill"?"text-button-primary-content-pressed":"text-button-primary-background-enabled"}`}),s?V.jsx(He,{className:c[r||"medium"]}):V.jsx(V.Fragment,{children:t&&V.jsx(wt,{iconName:t.name,stroke:t.stroke,className:c[r||"medium"]})})]})},pa=lt("flex flex-col gap-3 p-4 rounded-lg",{variants:{intent:{default:"text-content-primary bg-bg-white",outline:"!border-xs border-solid border-border-utility-discovery bg-bg-white text-content-text-default"},shadow:{none:"",xs:"shadow-xs",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg",xl:"shadow-xl","2xl":"shadow-2xl"}},defaultVariants:{intent:"default",shadow:"none"}}),ma=({className:t,intent:e,children:n,...r})=>V.jsx("div",{className:Dt(pa({intent:e,className:t})),...r,children:n}),Ze=T.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),we=T.createContext({}),Te=T.createContext(null),Je=typeof document<"u",Qe=Je?T.useLayoutEffect:T.useEffect,Er=T.createContext({strict:!1}),tn=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),kr="data-"+tn("framerAppearId"),ga={skipAnimations:!1,useManualTiming:!1};class Mr{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function ba(t){let e=new Mr,n=new Mr,r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(l,c=!1,u=!1)=>{const d=u&&i,h=d?e:n;return c&&s.add(l),h.add(l)&&d&&i&&(r=e.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let c=0;c<r;c++){const u=e.order[c];s.has(u)&&(a.schedule(u),t()),u(l)}i=!1,o&&(o=!1,a.process(l))}};return a}const Pe=["read","resolveKeyframes","update","preRender","render","postRender"],ya=40;function Rr(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Pe.reduce((d,h)=>(d[h]=ba(()=>n=!0),d),{}),s=d=>{o[d].process(i)},a=()=>{const d=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(d-i.timestamp,ya),1),i.timestamp=d,i.isProcessing=!0,Pe.forEach(s),i.isProcessing=!1,n&&e&&(r=!1,t(a))},l=()=>{n=!0,r=!0,i.isProcessing||t(a)};return{schedule:Pe.reduce((d,h)=>{const p=o[h];return d[h]=(b,m=!1,x=!1)=>(n||l(),p.schedule(b,m,x)),d},{}),cancel:d=>Pe.forEach(h=>o[h].cancel(d)),state:i,steps:o}}const{schedule:en,cancel:pf}=Rr(queueMicrotask,!1);function va(t,e,n,r){const{visualElement:i}=T.useContext(we),o=T.useContext(Er),s=T.useContext(Te),a=T.useContext(Ze).reducedMotion,l=T.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(t,{visualState:e,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const c=l.current;T.useInsertionEffect(()=>{c&&c.update(n,s)});const u=T.useRef(!!(n[kr]&&!window.HandoffComplete));return Qe(()=>{c&&(en.postRender(c.render),u.current&&c.animationState&&c.animationState.animateChanges())}),T.useEffect(()=>{c&&(c.updateFeatures(),!u.current&&c.animationState&&c.animationState.animateChanges(),u.current&&(u.current=!1,window.HandoffComplete=!0))}),c}function $t(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function xa(t,e,n){return T.useCallback(r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):$t(n)&&(n.current=r))},[e])}function ee(t){return typeof t=="string"||Array.isArray(t)}function Se(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const nn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],rn=["initial",...nn];function Ce(t){return Se(t.animate)||rn.some(e=>ee(t[e]))}function Dr(t){return!!(Ce(t)||t.variants)}function wa(t,e){if(Ce(t)){const{initial:n,animate:r}=t;return{initial:n===!1||ee(n)?n:void 0,animate:ee(r)?r:void 0}}return t.inherit!==!1?e:{}}function Ta(t){const{initial:e,animate:n}=wa(t,T.useContext(we));return T.useMemo(()=>({initial:e,animate:n}),[jr(e),jr(n)])}function jr(t){return Array.isArray(t)?t.join(" "):t}const Or={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"]},ne={};for(const t in Or)ne[t]={isEnabled:e=>Or[t].some(n=>!!e[n])};function Pa(t){for(const e in t)ne[e]={...ne[e],...t[e]}}const sn=T.createContext({}),Lr=T.createContext({}),Sa=Symbol.for("motionComponentSymbol");function Ca({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){t&&Pa(t);function o(a,l){let c;const u={...T.useContext(Ze),...a,layoutId:Aa(a)},{isStatic:d}=u,h=Ta(a),p=r(a,d);if(!d&&Je){h.visualElement=va(i,p,u,e);const b=T.useContext(Lr),m=T.useContext(Er).strict;h.visualElement&&(c=h.visualElement.loadFeatures(u,m,t,b))}return V.jsxs(we.Provider,{value:h,children:[c&&h.visualElement?V.jsx(c,{visualElement:h.visualElement,...u}):null,n(i,a,xa(p,h.visualElement,l),p,d,h.visualElement)]})}const s=T.forwardRef(o);return s[Sa]=i,s}function Aa({layoutId:t}){const e=T.useContext(sn).id;return e&&t!==void 0?e+"-"+t:t}function Va(t){function e(r,i={}){return Ca(t(r,i))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(r,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const Ea=["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 on(t){return typeof t!="string"||t.includes("-")?!1:!!(Ea.indexOf(t)>-1||/[A-Z]/u.test(t))}const Ae={};function ka(t){Object.assign(Ae,t)}const re=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],jt=new Set(re);function Fr(t,{layout:e,layoutId:n}){return jt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Ae[t]||t==="opacity")}const q=t=>!!(t&&t.getVelocity),Ma={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ra=re.length;function Da(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<Ra;s++){const a=re[s];if(t[a]!==void 0){const l=Ma[a]||a;o+=`${l}(${t[a]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(t,r?"":o):n&&r&&(o="none"),o}const Ir=t=>e=>typeof e=="string"&&e.startsWith(t),Br=Ir("--"),ja=Ir("var(--"),an=t=>ja(t)?Oa.test(t.split("/*")[0].trim()):!1,Oa=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,La=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Tt=(t,e,n)=>n>e?e:n<t?t:n,Wt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},ie={...Wt,transform:t=>Tt(0,1,t)},Ve={...Wt,default:1},se=t=>Math.round(t*1e5)/1e5,ln=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Fa=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Ia=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function oe(t){return typeof t=="string"}const ae=t=>({test:e=>oe(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Pt=ae("deg"),ct=ae("%"),S=ae("px"),Ba=ae("vh"),_a=ae("vw"),_r={...ct,parse:t=>ct.parse(t)/100,transform:t=>ct.transform(t*100)},Nr={...Wt,transform:Math.round},zr={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,radius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,size:S,top:S,right:S,bottom:S,left:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,rotate:Pt,rotateX:Pt,rotateY:Pt,rotateZ:Pt,scale:Ve,scaleX:Ve,scaleY:Ve,scaleZ:Ve,skew:Pt,skewX:Pt,skewY:Pt,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:ie,originX:_r,originY:_r,originZ:S,zIndex:Nr,backgroundPositionX:S,backgroundPositionY:S,fillOpacity:ie,strokeOpacity:ie,numOctaves:Nr};function cn(t,e,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=t;let l=!1,c=!1,u=!0;for(const d in e){const h=e[d];if(Br(d)){o[d]=h;continue}const p=zr[d],b=La(h,p);if(jt.has(d)){if(l=!0,s[d]=b,!u)continue;h!==(p.default||0)&&(u=!1)}else d.startsWith("origin")?(c=!0,a[d]=b):i[d]=b}if(e.transform||(l||r?i.transform=Da(t.transform,n,u,r):i.transform&&(i.transform="none")),c){const{originX:d="50%",originY:h="50%",originZ:p=0}=a;i.transformOrigin=`${d} ${h} ${p}`}}const un=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ur(t,e,n){for(const r in e)!q(e[r])&&!Fr(r,n)&&(t[r]=e[r])}function Na({transformTemplate:t},e,n){return T.useMemo(()=>{const r=un();return cn(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}function za(t,e,n){const r=t.style||{},i={};return Ur(i,r,t),Object.assign(i,Na(t,e,n)),i}function Ua(t,e,n){const r={},i=za(t,e,n);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r}const $a=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 Ee(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||$a.has(t)}let $r=t=>!Ee(t);function Wa(t){t&&($r=e=>e.startsWith("on")?!Ee(e):t(e))}try{Wa(require("@emotion/is-prop-valid").default)}catch{}function Ka(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||($r(i)||n===!0&&Ee(i)||!e&&!Ee(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}function Wr(t,e,n){return typeof t=="string"?t:S.transform(e+n*t)}function Ga(t,e,n){const r=Wr(e,t.x,t.width),i=Wr(n,t.y,t.height);return`${r} ${i}`}const Ya={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ha={offset:"strokeDashoffset",array:"strokeDasharray"};function Xa(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?Ya:Ha;t[o.offset]=S.transform(-r);const s=S.transform(e),a=S.transform(n);t[o.array]=`${s} ${a}`}function dn(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,d,h){if(cn(t,c,u,h),d){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:p,style:b,dimensions:m}=t;p.transform&&(m&&(b.transform=p.transform),delete p.transform),m&&(i!==void 0||o!==void 0||b.transform)&&(b.transformOrigin=Ga(m,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(p.x=e),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),s!==void 0&&Xa(p,s,a,l,!1)}const Kr=()=>({...un(),attrs:{}}),fn=t=>typeof t=="string"&&t.toLowerCase()==="svg";function qa(t,e,n,r){const i=T.useMemo(()=>{const o=Kr();return dn(o,e,{enableHardwareAcceleration:!1},fn(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Ur(o,t.style,t),i.style={...o,...i.style}}return i}function Za(t=!1){return(n,r,i,{latestValues:o},s)=>{const l=(on(n)?qa:Ua)(r,o,s,n),c=Ka(r,typeof n=="string",t),u=n!==T.Fragment?{...c,...l,ref:i}:{},{children:d}=r,h=T.useMemo(()=>q(d)?d.get():d,[d]);return T.createElement(n,{...u,children:h})}}function Gr(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}const Yr=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 Hr(t,e,n,r){Gr(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(Yr.has(i)?i:tn(i),e.attrs[i])}function hn(t,e,n){var r;const{style:i}=t,o={};for(const s in i)(q(i[s])||e.style&&q(e.style[s])||Fr(s,t)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[s]=i[s]);return o}function Xr(t,e,n){const r=hn(t,e,n);for(const i in t)if(q(t[i])||q(e[i])){const o=re.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=t[i]}return r}function qr(t){const e=[{},{}];return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function pn(t,e,n,r){if(typeof e=="function"){const[i,o]=qr(r);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=qr(r);e=e(n!==void 0?n:t.custom,i,o)}return e}function Zr(t){const e=T.useRef(null);return e.current===null&&(e.current=t()),e.current}const mn=t=>Array.isArray(t),Ja=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Qa=t=>mn(t)?t[t.length-1]||0:t;function ke(t){const e=q(t)?t.get():t;return Ja(e)?e.toValue():e}function tl({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,i,o){const s={latestValues:el(r,i,o,t),renderState:e()};return n&&(s.mount=a=>n(r,a,s)),s}const Jr=t=>(e,n)=>{const r=T.useContext(we),i=T.useContext(Te),o=()=>tl(t,e,r,i);return n?o():Zr(o)};function el(t,e,n,r){const i={},o=r(t,{});for(const h in o)i[h]=ke(o[h]);let{initial:s,animate:a}=t;const l=Ce(t),c=Dr(t);e&&c&&!l&&t.inherit!==!1&&(s===void 0&&(s=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const d=u?a:s;return d&&typeof d!="boolean"&&!Se(d)&&(Array.isArray(d)?d:[d]).forEach(p=>{const b=pn(t,p);if(!b)return;const{transitionEnd:m,transition:x,...P}=b;for(const y in P){let v=P[y];if(Array.isArray(v)){const C=u?v.length-1:0;v=v[C]}v!==null&&(i[y]=v)}for(const y in m)i[y]=m[y]}),i}const G=t=>t,{schedule:L,cancel:St,state:Y,steps:gn}=Rr(typeof requestAnimationFrame<"u"?requestAnimationFrame:G,!0),nl={useVisualState:Jr({scrapeMotionValuesFromProps:Xr,createRenderState:Kr,onMount:(t,e,{renderState:n,latestValues:r})=>{L.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),L.render(()=>{dn(n,r,{enableHardwareAcceleration:!1},fn(e.tagName),t.transformTemplate),Hr(e,n)})}})},rl={useVisualState:Jr({scrapeMotionValuesFromProps:hn,createRenderState:un})};function il(t,{forwardMotionProps:e=!1},n,r){return{...on(t)?nl:rl,preloadedFeatures:n,useRender:Za(e),createVisualElement:r,Component:t}}function ht(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const Qr=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Me(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}const sl=t=>e=>Qr(e)&&t(e,Me(e));function pt(t,e,n,r){return ht(t,e,sl(n),r)}const ol=(t,e)=>n=>e(t(n)),mt=(...t)=>t.reduce(ol);function ti(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const ei=ti("dragHorizontal"),ni=ti("dragVertical");function ri(t){let e=!1;if(t==="y")e=ni();else if(t==="x")e=ei();else{const n=ei(),r=ni();n&&r?e=()=>{n(),r()}:(n&&n(),r&&r())}return e}function ii(){const t=ri(!0);return t?(t(),!1):!0}class Ct{constructor(e){this.isMounted=!1,this.node=e}update(){}}function si(t,e){const n=e?"pointerenter":"pointerleave",r=e?"onHoverStart":"onHoverEnd",i=(o,s)=>{if(o.pointerType==="touch"||ii())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e);const l=a[r];l&&L.postRender(()=>l(o,s))};return pt(t.current,n,i,{passive:!t.getProps()[r]})}class al extends Ct{mount(){this.unmount=mt(si(this.node,!0),si(this.node,!1))}unmount(){}}class ll extends Ct{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=mt(ht(this.node.current,"focus",()=>this.onFocus()),ht(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const oi=(t,e)=>e?t===e?!0:oi(t,e.parentElement):!1;function bn(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Me(n))}class cl extends Ct{constructor(){super(...arguments),this.removeStartListeners=G,this.removeEndListeners=G,this.removeAccessibleListeners=G,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=pt(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u,globalTapTarget:d}=this.node.getProps(),h=!d&&!oi(this.node.current,a.target)?u:c;h&&L.update(()=>h(a,l))},{passive:!(r.onTap||r.onPointerUp)}),s=pt(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=mt(o,s),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||bn("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&L.postRender(()=>u(l,c))})};this.removeEndListeners(),this.removeEndListeners=ht(this.node.current,"keyup",s),bn("down",(a,l)=>{this.startPress(a,l)})},n=ht(this.node.current,"keydown",e),r=()=>{this.isPressing&&bn("cancel",(o,s)=>this.cancelPress(o,s))},i=ht(this.node.current,"blur",r);this.removeAccessibleListeners=mt(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&L.postRender(()=>r(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ii()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&L.postRender(()=>r(e,n))}mount(){const e=this.node.getProps(),n=pt(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=ht(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=mt(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const yn=new WeakMap,vn=new WeakMap,ul=t=>{const e=yn.get(t.target);e&&e(t)},dl=t=>{t.forEach(ul)};function fl({root:t,...e}){const n=t||document;vn.has(n)||vn.set(n,{});const r=vn.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(dl,{root:t,...e})),r[i]}function hl(t,e,n){const r=fl(e);return yn.set(t,n),r.observe(t),()=>{yn.delete(t),r.unobserve(t)}}const pl={some:0,all:1};class ml extends Ct{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=e,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:pl[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),h=c?u:d;h&&h(l)};return hl(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(gl(e,n))&&this.startObserver()}unmount(){}}function gl({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const bl={inView:{Feature:ml},tap:{Feature:cl},focus:{Feature:ll},hover:{Feature:al}};function ai(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Re(t,e,n){const r=t.getProps();return pn(r,e,n!==void 0?n:r.custom,t)}const gt=t=>t*1e3,bt=t=>t/1e3,yl={type:"spring",stiffness:500,damping:25,restSpeed:10},vl=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),xl={type:"keyframes",duration:.8},wl={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Tl=(t,{keyframes:e})=>e.length>2?xl:jt.has(t)?t.startsWith("scale")?vl(e[1]):yl:wl;function Pl({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}function xn(t,e){return t[e]||t.default||t}const Sl=t=>t!==null;function De(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(Sl),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}let je;function Cl(){je=void 0}const At={now:()=>(je===void 0&&At.set(Y.isProcessing||ga.useManualTiming?Y.timestamp:performance.now()),je),set:t=>{je=t,queueMicrotask(Cl)}},li=t=>/^0[^.\s]+$/u.test(t);function Al(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||li(t):!0}let le=G,ut=G;process.env.NODE_ENV!=="production"&&(le=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},ut=(t,e)=>{if(!t)throw new Error(e)});const ci=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Vl=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function El(t){const e=Vl.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}const kl=4;function ui(t,e,n=1){ut(n<=kl,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=El(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const s=o.trim();return ci(s)?parseFloat(s):s}return an(i)?ui(i,e,n+1):i}const Ml=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),di=t=>t===Wt||t===S,fi=(t,e)=>parseFloat(t.split(", ")[e]),hi=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return fi(i[1],e);{const o=r.match(/^matrix\((.+)\)$/u);return o?fi(o[1],t):0}},Rl=new Set(["x","y","z"]),Dl=re.filter(t=>!Rl.has(t));function jl(t){const e=[];return Dl.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const Kt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:hi(4,13),y:hi(5,14)};Kt.translateX=Kt.x,Kt.translateY=Kt.y;const pi=t=>e=>e.test(t),mi=[Wt,S,ct,Pt,_a,Ba,{test:t=>t==="auto",parse:t=>t}],gi=t=>mi.find(pi(t)),Ot=new Set;let wn=!1,Tn=!1;function bi(){if(Tn){const t=Array.from(Ot).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=jl(r);i.length&&(n.set(r,i),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{var a;(a=r.getValue(o))===null||a===void 0||a.set(s)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Tn=!1,wn=!1,Ot.forEach(t=>t.complete()),Ot.clear()}function yi(){Ot.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Tn=!0)})}function Ol(){yi(),bi()}class Pn{constructor(e,n,r,i,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ot.add(this),wn||(wn=!0,L.read(yi),L.resolveKeyframes(bi))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:i}=this;for(let o=0;o<e.length;o++)if(e[o]===null)if(o===0){const s=i==null?void 0:i.get(),a=e[e.length-1];if(s!==void 0)e[0]=s;else if(r&&n){const l=r.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),i&&s===void 0&&i.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Ot.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ot.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Sn=(t,e)=>n=>!!(oe(n)&&Ia.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),vi=(t,e,n)=>r=>{if(!oe(r))return r;const[i,o,s,a]=r.match(ln);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Ll=t=>Tt(0,255,t),Cn={...Wt,transform:t=>Math.round(Ll(t))},Lt={test:Sn("rgb","red"),parse:vi("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Cn.transform(t)+", "+Cn.transform(e)+", "+Cn.transform(n)+", "+se(ie.transform(r))+")"};function Fl(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const An={test:Sn("#"),parse:Fl,transform:Lt.transform},Gt={test:Sn("hsl","hue"),parse:vi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+ct.transform(se(e))+", "+ct.transform(se(n))+", "+se(ie.transform(r))+")"},Z={test:t=>Lt.test(t)||An.test(t)||Gt.test(t),parse:t=>Lt.test(t)?Lt.parse(t):Gt.test(t)?Gt.parse(t):An.parse(t),transform:t=>oe(t)?t:t.hasOwnProperty("red")?Lt.transform(t):Gt.transform(t)};function Il(t){var e,n;return isNaN(t)&&oe(t)&&(((e=t.match(ln))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Fa))===null||n===void 0?void 0:n.length)||0)>0}const xi="number",wi="color",Bl="var",_l="var(",Ti="${}",Nl=/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 ce(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(Nl,l=>(Z.test(l)?(r.color.push(o),i.push(wi),n.push(Z.parse(l))):l.startsWith(_l)?(r.var.push(o),i.push(Bl),n.push(l)):(r.number.push(o),i.push(xi),n.push(parseFloat(l))),++o,Ti)).split(Ti);return{values:n,split:a,indexes:r,types:i}}function Pi(t){return ce(t).values}function Si(t){const{split:e,types:n}=ce(t),r=e.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=e[s],i[s]!==void 0){const a=n[s];a===xi?o+=se(i[s]):a===wi?o+=Z.transform(i[s]):o+=i[s]}return o}}const zl=t=>typeof t=="number"?0:t;function Ul(t){const e=Pi(t);return Si(t)(e.map(zl))}const Vt={test:Il,parse:Pi,createTransformer:Si,getAnimatableNone:Ul},$l=new Set(["brightness","contrast","saturate","opacity"]);function Wl(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(ln)||[];if(!r)return t;const i=n.replace(r,"");let o=$l.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const Kl=/\b([a-z-]*)\(.*?\)/gu,Vn={...Vt,getAnimatableNone:t=>{const e=t.match(Kl);return e?e.map(Wl).join(" "):t}},Gl={...zr,color:Z,backgroundColor:Z,outlineColor:Z,fill:Z,stroke:Z,borderColor:Z,borderTopColor:Z,borderRightColor:Z,borderBottomColor:Z,borderLeftColor:Z,filter:Vn,WebkitFilter:Vn},En=t=>Gl[t];function Ci(t,e){let n=En(t);return n!==Vn&&(n=Vt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Yl=new Set(["auto","none","0"]);function Hl(t,e,n){let r=0,i;for(;r<t.length&&!i;){const o=t[r];typeof o=="string"&&!Yl.has(o)&&ce(o).values.length&&(i=t[r]),r++}if(i&&n)for(const o of e)t[o]=Ci(n,i)}class Ai extends Pn{constructor(e,n,r,i){super(e,n,r,i,i==null?void 0:i.owner,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){const c=e[l];if(typeof c=="string"&&an(c)){const u=ui(c,n.current);u!==void 0&&(e[l]=u),l===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Ml.has(r)||e.length!==2)return;const[i,o]=e,s=gi(i),a=gi(o);if(s!==a)if(di(s)&&di(a))for(let l=0;l<e.length;l++){const c=e[l];typeof c=="string"&&(e[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let i=0;i<e.length;i++)Al(e[i])&&r.push(i);r.length&&Hl(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Kt[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(r,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const s=i.length-1,a=i[s];i[s]=Kt[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([l,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function Xl(t){let e;return()=>(e===void 0&&(e=t()),e)}const Vi=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Vt.test(t)||t==="0")&&!t.startsWith("url("));function ql(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function Zl(t,e,n,r){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],s=Vi(i,e),a=Vi(o,e);return le(s===a,`You are trying to animate ${e} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!s||!a?!1:ql(t)||n==="spring"&&r}class Ei{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:e,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,...a},this.updateFinishedPromise()}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Ol(),this._resolved}onKeyframesResolved(e,n){this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:s,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!Zl(e,r,i,o))if(s)this.options.duration=0;else{l==null||l(De(e,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const u=this.initPlayback(e,n);u!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function ki(t,e){return e?t*(1e3/e):0}const Jl=5;function Mi(t,e,n){const r=Math.max(e-Jl,0);return ki(n-t(r),e-r)}const kn=.001,Ql=.01,Ri=10,tc=.05,ec=1;function nc({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,o;le(t<=gt(Ri),"Spring duration must be 10 seconds or less");let s=1-e;s=Tt(tc,ec,s),t=Tt(Ql,Ri,bt(t)),s<1?(i=c=>{const u=c*s,d=u*t,h=u-n,p=Mn(c,s),b=Math.exp(-d);return kn-h/p*b},o=c=>{const d=c*s*t,h=d*n+n,p=Math.pow(s,2)*Math.pow(c,2)*t,b=Math.exp(-d),m=Mn(Math.pow(c,2),s);return(-i(c)+kn>0?-1:1)*((h-p)*b)/m}):(i=c=>{const u=Math.exp(-c*t),d=(c-n)*t+1;return-kn+u*d},o=c=>{const u=Math.exp(-c*t),d=(n-c)*(t*t);return u*d});const a=5/t,l=ic(i,o,a);if(t=gt(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:t}}}const rc=12;function ic(t,e,n){let r=n;for(let i=1;i<rc;i++)r=r-t(r)/e(r);return r}function Mn(t,e){return t*Math.sqrt(1-e*e)}const sc=["duration","bounce"],oc=["stiffness","damping","mass"];function Di(t,e){return e.some(n=>t[n]!==void 0)}function ac(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Di(t,oc)&&Di(t,sc)){const n=nc(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function ji({keyframes:t,restDelta:e,restSpeed:n,...r}){const i=t[0],o=t[t.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:c,duration:u,velocity:d,isResolvedFromDuration:h}=ac({...r,velocity:-bt(r.velocity||0)}),p=d||0,b=l/(2*Math.sqrt(a*c)),m=o-i,x=bt(Math.sqrt(a/c)),P=Math.abs(m)<5;n||(n=P?.01:2),e||(e=P?.005:.5);let y;if(b<1){const v=Mn(x,b);y=C=>{const M=Math.exp(-b*x*C);return o-M*((p+b*x*m)/v*Math.sin(v*C)+m*Math.cos(v*C))}}else if(b===1)y=v=>o-Math.exp(-x*v)*(m+(p+x*m)*v);else{const v=x*Math.sqrt(b*b-1);y=C=>{const M=Math.exp(-b*x*C),I=Math.min(v*C,300);return o-M*((p+b*x*m)*Math.sinh(I)+v*m*Math.cosh(I))/v}}return{calculatedDuration:h&&u||null,next:v=>{const C=y(v);if(h)s.done=v>=u;else{let M=p;v!==0&&(b<1?M=Mi(y,v,C):M=0);const I=Math.abs(M)<=n,J=Math.abs(o-C)<=e;s.done=I&&J}return s.value=s.done?o:C,s}}}function Oi({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=t[0],h={done:!1,value:d},p=k=>a!==void 0&&k<a||l!==void 0&&k>l,b=k=>a===void 0?l:l===void 0||Math.abs(a-k)<Math.abs(l-k)?a:l;let m=n*e;const x=d+m,P=s===void 0?x:s(x);P!==x&&(m=P-d);const y=k=>-m*Math.exp(-k/r),v=k=>P+y(k),C=k=>{const _=y(k),$=v(k);h.done=Math.abs(_)<=c,h.value=h.done?P:$};let M,I;const J=k=>{p(h.value)&&(M=k,I=ji({keyframes:[h.value,b(h.value)],velocity:Mi(v,k,h.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return J(0),{calculatedDuration:null,next:k=>{let _=!1;return!I&&M===void 0&&(_=!0,C(k),J(k)),M!==void 0&&k>=M?I.next(k-M):(!_&&C(k),h)}}}const Li=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,lc=1e-7,cc=12;function uc(t,e,n,r,i){let o,s,a=0;do s=e+(n-e)/2,o=Li(s,r,i)-t,o>0?n=s:e=s;while(Math.abs(o)>lc&&++a<cc);return s}function ue(t,e,n,r){if(t===e&&n===r)return G;const i=o=>uc(o,0,1,t,n);return o=>o===0||o===1?o:Li(i(o),e,r)}const dc=ue(.42,0,1,1),fc=ue(0,0,.58,1),Fi=ue(.42,0,.58,1),hc=t=>Array.isArray(t)&&typeof t[0]!="number",Ii=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Bi=t=>e=>1-t(1-e),Rn=t=>1-Math.sin(Math.acos(t)),_i=Bi(Rn),pc=Ii(Rn),Ni=ue(.33,1.53,.69,.99),Dn=Bi(Ni),mc=Ii(Dn),zi={linear:G,easeIn:dc,easeInOut:Fi,easeOut:fc,circIn:Rn,circInOut:pc,circOut:_i,backIn:Dn,backInOut:mc,backOut:Ni,anticipate:t=>(t*=2)<1?.5*Dn(t):.5*(2-Math.pow(2,-10*(t-1)))},Ui=t=>{if(Array.isArray(t)){ut(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return ue(e,n,r,i)}else if(typeof t=="string")return ut(zi[t]!==void 0,`Invalid easing type '${t}'`),zi[t];return t},de=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},z=(t,e,n)=>t+(e-t)*n;function jn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function gc({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,s=0;if(!e)i=o=s=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=jn(l,a,t+1/3),o=jn(l,a,t),s=jn(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const On=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},bc=[An,Lt,Gt],yc=t=>bc.find(e=>e.test(t));function $i(t){const e=yc(t);ut(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let n=e.parse(t);return e===Gt&&(n=gc(n)),n}const Wi=(t,e)=>{const n=$i(t),r=$i(e),i={...n};return o=>(i.red=On(n.red,r.red,o),i.green=On(n.green,r.green,o),i.blue=On(n.blue,r.blue,o),i.alpha=z(n.alpha,r.alpha,o),Lt.transform(i))},Ln=new Set(["none","hidden"]);function vc(t,e){return Ln.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Fn(t,e){return n=>n>0?e:t}function xc(t,e){return n=>z(t,e,n)}function In(t){return typeof t=="number"?xc:typeof t=="string"?an(t)?Fn:Z.test(t)?Wi:Pc:Array.isArray(t)?Ki:typeof t=="object"?Z.test(t)?Wi:wc:Fn}function Ki(t,e){const n=[...t],r=n.length,i=t.map((o,s)=>In(o)(o,e[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function wc(t,e){const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=In(t[i])(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function Tc(t,e){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const s=e.types[o],a=t.indexes[s][i[s]],l=(n=t.values[a])!==null&&n!==void 0?n:0;r[o]=l,i[s]++}return r}const Pc=(t,e)=>{const n=Vt.createTransformer(e),r=ce(t),i=ce(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ln.has(t)&&!i.values.length||Ln.has(e)&&!r.values.length?vc(t,e):mt(Ki(Tc(r,i),i.values),n):(le(!0,`Complex values '${t}' and '${e}' 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.`),Fn(t,e))};function Gi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?z(t,e,n):In(t)(t,e)}function Sc(t,e,n){const r=[],i=n||Gi,o=t.length-1;for(let s=0;s<o;s++){let a=i(t[s],t[s+1]);if(e){const l=Array.isArray(e)?e[s]||G:e;a=mt(l,a)}r.push(a)}return r}function Cc(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(ut(o===e.length,"Both input and output ranges must be the same length"),o===1)return()=>e[0];if(o===2&&t[0]===t[1])return()=>e[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const s=Sc(e,r,i),a=s.length,l=c=>{let u=0;if(a>1)for(;u<t.length-2&&!(c<t[u+1]);u++);const d=de(t[u],t[u+1],c);return s[u](d)};return n?c=>l(Tt(t[0],t[o-1],c)):l}function Ac(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=de(0,e,r);t.push(z(n,1,i))}}function Vc(t){const e=[0];return Ac(e,t.length-1),e}function Ec(t,e){return t.map(n=>n*e)}function kc(t,e){return t.map(()=>e||Fi).splice(0,t.length-1)}function Oe({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=hc(r)?r.map(Ui):Ui(r),o={done:!1,value:e[0]},s=Ec(n&&n.length===e.length?n:Vc(e),t),a=Cc(s,e,{ease:Array.isArray(i)?i:kc(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const Yi=2e4;function Mc(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<Yi;)e+=n,r=t.next(e);return e>=Yi?1/0:e}const Rc=t=>{const e=({timestamp:n})=>t(n);return{start:()=>L.update(e,!0),stop:()=>St(e),now:()=>Y.isProcessing?Y.timestamp:At.now()}},Dc={decay:Oi,inertia:Oi,tween:Oe,keyframes:Oe,spring:ji},jc=t=>t/100;class Bn extends Ei{constructor({KeyframeResolver:e=Pn,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:a}=this.options;a&&a()};const{name:r,motionValue:i,keyframes:o}=this.options,s=(a,l)=>this.onKeyframesResolved(a,l);r&&i&&i.owner?this.resolver=i.owner.resolveKeyframes(o,s,r,i):this.resolver=new e(o,s,r,i),this.resolver.scheduleResolve()}initPlayback(e){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=this.options,a=Dc[n]||Oe;let l,c;a!==Oe&&typeof e[0]!="number"&&(process.env.NODE_ENV!=="production"&&ut(e.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),l=mt(jc,Gi(e[0],e[1])),e=[0,100]);const u=a({...this.options,keyframes:e});o==="mirror"&&(c=a({...this.options,keyframes:[...e].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=Mc(u));const{calculatedDuration:d}=u,h=d+i,p=h*(r+1)-i;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:h,totalDuration:p}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:r}=this;if(!r){const{keyframes:k}=this.options;return{done:!0,value:k[k.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:d}=r;if(this.startTime===null)return o.next(0);const{delay:h,repeat:p,repeatType:b,repeatDelay:m,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const P=this.currentTime-h*(this.speed>=0?1:-1),y=this.speed>=0?P<0:P>u;this.currentTime=Math.max(P,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let v=this.currentTime,C=o;if(p){const k=Math.min(this.currentTime,u)/d;let _=Math.floor(k),$=k%1;!$&&k>=1&&($=1),$===1&&_--,_=Math.min(_,p+1),!!(_%2)&&(b==="reverse"?($=1-$,m&&($-=m/d)):b==="mirror"&&(C=s)),v=Tt(0,1,$)*d}const M=y?{done:!1,value:l[0]}:C.next(v);a&&(M.value=a(M.value));let{done:I}=M;!y&&c!==null&&(I=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const J=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&I);return J&&i!==void 0&&(M.value=De(l,this.options,i)),x&&x(M.value),J&&this.finish(),M}get duration(){const{resolved:e}=this;return e?bt(e.calculatedDuration):0}get time(){return bt(this.currentTime)}set time(e){e=gt(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=bt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Rc,onPlay:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=r),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Hi=t=>Array.isArray(t)&&typeof t[0]=="number";function Xi(t){return!!(!t||typeof t=="string"&&t in _n||Hi(t)||Array.isArray(t)&&t.every(Xi))}const fe=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,_n={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:fe([0,.65,.55,1]),circOut:fe([.55,0,1,.45]),backIn:fe([.31,.01,.66,-.59]),backOut:fe([.33,1.53,.69,.99])};function Oc(t){return qi(t)||_n.easeOut}function qi(t){if(t)return Hi(t)?fe(t):Array.isArray(t)?t.map(Oc):_n[t]}function Lc(t,e,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const c={[e]:n};l&&(c.offset=l);const u=qi(a);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}const Fc=Xl(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ic=new Set(["opacity","clipPath","filter","transform"]),Le=10,Bc=2e4;function _c(t){return t.type==="spring"||t.name==="backgroundColor"||!Xi(t.ease)}function Nc(t,e){const n=new Bn({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:t[0]};const i=[];let o=0;for(;!r.done&&o<Bc;)r=n.sample(o),i.push(r.value),o+=Le;return{times:void 0,keyframes:i,duration:o-Le,ease:"linear"}}class Zi extends Ei{constructor(e){super(e);const{name:n,motionValue:r,keyframes:i}=this.options;this.resolver=new Ai(i,(o,s)=>this.onKeyframesResolved(o,s),n,r),this.resolver.scheduleResolve()}initPlayback(e,n){var r;let{duration:i=300,times:o,ease:s,type:a,motionValue:l,name:c}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(_c(this.options)){const{onComplete:d,onUpdate:h,motionValue:p,...b}=this.options,m=Nc(e,b);e=m.keyframes,e.length===1&&(e[1]=e[0]),i=m.duration,o=m.times,s=m.ease,a="keyframes"}const u=Lc(l.owner.current,c,e,{...this.options,duration:i,times:o,ease:s});return u.startTime=At.now(),this.pendingTimeline?(u.timeline=this.pendingTimeline,this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:d}=this.options;l.set(De(e,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:i,times:o,type:a,ease:s,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return bt(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return bt(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=gt(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return G;const{animation:r}=n;r.timeline=e,r.onfinish=null}return G}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:r,duration:i,type:o,ease:s,times:a}=e;if(!(n.playState==="idle"||n.playState==="finished")){if(this.time){const{motionValue:l,onUpdate:c,onComplete:u,...d}=this.options,h=new Bn({...d,keyframes:r,duration:i,type:o,ease:s,times:a,isGenerator:!0}),p=gt(this.time);l.setWithVelocity(h.sample(p-Le).value,h.sample(p).value,Le)}this.cancel()}}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:s,type:a}=e;return Fc()&&r&&Ic.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&s!==0&&a!=="inertia"}}const Nn=(t,e,n,r={},i,o)=>s=>{const a=xn(r,t)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-gt(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:h=>{e.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};Pl(a)||(u={...u,...Tl(t,u)}),u.duration&&(u.duration=gt(u.duration)),u.repeatDelay&&(u.repeatDelay=gt(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(d=!0)),d&&!o&&e.get()!==void 0){const h=De(u.keyframes,a);if(h!==void 0){L.update(()=>{u.onUpdate(h),u.onComplete()});return}}return!o&&Zi.supports(u)?new Zi(u):new Bn(u)};function Fe(t){return!!(q(t)&&t.add)}function zn(t,e){t.indexOf(e)===-1&&t.push(e)}function Un(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class $n{constructor(){this.subscriptions=[]}add(e){return zn(this.subscriptions,e),()=>Un(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ji=new Set;function Wn(t,e,n){t||Ji.has(e)||(console.warn(e),Ji.add(e))}const Qi=30,zc=t=>!isNaN(parseFloat(t));class Uc{constructor(e,n={}){this.version="11.2.5",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=At.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=At.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=zc(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&Wn(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new $n);const r=this.events[e].add(n);return e==="change"?()=>{r(),L.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=At.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Qi)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Qi);return ki(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function he(t,e){return new Uc(t,e)}function $c(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,he(n))}function Wc(t,e){const n=Re(t,e);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const a=Qa(o[s]);$c(t,s,a)}}function Kc({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function ts(t,e,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=t.getDefaultTransition(),transitionEnd:a,...l}=e;const c=t.getValue("willChange");r&&(s=r);const u=[],d=i&&t.animationState&&t.animationState.getState()[i];for(const h in l){const p=t.getValue(h,(o=t.latestValues[h])!==null&&o!==void 0?o:null),b=l[h];if(b===void 0||d&&Kc(d,h))continue;const m={delay:n,elapsed:0,...xn(s||{},h)};let x=!1;if(window.HandoffAppearAnimations){const v=t.getProps()[kr];if(v){const C=window.HandoffAppearAnimations(v,h,p,L);C!==null&&(m.elapsed=C,x=!0)}}p.start(Nn(h,p,b,t.shouldReduceMotion&&jt.has(h)?{type:!1}:m,t,x));const P=p.animation;P&&(Fe(c)&&(c.add(h),P.then(()=>c.remove(h))),u.push(P))}return a&&Promise.all(u).then(()=>{L.update(()=>{a&&Wc(t,a)})}),u}function Kn(t,e,n={}){var r;const i=Re(t,e,n.type==="exit"?(r=t.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const s=i?()=>Promise.all(ts(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:h}=o;return Gc(t,e,u+c,d,h,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[c,u]=l==="beforeChildren"?[s,a]:[a,s];return c().then(()=>u())}else return Promise.all([s(),a(n.delay)])}function Gc(t,e,n=0,r=0,i=1,o){const s=[],a=(t.variantChildren.size-1)*r,l=i===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(t.variantChildren).sort(Yc).forEach((c,u)=>{c.notify("AnimationStart",e),s.push(Kn(c,e,{...o,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(s)}function Yc(t,e){return t.sortNodePosition(e)}function Hc(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>Kn(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=Kn(t,e,n);else{const i=typeof e=="function"?Re(t,e,n.custom):e;r=Promise.all(ts(t,i,n))}return r.then(()=>{L.postRender(()=>{t.notify("AnimationComplete",e)})})}const Xc=[...nn].reverse(),qc=nn.length;function Zc(t){return e=>Promise.all(e.map(({animation:n,options:r})=>Hc(t,n,r)))}function Jc(t){let e=Zc(t);const n=tu();let r=!0;const i=l=>(c,u)=>{var d;const h=Re(t,u,l==="exit"?(d=t.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(h){const{transition:p,transitionEnd:b,...m}=h;c={...c,...m,...b}}return c};function o(l){e=l(t)}function s(l){const c=t.getProps(),u=t.getVariantContext(!0)||{},d=[],h=new Set;let p={},b=1/0;for(let x=0;x<qc;x++){const P=Xc[x],y=n[P],v=c[P]!==void 0?c[P]:u[P],C=ee(v),M=P===l?y.isActive:null;M===!1&&(b=x);let I=v===u[P]&&v!==c[P]&&C;if(I&&r&&t.manuallyAnimateOnMount&&(I=!1),y.protectedKeys={...p},!y.isActive&&M===null||!v&&!y.prevProp||Se(v)||typeof v=="boolean")continue;let k=Qc(y.prevProp,v)||P===l&&y.isActive&&!I&&C||x>b&&C,_=!1;const $=Array.isArray(v)?v:[v];let ot=$.reduce(i(P),{});M===!1&&(ot={});const{prevResolvedValues:j={}}=y,Q={...j,...ot},tt=N=>{k=!0,h.has(N)&&(_=!0,h.delete(N)),y.needsAnimating[N]=!0;const H=t.getValue(N);H&&(H.liveStyle=!1)};for(const N in Q){const H=ot[N],yt=j[N];if(p.hasOwnProperty(N))continue;let dt=!1;mn(H)&&mn(yt)?dt=!ai(H,yt):dt=H!==yt,dt?H!=null?tt(N):h.add(N):H!==void 0&&h.has(N)?tt(N):y.protectedKeys[N]=!0}y.prevProp=v,y.prevResolvedValues=ot,y.isActive&&(p={...p,...ot}),r&&t.blockInitialAnimation&&(k=!1),k&&(!I||_)&&d.push(...$.map(N=>({animation:N,options:{type:P}})))}if(h.size){const x={};h.forEach(P=>{const y=t.getBaseTarget(P),v=t.getValue(P);v&&(v.liveStyle=!0),x[P]=y??null}),d.push({animation:x})}let m=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(m=!1),r=!1,m?e(d):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=t.variantChildren)===null||u===void 0||u.forEach(h=>{var p;return(p=h.animationState)===null||p===void 0?void 0:p.setActive(l,c)}),n[l].isActive=c;const d=s(l);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n}}function Qc(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!ai(e,t):!1}function Ft(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function tu(){return{animate:Ft(!0),whileInView:Ft(),whileHover:Ft(),whileTap:Ft(),whileDrag:Ft(),whileFocus:Ft(),exit:Ft()}}class eu extends Ct{constructor(e){super(e),e.animationState||(e.animationState=Jc(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Se(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let nu=0;class ru extends Ct{constructor(){super(...arguments),this.id=nu++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const iu={animation:{Feature:eu},exit:{Feature:ru}},es=(t,e)=>Math.abs(t-e);function su(t,e){const n=es(t.x,e.x),r=es(t.y,e.y);return Math.sqrt(n**2+r**2)}class ns{constructor(e,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Yn(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,p=su(d.offset,{x:0,y:0})>=3;if(!h&&!p)return;const{point:b}=d,{timestamp:m}=Y;this.history.push({...b,timestamp:m});const{onStart:x,onMove:P}=this.handlers;h||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),P&&P(this.lastMoveEvent,d)},this.handlePointerMove=(d,h)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Gn(h,this.transformPagePoint),L.update(this.updatePoint,!0)},this.handlePointerUp=(d,h)=>{this.end();const{onEnd:p,onSessionEnd:b,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Yn(d.type==="pointercancel"?this.lastMoveEventInfo:Gn(h,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,x),b&&b(d,x)},!Qr(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Me(e),a=Gn(s,this.transformPagePoint),{point:l}=a,{timestamp:c}=Y;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(e,Yn(a,this.history)),this.removeListeners=mt(pt(this.contextWindow,"pointermove",this.handlePointerMove),pt(this.contextWindow,"pointerup",this.handlePointerUp),pt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),St(this.updatePoint)}}function Gn(t,e){return e?{point:e(t.point)}:t}function rs(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Yn({point:t},e){return{point:t,delta:rs(t,is(e)),offset:rs(t,ou(e)),velocity:au(e,.1)}}function ou(t){return t[0]}function is(t){return t[t.length-1]}function au(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=is(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>gt(e)));)n--;if(!r)return{x:0,y:0};const o=bt(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function rt(t){return t.max-t.min}function Hn(t,e=0,n=.01){return Math.abs(t-e)<=n}function ss(t,e,n,r=.5){t.origin=r,t.originPoint=z(e.min,e.max,t.origin),t.scale=rt(n)/rt(e),(Hn(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=z(n.min,n.max,t.origin)-t.originPoint,(Hn(t.translate)||isNaN(t.translate))&&(t.translate=0)}function pe(t,e,n,r){ss(t.x,e.x,n.x,r?r.originX:void 0),ss(t.y,e.y,n.y,r?r.originY:void 0)}function os(t,e,n){t.min=n.min+e.min,t.max=t.min+rt(e)}function lu(t,e,n){os(t.x,e.x,n.x),os(t.y,e.y,n.y)}function as(t,e,n){t.min=e.min-n.min,t.max=t.min+rt(e)}function me(t,e,n){as(t.x,e.x,n.x),as(t.y,e.y,n.y)}function cu(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?z(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?z(n,t,r.max):Math.min(t,n)),t}function ls(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function uu(t,{top:e,left:n,bottom:r,right:i}){return{x:ls(t.x,n,i),y:ls(t.y,e,r)}}function cs(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function du(t,e){return{x:cs(t.x,e.x),y:cs(t.y,e.y)}}function fu(t,e){let n=.5;const r=rt(t),i=rt(e);return i>r?n=de(e.min,e.max-r,t.min):r>i&&(n=de(t.min,t.max-i,e.min)),Tt(0,1,n)}function hu(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Xn=.35;function pu(t=Xn){return t===!1?t=0:t===!0&&(t=Xn),{x:us(t,"left","right"),y:us(t,"top","bottom")}}function us(t,e,n){return{min:ds(t,e),max:ds(t,n)}}function ds(t,e){return typeof t=="number"?t:t[e]||0}const fs=()=>({translate:0,scale:1,origin:0,originPoint:0}),Yt=()=>({x:fs(),y:fs()}),hs=()=>({min:0,max:0}),U=()=>({x:hs(),y:hs()});function it(t){return[t("x"),t("y")]}function ps({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function mu({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function gu(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function qn(t){return t===void 0||t===1}function Zn({scale:t,scaleX:e,scaleY:n}){return!qn(t)||!qn(e)||!qn(n)}function It(t){return Zn(t)||ms(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ms(t){return gs(t.x)||gs(t.y)}function gs(t){return t&&t!=="0%"}function Ie(t,e,n){const r=t-n,i=e*r;return n+i}function bs(t,e,n,r,i){return i!==void 0&&(t=Ie(t,i,r)),Ie(t,n,r)+e}function Jn(t,e=0,n=1,r,i){t.min=bs(t.min,e,n,r,i),t.max=bs(t.max,e,n,r,i)}function ys(t,{x:e,y:n}){Jn(t.x,e.translate,e.scale,e.originPoint),Jn(t.y,n.translate,n.scale,n.originPoint)}function bu(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const l=o.instance;l&&l.style&&l.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Ht(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,ys(t,s)),r&&It(o.latestValues)&&Ht(t,o.latestValues))}e.x=vs(e.x),e.y=vs(e.y)}function vs(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function Et(t,e){t.min=t.min+e,t.max=t.max+e}function xs(t,e,[n,r,i]){const o=e[i]!==void 0?e[i]:.5,s=z(t.min,t.max,o);Jn(t,e[n],e[r],s,e.scale)}const yu=["x","scaleX","originX"],vu=["y","scaleY","originY"];function Ht(t,e){xs(t.x,e,yu),xs(t.y,e,vu)}function ws(t,e){return ps(gu(t.getBoundingClientRect(),e))}function xu(t,e,n){const r=ws(t,n),{scroll:i}=e;return i&&(Et(r.x,i.offset.x),Et(r.y,i.offset.y)),r}const Ts=({current:t})=>t?t.ownerDocument.defaultView:null,wu=new WeakMap;class Tu{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=U(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Me(u,"page").point)},o=(u,d)=>{const{drag:h,dragPropagation:p,onDragStart:b}=this.getProps();if(h&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ri(h),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),it(x=>{let P=this.getAxisMotionValue(x).get()||0;if(ct.test(P)){const{projection:y}=this.visualElement;if(y&&y.layout){const v=y.layout.layoutBox[x];v&&(P=rt(v)*(parseFloat(P)/100))}}this.originPoint[x]=P}),b&&L.postRender(()=>b(u,d));const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},s=(u,d)=>{const{dragPropagation:h,dragDirectionLock:p,onDirectionLock:b,onDrag:m}=this.getProps();if(!h&&!this.openGlobalLock)return;const{offset:x}=d;if(p&&this.currentDirection===null){this.currentDirection=Pu(x),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),m&&m(u,d)},a=(u,d)=>this.stop(u,d),l=()=>it(u=>{var d;return this.getAnimationState(u)==="paused"&&((d=this.getAxisMotionValue(u).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new ns(e,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Ts(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&L.postRender(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!Be(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let s=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(s=cu(s,this.constraints[e],this.elastic[e])),o.set(s)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&$t(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=uu(i.layoutBox,n):this.constraints=!1,this.elastic=pu(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&it(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=hu(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!$t(e))return!1;const r=e.current;ut(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=xu(r,i.root,this.visualElement.getTransformPagePoint());let s=du(i.layout.layoutBox,o);if(n){const a=n(mu(s));this.hasMutatedConstraints=!!a,a&&(s=ps(a))}return s}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=it(u=>{if(!Be(u,n,this.currentDirection))return;let d=l&&l[u]||{};s&&(d={min:0,max:0});const h=i?200:1e6,p=i?40:1e7,b={type:"inertia",velocity:r?e[u]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(u,b)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return r.start(Nn(e,r,0,n,this.visualElement))}stopAnimation(){it(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){it(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){it(n=>{const{drag:r}=this.getProps();if(!Be(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(e[n]-z(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!$t(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};it(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();i[s]=fu({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),it(s=>{if(!Be(s,e,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(z(l,c,i[s]))})}addListeners(){if(!this.visualElement.current)return;wu.set(this.visualElement,this);const e=this.visualElement.current,n=pt(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();$t(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=ht(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(it(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Xn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function Be(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Pu(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Su extends Ct{constructor(e){super(e),this.removeGroupControls=G,this.removeListeners=G,this.controls=new Tu(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||G}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ps=t=>(e,n)=>{t&&L.postRender(()=>t(e,n))};class Cu extends Ct{constructor(){super(...arguments),this.removePointerDownListener=G}onPointerDown(e){this.session=new ns(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ts(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Ps(e),onStart:Ps(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&L.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=pt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Au(){const t=T.useContext(Te);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,i=T.useId();return T.useEffect(()=>r(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}const _e={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ss(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ge={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(S.test(t))t=parseFloat(t);else return t;const n=Ss(t,e.target.x),r=Ss(t,e.target.y);return`${n}% ${r}%`}},Vu={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=Vt.parse(t);if(i.length>5)return r;const o=Vt.createTransformer(t),s=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+s]/=a,i[1+s]/=l;const c=z(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=c),typeof i[3+s]=="number"&&(i[3+s]/=c),o(i)}};class Eu extends T.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;ka(ku),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),_e.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||e.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?s.promote():s.relegate()||L.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),en.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Cs(t){const[e,n]=Au(),r=T.useContext(sn);return V.jsx(Eu,{...t,layoutGroup:r,switchLayoutGroup:T.useContext(Lr),isPresent:e,safeToRemove:n})}const ku={borderRadius:{...ge,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ge,borderTopRightRadius:ge,borderBottomLeftRadius:ge,borderBottomRightRadius:ge,boxShadow:Vu},As=["TopLeft","TopRight","BottomLeft","BottomRight"],Mu=As.length,Vs=t=>typeof t=="string"?parseFloat(t):t,Es=t=>typeof t=="number"||S.test(t);function Ru(t,e,n,r,i,o){i?(t.opacity=z(0,n.opacity!==void 0?n.opacity:1,Du(r)),t.opacityExit=z(e.opacity!==void 0?e.opacity:1,0,ju(r))):o&&(t.opacity=z(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<Mu;s++){const a=`border${As[s]}Radius`;let l=ks(e,a),c=ks(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Es(l)===Es(c)?(t[a]=Math.max(z(Vs(l),Vs(c),r),0),(ct.test(c)||ct.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=z(e.rotate||0,n.rotate||0,r))}function ks(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Du=Ms(0,.5,_i),ju=Ms(.5,.95,G);function Ms(t,e,n){return r=>r<t?0:r>e?1:n(de(t,e,r))}function Rs(t,e){t.min=e.min,t.max=e.max}function st(t,e){Rs(t.x,e.x),Rs(t.y,e.y)}function Ds(t,e,n,r,i){return t-=e,t=Ie(t,1/n,r),i!==void 0&&(t=Ie(t,1/i,r)),t}function Ou(t,e=0,n=1,r=.5,i,o=t,s=t){if(ct.test(e)&&(e=parseFloat(e),e=z(s.min,s.max,e/100)-s.min),typeof e!="number")return;let a=z(o.min,o.max,r);t===o&&(a-=e),t.min=Ds(t.min,e,n,a,i),t.max=Ds(t.max,e,n,a,i)}function js(t,e,[n,r,i],o,s){Ou(t,e[n],e[r],e[i],e.scale,o,s)}const Lu=["x","scaleX","originX"],Fu=["y","scaleY","originY"];function Os(t,e,n,r){js(t.x,e,Lu,n?n.x:void 0,r?r.x:void 0),js(t.y,e,Fu,n?n.y:void 0,r?r.y:void 0)}function Ls(t){return t.translate===0&&t.scale===1}function Fs(t){return Ls(t.x)&&Ls(t.y)}function Iu(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function Is(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function Bs(t){return rt(t.x)/rt(t.y)}class Bu{constructor(){this.members=[]}add(e){zn(this.members,e),e.scheduleRender()}remove(e){if(Un(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function _s(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y,s=(n==null?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:h,skewX:p,skewY:b}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),h&&(r+=`rotateY(${h}deg) `),p&&(r+=`skewX(${p}deg) `),b&&(r+=`skewY(${b}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const _u=(t,e)=>t.depth-e.depth;class Nu{constructor(){this.children=[],this.isDirty=!1}add(e){zn(this.children,e),this.isDirty=!0}remove(e){Un(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(_u),this.isDirty=!1,this.children.forEach(e)}}function zu(t,e){const n=At.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(St(r),t(o-e))};return L.read(r,!0),()=>St(r)}function Uu(t){window.MotionDebug&&window.MotionDebug.record(t)}function $u(t){return t instanceof SVGElement&&t.tagName!=="svg"}function Wu(t,e,n){const r=q(t)?t:he(t);return r.start(Nn("",r,e,n)),r.animation}const Qn=["","X","Y","Z"],Ku={visibility:"hidden"},Ns=1e3;let Gu=0;const Bt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function tr(t,e,n,r){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function zs({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=e==null?void 0:e()){this.id=Gu++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Bt.totalNodes=Bt.resolvedTargetDeltas=Bt.recalculatedProjection=0,this.nodes.forEach(Xu),this.nodes.forEach(td),this.nodes.forEach(ed),this.nodes.forEach(qu),Uu(Bt)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Nu)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new $n),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=$u(s),this.instance=s;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),t){let d;const h=()=>this.root.updateBlockedByResize=!1;t(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=zu(h,250),_e.hasAnimatedSinceResize&&(_e.hasAnimatedSinceResize=!1,this.nodes.forEach($s))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeTargetChanged:p,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||od,{onLayoutAnimationStart:x,onLayoutAnimationComplete:P}=u.getProps(),y=!this.targetLayout||!Is(this.targetLayout,b)||p,v=!h&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||h&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,v);const C={...xn(m,"layout"),onPlay:x,onComplete:P};(u.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else h||$s(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,St(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(nd),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Us);return}this.isUpdating||this.nodes.forEach(Ju),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(Qu),this.nodes.forEach(Yu),this.nodes.forEach(Hu),this.clearAllSnapshots();const a=At.now();Y.delta=Tt(0,1e3/60,a-Y.timestamp),Y.timestamp=a,Y.isProcessing=!0,gn.update.process(Y),gn.preRender.process(Y),gn.render.process(Y),Y.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,en.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Zu),this.sharedNodes.forEach(rd)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,L.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){L.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=U(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!Fs(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;s&&(a||It(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),ad(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return U();const a=s.measureViewportBox(),{scroll:l}=this.root;return l&&(Et(a.x,l.offset.x),Et(a.y,l.offset.y)),a}removeElementScroll(s){const a=U();st(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:d}=c;if(c!==this.root&&u&&d.layoutScroll){if(u.isRoot){st(a,s);const{scroll:h}=this.root;h&&(Et(a.x,-h.offset.x),Et(a.y,-h.offset.y))}Et(a.x,u.offset.x),Et(a.y,u.offset.y)}}return a}applyTransform(s,a=!1){const l=U();st(l,s);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Ht(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),It(u.latestValues)&&Ht(l,u.latestValues)}return It(this.latestValues)&&Ht(l,this.latestValues),l}removeTransform(s){const a=U();st(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!It(c.latestValues))continue;Zn(c.latestValues)&&c.updateSnapshot();const u=U(),d=c.measurePageBox();st(u,d),Os(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return It(this.latestValues)&&Os(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Y.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:d,layoutId:h}=this.options;if(!(!this.layout||!(d||h))){if(this.resolvedRelativeTargetAt=Y.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=U(),this.relativeTargetOrigin=U(),me(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),st(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=U(),this.targetWithTransforms=U()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),lu(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):st(this.target,this.layout.layoutBox),ys(this.target,this.targetDelta)):st(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=U(),this.relativeTargetOrigin=U(),me(this.relativeTargetOrigin,this.target,p.target),st(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Bt.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Zn(this.parent.latestValues)||ms(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Y.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;st(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,p=this.treeScale.y;bu(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=U());const{target:b}=a;if(!b){this.projectionTransform&&(this.projectionDelta=Yt(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Yt(),this.projectionDeltaWithTransform=Yt());const m=this.projectionTransform;pe(this.projectionDelta,this.layoutCorrected,b,this.latestValues),this.projectionTransform=_s(this.projectionDelta,this.treeScale),(this.projectionTransform!==m||this.treeScale.x!==h||this.treeScale.y!==p)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b)),Bt.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=Yt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=U(),p=l?l.source:void 0,b=this.layout?this.layout.source:void 0,m=p!==b,x=this.getStack(),P=!x||x.members.length<=1,y=!!(m&&!P&&this.options.crossfade===!0&&!this.path.some(sd));this.animationProgress=0;let v;this.mixTargetDelta=C=>{const M=C/1e3;Ws(d.x,s.x,M),Ws(d.y,s.y,M),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(me(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),id(this.relativeTarget,this.relativeTargetOrigin,h,M),v&&Iu(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=U()),st(v,this.relativeTarget)),m&&(this.animationValues=u,Ru(u,c,this.latestValues,M,y,P)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(St(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=L.update(()=>{_e.hasAnimatedSinceResize=!0,this.currentAnimation=Wu(0,Ns,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ns),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&Xs(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||U();const d=rt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const h=rt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}st(a,l),Ht(a,u),pe(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Bu),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&tr("z",s,c,this.animationValues);for(let u=0;u<Qn.length;u++)tr(`rotate${Qn[u]}`,s,c,this.animationValues),tr(`skew${Qn[u]}`,s,c,this.animationValues);s.render();for(const u in c)s.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Ku;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=ke(s==null?void 0:s.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=ke(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!It(this.latestValues)&&(m.transform=u?u({},""):"none",this.hasProjected=!1),m}const h=d.animationValues||d.latestValues;this.applyTransformsToTarget(),c.transform=_s(this.projectionDeltaWithTransform,this.treeScale,h),u&&(c.transform=u(h,c.transform));const{x:p,y:b}=this.projectionDelta;c.transformOrigin=`${p.origin*100}% ${b.origin*100}% 0`,d.animationValues?c.opacity=d===this?(l=(a=h.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:c.opacity=d===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const m in Ae){if(h[m]===void 0)continue;const{correct:x,applyTo:P}=Ae[m],y=c.transform==="none"?h[m]:x(h[m],d);if(P){const v=P.length;for(let C=0;C<v;C++)c[P[C]]=y}else c[m]=y}return this.options.layoutId&&(c.pointerEvents=d===this?ke(s==null?void 0:s.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Us),this.root.sharedNodes.clear()}}}function Yu(t){t.updateLayout()}function Hu(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:o}=t.options,s=n.source!==t.layout.source;o==="size"?it(d=>{const h=s?n.measuredBox[d]:n.layoutBox[d],p=rt(h);h.min=r[d].min,h.max=h.min+p}):Xs(o,n.layoutBox,r)&&it(d=>{const h=s?n.measuredBox[d]:n.layoutBox[d],p=rt(r[d]);h.max=h.min+p,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[d].max=t.relativeTarget[d].min+p)});const a=Yt();pe(a,r,n.layoutBox);const l=Yt();s?pe(l,t.applyTransform(i,!0),n.measuredBox):pe(l,r,n.layoutBox);const c=!Fs(a);let u=!1;if(!t.resumeFrom){const d=t.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:p}=d;if(h&&p){const b=U();me(b,n.layoutBox,h.layoutBox);const m=U();me(m,r,p.layoutBox),Is(b,m)||(u=!0),d.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=b,t.relativeParent=d)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function Xu(t){Bt.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function qu(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Zu(t){t.clearSnapshot()}function Us(t){t.clearMeasurements()}function Ju(t){t.isLayoutDirty=!1}function Qu(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function $s(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function td(t){t.resolveTargetDelta()}function ed(t){t.calcProjection()}function nd(t){t.resetSkewAndRotation()}function rd(t){t.removeLeadSnapshot()}function Ws(t,e,n){t.translate=z(e.translate,0,n),t.scale=z(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ks(t,e,n,r){t.min=z(e.min,n.min,r),t.max=z(e.max,n.max,r)}function id(t,e,n,r){Ks(t.x,e.x,n.x,r),Ks(t.y,e.y,n.y,r)}function sd(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const od={duration:.45,ease:[.4,0,.1,1]},Gs=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ys=Gs("applewebkit/")&&!Gs("chrome/")?Math.round:G;function Hs(t){t.min=Ys(t.min),t.max=Ys(t.max)}function ad(t){Hs(t.x),Hs(t.y)}function Xs(t,e,n){return t==="position"||t==="preserve-aspect"&&!Hn(Bs(e),Bs(n),.2)}const ld=zs({attachResizeListener:(t,e)=>ht(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),er={current:void 0},qs=zs({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!er.current){const t=new ld({});t.mount(window),t.setOptions({layoutScroll:!0}),er.current=t}return er.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),cd={pan:{Feature:Cu},drag:{Feature:Su,ProjectionNode:qs,MeasureLayout:Cs}},nr={current:null},Zs={current:!1};function ud(){if(Zs.current=!0,!!Je)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>nr.current=t.matches;t.addListener(e),e()}else nr.current=!1}function dd(t,e,n){const{willChange:r}=e;for(const i in e){const o=e[i],s=n[i];if(q(o))t.addValue(i,o),Fe(r)&&r.add(i),process.env.NODE_ENV==="development"&&Wn(o.version==="11.2.5",`Attempting to mix Framer Motion versions ${o.version} with 11.2.5 may not work as expected.`);else if(q(s))t.addValue(i,he(o,{owner:t})),Fe(r)&&r.remove(i);else if(s!==o)if(t.hasValue(i)){const a=t.getValue(i);a.liveStyle===!0?a.jump(o):a.hasAnimated||a.set(o)}else{const a=t.getStaticValue(i);t.addValue(i,he(a!==void 0?a:o,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const Js=new WeakMap,fd=[...mi,Z,Vt],hd=t=>fd.find(pi(t)),Qs=Object.keys(ne),pd=Qs.length,to=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],md=rn.length;function eo(t){if(t)return t.options.allowProjection!==!1?t.projection:eo(t.parent)}class gd{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},a={}){this.resolveKeyframes=(h,p,b,m)=>new this.KeyframeResolver(h,p,b,m,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Pn,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.scheduleRender=()=>L.render(this.render,!1,!0);const{latestValues:l,renderState:c}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=Ce(n),this.isVariantNode=Dr(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in d){const p=d[h];l[h]!==void 0&&q(p)&&(p.set(l[h],!1),Fe(u)&&u.add(h))}}mount(e){this.current=e,Js.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Zs.current||ud(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:nr.current,process.env.NODE_ENV!=="production"&&Wn(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var e;Js.delete(this.current),this.projection&&this.projection.unmount(),St(this.notifyUpdate),St(this.render),this.valueSubscriptions.forEach(n=>n()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const n in this.events)this.events[n].clear();for(const n in this.features)(e=this.features[n])===null||e===void 0||e.unmount();this.current=null}bindToMotionValue(e,n){const r=jt.has(e),i=n.on("change",s=>{this.latestValues[e]=s,this.props.onUpdate&&L.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},r,i,o){let s,a;if(process.env.NODE_ENV!=="production"&&i&&r){const l="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?le(!1,l):ut(!1,l)}for(let l=0;l<pd;l++){const c=Qs[l],{isEnabled:u,Feature:d,ProjectionNode:h,MeasureLayout:p}=ne[c];h&&(s=h),u(n)&&(!this.features[c]&&d&&(this.features[c]=new d(this)),p&&(a=p))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){const{layoutId:l,layout:c,drag:u,dragConstraints:d,layoutScroll:h,layoutRoot:p}=n;this.projection=new s(this.latestValues,n["data-framer-portal-id"]?void 0:eo(this.parent)),this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!u||d&&$t(d),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:o,layoutScroll:h,layoutRoot:p})}return a}updateFeatures(){for(const e in this.features){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):U()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<to.length;r++){const i=to[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,s=e[o];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=dd(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<md;r++){const i=rn[r],o=this.props[i];(ee(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=he(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){var r;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(r=this.getBaseTargetFromProps(this.props,e))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(ci(i)||li(i))?i=parseFloat(i):!hd(i)&&Vt.test(n)&&(i=Ci(e,n)),this.setBaseTarget(e,q(i)?i.get():i)),q(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const s=pn(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(i=s[e])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!q(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new $n),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class no extends gd{constructor(){super(...arguments),this.KeyframeResolver=Ai}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}}function bd(t){return window.getComputedStyle(t)}class yd extends no{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(jt.has(n)){const r=En(n);return r&&r.default||0}else{const r=bd(e),i=(Br(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return ws(e,n)}build(e,n,r,i){cn(e,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return hn(e,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;q(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,r,i){Gr(e,n,r,i)}}class vd extends no{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(jt.has(n)){const r=En(n);return r&&r.default||0}return n=Yr.has(n)?n:tn(n),e.getAttribute(n)}measureInstanceViewportBox(){return U()}scrapeMotionValuesFromProps(e,n,r){return Xr(e,n,r)}build(e,n,r,i){dn(e,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,r,i){Hr(e,n,r,i)}mount(e){this.isSVGTag=fn(e.tagName),super.mount(e)}}const xd=(t,e)=>on(t)?new vd(e,{enableHardwareAcceleration:!1}):new yd(e,{allowProjection:t!==T.Fragment,enableHardwareAcceleration:!0}),wd={...iu,...bl,...cd,...{layout:{ProjectionNode:qs,MeasureLayout:Cs}}},Td=Va((t,e)=>il(t,e,wd,xd));function ro(){const t=T.useRef(!1);return Qe(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function Pd(){const t=ro(),[e,n]=T.useState(0),r=T.useCallback(()=>{t.current&&n(e+1)},[e]);return[T.useCallback(()=>L.postRender(r),[r]),e]}class Sd extends We.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Cd({children:t,isPresent:e}){const n=T.useId(),r=T.useRef(null),i=T.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=T.useContext(Ze);return T.useInsertionEffect(()=>{const{width:s,height:a,top:l,left:c}=i.current;if(e||!r.current||!s||!a)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return o&&(u.nonce=o),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
|
|
31
|
+
[data-motion-pop-id="${n}"] {
|
|
32
|
+
position: absolute !important;
|
|
33
|
+
width: ${s}px !important;
|
|
34
|
+
height: ${a}px !important;
|
|
35
|
+
top: ${l}px !important;
|
|
36
|
+
left: ${c}px !important;
|
|
37
|
+
}
|
|
38
|
+
`),()=>{document.head.removeChild(u)}},[e]),V.jsx(Sd,{isPresent:e,childRef:r,sizeRef:i,children:We.cloneElement(t,{ref:r})})}const rr=({children:t,initial:e,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const a=Zr(Ad),l=T.useId(),c=T.useMemo(()=>({id:l,initial:e,isPresent:n,custom:i,onExitComplete:u=>{a.set(u,!0);for(const d of a.values())if(!d)return;r&&r()},register:u=>(a.set(u,!1),()=>a.delete(u))}),o?[Math.random()]:[n]);return T.useMemo(()=>{a.forEach((u,d)=>a.set(d,!1))},[n]),We.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(t=V.jsx(Cd,{isPresent:n,children:t})),V.jsx(Te.Provider,{value:c,children:t})};function Ad(){return new Map}function Vd(t){return T.useEffect(()=>()=>t(),[])}const _t=t=>t.key||"";function Ed(t,e){t.forEach(n=>{const r=_t(n);e.set(r,n)})}function kd(t){const e=[];return T.Children.forEach(t,n=>{T.isValidElement(n)&&e.push(n)}),e}const Md=({children:t,custom:e,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{ut(!i,"Replace exitBeforeEnter with mode='wait'");const a=T.useContext(sn).forceRender||Pd()[0],l=ro(),c=kd(t);let u=c;const d=T.useRef(new Map).current,h=T.useRef(u),p=T.useRef(new Map).current,b=T.useRef(!0);if(Qe(()=>{b.current=!1,Ed(c,p),h.current=u}),Vd(()=>{b.current=!0,p.clear(),d.clear()}),b.current)return V.jsx(V.Fragment,{children:u.map(y=>V.jsx(rr,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:s,children:y},_t(y)))});u=[...u];const m=h.current.map(_t),x=c.map(_t),P=m.length;for(let y=0;y<P;y++){const v=m[y];x.indexOf(v)===-1&&!d.has(v)&&d.set(v,void 0)}return s==="wait"&&d.size&&(u=[]),d.forEach((y,v)=>{if(x.indexOf(v)!==-1)return;const C=p.get(v);if(!C)return;const M=m.indexOf(v);let I=y;if(!I){const J=()=>{d.delete(v);const k=Array.from(p.keys()).filter(_=>!x.includes(_));if(k.forEach(_=>p.delete(_)),h.current=c.filter(_=>{const $=_t(_);return $===v||k.includes($)}),!d.size){if(l.current===!1)return;a(),r&&r()}};I=V.jsx(rr,{isPresent:!1,onExitComplete:J,custom:e,presenceAffectsLayout:o,mode:s,children:C},_t(C)),d.set(v,I)}u.splice(M,0,I)}),u=u.map(y=>{const v=y.key;return d.has(v)?y:V.jsx(rr,{isPresent:!0,presenceAffectsLayout:o,mode:s,children:y},_t(y))}),process.env.NODE_ENV!=="production"&&s==="wait"&&u.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.`),V.jsx(V.Fragment,{children:d.size?u:u.map(y=>T.cloneElement(y))})},Rd={top:{placementStyles:"bottom-full left-1/2 mb-2",initialAnimation:{opacity:0,y:10,x:"-50%",scale:.95},targetAnimation:{opacity:1,y:0,x:"-50%",scale:1},exitAnimation:{opacity:0,y:10,x:"-50%",scale:.95}},"top-right":{placementStyles:"bottom-full right-0 mb-2",initialAnimation:{opacity:0,y:10,x:10,scale:.95},targetAnimation:{opacity:1,y:0,x:0,scale:1},exitAnimation:{opacity:0,y:10,x:10,scale:.95}},"top-left":{placementStyles:"bottom-full left-0 mb-2",initialAnimation:{opacity:0,y:10,x:-10,scale:.95},targetAnimation:{opacity:1,y:0,x:0,scale:1},exitAnimation:{opacity:0,y:10,x:-10,scale:.95}},bottom:{placementStyles:"top-full left-1/2 mt-2",initialAnimation:{opacity:0,y:-10,x:"-50%",scale:.95},targetAnimation:{opacity:1,y:0,x:"-50%",scale:1},exitAnimation:{opacity:0,y:-10,x:"-50%",scale:.95}},"bottom-right":{placementStyles:"top-full right-0 mt-2",initialAnimation:{opacity:0,y:-10,x:10,scale:.95},targetAnimation:{opacity:1,y:0,x:0,scale:1},exitAnimation:{opacity:0,y:-10,x:10,scale:.95}},"bottom-left":{placementStyles:"top-full left-0 mt-2",initialAnimation:{opacity:0,y:-10,x:-10,scale:.95},targetAnimation:{opacity:1,y:0,x:0,scale:1},exitAnimation:{opacity:0,y:-10,x:-10,scale:.95}},left:{placementStyles:"right-full top-1/2 mr-2",initialAnimation:{opacity:0,x:10,y:"-50%",scale:.95},targetAnimation:{opacity:1,x:0,y:"-50%",scale:1},exitAnimation:{opacity:0,x:10,y:"-50%",scale:.95}},right:{placementStyles:"left-full top-1/2 ml-2",initialAnimation:{opacity:0,x:-10,y:"-50%",scale:.95},targetAnimation:{opacity:1,x:0,y:"-50%",scale:1},exitAnimation:{opacity:0,x:-10,y:"-50%",scale:.95}}},Dd=({children:t,placement:e="bottom-left",closePopover:n})=>{const{placementStyles:r,initialAnimation:i,targetAnimation:o,exitAnimation:s}=Rd[e],a=l=>{l.stopPropagation(),n&&n()};return V.jsx(Td.div,{initial:i,animate:o,exit:s,transition:{duration:.15,damping:10},className:`bg-white absolute z-30 flex w-fit flex-col gap-2 rounded-lg p-4 shadow-2xl ${r}`,onClick:a,children:t||V.jsx("div",{children:"Your placeholder here"})})},jd=({children:t,trigger:e,open:n=!1,placement:r="bottom-left",closeOnAction:i=!1})=>{const[o,s]=T.useState(n);T.useEffect(()=>{s(n)},[n]),T.useEffect(()=>{const l=()=>{o&&s(!1)};return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}},[o]);const a=l=>{l.stopPropagation(),s(c=>!c)};return V.jsxs("div",{className:"relative",children:[V.jsx("div",{onClick:a,children:e}),V.jsx(Md,{children:o&&V.jsx(Dd,{placement:r,closePopover:i?()=>s(!1):void 0,children:t})})]})},io=lt("transition-all ease-out duration-500 relative overflow-hidden w-full",{variants:{intent:{primary:"bg-bg-brand",green:"bg-bg-accent-green",blue:"bg-bg-accent-blue",violet:"bg-bg-accent-violet",mustard:"bg-bg-accent-mustard",lime:"bg-bg-accent-lime",marine:"bg-bg-accent-marine",ice:"bg-bg-accent-ice",gray:"bg-bg-accent-gray",fuchsia:"bg-bg-accent-fuchsia"},size:{small:"h-3",medium:"h-4",large:"h-5"},rounded:{full:"rounded-full",sm:"rounded-sm"}},defaultVariants:{intent:"primary",size:"medium",rounded:"full"}}),Od=({progress:t,className:e,intent:n="primary",size:r="medium",rounded:i="full",...o})=>{const s={small:"text-2xs",medium:"text-sm",large:"text-base"};return V.jsx("div",{className:Dt(io({size:r,rounded:i,className:e}),"relative bg-bg-accent-gray-subtle-hover"),...o,children:V.jsx("div",{className:Dt(io({intent:n,size:r,rounded:i})),style:{width:`${t}%`},children:V.jsxs("span",{className:`absolute -right-2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-content-text-inverse ${s[r||"medium"]}`,children:[t,"%"]})})})},Ld=lt("transition-colors",{variants:{intent:{"display-sm":"text-7xl leading-6xl tracking-tight","display-lg":"text-9xl leading-7xl tracking-tight","title-xs":"text-2xl leading-2xl tracking-tight","title-sm":"text-3xl leading-3xl tracking-tight","title-md":"text-4xl leading-4xl tracking-tight","title-lg":"text-5xl leading-5xl tracking-tight","title-xl":"text-6xl leading-6xl tracking-tight","label-xs":"text-2xs leading-xs tracking-normal","label-sm":"text-xs leading-sm tracking-normal","label-md":"text-sm leading-md tracking-normal","label-lg":"text-base leading-lg tracking-normal","label-xl":"text-lg leading-lg tracking-normal","label-2xl":"text-xl leading-xl tracking-normal","label-3xl":"text-2xl leading-2xl tracking-normal","paragraph-xs":"text-xs leading-md tracking-normal","paragraph-sm":"text-sm leading-md tracking-normal","paragraph-md":"text-base leading-lg tracking-normal","paragraph-lg":"text-lg leading-xl tracking-normal","overline-sm":"text-xs leading-md tracking-widest","overline-lg":"text-sm leading-md tracking-widest"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"paragraph-md",weight:"regular"}}),Fd=({as:t="span",intent:e,className:n,weight:r,...i})=>{const o=t;return V.jsx(o,{className:Dt(Ld({intent:e,weight:r,className:n})),...i})};X.Badge=sa,X.Button=ca,X.ButtonIcon=ha,X.Card=ma,X.IconComponent=wt,X.Popover=jd,X.ProgressBar=Od,X.Spinner=He,X.Text=Fd,Object.defineProperty(X,Symbol.toStringTag,{value:"Module"})});
|