cyberui-2045 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(R,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],m):(R=typeof globalThis<"u"?globalThis:R||self,m(R.CyberUI2045={},R.React,R.ReactDOM))})(this,function(R,m,Te){"use strict";var he={exports:{}},fe={};/**
1
+ (function(R,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],f):(R=typeof globalThis<"u"?globalThis:R||self,f(R.CyberUI2045={},R.React,R.ReactDOM))})(this,function(R,f,_e){"use strict";var he={exports:{}},me={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var _e;function st(){if(_e)return fe;_e=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function a(s,n,c){var l=null;if(c!==void 0&&(l=""+c),n.key!==void 0&&(l=""+n.key),"key"in n){c={};for(var i in n)i!=="key"&&(c[i]=n[i])}else c=n;return n=c.ref,{$$typeof:e,type:s,key:l,ref:n!==void 0?n:null,props:c}}return fe.Fragment=r,fe.jsx=a,fe.jsxs=a,fe}var me={};/**
9
+ */var $e;function vt(){if($e)return me;$e=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function a(s,n,c){var l=null;if(c!==void 0&&(l=""+c),n.key!==void 0&&(l=""+n.key),"key"in n){c={};for(var i in n)i!=="key"&&(c[i]=n[i])}else c=n;return n=c.ref,{$$typeof:e,type:s,key:l,ref:n!==void 0?n:null,props:c}}return me.Fragment=r,me.jsx=a,me.jsxs=a,me}var fe={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,30 +14,30 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var $e;function ot(){return $e||($e=1,process.env.NODE_ENV!=="production"&&function(){function e(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===U?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case y:return"Fragment";case L:return"Profiler";case w:return"StrictMode";case S:return"Suspense";case I:return"SuspenseList";case P:return"Activity"}if(typeof o=="object")switch(typeof o.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),o.$$typeof){case k:return"Portal";case M:return(o.displayName||"Context")+".Provider";case N:return(o._context.displayName||"Context")+".Consumer";case $:var u=o.render;return o=o.displayName,o||(o=u.displayName||u.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case W:return u=o.displayName||null,u!==null?u:e(o.type)||"Memo";case b:u=o._payload,o=o._init;try{return e(o(u))}catch{}}return null}function r(o){return""+o}function a(o){try{r(o);var u=!1}catch{u=!0}if(u){u=console;var g=u.error,A=typeof Symbol=="function"&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object";return g.call(u,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",A),r(o)}}function s(o){if(o===y)return"<>";if(typeof o=="object"&&o!==null&&o.$$typeof===b)return"<...>";try{var u=e(o);return u?"<"+u+">":"<...>"}catch{return"<...>"}}function n(){var o=X.A;return o===null?null:o.getOwner()}function c(){return Error("react-stack-top-frame")}function l(o){if(Q.call(o,"key")){var u=Object.getOwnPropertyDescriptor(o,"key").get;if(u&&u.isReactWarning)return!1}return o.key!==void 0}function i(o,u){function g(){V||(V=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",u))}g.isReactWarning=!0,Object.defineProperty(o,"key",{get:g,configurable:!0})}function d(){var o=e(this.type);return Y[o]||(Y[o]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),o=this.props.ref,o!==void 0?o:null}function x(o,u,g,A,E,T,D,B){return g=T.ref,o={$$typeof:h,type:o,key:u,props:T,_owner:E},(g!==void 0?g:null)!==null?Object.defineProperty(o,"ref",{enumerable:!1,get:d}):Object.defineProperty(o,"ref",{enumerable:!1,value:null}),o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(o,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(o,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:D}),Object.defineProperty(o,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:B}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o}function f(o,u,g,A,E,T,D,B){var G=u.children;if(G!==void 0)if(A)if(te(G)){for(A=0;A<G.length;A++)v(G[A]);Object.freeze&&Object.freeze(G)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else v(G);if(Q.call(u,"key")){G=e(o);var z=Object.keys(u).filter(function(se){return se!=="key"});A=0<z.length?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}",J[G+A]||(z=0<z.length?"{"+z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var Me;function wt(){return Me||(Me=1,process.env.NODE_ENV!=="production"&&function(){function e(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===H?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case y:return"Fragment";case L:return"Profiler";case w:return"StrictMode";case S:return"Suspense";case z:return"SuspenseList";case I:return"Activity"}if(typeof o=="object")switch(typeof o.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),o.$$typeof){case k:return"Portal";case M:return(o.displayName||"Context")+".Provider";case N:return(o._context.displayName||"Context")+".Consumer";case $:var u=o.render;return o=o.displayName,o||(o=u.displayName||u.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case W:return u=o.displayName||null,u!==null?u:e(o.type)||"Memo";case b:u=o._payload,o=o._init;try{return e(o(u))}catch{}}return null}function r(o){return""+o}function a(o){try{r(o);var u=!1}catch{u=!0}if(u){u=console;var g=u.error,A=typeof Symbol=="function"&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object";return g.call(u,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",A),r(o)}}function s(o){if(o===y)return"<>";if(typeof o=="object"&&o!==null&&o.$$typeof===b)return"<...>";try{var u=e(o);return u?"<"+u+">":"<...>"}catch{return"<...>"}}function n(){var o=X.A;return o===null?null:o.getOwner()}function c(){return Error("react-stack-top-frame")}function l(o){if(Q.call(o,"key")){var u=Object.getOwnPropertyDescriptor(o,"key").get;if(u&&u.isReactWarning)return!1}return o.key!==void 0}function i(o,u){function g(){F||(F=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",u))}g.isReactWarning=!0,Object.defineProperty(o,"key",{get:g,configurable:!0})}function d(){var o=e(this.type);return Y[o]||(Y[o]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),o=this.props.ref,o!==void 0?o:null}function x(o,u,g,A,E,T,D,B){return g=T.ref,o={$$typeof:h,type:o,key:u,props:T,_owner:E},(g!==void 0?g:null)!==null?Object.defineProperty(o,"ref",{enumerable:!1,get:d}):Object.defineProperty(o,"ref",{enumerable:!1,value:null}),o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(o,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(o,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:D}),Object.defineProperty(o,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:B}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o}function m(o,u,g,A,E,T,D,B){var G=u.children;if(G!==void 0)if(A)if(te(G)){for(A=0;A<G.length;A++)v(G[A]);Object.freeze&&Object.freeze(G)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else v(G);if(Q.call(u,"key")){G=e(o);var P=Object.keys(u).filter(function(se){return se!=="key"});A=0<P.length?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}",J[G+A]||(P=0<P.length?"{"+P.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,A,G,z,G),J[G+A]=!0)}if(G=null,g!==void 0&&(a(g),G=""+g),l(u)&&(a(u.key),G=""+u.key),"key"in u){g={};for(var F in u)F!=="key"&&(g[F]=u[F])}else g=u;return G&&i(g,typeof o=="function"?o.displayName||o.name||"Unknown":o),x(o,G,T,E,n(),g,D,B)}function v(o){typeof o=="object"&&o!==null&&o.$$typeof===h&&o._store&&(o._store.validated=1)}var p=m,h=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),M=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),U=Symbol.for("react.client.reference"),X=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=Object.prototype.hasOwnProperty,te=Array.isArray,ee=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(o){return o()}};var V,Y={},q=p.react_stack_bottom_frame.bind(p,c)(),Z=ee(s(c)),J={};me.Fragment=y,me.jsx=function(o,u,g,A,E){var T=1e4>X.recentlyCreatedOwnerStacks++;return f(o,u,g,!1,A,E,T?Error("react-stack-top-frame"):q,T?ee(s(o)):Z)},me.jsxs=function(o,u,g,A,E){var T=1e4>X.recentlyCreatedOwnerStacks++;return f(o,u,g,!0,A,E,T?Error("react-stack-top-frame"):q,T?ee(s(o)):Z)}}()),me}var Me;function at(){return Me||(Me=1,process.env.NODE_ENV==="production"?he.exports=st():he.exports=ot()),he.exports}var t=at();const ke=e=>typeof e=="object"&&e!==null,H=(e,r)=>{if(!ke(e))return r[e]||"";const a=[];if(e.base&&r[e.base]&&a.push(r[e.base]),e.sm&&r[e.sm]){const s=r[e.sm].split(" ").map(n=>`sm:${n}`);a.push(...s)}if(e.md&&r[e.md]){const s=r[e.md].split(" ").map(n=>`md:${n}`);a.push(...s)}if(e.lg&&r[e.lg]){const s=r[e.lg].split(" ").map(n=>`lg:${n}`);a.push(...s)}if(e.xl&&r[e.xl]){const s=r[e.xl].split(" ").map(n=>`xl:${n}`);a.push(...s)}if(e["2xl"]&&r[e["2xl"]]){const s=r[e["2xl"]].split(" ").map(n=>`2xl:${n}`);a.push(...s)}return a.join(" ")},nt=(...e)=>e.filter(Boolean).join(" "),re={button:{sm:"py-1 px-4 text-sm",md:"py-2 px-6 text-lg",lg:"py-3 px-8 text-xl"},badge:{sm:"px-2 py-1 text-xs gap-1",md:"px-4 py-2 text-sm gap-2",lg:"px-6 py-3 text-base gap-3"},input:{sm:"py-2 text-sm",md:"py-3 text-base",lg:"py-4 text-lg"},card:{sm:"p-3 space-y-3 text-sm",md:"p-6 space-y-6 text-base",lg:"p-8 space-y-8 text-lg"},notification:{sm:"p-3 space-x-2",md:"p-4 space-x-4",lg:"p-6 space-x-6"},tabNavigation:{sm:"px-3 py-1 text-sm",md:"px-6 py-2 text-lg",lg:"px-8 py-3 text-xl"},linearProgress:{width:{sm:"w-48",md:"w-80",lg:"w-96"},height:{sm:"h-1.5",md:"h-3",lg:"h-4"}},skeleton:{sm:"text-sm",md:"text-base",lg:"text-lg"},carousel:{sm:"h-48",md:"h-64",lg:"h-80"}},lt={base:0,sm:640,md:768,lg:1024,xl:1280,"2xl":1536},it=(e,r,a)=>{if(!ke(e))return e??a;let s=e.base??a;const n=["sm","md","lg","xl","2xl"];for(const c of n){const l=lt[c];r>=l&&e[c]!==void 0&&(s=e[c])}return s},Ae=(e,r)=>{const a=m.useCallback(()=>typeof window>"u"?r:it(e,window.innerWidth,r),[r,e]),[s,n]=m.useState(a);return m.useEffect(()=>{if(!ke(e)){n(e??r);return}const c=()=>n(a());return c(),window.addEventListener("resize",c),()=>window.removeEventListener("resize",c)},[r,a,e]),s},ct=({tabs:e,activeTab:r,onTabChange:a,sizeClasses:s,containerClassName:n="",anchorClassName:c="",menuClassName:l="",menuItemClassName:i="",dropdownLabel:d,anchorIcon:x,showAnchorLabel:f=!0,anchorAriaLabel:v,closeOnSelect:p=!0})=>{const[h,k]=m.useState(!1),[y,w]=m.useState(!1),[L,N]=m.useState(!1),[M,$]=m.useState(!1),S=m.useRef(null),I=m.useRef(null);m.useEffect(()=>{if(!h)return;const b=P=>{S.current&&!S.current.contains(P.target)&&(N(!0),setTimeout(()=>{k(!1),N(!1)},180))};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[h]),m.useEffect(()=>{if(!h)return;const b=I.current;if(!b)return;const P=b.getBoundingClientRect();$(P.right>window.innerWidth)},[h]);const W=()=>{h?(N(!0),setTimeout(()=>{k(!1),N(!1)},180)):(w(!0),k(!0),setTimeout(()=>w(!1),30))};return t.jsx("div",{className:`${n}`,children:t.jsxs("div",{ref:S,className:"relative inline-block",children:[t.jsxs("button",{onClick:W,className:`inline-flex items-center gap-2 ${s} bg-surface text-default border-2 border-border-default rounded-lg transition-all duration-300 hover:text-secondary hover:border-secondary hover:cursor-pointer shadow-secondary/30 ${c}`,"aria-haspopup":"menu","aria-expanded":h,"aria-label":f?void 0:v??(typeof d=="string"?d:"Open tabs"),children:[x??t.jsxs("svg",{className:"w-5 h-5",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:[t.jsx("rect",{x:"3",y:"5",width:"14",height:"2",rx:"1"}),t.jsx("rect",{x:"3",y:"9",width:"14",height:"2",rx:"1"}),t.jsx("rect",{x:"3",y:"13",width:"14",height:"2",rx:"1"})]}),f&&t.jsx("span",{children:d??r})]}),(h||L)&&t.jsx("div",{ref:I,"aria-hidden":!h,className:`absolute ${M?"right-0":"left-0"} mt-2 min-w-40 z-50 bg-surface border-2 border-border-default rounded-lg shadow-secondary overflow-hidden ${l}
23
- transition-transform transition-opacity duration-200 ease-[cubic-bezier(.2,0,0,1)] transform-gpu origin-top will-change-transform will-change-opacity ${y||L?"opacity-0 scale-y-0 pointer-events-none":"opacity-100 scale-y-100 pointer-events-auto"}`,children:t.jsx("div",{className:"py-1",children:e.map(b=>t.jsx("button",{onClick:()=>{a(b),p&&(N(!0),setTimeout(()=>{k(!1),N(!1)},180))},className:`w-full flex items-center justify-between text-left px-4 py-2 font-bold transition-colors duration-200 outline-none hover:cursor-pointer ${r===b?"text-secondary relative pl-4 before:content-[''] before:h-full before:absolute before:left-0 before:top-1/2 before:-translate-y-1/2 before:h-4 before:w-[3px] before:rounded before:bg-accent before:shadow-lg-accent":"text-default hover:text-secondary hover:bg-base/70"} ${i}`,children:t.jsx("span",{children:b})},b))})})]})})},dt=({tabs:e,activeTab:r,onTabChange:a,size:s="md",mode:n="scroll",containerClassName:c="",tabsClassName:l="",dropdownLabel:i,anchorIcon:d,showAnchorLabel:x=!0,anchorAriaLabel:f,closeOnSelect:v=!0,anchorClassName:p="",menuClassName:h="",menuItemClassName:k=""})=>{const w=($=>H($,re.tabNavigation))(s),L=Ae(n,"scroll"),N=()=>{switch(L){case"scroll":return"w-full overflow-x-auto overflow-y-hidden scrollbar-thin scrollbar-thumb-border-default scrollbar-track-transparent hover:scrollbar-thumb-secondary/50 py-1";case"wrap":return"flex flex-wrap gap-2";case"dropdown":case"collapsible":return"flex space-x-2";default:return"flex space-x-2"}},M=t.jsx(t.Fragment,{children:e.map($=>t.jsx("button",{onClick:()=>a($),className:`
22
+ <%s key={someKey} {...props} />`,A,G,P,G),J[G+A]=!0)}if(G=null,g!==void 0&&(a(g),G=""+g),l(u)&&(a(u.key),G=""+u.key),"key"in u){g={};for(var U in u)U!=="key"&&(g[U]=u[U])}else g=u;return G&&i(g,typeof o=="function"?o.displayName||o.name||"Unknown":o),x(o,G,T,E,n(),g,D,B)}function v(o){typeof o=="object"&&o!==null&&o.$$typeof===h&&o._store&&(o._store.validated=1)}var p=f,h=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),M=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),H=Symbol.for("react.client.reference"),X=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=Object.prototype.hasOwnProperty,te=Array.isArray,ee=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(o){return o()}};var F,Y={},q=p.react_stack_bottom_frame.bind(p,c)(),Z=ee(s(c)),J={};fe.Fragment=y,fe.jsx=function(o,u,g,A,E){var T=1e4>X.recentlyCreatedOwnerStacks++;return m(o,u,g,!1,A,E,T?Error("react-stack-top-frame"):q,T?ee(s(o)):Z)},fe.jsxs=function(o,u,g,A,E){var T=1e4>X.recentlyCreatedOwnerStacks++;return m(o,u,g,!0,A,E,T?Error("react-stack-top-frame"):q,T?ee(s(o)):Z)}}()),fe}var Ae;function kt(){return Ae||(Ae=1,process.env.NODE_ENV==="production"?he.exports=vt():he.exports=wt()),he.exports}var t=kt();const Ce=e=>typeof e=="object"&&e!==null,V=(e,r)=>{if(!Ce(e))return r[e]||"";const a=[];if(e.base&&r[e.base]&&a.push(r[e.base]),e.sm&&r[e.sm]){const s=r[e.sm].split(" ").map(n=>`sm:${n}`);a.push(...s)}if(e.md&&r[e.md]){const s=r[e.md].split(" ").map(n=>`md:${n}`);a.push(...s)}if(e.lg&&r[e.lg]){const s=r[e.lg].split(" ").map(n=>`lg:${n}`);a.push(...s)}if(e.xl&&r[e.xl]){const s=r[e.xl].split(" ").map(n=>`xl:${n}`);a.push(...s)}if(e["2xl"]&&r[e["2xl"]]){const s=r[e["2xl"]].split(" ").map(n=>`2xl:${n}`);a.push(...s)}return a.join(" ")},Ct=(...e)=>e.filter(Boolean).join(" "),re={button:{sm:"py-1 px-4 text-sm",md:"py-2 px-6 text-lg",lg:"py-3 px-8 text-xl"},badge:{sm:"px-2 py-1 text-xs gap-1",md:"px-4 py-2 text-sm gap-2",lg:"px-6 py-3 text-base gap-3"},input:{sm:"py-2 text-sm",md:"py-3 text-base",lg:"py-4 text-lg"},card:{sm:"p-3 space-y-3 text-sm",md:"p-6 space-y-6 text-base",lg:"p-8 space-y-8 text-lg"},notification:{sm:"p-3 space-x-2",md:"p-4 space-x-4",lg:"p-6 space-x-6"},tabNavigation:{sm:"px-3 py-1 text-sm",md:"px-6 py-2 text-lg",lg:"px-8 py-3 text-xl"},linearProgress:{width:{sm:"w-48",md:"w-80",lg:"w-96"},height:{sm:"h-1.5",md:"h-3",lg:"h-4"}},skeleton:{sm:"text-sm",md:"text-base",lg:"text-lg"},carousel:{sm:"h-48",md:"h-64",lg:"h-80"}},jt={base:0,sm:640,md:768,lg:1024,xl:1280,"2xl":1536},Nt=(e,r,a)=>{if(!Ce(e))return e??a;let s=e.base??a;const n=["sm","md","lg","xl","2xl"];for(const c of n){const l=jt[c];r>=l&&e[c]!==void 0&&(s=e[c])}return s},Le=(e,r)=>{const a=f.useCallback(()=>typeof window>"u"?r:Nt(e,window.innerWidth,r),[r,e]),[s,n]=f.useState(a);return f.useEffect(()=>{if(!Ce(e)){n(e??r);return}const c=()=>n(a());return c(),window.addEventListener("resize",c),()=>window.removeEventListener("resize",c)},[r,a,e]),s},St=({tabs:e,activeTab:r,onTabChange:a,sizeClasses:s,containerClassName:n="",anchorClassName:c="",menuClassName:l="",menuItemClassName:i="",dropdownLabel:d,anchorIcon:x,showAnchorLabel:m=!0,anchorAriaLabel:v,closeOnSelect:p=!0})=>{const[h,k]=f.useState(!1),[y,w]=f.useState(!1),[L,N]=f.useState(!1),[M,$]=f.useState(!1),S=f.useRef(null),z=f.useRef(null);f.useEffect(()=>{if(!h)return;const b=I=>{S.current&&!S.current.contains(I.target)&&(N(!0),setTimeout(()=>{k(!1),N(!1)},180))};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[h]),f.useEffect(()=>{if(!h)return;const b=z.current;if(!b)return;const I=b.getBoundingClientRect();$(I.right>window.innerWidth)},[h]);const W=()=>{h?(N(!0),setTimeout(()=>{k(!1),N(!1)},180)):(w(!0),k(!0),setTimeout(()=>w(!1),30))};return t.jsx("div",{className:`${n}`,children:t.jsxs("div",{ref:S,className:"relative inline-block",children:[t.jsxs("button",{onClick:W,className:`inline-flex items-center gap-2 ${s} bg-surface text-default border-2 border-border-default rounded-lg transition-all duration-300 hover:text-secondary hover:border-secondary hover:cursor-pointer shadow-secondary/30 ${c}`,"aria-haspopup":"menu","aria-expanded":h,"aria-label":m?void 0:v??(typeof d=="string"?d:"Open tabs"),children:[x??t.jsxs("svg",{className:"w-5 h-5",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:[t.jsx("rect",{x:"3",y:"5",width:"14",height:"2",rx:"1"}),t.jsx("rect",{x:"3",y:"9",width:"14",height:"2",rx:"1"}),t.jsx("rect",{x:"3",y:"13",width:"14",height:"2",rx:"1"})]}),m&&t.jsx("span",{children:d??r})]}),(h||L)&&t.jsx("div",{ref:z,"aria-hidden":!h,className:`absolute ${M?"right-0":"left-0"} mt-2 min-w-40 z-50 bg-surface border-2 border-border-default rounded-lg shadow-secondary overflow-hidden ${l}
23
+ transition-transform transition-opacity duration-200 ease-[cubic-bezier(.2,0,0,1)] transform-gpu origin-top will-change-transform will-change-opacity ${y||L?"opacity-0 scale-y-0 pointer-events-none":"opacity-100 scale-y-100 pointer-events-auto"}`,children:t.jsx("div",{className:"py-1",children:e.map(b=>t.jsx("button",{onClick:()=>{a(b),p&&(N(!0),setTimeout(()=>{k(!1),N(!1)},180))},className:`w-full flex items-center justify-between text-left px-4 py-2 font-bold transition-colors duration-200 outline-none hover:cursor-pointer ${r===b?"text-secondary relative pl-4 before:content-[''] before:h-full before:absolute before:left-0 before:top-1/2 before:-translate-y-1/2 before:h-4 before:w-[3px] before:rounded before:bg-accent before:shadow-lg-accent":"text-default hover:text-secondary hover:bg-base/70"} ${i}`,children:t.jsx("span",{children:b})},b))})})]})})},Ie=({tabs:e,activeTab:r,onTabChange:a,size:s="md",mode:n="scroll",containerClassName:c="",tabsClassName:l="",dropdownLabel:i,anchorIcon:d,showAnchorLabel:x=!0,anchorAriaLabel:m,closeOnSelect:v=!0,anchorClassName:p="",menuClassName:h="",menuItemClassName:k=""})=>{const w=($=>V($,re.tabNavigation))(s),L=Le(n,"scroll"),N=()=>{switch(L){case"scroll":return"w-full overflow-x-auto overflow-y-hidden scrollbar-thin scrollbar-thumb-border-default scrollbar-track-transparent hover:scrollbar-thumb-secondary/50 py-1";case"wrap":return"flex flex-wrap gap-2";case"dropdown":case"collapsible":return"flex space-x-2";default:return"flex space-x-2"}},M=t.jsx(t.Fragment,{children:e.map($=>t.jsx("button",{onClick:()=>a($),className:`
24
24
  ${w} font-bold transition-colors duration-200 rounded-t-lg cursor-pointer whitespace-nowrap flex-shrink-0 relative
25
25
  after:content-[''] after:absolute after:left-0 after:right-0 after:-bottom-[2px] after:h-[2px] after:w-full after:scale-x-0 after:origin-center after:transition-transform after:duration-300 after:ease-out
26
26
  before:content-[''] before:absolute before:left-1/2 before:-translate-x-1/2 before:-bottom-[6px] before:w-1.5 before:h-1.5 before:bg-accent before:rotate-45 before:rounded-[2px] before:opacity-0 before:transition-opacity before:duration-200
27
27
  ${r===$?"text-secondary after:bg-linear-(--gradient-accent) after:shadow-lg-accent after:scale-x-100":"text-muted hover:text-secondary hover:before:opacity-70"}
28
28
  ${l}
29
- `,role:"tab","aria-selected":r===$,tabIndex:r===$?0:-1,children:$},$))});return L==="dropdown"?t.jsx(ct,{tabs:e,activeTab:r,onTabChange:a,sizeClasses:w,containerClassName:c,anchorClassName:p,menuClassName:h,menuItemClassName:k,dropdownLabel:i,anchorIcon:d,showAnchorLabel:x,anchorAriaLabel:f,closeOnSelect:v}):L==="scroll"?t.jsx("div",{className:`${N()} ${c}`,role:"tablist","aria-label":"Tabs",children:t.jsx("div",{className:"w-max mx-auto flex space-x-2",children:M})}):t.jsx("div",{className:`${N()} ${c}`,role:"tablist","aria-label":"Tabs",children:M})},ut=(e,r)=>{const a=new Array(e.length+r.length);for(let s=0;s<e.length;s++)a[s]=e[s];for(let s=0;s<r.length;s++)a[e.length+s]=r[s];return a},ft=(e,r)=>({classGroupId:e,validator:r}),Le=(e=new Map,r=null,a)=>({nextPart:e,validators:r,classGroupId:a}),xe="-",Pe=[],mt="arbitrary..",bt=e=>{const r=gt(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return pt(l);const i=l.split(xe),d=i[0]===""&&i.length>1?1:0;return ze(i,d,r)},getConflictingClassGroupIds:(l,i)=>{if(i){const d=s[l],x=a[l];return d?x?ut(x,d):d:x||Pe}return a[l]||Pe}}},ze=(e,r,a)=>{if(e.length-r===0)return a.classGroupId;const n=e[r],c=a.nextPart.get(n);if(c){const x=ze(e,r+1,c);if(x)return x}const l=a.validators;if(l===null)return;const i=r===0?e.join(xe):e.slice(r).join(xe),d=l.length;for(let x=0;x<d;x++){const f=l[x];if(f.validator(i))return f.classGroupId}},pt=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=e.slice(1,-1),a=r.indexOf(":"),s=r.slice(0,a);return s?mt+s:void 0})(),gt=e=>{const{theme:r,classGroups:a}=e;return ht(a,r)},ht=(e,r)=>{const a=Le();for(const s in e){const n=e[s];je(n,a,s,r)}return a},je=(e,r,a,s)=>{const n=e.length;for(let c=0;c<n;c++){const l=e[c];xt(l,r,a,s)}},xt=(e,r,a,s)=>{if(typeof e=="string"){yt(e,r,a);return}if(typeof e=="function"){vt(e,r,a,s);return}wt(e,r,a,s)},yt=(e,r,a)=>{const s=e===""?r:Ie(r,e);s.classGroupId=a},vt=(e,r,a,s)=>{if(kt(e)){je(e(s),r,a,s);return}r.validators===null&&(r.validators=[]),r.validators.push(ft(a,e))},wt=(e,r,a,s)=>{const n=Object.entries(e),c=n.length;for(let l=0;l<c;l++){const[i,d]=n[l];je(d,Ie(r,i),a,s)}},Ie=(e,r)=>{let a=e;const s=r.split(xe),n=s.length;for(let c=0;c<n;c++){const l=s[c];let i=a.nextPart.get(l);i||(i=Le(),a.nextPart.set(l,i)),a=i}return a},kt=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,jt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,a=Object.create(null),s=Object.create(null);const n=(c,l)=>{a[c]=l,r++,r>e&&(r=0,s=a,a=Object.create(null))};return{get(c){let l=a[c];if(l!==void 0)return l;if((l=s[c])!==void 0)return n(c,l),l},set(c,l){c in a?a[c]=l:n(c,l)}}},Ce="!",Oe=":",Ct=[],Re=(e,r,a,s,n)=>({modifiers:e,hasImportantModifier:r,baseClassName:a,maybePostfixModifierPosition:s,isExternal:n}),Nt=e=>{const{prefix:r,experimentalParseClassName:a}=e;let s=n=>{const c=[];let l=0,i=0,d=0,x;const f=n.length;for(let y=0;y<f;y++){const w=n[y];if(l===0&&i===0){if(w===Oe){c.push(n.slice(d,y)),d=y+1;continue}if(w==="/"){x=y;continue}}w==="["?l++:w==="]"?l--:w==="("?i++:w===")"&&i--}const v=c.length===0?n:n.slice(d);let p=v,h=!1;v.endsWith(Ce)?(p=v.slice(0,-1),h=!0):v.startsWith(Ce)&&(p=v.slice(1),h=!0);const k=x&&x>d?x-d:void 0;return Re(c,h,p,k)};if(r){const n=r+Oe,c=s;s=l=>l.startsWith(n)?c(l.slice(n.length)):Re(Ct,!1,l,void 0,!0)}if(a){const n=s;s=c=>a({className:c,parseClassName:n})}return s},St=e=>{const r=new Map;return e.orderSensitiveModifiers.forEach((a,s)=>{r.set(a,1e6+s)}),a=>{const s=[];let n=[];for(let c=0;c<a.length;c++){const l=a[c],i=l[0]==="[",d=r.has(l);i||d?(n.length>0&&(n.sort(),s.push(...n),n=[]),s.push(l)):n.push(l)}return n.length>0&&(n.sort(),s.push(...n)),s}},Et=e=>({cache:jt(e.cacheSize),parseClassName:Nt(e),sortModifiers:St(e),...bt(e)}),Tt=/\s+/,_t=(e,r)=>{const{parseClassName:a,getClassGroupId:s,getConflictingClassGroupIds:n,sortModifiers:c}=r,l=[],i=e.trim().split(Tt);let d="";for(let x=i.length-1;x>=0;x-=1){const f=i[x],{isExternal:v,modifiers:p,hasImportantModifier:h,baseClassName:k,maybePostfixModifierPosition:y}=a(f);if(v){d=f+(d.length>0?" "+d:d);continue}let w=!!y,L=s(w?k.substring(0,y):k);if(!L){if(!w){d=f+(d.length>0?" "+d:d);continue}if(L=s(k),!L){d=f+(d.length>0?" "+d:d);continue}w=!1}const N=p.length===0?"":p.length===1?p[0]:c(p).join(":"),M=h?N+Ce:N,$=M+L;if(l.indexOf($)>-1)continue;l.push($);const S=n(L,w);for(let I=0;I<S.length;++I){const W=S[I];l.push(M+W)}d=f+(d.length>0?" "+d:d)}return d},$t=(...e)=>{let r=0,a,s,n="";for(;r<e.length;)(a=e[r++])&&(s=De(a))&&(n&&(n+=" "),n+=s);return n},De=e=>{if(typeof e=="string")return e;let r,a="";for(let s=0;s<e.length;s++)e[s]&&(r=De(e[s]))&&(a&&(a+=" "),a+=r);return a},Mt=(e,...r)=>{let a,s,n,c;const l=d=>{const x=r.reduce((f,v)=>v(f),e());return a=Et(x),s=a.cache.get,n=a.cache.set,c=i,i(d)},i=d=>{const x=s(d);if(x)return x;const f=_t(d,a);return n(d,f),f};return c=l,(...d)=>c($t(...d))},At=[],K=e=>{const r=a=>a[e]||At;return r.isThemeGetter=!0,r},Ge=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,We=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Lt=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Pt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zt=/\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$/,It=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ot=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Rt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ne=e=>Lt.test(e),O=e=>!!e&&!Number.isNaN(Number(e)),le=e=>!!e&&Number.isInteger(Number(e)),Ne=e=>e.endsWith("%")&&O(e.slice(0,-1)),ae=e=>Pt.test(e),Be=()=>!0,Dt=e=>zt.test(e)&&!It.test(e),Se=()=>!1,Gt=e=>Ot.test(e),Wt=e=>Rt.test(e),Bt=e=>!j(e)&&!C(e),Ft=e=>ie(e,Ze,Se),j=e=>Ge.test(e),ce=e=>ie(e,Xe,Dt),Fe=e=>ie(e,Kt,O),Vt=e=>ie(e,Ke,Be),Ht=e=>ie(e,qe,Se),Ve=e=>ie(e,Ue,Se),Ut=e=>ie(e,Ye,Wt),ye=e=>ie(e,Je,Gt),C=e=>We.test(e),be=e=>de(e,Xe),Yt=e=>de(e,qe),He=e=>de(e,Ue),Zt=e=>de(e,Ze),Xt=e=>de(e,Ye),ve=e=>de(e,Je,!0),qt=e=>de(e,Ke,!0),ie=(e,r,a)=>{const s=Ge.exec(e);return s?s[1]?r(s[1]):a(s[2]):!1},de=(e,r,a=!1)=>{const s=We.exec(e);return s?s[1]?r(s[1]):a:!1},Ue=e=>e==="position"||e==="percentage",Ye=e=>e==="image"||e==="url",Ze=e=>e==="length"||e==="size"||e==="bg-size",Xe=e=>e==="length",Kt=e=>e==="number",qe=e=>e==="family-name",Ke=e=>e==="number"||e==="weight",Je=e=>e==="shadow",Jt=Mt(()=>{const e=K("color"),r=K("font"),a=K("text"),s=K("font-weight"),n=K("tracking"),c=K("leading"),l=K("breakpoint"),i=K("container"),d=K("spacing"),x=K("radius"),f=K("shadow"),v=K("inset-shadow"),p=K("text-shadow"),h=K("drop-shadow"),k=K("blur"),y=K("perspective"),w=K("aspect"),L=K("ease"),N=K("animate"),M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...$(),C,j],I=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],b=()=>[C,j,d],P=()=>[ne,"full","auto",...b()],U=()=>[le,"none","subgrid",C,j],X=()=>["auto",{span:["full",le,C,j]},le,C,j],Q=()=>[le,"auto",C,j],te=()=>["auto","min","max","fr",C,j],ee=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],V=()=>["start","end","center","stretch","center-safe","end-safe"],Y=()=>["auto",...b()],q=()=>[ne,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...b()],Z=()=>[ne,"screen","full","dvw","lvw","svw","min","max","fit",...b()],J=()=>[ne,"screen","full","lh","dvh","lvh","svh","min","max","fit",...b()],o=()=>[e,C,j],u=()=>[...$(),He,Ve,{position:[C,j]}],g=()=>["no-repeat",{repeat:["","x","y","space","round"]}],A=()=>["auto","cover","contain",Zt,Ft,{size:[C,j]}],E=()=>[Ne,be,ce],T=()=>["","none","full",x,C,j],D=()=>["",O,be,ce],B=()=>["solid","dashed","dotted","double"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>[O,Ne,He,Ve],F=()=>["","none",k,C,j],se=()=>["none",O,C,j],ue=()=>["none",O,C,j],ge=()=>[O,C,j],we=()=>[ne,"full",...b()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ae],breakpoint:[ae],color:[Be],container:[ae],"drop-shadow":[ae],ease:["in","out","in-out"],font:[Bt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ae],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ae],shadow:[ae],spacing:["px",O],text:[ae],"text-shadow":[ae],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ne,j,C,w]}],container:["container"],columns:[{columns:[O,j,C,i]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{"inset-s":P(),start:P()}],end:[{"inset-e":P(),end:P()}],"inset-bs":[{"inset-bs":P()}],"inset-be":[{"inset-be":P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[le,"auto",C,j]}],basis:[{basis:[ne,"full","auto",i,...b()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[O,ne,"auto","initial","none",j]}],grow:[{grow:["",O,C,j]}],shrink:[{shrink:["",O,C,j]}],order:[{order:[le,"first","last","none",C,j]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:[...ee(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...ee()]}],"align-items":[{items:[...V(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...V(),{baseline:["","last"]}]}],"place-content":[{"place-content":ee()}],"place-items":[{"place-items":[...V(),"baseline"]}],"place-self":[{"place-self":["auto",...V()]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pbs:[{pbs:b()}],pbe:[{pbe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:Y()}],mx:[{mx:Y()}],my:[{my:Y()}],ms:[{ms:Y()}],me:[{me:Y()}],mbs:[{mbs:Y()}],mbe:[{mbe:Y()}],mt:[{mt:Y()}],mr:[{mr:Y()}],mb:[{mb:Y()}],ml:[{ml:Y()}],"space-x":[{"space-x":b()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":b()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],"inline-size":[{inline:["auto",...Z()]}],"min-inline-size":[{"min-inline":["auto",...Z()]}],"max-inline-size":[{"max-inline":["none",...Z()]}],"block-size":[{block:["auto",...J()]}],"min-block-size":[{"min-block":["auto",...J()]}],"max-block-size":[{"max-block":["none",...J()]}],w:[{w:[i,"screen",...q()]}],"min-w":[{"min-w":[i,"screen","none",...q()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[l]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",a,be,ce]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,qt,Vt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ne,j]}],"font-family":[{font:[Yt,Ht,r]}],"font-features":[{"font-features":[j]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,C,j]}],"line-clamp":[{"line-clamp":[O,"none",C,Fe]}],leading:[{leading:[c,...b()]}],"list-image":[{"list-image":["none",C,j]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",C,j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:o()}],"text-color":[{text:o()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:[O,"from-font","auto",C,ce]}],"text-decoration-color":[{decoration:o()}],"underline-offset":[{"underline-offset":[O,"auto",C,j]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",C,j]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",C,j]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:u()}],"bg-repeat":[{bg:g()}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},le,C,j],radial:["",C,j],conic:[le,C,j]},Xt,Ut]}],"bg-color":[{bg:o()}],"gradient-from-pos":[{from:E()}],"gradient-via-pos":[{via:E()}],"gradient-to-pos":[{to:E()}],"gradient-from":[{from:o()}],"gradient-via":[{via:o()}],"gradient-to":[{to:o()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-bs":[{"border-bs":D()}],"border-w-be":[{"border-be":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":D()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...B(),"hidden","none"]}],"divide-style":[{divide:[...B(),"hidden","none"]}],"border-color":[{border:o()}],"border-color-x":[{"border-x":o()}],"border-color-y":[{"border-y":o()}],"border-color-s":[{"border-s":o()}],"border-color-e":[{"border-e":o()}],"border-color-bs":[{"border-bs":o()}],"border-color-be":[{"border-be":o()}],"border-color-t":[{"border-t":o()}],"border-color-r":[{"border-r":o()}],"border-color-b":[{"border-b":o()}],"border-color-l":[{"border-l":o()}],"divide-color":[{divide:o()}],"outline-style":[{outline:[...B(),"none","hidden"]}],"outline-offset":[{"outline-offset":[O,C,j]}],"outline-w":[{outline:["",O,be,ce]}],"outline-color":[{outline:o()}],shadow:[{shadow:["","none",f,ve,ye]}],"shadow-color":[{shadow:o()}],"inset-shadow":[{"inset-shadow":["none",v,ve,ye]}],"inset-shadow-color":[{"inset-shadow":o()}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:o()}],"ring-offset-w":[{"ring-offset":[O,ce]}],"ring-offset-color":[{"ring-offset":o()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":o()}],"text-shadow":[{"text-shadow":["none",p,ve,ye]}],"text-shadow-color":[{"text-shadow":o()}],opacity:[{opacity:[O,C,j]}],"mix-blend":[{"mix-blend":[...G(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":G()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[O]}],"mask-image-linear-from-pos":[{"mask-linear-from":z()}],"mask-image-linear-to-pos":[{"mask-linear-to":z()}],"mask-image-linear-from-color":[{"mask-linear-from":o()}],"mask-image-linear-to-color":[{"mask-linear-to":o()}],"mask-image-t-from-pos":[{"mask-t-from":z()}],"mask-image-t-to-pos":[{"mask-t-to":z()}],"mask-image-t-from-color":[{"mask-t-from":o()}],"mask-image-t-to-color":[{"mask-t-to":o()}],"mask-image-r-from-pos":[{"mask-r-from":z()}],"mask-image-r-to-pos":[{"mask-r-to":z()}],"mask-image-r-from-color":[{"mask-r-from":o()}],"mask-image-r-to-color":[{"mask-r-to":o()}],"mask-image-b-from-pos":[{"mask-b-from":z()}],"mask-image-b-to-pos":[{"mask-b-to":z()}],"mask-image-b-from-color":[{"mask-b-from":o()}],"mask-image-b-to-color":[{"mask-b-to":o()}],"mask-image-l-from-pos":[{"mask-l-from":z()}],"mask-image-l-to-pos":[{"mask-l-to":z()}],"mask-image-l-from-color":[{"mask-l-from":o()}],"mask-image-l-to-color":[{"mask-l-to":o()}],"mask-image-x-from-pos":[{"mask-x-from":z()}],"mask-image-x-to-pos":[{"mask-x-to":z()}],"mask-image-x-from-color":[{"mask-x-from":o()}],"mask-image-x-to-color":[{"mask-x-to":o()}],"mask-image-y-from-pos":[{"mask-y-from":z()}],"mask-image-y-to-pos":[{"mask-y-to":z()}],"mask-image-y-from-color":[{"mask-y-from":o()}],"mask-image-y-to-color":[{"mask-y-to":o()}],"mask-image-radial":[{"mask-radial":[C,j]}],"mask-image-radial-from-pos":[{"mask-radial-from":z()}],"mask-image-radial-to-pos":[{"mask-radial-to":z()}],"mask-image-radial-from-color":[{"mask-radial-from":o()}],"mask-image-radial-to-color":[{"mask-radial-to":o()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":$()}],"mask-image-conic-pos":[{"mask-conic":[O]}],"mask-image-conic-from-pos":[{"mask-conic-from":z()}],"mask-image-conic-to-pos":[{"mask-conic-to":z()}],"mask-image-conic-from-color":[{"mask-conic-from":o()}],"mask-image-conic-to-color":[{"mask-conic-to":o()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:u()}],"mask-repeat":[{mask:g()}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",C,j]}],filter:[{filter:["","none",C,j]}],blur:[{blur:F()}],brightness:[{brightness:[O,C,j]}],contrast:[{contrast:[O,C,j]}],"drop-shadow":[{"drop-shadow":["","none",h,ve,ye]}],"drop-shadow-color":[{"drop-shadow":o()}],grayscale:[{grayscale:["",O,C,j]}],"hue-rotate":[{"hue-rotate":[O,C,j]}],invert:[{invert:["",O,C,j]}],saturate:[{saturate:[O,C,j]}],sepia:[{sepia:["",O,C,j]}],"backdrop-filter":[{"backdrop-filter":["","none",C,j]}],"backdrop-blur":[{"backdrop-blur":F()}],"backdrop-brightness":[{"backdrop-brightness":[O,C,j]}],"backdrop-contrast":[{"backdrop-contrast":[O,C,j]}],"backdrop-grayscale":[{"backdrop-grayscale":["",O,C,j]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[O,C,j]}],"backdrop-invert":[{"backdrop-invert":["",O,C,j]}],"backdrop-opacity":[{"backdrop-opacity":[O,C,j]}],"backdrop-saturate":[{"backdrop-saturate":[O,C,j]}],"backdrop-sepia":[{"backdrop-sepia":["",O,C,j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",C,j]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[O,"initial",C,j]}],ease:[{ease:["linear","initial",L,C,j]}],delay:[{delay:[O,C,j]}],animate:[{animate:["none",N,C,j]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,C,j]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:se()}],"rotate-x":[{"rotate-x":se()}],"rotate-y":[{"rotate-y":se()}],"rotate-z":[{"rotate-z":se()}],scale:[{scale:ue()}],"scale-x":[{"scale-x":ue()}],"scale-y":[{"scale-y":ue()}],"scale-z":[{"scale-z":ue()}],"scale-3d":["scale-3d"],skew:[{skew:ge()}],"skew-x":[{"skew-x":ge()}],"skew-y":[{"skew-y":ge()}],transform:[{transform:[C,j,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:we()}],"translate-x":[{"translate-x":we()}],"translate-y":[{"translate-y":we()}],"translate-z":[{"translate-z":we()}],"translate-none":["translate-none"],accent:[{accent:o()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:o()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",C,j]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mbs":[{"scroll-mbs":b()}],"scroll-mbe":[{"scroll-mbe":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pbs":[{"scroll-pbs":b()}],"scroll-pbe":[{"scroll-pbe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"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",C,j]}],fill:[{fill:["none",...o()]}],"stroke-w":[{stroke:[O,be,ce,Fe]}],stroke:[{stroke:["none",...o()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Qe(e){var r,a,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(r=0;r<n;r++)e[r]&&(a=Qe(e[r]))&&(s&&(s+=" "),s+=a)}else for(a in e)e[a]&&(s&&(s+=" "),s+=a);return s}function Qt(){for(var e,r,a=0,s="",n=arguments.length;a<n;a++)(e=arguments[a])&&(r=Qe(e))&&(s&&(s+=" "),s+=r);return s}function _(...e){return Jt(Qt(e))}const er={sm:"w-16 h-16",md:"w-24 h-24",lg:"w-32 h-32",xl:"w-40 h-40"},tr=({progress:e,size:r="md",radius:a=20,className:s="",children:n,ariaLabel:c})=>{const l=2*Math.PI*a,i=l/2,d=i*(1-e/100),x=i*(1-e/100);return t.jsxs("div",{className:_("relative",er[r],s),role:"progressbar","aria-label":c||"Progress","aria-valuenow":Math.max(0,Math.min(100,e)),"aria-valuemin":0,"aria-valuemax":100,children:[t.jsxs("svg",{className:"w-full h-full overflow-visible",viewBox:"0 0 50 50",children:[t.jsx("circle",{cx:"25",cy:"25",r:a,fill:"none",stroke:"var(--color-accent)",strokeWidth:"4",strokeLinecap:"butt",strokeDasharray:`${i*.98} ${l}`,strokeDashoffset:d,transform:"rotate(-90 25 25)",style:{filter:"drop-shadow(0 0 8px var(--color-accent))"}}),t.jsx("circle",{cx:"25",cy:"25",r:a,fill:"none",stroke:"var(--color-primary)",strokeWidth:"4",strokeLinecap:"butt",strokeDasharray:`${i*.98} ${l}`,strokeDashoffset:x,transform:"rotate(90 25 25)",style:{filter:"drop-shadow(0 0 8px var(--color-primary))"}})]}),n&&t.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:n})]})},rr={SEGMENT_COUNT:20,SEGMENT_ANGLE:360/20,GAP_ANGLE:4,INNER_RADIUS:18.5,OUTER_RADIUS:23.5,OUTER_TICK_RADIUS:30},sr={sm:"w-16 h-16",md:"w-24 h-24",lg:"w-32 h-32",xl:"w-40 h-40"},or=({progress:e,size:r="md",className:a,children:s})=>{const{SEGMENT_COUNT:n,SEGMENT_ANGLE:c,GAP_ANGLE:l,INNER_RADIUS:i,OUTER_RADIUS:d,OUTER_TICK_RADIUS:x}=rr,f=c-l;return t.jsxs("div",{className:_("relative",sr[r],a),children:[t.jsxs("svg",{className:"w-full h-full",viewBox:"0 0 60 60",style:{overflow:"visible"},children:[[...Array(60)].map((v,p)=>{const h=6*p,y=p%5===0?6:3,w=30+x*Math.cos(h*Math.PI/180),L=30+x*Math.sin(h*Math.PI/180),N=30+(x-y)*Math.cos(h*Math.PI/180),M=30+(x-y)*Math.sin(h*Math.PI/180);return t.jsx("line",{x1:w,y1:L,x2:N,y2:M,stroke:"var(--color-muted)",strokeWidth:1,strokeLinecap:"round",opacity:.7},`tick-${p}`)}),[...Array(n)].map((v,p)=>{const h=c*p-90+l/2,k=h+f,y=P=>P*Math.PI/180,w=30+i*Math.cos(y(h)),L=30+i*Math.sin(y(h)),N=30+d*Math.cos(y(h)),M=30+d*Math.sin(y(h)),$=30+d*Math.cos(y(k)),S=30+d*Math.sin(y(k)),I=30+i*Math.cos(y(k)),W=30+i*Math.sin(y(k)),b=p<Math.floor(e/5);return t.jsx("path",{d:`M ${w} ${L} L ${N} ${M} L ${$} ${S} L ${I} ${W} Z`,fill:b?"var(--color-accent)":"var(--color-border-default)",style:{filter:b?"drop-shadow(0 0 6px var(--color-accent))":"none",transition:"fill 0.3s ease"}},`segment-${p}`)})]}),s&&t.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:s})]})},ar={sm:"h-3",md:"h-5",lg:"h-7",xl:"h-9"},nr=({progress:e,segments:r=10,size:a="md",className:s})=>{const n=Math.round(Math.min(100,Math.max(0,e))/100*r);return t.jsx("div",{className:_("flex gap-1 w-full",s),children:[...Array(r)].map((c,l)=>{const i=l<n;return t.jsx("div",{className:_("flex-1 rounded-sm transition-all duration-300",ar[a]),style:{backgroundColor:i?"var(--color-accent)":"var(--color-border-default)",boxShadow:i?"0 0 6px var(--color-accent)":"none"}},l)})})},lr=e=>e.variant==="block"?t.jsx(nr,{...e}):t.jsx(or,{...e}),ir=({progress:e,size:r="md",className:a=""})=>{const s=x=>H(x,re.linearProgress.width),n=x=>H(x,re.linearProgress.height),c=s(r),l=n(r),i=_("bg-surface rounded-full shadow-inner",l,a||c),d=_("bg-gradient-to-r from-accent to-primary rounded-full shadow-lg-accent transition-all duration-500 ease-out",l);return t.jsx("div",{className:i,role:"progressbar","aria-valuenow":Math.max(0,Math.min(100,e)),"aria-valuemin":0,"aria-valuemax":100,children:t.jsx("div",{className:d,style:{width:`${e}%`}})})},et=({type:e,title:r,message:a,size:s="md",onClose:n})=>{const c=v=>H(v,re.notification),i=(()=>{switch(e){case"success":return{container:"bg-linear-(--gradient-accent) shadow-lg-accent",textColor:"text-base",icon:t.jsx("svg",{className:"w-6 h-6 text-base",fill:"currentColor",viewBox:"0 0 20 20",children:t.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})})};case"warning":return{container:"bg-surface border-l-4 border-secondary shadow-lg",textColor:"text-default",icon:t.jsx("svg",{className:"w-6 h-6 text-secondary",fill:"currentColor",viewBox:"0 0 20 20",children:t.jsx("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})})};case"error":return{container:"bg-error shadow-error",textColor:"text-base",icon:t.jsx("svg",{className:"w-6 h-6 text-base",fill:"currentColor",viewBox:"0 0 20 20",children:t.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})};default:return{container:"bg-surface border-l-4 border-secondary shadow-lg",textColor:"text-default",icon:null}}})(),d=c(s),x=e==="error"?"alert":"status",f=e==="warning"?"hover:text-default/70":"hover:text-base/70";return t.jsxs("div",{className:`flex items-start rounded-lg ${d} ${i.container}`,role:x,"aria-atomic":"true",children:[t.jsx("div",{className:"flex-shrink-0",children:i.icon}),t.jsxs("div",{className:"flex-1",children:[t.jsx("h4",{className:`font-bold ${i.textColor}`,children:r}),t.jsx("p",{className:`${e==="success"||e==="error"?"text-base/80":"text-muted"} text-sm mt-1`,children:a})]}),n&&t.jsx("button",{className:`flex-shrink-0 ${i.textColor} ${f} transition-colors cursor-pointer`,onClick:n,"aria-label":"Close notification",children:t.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",children:t.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})})]})},Ee=({variant:e="primary",size:r="md",className:a="",disabled:s=!1,children:n,...c})=>{const l=["group","relative","overflow-hidden","rounded-lg","font-bold","uppercase","tracking-wider","transition-all","duration-300","ease-in-out","focus:outline-none",s?"cursor-not-allowed":"cursor-pointer"].join(" "),i=v=>H(v,re.button),d=(v,p)=>({primary:{enabled:"bg-linear-(--gradient-accent) text-base shadow-primary border-none hover:shadow-lg-accent hover:brightness-110 focus-visible:ring-2 focus-visible:ring-accent/50 active:scale-95",disabled:"bg-base border-2 border-accent/20 text-accent/40 shadow-none opacity-50"},secondary:{enabled:"bg-surface border-2 border-secondary text-secondary shadow-secondary/30 hover:bg-secondary hover:text-base hover:shadow-secondary focus-visible:ring-2 focus-visible:ring-secondary/50 active:scale-95",disabled:"bg-base border-2 border-secondary/20 text-secondary/40 shadow-none opacity-50"},danger:{enabled:"bg-surface border-2 border-error text-error shadow-error/30 hover:bg-error hover:text-base hover:shadow-error focus-visible:ring-2 focus-visible:ring-error/50 active:scale-95",disabled:"bg-base border-2 border-error/20 text-error/40 shadow-none opacity-50"},ghost:{enabled:"bg-surface border-2 border-accent text-accent shadow-secondary hover:bg-accent hover:text-base hover:shadow-lg-accent focus-visible:ring-2 focus-visible:ring-accent/50 active:scale-95",disabled:"bg-base border-2 border-accent/10 text-muted/60 shadow-none opacity-40"}})[v][p?"disabled":"enabled"],x=_(l,i(r),d(e,s),a),f=e==="primary"&&!s;return t.jsxs("button",{className:x,disabled:s,...c,children:[t.jsx("span",{className:"relative z-10",children:n}),f&&t.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-transparent via-white/20 to-transparent -translate-x-full group-hover:translate-x-full transition-transform duration-700"}),s&&t.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-transparent via-base/10 to-transparent pointer-events-none"})]})},cr=({variant:e="primary",size:r="md",label:a,helperText:s,error:n,leftIcon:c,rightIcon:l,className:i="",disabled:d=!1,...x})=>{const f=m.useId(),v=x.id||f,p=["w-full","rounded-lg","bg-surface","text-default","placeholder-muted","transition-all","duration-300","focus:outline-none",d?"cursor-not-allowed opacity-60":"cursor-text"].join(" "),h=$=>H($,re.input),k=$=>{const S=h($);return c&&l?`pl-10 pr-10 ${S}`:c?`pl-10 pr-4 ${S}`:l?`pl-4 pr-10 ${S}`:`px-4 ${S}`},y=($,S,I)=>S?"border-2 border-error shadow-error/30 hover:shadow-error focus:ring-2 focus:ring-error focus:shadow-error active:bg-base":I?{primary:"border-2 border-accent/20 shadow-none",secondary:"border-2 border-secondary/20 shadow-none",danger:"border-2 border-error/20 shadow-none",ghost:"border border-border-default shadow-none"}[$]:{primary:"border-2 border-accent shadow-input-accent hover:shadow-lg-accent focus:ring-2 focus:ring-accent focus:shadow-lg-accent active:bg-base",secondary:"border-2 border-secondary shadow-secondary/30 hover:shadow-secondary focus:ring-2 focus:ring-secondary focus:shadow-secondary active:bg-base",danger:"border-2 border-error shadow-error/30 hover:shadow-error focus:ring-2 focus:ring-error focus:shadow-error active:bg-base",ghost:"border border-border-default shadow-none hover:border-accent focus:ring-2 focus:ring-accent focus:border-accent active:bg-base"}[$],w=$=>({primary:"text-accent",secondary:"text-secondary",danger:"text-error",ghost:"text-muted"})[$],L=_(p,k(r),y(e,!!n,d),i),N=w(e),M=n?`${v}-error`:s?`${v}-help`:void 0;return t.jsxs("div",{className:"space-y-2",children:[a&&t.jsx("label",{htmlFor:v,className:"block text-sm font-medium text-default",children:a}),t.jsxs("div",{className:"relative",children:[c&&t.jsx("div",{className:`absolute inset-y-0 left-0 flex items-center pl-3 ${N}`,children:c}),t.jsx("input",{className:L,disabled:d,id:v,"aria-invalid":!!n,"aria-describedby":M,...x}),l&&t.jsx("div",{className:`absolute inset-y-0 right-0 flex items-center pr-3 ${N}`,children:l})]}),(s||n)&&t.jsx("div",{id:n?`${v}-error`:`${v}-help`,className:`text-xs font-mono ${n?"text-error":"text-muted"}`,children:n||s})]})},dr=({variant:e="default",size:r="md",title:a,titleBorder:s=!0,children:n,className:c="",...l})=>{const i=f=>H(f,re.card),d=f=>{const v=i(r);return{default:`bg-base border border-border-default rounded-xl text-primary ${v}`,accent:`bg-surface border-2 border-accent rounded-xl shadow-input-accent/50 hover:shadow-lg-accent transition-all duration-300 transform text-primary ${v}`,small:`bg-base rounded-lg border border-border-default text-primary ${v}`}[f]},x=f=>f?"text-xl font-semibold text-secondary mb-4 border-b border-accent pb-2":"text-xl font-semibold text-secondary mb-4";return t.jsxs("div",{className:_(d(e),c),...l,children:[a&&t.jsx("h3",{className:x(s),children:a}),n]})},ur=({variant:e="primary",size:r="md",children:a,className:s="",leftIcon:n,rightIcon:c,clickable:l=!1,onClick:i,...d})=>{const x=p=>H(p,re.badge),f=p=>({primary:"bg-primary shadow-lg",secondary:"bg-secondary shadow-lg",accent:"bg-accent shadow-lg",success:"bg-success shadow-lg",error:"bg-error shadow-lg",warning:"bg-warning shadow-lg"})[p],v=(p,h)=>!h&&!i?"transition-shadow":{primary:"hover:shadow-primary transition-shadow cursor-pointer",secondary:"hover:shadow-secondary transition-shadow cursor-pointer",accent:"hover:shadow-lg-accent transition-shadow cursor-pointer",success:"hover:shadow-success transition-shadow cursor-pointer",error:"hover:shadow-error transition-shadow cursor-pointer",warning:"hover:shadow-warning transition-shadow cursor-pointer"}[p];return t.jsxs("span",{className:_("inline-flex items-center rounded-full font-semibold",x(r),f(e),v(e,l||!!i),s),onClick:i,...d,children:[n,t.jsx("span",{children:a}),c]})},fr=({label:e,size:r="md",variant:a="primary",className:s="",checked:n=!1,onChange:c,disabled:l=!1,id:i,...d})=>{const x=y=>{l||c&&c(y.target.checked)},f=y=>H(y,{sm:"w-10 h-5 after:h-4 after:w-4",md:"w-14 h-7 after:h-6 after:w-6",lg:"w-16 h-8 after:h-7 after:w-7"}),v=(y,w)=>{if(w)return"bg-gray-600 peer-checked:bg-gray-500 opacity-50 cursor-not-allowed";const L={primary:"bg-gray-600 peer-checked:bg-linear-(--gradient-accent) peer-focus:ring-primary",secondary:"bg-gray-600 peer-checked:bg-secondary peer-focus:ring-secondary",accent:"bg-gray-600 peer-checked:bg-accent peer-focus:ring-accent"};return L[y]||L.primary},p=_("relative inline-flex items-center",l?"cursor-not-allowed opacity-50":"cursor-pointer"),h=_(f(r),v(a,l),"peer-focus:outline-none rounded-full peer","peer-checked:after:translate-x-full peer-checked:after:border-white","after:content-[''] after:absolute after:top-[2px] after:left-[2px]","after:bg-white after:rounded-full after:transition-all","transition-colors duration-300"),k=_("flex items-center justify-between",e&&"space-x-3",s);return t.jsxs("div",{className:k,children:[e&&t.jsx("label",{htmlFor:i,className:`text-default font-medium ${l?"text-muted opacity-50":"cursor-pointer"}`,children:e}),t.jsxs("label",{className:p,children:[t.jsx("input",{type:"checkbox",className:"sr-only peer",checked:n,onChange:x,disabled:l,id:i,...d}),t.jsx("div",{className:h})]})]})},mr=({label:e,size:r="md",variant:a="primary",options:s,placeholder:n,helperText:c,error:l,className:i="",disabled:d=!1,id:x,name:f,onValueChange:v,onChange:p,...h})=>{const k=b=>{p?.(b),v?.(b.target.value)},y=m.useId(),w=x||y,L=f||w,N=b=>H(b,re.input),M=(b,P,U)=>{if(P)return"bg-base border-2 border-border-default/30 text-muted/50 cursor-not-allowed opacity-50";if(U)return"bg-surface border-2 border-error text-default focus:ring-2 focus:ring-error focus:border-error shadow-error";const X={primary:"bg-surface border-2 border-border-default text-default focus:ring-2 focus:ring-primary focus:border-primary shadow-primary",secondary:"bg-surface border-2 border-secondary text-default focus:ring-2 focus:ring-secondary focus:border-secondary shadow-secondary/30",danger:"bg-surface border-2 border-error text-default focus:ring-2 focus:ring-error focus:border-error shadow-error/30",ghost:"bg-base border-2 border-accent/20 text-default focus:ring-2 focus:ring-accent focus:border-accent shadow-secondary"};return X[b]||X.primary},$=_("appearance-none w-full rounded-lg font-mono transition-all duration-300 focus:outline-none px-4 pr-10",N(r),M(a,d,!!l),i),S="relative w-full",I=_("block text-sm font-medium mb-2 transition-colors duration-200",d?"text-muted opacity-50":l?"text-error":"text-default"),W=_("mt-2 text-xs transition-colors duration-200",l?"text-error":"text-muted");return t.jsxs("div",{className:"w-full",children:[e&&t.jsx("label",{htmlFor:w,className:I,children:e}),t.jsxs("div",{className:S,children:[t.jsxs("select",{className:$,disabled:d,id:w,name:L,onChange:k,...h,children:[n&&t.jsx("option",{value:"",disabled:!0,children:n}),s.map(b=>t.jsx("option",{value:b.value,disabled:b.disabled,className:"bg-surface text-default",children:b.label},b.value))]}),t.jsx("div",{className:`pointer-events-none absolute inset-y-0 right-0 flex items-center px-3 ${d?"text-muted/50":l?"text-error":"text-accent"}`,children:t.jsx("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 20 20",children:t.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})})]}),(c||l)&&t.jsx("div",{className:W,children:l||c})]})},br=({variant:e="text",size:r="md",width:a,height:s,className:n="",lines:c=3,animate:l=!0})=>{const d=_("bg-gray-600",l&&"animate-pulse",(f=>H(f,re.skeleton))(r),n),x=()=>{const f={};return a&&(f.width=typeof a=="number"?`${a}px`:a),s&&(f.height=typeof s=="number"?`${s}px`:s),f};if(e==="text")return t.jsx("div",{className:`space-y-3 ${n}`,children:Array.from({length:c}).map((f,v)=>{const h=v===c-1?"w-2/3":v%2===0?"w-full":"w-5/6";return t.jsx("div",{className:`h-3 rounded ${d} ${h}`,style:x()},v)})});if(e==="circular"){const f=r==="sm"?"h-12 w-12":r==="lg"?"h-20 w-20":"h-16 w-16";return t.jsx("div",{className:`rounded-full ${d} ${f}`,style:x()})}if(e==="rectangular"){const f=r==="sm"?"h-20":r==="lg"?"h-40":"h-32";return t.jsx("div",{className:`rounded-lg ${d} w-full ${f}`,style:x()})}if(e==="avatar-text"){const f=r==="sm"?"h-12 w-12":r==="lg"?"h-20 w-20":"h-16 w-16";return t.jsxs("div",{className:`flex items-center space-x-4 ${n}`,children:[t.jsx("div",{className:`rounded-full ${d} ${f}`}),t.jsxs("div",{className:"flex-1 space-y-3",children:[t.jsx("div",{className:`h-4 rounded w-3/4 ${d}`}),t.jsx("div",{className:`h-3 rounded w-1/2 ${d}`})]})]})}if(e==="button-group"){const f=r==="sm"?"h-8":r==="lg"?"h-12":"h-10";return t.jsxs("div",{className:`flex space-x-4 ${n}`,children:[t.jsx("div",{className:`${f} rounded w-20 ${d}`}),t.jsx("div",{className:`${f} rounded w-24 ${d}`})]})}if(e==="card"){const f=r==="sm"?"p-4":r==="lg"?"p-8":"p-6";return t.jsx("div",{className:`border border-border-default rounded-lg bg-surface ${f} space-y-4 ${n}`,children:l&&t.jsxs("div",{className:"animate-pulse space-y-4",children:[t.jsxs("div",{className:"flex items-center space-x-4",children:[t.jsx("div",{className:`rounded-full ${d} h-16 w-16`}),t.jsxs("div",{className:"flex-1 space-y-3",children:[t.jsx("div",{className:`h-4 rounded w-3/4 ${d}`}),t.jsx("div",{className:`h-3 rounded w-1/2 ${d}`})]})]}),t.jsxs("div",{className:"space-y-3",children:[t.jsx("div",{className:`h-3 rounded ${d}`}),t.jsx("div",{className:`h-3 rounded w-5/6 ${d}`}),t.jsx("div",{className:`h-3 rounded w-4/6 ${d}`})]}),t.jsxs("div",{className:"flex space-x-4 pt-4",children:[t.jsx("div",{className:`h-8 rounded w-20 ${d}`}),t.jsx("div",{className:`h-8 rounded w-24 ${d}`})]})]})})}return t.jsx("div",{className:`h-4 rounded ${d} w-full`,style:x()})},pr={openDuration:50,closeDuration:350,cyberpunkEffects:!0},pe=m.memo(({src:e,alt:r,size:a="md",preview:s=!0,fallback:n,placeholder:c,className:l="",animation:i,eager:d=!1,previewClassName:x="",onPreviewOpen:f,onPreviewClose:v,onLoad:p,onError:h,...k})=>{const y={...pr,...i},[w,L]=m.useState(!1),[N,M]=m.useState(!1),[$,S]=m.useState(!1),[I,W]=m.useState(!0),[b,P]=m.useState(!1),[U,X]=m.useState(!1),Q=m.useRef(null),te=m.useRef(null),ee=m.useCallback(E=>H(E,re.card),[]),V=m.useCallback(E=>{W(!1),P(!1),p?.(E)},[p]),Y=m.useCallback(E=>{W(!1),n&&!U?(X(!0),P(!1)):P(!0),h?.(E)},[h,n,U]),q=m.useCallback(()=>{s&&!b&&(S(!0),L(!0),f?.(),setTimeout(()=>{S(!1)},y.openDuration))},[s,b,f,y.openDuration]),Z=m.useCallback(()=>{M(!0),v?.(),setTimeout(()=>{L(!1),M(!1)},y.closeDuration)},[v,y.closeDuration]),J=m.useCallback(E=>{(E.target===Q.current||E.target===E.currentTarget)&&Z()},[Z]),o=m.useCallback(E=>{E.key==="Escape"&&Z()},[Z]);m.useEffect(()=>{if(w){document.addEventListener("keydown",o);const E=document.body.style.overflow,T=document.documentElement.style.scrollbarGutter,D=document.body.style.paddingRight,B=window.innerWidth-document.documentElement.clientWidth;return document.body.style.overflow="hidden",document.body.style.paddingRight=`${B}px`,document.documentElement.style.scrollbarGutter="auto",()=>{document.removeEventListener("keydown",o),document.body.style.overflow=E,document.body.style.paddingRight=D,document.documentElement.style.scrollbarGutter=T}}},[w,o]);const u=m.useMemo(()=>_("relative rounded-lg overflow-hidden border-2 border-accent/30 transition-all duration-300 ease-in-out transform flex justify-center content-center",s&&!b?"cursor-pointer hover:scale-105 hover:border-accent hover:shadow-lg-accent focus:outline-none focus:ring-4 focus:ring-accent/50":"",ee(a),l),[s,b,ee,a,l]),g=m.useMemo(()=>({role:s?"button":"img",tabIndex:s&&!b?0:-1,"aria-label":s?`${r}. Click to enlarge`:r,"aria-expanded":s?w:void 0,onKeyDown:s&&!b?E=>{(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),q())}:void 0}),[s,b,r,w,q]),A=m.useMemo(()=>t.jsxs("div",{className:u,onClick:q,...g,children:[I&&t.jsx("div",{className:"absolute m-0 inset-0 flex items-center justify-center bg-surface border-2 border-accent/20",role:"status","aria-label":"Loading image",children:c||t.jsx("div",{className:"animate-pulse bg-gradient-to-r from-accent/20 to-secondary/20 w-full h-full flex items-center justify-center",children:t.jsx("div",{className:"text-muted text-sm",children:"Loading..."})})}),b?t.jsx("div",{className:"flex items-center justify-center bg-surface border-2 border-error/30 text-error p-4 rounded-lg min-h-[100px]",role:"alert","aria-label":"Failed to load image",children:t.jsxs("div",{className:"text-center",children:[t.jsx("div",{className:"text-2xl mb-2","aria-hidden":"true",children:"⚠"}),t.jsx("div",{className:"text-sm",children:"Failed to load image"})]})}):U?t.jsx("img",{ref:te,src:n,alt:`${r} (fallback)`,className:"w-full h-full m-0 object-cover transition-opacity duration-300",style:{opacity:I?0:1},onLoad:V,onError:()=>{P(!0),X(!1)},loading:d?"eager":"lazy",decoding:"async",...k}):t.jsx("img",{ref:te,src:e,alt:r,className:"w-full h-full m-0 object-cover transition-opacity duration-300",style:{opacity:I?0:1},onLoad:V,onError:Y,loading:d?"eager":"lazy",decoding:"async",...k}),s&&!I&&!b&&t.jsx("div",{className:"absolute inset-0 bg-black/0 hover:bg-black/20 transition-all duration-300 flex items-center justify-center opacity-0 hover:opacity-100","aria-hidden":"true",children:t.jsx("div",{className:"bg-accent/90 text-base px-3 py-1 rounded-md text-sm font-semibold tracking-wider uppercase",children:"Preview"})})]}),[u,q,g,I,c,b,U,n,r,V,d,k,e,Y,s]);return t.jsxs(t.Fragment,{children:[A,w&&Te.createPortal(t.jsxs("div",{ref:Q,className:`fixed z-50 flex items-center justify-center p-4 transition-all ease-out ${x} ${N?"bg-black/0 backdrop-blur-none opacity-0 duration-300":$?"bg-black/80 backdrop-blur-sm opacity-100 duration-500":"bg-black/80 backdrop-blur-sm opacity-100 duration-300"}`,style:{top:0,left:0,width:"100vw",height:"100vh",maxWidth:"none"},onClick:J,role:"dialog","aria-modal":"true","aria-label":`Preview: ${r}`,children:[y.cyberpunkEffects&&t.jsx("div",{className:`absolute transition-opacity duration-300 ${N?"opacity-0":"opacity-20"}`,style:{top:0,left:0,width:"100vw",height:"100vh"},"aria-hidden":"true",children:t.jsx("div",{className:"absolute",style:{top:0,left:0,width:"100vw",height:"100vh",backgroundImage:`
29
+ `,role:"tab","aria-selected":r===$,tabIndex:r===$?0:-1,children:$},$))});return L==="dropdown"?t.jsx(St,{tabs:e,activeTab:r,onTabChange:a,sizeClasses:w,containerClassName:c,anchorClassName:p,menuClassName:h,menuItemClassName:k,dropdownLabel:i,anchorIcon:d,showAnchorLabel:x,anchorAriaLabel:m,closeOnSelect:v}):L==="scroll"?t.jsx("div",{className:`${N()} ${c}`,role:"tablist","aria-label":"Tabs",children:t.jsx("div",{className:"w-max mx-auto flex space-x-2",children:M})}):t.jsx("div",{className:`${N()} ${c}`,role:"tablist","aria-label":"Tabs",children:M})};Ie.displayName="CyberUI.TabNavigation";const Et=(e,r)=>{const a=new Array(e.length+r.length);for(let s=0;s<e.length;s++)a[s]=e[s];for(let s=0;s<r.length;s++)a[e.length+s]=r[s];return a},Tt=(e,r)=>({classGroupId:e,validator:r}),Pe=(e=new Map,r=null,a)=>({nextPart:e,validators:r,classGroupId:a}),xe="-",ze=[],_t="arbitrary..",$t=e=>{const r=At(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return Mt(l);const i=l.split(xe),d=i[0]===""&&i.length>1?1:0;return Oe(i,d,r)},getConflictingClassGroupIds:(l,i)=>{if(i){const d=s[l],x=a[l];return d?x?Et(x,d):d:x||ze}return a[l]||ze}}},Oe=(e,r,a)=>{if(e.length-r===0)return a.classGroupId;const n=e[r],c=a.nextPart.get(n);if(c){const x=Oe(e,r+1,c);if(x)return x}const l=a.validators;if(l===null)return;const i=r===0?e.join(xe):e.slice(r).join(xe),d=l.length;for(let x=0;x<d;x++){const m=l[x];if(m.validator(i))return m.classGroupId}},Mt=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=e.slice(1,-1),a=r.indexOf(":"),s=r.slice(0,a);return s?_t+s:void 0})(),At=e=>{const{theme:r,classGroups:a}=e;return Lt(a,r)},Lt=(e,r)=>{const a=Pe();for(const s in e){const n=e[s];je(n,a,s,r)}return a},je=(e,r,a,s)=>{const n=e.length;for(let c=0;c<n;c++){const l=e[c];It(l,r,a,s)}},It=(e,r,a,s)=>{if(typeof e=="string"){Pt(e,r,a);return}if(typeof e=="function"){zt(e,r,a,s);return}Ot(e,r,a,s)},Pt=(e,r,a)=>{const s=e===""?r:Re(r,e);s.classGroupId=a},zt=(e,r,a,s)=>{if(Rt(e)){je(e(s),r,a,s);return}r.validators===null&&(r.validators=[]),r.validators.push(Tt(a,e))},Ot=(e,r,a,s)=>{const n=Object.entries(e),c=n.length;for(let l=0;l<c;l++){const[i,d]=n[l];je(d,Re(r,i),a,s)}},Re=(e,r)=>{let a=e;const s=r.split(xe),n=s.length;for(let c=0;c<n;c++){const l=s[c];let i=a.nextPart.get(l);i||(i=Pe(),a.nextPart.set(l,i)),a=i}return a},Rt=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Dt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,a=Object.create(null),s=Object.create(null);const n=(c,l)=>{a[c]=l,r++,r>e&&(r=0,s=a,a=Object.create(null))};return{get(c){let l=a[c];if(l!==void 0)return l;if((l=s[c])!==void 0)return n(c,l),l},set(c,l){c in a?a[c]=l:n(c,l)}}},Ne="!",De=":",Gt=[],Ge=(e,r,a,s,n)=>({modifiers:e,hasImportantModifier:r,baseClassName:a,maybePostfixModifierPosition:s,isExternal:n}),Wt=e=>{const{prefix:r,experimentalParseClassName:a}=e;let s=n=>{const c=[];let l=0,i=0,d=0,x;const m=n.length;for(let y=0;y<m;y++){const w=n[y];if(l===0&&i===0){if(w===De){c.push(n.slice(d,y)),d=y+1;continue}if(w==="/"){x=y;continue}}w==="["?l++:w==="]"?l--:w==="("?i++:w===")"&&i--}const v=c.length===0?n:n.slice(d);let p=v,h=!1;v.endsWith(Ne)?(p=v.slice(0,-1),h=!0):v.startsWith(Ne)&&(p=v.slice(1),h=!0);const k=x&&x>d?x-d:void 0;return Ge(c,h,p,k)};if(r){const n=r+De,c=s;s=l=>l.startsWith(n)?c(l.slice(n.length)):Ge(Gt,!1,l,void 0,!0)}if(a){const n=s;s=c=>a({className:c,parseClassName:n})}return s},Bt=e=>{const r=new Map;return e.orderSensitiveModifiers.forEach((a,s)=>{r.set(a,1e6+s)}),a=>{const s=[];let n=[];for(let c=0;c<a.length;c++){const l=a[c],i=l[0]==="[",d=r.has(l);i||d?(n.length>0&&(n.sort(),s.push(...n),n=[]),s.push(l)):n.push(l)}return n.length>0&&(n.sort(),s.push(...n)),s}},Ut=e=>({cache:Dt(e.cacheSize),parseClassName:Wt(e),sortModifiers:Bt(e),...$t(e)}),Ft=/\s+/,Vt=(e,r)=>{const{parseClassName:a,getClassGroupId:s,getConflictingClassGroupIds:n,sortModifiers:c}=r,l=[],i=e.trim().split(Ft);let d="";for(let x=i.length-1;x>=0;x-=1){const m=i[x],{isExternal:v,modifiers:p,hasImportantModifier:h,baseClassName:k,maybePostfixModifierPosition:y}=a(m);if(v){d=m+(d.length>0?" "+d:d);continue}let w=!!y,L=s(w?k.substring(0,y):k);if(!L){if(!w){d=m+(d.length>0?" "+d:d);continue}if(L=s(k),!L){d=m+(d.length>0?" "+d:d);continue}w=!1}const N=p.length===0?"":p.length===1?p[0]:c(p).join(":"),M=h?N+Ne:N,$=M+L;if(l.indexOf($)>-1)continue;l.push($);const S=n(L,w);for(let z=0;z<S.length;++z){const W=S[z];l.push(M+W)}d=m+(d.length>0?" "+d:d)}return d},Ht=(...e)=>{let r=0,a,s,n="";for(;r<e.length;)(a=e[r++])&&(s=We(a))&&(n&&(n+=" "),n+=s);return n},We=e=>{if(typeof e=="string")return e;let r,a="";for(let s=0;s<e.length;s++)e[s]&&(r=We(e[s]))&&(a&&(a+=" "),a+=r);return a},Yt=(e,...r)=>{let a,s,n,c;const l=d=>{const x=r.reduce((m,v)=>v(m),e());return a=Ut(x),s=a.cache.get,n=a.cache.set,c=i,i(d)},i=d=>{const x=s(d);if(x)return x;const m=Vt(d,a);return n(d,m),m};return c=l,(...d)=>c(Ht(...d))},Zt=[],K=e=>{const r=a=>a[e]||Zt;return r.isThemeGetter=!0,r},Be=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ue=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Xt=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,qt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Kt=/\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$/,Jt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Qt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,er=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ne=e=>Xt.test(e),O=e=>!!e&&!Number.isNaN(Number(e)),le=e=>!!e&&Number.isInteger(Number(e)),Se=e=>e.endsWith("%")&&O(e.slice(0,-1)),ae=e=>qt.test(e),Fe=()=>!0,tr=e=>Kt.test(e)&&!Jt.test(e),Ee=()=>!1,rr=e=>Qt.test(e),sr=e=>er.test(e),or=e=>!C(e)&&!j(e),ar=e=>ie(e,qe,Ee),C=e=>Be.test(e),ce=e=>ie(e,Ke,tr),Ve=e=>ie(e,fr,O),nr=e=>ie(e,Qe,Fe),lr=e=>ie(e,Je,Ee),He=e=>ie(e,Ze,Ee),ir=e=>ie(e,Xe,sr),ye=e=>ie(e,et,rr),j=e=>Ue.test(e),be=e=>de(e,Ke),cr=e=>de(e,Je),Ye=e=>de(e,Ze),dr=e=>de(e,qe),ur=e=>de(e,Xe),ve=e=>de(e,et,!0),mr=e=>de(e,Qe,!0),ie=(e,r,a)=>{const s=Be.exec(e);return s?s[1]?r(s[1]):a(s[2]):!1},de=(e,r,a=!1)=>{const s=Ue.exec(e);return s?s[1]?r(s[1]):a:!1},Ze=e=>e==="position"||e==="percentage",Xe=e=>e==="image"||e==="url",qe=e=>e==="length"||e==="size"||e==="bg-size",Ke=e=>e==="length",fr=e=>e==="number",Je=e=>e==="family-name",Qe=e=>e==="number"||e==="weight",et=e=>e==="shadow",br=Yt(()=>{const e=K("color"),r=K("font"),a=K("text"),s=K("font-weight"),n=K("tracking"),c=K("leading"),l=K("breakpoint"),i=K("container"),d=K("spacing"),x=K("radius"),m=K("shadow"),v=K("inset-shadow"),p=K("text-shadow"),h=K("drop-shadow"),k=K("blur"),y=K("perspective"),w=K("aspect"),L=K("ease"),N=K("animate"),M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...$(),j,C],z=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],b=()=>[j,C,d],I=()=>[ne,"full","auto",...b()],H=()=>[le,"none","subgrid",j,C],X=()=>["auto",{span:["full",le,j,C]},le,j,C],Q=()=>[le,"auto",j,C],te=()=>["auto","min","max","fr",j,C],ee=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],F=()=>["start","end","center","stretch","center-safe","end-safe"],Y=()=>["auto",...b()],q=()=>[ne,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...b()],Z=()=>[ne,"screen","full","dvw","lvw","svw","min","max","fit",...b()],J=()=>[ne,"screen","full","lh","dvh","lvh","svh","min","max","fit",...b()],o=()=>[e,j,C],u=()=>[...$(),Ye,He,{position:[j,C]}],g=()=>["no-repeat",{repeat:["","x","y","space","round"]}],A=()=>["auto","cover","contain",dr,ar,{size:[j,C]}],E=()=>[Se,be,ce],T=()=>["","none","full",x,j,C],D=()=>["",O,be,ce],B=()=>["solid","dashed","dotted","double"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>[O,Se,Ye,He],U=()=>["","none",k,j,C],se=()=>["none",O,j,C],ue=()=>["none",O,j,C],ge=()=>[O,j,C],ke=()=>[ne,"full",...b()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ae],breakpoint:[ae],color:[Fe],container:[ae],"drop-shadow":[ae],ease:["in","out","in-out"],font:[or],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ae],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ae],shadow:[ae],spacing:["px",O],text:[ae],"text-shadow":[ae],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ne,C,j,w]}],container:["container"],columns:[{columns:[O,C,j,i]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{"inset-s":I(),start:I()}],end:[{"inset-e":I(),end:I()}],"inset-bs":[{"inset-bs":I()}],"inset-be":[{"inset-be":I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[le,"auto",j,C]}],basis:[{basis:[ne,"full","auto",i,...b()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[O,ne,"auto","initial","none",C]}],grow:[{grow:["",O,j,C]}],shrink:[{shrink:["",O,j,C]}],order:[{order:[le,"first","last","none",j,C]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:[...ee(),"normal"]}],"justify-items":[{"justify-items":[...F(),"normal"]}],"justify-self":[{"justify-self":["auto",...F()]}],"align-content":[{content:["normal",...ee()]}],"align-items":[{items:[...F(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...F(),{baseline:["","last"]}]}],"place-content":[{"place-content":ee()}],"place-items":[{"place-items":[...F(),"baseline"]}],"place-self":[{"place-self":["auto",...F()]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pbs:[{pbs:b()}],pbe:[{pbe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:Y()}],mx:[{mx:Y()}],my:[{my:Y()}],ms:[{ms:Y()}],me:[{me:Y()}],mbs:[{mbs:Y()}],mbe:[{mbe:Y()}],mt:[{mt:Y()}],mr:[{mr:Y()}],mb:[{mb:Y()}],ml:[{ml:Y()}],"space-x":[{"space-x":b()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":b()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],"inline-size":[{inline:["auto",...Z()]}],"min-inline-size":[{"min-inline":["auto",...Z()]}],"max-inline-size":[{"max-inline":["none",...Z()]}],"block-size":[{block:["auto",...J()]}],"min-block-size":[{"min-block":["auto",...J()]}],"max-block-size":[{"max-block":["none",...J()]}],w:[{w:[i,"screen",...q()]}],"min-w":[{"min-w":[i,"screen","none",...q()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[l]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",a,be,ce]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,mr,nr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Se,C]}],"font-family":[{font:[cr,lr,r]}],"font-features":[{"font-features":[C]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,j,C]}],"line-clamp":[{"line-clamp":[O,"none",j,Ve]}],leading:[{leading:[c,...b()]}],"list-image":[{"list-image":["none",j,C]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",j,C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:o()}],"text-color":[{text:o()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:[O,"from-font","auto",j,ce]}],"text-decoration-color":[{decoration:o()}],"underline-offset":[{"underline-offset":[O,"auto",j,C]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",j,C]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",j,C]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:u()}],"bg-repeat":[{bg:g()}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},le,j,C],radial:["",j,C],conic:[le,j,C]},ur,ir]}],"bg-color":[{bg:o()}],"gradient-from-pos":[{from:E()}],"gradient-via-pos":[{via:E()}],"gradient-to-pos":[{to:E()}],"gradient-from":[{from:o()}],"gradient-via":[{via:o()}],"gradient-to":[{to:o()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-bs":[{"border-bs":D()}],"border-w-be":[{"border-be":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":D()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...B(),"hidden","none"]}],"divide-style":[{divide:[...B(),"hidden","none"]}],"border-color":[{border:o()}],"border-color-x":[{"border-x":o()}],"border-color-y":[{"border-y":o()}],"border-color-s":[{"border-s":o()}],"border-color-e":[{"border-e":o()}],"border-color-bs":[{"border-bs":o()}],"border-color-be":[{"border-be":o()}],"border-color-t":[{"border-t":o()}],"border-color-r":[{"border-r":o()}],"border-color-b":[{"border-b":o()}],"border-color-l":[{"border-l":o()}],"divide-color":[{divide:o()}],"outline-style":[{outline:[...B(),"none","hidden"]}],"outline-offset":[{"outline-offset":[O,j,C]}],"outline-w":[{outline:["",O,be,ce]}],"outline-color":[{outline:o()}],shadow:[{shadow:["","none",m,ve,ye]}],"shadow-color":[{shadow:o()}],"inset-shadow":[{"inset-shadow":["none",v,ve,ye]}],"inset-shadow-color":[{"inset-shadow":o()}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:o()}],"ring-offset-w":[{"ring-offset":[O,ce]}],"ring-offset-color":[{"ring-offset":o()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":o()}],"text-shadow":[{"text-shadow":["none",p,ve,ye]}],"text-shadow-color":[{"text-shadow":o()}],opacity:[{opacity:[O,j,C]}],"mix-blend":[{"mix-blend":[...G(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":G()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[O]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":o()}],"mask-image-linear-to-color":[{"mask-linear-to":o()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":o()}],"mask-image-t-to-color":[{"mask-t-to":o()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":o()}],"mask-image-r-to-color":[{"mask-r-to":o()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":o()}],"mask-image-b-to-color":[{"mask-b-to":o()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":o()}],"mask-image-l-to-color":[{"mask-l-to":o()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":o()}],"mask-image-x-to-color":[{"mask-x-to":o()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":o()}],"mask-image-y-to-color":[{"mask-y-to":o()}],"mask-image-radial":[{"mask-radial":[j,C]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":o()}],"mask-image-radial-to-color":[{"mask-radial-to":o()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":$()}],"mask-image-conic-pos":[{"mask-conic":[O]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":o()}],"mask-image-conic-to-color":[{"mask-conic-to":o()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:u()}],"mask-repeat":[{mask:g()}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",j,C]}],filter:[{filter:["","none",j,C]}],blur:[{blur:U()}],brightness:[{brightness:[O,j,C]}],contrast:[{contrast:[O,j,C]}],"drop-shadow":[{"drop-shadow":["","none",h,ve,ye]}],"drop-shadow-color":[{"drop-shadow":o()}],grayscale:[{grayscale:["",O,j,C]}],"hue-rotate":[{"hue-rotate":[O,j,C]}],invert:[{invert:["",O,j,C]}],saturate:[{saturate:[O,j,C]}],sepia:[{sepia:["",O,j,C]}],"backdrop-filter":[{"backdrop-filter":["","none",j,C]}],"backdrop-blur":[{"backdrop-blur":U()}],"backdrop-brightness":[{"backdrop-brightness":[O,j,C]}],"backdrop-contrast":[{"backdrop-contrast":[O,j,C]}],"backdrop-grayscale":[{"backdrop-grayscale":["",O,j,C]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[O,j,C]}],"backdrop-invert":[{"backdrop-invert":["",O,j,C]}],"backdrop-opacity":[{"backdrop-opacity":[O,j,C]}],"backdrop-saturate":[{"backdrop-saturate":[O,j,C]}],"backdrop-sepia":[{"backdrop-sepia":["",O,j,C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",j,C]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[O,"initial",j,C]}],ease:[{ease:["linear","initial",L,j,C]}],delay:[{delay:[O,j,C]}],animate:[{animate:["none",N,j,C]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,j,C]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:se()}],"rotate-x":[{"rotate-x":se()}],"rotate-y":[{"rotate-y":se()}],"rotate-z":[{"rotate-z":se()}],scale:[{scale:ue()}],"scale-x":[{"scale-x":ue()}],"scale-y":[{"scale-y":ue()}],"scale-z":[{"scale-z":ue()}],"scale-3d":["scale-3d"],skew:[{skew:ge()}],"skew-x":[{"skew-x":ge()}],"skew-y":[{"skew-y":ge()}],transform:[{transform:[j,C,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ke()}],"translate-x":[{"translate-x":ke()}],"translate-y":[{"translate-y":ke()}],"translate-z":[{"translate-z":ke()}],"translate-none":["translate-none"],accent:[{accent:o()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:o()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",j,C]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mbs":[{"scroll-mbs":b()}],"scroll-mbe":[{"scroll-mbe":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pbs":[{"scroll-pbs":b()}],"scroll-pbe":[{"scroll-pbe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"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",j,C]}],fill:[{fill:["none",...o()]}],"stroke-w":[{stroke:[O,be,ce,Ve]}],stroke:[{stroke:["none",...o()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function tt(e){var r,a,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(r=0;r<n;r++)e[r]&&(a=tt(e[r]))&&(s&&(s+=" "),s+=a)}else for(a in e)e[a]&&(s&&(s+=" "),s+=a);return s}function pr(){for(var e,r,a=0,s="",n=arguments.length;a<n;a++)(e=arguments[a])&&(r=tt(e))&&(s&&(s+=" "),s+=r);return s}function _(...e){return br(pr(e))}const gr={sm:"w-16 h-16",md:"w-24 h-24",lg:"w-32 h-32",xl:"w-40 h-40"},rt=({progress:e,size:r="md",radius:a=20,className:s="",children:n,ariaLabel:c})=>{const l=2*Math.PI*a,i=l/2,d=i*(1-e/100),x=i*(1-e/100);return t.jsxs("div",{className:_("relative",gr[r],s),role:"progressbar","aria-label":c||"Progress","aria-valuenow":Math.max(0,Math.min(100,e)),"aria-valuemin":0,"aria-valuemax":100,children:[t.jsxs("svg",{className:"w-full h-full overflow-visible",viewBox:"0 0 50 50",children:[t.jsx("circle",{cx:"25",cy:"25",r:a,fill:"none",stroke:"var(--color-accent)",strokeWidth:"4",strokeLinecap:"butt",strokeDasharray:`${i*.98} ${l}`,strokeDashoffset:d,transform:"rotate(-90 25 25)",style:{filter:"drop-shadow(0 0 8px var(--color-accent))"}}),t.jsx("circle",{cx:"25",cy:"25",r:a,fill:"none",stroke:"var(--color-primary)",strokeWidth:"4",strokeLinecap:"butt",strokeDasharray:`${i*.98} ${l}`,strokeDashoffset:x,transform:"rotate(90 25 25)",style:{filter:"drop-shadow(0 0 8px var(--color-primary))"}})]}),n&&t.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:n})]})};rt.displayName="CyberUI.CircularProgress";const hr={SEGMENT_COUNT:20,SEGMENT_ANGLE:360/20,GAP_ANGLE:4,INNER_RADIUS:18.5,OUTER_RADIUS:23.5,OUTER_TICK_RADIUS:30},xr={sm:"w-16 h-16",md:"w-24 h-24",lg:"w-32 h-32",xl:"w-40 h-40"},yr=({progress:e,size:r="md",className:a,children:s})=>{const{SEGMENT_COUNT:n,SEGMENT_ANGLE:c,GAP_ANGLE:l,INNER_RADIUS:i,OUTER_RADIUS:d,OUTER_TICK_RADIUS:x}=hr,m=c-l;return t.jsxs("div",{className:_("relative",xr[r],a),children:[t.jsxs("svg",{className:"w-full h-full",viewBox:"0 0 60 60",style:{overflow:"visible"},children:[[...Array(60)].map((v,p)=>{const h=6*p,y=p%5===0?6:3,w=30+x*Math.cos(h*Math.PI/180),L=30+x*Math.sin(h*Math.PI/180),N=30+(x-y)*Math.cos(h*Math.PI/180),M=30+(x-y)*Math.sin(h*Math.PI/180);return t.jsx("line",{x1:w,y1:L,x2:N,y2:M,stroke:"var(--color-muted)",strokeWidth:1,strokeLinecap:"round",opacity:.7},`tick-${p}`)}),[...Array(n)].map((v,p)=>{const h=c*p-90+l/2,k=h+m,y=I=>I*Math.PI/180,w=30+i*Math.cos(y(h)),L=30+i*Math.sin(y(h)),N=30+d*Math.cos(y(h)),M=30+d*Math.sin(y(h)),$=30+d*Math.cos(y(k)),S=30+d*Math.sin(y(k)),z=30+i*Math.cos(y(k)),W=30+i*Math.sin(y(k)),b=p<Math.floor(e/5);return t.jsx("path",{d:`M ${w} ${L} L ${N} ${M} L ${$} ${S} L ${z} ${W} Z`,fill:b?"var(--color-accent)":"var(--color-border-default)",style:{filter:b?"drop-shadow(0 0 6px var(--color-accent))":"none",transition:"fill 0.3s ease"}},`segment-${p}`)})]}),s&&t.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:s})]})},vr={sm:"h-3",md:"h-5",lg:"h-7",xl:"h-9"},wr=({progress:e,segments:r=10,size:a="md",className:s})=>{const n=Math.round(Math.min(100,Math.max(0,e))/100*r);return t.jsx("div",{className:_("flex gap-1 w-full",s),children:[...Array(r)].map((c,l)=>{const i=l<n;return t.jsx("div",{className:_("flex-1 rounded-sm transition-all duration-300",vr[a]),style:{backgroundColor:i?"var(--color-accent)":"var(--color-border-default)",boxShadow:i?"0 0 6px var(--color-accent)":"none"}},l)})})},st=e=>e.variant==="block"?t.jsx(wr,{...e}):t.jsx(yr,{...e});st.displayName="CyberUI.SegmentedProgress";const ot=({progress:e,size:r="md",className:a=""})=>{const s=x=>V(x,re.linearProgress.width),n=x=>V(x,re.linearProgress.height),c=s(r),l=n(r),i=_("bg-surface rounded-full shadow-inner",l,a||c),d=_("bg-gradient-to-r from-accent to-primary rounded-full shadow-lg-accent transition-all duration-500 ease-out",l);return t.jsx("div",{className:i,role:"progressbar","aria-valuenow":Math.max(0,Math.min(100,e)),"aria-valuemin":0,"aria-valuemax":100,children:t.jsx("div",{className:d,style:{width:`${e}%`}})})};ot.displayName="CyberUI.LinearProgress";const Te=({type:e,title:r,message:a,size:s="md",onClose:n})=>{const c=v=>V(v,re.notification),i=(()=>{switch(e){case"success":return{container:"bg-linear-(--gradient-accent) shadow-lg-accent",textColor:"text-base",icon:t.jsx("svg",{className:"w-6 h-6 text-base",fill:"currentColor",viewBox:"0 0 20 20",children:t.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})})};case"warning":return{container:"bg-surface border-l-4 border-secondary shadow-lg",textColor:"text-default",icon:t.jsx("svg",{className:"w-6 h-6 text-secondary",fill:"currentColor",viewBox:"0 0 20 20",children:t.jsx("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})})};case"error":return{container:"bg-error shadow-error",textColor:"text-base",icon:t.jsx("svg",{className:"w-6 h-6 text-base",fill:"currentColor",viewBox:"0 0 20 20",children:t.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})};default:return{container:"bg-surface border-l-4 border-secondary shadow-lg",textColor:"text-default",icon:null}}})(),d=c(s),x=e==="error"?"alert":"status",m=e==="warning"?"hover:text-default/70":"hover:text-base/70";return t.jsxs("div",{className:`flex items-start rounded-lg ${d} ${i.container}`,role:x,"aria-atomic":"true",children:[t.jsx("div",{className:"flex-shrink-0",children:i.icon}),t.jsxs("div",{className:"flex-1",children:[t.jsx("h4",{className:`font-bold ${i.textColor}`,children:r}),t.jsx("p",{className:`${e==="success"||e==="error"?"text-base/80":"text-muted"} text-sm mt-1`,children:a})]}),n&&t.jsx("button",{className:`flex-shrink-0 ${i.textColor} ${m} transition-colors cursor-pointer`,onClick:n,"aria-label":"Close notification",children:t.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",children:t.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})})]})};Te.displayName="CyberUI.Notification";const we=({variant:e="primary",size:r="md",className:a="",disabled:s=!1,children:n,...c})=>{const l=["group","relative","overflow-hidden","rounded-lg","font-bold","uppercase","tracking-wider","transition-all","duration-300","ease-in-out","focus:outline-none",s?"cursor-not-allowed":"cursor-pointer"].join(" "),i=v=>V(v,re.button),d=(v,p)=>({primary:{enabled:"bg-linear-(--gradient-accent) text-base shadow-primary border-none hover:shadow-lg-accent hover:brightness-110 focus-visible:ring-2 focus-visible:ring-accent/50 active:scale-95",disabled:"bg-base border-2 border-accent/20 text-accent/40 shadow-none opacity-50"},secondary:{enabled:"bg-surface border-2 border-secondary text-secondary shadow-secondary/30 hover:bg-secondary hover:text-base hover:shadow-secondary focus-visible:ring-2 focus-visible:ring-secondary/50 active:scale-95",disabled:"bg-base border-2 border-secondary/20 text-secondary/40 shadow-none opacity-50"},danger:{enabled:"bg-surface border-2 border-error text-error shadow-error/30 hover:bg-error hover:text-base hover:shadow-error focus-visible:ring-2 focus-visible:ring-error/50 active:scale-95",disabled:"bg-base border-2 border-error/20 text-error/40 shadow-none opacity-50"},ghost:{enabled:"bg-surface border-2 border-accent text-accent shadow-secondary hover:bg-accent hover:text-base hover:shadow-lg-accent focus-visible:ring-2 focus-visible:ring-accent/50 active:scale-95",disabled:"bg-base border-2 border-accent/10 text-muted/60 shadow-none opacity-40"}})[v][p?"disabled":"enabled"],x=_(l,i(r),d(e,s),a),m=e==="primary"&&!s;return t.jsxs("button",{className:x,disabled:s,...c,children:[t.jsx("span",{className:"relative z-10",children:n}),m&&t.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-transparent via-white/20 to-transparent -translate-x-full group-hover:translate-x-full transition-transform duration-700"}),s&&t.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-transparent via-base/10 to-transparent pointer-events-none"})]})};we.displayName="CyberUI.Button";const at=({variant:e="primary",size:r="md",label:a,helperText:s,error:n,leftIcon:c,rightIcon:l,className:i="",disabled:d=!1,...x})=>{const m=f.useId(),v=x.id||m,p=["w-full","rounded-lg","bg-surface","text-default","placeholder-muted","transition-all","duration-300","focus:outline-none",d?"cursor-not-allowed opacity-60":"cursor-text"].join(" "),h=$=>V($,re.input),k=$=>{const S=h($);return c&&l?`pl-10 pr-10 ${S}`:c?`pl-10 pr-4 ${S}`:l?`pl-4 pr-10 ${S}`:`px-4 ${S}`},y=($,S,z)=>S?"border-2 border-error shadow-error/30 hover:shadow-error focus:ring-2 focus:ring-error focus:shadow-error active:bg-base":z?{primary:"border-2 border-accent/20 shadow-none",secondary:"border-2 border-secondary/20 shadow-none",danger:"border-2 border-error/20 shadow-none",ghost:"border border-border-default shadow-none"}[$]:{primary:"border-2 border-accent shadow-input-accent hover:shadow-lg-accent focus:ring-2 focus:ring-accent focus:shadow-lg-accent active:bg-base",secondary:"border-2 border-secondary shadow-secondary/30 hover:shadow-secondary focus:ring-2 focus:ring-secondary focus:shadow-secondary active:bg-base",danger:"border-2 border-error shadow-error/30 hover:shadow-error focus:ring-2 focus:ring-error focus:shadow-error active:bg-base",ghost:"border border-border-default shadow-none hover:border-accent focus:ring-2 focus:ring-accent focus:border-accent active:bg-base"}[$],w=$=>({primary:"text-accent",secondary:"text-secondary",danger:"text-error",ghost:"text-muted"})[$],L=_(p,k(r),y(e,!!n,d),i),N=w(e),M=n?`${v}-error`:s?`${v}-help`:void 0;return t.jsxs("div",{className:"space-y-2",children:[a&&t.jsx("label",{htmlFor:v,className:"block text-sm font-medium text-default",children:a}),t.jsxs("div",{className:"relative",children:[c&&t.jsx("div",{className:`absolute inset-y-0 left-0 flex items-center pl-3 ${N}`,children:c}),t.jsx("input",{className:L,disabled:d,id:v,"aria-invalid":!!n,"aria-describedby":M,...x}),l&&t.jsx("div",{className:`absolute inset-y-0 right-0 flex items-center pr-3 ${N}`,children:l})]}),(s||n)&&t.jsx("div",{id:n?`${v}-error`:`${v}-help`,className:`text-xs font-mono ${n?"text-error":"text-muted"}`,children:n||s})]})};at.displayName="CyberUI.Input";const nt=({variant:e="default",size:r="md",title:a,titleBorder:s=!0,children:n,className:c="",...l})=>{const i=m=>V(m,re.card),d=m=>{const v=i(r);return{default:`bg-base border border-border-default rounded-xl text-primary ${v}`,accent:`bg-surface border-2 border-accent rounded-xl shadow-input-accent/50 hover:shadow-lg-accent transition-all duration-300 transform text-primary ${v}`,small:`bg-base rounded-lg border border-border-default text-primary ${v}`}[m]},x=m=>m?"text-xl font-semibold text-secondary mb-4 border-b border-accent pb-2":"text-xl font-semibold text-secondary mb-4";return t.jsxs("div",{className:_(d(e),c),...l,children:[a&&t.jsx("h3",{className:x(s),children:a}),n]})};nt.displayName="CyberUI.Card";const lt=({variant:e="primary",size:r="md",children:a,className:s="",leftIcon:n,rightIcon:c,clickable:l=!1,onClick:i,...d})=>{const x=p=>V(p,re.badge),m=p=>({primary:"bg-primary shadow-lg",secondary:"bg-secondary shadow-lg",accent:"bg-accent shadow-lg",success:"bg-success shadow-lg",error:"bg-error shadow-lg",warning:"bg-warning shadow-lg"})[p],v=(p,h)=>!h&&!i?"transition-shadow":{primary:"hover:shadow-primary transition-shadow cursor-pointer",secondary:"hover:shadow-secondary transition-shadow cursor-pointer",accent:"hover:shadow-lg-accent transition-shadow cursor-pointer",success:"hover:shadow-success transition-shadow cursor-pointer",error:"hover:shadow-error transition-shadow cursor-pointer",warning:"hover:shadow-warning transition-shadow cursor-pointer"}[p];return t.jsxs("span",{className:_("inline-flex items-center rounded-full font-semibold",x(r),m(e),v(e,l||!!i),s),onClick:i,...d,children:[n,t.jsx("span",{children:a}),c]})};lt.displayName="CyberUI.Badge";const it=({label:e,size:r="md",variant:a="primary",className:s="",checked:n=!1,onChange:c,disabled:l=!1,id:i,...d})=>{const x=y=>{l||c&&c(y.target.checked)},m=y=>V(y,{sm:"w-10 h-5 after:h-4 after:w-4",md:"w-14 h-7 after:h-6 after:w-6",lg:"w-16 h-8 after:h-7 after:w-7"}),v=(y,w)=>{if(w)return"bg-gray-600 peer-checked:bg-gray-500 opacity-50 cursor-not-allowed";const L={primary:"bg-gray-600 peer-checked:bg-linear-(--gradient-accent) peer-focus:ring-primary",secondary:"bg-gray-600 peer-checked:bg-secondary peer-focus:ring-secondary",accent:"bg-gray-600 peer-checked:bg-accent peer-focus:ring-accent"};return L[y]||L.primary},p=_("relative inline-flex items-center",l?"cursor-not-allowed opacity-50":"cursor-pointer"),h=_(m(r),v(a,l),"peer-focus:outline-none rounded-full peer","peer-checked:after:translate-x-full peer-checked:after:border-white","after:content-[''] after:absolute after:top-[2px] after:left-[2px]","after:bg-white after:rounded-full after:transition-all","transition-colors duration-300"),k=_("flex items-center justify-between",e&&"space-x-3",s);return t.jsxs("div",{className:k,children:[e&&t.jsx("label",{htmlFor:i,className:`text-default font-medium ${l?"text-muted opacity-50":"cursor-pointer"}`,children:e}),t.jsxs("label",{className:p,children:[t.jsx("input",{type:"checkbox",className:"sr-only peer",checked:n,onChange:x,disabled:l,id:i,...d}),t.jsx("div",{className:h})]})]})};it.displayName="CyberUI.Toggle";const ct=({label:e,size:r="md",variant:a="primary",options:s,placeholder:n,helperText:c,error:l,className:i="",disabled:d=!1,id:x,name:m,onValueChange:v,onChange:p,...h})=>{const k=b=>{p?.(b),v?.(b.target.value)},y=f.useId(),w=x||y,L=m||w,N=b=>V(b,re.input),M=(b,I,H)=>{if(I)return"bg-base border-2 border-border-default/30 text-muted/50 cursor-not-allowed opacity-50";if(H)return"bg-surface border-2 border-error text-default focus:ring-2 focus:ring-error focus:border-error shadow-error";const X={primary:"bg-surface border-2 border-border-default text-default focus:ring-2 focus:ring-primary focus:border-primary shadow-primary",secondary:"bg-surface border-2 border-secondary text-default focus:ring-2 focus:ring-secondary focus:border-secondary shadow-secondary/30",danger:"bg-surface border-2 border-error text-default focus:ring-2 focus:ring-error focus:border-error shadow-error/30",ghost:"bg-base border-2 border-accent/20 text-default focus:ring-2 focus:ring-accent focus:border-accent shadow-secondary"};return X[b]||X.primary},$=_("appearance-none w-full rounded-lg font-mono transition-all duration-300 focus:outline-none px-4 pr-10",N(r),M(a,d,!!l),i),S="relative w-full",z=_("block text-sm font-medium mb-2 transition-colors duration-200",d?"text-muted opacity-50":l?"text-error":"text-default"),W=_("mt-2 text-xs transition-colors duration-200",l?"text-error":"text-muted");return t.jsxs("div",{className:"w-full",children:[e&&t.jsx("label",{htmlFor:w,className:z,children:e}),t.jsxs("div",{className:S,children:[t.jsxs("select",{className:$,disabled:d,id:w,name:L,onChange:k,...h,children:[n&&t.jsx("option",{value:"",disabled:!0,children:n}),s.map(b=>t.jsx("option",{value:b.value,disabled:b.disabled,className:"bg-surface text-default",children:b.label},b.value))]}),t.jsx("div",{className:`pointer-events-none absolute inset-y-0 right-0 flex items-center px-3 ${d?"text-muted/50":l?"text-error":"text-accent"}`,children:t.jsx("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 20 20",children:t.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})})]}),(c||l)&&t.jsx("div",{className:W,children:l||c})]})};ct.displayName="CyberUI.Select";const dt=({variant:e="text",size:r="md",width:a,height:s,className:n="",lines:c=3,animate:l=!0})=>{const d=_("bg-gray-600",l&&"animate-pulse",(m=>V(m,re.skeleton))(r),n),x=()=>{const m={};return a&&(m.width=typeof a=="number"?`${a}px`:a),s&&(m.height=typeof s=="number"?`${s}px`:s),m};if(e==="text")return t.jsx("div",{className:`space-y-3 ${n}`,children:Array.from({length:c}).map((m,v)=>{const h=v===c-1?"w-2/3":v%2===0?"w-full":"w-5/6";return t.jsx("div",{className:`h-3 rounded ${d} ${h}`,style:x()},v)})});if(e==="circular"){const m=r==="sm"?"h-12 w-12":r==="lg"?"h-20 w-20":"h-16 w-16";return t.jsx("div",{className:`rounded-full ${d} ${m}`,style:x()})}if(e==="rectangular"){const m=r==="sm"?"h-20":r==="lg"?"h-40":"h-32";return t.jsx("div",{className:`rounded-lg ${d} w-full ${m}`,style:x()})}if(e==="avatar-text"){const m=r==="sm"?"h-12 w-12":r==="lg"?"h-20 w-20":"h-16 w-16";return t.jsxs("div",{className:`flex items-center space-x-4 ${n}`,children:[t.jsx("div",{className:`rounded-full ${d} ${m}`}),t.jsxs("div",{className:"flex-1 space-y-3",children:[t.jsx("div",{className:`h-4 rounded w-3/4 ${d}`}),t.jsx("div",{className:`h-3 rounded w-1/2 ${d}`})]})]})}if(e==="button-group"){const m=r==="sm"?"h-8":r==="lg"?"h-12":"h-10";return t.jsxs("div",{className:`flex space-x-4 ${n}`,children:[t.jsx("div",{className:`${m} rounded w-20 ${d}`}),t.jsx("div",{className:`${m} rounded w-24 ${d}`})]})}if(e==="card"){const m=r==="sm"?"p-4":r==="lg"?"p-8":"p-6";return t.jsx("div",{className:`border border-border-default rounded-lg bg-surface ${m} space-y-4 ${n}`,children:l&&t.jsxs("div",{className:"animate-pulse space-y-4",children:[t.jsxs("div",{className:"flex items-center space-x-4",children:[t.jsx("div",{className:`rounded-full ${d} h-16 w-16`}),t.jsxs("div",{className:"flex-1 space-y-3",children:[t.jsx("div",{className:`h-4 rounded w-3/4 ${d}`}),t.jsx("div",{className:`h-3 rounded w-1/2 ${d}`})]})]}),t.jsxs("div",{className:"space-y-3",children:[t.jsx("div",{className:`h-3 rounded ${d}`}),t.jsx("div",{className:`h-3 rounded w-5/6 ${d}`}),t.jsx("div",{className:`h-3 rounded w-4/6 ${d}`})]}),t.jsxs("div",{className:"flex space-x-4 pt-4",children:[t.jsx("div",{className:`h-8 rounded w-20 ${d}`}),t.jsx("div",{className:`h-8 rounded w-24 ${d}`})]})]})})}return t.jsx("div",{className:`h-4 rounded ${d} w-full`,style:x()})};dt.displayName="CyberUI.Skeleton";const kr={openDuration:50,closeDuration:350,cyberpunkEffects:!0},pe=f.memo(({src:e,alt:r,size:a="md",preview:s=!0,fallback:n,placeholder:c,className:l="",animation:i,eager:d=!1,previewClassName:x="",onPreviewOpen:m,onPreviewClose:v,onLoad:p,onError:h,...k})=>{const y={...kr,...i},[w,L]=f.useState(!1),[N,M]=f.useState(!1),[$,S]=f.useState(!1),[z,W]=f.useState(!0),[b,I]=f.useState(!1),[H,X]=f.useState(!1),Q=f.useRef(null),te=f.useRef(null),ee=f.useCallback(E=>V(E,re.card),[]),F=f.useCallback(E=>{W(!1),I(!1),p?.(E)},[p]),Y=f.useCallback(E=>{W(!1),n&&!H?(X(!0),I(!1)):I(!0),h?.(E)},[h,n,H]),q=f.useCallback(()=>{s&&!b&&(S(!0),L(!0),m?.(),setTimeout(()=>{S(!1)},y.openDuration))},[s,b,m,y.openDuration]),Z=f.useCallback(()=>{M(!0),v?.(),setTimeout(()=>{L(!1),M(!1)},y.closeDuration)},[v,y.closeDuration]),J=f.useCallback(E=>{(E.target===Q.current||E.target===E.currentTarget)&&Z()},[Z]),o=f.useCallback(E=>{E.key==="Escape"&&Z()},[Z]);f.useEffect(()=>{if(w){document.addEventListener("keydown",o);const E=document.body.style.overflow,T=document.documentElement.style.scrollbarGutter,D=document.body.style.paddingRight,B=window.innerWidth-document.documentElement.clientWidth;return document.body.style.overflow="hidden",document.body.style.paddingRight=`${B}px`,document.documentElement.style.scrollbarGutter="auto",()=>{document.removeEventListener("keydown",o),document.body.style.overflow=E,document.body.style.paddingRight=D,document.documentElement.style.scrollbarGutter=T}}},[w,o]);const u=f.useMemo(()=>_("relative rounded-lg overflow-hidden border-2 border-accent/30 transition-all duration-300 ease-in-out transform flex justify-center content-center",s&&!b?"cursor-pointer hover:scale-105 hover:border-accent hover:shadow-lg-accent focus:outline-none focus:ring-4 focus:ring-accent/50":"",ee(a),l),[s,b,ee,a,l]),g=f.useMemo(()=>({role:s?"button":"img",tabIndex:s&&!b?0:-1,"aria-label":s?`${r}. Click to enlarge`:r,"aria-expanded":s?w:void 0,onKeyDown:s&&!b?E=>{(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),q())}:void 0}),[s,b,r,w,q]),A=f.useMemo(()=>t.jsxs("div",{className:u,onClick:q,...g,children:[z&&t.jsx("div",{className:"absolute m-0 inset-0 flex items-center justify-center bg-surface border-2 border-accent/20",role:"status","aria-label":"Loading image",children:c||t.jsx("div",{className:"animate-pulse bg-gradient-to-r from-accent/20 to-secondary/20 w-full h-full flex items-center justify-center",children:t.jsx("div",{className:"text-muted text-sm",children:"Loading..."})})}),b?t.jsx("div",{className:"flex items-center justify-center bg-surface border-2 border-error/30 text-error p-4 rounded-lg min-h-[100px]",role:"alert","aria-label":"Failed to load image",children:t.jsxs("div",{className:"text-center",children:[t.jsx("div",{className:"text-2xl mb-2","aria-hidden":"true",children:"⚠"}),t.jsx("div",{className:"text-sm",children:"Failed to load image"})]})}):H?t.jsx("img",{ref:te,src:n,alt:`${r} (fallback)`,className:"w-full h-full m-0 object-cover transition-opacity duration-300",style:{opacity:z?0:1},onLoad:F,onError:()=>{I(!0),X(!1)},loading:d?"eager":"lazy",decoding:"async",...k}):t.jsx("img",{ref:te,src:e,alt:r,className:"w-full h-full m-0 object-cover transition-opacity duration-300",style:{opacity:z?0:1},onLoad:F,onError:Y,loading:d?"eager":"lazy",decoding:"async",...k}),s&&!z&&!b&&t.jsx("div",{className:"absolute inset-0 bg-black/0 hover:bg-black/20 transition-all duration-300 flex items-center justify-center opacity-0 hover:opacity-100","aria-hidden":"true",children:t.jsx("div",{className:"bg-accent/90 text-base px-3 py-1 rounded-md text-sm font-semibold tracking-wider uppercase",children:"Preview"})})]}),[u,q,g,z,c,b,H,n,r,F,d,k,e,Y,s]);return t.jsxs(t.Fragment,{children:[A,w&&_e.createPortal(t.jsxs("div",{ref:Q,className:`fixed z-50 flex items-center justify-center p-4 transition-all ease-out ${x} ${N?"bg-black/0 backdrop-blur-none opacity-0 duration-300":$?"bg-black/80 backdrop-blur-sm opacity-100 duration-500":"bg-black/80 backdrop-blur-sm opacity-100 duration-300"}`,style:{top:0,left:0,width:"100vw",height:"100vh",maxWidth:"none"},onClick:J,role:"dialog","aria-modal":"true","aria-label":`Preview: ${r}`,children:[y.cyberpunkEffects&&t.jsx("div",{className:`absolute transition-opacity duration-300 ${N?"opacity-0":"opacity-20"}`,style:{top:0,left:0,width:"100vw",height:"100vh"},"aria-hidden":"true",children:t.jsx("div",{className:"absolute",style:{top:0,left:0,width:"100vw",height:"100vh",backgroundImage:`
30
30
  linear-gradient(rgba(0, 255, 136, 0.3) 1px, transparent 1px),
31
31
  linear-gradient(90deg, rgba(0, 255, 136, 0.3) 1px, transparent 1px)
32
- `,backgroundSize:"40px 40px"}})}),t.jsxs("div",{className:"relative w-full h-full flex items-center justify-center",onClick:J,children:[t.jsx("button",{onClick:Z,className:`absolute top-4 right-4 text-white hover:text-accent/80 transition-all duration-300 font-bold z-20 rounded-full w-10 h-10 flex items-center justify-center cursor-pointer transform ${N?"bg-black/0 scale-50 rotate-180 opacity-0":$?"bg-black/50 scale-0 rotate-0 opacity-0 duration-500":"bg-black/50 hover:bg-accent/20 scale-100 rotate-0 opacity-100 hover:scale-110"}`,style:{lineHeight:"1"},children:t.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",className:"relative",children:[t.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"absolute inset-0 text-accent opacity-0 hover:opacity-100 transition-opacity duration-200 animate-pulse"})]})}),t.jsxs("div",{className:`relative max-w-full max-h-full flex items-center justify-center transition-all ease-out ${N?"scale-75 opacity-0 rotate-1 duration-300":$?"scale-95 opacity-0 rotate-0 duration-500":"scale-100 opacity-100 rotate-0 duration-300"}`,onClick:E=>E.stopPropagation(),children:[y.cyberpunkEffects&&t.jsx("div",{className:`absolute inset-0 rounded-lg border-2 transition-all duration-300 ${N?"border-transparent shadow-none":"border-accent shadow-lg-accent animate-pulse"}`,"aria-hidden":"true"}),y.cyberpunkEffects&&t.jsx("div",{className:`absolute inset-0 overflow-hidden rounded-lg transition-opacity duration-300 z-10 ${N?"opacity-0":"opacity-100"}`,"aria-hidden":"true",children:t.jsxs("div",{className:"absolute top-0 left-0 w-full h-px animate-scan opacity-20",children:[t.jsx("div",{className:"w-full h-full bg-gradient-to-r from-transparent via-accent to-transparent shadow-lg-accent opacity-80"}),t.jsx("div",{className:"absolute inset-0 w-full h-full bg-gradient-to-r from-transparent via-white to-transparent opacity-60"})]})}),t.jsx("img",{src:U?n:e,alt:U?`${r} (fallback)`:r,className:`max-w-[95vw] max-h-[95vh] w-auto h-auto object-contain rounded-lg transition-all duration-300 ease-out ${N?"filter blur-sm brightness-50":"filter blur-0 brightness-100"}`,style:{maxWidth:"95vw",maxHeight:"95vh",width:"auto",height:"auto"}}),t.jsx("div",{className:`absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/80 via-black/40 to-transparent p-3 rounded-b-lg transition-all duration-300 ${N?"translate-y-4 opacity-0":"translate-y-0 opacity-100"}`,children:t.jsxs("p",{className:"text-white text-sm font-medium truncate relative",children:[U?`${r} (fallback)`:r,y.cyberpunkEffects&&t.jsx("span",{className:"absolute inset-0 text-accent opacity-20 animate-pulse",children:U?`${r} (fallback)`:r})]})}),y.cyberpunkEffects&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:`absolute top-2 left-2 w-4 h-4 border-l-2 border-t-2 border-accent transition-all duration-300 ${N?"opacity-0 scale-0":"opacity-60 scale-100"}`,"aria-hidden":"true"}),t.jsx("div",{className:`absolute top-2 right-2 w-4 h-4 border-r-2 border-t-2 border-accent transition-all duration-300 ${N?"opacity-0 scale-0":"opacity-60 scale-100"}`,"aria-hidden":"true"}),t.jsx("div",{className:`absolute bottom-2 left-2 w-4 h-4 border-l-2 border-b-2 border-accent transition-all duration-300 ${N?"opacity-0 scale-0":"opacity-60 scale-100"}`,"aria-hidden":"true"}),t.jsx("div",{className:`absolute bottom-2 right-2 w-4 h-4 border-r-2 border-b-2 border-accent transition-all duration-300 ${N?"opacity-0 scale-0":"opacity-60 scale-100"}`,"aria-hidden":"true"})]})]})]})]}),document.body)]})});pe.displayName="CyberUI.Image";const gr=({images:e,currentIndex:r,onChange:a,size:s="md",autoPlay:n=!0,interval:c=3e3,infinite:l=!0,transition:i="slide",objectFit:d="cover",showArrows:x=!0,showIndicators:f=!0,className:v="",disableImagePreview:p=!1,glitchRate:h=1,onBeforeChange:k,onAfterChange:y})=>{const[w,L]=m.useState(!1),[N,M]=m.useState(n),[$,S]=m.useState(!0),I=m.useMemo(()=>H(s,re.carousel),[s]),W="w-full h-full",b=m.useCallback(o=>{if(o===r||w)return;const u=i==="signal-glitch"&&(typeof h=="boolean"?h:Math.random()<h);S(u),L(!0),k?.(r,o),setTimeout(()=>{a(o),L(!1),y?.(o)},i==="slide"?0:i==="signal-glitch"&&u?600:250)},[r,w,a,k,y,i,h]);m.useEffect(()=>{if(!N||e.length<=1)return;const o=setInterval(()=>{const u=l?(r+1)%e.length:Math.min(r+1,e.length-1);if(!l&&u===e.length-1){M(!1);return}b(u)},c);return()=>clearInterval(o)},[N,r,e.length,l,c,b]);const P=m.useCallback(()=>{if(e.length<=1)return;const o=l?(r-1+e.length)%e.length:Math.max(r-1,0);M(!1),b(o)},[r,e.length,l,b]),U=m.useCallback(()=>{if(e.length<=1)return;const o=l?(r+1)%e.length:Math.min(r+1,e.length-1);M(!1),b(o)},[r,e.length,l,b]),X=m.useCallback(o=>{M(!1),b(o)},[b]);m.useEffect(()=>{const o=u=>{u.key==="ArrowLeft"&&P(),u.key==="ArrowRight"&&U()};return window.addEventListener("keydown",o),()=>window.removeEventListener("keydown",o)},[P,U]);const Q=()=>t.jsx("div",{className:"flex h-full transition-transform duration-500 ease-in-out",style:{transform:`translateX(-${r*100}%)`,willChange:"transform"},children:e.map((o,u)=>t.jsx("div",{className:"w-full h-full flex-shrink-0",children:t.jsx(pe,{src:o.src,alt:o.alt,fallback:o.fallbackSrc,className:W,size:"lg",preview:!p,loading:u<=1?"eager":"lazy",onPreviewOpen:()=>M(!1),onPreviewClose:()=>M(n)})},u))}),te=()=>t.jsx(t.Fragment,{children:e.map((o,u)=>{const g=u===r,A=i==="fade"?{opacity:g?1:0,transition:"opacity 500ms ease-in-out",willChange:"opacity"}:i==="matrix"?{opacity:g?1:0,transform:g?"scale(1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0) skew(0deg) perspective(1000px)":w?"scale(0.6) rotateX(35deg) rotateY(15deg) rotateZ(-3deg) translateZ(-80px) skew(5deg, 2deg) perspective(1000px)":"scale(0.92) rotateX(8deg) rotateY(2deg) translateZ(-20px) skew(1deg) perspective(1000px)",filter:g?"brightness(1) contrast(1) hue-rotate(0deg) saturate(1) drop-shadow(0 0 10px rgba(0, 255, 136, 0.3))":w?"brightness(0.1) contrast(4) hue-rotate(270deg) saturate(3) blur(2px) drop-shadow(0 0 20px rgba(255, 0, 93, 0.8)) drop-shadow(0 0 30px rgba(0, 255, 249, 0.6))":"brightness(0.7) contrast(1.5) hue-rotate(120deg) saturate(1.4) drop-shadow(0 0 8px rgba(0, 255, 136, 0.4))",transition:"all 1200ms cubic-bezier(0.175, 0.885, 0.32, 1.275)",willChange:"transform, opacity, filter",boxShadow:g?"0 0 30px rgba(0, 255, 136, 0.5), inset 0 0 30px rgba(0, 255, 136, 0.15), 0 0 60px rgba(0, 255, 136, 0.2)":w?"0 0 50px rgba(255, 0, 93, 1), 0 0 100px rgba(0, 255, 249, 0.8), 0 0 150px rgba(255, 251, 0, 0.6), inset 0 0 50px rgba(255, 0, 93, 0.3), inset 0 0 80px rgba(0, 255, 249, 0.2), 0 0 0 3px rgba(255, 0, 93, 0.8), 0 0 0 6px rgba(0, 255, 249, 0.6), 0 0 200px rgba(255, 251, 0, 0.3)":"0 0 20px rgba(0, 255, 136, 0.4), inset 0 0 15px rgba(0, 255, 136, 0.1), 0 0 40px rgba(0, 255, 136, 0.2)"}:{};return t.jsxs("div",{className:"absolute inset-0 w-full h-full",style:{...A,pointerEvents:g?"auto":"none"},children:[t.jsx(pe,{src:o.src,alt:o.alt,fallback:o.fallbackSrc,className:W,size:"lg",preview:!p,loading:u<=1?"eager":"lazy",onPreviewOpen:()=>M(!1),onPreviewClose:()=>M(n)}),i==="matrix"&&V(g,w)]},u)})}),ee=()=>t.jsx(t.Fragment,{children:e.map((o,u)=>{const g=u===r,A=u===(r-1+e.length)%e.length,E=w&&i==="signal-glitch"&&$?{opacity:g?1:A?.8:0,animation:g?"signal-image-flicker-in 1s ease-out forwards":A?"signal-image-flicker-out 1s ease-out forwards":"none",willChange:"opacity",pointerEvents:w&&!g?"none":"auto",transform:w?"translateZ(0)":"none"}:{opacity:g?1:0,transition:"opacity 250ms ease-in-out",willChange:"opacity",pointerEvents:g?"auto":"none"};return t.jsxs("div",{className:"absolute inset-0 w-full h-full",style:E,children:[t.jsx(pe,{src:o.src,alt:o.alt,fallback:o.fallbackSrc,className:W,size:"lg",preview:!p&&!(w&&i==="signal-glitch"&&$),loading:u<=1?"eager":"lazy",onPreviewOpen:()=>M(!1),onPreviewClose:()=>M(n)}),i==="signal-glitch"&&w&&$&&Y(g)]},u)})}),V=(o,u)=>t.jsx(t.Fragment,{children:u&&t.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:o?t.jsx("div",{className:"w-full h-full bg-gradient-to-b from-primary/5 to-transparent opacity-30"}):t.jsx("div",{className:"w-full h-full bg-gradient-to-b from-primary/10 via-secondary/5 to-accent/10 opacity-50"})})}),Y=o=>t.jsxs(t.Fragment,{children:[t.jsx("div",{className:`absolute inset-0 pointer-events-none z-5 ${o?"opacity-30":"opacity-15"}`,children:t.jsx("div",{className:"absolute inset-0",style:{backgroundImage:`
32
+ `,backgroundSize:"40px 40px"}})}),t.jsxs("div",{className:"relative w-full h-full flex items-center justify-center",onClick:J,children:[t.jsx("button",{onClick:Z,className:`absolute top-4 right-4 text-white hover:text-accent/80 transition-all duration-300 font-bold z-20 rounded-full w-10 h-10 flex items-center justify-center cursor-pointer transform ${N?"bg-black/0 scale-50 rotate-180 opacity-0":$?"bg-black/50 scale-0 rotate-0 opacity-0 duration-500":"bg-black/50 hover:bg-accent/20 scale-100 rotate-0 opacity-100 hover:scale-110"}`,style:{lineHeight:"1"},children:t.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",className:"relative",children:[t.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"absolute inset-0 text-accent opacity-0 hover:opacity-100 transition-opacity duration-200 animate-pulse"})]})}),t.jsxs("div",{className:`relative max-w-full max-h-full flex items-center justify-center transition-all ease-out ${N?"scale-75 opacity-0 rotate-1 duration-300":$?"scale-95 opacity-0 rotate-0 duration-500":"scale-100 opacity-100 rotate-0 duration-300"}`,onClick:E=>E.stopPropagation(),children:[y.cyberpunkEffects&&t.jsx("div",{className:`absolute inset-0 rounded-lg border-2 transition-all duration-300 ${N?"border-transparent shadow-none":"border-accent shadow-lg-accent animate-pulse"}`,"aria-hidden":"true"}),y.cyberpunkEffects&&t.jsx("div",{className:`absolute inset-0 overflow-hidden rounded-lg transition-opacity duration-300 z-10 ${N?"opacity-0":"opacity-100"}`,"aria-hidden":"true",children:t.jsxs("div",{className:"absolute top-0 left-0 w-full h-px animate-scan opacity-20",children:[t.jsx("div",{className:"w-full h-full bg-gradient-to-r from-transparent via-accent to-transparent shadow-lg-accent opacity-80"}),t.jsx("div",{className:"absolute inset-0 w-full h-full bg-gradient-to-r from-transparent via-white to-transparent opacity-60"})]})}),t.jsx("img",{src:H?n:e,alt:H?`${r} (fallback)`:r,className:`max-w-[95vw] max-h-[95vh] w-auto h-auto object-contain rounded-lg transition-all duration-300 ease-out ${N?"filter blur-sm brightness-50":"filter blur-0 brightness-100"}`,style:{maxWidth:"95vw",maxHeight:"95vh",width:"auto",height:"auto"}}),t.jsx("div",{className:`absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/80 via-black/40 to-transparent p-3 rounded-b-lg transition-all duration-300 ${N?"translate-y-4 opacity-0":"translate-y-0 opacity-100"}`,children:t.jsxs("p",{className:"text-white text-sm font-medium truncate relative",children:[H?`${r} (fallback)`:r,y.cyberpunkEffects&&t.jsx("span",{className:"absolute inset-0 text-accent opacity-20 animate-pulse",children:H?`${r} (fallback)`:r})]})}),y.cyberpunkEffects&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:`absolute top-2 left-2 w-4 h-4 border-l-2 border-t-2 border-accent transition-all duration-300 ${N?"opacity-0 scale-0":"opacity-60 scale-100"}`,"aria-hidden":"true"}),t.jsx("div",{className:`absolute top-2 right-2 w-4 h-4 border-r-2 border-t-2 border-accent transition-all duration-300 ${N?"opacity-0 scale-0":"opacity-60 scale-100"}`,"aria-hidden":"true"}),t.jsx("div",{className:`absolute bottom-2 left-2 w-4 h-4 border-l-2 border-b-2 border-accent transition-all duration-300 ${N?"opacity-0 scale-0":"opacity-60 scale-100"}`,"aria-hidden":"true"}),t.jsx("div",{className:`absolute bottom-2 right-2 w-4 h-4 border-r-2 border-b-2 border-accent transition-all duration-300 ${N?"opacity-0 scale-0":"opacity-60 scale-100"}`,"aria-hidden":"true"})]})]})]})]}),document.body)]})});pe.displayName="CyberUI.Image";const ut=({images:e,currentIndex:r,onChange:a,size:s="md",autoPlay:n=!0,interval:c=3e3,infinite:l=!0,transition:i="slide",objectFit:d="cover",showArrows:x=!0,showIndicators:m=!0,className:v="",disableImagePreview:p=!1,glitchRate:h=1,onBeforeChange:k,onAfterChange:y})=>{const[w,L]=f.useState(!1),[N,M]=f.useState(n),[$,S]=f.useState(!0),z=f.useMemo(()=>V(s,re.carousel),[s]),W="w-full h-full",b=f.useCallback(o=>{if(o===r||w)return;const u=i==="signal-glitch"&&(typeof h=="boolean"?h:Math.random()<h);S(u),L(!0),k?.(r,o),setTimeout(()=>{a(o),L(!1),y?.(o)},i==="slide"?0:i==="signal-glitch"&&u?600:250)},[r,w,a,k,y,i,h]);f.useEffect(()=>{if(!N||e.length<=1)return;const o=setInterval(()=>{const u=l?(r+1)%e.length:Math.min(r+1,e.length-1);if(!l&&u===e.length-1){M(!1);return}b(u)},c);return()=>clearInterval(o)},[N,r,e.length,l,c,b]);const I=f.useCallback(()=>{if(e.length<=1)return;const o=l?(r-1+e.length)%e.length:Math.max(r-1,0);M(!1),b(o)},[r,e.length,l,b]),H=f.useCallback(()=>{if(e.length<=1)return;const o=l?(r+1)%e.length:Math.min(r+1,e.length-1);M(!1),b(o)},[r,e.length,l,b]),X=f.useCallback(o=>{M(!1),b(o)},[b]);f.useEffect(()=>{const o=u=>{u.key==="ArrowLeft"&&I(),u.key==="ArrowRight"&&H()};return window.addEventListener("keydown",o),()=>window.removeEventListener("keydown",o)},[I,H]);const Q=()=>t.jsx("div",{className:"flex h-full transition-transform duration-500 ease-in-out",style:{transform:`translateX(-${r*100}%)`,willChange:"transform"},children:e.map((o,u)=>t.jsx("div",{className:"w-full h-full flex-shrink-0",children:t.jsx(pe,{src:o.src,alt:o.alt,fallback:o.fallbackSrc,className:W,size:"lg",preview:!p,loading:u<=1?"eager":"lazy",onPreviewOpen:()=>M(!1),onPreviewClose:()=>M(n)})},u))}),te=()=>t.jsx(t.Fragment,{children:e.map((o,u)=>{const g=u===r,A=i==="fade"?{opacity:g?1:0,transition:"opacity 500ms ease-in-out",willChange:"opacity"}:i==="matrix"?{opacity:g?1:0,transform:g?"scale(1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0) skew(0deg) perspective(1000px)":w?"scale(0.6) rotateX(35deg) rotateY(15deg) rotateZ(-3deg) translateZ(-80px) skew(5deg, 2deg) perspective(1000px)":"scale(0.92) rotateX(8deg) rotateY(2deg) translateZ(-20px) skew(1deg) perspective(1000px)",filter:g?"brightness(1) contrast(1) hue-rotate(0deg) saturate(1) drop-shadow(0 0 10px rgba(0, 255, 136, 0.3))":w?"brightness(0.1) contrast(4) hue-rotate(270deg) saturate(3) blur(2px) drop-shadow(0 0 20px rgba(255, 0, 93, 0.8)) drop-shadow(0 0 30px rgba(0, 255, 249, 0.6))":"brightness(0.7) contrast(1.5) hue-rotate(120deg) saturate(1.4) drop-shadow(0 0 8px rgba(0, 255, 136, 0.4))",transition:"all 1200ms cubic-bezier(0.175, 0.885, 0.32, 1.275)",willChange:"transform, opacity, filter",boxShadow:g?"0 0 30px rgba(0, 255, 136, 0.5), inset 0 0 30px rgba(0, 255, 136, 0.15), 0 0 60px rgba(0, 255, 136, 0.2)":w?"0 0 50px rgba(255, 0, 93, 1), 0 0 100px rgba(0, 255, 249, 0.8), 0 0 150px rgba(255, 251, 0, 0.6), inset 0 0 50px rgba(255, 0, 93, 0.3), inset 0 0 80px rgba(0, 255, 249, 0.2), 0 0 0 3px rgba(255, 0, 93, 0.8), 0 0 0 6px rgba(0, 255, 249, 0.6), 0 0 200px rgba(255, 251, 0, 0.3)":"0 0 20px rgba(0, 255, 136, 0.4), inset 0 0 15px rgba(0, 255, 136, 0.1), 0 0 40px rgba(0, 255, 136, 0.2)"}:{};return t.jsxs("div",{className:"absolute inset-0 w-full h-full",style:{...A,pointerEvents:g?"auto":"none"},children:[t.jsx(pe,{src:o.src,alt:o.alt,fallback:o.fallbackSrc,className:W,size:"lg",preview:!p,loading:u<=1?"eager":"lazy",onPreviewOpen:()=>M(!1),onPreviewClose:()=>M(n)}),i==="matrix"&&F(g,w)]},u)})}),ee=()=>t.jsx(t.Fragment,{children:e.map((o,u)=>{const g=u===r,A=u===(r-1+e.length)%e.length,E=w&&i==="signal-glitch"&&$?{opacity:g?1:A?.8:0,animation:g?"signal-image-flicker-in 1s ease-out forwards":A?"signal-image-flicker-out 1s ease-out forwards":"none",willChange:"opacity",pointerEvents:w&&!g?"none":"auto",transform:w?"translateZ(0)":"none"}:{opacity:g?1:0,transition:"opacity 250ms ease-in-out",willChange:"opacity",pointerEvents:g?"auto":"none"};return t.jsxs("div",{className:"absolute inset-0 w-full h-full",style:E,children:[t.jsx(pe,{src:o.src,alt:o.alt,fallback:o.fallbackSrc,className:W,size:"lg",preview:!p&&!(w&&i==="signal-glitch"&&$),loading:u<=1?"eager":"lazy",onPreviewOpen:()=>M(!1),onPreviewClose:()=>M(n)}),i==="signal-glitch"&&w&&$&&Y(g)]},u)})}),F=(o,u)=>t.jsx(t.Fragment,{children:u&&t.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:o?t.jsx("div",{className:"w-full h-full bg-gradient-to-b from-primary/5 to-transparent opacity-30"}):t.jsx("div",{className:"w-full h-full bg-gradient-to-b from-primary/10 via-secondary/5 to-accent/10 opacity-50"})})}),Y=o=>t.jsxs(t.Fragment,{children:[t.jsx("div",{className:`absolute inset-0 pointer-events-none z-5 ${o?"opacity-30":"opacity-15"}`,children:t.jsx("div",{className:"absolute inset-0",style:{backgroundImage:`
33
33
  linear-gradient(rgba(0, 255, 136, 0.3) 1px, transparent 1px),
34
34
  linear-gradient(90deg, rgba(0, 255, 136, 0.3) 1px, transparent 1px)
35
- `,backgroundSize:"40px 40px",animation:"signal-glitch-blink 1s ease-in-out infinite"}})}),t.jsxs("div",{className:"absolute inset-0 pointer-events-none z-10 overflow-hidden",children:[t.jsx("div",{className:"absolute w-full h-px bg-gradient-to-r from-transparent via-primary to-transparent opacity-80",style:{top:"20%",animation:"signal-glitch-vertical-sweep 1s linear infinite",boxShadow:"0 0 8px rgba(255, 0, 93, 1), 0 0 16px rgba(255, 0, 93, 0.5)"}}),t.jsx("div",{className:"absolute w-full h-px bg-gradient-to-r from-transparent via-secondary to-transparent opacity-60",style:{top:"60%",animation:"signal-glitch-vertical-sweep 1.5s linear infinite 0.3s",boxShadow:"0 0 6px rgba(0, 255, 249, 0.8)"}}),t.jsx("div",{className:"absolute w-full h-px bg-gradient-to-r from-transparent via-accent to-transparent opacity-70",style:{top:"80%",animation:"signal-glitch-vertical-sweep 0.8s linear infinite 0.7s",boxShadow:"0 0 10px rgba(255, 251, 0, 0.9)"}})]}),t.jsxs("div",{className:"absolute inset-0 pointer-events-none z-30",children:[t.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-primary/8 to-transparent",style:{animation:"signal-glitch-blink 1s ease-in-out infinite"}}),t.jsx("div",{className:"absolute w-full h-px bg-accent/80 top-1/3",style:{animation:"signal-scanline-jitter 1s linear infinite",boxShadow:"0 0 4px rgba(255, 251, 0, 1)"}}),t.jsx("div",{className:"absolute w-full h-px bg-secondary/60 top-2/3",style:{animation:"signal-scanline-jitter 1s linear infinite 0.4s",boxShadow:"0 0 4px rgba(0, 255, 249, 0.8)"}})]}),t.jsx("div",{className:"absolute inset-0 pointer-events-none z-40",style:{animation:"signal-rgb-separation 1s ease-in-out infinite",mixBlendMode:"screen"},children:t.jsx("div",{className:"absolute inset-0 bg-transparent"})}),t.jsxs("div",{className:"absolute inset-0 pointer-events-none z-50",children:[t.jsx("div",{className:"absolute top-1/4 left-1/2 w-24 h-2 bg-white/30",style:{animation:"signal-glitch-blink 1s ease-in-out infinite 0.1s",transform:"translateX(-50%)",filter:"blur(0.8px)"}}),t.jsx("div",{className:"absolute top-3/4 right-1/4 w-20 h-1 bg-primary/40",style:{animation:"signal-glitch-blink 1s ease-in-out infinite 0.8s",filter:"blur(0.4px)"}}),t.jsx("div",{className:"absolute top-1/2 left-1/4 w-3 h-12 bg-accent/60",style:{animation:"signal-glitch-blink 1s ease-in-out infinite 0.5s",filter:"blur(1.5px)"}})]})]}),q=()=>x&&e.length>1&&t.jsxs(t.Fragment,{children:[t.jsx("button",{onClick:P,disabled:!l&&r===0||w&&i==="signal-glitch"&&$,className:"group absolute left-2 top-1/2 -translate-y-1/2 w-16 h-16 text-primary hover:text-accent cursor-pointer disabled:cursor-not-allowed disabled:opacity-30 focus:outline-none transition-all duration-300 flex items-center justify-center hover:scale-110","aria-label":"Previous image",children:t.jsxs("svg",{width:"48",height:"48",viewBox:"0 0 100 100",className:"transition-all duration-300 group-hover:scale-110 overflow-visible",style:{overflow:"visible"},children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:"arrow-gradient-left",x1:"100%",y1:"0%",x2:"0%",y2:"0%",children:[t.jsx("stop",{offset:"0%",stopColor:"rgb(0, 255, 136)",stopOpacity:"1",className:"transition-all duration-500 opacity-0 group-hover:opacity-100"}),t.jsx("stop",{offset:"50%",stopColor:"rgb(0, 255, 249)",stopOpacity:"1",className:"transition-all duration-500 opacity-0 group-hover:opacity-100"}),t.jsx("stop",{offset:"100%",stopColor:"rgb(255, 0, 93)",stopOpacity:"1",className:"transition-all duration-500 opacity-0 group-hover:opacity-100"})]})}),t.jsx("path",{d:"M70 20 L20 50 L70 80 L60 50 Z",stroke:"currentColor",strokeWidth:"3",fill:"none",className:"transition-all duration-300 group-hover:stroke-[4]"}),t.jsx("path",{d:"M70 20 L20 50 L70 80 L60 50 Z",stroke:"rgb(255, 0, 93)",strokeWidth:"4",fill:"none",className:"opacity-0 group-hover:opacity-100 group-hover:animate-[rgbStroke_1.5s_linear_infinite] group-active:opacity-0",style:{filter:"drop-shadow(0 0 6px currentColor) drop-shadow(0 0 12px currentColor) drop-shadow(0 0 18px currentColor)"}}),t.jsx("path",{d:"M70 20 L20 50 L70 80 L60 50 Z",stroke:"rgb(255, 0, 93)",strokeWidth:"4",fill:"none",className:"opacity-0 group-active:opacity-100 group-active:animate-[rgbStroke_1.5s_linear_infinite]"})]})}),t.jsx("button",{onClick:U,disabled:!l&&r===e.length-1||w&&i==="signal-glitch"&&$,className:"group absolute right-2 top-1/2 -translate-y-1/2 w-16 h-16 text-primary hover:text-accent cursor-pointer disabled:cursor-not-allowed disabled:opacity-30 focus:outline-none transition-all duration-300 flex items-center justify-center hover:scale-110","aria-label":"Next image",children:t.jsxs("svg",{width:"48",height:"48",viewBox:"0 0 100 100",className:"transition-all duration-300 group-hover:scale-110 overflow-visible",style:{overflow:"visible"},children:[t.jsx("path",{d:"M30 20 L80 50 L30 80 L40 50 Z",stroke:"currentColor",strokeWidth:"3",fill:"none",className:"transition-all duration-300 group-hover:stroke-[4]"}),t.jsx("path",{d:"M30 20 L80 50 L30 80 L40 50 Z",stroke:"rgb(255, 0, 93)",strokeWidth:"4",fill:"none",className:"opacity-0 group-hover:opacity-100 group-hover:animate-[rgbStroke_1.5s_linear_infinite] group-active:opacity-0",style:{filter:"drop-shadow(0 0 6px currentColor) drop-shadow(0 0 12px currentColor) drop-shadow(0 0 18px currentColor)"}}),t.jsx("path",{d:"M30 20 L80 50 L30 80 L40 50 Z",stroke:"rgb(255, 0, 93)",strokeWidth:"4",fill:"none",className:"opacity-0 group-active:opacity-100 group-active:animate-[rgbStroke_1.5s_linear_infinite]"})]})})]}),Z=()=>f&&e.length>1&&t.jsx("div",{className:"flex justify-center mt-4 space-x-4",children:e.map((o,u)=>t.jsxs("button",{onClick:()=>X(u),disabled:w&&i==="signal-glitch"&&$,className:"group relative transition-all duration-300 hover:scale-110 focus:outline-none cursor-pointer disabled:cursor-not-allowed disabled:opacity-30",style:{width:"24px",height:"24px"},"aria-label":`Go to slide ${u+1}`,children:[u===r&&t.jsx("div",{className:"absolute inset-[-1px] border-2",style:{borderColor:"rgb(255, 0, 93)",animation:"rotateFocusRing 0.8s ease-out forwards, rgbBorder 1.5s linear infinite 0.8s"}}),t.jsx("div",{className:`absolute inset-0 border-2 transition-all duration-300 ${u===r?"border-primary bg-primary/30 shadow-lg-primary animate-[rgbBorder_1.5s_linear_infinite]":"border-accent bg-surface/50 group-hover:border-primary group-hover:bg-primary/20 group-hover:shadow-primary group-hover:animate-[rgbBorder_1.5s_linear_infinite]"}`,style:{clipPath:"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)"}}),u===r&&t.jsx("div",{className:"absolute inset-2 bg-primary/60 animate-pulse",style:{clipPath:"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)",animation:"rgbBackground 1.5s linear infinite, pulse 2s ease-in-out infinite"}}),u===r&&t.jsxs("div",{className:"absolute inset-0 opacity-80",children:[t.jsx("div",{className:"absolute top-1/2 left-2 right-2 h-0.5 bg-primary/80 animate-pulse",style:{transform:"translateY(-50%)",animation:"rgbBackground 1.5s linear infinite, pulse 2s ease-in-out infinite"}}),t.jsx("div",{className:"absolute left-1/2 top-2 bottom-2 w-0.5 bg-primary/80 animate-pulse",style:{transform:"translateX(-50%)",animation:"rgbBackground 1.5s linear infinite, pulse 2s ease-in-out infinite"}})]})]},u))});if(e.length===0)return t.jsx("div",{className:_(I,"w-full bg-surface border border-accent rounded-lg flex items-center justify-center",v),children:t.jsx("p",{className:"text-muted",children:"No images to display"})});const J=e[r];return t.jsxs("div",{className:_("relative w-full",v),children:[t.jsxs("div",{className:`relative w-full overflow-hidden rounded-lg border border-accent bg-surface ${I}`,children:[t.jsxs("div",{className:"absolute inset-0 pointer-events-none",children:[t.jsx("div",{className:"absolute top-2 left-2 w-4 h-4 border-l-2 border-t-2 border-primary opacity-60"}),t.jsx("div",{className:"absolute top-2 right-2 w-4 h-4 border-r-2 border-t-2 border-primary opacity-60"}),t.jsx("div",{className:"absolute bottom-2 left-2 w-4 h-4 border-l-2 border-b-2 border-primary opacity-60"}),t.jsx("div",{className:"absolute bottom-2 right-2 w-4 h-4 border-r-2 border-b-2 border-primary opacity-60"}),t.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-primary/10 to-transparent h-1 animate-pulse"})]}),t.jsxs("div",{className:`relative w-full h-full overflow-hidden carousel-${d}`,children:[i==="slide"&&Q(),(i==="fade"||i==="matrix")&&te(),i==="signal-glitch"&&ee()]}),J.caption&&t.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/80 to-transparent p-4",children:t.jsx("p",{className:"text-white text-sm font-medium",children:J.caption})}),q()]}),Z()]})},hr=m.memo(gr),xr={openDuration:600,closeDuration:400,crtEffects:!0},yr={sm:"max-w-md",md:"max-w-lg",lg:"max-w-2xl",xl:"max-w-4xl",fullscreen:"max-w-none w-full h-full"},tt=m.memo(({isOpen:e,onClose:r,title:a,children:s,footer:n,onCancel:c,onConfirm:l,cancelText:i="Cancel",confirmText:d="Confirm",confirmLoading:x=!1,showCancel:f=!0,showConfirm:v=!0,size:p="lg",variant:h="default",closeOnOverlayClick:k=!0,closeOnEscape:y=!0,animation:w,className:L="",overlayClassName:N="",showCloseButton:M=!0,onOpen:$,onCRTBootComplete:S})=>{const I=m.useMemo(()=>({...xr,...w}),[w]),[W,b]=m.useState(!1),[P,U]=m.useState(!0),X=m.useRef(null),Q=m.useRef(null),te=m.useRef(null),ee=m.useRef(`modal-title-${Math.random().toString(36).slice(2)}`),V=m.useCallback(()=>{b(!0),setTimeout(()=>{b(!1),U(!0),r()},I.closeDuration)},[r,I.closeDuration]);m.useEffect(()=>{e&&!W&&(te.current=document.activeElement||null,U(!0),$?.(),setTimeout(()=>{U(!1),S?.(),Q.current?.focus()},I.openDuration))},[e,W,$,S,I.openDuration]);const Y=m.useCallback(()=>{c?.(),V()},[c,V]),q=m.useCallback(()=>{l?.(),V()},[l,V]),Z=m.useCallback(u=>{k&&(u.target===X.current||u.target===u.currentTarget)&&V()},[V,k]),J=m.useCallback(u=>{y&&u.key==="Escape"&&V()},[V,y]);m.useEffect(()=>{if(e){document.addEventListener("keydown",J);const u=document.body.style.overflow,g=window.innerWidth-document.documentElement.clientWidth;return document.body.style.overflow="hidden",document.body.style.paddingRight=`${g}px`,()=>{document.removeEventListener("keydown",J),document.body.style.overflow=u,document.body.style.paddingRight="",te.current?.focus?.()}}},[e,J]);const o=m.useMemo(()=>{const u=h==="danger",g=u?"border-error":"border-accent",A=u?"shadow-error":"shadow-lg-accent",E=u?"shadow-error/50":"shadow-input-accent/50",T=u?"animate-danger-glow":"animate-rgb-glow";return _("relative bg-surface border-2 rounded-lg max-h-[90vh] overflow-hidden flex flex-col transform transition-all duration-300",yr[p],I.crtEffects&&P?`animate-crt-power-on ${g} ${A}`:I.crtEffects&&W?`animate-crt-power-off ${g} ${A}`:W?`scale-95 opacity-0 ${g}/20`:P?`scale-105 opacity-90 ${g} ${E}`:`scale-100 opacity-100 ${T}`,L)},[p,I.crtEffects,W,P,L,h]);return e?Te.createPortal(t.jsx("div",{ref:X,className:`fixed z-50 flex items-center justify-center p-4 transition-all ease-out ${N} ${W?"bg-black/0 backdrop-blur-none opacity-0 duration-800":P?"bg-black/30 backdrop-blur-md opacity-100 duration-500":"bg-black/30 backdrop-blur-sm opacity-100 duration-300"}`,style:{top:0,left:0,width:"100vw",height:"100vh"},onClick:Z,"aria-hidden":!0,children:t.jsxs("div",{ref:Q,className:o,onClick:u=>u.stopPropagation(),role:"dialog","aria-modal":"true","aria-labelledby":a?ee.current:void 0,tabIndex:-1,children:[M&&t.jsx("button",{onClick:V,className:`absolute top-4 right-4 text-muted hover:text-accent transition-all duration-300 z-20 rounded-full w-8 h-8 flex items-center justify-center cursor-pointer transform ${W?"scale-0 rotate-180 opacity-0":P?"scale-0 opacity-0":"scale-100 opacity-100 hover:scale-110 hover:bg-accent/10"}`,"aria-label":"Close modal",children:t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",className:"relative",children:t.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),a&&t.jsx("div",{className:_("px-6 py-4 border-b flex-shrink-0 transition-all duration-300",h==="danger"?"border-error/20":"border-accent/20",P?"opacity-0 translate-y-2":"opacity-100 translate-y-0"),children:t.jsx("h2",{id:ee.current,className:_("text-lg font-semibold",h==="danger"?"text-error":"text-primary"),children:a})}),t.jsx("div",{className:`flex-1 overflow-auto p-6 transition-all duration-500 ${P?"opacity-0 translate-y-4":"opacity-100 translate-y-0"}`,children:s}),(n||c||l)&&t.jsx("div",{className:_("px-6 py-4 border-t flex-shrink-0 transition-all duration-300",h==="danger"?"border-error/20":"border-accent/20",P?"opacity-0 translate-y-2":"opacity-100 translate-y-0"),children:n||t.jsxs("div",{className:"flex flex-col-reverse sm:flex-row justify-between items-center gap-3",children:[t.jsx("span",{className:"text-muted text-xs font-mono hidden sm:block",children:"> ESC to abort"}),t.jsxs("div",{className:"flex gap-3 w-full sm:w-auto",children:[f&&c&&t.jsx(Ee,{variant:"ghost",size:"sm",onClick:Y,className:"flex-1 sm:flex-none",children:i}),v&&l&&t.jsx(Ee,{variant:h==="danger"?"danger":"primary",size:"sm",onClick:q,disabled:x,className:"flex-1 sm:flex-none",children:d})]})]})})]})}),document.body):null});tt.displayName="CyberUI.Modal";const vr=({children:e,variant:r="primary",as:a="span",className:s=""})=>{const n=l=>({primary:"bg-linear-(--gradient-primary)",secondary:"bg-linear-(--gradient-secondary)",accent:"bg-linear-(--gradient-accent)"})[l];return t.jsx(a,{className:_("bg-clip-text text-transparent inline-block",n(r),s),children:e})},wr=({children:e,showLine:r=!0,size:a="md",className:s=""})=>{const n={sm:"text-xs",md:"text-sm",lg:"text-base"},c={sm:"mb-4",md:"mb-6",lg:"mb-8"},l={sm:"gap-3",md:"gap-4",lg:"gap-5"},i=H(a,n),d=H(a,c),x=H(a,l),f=_("flex items-center",x,d),v=_("uppercase tracking-[0.2em] text-secondary font-bold whitespace-nowrap",i);return t.jsxs("div",{className:_(f,s),children:[t.jsx("h2",{className:v,children:e}),r&&t.jsx("div",{className:"h-[1px] w-full bg-gradient-to-r from-secondary/50 to-transparent"})]})},kr=({events:e,size:r="md",className:a=""})=>{const s={sm:"w-5 h-5",md:"w-6 h-6",lg:"w-8 h-8"},n={sm:"inset-1.5",md:"inset-2",lg:"inset-2.5"},c={sm:"text-sm",md:"text-base",lg:"text-lg"},l={sm:"text-xs",md:"text-sm",lg:"text-base"},i={sm:"text-[10px]",md:"text-xs",lg:"text-sm"},d={sm:"gap-3",md:"gap-4",lg:"gap-5"},x={sm:"space-y-4",md:"space-y-6",lg:"space-y-8"},f=H(r,s),v=H(r,n),p=H(r,c),h=H(r,l),k=H(r,i),y=H(r,d),w=H(r,x),L=M=>{const $={success:{border:"border-success bg-success/30 shadow-[0_0_10px_var(--color-success)]",background:"border-success bg-success/30 shadow-[0_0_10px_var(--color-success)]",inner:"bg-success/60"},error:{border:"border-error bg-error/30 shadow-[0_0_10px_var(--color-error)]",background:"border-error bg-error/30 shadow-[0_0_10px_var(--color-error)]",inner:"bg-error/60"},warning:{border:"border-warning bg-warning/30 shadow-[0_0_10px_var(--color-warning)]",background:"border-warning bg-warning/30 shadow-[0_0_10px_var(--color-warning)]",inner:"bg-warning/60"},info:{border:"border-info bg-info/30 shadow-[0_0_10px_var(--color-info)]",background:"border-info bg-info/30 shadow-[0_0_10px_var(--color-info)]",inner:"bg-info/60"}};return $[M]||$.info},N="polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)";return t.jsx("div",{className:_(w,a),children:e.map((M,$)=>{const S=L(M.status);return t.jsxs("div",{className:_("flex",y,"group"),children:[t.jsxs("div",{className:"flex flex-col items-center",children:[t.jsxs("div",{className:_("relative flex-shrink-0 mt-1.5",f),children:[t.jsx("div",{className:_("absolute inset-0 border-2 transition-all duration-300",S.border),style:{clipPath:N}}),t.jsx("div",{className:_("absolute",v,S.inner),style:{clipPath:N}})]}),$<e.length-1&&t.jsx("div",{className:"w-[2px] flex-1 bg-gradient-to-b from-secondary/50 to-transparent mt-2"})]}),t.jsxs("div",{className:"flex-1 pb-6",children:[t.jsxs("div",{className:"flex items-center justify-between mb-1",children:[t.jsx("h4",{className:_("font-semibold text-default group-hover:text-secondary transition-colors",p),children:M.title}),t.jsx("span",{className:_("text-muted whitespace-nowrap ml-4",k),children:M.time})]}),M.description&&t.jsx("p",{className:_("text-muted mt-1",h),children:M.description})]})]},$)})})},jr=({items:e,current:r=0,orientation:a={base:"vertical",md:"horizontal"},className:s=""})=>{const c=Ae(a,"vertical")==="vertical",l=(p,h)=>{const k=p.status==="completed"||p.status===void 0&&h<r,y=p.status==="current"||p.status===void 0&&h===r&&r<e.length,w=p.status==="error";return{isCompleted:k,isCurrent:y,isError:w}},i=(p,h,k)=>{const y=_("relative px-2 py-1 pb-2 font-bold text-sm transition-colors duration-200 whitespace-nowrap overflow-hidden","after:content-[''] after:absolute after:left-0 after:right-0 after:bottom-0 after:h-[2px] after:w-full after:scale-x-0 after:origin-center after:transition-transform after:duration-300 after:ease-out","before:content-[''] before:absolute before:left-1/2 before:-translate-x-1/2 before:-bottom-[3px] before:w-1.5 before:h-1.5 before:bg-accent before:rotate-45 before:rounded-[2px] before:opacity-0 before:transition-opacity before:duration-200");return p?_(y,"text-secondary after:bg-linear-(--gradient-accent) after:shadow-lg-accent after:scale-x-100"):h?_(y,"text-secondary before:opacity-100"):k?_(y,"text-error"):_(y,"text-muted")},d=(p,h,k,y)=>({color:"var(--color-primary)",opacity:k?.8:.3,filter:k?"drop-shadow(0 0 4px color-mix(in srgb, var(--color-primary), transparent 40%))":"none",animation:h&&p?`chevronFlow 1.5s ease-in-out infinite ${y*.2}s`:"none"}),x=_(c?"flex flex-col items-start gap-0":"flex items-center justify-center gap-4",s),f=(p,h,k)=>p?"text-secondary drop-shadow-[0_0_4px_var(--color-secondary)]":h?"text-accent drop-shadow-[0_0_6px_var(--color-accent)]":k?"text-error drop-shadow-[0_0_4px_var(--color-error)]":"text-muted/50",v=(p,h,k)=>{const y=_("relative font-bold text-sm transition-colors duration-200 pb-1 w-fit","after:content-[''] after:absolute after:left-0 after:right-0 after:bottom-0 after:h-[2px] after:w-full after:scale-x-0 after:origin-left after:transition-transform after:duration-300 after:ease-out");return p?_(y,"text-secondary after:bg-linear-(--gradient-accent) after:shadow-lg-accent after:scale-x-100"):h?_(y,"text-secondary"):k?_(y,"text-error"):_(y,"text-muted")};return t.jsx("div",{className:x,children:e.map((p,h)=>{const{isCompleted:k,isCurrent:y,isError:w}=l(p,h),L=h<e.length-1&&(e[h+1]?.status==="current"||e[h+1]?.status===void 0&&h+1===r&&r<e.length),N=h<e.length-1&&(e[h+1]?.status==="completed"||e[h+1]?.status===void 0&&h+1<r);return t.jsxs(m.Fragment,{children:[c?t.jsxs("div",{className:"flex flex-col w-full",children:[t.jsxs("div",{className:"flex items-start gap-1.5",children:[t.jsx("span",{className:_("text-xs leading-5 flex-shrink-0",f(k,y,w)),children:"▸"}),t.jsxs("div",{className:"flex flex-col",children:[t.jsx("div",{className:v(k,y,w),children:p.title}),p.description&&t.jsx("div",{className:"text-xs text-muted mt-0.5 font-normal",children:p.description})]})]}),h<e.length-1&&t.jsx("div",{className:"flex flex-col items-center py-0.5",children:[0,1,2].map(M=>t.jsx("div",{className:"text-sm font-bold transition-all duration-300 rotate-90 leading-[0.6]",style:d(k,L,N,M),children:"›"},M))})]}):t.jsxs("div",{className:"flex flex-col items-center",children:[t.jsx("div",{className:i(k,y,w),children:p.title}),p.description&&t.jsx("div",{className:"text-xs text-muted mt-1 font-normal",children:p.description})]}),!c&&h<e.length-1&&t.jsx("div",{className:"flex",children:[0,1,2].map(M=>t.jsx("div",{className:"text-2xl font-bold transition-all duration-300",style:d(k,L,N,M),children:"›"},M))})]},h)})})},Cr=({variant:e="gradient",orientation:r="horizontal",className:a=""})=>{const s=l=>l==="horizontal"?"w-full h-[1px]":"w-[1px] h-full",n=(l,i)=>({gradient:i==="horizontal"?"bg-gradient-to-r from-transparent via-secondary/50 to-transparent":"bg-gradient-to-b from-transparent via-secondary/50 to-transparent",solid:"bg-secondary/30",dashed:`border-dashed border-secondary/50 ${i==="horizontal"?"border-t":"border-l"}`})[l],c=_(s(r),n(e,r),a);return t.jsx("div",{className:c})},Nr=({label:e,error:r,size:a="md",className:s="",checked:n,onChange:c,onCheckedChange:l,disabled:i,...d})=>{const[x,f]=m.useState(d.defaultChecked||!1),v=n!==void 0?n:x,p=S=>{i||(n===void 0&&f(S.target.checked),c?.(S),l?.(S.target.checked))},h={sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"},k={sm:"text-xs",md:"text-sm",lg:"text-base"},y={sm:"ml-6",md:"ml-8",lg:"ml-9"},w=H(a,h),L=H(a,k),N=H(a,y),M=S=>i?"stroke-muted/20":_("transition-all duration-200 group-hover:stroke-secondary group-hover:stroke-[1.5]",S?"stroke-secondary":"stroke-secondary/50"),$=S=>{const I="transition-all duration-200";return i?_(I,S?"fill-muted/20":"fill-transparent"):_(I,S?"fill-secondary":"fill-transparent")};return t.jsxs("div",{className:_("flex flex-col gap-1",s,i&&"opacity-50 cursor-not-allowed"),children:[t.jsxs("label",{className:_("flex items-center gap-3 group",i?"cursor-not-allowed pointer-events-none":"cursor-pointer"),children:[t.jsxs("div",{className:_("relative flex-shrink-0",w),children:[t.jsx("input",{type:"checkbox",className:"absolute opacity-0 w-0 h-0",checked:v,onChange:p,disabled:i,...d}),t.jsxs("svg",{className:"absolute inset-0 w-full h-full pointer-events-none",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M 1 1 L 19 1 L 19 15 L 15 19 L 1 19 Z",className:"fill-base/50"}),t.jsx("path",{d:"M 1 1 L 19 1 L 19 15 L 15 19 L 1 19 Z",className:M(v),strokeWidth:"1",fill:"none"}),t.jsx("path",{d:"M 4 4 L 16 4 L 16 13 L 13 16 L 4 16 Z",className:$(v)})]})]}),e&&t.jsx("span",{className:_("transition-colors",L,i?"text-muted":"text-muted group-hover:text-secondary"),children:e})]}),r&&!i&&t.jsx("span",{className:_("text-xs text-error",N),children:r})]})},oe={MOBILE_BREAKPOINT:768,STABLE_TIMEOUT:1e3,MOBILE_HIDE_DELAY:1e3,VELOCITY_MULTIPLIER:2,DISTANCE_THRESHOLD:100,MAX_ANIMATION_SPEED:5,MIN_GLOW_DURATION:150},Sr=(e={})=>{const{glowColor:r="primary",sensitivity:a=2,disabled:s=!1,pageLevel:n,variant:c="default",className:l=""}=e,i=m.useRef(null),d=m.useRef(null),x=m.useRef(Date.now()),f=m.useRef(0),v=m.useRef(void 0),p=m.useRef([]),h=m.useRef(void 0),[k,y]=m.useState({isScrolling:!1,direction:null,velocity:0,position:0,scrollDistance:0}),[w,L]=m.useState(!1),[N,M]=m.useState(()=>typeof window>"u"?!1:window.innerWidth>=oe.MOBILE_BREAKPOINT),$=m.useRef(0),[S,I]=m.useState(n??!1);m.useEffect(()=>{if(n!==void 0)I(n);else{const u=setTimeout(()=>{const g=i.current!==null;I(!g)},0);return()=>clearTimeout(u)}},[n]);const W=m.useCallback(u=>{switch(u){case"transparent":return{background:"transparent",backdropFilter:"none",border:"none",boxShadow:"none"};case"minimal":return{background:"rgba(26, 26, 46, 0.6)",backdropFilter:"blur(3px)",border:"1px solid rgba(255, 0, 93, 0.2)",boxShadow:"0 0 5px rgba(255, 0, 93, 0.2)"};case"default":default:return{background:"linear-gradient(180deg, rgba(26, 26, 46, 0.95), rgba(45, 45, 68, 0.95))",backdropFilter:"blur(6px)",border:"1px solid rgba(255, 0, 93, 0.3)",boxShadow:"0 0 10px rgba(255, 0, 93, 0.3), inset 0 0 10px rgba(255, 0, 93, 0.1)"}}},[]),b=m.useCallback(()=>{const u=window.innerWidth<oe.MOBILE_BREAKPOINT;return{isMobile:u,scrollbarWidth:u?12:16,arrowSize:u?10:14,lineSize:u?8:12,arrowGap:u?2:4}},[]),P=m.useCallback((u,g,A,E)=>{const T=(E+A)*2,D=A*4,G=(u-T-D)/2;return Math.floor(G/(g+A))},[]),U=m.useCallback(u=>{if(S){if(!document.querySelector("#cyber-page-scrollbar-styles")){const g=document.createElement("style");g.id="cyber-page-scrollbar-styles",g.textContent=`
35
+ `,backgroundSize:"40px 40px",animation:"signal-glitch-blink 1s ease-in-out infinite"}})}),t.jsxs("div",{className:"absolute inset-0 pointer-events-none z-10 overflow-hidden",children:[t.jsx("div",{className:"absolute w-full h-px bg-gradient-to-r from-transparent via-primary to-transparent opacity-80",style:{top:"20%",animation:"signal-glitch-vertical-sweep 1s linear infinite",boxShadow:"0 0 8px rgba(255, 0, 93, 1), 0 0 16px rgba(255, 0, 93, 0.5)"}}),t.jsx("div",{className:"absolute w-full h-px bg-gradient-to-r from-transparent via-secondary to-transparent opacity-60",style:{top:"60%",animation:"signal-glitch-vertical-sweep 1.5s linear infinite 0.3s",boxShadow:"0 0 6px rgba(0, 255, 249, 0.8)"}}),t.jsx("div",{className:"absolute w-full h-px bg-gradient-to-r from-transparent via-accent to-transparent opacity-70",style:{top:"80%",animation:"signal-glitch-vertical-sweep 0.8s linear infinite 0.7s",boxShadow:"0 0 10px rgba(255, 251, 0, 0.9)"}})]}),t.jsxs("div",{className:"absolute inset-0 pointer-events-none z-30",children:[t.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-primary/8 to-transparent",style:{animation:"signal-glitch-blink 1s ease-in-out infinite"}}),t.jsx("div",{className:"absolute w-full h-px bg-accent/80 top-1/3",style:{animation:"signal-scanline-jitter 1s linear infinite",boxShadow:"0 0 4px rgba(255, 251, 0, 1)"}}),t.jsx("div",{className:"absolute w-full h-px bg-secondary/60 top-2/3",style:{animation:"signal-scanline-jitter 1s linear infinite 0.4s",boxShadow:"0 0 4px rgba(0, 255, 249, 0.8)"}})]}),t.jsx("div",{className:"absolute inset-0 pointer-events-none z-40",style:{animation:"signal-rgb-separation 1s ease-in-out infinite",mixBlendMode:"screen"},children:t.jsx("div",{className:"absolute inset-0 bg-transparent"})}),t.jsxs("div",{className:"absolute inset-0 pointer-events-none z-50",children:[t.jsx("div",{className:"absolute top-1/4 left-1/2 w-24 h-2 bg-white/30",style:{animation:"signal-glitch-blink 1s ease-in-out infinite 0.1s",transform:"translateX(-50%)",filter:"blur(0.8px)"}}),t.jsx("div",{className:"absolute top-3/4 right-1/4 w-20 h-1 bg-primary/40",style:{animation:"signal-glitch-blink 1s ease-in-out infinite 0.8s",filter:"blur(0.4px)"}}),t.jsx("div",{className:"absolute top-1/2 left-1/4 w-3 h-12 bg-accent/60",style:{animation:"signal-glitch-blink 1s ease-in-out infinite 0.5s",filter:"blur(1.5px)"}})]})]}),q=()=>x&&e.length>1&&t.jsxs(t.Fragment,{children:[t.jsx("button",{onClick:I,disabled:!l&&r===0||w&&i==="signal-glitch"&&$,className:"group absolute left-2 top-1/2 -translate-y-1/2 w-16 h-16 text-primary hover:text-accent cursor-pointer disabled:cursor-not-allowed disabled:opacity-30 focus:outline-none transition-all duration-300 flex items-center justify-center hover:scale-110","aria-label":"Previous image",children:t.jsxs("svg",{width:"48",height:"48",viewBox:"0 0 100 100",className:"transition-all duration-300 group-hover:scale-110 overflow-visible",style:{overflow:"visible"},children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:"arrow-gradient-left",x1:"100%",y1:"0%",x2:"0%",y2:"0%",children:[t.jsx("stop",{offset:"0%",stopColor:"rgb(0, 255, 136)",stopOpacity:"1",className:"transition-all duration-500 opacity-0 group-hover:opacity-100"}),t.jsx("stop",{offset:"50%",stopColor:"rgb(0, 255, 249)",stopOpacity:"1",className:"transition-all duration-500 opacity-0 group-hover:opacity-100"}),t.jsx("stop",{offset:"100%",stopColor:"rgb(255, 0, 93)",stopOpacity:"1",className:"transition-all duration-500 opacity-0 group-hover:opacity-100"})]})}),t.jsx("path",{d:"M70 20 L20 50 L70 80 L60 50 Z",stroke:"currentColor",strokeWidth:"3",fill:"none",className:"transition-all duration-300 group-hover:stroke-[4]"}),t.jsx("path",{d:"M70 20 L20 50 L70 80 L60 50 Z",stroke:"rgb(255, 0, 93)",strokeWidth:"4",fill:"none",className:"opacity-0 group-hover:opacity-100 group-hover:animate-[rgbStroke_1.5s_linear_infinite] group-active:opacity-0",style:{filter:"drop-shadow(0 0 6px currentColor) drop-shadow(0 0 12px currentColor) drop-shadow(0 0 18px currentColor)"}}),t.jsx("path",{d:"M70 20 L20 50 L70 80 L60 50 Z",stroke:"rgb(255, 0, 93)",strokeWidth:"4",fill:"none",className:"opacity-0 group-active:opacity-100 group-active:animate-[rgbStroke_1.5s_linear_infinite]"})]})}),t.jsx("button",{onClick:H,disabled:!l&&r===e.length-1||w&&i==="signal-glitch"&&$,className:"group absolute right-2 top-1/2 -translate-y-1/2 w-16 h-16 text-primary hover:text-accent cursor-pointer disabled:cursor-not-allowed disabled:opacity-30 focus:outline-none transition-all duration-300 flex items-center justify-center hover:scale-110","aria-label":"Next image",children:t.jsxs("svg",{width:"48",height:"48",viewBox:"0 0 100 100",className:"transition-all duration-300 group-hover:scale-110 overflow-visible",style:{overflow:"visible"},children:[t.jsx("path",{d:"M30 20 L80 50 L30 80 L40 50 Z",stroke:"currentColor",strokeWidth:"3",fill:"none",className:"transition-all duration-300 group-hover:stroke-[4]"}),t.jsx("path",{d:"M30 20 L80 50 L30 80 L40 50 Z",stroke:"rgb(255, 0, 93)",strokeWidth:"4",fill:"none",className:"opacity-0 group-hover:opacity-100 group-hover:animate-[rgbStroke_1.5s_linear_infinite] group-active:opacity-0",style:{filter:"drop-shadow(0 0 6px currentColor) drop-shadow(0 0 12px currentColor) drop-shadow(0 0 18px currentColor)"}}),t.jsx("path",{d:"M30 20 L80 50 L30 80 L40 50 Z",stroke:"rgb(255, 0, 93)",strokeWidth:"4",fill:"none",className:"opacity-0 group-active:opacity-100 group-active:animate-[rgbStroke_1.5s_linear_infinite]"})]})})]}),Z=()=>m&&e.length>1&&t.jsx("div",{className:"flex justify-center mt-4 space-x-4",children:e.map((o,u)=>t.jsxs("button",{onClick:()=>X(u),disabled:w&&i==="signal-glitch"&&$,className:"group relative transition-all duration-300 hover:scale-110 focus:outline-none cursor-pointer disabled:cursor-not-allowed disabled:opacity-30",style:{width:"24px",height:"24px"},"aria-label":`Go to slide ${u+1}`,children:[u===r&&t.jsx("div",{className:"absolute inset-[-1px] border-2",style:{borderColor:"rgb(255, 0, 93)",animation:"rotateFocusRing 0.8s ease-out forwards, rgbBorder 1.5s linear infinite 0.8s"}}),t.jsx("div",{className:`absolute inset-0 border-2 transition-all duration-300 ${u===r?"border-primary bg-primary/30 shadow-lg-primary animate-[rgbBorder_1.5s_linear_infinite]":"border-accent bg-surface/50 group-hover:border-primary group-hover:bg-primary/20 group-hover:shadow-primary group-hover:animate-[rgbBorder_1.5s_linear_infinite]"}`,style:{clipPath:"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)"}}),u===r&&t.jsx("div",{className:"absolute inset-2 bg-primary/60 animate-pulse",style:{clipPath:"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)",animation:"rgbBackground 1.5s linear infinite, pulse 2s ease-in-out infinite"}}),u===r&&t.jsxs("div",{className:"absolute inset-0 opacity-80",children:[t.jsx("div",{className:"absolute top-1/2 left-2 right-2 h-0.5 bg-primary/80 animate-pulse",style:{transform:"translateY(-50%)",animation:"rgbBackground 1.5s linear infinite, pulse 2s ease-in-out infinite"}}),t.jsx("div",{className:"absolute left-1/2 top-2 bottom-2 w-0.5 bg-primary/80 animate-pulse",style:{transform:"translateX(-50%)",animation:"rgbBackground 1.5s linear infinite, pulse 2s ease-in-out infinite"}})]})]},u))});if(e.length===0)return t.jsx("div",{className:_(z,"w-full bg-surface border border-accent rounded-lg flex items-center justify-center",v),children:t.jsx("p",{className:"text-muted",children:"No images to display"})});const J=e[r];return t.jsxs("div",{className:_("relative w-full",v),children:[t.jsxs("div",{className:`relative w-full overflow-hidden rounded-lg border border-accent bg-surface ${z}`,children:[t.jsxs("div",{className:"absolute inset-0 pointer-events-none",children:[t.jsx("div",{className:"absolute top-2 left-2 w-4 h-4 border-l-2 border-t-2 border-primary opacity-60"}),t.jsx("div",{className:"absolute top-2 right-2 w-4 h-4 border-r-2 border-t-2 border-primary opacity-60"}),t.jsx("div",{className:"absolute bottom-2 left-2 w-4 h-4 border-l-2 border-b-2 border-primary opacity-60"}),t.jsx("div",{className:"absolute bottom-2 right-2 w-4 h-4 border-r-2 border-b-2 border-primary opacity-60"}),t.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-primary/10 to-transparent h-1 animate-pulse"})]}),t.jsxs("div",{className:`relative w-full h-full overflow-hidden carousel-${d}`,children:[i==="slide"&&Q(),(i==="fade"||i==="matrix")&&te(),i==="signal-glitch"&&ee()]}),J.caption&&t.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/80 to-transparent p-4",children:t.jsx("p",{className:"text-white text-sm font-medium",children:J.caption})}),q()]}),Z()]})};ut.displayName="CyberUI.Carousel";const Cr=f.memo(ut),jr={openDuration:600,closeDuration:400,crtEffects:!0},Nr={sm:"max-w-md",md:"max-w-lg",lg:"max-w-2xl",xl:"max-w-4xl",fullscreen:"max-w-none w-full h-full"},mt=f.memo(({isOpen:e,onClose:r,title:a,children:s,footer:n,onCancel:c,onConfirm:l,cancelText:i="Cancel",confirmText:d="Confirm",confirmLoading:x=!1,showCancel:m=!0,showConfirm:v=!0,size:p="lg",variant:h="default",closeOnOverlayClick:k=!0,closeOnEscape:y=!0,animation:w,className:L="",overlayClassName:N="",showCloseButton:M=!0,onOpen:$,onCRTBootComplete:S})=>{const z=f.useMemo(()=>({...jr,...w}),[w]),[W,b]=f.useState(!1),[I,H]=f.useState(!0),X=f.useRef(null),Q=f.useRef(null),te=f.useRef(null),ee=f.useRef(`modal-title-${Math.random().toString(36).slice(2)}`),F=f.useCallback(()=>{b(!0),setTimeout(()=>{b(!1),H(!0),r()},z.closeDuration)},[r,z.closeDuration]);f.useEffect(()=>{e&&!W&&(te.current=document.activeElement||null,H(!0),$?.(),setTimeout(()=>{H(!1),S?.(),Q.current?.focus()},z.openDuration))},[e,W,$,S,z.openDuration]);const Y=f.useCallback(()=>{c?.(),F()},[c,F]),q=f.useCallback(()=>{l?.(),F()},[l,F]),Z=f.useCallback(u=>{k&&(u.target===X.current||u.target===u.currentTarget)&&F()},[F,k]),J=f.useCallback(u=>{y&&u.key==="Escape"&&F()},[F,y]);f.useEffect(()=>{if(e){document.addEventListener("keydown",J);const u=document.body.style.overflow,g=window.innerWidth-document.documentElement.clientWidth;return document.body.style.overflow="hidden",document.body.style.paddingRight=`${g}px`,()=>{document.removeEventListener("keydown",J),document.body.style.overflow=u,document.body.style.paddingRight="",te.current?.focus?.()}}},[e,J]);const o=f.useMemo(()=>{const u=h==="danger",g=u?"border-error":"border-accent",A=u?"shadow-error":"shadow-lg-accent",E=u?"shadow-error/50":"shadow-input-accent/50",T=u?"animate-danger-glow":"animate-rgb-glow";return _("relative bg-surface border-2 rounded-lg max-h-[90vh] overflow-hidden flex flex-col transform transition-all duration-300",Nr[p],z.crtEffects&&I?`animate-crt-power-on ${g} ${A}`:z.crtEffects&&W?`animate-crt-power-off ${g} ${A}`:W?`scale-95 opacity-0 ${g}/20`:I?`scale-105 opacity-90 ${g} ${E}`:`scale-100 opacity-100 ${T}`,L)},[p,z.crtEffects,W,I,L,h]);return e?_e.createPortal(t.jsx("div",{ref:X,className:`fixed z-50 flex items-center justify-center p-4 transition-all ease-out ${N} ${W?"bg-black/0 backdrop-blur-none opacity-0 duration-800":I?"bg-black/30 backdrop-blur-md opacity-100 duration-500":"bg-black/30 backdrop-blur-sm opacity-100 duration-300"}`,style:{top:0,left:0,width:"100vw",height:"100vh"},onClick:Z,"aria-hidden":!0,children:t.jsxs("div",{ref:Q,className:o,onClick:u=>u.stopPropagation(),role:"dialog","aria-modal":"true","aria-labelledby":a?ee.current:void 0,tabIndex:-1,children:[M&&t.jsx("button",{onClick:F,className:`absolute top-4 right-4 text-muted hover:text-accent transition-all duration-300 z-20 rounded-full w-8 h-8 flex items-center justify-center cursor-pointer transform ${W?"scale-0 rotate-180 opacity-0":I?"scale-0 opacity-0":"scale-100 opacity-100 hover:scale-110 hover:bg-accent/10"}`,"aria-label":"Close modal",children:t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",className:"relative",children:t.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),a&&t.jsx("div",{className:_("px-6 py-4 border-b flex-shrink-0 transition-all duration-300",h==="danger"?"border-error/20":"border-accent/20",I?"opacity-0 translate-y-2":"opacity-100 translate-y-0"),children:t.jsx("h2",{id:ee.current,className:_("text-lg font-semibold",h==="danger"?"text-error":"text-primary"),children:a})}),t.jsx("div",{className:`flex-1 overflow-auto p-6 transition-all duration-500 ${I?"opacity-0 translate-y-4":"opacity-100 translate-y-0"}`,children:s}),(n||c||l)&&t.jsx("div",{className:_("px-6 py-4 border-t flex-shrink-0 transition-all duration-300",h==="danger"?"border-error/20":"border-accent/20",I?"opacity-0 translate-y-2":"opacity-100 translate-y-0"),children:n||t.jsxs("div",{className:"flex flex-col-reverse sm:flex-row justify-between items-center gap-3",children:[t.jsx("span",{className:"text-muted text-xs font-mono hidden sm:block",children:"> ESC to abort"}),t.jsxs("div",{className:"flex gap-3 w-full sm:w-auto",children:[m&&c&&t.jsx(we,{variant:"ghost",size:"sm",onClick:Y,className:"flex-1 sm:flex-none",children:i}),v&&l&&t.jsx(we,{variant:h==="danger"?"danger":"primary",size:"sm",onClick:q,disabled:x,className:"flex-1 sm:flex-none",children:d})]})]})})]})}),document.body):null});mt.displayName="CyberUI.Modal";const ft=({children:e,variant:r="primary",as:a="span",className:s=""})=>{const n=l=>({primary:"bg-linear-(--gradient-primary)",secondary:"bg-linear-(--gradient-secondary)",accent:"bg-linear-(--gradient-accent)"})[l];return t.jsx(a,{className:_("bg-clip-text text-transparent inline-block",n(r),s),children:e})};ft.displayName="CyberUI.GradientText";const bt=({children:e,showLine:r=!0,size:a="md",className:s=""})=>{const n={sm:"text-xs",md:"text-sm",lg:"text-base"},c={sm:"mb-4",md:"mb-6",lg:"mb-8"},l={sm:"gap-3",md:"gap-4",lg:"gap-5"},i=V(a,n),d=V(a,c),x=V(a,l),m=_("flex items-center",x,d),v=_("uppercase tracking-[0.2em] text-secondary font-bold whitespace-nowrap",i);return t.jsxs("div",{className:_(m,s),children:[t.jsx("h2",{className:v,children:e}),r&&t.jsx("div",{className:"h-[1px] w-full bg-gradient-to-r from-secondary/50 to-transparent"})]})};bt.displayName="CyberUI.SectionTitle";const pt=({events:e,size:r="md",className:a=""})=>{const s={sm:"w-5 h-5",md:"w-6 h-6",lg:"w-8 h-8"},n={sm:"inset-1.5",md:"inset-2",lg:"inset-2.5"},c={sm:"text-sm",md:"text-base",lg:"text-lg"},l={sm:"text-xs",md:"text-sm",lg:"text-base"},i={sm:"text-[10px]",md:"text-xs",lg:"text-sm"},d={sm:"gap-3",md:"gap-4",lg:"gap-5"},x={sm:"space-y-4",md:"space-y-6",lg:"space-y-8"},m=V(r,s),v=V(r,n),p=V(r,c),h=V(r,l),k=V(r,i),y=V(r,d),w=V(r,x),L=M=>{const $={success:{border:"border-success bg-success/30 shadow-[0_0_10px_var(--color-success)]",background:"border-success bg-success/30 shadow-[0_0_10px_var(--color-success)]",inner:"bg-success/60"},error:{border:"border-error bg-error/30 shadow-[0_0_10px_var(--color-error)]",background:"border-error bg-error/30 shadow-[0_0_10px_var(--color-error)]",inner:"bg-error/60"},warning:{border:"border-warning bg-warning/30 shadow-[0_0_10px_var(--color-warning)]",background:"border-warning bg-warning/30 shadow-[0_0_10px_var(--color-warning)]",inner:"bg-warning/60"},info:{border:"border-info bg-info/30 shadow-[0_0_10px_var(--color-info)]",background:"border-info bg-info/30 shadow-[0_0_10px_var(--color-info)]",inner:"bg-info/60"}};return $[M]||$.info},N="polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)";return t.jsx("div",{className:_(w,a),children:e.map((M,$)=>{const S=L(M.status);return t.jsxs("div",{className:_("flex",y,"group"),children:[t.jsxs("div",{className:"flex flex-col items-center",children:[t.jsxs("div",{className:_("relative flex-shrink-0 mt-1.5",m),children:[t.jsx("div",{className:_("absolute inset-0 border-2 transition-all duration-300",S.border),style:{clipPath:N}}),t.jsx("div",{className:_("absolute",v,S.inner),style:{clipPath:N}})]}),$<e.length-1&&t.jsx("div",{className:"w-[2px] flex-1 bg-gradient-to-b from-secondary/50 to-transparent mt-2"})]}),t.jsxs("div",{className:"flex-1 pb-6",children:[t.jsxs("div",{className:"flex items-center justify-between mb-1",children:[t.jsx("h4",{className:_("font-semibold text-default group-hover:text-secondary transition-colors",p),children:M.title}),t.jsx("span",{className:_("text-muted whitespace-nowrap ml-4",k),children:M.time})]}),M.description&&t.jsx("p",{className:_("text-muted mt-1",h),children:M.description})]})]},$)})})};pt.displayName="CyberUI.Timeline";const gt=({items:e,current:r=0,orientation:a={base:"vertical",md:"horizontal"},className:s=""})=>{const c=Le(a,"vertical")==="vertical",l=(p,h)=>{const k=p.status==="completed"||p.status===void 0&&h<r,y=p.status==="current"||p.status===void 0&&h===r&&r<e.length,w=p.status==="error";return{isCompleted:k,isCurrent:y,isError:w}},i=(p,h,k)=>{const y=_("relative px-2 py-1 pb-2 font-bold text-sm transition-colors duration-200 whitespace-nowrap overflow-hidden","after:content-[''] after:absolute after:left-0 after:right-0 after:bottom-0 after:h-[2px] after:w-full after:scale-x-0 after:origin-center after:transition-transform after:duration-300 after:ease-out","before:content-[''] before:absolute before:left-1/2 before:-translate-x-1/2 before:-bottom-[3px] before:w-1.5 before:h-1.5 before:bg-accent before:rotate-45 before:rounded-[2px] before:opacity-0 before:transition-opacity before:duration-200");return p?_(y,"text-secondary after:bg-linear-(--gradient-accent) after:shadow-lg-accent after:scale-x-100"):h?_(y,"text-secondary before:opacity-100"):k?_(y,"text-error"):_(y,"text-muted")},d=(p,h,k,y)=>({color:"var(--color-primary)",opacity:k?.8:.3,filter:k?"drop-shadow(0 0 4px color-mix(in srgb, var(--color-primary), transparent 40%))":"none",animation:h&&p?`chevronFlow 1.5s ease-in-out infinite ${y*.2}s`:"none"}),x=_(c?"flex flex-col items-start gap-0":"flex items-center justify-center gap-4",s),m=(p,h,k)=>p?"text-secondary drop-shadow-[0_0_4px_var(--color-secondary)]":h?"text-accent drop-shadow-[0_0_6px_var(--color-accent)]":k?"text-error drop-shadow-[0_0_4px_var(--color-error)]":"text-muted/50",v=(p,h,k)=>{const y=_("relative font-bold text-sm transition-colors duration-200 pb-1 w-fit","after:content-[''] after:absolute after:left-0 after:right-0 after:bottom-0 after:h-[2px] after:w-full after:scale-x-0 after:origin-left after:transition-transform after:duration-300 after:ease-out");return p?_(y,"text-secondary after:bg-linear-(--gradient-accent) after:shadow-lg-accent after:scale-x-100"):h?_(y,"text-secondary"):k?_(y,"text-error"):_(y,"text-muted")};return t.jsx("div",{className:x,children:e.map((p,h)=>{const{isCompleted:k,isCurrent:y,isError:w}=l(p,h),L=h<e.length-1&&(e[h+1]?.status==="current"||e[h+1]?.status===void 0&&h+1===r&&r<e.length),N=h<e.length-1&&(e[h+1]?.status==="completed"||e[h+1]?.status===void 0&&h+1<r);return t.jsxs(f.Fragment,{children:[c?t.jsxs("div",{className:"flex flex-col w-full",children:[t.jsxs("div",{className:"flex items-start gap-1.5",children:[t.jsx("span",{className:_("text-xs leading-5 flex-shrink-0",m(k,y,w)),children:"▸"}),t.jsxs("div",{className:"flex flex-col",children:[t.jsx("div",{className:v(k,y,w),children:p.title}),p.description&&t.jsx("div",{className:"text-xs text-muted mt-0.5 font-normal",children:p.description})]})]}),h<e.length-1&&t.jsx("div",{className:"flex flex-col items-center py-0.5",children:[0,1,2].map(M=>t.jsx("div",{className:"text-sm font-bold transition-all duration-300 rotate-90 leading-[0.6]",style:d(k,L,N,M),children:"›"},M))})]}):t.jsxs("div",{className:"flex flex-col items-center",children:[t.jsx("div",{className:i(k,y,w),children:p.title}),p.description&&t.jsx("div",{className:"text-xs text-muted mt-1 font-normal",children:p.description})]}),!c&&h<e.length-1&&t.jsx("div",{className:"flex",children:[0,1,2].map(M=>t.jsx("div",{className:"text-2xl font-bold transition-all duration-300",style:d(k,L,N,M),children:"›"},M))})]},h)})})};gt.displayName="CyberUI.Steps";const ht=({variant:e="gradient",orientation:r="horizontal",className:a=""})=>{const s=l=>l==="horizontal"?"w-full h-[1px]":"w-[1px] h-full",n=(l,i)=>({gradient:i==="horizontal"?"bg-gradient-to-r from-transparent via-secondary/50 to-transparent":"bg-gradient-to-b from-transparent via-secondary/50 to-transparent",solid:"bg-secondary/30",dashed:`border-dashed border-secondary/50 ${i==="horizontal"?"border-t":"border-l"}`})[l],c=_(s(r),n(e,r),a);return t.jsx("div",{className:c})};ht.displayName="CyberUI.Divider";const xt=({label:e,error:r,size:a="md",className:s="",checked:n,onChange:c,onCheckedChange:l,disabled:i,...d})=>{const[x,m]=f.useState(d.defaultChecked||!1),v=n!==void 0?n:x,p=S=>{i||(n===void 0&&m(S.target.checked),c?.(S),l?.(S.target.checked))},h={sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"},k={sm:"text-xs",md:"text-sm",lg:"text-base"},y={sm:"ml-6",md:"ml-8",lg:"ml-9"},w=V(a,h),L=V(a,k),N=V(a,y),M=S=>i?"stroke-muted/20":_("transition-all duration-200 group-hover:stroke-secondary group-hover:stroke-[1.5]",S?"stroke-secondary":"stroke-secondary/50"),$=S=>{const z="transition-all duration-200";return i?_(z,S?"fill-muted/20":"fill-transparent"):_(z,S?"fill-secondary":"fill-transparent")};return t.jsxs("div",{className:_("flex flex-col gap-1",s,i&&"opacity-50 cursor-not-allowed"),children:[t.jsxs("label",{className:_("flex items-center gap-3 group",i?"cursor-not-allowed pointer-events-none":"cursor-pointer"),children:[t.jsxs("div",{className:_("relative flex-shrink-0",w),children:[t.jsx("input",{type:"checkbox",className:"absolute opacity-0 w-0 h-0",checked:v,onChange:p,disabled:i,...d}),t.jsxs("svg",{className:"absolute inset-0 w-full h-full pointer-events-none",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M 1 1 L 19 1 L 19 15 L 15 19 L 1 19 Z",className:"fill-base/50"}),t.jsx("path",{d:"M 1 1 L 19 1 L 19 15 L 15 19 L 1 19 Z",className:M(v),strokeWidth:"1",fill:"none"}),t.jsx("path",{d:"M 4 4 L 16 4 L 16 13 L 13 16 L 4 16 Z",className:$(v)})]})]}),e&&t.jsx("span",{className:_("transition-colors",L,i?"text-muted":"text-muted group-hover:text-secondary"),children:e})]}),r&&!i&&t.jsx("span",{className:_("text-xs text-error",N),children:r})]})};xt.displayName="CyberUI.Checkbox";const oe={MOBILE_BREAKPOINT:768,STABLE_TIMEOUT:1e3,MOBILE_HIDE_DELAY:1e3,VELOCITY_MULTIPLIER:2,DISTANCE_THRESHOLD:100,MAX_ANIMATION_SPEED:5,MIN_GLOW_DURATION:150},Sr=(e={})=>{const{glowColor:r="primary",sensitivity:a=2,disabled:s=!1,pageLevel:n,variant:c="default",className:l=""}=e,i=f.useRef(null),d=f.useRef(null),x=f.useRef(Date.now()),m=f.useRef(0),v=f.useRef(void 0),p=f.useRef([]),h=f.useRef(void 0),[k,y]=f.useState({isScrolling:!1,direction:null,velocity:0,position:0,scrollDistance:0}),[w,L]=f.useState(!1),[N,M]=f.useState(()=>typeof window>"u"?!1:window.innerWidth>=oe.MOBILE_BREAKPOINT),$=f.useRef(0),[S,z]=f.useState(n??!1);f.useEffect(()=>{if(n!==void 0)z(n);else{const u=setTimeout(()=>{const g=i.current!==null;z(!g)},0);return()=>clearTimeout(u)}},[n]);const W=f.useCallback(u=>{switch(u){case"transparent":return{background:"transparent",backdropFilter:"none",border:"none",boxShadow:"none"};case"minimal":return{background:"rgba(26, 26, 46, 0.6)",backdropFilter:"blur(3px)",border:"1px solid rgba(255, 0, 93, 0.2)",boxShadow:"0 0 5px rgba(255, 0, 93, 0.2)"};case"default":default:return{background:"linear-gradient(180deg, rgba(26, 26, 46, 0.95), rgba(45, 45, 68, 0.95))",backdropFilter:"blur(6px)",border:"1px solid rgba(255, 0, 93, 0.3)",boxShadow:"0 0 10px rgba(255, 0, 93, 0.3), inset 0 0 10px rgba(255, 0, 93, 0.1)"}}},[]),b=f.useCallback(()=>{const u=window.innerWidth<oe.MOBILE_BREAKPOINT;return{isMobile:u,scrollbarWidth:u?12:16,arrowSize:u?10:14,lineSize:u?8:12,arrowGap:u?2:4}},[]),I=f.useCallback((u,g,A,E)=>{const T=(E+A)*2,D=A*4,G=(u-T-D)/2;return Math.floor(G/(g+A))},[]),H=f.useCallback(u=>{if(S){if(!document.querySelector("#cyber-page-scrollbar-styles")){const g=document.createElement("style");g.id="cyber-page-scrollbar-styles",g.textContent=`
36
36
  html::-webkit-scrollbar { display: none; }
37
37
  html { scrollbar-width: none; -ms-overflow-style: none; }
38
38
  `,document.head.appendChild(g)}}else if(u){if(u.style.scrollbarWidth="none",u.style.msOverflowStyle="none",!document.querySelector("#cyber-scrollbar-styles")){const g=document.createElement("style");g.id="cyber-scrollbar-styles",g.textContent=`
39
39
  .cyber-scrollbar-container::-webkit-scrollbar { display: none; }
40
- `,document.head.appendChild(g)}u.classList.add("cyber-scrollbar-container")}},[S]),X=m.useCallback((u,g,A,E)=>{const T=document.createElement("div"),D=u==="arrow";D&&g?(T.className=`cyber-arrow cyber-arrow-${g} cyber-arrow-${A}`,T.innerHTML=g==="up"?"▲":"▼"):(T.className=`cyber-line cyber-line-${A}`,T.innerHTML="=");const B=E.isMobile?"none":`drop-shadow(0 0 6px var(--color-${r}))
40
+ `,document.head.appendChild(g)}u.classList.add("cyber-scrollbar-container")}},[S]),X=f.useCallback((u,g,A,E)=>{const T=document.createElement("div"),D=u==="arrow";D&&g?(T.className=`cyber-arrow cyber-arrow-${g} cyber-arrow-${A}`,T.innerHTML=g==="up"?"▲":"▼"):(T.className=`cyber-line cyber-line-${A}`,T.innerHTML="=");const B=E.isMobile?"none":`drop-shadow(0 0 6px var(--color-${r}))
41
41
  drop-shadow(0 0 12px var(--color-${r}))
42
42
  drop-shadow(0 0 18px var(--color-${r}))`;return T.style.cssText=`
43
43
  font-size: ${D?E.arrowSize:E.lineSize}px;
@@ -47,7 +47,7 @@ React keys must be passed directly to JSX without using spread:
47
47
  filter: ${B};
48
48
  line-height: 1;
49
49
  font-weight: bold;
50
- `,T},[r]),Q=m.useCallback(()=>{if(S)return{height:window.innerHeight,top:0,right:0};{const g=i.current.getBoundingClientRect();return{height:g.height,top:g.top,right:window.innerWidth-g.right}}},[S]),te=m.useCallback(()=>{if(s||!S&&!i.current||(d.current&&d.current.remove(),!(S?document.body.scrollHeight>window.innerHeight:i.current.scrollHeight>i.current.clientHeight)))return;const g=b(),A=Q(),E=P(A.height,g.arrowSize,g.arrowGap,g.lineSize);U(S?void 0:i.current||void 0);const T=document.createElement("div");T.className=`cyber-scrollbar ${l}`.trim();const B=g.isMobile?"transparent":c,G=W(B);T.style.cssText=`
50
+ `,T},[r]),Q=f.useCallback(()=>{if(S)return{height:window.innerHeight,top:0,right:0};{const g=i.current.getBoundingClientRect();return{height:g.height,top:g.top,right:window.innerWidth-g.right}}},[S]),te=f.useCallback(()=>{if(s||!S&&!i.current||(d.current&&d.current.remove(),!(S?document.body.scrollHeight>window.innerHeight:i.current.scrollHeight>i.current.clientHeight)))return;const g=b(),A=Q(),E=I(A.height,g.arrowSize,g.arrowGap,g.lineSize);H(S?void 0:i.current||void 0);const T=document.createElement("div");T.className=`cyber-scrollbar ${l}`.trim();const B=g.isMobile?"transparent":c,G=W(B);T.style.cssText=`
51
51
  position: fixed;
52
52
  top: ${A.top}px;
53
53
  right: ${A.right}px;
@@ -65,10 +65,10 @@ React keys must be passed directly to JSX without using spread:
65
65
  border-radius: ${S?"4px 0 0 4px":"4px"};
66
66
  border: ${G.border};
67
67
  box-shadow: ${G.boxShadow};
68
- `;for(let F=0;F<E;F++)T.appendChild(X("arrow","up",F,g));for(let F=0;F<2;F++)T.appendChild(X("line",void 0,F,g));for(let F=0;F<E;F++)T.appendChild(X("arrow","down",F,g));document.body.appendChild(T),d.current=T;const z=S?void 0:()=>{const F=i.current;if(F){const se=F.getBoundingClientRect();T.style.top=`${se.top}px`,T.style.right=`${window.innerWidth-se.right}px`,T.style.height=`${se.height}px`}};return z&&(window.addEventListener("resize",z),window.addEventListener("scroll",z)),()=>{T.remove(),!S&&i.current&&i.current.classList.remove("cyber-scrollbar-container"),z&&(window.removeEventListener("resize",z),window.removeEventListener("scroll",z))}},[s,S,N,U,Q,X,b,P,W,c,l]),ee=m.useCallback((u,g)=>{const A=Math.max(1,Math.min(3,Math.ceil(u*.8))),E=Math.floor(g/oe.DISTANCE_THRESHOLD);return A+E},[]),V=m.useCallback((u,g,A)=>{const E=Array.from(u).filter(D=>D.classList.contains(`cyber-arrow-${g}`)),T=Math.min(A,E.length);return g==="up"?E.slice(-T):E.slice(0,T)},[]),Y=m.useCallback((u,g,A)=>{const E=Math.min(g*a,oe.MAX_ANIMATION_SPEED),T=window.innerWidth<oe.MOBILE_BREAKPOINT,D=Math.max(300/E,oe.MIN_GLOW_DURATION)*(T?1.5:1),B=Math.max(40,80/E)*(T?1.25:1),G=A==="up"?[...u].reverse():u;G.forEach(z=>{z.style.opacity="0.3"}),G.forEach((z,F)=>{const se=F*B,ue=setTimeout(()=>{z.style.opacity="1";const ge=setTimeout(()=>{z.style.opacity="0.3"},D);p.current.push(ge)},se);p.current.push(ue)})},[a]),q=m.useCallback(()=>{if(!d.current)return;const{isScrolling:u,direction:g,velocity:A,scrollDistance:E}=k,T=d.current.querySelectorAll(".cyber-arrow"),D=d.current.querySelectorAll(".cyber-line");if(u&&g){D.forEach(G=>{G.style.opacity="0"});const B=ee(A,E);if(B!==$.current){p.current.forEach(z=>clearTimeout(z)),p.current=[],T.forEach(z=>{z.style.opacity="0"});const G=V(Array.from(T),g,B);Y(G,A,g),$.current=B}}else p.current.forEach(B=>clearTimeout(B)),p.current=[],$.current=0,T.forEach(B=>{B.style.opacity="0"}),w&&D.forEach(B=>{B.style.opacity="0.6"})},[k,w,Y,ee,V]),Z=m.useRef(null),J=m.useCallback(()=>{if(s||!S&&!i.current)return;const u=Date.now(),g=S?{currentScrollTop:window.scrollY,scrollHeight:document.body.scrollHeight,clientHeight:window.innerHeight}:{currentScrollTop:i.current.scrollTop,scrollHeight:i.current.scrollHeight,clientHeight:i.current.clientHeight},A=u-x.current,E=g.currentScrollTop-f.current,D=Math.abs(E)/Math.max(A,1)*oe.VELOCITY_MULTIPLIER,B=E>0?"down":E<0?"up":null,G=g.currentScrollTop/(g.scrollHeight-g.clientHeight);w||L(!0);const z=window.innerWidth<oe.MOBILE_BREAKPOINT;z&&!N&&M(!0),y(F=>({isScrolling:!0,direction:B,velocity:D,position:G,scrollDistance:F.direction!==B?Math.abs(E):F.scrollDistance+Math.abs(E)})),v.current&&clearTimeout(v.current),h.current&&clearTimeout(h.current),v.current=setTimeout(()=>{p.current.forEach(F=>clearTimeout(F)),p.current=[],y(F=>({...F,isScrolling:!1,velocity:0,scrollDistance:0})),z&&(h.current=setTimeout(()=>{M(!1)},oe.MOBILE_HIDE_DELAY))},oe.STABLE_TIMEOUT),x.current=u,f.current=g.currentScrollTop},[s,S,w,N]),o=m.useCallback(()=>{Z.current===null&&(Z.current=requestAnimationFrame(()=>{Z.current=null,J()}))},[J]);return m.useEffect(()=>{if(s||!S&&!i.current)return;const u=te(),g=S?window:i.current;return g.addEventListener("scroll",o,{passive:!0}),()=>{g.removeEventListener("scroll",o),v.current&&clearTimeout(v.current),h.current&&clearTimeout(h.current),p.current.forEach(A=>clearTimeout(A)),Z.current!==null&&(cancelAnimationFrame(Z.current),Z.current=null),u?.()}},[te,o,s,S]),m.useEffect(()=>{q()},[q]),i},rt=m.createContext(void 0),Er=()=>{const e=m.useContext(rt);if(e===void 0)throw new Error("useCyberNotifications must be used within a CyberNotificationProvider");return e},Tr=(e={})=>{const{min:r=5,max:a=95,speed:s=30}=e,[n,c]=m.useState(0),[l,i]=m.useState(1);return m.useEffect(()=>{const d=setInterval(()=>{c(x=>{let f=x+l;return f>=a?(f=a,i(-1)):f<=r&&(f=r,i(1)),f})},s);return()=>clearInterval(d)},[l,r,a,s]),n},_r=({children:e,position:r="top-right",defaultDuration:a=2500})=>{const[s,n]=m.useState([]),c=m.useCallback((f,v,p,h={})=>{const k=Date.now().toString(),{autoHide:y=!0,duration:w=a}=h;return n(L=>[...L,{id:k,type:f,title:v,message:p}]),y&&setTimeout(()=>{n(L=>L.map(N=>N.id===k?{...N,isClosing:!0}:N)),setTimeout(()=>{n(L=>L.filter(N=>N.id!==k))},500)},w),k},[a]),l=m.useCallback(f=>{n(v=>v.map(p=>p.id===f?{...p,isClosing:!0}:p)),setTimeout(()=>{n(v=>v.filter(p=>p.id!==f))},500)},[]),i=m.useCallback(()=>{n([])},[]),d=m.useCallback((f,v)=>{n(p=>p.map(h=>h.id===f?{...h,width:v}:h))},[]),x={notifications:s,showNotification:c,hideNotification:l,clearAllNotifications:i};return t.jsxs(rt.Provider,{value:x,children:[e,s.length>0&&t.jsx("div",{className:`fixed z-50 ${$r(r)}`,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"true",children:s.map((f,v)=>t.jsx("div",{className:"absolute",style:{right:r.includes("right")?0:void 0,left:r.includes("left")?0:void 0,top:`${v*70}px`,width:f.width?`${f.width}px`:"auto"},children:t.jsx("div",{className:`transform transition-all duration-500 ease-out scale-75 opacity-90 w-full ${r.includes("right")?"flex justify-end":"flex justify-start"} ${f.isClosing?`${r.includes("right")?"translate-x-full":"-translate-x-full"} opacity-0`:"translate-x-0 opacity-90"}`,style:{whiteSpace:"nowrap",transformOrigin:r.includes("right")?"right center":"left center",transform:f.isClosing?`translateX(${r.includes("right")?"100%":"-100%"}) scale(0.75)`:`translateX(${f.width?"0px":r.includes("right")?"100%":"-100%"}) scale(0.75)`},ref:p=>{if(p&&!f.width){const h=p.scrollWidth;d(f.id,h)}},children:t.jsx(et,{type:f.type,title:f.title,message:f.message,onClose:()=>l(f.id),size:"sm"})})},f.id))})]})},$r=e=>{const r={"top-right":"top-4 right-4","top-left":"top-4 left-4","bottom-right":"bottom-4 right-4","bottom-left":"bottom-4 left-4"};return r[e]||r["top-right"]},Mr="2.3.0";if(typeof window<"u"){const e=()=>{getComputedStyle(document.documentElement).getPropertyValue("--color-primary").trim()||console.warn(`[cyberui-2045] Stylesheet not detected.
68
+ `;for(let U=0;U<E;U++)T.appendChild(X("arrow","up",U,g));for(let U=0;U<2;U++)T.appendChild(X("line",void 0,U,g));for(let U=0;U<E;U++)T.appendChild(X("arrow","down",U,g));document.body.appendChild(T),d.current=T;const P=S?void 0:()=>{const U=i.current;if(U){const se=U.getBoundingClientRect();T.style.top=`${se.top}px`,T.style.right=`${window.innerWidth-se.right}px`,T.style.height=`${se.height}px`}};return P&&(window.addEventListener("resize",P),window.addEventListener("scroll",P)),()=>{T.remove(),!S&&i.current&&i.current.classList.remove("cyber-scrollbar-container"),P&&(window.removeEventListener("resize",P),window.removeEventListener("scroll",P))}},[s,S,N,H,Q,X,b,I,W,c,l]),ee=f.useCallback((u,g)=>{const A=Math.max(1,Math.min(3,Math.ceil(u*.8))),E=Math.floor(g/oe.DISTANCE_THRESHOLD);return A+E},[]),F=f.useCallback((u,g,A)=>{const E=Array.from(u).filter(D=>D.classList.contains(`cyber-arrow-${g}`)),T=Math.min(A,E.length);return g==="up"?E.slice(-T):E.slice(0,T)},[]),Y=f.useCallback((u,g,A)=>{const E=Math.min(g*a,oe.MAX_ANIMATION_SPEED),T=window.innerWidth<oe.MOBILE_BREAKPOINT,D=Math.max(300/E,oe.MIN_GLOW_DURATION)*(T?1.5:1),B=Math.max(40,80/E)*(T?1.25:1),G=A==="up"?[...u].reverse():u;G.forEach(P=>{P.style.opacity="0.3"}),G.forEach((P,U)=>{const se=U*B,ue=setTimeout(()=>{P.style.opacity="1";const ge=setTimeout(()=>{P.style.opacity="0.3"},D);p.current.push(ge)},se);p.current.push(ue)})},[a]),q=f.useCallback(()=>{if(!d.current)return;const{isScrolling:u,direction:g,velocity:A,scrollDistance:E}=k,T=d.current.querySelectorAll(".cyber-arrow"),D=d.current.querySelectorAll(".cyber-line");if(u&&g){D.forEach(G=>{G.style.opacity="0"});const B=ee(A,E);if(B!==$.current){p.current.forEach(P=>clearTimeout(P)),p.current=[],T.forEach(P=>{P.style.opacity="0"});const G=F(Array.from(T),g,B);Y(G,A,g),$.current=B}}else p.current.forEach(B=>clearTimeout(B)),p.current=[],$.current=0,T.forEach(B=>{B.style.opacity="0"}),w&&D.forEach(B=>{B.style.opacity="0.6"})},[k,w,Y,ee,F]),Z=f.useRef(null),J=f.useCallback(()=>{if(s||!S&&!i.current)return;const u=Date.now(),g=S?{currentScrollTop:window.scrollY,scrollHeight:document.body.scrollHeight,clientHeight:window.innerHeight}:{currentScrollTop:i.current.scrollTop,scrollHeight:i.current.scrollHeight,clientHeight:i.current.clientHeight},A=u-x.current,E=g.currentScrollTop-m.current,D=Math.abs(E)/Math.max(A,1)*oe.VELOCITY_MULTIPLIER,B=E>0?"down":E<0?"up":null,G=g.currentScrollTop/(g.scrollHeight-g.clientHeight);w||L(!0);const P=window.innerWidth<oe.MOBILE_BREAKPOINT;P&&!N&&M(!0),y(U=>({isScrolling:!0,direction:B,velocity:D,position:G,scrollDistance:U.direction!==B?Math.abs(E):U.scrollDistance+Math.abs(E)})),v.current&&clearTimeout(v.current),h.current&&clearTimeout(h.current),v.current=setTimeout(()=>{p.current.forEach(U=>clearTimeout(U)),p.current=[],y(U=>({...U,isScrolling:!1,velocity:0,scrollDistance:0})),P&&(h.current=setTimeout(()=>{M(!1)},oe.MOBILE_HIDE_DELAY))},oe.STABLE_TIMEOUT),x.current=u,m.current=g.currentScrollTop},[s,S,w,N]),o=f.useCallback(()=>{Z.current===null&&(Z.current=requestAnimationFrame(()=>{Z.current=null,J()}))},[J]);return f.useEffect(()=>{if(s||!S&&!i.current)return;const u=te(),g=S?window:i.current;return g.addEventListener("scroll",o,{passive:!0}),()=>{g.removeEventListener("scroll",o),v.current&&clearTimeout(v.current),h.current&&clearTimeout(h.current),p.current.forEach(A=>clearTimeout(A)),Z.current!==null&&(cancelAnimationFrame(Z.current),Z.current=null),u?.()}},[te,o,s,S]),f.useEffect(()=>{q()},[q]),i},yt=f.createContext(void 0),Er=()=>{const e=f.useContext(yt);if(e===void 0)throw new Error("useCyberNotifications must be used within a CyberNotificationProvider");return e},Tr=(e={})=>{const{min:r=5,max:a=95,speed:s=30}=e,[n,c]=f.useState(0),[l,i]=f.useState(1);return f.useEffect(()=>{const d=setInterval(()=>{c(x=>{let m=x+l;return m>=a?(m=a,i(-1)):m<=r&&(m=r,i(1)),m})},s);return()=>clearInterval(d)},[l,r,a,s]),n},_r=({children:e,position:r="top-right",defaultDuration:a=2500})=>{const[s,n]=f.useState([]),c=f.useCallback((m,v,p,h={})=>{const k=Date.now().toString(),{autoHide:y=!0,duration:w=a}=h;return n(L=>[...L,{id:k,type:m,title:v,message:p}]),y&&setTimeout(()=>{n(L=>L.map(N=>N.id===k?{...N,isClosing:!0}:N)),setTimeout(()=>{n(L=>L.filter(N=>N.id!==k))},500)},w),k},[a]),l=f.useCallback(m=>{n(v=>v.map(p=>p.id===m?{...p,isClosing:!0}:p)),setTimeout(()=>{n(v=>v.filter(p=>p.id!==m))},500)},[]),i=f.useCallback(()=>{n([])},[]),d=f.useCallback((m,v)=>{n(p=>p.map(h=>h.id===m?{...h,width:v}:h))},[]),x={notifications:s,showNotification:c,hideNotification:l,clearAllNotifications:i};return t.jsxs(yt.Provider,{value:x,children:[e,s.length>0&&t.jsx("div",{className:`fixed z-50 ${$r(r)}`,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"true",children:s.map((m,v)=>t.jsx("div",{className:"absolute",style:{right:r.includes("right")?0:void 0,left:r.includes("left")?0:void 0,top:`${v*70}px`,width:m.width?`${m.width}px`:"auto"},children:t.jsx("div",{className:`transform transition-all duration-500 ease-out scale-75 opacity-90 w-full ${r.includes("right")?"flex justify-end":"flex justify-start"} ${m.isClosing?`${r.includes("right")?"translate-x-full":"-translate-x-full"} opacity-0`:"translate-x-0 opacity-90"}`,style:{whiteSpace:"nowrap",transformOrigin:r.includes("right")?"right center":"left center",transform:m.isClosing?`translateX(${r.includes("right")?"100%":"-100%"}) scale(0.75)`:`translateX(${m.width?"0px":r.includes("right")?"100%":"-100%"}) scale(0.75)`},ref:p=>{if(p&&!m.width){const h=p.scrollWidth;d(m.id,h)}},children:t.jsx(Te,{type:m.type,title:m.title,message:m.message,onClose:()=>l(m.id),size:"sm"})})},m.id))})]})},$r=e=>{const r={"top-right":"top-4 right-4","top-left":"top-4 left-4","bottom-right":"bottom-4 right-4","bottom-left":"bottom-4 left-4"};return r[e]||r["top-right"]},Mr="2.3.1";if(typeof window<"u"){const e=()=>{getComputedStyle(document.documentElement).getPropertyValue("--color-primary").trim()||console.warn(`[cyberui-2045] Stylesheet not detected.
69
69
  Add this line to your app entry file (e.g. main.tsx / index.tsx):
70
70
 
71
71
  import 'cyberui-2045/styles.css';
72
72
 
73
- Without it all components lose colors, backgrounds, and animations.`)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e,{once:!0}):e()}R.Badge=ur,R.Button=Ee,R.Card=dr,R.Carousel=hr,R.Checkbox=Nr,R.CircularProgress=tr,R.CyberNotificationProvider=_r,R.Divider=Cr,R.GradientText=vr,R.Image=pe,R.Input=cr,R.LinearProgress=ir,R.Modal=tt,R.Notification=et,R.RESPONSIVE_SIZE_MAPS=re,R.SectionTitle=wr,R.SegmentedProgress=lr,R.Select=mr,R.Skeleton=br,R.Steps=jr,R.TabNavigation=dt,R.Timeline=kr,R.Toggle=fr,R.cn=_,R.combineResponsiveClasses=nt,R.getResponsiveClasses=H,R.useAnimatedProgress=Tr,R.useCyberNotifications=Er,R.useCyberScrollbar=Sr,R.version=Mr,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
73
+ Without it all components lose colors, backgrounds, and animations.`)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e,{once:!0}):e()}R.Badge=lt,R.Button=we,R.Card=nt,R.Carousel=Cr,R.Checkbox=xt,R.CircularProgress=rt,R.CyberNotificationProvider=_r,R.Divider=ht,R.GradientText=ft,R.Image=pe,R.Input=at,R.LinearProgress=ot,R.Modal=mt,R.Notification=Te,R.RESPONSIVE_SIZE_MAPS=re,R.SectionTitle=bt,R.SegmentedProgress=st,R.Select=ct,R.Skeleton=dt,R.Steps=gt,R.TabNavigation=Ie,R.Timeline=pt,R.Toggle=it,R.cn=_,R.combineResponsiveClasses=Ct,R.getResponsiveClasses=V,R.useAnimatedProgress=Tr,R.useCyberNotifications=Er,R.useCyberScrollbar=Sr,R.version=Mr,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
74
74
  //# sourceMappingURL=index.js.map