sdk/dist/lib.umd.js

37 lines
63 KiB
JavaScript

(function(X,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],c):(X=typeof globalThis<"u"?globalThis:X||self,c(X["lume-sdk"]={},X.React))})(this,function(X,c){"use strict";function dr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const L=dr(c);var Ve={exports:{}},pe={};/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var lt;function fr(){if(lt)return pe;lt=1;var e=c,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(l,m,p){var f,u={},h=null,y=null;p!==void 0&&(h=""+p),m.key!==void 0&&(h=""+m.key),m.ref!==void 0&&(y=m.ref);for(f in m)n.call(m,f)&&!a.hasOwnProperty(f)&&(u[f]=m[f]);if(l&&l.defaultProps)for(f in m=l.defaultProps,m)u[f]===void 0&&(u[f]=m[f]);return{$$typeof:t,type:l,key:h,ref:y,props:u,_owner:i.current}}return pe.Fragment=r,pe.jsx=s,pe.jsxs=s,pe}var me={};/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ut;function pr(){return ut||(ut=1,process.env.NODE_ENV!=="production"&&function(){var e=c,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),E=Symbol.iterator,P="@@iterator";function _(o){if(o===null||typeof o!="object")return null;var d=E&&o[E]||o[P];return typeof d=="function"?d:null}var R=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(o){{for(var d=arguments.length,g=new Array(d>1?d-1:0),b=1;b<d;b++)g[b-1]=arguments[b];A("error",o,g)}}function A(o,d,g){{var b=R.ReactDebugCurrentFrame,T=b.getStackAddendum();T!==""&&(d+="%s",g=g.concat([T]));var j=g.map(function(S){return String(S)});j.unshift("Warning: "+d),Function.prototype.apply.call(console[o],console,j)}}var D=!1,se=!1,B=!1,le=!1,ue=!1,Y;Y=Symbol.for("react.module.reference");function ve(o){return!!(typeof o=="string"||typeof o=="function"||o===n||o===a||ue||o===i||o===p||o===f||le||o===y||D||se||B||typeof o=="object"&&o!==null&&(o.$$typeof===h||o.$$typeof===u||o.$$typeof===s||o.$$typeof===l||o.$$typeof===m||o.$$typeof===Y||o.getModuleId!==void 0))}function be(o,d,g){var b=o.displayName;if(b)return b;var T=d.displayName||d.name||"";return T!==""?g+"("+T+")":g}function M(o){return o.displayName||"Context"}function F(o){if(o==null)return null;if(typeof o.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case i:return"StrictMode";case p:return"Suspense";case f:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case l:var d=o;return M(d)+".Consumer";case s:var g=o;return M(g._context)+".Provider";case m:return be(o,o.render,"ForwardRef");case u:var b=o.displayName||null;return b!==null?b:F(o.type)||"Memo";case h:{var T=o,j=T._payload,S=T._init;try{return F(S(j))}catch{return null}}}return null}var z=Object.assign,U=0,ne,ye,ce,Z,xe,K,oe;function $(){}$.__reactDisabledLog=!0;function bo(){{if(U===0){ne=console.log,ye=console.info,ce=console.warn,Z=console.error,xe=console.group,K=console.groupCollapsed,oe=console.groupEnd;var o={configurable:!0,enumerable:!0,value:$,writable:!0};Object.defineProperties(console,{info:o,log:o,warn:o,error:o,group:o,groupCollapsed:o,groupEnd:o})}U++}}function yo(){{if(U--,U===0){var o={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},o,{value:ne}),info:z({},o,{value:ye}),warn:z({},o,{value:ce}),error:z({},o,{value:Z}),group:z({},o,{value:xe}),groupCollapsed:z({},o,{value:K}),groupEnd:z({},o,{value:oe})})}U<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var et=R.ReactCurrentDispatcher,tt;function Oe(o,d,g){{if(tt===void 0)try{throw Error()}catch(T){var b=T.stack.trim().match(/\n( *(at )?)/);tt=b&&b[1]||""}return`
`+tt+o}}var rt=!1,Ae;{var xo=typeof WeakMap=="function"?WeakMap:Map;Ae=new xo}function Xt(o,d){if(!o||rt)return"";{var g=Ae.get(o);if(g!==void 0)return g}var b;rt=!0;var T=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var j;j=et.current,et.current=null,bo();try{if(d){var S=function(){throw Error()};if(Object.defineProperty(S.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(S,[])}catch(q){b=q}Reflect.construct(o,[],S)}else{try{S.call()}catch(q){b=q}o.call(S.prototype)}}else{try{throw Error()}catch(q){b=q}o()}}catch(q){if(q&&b&&typeof q.stack=="string"){for(var C=q.stack.split(`
`),N=b.stack.split(`
`),I=C.length-1,V=N.length-1;I>=1&&V>=0&&C[I]!==N[V];)V--;for(;I>=1&&V>=0;I--,V--)if(C[I]!==N[V]){if(I!==1||V!==1)do if(I--,V--,V<0||C[I]!==N[V]){var W=`
`+C[I].replace(" at new "," at ");return o.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",o.displayName)),typeof o=="function"&&Ae.set(o,W),W}while(I>=1&&V>=0);break}}}finally{rt=!1,et.current=j,yo(),Error.prepareStackTrace=T}var fe=o?o.displayName||o.name:"",cr=fe?Oe(fe):"";return typeof o=="function"&&Ae.set(o,cr),cr}function wo(o,d,g){return Xt(o,!1)}function Co(o){var d=o.prototype;return!!(d&&d.isReactComponent)}function _e(o,d,g){if(o==null)return"";if(typeof o=="function")return Xt(o,Co(o));if(typeof o=="string")return Oe(o);switch(o){case p:return Oe("Suspense");case f:return Oe("SuspenseList")}if(typeof o=="object")switch(o.$$typeof){case m:return wo(o.render);case u:return _e(o.type,d,g);case h:{var b=o,T=b._payload,j=b._init;try{return _e(j(T),d,g)}catch{}}}return""}var Ie=Object.prototype.hasOwnProperty,Jt={},Qt=R.ReactDebugCurrentFrame;function Re(o){if(o){var d=o._owner,g=_e(o.type,o._source,d?d.type:null);Qt.setExtraStackFrame(g)}else Qt.setExtraStackFrame(null)}function Eo(o,d,g,b,T){{var j=Function.call.bind(Ie);for(var S in o)if(j(o,S)){var C=void 0;try{if(typeof o[S]!="function"){var N=Error((b||"React class")+": "+g+" type `"+S+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[S]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw N.name="Invariant Violation",N}C=o[S](d,S,b,g,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(I){C=I}C&&!(C instanceof Error)&&(Re(T),v("%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).",b||"React class",g,S,typeof C),Re(null)),C instanceof Error&&!(C.message in Jt)&&(Jt[C.message]=!0,Re(T),v("Failed %s type: %s",g,C.message),Re(null))}}}var So=Array.isArray;function nt(o){return So(o)}function Po(o){{var d=typeof Symbol=="function"&&Symbol.toStringTag,g=d&&o[Symbol.toStringTag]||o.constructor.name||"Object";return g}}function ko(o){try{return er(o),!1}catch{return!0}}function er(o){return""+o}function tr(o){if(ko(o))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Po(o)),er(o)}var we=R.ReactCurrentOwner,To={key:!0,ref:!0,__self:!0,__source:!0},rr,nr,ot;ot={};function Mo(o){if(Ie.call(o,"ref")){var d=Object.getOwnPropertyDescriptor(o,"ref").get;if(d&&d.isReactWarning)return!1}return o.ref!==void 0}function jo(o){if(Ie.call(o,"key")){var d=Object.getOwnPropertyDescriptor(o,"key").get;if(d&&d.isReactWarning)return!1}return o.key!==void 0}function Oo(o,d){if(typeof o.ref=="string"&&we.current&&d&&we.current.stateNode!==d){var g=F(we.current.type);ot[g]||(v('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',F(we.current.type),o.ref),ot[g]=!0)}}function Ao(o,d){{var g=function(){rr||(rr=!0,v("%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)",d))};g.isReactWarning=!0,Object.defineProperty(o,"key",{get:g,configurable:!0})}}function _o(o,d){{var g=function(){nr||(nr=!0,v("%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)",d))};g.isReactWarning=!0,Object.defineProperty(o,"ref",{get:g,configurable:!0})}}var Io=function(o,d,g,b,T,j,S){var C={$$typeof:t,type:o,key:d,ref:g,props:S,_owner:j};return C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(C,"_self",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.defineProperty(C,"_source",{configurable:!1,enumerable:!1,writable:!1,value:T}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C};function Ro(o,d,g,b,T){{var j,S={},C=null,N=null;g!==void 0&&(tr(g),C=""+g),jo(d)&&(tr(d.key),C=""+d.key),Mo(d)&&(N=d.ref,Oo(d,T));for(j in d)Ie.call(d,j)&&!To.hasOwnProperty(j)&&(S[j]=d[j]);if(o&&o.defaultProps){var I=o.defaultProps;for(j in I)S[j]===void 0&&(S[j]=I[j])}if(C||N){var V=typeof o=="function"?o.displayName||o.name||"Unknown":o;C&&Ao(S,V),N&&_o(S,V)}return Io(o,C,N,T,b,we.current,S)}}var it=R.ReactCurrentOwner,or=R.ReactDebugCurrentFrame;function de(o){if(o){var d=o._owner,g=_e(o.type,o._source,d?d.type:null);or.setExtraStackFrame(g)}else or.setExtraStackFrame(null)}var at;at=!1;function st(o){return typeof o=="object"&&o!==null&&o.$$typeof===t}function ir(){{if(it.current){var o=F(it.current.type);if(o)return`
Check the render method of \``+o+"`."}return""}}function Vo(o){{if(o!==void 0){var d=o.fileName.replace(/^.*[\\\/]/,""),g=o.lineNumber;return`
Check your code at `+d+":"+g+"."}return""}}var ar={};function Lo(o){{var d=ir();if(!d){var g=typeof o=="string"?o:o.displayName||o.name;g&&(d=`
Check the top-level render call using <`+g+">.")}return d}}function sr(o,d){{if(!o._store||o._store.validated||o.key!=null)return;o._store.validated=!0;var g=Lo(d);if(ar[g])return;ar[g]=!0;var b="";o&&o._owner&&o._owner!==it.current&&(b=" It was passed a child from "+F(o._owner.type)+"."),de(o),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',g,b),de(null)}}function lr(o,d){{if(typeof o!="object")return;if(nt(o))for(var g=0;g<o.length;g++){var b=o[g];st(b)&&sr(b,d)}else if(st(o))o._store&&(o._store.validated=!0);else if(o){var T=_(o);if(typeof T=="function"&&T!==o.entries)for(var j=T.call(o),S;!(S=j.next()).done;)st(S.value)&&sr(S.value,d)}}}function $o(o){{var d=o.type;if(d==null||typeof d=="string")return;var g;if(typeof d=="function")g=d.propTypes;else if(typeof d=="object"&&(d.$$typeof===m||d.$$typeof===u))g=d.propTypes;else return;if(g){var b=F(d);Eo(g,o.props,"prop",b,o)}else if(d.PropTypes!==void 0&&!at){at=!0;var T=F(d);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",T||"Unknown")}typeof d.getDefaultProps=="function"&&!d.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function No(o){{for(var d=Object.keys(o.props),g=0;g<d.length;g++){var b=d[g];if(b!=="children"&&b!=="key"){de(o),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",b),de(null);break}}o.ref!==null&&(de(o),v("Invalid attribute `ref` supplied to `React.Fragment`."),de(null))}}function ur(o,d,g,b,T,j){{var S=ve(o);if(!S){var C="";(o===void 0||typeof o=="object"&&o!==null&&Object.keys(o).length===0)&&(C+=" 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 N=Vo(T);N?C+=N:C+=ir();var I;o===null?I="null":nt(o)?I="array":o!==void 0&&o.$$typeof===t?(I="<"+(F(o.type)||"Unknown")+" />",C=" Did you accidentally export a JSX literal instead of a component?"):I=typeof o,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",I,C)}var V=Ro(o,d,g,T,j);if(V==null)return V;if(S){var W=d.children;if(W!==void 0)if(b)if(nt(W)){for(var fe=0;fe<W.length;fe++)lr(W[fe],o);Object.freeze&&Object.freeze(W)}else v("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 lr(W,o)}return o===n?No(V):$o(V),V}}function Fo(o,d,g){return ur(o,d,g,!0)}function zo(o,d,g){return ur(o,d,g,!1)}var Wo=zo,Go=Fo;me.Fragment=n,me.jsx=Wo,me.jsxs=Go}()),me}process.env.NODE_ENV==="production"?Ve.exports=fr():Ve.exports=pr();var k=Ve.exports;const mr=c.createContext(void 0);function gr(){const e=c.useContext(mr);if(!e)throw new Error("useLume must be used within a LumeProvider");const{lume:t}=e;return t}function Ce(){return Ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ce.apply(this,arguments)}function hr(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function vr(...e){return t=>e.forEach(r=>hr(r,t))}const ct=c.forwardRef((e,t)=>{const{children:r,...n}=e,i=c.Children.toArray(r),a=i.find(yr);if(a){const s=a.props.children,l=i.map(m=>m===a?c.Children.count(s)>1?c.Children.only(null):c.isValidElement(s)?s.props.children:null:m);return c.createElement(Le,Ce({},n,{ref:t}),c.isValidElement(s)?c.cloneElement(s,void 0,l):null)}return c.createElement(Le,Ce({},n,{ref:t}),r)});ct.displayName="Slot";const Le=c.forwardRef((e,t)=>{const{children:r,...n}=e;return c.isValidElement(r)?c.cloneElement(r,{...xr(n,r.props),ref:t?vr(t,r.ref):r.ref}):c.Children.count(r)>1?c.Children.only(null):null});Le.displayName="SlotClone";const br=({children:e})=>c.createElement(c.Fragment,null,e);function yr(e){return c.isValidElement(e)&&e.type===br}function xr(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...l)=>{a(...l),i(...l)}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function dt(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=dt(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function ft(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=dt(e))&&(n&&(n+=" "),n+=t);return n}const pt=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,mt=ft,wr=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return mt(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:a}=t,s=Object.keys(i).map(p=>{const f=r==null?void 0:r[p],u=a==null?void 0:a[p];if(f===null)return null;const h=pt(f)||pt(u);return i[p][h]}),l=r&&Object.entries(r).reduce((p,f)=>{let[u,h]=f;return h===void 0||(p[u]=h),p},{}),m=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((p,f)=>{let{class:u,className:h,...y}=f;return Object.entries(y).every(E=>{let[P,_]=E;return Array.isArray(_)?_.includes({...a,...l}[P]):{...a,...l}[P]===_})?[...p,u,h]:p},[]);return mt(e,s,m,r==null?void 0:r.class,r==null?void 0:r.className)};function Cr(){for(var e=0,t,r,n="";e<arguments.length;)(t=arguments[e++])&&(r=gt(t))&&(n&&(n+=" "),n+=r);return n}function gt(e){if(typeof e=="string")return e;for(var t,r="",n=0;n<e.length;n++)e[n]&&(t=gt(e[n]))&&(r&&(r+=" "),r+=t);return r}var $e="-";function Er(e){var t=Pr(e),r=e.conflictingClassGroups,n=e.conflictingClassGroupModifiers,i=n===void 0?{}:n;function a(l){var m=l.split($e);return m[0]===""&&m.length!==1&&m.shift(),ht(m,t)||Sr(l)}function s(l,m){var p=r[l]||[];return m&&i[l]?[].concat(p,i[l]):p}return{getClassGroupId:a,getConflictingClassGroupIds:s}}function ht(e,t){var s;if(e.length===0)return t.classGroupId;var r=e[0],n=t.nextPart.get(r),i=n?ht(e.slice(1),n):void 0;if(i)return i;if(t.validators.length!==0){var a=e.join($e);return(s=t.validators.find(function(l){var m=l.validator;return m(a)}))==null?void 0:s.classGroupId}}var vt=/^\[(.+)\]$/;function Sr(e){if(vt.test(e)){var t=vt.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function Pr(e){var t=e.theme,r=e.prefix,n={nextPart:new Map,validators:[]},i=Tr(Object.entries(e.classGroups),r);return i.forEach(function(a){var s=a[0],l=a[1];Ne(l,n,s,t)}),n}function Ne(e,t,r,n){e.forEach(function(i){if(typeof i=="string"){var a=i===""?t:bt(t,i);a.classGroupId=r;return}if(typeof i=="function"){if(kr(i)){Ne(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(function(s){var l=s[0],m=s[1];Ne(m,bt(t,l),r,n)})})}function bt(e,t){var r=e;return t.split($e).forEach(function(n){r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function kr(e){return e.isThemeGetter}function Tr(e,t){return t?e.map(function(r){var n=r[0],i=r[1],a=i.map(function(s){return typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(function(l){var m=l[0],p=l[1];return[t+m,p]})):s});return[n,a]}):e}function Mr(e){if(e<1)return{get:function(){},set:function(){}};var t=0,r=new Map,n=new Map;function i(a,s){r.set(a,s),t++,t>e&&(t=0,n=r,r=new Map)}return{get:function(s){var l=r.get(s);if(l!==void 0)return l;if((l=n.get(s))!==void 0)return i(s,l),l},set:function(s,l){r.has(s)?r.set(s,l):i(s,l)}}}var yt="!";function jr(e){var t=e.separator||":",r=t.length===1,n=t[0],i=t.length;return function(s){for(var l=[],m=0,p=0,f,u=0;u<s.length;u++){var h=s[u];if(m===0){if(h===n&&(r||s.slice(u,u+i)===t)){l.push(s.slice(p,u)),p=u+i;continue}if(h==="/"){f=u;continue}}h==="["?m++:h==="]"&&m--}var y=l.length===0?s:s.substring(p),E=y.startsWith(yt),P=E?y.substring(1):y,_=f&&f>p?f-p:void 0;return{modifiers:l,hasImportantModifier:E,baseClassName:P,maybePostfixModifierPosition:_}}}function Or(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach(function(n){var i=n[0]==="[";i?(t.push.apply(t,r.sort().concat([n])),r=[]):r.push(n)}),t.push.apply(t,r.sort()),t}function Ar(e){return{cache:Mr(e.cacheSize),splitModifiers:jr(e),...Er(e)}}var _r=/\s+/;function Ir(e,t){var r=t.splitModifiers,n=t.getClassGroupId,i=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(_r).map(function(s){var l=r(s),m=l.modifiers,p=l.hasImportantModifier,f=l.baseClassName,u=l.maybePostfixModifierPosition,h=n(u?f.substring(0,u):f),y=!!u;if(!h){if(!u)return{isTailwindClass:!1,originalClassName:s};if(h=n(f),!h)return{isTailwindClass:!1,originalClassName:s};y=!1}var E=Or(m).join(":"),P=p?E+yt:E;return{isTailwindClass:!0,modifierId:P,classGroupId:h,originalClassName:s,hasPostfixModifier:y}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var l=s.modifierId,m=s.classGroupId,p=s.hasPostfixModifier,f=l+m;return a.has(f)?!1:(a.add(f),i(m,p).forEach(function(u){return a.add(l+u)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function Rr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i,a,s=l;function l(p){var f=t[0],u=t.slice(1),h=u.reduce(function(y,E){return E(y)},f());return n=Ar(h),i=n.cache.get,a=n.cache.set,s=m,m(p)}function m(p){var f=i(p);if(f)return f;var u=Ir(p,n);return a(p,u),u}return function(){return s(Cr.apply(null,arguments))}}function O(e){var t=function(n){return n[e]||[]};return t.isThemeGetter=!0,t}var xt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Vr=/^\d+\/\d+$/,Lr=new Set(["px","full","screen"]),$r=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Nr=/\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$/,Fr=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function G(e){return J(e)||Lr.has(e)||Vr.test(e)||Fe(e)}function Fe(e){return Q(e,"length",qr)}function zr(e){return Q(e,"size",wt)}function Wr(e){return Q(e,"position",wt)}function Gr(e){return Q(e,"url",Hr)}function Ee(e){return Q(e,"number",J)}function J(e){return!Number.isNaN(Number(e))}function Dr(e){return e.endsWith("%")&&J(e.slice(0,-1))}function ge(e){return Ct(e)||Q(e,"number",Ct)}function w(e){return xt.test(e)}function he(){return!0}function H(e){return $r.test(e)}function Br(e){return Q(e,"",Yr)}function Q(e,t,r){var n=xt.exec(e);return n?n[1]?n[1]===t:r(n[2]):!1}function qr(e){return Nr.test(e)}function wt(){return!1}function Hr(e){return e.startsWith("url(")}function Ct(e){return Number.isInteger(Number(e))}function Yr(e){return Fr.test(e)}function Ur(){var e=O("colors"),t=O("spacing"),r=O("blur"),n=O("brightness"),i=O("borderColor"),a=O("borderRadius"),s=O("borderSpacing"),l=O("borderWidth"),m=O("contrast"),p=O("grayscale"),f=O("hueRotate"),u=O("invert"),h=O("gap"),y=O("gradientColorStops"),E=O("gradientColorStopPositions"),P=O("inset"),_=O("margin"),R=O("opacity"),v=O("padding"),A=O("saturate"),D=O("scale"),se=O("sepia"),B=O("skew"),le=O("space"),ue=O("translate"),Y=function(){return["auto","contain","none"]},ve=function(){return["auto","hidden","clip","visible","scroll"]},be=function(){return["auto",w,t]},M=function(){return[w,t]},F=function(){return["",G]},z=function(){return["auto",J,w]},U=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},ne=function(){return["solid","dashed","dotted","double","none"]},ye=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},ce=function(){return["start","end","center","between","around","evenly","stretch"]},Z=function(){return["","0",w]},xe=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},K=function(){return[J,Ee]},oe=function(){return[J,w]};return{cacheSize:500,theme:{colors:[he],spacing:[G],blur:["none","",H,w],brightness:K(),borderColor:[e],borderRadius:["none","","full",H,w],borderSpacing:M(),borderWidth:F(),contrast:K(),grayscale:Z(),hueRotate:oe(),invert:Z(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[Dr,Fe],inset:be(),margin:be(),opacity:K(),padding:M(),saturate:K(),scale:K(),sepia:Z(),skew:oe(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",w]}],container:["container"],columns:[{columns:[H]}],"break-after":[{"break-after":xe()}],"break-before":[{"break-before":xe()}],"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"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(U(),[w])}],overflow:[{overflow:ve()}],"overflow-x":[{"overflow-x":ve()}],"overflow-y":[{"overflow-y":ve()}],overscroll:[{overscroll:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-y":[{"overscroll-y":Y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[P]}],"inset-x":[{"inset-x":[P]}],"inset-y":[{"inset-y":[P]}],start:[{start:[P]}],end:[{end:[P]}],top:[{top:[P]}],right:[{right:[P]}],bottom:[{bottom:[P]}],left:[{left:[P]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ge]}],basis:[{basis:be()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",w]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",ge]}],"grid-cols":[{"grid-cols":[he]}],"col-start-end":[{col:["auto",{span:["full",ge]},w]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[he]}],"row-start-end":[{row:["auto",{span:[ge]},w]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",w]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",w]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal"].concat(ce())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(ce(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(ce(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[_]}],mx:[{mx:[_]}],my:[{my:[_]}],ms:[{ms:[_]}],me:[{me:[_]}],mt:[{mt:[_]}],mr:[{mr:[_]}],mb:[{mb:[_]}],ml:[{ml:[_]}],"space-x":[{"space-x":[le]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[le]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",w,t]}],"min-w":[{"min-w":["min","max","fit",w,G]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[H]},H,w]}],h:[{h:[w,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",w,G]}],"max-h":[{"max-h":[w,t,"min","max","fit"]}],"font-size":[{text:["base",H,Fe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ee]}],"font-family":[{font:[he]}],"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",w]}],"line-clamp":[{"line-clamp":["none",J,Ee]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",w,G]}],"list-image":[{"list-image":["none",w]}],"list-style-type":[{list:["none","disc","decimal",w]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(ne(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",G]}],"underline-offset":[{"underline-offset":["auto",w,G]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",w]}],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",w]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(U(),[Wr])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",zr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Gr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],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:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[].concat(ne(),["hidden"])}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:ne()}],"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:[""].concat(ne())}],"outline-offset":[{"outline-offset":[w,G]}],"outline-w":[{outline:[G]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[G]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",H,Br]}],"shadow-color":[{shadow:[he]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":ye()}],"bg-blend":[{"bg-blend":ye()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",H,w]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[u]}],saturate:[{saturate:[A]}],sepia:[{sepia:[se]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[se]}],"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",w]}],duration:[{duration:oe()}],ease:[{ease:["linear","in","out","in-out",w]}],delay:[{delay:oe()}],animate:[{animate:["none","spin","ping","pulse","bounce",w]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[D]}],"scale-x":[{"scale-x":[D]}],"scale-y":[{"scale-y":[D]}],rotate:[{rotate:[ge,w]}],"translate-x":[{"translate-x":[ue]}],"translate-y":[{"translate-y":[ue]}],"skew-x":[{"skew-x":[B]}],"skew-y":[{"skew-y":[B]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",w]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],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",w]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",w]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[G,Ee]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},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"],"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"],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"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var Zr=Rr(Ur);function Et(...e){return Zr(ft(e))}const Kr=wr("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"text-neutral-600 border border-current bg-transparent shadow-sm hover:border-white hover:text-white",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),ee=L.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...i},a)=>{const s=n?ct:"button";return k.jsx(s,{className:"d411x41bq1lnhm670n "+Et(Kr({variant:t,size:r,className:e})),ref:a,...i})});ee.displayName="Button";const St=c.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Se=c.createContext({}),ze=c.createContext(null),Pt=typeof document<"u",We=Pt?c.useLayoutEffect:c.useEffect,kt=c.createContext({strict:!1});function Xr(e,t,r,n){const{visualElement:i}=c.useContext(Se),a=c.useContext(kt),s=c.useContext(ze),l=c.useContext(St).reducedMotion,m=c.useRef();n=n||a.renderer,!m.current&&n&&(m.current=n(e,{visualState:t,parent:i,props:r,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));const p=m.current;c.useInsertionEffect(()=>{p&&p.update(r,s)});const f=c.useRef(!!window.HandoffAppearAnimations);return We(()=>{p&&(p.render(),f.current&&p.animationState&&p.animationState.animateChanges())}),c.useEffect(()=>{p&&(p.updateFeatures(),!f.current&&p.animationState&&p.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,f.current=!1)}),p}function Jr(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Qr(e,t,r){return c.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Jr(r)&&(r.current=n))},[t])}function Ge(e){return typeof e=="string"||Array.isArray(e)}function Tt(e){return typeof e=="object"&&typeof e.start=="function"}const en=["initial",...["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"]];function De(e){return Tt(e.animate)||en.some(t=>Ge(e[t]))}function tn(e){return!!(De(e)||e.variants)}function rn(e,t){if(De(e)){const{initial:r,animate:n}=e;return{initial:r===!1||Ge(r)?r:void 0,animate:Ge(n)?n:void 0}}return e.inherit!==!1?t:{}}function nn(e){const{initial:t,animate:r}=rn(e,c.useContext(Se));return c.useMemo(()=>({initial:t,animate:r}),[Mt(t),Mt(r)])}function Mt(e){return Array.isArray(e)?e.join(" "):e}const jt={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"]},Be={};for(const e in jt)Be[e]={isEnabled:t=>jt[e].some(r=>!!t[r])};function on(e){for(const t in e)Be[t]={...Be[t],...e[t]}}const Ot=c.createContext({}),an=c.createContext({}),sn=Symbol.for("motionComponentSymbol");function ln({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:i}){e&&on(e);function a(l,m){let p;const f={...c.useContext(St),...l,layoutId:un(l)},{isStatic:u}=f,h=nn(l),y=n(l,u);if(!u&&Pt){h.visualElement=Xr(i,y,f,t);const E=c.useContext(an),P=c.useContext(kt).strict;h.visualElement&&(p=h.visualElement.loadFeatures(f,P,e,E))}return L.createElement(Se.Provider,{value:h},p&&h.visualElement?L.createElement(p,{visualElement:h.visualElement,...f}):null,r(i,l,Qr(y,h.visualElement,m),y,u,h.visualElement))}const s=c.forwardRef(a);return s[sn]=i,s}function un({layoutId:e}){const t=c.useContext(Ot).id;return t&&e!==void 0?t+"-"+e:e}function cn(e){function t(n,i={}){return ln(e(n,i))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,i)=>(r.has(i)||r.set(i,t(i)),r.get(i))})}const dn=["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 At(e){return typeof e!="string"||e.includes("-")?!1:!!(dn.indexOf(e)>-1||/[A-Z]/.test(e))}const fn={},Pe=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_t=new Set(Pe);function It(e,{layout:t,layoutId:r}){return _t.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!fn[e]||e==="opacity")}const te=e=>!!(e&&e.getVelocity),pn={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},mn=Pe.length;function gn(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,i){let a="";for(let s=0;s<mn;s++){const l=Pe[s];if(e[l]!==void 0){const m=pn[l]||l;a+=`${m}(${e[l]}) `}}return t&&!e.z&&(a+="translateZ(0)"),a=a.trim(),i?a=i(e,n?"":a):r&&n&&(a="none"),a}const hn=(e=>t=>typeof t=="string"&&t.startsWith(e))("--"),vn=(e,t)=>t&&typeof e=="number"?t.transform(e):e,bn=(e,t,r)=>Math.min(Math.max(r,e),t),qe={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},He={...qe,transform:e=>bn(0,1,e)},ke={...qe,default:1};function yn(e){return typeof e=="string"}const Ye=e=>({test:t=>yn(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),re=Ye("deg"),Ue=Ye("%"),x=Ye("px"),Rt={...Ue,parse:e=>Ue.parse(e)/100,transform:e=>Ue.transform(e*100)},Vt={...qe,transform:Math.round},xn={borderWidth:x,borderTopWidth:x,borderRightWidth:x,borderBottomWidth:x,borderLeftWidth:x,borderRadius:x,radius:x,borderTopLeftRadius:x,borderTopRightRadius:x,borderBottomRightRadius:x,borderBottomLeftRadius:x,width:x,maxWidth:x,height:x,maxHeight:x,size:x,top:x,right:x,bottom:x,left:x,padding:x,paddingTop:x,paddingRight:x,paddingBottom:x,paddingLeft:x,margin:x,marginTop:x,marginRight:x,marginBottom:x,marginLeft:x,rotate:re,rotateX:re,rotateY:re,rotateZ:re,scale:ke,scaleX:ke,scaleY:ke,scaleZ:ke,skew:re,skewX:re,skewY:re,distance:x,translateX:x,translateY:x,translateZ:x,x,y:x,z:x,perspective:x,transformPerspective:x,opacity:He,originX:Rt,originY:Rt,originZ:x,zIndex:Vt,fillOpacity:He,strokeOpacity:He,numOctaves:Vt};function Lt(e,t,r,n){const{style:i,vars:a,transform:s,transformOrigin:l}=e;let m=!1,p=!1,f=!0;for(const u in t){const h=t[u];if(hn(u)){a[u]=h;continue}const y=xn[u],E=vn(h,y);if(_t.has(u)){if(m=!0,s[u]=E,!f)continue;h!==(y.default||0)&&(f=!1)}else u.startsWith("origin")?(p=!0,l[u]=E):i[u]=E}if(t.transform||(m||n?i.transform=gn(e.transform,r,f,n):i.transform&&(i.transform="none")),p){const{originX:u="50%",originY:h="50%",originZ:y=0}=l;i.transformOrigin=`${u} ${h} ${y}`}}const Ze=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function $t(e,t,r){for(const n in t)!te(t[n])&&!It(n,r)&&(e[n]=t[n])}function wn({transformTemplate:e},t,r){return c.useMemo(()=>{const n=Ze();return Lt(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function Cn(e,t,r){const n=e.style||{},i={};return $t(i,n,e),Object.assign(i,wn(e,t,r)),e.transformValues?e.transformValues(i):i}function En(e,t,r){const n={},i=Cn(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const Sn=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Te(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||Sn.has(e)}let Nt=e=>!Te(e);function Pn(e){e&&(Nt=t=>t.startsWith("on")?!Te(t):e(t))}try{Pn(require("@emotion/is-prop-valid").default)}catch{}function kn(e,t,r){const n={};for(const i in e)i==="values"&&typeof e.values=="object"||(Nt(i)||r===!0&&Te(i)||!t&&!Te(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}function Ft(e,t,r){return typeof e=="string"?e:x.transform(t+r*e)}function Tn(e,t,r){const n=Ft(t,e.x,e.width),i=Ft(r,e.y,e.height);return`${n} ${i}`}const Mn={offset:"stroke-dashoffset",array:"stroke-dasharray"},jn={offset:"strokeDashoffset",array:"strokeDasharray"};function On(e,t,r=1,n=0,i=!0){e.pathLength=1;const a=i?Mn:jn;e[a.offset]=x.transform(-n);const s=x.transform(t),l=x.transform(r);e[a.array]=`${s} ${l}`}function zt(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:a,pathLength:s,pathSpacing:l=1,pathOffset:m=0,...p},f,u,h){if(Lt(e,p,f,h),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:y,style:E,dimensions:P}=e;y.transform&&(P&&(E.transform=y.transform),delete y.transform),P&&(i!==void 0||a!==void 0||E.transform)&&(E.transformOrigin=Tn(P,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(y.x=t),r!==void 0&&(y.y=r),n!==void 0&&(y.scale=n),s!==void 0&&On(y,s,l,m,!1)}const Wt=()=>({...Ze(),attrs:{}}),Gt=e=>typeof e=="string"&&e.toLowerCase()==="svg";function An(e,t,r,n){const i=c.useMemo(()=>{const a=Wt();return zt(a,t,{enableHardwareAcceleration:!1},Gt(n),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};$t(a,e.style,e),i.style={...a,...i.style}}return i}function _n(e=!1){return(r,n,i,{latestValues:a},s)=>{const m=(At(r)?An:En)(n,a,s,r),f={...kn(n,typeof r=="string",e),...m,ref:i},{children:u}=n,h=c.useMemo(()=>te(u)?u.get():u,[u]);return c.createElement(r,{...f,children:h})}}const In=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Rn(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(const a in r)e.style.setProperty(a,r[a])}const Vn=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 Ln(e,t,r,n){Rn(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(Vn.has(i)?i:In(i),t.attrs[i])}function Dt(e,t){const{style:r}=e,n={};for(const i in r)(te(r[i])||t.style&&te(t.style[i])||It(i,e))&&(n[i]=r[i]);return n}function $n(e,t){const r=Dt(e,t);for(const n in e)if(te(e[n])||te(t[n])){const i=Pe.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[i]=e[n]}return r}function Nn(e,t,r,n={},i={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),t}function Bt(e){const t=c.useRef(null);return t.current===null&&(t.current=e()),t.current}const Fn=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue);function zn(e){const t=te(e)?e.get():e;return Fn(t)?t.toValue():t}function Wn({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,a){const s={latestValues:Gn(n,i,a,e),renderState:t()};return r&&(s.mount=l=>r(n,l,s)),s}const qt=e=>(t,r)=>{const n=c.useContext(Se),i=c.useContext(ze),a=()=>Wn(e,t,n,i);return r?a():Bt(a)};function Gn(e,t,r,n){const i={},a=n(e,{});for(const h in a)i[h]=zn(a[h]);let{initial:s,animate:l}=e;const m=De(e),p=tn(e);t&&p&&!m&&e.inherit!==!1&&(s===void 0&&(s=t.initial),l===void 0&&(l=t.animate));let f=r?r.initial===!1:!1;f=f||s===!1;const u=f?l:s;return u&&typeof u!="boolean"&&!Tt(u)&&(Array.isArray(u)?u:[u]).forEach(y=>{const E=Nn(e,y);if(!E)return;const{transitionEnd:P,transition:_,...R}=E;for(const v in R){let A=R[v];if(Array.isArray(A)){const D=f?A.length-1:0;A=A[D]}A!==null&&(i[v]=A)}for(const v in P)i[v]=P[v]}),i}const Dn=e=>e;class Ht{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function Bn(e){let t=new Ht,r=new Ht,n=0,i=!1,a=!1;const s=new WeakSet,l={schedule:(m,p=!1,f=!1)=>{const u=f&&i,h=u?t:r;return p&&s.add(m),h.add(m)&&u&&i&&(n=t.order.length),m},cancel:m=>{r.remove(m),s.delete(m)},process:m=>{if(i){a=!0;return}if(i=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let p=0;p<n;p++){const f=t.order[p];f(m),s.has(f)&&(l.schedule(f),e())}i=!1,a&&(a=!1,l.process(m))}};return l}const Me=["prepare","read","update","preRender","render","postRender"],qn=40;function Hn(e,t){let r=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=Me.reduce((u,h)=>(u[h]=Bn(()=>r=!0),u),{}),s=u=>a[u].process(i),l=()=>{const u=performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(u-i.timestamp,qn),1),i.timestamp=u,i.isProcessing=!0,Me.forEach(s),i.isProcessing=!1,r&&t&&(n=!1,e(l))},m=()=>{r=!0,n=!0,i.isProcessing||e(l)};return{schedule:Me.reduce((u,h)=>{const y=a[h];return u[h]=(E,P=!1,_=!1)=>(r||m(),y.schedule(E,P,_)),u},{}),cancel:u=>Me.forEach(h=>a[h].cancel(u)),state:i,steps:a}}const{schedule:Ke,cancel:qo,state:Ho,steps:Yo}=Hn(typeof requestAnimationFrame<"u"?requestAnimationFrame:Dn,!0),Yn={useVisualState:qt({scrapeMotionValuesFromProps:$n,createRenderState:Wt,onMount:(e,t,{renderState:r,latestValues:n})=>{Ke.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),Ke.render(()=>{zt(r,n,{enableHardwareAcceleration:!1},Gt(t.tagName),e.transformTemplate),Ln(t,r)})}})},Un={useVisualState:qt({scrapeMotionValuesFromProps:Dt,createRenderState:Ze})};function Zn(e,{forwardMotionProps:t=!1},r,n){return{...At(e)?Yn:Un,preloadedFeatures:r,useRender:_n(t),createVisualElement:n,Component:e}}const ie=cn(Zn);function Yt(){const e=c.useRef(!1);return We(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Kn(){const e=Yt(),[t,r]=c.useState(0),n=c.useCallback(()=>{e.current&&r(t+1)},[t]);return[c.useCallback(()=>Ke.postRender(n),[n]),t]}class Xn extends L.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Jn({children:e,isPresent:t}){const r=c.useId(),n=c.useRef(null),i=c.useRef({width:0,height:0,top:0,left:0});return c.useInsertionEffect(()=>{const{width:a,height:s,top:l,left:m}=i.current;if(t||!n.current||!a||!s)return;n.current.dataset.motionPopId=r;const p=document.createElement("style");return document.head.appendChild(p),p.sheet&&p.sheet.insertRule(`
[data-motion-pop-id="${r}"] {
position: absolute !important;
width: ${a}px !important;
height: ${s}px !important;
top: ${l}px !important;
left: ${m}px !important;
}
`),()=>{document.head.removeChild(p)}},[t]),L.createElement(Xn,{isPresent:t,childRef:n,sizeRef:i},L.cloneElement(e,{ref:n}))}const Xe=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:a,mode:s})=>{const l=Bt(Qn),m=c.useId(),p=c.useMemo(()=>({id:m,initial:t,isPresent:r,custom:i,onExitComplete:f=>{l.set(f,!0);for(const u of l.values())if(!u)return;n&&n()},register:f=>(l.set(f,!1),()=>l.delete(f))}),a?void 0:[r]);return c.useMemo(()=>{l.forEach((f,u)=>l.set(u,!1))},[r]),L.useEffect(()=>{!r&&!l.size&&n&&n()},[r]),s==="popLayout"&&(e=L.createElement(Jn,{isPresent:r},e)),L.createElement(ze.Provider,{value:p},e)};function Qn(){return new Map}function eo(e){return c.useEffect(()=>()=>e(),[])}const ae=e=>e.key||"";function to(e,t){e.forEach(r=>{const n=ae(r);t.set(n,r)})}function ro(e){const t=[];return c.Children.forEach(e,r=>{c.isValidElement(r)&&t.push(r)}),t}const Je=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:s="sync"})=>{const l=c.useContext(Ot).forceRender||Kn()[0],m=Yt(),p=ro(e);let f=p;const u=c.useRef(new Map).current,h=c.useRef(f),y=c.useRef(new Map).current,E=c.useRef(!0);if(We(()=>{E.current=!1,to(p,y),h.current=f}),eo(()=>{E.current=!0,y.clear(),u.clear()}),E.current)return L.createElement(L.Fragment,null,f.map(v=>L.createElement(Xe,{key:ae(v),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:a,mode:s},v)));f=[...f];const P=h.current.map(ae),_=p.map(ae),R=P.length;for(let v=0;v<R;v++){const A=P[v];_.indexOf(A)===-1&&!u.has(A)&&u.set(A,void 0)}return s==="wait"&&u.size&&(f=[]),u.forEach((v,A)=>{if(_.indexOf(A)!==-1)return;const D=y.get(A);if(!D)return;const se=P.indexOf(A);let B=v;if(!B){const le=()=>{y.delete(A),u.delete(A);const ue=h.current.findIndex(Y=>Y.key===A);if(h.current.splice(ue,1),!u.size){if(h.current=p,m.current===!1)return;l(),n&&n()}};B=L.createElement(Xe,{key:ae(D),isPresent:!1,onExitComplete:le,custom:t,presenceAffectsLayout:a,mode:s},D),u.set(A,B)}f.splice(se,0,B)}),f=f.map(v=>{const A=v.key;return u.has(A)?v:L.createElement(Xe,{key:ae(v),isPresent:!0,presenceAffectsLayout:a,mode:s},v)}),process.env.NODE_ENV!=="production"&&s==="wait"&&f.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.`),L.createElement(L.Fragment,null,u.size?f:f.map(v=>c.cloneElement(v)))},no=c.createContext(void 0);function Ut(e){const t=c.useContext(no);if(t===void 0)throw new Error("useSwitchableComponent hook is being used outside of its context. Please ensure that it is wrapped within a <SwitchableComponentProvider>.");return c.useEffect(()=>{e&&t.visibleComponent&&t.setVisibleComponent(e)},[e]),t}Symbol("DEFAULT_COMPONENT").toString();function je(e,t){return{render(r){return k.jsx(e,{...r})},index:t||Symbol(e.name).toString()}}const Zt=L.forwardRef(({className:e,type:t,...r},n)=>k.jsx("input",{type:t,className:"d411x41bq1lnhm670n "+Et("flex h-9 w-full text-white rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 focus:border-white",e),ref:n,...r}));Zt.displayName="Input";function Qe(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var oo=["color"],io=c.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=Qe(e,oo);return c.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),c.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))}),ao=["color"],so=c.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=Qe(e,ao);return c.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),c.createElement("path",{d:"M5 2V1H10V2H5ZM4.75 0C4.33579 0 4 0.335786 4 0.75V1H3.5C2.67157 1 2 1.67157 2 2.5V12.5C2 13.3284 2.67157 14 3.5 14H7V13H3.5C3.22386 13 3 12.7761 3 12.5V2.5C3 2.22386 3.22386 2 3.5 2H4V2.25C4 2.66421 4.33579 3 4.75 3H10.25C10.6642 3 11 2.66421 11 2.25V2H11.5C11.7761 2 12 2.22386 12 2.5V7H13V2.5C13 1.67157 12.3284 1 11.5 1H11V0.75C11 0.335786 10.6642 0 10.25 0H4.75ZM9 8.5C9 8.77614 8.77614 9 8.5 9C8.22386 9 8 8.77614 8 8.5C8 8.22386 8.22386 8 8.5 8C8.77614 8 9 8.22386 9 8.5ZM10.5 9C10.7761 9 11 8.77614 11 8.5C11 8.22386 10.7761 8 10.5 8C10.2239 8 10 8.22386 10 8.5C10 8.77614 10.2239 9 10.5 9ZM13 8.5C13 8.77614 12.7761 9 12.5 9C12.2239 9 12 8.77614 12 8.5C12 8.22386 12.2239 8 12.5 8C12.7761 8 13 8.22386 13 8.5ZM14.5 9C14.7761 9 15 8.77614 15 8.5C15 8.22386 14.7761 8 14.5 8C14.2239 8 14 8.22386 14 8.5C14 8.77614 14.2239 9 14.5 9ZM15 10.5C15 10.7761 14.7761 11 14.5 11C14.2239 11 14 10.7761 14 10.5C14 10.2239 14.2239 10 14.5 10C14.7761 10 15 10.2239 15 10.5ZM14.5 13C14.7761 13 15 12.7761 15 12.5C15 12.2239 14.7761 12 14.5 12C14.2239 12 14 12.2239 14 12.5C14 12.7761 14.2239 13 14.5 13ZM14.5 15C14.7761 15 15 14.7761 15 14.5C15 14.2239 14.7761 14 14.5 14C14.2239 14 14 14.2239 14 14.5C14 14.7761 14.2239 15 14.5 15ZM8.5 11C8.77614 11 9 10.7761 9 10.5C9 10.2239 8.77614 10 8.5 10C8.22386 10 8 10.2239 8 10.5C8 10.7761 8.22386 11 8.5 11ZM9 12.5C9 12.7761 8.77614 13 8.5 13C8.22386 13 8 12.7761 8 12.5C8 12.2239 8.22386 12 8.5 12C8.77614 12 9 12.2239 9 12.5ZM8.5 15C8.77614 15 9 14.7761 9 14.5C9 14.2239 8.77614 14 8.5 14C8.22386 14 8 14.2239 8 14.5C8 14.7761 8.22386 15 8.5 15ZM11 14.5C11 14.7761 10.7761 15 10.5 15C10.2239 15 10 14.7761 10 14.5C10 14.2239 10.2239 14 10.5 14C10.7761 14 11 14.2239 11 14.5ZM12.5 15C12.7761 15 13 14.7761 13 14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5C12 14.7761 12.2239 15 12.5 15Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))}),lo=["color"],uo=c.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=Qe(e,lo);return c.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),c.createElement("path",{d:"M8.4449 0.608765C8.0183 -0.107015 6.9817 -0.107015 6.55509 0.608766L0.161178 11.3368C-0.275824 12.07 0.252503 13 1.10608 13H13.8939C14.7475 13 15.2758 12.07 14.8388 11.3368L8.4449 0.608765ZM7.4141 1.12073C7.45288 1.05566 7.54712 1.05566 7.5859 1.12073L13.9798 11.8488C14.0196 11.9154 13.9715 12 13.8939 12H1.10608C1.02849 12 0.980454 11.9154 1.02018 11.8488L7.4141 1.12073ZM6.8269 4.48611C6.81221 4.10423 7.11783 3.78663 7.5 3.78663C7.88217 3.78663 8.18778 4.10423 8.1731 4.48612L8.01921 8.48701C8.00848 8.766 7.7792 8.98664 7.5 8.98664C7.2208 8.98664 6.99151 8.766 6.98078 8.48701L6.8269 4.48611ZM8.24989 10.476C8.24989 10.8902 7.9141 11.226 7.49989 11.226C7.08567 11.226 6.74989 10.8902 6.74989 10.476C6.74989 10.0618 7.08567 9.72599 7.49989 9.72599C7.9141 9.72599 8.24989 10.0618 8.24989 10.476Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))});const co=c.createContext(void 0);function Kt(){const e=c.useContext(co);if(c.useEffect(()=>{e!=null&&e.session?localStorage.setItem("lume-session",e.session):localStorage.removeItem("lume-session")},[e==null?void 0:e.session]),c.useEffect(()=>{const t=localStorage.getItem("lume-session");t&&(e==null||e.setSession(t))},[]),e===void 0)throw new Error("useLumeIndentity hook is being used outside of its context. Please ensure that it is wrapped within a <LumeIdentityProvider>.");return{isSignedIn:!!e.session,signIn:t=>{console.log("signing in with key",t),e.setSession("session")},signOut:()=>{e.setSession(void 0)}}}const fo=()=>{const{setVisibleComponent:e}=Ut();return k.jsx(ee,{className:"d411x41bq1lnhm670n w-full h-12",variant:"outline",onClick:()=>e(ho),children:k.jsx("span",{className:"d411x41bq1lnhm670n text-center text-lg font-normal leading-normal",children:"Sign in with Account Key"})})},po=()=>{const{signIn:e}=Kt();return k.jsxs(ie.form,{className:"d411x41bq1lnhm670n flex-col flex gap-y-4",onSubmit:t=>{t.preventDefault();const n=t.target.elements.seedPhrase.value;e(n)},children:[k.jsx(Zt,{className:"d411x41bq1lnhm670n h-12 w-full text-lg",name:"seedPhrase"}),k.jsx(ie.div,{initial:{y:50},animate:{y:0},exit:{y:-50},transition:{type:"just",delay:.1},className:"d411x41bq1lnhm670n h-12",children:k.jsx(ee,{className:"d411x41bq1lnhm670n w-full h-full",role:"submit",children:k.jsx("span",{className:"d411x41bq1lnhm670n text-center text-lg font-normal leading-normal",children:"Sign in"})})})]})},mo=()=>{const{setVisibleComponent:e}=Ut(),[t,r]=c.useState();return k.jsx(ie.div,{initial:{y:50},animate:{y:0},exit:{y:-50,height:"auto"},transition:{type:"just",delay:.1},className:"d411x41bq1lnhm670n min-h-12 h-full max-w-full",style:{maxWidth:t??"auto"},ref:n=>setTimeout(()=>r(n.getBoundingClientRect().width),0),children:k.jsx(ee,{className:"d411x41bq1lnhm670n w-full h-full",onClick:()=>e(vo),children:k.jsx("span",{className:"d411x41bq1lnhm670n text-center text-lg font-normal leading-normal",children:"I get it, I'll keep it safe. Let's see the key."})})})},go=({phraseLength:e=12})=>{const[t,r]=c.useState("idle"),[n,i]=c.useState(0),{signIn:a}=Kt(),s=c.useMemo(()=>Array(e).fill("a phrase"),[e]),l=c.useMemo(()=>s.join(" "),[s]),m=()=>{navigator.clipboard.writeText(s.join(" ")),r("clicked"),setTimeout(()=>r("idle"),1e3)};return k.jsxs("div",{className:"d411x41bq1lnhm670n relative",children:[k.jsx(Je,{children:n===1?k.jsx(ie.div,{className:"z-10 absolute top-0 bottom-0 left-0 right-0 bg-black pointer-events-none",initial:{opacity:0},animate:{opacity:.75,top:-200,left:-20,right:-20,bottom:120},transition:{type:"tween",duration:.1}}):null}),k.jsxs("div",{className:"d411x41bq1lnhm670n z-20 relative mb-2.5 w-full h-full flex-wrap justify-center items-center gap-2.5 inline-flex",children:[s.map((p,f)=>k.jsxs("div",{className:"justify-center items-center gap-2.5 flex w-[calc(33%-10px)] h-10 rounded border border-current relative ring-current text-neutral-700",children:[k.jsx("span",{className:"d411x41bq1lnhm670n text-white text-md font-normal leading-normal w-full h-fit px-2.5 bg-transparent text-center",children:p}),k.jsx("span",{className:"d411x41bq1lnhm670n left-[6px] top-0 absolute text-current text-xs font-normal leading-normal",children:f+1})]},`SeedPhrase_${f}`)),k.jsx(Je,{children:n===1?k.jsxs(ie.div,{className:"d411x41bq1lnhm670n text-red-400 flex flex-row gap-5 py-8",initial:{opacity:0,y:50},animate:{opacity:1,y:0},exit:{opacity:0,y:50},transition:{type:"linear",delay:.2,duration:.5},children:[k.jsx(uo,{className:"d411x41bq1lnhm670n w-14 h-14"}),k.jsx("span",{children:"Make sure to write this down for safe keeping."})]}):null}),k.jsxs(ee,{className:`w-full h-12 ${t==="clicked"?"!text-primary !border-primary":""}`,variant:"outline",onClick:m,children:[t==="clicked"?k.jsx(io,{className:"d411x41bq1lnhm670n w-5 h-5 mr-2.5"}):k.jsx(so,{className:"d411x41bq1lnhm670n w-5 h-5 mr-2.5"}),t==="clicked"?"Copied!":"Copy Account Key"]})]}),n===0?k.jsx(ee,{className:"d411x41bq1lnhm670n z-20 w-full h-12 text-white bg-neutral-700 hover:bg-neutral-800",variant:"secondary",onClick:()=>i(1),children:"Continue"}):null,k.jsx(Je,{children:n===1?k.jsx(ie.div,{className:"d411x41bq1lnhm670n z-20 w-full h-12",initial:{opacity:0,y:-50},animate:{opacity:1,y:0},exit:{opacity:0,y:50},transition:{type:"linear",delay:2,duration:.5},children:k.jsx(ee,{className:"d411x41bq1lnhm670n w-full h-full",onClick:()=>a(l),children:"Sign In"})}):null})]})};je(fo,"submit-button");const ho=je(po,"seed-phrase-input");je(mo,"setup-account-key");const vo=je(go,"seed-phrase-form"),Uo="";X.useLume=gr,Object.defineProperty(X,Symbol.toStringTag,{value:"Module"})});
//# sourceMappingURL=lib.umd.js.map