@pondipondi/mimas 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,30 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ur=require("react");var $e={exports:{}},me={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var nr;function Kr(){if(nr)return me;nr=1;var r=ur,n=Symbol.for("react.element"),t=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,f=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(c,d,C){var p,k={},A=null,$=null;C!==void 0&&(A=""+C),d.key!==void 0&&(A=""+d.key),d.ref!==void 0&&($=d.ref);for(p in d)a.call(d,p)&&!i.hasOwnProperty(p)&&(k[p]=d[p]);if(c&&c.defaultProps)for(p in d=c.defaultProps,d)k[p]===void 0&&(k[p]=d[p]);return{$$typeof:n,type:c,key:A,ref:$,props:k,_owner:f.current}}return me.Fragment=t,me.jsx=s,me.jsxs=s,me}var ve={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var or;function Xr(){return or||(or=1,process.env.NODE_ENV!=="production"&&function(){var r=ur,n=Symbol.for("react.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),$=Symbol.for("react.offscreen"),G=Symbol.iterator,N="@@iterator";function _(e){if(e===null||typeof e!="object")return null;var o=G&&e[G]||e[N];return typeof o=="function"?o:null}var M=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){{for(var o=arguments.length,l=new Array(o>1?o-1:0),b=1;b<o;b++)l[b-1]=arguments[b];ie("error",e,l)}}function ie(e,o,l){{var b=M.ReactDebugCurrentFrame,j=b.getStackAddendum();j!==""&&(o+="%s",l=l.concat([j]));var P=l.map(function(R){return String(R)});P.unshift("Warning: "+o),Function.prototype.apply.call(console[e],console,P)}}var X=!1,ae=!1,se=!1,Q=!1,ee=!1,q;q=Symbol.for("react.module.reference");function re(e){return!!(typeof e=="string"||typeof e=="function"||e===a||e===i||ee||e===f||e===C||e===p||Q||e===$||X||ae||se||typeof e=="object"&&e!==null&&(e.$$typeof===A||e.$$typeof===k||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===q||e.getModuleId!==void 0))}function te(e,o,l){var b=e.displayName;if(b)return b;var j=o.displayName||o.name||"";return j!==""?l+"("+j+")":l}function u(e){return e.displayName||"Context"}function m(e){if(e==null)return null;if(typeof e.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case a:return"Fragment";case t:return"Portal";case i:return"Profiler";case f:return"StrictMode";case C:return"Suspense";case p:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case c:var o=e;return u(o)+".Consumer";case s:var l=e;return u(l._context)+".Provider";case d:return te(e,e.render,"ForwardRef");case k:var b=e.displayName||null;return b!==null?b:m(e.type)||"Memo";case A:{var j=e,P=j._payload,R=j._init;try{return m(R(P))}catch{return null}}}return null}var g=Object.assign,x=0,y,E,S,T,z,D,W;function ke(){}ke.__reactDisabledLog=!0;function fe(){{if(x===0){y=console.log,E=console.info,S=console.warn,T=console.error,z=console.group,D=console.groupCollapsed,W=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ke,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}x++}}function pe(){{if(x--,x===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:g({},e,{value:y}),info:g({},e,{value:E}),warn:g({},e,{value:S}),error:g({},e,{value:T}),group:g({},e,{value:z}),groupCollapsed:g({},e,{value:D}),groupEnd:g({},e,{value:W})})}x<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var le=M.ReactCurrentDispatcher,be;function Ee(e,o,l){{if(be===void 0)try{throw Error()}catch(j){var b=j.stack.trim().match(/\n( *(at )?)/);be=b&&b[1]||""}return`
18
+ `+be+e}}var Te=!1,Ce;{var Er=typeof WeakMap=="function"?WeakMap:Map;Ce=new Er}function Le(e,o){if(!e||Te)return"";{var l=Ce.get(e);if(l!==void 0)return l}var b;Te=!0;var j=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var P;P=le.current,le.current=null,fe();try{if(o){var R=function(){throw Error()};if(Object.defineProperty(R.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(R,[])}catch(Y){b=Y}Reflect.construct(e,[],R)}else{try{R.call()}catch(Y){b=Y}e.call(R.prototype)}}else{try{throw Error()}catch(Y){b=Y}e()}}catch(Y){if(Y&&b&&typeof Y.stack=="string"){for(var w=Y.stack.split(`
19
+ `),L=b.stack.split(`
20
+ `),I=w.length-1,F=L.length-1;I>=1&&F>=0&&w[I]!==L[F];)F--;for(;I>=1&&F>=0;I--,F--)if(w[I]!==L[F]){if(I!==1||F!==1)do if(I--,F--,F<0||w[I]!==L[F]){var B=`
21
+ `+w[I].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),typeof e=="function"&&Ce.set(e,B),B}while(I>=1&&F>=0);break}}}finally{Te=!1,le.current=P,pe(),Error.prepareStackTrace=j}var ue=e?e.displayName||e.name:"",ne=ue?Ee(ue):"";return typeof e=="function"&&Ce.set(e,ne),ne}function Cr(e,o,l){return Le(e,!1)}function _r(e){var o=e.prototype;return!!(o&&o.isReactComponent)}function _e(e,o,l){if(e==null)return"";if(typeof e=="function")return Le(e,_r(e));if(typeof e=="string")return Ee(e);switch(e){case C:return Ee("Suspense");case p:return Ee("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return Cr(e.render);case k:return _e(e.type,o,l);case A:{var b=e,j=b._payload,P=b._init;try{return _e(P(j),o,l)}catch{}}}return""}var ge=Object.prototype.hasOwnProperty,De={},Ye=M.ReactDebugCurrentFrame;function je(e){if(e){var o=e._owner,l=_e(e.type,e._source,o?o.type:null);Ye.setExtraStackFrame(l)}else Ye.setExtraStackFrame(null)}function jr(e,o,l,b,j){{var P=Function.call.bind(ge);for(var R in e)if(P(e,R)){var w=void 0;try{if(typeof e[R]!="function"){var L=Error((b||"React class")+": "+l+" type `"+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[R]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw L.name="Invariant Violation",L}w=e[R](o,R,b,l,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(I){w=I}w&&!(w instanceof Error)&&(je(j),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",l,R,typeof w),je(null)),w instanceof Error&&!(w.message in De)&&(De[w.message]=!0,je(j),v("Failed %s type: %s",l,w.message),je(null))}}}var Sr=Array.isArray;function Ae(e){return Sr(e)}function Tr(e){{var o=typeof Symbol=="function"&&Symbol.toStringTag,l=o&&e[Symbol.toStringTag]||e.constructor.name||"Object";return l}}function Ar(e){try{return Ue(e),!1}catch{return!0}}function Ue(e){return""+e}function Be(e){if(Ar(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Tr(e)),Ue(e)}var qe=M.ReactCurrentOwner,Pr={key:!0,ref:!0,__self:!0,__source:!0},Je,Ke;function Or(e){if(ge.call(e,"ref")){var o=Object.getOwnPropertyDescriptor(e,"ref").get;if(o&&o.isReactWarning)return!1}return e.ref!==void 0}function Mr(e){if(ge.call(e,"key")){var o=Object.getOwnPropertyDescriptor(e,"key").get;if(o&&o.isReactWarning)return!1}return e.key!==void 0}function zr(e,o){typeof e.ref=="string"&&qe.current}function Ir(e,o){{var l=function(){Je||(Je=!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)",o))};l.isReactWarning=!0,Object.defineProperty(e,"key",{get:l,configurable:!0})}}function $r(e,o){{var l=function(){Ke||(Ke=!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)",o))};l.isReactWarning=!0,Object.defineProperty(e,"ref",{get:l,configurable:!0})}}var Nr=function(e,o,l,b,j,P,R){var w={$$typeof:n,type:e,key:o,ref:l,props:R,_owner:P};return w._store={},Object.defineProperty(w._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(w,"_self",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.defineProperty(w,"_source",{configurable:!1,enumerable:!1,writable:!1,value:j}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w};function Fr(e,o,l,b,j){{var P,R={},w=null,L=null;l!==void 0&&(Be(l),w=""+l),Mr(o)&&(Be(o.key),w=""+o.key),Or(o)&&(L=o.ref,zr(o,j));for(P in o)ge.call(o,P)&&!Pr.hasOwnProperty(P)&&(R[P]=o[P]);if(e&&e.defaultProps){var I=e.defaultProps;for(P in I)R[P]===void 0&&(R[P]=I[P])}if(w||L){var F=typeof e=="function"?e.displayName||e.name||"Unknown":e;w&&Ir(R,F),L&&$r(R,F)}return Nr(e,w,L,j,b,qe.current,R)}}var Pe=M.ReactCurrentOwner,Xe=M.ReactDebugCurrentFrame;function ce(e){if(e){var o=e._owner,l=_e(e.type,e._source,o?o.type:null);Xe.setExtraStackFrame(l)}else Xe.setExtraStackFrame(null)}var Oe;Oe=!1;function Me(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function He(){{if(Pe.current){var e=m(Pe.current.type);if(e)return`
22
+
23
+ Check the render method of \``+e+"`."}return""}}function Vr(e){return""}var Ze={};function Gr(e){{var o=He();if(!o){var l=typeof e=="string"?e:e.displayName||e.name;l&&(o=`
24
+
25
+ Check the top-level render call using <`+l+">.")}return o}}function Qe(e,o){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var l=Gr(o);if(Ze[l])return;Ze[l]=!0;var b="";e&&e._owner&&e._owner!==Pe.current&&(b=" It was passed a child from "+m(e._owner.type)+"."),ce(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',l,b),ce(null)}}function er(e,o){{if(typeof e!="object")return;if(Ae(e))for(var l=0;l<e.length;l++){var b=e[l];Me(b)&&Qe(b,o)}else if(Me(e))e._store&&(e._store.validated=!0);else if(e){var j=_(e);if(typeof j=="function"&&j!==e.entries)for(var P=j.call(e),R;!(R=P.next()).done;)Me(R.value)&&Qe(R.value,o)}}}function Wr(e){{var o=e.type;if(o==null||typeof o=="string")return;var l;if(typeof o=="function")l=o.propTypes;else if(typeof o=="object"&&(o.$$typeof===d||o.$$typeof===k))l=o.propTypes;else return;if(l){var b=m(o);jr(l,e.props,"prop",b,e)}else if(o.PropTypes!==void 0&&!Oe){Oe=!0;var j=m(o);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",j||"Unknown")}typeof o.getDefaultProps=="function"&&!o.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Lr(e){{for(var o=Object.keys(e.props),l=0;l<o.length;l++){var b=o[l];if(b!=="children"&&b!=="key"){ce(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",b),ce(null);break}}e.ref!==null&&(ce(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),ce(null))}}var rr={};function tr(e,o,l,b,j,P){{var R=re(e);if(!R){var w="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(w+=" 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 L=Vr();L?w+=L:w+=He();var I;e===null?I="null":Ae(e)?I="array":e!==void 0&&e.$$typeof===n?(I="<"+(m(e.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):I=typeof e,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,w)}var F=Fr(e,o,l,j,P);if(F==null)return F;if(R){var B=o.children;if(B!==void 0)if(b)if(Ae(B)){for(var ue=0;ue<B.length;ue++)er(B[ue],e);Object.freeze&&Object.freeze(B)}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 er(B,e)}if(ge.call(o,"key")){var ne=m(e),Y=Object.keys(o).filter(function(Jr){return Jr!=="key"}),ze=Y.length>0?"{key: someKey, "+Y.join(": ..., ")+": ...}":"{key: someKey}";if(!rr[ne+ze]){var qr=Y.length>0?"{"+Y.join(": ..., ")+": ...}":"{}";v(`A props object containing a "key" prop is being spread into JSX:
26
+ let props = %s;
27
+ <%s {...props} />
28
+ React keys must be passed directly to JSX without using spread:
29
+ let props = %s;
30
+ <%s key={someKey} {...props} />`,ze,ne,qr,ne),rr[ne+ze]=!0}}return e===a?Lr(F):Wr(F),F}}function Dr(e,o,l){return tr(e,o,l,!0)}function Yr(e,o,l){return tr(e,o,l,!1)}var Ur=Yr,Br=Dr;ve.Fragment=a,ve.jsx=Ur,ve.jsxs=Br}()),ve}process.env.NODE_ENV==="production"?$e.exports=Kr():$e.exports=Xr();var V=$e.exports,ir=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,U=r=>!r||typeof r!="object"||Object.keys(r).length===0,Hr=(r,n)=>JSON.stringify(r)===JSON.stringify(n);function dr(r,n){r.forEach(function(t){Array.isArray(t)?dr(t,n):n.push(t)})}function fr(r){let n=[];return dr(r,n),n}var pr=(...r)=>fr(r).filter(Boolean),br=(r,n)=>{let t={},a=Object.keys(r),f=Object.keys(n);for(let i of a)if(f.includes(i)){let s=r[i],c=n[i];typeof s=="object"&&typeof c=="object"?t[i]=br(s,c):Array.isArray(s)||Array.isArray(c)?t[i]=pr(c,s):t[i]=c+" "+s}else t[i]=r[i];for(let i of f)a.includes(i)||(t[i]=n[i]);return t},ar=r=>!r||typeof r!="string"?r:r.replace(/\s+/g," ").trim();const We="-";function Zr(r){const n=et(r),{conflictingClassGroups:t,conflictingClassGroupModifiers:a}=r;function f(s){const c=s.split(We);return c[0]===""&&c.length!==1&&c.shift(),gr(c,n)||Qr(s)}function i(s,c){const d=t[s]||[];return c&&a[s]?[...d,...a[s]]:d}return{getClassGroupId:f,getConflictingClassGroupIds:i}}function gr(r,n){var s;if(r.length===0)return n.classGroupId;const t=r[0],a=n.nextPart.get(t),f=a?gr(r.slice(1),a):void 0;if(f)return f;if(n.validators.length===0)return;const i=r.join(We);return(s=n.validators.find(({validator:c})=>c(i)))==null?void 0:s.classGroupId}const sr=/^\[(.+)\]$/;function Qr(r){if(sr.test(r)){const n=sr.exec(r)[1],t=n==null?void 0:n.substring(0,n.indexOf(":"));if(t)return"arbitrary.."+t}}function et(r){const{theme:n,prefix:t}=r,a={nextPart:new Map,validators:[]};return tt(Object.entries(r.classGroups),t).forEach(([i,s])=>{Ne(s,a,i,n)}),a}function Ne(r,n,t,a){r.forEach(f=>{if(typeof f=="string"){const i=f===""?n:lr(n,f);i.classGroupId=t;return}if(typeof f=="function"){if(rt(f)){Ne(f(a),n,t,a);return}n.validators.push({validator:f,classGroupId:t});return}Object.entries(f).forEach(([i,s])=>{Ne(s,lr(n,i),t,a)})})}function lr(r,n){let t=r;return n.split(We).forEach(a=>{t.nextPart.has(a)||t.nextPart.set(a,{nextPart:new Map,validators:[]}),t=t.nextPart.get(a)}),t}function rt(r){return r.isThemeGetter}function tt(r,n){return n?r.map(([t,a])=>{const f=a.map(i=>typeof i=="string"?n+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,c])=>[n+s,c])):i);return[t,f]}):r}function nt(r){if(r<1)return{get:()=>{},set:()=>{}};let n=0,t=new Map,a=new Map;function f(i,s){t.set(i,s),n++,n>r&&(n=0,a=t,t=new Map)}return{get(i){let s=t.get(i);if(s!==void 0)return s;if((s=a.get(i))!==void 0)return f(i,s),s},set(i,s){t.has(i)?t.set(i,s):f(i,s)}}}const mr="!";function ot(r){const{separator:n,experimentalParseClassName:t}=r,a=n.length===1,f=n[0],i=n.length;function s(c){const d=[];let C=0,p=0,k;for(let _=0;_<c.length;_++){let M=c[_];if(C===0){if(M===f&&(a||c.slice(_,_+i)===n)){d.push(c.slice(p,_)),p=_+i;continue}if(M==="/"){k=_;continue}}M==="["?C++:M==="]"&&C--}const A=d.length===0?c:c.substring(p),$=A.startsWith(mr),G=$?A.substring(1):A,N=k&&k>p?k-p:void 0;return{modifiers:d,hasImportantModifier:$,baseClassName:G,maybePostfixModifierPosition:N}}return t?function(d){return t({className:d,parseClassName:s})}:s}function it(r){if(r.length<=1)return r;const n=[];let t=[];return r.forEach(a=>{a[0]==="["?(n.push(...t.sort(),a),t=[]):t.push(a)}),n.push(...t.sort()),n}function at(r){return{cache:nt(r.cacheSize),parseClassName:ot(r),...Zr(r)}}const st=/\s+/;function lt(r,n){const{parseClassName:t,getClassGroupId:a,getConflictingClassGroupIds:f}=n,i=new Set;return r.trim().split(st).map(s=>{const{modifiers:c,hasImportantModifier:d,baseClassName:C,maybePostfixModifierPosition:p}=t(s);let k=!!p,A=a(k?C.substring(0,p):C);if(!A){if(!k)return{isTailwindClass:!1,originalClassName:s};if(A=a(C),!A)return{isTailwindClass:!1,originalClassName:s};k=!1}const $=it(c).join(":");return{isTailwindClass:!0,modifierId:d?$+mr:$,classGroupId:A,originalClassName:s,hasPostfixModifier:k}}).reverse().filter(s=>{if(!s.isTailwindClass)return!0;const{modifierId:c,classGroupId:d,hasPostfixModifier:C}=s,p=c+d;return i.has(p)?!1:(i.add(p),f(d,C).forEach(k=>i.add(c+k)),!0)}).reverse().map(s=>s.originalClassName).join(" ")}function ct(){let r=0,n,t,a="";for(;r<arguments.length;)(n=arguments[r++])&&(t=vr(n))&&(a&&(a+=" "),a+=t);return a}function vr(r){if(typeof r=="string")return r;let n,t="";for(let a=0;a<r.length;a++)r[a]&&(n=vr(r[a]))&&(t&&(t+=" "),t+=n);return t}function Fe(r,...n){let t,a,f,i=s;function s(d){const C=n.reduce((p,k)=>k(p),r());return t=at(C),a=t.cache.get,f=t.cache.set,i=c,c(d)}function c(d){const C=a(d);if(C)return C;const p=lt(d,t);return f(d,p),p}return function(){return i(ct.apply(null,arguments))}}function O(r){const n=t=>t[r]||[];return n.isThemeGetter=!0,n}const hr=/^\[(?:([a-z-]+):)?(.+)\]$/i,ut=/^\d+\/\d+$/,dt=new Set(["px","full","screen"]),ft=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pt=/\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$/,bt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,gt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function J(r){return oe(r)||dt.has(r)||ut.test(r)}function H(r){return de(r,"length",Et)}function oe(r){return!!r&&!Number.isNaN(Number(r))}function Se(r){return de(r,"number",oe)}function he(r){return!!r&&Number.isInteger(Number(r))}function vt(r){return r.endsWith("%")&&oe(r.slice(0,-1))}function h(r){return hr.test(r)}function Z(r){return ft.test(r)}const ht=new Set(["length","size","percentage"]);function yt(r){return de(r,ht,yr)}function xt(r){return de(r,"position",yr)}const wt=new Set(["image","url"]);function Rt(r){return de(r,wt,_t)}function kt(r){return de(r,"",Ct)}function ye(){return!0}function de(r,n,t){const a=hr.exec(r);return a?a[1]?typeof n=="string"?a[1]===n:n.has(a[1]):t(a[2]):!1}function Et(r){return pt.test(r)&&!bt.test(r)}function yr(){return!1}function Ct(r){return gt.test(r)}function _t(r){return mt.test(r)}function Ve(){const r=O("colors"),n=O("spacing"),t=O("blur"),a=O("brightness"),f=O("borderColor"),i=O("borderRadius"),s=O("borderSpacing"),c=O("borderWidth"),d=O("contrast"),C=O("grayscale"),p=O("hueRotate"),k=O("invert"),A=O("gap"),$=O("gradientColorStops"),G=O("gradientColorStopPositions"),N=O("inset"),_=O("margin"),M=O("opacity"),v=O("padding"),ie=O("saturate"),X=O("scale"),ae=O("sepia"),se=O("skew"),Q=O("space"),ee=O("translate"),q=()=>["auto","contain","none"],re=()=>["auto","hidden","clip","visible","scroll"],te=()=>["auto",h,n],u=()=>[h,n],m=()=>["",J,H],g=()=>["auto",oe,h],x=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],y=()=>["solid","dashed","dotted","double","none"],E=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],S=()=>["start","end","center","between","around","evenly","stretch"],T=()=>["","0",h],z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>[oe,Se],W=()=>[oe,h];return{cacheSize:500,separator:":",theme:{colors:[ye],spacing:[J,H],blur:["none","",Z,h],brightness:D(),borderColor:[r],borderRadius:["none","","full",Z,h],borderSpacing:u(),borderWidth:m(),contrast:D(),grayscale:T(),hueRotate:W(),invert:T(),gap:u(),gradientColorStops:[r],gradientColorStopPositions:[vt,H],inset:te(),margin:te(),opacity:D(),padding:u(),saturate:D(),scale:D(),sepia:T(),skew:W(),space:u(),translate:u()},classGroups:{aspect:[{aspect:["auto","square","video",h]}],container:["container"],columns:[{columns:[Z]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],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:[...x(),h]}],overflow:[{overflow:re()}],"overflow-x":[{"overflow-x":re()}],"overflow-y":[{"overflow-y":re()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[N]}],"inset-x":[{"inset-x":[N]}],"inset-y":[{"inset-y":[N]}],start:[{start:[N]}],end:[{end:[N]}],top:[{top:[N]}],right:[{right:[N]}],bottom:[{bottom:[N]}],left:[{left:[N]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",he,h]}],basis:[{basis:te()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",h]}],grow:[{grow:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",he,h]}],"grid-cols":[{"grid-cols":[ye]}],"col-start-end":[{col:["auto",{span:["full",he,h]},h]}],"col-start":[{"col-start":g()}],"col-end":[{"col-end":g()}],"grid-rows":[{"grid-rows":[ye]}],"row-start-end":[{row:["auto",{span:[he,h]},h]}],"row-start":[{"row-start":g()}],"row-end":[{"row-end":g()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",h]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",h]}],gap:[{gap:[A]}],"gap-x":[{"gap-x":[A]}],"gap-y":[{"gap-y":[A]}],"justify-content":[{justify:["normal",...S()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...S(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...S(),"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":[Q]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Q]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",h,n]}],"min-w":[{"min-w":[h,n,"min","max","fit"]}],"max-w":[{"max-w":[h,n,"none","full","min","max","fit","prose",{screen:[Z]},Z]}],h:[{h:[h,n,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[h,n,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[h,n,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[h,n,"auto","min","max","fit"]}],"font-size":[{text:["base",Z,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Se]}],"font-family":[{font:[ye]}],"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",h]}],"line-clamp":[{"line-clamp":["none",oe,Se]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",J,h]}],"list-image":[{"list-image":["none",h]}],"list-style-type":[{list:["none","disc","decimal",h]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[M]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",J,H]}],"underline-offset":[{"underline-offset":["auto",J,h]}],"text-decoration-color":[{decoration:[r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:u()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",h]}],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",h]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[M]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...x(),xt]}],"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"]},Rt]}],"bg-color":[{bg:[r]}],"gradient-from-pos":[{from:[G]}],"gradient-via-pos":[{via:[G]}],"gradient-to-pos":[{to:[G]}],"gradient-from":[{from:[$]}],"gradient-via":[{via:[$]}],"gradient-to":[{to:[$]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[M]}],"border-style":[{border:[...y(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[M]}],"divide-style":[{divide:y()}],"border-color":[{border:[f]}],"border-color-x":[{"border-x":[f]}],"border-color-y":[{"border-y":[f]}],"border-color-t":[{"border-t":[f]}],"border-color-r":[{"border-r":[f]}],"border-color-b":[{"border-b":[f]}],"border-color-l":[{"border-l":[f]}],"divide-color":[{divide:[f]}],"outline-style":[{outline:["",...y()]}],"outline-offset":[{"outline-offset":[J,h]}],"outline-w":[{outline:[J,H]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:m()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[M]}],"ring-offset-w":[{"ring-offset":[J,H]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",Z,kt]}],"shadow-color":[{shadow:[ye]}],opacity:[{opacity:[M]}],"mix-blend":[{"mix-blend":[...E(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":E()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[a]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Z,h]}],grayscale:[{grayscale:[C]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[k]}],saturate:[{saturate:[ie]}],sepia:[{sepia:[ae]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[C]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[k]}],"backdrop-opacity":[{"backdrop-opacity":[M]}],"backdrop-saturate":[{"backdrop-saturate":[ie]}],"backdrop-sepia":[{"backdrop-sepia":[ae]}],"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",h]}],duration:[{duration:W()}],ease:[{ease:["linear","in","out","in-out",h]}],delay:[{delay:W()}],animate:[{animate:["none","spin","ping","pulse","bounce",h]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[X]}],"scale-x":[{"scale-x":[X]}],"scale-y":[{"scale-y":[X]}],rotate:[{rotate:[he,h]}],"translate-x":[{"translate-x":[ee]}],"translate-y":[{"translate-y":[ee]}],"skew-x":[{"skew-x":[se]}],"skew-y":[{"skew-y":[se]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",h]}],accent:[{accent:["auto",r]}],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",h]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-mt":[{"scroll-mt":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"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",h]}],fill:[{fill:[r,"none"]}],"stroke-w":[{stroke:[J,H,Se]}],stroke:[{stroke:[r,"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"]}}}function jt(r,{cacheSize:n,prefix:t,separator:a,experimentalParseClassName:f,extend:i={},override:s={}}){we(r,"cacheSize",n),we(r,"prefix",t),we(r,"separator",a),we(r,"experimentalParseClassName",f);for(const c in s)St(r[c],s[c]);for(const c in i)Tt(r[c],i[c]);return r}function we(r,n,t){t!==void 0&&(r[n]=t)}function St(r,n){if(n)for(const t in n)we(r,t,n[t])}function Tt(r,n){if(n)for(const t in n){const a=n[t];a!==void 0&&(r[t]=(r[t]||[]).concat(a))}}function At(r,...n){return typeof r=="function"?Fe(Ve,r,...n):Fe(()=>jt(Ve(),r),...n)}const Pt=Fe(Ve);var Ot={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},xr=r=>r||void 0,Re=(...r)=>xr(fr(r).filter(Boolean).join(" ")),Ie=null,K={},Ge=!1,xe=(...r)=>n=>n.twMerge?((!Ie||Ge)&&(Ge=!1,Ie=U(K)?Pt:At({...K,extend:{theme:K.theme,classGroups:K.classGroups,conflictingClassGroupModifiers:K.conflictingClassGroupModifiers,conflictingClassGroups:K.conflictingClassGroups,...K.extend}})),xr(Ie(Re(r)))):Re(r),cr=(r,n)=>{for(let t in n)r.hasOwnProperty(t)?r[t]=Re(r[t],n[t]):r[t]=n[t];return r},wr=(r,n)=>{let{extend:t=null,slots:a={},variants:f={},compoundVariants:i=[],compoundSlots:s=[],defaultVariants:c={}}=r,d={...Ot,...n},C=t!=null&&t.base?Re(t.base,r==null?void 0:r.base):r==null?void 0:r.base,p=t!=null&&t.variants&&!U(t.variants)?br(f,t.variants):f,k=t!=null&&t.defaultVariants&&!U(t.defaultVariants)?{...t.defaultVariants,...c}:c;!U(d.twMergeConfig)&&!Hr(d.twMergeConfig,K)&&(Ge=!0,K=d.twMergeConfig);let A=U(t==null?void 0:t.slots),$=U(a)?{}:{base:Re(r==null?void 0:r.base,A&&(t==null?void 0:t.base)),...a},G=A?$:cr({...t==null?void 0:t.slots},U($)?{base:r==null?void 0:r.base}:$),N=U(t==null?void 0:t.compoundVariants)?i:pr(t==null?void 0:t.compoundVariants,i),_=v=>{if(U(p)&&U(a)&&A)return xe(C,v==null?void 0:v.class,v==null?void 0:v.className)(d);if(N&&!Array.isArray(N))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof N}`);if(s&&!Array.isArray(s))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof s}`);let ie=(u,m,g=[],x)=>{let y=g;if(typeof m=="string")y=y.concat(ar(m).split(" ").map(E=>`${u}:${E}`));else if(Array.isArray(m))y=y.concat(m.reduce((E,S)=>E.concat(`${u}:${S}`),[]));else if(typeof m=="object"&&typeof x=="string"){for(let E in m)if(m.hasOwnProperty(E)&&E===x){let S=m[E];if(S&&typeof S=="string"){let T=ar(S);y[x]?y[x]=y[x].concat(T.split(" ").map(z=>`${u}:${z}`)):y[x]=T.split(" ").map(z=>`${u}:${z}`)}else Array.isArray(S)&&S.length>0&&(y[x]=S.reduce((T,z)=>T.concat(`${u}:${z}`),[]))}}return y},X=(u,m=p,g=null,x=null)=>{var y;let E=m[u];if(!E||U(E))return null;let S=(y=x==null?void 0:x[u])!=null?y:v==null?void 0:v[u];if(S===null)return null;let T=ir(S),z=Array.isArray(d.responsiveVariants)&&d.responsiveVariants.length>0||d.responsiveVariants===!0,D=k==null?void 0:k[u],W=[];if(typeof T=="object"&&z)for(let[pe,le]of Object.entries(T)){let be=E[le];if(pe==="initial"){D=le;continue}Array.isArray(d.responsiveVariants)&&!d.responsiveVariants.includes(pe)||(W=ie(pe,be,W,g))}let ke=T!=null&&typeof T!="object"?T:ir(D),fe=E[ke||"false"];return typeof W=="object"&&typeof g=="string"&&W[g]?cr(W,fe):W.length>0?(W.push(fe),W):fe},ae=()=>p?Object.keys(p).map(u=>X(u,p)):null,se=(u,m)=>{if(!p||typeof p!="object")return null;let g=new Array;for(let x in p){let y=X(x,p,u,m),E=u==="base"&&typeof y=="string"?y:y&&y[u];E&&(g[g.length]=E)}return g},Q={};for(let u in v)v[u]!==void 0&&(Q[u]=v[u]);let ee=(u,m)=>{var g;let x=typeof(v==null?void 0:v[u])=="object"?{[u]:(g=v[u])==null?void 0:g.initial}:{};return{...k,...Q,...x,...m}},q=(u=[],m)=>{let g=[];for(let{class:x,className:y,...E}of u){let S=!0;for(let[T,z]of Object.entries(E)){let D=ee(T,m);if(Array.isArray(z)){if(!z.includes(D[T])){S=!1;break}}else if(D[T]!==z){S=!1;break}}S&&(x&&g.push(x),y&&g.push(y))}return g},re=u=>{let m=q(N,u);if(!Array.isArray(m))return m;let g={};for(let x of m)if(typeof x=="string"&&(g.base=xe(g.base,x)(d)),typeof x=="object")for(let[y,E]of Object.entries(x))g[y]=xe(g[y],E)(d);return g},te=u=>{if(s.length<1)return null;let m={};for(let{slots:g=[],class:x,className:y,...E}of s){if(!U(E)){let S=!0;for(let T of Object.keys(E)){let z=ee(T,u)[T];if(z===void 0||(Array.isArray(E[T])?!E[T].includes(z):E[T]!==z)){S=!1;break}}if(!S)continue}for(let S of g)m[S]=m[S]||[],m[S].push([x,y])}return m};if(!U(a)||!A){let u={};if(typeof G=="object"&&!U(G))for(let m of Object.keys(G))u[m]=g=>{var x,y;return xe(G[m],se(m,g),((x=re(g))!=null?x:[])[m],((y=te(g))!=null?y:[])[m],g==null?void 0:g.class,g==null?void 0:g.className)(d)};return u}return xe(C,ae(),q(N),v==null?void 0:v.class,v==null?void 0:v.className)(d)},M=()=>{if(!(!p||typeof p!="object"))return Object.keys(p)};return _.variantKeys=M(),_.extend=t,_.base=C,_.slots=G,_.variants=p,_.defaultVariants=k,_.compoundSlots=s,_.compoundVariants=N,_};const Mt=wr({base:"animate-spin",variants:{size:{small:"w-5 h-5",large:"w-8 h-8"}}});function Rr({size:r}){return V.jsx("div",{className:Mt({size:r}),children:V.jsx("svg",{viewBox:"0 0 800 800",xmlns:"http://www.w3.org/2000/svg",children:V.jsx("circle",{cx:"400",cy:"400",fill:"none",r:"200","stroke-width":"50","stroke-dasharray":"269 150",stroke:"currentColor",opacity:.5,"stroke-linecap":"round"})})})}function kr(){return V.jsx(V.Fragment,{children:V.jsxs("svg",{className:"pointer-events-none absolute inset-0 isolate z-10 h-full w-full opacity-25",height:"100%",id:"texture",children:[V.jsxs("filter",{id:"noise",children:[V.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.75",numOctaves:"4",stitchTiles:"stitch"}),V.jsx("feColorMatrix",{type:"saturate",values:"0"})]}),V.jsx("rect",{width:"100%",height:"100%",filter:"url(#noise)"})]})})}const zt=wr({slots:{outer:"group p-[2px] bg-neutral-200 dark:bg-neutral-900",inner:"relative shadow-form border overflow-hidden animate-press",chip:"pb-[2px]"},variants:{corners:{sharp:{inner:"rounded-sm",outer:"rounded-sm",chip:"rounded-sm"},round:{inner:"rounded-md",outer:"rounded-lg",chip:"rounded-md"},circle:{inner:"rounded-full",outer:"rounded-full",chip:"rounded-full"}},leftCorners:{none:{},sharp:{inner:"rounded-s-sm",outer:"rounded-s-sm",chip:"rounded-s-sm"},round:{inner:"rounded-s-md",outer:"rounded-s-lg",chip:"rounded-s-md"},circle:{inner:"rounded-s-full",outer:"rounded-s-full",chip:"rounded-s-full"}},size:{small:{inner:"py-[2px] px-2 text-xs min-h-5"},large:{inner:"py-1 px-3 min-h-8"}},colour:{neutral:{inner:"bg-neutral-800 border-neutral-700/70 group-disabled:border-neutral-700/40 group-active:border-neutral-700/40 text-neutral-200",chip:"bg-neutral-800"},red:{inner:"bg-red-700 border-red-500/60 group-disabled:border-red-600/40 group-active:border-red-600/40 text-neutral-200",chip:"bg-red-900"},green:{inner:"bg-lime-700 border-lime-600/70 group-disabled:border-lime-600/40 group-active:border-lime-600/40 text-neutral-200",chip:"bg-lime-900"},blue:{inner:"bg-sky-700 border-sky-600/70 group-disabled:border-sky-600/40 group-active:border-sky-600/40 text-neutral-200",chip:"bg-sky-900"},white:{inner:"bg-neutral-300 border-neutral-300/70 group-disabled:border-neutral-300/40 group-active:border-neutral-300/40 text-neutral-800",chip:"bg-neutral-400"}},width:{fit:{},grow:{inner:"w-full",outer:"w-full",chip:"w-full"}}},defaultVariants:{size:"large",colour:"neutral",corners:"round",leftCorners:"none"}});function It({size:r,colour:n,width:t,corners:a,leftCorners:f,loading:i,text:s,children:c,className:d,disabled:C,onClick:p,...k}){const{outer:A,chip:$,inner:G}=zt({size:r,colour:n,width:t,corners:a,leftCorners:f});return V.jsx("button",{className:A(),disabled:C||i,onClick:p,...k,children:V.jsx("div",{className:$(),children:V.jsxs("div",{className:G({className:d}),children:[V.jsxs("span",{className:"relative block z-10 text-inherit group-disabled:opacity-50",style:{visibility:i?"hidden":"visible"},children:[c,s]}),i&&V.jsx("div",{className:"absolute inset-0 w-full h-full flex justify-center items-center",children:V.jsx(Rr,{size:r})}),V.jsx(kr,{})]})})})}function $t(){return V.jsx("div",{children:"ToggleSet"})}exports.Button=It;exports.LoadingRing=Rr;exports.Noise=kr;exports.ToggleSet=$t;