@igamingcareer/igaming-components 1.0.89 → 1.0.91

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
@@ -14,20 +14,20 @@
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 oN;function UT(){return oN||(oN=1,process.env.NODE_ENV!=="production"&&function(){var t=M,a=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),x=Symbol.iterator,f="@@iterator";function v(P){if(P===null||typeof P!="object")return null;var B=x&&P[x]||P[f];return typeof B=="function"?B:null}var k=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(P){{for(var B=arguments.length,R=new Array(B>1?B-1:0),z=1;z<B;z++)R[z-1]=arguments[z];b("error",P,R)}}function b(P,B,R){{var z=k.ReactDebugCurrentFrame,Y=z.getStackAddendum();Y!==""&&(B+="%s",R=R.concat([Y]));var oe=R.map(function(pe){return String(pe)});oe.unshift("Warning: "+B),Function.prototype.apply.call(console[P],console,oe)}}var C=!1,j=!1,I=!1,N=!1,S=!1,L;L=Symbol.for("react.module.reference");function q(P){return!!(typeof P=="string"||typeof P=="function"||P===r||P===i||S||P===s||P===h||P===u||N||P===m||C||j||I||typeof P=="object"&&P!==null&&(P.$$typeof===y||P.$$typeof===p||P.$$typeof===o||P.$$typeof===l||P.$$typeof===d||P.$$typeof===L||P.getModuleId!==void 0))}function _(P,B,R){var z=P.displayName;if(z)return z;var Y=B.displayName||B.name||"";return Y!==""?R+"("+Y+")":R}function A(P){return P.displayName||"Context"}function D(P){if(P==null)return null;if(typeof P.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof P=="function")return P.displayName||P.name||null;if(typeof P=="string")return P;switch(P){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case s:return"StrictMode";case h:return"Suspense";case u:return"SuspenseList"}if(typeof P=="object")switch(P.$$typeof){case l:var B=P;return A(B)+".Consumer";case o:var R=P;return A(R._context)+".Provider";case d:return _(P,P.render,"ForwardRef");case p:var z=P.displayName||null;return z!==null?z:D(P.type)||"Memo";case y:{var Y=P,oe=Y._payload,pe=Y._init;try{return D(pe(oe))}catch{return null}}}return null}var H=Object.assign,G=0,V,$,F,re,K,X,Z;function le(){}le.__reactDisabledLog=!0;function ae(){{if(G===0){V=console.log,$=console.info,F=console.warn,re=console.error,K=console.group,X=console.groupCollapsed,Z=console.groupEnd;var P={configurable:!0,enumerable:!0,value:le,writable:!0};Object.defineProperties(console,{info:P,log:P,warn:P,error:P,group:P,groupCollapsed:P,groupEnd:P})}G++}}function fe(){{if(G--,G===0){var P={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:H({},P,{value:V}),info:H({},P,{value:$}),warn:H({},P,{value:F}),error:H({},P,{value:re}),group:H({},P,{value:K}),groupCollapsed:H({},P,{value:X}),groupEnd:H({},P,{value:Z})})}G<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var we=k.ReactCurrentDispatcher,J;function ne(P,B,R){{if(J===void 0)try{throw Error()}catch(Y){var z=Y.stack.trim().match(/\n( *(at )?)/);J=z&&z[1]||""}return`
18
- `+J+P}}var ke=!1,ge;{var se=typeof WeakMap=="function"?WeakMap:Map;ge=new se}function me(P,B){if(!P||ke)return"";{var R=ge.get(P);if(R!==void 0)return R}var z;ke=!0;var Y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var oe;oe=we.current,we.current=null,ae();try{if(B){var pe=function(){throw Error()};if(Object.defineProperty(pe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(pe,[])}catch(At){z=At}Reflect.construct(P,[],pe)}else{try{pe.call()}catch(At){z=At}P.call(pe.prototype)}}else{try{throw Error()}catch(At){z=At}P()}}catch(At){if(At&&z&&typeof At.stack=="string"){for(var xe=At.stack.split(`
17
+ */var oN;function UT(){return oN||(oN=1,process.env.NODE_ENV!=="production"&&function(){var t=M,a=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),x=Symbol.iterator,f="@@iterator";function v(P){if(P===null||typeof P!="object")return null;var B=x&&P[x]||P[f];return typeof B=="function"?B:null}var k=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(P){{for(var B=arguments.length,R=new Array(B>1?B-1:0),z=1;z<B;z++)R[z-1]=arguments[z];b("error",P,R)}}function b(P,B,R){{var z=k.ReactDebugCurrentFrame,Y=z.getStackAddendum();Y!==""&&(B+="%s",R=R.concat([Y]));var ce=R.map(function(pe){return String(pe)});ce.unshift("Warning: "+B),Function.prototype.apply.call(console[P],console,ce)}}var C=!1,j=!1,I=!1,N=!1,S=!1,L;L=Symbol.for("react.module.reference");function q(P){return!!(typeof P=="string"||typeof P=="function"||P===r||P===i||S||P===s||P===h||P===u||N||P===m||C||j||I||typeof P=="object"&&P!==null&&(P.$$typeof===y||P.$$typeof===p||P.$$typeof===o||P.$$typeof===l||P.$$typeof===d||P.$$typeof===L||P.getModuleId!==void 0))}function _(P,B,R){var z=P.displayName;if(z)return z;var Y=B.displayName||B.name||"";return Y!==""?R+"("+Y+")":R}function A(P){return P.displayName||"Context"}function D(P){if(P==null)return null;if(typeof P.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof P=="function")return P.displayName||P.name||null;if(typeof P=="string")return P;switch(P){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case s:return"StrictMode";case h:return"Suspense";case u:return"SuspenseList"}if(typeof P=="object")switch(P.$$typeof){case l:var B=P;return A(B)+".Consumer";case o:var R=P;return A(R._context)+".Provider";case d:return _(P,P.render,"ForwardRef");case p:var z=P.displayName||null;return z!==null?z:D(P.type)||"Memo";case y:{var Y=P,ce=Y._payload,pe=Y._init;try{return D(pe(ce))}catch{return null}}}return null}var H=Object.assign,G=0,V,U,F,se,K,X,J;function re(){}re.__reactDisabledLog=!0;function te(){{if(G===0){V=console.log,U=console.info,F=console.warn,se=console.error,K=console.group,X=console.groupCollapsed,J=console.groupEnd;var P={configurable:!0,enumerable:!0,value:re,writable:!0};Object.defineProperties(console,{info:P,log:P,warn:P,error:P,group:P,groupCollapsed:P,groupEnd:P})}G++}}function ye(){{if(G--,G===0){var P={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:H({},P,{value:V}),info:H({},P,{value:U}),warn:H({},P,{value:F}),error:H({},P,{value:se}),group:H({},P,{value:K}),groupCollapsed:H({},P,{value:X}),groupEnd:H({},P,{value:J})})}G<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ve=k.ReactCurrentDispatcher,Z;function ae(P,B,R){{if(Z===void 0)try{throw Error()}catch(Y){var z=Y.stack.trim().match(/\n( *(at )?)/);Z=z&&z[1]||""}return`
18
+ `+Z+P}}var ge=!1,ke;{var ie=typeof WeakMap=="function"?WeakMap:Map;ke=new ie}function me(P,B){if(!P||ge)return"";{var R=ke.get(P);if(R!==void 0)return R}var z;ge=!0;var Y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ce;ce=ve.current,ve.current=null,te();try{if(B){var pe=function(){throw Error()};if(Object.defineProperty(pe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(pe,[])}catch(At){z=At}Reflect.construct(P,[],pe)}else{try{pe.call()}catch(At){z=At}P.call(pe.prototype)}}else{try{throw Error()}catch(At){z=At}P()}}catch(At){if(At&&z&&typeof At.stack=="string"){for(var xe=At.stack.split(`
19
19
  `),Te=z.stack.split(`
20
20
  `),Me=xe.length-1,Le=Te.length-1;Me>=1&&Le>=0&&xe[Me]!==Te[Le];)Le--;for(;Me>=1&&Le>=0;Me--,Le--)if(xe[Me]!==Te[Le]){if(Me!==1||Le!==1)do if(Me--,Le--,Le<0||xe[Me]!==Te[Le]){var De=`
21
- `+xe[Me].replace(" at new "," at ");return P.displayName&&De.includes("<anonymous>")&&(De=De.replace("<anonymous>",P.displayName)),typeof P=="function"&&ge.set(P,De),De}while(Me>=1&&Le>=0);break}}}finally{ke=!1,we.current=oe,fe(),Error.prepareStackTrace=Y}var dt=P?P.displayName||P.name:"",ta=dt?ne(dt):"";return typeof P=="function"&&ge.set(P,ta),ta}function Ie(P,B,R){return me(P,!1)}function Ae(P){var B=P.prototype;return!!(B&&B.isReactComponent)}function Fe(P,B,R){if(P==null)return"";if(typeof P=="function")return me(P,Ae(P));if(typeof P=="string")return ne(P);switch(P){case h:return ne("Suspense");case u:return ne("SuspenseList")}if(typeof P=="object")switch(P.$$typeof){case d:return Ie(P.render);case p:return Fe(P.type,B,R);case y:{var z=P,Y=z._payload,oe=z._init;try{return Fe(oe(Y),B,R)}catch{}}}return""}var ot=Object.prototype.hasOwnProperty,gt={},Nt=k.ReactDebugCurrentFrame;function ct(P){if(P){var B=P._owner,R=Fe(P.type,P._source,B?B.type:null);Nt.setExtraStackFrame(R)}else Nt.setExtraStackFrame(null)}function $e(P,B,R,z,Y){{var oe=Function.call.bind(ot);for(var pe in P)if(oe(P,pe)){var xe=void 0;try{if(typeof P[pe]!="function"){var Te=Error((z||"React class")+": "+R+" type `"+pe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof P[pe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Te.name="Invariant Violation",Te}xe=P[pe](B,pe,z,R,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Me){xe=Me}xe&&!(xe instanceof Error)&&(ct(Y),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",z||"React class",R,pe,typeof xe),ct(null)),xe instanceof Error&&!(xe.message in gt)&&(gt[xe.message]=!0,ct(Y),w("Failed %s type: %s",R,xe.message),ct(null))}}}var Lt=Array.isArray;function et(P){return Lt(P)}function on(P){{var B=typeof Symbol=="function"&&Symbol.toStringTag,R=B&&P[Symbol.toStringTag]||P.constructor.name||"Object";return R}}function Kt(P){try{return It(P),!1}catch{return!0}}function It(P){return""+P}function Oa(P){if(Kt(P))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",on(P)),It(P)}var E=k.ReactCurrentOwner,U={key:!0,ref:!0,__self:!0,__source:!0},te,Ne,ze;ze={};function Ke(P){if(ot.call(P,"ref")){var B=Object.getOwnPropertyDescriptor(P,"ref").get;if(B&&B.isReactWarning)return!1}return P.ref!==void 0}function He(P){if(ot.call(P,"key")){var B=Object.getOwnPropertyDescriptor(P,"key").get;if(B&&B.isReactWarning)return!1}return P.key!==void 0}function Qt(P,B){if(typeof P.ref=="string"&&E.current&&B&&E.current.stateNode!==B){var R=D(E.current.type);ze[R]||(w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',D(E.current.type),P.ref),ze[R]=!0)}}function ea(P,B){{var R=function(){te||(te=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",B))};R.isReactWarning=!0,Object.defineProperty(P,"key",{get:R,configurable:!0})}}function $n(P,B){{var R=function(){Ne||(Ne=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",B))};R.isReactWarning=!0,Object.defineProperty(P,"ref",{get:R,configurable:!0})}}var Cc=function(P,B,R,z,Y,oe,pe){var xe={$$typeof:a,type:P,key:B,ref:R,props:pe,_owner:oe};return xe._store={},Object.defineProperty(xe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(xe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:z}),Object.defineProperty(xe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Y}),Object.freeze&&(Object.freeze(xe.props),Object.freeze(xe)),xe};function Un(P,B,R,z,Y){{var oe,pe={},xe=null,Te=null;R!==void 0&&(Oa(R),xe=""+R),He(B)&&(Oa(B.key),xe=""+B.key),Ke(B)&&(Te=B.ref,Qt(B,Y));for(oe in B)ot.call(B,oe)&&!U.hasOwnProperty(oe)&&(pe[oe]=B[oe]);if(P&&P.defaultProps){var Me=P.defaultProps;for(oe in Me)pe[oe]===void 0&&(pe[oe]=Me[oe])}if(xe||Te){var Le=typeof P=="function"?P.displayName||P.name||"Unknown":P;xe&&ea(pe,Le),Te&&$n(pe,Le)}return Cc(P,xe,Te,Y,z,E.current,pe)}}var cn=k.ReactCurrentOwner,ln=k.ReactDebugCurrentFrame;function pa(P){if(P){var B=P._owner,R=Fe(P.type,P._source,B?B.type:null);ln.setExtraStackFrame(R)}else ln.setExtraStackFrame(null)}var Ha;Ha=!1;function Gn(P){return typeof P=="object"&&P!==null&&P.$$typeof===a}function W(){{if(cn.current){var P=D(cn.current.type);if(P)return`
21
+ `+xe[Me].replace(" at new "," at ");return P.displayName&&De.includes("<anonymous>")&&(De=De.replace("<anonymous>",P.displayName)),typeof P=="function"&&ke.set(P,De),De}while(Me>=1&&Le>=0);break}}}finally{ge=!1,ve.current=ce,ye(),Error.prepareStackTrace=Y}var dt=P?P.displayName||P.name:"",ta=dt?ae(dt):"";return typeof P=="function"&&ke.set(P,ta),ta}function Ie(P,B,R){return me(P,!1)}function Ae(P){var B=P.prototype;return!!(B&&B.isReactComponent)}function Fe(P,B,R){if(P==null)return"";if(typeof P=="function")return me(P,Ae(P));if(typeof P=="string")return ae(P);switch(P){case h:return ae("Suspense");case u:return ae("SuspenseList")}if(typeof P=="object")switch(P.$$typeof){case d:return Ie(P.render);case p:return Fe(P.type,B,R);case y:{var z=P,Y=z._payload,ce=z._init;try{return Fe(ce(Y),B,R)}catch{}}}return""}var ot=Object.prototype.hasOwnProperty,gt={},Nt=k.ReactDebugCurrentFrame;function ct(P){if(P){var B=P._owner,R=Fe(P.type,P._source,B?B.type:null);Nt.setExtraStackFrame(R)}else Nt.setExtraStackFrame(null)}function $e(P,B,R,z,Y){{var ce=Function.call.bind(ot);for(var pe in P)if(ce(P,pe)){var xe=void 0;try{if(typeof P[pe]!="function"){var Te=Error((z||"React class")+": "+R+" type `"+pe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof P[pe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Te.name="Invariant Violation",Te}xe=P[pe](B,pe,z,R,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Me){xe=Me}xe&&!(xe instanceof Error)&&(ct(Y),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",z||"React class",R,pe,typeof xe),ct(null)),xe instanceof Error&&!(xe.message in gt)&&(gt[xe.message]=!0,ct(Y),w("Failed %s type: %s",R,xe.message),ct(null))}}}var Lt=Array.isArray;function et(P){return Lt(P)}function on(P){{var B=typeof Symbol=="function"&&Symbol.toStringTag,R=B&&P[Symbol.toStringTag]||P.constructor.name||"Object";return R}}function Kt(P){try{return It(P),!1}catch{return!0}}function It(P){return""+P}function Oa(P){if(Kt(P))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",on(P)),It(P)}var E=k.ReactCurrentOwner,$={key:!0,ref:!0,__self:!0,__source:!0},ne,Ne,ze;ze={};function Ke(P){if(ot.call(P,"ref")){var B=Object.getOwnPropertyDescriptor(P,"ref").get;if(B&&B.isReactWarning)return!1}return P.ref!==void 0}function He(P){if(ot.call(P,"key")){var B=Object.getOwnPropertyDescriptor(P,"key").get;if(B&&B.isReactWarning)return!1}return P.key!==void 0}function Qt(P,B){if(typeof P.ref=="string"&&E.current&&B&&E.current.stateNode!==B){var R=D(E.current.type);ze[R]||(w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',D(E.current.type),P.ref),ze[R]=!0)}}function ea(P,B){{var R=function(){ne||(ne=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",B))};R.isReactWarning=!0,Object.defineProperty(P,"key",{get:R,configurable:!0})}}function $n(P,B){{var R=function(){Ne||(Ne=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",B))};R.isReactWarning=!0,Object.defineProperty(P,"ref",{get:R,configurable:!0})}}var Cc=function(P,B,R,z,Y,ce,pe){var xe={$$typeof:a,type:P,key:B,ref:R,props:pe,_owner:ce};return xe._store={},Object.defineProperty(xe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(xe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:z}),Object.defineProperty(xe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Y}),Object.freeze&&(Object.freeze(xe.props),Object.freeze(xe)),xe};function Un(P,B,R,z,Y){{var ce,pe={},xe=null,Te=null;R!==void 0&&(Oa(R),xe=""+R),He(B)&&(Oa(B.key),xe=""+B.key),Ke(B)&&(Te=B.ref,Qt(B,Y));for(ce in B)ot.call(B,ce)&&!$.hasOwnProperty(ce)&&(pe[ce]=B[ce]);if(P&&P.defaultProps){var Me=P.defaultProps;for(ce in Me)pe[ce]===void 0&&(pe[ce]=Me[ce])}if(xe||Te){var Le=typeof P=="function"?P.displayName||P.name||"Unknown":P;xe&&ea(pe,Le),Te&&$n(pe,Le)}return Cc(P,xe,Te,Y,z,E.current,pe)}}var cn=k.ReactCurrentOwner,ln=k.ReactDebugCurrentFrame;function pa(P){if(P){var B=P._owner,R=Fe(P.type,P._source,B?B.type:null);ln.setExtraStackFrame(R)}else ln.setExtraStackFrame(null)}var Ha;Ha=!1;function Gn(P){return typeof P=="object"&&P!==null&&P.$$typeof===a}function W(){{if(cn.current){var P=D(cn.current.type);if(P)return`
22
22
 
23
- Check the render method of \``+P+"`."}return""}}function ie(P){return""}var be={};function _e(P){{var B=W();if(!B){var R=typeof P=="string"?P:P.displayName||P.name;R&&(B=`
23
+ Check the render method of \``+P+"`."}return""}}function oe(P){return""}var be={};function _e(P){{var B=W();if(!B){var R=typeof P=="string"?P:P.displayName||P.name;R&&(B=`
24
24
 
25
- Check the top-level render call using <`+R+">.")}return B}}function Ue(P,B){{if(!P._store||P._store.validated||P.key!=null)return;P._store.validated=!0;var R=_e(B);if(be[R])return;be[R]=!0;var z="";P&&P._owner&&P._owner!==cn.current&&(z=" It was passed a child from "+D(P._owner.type)+"."),pa(P),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',R,z),pa(null)}}function Va(P,B){{if(typeof P!="object")return;if(et(P))for(var R=0;R<P.length;R++){var z=P[R];Gn(z)&&Ue(z,B)}else if(Gn(P))P._store&&(P._store.validated=!0);else if(P){var Y=v(P);if(typeof Y=="function"&&Y!==P.entries)for(var oe=Y.call(P),pe;!(pe=oe.next()).done;)Gn(pe.value)&&Ue(pe.value,B)}}}function lt(P){{var B=P.type;if(B==null||typeof B=="string")return;var R;if(typeof B=="function")R=B.propTypes;else if(typeof B=="object"&&(B.$$typeof===d||B.$$typeof===p))R=B.propTypes;else return;if(R){var z=D(B);$e(R,P.props,"prop",z,P)}else if(B.PropTypes!==void 0&&!Ha){Ha=!0;var Y=D(B);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Y||"Unknown")}typeof B.getDefaultProps=="function"&&!B.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function kt(P){{for(var B=Object.keys(P.props),R=0;R<B.length;R++){var z=B[R];if(z!=="children"&&z!=="key"){pa(P),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",z),pa(null);break}}P.ref!==null&&(pa(P),w("Invalid attribute `ref` supplied to `React.Fragment`."),pa(null))}}var dn={};function Ge(P,B,R,z,Y,oe){{var pe=q(P);if(!pe){var xe="";(P===void 0||typeof P=="object"&&P!==null&&Object.keys(P).length===0)&&(xe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Te=ie();Te?xe+=Te:xe+=W();var Me;P===null?Me="null":et(P)?Me="array":P!==void 0&&P.$$typeof===a?(Me="<"+(D(P.type)||"Unknown")+" />",xe=" Did you accidentally export a JSX literal instead of a component?"):Me=typeof P,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Me,xe)}var Le=Un(P,B,R,Y,oe);if(Le==null)return Le;if(pe){var De=B.children;if(De!==void 0)if(z)if(et(De)){for(var dt=0;dt<De.length;dt++)Va(De[dt],P);Object.freeze&&Object.freeze(De)}else w("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 Va(De,P)}if(ot.call(B,"key")){var ta=D(P),At=Object.keys(B).filter(function(VT){return VT!=="key"}),w9=At.length>0?"{key: someKey, "+At.join(": ..., ")+": ...}":"{key: someKey}";if(!dn[ta+w9]){var HT=At.length>0?"{"+At.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+R+">.")}return B}}function Ue(P,B){{if(!P._store||P._store.validated||P.key!=null)return;P._store.validated=!0;var R=_e(B);if(be[R])return;be[R]=!0;var z="";P&&P._owner&&P._owner!==cn.current&&(z=" It was passed a child from "+D(P._owner.type)+"."),pa(P),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',R,z),pa(null)}}function Va(P,B){{if(typeof P!="object")return;if(et(P))for(var R=0;R<P.length;R++){var z=P[R];Gn(z)&&Ue(z,B)}else if(Gn(P))P._store&&(P._store.validated=!0);else if(P){var Y=v(P);if(typeof Y=="function"&&Y!==P.entries)for(var ce=Y.call(P),pe;!(pe=ce.next()).done;)Gn(pe.value)&&Ue(pe.value,B)}}}function lt(P){{var B=P.type;if(B==null||typeof B=="string")return;var R;if(typeof B=="function")R=B.propTypes;else if(typeof B=="object"&&(B.$$typeof===d||B.$$typeof===p))R=B.propTypes;else return;if(R){var z=D(B);$e(R,P.props,"prop",z,P)}else if(B.PropTypes!==void 0&&!Ha){Ha=!0;var Y=D(B);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Y||"Unknown")}typeof B.getDefaultProps=="function"&&!B.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function kt(P){{for(var B=Object.keys(P.props),R=0;R<B.length;R++){var z=B[R];if(z!=="children"&&z!=="key"){pa(P),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",z),pa(null);break}}P.ref!==null&&(pa(P),w("Invalid attribute `ref` supplied to `React.Fragment`."),pa(null))}}var dn={};function Ge(P,B,R,z,Y,ce){{var pe=q(P);if(!pe){var xe="";(P===void 0||typeof P=="object"&&P!==null&&Object.keys(P).length===0)&&(xe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Te=oe();Te?xe+=Te:xe+=W();var Me;P===null?Me="null":et(P)?Me="array":P!==void 0&&P.$$typeof===a?(Me="<"+(D(P.type)||"Unknown")+" />",xe=" Did you accidentally export a JSX literal instead of a component?"):Me=typeof P,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Me,xe)}var Le=Un(P,B,R,Y,ce);if(Le==null)return Le;if(pe){var De=B.children;if(De!==void 0)if(z)if(et(De)){for(var dt=0;dt<De.length;dt++)Va(De[dt],P);Object.freeze&&Object.freeze(De)}else w("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 Va(De,P)}if(ot.call(B,"key")){var ta=D(P),At=Object.keys(B).filter(function(VT){return VT!=="key"}),w9=At.length>0?"{key: someKey, "+At.join(": ..., ")+": ...}":"{key: someKey}";if(!dn[ta+w9]){var HT=At.length>0?"{"+At.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,w9,ta,HT,ta),dn[ta+w9]=!0}}return P===r?kt(Le):lt(Le),Le}}function vt(P,B,R){return Ge(P,B,R,!0)}function Sc(P,B,R){return Ge(P,B,R,!1)}var Sl=Sc,v9=vt;Lc.Fragment=r,Lc.jsx=Sl,Lc.jsxs=v9}()),Lc}process.env.NODE_ENV==="production"?tC.exports=$T():tC.exports=UT();var e=tC.exports;function cN(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function GT(...t){return a=>{let n=!1;const r=t.map(s=>{const i=cN(s,a);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():cN(t[s],null)}}}}function Ye(t){const a=ZT(t),n=g.forwardRef((r,s)=>{const{children:i,...o}=r,l=g.Children.toArray(i),d=l.find(XT);if(d){const h=d.props.children,u=l.map(p=>p===d?g.Children.count(h)>1?g.Children.only(null):g.isValidElement(h)?h.props.children:null:p);return e.jsx(a,{...o,ref:s,children:g.isValidElement(h)?g.cloneElement(h,void 0,u):null})}return e.jsx(a,{...o,ref:s,children:i})});return n.displayName=`${t}.Slot`,n}var WT=Ye("Slot");function ZT(t){const a=g.forwardRef((n,r)=>{const{children:s,...i}=n;if(g.isValidElement(s)){const o=KT(s),l=YT(i,s.props);return s.type!==g.Fragment&&(l.ref=r?GT(r,o):o),g.cloneElement(s,l)}return g.Children.count(s)>1?g.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var OL=Symbol("radix.slottable");function JT(t){const a=({children:n})=>e.jsx(e.Fragment,{children:n});return a.displayName=`${t}.Slottable`,a.__radixId=OL,a}function XT(t){return g.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===OL}function YT(t,a){const n={...a};for(const r in a){const s=t[r],i=a[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...l)=>{const d=i(...l);return s(...l),d}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...t,...n}}function KT(t){var r,s;let a=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=a&&"isReactWarning"in a&&a.isReactWarning;return n?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=a&&"isReactWarning"in a&&a.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function HL(t){var a,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t))for(a=0;a<t.length;a++)t[a]&&(n=HL(t[a]))&&(r&&(r+=" "),r+=n);else for(a in t)t[a]&&(r&&(r+=" "),r+=a);return r}function QT(){for(var t,a,n=0,r="";n<arguments.length;)(t=arguments[n++])&&(a=HL(t))&&(r&&(r+=" "),r+=a);return r}const lN=t=>typeof t=="boolean"?"".concat(t):t===0?"0":t,dN=QT,Uj=(t,a)=>n=>{var r;if((a==null?void 0:a.variants)==null)return dN(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=a,o=Object.keys(s).map(h=>{const u=n==null?void 0:n[h],p=i==null?void 0:i[h];if(u===null)return null;const y=lN(u)||lN(p);return s[h][y]}),l=n&&Object.entries(n).reduce((h,u)=>{let[p,y]=u;return y===void 0||(h[p]=y),h},{}),d=a==null||(r=a.compoundVariants)===null||r===void 0?void 0:r.reduce((h,u)=>{let{class:p,className:y,...m}=u;return Object.entries(m).every(x=>{let[f,v]=x;return Array.isArray(v)?v.includes({...i,...l}[f]):{...i,...l}[f]===v})?[...h,p,y]:h},[]);return dN(t,o,d,n==null?void 0:n.class,n==null?void 0:n.className)};function VL(t){var a,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(a=0;a<s;a++)t[a]&&(n=VL(t[a]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function eD(){for(var t,a,n=0,r="",s=arguments.length;n<s;n++)(t=arguments[n])&&(a=VL(t))&&(r&&(r+=" "),r+=a);return r}const OC="-",tD=t=>{const a=nD(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:o=>{const l=o.split(OC);return l[0]===""&&l.length!==1&&l.shift(),BL(l,a)||aD(o)},getConflictingClassGroupIds:(o,l)=>{const d=n[o]||[];return l&&r[o]?[...d,...r[o]]:d}}},BL=(t,a)=>{var o;if(t.length===0)return a.classGroupId;const n=t[0],r=a.nextPart.get(n),s=r?BL(t.slice(1),r):void 0;if(s)return s;if(a.validators.length===0)return;const i=t.join(OC);return(o=a.validators.find(({validator:l})=>l(i)))==null?void 0:o.classGroupId},hN=/^\[(.+)\]$/,aD=t=>{if(hN.test(t)){const a=hN.exec(t)[1],n=a==null?void 0:a.substring(0,a.indexOf(":"));if(n)return"arbitrary.."+n}},nD=t=>{const{theme:a,prefix:n}=t,r={nextPart:new Map,validators:[]};return sD(Object.entries(t.classGroups),n).forEach(([i,o])=>{aC(o,r,i,a)}),r},aC=(t,a,n,r)=>{t.forEach(s=>{if(typeof s=="string"){const i=s===""?a:uN(a,s);i.classGroupId=n;return}if(typeof s=="function"){if(rD(s)){aC(s(r),a,n,r);return}a.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{aC(o,uN(a,i),n,r)})})},uN=(t,a)=>{let n=t;return a.split(OC).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},rD=t=>t.isThemeGetter,sD=(t,a)=>a?t.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?a+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,l])=>[a+o,l])):i);return[n,s]}):t,iD=t=>{if(t<1)return{get:()=>{},set:()=>{}};let a=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),a++,a>t&&(a=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},$L="!",oD=t=>{const{separator:a,experimentalParseClassName:n}=t,r=a.length===1,s=a[0],i=a.length,o=l=>{const d=[];let h=0,u=0,p;for(let v=0;v<l.length;v++){let k=l[v];if(h===0){if(k===s&&(r||l.slice(v,v+i)===a)){d.push(l.slice(u,v)),u=v+i;continue}if(k==="/"){p=v;continue}}k==="["?h++:k==="]"&&h--}const y=d.length===0?l:l.substring(u),m=y.startsWith($L),x=m?y.substring(1):y,f=p&&p>u?p-u:void 0;return{modifiers:d,hasImportantModifier:m,baseClassName:x,maybePostfixModifierPosition:f}};return n?l=>n({className:l,parseClassName:o}):o},cD=t=>{if(t.length<=1)return t;const a=[];let n=[];return t.forEach(r=>{r[0]==="["?(a.push(...n.sort(),r),n=[]):n.push(r)}),a.push(...n.sort()),a},lD=t=>({cache:iD(t.cacheSize),parseClassName:oD(t),...tD(t)}),dD=/\s+/,hD=(t,a)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=a,i=[],o=t.trim().split(dD);let l="";for(let d=o.length-1;d>=0;d-=1){const h=o[d],{modifiers:u,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:m}=n(h);let x=!!m,f=r(x?y.substring(0,m):y);if(!f){if(!x){l=h+(l.length>0?" "+l:l);continue}if(f=r(y),!f){l=h+(l.length>0?" "+l:l);continue}x=!1}const v=cD(u).join(":"),k=p?v+$L:v,w=k+f;if(i.includes(w))continue;i.push(w);const b=s(f,x);for(let C=0;C<b.length;++C){const j=b[C];i.push(k+j)}l=h+(l.length>0?" "+l:l)}return l};function uD(){let t=0,a,n,r="";for(;t<arguments.length;)(a=arguments[t++])&&(n=UL(a))&&(r&&(r+=" "),r+=n);return r}const UL=t=>{if(typeof t=="string")return t;let a,n="";for(let r=0;r<t.length;r++)t[r]&&(a=UL(t[r]))&&(n&&(n+=" "),n+=a);return n};function pD(t,...a){let n,r,s,i=o;function o(d){const h=a.reduce((u,p)=>p(u),t());return n=lD(h),r=n.cache.get,s=n.cache.set,i=l,l(d)}function l(d){const h=r(d);if(h)return h;const u=hD(d,n);return s(d,u),u}return function(){return i(uD.apply(null,arguments))}}const Ee=t=>{const a=n=>n[t]||[];return a.isThemeGetter=!0,a},GL=/^\[(?:([a-z-]+):)?(.+)\]$/i,mD=/^\d+\/\d+$/,yD=new Set(["px","full","screen"]),fD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xD=/\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$/,gD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,kD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ba=t=>Xo(t)||yD.has(t)||mD.test(t),hn=t=>vc(t,"length",LD),Xo=t=>!!t&&!Number.isNaN(Number(t)),b9=t=>vc(t,"number",Xo),Ic=t=>!!t&&Number.isInteger(Number(t)),wD=t=>t.endsWith("%")&&Xo(t.slice(0,-1)),ve=t=>GL.test(t),un=t=>fD.test(t),bD=new Set(["length","size","percentage"]),MD=t=>vc(t,bD,WL),jD=t=>vc(t,"position",WL),CD=new Set(["image","url"]),SD=t=>vc(t,CD,AD),ND=t=>vc(t,"",ID),Ac=()=>!0,vc=(t,a,n)=>{const r=GL.exec(t);return r?r[1]?typeof a=="string"?r[1]===a:a.has(r[1]):n(r[2]):!1},LD=t=>xD.test(t)&&!gD.test(t),WL=()=>!1,ID=t=>kD.test(t),AD=t=>vD.test(t),PD=()=>{const t=Ee("colors"),a=Ee("spacing"),n=Ee("blur"),r=Ee("brightness"),s=Ee("borderColor"),i=Ee("borderRadius"),o=Ee("borderSpacing"),l=Ee("borderWidth"),d=Ee("contrast"),h=Ee("grayscale"),u=Ee("hueRotate"),p=Ee("invert"),y=Ee("gap"),m=Ee("gradientColorStops"),x=Ee("gradientColorStopPositions"),f=Ee("inset"),v=Ee("margin"),k=Ee("opacity"),w=Ee("padding"),b=Ee("saturate"),C=Ee("scale"),j=Ee("sepia"),I=Ee("skew"),N=Ee("space"),S=Ee("translate"),L=()=>["auto","contain","none"],q=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto",ve,a],A=()=>[ve,a],D=()=>["",Ba,hn],H=()=>["auto",Xo,ve],G=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V=()=>["solid","dashed","dotted","double","none"],$=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],F=()=>["start","end","center","between","around","evenly","stretch"],re=()=>["","0",ve],K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],X=()=>[Xo,ve];return{cacheSize:500,separator:":",theme:{colors:[Ac],spacing:[Ba,hn],blur:["none","",un,ve],brightness:X(),borderColor:[t],borderRadius:["none","","full",un,ve],borderSpacing:A(),borderWidth:D(),contrast:X(),grayscale:re(),hueRotate:X(),invert:re(),gap:A(),gradientColorStops:[t],gradientColorStopPositions:[wD,hn],inset:_(),margin:_(),opacity:X(),padding:A(),saturate:X(),scale:X(),sepia:re(),skew:X(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",ve]}],container:["container"],columns:[{columns:[un]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...G(),ve]}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ic,ve]}],basis:[{basis:_()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ve]}],grow:[{grow:re()}],shrink:[{shrink:re()}],order:[{order:["first","last","none",Ic,ve]}],"grid-cols":[{"grid-cols":[Ac]}],"col-start-end":[{col:["auto",{span:["full",Ic,ve]},ve]}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":[Ac]}],"row-start-end":[{row:["auto",{span:[Ic,ve]},ve]}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ve]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ve]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...F()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...F(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...F(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ve,a]}],"min-w":[{"min-w":[ve,a,"min","max","fit"]}],"max-w":[{"max-w":[ve,a,"none","full","min","max","fit","prose",{screen:[un]},un]}],h:[{h:[ve,a,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ve,a,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ve,a,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ve,a,"auto","min","max","fit"]}],"font-size":[{text:["base",un,hn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",b9]}],"font-family":[{font:[Ac]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ve]}],"line-clamp":[{"line-clamp":["none",Xo,b9]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ba,ve]}],"list-image":[{"list-image":["none",ve]}],"list-style-type":[{list:["none","disc","decimal",ve]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ba,hn]}],"underline-offset":[{"underline-offset":["auto",Ba,ve]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ve]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ve]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...G(),jD]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",MD]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},SD]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[k]}],"border-style":[{border:[...V(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:V()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...V()]}],"outline-offset":[{"outline-offset":[Ba,ve]}],"outline-w":[{outline:[Ba,hn]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[Ba,hn]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",un,ND]}],"shadow-color":[{shadow:[Ac]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...$(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":$()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",un,ve]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[p]}],saturate:[{saturate:[b]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ve]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",ve]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",ve]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Ic,ve]}],"translate-x":[{"translate-x":[S]}],"translate-y":[{"translate-y":[S]}],"skew-x":[{"skew-x":[I]}],"skew-y":[{"skew-y":[I]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ve]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ve]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"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",ve]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Ba,hn,b9]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},_D=pD(PD);function ye(...t){return _D(eD(t))}const HC=Uj("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",accent:"bg-accent text-accent-foreground hover:bg-accent-hover shadow-accent transform hover:scale-[1.02] hover:shadow-lg",hero:"bg-gradient-accent text-accent-foreground hover:opacity-90 shadow-accent transform hover:scale-[1.05] px-8 py-3 text-base font-bold",gaming:"bg-gaming-gold text-primary hover:bg-gaming-gold/90 shadow-accent transform hover:scale-[1.02]"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),T=g.forwardRef(({className:t,variant:a,size:n,asChild:r=!1,...s},i)=>{const o=r?WT:"button";return e.jsx(o,{className:ye(HC({variant:a,size:n,className:t})),ref:i,...s})});T.displayName="Button";const de=g.forwardRef(({className:t,type:a,...n},r)=>e.jsx("input",{type:a,className:ye("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:r,...n}));de.displayName="Input";/**
30
+ <%s key={someKey} {...props} />`,w9,ta,HT,ta),dn[ta+w9]=!0}}return P===r?kt(Le):lt(Le),Le}}function vt(P,B,R){return Ge(P,B,R,!0)}function Sc(P,B,R){return Ge(P,B,R,!1)}var Sl=Sc,v9=vt;Lc.Fragment=r,Lc.jsx=Sl,Lc.jsxs=v9}()),Lc}process.env.NODE_ENV==="production"?tC.exports=$T():tC.exports=UT();var e=tC.exports;function cN(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function GT(...t){return a=>{let n=!1;const r=t.map(s=>{const i=cN(s,a);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():cN(t[s],null)}}}}function Ye(t){const a=ZT(t),n=g.forwardRef((r,s)=>{const{children:i,...o}=r,l=g.Children.toArray(i),d=l.find(XT);if(d){const h=d.props.children,u=l.map(p=>p===d?g.Children.count(h)>1?g.Children.only(null):g.isValidElement(h)?h.props.children:null:p);return e.jsx(a,{...o,ref:s,children:g.isValidElement(h)?g.cloneElement(h,void 0,u):null})}return e.jsx(a,{...o,ref:s,children:i})});return n.displayName=`${t}.Slot`,n}var WT=Ye("Slot");function ZT(t){const a=g.forwardRef((n,r)=>{const{children:s,...i}=n;if(g.isValidElement(s)){const o=KT(s),l=YT(i,s.props);return s.type!==g.Fragment&&(l.ref=r?GT(r,o):o),g.cloneElement(s,l)}return g.Children.count(s)>1?g.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var OL=Symbol("radix.slottable");function JT(t){const a=({children:n})=>e.jsx(e.Fragment,{children:n});return a.displayName=`${t}.Slottable`,a.__radixId=OL,a}function XT(t){return g.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===OL}function YT(t,a){const n={...a};for(const r in a){const s=t[r],i=a[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...l)=>{const d=i(...l);return s(...l),d}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...t,...n}}function KT(t){var r,s;let a=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=a&&"isReactWarning"in a&&a.isReactWarning;return n?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=a&&"isReactWarning"in a&&a.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function HL(t){var a,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t))for(a=0;a<t.length;a++)t[a]&&(n=HL(t[a]))&&(r&&(r+=" "),r+=n);else for(a in t)t[a]&&(r&&(r+=" "),r+=a);return r}function QT(){for(var t,a,n=0,r="";n<arguments.length;)(t=arguments[n++])&&(a=HL(t))&&(r&&(r+=" "),r+=a);return r}const lN=t=>typeof t=="boolean"?"".concat(t):t===0?"0":t,dN=QT,Uj=(t,a)=>n=>{var r;if((a==null?void 0:a.variants)==null)return dN(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=a,o=Object.keys(s).map(h=>{const u=n==null?void 0:n[h],p=i==null?void 0:i[h];if(u===null)return null;const y=lN(u)||lN(p);return s[h][y]}),l=n&&Object.entries(n).reduce((h,u)=>{let[p,y]=u;return y===void 0||(h[p]=y),h},{}),d=a==null||(r=a.compoundVariants)===null||r===void 0?void 0:r.reduce((h,u)=>{let{class:p,className:y,...m}=u;return Object.entries(m).every(x=>{let[f,v]=x;return Array.isArray(v)?v.includes({...i,...l}[f]):{...i,...l}[f]===v})?[...h,p,y]:h},[]);return dN(t,o,d,n==null?void 0:n.class,n==null?void 0:n.className)};function VL(t){var a,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(a=0;a<s;a++)t[a]&&(n=VL(t[a]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function eD(){for(var t,a,n=0,r="",s=arguments.length;n<s;n++)(t=arguments[n])&&(a=VL(t))&&(r&&(r+=" "),r+=a);return r}const OC="-",tD=t=>{const a=nD(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:o=>{const l=o.split(OC);return l[0]===""&&l.length!==1&&l.shift(),BL(l,a)||aD(o)},getConflictingClassGroupIds:(o,l)=>{const d=n[o]||[];return l&&r[o]?[...d,...r[o]]:d}}},BL=(t,a)=>{var o;if(t.length===0)return a.classGroupId;const n=t[0],r=a.nextPart.get(n),s=r?BL(t.slice(1),r):void 0;if(s)return s;if(a.validators.length===0)return;const i=t.join(OC);return(o=a.validators.find(({validator:l})=>l(i)))==null?void 0:o.classGroupId},hN=/^\[(.+)\]$/,aD=t=>{if(hN.test(t)){const a=hN.exec(t)[1],n=a==null?void 0:a.substring(0,a.indexOf(":"));if(n)return"arbitrary.."+n}},nD=t=>{const{theme:a,prefix:n}=t,r={nextPart:new Map,validators:[]};return sD(Object.entries(t.classGroups),n).forEach(([i,o])=>{aC(o,r,i,a)}),r},aC=(t,a,n,r)=>{t.forEach(s=>{if(typeof s=="string"){const i=s===""?a:uN(a,s);i.classGroupId=n;return}if(typeof s=="function"){if(rD(s)){aC(s(r),a,n,r);return}a.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{aC(o,uN(a,i),n,r)})})},uN=(t,a)=>{let n=t;return a.split(OC).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},rD=t=>t.isThemeGetter,sD=(t,a)=>a?t.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?a+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,l])=>[a+o,l])):i);return[n,s]}):t,iD=t=>{if(t<1)return{get:()=>{},set:()=>{}};let a=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),a++,a>t&&(a=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},$L="!",oD=t=>{const{separator:a,experimentalParseClassName:n}=t,r=a.length===1,s=a[0],i=a.length,o=l=>{const d=[];let h=0,u=0,p;for(let v=0;v<l.length;v++){let k=l[v];if(h===0){if(k===s&&(r||l.slice(v,v+i)===a)){d.push(l.slice(u,v)),u=v+i;continue}if(k==="/"){p=v;continue}}k==="["?h++:k==="]"&&h--}const y=d.length===0?l:l.substring(u),m=y.startsWith($L),x=m?y.substring(1):y,f=p&&p>u?p-u:void 0;return{modifiers:d,hasImportantModifier:m,baseClassName:x,maybePostfixModifierPosition:f}};return n?l=>n({className:l,parseClassName:o}):o},cD=t=>{if(t.length<=1)return t;const a=[];let n=[];return t.forEach(r=>{r[0]==="["?(a.push(...n.sort(),r),n=[]):n.push(r)}),a.push(...n.sort()),a},lD=t=>({cache:iD(t.cacheSize),parseClassName:oD(t),...tD(t)}),dD=/\s+/,hD=(t,a)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=a,i=[],o=t.trim().split(dD);let l="";for(let d=o.length-1;d>=0;d-=1){const h=o[d],{modifiers:u,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:m}=n(h);let x=!!m,f=r(x?y.substring(0,m):y);if(!f){if(!x){l=h+(l.length>0?" "+l:l);continue}if(f=r(y),!f){l=h+(l.length>0?" "+l:l);continue}x=!1}const v=cD(u).join(":"),k=p?v+$L:v,w=k+f;if(i.includes(w))continue;i.push(w);const b=s(f,x);for(let C=0;C<b.length;++C){const j=b[C];i.push(k+j)}l=h+(l.length>0?" "+l:l)}return l};function uD(){let t=0,a,n,r="";for(;t<arguments.length;)(a=arguments[t++])&&(n=UL(a))&&(r&&(r+=" "),r+=n);return r}const UL=t=>{if(typeof t=="string")return t;let a,n="";for(let r=0;r<t.length;r++)t[r]&&(a=UL(t[r]))&&(n&&(n+=" "),n+=a);return n};function pD(t,...a){let n,r,s,i=o;function o(d){const h=a.reduce((u,p)=>p(u),t());return n=lD(h),r=n.cache.get,s=n.cache.set,i=l,l(d)}function l(d){const h=r(d);if(h)return h;const u=hD(d,n);return s(d,u),u}return function(){return i(uD.apply(null,arguments))}}const Ee=t=>{const a=n=>n[t]||[];return a.isThemeGetter=!0,a},GL=/^\[(?:([a-z-]+):)?(.+)\]$/i,mD=/^\d+\/\d+$/,yD=new Set(["px","full","screen"]),fD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xD=/\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$/,gD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,kD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ba=t=>Xo(t)||yD.has(t)||mD.test(t),hn=t=>vc(t,"length",LD),Xo=t=>!!t&&!Number.isNaN(Number(t)),b9=t=>vc(t,"number",Xo),Ic=t=>!!t&&Number.isInteger(Number(t)),wD=t=>t.endsWith("%")&&Xo(t.slice(0,-1)),we=t=>GL.test(t),un=t=>fD.test(t),bD=new Set(["length","size","percentage"]),MD=t=>vc(t,bD,WL),jD=t=>vc(t,"position",WL),CD=new Set(["image","url"]),SD=t=>vc(t,CD,AD),ND=t=>vc(t,"",ID),Ac=()=>!0,vc=(t,a,n)=>{const r=GL.exec(t);return r?r[1]?typeof a=="string"?r[1]===a:a.has(r[1]):n(r[2]):!1},LD=t=>xD.test(t)&&!gD.test(t),WL=()=>!1,ID=t=>kD.test(t),AD=t=>vD.test(t),PD=()=>{const t=Ee("colors"),a=Ee("spacing"),n=Ee("blur"),r=Ee("brightness"),s=Ee("borderColor"),i=Ee("borderRadius"),o=Ee("borderSpacing"),l=Ee("borderWidth"),d=Ee("contrast"),h=Ee("grayscale"),u=Ee("hueRotate"),p=Ee("invert"),y=Ee("gap"),m=Ee("gradientColorStops"),x=Ee("gradientColorStopPositions"),f=Ee("inset"),v=Ee("margin"),k=Ee("opacity"),w=Ee("padding"),b=Ee("saturate"),C=Ee("scale"),j=Ee("sepia"),I=Ee("skew"),N=Ee("space"),S=Ee("translate"),L=()=>["auto","contain","none"],q=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto",we,a],A=()=>[we,a],D=()=>["",Ba,hn],H=()=>["auto",Xo,we],G=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V=()=>["solid","dashed","dotted","double","none"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],F=()=>["start","end","center","between","around","evenly","stretch"],se=()=>["","0",we],K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],X=()=>[Xo,we];return{cacheSize:500,separator:":",theme:{colors:[Ac],spacing:[Ba,hn],blur:["none","",un,we],brightness:X(),borderColor:[t],borderRadius:["none","","full",un,we],borderSpacing:A(),borderWidth:D(),contrast:X(),grayscale:se(),hueRotate:X(),invert:se(),gap:A(),gradientColorStops:[t],gradientColorStopPositions:[wD,hn],inset:_(),margin:_(),opacity:X(),padding:A(),saturate:X(),scale:X(),sepia:se(),skew:X(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",we]}],container:["container"],columns:[{columns:[un]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...G(),we]}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ic,we]}],basis:[{basis:_()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",we]}],grow:[{grow:se()}],shrink:[{shrink:se()}],order:[{order:["first","last","none",Ic,we]}],"grid-cols":[{"grid-cols":[Ac]}],"col-start-end":[{col:["auto",{span:["full",Ic,we]},we]}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":[Ac]}],"row-start-end":[{row:["auto",{span:[Ic,we]},we]}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",we]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",we]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...F()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...F(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...F(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",we,a]}],"min-w":[{"min-w":[we,a,"min","max","fit"]}],"max-w":[{"max-w":[we,a,"none","full","min","max","fit","prose",{screen:[un]},un]}],h:[{h:[we,a,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[we,a,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[we,a,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[we,a,"auto","min","max","fit"]}],"font-size":[{text:["base",un,hn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",b9]}],"font-family":[{font:[Ac]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",we]}],"line-clamp":[{"line-clamp":["none",Xo,b9]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ba,we]}],"list-image":[{"list-image":["none",we]}],"list-style-type":[{list:["none","disc","decimal",we]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ba,hn]}],"underline-offset":[{"underline-offset":["auto",Ba,we]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...G(),jD]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",MD]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},SD]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[k]}],"border-style":[{border:[...V(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:V()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...V()]}],"outline-offset":[{"outline-offset":[Ba,we]}],"outline-w":[{outline:[Ba,hn]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[Ba,hn]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",un,ND]}],"shadow-color":[{shadow:[Ac]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...U(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",un,we]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[p]}],saturate:[{saturate:[b]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",we]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",we]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",we]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Ic,we]}],"translate-x":[{"translate-x":[S]}],"translate-y":[{"translate-y":[S]}],"skew-x":[{"skew-x":[I]}],"skew-y":[{"skew-y":[I]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",we]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",we]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"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",we]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Ba,hn,b9]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},_D=pD(PD);function fe(...t){return _D(eD(t))}const HC=Uj("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",accent:"bg-accent text-accent-foreground hover:bg-accent-hover shadow-accent transform hover:scale-[1.02] hover:shadow-lg",hero:"bg-gradient-accent text-accent-foreground hover:opacity-90 shadow-accent transform hover:scale-[1.05] px-8 py-3 text-base font-bold",gaming:"bg-gaming-gold text-primary hover:bg-gaming-gold/90 shadow-accent transform hover:scale-[1.02]"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),T=g.forwardRef(({className:t,variant:a,size:n,asChild:r=!1,...s},i)=>{const o=r?WT:"button";return e.jsx(o,{className:fe(HC({variant:a,size:n,className:t})),ref:i,...s})});T.displayName="Button";const de=g.forwardRef(({className:t,type:a,...n},r)=>e.jsx("input",{type:a,className:fe("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:r,...n}));de.displayName="Input";/**
31
31
  * @license lucide-react v0.451.0 - ISC
32
32
  *
33
33
  * This source code is licensed under the ISC license.
@@ -7722,7 +7722,7 @@ React keys must be passed directly to JSX without using spread:
7722
7722
  *
7723
7723
  * This source code is licensed under the ISC license.
7724
7724
  * See the LICENSE file in the root directory of this source tree.
7725
- */const qD=Object.freeze(Object.defineProperty({__proto__:null,AArrowDown:Vl,AArrowDownIcon:Vl,AArrowUp:Bl,AArrowUpIcon:Bl,ALargeSmall:$l,ALargeSmallIcon:$l,Accessibility:Ul,AccessibilityIcon:Ul,Activity:Gl,ActivityIcon:Gl,ActivitySquare:Ys,ActivitySquareIcon:Ys,AirVent:Wl,AirVentIcon:Wl,Airplay:Zl,AirplayIcon:Zl,AlarmCheck:Jn,AlarmCheckIcon:Jn,AlarmClock:Xl,AlarmClockCheck:Jn,AlarmClockCheckIcon:Jn,AlarmClockIcon:Xl,AlarmClockMinus:Xn,AlarmClockMinusIcon:Xn,AlarmClockOff:Jl,AlarmClockOffIcon:Jl,AlarmClockPlus:Yn,AlarmClockPlusIcon:Yn,AlarmMinus:Xn,AlarmMinusIcon:Xn,AlarmPlus:Yn,AlarmPlusIcon:Yn,AlarmSmoke:Yl,AlarmSmokeIcon:Yl,Album:Kl,AlbumIcon:Kl,AlertCircle:Ht,AlertCircleIcon:Ht,AlertOctagon:Ls,AlertOctagonIcon:Ls,AlertTriangle:Yi,AlertTriangleIcon:Yi,AlignCenter:t1,AlignCenterHorizontal:Ql,AlignCenterHorizontalIcon:Ql,AlignCenterIcon:t1,AlignCenterVertical:e1,AlignCenterVerticalIcon:e1,AlignEndHorizontal:a1,AlignEndHorizontalIcon:a1,AlignEndVertical:n1,AlignEndVerticalIcon:n1,AlignHorizontalDistributeCenter:r1,AlignHorizontalDistributeCenterIcon:r1,AlignHorizontalDistributeEnd:s1,AlignHorizontalDistributeEndIcon:s1,AlignHorizontalDistributeStart:i1,AlignHorizontalDistributeStartIcon:i1,AlignHorizontalJustifyCenter:o1,AlignHorizontalJustifyCenterIcon:o1,AlignHorizontalJustifyEnd:c1,AlignHorizontalJustifyEndIcon:c1,AlignHorizontalJustifyStart:l1,AlignHorizontalJustifyStartIcon:l1,AlignHorizontalSpaceAround:d1,AlignHorizontalSpaceAroundIcon:d1,AlignHorizontalSpaceBetween:h1,AlignHorizontalSpaceBetweenIcon:h1,AlignJustify:u1,AlignJustifyIcon:u1,AlignLeft:p1,AlignLeftIcon:p1,AlignRight:m1,AlignRightIcon:m1,AlignStartHorizontal:y1,AlignStartHorizontalIcon:y1,AlignStartVertical:f1,AlignStartVerticalIcon:f1,AlignVerticalDistributeCenter:x1,AlignVerticalDistributeCenterIcon:x1,AlignVerticalDistributeEnd:g1,AlignVerticalDistributeEndIcon:g1,AlignVerticalDistributeStart:k1,AlignVerticalDistributeStartIcon:k1,AlignVerticalJustifyCenter:v1,AlignVerticalJustifyCenterIcon:v1,AlignVerticalJustifyEnd:w1,AlignVerticalJustifyEndIcon:w1,AlignVerticalJustifyStart:b1,AlignVerticalJustifyStartIcon:b1,AlignVerticalSpaceAround:M1,AlignVerticalSpaceAroundIcon:M1,AlignVerticalSpaceBetween:j1,AlignVerticalSpaceBetweenIcon:j1,Ambulance:C1,AmbulanceIcon:C1,Ampersand:S1,AmpersandIcon:S1,Ampersands:N1,AmpersandsIcon:N1,Amphora:L1,AmphoraIcon:L1,Anchor:I1,AnchorIcon:I1,Angry:A1,AngryIcon:A1,Annoyed:P1,AnnoyedIcon:P1,Antenna:_1,AntennaIcon:_1,Anvil:R1,AnvilIcon:R1,Aperture:T1,ApertureIcon:T1,AppWindow:q1,AppWindowIcon:q1,AppWindowMac:D1,AppWindowMacIcon:D1,Apple:z1,AppleIcon:z1,Archive:O1,ArchiveIcon:O1,ArchiveRestore:E1,ArchiveRestoreIcon:E1,ArchiveX:F1,ArchiveXIcon:F1,AreaChart:hr,AreaChartIcon:hr,Armchair:H1,ArmchairIcon:H1,ArrowBigDown:B1,ArrowBigDownDash:V1,ArrowBigDownDashIcon:V1,ArrowBigDownIcon:B1,ArrowBigLeft:U1,ArrowBigLeftDash:$1,ArrowBigLeftDashIcon:$1,ArrowBigLeftIcon:U1,ArrowBigRight:W1,ArrowBigRightDash:G1,ArrowBigRightDashIcon:G1,ArrowBigRightIcon:W1,ArrowBigUp:J1,ArrowBigUpDash:Z1,ArrowBigUpDashIcon:Z1,ArrowBigUpIcon:J1,ArrowDown:sd,ArrowDown01:X1,ArrowDown01Icon:X1,ArrowDown10:Y1,ArrowDown10Icon:Y1,ArrowDownAZ:Kn,ArrowDownAZIcon:Kn,ArrowDownAz:Kn,ArrowDownAzIcon:Kn,ArrowDownCircle:Mr,ArrowDownCircleIcon:Mr,ArrowDownFromLine:K1,ArrowDownFromLineIcon:K1,ArrowDownIcon:sd,ArrowDownLeft:Q1,ArrowDownLeftFromCircle:Cr,ArrowDownLeftFromCircleIcon:Cr,ArrowDownLeftFromSquare:ti,ArrowDownLeftFromSquareIcon:ti,ArrowDownLeftIcon:Q1,ArrowDownLeftSquare:Ks,ArrowDownLeftSquareIcon:Ks,ArrowDownNarrowWide:ed,ArrowDownNarrowWideIcon:ed,ArrowDownRight:td,ArrowDownRightFromCircle:Sr,ArrowDownRightFromCircleIcon:Sr,ArrowDownRightFromSquare:ai,ArrowDownRightFromSquareIcon:ai,ArrowDownRightIcon:td,ArrowDownRightSquare:Qs,ArrowDownRightSquareIcon:Qs,ArrowDownSquare:ei,ArrowDownSquareIcon:ei,ArrowDownToDot:ad,ArrowDownToDotIcon:ad,ArrowDownToLine:nd,ArrowDownToLineIcon:nd,ArrowDownUp:rd,ArrowDownUpIcon:rd,ArrowDownWideNarrow:Qn,ArrowDownWideNarrowIcon:Qn,ArrowDownZA:er,ArrowDownZAIcon:er,ArrowDownZa:er,ArrowDownZaIcon:er,ArrowLeft:Ja,ArrowLeftCircle:jr,ArrowLeftCircleIcon:jr,ArrowLeftFromLine:id,ArrowLeftFromLineIcon:id,ArrowLeftIcon:Ja,ArrowLeftRight:od,ArrowLeftRightIcon:od,ArrowLeftSquare:Ga,ArrowLeftSquareIcon:Ga,ArrowLeftToLine:cd,ArrowLeftToLineIcon:cd,ArrowRight:yo,ArrowRightCircle:Ir,ArrowRightCircleIcon:Ir,ArrowRightFromLine:ld,ArrowRightFromLineIcon:ld,ArrowRightIcon:yo,ArrowRightLeft:dd,ArrowRightLeftIcon:dd,ArrowRightSquare:Wa,ArrowRightSquareIcon:Wa,ArrowRightToLine:hd,ArrowRightToLineIcon:hd,ArrowUp:wd,ArrowUp01:ud,ArrowUp01Icon:ud,ArrowUp10:pd,ArrowUp10Icon:pd,ArrowUpAZ:tr,ArrowUpAZIcon:tr,ArrowUpAz:tr,ArrowUpAzIcon:tr,ArrowUpCircle:Ar,ArrowUpCircleIcon:Ar,ArrowUpDown:md,ArrowUpDownIcon:md,ArrowUpFromDot:yd,ArrowUpFromDotIcon:yd,ArrowUpFromLine:fd,ArrowUpFromLineIcon:fd,ArrowUpIcon:wd,ArrowUpLeft:xd,ArrowUpLeftFromCircle:Nr,ArrowUpLeftFromCircleIcon:Nr,ArrowUpLeftFromSquare:ni,ArrowUpLeftFromSquareIcon:ni,ArrowUpLeftIcon:xd,ArrowUpLeftSquare:si,ArrowUpLeftSquareIcon:si,ArrowUpNarrowWide:ar,ArrowUpNarrowWideIcon:ar,ArrowUpRight:gd,ArrowUpRightFromCircle:Lr,ArrowUpRightFromCircleIcon:Lr,ArrowUpRightFromSquare:ri,ArrowUpRightFromSquareIcon:ri,ArrowUpRightIcon:gd,ArrowUpRightSquare:ii,ArrowUpRightSquareIcon:ii,ArrowUpSquare:oi,ArrowUpSquareIcon:oi,ArrowUpToLine:kd,ArrowUpToLineIcon:kd,ArrowUpWideNarrow:vd,ArrowUpWideNarrowIcon:vd,ArrowUpZA:nr,ArrowUpZAIcon:nr,ArrowUpZa:nr,ArrowUpZaIcon:nr,ArrowsUpFromLine:bd,ArrowsUpFromLineIcon:bd,Asterisk:Md,AsteriskIcon:Md,AsteriskSquare:ci,AsteriskSquareIcon:ci,AtSign:jd,AtSignIcon:jd,Atom:Cd,AtomIcon:Cd,AudioLines:Sd,AudioLinesIcon:Sd,AudioWaveform:Nd,AudioWaveformIcon:Nd,Award:na,AwardIcon:na,Axe:Ld,AxeIcon:Ld,Axis3D:rr,Axis3DIcon:rr,Axis3d:rr,Axis3dIcon:rr,Baby:Id,BabyIcon:Id,Backpack:Ad,BackpackIcon:Ad,Badge:Dc,BadgeAlert:Pd,BadgeAlertIcon:Pd,BadgeCent:_d,BadgeCentIcon:_d,BadgeCheck:sr,BadgeCheckIcon:sr,BadgeDollarSign:Rd,BadgeDollarSignIcon:Rd,BadgeEuro:Td,BadgeEuroIcon:Td,BadgeHelp:Dd,BadgeHelpIcon:Dd,BadgeIcon:Dc,BadgeIndianRupee:qd,BadgeIndianRupeeIcon:qd,BadgeInfo:zd,BadgeInfoIcon:zd,BadgeJapaneseYen:Ed,BadgeJapaneseYenIcon:Ed,BadgeMinus:Fd,BadgeMinusIcon:Fd,BadgePercent:Od,BadgePercentIcon:Od,BadgePlus:Hd,BadgePlusIcon:Hd,BadgePoundSterling:Vd,BadgePoundSterlingIcon:Vd,BadgeRussianRuble:Bd,BadgeRussianRubleIcon:Bd,BadgeSwissFranc:$d,BadgeSwissFrancIcon:$d,BadgeX:Ud,BadgeXIcon:Ud,BaggageClaim:Gd,BaggageClaimIcon:Gd,Ban:Wd,BanIcon:Wd,Banana:Zd,BananaIcon:Zd,Bandage:Jd,BandageIcon:Jd,Banknote:Xd,BanknoteIcon:Xd,BarChart:yn,BarChart2:kr,BarChart2Icon:kr,BarChart3:xr,BarChart3Icon:xr,BarChart4:fr,BarChart4Icon:fr,BarChartBig:yr,BarChartBigIcon:yr,BarChartHorizontal:pr,BarChartHorizontalBig:ur,BarChartHorizontalBigIcon:ur,BarChartHorizontalIcon:pr,BarChartIcon:yn,Barcode:Yd,BarcodeIcon:Yd,Baseline:Kd,BaselineIcon:Kd,Bath:Qd,BathIcon:Qd,Battery:s2,BatteryCharging:e2,BatteryChargingIcon:e2,BatteryFull:t2,BatteryFullIcon:t2,BatteryIcon:s2,BatteryLow:a2,BatteryLowIcon:a2,BatteryMedium:n2,BatteryMediumIcon:n2,BatteryWarning:r2,BatteryWarningIcon:r2,Beaker:i2,BeakerIcon:i2,Bean:c2,BeanIcon:c2,BeanOff:o2,BeanOffIcon:o2,Bed:h2,BedDouble:l2,BedDoubleIcon:l2,BedIcon:h2,BedSingle:d2,BedSingleIcon:d2,Beef:u2,BeefIcon:u2,Beer:m2,BeerIcon:m2,BeerOff:p2,BeerOffIcon:p2,Bell:Yo,BellDot:y2,BellDotIcon:y2,BellElectric:f2,BellElectricIcon:f2,BellIcon:Yo,BellMinus:x2,BellMinusIcon:x2,BellOff:g2,BellOffIcon:g2,BellPlus:k2,BellPlusIcon:k2,BellRing:v2,BellRingIcon:v2,BetweenHorizonalEnd:ir,BetweenHorizonalEndIcon:ir,BetweenHorizonalStart:or,BetweenHorizonalStartIcon:or,BetweenHorizontalEnd:ir,BetweenHorizontalEndIcon:ir,BetweenHorizontalStart:or,BetweenHorizontalStartIcon:or,BetweenVerticalEnd:w2,BetweenVerticalEndIcon:w2,BetweenVerticalStart:b2,BetweenVerticalStartIcon:b2,BicepsFlexed:M2,BicepsFlexedIcon:M2,Bike:j2,BikeIcon:j2,Binary:C2,BinaryIcon:C2,Binoculars:S2,BinocularsIcon:S2,Biohazard:N2,BiohazardIcon:N2,Bird:L2,BirdIcon:L2,Bitcoin:I2,BitcoinIcon:I2,Blend:A2,BlendIcon:A2,Blinds:P2,BlindsIcon:P2,Blocks:_2,BlocksIcon:_2,Bluetooth:q2,BluetoothConnected:R2,BluetoothConnectedIcon:R2,BluetoothIcon:q2,BluetoothOff:T2,BluetoothOffIcon:T2,BluetoothSearching:D2,BluetoothSearchingIcon:D2,Bold:z2,BoldIcon:z2,Bolt:E2,BoltIcon:E2,Bomb:F2,BombIcon:F2,Bone:O2,BoneIcon:O2,Book:ch,BookA:H2,BookAIcon:H2,BookAudio:V2,BookAudioIcon:V2,BookCheck:B2,BookCheckIcon:B2,BookCopy:$2,BookCopyIcon:$2,BookDashed:cr,BookDashedIcon:cr,BookDown:U2,BookDownIcon:U2,BookHeadphones:G2,BookHeadphonesIcon:G2,BookHeart:W2,BookHeartIcon:W2,BookIcon:ch,BookImage:Z2,BookImageIcon:Z2,BookKey:J2,BookKeyIcon:J2,BookLock:X2,BookLockIcon:X2,BookMarked:Y2,BookMarkedIcon:Y2,BookMinus:K2,BookMinusIcon:K2,BookOpen:ia,BookOpenCheck:Q2,BookOpenCheckIcon:Q2,BookOpenIcon:ia,BookOpenText:eh,BookOpenTextIcon:eh,BookPlus:th,BookPlusIcon:th,BookTemplate:cr,BookTemplateIcon:cr,BookText:ah,BookTextIcon:ah,BookType:nh,BookTypeIcon:nh,BookUp:sh,BookUp2:rh,BookUp2Icon:rh,BookUpIcon:sh,BookUser:ih,BookUserIcon:ih,BookX:oh,BookXIcon:oh,Bookmark:xa,BookmarkCheck:fa,BookmarkCheckIcon:fa,BookmarkIcon:xa,BookmarkMinus:lh,BookmarkMinusIcon:lh,BookmarkPlus:dh,BookmarkPlusIcon:dh,BookmarkX:hh,BookmarkXIcon:hh,BoomBox:uh,BoomBoxIcon:uh,Bot:qc,BotIcon:qc,BotMessageSquare:ph,BotMessageSquareIcon:ph,BotOff:mh,BotOffIcon:mh,Box:yh,BoxIcon:yh,BoxSelect:ki,BoxSelectIcon:ki,Boxes:fh,BoxesIcon:fh,Braces:lr,BracesIcon:lr,Brackets:xh,BracketsIcon:xh,Brain:vh,BrainCircuit:gh,BrainCircuitIcon:gh,BrainCog:kh,BrainCogIcon:kh,BrainIcon:vh,BrickWall:wh,BrickWallIcon:wh,Briefcase:Ze,BriefcaseBusiness:bh,BriefcaseBusinessIcon:bh,BriefcaseConveyorBelt:Mh,BriefcaseConveyorBeltIcon:Mh,BriefcaseIcon:Ze,BriefcaseMedical:jh,BriefcaseMedicalIcon:jh,BringToFront:Ch,BringToFrontIcon:Ch,Brush:Sh,BrushIcon:Sh,Bug:Ih,BugIcon:Ih,BugOff:Nh,BugOffIcon:Nh,BugPlay:Lh,BugPlayIcon:Lh,Building:Ko,Building2:rt,Building2Icon:rt,BuildingIcon:Ko,Bus:Ph,BusFront:Ah,BusFrontIcon:Ah,BusIcon:Ph,Cable:Rh,CableCar:_h,CableCarIcon:_h,CableIcon:Rh,Cake:Dh,CakeIcon:Dh,CakeSlice:Th,CakeSliceIcon:Th,Calculator:qh,CalculatorIcon:qh,Calendar:xo,CalendarArrowDown:zh,CalendarArrowDownIcon:zh,CalendarArrowUp:Eh,CalendarArrowUpIcon:Eh,CalendarCheck:Oh,CalendarCheck2:Fh,CalendarCheck2Icon:Fh,CalendarCheckIcon:Oh,CalendarClock:Hh,CalendarClockIcon:Hh,CalendarCog:Vh,CalendarCogIcon:Vh,CalendarDays:fo,CalendarDaysIcon:fo,CalendarFold:Bh,CalendarFoldIcon:Bh,CalendarHeart:$h,CalendarHeartIcon:$h,CalendarIcon:xo,CalendarMinus:Gh,CalendarMinus2:Uh,CalendarMinus2Icon:Uh,CalendarMinusIcon:Gh,CalendarOff:Wh,CalendarOffIcon:Wh,CalendarPlus:Jh,CalendarPlus2:Zh,CalendarPlus2Icon:Zh,CalendarPlusIcon:Jh,CalendarRange:Xh,CalendarRangeIcon:Xh,CalendarSearch:Yh,CalendarSearchIcon:Yh,CalendarX:Qh,CalendarX2:Kh,CalendarX2Icon:Kh,CalendarXIcon:Qh,Camera:t0,CameraIcon:t0,CameraOff:e0,CameraOffIcon:e0,CandlestickChart:mr,CandlestickChartIcon:mr,Candy:r0,CandyCane:a0,CandyCaneIcon:a0,CandyIcon:r0,CandyOff:n0,CandyOffIcon:n0,Cannabis:s0,CannabisIcon:s0,Captions:dr,CaptionsIcon:dr,CaptionsOff:i0,CaptionsOffIcon:i0,Car:l0,CarFront:o0,CarFrontIcon:o0,CarIcon:l0,CarTaxiFront:c0,CarTaxiFrontIcon:c0,Caravan:d0,CaravanIcon:d0,Carrot:h0,CarrotIcon:h0,CaseLower:u0,CaseLowerIcon:u0,CaseSensitive:p0,CaseSensitiveIcon:p0,CaseUpper:m0,CaseUpperIcon:m0,CassetteTape:y0,CassetteTapeIcon:y0,Cast:f0,CastIcon:f0,Castle:x0,CastleIcon:x0,Cat:g0,CatIcon:g0,Cctv:k0,CctvIcon:k0,ChartArea:hr,ChartAreaIcon:hr,ChartBar:pr,ChartBarBig:ur,ChartBarBigIcon:ur,ChartBarDecreasing:v0,ChartBarDecreasingIcon:v0,ChartBarIcon:pr,ChartBarIncreasing:w0,ChartBarIncreasingIcon:w0,ChartBarStacked:b0,ChartBarStackedIcon:b0,ChartCandlestick:mr,ChartCandlestickIcon:mr,ChartColumn:xr,ChartColumnBig:yr,ChartColumnBigIcon:yr,ChartColumnDecreasing:M0,ChartColumnDecreasingIcon:M0,ChartColumnIcon:xr,ChartColumnIncreasing:fr,ChartColumnIncreasingIcon:fr,ChartColumnStacked:j0,ChartColumnStackedIcon:j0,ChartGantt:C0,ChartGanttIcon:C0,ChartLine:gr,ChartLineIcon:gr,ChartNetwork:S0,ChartNetworkIcon:S0,ChartNoAxesColumn:kr,ChartNoAxesColumnDecreasing:N0,ChartNoAxesColumnDecreasingIcon:N0,ChartNoAxesColumnIcon:kr,ChartNoAxesColumnIncreasing:yn,ChartNoAxesColumnIncreasingIcon:yn,ChartNoAxesCombined:L0,ChartNoAxesCombinedIcon:L0,ChartNoAxesGantt:vr,ChartNoAxesGanttIcon:vr,ChartPie:wr,ChartPieIcon:wr,ChartScatter:br,ChartScatterIcon:br,ChartSpline:I0,ChartSplineIcon:I0,Check:Qo,CheckCheck:A0,CheckCheckIcon:A0,CheckCircle:Vt,CheckCircle2:tt,CheckCircle2Icon:tt,CheckCircleIcon:Vt,CheckIcon:Qo,CheckSquare:di,CheckSquare2:hi,CheckSquare2Icon:hi,CheckSquareIcon:di,ChefHat:P0,ChefHatIcon:P0,Cherry:_0,CherryIcon:_0,ChevronDown:wn,ChevronDownCircle:Pr,ChevronDownCircleIcon:Pr,ChevronDownIcon:wn,ChevronDownSquare:ui,ChevronDownSquareIcon:ui,ChevronFirst:R0,ChevronFirstIcon:R0,ChevronLast:T0,ChevronLastIcon:T0,ChevronLeft:bn,ChevronLeftCircle:_r,ChevronLeftCircleIcon:_r,ChevronLeftIcon:bn,ChevronLeftSquare:pi,ChevronLeftSquareIcon:pi,ChevronRight:Mn,ChevronRightCircle:Rr,ChevronRightCircleIcon:Rr,ChevronRightIcon:Mn,ChevronRightSquare:mi,ChevronRightSquareIcon:mi,ChevronUp:ec,ChevronUpCircle:Tr,ChevronUpCircleIcon:Tr,ChevronUpIcon:ec,ChevronUpSquare:yi,ChevronUpSquareIcon:yi,ChevronsDown:q0,ChevronsDownIcon:q0,ChevronsDownUp:D0,ChevronsDownUpIcon:D0,ChevronsLeft:F0,ChevronsLeftIcon:F0,ChevronsLeftRight:E0,ChevronsLeftRightEllipsis:z0,ChevronsLeftRightEllipsisIcon:z0,ChevronsLeftRightIcon:E0,ChevronsRight:H0,ChevronsRightIcon:H0,ChevronsRightLeft:O0,ChevronsRightLeftIcon:O0,ChevronsUp:B0,ChevronsUpDown:V0,ChevronsUpDownIcon:V0,ChevronsUpIcon:B0,Chrome:$0,ChromeIcon:$0,Church:U0,ChurchIcon:U0,Cigarette:W0,CigaretteIcon:W0,CigaretteOff:G0,CigaretteOffIcon:G0,Circle:ru,CircleAlert:Ht,CircleAlertIcon:Ht,CircleArrowDown:Mr,CircleArrowDownIcon:Mr,CircleArrowLeft:jr,CircleArrowLeftIcon:jr,CircleArrowOutDownLeft:Cr,CircleArrowOutDownLeftIcon:Cr,CircleArrowOutDownRight:Sr,CircleArrowOutDownRightIcon:Sr,CircleArrowOutUpLeft:Nr,CircleArrowOutUpLeftIcon:Nr,CircleArrowOutUpRight:Lr,CircleArrowOutUpRightIcon:Lr,CircleArrowRight:Ir,CircleArrowRightIcon:Ir,CircleArrowUp:Ar,CircleArrowUpIcon:Ar,CircleCheck:tt,CircleCheckBig:Vt,CircleCheckBigIcon:Vt,CircleCheckIcon:tt,CircleChevronDown:Pr,CircleChevronDownIcon:Pr,CircleChevronLeft:_r,CircleChevronLeftIcon:_r,CircleChevronRight:Rr,CircleChevronRightIcon:Rr,CircleChevronUp:Tr,CircleChevronUpIcon:Tr,CircleDashed:Z0,CircleDashedIcon:Z0,CircleDivide:Dr,CircleDivideIcon:Dr,CircleDollarSign:J0,CircleDollarSignIcon:J0,CircleDot:Y0,CircleDotDashed:X0,CircleDotDashedIcon:X0,CircleDotIcon:Y0,CircleEllipsis:K0,CircleEllipsisIcon:K0,CircleEqual:Q0,CircleEqualIcon:Q0,CircleFadingArrowUp:eu,CircleFadingArrowUpIcon:eu,CircleFadingPlus:tu,CircleFadingPlusIcon:tu,CircleGauge:qr,CircleGaugeIcon:qr,CircleHelp:fn,CircleHelpIcon:fn,CircleIcon:ru,CircleMinus:zr,CircleMinusIcon:zr,CircleOff:au,CircleOffIcon:au,CircleParking:Fr,CircleParkingIcon:Fr,CircleParkingOff:Er,CircleParkingOffIcon:Er,CirclePause:Or,CirclePauseIcon:Or,CirclePercent:Hr,CirclePercentIcon:Hr,CirclePlay:Vr,CirclePlayIcon:Vr,CirclePlus:Br,CirclePlusIcon:Br,CirclePower:$r,CirclePowerIcon:$r,CircleSlash:nu,CircleSlash2:Ur,CircleSlash2Icon:Ur,CircleSlashIcon:nu,CircleSlashed:Ur,CircleSlashedIcon:Ur,CircleStop:Gr,CircleStopIcon:Gr,CircleUser:Zr,CircleUserIcon:Zr,CircleUserRound:Wr,CircleUserRoundIcon:Wr,CircleX:ja,CircleXIcon:ja,CircuitBoard:su,CircuitBoardIcon:su,Citrus:iu,CitrusIcon:iu,Clapperboard:ou,ClapperboardIcon:ou,Clipboard:fu,ClipboardCheck:cu,ClipboardCheckIcon:cu,ClipboardCopy:lu,ClipboardCopyIcon:lu,ClipboardEdit:Xr,ClipboardEditIcon:Xr,ClipboardIcon:fu,ClipboardList:du,ClipboardListIcon:du,ClipboardMinus:hu,ClipboardMinusIcon:hu,ClipboardPaste:uu,ClipboardPasteIcon:uu,ClipboardPen:Xr,ClipboardPenIcon:Xr,ClipboardPenLine:Jr,ClipboardPenLineIcon:Jr,ClipboardPlus:pu,ClipboardPlusIcon:pu,ClipboardSignature:Jr,ClipboardSignatureIcon:Jr,ClipboardType:mu,ClipboardTypeIcon:mu,ClipboardX:yu,ClipboardXIcon:yu,Clock:ga,Clock1:xu,Clock10:gu,Clock10Icon:gu,Clock11:ku,Clock11Icon:ku,Clock12:vu,Clock12Icon:vu,Clock1Icon:xu,Clock2:wu,Clock2Icon:wu,Clock3:bu,Clock3Icon:bu,Clock4:Mu,Clock4Icon:Mu,Clock5:ju,Clock5Icon:ju,Clock6:Cu,Clock6Icon:Cu,Clock7:Su,Clock7Icon:Su,Clock8:Nu,Clock8Icon:Nu,Clock9:Lu,Clock9Icon:Lu,ClockAlert:Iu,ClockAlertIcon:Iu,ClockArrowDown:Au,ClockArrowDownIcon:Au,ClockArrowUp:Pu,ClockArrowUpIcon:Pu,ClockIcon:ga,Cloud:Uu,CloudCog:_u,CloudCogIcon:_u,CloudDownload:Yr,CloudDownloadIcon:Yr,CloudDrizzle:Ru,CloudDrizzleIcon:Ru,CloudFog:Tu,CloudFogIcon:Tu,CloudHail:Du,CloudHailIcon:Du,CloudIcon:Uu,CloudLightning:qu,CloudLightningIcon:qu,CloudMoon:Eu,CloudMoonIcon:Eu,CloudMoonRain:zu,CloudMoonRainIcon:zu,CloudOff:Fu,CloudOffIcon:Fu,CloudRain:Hu,CloudRainIcon:Hu,CloudRainWind:Ou,CloudRainWindIcon:Ou,CloudSnow:Vu,CloudSnowIcon:Vu,CloudSun:$u,CloudSunIcon:$u,CloudSunRain:Bu,CloudSunRainIcon:Bu,CloudUpload:xn,CloudUploadIcon:xn,Cloudy:Gu,CloudyIcon:Gu,Clover:Wu,CloverIcon:Wu,Club:Zu,ClubIcon:Zu,Code:Ju,Code2:Kr,Code2Icon:Kr,CodeIcon:Ju,CodeSquare:fi,CodeSquareIcon:fi,CodeXml:Kr,CodeXmlIcon:Kr,Codepen:Xu,CodepenIcon:Xu,Codesandbox:Yu,CodesandboxIcon:Yu,Coffee:Ku,CoffeeIcon:Ku,Cog:Qu,CogIcon:Qu,Coins:ep,CoinsIcon:ep,Columns:Qr,Columns2:Qr,Columns2Icon:Qr,Columns3:es,Columns3Icon:es,Columns4:tp,Columns4Icon:tp,ColumnsIcon:Qr,Combine:ap,CombineIcon:ap,Command:np,CommandIcon:np,Compass:rp,CompassIcon:rp,Component:sp,ComponentIcon:sp,Computer:ip,ComputerIcon:ip,ConciergeBell:op,ConciergeBellIcon:op,Cone:cp,ConeIcon:cp,Construction:lp,ConstructionIcon:lp,Contact:dp,Contact2:ts,Contact2Icon:ts,ContactIcon:dp,ContactRound:ts,ContactRoundIcon:ts,Container:hp,ContainerIcon:hp,Contrast:up,ContrastIcon:up,Cookie:pp,CookieIcon:pp,CookingPot:mp,CookingPotIcon:mp,Copy:vp,CopyCheck:yp,CopyCheckIcon:yp,CopyIcon:vp,CopyMinus:fp,CopyMinusIcon:fp,CopyPlus:xp,CopyPlusIcon:xp,CopySlash:gp,CopySlashIcon:gp,CopyX:kp,CopyXIcon:kp,Copyleft:wp,CopyleftIcon:wp,Copyright:bp,CopyrightIcon:bp,CornerDownLeft:Mp,CornerDownLeftIcon:Mp,CornerDownRight:jp,CornerDownRightIcon:jp,CornerLeftDown:Cp,CornerLeftDownIcon:Cp,CornerLeftUp:Sp,CornerLeftUpIcon:Sp,CornerRightDown:Np,CornerRightDownIcon:Np,CornerRightUp:Lp,CornerRightUpIcon:Lp,CornerUpLeft:Ip,CornerUpLeftIcon:Ip,CornerUpRight:Ap,CornerUpRightIcon:Ap,Cpu:Pp,CpuIcon:Pp,CreativeCommons:_p,CreativeCommonsIcon:_p,CreditCard:zc,CreditCardIcon:zc,Croissant:Rp,CroissantIcon:Rp,Crop:Tp,CropIcon:Tp,Cross:Dp,CrossIcon:Dp,Crosshair:qp,CrosshairIcon:qp,Crown:zp,CrownIcon:zp,Cuboid:Ep,CuboidIcon:Ep,CupSoda:Fp,CupSodaIcon:Fp,CurlyBraces:lr,CurlyBracesIcon:lr,Currency:Op,CurrencyIcon:Op,Cylinder:Hp,CylinderIcon:Hp,Dam:Vp,DamIcon:Vp,Database:Up,DatabaseBackup:Bp,DatabaseBackupIcon:Bp,DatabaseIcon:Up,DatabaseZap:$p,DatabaseZapIcon:$p,Delete:Gp,DeleteIcon:Gp,Dessert:Wp,DessertIcon:Wp,Diameter:Zp,DiameterIcon:Zp,Diamond:Yp,DiamondIcon:Yp,DiamondMinus:Jp,DiamondMinusIcon:Jp,DiamondPercent:as,DiamondPercentIcon:as,DiamondPlus:Xp,DiamondPlusIcon:Xp,Dice1:Kp,Dice1Icon:Kp,Dice2:Qp,Dice2Icon:Qp,Dice3:em,Dice3Icon:em,Dice4:tm,Dice4Icon:tm,Dice5:am,Dice5Icon:am,Dice6:nm,Dice6Icon:nm,Dices:rm,DicesIcon:rm,Diff:sm,DiffIcon:sm,Disc:lm,Disc2:im,Disc2Icon:im,Disc3:om,Disc3Icon:om,DiscAlbum:cm,DiscAlbumIcon:cm,DiscIcon:lm,Divide:dm,DivideCircle:Dr,DivideCircleIcon:Dr,DivideIcon:dm,DivideSquare:vi,DivideSquareIcon:vi,Dna:um,DnaIcon:um,DnaOff:hm,DnaOffIcon:hm,Dock:pm,DockIcon:pm,Dog:mm,DogIcon:mm,DollarSign:Ec,DollarSignIcon:Ec,Donut:ym,DonutIcon:ym,DoorClosed:fm,DoorClosedIcon:fm,DoorOpen:xm,DoorOpenIcon:xm,Dot:gm,DotIcon:gm,DotSquare:wi,DotSquareIcon:wi,Download:Fc,DownloadCloud:Yr,DownloadCloudIcon:Yr,DownloadIcon:Fc,DraftingCompass:km,DraftingCompassIcon:km,Drama:vm,DramaIcon:vm,Dribbble:wm,DribbbleIcon:wm,Drill:bm,DrillIcon:bm,Droplet:Mm,DropletIcon:Mm,Droplets:jm,DropletsIcon:jm,Drum:Cm,DrumIcon:Cm,Drumstick:Sm,DrumstickIcon:Sm,Dumbbell:Nm,DumbbellIcon:Nm,Ear:Im,EarIcon:Im,EarOff:Lm,EarOffIcon:Lm,Earth:ns,EarthIcon:ns,EarthLock:Am,EarthLockIcon:Am,Eclipse:Pm,EclipseIcon:Pm,Edit:Ft,Edit2:Hs,Edit2Icon:Hs,Edit3:Os,Edit3Icon:Os,EditIcon:Ft,Egg:Tm,EggFried:_m,EggFriedIcon:_m,EggIcon:Tm,EggOff:Rm,EggOffIcon:Rm,Ellipsis:ss,EllipsisIcon:ss,EllipsisVertical:rs,EllipsisVerticalIcon:rs,Equal:qm,EqualIcon:qm,EqualNot:Dm,EqualNotIcon:Dm,EqualSquare:bi,EqualSquareIcon:bi,Eraser:zm,EraserIcon:zm,EthernetPort:Em,EthernetPortIcon:Em,Euro:Fm,EuroIcon:Fm,Expand:Om,ExpandIcon:Om,ExternalLink:go,ExternalLinkIcon:go,Eye:tc,EyeClosed:Hm,EyeClosedIcon:Hm,EyeIcon:tc,EyeOff:Oc,EyeOffIcon:Oc,Facebook:Vm,FacebookIcon:Vm,Factory:Bm,FactoryIcon:Bm,Fan:$m,FanIcon:$m,FastForward:Um,FastForwardIcon:Um,Feather:Gm,FeatherIcon:Gm,Fence:Wm,FenceIcon:Wm,FerrisWheel:Zm,FerrisWheelIcon:Zm,Figma:Jm,FigmaIcon:Jm,File:Uy,FileArchive:Xm,FileArchiveIcon:Xm,FileAudio:Km,FileAudio2:Ym,FileAudio2Icon:Ym,FileAudioIcon:Km,FileAxis3D:is,FileAxis3DIcon:is,FileAxis3d:is,FileAxis3dIcon:is,FileBadge:ey,FileBadge2:Qm,FileBadge2Icon:Qm,FileBadgeIcon:ey,FileBarChart:os,FileBarChart2:cs,FileBarChart2Icon:cs,FileBarChartIcon:os,FileBox:ty,FileBoxIcon:ty,FileChartColumn:cs,FileChartColumnIcon:cs,FileChartColumnIncreasing:os,FileChartColumnIncreasingIcon:os,FileChartLine:ls,FileChartLineIcon:ls,FileChartPie:ds,FileChartPieIcon:ds,FileCheck:ny,FileCheck2:ay,FileCheck2Icon:ay,FileCheckIcon:ny,FileClock:ry,FileClockIcon:ry,FileCode:iy,FileCode2:sy,FileCode2Icon:sy,FileCodeIcon:iy,FileCog:hs,FileCog2:hs,FileCog2Icon:hs,FileCogIcon:hs,FileDiff:oy,FileDiffIcon:oy,FileDigit:cy,FileDigitIcon:cy,FileDown:ly,FileDownIcon:ly,FileEdit:ps,FileEditIcon:ps,FileHeart:dy,FileHeartIcon:dy,FileIcon:Uy,FileImage:hy,FileImageIcon:hy,FileInput:uy,FileInputIcon:uy,FileJson:my,FileJson2:py,FileJson2Icon:py,FileJsonIcon:my,FileKey:fy,FileKey2:yy,FileKey2Icon:yy,FileKeyIcon:fy,FileLineChart:ls,FileLineChartIcon:ls,FileLock:gy,FileLock2:xy,FileLock2Icon:xy,FileLockIcon:gy,FileMinus:vy,FileMinus2:ky,FileMinus2Icon:ky,FileMinusIcon:vy,FileMusic:wy,FileMusicIcon:wy,FileOutput:by,FileOutputIcon:by,FilePen:ps,FilePenIcon:ps,FilePenLine:us,FilePenLineIcon:us,FilePieChart:ds,FilePieChartIcon:ds,FilePlus:jy,FilePlus2:My,FilePlus2Icon:My,FilePlusIcon:jy,FileQuestion:Cy,FileQuestionIcon:Cy,FileScan:Sy,FileScanIcon:Sy,FileSearch:Ly,FileSearch2:Ny,FileSearch2Icon:Ny,FileSearchIcon:Ly,FileSignature:us,FileSignatureIcon:us,FileSliders:Iy,FileSlidersIcon:Iy,FileSpreadsheet:Ay,FileSpreadsheetIcon:Ay,FileStack:Py,FileStackIcon:Py,FileSymlink:_y,FileSymlinkIcon:_y,FileTerminal:Ry,FileTerminalIcon:Ry,FileText:jn,FileTextIcon:jn,FileType:Dy,FileType2:Ty,FileType2Icon:Ty,FileTypeIcon:Dy,FileUp:qy,FileUpIcon:qy,FileUser:zy,FileUserIcon:zy,FileVideo:Fy,FileVideo2:Ey,FileVideo2Icon:Ey,FileVideoIcon:Fy,FileVolume:Hy,FileVolume2:Oy,FileVolume2Icon:Oy,FileVolumeIcon:Hy,FileWarning:Vy,FileWarningIcon:Vy,FileX:$y,FileX2:By,FileX2Icon:By,FileXIcon:$y,Files:Gy,FilesIcon:Gy,Film:Wy,FilmIcon:Wy,Filter:Cn,FilterIcon:Cn,FilterX:Zy,FilterXIcon:Zy,Fingerprint:Jy,FingerprintIcon:Jy,FireExtinguisher:Xy,FireExtinguisherIcon:Xy,Fish:Qy,FishIcon:Qy,FishOff:Yy,FishOffIcon:Yy,FishSymbol:Ky,FishSymbolIcon:Ky,Flag:Hc,FlagIcon:Hc,FlagOff:ef,FlagOffIcon:ef,FlagTriangleLeft:tf,FlagTriangleLeftIcon:tf,FlagTriangleRight:af,FlagTriangleRightIcon:af,Flame:rf,FlameIcon:rf,FlameKindling:nf,FlameKindlingIcon:nf,Flashlight:of,FlashlightIcon:of,FlashlightOff:sf,FlashlightOffIcon:sf,FlaskConical:lf,FlaskConicalIcon:lf,FlaskConicalOff:cf,FlaskConicalOffIcon:cf,FlaskRound:df,FlaskRoundIcon:df,FlipHorizontal:uf,FlipHorizontal2:hf,FlipHorizontal2Icon:hf,FlipHorizontalIcon:uf,FlipVertical:mf,FlipVertical2:pf,FlipVertical2Icon:pf,FlipVerticalIcon:mf,Flower:ff,Flower2:yf,Flower2Icon:yf,FlowerIcon:ff,Focus:xf,FocusIcon:xf,FoldHorizontal:gf,FoldHorizontalIcon:gf,FoldVertical:kf,FoldVerticalIcon:kf,Folder:Wf,FolderArchive:vf,FolderArchiveIcon:vf,FolderCheck:wf,FolderCheckIcon:wf,FolderClock:bf,FolderClockIcon:bf,FolderClosed:Mf,FolderClosedIcon:Mf,FolderCode:jf,FolderCodeIcon:jf,FolderCog:ms,FolderCog2:ms,FolderCog2Icon:ms,FolderCogIcon:ms,FolderDot:Cf,FolderDotIcon:Cf,FolderDown:Sf,FolderDownIcon:Sf,FolderEdit:ys,FolderEditIcon:ys,FolderGit:Lf,FolderGit2:Nf,FolderGit2Icon:Nf,FolderGitIcon:Lf,FolderHeart:If,FolderHeartIcon:If,FolderIcon:Wf,FolderInput:Af,FolderInputIcon:Af,FolderKanban:Pf,FolderKanbanIcon:Pf,FolderKey:_f,FolderKeyIcon:_f,FolderLock:Rf,FolderLockIcon:Rf,FolderMinus:Tf,FolderMinusIcon:Tf,FolderOpen:qf,FolderOpenDot:Df,FolderOpenDotIcon:Df,FolderOpenIcon:qf,FolderOutput:zf,FolderOutputIcon:zf,FolderPen:ys,FolderPenIcon:ys,FolderPlus:Ef,FolderPlusIcon:Ef,FolderRoot:Ff,FolderRootIcon:Ff,FolderSearch:Hf,FolderSearch2:Of,FolderSearch2Icon:Of,FolderSearchIcon:Hf,FolderSymlink:Vf,FolderSymlinkIcon:Vf,FolderSync:Bf,FolderSyncIcon:Bf,FolderTree:$f,FolderTreeIcon:$f,FolderUp:Uf,FolderUpIcon:Uf,FolderX:Gf,FolderXIcon:Gf,Folders:Zf,FoldersIcon:Zf,Footprints:Jf,FootprintsIcon:Jf,ForkKnife:co,ForkKnifeCrossed:oo,ForkKnifeCrossedIcon:oo,ForkKnifeIcon:co,Forklift:Xf,ForkliftIcon:Xf,FormInput:Bs,FormInputIcon:Bs,Forward:Yf,ForwardIcon:Yf,Frame:Kf,FrameIcon:Kf,Framer:Qf,FramerIcon:Qf,Frown:ex,FrownIcon:ex,Fuel:tx,FuelIcon:tx,Fullscreen:ax,FullscreenIcon:ax,FunctionSquare:Mi,FunctionSquareIcon:Mi,GalleryHorizontal:rx,GalleryHorizontalEnd:nx,GalleryHorizontalEndIcon:nx,GalleryHorizontalIcon:rx,GalleryThumbnails:sx,GalleryThumbnailsIcon:sx,GalleryVertical:ox,GalleryVerticalEnd:ix,GalleryVerticalEndIcon:ix,GalleryVerticalIcon:ox,Gamepad:cx,Gamepad2:Vc,Gamepad2Icon:Vc,GamepadIcon:cx,GanttChart:vr,GanttChartIcon:vr,GanttChartSquare:ba,GanttChartSquareIcon:ba,Gauge:lx,GaugeCircle:qr,GaugeCircleIcon:qr,GaugeIcon:lx,Gavel:dx,GavelIcon:dx,Gem:hx,GemIcon:hx,Ghost:ux,GhostIcon:ux,Gift:px,GiftIcon:px,GitBranch:yx,GitBranchIcon:yx,GitBranchPlus:mx,GitBranchPlusIcon:mx,GitCommit:fs,GitCommitHorizontal:fs,GitCommitHorizontalIcon:fs,GitCommitIcon:fs,GitCommitVertical:fx,GitCommitVerticalIcon:fx,GitCompare:gx,GitCompareArrows:xx,GitCompareArrowsIcon:xx,GitCompareIcon:gx,GitFork:kx,GitForkIcon:kx,GitGraph:vx,GitGraphIcon:vx,GitMerge:wx,GitMergeIcon:wx,GitPullRequest:Nx,GitPullRequestArrow:bx,GitPullRequestArrowIcon:bx,GitPullRequestClosed:Mx,GitPullRequestClosedIcon:Mx,GitPullRequestCreate:Cx,GitPullRequestCreateArrow:jx,GitPullRequestCreateArrowIcon:jx,GitPullRequestCreateIcon:Cx,GitPullRequestDraft:Sx,GitPullRequestDraftIcon:Sx,GitPullRequestIcon:Nx,Github:Lx,GithubIcon:Lx,Gitlab:Ix,GitlabIcon:Ix,GlassWater:Ax,GlassWaterIcon:Ax,Glasses:Px,GlassesIcon:Px,Globe:oa,Globe2:ns,Globe2Icon:ns,GlobeIcon:oa,GlobeLock:_x,GlobeLockIcon:_x,Goal:Rx,GoalIcon:Rx,Grab:Tx,GrabIcon:Tx,GraduationCap:Sn,GraduationCapIcon:Sn,Grape:Dx,GrapeIcon:Dx,Grid:ma,Grid2X2:xs,Grid2X2Icon:xs,Grid2x2:xs,Grid2x2Check:qx,Grid2x2CheckIcon:qx,Grid2x2Icon:xs,Grid2x2Plus:zx,Grid2x2PlusIcon:zx,Grid2x2X:Ex,Grid2x2XIcon:Ex,Grid3X3:ma,Grid3X3Icon:ma,Grid3x3:ma,Grid3x3Icon:ma,GridIcon:ma,Grip:Hx,GripHorizontal:Fx,GripHorizontalIcon:Fx,GripIcon:Hx,GripVertical:Ox,GripVerticalIcon:Ox,Group:Vx,GroupIcon:Vx,Guitar:Bx,GuitarIcon:Bx,Ham:$x,HamIcon:$x,Hammer:Ux,HammerIcon:Ux,Hand:Xx,HandCoins:Gx,HandCoinsIcon:Gx,HandHeart:Wx,HandHeartIcon:Wx,HandHelping:gs,HandHelpingIcon:gs,HandIcon:Xx,HandMetal:Zx,HandMetalIcon:Zx,HandPlatter:Jx,HandPlatterIcon:Jx,Handshake:Yx,HandshakeIcon:Yx,HardDrive:eg,HardDriveDownload:Kx,HardDriveDownloadIcon:Kx,HardDriveIcon:eg,HardDriveUpload:Qx,HardDriveUploadIcon:Qx,HardHat:tg,HardHatIcon:tg,Hash:ag,HashIcon:ag,Haze:ng,HazeIcon:ng,HdmiPort:rg,HdmiPortIcon:rg,Heading:hg,Heading1:sg,Heading1Icon:sg,Heading2:ig,Heading2Icon:ig,Heading3:og,Heading3Icon:og,Heading4:cg,Heading4Icon:cg,Heading5:lg,Heading5Icon:lg,Heading6:dg,Heading6Icon:dg,HeadingIcon:hg,HeadphoneOff:ug,HeadphoneOffIcon:ug,Headphones:pg,HeadphonesIcon:pg,Headset:mg,HeadsetIcon:mg,Heart:Nn,HeartCrack:yg,HeartCrackIcon:yg,HeartHandshake:fg,HeartHandshakeIcon:fg,HeartIcon:Nn,HeartOff:xg,HeartOffIcon:xg,HeartPulse:gg,HeartPulseIcon:gg,Heater:kg,HeaterIcon:kg,HelpCircle:fn,HelpCircleIcon:fn,HelpingHand:gs,HelpingHandIcon:gs,Hexagon:vg,HexagonIcon:vg,Highlighter:wg,HighlighterIcon:wg,History:bg,HistoryIcon:bg,Home:Ua,HomeIcon:Ua,Hop:jg,HopIcon:jg,HopOff:Mg,HopOffIcon:Mg,Hospital:Cg,HospitalIcon:Cg,Hotel:Sg,HotelIcon:Sg,Hourglass:Ng,HourglassIcon:Ng,House:Ua,HouseIcon:Ua,HousePlug:Lg,HousePlugIcon:Lg,HousePlus:Ig,HousePlusIcon:Ig,IceCream:vs,IceCream2:ks,IceCream2Icon:ks,IceCreamBowl:ks,IceCreamBowlIcon:ks,IceCreamCone:vs,IceCreamConeIcon:vs,IceCreamIcon:vs,Icon:JL,IdCard:Ag,IdCardIcon:Ag,Image:zg,ImageDown:Pg,ImageDownIcon:Pg,ImageIcon:zg,ImageMinus:_g,ImageMinusIcon:_g,ImageOff:Rg,ImageOffIcon:Rg,ImagePlay:Tg,ImagePlayIcon:Tg,ImagePlus:Dg,ImagePlusIcon:Dg,ImageUp:qg,ImageUpIcon:qg,Images:Eg,ImagesIcon:Eg,Import:Fg,ImportIcon:Fg,Inbox:Og,InboxIcon:Og,Indent:bs,IndentDecrease:ws,IndentDecreaseIcon:ws,IndentIcon:bs,IndentIncrease:bs,IndentIncreaseIcon:bs,IndianRupee:Hg,IndianRupeeIcon:Hg,Infinity:Vg,InfinityIcon:Vg,Info:Bg,InfoIcon:Bg,Inspect:Ii,InspectIcon:Ii,InspectionPanel:$g,InspectionPanelIcon:$g,Instagram:Ug,InstagramIcon:Ug,Italic:Gg,ItalicIcon:Gg,IterationCcw:Wg,IterationCcwIcon:Wg,IterationCw:Zg,IterationCwIcon:Zg,JapaneseYen:Jg,JapaneseYenIcon:Jg,Joystick:Xg,JoystickIcon:Xg,Kanban:Yg,KanbanIcon:Yg,KanbanSquare:ji,KanbanSquareDashed:xi,KanbanSquareDashedIcon:xi,KanbanSquareIcon:ji,Key:e4,KeyIcon:e4,KeyRound:Kg,KeyRoundIcon:Kg,KeySquare:Qg,KeySquareIcon:Qg,Keyboard:n4,KeyboardIcon:n4,KeyboardMusic:t4,KeyboardMusicIcon:t4,KeyboardOff:a4,KeyboardOffIcon:a4,Lamp:l4,LampCeiling:r4,LampCeilingIcon:r4,LampDesk:s4,LampDeskIcon:s4,LampFloor:i4,LampFloorIcon:i4,LampIcon:l4,LampWallDown:o4,LampWallDownIcon:o4,LampWallUp:c4,LampWallUpIcon:c4,LandPlot:d4,LandPlotIcon:d4,Landmark:h4,LandmarkIcon:h4,Languages:Bc,LanguagesIcon:Bc,Laptop:u4,Laptop2:Ms,Laptop2Icon:Ms,LaptopIcon:u4,LaptopMinimal:Ms,LaptopMinimalIcon:Ms,Lasso:m4,LassoIcon:m4,LassoSelect:p4,LassoSelectIcon:p4,Laugh:y4,LaughIcon:y4,Layers:g4,Layers2:f4,Layers2Icon:f4,Layers3:x4,Layers3Icon:x4,LayersIcon:g4,Layout:Fs,LayoutDashboard:$c,LayoutDashboardIcon:$c,LayoutGrid:k4,LayoutGridIcon:k4,LayoutIcon:Fs,LayoutList:v4,LayoutListIcon:v4,LayoutPanelLeft:w4,LayoutPanelLeftIcon:w4,LayoutPanelTop:b4,LayoutPanelTopIcon:b4,LayoutTemplate:M4,LayoutTemplateIcon:M4,Leaf:j4,LeafIcon:j4,LeafyGreen:C4,LeafyGreenIcon:C4,Lectern:S4,LecternIcon:S4,LetterText:N4,LetterTextIcon:N4,Library:I4,LibraryBig:L4,LibraryBigIcon:L4,LibraryIcon:I4,LibrarySquare:Ci,LibrarySquareIcon:Ci,LifeBuoy:A4,LifeBuoyIcon:A4,Ligature:P4,LigatureIcon:P4,Lightbulb:R4,LightbulbIcon:R4,LightbulbOff:_4,LightbulbOffIcon:_4,LineChart:gr,LineChartIcon:gr,Link:Uc,Link2:D4,Link2Icon:D4,Link2Off:T4,Link2OffIcon:T4,LinkIcon:Uc,Linkedin:Gc,LinkedinIcon:Gc,List:Wc,ListCheck:q4,ListCheckIcon:q4,ListChecks:z4,ListChecksIcon:z4,ListCollapse:E4,ListCollapseIcon:E4,ListEnd:F4,ListEndIcon:F4,ListFilter:O4,ListFilterIcon:O4,ListIcon:Wc,ListMinus:H4,ListMinusIcon:H4,ListMusic:V4,ListMusicIcon:V4,ListOrdered:B4,ListOrderedIcon:B4,ListPlus:$4,ListPlusIcon:$4,ListRestart:U4,ListRestartIcon:U4,ListStart:G4,ListStartIcon:G4,ListTodo:W4,ListTodoIcon:W4,ListTree:Z4,ListTreeIcon:Z4,ListVideo:J4,ListVideoIcon:J4,ListX:X4,ListXIcon:X4,Loader:K4,Loader2:at,Loader2Icon:at,LoaderCircle:at,LoaderCircleIcon:at,LoaderIcon:K4,LoaderPinwheel:Y4,LoaderPinwheelIcon:Y4,Locate:tk,LocateFixed:Q4,LocateFixedIcon:Q4,LocateIcon:tk,LocateOff:ek,LocateOffIcon:ek,Lock:ko,LockIcon:ko,LockKeyhole:ak,LockKeyholeIcon:ak,LockKeyholeOpen:js,LockKeyholeOpenIcon:js,LockOpen:Cs,LockOpenIcon:Cs,LogIn:nk,LogInIcon:nk,LogOut:Zc,LogOutIcon:Zc,Logs:rk,LogsIcon:rk,Lollipop:sk,LollipopIcon:sk,LucideAArrowDown:Vl,LucideAArrowUp:Bl,LucideALargeSmall:$l,LucideAccessibility:Ul,LucideActivity:Gl,LucideActivitySquare:Ys,LucideAirVent:Wl,LucideAirplay:Zl,LucideAlarmCheck:Jn,LucideAlarmClock:Xl,LucideAlarmClockCheck:Jn,LucideAlarmClockMinus:Xn,LucideAlarmClockOff:Jl,LucideAlarmClockPlus:Yn,LucideAlarmMinus:Xn,LucideAlarmPlus:Yn,LucideAlarmSmoke:Yl,LucideAlbum:Kl,LucideAlertCircle:Ht,LucideAlertOctagon:Ls,LucideAlertTriangle:Yi,LucideAlignCenter:t1,LucideAlignCenterHorizontal:Ql,LucideAlignCenterVertical:e1,LucideAlignEndHorizontal:a1,LucideAlignEndVertical:n1,LucideAlignHorizontalDistributeCenter:r1,LucideAlignHorizontalDistributeEnd:s1,LucideAlignHorizontalDistributeStart:i1,LucideAlignHorizontalJustifyCenter:o1,LucideAlignHorizontalJustifyEnd:c1,LucideAlignHorizontalJustifyStart:l1,LucideAlignHorizontalSpaceAround:d1,LucideAlignHorizontalSpaceBetween:h1,LucideAlignJustify:u1,LucideAlignLeft:p1,LucideAlignRight:m1,LucideAlignStartHorizontal:y1,LucideAlignStartVertical:f1,LucideAlignVerticalDistributeCenter:x1,LucideAlignVerticalDistributeEnd:g1,LucideAlignVerticalDistributeStart:k1,LucideAlignVerticalJustifyCenter:v1,LucideAlignVerticalJustifyEnd:w1,LucideAlignVerticalJustifyStart:b1,LucideAlignVerticalSpaceAround:M1,LucideAlignVerticalSpaceBetween:j1,LucideAmbulance:C1,LucideAmpersand:S1,LucideAmpersands:N1,LucideAmphora:L1,LucideAnchor:I1,LucideAngry:A1,LucideAnnoyed:P1,LucideAntenna:_1,LucideAnvil:R1,LucideAperture:T1,LucideAppWindow:q1,LucideAppWindowMac:D1,LucideApple:z1,LucideArchive:O1,LucideArchiveRestore:E1,LucideArchiveX:F1,LucideAreaChart:hr,LucideArmchair:H1,LucideArrowBigDown:B1,LucideArrowBigDownDash:V1,LucideArrowBigLeft:U1,LucideArrowBigLeftDash:$1,LucideArrowBigRight:W1,LucideArrowBigRightDash:G1,LucideArrowBigUp:J1,LucideArrowBigUpDash:Z1,LucideArrowDown:sd,LucideArrowDown01:X1,LucideArrowDown10:Y1,LucideArrowDownAZ:Kn,LucideArrowDownAz:Kn,LucideArrowDownCircle:Mr,LucideArrowDownFromLine:K1,LucideArrowDownLeft:Q1,LucideArrowDownLeftFromCircle:Cr,LucideArrowDownLeftFromSquare:ti,LucideArrowDownLeftSquare:Ks,LucideArrowDownNarrowWide:ed,LucideArrowDownRight:td,LucideArrowDownRightFromCircle:Sr,LucideArrowDownRightFromSquare:ai,LucideArrowDownRightSquare:Qs,LucideArrowDownSquare:ei,LucideArrowDownToDot:ad,LucideArrowDownToLine:nd,LucideArrowDownUp:rd,LucideArrowDownWideNarrow:Qn,LucideArrowDownZA:er,LucideArrowDownZa:er,LucideArrowLeft:Ja,LucideArrowLeftCircle:jr,LucideArrowLeftFromLine:id,LucideArrowLeftRight:od,LucideArrowLeftSquare:Ga,LucideArrowLeftToLine:cd,LucideArrowRight:yo,LucideArrowRightCircle:Ir,LucideArrowRightFromLine:ld,LucideArrowRightLeft:dd,LucideArrowRightSquare:Wa,LucideArrowRightToLine:hd,LucideArrowUp:wd,LucideArrowUp01:ud,LucideArrowUp10:pd,LucideArrowUpAZ:tr,LucideArrowUpAz:tr,LucideArrowUpCircle:Ar,LucideArrowUpDown:md,LucideArrowUpFromDot:yd,LucideArrowUpFromLine:fd,LucideArrowUpLeft:xd,LucideArrowUpLeftFromCircle:Nr,LucideArrowUpLeftFromSquare:ni,LucideArrowUpLeftSquare:si,LucideArrowUpNarrowWide:ar,LucideArrowUpRight:gd,LucideArrowUpRightFromCircle:Lr,LucideArrowUpRightFromSquare:ri,LucideArrowUpRightSquare:ii,LucideArrowUpSquare:oi,LucideArrowUpToLine:kd,LucideArrowUpWideNarrow:vd,LucideArrowUpZA:nr,LucideArrowUpZa:nr,LucideArrowsUpFromLine:bd,LucideAsterisk:Md,LucideAsteriskSquare:ci,LucideAtSign:jd,LucideAtom:Cd,LucideAudioLines:Sd,LucideAudioWaveform:Nd,LucideAward:na,LucideAxe:Ld,LucideAxis3D:rr,LucideAxis3d:rr,LucideBaby:Id,LucideBackpack:Ad,LucideBadge:Dc,LucideBadgeAlert:Pd,LucideBadgeCent:_d,LucideBadgeCheck:sr,LucideBadgeDollarSign:Rd,LucideBadgeEuro:Td,LucideBadgeHelp:Dd,LucideBadgeIndianRupee:qd,LucideBadgeInfo:zd,LucideBadgeJapaneseYen:Ed,LucideBadgeMinus:Fd,LucideBadgePercent:Od,LucideBadgePlus:Hd,LucideBadgePoundSterling:Vd,LucideBadgeRussianRuble:Bd,LucideBadgeSwissFranc:$d,LucideBadgeX:Ud,LucideBaggageClaim:Gd,LucideBan:Wd,LucideBanana:Zd,LucideBandage:Jd,LucideBanknote:Xd,LucideBarChart:yn,LucideBarChart2:kr,LucideBarChart3:xr,LucideBarChart4:fr,LucideBarChartBig:yr,LucideBarChartHorizontal:pr,LucideBarChartHorizontalBig:ur,LucideBarcode:Yd,LucideBaseline:Kd,LucideBath:Qd,LucideBattery:s2,LucideBatteryCharging:e2,LucideBatteryFull:t2,LucideBatteryLow:a2,LucideBatteryMedium:n2,LucideBatteryWarning:r2,LucideBeaker:i2,LucideBean:c2,LucideBeanOff:o2,LucideBed:h2,LucideBedDouble:l2,LucideBedSingle:d2,LucideBeef:u2,LucideBeer:m2,LucideBeerOff:p2,LucideBell:Yo,LucideBellDot:y2,LucideBellElectric:f2,LucideBellMinus:x2,LucideBellOff:g2,LucideBellPlus:k2,LucideBellRing:v2,LucideBetweenHorizonalEnd:ir,LucideBetweenHorizonalStart:or,LucideBetweenHorizontalEnd:ir,LucideBetweenHorizontalStart:or,LucideBetweenVerticalEnd:w2,LucideBetweenVerticalStart:b2,LucideBicepsFlexed:M2,LucideBike:j2,LucideBinary:C2,LucideBinoculars:S2,LucideBiohazard:N2,LucideBird:L2,LucideBitcoin:I2,LucideBlend:A2,LucideBlinds:P2,LucideBlocks:_2,LucideBluetooth:q2,LucideBluetoothConnected:R2,LucideBluetoothOff:T2,LucideBluetoothSearching:D2,LucideBold:z2,LucideBolt:E2,LucideBomb:F2,LucideBone:O2,LucideBook:ch,LucideBookA:H2,LucideBookAudio:V2,LucideBookCheck:B2,LucideBookCopy:$2,LucideBookDashed:cr,LucideBookDown:U2,LucideBookHeadphones:G2,LucideBookHeart:W2,LucideBookImage:Z2,LucideBookKey:J2,LucideBookLock:X2,LucideBookMarked:Y2,LucideBookMinus:K2,LucideBookOpen:ia,LucideBookOpenCheck:Q2,LucideBookOpenText:eh,LucideBookPlus:th,LucideBookTemplate:cr,LucideBookText:ah,LucideBookType:nh,LucideBookUp:sh,LucideBookUp2:rh,LucideBookUser:ih,LucideBookX:oh,LucideBookmark:xa,LucideBookmarkCheck:fa,LucideBookmarkMinus:lh,LucideBookmarkPlus:dh,LucideBookmarkX:hh,LucideBoomBox:uh,LucideBot:qc,LucideBotMessageSquare:ph,LucideBotOff:mh,LucideBox:yh,LucideBoxSelect:ki,LucideBoxes:fh,LucideBraces:lr,LucideBrackets:xh,LucideBrain:vh,LucideBrainCircuit:gh,LucideBrainCog:kh,LucideBrickWall:wh,LucideBriefcase:Ze,LucideBriefcaseBusiness:bh,LucideBriefcaseConveyorBelt:Mh,LucideBriefcaseMedical:jh,LucideBringToFront:Ch,LucideBrush:Sh,LucideBug:Ih,LucideBugOff:Nh,LucideBugPlay:Lh,LucideBuilding:Ko,LucideBuilding2:rt,LucideBus:Ph,LucideBusFront:Ah,LucideCable:Rh,LucideCableCar:_h,LucideCake:Dh,LucideCakeSlice:Th,LucideCalculator:qh,LucideCalendar:xo,LucideCalendarArrowDown:zh,LucideCalendarArrowUp:Eh,LucideCalendarCheck:Oh,LucideCalendarCheck2:Fh,LucideCalendarClock:Hh,LucideCalendarCog:Vh,LucideCalendarDays:fo,LucideCalendarFold:Bh,LucideCalendarHeart:$h,LucideCalendarMinus:Gh,LucideCalendarMinus2:Uh,LucideCalendarOff:Wh,LucideCalendarPlus:Jh,LucideCalendarPlus2:Zh,LucideCalendarRange:Xh,LucideCalendarSearch:Yh,LucideCalendarX:Qh,LucideCalendarX2:Kh,LucideCamera:t0,LucideCameraOff:e0,LucideCandlestickChart:mr,LucideCandy:r0,LucideCandyCane:a0,LucideCandyOff:n0,LucideCannabis:s0,LucideCaptions:dr,LucideCaptionsOff:i0,LucideCar:l0,LucideCarFront:o0,LucideCarTaxiFront:c0,LucideCaravan:d0,LucideCarrot:h0,LucideCaseLower:u0,LucideCaseSensitive:p0,LucideCaseUpper:m0,LucideCassetteTape:y0,LucideCast:f0,LucideCastle:x0,LucideCat:g0,LucideCctv:k0,LucideChartArea:hr,LucideChartBar:pr,LucideChartBarBig:ur,LucideChartBarDecreasing:v0,LucideChartBarIncreasing:w0,LucideChartBarStacked:b0,LucideChartCandlestick:mr,LucideChartColumn:xr,LucideChartColumnBig:yr,LucideChartColumnDecreasing:M0,LucideChartColumnIncreasing:fr,LucideChartColumnStacked:j0,LucideChartGantt:C0,LucideChartLine:gr,LucideChartNetwork:S0,LucideChartNoAxesColumn:kr,LucideChartNoAxesColumnDecreasing:N0,LucideChartNoAxesColumnIncreasing:yn,LucideChartNoAxesCombined:L0,LucideChartNoAxesGantt:vr,LucideChartPie:wr,LucideChartScatter:br,LucideChartSpline:I0,LucideCheck:Qo,LucideCheckCheck:A0,LucideCheckCircle:Vt,LucideCheckCircle2:tt,LucideCheckSquare:di,LucideCheckSquare2:hi,LucideChefHat:P0,LucideCherry:_0,LucideChevronDown:wn,LucideChevronDownCircle:Pr,LucideChevronDownSquare:ui,LucideChevronFirst:R0,LucideChevronLast:T0,LucideChevronLeft:bn,LucideChevronLeftCircle:_r,LucideChevronLeftSquare:pi,LucideChevronRight:Mn,LucideChevronRightCircle:Rr,LucideChevronRightSquare:mi,LucideChevronUp:ec,LucideChevronUpCircle:Tr,LucideChevronUpSquare:yi,LucideChevronsDown:q0,LucideChevronsDownUp:D0,LucideChevronsLeft:F0,LucideChevronsLeftRight:E0,LucideChevronsLeftRightEllipsis:z0,LucideChevronsRight:H0,LucideChevronsRightLeft:O0,LucideChevronsUp:B0,LucideChevronsUpDown:V0,LucideChrome:$0,LucideChurch:U0,LucideCigarette:W0,LucideCigaretteOff:G0,LucideCircle:ru,LucideCircleAlert:Ht,LucideCircleArrowDown:Mr,LucideCircleArrowLeft:jr,LucideCircleArrowOutDownLeft:Cr,LucideCircleArrowOutDownRight:Sr,LucideCircleArrowOutUpLeft:Nr,LucideCircleArrowOutUpRight:Lr,LucideCircleArrowRight:Ir,LucideCircleArrowUp:Ar,LucideCircleCheck:tt,LucideCircleCheckBig:Vt,LucideCircleChevronDown:Pr,LucideCircleChevronLeft:_r,LucideCircleChevronRight:Rr,LucideCircleChevronUp:Tr,LucideCircleDashed:Z0,LucideCircleDivide:Dr,LucideCircleDollarSign:J0,LucideCircleDot:Y0,LucideCircleDotDashed:X0,LucideCircleEllipsis:K0,LucideCircleEqual:Q0,LucideCircleFadingArrowUp:eu,LucideCircleFadingPlus:tu,LucideCircleGauge:qr,LucideCircleHelp:fn,LucideCircleMinus:zr,LucideCircleOff:au,LucideCircleParking:Fr,LucideCircleParkingOff:Er,LucideCirclePause:Or,LucideCirclePercent:Hr,LucideCirclePlay:Vr,LucideCirclePlus:Br,LucideCirclePower:$r,LucideCircleSlash:nu,LucideCircleSlash2:Ur,LucideCircleSlashed:Ur,LucideCircleStop:Gr,LucideCircleUser:Zr,LucideCircleUserRound:Wr,LucideCircleX:ja,LucideCircuitBoard:su,LucideCitrus:iu,LucideClapperboard:ou,LucideClipboard:fu,LucideClipboardCheck:cu,LucideClipboardCopy:lu,LucideClipboardEdit:Xr,LucideClipboardList:du,LucideClipboardMinus:hu,LucideClipboardPaste:uu,LucideClipboardPen:Xr,LucideClipboardPenLine:Jr,LucideClipboardPlus:pu,LucideClipboardSignature:Jr,LucideClipboardType:mu,LucideClipboardX:yu,LucideClock:ga,LucideClock1:xu,LucideClock10:gu,LucideClock11:ku,LucideClock12:vu,LucideClock2:wu,LucideClock3:bu,LucideClock4:Mu,LucideClock5:ju,LucideClock6:Cu,LucideClock7:Su,LucideClock8:Nu,LucideClock9:Lu,LucideClockAlert:Iu,LucideClockArrowDown:Au,LucideClockArrowUp:Pu,LucideCloud:Uu,LucideCloudCog:_u,LucideCloudDownload:Yr,LucideCloudDrizzle:Ru,LucideCloudFog:Tu,LucideCloudHail:Du,LucideCloudLightning:qu,LucideCloudMoon:Eu,LucideCloudMoonRain:zu,LucideCloudOff:Fu,LucideCloudRain:Hu,LucideCloudRainWind:Ou,LucideCloudSnow:Vu,LucideCloudSun:$u,LucideCloudSunRain:Bu,LucideCloudUpload:xn,LucideCloudy:Gu,LucideClover:Wu,LucideClub:Zu,LucideCode:Ju,LucideCode2:Kr,LucideCodeSquare:fi,LucideCodeXml:Kr,LucideCodepen:Xu,LucideCodesandbox:Yu,LucideCoffee:Ku,LucideCog:Qu,LucideCoins:ep,LucideColumns:Qr,LucideColumns2:Qr,LucideColumns3:es,LucideColumns4:tp,LucideCombine:ap,LucideCommand:np,LucideCompass:rp,LucideComponent:sp,LucideComputer:ip,LucideConciergeBell:op,LucideCone:cp,LucideConstruction:lp,LucideContact:dp,LucideContact2:ts,LucideContactRound:ts,LucideContainer:hp,LucideContrast:up,LucideCookie:pp,LucideCookingPot:mp,LucideCopy:vp,LucideCopyCheck:yp,LucideCopyMinus:fp,LucideCopyPlus:xp,LucideCopySlash:gp,LucideCopyX:kp,LucideCopyleft:wp,LucideCopyright:bp,LucideCornerDownLeft:Mp,LucideCornerDownRight:jp,LucideCornerLeftDown:Cp,LucideCornerLeftUp:Sp,LucideCornerRightDown:Np,LucideCornerRightUp:Lp,LucideCornerUpLeft:Ip,LucideCornerUpRight:Ap,LucideCpu:Pp,LucideCreativeCommons:_p,LucideCreditCard:zc,LucideCroissant:Rp,LucideCrop:Tp,LucideCross:Dp,LucideCrosshair:qp,LucideCrown:zp,LucideCuboid:Ep,LucideCupSoda:Fp,LucideCurlyBraces:lr,LucideCurrency:Op,LucideCylinder:Hp,LucideDam:Vp,LucideDatabase:Up,LucideDatabaseBackup:Bp,LucideDatabaseZap:$p,LucideDelete:Gp,LucideDessert:Wp,LucideDiameter:Zp,LucideDiamond:Yp,LucideDiamondMinus:Jp,LucideDiamondPercent:as,LucideDiamondPlus:Xp,LucideDice1:Kp,LucideDice2:Qp,LucideDice3:em,LucideDice4:tm,LucideDice5:am,LucideDice6:nm,LucideDices:rm,LucideDiff:sm,LucideDisc:lm,LucideDisc2:im,LucideDisc3:om,LucideDiscAlbum:cm,LucideDivide:dm,LucideDivideCircle:Dr,LucideDivideSquare:vi,LucideDna:um,LucideDnaOff:hm,LucideDock:pm,LucideDog:mm,LucideDollarSign:Ec,LucideDonut:ym,LucideDoorClosed:fm,LucideDoorOpen:xm,LucideDot:gm,LucideDotSquare:wi,LucideDownload:Fc,LucideDownloadCloud:Yr,LucideDraftingCompass:km,LucideDrama:vm,LucideDribbble:wm,LucideDrill:bm,LucideDroplet:Mm,LucideDroplets:jm,LucideDrum:Cm,LucideDrumstick:Sm,LucideDumbbell:Nm,LucideEar:Im,LucideEarOff:Lm,LucideEarth:ns,LucideEarthLock:Am,LucideEclipse:Pm,LucideEdit:Ft,LucideEdit2:Hs,LucideEdit3:Os,LucideEgg:Tm,LucideEggFried:_m,LucideEggOff:Rm,LucideEllipsis:ss,LucideEllipsisVertical:rs,LucideEqual:qm,LucideEqualNot:Dm,LucideEqualSquare:bi,LucideEraser:zm,LucideEthernetPort:Em,LucideEuro:Fm,LucideExpand:Om,LucideExternalLink:go,LucideEye:tc,LucideEyeClosed:Hm,LucideEyeOff:Oc,LucideFacebook:Vm,LucideFactory:Bm,LucideFan:$m,LucideFastForward:Um,LucideFeather:Gm,LucideFence:Wm,LucideFerrisWheel:Zm,LucideFigma:Jm,LucideFile:Uy,LucideFileArchive:Xm,LucideFileAudio:Km,LucideFileAudio2:Ym,LucideFileAxis3D:is,LucideFileAxis3d:is,LucideFileBadge:ey,LucideFileBadge2:Qm,LucideFileBarChart:os,LucideFileBarChart2:cs,LucideFileBox:ty,LucideFileChartColumn:cs,LucideFileChartColumnIncreasing:os,LucideFileChartLine:ls,LucideFileChartPie:ds,LucideFileCheck:ny,LucideFileCheck2:ay,LucideFileClock:ry,LucideFileCode:iy,LucideFileCode2:sy,LucideFileCog:hs,LucideFileCog2:hs,LucideFileDiff:oy,LucideFileDigit:cy,LucideFileDown:ly,LucideFileEdit:ps,LucideFileHeart:dy,LucideFileImage:hy,LucideFileInput:uy,LucideFileJson:my,LucideFileJson2:py,LucideFileKey:fy,LucideFileKey2:yy,LucideFileLineChart:ls,LucideFileLock:gy,LucideFileLock2:xy,LucideFileMinus:vy,LucideFileMinus2:ky,LucideFileMusic:wy,LucideFileOutput:by,LucideFilePen:ps,LucideFilePenLine:us,LucideFilePieChart:ds,LucideFilePlus:jy,LucideFilePlus2:My,LucideFileQuestion:Cy,LucideFileScan:Sy,LucideFileSearch:Ly,LucideFileSearch2:Ny,LucideFileSignature:us,LucideFileSliders:Iy,LucideFileSpreadsheet:Ay,LucideFileStack:Py,LucideFileSymlink:_y,LucideFileTerminal:Ry,LucideFileText:jn,LucideFileType:Dy,LucideFileType2:Ty,LucideFileUp:qy,LucideFileUser:zy,LucideFileVideo:Fy,LucideFileVideo2:Ey,LucideFileVolume:Hy,LucideFileVolume2:Oy,LucideFileWarning:Vy,LucideFileX:$y,LucideFileX2:By,LucideFiles:Gy,LucideFilm:Wy,LucideFilter:Cn,LucideFilterX:Zy,LucideFingerprint:Jy,LucideFireExtinguisher:Xy,LucideFish:Qy,LucideFishOff:Yy,LucideFishSymbol:Ky,LucideFlag:Hc,LucideFlagOff:ef,LucideFlagTriangleLeft:tf,LucideFlagTriangleRight:af,LucideFlame:rf,LucideFlameKindling:nf,LucideFlashlight:of,LucideFlashlightOff:sf,LucideFlaskConical:lf,LucideFlaskConicalOff:cf,LucideFlaskRound:df,LucideFlipHorizontal:uf,LucideFlipHorizontal2:hf,LucideFlipVertical:mf,LucideFlipVertical2:pf,LucideFlower:ff,LucideFlower2:yf,LucideFocus:xf,LucideFoldHorizontal:gf,LucideFoldVertical:kf,LucideFolder:Wf,LucideFolderArchive:vf,LucideFolderCheck:wf,LucideFolderClock:bf,LucideFolderClosed:Mf,LucideFolderCode:jf,LucideFolderCog:ms,LucideFolderCog2:ms,LucideFolderDot:Cf,LucideFolderDown:Sf,LucideFolderEdit:ys,LucideFolderGit:Lf,LucideFolderGit2:Nf,LucideFolderHeart:If,LucideFolderInput:Af,LucideFolderKanban:Pf,LucideFolderKey:_f,LucideFolderLock:Rf,LucideFolderMinus:Tf,LucideFolderOpen:qf,LucideFolderOpenDot:Df,LucideFolderOutput:zf,LucideFolderPen:ys,LucideFolderPlus:Ef,LucideFolderRoot:Ff,LucideFolderSearch:Hf,LucideFolderSearch2:Of,LucideFolderSymlink:Vf,LucideFolderSync:Bf,LucideFolderTree:$f,LucideFolderUp:Uf,LucideFolderX:Gf,LucideFolders:Zf,LucideFootprints:Jf,LucideForkKnife:co,LucideForkKnifeCrossed:oo,LucideForklift:Xf,LucideFormInput:Bs,LucideForward:Yf,LucideFrame:Kf,LucideFramer:Qf,LucideFrown:ex,LucideFuel:tx,LucideFullscreen:ax,LucideFunctionSquare:Mi,LucideGalleryHorizontal:rx,LucideGalleryHorizontalEnd:nx,LucideGalleryThumbnails:sx,LucideGalleryVertical:ox,LucideGalleryVerticalEnd:ix,LucideGamepad:cx,LucideGamepad2:Vc,LucideGanttChart:vr,LucideGanttChartSquare:ba,LucideGauge:lx,LucideGaugeCircle:qr,LucideGavel:dx,LucideGem:hx,LucideGhost:ux,LucideGift:px,LucideGitBranch:yx,LucideGitBranchPlus:mx,LucideGitCommit:fs,LucideGitCommitHorizontal:fs,LucideGitCommitVertical:fx,LucideGitCompare:gx,LucideGitCompareArrows:xx,LucideGitFork:kx,LucideGitGraph:vx,LucideGitMerge:wx,LucideGitPullRequest:Nx,LucideGitPullRequestArrow:bx,LucideGitPullRequestClosed:Mx,LucideGitPullRequestCreate:Cx,LucideGitPullRequestCreateArrow:jx,LucideGitPullRequestDraft:Sx,LucideGithub:Lx,LucideGitlab:Ix,LucideGlassWater:Ax,LucideGlasses:Px,LucideGlobe:oa,LucideGlobe2:ns,LucideGlobeLock:_x,LucideGoal:Rx,LucideGrab:Tx,LucideGraduationCap:Sn,LucideGrape:Dx,LucideGrid:ma,LucideGrid2X2:xs,LucideGrid2x2:xs,LucideGrid2x2Check:qx,LucideGrid2x2Plus:zx,LucideGrid2x2X:Ex,LucideGrid3X3:ma,LucideGrid3x3:ma,LucideGrip:Hx,LucideGripHorizontal:Fx,LucideGripVertical:Ox,LucideGroup:Vx,LucideGuitar:Bx,LucideHam:$x,LucideHammer:Ux,LucideHand:Xx,LucideHandCoins:Gx,LucideHandHeart:Wx,LucideHandHelping:gs,LucideHandMetal:Zx,LucideHandPlatter:Jx,LucideHandshake:Yx,LucideHardDrive:eg,LucideHardDriveDownload:Kx,LucideHardDriveUpload:Qx,LucideHardHat:tg,LucideHash:ag,LucideHaze:ng,LucideHdmiPort:rg,LucideHeading:hg,LucideHeading1:sg,LucideHeading2:ig,LucideHeading3:og,LucideHeading4:cg,LucideHeading5:lg,LucideHeading6:dg,LucideHeadphoneOff:ug,LucideHeadphones:pg,LucideHeadset:mg,LucideHeart:Nn,LucideHeartCrack:yg,LucideHeartHandshake:fg,LucideHeartOff:xg,LucideHeartPulse:gg,LucideHeater:kg,LucideHelpCircle:fn,LucideHelpingHand:gs,LucideHexagon:vg,LucideHighlighter:wg,LucideHistory:bg,LucideHome:Ua,LucideHop:jg,LucideHopOff:Mg,LucideHospital:Cg,LucideHotel:Sg,LucideHourglass:Ng,LucideHouse:Ua,LucideHousePlug:Lg,LucideHousePlus:Ig,LucideIceCream:vs,LucideIceCream2:ks,LucideIceCreamBowl:ks,LucideIceCreamCone:vs,LucideIdCard:Ag,LucideImage:zg,LucideImageDown:Pg,LucideImageMinus:_g,LucideImageOff:Rg,LucideImagePlay:Tg,LucideImagePlus:Dg,LucideImageUp:qg,LucideImages:Eg,LucideImport:Fg,LucideInbox:Og,LucideIndent:bs,LucideIndentDecrease:ws,LucideIndentIncrease:bs,LucideIndianRupee:Hg,LucideInfinity:Vg,LucideInfo:Bg,LucideInspect:Ii,LucideInspectionPanel:$g,LucideInstagram:Ug,LucideItalic:Gg,LucideIterationCcw:Wg,LucideIterationCw:Zg,LucideJapaneseYen:Jg,LucideJoystick:Xg,LucideKanban:Yg,LucideKanbanSquare:ji,LucideKanbanSquareDashed:xi,LucideKey:e4,LucideKeyRound:Kg,LucideKeySquare:Qg,LucideKeyboard:n4,LucideKeyboardMusic:t4,LucideKeyboardOff:a4,LucideLamp:l4,LucideLampCeiling:r4,LucideLampDesk:s4,LucideLampFloor:i4,LucideLampWallDown:o4,LucideLampWallUp:c4,LucideLandPlot:d4,LucideLandmark:h4,LucideLanguages:Bc,LucideLaptop:u4,LucideLaptop2:Ms,LucideLaptopMinimal:Ms,LucideLasso:m4,LucideLassoSelect:p4,LucideLaugh:y4,LucideLayers:g4,LucideLayers2:f4,LucideLayers3:x4,LucideLayout:Fs,LucideLayoutDashboard:$c,LucideLayoutGrid:k4,LucideLayoutList:v4,LucideLayoutPanelLeft:w4,LucideLayoutPanelTop:b4,LucideLayoutTemplate:M4,LucideLeaf:j4,LucideLeafyGreen:C4,LucideLectern:S4,LucideLetterText:N4,LucideLibrary:I4,LucideLibraryBig:L4,LucideLibrarySquare:Ci,LucideLifeBuoy:A4,LucideLigature:P4,LucideLightbulb:R4,LucideLightbulbOff:_4,LucideLineChart:gr,LucideLink:Uc,LucideLink2:D4,LucideLink2Off:T4,LucideLinkedin:Gc,LucideList:Wc,LucideListCheck:q4,LucideListChecks:z4,LucideListCollapse:E4,LucideListEnd:F4,LucideListFilter:O4,LucideListMinus:H4,LucideListMusic:V4,LucideListOrdered:B4,LucideListPlus:$4,LucideListRestart:U4,LucideListStart:G4,LucideListTodo:W4,LucideListTree:Z4,LucideListVideo:J4,LucideListX:X4,LucideLoader:K4,LucideLoader2:at,LucideLoaderCircle:at,LucideLoaderPinwheel:Y4,LucideLocate:tk,LucideLocateFixed:Q4,LucideLocateOff:ek,LucideLock:ko,LucideLockKeyhole:ak,LucideLockKeyholeOpen:js,LucideLockOpen:Cs,LucideLogIn:nk,LucideLogOut:Zc,LucideLogs:rk,LucideLollipop:sk,LucideLuggage:ik,LucideMSquare:Si,LucideMagnet:ok,LucideMail:ca,LucideMailCheck:ck,LucideMailMinus:lk,LucideMailOpen:dk,LucideMailPlus:hk,LucideMailQuestion:uk,LucideMailSearch:pk,LucideMailWarning:mk,LucideMailX:yk,LucideMailbox:fk,LucideMails:xk,LucideMap:Ik,LucideMapPin:Qe,LucideMapPinCheck:kk,LucideMapPinCheckInside:gk,LucideMapPinHouse:vk,LucideMapPinMinus:bk,LucideMapPinMinusInside:wk,LucideMapPinOff:Mk,LucideMapPinPlus:Ck,LucideMapPinPlusInside:jk,LucideMapPinX:Nk,LucideMapPinXInside:Sk,LucideMapPinned:Lk,LucideMartini:Ak,LucideMaximize:_k,LucideMaximize2:Pk,LucideMedal:Rk,LucideMegaphone:Dk,LucideMegaphoneOff:Tk,LucideMeh:qk,LucideMemoryStick:zk,LucideMenu:ac,LucideMenuSquare:Ni,LucideMerge:Ek,LucideMessageCircle:Jk,LucideMessageCircleCode:Fk,LucideMessageCircleDashed:Ok,LucideMessageCircleHeart:Hk,LucideMessageCircleMore:Vk,LucideMessageCircleOff:Bk,LucideMessageCirclePlus:$k,LucideMessageCircleQuestion:Uk,LucideMessageCircleReply:Gk,LucideMessageCircleWarning:Wk,LucideMessageCircleX:Zk,LucideMessageSquare:Ln,LucideMessageSquareCode:Xk,LucideMessageSquareDashed:Yk,LucideMessageSquareDiff:Kk,LucideMessageSquareDot:Qk,LucideMessageSquareHeart:ev,LucideMessageSquareLock:tv,LucideMessageSquareMore:av,LucideMessageSquareOff:nv,LucideMessageSquarePlus:rv,LucideMessageSquareQuote:sv,LucideMessageSquareReply:iv,LucideMessageSquareShare:ov,LucideMessageSquareText:cv,LucideMessageSquareWarning:lv,LucideMessageSquareX:dv,LucideMessagesSquare:hv,LucideMic:pv,LucideMic2:Ss,LucideMicOff:uv,LucideMicVocal:Ss,LucideMicrochip:mv,LucideMicroscope:yv,LucideMicrowave:fv,LucideMilestone:xv,LucideMilk:kv,LucideMilkOff:gv,LucideMinimize:wv,LucideMinimize2:vv,LucideMinus:Jc,LucideMinusCircle:zr,LucideMinusSquare:Li,LucideMonitor:Tv,LucideMonitorCheck:bv,LucideMonitorCog:Mv,LucideMonitorDot:jv,LucideMonitorDown:Cv,LucideMonitorOff:Sv,LucideMonitorPause:Nv,LucideMonitorPlay:Lv,LucideMonitorSmartphone:Iv,LucideMonitorSpeaker:Av,LucideMonitorStop:Pv,LucideMonitorUp:_v,LucideMonitorX:Rv,LucideMoon:qv,LucideMoonStar:Dv,LucideMoreHorizontal:ss,LucideMoreVertical:rs,LucideMountain:Ev,LucideMountainSnow:zv,LucideMouse:$v,LucideMouseOff:Fv,LucideMousePointer:Bv,LucideMousePointer2:Ov,LucideMousePointerBan:Hv,LucideMousePointerClick:Vv,LucideMousePointerSquareDashed:gi,LucideMove:n5,LucideMove3D:Ns,LucideMove3d:Ns,LucideMoveDiagonal:Gv,LucideMoveDiagonal2:Uv,LucideMoveDown:Jv,LucideMoveDownLeft:Wv,LucideMoveDownRight:Zv,LucideMoveHorizontal:Xv,LucideMoveLeft:Yv,LucideMoveRight:Kv,LucideMoveUp:t5,LucideMoveUpLeft:Qv,LucideMoveUpRight:e5,LucideMoveVertical:a5,LucideMusic:o5,LucideMusic2:r5,LucideMusic3:s5,LucideMusic4:i5,LucideNavigation:h5,LucideNavigation2:l5,LucideNavigation2Off:c5,LucideNavigationOff:d5,LucideNetwork:u5,LucideNewspaper:Aa,LucideNfc:p5,LucideNotebook:x5,LucideNotebookPen:m5,LucideNotebookTabs:y5,LucideNotebookText:f5,LucideNotepadText:k5,LucideNotepadTextDashed:g5,LucideNut:w5,LucideNutOff:v5,LucideOctagon:M5,LucideOctagonAlert:Ls,LucideOctagonMinus:b5,LucideOctagonPause:Is,LucideOctagonX:As,LucideOmega:j5,LucideOption:C5,LucideOrbit:S5,LucideOrigami:N5,LucideOutdent:ws,LucidePackage:Xc,LucidePackage2:L5,LucidePackageCheck:I5,LucidePackageMinus:A5,LucidePackageOpen:P5,LucidePackagePlus:_5,LucidePackageSearch:R5,LucidePackageX:T5,LucidePaintBucket:D5,LucidePaintRoller:q5,LucidePaintbrush:z5,LucidePaintbrush2:Ps,LucidePaintbrushVertical:Ps,LucidePalette:E5,LucidePalmtree:Xi,LucidePanelBottom:H5,LucidePanelBottomClose:F5,LucidePanelBottomDashed:_s,LucidePanelBottomInactive:_s,LucidePanelBottomOpen:O5,LucidePanelLeft:qs,LucidePanelLeftClose:Rs,LucidePanelLeftDashed:Ts,LucidePanelLeftInactive:Ts,LucidePanelLeftOpen:Ds,LucidePanelRight:$5,LucidePanelRightClose:V5,LucidePanelRightDashed:zs,LucidePanelRightInactive:zs,LucidePanelRightOpen:B5,LucidePanelTop:W5,LucidePanelTopClose:U5,LucidePanelTopDashed:Es,LucidePanelTopInactive:Es,LucidePanelTopOpen:G5,LucidePanelsLeftBottom:Z5,LucidePanelsLeftRight:es,LucidePanelsRightBottom:J5,LucidePanelsTopBottom:Gs,LucidePanelsTopLeft:Fs,LucidePaperclip:X5,LucideParentheses:Y5,LucideParkingCircle:Fr,LucideParkingCircleOff:Er,LucideParkingMeter:K5,LucideParkingSquare:Pi,LucideParkingSquareOff:Ai,LucidePartyPopper:Q5,LucidePause:e3,LucidePauseCircle:Or,LucidePauseOctagon:Is,LucidePawPrint:t3,LucidePcCase:a3,LucidePen:Hs,LucidePenBox:Ft,LucidePenLine:Os,LucidePenOff:n3,LucidePenSquare:Ft,LucidePenTool:r3,LucidePencil:c3,LucidePencilLine:s3,LucidePencilOff:i3,LucidePencilRuler:o3,LucidePentagon:l3,LucidePercent:d3,LucidePercentCircle:Hr,LucidePercentDiamond:as,LucidePercentSquare:_i,LucidePersonStanding:h3,LucidePhilippinePeso:u3,LucidePhone:In,LucidePhoneCall:p3,LucidePhoneForwarded:m3,LucidePhoneIncoming:y3,LucidePhoneMissed:f3,LucidePhoneOff:x3,LucidePhoneOutgoing:g3,LucidePi:k3,LucidePiSquare:Ri,LucidePiano:v3,LucidePickaxe:w3,LucidePictureInPicture:M3,LucidePictureInPicture2:b3,LucidePieChart:wr,LucidePiggyBank:j3,LucidePilcrow:N3,LucidePilcrowLeft:C3,LucidePilcrowRight:S3,LucidePilcrowSquare:Ti,LucidePill:I3,LucidePillBottle:L3,LucidePin:P3,LucidePinOff:A3,LucidePipette:_3,LucidePizza:R3,LucidePlane:q3,LucidePlaneLanding:T3,LucidePlaneTakeoff:D3,LucidePlay:Yc,LucidePlayCircle:Vr,LucidePlaySquare:Di,LucidePlug:E3,LucidePlug2:z3,LucidePlugZap:Vs,LucidePlugZap2:Vs,LucidePlus:la,LucidePlusCircle:Br,LucidePlusSquare:qi,LucidePocket:O3,LucidePocketKnife:F3,LucidePodcast:H3,LucidePointer:B3,LucidePointerOff:V3,LucidePopcorn:$3,LucidePopsicle:U3,LucidePoundSterling:G3,LucidePower:Z3,LucidePowerCircle:$r,LucidePowerOff:W3,LucidePowerSquare:zi,LucidePresentation:J3,LucidePrinter:Y3,LucidePrinterCheck:X3,LucideProjector:K3,LucideProportions:Q3,LucidePuzzle:e6,LucidePyramid:t6,LucideQrCode:a6,LucideQuote:nc,LucideRabbit:n6,LucideRadar:r6,LucideRadiation:s6,LucideRadical:i6,LucideRadio:l6,LucideRadioReceiver:o6,LucideRadioTower:c6,LucideRadius:d6,LucideRailSymbol:h6,LucideRainbow:u6,LucideRat:p6,LucideRatio:m6,LucideReceipt:M6,LucideReceiptCent:y6,LucideReceiptEuro:f6,LucideReceiptIndianRupee:x6,LucideReceiptJapaneseYen:g6,LucideReceiptPoundSterling:k6,LucideReceiptRussianRuble:v6,LucideReceiptSwissFranc:w6,LucideReceiptText:b6,LucideRectangleEllipsis:Bs,LucideRectangleHorizontal:j6,LucideRectangleVertical:C6,LucideRecycle:S6,LucideRedo:I6,LucideRedo2:N6,LucideRedoDot:L6,LucideRefreshCcw:P6,LucideRefreshCcwDot:A6,LucideRefreshCw:R6,LucideRefreshCwOff:_6,LucideRefrigerator:T6,LucideRegex:D6,LucideRemoveFormatting:q6,LucideRepeat:F6,LucideRepeat1:z6,LucideRepeat2:E6,LucideReplace:H6,LucideReplaceAll:O6,LucideReply:B6,LucideReplyAll:V6,LucideRewind:$6,LucideRibbon:U6,LucideRocket:G6,LucideRockingChair:W6,LucideRollerCoaster:Z6,LucideRotate3D:$s,LucideRotate3d:$s,LucideRotateCcw:X6,LucideRotateCcwSquare:J6,LucideRotateCw:K6,LucideRotateCwSquare:Y6,LucideRoute:e8,LucideRouteOff:Q6,LucideRouter:t8,LucideRows:Us,LucideRows2:Us,LucideRows3:Gs,LucideRows4:a8,LucideRss:n8,LucideRuler:r8,LucideRussianRuble:s8,LucideSailboat:i8,LucideSalad:o8,LucideSandwich:c8,LucideSatellite:d8,LucideSatelliteDish:l8,LucideSave:p8,LucideSaveAll:h8,LucideSaveOff:u8,LucideScale:m8,LucideScale3D:Ws,LucideScale3d:Ws,LucideScaling:y8,LucideScan:M8,LucideScanBarcode:f8,LucideScanEye:x8,LucideScanFace:g8,LucideScanLine:k8,LucideScanQrCode:v8,LucideScanSearch:w8,LucideScanText:b8,LucideScatterChart:br,LucideSchool:j8,LucideSchool2:Qi,LucideScissors:S8,LucideScissorsLineDashed:C8,LucideScissorsSquare:Ei,LucideScissorsSquareDashedBottom:li,LucideScreenShare:L8,LucideScreenShareOff:N8,LucideScroll:A8,LucideScrollText:I8,LucideSearch:Gt,LucideSearchCheck:P8,LucideSearchCode:_8,LucideSearchSlash:R8,LucideSearchX:T8,LucideSection:D8,LucideSend:Kc,LucideSendHorizonal:Zs,LucideSendHorizontal:Zs,LucideSendToBack:q8,LucideSeparatorHorizontal:z8,LucideSeparatorVertical:E8,LucideServer:V8,LucideServerCog:F8,LucideServerCrash:O8,LucideServerOff:H8,LucideSettings:vo,LucideSettings2:B8,LucideShapes:$8,LucideShare:U8,LucideShare2:wo,LucideSheet:G8,LucideShell:W8,LucideShield:An,LucideShieldAlert:Z8,LucideShieldBan:J8,LucideShieldCheck:rc,LucideShieldClose:Js,LucideShieldEllipsis:X8,LucideShieldHalf:Y8,LucideShieldMinus:K8,LucideShieldOff:Q8,LucideShieldPlus:ew,LucideShieldQuestion:tw,LucideShieldX:Js,LucideShip:nw,LucideShipWheel:aw,LucideShirt:rw,LucideShoppingBag:sw,LucideShoppingBasket:iw,LucideShoppingCart:sc,LucideShovel:ow,LucideShowerHead:cw,LucideShrink:lw,LucideShrub:dw,LucideShuffle:hw,LucideSidebar:qs,LucideSidebarClose:Rs,LucideSidebarOpen:Ds,LucideSigma:uw,LucideSigmaSquare:Fi,LucideSignal:Qc,LucideSignalHigh:pw,LucideSignalLow:mw,LucideSignalMedium:yw,LucideSignalZero:fw,LucideSignature:xw,LucideSignpost:kw,LucideSignpostBig:gw,LucideSiren:vw,LucideSkipBack:ww,LucideSkipForward:bw,LucideSkull:Mw,LucideSlack:jw,LucideSlash:Cw,LucideSlashSquare:Oi,LucideSlice:Sw,LucideSliders:Xs,LucideSlidersHorizontal:Pn,LucideSlidersVertical:Xs,LucideSmartphone:Iw,LucideSmartphoneCharging:Nw,LucideSmartphoneNfc:Lw,LucideSmile:Pw,LucideSmilePlus:Aw,LucideSnail:_w,LucideSnowflake:Rw,LucideSofa:Tw,LucideSortAsc:ar,LucideSortDesc:Qn,LucideSoup:Dw,LucideSpace:qw,LucideSpade:zw,LucideSparkle:Ew,LucideSparkles:Ca,LucideSpeaker:Fw,LucideSpeech:Ow,LucideSpellCheck:Vw,LucideSpellCheck2:Hw,LucideSpline:Bw,LucideSplit:$w,LucideSplitSquareHorizontal:Hi,LucideSplitSquareVertical:Vi,LucideSprayCan:Uw,LucideSprout:Gw,LucideSquare:Kw,LucideSquareActivity:Ys,LucideSquareArrowDown:ei,LucideSquareArrowDownLeft:Ks,LucideSquareArrowDownRight:Qs,LucideSquareArrowLeft:Ga,LucideSquareArrowOutDownLeft:ti,LucideSquareArrowOutDownRight:ai,LucideSquareArrowOutUpLeft:ni,LucideSquareArrowOutUpRight:ri,LucideSquareArrowRight:Wa,LucideSquareArrowUp:oi,LucideSquareArrowUpLeft:si,LucideSquareArrowUpRight:ii,LucideSquareAsterisk:ci,LucideSquareBottomDashedScissors:li,LucideSquareChartGantt:ba,LucideSquareCheck:hi,LucideSquareCheckBig:di,LucideSquareChevronDown:ui,LucideSquareChevronLeft:pi,LucideSquareChevronRight:mi,LucideSquareChevronUp:yi,LucideSquareCode:fi,LucideSquareDashed:ki,LucideSquareDashedBottom:Zw,LucideSquareDashedBottomCode:Ww,LucideSquareDashedKanban:xi,LucideSquareDashedMousePointer:gi,LucideSquareDivide:vi,LucideSquareDot:wi,LucideSquareEqual:bi,LucideSquareFunction:Mi,LucideSquareGanttChart:ba,LucideSquareKanban:ji,LucideSquareLibrary:Ci,LucideSquareM:Si,LucideSquareMenu:Ni,LucideSquareMinus:Li,LucideSquareMousePointer:Ii,LucideSquareParking:Pi,LucideSquareParkingOff:Ai,LucideSquarePen:Ft,LucideSquarePercent:_i,LucideSquarePi:Ri,LucideSquarePilcrow:Ti,LucideSquarePlay:Di,LucideSquarePlus:qi,LucideSquarePower:zi,LucideSquareRadical:Jw,LucideSquareScissors:Ei,LucideSquareSigma:Fi,LucideSquareSlash:Oi,LucideSquareSplitHorizontal:Hi,LucideSquareSplitVertical:Vi,LucideSquareSquare:Xw,LucideSquareStack:Yw,LucideSquareTerminal:Bi,LucideSquareUser:Ui,LucideSquareUserRound:$i,LucideSquareX:Gi,LucideSquircle:Qw,LucideSquirrel:eb,LucideStamp:tb,LucideStar:jt,LucideStarHalf:ab,LucideStarOff:nb,LucideStars:Ca,LucideStepBack:rb,LucideStepForward:sb,LucideStethoscope:ib,LucideSticker:ob,LucideStickyNote:cb,LucideStopCircle:Gr,LucideStore:lb,LucideStretchHorizontal:db,LucideStretchVertical:hb,LucideStrikethrough:ub,LucideSubscript:pb,LucideSubtitles:dr,LucideSun:gb,LucideSunDim:mb,LucideSunMedium:yb,LucideSunMoon:fb,LucideSunSnow:xb,LucideSunrise:kb,LucideSunset:vb,LucideSuperscript:wb,LucideSwatchBook:bb,LucideSwissFranc:Mb,LucideSwitchCamera:jb,LucideSword:Cb,LucideSwords:Sb,LucideSyringe:Nb,LucideTable:Db,LucideTable2:Lb,LucideTableCellsMerge:Ib,LucideTableCellsSplit:Ab,LucideTableColumnsSplit:Pb,LucideTableOfContents:_b,LucideTableProperties:Rb,LucideTableRowsSplit:Tb,LucideTablet:zb,LucideTabletSmartphone:qb,LucideTablets:Eb,LucideTag:el,LucideTags:Fb,LucideTally1:Ob,LucideTally2:Hb,LucideTally3:Vb,LucideTally4:Bb,LucideTally5:$b,LucideTangent:Ub,LucideTarget:Gb,LucideTelescope:Wb,LucideTent:Jb,LucideTentTree:Zb,LucideTerminal:Xb,LucideTerminalSquare:Bi,LucideTestTube:Yb,LucideTestTube2:Wi,LucideTestTubeDiagonal:Wi,LucideTestTubes:Kb,LucideText:n7,LucideTextCursor:e7,LucideTextCursorInput:Qb,LucideTextQuote:t7,LucideTextSearch:a7,LucideTextSelect:Zi,LucideTextSelection:Zi,LucideTheater:r7,LucideThermometer:o7,LucideThermometerSnowflake:s7,LucideThermometerSun:i7,LucideThumbsDown:c7,LucideThumbsUp:l7,LucideTicket:f7,LucideTicketCheck:d7,LucideTicketMinus:h7,LucideTicketPercent:u7,LucideTicketPlus:p7,LucideTicketSlash:m7,LucideTicketX:y7,LucideTickets:g7,LucideTicketsPlane:x7,LucideTimer:w7,LucideTimerOff:k7,LucideTimerReset:v7,LucideToggleLeft:b7,LucideToggleRight:M7,LucideTornado:j7,LucideTorus:C7,LucideTouchpad:N7,LucideTouchpadOff:S7,LucideTowerControl:L7,LucideToyBrick:I7,LucideTractor:A7,LucideTrafficCone:P7,LucideTrain:Ji,LucideTrainFront:R7,LucideTrainFrontTunnel:_7,LucideTrainTrack:T7,LucideTramFront:Ji,LucideTrash:D7,LucideTrash2:bo,LucideTreeDeciduous:q7,LucideTreePalm:Xi,LucideTreePine:z7,LucideTrees:E7,LucideTrello:F7,LucideTrendingDown:O7,LucideTrendingUp:Pa,LucideTrendingUpDown:H7,LucideTriangle:B7,LucideTriangleAlert:Yi,LucideTriangleRight:V7,LucideTrophy:$7,LucideTruck:U7,LucideTurtle:G7,LucideTv:Z7,LucideTv2:Ki,LucideTvMinimal:Ki,LucideTvMinimalPlay:W7,LucideTwitch:J7,LucideTwitter:X7,LucideType:K7,LucideTypeOutline:Y7,LucideUmbrella:eM,LucideUmbrellaOff:Q7,LucideUnderline:tM,LucideUndo:rM,LucideUndo2:aM,LucideUndoDot:nM,LucideUnfoldHorizontal:sM,LucideUnfoldVertical:iM,LucideUngroup:oM,LucideUniversity:Qi,LucideUnlink:lM,LucideUnlink2:cM,LucideUnlock:Cs,LucideUnlockKeyhole:js,LucideUnplug:dM,LucideUpload:tl,LucideUploadCloud:xn,LucideUsb:hM,LucideUser:ic,LucideUser2:so,LucideUserCheck:Mo,LucideUserCheck2:eo,LucideUserCircle:Zr,LucideUserCircle2:Wr,LucideUserCog:uM,LucideUserCog2:to,LucideUserMinus:pM,LucideUserMinus2:ao,LucideUserPen:mM,LucideUserPlus:yM,LucideUserPlus2:no,LucideUserRound:so,LucideUserRoundCheck:eo,LucideUserRoundCog:to,LucideUserRoundMinus:ao,LucideUserRoundPen:fM,LucideUserRoundPlus:no,LucideUserRoundSearch:xM,LucideUserRoundX:ro,LucideUserSearch:gM,LucideUserSquare:Ui,LucideUserSquare2:$i,LucideUserX:kM,LucideUserX2:ro,LucideUsers:mt,LucideUsers2:io,LucideUsersRound:io,LucideUtensils:co,LucideUtensilsCrossed:oo,LucideUtilityPole:vM,LucideVariable:wM,LucideVault:bM,LucideVegan:MM,LucideVenetianMask:jM,LucideVerified:sr,LucideVibrate:SM,LucideVibrateOff:CM,LucideVideo:LM,LucideVideoOff:NM,LucideVideotape:IM,LucideView:AM,LucideVoicemail:PM,LucideVolleyball:_M,LucideVolume:zM,LucideVolume1:RM,LucideVolume2:TM,LucideVolumeOff:DM,LucideVolumeX:qM,LucideVote:EM,LucideWallet:OM,LucideWallet2:lo,LucideWalletCards:FM,LucideWalletMinimal:lo,LucideWallpaper:HM,LucideWand:VM,LucideWand2:ho,LucideWandSparkles:ho,LucideWarehouse:BM,LucideWashingMachine:$M,LucideWatch:UM,LucideWaves:GM,LucideWaypoints:WM,LucideWebcam:ZM,LucideWebhook:XM,LucideWebhookOff:JM,LucideWeight:YM,LucideWheat:QM,LucideWheatOff:KM,LucideWholeWord:ej,LucideWifi:sj,LucideWifiHigh:tj,LucideWifiLow:aj,LucideWifiOff:nj,LucideWifiZero:rj,LucideWind:ij,LucideWine:cj,LucideWineOff:oj,LucideWorkflow:lj,LucideWorm:dj,LucideWrapText:hj,LucideWrench:uj,LucideX:Ct,LucideXCircle:ja,LucideXOctagon:As,LucideXSquare:Gi,LucideYoutube:pj,LucideZap:al,LucideZapOff:mj,LucideZoomIn:yj,LucideZoomOut:fj,Luggage:ik,LuggageIcon:ik,MSquare:Si,MSquareIcon:Si,Magnet:ok,MagnetIcon:ok,Mail:ca,MailCheck:ck,MailCheckIcon:ck,MailIcon:ca,MailMinus:lk,MailMinusIcon:lk,MailOpen:dk,MailOpenIcon:dk,MailPlus:hk,MailPlusIcon:hk,MailQuestion:uk,MailQuestionIcon:uk,MailSearch:pk,MailSearchIcon:pk,MailWarning:mk,MailWarningIcon:mk,MailX:yk,MailXIcon:yk,Mailbox:fk,MailboxIcon:fk,Mails:xk,MailsIcon:xk,Map:Ik,MapIcon:Ik,MapPin:Qe,MapPinCheck:kk,MapPinCheckIcon:kk,MapPinCheckInside:gk,MapPinCheckInsideIcon:gk,MapPinHouse:vk,MapPinHouseIcon:vk,MapPinIcon:Qe,MapPinMinus:bk,MapPinMinusIcon:bk,MapPinMinusInside:wk,MapPinMinusInsideIcon:wk,MapPinOff:Mk,MapPinOffIcon:Mk,MapPinPlus:Ck,MapPinPlusIcon:Ck,MapPinPlusInside:jk,MapPinPlusInsideIcon:jk,MapPinX:Nk,MapPinXIcon:Nk,MapPinXInside:Sk,MapPinXInsideIcon:Sk,MapPinned:Lk,MapPinnedIcon:Lk,Martini:Ak,MartiniIcon:Ak,Maximize:_k,Maximize2:Pk,Maximize2Icon:Pk,MaximizeIcon:_k,Medal:Rk,MedalIcon:Rk,Megaphone:Dk,MegaphoneIcon:Dk,MegaphoneOff:Tk,MegaphoneOffIcon:Tk,Meh:qk,MehIcon:qk,MemoryStick:zk,MemoryStickIcon:zk,Menu:ac,MenuIcon:ac,MenuSquare:Ni,MenuSquareIcon:Ni,Merge:Ek,MergeIcon:Ek,MessageCircle:Jk,MessageCircleCode:Fk,MessageCircleCodeIcon:Fk,MessageCircleDashed:Ok,MessageCircleDashedIcon:Ok,MessageCircleHeart:Hk,MessageCircleHeartIcon:Hk,MessageCircleIcon:Jk,MessageCircleMore:Vk,MessageCircleMoreIcon:Vk,MessageCircleOff:Bk,MessageCircleOffIcon:Bk,MessageCirclePlus:$k,MessageCirclePlusIcon:$k,MessageCircleQuestion:Uk,MessageCircleQuestionIcon:Uk,MessageCircleReply:Gk,MessageCircleReplyIcon:Gk,MessageCircleWarning:Wk,MessageCircleWarningIcon:Wk,MessageCircleX:Zk,MessageCircleXIcon:Zk,MessageSquare:Ln,MessageSquareCode:Xk,MessageSquareCodeIcon:Xk,MessageSquareDashed:Yk,MessageSquareDashedIcon:Yk,MessageSquareDiff:Kk,MessageSquareDiffIcon:Kk,MessageSquareDot:Qk,MessageSquareDotIcon:Qk,MessageSquareHeart:ev,MessageSquareHeartIcon:ev,MessageSquareIcon:Ln,MessageSquareLock:tv,MessageSquareLockIcon:tv,MessageSquareMore:av,MessageSquareMoreIcon:av,MessageSquareOff:nv,MessageSquareOffIcon:nv,MessageSquarePlus:rv,MessageSquarePlusIcon:rv,MessageSquareQuote:sv,MessageSquareQuoteIcon:sv,MessageSquareReply:iv,MessageSquareReplyIcon:iv,MessageSquareShare:ov,MessageSquareShareIcon:ov,MessageSquareText:cv,MessageSquareTextIcon:cv,MessageSquareWarning:lv,MessageSquareWarningIcon:lv,MessageSquareX:dv,MessageSquareXIcon:dv,MessagesSquare:hv,MessagesSquareIcon:hv,Mic:pv,Mic2:Ss,Mic2Icon:Ss,MicIcon:pv,MicOff:uv,MicOffIcon:uv,MicVocal:Ss,MicVocalIcon:Ss,Microchip:mv,MicrochipIcon:mv,Microscope:yv,MicroscopeIcon:yv,Microwave:fv,MicrowaveIcon:fv,Milestone:xv,MilestoneIcon:xv,Milk:kv,MilkIcon:kv,MilkOff:gv,MilkOffIcon:gv,Minimize:wv,Minimize2:vv,Minimize2Icon:vv,MinimizeIcon:wv,Minus:Jc,MinusCircle:zr,MinusCircleIcon:zr,MinusIcon:Jc,MinusSquare:Li,MinusSquareIcon:Li,Monitor:Tv,MonitorCheck:bv,MonitorCheckIcon:bv,MonitorCog:Mv,MonitorCogIcon:Mv,MonitorDot:jv,MonitorDotIcon:jv,MonitorDown:Cv,MonitorDownIcon:Cv,MonitorIcon:Tv,MonitorOff:Sv,MonitorOffIcon:Sv,MonitorPause:Nv,MonitorPauseIcon:Nv,MonitorPlay:Lv,MonitorPlayIcon:Lv,MonitorSmartphone:Iv,MonitorSmartphoneIcon:Iv,MonitorSpeaker:Av,MonitorSpeakerIcon:Av,MonitorStop:Pv,MonitorStopIcon:Pv,MonitorUp:_v,MonitorUpIcon:_v,MonitorX:Rv,MonitorXIcon:Rv,Moon:qv,MoonIcon:qv,MoonStar:Dv,MoonStarIcon:Dv,MoreHorizontal:ss,MoreHorizontalIcon:ss,MoreVertical:rs,MoreVerticalIcon:rs,Mountain:Ev,MountainIcon:Ev,MountainSnow:zv,MountainSnowIcon:zv,Mouse:$v,MouseIcon:$v,MouseOff:Fv,MouseOffIcon:Fv,MousePointer:Bv,MousePointer2:Ov,MousePointer2Icon:Ov,MousePointerBan:Hv,MousePointerBanIcon:Hv,MousePointerClick:Vv,MousePointerClickIcon:Vv,MousePointerIcon:Bv,MousePointerSquareDashed:gi,MousePointerSquareDashedIcon:gi,Move:n5,Move3D:Ns,Move3DIcon:Ns,Move3d:Ns,Move3dIcon:Ns,MoveDiagonal:Gv,MoveDiagonal2:Uv,MoveDiagonal2Icon:Uv,MoveDiagonalIcon:Gv,MoveDown:Jv,MoveDownIcon:Jv,MoveDownLeft:Wv,MoveDownLeftIcon:Wv,MoveDownRight:Zv,MoveDownRightIcon:Zv,MoveHorizontal:Xv,MoveHorizontalIcon:Xv,MoveIcon:n5,MoveLeft:Yv,MoveLeftIcon:Yv,MoveRight:Kv,MoveRightIcon:Kv,MoveUp:t5,MoveUpIcon:t5,MoveUpLeft:Qv,MoveUpLeftIcon:Qv,MoveUpRight:e5,MoveUpRightIcon:e5,MoveVertical:a5,MoveVerticalIcon:a5,Music:o5,Music2:r5,Music2Icon:r5,Music3:s5,Music3Icon:s5,Music4:i5,Music4Icon:i5,MusicIcon:o5,Navigation:h5,Navigation2:l5,Navigation2Icon:l5,Navigation2Off:c5,Navigation2OffIcon:c5,NavigationIcon:h5,NavigationOff:d5,NavigationOffIcon:d5,Network:u5,NetworkIcon:u5,Newspaper:Aa,NewspaperIcon:Aa,Nfc:p5,NfcIcon:p5,Notebook:x5,NotebookIcon:x5,NotebookPen:m5,NotebookPenIcon:m5,NotebookTabs:y5,NotebookTabsIcon:y5,NotebookText:f5,NotebookTextIcon:f5,NotepadText:k5,NotepadTextDashed:g5,NotepadTextDashedIcon:g5,NotepadTextIcon:k5,Nut:w5,NutIcon:w5,NutOff:v5,NutOffIcon:v5,Octagon:M5,OctagonAlert:Ls,OctagonAlertIcon:Ls,OctagonIcon:M5,OctagonMinus:b5,OctagonMinusIcon:b5,OctagonPause:Is,OctagonPauseIcon:Is,OctagonX:As,OctagonXIcon:As,Omega:j5,OmegaIcon:j5,Option:C5,OptionIcon:C5,Orbit:S5,OrbitIcon:S5,Origami:N5,OrigamiIcon:N5,Outdent:ws,OutdentIcon:ws,Package:Xc,Package2:L5,Package2Icon:L5,PackageCheck:I5,PackageCheckIcon:I5,PackageIcon:Xc,PackageMinus:A5,PackageMinusIcon:A5,PackageOpen:P5,PackageOpenIcon:P5,PackagePlus:_5,PackagePlusIcon:_5,PackageSearch:R5,PackageSearchIcon:R5,PackageX:T5,PackageXIcon:T5,PaintBucket:D5,PaintBucketIcon:D5,PaintRoller:q5,PaintRollerIcon:q5,Paintbrush:z5,Paintbrush2:Ps,Paintbrush2Icon:Ps,PaintbrushIcon:z5,PaintbrushVertical:Ps,PaintbrushVerticalIcon:Ps,Palette:E5,PaletteIcon:E5,Palmtree:Xi,PalmtreeIcon:Xi,PanelBottom:H5,PanelBottomClose:F5,PanelBottomCloseIcon:F5,PanelBottomDashed:_s,PanelBottomDashedIcon:_s,PanelBottomIcon:H5,PanelBottomInactive:_s,PanelBottomInactiveIcon:_s,PanelBottomOpen:O5,PanelBottomOpenIcon:O5,PanelLeft:qs,PanelLeftClose:Rs,PanelLeftCloseIcon:Rs,PanelLeftDashed:Ts,PanelLeftDashedIcon:Ts,PanelLeftIcon:qs,PanelLeftInactive:Ts,PanelLeftInactiveIcon:Ts,PanelLeftOpen:Ds,PanelLeftOpenIcon:Ds,PanelRight:$5,PanelRightClose:V5,PanelRightCloseIcon:V5,PanelRightDashed:zs,PanelRightDashedIcon:zs,PanelRightIcon:$5,PanelRightInactive:zs,PanelRightInactiveIcon:zs,PanelRightOpen:B5,PanelRightOpenIcon:B5,PanelTop:W5,PanelTopClose:U5,PanelTopCloseIcon:U5,PanelTopDashed:Es,PanelTopDashedIcon:Es,PanelTopIcon:W5,PanelTopInactive:Es,PanelTopInactiveIcon:Es,PanelTopOpen:G5,PanelTopOpenIcon:G5,PanelsLeftBottom:Z5,PanelsLeftBottomIcon:Z5,PanelsLeftRight:es,PanelsLeftRightIcon:es,PanelsRightBottom:J5,PanelsRightBottomIcon:J5,PanelsTopBottom:Gs,PanelsTopBottomIcon:Gs,PanelsTopLeft:Fs,PanelsTopLeftIcon:Fs,Paperclip:X5,PaperclipIcon:X5,Parentheses:Y5,ParenthesesIcon:Y5,ParkingCircle:Fr,ParkingCircleIcon:Fr,ParkingCircleOff:Er,ParkingCircleOffIcon:Er,ParkingMeter:K5,ParkingMeterIcon:K5,ParkingSquare:Pi,ParkingSquareIcon:Pi,ParkingSquareOff:Ai,ParkingSquareOffIcon:Ai,PartyPopper:Q5,PartyPopperIcon:Q5,Pause:e3,PauseCircle:Or,PauseCircleIcon:Or,PauseIcon:e3,PauseOctagon:Is,PauseOctagonIcon:Is,PawPrint:t3,PawPrintIcon:t3,PcCase:a3,PcCaseIcon:a3,Pen:Hs,PenBox:Ft,PenBoxIcon:Ft,PenIcon:Hs,PenLine:Os,PenLineIcon:Os,PenOff:n3,PenOffIcon:n3,PenSquare:Ft,PenSquareIcon:Ft,PenTool:r3,PenToolIcon:r3,Pencil:c3,PencilIcon:c3,PencilLine:s3,PencilLineIcon:s3,PencilOff:i3,PencilOffIcon:i3,PencilRuler:o3,PencilRulerIcon:o3,Pentagon:l3,PentagonIcon:l3,Percent:d3,PercentCircle:Hr,PercentCircleIcon:Hr,PercentDiamond:as,PercentDiamondIcon:as,PercentIcon:d3,PercentSquare:_i,PercentSquareIcon:_i,PersonStanding:h3,PersonStandingIcon:h3,PhilippinePeso:u3,PhilippinePesoIcon:u3,Phone:In,PhoneCall:p3,PhoneCallIcon:p3,PhoneForwarded:m3,PhoneForwardedIcon:m3,PhoneIcon:In,PhoneIncoming:y3,PhoneIncomingIcon:y3,PhoneMissed:f3,PhoneMissedIcon:f3,PhoneOff:x3,PhoneOffIcon:x3,PhoneOutgoing:g3,PhoneOutgoingIcon:g3,Pi:k3,PiIcon:k3,PiSquare:Ri,PiSquareIcon:Ri,Piano:v3,PianoIcon:v3,Pickaxe:w3,PickaxeIcon:w3,PictureInPicture:M3,PictureInPicture2:b3,PictureInPicture2Icon:b3,PictureInPictureIcon:M3,PieChart:wr,PieChartIcon:wr,PiggyBank:j3,PiggyBankIcon:j3,Pilcrow:N3,PilcrowIcon:N3,PilcrowLeft:C3,PilcrowLeftIcon:C3,PilcrowRight:S3,PilcrowRightIcon:S3,PilcrowSquare:Ti,PilcrowSquareIcon:Ti,Pill:I3,PillBottle:L3,PillBottleIcon:L3,PillIcon:I3,Pin:P3,PinIcon:P3,PinOff:A3,PinOffIcon:A3,Pipette:_3,PipetteIcon:_3,Pizza:R3,PizzaIcon:R3,Plane:q3,PlaneIcon:q3,PlaneLanding:T3,PlaneLandingIcon:T3,PlaneTakeoff:D3,PlaneTakeoffIcon:D3,Play:Yc,PlayCircle:Vr,PlayCircleIcon:Vr,PlayIcon:Yc,PlaySquare:Di,PlaySquareIcon:Di,Plug:E3,Plug2:z3,Plug2Icon:z3,PlugIcon:E3,PlugZap:Vs,PlugZap2:Vs,PlugZap2Icon:Vs,PlugZapIcon:Vs,Plus:la,PlusCircle:Br,PlusCircleIcon:Br,PlusIcon:la,PlusSquare:qi,PlusSquareIcon:qi,Pocket:O3,PocketIcon:O3,PocketKnife:F3,PocketKnifeIcon:F3,Podcast:H3,PodcastIcon:H3,Pointer:B3,PointerIcon:B3,PointerOff:V3,PointerOffIcon:V3,Popcorn:$3,PopcornIcon:$3,Popsicle:U3,PopsicleIcon:U3,PoundSterling:G3,PoundSterlingIcon:G3,Power:Z3,PowerCircle:$r,PowerCircleIcon:$r,PowerIcon:Z3,PowerOff:W3,PowerOffIcon:W3,PowerSquare:zi,PowerSquareIcon:zi,Presentation:J3,PresentationIcon:J3,Printer:Y3,PrinterCheck:X3,PrinterCheckIcon:X3,PrinterIcon:Y3,Projector:K3,ProjectorIcon:K3,Proportions:Q3,ProportionsIcon:Q3,Puzzle:e6,PuzzleIcon:e6,Pyramid:t6,PyramidIcon:t6,QrCode:a6,QrCodeIcon:a6,Quote:nc,QuoteIcon:nc,Rabbit:n6,RabbitIcon:n6,Radar:r6,RadarIcon:r6,Radiation:s6,RadiationIcon:s6,Radical:i6,RadicalIcon:i6,Radio:l6,RadioIcon:l6,RadioReceiver:o6,RadioReceiverIcon:o6,RadioTower:c6,RadioTowerIcon:c6,Radius:d6,RadiusIcon:d6,RailSymbol:h6,RailSymbolIcon:h6,Rainbow:u6,RainbowIcon:u6,Rat:p6,RatIcon:p6,Ratio:m6,RatioIcon:m6,Receipt:M6,ReceiptCent:y6,ReceiptCentIcon:y6,ReceiptEuro:f6,ReceiptEuroIcon:f6,ReceiptIcon:M6,ReceiptIndianRupee:x6,ReceiptIndianRupeeIcon:x6,ReceiptJapaneseYen:g6,ReceiptJapaneseYenIcon:g6,ReceiptPoundSterling:k6,ReceiptPoundSterlingIcon:k6,ReceiptRussianRuble:v6,ReceiptRussianRubleIcon:v6,ReceiptSwissFranc:w6,ReceiptSwissFrancIcon:w6,ReceiptText:b6,ReceiptTextIcon:b6,RectangleEllipsis:Bs,RectangleEllipsisIcon:Bs,RectangleHorizontal:j6,RectangleHorizontalIcon:j6,RectangleVertical:C6,RectangleVerticalIcon:C6,Recycle:S6,RecycleIcon:S6,Redo:I6,Redo2:N6,Redo2Icon:N6,RedoDot:L6,RedoDotIcon:L6,RedoIcon:I6,RefreshCcw:P6,RefreshCcwDot:A6,RefreshCcwDotIcon:A6,RefreshCcwIcon:P6,RefreshCw:R6,RefreshCwIcon:R6,RefreshCwOff:_6,RefreshCwOffIcon:_6,Refrigerator:T6,RefrigeratorIcon:T6,Regex:D6,RegexIcon:D6,RemoveFormatting:q6,RemoveFormattingIcon:q6,Repeat:F6,Repeat1:z6,Repeat1Icon:z6,Repeat2:E6,Repeat2Icon:E6,RepeatIcon:F6,Replace:H6,ReplaceAll:O6,ReplaceAllIcon:O6,ReplaceIcon:H6,Reply:B6,ReplyAll:V6,ReplyAllIcon:V6,ReplyIcon:B6,Rewind:$6,RewindIcon:$6,Ribbon:U6,RibbonIcon:U6,Rocket:G6,RocketIcon:G6,RockingChair:W6,RockingChairIcon:W6,RollerCoaster:Z6,RollerCoasterIcon:Z6,Rotate3D:$s,Rotate3DIcon:$s,Rotate3d:$s,Rotate3dIcon:$s,RotateCcw:X6,RotateCcwIcon:X6,RotateCcwSquare:J6,RotateCcwSquareIcon:J6,RotateCw:K6,RotateCwIcon:K6,RotateCwSquare:Y6,RotateCwSquareIcon:Y6,Route:e8,RouteIcon:e8,RouteOff:Q6,RouteOffIcon:Q6,Router:t8,RouterIcon:t8,Rows:Us,Rows2:Us,Rows2Icon:Us,Rows3:Gs,Rows3Icon:Gs,Rows4:a8,Rows4Icon:a8,RowsIcon:Us,Rss:n8,RssIcon:n8,Ruler:r8,RulerIcon:r8,RussianRuble:s8,RussianRubleIcon:s8,Sailboat:i8,SailboatIcon:i8,Salad:o8,SaladIcon:o8,Sandwich:c8,SandwichIcon:c8,Satellite:d8,SatelliteDish:l8,SatelliteDishIcon:l8,SatelliteIcon:d8,Save:p8,SaveAll:h8,SaveAllIcon:h8,SaveIcon:p8,SaveOff:u8,SaveOffIcon:u8,Scale:m8,Scale3D:Ws,Scale3DIcon:Ws,Scale3d:Ws,Scale3dIcon:Ws,ScaleIcon:m8,Scaling:y8,ScalingIcon:y8,Scan:M8,ScanBarcode:f8,ScanBarcodeIcon:f8,ScanEye:x8,ScanEyeIcon:x8,ScanFace:g8,ScanFaceIcon:g8,ScanIcon:M8,ScanLine:k8,ScanLineIcon:k8,ScanQrCode:v8,ScanQrCodeIcon:v8,ScanSearch:w8,ScanSearchIcon:w8,ScanText:b8,ScanTextIcon:b8,ScatterChart:br,ScatterChartIcon:br,School:j8,School2:Qi,School2Icon:Qi,SchoolIcon:j8,Scissors:S8,ScissorsIcon:S8,ScissorsLineDashed:C8,ScissorsLineDashedIcon:C8,ScissorsSquare:Ei,ScissorsSquareDashedBottom:li,ScissorsSquareDashedBottomIcon:li,ScissorsSquareIcon:Ei,ScreenShare:L8,ScreenShareIcon:L8,ScreenShareOff:N8,ScreenShareOffIcon:N8,Scroll:A8,ScrollIcon:A8,ScrollText:I8,ScrollTextIcon:I8,Search:Gt,SearchCheck:P8,SearchCheckIcon:P8,SearchCode:_8,SearchCodeIcon:_8,SearchIcon:Gt,SearchSlash:R8,SearchSlashIcon:R8,SearchX:T8,SearchXIcon:T8,Section:D8,SectionIcon:D8,Send:Kc,SendHorizonal:Zs,SendHorizonalIcon:Zs,SendHorizontal:Zs,SendHorizontalIcon:Zs,SendIcon:Kc,SendToBack:q8,SendToBackIcon:q8,SeparatorHorizontal:z8,SeparatorHorizontalIcon:z8,SeparatorVertical:E8,SeparatorVerticalIcon:E8,Server:V8,ServerCog:F8,ServerCogIcon:F8,ServerCrash:O8,ServerCrashIcon:O8,ServerIcon:V8,ServerOff:H8,ServerOffIcon:H8,Settings:vo,Settings2:B8,Settings2Icon:B8,SettingsIcon:vo,Shapes:$8,ShapesIcon:$8,Share:U8,Share2:wo,Share2Icon:wo,ShareIcon:U8,Sheet:G8,SheetIcon:G8,Shell:W8,ShellIcon:W8,Shield:An,ShieldAlert:Z8,ShieldAlertIcon:Z8,ShieldBan:J8,ShieldBanIcon:J8,ShieldCheck:rc,ShieldCheckIcon:rc,ShieldClose:Js,ShieldCloseIcon:Js,ShieldEllipsis:X8,ShieldEllipsisIcon:X8,ShieldHalf:Y8,ShieldHalfIcon:Y8,ShieldIcon:An,ShieldMinus:K8,ShieldMinusIcon:K8,ShieldOff:Q8,ShieldOffIcon:Q8,ShieldPlus:ew,ShieldPlusIcon:ew,ShieldQuestion:tw,ShieldQuestionIcon:tw,ShieldX:Js,ShieldXIcon:Js,Ship:nw,ShipIcon:nw,ShipWheel:aw,ShipWheelIcon:aw,Shirt:rw,ShirtIcon:rw,ShoppingBag:sw,ShoppingBagIcon:sw,ShoppingBasket:iw,ShoppingBasketIcon:iw,ShoppingCart:sc,ShoppingCartIcon:sc,Shovel:ow,ShovelIcon:ow,ShowerHead:cw,ShowerHeadIcon:cw,Shrink:lw,ShrinkIcon:lw,Shrub:dw,ShrubIcon:dw,Shuffle:hw,ShuffleIcon:hw,Sidebar:qs,SidebarClose:Rs,SidebarCloseIcon:Rs,SidebarIcon:qs,SidebarOpen:Ds,SidebarOpenIcon:Ds,Sigma:uw,SigmaIcon:uw,SigmaSquare:Fi,SigmaSquareIcon:Fi,Signal:Qc,SignalHigh:pw,SignalHighIcon:pw,SignalIcon:Qc,SignalLow:mw,SignalLowIcon:mw,SignalMedium:yw,SignalMediumIcon:yw,SignalZero:fw,SignalZeroIcon:fw,Signature:xw,SignatureIcon:xw,Signpost:kw,SignpostBig:gw,SignpostBigIcon:gw,SignpostIcon:kw,Siren:vw,SirenIcon:vw,SkipBack:ww,SkipBackIcon:ww,SkipForward:bw,SkipForwardIcon:bw,Skull:Mw,SkullIcon:Mw,Slack:jw,SlackIcon:jw,Slash:Cw,SlashIcon:Cw,SlashSquare:Oi,SlashSquareIcon:Oi,Slice:Sw,SliceIcon:Sw,Sliders:Xs,SlidersHorizontal:Pn,SlidersHorizontalIcon:Pn,SlidersIcon:Xs,SlidersVertical:Xs,SlidersVerticalIcon:Xs,Smartphone:Iw,SmartphoneCharging:Nw,SmartphoneChargingIcon:Nw,SmartphoneIcon:Iw,SmartphoneNfc:Lw,SmartphoneNfcIcon:Lw,Smile:Pw,SmileIcon:Pw,SmilePlus:Aw,SmilePlusIcon:Aw,Snail:_w,SnailIcon:_w,Snowflake:Rw,SnowflakeIcon:Rw,Sofa:Tw,SofaIcon:Tw,SortAsc:ar,SortAscIcon:ar,SortDesc:Qn,SortDescIcon:Qn,Soup:Dw,SoupIcon:Dw,Space:qw,SpaceIcon:qw,Spade:zw,SpadeIcon:zw,Sparkle:Ew,SparkleIcon:Ew,Sparkles:Ca,SparklesIcon:Ca,Speaker:Fw,SpeakerIcon:Fw,Speech:Ow,SpeechIcon:Ow,SpellCheck:Vw,SpellCheck2:Hw,SpellCheck2Icon:Hw,SpellCheckIcon:Vw,Spline:Bw,SplineIcon:Bw,Split:$w,SplitIcon:$w,SplitSquareHorizontal:Hi,SplitSquareHorizontalIcon:Hi,SplitSquareVertical:Vi,SplitSquareVerticalIcon:Vi,SprayCan:Uw,SprayCanIcon:Uw,Sprout:Gw,SproutIcon:Gw,Square:Kw,SquareActivity:Ys,SquareActivityIcon:Ys,SquareArrowDown:ei,SquareArrowDownIcon:ei,SquareArrowDownLeft:Ks,SquareArrowDownLeftIcon:Ks,SquareArrowDownRight:Qs,SquareArrowDownRightIcon:Qs,SquareArrowLeft:Ga,SquareArrowLeftIcon:Ga,SquareArrowOutDownLeft:ti,SquareArrowOutDownLeftIcon:ti,SquareArrowOutDownRight:ai,SquareArrowOutDownRightIcon:ai,SquareArrowOutUpLeft:ni,SquareArrowOutUpLeftIcon:ni,SquareArrowOutUpRight:ri,SquareArrowOutUpRightIcon:ri,SquareArrowRight:Wa,SquareArrowRightIcon:Wa,SquareArrowUp:oi,SquareArrowUpIcon:oi,SquareArrowUpLeft:si,SquareArrowUpLeftIcon:si,SquareArrowUpRight:ii,SquareArrowUpRightIcon:ii,SquareAsterisk:ci,SquareAsteriskIcon:ci,SquareBottomDashedScissors:li,SquareBottomDashedScissorsIcon:li,SquareChartGantt:ba,SquareChartGanttIcon:ba,SquareCheck:hi,SquareCheckBig:di,SquareCheckBigIcon:di,SquareCheckIcon:hi,SquareChevronDown:ui,SquareChevronDownIcon:ui,SquareChevronLeft:pi,SquareChevronLeftIcon:pi,SquareChevronRight:mi,SquareChevronRightIcon:mi,SquareChevronUp:yi,SquareChevronUpIcon:yi,SquareCode:fi,SquareCodeIcon:fi,SquareDashed:ki,SquareDashedBottom:Zw,SquareDashedBottomCode:Ww,SquareDashedBottomCodeIcon:Ww,SquareDashedBottomIcon:Zw,SquareDashedIcon:ki,SquareDashedKanban:xi,SquareDashedKanbanIcon:xi,SquareDashedMousePointer:gi,SquareDashedMousePointerIcon:gi,SquareDivide:vi,SquareDivideIcon:vi,SquareDot:wi,SquareDotIcon:wi,SquareEqual:bi,SquareEqualIcon:bi,SquareFunction:Mi,SquareFunctionIcon:Mi,SquareGanttChart:ba,SquareGanttChartIcon:ba,SquareIcon:Kw,SquareKanban:ji,SquareKanbanIcon:ji,SquareLibrary:Ci,SquareLibraryIcon:Ci,SquareM:Si,SquareMIcon:Si,SquareMenu:Ni,SquareMenuIcon:Ni,SquareMinus:Li,SquareMinusIcon:Li,SquareMousePointer:Ii,SquareMousePointerIcon:Ii,SquareParking:Pi,SquareParkingIcon:Pi,SquareParkingOff:Ai,SquareParkingOffIcon:Ai,SquarePen:Ft,SquarePenIcon:Ft,SquarePercent:_i,SquarePercentIcon:_i,SquarePi:Ri,SquarePiIcon:Ri,SquarePilcrow:Ti,SquarePilcrowIcon:Ti,SquarePlay:Di,SquarePlayIcon:Di,SquarePlus:qi,SquarePlusIcon:qi,SquarePower:zi,SquarePowerIcon:zi,SquareRadical:Jw,SquareRadicalIcon:Jw,SquareScissors:Ei,SquareScissorsIcon:Ei,SquareSigma:Fi,SquareSigmaIcon:Fi,SquareSlash:Oi,SquareSlashIcon:Oi,SquareSplitHorizontal:Hi,SquareSplitHorizontalIcon:Hi,SquareSplitVertical:Vi,SquareSplitVerticalIcon:Vi,SquareSquare:Xw,SquareSquareIcon:Xw,SquareStack:Yw,SquareStackIcon:Yw,SquareTerminal:Bi,SquareTerminalIcon:Bi,SquareUser:Ui,SquareUserIcon:Ui,SquareUserRound:$i,SquareUserRoundIcon:$i,SquareX:Gi,SquareXIcon:Gi,Squircle:Qw,SquircleIcon:Qw,Squirrel:eb,SquirrelIcon:eb,Stamp:tb,StampIcon:tb,Star:jt,StarHalf:ab,StarHalfIcon:ab,StarIcon:jt,StarOff:nb,StarOffIcon:nb,Stars:Ca,StarsIcon:Ca,StepBack:rb,StepBackIcon:rb,StepForward:sb,StepForwardIcon:sb,Stethoscope:ib,StethoscopeIcon:ib,Sticker:ob,StickerIcon:ob,StickyNote:cb,StickyNoteIcon:cb,StopCircle:Gr,StopCircleIcon:Gr,Store:lb,StoreIcon:lb,StretchHorizontal:db,StretchHorizontalIcon:db,StretchVertical:hb,StretchVerticalIcon:hb,Strikethrough:ub,StrikethroughIcon:ub,Subscript:pb,SubscriptIcon:pb,Subtitles:dr,SubtitlesIcon:dr,Sun:gb,SunDim:mb,SunDimIcon:mb,SunIcon:gb,SunMedium:yb,SunMediumIcon:yb,SunMoon:fb,SunMoonIcon:fb,SunSnow:xb,SunSnowIcon:xb,Sunrise:kb,SunriseIcon:kb,Sunset:vb,SunsetIcon:vb,Superscript:wb,SuperscriptIcon:wb,SwatchBook:bb,SwatchBookIcon:bb,SwissFranc:Mb,SwissFrancIcon:Mb,SwitchCamera:jb,SwitchCameraIcon:jb,Sword:Cb,SwordIcon:Cb,Swords:Sb,SwordsIcon:Sb,Syringe:Nb,SyringeIcon:Nb,Table:Db,Table2:Lb,Table2Icon:Lb,TableCellsMerge:Ib,TableCellsMergeIcon:Ib,TableCellsSplit:Ab,TableCellsSplitIcon:Ab,TableColumnsSplit:Pb,TableColumnsSplitIcon:Pb,TableIcon:Db,TableOfContents:_b,TableOfContentsIcon:_b,TableProperties:Rb,TablePropertiesIcon:Rb,TableRowsSplit:Tb,TableRowsSplitIcon:Tb,Tablet:zb,TabletIcon:zb,TabletSmartphone:qb,TabletSmartphoneIcon:qb,Tablets:Eb,TabletsIcon:Eb,Tag:el,TagIcon:el,Tags:Fb,TagsIcon:Fb,Tally1:Ob,Tally1Icon:Ob,Tally2:Hb,Tally2Icon:Hb,Tally3:Vb,Tally3Icon:Vb,Tally4:Bb,Tally4Icon:Bb,Tally5:$b,Tally5Icon:$b,Tangent:Ub,TangentIcon:Ub,Target:Gb,TargetIcon:Gb,Telescope:Wb,TelescopeIcon:Wb,Tent:Jb,TentIcon:Jb,TentTree:Zb,TentTreeIcon:Zb,Terminal:Xb,TerminalIcon:Xb,TerminalSquare:Bi,TerminalSquareIcon:Bi,TestTube:Yb,TestTube2:Wi,TestTube2Icon:Wi,TestTubeDiagonal:Wi,TestTubeDiagonalIcon:Wi,TestTubeIcon:Yb,TestTubes:Kb,TestTubesIcon:Kb,Text:n7,TextCursor:e7,TextCursorIcon:e7,TextCursorInput:Qb,TextCursorInputIcon:Qb,TextIcon:n7,TextQuote:t7,TextQuoteIcon:t7,TextSearch:a7,TextSearchIcon:a7,TextSelect:Zi,TextSelectIcon:Zi,TextSelection:Zi,TextSelectionIcon:Zi,Theater:r7,TheaterIcon:r7,Thermometer:o7,ThermometerIcon:o7,ThermometerSnowflake:s7,ThermometerSnowflakeIcon:s7,ThermometerSun:i7,ThermometerSunIcon:i7,ThumbsDown:c7,ThumbsDownIcon:c7,ThumbsUp:l7,ThumbsUpIcon:l7,Ticket:f7,TicketCheck:d7,TicketCheckIcon:d7,TicketIcon:f7,TicketMinus:h7,TicketMinusIcon:h7,TicketPercent:u7,TicketPercentIcon:u7,TicketPlus:p7,TicketPlusIcon:p7,TicketSlash:m7,TicketSlashIcon:m7,TicketX:y7,TicketXIcon:y7,Tickets:g7,TicketsIcon:g7,TicketsPlane:x7,TicketsPlaneIcon:x7,Timer:w7,TimerIcon:w7,TimerOff:k7,TimerOffIcon:k7,TimerReset:v7,TimerResetIcon:v7,ToggleLeft:b7,ToggleLeftIcon:b7,ToggleRight:M7,ToggleRightIcon:M7,Tornado:j7,TornadoIcon:j7,Torus:C7,TorusIcon:C7,Touchpad:N7,TouchpadIcon:N7,TouchpadOff:S7,TouchpadOffIcon:S7,TowerControl:L7,TowerControlIcon:L7,ToyBrick:I7,ToyBrickIcon:I7,Tractor:A7,TractorIcon:A7,TrafficCone:P7,TrafficConeIcon:P7,Train:Ji,TrainFront:R7,TrainFrontIcon:R7,TrainFrontTunnel:_7,TrainFrontTunnelIcon:_7,TrainIcon:Ji,TrainTrack:T7,TrainTrackIcon:T7,TramFront:Ji,TramFrontIcon:Ji,Trash:D7,Trash2:bo,Trash2Icon:bo,TrashIcon:D7,TreeDeciduous:q7,TreeDeciduousIcon:q7,TreePalm:Xi,TreePalmIcon:Xi,TreePine:z7,TreePineIcon:z7,Trees:E7,TreesIcon:E7,Trello:F7,TrelloIcon:F7,TrendingDown:O7,TrendingDownIcon:O7,TrendingUp:Pa,TrendingUpDown:H7,TrendingUpDownIcon:H7,TrendingUpIcon:Pa,Triangle:B7,TriangleAlert:Yi,TriangleAlertIcon:Yi,TriangleIcon:B7,TriangleRight:V7,TriangleRightIcon:V7,Trophy:$7,TrophyIcon:$7,Truck:U7,TruckIcon:U7,Turtle:G7,TurtleIcon:G7,Tv:Z7,Tv2:Ki,Tv2Icon:Ki,TvIcon:Z7,TvMinimal:Ki,TvMinimalIcon:Ki,TvMinimalPlay:W7,TvMinimalPlayIcon:W7,Twitch:J7,TwitchIcon:J7,Twitter:X7,TwitterIcon:X7,Type:K7,TypeIcon:K7,TypeOutline:Y7,TypeOutlineIcon:Y7,Umbrella:eM,UmbrellaIcon:eM,UmbrellaOff:Q7,UmbrellaOffIcon:Q7,Underline:tM,UnderlineIcon:tM,Undo:rM,Undo2:aM,Undo2Icon:aM,UndoDot:nM,UndoDotIcon:nM,UndoIcon:rM,UnfoldHorizontal:sM,UnfoldHorizontalIcon:sM,UnfoldVertical:iM,UnfoldVerticalIcon:iM,Ungroup:oM,UngroupIcon:oM,University:Qi,UniversityIcon:Qi,Unlink:lM,Unlink2:cM,Unlink2Icon:cM,UnlinkIcon:lM,Unlock:Cs,UnlockIcon:Cs,UnlockKeyhole:js,UnlockKeyholeIcon:js,Unplug:dM,UnplugIcon:dM,Upload:tl,UploadCloud:xn,UploadCloudIcon:xn,UploadIcon:tl,Usb:hM,UsbIcon:hM,User:ic,User2:so,User2Icon:so,UserCheck:Mo,UserCheck2:eo,UserCheck2Icon:eo,UserCheckIcon:Mo,UserCircle:Zr,UserCircle2:Wr,UserCircle2Icon:Wr,UserCircleIcon:Zr,UserCog:uM,UserCog2:to,UserCog2Icon:to,UserCogIcon:uM,UserIcon:ic,UserMinus:pM,UserMinus2:ao,UserMinus2Icon:ao,UserMinusIcon:pM,UserPen:mM,UserPenIcon:mM,UserPlus:yM,UserPlus2:no,UserPlus2Icon:no,UserPlusIcon:yM,UserRound:so,UserRoundCheck:eo,UserRoundCheckIcon:eo,UserRoundCog:to,UserRoundCogIcon:to,UserRoundIcon:so,UserRoundMinus:ao,UserRoundMinusIcon:ao,UserRoundPen:fM,UserRoundPenIcon:fM,UserRoundPlus:no,UserRoundPlusIcon:no,UserRoundSearch:xM,UserRoundSearchIcon:xM,UserRoundX:ro,UserRoundXIcon:ro,UserSearch:gM,UserSearchIcon:gM,UserSquare:Ui,UserSquare2:$i,UserSquare2Icon:$i,UserSquareIcon:Ui,UserX:kM,UserX2:ro,UserX2Icon:ro,UserXIcon:kM,Users:mt,Users2:io,Users2Icon:io,UsersIcon:mt,UsersRound:io,UsersRoundIcon:io,Utensils:co,UtensilsCrossed:oo,UtensilsCrossedIcon:oo,UtensilsIcon:co,UtilityPole:vM,UtilityPoleIcon:vM,Variable:wM,VariableIcon:wM,Vault:bM,VaultIcon:bM,Vegan:MM,VeganIcon:MM,VenetianMask:jM,VenetianMaskIcon:jM,Verified:sr,VerifiedIcon:sr,Vibrate:SM,VibrateIcon:SM,VibrateOff:CM,VibrateOffIcon:CM,Video:LM,VideoIcon:LM,VideoOff:NM,VideoOffIcon:NM,Videotape:IM,VideotapeIcon:IM,View:AM,ViewIcon:AM,Voicemail:PM,VoicemailIcon:PM,Volleyball:_M,VolleyballIcon:_M,Volume:zM,Volume1:RM,Volume1Icon:RM,Volume2:TM,Volume2Icon:TM,VolumeIcon:zM,VolumeOff:DM,VolumeOffIcon:DM,VolumeX:qM,VolumeXIcon:qM,Vote:EM,VoteIcon:EM,Wallet:OM,Wallet2:lo,Wallet2Icon:lo,WalletCards:FM,WalletCardsIcon:FM,WalletIcon:OM,WalletMinimal:lo,WalletMinimalIcon:lo,Wallpaper:HM,WallpaperIcon:HM,Wand:VM,Wand2:ho,Wand2Icon:ho,WandIcon:VM,WandSparkles:ho,WandSparklesIcon:ho,Warehouse:BM,WarehouseIcon:BM,WashingMachine:$M,WashingMachineIcon:$M,Watch:UM,WatchIcon:UM,Waves:GM,WavesIcon:GM,Waypoints:WM,WaypointsIcon:WM,Webcam:ZM,WebcamIcon:ZM,Webhook:XM,WebhookIcon:XM,WebhookOff:JM,WebhookOffIcon:JM,Weight:YM,WeightIcon:YM,Wheat:QM,WheatIcon:QM,WheatOff:KM,WheatOffIcon:KM,WholeWord:ej,WholeWordIcon:ej,Wifi:sj,WifiHigh:tj,WifiHighIcon:tj,WifiIcon:sj,WifiLow:aj,WifiLowIcon:aj,WifiOff:nj,WifiOffIcon:nj,WifiZero:rj,WifiZeroIcon:rj,Wind:ij,WindIcon:ij,Wine:cj,WineIcon:cj,WineOff:oj,WineOffIcon:oj,Workflow:lj,WorkflowIcon:lj,Worm:dj,WormIcon:dj,WrapText:hj,WrapTextIcon:hj,Wrench:uj,WrenchIcon:uj,X:Ct,XCircle:ja,XCircleIcon:ja,XIcon:Ct,XOctagon:As,XOctagonIcon:As,XSquare:Gi,XSquareIcon:Gi,Youtube:pj,YoutubeIcon:pj,Zap:al,ZapIcon:al,ZapOff:mj,ZapOffIcon:mj,ZoomIn:yj,ZoomInIcon:yj,ZoomOut:fj,ZoomOutIcon:fj,createLucideIcon:c,icons:DD},Symbol.toStringTag,{value:"Module"})),zD=({availableTags:t,selectedTagIds:a,onTagSelect:n,onTagDeselect:r,onCreateTag:s,maxTags:i=10,placeholder:o="Add tags..."})=>{const[l,d]=M.useState(!1),[h,u]=M.useState(""),[p,y]=M.useState("#3B82F6"),[m,x]=M.useState(""),[f,v]=M.useState(-1),k=M.useMemo(()=>t.filter(S=>S.name.toLowerCase().includes(m.toLowerCase())),[t,m]),w=M.useMemo(()=>t.filter(S=>a.includes(S.id)),[t,a]),b=M.useMemo(()=>k.filter(S=>!a.includes(S.id)),[k,a]),C=m.trim().length>0&&!t.some(S=>S.name.toLowerCase()===m.trim().toLowerCase()),j=b.length+(C?1:0),I=async()=>{const S=h.trim();if(S)try{await s({name:S,color:p}),u(""),d(!1)}catch(L){console.error("Failed to create tag:",L)}},N=S=>{if(j)switch(S.key){case"ArrowDown":{S.preventDefault(),v(L=>(L+1)%j);break}case"ArrowUp":{S.preventDefault(),v(L=>(L-1+j)%j);break}case"Enter":{if(f===-1)return;if(S.preventDefault(),f<b.length){const L=b[f];n(L.id),x(""),v(-1)}else C&&(d(!0),u(m.trim()),x(""),v(-1));break}case"Escape":{x(""),v(-1);break}}};return e.jsxs("div",{className:"tag-picker",children:[e.jsx("div",{className:"selected-tags flex flex-wrap gap-2 mb-2",children:w.map(S=>e.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1 rounded-full text-sm border",style:{backgroundColor:`${S.color}20`,color:S.color,borderColor:S.color},children:[S.name,e.jsx("button",{type:"button",onClick:()=>r(S.id),className:"hover:opacity-70","aria-label":`Remove ${S.name}`,children:e.jsx(Ct,{className:"w-3 h-3"})})]},S.id))}),a.length<i&&e.jsxs("div",{className:"tag-selector relative",children:[e.jsxs("div",{className:"relative",children:[e.jsx(el,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-gray-400"}),e.jsx("input",{type:"text",value:m,onChange:S=>{x(S.target.value),v(-1)},onKeyDown:N,placeholder:o,className:"w-full border rounded px-9 py-2","aria-haspopup":"listbox","aria-expanded":m.length>0})]}),m&&e.jsxs("div",{role:"listbox",className:"absolute z-10 w-full mt-1 bg-white border rounded shadow-lg max-h-48 overflow-y-auto",children:[b.map((S,L)=>e.jsxs("button",{type:"button",role:"option","aria-selected":f===L,onClick:()=>{n(S.id),x(""),v(-1)},className:`w-full px-3 py-2 text-left hover:bg-gray-100 flex items-center gap-2 ${f===L?"bg-gray-100":""}`,children:[e.jsx("span",{className:"w-3 h-3 rounded-full",style:{backgroundColor:S.color}}),e.jsx("span",{children:S.name}),S.category&&e.jsxs("span",{className:"text-xs text-gray-500",children:["(",S.category,")"]})]},S.id)),C&&e.jsxs("button",{type:"button",role:"option","aria-selected":f===b.length,onClick:()=>{d(!0),u(m.trim()),x(""),v(-1)},className:`w-full px-3 py-2 text-left hover:bg-gray-100 text-blue-600 flex items-center gap-2 ${f===b.length?"bg-gray-100":""}`,children:[e.jsx(la,{className:"w-4 h-4"}),'Create "',m.trim(),'"']}),!b.length&&!C&&e.jsx("div",{className:"px-3 py-2 text-sm text-gray-500",children:"No tags found."})]})]}),l&&e.jsxs("div",{className:"create-tag-form mt-2 p-3 border rounded",children:[e.jsx("input",{type:"text",value:h,onChange:S=>u(S.target.value),placeholder:"Tag name",className:"w-full border rounded px-3 py-2 mb-2"}),e.jsxs("div",{className:"flex flex-wrap gap-2 items-center",children:[e.jsxs("label",{className:"flex items-center gap-2 text-sm text-gray-600",children:["Color",e.jsx("input",{type:"color",value:p,onChange:S=>y(S.target.value),className:"w-12 h-8 rounded","aria-label":"Pick tag color"})]}),e.jsx("button",{type:"button",onClick:I,onKeyDown:S=>{S.key==="Enter"&&(S.preventDefault(),I())},className:"flex-1 bg-blue-600 text-white px-3 py-2 rounded hover:bg-blue-700",children:"Create"}),e.jsx("button",{type:"button",onClick:()=>{d(!1),u("")},className:"px-3 py-2 border rounded hover:bg-gray-100",children:"Cancel"})]})]})]})},ED={sm:"px-2 py-0.5 text-xs",md:"px-3 py-1 text-sm",lg:"px-4 py-1.5 text-base"},VC=({name:t,color:a,size:n="md",removable:r=!1,onRemove:s,onClick:i,href:o,className:l})=>{const d=!!(i||o),h=p=>{!i||o||(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),i())},u=o?"a":"span";return e.jsxs(u,{className:`inline-flex items-center gap-1 rounded-full font-medium border transition-opacity ${ED[n]} ${d?"cursor-pointer hover:opacity-80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2":""} ${l??""}`,style:{backgroundColor:`${a}20`,color:a,borderColor:a},onClick:i,onKeyDown:h,role:!o&&i?"button":void 0,tabIndex:!o&&i?0:void 0,href:o,children:[t,r&&s&&e.jsx("button",{type:"button",onClick:p=>{p.stopPropagation(),s()},className:"hover:opacity-70 ml-1","aria-label":`Remove ${t} tag`,children:e.jsx(Ct,{className:"w-3 h-3"})})]})};function Xa(t,a,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t==null||t(s),n===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}function FD(t,a=[]){let n=[];function r(i,o){const l=g.createContext(o),d=n.length;n=[...n,o];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=n.map(o=>g.createContext(o));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[r,OD(s,...a)]}function OD(...t){const a=t[0];if(t.length===1)return a;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:o}),[o])}};return n.scopeName=a.scopeName,n}function HD(t,a=[]){let n=[];function r(i,o){const l=g.createContext(o),d=n.length;n=[...n,o];function h(p){const{scope:y,children:m,...x}=p,f=(y==null?void 0:y[t][d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})}function u(p,y){const m=(y==null?void 0:y[t][d])||l,x=g.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${i}\``)}return h.displayName=i+"Provider",[h,u]}const s=()=>{const i=n.map(o=>g.createContext(o));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[r,VD(s,...a)]}function VD(...t){const a=t[0];if(t.length===1)return a;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:o}),[o])}};return n.scopeName=a.scopeName,n}function BD(t,a){typeof t=="function"?t(a):t!=null&&(t.current=a)}function BC(...t){return a=>t.forEach(n=>BD(n,a))}function Sj(...t){return g.useCallback(BC(...t),t)}var nC=g.forwardRef((t,a)=>{const{children:n,...r}=t,s=g.Children.toArray(n),i=s.find(UD);if(i){const o=i.props.children,l=s.map(d=>d===i?g.Children.count(o)>1?g.Children.only(null):g.isValidElement(o)?o.props.children:null:d);return e.jsx(rC,{...r,ref:a,children:g.isValidElement(o)?g.cloneElement(o,void 0,l):null})}return e.jsx(rC,{...r,ref:a,children:n})});nC.displayName="Slot";var rC=g.forwardRef((t,a)=>{const{children:n,...r}=t;if(g.isValidElement(n)){const s=WD(n);return g.cloneElement(n,{...GD(r,n.props),ref:a?BC(a,s):s})}return g.Children.count(n)>1?g.Children.only(null):null});rC.displayName="SlotClone";var $D=({children:t})=>e.jsx(e.Fragment,{children:t});function UD(t){return g.isValidElement(t)&&t.type===$D}function GD(t,a){const n={...a};for(const r in a){const s=t[r],i=a[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...l)=>{i(...l),s(...l)}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...t,...n}}function WD(t){var r,s;let a=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=a&&"isReactWarning"in a&&a.isReactWarning;return n?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=a&&"isReactWarning"in a&&a.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function ZD(t){const a=t+"CollectionProvider",[n,r]=HD(a),[s,i]=n(a,{collectionRef:{current:null},itemMap:new Map}),o=m=>{const{scope:x,children:f}=m,v=M.useRef(null),k=M.useRef(new Map).current;return e.jsx(s,{scope:x,itemMap:k,collectionRef:v,children:f})};o.displayName=a;const l=t+"CollectionSlot",d=M.forwardRef((m,x)=>{const{scope:f,children:v}=m,k=i(l,f),w=Sj(x,k.collectionRef);return e.jsx(nC,{ref:w,children:v})});d.displayName=l;const h=t+"CollectionItemSlot",u="data-radix-collection-item",p=M.forwardRef((m,x)=>{const{scope:f,children:v,...k}=m,w=M.useRef(null),b=Sj(x,w),C=i(h,f);return M.useEffect(()=>(C.itemMap.set(w,{ref:w,...k}),()=>void C.itemMap.delete(w))),e.jsx(nC,{[u]:"",ref:b,children:v})});p.displayName=h;function y(m){const x=i(t+"CollectionConsumer",m);return M.useCallback(()=>{const v=x.collectionRef.current;if(!v)return[];const k=Array.from(v.querySelectorAll(`[${u}]`));return Array.from(x.itemMap.values()).sort((C,j)=>k.indexOf(C.ref.current)-k.indexOf(j.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:o,Slot:d,ItemSlot:p},y,r]}function JD(t,a=[]){let n=[];function r(i,o){const l=g.createContext(o),d=n.length;n=[...n,o];function h(p){const{scope:y,children:m,...x}=p,f=(y==null?void 0:y[t][d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})}function u(p,y){const m=(y==null?void 0:y[t][d])||l,x=g.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${i}\``)}return h.displayName=i+"Provider",[h,u]}const s=()=>{const i=n.map(o=>g.createContext(o));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[r,XD(s,...a)]}function XD(...t){const a=t[0];if(t.length===1)return a;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:o}),[o])}};return n.scopeName=a.scopeName,n}var sC=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},YD=g.useId||(()=>{}),KD=0;function XL(t){const[a,n]=g.useState(YD());return sC(()=>{t||n(r=>r??String(KD++))},[t]),t||(a?`radix-${a}`:"")}var YL=g.forwardRef((t,a)=>{const{children:n,...r}=t,s=g.Children.toArray(n),i=s.find(eq);if(i){const o=i.props.children,l=s.map(d=>d===i?g.Children.count(o)>1?g.Children.only(null):g.isValidElement(o)?o.props.children:null:d);return e.jsx(iC,{...r,ref:a,children:g.isValidElement(o)?g.cloneElement(o,void 0,l):null})}return e.jsx(iC,{...r,ref:a,children:n})});YL.displayName="Slot";var iC=g.forwardRef((t,a)=>{const{children:n,...r}=t;if(g.isValidElement(n)){const s=aq(n);return g.cloneElement(n,{...tq(r,n.props),ref:a?BC(a,s):s})}return g.Children.count(n)>1?g.Children.only(null):null});iC.displayName="SlotClone";var QD=({children:t})=>e.jsx(e.Fragment,{children:t});function eq(t){return g.isValidElement(t)&&t.type===QD}function tq(t,a){const n={...a};for(const r in a){const s=t[r],i=a[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...l)=>{i(...l),s(...l)}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...t,...n}}function aq(t){var r,s;let a=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=a&&"isReactWarning"in a&&a.isReactWarning;return n?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=a&&"isReactWarning"in a&&a.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var nq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Do=nq.reduce((t,a)=>{const n=g.forwardRef((r,s)=>{const{asChild:i,...o}=r,l=i?YL:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(l,{...o,ref:s})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{});function $C(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...n)=>{var r;return(r=a.current)==null?void 0:r.call(a,...n)},[])}function KL({prop:t,defaultProp:a,onChange:n=()=>{}}){const[r,s]=rq({defaultProp:a,onChange:n}),i=t!==void 0,o=i?t:r,l=$C(n),d=g.useCallback(h=>{if(i){const p=typeof h=="function"?h(t):h;p!==t&&l(p)}else s(h)},[i,t,s,l]);return[o,d]}function rq({defaultProp:t,onChange:a}){const n=g.useState(t),[r]=n,s=g.useRef(r),i=$C(a);return g.useEffect(()=>{s.current!==r&&(i(r),s.current=r)},[r,s,i]),n}var sq=g.createContext(void 0);function QL(t){const a=g.useContext(sq);return t||a||"ltr"}var M9="rovingFocusGroup.onEntryFocus",iq={bubbles:!1,cancelable:!0},Gj="RovingFocusGroup",[oC,eI,oq]=ZD(Gj),[cq,tI]=JD(Gj,[oq]),[lq,dq]=cq(Gj),aI=g.forwardRef((t,a)=>e.jsx(oC.Provider,{scope:t.__scopeRovingFocusGroup,children:e.jsx(oC.Slot,{scope:t.__scopeRovingFocusGroup,children:e.jsx(hq,{...t,ref:a})})}));aI.displayName=Gj;var hq=g.forwardRef((t,a)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:s=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:d,onEntryFocus:h,preventScrollOnEntryFocus:u=!1,...p}=t,y=g.useRef(null),m=Sj(a,y),x=QL(i),[f=null,v]=KL({prop:o,defaultProp:l,onChange:d}),[k,w]=g.useState(!1),b=$C(h),C=eI(n),j=g.useRef(!1),[I,N]=g.useState(0);return g.useEffect(()=>{const S=y.current;if(S)return S.addEventListener(M9,b),()=>S.removeEventListener(M9,b)},[b]),e.jsx(lq,{scope:n,orientation:r,dir:x,loop:s,currentTabStopId:f,onItemFocus:g.useCallback(S=>v(S),[v]),onItemShiftTab:g.useCallback(()=>w(!0),[]),onFocusableItemAdd:g.useCallback(()=>N(S=>S+1),[]),onFocusableItemRemove:g.useCallback(()=>N(S=>S-1),[]),children:e.jsx(Do.div,{tabIndex:k||I===0?-1:0,"data-orientation":r,...p,ref:m,style:{outline:"none",...t.style},onMouseDown:Xa(t.onMouseDown,()=>{j.current=!0}),onFocus:Xa(t.onFocus,S=>{const L=!j.current;if(S.target===S.currentTarget&&L&&!k){const q=new CustomEvent(M9,iq);if(S.currentTarget.dispatchEvent(q),!q.defaultPrevented){const _=C().filter(V=>V.focusable),A=_.find(V=>V.active),D=_.find(V=>V.id===f),G=[A,D,..._].filter(Boolean).map(V=>V.ref.current);sI(G,u)}}j.current=!1}),onBlur:Xa(t.onBlur,()=>w(!1))})})}),nI="RovingFocusGroupItem",rI=g.forwardRef((t,a)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:s=!1,tabStopId:i,...o}=t,l=XL(),d=i||l,h=dq(nI,n),u=h.currentTabStopId===d,p=eI(n),{onFocusableItemAdd:y,onFocusableItemRemove:m}=h;return g.useEffect(()=>{if(r)return y(),()=>m()},[r,y,m]),e.jsx(oC.ItemSlot,{scope:n,id:d,focusable:r,active:s,children:e.jsx(Do.span,{tabIndex:u?0:-1,"data-orientation":h.orientation,...o,ref:a,onMouseDown:Xa(t.onMouseDown,x=>{r?h.onItemFocus(d):x.preventDefault()}),onFocus:Xa(t.onFocus,()=>h.onItemFocus(d)),onKeyDown:Xa(t.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){h.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const f=mq(x,h.orientation,h.dir);if(f!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let k=p().filter(w=>w.focusable).map(w=>w.ref.current);if(f==="last")k.reverse();else if(f==="prev"||f==="next"){f==="prev"&&k.reverse();const w=k.indexOf(x.currentTarget);k=h.loop?yq(k,w+1):k.slice(w+1)}setTimeout(()=>sI(k))}})})})});rI.displayName=nI;var uq={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function pq(t,a){return a!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function mq(t,a,n){const r=pq(t.key,n);if(!(a==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(a==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return uq[r]}function sI(t,a=!1){const n=document.activeElement;for(const r of t)if(r===n||(r.focus({preventScroll:a}),document.activeElement!==n))return}function yq(t,a){return t.map((n,r)=>t[(a+r)%t.length])}var fq=aI,xq=rI;function gq(t,a){return g.useReducer((n,r)=>a[n][r]??n,t)}var iI=t=>{const{present:a,children:n}=t,r=kq(a),s=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),i=Sj(r.ref,vq(s));return typeof n=="function"||r.isPresent?g.cloneElement(s,{ref:i}):null};iI.displayName="Presence";function kq(t){const[a,n]=g.useState(),r=g.useRef({}),s=g.useRef(t),i=g.useRef("none"),o=t?"mounted":"unmounted",[l,d]=gq(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const h=Nl(r.current);i.current=l==="mounted"?h:"none"},[l]),sC(()=>{const h=r.current,u=s.current;if(u!==t){const y=i.current,m=Nl(h);t?d("MOUNT"):m==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(u&&y!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,d]),sC(()=>{if(a){let h;const u=a.ownerDocument.defaultView??window,p=m=>{const f=Nl(r.current).includes(m.animationName);if(m.target===a&&f&&(d("ANIMATION_END"),!s.current)){const v=a.style.animationFillMode;a.style.animationFillMode="forwards",h=u.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=v)})}},y=m=>{m.target===a&&(i.current=Nl(r.current))};return a.addEventListener("animationstart",y),a.addEventListener("animationcancel",p),a.addEventListener("animationend",p),()=>{u.clearTimeout(h),a.removeEventListener("animationstart",y),a.removeEventListener("animationcancel",p),a.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[a,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(h=>{h&&(r.current=getComputedStyle(h)),n(h)},[])}}function Nl(t){return(t==null?void 0:t.animationName)||"none"}function vq(t){var r,s;let a=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=a&&"isReactWarning"in a&&a.isReactWarning;return n?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=a&&"isReactWarning"in a&&a.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var UC="Tabs",[wq,iZ]=FD(UC,[tI]),oI=tI(),[bq,GC]=wq(UC),cI=g.forwardRef((t,a)=>{const{__scopeTabs:n,value:r,onValueChange:s,defaultValue:i,orientation:o="horizontal",dir:l,activationMode:d="automatic",...h}=t,u=QL(l),[p,y]=KL({prop:r,onChange:s,defaultProp:i});return e.jsx(bq,{scope:n,baseId:XL(),value:p,onValueChange:y,orientation:o,dir:u,activationMode:d,children:e.jsx(Do.div,{dir:u,"data-orientation":o,...h,ref:a})})});cI.displayName=UC;var lI="TabsList",dI=g.forwardRef((t,a)=>{const{__scopeTabs:n,loop:r=!0,...s}=t,i=GC(lI,n),o=oI(n);return e.jsx(fq,{asChild:!0,...o,orientation:i.orientation,dir:i.dir,loop:r,children:e.jsx(Do.div,{role:"tablist","aria-orientation":i.orientation,...s,ref:a})})});dI.displayName=lI;var hI="TabsTrigger",uI=g.forwardRef((t,a)=>{const{__scopeTabs:n,value:r,disabled:s=!1,...i}=t,o=GC(hI,n),l=oI(n),d=yI(o.baseId,r),h=fI(o.baseId,r),u=r===o.value;return e.jsx(xq,{asChild:!0,...l,focusable:!s,active:u,children:e.jsx(Do.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":h,"data-state":u?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:d,...i,ref:a,onMouseDown:Xa(t.onMouseDown,p=>{!s&&p.button===0&&p.ctrlKey===!1?o.onValueChange(r):p.preventDefault()}),onKeyDown:Xa(t.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&o.onValueChange(r)}),onFocus:Xa(t.onFocus,()=>{const p=o.activationMode!=="manual";!u&&!s&&p&&o.onValueChange(r)})})})});uI.displayName=hI;var pI="TabsContent",mI=g.forwardRef((t,a)=>{const{__scopeTabs:n,value:r,forceMount:s,children:i,...o}=t,l=GC(pI,n),d=yI(l.baseId,r),h=fI(l.baseId,r),u=r===l.value,p=g.useRef(u);return g.useEffect(()=>{const y=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(y)},[]),e.jsx(iI,{present:s||u,children:({present:y})=>e.jsx(Do.div,{"data-state":u?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":d,hidden:!y,id:h,tabIndex:0,...o,ref:a,style:{...t.style,animationDuration:p.current?"0s":void 0},children:y&&i})})});mI.displayName=pI;function yI(t,a){return`${t}-trigger-${a}`}function fI(t,a){return`${t}-content-${a}`}var Mq=cI,xI=dI,gI=uI,kI=mI;const nn=Mq,rn=g.forwardRef(({className:t,...a},n)=>e.jsx(xI,{ref:n,className:ye("inline-flex items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",t),...a}));rn.displayName=xI.displayName;const Pe=g.forwardRef(({className:t,...a},n)=>e.jsx(gI,{ref:n,className:ye("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",t),...a}));Pe.displayName=gI.displayName;const je=g.forwardRef(({className:t,...a},n)=>e.jsx(kI,{ref:n,className:ye("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...a}));je.displayName=kI.displayName;const Q=g.forwardRef(({className:t,...a},n)=>e.jsx("div",{ref:n,className:ye("rounded-xl border bg-card text-card-foreground shadow",t),...a}));Q.displayName="Card";const ce=g.forwardRef(({className:t,...a},n)=>e.jsx("div",{ref:n,className:ye("flex flex-col space-y-1.5 p-6",t),...a}));ce.displayName="CardHeader";const ue=g.forwardRef(({className:t,...a},n)=>e.jsx("h3",{ref:n,className:ye("font-semibold leading-none tracking-tight",t),...a}));ue.displayName="CardTitle";const Se=g.forwardRef(({className:t,...a},n)=>e.jsx("p",{ref:n,className:ye("text-sm text-muted-foreground",t),...a}));Se.displayName="CardDescription";const ee=g.forwardRef(({className:t,...a},n)=>e.jsx("div",{ref:n,className:ye("p-6 pt-0",t),...a}));ee.displayName="CardContent";const Lo=g.forwardRef(({className:t,...a},n)=>e.jsx("div",{ref:n,className:ye("flex items-center p-6 pt-0",t),...a}));Lo.displayName="CardFooter";function jq({groupedIds:t,tabTitles:a,lang:n,url:r,PromotionsTitle:s,buttonMsg:i="Select Plan"}){const[o,l]=M.useState([]),[d,h]=M.useState("tab-0"),u=r||window.location.origin||"http://localhost:8000";M.useEffect(()=>{(async()=>{try{const x=n??"en",f=t.map(async k=>(await fetch(`${u}/api/v1/promotions/?ids=${k}`,{method:"GET",headers:{"Accept-Language":x,"Content-Type":"application/json"}})).json()),v=await Promise.all(f);l(v)}catch{}})()},[t,u,n]);const p=m=>{const x=new CustomEvent("planSelected",{bubbles:!0,detail:{plan:m,tabType:d,timestamp:new Date().toISOString()}}),f=document.querySelector(".group-prices-component");f&&f.dispatchEvent(x)},y=`grid sm:grid-cols-2 lg:grid-cols-${a.length} mb-8`;return e.jsx("section",{id:"pricing",className:"w-full py-12 md:py-24 lg:py-32",children:e.jsxs("div",{className:"container px-4 md:px-6",children:[s??e.jsx("h2",{className:"text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl text-center mb-8",children:s}),e.jsxs(nn,{defaultValue:"tab-0",className:"w-full",onValueChange:m=>h(m),children:[e.jsx(rn,{className:y,children:a.map((m,x)=>e.jsx(Pe,{value:`tab-${x}`,children:m},x))}),o.map((m,x)=>e.jsx(je,{value:`tab-${x}`,children:e.jsx("div",{className:"grid gap-8 sm:grid-cols-2 lg:grid-cols-3",children:m.map((f,v)=>e.jsxs(Q,{className:"flex flex-col",children:[e.jsxs(ce,{children:[e.jsx(ue,{children:f.title}),e.jsx(Se,{children:f.short_description})]}),e.jsxs(ee,{className:"flex-1",children:[e.jsxs("p",{className:"text-3xl font-bold",children:["€",f.price]}),e.jsx("ul",{className:"mt-4 space-y-2",children:f.features&&f.features.map((k,w)=>e.jsxs("li",{className:"flex items-center",children:[e.jsx(Qo,{className:"mr-2 h-4 w-4 text-primary"})," ",k]},w))})]}),e.jsx(Lo,{children:e.jsx(T,{onClick:()=>p(f),className:"w-full bg-primary text-primary-foreground hover:bg-primary/90",children:i})})]},v))})},x))]})]})})}function Cq({isOpen:t,items:a}){const n=a.reduce((r,s)=>r+s.price,0);return e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:ye("fixed inset-y-0 right-0 w-80 bg-white shadow-lg transform transition-transform duration-300 ease-in-out z-30",t?"translate-x-0":"translate-x-full"),children:e.jsxs("div",{className:"h-full flex flex-col",children:[e.jsxs("div",{className:"p-4 border-b flex items-center justify-between",children:[e.jsx("h2",{className:"text-xl font-semibold",children:"Summary"}),e.jsxs("button",{onClick:()=>{const r=document.querySelector('.sliding-summary-component[data-open="true"]');r&&r.setAttribute("data-open","false")},className:"hover:bg-gray-100 rounded p-2",children:[e.jsx(Ct,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close panel"})]})]}),e.jsx("div",{className:"flex-1 overflow-auto p-4",children:a.map(r=>e.jsxs("div",{className:"mb-4 p-3 border rounded-lg",children:[e.jsxs("div",{className:"flex justify-between items-start mb-1",children:[e.jsx("span",{className:"font-medium",children:r.name}),e.jsxs("span",{className:"text-sm",children:["$",r.price.toFixed(2)]})]}),e.jsx("p",{className:"text-sm text-gray-600",children:r.description})]},r.id))}),e.jsx("div",{className:"p-4 border-t",children:e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"font-semibold",children:"Total:"}),e.jsxs("span",{className:"font-semibold",children:["$",n.toFixed(2)]})]})})]})}),t&&e.jsx("div",{className:"fixed inset-0 bg-black/20 z-20",onClick:()=>{const r=document.querySelector('.sliding-summary-component[data-open="true"]');r&&r.setAttribute("data-open","false")}})]})}function $a(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vI(t,a){t.prototype=Object.create(a.prototype),t.prototype.constructor=t,t.__proto__=a}/*!
7725
+ */const qD=Object.freeze(Object.defineProperty({__proto__:null,AArrowDown:Vl,AArrowDownIcon:Vl,AArrowUp:Bl,AArrowUpIcon:Bl,ALargeSmall:$l,ALargeSmallIcon:$l,Accessibility:Ul,AccessibilityIcon:Ul,Activity:Gl,ActivityIcon:Gl,ActivitySquare:Ys,ActivitySquareIcon:Ys,AirVent:Wl,AirVentIcon:Wl,Airplay:Zl,AirplayIcon:Zl,AlarmCheck:Jn,AlarmCheckIcon:Jn,AlarmClock:Xl,AlarmClockCheck:Jn,AlarmClockCheckIcon:Jn,AlarmClockIcon:Xl,AlarmClockMinus:Xn,AlarmClockMinusIcon:Xn,AlarmClockOff:Jl,AlarmClockOffIcon:Jl,AlarmClockPlus:Yn,AlarmClockPlusIcon:Yn,AlarmMinus:Xn,AlarmMinusIcon:Xn,AlarmPlus:Yn,AlarmPlusIcon:Yn,AlarmSmoke:Yl,AlarmSmokeIcon:Yl,Album:Kl,AlbumIcon:Kl,AlertCircle:Ht,AlertCircleIcon:Ht,AlertOctagon:Ls,AlertOctagonIcon:Ls,AlertTriangle:Yi,AlertTriangleIcon:Yi,AlignCenter:t1,AlignCenterHorizontal:Ql,AlignCenterHorizontalIcon:Ql,AlignCenterIcon:t1,AlignCenterVertical:e1,AlignCenterVerticalIcon:e1,AlignEndHorizontal:a1,AlignEndHorizontalIcon:a1,AlignEndVertical:n1,AlignEndVerticalIcon:n1,AlignHorizontalDistributeCenter:r1,AlignHorizontalDistributeCenterIcon:r1,AlignHorizontalDistributeEnd:s1,AlignHorizontalDistributeEndIcon:s1,AlignHorizontalDistributeStart:i1,AlignHorizontalDistributeStartIcon:i1,AlignHorizontalJustifyCenter:o1,AlignHorizontalJustifyCenterIcon:o1,AlignHorizontalJustifyEnd:c1,AlignHorizontalJustifyEndIcon:c1,AlignHorizontalJustifyStart:l1,AlignHorizontalJustifyStartIcon:l1,AlignHorizontalSpaceAround:d1,AlignHorizontalSpaceAroundIcon:d1,AlignHorizontalSpaceBetween:h1,AlignHorizontalSpaceBetweenIcon:h1,AlignJustify:u1,AlignJustifyIcon:u1,AlignLeft:p1,AlignLeftIcon:p1,AlignRight:m1,AlignRightIcon:m1,AlignStartHorizontal:y1,AlignStartHorizontalIcon:y1,AlignStartVertical:f1,AlignStartVerticalIcon:f1,AlignVerticalDistributeCenter:x1,AlignVerticalDistributeCenterIcon:x1,AlignVerticalDistributeEnd:g1,AlignVerticalDistributeEndIcon:g1,AlignVerticalDistributeStart:k1,AlignVerticalDistributeStartIcon:k1,AlignVerticalJustifyCenter:v1,AlignVerticalJustifyCenterIcon:v1,AlignVerticalJustifyEnd:w1,AlignVerticalJustifyEndIcon:w1,AlignVerticalJustifyStart:b1,AlignVerticalJustifyStartIcon:b1,AlignVerticalSpaceAround:M1,AlignVerticalSpaceAroundIcon:M1,AlignVerticalSpaceBetween:j1,AlignVerticalSpaceBetweenIcon:j1,Ambulance:C1,AmbulanceIcon:C1,Ampersand:S1,AmpersandIcon:S1,Ampersands:N1,AmpersandsIcon:N1,Amphora:L1,AmphoraIcon:L1,Anchor:I1,AnchorIcon:I1,Angry:A1,AngryIcon:A1,Annoyed:P1,AnnoyedIcon:P1,Antenna:_1,AntennaIcon:_1,Anvil:R1,AnvilIcon:R1,Aperture:T1,ApertureIcon:T1,AppWindow:q1,AppWindowIcon:q1,AppWindowMac:D1,AppWindowMacIcon:D1,Apple:z1,AppleIcon:z1,Archive:O1,ArchiveIcon:O1,ArchiveRestore:E1,ArchiveRestoreIcon:E1,ArchiveX:F1,ArchiveXIcon:F1,AreaChart:hr,AreaChartIcon:hr,Armchair:H1,ArmchairIcon:H1,ArrowBigDown:B1,ArrowBigDownDash:V1,ArrowBigDownDashIcon:V1,ArrowBigDownIcon:B1,ArrowBigLeft:U1,ArrowBigLeftDash:$1,ArrowBigLeftDashIcon:$1,ArrowBigLeftIcon:U1,ArrowBigRight:W1,ArrowBigRightDash:G1,ArrowBigRightDashIcon:G1,ArrowBigRightIcon:W1,ArrowBigUp:J1,ArrowBigUpDash:Z1,ArrowBigUpDashIcon:Z1,ArrowBigUpIcon:J1,ArrowDown:sd,ArrowDown01:X1,ArrowDown01Icon:X1,ArrowDown10:Y1,ArrowDown10Icon:Y1,ArrowDownAZ:Kn,ArrowDownAZIcon:Kn,ArrowDownAz:Kn,ArrowDownAzIcon:Kn,ArrowDownCircle:Mr,ArrowDownCircleIcon:Mr,ArrowDownFromLine:K1,ArrowDownFromLineIcon:K1,ArrowDownIcon:sd,ArrowDownLeft:Q1,ArrowDownLeftFromCircle:Cr,ArrowDownLeftFromCircleIcon:Cr,ArrowDownLeftFromSquare:ti,ArrowDownLeftFromSquareIcon:ti,ArrowDownLeftIcon:Q1,ArrowDownLeftSquare:Ks,ArrowDownLeftSquareIcon:Ks,ArrowDownNarrowWide:ed,ArrowDownNarrowWideIcon:ed,ArrowDownRight:td,ArrowDownRightFromCircle:Sr,ArrowDownRightFromCircleIcon:Sr,ArrowDownRightFromSquare:ai,ArrowDownRightFromSquareIcon:ai,ArrowDownRightIcon:td,ArrowDownRightSquare:Qs,ArrowDownRightSquareIcon:Qs,ArrowDownSquare:ei,ArrowDownSquareIcon:ei,ArrowDownToDot:ad,ArrowDownToDotIcon:ad,ArrowDownToLine:nd,ArrowDownToLineIcon:nd,ArrowDownUp:rd,ArrowDownUpIcon:rd,ArrowDownWideNarrow:Qn,ArrowDownWideNarrowIcon:Qn,ArrowDownZA:er,ArrowDownZAIcon:er,ArrowDownZa:er,ArrowDownZaIcon:er,ArrowLeft:Ja,ArrowLeftCircle:jr,ArrowLeftCircleIcon:jr,ArrowLeftFromLine:id,ArrowLeftFromLineIcon:id,ArrowLeftIcon:Ja,ArrowLeftRight:od,ArrowLeftRightIcon:od,ArrowLeftSquare:Ga,ArrowLeftSquareIcon:Ga,ArrowLeftToLine:cd,ArrowLeftToLineIcon:cd,ArrowRight:yo,ArrowRightCircle:Ir,ArrowRightCircleIcon:Ir,ArrowRightFromLine:ld,ArrowRightFromLineIcon:ld,ArrowRightIcon:yo,ArrowRightLeft:dd,ArrowRightLeftIcon:dd,ArrowRightSquare:Wa,ArrowRightSquareIcon:Wa,ArrowRightToLine:hd,ArrowRightToLineIcon:hd,ArrowUp:wd,ArrowUp01:ud,ArrowUp01Icon:ud,ArrowUp10:pd,ArrowUp10Icon:pd,ArrowUpAZ:tr,ArrowUpAZIcon:tr,ArrowUpAz:tr,ArrowUpAzIcon:tr,ArrowUpCircle:Ar,ArrowUpCircleIcon:Ar,ArrowUpDown:md,ArrowUpDownIcon:md,ArrowUpFromDot:yd,ArrowUpFromDotIcon:yd,ArrowUpFromLine:fd,ArrowUpFromLineIcon:fd,ArrowUpIcon:wd,ArrowUpLeft:xd,ArrowUpLeftFromCircle:Nr,ArrowUpLeftFromCircleIcon:Nr,ArrowUpLeftFromSquare:ni,ArrowUpLeftFromSquareIcon:ni,ArrowUpLeftIcon:xd,ArrowUpLeftSquare:si,ArrowUpLeftSquareIcon:si,ArrowUpNarrowWide:ar,ArrowUpNarrowWideIcon:ar,ArrowUpRight:gd,ArrowUpRightFromCircle:Lr,ArrowUpRightFromCircleIcon:Lr,ArrowUpRightFromSquare:ri,ArrowUpRightFromSquareIcon:ri,ArrowUpRightIcon:gd,ArrowUpRightSquare:ii,ArrowUpRightSquareIcon:ii,ArrowUpSquare:oi,ArrowUpSquareIcon:oi,ArrowUpToLine:kd,ArrowUpToLineIcon:kd,ArrowUpWideNarrow:vd,ArrowUpWideNarrowIcon:vd,ArrowUpZA:nr,ArrowUpZAIcon:nr,ArrowUpZa:nr,ArrowUpZaIcon:nr,ArrowsUpFromLine:bd,ArrowsUpFromLineIcon:bd,Asterisk:Md,AsteriskIcon:Md,AsteriskSquare:ci,AsteriskSquareIcon:ci,AtSign:jd,AtSignIcon:jd,Atom:Cd,AtomIcon:Cd,AudioLines:Sd,AudioLinesIcon:Sd,AudioWaveform:Nd,AudioWaveformIcon:Nd,Award:na,AwardIcon:na,Axe:Ld,AxeIcon:Ld,Axis3D:rr,Axis3DIcon:rr,Axis3d:rr,Axis3dIcon:rr,Baby:Id,BabyIcon:Id,Backpack:Ad,BackpackIcon:Ad,Badge:Dc,BadgeAlert:Pd,BadgeAlertIcon:Pd,BadgeCent:_d,BadgeCentIcon:_d,BadgeCheck:sr,BadgeCheckIcon:sr,BadgeDollarSign:Rd,BadgeDollarSignIcon:Rd,BadgeEuro:Td,BadgeEuroIcon:Td,BadgeHelp:Dd,BadgeHelpIcon:Dd,BadgeIcon:Dc,BadgeIndianRupee:qd,BadgeIndianRupeeIcon:qd,BadgeInfo:zd,BadgeInfoIcon:zd,BadgeJapaneseYen:Ed,BadgeJapaneseYenIcon:Ed,BadgeMinus:Fd,BadgeMinusIcon:Fd,BadgePercent:Od,BadgePercentIcon:Od,BadgePlus:Hd,BadgePlusIcon:Hd,BadgePoundSterling:Vd,BadgePoundSterlingIcon:Vd,BadgeRussianRuble:Bd,BadgeRussianRubleIcon:Bd,BadgeSwissFranc:$d,BadgeSwissFrancIcon:$d,BadgeX:Ud,BadgeXIcon:Ud,BaggageClaim:Gd,BaggageClaimIcon:Gd,Ban:Wd,BanIcon:Wd,Banana:Zd,BananaIcon:Zd,Bandage:Jd,BandageIcon:Jd,Banknote:Xd,BanknoteIcon:Xd,BarChart:yn,BarChart2:kr,BarChart2Icon:kr,BarChart3:xr,BarChart3Icon:xr,BarChart4:fr,BarChart4Icon:fr,BarChartBig:yr,BarChartBigIcon:yr,BarChartHorizontal:pr,BarChartHorizontalBig:ur,BarChartHorizontalBigIcon:ur,BarChartHorizontalIcon:pr,BarChartIcon:yn,Barcode:Yd,BarcodeIcon:Yd,Baseline:Kd,BaselineIcon:Kd,Bath:Qd,BathIcon:Qd,Battery:s2,BatteryCharging:e2,BatteryChargingIcon:e2,BatteryFull:t2,BatteryFullIcon:t2,BatteryIcon:s2,BatteryLow:a2,BatteryLowIcon:a2,BatteryMedium:n2,BatteryMediumIcon:n2,BatteryWarning:r2,BatteryWarningIcon:r2,Beaker:i2,BeakerIcon:i2,Bean:c2,BeanIcon:c2,BeanOff:o2,BeanOffIcon:o2,Bed:h2,BedDouble:l2,BedDoubleIcon:l2,BedIcon:h2,BedSingle:d2,BedSingleIcon:d2,Beef:u2,BeefIcon:u2,Beer:m2,BeerIcon:m2,BeerOff:p2,BeerOffIcon:p2,Bell:Yo,BellDot:y2,BellDotIcon:y2,BellElectric:f2,BellElectricIcon:f2,BellIcon:Yo,BellMinus:x2,BellMinusIcon:x2,BellOff:g2,BellOffIcon:g2,BellPlus:k2,BellPlusIcon:k2,BellRing:v2,BellRingIcon:v2,BetweenHorizonalEnd:ir,BetweenHorizonalEndIcon:ir,BetweenHorizonalStart:or,BetweenHorizonalStartIcon:or,BetweenHorizontalEnd:ir,BetweenHorizontalEndIcon:ir,BetweenHorizontalStart:or,BetweenHorizontalStartIcon:or,BetweenVerticalEnd:w2,BetweenVerticalEndIcon:w2,BetweenVerticalStart:b2,BetweenVerticalStartIcon:b2,BicepsFlexed:M2,BicepsFlexedIcon:M2,Bike:j2,BikeIcon:j2,Binary:C2,BinaryIcon:C2,Binoculars:S2,BinocularsIcon:S2,Biohazard:N2,BiohazardIcon:N2,Bird:L2,BirdIcon:L2,Bitcoin:I2,BitcoinIcon:I2,Blend:A2,BlendIcon:A2,Blinds:P2,BlindsIcon:P2,Blocks:_2,BlocksIcon:_2,Bluetooth:q2,BluetoothConnected:R2,BluetoothConnectedIcon:R2,BluetoothIcon:q2,BluetoothOff:T2,BluetoothOffIcon:T2,BluetoothSearching:D2,BluetoothSearchingIcon:D2,Bold:z2,BoldIcon:z2,Bolt:E2,BoltIcon:E2,Bomb:F2,BombIcon:F2,Bone:O2,BoneIcon:O2,Book:ch,BookA:H2,BookAIcon:H2,BookAudio:V2,BookAudioIcon:V2,BookCheck:B2,BookCheckIcon:B2,BookCopy:$2,BookCopyIcon:$2,BookDashed:cr,BookDashedIcon:cr,BookDown:U2,BookDownIcon:U2,BookHeadphones:G2,BookHeadphonesIcon:G2,BookHeart:W2,BookHeartIcon:W2,BookIcon:ch,BookImage:Z2,BookImageIcon:Z2,BookKey:J2,BookKeyIcon:J2,BookLock:X2,BookLockIcon:X2,BookMarked:Y2,BookMarkedIcon:Y2,BookMinus:K2,BookMinusIcon:K2,BookOpen:ia,BookOpenCheck:Q2,BookOpenCheckIcon:Q2,BookOpenIcon:ia,BookOpenText:eh,BookOpenTextIcon:eh,BookPlus:th,BookPlusIcon:th,BookTemplate:cr,BookTemplateIcon:cr,BookText:ah,BookTextIcon:ah,BookType:nh,BookTypeIcon:nh,BookUp:sh,BookUp2:rh,BookUp2Icon:rh,BookUpIcon:sh,BookUser:ih,BookUserIcon:ih,BookX:oh,BookXIcon:oh,Bookmark:xa,BookmarkCheck:fa,BookmarkCheckIcon:fa,BookmarkIcon:xa,BookmarkMinus:lh,BookmarkMinusIcon:lh,BookmarkPlus:dh,BookmarkPlusIcon:dh,BookmarkX:hh,BookmarkXIcon:hh,BoomBox:uh,BoomBoxIcon:uh,Bot:qc,BotIcon:qc,BotMessageSquare:ph,BotMessageSquareIcon:ph,BotOff:mh,BotOffIcon:mh,Box:yh,BoxIcon:yh,BoxSelect:ki,BoxSelectIcon:ki,Boxes:fh,BoxesIcon:fh,Braces:lr,BracesIcon:lr,Brackets:xh,BracketsIcon:xh,Brain:vh,BrainCircuit:gh,BrainCircuitIcon:gh,BrainCog:kh,BrainCogIcon:kh,BrainIcon:vh,BrickWall:wh,BrickWallIcon:wh,Briefcase:Ze,BriefcaseBusiness:bh,BriefcaseBusinessIcon:bh,BriefcaseConveyorBelt:Mh,BriefcaseConveyorBeltIcon:Mh,BriefcaseIcon:Ze,BriefcaseMedical:jh,BriefcaseMedicalIcon:jh,BringToFront:Ch,BringToFrontIcon:Ch,Brush:Sh,BrushIcon:Sh,Bug:Ih,BugIcon:Ih,BugOff:Nh,BugOffIcon:Nh,BugPlay:Lh,BugPlayIcon:Lh,Building:Ko,Building2:rt,Building2Icon:rt,BuildingIcon:Ko,Bus:Ph,BusFront:Ah,BusFrontIcon:Ah,BusIcon:Ph,Cable:Rh,CableCar:_h,CableCarIcon:_h,CableIcon:Rh,Cake:Dh,CakeIcon:Dh,CakeSlice:Th,CakeSliceIcon:Th,Calculator:qh,CalculatorIcon:qh,Calendar:xo,CalendarArrowDown:zh,CalendarArrowDownIcon:zh,CalendarArrowUp:Eh,CalendarArrowUpIcon:Eh,CalendarCheck:Oh,CalendarCheck2:Fh,CalendarCheck2Icon:Fh,CalendarCheckIcon:Oh,CalendarClock:Hh,CalendarClockIcon:Hh,CalendarCog:Vh,CalendarCogIcon:Vh,CalendarDays:fo,CalendarDaysIcon:fo,CalendarFold:Bh,CalendarFoldIcon:Bh,CalendarHeart:$h,CalendarHeartIcon:$h,CalendarIcon:xo,CalendarMinus:Gh,CalendarMinus2:Uh,CalendarMinus2Icon:Uh,CalendarMinusIcon:Gh,CalendarOff:Wh,CalendarOffIcon:Wh,CalendarPlus:Jh,CalendarPlus2:Zh,CalendarPlus2Icon:Zh,CalendarPlusIcon:Jh,CalendarRange:Xh,CalendarRangeIcon:Xh,CalendarSearch:Yh,CalendarSearchIcon:Yh,CalendarX:Qh,CalendarX2:Kh,CalendarX2Icon:Kh,CalendarXIcon:Qh,Camera:t0,CameraIcon:t0,CameraOff:e0,CameraOffIcon:e0,CandlestickChart:mr,CandlestickChartIcon:mr,Candy:r0,CandyCane:a0,CandyCaneIcon:a0,CandyIcon:r0,CandyOff:n0,CandyOffIcon:n0,Cannabis:s0,CannabisIcon:s0,Captions:dr,CaptionsIcon:dr,CaptionsOff:i0,CaptionsOffIcon:i0,Car:l0,CarFront:o0,CarFrontIcon:o0,CarIcon:l0,CarTaxiFront:c0,CarTaxiFrontIcon:c0,Caravan:d0,CaravanIcon:d0,Carrot:h0,CarrotIcon:h0,CaseLower:u0,CaseLowerIcon:u0,CaseSensitive:p0,CaseSensitiveIcon:p0,CaseUpper:m0,CaseUpperIcon:m0,CassetteTape:y0,CassetteTapeIcon:y0,Cast:f0,CastIcon:f0,Castle:x0,CastleIcon:x0,Cat:g0,CatIcon:g0,Cctv:k0,CctvIcon:k0,ChartArea:hr,ChartAreaIcon:hr,ChartBar:pr,ChartBarBig:ur,ChartBarBigIcon:ur,ChartBarDecreasing:v0,ChartBarDecreasingIcon:v0,ChartBarIcon:pr,ChartBarIncreasing:w0,ChartBarIncreasingIcon:w0,ChartBarStacked:b0,ChartBarStackedIcon:b0,ChartCandlestick:mr,ChartCandlestickIcon:mr,ChartColumn:xr,ChartColumnBig:yr,ChartColumnBigIcon:yr,ChartColumnDecreasing:M0,ChartColumnDecreasingIcon:M0,ChartColumnIcon:xr,ChartColumnIncreasing:fr,ChartColumnIncreasingIcon:fr,ChartColumnStacked:j0,ChartColumnStackedIcon:j0,ChartGantt:C0,ChartGanttIcon:C0,ChartLine:gr,ChartLineIcon:gr,ChartNetwork:S0,ChartNetworkIcon:S0,ChartNoAxesColumn:kr,ChartNoAxesColumnDecreasing:N0,ChartNoAxesColumnDecreasingIcon:N0,ChartNoAxesColumnIcon:kr,ChartNoAxesColumnIncreasing:yn,ChartNoAxesColumnIncreasingIcon:yn,ChartNoAxesCombined:L0,ChartNoAxesCombinedIcon:L0,ChartNoAxesGantt:vr,ChartNoAxesGanttIcon:vr,ChartPie:wr,ChartPieIcon:wr,ChartScatter:br,ChartScatterIcon:br,ChartSpline:I0,ChartSplineIcon:I0,Check:Qo,CheckCheck:A0,CheckCheckIcon:A0,CheckCircle:Vt,CheckCircle2:tt,CheckCircle2Icon:tt,CheckCircleIcon:Vt,CheckIcon:Qo,CheckSquare:di,CheckSquare2:hi,CheckSquare2Icon:hi,CheckSquareIcon:di,ChefHat:P0,ChefHatIcon:P0,Cherry:_0,CherryIcon:_0,ChevronDown:wn,ChevronDownCircle:Pr,ChevronDownCircleIcon:Pr,ChevronDownIcon:wn,ChevronDownSquare:ui,ChevronDownSquareIcon:ui,ChevronFirst:R0,ChevronFirstIcon:R0,ChevronLast:T0,ChevronLastIcon:T0,ChevronLeft:bn,ChevronLeftCircle:_r,ChevronLeftCircleIcon:_r,ChevronLeftIcon:bn,ChevronLeftSquare:pi,ChevronLeftSquareIcon:pi,ChevronRight:Mn,ChevronRightCircle:Rr,ChevronRightCircleIcon:Rr,ChevronRightIcon:Mn,ChevronRightSquare:mi,ChevronRightSquareIcon:mi,ChevronUp:ec,ChevronUpCircle:Tr,ChevronUpCircleIcon:Tr,ChevronUpIcon:ec,ChevronUpSquare:yi,ChevronUpSquareIcon:yi,ChevronsDown:q0,ChevronsDownIcon:q0,ChevronsDownUp:D0,ChevronsDownUpIcon:D0,ChevronsLeft:F0,ChevronsLeftIcon:F0,ChevronsLeftRight:E0,ChevronsLeftRightEllipsis:z0,ChevronsLeftRightEllipsisIcon:z0,ChevronsLeftRightIcon:E0,ChevronsRight:H0,ChevronsRightIcon:H0,ChevronsRightLeft:O0,ChevronsRightLeftIcon:O0,ChevronsUp:B0,ChevronsUpDown:V0,ChevronsUpDownIcon:V0,ChevronsUpIcon:B0,Chrome:$0,ChromeIcon:$0,Church:U0,ChurchIcon:U0,Cigarette:W0,CigaretteIcon:W0,CigaretteOff:G0,CigaretteOffIcon:G0,Circle:ru,CircleAlert:Ht,CircleAlertIcon:Ht,CircleArrowDown:Mr,CircleArrowDownIcon:Mr,CircleArrowLeft:jr,CircleArrowLeftIcon:jr,CircleArrowOutDownLeft:Cr,CircleArrowOutDownLeftIcon:Cr,CircleArrowOutDownRight:Sr,CircleArrowOutDownRightIcon:Sr,CircleArrowOutUpLeft:Nr,CircleArrowOutUpLeftIcon:Nr,CircleArrowOutUpRight:Lr,CircleArrowOutUpRightIcon:Lr,CircleArrowRight:Ir,CircleArrowRightIcon:Ir,CircleArrowUp:Ar,CircleArrowUpIcon:Ar,CircleCheck:tt,CircleCheckBig:Vt,CircleCheckBigIcon:Vt,CircleCheckIcon:tt,CircleChevronDown:Pr,CircleChevronDownIcon:Pr,CircleChevronLeft:_r,CircleChevronLeftIcon:_r,CircleChevronRight:Rr,CircleChevronRightIcon:Rr,CircleChevronUp:Tr,CircleChevronUpIcon:Tr,CircleDashed:Z0,CircleDashedIcon:Z0,CircleDivide:Dr,CircleDivideIcon:Dr,CircleDollarSign:J0,CircleDollarSignIcon:J0,CircleDot:Y0,CircleDotDashed:X0,CircleDotDashedIcon:X0,CircleDotIcon:Y0,CircleEllipsis:K0,CircleEllipsisIcon:K0,CircleEqual:Q0,CircleEqualIcon:Q0,CircleFadingArrowUp:eu,CircleFadingArrowUpIcon:eu,CircleFadingPlus:tu,CircleFadingPlusIcon:tu,CircleGauge:qr,CircleGaugeIcon:qr,CircleHelp:fn,CircleHelpIcon:fn,CircleIcon:ru,CircleMinus:zr,CircleMinusIcon:zr,CircleOff:au,CircleOffIcon:au,CircleParking:Fr,CircleParkingIcon:Fr,CircleParkingOff:Er,CircleParkingOffIcon:Er,CirclePause:Or,CirclePauseIcon:Or,CirclePercent:Hr,CirclePercentIcon:Hr,CirclePlay:Vr,CirclePlayIcon:Vr,CirclePlus:Br,CirclePlusIcon:Br,CirclePower:$r,CirclePowerIcon:$r,CircleSlash:nu,CircleSlash2:Ur,CircleSlash2Icon:Ur,CircleSlashIcon:nu,CircleSlashed:Ur,CircleSlashedIcon:Ur,CircleStop:Gr,CircleStopIcon:Gr,CircleUser:Zr,CircleUserIcon:Zr,CircleUserRound:Wr,CircleUserRoundIcon:Wr,CircleX:ja,CircleXIcon:ja,CircuitBoard:su,CircuitBoardIcon:su,Citrus:iu,CitrusIcon:iu,Clapperboard:ou,ClapperboardIcon:ou,Clipboard:fu,ClipboardCheck:cu,ClipboardCheckIcon:cu,ClipboardCopy:lu,ClipboardCopyIcon:lu,ClipboardEdit:Xr,ClipboardEditIcon:Xr,ClipboardIcon:fu,ClipboardList:du,ClipboardListIcon:du,ClipboardMinus:hu,ClipboardMinusIcon:hu,ClipboardPaste:uu,ClipboardPasteIcon:uu,ClipboardPen:Xr,ClipboardPenIcon:Xr,ClipboardPenLine:Jr,ClipboardPenLineIcon:Jr,ClipboardPlus:pu,ClipboardPlusIcon:pu,ClipboardSignature:Jr,ClipboardSignatureIcon:Jr,ClipboardType:mu,ClipboardTypeIcon:mu,ClipboardX:yu,ClipboardXIcon:yu,Clock:ga,Clock1:xu,Clock10:gu,Clock10Icon:gu,Clock11:ku,Clock11Icon:ku,Clock12:vu,Clock12Icon:vu,Clock1Icon:xu,Clock2:wu,Clock2Icon:wu,Clock3:bu,Clock3Icon:bu,Clock4:Mu,Clock4Icon:Mu,Clock5:ju,Clock5Icon:ju,Clock6:Cu,Clock6Icon:Cu,Clock7:Su,Clock7Icon:Su,Clock8:Nu,Clock8Icon:Nu,Clock9:Lu,Clock9Icon:Lu,ClockAlert:Iu,ClockAlertIcon:Iu,ClockArrowDown:Au,ClockArrowDownIcon:Au,ClockArrowUp:Pu,ClockArrowUpIcon:Pu,ClockIcon:ga,Cloud:Uu,CloudCog:_u,CloudCogIcon:_u,CloudDownload:Yr,CloudDownloadIcon:Yr,CloudDrizzle:Ru,CloudDrizzleIcon:Ru,CloudFog:Tu,CloudFogIcon:Tu,CloudHail:Du,CloudHailIcon:Du,CloudIcon:Uu,CloudLightning:qu,CloudLightningIcon:qu,CloudMoon:Eu,CloudMoonIcon:Eu,CloudMoonRain:zu,CloudMoonRainIcon:zu,CloudOff:Fu,CloudOffIcon:Fu,CloudRain:Hu,CloudRainIcon:Hu,CloudRainWind:Ou,CloudRainWindIcon:Ou,CloudSnow:Vu,CloudSnowIcon:Vu,CloudSun:$u,CloudSunIcon:$u,CloudSunRain:Bu,CloudSunRainIcon:Bu,CloudUpload:xn,CloudUploadIcon:xn,Cloudy:Gu,CloudyIcon:Gu,Clover:Wu,CloverIcon:Wu,Club:Zu,ClubIcon:Zu,Code:Ju,Code2:Kr,Code2Icon:Kr,CodeIcon:Ju,CodeSquare:fi,CodeSquareIcon:fi,CodeXml:Kr,CodeXmlIcon:Kr,Codepen:Xu,CodepenIcon:Xu,Codesandbox:Yu,CodesandboxIcon:Yu,Coffee:Ku,CoffeeIcon:Ku,Cog:Qu,CogIcon:Qu,Coins:ep,CoinsIcon:ep,Columns:Qr,Columns2:Qr,Columns2Icon:Qr,Columns3:es,Columns3Icon:es,Columns4:tp,Columns4Icon:tp,ColumnsIcon:Qr,Combine:ap,CombineIcon:ap,Command:np,CommandIcon:np,Compass:rp,CompassIcon:rp,Component:sp,ComponentIcon:sp,Computer:ip,ComputerIcon:ip,ConciergeBell:op,ConciergeBellIcon:op,Cone:cp,ConeIcon:cp,Construction:lp,ConstructionIcon:lp,Contact:dp,Contact2:ts,Contact2Icon:ts,ContactIcon:dp,ContactRound:ts,ContactRoundIcon:ts,Container:hp,ContainerIcon:hp,Contrast:up,ContrastIcon:up,Cookie:pp,CookieIcon:pp,CookingPot:mp,CookingPotIcon:mp,Copy:vp,CopyCheck:yp,CopyCheckIcon:yp,CopyIcon:vp,CopyMinus:fp,CopyMinusIcon:fp,CopyPlus:xp,CopyPlusIcon:xp,CopySlash:gp,CopySlashIcon:gp,CopyX:kp,CopyXIcon:kp,Copyleft:wp,CopyleftIcon:wp,Copyright:bp,CopyrightIcon:bp,CornerDownLeft:Mp,CornerDownLeftIcon:Mp,CornerDownRight:jp,CornerDownRightIcon:jp,CornerLeftDown:Cp,CornerLeftDownIcon:Cp,CornerLeftUp:Sp,CornerLeftUpIcon:Sp,CornerRightDown:Np,CornerRightDownIcon:Np,CornerRightUp:Lp,CornerRightUpIcon:Lp,CornerUpLeft:Ip,CornerUpLeftIcon:Ip,CornerUpRight:Ap,CornerUpRightIcon:Ap,Cpu:Pp,CpuIcon:Pp,CreativeCommons:_p,CreativeCommonsIcon:_p,CreditCard:zc,CreditCardIcon:zc,Croissant:Rp,CroissantIcon:Rp,Crop:Tp,CropIcon:Tp,Cross:Dp,CrossIcon:Dp,Crosshair:qp,CrosshairIcon:qp,Crown:zp,CrownIcon:zp,Cuboid:Ep,CuboidIcon:Ep,CupSoda:Fp,CupSodaIcon:Fp,CurlyBraces:lr,CurlyBracesIcon:lr,Currency:Op,CurrencyIcon:Op,Cylinder:Hp,CylinderIcon:Hp,Dam:Vp,DamIcon:Vp,Database:Up,DatabaseBackup:Bp,DatabaseBackupIcon:Bp,DatabaseIcon:Up,DatabaseZap:$p,DatabaseZapIcon:$p,Delete:Gp,DeleteIcon:Gp,Dessert:Wp,DessertIcon:Wp,Diameter:Zp,DiameterIcon:Zp,Diamond:Yp,DiamondIcon:Yp,DiamondMinus:Jp,DiamondMinusIcon:Jp,DiamondPercent:as,DiamondPercentIcon:as,DiamondPlus:Xp,DiamondPlusIcon:Xp,Dice1:Kp,Dice1Icon:Kp,Dice2:Qp,Dice2Icon:Qp,Dice3:em,Dice3Icon:em,Dice4:tm,Dice4Icon:tm,Dice5:am,Dice5Icon:am,Dice6:nm,Dice6Icon:nm,Dices:rm,DicesIcon:rm,Diff:sm,DiffIcon:sm,Disc:lm,Disc2:im,Disc2Icon:im,Disc3:om,Disc3Icon:om,DiscAlbum:cm,DiscAlbumIcon:cm,DiscIcon:lm,Divide:dm,DivideCircle:Dr,DivideCircleIcon:Dr,DivideIcon:dm,DivideSquare:vi,DivideSquareIcon:vi,Dna:um,DnaIcon:um,DnaOff:hm,DnaOffIcon:hm,Dock:pm,DockIcon:pm,Dog:mm,DogIcon:mm,DollarSign:Ec,DollarSignIcon:Ec,Donut:ym,DonutIcon:ym,DoorClosed:fm,DoorClosedIcon:fm,DoorOpen:xm,DoorOpenIcon:xm,Dot:gm,DotIcon:gm,DotSquare:wi,DotSquareIcon:wi,Download:Fc,DownloadCloud:Yr,DownloadCloudIcon:Yr,DownloadIcon:Fc,DraftingCompass:km,DraftingCompassIcon:km,Drama:vm,DramaIcon:vm,Dribbble:wm,DribbbleIcon:wm,Drill:bm,DrillIcon:bm,Droplet:Mm,DropletIcon:Mm,Droplets:jm,DropletsIcon:jm,Drum:Cm,DrumIcon:Cm,Drumstick:Sm,DrumstickIcon:Sm,Dumbbell:Nm,DumbbellIcon:Nm,Ear:Im,EarIcon:Im,EarOff:Lm,EarOffIcon:Lm,Earth:ns,EarthIcon:ns,EarthLock:Am,EarthLockIcon:Am,Eclipse:Pm,EclipseIcon:Pm,Edit:Ft,Edit2:Hs,Edit2Icon:Hs,Edit3:Os,Edit3Icon:Os,EditIcon:Ft,Egg:Tm,EggFried:_m,EggFriedIcon:_m,EggIcon:Tm,EggOff:Rm,EggOffIcon:Rm,Ellipsis:ss,EllipsisIcon:ss,EllipsisVertical:rs,EllipsisVerticalIcon:rs,Equal:qm,EqualIcon:qm,EqualNot:Dm,EqualNotIcon:Dm,EqualSquare:bi,EqualSquareIcon:bi,Eraser:zm,EraserIcon:zm,EthernetPort:Em,EthernetPortIcon:Em,Euro:Fm,EuroIcon:Fm,Expand:Om,ExpandIcon:Om,ExternalLink:go,ExternalLinkIcon:go,Eye:tc,EyeClosed:Hm,EyeClosedIcon:Hm,EyeIcon:tc,EyeOff:Oc,EyeOffIcon:Oc,Facebook:Vm,FacebookIcon:Vm,Factory:Bm,FactoryIcon:Bm,Fan:$m,FanIcon:$m,FastForward:Um,FastForwardIcon:Um,Feather:Gm,FeatherIcon:Gm,Fence:Wm,FenceIcon:Wm,FerrisWheel:Zm,FerrisWheelIcon:Zm,Figma:Jm,FigmaIcon:Jm,File:Uy,FileArchive:Xm,FileArchiveIcon:Xm,FileAudio:Km,FileAudio2:Ym,FileAudio2Icon:Ym,FileAudioIcon:Km,FileAxis3D:is,FileAxis3DIcon:is,FileAxis3d:is,FileAxis3dIcon:is,FileBadge:ey,FileBadge2:Qm,FileBadge2Icon:Qm,FileBadgeIcon:ey,FileBarChart:os,FileBarChart2:cs,FileBarChart2Icon:cs,FileBarChartIcon:os,FileBox:ty,FileBoxIcon:ty,FileChartColumn:cs,FileChartColumnIcon:cs,FileChartColumnIncreasing:os,FileChartColumnIncreasingIcon:os,FileChartLine:ls,FileChartLineIcon:ls,FileChartPie:ds,FileChartPieIcon:ds,FileCheck:ny,FileCheck2:ay,FileCheck2Icon:ay,FileCheckIcon:ny,FileClock:ry,FileClockIcon:ry,FileCode:iy,FileCode2:sy,FileCode2Icon:sy,FileCodeIcon:iy,FileCog:hs,FileCog2:hs,FileCog2Icon:hs,FileCogIcon:hs,FileDiff:oy,FileDiffIcon:oy,FileDigit:cy,FileDigitIcon:cy,FileDown:ly,FileDownIcon:ly,FileEdit:ps,FileEditIcon:ps,FileHeart:dy,FileHeartIcon:dy,FileIcon:Uy,FileImage:hy,FileImageIcon:hy,FileInput:uy,FileInputIcon:uy,FileJson:my,FileJson2:py,FileJson2Icon:py,FileJsonIcon:my,FileKey:fy,FileKey2:yy,FileKey2Icon:yy,FileKeyIcon:fy,FileLineChart:ls,FileLineChartIcon:ls,FileLock:gy,FileLock2:xy,FileLock2Icon:xy,FileLockIcon:gy,FileMinus:vy,FileMinus2:ky,FileMinus2Icon:ky,FileMinusIcon:vy,FileMusic:wy,FileMusicIcon:wy,FileOutput:by,FileOutputIcon:by,FilePen:ps,FilePenIcon:ps,FilePenLine:us,FilePenLineIcon:us,FilePieChart:ds,FilePieChartIcon:ds,FilePlus:jy,FilePlus2:My,FilePlus2Icon:My,FilePlusIcon:jy,FileQuestion:Cy,FileQuestionIcon:Cy,FileScan:Sy,FileScanIcon:Sy,FileSearch:Ly,FileSearch2:Ny,FileSearch2Icon:Ny,FileSearchIcon:Ly,FileSignature:us,FileSignatureIcon:us,FileSliders:Iy,FileSlidersIcon:Iy,FileSpreadsheet:Ay,FileSpreadsheetIcon:Ay,FileStack:Py,FileStackIcon:Py,FileSymlink:_y,FileSymlinkIcon:_y,FileTerminal:Ry,FileTerminalIcon:Ry,FileText:jn,FileTextIcon:jn,FileType:Dy,FileType2:Ty,FileType2Icon:Ty,FileTypeIcon:Dy,FileUp:qy,FileUpIcon:qy,FileUser:zy,FileUserIcon:zy,FileVideo:Fy,FileVideo2:Ey,FileVideo2Icon:Ey,FileVideoIcon:Fy,FileVolume:Hy,FileVolume2:Oy,FileVolume2Icon:Oy,FileVolumeIcon:Hy,FileWarning:Vy,FileWarningIcon:Vy,FileX:$y,FileX2:By,FileX2Icon:By,FileXIcon:$y,Files:Gy,FilesIcon:Gy,Film:Wy,FilmIcon:Wy,Filter:Cn,FilterIcon:Cn,FilterX:Zy,FilterXIcon:Zy,Fingerprint:Jy,FingerprintIcon:Jy,FireExtinguisher:Xy,FireExtinguisherIcon:Xy,Fish:Qy,FishIcon:Qy,FishOff:Yy,FishOffIcon:Yy,FishSymbol:Ky,FishSymbolIcon:Ky,Flag:Hc,FlagIcon:Hc,FlagOff:ef,FlagOffIcon:ef,FlagTriangleLeft:tf,FlagTriangleLeftIcon:tf,FlagTriangleRight:af,FlagTriangleRightIcon:af,Flame:rf,FlameIcon:rf,FlameKindling:nf,FlameKindlingIcon:nf,Flashlight:of,FlashlightIcon:of,FlashlightOff:sf,FlashlightOffIcon:sf,FlaskConical:lf,FlaskConicalIcon:lf,FlaskConicalOff:cf,FlaskConicalOffIcon:cf,FlaskRound:df,FlaskRoundIcon:df,FlipHorizontal:uf,FlipHorizontal2:hf,FlipHorizontal2Icon:hf,FlipHorizontalIcon:uf,FlipVertical:mf,FlipVertical2:pf,FlipVertical2Icon:pf,FlipVerticalIcon:mf,Flower:ff,Flower2:yf,Flower2Icon:yf,FlowerIcon:ff,Focus:xf,FocusIcon:xf,FoldHorizontal:gf,FoldHorizontalIcon:gf,FoldVertical:kf,FoldVerticalIcon:kf,Folder:Wf,FolderArchive:vf,FolderArchiveIcon:vf,FolderCheck:wf,FolderCheckIcon:wf,FolderClock:bf,FolderClockIcon:bf,FolderClosed:Mf,FolderClosedIcon:Mf,FolderCode:jf,FolderCodeIcon:jf,FolderCog:ms,FolderCog2:ms,FolderCog2Icon:ms,FolderCogIcon:ms,FolderDot:Cf,FolderDotIcon:Cf,FolderDown:Sf,FolderDownIcon:Sf,FolderEdit:ys,FolderEditIcon:ys,FolderGit:Lf,FolderGit2:Nf,FolderGit2Icon:Nf,FolderGitIcon:Lf,FolderHeart:If,FolderHeartIcon:If,FolderIcon:Wf,FolderInput:Af,FolderInputIcon:Af,FolderKanban:Pf,FolderKanbanIcon:Pf,FolderKey:_f,FolderKeyIcon:_f,FolderLock:Rf,FolderLockIcon:Rf,FolderMinus:Tf,FolderMinusIcon:Tf,FolderOpen:qf,FolderOpenDot:Df,FolderOpenDotIcon:Df,FolderOpenIcon:qf,FolderOutput:zf,FolderOutputIcon:zf,FolderPen:ys,FolderPenIcon:ys,FolderPlus:Ef,FolderPlusIcon:Ef,FolderRoot:Ff,FolderRootIcon:Ff,FolderSearch:Hf,FolderSearch2:Of,FolderSearch2Icon:Of,FolderSearchIcon:Hf,FolderSymlink:Vf,FolderSymlinkIcon:Vf,FolderSync:Bf,FolderSyncIcon:Bf,FolderTree:$f,FolderTreeIcon:$f,FolderUp:Uf,FolderUpIcon:Uf,FolderX:Gf,FolderXIcon:Gf,Folders:Zf,FoldersIcon:Zf,Footprints:Jf,FootprintsIcon:Jf,ForkKnife:co,ForkKnifeCrossed:oo,ForkKnifeCrossedIcon:oo,ForkKnifeIcon:co,Forklift:Xf,ForkliftIcon:Xf,FormInput:Bs,FormInputIcon:Bs,Forward:Yf,ForwardIcon:Yf,Frame:Kf,FrameIcon:Kf,Framer:Qf,FramerIcon:Qf,Frown:ex,FrownIcon:ex,Fuel:tx,FuelIcon:tx,Fullscreen:ax,FullscreenIcon:ax,FunctionSquare:Mi,FunctionSquareIcon:Mi,GalleryHorizontal:rx,GalleryHorizontalEnd:nx,GalleryHorizontalEndIcon:nx,GalleryHorizontalIcon:rx,GalleryThumbnails:sx,GalleryThumbnailsIcon:sx,GalleryVertical:ox,GalleryVerticalEnd:ix,GalleryVerticalEndIcon:ix,GalleryVerticalIcon:ox,Gamepad:cx,Gamepad2:Vc,Gamepad2Icon:Vc,GamepadIcon:cx,GanttChart:vr,GanttChartIcon:vr,GanttChartSquare:ba,GanttChartSquareIcon:ba,Gauge:lx,GaugeCircle:qr,GaugeCircleIcon:qr,GaugeIcon:lx,Gavel:dx,GavelIcon:dx,Gem:hx,GemIcon:hx,Ghost:ux,GhostIcon:ux,Gift:px,GiftIcon:px,GitBranch:yx,GitBranchIcon:yx,GitBranchPlus:mx,GitBranchPlusIcon:mx,GitCommit:fs,GitCommitHorizontal:fs,GitCommitHorizontalIcon:fs,GitCommitIcon:fs,GitCommitVertical:fx,GitCommitVerticalIcon:fx,GitCompare:gx,GitCompareArrows:xx,GitCompareArrowsIcon:xx,GitCompareIcon:gx,GitFork:kx,GitForkIcon:kx,GitGraph:vx,GitGraphIcon:vx,GitMerge:wx,GitMergeIcon:wx,GitPullRequest:Nx,GitPullRequestArrow:bx,GitPullRequestArrowIcon:bx,GitPullRequestClosed:Mx,GitPullRequestClosedIcon:Mx,GitPullRequestCreate:Cx,GitPullRequestCreateArrow:jx,GitPullRequestCreateArrowIcon:jx,GitPullRequestCreateIcon:Cx,GitPullRequestDraft:Sx,GitPullRequestDraftIcon:Sx,GitPullRequestIcon:Nx,Github:Lx,GithubIcon:Lx,Gitlab:Ix,GitlabIcon:Ix,GlassWater:Ax,GlassWaterIcon:Ax,Glasses:Px,GlassesIcon:Px,Globe:oa,Globe2:ns,Globe2Icon:ns,GlobeIcon:oa,GlobeLock:_x,GlobeLockIcon:_x,Goal:Rx,GoalIcon:Rx,Grab:Tx,GrabIcon:Tx,GraduationCap:Sn,GraduationCapIcon:Sn,Grape:Dx,GrapeIcon:Dx,Grid:ma,Grid2X2:xs,Grid2X2Icon:xs,Grid2x2:xs,Grid2x2Check:qx,Grid2x2CheckIcon:qx,Grid2x2Icon:xs,Grid2x2Plus:zx,Grid2x2PlusIcon:zx,Grid2x2X:Ex,Grid2x2XIcon:Ex,Grid3X3:ma,Grid3X3Icon:ma,Grid3x3:ma,Grid3x3Icon:ma,GridIcon:ma,Grip:Hx,GripHorizontal:Fx,GripHorizontalIcon:Fx,GripIcon:Hx,GripVertical:Ox,GripVerticalIcon:Ox,Group:Vx,GroupIcon:Vx,Guitar:Bx,GuitarIcon:Bx,Ham:$x,HamIcon:$x,Hammer:Ux,HammerIcon:Ux,Hand:Xx,HandCoins:Gx,HandCoinsIcon:Gx,HandHeart:Wx,HandHeartIcon:Wx,HandHelping:gs,HandHelpingIcon:gs,HandIcon:Xx,HandMetal:Zx,HandMetalIcon:Zx,HandPlatter:Jx,HandPlatterIcon:Jx,Handshake:Yx,HandshakeIcon:Yx,HardDrive:eg,HardDriveDownload:Kx,HardDriveDownloadIcon:Kx,HardDriveIcon:eg,HardDriveUpload:Qx,HardDriveUploadIcon:Qx,HardHat:tg,HardHatIcon:tg,Hash:ag,HashIcon:ag,Haze:ng,HazeIcon:ng,HdmiPort:rg,HdmiPortIcon:rg,Heading:hg,Heading1:sg,Heading1Icon:sg,Heading2:ig,Heading2Icon:ig,Heading3:og,Heading3Icon:og,Heading4:cg,Heading4Icon:cg,Heading5:lg,Heading5Icon:lg,Heading6:dg,Heading6Icon:dg,HeadingIcon:hg,HeadphoneOff:ug,HeadphoneOffIcon:ug,Headphones:pg,HeadphonesIcon:pg,Headset:mg,HeadsetIcon:mg,Heart:Nn,HeartCrack:yg,HeartCrackIcon:yg,HeartHandshake:fg,HeartHandshakeIcon:fg,HeartIcon:Nn,HeartOff:xg,HeartOffIcon:xg,HeartPulse:gg,HeartPulseIcon:gg,Heater:kg,HeaterIcon:kg,HelpCircle:fn,HelpCircleIcon:fn,HelpingHand:gs,HelpingHandIcon:gs,Hexagon:vg,HexagonIcon:vg,Highlighter:wg,HighlighterIcon:wg,History:bg,HistoryIcon:bg,Home:Ua,HomeIcon:Ua,Hop:jg,HopIcon:jg,HopOff:Mg,HopOffIcon:Mg,Hospital:Cg,HospitalIcon:Cg,Hotel:Sg,HotelIcon:Sg,Hourglass:Ng,HourglassIcon:Ng,House:Ua,HouseIcon:Ua,HousePlug:Lg,HousePlugIcon:Lg,HousePlus:Ig,HousePlusIcon:Ig,IceCream:vs,IceCream2:ks,IceCream2Icon:ks,IceCreamBowl:ks,IceCreamBowlIcon:ks,IceCreamCone:vs,IceCreamConeIcon:vs,IceCreamIcon:vs,Icon:JL,IdCard:Ag,IdCardIcon:Ag,Image:zg,ImageDown:Pg,ImageDownIcon:Pg,ImageIcon:zg,ImageMinus:_g,ImageMinusIcon:_g,ImageOff:Rg,ImageOffIcon:Rg,ImagePlay:Tg,ImagePlayIcon:Tg,ImagePlus:Dg,ImagePlusIcon:Dg,ImageUp:qg,ImageUpIcon:qg,Images:Eg,ImagesIcon:Eg,Import:Fg,ImportIcon:Fg,Inbox:Og,InboxIcon:Og,Indent:bs,IndentDecrease:ws,IndentDecreaseIcon:ws,IndentIcon:bs,IndentIncrease:bs,IndentIncreaseIcon:bs,IndianRupee:Hg,IndianRupeeIcon:Hg,Infinity:Vg,InfinityIcon:Vg,Info:Bg,InfoIcon:Bg,Inspect:Ii,InspectIcon:Ii,InspectionPanel:$g,InspectionPanelIcon:$g,Instagram:Ug,InstagramIcon:Ug,Italic:Gg,ItalicIcon:Gg,IterationCcw:Wg,IterationCcwIcon:Wg,IterationCw:Zg,IterationCwIcon:Zg,JapaneseYen:Jg,JapaneseYenIcon:Jg,Joystick:Xg,JoystickIcon:Xg,Kanban:Yg,KanbanIcon:Yg,KanbanSquare:ji,KanbanSquareDashed:xi,KanbanSquareDashedIcon:xi,KanbanSquareIcon:ji,Key:e4,KeyIcon:e4,KeyRound:Kg,KeyRoundIcon:Kg,KeySquare:Qg,KeySquareIcon:Qg,Keyboard:n4,KeyboardIcon:n4,KeyboardMusic:t4,KeyboardMusicIcon:t4,KeyboardOff:a4,KeyboardOffIcon:a4,Lamp:l4,LampCeiling:r4,LampCeilingIcon:r4,LampDesk:s4,LampDeskIcon:s4,LampFloor:i4,LampFloorIcon:i4,LampIcon:l4,LampWallDown:o4,LampWallDownIcon:o4,LampWallUp:c4,LampWallUpIcon:c4,LandPlot:d4,LandPlotIcon:d4,Landmark:h4,LandmarkIcon:h4,Languages:Bc,LanguagesIcon:Bc,Laptop:u4,Laptop2:Ms,Laptop2Icon:Ms,LaptopIcon:u4,LaptopMinimal:Ms,LaptopMinimalIcon:Ms,Lasso:m4,LassoIcon:m4,LassoSelect:p4,LassoSelectIcon:p4,Laugh:y4,LaughIcon:y4,Layers:g4,Layers2:f4,Layers2Icon:f4,Layers3:x4,Layers3Icon:x4,LayersIcon:g4,Layout:Fs,LayoutDashboard:$c,LayoutDashboardIcon:$c,LayoutGrid:k4,LayoutGridIcon:k4,LayoutIcon:Fs,LayoutList:v4,LayoutListIcon:v4,LayoutPanelLeft:w4,LayoutPanelLeftIcon:w4,LayoutPanelTop:b4,LayoutPanelTopIcon:b4,LayoutTemplate:M4,LayoutTemplateIcon:M4,Leaf:j4,LeafIcon:j4,LeafyGreen:C4,LeafyGreenIcon:C4,Lectern:S4,LecternIcon:S4,LetterText:N4,LetterTextIcon:N4,Library:I4,LibraryBig:L4,LibraryBigIcon:L4,LibraryIcon:I4,LibrarySquare:Ci,LibrarySquareIcon:Ci,LifeBuoy:A4,LifeBuoyIcon:A4,Ligature:P4,LigatureIcon:P4,Lightbulb:R4,LightbulbIcon:R4,LightbulbOff:_4,LightbulbOffIcon:_4,LineChart:gr,LineChartIcon:gr,Link:Uc,Link2:D4,Link2Icon:D4,Link2Off:T4,Link2OffIcon:T4,LinkIcon:Uc,Linkedin:Gc,LinkedinIcon:Gc,List:Wc,ListCheck:q4,ListCheckIcon:q4,ListChecks:z4,ListChecksIcon:z4,ListCollapse:E4,ListCollapseIcon:E4,ListEnd:F4,ListEndIcon:F4,ListFilter:O4,ListFilterIcon:O4,ListIcon:Wc,ListMinus:H4,ListMinusIcon:H4,ListMusic:V4,ListMusicIcon:V4,ListOrdered:B4,ListOrderedIcon:B4,ListPlus:$4,ListPlusIcon:$4,ListRestart:U4,ListRestartIcon:U4,ListStart:G4,ListStartIcon:G4,ListTodo:W4,ListTodoIcon:W4,ListTree:Z4,ListTreeIcon:Z4,ListVideo:J4,ListVideoIcon:J4,ListX:X4,ListXIcon:X4,Loader:K4,Loader2:at,Loader2Icon:at,LoaderCircle:at,LoaderCircleIcon:at,LoaderIcon:K4,LoaderPinwheel:Y4,LoaderPinwheelIcon:Y4,Locate:tk,LocateFixed:Q4,LocateFixedIcon:Q4,LocateIcon:tk,LocateOff:ek,LocateOffIcon:ek,Lock:ko,LockIcon:ko,LockKeyhole:ak,LockKeyholeIcon:ak,LockKeyholeOpen:js,LockKeyholeOpenIcon:js,LockOpen:Cs,LockOpenIcon:Cs,LogIn:nk,LogInIcon:nk,LogOut:Zc,LogOutIcon:Zc,Logs:rk,LogsIcon:rk,Lollipop:sk,LollipopIcon:sk,LucideAArrowDown:Vl,LucideAArrowUp:Bl,LucideALargeSmall:$l,LucideAccessibility:Ul,LucideActivity:Gl,LucideActivitySquare:Ys,LucideAirVent:Wl,LucideAirplay:Zl,LucideAlarmCheck:Jn,LucideAlarmClock:Xl,LucideAlarmClockCheck:Jn,LucideAlarmClockMinus:Xn,LucideAlarmClockOff:Jl,LucideAlarmClockPlus:Yn,LucideAlarmMinus:Xn,LucideAlarmPlus:Yn,LucideAlarmSmoke:Yl,LucideAlbum:Kl,LucideAlertCircle:Ht,LucideAlertOctagon:Ls,LucideAlertTriangle:Yi,LucideAlignCenter:t1,LucideAlignCenterHorizontal:Ql,LucideAlignCenterVertical:e1,LucideAlignEndHorizontal:a1,LucideAlignEndVertical:n1,LucideAlignHorizontalDistributeCenter:r1,LucideAlignHorizontalDistributeEnd:s1,LucideAlignHorizontalDistributeStart:i1,LucideAlignHorizontalJustifyCenter:o1,LucideAlignHorizontalJustifyEnd:c1,LucideAlignHorizontalJustifyStart:l1,LucideAlignHorizontalSpaceAround:d1,LucideAlignHorizontalSpaceBetween:h1,LucideAlignJustify:u1,LucideAlignLeft:p1,LucideAlignRight:m1,LucideAlignStartHorizontal:y1,LucideAlignStartVertical:f1,LucideAlignVerticalDistributeCenter:x1,LucideAlignVerticalDistributeEnd:g1,LucideAlignVerticalDistributeStart:k1,LucideAlignVerticalJustifyCenter:v1,LucideAlignVerticalJustifyEnd:w1,LucideAlignVerticalJustifyStart:b1,LucideAlignVerticalSpaceAround:M1,LucideAlignVerticalSpaceBetween:j1,LucideAmbulance:C1,LucideAmpersand:S1,LucideAmpersands:N1,LucideAmphora:L1,LucideAnchor:I1,LucideAngry:A1,LucideAnnoyed:P1,LucideAntenna:_1,LucideAnvil:R1,LucideAperture:T1,LucideAppWindow:q1,LucideAppWindowMac:D1,LucideApple:z1,LucideArchive:O1,LucideArchiveRestore:E1,LucideArchiveX:F1,LucideAreaChart:hr,LucideArmchair:H1,LucideArrowBigDown:B1,LucideArrowBigDownDash:V1,LucideArrowBigLeft:U1,LucideArrowBigLeftDash:$1,LucideArrowBigRight:W1,LucideArrowBigRightDash:G1,LucideArrowBigUp:J1,LucideArrowBigUpDash:Z1,LucideArrowDown:sd,LucideArrowDown01:X1,LucideArrowDown10:Y1,LucideArrowDownAZ:Kn,LucideArrowDownAz:Kn,LucideArrowDownCircle:Mr,LucideArrowDownFromLine:K1,LucideArrowDownLeft:Q1,LucideArrowDownLeftFromCircle:Cr,LucideArrowDownLeftFromSquare:ti,LucideArrowDownLeftSquare:Ks,LucideArrowDownNarrowWide:ed,LucideArrowDownRight:td,LucideArrowDownRightFromCircle:Sr,LucideArrowDownRightFromSquare:ai,LucideArrowDownRightSquare:Qs,LucideArrowDownSquare:ei,LucideArrowDownToDot:ad,LucideArrowDownToLine:nd,LucideArrowDownUp:rd,LucideArrowDownWideNarrow:Qn,LucideArrowDownZA:er,LucideArrowDownZa:er,LucideArrowLeft:Ja,LucideArrowLeftCircle:jr,LucideArrowLeftFromLine:id,LucideArrowLeftRight:od,LucideArrowLeftSquare:Ga,LucideArrowLeftToLine:cd,LucideArrowRight:yo,LucideArrowRightCircle:Ir,LucideArrowRightFromLine:ld,LucideArrowRightLeft:dd,LucideArrowRightSquare:Wa,LucideArrowRightToLine:hd,LucideArrowUp:wd,LucideArrowUp01:ud,LucideArrowUp10:pd,LucideArrowUpAZ:tr,LucideArrowUpAz:tr,LucideArrowUpCircle:Ar,LucideArrowUpDown:md,LucideArrowUpFromDot:yd,LucideArrowUpFromLine:fd,LucideArrowUpLeft:xd,LucideArrowUpLeftFromCircle:Nr,LucideArrowUpLeftFromSquare:ni,LucideArrowUpLeftSquare:si,LucideArrowUpNarrowWide:ar,LucideArrowUpRight:gd,LucideArrowUpRightFromCircle:Lr,LucideArrowUpRightFromSquare:ri,LucideArrowUpRightSquare:ii,LucideArrowUpSquare:oi,LucideArrowUpToLine:kd,LucideArrowUpWideNarrow:vd,LucideArrowUpZA:nr,LucideArrowUpZa:nr,LucideArrowsUpFromLine:bd,LucideAsterisk:Md,LucideAsteriskSquare:ci,LucideAtSign:jd,LucideAtom:Cd,LucideAudioLines:Sd,LucideAudioWaveform:Nd,LucideAward:na,LucideAxe:Ld,LucideAxis3D:rr,LucideAxis3d:rr,LucideBaby:Id,LucideBackpack:Ad,LucideBadge:Dc,LucideBadgeAlert:Pd,LucideBadgeCent:_d,LucideBadgeCheck:sr,LucideBadgeDollarSign:Rd,LucideBadgeEuro:Td,LucideBadgeHelp:Dd,LucideBadgeIndianRupee:qd,LucideBadgeInfo:zd,LucideBadgeJapaneseYen:Ed,LucideBadgeMinus:Fd,LucideBadgePercent:Od,LucideBadgePlus:Hd,LucideBadgePoundSterling:Vd,LucideBadgeRussianRuble:Bd,LucideBadgeSwissFranc:$d,LucideBadgeX:Ud,LucideBaggageClaim:Gd,LucideBan:Wd,LucideBanana:Zd,LucideBandage:Jd,LucideBanknote:Xd,LucideBarChart:yn,LucideBarChart2:kr,LucideBarChart3:xr,LucideBarChart4:fr,LucideBarChartBig:yr,LucideBarChartHorizontal:pr,LucideBarChartHorizontalBig:ur,LucideBarcode:Yd,LucideBaseline:Kd,LucideBath:Qd,LucideBattery:s2,LucideBatteryCharging:e2,LucideBatteryFull:t2,LucideBatteryLow:a2,LucideBatteryMedium:n2,LucideBatteryWarning:r2,LucideBeaker:i2,LucideBean:c2,LucideBeanOff:o2,LucideBed:h2,LucideBedDouble:l2,LucideBedSingle:d2,LucideBeef:u2,LucideBeer:m2,LucideBeerOff:p2,LucideBell:Yo,LucideBellDot:y2,LucideBellElectric:f2,LucideBellMinus:x2,LucideBellOff:g2,LucideBellPlus:k2,LucideBellRing:v2,LucideBetweenHorizonalEnd:ir,LucideBetweenHorizonalStart:or,LucideBetweenHorizontalEnd:ir,LucideBetweenHorizontalStart:or,LucideBetweenVerticalEnd:w2,LucideBetweenVerticalStart:b2,LucideBicepsFlexed:M2,LucideBike:j2,LucideBinary:C2,LucideBinoculars:S2,LucideBiohazard:N2,LucideBird:L2,LucideBitcoin:I2,LucideBlend:A2,LucideBlinds:P2,LucideBlocks:_2,LucideBluetooth:q2,LucideBluetoothConnected:R2,LucideBluetoothOff:T2,LucideBluetoothSearching:D2,LucideBold:z2,LucideBolt:E2,LucideBomb:F2,LucideBone:O2,LucideBook:ch,LucideBookA:H2,LucideBookAudio:V2,LucideBookCheck:B2,LucideBookCopy:$2,LucideBookDashed:cr,LucideBookDown:U2,LucideBookHeadphones:G2,LucideBookHeart:W2,LucideBookImage:Z2,LucideBookKey:J2,LucideBookLock:X2,LucideBookMarked:Y2,LucideBookMinus:K2,LucideBookOpen:ia,LucideBookOpenCheck:Q2,LucideBookOpenText:eh,LucideBookPlus:th,LucideBookTemplate:cr,LucideBookText:ah,LucideBookType:nh,LucideBookUp:sh,LucideBookUp2:rh,LucideBookUser:ih,LucideBookX:oh,LucideBookmark:xa,LucideBookmarkCheck:fa,LucideBookmarkMinus:lh,LucideBookmarkPlus:dh,LucideBookmarkX:hh,LucideBoomBox:uh,LucideBot:qc,LucideBotMessageSquare:ph,LucideBotOff:mh,LucideBox:yh,LucideBoxSelect:ki,LucideBoxes:fh,LucideBraces:lr,LucideBrackets:xh,LucideBrain:vh,LucideBrainCircuit:gh,LucideBrainCog:kh,LucideBrickWall:wh,LucideBriefcase:Ze,LucideBriefcaseBusiness:bh,LucideBriefcaseConveyorBelt:Mh,LucideBriefcaseMedical:jh,LucideBringToFront:Ch,LucideBrush:Sh,LucideBug:Ih,LucideBugOff:Nh,LucideBugPlay:Lh,LucideBuilding:Ko,LucideBuilding2:rt,LucideBus:Ph,LucideBusFront:Ah,LucideCable:Rh,LucideCableCar:_h,LucideCake:Dh,LucideCakeSlice:Th,LucideCalculator:qh,LucideCalendar:xo,LucideCalendarArrowDown:zh,LucideCalendarArrowUp:Eh,LucideCalendarCheck:Oh,LucideCalendarCheck2:Fh,LucideCalendarClock:Hh,LucideCalendarCog:Vh,LucideCalendarDays:fo,LucideCalendarFold:Bh,LucideCalendarHeart:$h,LucideCalendarMinus:Gh,LucideCalendarMinus2:Uh,LucideCalendarOff:Wh,LucideCalendarPlus:Jh,LucideCalendarPlus2:Zh,LucideCalendarRange:Xh,LucideCalendarSearch:Yh,LucideCalendarX:Qh,LucideCalendarX2:Kh,LucideCamera:t0,LucideCameraOff:e0,LucideCandlestickChart:mr,LucideCandy:r0,LucideCandyCane:a0,LucideCandyOff:n0,LucideCannabis:s0,LucideCaptions:dr,LucideCaptionsOff:i0,LucideCar:l0,LucideCarFront:o0,LucideCarTaxiFront:c0,LucideCaravan:d0,LucideCarrot:h0,LucideCaseLower:u0,LucideCaseSensitive:p0,LucideCaseUpper:m0,LucideCassetteTape:y0,LucideCast:f0,LucideCastle:x0,LucideCat:g0,LucideCctv:k0,LucideChartArea:hr,LucideChartBar:pr,LucideChartBarBig:ur,LucideChartBarDecreasing:v0,LucideChartBarIncreasing:w0,LucideChartBarStacked:b0,LucideChartCandlestick:mr,LucideChartColumn:xr,LucideChartColumnBig:yr,LucideChartColumnDecreasing:M0,LucideChartColumnIncreasing:fr,LucideChartColumnStacked:j0,LucideChartGantt:C0,LucideChartLine:gr,LucideChartNetwork:S0,LucideChartNoAxesColumn:kr,LucideChartNoAxesColumnDecreasing:N0,LucideChartNoAxesColumnIncreasing:yn,LucideChartNoAxesCombined:L0,LucideChartNoAxesGantt:vr,LucideChartPie:wr,LucideChartScatter:br,LucideChartSpline:I0,LucideCheck:Qo,LucideCheckCheck:A0,LucideCheckCircle:Vt,LucideCheckCircle2:tt,LucideCheckSquare:di,LucideCheckSquare2:hi,LucideChefHat:P0,LucideCherry:_0,LucideChevronDown:wn,LucideChevronDownCircle:Pr,LucideChevronDownSquare:ui,LucideChevronFirst:R0,LucideChevronLast:T0,LucideChevronLeft:bn,LucideChevronLeftCircle:_r,LucideChevronLeftSquare:pi,LucideChevronRight:Mn,LucideChevronRightCircle:Rr,LucideChevronRightSquare:mi,LucideChevronUp:ec,LucideChevronUpCircle:Tr,LucideChevronUpSquare:yi,LucideChevronsDown:q0,LucideChevronsDownUp:D0,LucideChevronsLeft:F0,LucideChevronsLeftRight:E0,LucideChevronsLeftRightEllipsis:z0,LucideChevronsRight:H0,LucideChevronsRightLeft:O0,LucideChevronsUp:B0,LucideChevronsUpDown:V0,LucideChrome:$0,LucideChurch:U0,LucideCigarette:W0,LucideCigaretteOff:G0,LucideCircle:ru,LucideCircleAlert:Ht,LucideCircleArrowDown:Mr,LucideCircleArrowLeft:jr,LucideCircleArrowOutDownLeft:Cr,LucideCircleArrowOutDownRight:Sr,LucideCircleArrowOutUpLeft:Nr,LucideCircleArrowOutUpRight:Lr,LucideCircleArrowRight:Ir,LucideCircleArrowUp:Ar,LucideCircleCheck:tt,LucideCircleCheckBig:Vt,LucideCircleChevronDown:Pr,LucideCircleChevronLeft:_r,LucideCircleChevronRight:Rr,LucideCircleChevronUp:Tr,LucideCircleDashed:Z0,LucideCircleDivide:Dr,LucideCircleDollarSign:J0,LucideCircleDot:Y0,LucideCircleDotDashed:X0,LucideCircleEllipsis:K0,LucideCircleEqual:Q0,LucideCircleFadingArrowUp:eu,LucideCircleFadingPlus:tu,LucideCircleGauge:qr,LucideCircleHelp:fn,LucideCircleMinus:zr,LucideCircleOff:au,LucideCircleParking:Fr,LucideCircleParkingOff:Er,LucideCirclePause:Or,LucideCirclePercent:Hr,LucideCirclePlay:Vr,LucideCirclePlus:Br,LucideCirclePower:$r,LucideCircleSlash:nu,LucideCircleSlash2:Ur,LucideCircleSlashed:Ur,LucideCircleStop:Gr,LucideCircleUser:Zr,LucideCircleUserRound:Wr,LucideCircleX:ja,LucideCircuitBoard:su,LucideCitrus:iu,LucideClapperboard:ou,LucideClipboard:fu,LucideClipboardCheck:cu,LucideClipboardCopy:lu,LucideClipboardEdit:Xr,LucideClipboardList:du,LucideClipboardMinus:hu,LucideClipboardPaste:uu,LucideClipboardPen:Xr,LucideClipboardPenLine:Jr,LucideClipboardPlus:pu,LucideClipboardSignature:Jr,LucideClipboardType:mu,LucideClipboardX:yu,LucideClock:ga,LucideClock1:xu,LucideClock10:gu,LucideClock11:ku,LucideClock12:vu,LucideClock2:wu,LucideClock3:bu,LucideClock4:Mu,LucideClock5:ju,LucideClock6:Cu,LucideClock7:Su,LucideClock8:Nu,LucideClock9:Lu,LucideClockAlert:Iu,LucideClockArrowDown:Au,LucideClockArrowUp:Pu,LucideCloud:Uu,LucideCloudCog:_u,LucideCloudDownload:Yr,LucideCloudDrizzle:Ru,LucideCloudFog:Tu,LucideCloudHail:Du,LucideCloudLightning:qu,LucideCloudMoon:Eu,LucideCloudMoonRain:zu,LucideCloudOff:Fu,LucideCloudRain:Hu,LucideCloudRainWind:Ou,LucideCloudSnow:Vu,LucideCloudSun:$u,LucideCloudSunRain:Bu,LucideCloudUpload:xn,LucideCloudy:Gu,LucideClover:Wu,LucideClub:Zu,LucideCode:Ju,LucideCode2:Kr,LucideCodeSquare:fi,LucideCodeXml:Kr,LucideCodepen:Xu,LucideCodesandbox:Yu,LucideCoffee:Ku,LucideCog:Qu,LucideCoins:ep,LucideColumns:Qr,LucideColumns2:Qr,LucideColumns3:es,LucideColumns4:tp,LucideCombine:ap,LucideCommand:np,LucideCompass:rp,LucideComponent:sp,LucideComputer:ip,LucideConciergeBell:op,LucideCone:cp,LucideConstruction:lp,LucideContact:dp,LucideContact2:ts,LucideContactRound:ts,LucideContainer:hp,LucideContrast:up,LucideCookie:pp,LucideCookingPot:mp,LucideCopy:vp,LucideCopyCheck:yp,LucideCopyMinus:fp,LucideCopyPlus:xp,LucideCopySlash:gp,LucideCopyX:kp,LucideCopyleft:wp,LucideCopyright:bp,LucideCornerDownLeft:Mp,LucideCornerDownRight:jp,LucideCornerLeftDown:Cp,LucideCornerLeftUp:Sp,LucideCornerRightDown:Np,LucideCornerRightUp:Lp,LucideCornerUpLeft:Ip,LucideCornerUpRight:Ap,LucideCpu:Pp,LucideCreativeCommons:_p,LucideCreditCard:zc,LucideCroissant:Rp,LucideCrop:Tp,LucideCross:Dp,LucideCrosshair:qp,LucideCrown:zp,LucideCuboid:Ep,LucideCupSoda:Fp,LucideCurlyBraces:lr,LucideCurrency:Op,LucideCylinder:Hp,LucideDam:Vp,LucideDatabase:Up,LucideDatabaseBackup:Bp,LucideDatabaseZap:$p,LucideDelete:Gp,LucideDessert:Wp,LucideDiameter:Zp,LucideDiamond:Yp,LucideDiamondMinus:Jp,LucideDiamondPercent:as,LucideDiamondPlus:Xp,LucideDice1:Kp,LucideDice2:Qp,LucideDice3:em,LucideDice4:tm,LucideDice5:am,LucideDice6:nm,LucideDices:rm,LucideDiff:sm,LucideDisc:lm,LucideDisc2:im,LucideDisc3:om,LucideDiscAlbum:cm,LucideDivide:dm,LucideDivideCircle:Dr,LucideDivideSquare:vi,LucideDna:um,LucideDnaOff:hm,LucideDock:pm,LucideDog:mm,LucideDollarSign:Ec,LucideDonut:ym,LucideDoorClosed:fm,LucideDoorOpen:xm,LucideDot:gm,LucideDotSquare:wi,LucideDownload:Fc,LucideDownloadCloud:Yr,LucideDraftingCompass:km,LucideDrama:vm,LucideDribbble:wm,LucideDrill:bm,LucideDroplet:Mm,LucideDroplets:jm,LucideDrum:Cm,LucideDrumstick:Sm,LucideDumbbell:Nm,LucideEar:Im,LucideEarOff:Lm,LucideEarth:ns,LucideEarthLock:Am,LucideEclipse:Pm,LucideEdit:Ft,LucideEdit2:Hs,LucideEdit3:Os,LucideEgg:Tm,LucideEggFried:_m,LucideEggOff:Rm,LucideEllipsis:ss,LucideEllipsisVertical:rs,LucideEqual:qm,LucideEqualNot:Dm,LucideEqualSquare:bi,LucideEraser:zm,LucideEthernetPort:Em,LucideEuro:Fm,LucideExpand:Om,LucideExternalLink:go,LucideEye:tc,LucideEyeClosed:Hm,LucideEyeOff:Oc,LucideFacebook:Vm,LucideFactory:Bm,LucideFan:$m,LucideFastForward:Um,LucideFeather:Gm,LucideFence:Wm,LucideFerrisWheel:Zm,LucideFigma:Jm,LucideFile:Uy,LucideFileArchive:Xm,LucideFileAudio:Km,LucideFileAudio2:Ym,LucideFileAxis3D:is,LucideFileAxis3d:is,LucideFileBadge:ey,LucideFileBadge2:Qm,LucideFileBarChart:os,LucideFileBarChart2:cs,LucideFileBox:ty,LucideFileChartColumn:cs,LucideFileChartColumnIncreasing:os,LucideFileChartLine:ls,LucideFileChartPie:ds,LucideFileCheck:ny,LucideFileCheck2:ay,LucideFileClock:ry,LucideFileCode:iy,LucideFileCode2:sy,LucideFileCog:hs,LucideFileCog2:hs,LucideFileDiff:oy,LucideFileDigit:cy,LucideFileDown:ly,LucideFileEdit:ps,LucideFileHeart:dy,LucideFileImage:hy,LucideFileInput:uy,LucideFileJson:my,LucideFileJson2:py,LucideFileKey:fy,LucideFileKey2:yy,LucideFileLineChart:ls,LucideFileLock:gy,LucideFileLock2:xy,LucideFileMinus:vy,LucideFileMinus2:ky,LucideFileMusic:wy,LucideFileOutput:by,LucideFilePen:ps,LucideFilePenLine:us,LucideFilePieChart:ds,LucideFilePlus:jy,LucideFilePlus2:My,LucideFileQuestion:Cy,LucideFileScan:Sy,LucideFileSearch:Ly,LucideFileSearch2:Ny,LucideFileSignature:us,LucideFileSliders:Iy,LucideFileSpreadsheet:Ay,LucideFileStack:Py,LucideFileSymlink:_y,LucideFileTerminal:Ry,LucideFileText:jn,LucideFileType:Dy,LucideFileType2:Ty,LucideFileUp:qy,LucideFileUser:zy,LucideFileVideo:Fy,LucideFileVideo2:Ey,LucideFileVolume:Hy,LucideFileVolume2:Oy,LucideFileWarning:Vy,LucideFileX:$y,LucideFileX2:By,LucideFiles:Gy,LucideFilm:Wy,LucideFilter:Cn,LucideFilterX:Zy,LucideFingerprint:Jy,LucideFireExtinguisher:Xy,LucideFish:Qy,LucideFishOff:Yy,LucideFishSymbol:Ky,LucideFlag:Hc,LucideFlagOff:ef,LucideFlagTriangleLeft:tf,LucideFlagTriangleRight:af,LucideFlame:rf,LucideFlameKindling:nf,LucideFlashlight:of,LucideFlashlightOff:sf,LucideFlaskConical:lf,LucideFlaskConicalOff:cf,LucideFlaskRound:df,LucideFlipHorizontal:uf,LucideFlipHorizontal2:hf,LucideFlipVertical:mf,LucideFlipVertical2:pf,LucideFlower:ff,LucideFlower2:yf,LucideFocus:xf,LucideFoldHorizontal:gf,LucideFoldVertical:kf,LucideFolder:Wf,LucideFolderArchive:vf,LucideFolderCheck:wf,LucideFolderClock:bf,LucideFolderClosed:Mf,LucideFolderCode:jf,LucideFolderCog:ms,LucideFolderCog2:ms,LucideFolderDot:Cf,LucideFolderDown:Sf,LucideFolderEdit:ys,LucideFolderGit:Lf,LucideFolderGit2:Nf,LucideFolderHeart:If,LucideFolderInput:Af,LucideFolderKanban:Pf,LucideFolderKey:_f,LucideFolderLock:Rf,LucideFolderMinus:Tf,LucideFolderOpen:qf,LucideFolderOpenDot:Df,LucideFolderOutput:zf,LucideFolderPen:ys,LucideFolderPlus:Ef,LucideFolderRoot:Ff,LucideFolderSearch:Hf,LucideFolderSearch2:Of,LucideFolderSymlink:Vf,LucideFolderSync:Bf,LucideFolderTree:$f,LucideFolderUp:Uf,LucideFolderX:Gf,LucideFolders:Zf,LucideFootprints:Jf,LucideForkKnife:co,LucideForkKnifeCrossed:oo,LucideForklift:Xf,LucideFormInput:Bs,LucideForward:Yf,LucideFrame:Kf,LucideFramer:Qf,LucideFrown:ex,LucideFuel:tx,LucideFullscreen:ax,LucideFunctionSquare:Mi,LucideGalleryHorizontal:rx,LucideGalleryHorizontalEnd:nx,LucideGalleryThumbnails:sx,LucideGalleryVertical:ox,LucideGalleryVerticalEnd:ix,LucideGamepad:cx,LucideGamepad2:Vc,LucideGanttChart:vr,LucideGanttChartSquare:ba,LucideGauge:lx,LucideGaugeCircle:qr,LucideGavel:dx,LucideGem:hx,LucideGhost:ux,LucideGift:px,LucideGitBranch:yx,LucideGitBranchPlus:mx,LucideGitCommit:fs,LucideGitCommitHorizontal:fs,LucideGitCommitVertical:fx,LucideGitCompare:gx,LucideGitCompareArrows:xx,LucideGitFork:kx,LucideGitGraph:vx,LucideGitMerge:wx,LucideGitPullRequest:Nx,LucideGitPullRequestArrow:bx,LucideGitPullRequestClosed:Mx,LucideGitPullRequestCreate:Cx,LucideGitPullRequestCreateArrow:jx,LucideGitPullRequestDraft:Sx,LucideGithub:Lx,LucideGitlab:Ix,LucideGlassWater:Ax,LucideGlasses:Px,LucideGlobe:oa,LucideGlobe2:ns,LucideGlobeLock:_x,LucideGoal:Rx,LucideGrab:Tx,LucideGraduationCap:Sn,LucideGrape:Dx,LucideGrid:ma,LucideGrid2X2:xs,LucideGrid2x2:xs,LucideGrid2x2Check:qx,LucideGrid2x2Plus:zx,LucideGrid2x2X:Ex,LucideGrid3X3:ma,LucideGrid3x3:ma,LucideGrip:Hx,LucideGripHorizontal:Fx,LucideGripVertical:Ox,LucideGroup:Vx,LucideGuitar:Bx,LucideHam:$x,LucideHammer:Ux,LucideHand:Xx,LucideHandCoins:Gx,LucideHandHeart:Wx,LucideHandHelping:gs,LucideHandMetal:Zx,LucideHandPlatter:Jx,LucideHandshake:Yx,LucideHardDrive:eg,LucideHardDriveDownload:Kx,LucideHardDriveUpload:Qx,LucideHardHat:tg,LucideHash:ag,LucideHaze:ng,LucideHdmiPort:rg,LucideHeading:hg,LucideHeading1:sg,LucideHeading2:ig,LucideHeading3:og,LucideHeading4:cg,LucideHeading5:lg,LucideHeading6:dg,LucideHeadphoneOff:ug,LucideHeadphones:pg,LucideHeadset:mg,LucideHeart:Nn,LucideHeartCrack:yg,LucideHeartHandshake:fg,LucideHeartOff:xg,LucideHeartPulse:gg,LucideHeater:kg,LucideHelpCircle:fn,LucideHelpingHand:gs,LucideHexagon:vg,LucideHighlighter:wg,LucideHistory:bg,LucideHome:Ua,LucideHop:jg,LucideHopOff:Mg,LucideHospital:Cg,LucideHotel:Sg,LucideHourglass:Ng,LucideHouse:Ua,LucideHousePlug:Lg,LucideHousePlus:Ig,LucideIceCream:vs,LucideIceCream2:ks,LucideIceCreamBowl:ks,LucideIceCreamCone:vs,LucideIdCard:Ag,LucideImage:zg,LucideImageDown:Pg,LucideImageMinus:_g,LucideImageOff:Rg,LucideImagePlay:Tg,LucideImagePlus:Dg,LucideImageUp:qg,LucideImages:Eg,LucideImport:Fg,LucideInbox:Og,LucideIndent:bs,LucideIndentDecrease:ws,LucideIndentIncrease:bs,LucideIndianRupee:Hg,LucideInfinity:Vg,LucideInfo:Bg,LucideInspect:Ii,LucideInspectionPanel:$g,LucideInstagram:Ug,LucideItalic:Gg,LucideIterationCcw:Wg,LucideIterationCw:Zg,LucideJapaneseYen:Jg,LucideJoystick:Xg,LucideKanban:Yg,LucideKanbanSquare:ji,LucideKanbanSquareDashed:xi,LucideKey:e4,LucideKeyRound:Kg,LucideKeySquare:Qg,LucideKeyboard:n4,LucideKeyboardMusic:t4,LucideKeyboardOff:a4,LucideLamp:l4,LucideLampCeiling:r4,LucideLampDesk:s4,LucideLampFloor:i4,LucideLampWallDown:o4,LucideLampWallUp:c4,LucideLandPlot:d4,LucideLandmark:h4,LucideLanguages:Bc,LucideLaptop:u4,LucideLaptop2:Ms,LucideLaptopMinimal:Ms,LucideLasso:m4,LucideLassoSelect:p4,LucideLaugh:y4,LucideLayers:g4,LucideLayers2:f4,LucideLayers3:x4,LucideLayout:Fs,LucideLayoutDashboard:$c,LucideLayoutGrid:k4,LucideLayoutList:v4,LucideLayoutPanelLeft:w4,LucideLayoutPanelTop:b4,LucideLayoutTemplate:M4,LucideLeaf:j4,LucideLeafyGreen:C4,LucideLectern:S4,LucideLetterText:N4,LucideLibrary:I4,LucideLibraryBig:L4,LucideLibrarySquare:Ci,LucideLifeBuoy:A4,LucideLigature:P4,LucideLightbulb:R4,LucideLightbulbOff:_4,LucideLineChart:gr,LucideLink:Uc,LucideLink2:D4,LucideLink2Off:T4,LucideLinkedin:Gc,LucideList:Wc,LucideListCheck:q4,LucideListChecks:z4,LucideListCollapse:E4,LucideListEnd:F4,LucideListFilter:O4,LucideListMinus:H4,LucideListMusic:V4,LucideListOrdered:B4,LucideListPlus:$4,LucideListRestart:U4,LucideListStart:G4,LucideListTodo:W4,LucideListTree:Z4,LucideListVideo:J4,LucideListX:X4,LucideLoader:K4,LucideLoader2:at,LucideLoaderCircle:at,LucideLoaderPinwheel:Y4,LucideLocate:tk,LucideLocateFixed:Q4,LucideLocateOff:ek,LucideLock:ko,LucideLockKeyhole:ak,LucideLockKeyholeOpen:js,LucideLockOpen:Cs,LucideLogIn:nk,LucideLogOut:Zc,LucideLogs:rk,LucideLollipop:sk,LucideLuggage:ik,LucideMSquare:Si,LucideMagnet:ok,LucideMail:ca,LucideMailCheck:ck,LucideMailMinus:lk,LucideMailOpen:dk,LucideMailPlus:hk,LucideMailQuestion:uk,LucideMailSearch:pk,LucideMailWarning:mk,LucideMailX:yk,LucideMailbox:fk,LucideMails:xk,LucideMap:Ik,LucideMapPin:Qe,LucideMapPinCheck:kk,LucideMapPinCheckInside:gk,LucideMapPinHouse:vk,LucideMapPinMinus:bk,LucideMapPinMinusInside:wk,LucideMapPinOff:Mk,LucideMapPinPlus:Ck,LucideMapPinPlusInside:jk,LucideMapPinX:Nk,LucideMapPinXInside:Sk,LucideMapPinned:Lk,LucideMartini:Ak,LucideMaximize:_k,LucideMaximize2:Pk,LucideMedal:Rk,LucideMegaphone:Dk,LucideMegaphoneOff:Tk,LucideMeh:qk,LucideMemoryStick:zk,LucideMenu:ac,LucideMenuSquare:Ni,LucideMerge:Ek,LucideMessageCircle:Jk,LucideMessageCircleCode:Fk,LucideMessageCircleDashed:Ok,LucideMessageCircleHeart:Hk,LucideMessageCircleMore:Vk,LucideMessageCircleOff:Bk,LucideMessageCirclePlus:$k,LucideMessageCircleQuestion:Uk,LucideMessageCircleReply:Gk,LucideMessageCircleWarning:Wk,LucideMessageCircleX:Zk,LucideMessageSquare:Ln,LucideMessageSquareCode:Xk,LucideMessageSquareDashed:Yk,LucideMessageSquareDiff:Kk,LucideMessageSquareDot:Qk,LucideMessageSquareHeart:ev,LucideMessageSquareLock:tv,LucideMessageSquareMore:av,LucideMessageSquareOff:nv,LucideMessageSquarePlus:rv,LucideMessageSquareQuote:sv,LucideMessageSquareReply:iv,LucideMessageSquareShare:ov,LucideMessageSquareText:cv,LucideMessageSquareWarning:lv,LucideMessageSquareX:dv,LucideMessagesSquare:hv,LucideMic:pv,LucideMic2:Ss,LucideMicOff:uv,LucideMicVocal:Ss,LucideMicrochip:mv,LucideMicroscope:yv,LucideMicrowave:fv,LucideMilestone:xv,LucideMilk:kv,LucideMilkOff:gv,LucideMinimize:wv,LucideMinimize2:vv,LucideMinus:Jc,LucideMinusCircle:zr,LucideMinusSquare:Li,LucideMonitor:Tv,LucideMonitorCheck:bv,LucideMonitorCog:Mv,LucideMonitorDot:jv,LucideMonitorDown:Cv,LucideMonitorOff:Sv,LucideMonitorPause:Nv,LucideMonitorPlay:Lv,LucideMonitorSmartphone:Iv,LucideMonitorSpeaker:Av,LucideMonitorStop:Pv,LucideMonitorUp:_v,LucideMonitorX:Rv,LucideMoon:qv,LucideMoonStar:Dv,LucideMoreHorizontal:ss,LucideMoreVertical:rs,LucideMountain:Ev,LucideMountainSnow:zv,LucideMouse:$v,LucideMouseOff:Fv,LucideMousePointer:Bv,LucideMousePointer2:Ov,LucideMousePointerBan:Hv,LucideMousePointerClick:Vv,LucideMousePointerSquareDashed:gi,LucideMove:n5,LucideMove3D:Ns,LucideMove3d:Ns,LucideMoveDiagonal:Gv,LucideMoveDiagonal2:Uv,LucideMoveDown:Jv,LucideMoveDownLeft:Wv,LucideMoveDownRight:Zv,LucideMoveHorizontal:Xv,LucideMoveLeft:Yv,LucideMoveRight:Kv,LucideMoveUp:t5,LucideMoveUpLeft:Qv,LucideMoveUpRight:e5,LucideMoveVertical:a5,LucideMusic:o5,LucideMusic2:r5,LucideMusic3:s5,LucideMusic4:i5,LucideNavigation:h5,LucideNavigation2:l5,LucideNavigation2Off:c5,LucideNavigationOff:d5,LucideNetwork:u5,LucideNewspaper:Aa,LucideNfc:p5,LucideNotebook:x5,LucideNotebookPen:m5,LucideNotebookTabs:y5,LucideNotebookText:f5,LucideNotepadText:k5,LucideNotepadTextDashed:g5,LucideNut:w5,LucideNutOff:v5,LucideOctagon:M5,LucideOctagonAlert:Ls,LucideOctagonMinus:b5,LucideOctagonPause:Is,LucideOctagonX:As,LucideOmega:j5,LucideOption:C5,LucideOrbit:S5,LucideOrigami:N5,LucideOutdent:ws,LucidePackage:Xc,LucidePackage2:L5,LucidePackageCheck:I5,LucidePackageMinus:A5,LucidePackageOpen:P5,LucidePackagePlus:_5,LucidePackageSearch:R5,LucidePackageX:T5,LucidePaintBucket:D5,LucidePaintRoller:q5,LucidePaintbrush:z5,LucidePaintbrush2:Ps,LucidePaintbrushVertical:Ps,LucidePalette:E5,LucidePalmtree:Xi,LucidePanelBottom:H5,LucidePanelBottomClose:F5,LucidePanelBottomDashed:_s,LucidePanelBottomInactive:_s,LucidePanelBottomOpen:O5,LucidePanelLeft:qs,LucidePanelLeftClose:Rs,LucidePanelLeftDashed:Ts,LucidePanelLeftInactive:Ts,LucidePanelLeftOpen:Ds,LucidePanelRight:$5,LucidePanelRightClose:V5,LucidePanelRightDashed:zs,LucidePanelRightInactive:zs,LucidePanelRightOpen:B5,LucidePanelTop:W5,LucidePanelTopClose:U5,LucidePanelTopDashed:Es,LucidePanelTopInactive:Es,LucidePanelTopOpen:G5,LucidePanelsLeftBottom:Z5,LucidePanelsLeftRight:es,LucidePanelsRightBottom:J5,LucidePanelsTopBottom:Gs,LucidePanelsTopLeft:Fs,LucidePaperclip:X5,LucideParentheses:Y5,LucideParkingCircle:Fr,LucideParkingCircleOff:Er,LucideParkingMeter:K5,LucideParkingSquare:Pi,LucideParkingSquareOff:Ai,LucidePartyPopper:Q5,LucidePause:e3,LucidePauseCircle:Or,LucidePauseOctagon:Is,LucidePawPrint:t3,LucidePcCase:a3,LucidePen:Hs,LucidePenBox:Ft,LucidePenLine:Os,LucidePenOff:n3,LucidePenSquare:Ft,LucidePenTool:r3,LucidePencil:c3,LucidePencilLine:s3,LucidePencilOff:i3,LucidePencilRuler:o3,LucidePentagon:l3,LucidePercent:d3,LucidePercentCircle:Hr,LucidePercentDiamond:as,LucidePercentSquare:_i,LucidePersonStanding:h3,LucidePhilippinePeso:u3,LucidePhone:In,LucidePhoneCall:p3,LucidePhoneForwarded:m3,LucidePhoneIncoming:y3,LucidePhoneMissed:f3,LucidePhoneOff:x3,LucidePhoneOutgoing:g3,LucidePi:k3,LucidePiSquare:Ri,LucidePiano:v3,LucidePickaxe:w3,LucidePictureInPicture:M3,LucidePictureInPicture2:b3,LucidePieChart:wr,LucidePiggyBank:j3,LucidePilcrow:N3,LucidePilcrowLeft:C3,LucidePilcrowRight:S3,LucidePilcrowSquare:Ti,LucidePill:I3,LucidePillBottle:L3,LucidePin:P3,LucidePinOff:A3,LucidePipette:_3,LucidePizza:R3,LucidePlane:q3,LucidePlaneLanding:T3,LucidePlaneTakeoff:D3,LucidePlay:Yc,LucidePlayCircle:Vr,LucidePlaySquare:Di,LucidePlug:E3,LucidePlug2:z3,LucidePlugZap:Vs,LucidePlugZap2:Vs,LucidePlus:la,LucidePlusCircle:Br,LucidePlusSquare:qi,LucidePocket:O3,LucidePocketKnife:F3,LucidePodcast:H3,LucidePointer:B3,LucidePointerOff:V3,LucidePopcorn:$3,LucidePopsicle:U3,LucidePoundSterling:G3,LucidePower:Z3,LucidePowerCircle:$r,LucidePowerOff:W3,LucidePowerSquare:zi,LucidePresentation:J3,LucidePrinter:Y3,LucidePrinterCheck:X3,LucideProjector:K3,LucideProportions:Q3,LucidePuzzle:e6,LucidePyramid:t6,LucideQrCode:a6,LucideQuote:nc,LucideRabbit:n6,LucideRadar:r6,LucideRadiation:s6,LucideRadical:i6,LucideRadio:l6,LucideRadioReceiver:o6,LucideRadioTower:c6,LucideRadius:d6,LucideRailSymbol:h6,LucideRainbow:u6,LucideRat:p6,LucideRatio:m6,LucideReceipt:M6,LucideReceiptCent:y6,LucideReceiptEuro:f6,LucideReceiptIndianRupee:x6,LucideReceiptJapaneseYen:g6,LucideReceiptPoundSterling:k6,LucideReceiptRussianRuble:v6,LucideReceiptSwissFranc:w6,LucideReceiptText:b6,LucideRectangleEllipsis:Bs,LucideRectangleHorizontal:j6,LucideRectangleVertical:C6,LucideRecycle:S6,LucideRedo:I6,LucideRedo2:N6,LucideRedoDot:L6,LucideRefreshCcw:P6,LucideRefreshCcwDot:A6,LucideRefreshCw:R6,LucideRefreshCwOff:_6,LucideRefrigerator:T6,LucideRegex:D6,LucideRemoveFormatting:q6,LucideRepeat:F6,LucideRepeat1:z6,LucideRepeat2:E6,LucideReplace:H6,LucideReplaceAll:O6,LucideReply:B6,LucideReplyAll:V6,LucideRewind:$6,LucideRibbon:U6,LucideRocket:G6,LucideRockingChair:W6,LucideRollerCoaster:Z6,LucideRotate3D:$s,LucideRotate3d:$s,LucideRotateCcw:X6,LucideRotateCcwSquare:J6,LucideRotateCw:K6,LucideRotateCwSquare:Y6,LucideRoute:e8,LucideRouteOff:Q6,LucideRouter:t8,LucideRows:Us,LucideRows2:Us,LucideRows3:Gs,LucideRows4:a8,LucideRss:n8,LucideRuler:r8,LucideRussianRuble:s8,LucideSailboat:i8,LucideSalad:o8,LucideSandwich:c8,LucideSatellite:d8,LucideSatelliteDish:l8,LucideSave:p8,LucideSaveAll:h8,LucideSaveOff:u8,LucideScale:m8,LucideScale3D:Ws,LucideScale3d:Ws,LucideScaling:y8,LucideScan:M8,LucideScanBarcode:f8,LucideScanEye:x8,LucideScanFace:g8,LucideScanLine:k8,LucideScanQrCode:v8,LucideScanSearch:w8,LucideScanText:b8,LucideScatterChart:br,LucideSchool:j8,LucideSchool2:Qi,LucideScissors:S8,LucideScissorsLineDashed:C8,LucideScissorsSquare:Ei,LucideScissorsSquareDashedBottom:li,LucideScreenShare:L8,LucideScreenShareOff:N8,LucideScroll:A8,LucideScrollText:I8,LucideSearch:Gt,LucideSearchCheck:P8,LucideSearchCode:_8,LucideSearchSlash:R8,LucideSearchX:T8,LucideSection:D8,LucideSend:Kc,LucideSendHorizonal:Zs,LucideSendHorizontal:Zs,LucideSendToBack:q8,LucideSeparatorHorizontal:z8,LucideSeparatorVertical:E8,LucideServer:V8,LucideServerCog:F8,LucideServerCrash:O8,LucideServerOff:H8,LucideSettings:vo,LucideSettings2:B8,LucideShapes:$8,LucideShare:U8,LucideShare2:wo,LucideSheet:G8,LucideShell:W8,LucideShield:An,LucideShieldAlert:Z8,LucideShieldBan:J8,LucideShieldCheck:rc,LucideShieldClose:Js,LucideShieldEllipsis:X8,LucideShieldHalf:Y8,LucideShieldMinus:K8,LucideShieldOff:Q8,LucideShieldPlus:ew,LucideShieldQuestion:tw,LucideShieldX:Js,LucideShip:nw,LucideShipWheel:aw,LucideShirt:rw,LucideShoppingBag:sw,LucideShoppingBasket:iw,LucideShoppingCart:sc,LucideShovel:ow,LucideShowerHead:cw,LucideShrink:lw,LucideShrub:dw,LucideShuffle:hw,LucideSidebar:qs,LucideSidebarClose:Rs,LucideSidebarOpen:Ds,LucideSigma:uw,LucideSigmaSquare:Fi,LucideSignal:Qc,LucideSignalHigh:pw,LucideSignalLow:mw,LucideSignalMedium:yw,LucideSignalZero:fw,LucideSignature:xw,LucideSignpost:kw,LucideSignpostBig:gw,LucideSiren:vw,LucideSkipBack:ww,LucideSkipForward:bw,LucideSkull:Mw,LucideSlack:jw,LucideSlash:Cw,LucideSlashSquare:Oi,LucideSlice:Sw,LucideSliders:Xs,LucideSlidersHorizontal:Pn,LucideSlidersVertical:Xs,LucideSmartphone:Iw,LucideSmartphoneCharging:Nw,LucideSmartphoneNfc:Lw,LucideSmile:Pw,LucideSmilePlus:Aw,LucideSnail:_w,LucideSnowflake:Rw,LucideSofa:Tw,LucideSortAsc:ar,LucideSortDesc:Qn,LucideSoup:Dw,LucideSpace:qw,LucideSpade:zw,LucideSparkle:Ew,LucideSparkles:Ca,LucideSpeaker:Fw,LucideSpeech:Ow,LucideSpellCheck:Vw,LucideSpellCheck2:Hw,LucideSpline:Bw,LucideSplit:$w,LucideSplitSquareHorizontal:Hi,LucideSplitSquareVertical:Vi,LucideSprayCan:Uw,LucideSprout:Gw,LucideSquare:Kw,LucideSquareActivity:Ys,LucideSquareArrowDown:ei,LucideSquareArrowDownLeft:Ks,LucideSquareArrowDownRight:Qs,LucideSquareArrowLeft:Ga,LucideSquareArrowOutDownLeft:ti,LucideSquareArrowOutDownRight:ai,LucideSquareArrowOutUpLeft:ni,LucideSquareArrowOutUpRight:ri,LucideSquareArrowRight:Wa,LucideSquareArrowUp:oi,LucideSquareArrowUpLeft:si,LucideSquareArrowUpRight:ii,LucideSquareAsterisk:ci,LucideSquareBottomDashedScissors:li,LucideSquareChartGantt:ba,LucideSquareCheck:hi,LucideSquareCheckBig:di,LucideSquareChevronDown:ui,LucideSquareChevronLeft:pi,LucideSquareChevronRight:mi,LucideSquareChevronUp:yi,LucideSquareCode:fi,LucideSquareDashed:ki,LucideSquareDashedBottom:Zw,LucideSquareDashedBottomCode:Ww,LucideSquareDashedKanban:xi,LucideSquareDashedMousePointer:gi,LucideSquareDivide:vi,LucideSquareDot:wi,LucideSquareEqual:bi,LucideSquareFunction:Mi,LucideSquareGanttChart:ba,LucideSquareKanban:ji,LucideSquareLibrary:Ci,LucideSquareM:Si,LucideSquareMenu:Ni,LucideSquareMinus:Li,LucideSquareMousePointer:Ii,LucideSquareParking:Pi,LucideSquareParkingOff:Ai,LucideSquarePen:Ft,LucideSquarePercent:_i,LucideSquarePi:Ri,LucideSquarePilcrow:Ti,LucideSquarePlay:Di,LucideSquarePlus:qi,LucideSquarePower:zi,LucideSquareRadical:Jw,LucideSquareScissors:Ei,LucideSquareSigma:Fi,LucideSquareSlash:Oi,LucideSquareSplitHorizontal:Hi,LucideSquareSplitVertical:Vi,LucideSquareSquare:Xw,LucideSquareStack:Yw,LucideSquareTerminal:Bi,LucideSquareUser:Ui,LucideSquareUserRound:$i,LucideSquareX:Gi,LucideSquircle:Qw,LucideSquirrel:eb,LucideStamp:tb,LucideStar:jt,LucideStarHalf:ab,LucideStarOff:nb,LucideStars:Ca,LucideStepBack:rb,LucideStepForward:sb,LucideStethoscope:ib,LucideSticker:ob,LucideStickyNote:cb,LucideStopCircle:Gr,LucideStore:lb,LucideStretchHorizontal:db,LucideStretchVertical:hb,LucideStrikethrough:ub,LucideSubscript:pb,LucideSubtitles:dr,LucideSun:gb,LucideSunDim:mb,LucideSunMedium:yb,LucideSunMoon:fb,LucideSunSnow:xb,LucideSunrise:kb,LucideSunset:vb,LucideSuperscript:wb,LucideSwatchBook:bb,LucideSwissFranc:Mb,LucideSwitchCamera:jb,LucideSword:Cb,LucideSwords:Sb,LucideSyringe:Nb,LucideTable:Db,LucideTable2:Lb,LucideTableCellsMerge:Ib,LucideTableCellsSplit:Ab,LucideTableColumnsSplit:Pb,LucideTableOfContents:_b,LucideTableProperties:Rb,LucideTableRowsSplit:Tb,LucideTablet:zb,LucideTabletSmartphone:qb,LucideTablets:Eb,LucideTag:el,LucideTags:Fb,LucideTally1:Ob,LucideTally2:Hb,LucideTally3:Vb,LucideTally4:Bb,LucideTally5:$b,LucideTangent:Ub,LucideTarget:Gb,LucideTelescope:Wb,LucideTent:Jb,LucideTentTree:Zb,LucideTerminal:Xb,LucideTerminalSquare:Bi,LucideTestTube:Yb,LucideTestTube2:Wi,LucideTestTubeDiagonal:Wi,LucideTestTubes:Kb,LucideText:n7,LucideTextCursor:e7,LucideTextCursorInput:Qb,LucideTextQuote:t7,LucideTextSearch:a7,LucideTextSelect:Zi,LucideTextSelection:Zi,LucideTheater:r7,LucideThermometer:o7,LucideThermometerSnowflake:s7,LucideThermometerSun:i7,LucideThumbsDown:c7,LucideThumbsUp:l7,LucideTicket:f7,LucideTicketCheck:d7,LucideTicketMinus:h7,LucideTicketPercent:u7,LucideTicketPlus:p7,LucideTicketSlash:m7,LucideTicketX:y7,LucideTickets:g7,LucideTicketsPlane:x7,LucideTimer:w7,LucideTimerOff:k7,LucideTimerReset:v7,LucideToggleLeft:b7,LucideToggleRight:M7,LucideTornado:j7,LucideTorus:C7,LucideTouchpad:N7,LucideTouchpadOff:S7,LucideTowerControl:L7,LucideToyBrick:I7,LucideTractor:A7,LucideTrafficCone:P7,LucideTrain:Ji,LucideTrainFront:R7,LucideTrainFrontTunnel:_7,LucideTrainTrack:T7,LucideTramFront:Ji,LucideTrash:D7,LucideTrash2:bo,LucideTreeDeciduous:q7,LucideTreePalm:Xi,LucideTreePine:z7,LucideTrees:E7,LucideTrello:F7,LucideTrendingDown:O7,LucideTrendingUp:Pa,LucideTrendingUpDown:H7,LucideTriangle:B7,LucideTriangleAlert:Yi,LucideTriangleRight:V7,LucideTrophy:$7,LucideTruck:U7,LucideTurtle:G7,LucideTv:Z7,LucideTv2:Ki,LucideTvMinimal:Ki,LucideTvMinimalPlay:W7,LucideTwitch:J7,LucideTwitter:X7,LucideType:K7,LucideTypeOutline:Y7,LucideUmbrella:eM,LucideUmbrellaOff:Q7,LucideUnderline:tM,LucideUndo:rM,LucideUndo2:aM,LucideUndoDot:nM,LucideUnfoldHorizontal:sM,LucideUnfoldVertical:iM,LucideUngroup:oM,LucideUniversity:Qi,LucideUnlink:lM,LucideUnlink2:cM,LucideUnlock:Cs,LucideUnlockKeyhole:js,LucideUnplug:dM,LucideUpload:tl,LucideUploadCloud:xn,LucideUsb:hM,LucideUser:ic,LucideUser2:so,LucideUserCheck:Mo,LucideUserCheck2:eo,LucideUserCircle:Zr,LucideUserCircle2:Wr,LucideUserCog:uM,LucideUserCog2:to,LucideUserMinus:pM,LucideUserMinus2:ao,LucideUserPen:mM,LucideUserPlus:yM,LucideUserPlus2:no,LucideUserRound:so,LucideUserRoundCheck:eo,LucideUserRoundCog:to,LucideUserRoundMinus:ao,LucideUserRoundPen:fM,LucideUserRoundPlus:no,LucideUserRoundSearch:xM,LucideUserRoundX:ro,LucideUserSearch:gM,LucideUserSquare:Ui,LucideUserSquare2:$i,LucideUserX:kM,LucideUserX2:ro,LucideUsers:mt,LucideUsers2:io,LucideUsersRound:io,LucideUtensils:co,LucideUtensilsCrossed:oo,LucideUtilityPole:vM,LucideVariable:wM,LucideVault:bM,LucideVegan:MM,LucideVenetianMask:jM,LucideVerified:sr,LucideVibrate:SM,LucideVibrateOff:CM,LucideVideo:LM,LucideVideoOff:NM,LucideVideotape:IM,LucideView:AM,LucideVoicemail:PM,LucideVolleyball:_M,LucideVolume:zM,LucideVolume1:RM,LucideVolume2:TM,LucideVolumeOff:DM,LucideVolumeX:qM,LucideVote:EM,LucideWallet:OM,LucideWallet2:lo,LucideWalletCards:FM,LucideWalletMinimal:lo,LucideWallpaper:HM,LucideWand:VM,LucideWand2:ho,LucideWandSparkles:ho,LucideWarehouse:BM,LucideWashingMachine:$M,LucideWatch:UM,LucideWaves:GM,LucideWaypoints:WM,LucideWebcam:ZM,LucideWebhook:XM,LucideWebhookOff:JM,LucideWeight:YM,LucideWheat:QM,LucideWheatOff:KM,LucideWholeWord:ej,LucideWifi:sj,LucideWifiHigh:tj,LucideWifiLow:aj,LucideWifiOff:nj,LucideWifiZero:rj,LucideWind:ij,LucideWine:cj,LucideWineOff:oj,LucideWorkflow:lj,LucideWorm:dj,LucideWrapText:hj,LucideWrench:uj,LucideX:Ct,LucideXCircle:ja,LucideXOctagon:As,LucideXSquare:Gi,LucideYoutube:pj,LucideZap:al,LucideZapOff:mj,LucideZoomIn:yj,LucideZoomOut:fj,Luggage:ik,LuggageIcon:ik,MSquare:Si,MSquareIcon:Si,Magnet:ok,MagnetIcon:ok,Mail:ca,MailCheck:ck,MailCheckIcon:ck,MailIcon:ca,MailMinus:lk,MailMinusIcon:lk,MailOpen:dk,MailOpenIcon:dk,MailPlus:hk,MailPlusIcon:hk,MailQuestion:uk,MailQuestionIcon:uk,MailSearch:pk,MailSearchIcon:pk,MailWarning:mk,MailWarningIcon:mk,MailX:yk,MailXIcon:yk,Mailbox:fk,MailboxIcon:fk,Mails:xk,MailsIcon:xk,Map:Ik,MapIcon:Ik,MapPin:Qe,MapPinCheck:kk,MapPinCheckIcon:kk,MapPinCheckInside:gk,MapPinCheckInsideIcon:gk,MapPinHouse:vk,MapPinHouseIcon:vk,MapPinIcon:Qe,MapPinMinus:bk,MapPinMinusIcon:bk,MapPinMinusInside:wk,MapPinMinusInsideIcon:wk,MapPinOff:Mk,MapPinOffIcon:Mk,MapPinPlus:Ck,MapPinPlusIcon:Ck,MapPinPlusInside:jk,MapPinPlusInsideIcon:jk,MapPinX:Nk,MapPinXIcon:Nk,MapPinXInside:Sk,MapPinXInsideIcon:Sk,MapPinned:Lk,MapPinnedIcon:Lk,Martini:Ak,MartiniIcon:Ak,Maximize:_k,Maximize2:Pk,Maximize2Icon:Pk,MaximizeIcon:_k,Medal:Rk,MedalIcon:Rk,Megaphone:Dk,MegaphoneIcon:Dk,MegaphoneOff:Tk,MegaphoneOffIcon:Tk,Meh:qk,MehIcon:qk,MemoryStick:zk,MemoryStickIcon:zk,Menu:ac,MenuIcon:ac,MenuSquare:Ni,MenuSquareIcon:Ni,Merge:Ek,MergeIcon:Ek,MessageCircle:Jk,MessageCircleCode:Fk,MessageCircleCodeIcon:Fk,MessageCircleDashed:Ok,MessageCircleDashedIcon:Ok,MessageCircleHeart:Hk,MessageCircleHeartIcon:Hk,MessageCircleIcon:Jk,MessageCircleMore:Vk,MessageCircleMoreIcon:Vk,MessageCircleOff:Bk,MessageCircleOffIcon:Bk,MessageCirclePlus:$k,MessageCirclePlusIcon:$k,MessageCircleQuestion:Uk,MessageCircleQuestionIcon:Uk,MessageCircleReply:Gk,MessageCircleReplyIcon:Gk,MessageCircleWarning:Wk,MessageCircleWarningIcon:Wk,MessageCircleX:Zk,MessageCircleXIcon:Zk,MessageSquare:Ln,MessageSquareCode:Xk,MessageSquareCodeIcon:Xk,MessageSquareDashed:Yk,MessageSquareDashedIcon:Yk,MessageSquareDiff:Kk,MessageSquareDiffIcon:Kk,MessageSquareDot:Qk,MessageSquareDotIcon:Qk,MessageSquareHeart:ev,MessageSquareHeartIcon:ev,MessageSquareIcon:Ln,MessageSquareLock:tv,MessageSquareLockIcon:tv,MessageSquareMore:av,MessageSquareMoreIcon:av,MessageSquareOff:nv,MessageSquareOffIcon:nv,MessageSquarePlus:rv,MessageSquarePlusIcon:rv,MessageSquareQuote:sv,MessageSquareQuoteIcon:sv,MessageSquareReply:iv,MessageSquareReplyIcon:iv,MessageSquareShare:ov,MessageSquareShareIcon:ov,MessageSquareText:cv,MessageSquareTextIcon:cv,MessageSquareWarning:lv,MessageSquareWarningIcon:lv,MessageSquareX:dv,MessageSquareXIcon:dv,MessagesSquare:hv,MessagesSquareIcon:hv,Mic:pv,Mic2:Ss,Mic2Icon:Ss,MicIcon:pv,MicOff:uv,MicOffIcon:uv,MicVocal:Ss,MicVocalIcon:Ss,Microchip:mv,MicrochipIcon:mv,Microscope:yv,MicroscopeIcon:yv,Microwave:fv,MicrowaveIcon:fv,Milestone:xv,MilestoneIcon:xv,Milk:kv,MilkIcon:kv,MilkOff:gv,MilkOffIcon:gv,Minimize:wv,Minimize2:vv,Minimize2Icon:vv,MinimizeIcon:wv,Minus:Jc,MinusCircle:zr,MinusCircleIcon:zr,MinusIcon:Jc,MinusSquare:Li,MinusSquareIcon:Li,Monitor:Tv,MonitorCheck:bv,MonitorCheckIcon:bv,MonitorCog:Mv,MonitorCogIcon:Mv,MonitorDot:jv,MonitorDotIcon:jv,MonitorDown:Cv,MonitorDownIcon:Cv,MonitorIcon:Tv,MonitorOff:Sv,MonitorOffIcon:Sv,MonitorPause:Nv,MonitorPauseIcon:Nv,MonitorPlay:Lv,MonitorPlayIcon:Lv,MonitorSmartphone:Iv,MonitorSmartphoneIcon:Iv,MonitorSpeaker:Av,MonitorSpeakerIcon:Av,MonitorStop:Pv,MonitorStopIcon:Pv,MonitorUp:_v,MonitorUpIcon:_v,MonitorX:Rv,MonitorXIcon:Rv,Moon:qv,MoonIcon:qv,MoonStar:Dv,MoonStarIcon:Dv,MoreHorizontal:ss,MoreHorizontalIcon:ss,MoreVertical:rs,MoreVerticalIcon:rs,Mountain:Ev,MountainIcon:Ev,MountainSnow:zv,MountainSnowIcon:zv,Mouse:$v,MouseIcon:$v,MouseOff:Fv,MouseOffIcon:Fv,MousePointer:Bv,MousePointer2:Ov,MousePointer2Icon:Ov,MousePointerBan:Hv,MousePointerBanIcon:Hv,MousePointerClick:Vv,MousePointerClickIcon:Vv,MousePointerIcon:Bv,MousePointerSquareDashed:gi,MousePointerSquareDashedIcon:gi,Move:n5,Move3D:Ns,Move3DIcon:Ns,Move3d:Ns,Move3dIcon:Ns,MoveDiagonal:Gv,MoveDiagonal2:Uv,MoveDiagonal2Icon:Uv,MoveDiagonalIcon:Gv,MoveDown:Jv,MoveDownIcon:Jv,MoveDownLeft:Wv,MoveDownLeftIcon:Wv,MoveDownRight:Zv,MoveDownRightIcon:Zv,MoveHorizontal:Xv,MoveHorizontalIcon:Xv,MoveIcon:n5,MoveLeft:Yv,MoveLeftIcon:Yv,MoveRight:Kv,MoveRightIcon:Kv,MoveUp:t5,MoveUpIcon:t5,MoveUpLeft:Qv,MoveUpLeftIcon:Qv,MoveUpRight:e5,MoveUpRightIcon:e5,MoveVertical:a5,MoveVerticalIcon:a5,Music:o5,Music2:r5,Music2Icon:r5,Music3:s5,Music3Icon:s5,Music4:i5,Music4Icon:i5,MusicIcon:o5,Navigation:h5,Navigation2:l5,Navigation2Icon:l5,Navigation2Off:c5,Navigation2OffIcon:c5,NavigationIcon:h5,NavigationOff:d5,NavigationOffIcon:d5,Network:u5,NetworkIcon:u5,Newspaper:Aa,NewspaperIcon:Aa,Nfc:p5,NfcIcon:p5,Notebook:x5,NotebookIcon:x5,NotebookPen:m5,NotebookPenIcon:m5,NotebookTabs:y5,NotebookTabsIcon:y5,NotebookText:f5,NotebookTextIcon:f5,NotepadText:k5,NotepadTextDashed:g5,NotepadTextDashedIcon:g5,NotepadTextIcon:k5,Nut:w5,NutIcon:w5,NutOff:v5,NutOffIcon:v5,Octagon:M5,OctagonAlert:Ls,OctagonAlertIcon:Ls,OctagonIcon:M5,OctagonMinus:b5,OctagonMinusIcon:b5,OctagonPause:Is,OctagonPauseIcon:Is,OctagonX:As,OctagonXIcon:As,Omega:j5,OmegaIcon:j5,Option:C5,OptionIcon:C5,Orbit:S5,OrbitIcon:S5,Origami:N5,OrigamiIcon:N5,Outdent:ws,OutdentIcon:ws,Package:Xc,Package2:L5,Package2Icon:L5,PackageCheck:I5,PackageCheckIcon:I5,PackageIcon:Xc,PackageMinus:A5,PackageMinusIcon:A5,PackageOpen:P5,PackageOpenIcon:P5,PackagePlus:_5,PackagePlusIcon:_5,PackageSearch:R5,PackageSearchIcon:R5,PackageX:T5,PackageXIcon:T5,PaintBucket:D5,PaintBucketIcon:D5,PaintRoller:q5,PaintRollerIcon:q5,Paintbrush:z5,Paintbrush2:Ps,Paintbrush2Icon:Ps,PaintbrushIcon:z5,PaintbrushVertical:Ps,PaintbrushVerticalIcon:Ps,Palette:E5,PaletteIcon:E5,Palmtree:Xi,PalmtreeIcon:Xi,PanelBottom:H5,PanelBottomClose:F5,PanelBottomCloseIcon:F5,PanelBottomDashed:_s,PanelBottomDashedIcon:_s,PanelBottomIcon:H5,PanelBottomInactive:_s,PanelBottomInactiveIcon:_s,PanelBottomOpen:O5,PanelBottomOpenIcon:O5,PanelLeft:qs,PanelLeftClose:Rs,PanelLeftCloseIcon:Rs,PanelLeftDashed:Ts,PanelLeftDashedIcon:Ts,PanelLeftIcon:qs,PanelLeftInactive:Ts,PanelLeftInactiveIcon:Ts,PanelLeftOpen:Ds,PanelLeftOpenIcon:Ds,PanelRight:$5,PanelRightClose:V5,PanelRightCloseIcon:V5,PanelRightDashed:zs,PanelRightDashedIcon:zs,PanelRightIcon:$5,PanelRightInactive:zs,PanelRightInactiveIcon:zs,PanelRightOpen:B5,PanelRightOpenIcon:B5,PanelTop:W5,PanelTopClose:U5,PanelTopCloseIcon:U5,PanelTopDashed:Es,PanelTopDashedIcon:Es,PanelTopIcon:W5,PanelTopInactive:Es,PanelTopInactiveIcon:Es,PanelTopOpen:G5,PanelTopOpenIcon:G5,PanelsLeftBottom:Z5,PanelsLeftBottomIcon:Z5,PanelsLeftRight:es,PanelsLeftRightIcon:es,PanelsRightBottom:J5,PanelsRightBottomIcon:J5,PanelsTopBottom:Gs,PanelsTopBottomIcon:Gs,PanelsTopLeft:Fs,PanelsTopLeftIcon:Fs,Paperclip:X5,PaperclipIcon:X5,Parentheses:Y5,ParenthesesIcon:Y5,ParkingCircle:Fr,ParkingCircleIcon:Fr,ParkingCircleOff:Er,ParkingCircleOffIcon:Er,ParkingMeter:K5,ParkingMeterIcon:K5,ParkingSquare:Pi,ParkingSquareIcon:Pi,ParkingSquareOff:Ai,ParkingSquareOffIcon:Ai,PartyPopper:Q5,PartyPopperIcon:Q5,Pause:e3,PauseCircle:Or,PauseCircleIcon:Or,PauseIcon:e3,PauseOctagon:Is,PauseOctagonIcon:Is,PawPrint:t3,PawPrintIcon:t3,PcCase:a3,PcCaseIcon:a3,Pen:Hs,PenBox:Ft,PenBoxIcon:Ft,PenIcon:Hs,PenLine:Os,PenLineIcon:Os,PenOff:n3,PenOffIcon:n3,PenSquare:Ft,PenSquareIcon:Ft,PenTool:r3,PenToolIcon:r3,Pencil:c3,PencilIcon:c3,PencilLine:s3,PencilLineIcon:s3,PencilOff:i3,PencilOffIcon:i3,PencilRuler:o3,PencilRulerIcon:o3,Pentagon:l3,PentagonIcon:l3,Percent:d3,PercentCircle:Hr,PercentCircleIcon:Hr,PercentDiamond:as,PercentDiamondIcon:as,PercentIcon:d3,PercentSquare:_i,PercentSquareIcon:_i,PersonStanding:h3,PersonStandingIcon:h3,PhilippinePeso:u3,PhilippinePesoIcon:u3,Phone:In,PhoneCall:p3,PhoneCallIcon:p3,PhoneForwarded:m3,PhoneForwardedIcon:m3,PhoneIcon:In,PhoneIncoming:y3,PhoneIncomingIcon:y3,PhoneMissed:f3,PhoneMissedIcon:f3,PhoneOff:x3,PhoneOffIcon:x3,PhoneOutgoing:g3,PhoneOutgoingIcon:g3,Pi:k3,PiIcon:k3,PiSquare:Ri,PiSquareIcon:Ri,Piano:v3,PianoIcon:v3,Pickaxe:w3,PickaxeIcon:w3,PictureInPicture:M3,PictureInPicture2:b3,PictureInPicture2Icon:b3,PictureInPictureIcon:M3,PieChart:wr,PieChartIcon:wr,PiggyBank:j3,PiggyBankIcon:j3,Pilcrow:N3,PilcrowIcon:N3,PilcrowLeft:C3,PilcrowLeftIcon:C3,PilcrowRight:S3,PilcrowRightIcon:S3,PilcrowSquare:Ti,PilcrowSquareIcon:Ti,Pill:I3,PillBottle:L3,PillBottleIcon:L3,PillIcon:I3,Pin:P3,PinIcon:P3,PinOff:A3,PinOffIcon:A3,Pipette:_3,PipetteIcon:_3,Pizza:R3,PizzaIcon:R3,Plane:q3,PlaneIcon:q3,PlaneLanding:T3,PlaneLandingIcon:T3,PlaneTakeoff:D3,PlaneTakeoffIcon:D3,Play:Yc,PlayCircle:Vr,PlayCircleIcon:Vr,PlayIcon:Yc,PlaySquare:Di,PlaySquareIcon:Di,Plug:E3,Plug2:z3,Plug2Icon:z3,PlugIcon:E3,PlugZap:Vs,PlugZap2:Vs,PlugZap2Icon:Vs,PlugZapIcon:Vs,Plus:la,PlusCircle:Br,PlusCircleIcon:Br,PlusIcon:la,PlusSquare:qi,PlusSquareIcon:qi,Pocket:O3,PocketIcon:O3,PocketKnife:F3,PocketKnifeIcon:F3,Podcast:H3,PodcastIcon:H3,Pointer:B3,PointerIcon:B3,PointerOff:V3,PointerOffIcon:V3,Popcorn:$3,PopcornIcon:$3,Popsicle:U3,PopsicleIcon:U3,PoundSterling:G3,PoundSterlingIcon:G3,Power:Z3,PowerCircle:$r,PowerCircleIcon:$r,PowerIcon:Z3,PowerOff:W3,PowerOffIcon:W3,PowerSquare:zi,PowerSquareIcon:zi,Presentation:J3,PresentationIcon:J3,Printer:Y3,PrinterCheck:X3,PrinterCheckIcon:X3,PrinterIcon:Y3,Projector:K3,ProjectorIcon:K3,Proportions:Q3,ProportionsIcon:Q3,Puzzle:e6,PuzzleIcon:e6,Pyramid:t6,PyramidIcon:t6,QrCode:a6,QrCodeIcon:a6,Quote:nc,QuoteIcon:nc,Rabbit:n6,RabbitIcon:n6,Radar:r6,RadarIcon:r6,Radiation:s6,RadiationIcon:s6,Radical:i6,RadicalIcon:i6,Radio:l6,RadioIcon:l6,RadioReceiver:o6,RadioReceiverIcon:o6,RadioTower:c6,RadioTowerIcon:c6,Radius:d6,RadiusIcon:d6,RailSymbol:h6,RailSymbolIcon:h6,Rainbow:u6,RainbowIcon:u6,Rat:p6,RatIcon:p6,Ratio:m6,RatioIcon:m6,Receipt:M6,ReceiptCent:y6,ReceiptCentIcon:y6,ReceiptEuro:f6,ReceiptEuroIcon:f6,ReceiptIcon:M6,ReceiptIndianRupee:x6,ReceiptIndianRupeeIcon:x6,ReceiptJapaneseYen:g6,ReceiptJapaneseYenIcon:g6,ReceiptPoundSterling:k6,ReceiptPoundSterlingIcon:k6,ReceiptRussianRuble:v6,ReceiptRussianRubleIcon:v6,ReceiptSwissFranc:w6,ReceiptSwissFrancIcon:w6,ReceiptText:b6,ReceiptTextIcon:b6,RectangleEllipsis:Bs,RectangleEllipsisIcon:Bs,RectangleHorizontal:j6,RectangleHorizontalIcon:j6,RectangleVertical:C6,RectangleVerticalIcon:C6,Recycle:S6,RecycleIcon:S6,Redo:I6,Redo2:N6,Redo2Icon:N6,RedoDot:L6,RedoDotIcon:L6,RedoIcon:I6,RefreshCcw:P6,RefreshCcwDot:A6,RefreshCcwDotIcon:A6,RefreshCcwIcon:P6,RefreshCw:R6,RefreshCwIcon:R6,RefreshCwOff:_6,RefreshCwOffIcon:_6,Refrigerator:T6,RefrigeratorIcon:T6,Regex:D6,RegexIcon:D6,RemoveFormatting:q6,RemoveFormattingIcon:q6,Repeat:F6,Repeat1:z6,Repeat1Icon:z6,Repeat2:E6,Repeat2Icon:E6,RepeatIcon:F6,Replace:H6,ReplaceAll:O6,ReplaceAllIcon:O6,ReplaceIcon:H6,Reply:B6,ReplyAll:V6,ReplyAllIcon:V6,ReplyIcon:B6,Rewind:$6,RewindIcon:$6,Ribbon:U6,RibbonIcon:U6,Rocket:G6,RocketIcon:G6,RockingChair:W6,RockingChairIcon:W6,RollerCoaster:Z6,RollerCoasterIcon:Z6,Rotate3D:$s,Rotate3DIcon:$s,Rotate3d:$s,Rotate3dIcon:$s,RotateCcw:X6,RotateCcwIcon:X6,RotateCcwSquare:J6,RotateCcwSquareIcon:J6,RotateCw:K6,RotateCwIcon:K6,RotateCwSquare:Y6,RotateCwSquareIcon:Y6,Route:e8,RouteIcon:e8,RouteOff:Q6,RouteOffIcon:Q6,Router:t8,RouterIcon:t8,Rows:Us,Rows2:Us,Rows2Icon:Us,Rows3:Gs,Rows3Icon:Gs,Rows4:a8,Rows4Icon:a8,RowsIcon:Us,Rss:n8,RssIcon:n8,Ruler:r8,RulerIcon:r8,RussianRuble:s8,RussianRubleIcon:s8,Sailboat:i8,SailboatIcon:i8,Salad:o8,SaladIcon:o8,Sandwich:c8,SandwichIcon:c8,Satellite:d8,SatelliteDish:l8,SatelliteDishIcon:l8,SatelliteIcon:d8,Save:p8,SaveAll:h8,SaveAllIcon:h8,SaveIcon:p8,SaveOff:u8,SaveOffIcon:u8,Scale:m8,Scale3D:Ws,Scale3DIcon:Ws,Scale3d:Ws,Scale3dIcon:Ws,ScaleIcon:m8,Scaling:y8,ScalingIcon:y8,Scan:M8,ScanBarcode:f8,ScanBarcodeIcon:f8,ScanEye:x8,ScanEyeIcon:x8,ScanFace:g8,ScanFaceIcon:g8,ScanIcon:M8,ScanLine:k8,ScanLineIcon:k8,ScanQrCode:v8,ScanQrCodeIcon:v8,ScanSearch:w8,ScanSearchIcon:w8,ScanText:b8,ScanTextIcon:b8,ScatterChart:br,ScatterChartIcon:br,School:j8,School2:Qi,School2Icon:Qi,SchoolIcon:j8,Scissors:S8,ScissorsIcon:S8,ScissorsLineDashed:C8,ScissorsLineDashedIcon:C8,ScissorsSquare:Ei,ScissorsSquareDashedBottom:li,ScissorsSquareDashedBottomIcon:li,ScissorsSquareIcon:Ei,ScreenShare:L8,ScreenShareIcon:L8,ScreenShareOff:N8,ScreenShareOffIcon:N8,Scroll:A8,ScrollIcon:A8,ScrollText:I8,ScrollTextIcon:I8,Search:Gt,SearchCheck:P8,SearchCheckIcon:P8,SearchCode:_8,SearchCodeIcon:_8,SearchIcon:Gt,SearchSlash:R8,SearchSlashIcon:R8,SearchX:T8,SearchXIcon:T8,Section:D8,SectionIcon:D8,Send:Kc,SendHorizonal:Zs,SendHorizonalIcon:Zs,SendHorizontal:Zs,SendHorizontalIcon:Zs,SendIcon:Kc,SendToBack:q8,SendToBackIcon:q8,SeparatorHorizontal:z8,SeparatorHorizontalIcon:z8,SeparatorVertical:E8,SeparatorVerticalIcon:E8,Server:V8,ServerCog:F8,ServerCogIcon:F8,ServerCrash:O8,ServerCrashIcon:O8,ServerIcon:V8,ServerOff:H8,ServerOffIcon:H8,Settings:vo,Settings2:B8,Settings2Icon:B8,SettingsIcon:vo,Shapes:$8,ShapesIcon:$8,Share:U8,Share2:wo,Share2Icon:wo,ShareIcon:U8,Sheet:G8,SheetIcon:G8,Shell:W8,ShellIcon:W8,Shield:An,ShieldAlert:Z8,ShieldAlertIcon:Z8,ShieldBan:J8,ShieldBanIcon:J8,ShieldCheck:rc,ShieldCheckIcon:rc,ShieldClose:Js,ShieldCloseIcon:Js,ShieldEllipsis:X8,ShieldEllipsisIcon:X8,ShieldHalf:Y8,ShieldHalfIcon:Y8,ShieldIcon:An,ShieldMinus:K8,ShieldMinusIcon:K8,ShieldOff:Q8,ShieldOffIcon:Q8,ShieldPlus:ew,ShieldPlusIcon:ew,ShieldQuestion:tw,ShieldQuestionIcon:tw,ShieldX:Js,ShieldXIcon:Js,Ship:nw,ShipIcon:nw,ShipWheel:aw,ShipWheelIcon:aw,Shirt:rw,ShirtIcon:rw,ShoppingBag:sw,ShoppingBagIcon:sw,ShoppingBasket:iw,ShoppingBasketIcon:iw,ShoppingCart:sc,ShoppingCartIcon:sc,Shovel:ow,ShovelIcon:ow,ShowerHead:cw,ShowerHeadIcon:cw,Shrink:lw,ShrinkIcon:lw,Shrub:dw,ShrubIcon:dw,Shuffle:hw,ShuffleIcon:hw,Sidebar:qs,SidebarClose:Rs,SidebarCloseIcon:Rs,SidebarIcon:qs,SidebarOpen:Ds,SidebarOpenIcon:Ds,Sigma:uw,SigmaIcon:uw,SigmaSquare:Fi,SigmaSquareIcon:Fi,Signal:Qc,SignalHigh:pw,SignalHighIcon:pw,SignalIcon:Qc,SignalLow:mw,SignalLowIcon:mw,SignalMedium:yw,SignalMediumIcon:yw,SignalZero:fw,SignalZeroIcon:fw,Signature:xw,SignatureIcon:xw,Signpost:kw,SignpostBig:gw,SignpostBigIcon:gw,SignpostIcon:kw,Siren:vw,SirenIcon:vw,SkipBack:ww,SkipBackIcon:ww,SkipForward:bw,SkipForwardIcon:bw,Skull:Mw,SkullIcon:Mw,Slack:jw,SlackIcon:jw,Slash:Cw,SlashIcon:Cw,SlashSquare:Oi,SlashSquareIcon:Oi,Slice:Sw,SliceIcon:Sw,Sliders:Xs,SlidersHorizontal:Pn,SlidersHorizontalIcon:Pn,SlidersIcon:Xs,SlidersVertical:Xs,SlidersVerticalIcon:Xs,Smartphone:Iw,SmartphoneCharging:Nw,SmartphoneChargingIcon:Nw,SmartphoneIcon:Iw,SmartphoneNfc:Lw,SmartphoneNfcIcon:Lw,Smile:Pw,SmileIcon:Pw,SmilePlus:Aw,SmilePlusIcon:Aw,Snail:_w,SnailIcon:_w,Snowflake:Rw,SnowflakeIcon:Rw,Sofa:Tw,SofaIcon:Tw,SortAsc:ar,SortAscIcon:ar,SortDesc:Qn,SortDescIcon:Qn,Soup:Dw,SoupIcon:Dw,Space:qw,SpaceIcon:qw,Spade:zw,SpadeIcon:zw,Sparkle:Ew,SparkleIcon:Ew,Sparkles:Ca,SparklesIcon:Ca,Speaker:Fw,SpeakerIcon:Fw,Speech:Ow,SpeechIcon:Ow,SpellCheck:Vw,SpellCheck2:Hw,SpellCheck2Icon:Hw,SpellCheckIcon:Vw,Spline:Bw,SplineIcon:Bw,Split:$w,SplitIcon:$w,SplitSquareHorizontal:Hi,SplitSquareHorizontalIcon:Hi,SplitSquareVertical:Vi,SplitSquareVerticalIcon:Vi,SprayCan:Uw,SprayCanIcon:Uw,Sprout:Gw,SproutIcon:Gw,Square:Kw,SquareActivity:Ys,SquareActivityIcon:Ys,SquareArrowDown:ei,SquareArrowDownIcon:ei,SquareArrowDownLeft:Ks,SquareArrowDownLeftIcon:Ks,SquareArrowDownRight:Qs,SquareArrowDownRightIcon:Qs,SquareArrowLeft:Ga,SquareArrowLeftIcon:Ga,SquareArrowOutDownLeft:ti,SquareArrowOutDownLeftIcon:ti,SquareArrowOutDownRight:ai,SquareArrowOutDownRightIcon:ai,SquareArrowOutUpLeft:ni,SquareArrowOutUpLeftIcon:ni,SquareArrowOutUpRight:ri,SquareArrowOutUpRightIcon:ri,SquareArrowRight:Wa,SquareArrowRightIcon:Wa,SquareArrowUp:oi,SquareArrowUpIcon:oi,SquareArrowUpLeft:si,SquareArrowUpLeftIcon:si,SquareArrowUpRight:ii,SquareArrowUpRightIcon:ii,SquareAsterisk:ci,SquareAsteriskIcon:ci,SquareBottomDashedScissors:li,SquareBottomDashedScissorsIcon:li,SquareChartGantt:ba,SquareChartGanttIcon:ba,SquareCheck:hi,SquareCheckBig:di,SquareCheckBigIcon:di,SquareCheckIcon:hi,SquareChevronDown:ui,SquareChevronDownIcon:ui,SquareChevronLeft:pi,SquareChevronLeftIcon:pi,SquareChevronRight:mi,SquareChevronRightIcon:mi,SquareChevronUp:yi,SquareChevronUpIcon:yi,SquareCode:fi,SquareCodeIcon:fi,SquareDashed:ki,SquareDashedBottom:Zw,SquareDashedBottomCode:Ww,SquareDashedBottomCodeIcon:Ww,SquareDashedBottomIcon:Zw,SquareDashedIcon:ki,SquareDashedKanban:xi,SquareDashedKanbanIcon:xi,SquareDashedMousePointer:gi,SquareDashedMousePointerIcon:gi,SquareDivide:vi,SquareDivideIcon:vi,SquareDot:wi,SquareDotIcon:wi,SquareEqual:bi,SquareEqualIcon:bi,SquareFunction:Mi,SquareFunctionIcon:Mi,SquareGanttChart:ba,SquareGanttChartIcon:ba,SquareIcon:Kw,SquareKanban:ji,SquareKanbanIcon:ji,SquareLibrary:Ci,SquareLibraryIcon:Ci,SquareM:Si,SquareMIcon:Si,SquareMenu:Ni,SquareMenuIcon:Ni,SquareMinus:Li,SquareMinusIcon:Li,SquareMousePointer:Ii,SquareMousePointerIcon:Ii,SquareParking:Pi,SquareParkingIcon:Pi,SquareParkingOff:Ai,SquareParkingOffIcon:Ai,SquarePen:Ft,SquarePenIcon:Ft,SquarePercent:_i,SquarePercentIcon:_i,SquarePi:Ri,SquarePiIcon:Ri,SquarePilcrow:Ti,SquarePilcrowIcon:Ti,SquarePlay:Di,SquarePlayIcon:Di,SquarePlus:qi,SquarePlusIcon:qi,SquarePower:zi,SquarePowerIcon:zi,SquareRadical:Jw,SquareRadicalIcon:Jw,SquareScissors:Ei,SquareScissorsIcon:Ei,SquareSigma:Fi,SquareSigmaIcon:Fi,SquareSlash:Oi,SquareSlashIcon:Oi,SquareSplitHorizontal:Hi,SquareSplitHorizontalIcon:Hi,SquareSplitVertical:Vi,SquareSplitVerticalIcon:Vi,SquareSquare:Xw,SquareSquareIcon:Xw,SquareStack:Yw,SquareStackIcon:Yw,SquareTerminal:Bi,SquareTerminalIcon:Bi,SquareUser:Ui,SquareUserIcon:Ui,SquareUserRound:$i,SquareUserRoundIcon:$i,SquareX:Gi,SquareXIcon:Gi,Squircle:Qw,SquircleIcon:Qw,Squirrel:eb,SquirrelIcon:eb,Stamp:tb,StampIcon:tb,Star:jt,StarHalf:ab,StarHalfIcon:ab,StarIcon:jt,StarOff:nb,StarOffIcon:nb,Stars:Ca,StarsIcon:Ca,StepBack:rb,StepBackIcon:rb,StepForward:sb,StepForwardIcon:sb,Stethoscope:ib,StethoscopeIcon:ib,Sticker:ob,StickerIcon:ob,StickyNote:cb,StickyNoteIcon:cb,StopCircle:Gr,StopCircleIcon:Gr,Store:lb,StoreIcon:lb,StretchHorizontal:db,StretchHorizontalIcon:db,StretchVertical:hb,StretchVerticalIcon:hb,Strikethrough:ub,StrikethroughIcon:ub,Subscript:pb,SubscriptIcon:pb,Subtitles:dr,SubtitlesIcon:dr,Sun:gb,SunDim:mb,SunDimIcon:mb,SunIcon:gb,SunMedium:yb,SunMediumIcon:yb,SunMoon:fb,SunMoonIcon:fb,SunSnow:xb,SunSnowIcon:xb,Sunrise:kb,SunriseIcon:kb,Sunset:vb,SunsetIcon:vb,Superscript:wb,SuperscriptIcon:wb,SwatchBook:bb,SwatchBookIcon:bb,SwissFranc:Mb,SwissFrancIcon:Mb,SwitchCamera:jb,SwitchCameraIcon:jb,Sword:Cb,SwordIcon:Cb,Swords:Sb,SwordsIcon:Sb,Syringe:Nb,SyringeIcon:Nb,Table:Db,Table2:Lb,Table2Icon:Lb,TableCellsMerge:Ib,TableCellsMergeIcon:Ib,TableCellsSplit:Ab,TableCellsSplitIcon:Ab,TableColumnsSplit:Pb,TableColumnsSplitIcon:Pb,TableIcon:Db,TableOfContents:_b,TableOfContentsIcon:_b,TableProperties:Rb,TablePropertiesIcon:Rb,TableRowsSplit:Tb,TableRowsSplitIcon:Tb,Tablet:zb,TabletIcon:zb,TabletSmartphone:qb,TabletSmartphoneIcon:qb,Tablets:Eb,TabletsIcon:Eb,Tag:el,TagIcon:el,Tags:Fb,TagsIcon:Fb,Tally1:Ob,Tally1Icon:Ob,Tally2:Hb,Tally2Icon:Hb,Tally3:Vb,Tally3Icon:Vb,Tally4:Bb,Tally4Icon:Bb,Tally5:$b,Tally5Icon:$b,Tangent:Ub,TangentIcon:Ub,Target:Gb,TargetIcon:Gb,Telescope:Wb,TelescopeIcon:Wb,Tent:Jb,TentIcon:Jb,TentTree:Zb,TentTreeIcon:Zb,Terminal:Xb,TerminalIcon:Xb,TerminalSquare:Bi,TerminalSquareIcon:Bi,TestTube:Yb,TestTube2:Wi,TestTube2Icon:Wi,TestTubeDiagonal:Wi,TestTubeDiagonalIcon:Wi,TestTubeIcon:Yb,TestTubes:Kb,TestTubesIcon:Kb,Text:n7,TextCursor:e7,TextCursorIcon:e7,TextCursorInput:Qb,TextCursorInputIcon:Qb,TextIcon:n7,TextQuote:t7,TextQuoteIcon:t7,TextSearch:a7,TextSearchIcon:a7,TextSelect:Zi,TextSelectIcon:Zi,TextSelection:Zi,TextSelectionIcon:Zi,Theater:r7,TheaterIcon:r7,Thermometer:o7,ThermometerIcon:o7,ThermometerSnowflake:s7,ThermometerSnowflakeIcon:s7,ThermometerSun:i7,ThermometerSunIcon:i7,ThumbsDown:c7,ThumbsDownIcon:c7,ThumbsUp:l7,ThumbsUpIcon:l7,Ticket:f7,TicketCheck:d7,TicketCheckIcon:d7,TicketIcon:f7,TicketMinus:h7,TicketMinusIcon:h7,TicketPercent:u7,TicketPercentIcon:u7,TicketPlus:p7,TicketPlusIcon:p7,TicketSlash:m7,TicketSlashIcon:m7,TicketX:y7,TicketXIcon:y7,Tickets:g7,TicketsIcon:g7,TicketsPlane:x7,TicketsPlaneIcon:x7,Timer:w7,TimerIcon:w7,TimerOff:k7,TimerOffIcon:k7,TimerReset:v7,TimerResetIcon:v7,ToggleLeft:b7,ToggleLeftIcon:b7,ToggleRight:M7,ToggleRightIcon:M7,Tornado:j7,TornadoIcon:j7,Torus:C7,TorusIcon:C7,Touchpad:N7,TouchpadIcon:N7,TouchpadOff:S7,TouchpadOffIcon:S7,TowerControl:L7,TowerControlIcon:L7,ToyBrick:I7,ToyBrickIcon:I7,Tractor:A7,TractorIcon:A7,TrafficCone:P7,TrafficConeIcon:P7,Train:Ji,TrainFront:R7,TrainFrontIcon:R7,TrainFrontTunnel:_7,TrainFrontTunnelIcon:_7,TrainIcon:Ji,TrainTrack:T7,TrainTrackIcon:T7,TramFront:Ji,TramFrontIcon:Ji,Trash:D7,Trash2:bo,Trash2Icon:bo,TrashIcon:D7,TreeDeciduous:q7,TreeDeciduousIcon:q7,TreePalm:Xi,TreePalmIcon:Xi,TreePine:z7,TreePineIcon:z7,Trees:E7,TreesIcon:E7,Trello:F7,TrelloIcon:F7,TrendingDown:O7,TrendingDownIcon:O7,TrendingUp:Pa,TrendingUpDown:H7,TrendingUpDownIcon:H7,TrendingUpIcon:Pa,Triangle:B7,TriangleAlert:Yi,TriangleAlertIcon:Yi,TriangleIcon:B7,TriangleRight:V7,TriangleRightIcon:V7,Trophy:$7,TrophyIcon:$7,Truck:U7,TruckIcon:U7,Turtle:G7,TurtleIcon:G7,Tv:Z7,Tv2:Ki,Tv2Icon:Ki,TvIcon:Z7,TvMinimal:Ki,TvMinimalIcon:Ki,TvMinimalPlay:W7,TvMinimalPlayIcon:W7,Twitch:J7,TwitchIcon:J7,Twitter:X7,TwitterIcon:X7,Type:K7,TypeIcon:K7,TypeOutline:Y7,TypeOutlineIcon:Y7,Umbrella:eM,UmbrellaIcon:eM,UmbrellaOff:Q7,UmbrellaOffIcon:Q7,Underline:tM,UnderlineIcon:tM,Undo:rM,Undo2:aM,Undo2Icon:aM,UndoDot:nM,UndoDotIcon:nM,UndoIcon:rM,UnfoldHorizontal:sM,UnfoldHorizontalIcon:sM,UnfoldVertical:iM,UnfoldVerticalIcon:iM,Ungroup:oM,UngroupIcon:oM,University:Qi,UniversityIcon:Qi,Unlink:lM,Unlink2:cM,Unlink2Icon:cM,UnlinkIcon:lM,Unlock:Cs,UnlockIcon:Cs,UnlockKeyhole:js,UnlockKeyholeIcon:js,Unplug:dM,UnplugIcon:dM,Upload:tl,UploadCloud:xn,UploadCloudIcon:xn,UploadIcon:tl,Usb:hM,UsbIcon:hM,User:ic,User2:so,User2Icon:so,UserCheck:Mo,UserCheck2:eo,UserCheck2Icon:eo,UserCheckIcon:Mo,UserCircle:Zr,UserCircle2:Wr,UserCircle2Icon:Wr,UserCircleIcon:Zr,UserCog:uM,UserCog2:to,UserCog2Icon:to,UserCogIcon:uM,UserIcon:ic,UserMinus:pM,UserMinus2:ao,UserMinus2Icon:ao,UserMinusIcon:pM,UserPen:mM,UserPenIcon:mM,UserPlus:yM,UserPlus2:no,UserPlus2Icon:no,UserPlusIcon:yM,UserRound:so,UserRoundCheck:eo,UserRoundCheckIcon:eo,UserRoundCog:to,UserRoundCogIcon:to,UserRoundIcon:so,UserRoundMinus:ao,UserRoundMinusIcon:ao,UserRoundPen:fM,UserRoundPenIcon:fM,UserRoundPlus:no,UserRoundPlusIcon:no,UserRoundSearch:xM,UserRoundSearchIcon:xM,UserRoundX:ro,UserRoundXIcon:ro,UserSearch:gM,UserSearchIcon:gM,UserSquare:Ui,UserSquare2:$i,UserSquare2Icon:$i,UserSquareIcon:Ui,UserX:kM,UserX2:ro,UserX2Icon:ro,UserXIcon:kM,Users:mt,Users2:io,Users2Icon:io,UsersIcon:mt,UsersRound:io,UsersRoundIcon:io,Utensils:co,UtensilsCrossed:oo,UtensilsCrossedIcon:oo,UtensilsIcon:co,UtilityPole:vM,UtilityPoleIcon:vM,Variable:wM,VariableIcon:wM,Vault:bM,VaultIcon:bM,Vegan:MM,VeganIcon:MM,VenetianMask:jM,VenetianMaskIcon:jM,Verified:sr,VerifiedIcon:sr,Vibrate:SM,VibrateIcon:SM,VibrateOff:CM,VibrateOffIcon:CM,Video:LM,VideoIcon:LM,VideoOff:NM,VideoOffIcon:NM,Videotape:IM,VideotapeIcon:IM,View:AM,ViewIcon:AM,Voicemail:PM,VoicemailIcon:PM,Volleyball:_M,VolleyballIcon:_M,Volume:zM,Volume1:RM,Volume1Icon:RM,Volume2:TM,Volume2Icon:TM,VolumeIcon:zM,VolumeOff:DM,VolumeOffIcon:DM,VolumeX:qM,VolumeXIcon:qM,Vote:EM,VoteIcon:EM,Wallet:OM,Wallet2:lo,Wallet2Icon:lo,WalletCards:FM,WalletCardsIcon:FM,WalletIcon:OM,WalletMinimal:lo,WalletMinimalIcon:lo,Wallpaper:HM,WallpaperIcon:HM,Wand:VM,Wand2:ho,Wand2Icon:ho,WandIcon:VM,WandSparkles:ho,WandSparklesIcon:ho,Warehouse:BM,WarehouseIcon:BM,WashingMachine:$M,WashingMachineIcon:$M,Watch:UM,WatchIcon:UM,Waves:GM,WavesIcon:GM,Waypoints:WM,WaypointsIcon:WM,Webcam:ZM,WebcamIcon:ZM,Webhook:XM,WebhookIcon:XM,WebhookOff:JM,WebhookOffIcon:JM,Weight:YM,WeightIcon:YM,Wheat:QM,WheatIcon:QM,WheatOff:KM,WheatOffIcon:KM,WholeWord:ej,WholeWordIcon:ej,Wifi:sj,WifiHigh:tj,WifiHighIcon:tj,WifiIcon:sj,WifiLow:aj,WifiLowIcon:aj,WifiOff:nj,WifiOffIcon:nj,WifiZero:rj,WifiZeroIcon:rj,Wind:ij,WindIcon:ij,Wine:cj,WineIcon:cj,WineOff:oj,WineOffIcon:oj,Workflow:lj,WorkflowIcon:lj,Worm:dj,WormIcon:dj,WrapText:hj,WrapTextIcon:hj,Wrench:uj,WrenchIcon:uj,X:Ct,XCircle:ja,XCircleIcon:ja,XIcon:Ct,XOctagon:As,XOctagonIcon:As,XSquare:Gi,XSquareIcon:Gi,Youtube:pj,YoutubeIcon:pj,Zap:al,ZapIcon:al,ZapOff:mj,ZapOffIcon:mj,ZoomIn:yj,ZoomInIcon:yj,ZoomOut:fj,ZoomOutIcon:fj,createLucideIcon:c,icons:DD},Symbol.toStringTag,{value:"Module"})),zD=({availableTags:t,selectedTagIds:a,onTagSelect:n,onTagDeselect:r,onCreateTag:s,maxTags:i=10,placeholder:o="Add tags..."})=>{const[l,d]=M.useState(!1),[h,u]=M.useState(""),[p,y]=M.useState("#3B82F6"),[m,x]=M.useState(""),[f,v]=M.useState(-1),k=M.useMemo(()=>t.filter(S=>S.name.toLowerCase().includes(m.toLowerCase())),[t,m]),w=M.useMemo(()=>t.filter(S=>a.includes(S.id)),[t,a]),b=M.useMemo(()=>k.filter(S=>!a.includes(S.id)),[k,a]),C=m.trim().length>0&&!t.some(S=>S.name.toLowerCase()===m.trim().toLowerCase()),j=b.length+(C?1:0),I=async()=>{const S=h.trim();if(S)try{await s({name:S,color:p}),u(""),d(!1)}catch(L){console.error("Failed to create tag:",L)}},N=S=>{if(j)switch(S.key){case"ArrowDown":{S.preventDefault(),v(L=>(L+1)%j);break}case"ArrowUp":{S.preventDefault(),v(L=>(L-1+j)%j);break}case"Enter":{if(f===-1)return;if(S.preventDefault(),f<b.length){const L=b[f];n(L.id),x(""),v(-1)}else C&&(d(!0),u(m.trim()),x(""),v(-1));break}case"Escape":{x(""),v(-1);break}}};return e.jsxs("div",{className:"tag-picker",children:[e.jsx("div",{className:"selected-tags flex flex-wrap gap-2 mb-2",children:w.map(S=>e.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1 rounded-full text-sm border",style:{backgroundColor:`${S.color}20`,color:S.color,borderColor:S.color},children:[S.name,e.jsx("button",{type:"button",onClick:()=>r(S.id),className:"hover:opacity-70","aria-label":`Remove ${S.name}`,children:e.jsx(Ct,{className:"w-3 h-3"})})]},S.id))}),a.length<i&&e.jsxs("div",{className:"tag-selector relative",children:[e.jsxs("div",{className:"relative",children:[e.jsx(el,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-gray-400"}),e.jsx("input",{type:"text",value:m,onChange:S=>{x(S.target.value),v(-1)},onKeyDown:N,placeholder:o,className:"w-full border rounded px-9 py-2","aria-haspopup":"listbox","aria-expanded":m.length>0})]}),m&&e.jsxs("div",{role:"listbox",className:"absolute z-10 w-full mt-1 bg-white border rounded shadow-lg max-h-48 overflow-y-auto",children:[b.map((S,L)=>e.jsxs("button",{type:"button",role:"option","aria-selected":f===L,onClick:()=>{n(S.id),x(""),v(-1)},className:`w-full px-3 py-2 text-left hover:bg-gray-100 flex items-center gap-2 ${f===L?"bg-gray-100":""}`,children:[e.jsx("span",{className:"w-3 h-3 rounded-full",style:{backgroundColor:S.color}}),e.jsx("span",{children:S.name}),S.category&&e.jsxs("span",{className:"text-xs text-gray-500",children:["(",S.category,")"]})]},S.id)),C&&e.jsxs("button",{type:"button",role:"option","aria-selected":f===b.length,onClick:()=>{d(!0),u(m.trim()),x(""),v(-1)},className:`w-full px-3 py-2 text-left hover:bg-gray-100 text-blue-600 flex items-center gap-2 ${f===b.length?"bg-gray-100":""}`,children:[e.jsx(la,{className:"w-4 h-4"}),'Create "',m.trim(),'"']}),!b.length&&!C&&e.jsx("div",{className:"px-3 py-2 text-sm text-gray-500",children:"No tags found."})]})]}),l&&e.jsxs("div",{className:"create-tag-form mt-2 p-3 border rounded",children:[e.jsx("input",{type:"text",value:h,onChange:S=>u(S.target.value),placeholder:"Tag name",className:"w-full border rounded px-3 py-2 mb-2"}),e.jsxs("div",{className:"flex flex-wrap gap-2 items-center",children:[e.jsxs("label",{className:"flex items-center gap-2 text-sm text-gray-600",children:["Color",e.jsx("input",{type:"color",value:p,onChange:S=>y(S.target.value),className:"w-12 h-8 rounded","aria-label":"Pick tag color"})]}),e.jsx("button",{type:"button",onClick:I,onKeyDown:S=>{S.key==="Enter"&&(S.preventDefault(),I())},className:"flex-1 bg-blue-600 text-white px-3 py-2 rounded hover:bg-blue-700",children:"Create"}),e.jsx("button",{type:"button",onClick:()=>{d(!1),u("")},className:"px-3 py-2 border rounded hover:bg-gray-100",children:"Cancel"})]})]})]})},ED={sm:"px-2 py-0.5 text-xs",md:"px-3 py-1 text-sm",lg:"px-4 py-1.5 text-base"},VC=({name:t,color:a,size:n="md",removable:r=!1,onRemove:s,onClick:i,href:o,className:l})=>{const d=!!(i||o),h=p=>{!i||o||(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),i())},u=o?"a":"span";return e.jsxs(u,{className:`inline-flex items-center gap-1 rounded-full font-medium border transition-opacity ${ED[n]} ${d?"cursor-pointer hover:opacity-80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2":""} ${l??""}`,style:{backgroundColor:`${a}20`,color:a,borderColor:a},onClick:i,onKeyDown:h,role:!o&&i?"button":void 0,tabIndex:!o&&i?0:void 0,href:o,children:[t,r&&s&&e.jsx("button",{type:"button",onClick:p=>{p.stopPropagation(),s()},className:"hover:opacity-70 ml-1","aria-label":`Remove ${t} tag`,children:e.jsx(Ct,{className:"w-3 h-3"})})]})};function Xa(t,a,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t==null||t(s),n===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}function FD(t,a=[]){let n=[];function r(i,o){const l=g.createContext(o),d=n.length;n=[...n,o];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=n.map(o=>g.createContext(o));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[r,OD(s,...a)]}function OD(...t){const a=t[0];if(t.length===1)return a;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:o}),[o])}};return n.scopeName=a.scopeName,n}function HD(t,a=[]){let n=[];function r(i,o){const l=g.createContext(o),d=n.length;n=[...n,o];function h(p){const{scope:y,children:m,...x}=p,f=(y==null?void 0:y[t][d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})}function u(p,y){const m=(y==null?void 0:y[t][d])||l,x=g.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${i}\``)}return h.displayName=i+"Provider",[h,u]}const s=()=>{const i=n.map(o=>g.createContext(o));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[r,VD(s,...a)]}function VD(...t){const a=t[0];if(t.length===1)return a;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:o}),[o])}};return n.scopeName=a.scopeName,n}function BD(t,a){typeof t=="function"?t(a):t!=null&&(t.current=a)}function BC(...t){return a=>t.forEach(n=>BD(n,a))}function Sj(...t){return g.useCallback(BC(...t),t)}var nC=g.forwardRef((t,a)=>{const{children:n,...r}=t,s=g.Children.toArray(n),i=s.find(UD);if(i){const o=i.props.children,l=s.map(d=>d===i?g.Children.count(o)>1?g.Children.only(null):g.isValidElement(o)?o.props.children:null:d);return e.jsx(rC,{...r,ref:a,children:g.isValidElement(o)?g.cloneElement(o,void 0,l):null})}return e.jsx(rC,{...r,ref:a,children:n})});nC.displayName="Slot";var rC=g.forwardRef((t,a)=>{const{children:n,...r}=t;if(g.isValidElement(n)){const s=WD(n);return g.cloneElement(n,{...GD(r,n.props),ref:a?BC(a,s):s})}return g.Children.count(n)>1?g.Children.only(null):null});rC.displayName="SlotClone";var $D=({children:t})=>e.jsx(e.Fragment,{children:t});function UD(t){return g.isValidElement(t)&&t.type===$D}function GD(t,a){const n={...a};for(const r in a){const s=t[r],i=a[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...l)=>{i(...l),s(...l)}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...t,...n}}function WD(t){var r,s;let a=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=a&&"isReactWarning"in a&&a.isReactWarning;return n?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=a&&"isReactWarning"in a&&a.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function ZD(t){const a=t+"CollectionProvider",[n,r]=HD(a),[s,i]=n(a,{collectionRef:{current:null},itemMap:new Map}),o=m=>{const{scope:x,children:f}=m,v=M.useRef(null),k=M.useRef(new Map).current;return e.jsx(s,{scope:x,itemMap:k,collectionRef:v,children:f})};o.displayName=a;const l=t+"CollectionSlot",d=M.forwardRef((m,x)=>{const{scope:f,children:v}=m,k=i(l,f),w=Sj(x,k.collectionRef);return e.jsx(nC,{ref:w,children:v})});d.displayName=l;const h=t+"CollectionItemSlot",u="data-radix-collection-item",p=M.forwardRef((m,x)=>{const{scope:f,children:v,...k}=m,w=M.useRef(null),b=Sj(x,w),C=i(h,f);return M.useEffect(()=>(C.itemMap.set(w,{ref:w,...k}),()=>void C.itemMap.delete(w))),e.jsx(nC,{[u]:"",ref:b,children:v})});p.displayName=h;function y(m){const x=i(t+"CollectionConsumer",m);return M.useCallback(()=>{const v=x.collectionRef.current;if(!v)return[];const k=Array.from(v.querySelectorAll(`[${u}]`));return Array.from(x.itemMap.values()).sort((C,j)=>k.indexOf(C.ref.current)-k.indexOf(j.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:o,Slot:d,ItemSlot:p},y,r]}function JD(t,a=[]){let n=[];function r(i,o){const l=g.createContext(o),d=n.length;n=[...n,o];function h(p){const{scope:y,children:m,...x}=p,f=(y==null?void 0:y[t][d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})}function u(p,y){const m=(y==null?void 0:y[t][d])||l,x=g.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${i}\``)}return h.displayName=i+"Provider",[h,u]}const s=()=>{const i=n.map(o=>g.createContext(o));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[r,XD(s,...a)]}function XD(...t){const a=t[0];if(t.length===1)return a;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:o}),[o])}};return n.scopeName=a.scopeName,n}var sC=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},YD=g.useId||(()=>{}),KD=0;function XL(t){const[a,n]=g.useState(YD());return sC(()=>{t||n(r=>r??String(KD++))},[t]),t||(a?`radix-${a}`:"")}var YL=g.forwardRef((t,a)=>{const{children:n,...r}=t,s=g.Children.toArray(n),i=s.find(eq);if(i){const o=i.props.children,l=s.map(d=>d===i?g.Children.count(o)>1?g.Children.only(null):g.isValidElement(o)?o.props.children:null:d);return e.jsx(iC,{...r,ref:a,children:g.isValidElement(o)?g.cloneElement(o,void 0,l):null})}return e.jsx(iC,{...r,ref:a,children:n})});YL.displayName="Slot";var iC=g.forwardRef((t,a)=>{const{children:n,...r}=t;if(g.isValidElement(n)){const s=aq(n);return g.cloneElement(n,{...tq(r,n.props),ref:a?BC(a,s):s})}return g.Children.count(n)>1?g.Children.only(null):null});iC.displayName="SlotClone";var QD=({children:t})=>e.jsx(e.Fragment,{children:t});function eq(t){return g.isValidElement(t)&&t.type===QD}function tq(t,a){const n={...a};for(const r in a){const s=t[r],i=a[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...l)=>{i(...l),s(...l)}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...t,...n}}function aq(t){var r,s;let a=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=a&&"isReactWarning"in a&&a.isReactWarning;return n?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=a&&"isReactWarning"in a&&a.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var nq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Do=nq.reduce((t,a)=>{const n=g.forwardRef((r,s)=>{const{asChild:i,...o}=r,l=i?YL:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(l,{...o,ref:s})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{});function $C(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...n)=>{var r;return(r=a.current)==null?void 0:r.call(a,...n)},[])}function KL({prop:t,defaultProp:a,onChange:n=()=>{}}){const[r,s]=rq({defaultProp:a,onChange:n}),i=t!==void 0,o=i?t:r,l=$C(n),d=g.useCallback(h=>{if(i){const p=typeof h=="function"?h(t):h;p!==t&&l(p)}else s(h)},[i,t,s,l]);return[o,d]}function rq({defaultProp:t,onChange:a}){const n=g.useState(t),[r]=n,s=g.useRef(r),i=$C(a);return g.useEffect(()=>{s.current!==r&&(i(r),s.current=r)},[r,s,i]),n}var sq=g.createContext(void 0);function QL(t){const a=g.useContext(sq);return t||a||"ltr"}var M9="rovingFocusGroup.onEntryFocus",iq={bubbles:!1,cancelable:!0},Gj="RovingFocusGroup",[oC,eI,oq]=ZD(Gj),[cq,tI]=JD(Gj,[oq]),[lq,dq]=cq(Gj),aI=g.forwardRef((t,a)=>e.jsx(oC.Provider,{scope:t.__scopeRovingFocusGroup,children:e.jsx(oC.Slot,{scope:t.__scopeRovingFocusGroup,children:e.jsx(hq,{...t,ref:a})})}));aI.displayName=Gj;var hq=g.forwardRef((t,a)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:s=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:d,onEntryFocus:h,preventScrollOnEntryFocus:u=!1,...p}=t,y=g.useRef(null),m=Sj(a,y),x=QL(i),[f=null,v]=KL({prop:o,defaultProp:l,onChange:d}),[k,w]=g.useState(!1),b=$C(h),C=eI(n),j=g.useRef(!1),[I,N]=g.useState(0);return g.useEffect(()=>{const S=y.current;if(S)return S.addEventListener(M9,b),()=>S.removeEventListener(M9,b)},[b]),e.jsx(lq,{scope:n,orientation:r,dir:x,loop:s,currentTabStopId:f,onItemFocus:g.useCallback(S=>v(S),[v]),onItemShiftTab:g.useCallback(()=>w(!0),[]),onFocusableItemAdd:g.useCallback(()=>N(S=>S+1),[]),onFocusableItemRemove:g.useCallback(()=>N(S=>S-1),[]),children:e.jsx(Do.div,{tabIndex:k||I===0?-1:0,"data-orientation":r,...p,ref:m,style:{outline:"none",...t.style},onMouseDown:Xa(t.onMouseDown,()=>{j.current=!0}),onFocus:Xa(t.onFocus,S=>{const L=!j.current;if(S.target===S.currentTarget&&L&&!k){const q=new CustomEvent(M9,iq);if(S.currentTarget.dispatchEvent(q),!q.defaultPrevented){const _=C().filter(V=>V.focusable),A=_.find(V=>V.active),D=_.find(V=>V.id===f),G=[A,D,..._].filter(Boolean).map(V=>V.ref.current);sI(G,u)}}j.current=!1}),onBlur:Xa(t.onBlur,()=>w(!1))})})}),nI="RovingFocusGroupItem",rI=g.forwardRef((t,a)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:s=!1,tabStopId:i,...o}=t,l=XL(),d=i||l,h=dq(nI,n),u=h.currentTabStopId===d,p=eI(n),{onFocusableItemAdd:y,onFocusableItemRemove:m}=h;return g.useEffect(()=>{if(r)return y(),()=>m()},[r,y,m]),e.jsx(oC.ItemSlot,{scope:n,id:d,focusable:r,active:s,children:e.jsx(Do.span,{tabIndex:u?0:-1,"data-orientation":h.orientation,...o,ref:a,onMouseDown:Xa(t.onMouseDown,x=>{r?h.onItemFocus(d):x.preventDefault()}),onFocus:Xa(t.onFocus,()=>h.onItemFocus(d)),onKeyDown:Xa(t.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){h.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const f=mq(x,h.orientation,h.dir);if(f!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let k=p().filter(w=>w.focusable).map(w=>w.ref.current);if(f==="last")k.reverse();else if(f==="prev"||f==="next"){f==="prev"&&k.reverse();const w=k.indexOf(x.currentTarget);k=h.loop?yq(k,w+1):k.slice(w+1)}setTimeout(()=>sI(k))}})})})});rI.displayName=nI;var uq={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function pq(t,a){return a!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function mq(t,a,n){const r=pq(t.key,n);if(!(a==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(a==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return uq[r]}function sI(t,a=!1){const n=document.activeElement;for(const r of t)if(r===n||(r.focus({preventScroll:a}),document.activeElement!==n))return}function yq(t,a){return t.map((n,r)=>t[(a+r)%t.length])}var fq=aI,xq=rI;function gq(t,a){return g.useReducer((n,r)=>a[n][r]??n,t)}var iI=t=>{const{present:a,children:n}=t,r=kq(a),s=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),i=Sj(r.ref,vq(s));return typeof n=="function"||r.isPresent?g.cloneElement(s,{ref:i}):null};iI.displayName="Presence";function kq(t){const[a,n]=g.useState(),r=g.useRef({}),s=g.useRef(t),i=g.useRef("none"),o=t?"mounted":"unmounted",[l,d]=gq(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const h=Nl(r.current);i.current=l==="mounted"?h:"none"},[l]),sC(()=>{const h=r.current,u=s.current;if(u!==t){const y=i.current,m=Nl(h);t?d("MOUNT"):m==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(u&&y!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,d]),sC(()=>{if(a){let h;const u=a.ownerDocument.defaultView??window,p=m=>{const f=Nl(r.current).includes(m.animationName);if(m.target===a&&f&&(d("ANIMATION_END"),!s.current)){const v=a.style.animationFillMode;a.style.animationFillMode="forwards",h=u.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=v)})}},y=m=>{m.target===a&&(i.current=Nl(r.current))};return a.addEventListener("animationstart",y),a.addEventListener("animationcancel",p),a.addEventListener("animationend",p),()=>{u.clearTimeout(h),a.removeEventListener("animationstart",y),a.removeEventListener("animationcancel",p),a.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[a,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(h=>{h&&(r.current=getComputedStyle(h)),n(h)},[])}}function Nl(t){return(t==null?void 0:t.animationName)||"none"}function vq(t){var r,s;let a=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=a&&"isReactWarning"in a&&a.isReactWarning;return n?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=a&&"isReactWarning"in a&&a.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var UC="Tabs",[wq,iZ]=FD(UC,[tI]),oI=tI(),[bq,GC]=wq(UC),cI=g.forwardRef((t,a)=>{const{__scopeTabs:n,value:r,onValueChange:s,defaultValue:i,orientation:o="horizontal",dir:l,activationMode:d="automatic",...h}=t,u=QL(l),[p,y]=KL({prop:r,onChange:s,defaultProp:i});return e.jsx(bq,{scope:n,baseId:XL(),value:p,onValueChange:y,orientation:o,dir:u,activationMode:d,children:e.jsx(Do.div,{dir:u,"data-orientation":o,...h,ref:a})})});cI.displayName=UC;var lI="TabsList",dI=g.forwardRef((t,a)=>{const{__scopeTabs:n,loop:r=!0,...s}=t,i=GC(lI,n),o=oI(n);return e.jsx(fq,{asChild:!0,...o,orientation:i.orientation,dir:i.dir,loop:r,children:e.jsx(Do.div,{role:"tablist","aria-orientation":i.orientation,...s,ref:a})})});dI.displayName=lI;var hI="TabsTrigger",uI=g.forwardRef((t,a)=>{const{__scopeTabs:n,value:r,disabled:s=!1,...i}=t,o=GC(hI,n),l=oI(n),d=yI(o.baseId,r),h=fI(o.baseId,r),u=r===o.value;return e.jsx(xq,{asChild:!0,...l,focusable:!s,active:u,children:e.jsx(Do.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":h,"data-state":u?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:d,...i,ref:a,onMouseDown:Xa(t.onMouseDown,p=>{!s&&p.button===0&&p.ctrlKey===!1?o.onValueChange(r):p.preventDefault()}),onKeyDown:Xa(t.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&o.onValueChange(r)}),onFocus:Xa(t.onFocus,()=>{const p=o.activationMode!=="manual";!u&&!s&&p&&o.onValueChange(r)})})})});uI.displayName=hI;var pI="TabsContent",mI=g.forwardRef((t,a)=>{const{__scopeTabs:n,value:r,forceMount:s,children:i,...o}=t,l=GC(pI,n),d=yI(l.baseId,r),h=fI(l.baseId,r),u=r===l.value,p=g.useRef(u);return g.useEffect(()=>{const y=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(y)},[]),e.jsx(iI,{present:s||u,children:({present:y})=>e.jsx(Do.div,{"data-state":u?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":d,hidden:!y,id:h,tabIndex:0,...o,ref:a,style:{...t.style,animationDuration:p.current?"0s":void 0},children:y&&i})})});mI.displayName=pI;function yI(t,a){return`${t}-trigger-${a}`}function fI(t,a){return`${t}-content-${a}`}var Mq=cI,xI=dI,gI=uI,kI=mI;const nn=Mq,rn=g.forwardRef(({className:t,...a},n)=>e.jsx(xI,{ref:n,className:fe("inline-flex items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",t),...a}));rn.displayName=xI.displayName;const Pe=g.forwardRef(({className:t,...a},n)=>e.jsx(gI,{ref:n,className:fe("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",t),...a}));Pe.displayName=gI.displayName;const je=g.forwardRef(({className:t,...a},n)=>e.jsx(kI,{ref:n,className:fe("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...a}));je.displayName=kI.displayName;const Q=g.forwardRef(({className:t,...a},n)=>e.jsx("div",{ref:n,className:fe("rounded-xl border bg-card text-card-foreground shadow",t),...a}));Q.displayName="Card";const le=g.forwardRef(({className:t,...a},n)=>e.jsx("div",{ref:n,className:fe("flex flex-col space-y-1.5 p-6",t),...a}));le.displayName="CardHeader";const ue=g.forwardRef(({className:t,...a},n)=>e.jsx("h3",{ref:n,className:fe("font-semibold leading-none tracking-tight",t),...a}));ue.displayName="CardTitle";const Se=g.forwardRef(({className:t,...a},n)=>e.jsx("p",{ref:n,className:fe("text-sm text-muted-foreground",t),...a}));Se.displayName="CardDescription";const ee=g.forwardRef(({className:t,...a},n)=>e.jsx("div",{ref:n,className:fe("p-6 pt-0",t),...a}));ee.displayName="CardContent";const Lo=g.forwardRef(({className:t,...a},n)=>e.jsx("div",{ref:n,className:fe("flex items-center p-6 pt-0",t),...a}));Lo.displayName="CardFooter";function jq({groupedIds:t,tabTitles:a,lang:n,url:r,PromotionsTitle:s,buttonMsg:i="Select Plan"}){const[o,l]=M.useState([]),[d,h]=M.useState("tab-0"),u=r||window.location.origin||"http://localhost:8000";M.useEffect(()=>{(async()=>{try{const x=n??"en",f=t.map(async k=>(await fetch(`${u}/api/v1/promotions/?ids=${k}`,{method:"GET",headers:{"Accept-Language":x,"Content-Type":"application/json"}})).json()),v=await Promise.all(f);l(v)}catch{}})()},[t,u,n]);const p=m=>{const x=new CustomEvent("planSelected",{bubbles:!0,detail:{plan:m,tabType:d,timestamp:new Date().toISOString()}}),f=document.querySelector(".group-prices-component");f&&f.dispatchEvent(x)},y=`grid sm:grid-cols-2 lg:grid-cols-${a.length} mb-8`;return e.jsx("section",{id:"pricing",className:"w-full py-12 md:py-24 lg:py-32",children:e.jsxs("div",{className:"container px-4 md:px-6",children:[s??e.jsx("h2",{className:"text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl text-center mb-8",children:s}),e.jsxs(nn,{defaultValue:"tab-0",className:"w-full",onValueChange:m=>h(m),children:[e.jsx(rn,{className:y,children:a.map((m,x)=>e.jsx(Pe,{value:`tab-${x}`,children:m},x))}),o.map((m,x)=>e.jsx(je,{value:`tab-${x}`,children:e.jsx("div",{className:"grid gap-8 sm:grid-cols-2 lg:grid-cols-3",children:m.map((f,v)=>e.jsxs(Q,{className:"flex flex-col",children:[e.jsxs(le,{children:[e.jsx(ue,{children:f.title}),e.jsx(Se,{children:f.short_description})]}),e.jsxs(ee,{className:"flex-1",children:[e.jsxs("p",{className:"text-3xl font-bold",children:["€",f.price]}),e.jsx("ul",{className:"mt-4 space-y-2",children:f.features&&f.features.map((k,w)=>e.jsxs("li",{className:"flex items-center",children:[e.jsx(Qo,{className:"mr-2 h-4 w-4 text-primary"})," ",k]},w))})]}),e.jsx(Lo,{children:e.jsx(T,{onClick:()=>p(f),className:"w-full bg-primary text-primary-foreground hover:bg-primary/90",children:i})})]},v))})},x))]})]})})}function Cq({isOpen:t,items:a}){const n=a.reduce((r,s)=>r+s.price,0);return e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:fe("fixed inset-y-0 right-0 w-80 bg-white shadow-lg transform transition-transform duration-300 ease-in-out z-30",t?"translate-x-0":"translate-x-full"),children:e.jsxs("div",{className:"h-full flex flex-col",children:[e.jsxs("div",{className:"p-4 border-b flex items-center justify-between",children:[e.jsx("h2",{className:"text-xl font-semibold",children:"Summary"}),e.jsxs("button",{onClick:()=>{const r=document.querySelector('.sliding-summary-component[data-open="true"]');r&&r.setAttribute("data-open","false")},className:"hover:bg-gray-100 rounded p-2",children:[e.jsx(Ct,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close panel"})]})]}),e.jsx("div",{className:"flex-1 overflow-auto p-4",children:a.map(r=>e.jsxs("div",{className:"mb-4 p-3 border rounded-lg",children:[e.jsxs("div",{className:"flex justify-between items-start mb-1",children:[e.jsx("span",{className:"font-medium",children:r.name}),e.jsxs("span",{className:"text-sm",children:["$",r.price.toFixed(2)]})]}),e.jsx("p",{className:"text-sm text-gray-600",children:r.description})]},r.id))}),e.jsx("div",{className:"p-4 border-t",children:e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"font-semibold",children:"Total:"}),e.jsxs("span",{className:"font-semibold",children:["$",n.toFixed(2)]})]})})]})}),t&&e.jsx("div",{className:"fixed inset-0 bg-black/20 z-20",onClick:()=>{const r=document.querySelector('.sliding-summary-component[data-open="true"]');r&&r.setAttribute("data-open","false")}})]})}function $a(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vI(t,a){t.prototype=Object.create(a.prototype),t.prototype.constructor=t,t.__proto__=a}/*!
7726
7726
  * GSAP 3.12.5
7727
7727
  * https://gsap.com
7728
7728
  *
@@ -7730,7 +7730,7 @@ React keys must be passed directly to JSX without using spread:
7730
7730
  * Subject to the terms at https://gsap.com/standard-license or for
7731
7731
  * Club GSAP members, the agreement issued with that membership.
7732
7732
  * @author: Jack Doyle, jack@greensock.com
7733
- */var Wt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},pc={duration:.5,overwrite:!1,delay:0},WC,yt,Oe,ra=1e8,qe=1/ra,cC=Math.PI*2,Sq=cC/4,Nq=0,wI=Math.sqrt,Lq=Math.cos,Iq=Math.sin,it=function(a){return typeof a=="string"},We=function(a){return typeof a=="function"},Ya=function(a){return typeof a=="number"},ZC=function(a){return typeof a>"u"},Ta=function(a){return typeof a=="object"},Rt=function(a){return a!==!1},JC=function(){return typeof window<"u"},Ll=function(a){return We(a)||it(a)},bI=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},ft=Array.isArray,lC=/(?:-?\.?\d|\.)+/gi,MI=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Zo=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,j9=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,jI=/[+-]=-?[.\d]+/,CI=/[^,'"\[\]\s]+/gi,Aq=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Ve,Ma,dC,XC,Xt={},Nj={},SI,NI=function(a){return(Nj=Io(a,Xt))&&zt},YC=function(a,n){return console.warn("Invalid property",a,"set to",n,"Missing plugin? gsap.registerPlugin()")},ll=function(a,n){return!n&&console.warn(a)},LI=function(a,n){return a&&(Xt[a]=n)&&Nj&&(Nj[a]=n)||Xt},dl=function(){return 0},Pq={suppressEvents:!0,isStart:!0,kill:!1},xj={suppressEvents:!0,kill:!1},_q={suppressEvents:!0},KC={},_n=[],hC={},II,Ot={},C9={},pN=30,gj=[],QC="",eS=function(a){var n=a[0],r,s;if(Ta(n)||We(n)||(a=[a]),!(r=(n._gsap||{}).harness)){for(s=gj.length;s--&&!gj[s].targetTest(n););r=gj[s]}for(s=a.length;s--;)a[s]&&(a[s]._gsap||(a[s]._gsap=new QI(a[s],r)))||a.splice(s,1);return a},jo=function(a){return a._gsap||eS(sa(a))[0]._gsap},AI=function(a,n,r){return(r=a[n])&&We(r)?a[n]():ZC(r)&&a.getAttribute&&a.getAttribute(n)||r},Tt=function(a,n){return(a=a.split(",")).forEach(n)||a},Je=function(a){return Math.round(a*1e5)/1e5||0},nt=function(a){return Math.round(a*1e7)/1e7||0},oc=function(a,n){var r=n.charAt(0),s=parseFloat(n.substr(2));return a=parseFloat(a),r==="+"?a+s:r==="-"?a-s:r==="*"?a*s:a/s},Rq=function(a,n){for(var r=n.length,s=0;a.indexOf(n[s])<0&&++s<r;);return s<r},Lj=function(){var a=_n.length,n=_n.slice(0),r,s;for(hC={},_n.length=0,r=0;r<a;r++)s=n[r],s&&s._lazy&&(s.render(s._lazy[0],s._lazy[1],!0)._lazy=0)},PI=function(a,n,r,s){_n.length&&!yt&&Lj(),a.render(n,r,yt&&n<0&&(a._initted||a._startAt)),_n.length&&!yt&&Lj()},_I=function(a){var n=parseFloat(a);return(n||n===0)&&(a+"").match(CI).length<2?n:it(a)?a.trim():a},RI=function(a){return a},ha=function(a,n){for(var r in n)r in a||(a[r]=n[r]);return a},Tq=function(a){return function(n,r){for(var s in r)s in n||s==="duration"&&a||s==="ease"||(n[s]=r[s])}},Io=function(a,n){for(var r in n)a[r]=n[r];return a},mN=function t(a,n){for(var r in n)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(a[r]=Ta(n[r])?t(a[r]||(a[r]={}),n[r]):n[r]);return a},Ij=function(a,n){var r={},s;for(s in a)s in n||(r[s]=a[s]);return r},nl=function(a){var n=a.parent||Ve,r=a.keyframes?Tq(ft(a.keyframes)):ha;if(Rt(a.inherit))for(;n;)r(a,n.vars.defaults),n=n.parent||n._dp;return a},Dq=function(a,n){for(var r=a.length,s=r===n.length;s&&r--&&a[r]===n[r];);return r<0},TI=function(a,n,r,s,i){var o=a[s],l;if(i)for(l=n[i];o&&o[i]>l;)o=o._prev;return o?(n._next=o._next,o._next=n):(n._next=a[r],a[r]=n),n._next?n._next._prev=n:a[s]=n,n._prev=o,n.parent=n._dp=a,n},Wj=function(a,n,r,s){r===void 0&&(r="_first"),s===void 0&&(s="_last");var i=n._prev,o=n._next;i?i._next=o:a[r]===n&&(a[r]=o),o?o._prev=i:a[s]===n&&(a[s]=i),n._next=n._prev=n.parent=null},qn=function(a,n){a.parent&&(!n||a.parent.autoRemoveChildren)&&a.parent.remove&&a.parent.remove(a),a._act=0},Co=function(a,n){if(a&&(!n||n._end>a._dur||n._start<0))for(var r=a;r;)r._dirty=1,r=r.parent;return a},qq=function(a){for(var n=a.parent;n&&n.parent;)n._dirty=1,n.totalDuration(),n=n.parent;return a},uC=function(a,n,r,s){return a._startAt&&(yt?a._startAt.revert(xj):a.vars.immediateRender&&!a.vars.autoRevert||a._startAt.render(n,!0,s))},zq=function t(a){return!a||a._ts&&t(a.parent)},yN=function(a){return a._repeat?mc(a._tTime,a=a.duration()+a._rDelay)*a:0},mc=function(a,n){var r=Math.floor(a/=n);return a&&r===a?r-1:r},Aj=function(a,n){return(a-n._start)*n._ts+(n._ts>=0?0:n._dirty?n.totalDuration():n._tDur)},Zj=function(a){return a._end=nt(a._start+(a._tDur/Math.abs(a._ts||a._rts||qe)||0))},Jj=function(a,n){var r=a._dp;return r&&r.smoothChildTiming&&a._ts&&(a._start=nt(r._time-(a._ts>0?n/a._ts:((a._dirty?a.totalDuration():a._tDur)-n)/-a._ts)),Zj(a),r._dirty||Co(r,a)),a},DI=function(a,n){var r;if((n._time||!n._dur&&n._initted||n._start<a._time&&(n._dur||!n.add))&&(r=Aj(a.rawTime(),n),(!n._dur||vl(0,n.totalDuration(),r)-n._tTime>qe)&&n.render(r,!0)),Co(a,n)._dp&&a._initted&&a._time>=a._dur&&a._ts){if(a._dur<a.duration())for(r=a;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;a._zTime=-qe}},Sa=function(a,n,r,s){return n.parent&&qn(n),n._start=nt((Ya(r)?r:r||a!==Ve?aa(a,r,n):a._time)+n._delay),n._end=nt(n._start+(n.totalDuration()/Math.abs(n.timeScale())||0)),TI(a,n,"_first","_last",a._sort?"_start":0),pC(n)||(a._recent=n),s||DI(a,n),a._ts<0&&Jj(a,a._tTime),a},qI=function(a,n){return(Xt.ScrollTrigger||YC("scrollTrigger",n))&&Xt.ScrollTrigger.create(n,a)},zI=function(a,n,r,s,i){if(aS(a,n,i),!a._initted)return 1;if(!r&&a._pt&&!yt&&(a._dur&&a.vars.lazy!==!1||!a._dur&&a.vars.lazy)&&II!==$t.frame)return _n.push(a),a._lazy=[i,s],1},Eq=function t(a){var n=a.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},pC=function(a){var n=a.data;return n==="isFromStart"||n==="isStart"},Fq=function(a,n,r,s){var i=a.ratio,o=n<0||!n&&(!a._start&&Eq(a)&&!(!a._initted&&pC(a))||(a._ts<0||a._dp._ts<0)&&!pC(a))?0:1,l=a._rDelay,d=0,h,u,p;if(l&&a._repeat&&(d=vl(0,a._tDur,n),u=mc(d,l),a._yoyo&&u&1&&(o=1-o),u!==mc(a._tTime,l)&&(i=1-o,a.vars.repeatRefresh&&a._initted&&a.invalidate())),o!==i||yt||s||a._zTime===qe||!n&&a._zTime){if(!a._initted&&zI(a,n,s,r,d))return;for(p=a._zTime,a._zTime=n||(r?qe:0),r||(r=n&&!p),a.ratio=o,a._from&&(o=1-o),a._time=0,a._tTime=d,h=a._pt;h;)h.r(o,h.d),h=h._next;n<0&&uC(a,n,r,!0),a._onUpdate&&!r&&Ut(a,"onUpdate"),d&&a._repeat&&!r&&a.parent&&Ut(a,"onRepeat"),(n>=a._tDur||n<0)&&a.ratio===o&&(o&&qn(a,1),!r&&!yt&&(Ut(a,o?"onComplete":"onReverseComplete",!0),a._prom&&a._prom()))}else a._zTime||(a._zTime=n)},Oq=function(a,n,r){var s;if(r>n)for(s=a._first;s&&s._start<=r;){if(s.data==="isPause"&&s._start>n)return s;s=s._next}else for(s=a._last;s&&s._start>=r;){if(s.data==="isPause"&&s._start<n)return s;s=s._prev}},yc=function(a,n,r,s){var i=a._repeat,o=nt(n)||0,l=a._tTime/a._tDur;return l&&!s&&(a._time*=o/a._dur),a._dur=o,a._tDur=i?i<0?1e10:nt(o*(i+1)+a._rDelay*i):o,l>0&&!s&&Jj(a,a._tTime=a._tDur*l),a.parent&&Zj(a),r||Co(a.parent,a),a},fN=function(a){return a instanceof bt?Co(a):yc(a,a._dur)},Hq={_start:0,endTime:dl,totalDuration:dl},aa=function t(a,n,r){var s=a.labels,i=a._recent||Hq,o=a.duration()>=ra?i.endTime(!1):a._dur,l,d,h;return it(n)&&(isNaN(n)||n in s)?(d=n.charAt(0),h=n.substr(-1)==="%",l=n.indexOf("="),d==="<"||d===">"?(l>=0&&(n=n.replace(/=/,"")),(d==="<"?i._start:i.endTime(i._repeat>=0))+(parseFloat(n.substr(1))||0)*(h?(l<0?i:r).totalDuration()/100:1)):l<0?(n in s||(s[n]=o),s[n]):(d=parseFloat(n.charAt(l-1)+n.substr(l+1)),h&&r&&(d=d/100*(ft(r)?r[0]:r).totalDuration()),l>1?t(a,n.substr(0,l-1),r)+d:o+d)):n==null?o:+n},rl=function(a,n,r){var s=Ya(n[1]),i=(s?2:1)+(a<2?0:1),o=n[i],l,d;if(s&&(o.duration=n[1]),o.parent=r,a){for(l=o,d=r;d&&!("immediateRender"in l);)l=d.vars.defaults||{},d=Rt(d.vars.inherit)&&d.parent;o.immediateRender=Rt(l.immediateRender),a<2?o.runBackwards=1:o.startAt=n[i-1]}return new Xe(n[0],o,n[i+1])},On=function(a,n){return a||a===0?n(a):n},vl=function(a,n,r){return r<a?a:r>n?n:r},pt=function(a,n){return!it(a)||!(n=Aq.exec(a))?"":n[1]},Vq=function(a,n,r){return On(r,function(s){return vl(a,n,s)})},mC=[].slice,EI=function(a,n){return a&&Ta(a)&&"length"in a&&(!n&&!a.length||a.length-1 in a&&Ta(a[0]))&&!a.nodeType&&a!==Ma},Bq=function(a,n,r){return r===void 0&&(r=[]),a.forEach(function(s){var i;return it(s)&&!n||EI(s,1)?(i=r).push.apply(i,sa(s)):r.push(s)})||r},sa=function(a,n,r){return Oe&&!n&&Oe.selector?Oe.selector(a):it(a)&&!r&&(dC||!fc())?mC.call((n||XC).querySelectorAll(a),0):ft(a)?Bq(a,r):EI(a)?mC.call(a,0):a?[a]:[]},yC=function(a){return a=sa(a)[0]||ll("Invalid scope")||{},function(n){var r=a.current||a.nativeElement||a;return sa(n,r.querySelectorAll?r:r===a?ll("Invalid scope")||XC.createElement("div"):a)}},FI=function(a){return a.sort(function(){return .5-Math.random()})},OI=function(a){if(We(a))return a;var n=Ta(a)?a:{each:a},r=So(n.ease),s=n.from||0,i=parseFloat(n.base)||0,o={},l=s>0&&s<1,d=isNaN(s)||l,h=n.axis,u=s,p=s;return it(s)?u=p={center:.5,edges:.5,end:1}[s]||0:!l&&d&&(u=s[0],p=s[1]),function(y,m,x){var f=(x||n).length,v=o[f],k,w,b,C,j,I,N,S,L;if(!v){if(L=n.grid==="auto"?0:(n.grid||[1,ra])[1],!L){for(N=-ra;N<(N=x[L++].getBoundingClientRect().left)&&L<f;);L<f&&L--}for(v=o[f]=[],k=d?Math.min(L,f)*u-.5:s%L,w=L===ra?0:d?f*p/L-.5:s/L|0,N=0,S=ra,I=0;I<f;I++)b=I%L-k,C=w-(I/L|0),v[I]=j=h?Math.abs(h==="y"?C:b):wI(b*b+C*C),j>N&&(N=j),j<S&&(S=j);s==="random"&&FI(v),v.max=N-S,v.min=S,v.v=f=(parseFloat(n.amount)||parseFloat(n.each)*(L>f?f-1:h?h==="y"?f/L:L:Math.max(L,f/L))||0)*(s==="edges"?-1:1),v.b=f<0?i-f:i,v.u=pt(n.amount||n.each)||0,r=r&&f<0?XI(r):r}return f=(v[y]-v.min)/v.max||0,nt(v.b+(r?r(f):f)*v.v)+v.u}},fC=function(a){var n=Math.pow(10,((a+"").split(".")[1]||"").length);return function(r){var s=nt(Math.round(parseFloat(r)/a)*a*n);return(s-s%1)/n+(Ya(r)?0:pt(r))}},HI=function(a,n){var r=ft(a),s,i;return!r&&Ta(a)&&(s=r=a.radius||ra,a.values?(a=sa(a.values),(i=!Ya(a[0]))&&(s*=s)):a=fC(a.increment)),On(n,r?We(a)?function(o){return i=a(o),Math.abs(i-o)<=s?i:o}:function(o){for(var l=parseFloat(i?o.x:o),d=parseFloat(i?o.y:0),h=ra,u=0,p=a.length,y,m;p--;)i?(y=a[p].x-l,m=a[p].y-d,y=y*y+m*m):y=Math.abs(a[p]-l),y<h&&(h=y,u=p);return u=!s||h<=s?a[u]:o,i||u===o||Ya(o)?u:u+pt(o)}:fC(a))},VI=function(a,n,r,s){return On(ft(a)?!n:r===!0?!!(r=0):!s,function(){return ft(a)?a[~~(Math.random()*a.length)]:(r=r||1e-5)&&(s=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((a-r/2+Math.random()*(n-a+r*.99))/r)*r*s)/s})},$q=function(){for(var a=arguments.length,n=new Array(a),r=0;r<a;r++)n[r]=arguments[r];return function(s){return n.reduce(function(i,o){return o(i)},s)}},Uq=function(a,n){return function(r){return a(parseFloat(r))+(n||pt(r))}},Gq=function(a,n,r){return $I(a,n,0,1,r)},BI=function(a,n,r){return On(r,function(s){return a[~~n(s)]})},Wq=function t(a,n,r){var s=n-a;return ft(a)?BI(a,t(0,a.length),n):On(r,function(i){return(s+(i-a)%s)%s+a})},Zq=function t(a,n,r){var s=n-a,i=s*2;return ft(a)?BI(a,t(0,a.length-1),n):On(r,function(o){return o=(i+(o-a)%i)%i||0,a+(o>s?i-o:o)})},hl=function(a){for(var n=0,r="",s,i,o,l;~(s=a.indexOf("random(",n));)o=a.indexOf(")",s),l=a.charAt(s+7)==="[",i=a.substr(s+7,o-s-7).match(l?CI:lC),r+=a.substr(n,s-n)+VI(l?i:+i[0],l?0:+i[1],+i[2]||1e-5),n=o+1;return r+a.substr(n,a.length-n)},$I=function(a,n,r,s,i){var o=n-a,l=s-r;return On(i,function(d){return r+((d-a)/o*l||0)})},Jq=function t(a,n,r,s){var i=isNaN(a+n)?0:function(m){return(1-m)*a+m*n};if(!i){var o=it(a),l={},d,h,u,p,y;if(r===!0&&(s=1)&&(r=null),o)a={p:a},n={p:n};else if(ft(a)&&!ft(n)){for(u=[],p=a.length,y=p-2,h=1;h<p;h++)u.push(t(a[h-1],a[h]));p--,i=function(x){x*=p;var f=Math.min(y,~~x);return u[f](x-f)},r=n}else s||(a=Io(ft(a)?[]:{},a));if(!u){for(d in n)tS.call(l,a,d,"get",n[d]);i=function(x){return sS(x,l)||(o?a.p:a)}}}return On(r,i)},xN=function(a,n,r){var s=a.labels,i=ra,o,l,d;for(o in s)l=s[o]-n,l<0==!!r&&l&&i>(l=Math.abs(l))&&(d=o,i=l);return d},Ut=function(a,n,r){var s=a.vars,i=s[n],o=Oe,l=a._ctx,d,h,u;if(i)return d=s[n+"Params"],h=s.callbackScope||a,r&&_n.length&&Lj(),l&&(Oe=l),u=d?i.apply(h,d):i.call(h),Oe=o,u},_c=function(a){return qn(a),a.scrollTrigger&&a.scrollTrigger.kill(!!yt),a.progress()<1&&Ut(a,"onInterrupt"),a},Jo,UI=[],GI=function(a){if(a)if(a=!a.name&&a.default||a,JC()||a.headless){var n=a.name,r=We(a),s=n&&!r&&a.init?function(){this._props=[]}:a,i={init:dl,render:sS,add:tS,kill:hz,modifier:dz,rawVars:0},o={targetTest:0,get:0,getSetter:rS,aliases:{},register:0};if(fc(),a!==s){if(Ot[n])return;ha(s,ha(Ij(a,i),o)),Io(s.prototype,Io(i,Ij(a,o))),Ot[s.prop=n]=s,a.targetTest&&(gj.push(s),KC[n]=1),n=(n==="css"?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}LI(n,s),a.register&&a.register(zt,s,Dt)}else UI.push(a)},Re=255,Rc={aqua:[0,Re,Re],lime:[0,Re,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Re],navy:[0,0,128],white:[Re,Re,Re],olive:[128,128,0],yellow:[Re,Re,0],orange:[Re,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Re,0,0],pink:[Re,192,203],cyan:[0,Re,Re],transparent:[Re,Re,Re,0]},S9=function(a,n,r){return a+=a<0?1:a>1?-1:0,(a*6<1?n+(r-n)*a*6:a<.5?r:a*3<2?n+(r-n)*(2/3-a)*6:n)*Re+.5|0},WI=function(a,n,r){var s=a?Ya(a)?[a>>16,a>>8&Re,a&Re]:0:Rc.black,i,o,l,d,h,u,p,y,m,x;if(!s){if(a.substr(-1)===","&&(a=a.substr(0,a.length-1)),Rc[a])s=Rc[a];else if(a.charAt(0)==="#"){if(a.length<6&&(i=a.charAt(1),o=a.charAt(2),l=a.charAt(3),a="#"+i+i+o+o+l+l+(a.length===5?a.charAt(4)+a.charAt(4):"")),a.length===9)return s=parseInt(a.substr(1,6),16),[s>>16,s>>8&Re,s&Re,parseInt(a.substr(7),16)/255];a=parseInt(a.substr(1),16),s=[a>>16,a>>8&Re,a&Re]}else if(a.substr(0,3)==="hsl"){if(s=x=a.match(lC),!n)d=+s[0]%360/360,h=+s[1]/100,u=+s[2]/100,o=u<=.5?u*(h+1):u+h-u*h,i=u*2-o,s.length>3&&(s[3]*=1),s[0]=S9(d+1/3,i,o),s[1]=S9(d,i,o),s[2]=S9(d-1/3,i,o);else if(~a.indexOf("="))return s=a.match(MI),r&&s.length<4&&(s[3]=1),s}else s=a.match(lC)||Rc.transparent;s=s.map(Number)}return n&&!x&&(i=s[0]/Re,o=s[1]/Re,l=s[2]/Re,p=Math.max(i,o,l),y=Math.min(i,o,l),u=(p+y)/2,p===y?d=h=0:(m=p-y,h=u>.5?m/(2-p-y):m/(p+y),d=p===i?(o-l)/m+(o<l?6:0):p===o?(l-i)/m+2:(i-o)/m+4,d*=60),s[0]=~~(d+.5),s[1]=~~(h*100+.5),s[2]=~~(u*100+.5)),r&&s.length<4&&(s[3]=1),s},ZI=function(a){var n=[],r=[],s=-1;return a.split(Rn).forEach(function(i){var o=i.match(Zo)||[];n.push.apply(n,o),r.push(s+=o.length+1)}),n.c=r,n},gN=function(a,n,r){var s="",i=(a+s).match(Rn),o=n?"hsla(":"rgba(",l=0,d,h,u,p;if(!i)return a;if(i=i.map(function(y){return(y=WI(y,n,1))&&o+(n?y[0]+","+y[1]+"%,"+y[2]+"%,"+y[3]:y.join(","))+")"}),r&&(u=ZI(a),d=r.c,d.join(s)!==u.c.join(s)))for(h=a.replace(Rn,"1").split(Zo),p=h.length-1;l<p;l++)s+=h[l]+(~d.indexOf(l)?i.shift()||o+"0,0,0,0)":(u.length?u:i.length?i:r).shift());if(!h)for(h=a.split(Rn),p=h.length-1;l<p;l++)s+=h[l]+i[l];return s+h[p]},Rn=function(){var t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",a;for(a in Rc)t+="|"+a+"\\b";return new RegExp(t+")","gi")}(),Xq=/hsl[a]?\(/,JI=function(a){var n=a.join(" "),r;if(Rn.lastIndex=0,Rn.test(n))return r=Xq.test(n),a[1]=gN(a[1],r),a[0]=gN(a[0],r,ZI(a[1])),!0},ul,$t=function(){var t=Date.now,a=500,n=33,r=t(),s=r,i=1e3/240,o=i,l=[],d,h,u,p,y,m,x=function f(v){var k=t()-s,w=v===!0,b,C,j,I;if((k>a||k<0)&&(r+=k-n),s+=k,j=s-r,b=j-o,(b>0||w)&&(I=++p.frame,y=j-p.time*1e3,p.time=j=j/1e3,o+=b+(b>=i?4:i-b),C=1),w||(d=h(f)),C)for(m=0;m<l.length;m++)l[m](j,y,I,v)};return p={time:0,frame:0,tick:function(){x(!0)},deltaRatio:function(v){return y/(1e3/(v||60))},wake:function(){SI&&(!dC&&JC()&&(Ma=dC=window,XC=Ma.document||{},Xt.gsap=zt,(Ma.gsapVersions||(Ma.gsapVersions=[])).push(zt.version),NI(Nj||Ma.GreenSockGlobals||!Ma.gsap&&Ma||{}),UI.forEach(GI)),u=typeof requestAnimationFrame<"u"&&requestAnimationFrame,d&&p.sleep(),h=u||function(v){return setTimeout(v,o-p.time*1e3+1|0)},ul=1,x(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(d),ul=0,h=dl},lagSmoothing:function(v,k){a=v||1/0,n=Math.min(k||33,a)},fps:function(v){i=1e3/(v||240),o=p.time*1e3+i},add:function(v,k,w){var b=k?function(C,j,I,N){v(C,j,I,N),p.remove(b)}:v;return p.remove(v),l[w?"unshift":"push"](b),fc(),b},remove:function(v,k){~(k=l.indexOf(v))&&l.splice(k,1)&&m>=k&&m--},_listeners:l},p}(),fc=function(){return!ul&&$t.wake()},Ce={},Yq=/^[\d.\-M][\d.\-,\s]/,Kq=/["']/g,Qq=function(a){for(var n={},r=a.substr(1,a.length-3).split(":"),s=r[0],i=1,o=r.length,l,d,h;i<o;i++)d=r[i],l=i!==o-1?d.lastIndexOf(","):d.length,h=d.substr(0,l),n[s]=isNaN(h)?h.replace(Kq,"").trim():+h,s=d.substr(l+1).trim();return n},ez=function(a){var n=a.indexOf("(")+1,r=a.indexOf(")"),s=a.indexOf("(",n);return a.substring(n,~s&&s<r?a.indexOf(")",r+1):r)},tz=function(a){var n=(a+"").split("("),r=Ce[n[0]];return r&&n.length>1&&r.config?r.config.apply(null,~a.indexOf("{")?[Qq(n[1])]:ez(a).split(",").map(_I)):Ce._CE&&Yq.test(a)?Ce._CE("",a):r},XI=function(a){return function(n){return 1-a(1-n)}},YI=function t(a,n){for(var r=a._first,s;r;)r instanceof bt?t(r,n):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==n&&(r.timeline?t(r.timeline,n):(s=r._ease,r._ease=r._yEase,r._yEase=s,r._yoyo=n)),r=r._next},So=function(a,n){return a&&(We(a)?a:Ce[a]||tz(a))||n},qo=function(a,n,r,s){r===void 0&&(r=function(d){return 1-n(1-d)}),s===void 0&&(s=function(d){return d<.5?n(d*2)/2:1-n((1-d)*2)/2});var i={easeIn:n,easeOut:r,easeInOut:s},o;return Tt(a,function(l){Ce[l]=Xt[l]=i,Ce[o=l.toLowerCase()]=r;for(var d in i)Ce[o+(d==="easeIn"?".in":d==="easeOut"?".out":".inOut")]=Ce[l+"."+d]=i[d]}),i},KI=function(a){return function(n){return n<.5?(1-a(1-n*2))/2:.5+a((n-.5)*2)/2}},N9=function t(a,n,r){var s=n>=1?n:1,i=(r||(a?.3:.45))/(n<1?n:1),o=i/cC*(Math.asin(1/s)||0),l=function(u){return u===1?1:s*Math.pow(2,-10*u)*Iq((u-o)*i)+1},d=a==="out"?l:a==="in"?function(h){return 1-l(1-h)}:KI(l);return i=cC/i,d.config=function(h,u){return t(a,h,u)},d},L9=function t(a,n){n===void 0&&(n=1.70158);var r=function(o){return o?--o*o*((n+1)*o+n)+1:0},s=a==="out"?r:a==="in"?function(i){return 1-r(1-i)}:KI(r);return s.config=function(i){return t(a,i)},s};Tt("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,a){var n=a<5?a+1:a;qo(t+",Power"+(n-1),a?function(r){return Math.pow(r,n)}:function(r){return r},function(r){return 1-Math.pow(1-r,n)},function(r){return r<.5?Math.pow(r*2,n)/2:1-Math.pow((1-r)*2,n)/2})});Ce.Linear.easeNone=Ce.none=Ce.Linear.easeIn;qo("Elastic",N9("in"),N9("out"),N9());(function(t,a){var n=1/a,r=2*n,s=2.5*n,i=function(l){return l<n?t*l*l:l<r?t*Math.pow(l-1.5/a,2)+.75:l<s?t*(l-=2.25/a)*l+.9375:t*Math.pow(l-2.625/a,2)+.984375};qo("Bounce",function(o){return 1-i(1-o)},i)})(7.5625,2.75);qo("Expo",function(t){return t?Math.pow(2,10*(t-1)):0});qo("Circ",function(t){return-(wI(1-t*t)-1)});qo("Sine",function(t){return t===1?1:-Lq(t*Sq)+1});qo("Back",L9("in"),L9("out"),L9());Ce.SteppedEase=Ce.steps=Xt.SteppedEase={config:function(a,n){a===void 0&&(a=1);var r=1/a,s=a+(n?0:1),i=n?1:0,o=1-qe;return function(l){return((s*vl(0,o,l)|0)+i)*r}}};pc.ease=Ce["quad.out"];Tt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return QC+=t+","+t+"Params,"});var QI=function(a,n){this.id=Nq++,a._gsap=this,this.target=a,this.harness=n,this.get=n?n.get:AI,this.set=n?n.getSetter:rS},pl=function(){function t(n){this.vars=n,this._delay=+n.delay||0,(this._repeat=n.repeat===1/0?-2:n.repeat||0)&&(this._rDelay=n.repeatDelay||0,this._yoyo=!!n.yoyo||!!n.yoyoEase),this._ts=1,yc(this,+n.duration,1,1),this.data=n.data,Oe&&(this._ctx=Oe,Oe.data.push(this)),ul||$t.wake()}var a=t.prototype;return a.delay=function(r){return r||r===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+r-this._delay),this._delay=r,this):this._delay},a.duration=function(r){return arguments.length?this.totalDuration(this._repeat>0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},a.totalDuration=function(r){return arguments.length?(this._dirty=0,yc(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},a.totalTime=function(r,s){if(fc(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(Jj(this,r),!i._dp||i.parent||DI(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&Sa(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!s||this._initted&&Math.abs(this._zTime)===qe||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),PI(this,r,s)),this},a.time=function(r,s){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+yN(this))%(this._dur+this._rDelay)||(r?this._dur:0),s):this._time},a.totalProgress=function(r,s){return arguments.length?this.totalTime(this.totalDuration()*r,s):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},a.progress=function(r,s){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+yN(this),s):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},a.iteration=function(r,s){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*i,s):this._repeat?mc(this._tTime,i)+1:1},a.timeScale=function(r,s){if(!arguments.length)return this._rts===-qe?0:this._rts;if(this._rts===r)return this;var i=this.parent&&this._ts?Aj(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-qe?0:this._rts,this.totalTime(vl(-Math.abs(this._delay),this._tDur,i),s!==!1),Zj(this),qq(this)},a.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(fc(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==qe&&(this._tTime-=qe)))),this):this._ps},a.startTime=function(r){if(arguments.length){this._start=r;var s=this.parent||this._dp;return s&&(s._sort||!this.parent)&&Sa(s,this,r-this._delay),this}return this._start},a.endTime=function(r){return this._start+(Rt(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},a.rawTime=function(r){var s=this.parent||this._dp;return s?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Aj(s.rawTime(r),this):this._tTime:this._tTime},a.revert=function(r){r===void 0&&(r=_q);var s=yt;return yt=r,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),yt=s,this},a.globalTime=function(r){for(var s=this,i=arguments.length?r:s.rawTime();s;)i=s._start+i/(Math.abs(s._ts)||1),s=s._dp;return!this.parent&&this._sat?this._sat.globalTime(r):i},a.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,fN(this)):this._repeat===-2?1/0:this._repeat},a.repeatDelay=function(r){if(arguments.length){var s=this._time;return this._rDelay=r,fN(this),s?this.time(s):this}return this._rDelay},a.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},a.seek=function(r,s){return this.totalTime(aa(this,r),Rt(s))},a.restart=function(r,s){return this.play().totalTime(r?-this._delay:0,Rt(s))},a.play=function(r,s){return r!=null&&this.seek(r,s),this.reversed(!1).paused(!1)},a.reverse=function(r,s){return r!=null&&this.seek(r||this.totalDuration(),s),this.reversed(!0).paused(!1)},a.pause=function(r,s){return r!=null&&this.seek(r,s),this.paused(!0)},a.resume=function(){return this.paused(!1)},a.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-qe:0)),this):this._rts<0},a.invalidate=function(){return this._initted=this._act=0,this._zTime=-qe,this},a.isActive=function(){var r=this.parent||this._dp,s=this._start,i;return!!(!r||this._ts&&this._initted&&r.isActive()&&(i=r.rawTime(!0))>=s&&i<this.endTime(!0)-qe)},a.eventCallback=function(r,s,i){var o=this.vars;return arguments.length>1?(s?(o[r]=s,i&&(o[r+"Params"]=i),r==="onUpdate"&&(this._onUpdate=s)):delete o[r],this):o[r]},a.then=function(r){var s=this;return new Promise(function(i){var o=We(r)?r:RI,l=function(){var h=s.then;s.then=null,We(o)&&(o=o(s))&&(o.then||o===s)&&(s.then=h),i(o),s.then=h};s._initted&&s.totalProgress()===1&&s._ts>=0||!s._tTime&&s._ts<0?l():s._prom=l})},a.kill=function(){_c(this)},t}();ha(pl.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-qe,_prom:0,_ps:!1,_rts:1});var bt=function(t){vI(a,t);function a(r,s){var i;return r===void 0&&(r={}),i=t.call(this,r)||this,i.labels={},i.smoothChildTiming=!!r.smoothChildTiming,i.autoRemoveChildren=!!r.autoRemoveChildren,i._sort=Rt(r.sortChildren),Ve&&Sa(r.parent||Ve,$a(i),s),r.reversed&&i.reverse(),r.paused&&i.paused(!0),r.scrollTrigger&&qI($a(i),r.scrollTrigger),i}var n=a.prototype;return n.to=function(s,i,o){return rl(0,arguments,this),this},n.from=function(s,i,o){return rl(1,arguments,this),this},n.fromTo=function(s,i,o,l){return rl(2,arguments,this),this},n.set=function(s,i,o){return i.duration=0,i.parent=this,nl(i).repeatDelay||(i.repeat=0),i.immediateRender=!!i.immediateRender,new Xe(s,i,aa(this,o),1),this},n.call=function(s,i,o){return Sa(this,Xe.delayedCall(0,s,i),o)},n.staggerTo=function(s,i,o,l,d,h,u){return o.duration=i,o.stagger=o.stagger||l,o.onComplete=h,o.onCompleteParams=u,o.parent=this,new Xe(s,o,aa(this,d)),this},n.staggerFrom=function(s,i,o,l,d,h,u){return o.runBackwards=1,nl(o).immediateRender=Rt(o.immediateRender),this.staggerTo(s,i,o,l,d,h,u)},n.staggerFromTo=function(s,i,o,l,d,h,u,p){return l.startAt=o,nl(l).immediateRender=Rt(l.immediateRender),this.staggerTo(s,i,l,d,h,u,p)},n.render=function(s,i,o){var l=this._time,d=this._dirty?this.totalDuration():this._tDur,h=this._dur,u=s<=0?0:nt(s),p=this._zTime<0!=s<0&&(this._initted||!h),y,m,x,f,v,k,w,b,C,j,I,N;if(this!==Ve&&u>d&&s>=0&&(u=d),u!==this._tTime||o||p){if(l!==this._time&&h&&(u+=this._time-l,s+=this._time-l),y=u,C=this._start,b=this._ts,k=!b,p&&(h||(l=this._zTime),(s||!i)&&(this._zTime=s)),this._repeat){if(I=this._yoyo,v=h+this._rDelay,this._repeat<-1&&s<0)return this.totalTime(v*100+s,i,o);if(y=nt(u%v),u===d?(f=this._repeat,y=h):(f=~~(u/v),f&&f===u/v&&(y=h,f--),y>h&&(y=h)),j=mc(this._tTime,v),!l&&this._tTime&&j!==f&&this._tTime-j*v-this._dur<=0&&(j=f),I&&f&1&&(y=h-y,N=1),f!==j&&!this._lock){var S=I&&j&1,L=S===(I&&f&1);if(f<j&&(S=!S),l=S?0:u%h?h:u,this._lock=1,this.render(l||(N?0:nt(f*v)),i,!h)._lock=0,this._tTime=u,!i&&this.parent&&Ut(this,"onRepeat"),this.vars.repeatRefresh&&!N&&(this.invalidate()._lock=1),l&&l!==this._time||k!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(h=this._dur,d=this._tDur,L&&(this._lock=2,l=S?h:-1e-4,this.render(l,!0),this.vars.repeatRefresh&&!N&&this.invalidate()),this._lock=0,!this._ts&&!k)return this;YI(this,N)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(w=Oq(this,nt(l),nt(y)),w&&(u-=y-(y=w._start))),this._tTime=u,this._time=y,this._act=!b,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=s,l=0),!l&&y&&!i&&!f&&(Ut(this,"onStart"),this._tTime!==u))return this;if(y>=l&&s>=0)for(m=this._first;m;){if(x=m._next,(m._act||y>=m._start)&&m._ts&&w!==m){if(m.parent!==this)return this.render(s,i,o);if(m.render(m._ts>0?(y-m._start)*m._ts:(m._dirty?m.totalDuration():m._tDur)+(y-m._start)*m._ts,i,o),y!==this._time||!this._ts&&!k){w=0,x&&(u+=this._zTime=-qe);break}}m=x}else{m=this._last;for(var q=s<0?s:y;m;){if(x=m._prev,(m._act||q<=m._end)&&m._ts&&w!==m){if(m.parent!==this)return this.render(s,i,o);if(m.render(m._ts>0?(q-m._start)*m._ts:(m._dirty?m.totalDuration():m._tDur)+(q-m._start)*m._ts,i,o||yt&&(m._initted||m._startAt)),y!==this._time||!this._ts&&!k){w=0,x&&(u+=this._zTime=q?-qe:qe);break}}m=x}}if(w&&!i&&(this.pause(),w.render(y>=l?0:-qe)._zTime=y>=l?1:-1,this._ts))return this._start=C,Zj(this),this.render(s,i,o);this._onUpdate&&!i&&Ut(this,"onUpdate",!0),(u===d&&this._tTime>=this.totalDuration()||!u&&l)&&(C===this._start||Math.abs(b)!==Math.abs(this._ts))&&(this._lock||((s||!h)&&(u===d&&this._ts>0||!u&&this._ts<0)&&qn(this,1),!i&&!(s<0&&!l)&&(u||l||!d)&&(Ut(this,u===d&&s>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u<d&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(s,i){var o=this;if(Ya(i)||(i=aa(this,i,s)),!(s instanceof pl)){if(ft(s))return s.forEach(function(l){return o.add(l,i)}),this;if(it(s))return this.addLabel(s,i);if(We(s))s=Xe.delayedCall(0,s);else return this}return this!==s?Sa(this,s,i):this},n.getChildren=function(s,i,o,l){s===void 0&&(s=!0),i===void 0&&(i=!0),o===void 0&&(o=!0),l===void 0&&(l=-ra);for(var d=[],h=this._first;h;)h._start>=l&&(h instanceof Xe?i&&d.push(h):(o&&d.push(h),s&&d.push.apply(d,h.getChildren(!0,i,o)))),h=h._next;return d},n.getById=function(s){for(var i=this.getChildren(1,1,1),o=i.length;o--;)if(i[o].vars.id===s)return i[o]},n.remove=function(s){return it(s)?this.removeLabel(s):We(s)?this.killTweensOf(s):(Wj(this,s),s===this._recent&&(this._recent=this._last),Co(this))},n.totalTime=function(s,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=nt($t.time-(this._ts>0?s/this._ts:(this.totalDuration()-s)/-this._ts))),t.prototype.totalTime.call(this,s,i),this._forcing=0,this):this._tTime},n.addLabel=function(s,i){return this.labels[s]=aa(this,i),this},n.removeLabel=function(s){return delete this.labels[s],this},n.addPause=function(s,i,o){var l=Xe.delayedCall(0,i||dl,o);return l.data="isPause",this._hasPause=1,Sa(this,l,aa(this,s))},n.removePause=function(s){var i=this._first;for(s=aa(this,s);i;)i._start===s&&i.data==="isPause"&&qn(i),i=i._next},n.killTweensOf=function(s,i,o){for(var l=this.getTweensOf(s,o),d=l.length;d--;)gn!==l[d]&&l[d].kill(s,i);return this},n.getTweensOf=function(s,i){for(var o=[],l=sa(s),d=this._first,h=Ya(i),u;d;)d instanceof Xe?Rq(d._targets,l)&&(h?(!gn||d._initted&&d._ts)&&d.globalTime(0)<=i&&d.globalTime(d.totalDuration())>i:!i||d.isActive())&&o.push(d):(u=d.getTweensOf(l,i)).length&&o.push.apply(o,u),d=d._next;return o},n.tweenTo=function(s,i){i=i||{};var o=this,l=aa(o,s),d=i,h=d.startAt,u=d.onStart,p=d.onStartParams,y=d.immediateRender,m,x=Xe.to(o,ha({ease:i.ease||"none",lazy:!1,immediateRender:!1,time:l,overwrite:"auto",duration:i.duration||Math.abs((l-(h&&"time"in h?h.time:o._time))/o.timeScale())||qe,onStart:function(){if(o.pause(),!m){var v=i.duration||Math.abs((l-(h&&"time"in h?h.time:o._time))/o.timeScale());x._dur!==v&&yc(x,v,0,1).render(x._time,!0,!0),m=1}u&&u.apply(x,p||[])}},i));return y?x.render(0):x},n.tweenFromTo=function(s,i,o){return this.tweenTo(i,ha({startAt:{time:aa(this,s)}},o))},n.recent=function(){return this._recent},n.nextLabel=function(s){return s===void 0&&(s=this._time),xN(this,aa(this,s))},n.previousLabel=function(s){return s===void 0&&(s=this._time),xN(this,aa(this,s),1)},n.currentLabel=function(s){return arguments.length?this.seek(s,!0):this.previousLabel(this._time+qe)},n.shiftChildren=function(s,i,o){o===void 0&&(o=0);for(var l=this._first,d=this.labels,h;l;)l._start>=o&&(l._start+=s,l._end+=s),l=l._next;if(i)for(h in d)d[h]>=o&&(d[h]+=s);return Co(this)},n.invalidate=function(s){var i=this._first;for(this._lock=0;i;)i.invalidate(s),i=i._next;return t.prototype.invalidate.call(this,s)},n.clear=function(s){s===void 0&&(s=!0);for(var i=this._first,o;i;)o=i._next,this.remove(i),i=o;return this._dp&&(this._time=this._tTime=this._pTime=0),s&&(this.labels={}),Co(this)},n.totalDuration=function(s){var i=0,o=this,l=o._last,d=ra,h,u,p;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-s:s));if(o._dirty){for(p=o.parent;l;)h=l._prev,l._dirty&&l.totalDuration(),u=l._start,u>d&&o._sort&&l._ts&&!o._lock?(o._lock=1,Sa(o,l,u-l._delay,1)._lock=0):d=u,u<0&&l._ts&&(i-=u,(!p&&!o._dp||p&&p.smoothChildTiming)&&(o._start+=u/o._ts,o._time-=u,o._tTime-=u),o.shiftChildren(-u,!1,-1/0),d=0),l._end>i&&l._ts&&(i=l._end),l=h;yc(o,o===Ve&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},a.updateRoot=function(s){if(Ve._ts&&(PI(Ve,Aj(s,Ve)),II=$t.frame),$t.frame>=pN){pN+=Wt.autoSleep||120;var i=Ve._first;if((!i||!i._ts)&&Wt.autoSleep&&$t._listeners.length<2){for(;i&&!i._ts;)i=i._next;i||$t.sleep()}}},a}(pl);ha(bt.prototype,{_lock:0,_hasPause:0,_forcing:0});var az=function(a,n,r,s,i,o,l){var d=new Dt(this._pt,a,n,0,1,sA,null,i),h=0,u=0,p,y,m,x,f,v,k,w;for(d.b=r,d.e=s,r+="",s+="",(k=~s.indexOf("random("))&&(s=hl(s)),o&&(w=[r,s],o(w,a,n),r=w[0],s=w[1]),y=r.match(j9)||[];p=j9.exec(s);)x=p[0],f=s.substring(h,p.index),m?m=(m+1)%5:f.substr(-5)==="rgba("&&(m=1),x!==y[u++]&&(v=parseFloat(y[u-1])||0,d._pt={_next:d._pt,p:f||u===1?f:",",s:v,c:x.charAt(1)==="="?oc(v,x)-v:parseFloat(x)-v,m:m&&m<4?Math.round:0},h=j9.lastIndex);return d.c=h<s.length?s.substring(h,s.length):"",d.fp=l,(jI.test(s)||k)&&(d.e=0),this._pt=d,d},tS=function(a,n,r,s,i,o,l,d,h,u){We(s)&&(s=s(i||0,a,o));var p=a[n],y=r!=="get"?r:We(p)?h?a[n.indexOf("set")||!We(a["get"+n.substr(3)])?n:"get"+n.substr(3)](h):a[n]():p,m=We(p)?h?oz:nA:nS,x;if(it(s)&&(~s.indexOf("random(")&&(s=hl(s)),s.charAt(1)==="="&&(x=oc(y,s)+(pt(y)||0),(x||x===0)&&(s=x))),!u||y!==s||xC)return!isNaN(y*s)&&s!==""?(x=new Dt(this._pt,a,n,+y||0,s-(y||0),typeof p=="boolean"?lz:rA,0,m),h&&(x.fp=h),l&&x.modifier(l,this,a),this._pt=x):(!p&&!(n in a)&&YC(n,s),az.call(this,a,n,y,s,m,d||Wt.stringFilter,h))},nz=function(a,n,r,s,i){if(We(a)&&(a=sl(a,i,n,r,s)),!Ta(a)||a.style&&a.nodeType||ft(a)||bI(a))return it(a)?sl(a,i,n,r,s):a;var o={},l;for(l in a)o[l]=sl(a[l],i,n,r,s);return o},eA=function(a,n,r,s,i,o){var l,d,h,u;if(Ot[a]&&(l=new Ot[a]).init(i,l.rawVars?n[a]:nz(n[a],s,i,o,r),r,s,o)!==!1&&(r._pt=d=new Dt(r._pt,i,a,0,1,l.render,l,0,l.priority),r!==Jo))for(h=r._ptLookup[r._targets.indexOf(i)],u=l._props.length;u--;)h[l._props[u]]=d;return l},gn,xC,aS=function t(a,n,r){var s=a.vars,i=s.ease,o=s.startAt,l=s.immediateRender,d=s.lazy,h=s.onUpdate,u=s.runBackwards,p=s.yoyoEase,y=s.keyframes,m=s.autoRevert,x=a._dur,f=a._startAt,v=a._targets,k=a.parent,w=k&&k.data==="nested"?k.vars.targets:v,b=a._overwrite==="auto"&&!WC,C=a.timeline,j,I,N,S,L,q,_,A,D,H,G,V,$;if(C&&(!y||!i)&&(i="none"),a._ease=So(i,pc.ease),a._yEase=p?XI(So(p===!0?i:p,pc.ease)):0,p&&a._yoyo&&!a._repeat&&(p=a._yEase,a._yEase=a._ease,a._ease=p),a._from=!C&&!!s.runBackwards,!C||y&&!s.stagger){if(A=v[0]?jo(v[0]).harness:0,V=A&&s[A.prop],j=Ij(s,KC),f&&(f._zTime<0&&f.progress(1),n<0&&u&&l&&!m?f.render(-1,!0):f.revert(u&&x?xj:Pq),f._lazy=0),o){if(qn(a._startAt=Xe.set(v,ha({data:"isStart",overwrite:!1,parent:k,immediateRender:!0,lazy:!f&&Rt(d),startAt:null,delay:0,onUpdate:h&&function(){return Ut(a,"onUpdate")},stagger:0},o))),a._startAt._dp=0,a._startAt._sat=a,n<0&&(yt||!l&&!m)&&a._startAt.revert(xj),l&&x&&n<=0&&r<=0){n&&(a._zTime=n);return}}else if(u&&x&&!f){if(n&&(l=!1),N=ha({overwrite:!1,data:"isFromStart",lazy:l&&!f&&Rt(d),immediateRender:l,stagger:0,parent:k},j),V&&(N[A.prop]=V),qn(a._startAt=Xe.set(v,N)),a._startAt._dp=0,a._startAt._sat=a,n<0&&(yt?a._startAt.revert(xj):a._startAt.render(-1,!0)),a._zTime=n,!l)t(a._startAt,qe,qe);else if(!n)return}for(a._pt=a._ptCache=0,d=x&&Rt(d)||d&&!x,I=0;I<v.length;I++){if(L=v[I],_=L._gsap||eS(v)[I]._gsap,a._ptLookup[I]=H={},hC[_.id]&&_n.length&&Lj(),G=w===v?I:w.indexOf(L),A&&(D=new A).init(L,V||j,a,G,w)!==!1&&(a._pt=S=new Dt(a._pt,L,D.name,0,1,D.render,D,0,D.priority),D._props.forEach(function(F){H[F]=S}),D.priority&&(q=1)),!A||V)for(N in j)Ot[N]&&(D=eA(N,j,a,G,L,w))?D.priority&&(q=1):H[N]=S=tS.call(a,L,N,"get",j[N],G,w,0,s.stringFilter);a._op&&a._op[I]&&a.kill(L,a._op[I]),b&&a._pt&&(gn=a,Ve.killTweensOf(L,H,a.globalTime(n)),$=!a.parent,gn=0),a._pt&&d&&(hC[_.id]=1)}q&&iA(a),a._onInit&&a._onInit(a)}a._onUpdate=h,a._initted=(!a._op||a._pt)&&!$,y&&n<=0&&C.render(ra,!0,!0)},rz=function(a,n,r,s,i,o,l,d){var h=(a._pt&&a._ptCache||(a._ptCache={}))[n],u,p,y,m;if(!h)for(h=a._ptCache[n]=[],y=a._ptLookup,m=a._targets.length;m--;){if(u=y[m][n],u&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==n&&u.fp!==n;)u=u._next;if(!u)return xC=1,a.vars[n]="+=0",aS(a,l),xC=0,d?ll(n+" not eligible for reset"):1;h.push(u)}for(m=h.length;m--;)p=h[m],u=p._pt||p,u.s=(s||s===0)&&!i?s:u.s+(s||0)+o*u.c,u.c=r-u.s,p.e&&(p.e=Je(r)+pt(p.e)),p.b&&(p.b=u.s+pt(p.b))},sz=function(a,n){var r=a[0]?jo(a[0]).harness:0,s=r&&r.aliases,i,o,l,d;if(!s)return n;i=Io({},n);for(o in s)if(o in i)for(d=s[o].split(","),l=d.length;l--;)i[d[l]]=i[o];return i},iz=function(a,n,r,s){var i=n.ease||s||"power1.inOut",o,l;if(ft(n))l=r[a]||(r[a]=[]),n.forEach(function(d,h){return l.push({t:h/(n.length-1)*100,v:d,e:i})});else for(o in n)l=r[o]||(r[o]=[]),o==="ease"||l.push({t:parseFloat(a),v:n[o],e:i})},sl=function(a,n,r,s,i){return We(a)?a.call(n,r,s,i):it(a)&&~a.indexOf("random(")?hl(a):a},tA=QC+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",aA={};Tt(tA+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return aA[t]=1});var Xe=function(t){vI(a,t);function a(r,s,i,o){var l;typeof s=="number"&&(i.duration=s,s=i,i=null),l=t.call(this,o?s:nl(s))||this;var d=l.vars,h=d.duration,u=d.delay,p=d.immediateRender,y=d.stagger,m=d.overwrite,x=d.keyframes,f=d.defaults,v=d.scrollTrigger,k=d.yoyoEase,w=s.parent||Ve,b=(ft(r)||bI(r)?Ya(r[0]):"length"in s)?[r]:sa(r),C,j,I,N,S,L,q,_;if(l._targets=b.length?eS(b):ll("GSAP target "+r+" not found. https://gsap.com",!Wt.nullTargetWarn)||[],l._ptLookup=[],l._overwrite=m,x||y||Ll(h)||Ll(u)){if(s=l.vars,C=l.timeline=new bt({data:"nested",defaults:f||{},targets:w&&w.data==="nested"?w.vars.targets:b}),C.kill(),C.parent=C._dp=$a(l),C._start=0,y||Ll(h)||Ll(u)){if(N=b.length,q=y&&OI(y),Ta(y))for(S in y)~tA.indexOf(S)&&(_||(_={}),_[S]=y[S]);for(j=0;j<N;j++)I=Ij(s,aA),I.stagger=0,k&&(I.yoyoEase=k),_&&Io(I,_),L=b[j],I.duration=+sl(h,$a(l),j,L,b),I.delay=(+sl(u,$a(l),j,L,b)||0)-l._delay,!y&&N===1&&I.delay&&(l._delay=u=I.delay,l._start+=u,I.delay=0),C.to(L,I,q?q(j,L,b):0),C._ease=Ce.none;C.duration()?h=u=0:l.timeline=0}else if(x){nl(ha(C.vars.defaults,{ease:"none"})),C._ease=So(x.ease||s.ease||"none");var A=0,D,H,G;if(ft(x))x.forEach(function(V){return C.to(b,V,">")}),C.duration();else{I={};for(S in x)S==="ease"||S==="easeEach"||iz(S,x[S],I,x.easeEach);for(S in I)for(D=I[S].sort(function(V,$){return V.t-$.t}),A=0,j=0;j<D.length;j++)H=D[j],G={ease:H.e,duration:(H.t-(j?D[j-1].t:0))/100*h},G[S]=H.v,C.to(b,G,A),A+=G.duration;C.duration()<h&&C.to({},{duration:h-C.duration()})}}h||l.duration(h=C.duration())}else l.timeline=0;return m===!0&&!WC&&(gn=$a(l),Ve.killTweensOf(b),gn=0),Sa(w,$a(l),i),s.reversed&&l.reverse(),s.paused&&l.paused(!0),(p||!h&&!x&&l._start===nt(w._time)&&Rt(p)&&zq($a(l))&&w.data!=="nested")&&(l._tTime=-qe,l.render(Math.max(0,-u)||0)),v&&qI($a(l),v),l}var n=a.prototype;return n.render=function(s,i,o){var l=this._time,d=this._tDur,h=this._dur,u=s<0,p=s>d-qe&&!u?d:s<qe?0:s,y,m,x,f,v,k,w,b,C;if(!h)Fq(this,s,i,o);else if(p!==this._tTime||!s||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==u){if(y=p,b=this.timeline,this._repeat){if(f=h+this._rDelay,this._repeat<-1&&u)return this.totalTime(f*100+s,i,o);if(y=nt(p%f),p===d?(x=this._repeat,y=h):(x=~~(p/f),x&&x===nt(p/f)&&(y=h,x--),y>h&&(y=h)),k=this._yoyo&&x&1,k&&(C=this._yEase,y=h-y),v=mc(this._tTime,f),y===l&&!o&&this._initted&&x===v)return this._tTime=p,this;x!==v&&(b&&this._yEase&&YI(b,k),this.vars.repeatRefresh&&!k&&!this._lock&&this._time!==f&&this._initted&&(this._lock=o=1,this.render(nt(f*x),!0).invalidate()._lock=0))}if(!this._initted){if(zI(this,u?s:y,o,i,p))return this._tTime=0,this;if(l!==this._time&&!(o&&this.vars.repeatRefresh&&x!==v))return this;if(h!==this._dur)return this.render(s,i,o)}if(this._tTime=p,this._time=y,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=w=(C||this._ease)(y/h),this._from&&(this.ratio=w=1-w),y&&!l&&!i&&!x&&(Ut(this,"onStart"),this._tTime!==p))return this;for(m=this._pt;m;)m.r(w,m.d),m=m._next;b&&b.render(s<0?s:b._dur*b._ease(y/this._dur),i,o)||this._startAt&&(this._zTime=s),this._onUpdate&&!i&&(u&&uC(this,s,i,o),Ut(this,"onUpdate")),this._repeat&&x!==v&&this.vars.onRepeat&&!i&&this.parent&&Ut(this,"onRepeat"),(p===this._tDur||!p)&&this._tTime===p&&(u&&!this._onUpdate&&uC(this,s,!0,!0),(s||!h)&&(p===this._tDur&&this._ts>0||!p&&this._ts<0)&&qn(this,1),!i&&!(u&&!l)&&(p||l||k)&&(Ut(this,p===d?"onComplete":"onReverseComplete",!0),this._prom&&!(p<d&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(s){return(!s||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(s),t.prototype.invalidate.call(this,s)},n.resetTo=function(s,i,o,l,d){ul||$t.wake(),this._ts||this.play();var h=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||aS(this,h),u=this._ease(h/this._dur),rz(this,s,i,o,l,u,h,d)?this.resetTo(s,i,o,l,1):(Jj(this,0),this.parent||TI(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(s,i){if(i===void 0&&(i="all"),!s&&(!i||i==="all"))return this._lazy=this._pt=0,this.parent?_c(this):this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(s,i,gn&&gn.vars.overwrite!==!0)._first||_c(this),this.parent&&o!==this.timeline.totalDuration()&&yc(this,this._dur*this.timeline._tDur/o,0,1),this}var l=this._targets,d=s?sa(s):l,h=this._ptLookup,u=this._pt,p,y,m,x,f,v,k;if((!i||i==="all")&&Dq(l,d))return i==="all"&&(this._pt=0),_c(this);for(p=this._op=this._op||[],i!=="all"&&(it(i)&&(f={},Tt(i,function(w){return f[w]=1}),i=f),i=sz(l,i)),k=l.length;k--;)if(~d.indexOf(l[k])){y=h[k],i==="all"?(p[k]=i,x=y,m={}):(m=p[k]=p[k]||{},x=i);for(f in x)v=y&&y[f],v&&((!("kill"in v.d)||v.d.kill(f)===!0)&&Wj(this,v,"_pt"),delete y[f]),m!=="all"&&(m[f]=1)}return this._initted&&!this._pt&&u&&_c(this),this},a.to=function(s,i){return new a(s,i,arguments[2])},a.from=function(s,i){return rl(1,arguments)},a.delayedCall=function(s,i,o,l){return new a(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:s,onComplete:i,onReverseComplete:i,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:l})},a.fromTo=function(s,i,o){return rl(2,arguments)},a.set=function(s,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new a(s,i)},a.killTweensOf=function(s,i,o){return Ve.killTweensOf(s,i,o)},a}(pl);ha(Xe.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Tt("staggerTo,staggerFrom,staggerFromTo",function(t){Xe[t]=function(){var a=new bt,n=mC.call(arguments,0);return n.splice(t==="staggerFromTo"?5:4,0,0),a[t].apply(a,n)}});var nS=function(a,n,r){return a[n]=r},nA=function(a,n,r){return a[n](r)},oz=function(a,n,r,s){return a[n](s.fp,r)},cz=function(a,n,r){return a.setAttribute(n,r)},rS=function(a,n){return We(a[n])?nA:ZC(a[n])&&a.setAttribute?cz:nS},rA=function(a,n){return n.set(n.t,n.p,Math.round((n.s+n.c*a)*1e6)/1e6,n)},lz=function(a,n){return n.set(n.t,n.p,!!(n.s+n.c*a),n)},sA=function(a,n){var r=n._pt,s="";if(!a&&n.b)s=n.b;else if(a===1&&n.e)s=n.e;else{for(;r;)s=r.p+(r.m?r.m(r.s+r.c*a):Math.round((r.s+r.c*a)*1e4)/1e4)+s,r=r._next;s+=n.c}n.set(n.t,n.p,s,n)},sS=function(a,n){for(var r=n._pt;r;)r.r(a,r.d),r=r._next},dz=function(a,n,r,s){for(var i=this._pt,o;i;)o=i._next,i.p===s&&i.modifier(a,n,r),i=o},hz=function(a){for(var n=this._pt,r,s;n;)s=n._next,n.p===a&&!n.op||n.op===a?Wj(this,n,"_pt"):n.dep||(r=1),n=s;return!r},uz=function(a,n,r,s){s.mSet(a,n,s.m.call(s.tween,r,s.mt),s)},iA=function(a){for(var n=a._pt,r,s,i,o;n;){for(r=n._next,s=i;s&&s.pr>n.pr;)s=s._next;(n._prev=s?s._prev:o)?n._prev._next=n:i=n,(n._next=s)?s._prev=n:o=n,n=r}a._pt=i},Dt=function(){function t(n,r,s,i,o,l,d,h,u){this.t=r,this.s=i,this.c=o,this.p=s,this.r=l||rA,this.d=d||this,this.set=h||nS,this.pr=u||0,this._next=n,n&&(n._prev=this)}var a=t.prototype;return a.modifier=function(r,s,i){this.mSet=this.mSet||this.set,this.set=uz,this.m=r,this.mt=i,this.tween=s},t}();Tt(QC+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return KC[t]=1});Xt.TweenMax=Xt.TweenLite=Xe;Xt.TimelineLite=Xt.TimelineMax=bt;Ve=new bt({sortChildren:!1,defaults:pc,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Wt.stringFilter=JI;var No=[],kj={},pz=[],kN=0,mz=0,I9=function(a){return(kj[a]||pz).map(function(n){return n()})},gC=function(){var a=Date.now(),n=[];a-kN>2&&(I9("matchMediaInit"),No.forEach(function(r){var s=r.queries,i=r.conditions,o,l,d,h;for(l in s)o=Ma.matchMedia(s[l]).matches,o&&(d=1),o!==i[l]&&(i[l]=o,h=1);h&&(r.revert(),d&&n.push(r))}),I9("matchMediaRevert"),n.forEach(function(r){return r.onMatch(r,function(s){return r.add(null,s)})}),kN=a,I9("matchMedia"))},oA=function(){function t(n,r){this.selector=r&&yC(r),this.data=[],this._r=[],this.isReverted=!1,this.id=mz++,n&&this.add(n)}var a=t.prototype;return a.add=function(r,s,i){We(r)&&(i=s,s=r,r=We);var o=this,l=function(){var h=Oe,u=o.selector,p;return h&&h!==o&&h.data.push(o),i&&(o.selector=yC(i)),Oe=o,p=s.apply(o,arguments),We(p)&&o._r.push(p),Oe=h,o.selector=u,o.isReverted=!1,p};return o.last=l,r===We?l(o,function(d){return o.add(null,d)}):r?o[r]=l:l},a.ignore=function(r){var s=Oe;Oe=null,r(this),Oe=s},a.getTweens=function(){var r=[];return this.data.forEach(function(s){return s instanceof t?r.push.apply(r,s.getTweens()):s instanceof Xe&&!(s.parent&&s.parent.data==="nested")&&r.push(s)}),r},a.clear=function(){this._r.length=this.data.length=0},a.kill=function(r,s){var i=this;if(r?function(){for(var l=i.getTweens(),d=i.data.length,h;d--;)h=i.data[d],h.data==="isFlip"&&(h.revert(),h.getChildren(!0,!0,!1).forEach(function(u){return l.splice(l.indexOf(u),1)}));for(l.map(function(u){return{g:u._dur||u._delay||u._sat&&!u._sat.vars.immediateRender?u.globalTime(0):-1/0,t:u}}).sort(function(u,p){return p.g-u.g||-1/0}).forEach(function(u){return u.t.revert(r)}),d=i.data.length;d--;)h=i.data[d],h instanceof bt?h.data!=="nested"&&(h.scrollTrigger&&h.scrollTrigger.revert(),h.kill()):!(h instanceof Xe)&&h.revert&&h.revert(r);i._r.forEach(function(u){return u(r,i)}),i.isReverted=!0}():this.data.forEach(function(l){return l.kill&&l.kill()}),this.clear(),s)for(var o=No.length;o--;)No[o].id===this.id&&No.splice(o,1)},a.revert=function(r){this.kill(r||{})},t}(),yz=function(){function t(n){this.contexts=[],this.scope=n,Oe&&Oe.data.push(this)}var a=t.prototype;return a.add=function(r,s,i){Ta(r)||(r={matches:r});var o=new oA(0,i||this.scope),l=o.conditions={},d,h,u;Oe&&!o.selector&&(o.selector=Oe.selector),this.contexts.push(o),s=o.add("onMatch",s),o.queries=r;for(h in r)h==="all"?u=1:(d=Ma.matchMedia(r[h]),d&&(No.indexOf(o)<0&&No.push(o),(l[h]=d.matches)&&(u=1),d.addListener?d.addListener(gC):d.addEventListener("change",gC)));return u&&s(o,function(p){return o.add(null,p)}),this},a.revert=function(r){this.kill(r||{})},a.kill=function(r){this.contexts.forEach(function(s){return s.kill(r,!0)})},t}(),Pj={registerPlugin:function(){for(var a=arguments.length,n=new Array(a),r=0;r<a;r++)n[r]=arguments[r];n.forEach(function(s){return GI(s)})},timeline:function(a){return new bt(a)},getTweensOf:function(a,n){return Ve.getTweensOf(a,n)},getProperty:function(a,n,r,s){it(a)&&(a=sa(a)[0]);var i=jo(a||{}).get,o=r?RI:_I;return r==="native"&&(r=""),a&&(n?o((Ot[n]&&Ot[n].get||i)(a,n,r,s)):function(l,d,h){return o((Ot[l]&&Ot[l].get||i)(a,l,d,h))})},quickSetter:function(a,n,r){if(a=sa(a),a.length>1){var s=a.map(function(u){return zt.quickSetter(u,n,r)}),i=s.length;return function(u){for(var p=i;p--;)s[p](u)}}a=a[0]||{};var o=Ot[n],l=jo(a),d=l.harness&&(l.harness.aliases||{})[n]||n,h=o?function(u){var p=new o;Jo._pt=0,p.init(a,r?u+r:u,Jo,0,[a]),p.render(1,p),Jo._pt&&sS(1,Jo)}:l.set(a,d);return o?h:function(u){return h(a,d,r?u+r:u,l,1)}},quickTo:function(a,n,r){var s,i=zt.to(a,Io((s={},s[n]="+=0.1",s.paused=!0,s),r||{})),o=function(d,h,u){return i.resetTo(n,d,h,u)};return o.tween=i,o},isTweening:function(a){return Ve.getTweensOf(a,!0).length>0},defaults:function(a){return a&&a.ease&&(a.ease=So(a.ease,pc.ease)),mN(pc,a||{})},config:function(a){return mN(Wt,a||{})},registerEffect:function(a){var n=a.name,r=a.effect,s=a.plugins,i=a.defaults,o=a.extendTimeline;(s||"").split(",").forEach(function(l){return l&&!Ot[l]&&!Xt[l]&&ll(n+" effect requires "+l+" plugin.")}),C9[n]=function(l,d,h){return r(sa(l),ha(d||{},i),h)},o&&(bt.prototype[n]=function(l,d,h){return this.add(C9[n](l,Ta(d)?d:(h=d)&&{},this),h)})},registerEase:function(a,n){Ce[a]=So(n)},parseEase:function(a,n){return arguments.length?So(a,n):Ce},getById:function(a){return Ve.getById(a)},exportRoot:function(a,n){a===void 0&&(a={});var r=new bt(a),s,i;for(r.smoothChildTiming=Rt(a.smoothChildTiming),Ve.remove(r),r._dp=0,r._time=r._tTime=Ve._time,s=Ve._first;s;)i=s._next,(n||!(!s._dur&&s instanceof Xe&&s.vars.onComplete===s._targets[0]))&&Sa(r,s,s._start-s._delay),s=i;return Sa(Ve,r,0),r},context:function(a,n){return a?new oA(a,n):Oe},matchMedia:function(a){return new yz(a)},matchMediaRefresh:function(){return No.forEach(function(a){var n=a.conditions,r,s;for(s in n)n[s]&&(n[s]=!1,r=1);r&&a.revert()})||gC()},addEventListener:function(a,n){var r=kj[a]||(kj[a]=[]);~r.indexOf(n)||r.push(n)},removeEventListener:function(a,n){var r=kj[a],s=r&&r.indexOf(n);s>=0&&r.splice(s,1)},utils:{wrap:Wq,wrapYoyo:Zq,distribute:OI,random:VI,snap:HI,normalize:Gq,getUnit:pt,clamp:Vq,splitColor:WI,toArray:sa,selector:yC,mapRange:$I,pipe:$q,unitize:Uq,interpolate:Jq,shuffle:FI},install:NI,effects:C9,ticker:$t,updateRoot:bt.updateRoot,plugins:Ot,globalTimeline:Ve,core:{PropTween:Dt,globals:LI,Tween:Xe,Timeline:bt,Animation:pl,getCache:jo,_removeLinkedListItem:Wj,reverting:function(){return yt},context:function(a){return a&&Oe&&(Oe.data.push(a),a._ctx=Oe),Oe},suppressOverwrites:function(a){return WC=a}}};Tt("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Pj[t]=Xe[t]});$t.add(bt.updateRoot);Jo=Pj.to({},{duration:0});var fz=function(a,n){for(var r=a._pt;r&&r.p!==n&&r.op!==n&&r.fp!==n;)r=r._next;return r},xz=function(a,n){var r=a._targets,s,i,o;for(s in n)for(i=r.length;i--;)o=a._ptLookup[i][s],o&&(o=o.d)&&(o._pt&&(o=fz(o,s)),o&&o.modifier&&o.modifier(n[s],a,r[i],s))},A9=function(a,n){return{name:a,rawVars:1,init:function(s,i,o){o._onInit=function(l){var d,h;if(it(i)&&(d={},Tt(i,function(u){return d[u]=1}),i=d),n){d={};for(h in i)d[h]=n(i[h]);i=d}xz(l,i)}}}},zt=Pj.registerPlugin({name:"attr",init:function(a,n,r,s,i){var o,l,d;this.tween=r;for(o in n)d=a.getAttribute(o)||"",l=this.add(a,"setAttribute",(d||0)+"",n[o],s,i,0,0,o),l.op=o,l.b=d,this._props.push(o)},render:function(a,n){for(var r=n._pt;r;)yt?r.set(r.t,r.p,r.b,r):r.r(a,r.d),r=r._next}},{name:"endArray",init:function(a,n){for(var r=n.length;r--;)this.add(a,r,a[r]||0,n[r],0,0,0,0,0,1)}},A9("roundProps",fC),A9("modifiers"),A9("snap",HI))||Pj;Xe.version=bt.version=zt.version="3.12.5";SI=1;JC()&&fc();Ce.Power0;Ce.Power1;Ce.Power2;Ce.Power3;Ce.Power4;Ce.Linear;Ce.Quad;Ce.Cubic;Ce.Quart;Ce.Quint;Ce.Strong;Ce.Elastic;Ce.Back;Ce.SteppedEase;Ce.Bounce;Ce.Sine;Ce.Expo;Ce.Circ;/*!
7733
+ */var Wt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},pc={duration:.5,overwrite:!1,delay:0},WC,yt,Oe,ra=1e8,qe=1/ra,cC=Math.PI*2,Sq=cC/4,Nq=0,wI=Math.sqrt,Lq=Math.cos,Iq=Math.sin,it=function(a){return typeof a=="string"},We=function(a){return typeof a=="function"},Ya=function(a){return typeof a=="number"},ZC=function(a){return typeof a>"u"},Ta=function(a){return typeof a=="object"},Rt=function(a){return a!==!1},JC=function(){return typeof window<"u"},Ll=function(a){return We(a)||it(a)},bI=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},ft=Array.isArray,lC=/(?:-?\.?\d|\.)+/gi,MI=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Zo=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,j9=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,jI=/[+-]=-?[.\d]+/,CI=/[^,'"\[\]\s]+/gi,Aq=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Ve,Ma,dC,XC,Xt={},Nj={},SI,NI=function(a){return(Nj=Io(a,Xt))&&zt},YC=function(a,n){return console.warn("Invalid property",a,"set to",n,"Missing plugin? gsap.registerPlugin()")},ll=function(a,n){return!n&&console.warn(a)},LI=function(a,n){return a&&(Xt[a]=n)&&Nj&&(Nj[a]=n)||Xt},dl=function(){return 0},Pq={suppressEvents:!0,isStart:!0,kill:!1},xj={suppressEvents:!0,kill:!1},_q={suppressEvents:!0},KC={},_n=[],hC={},II,Ot={},C9={},pN=30,gj=[],QC="",eS=function(a){var n=a[0],r,s;if(Ta(n)||We(n)||(a=[a]),!(r=(n._gsap||{}).harness)){for(s=gj.length;s--&&!gj[s].targetTest(n););r=gj[s]}for(s=a.length;s--;)a[s]&&(a[s]._gsap||(a[s]._gsap=new QI(a[s],r)))||a.splice(s,1);return a},jo=function(a){return a._gsap||eS(sa(a))[0]._gsap},AI=function(a,n,r){return(r=a[n])&&We(r)?a[n]():ZC(r)&&a.getAttribute&&a.getAttribute(n)||r},Tt=function(a,n){return(a=a.split(",")).forEach(n)||a},Je=function(a){return Math.round(a*1e5)/1e5||0},nt=function(a){return Math.round(a*1e7)/1e7||0},oc=function(a,n){var r=n.charAt(0),s=parseFloat(n.substr(2));return a=parseFloat(a),r==="+"?a+s:r==="-"?a-s:r==="*"?a*s:a/s},Rq=function(a,n){for(var r=n.length,s=0;a.indexOf(n[s])<0&&++s<r;);return s<r},Lj=function(){var a=_n.length,n=_n.slice(0),r,s;for(hC={},_n.length=0,r=0;r<a;r++)s=n[r],s&&s._lazy&&(s.render(s._lazy[0],s._lazy[1],!0)._lazy=0)},PI=function(a,n,r,s){_n.length&&!yt&&Lj(),a.render(n,r,yt&&n<0&&(a._initted||a._startAt)),_n.length&&!yt&&Lj()},_I=function(a){var n=parseFloat(a);return(n||n===0)&&(a+"").match(CI).length<2?n:it(a)?a.trim():a},RI=function(a){return a},ha=function(a,n){for(var r in n)r in a||(a[r]=n[r]);return a},Tq=function(a){return function(n,r){for(var s in r)s in n||s==="duration"&&a||s==="ease"||(n[s]=r[s])}},Io=function(a,n){for(var r in n)a[r]=n[r];return a},mN=function t(a,n){for(var r in n)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(a[r]=Ta(n[r])?t(a[r]||(a[r]={}),n[r]):n[r]);return a},Ij=function(a,n){var r={},s;for(s in a)s in n||(r[s]=a[s]);return r},nl=function(a){var n=a.parent||Ve,r=a.keyframes?Tq(ft(a.keyframes)):ha;if(Rt(a.inherit))for(;n;)r(a,n.vars.defaults),n=n.parent||n._dp;return a},Dq=function(a,n){for(var r=a.length,s=r===n.length;s&&r--&&a[r]===n[r];);return r<0},TI=function(a,n,r,s,i){var o=a[s],l;if(i)for(l=n[i];o&&o[i]>l;)o=o._prev;return o?(n._next=o._next,o._next=n):(n._next=a[r],a[r]=n),n._next?n._next._prev=n:a[s]=n,n._prev=o,n.parent=n._dp=a,n},Wj=function(a,n,r,s){r===void 0&&(r="_first"),s===void 0&&(s="_last");var i=n._prev,o=n._next;i?i._next=o:a[r]===n&&(a[r]=o),o?o._prev=i:a[s]===n&&(a[s]=i),n._next=n._prev=n.parent=null},qn=function(a,n){a.parent&&(!n||a.parent.autoRemoveChildren)&&a.parent.remove&&a.parent.remove(a),a._act=0},Co=function(a,n){if(a&&(!n||n._end>a._dur||n._start<0))for(var r=a;r;)r._dirty=1,r=r.parent;return a},qq=function(a){for(var n=a.parent;n&&n.parent;)n._dirty=1,n.totalDuration(),n=n.parent;return a},uC=function(a,n,r,s){return a._startAt&&(yt?a._startAt.revert(xj):a.vars.immediateRender&&!a.vars.autoRevert||a._startAt.render(n,!0,s))},zq=function t(a){return!a||a._ts&&t(a.parent)},yN=function(a){return a._repeat?mc(a._tTime,a=a.duration()+a._rDelay)*a:0},mc=function(a,n){var r=Math.floor(a/=n);return a&&r===a?r-1:r},Aj=function(a,n){return(a-n._start)*n._ts+(n._ts>=0?0:n._dirty?n.totalDuration():n._tDur)},Zj=function(a){return a._end=nt(a._start+(a._tDur/Math.abs(a._ts||a._rts||qe)||0))},Jj=function(a,n){var r=a._dp;return r&&r.smoothChildTiming&&a._ts&&(a._start=nt(r._time-(a._ts>0?n/a._ts:((a._dirty?a.totalDuration():a._tDur)-n)/-a._ts)),Zj(a),r._dirty||Co(r,a)),a},DI=function(a,n){var r;if((n._time||!n._dur&&n._initted||n._start<a._time&&(n._dur||!n.add))&&(r=Aj(a.rawTime(),n),(!n._dur||vl(0,n.totalDuration(),r)-n._tTime>qe)&&n.render(r,!0)),Co(a,n)._dp&&a._initted&&a._time>=a._dur&&a._ts){if(a._dur<a.duration())for(r=a;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;a._zTime=-qe}},Sa=function(a,n,r,s){return n.parent&&qn(n),n._start=nt((Ya(r)?r:r||a!==Ve?aa(a,r,n):a._time)+n._delay),n._end=nt(n._start+(n.totalDuration()/Math.abs(n.timeScale())||0)),TI(a,n,"_first","_last",a._sort?"_start":0),pC(n)||(a._recent=n),s||DI(a,n),a._ts<0&&Jj(a,a._tTime),a},qI=function(a,n){return(Xt.ScrollTrigger||YC("scrollTrigger",n))&&Xt.ScrollTrigger.create(n,a)},zI=function(a,n,r,s,i){if(aS(a,n,i),!a._initted)return 1;if(!r&&a._pt&&!yt&&(a._dur&&a.vars.lazy!==!1||!a._dur&&a.vars.lazy)&&II!==$t.frame)return _n.push(a),a._lazy=[i,s],1},Eq=function t(a){var n=a.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},pC=function(a){var n=a.data;return n==="isFromStart"||n==="isStart"},Fq=function(a,n,r,s){var i=a.ratio,o=n<0||!n&&(!a._start&&Eq(a)&&!(!a._initted&&pC(a))||(a._ts<0||a._dp._ts<0)&&!pC(a))?0:1,l=a._rDelay,d=0,h,u,p;if(l&&a._repeat&&(d=vl(0,a._tDur,n),u=mc(d,l),a._yoyo&&u&1&&(o=1-o),u!==mc(a._tTime,l)&&(i=1-o,a.vars.repeatRefresh&&a._initted&&a.invalidate())),o!==i||yt||s||a._zTime===qe||!n&&a._zTime){if(!a._initted&&zI(a,n,s,r,d))return;for(p=a._zTime,a._zTime=n||(r?qe:0),r||(r=n&&!p),a.ratio=o,a._from&&(o=1-o),a._time=0,a._tTime=d,h=a._pt;h;)h.r(o,h.d),h=h._next;n<0&&uC(a,n,r,!0),a._onUpdate&&!r&&Ut(a,"onUpdate"),d&&a._repeat&&!r&&a.parent&&Ut(a,"onRepeat"),(n>=a._tDur||n<0)&&a.ratio===o&&(o&&qn(a,1),!r&&!yt&&(Ut(a,o?"onComplete":"onReverseComplete",!0),a._prom&&a._prom()))}else a._zTime||(a._zTime=n)},Oq=function(a,n,r){var s;if(r>n)for(s=a._first;s&&s._start<=r;){if(s.data==="isPause"&&s._start>n)return s;s=s._next}else for(s=a._last;s&&s._start>=r;){if(s.data==="isPause"&&s._start<n)return s;s=s._prev}},yc=function(a,n,r,s){var i=a._repeat,o=nt(n)||0,l=a._tTime/a._tDur;return l&&!s&&(a._time*=o/a._dur),a._dur=o,a._tDur=i?i<0?1e10:nt(o*(i+1)+a._rDelay*i):o,l>0&&!s&&Jj(a,a._tTime=a._tDur*l),a.parent&&Zj(a),r||Co(a.parent,a),a},fN=function(a){return a instanceof bt?Co(a):yc(a,a._dur)},Hq={_start:0,endTime:dl,totalDuration:dl},aa=function t(a,n,r){var s=a.labels,i=a._recent||Hq,o=a.duration()>=ra?i.endTime(!1):a._dur,l,d,h;return it(n)&&(isNaN(n)||n in s)?(d=n.charAt(0),h=n.substr(-1)==="%",l=n.indexOf("="),d==="<"||d===">"?(l>=0&&(n=n.replace(/=/,"")),(d==="<"?i._start:i.endTime(i._repeat>=0))+(parseFloat(n.substr(1))||0)*(h?(l<0?i:r).totalDuration()/100:1)):l<0?(n in s||(s[n]=o),s[n]):(d=parseFloat(n.charAt(l-1)+n.substr(l+1)),h&&r&&(d=d/100*(ft(r)?r[0]:r).totalDuration()),l>1?t(a,n.substr(0,l-1),r)+d:o+d)):n==null?o:+n},rl=function(a,n,r){var s=Ya(n[1]),i=(s?2:1)+(a<2?0:1),o=n[i],l,d;if(s&&(o.duration=n[1]),o.parent=r,a){for(l=o,d=r;d&&!("immediateRender"in l);)l=d.vars.defaults||{},d=Rt(d.vars.inherit)&&d.parent;o.immediateRender=Rt(l.immediateRender),a<2?o.runBackwards=1:o.startAt=n[i-1]}return new Xe(n[0],o,n[i+1])},On=function(a,n){return a||a===0?n(a):n},vl=function(a,n,r){return r<a?a:r>n?n:r},pt=function(a,n){return!it(a)||!(n=Aq.exec(a))?"":n[1]},Vq=function(a,n,r){return On(r,function(s){return vl(a,n,s)})},mC=[].slice,EI=function(a,n){return a&&Ta(a)&&"length"in a&&(!n&&!a.length||a.length-1 in a&&Ta(a[0]))&&!a.nodeType&&a!==Ma},Bq=function(a,n,r){return r===void 0&&(r=[]),a.forEach(function(s){var i;return it(s)&&!n||EI(s,1)?(i=r).push.apply(i,sa(s)):r.push(s)})||r},sa=function(a,n,r){return Oe&&!n&&Oe.selector?Oe.selector(a):it(a)&&!r&&(dC||!fc())?mC.call((n||XC).querySelectorAll(a),0):ft(a)?Bq(a,r):EI(a)?mC.call(a,0):a?[a]:[]},yC=function(a){return a=sa(a)[0]||ll("Invalid scope")||{},function(n){var r=a.current||a.nativeElement||a;return sa(n,r.querySelectorAll?r:r===a?ll("Invalid scope")||XC.createElement("div"):a)}},FI=function(a){return a.sort(function(){return .5-Math.random()})},OI=function(a){if(We(a))return a;var n=Ta(a)?a:{each:a},r=So(n.ease),s=n.from||0,i=parseFloat(n.base)||0,o={},l=s>0&&s<1,d=isNaN(s)||l,h=n.axis,u=s,p=s;return it(s)?u=p={center:.5,edges:.5,end:1}[s]||0:!l&&d&&(u=s[0],p=s[1]),function(y,m,x){var f=(x||n).length,v=o[f],k,w,b,C,j,I,N,S,L;if(!v){if(L=n.grid==="auto"?0:(n.grid||[1,ra])[1],!L){for(N=-ra;N<(N=x[L++].getBoundingClientRect().left)&&L<f;);L<f&&L--}for(v=o[f]=[],k=d?Math.min(L,f)*u-.5:s%L,w=L===ra?0:d?f*p/L-.5:s/L|0,N=0,S=ra,I=0;I<f;I++)b=I%L-k,C=w-(I/L|0),v[I]=j=h?Math.abs(h==="y"?C:b):wI(b*b+C*C),j>N&&(N=j),j<S&&(S=j);s==="random"&&FI(v),v.max=N-S,v.min=S,v.v=f=(parseFloat(n.amount)||parseFloat(n.each)*(L>f?f-1:h?h==="y"?f/L:L:Math.max(L,f/L))||0)*(s==="edges"?-1:1),v.b=f<0?i-f:i,v.u=pt(n.amount||n.each)||0,r=r&&f<0?XI(r):r}return f=(v[y]-v.min)/v.max||0,nt(v.b+(r?r(f):f)*v.v)+v.u}},fC=function(a){var n=Math.pow(10,((a+"").split(".")[1]||"").length);return function(r){var s=nt(Math.round(parseFloat(r)/a)*a*n);return(s-s%1)/n+(Ya(r)?0:pt(r))}},HI=function(a,n){var r=ft(a),s,i;return!r&&Ta(a)&&(s=r=a.radius||ra,a.values?(a=sa(a.values),(i=!Ya(a[0]))&&(s*=s)):a=fC(a.increment)),On(n,r?We(a)?function(o){return i=a(o),Math.abs(i-o)<=s?i:o}:function(o){for(var l=parseFloat(i?o.x:o),d=parseFloat(i?o.y:0),h=ra,u=0,p=a.length,y,m;p--;)i?(y=a[p].x-l,m=a[p].y-d,y=y*y+m*m):y=Math.abs(a[p]-l),y<h&&(h=y,u=p);return u=!s||h<=s?a[u]:o,i||u===o||Ya(o)?u:u+pt(o)}:fC(a))},VI=function(a,n,r,s){return On(ft(a)?!n:r===!0?!!(r=0):!s,function(){return ft(a)?a[~~(Math.random()*a.length)]:(r=r||1e-5)&&(s=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((a-r/2+Math.random()*(n-a+r*.99))/r)*r*s)/s})},$q=function(){for(var a=arguments.length,n=new Array(a),r=0;r<a;r++)n[r]=arguments[r];return function(s){return n.reduce(function(i,o){return o(i)},s)}},Uq=function(a,n){return function(r){return a(parseFloat(r))+(n||pt(r))}},Gq=function(a,n,r){return $I(a,n,0,1,r)},BI=function(a,n,r){return On(r,function(s){return a[~~n(s)]})},Wq=function t(a,n,r){var s=n-a;return ft(a)?BI(a,t(0,a.length),n):On(r,function(i){return(s+(i-a)%s)%s+a})},Zq=function t(a,n,r){var s=n-a,i=s*2;return ft(a)?BI(a,t(0,a.length-1),n):On(r,function(o){return o=(i+(o-a)%i)%i||0,a+(o>s?i-o:o)})},hl=function(a){for(var n=0,r="",s,i,o,l;~(s=a.indexOf("random(",n));)o=a.indexOf(")",s),l=a.charAt(s+7)==="[",i=a.substr(s+7,o-s-7).match(l?CI:lC),r+=a.substr(n,s-n)+VI(l?i:+i[0],l?0:+i[1],+i[2]||1e-5),n=o+1;return r+a.substr(n,a.length-n)},$I=function(a,n,r,s,i){var o=n-a,l=s-r;return On(i,function(d){return r+((d-a)/o*l||0)})},Jq=function t(a,n,r,s){var i=isNaN(a+n)?0:function(m){return(1-m)*a+m*n};if(!i){var o=it(a),l={},d,h,u,p,y;if(r===!0&&(s=1)&&(r=null),o)a={p:a},n={p:n};else if(ft(a)&&!ft(n)){for(u=[],p=a.length,y=p-2,h=1;h<p;h++)u.push(t(a[h-1],a[h]));p--,i=function(x){x*=p;var f=Math.min(y,~~x);return u[f](x-f)},r=n}else s||(a=Io(ft(a)?[]:{},a));if(!u){for(d in n)tS.call(l,a,d,"get",n[d]);i=function(x){return sS(x,l)||(o?a.p:a)}}}return On(r,i)},xN=function(a,n,r){var s=a.labels,i=ra,o,l,d;for(o in s)l=s[o]-n,l<0==!!r&&l&&i>(l=Math.abs(l))&&(d=o,i=l);return d},Ut=function(a,n,r){var s=a.vars,i=s[n],o=Oe,l=a._ctx,d,h,u;if(i)return d=s[n+"Params"],h=s.callbackScope||a,r&&_n.length&&Lj(),l&&(Oe=l),u=d?i.apply(h,d):i.call(h),Oe=o,u},_c=function(a){return qn(a),a.scrollTrigger&&a.scrollTrigger.kill(!!yt),a.progress()<1&&Ut(a,"onInterrupt"),a},Jo,UI=[],GI=function(a){if(a)if(a=!a.name&&a.default||a,JC()||a.headless){var n=a.name,r=We(a),s=n&&!r&&a.init?function(){this._props=[]}:a,i={init:dl,render:sS,add:tS,kill:hz,modifier:dz,rawVars:0},o={targetTest:0,get:0,getSetter:rS,aliases:{},register:0};if(fc(),a!==s){if(Ot[n])return;ha(s,ha(Ij(a,i),o)),Io(s.prototype,Io(i,Ij(a,o))),Ot[s.prop=n]=s,a.targetTest&&(gj.push(s),KC[n]=1),n=(n==="css"?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}LI(n,s),a.register&&a.register(zt,s,Dt)}else UI.push(a)},Re=255,Rc={aqua:[0,Re,Re],lime:[0,Re,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Re],navy:[0,0,128],white:[Re,Re,Re],olive:[128,128,0],yellow:[Re,Re,0],orange:[Re,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Re,0,0],pink:[Re,192,203],cyan:[0,Re,Re],transparent:[Re,Re,Re,0]},S9=function(a,n,r){return a+=a<0?1:a>1?-1:0,(a*6<1?n+(r-n)*a*6:a<.5?r:a*3<2?n+(r-n)*(2/3-a)*6:n)*Re+.5|0},WI=function(a,n,r){var s=a?Ya(a)?[a>>16,a>>8&Re,a&Re]:0:Rc.black,i,o,l,d,h,u,p,y,m,x;if(!s){if(a.substr(-1)===","&&(a=a.substr(0,a.length-1)),Rc[a])s=Rc[a];else if(a.charAt(0)==="#"){if(a.length<6&&(i=a.charAt(1),o=a.charAt(2),l=a.charAt(3),a="#"+i+i+o+o+l+l+(a.length===5?a.charAt(4)+a.charAt(4):"")),a.length===9)return s=parseInt(a.substr(1,6),16),[s>>16,s>>8&Re,s&Re,parseInt(a.substr(7),16)/255];a=parseInt(a.substr(1),16),s=[a>>16,a>>8&Re,a&Re]}else if(a.substr(0,3)==="hsl"){if(s=x=a.match(lC),!n)d=+s[0]%360/360,h=+s[1]/100,u=+s[2]/100,o=u<=.5?u*(h+1):u+h-u*h,i=u*2-o,s.length>3&&(s[3]*=1),s[0]=S9(d+1/3,i,o),s[1]=S9(d,i,o),s[2]=S9(d-1/3,i,o);else if(~a.indexOf("="))return s=a.match(MI),r&&s.length<4&&(s[3]=1),s}else s=a.match(lC)||Rc.transparent;s=s.map(Number)}return n&&!x&&(i=s[0]/Re,o=s[1]/Re,l=s[2]/Re,p=Math.max(i,o,l),y=Math.min(i,o,l),u=(p+y)/2,p===y?d=h=0:(m=p-y,h=u>.5?m/(2-p-y):m/(p+y),d=p===i?(o-l)/m+(o<l?6:0):p===o?(l-i)/m+2:(i-o)/m+4,d*=60),s[0]=~~(d+.5),s[1]=~~(h*100+.5),s[2]=~~(u*100+.5)),r&&s.length<4&&(s[3]=1),s},ZI=function(a){var n=[],r=[],s=-1;return a.split(Rn).forEach(function(i){var o=i.match(Zo)||[];n.push.apply(n,o),r.push(s+=o.length+1)}),n.c=r,n},gN=function(a,n,r){var s="",i=(a+s).match(Rn),o=n?"hsla(":"rgba(",l=0,d,h,u,p;if(!i)return a;if(i=i.map(function(y){return(y=WI(y,n,1))&&o+(n?y[0]+","+y[1]+"%,"+y[2]+"%,"+y[3]:y.join(","))+")"}),r&&(u=ZI(a),d=r.c,d.join(s)!==u.c.join(s)))for(h=a.replace(Rn,"1").split(Zo),p=h.length-1;l<p;l++)s+=h[l]+(~d.indexOf(l)?i.shift()||o+"0,0,0,0)":(u.length?u:i.length?i:r).shift());if(!h)for(h=a.split(Rn),p=h.length-1;l<p;l++)s+=h[l]+i[l];return s+h[p]},Rn=function(){var t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",a;for(a in Rc)t+="|"+a+"\\b";return new RegExp(t+")","gi")}(),Xq=/hsl[a]?\(/,JI=function(a){var n=a.join(" "),r;if(Rn.lastIndex=0,Rn.test(n))return r=Xq.test(n),a[1]=gN(a[1],r),a[0]=gN(a[0],r,ZI(a[1])),!0},ul,$t=function(){var t=Date.now,a=500,n=33,r=t(),s=r,i=1e3/240,o=i,l=[],d,h,u,p,y,m,x=function f(v){var k=t()-s,w=v===!0,b,C,j,I;if((k>a||k<0)&&(r+=k-n),s+=k,j=s-r,b=j-o,(b>0||w)&&(I=++p.frame,y=j-p.time*1e3,p.time=j=j/1e3,o+=b+(b>=i?4:i-b),C=1),w||(d=h(f)),C)for(m=0;m<l.length;m++)l[m](j,y,I,v)};return p={time:0,frame:0,tick:function(){x(!0)},deltaRatio:function(v){return y/(1e3/(v||60))},wake:function(){SI&&(!dC&&JC()&&(Ma=dC=window,XC=Ma.document||{},Xt.gsap=zt,(Ma.gsapVersions||(Ma.gsapVersions=[])).push(zt.version),NI(Nj||Ma.GreenSockGlobals||!Ma.gsap&&Ma||{}),UI.forEach(GI)),u=typeof requestAnimationFrame<"u"&&requestAnimationFrame,d&&p.sleep(),h=u||function(v){return setTimeout(v,o-p.time*1e3+1|0)},ul=1,x(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(d),ul=0,h=dl},lagSmoothing:function(v,k){a=v||1/0,n=Math.min(k||33,a)},fps:function(v){i=1e3/(v||240),o=p.time*1e3+i},add:function(v,k,w){var b=k?function(C,j,I,N){v(C,j,I,N),p.remove(b)}:v;return p.remove(v),l[w?"unshift":"push"](b),fc(),b},remove:function(v,k){~(k=l.indexOf(v))&&l.splice(k,1)&&m>=k&&m--},_listeners:l},p}(),fc=function(){return!ul&&$t.wake()},Ce={},Yq=/^[\d.\-M][\d.\-,\s]/,Kq=/["']/g,Qq=function(a){for(var n={},r=a.substr(1,a.length-3).split(":"),s=r[0],i=1,o=r.length,l,d,h;i<o;i++)d=r[i],l=i!==o-1?d.lastIndexOf(","):d.length,h=d.substr(0,l),n[s]=isNaN(h)?h.replace(Kq,"").trim():+h,s=d.substr(l+1).trim();return n},ez=function(a){var n=a.indexOf("(")+1,r=a.indexOf(")"),s=a.indexOf("(",n);return a.substring(n,~s&&s<r?a.indexOf(")",r+1):r)},tz=function(a){var n=(a+"").split("("),r=Ce[n[0]];return r&&n.length>1&&r.config?r.config.apply(null,~a.indexOf("{")?[Qq(n[1])]:ez(a).split(",").map(_I)):Ce._CE&&Yq.test(a)?Ce._CE("",a):r},XI=function(a){return function(n){return 1-a(1-n)}},YI=function t(a,n){for(var r=a._first,s;r;)r instanceof bt?t(r,n):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==n&&(r.timeline?t(r.timeline,n):(s=r._ease,r._ease=r._yEase,r._yEase=s,r._yoyo=n)),r=r._next},So=function(a,n){return a&&(We(a)?a:Ce[a]||tz(a))||n},qo=function(a,n,r,s){r===void 0&&(r=function(d){return 1-n(1-d)}),s===void 0&&(s=function(d){return d<.5?n(d*2)/2:1-n((1-d)*2)/2});var i={easeIn:n,easeOut:r,easeInOut:s},o;return Tt(a,function(l){Ce[l]=Xt[l]=i,Ce[o=l.toLowerCase()]=r;for(var d in i)Ce[o+(d==="easeIn"?".in":d==="easeOut"?".out":".inOut")]=Ce[l+"."+d]=i[d]}),i},KI=function(a){return function(n){return n<.5?(1-a(1-n*2))/2:.5+a((n-.5)*2)/2}},N9=function t(a,n,r){var s=n>=1?n:1,i=(r||(a?.3:.45))/(n<1?n:1),o=i/cC*(Math.asin(1/s)||0),l=function(u){return u===1?1:s*Math.pow(2,-10*u)*Iq((u-o)*i)+1},d=a==="out"?l:a==="in"?function(h){return 1-l(1-h)}:KI(l);return i=cC/i,d.config=function(h,u){return t(a,h,u)},d},L9=function t(a,n){n===void 0&&(n=1.70158);var r=function(o){return o?--o*o*((n+1)*o+n)+1:0},s=a==="out"?r:a==="in"?function(i){return 1-r(1-i)}:KI(r);return s.config=function(i){return t(a,i)},s};Tt("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,a){var n=a<5?a+1:a;qo(t+",Power"+(n-1),a?function(r){return Math.pow(r,n)}:function(r){return r},function(r){return 1-Math.pow(1-r,n)},function(r){return r<.5?Math.pow(r*2,n)/2:1-Math.pow((1-r)*2,n)/2})});Ce.Linear.easeNone=Ce.none=Ce.Linear.easeIn;qo("Elastic",N9("in"),N9("out"),N9());(function(t,a){var n=1/a,r=2*n,s=2.5*n,i=function(l){return l<n?t*l*l:l<r?t*Math.pow(l-1.5/a,2)+.75:l<s?t*(l-=2.25/a)*l+.9375:t*Math.pow(l-2.625/a,2)+.984375};qo("Bounce",function(o){return 1-i(1-o)},i)})(7.5625,2.75);qo("Expo",function(t){return t?Math.pow(2,10*(t-1)):0});qo("Circ",function(t){return-(wI(1-t*t)-1)});qo("Sine",function(t){return t===1?1:-Lq(t*Sq)+1});qo("Back",L9("in"),L9("out"),L9());Ce.SteppedEase=Ce.steps=Xt.SteppedEase={config:function(a,n){a===void 0&&(a=1);var r=1/a,s=a+(n?0:1),i=n?1:0,o=1-qe;return function(l){return((s*vl(0,o,l)|0)+i)*r}}};pc.ease=Ce["quad.out"];Tt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return QC+=t+","+t+"Params,"});var QI=function(a,n){this.id=Nq++,a._gsap=this,this.target=a,this.harness=n,this.get=n?n.get:AI,this.set=n?n.getSetter:rS},pl=function(){function t(n){this.vars=n,this._delay=+n.delay||0,(this._repeat=n.repeat===1/0?-2:n.repeat||0)&&(this._rDelay=n.repeatDelay||0,this._yoyo=!!n.yoyo||!!n.yoyoEase),this._ts=1,yc(this,+n.duration,1,1),this.data=n.data,Oe&&(this._ctx=Oe,Oe.data.push(this)),ul||$t.wake()}var a=t.prototype;return a.delay=function(r){return r||r===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+r-this._delay),this._delay=r,this):this._delay},a.duration=function(r){return arguments.length?this.totalDuration(this._repeat>0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},a.totalDuration=function(r){return arguments.length?(this._dirty=0,yc(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},a.totalTime=function(r,s){if(fc(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(Jj(this,r),!i._dp||i.parent||DI(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&Sa(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!s||this._initted&&Math.abs(this._zTime)===qe||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),PI(this,r,s)),this},a.time=function(r,s){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+yN(this))%(this._dur+this._rDelay)||(r?this._dur:0),s):this._time},a.totalProgress=function(r,s){return arguments.length?this.totalTime(this.totalDuration()*r,s):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},a.progress=function(r,s){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+yN(this),s):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},a.iteration=function(r,s){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*i,s):this._repeat?mc(this._tTime,i)+1:1},a.timeScale=function(r,s){if(!arguments.length)return this._rts===-qe?0:this._rts;if(this._rts===r)return this;var i=this.parent&&this._ts?Aj(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-qe?0:this._rts,this.totalTime(vl(-Math.abs(this._delay),this._tDur,i),s!==!1),Zj(this),qq(this)},a.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(fc(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==qe&&(this._tTime-=qe)))),this):this._ps},a.startTime=function(r){if(arguments.length){this._start=r;var s=this.parent||this._dp;return s&&(s._sort||!this.parent)&&Sa(s,this,r-this._delay),this}return this._start},a.endTime=function(r){return this._start+(Rt(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},a.rawTime=function(r){var s=this.parent||this._dp;return s?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Aj(s.rawTime(r),this):this._tTime:this._tTime},a.revert=function(r){r===void 0&&(r=_q);var s=yt;return yt=r,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),yt=s,this},a.globalTime=function(r){for(var s=this,i=arguments.length?r:s.rawTime();s;)i=s._start+i/(Math.abs(s._ts)||1),s=s._dp;return!this.parent&&this._sat?this._sat.globalTime(r):i},a.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,fN(this)):this._repeat===-2?1/0:this._repeat},a.repeatDelay=function(r){if(arguments.length){var s=this._time;return this._rDelay=r,fN(this),s?this.time(s):this}return this._rDelay},a.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},a.seek=function(r,s){return this.totalTime(aa(this,r),Rt(s))},a.restart=function(r,s){return this.play().totalTime(r?-this._delay:0,Rt(s))},a.play=function(r,s){return r!=null&&this.seek(r,s),this.reversed(!1).paused(!1)},a.reverse=function(r,s){return r!=null&&this.seek(r||this.totalDuration(),s),this.reversed(!0).paused(!1)},a.pause=function(r,s){return r!=null&&this.seek(r,s),this.paused(!0)},a.resume=function(){return this.paused(!1)},a.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-qe:0)),this):this._rts<0},a.invalidate=function(){return this._initted=this._act=0,this._zTime=-qe,this},a.isActive=function(){var r=this.parent||this._dp,s=this._start,i;return!!(!r||this._ts&&this._initted&&r.isActive()&&(i=r.rawTime(!0))>=s&&i<this.endTime(!0)-qe)},a.eventCallback=function(r,s,i){var o=this.vars;return arguments.length>1?(s?(o[r]=s,i&&(o[r+"Params"]=i),r==="onUpdate"&&(this._onUpdate=s)):delete o[r],this):o[r]},a.then=function(r){var s=this;return new Promise(function(i){var o=We(r)?r:RI,l=function(){var h=s.then;s.then=null,We(o)&&(o=o(s))&&(o.then||o===s)&&(s.then=h),i(o),s.then=h};s._initted&&s.totalProgress()===1&&s._ts>=0||!s._tTime&&s._ts<0?l():s._prom=l})},a.kill=function(){_c(this)},t}();ha(pl.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-qe,_prom:0,_ps:!1,_rts:1});var bt=function(t){vI(a,t);function a(r,s){var i;return r===void 0&&(r={}),i=t.call(this,r)||this,i.labels={},i.smoothChildTiming=!!r.smoothChildTiming,i.autoRemoveChildren=!!r.autoRemoveChildren,i._sort=Rt(r.sortChildren),Ve&&Sa(r.parent||Ve,$a(i),s),r.reversed&&i.reverse(),r.paused&&i.paused(!0),r.scrollTrigger&&qI($a(i),r.scrollTrigger),i}var n=a.prototype;return n.to=function(s,i,o){return rl(0,arguments,this),this},n.from=function(s,i,o){return rl(1,arguments,this),this},n.fromTo=function(s,i,o,l){return rl(2,arguments,this),this},n.set=function(s,i,o){return i.duration=0,i.parent=this,nl(i).repeatDelay||(i.repeat=0),i.immediateRender=!!i.immediateRender,new Xe(s,i,aa(this,o),1),this},n.call=function(s,i,o){return Sa(this,Xe.delayedCall(0,s,i),o)},n.staggerTo=function(s,i,o,l,d,h,u){return o.duration=i,o.stagger=o.stagger||l,o.onComplete=h,o.onCompleteParams=u,o.parent=this,new Xe(s,o,aa(this,d)),this},n.staggerFrom=function(s,i,o,l,d,h,u){return o.runBackwards=1,nl(o).immediateRender=Rt(o.immediateRender),this.staggerTo(s,i,o,l,d,h,u)},n.staggerFromTo=function(s,i,o,l,d,h,u,p){return l.startAt=o,nl(l).immediateRender=Rt(l.immediateRender),this.staggerTo(s,i,l,d,h,u,p)},n.render=function(s,i,o){var l=this._time,d=this._dirty?this.totalDuration():this._tDur,h=this._dur,u=s<=0?0:nt(s),p=this._zTime<0!=s<0&&(this._initted||!h),y,m,x,f,v,k,w,b,C,j,I,N;if(this!==Ve&&u>d&&s>=0&&(u=d),u!==this._tTime||o||p){if(l!==this._time&&h&&(u+=this._time-l,s+=this._time-l),y=u,C=this._start,b=this._ts,k=!b,p&&(h||(l=this._zTime),(s||!i)&&(this._zTime=s)),this._repeat){if(I=this._yoyo,v=h+this._rDelay,this._repeat<-1&&s<0)return this.totalTime(v*100+s,i,o);if(y=nt(u%v),u===d?(f=this._repeat,y=h):(f=~~(u/v),f&&f===u/v&&(y=h,f--),y>h&&(y=h)),j=mc(this._tTime,v),!l&&this._tTime&&j!==f&&this._tTime-j*v-this._dur<=0&&(j=f),I&&f&1&&(y=h-y,N=1),f!==j&&!this._lock){var S=I&&j&1,L=S===(I&&f&1);if(f<j&&(S=!S),l=S?0:u%h?h:u,this._lock=1,this.render(l||(N?0:nt(f*v)),i,!h)._lock=0,this._tTime=u,!i&&this.parent&&Ut(this,"onRepeat"),this.vars.repeatRefresh&&!N&&(this.invalidate()._lock=1),l&&l!==this._time||k!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(h=this._dur,d=this._tDur,L&&(this._lock=2,l=S?h:-1e-4,this.render(l,!0),this.vars.repeatRefresh&&!N&&this.invalidate()),this._lock=0,!this._ts&&!k)return this;YI(this,N)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(w=Oq(this,nt(l),nt(y)),w&&(u-=y-(y=w._start))),this._tTime=u,this._time=y,this._act=!b,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=s,l=0),!l&&y&&!i&&!f&&(Ut(this,"onStart"),this._tTime!==u))return this;if(y>=l&&s>=0)for(m=this._first;m;){if(x=m._next,(m._act||y>=m._start)&&m._ts&&w!==m){if(m.parent!==this)return this.render(s,i,o);if(m.render(m._ts>0?(y-m._start)*m._ts:(m._dirty?m.totalDuration():m._tDur)+(y-m._start)*m._ts,i,o),y!==this._time||!this._ts&&!k){w=0,x&&(u+=this._zTime=-qe);break}}m=x}else{m=this._last;for(var q=s<0?s:y;m;){if(x=m._prev,(m._act||q<=m._end)&&m._ts&&w!==m){if(m.parent!==this)return this.render(s,i,o);if(m.render(m._ts>0?(q-m._start)*m._ts:(m._dirty?m.totalDuration():m._tDur)+(q-m._start)*m._ts,i,o||yt&&(m._initted||m._startAt)),y!==this._time||!this._ts&&!k){w=0,x&&(u+=this._zTime=q?-qe:qe);break}}m=x}}if(w&&!i&&(this.pause(),w.render(y>=l?0:-qe)._zTime=y>=l?1:-1,this._ts))return this._start=C,Zj(this),this.render(s,i,o);this._onUpdate&&!i&&Ut(this,"onUpdate",!0),(u===d&&this._tTime>=this.totalDuration()||!u&&l)&&(C===this._start||Math.abs(b)!==Math.abs(this._ts))&&(this._lock||((s||!h)&&(u===d&&this._ts>0||!u&&this._ts<0)&&qn(this,1),!i&&!(s<0&&!l)&&(u||l||!d)&&(Ut(this,u===d&&s>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u<d&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(s,i){var o=this;if(Ya(i)||(i=aa(this,i,s)),!(s instanceof pl)){if(ft(s))return s.forEach(function(l){return o.add(l,i)}),this;if(it(s))return this.addLabel(s,i);if(We(s))s=Xe.delayedCall(0,s);else return this}return this!==s?Sa(this,s,i):this},n.getChildren=function(s,i,o,l){s===void 0&&(s=!0),i===void 0&&(i=!0),o===void 0&&(o=!0),l===void 0&&(l=-ra);for(var d=[],h=this._first;h;)h._start>=l&&(h instanceof Xe?i&&d.push(h):(o&&d.push(h),s&&d.push.apply(d,h.getChildren(!0,i,o)))),h=h._next;return d},n.getById=function(s){for(var i=this.getChildren(1,1,1),o=i.length;o--;)if(i[o].vars.id===s)return i[o]},n.remove=function(s){return it(s)?this.removeLabel(s):We(s)?this.killTweensOf(s):(Wj(this,s),s===this._recent&&(this._recent=this._last),Co(this))},n.totalTime=function(s,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=nt($t.time-(this._ts>0?s/this._ts:(this.totalDuration()-s)/-this._ts))),t.prototype.totalTime.call(this,s,i),this._forcing=0,this):this._tTime},n.addLabel=function(s,i){return this.labels[s]=aa(this,i),this},n.removeLabel=function(s){return delete this.labels[s],this},n.addPause=function(s,i,o){var l=Xe.delayedCall(0,i||dl,o);return l.data="isPause",this._hasPause=1,Sa(this,l,aa(this,s))},n.removePause=function(s){var i=this._first;for(s=aa(this,s);i;)i._start===s&&i.data==="isPause"&&qn(i),i=i._next},n.killTweensOf=function(s,i,o){for(var l=this.getTweensOf(s,o),d=l.length;d--;)gn!==l[d]&&l[d].kill(s,i);return this},n.getTweensOf=function(s,i){for(var o=[],l=sa(s),d=this._first,h=Ya(i),u;d;)d instanceof Xe?Rq(d._targets,l)&&(h?(!gn||d._initted&&d._ts)&&d.globalTime(0)<=i&&d.globalTime(d.totalDuration())>i:!i||d.isActive())&&o.push(d):(u=d.getTweensOf(l,i)).length&&o.push.apply(o,u),d=d._next;return o},n.tweenTo=function(s,i){i=i||{};var o=this,l=aa(o,s),d=i,h=d.startAt,u=d.onStart,p=d.onStartParams,y=d.immediateRender,m,x=Xe.to(o,ha({ease:i.ease||"none",lazy:!1,immediateRender:!1,time:l,overwrite:"auto",duration:i.duration||Math.abs((l-(h&&"time"in h?h.time:o._time))/o.timeScale())||qe,onStart:function(){if(o.pause(),!m){var v=i.duration||Math.abs((l-(h&&"time"in h?h.time:o._time))/o.timeScale());x._dur!==v&&yc(x,v,0,1).render(x._time,!0,!0),m=1}u&&u.apply(x,p||[])}},i));return y?x.render(0):x},n.tweenFromTo=function(s,i,o){return this.tweenTo(i,ha({startAt:{time:aa(this,s)}},o))},n.recent=function(){return this._recent},n.nextLabel=function(s){return s===void 0&&(s=this._time),xN(this,aa(this,s))},n.previousLabel=function(s){return s===void 0&&(s=this._time),xN(this,aa(this,s),1)},n.currentLabel=function(s){return arguments.length?this.seek(s,!0):this.previousLabel(this._time+qe)},n.shiftChildren=function(s,i,o){o===void 0&&(o=0);for(var l=this._first,d=this.labels,h;l;)l._start>=o&&(l._start+=s,l._end+=s),l=l._next;if(i)for(h in d)d[h]>=o&&(d[h]+=s);return Co(this)},n.invalidate=function(s){var i=this._first;for(this._lock=0;i;)i.invalidate(s),i=i._next;return t.prototype.invalidate.call(this,s)},n.clear=function(s){s===void 0&&(s=!0);for(var i=this._first,o;i;)o=i._next,this.remove(i),i=o;return this._dp&&(this._time=this._tTime=this._pTime=0),s&&(this.labels={}),Co(this)},n.totalDuration=function(s){var i=0,o=this,l=o._last,d=ra,h,u,p;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-s:s));if(o._dirty){for(p=o.parent;l;)h=l._prev,l._dirty&&l.totalDuration(),u=l._start,u>d&&o._sort&&l._ts&&!o._lock?(o._lock=1,Sa(o,l,u-l._delay,1)._lock=0):d=u,u<0&&l._ts&&(i-=u,(!p&&!o._dp||p&&p.smoothChildTiming)&&(o._start+=u/o._ts,o._time-=u,o._tTime-=u),o.shiftChildren(-u,!1,-1/0),d=0),l._end>i&&l._ts&&(i=l._end),l=h;yc(o,o===Ve&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},a.updateRoot=function(s){if(Ve._ts&&(PI(Ve,Aj(s,Ve)),II=$t.frame),$t.frame>=pN){pN+=Wt.autoSleep||120;var i=Ve._first;if((!i||!i._ts)&&Wt.autoSleep&&$t._listeners.length<2){for(;i&&!i._ts;)i=i._next;i||$t.sleep()}}},a}(pl);ha(bt.prototype,{_lock:0,_hasPause:0,_forcing:0});var az=function(a,n,r,s,i,o,l){var d=new Dt(this._pt,a,n,0,1,sA,null,i),h=0,u=0,p,y,m,x,f,v,k,w;for(d.b=r,d.e=s,r+="",s+="",(k=~s.indexOf("random("))&&(s=hl(s)),o&&(w=[r,s],o(w,a,n),r=w[0],s=w[1]),y=r.match(j9)||[];p=j9.exec(s);)x=p[0],f=s.substring(h,p.index),m?m=(m+1)%5:f.substr(-5)==="rgba("&&(m=1),x!==y[u++]&&(v=parseFloat(y[u-1])||0,d._pt={_next:d._pt,p:f||u===1?f:",",s:v,c:x.charAt(1)==="="?oc(v,x)-v:parseFloat(x)-v,m:m&&m<4?Math.round:0},h=j9.lastIndex);return d.c=h<s.length?s.substring(h,s.length):"",d.fp=l,(jI.test(s)||k)&&(d.e=0),this._pt=d,d},tS=function(a,n,r,s,i,o,l,d,h,u){We(s)&&(s=s(i||0,a,o));var p=a[n],y=r!=="get"?r:We(p)?h?a[n.indexOf("set")||!We(a["get"+n.substr(3)])?n:"get"+n.substr(3)](h):a[n]():p,m=We(p)?h?oz:nA:nS,x;if(it(s)&&(~s.indexOf("random(")&&(s=hl(s)),s.charAt(1)==="="&&(x=oc(y,s)+(pt(y)||0),(x||x===0)&&(s=x))),!u||y!==s||xC)return!isNaN(y*s)&&s!==""?(x=new Dt(this._pt,a,n,+y||0,s-(y||0),typeof p=="boolean"?lz:rA,0,m),h&&(x.fp=h),l&&x.modifier(l,this,a),this._pt=x):(!p&&!(n in a)&&YC(n,s),az.call(this,a,n,y,s,m,d||Wt.stringFilter,h))},nz=function(a,n,r,s,i){if(We(a)&&(a=sl(a,i,n,r,s)),!Ta(a)||a.style&&a.nodeType||ft(a)||bI(a))return it(a)?sl(a,i,n,r,s):a;var o={},l;for(l in a)o[l]=sl(a[l],i,n,r,s);return o},eA=function(a,n,r,s,i,o){var l,d,h,u;if(Ot[a]&&(l=new Ot[a]).init(i,l.rawVars?n[a]:nz(n[a],s,i,o,r),r,s,o)!==!1&&(r._pt=d=new Dt(r._pt,i,a,0,1,l.render,l,0,l.priority),r!==Jo))for(h=r._ptLookup[r._targets.indexOf(i)],u=l._props.length;u--;)h[l._props[u]]=d;return l},gn,xC,aS=function t(a,n,r){var s=a.vars,i=s.ease,o=s.startAt,l=s.immediateRender,d=s.lazy,h=s.onUpdate,u=s.runBackwards,p=s.yoyoEase,y=s.keyframes,m=s.autoRevert,x=a._dur,f=a._startAt,v=a._targets,k=a.parent,w=k&&k.data==="nested"?k.vars.targets:v,b=a._overwrite==="auto"&&!WC,C=a.timeline,j,I,N,S,L,q,_,A,D,H,G,V,U;if(C&&(!y||!i)&&(i="none"),a._ease=So(i,pc.ease),a._yEase=p?XI(So(p===!0?i:p,pc.ease)):0,p&&a._yoyo&&!a._repeat&&(p=a._yEase,a._yEase=a._ease,a._ease=p),a._from=!C&&!!s.runBackwards,!C||y&&!s.stagger){if(A=v[0]?jo(v[0]).harness:0,V=A&&s[A.prop],j=Ij(s,KC),f&&(f._zTime<0&&f.progress(1),n<0&&u&&l&&!m?f.render(-1,!0):f.revert(u&&x?xj:Pq),f._lazy=0),o){if(qn(a._startAt=Xe.set(v,ha({data:"isStart",overwrite:!1,parent:k,immediateRender:!0,lazy:!f&&Rt(d),startAt:null,delay:0,onUpdate:h&&function(){return Ut(a,"onUpdate")},stagger:0},o))),a._startAt._dp=0,a._startAt._sat=a,n<0&&(yt||!l&&!m)&&a._startAt.revert(xj),l&&x&&n<=0&&r<=0){n&&(a._zTime=n);return}}else if(u&&x&&!f){if(n&&(l=!1),N=ha({overwrite:!1,data:"isFromStart",lazy:l&&!f&&Rt(d),immediateRender:l,stagger:0,parent:k},j),V&&(N[A.prop]=V),qn(a._startAt=Xe.set(v,N)),a._startAt._dp=0,a._startAt._sat=a,n<0&&(yt?a._startAt.revert(xj):a._startAt.render(-1,!0)),a._zTime=n,!l)t(a._startAt,qe,qe);else if(!n)return}for(a._pt=a._ptCache=0,d=x&&Rt(d)||d&&!x,I=0;I<v.length;I++){if(L=v[I],_=L._gsap||eS(v)[I]._gsap,a._ptLookup[I]=H={},hC[_.id]&&_n.length&&Lj(),G=w===v?I:w.indexOf(L),A&&(D=new A).init(L,V||j,a,G,w)!==!1&&(a._pt=S=new Dt(a._pt,L,D.name,0,1,D.render,D,0,D.priority),D._props.forEach(function(F){H[F]=S}),D.priority&&(q=1)),!A||V)for(N in j)Ot[N]&&(D=eA(N,j,a,G,L,w))?D.priority&&(q=1):H[N]=S=tS.call(a,L,N,"get",j[N],G,w,0,s.stringFilter);a._op&&a._op[I]&&a.kill(L,a._op[I]),b&&a._pt&&(gn=a,Ve.killTweensOf(L,H,a.globalTime(n)),U=!a.parent,gn=0),a._pt&&d&&(hC[_.id]=1)}q&&iA(a),a._onInit&&a._onInit(a)}a._onUpdate=h,a._initted=(!a._op||a._pt)&&!U,y&&n<=0&&C.render(ra,!0,!0)},rz=function(a,n,r,s,i,o,l,d){var h=(a._pt&&a._ptCache||(a._ptCache={}))[n],u,p,y,m;if(!h)for(h=a._ptCache[n]=[],y=a._ptLookup,m=a._targets.length;m--;){if(u=y[m][n],u&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==n&&u.fp!==n;)u=u._next;if(!u)return xC=1,a.vars[n]="+=0",aS(a,l),xC=0,d?ll(n+" not eligible for reset"):1;h.push(u)}for(m=h.length;m--;)p=h[m],u=p._pt||p,u.s=(s||s===0)&&!i?s:u.s+(s||0)+o*u.c,u.c=r-u.s,p.e&&(p.e=Je(r)+pt(p.e)),p.b&&(p.b=u.s+pt(p.b))},sz=function(a,n){var r=a[0]?jo(a[0]).harness:0,s=r&&r.aliases,i,o,l,d;if(!s)return n;i=Io({},n);for(o in s)if(o in i)for(d=s[o].split(","),l=d.length;l--;)i[d[l]]=i[o];return i},iz=function(a,n,r,s){var i=n.ease||s||"power1.inOut",o,l;if(ft(n))l=r[a]||(r[a]=[]),n.forEach(function(d,h){return l.push({t:h/(n.length-1)*100,v:d,e:i})});else for(o in n)l=r[o]||(r[o]=[]),o==="ease"||l.push({t:parseFloat(a),v:n[o],e:i})},sl=function(a,n,r,s,i){return We(a)?a.call(n,r,s,i):it(a)&&~a.indexOf("random(")?hl(a):a},tA=QC+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",aA={};Tt(tA+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return aA[t]=1});var Xe=function(t){vI(a,t);function a(r,s,i,o){var l;typeof s=="number"&&(i.duration=s,s=i,i=null),l=t.call(this,o?s:nl(s))||this;var d=l.vars,h=d.duration,u=d.delay,p=d.immediateRender,y=d.stagger,m=d.overwrite,x=d.keyframes,f=d.defaults,v=d.scrollTrigger,k=d.yoyoEase,w=s.parent||Ve,b=(ft(r)||bI(r)?Ya(r[0]):"length"in s)?[r]:sa(r),C,j,I,N,S,L,q,_;if(l._targets=b.length?eS(b):ll("GSAP target "+r+" not found. https://gsap.com",!Wt.nullTargetWarn)||[],l._ptLookup=[],l._overwrite=m,x||y||Ll(h)||Ll(u)){if(s=l.vars,C=l.timeline=new bt({data:"nested",defaults:f||{},targets:w&&w.data==="nested"?w.vars.targets:b}),C.kill(),C.parent=C._dp=$a(l),C._start=0,y||Ll(h)||Ll(u)){if(N=b.length,q=y&&OI(y),Ta(y))for(S in y)~tA.indexOf(S)&&(_||(_={}),_[S]=y[S]);for(j=0;j<N;j++)I=Ij(s,aA),I.stagger=0,k&&(I.yoyoEase=k),_&&Io(I,_),L=b[j],I.duration=+sl(h,$a(l),j,L,b),I.delay=(+sl(u,$a(l),j,L,b)||0)-l._delay,!y&&N===1&&I.delay&&(l._delay=u=I.delay,l._start+=u,I.delay=0),C.to(L,I,q?q(j,L,b):0),C._ease=Ce.none;C.duration()?h=u=0:l.timeline=0}else if(x){nl(ha(C.vars.defaults,{ease:"none"})),C._ease=So(x.ease||s.ease||"none");var A=0,D,H,G;if(ft(x))x.forEach(function(V){return C.to(b,V,">")}),C.duration();else{I={};for(S in x)S==="ease"||S==="easeEach"||iz(S,x[S],I,x.easeEach);for(S in I)for(D=I[S].sort(function(V,U){return V.t-U.t}),A=0,j=0;j<D.length;j++)H=D[j],G={ease:H.e,duration:(H.t-(j?D[j-1].t:0))/100*h},G[S]=H.v,C.to(b,G,A),A+=G.duration;C.duration()<h&&C.to({},{duration:h-C.duration()})}}h||l.duration(h=C.duration())}else l.timeline=0;return m===!0&&!WC&&(gn=$a(l),Ve.killTweensOf(b),gn=0),Sa(w,$a(l),i),s.reversed&&l.reverse(),s.paused&&l.paused(!0),(p||!h&&!x&&l._start===nt(w._time)&&Rt(p)&&zq($a(l))&&w.data!=="nested")&&(l._tTime=-qe,l.render(Math.max(0,-u)||0)),v&&qI($a(l),v),l}var n=a.prototype;return n.render=function(s,i,o){var l=this._time,d=this._tDur,h=this._dur,u=s<0,p=s>d-qe&&!u?d:s<qe?0:s,y,m,x,f,v,k,w,b,C;if(!h)Fq(this,s,i,o);else if(p!==this._tTime||!s||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==u){if(y=p,b=this.timeline,this._repeat){if(f=h+this._rDelay,this._repeat<-1&&u)return this.totalTime(f*100+s,i,o);if(y=nt(p%f),p===d?(x=this._repeat,y=h):(x=~~(p/f),x&&x===nt(p/f)&&(y=h,x--),y>h&&(y=h)),k=this._yoyo&&x&1,k&&(C=this._yEase,y=h-y),v=mc(this._tTime,f),y===l&&!o&&this._initted&&x===v)return this._tTime=p,this;x!==v&&(b&&this._yEase&&YI(b,k),this.vars.repeatRefresh&&!k&&!this._lock&&this._time!==f&&this._initted&&(this._lock=o=1,this.render(nt(f*x),!0).invalidate()._lock=0))}if(!this._initted){if(zI(this,u?s:y,o,i,p))return this._tTime=0,this;if(l!==this._time&&!(o&&this.vars.repeatRefresh&&x!==v))return this;if(h!==this._dur)return this.render(s,i,o)}if(this._tTime=p,this._time=y,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=w=(C||this._ease)(y/h),this._from&&(this.ratio=w=1-w),y&&!l&&!i&&!x&&(Ut(this,"onStart"),this._tTime!==p))return this;for(m=this._pt;m;)m.r(w,m.d),m=m._next;b&&b.render(s<0?s:b._dur*b._ease(y/this._dur),i,o)||this._startAt&&(this._zTime=s),this._onUpdate&&!i&&(u&&uC(this,s,i,o),Ut(this,"onUpdate")),this._repeat&&x!==v&&this.vars.onRepeat&&!i&&this.parent&&Ut(this,"onRepeat"),(p===this._tDur||!p)&&this._tTime===p&&(u&&!this._onUpdate&&uC(this,s,!0,!0),(s||!h)&&(p===this._tDur&&this._ts>0||!p&&this._ts<0)&&qn(this,1),!i&&!(u&&!l)&&(p||l||k)&&(Ut(this,p===d?"onComplete":"onReverseComplete",!0),this._prom&&!(p<d&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(s){return(!s||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(s),t.prototype.invalidate.call(this,s)},n.resetTo=function(s,i,o,l,d){ul||$t.wake(),this._ts||this.play();var h=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||aS(this,h),u=this._ease(h/this._dur),rz(this,s,i,o,l,u,h,d)?this.resetTo(s,i,o,l,1):(Jj(this,0),this.parent||TI(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(s,i){if(i===void 0&&(i="all"),!s&&(!i||i==="all"))return this._lazy=this._pt=0,this.parent?_c(this):this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(s,i,gn&&gn.vars.overwrite!==!0)._first||_c(this),this.parent&&o!==this.timeline.totalDuration()&&yc(this,this._dur*this.timeline._tDur/o,0,1),this}var l=this._targets,d=s?sa(s):l,h=this._ptLookup,u=this._pt,p,y,m,x,f,v,k;if((!i||i==="all")&&Dq(l,d))return i==="all"&&(this._pt=0),_c(this);for(p=this._op=this._op||[],i!=="all"&&(it(i)&&(f={},Tt(i,function(w){return f[w]=1}),i=f),i=sz(l,i)),k=l.length;k--;)if(~d.indexOf(l[k])){y=h[k],i==="all"?(p[k]=i,x=y,m={}):(m=p[k]=p[k]||{},x=i);for(f in x)v=y&&y[f],v&&((!("kill"in v.d)||v.d.kill(f)===!0)&&Wj(this,v,"_pt"),delete y[f]),m!=="all"&&(m[f]=1)}return this._initted&&!this._pt&&u&&_c(this),this},a.to=function(s,i){return new a(s,i,arguments[2])},a.from=function(s,i){return rl(1,arguments)},a.delayedCall=function(s,i,o,l){return new a(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:s,onComplete:i,onReverseComplete:i,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:l})},a.fromTo=function(s,i,o){return rl(2,arguments)},a.set=function(s,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new a(s,i)},a.killTweensOf=function(s,i,o){return Ve.killTweensOf(s,i,o)},a}(pl);ha(Xe.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Tt("staggerTo,staggerFrom,staggerFromTo",function(t){Xe[t]=function(){var a=new bt,n=mC.call(arguments,0);return n.splice(t==="staggerFromTo"?5:4,0,0),a[t].apply(a,n)}});var nS=function(a,n,r){return a[n]=r},nA=function(a,n,r){return a[n](r)},oz=function(a,n,r,s){return a[n](s.fp,r)},cz=function(a,n,r){return a.setAttribute(n,r)},rS=function(a,n){return We(a[n])?nA:ZC(a[n])&&a.setAttribute?cz:nS},rA=function(a,n){return n.set(n.t,n.p,Math.round((n.s+n.c*a)*1e6)/1e6,n)},lz=function(a,n){return n.set(n.t,n.p,!!(n.s+n.c*a),n)},sA=function(a,n){var r=n._pt,s="";if(!a&&n.b)s=n.b;else if(a===1&&n.e)s=n.e;else{for(;r;)s=r.p+(r.m?r.m(r.s+r.c*a):Math.round((r.s+r.c*a)*1e4)/1e4)+s,r=r._next;s+=n.c}n.set(n.t,n.p,s,n)},sS=function(a,n){for(var r=n._pt;r;)r.r(a,r.d),r=r._next},dz=function(a,n,r,s){for(var i=this._pt,o;i;)o=i._next,i.p===s&&i.modifier(a,n,r),i=o},hz=function(a){for(var n=this._pt,r,s;n;)s=n._next,n.p===a&&!n.op||n.op===a?Wj(this,n,"_pt"):n.dep||(r=1),n=s;return!r},uz=function(a,n,r,s){s.mSet(a,n,s.m.call(s.tween,r,s.mt),s)},iA=function(a){for(var n=a._pt,r,s,i,o;n;){for(r=n._next,s=i;s&&s.pr>n.pr;)s=s._next;(n._prev=s?s._prev:o)?n._prev._next=n:i=n,(n._next=s)?s._prev=n:o=n,n=r}a._pt=i},Dt=function(){function t(n,r,s,i,o,l,d,h,u){this.t=r,this.s=i,this.c=o,this.p=s,this.r=l||rA,this.d=d||this,this.set=h||nS,this.pr=u||0,this._next=n,n&&(n._prev=this)}var a=t.prototype;return a.modifier=function(r,s,i){this.mSet=this.mSet||this.set,this.set=uz,this.m=r,this.mt=i,this.tween=s},t}();Tt(QC+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return KC[t]=1});Xt.TweenMax=Xt.TweenLite=Xe;Xt.TimelineLite=Xt.TimelineMax=bt;Ve=new bt({sortChildren:!1,defaults:pc,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Wt.stringFilter=JI;var No=[],kj={},pz=[],kN=0,mz=0,I9=function(a){return(kj[a]||pz).map(function(n){return n()})},gC=function(){var a=Date.now(),n=[];a-kN>2&&(I9("matchMediaInit"),No.forEach(function(r){var s=r.queries,i=r.conditions,o,l,d,h;for(l in s)o=Ma.matchMedia(s[l]).matches,o&&(d=1),o!==i[l]&&(i[l]=o,h=1);h&&(r.revert(),d&&n.push(r))}),I9("matchMediaRevert"),n.forEach(function(r){return r.onMatch(r,function(s){return r.add(null,s)})}),kN=a,I9("matchMedia"))},oA=function(){function t(n,r){this.selector=r&&yC(r),this.data=[],this._r=[],this.isReverted=!1,this.id=mz++,n&&this.add(n)}var a=t.prototype;return a.add=function(r,s,i){We(r)&&(i=s,s=r,r=We);var o=this,l=function(){var h=Oe,u=o.selector,p;return h&&h!==o&&h.data.push(o),i&&(o.selector=yC(i)),Oe=o,p=s.apply(o,arguments),We(p)&&o._r.push(p),Oe=h,o.selector=u,o.isReverted=!1,p};return o.last=l,r===We?l(o,function(d){return o.add(null,d)}):r?o[r]=l:l},a.ignore=function(r){var s=Oe;Oe=null,r(this),Oe=s},a.getTweens=function(){var r=[];return this.data.forEach(function(s){return s instanceof t?r.push.apply(r,s.getTweens()):s instanceof Xe&&!(s.parent&&s.parent.data==="nested")&&r.push(s)}),r},a.clear=function(){this._r.length=this.data.length=0},a.kill=function(r,s){var i=this;if(r?function(){for(var l=i.getTweens(),d=i.data.length,h;d--;)h=i.data[d],h.data==="isFlip"&&(h.revert(),h.getChildren(!0,!0,!1).forEach(function(u){return l.splice(l.indexOf(u),1)}));for(l.map(function(u){return{g:u._dur||u._delay||u._sat&&!u._sat.vars.immediateRender?u.globalTime(0):-1/0,t:u}}).sort(function(u,p){return p.g-u.g||-1/0}).forEach(function(u){return u.t.revert(r)}),d=i.data.length;d--;)h=i.data[d],h instanceof bt?h.data!=="nested"&&(h.scrollTrigger&&h.scrollTrigger.revert(),h.kill()):!(h instanceof Xe)&&h.revert&&h.revert(r);i._r.forEach(function(u){return u(r,i)}),i.isReverted=!0}():this.data.forEach(function(l){return l.kill&&l.kill()}),this.clear(),s)for(var o=No.length;o--;)No[o].id===this.id&&No.splice(o,1)},a.revert=function(r){this.kill(r||{})},t}(),yz=function(){function t(n){this.contexts=[],this.scope=n,Oe&&Oe.data.push(this)}var a=t.prototype;return a.add=function(r,s,i){Ta(r)||(r={matches:r});var o=new oA(0,i||this.scope),l=o.conditions={},d,h,u;Oe&&!o.selector&&(o.selector=Oe.selector),this.contexts.push(o),s=o.add("onMatch",s),o.queries=r;for(h in r)h==="all"?u=1:(d=Ma.matchMedia(r[h]),d&&(No.indexOf(o)<0&&No.push(o),(l[h]=d.matches)&&(u=1),d.addListener?d.addListener(gC):d.addEventListener("change",gC)));return u&&s(o,function(p){return o.add(null,p)}),this},a.revert=function(r){this.kill(r||{})},a.kill=function(r){this.contexts.forEach(function(s){return s.kill(r,!0)})},t}(),Pj={registerPlugin:function(){for(var a=arguments.length,n=new Array(a),r=0;r<a;r++)n[r]=arguments[r];n.forEach(function(s){return GI(s)})},timeline:function(a){return new bt(a)},getTweensOf:function(a,n){return Ve.getTweensOf(a,n)},getProperty:function(a,n,r,s){it(a)&&(a=sa(a)[0]);var i=jo(a||{}).get,o=r?RI:_I;return r==="native"&&(r=""),a&&(n?o((Ot[n]&&Ot[n].get||i)(a,n,r,s)):function(l,d,h){return o((Ot[l]&&Ot[l].get||i)(a,l,d,h))})},quickSetter:function(a,n,r){if(a=sa(a),a.length>1){var s=a.map(function(u){return zt.quickSetter(u,n,r)}),i=s.length;return function(u){for(var p=i;p--;)s[p](u)}}a=a[0]||{};var o=Ot[n],l=jo(a),d=l.harness&&(l.harness.aliases||{})[n]||n,h=o?function(u){var p=new o;Jo._pt=0,p.init(a,r?u+r:u,Jo,0,[a]),p.render(1,p),Jo._pt&&sS(1,Jo)}:l.set(a,d);return o?h:function(u){return h(a,d,r?u+r:u,l,1)}},quickTo:function(a,n,r){var s,i=zt.to(a,Io((s={},s[n]="+=0.1",s.paused=!0,s),r||{})),o=function(d,h,u){return i.resetTo(n,d,h,u)};return o.tween=i,o},isTweening:function(a){return Ve.getTweensOf(a,!0).length>0},defaults:function(a){return a&&a.ease&&(a.ease=So(a.ease,pc.ease)),mN(pc,a||{})},config:function(a){return mN(Wt,a||{})},registerEffect:function(a){var n=a.name,r=a.effect,s=a.plugins,i=a.defaults,o=a.extendTimeline;(s||"").split(",").forEach(function(l){return l&&!Ot[l]&&!Xt[l]&&ll(n+" effect requires "+l+" plugin.")}),C9[n]=function(l,d,h){return r(sa(l),ha(d||{},i),h)},o&&(bt.prototype[n]=function(l,d,h){return this.add(C9[n](l,Ta(d)?d:(h=d)&&{},this),h)})},registerEase:function(a,n){Ce[a]=So(n)},parseEase:function(a,n){return arguments.length?So(a,n):Ce},getById:function(a){return Ve.getById(a)},exportRoot:function(a,n){a===void 0&&(a={});var r=new bt(a),s,i;for(r.smoothChildTiming=Rt(a.smoothChildTiming),Ve.remove(r),r._dp=0,r._time=r._tTime=Ve._time,s=Ve._first;s;)i=s._next,(n||!(!s._dur&&s instanceof Xe&&s.vars.onComplete===s._targets[0]))&&Sa(r,s,s._start-s._delay),s=i;return Sa(Ve,r,0),r},context:function(a,n){return a?new oA(a,n):Oe},matchMedia:function(a){return new yz(a)},matchMediaRefresh:function(){return No.forEach(function(a){var n=a.conditions,r,s;for(s in n)n[s]&&(n[s]=!1,r=1);r&&a.revert()})||gC()},addEventListener:function(a,n){var r=kj[a]||(kj[a]=[]);~r.indexOf(n)||r.push(n)},removeEventListener:function(a,n){var r=kj[a],s=r&&r.indexOf(n);s>=0&&r.splice(s,1)},utils:{wrap:Wq,wrapYoyo:Zq,distribute:OI,random:VI,snap:HI,normalize:Gq,getUnit:pt,clamp:Vq,splitColor:WI,toArray:sa,selector:yC,mapRange:$I,pipe:$q,unitize:Uq,interpolate:Jq,shuffle:FI},install:NI,effects:C9,ticker:$t,updateRoot:bt.updateRoot,plugins:Ot,globalTimeline:Ve,core:{PropTween:Dt,globals:LI,Tween:Xe,Timeline:bt,Animation:pl,getCache:jo,_removeLinkedListItem:Wj,reverting:function(){return yt},context:function(a){return a&&Oe&&(Oe.data.push(a),a._ctx=Oe),Oe},suppressOverwrites:function(a){return WC=a}}};Tt("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Pj[t]=Xe[t]});$t.add(bt.updateRoot);Jo=Pj.to({},{duration:0});var fz=function(a,n){for(var r=a._pt;r&&r.p!==n&&r.op!==n&&r.fp!==n;)r=r._next;return r},xz=function(a,n){var r=a._targets,s,i,o;for(s in n)for(i=r.length;i--;)o=a._ptLookup[i][s],o&&(o=o.d)&&(o._pt&&(o=fz(o,s)),o&&o.modifier&&o.modifier(n[s],a,r[i],s))},A9=function(a,n){return{name:a,rawVars:1,init:function(s,i,o){o._onInit=function(l){var d,h;if(it(i)&&(d={},Tt(i,function(u){return d[u]=1}),i=d),n){d={};for(h in i)d[h]=n(i[h]);i=d}xz(l,i)}}}},zt=Pj.registerPlugin({name:"attr",init:function(a,n,r,s,i){var o,l,d;this.tween=r;for(o in n)d=a.getAttribute(o)||"",l=this.add(a,"setAttribute",(d||0)+"",n[o],s,i,0,0,o),l.op=o,l.b=d,this._props.push(o)},render:function(a,n){for(var r=n._pt;r;)yt?r.set(r.t,r.p,r.b,r):r.r(a,r.d),r=r._next}},{name:"endArray",init:function(a,n){for(var r=n.length;r--;)this.add(a,r,a[r]||0,n[r],0,0,0,0,0,1)}},A9("roundProps",fC),A9("modifiers"),A9("snap",HI))||Pj;Xe.version=bt.version=zt.version="3.12.5";SI=1;JC()&&fc();Ce.Power0;Ce.Power1;Ce.Power2;Ce.Power3;Ce.Power4;Ce.Linear;Ce.Quad;Ce.Cubic;Ce.Quart;Ce.Quint;Ce.Strong;Ce.Elastic;Ce.Back;Ce.SteppedEase;Ce.Bounce;Ce.Sine;Ce.Expo;Ce.Circ;/*!
7734
7734
  * CSSPlugin 3.12.5
7735
7735
  * https://gsap.com
7736
7736
  *
@@ -7738,7 +7738,7 @@ React keys must be passed directly to JSX without using spread:
7738
7738
  * Subject to the terms at https://gsap.com/standard-license or for
7739
7739
  * Club GSAP members, the agreement issued with that membership.
7740
7740
  * @author: Jack Doyle, jack@greensock.com
7741
- */var vN,kn,cc,iS,mo,wN,oS,gz=function(){return typeof window<"u"},Ka={},uo=180/Math.PI,lc=Math.PI/180,$o=Math.atan2,bN=1e8,cS=/([A-Z])/g,kz=/(left|right|width|margin|padding|x)/i,vz=/[\s,\(]\S/,La={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},kC=function(a,n){return n.set(n.t,n.p,Math.round((n.s+n.c*a)*1e4)/1e4+n.u,n)},wz=function(a,n){return n.set(n.t,n.p,a===1?n.e:Math.round((n.s+n.c*a)*1e4)/1e4+n.u,n)},bz=function(a,n){return n.set(n.t,n.p,a?Math.round((n.s+n.c*a)*1e4)/1e4+n.u:n.b,n)},Mz=function(a,n){var r=n.s+n.c*a;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},cA=function(a,n){return n.set(n.t,n.p,a?n.e:n.b,n)},lA=function(a,n){return n.set(n.t,n.p,a!==1?n.b:n.e,n)},jz=function(a,n,r){return a.style[n]=r},Cz=function(a,n,r){return a.style.setProperty(n,r)},Sz=function(a,n,r){return a._gsap[n]=r},Nz=function(a,n,r){return a._gsap.scaleX=a._gsap.scaleY=r},Lz=function(a,n,r,s,i){var o=a._gsap;o.scaleX=o.scaleY=r,o.renderTransform(i,o)},Iz=function(a,n,r,s,i){var o=a._gsap;o[n]=r,o.renderTransform(i,o)},Be="transform",qt=Be+"Origin",Az=function t(a,n){var r=this,s=this.target,i=s.style,o=s._gsap;if(a in Ka&&i){if(this.tfm=this.tfm||{},a!=="transform")a=La[a]||a,~a.indexOf(",")?a.split(",").forEach(function(l){return r.tfm[l]=Za(s,l)}):this.tfm[a]=o.x?o[a]:Za(s,a),a===qt&&(this.tfm.zOrigin=o.zOrigin);else return La.transform.split(",").forEach(function(l){return t.call(r,l,n)});if(this.props.indexOf(Be)>=0)return;o.svg&&(this.svgo=s.getAttribute("data-svg-origin"),this.props.push(qt,n,"")),a=Be}(i||n)&&this.props.push(a,n,i[a])},dA=function(a){a.translate&&(a.removeProperty("translate"),a.removeProperty("scale"),a.removeProperty("rotate"))},Pz=function(){var a=this.props,n=this.target,r=n.style,s=n._gsap,i,o;for(i=0;i<a.length;i+=3)a[i+1]?n[a[i]]=a[i+2]:a[i+2]?r[a[i]]=a[i+2]:r.removeProperty(a[i].substr(0,2)==="--"?a[i]:a[i].replace(cS,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)s[o]=this.tfm[o];s.svg&&(s.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),i=oS(),(!i||!i.isStart)&&!r[Be]&&(dA(r),s.zOrigin&&r[qt]&&(r[qt]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},hA=function(a,n){var r={target:a,props:[],revert:Pz,save:Az};return a._gsap||zt.core.getCache(a),n&&n.split(",").forEach(function(s){return r.save(s)}),r},uA,vC=function(a,n){var r=kn.createElementNS?kn.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),a):kn.createElement(a);return r&&r.style?r:kn.createElement(a)},_a=function t(a,n,r){var s=getComputedStyle(a);return s[n]||s.getPropertyValue(n.replace(cS,"-$1").toLowerCase())||s.getPropertyValue(n)||!r&&t(a,xc(n)||n,1)||""},MN="O,Moz,ms,Ms,Webkit".split(","),xc=function(a,n,r){var s=n||mo,i=s.style,o=5;if(a in i&&!r)return a;for(a=a.charAt(0).toUpperCase()+a.substr(1);o--&&!(MN[o]+a in i););return o<0?null:(o===3?"ms":o>=0?MN[o]:"")+a},wC=function(){gz()&&window.document&&(vN=window,kn=vN.document,cc=kn.documentElement,mo=vC("div")||{style:{}},vC("div"),Be=xc(Be),qt=Be+"Origin",mo.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",uA=!!xc("perspective"),oS=zt.core.reverting,iS=1)},P9=function t(a){var n=vC("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,s=this.nextSibling,i=this.style.cssText,o;if(cc.appendChild(n),n.appendChild(this),this.style.display="block",a)try{o=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch{}else this._gsapBBox&&(o=this._gsapBBox());return r&&(s?r.insertBefore(this,s):r.appendChild(this)),cc.removeChild(n),this.style.cssText=i,o},jN=function(a,n){for(var r=n.length;r--;)if(a.hasAttribute(n[r]))return a.getAttribute(n[r])},pA=function(a){var n;try{n=a.getBBox()}catch{n=P9.call(a,!0)}return n&&(n.width||n.height)||a.getBBox===P9||(n=P9.call(a,!0)),n&&!n.width&&!n.x&&!n.y?{x:+jN(a,["x","cx","x1"])||0,y:+jN(a,["y","cy","y1"])||0,width:0,height:0}:n},mA=function(a){return!!(a.getCTM&&(!a.parentNode||a.ownerSVGElement)&&pA(a))},Ao=function(a,n){if(n){var r=a.style,s;n in Ka&&n!==qt&&(n=Be),r.removeProperty?(s=n.substr(0,2),(s==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(s==="--"?n:n.replace(cS,"-$1").toLowerCase())):r.removeAttribute(n)}},vn=function(a,n,r,s,i,o){var l=new Dt(a._pt,n,r,0,1,o?lA:cA);return a._pt=l,l.b=s,l.e=i,a._props.push(r),l},CN={deg:1,rad:1,turn:1},_z={grid:1,flex:1},zn=function t(a,n,r,s){var i=parseFloat(r)||0,o=(r+"").trim().substr((i+"").length)||"px",l=mo.style,d=kz.test(n),h=a.tagName.toLowerCase()==="svg",u=(h?"client":"offset")+(d?"Width":"Height"),p=100,y=s==="px",m=s==="%",x,f,v,k;if(s===o||!i||CN[s]||CN[o])return i;if(o!=="px"&&!y&&(i=t(a,n,r,"px")),k=a.getCTM&&mA(a),(m||o==="%")&&(Ka[n]||~n.indexOf("adius")))return x=k?a.getBBox()[d?"width":"height"]:a[u],Je(m?i/x*p:i/100*x);if(l[d?"width":"height"]=p+(y?o:s),f=~n.indexOf("adius")||s==="em"&&a.appendChild&&!h?a:a.parentNode,k&&(f=(a.ownerSVGElement||{}).parentNode),(!f||f===kn||!f.appendChild)&&(f=kn.body),v=f._gsap,v&&m&&v.width&&d&&v.time===$t.time&&!v.uncache)return Je(i/v.width*p);if(m&&(n==="height"||n==="width")){var w=a.style[n];a.style[n]=p+s,x=a[u],w?a.style[n]=w:Ao(a,n)}else(m||o==="%")&&!_z[_a(f,"display")]&&(l.position=_a(a,"position")),f===a&&(l.position="static"),f.appendChild(mo),x=mo[u],f.removeChild(mo),l.position="absolute";return d&&m&&(v=jo(f),v.time=$t.time,v.width=f[u]),Je(y?x*i/p:x&&i?p/x*i:0)},Za=function(a,n,r,s){var i;return iS||wC(),n in La&&n!=="transform"&&(n=La[n],~n.indexOf(",")&&(n=n.split(",")[0])),Ka[n]&&n!=="transform"?(i=yl(a,s),i=n!=="transformOrigin"?i[n]:i.svg?i.origin:Rj(_a(a,qt))+" "+i.zOrigin+"px"):(i=a.style[n],(!i||i==="auto"||s||~(i+"").indexOf("calc("))&&(i=_j[n]&&_j[n](a,n,r)||_a(a,n)||AI(a,n)||(n==="opacity"?1:0))),r&&!~(i+"").trim().indexOf(" ")?zn(a,n,i,r)+r:i},Rz=function(a,n,r,s){if(!r||r==="none"){var i=xc(n,a,1),o=i&&_a(a,i,1);o&&o!==r?(n=i,r=o):n==="borderColor"&&(r=_a(a,"borderTopColor"))}var l=new Dt(this._pt,a.style,n,0,1,sA),d=0,h=0,u,p,y,m,x,f,v,k,w,b,C,j;if(l.b=r,l.e=s,r+="",s+="",s==="auto"&&(f=a.style[n],a.style[n]=s,s=_a(a,n)||s,f?a.style[n]=f:Ao(a,n)),u=[r,s],JI(u),r=u[0],s=u[1],y=r.match(Zo)||[],j=s.match(Zo)||[],j.length){for(;p=Zo.exec(s);)v=p[0],w=s.substring(d,p.index),x?x=(x+1)%5:(w.substr(-5)==="rgba("||w.substr(-5)==="hsla(")&&(x=1),v!==(f=y[h++]||"")&&(m=parseFloat(f)||0,C=f.substr((m+"").length),v.charAt(1)==="="&&(v=oc(m,v)+C),k=parseFloat(v),b=v.substr((k+"").length),d=Zo.lastIndex-b.length,b||(b=b||Wt.units[n]||C,d===s.length&&(s+=b,l.e+=b)),C!==b&&(m=zn(a,n,f,b)||0),l._pt={_next:l._pt,p:w||h===1?w:",",s:m,c:k-m,m:x&&x<4||n==="zIndex"?Math.round:0});l.c=d<s.length?s.substring(d,s.length):""}else l.r=n==="display"&&s==="none"?lA:cA;return jI.test(s)&&(l.e=0),this._pt=l,l},SN={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Tz=function(a){var n=a.split(" "),r=n[0],s=n[1]||"50%";return(r==="top"||r==="bottom"||s==="left"||s==="right")&&(a=r,r=s,s=a),n[0]=SN[r]||r,n[1]=SN[s]||s,n.join(" ")},Dz=function(a,n){if(n.tween&&n.tween._time===n.tween._dur){var r=n.t,s=r.style,i=n.u,o=r._gsap,l,d,h;if(i==="all"||i===!0)s.cssText="",d=1;else for(i=i.split(","),h=i.length;--h>-1;)l=i[h],Ka[l]&&(d=1,l=l==="transformOrigin"?qt:Be),Ao(r,l);d&&(Ao(r,Be),o&&(o.svg&&r.removeAttribute("transform"),yl(r,1),o.uncache=1,dA(s)))}},_j={clearProps:function(a,n,r,s,i){if(i.data!=="isFromStart"){var o=a._pt=new Dt(a._pt,n,r,0,0,Dz);return o.u=s,o.pr=-10,o.tween=i,a._props.push(r),1}}},ml=[1,0,0,1,0,0],yA={},fA=function(a){return a==="matrix(1, 0, 0, 1, 0, 0)"||a==="none"||!a},NN=function(a){var n=_a(a,Be);return fA(n)?ml:n.substr(7).match(MI).map(Je)},lS=function(a,n){var r=a._gsap||jo(a),s=a.style,i=NN(a),o,l,d,h;return r.svg&&a.getAttribute("transform")?(d=a.transform.baseVal.consolidate().matrix,i=[d.a,d.b,d.c,d.d,d.e,d.f],i.join(",")==="1,0,0,1,0,0"?ml:i):(i===ml&&!a.offsetParent&&a!==cc&&!r.svg&&(d=s.display,s.display="block",o=a.parentNode,(!o||!a.offsetParent)&&(h=1,l=a.nextElementSibling,cc.appendChild(a)),i=NN(a),d?s.display=d:Ao(a,"display"),h&&(l?o.insertBefore(a,l):o?o.appendChild(a):cc.removeChild(a))),n&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},bC=function(a,n,r,s,i,o){var l=a._gsap,d=i||lS(a,!0),h=l.xOrigin||0,u=l.yOrigin||0,p=l.xOffset||0,y=l.yOffset||0,m=d[0],x=d[1],f=d[2],v=d[3],k=d[4],w=d[5],b=n.split(" "),C=parseFloat(b[0])||0,j=parseFloat(b[1])||0,I,N,S,L;r?d!==ml&&(N=m*v-x*f)&&(S=C*(v/N)+j*(-f/N)+(f*w-v*k)/N,L=C*(-x/N)+j*(m/N)-(m*w-x*k)/N,C=S,j=L):(I=pA(a),C=I.x+(~b[0].indexOf("%")?C/100*I.width:C),j=I.y+(~(b[1]||b[0]).indexOf("%")?j/100*I.height:j)),s||s!==!1&&l.smooth?(k=C-h,w=j-u,l.xOffset=p+(k*m+w*f)-k,l.yOffset=y+(k*x+w*v)-w):l.xOffset=l.yOffset=0,l.xOrigin=C,l.yOrigin=j,l.smooth=!!s,l.origin=n,l.originIsAbsolute=!!r,a.style[qt]="0px 0px",o&&(vn(o,l,"xOrigin",h,C),vn(o,l,"yOrigin",u,j),vn(o,l,"xOffset",p,l.xOffset),vn(o,l,"yOffset",y,l.yOffset)),a.setAttribute("data-svg-origin",C+" "+j)},yl=function(a,n){var r=a._gsap||new QI(a);if("x"in r&&!n&&!r.uncache)return r;var s=a.style,i=r.scaleX<0,o="px",l="deg",d=getComputedStyle(a),h=_a(a,qt)||"0",u,p,y,m,x,f,v,k,w,b,C,j,I,N,S,L,q,_,A,D,H,G,V,$,F,re,K,X,Z,le,ae,fe;return u=p=y=f=v=k=w=b=C=0,m=x=1,r.svg=!!(a.getCTM&&mA(a)),d.translate&&((d.translate!=="none"||d.scale!=="none"||d.rotate!=="none")&&(s[Be]=(d.translate!=="none"?"translate3d("+(d.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(d.rotate!=="none"?"rotate("+d.rotate+") ":"")+(d.scale!=="none"?"scale("+d.scale.split(" ").join(",")+") ":"")+(d[Be]!=="none"?d[Be]:"")),s.scale=s.rotate=s.translate="none"),N=lS(a,r.svg),r.svg&&(r.uncache?(F=a.getBBox(),h=r.xOrigin-F.x+"px "+(r.yOrigin-F.y)+"px",$=""):$=!n&&a.getAttribute("data-svg-origin"),bC(a,$||h,!!$||r.originIsAbsolute,r.smooth!==!1,N)),j=r.xOrigin||0,I=r.yOrigin||0,N!==ml&&(_=N[0],A=N[1],D=N[2],H=N[3],u=G=N[4],p=V=N[5],N.length===6?(m=Math.sqrt(_*_+A*A),x=Math.sqrt(H*H+D*D),f=_||A?$o(A,_)*uo:0,w=D||H?$o(D,H)*uo+f:0,w&&(x*=Math.abs(Math.cos(w*lc))),r.svg&&(u-=j-(j*_+I*D),p-=I-(j*A+I*H))):(fe=N[6],le=N[7],K=N[8],X=N[9],Z=N[10],ae=N[11],u=N[12],p=N[13],y=N[14],S=$o(fe,Z),v=S*uo,S&&(L=Math.cos(-S),q=Math.sin(-S),$=G*L+K*q,F=V*L+X*q,re=fe*L+Z*q,K=G*-q+K*L,X=V*-q+X*L,Z=fe*-q+Z*L,ae=le*-q+ae*L,G=$,V=F,fe=re),S=$o(-D,Z),k=S*uo,S&&(L=Math.cos(-S),q=Math.sin(-S),$=_*L-K*q,F=A*L-X*q,re=D*L-Z*q,ae=H*q+ae*L,_=$,A=F,D=re),S=$o(A,_),f=S*uo,S&&(L=Math.cos(S),q=Math.sin(S),$=_*L+A*q,F=G*L+V*q,A=A*L-_*q,V=V*L-G*q,_=$,G=F),v&&Math.abs(v)+Math.abs(f)>359.9&&(v=f=0,k=180-k),m=Je(Math.sqrt(_*_+A*A+D*D)),x=Je(Math.sqrt(V*V+fe*fe)),S=$o(G,V),w=Math.abs(S)>2e-4?S*uo:0,C=ae?1/(ae<0?-ae:ae):0),r.svg&&($=a.getAttribute("transform"),r.forceCSS=a.setAttribute("transform","")||!fA(_a(a,Be)),$&&a.setAttribute("transform",$))),Math.abs(w)>90&&Math.abs(w)<270&&(i?(m*=-1,w+=f<=0?180:-180,f+=f<=0?180:-180):(x*=-1,w+=w<=0?180:-180)),n=n||r.uncache,r.x=u-((r.xPercent=u&&(!n&&r.xPercent||(Math.round(a.offsetWidth/2)===Math.round(-u)?-50:0)))?a.offsetWidth*r.xPercent/100:0)+o,r.y=p-((r.yPercent=p&&(!n&&r.yPercent||(Math.round(a.offsetHeight/2)===Math.round(-p)?-50:0)))?a.offsetHeight*r.yPercent/100:0)+o,r.z=y+o,r.scaleX=Je(m),r.scaleY=Je(x),r.rotation=Je(f)+l,r.rotationX=Je(v)+l,r.rotationY=Je(k)+l,r.skewX=w+l,r.skewY=b+l,r.transformPerspective=C+o,(r.zOrigin=parseFloat(h.split(" ")[2])||!n&&r.zOrigin||0)&&(s[qt]=Rj(h)),r.xOffset=r.yOffset=0,r.force3D=Wt.force3D,r.renderTransform=r.svg?zz:uA?xA:qz,r.uncache=0,r},Rj=function(a){return(a=a.split(" "))[0]+" "+a[1]},_9=function(a,n,r){var s=pt(n);return Je(parseFloat(n)+parseFloat(zn(a,"x",r+"px",s)))+s},qz=function(a,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,xA(a,n)},Wn="0deg",Pc="0px",Zn=") ",xA=function(a,n){var r=n||this,s=r.xPercent,i=r.yPercent,o=r.x,l=r.y,d=r.z,h=r.rotation,u=r.rotationY,p=r.rotationX,y=r.skewX,m=r.skewY,x=r.scaleX,f=r.scaleY,v=r.transformPerspective,k=r.force3D,w=r.target,b=r.zOrigin,C="",j=k==="auto"&&a&&a!==1||k===!0;if(b&&(p!==Wn||u!==Wn)){var I=parseFloat(u)*lc,N=Math.sin(I),S=Math.cos(I),L;I=parseFloat(p)*lc,L=Math.cos(I),o=_9(w,o,N*L*-b),l=_9(w,l,-Math.sin(I)*-b),d=_9(w,d,S*L*-b+b)}v!==Pc&&(C+="perspective("+v+Zn),(s||i)&&(C+="translate("+s+"%, "+i+"%) "),(j||o!==Pc||l!==Pc||d!==Pc)&&(C+=d!==Pc||j?"translate3d("+o+", "+l+", "+d+") ":"translate("+o+", "+l+Zn),h!==Wn&&(C+="rotate("+h+Zn),u!==Wn&&(C+="rotateY("+u+Zn),p!==Wn&&(C+="rotateX("+p+Zn),(y!==Wn||m!==Wn)&&(C+="skew("+y+", "+m+Zn),(x!==1||f!==1)&&(C+="scale("+x+", "+f+Zn),w.style[Be]=C||"translate(0, 0)"},zz=function(a,n){var r=n||this,s=r.xPercent,i=r.yPercent,o=r.x,l=r.y,d=r.rotation,h=r.skewX,u=r.skewY,p=r.scaleX,y=r.scaleY,m=r.target,x=r.xOrigin,f=r.yOrigin,v=r.xOffset,k=r.yOffset,w=r.forceCSS,b=parseFloat(o),C=parseFloat(l),j,I,N,S,L;d=parseFloat(d),h=parseFloat(h),u=parseFloat(u),u&&(u=parseFloat(u),h+=u,d+=u),d||h?(d*=lc,h*=lc,j=Math.cos(d)*p,I=Math.sin(d)*p,N=Math.sin(d-h)*-y,S=Math.cos(d-h)*y,h&&(u*=lc,L=Math.tan(h-u),L=Math.sqrt(1+L*L),N*=L,S*=L,u&&(L=Math.tan(u),L=Math.sqrt(1+L*L),j*=L,I*=L)),j=Je(j),I=Je(I),N=Je(N),S=Je(S)):(j=p,S=y,I=N=0),(b&&!~(o+"").indexOf("px")||C&&!~(l+"").indexOf("px"))&&(b=zn(m,"x",o,"px"),C=zn(m,"y",l,"px")),(x||f||v||k)&&(b=Je(b+x-(x*j+f*N)+v),C=Je(C+f-(x*I+f*S)+k)),(s||i)&&(L=m.getBBox(),b=Je(b+s/100*L.width),C=Je(C+i/100*L.height)),L="matrix("+j+","+I+","+N+","+S+","+b+","+C+")",m.setAttribute("transform",L),w&&(m.style[Be]=L)},Ez=function(a,n,r,s,i){var o=360,l=it(i),d=parseFloat(i)*(l&&~i.indexOf("rad")?uo:1),h=d-s,u=s+h+"deg",p,y;return l&&(p=i.split("_")[1],p==="short"&&(h%=o,h!==h%(o/2)&&(h+=h<0?o:-o)),p==="cw"&&h<0?h=(h+o*bN)%o-~~(h/o)*o:p==="ccw"&&h>0&&(h=(h-o*bN)%o-~~(h/o)*o)),a._pt=y=new Dt(a._pt,n,r,s,h,wz),y.e=u,y.u="deg",a._props.push(r),y},LN=function(a,n){for(var r in n)a[r]=n[r];return a},Fz=function(a,n,r){var s=LN({},r._gsap),i="perspective,force3D,transformOrigin,svgOrigin",o=r.style,l,d,h,u,p,y,m,x;s.svg?(h=r.getAttribute("transform"),r.setAttribute("transform",""),o[Be]=n,l=yl(r,1),Ao(r,Be),r.setAttribute("transform",h)):(h=getComputedStyle(r)[Be],o[Be]=n,l=yl(r,1),o[Be]=h);for(d in Ka)h=s[d],u=l[d],h!==u&&i.indexOf(d)<0&&(m=pt(h),x=pt(u),p=m!==x?zn(r,d,h,x):parseFloat(h),y=parseFloat(u),a._pt=new Dt(a._pt,l,d,p,y-p,kC),a._pt.u=x||0,a._props.push(d));LN(l,s)};Tt("padding,margin,Width,Radius",function(t,a){var n="Top",r="Right",s="Bottom",i="Left",o=(a<3?[n,r,s,i]:[n+i,n+r,s+r,s+i]).map(function(l){return a<2?t+l:"border"+l+t});_j[a>1?"border"+t:t]=function(l,d,h,u,p){var y,m;if(arguments.length<4)return y=o.map(function(x){return Za(l,x,h)}),m=y.join(" "),m.split(y[0]).length===5?y[0]:m;y=(u+"").split(" "),m={},o.forEach(function(x,f){return m[x]=y[f]=y[f]||y[(f-1)/2|0]}),l.init(d,m,p)}});var gA={name:"css",register:wC,targetTest:function(a){return a.style&&a.nodeType},init:function(a,n,r,s,i){var o=this._props,l=a.style,d=r.vars.startAt,h,u,p,y,m,x,f,v,k,w,b,C,j,I,N,S;iS||wC(),this.styles=this.styles||hA(a),S=this.styles.props,this.tween=r;for(f in n)if(f!=="autoRound"&&(u=n[f],!(Ot[f]&&eA(f,n,r,s,a,i)))){if(m=typeof u,x=_j[f],m==="function"&&(u=u.call(r,s,a,i),m=typeof u),m==="string"&&~u.indexOf("random(")&&(u=hl(u)),x)x(this,a,f,u,r)&&(N=1);else if(f.substr(0,2)==="--")h=(getComputedStyle(a).getPropertyValue(f)+"").trim(),u+="",Rn.lastIndex=0,Rn.test(h)||(v=pt(h),k=pt(u)),k?v!==k&&(h=zn(a,f,h,k)+k):v&&(u+=v),this.add(l,"setProperty",h,u,s,i,0,0,f),o.push(f),S.push(f,0,l[f]);else if(m!=="undefined"){if(d&&f in d?(h=typeof d[f]=="function"?d[f].call(r,s,a,i):d[f],it(h)&&~h.indexOf("random(")&&(h=hl(h)),pt(h+"")||h==="auto"||(h+=Wt.units[f]||pt(Za(a,f))||""),(h+"").charAt(1)==="="&&(h=Za(a,f))):h=Za(a,f),y=parseFloat(h),w=m==="string"&&u.charAt(1)==="="&&u.substr(0,2),w&&(u=u.substr(2)),p=parseFloat(u),f in La&&(f==="autoAlpha"&&(y===1&&Za(a,"visibility")==="hidden"&&p&&(y=0),S.push("visibility",0,l.visibility),vn(this,l,"visibility",y?"inherit":"hidden",p?"inherit":"hidden",!p)),f!=="scale"&&f!=="transform"&&(f=La[f],~f.indexOf(",")&&(f=f.split(",")[0]))),b=f in Ka,b){if(this.styles.save(f),C||(j=a._gsap,j.renderTransform&&!n.parseTransform||yl(a,n.parseTransform),I=n.smoothOrigin!==!1&&j.smooth,C=this._pt=new Dt(this._pt,l,Be,0,1,j.renderTransform,j,0,-1),C.dep=1),f==="scale")this._pt=new Dt(this._pt,j,"scaleY",j.scaleY,(w?oc(j.scaleY,w+p):p)-j.scaleY||0,kC),this._pt.u=0,o.push("scaleY",f),f+="X";else if(f==="transformOrigin"){S.push(qt,0,l[qt]),u=Tz(u),j.svg?bC(a,u,0,I,0,this):(k=parseFloat(u.split(" ")[2])||0,k!==j.zOrigin&&vn(this,j,"zOrigin",j.zOrigin,k),vn(this,l,f,Rj(h),Rj(u)));continue}else if(f==="svgOrigin"){bC(a,u,1,I,0,this);continue}else if(f in yA){Ez(this,j,f,y,w?oc(y,w+u):u);continue}else if(f==="smoothOrigin"){vn(this,j,"smooth",j.smooth,u);continue}else if(f==="force3D"){j[f]=u;continue}else if(f==="transform"){Fz(this,u,a);continue}}else f in l||(f=xc(f)||f);if(b||(p||p===0)&&(y||y===0)&&!vz.test(u)&&f in l)v=(h+"").substr((y+"").length),p||(p=0),k=pt(u)||(f in Wt.units?Wt.units[f]:v),v!==k&&(y=zn(a,f,h,k)),this._pt=new Dt(this._pt,b?j:l,f,y,(w?oc(y,w+p):p)-y,!b&&(k==="px"||f==="zIndex")&&n.autoRound!==!1?Mz:kC),this._pt.u=k||0,v!==k&&k!=="%"&&(this._pt.b=h,this._pt.r=bz);else if(f in l)Rz.call(this,a,f,h,w?w+u:u);else if(f in a)this.add(a,f,h||a[f],w?w+u:u,s,i);else if(f!=="parseTransform"){YC(f,u);continue}b||(f in l?S.push(f,0,l[f]):S.push(f,1,h||a[f])),o.push(f)}}N&&iA(this)},render:function(a,n){if(n.tween._time||!oS())for(var r=n._pt;r;)r.r(a,r.d),r=r._next;else n.styles.revert()},get:Za,aliases:La,getSetter:function(a,n,r){var s=La[n];return s&&s.indexOf(",")<0&&(n=s),n in Ka&&n!==qt&&(a._gsap.x||Za(a,"x"))?r&&wN===r?n==="scale"?Nz:Sz:(wN=r||{})&&(n==="scale"?Lz:Iz):a.style&&!ZC(a.style[n])?jz:~n.indexOf("-")?Cz:rS(a,n)},core:{_removeProperty:Ao,_getMatrix:lS}};zt.utils.checkPrefix=xc;zt.core.getStyleSaver=hA;(function(t,a,n,r){var s=Tt(t+","+a+","+n,function(i){Ka[i]=1});Tt(a,function(i){Wt.units[i]="deg",yA[i]=1}),La[s[13]]=t+","+a,Tt(r,function(i){var o=i.split(":");La[o[1]]=s[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");Tt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){Wt.units[t]="px"});zt.registerPlugin(gA);var kA=zt.registerPlugin(gA)||zt;kA.core.Tween;function dS(t){return qD[t]||fn}function vA({advantages:t,title:a,description:n}){return e.jsx("section",{className:"py-20 bg-gradient-to-b from-white to-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:n})]}),e.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3",children:t.map((r,s)=>{const i=dS(r.icon);return e.jsxs("div",{className:"relative bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition-shadow flex flex-col",children:[e.jsxs("div",{className:"w-12 h-12 flex items-center justify-center bg-yellow-50 rounded-lg text-yellow-600 mb-4",children:[i?e.jsx(i,{className:"h-8 w-8"}):null," "]}),e.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:r.title}),e.jsx("p",{className:"text-gray-600 mb-6",children:r.description}),r.ctaLink&&r.ctaText?e.jsx("div",{className:"mt-auto",children:e.jsxs("a",{href:r.ctaLink,className:"inline-flex items-center text-yellow-600 hover:text-yellow-700 font-medium group",children:[r.ctaText,e.jsx(yo,{className:"ml-2 h-4 w-4 transform group-hover:translate-x-1 transition-transform"})]})}):""]},s)})})]})})}function Oz({title:t="Get in Touch",description:a="Have questions? We're here to help you start your journey",nameLabel:n="Full Name",emailLabel:r="Email",messageLabel:s="Message",namePlaceholder:i="Your full name",emailPlaceholder:o="you@example.com",messagePlaceholder:l="How can we help?",submitButtonLabel:d="Send Message",contactEmail:h="contact@globalenglish.com",contactPhone:u="+1 (555) 123-4567",contactMessage:p="Live chat available 24/7",onSubmit:y,showContactDetails:m=!0}){const x=f=>{f.preventDefault();const v=new FormData(f.currentTarget);y==null||y({name:String(v.get("name")??""),email:String(v.get("email")??""),message:String(v.get("message")??"")})};return e.jsx("section",{id:"contact",className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:t}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:a})]}),e.jsxs("div",{className:"mt-16 max-w-lg mx-auto",children:[e.jsxs("form",{className:"space-y-6",onSubmit:x,children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-700",children:n}),e.jsx("input",{type:"text",id:"name",name:"name",placeholder:i,className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-yellow-500 focus:ring-blue-500"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700",children:r}),e.jsx("input",{type:"email",id:"email",name:"email",placeholder:o,className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-yellow-500 focus:ring-blue-500"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"message",className:"block text-sm font-medium text-gray-700",children:s}),e.jsx("textarea",{id:"message",name:"message",rows:4,placeholder:l,className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-yellow-500 focus:ring-blue-500"})]}),e.jsx("button",{type:"submit",className:"w-full bg-yellow-600 text-white py-3 px-4 rounded-md hover:bg-yellow-700 transition-colors",children:d})]}),m&&e.jsxs("div",{className:"mt-12 space-y-4",children:[e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(ca,{className:"h-6 w-6 mr-3"}),e.jsx("span",{children:h})]}),e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(In,{className:"h-6 w-6 mr-3"}),e.jsx("span",{children:u})]}),e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(Ln,{className:"h-6 w-6 mr-3"}),e.jsx("span",{children:p})]})]})]})]})})}const wA=M.createContext(void 0);function Hz({children:t}){const[a,n]=M.useState([]),[r,s]=M.useState(!1),i=M.useCallback(u=>{n(p=>p.find(m=>m.id===u.id)?p.map(m=>m.id===u.id?{...m,quantity:m.quantity+1}:m):[...p,{...u,quantity:1}]),s(!0)},[]),o=M.useCallback(u=>{n(p=>p.filter(y=>y.id!==u))},[]),l=M.useCallback((u,p)=>{n(y=>y.map(m=>m.id===u?{...m,quantity:Math.max(0,p)}:m))},[]),d=M.useCallback(()=>{s(u=>!u)},[]),h=a.reduce((u,p)=>u+p.price*p.quantity,0);return e.jsx(wA.Provider,{value:{items:a,isOpen:r,addItem:i,removeItem:o,updateQuantity:l,toggleCart:d,total:h},children:t})}function bA(){const t=M.useContext(wA);if(t===void 0)throw new Error("useCart must be used within a CartProvider");return t}function MA({courses:t,title:a,description:n}){const{addItem:r}=bA();return e.jsx("section",{id:"courses",className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:n})]}),e.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-4",children:t.map(s=>e.jsxs("div",{className:"bg-white border border-gray-200 rounded-lg p-6 hover:border-yellow-500 transition-colors",children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-4",children:s.title}),e.jsxs("div",{className:"space-y-3 mb-6",children:[e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(ga,{className:"h-5 w-5 mr-2"}),e.jsx("span",{children:s.duration})]}),e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(mt,{className:"h-5 w-5 mr-2"}),e.jsx("span",{children:s.type})]}),e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(Qc,{className:"h-5 w-5 mr-2"}),e.jsx("span",{children:s.level})]})]}),e.jsx("p",{className:"text-gray-600 mb-6",children:s.description}),e.jsx("div",{className:"flex items-center justify-between mb-4",children:e.jsxs("span",{className:"text-2xl font-bold text-gray-900",children:["$",s.price]})}),e.jsxs("button",{onClick:()=>r({id:s.id,name:s.title,price:s.price,duration:s.duration}),className:"w-full bg-yellow-600 text-white py-2 px-4 rounded-md hover:bg-yellow-700 transition-colors flex items-center justify-center space-x-2",children:[e.jsx(sc,{className:"h-5 w-5"}),e.jsx("span",{children:"Add to Cart"})]})]},s.id))})]})})}function jA({destinations:t,title:a,description:n}){const[r,s]=M.useState(0),[i,o]=M.useState(!0),l=()=>typeof window<"u"?window.innerWidth<640?1:window.innerWidth<1024?2:4:4,[d,h]=M.useState(l());M.useEffect(()=>{const m=()=>{h(l())};return window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)},[]),M.useEffect(()=>{let m;return i&&(m=setInterval(()=>{s(x=>(x+1)%(t.length-d+1))},5e3)),()=>clearInterval(m)},[i]);const u=()=>{s(m=>Math.max(0,m-1)),o(!1)},p=()=>{s(m=>Math.min(t.length-d,m+1)),o(!1)},y=t.slice(r,r+d);return e.jsx("section",{id:"destinations",className:"py-20",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:n})]}),e.jsxs("div",{className:"mt-16 relative",children:[e.jsx("div",{className:"flex gap-4 md:gap-6 lg:gap-8",children:y.map((m,x)=>e.jsxs("div",{className:"w-full md:w-1/2 lg:w-1/4 relative group overflow-hidden rounded-lg shadow-lg hover:shadow-xl transition-all",children:[e.jsx("img",{src:m.image,alt:m.name,className:"w-full h-64 object-cover group-hover:scale-110 transition-transform duration-300"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 to-transparent",children:e.jsxs("div",{className:"absolute bottom-0 p-6",children:[e.jsxs("div",{className:"flex items-center text-white mb-2",children:[e.jsx(Qe,{className:"h-5 w-5 mr-2"}),e.jsx("h3",{className:"text-lg font-semibold",children:m.name})]}),e.jsx("p",{className:"text-white/90 text-sm",children:m.description})]})})]},r+x))}),e.jsx("button",{onClick:u,disabled:r===0,className:`absolute left-0 top-1/2 -translate-y-1/2 -translate-x-4 bg-white/90 p-2 rounded-full shadow-lg transition-opacity ${r===0?"opacity-50 cursor-not-allowed":"hover:bg-white"}`,children:e.jsx(bn,{className:"h-6 w-6 text-gray-800"})}),e.jsx("button",{onClick:p,disabled:r>=t.length-d,className:`absolute right-0 top-1/2 -translate-y-1/2 translate-x-4 bg-white/90 p-2 rounded-full shadow-lg transition-opacity ${r>=t.length-d?"opacity-50 cursor-not-allowed":"hover:bg-white"}`,children:e.jsx(Mn,{className:"h-6 w-6 text-gray-800"})})]}),e.jsx("div",{className:"flex justify-center mt-8 space-x-2",children:Array.from({length:Math.ceil(t.length/d)}).map((m,x)=>e.jsx("button",{onClick:()=>{s(x*d),o(!1)},className:`w-2 h-2 rounded-full transition-all ${Math.floor(r/d)===x?"bg-yellow-600 w-4":"bg-gray-300 hover:bg-gray-400"}`},x))})]})})}const Vz=[{label:"Destinations",href:"#destinations"},{label:"Courses",href:"#courses"},{label:"Services",href:"#services"}];function Bz({title:t="GlobalEnglish",navItems:a=Vz,ctaLabel:n="Contact Us",ctaHref:r="#contact",brandIcon:s=e.jsx(oa,{className:"h-8 w-8 text-yellow-600"}),defaultOpen:i=!1,isOpen:o,onToggleMenu:l,menuButtonAriaLabel:d="Toggle navigation"}){const[h,u]=M.useState(i),p=o??h,y=()=>{const x=!p;o===void 0&&u(x),l==null||l(x)},m=x=>e.jsx("a",{href:x.href,onClick:x.onClick,className:"text-gray-600 hover:text-yellow-600",children:x.label},x.label);return e.jsxs("nav",{className:"bg-white shadow-lg fixed w-full z-50",children:[e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex justify-between h-16",children:[e.jsxs("div",{className:"flex items-center",children:[s,e.jsx("span",{className:"ml-2 text-xl font-bold text-gray-800",children:t})]}),e.jsxs("div",{className:"hidden md:flex items-center space-x-8",children:[a.map(m),e.jsx("a",{href:r,className:"bg-yellow-600 text-white px-4 py-2 rounded-md hover:bg-yellow-700",children:n})]}),e.jsx("div",{className:"md:hidden flex items-center",children:e.jsx("button",{onClick:y,className:"text-gray-600 hover:text-gray-900 focus:outline-none","aria-label":d,children:p?e.jsx(Ct,{className:"h-6 w-6"}):e.jsx(ac,{className:"h-6 w-6"})})})]})}),p&&e.jsx("div",{className:"md:hidden",children:e.jsxs("div",{className:"px-2 pt-2 pb-3 space-y-1 sm:px-3",children:[a.map(x=>e.jsx("a",{href:x.href,onClick:()=>{var f;(f=x.onClick)==null||f.call(x),y()},className:"block px-3 py-2 text-gray-600 hover:text-yellow-600",children:x.label},x.label)),e.jsx("a",{href:r,className:"block px-3 py-2 text-yellow-600 font-medium",children:n})]})})]})}function CA({title:t,subtitle:a,bg_img:n,main_btn_text:r,main_btn_link:s,secondary_btn_text:i,secondary_btn_link:o}){return e.jsxs("div",{className:"relative bg-yellow-600 h-screen flex items-center justify-center",children:[e.jsx("div",{className:"absolute inset-0",children:e.jsx("img",{src:n,alt:"Students studying",className:"w-full h-full object-cover opacity-20"})}),e.jsxs("div",{className:"relative max-w-7xl mx-auto py-24 px-4 sm:py-32 sm:px-6 lg:px-8",children:[e.jsx("h1",{className:"text-4xl md:text-6xl font-bold text-white mb-8",children:t}),e.jsx("p",{className:"text-xl text-white mb-12 max-w-3xl",children:a}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[s&&r?e.jsxs("a",{href:s,className:"inline-flex items-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-yellow-600 bg-white hover:bg-gray-50",children:[r,e.jsx(yo,{className:"ml-2 h-5 w-5"})]}):"",o&&i?e.jsx("a",{href:o,className:"inline-flex items-center px-8 py-3 border border-white text-base font-medium rounded-md text-white hover:bg-yellow-700",children:i}):""]})]})]})}function SA({title:t,description:a,services:n}){return e.jsx("section",{id:"services",className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:t}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:a})]}),e.jsx("div",{className:"mt-20 grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3",children:n.map((r,s)=>{const i=dS(r.icon);return e.jsxs("div",{className:"relative group bg-white p-6 rounded-lg shadow-md hover:shadow-lg transition-all",children:[e.jsxs("div",{className:"text-yellow-600 mb-4",children:[i?e.jsx(i,{className:"h-8 w-8"}):null," "]}),e.jsx("h3",{className:"text-lg font-medium text-gray-900",children:r.title}),e.jsx("p",{className:"mt-2 text-gray-500",children:r.description})]},s)})})]})})}function NA({testimonials:t,title:a,description:n}){return e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:n})]}),e.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 lg:grid-cols-3",children:t.map((r,s)=>e.jsxs("div",{className:"relative bg-white p-8 rounded-xl shadow-lg",children:[e.jsx("div",{className:"absolute -top-4 -left-4",children:e.jsx(nc,{className:"h-8 w-8 text-yellow-600"})}),e.jsxs("div",{className:"flex items-center mb-6",children:[e.jsx("img",{src:r.image,alt:r.name,className:"h-14 w-14 rounded-full object-cover"}),e.jsxs("div",{className:"ml-4",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:r.name}),e.jsx("p",{className:"text-gray-600",children:r.from})]})]}),e.jsx("p",{className:"text-gray-600 mb-6",children:r.text}),e.jsx("div",{className:"flex text-yellow-400",children:[...Array(r.rating)].map((i,o)=>e.jsx(jt,{className:"h-5 w-5 fill-current"},o))})]},s))})]})})}function LA({videos:t,title:a,description:n}){return e.jsx("section",{className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:n})]}),e.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3",children:t.map((r,s)=>e.jsxs("div",{className:"relative group",children:[e.jsxs("div",{className:"relative overflow-hidden rounded-lg",children:[e.jsx("img",{src:r.thumbnail,alt:r.title,className:"w-full h-64 object-cover group-hover:scale-105 transition-transform duration-300"}),e.jsx("div",{className:"absolute inset-0 bg-black/40 group-hover:bg-black/50 transition-colors",children:e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:e.jsx("button",{className:"bg-white/90 p-4 rounded-full group-hover:bg-white transition-colors",children:e.jsx(Yc,{className:"h-8 w-8 text-yellow-600"})})})}),e.jsx("div",{className:"absolute bottom-4 right-4 bg-black/70 px-2 py-1 rounded text-white text-sm",children:r.duration})]}),e.jsx("h3",{className:"mt-4 text-xl font-semibold text-gray-900",children:r.title}),e.jsx("p",{className:"mt-2 text-gray-600",children:r.description})]},s))})]})})}function IA({features:t,title:a,description:n}){return e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-16",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:n})]}),e.jsx("div",{className:"space-y-24",children:t.map((r,s)=>e.jsxs("div",{className:`flex flex-col gap-8 items-center ${s%2===0?"lg:flex-row":"lg:flex-row-reverse"}`,children:[e.jsx("div",{className:"w-full lg:w-1/2",children:e.jsx("div",{className:"relative h-[400px] overflow-hidden rounded-xl shadow-lg",children:e.jsx("img",{src:r.image,alt:r.imageAlt,className:"absolute inset-0 w-full h-full object-cover"})})}),e.jsxs("div",{className:"w-full lg:w-1/2 lg:px-8",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-4",children:r.title}),e.jsx("p",{className:"text-lg text-gray-600 leading-relaxed",children:r.description}),e.jsx("button",{className:"mt-8 inline-flex items-center px-6 py-3 border border-transparent text-base font-medium rounded-md text-white bg-yellow-600 hover:bg-yellow-700 transition-colors",children:"Learn More"})]})]},s))})]})})}function AA({faqs:t,title:a,description:n}){const[r,s]=M.useState(null),i=o=>{s(l=>l===o?null:o)};return e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-16",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:n})]}),e.jsx("div",{className:"space-y-4",children:t.map((o,l)=>e.jsxs("div",{className:"border border-gray-200 rounded-lg overflow-hidden",children:[e.jsxs("button",{className:"w-full px-6 py-4 flex items-center justify-between bg-white hover:bg-gray-50 transition-colors",onClick:()=>i(l),children:[e.jsx("span",{className:"text-lg font-medium text-gray-900 text-left",children:o.question}),r===l?e.jsx(ec,{className:"h-5 w-5 text-gray-500"}):e.jsx(wn,{className:"h-5 w-5 text-gray-500"})]}),e.jsx("div",{className:`px-6 overflow-hidden transition-all duration-300 ease-in-out ${r===l?"max-h-96 py-4":"max-h-0"}`,children:e.jsx("p",{className:"text-gray-600 leading-relaxed",children:o.answer})})]},l))})]})})}function $z({images:t,autoPlayInterval:a=5e3}){const[n,r]=M.useState(0);M.useEffect(()=>{const l=setInterval(()=>{r(d=>(d+1)%t.length)},a);return()=>clearInterval(l)},[t.length,a]);const s=l=>{r(l)},i=()=>{r(l=>(l-1+t.length)%t.length)},o=()=>{r(l=>(l+1)%t.length)};return e.jsxs("div",{className:"relative w-full h-[600px] group",children:[e.jsx("div",{className:"relative h-full overflow-hidden rounded-xl",children:t.map((l,d)=>e.jsxs("div",{className:`absolute w-full h-full transition-transform duration-500 ease-out ${d===n?"translate-x-0":"translate-x-full"}`,style:{transform:`translateX(${100*(d-n)}%)`},children:[e.jsx("img",{src:l.url,alt:l.alt,className:"absolute w-full h-full object-cover"}),l.caption&&e.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-black/50 text-white p-4",children:e.jsx("p",{className:"text-lg",children:l.caption})})]},d))}),e.jsx("button",{onClick:i,className:"absolute left-4 top-1/2 -translate-y-1/2 bg-white/80 hover:bg-white p-2 rounded-full shadow-lg opacity-0 group-hover:opacity-100 transition-opacity",children:e.jsx(bn,{className:"h-6 w-6 text-gray-800"})}),e.jsx("button",{onClick:o,className:"absolute right-4 top-1/2 -translate-y-1/2 bg-white/80 hover:bg-white p-2 rounded-full shadow-lg opacity-0 group-hover:opacity-100 transition-opacity",children:e.jsx(Mn,{className:"h-6 w-6 text-gray-800"})}),e.jsx("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 flex space-x-2",children:t.map((l,d)=>e.jsx("button",{onClick:()=>s(d),className:`w-2 h-2 rounded-full transition-all ${d===n?"bg-white w-4":"bg-white/50 hover:bg-white/80"}`},d))})]})}function PA({images:t,title:a,description:n,autoPlayInterval:r=5e3}){return e.jsx("section",{className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:n})]}),e.jsx($z,{images:t,autoPlayInterval:r})]})})}function _A({initialMessages:t}){const[a,n]=M.useState(!1),[r,s]=M.useState(t),[i,o]=M.useState(""),l=d=>{if(d.preventDefault(),!i.trim())return;const h={text:i,isBot:!1,timestamp:new Date},u=["I'll help you find the perfect English course for your needs. Could you tell me your current English level?","That's a great question! Our courses are available in multiple locations. Would you like to know more about a specific destination?","We offer flexible course durations ranging from 2 weeks to 12 months. When would you like to start?","I can help you with visa requirements. Which country are you from?"],y={text:u[Math.floor(Math.random()*u.length)],isBot:!0,timestamp:new Date};s(m=>[...m,h,y]),o("")};return e.jsx("div",{className:"fixed bottom-4 right-4 z-50",children:a?e.jsxs("div",{className:"bg-white rounded-lg shadow-xl w-96 max-h-[600px] flex flex-col",children:[e.jsxs("div",{className:"p-4 bg-yellow-600 rounded-t-lg flex justify-between items-center",children:[e.jsxs("div",{className:"flex items-center text-white",children:[e.jsx(qc,{className:"h-6 w-6 mr-2"}),e.jsx("span",{className:"font-medium",children:"GlobalEnglish Assistant"})]}),e.jsx("button",{onClick:()=>n(!1),className:"text-white hover:text-gray-200 transition-colors",children:e.jsx(Ct,{className:"h-5 w-5"})})]}),e.jsx("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:r.map((d,h)=>e.jsx("div",{className:`flex ${d.isBot?"justify-start":"justify-end"}`,children:e.jsxs("div",{className:`max-w-[80%] rounded-lg p-3 ${d.isBot?"bg-gray-100 text-gray-800":"bg-yellow-600 text-white"}`,children:[e.jsx("p",{className:"text-sm",children:d.text}),e.jsx("span",{className:"text-xs opacity-75 mt-1 block",children:d.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]})},h))}),e.jsx("form",{onSubmit:l,className:"p-4 border-t",children:e.jsxs("div",{className:"flex space-x-2",children:[e.jsx("input",{type:"text",value:i,onChange:d=>o(d.target.value),placeholder:"Type your message...",className:"flex-1 border rounded-lg px-4 py-2 focus:outline-none focus:border-yellow-500"}),e.jsx("button",{type:"submit",className:"bg-yellow-600 text-white p-2 rounded-lg hover:bg-yellow-700 transition-colors",children:e.jsx(Kc,{className:"h-5 w-5"})})]})})]}):e.jsx("button",{onClick:()=>n(!0),className:"bg-yellow-600 text-white p-4 rounded-full shadow-lg hover:bg-yellow-700 transition-colors",children:e.jsx(Ln,{className:"h-6 w-6"})})})}function RA({title:t="Your Cart",emptyMessage:a="Your cart is empty",totalLabel:n="Total:",checkoutButtonLabel:r="Proceed to Checkout",currencySymbol:s="$",floatingButtonAriaLabel:i="Toggle cart",onCheckout:o,onToggleCart:l}){const{items:d,isOpen:h,toggleCart:u,removeItem:p,updateQuantity:y,total:m}=bA(),x=()=>{l==null||l(!h),u()};return h?e.jsxs("div",{className:"fixed right-0 top-0 h-full w-96 bg-white shadow-xl z-50 flex flex-col",children:[e.jsxs("div",{className:"p-4 bg-yellow-600 text-white flex justify-between items-center",children:[e.jsx("h2",{className:"text-xl font-semibold",children:t}),e.jsx("button",{onClick:x,className:"text-white hover:text-gray-200 transition-colors","aria-label":i,children:e.jsx(Ct,{className:"h-6 w-6"})})]}),e.jsx("div",{className:"flex-1 overflow-y-auto p-4",children:d.length===0?e.jsx("p",{className:"text-gray-500 text-center mt-8",children:a}):e.jsx("div",{className:"space-y-4",children:d.map(f=>e.jsxs("div",{className:"border rounded-lg p-4 flex flex-col space-y-2",children:[e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-medium",children:f.name}),e.jsx("p",{className:"text-sm text-gray-500",children:f.duration})]}),e.jsx("button",{onClick:()=>p(f.id),className:"text-red-500 hover:text-red-600","aria-label":`Remove ${f.name}`,children:e.jsx(bo,{className:"h-5 w-5"})})]}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("button",{onClick:()=>y(f.id,f.quantity-1),className:"p-1 rounded-md hover:bg-gray-100","aria-label":`Decrease quantity for ${f.name}`,children:e.jsx(Jc,{className:"h-4 w-4"})}),e.jsx("span",{className:"w-8 text-center",children:f.quantity}),e.jsx("button",{onClick:()=>y(f.id,f.quantity+1),className:"p-1 rounded-md hover:bg-gray-100","aria-label":`Increase quantity for ${f.name}`,children:e.jsx(la,{className:"h-4 w-4"})})]}),e.jsxs("p",{className:"font-medium",children:[s,(f.price*f.quantity).toFixed(2)]})]})]},f.id))})}),e.jsxs("div",{className:"border-t p-4 bg-gray-50",children:[e.jsxs("div",{className:"flex justify-between items-center mb-4",children:[e.jsx("span",{className:"font-medium",children:n}),e.jsxs("span",{className:"text-xl font-bold",children:[s,m.toFixed(2)]})]}),e.jsx("button",{className:"w-full bg-yellow-600 text-white py-3 px-4 rounded-lg hover:bg-yellow-700 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",disabled:d.length===0,onClick:o,children:r})]})]}):e.jsx("button",{onClick:x,"aria-label":i,className:"fixed bottom-20 right-4 z-40 bg-yellow-600 text-white p-4 rounded-full shadow-lg hover:bg-yellow-700 transition-colors",children:e.jsxs("div",{className:"relative",children:[e.jsx(sc,{className:"h-6 w-6"}),d.length>0&&e.jsx("span",{className:"absolute -top-2 -right-2 bg-red-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center",children:d.length})]})})}function TA({services:t,title:a,description:n,showBtn:r="Show",hideBtn:s="Hide",featuresBtn:i="Features"}){const[o,l]=M.useState(null),d=h=>{l(o===h?null:h)};return e.jsx("section",{id:"services",className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:n})]}),e.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 lg:grid-cols-2",children:t.map((h,u)=>e.jsx("div",{className:"bg-white rounded-lg shadow-md overflow-hidden transition-all duration-300",children:e.jsxs("div",{className:"p-6",children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-3",children:h.title}),e.jsx("p",{className:"text-gray-600 mb-4",children:h.shortDescription}),e.jsx("div",{className:`transition-all duration-300 overflow-hidden ${o===u?"max-h-[500px]":"max-h-0"}`,children:e.jsxs("div",{className:"mt-4 space-y-4",children:[e.jsx("p",{className:"text-gray-700",children:h.fullDescription}),e.jsxs("div",{className:"border-t pt-4",children:[e.jsx("h4",{className:"font-medium text-gray-900 mb-2",children:i}),e.jsx("ul",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:h.features.map((p,y)=>e.jsxs("li",{className:"text-gray-600",children:["• ",p]},y))})]})]})}),e.jsx("button",{onClick:()=>d(u),className:"mt-4 text-yellow-600 hover:text-yellow-700 font-medium focus:outline-none",children:o===u?s:r})]})},u))})]})})}function DA({courses:t=[],title:a="Available Courses",description:n="Choose the best course for you.",priceLabel:r="From",currencySymbol:s="€",perDurationLabel:i="/week",reviewsText:o="reviews"}){const l=d=>{const h=d/10*5,u=Math.floor(h),p=h%1,y=5-Math.ceil(h);return e.jsxs("div",{className:"flex items-center",children:[[...Array(u)].map((m,x)=>e.jsx(jt,{className:"w-5 h-5 text-yellow-400 fill-current"},`full-${x}`)),p>0&&e.jsxs("div",{className:"relative w-5 h-5",children:[e.jsx(jt,{className:"absolute w-5 h-5 text-gray-300 fill-current"}),e.jsx("div",{className:"absolute overflow-hidden",style:{width:`${p*100}%`},children:e.jsx(jt,{className:"w-5 h-5 text-yellow-400 fill-current"})})]}),[...Array(y)].map((m,x)=>e.jsx(jt,{className:"w-5 h-5 text-gray-300"},`empty-${x}`))]})};return e.jsx("section",{className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-16",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:n})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:t.map((d,h)=>e.jsxs("div",{className:"bg-white rounded-xl p-8 shadow-sm hover:shadow-md transition-shadow flex flex-col h-full",children:[e.jsxs("div",{className:"flex-grow",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:d.title}),e.jsxs("div",{className:"flex items-center mb-4",children:[l(d.rating),e.jsxs("span",{className:"ml-2 text-gray-600",children:[d.rating,"/10 (",d.reviews," ",o,")"]})]}),e.jsxs("div",{className:"mb-4",children:[e.jsxs("span",{className:"text-2xl font-bold text-gray-900",children:[r," ",d.pricePerWeek,s]}),e.jsxs("span",{className:"text-gray-600",children:["/",i]})]}),e.jsx("p",{className:"text-gray-600 mb-6",children:d.description}),e.jsx("div",{className:"space-y-4",children:d.features.map((u,p)=>{const y=dS(u.icon);return e.jsxs("div",{className:"flex items-center text-gray-700",children:[y?e.jsx(y,{className:"w-5 h-5"}):null,e.jsx("span",{className:"ml-3",children:u.text})]},p)})})]}),d.ctaLink&&d.ctaText?e.jsx("div",{className:"mt-8",children:e.jsx("a",{href:d.ctaLink,className:"w-full bg-black text-white py-3 px-6 rounded-lg hover:bg-gray-800 transition-colors",children:d.ctaText})}):""]},h))})]})})}const Uz=[{title:"Asistencia con el Visado",shortDescription:"Orientación experta durante todo el proceso de solicitud de visado para tu experiencia de estudio en el extranjero.",fullDescription:"Nuestro equipo dedicado a soporte de visados ofrece asistencia integral durante todo el proceso de solicitud. Te ayudamos a comprender los requisitos, preparar la documentación y asegurarnos de que tu solicitud cumpla con todos los criterios necesarios.",features:["Preparación y verificación de documentos","Asistencia con el formulario de solicitud","Orientación para la preparación de entrevistas","Consulta sobre los requisitos del visado","Soporte de seguimiento","Asistencia de emergencia"]},{title:"Servicios de Alojamiento",shortDescription:"Encuentra tu hogar perfecto lejos de casa con nuestras opciones de alojamiento cuidadosamente seleccionadas.",fullDescription:"Ofrecemos una amplia variedad de opciones de alojamiento previamente inspeccionadas para adaptarse a cada preferencia y presupuesto. Nuestro equipo de vivienda inspecciona personalmente todas las propiedades para garantizar que cumplan con nuestros estándares de calidad.",features:["Alojamiento en familia local","Residencias estudiantiles","Apartamentos compartidos","Estudios privados","Opciones a corto y largo plazo","Todos los servicios incluidos"]},{title:"Selección en Cursos de Idiomas",shortDescription:"Selección de cursos personalizada para adaptarse a tus objetivos de aprendizaje y nivel de competencia actual.",fullDescription:"Nuestros asesores académicos trabajan contigo para crear un plan de estudio personalizado basado en tus metas, horario y nivel actual de inglés. Nos aseguramos de que estés en el curso adecuado para maximizar tu potencial de aprendizaje.",features:["Evaluación de nivel gratuita","Planes de estudio personalizados","Monitoreo regular del progreso","Opciones de horario flexibles","Cursos especializados disponibles","Preparación para certificaciones"]},{title:"Seguro para Estudiantes",shortDescription:"Cobertura de seguro integral para una experiencia de estudio sin preocupaciones en el extranjero.",fullDescription:"Colaboramos con proveedores de seguros líderes para ofrecer coberturas integrales diseñadas específicamente para estudiantes internacionales. Nuestros paquetes incluyen protección de salud, viajes y bienes personales.",features:["Cobertura de seguro médico","Seguro de viajes","Protección de bienes personales","Asistencia de emergencia","Línea de soporte 24/7","Facturación directa con hospitales"]},{title:"Programa de Integración Cultural",shortDescription:"Sumérgete en la cultura local con actividades y eventos organizados.",fullDescription:"Nuestro programa de integración cultural te ayuda a adaptarte a tu nuevo entorno y a aprovechar al máximo tu experiencia de estudio en el extranjero. Organizamos actividades regulares, eventos y excursiones para que explores y comprendas la cultura local.",features:["Actividades sociales semanales","Talleres culturales","Sistema de compañeros locales","Eventos de intercambio de idiomas","Recorridos por la ciudad y excursiones","Celebraciones de festivales"]},{title:"Soporte para el Desarrollo Profesional",shortDescription:"Mejora tus perspectivas profesionales con nuestros servicios integrales de desarrollo profesional.",fullDescription:"Nuestro equipo de desarrollo profesional brinda orientación y apoyo para ayudarte a alcanzar tus metas laborales. Desde la redacción de CV hasta la preparación para entrevistas, te ayudamos a prepararte para tu carrera futura.",features:["Redacción de CV y cartas de presentación","Preparación para entrevistas","Asistencia en la búsqueda de empleo","Eventos de networking","Talleres de la industria","Colocación en prácticas profesionales"]}],Gz=[{icon:"Plane",title:"Visa Assistance",description:"Complete support with visa applications and documentation."},{icon:"Home",title:"Accommodation",description:"Find the perfect place to stay with our accommodation services."},{icon:"BookOpen",title:"Language Courses",description:"Comprehensive English courses for all levels."},{icon:"Shield",title:"Travel Insurance",description:"Stay protected with our travel insurance packages."},{icon:"Map",title:"Local Activities",description:"Explore the local culture with organized activities."},{icon:"Briefcase",title:"Job Opportunities",description:"Access to job markets and career guidance."}],Wz=[{title:"Learn in World-Class Facilities",description:"Our modern campuses are equipped with state-of-the-art technology and comfortable learning spaces. Each classroom is designed to facilitate interactive learning with smart boards, multimedia equipment, and flexible seating arrangements. Students also have access to self-study areas, a library with extensive English learning resources, and comfortable student lounges.",image:"https://images.unsplash.com/photo-1592280771190-3e2e4d571952?auto=format&fit=crop&q=80",imageAlt:"Modern classroom facility"},{title:"Cultural Immersion Programs",description:"Go beyond traditional language learning with our immersive cultural programs. Participate in local events, join conversation clubs with native speakers, and engage in cultural workshops. Our programs include guided city tours, cooking classes featuring local cuisine, and regular social activities where you can practice English in real-world situations.",image:"https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&q=80",imageAlt:"Students engaging in cultural activities"},{title:"Career Development Support",description:"Launch your international career with our comprehensive career support services. We offer professional development workshops, CV writing assistance, and interview preparation in English. Our partnerships with local businesses provide internship opportunities, and our career counselors help you navigate the job market in English-speaking countries.",image:"https://images.unsplash.com/photo-1552581234-26160f608093?auto=format&fit=crop&q=80",imageAlt:"Career counseling session"}],Zz=[{icon:"Users",title:"Small Class Sizes",description:"Maximum of 12 students per class ensures personalized attention"},{icon:"Trophy",title:"Certified Teachers",description:"Native speakers with CELTA/DELTA qualifications"},{icon:"Calendar",title:"Flexible Schedule",description:"Morning, afternoon, and evening classes available"},{icon:"GraduationCap",title:"Recognized Certificates",description:"Internationally recognized certifications upon completion"},{icon:"Globe2",title:"Cultural Exchange",description:"Regular events and activities with international students"},{icon:"CheckCircle",title:"Job Support",description:"CV workshops and job placement assistance"}],Jz=[{url:"https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&q=80",alt:"Students studying together",caption:"Collaborative learning environment"},{url:"https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&q=80",alt:"Modern campus library",caption:"State-of-the-art study facilities"},{url:"https://images.unsplash.com/photo-1524178232363-1fb2b075b655?auto=format&fit=crop&q=80",alt:"Student accommodation",caption:"Comfortable student residences"},{url:"https://images.unsplash.com/photo-1517486808906-6ca8b3f04846?auto=format&fit=crop&q=80",alt:"Group activity",caption:"Engaging extracurricular activities"},{url:"https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&q=80",alt:"Student life",caption:"Vibrant campus community"}],Xz=[{name:"London, UK",image:"https://images.unsplash.com/photo-1513635269975-59663e0ac1ad?auto=format&fit=crop&q=80",description:"Study English in the heart of the UK with access to world-class institutions."},{name:"New York, USA",image:"https://images.unsplash.com/photo-1496442226666-8d4d0e62e6e9?auto=format&fit=crop&q=80",description:"Experience American English while living in the most vibrant city in the world."},{name:"Sydney, Australia",image:"https://images.unsplash.com/photo-1506973035872-a4ec16b8e8d9?auto=format&fit=crop&q=80",description:"Combine English studies with an amazing lifestyle in beautiful Sydney."},{name:"Toronto, Canada",image:"https://images.unsplash.com/photo-1517935706615-2717063c2225?auto=format&fit=crop&q=80",description:"Study in one of the most multicultural cities with excellent quality of life."},{name:"Dublin, Ireland",image:"https://images.unsplash.com/photo-1590089415225-401ed6f9db8e?auto=format&fit=crop&q=80",description:"Experience Irish hospitality while studying in this historic and vibrant city."},{name:"Vancouver, Canada",image:"https://images.unsplash.com/photo-1559511260-66a654ae982a?auto=format&fit=crop&q=80",description:"Study surrounded by stunning nature and a high quality of life."},{name:"Melbourne, Australia",image:"https://images.unsplash.com/photo-1514395462725-fb4566210144?auto=format&fit=crop&q=80",description:"Join the world's most liveable city with excellent educational opportunities."},{name:"Edinburgh, UK",image:"https://images.unsplash.com/photo-1506377585622-bedcbb027afc?auto=format&fit=crop&q=80",description:"Study in Scotland's historic capital surrounded by stunning architecture."},{name:"San Francisco, USA",image:"https://images.unsplash.com/photo-1501594907352-04cda38ebc29?auto=format&fit=crop&q=80",description:"Learn English in the tech capital of the world."},{name:"Auckland, New Zealand",image:"https://images.unsplash.com/photo-1507699622108-4be3abd695ad?auto=format&fit=crop&q=80",description:"Study in New Zealand's largest city surrounded by natural beauty."},{name:"Manchester, UK",image:"https://images.unsplash.com/photo-1519677100203-a0e668c92439?auto=format&fit=crop&q=80",description:"Experience northern English culture in this vibrant student city."},{name:"Boston, USA",image:"https://images.unsplash.com/photo-1501979376754-f1e8d89c7fe0?auto=format&fit=crop&q=80",description:"Study in America's premier educational hub."},{name:"Brisbane, Australia",image:"https://images.unsplash.com/photo-1452859030917-45a0de82ef4c?auto=format&fit=crop&q=80",description:"Enjoy subtropical climate while studying in this growing city."},{name:"Montreal, Canada",image:"https://images.unsplash.com/photo-1519178614-68673b201f36?auto=format&fit=crop&q=80",description:"Experience bilingual culture in this historic Canadian city."},{name:"Oxford, UK",image:"https://images.unsplash.com/photo-1590510616176-67c87a688639?auto=format&fit=crop&q=80",description:"Study in one of the world's most prestigious academic cities."},{name:"Seattle, USA",image:"https://images.unsplash.com/photo-1502175353174-a7a70e73b362?auto=format&fit=crop&q=80",description:"Learn English in the innovative Pacific Northwest."},{name:"Perth, Australia",image:"https://images.unsplash.com/photo-1573935448851-e0a5d7507f4e?auto=format&fit=crop&q=80",description:"Study in Australia's sunniest capital city."},{name:"Cambridge, UK",image:"https://images.unsplash.com/photo-1579619002916-88cd4c81a70c?auto=format&fit=crop&q=80",description:"Experience academic excellence in this historic university city."},{name:"Wellington, New Zealand",image:"https://images.unsplash.com/photo-1589871973318-9ca1258faa5d?auto=format&fit=crop&q=80",description:"Study in New Zealand's cultural capital."},{name:"Chicago, USA",image:"https://images.unsplash.com/photo-1494522855154-9297ac14b55f?auto=format&fit=crop&q=80",description:"Experience American culture in the heart of the Midwest."}],Yz=[{id:"1",title:"Intensive English",type:"in-person",duration:"4-12 weeks",level:"All levels",description:"Accelerated learning with focused daily classes.",price:1299},{id:"2",title:"Business English",type:"in-person",duration:"8-16 weeks",level:"Intermediate to Advanced",description:"Specialized English for professional environments.",price:1599},{id:"3",title:"Online Live Classes",type:"online",duration:"Flexible",level:"All levels",description:"Interactive online classes with expert teachers.",price:799},{id:"4",title:"IELTS Preparation",type:"in-person",duration:"12 weeks",level:"Intermediate to Advanced",description:"Comprehensive preparation for IELTS exam.",price:1499}],Kz=[{thumbnail:"https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&q=80",title:"Campus Life in London",duration:"3:45",description:"Experience a day in the life of our London students"},{thumbnail:"https://images.unsplash.com/photo-1571260899304-425eee4c7efc?auto=format&fit=crop&q=80",title:"Student Success Stories",duration:"5:20",description:"See how our students achieved their English learning goals"},{thumbnail:"https://images.unsplash.com/photo-1517486808906-6ca8b3f04846?auto=format&fit=crop&q=80",title:"Virtual Campus Tour",duration:"4:15",description:"Take a tour of our modern facilities and classrooms"}],Qz=[{name:"Sarah Chen",from:"Singapore",image:"https://images.unsplash.com/photo-1494790108377-be9c29b29330?auto=format&fit=crop&q=80",text:"The support I received from GlobalEnglish was exceptional. From visa assistance to finding accommodation, everything was handled professionally.",rating:5},{name:"Carlos Rodriguez",from:"Spain",image:"https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?auto=format&fit=crop&q=80",text:"The Business English course helped me secure a job at an international company. The teachers were experienced and the course material was practical.",rating:5},{name:"Maria Kowalski",from:"Poland",image:"https://images.unsplash.com/photo-1438761681033-6461ffad8d80?auto=format&fit=crop&q=80",text:"Studying in London through GlobalEnglish was a life-changing experience. The cultural immersion and quality of education exceeded my expectations.",rating:5}],eE=[{text:"👋 Hi! I'm here to help you with any questions about our English courses. How can I assist you today?",isBot:!0,timestamp:new Date}],tE=[{question:"What visa requirements are needed to study English abroad?",answer:"Requirements vary by destination. Generally, you'll need: a valid passport, proof of enrollment in an accredited language school, proof of sufficient funds (usually 3-6 months of living expenses), and health insurance. We provide comprehensive visa assistance to ensure a smooth application process."},{question:"How long are the English courses?",answer:"We offer flexible course durations ranging from 2 weeks to 12 months. Intensive courses typically run for 4-12 weeks, while standard courses can be taken for any duration. Business English and exam preparation courses usually require a minimum commitment of 8-12 weeks for optimal results."},{question:"What accommodation options are available?",answer:"We offer various accommodation options including: homestays with local families, student residences, shared apartments, and private studios. All options are carefully vetted and located within easy reach of our schools. Homestays are particularly popular for full language immersion."},{question:"Can I work while studying?",answer:"Work possibilities depend on your visa type and destination country. Many student visas allow part-time work (usually 20 hours per week). Our student services team can provide detailed information about work rights and help with job searching in your chosen destination."},{question:"What level of English do I need to start?",answer:"We accept students at all levels, from complete beginners to advanced speakers. Before starting, you'll take a placement test to ensure you're placed in the appropriate level. Our courses follow the Common European Framework of Reference (CEFR) from A1 to C2 levels."}],aE=[{title:"General English",rating:9.5,reviews:226,pricePerWeek:95,description:"Learn English at your own pace while making the most of your stay in Malta.",features:[{icon:"Clock",text:"20 classes of 45 min per week"},{icon:"Calendar",text:"You choose the number of weeks"},{icon:"Users",text:"15 students maximum per class"},{icon:"LineChart",text:"All levels"},{icon:"User",text:"From 16 to 99 years"}]},{title:"Intensive English",rating:9.2,reviews:229,pricePerWeek:189,description:"For those who want to learn faster. Combine exclusive Speaking classes with your General English course.",features:[{icon:"Clock",text:"30 classes of 45 min per week"},{icon:"Calendar",text:"You choose the number of weeks"},{icon:"Users",text:"15 students maximum per class"},{icon:"LineChart",text:"All levels"},{icon:"User",text:"From 16 to 99 years"}]},{title:"English 30+",rating:9.5,reviews:190,pricePerWeek:180,description:"For those who want to study with people of a similar age.",features:[{icon:"Clock",text:"20 or 30 classes per week"},{icon:"Calendar",text:"You choose the duration"},{icon:"Users",text:"15 students maximum per class"},{icon:"LineChart",text:"All levels"},{icon:"User",text:"From 30 years onwards"}]},{title:"Business English",rating:9.2,reviews:195,pricePerWeek:190,description:"For those looking to boost their professional career and access job opportunities worldwide.",features:[{icon:"Clock",text:"10, 20 or 30 classes per week"},{icon:"Calendar",text:"You choose the duration"},{icon:"Users",text:"Reduced groups"},{icon:"LineChart",text:"B1 level or higher"},{icon:"User",text:"From 18 years"}]}],nE=()=>(M.useEffect(()=>{kA.fromTo(".animated-text",{opacity:0,y:30},{opacity:1,y:0,duration:1,stagger:.2})},[]),e.jsxs("div",{className:"relative min-h-screen flex flex-col bg-gray-50",children:[e.jsx(Hz,{children:e.jsxs("div",{className:"min-h-screen bg-white",children:[e.jsx(Bz,{}),e.jsx(CA,{title:"Estudia inglés en Malta: Vive, Aprende trabaja y Crece",subtitle:"Tu aventura comienza aquí: Te ayudamos con visado, viaje, estadía, trabajo y más para que aprendas inglés en Malta.",bg_img:"https://maltalovers.com/wp-content/uploads/2017/05/cropped-Valletta2-2.jpg",main_btn_text:"Explore Courses",main_btn_link:"#courses",secondary_btn_text:"View Destinations",secondary_btn_link:"#destinations"}),e.jsx(SA,{services:Gz,title:"Nuestro Servicios",description:"Todo lo que necesitas para aprender inglés en el menor tiempo y al mejor costo"}),e.jsx(TA,{services:Uz,title:"Why Choose GlobalEnglish?",description:"Discover what sets us apart from other language schools"}),e.jsx(vA,{advantages:Zz,title:"Why Choose GlobalEnglish?",description:"Discover what sets us apart from other language schools"}),e.jsx(IA,{features:Wz,title:"Titulo",description:"description"}),e.jsx(DA,{courses:aE,title:"Test",description:"test"}),e.jsx(PA,{images:Jz,autoPlayInterval:5e3,title:"Campus Life Gallery",description:"Take a visual tour of our facilities and student activities"}),e.jsx(jA,{destinations:Xz,title:"Popular Destinations",description:"Choose from our carefully selected locations worldwide"}),e.jsx(MA,{courses:Yz,title:"Our Courses",description:"Find the perfect course to match your goals"}),e.jsx(LA,{videos:Kz,title:"Our Courses",description:"Find the perfect course to match your goals"}),e.jsx(NA,{testimonials:Qz,title:"Our Courses",description:"Find the perfect course to match your goals"}),e.jsx(AA,{faqs:tE,title:"Our Courses",description:"Find the perfect course to match your goals"}),e.jsx(Oz,{}),e.jsx(_A,{initialMessages:eE}),e.jsx(RA,{})]})}),e.jsx("footer",{className:"bg-gray-800 text-white py-8",children:e.jsxs("div",{className:"max-w-7xl mx-auto text-center space-y-4",children:[e.jsx("p",{className:"text-sm",children:"© 2024 Learn English. All Rights Reserved."}),e.jsxs("nav",{className:"flex justify-center space-x-6",children:[e.jsx("a",{href:"#home",className:"hover:text-yellow-400",children:"Home"}),e.jsx("a",{href:"#courses",className:"hover:text-yellow-400",children:"Courses"}),e.jsx("a",{href:"#contact",className:"hover:text-yellow-400",children:"Contact Us"})]})]})})]}));function rE({title:t,icon:a,jobs:n,viewAllText:r,viewAllHref:s,apiUrl:i}){const[o,l]=M.useState(n||[]),[d,h]=M.useState(!n),[u,p]=M.useState(null);M.useEffect(()=>{if(n)return;(async()=>{h(!0),p(null);try{const f=await fetch(i||"/api/featured-jobs");if(!f.ok)throw new Error(`Failed to fetch jobs: ${f.status}`);const v=await f.json();if(!Array.isArray(v))throw new Error("Expected an array of jobs");l(v)}catch(x){console.error("Error fetching jobs:",x),p(x instanceof Error?x.message:"Failed to load jobs"),l(y())}finally{h(!1)}})()},[n,i]);const y=()=>{const m=["Bet365","Entain","Flutter","DraftKings","Pinnacle"],x=["Game Developer","CRM Manager","VIP Account Manager","Compliance Specialist","UX Designer"],f=["Malta","London","Gibraltar","Remote","New York"];return Array.from({length:6},(v,k)=>({id:`mock-job-${k}`,title:x[k%x.length],company:m[k%m.length],companyLogo:`/logos/${m[k%m.length].toLowerCase()}.png`,location:f[k%f.length],salary:`€${Math.floor(Math.random()*30)+40},000`}))};return d?e.jsx("section",{className:"py-16 bg-white",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[...Array(3)].map((m,x)=>e.jsxs("div",{className:"border border-gray-200 rounded-lg p-6 animate-pulse",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-gray-200 rounded"}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"h-4 bg-gray-200 rounded w-3/4"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-1/2"})]})]}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-1/2 mb-4"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-1/4 mb-4"}),e.jsx("div",{className:"h-10 bg-gray-200 rounded"})]},x))})})}):u&&o.length===0?e.jsx("section",{className:"py-16 bg-white",children:e.jsx("div",{className:"container mx-auto px-4 text-center",children:e.jsxs("div",{className:"bg-red-50 border border-red-200 text-red-800 rounded-lg p-6 inline-block",children:[e.jsx("p",{children:u}),e.jsx(T,{variant:"outline",className:"mt-4 border-red-300 text-red-800",onClick:()=>window.location.reload(),children:"Try Again"})]})})}):e.jsx("section",{className:"py-16 bg-white",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[a&&e.jsx("div",{children:a}),e.jsx("h2",{className:"text-2xl font-bold",children:t})]}),o.length>0?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:o.map(m=>e.jsxs("div",{className:"border border-gray-200 rounded-lg p-6 hover:shadow-md transition-shadow",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-gray-100 rounded flex items-center justify-center",children:e.jsx("img",{src:m.companyLogo||"/placeholder.svg",alt:`${m.company} logo`,width:48,height:48,className:"rounded",onError:x=>{x.target.src="/placeholder.svg"}})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold",children:m.title}),e.jsx("p",{className:"text-gray-600 text-sm",children:m.company})]})]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600 mb-2",children:[e.jsx(Qe,{size:16}),e.jsx("span",{children:m.location})]}),e.jsx("div",{className:"text-green-600 font-medium mb-4",children:m.salary}),e.jsx(T,{className:"w-full bg-[#0f1219] hover:bg-[#1a2236]",children:"Apply Now"})]},m.id))}),e.jsx("div",{className:"mt-8 text-center",children:e.jsx(T,{variant:"outline",className:"border-[#0f1219] text-[#0f1219] hover:bg-[#0f1219] hover:text-white",onClick:()=>window.location.href=s,children:r})})]}):e.jsx("div",{className:"text-center py-8",children:e.jsx("p",{className:"text-gray-500",children:"No featured jobs available at the moment."})})]})})}function qA({title:t,description:a,primaryButtonText:n,primaryButtonHref:r,secondaryButtonText:s,secondaryButtonHref:i}){return e.jsx("section",{className:"py-16 bg-gradient-to-r from-[#1a2236] to-[#0f1219] text-white",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[e.jsx("h2",{className:"text-3xl font-bold mb-4",children:t}),e.jsx("p",{className:"text-xl text-gray-300 mb-8",children:a}),e.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[e.jsx(T,{className:"bg-yellow-500 hover:bg-yellow-400 text-black font-medium px-6 py-2 rounded",onClick:()=>window.location.href=r,children:n}),e.jsx(T,{variant:"outline",className:"bg-transparent border-white hover:bg-white/10 text-white font-medium px-6 py-2 rounded",onClick:()=>window.location.href=i,children:s})]})]})})})}function zA({title:t,subtitle:a,backgroundImage:n="/placeholder.svg?height=800&width=1600",primaryButtonText:r,primaryButtonLink:s="#",secondaryButtonText:i,secondaryButtonLink:o="#"}){return e.jsx("section",{className:"py-16 bg-gradient-to-r from-[#0f1219] to-[#1a2236] text-white relative overflow-hidden",children:e.jsx("div",{className:"container mx-auto px-4 relative z-10",children:e.jsx("div",{className:"relative z-10 container mx-auto px-4 text-center",children:e.jsxs("div",{className:"max-w-4xl mx-auto animate-fade-in",children:[e.jsxs("h1",{className:"text-4xl md:text-6xl font-bold text-primary-foreground mb-6 leading-tight",children:[t," ",e.jsx("span",{className:"bg-gradient-accent bg-clip-text text-transparent",children:"iGaming"})]}),e.jsx("p",{className:"text-xl md:text-2xl text-primary-foreground/80 mb-8 leading-relaxed",children:a}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center items-center animate-slide-in",children:[e.jsxs("a",{href:s,className:`justify-center whitespace-nowrap text-sm transition-colors
7741
+ */var vN,kn,cc,iS,mo,wN,oS,gz=function(){return typeof window<"u"},Ka={},uo=180/Math.PI,lc=Math.PI/180,$o=Math.atan2,bN=1e8,cS=/([A-Z])/g,kz=/(left|right|width|margin|padding|x)/i,vz=/[\s,\(]\S/,La={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},kC=function(a,n){return n.set(n.t,n.p,Math.round((n.s+n.c*a)*1e4)/1e4+n.u,n)},wz=function(a,n){return n.set(n.t,n.p,a===1?n.e:Math.round((n.s+n.c*a)*1e4)/1e4+n.u,n)},bz=function(a,n){return n.set(n.t,n.p,a?Math.round((n.s+n.c*a)*1e4)/1e4+n.u:n.b,n)},Mz=function(a,n){var r=n.s+n.c*a;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},cA=function(a,n){return n.set(n.t,n.p,a?n.e:n.b,n)},lA=function(a,n){return n.set(n.t,n.p,a!==1?n.b:n.e,n)},jz=function(a,n,r){return a.style[n]=r},Cz=function(a,n,r){return a.style.setProperty(n,r)},Sz=function(a,n,r){return a._gsap[n]=r},Nz=function(a,n,r){return a._gsap.scaleX=a._gsap.scaleY=r},Lz=function(a,n,r,s,i){var o=a._gsap;o.scaleX=o.scaleY=r,o.renderTransform(i,o)},Iz=function(a,n,r,s,i){var o=a._gsap;o[n]=r,o.renderTransform(i,o)},Be="transform",qt=Be+"Origin",Az=function t(a,n){var r=this,s=this.target,i=s.style,o=s._gsap;if(a in Ka&&i){if(this.tfm=this.tfm||{},a!=="transform")a=La[a]||a,~a.indexOf(",")?a.split(",").forEach(function(l){return r.tfm[l]=Za(s,l)}):this.tfm[a]=o.x?o[a]:Za(s,a),a===qt&&(this.tfm.zOrigin=o.zOrigin);else return La.transform.split(",").forEach(function(l){return t.call(r,l,n)});if(this.props.indexOf(Be)>=0)return;o.svg&&(this.svgo=s.getAttribute("data-svg-origin"),this.props.push(qt,n,"")),a=Be}(i||n)&&this.props.push(a,n,i[a])},dA=function(a){a.translate&&(a.removeProperty("translate"),a.removeProperty("scale"),a.removeProperty("rotate"))},Pz=function(){var a=this.props,n=this.target,r=n.style,s=n._gsap,i,o;for(i=0;i<a.length;i+=3)a[i+1]?n[a[i]]=a[i+2]:a[i+2]?r[a[i]]=a[i+2]:r.removeProperty(a[i].substr(0,2)==="--"?a[i]:a[i].replace(cS,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)s[o]=this.tfm[o];s.svg&&(s.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),i=oS(),(!i||!i.isStart)&&!r[Be]&&(dA(r),s.zOrigin&&r[qt]&&(r[qt]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},hA=function(a,n){var r={target:a,props:[],revert:Pz,save:Az};return a._gsap||zt.core.getCache(a),n&&n.split(",").forEach(function(s){return r.save(s)}),r},uA,vC=function(a,n){var r=kn.createElementNS?kn.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),a):kn.createElement(a);return r&&r.style?r:kn.createElement(a)},_a=function t(a,n,r){var s=getComputedStyle(a);return s[n]||s.getPropertyValue(n.replace(cS,"-$1").toLowerCase())||s.getPropertyValue(n)||!r&&t(a,xc(n)||n,1)||""},MN="O,Moz,ms,Ms,Webkit".split(","),xc=function(a,n,r){var s=n||mo,i=s.style,o=5;if(a in i&&!r)return a;for(a=a.charAt(0).toUpperCase()+a.substr(1);o--&&!(MN[o]+a in i););return o<0?null:(o===3?"ms":o>=0?MN[o]:"")+a},wC=function(){gz()&&window.document&&(vN=window,kn=vN.document,cc=kn.documentElement,mo=vC("div")||{style:{}},vC("div"),Be=xc(Be),qt=Be+"Origin",mo.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",uA=!!xc("perspective"),oS=zt.core.reverting,iS=1)},P9=function t(a){var n=vC("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,s=this.nextSibling,i=this.style.cssText,o;if(cc.appendChild(n),n.appendChild(this),this.style.display="block",a)try{o=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch{}else this._gsapBBox&&(o=this._gsapBBox());return r&&(s?r.insertBefore(this,s):r.appendChild(this)),cc.removeChild(n),this.style.cssText=i,o},jN=function(a,n){for(var r=n.length;r--;)if(a.hasAttribute(n[r]))return a.getAttribute(n[r])},pA=function(a){var n;try{n=a.getBBox()}catch{n=P9.call(a,!0)}return n&&(n.width||n.height)||a.getBBox===P9||(n=P9.call(a,!0)),n&&!n.width&&!n.x&&!n.y?{x:+jN(a,["x","cx","x1"])||0,y:+jN(a,["y","cy","y1"])||0,width:0,height:0}:n},mA=function(a){return!!(a.getCTM&&(!a.parentNode||a.ownerSVGElement)&&pA(a))},Ao=function(a,n){if(n){var r=a.style,s;n in Ka&&n!==qt&&(n=Be),r.removeProperty?(s=n.substr(0,2),(s==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(s==="--"?n:n.replace(cS,"-$1").toLowerCase())):r.removeAttribute(n)}},vn=function(a,n,r,s,i,o){var l=new Dt(a._pt,n,r,0,1,o?lA:cA);return a._pt=l,l.b=s,l.e=i,a._props.push(r),l},CN={deg:1,rad:1,turn:1},_z={grid:1,flex:1},zn=function t(a,n,r,s){var i=parseFloat(r)||0,o=(r+"").trim().substr((i+"").length)||"px",l=mo.style,d=kz.test(n),h=a.tagName.toLowerCase()==="svg",u=(h?"client":"offset")+(d?"Width":"Height"),p=100,y=s==="px",m=s==="%",x,f,v,k;if(s===o||!i||CN[s]||CN[o])return i;if(o!=="px"&&!y&&(i=t(a,n,r,"px")),k=a.getCTM&&mA(a),(m||o==="%")&&(Ka[n]||~n.indexOf("adius")))return x=k?a.getBBox()[d?"width":"height"]:a[u],Je(m?i/x*p:i/100*x);if(l[d?"width":"height"]=p+(y?o:s),f=~n.indexOf("adius")||s==="em"&&a.appendChild&&!h?a:a.parentNode,k&&(f=(a.ownerSVGElement||{}).parentNode),(!f||f===kn||!f.appendChild)&&(f=kn.body),v=f._gsap,v&&m&&v.width&&d&&v.time===$t.time&&!v.uncache)return Je(i/v.width*p);if(m&&(n==="height"||n==="width")){var w=a.style[n];a.style[n]=p+s,x=a[u],w?a.style[n]=w:Ao(a,n)}else(m||o==="%")&&!_z[_a(f,"display")]&&(l.position=_a(a,"position")),f===a&&(l.position="static"),f.appendChild(mo),x=mo[u],f.removeChild(mo),l.position="absolute";return d&&m&&(v=jo(f),v.time=$t.time,v.width=f[u]),Je(y?x*i/p:x&&i?p/x*i:0)},Za=function(a,n,r,s){var i;return iS||wC(),n in La&&n!=="transform"&&(n=La[n],~n.indexOf(",")&&(n=n.split(",")[0])),Ka[n]&&n!=="transform"?(i=yl(a,s),i=n!=="transformOrigin"?i[n]:i.svg?i.origin:Rj(_a(a,qt))+" "+i.zOrigin+"px"):(i=a.style[n],(!i||i==="auto"||s||~(i+"").indexOf("calc("))&&(i=_j[n]&&_j[n](a,n,r)||_a(a,n)||AI(a,n)||(n==="opacity"?1:0))),r&&!~(i+"").trim().indexOf(" ")?zn(a,n,i,r)+r:i},Rz=function(a,n,r,s){if(!r||r==="none"){var i=xc(n,a,1),o=i&&_a(a,i,1);o&&o!==r?(n=i,r=o):n==="borderColor"&&(r=_a(a,"borderTopColor"))}var l=new Dt(this._pt,a.style,n,0,1,sA),d=0,h=0,u,p,y,m,x,f,v,k,w,b,C,j;if(l.b=r,l.e=s,r+="",s+="",s==="auto"&&(f=a.style[n],a.style[n]=s,s=_a(a,n)||s,f?a.style[n]=f:Ao(a,n)),u=[r,s],JI(u),r=u[0],s=u[1],y=r.match(Zo)||[],j=s.match(Zo)||[],j.length){for(;p=Zo.exec(s);)v=p[0],w=s.substring(d,p.index),x?x=(x+1)%5:(w.substr(-5)==="rgba("||w.substr(-5)==="hsla(")&&(x=1),v!==(f=y[h++]||"")&&(m=parseFloat(f)||0,C=f.substr((m+"").length),v.charAt(1)==="="&&(v=oc(m,v)+C),k=parseFloat(v),b=v.substr((k+"").length),d=Zo.lastIndex-b.length,b||(b=b||Wt.units[n]||C,d===s.length&&(s+=b,l.e+=b)),C!==b&&(m=zn(a,n,f,b)||0),l._pt={_next:l._pt,p:w||h===1?w:",",s:m,c:k-m,m:x&&x<4||n==="zIndex"?Math.round:0});l.c=d<s.length?s.substring(d,s.length):""}else l.r=n==="display"&&s==="none"?lA:cA;return jI.test(s)&&(l.e=0),this._pt=l,l},SN={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Tz=function(a){var n=a.split(" "),r=n[0],s=n[1]||"50%";return(r==="top"||r==="bottom"||s==="left"||s==="right")&&(a=r,r=s,s=a),n[0]=SN[r]||r,n[1]=SN[s]||s,n.join(" ")},Dz=function(a,n){if(n.tween&&n.tween._time===n.tween._dur){var r=n.t,s=r.style,i=n.u,o=r._gsap,l,d,h;if(i==="all"||i===!0)s.cssText="",d=1;else for(i=i.split(","),h=i.length;--h>-1;)l=i[h],Ka[l]&&(d=1,l=l==="transformOrigin"?qt:Be),Ao(r,l);d&&(Ao(r,Be),o&&(o.svg&&r.removeAttribute("transform"),yl(r,1),o.uncache=1,dA(s)))}},_j={clearProps:function(a,n,r,s,i){if(i.data!=="isFromStart"){var o=a._pt=new Dt(a._pt,n,r,0,0,Dz);return o.u=s,o.pr=-10,o.tween=i,a._props.push(r),1}}},ml=[1,0,0,1,0,0],yA={},fA=function(a){return a==="matrix(1, 0, 0, 1, 0, 0)"||a==="none"||!a},NN=function(a){var n=_a(a,Be);return fA(n)?ml:n.substr(7).match(MI).map(Je)},lS=function(a,n){var r=a._gsap||jo(a),s=a.style,i=NN(a),o,l,d,h;return r.svg&&a.getAttribute("transform")?(d=a.transform.baseVal.consolidate().matrix,i=[d.a,d.b,d.c,d.d,d.e,d.f],i.join(",")==="1,0,0,1,0,0"?ml:i):(i===ml&&!a.offsetParent&&a!==cc&&!r.svg&&(d=s.display,s.display="block",o=a.parentNode,(!o||!a.offsetParent)&&(h=1,l=a.nextElementSibling,cc.appendChild(a)),i=NN(a),d?s.display=d:Ao(a,"display"),h&&(l?o.insertBefore(a,l):o?o.appendChild(a):cc.removeChild(a))),n&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},bC=function(a,n,r,s,i,o){var l=a._gsap,d=i||lS(a,!0),h=l.xOrigin||0,u=l.yOrigin||0,p=l.xOffset||0,y=l.yOffset||0,m=d[0],x=d[1],f=d[2],v=d[3],k=d[4],w=d[5],b=n.split(" "),C=parseFloat(b[0])||0,j=parseFloat(b[1])||0,I,N,S,L;r?d!==ml&&(N=m*v-x*f)&&(S=C*(v/N)+j*(-f/N)+(f*w-v*k)/N,L=C*(-x/N)+j*(m/N)-(m*w-x*k)/N,C=S,j=L):(I=pA(a),C=I.x+(~b[0].indexOf("%")?C/100*I.width:C),j=I.y+(~(b[1]||b[0]).indexOf("%")?j/100*I.height:j)),s||s!==!1&&l.smooth?(k=C-h,w=j-u,l.xOffset=p+(k*m+w*f)-k,l.yOffset=y+(k*x+w*v)-w):l.xOffset=l.yOffset=0,l.xOrigin=C,l.yOrigin=j,l.smooth=!!s,l.origin=n,l.originIsAbsolute=!!r,a.style[qt]="0px 0px",o&&(vn(o,l,"xOrigin",h,C),vn(o,l,"yOrigin",u,j),vn(o,l,"xOffset",p,l.xOffset),vn(o,l,"yOffset",y,l.yOffset)),a.setAttribute("data-svg-origin",C+" "+j)},yl=function(a,n){var r=a._gsap||new QI(a);if("x"in r&&!n&&!r.uncache)return r;var s=a.style,i=r.scaleX<0,o="px",l="deg",d=getComputedStyle(a),h=_a(a,qt)||"0",u,p,y,m,x,f,v,k,w,b,C,j,I,N,S,L,q,_,A,D,H,G,V,U,F,se,K,X,J,re,te,ye;return u=p=y=f=v=k=w=b=C=0,m=x=1,r.svg=!!(a.getCTM&&mA(a)),d.translate&&((d.translate!=="none"||d.scale!=="none"||d.rotate!=="none")&&(s[Be]=(d.translate!=="none"?"translate3d("+(d.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(d.rotate!=="none"?"rotate("+d.rotate+") ":"")+(d.scale!=="none"?"scale("+d.scale.split(" ").join(",")+") ":"")+(d[Be]!=="none"?d[Be]:"")),s.scale=s.rotate=s.translate="none"),N=lS(a,r.svg),r.svg&&(r.uncache?(F=a.getBBox(),h=r.xOrigin-F.x+"px "+(r.yOrigin-F.y)+"px",U=""):U=!n&&a.getAttribute("data-svg-origin"),bC(a,U||h,!!U||r.originIsAbsolute,r.smooth!==!1,N)),j=r.xOrigin||0,I=r.yOrigin||0,N!==ml&&(_=N[0],A=N[1],D=N[2],H=N[3],u=G=N[4],p=V=N[5],N.length===6?(m=Math.sqrt(_*_+A*A),x=Math.sqrt(H*H+D*D),f=_||A?$o(A,_)*uo:0,w=D||H?$o(D,H)*uo+f:0,w&&(x*=Math.abs(Math.cos(w*lc))),r.svg&&(u-=j-(j*_+I*D),p-=I-(j*A+I*H))):(ye=N[6],re=N[7],K=N[8],X=N[9],J=N[10],te=N[11],u=N[12],p=N[13],y=N[14],S=$o(ye,J),v=S*uo,S&&(L=Math.cos(-S),q=Math.sin(-S),U=G*L+K*q,F=V*L+X*q,se=ye*L+J*q,K=G*-q+K*L,X=V*-q+X*L,J=ye*-q+J*L,te=re*-q+te*L,G=U,V=F,ye=se),S=$o(-D,J),k=S*uo,S&&(L=Math.cos(-S),q=Math.sin(-S),U=_*L-K*q,F=A*L-X*q,se=D*L-J*q,te=H*q+te*L,_=U,A=F,D=se),S=$o(A,_),f=S*uo,S&&(L=Math.cos(S),q=Math.sin(S),U=_*L+A*q,F=G*L+V*q,A=A*L-_*q,V=V*L-G*q,_=U,G=F),v&&Math.abs(v)+Math.abs(f)>359.9&&(v=f=0,k=180-k),m=Je(Math.sqrt(_*_+A*A+D*D)),x=Je(Math.sqrt(V*V+ye*ye)),S=$o(G,V),w=Math.abs(S)>2e-4?S*uo:0,C=te?1/(te<0?-te:te):0),r.svg&&(U=a.getAttribute("transform"),r.forceCSS=a.setAttribute("transform","")||!fA(_a(a,Be)),U&&a.setAttribute("transform",U))),Math.abs(w)>90&&Math.abs(w)<270&&(i?(m*=-1,w+=f<=0?180:-180,f+=f<=0?180:-180):(x*=-1,w+=w<=0?180:-180)),n=n||r.uncache,r.x=u-((r.xPercent=u&&(!n&&r.xPercent||(Math.round(a.offsetWidth/2)===Math.round(-u)?-50:0)))?a.offsetWidth*r.xPercent/100:0)+o,r.y=p-((r.yPercent=p&&(!n&&r.yPercent||(Math.round(a.offsetHeight/2)===Math.round(-p)?-50:0)))?a.offsetHeight*r.yPercent/100:0)+o,r.z=y+o,r.scaleX=Je(m),r.scaleY=Je(x),r.rotation=Je(f)+l,r.rotationX=Je(v)+l,r.rotationY=Je(k)+l,r.skewX=w+l,r.skewY=b+l,r.transformPerspective=C+o,(r.zOrigin=parseFloat(h.split(" ")[2])||!n&&r.zOrigin||0)&&(s[qt]=Rj(h)),r.xOffset=r.yOffset=0,r.force3D=Wt.force3D,r.renderTransform=r.svg?zz:uA?xA:qz,r.uncache=0,r},Rj=function(a){return(a=a.split(" "))[0]+" "+a[1]},_9=function(a,n,r){var s=pt(n);return Je(parseFloat(n)+parseFloat(zn(a,"x",r+"px",s)))+s},qz=function(a,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,xA(a,n)},Wn="0deg",Pc="0px",Zn=") ",xA=function(a,n){var r=n||this,s=r.xPercent,i=r.yPercent,o=r.x,l=r.y,d=r.z,h=r.rotation,u=r.rotationY,p=r.rotationX,y=r.skewX,m=r.skewY,x=r.scaleX,f=r.scaleY,v=r.transformPerspective,k=r.force3D,w=r.target,b=r.zOrigin,C="",j=k==="auto"&&a&&a!==1||k===!0;if(b&&(p!==Wn||u!==Wn)){var I=parseFloat(u)*lc,N=Math.sin(I),S=Math.cos(I),L;I=parseFloat(p)*lc,L=Math.cos(I),o=_9(w,o,N*L*-b),l=_9(w,l,-Math.sin(I)*-b),d=_9(w,d,S*L*-b+b)}v!==Pc&&(C+="perspective("+v+Zn),(s||i)&&(C+="translate("+s+"%, "+i+"%) "),(j||o!==Pc||l!==Pc||d!==Pc)&&(C+=d!==Pc||j?"translate3d("+o+", "+l+", "+d+") ":"translate("+o+", "+l+Zn),h!==Wn&&(C+="rotate("+h+Zn),u!==Wn&&(C+="rotateY("+u+Zn),p!==Wn&&(C+="rotateX("+p+Zn),(y!==Wn||m!==Wn)&&(C+="skew("+y+", "+m+Zn),(x!==1||f!==1)&&(C+="scale("+x+", "+f+Zn),w.style[Be]=C||"translate(0, 0)"},zz=function(a,n){var r=n||this,s=r.xPercent,i=r.yPercent,o=r.x,l=r.y,d=r.rotation,h=r.skewX,u=r.skewY,p=r.scaleX,y=r.scaleY,m=r.target,x=r.xOrigin,f=r.yOrigin,v=r.xOffset,k=r.yOffset,w=r.forceCSS,b=parseFloat(o),C=parseFloat(l),j,I,N,S,L;d=parseFloat(d),h=parseFloat(h),u=parseFloat(u),u&&(u=parseFloat(u),h+=u,d+=u),d||h?(d*=lc,h*=lc,j=Math.cos(d)*p,I=Math.sin(d)*p,N=Math.sin(d-h)*-y,S=Math.cos(d-h)*y,h&&(u*=lc,L=Math.tan(h-u),L=Math.sqrt(1+L*L),N*=L,S*=L,u&&(L=Math.tan(u),L=Math.sqrt(1+L*L),j*=L,I*=L)),j=Je(j),I=Je(I),N=Je(N),S=Je(S)):(j=p,S=y,I=N=0),(b&&!~(o+"").indexOf("px")||C&&!~(l+"").indexOf("px"))&&(b=zn(m,"x",o,"px"),C=zn(m,"y",l,"px")),(x||f||v||k)&&(b=Je(b+x-(x*j+f*N)+v),C=Je(C+f-(x*I+f*S)+k)),(s||i)&&(L=m.getBBox(),b=Je(b+s/100*L.width),C=Je(C+i/100*L.height)),L="matrix("+j+","+I+","+N+","+S+","+b+","+C+")",m.setAttribute("transform",L),w&&(m.style[Be]=L)},Ez=function(a,n,r,s,i){var o=360,l=it(i),d=parseFloat(i)*(l&&~i.indexOf("rad")?uo:1),h=d-s,u=s+h+"deg",p,y;return l&&(p=i.split("_")[1],p==="short"&&(h%=o,h!==h%(o/2)&&(h+=h<0?o:-o)),p==="cw"&&h<0?h=(h+o*bN)%o-~~(h/o)*o:p==="ccw"&&h>0&&(h=(h-o*bN)%o-~~(h/o)*o)),a._pt=y=new Dt(a._pt,n,r,s,h,wz),y.e=u,y.u="deg",a._props.push(r),y},LN=function(a,n){for(var r in n)a[r]=n[r];return a},Fz=function(a,n,r){var s=LN({},r._gsap),i="perspective,force3D,transformOrigin,svgOrigin",o=r.style,l,d,h,u,p,y,m,x;s.svg?(h=r.getAttribute("transform"),r.setAttribute("transform",""),o[Be]=n,l=yl(r,1),Ao(r,Be),r.setAttribute("transform",h)):(h=getComputedStyle(r)[Be],o[Be]=n,l=yl(r,1),o[Be]=h);for(d in Ka)h=s[d],u=l[d],h!==u&&i.indexOf(d)<0&&(m=pt(h),x=pt(u),p=m!==x?zn(r,d,h,x):parseFloat(h),y=parseFloat(u),a._pt=new Dt(a._pt,l,d,p,y-p,kC),a._pt.u=x||0,a._props.push(d));LN(l,s)};Tt("padding,margin,Width,Radius",function(t,a){var n="Top",r="Right",s="Bottom",i="Left",o=(a<3?[n,r,s,i]:[n+i,n+r,s+r,s+i]).map(function(l){return a<2?t+l:"border"+l+t});_j[a>1?"border"+t:t]=function(l,d,h,u,p){var y,m;if(arguments.length<4)return y=o.map(function(x){return Za(l,x,h)}),m=y.join(" "),m.split(y[0]).length===5?y[0]:m;y=(u+"").split(" "),m={},o.forEach(function(x,f){return m[x]=y[f]=y[f]||y[(f-1)/2|0]}),l.init(d,m,p)}});var gA={name:"css",register:wC,targetTest:function(a){return a.style&&a.nodeType},init:function(a,n,r,s,i){var o=this._props,l=a.style,d=r.vars.startAt,h,u,p,y,m,x,f,v,k,w,b,C,j,I,N,S;iS||wC(),this.styles=this.styles||hA(a),S=this.styles.props,this.tween=r;for(f in n)if(f!=="autoRound"&&(u=n[f],!(Ot[f]&&eA(f,n,r,s,a,i)))){if(m=typeof u,x=_j[f],m==="function"&&(u=u.call(r,s,a,i),m=typeof u),m==="string"&&~u.indexOf("random(")&&(u=hl(u)),x)x(this,a,f,u,r)&&(N=1);else if(f.substr(0,2)==="--")h=(getComputedStyle(a).getPropertyValue(f)+"").trim(),u+="",Rn.lastIndex=0,Rn.test(h)||(v=pt(h),k=pt(u)),k?v!==k&&(h=zn(a,f,h,k)+k):v&&(u+=v),this.add(l,"setProperty",h,u,s,i,0,0,f),o.push(f),S.push(f,0,l[f]);else if(m!=="undefined"){if(d&&f in d?(h=typeof d[f]=="function"?d[f].call(r,s,a,i):d[f],it(h)&&~h.indexOf("random(")&&(h=hl(h)),pt(h+"")||h==="auto"||(h+=Wt.units[f]||pt(Za(a,f))||""),(h+"").charAt(1)==="="&&(h=Za(a,f))):h=Za(a,f),y=parseFloat(h),w=m==="string"&&u.charAt(1)==="="&&u.substr(0,2),w&&(u=u.substr(2)),p=parseFloat(u),f in La&&(f==="autoAlpha"&&(y===1&&Za(a,"visibility")==="hidden"&&p&&(y=0),S.push("visibility",0,l.visibility),vn(this,l,"visibility",y?"inherit":"hidden",p?"inherit":"hidden",!p)),f!=="scale"&&f!=="transform"&&(f=La[f],~f.indexOf(",")&&(f=f.split(",")[0]))),b=f in Ka,b){if(this.styles.save(f),C||(j=a._gsap,j.renderTransform&&!n.parseTransform||yl(a,n.parseTransform),I=n.smoothOrigin!==!1&&j.smooth,C=this._pt=new Dt(this._pt,l,Be,0,1,j.renderTransform,j,0,-1),C.dep=1),f==="scale")this._pt=new Dt(this._pt,j,"scaleY",j.scaleY,(w?oc(j.scaleY,w+p):p)-j.scaleY||0,kC),this._pt.u=0,o.push("scaleY",f),f+="X";else if(f==="transformOrigin"){S.push(qt,0,l[qt]),u=Tz(u),j.svg?bC(a,u,0,I,0,this):(k=parseFloat(u.split(" ")[2])||0,k!==j.zOrigin&&vn(this,j,"zOrigin",j.zOrigin,k),vn(this,l,f,Rj(h),Rj(u)));continue}else if(f==="svgOrigin"){bC(a,u,1,I,0,this);continue}else if(f in yA){Ez(this,j,f,y,w?oc(y,w+u):u);continue}else if(f==="smoothOrigin"){vn(this,j,"smooth",j.smooth,u);continue}else if(f==="force3D"){j[f]=u;continue}else if(f==="transform"){Fz(this,u,a);continue}}else f in l||(f=xc(f)||f);if(b||(p||p===0)&&(y||y===0)&&!vz.test(u)&&f in l)v=(h+"").substr((y+"").length),p||(p=0),k=pt(u)||(f in Wt.units?Wt.units[f]:v),v!==k&&(y=zn(a,f,h,k)),this._pt=new Dt(this._pt,b?j:l,f,y,(w?oc(y,w+p):p)-y,!b&&(k==="px"||f==="zIndex")&&n.autoRound!==!1?Mz:kC),this._pt.u=k||0,v!==k&&k!=="%"&&(this._pt.b=h,this._pt.r=bz);else if(f in l)Rz.call(this,a,f,h,w?w+u:u);else if(f in a)this.add(a,f,h||a[f],w?w+u:u,s,i);else if(f!=="parseTransform"){YC(f,u);continue}b||(f in l?S.push(f,0,l[f]):S.push(f,1,h||a[f])),o.push(f)}}N&&iA(this)},render:function(a,n){if(n.tween._time||!oS())for(var r=n._pt;r;)r.r(a,r.d),r=r._next;else n.styles.revert()},get:Za,aliases:La,getSetter:function(a,n,r){var s=La[n];return s&&s.indexOf(",")<0&&(n=s),n in Ka&&n!==qt&&(a._gsap.x||Za(a,"x"))?r&&wN===r?n==="scale"?Nz:Sz:(wN=r||{})&&(n==="scale"?Lz:Iz):a.style&&!ZC(a.style[n])?jz:~n.indexOf("-")?Cz:rS(a,n)},core:{_removeProperty:Ao,_getMatrix:lS}};zt.utils.checkPrefix=xc;zt.core.getStyleSaver=hA;(function(t,a,n,r){var s=Tt(t+","+a+","+n,function(i){Ka[i]=1});Tt(a,function(i){Wt.units[i]="deg",yA[i]=1}),La[s[13]]=t+","+a,Tt(r,function(i){var o=i.split(":");La[o[1]]=s[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");Tt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){Wt.units[t]="px"});zt.registerPlugin(gA);var kA=zt.registerPlugin(gA)||zt;kA.core.Tween;function dS(t){return qD[t]||fn}function vA({advantages:t,title:a,description:n}){return e.jsx("section",{className:"py-20 bg-gradient-to-b from-white to-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:n})]}),e.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3",children:t.map((r,s)=>{const i=dS(r.icon);return e.jsxs("div",{className:"relative bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition-shadow flex flex-col",children:[e.jsxs("div",{className:"w-12 h-12 flex items-center justify-center bg-yellow-50 rounded-lg text-yellow-600 mb-4",children:[i?e.jsx(i,{className:"h-8 w-8"}):null," "]}),e.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:r.title}),e.jsx("p",{className:"text-gray-600 mb-6",children:r.description}),r.ctaLink&&r.ctaText?e.jsx("div",{className:"mt-auto",children:e.jsxs("a",{href:r.ctaLink,className:"inline-flex items-center text-yellow-600 hover:text-yellow-700 font-medium group",children:[r.ctaText,e.jsx(yo,{className:"ml-2 h-4 w-4 transform group-hover:translate-x-1 transition-transform"})]})}):""]},s)})})]})})}function Oz({title:t="Get in Touch",description:a="Have questions? We're here to help you start your journey",nameLabel:n="Full Name",emailLabel:r="Email",messageLabel:s="Message",namePlaceholder:i="Your full name",emailPlaceholder:o="you@example.com",messagePlaceholder:l="How can we help?",submitButtonLabel:d="Send Message",contactEmail:h="contact@globalenglish.com",contactPhone:u="+1 (555) 123-4567",contactMessage:p="Live chat available 24/7",onSubmit:y,showContactDetails:m=!0}){const x=f=>{f.preventDefault();const v=new FormData(f.currentTarget);y==null||y({name:String(v.get("name")??""),email:String(v.get("email")??""),message:String(v.get("message")??"")})};return e.jsx("section",{id:"contact",className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:t}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:a})]}),e.jsxs("div",{className:"mt-16 max-w-lg mx-auto",children:[e.jsxs("form",{className:"space-y-6",onSubmit:x,children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-700",children:n}),e.jsx("input",{type:"text",id:"name",name:"name",placeholder:i,className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-yellow-500 focus:ring-blue-500"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700",children:r}),e.jsx("input",{type:"email",id:"email",name:"email",placeholder:o,className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-yellow-500 focus:ring-blue-500"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"message",className:"block text-sm font-medium text-gray-700",children:s}),e.jsx("textarea",{id:"message",name:"message",rows:4,placeholder:l,className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-yellow-500 focus:ring-blue-500"})]}),e.jsx("button",{type:"submit",className:"w-full bg-yellow-600 text-white py-3 px-4 rounded-md hover:bg-yellow-700 transition-colors",children:d})]}),m&&e.jsxs("div",{className:"mt-12 space-y-4",children:[e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(ca,{className:"h-6 w-6 mr-3"}),e.jsx("span",{children:h})]}),e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(In,{className:"h-6 w-6 mr-3"}),e.jsx("span",{children:u})]}),e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(Ln,{className:"h-6 w-6 mr-3"}),e.jsx("span",{children:p})]})]})]})]})})}const wA=M.createContext(void 0);function Hz({children:t}){const[a,n]=M.useState([]),[r,s]=M.useState(!1),i=M.useCallback(u=>{n(p=>p.find(m=>m.id===u.id)?p.map(m=>m.id===u.id?{...m,quantity:m.quantity+1}:m):[...p,{...u,quantity:1}]),s(!0)},[]),o=M.useCallback(u=>{n(p=>p.filter(y=>y.id!==u))},[]),l=M.useCallback((u,p)=>{n(y=>y.map(m=>m.id===u?{...m,quantity:Math.max(0,p)}:m))},[]),d=M.useCallback(()=>{s(u=>!u)},[]),h=a.reduce((u,p)=>u+p.price*p.quantity,0);return e.jsx(wA.Provider,{value:{items:a,isOpen:r,addItem:i,removeItem:o,updateQuantity:l,toggleCart:d,total:h},children:t})}function bA(){const t=M.useContext(wA);if(t===void 0)throw new Error("useCart must be used within a CartProvider");return t}function MA({courses:t,title:a,description:n}){const{addItem:r}=bA();return e.jsx("section",{id:"courses",className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:n})]}),e.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-4",children:t.map(s=>e.jsxs("div",{className:"bg-white border border-gray-200 rounded-lg p-6 hover:border-yellow-500 transition-colors",children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-4",children:s.title}),e.jsxs("div",{className:"space-y-3 mb-6",children:[e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(ga,{className:"h-5 w-5 mr-2"}),e.jsx("span",{children:s.duration})]}),e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(mt,{className:"h-5 w-5 mr-2"}),e.jsx("span",{children:s.type})]}),e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(Qc,{className:"h-5 w-5 mr-2"}),e.jsx("span",{children:s.level})]})]}),e.jsx("p",{className:"text-gray-600 mb-6",children:s.description}),e.jsx("div",{className:"flex items-center justify-between mb-4",children:e.jsxs("span",{className:"text-2xl font-bold text-gray-900",children:["$",s.price]})}),e.jsxs("button",{onClick:()=>r({id:s.id,name:s.title,price:s.price,duration:s.duration}),className:"w-full bg-yellow-600 text-white py-2 px-4 rounded-md hover:bg-yellow-700 transition-colors flex items-center justify-center space-x-2",children:[e.jsx(sc,{className:"h-5 w-5"}),e.jsx("span",{children:"Add to Cart"})]})]},s.id))})]})})}function jA({destinations:t,title:a,description:n}){const[r,s]=M.useState(0),[i,o]=M.useState(!0),l=()=>typeof window<"u"?window.innerWidth<640?1:window.innerWidth<1024?2:4:4,[d,h]=M.useState(l());M.useEffect(()=>{const m=()=>{h(l())};return window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)},[]),M.useEffect(()=>{let m;return i&&(m=setInterval(()=>{s(x=>(x+1)%(t.length-d+1))},5e3)),()=>clearInterval(m)},[i]);const u=()=>{s(m=>Math.max(0,m-1)),o(!1)},p=()=>{s(m=>Math.min(t.length-d,m+1)),o(!1)},y=t.slice(r,r+d);return e.jsx("section",{id:"destinations",className:"py-20",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:n})]}),e.jsxs("div",{className:"mt-16 relative",children:[e.jsx("div",{className:"flex gap-4 md:gap-6 lg:gap-8",children:y.map((m,x)=>e.jsxs("div",{className:"w-full md:w-1/2 lg:w-1/4 relative group overflow-hidden rounded-lg shadow-lg hover:shadow-xl transition-all",children:[e.jsx("img",{src:m.image,alt:m.name,className:"w-full h-64 object-cover group-hover:scale-110 transition-transform duration-300"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 to-transparent",children:e.jsxs("div",{className:"absolute bottom-0 p-6",children:[e.jsxs("div",{className:"flex items-center text-white mb-2",children:[e.jsx(Qe,{className:"h-5 w-5 mr-2"}),e.jsx("h3",{className:"text-lg font-semibold",children:m.name})]}),e.jsx("p",{className:"text-white/90 text-sm",children:m.description})]})})]},r+x))}),e.jsx("button",{onClick:u,disabled:r===0,className:`absolute left-0 top-1/2 -translate-y-1/2 -translate-x-4 bg-white/90 p-2 rounded-full shadow-lg transition-opacity ${r===0?"opacity-50 cursor-not-allowed":"hover:bg-white"}`,children:e.jsx(bn,{className:"h-6 w-6 text-gray-800"})}),e.jsx("button",{onClick:p,disabled:r>=t.length-d,className:`absolute right-0 top-1/2 -translate-y-1/2 translate-x-4 bg-white/90 p-2 rounded-full shadow-lg transition-opacity ${r>=t.length-d?"opacity-50 cursor-not-allowed":"hover:bg-white"}`,children:e.jsx(Mn,{className:"h-6 w-6 text-gray-800"})})]}),e.jsx("div",{className:"flex justify-center mt-8 space-x-2",children:Array.from({length:Math.ceil(t.length/d)}).map((m,x)=>e.jsx("button",{onClick:()=>{s(x*d),o(!1)},className:`w-2 h-2 rounded-full transition-all ${Math.floor(r/d)===x?"bg-yellow-600 w-4":"bg-gray-300 hover:bg-gray-400"}`},x))})]})})}const Vz=[{label:"Destinations",href:"#destinations"},{label:"Courses",href:"#courses"},{label:"Services",href:"#services"}];function Bz({title:t="GlobalEnglish",navItems:a=Vz,ctaLabel:n="Contact Us",ctaHref:r="#contact",brandIcon:s=e.jsx(oa,{className:"h-8 w-8 text-yellow-600"}),defaultOpen:i=!1,isOpen:o,onToggleMenu:l,menuButtonAriaLabel:d="Toggle navigation"}){const[h,u]=M.useState(i),p=o??h,y=()=>{const x=!p;o===void 0&&u(x),l==null||l(x)},m=x=>e.jsx("a",{href:x.href,onClick:x.onClick,className:"text-gray-600 hover:text-yellow-600",children:x.label},x.label);return e.jsxs("nav",{className:"bg-white shadow-lg fixed w-full z-50",children:[e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex justify-between h-16",children:[e.jsxs("div",{className:"flex items-center",children:[s,e.jsx("span",{className:"ml-2 text-xl font-bold text-gray-800",children:t})]}),e.jsxs("div",{className:"hidden md:flex items-center space-x-8",children:[a.map(m),e.jsx("a",{href:r,className:"bg-yellow-600 text-white px-4 py-2 rounded-md hover:bg-yellow-700",children:n})]}),e.jsx("div",{className:"md:hidden flex items-center",children:e.jsx("button",{onClick:y,className:"text-gray-600 hover:text-gray-900 focus:outline-none","aria-label":d,children:p?e.jsx(Ct,{className:"h-6 w-6"}):e.jsx(ac,{className:"h-6 w-6"})})})]})}),p&&e.jsx("div",{className:"md:hidden",children:e.jsxs("div",{className:"px-2 pt-2 pb-3 space-y-1 sm:px-3",children:[a.map(x=>e.jsx("a",{href:x.href,onClick:()=>{var f;(f=x.onClick)==null||f.call(x),y()},className:"block px-3 py-2 text-gray-600 hover:text-yellow-600",children:x.label},x.label)),e.jsx("a",{href:r,className:"block px-3 py-2 text-yellow-600 font-medium",children:n})]})})]})}function CA({title:t,subtitle:a,bg_img:n,main_btn_text:r,main_btn_link:s,secondary_btn_text:i,secondary_btn_link:o}){return e.jsxs("div",{className:"relative bg-yellow-600 h-screen flex items-center justify-center",children:[e.jsx("div",{className:"absolute inset-0",children:e.jsx("img",{src:n,alt:"Students studying",className:"w-full h-full object-cover opacity-20"})}),e.jsxs("div",{className:"relative max-w-7xl mx-auto py-24 px-4 sm:py-32 sm:px-6 lg:px-8",children:[e.jsx("h1",{className:"text-4xl md:text-6xl font-bold text-white mb-8",children:t}),e.jsx("p",{className:"text-xl text-white mb-12 max-w-3xl",children:a}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[s&&r?e.jsxs("a",{href:s,className:"inline-flex items-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-yellow-600 bg-white hover:bg-gray-50",children:[r,e.jsx(yo,{className:"ml-2 h-5 w-5"})]}):"",o&&i?e.jsx("a",{href:o,className:"inline-flex items-center px-8 py-3 border border-white text-base font-medium rounded-md text-white hover:bg-yellow-700",children:i}):""]})]})]})}function SA({title:t,description:a,services:n}){return e.jsx("section",{id:"services",className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:t}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:a})]}),e.jsx("div",{className:"mt-20 grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3",children:n.map((r,s)=>{const i=dS(r.icon);return e.jsxs("div",{className:"relative group bg-white p-6 rounded-lg shadow-md hover:shadow-lg transition-all",children:[e.jsxs("div",{className:"text-yellow-600 mb-4",children:[i?e.jsx(i,{className:"h-8 w-8"}):null," "]}),e.jsx("h3",{className:"text-lg font-medium text-gray-900",children:r.title}),e.jsx("p",{className:"mt-2 text-gray-500",children:r.description})]},s)})})]})})}function NA({testimonials:t,title:a,description:n}){return e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:n})]}),e.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 lg:grid-cols-3",children:t.map((r,s)=>e.jsxs("div",{className:"relative bg-white p-8 rounded-xl shadow-lg",children:[e.jsx("div",{className:"absolute -top-4 -left-4",children:e.jsx(nc,{className:"h-8 w-8 text-yellow-600"})}),e.jsxs("div",{className:"flex items-center mb-6",children:[e.jsx("img",{src:r.image,alt:r.name,className:"h-14 w-14 rounded-full object-cover"}),e.jsxs("div",{className:"ml-4",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:r.name}),e.jsx("p",{className:"text-gray-600",children:r.from})]})]}),e.jsx("p",{className:"text-gray-600 mb-6",children:r.text}),e.jsx("div",{className:"flex text-yellow-400",children:[...Array(r.rating)].map((i,o)=>e.jsx(jt,{className:"h-5 w-5 fill-current"},o))})]},s))})]})})}function LA({videos:t,title:a,description:n}){return e.jsx("section",{className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:n})]}),e.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3",children:t.map((r,s)=>e.jsxs("div",{className:"relative group",children:[e.jsxs("div",{className:"relative overflow-hidden rounded-lg",children:[e.jsx("img",{src:r.thumbnail,alt:r.title,className:"w-full h-64 object-cover group-hover:scale-105 transition-transform duration-300"}),e.jsx("div",{className:"absolute inset-0 bg-black/40 group-hover:bg-black/50 transition-colors",children:e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:e.jsx("button",{className:"bg-white/90 p-4 rounded-full group-hover:bg-white transition-colors",children:e.jsx(Yc,{className:"h-8 w-8 text-yellow-600"})})})}),e.jsx("div",{className:"absolute bottom-4 right-4 bg-black/70 px-2 py-1 rounded text-white text-sm",children:r.duration})]}),e.jsx("h3",{className:"mt-4 text-xl font-semibold text-gray-900",children:r.title}),e.jsx("p",{className:"mt-2 text-gray-600",children:r.description})]},s))})]})})}function IA({features:t,title:a,description:n}){return e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-16",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:n})]}),e.jsx("div",{className:"space-y-24",children:t.map((r,s)=>e.jsxs("div",{className:`flex flex-col gap-8 items-center ${s%2===0?"lg:flex-row":"lg:flex-row-reverse"}`,children:[e.jsx("div",{className:"w-full lg:w-1/2",children:e.jsx("div",{className:"relative h-[400px] overflow-hidden rounded-xl shadow-lg",children:e.jsx("img",{src:r.image,alt:r.imageAlt,className:"absolute inset-0 w-full h-full object-cover"})})}),e.jsxs("div",{className:"w-full lg:w-1/2 lg:px-8",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-4",children:r.title}),e.jsx("p",{className:"text-lg text-gray-600 leading-relaxed",children:r.description}),e.jsx("button",{className:"mt-8 inline-flex items-center px-6 py-3 border border-transparent text-base font-medium rounded-md text-white bg-yellow-600 hover:bg-yellow-700 transition-colors",children:"Learn More"})]})]},s))})]})})}function AA({faqs:t,title:a,description:n}){const[r,s]=M.useState(null),i=o=>{s(l=>l===o?null:o)};return e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-16",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:n})]}),e.jsx("div",{className:"space-y-4",children:t.map((o,l)=>e.jsxs("div",{className:"border border-gray-200 rounded-lg overflow-hidden",children:[e.jsxs("button",{className:"w-full px-6 py-4 flex items-center justify-between bg-white hover:bg-gray-50 transition-colors",onClick:()=>i(l),children:[e.jsx("span",{className:"text-lg font-medium text-gray-900 text-left",children:o.question}),r===l?e.jsx(ec,{className:"h-5 w-5 text-gray-500"}):e.jsx(wn,{className:"h-5 w-5 text-gray-500"})]}),e.jsx("div",{className:`px-6 overflow-hidden transition-all duration-300 ease-in-out ${r===l?"max-h-96 py-4":"max-h-0"}`,children:e.jsx("p",{className:"text-gray-600 leading-relaxed",children:o.answer})})]},l))})]})})}function $z({images:t,autoPlayInterval:a=5e3}){const[n,r]=M.useState(0);M.useEffect(()=>{const l=setInterval(()=>{r(d=>(d+1)%t.length)},a);return()=>clearInterval(l)},[t.length,a]);const s=l=>{r(l)},i=()=>{r(l=>(l-1+t.length)%t.length)},o=()=>{r(l=>(l+1)%t.length)};return e.jsxs("div",{className:"relative w-full h-[600px] group",children:[e.jsx("div",{className:"relative h-full overflow-hidden rounded-xl",children:t.map((l,d)=>e.jsxs("div",{className:`absolute w-full h-full transition-transform duration-500 ease-out ${d===n?"translate-x-0":"translate-x-full"}`,style:{transform:`translateX(${100*(d-n)}%)`},children:[e.jsx("img",{src:l.url,alt:l.alt,className:"absolute w-full h-full object-cover"}),l.caption&&e.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-black/50 text-white p-4",children:e.jsx("p",{className:"text-lg",children:l.caption})})]},d))}),e.jsx("button",{onClick:i,className:"absolute left-4 top-1/2 -translate-y-1/2 bg-white/80 hover:bg-white p-2 rounded-full shadow-lg opacity-0 group-hover:opacity-100 transition-opacity",children:e.jsx(bn,{className:"h-6 w-6 text-gray-800"})}),e.jsx("button",{onClick:o,className:"absolute right-4 top-1/2 -translate-y-1/2 bg-white/80 hover:bg-white p-2 rounded-full shadow-lg opacity-0 group-hover:opacity-100 transition-opacity",children:e.jsx(Mn,{className:"h-6 w-6 text-gray-800"})}),e.jsx("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 flex space-x-2",children:t.map((l,d)=>e.jsx("button",{onClick:()=>s(d),className:`w-2 h-2 rounded-full transition-all ${d===n?"bg-white w-4":"bg-white/50 hover:bg-white/80"}`},d))})]})}function PA({images:t,title:a,description:n,autoPlayInterval:r=5e3}){return e.jsx("section",{className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:n})]}),e.jsx($z,{images:t,autoPlayInterval:r})]})})}function _A({initialMessages:t}){const[a,n]=M.useState(!1),[r,s]=M.useState(t),[i,o]=M.useState(""),l=d=>{if(d.preventDefault(),!i.trim())return;const h={text:i,isBot:!1,timestamp:new Date},u=["I'll help you find the perfect English course for your needs. Could you tell me your current English level?","That's a great question! Our courses are available in multiple locations. Would you like to know more about a specific destination?","We offer flexible course durations ranging from 2 weeks to 12 months. When would you like to start?","I can help you with visa requirements. Which country are you from?"],y={text:u[Math.floor(Math.random()*u.length)],isBot:!0,timestamp:new Date};s(m=>[...m,h,y]),o("")};return e.jsx("div",{className:"fixed bottom-4 right-4 z-50",children:a?e.jsxs("div",{className:"bg-white rounded-lg shadow-xl w-96 max-h-[600px] flex flex-col",children:[e.jsxs("div",{className:"p-4 bg-yellow-600 rounded-t-lg flex justify-between items-center",children:[e.jsxs("div",{className:"flex items-center text-white",children:[e.jsx(qc,{className:"h-6 w-6 mr-2"}),e.jsx("span",{className:"font-medium",children:"GlobalEnglish Assistant"})]}),e.jsx("button",{onClick:()=>n(!1),className:"text-white hover:text-gray-200 transition-colors",children:e.jsx(Ct,{className:"h-5 w-5"})})]}),e.jsx("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:r.map((d,h)=>e.jsx("div",{className:`flex ${d.isBot?"justify-start":"justify-end"}`,children:e.jsxs("div",{className:`max-w-[80%] rounded-lg p-3 ${d.isBot?"bg-gray-100 text-gray-800":"bg-yellow-600 text-white"}`,children:[e.jsx("p",{className:"text-sm",children:d.text}),e.jsx("span",{className:"text-xs opacity-75 mt-1 block",children:d.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]})},h))}),e.jsx("form",{onSubmit:l,className:"p-4 border-t",children:e.jsxs("div",{className:"flex space-x-2",children:[e.jsx("input",{type:"text",value:i,onChange:d=>o(d.target.value),placeholder:"Type your message...",className:"flex-1 border rounded-lg px-4 py-2 focus:outline-none focus:border-yellow-500"}),e.jsx("button",{type:"submit",className:"bg-yellow-600 text-white p-2 rounded-lg hover:bg-yellow-700 transition-colors",children:e.jsx(Kc,{className:"h-5 w-5"})})]})})]}):e.jsx("button",{onClick:()=>n(!0),className:"bg-yellow-600 text-white p-4 rounded-full shadow-lg hover:bg-yellow-700 transition-colors",children:e.jsx(Ln,{className:"h-6 w-6"})})})}function RA({title:t="Your Cart",emptyMessage:a="Your cart is empty",totalLabel:n="Total:",checkoutButtonLabel:r="Proceed to Checkout",currencySymbol:s="$",floatingButtonAriaLabel:i="Toggle cart",onCheckout:o,onToggleCart:l}){const{items:d,isOpen:h,toggleCart:u,removeItem:p,updateQuantity:y,total:m}=bA(),x=()=>{l==null||l(!h),u()};return h?e.jsxs("div",{className:"fixed right-0 top-0 h-full w-96 bg-white shadow-xl z-50 flex flex-col",children:[e.jsxs("div",{className:"p-4 bg-yellow-600 text-white flex justify-between items-center",children:[e.jsx("h2",{className:"text-xl font-semibold",children:t}),e.jsx("button",{onClick:x,className:"text-white hover:text-gray-200 transition-colors","aria-label":i,children:e.jsx(Ct,{className:"h-6 w-6"})})]}),e.jsx("div",{className:"flex-1 overflow-y-auto p-4",children:d.length===0?e.jsx("p",{className:"text-gray-500 text-center mt-8",children:a}):e.jsx("div",{className:"space-y-4",children:d.map(f=>e.jsxs("div",{className:"border rounded-lg p-4 flex flex-col space-y-2",children:[e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-medium",children:f.name}),e.jsx("p",{className:"text-sm text-gray-500",children:f.duration})]}),e.jsx("button",{onClick:()=>p(f.id),className:"text-red-500 hover:text-red-600","aria-label":`Remove ${f.name}`,children:e.jsx(bo,{className:"h-5 w-5"})})]}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("button",{onClick:()=>y(f.id,f.quantity-1),className:"p-1 rounded-md hover:bg-gray-100","aria-label":`Decrease quantity for ${f.name}`,children:e.jsx(Jc,{className:"h-4 w-4"})}),e.jsx("span",{className:"w-8 text-center",children:f.quantity}),e.jsx("button",{onClick:()=>y(f.id,f.quantity+1),className:"p-1 rounded-md hover:bg-gray-100","aria-label":`Increase quantity for ${f.name}`,children:e.jsx(la,{className:"h-4 w-4"})})]}),e.jsxs("p",{className:"font-medium",children:[s,(f.price*f.quantity).toFixed(2)]})]})]},f.id))})}),e.jsxs("div",{className:"border-t p-4 bg-gray-50",children:[e.jsxs("div",{className:"flex justify-between items-center mb-4",children:[e.jsx("span",{className:"font-medium",children:n}),e.jsxs("span",{className:"text-xl font-bold",children:[s,m.toFixed(2)]})]}),e.jsx("button",{className:"w-full bg-yellow-600 text-white py-3 px-4 rounded-lg hover:bg-yellow-700 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",disabled:d.length===0,onClick:o,children:r})]})]}):e.jsx("button",{onClick:x,"aria-label":i,className:"fixed bottom-20 right-4 z-40 bg-yellow-600 text-white p-4 rounded-full shadow-lg hover:bg-yellow-700 transition-colors",children:e.jsxs("div",{className:"relative",children:[e.jsx(sc,{className:"h-6 w-6"}),d.length>0&&e.jsx("span",{className:"absolute -top-2 -right-2 bg-red-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center",children:d.length})]})})}function TA({services:t,title:a,description:n,showBtn:r="Show",hideBtn:s="Hide",featuresBtn:i="Features"}){const[o,l]=M.useState(null),d=h=>{l(o===h?null:h)};return e.jsx("section",{id:"services",className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:n})]}),e.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 lg:grid-cols-2",children:t.map((h,u)=>e.jsx("div",{className:"bg-white rounded-lg shadow-md overflow-hidden transition-all duration-300",children:e.jsxs("div",{className:"p-6",children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-3",children:h.title}),e.jsx("p",{className:"text-gray-600 mb-4",children:h.shortDescription}),e.jsx("div",{className:`transition-all duration-300 overflow-hidden ${o===u?"max-h-[500px]":"max-h-0"}`,children:e.jsxs("div",{className:"mt-4 space-y-4",children:[e.jsx("p",{className:"text-gray-700",children:h.fullDescription}),e.jsxs("div",{className:"border-t pt-4",children:[e.jsx("h4",{className:"font-medium text-gray-900 mb-2",children:i}),e.jsx("ul",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:h.features.map((p,y)=>e.jsxs("li",{className:"text-gray-600",children:["• ",p]},y))})]})]})}),e.jsx("button",{onClick:()=>d(u),className:"mt-4 text-yellow-600 hover:text-yellow-700 font-medium focus:outline-none",children:o===u?s:r})]})},u))})]})})}function DA({courses:t=[],title:a="Available Courses",description:n="Choose the best course for you.",priceLabel:r="From",currencySymbol:s="€",perDurationLabel:i="/week",reviewsText:o="reviews"}){const l=d=>{const h=d/10*5,u=Math.floor(h),p=h%1,y=5-Math.ceil(h);return e.jsxs("div",{className:"flex items-center",children:[[...Array(u)].map((m,x)=>e.jsx(jt,{className:"w-5 h-5 text-yellow-400 fill-current"},`full-${x}`)),p>0&&e.jsxs("div",{className:"relative w-5 h-5",children:[e.jsx(jt,{className:"absolute w-5 h-5 text-gray-300 fill-current"}),e.jsx("div",{className:"absolute overflow-hidden",style:{width:`${p*100}%`},children:e.jsx(jt,{className:"w-5 h-5 text-yellow-400 fill-current"})})]}),[...Array(y)].map((m,x)=>e.jsx(jt,{className:"w-5 h-5 text-gray-300"},`empty-${x}`))]})};return e.jsx("section",{className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-16",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:n})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:t.map((d,h)=>e.jsxs("div",{className:"bg-white rounded-xl p-8 shadow-sm hover:shadow-md transition-shadow flex flex-col h-full",children:[e.jsxs("div",{className:"flex-grow",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:d.title}),e.jsxs("div",{className:"flex items-center mb-4",children:[l(d.rating),e.jsxs("span",{className:"ml-2 text-gray-600",children:[d.rating,"/10 (",d.reviews," ",o,")"]})]}),e.jsxs("div",{className:"mb-4",children:[e.jsxs("span",{className:"text-2xl font-bold text-gray-900",children:[r," ",d.pricePerWeek,s]}),e.jsxs("span",{className:"text-gray-600",children:["/",i]})]}),e.jsx("p",{className:"text-gray-600 mb-6",children:d.description}),e.jsx("div",{className:"space-y-4",children:d.features.map((u,p)=>{const y=dS(u.icon);return e.jsxs("div",{className:"flex items-center text-gray-700",children:[y?e.jsx(y,{className:"w-5 h-5"}):null,e.jsx("span",{className:"ml-3",children:u.text})]},p)})})]}),d.ctaLink&&d.ctaText?e.jsx("div",{className:"mt-8",children:e.jsx("a",{href:d.ctaLink,className:"w-full bg-black text-white py-3 px-6 rounded-lg hover:bg-gray-800 transition-colors",children:d.ctaText})}):""]},h))})]})})}const Uz=[{title:"Asistencia con el Visado",shortDescription:"Orientación experta durante todo el proceso de solicitud de visado para tu experiencia de estudio en el extranjero.",fullDescription:"Nuestro equipo dedicado a soporte de visados ofrece asistencia integral durante todo el proceso de solicitud. Te ayudamos a comprender los requisitos, preparar la documentación y asegurarnos de que tu solicitud cumpla con todos los criterios necesarios.",features:["Preparación y verificación de documentos","Asistencia con el formulario de solicitud","Orientación para la preparación de entrevistas","Consulta sobre los requisitos del visado","Soporte de seguimiento","Asistencia de emergencia"]},{title:"Servicios de Alojamiento",shortDescription:"Encuentra tu hogar perfecto lejos de casa con nuestras opciones de alojamiento cuidadosamente seleccionadas.",fullDescription:"Ofrecemos una amplia variedad de opciones de alojamiento previamente inspeccionadas para adaptarse a cada preferencia y presupuesto. Nuestro equipo de vivienda inspecciona personalmente todas las propiedades para garantizar que cumplan con nuestros estándares de calidad.",features:["Alojamiento en familia local","Residencias estudiantiles","Apartamentos compartidos","Estudios privados","Opciones a corto y largo plazo","Todos los servicios incluidos"]},{title:"Selección en Cursos de Idiomas",shortDescription:"Selección de cursos personalizada para adaptarse a tus objetivos de aprendizaje y nivel de competencia actual.",fullDescription:"Nuestros asesores académicos trabajan contigo para crear un plan de estudio personalizado basado en tus metas, horario y nivel actual de inglés. Nos aseguramos de que estés en el curso adecuado para maximizar tu potencial de aprendizaje.",features:["Evaluación de nivel gratuita","Planes de estudio personalizados","Monitoreo regular del progreso","Opciones de horario flexibles","Cursos especializados disponibles","Preparación para certificaciones"]},{title:"Seguro para Estudiantes",shortDescription:"Cobertura de seguro integral para una experiencia de estudio sin preocupaciones en el extranjero.",fullDescription:"Colaboramos con proveedores de seguros líderes para ofrecer coberturas integrales diseñadas específicamente para estudiantes internacionales. Nuestros paquetes incluyen protección de salud, viajes y bienes personales.",features:["Cobertura de seguro médico","Seguro de viajes","Protección de bienes personales","Asistencia de emergencia","Línea de soporte 24/7","Facturación directa con hospitales"]},{title:"Programa de Integración Cultural",shortDescription:"Sumérgete en la cultura local con actividades y eventos organizados.",fullDescription:"Nuestro programa de integración cultural te ayuda a adaptarte a tu nuevo entorno y a aprovechar al máximo tu experiencia de estudio en el extranjero. Organizamos actividades regulares, eventos y excursiones para que explores y comprendas la cultura local.",features:["Actividades sociales semanales","Talleres culturales","Sistema de compañeros locales","Eventos de intercambio de idiomas","Recorridos por la ciudad y excursiones","Celebraciones de festivales"]},{title:"Soporte para el Desarrollo Profesional",shortDescription:"Mejora tus perspectivas profesionales con nuestros servicios integrales de desarrollo profesional.",fullDescription:"Nuestro equipo de desarrollo profesional brinda orientación y apoyo para ayudarte a alcanzar tus metas laborales. Desde la redacción de CV hasta la preparación para entrevistas, te ayudamos a prepararte para tu carrera futura.",features:["Redacción de CV y cartas de presentación","Preparación para entrevistas","Asistencia en la búsqueda de empleo","Eventos de networking","Talleres de la industria","Colocación en prácticas profesionales"]}],Gz=[{icon:"Plane",title:"Visa Assistance",description:"Complete support with visa applications and documentation."},{icon:"Home",title:"Accommodation",description:"Find the perfect place to stay with our accommodation services."},{icon:"BookOpen",title:"Language Courses",description:"Comprehensive English courses for all levels."},{icon:"Shield",title:"Travel Insurance",description:"Stay protected with our travel insurance packages."},{icon:"Map",title:"Local Activities",description:"Explore the local culture with organized activities."},{icon:"Briefcase",title:"Job Opportunities",description:"Access to job markets and career guidance."}],Wz=[{title:"Learn in World-Class Facilities",description:"Our modern campuses are equipped with state-of-the-art technology and comfortable learning spaces. Each classroom is designed to facilitate interactive learning with smart boards, multimedia equipment, and flexible seating arrangements. Students also have access to self-study areas, a library with extensive English learning resources, and comfortable student lounges.",image:"https://images.unsplash.com/photo-1592280771190-3e2e4d571952?auto=format&fit=crop&q=80",imageAlt:"Modern classroom facility"},{title:"Cultural Immersion Programs",description:"Go beyond traditional language learning with our immersive cultural programs. Participate in local events, join conversation clubs with native speakers, and engage in cultural workshops. Our programs include guided city tours, cooking classes featuring local cuisine, and regular social activities where you can practice English in real-world situations.",image:"https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&q=80",imageAlt:"Students engaging in cultural activities"},{title:"Career Development Support",description:"Launch your international career with our comprehensive career support services. We offer professional development workshops, CV writing assistance, and interview preparation in English. Our partnerships with local businesses provide internship opportunities, and our career counselors help you navigate the job market in English-speaking countries.",image:"https://images.unsplash.com/photo-1552581234-26160f608093?auto=format&fit=crop&q=80",imageAlt:"Career counseling session"}],Zz=[{icon:"Users",title:"Small Class Sizes",description:"Maximum of 12 students per class ensures personalized attention"},{icon:"Trophy",title:"Certified Teachers",description:"Native speakers with CELTA/DELTA qualifications"},{icon:"Calendar",title:"Flexible Schedule",description:"Morning, afternoon, and evening classes available"},{icon:"GraduationCap",title:"Recognized Certificates",description:"Internationally recognized certifications upon completion"},{icon:"Globe2",title:"Cultural Exchange",description:"Regular events and activities with international students"},{icon:"CheckCircle",title:"Job Support",description:"CV workshops and job placement assistance"}],Jz=[{url:"https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&q=80",alt:"Students studying together",caption:"Collaborative learning environment"},{url:"https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&q=80",alt:"Modern campus library",caption:"State-of-the-art study facilities"},{url:"https://images.unsplash.com/photo-1524178232363-1fb2b075b655?auto=format&fit=crop&q=80",alt:"Student accommodation",caption:"Comfortable student residences"},{url:"https://images.unsplash.com/photo-1517486808906-6ca8b3f04846?auto=format&fit=crop&q=80",alt:"Group activity",caption:"Engaging extracurricular activities"},{url:"https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&q=80",alt:"Student life",caption:"Vibrant campus community"}],Xz=[{name:"London, UK",image:"https://images.unsplash.com/photo-1513635269975-59663e0ac1ad?auto=format&fit=crop&q=80",description:"Study English in the heart of the UK with access to world-class institutions."},{name:"New York, USA",image:"https://images.unsplash.com/photo-1496442226666-8d4d0e62e6e9?auto=format&fit=crop&q=80",description:"Experience American English while living in the most vibrant city in the world."},{name:"Sydney, Australia",image:"https://images.unsplash.com/photo-1506973035872-a4ec16b8e8d9?auto=format&fit=crop&q=80",description:"Combine English studies with an amazing lifestyle in beautiful Sydney."},{name:"Toronto, Canada",image:"https://images.unsplash.com/photo-1517935706615-2717063c2225?auto=format&fit=crop&q=80",description:"Study in one of the most multicultural cities with excellent quality of life."},{name:"Dublin, Ireland",image:"https://images.unsplash.com/photo-1590089415225-401ed6f9db8e?auto=format&fit=crop&q=80",description:"Experience Irish hospitality while studying in this historic and vibrant city."},{name:"Vancouver, Canada",image:"https://images.unsplash.com/photo-1559511260-66a654ae982a?auto=format&fit=crop&q=80",description:"Study surrounded by stunning nature and a high quality of life."},{name:"Melbourne, Australia",image:"https://images.unsplash.com/photo-1514395462725-fb4566210144?auto=format&fit=crop&q=80",description:"Join the world's most liveable city with excellent educational opportunities."},{name:"Edinburgh, UK",image:"https://images.unsplash.com/photo-1506377585622-bedcbb027afc?auto=format&fit=crop&q=80",description:"Study in Scotland's historic capital surrounded by stunning architecture."},{name:"San Francisco, USA",image:"https://images.unsplash.com/photo-1501594907352-04cda38ebc29?auto=format&fit=crop&q=80",description:"Learn English in the tech capital of the world."},{name:"Auckland, New Zealand",image:"https://images.unsplash.com/photo-1507699622108-4be3abd695ad?auto=format&fit=crop&q=80",description:"Study in New Zealand's largest city surrounded by natural beauty."},{name:"Manchester, UK",image:"https://images.unsplash.com/photo-1519677100203-a0e668c92439?auto=format&fit=crop&q=80",description:"Experience northern English culture in this vibrant student city."},{name:"Boston, USA",image:"https://images.unsplash.com/photo-1501979376754-f1e8d89c7fe0?auto=format&fit=crop&q=80",description:"Study in America's premier educational hub."},{name:"Brisbane, Australia",image:"https://images.unsplash.com/photo-1452859030917-45a0de82ef4c?auto=format&fit=crop&q=80",description:"Enjoy subtropical climate while studying in this growing city."},{name:"Montreal, Canada",image:"https://images.unsplash.com/photo-1519178614-68673b201f36?auto=format&fit=crop&q=80",description:"Experience bilingual culture in this historic Canadian city."},{name:"Oxford, UK",image:"https://images.unsplash.com/photo-1590510616176-67c87a688639?auto=format&fit=crop&q=80",description:"Study in one of the world's most prestigious academic cities."},{name:"Seattle, USA",image:"https://images.unsplash.com/photo-1502175353174-a7a70e73b362?auto=format&fit=crop&q=80",description:"Learn English in the innovative Pacific Northwest."},{name:"Perth, Australia",image:"https://images.unsplash.com/photo-1573935448851-e0a5d7507f4e?auto=format&fit=crop&q=80",description:"Study in Australia's sunniest capital city."},{name:"Cambridge, UK",image:"https://images.unsplash.com/photo-1579619002916-88cd4c81a70c?auto=format&fit=crop&q=80",description:"Experience academic excellence in this historic university city."},{name:"Wellington, New Zealand",image:"https://images.unsplash.com/photo-1589871973318-9ca1258faa5d?auto=format&fit=crop&q=80",description:"Study in New Zealand's cultural capital."},{name:"Chicago, USA",image:"https://images.unsplash.com/photo-1494522855154-9297ac14b55f?auto=format&fit=crop&q=80",description:"Experience American culture in the heart of the Midwest."}],Yz=[{id:"1",title:"Intensive English",type:"in-person",duration:"4-12 weeks",level:"All levels",description:"Accelerated learning with focused daily classes.",price:1299},{id:"2",title:"Business English",type:"in-person",duration:"8-16 weeks",level:"Intermediate to Advanced",description:"Specialized English for professional environments.",price:1599},{id:"3",title:"Online Live Classes",type:"online",duration:"Flexible",level:"All levels",description:"Interactive online classes with expert teachers.",price:799},{id:"4",title:"IELTS Preparation",type:"in-person",duration:"12 weeks",level:"Intermediate to Advanced",description:"Comprehensive preparation for IELTS exam.",price:1499}],Kz=[{thumbnail:"https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&q=80",title:"Campus Life in London",duration:"3:45",description:"Experience a day in the life of our London students"},{thumbnail:"https://images.unsplash.com/photo-1571260899304-425eee4c7efc?auto=format&fit=crop&q=80",title:"Student Success Stories",duration:"5:20",description:"See how our students achieved their English learning goals"},{thumbnail:"https://images.unsplash.com/photo-1517486808906-6ca8b3f04846?auto=format&fit=crop&q=80",title:"Virtual Campus Tour",duration:"4:15",description:"Take a tour of our modern facilities and classrooms"}],Qz=[{name:"Sarah Chen",from:"Singapore",image:"https://images.unsplash.com/photo-1494790108377-be9c29b29330?auto=format&fit=crop&q=80",text:"The support I received from GlobalEnglish was exceptional. From visa assistance to finding accommodation, everything was handled professionally.",rating:5},{name:"Carlos Rodriguez",from:"Spain",image:"https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?auto=format&fit=crop&q=80",text:"The Business English course helped me secure a job at an international company. The teachers were experienced and the course material was practical.",rating:5},{name:"Maria Kowalski",from:"Poland",image:"https://images.unsplash.com/photo-1438761681033-6461ffad8d80?auto=format&fit=crop&q=80",text:"Studying in London through GlobalEnglish was a life-changing experience. The cultural immersion and quality of education exceeded my expectations.",rating:5}],eE=[{text:"👋 Hi! I'm here to help you with any questions about our English courses. How can I assist you today?",isBot:!0,timestamp:new Date}],tE=[{question:"What visa requirements are needed to study English abroad?",answer:"Requirements vary by destination. Generally, you'll need: a valid passport, proof of enrollment in an accredited language school, proof of sufficient funds (usually 3-6 months of living expenses), and health insurance. We provide comprehensive visa assistance to ensure a smooth application process."},{question:"How long are the English courses?",answer:"We offer flexible course durations ranging from 2 weeks to 12 months. Intensive courses typically run for 4-12 weeks, while standard courses can be taken for any duration. Business English and exam preparation courses usually require a minimum commitment of 8-12 weeks for optimal results."},{question:"What accommodation options are available?",answer:"We offer various accommodation options including: homestays with local families, student residences, shared apartments, and private studios. All options are carefully vetted and located within easy reach of our schools. Homestays are particularly popular for full language immersion."},{question:"Can I work while studying?",answer:"Work possibilities depend on your visa type and destination country. Many student visas allow part-time work (usually 20 hours per week). Our student services team can provide detailed information about work rights and help with job searching in your chosen destination."},{question:"What level of English do I need to start?",answer:"We accept students at all levels, from complete beginners to advanced speakers. Before starting, you'll take a placement test to ensure you're placed in the appropriate level. Our courses follow the Common European Framework of Reference (CEFR) from A1 to C2 levels."}],aE=[{title:"General English",rating:9.5,reviews:226,pricePerWeek:95,description:"Learn English at your own pace while making the most of your stay in Malta.",features:[{icon:"Clock",text:"20 classes of 45 min per week"},{icon:"Calendar",text:"You choose the number of weeks"},{icon:"Users",text:"15 students maximum per class"},{icon:"LineChart",text:"All levels"},{icon:"User",text:"From 16 to 99 years"}]},{title:"Intensive English",rating:9.2,reviews:229,pricePerWeek:189,description:"For those who want to learn faster. Combine exclusive Speaking classes with your General English course.",features:[{icon:"Clock",text:"30 classes of 45 min per week"},{icon:"Calendar",text:"You choose the number of weeks"},{icon:"Users",text:"15 students maximum per class"},{icon:"LineChart",text:"All levels"},{icon:"User",text:"From 16 to 99 years"}]},{title:"English 30+",rating:9.5,reviews:190,pricePerWeek:180,description:"For those who want to study with people of a similar age.",features:[{icon:"Clock",text:"20 or 30 classes per week"},{icon:"Calendar",text:"You choose the duration"},{icon:"Users",text:"15 students maximum per class"},{icon:"LineChart",text:"All levels"},{icon:"User",text:"From 30 years onwards"}]},{title:"Business English",rating:9.2,reviews:195,pricePerWeek:190,description:"For those looking to boost their professional career and access job opportunities worldwide.",features:[{icon:"Clock",text:"10, 20 or 30 classes per week"},{icon:"Calendar",text:"You choose the duration"},{icon:"Users",text:"Reduced groups"},{icon:"LineChart",text:"B1 level or higher"},{icon:"User",text:"From 18 years"}]}],nE=()=>(M.useEffect(()=>{kA.fromTo(".animated-text",{opacity:0,y:30},{opacity:1,y:0,duration:1,stagger:.2})},[]),e.jsxs("div",{className:"relative min-h-screen flex flex-col bg-gray-50",children:[e.jsx(Hz,{children:e.jsxs("div",{className:"min-h-screen bg-white",children:[e.jsx(Bz,{}),e.jsx(CA,{title:"Estudia inglés en Malta: Vive, Aprende trabaja y Crece",subtitle:"Tu aventura comienza aquí: Te ayudamos con visado, viaje, estadía, trabajo y más para que aprendas inglés en Malta.",bg_img:"https://maltalovers.com/wp-content/uploads/2017/05/cropped-Valletta2-2.jpg",main_btn_text:"Explore Courses",main_btn_link:"#courses",secondary_btn_text:"View Destinations",secondary_btn_link:"#destinations"}),e.jsx(SA,{services:Gz,title:"Nuestro Servicios",description:"Todo lo que necesitas para aprender inglés en el menor tiempo y al mejor costo"}),e.jsx(TA,{services:Uz,title:"Why Choose GlobalEnglish?",description:"Discover what sets us apart from other language schools"}),e.jsx(vA,{advantages:Zz,title:"Why Choose GlobalEnglish?",description:"Discover what sets us apart from other language schools"}),e.jsx(IA,{features:Wz,title:"Titulo",description:"description"}),e.jsx(DA,{courses:aE,title:"Test",description:"test"}),e.jsx(PA,{images:Jz,autoPlayInterval:5e3,title:"Campus Life Gallery",description:"Take a visual tour of our facilities and student activities"}),e.jsx(jA,{destinations:Xz,title:"Popular Destinations",description:"Choose from our carefully selected locations worldwide"}),e.jsx(MA,{courses:Yz,title:"Our Courses",description:"Find the perfect course to match your goals"}),e.jsx(LA,{videos:Kz,title:"Our Courses",description:"Find the perfect course to match your goals"}),e.jsx(NA,{testimonials:Qz,title:"Our Courses",description:"Find the perfect course to match your goals"}),e.jsx(AA,{faqs:tE,title:"Our Courses",description:"Find the perfect course to match your goals"}),e.jsx(Oz,{}),e.jsx(_A,{initialMessages:eE}),e.jsx(RA,{})]})}),e.jsx("footer",{className:"bg-gray-800 text-white py-8",children:e.jsxs("div",{className:"max-w-7xl mx-auto text-center space-y-4",children:[e.jsx("p",{className:"text-sm",children:"© 2024 Learn English. All Rights Reserved."}),e.jsxs("nav",{className:"flex justify-center space-x-6",children:[e.jsx("a",{href:"#home",className:"hover:text-yellow-400",children:"Home"}),e.jsx("a",{href:"#courses",className:"hover:text-yellow-400",children:"Courses"}),e.jsx("a",{href:"#contact",className:"hover:text-yellow-400",children:"Contact Us"})]})]})})]}));function rE({title:t,icon:a,jobs:n,viewAllText:r,viewAllHref:s,apiUrl:i}){const[o,l]=M.useState(n||[]),[d,h]=M.useState(!n),[u,p]=M.useState(null);M.useEffect(()=>{if(n)return;(async()=>{h(!0),p(null);try{const f=await fetch(i||"/api/featured-jobs");if(!f.ok)throw new Error(`Failed to fetch jobs: ${f.status}`);const v=await f.json();if(!Array.isArray(v))throw new Error("Expected an array of jobs");l(v)}catch(x){console.error("Error fetching jobs:",x),p(x instanceof Error?x.message:"Failed to load jobs"),l(y())}finally{h(!1)}})()},[n,i]);const y=()=>{const m=["Bet365","Entain","Flutter","DraftKings","Pinnacle"],x=["Game Developer","CRM Manager","VIP Account Manager","Compliance Specialist","UX Designer"],f=["Malta","London","Gibraltar","Remote","New York"];return Array.from({length:6},(v,k)=>({id:`mock-job-${k}`,title:x[k%x.length],company:m[k%m.length],companyLogo:`/logos/${m[k%m.length].toLowerCase()}.png`,location:f[k%f.length],salary:`€${Math.floor(Math.random()*30)+40},000`}))};return d?e.jsx("section",{className:"py-16 bg-white",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[...Array(3)].map((m,x)=>e.jsxs("div",{className:"border border-gray-200 rounded-lg p-6 animate-pulse",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-gray-200 rounded"}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"h-4 bg-gray-200 rounded w-3/4"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-1/2"})]})]}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-1/2 mb-4"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-1/4 mb-4"}),e.jsx("div",{className:"h-10 bg-gray-200 rounded"})]},x))})})}):u&&o.length===0?e.jsx("section",{className:"py-16 bg-white",children:e.jsx("div",{className:"container mx-auto px-4 text-center",children:e.jsxs("div",{className:"bg-red-50 border border-red-200 text-red-800 rounded-lg p-6 inline-block",children:[e.jsx("p",{children:u}),e.jsx(T,{variant:"outline",className:"mt-4 border-red-300 text-red-800",onClick:()=>window.location.reload(),children:"Try Again"})]})})}):e.jsx("section",{className:"py-16 bg-white",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[a&&e.jsx("div",{children:a}),e.jsx("h2",{className:"text-2xl font-bold",children:t})]}),o.length>0?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:o.map(m=>e.jsxs("div",{className:"border border-gray-200 rounded-lg p-6 hover:shadow-md transition-shadow",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-gray-100 rounded flex items-center justify-center",children:e.jsx("img",{src:m.companyLogo||"/placeholder.svg",alt:`${m.company} logo`,width:48,height:48,className:"rounded",onError:x=>{x.target.src="/placeholder.svg"}})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold",children:m.title}),e.jsx("p",{className:"text-gray-600 text-sm",children:m.company})]})]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600 mb-2",children:[e.jsx(Qe,{size:16}),e.jsx("span",{children:m.location})]}),e.jsx("div",{className:"text-green-600 font-medium mb-4",children:m.salary}),e.jsx(T,{className:"w-full bg-[#0f1219] hover:bg-[#1a2236]",children:"Apply Now"})]},m.id))}),e.jsx("div",{className:"mt-8 text-center",children:e.jsx(T,{variant:"outline",className:"border-[#0f1219] text-[#0f1219] hover:bg-[#0f1219] hover:text-white",onClick:()=>window.location.href=s,children:r})})]}):e.jsx("div",{className:"text-center py-8",children:e.jsx("p",{className:"text-gray-500",children:"No featured jobs available at the moment."})})]})})}function qA({title:t,description:a,primaryButtonText:n,primaryButtonHref:r,secondaryButtonText:s,secondaryButtonHref:i}){return e.jsx("section",{className:"py-16 bg-gradient-to-r from-[#1a2236] to-[#0f1219] text-white",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[e.jsx("h2",{className:"text-3xl font-bold mb-4",children:t}),e.jsx("p",{className:"text-xl text-gray-300 mb-8",children:a}),e.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[e.jsx(T,{className:"bg-yellow-500 hover:bg-yellow-400 text-black font-medium px-6 py-2 rounded",onClick:()=>window.location.href=r,children:n}),e.jsx(T,{variant:"outline",className:"bg-transparent border-white hover:bg-white/10 text-white font-medium px-6 py-2 rounded",onClick:()=>window.location.href=i,children:s})]})]})})})}function zA({title:t,subtitle:a,backgroundImage:n="/placeholder.svg?height=800&width=1600",primaryButtonText:r,primaryButtonLink:s="#",secondaryButtonText:i,secondaryButtonLink:o="#"}){return e.jsx("section",{className:"py-16 bg-gradient-to-r from-[#0f1219] to-[#1a2236] text-white relative overflow-hidden",children:e.jsx("div",{className:"container mx-auto px-4 relative z-10",children:e.jsx("div",{className:"relative z-10 container mx-auto px-4 text-center",children:e.jsxs("div",{className:"max-w-4xl mx-auto animate-fade-in",children:[e.jsxs("h1",{className:"text-4xl md:text-6xl font-bold text-primary-foreground mb-6 leading-tight",children:[t," ",e.jsx("span",{className:"bg-gradient-accent bg-clip-text text-transparent",children:"iGaming"})]}),e.jsx("p",{className:"text-xl md:text-2xl text-primary-foreground/80 mb-8 leading-relaxed",children:a}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center items-center animate-slide-in",children:[e.jsxs("a",{href:s,className:`justify-center whitespace-nowrap text-sm transition-colors
7742
7742
  focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none
7743
7743
  disabled:opacity-50 shadow h-9 bg-yellow-500 hover:bg-yellow-400 text-black font-medium px-6
7744
7744
  py-2 rounded flex items-center gap-2`,children:[e.jsx(Gt,{size:18}),r]}),e.jsxs("a",{href:o,className:`justify-center whitespace-nowrap text-sm transition-colors focus-visible:outline-none
@@ -7753,7 +7753,7 @@ React keys must be passed directly to JSX without using spread:
7753
7753
  p-2 rounded-lg transition-colors
7754
7754
  ${i?"text-yellow-600 bg-yellow-50 hover:bg-yellow-100":"text-gray-400 hover:text-gray-600 hover:bg-gray-100"}
7755
7755
  `,"aria-label":i?"Unsave job":"Save job",title:C,children:e.jsx(xa,{size:20,className:`transition-colors ${i?"fill-blue-600 text-yellow-600":""}`})}),v||w?e.jsx("button",{className:"flex-1 px-4 py-2 bg-gray-200 text-gray-600 rounded-lg cursor-not-allowed text-sm font-medium text-center","aria-disabled":"true",onClick:d,children:"Sign in to view links"}):e.jsx("a",{href:j,target:t.description&&t.description!=""?"_self":"_blank",rel:"noopener noreferrer",className:`flex-1 px-4 py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700
7756
- transition-colors text-sm font-medium text-center`,onClick:d,children:"Apply Now"})]}),!f&&e.jsx("p",{className:"mt-2 text-xs text-gray-500",children:"Create an account to save this item."})]})},kE=({jobs:t,onSaveJob:a,onViewJob:n,isJobSaved:r,userAccess:s})=>t.length===0?e.jsxs("div",{className:"no-results",children:[e.jsx("h3",{children:"No jobs found matching your criteria"}),e.jsx("p",{children:"Try adjusting your filters or search term"})]}):e.jsx("div",{className:"jobs-grid",children:t.map(i=>e.jsx(JA,{job:i,onSaveJob:a,onViewJob:n,isSaved:r(i),userAccess:s},i.link))}),vE=({currentPage:t,totalPages:a,setCurrentPage:n})=>{if(a<=1)return null;const r=[];if(a<=5)for(let i=1;i<=a;i++)r.push(i);else if(t<=3)for(let i=1;i<=5;i++)r.push(i);else if(t>=a-2)for(let i=a-4;i<=a;i++)r.push(i);else for(let i=t-2;i<=t+2;i++)r.push(i);return e.jsxs("div",{className:"pagination",children:[e.jsx("button",{className:"pagination-button prev-button",disabled:t===1,onClick:()=>n(t-1),children:e.jsx(Ga,{})}),r.map(i=>e.jsx("button",{className:`pagination-button ${t===i?"active":""}`,onClick:()=>n(i),children:i},i)),e.jsx("button",{className:"pagination-button next-button",disabled:t===a,onClick:()=>n(t+1),children:e.jsx(Wa,{})})]})},wE=({isOpen:t,onClose:a,filterKeys:n,filtersData:r,activeFilters:s,handleFilterChange:i,handleSearchChange:o,searchTerm:l,clearAllFilters:d,searchFilters:h,removeSearchFilter:u})=>e.jsx("div",{className:`fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full transition-opacity ${t?"opacity-100":"opacity-0 pointer-events-none"}`,children:e.jsx("div",{className:`fixed right-0 top-0 w-4/5 max-w-sm bg-white h-full shadow-xl transition-transform duration-300 ease-in-out ${t?"transform translate-x-0":"transform translate-x-full"}`,children:e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex justify-between items-center mb-4",children:[e.jsx("h2",{className:"text-lg font-semibold",children:"Filters"}),e.jsx("button",{onClick:a,className:"text-gray-500 hover:text-gray-700",children:e.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),e.jsx("div",{className:"mb-4",children:e.jsx("input",{type:"text",className:"w-full p-2 border border-gray-300 rounded-md",placeholder:"Search jobs...",value:l,onChange:p=>o(p.target.value)})}),n.map(p=>{var y;return e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{htmlFor:`mobile-${p}`,className:"block text-sm font-medium text-gray-700 mb-1",children:p.replace(/_/g," ")}),e.jsxs("select",{id:`mobile-${p}`,className:"w-full p-2 border border-gray-300 rounded-md",onChange:m=>i(p,m.target.value),value:s[p]||"",children:[e.jsxs("option",{value:"",children:["Select ",p.replace(/_/g," ")]}),(y=r[p])==null?void 0:y.map(m=>e.jsx("option",{value:m,children:m},m))]})]},p)}),Object.keys(s).length>0&&e.jsxs("div",{className:"mt-4",children:[e.jsx("h3",{className:"text-sm font-semibold mb-2",children:"Active Filters:"}),Object.entries(s).map(([p,y])=>e.jsxs("div",{className:"inline-flex items-center bg-yellow-100 text-yellow-800 rounded-full px-3 py-1 text-sm mr-2 mb-2",children:[e.jsxs("span",{children:[p.replace(/_/g," "),": ",y]}),e.jsx("button",{className:"ml-2 text-yellow-600 hover:text-yellow-800",onClick:()=>i(p,""),children:"×"})]},p)),e.jsx("button",{className:"mt-2 w-full bg-red-100 text-red-800 rounded-md px-3 py-2 text-sm font-medium",onClick:d,children:"Clear All Filters"})]})]})})}),bE=({apiUrl:t,itemsPerPage:a,filterKeys:n,enableSearch:r,enablePagination:s,enableMobileFilter:i,banners:o,userAccess:l})=>{const[d,h]=M.useState([]),[u,p]=M.useState(1),[y,m]=M.useState({}),[x,f]=M.useState([]),[v,k]=M.useState({}),[w,b]=M.useState(""),[C,j]=M.useState([]),[I,N]=M.useState(!1),S=Yj(l);M.useEffect(()=>{fetch(`${t}/items`).then(le=>le.json()).then(le=>{h(le)}).catch(le=>console.error("Error fetching items:",le))},[t]);const L=le=>{const ae={};le.forEach(we=>{n.forEach(J=>{ae[J]||(ae[J]=new Set);const ne=we[J];ne!=null&&ae[J].add(String(ne))})});const fe={};return Object.keys(ae).forEach(we=>{fe[we]=Array.from(ae[we])}),fe};function q(le,ae,fe){let we=le.filter(J=>Object.entries(ae).every(([ne,ke])=>{const ge=J[ne];return typeof ge=="string"&&ge.toLowerCase()===ke.toLowerCase()}));return fe.length>0&&(we=we.filter(J=>fe.every(ne=>J.title.toLowerCase().includes(ne.toLowerCase())))),we}const _=M.useMemo(()=>q(d,y,x),[y,d,x]),A=(le,ae)=>{m(fe=>{const we=ae?{...fe,[le]:ae}:{...fe};return ae||delete we[le],we})},D=le=>{if(b(le),le){const ae=d.map(fe=>fe.title).filter((fe,we,J)=>fe&&fe.toLowerCase().includes(le.toLowerCase())&&J.indexOf(fe)===we).slice(0,5);j(ae)}else j([])},H=le=>{if(le.key==="Enter"&&w.trim()){le.preventDefault();const ae=[...x,w.trim()];f(ae),b("")}},G=le=>{const ae=x.filter(fe=>fe!==le);f(ae)},V=()=>{m({}),f([]),p(1)};M.useEffect(()=>{k(L(_))},[n,_]),M.useEffect(()=>{p(1)},[y,x]);const $=()=>{N(!I)},F=(le,ae)=>{},re=le=>{},K=le=>!1,X=Math.ceil(_.length/a),Z=_.slice((u-1)*a,u*a);return e.jsxs("div",{className:"flex flex-col min-h-screen",children:[e.jsx("div",{className:"flex-grow",children:e.jsxs("div",{className:"job-listings-container",children:[e.jsx("div",{className:"header-container",children:e.jsxs("div",{className:"header-content",children:[e.jsx("h1",{className:"main-title",children:"Job Listings"}),e.jsxs("p",{className:"items-count",children:["Total: ",e.jsx("span",{className:"count-value",children:_.length})]})]})}),e.jsx("button",{className:"md:hidden w-full mb-4 px-4 py-2 bg-yellow-600 text-white rounded-md",onClick:$,children:I?"Close Filters":"Open Filters"}),e.jsxs("div",{className:"hidden md:block filters-container",children:[e.jsx(xE,{searchTerm:w,handleSearchChange:D,handleSearchKeyDown:H,suggestions:C}),e.jsx(fE,{filterKeys:n,filtersData:v,activeFilters:y,handleFilterChange:A,searchFilters:x,removeSearchFilter:G,clearAllFilters:V,searchableFilters:["company"]})]}),e.jsx(wE,{isOpen:I,onClose:$,filterKeys:n,filtersData:v,activeFilters:y,handleFilterChange:A,handleSearchChange:D,searchTerm:w,clearAllFilters:V,handleSearchKeyDown:H,searchFilters:x,removeSearchFilter:G}),e.jsxs("div",{className:"flex flex-col md:flex-row",children:[e.jsxs("div",{className:"w-full md:w-3/4 md:pr-4",children:[e.jsx("h2",{className:"section-title",children:"Open Positions"}),e.jsx(kE,{jobs:Z,onSaveJob:F,onViewJob:re,isJobSaved:K,userAccess:S}),e.jsx(vE,{currentPage:u,totalPages:X,setCurrentPage:p})]}),e.jsx("div",{className:"w-full md:w-1/4 mt-4 md:mt-0",children:e.jsx("div",{className:"sticky top-4",children:o.sidebar.enabled&&o.sidebar.url&&e.jsx(fl,{position:"sidebar",url:o.sidebar.url,link:o.sidebar.link,alt:o.sidebar.alt})})})]})]})}),o.bottom.enabled&&o.bottom.url&&e.jsx(fl,{position:"top",url:o.bottom.url,link:o.bottom.link,alt:o.bottom.alt})]})},ME=({title:t="Subscribe to our newsletter",description:a="The latest job opportunities and career tips, weekly in your inbox.",links:n=[]})=>{const[r,s]=M.useState(!1),[i,o]=M.useState(null);M.useEffect(()=>{try{const d=localStorage.getItem("email");d&&(s(!0),o(d))}catch{}},[]);const l=d=>{d.preventDefault()};return e.jsx("footer",{className:"bg-gray-800 text-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:py-16 lg:px-8",children:[e.jsxs("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[e.jsx("div",{className:"grid grid-cols-2 gap-8 xl:col-span-2",children:e.jsx("div",{className:"md:grid md:grid-cols-2 md:gap-8",children:Array.isArray(n)&&n.map((d,h)=>{var u;return Array.isArray(d)&&d.length>0?e.jsxs("div",{className:"mt-12 md:mt-0",children:[e.jsx("h3",{className:"text-sm font-semibold text-gray-400 tracking-wider uppercase",children:((u=d[0])==null?void 0:u.text)||"Section"}),e.jsx("ul",{className:"mt-4 space-y-4",children:d.map((p,y)=>e.jsx("li",{children:e.jsx("a",{href:p.url,className:"hover:text-gray-300",children:p.text})},y))})]},h):null})})}),e.jsxs("div",{className:"mt-8 xl:mt-0",children:[e.jsx("h3",{className:"text-sm font-semibold text-gray-400 tracking-wider uppercase",children:t}),e.jsx("p",{className:"mt-4 text-base text-gray-300",children:a}),r?e.jsxs("p",{className:"mt-4 text-green-400 font-medium",children:["✅ You’re subscribed",i?` as ${i}`:"","!"]}):e.jsxs("form",{className:"mt-4 sm:flex sm:max-w-md",onSubmit:l,children:[e.jsx("label",{htmlFor:"email-address",className:"sr-only",children:"Email address"}),e.jsx("input",{type:"email",name:"email-address",id:"email-address",autoComplete:"email",required:!0,className:"appearance-none min-w-0 w-full bg-white border border-transparent rounded-md py-2 px-4 text-base text-gray-900 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white focus:border-white focus:placeholder-gray-400",placeholder:"Enter your email"}),e.jsx("div",{className:"mt-3 rounded-md sm:mt-0 sm:ml-3 sm:flex-shrink-0",children:e.jsx("button",{type:"submit",className:"w-full bg-yellow-600 border border-transparent rounded-md py-2 px-4 flex items-center justify-center text-base font-medium text-white hover:bg-yellow-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-blue-500",children:"Subscribe"})})]})]})]}),e.jsx("div",{className:"mt-8 border-t border-gray-700 pt-8",children:e.jsxs("p",{className:"text-base text-gray-400 xl:text-center",children:["© ",new Date().getFullYear()," JobBoard, Inc. All rights reserved."]})})]})})},jE=({logo:t="",links:a=[],buttonText:n="Post a Job",buttonUrl:r="/post-job"})=>e.jsx("nav",{className:"bg-white shadow-md",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex justify-between h-16",children:[e.jsxs("div",{className:"flex",children:[e.jsx("div",{className:"flex-shrink-0 flex items-center",children:e.jsx("a",{href:"/",className:"text-xl font-bold text-yellow-600",children:t?e.jsx("img",{src:t,alt:"Logo",className:"h-6 w-6"}):e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"mercado-match h-6 w-6",focusable:"false",children:e.jsx("path",{d:"M20.5 2h-17A1.5 1.5 0 002 3.5v17A1.5 1.5 0 003.5 22h17a1.5 1.5 0 001.5-1.5v-17A1.5 1.5 0 0020.5 2zM8 19H5v-9h3zM6.5 8.25A1.75 1.75 0 118.3 6.5a1.78 1.78 0 01-1.8 1.75zM19 19h-3v-4.74c0-1.42-.6-1.93-1.38-1.93A1.74 1.74 0 0013 14.19a.66.66 0 000 .14V19h-3v-9h2.9v1.3a3.11 3.11 0 012.7-1.4c1.55 0 3.36.86 3.36 3.66z"})})})}),e.jsx("div",{className:"hidden sm:ml-6 sm:flex sm:space-x-8",children:a.map((s,i)=>e.jsx("a",{href:s.url,className:"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium",children:s.text},i))})]}),e.jsx("div",{className:"hidden sm:ml-6 sm:flex sm:items-center",children:e.jsx("a",{href:r,className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-yellow-600 hover:bg-yellow-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",children:n})})]})})}),XA=()=>{const[t,a]=M.useState("");M.useEffect(()=>{typeof window<"u"&&a(window.location.pathname)},[]);const n=r=>t===r;return e.jsx("nav",{className:"fixed bottom-0 left-0 right-0 bg-white dark:bg-gray-800 border-t border-gray-200 dark:border-gray-700 md:hidden z-50",children:e.jsxs("div",{className:"grid grid-cols-5 h-16",children:[e.jsxs("a",{href:"/","aria-label":"Home",className:`flex flex-col items-center justify-center ${n("/")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[e.jsx(Ua,{className:"w-6 h-6"}),e.jsx("span",{className:"text-xs mt-1",children:"Home"})]}),e.jsxs("a",{href:"/companies","aria-label":"Companies",className:`flex flex-col items-center justify-center relative ${n("/companies")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[e.jsx(rt,{className:"w-6 h-6"}),e.jsx("span",{className:"text-xs mt-1",children:"Companies"})]}),e.jsxs("a",{href:"/jobs","aria-label":"Jobs",className:`flex flex-col items-center justify-center ${n("/jobs")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[e.jsx(Ze,{className:"w-6 h-6"}),e.jsx("span",{className:"text-xs mt-1",children:"Jobs"})]}),e.jsxs("a",{href:"/courses","aria-label":"Courses",className:`flex flex-col items-center justify-center ${n("/courses")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[e.jsx(ia,{className:"w-6 h-6"}),e.jsx("span",{className:"text-xs mt-1",children:"Courses"})]}),e.jsxs("a",{href:"/news","aria-label":"News",className:`flex flex-col items-center justify-center ${n("/news")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[e.jsx(Aa,{className:"w-6 h-6"}),e.jsx("span",{className:"text-xs mt-1",children:"News"})]})]})})},CE=t=>{const a=["Acme Inc","TechCorp","Global Solutions","Innovate Labs","Future Tech"],n=["Engineering","Marketing","Sales","Design","Product","HR"],r=["New York, NY","San Francisco, CA","Austin, TX","Seattle, WA","Remote"],s=["New York","San Francisco","Austin","Seattle","Chicago"],i=["USA","Canada","UK","Germany","Australia"],o=["Startup","Enterprise","Agency","Nonprofit","Government"],l=d=>{const h=new Date;return h.setDate(h.getDate()-Math.floor(Math.random()*d)),h.toISOString()};return Array.from({length:t},(d,h)=>{const u=l(120);return{id:`job-${h}`,title:`${n[h%n.length]} ${h%3===0?"Senior":h%3===1?"Mid-level":"Junior"} Position`,company:a[h%a.length],department:n[h%n.length],location:r[h%r.length],city:s[h%s.length],country:i[h%i.length],company_type:o[h%o.length],link:"#job-link",logo:`/placeholder.svg?height=50&width=50&text=${a[h%a.length].charAt(0)}`,overview:"This is a mock job description for preview purposes. The actual job details would appear here with information about responsibilities, requirements, and company culture.",slug:`job-${h}`,scraped_at:new Date().toISOString(),published_at:u,created_at:u,views:Math.floor(Math.random()*2e3),sponsored:h%7===0}})},YA=({activeDateFilter:t,onDateFilterChange:a,dateFieldLabel:n="Published",options:r=[{value:"all",label:"All Time"},{value:"today",label:"Today"},{value:"this_week",label:"This Week"},{value:"this_month",label:"This Month"},{value:"last_30_days",label:"Last 30 Days"},{value:"last_90_days",label:"Last 90 Days"}]})=>e.jsxs("div",{className:"date-filter",children:[n&&e.jsxs("label",{htmlFor:"date-filter",className:"text-sm font-medium text-gray-700 mr-2",children:[n,":"]}),e.jsx("select",{id:"date-filter",value:t,onChange:s=>a(s.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow--500 focus:border-yellow--500 bg-white",children:r.map(s=>e.jsx("option",{value:s.value,children:s.label},s.value))})]}),KA=({activeDateFilter:t,handleDateFilterChange:a,filterKeys:n,searchableFilters:r,dateFieldLabel:s,activeFilters:i,handleFilterChange:o,toggleSavedJobsFilter:l,filtersData:d,savedJobs:h=[],showOnlySaved:u=!1,isMobileFilterOpen:p,toggleMobileFilter:y,dateOptions:m=[{value:"all",label:"All Time"},{value:"today",label:"Today"},{value:"this_week",label:"This Week"},{value:"this_month",label:"This Month"},{value:"last_30_days",label:"Last 30 Days"},{value:"last_90_days",label:"Last 90 Days"}]})=>e.jsx("div",{children:e.jsxs("div",{className:p?"block":"hidden",children:[e.jsx("div",{className:"fixed inset-0 bg-gray-600 bg-opacity-75 z-40",onClick:()=>y(!p)}),e.jsxs("div",{className:"fixed inset-y-0 right-0 max-w-xs w-full bg-white shadow-xl z-50 overflow-y-auto",children:[e.jsxs("div",{className:"p-4 border-b border-gray-200 flex items-center justify-between",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900",children:"Filters"}),e.jsx("button",{onClick:()=>y(!p),className:"p-2 rounded-full hover:bg-gray-100","aria-label":"Close filters",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"grid grid-cols-[120px_1fr] items-center gap-1 mb-4",children:[e.jsx("span",{className:"text-sm font-medium text-gray-900",children:s}),e.jsx(YA,{activeDateFilter:t,onDateFilterChange:a,dateFieldLabel:"",options:m})]}),n.map(x=>{var v;const f=x.replace(/_/g," ");return e.jsxs("div",{className:"grid grid-cols-[120px_1fr] items-center gap-1 mb-4",children:[e.jsx("span",{className:"text-sm font-medium text-gray-900 capitalize whitespace-nowrap",children:f}),r.includes(x)?e.jsx(Xj,{options:d[x]||[],value:i[x]||"",onChange:k=>o(x,k),placeholder:`Select ${f}`,className:"w-full"}):e.jsxs("select",{className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow-500 focus:border-yellow-500 bg-white",value:i[x]||"",onChange:k=>o(x,k.target.value),children:[e.jsxs("option",{value:"",children:["Select ",f]}),(v=d[x])==null?void 0:v.map(k=>e.jsx("option",{value:k,children:k},k))]})]},x)}),e.jsx("div",{className:"mt-4 pt-4 border-t border-gray-200",children:e.jsx("button",{onClick:()=>y(!p),className:"w-full py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700 transition-colors",children:"Apply Filters"})})]})]})]})}),mS=({totalColumns:t=2})=>e.jsx("div",{className:"flex-grow p-8 animate-fade-in",children:e.jsx("div",{className:"max-w-7xl mx-auto",children:e.jsxs("div",{className:"animate-pulse",children:[e.jsx("div",{className:"h-8 bg-gray-200 rounded w-1/4 mb-6"}),e.jsx("div",{className:`grid grid-cols-1 md:grid-cols-${t} gap-6`,children:[...Array(4)].map((a,n)=>e.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[e.jsx("div",{className:"h-6 bg-gray-200 rounded w-3/4 mb-4"}),e.jsx("div",{className:"h-4 bg-gray-200 rounded w-1/2 mb-2"}),e.jsx("div",{className:"h-4 bg-gray-200 rounded w-1/3 mb-4"}),e.jsx("div",{className:"h-20 bg-gray-200 rounded mb-4"}),e.jsx("div",{className:"h-8 bg-gray-200 rounded w-full"})]},n))})]})})}),yS=({data:t,onSelect:a,placeholder:n="Search...",debounceMs:r=250,onTyping:s,className:i="",showSubmitButton:o=!1})=>{const[l,d]=M.useState(""),[h,u]=M.useState([]),[p,y]=M.useState(!1),m=M.useRef(null),x=k=>{d(k),y(!0),s&&s(k)},f=()=>{d(""),u([]),y(!1),s==null||s("")},v=k=>{a(k),d(""),u([]),y(!1)};return M.useEffect(()=>{m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{if(!l){u([]);return}const k=t.filter(w=>w.toLowerCase().includes(l.toLowerCase())).filter((w,b,C)=>C.indexOf(w)===b).slice(0,5);u(k)},r)},[l,t]),e.jsxs("div",{className:`relative w-full ${i}`,children:[e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:e.jsx(Gt,{className:"h-4 w-4 text-gray-400"})}),e.jsx("input",{type:"text",className:"w-full py-2 pl-9 pr-12 flex w-full rounded-md border border-input bg-background px-3 py-2 ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm pl-10 h-12 text-lg",placeholder:n,value:l,onChange:k=>x(k.target.value),onFocus:()=>y(h.length>0),onBlur:()=>setTimeout(()=>y(!1),200),onKeyDown:k=>{k.key==="Enter"&&l.trim()&&(k.preventDefault(),v(l.trim()))}}),l&&!o&&e.jsx("button",{onClick:f,className:"absolute inset-y-0 right-2 flex items-center",children:e.jsx(Ct,{className:"h-4 w-4 text-gray-400 hover:text-gray-600"})}),o&&e.jsx("button",{onClick:()=>l.trim()&&v(l.trim()),className:"absolute right-2 top-1/2 -translate-y-1/2 bg-yellow-500 text-white py-1.5 px-2 rounded-md hover:bg-yellow-600",children:e.jsx(Gt,{className:"h-4 w-4"})})]}),p&&h.length>0&&e.jsx("ul",{className:"absolute z-10 mt-1 w-full bg-white border border-gray-200 rounded-lg shadow-md",children:h.map((k,w)=>e.jsx("li",{children:e.jsx("button",{className:"w-full px-4 py-2 text-left text-sm text-gray-700 hover:bg-gray-100",onClick:()=>v(k),children:e.jsxs("div",{className:"flex items-center",children:[e.jsx(Gt,{className:"h-4 w-4 mr-2 text-gray-400"}),k]})})},w))})]})},fS=({onSearchChange:t,title:a="Gaming News",description:n="Latest news and insights from the gaming industry",searchPlaceholder:r="Search news...",popularTags:s=["AI Gaming","Esports","VR/AR","Mobile Gaming","Regulation","Market Analysis"],generateHref:i=u=>`?q=${encodeURIComponent(u)}`,onTagClick:o,onTagRemove:l,popularTagColor:d="#CA8A04",allowTagRemoval:h=!1})=>{M.useState("");const[u,p]=M.useState(()=>new Set),y=s.filter(x=>!u.has(x)),m=x=>{p(f=>{const v=new Set(f);return v.add(x),v}),l==null||l(x)};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"bg-white border-b",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4",children:e.jsx("div",{className:"flex items-center justify-between",children:e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:a}),e.jsx("p",{className:"hidden lg:block text-gray-600",children:n})]})})})}),e.jsx("div",{className:"bg-white border-b",children:e.jsx("div",{className:"max-w-7xl mx-auto py-4 px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"overflow-x-auto",children:y.length>0&&e.jsxs("div",{className:"flex items-center space-x-6 py-2 text-sm",children:[e.jsx("span",{className:"text-gray-600 font-medium flex-shrink-0",children:"Popular:"}),y.map(x=>e.jsx(VC,{name:`#${x}`,color:d,size:"sm",href:o?void 0:i(x),onClick:o?()=>o(x):void 0,removable:h,onRemove:h?()=>m(x):void 0},x))]})})})})]})},SE=t=>t.toLowerCase().replace(/anti[-\s]?money[-\s]?laundering/g,"aml").replace(/counter[-\s]?terrorist[-\s]?financing/g,"cft").replace(/personal management licence/g,"pml").replace(/general data protection regulation/g,"gdpr");function xS(t){const a=SE(t),n={gambling:["igaming","casino","slot","slots","bingo","poker","blackjack","roulette","lottery","rgs","rng","rmg","betting","sportsbook","land based"],compliance:["aml","money laundering","gdpr","compliance","licence","mlro","data protection","responsible gaming","player protection","key function","pml","mga","cft"],business:["crm","vip","affiliate","payments","analytics","marketing","governance","leadership","strategy"],format:["course","tutorial","guide","webinar","workshop","lecture","series","academy","masterclass"],misc:["ai","blockchain","gamification","diversity","inclusion","metaverse","remote","advanced"]},r=[...n.gambling,...n.compliance,...n.business,...n.format,...n.misc];for(const s of r)if(new RegExp(`\\b${s.replace(/\s+/g,"\\s+")}\\b`,"i").test(a))return s;return null}function NE(t){const a=xS(t);return a||LE(t)}function LE(t){const a=new Set(["the","of","and","to","a","in","for","with","on","at","by","is","from","as","it","that","this","how","new","you","your"]),n=t.toLowerCase().split(/\W+/).filter(i=>i.length>2&&!a.has(i)),r={};for(const i of n)r[i]=(r[i]||0)+1;const s=Object.entries(r).sort((i,o)=>o[1]-i[1]);return s.length>0?s[0][0]:null}const gS=({filters:t,onClearAll:a,handleCreateAlert:n,className:r=""})=>t.length===0?null:e.jsxs("div",{className:`flex flex-wrap gap-2 ${r}`,children:[t.map(s=>e.jsxs("div",{className:"inline-flex items-center bg-yellow-100 text-indigo-800 rounded-full px-3 py-1 text-sm",children:[s.label&&e.jsxs("span",{className:"font-medium mr-1",children:[s.label,":"]}),e.jsx("span",{children:s.value}),e.jsx("button",{className:"ml-2 text-indigo-600 hover:text-indigo-800",onClick:s.onRemove,"aria-label":`Remove ${s.label||s.key} filter`,children:e.jsx(ja,{size:14})})]},`${s.key}-${s.value}`)),e.jsx("button",{className:"inline-flex items-center bg-gray-100 text-gray-800 hover:bg-gray-200 rounded-full px-3 py-1 text-sm",onClick:a,children:"Clear All"}),e.jsx("button",{onClick:n,className:"inline-flex items-center bg-indigo-100 text-indigo-800 hover:bg-indigo-200 rounded-full px-3 py-1 text-sm font-medium",children:"🔔 Create Alert"})]}),QA=({viewMode:t,onToggle:a,className:n=""})=>e.jsxs("div",{className:`view-mode-toggle flex bg-gray-100 p-1 rounded-lg ${n}`,children:[e.jsxs("button",{onClick:a,className:`px-3 py-1.5 rounded-md flex items-center justify-center transition-colors ${t==="grid"?"bg-yellow-600 text-white shadow-sm":"text-gray-700 hover:bg-gray-200"}`,"aria-label":"Grid view","aria-pressed":t==="grid",children:[e.jsx(ma,{size:16,className:"mr-1.5"}),e.jsx("span",{className:"text-sm font-medium",children:"Grid"})]}),e.jsxs("button",{onClick:a,className:`px-3 py-1.5 rounded-md flex items-center justify-center transition-colors ${t==="list"?"bg-yellow-600 text-white shadow-sm":"text-gray-700 hover:bg-gray-200"}`,"aria-label":"List view","aria-pressed":t==="list",children:[e.jsx(Wc,{size:16,className:"mr-1.5"}),e.jsx("span",{className:"text-sm font-medium",children:"List"})]})]}),eP=({value:t,onChange:a,options:n=[5,10,20,50],className:r=""})=>e.jsxs("div",{className:`flex items-center ${r}`,children:[e.jsx("label",{htmlFor:"items-per-page",className:"mr-2 text-sm font-medium text-gray-700",children:"Show:"}),e.jsx("select",{id:"items-per-page",value:t,onChange:s=>a(Number(s.target.value)),className:"px-2 py-1.5 border border-gray-300 rounded-md text-sm bg-white",children:n.map(s=>e.jsx("option",{value:s,children:s},s))})]}),kS=({viewMode:t,onToggleViewMode:a,selectedItemsPerPage:n,onItemsPerPageChange:r,totalCount:s,startIndex:i,endIndex:o,title:l})=>e.jsx("div",{className:"lg:block hidden bg-white rounded-lg shadow-sm border border-gray-200 p-4 mb-6",children:e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:l}),e.jsxs("p",{className:"text-sm text-gray-600",children:["Showing ",e.jsx("span",{className:"font-semibold text-gray-900",children:i}),"–",e.jsx("span",{className:"font-semibold text-gray-900",children:o})," of"," ",e.jsx("span",{className:"font-semibold text-gray-900",children:s})," articles"]})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3",children:[e.jsx(QA,{viewMode:t,onToggle:a}),e.jsx(eP,{value:n,onChange:r})]})]})}),IE=({title:t,description:a,ctaText:n,ctaLink:r,bgColor:s="bg-yellow-50",textColor:i="text-yellow-800"})=>e.jsx("div",{className:`promo-card ${s} p-4 rounded-lg shadow-sm hidden md:block`,children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("h3",{className:`font-bold text-lg ${i}`,children:t}),e.jsx("p",{className:`text-sm mt-1 ${i} opacity-90`,children:a})]}),e.jsx("a",{href:r,className:"bg-white text-yellow-600 hover:bg-yellow-50 px-4 py-2 rounded-md text-sm font-medium shadow-sm transition-colors",children:n})]})}),AE=({items:t,cardType:a,viewMode:n,savedJobs:r,onSaveJob:s,onViewJob:i,onApplyJob:o,firstItemRef:l=null,userAccess:d})=>{const[h,u]=M.useState([]),[p,y]=M.useState(null);M.useEffect(()=>{try{if(!Array.isArray(t)){console.error("❌ Items is not an array:",t),y("Invalid data format received"),u([]);return}const x=[...t];t.length>5&&x.splice(5,0,{id:"promo-1",title:"Promo",isPromo:!0}),u(x),y(null)}catch(x){console.error("Error processing items:",x),y(`Error processing items: ${x instanceof Error?x.message:String(x)}`),u([])}},[t]);const m=(x,f)=>{const k=f===0&&!x.isPromo?{ref:l}:{};try{if(x.isPromo)return e.jsx("div",{className:"col-span-full my-4",children:e.jsx(IE,{title:"Upgrade Your Job Search",description:"Get personalized job recommendations and stand out to employers.",ctaText:"Learn More",ctaLink:"#premium-features",bgColor:"bg-yellow-50",textColor:"text-yellow-800"})},`promo-${f}`);if(!x||typeof x!="object")return console.error("❌ Invalid item detected:",x),e.jsxs("div",{className:"error-card bg-red-50 p-4 rounded-md border border-red-200",children:[e.jsx("p",{className:"text-red-800 font-medium",children:"Invalid Job Data"}),e.jsx("p",{className:"text-red-600 text-sm",children:"The job data is in an unexpected format."})]});const w=x.id?`${x._id}-${f}`:x.slug?`${x.slug}-${f}`:`item-${f}`;switch(a){case"job":return e.jsx("div",{...k,children:e.jsx(JA,{job:x,positionInList:f,onSaveJob:b=>s(b,f),onViewJob:(b,C,j)=>i(b,f,j),onApplyJob:o?(b,C,j)=>o(b,f,j):void 0,isSaved:r.includes(x.id||x.slug||x.link),userAccess:d})},w);default:return console.warn(`⚠️ Unknown cardType: ${a}`),e.jsxs("div",{className:"error-card bg-yellow-50 p-4 rounded-md border border-yellow-200",children:[e.jsx("p",{className:"text-yellow-800 font-medium",children:"Unknown Card Type"}),e.jsx("p",{className:"text-yellow-700 text-sm",children:"The specified card type is not supported."})]})}}catch(w){return console.error("Error rendering card:",w),e.jsxs("div",{className:"error-card bg-red-50 p-4 rounded-md border border-red-200",children:[e.jsx("p",{className:"text-red-800 font-medium",children:"Error Rendering Card"}),e.jsx("p",{className:"text-red-600 text-sm",children:w instanceof Error?w.message:String(w)})]})}};return p?e.jsxs("div",{className:"bg-red-50 border border-red-200 text-red-800 rounded-lg p-6",children:[e.jsx("h3",{className:"font-semibold mb-2",children:"Error Loading Items"}),e.jsx("p",{children:p})]}):h.length===0?e.jsxs("div",{className:"no-results",children:[e.jsx("h3",{children:"No items found matching your criteria"}),e.jsx("p",{children:"Try adjusting your filters or search term"})]}):e.jsx("div",{className:n==="grid"?"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4":"flex flex-col gap-4","data-view-mode":n,children:h.map((x,f)=>m(x,f))})},Kj=({currentPage:t,totalPages:a,onPageChange:n})=>{if(a<=1)return null;const r=5,s=Math.max(1,t-Math.floor(r/2)),i=Math.min(a,s+r-1),o=[];for(let l=s;l<=i;l++)o.push(l);return e.jsx("div",{className:"mt-6 flex justify-center",children:e.jsxs("nav",{className:"flex items-center space-x-2",children:[e.jsx("button",{onClick:()=>n(Math.max(1,t-1)),disabled:t===1,className:"px-3 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-md hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed",children:e.jsx(Ga,{})}),o.map(l=>e.jsx("button",{onClick:()=>n(l),className:`px-3 py-2 text-sm font-medium rounded-md ${t===l?"bg-yellow-600 text-white":"text-gray-700 bg-white border border-gray-300 hover:bg-gray-50"}`,children:l},l)),e.jsx("button",{onClick:()=>n(Math.min(a,t+1)),disabled:t===a,className:"px-3 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-md hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed",children:e.jsx(Wa,{})})]})})},PE=({jobs:t,onViewJob:a})=>!t||t.length===0?null:e.jsxs("div",{className:"last-visited-jobs mt-8 bg-white rounded-lg shadow p-4",children:[e.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Recently Viewed Jobs"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:t.map((n,r)=>e.jsxs("div",{className:"p-3 border rounded-md hover:shadow-md transition-shadow cursor-pointer",onClick:()=>a(n,r,"same_tab","last_visited"),children:[e.jsxs("div",{className:"flex items-center mb-2",children:[e.jsx("img",{src:n.logo||"/placeholder.svg?height=30&width=30",alt:`${n.company} logo`,className:"w-6 h-6 mr-2"}),e.jsx("h3",{className:"font-medium text-sm truncate",children:n.title})]}),e.jsx("p",{className:"text-xs text-gray-600 truncate",children:n.company}),e.jsx("p",{className:"text-xs text-gray-500 truncate",children:n.location})]},n._id||n.slug||n.link))})]}),_E=(t,a,n="date")=>{if(a==="all")return t;const r=new Date,s=new Date(r.getFullYear(),r.getMonth(),r.getDate());return t.filter(i=>{const o=i[n]||i.created_at||i.published_at||i.scraped_at;if(!o)return!1;const l=new Date(o);switch(a){case"today":return l>=s;case"this_week":{const d=new Date(r);return d.setDate(r.getDate()-r.getDay()),d.setHours(0,0,0,0),l>=d}case"this_month":{const d=new Date(r.getFullYear(),r.getMonth(),1);return l>=d}case"last_30_days":{const d=new Date(r);return d.setDate(r.getDate()-30),l>=d}case"last_90_days":{const d=new Date(r);return d.setDate(r.getDate()-90),l>=d}default:return!0}})},RE=(t,a)=>t.filter(n=>{var r,s,i,o,l;if(a.jobTypes.length>0){const d=((r=n.department)==null?void 0:r.toLowerCase())||"";if(!a.jobTypes.some(h=>d.includes(h)))return!1}if(a.experienceLevels.length>0){const d=((s=n.title)==null?void 0:s.toLowerCase())||"";if(!a.experienceLevels.some(h=>!!(h==="senior"&&d.includes("senior")||h==="mid"&&(d.includes("mid")||d.includes("mid-level"))||h==="entry"&&(d.includes("junior")||d.includes("entry")))))return!1}return!(a.country&&!(((i=n.location)==null?void 0:i.toLowerCase())||((o=n.city)==null?void 0:o.toLowerCase())||"").includes(a.country.toLowerCase())||a.city&&!(((l=n.company_type)==null?void 0:l.toLowerCase())||"").includes(a.city.toLowerCase()))}),il=(t,a)=>{const n={};for(const r of t)for(const s of a){n[s]||(n[s]=new Set);const i=r[s];Array.isArray(i)?i.forEach(o=>{typeof o=="string"&&o.trim()&&n[s].add(o.trim())}):typeof i=="string"&&i.trim()&&n[s].add(i.trim())}return Object.fromEntries(Object.entries(n).map(([r,s])=>[r,Array.from(s)]))},tP=t=>{const a=new URLSearchParams(window.location.search);t==="all"?a.delete("date_filter"):a.set("date_filter",t);const n=`${window.location.pathname}?${a.toString()}`;window.history.replaceState({},"",n)},po=(t,a,n,r,s="date")=>{let i=t.filter(o=>Object.entries(a).every(([l,d])=>{const h=o[l];return typeof h=="string"?h.toLowerCase()===d.toLowerCase():Array.isArray(h)?h.some(u=>typeof u=="string"&&u.toLowerCase()===d.toLowerCase()):!1}));return n.length>0&&(i=i.filter(o=>n.every(l=>{var d,h;return((d=o.title)==null?void 0:d.toLowerCase().includes(l.toLowerCase()))||((h=o.overview)==null?void 0:h.toLowerCase().includes(l.toLowerCase()))}))),i=_E(i,r,s),i},Il=(t,a,n=[],r="date")=>{const s=d=>{const h=d[r]||d.created_at||d.published_at||d.scraped_at;return h?new Date(h).getTime():0},i=d=>{var u;const h=d.views??d.viewCount??((u=d.metrics)==null?void 0:u.views)??0;return typeof h=="number"?h:0},o=d=>{if(n.length===0)return 0;const h=(d.title??"").toLowerCase(),u=(d.overview??"").toLowerCase();return n.reduce((p,y)=>{const m=y.toLowerCase();let x=p;return h.includes(m)&&(x+=3),u.includes(m)&&(x+=1),x},0)},l=[...t];return l.sort((d,h)=>{switch(a){case"date_asc":return s(d)-s(h);case"views_desc":return i(h)-i(d);case"views_asc":return i(d)-i(h);case"relevance":{const u=o(h)-o(d);return u!==0?u:s(h)-s(d)}case"title_asc":{const u=(d.title??"").localeCompare(h.title??"",void 0,{sensitivity:"base"});return u!==0?u:s(h)-s(d)}case"date_desc":default:return s(h)-s(d)}}),l},aP=({dateFieldLabel:t,activeDateFilter:a,onDateFilterChange:n,filterKeys:r,searchableFilters:s,filtersData:i,activeFilters:o,handleFilterChange:l,toggleSavedJobsFilter:d,showOnlySaved:h,savedJobs:u})=>e.jsx("div",{className:"hidden lg:block lg:w-1/4 space-y-6",children:e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Filters"}),e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-2",children:t}),e.jsx(YA,{activeDateFilter:a,onDateFilterChange:n,dateFieldLabel:""})]}),r.map(p=>{var y;return e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-2",children:p.replace(/_/g," ").replace(/^\w/,m=>m.toUpperCase())}),s.includes(p)?e.jsx(Xj,{options:i[p]||[],value:o[p]||"",onChange:m=>l(p,m),placeholder:`Select ${p.replace(/_/g," ")}`,className:"w-full"}):e.jsxs("select",{className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow--500 focus:border-yellow--500 bg-white",value:o[p]||"",onChange:m=>l(p,m.target.value),children:[e.jsxs("option",{value:"",children:["Select ",p.replace(/_/g," ")]}),(y=i[p])==null?void 0:y.map(m=>e.jsx("option",{value:m,children:m},m))]})]},p)}),e.jsx("div",{className:"mt-6",children:e.jsxs("button",{onClick:d,className:`w-full px-4 py-2 rounded-lg flex items-center justify-center ${h?"bg-yellow-100 text-indigo-800":"bg-gray-100 text-gray-800 hover:bg-gray-200"}`,children:[e.jsx(xa,{size:16,className:"mr-2"}),e.jsxs("span",{children:["Saved Jobs (",u.length,")"]})]})})]})});function ol(t,a,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t==null||t(s),n===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}function IN(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function TE(...t){return a=>{let n=!1;const r=t.map(s=>{const i=IN(s,a);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():IN(t[s],null)}}}}function Qj(...t){return g.useCallback(TE(...t),t)}function DE(t,a){const n=g.createContext(a),r=i=>{const{children:o,...l}=i,d=g.useMemo(()=>l,Object.values(l));return e.jsx(n.Provider,{value:d,children:o})};r.displayName=t+"Provider";function s(i){const o=g.useContext(n);if(o)return o;if(a!==void 0)return a;throw new Error(`\`${i}\` must be used within \`${t}\``)}return[r,s]}function qE(t,a=[]){let n=[];function r(i,o){const l=g.createContext(o),d=n.length;n=[...n,o];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=n.map(o=>g.createContext(o));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[r,zE(s,...a)]}function zE(...t){const a=t[0];if(t.length===1)return a;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:o}),[o])}};return n.scopeName=a.scopeName,n}var Tj=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},EE=g[" useId ".trim().toString()]||(()=>{}),FE=0;function R9(t){const[a,n]=g.useState(EE());return Tj(()=>{t||n(r=>r??String(FE++))},[t]),t||(a?`radix-${a}`:"")}var OE=g[" useInsertionEffect ".trim().toString()]||Tj;function HE({prop:t,defaultProp:a,onChange:n=()=>{},caller:r}){const[s,i,o]=VE({defaultProp:a,onChange:n}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,r])}const h=g.useCallback(u=>{var p;if(l){const y=BE(u)?u(t):u;y!==t&&((p=o.current)==null||p.call(o,y))}else i(u)},[l,t,i,o]);return[d,h]}function VE({defaultProp:t,onChange:a}){const[n,r]=g.useState(t),s=g.useRef(n),i=g.useRef(a);return OE(()=>{i.current=a},[a]),g.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function BE(t){return typeof t=="function"}function T9(t,a,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t==null||t(s),n===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}var $E=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],nP=$E.reduce((t,a)=>{const n=Ye(`Primitive.${a}`),r=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{});function UE(t,a){t&&$j.flushSync(()=>t.dispatchEvent(a))}function AN(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function GE(...t){return a=>{let n=!1;const r=t.map(s=>{const i=AN(s,a);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():AN(t[s],null)}}}}function rP(...t){return g.useCallback(GE(...t),t)}function sP(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...n)=>{var r;return(r=a.current)==null?void 0:r.call(a,...n)},[])}function WE(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...n)=>{var r;return(r=a.current)==null?void 0:r.call(a,...n)},[])}function ZE(t,a=globalThis==null?void 0:globalThis.document){const n=WE(t);g.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return a.addEventListener("keydown",r,{capture:!0}),()=>a.removeEventListener("keydown",r,{capture:!0})},[n,a])}var JE="DismissableLayer",MC="dismissableLayer.update",XE="dismissableLayer.pointerDownOutside",YE="dismissableLayer.focusOutside",PN,iP=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),e9=g.forwardRef((t,a)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:l,...d}=t,h=g.useContext(iP),[u,p]=g.useState(null),y=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=g.useState({}),x=rP(a,N=>p(N)),f=Array.from(h.layers),[v]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),k=f.indexOf(v),w=u?f.indexOf(u):-1,b=h.layersWithOutsidePointerEventsDisabled.size>0,C=w>=k,j=eF(N=>{const S=N.target,L=[...h.branches].some(q=>q.contains(S));!C||L||(s==null||s(N),o==null||o(N),N.defaultPrevented||l==null||l())},y),I=tF(N=>{const S=N.target;[...h.branches].some(q=>q.contains(S))||(i==null||i(N),o==null||o(N),N.defaultPrevented||l==null||l())},y);return ZE(N=>{w===h.layers.size-1&&(r==null||r(N),!N.defaultPrevented&&l&&(N.preventDefault(),l()))},y),g.useEffect(()=>{if(u)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(PN=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(u)),h.layers.add(u),_N(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=PN)}},[u,y,n,h]),g.useEffect(()=>()=>{u&&(h.layers.delete(u),h.layersWithOutsidePointerEventsDisabled.delete(u),_N())},[u,h]),g.useEffect(()=>{const N=()=>m({});return document.addEventListener(MC,N),()=>document.removeEventListener(MC,N)},[]),e.jsx(nP.div,{...d,ref:x,style:{pointerEvents:b?C?"auto":"none":void 0,...t.style},onFocusCapture:T9(t.onFocusCapture,I.onFocusCapture),onBlurCapture:T9(t.onBlurCapture,I.onBlurCapture),onPointerDownCapture:T9(t.onPointerDownCapture,j.onPointerDownCapture)})});e9.displayName=JE;var KE="DismissableLayerBranch",QE=g.forwardRef((t,a)=>{const n=g.useContext(iP),r=g.useRef(null),s=rP(a,r);return g.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),e.jsx(nP.div,{...t,ref:s})});QE.displayName=KE;function eF(t,a=globalThis==null?void 0:globalThis.document){const n=sP(t),r=g.useRef(!1),s=g.useRef(()=>{});return g.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let d=function(){oP(XE,n,h,{discrete:!0})};const h={originalEvent:l};l.pointerType==="touch"?(a.removeEventListener("click",s.current),s.current=d,a.addEventListener("click",s.current,{once:!0})):d()}else a.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{a.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),a.removeEventListener("pointerdown",i),a.removeEventListener("click",s.current)}},[a,n]),{onPointerDownCapture:()=>r.current=!0}}function tF(t,a=globalThis==null?void 0:globalThis.document){const n=sP(t),r=g.useRef(!1);return g.useEffect(()=>{const s=i=>{i.target&&!r.current&&oP(YE,n,{originalEvent:i},{discrete:!1})};return a.addEventListener("focusin",s),()=>a.removeEventListener("focusin",s)},[a,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function _N(){const t=new CustomEvent(MC);document.dispatchEvent(t)}function oP(t,a,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});a&&s.addEventListener(t,a,{once:!0}),r?UE(s,i):s.dispatchEvent(i)}function RN(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function aF(...t){return a=>{let n=!1;const r=t.map(s=>{const i=RN(s,a);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():RN(t[s],null)}}}}function nF(...t){return g.useCallback(aF(...t),t)}var rF=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],sF=rF.reduce((t,a)=>{const n=Ye(`Primitive.${a}`),r=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{});function TN(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...n)=>{var r;return(r=a.current)==null?void 0:r.call(a,...n)},[])}var D9="focusScope.autoFocusOnMount",q9="focusScope.autoFocusOnUnmount",DN={bubbles:!1,cancelable:!0},iF="FocusScope",t9=g.forwardRef((t,a)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=t,[l,d]=g.useState(null),h=TN(s),u=TN(i),p=g.useRef(null),y=nF(a,f=>d(f)),m=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let f=function(b){if(m.paused||!l)return;const C=b.target;l.contains(C)?p.current=C:mn(p.current,{select:!0})},v=function(b){if(m.paused||!l)return;const C=b.relatedTarget;C!==null&&(l.contains(C)||mn(p.current,{select:!0}))},k=function(b){if(document.activeElement===document.body)for(const j of b)j.removedNodes.length>0&&mn(l)};document.addEventListener("focusin",f),document.addEventListener("focusout",v);const w=new MutationObserver(k);return l&&w.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),w.disconnect()}}},[r,l,m.paused]),g.useEffect(()=>{if(l){zN.add(m);const f=document.activeElement;if(!l.contains(f)){const k=new CustomEvent(D9,DN);l.addEventListener(D9,h),l.dispatchEvent(k),k.defaultPrevented||(oF(uF(cP(l)),{select:!0}),document.activeElement===f&&mn(l))}return()=>{l.removeEventListener(D9,h),setTimeout(()=>{const k=new CustomEvent(q9,DN);l.addEventListener(q9,u),l.dispatchEvent(k),k.defaultPrevented||mn(f??document.body,{select:!0}),l.removeEventListener(q9,u),zN.remove(m)},0)}}},[l,h,u,m]);const x=g.useCallback(f=>{if(!n&&!r||m.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,k=document.activeElement;if(v&&k){const w=f.currentTarget,[b,C]=cF(w);b&&C?!f.shiftKey&&k===C?(f.preventDefault(),n&&mn(b,{select:!0})):f.shiftKey&&k===b&&(f.preventDefault(),n&&mn(C,{select:!0})):k===w&&f.preventDefault()}},[n,r,m.paused]);return e.jsx(sF.div,{tabIndex:-1,...o,ref:y,onKeyDown:x})});t9.displayName=iF;function oF(t,{select:a=!1}={}){const n=document.activeElement;for(const r of t)if(mn(r,{select:a}),document.activeElement!==n)return}function cF(t){const a=cP(t),n=qN(a,t),r=qN(a.reverse(),t);return[n,r]}function cP(t){const a=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)a.push(n.currentNode);return a}function qN(t,a){for(const n of t)if(!lF(n,{upTo:a}))return n}function lF(t,{upTo:a}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(a!==void 0&&t===a)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function dF(t){return t instanceof HTMLInputElement&&"select"in t}function mn(t,{select:a=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&dF(t)&&a&&t.select()}}var zN=hF();function hF(){let t=[];return{add(a){const n=t[0];a!==n&&(n==null||n.pause()),t=EN(t,a),t.unshift(a)},remove(a){var n;t=EN(t,a),(n=t[0])==null||n.resume()}}}function EN(t,a){const n=[...t],r=n.indexOf(a);return r!==-1&&n.splice(r,1),n}function uF(t){return t.filter(a=>a.tagName!=="A")}var pF=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],mF=pF.reduce((t,a)=>{const n=Ye(`Primitive.${a}`),r=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{}),yF=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},fF="Portal",a9=g.forwardRef((t,a)=>{var l;const{container:n,...r}=t,[s,i]=g.useState(!1);yF(()=>i(!0),[]);const o=n||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?FC.createPortal(e.jsx(mF.div,{...r,ref:a}),o):null});a9.displayName=fF;function xF(t,a){return g.useReducer((n,r)=>a[n][r]??n,t)}var n9=t=>{const{present:a,children:n}=t,r=gF(a),s=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),i=Qj(r.ref,kF(s));return typeof n=="function"||r.isPresent?g.cloneElement(s,{ref:i}):null};n9.displayName="Presence";function gF(t){const[a,n]=g.useState(),r=g.useRef(null),s=g.useRef(t),i=g.useRef("none"),o=t?"mounted":"unmounted",[l,d]=xF(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const h=Al(r.current);i.current=l==="mounted"?h:"none"},[l]),Tj(()=>{const h=r.current,u=s.current;if(u!==t){const y=i.current,m=Al(h);t?d("MOUNT"):m==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(u&&y!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,d]),Tj(()=>{if(a){let h;const u=a.ownerDocument.defaultView??window,p=m=>{const f=Al(r.current).includes(CSS.escape(m.animationName));if(m.target===a&&f&&(d("ANIMATION_END"),!s.current)){const v=a.style.animationFillMode;a.style.animationFillMode="forwards",h=u.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=v)})}},y=m=>{m.target===a&&(i.current=Al(r.current))};return a.addEventListener("animationstart",y),a.addEventListener("animationcancel",p),a.addEventListener("animationend",p),()=>{u.clearTimeout(h),a.removeEventListener("animationstart",y),a.removeEventListener("animationcancel",p),a.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[a,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(h=>{r.current=h?getComputedStyle(h):null,n(h)},[])}}function Al(t){return(t==null?void 0:t.animationName)||"none"}function kF(t){var r,s;let a=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=a&&"isReactWarning"in a&&a.isReactWarning;return n?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=a&&"isReactWarning"in a&&a.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var vF=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],wl=vF.reduce((t,a)=>{const n=Ye(`Primitive.${a}`),r=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{}),z9=0;function vS(){g.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??FN()),document.body.insertAdjacentElement("beforeend",t[1]??FN()),z9++,()=>{z9===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),z9--}},[])}function FN(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var Na=function(){return Na=Object.assign||function(a){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(a[i]=n[i])}return a},Na.apply(this,arguments)};function lP(t,a){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&a.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)a.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n}function wF(t,a,n){if(n||arguments.length===2)for(var r=0,s=a.length,i;r<s;r++)(i||!(r in a))&&(i||(i=Array.prototype.slice.call(a,0,r)),i[r]=a[r]);return t.concat(i||Array.prototype.slice.call(a))}var vj="right-scroll-bar-position",wj="width-before-scroll-bar",bF="with-scroll-bars-hidden",MF="--removed-body-scroll-bar-size";function E9(t,a){return typeof t=="function"?t(a):t&&(t.current=a),t}function jF(t,a){var n=M.useState(function(){return{value:t,callback:a,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=a,n.facade}var CF=typeof window<"u"?g.useLayoutEffect:g.useEffect,ON=new WeakMap;function SF(t,a){var n=jF(null,function(r){return t.forEach(function(s){return E9(s,r)})});return CF(function(){var r=ON.get(n);if(r){var s=new Set(r),i=new Set(t),o=n.current;s.forEach(function(l){i.has(l)||E9(l,null)}),i.forEach(function(l){s.has(l)||E9(l,o)})}ON.set(n,t)},[t]),n}function NF(t){return t}function LF(t,a){a===void 0&&(a=NF);var n=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(i){var o=a(i,r);return n.push(o),function(){n=n.filter(function(l){return l!==o})}},assignSyncMedium:function(i){for(r=!0;n.length;){var o=n;n=[],o.forEach(i)}n={push:function(l){return i(l)},filter:function(){return n}}},assignMedium:function(i){r=!0;var o=[];if(n.length){var l=n;n=[],l.forEach(i),o=n}var d=function(){var u=o;o=[],u.forEach(i)},h=function(){return Promise.resolve().then(d)};h(),n={push:function(u){o.push(u),h()},filter:function(u){return o=o.filter(u),n}}}};return s}function IF(t){t===void 0&&(t={});var a=LF(null);return a.options=Na({async:!0,ssr:!1},t),a}var dP=function(t){var a=t.sideCar,n=lP(t,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=a.read();if(!r)throw new Error("Sidecar medium not found");return g.createElement(r,Na({},n))};dP.isSideCarExport=!0;function AF(t,a){return t.useMedium(a),dP}var hP=IF(),F9=function(){},r9=g.forwardRef(function(t,a){var n=g.useRef(null),r=g.useState({onScrollCapture:F9,onWheelCapture:F9,onTouchMoveCapture:F9}),s=r[0],i=r[1],o=t.forwardProps,l=t.children,d=t.className,h=t.removeScrollBar,u=t.enabled,p=t.shards,y=t.sideCar,m=t.noRelative,x=t.noIsolation,f=t.inert,v=t.allowPinchZoom,k=t.as,w=k===void 0?"div":k,b=t.gapMode,C=lP(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=y,I=SF([n,a]),N=Na(Na({},C),s);return g.createElement(g.Fragment,null,u&&g.createElement(j,{sideCar:hP,removeScrollBar:h,shards:p,noRelative:m,noIsolation:x,inert:f,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:b}),o?g.cloneElement(g.Children.only(l),Na(Na({},N),{ref:I})):g.createElement(w,Na({},N,{className:d,ref:I}),l))});r9.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};r9.classNames={fullWidth:wj,zeroRight:vj};var PF=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _F(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var a=PF();return a&&t.setAttribute("nonce",a),t}function RF(t,a){t.styleSheet?t.styleSheet.cssText=a:t.appendChild(document.createTextNode(a))}function TF(t){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(t)}var DF=function(){var t=0,a=null;return{add:function(n){t==0&&(a=_F())&&(RF(a,n),TF(a)),t++},remove:function(){t--,!t&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},qF=function(){var t=DF();return function(a,n){g.useEffect(function(){return t.add(a),function(){t.remove()}},[a&&n])}},uP=function(){var t=qF(),a=function(n){var r=n.styles,s=n.dynamic;return t(r,s),null};return a},zF={left:0,top:0,right:0,gap:0},O9=function(t){return parseInt(t||"",10)||0},EF=function(t){var a=window.getComputedStyle(document.body),n=a[t==="padding"?"paddingLeft":"marginLeft"],r=a[t==="padding"?"paddingTop":"marginTop"],s=a[t==="padding"?"paddingRight":"marginRight"];return[O9(n),O9(r),O9(s)]},FF=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return zF;var a=EF(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,r-n+a[2]-a[0])}},OF=uP(),dc="data-scroll-locked",HF=function(t,a,n,r){var s=t.left,i=t.top,o=t.right,l=t.gap;return n===void 0&&(n="margin"),`
7756
+ transition-colors text-sm font-medium text-center`,onClick:d,children:"Apply Now"})]}),!f&&e.jsx("p",{className:"mt-2 text-xs text-gray-500",children:"Create an account to save this item."})]})},kE=({jobs:t,onSaveJob:a,onViewJob:n,isJobSaved:r,userAccess:s})=>t.length===0?e.jsxs("div",{className:"no-results",children:[e.jsx("h3",{children:"No jobs found matching your criteria"}),e.jsx("p",{children:"Try adjusting your filters or search term"})]}):e.jsx("div",{className:"jobs-grid",children:t.map(i=>e.jsx(JA,{job:i,onSaveJob:a,onViewJob:n,isSaved:r(i),userAccess:s},i.link))}),vE=({currentPage:t,totalPages:a,setCurrentPage:n})=>{if(a<=1)return null;const r=[];if(a<=5)for(let i=1;i<=a;i++)r.push(i);else if(t<=3)for(let i=1;i<=5;i++)r.push(i);else if(t>=a-2)for(let i=a-4;i<=a;i++)r.push(i);else for(let i=t-2;i<=t+2;i++)r.push(i);return e.jsxs("div",{className:"pagination",children:[e.jsx("button",{className:"pagination-button prev-button",disabled:t===1,onClick:()=>n(t-1),children:e.jsx(Ga,{})}),r.map(i=>e.jsx("button",{className:`pagination-button ${t===i?"active":""}`,onClick:()=>n(i),children:i},i)),e.jsx("button",{className:"pagination-button next-button",disabled:t===a,onClick:()=>n(t+1),children:e.jsx(Wa,{})})]})},wE=({isOpen:t,onClose:a,filterKeys:n,filtersData:r,activeFilters:s,handleFilterChange:i,handleSearchChange:o,searchTerm:l,clearAllFilters:d,searchFilters:h,removeSearchFilter:u})=>e.jsx("div",{className:`fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full transition-opacity ${t?"opacity-100":"opacity-0 pointer-events-none"}`,children:e.jsx("div",{className:`fixed right-0 top-0 w-4/5 max-w-sm bg-white h-full shadow-xl transition-transform duration-300 ease-in-out ${t?"transform translate-x-0":"transform translate-x-full"}`,children:e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex justify-between items-center mb-4",children:[e.jsx("h2",{className:"text-lg font-semibold",children:"Filters"}),e.jsx("button",{onClick:a,className:"text-gray-500 hover:text-gray-700",children:e.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),e.jsx("div",{className:"mb-4",children:e.jsx("input",{type:"text",className:"w-full p-2 border border-gray-300 rounded-md",placeholder:"Search jobs...",value:l,onChange:p=>o(p.target.value)})}),n.map(p=>{var y;return e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{htmlFor:`mobile-${p}`,className:"block text-sm font-medium text-gray-700 mb-1",children:p.replace(/_/g," ")}),e.jsxs("select",{id:`mobile-${p}`,className:"w-full p-2 border border-gray-300 rounded-md",onChange:m=>i(p,m.target.value),value:s[p]||"",children:[e.jsxs("option",{value:"",children:["Select ",p.replace(/_/g," ")]}),(y=r[p])==null?void 0:y.map(m=>e.jsx("option",{value:m,children:m},m))]})]},p)}),Object.keys(s).length>0&&e.jsxs("div",{className:"mt-4",children:[e.jsx("h3",{className:"text-sm font-semibold mb-2",children:"Active Filters:"}),Object.entries(s).map(([p,y])=>e.jsxs("div",{className:"inline-flex items-center bg-yellow-100 text-yellow-800 rounded-full px-3 py-1 text-sm mr-2 mb-2",children:[e.jsxs("span",{children:[p.replace(/_/g," "),": ",y]}),e.jsx("button",{className:"ml-2 text-yellow-600 hover:text-yellow-800",onClick:()=>i(p,""),children:"×"})]},p)),e.jsx("button",{className:"mt-2 w-full bg-red-100 text-red-800 rounded-md px-3 py-2 text-sm font-medium",onClick:d,children:"Clear All Filters"})]})]})})}),bE=({apiUrl:t,itemsPerPage:a,filterKeys:n,enableSearch:r,enablePagination:s,enableMobileFilter:i,banners:o,userAccess:l})=>{const[d,h]=M.useState([]),[u,p]=M.useState(1),[y,m]=M.useState({}),[x,f]=M.useState([]),[v,k]=M.useState({}),[w,b]=M.useState(""),[C,j]=M.useState([]),[I,N]=M.useState(!1),S=Yj(l);M.useEffect(()=>{fetch(`${t}/items`).then(re=>re.json()).then(re=>{h(re)}).catch(re=>console.error("Error fetching items:",re))},[t]);const L=re=>{const te={};re.forEach(ve=>{n.forEach(Z=>{te[Z]||(te[Z]=new Set);const ae=ve[Z];ae!=null&&te[Z].add(String(ae))})});const ye={};return Object.keys(te).forEach(ve=>{ye[ve]=Array.from(te[ve])}),ye};function q(re,te,ye){let ve=re.filter(Z=>Object.entries(te).every(([ae,ge])=>{const ke=Z[ae];return typeof ke=="string"&&ke.toLowerCase()===ge.toLowerCase()}));return ye.length>0&&(ve=ve.filter(Z=>ye.every(ae=>Z.title.toLowerCase().includes(ae.toLowerCase())))),ve}const _=M.useMemo(()=>q(d,y,x),[y,d,x]),A=(re,te)=>{m(ye=>{const ve=te?{...ye,[re]:te}:{...ye};return te||delete ve[re],ve})},D=re=>{if(b(re),re){const te=d.map(ye=>ye.title).filter((ye,ve,Z)=>ye&&ye.toLowerCase().includes(re.toLowerCase())&&Z.indexOf(ye)===ve).slice(0,5);j(te)}else j([])},H=re=>{if(re.key==="Enter"&&w.trim()){re.preventDefault();const te=[...x,w.trim()];f(te),b("")}},G=re=>{const te=x.filter(ye=>ye!==re);f(te)},V=()=>{m({}),f([]),p(1)};M.useEffect(()=>{k(L(_))},[n,_]),M.useEffect(()=>{p(1)},[y,x]);const U=()=>{N(!I)},F=(re,te)=>{},se=re=>{},K=re=>!1,X=Math.ceil(_.length/a),J=_.slice((u-1)*a,u*a);return e.jsxs("div",{className:"flex flex-col min-h-screen",children:[e.jsx("div",{className:"flex-grow",children:e.jsxs("div",{className:"job-listings-container",children:[e.jsx("div",{className:"header-container",children:e.jsxs("div",{className:"header-content",children:[e.jsx("h1",{className:"main-title",children:"Job Listings"}),e.jsxs("p",{className:"items-count",children:["Total: ",e.jsx("span",{className:"count-value",children:_.length})]})]})}),e.jsx("button",{className:"md:hidden w-full mb-4 px-4 py-2 bg-yellow-600 text-white rounded-md",onClick:U,children:I?"Close Filters":"Open Filters"}),e.jsxs("div",{className:"hidden md:block filters-container",children:[e.jsx(xE,{searchTerm:w,handleSearchChange:D,handleSearchKeyDown:H,suggestions:C}),e.jsx(fE,{filterKeys:n,filtersData:v,activeFilters:y,handleFilterChange:A,searchFilters:x,removeSearchFilter:G,clearAllFilters:V,searchableFilters:["company"]})]}),e.jsx(wE,{isOpen:I,onClose:U,filterKeys:n,filtersData:v,activeFilters:y,handleFilterChange:A,handleSearchChange:D,searchTerm:w,clearAllFilters:V,handleSearchKeyDown:H,searchFilters:x,removeSearchFilter:G}),e.jsxs("div",{className:"flex flex-col md:flex-row",children:[e.jsxs("div",{className:"w-full md:w-3/4 md:pr-4",children:[e.jsx("h2",{className:"section-title",children:"Open Positions"}),e.jsx(kE,{jobs:J,onSaveJob:F,onViewJob:se,isJobSaved:K,userAccess:S}),e.jsx(vE,{currentPage:u,totalPages:X,setCurrentPage:p})]}),e.jsx("div",{className:"w-full md:w-1/4 mt-4 md:mt-0",children:e.jsx("div",{className:"sticky top-4",children:o.sidebar.enabled&&o.sidebar.url&&e.jsx(fl,{position:"sidebar",url:o.sidebar.url,link:o.sidebar.link,alt:o.sidebar.alt})})})]})]})}),o.bottom.enabled&&o.bottom.url&&e.jsx(fl,{position:"top",url:o.bottom.url,link:o.bottom.link,alt:o.bottom.alt})]})},ME=({title:t="Subscribe to our newsletter",description:a="The latest job opportunities and career tips, weekly in your inbox.",links:n=[]})=>{const[r,s]=M.useState(!1),[i,o]=M.useState(null);M.useEffect(()=>{try{const d=localStorage.getItem("email");d&&(s(!0),o(d))}catch{}},[]);const l=d=>{d.preventDefault()};return e.jsx("footer",{className:"bg-gray-800 text-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:py-16 lg:px-8",children:[e.jsxs("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[e.jsx("div",{className:"grid grid-cols-2 gap-8 xl:col-span-2",children:e.jsx("div",{className:"md:grid md:grid-cols-2 md:gap-8",children:Array.isArray(n)&&n.map((d,h)=>{var u;return Array.isArray(d)&&d.length>0?e.jsxs("div",{className:"mt-12 md:mt-0",children:[e.jsx("h3",{className:"text-sm font-semibold text-gray-400 tracking-wider uppercase",children:((u=d[0])==null?void 0:u.text)||"Section"}),e.jsx("ul",{className:"mt-4 space-y-4",children:d.map((p,y)=>e.jsx("li",{children:e.jsx("a",{href:p.url,className:"hover:text-gray-300",children:p.text})},y))})]},h):null})})}),e.jsxs("div",{className:"mt-8 xl:mt-0",children:[e.jsx("h3",{className:"text-sm font-semibold text-gray-400 tracking-wider uppercase",children:t}),e.jsx("p",{className:"mt-4 text-base text-gray-300",children:a}),r?e.jsxs("p",{className:"mt-4 text-green-400 font-medium",children:["✅ You’re subscribed",i?` as ${i}`:"","!"]}):e.jsxs("form",{className:"mt-4 sm:flex sm:max-w-md",onSubmit:l,children:[e.jsx("label",{htmlFor:"email-address",className:"sr-only",children:"Email address"}),e.jsx("input",{type:"email",name:"email-address",id:"email-address",autoComplete:"email",required:!0,className:"appearance-none min-w-0 w-full bg-white border border-transparent rounded-md py-2 px-4 text-base text-gray-900 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white focus:border-white focus:placeholder-gray-400",placeholder:"Enter your email"}),e.jsx("div",{className:"mt-3 rounded-md sm:mt-0 sm:ml-3 sm:flex-shrink-0",children:e.jsx("button",{type:"submit",className:"w-full bg-yellow-600 border border-transparent rounded-md py-2 px-4 flex items-center justify-center text-base font-medium text-white hover:bg-yellow-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-blue-500",children:"Subscribe"})})]})]})]}),e.jsx("div",{className:"mt-8 border-t border-gray-700 pt-8",children:e.jsxs("p",{className:"text-base text-gray-400 xl:text-center",children:["© ",new Date().getFullYear()," JobBoard, Inc. All rights reserved."]})})]})})},jE=({logo:t="",links:a=[],buttonText:n="Post a Job",buttonUrl:r="/post-job"})=>e.jsx("nav",{className:"bg-white shadow-md",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex justify-between h-16",children:[e.jsxs("div",{className:"flex",children:[e.jsx("div",{className:"flex-shrink-0 flex items-center",children:e.jsx("a",{href:"/",className:"text-xl font-bold text-yellow-600",children:t?e.jsx("img",{src:t,alt:"Logo",className:"h-6 w-6"}):e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"mercado-match h-6 w-6",focusable:"false",children:e.jsx("path",{d:"M20.5 2h-17A1.5 1.5 0 002 3.5v17A1.5 1.5 0 003.5 22h17a1.5 1.5 0 001.5-1.5v-17A1.5 1.5 0 0020.5 2zM8 19H5v-9h3zM6.5 8.25A1.75 1.75 0 118.3 6.5a1.78 1.78 0 01-1.8 1.75zM19 19h-3v-4.74c0-1.42-.6-1.93-1.38-1.93A1.74 1.74 0 0013 14.19a.66.66 0 000 .14V19h-3v-9h2.9v1.3a3.11 3.11 0 012.7-1.4c1.55 0 3.36.86 3.36 3.66z"})})})}),e.jsx("div",{className:"hidden sm:ml-6 sm:flex sm:space-x-8",children:a.map((s,i)=>e.jsx("a",{href:s.url,className:"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium",children:s.text},i))})]}),e.jsx("div",{className:"hidden sm:ml-6 sm:flex sm:items-center",children:e.jsx("a",{href:r,className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-yellow-600 hover:bg-yellow-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",children:n})})]})})}),XA=()=>{const[t,a]=M.useState("");M.useEffect(()=>{typeof window<"u"&&a(window.location.pathname)},[]);const n=r=>t===r;return e.jsx("nav",{className:"fixed bottom-0 left-0 right-0 bg-white dark:bg-gray-800 border-t border-gray-200 dark:border-gray-700 md:hidden z-50",children:e.jsxs("div",{className:"grid grid-cols-5 h-16",children:[e.jsxs("a",{href:"/","aria-label":"Home",className:`flex flex-col items-center justify-center ${n("/")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[e.jsx(Ua,{className:"w-6 h-6"}),e.jsx("span",{className:"text-xs mt-1",children:"Home"})]}),e.jsxs("a",{href:"/companies","aria-label":"Companies",className:`flex flex-col items-center justify-center relative ${n("/companies")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[e.jsx(rt,{className:"w-6 h-6"}),e.jsx("span",{className:"text-xs mt-1",children:"Companies"})]}),e.jsxs("a",{href:"/jobs","aria-label":"Jobs",className:`flex flex-col items-center justify-center ${n("/jobs")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[e.jsx(Ze,{className:"w-6 h-6"}),e.jsx("span",{className:"text-xs mt-1",children:"Jobs"})]}),e.jsxs("a",{href:"/courses","aria-label":"Courses",className:`flex flex-col items-center justify-center ${n("/courses")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[e.jsx(ia,{className:"w-6 h-6"}),e.jsx("span",{className:"text-xs mt-1",children:"Courses"})]}),e.jsxs("a",{href:"/news","aria-label":"News",className:`flex flex-col items-center justify-center ${n("/news")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[e.jsx(Aa,{className:"w-6 h-6"}),e.jsx("span",{className:"text-xs mt-1",children:"News"})]})]})})},CE=t=>{const a=["Acme Inc","TechCorp","Global Solutions","Innovate Labs","Future Tech"],n=["Engineering","Marketing","Sales","Design","Product","HR"],r=["New York, NY","San Francisco, CA","Austin, TX","Seattle, WA","Remote"],s=["New York","San Francisco","Austin","Seattle","Chicago"],i=["USA","Canada","UK","Germany","Australia"],o=["Startup","Enterprise","Agency","Nonprofit","Government"],l=d=>{const h=new Date;return h.setDate(h.getDate()-Math.floor(Math.random()*d)),h.toISOString()};return Array.from({length:t},(d,h)=>{const u=l(120);return{id:`job-${h}`,title:`${n[h%n.length]} ${h%3===0?"Senior":h%3===1?"Mid-level":"Junior"} Position`,company:a[h%a.length],department:n[h%n.length],location:r[h%r.length],city:s[h%s.length],country:i[h%i.length],company_type:o[h%o.length],link:"#job-link",logo:`/placeholder.svg?height=50&width=50&text=${a[h%a.length].charAt(0)}`,overview:"This is a mock job description for preview purposes. The actual job details would appear here with information about responsibilities, requirements, and company culture.",slug:`job-${h}`,scraped_at:new Date().toISOString(),published_at:u,created_at:u,views:Math.floor(Math.random()*2e3),sponsored:h%7===0}})},YA=({activeDateFilter:t,onDateFilterChange:a,dateFieldLabel:n="Published",options:r=[{value:"all",label:"All Time"},{value:"today",label:"Today"},{value:"this_week",label:"This Week"},{value:"this_month",label:"This Month"},{value:"last_30_days",label:"Last 30 Days"},{value:"last_90_days",label:"Last 90 Days"}]})=>e.jsxs("div",{className:"date-filter",children:[n&&e.jsxs("label",{htmlFor:"date-filter",className:"text-sm font-medium text-gray-700 mr-2",children:[n,":"]}),e.jsx("select",{id:"date-filter",value:t,onChange:s=>a(s.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow--500 focus:border-yellow--500 bg-white",children:r.map(s=>e.jsx("option",{value:s.value,children:s.label},s.value))})]}),KA=({activeDateFilter:t,handleDateFilterChange:a,filterKeys:n,searchableFilters:r,dateFieldLabel:s,activeFilters:i,handleFilterChange:o,toggleSavedJobsFilter:l,filtersData:d,savedJobs:h=[],showOnlySaved:u=!1,isMobileFilterOpen:p,toggleMobileFilter:y,dateOptions:m=[{value:"all",label:"All Time"},{value:"today",label:"Today"},{value:"this_week",label:"This Week"},{value:"this_month",label:"This Month"},{value:"last_30_days",label:"Last 30 Days"},{value:"last_90_days",label:"Last 90 Days"}]})=>e.jsx("div",{children:e.jsxs("div",{className:p?"block":"hidden",children:[e.jsx("div",{className:"fixed inset-0 bg-gray-600 bg-opacity-75 z-40",onClick:()=>y(!p)}),e.jsxs("div",{className:"fixed inset-y-0 right-0 max-w-xs w-full bg-white shadow-xl z-50 overflow-y-auto",children:[e.jsxs("div",{className:"p-4 border-b border-gray-200 flex items-center justify-between",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900",children:"Filters"}),e.jsx("button",{onClick:()=>y(!p),className:"p-2 rounded-full hover:bg-gray-100","aria-label":"Close filters",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"grid grid-cols-[120px_1fr] items-center gap-1 mb-4",children:[e.jsx("span",{className:"text-sm font-medium text-gray-900",children:s}),e.jsx(YA,{activeDateFilter:t,onDateFilterChange:a,dateFieldLabel:"",options:m})]}),n.map(x=>{var v;const f=x.replace(/_/g," ");return e.jsxs("div",{className:"grid grid-cols-[120px_1fr] items-center gap-1 mb-4",children:[e.jsx("span",{className:"text-sm font-medium text-gray-900 capitalize whitespace-nowrap",children:f}),r.includes(x)?e.jsx(Xj,{options:d[x]||[],value:i[x]||"",onChange:k=>o(x,k),placeholder:`Select ${f}`,className:"w-full"}):e.jsxs("select",{className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow-500 focus:border-yellow-500 bg-white",value:i[x]||"",onChange:k=>o(x,k.target.value),children:[e.jsxs("option",{value:"",children:["Select ",f]}),(v=d[x])==null?void 0:v.map(k=>e.jsx("option",{value:k,children:k},k))]})]},x)}),e.jsx("div",{className:"mt-4 pt-4 border-t border-gray-200",children:e.jsx("button",{onClick:()=>y(!p),className:"w-full py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700 transition-colors",children:"Apply Filters"})})]})]})]})}),mS=({totalColumns:t=2})=>e.jsx("div",{className:"flex-grow p-8 animate-fade-in",children:e.jsx("div",{className:"max-w-7xl mx-auto",children:e.jsxs("div",{className:"animate-pulse",children:[e.jsx("div",{className:"h-8 bg-gray-200 rounded w-1/4 mb-6"}),e.jsx("div",{className:`grid grid-cols-1 md:grid-cols-${t} gap-6`,children:[...Array(4)].map((a,n)=>e.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[e.jsx("div",{className:"h-6 bg-gray-200 rounded w-3/4 mb-4"}),e.jsx("div",{className:"h-4 bg-gray-200 rounded w-1/2 mb-2"}),e.jsx("div",{className:"h-4 bg-gray-200 rounded w-1/3 mb-4"}),e.jsx("div",{className:"h-20 bg-gray-200 rounded mb-4"}),e.jsx("div",{className:"h-8 bg-gray-200 rounded w-full"})]},n))})]})})}),yS=({data:t,onSelect:a,placeholder:n="Search...",debounceMs:r=250,onTyping:s,className:i="",showSubmitButton:o=!1})=>{const[l,d]=M.useState(""),[h,u]=M.useState([]),[p,y]=M.useState(!1),m=M.useRef(null),x=k=>{d(k),y(!0),s&&s(k)},f=()=>{d(""),u([]),y(!1),s==null||s("")},v=k=>{a(k),d(""),u([]),y(!1)};return M.useEffect(()=>{m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{if(!l){u([]);return}const k=t.filter(w=>w.toLowerCase().includes(l.toLowerCase())).filter((w,b,C)=>C.indexOf(w)===b).slice(0,5);u(k)},r)},[l,t]),e.jsxs("div",{className:`relative w-full ${i}`,children:[e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:e.jsx(Gt,{className:"h-4 w-4 text-gray-400"})}),e.jsx("input",{type:"text",className:"w-full py-2 pl-9 pr-12 flex w-full rounded-md border border-input bg-background px-3 py-2 ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm pl-10 h-12 text-lg",placeholder:n,value:l,onChange:k=>x(k.target.value),onFocus:()=>y(h.length>0),onBlur:()=>setTimeout(()=>y(!1),200),onKeyDown:k=>{k.key==="Enter"&&l.trim()&&(k.preventDefault(),v(l.trim()))}}),l&&!o&&e.jsx("button",{onClick:f,className:"absolute inset-y-0 right-2 flex items-center",children:e.jsx(Ct,{className:"h-4 w-4 text-gray-400 hover:text-gray-600"})}),o&&e.jsx("button",{onClick:()=>l.trim()&&v(l.trim()),className:"absolute right-2 top-1/2 -translate-y-1/2 bg-yellow-500 text-white py-1.5 px-2 rounded-md hover:bg-yellow-600",children:e.jsx(Gt,{className:"h-4 w-4"})})]}),p&&h.length>0&&e.jsx("ul",{className:"absolute z-10 mt-1 w-full bg-white border border-gray-200 rounded-lg shadow-md",children:h.map((k,w)=>e.jsx("li",{children:e.jsx("button",{className:"w-full px-4 py-2 text-left text-sm text-gray-700 hover:bg-gray-100",onClick:()=>v(k),children:e.jsxs("div",{className:"flex items-center",children:[e.jsx(Gt,{className:"h-4 w-4 mr-2 text-gray-400"}),k]})})},w))})]})},fS=({onSearchChange:t,title:a="Gaming News",description:n="Latest news and insights from the gaming industry",searchPlaceholder:r="Search news...",popularTags:s=["AI Gaming","Esports","VR/AR","Mobile Gaming","Regulation","Market Analysis"],generateHref:i=u=>`?q=${encodeURIComponent(u)}`,onTagClick:o,onTagRemove:l,popularTagColor:d="#CA8A04",allowTagRemoval:h=!1})=>{M.useState("");const[u,p]=M.useState(()=>new Set),y=s.filter(x=>!u.has(x)),m=x=>{p(f=>{const v=new Set(f);return v.add(x),v}),l==null||l(x)};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"bg-white border-b",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4",children:e.jsx("div",{className:"flex items-center justify-between",children:e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:a}),e.jsx("p",{className:"hidden lg:block text-gray-600",children:n})]})})})}),e.jsx("div",{className:"bg-white border-b",children:e.jsx("div",{className:"max-w-7xl mx-auto py-4 px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"overflow-x-auto",children:y.length>0&&e.jsxs("div",{className:"flex items-center space-x-6 py-2 text-sm",children:[e.jsx("span",{className:"text-gray-600 font-medium flex-shrink-0",children:"Popular:"}),y.map(x=>e.jsx(VC,{name:`#${x}`,color:d,size:"sm",href:o?void 0:i(x),onClick:o?()=>o(x):void 0,removable:h,onRemove:h?()=>m(x):void 0},x))]})})})})]})},SE=t=>t.toLowerCase().replace(/anti[-\s]?money[-\s]?laundering/g,"aml").replace(/counter[-\s]?terrorist[-\s]?financing/g,"cft").replace(/personal management licence/g,"pml").replace(/general data protection regulation/g,"gdpr");function xS(t){const a=SE(t),n={gambling:["igaming","casino","slot","slots","bingo","poker","blackjack","roulette","lottery","rgs","rng","rmg","betting","sportsbook","land based"],compliance:["aml","money laundering","gdpr","compliance","licence","mlro","data protection","responsible gaming","player protection","key function","pml","mga","cft"],business:["crm","vip","affiliate","payments","analytics","marketing","governance","leadership","strategy"],format:["course","tutorial","guide","webinar","workshop","lecture","series","academy","masterclass"],misc:["ai","blockchain","gamification","diversity","inclusion","metaverse","remote","advanced"]},r=[...n.gambling,...n.compliance,...n.business,...n.format,...n.misc];for(const s of r)if(new RegExp(`\\b${s.replace(/\s+/g,"\\s+")}\\b`,"i").test(a))return s;return null}function NE(t){const a=xS(t);return a||LE(t)}function LE(t){const a=new Set(["the","of","and","to","a","in","for","with","on","at","by","is","from","as","it","that","this","how","new","you","your"]),n=t.toLowerCase().split(/\W+/).filter(i=>i.length>2&&!a.has(i)),r={};for(const i of n)r[i]=(r[i]||0)+1;const s=Object.entries(r).sort((i,o)=>o[1]-i[1]);return s.length>0?s[0][0]:null}const gS=({filters:t,onClearAll:a,handleCreateAlert:n,className:r=""})=>t.length===0?null:e.jsxs("div",{className:`flex flex-wrap gap-2 ${r}`,children:[t.map(s=>e.jsxs("div",{className:"inline-flex items-center bg-yellow-100 text-indigo-800 rounded-full px-3 py-1 text-sm",children:[s.label&&e.jsxs("span",{className:"font-medium mr-1",children:[s.label,":"]}),e.jsx("span",{children:s.value}),e.jsx("button",{className:"ml-2 text-indigo-600 hover:text-indigo-800",onClick:s.onRemove,"aria-label":`Remove ${s.label||s.key} filter`,children:e.jsx(ja,{size:14})})]},`${s.key}-${s.value}`)),e.jsx("button",{className:"inline-flex items-center bg-gray-100 text-gray-800 hover:bg-gray-200 rounded-full px-3 py-1 text-sm",onClick:a,children:"Clear All"}),e.jsx("button",{onClick:n,className:"inline-flex items-center bg-indigo-100 text-indigo-800 hover:bg-indigo-200 rounded-full px-3 py-1 text-sm font-medium",children:"🔔 Create Alert"})]}),QA=({viewMode:t,onToggle:a,className:n=""})=>e.jsxs("div",{className:`view-mode-toggle flex bg-gray-100 p-1 rounded-lg ${n}`,children:[e.jsxs("button",{onClick:a,className:`px-3 py-1.5 rounded-md flex items-center justify-center transition-colors ${t==="grid"?"bg-yellow-600 text-white shadow-sm":"text-gray-700 hover:bg-gray-200"}`,"aria-label":"Grid view","aria-pressed":t==="grid",children:[e.jsx(ma,{size:16,className:"mr-1.5"}),e.jsx("span",{className:"text-sm font-medium",children:"Grid"})]}),e.jsxs("button",{onClick:a,className:`px-3 py-1.5 rounded-md flex items-center justify-center transition-colors ${t==="list"?"bg-yellow-600 text-white shadow-sm":"text-gray-700 hover:bg-gray-200"}`,"aria-label":"List view","aria-pressed":t==="list",children:[e.jsx(Wc,{size:16,className:"mr-1.5"}),e.jsx("span",{className:"text-sm font-medium",children:"List"})]})]}),eP=({value:t,onChange:a,options:n=[5,10,20,50],className:r=""})=>e.jsxs("div",{className:`flex items-center ${r}`,children:[e.jsx("label",{htmlFor:"items-per-page",className:"mr-2 text-sm font-medium text-gray-700",children:"Show:"}),e.jsx("select",{id:"items-per-page",value:t,onChange:s=>a(Number(s.target.value)),className:"px-2 py-1.5 border border-gray-300 rounded-md text-sm bg-white",children:n.map(s=>e.jsx("option",{value:s,children:s},s))})]}),kS=({viewMode:t,onToggleViewMode:a,selectedItemsPerPage:n,onItemsPerPageChange:r,totalCount:s,startIndex:i,endIndex:o,title:l})=>e.jsx("div",{className:"lg:block hidden bg-white rounded-lg shadow-sm border border-gray-200 p-4 mb-6",children:e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:l}),e.jsxs("p",{className:"text-sm text-gray-600",children:["Showing ",e.jsx("span",{className:"font-semibold text-gray-900",children:i}),"–",e.jsx("span",{className:"font-semibold text-gray-900",children:o})," of"," ",e.jsx("span",{className:"font-semibold text-gray-900",children:s})," articles"]})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3",children:[e.jsx(QA,{viewMode:t,onToggle:a}),e.jsx(eP,{value:n,onChange:r})]})]})}),IE=({title:t,description:a,ctaText:n,ctaLink:r,bgColor:s="bg-yellow-50",textColor:i="text-yellow-800"})=>e.jsx("div",{className:`promo-card ${s} p-4 rounded-lg shadow-sm hidden md:block`,children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("h3",{className:`font-bold text-lg ${i}`,children:t}),e.jsx("p",{className:`text-sm mt-1 ${i} opacity-90`,children:a})]}),e.jsx("a",{href:r,className:"bg-white text-yellow-600 hover:bg-yellow-50 px-4 py-2 rounded-md text-sm font-medium shadow-sm transition-colors",children:n})]})}),AE=({items:t,cardType:a,viewMode:n,savedJobs:r,onSaveJob:s,onViewJob:i,onApplyJob:o,firstItemRef:l=null,userAccess:d})=>{const[h,u]=M.useState([]),[p,y]=M.useState(null);M.useEffect(()=>{try{if(!Array.isArray(t)){console.error("❌ Items is not an array:",t),y("Invalid data format received"),u([]);return}const x=[...t];t.length>5&&x.splice(5,0,{id:"promo-1",title:"Promo",isPromo:!0}),u(x),y(null)}catch(x){console.error("Error processing items:",x),y(`Error processing items: ${x instanceof Error?x.message:String(x)}`),u([])}},[t]);const m=(x,f)=>{const k=f===0&&!x.isPromo?{ref:l}:{};try{if(x.isPromo)return e.jsx("div",{className:"col-span-full my-4",children:e.jsx(IE,{title:"Upgrade Your Job Search",description:"Get personalized job recommendations and stand out to employers.",ctaText:"Learn More",ctaLink:"#premium-features",bgColor:"bg-yellow-50",textColor:"text-yellow-800"})},`promo-${f}`);if(!x||typeof x!="object")return console.error("❌ Invalid item detected:",x),e.jsxs("div",{className:"error-card bg-red-50 p-4 rounded-md border border-red-200",children:[e.jsx("p",{className:"text-red-800 font-medium",children:"Invalid Job Data"}),e.jsx("p",{className:"text-red-600 text-sm",children:"The job data is in an unexpected format."})]});const w=x.id?`${x._id}-${f}`:x.slug?`${x.slug}-${f}`:`item-${f}`;switch(a){case"job":return e.jsx("div",{...k,children:e.jsx(JA,{job:x,positionInList:f,onSaveJob:b=>s(b,f),onViewJob:(b,C,j)=>i(b,f,j),onApplyJob:o?(b,C,j)=>o(b,f,j):void 0,isSaved:r.includes(x.id||x.slug||x.link),userAccess:d})},w);default:return console.warn(`⚠️ Unknown cardType: ${a}`),e.jsxs("div",{className:"error-card bg-yellow-50 p-4 rounded-md border border-yellow-200",children:[e.jsx("p",{className:"text-yellow-800 font-medium",children:"Unknown Card Type"}),e.jsx("p",{className:"text-yellow-700 text-sm",children:"The specified card type is not supported."})]})}}catch(w){return console.error("Error rendering card:",w),e.jsxs("div",{className:"error-card bg-red-50 p-4 rounded-md border border-red-200",children:[e.jsx("p",{className:"text-red-800 font-medium",children:"Error Rendering Card"}),e.jsx("p",{className:"text-red-600 text-sm",children:w instanceof Error?w.message:String(w)})]})}};return p?e.jsxs("div",{className:"bg-red-50 border border-red-200 text-red-800 rounded-lg p-6",children:[e.jsx("h3",{className:"font-semibold mb-2",children:"Error Loading Items"}),e.jsx("p",{children:p})]}):h.length===0?e.jsxs("div",{className:"no-results",children:[e.jsx("h3",{children:"No items found matching your criteria"}),e.jsx("p",{children:"Try adjusting your filters or search term"})]}):e.jsx("div",{className:n==="grid"?"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4":"flex flex-col gap-4","data-view-mode":n,children:h.map((x,f)=>m(x,f))})},Kj=({currentPage:t,totalPages:a,onPageChange:n})=>{if(a<=1)return null;const r=5,s=Math.max(1,t-Math.floor(r/2)),i=Math.min(a,s+r-1),o=[];for(let l=s;l<=i;l++)o.push(l);return e.jsx("div",{className:"mt-6 flex justify-center",children:e.jsxs("nav",{className:"flex items-center space-x-2",children:[e.jsx("button",{onClick:()=>n(Math.max(1,t-1)),disabled:t===1,className:"px-3 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-md hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed",children:e.jsx(Ga,{})}),o.map(l=>e.jsx("button",{onClick:()=>n(l),className:`px-3 py-2 text-sm font-medium rounded-md ${t===l?"bg-yellow-600 text-white":"text-gray-700 bg-white border border-gray-300 hover:bg-gray-50"}`,children:l},l)),e.jsx("button",{onClick:()=>n(Math.min(a,t+1)),disabled:t===a,className:"px-3 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-md hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed",children:e.jsx(Wa,{})})]})})},PE=({jobs:t,onViewJob:a})=>!t||t.length===0?null:e.jsxs("div",{className:"last-visited-jobs mt-8 bg-white rounded-lg shadow p-4",children:[e.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Recently Viewed Jobs"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:t.map((n,r)=>e.jsxs("div",{className:"p-3 border rounded-md hover:shadow-md transition-shadow cursor-pointer",onClick:()=>a(n,r,"same_tab","last_visited"),children:[e.jsxs("div",{className:"flex items-center mb-2",children:[e.jsx("img",{src:n.logo||"/placeholder.svg?height=30&width=30",alt:`${n.company} logo`,className:"w-6 h-6 mr-2"}),e.jsx("h3",{className:"font-medium text-sm truncate",children:n.title})]}),e.jsx("p",{className:"text-xs text-gray-600 truncate",children:n.company}),e.jsx("p",{className:"text-xs text-gray-500 truncate",children:n.location})]},n._id||n.slug||n.link))})]}),_E=(t,a,n="date")=>{if(a==="all")return t;const r=new Date,s=new Date(r.getFullYear(),r.getMonth(),r.getDate());return t.filter(i=>{const o=i[n]||i.created_at||i.published_at||i.scraped_at;if(!o)return!1;const l=new Date(o);switch(a){case"today":return l>=s;case"this_week":{const d=new Date(r);return d.setDate(r.getDate()-r.getDay()),d.setHours(0,0,0,0),l>=d}case"this_month":{const d=new Date(r.getFullYear(),r.getMonth(),1);return l>=d}case"last_30_days":{const d=new Date(r);return d.setDate(r.getDate()-30),l>=d}case"last_90_days":{const d=new Date(r);return d.setDate(r.getDate()-90),l>=d}default:return!0}})},RE=(t,a)=>t.filter(n=>{var r,s,i,o,l;if(a.jobTypes.length>0){const d=((r=n.department)==null?void 0:r.toLowerCase())||"";if(!a.jobTypes.some(h=>d.includes(h)))return!1}if(a.experienceLevels.length>0){const d=((s=n.title)==null?void 0:s.toLowerCase())||"";if(!a.experienceLevels.some(h=>!!(h==="senior"&&d.includes("senior")||h==="mid"&&(d.includes("mid")||d.includes("mid-level"))||h==="entry"&&(d.includes("junior")||d.includes("entry")))))return!1}return!(a.country&&!(((i=n.location)==null?void 0:i.toLowerCase())||((o=n.city)==null?void 0:o.toLowerCase())||"").includes(a.country.toLowerCase())||a.city&&!(((l=n.company_type)==null?void 0:l.toLowerCase())||"").includes(a.city.toLowerCase()))}),il=(t,a)=>{const n={};for(const r of t)for(const s of a){n[s]||(n[s]=new Set);const i=r[s];Array.isArray(i)?i.forEach(o=>{typeof o=="string"&&o.trim()&&n[s].add(o.trim())}):typeof i=="string"&&i.trim()&&n[s].add(i.trim())}return Object.fromEntries(Object.entries(n).map(([r,s])=>[r,Array.from(s)]))},tP=t=>{const a=new URLSearchParams(window.location.search);t==="all"?a.delete("date_filter"):a.set("date_filter",t);const n=`${window.location.pathname}?${a.toString()}`;window.history.replaceState({},"",n)},po=(t,a,n,r,s="date")=>{let i=t.filter(o=>Object.entries(a).every(([l,d])=>{const h=o[l];return typeof h=="string"?h.toLowerCase()===d.toLowerCase():Array.isArray(h)?h.some(u=>typeof u=="string"&&u.toLowerCase()===d.toLowerCase()):!1}));return n.length>0&&(i=i.filter(o=>n.every(l=>{var d,h;return((d=o.title)==null?void 0:d.toLowerCase().includes(l.toLowerCase()))||((h=o.overview)==null?void 0:h.toLowerCase().includes(l.toLowerCase()))}))),i=_E(i,r,s),i},Il=(t,a,n=[],r="date")=>{const s=d=>{const h=d[r]||d.created_at||d.published_at||d.scraped_at;return h?new Date(h).getTime():0},i=d=>{var u;const h=d.views??d.viewCount??((u=d.metrics)==null?void 0:u.views)??0;return typeof h=="number"?h:0},o=d=>{if(n.length===0)return 0;const h=(d.title??"").toLowerCase(),u=(d.overview??"").toLowerCase();return n.reduce((p,y)=>{const m=y.toLowerCase();let x=p;return h.includes(m)&&(x+=3),u.includes(m)&&(x+=1),x},0)},l=[...t];return l.sort((d,h)=>{switch(a){case"date_asc":return s(d)-s(h);case"views_desc":return i(h)-i(d);case"views_asc":return i(d)-i(h);case"relevance":{const u=o(h)-o(d);return u!==0?u:s(h)-s(d)}case"title_asc":{const u=(d.title??"").localeCompare(h.title??"",void 0,{sensitivity:"base"});return u!==0?u:s(h)-s(d)}case"date_desc":default:return s(h)-s(d)}}),l},aP=({dateFieldLabel:t,activeDateFilter:a,onDateFilterChange:n,filterKeys:r,searchableFilters:s,filtersData:i,activeFilters:o,handleFilterChange:l,toggleSavedJobsFilter:d,showOnlySaved:h,savedJobs:u})=>e.jsx("div",{className:"hidden lg:block lg:w-1/4 space-y-6",children:e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Filters"}),e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-2",children:t}),e.jsx(YA,{activeDateFilter:a,onDateFilterChange:n,dateFieldLabel:""})]}),r.map(p=>{var y;return e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-2",children:p.replace(/_/g," ").replace(/^\w/,m=>m.toUpperCase())}),s.includes(p)?e.jsx(Xj,{options:i[p]||[],value:o[p]||"",onChange:m=>l(p,m),placeholder:`Select ${p.replace(/_/g," ")}`,className:"w-full"}):e.jsxs("select",{className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow--500 focus:border-yellow--500 bg-white",value:o[p]||"",onChange:m=>l(p,m.target.value),children:[e.jsxs("option",{value:"",children:["Select ",p.replace(/_/g," ")]}),(y=i[p])==null?void 0:y.map(m=>e.jsx("option",{value:m,children:m},m))]})]},p)}),e.jsx("div",{className:"mt-6",children:e.jsxs("button",{onClick:d,className:`w-full px-4 py-2 rounded-lg flex items-center justify-center ${h?"bg-yellow-100 text-indigo-800":"bg-gray-100 text-gray-800 hover:bg-gray-200"}`,children:[e.jsx(xa,{size:16,className:"mr-2"}),e.jsxs("span",{children:["Saved Jobs (",u.length,")"]})]})})]})});function ol(t,a,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t==null||t(s),n===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}function IN(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function TE(...t){return a=>{let n=!1;const r=t.map(s=>{const i=IN(s,a);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():IN(t[s],null)}}}}function Qj(...t){return g.useCallback(TE(...t),t)}function DE(t,a){const n=g.createContext(a),r=i=>{const{children:o,...l}=i,d=g.useMemo(()=>l,Object.values(l));return e.jsx(n.Provider,{value:d,children:o})};r.displayName=t+"Provider";function s(i){const o=g.useContext(n);if(o)return o;if(a!==void 0)return a;throw new Error(`\`${i}\` must be used within \`${t}\``)}return[r,s]}function qE(t,a=[]){let n=[];function r(i,o){const l=g.createContext(o),d=n.length;n=[...n,o];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=n.map(o=>g.createContext(o));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[r,zE(s,...a)]}function zE(...t){const a=t[0];if(t.length===1)return a;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:o}),[o])}};return n.scopeName=a.scopeName,n}var Tj=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},EE=g[" useId ".trim().toString()]||(()=>{}),FE=0;function R9(t){const[a,n]=g.useState(EE());return Tj(()=>{t||n(r=>r??String(FE++))},[t]),t||(a?`radix-${a}`:"")}var OE=g[" useInsertionEffect ".trim().toString()]||Tj;function HE({prop:t,defaultProp:a,onChange:n=()=>{},caller:r}){const[s,i,o]=VE({defaultProp:a,onChange:n}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,r])}const h=g.useCallback(u=>{var p;if(l){const y=BE(u)?u(t):u;y!==t&&((p=o.current)==null||p.call(o,y))}else i(u)},[l,t,i,o]);return[d,h]}function VE({defaultProp:t,onChange:a}){const[n,r]=g.useState(t),s=g.useRef(n),i=g.useRef(a);return OE(()=>{i.current=a},[a]),g.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function BE(t){return typeof t=="function"}function T9(t,a,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t==null||t(s),n===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}var $E=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],nP=$E.reduce((t,a)=>{const n=Ye(`Primitive.${a}`),r=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{});function UE(t,a){t&&$j.flushSync(()=>t.dispatchEvent(a))}function AN(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function GE(...t){return a=>{let n=!1;const r=t.map(s=>{const i=AN(s,a);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():AN(t[s],null)}}}}function rP(...t){return g.useCallback(GE(...t),t)}function sP(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...n)=>{var r;return(r=a.current)==null?void 0:r.call(a,...n)},[])}function WE(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...n)=>{var r;return(r=a.current)==null?void 0:r.call(a,...n)},[])}function ZE(t,a=globalThis==null?void 0:globalThis.document){const n=WE(t);g.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return a.addEventListener("keydown",r,{capture:!0}),()=>a.removeEventListener("keydown",r,{capture:!0})},[n,a])}var JE="DismissableLayer",MC="dismissableLayer.update",XE="dismissableLayer.pointerDownOutside",YE="dismissableLayer.focusOutside",PN,iP=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),e9=g.forwardRef((t,a)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:l,...d}=t,h=g.useContext(iP),[u,p]=g.useState(null),y=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=g.useState({}),x=rP(a,N=>p(N)),f=Array.from(h.layers),[v]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),k=f.indexOf(v),w=u?f.indexOf(u):-1,b=h.layersWithOutsidePointerEventsDisabled.size>0,C=w>=k,j=eF(N=>{const S=N.target,L=[...h.branches].some(q=>q.contains(S));!C||L||(s==null||s(N),o==null||o(N),N.defaultPrevented||l==null||l())},y),I=tF(N=>{const S=N.target;[...h.branches].some(q=>q.contains(S))||(i==null||i(N),o==null||o(N),N.defaultPrevented||l==null||l())},y);return ZE(N=>{w===h.layers.size-1&&(r==null||r(N),!N.defaultPrevented&&l&&(N.preventDefault(),l()))},y),g.useEffect(()=>{if(u)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(PN=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(u)),h.layers.add(u),_N(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=PN)}},[u,y,n,h]),g.useEffect(()=>()=>{u&&(h.layers.delete(u),h.layersWithOutsidePointerEventsDisabled.delete(u),_N())},[u,h]),g.useEffect(()=>{const N=()=>m({});return document.addEventListener(MC,N),()=>document.removeEventListener(MC,N)},[]),e.jsx(nP.div,{...d,ref:x,style:{pointerEvents:b?C?"auto":"none":void 0,...t.style},onFocusCapture:T9(t.onFocusCapture,I.onFocusCapture),onBlurCapture:T9(t.onBlurCapture,I.onBlurCapture),onPointerDownCapture:T9(t.onPointerDownCapture,j.onPointerDownCapture)})});e9.displayName=JE;var KE="DismissableLayerBranch",QE=g.forwardRef((t,a)=>{const n=g.useContext(iP),r=g.useRef(null),s=rP(a,r);return g.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),e.jsx(nP.div,{...t,ref:s})});QE.displayName=KE;function eF(t,a=globalThis==null?void 0:globalThis.document){const n=sP(t),r=g.useRef(!1),s=g.useRef(()=>{});return g.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let d=function(){oP(XE,n,h,{discrete:!0})};const h={originalEvent:l};l.pointerType==="touch"?(a.removeEventListener("click",s.current),s.current=d,a.addEventListener("click",s.current,{once:!0})):d()}else a.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{a.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),a.removeEventListener("pointerdown",i),a.removeEventListener("click",s.current)}},[a,n]),{onPointerDownCapture:()=>r.current=!0}}function tF(t,a=globalThis==null?void 0:globalThis.document){const n=sP(t),r=g.useRef(!1);return g.useEffect(()=>{const s=i=>{i.target&&!r.current&&oP(YE,n,{originalEvent:i},{discrete:!1})};return a.addEventListener("focusin",s),()=>a.removeEventListener("focusin",s)},[a,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function _N(){const t=new CustomEvent(MC);document.dispatchEvent(t)}function oP(t,a,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});a&&s.addEventListener(t,a,{once:!0}),r?UE(s,i):s.dispatchEvent(i)}function RN(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function aF(...t){return a=>{let n=!1;const r=t.map(s=>{const i=RN(s,a);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():RN(t[s],null)}}}}function nF(...t){return g.useCallback(aF(...t),t)}var rF=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],sF=rF.reduce((t,a)=>{const n=Ye(`Primitive.${a}`),r=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{});function TN(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...n)=>{var r;return(r=a.current)==null?void 0:r.call(a,...n)},[])}var D9="focusScope.autoFocusOnMount",q9="focusScope.autoFocusOnUnmount",DN={bubbles:!1,cancelable:!0},iF="FocusScope",t9=g.forwardRef((t,a)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=t,[l,d]=g.useState(null),h=TN(s),u=TN(i),p=g.useRef(null),y=nF(a,f=>d(f)),m=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let f=function(b){if(m.paused||!l)return;const C=b.target;l.contains(C)?p.current=C:mn(p.current,{select:!0})},v=function(b){if(m.paused||!l)return;const C=b.relatedTarget;C!==null&&(l.contains(C)||mn(p.current,{select:!0}))},k=function(b){if(document.activeElement===document.body)for(const j of b)j.removedNodes.length>0&&mn(l)};document.addEventListener("focusin",f),document.addEventListener("focusout",v);const w=new MutationObserver(k);return l&&w.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),w.disconnect()}}},[r,l,m.paused]),g.useEffect(()=>{if(l){zN.add(m);const f=document.activeElement;if(!l.contains(f)){const k=new CustomEvent(D9,DN);l.addEventListener(D9,h),l.dispatchEvent(k),k.defaultPrevented||(oF(uF(cP(l)),{select:!0}),document.activeElement===f&&mn(l))}return()=>{l.removeEventListener(D9,h),setTimeout(()=>{const k=new CustomEvent(q9,DN);l.addEventListener(q9,u),l.dispatchEvent(k),k.defaultPrevented||mn(f??document.body,{select:!0}),l.removeEventListener(q9,u),zN.remove(m)},0)}}},[l,h,u,m]);const x=g.useCallback(f=>{if(!n&&!r||m.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,k=document.activeElement;if(v&&k){const w=f.currentTarget,[b,C]=cF(w);b&&C?!f.shiftKey&&k===C?(f.preventDefault(),n&&mn(b,{select:!0})):f.shiftKey&&k===b&&(f.preventDefault(),n&&mn(C,{select:!0})):k===w&&f.preventDefault()}},[n,r,m.paused]);return e.jsx(sF.div,{tabIndex:-1,...o,ref:y,onKeyDown:x})});t9.displayName=iF;function oF(t,{select:a=!1}={}){const n=document.activeElement;for(const r of t)if(mn(r,{select:a}),document.activeElement!==n)return}function cF(t){const a=cP(t),n=qN(a,t),r=qN(a.reverse(),t);return[n,r]}function cP(t){const a=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)a.push(n.currentNode);return a}function qN(t,a){for(const n of t)if(!lF(n,{upTo:a}))return n}function lF(t,{upTo:a}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(a!==void 0&&t===a)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function dF(t){return t instanceof HTMLInputElement&&"select"in t}function mn(t,{select:a=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&dF(t)&&a&&t.select()}}var zN=hF();function hF(){let t=[];return{add(a){const n=t[0];a!==n&&(n==null||n.pause()),t=EN(t,a),t.unshift(a)},remove(a){var n;t=EN(t,a),(n=t[0])==null||n.resume()}}}function EN(t,a){const n=[...t],r=n.indexOf(a);return r!==-1&&n.splice(r,1),n}function uF(t){return t.filter(a=>a.tagName!=="A")}var pF=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],mF=pF.reduce((t,a)=>{const n=Ye(`Primitive.${a}`),r=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{}),yF=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},fF="Portal",a9=g.forwardRef((t,a)=>{var l;const{container:n,...r}=t,[s,i]=g.useState(!1);yF(()=>i(!0),[]);const o=n||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?FC.createPortal(e.jsx(mF.div,{...r,ref:a}),o):null});a9.displayName=fF;function xF(t,a){return g.useReducer((n,r)=>a[n][r]??n,t)}var n9=t=>{const{present:a,children:n}=t,r=gF(a),s=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),i=Qj(r.ref,kF(s));return typeof n=="function"||r.isPresent?g.cloneElement(s,{ref:i}):null};n9.displayName="Presence";function gF(t){const[a,n]=g.useState(),r=g.useRef(null),s=g.useRef(t),i=g.useRef("none"),o=t?"mounted":"unmounted",[l,d]=xF(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const h=Al(r.current);i.current=l==="mounted"?h:"none"},[l]),Tj(()=>{const h=r.current,u=s.current;if(u!==t){const y=i.current,m=Al(h);t?d("MOUNT"):m==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(u&&y!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,d]),Tj(()=>{if(a){let h;const u=a.ownerDocument.defaultView??window,p=m=>{const f=Al(r.current).includes(CSS.escape(m.animationName));if(m.target===a&&f&&(d("ANIMATION_END"),!s.current)){const v=a.style.animationFillMode;a.style.animationFillMode="forwards",h=u.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=v)})}},y=m=>{m.target===a&&(i.current=Al(r.current))};return a.addEventListener("animationstart",y),a.addEventListener("animationcancel",p),a.addEventListener("animationend",p),()=>{u.clearTimeout(h),a.removeEventListener("animationstart",y),a.removeEventListener("animationcancel",p),a.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[a,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(h=>{r.current=h?getComputedStyle(h):null,n(h)},[])}}function Al(t){return(t==null?void 0:t.animationName)||"none"}function kF(t){var r,s;let a=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=a&&"isReactWarning"in a&&a.isReactWarning;return n?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=a&&"isReactWarning"in a&&a.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var vF=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],wl=vF.reduce((t,a)=>{const n=Ye(`Primitive.${a}`),r=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{}),z9=0;function vS(){g.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??FN()),document.body.insertAdjacentElement("beforeend",t[1]??FN()),z9++,()=>{z9===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),z9--}},[])}function FN(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var Na=function(){return Na=Object.assign||function(a){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(a[i]=n[i])}return a},Na.apply(this,arguments)};function lP(t,a){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&a.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)a.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n}function wF(t,a,n){if(n||arguments.length===2)for(var r=0,s=a.length,i;r<s;r++)(i||!(r in a))&&(i||(i=Array.prototype.slice.call(a,0,r)),i[r]=a[r]);return t.concat(i||Array.prototype.slice.call(a))}var vj="right-scroll-bar-position",wj="width-before-scroll-bar",bF="with-scroll-bars-hidden",MF="--removed-body-scroll-bar-size";function E9(t,a){return typeof t=="function"?t(a):t&&(t.current=a),t}function jF(t,a){var n=M.useState(function(){return{value:t,callback:a,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=a,n.facade}var CF=typeof window<"u"?g.useLayoutEffect:g.useEffect,ON=new WeakMap;function SF(t,a){var n=jF(null,function(r){return t.forEach(function(s){return E9(s,r)})});return CF(function(){var r=ON.get(n);if(r){var s=new Set(r),i=new Set(t),o=n.current;s.forEach(function(l){i.has(l)||E9(l,null)}),i.forEach(function(l){s.has(l)||E9(l,o)})}ON.set(n,t)},[t]),n}function NF(t){return t}function LF(t,a){a===void 0&&(a=NF);var n=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(i){var o=a(i,r);return n.push(o),function(){n=n.filter(function(l){return l!==o})}},assignSyncMedium:function(i){for(r=!0;n.length;){var o=n;n=[],o.forEach(i)}n={push:function(l){return i(l)},filter:function(){return n}}},assignMedium:function(i){r=!0;var o=[];if(n.length){var l=n;n=[],l.forEach(i),o=n}var d=function(){var u=o;o=[],u.forEach(i)},h=function(){return Promise.resolve().then(d)};h(),n={push:function(u){o.push(u),h()},filter:function(u){return o=o.filter(u),n}}}};return s}function IF(t){t===void 0&&(t={});var a=LF(null);return a.options=Na({async:!0,ssr:!1},t),a}var dP=function(t){var a=t.sideCar,n=lP(t,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=a.read();if(!r)throw new Error("Sidecar medium not found");return g.createElement(r,Na({},n))};dP.isSideCarExport=!0;function AF(t,a){return t.useMedium(a),dP}var hP=IF(),F9=function(){},r9=g.forwardRef(function(t,a){var n=g.useRef(null),r=g.useState({onScrollCapture:F9,onWheelCapture:F9,onTouchMoveCapture:F9}),s=r[0],i=r[1],o=t.forwardProps,l=t.children,d=t.className,h=t.removeScrollBar,u=t.enabled,p=t.shards,y=t.sideCar,m=t.noRelative,x=t.noIsolation,f=t.inert,v=t.allowPinchZoom,k=t.as,w=k===void 0?"div":k,b=t.gapMode,C=lP(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=y,I=SF([n,a]),N=Na(Na({},C),s);return g.createElement(g.Fragment,null,u&&g.createElement(j,{sideCar:hP,removeScrollBar:h,shards:p,noRelative:m,noIsolation:x,inert:f,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:b}),o?g.cloneElement(g.Children.only(l),Na(Na({},N),{ref:I})):g.createElement(w,Na({},N,{className:d,ref:I}),l))});r9.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};r9.classNames={fullWidth:wj,zeroRight:vj};var PF=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _F(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var a=PF();return a&&t.setAttribute("nonce",a),t}function RF(t,a){t.styleSheet?t.styleSheet.cssText=a:t.appendChild(document.createTextNode(a))}function TF(t){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(t)}var DF=function(){var t=0,a=null;return{add:function(n){t==0&&(a=_F())&&(RF(a,n),TF(a)),t++},remove:function(){t--,!t&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},qF=function(){var t=DF();return function(a,n){g.useEffect(function(){return t.add(a),function(){t.remove()}},[a&&n])}},uP=function(){var t=qF(),a=function(n){var r=n.styles,s=n.dynamic;return t(r,s),null};return a},zF={left:0,top:0,right:0,gap:0},O9=function(t){return parseInt(t||"",10)||0},EF=function(t){var a=window.getComputedStyle(document.body),n=a[t==="padding"?"paddingLeft":"marginLeft"],r=a[t==="padding"?"paddingTop":"marginTop"],s=a[t==="padding"?"paddingRight":"marginRight"];return[O9(n),O9(r),O9(s)]},FF=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return zF;var a=EF(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,r-n+a[2]-a[0])}},OF=uP(),dc="data-scroll-locked",HF=function(t,a,n,r){var s=t.left,i=t.top,o=t.right,l=t.gap;return n===void 0&&(n="margin"),`
7757
7757
  .`.concat(bF,` {
7758
7758
  overflow: hidden `).concat(r,`;
7759
7759
  padding-right: `).concat(l,"px ").concat(r,`;
@@ -7797,16 +7797,16 @@ React keys must be passed directly to JSX without using spread:
7797
7797
 
7798
7798
  If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.
7799
7799
 
7800
- For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return g.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},mO="DialogDescriptionWarning",yO=({contentRef:t,descriptionId:a})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${RP(mO).contentName}}.`;return g.useEffect(()=>{var i;const s=(i=t.current)==null?void 0:i.getAttribute("aria-describedby");a&&s&&(document.getElementById(a)||console.warn(r))},[r,t,a]),null},TP=kP,DP=wP,qP=MP,CS=jP,SS=CP,NS=NP,LS=IP,IS=PP;function o9(t,a){if(t==null)return{};var n={},r=Object.keys(t),s,i;for(i=0;i<r.length;i++)s=r[i],!(a.indexOf(s)>=0)&&(n[s]=t[s]);return n}var fO=["color"],xO=M.forwardRef(function(t,a){var n=t.color,r=n===void 0?"currentColor":n,s=o9(t,fO);return M.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:a}),M.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),gO=["color"],zP=M.forwardRef(function(t,a){var n=t.color,r=n===void 0?"currentColor":n,s=o9(t,gO);return M.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:a}),M.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),kO=["color"],vO=M.forwardRef(function(t,a){var n=t.color,r=n===void 0?"currentColor":n,s=o9(t,kO);return M.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:a}),M.createElement("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),wO=["color"],bO=M.forwardRef(function(t,a){var n=t.color,r=n===void 0?"currentColor":n,s=o9(t,wO);return M.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:a}),M.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});const St=TP,MO=DP,jO=qP,EP=g.forwardRef(({className:t,...a},n)=>e.jsx(CS,{ref:n,className:ye("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...a}));EP.displayName=CS.displayName;const xt=g.forwardRef(({className:t,children:a,...n},r)=>e.jsxs(jO,{children:[e.jsx(EP,{}),e.jsxs(SS,{ref:r,className:ye("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...n,children:[a,e.jsxs(IS,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[e.jsx(bO,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));xt.displayName=SS.displayName;const da=({className:t,...a})=>e.jsx("div",{className:ye("flex flex-col space-y-1.5 text-center sm:text-left",t),...a});da.displayName="DialogHeader";const Zt=({className:t,...a})=>e.jsx("div",{className:ye("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a});Zt.displayName="DialogFooter";const st=g.forwardRef(({className:t,...a},n)=>e.jsx(NS,{ref:n,className:ye("text-lg font-semibold leading-none tracking-tight",t),...a}));st.displayName=NS.displayName;const Tn=g.forwardRef(({className:t,...a},n)=>e.jsx(LS,{ref:n,className:ye("text-sm text-muted-foreground",t),...a}));Tn.displayName=LS.displayName;var CO="Label",FP=g.forwardRef((t,a)=>e.jsx(Do.label,{...t,ref:a,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=t.onMouseDown)==null||s.call(t,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));FP.displayName=CO;var OP=FP;const SO=Uj("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),O=g.forwardRef(({className:t,...a},n)=>e.jsx(OP,{ref:n,className:ye(SO(),t),...a}));O.displayName=OP.displayName;const NO=1,LO=1e6;let V9=0;function IO(){return V9=(V9+1)%Number.MAX_SAFE_INTEGER,V9.toString()}const B9=new Map,UN=t=>{if(B9.has(t))return;const a=setTimeout(()=>{B9.delete(t),bj({type:"REMOVE_TOAST",toastId:t})},LO);B9.set(t,a)},AO=(t,a)=>{switch(a.type){case"ADD_TOAST":return{...t,toasts:[a.toast,...t.toasts].slice(0,NO)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(n=>n.id===a.toast.id?{...n,...a.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=a;return n?UN(n):t.toasts.forEach(r=>{UN(r.id)}),{...t,toasts:t.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return a.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(n=>n.id!==a.toastId)}}},PO=[];let $9={toasts:[]};function bj(t){$9=AO($9,t),PO.forEach(a=>{a($9)})}function GN({...t}){const a=IO(),n=s=>bj({type:"UPDATE_TOAST",toast:{...s,id:a}}),r=()=>bj({type:"DISMISS_TOAST",toastId:a});return bj({type:"ADD_TOAST",toast:{...t,id:a,open:!0,onOpenChange:s=>{s||r()}}}),{id:a,dismiss:r,update:n}}const _O=new Set([200,201,202,204]);function RO(t){return t===400?"BAD_REQUEST":t===401?"UNAUTHORIZED":t===403?"FORBIDDEN":t===404?"NOT_FOUND":t===409?"CONFLICT":t===429?"RATE_LIMITED":t>=500?"SERVER":"UNKNOWN"}function TO(t){if(t.friendly)return t.friendly;switch(t.code){case"TIMEOUT":return"The request took too long. Please try again.";case"NETWORK":return"You appear to be offline or the server can’t be reached.";case"RATE_LIMITED":return"Too many requests. Please wait a moment and try again.";case"SERVER":return"The server had an issue. Please try again shortly.";case"CONFLICT":return"This email may already be subscribed.";case"BAD_REQUEST":return"Please check your input and try again.";case"UNAUTHORIZED":return"Please sign in to continue.";default:return"Something went wrong. Please try again."}}async function DO(t,a){const{timeoutMs:n=12e3,...r}=a??{},s=new AbortController,i=setTimeout(()=>s.abort(),n);try{const o=await fetch(t,{...r,signal:s.signal});if(_O.has(o.status)){if(o.status===204)return{ok:!0,data:void 0};const u=await o.text();return{ok:!0,data:u?JSON.parse(u):void 0}}let l=null;try{l=await o.json()}catch{}return{ok:!1,error:{code:RO(o.status),status:o.status,message:(l==null?void 0:l.message)||`${o.status} ${o.statusText}`,details:l}}}catch(o){const l=(o==null?void 0:o.name)==="AbortError";return{ok:!1,error:{code:l?"TIMEOUT":"NETWORK",message:l?"Request aborted by timeout":(o==null?void 0:o.message)||"Network error"}}}finally{clearTimeout(i)}}function qO({open:t,onOpenChange:a,onSubscriptionSuccess:n,searchQuery:r,filters:s,apiUrl:i="http://localhost:5147"}){const[o,l]=M.useState(""),[d,h]=M.useState(!1),[u,p]=M.useState(null),y=async m=>{if(m.preventDefault(),p(null),!o||!o.includes("@")){p("Please enter a valid email address.");return}h(!0);try{const x=await DO(`${i}/api/leads`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o,source:"filters_modal",utmCampaign:"jobs_filters",utmMedium:"ui",utmSource:"subscription_modal"}),timeoutMs:1e4});if(!x.ok){p(TO(x.error)),GN({title:"Subscription failed",description:x.error.message});return}localStorage.setItem("leadId",x.data.id),localStorage.setItem("email",o),GN({title:"You're subscribed",description:`We'll notify you at ${o} when new jobs match your criteria.`}),n==null||n(),l("")}finally{h(!1)}};return e.jsx(St,{open:t,onOpenChange:a,children:e.jsxs(xt,{className:"sm:max-w-md",children:[e.jsxs(da,{children:[e.jsxs(st,{className:"flex items-center gap-2",children:[e.jsx(Yo,{className:"h-5 w-5 text-orange-500"}),"Create Job Alert"]}),e.jsx(Tn,{children:"Subscribe to get notified when new jobs matching your search criteria are posted."})]}),e.jsxs("form",{onSubmit:y,className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"email",children:"Email address"}),e.jsxs("div",{className:"relative",children:[e.jsx(ca,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),e.jsx(de,{id:"email",type:"email",placeholder:"Enter your email address",value:o,onChange:m=>l(m.target.value),className:"pl-10",required:!0,"aria-invalid":!!u,"aria-describedby":u?"email-error":void 0})]}),u&&e.jsx("p",{id:"email-error",role:"alert",className:"text-sm text-red-600",children:u})]}),r&&e.jsxs("div",{className:"rounded-lg bg-muted p-3 text-sm",children:[e.jsx("p",{className:"font-medium",children:"Alert criteria:"}),e.jsxs("p",{className:"text-muted-foreground",children:['"',r,'"']})]}),e.jsxs(Zt,{className:"gap-2 sm:gap-0",children:[e.jsx(T,{type:"button",variant:"outline",onClick:()=>a(!1),disabled:d,children:"Cancel"}),e.jsx(T,{type:"submit",disabled:d,children:d?"Creating Alert...":"Create Alert"})]})]})]})})}function HP(){const t="savedJobs",[a,n]=M.useState([]);return M.useEffect(()=>{try{const i=localStorage.getItem(t);i&&n(JSON.parse(i))}catch(i){console.error("Failed to load saved jobs:",i)}},[]),{savedJobs:a,toggleJob:i=>{n(o=>{const d=o.includes(i)?o.filter(h=>h!==i):[...o,i];try{localStorage.setItem(t,JSON.stringify(d))}catch(h){console.error("Failed to persist saved jobs:",h)}return d})},isSaved:i=>i?a.includes(i):!1}}const zO=({value:t,options:a,onChange:n})=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Order by"}),e.jsxs("div",{className:"relative",children:[e.jsx("select",{"aria-label":"Order results",value:t,onChange:r=>n(r.target.value),className:"block w-full rounded-lg border border-gray-300 bg-white px-3 py-2 pr-9 text-sm text-gray-700 shadow-sm focus:border-primary-500 focus:outline-none focus:ring-2 focus:ring-primary-100",children:a.map(r=>e.jsx("option",{value:r.value,children:r.label},r.value))}),e.jsx("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3 text-gray-400",children:"▼"})]})]}),EO=6,U9={jobTypes:[],experienceLevels:[],country:"",city:"",location:"",minSalary:"",maxSalary:"",industry:""},FO=({apiUrl:t,itemsPerPage:a=12,filterKeys:n,banner:r,enableMobileFilter:s=!0,cardType:i,dateField:o="created_at",dateFieldLabel:l="Published",searchableFilters:d=["companies"],notification_url:h="http://localhost:5147",userAccess:u,onEmitEvent:p,eventContext:y,onPopularTagClick:m,onPopularTagRemove:x,allowPopularTagRemoval:f=!1})=>{var B;const[v,k]=M.useState([]),[w,b]=M.useState([]),[C,j]=M.useState([]),[I,N]=M.useState(1),[S,L]=M.useState({}),[q,_]=M.useState([]),[A,D]=M.useState({}),[H,G]=M.useState(""),[V,$]=M.useState([]),[F,re]=M.useState(!1),[K,X]=M.useState(a),[Z,le]=M.useState("grid"),[ae,fe]=M.useState(!1),[we,J]=M.useState([]),[ne,ke]=M.useState(!0),[ge,se]=M.useState(null),[me,Ie]=M.useState("all"),[Ae,Fe]=M.useState(!1),[ot,gt]=M.useState(!1),[Nt,ct]=M.useState({...U9}),[$e,Lt]=M.useState({open:!1,type:"info",message:""}),[et,on]=M.useState("date_desc"),{savedJobs:Kt,toggleJob:It}=HP(),Oa=Yj(u),E=M.useMemo(()=>({component:"Listing",...y??{}}),[y]),U=M.useMemo(()=>[{value:"relevance",label:"Best match (relevance)"},{value:"date_desc",label:`${l} (newest)`},{value:"date_asc",label:`${l} (oldest)`},{value:"views_desc",label:"Most viewed"},{value:"views_asc",label:"Least viewed"},{value:"title_asc",label:"Title A → Z"}],[l]),te=M.useCallback((R,z)=>{p&&p({domain:"jobs",name:R,payload:z,timestamp:new Date().toISOString(),context:E})},[E,p]),Ne=M.useCallback(()=>({filters:{...S},advancedFilters:Nt,dateFilter:me}),[S,me,Nt]),ze=M.useCallback(()=>({page:I,pageSize:K,totalResults:w.length,viewMode:Z,showOnlySaved:ae}),[I,w.length,K,ae,Z]),Ke=M.useRef(!1),He=(R,z)=>{Lt({open:!0,type:R,message:z})};M.useEffect(()=>{try{const R=localStorage.getItem("lastVisitedJobs");R&&J(JSON.parse(R));try{localStorage.getItem("email")&&gt(!0)}catch(z){console.error("Error checking subscription state:",z)}}catch(R){console.error("Error loading data from localStorage:",R)}},[]),M.useEffect(()=>{const z=new URLSearchParams(window.location.search).get("date_filter");z&&z!=="all"&&Ie(z)},[]),M.useEffect(()=>{if(!t){se("❌ Missing API URL for Listing component!"),ke(!1);return}ke(!0),se(null),(async()=>{try{const z=await fetch(t);if(!z.ok)throw new Error(`API responded with status: ${z.status}`);const Y=await z.json();if(!Array.isArray(Y))throw new Error("Expected an array but received: "+typeof Y);const oe=Y.map((Me,Le)=>({...Me,sponsored:Le%7===0,topTag:xS(Me.title||"")})),pe=Array.from(new Set(oe.map(Me=>Me.topTag).filter(Me=>typeof Me=="string"))).slice(0,10);j(pe);const xe=Il(oe,et,q,o);k(oe),b(xe);const Te=il(oe,n);D(Te)}catch(z){console.error("Error fetching data:",z),se(`Failed to load data: ${z instanceof Error?z.message:String(z)}`);const Y=CE(20),oe=Il(Y,et,q,o);k(Y),b(oe);const pe=il(Y,n);D(pe)}finally{ke(!1)}})()},[t,o,q,et]),M.useEffect(()=>{const R=new URLSearchParams(window.location.search),z={};n.forEach(pe=>{const xe=R.get(pe);xe&&(z[pe]=xe)}),L(z);const Y=R.get("q")||R.get("searchTerm")||"";Y&&G(Y);const oe={};n.forEach(pe=>{const xe=R.get(pe);xe&&(oe[pe]=xe)}),L(oe)},[]),M.useEffect(()=>{if(ae){const R=v.filter(Y=>Kt.includes(Y.id||Y.slug||Y.link)),z=Il(R,et,q,o);b(z),N(1)}else ea()},[]),M.useEffect(()=>{Ke.current||ne||!w.length&&!v.length||(te("jobs_listing_viewed",{...Ne(),...ze()}),Ke.current=!0)},[v.length,te,w.length,Ne,ze,ne]);const Qt=M.useCallback(R=>{const z=il(R,n);D(z)},[n]),ea=M.useCallback(R=>{const z=(R==null?void 0:R.baseItems)??v,Y=(R==null?void 0:R.filters)??S,oe=(R==null?void 0:R.search)??q,pe=(R==null?void 0:R.dateFilter)??me,xe=(R==null?void 0:R.advanced)??Nt;let Te=po(z,Y,oe,pe,o);Te=RE(Te,xe);const Me=Il(Te,et,oe,o);return b(Me),((R==null?void 0:R.resetPage)??!0)&&N(1),((R==null?void 0:R.refreshFiltersData)??!0)&&Qt(Me),Me},[me,S,Nt,v,o,q,et,Qt]);M.useEffect(()=>{ea({resetPage:!1,refreshFiltersData:!1})},[et,ea]);const $n=(R,z)=>{const Y={...S};z?Y[R]=z:delete Y[R],ae&&fe(!1),L(Y),ea({filters:Y});const oe={...Ne(),filters:Y};z?te("jobs_filter_selected",{key:R,value:z,...oe}):te("jobs_filter_cleared",{key:R,...oe})},Cc=()=>{gt(!0),_e().then(()=>Fe(!1))},Un=M.useRef(null),cn=R=>{N(R),te("jobs_listing_page_changed",{page:R,pageSize:K,totalResults:w.length}),setTimeout(()=>{var z;(z=Un.current)==null||z.scrollIntoView({behavior:"smooth",block:"start"})},100)},ln=R=>{ae&&fe(!1),Ie(R),ea({dateFilter:R}),tP(R),te("jobs_date_filter_changed",{dateFilter:R})},pa=R=>{if(G(R),R){const z=v.map(Y=>Y.title).filter((Y,oe,pe)=>Y&&Y.toLowerCase().includes(R.toLowerCase())&&pe.indexOf(Y)===oe).slice(0,5);$(z)}else $([])},Ha=R=>{if(!R.trim())return;ae&&fe(!1);const z=[...q,R.trim()];_(z),ea({search:z}),G(""),te("jobs_search_submitted",{searchKeywords:z,query:R.trim(),...Ne()})},Gn=R=>{const z=q.filter(Y=>Y!==R);_(z),ea({search:z}),te("jobs_search_filter_removed",{removedKeyword:R,remainingKeywords:z})},W=()=>{L({}),_([]),fe(!1),Ie("all"),ct({...U9}),ea({filters:{},search:[],dateFilter:"all",advanced:U9}),te("jobs_filters_cleared_all",{})},ie=R=>{const z=new Set,Y=[];for(const oe of R){const pe=`${oe.key??""}|${oe.value.toLowerCase()}`;z.has(pe)||(z.add(pe),Y.push(oe))}return Y},be=R=>R.replace(/\/+$/,""),_e=async()=>{if(te("jobs_alert_cta_clicked",{searchKeywords:q,query:H.trim()||void 0,...Ne()}),!ot)Fe(!0),te("jobs_subscription_modal_opened",{});else{const R=localStorage.getItem("email"),z=localStorage.getItem("leadId");if(!R||!z){He("info","Please subscribe first to create alerts.");return}const Y="keyword",oe=(De,dt)=>dt&&dt.trim()?{key:De.toLowerCase(),value:dt.trim()}:null,pe=Object.entries(S).map(([De,dt])=>oe(De,dt)).filter(De=>De!==null),xe=q.map(De=>oe(Y,De)).filter(De=>De!==null),Te=oe(Y,H),Me=Te?[Te]:[],Le=ie([...pe,...xe,...Me]);if(Le.length===0){He("info","No filters/keywords to save.");return}try{const De=be(h??"http://localhost:5147"),dt=await fetch(`${De}/api/leads/${z}/preferences/bulk`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Le)});if(!dt.ok){let ta="";try{ta=await dt.text()}catch{}throw new Error(`${dt.status} ${dt.statusText} ${ta}`.trim())}He("success","Alert saved. We’ll notify you about new matching jobs."),G(""),te("jobs_alert_created",{preferences:Le.filter(ta=>ta!==null)})}catch(De){console.error("Create alert failed:",De),He("error","Failed to save alert.")}}},Ue=()=>{re(!F)},Va=w.length===0?0:(I-1)*K+1,lt=Math.min(I*K,w.length),kt=R=>{X(R),N(1),te("jobs_listing_items_per_page_changed",{pageSize:R})},dn=()=>{le(R=>{const z=R==="grid"?"list":"grid";return te("jobs_listing_viewmode_changed",{viewMode:z}),z})},Ge=(R,z,Y="same_tab",oe="listing")=>{const pe=R.id||R.slug||R.link;pe&&(J(xe=>{const Te=xe.filter(Le=>(Le.id||Le.slug||Le.link)!==pe),Me=[R,...Te].slice(0,EO);try{localStorage.setItem("lastVisitedJobs",JSON.stringify(Me))}catch(Le){console.error("Error saving to localStorage:",Le)}return Me}),te("job_opened",{jobId:pe,slug:R.slug,positionInList:z,openedFrom:oe,openedIn:Y}))},vt=(R,z)=>{const Y=R.id||R.slug||R.link;if(!Y)return;const oe=Kt.includes(Y);It(Y),te(oe?"job_unsaved":"job_saved",{jobId:Y,slug:R.slug,positionInList:z})},Sc=(R,z,Y="external")=>{const oe=R.id||R.slug||R.link;oe&&te("job_apply_clicked",{jobId:oe,slug:R.slug,positionInList:z,applyType:Y})},Sl=()=>{fe(!ae)},v9=Math.ceil(w.length/K),P=w.slice((I-1)*K,I*K);return ge&&!v.length?e.jsx("div",{className:"flex-grow p-8",children:e.jsx("div",{className:"max-w-7xl mx-auto",children:e.jsxs("div",{className:"bg-red-50 border border-red-200 text-red-800 rounded-lg p-6",children:[e.jsx("h2",{className:"text-lg font-semibold mb-2",children:"Error Loading Jobs"}),e.jsx("p",{className:"mb-4",children:ge}),e.jsx("button",{onClick:()=>window.location.reload(),className:"bg-red-100 hover:bg-red-200 text-red-800 font-medium py-2 px-4 rounded",children:"Retry"})]})})}):e.jsxs("div",{className:"flex flex-col min-h-screen pb-16 md:pb-0",children:[e.jsxs("div",{className:"flex-grow",children:[e.jsx(fS,{onSearchChange:pa,searchPlaceholder:"Search jobs, companies, or keywords...",title:"Job Listings",description:"",popularTags:C,generateHref:R=>`/jobs?q=${R.toLowerCase().replace(/\s+/g,"+")}`,onTagClick:m,onTagRemove:x,allowTagRemoval:f}),e.jsxs("div",{className:"container mx-auto py-8 pb-20 md:pb-8",children:[e.jsxs("div",{className:"relative",children:[e.jsxs("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:[e.jsx(yS,{data:v.map(R=>R.title).filter(Boolean),onSelect:R=>{Ha(R)},onTyping:R=>{G(R),pa(R)},placeholder:"Search for jobs, companies, or keywords...",className:"w-full",showSubmitButton:!0}),e.jsx("button",{className:"block md:hidden flex items-center justify-center p-3 bg-white border-2 border-gray-200 text-gray-700 rounded-xl hover:border-gray-300 hover:bg-gray-50 transition-all duration-200 focus:ring-4 focus:ring-gray-200 focus:outline-none hover:scale-105",onClick:Ue,children:e.jsx(Pn,{size:16,className:"mr-1.5"})})]}),e.jsx("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:e.jsx(gS,{filters:[...me!=="all"?[{key:"date",label:l,value:me.replace(/_/g," "),onRemove:()=>ln("all")}]:[],...q.map(R=>({key:"search",label:"",value:R,onRemove:()=>Gn(R)})),...Object.entries(S).map(([R,z])=>({key:R,label:R.replace(/_/g," "),value:z,onRemove:()=>$n(R,"")}))],onClearAll:W,handleCreateAlert:_e})})]}),s&&e.jsxs("button",{className:"md:hidden w-full mb-6 px-4 py-3 bg-yellow-600 text-white rounded-lg flex items-center justify-center",onClick:Ue,"aria-expanded":F,children:[e.jsx(Pn,{className:"w-4 h-4 mr-2"}),F?"Close Filters":"Filters"]}),e.jsxs("div",{className:"flex flex-col lg:flex-row lg:gap-6",children:[e.jsx(aP,{dateFieldLabel:"Date",activeDateFilter:me,onDateFilterChange:ln,filterKeys:n,searchableFilters:d,filtersData:A,activeFilters:S,handleFilterChange:$n,toggleSavedJobsFilter:Sl,showOnlySaved:ae,savedJobs:Kt}),ne?e.jsx(mS,{}):e.jsxs("div",{className:"lg:gap-6 w-fit",children:[e.jsx(kS,{viewMode:Z,onToggleViewMode:dn,selectedItemsPerPage:K,onItemsPerPageChange:kt,totalCount:w.length,startIndex:Va,endIndex:lt,title:"Latest Jobs"}),e.jsxs("div",{className:"",children:[e.jsx("div",{className:"mb-6",children:e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("h3",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[ae?"Saved Jobs":"Open Positions",me!=="all"&&!ae&&e.jsxs("span",{className:"text-sm font-normal text-gray-500 ml-2",children:["(",me.replace(/_/g," "),")"]})]}),e.jsxs("p",{className:"text-sm text-gray-600",children:[e.jsx("span",{className:"font-semibold text-gray-900",children:w.length})," found"]})]}),e.jsx(zO,{value:et,options:U,onChange:on})]})}),e.jsx(AE,{items:P,cardType:i,viewMode:Z,savedJobs:Kt,onSaveJob:vt,onViewJob:Ge,onApplyJob:Sc,firstItemRef:Un,userAccess:Oa}),w.length>0&&e.jsx("div",{className:"mt-6",children:e.jsx(Kj,{currentPage:I,totalPages:v9,onPageChange:cn})})]}),we.length>0&&e.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:e.jsx(PE,{jobs:we,onViewJob:Ge})})]}),e.jsx("div",{className:"hidden lg:block lg:w-1/4 space-y-6",children:((B=r==null?void 0:r.sidebar)==null?void 0:B.enabled)&&e.jsxs("div",{className:"sticky top-4",children:[e.jsx(fl,{position:"sidebar",url:r.sidebar.url,link:r.sidebar.link,alt:r.sidebar.alt}),e.jsx(uS,{api_url:h}),e.jsxs("div",{className:"mt-6 bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:[e.jsx("h3",{className:"font-semibold text-lg mb-3",children:"Featured Employers"}),e.jsx("div",{className:"grid grid-cols-3 gap-2",children:[...Array(6)].map((R,z)=>e.jsx("div",{className:"flex items-center justify-center p-2 bg-gray-50 rounded-md",children:e.jsx("img",{src:`/placeholder.svg?height=40&width=40&text=${String.fromCharCode(65+z)}`,alt:`Featured employer ${z+1}`,className:"w-10 h-10 object-contain"})},z))})]})]})})]})]})]}),e.jsx(KA,{activeDateFilter:me,handleDateFilterChange:ln,filterKeys:n,searchableFilters:d,dateFieldLabel:l,activeFilters:S,handleFilterChange:$n,toggleSavedJobsFilter:Sl,filtersData:A,savedJobs:Kt,showOnlySaved:ae,isMobileFilterOpen:F,toggleMobileFilter:Ue}),e.jsx(XA,{}),e.jsx(ZA,{open:$e.open,type:$e.type,message:$e.message,onClose:()=>Lt(R=>({...R,open:!1}))}),e.jsx(qO,{open:Ae,onOpenChange:Fe,onSubscriptionSuccess:Cc,apiUrl:h})]})};function WN(t=window.location.pathname){const a=t.replace(/^\/+|\/+$/g,"").split("/"),n=a.findIndex(s=>s.toLowerCase()==="jobs");if(n===-1)return null;const r=a[n+1];return r?decodeURIComponent(r):null}function OO(){const[t,a]=M.useState(()=>WN());return M.useEffect(()=>{const n=()=>a(WN());return window.addEventListener("popstate",n),()=>window.removeEventListener("popstate",n)},[]),t}function ZN(t){window.location.assign(t)}function JN(t){window.history.length>1?window.history.back():window.location.assign(t)}function HO(t){const a=VP,n=t??{};return{id:n.id??a.id,title:n.title??a.title,company:n.company??a.company,companyLogo:n.companyLogo??a.companyLogo,location:n.location??a.location,salary:n.salary??void 0,jobType:n.jobType??a.jobType,experienceLevel:n.experienceLevel??a.experienceLevel,department:n.department??a.department,postedDate:n.postedDate??a.postedDate,applicationDeadline:n.applicationDeadline??void 0,description:n.description??a.description,requirements:Array.isArray(n.requirements)?n.requirements:[],responsibilities:Array.isArray(n.responsibilities)?n.responsibilities:[],benefits:Array.isArray(n.benefits)?n.benefits:[],skills:Array.isArray(n.skills)?n.skills:[],companyDescription:n.companyDescription??"",companySize:n.companySize??void 0,companyWebsite:n.companyWebsite??void 0,contactEmail:n.contactEmail??void 0,contactPhone:n.contactPhone??void 0,isRemote:n.isRemote??!1,isUrgent:n.isUrgent??!1,isFeatured:n.isFeatured??!1,applicationUrl:n.applicationUrl??void 0,viewCount:n.viewCount??void 0,applicantCount:n.applicantCount??void 0}}function VO(t){return!Array.isArray(t)||t.length===0?BP:t.map(a=>({id:a.id??"unknown",title:a.title??"Untitled",company:a.company??"",location:a.location??"",salary:a.salary??void 0,postedDate:a.postedDate??new Date().toISOString().slice(0,10)}))}const VP={id:"1",title:"Senior Game Developer",company:"Wazdan",companyLogo:"https://images.pexels.com/photos/3184291/pexels-photo-3184291.jpeg?auto=compress&cs=tinysrgb&w=100",location:"Malta",salary:"€80,000 - €120,000",jobType:"Full-time",experienceLevel:"Senior Level",department:"Engineering",postedDate:"2025-01-15",applicationDeadline:"2025-02-15",description:"We are seeking a talented Senior Game Developer to join our innovative team at Wazdan...",requirements:["5+ years of experience in game development","Strong proficiency in C# and Unity","Experience with HTML5 and JavaScript","Knowledge of casino game mechanics","Understanding of RNG and game mathematics","Experience with version control systems (Git)","Strong problem-solving skills","Excellent communication skills in English"],responsibilities:["Design and develop high-quality casino games","Implement game features and mechanics","Optimize game performance across multiple platforms","Collaborate with artists and designers on game assets","Write clean, maintainable, and well-documented code","Participate in code reviews and technical discussions","Debug and resolve technical issues","Stay updated with industry trends and technologies"],benefits:["Competitive salary and performance bonuses","Health insurance coverage","Flexible working hours","Remote work options","Professional development opportunities","25 days paid vacation","Modern office in Malta","Team building events and activities"],skills:["Unity","C#","JavaScript","HTML5","CSS3","Git","Agile","Game Design"],companyDescription:"Wazdan is a leading provider of innovative casino games...",companySize:"100-200 employees",companyWebsite:"https://wazdan.com",contactEmail:"careers@wazdan.com",contactPhone:"+356 2123 4567",isRemote:!1,isUrgent:!0,isFeatured:!0,applicationUrl:"https://wazdan.com/careers/apply",viewCount:1247,applicantCount:23},BP=[{id:"2",title:"Frontend Game Developer",company:"Pragmatic Play",location:"Malta",salary:"€60,000 - €80,000",postedDate:"2025-01-10"},{id:"3",title:"Unity Developer",company:"Evolution Gaming",location:"Remote",salary:"€70,000 - €90,000",postedDate:"2025-01-12"},{id:"4",title:"Game Developer",company:"NetEnt",location:"Stockholm",salary:"€65,000 - €85,000",postedDate:"2025-01-08"}],BO=({job:t=VP,similarJobs:a=BP,onSkillClick:n})=>{var N;const r=OO(),[s,i]=M.useState(()=>VO(a)),[o,l]=M.useState(!1),[d,h]=M.useState(null),[u,p]=M.useState(!1),[y,m]=M.useState(!1),{savedJobs:x,toggleJob:f,isSaved:v}=HP(),k=HO(t);M.useEffect(()=>{(async()=>{l(!0);try{if(await new Promise(q=>setTimeout(q,300)),!r)throw new Error("Missing slug in URL.");i(s);const L=JSON.parse(localStorage.getItem("appliedJobs")||"[]");m(L.includes(r))}catch(L){h((L==null?void 0:L.message)||"Failed to load job details")}finally{l(!1)}})()},[r]);const w=()=>{r&&f(r)},b=()=>{if(!r)return;k!=null&&k.applicationUrl?window.open(k.applicationUrl,"_blank","noopener,noreferrer"):p(!0);const S=JSON.parse(localStorage.getItem("appliedJobs")||"[]");S.includes(r)||(S.push(r),localStorage.setItem("appliedJobs",JSON.stringify(S)),m(!0))},C=async()=>{if(navigator.share)try{await navigator.share({title:k==null?void 0:k.title,text:`Check out this job opportunity: ${k==null?void 0:k.title} at ${k==null?void 0:k.company}`,url:window.location.href})}catch(S){console.log("Error sharing:",S)}else navigator.clipboard.writeText(window.location.href),alert("Job URL copied to clipboard!")},j=S=>new Date(S).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),I=S=>{const L=new Date(S),_=Math.abs(new Date().getTime()-L.getTime());return Math.ceil(_/(1e3*60*60*24))};return o?e.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto"}),e.jsx("p",{className:"mt-4 text-gray-600",children:"Loading job details..."})]})}):d||!k?e.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx(Ht,{className:"h-12 w-12 text-red-500 mx-auto mb-4"}),e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-2",children:"Job Not Found"}),e.jsx("p",{className:"text-gray-600 mb-4",children:d||"The job you are looking for does not exist."}),e.jsx("button",{onClick:()=>JN("/jobs"),className:"bg-blue-600 text-white px-6 py-2 rounded-lg hover:bg-blue-700 transition-colors",children:"Back to Jobs"})]})}):e.jsxs("div",{className:"min-h-screen bg-gray-50",children:[e.jsx("div",{className:"bg-white border-b border-gray-200",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4",children:[e.jsxs("button",{onClick:()=>JN("/jobs"),className:"flex items-center text-gray-600 hover:text-gray-900 mb-4",children:[e.jsx(Ja,{className:"h-4 w-4 mr-2"}),"Back to Jobs"]}),e.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-start lg:justify-between",children:[e.jsx("div",{className:"flex-1",children:e.jsxs("div",{className:"flex items-start space-x-4",children:[k.companyLogo&&e.jsx("img",{src:k.companyLogo,alt:`${k.company} logo`,className:"w-16 h-16 rounded-lg object-cover border border-gray-200"}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center space-x-2 mb-2",children:[k.isUrgent&&e.jsx("span",{className:"bg-red-100 text-red-800 text-xs font-medium px-2 py-1 rounded-full",children:"Urgent"}),k.isFeatured&&e.jsx("span",{className:"bg-yellow-100 text-yellow-800 text-xs font-medium px-2 py-1 rounded-full",children:"Featured"})]}),e.jsx("h1",{className:"text-2xl lg:text-3xl font-bold text-gray-900 mb-2",children:k.title}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-gray-600",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(rt,{className:"h-4 w-4 mr-1"}),e.jsx("span",{className:"font-medium",children:k.company})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(Qe,{className:"h-4 w-4 mr-1"}),e.jsx("span",{children:k.location}),k.isRemote&&e.jsx("span",{className:"ml-1",children:"(Remote)"})]}),k.salary&&e.jsxs("div",{className:"flex items-center",children:[e.jsx(Ec,{className:"h-4 w-4 mr-1"}),e.jsx("span",{children:k.salary})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(ga,{className:"h-4 w-4 mr-1"}),e.jsxs("span",{children:[I(k.postedDate)," days ago"]})]})]})]})]})}),e.jsxs("div",{className:"flex items-center space-x-3 mt-4 lg:mt-0",children:[e.jsxs("button",{onClick:w,className:`flex items-center px-4 py-2 rounded-lg border transition-colors ${v(k.id)?"bg-blue-50 border-blue-200 text-blue-700":"bg-white border-gray-300 text-gray-700 hover:bg-gray-50"}`,children:[e.jsx(Nn,{className:`h-4 w-4 mr-2 ${v(k.id)?"fill-current":""}`}),v(k.id)?"Saved":"Save Job"]}),e.jsxs("button",{onClick:C,className:"flex items-center px-4 py-2 bg-white border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors",children:[e.jsx(wo,{className:"h-4 w-4 mr-2"}),"Share"]}),e.jsx("button",{onClick:b,disabled:y,className:`flex items-center px-6 py-2 rounded-lg font-medium transition-colors ${y?"bg-green-100 text-green-800 cursor-not-allowed":"bg-blue-600 text-white hover:bg-blue-700"}`,children:y?e.jsxs(e.Fragment,{children:[e.jsx(Vt,{className:"h-4 w-4 mr-2"}),"Applied"]}):e.jsxs(e.Fragment,{children:[e.jsx(go,{className:"h-4 w-4 mr-2"}),"Apply Now"]})})]})]})]})}),e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-8",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:[e.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[e.jsx(Ze,{className:"h-6 w-6 text-blue-600 mx-auto mb-2"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Job Type"}),e.jsx("p",{className:"font-medium",children:k.jobType})]}),e.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[e.jsx(Sn,{className:"h-6 w-6 text-blue-600 mx-auto mb-2"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Experience"}),e.jsx("p",{className:"font-medium",children:k.experienceLevel})]}),e.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[e.jsx(mt,{className:"h-6 w-6 text-blue-600 mx-auto mb-2"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Department"}),e.jsx("p",{className:"font-medium",children:k.department})]}),e.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[e.jsx(xo,{className:"h-6 w-6 text-blue-600 mx-auto mb-2"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Deadline"}),e.jsx("p",{className:"font-medium text-sm",children:k.applicationDeadline?j(k.applicationDeadline):"Open"})]})]}),e.jsxs("div",{className:"flex items-center justify-between pt-4 border-t border-gray-200",children:[e.jsxs("div",{className:"flex items-center space-x-4 text-sm text-gray-600",children:[e.jsxs("span",{children:[k.viewCount," views"]}),e.jsxs("span",{children:[k.applicantCount," applicants"]})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(jt,{className:"h-4 w-4 text-yellow-400 fill-current"}),e.jsx("span",{className:"text-sm text-gray-600",children:"4.8 company rating"})]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Job Description"}),e.jsx("div",{className:"prose prose-gray max-w-none",children:e.jsx("p",{className:"text-gray-700 leading-relaxed whitespace-pre-line",children:k.description})})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Key Responsibilities"}),e.jsx("ul",{className:"space-y-3",children:(N=k.responsibilities)==null?void 0:N.map((S,L)=>e.jsxs("li",{className:"flex items-start",children:[e.jsx(Vt,{className:"h-5 w-5 text-green-500 mr-3 mt-0.5 flex-shrink-0"}),e.jsx("span",{className:"text-gray-700",children:S})]},L))})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Requirements"}),Array.isArray(k.requirements)?e.jsx("ul",{className:"space-y-3",children:k.requirements.map((S,L)=>e.jsxs("li",{className:"flex items-start",children:[e.jsx(Vt,{className:"h-5 w-5 text-blue-500 mr-3 mt-0.5 flex-shrink-0"}),e.jsx("span",{className:"text-gray-700",children:S})]},L))}):e.jsx("p",{className:"text-gray-700 whitespace-pre-line",children:k.requirements})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Required Skills"}),Array.isArray(k.skills)?e.jsx("div",{className:"flex flex-wrap gap-2",children:k.skills.map((S,L)=>e.jsx(VC,{name:S,color:"#2563EB",size:"sm",onClick:n?()=>n(S):void 0},`${S}-${L}`))}):e.jsx("p",{className:"text-gray-700 whitespace-pre-line",children:k.skills})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Benefits & Perks"}),Array.isArray(k.benefits)?e.jsx("ul",{className:"space-y-3",children:k.benefits.map((S,L)=>e.jsxs("li",{className:"flex items-start",children:[e.jsx(Vt,{className:"h-5 w-5 text-green-500 mr-3 mt-0.5 flex-shrink-0"}),e.jsx("span",{className:"text-gray-700",children:S})]},L))}):e.jsx("p",{className:"text-gray-700 whitespace-pre-line",children:k.benefits})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsxs("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:["About ",k.company]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("p",{className:"text-gray-700 text-sm leading-relaxed",children:k.companyDescription}),e.jsxs("div",{className:"space-y-2 text-sm",children:[k.companySize&&e.jsxs("div",{className:"flex items-center",children:[e.jsx(mt,{className:"h-4 w-4 text-gray-400 mr-2"}),e.jsx("span",{className:"text-gray-600",children:k.companySize})]}),k.companyWebsite&&e.jsxs("div",{className:"flex items-center",children:[e.jsx(oa,{className:"h-4 w-4 text-gray-400 mr-2"}),e.jsx("a",{href:k.companyWebsite,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:text-blue-800",children:"Visit Website"})]})]}),e.jsxs("div",{className:"pt-4 border-t border-gray-200",children:[e.jsx("h4",{className:"font-medium text-gray-900 mb-2",children:"Contact Information"}),e.jsxs("div",{className:"space-y-2 text-sm",children:[k.contactEmail&&e.jsxs("div",{className:"flex items-center",children:[e.jsx(ca,{className:"h-4 w-4 text-gray-400 mr-2"}),e.jsx("a",{href:`mailto:${k.contactEmail}`,className:"text-blue-600 hover:text-blue-800",children:k.contactEmail})]}),k.contactPhone&&e.jsxs("div",{className:"flex items-center",children:[e.jsx(In,{className:"h-4 w-4 text-gray-400 mr-2"}),e.jsx("a",{href:`tel:${k.contactPhone}`,className:"text-blue-600 hover:text-blue-800",children:k.contactPhone})]})]})]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Ready to Apply?"}),e.jsxs("p",{className:"text-gray-600 text-sm mb-4",children:["Join ",k.company," and take your career to the next level in the exciting world of iGaming."]}),e.jsx("button",{onClick:b,disabled:y,className:`w-full flex items-center justify-center px-6 py-3 rounded-lg font-medium transition-colors ${y?"bg-green-100 text-green-800 cursor-not-allowed":"bg-blue-600 text-white hover:bg-blue-700"}`,children:y?e.jsxs(e.Fragment,{children:[e.jsx(Vt,{className:"h-5 w-5 mr-2"}),"Application Submitted"]}):e.jsxs(e.Fragment,{children:[e.jsx(go,{className:"h-5 w-5 mr-2"}),"Apply for this Position"]})}),!y&&e.jsxs("div",{className:"mt-4 flex items-center space-x-2",children:[e.jsxs("button",{onClick:w,className:`flex-1 flex items-center justify-center px-4 py-2 rounded-lg border transition-colors ${v(k.id)?"bg-blue-50 border-blue-200 text-blue-700":"bg-white border-gray-300 text-gray-700 hover:bg-gray-50"}`,children:[e.jsx(xa,{className:`h-4 w-4 mr-2 ${v(k.id)?"fill-current":""}`}),v(k.id)?"Saved":"Save"]}),e.jsx("button",{className:"flex items-center justify-center p-2 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors",children:e.jsx(Hc,{className:"h-4 w-4"})})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Similar Jobs"}),e.jsx("div",{className:"space-y-4",children:s.map(S=>e.jsxs("div",{className:"border border-gray-200 rounded-lg p-4 hover:bg-gray-50 cursor-pointer transition-colors",onClick:()=>ZN(`/jobs/${S.id}`),children:[e.jsx("h4",{className:"font-medium text-gray-900 mb-1",children:S.title}),e.jsx("p",{className:"text-sm text-gray-600 mb-2",children:S.company}),e.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-500",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(Qe,{className:"h-3 w-3 mr-1"}),e.jsx("span",{children:S.location})]}),e.jsxs("span",{children:[I(S.postedDate),"d ago"]})]}),S.salary&&e.jsx("p",{className:"text-sm font-medium text-blue-600 mt-2",children:S.salary})]},S.id))}),e.jsx("button",{onClick:()=>ZN("/jobs"),className:"w-full mt-4 text-center text-blue-600 hover:text-blue-800 text-sm font-medium",children:"View All Jobs"})]})]})]})}),u&&e.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:e.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Apply for this Position"}),e.jsx("p",{className:"text-gray-600 mb-4",children:"To apply for this position, please send your CV and cover letter to:"}),e.jsx("div",{className:"bg-gray-50 p-4 rounded-lg mb-4",children:e.jsx("p",{className:"font-medium",children:k.contactEmail})}),e.jsxs("div",{className:"flex space-x-3",children:[e.jsx("button",{onClick:()=>p(!1),className:"flex-1 px-4 py-2 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors",children:"Close"}),e.jsx("button",{onClick:()=>{window.location.href=`mailto:${k.contactEmail}?subject=Application for ${k.title}&body=Dear Hiring Manager,%0D%0A%0D%0AI am interested in applying for the ${k.title} position at ${k.company}.%0D%0A%0D%0APlease find my CV attached.%0D%0A%0D%0ABest regards`,p(!1)},className:"flex-1 px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:"Send Email"})]})]})})]})},$O=()=>e.jsx("div",{children:e.jsx("h2",{children:"Welcome to the Header!"})}),UO=({article:t,isBookmarked:a,onToggleBookmark:n,onShare:r,onOpenArticle:s,layout:i="card",userAccess:o,positionInList:l})=>{const[d,h]=M.useState(!1),u=f=>{const v=new Date(f),w=Math.floor((new Date().getTime()-v.getTime())/(1e3*60*60));return w<1?"Just now":w<24?`${w}h ago`:w<48?"Yesterday":v.toLocaleDateString("en-US",{month:"short",day:"numeric"})},p=f=>f>=1e3?`${(f/1e3).toFixed(1)}k`:f.toString(),y=f=>f.length>1?f[1]:f[0],m=(f,v)=>f.length<=v?f:f.substring(0,v).trim()+"...",x=i==="grid"?"flex flex-col":"flex flex-col md:flex-row md:items-center";return e.jsxs("article",{className:`
7800
+ For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return g.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},mO="DialogDescriptionWarning",yO=({contentRef:t,descriptionId:a})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${RP(mO).contentName}}.`;return g.useEffect(()=>{var i;const s=(i=t.current)==null?void 0:i.getAttribute("aria-describedby");a&&s&&(document.getElementById(a)||console.warn(r))},[r,t,a]),null},TP=kP,DP=wP,qP=MP,CS=jP,SS=CP,NS=NP,LS=IP,IS=PP;function o9(t,a){if(t==null)return{};var n={},r=Object.keys(t),s,i;for(i=0;i<r.length;i++)s=r[i],!(a.indexOf(s)>=0)&&(n[s]=t[s]);return n}var fO=["color"],xO=M.forwardRef(function(t,a){var n=t.color,r=n===void 0?"currentColor":n,s=o9(t,fO);return M.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:a}),M.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),gO=["color"],zP=M.forwardRef(function(t,a){var n=t.color,r=n===void 0?"currentColor":n,s=o9(t,gO);return M.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:a}),M.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),kO=["color"],vO=M.forwardRef(function(t,a){var n=t.color,r=n===void 0?"currentColor":n,s=o9(t,kO);return M.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:a}),M.createElement("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),wO=["color"],bO=M.forwardRef(function(t,a){var n=t.color,r=n===void 0?"currentColor":n,s=o9(t,wO);return M.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:a}),M.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});const St=TP,MO=DP,jO=qP,EP=g.forwardRef(({className:t,...a},n)=>e.jsx(CS,{ref:n,className:fe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...a}));EP.displayName=CS.displayName;const xt=g.forwardRef(({className:t,children:a,...n},r)=>e.jsxs(jO,{children:[e.jsx(EP,{}),e.jsxs(SS,{ref:r,className:fe("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...n,children:[a,e.jsxs(IS,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[e.jsx(bO,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));xt.displayName=SS.displayName;const da=({className:t,...a})=>e.jsx("div",{className:fe("flex flex-col space-y-1.5 text-center sm:text-left",t),...a});da.displayName="DialogHeader";const Zt=({className:t,...a})=>e.jsx("div",{className:fe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a});Zt.displayName="DialogFooter";const st=g.forwardRef(({className:t,...a},n)=>e.jsx(NS,{ref:n,className:fe("text-lg font-semibold leading-none tracking-tight",t),...a}));st.displayName=NS.displayName;const Tn=g.forwardRef(({className:t,...a},n)=>e.jsx(LS,{ref:n,className:fe("text-sm text-muted-foreground",t),...a}));Tn.displayName=LS.displayName;var CO="Label",FP=g.forwardRef((t,a)=>e.jsx(Do.label,{...t,ref:a,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=t.onMouseDown)==null||s.call(t,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));FP.displayName=CO;var OP=FP;const SO=Uj("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),O=g.forwardRef(({className:t,...a},n)=>e.jsx(OP,{ref:n,className:fe(SO(),t),...a}));O.displayName=OP.displayName;const NO=1,LO=1e6;let V9=0;function IO(){return V9=(V9+1)%Number.MAX_SAFE_INTEGER,V9.toString()}const B9=new Map,UN=t=>{if(B9.has(t))return;const a=setTimeout(()=>{B9.delete(t),bj({type:"REMOVE_TOAST",toastId:t})},LO);B9.set(t,a)},AO=(t,a)=>{switch(a.type){case"ADD_TOAST":return{...t,toasts:[a.toast,...t.toasts].slice(0,NO)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(n=>n.id===a.toast.id?{...n,...a.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=a;return n?UN(n):t.toasts.forEach(r=>{UN(r.id)}),{...t,toasts:t.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return a.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(n=>n.id!==a.toastId)}}},PO=[];let $9={toasts:[]};function bj(t){$9=AO($9,t),PO.forEach(a=>{a($9)})}function GN({...t}){const a=IO(),n=s=>bj({type:"UPDATE_TOAST",toast:{...s,id:a}}),r=()=>bj({type:"DISMISS_TOAST",toastId:a});return bj({type:"ADD_TOAST",toast:{...t,id:a,open:!0,onOpenChange:s=>{s||r()}}}),{id:a,dismiss:r,update:n}}const _O=new Set([200,201,202,204]);function RO(t){return t===400?"BAD_REQUEST":t===401?"UNAUTHORIZED":t===403?"FORBIDDEN":t===404?"NOT_FOUND":t===409?"CONFLICT":t===429?"RATE_LIMITED":t>=500?"SERVER":"UNKNOWN"}function TO(t){if(t.friendly)return t.friendly;switch(t.code){case"TIMEOUT":return"The request took too long. Please try again.";case"NETWORK":return"You appear to be offline or the server can’t be reached.";case"RATE_LIMITED":return"Too many requests. Please wait a moment and try again.";case"SERVER":return"The server had an issue. Please try again shortly.";case"CONFLICT":return"This email may already be subscribed.";case"BAD_REQUEST":return"Please check your input and try again.";case"UNAUTHORIZED":return"Please sign in to continue.";default:return"Something went wrong. Please try again."}}async function DO(t,a){const{timeoutMs:n=12e3,...r}=a??{},s=new AbortController,i=setTimeout(()=>s.abort(),n);try{const o=await fetch(t,{...r,signal:s.signal});if(_O.has(o.status)){if(o.status===204)return{ok:!0,data:void 0};const u=await o.text();return{ok:!0,data:u?JSON.parse(u):void 0}}let l=null;try{l=await o.json()}catch{}return{ok:!1,error:{code:RO(o.status),status:o.status,message:(l==null?void 0:l.message)||`${o.status} ${o.statusText}`,details:l}}}catch(o){const l=(o==null?void 0:o.name)==="AbortError";return{ok:!1,error:{code:l?"TIMEOUT":"NETWORK",message:l?"Request aborted by timeout":(o==null?void 0:o.message)||"Network error"}}}finally{clearTimeout(i)}}function qO({open:t,onOpenChange:a,onSubscriptionSuccess:n,searchQuery:r,filters:s,apiUrl:i="http://localhost:5147"}){const[o,l]=M.useState(""),[d,h]=M.useState(!1),[u,p]=M.useState(null),y=async m=>{if(m.preventDefault(),p(null),!o||!o.includes("@")){p("Please enter a valid email address.");return}h(!0);try{const x=await DO(`${i}/api/leads`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o,source:"filters_modal",utmCampaign:"jobs_filters",utmMedium:"ui",utmSource:"subscription_modal"}),timeoutMs:1e4});if(!x.ok){p(TO(x.error)),GN({title:"Subscription failed",description:x.error.message});return}localStorage.setItem("leadId",x.data.id),localStorage.setItem("email",o),GN({title:"You're subscribed",description:`We'll notify you at ${o} when new jobs match your criteria.`}),n==null||n(),l("")}finally{h(!1)}};return e.jsx(St,{open:t,onOpenChange:a,children:e.jsxs(xt,{className:"sm:max-w-md",children:[e.jsxs(da,{children:[e.jsxs(st,{className:"flex items-center gap-2",children:[e.jsx(Yo,{className:"h-5 w-5 text-orange-500"}),"Create Job Alert"]}),e.jsx(Tn,{children:"Subscribe to get notified when new jobs matching your search criteria are posted."})]}),e.jsxs("form",{onSubmit:y,className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"email",children:"Email address"}),e.jsxs("div",{className:"relative",children:[e.jsx(ca,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),e.jsx(de,{id:"email",type:"email",placeholder:"Enter your email address",value:o,onChange:m=>l(m.target.value),className:"pl-10",required:!0,"aria-invalid":!!u,"aria-describedby":u?"email-error":void 0})]}),u&&e.jsx("p",{id:"email-error",role:"alert",className:"text-sm text-red-600",children:u})]}),r&&e.jsxs("div",{className:"rounded-lg bg-muted p-3 text-sm",children:[e.jsx("p",{className:"font-medium",children:"Alert criteria:"}),e.jsxs("p",{className:"text-muted-foreground",children:['"',r,'"']})]}),e.jsxs(Zt,{className:"gap-2 sm:gap-0",children:[e.jsx(T,{type:"button",variant:"outline",onClick:()=>a(!1),disabled:d,children:"Cancel"}),e.jsx(T,{type:"submit",disabled:d,children:d?"Creating Alert...":"Create Alert"})]})]})]})})}function HP(){const t="savedJobs",[a,n]=M.useState([]);return M.useEffect(()=>{try{const i=localStorage.getItem(t);i&&n(JSON.parse(i))}catch(i){console.error("Failed to load saved jobs:",i)}},[]),{savedJobs:a,toggleJob:i=>{n(o=>{const d=o.includes(i)?o.filter(h=>h!==i):[...o,i];try{localStorage.setItem(t,JSON.stringify(d))}catch(h){console.error("Failed to persist saved jobs:",h)}return d})},isSaved:i=>i?a.includes(i):!1}}const zO=({value:t,options:a,onChange:n})=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Order by"}),e.jsxs("div",{className:"relative",children:[e.jsx("select",{"aria-label":"Order results",value:t,onChange:r=>n(r.target.value),className:"block w-full rounded-lg border border-gray-300 bg-white px-3 py-2 pr-9 text-sm text-gray-700 shadow-sm focus:border-primary-500 focus:outline-none focus:ring-2 focus:ring-primary-100",children:a.map(r=>e.jsx("option",{value:r.value,children:r.label},r.value))}),e.jsx("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3 text-gray-400",children:"▼"})]})]}),EO=6,U9={jobTypes:[],experienceLevels:[],country:"",city:"",location:"",minSalary:"",maxSalary:"",industry:""},FO=({apiUrl:t,itemsPerPage:a=12,filterKeys:n,banner:r,enableMobileFilter:s=!0,cardType:i,dateField:o="created_at",dateFieldLabel:l="Published",searchableFilters:d=["companies"],notification_url:h="http://localhost:5147",userAccess:u,onEmitEvent:p,eventContext:y,onPopularTagClick:m,onPopularTagRemove:x,allowPopularTagRemoval:f=!1})=>{var B;const[v,k]=M.useState([]),[w,b]=M.useState([]),[C,j]=M.useState([]),[I,N]=M.useState(1),[S,L]=M.useState({}),[q,_]=M.useState([]),[A,D]=M.useState({}),[H,G]=M.useState(""),[V,U]=M.useState([]),[F,se]=M.useState(!1),[K,X]=M.useState(a),[J,re]=M.useState("grid"),[te,ye]=M.useState(!1),[ve,Z]=M.useState([]),[ae,ge]=M.useState(!0),[ke,ie]=M.useState(null),[me,Ie]=M.useState("all"),[Ae,Fe]=M.useState(!1),[ot,gt]=M.useState(!1),[Nt,ct]=M.useState({...U9}),[$e,Lt]=M.useState({open:!1,type:"info",message:""}),[et,on]=M.useState("date_desc"),{savedJobs:Kt,toggleJob:It}=HP(),Oa=Yj(u),E=M.useMemo(()=>({component:"Listing",...y??{}}),[y]),$=M.useMemo(()=>[{value:"relevance",label:"Best match (relevance)"},{value:"date_desc",label:`${l} (newest)`},{value:"date_asc",label:`${l} (oldest)`},{value:"views_desc",label:"Most viewed"},{value:"views_asc",label:"Least viewed"},{value:"title_asc",label:"Title A → Z"}],[l]),ne=M.useCallback((R,z)=>{p&&p({domain:"jobs",name:R,payload:z,timestamp:new Date().toISOString(),context:E})},[E,p]),Ne=M.useCallback(()=>({filters:{...S},advancedFilters:Nt,dateFilter:me}),[S,me,Nt]),ze=M.useCallback(()=>({page:I,pageSize:K,totalResults:w.length,viewMode:J,showOnlySaved:te}),[I,w.length,K,te,J]),Ke=M.useRef(!1),He=(R,z)=>{Lt({open:!0,type:R,message:z})};M.useEffect(()=>{try{const R=localStorage.getItem("lastVisitedJobs");R&&Z(JSON.parse(R));try{localStorage.getItem("email")&&gt(!0)}catch(z){console.error("Error checking subscription state:",z)}}catch(R){console.error("Error loading data from localStorage:",R)}},[]),M.useEffect(()=>{const z=new URLSearchParams(window.location.search).get("date_filter");z&&z!=="all"&&Ie(z)},[]),M.useEffect(()=>{if(!t){ie("❌ Missing API URL for Listing component!"),ge(!1);return}ge(!0),ie(null),(async()=>{try{const z=await fetch(t);if(!z.ok)throw new Error(`API responded with status: ${z.status}`);const Y=await z.json();if(!Array.isArray(Y))throw new Error("Expected an array but received: "+typeof Y);const ce=Y.map((Me,Le)=>({...Me,sponsored:Le%7===0,topTag:xS(Me.title||"")})),pe=Array.from(new Set(ce.map(Me=>Me.topTag).filter(Me=>typeof Me=="string"))).slice(0,10);j(pe);const xe=Il(ce,et,q,o);k(ce),b(xe);const Te=il(ce,n);D(Te)}catch(z){console.error("Error fetching data:",z),ie(`Failed to load data: ${z instanceof Error?z.message:String(z)}`);const Y=CE(20),ce=Il(Y,et,q,o);k(Y),b(ce);const pe=il(Y,n);D(pe)}finally{ge(!1)}})()},[t,o,q,et]),M.useEffect(()=>{const R=new URLSearchParams(window.location.search),z={};n.forEach(pe=>{const xe=R.get(pe);xe&&(z[pe]=xe)}),L(z);const Y=R.get("q")||R.get("searchTerm")||"";Y&&G(Y);const ce={};n.forEach(pe=>{const xe=R.get(pe);xe&&(ce[pe]=xe)}),L(ce)},[]),M.useEffect(()=>{if(te){const R=v.filter(Y=>Kt.includes(Y.id||Y.slug||Y.link)),z=Il(R,et,q,o);b(z),N(1)}else ea()},[]),M.useEffect(()=>{Ke.current||ae||!w.length&&!v.length||(ne("jobs_listing_viewed",{...Ne(),...ze()}),Ke.current=!0)},[v.length,ne,w.length,Ne,ze,ae]);const Qt=M.useCallback(R=>{const z=il(R,n);D(z)},[n]),ea=M.useCallback(R=>{const z=(R==null?void 0:R.baseItems)??v,Y=(R==null?void 0:R.filters)??S,ce=(R==null?void 0:R.search)??q,pe=(R==null?void 0:R.dateFilter)??me,xe=(R==null?void 0:R.advanced)??Nt;let Te=po(z,Y,ce,pe,o);Te=RE(Te,xe);const Me=Il(Te,et,ce,o);return b(Me),((R==null?void 0:R.resetPage)??!0)&&N(1),((R==null?void 0:R.refreshFiltersData)??!0)&&Qt(Me),Me},[me,S,Nt,v,o,q,et,Qt]);M.useEffect(()=>{ea({resetPage:!1,refreshFiltersData:!1})},[et,ea]);const $n=(R,z)=>{const Y={...S};z?Y[R]=z:delete Y[R],te&&ye(!1),L(Y),ea({filters:Y});const ce={...Ne(),filters:Y};z?ne("jobs_filter_selected",{key:R,value:z,...ce}):ne("jobs_filter_cleared",{key:R,...ce})},Cc=()=>{gt(!0),_e().then(()=>Fe(!1))},Un=M.useRef(null),cn=R=>{N(R),ne("jobs_listing_page_changed",{page:R,pageSize:K,totalResults:w.length}),setTimeout(()=>{var z;(z=Un.current)==null||z.scrollIntoView({behavior:"smooth",block:"start"})},100)},ln=R=>{te&&ye(!1),Ie(R),ea({dateFilter:R}),tP(R),ne("jobs_date_filter_changed",{dateFilter:R})},pa=R=>{if(G(R),R){const z=v.map(Y=>Y.title).filter((Y,ce,pe)=>Y&&Y.toLowerCase().includes(R.toLowerCase())&&pe.indexOf(Y)===ce).slice(0,5);U(z)}else U([])},Ha=R=>{if(!R.trim())return;te&&ye(!1);const z=[...q,R.trim()];_(z),ea({search:z}),G(""),ne("jobs_search_submitted",{searchKeywords:z,query:R.trim(),...Ne()})},Gn=R=>{const z=q.filter(Y=>Y!==R);_(z),ea({search:z}),ne("jobs_search_filter_removed",{removedKeyword:R,remainingKeywords:z})},W=()=>{L({}),_([]),ye(!1),Ie("all"),ct({...U9}),ea({filters:{},search:[],dateFilter:"all",advanced:U9}),ne("jobs_filters_cleared_all",{})},oe=R=>{const z=new Set,Y=[];for(const ce of R){const pe=`${ce.key??""}|${ce.value.toLowerCase()}`;z.has(pe)||(z.add(pe),Y.push(ce))}return Y},be=R=>R.replace(/\/+$/,""),_e=async()=>{if(ne("jobs_alert_cta_clicked",{searchKeywords:q,query:H.trim()||void 0,...Ne()}),!ot)Fe(!0),ne("jobs_subscription_modal_opened",{});else{const R=localStorage.getItem("email"),z=localStorage.getItem("leadId");if(!R||!z){He("info","Please subscribe first to create alerts.");return}const Y="keyword",ce=(De,dt)=>dt&&dt.trim()?{key:De.toLowerCase(),value:dt.trim()}:null,pe=Object.entries(S).map(([De,dt])=>ce(De,dt)).filter(De=>De!==null),xe=q.map(De=>ce(Y,De)).filter(De=>De!==null),Te=ce(Y,H),Me=Te?[Te]:[],Le=oe([...pe,...xe,...Me]);if(Le.length===0){He("info","No filters/keywords to save.");return}try{const De=be(h??"http://localhost:5147"),dt=await fetch(`${De}/api/leads/${z}/preferences/bulk`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Le)});if(!dt.ok){let ta="";try{ta=await dt.text()}catch{}throw new Error(`${dt.status} ${dt.statusText} ${ta}`.trim())}He("success","Alert saved. We’ll notify you about new matching jobs."),G(""),ne("jobs_alert_created",{preferences:Le.filter(ta=>ta!==null)})}catch(De){console.error("Create alert failed:",De),He("error","Failed to save alert.")}}},Ue=()=>{se(!F)},Va=w.length===0?0:(I-1)*K+1,lt=Math.min(I*K,w.length),kt=R=>{X(R),N(1),ne("jobs_listing_items_per_page_changed",{pageSize:R})},dn=()=>{re(R=>{const z=R==="grid"?"list":"grid";return ne("jobs_listing_viewmode_changed",{viewMode:z}),z})},Ge=(R,z,Y="same_tab",ce="listing")=>{const pe=R.id||R.slug||R.link;pe&&(Z(xe=>{const Te=xe.filter(Le=>(Le.id||Le.slug||Le.link)!==pe),Me=[R,...Te].slice(0,EO);try{localStorage.setItem("lastVisitedJobs",JSON.stringify(Me))}catch(Le){console.error("Error saving to localStorage:",Le)}return Me}),ne("job_opened",{jobId:pe,slug:R.slug,positionInList:z,openedFrom:ce,openedIn:Y}))},vt=(R,z)=>{const Y=R.id||R.slug||R.link;if(!Y)return;const ce=Kt.includes(Y);It(Y),ne(ce?"job_unsaved":"job_saved",{jobId:Y,slug:R.slug,positionInList:z})},Sc=(R,z,Y="external")=>{const ce=R.id||R.slug||R.link;ce&&ne("job_apply_clicked",{jobId:ce,slug:R.slug,positionInList:z,applyType:Y})},Sl=()=>{ye(!te)},v9=Math.ceil(w.length/K),P=w.slice((I-1)*K,I*K);return ke&&!v.length?e.jsx("div",{className:"flex-grow p-8",children:e.jsx("div",{className:"max-w-7xl mx-auto",children:e.jsxs("div",{className:"bg-red-50 border border-red-200 text-red-800 rounded-lg p-6",children:[e.jsx("h2",{className:"text-lg font-semibold mb-2",children:"Error Loading Jobs"}),e.jsx("p",{className:"mb-4",children:ke}),e.jsx("button",{onClick:()=>window.location.reload(),className:"bg-red-100 hover:bg-red-200 text-red-800 font-medium py-2 px-4 rounded",children:"Retry"})]})})}):e.jsxs("div",{className:"flex flex-col min-h-screen pb-16 md:pb-0",children:[e.jsxs("div",{className:"flex-grow",children:[e.jsx(fS,{onSearchChange:pa,searchPlaceholder:"Search jobs, companies, or keywords...",title:"Job Listings",description:"",popularTags:C,generateHref:R=>`/jobs?q=${R.toLowerCase().replace(/\s+/g,"+")}`,onTagClick:m,onTagRemove:x,allowTagRemoval:f}),e.jsxs("div",{className:"container mx-auto py-8 pb-20 md:pb-8",children:[e.jsxs("div",{className:"relative",children:[e.jsxs("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:[e.jsx(yS,{data:v.map(R=>R.title).filter(Boolean),onSelect:R=>{Ha(R)},onTyping:R=>{G(R),pa(R)},placeholder:"Search for jobs, companies, or keywords...",className:"w-full",showSubmitButton:!0}),e.jsx("button",{className:"block md:hidden flex items-center justify-center p-3 bg-white border-2 border-gray-200 text-gray-700 rounded-xl hover:border-gray-300 hover:bg-gray-50 transition-all duration-200 focus:ring-4 focus:ring-gray-200 focus:outline-none hover:scale-105",onClick:Ue,children:e.jsx(Pn,{size:16,className:"mr-1.5"})})]}),e.jsx("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:e.jsx(gS,{filters:[...me!=="all"?[{key:"date",label:l,value:me.replace(/_/g," "),onRemove:()=>ln("all")}]:[],...q.map(R=>({key:"search",label:"",value:R,onRemove:()=>Gn(R)})),...Object.entries(S).map(([R,z])=>({key:R,label:R.replace(/_/g," "),value:z,onRemove:()=>$n(R,"")}))],onClearAll:W,handleCreateAlert:_e})})]}),s&&e.jsxs("button",{className:"md:hidden w-full mb-6 px-4 py-3 bg-yellow-600 text-white rounded-lg flex items-center justify-center",onClick:Ue,"aria-expanded":F,children:[e.jsx(Pn,{className:"w-4 h-4 mr-2"}),F?"Close Filters":"Filters"]}),e.jsxs("div",{className:"flex flex-col lg:flex-row lg:gap-6",children:[e.jsx(aP,{dateFieldLabel:"Date",activeDateFilter:me,onDateFilterChange:ln,filterKeys:n,searchableFilters:d,filtersData:A,activeFilters:S,handleFilterChange:$n,toggleSavedJobsFilter:Sl,showOnlySaved:te,savedJobs:Kt}),ae?e.jsx(mS,{}):e.jsxs("div",{className:"lg:gap-6 w-fit",children:[e.jsx(kS,{viewMode:J,onToggleViewMode:dn,selectedItemsPerPage:K,onItemsPerPageChange:kt,totalCount:w.length,startIndex:Va,endIndex:lt,title:"Latest Jobs"}),e.jsxs("div",{className:"",children:[e.jsx("div",{className:"mb-6",children:e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("h3",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[te?"Saved Jobs":"Open Positions",me!=="all"&&!te&&e.jsxs("span",{className:"text-sm font-normal text-gray-500 ml-2",children:["(",me.replace(/_/g," "),")"]})]}),e.jsxs("p",{className:"text-sm text-gray-600",children:[e.jsx("span",{className:"font-semibold text-gray-900",children:w.length})," found"]})]}),e.jsx(zO,{value:et,options:$,onChange:on})]})}),e.jsx(AE,{items:P,cardType:i,viewMode:J,savedJobs:Kt,onSaveJob:vt,onViewJob:Ge,onApplyJob:Sc,firstItemRef:Un,userAccess:Oa}),w.length>0&&e.jsx("div",{className:"mt-6",children:e.jsx(Kj,{currentPage:I,totalPages:v9,onPageChange:cn})})]}),ve.length>0&&e.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:e.jsx(PE,{jobs:ve,onViewJob:Ge})})]}),e.jsx("div",{className:"hidden lg:block lg:w-1/4 space-y-6",children:((B=r==null?void 0:r.sidebar)==null?void 0:B.enabled)&&e.jsxs("div",{className:"sticky top-4",children:[e.jsx(fl,{position:"sidebar",url:r.sidebar.url,link:r.sidebar.link,alt:r.sidebar.alt}),e.jsx(uS,{api_url:h}),e.jsxs("div",{className:"mt-6 bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:[e.jsx("h3",{className:"font-semibold text-lg mb-3",children:"Featured Employers"}),e.jsx("div",{className:"grid grid-cols-3 gap-2",children:[...Array(6)].map((R,z)=>e.jsx("div",{className:"flex items-center justify-center p-2 bg-gray-50 rounded-md",children:e.jsx("img",{src:`/placeholder.svg?height=40&width=40&text=${String.fromCharCode(65+z)}`,alt:`Featured employer ${z+1}`,className:"w-10 h-10 object-contain"})},z))})]})]})})]})]})]}),e.jsx(KA,{activeDateFilter:me,handleDateFilterChange:ln,filterKeys:n,searchableFilters:d,dateFieldLabel:l,activeFilters:S,handleFilterChange:$n,toggleSavedJobsFilter:Sl,filtersData:A,savedJobs:Kt,showOnlySaved:te,isMobileFilterOpen:F,toggleMobileFilter:Ue}),e.jsx(XA,{}),e.jsx(ZA,{open:$e.open,type:$e.type,message:$e.message,onClose:()=>Lt(R=>({...R,open:!1}))}),e.jsx(qO,{open:Ae,onOpenChange:Fe,onSubscriptionSuccess:Cc,apiUrl:h})]})};function WN(t=window.location.pathname){const a=t.replace(/^\/+|\/+$/g,"").split("/"),n=a.findIndex(s=>s.toLowerCase()==="jobs");if(n===-1)return null;const r=a[n+1];return r?decodeURIComponent(r):null}function OO(){const[t,a]=M.useState(()=>WN());return M.useEffect(()=>{const n=()=>a(WN());return window.addEventListener("popstate",n),()=>window.removeEventListener("popstate",n)},[]),t}function ZN(t){window.location.assign(t)}function JN(t){window.history.length>1?window.history.back():window.location.assign(t)}function HO(t){const a=VP,n=t??{};return{id:n.id??a.id,title:n.title??a.title,company:n.company??a.company,companyLogo:n.companyLogo??a.companyLogo,location:n.location??a.location,salary:n.salary??void 0,jobType:n.jobType??a.jobType,experienceLevel:n.experienceLevel??a.experienceLevel,department:n.department??a.department,postedDate:n.postedDate??a.postedDate,applicationDeadline:n.applicationDeadline??void 0,description:n.description??a.description,requirements:Array.isArray(n.requirements)?n.requirements:[],responsibilities:Array.isArray(n.responsibilities)?n.responsibilities:[],benefits:Array.isArray(n.benefits)?n.benefits:[],skills:Array.isArray(n.skills)?n.skills:[],companyDescription:n.companyDescription??"",companySize:n.companySize??void 0,companyWebsite:n.companyWebsite??void 0,contactEmail:n.contactEmail??void 0,contactPhone:n.contactPhone??void 0,isRemote:n.isRemote??!1,isUrgent:n.isUrgent??!1,isFeatured:n.isFeatured??!1,applicationUrl:n.applicationUrl??void 0,viewCount:n.viewCount??void 0,applicantCount:n.applicantCount??void 0}}function VO(t){return!Array.isArray(t)||t.length===0?BP:t.map(a=>({id:a.id??"unknown",title:a.title??"Untitled",company:a.company??"",location:a.location??"",salary:a.salary??void 0,postedDate:a.postedDate??new Date().toISOString().slice(0,10)}))}const VP={id:"1",title:"Senior Game Developer",company:"Wazdan",companyLogo:"https://images.pexels.com/photos/3184291/pexels-photo-3184291.jpeg?auto=compress&cs=tinysrgb&w=100",location:"Malta",salary:"€80,000 - €120,000",jobType:"Full-time",experienceLevel:"Senior Level",department:"Engineering",postedDate:"2025-01-15",applicationDeadline:"2025-02-15",description:"We are seeking a talented Senior Game Developer to join our innovative team at Wazdan...",requirements:["5+ years of experience in game development","Strong proficiency in C# and Unity","Experience with HTML5 and JavaScript","Knowledge of casino game mechanics","Understanding of RNG and game mathematics","Experience with version control systems (Git)","Strong problem-solving skills","Excellent communication skills in English"],responsibilities:["Design and develop high-quality casino games","Implement game features and mechanics","Optimize game performance across multiple platforms","Collaborate with artists and designers on game assets","Write clean, maintainable, and well-documented code","Participate in code reviews and technical discussions","Debug and resolve technical issues","Stay updated with industry trends and technologies"],benefits:["Competitive salary and performance bonuses","Health insurance coverage","Flexible working hours","Remote work options","Professional development opportunities","25 days paid vacation","Modern office in Malta","Team building events and activities"],skills:["Unity","C#","JavaScript","HTML5","CSS3","Git","Agile","Game Design"],companyDescription:"Wazdan is a leading provider of innovative casino games...",companySize:"100-200 employees",companyWebsite:"https://wazdan.com",contactEmail:"careers@wazdan.com",contactPhone:"+356 2123 4567",isRemote:!1,isUrgent:!0,isFeatured:!0,applicationUrl:"https://wazdan.com/careers/apply",viewCount:1247,applicantCount:23},BP=[{id:"2",title:"Frontend Game Developer",company:"Pragmatic Play",location:"Malta",salary:"€60,000 - €80,000",postedDate:"2025-01-10"},{id:"3",title:"Unity Developer",company:"Evolution Gaming",location:"Remote",salary:"€70,000 - €90,000",postedDate:"2025-01-12"},{id:"4",title:"Game Developer",company:"NetEnt",location:"Stockholm",salary:"€65,000 - €85,000",postedDate:"2025-01-08"}],BO=({job:t=VP,similarJobs:a=BP,onSkillClick:n})=>{var N;const r=OO(),[s,i]=M.useState(()=>VO(a)),[o,l]=M.useState(!1),[d,h]=M.useState(null),[u,p]=M.useState(!1),[y,m]=M.useState(!1),{savedJobs:x,toggleJob:f,isSaved:v}=HP(),k=HO(t);M.useEffect(()=>{(async()=>{l(!0);try{if(await new Promise(q=>setTimeout(q,300)),!r)throw new Error("Missing slug in URL.");i(s);const L=JSON.parse(localStorage.getItem("appliedJobs")||"[]");m(L.includes(r))}catch(L){h((L==null?void 0:L.message)||"Failed to load job details")}finally{l(!1)}})()},[r]);const w=()=>{r&&f(r)},b=()=>{if(!r)return;k!=null&&k.applicationUrl?window.open(k.applicationUrl,"_blank","noopener,noreferrer"):p(!0);const S=JSON.parse(localStorage.getItem("appliedJobs")||"[]");S.includes(r)||(S.push(r),localStorage.setItem("appliedJobs",JSON.stringify(S)),m(!0))},C=async()=>{if(navigator.share)try{await navigator.share({title:k==null?void 0:k.title,text:`Check out this job opportunity: ${k==null?void 0:k.title} at ${k==null?void 0:k.company}`,url:window.location.href})}catch(S){console.log("Error sharing:",S)}else navigator.clipboard.writeText(window.location.href),alert("Job URL copied to clipboard!")},j=S=>new Date(S).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),I=S=>{const L=new Date(S),_=Math.abs(new Date().getTime()-L.getTime());return Math.ceil(_/(1e3*60*60*24))};return o?e.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto"}),e.jsx("p",{className:"mt-4 text-gray-600",children:"Loading job details..."})]})}):d||!k?e.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx(Ht,{className:"h-12 w-12 text-red-500 mx-auto mb-4"}),e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-2",children:"Job Not Found"}),e.jsx("p",{className:"text-gray-600 mb-4",children:d||"The job you are looking for does not exist."}),e.jsx("button",{onClick:()=>JN("/jobs"),className:"bg-blue-600 text-white px-6 py-2 rounded-lg hover:bg-blue-700 transition-colors",children:"Back to Jobs"})]})}):e.jsxs("div",{className:"min-h-screen bg-gray-50",children:[e.jsx("div",{className:"bg-white border-b border-gray-200",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4",children:[e.jsxs("button",{onClick:()=>JN("/jobs"),className:"flex items-center text-gray-600 hover:text-gray-900 mb-4",children:[e.jsx(Ja,{className:"h-4 w-4 mr-2"}),"Back to Jobs"]}),e.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-start lg:justify-between",children:[e.jsx("div",{className:"flex-1",children:e.jsxs("div",{className:"flex items-start space-x-4",children:[k.companyLogo&&e.jsx("img",{src:k.companyLogo,alt:`${k.company} logo`,className:"w-16 h-16 rounded-lg object-cover border border-gray-200"}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center space-x-2 mb-2",children:[k.isUrgent&&e.jsx("span",{className:"bg-red-100 text-red-800 text-xs font-medium px-2 py-1 rounded-full",children:"Urgent"}),k.isFeatured&&e.jsx("span",{className:"bg-yellow-100 text-yellow-800 text-xs font-medium px-2 py-1 rounded-full",children:"Featured"})]}),e.jsx("h1",{className:"text-2xl lg:text-3xl font-bold text-gray-900 mb-2",children:k.title}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-gray-600",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(rt,{className:"h-4 w-4 mr-1"}),e.jsx("span",{className:"font-medium",children:k.company})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(Qe,{className:"h-4 w-4 mr-1"}),e.jsx("span",{children:k.location}),k.isRemote&&e.jsx("span",{className:"ml-1",children:"(Remote)"})]}),k.salary&&e.jsxs("div",{className:"flex items-center",children:[e.jsx(Ec,{className:"h-4 w-4 mr-1"}),e.jsx("span",{children:k.salary})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(ga,{className:"h-4 w-4 mr-1"}),e.jsxs("span",{children:[I(k.postedDate)," days ago"]})]})]})]})]})}),e.jsxs("div",{className:"flex items-center space-x-3 mt-4 lg:mt-0",children:[e.jsxs("button",{onClick:w,className:`flex items-center px-4 py-2 rounded-lg border transition-colors ${v(k.id)?"bg-blue-50 border-blue-200 text-blue-700":"bg-white border-gray-300 text-gray-700 hover:bg-gray-50"}`,children:[e.jsx(Nn,{className:`h-4 w-4 mr-2 ${v(k.id)?"fill-current":""}`}),v(k.id)?"Saved":"Save Job"]}),e.jsxs("button",{onClick:C,className:"flex items-center px-4 py-2 bg-white border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors",children:[e.jsx(wo,{className:"h-4 w-4 mr-2"}),"Share"]}),e.jsx("button",{onClick:b,disabled:y,className:`flex items-center px-6 py-2 rounded-lg font-medium transition-colors ${y?"bg-green-100 text-green-800 cursor-not-allowed":"bg-blue-600 text-white hover:bg-blue-700"}`,children:y?e.jsxs(e.Fragment,{children:[e.jsx(Vt,{className:"h-4 w-4 mr-2"}),"Applied"]}):e.jsxs(e.Fragment,{children:[e.jsx(go,{className:"h-4 w-4 mr-2"}),"Apply Now"]})})]})]})]})}),e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-8",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:[e.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[e.jsx(Ze,{className:"h-6 w-6 text-blue-600 mx-auto mb-2"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Job Type"}),e.jsx("p",{className:"font-medium",children:k.jobType})]}),e.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[e.jsx(Sn,{className:"h-6 w-6 text-blue-600 mx-auto mb-2"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Experience"}),e.jsx("p",{className:"font-medium",children:k.experienceLevel})]}),e.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[e.jsx(mt,{className:"h-6 w-6 text-blue-600 mx-auto mb-2"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Department"}),e.jsx("p",{className:"font-medium",children:k.department})]}),e.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[e.jsx(xo,{className:"h-6 w-6 text-blue-600 mx-auto mb-2"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Deadline"}),e.jsx("p",{className:"font-medium text-sm",children:k.applicationDeadline?j(k.applicationDeadline):"Open"})]})]}),e.jsxs("div",{className:"flex items-center justify-between pt-4 border-t border-gray-200",children:[e.jsxs("div",{className:"flex items-center space-x-4 text-sm text-gray-600",children:[e.jsxs("span",{children:[k.viewCount," views"]}),e.jsxs("span",{children:[k.applicantCount," applicants"]})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(jt,{className:"h-4 w-4 text-yellow-400 fill-current"}),e.jsx("span",{className:"text-sm text-gray-600",children:"4.8 company rating"})]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Job Description"}),e.jsx("div",{className:"prose prose-gray max-w-none",children:e.jsx("p",{className:"text-gray-700 leading-relaxed whitespace-pre-line",children:k.description})})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Key Responsibilities"}),e.jsx("ul",{className:"space-y-3",children:(N=k.responsibilities)==null?void 0:N.map((S,L)=>e.jsxs("li",{className:"flex items-start",children:[e.jsx(Vt,{className:"h-5 w-5 text-green-500 mr-3 mt-0.5 flex-shrink-0"}),e.jsx("span",{className:"text-gray-700",children:S})]},L))})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Requirements"}),Array.isArray(k.requirements)?e.jsx("ul",{className:"space-y-3",children:k.requirements.map((S,L)=>e.jsxs("li",{className:"flex items-start",children:[e.jsx(Vt,{className:"h-5 w-5 text-blue-500 mr-3 mt-0.5 flex-shrink-0"}),e.jsx("span",{className:"text-gray-700",children:S})]},L))}):e.jsx("p",{className:"text-gray-700 whitespace-pre-line",children:k.requirements})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Required Skills"}),Array.isArray(k.skills)?e.jsx("div",{className:"flex flex-wrap gap-2",children:k.skills.map((S,L)=>e.jsx(VC,{name:S,color:"#2563EB",size:"sm",onClick:n?()=>n(S):void 0},`${S}-${L}`))}):e.jsx("p",{className:"text-gray-700 whitespace-pre-line",children:k.skills})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Benefits & Perks"}),Array.isArray(k.benefits)?e.jsx("ul",{className:"space-y-3",children:k.benefits.map((S,L)=>e.jsxs("li",{className:"flex items-start",children:[e.jsx(Vt,{className:"h-5 w-5 text-green-500 mr-3 mt-0.5 flex-shrink-0"}),e.jsx("span",{className:"text-gray-700",children:S})]},L))}):e.jsx("p",{className:"text-gray-700 whitespace-pre-line",children:k.benefits})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsxs("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:["About ",k.company]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("p",{className:"text-gray-700 text-sm leading-relaxed",children:k.companyDescription}),e.jsxs("div",{className:"space-y-2 text-sm",children:[k.companySize&&e.jsxs("div",{className:"flex items-center",children:[e.jsx(mt,{className:"h-4 w-4 text-gray-400 mr-2"}),e.jsx("span",{className:"text-gray-600",children:k.companySize})]}),k.companyWebsite&&e.jsxs("div",{className:"flex items-center",children:[e.jsx(oa,{className:"h-4 w-4 text-gray-400 mr-2"}),e.jsx("a",{href:k.companyWebsite,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:text-blue-800",children:"Visit Website"})]})]}),e.jsxs("div",{className:"pt-4 border-t border-gray-200",children:[e.jsx("h4",{className:"font-medium text-gray-900 mb-2",children:"Contact Information"}),e.jsxs("div",{className:"space-y-2 text-sm",children:[k.contactEmail&&e.jsxs("div",{className:"flex items-center",children:[e.jsx(ca,{className:"h-4 w-4 text-gray-400 mr-2"}),e.jsx("a",{href:`mailto:${k.contactEmail}`,className:"text-blue-600 hover:text-blue-800",children:k.contactEmail})]}),k.contactPhone&&e.jsxs("div",{className:"flex items-center",children:[e.jsx(In,{className:"h-4 w-4 text-gray-400 mr-2"}),e.jsx("a",{href:`tel:${k.contactPhone}`,className:"text-blue-600 hover:text-blue-800",children:k.contactPhone})]})]})]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Ready to Apply?"}),e.jsxs("p",{className:"text-gray-600 text-sm mb-4",children:["Join ",k.company," and take your career to the next level in the exciting world of iGaming."]}),e.jsx("button",{onClick:b,disabled:y,className:`w-full flex items-center justify-center px-6 py-3 rounded-lg font-medium transition-colors ${y?"bg-green-100 text-green-800 cursor-not-allowed":"bg-blue-600 text-white hover:bg-blue-700"}`,children:y?e.jsxs(e.Fragment,{children:[e.jsx(Vt,{className:"h-5 w-5 mr-2"}),"Application Submitted"]}):e.jsxs(e.Fragment,{children:[e.jsx(go,{className:"h-5 w-5 mr-2"}),"Apply for this Position"]})}),!y&&e.jsxs("div",{className:"mt-4 flex items-center space-x-2",children:[e.jsxs("button",{onClick:w,className:`flex-1 flex items-center justify-center px-4 py-2 rounded-lg border transition-colors ${v(k.id)?"bg-blue-50 border-blue-200 text-blue-700":"bg-white border-gray-300 text-gray-700 hover:bg-gray-50"}`,children:[e.jsx(xa,{className:`h-4 w-4 mr-2 ${v(k.id)?"fill-current":""}`}),v(k.id)?"Saved":"Save"]}),e.jsx("button",{className:"flex items-center justify-center p-2 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors",children:e.jsx(Hc,{className:"h-4 w-4"})})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Similar Jobs"}),e.jsx("div",{className:"space-y-4",children:s.map(S=>e.jsxs("div",{className:"border border-gray-200 rounded-lg p-4 hover:bg-gray-50 cursor-pointer transition-colors",onClick:()=>ZN(`/jobs/${S.id}`),children:[e.jsx("h4",{className:"font-medium text-gray-900 mb-1",children:S.title}),e.jsx("p",{className:"text-sm text-gray-600 mb-2",children:S.company}),e.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-500",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(Qe,{className:"h-3 w-3 mr-1"}),e.jsx("span",{children:S.location})]}),e.jsxs("span",{children:[I(S.postedDate),"d ago"]})]}),S.salary&&e.jsx("p",{className:"text-sm font-medium text-blue-600 mt-2",children:S.salary})]},S.id))}),e.jsx("button",{onClick:()=>ZN("/jobs"),className:"w-full mt-4 text-center text-blue-600 hover:text-blue-800 text-sm font-medium",children:"View All Jobs"})]})]})]})}),u&&e.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:e.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Apply for this Position"}),e.jsx("p",{className:"text-gray-600 mb-4",children:"To apply for this position, please send your CV and cover letter to:"}),e.jsx("div",{className:"bg-gray-50 p-4 rounded-lg mb-4",children:e.jsx("p",{className:"font-medium",children:k.contactEmail})}),e.jsxs("div",{className:"flex space-x-3",children:[e.jsx("button",{onClick:()=>p(!1),className:"flex-1 px-4 py-2 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors",children:"Close"}),e.jsx("button",{onClick:()=>{window.location.href=`mailto:${k.contactEmail}?subject=Application for ${k.title}&body=Dear Hiring Manager,%0D%0A%0D%0AI am interested in applying for the ${k.title} position at ${k.company}.%0D%0A%0D%0APlease find my CV attached.%0D%0A%0D%0ABest regards`,p(!1)},className:"flex-1 px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:"Send Email"})]})]})})]})},$O=()=>e.jsx("div",{children:e.jsx("h2",{children:"Welcome to the Header!"})}),UO=({article:t,isBookmarked:a,onToggleBookmark:n,onShare:r,onOpenArticle:s,layout:i="card",userAccess:o,positionInList:l})=>{const[d,h]=M.useState(!1),u=f=>{const v=new Date(f),w=Math.floor((new Date().getTime()-v.getTime())/(1e3*60*60));return w<1?"Just now":w<24?`${w}h ago`:w<48?"Yesterday":v.toLocaleDateString("en-US",{month:"short",day:"numeric"})},p=f=>f>=1e3?`${(f/1e3).toFixed(1)}k`:f.toString(),y=f=>f.length>1?f[1]:f[0],m=(f,v)=>f.length<=v?f:f.substring(0,v).trim()+"...",x=i==="grid"?"flex flex-col":"flex flex-col md:flex-row md:items-center";return e.jsxs("article",{className:`
7801
7801
  news-grid bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden
7802
7802
  hover:shadow-md transition-shadow duration-300 ${x}
7803
- `,children:[e.jsxs("div",{className:`relative ${i==="list"?"md:w-1/3 md:flex-shrink-0":""}`,children:[e.jsx("img",{src:t.image||"/placeholder.svg?height=200&width=400&text=News",alt:t.title,className:`w-full h-48 object-cover transition-opacity duration-300 ${d?"opacity-100":"opacity-0"} ${i==="list"?"md:h-32":""}`,onLoad:()=>h(!0)}),!d&&e.jsx("div",{className:"absolute inset-0 bg-gray-200 animate-pulse flex items-center justify-center",children:e.jsx("div",{className:"w-12 h-12 text-gray-400",children:"📰"})}),e.jsxs("div",{className:"absolute top-3 left-3 flex flex-wrap gap-1",children:[t.isBreaking&&e.jsx("span",{className:"px-2 py-1 bg-red-500 text-white text-xs font-semibold rounded animate-pulse",children:"BREAKING"}),t.isTrending&&e.jsxs("span",{className:"px-2 py-1 bg-orange-500 text-white text-xs font-semibold rounded flex items-center",children:[e.jsx(Pa,{className:"w-3 h-3 mr-1"}),"TRENDING"]})]}),e.jsx("button",{onClick:()=>n(t._id,l),className:`absolute top-3 right-3 p-2 rounded-full transition-colors ${a?"bg-yellow-500 text-white":"bg-white text-gray-600 hover:bg-gray-100"} ${o.allowSaving?"":"opacity-60 cursor-not-allowed"}`,"aria-label":a?"Remove bookmark":"Add bookmark",disabled:!o.allowSaving,title:o.allowSaving?void 0:"Sign in to save articles",children:e.jsx(xa,{className:`w-4 h-4 ${a?"fill-current":""}`})})]}),e.jsxs("div",{className:`p-4 ${i==="list"?"md:w-2/3":""}`,children:[e.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:t.categories.slice(0,2).map((f,v)=>e.jsx("a",{href:`?category=${f}`,children:e.jsx("span",{className:"px-2 py-1 bg-yellow-100 text-yellow-800 text-xs font-medium rounded-full",children:f},v)}))}),e.jsx("h2",{className:"text-lg font-semibold text-gray-900 mb-2 line-clamp-2 hover:text-yellow-600 transition-colors",children:o.maskExternalLinks?e.jsx("button",{className:"text-left w-full text-gray-700 cursor-not-allowed","aria-label":"Sign in to view article",title:"Sign in to view external article",children:t.title}):e.jsx("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",onClick:()=>s==null?void 0:s(t,l,"new_tab",t.isTrending?"trending":t.isBreaking?"breaking":"listing"),children:t.title})}),e.jsx("p",{className:"text-sm text-gray-700 mb-3 line-clamp-3",children:m(t.content,i==="list"?150:200)}),e.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-500 mb-3",children:[e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsxs("span",{children:["By ",y(t.author)]}),e.jsx("span",{children:t.company})]}),e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(ga,{className:"w-4 h-4 mr-1"}),e.jsxs("span",{children:[t.readTime,"m read"]})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(tc,{className:"w-4 h-4 mr-1"}),e.jsx("span",{children:p(t.viewCount||0)})]})]})]}),e.jsx("div",{className:"flex flex-wrap gap-1 mb-3",children:t.tags.slice(0,3).map((f,v)=>e.jsxs("span",{className:"px-2 py-1 bg-gray-100 text-gray-600 text-xs rounded",children:["#",f]},v))}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-sm text-gray-500",children:u(t.date)}),e.jsx("span",{className:"inline-flex items-center rounded-full bg-gray-100 px-2.5 py-0.5 text-xs font-medium text-gray-700",children:pS[o.status]}),o.note&&e.jsx("span",{className:"text-xs text-gray-500",children:o.note})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("button",{onClick:()=>r(t,l),className:"p-2 text-gray-400 hover:text-gray-600 hover:bg-gray-100 rounded-full transition-colors","aria-label":"Share article",children:e.jsx(wo,{className:"w-4 h-4"})}),o.maskExternalLinks?e.jsx("button",{className:"flex items-center px-3 py-1.5 bg-gray-200 text-gray-600 text-sm font-medium rounded-lg cursor-not-allowed","aria-label":"Sign in to read",children:"Sign in to read"}):e.jsxs("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",className:"flex items-center px-3 py-1.5 bg-yellow-600 text-white text-sm font-medium rounded-lg hover:bg-yellow-700 transition-colors",onClick:()=>s==null?void 0:s(t,l,"new_tab",t.isTrending?"trending":t.isBreaking?"breaking":"listing"),children:["Read More",e.jsx(go,{className:"w-3 h-3 ml-1"})]})]})]})]})]})},GO=({apiUrl:t="http://localhost:5000/api/news",filterKeys:a=["categories","author","company"],searchableFilters:n=["company","author","categories"],defaultFilters:r={categories:[],tags:[],authors:[],companies:[],dateRange:["",""],readTime:[0,999]},defaultSort:s="latest",bookmarkStorageKey:i="news-bookmarks",itemsPerPage:o=12,dateFieldLabel:l="Published",userAccess:d,onEmitEvent:h,eventContext:u})=>{const[p,y]=M.useState([]),[m,x]=M.useState([]),[f,v]=M.useState([]),[k,w]=M.useState({}),[b,C]=M.useState(""),[j,I]=M.useState({}),[N,S]=M.useState(!1),[L,q]=M.useState(o),[_,A]=M.useState(new Set),[D,H]=M.useState(s),[G,V]=M.useState("grid"),[$,F]=M.useState(1),[re,K]=M.useState([]),[X,Z]=M.useState(!1),[le,ae]=M.useState([]),[fe,we]=M.useState([]),[J,ne]=M.useState(!0),[ke,ge]=M.useState("all"),[se,me]=M.useState(""),Ie=W=>W.trim().toLowerCase().replace(/\s+/g,"-"),[Ae,Fe]=M.useState(r),[ot,gt]=M.useState(null),Nt=Yj(d),ct=M.useMemo(()=>({component:"NewsPage",...u??{}}),[u]),$e=M.useCallback((W,ie)=>{h&&h({domain:"news",name:W,payload:ie,timestamp:new Date().toISOString(),context:ct})},[ct,h]),Lt=M.useCallback(()=>({filters:{...j},categories:Ae.categories.length?Ae.categories:j.categories?[j.categories]:[],tags:Ae.tags,authors:Ae.authors.length?Ae.authors:j.author?[j.author]:[],companies:Ae.companies.length?Ae.companies:j.company?[j.company]:[],dateFilter:ke,readTimeRange:Ae.readTime}),[ke,j,Ae]),et=M.useCallback(()=>({page:$,pageSize:L,totalResults:m.length,sortBy:D,viewMode:G}),[$,m.length,L,D,G]),on=M.useRef(!1);M.useEffect(()=>{const W=localStorage.getItem(i);W&&A(new Set(JSON.parse(W)))},[i]),M.useEffect(()=>{const W=new URLSearchParams(window.location.search),ie={};a.forEach(lt=>{const kt=W.get(lt);kt&&(ie[lt]=kt)}),I(ie);const be=W.get("q"),_e=W.get("categories");let Ue=[...p];if(be&&(Ue=Ue.filter(lt=>lt.title.toLowerCase().includes(be.toLowerCase())),C(be),Kt(be)),_e){const lt=_e.trim().toLowerCase().replace(/\s+/g,"-");Fe(kt=>({...kt,categories:[lt]})),Ue=Ue.filter(kt=>kt.categories.some(dn=>Ie(dn)===lt))}v(Ue);const Va={};a.forEach(lt=>{const kt=W.get(lt);kt&&(Va[lt]=kt)}),I(Va)},[p]),M.useEffect(()=>{const ie=new URLSearchParams(window.location.search).get("date_filter");if(ie&&ie!=="all"){ge(ie);const be=po(p,j,le,ie);x(be),F(1),It(be)}},[p]);const Kt=W=>{if(!W.trim())return;const ie=[...le,W.trim()];ae(ie);const be=po(p,j,ie,ke);x(be),F(1),It(be),C(""),$e("news_search_submitted",{query:W,searchFilters:ie,...Lt()})},It=W=>{const ie=il(W,a);w(ie)},Oa=W=>{ge(W),E(W),tP(W)},E=W=>{const ie=po(p,j,le,W);x(ie),F(1),It(ie)};M.useEffect(()=>{localStorage.setItem(i,JSON.stringify(Array.from(_)))},[_,i]),M.useEffect(()=>{ne(!0),gt(null),(async()=>{try{const ie=await fetch(t);if(!ie.ok)throw new Error(`API responded with status: ${ie.status}`);const be=await ie.json();if(!Array.isArray(be))throw new Error("Expected an array but received: "+typeof be);const _e=be.map(Ge=>({...Ge,categories:Array.isArray(Ge.categories)?Ge.categories:[],topTag:NE(Ge.title||"")})),Ue={};for(const Ge of _e){const vt=Ge.topTag;vt&&(Ue[vt]=(Ue[vt]||0)+1)}const Va=Object.entries(Ue).sort((Ge,vt)=>vt[1]-Ge[1]).slice(0,10).map(([Ge])=>Ge);we(Va);const lt=new Set;_e.forEach(Ge=>{Ge.categories.forEach(vt=>{lt.add(Ie(vt))})});const kt=Array.from(lt).map(Ge=>({id:Ge,name:Ge.replace(/-/g," ").replace(/\b\w/g,vt=>vt.toUpperCase()),icon:"📰",count:_e.filter(vt=>vt.categories.some(Sc=>Ie(Sc)===Ge)).length,color:"bg-gray-100 text-gray-800"}));y(_e),x(_e),v(_e),K(kt);const dn=il(_e,a);w(dn)}catch(ie){console.error("Failed to fetch articles",ie)}finally{ne(!1)}})()},[t]);const U=()=>{V(W=>{const ie=W==="grid"?"list":"grid";return $e("news_listing_viewmode_changed",{viewMode:ie}),ie})};M.useMemo(()=>p.filter(W=>W.isTrending).slice(0,6),[p]),M.useMemo(()=>p.filter(W=>W.isBreaking),[p]);const te=Math.ceil(m.length/L),Ne=m.slice(($-1)*L,$*L),ze=(W,ie)=>{Nt.allowSaving&&A(be=>{const _e=new Set(be),Ue=_e.has(W);return Ue?_e.delete(W):_e.add(W),$e(Ue?"news_article_unbookmarked":"news_article_bookmarked",{articleId:W,positionInList:ie}),_e})},Ke=(W,ie)=>{navigator.share?navigator.share({title:W.title,text:W.title,url:W.link}):(navigator.clipboard.writeText(W.link),alert("Article link copied to clipboard!")),$e("news_article_shared",{articleId:W._id,channel:"copy_link"})},He=(W,ie,be="new_tab",_e="listing")=>{$e("news_article_opened",{articleId:W._id,slug:W.slug,positionInList:ie,openedFrom:_e,openedIn:be})},Qt=()=>{Z(!X)},ea=m.length===0?0:($-1)*L+1,$n=Math.min($*L,m.length),Cc=()=>{Fe({categories:[],tags:[],authors:[],companies:[],dateRange:["",""],readTime:[0,999]}),F(1);const W=po(p,j,le,ke);x(W),F(1),It(W)},Un=()=>{I({}),ae([]),ge("all"),Cc(),x(p),F(1),It(p),$e("news_filters_cleared_all",{})},cn=M.useRef(null),ln=W=>{F(W),$e("news_listing_page_changed",{page:W,pageSize:L,totalResults:m.length}),setTimeout(()=>{var ie;(ie=cn.current)==null||ie.scrollIntoView({behavior:"smooth",block:"start"})},100)},pa=W=>{q(W),F(1),$e("news_listing_items_per_page_changed",{pageSize:W})},Ha=(W,ie)=>{const be={...j};ie?be[W]=ie:delete be[W];const _e=po(p,be,le,ke);I(be),x(_e),F(1),It(_e);const Ue=Lt();ie?$e("news_filter_selected",{key:W,value:ie,...Ue}):$e("news_filter_cleared",{key:W,...Ue})},Gn=W=>{const ie=le.filter(_e=>_e!==W);ae(ie);const be=po(p,j,ie,ke);x(be),F(1),It(be),$e("news_search_filter_removed",{removedKeyword:W,remainingKeywords:ie})};return M.useEffect(()=>{on.current||J||!m.length&&!p.length||($e("news_listing_viewed",{...Lt(),...et()}),on.current=!0)},[p.length,$e,m.length,Lt,et,J]),e.jsxs("div",{className:"flex flex-col min-h-screen pb-16 md:pb-0",children:[e.jsxs("div",{className:"flex-grow",children:[e.jsx(fS,{onSearchChange:W=>{const ie=p.filter(be=>be.title.toLowerCase().includes(W.toLowerCase()));v(ie),C(W)},title:"Latest News",popularTags:fe,generateHref:W=>`/news?q=${W.replace(/\s+/g,"+")}`}),e.jsxs("div",{className:"container mx-auto py-8 pb-20 md:pb-8",children:[e.jsxs("div",{className:"relative",children:[e.jsxs("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:[e.jsx(yS,{data:p.map(W=>W.title),onSelect:W=>{Kt(W)},onTyping:W=>{S(!!W),W||(v(p),C(""))},placeholder:"Search news, topics, or authors...",showSubmitButton:!0,className:"w-full"}),e.jsx("button",{className:"block md:hidden flex items-center justify-center p-3 bg-white border-2 border-gray-200 text-gray-700 rounded-xl hover:border-gray-300 hover:bg-gray-50 transition-all duration-200 focus:ring-4 focus:ring-gray-200 focus:outline-none hover:scale-105",onClick:Qt,children:e.jsx(Pn,{size:16,className:"mr-1.5"})}),b&&e.jsxs("div",{className:"flex gap-2 mt-3 px-4 sm:px-6 lg:px-8",children:[e.jsxs("span",{className:"bg-yellow-100 text-indigo-800 rounded-full px-3 py-1 text-sm flex items-center",children:[b,e.jsx("button",{onClick:()=>{v(p),C("")},className:"ml-2 text-indigo-600 hover:text-indigo-800",children:"×"})]}),e.jsx("button",{className:"text-sm text-gray-600 hover:underline",onClick:()=>{v(p),C("")},children:"Clear Search"})]})]}),e.jsx("div",{className:"max-w-7xl mx-auto md:pb-8",children:e.jsx("div",{className:"block w-full",children:e.jsx("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:e.jsx(gS,{filters:[...se?[{key:"categories",label:"Categories",value:se.replace(/-/g," "),onRemove:()=>me("")}]:[],...le.map(W=>({key:"search",label:"",value:W,onRemove:()=>Gn(W)})),...Object.entries(j).map(([W,ie])=>({key:W,label:W.replace(/_/g," "),value:ie,onRemove:()=>Ha(W,"")}))],onClearAll:Un})})})})]}),e.jsx("main",{className:"max-w-7xl mx-auto px-4 pb-8 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex flex-col lg:flex-row lg:gap-6",children:[e.jsx(aP,{dateFieldLabel:"Date",activeDateFilter:ke,onDateFilterChange:Oa,filterKeys:a,searchableFilters:n,filtersData:k,activeFilters:j,handleFilterChange:Ha,toggleSavedJobsFilter:()=>console.log("toggle saved jobs filter"),showOnlySaved:!1,savedJobs:[]}),J?e.jsx(mS,{}):e.jsx(e.Fragment,{children:e.jsxs("div",{className:"lg:w-2/4",children:[e.jsx(kS,{viewMode:G,onToggleViewMode:U,selectedItemsPerPage:L,onItemsPerPageChange:pa,totalCount:m.length,startIndex:ea,endIndex:$n,title:"Latest News"}),m.length>0?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:G==="grid"?"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-2 gap-6":"space-y-6",children:Ne.map((W,ie)=>e.jsx("div",{ref:ie===0?cn:null,children:e.jsx(UO,{article:W,isBookmarked:_.has(W._id),positionInList:ie,onToggleBookmark:be=>ze(be,ie),onShare:be=>Ke(be),onOpenArticle:He,layout:G,userAccess:Nt})},W._id))}),te>1&&e.jsx("div",{className:"mt-8 flex justify-center",children:e.jsx(Kj,{currentPage:$,totalPages:te,onPageChange:ln})})]}):e.jsxs("div",{className:"text-center py-12",children:[e.jsx(Aa,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"No articles found"}),e.jsx("p",{className:"text-gray-600 mb-4",children:"Try adjusting your search criteria or filters to find more articles."}),e.jsx("button",{onClick:Un,className:"px-4 py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700 transition-colors",children:"Clear All Filters"})]})]})}),e.jsx("div",{className:"hidden lg:block lg:w-1/4 space-y-6",children:e.jsxs("div",{className:"sticky top-4",children:[e.jsx(fl,{position:"sidebar",url:"https://video-previews.elements.envatousercontent.com/h264-video-previews/e08912ad-6856-4e36-89b5-cf1465cc79cb/32651312.mp4",link:"",alt:""}),e.jsx(uS,{api_url:""}),e.jsxs("div",{className:"mt-6 bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:[e.jsx("h3",{className:"font-semibold text-lg mb-3",children:"Featured Employers"}),e.jsx("div",{className:"grid grid-cols-3 gap-2",children:[...Array(6)].map((W,ie)=>e.jsx("div",{className:"flex items-center justify-center p-2 bg-gray-50 rounded-md",children:e.jsx("img",{src:`/placeholder.svg?height=40&width=40&text=${String.fromCharCode(65+ie)}`,alt:`Featured employer ${ie+1}`,className:"w-10 h-10 object-contain"})},ie))})]})]})})]})})]})]}),e.jsx(KA,{activeDateFilter:ke,handleDateFilterChange:Oa,filterKeys:a,searchableFilters:n,dateFieldLabel:l,activeFilters:j,handleFilterChange:Ha,filtersData:k,isMobileFilterOpen:X,toggleMobileFilter:Qt})]})},Dl=[{id:"1",title:"Introduction to iGaming",description:"Gain a comprehensive and practical overview of the iGaming industry with this all-encompassing course. Perfect for beginners looking to understand the fundamentals.",instructor:"Sarah Johnson",price:299,originalPrice:399,currency:"EUR",duration:"8 hours",level:"Beginner",category:"fundamentals",subcategory:"intro-igaming",rating:4.8,reviewCount:1247,enrollmentCount:5420,thumbnail:"/placeholder.svg?height=200&width=300&text=iGaming+Intro",tags:["iGaming","Fundamentals","Industry Overview"],features:["Lifetime Access","Certificate","Mobile Access"],lastUpdated:"2024-01-15",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!0,isNew:!1,isBestseller:!0},{id:"2",title:"Payments & Banking in Gaming Masterclass",description:"Master the complex world of payment processing, banking regulations, and financial compliance in the iGaming industry.",instructor:"Michael Chen",price:699,currency:"EUR",duration:"12 hours",level:"Advanced",category:"fundamentals",subcategory:"payments-banking",rating:4.9,reviewCount:892,enrollmentCount:2156,thumbnail:"/placeholder.svg?height=200&width=300&text=Payments+Banking",tags:["Payments","Banking","Compliance","FinTech"],features:["Lifetime Access","Certificate","Expert Support"],lastUpdated:"2024-02-20",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!0,isNew:!0,isBestseller:!1},{id:"3",title:"The Psychology of Gambling Addiction",description:"Gain insight into the psychological reasons behind gambling, the nature of addiction, and the scientific aspects of the challenges players encounter.",instructor:"Dr. Emma Rodriguez",price:449,currency:"EUR",duration:"6 hours",level:"Intermediate",category:"responsible-gaming",subcategory:"addiction-psychology",rating:4.7,reviewCount:634,enrollmentCount:1890,thumbnail:"/placeholder.svg?height=200&width=300&text=Psychology+Addiction",tags:["Psychology","Addiction","Player Behavior","Mental Health"],features:["Lifetime Access","Certificate","Case Studies"],lastUpdated:"2024-01-30",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!1,isNew:!1,isBestseller:!0},{id:"4",title:"AI in Gaming & Betting",description:"Explore the cutting-edge applications of artificial intelligence in gaming platforms, player analytics, and betting algorithms.",instructor:"Alex Thompson",price:599,currency:"EUR",duration:"10 hours",level:"Advanced",category:"technology",subcategory:"game-development",rating:4.6,reviewCount:445,enrollmentCount:1234,thumbnail:"/placeholder.svg?height=200&width=300&text=AI+Gaming",tags:["AI","Machine Learning","Analytics","Technology"],features:["Lifetime Access","Certificate","Code Examples"],lastUpdated:"2024-03-01",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!0,isNew:!0,isBestseller:!1},{id:"5",title:"Slot Academy LIVE!",description:"Interactive live sessions covering slot game mechanics, RTP calculations, and game design principles with industry experts.",instructor:"Gaming Academy Team",price:1500,currency:"EUR",duration:"20 hours",level:"Advanced",category:"specialized",subcategory:"slot-mechanics",rating:4.9,reviewCount:156,enrollmentCount:423,thumbnail:"/placeholder.svg?height=200&width=300&text=Slot+Academy",tags:["Slots","Game Mechanics","Live Training","RTP"],features:["Live Sessions","Certificate","Expert Mentoring"],lastUpdated:"2024-02-15",language:"English",certificate:!0,accessType:"Limited",isFeatured:!0,isNew:!1,isBestseller:!1},{id:"6",title:"English Language for IGaming & Betting",description:"Specialized English language course designed for non-native speakers working in the iGaming and betting industry.",instructor:"Linda Parker",price:300,currency:"EUR",duration:"15 hours",level:"Beginner",category:"specialized",subcategory:"industry-overview",rating:4.5,reviewCount:789,enrollmentCount:2890,thumbnail:"/placeholder.svg?height=200&width=300&text=English+iGaming",tags:["English","Language","Communication","Industry Terms"],features:["Lifetime Access","Certificate","Audio Lessons"],lastUpdated:"2024-01-10",language:"Multiple",certificate:!0,accessType:"Lifetime",isFeatured:!1,isNew:!1,isBestseller:!0},{id:"7",title:"VIP and Premium Service Masterclass",description:"Learn how to deliver exceptional VIP experiences and premium customer service in the competitive iGaming landscape.",instructor:"Robert Williams",price:499,currency:"EUR",duration:"8 hours",level:"Intermediate",category:"business",subcategory:"vip-management",rating:4.8,reviewCount:567,enrollmentCount:1456,thumbnail:"/placeholder.svg?height=200&width=300&text=VIP+Service",tags:["VIP","Customer Service","Premium","Hospitality"],features:["Lifetime Access","Certificate","Templates"],lastUpdated:"2024-02-05",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!0,isNew:!1,isBestseller:!1},{id:"8",title:"Fundamentals of CRM for Online Gaming",description:"Master customer relationship management strategies specifically tailored for online gaming and betting platforms.",instructor:"Maria Garcia",price:425,currency:"EUR",duration:"9 hours",level:"Intermediate",category:"business",subcategory:"crm-customer-service",rating:4.7,reviewCount:423,enrollmentCount:1123,thumbnail:"/placeholder.svg?height=200&width=300&text=CRM+Gaming",tags:["CRM","Customer Management","Gaming","Analytics"],features:["Lifetime Access","Certificate","CRM Tools"],lastUpdated:"2024-01-25",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!1,isNew:!1,isBestseller:!0},{id:"introduction-to-igaming-iga",title:"Introduction to iGaming",description:"Gain a comprehensive and practical overview of the iGaming industry with this all-encompassing course, featuring real-world case studies from leading operators.",instructor:"Igaming Academy",price:200,originalPrice:250,currency:"EUR",duration:"3 hours",level:"Intermediate",category:"fundamentals",subcategory:"intro-igaming",rating:4.7,reviewCount:0,enrollmentCount:0,thumbnail:"https://igacademy.com/app/uploads/2019/02/Introduction-to-iGaming-800x628.png",link:"https://igacademy.com/courses/introduction-to-igaming/",tags:["iGaming Academy","eLearning"],features:["Certificate","Next date: Online Access Anytime"],lastUpdated:"2025-06-03",language:"English",certificate:!0,accessType:"Subscription",isFeatured:!0,isNew:!1,isBestseller:!0},{id:"compliance-roadmap-2025",title:"Global Compliance Roadmap 2025",description:"Stay ahead of emerging regulatory requirements across Europe, North America, and Asia with a practical roadmap for compliance teams and product managers.",instructor:"Priya Natarajan",price:540,originalPrice:620,currency:"EUR",duration:"7 hours",level:"Advanced",category:"fundamentals",subcategory:"regulations",rating:4.9,reviewCount:312,enrollmentCount:1840,thumbnail:"/placeholder.svg?height=200&width=300&text=Compliance+2025",link:"https://example.com/courses/compliance-roadmap-2025",tags:["Compliance","AML","Licensing","Legal"],features:["Certificate","Downloadable checklists","Quarterly updates"],lastUpdated:"2025-05-20",language:"English",certificate:!0,accessType:"Subscription",isFeatured:!0,isNew:!0,isBestseller:!1},{id:"data-driven-retention-lab",title:"Data-Driven Retention Lab",description:"Hands-on laboratory course where teams design, launch, and measure retention campaigns using cohort analysis and real-time segmentation tools.",instructor:"Dr. Kevin Müller",price:380,currency:"EUR",duration:"5.5 hours",level:"Intermediate",category:"marketing",subcategory:"retention-strategies",rating:4.6,reviewCount:154,enrollmentCount:920,thumbnail:"/placeholder.svg?height=200&width=300&text=Retention+Lab",link:"https://example.com/courses/data-driven-retention",tags:["Retention","Analytics","Lifecycle","CRM"],features:["Certificate","Workbook","Live coaching"],lastUpdated:"2025-04-28",language:"English",certificate:!0,accessType:"Limited",isFeatured:!1,isNew:!0,isBestseller:!0}],WO=({courses:t,onSearchResults:a,onTyping:n,placeholder:r="Search courses, instructors, or topics..."})=>{const[s,i]=M.useState(""),[o,l]=M.useState([]),[d,h]=M.useState(!1);M.useEffect(()=>{if(s.length>0){const m=t.filter(k=>{var b,C,j,I,N;const w=s.toLowerCase();return k.title.toLowerCase().includes(w)||((b=k.description)==null?void 0:b.toLowerCase().includes(w))||((C=k.instructor)==null?void 0:C.toLowerCase().includes(w))||((j=k.tags)==null?void 0:j.some(S=>S.toLowerCase().includes(w)))||((I=k.category)==null?void 0:I.toLowerCase().includes(w))||((N=k.subcategory)==null?void 0:N.toLowerCase().includes(w))});a(m);const x=t.filter(k=>k.title.toLowerCase().includes(s.toLowerCase())).map(k=>k.title).slice(0,3),f=t.flatMap(k=>k.tags??[]).filter(k=>k.toLowerCase().includes(s.toLowerCase())).filter((k,w,b)=>b.indexOf(k)===w).slice(0,3),v=t.filter(k=>k.instructor?k.instructor.toLowerCase().includes(s.toLowerCase()):!1).map(k=>k.instructor).filter((k,w,b)=>b.indexOf(k)===w).slice(0,2);l([...x,...f,...v]),h(!0)}else a(t),l([]),h(!1)},[s,t,a]);const u=m=>{i(m),n==null||n(m.length>0,m)},p=m=>{i(m),h(!1)},y=()=>{i(""),h(!1),n==null||n(!1,"")};return e.jsxs("div",{className:"course-search relative",children:[e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:e.jsx(Gt,{className:"h-5 w-5 text-gray-400"})}),e.jsx("input",{type:"text",value:s,onChange:m=>u(m.target.value),onFocus:()=>h(o.length>0),onBlur:()=>setTimeout(()=>h(!1),200),className:"block w-full pl-10 pr-10 py-3 border border-gray-300 rounded-lg bg-white shadow-sm focus:outline-none focus:ring-2 focus:ring-yellow--500 focus:border-yellow--500 text-gray-900 placeholder-gray-500",placeholder:r}),s&&e.jsx("button",{onClick:y,className:"absolute inset-y-0 right-0 pr-3 flex items-center",children:e.jsx(Ct,{className:"h-5 w-5 text-gray-400 hover:text-gray-600"})})]}),d&&o.length>0&&e.jsx("div",{className:"absolute z-10 w-full mt-1 bg-white border border-gray-200 rounded-lg shadow-lg",children:e.jsx("ul",{className:"py-1",children:o.map((m,x)=>e.jsx("li",{children:e.jsx("button",{onClick:()=>p(m),className:"w-full px-4 py-2 text-left text-sm text-gray-700 hover:bg-gray-100 focus:bg-gray-100 focus:outline-none",children:e.jsxs("div",{className:"flex items-center",children:[e.jsx(Gt,{className:"h-4 w-4 text-gray-400 mr-2"}),m]})})},x))})}),s&&e.jsxs("div",{className:"mt-2 text-sm text-gray-600",children:['Search results for "',s,'"']})]})},ZO=({title:t,subtitle:a,placeholder:n,courses:r=[],onSearchResults:s})=>e.jsx("section",{className:"py-16 bg-gradient-to-r from-[#0f1219] to-[#1a2236] text-white relative overflow-hidden",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsxs("h2",{className:"text-4xl font-bold text-white mb-4",children:[t||"Master the ",e.jsx("span",{className:"bg-gradient-accent bg-clip-text text-transparent",children:"IGaming Industry"})]}),e.jsx("p",{className:"text-xl text-indigo-100 max-w-2xl mx-auto",children:a||"Learn from industry experts and advance your career with our comprehensive course catalog"})]}),e.jsx("div",{className:"hidden lg:block max-w-2xl mx-auto",children:r&&s&&e.jsx(WO,{courses:r,onSearchResults:s,placeholder:n||"Search IGaming courses, instructors, or topics..."})})]})}),JO=({categories:t,selectedCategory:a,selectedSubcategory:n,onCategorySelect:r,onSubcategorySelect:s})=>{const[i,o]=M.useState(new Set),l=h=>{const u=new Set(i);u.has(h)?u.delete(h):u.add(h),o(u)},d=h=>{l(h),r(h)};return e.jsxs("nav",{className:"course-navigation bg-white rounded-lg shadow-sm border border-gray-200 p-4",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Course Categories"}),e.jsx("div",{className:"space-y-2",children:t.map(h=>{const u=i.has(h.id),p=a===h.id;return e.jsxs("div",{className:"category-group",children:[e.jsxs("button",{onClick:()=>d(h.id),className:`
7803
+ `,children:[e.jsxs("div",{className:`relative ${i==="list"?"md:w-1/3 md:flex-shrink-0":""}`,children:[e.jsx("img",{src:t.image||"/placeholder.svg?height=200&width=400&text=News",alt:t.title,className:`w-full h-48 object-cover transition-opacity duration-300 ${d?"opacity-100":"opacity-0"} ${i==="list"?"md:h-32":""}`,onLoad:()=>h(!0)}),!d&&e.jsx("div",{className:"absolute inset-0 bg-gray-200 animate-pulse flex items-center justify-center",children:e.jsx("div",{className:"w-12 h-12 text-gray-400",children:"📰"})}),e.jsxs("div",{className:"absolute top-3 left-3 flex flex-wrap gap-1",children:[t.isBreaking&&e.jsx("span",{className:"px-2 py-1 bg-red-500 text-white text-xs font-semibold rounded animate-pulse",children:"BREAKING"}),t.isTrending&&e.jsxs("span",{className:"px-2 py-1 bg-orange-500 text-white text-xs font-semibold rounded flex items-center",children:[e.jsx(Pa,{className:"w-3 h-3 mr-1"}),"TRENDING"]})]}),e.jsx("button",{onClick:()=>n(t._id,l),className:`absolute top-3 right-3 p-2 rounded-full transition-colors ${a?"bg-yellow-500 text-white":"bg-white text-gray-600 hover:bg-gray-100"} ${o.allowSaving?"":"opacity-60 cursor-not-allowed"}`,"aria-label":a?"Remove bookmark":"Add bookmark",disabled:!o.allowSaving,title:o.allowSaving?void 0:"Sign in to save articles",children:e.jsx(xa,{className:`w-4 h-4 ${a?"fill-current":""}`})})]}),e.jsxs("div",{className:`p-4 ${i==="list"?"md:w-2/3":""}`,children:[e.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:t.categories.slice(0,2).map((f,v)=>e.jsx("a",{href:`?category=${f}`,children:e.jsx("span",{className:"px-2 py-1 bg-yellow-100 text-yellow-800 text-xs font-medium rounded-full",children:f},v)}))}),e.jsx("h2",{className:"text-lg font-semibold text-gray-900 mb-2 line-clamp-2 hover:text-yellow-600 transition-colors",children:o.maskExternalLinks?e.jsx("button",{className:"text-left w-full text-gray-700 cursor-not-allowed","aria-label":"Sign in to view article",title:"Sign in to view external article",children:t.title}):e.jsx("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",onClick:()=>s==null?void 0:s(t,l,"new_tab",t.isTrending?"trending":t.isBreaking?"breaking":"listing"),children:t.title})}),e.jsx("p",{className:"text-sm text-gray-700 mb-3 line-clamp-3",children:m(t.content,i==="list"?150:200)}),e.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-500 mb-3",children:[e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsxs("span",{children:["By ",y(t.author)]}),e.jsx("span",{children:t.company})]}),e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(ga,{className:"w-4 h-4 mr-1"}),e.jsxs("span",{children:[t.readTime,"m read"]})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(tc,{className:"w-4 h-4 mr-1"}),e.jsx("span",{children:p(t.viewCount||0)})]})]})]}),e.jsx("div",{className:"flex flex-wrap gap-1 mb-3",children:t.tags.slice(0,3).map((f,v)=>e.jsxs("span",{className:"px-2 py-1 bg-gray-100 text-gray-600 text-xs rounded",children:["#",f]},v))}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-sm text-gray-500",children:u(t.date)}),e.jsx("span",{className:"inline-flex items-center rounded-full bg-gray-100 px-2.5 py-0.5 text-xs font-medium text-gray-700",children:pS[o.status]}),o.note&&e.jsx("span",{className:"text-xs text-gray-500",children:o.note})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("button",{onClick:()=>r(t,l),className:"p-2 text-gray-400 hover:text-gray-600 hover:bg-gray-100 rounded-full transition-colors","aria-label":"Share article",children:e.jsx(wo,{className:"w-4 h-4"})}),o.maskExternalLinks?e.jsx("button",{className:"flex items-center px-3 py-1.5 bg-gray-200 text-gray-600 text-sm font-medium rounded-lg cursor-not-allowed","aria-label":"Sign in to read",children:"Sign in to read"}):e.jsxs("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",className:"flex items-center px-3 py-1.5 bg-yellow-600 text-white text-sm font-medium rounded-lg hover:bg-yellow-700 transition-colors",onClick:()=>s==null?void 0:s(t,l,"new_tab",t.isTrending?"trending":t.isBreaking?"breaking":"listing"),children:["Read More",e.jsx(go,{className:"w-3 h-3 ml-1"})]})]})]})]})]})},GO=({apiUrl:t="http://localhost:5000/api/news",filterKeys:a=["categories","author","company"],searchableFilters:n=["company","author","categories"],defaultFilters:r={categories:[],tags:[],authors:[],companies:[],dateRange:["",""],readTime:[0,999]},defaultSort:s="latest",bookmarkStorageKey:i="news-bookmarks",itemsPerPage:o=12,dateFieldLabel:l="Published",userAccess:d,onEmitEvent:h,eventContext:u})=>{const[p,y]=M.useState([]),[m,x]=M.useState([]),[f,v]=M.useState([]),[k,w]=M.useState({}),[b,C]=M.useState(""),[j,I]=M.useState({}),[N,S]=M.useState(!1),[L,q]=M.useState(o),[_,A]=M.useState(new Set),[D,H]=M.useState(s),[G,V]=M.useState("grid"),[U,F]=M.useState(1),[se,K]=M.useState([]),[X,J]=M.useState(!1),[re,te]=M.useState([]),[ye,ve]=M.useState([]),[Z,ae]=M.useState(!0),[ge,ke]=M.useState("all"),[ie,me]=M.useState(""),Ie=W=>W.trim().toLowerCase().replace(/\s+/g,"-"),[Ae,Fe]=M.useState(r),[ot,gt]=M.useState(null),Nt=Yj(d),ct=M.useMemo(()=>({component:"NewsPage",...u??{}}),[u]),$e=M.useCallback((W,oe)=>{h&&h({domain:"news",name:W,payload:oe,timestamp:new Date().toISOString(),context:ct})},[ct,h]),Lt=M.useCallback(()=>({filters:{...j},categories:Ae.categories.length?Ae.categories:j.categories?[j.categories]:[],tags:Ae.tags,authors:Ae.authors.length?Ae.authors:j.author?[j.author]:[],companies:Ae.companies.length?Ae.companies:j.company?[j.company]:[],dateFilter:ge,readTimeRange:Ae.readTime}),[ge,j,Ae]),et=M.useCallback(()=>({page:U,pageSize:L,totalResults:m.length,sortBy:D,viewMode:G}),[U,m.length,L,D,G]),on=M.useRef(!1);M.useEffect(()=>{const W=localStorage.getItem(i);W&&A(new Set(JSON.parse(W)))},[i]),M.useEffect(()=>{const W=new URLSearchParams(window.location.search),oe={};a.forEach(lt=>{const kt=W.get(lt);kt&&(oe[lt]=kt)}),I(oe);const be=W.get("q"),_e=W.get("categories");let Ue=[...p];if(be&&(Ue=Ue.filter(lt=>lt.title.toLowerCase().includes(be.toLowerCase())),C(be),Kt(be)),_e){const lt=_e.trim().toLowerCase().replace(/\s+/g,"-");Fe(kt=>({...kt,categories:[lt]})),Ue=Ue.filter(kt=>kt.categories.some(dn=>Ie(dn)===lt))}v(Ue);const Va={};a.forEach(lt=>{const kt=W.get(lt);kt&&(Va[lt]=kt)}),I(Va)},[p]),M.useEffect(()=>{const oe=new URLSearchParams(window.location.search).get("date_filter");if(oe&&oe!=="all"){ke(oe);const be=po(p,j,re,oe);x(be),F(1),It(be)}},[p]);const Kt=W=>{if(!W.trim())return;const oe=[...re,W.trim()];te(oe);const be=po(p,j,oe,ge);x(be),F(1),It(be),C(""),$e("news_search_submitted",{query:W,searchFilters:oe,...Lt()})},It=W=>{const oe=il(W,a);w(oe)},Oa=W=>{ke(W),E(W),tP(W)},E=W=>{const oe=po(p,j,re,W);x(oe),F(1),It(oe)};M.useEffect(()=>{localStorage.setItem(i,JSON.stringify(Array.from(_)))},[_,i]),M.useEffect(()=>{ae(!0),gt(null),(async()=>{try{const oe=await fetch(t);if(!oe.ok)throw new Error(`API responded with status: ${oe.status}`);const be=await oe.json();if(!Array.isArray(be))throw new Error("Expected an array but received: "+typeof be);const _e=be.map(Ge=>({...Ge,categories:Array.isArray(Ge.categories)?Ge.categories:[],topTag:NE(Ge.title||"")})),Ue={};for(const Ge of _e){const vt=Ge.topTag;vt&&(Ue[vt]=(Ue[vt]||0)+1)}const Va=Object.entries(Ue).sort((Ge,vt)=>vt[1]-Ge[1]).slice(0,10).map(([Ge])=>Ge);ve(Va);const lt=new Set;_e.forEach(Ge=>{Ge.categories.forEach(vt=>{lt.add(Ie(vt))})});const kt=Array.from(lt).map(Ge=>({id:Ge,name:Ge.replace(/-/g," ").replace(/\b\w/g,vt=>vt.toUpperCase()),icon:"📰",count:_e.filter(vt=>vt.categories.some(Sc=>Ie(Sc)===Ge)).length,color:"bg-gray-100 text-gray-800"}));y(_e),x(_e),v(_e),K(kt);const dn=il(_e,a);w(dn)}catch(oe){console.error("Failed to fetch articles",oe)}finally{ae(!1)}})()},[t]);const $=()=>{V(W=>{const oe=W==="grid"?"list":"grid";return $e("news_listing_viewmode_changed",{viewMode:oe}),oe})};M.useMemo(()=>p.filter(W=>W.isTrending).slice(0,6),[p]),M.useMemo(()=>p.filter(W=>W.isBreaking),[p]);const ne=Math.ceil(m.length/L),Ne=m.slice((U-1)*L,U*L),ze=(W,oe)=>{Nt.allowSaving&&A(be=>{const _e=new Set(be),Ue=_e.has(W);return Ue?_e.delete(W):_e.add(W),$e(Ue?"news_article_unbookmarked":"news_article_bookmarked",{articleId:W,positionInList:oe}),_e})},Ke=(W,oe)=>{navigator.share?navigator.share({title:W.title,text:W.title,url:W.link}):(navigator.clipboard.writeText(W.link),alert("Article link copied to clipboard!")),$e("news_article_shared",{articleId:W._id,channel:"copy_link"})},He=(W,oe,be="new_tab",_e="listing")=>{$e("news_article_opened",{articleId:W._id,slug:W.slug,positionInList:oe,openedFrom:_e,openedIn:be})},Qt=()=>{J(!X)},ea=m.length===0?0:(U-1)*L+1,$n=Math.min(U*L,m.length),Cc=()=>{Fe({categories:[],tags:[],authors:[],companies:[],dateRange:["",""],readTime:[0,999]}),F(1);const W=po(p,j,re,ge);x(W),F(1),It(W)},Un=()=>{I({}),te([]),ke("all"),Cc(),x(p),F(1),It(p),$e("news_filters_cleared_all",{})},cn=M.useRef(null),ln=W=>{F(W),$e("news_listing_page_changed",{page:W,pageSize:L,totalResults:m.length}),setTimeout(()=>{var oe;(oe=cn.current)==null||oe.scrollIntoView({behavior:"smooth",block:"start"})},100)},pa=W=>{q(W),F(1),$e("news_listing_items_per_page_changed",{pageSize:W})},Ha=(W,oe)=>{const be={...j};oe?be[W]=oe:delete be[W];const _e=po(p,be,re,ge);I(be),x(_e),F(1),It(_e);const Ue=Lt();oe?$e("news_filter_selected",{key:W,value:oe,...Ue}):$e("news_filter_cleared",{key:W,...Ue})},Gn=W=>{const oe=re.filter(_e=>_e!==W);te(oe);const be=po(p,j,oe,ge);x(be),F(1),It(be),$e("news_search_filter_removed",{removedKeyword:W,remainingKeywords:oe})};return M.useEffect(()=>{on.current||Z||!m.length&&!p.length||($e("news_listing_viewed",{...Lt(),...et()}),on.current=!0)},[p.length,$e,m.length,Lt,et,Z]),e.jsxs("div",{className:"flex flex-col min-h-screen pb-16 md:pb-0",children:[e.jsxs("div",{className:"flex-grow",children:[e.jsx(fS,{onSearchChange:W=>{const oe=p.filter(be=>be.title.toLowerCase().includes(W.toLowerCase()));v(oe),C(W)},title:"Latest News",popularTags:ye,generateHref:W=>`/news?q=${W.replace(/\s+/g,"+")}`}),e.jsxs("div",{className:"container mx-auto py-8 pb-20 md:pb-8",children:[e.jsxs("div",{className:"relative",children:[e.jsxs("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:[e.jsx(yS,{data:p.map(W=>W.title),onSelect:W=>{Kt(W)},onTyping:W=>{S(!!W),W||(v(p),C(""))},placeholder:"Search news, topics, or authors...",showSubmitButton:!0,className:"w-full"}),e.jsx("button",{className:"block md:hidden flex items-center justify-center p-3 bg-white border-2 border-gray-200 text-gray-700 rounded-xl hover:border-gray-300 hover:bg-gray-50 transition-all duration-200 focus:ring-4 focus:ring-gray-200 focus:outline-none hover:scale-105",onClick:Qt,children:e.jsx(Pn,{size:16,className:"mr-1.5"})}),b&&e.jsxs("div",{className:"flex gap-2 mt-3 px-4 sm:px-6 lg:px-8",children:[e.jsxs("span",{className:"bg-yellow-100 text-indigo-800 rounded-full px-3 py-1 text-sm flex items-center",children:[b,e.jsx("button",{onClick:()=>{v(p),C("")},className:"ml-2 text-indigo-600 hover:text-indigo-800",children:"×"})]}),e.jsx("button",{className:"text-sm text-gray-600 hover:underline",onClick:()=>{v(p),C("")},children:"Clear Search"})]})]}),e.jsx("div",{className:"max-w-7xl mx-auto md:pb-8",children:e.jsx("div",{className:"block w-full",children:e.jsx("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:e.jsx(gS,{filters:[...ie?[{key:"categories",label:"Categories",value:ie.replace(/-/g," "),onRemove:()=>me("")}]:[],...re.map(W=>({key:"search",label:"",value:W,onRemove:()=>Gn(W)})),...Object.entries(j).map(([W,oe])=>({key:W,label:W.replace(/_/g," "),value:oe,onRemove:()=>Ha(W,"")}))],onClearAll:Un})})})})]}),e.jsx("main",{className:"max-w-7xl mx-auto px-4 pb-8 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex flex-col lg:flex-row lg:gap-6",children:[e.jsx(aP,{dateFieldLabel:"Date",activeDateFilter:ge,onDateFilterChange:Oa,filterKeys:a,searchableFilters:n,filtersData:k,activeFilters:j,handleFilterChange:Ha,toggleSavedJobsFilter:()=>console.log("toggle saved jobs filter"),showOnlySaved:!1,savedJobs:[]}),Z?e.jsx(mS,{}):e.jsx(e.Fragment,{children:e.jsxs("div",{className:"lg:w-2/4",children:[e.jsx(kS,{viewMode:G,onToggleViewMode:$,selectedItemsPerPage:L,onItemsPerPageChange:pa,totalCount:m.length,startIndex:ea,endIndex:$n,title:"Latest News"}),m.length>0?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:G==="grid"?"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-2 gap-6":"space-y-6",children:Ne.map((W,oe)=>e.jsx("div",{ref:oe===0?cn:null,children:e.jsx(UO,{article:W,isBookmarked:_.has(W._id),positionInList:oe,onToggleBookmark:be=>ze(be,oe),onShare:be=>Ke(be),onOpenArticle:He,layout:G,userAccess:Nt})},W._id))}),ne>1&&e.jsx("div",{className:"mt-8 flex justify-center",children:e.jsx(Kj,{currentPage:U,totalPages:ne,onPageChange:ln})})]}):e.jsxs("div",{className:"text-center py-12",children:[e.jsx(Aa,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"No articles found"}),e.jsx("p",{className:"text-gray-600 mb-4",children:"Try adjusting your search criteria or filters to find more articles."}),e.jsx("button",{onClick:Un,className:"px-4 py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700 transition-colors",children:"Clear All Filters"})]})]})}),e.jsx("div",{className:"hidden lg:block lg:w-1/4 space-y-6",children:e.jsxs("div",{className:"sticky top-4",children:[e.jsx(fl,{position:"sidebar",url:"https://video-previews.elements.envatousercontent.com/h264-video-previews/e08912ad-6856-4e36-89b5-cf1465cc79cb/32651312.mp4",link:"",alt:""}),e.jsx(uS,{api_url:""}),e.jsxs("div",{className:"mt-6 bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:[e.jsx("h3",{className:"font-semibold text-lg mb-3",children:"Featured Employers"}),e.jsx("div",{className:"grid grid-cols-3 gap-2",children:[...Array(6)].map((W,oe)=>e.jsx("div",{className:"flex items-center justify-center p-2 bg-gray-50 rounded-md",children:e.jsx("img",{src:`/placeholder.svg?height=40&width=40&text=${String.fromCharCode(65+oe)}`,alt:`Featured employer ${oe+1}`,className:"w-10 h-10 object-contain"})},oe))})]})]})})]})})]})]}),e.jsx(KA,{activeDateFilter:ge,handleDateFilterChange:Oa,filterKeys:a,searchableFilters:n,dateFieldLabel:l,activeFilters:j,handleFilterChange:Ha,filtersData:k,isMobileFilterOpen:X,toggleMobileFilter:Qt})]})},Dl=[{id:"1",title:"Introduction to iGaming",description:"Gain a comprehensive and practical overview of the iGaming industry with this all-encompassing course. Perfect for beginners looking to understand the fundamentals.",instructor:"Sarah Johnson",price:299,originalPrice:399,currency:"EUR",duration:"8 hours",level:"Beginner",category:"fundamentals",subcategory:"intro-igaming",rating:4.8,reviewCount:1247,enrollmentCount:5420,thumbnail:"/placeholder.svg?height=200&width=300&text=iGaming+Intro",tags:["iGaming","Fundamentals","Industry Overview"],features:["Lifetime Access","Certificate","Mobile Access"],lastUpdated:"2024-01-15",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!0,isNew:!1,isBestseller:!0},{id:"2",title:"Payments & Banking in Gaming Masterclass",description:"Master the complex world of payment processing, banking regulations, and financial compliance in the iGaming industry.",instructor:"Michael Chen",price:699,currency:"EUR",duration:"12 hours",level:"Advanced",category:"fundamentals",subcategory:"payments-banking",rating:4.9,reviewCount:892,enrollmentCount:2156,thumbnail:"/placeholder.svg?height=200&width=300&text=Payments+Banking",tags:["Payments","Banking","Compliance","FinTech"],features:["Lifetime Access","Certificate","Expert Support"],lastUpdated:"2024-02-20",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!0,isNew:!0,isBestseller:!1},{id:"3",title:"The Psychology of Gambling Addiction",description:"Gain insight into the psychological reasons behind gambling, the nature of addiction, and the scientific aspects of the challenges players encounter.",instructor:"Dr. Emma Rodriguez",price:449,currency:"EUR",duration:"6 hours",level:"Intermediate",category:"responsible-gaming",subcategory:"addiction-psychology",rating:4.7,reviewCount:634,enrollmentCount:1890,thumbnail:"/placeholder.svg?height=200&width=300&text=Psychology+Addiction",tags:["Psychology","Addiction","Player Behavior","Mental Health"],features:["Lifetime Access","Certificate","Case Studies"],lastUpdated:"2024-01-30",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!1,isNew:!1,isBestseller:!0},{id:"4",title:"AI in Gaming & Betting",description:"Explore the cutting-edge applications of artificial intelligence in gaming platforms, player analytics, and betting algorithms.",instructor:"Alex Thompson",price:599,currency:"EUR",duration:"10 hours",level:"Advanced",category:"technology",subcategory:"game-development",rating:4.6,reviewCount:445,enrollmentCount:1234,thumbnail:"/placeholder.svg?height=200&width=300&text=AI+Gaming",tags:["AI","Machine Learning","Analytics","Technology"],features:["Lifetime Access","Certificate","Code Examples"],lastUpdated:"2024-03-01",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!0,isNew:!0,isBestseller:!1},{id:"5",title:"Slot Academy LIVE!",description:"Interactive live sessions covering slot game mechanics, RTP calculations, and game design principles with industry experts.",instructor:"Gaming Academy Team",price:1500,currency:"EUR",duration:"20 hours",level:"Advanced",category:"specialized",subcategory:"slot-mechanics",rating:4.9,reviewCount:156,enrollmentCount:423,thumbnail:"/placeholder.svg?height=200&width=300&text=Slot+Academy",tags:["Slots","Game Mechanics","Live Training","RTP"],features:["Live Sessions","Certificate","Expert Mentoring"],lastUpdated:"2024-02-15",language:"English",certificate:!0,accessType:"Limited",isFeatured:!0,isNew:!1,isBestseller:!1},{id:"6",title:"English Language for IGaming & Betting",description:"Specialized English language course designed for non-native speakers working in the iGaming and betting industry.",instructor:"Linda Parker",price:300,currency:"EUR",duration:"15 hours",level:"Beginner",category:"specialized",subcategory:"industry-overview",rating:4.5,reviewCount:789,enrollmentCount:2890,thumbnail:"/placeholder.svg?height=200&width=300&text=English+iGaming",tags:["English","Language","Communication","Industry Terms"],features:["Lifetime Access","Certificate","Audio Lessons"],lastUpdated:"2024-01-10",language:"Multiple",certificate:!0,accessType:"Lifetime",isFeatured:!1,isNew:!1,isBestseller:!0},{id:"7",title:"VIP and Premium Service Masterclass",description:"Learn how to deliver exceptional VIP experiences and premium customer service in the competitive iGaming landscape.",instructor:"Robert Williams",price:499,currency:"EUR",duration:"8 hours",level:"Intermediate",category:"business",subcategory:"vip-management",rating:4.8,reviewCount:567,enrollmentCount:1456,thumbnail:"/placeholder.svg?height=200&width=300&text=VIP+Service",tags:["VIP","Customer Service","Premium","Hospitality"],features:["Lifetime Access","Certificate","Templates"],lastUpdated:"2024-02-05",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!0,isNew:!1,isBestseller:!1},{id:"8",title:"Fundamentals of CRM for Online Gaming",description:"Master customer relationship management strategies specifically tailored for online gaming and betting platforms.",instructor:"Maria Garcia",price:425,currency:"EUR",duration:"9 hours",level:"Intermediate",category:"business",subcategory:"crm-customer-service",rating:4.7,reviewCount:423,enrollmentCount:1123,thumbnail:"/placeholder.svg?height=200&width=300&text=CRM+Gaming",tags:["CRM","Customer Management","Gaming","Analytics"],features:["Lifetime Access","Certificate","CRM Tools"],lastUpdated:"2024-01-25",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!1,isNew:!1,isBestseller:!0},{id:"introduction-to-igaming-iga",title:"Introduction to iGaming",description:"Gain a comprehensive and practical overview of the iGaming industry with this all-encompassing course, featuring real-world case studies from leading operators.",instructor:"Igaming Academy",price:200,originalPrice:250,currency:"EUR",duration:"3 hours",level:"Intermediate",category:"fundamentals",subcategory:"intro-igaming",rating:4.7,reviewCount:0,enrollmentCount:0,thumbnail:"https://igacademy.com/app/uploads/2019/02/Introduction-to-iGaming-800x628.png",link:"https://igacademy.com/courses/introduction-to-igaming/",tags:["iGaming Academy","eLearning"],features:["Certificate","Next date: Online Access Anytime"],lastUpdated:"2025-06-03",language:"English",certificate:!0,accessType:"Subscription",isFeatured:!0,isNew:!1,isBestseller:!0},{id:"compliance-roadmap-2025",title:"Global Compliance Roadmap 2025",description:"Stay ahead of emerging regulatory requirements across Europe, North America, and Asia with a practical roadmap for compliance teams and product managers.",instructor:"Priya Natarajan",price:540,originalPrice:620,currency:"EUR",duration:"7 hours",level:"Advanced",category:"fundamentals",subcategory:"regulations",rating:4.9,reviewCount:312,enrollmentCount:1840,thumbnail:"/placeholder.svg?height=200&width=300&text=Compliance+2025",link:"https://example.com/courses/compliance-roadmap-2025",tags:["Compliance","AML","Licensing","Legal"],features:["Certificate","Downloadable checklists","Quarterly updates"],lastUpdated:"2025-05-20",language:"English",certificate:!0,accessType:"Subscription",isFeatured:!0,isNew:!0,isBestseller:!1},{id:"data-driven-retention-lab",title:"Data-Driven Retention Lab",description:"Hands-on laboratory course where teams design, launch, and measure retention campaigns using cohort analysis and real-time segmentation tools.",instructor:"Dr. Kevin Müller",price:380,currency:"EUR",duration:"5.5 hours",level:"Intermediate",category:"marketing",subcategory:"retention-strategies",rating:4.6,reviewCount:154,enrollmentCount:920,thumbnail:"/placeholder.svg?height=200&width=300&text=Retention+Lab",link:"https://example.com/courses/data-driven-retention",tags:["Retention","Analytics","Lifecycle","CRM"],features:["Certificate","Workbook","Live coaching"],lastUpdated:"2025-04-28",language:"English",certificate:!0,accessType:"Limited",isFeatured:!1,isNew:!0,isBestseller:!0}],WO=({courses:t,onSearchResults:a,onTyping:n,placeholder:r="Search courses, instructors, or topics..."})=>{const[s,i]=M.useState(""),[o,l]=M.useState([]),[d,h]=M.useState(!1);M.useEffect(()=>{if(s.length>0){const m=t.filter(k=>{var b,C,j,I,N;const w=s.toLowerCase();return k.title.toLowerCase().includes(w)||((b=k.description)==null?void 0:b.toLowerCase().includes(w))||((C=k.instructor)==null?void 0:C.toLowerCase().includes(w))||((j=k.tags)==null?void 0:j.some(S=>S.toLowerCase().includes(w)))||((I=k.category)==null?void 0:I.toLowerCase().includes(w))||((N=k.subcategory)==null?void 0:N.toLowerCase().includes(w))});a(m);const x=t.filter(k=>k.title.toLowerCase().includes(s.toLowerCase())).map(k=>k.title).slice(0,3),f=t.flatMap(k=>k.tags??[]).filter(k=>k.toLowerCase().includes(s.toLowerCase())).filter((k,w,b)=>b.indexOf(k)===w).slice(0,3),v=t.filter(k=>k.instructor?k.instructor.toLowerCase().includes(s.toLowerCase()):!1).map(k=>k.instructor).filter((k,w,b)=>b.indexOf(k)===w).slice(0,2);l([...x,...f,...v]),h(!0)}else a(t),l([]),h(!1)},[s,t,a]);const u=m=>{i(m),n==null||n(m.length>0,m)},p=m=>{i(m),h(!1)},y=()=>{i(""),h(!1),n==null||n(!1,"")};return e.jsxs("div",{className:"course-search relative",children:[e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:e.jsx(Gt,{className:"h-5 w-5 text-gray-400"})}),e.jsx("input",{type:"text",value:s,onChange:m=>u(m.target.value),onFocus:()=>h(o.length>0),onBlur:()=>setTimeout(()=>h(!1),200),className:"block w-full pl-10 pr-10 py-3 border border-gray-300 rounded-lg bg-white shadow-sm focus:outline-none focus:ring-2 focus:ring-yellow--500 focus:border-yellow--500 text-gray-900 placeholder-gray-500",placeholder:r}),s&&e.jsx("button",{onClick:y,className:"absolute inset-y-0 right-0 pr-3 flex items-center",children:e.jsx(Ct,{className:"h-5 w-5 text-gray-400 hover:text-gray-600"})})]}),d&&o.length>0&&e.jsx("div",{className:"absolute z-10 w-full mt-1 bg-white border border-gray-200 rounded-lg shadow-lg",children:e.jsx("ul",{className:"py-1",children:o.map((m,x)=>e.jsx("li",{children:e.jsx("button",{onClick:()=>p(m),className:"w-full px-4 py-2 text-left text-sm text-gray-700 hover:bg-gray-100 focus:bg-gray-100 focus:outline-none",children:e.jsxs("div",{className:"flex items-center",children:[e.jsx(Gt,{className:"h-4 w-4 text-gray-400 mr-2"}),m]})})},x))})}),s&&e.jsxs("div",{className:"mt-2 text-sm text-gray-600",children:['Search results for "',s,'"']})]})},ZO=({title:t,subtitle:a,placeholder:n,courses:r=[],onSearchResults:s})=>e.jsx("section",{className:"py-16 bg-gradient-to-r from-[#0f1219] to-[#1a2236] text-white relative overflow-hidden",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsxs("h2",{className:"text-4xl font-bold text-white mb-4",children:[t||"Master the ",e.jsx("span",{className:"bg-gradient-accent bg-clip-text text-transparent",children:"IGaming Industry"})]}),e.jsx("p",{className:"text-xl text-indigo-100 max-w-2xl mx-auto",children:a||"Learn from industry experts and advance your career with our comprehensive course catalog"})]}),e.jsx("div",{className:"hidden lg:block max-w-2xl mx-auto",children:r&&s&&e.jsx(WO,{courses:r,onSearchResults:s,placeholder:n||"Search IGaming courses, instructors, or topics..."})})]})}),JO=({categories:t,selectedCategory:a,selectedSubcategory:n,onCategorySelect:r,onSubcategorySelect:s})=>{const[i,o]=M.useState(new Set),l=h=>{const u=new Set(i);u.has(h)?u.delete(h):u.add(h),o(u)},d=h=>{l(h),r(h)};return e.jsxs("nav",{className:"course-navigation bg-white rounded-lg shadow-sm border border-gray-200 p-4",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Course Categories"}),e.jsx("div",{className:"space-y-2",children:t.map(h=>{const u=i.has(h.id),p=a===h.id;return e.jsxs("div",{className:"category-group",children:[e.jsxs("button",{onClick:()=>d(h.id),className:`
7804
7804
  w-full flex items-center justify-between p-3 rounded-lg text-left transition-colors
7805
7805
  ${p?"bg-yellow-50 text-indigo-700 border border-yellow--200":"hover:bg-gray-50 text-gray-700"}
7806
7806
  `,children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx("span",{className:"text-lg mr-3",children:h.icon}),e.jsx("span",{className:"font-medium",children:h.name})]}),u?e.jsx(wn,{className:"w-4 h-4"}):e.jsx(Mn,{className:"w-4 h-4"})]}),u&&e.jsx("div",{className:"mt-2 ml-6 space-y-1",children:h.subcategories.map(y=>{const m=n===y.id;return e.jsxs("button",{onClick:()=>s(y.id),className:`
7807
7807
  w-full flex items-center justify-between p-2 rounded-md text-left text-sm transition-colors
7808
7808
  ${m?"bg-yellow-100 text-indigo-800":"hover:bg-gray-100 text-gray-600"}
7809
- `,children:[e.jsx("span",{children:y.name}),e.jsx("span",{className:"text-xs text-gray-500",children:y.courseCount})]},y.id)})})]},h.id)})})]})},XN=({filters:t,sortBy:a,onFiltersChange:n,onSortChange:r,onClearFilters:s,totalCourses:i,filteredCourses:o,showFilterName:l=!0,categories:d,selectedCategory:h,selectedSubcategory:u,onCategorySelect:p,onSubcategorySelect:y})=>{const[m,x]=M.useState(!1),f=[{value:"relevance",label:"Most Relevant"},{value:"price-low-high",label:"Price: Low to High"},{value:"price-high-low",label:"Price: High to Low"},{value:"rating",label:"Highest Rated"},{value:"newest",label:"Newest"},{value:"most-enrolled",label:"Most Enrolled"}],v=["English","Spanish","French","German","Multiple"],k=["Lifetime Access","Certificate","Mobile Access","Expert Support"],w=j=>{const I=t.languages.includes(j)?t.languages.filter(N=>N!==j):[...t.languages,j];n({...t,languages:I})},b=j=>{const I=t.features.includes(j)?t.features.filter(N=>N!==j):[...t.features,j];n({...t,features:I})},C=t.levels.length>0||t.languages.length>0||t.features.length>0||t.rating>0||t.priceRange[0]>0||t.priceRange[1]<2e3;return e.jsxs("div",{className:"course-filters bg-white rounded-lg shadow-sm border border-gray-200",children:[e.jsxs("div",{className:"hidden lg:block p-4 border-b border-gray-200",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(Cn,{className:"w-5 h-5 text-gray-600 mr-2"}),e.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:"Filters"}),C&&e.jsx("span",{className:"ml-2 px-2 py-1 bg-yellow-100 text-indigo-800 text-xs rounded-full",children:"Active"})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[C&&e.jsx("button",{onClick:s,className:"text-sm text-indigo-600 hover:text-indigo-800",children:"Clear All"}),e.jsx("button",{onClick:()=>x(!m),className:"lg:hidden p-1 rounded-md hover:bg-gray-100",children:e.jsx(wn,{className:`w-4 h-4 transition-transform ${m?"rotate-180":""}`})})]})]}),e.jsxs("p",{className:"text-sm text-gray-600 mt-2",children:["Showing ",o," of ",i," courses"]})]}),e.jsxs("div",{className:"p-4 border-b border-gray-200",children:[e.jsx("label",{htmlFor:"sort-select",className:"block text-sm font-medium text-gray-700 mb-2",children:"Sort by"}),e.jsx("select",{id:"sort-select",value:a,onChange:j=>r(j.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow--500 focus:border-yellow--500",children:f.map(j=>e.jsx("option",{value:j.value,children:j.label},j.value))})]}),e.jsxs("div",{className:"block",children:[e.jsx(JO,{categories:d,selectedCategory:h,selectedSubcategory:u,onCategorySelect:p,onSubcategorySelect:y}),e.jsxs("div",{className:"p-4 border-b border-gray-200",children:[e.jsx("h4",{className:"text-sm font-medium text-gray-900 mb-3",children:"Language"}),e.jsx("div",{className:"space-y-2",children:v.map(j=>e.jsxs("label",{className:"flex items-center",children:[e.jsx("input",{type:"checkbox",checked:t.languages.includes(j),onChange:()=>w(j),className:"mr-2 text-indigo-600 focus:ring-yellow--500 rounded"}),e.jsx("span",{className:"text-sm text-gray-700",children:j})]},j))})]}),e.jsxs("div",{className:"p-4",children:[e.jsx("h4",{className:"text-sm font-medium text-gray-900 mb-3",children:"Features"}),e.jsx("div",{className:"space-y-2",children:k.map(j=>e.jsxs("label",{className:"flex items-center",children:[e.jsx("input",{type:"checkbox",checked:t.features.includes(j),onChange:()=>b(j),className:"mr-2 text-indigo-600 focus:ring-yellow--500 rounded"}),e.jsx("span",{className:"text-sm text-gray-700",children:j})]},j))})]})]})]})},XO=({isOpen:t,onClose:a,title:n="Filters",children:r})=>t?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed inset-0 bg-gray-600 bg-opacity-75 z-40",onClick:a}),e.jsxs("div",{className:"fixed inset-y-0 right-0 max-w-xs w-full bg-white shadow-xl z-50 overflow-y-auto",children:[e.jsxs("div",{className:"px-4 py-2 border-b border-gray-200 flex items-center justify-between",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900",children:n}),e.jsx("button",{onClick:a,className:"p-2 rounded-full hover:bg-gray-100","aria-label":"Close filters",children:e.jsx("svg",{className:"h-6 w-6 text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),e.jsx("div",{className:"p-4",children:r})]})]}):null,YN=({filters:t,sortBy:a,onFiltersChange:n,onSortChange:r,onClearFilters:s,totalCourses:i,filteredCourses:o,categories:l,selectedCategory:d,selectedSubcategory:h,onCategorySelect:u,onSubcategorySelect:p,isMobileFilterOpen:y,toggleMobileFilter:m,enableMobileFilter:x,showFilterName:f=!0,isMobile:v=!1})=>e.jsxs("aside",{className:v?"lg:w-1/4 space-y-6":"w-full space-y-6",children:[x&&e.jsx("button",{className:"block md:hidden flex items-center justify-center p-3 bg-white border-2 border-gray-200 text-gray-700 rounded-xl hover:border-gray-300 hover:bg-gray-50 transition-all duration-200 focus:ring-4 focus:ring-gray-200 focus:outline-none hover:scale-105",onClick:m,"aria-expanded":y,children:e.jsx(Pn,{className:"w-4 h-4 flex justify-center items-center"})}),e.jsx("div",{className:"hidden md:block",children:e.jsx(XN,{filters:t,sortBy:a,onFiltersChange:n,onSortChange:r,onClearFilters:s,totalCourses:i,filteredCourses:o,categories:l,selectedCategory:d,selectedSubcategory:h,onCategorySelect:u,onSubcategorySelect:p})}),e.jsx(XO,{isOpen:y,onClose:m,title:"Filters",children:e.jsx(XN,{filters:t,sortBy:a,onFiltersChange:n,onSortChange:r,onClearFilters:s,totalCourses:i,filteredCourses:o,showFilterName:f,categories:l,selectedCategory:d,selectedSubcategory:h,onCategorySelect:u,onSubcategorySelect:p})})]}),YO=({course:t,isFavorite:a,onToggleFavorite:n,onEnroll:r,userAccess:s})=>{const[i,o]=M.useState(!1),l=(p,y)=>new Intl.NumberFormat("en-EU",{style:"currency",currency:y}).format(p),d=p=>p>=1e3?`${(p/1e3).toFixed(1)}k`:p.toString(),h=s.allowSaving,u=s.maskExternalLinks;return e.jsxs("div",{className:"course-card bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden hover:shadow-lg transition-shadow duration-300",children:[e.jsxs("div",{className:"relative",children:[e.jsx("img",{src:t.thumbnail||"/placeholder.svg",alt:t.title,className:`w-full h-48 object-cover transition-opacity duration-300 ${i?"opacity-100":"opacity-0"}`,onLoad:()=>o(!0)}),!i&&e.jsx("div",{className:"absolute inset-0 bg-gray-200 animate-pulse flex items-center justify-center",children:e.jsx(ia,{className:"w-12 h-12 text-gray-400"})}),e.jsxs("div",{className:"absolute top-3 left-3 flex flex-wrap gap-1",children:[t.isBestseller&&e.jsx("span",{className:"px-2 py-1 bg-orange-500 text-white text-xs font-semibold rounded",children:"Bestseller"}),t.isNew&&e.jsx("span",{className:"px-2 py-1 bg-green-500 text-white text-xs font-semibold rounded",children:"New"}),t.isFeatured&&e.jsx("span",{className:"px-2 py-1 bg-yellow-500 text-white text-xs font-semibold rounded",children:"Featured"})]}),e.jsx("button",{onClick:()=>n(t.id),className:`absolute top-3 right-3 p-2 rounded-full transition-colors ${a?"bg-red-500 text-white":"bg-white text-gray-600 hover:bg-gray-100"} ${h?"":"opacity-60 cursor-not-allowed"}`,"aria-label":a?"Remove from favorites":"Add to favorites",disabled:!h,title:h?void 0:"Sign in to save courses",children:e.jsx(Nn,{className:`w-4 h-4 ${a?"fill-current":""}`})})]}),e.jsxs("div",{className:"p-4",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2 line-clamp-2",children:t.title}),e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("span",{className:"inline-flex items-center rounded-full bg-gray-100 px-2.5 py-0.5 text-xs font-medium text-gray-700",children:pS[s.status]}),s.note&&e.jsx("span",{className:"text-xs text-gray-500",children:s.note})]}),e.jsxs("p",{className:"text-sm text-gray-600 mb-2",children:["By ",t.instructor]}),e.jsx("p",{className:"text-sm text-gray-700 mb-3 line-clamp-2",children:t.description}),e.jsxs("div",{className:"flex items-center mb-3",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(jt,{className:"w-4 h-4 text-yellow-400 fill-current"}),e.jsx("span",{className:"ml-1 text-sm font-medium text-gray-900",children:t.rating})]}),typeof t.reviewCount=="number"&&e.jsxs("span",{className:"ml-2 text-sm text-gray-500",children:["(",t.reviewCount.toLocaleString()," reviews)"]})]}),e.jsxs("div",{className:"flex items-center justify-between text-sm text-gray-600 mb-3",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(ga,{className:"w-4 h-4 mr-1"}),e.jsx("span",{children:t.duration})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(mt,{className:"w-4 h-4 mr-1"}),typeof t.enrollmentCount=="number"&&e.jsxs("span",{children:[d(t.enrollmentCount)," students"]})]})]}),e.jsxs("div",{className:"flex items-center justify-between text-sm mb-4",children:[e.jsx("span",{className:`px-2 py-1 rounded text-xs font-medium ${t.level==="Beginner"?"bg-green-100 text-green-800":t.level==="Intermediate"?"bg-yellow-100 text-yellow-800":"bg-red-100 text-red-800"}`,children:t.level}),t.certificate&&e.jsxs("div",{className:"flex items-center text-indigo-600",children:[e.jsx(na,{className:"w-4 h-4 mr-1"}),e.jsx("span",{className:"text-xs",children:"Certificate"})]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center",children:[typeof t.price=="number"&&t.currency&&e.jsx("span",{className:"text-xl font-bold text-gray-900",children:l(t.price,t.currency)}),typeof t.originalPrice=="number"&&!isNaN(t.originalPrice)&&e.jsx("span",{className:"ml-2 text-sm text-gray-500 line-through",children:l(t.originalPrice,t.currency)})]}),u?e.jsx("button",{className:"px-4 py-2 bg-gray-200 text-gray-600 text-sm font-medium rounded-lg cursor-not-allowed","aria-label":"Sign in to enroll",children:"Sign in to enroll"}):e.jsx("button",{onClick:()=>r(t.id),className:"px-4 py-2 bg-yellow-600 text-white text-sm font-medium rounded-lg hover:bg-yellow-700 transition-colors",children:"Enroll Now"})]})]})]})},KO=({processedCourses:t,favorites:a,handleToggleFavorite:n,handleEnroll:r,itemsPerPage:s=9,handleClearFilters:i,currentPage:o=1,setCurrentPage:l=()=>{},viewMode:d="grid",userAccess:h})=>{const u=Math.ceil(t.length/s),p=t.slice((o-1)*s,o*s),y=M.useRef(null),m=x=>{l(x),setTimeout(()=>{var f;(f=y.current)==null||f.scrollIntoView({behavior:"smooth",block:"start"})},100)};return t.length>0?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:d==="grid"?"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6":"space-y-6",children:p.map((x,f)=>e.jsx("div",{ref:f===0?y:null,children:e.jsx(YO,{course:x,isFavorite:a.has(x.id),onToggleFavorite:n,onEnroll:r,userAccess:h},`${x.id}-${x.title}`)},x.id))}),u>1&&e.jsx("div",{className:"mt-8 flex justify-center",children:e.jsx(Kj,{currentPage:o,totalPages:u,onPageChange:m})})]}):e.jsxs("div",{className:"text-center py-12",children:[e.jsx(ia,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"No courses found"}),e.jsx("p",{className:"text-gray-600 mb-4",children:"Try adjusting your search criteria or filters to find more courses."}),e.jsx("button",{onClick:i,className:"px-4 py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700 transition-colors",children:"Clear All Filters"})]})},QO=({apiUrl:t,enableMobileFilter:a=!0,itemsPerPage:n=9,userAccess:r,onEmitEvent:s,eventContext:i})=>{const[o,l]=M.useState([]),[d,h]=M.useState([]),[u,p]=M.useState(new Set),[y,m]=M.useState(""),[x,f]=M.useState(""),[v,k]=M.useState("relevance"),[w,b]=M.useState(!1),[C,j]=M.useState(1),[I,N]=M.useState(!1),[S,L]=M.useState(!1),[q,_]=M.useState(!0),[A,D]=M.useState(""),[H,G]=M.useState([]),[V,$]=M.useState([]),[F,re]=M.useState("grid"),[K,X]=M.useState(n),[Z,le]=M.useState({categories:[],subcategories:[],priceRange:[0,2e3],levels:[],languages:[],features:[],rating:0}),ae=Yj(r),fe=M.useMemo(()=>({component:"IGamingCoursePage",...i??{}}),[i]),we=M.useRef(!1),J=M.useMemo(()=>{let E=[...d];switch(y&&(E=E.filter(U=>me(U.category)===y)),x&&(E=E.filter(U=>me(U.subcategory)===x)),Z.levels.length>0&&(E=E.filter(U=>Z.levels.includes(U.level))),Z.languages.length>0&&(E=E.filter(U=>Z.languages.includes(U.language))),Z.features.length>0&&(E=E.filter(U=>Z.features.some(te=>U.features.includes(te)))),Z.rating>0&&(E=E.filter(U=>U.rating>=Z.rating)),w&&(E=E.filter(U=>u.has(U.id))),v){case"price-low-high":E.sort((U,te)=>U.price-te.price);break;case"price-high-low":E.sort((U,te)=>te.price-U.price);break;case"rating":E.sort((U,te)=>te.rating-U.rating);break;case"newest":E.sort((U,te)=>new Date(te.lastUpdated).getTime()-new Date(U.lastUpdated).getTime());break;case"most-enrolled":E.sort((U,te)=>te.enrollmentCount-U.enrollmentCount);break;default:E.sort((U,te)=>U.isFeatured&&!te.isFeatured?-1:!U.isFeatured&&te.isFeatured?1:U.isBestseller&&!te.isBestseller?-1:!U.isBestseller&&te.isBestseller?1:te.rating-U.rating)}return E},[d,y,x,Z,u,w,v]),ne=M.useCallback((E,U)=>{s&&s({domain:"courses",name:E,payload:U,timestamp:new Date().toISOString(),context:fe})},[fe,s]),ke=M.useCallback(()=>({category:y||void 0,subcategory:x||void 0,levels:Z.levels,languages:Z.languages,features:Z.features,rating:Z.rating,priceRange:Z.priceRange,favoritesOnly:w}),[Z.features,Z.languages,Z.levels,Z.priceRange,Z.rating,y,x,w]),ge=M.useCallback(()=>({page:C,pageSize:K,totalResults:J.length,sortBy:v,viewMode:F}),[C,J.length,K,v,F]),se=()=>{re(E=>{const U=E==="grid"?"list":"grid";return ne("courses_listing_viewmode_changed",{viewMode:U}),U})},me=E=>(E??"").trim().toLowerCase().replace(/\s+/g,"-"),Ie=M.useMemo(()=>{const E=new Map;return o.forEach(U=>{const te=U.category,Ne=U.subcategory,ze=me(te),Ke=me(Ne);if(!ze)return;E.has(ze)||E.set(ze,new Map);const He=E.get(ze);Ke&&He.set(Ke,(He.get(Ke)??0)+1)}),Array.from(E.entries()).map(([U,te])=>({id:U,name:U.replace(/-/g," ").replace(/\b\w/g,Ne=>Ne.toUpperCase()),icon:"🎯",subcategories:Array.from(te.entries()).map(([Ne,ze])=>({id:Ne,name:Ne.replace(/-/g," ").replace(/\b\w/g,Ke=>Ke.toUpperCase()),courseCount:ze}))}))},[o]),Ae=E=>{X(E),j(1),ne("courses_listing_items_per_page_changed",{pageSize:E})},Fe=E=>{const U=te=>te.slice().sort().join("|");return U(E.categories)!==U(Z.categories)?"category":U(E.subcategories)!==U(Z.subcategories)?"subcategory":U(E.levels)!==U(Z.levels)?"levels":U(E.languages)!==U(Z.languages)?"languages":U(E.features)!==U(Z.features)?"features":E.rating!==Z.rating?"rating":E.priceRange[0]!==Z.priceRange[0]||E.priceRange[1]!==Z.priceRange[1]?"priceRange":"features"},ot=E=>{le(E);const U={category:y||void 0,subcategory:x||void 0,levels:E.levels,languages:E.languages,features:E.features,rating:E.rating,priceRange:E.priceRange,favoritesOnly:w};ne("courses_filter_changed",{changedKey:Fe(E),...U})};M.useEffect(()=>{(async()=>{try{if(!t){l(Dl),h(Dl),_(!1);return}_(!0);const U=await fetch(t);if(!U.ok)throw new Error(`Failed to fetch courses from ${t}`);const te=await U.json();l(te),h(te);const ze=te.map(He=>xS(He.title||"")).filter(He=>!!He).reduce((He,Qt)=>(He[Qt]=(He[Qt]||0)+1,He),{}),Ke=Object.entries(ze).sort((He,Qt)=>Qt[1]-He[1]).slice(0,10).map(([He])=>He);G(Ke)}catch(U){console.error("[Courses] Error loading data:",U),l(Dl),h(Dl)}finally{_(!1)}})()},[t]),M.useEffect(()=>{var te;const U=(te=new URLSearchParams(window.location.search).get("q"))==null?void 0:te.trim();if(U){D(U);const Ne=o.filter(ze=>{var Ke;return ze.title.toLowerCase().includes(U.toLowerCase())||((Ke=ze.description)==null?void 0:Ke.toLowerCase().includes(U.toLowerCase()))});h(Ne)}},[o]),M.useEffect(()=>{const E=localStorage.getItem("course-favorites");E&&p(new Set(JSON.parse(E)))},[]),M.useEffect(()=>{localStorage.setItem("course-favorites",JSON.stringify(Array.from(u)))},[u]);const gt=E=>{ae.allowSaving&&p(U=>{const te=new Set(U),Ne=te.has(E);return Ne?te.delete(E):te.add(E),ne(Ne?"course_unfavorited":"course_favorited",{courseId:E}),te})},Nt=E=>{if(ae.maskExternalLinks)return;const U=o.find(te=>te.id===E);U!=null&&U.link&&(ne("course_enroll_clicked",{courseId:E}),ne("course_opened",{courseId:E,openedFrom:"listing",openedIn:"new_tab"}),window.open(U.link,"_blank","noopener,noreferrer"))};M.useEffect(()=>{we.current||q||!J.length&&!o.length||(ne("courses_listing_viewed",{...ke(),...ge()}),we.current=!0)},[o.length,ne,J.length,ke,ge,q]);const ct=E=>{const U=me(E);m(U===y?"":U),f(""),ne("courses_category_selected",{category:U===y?null:U}),ne("courses_filter_changed",{changedKey:"category",...ke()})},$e=E=>{const U=me(E);f(U===x?"":U),ne("courses_subcategory_selected",{subcategory:U===x?null:U}),ne("courses_filter_changed",{changedKey:"subcategory",...ke()})},Lt=()=>{le({categories:[],subcategories:[],priceRange:[0,2e3],levels:[],languages:[],features:[],rating:0}),m(""),f(""),b(!1),D(""),h(o),ne("courses_filters_cleared_all",{})},et=()=>{N(!I)},on=E=>{j(E),ne("courses_listing_page_changed",{page:E,pageSize:K,totalResults:J.length})},Kt=J.length===0?0:(C-1)*K+1,It=Math.min(C*K,J.length),Oa=E=>{if(D(E),!E){h(o),$([]);return}const U=o.filter(Ne=>{var ze;return Ne.title.toLowerCase().includes(E.toLowerCase())||((ze=Ne.description)==null?void 0:ze.toLowerCase().includes(E.toLowerCase()))});h(U);const te=U.map(Ne=>Ne.title).filter((Ne,ze,Ke)=>Ne&&Ne.toLowerCase().includes(E.toLowerCase())&&Ke.indexOf(Ne)===ze).slice(0,5);$(te),E.trim()&&ne("courses_search_submitted",{query:E,...ke()})};return e.jsxs("div",{className:"min-h-screen bg-gray-50",children:[e.jsx(fS,{onSearchChange:Oa,title:"Courses",description:"Browse and enroll in industry-relevant gaming courses",searchPlaceholder:"Search courses",popularTags:H,generateHref:E=>`/courses?q=${E.toLowerCase().replace(/\s+/g,"+")}`}),e.jsx(ZO,{courses:o,onSearchResults:h}),e.jsxs("main",{className:"max-w-7xl mx-auto sm:px-6 lg:px-8 py-8",children:[e.jsx(gS,{filters:[...y?[{key:"category",label:"Category",value:y.replace(/-/g," "),onRemove:()=>m("")}]:[],...x?[{key:"subcategory",label:"Subcategory",value:x.replace(/-/g," "),onRemove:()=>f("")}]:[],...Z.levels.map(E=>({key:"level",label:"",value:E,onRemove:()=>le(U=>({...U,levels:U.levels.filter(te=>te!==E)}))})),...A?[{key:"search",label:"Search",value:A,onRemove:()=>{D(""),h(o)}}]:[]],onClearAll:Lt}),e.jsxs("div",{className:"flex flex-col lg:flex-row gap-8",children:[e.jsx("div",{className:"block lg:hidden w-full",children:e.jsxs("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:[e.jsx(yS,{data:o.map(E=>E.title),onSelect:E=>{const U=o.filter(te=>te.title.toLowerCase().includes(E.toLowerCase()));h(U),D(E)},onTyping:E=>{L(!!E),E||(h(o),D(""))}}),e.jsx(YN,{sortBy:v,onFiltersChange:ot,onSortChange:k,onClearFilters:Lt,totalCourses:o.length,filteredCourses:J.length,categories:Ie,selectedCategory:y,selectedSubcategory:x,filters:Z,onCategorySelect:ct,onSubcategorySelect:$e,isMobileFilterOpen:I,toggleMobileFilter:et,enableMobileFilter:a,showFilterName:!S,isMobile:!0})]})}),e.jsx("div",{className:"hidden lg:block lg:w-1/4",children:e.jsx(YN,{filters:Z,sortBy:v,onFiltersChange:ot,onSortChange:k,onClearFilters:Lt,totalCourses:o.length,filteredCourses:J.length,categories:Ie,selectedCategory:y,selectedSubcategory:x,onCategorySelect:ct,onSubcategorySelect:$e,isMobileFilterOpen:I,toggleMobileFilter:et,enableMobileFilter:a,showFilterName:!0})}),e.jsxs("div",{className:"lg:w-3/4",children:[e.jsx(kS,{viewMode:F,onToggleViewMode:se,selectedItemsPerPage:K,onItemsPerPageChange:Ae,totalCount:J.length,startIndex:Kt,endIndex:It,title:"All Courses"}),q?e.jsx(mS,{totalColumns:3}):e.jsx(KO,{processedCourses:J,favorites:u,handleToggleFavorite:gt,handleClearFilters:Lt,itemsPerPage:K,handleEnroll:Nt,currentPage:C,setCurrentPage:on,viewMode:F,userAccess:ae})]})]})]})]})};function eH(t,a=[]){let n=[];function r(i,o){const l=g.createContext(o),d=n.length;n=[...n,o];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=n.map(o=>g.createContext(o));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[r,tH(s,...a)]}function tH(...t){const a=t[0];if(t.length===1)return a;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:o}),[o])}};return n.scopeName=a.scopeName,n}function aH(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...n)=>{var r;return(r=a.current)==null?void 0:r.call(a,...n)},[])}var CC=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},nH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],AS=nH.reduce((t,a)=>{const n=Ye(`Primitive.${a}`),r=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{}),SC={exports:{}},G9={};/**
7809
+ `,children:[e.jsx("span",{children:y.name}),e.jsx("span",{className:"text-xs text-gray-500",children:y.courseCount})]},y.id)})})]},h.id)})})]})},XN=({filters:t,sortBy:a,onFiltersChange:n,onSortChange:r,onClearFilters:s,totalCourses:i,filteredCourses:o,showFilterName:l=!0,categories:d,selectedCategory:h,selectedSubcategory:u,onCategorySelect:p,onSubcategorySelect:y})=>{const[m,x]=M.useState(!1),f=[{value:"relevance",label:"Most Relevant"},{value:"price-low-high",label:"Price: Low to High"},{value:"price-high-low",label:"Price: High to Low"},{value:"rating",label:"Highest Rated"},{value:"newest",label:"Newest"},{value:"most-enrolled",label:"Most Enrolled"}],v=["English","Spanish","French","German","Multiple"],k=["Lifetime Access","Certificate","Mobile Access","Expert Support"],w=j=>{const I=t.languages.includes(j)?t.languages.filter(N=>N!==j):[...t.languages,j];n({...t,languages:I})},b=j=>{const I=t.features.includes(j)?t.features.filter(N=>N!==j):[...t.features,j];n({...t,features:I})},C=t.levels.length>0||t.languages.length>0||t.features.length>0||t.rating>0||t.priceRange[0]>0||t.priceRange[1]<2e3;return e.jsxs("div",{className:"course-filters bg-white rounded-lg shadow-sm border border-gray-200",children:[e.jsxs("div",{className:"hidden lg:block p-4 border-b border-gray-200",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(Cn,{className:"w-5 h-5 text-gray-600 mr-2"}),e.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:"Filters"}),C&&e.jsx("span",{className:"ml-2 px-2 py-1 bg-yellow-100 text-indigo-800 text-xs rounded-full",children:"Active"})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[C&&e.jsx("button",{onClick:s,className:"text-sm text-indigo-600 hover:text-indigo-800",children:"Clear All"}),e.jsx("button",{onClick:()=>x(!m),className:"lg:hidden p-1 rounded-md hover:bg-gray-100",children:e.jsx(wn,{className:`w-4 h-4 transition-transform ${m?"rotate-180":""}`})})]})]}),e.jsxs("p",{className:"text-sm text-gray-600 mt-2",children:["Showing ",o," of ",i," courses"]})]}),e.jsxs("div",{className:"p-4 border-b border-gray-200",children:[e.jsx("label",{htmlFor:"sort-select",className:"block text-sm font-medium text-gray-700 mb-2",children:"Sort by"}),e.jsx("select",{id:"sort-select",value:a,onChange:j=>r(j.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow--500 focus:border-yellow--500",children:f.map(j=>e.jsx("option",{value:j.value,children:j.label},j.value))})]}),e.jsxs("div",{className:"block",children:[e.jsx(JO,{categories:d,selectedCategory:h,selectedSubcategory:u,onCategorySelect:p,onSubcategorySelect:y}),e.jsxs("div",{className:"p-4 border-b border-gray-200",children:[e.jsx("h4",{className:"text-sm font-medium text-gray-900 mb-3",children:"Language"}),e.jsx("div",{className:"space-y-2",children:v.map(j=>e.jsxs("label",{className:"flex items-center",children:[e.jsx("input",{type:"checkbox",checked:t.languages.includes(j),onChange:()=>w(j),className:"mr-2 text-indigo-600 focus:ring-yellow--500 rounded"}),e.jsx("span",{className:"text-sm text-gray-700",children:j})]},j))})]}),e.jsxs("div",{className:"p-4",children:[e.jsx("h4",{className:"text-sm font-medium text-gray-900 mb-3",children:"Features"}),e.jsx("div",{className:"space-y-2",children:k.map(j=>e.jsxs("label",{className:"flex items-center",children:[e.jsx("input",{type:"checkbox",checked:t.features.includes(j),onChange:()=>b(j),className:"mr-2 text-indigo-600 focus:ring-yellow--500 rounded"}),e.jsx("span",{className:"text-sm text-gray-700",children:j})]},j))})]})]})]})},XO=({isOpen:t,onClose:a,title:n="Filters",children:r})=>t?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed inset-0 bg-gray-600 bg-opacity-75 z-40",onClick:a}),e.jsxs("div",{className:"fixed inset-y-0 right-0 max-w-xs w-full bg-white shadow-xl z-50 overflow-y-auto",children:[e.jsxs("div",{className:"px-4 py-2 border-b border-gray-200 flex items-center justify-between",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900",children:n}),e.jsx("button",{onClick:a,className:"p-2 rounded-full hover:bg-gray-100","aria-label":"Close filters",children:e.jsx("svg",{className:"h-6 w-6 text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),e.jsx("div",{className:"p-4",children:r})]})]}):null,YN=({filters:t,sortBy:a,onFiltersChange:n,onSortChange:r,onClearFilters:s,totalCourses:i,filteredCourses:o,categories:l,selectedCategory:d,selectedSubcategory:h,onCategorySelect:u,onSubcategorySelect:p,isMobileFilterOpen:y,toggleMobileFilter:m,enableMobileFilter:x,showFilterName:f=!0,isMobile:v=!1})=>e.jsxs("aside",{className:v?"lg:w-1/4 space-y-6":"w-full space-y-6",children:[x&&e.jsx("button",{className:"block md:hidden flex items-center justify-center p-3 bg-white border-2 border-gray-200 text-gray-700 rounded-xl hover:border-gray-300 hover:bg-gray-50 transition-all duration-200 focus:ring-4 focus:ring-gray-200 focus:outline-none hover:scale-105",onClick:m,"aria-expanded":y,children:e.jsx(Pn,{className:"w-4 h-4 flex justify-center items-center"})}),e.jsx("div",{className:"hidden md:block",children:e.jsx(XN,{filters:t,sortBy:a,onFiltersChange:n,onSortChange:r,onClearFilters:s,totalCourses:i,filteredCourses:o,categories:l,selectedCategory:d,selectedSubcategory:h,onCategorySelect:u,onSubcategorySelect:p})}),e.jsx(XO,{isOpen:y,onClose:m,title:"Filters",children:e.jsx(XN,{filters:t,sortBy:a,onFiltersChange:n,onSortChange:r,onClearFilters:s,totalCourses:i,filteredCourses:o,showFilterName:f,categories:l,selectedCategory:d,selectedSubcategory:h,onCategorySelect:u,onSubcategorySelect:p})})]}),YO=({course:t,isFavorite:a,onToggleFavorite:n,onEnroll:r,userAccess:s})=>{const[i,o]=M.useState(!1),l=(p,y)=>new Intl.NumberFormat("en-EU",{style:"currency",currency:y}).format(p),d=p=>p>=1e3?`${(p/1e3).toFixed(1)}k`:p.toString(),h=s.allowSaving,u=s.maskExternalLinks;return e.jsxs("div",{className:"course-card bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden hover:shadow-lg transition-shadow duration-300",children:[e.jsxs("div",{className:"relative",children:[e.jsx("img",{src:t.thumbnail||"/placeholder.svg",alt:t.title,className:`w-full h-48 object-cover transition-opacity duration-300 ${i?"opacity-100":"opacity-0"}`,onLoad:()=>o(!0)}),!i&&e.jsx("div",{className:"absolute inset-0 bg-gray-200 animate-pulse flex items-center justify-center",children:e.jsx(ia,{className:"w-12 h-12 text-gray-400"})}),e.jsxs("div",{className:"absolute top-3 left-3 flex flex-wrap gap-1",children:[t.isBestseller&&e.jsx("span",{className:"px-2 py-1 bg-orange-500 text-white text-xs font-semibold rounded",children:"Bestseller"}),t.isNew&&e.jsx("span",{className:"px-2 py-1 bg-green-500 text-white text-xs font-semibold rounded",children:"New"}),t.isFeatured&&e.jsx("span",{className:"px-2 py-1 bg-yellow-500 text-white text-xs font-semibold rounded",children:"Featured"})]}),e.jsx("button",{onClick:()=>n(t.id),className:`absolute top-3 right-3 p-2 rounded-full transition-colors ${a?"bg-red-500 text-white":"bg-white text-gray-600 hover:bg-gray-100"} ${h?"":"opacity-60 cursor-not-allowed"}`,"aria-label":a?"Remove from favorites":"Add to favorites",disabled:!h,title:h?void 0:"Sign in to save courses",children:e.jsx(Nn,{className:`w-4 h-4 ${a?"fill-current":""}`})})]}),e.jsxs("div",{className:"p-4",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2 line-clamp-2",children:t.title}),e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("span",{className:"inline-flex items-center rounded-full bg-gray-100 px-2.5 py-0.5 text-xs font-medium text-gray-700",children:pS[s.status]}),s.note&&e.jsx("span",{className:"text-xs text-gray-500",children:s.note})]}),e.jsxs("p",{className:"text-sm text-gray-600 mb-2",children:["By ",t.instructor]}),e.jsx("p",{className:"text-sm text-gray-700 mb-3 line-clamp-2",children:t.description}),e.jsxs("div",{className:"flex items-center mb-3",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(jt,{className:"w-4 h-4 text-yellow-400 fill-current"}),e.jsx("span",{className:"ml-1 text-sm font-medium text-gray-900",children:t.rating})]}),typeof t.reviewCount=="number"&&e.jsxs("span",{className:"ml-2 text-sm text-gray-500",children:["(",t.reviewCount.toLocaleString()," reviews)"]})]}),e.jsxs("div",{className:"flex items-center justify-between text-sm text-gray-600 mb-3",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(ga,{className:"w-4 h-4 mr-1"}),e.jsx("span",{children:t.duration})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(mt,{className:"w-4 h-4 mr-1"}),typeof t.enrollmentCount=="number"&&e.jsxs("span",{children:[d(t.enrollmentCount)," students"]})]})]}),e.jsxs("div",{className:"flex items-center justify-between text-sm mb-4",children:[e.jsx("span",{className:`px-2 py-1 rounded text-xs font-medium ${t.level==="Beginner"?"bg-green-100 text-green-800":t.level==="Intermediate"?"bg-yellow-100 text-yellow-800":"bg-red-100 text-red-800"}`,children:t.level}),t.certificate&&e.jsxs("div",{className:"flex items-center text-indigo-600",children:[e.jsx(na,{className:"w-4 h-4 mr-1"}),e.jsx("span",{className:"text-xs",children:"Certificate"})]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center",children:[typeof t.price=="number"&&t.currency&&e.jsx("span",{className:"text-xl font-bold text-gray-900",children:l(t.price,t.currency)}),typeof t.originalPrice=="number"&&!isNaN(t.originalPrice)&&e.jsx("span",{className:"ml-2 text-sm text-gray-500 line-through",children:l(t.originalPrice,t.currency)})]}),u?e.jsx("button",{className:"px-4 py-2 bg-gray-200 text-gray-600 text-sm font-medium rounded-lg cursor-not-allowed","aria-label":"Sign in to enroll",children:"Sign in to enroll"}):e.jsx("button",{onClick:()=>r(t.id),className:"px-4 py-2 bg-yellow-600 text-white text-sm font-medium rounded-lg hover:bg-yellow-700 transition-colors",children:"Enroll Now"})]})]})]})},KO=({processedCourses:t,favorites:a,handleToggleFavorite:n,handleEnroll:r,itemsPerPage:s=9,handleClearFilters:i,currentPage:o=1,setCurrentPage:l=()=>{},viewMode:d="grid",userAccess:h})=>{const u=Math.ceil(t.length/s),p=t.slice((o-1)*s,o*s),y=M.useRef(null),m=x=>{l(x),setTimeout(()=>{var f;(f=y.current)==null||f.scrollIntoView({behavior:"smooth",block:"start"})},100)};return t.length>0?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:d==="grid"?"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6":"space-y-6",children:p.map((x,f)=>e.jsx("div",{ref:f===0?y:null,children:e.jsx(YO,{course:x,isFavorite:a.has(x.id),onToggleFavorite:n,onEnroll:r,userAccess:h},`${x.id}-${x.title}`)},x.id))}),u>1&&e.jsx("div",{className:"mt-8 flex justify-center",children:e.jsx(Kj,{currentPage:o,totalPages:u,onPageChange:m})})]}):e.jsxs("div",{className:"text-center py-12",children:[e.jsx(ia,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"No courses found"}),e.jsx("p",{className:"text-gray-600 mb-4",children:"Try adjusting your search criteria or filters to find more courses."}),e.jsx("button",{onClick:i,className:"px-4 py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700 transition-colors",children:"Clear All Filters"})]})},QO=({apiUrl:t,enableMobileFilter:a=!0,itemsPerPage:n=9,userAccess:r,onEmitEvent:s,eventContext:i})=>{const[o,l]=M.useState([]),[d,h]=M.useState([]),[u,p]=M.useState(new Set),[y,m]=M.useState(""),[x,f]=M.useState(""),[v,k]=M.useState("relevance"),[w,b]=M.useState(!1),[C,j]=M.useState(1),[I,N]=M.useState(!1),[S,L]=M.useState(!1),[q,_]=M.useState(!0),[A,D]=M.useState(""),[H,G]=M.useState([]),[V,U]=M.useState([]),[F,se]=M.useState("grid"),[K,X]=M.useState(n),[J,re]=M.useState({categories:[],subcategories:[],priceRange:[0,2e3],levels:[],languages:[],features:[],rating:0}),te=Yj(r),ye=M.useMemo(()=>({component:"IGamingCoursePage",...i??{}}),[i]),ve=M.useRef(!1),Z=M.useMemo(()=>{let E=[...d];switch(y&&(E=E.filter($=>me($.category)===y)),x&&(E=E.filter($=>me($.subcategory)===x)),J.levels.length>0&&(E=E.filter($=>J.levels.includes($.level))),J.languages.length>0&&(E=E.filter($=>J.languages.includes($.language))),J.features.length>0&&(E=E.filter($=>J.features.some(ne=>$.features.includes(ne)))),J.rating>0&&(E=E.filter($=>$.rating>=J.rating)),w&&(E=E.filter($=>u.has($.id))),v){case"price-low-high":E.sort(($,ne)=>$.price-ne.price);break;case"price-high-low":E.sort(($,ne)=>ne.price-$.price);break;case"rating":E.sort(($,ne)=>ne.rating-$.rating);break;case"newest":E.sort(($,ne)=>new Date(ne.lastUpdated).getTime()-new Date($.lastUpdated).getTime());break;case"most-enrolled":E.sort(($,ne)=>ne.enrollmentCount-$.enrollmentCount);break;default:E.sort(($,ne)=>$.isFeatured&&!ne.isFeatured?-1:!$.isFeatured&&ne.isFeatured?1:$.isBestseller&&!ne.isBestseller?-1:!$.isBestseller&&ne.isBestseller?1:ne.rating-$.rating)}return E},[d,y,x,J,u,w,v]),ae=M.useCallback((E,$)=>{s&&s({domain:"courses",name:E,payload:$,timestamp:new Date().toISOString(),context:ye})},[ye,s]),ge=M.useCallback(()=>({category:y||void 0,subcategory:x||void 0,levels:J.levels,languages:J.languages,features:J.features,rating:J.rating,priceRange:J.priceRange,favoritesOnly:w}),[J.features,J.languages,J.levels,J.priceRange,J.rating,y,x,w]),ke=M.useCallback(()=>({page:C,pageSize:K,totalResults:Z.length,sortBy:v,viewMode:F}),[C,Z.length,K,v,F]),ie=()=>{se(E=>{const $=E==="grid"?"list":"grid";return ae("courses_listing_viewmode_changed",{viewMode:$}),$})},me=E=>(E??"").trim().toLowerCase().replace(/\s+/g,"-"),Ie=M.useMemo(()=>{const E=new Map;return o.forEach($=>{const ne=$.category,Ne=$.subcategory,ze=me(ne),Ke=me(Ne);if(!ze)return;E.has(ze)||E.set(ze,new Map);const He=E.get(ze);Ke&&He.set(Ke,(He.get(Ke)??0)+1)}),Array.from(E.entries()).map(([$,ne])=>({id:$,name:$.replace(/-/g," ").replace(/\b\w/g,Ne=>Ne.toUpperCase()),icon:"🎯",subcategories:Array.from(ne.entries()).map(([Ne,ze])=>({id:Ne,name:Ne.replace(/-/g," ").replace(/\b\w/g,Ke=>Ke.toUpperCase()),courseCount:ze}))}))},[o]),Ae=E=>{X(E),j(1),ae("courses_listing_items_per_page_changed",{pageSize:E})},Fe=E=>{const $=ne=>ne.slice().sort().join("|");return $(E.categories)!==$(J.categories)?"category":$(E.subcategories)!==$(J.subcategories)?"subcategory":$(E.levels)!==$(J.levels)?"levels":$(E.languages)!==$(J.languages)?"languages":$(E.features)!==$(J.features)?"features":E.rating!==J.rating?"rating":E.priceRange[0]!==J.priceRange[0]||E.priceRange[1]!==J.priceRange[1]?"priceRange":"features"},ot=E=>{re(E);const $={category:y||void 0,subcategory:x||void 0,levels:E.levels,languages:E.languages,features:E.features,rating:E.rating,priceRange:E.priceRange,favoritesOnly:w};ae("courses_filter_changed",{changedKey:Fe(E),...$})};M.useEffect(()=>{(async()=>{try{if(!t){l(Dl),h(Dl),_(!1);return}_(!0);const $=await fetch(t);if(!$.ok)throw new Error(`Failed to fetch courses from ${t}`);const ne=await $.json();l(ne),h(ne);const ze=ne.map(He=>xS(He.title||"")).filter(He=>!!He).reduce((He,Qt)=>(He[Qt]=(He[Qt]||0)+1,He),{}),Ke=Object.entries(ze).sort((He,Qt)=>Qt[1]-He[1]).slice(0,10).map(([He])=>He);G(Ke)}catch($){console.error("[Courses] Error loading data:",$),l(Dl),h(Dl)}finally{_(!1)}})()},[t]),M.useEffect(()=>{var ne;const $=(ne=new URLSearchParams(window.location.search).get("q"))==null?void 0:ne.trim();if($){D($);const Ne=o.filter(ze=>{var Ke;return ze.title.toLowerCase().includes($.toLowerCase())||((Ke=ze.description)==null?void 0:Ke.toLowerCase().includes($.toLowerCase()))});h(Ne)}},[o]),M.useEffect(()=>{const E=localStorage.getItem("course-favorites");E&&p(new Set(JSON.parse(E)))},[]),M.useEffect(()=>{localStorage.setItem("course-favorites",JSON.stringify(Array.from(u)))},[u]);const gt=E=>{te.allowSaving&&p($=>{const ne=new Set($),Ne=ne.has(E);return Ne?ne.delete(E):ne.add(E),ae(Ne?"course_unfavorited":"course_favorited",{courseId:E}),ne})},Nt=E=>{if(te.maskExternalLinks)return;const $=o.find(ne=>ne.id===E);$!=null&&$.link&&(ae("course_enroll_clicked",{courseId:E}),ae("course_opened",{courseId:E,openedFrom:"listing",openedIn:"new_tab"}),window.open($.link,"_blank","noopener,noreferrer"))};M.useEffect(()=>{ve.current||q||!Z.length&&!o.length||(ae("courses_listing_viewed",{...ge(),...ke()}),ve.current=!0)},[o.length,ae,Z.length,ge,ke,q]);const ct=E=>{const $=me(E);m($===y?"":$),f(""),ae("courses_category_selected",{category:$===y?null:$}),ae("courses_filter_changed",{changedKey:"category",...ge()})},$e=E=>{const $=me(E);f($===x?"":$),ae("courses_subcategory_selected",{subcategory:$===x?null:$}),ae("courses_filter_changed",{changedKey:"subcategory",...ge()})},Lt=()=>{re({categories:[],subcategories:[],priceRange:[0,2e3],levels:[],languages:[],features:[],rating:0}),m(""),f(""),b(!1),D(""),h(o),ae("courses_filters_cleared_all",{})},et=()=>{N(!I)},on=E=>{j(E),ae("courses_listing_page_changed",{page:E,pageSize:K,totalResults:Z.length})},Kt=Z.length===0?0:(C-1)*K+1,It=Math.min(C*K,Z.length),Oa=E=>{if(D(E),!E){h(o),U([]);return}const $=o.filter(Ne=>{var ze;return Ne.title.toLowerCase().includes(E.toLowerCase())||((ze=Ne.description)==null?void 0:ze.toLowerCase().includes(E.toLowerCase()))});h($);const ne=$.map(Ne=>Ne.title).filter((Ne,ze,Ke)=>Ne&&Ne.toLowerCase().includes(E.toLowerCase())&&Ke.indexOf(Ne)===ze).slice(0,5);U(ne),E.trim()&&ae("courses_search_submitted",{query:E,...ge()})};return e.jsxs("div",{className:"min-h-screen bg-gray-50",children:[e.jsx(fS,{onSearchChange:Oa,title:"Courses",description:"Browse and enroll in industry-relevant gaming courses",searchPlaceholder:"Search courses",popularTags:H,generateHref:E=>`/courses?q=${E.toLowerCase().replace(/\s+/g,"+")}`}),e.jsx(ZO,{courses:o,onSearchResults:h}),e.jsxs("main",{className:"max-w-7xl mx-auto sm:px-6 lg:px-8 py-8",children:[e.jsx(gS,{filters:[...y?[{key:"category",label:"Category",value:y.replace(/-/g," "),onRemove:()=>m("")}]:[],...x?[{key:"subcategory",label:"Subcategory",value:x.replace(/-/g," "),onRemove:()=>f("")}]:[],...J.levels.map(E=>({key:"level",label:"",value:E,onRemove:()=>re($=>({...$,levels:$.levels.filter(ne=>ne!==E)}))})),...A?[{key:"search",label:"Search",value:A,onRemove:()=>{D(""),h(o)}}]:[]],onClearAll:Lt}),e.jsxs("div",{className:"flex flex-col lg:flex-row gap-8",children:[e.jsx("div",{className:"block lg:hidden w-full",children:e.jsxs("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:[e.jsx(yS,{data:o.map(E=>E.title),onSelect:E=>{const $=o.filter(ne=>ne.title.toLowerCase().includes(E.toLowerCase()));h($),D(E)},onTyping:E=>{L(!!E),E||(h(o),D(""))}}),e.jsx(YN,{sortBy:v,onFiltersChange:ot,onSortChange:k,onClearFilters:Lt,totalCourses:o.length,filteredCourses:Z.length,categories:Ie,selectedCategory:y,selectedSubcategory:x,filters:J,onCategorySelect:ct,onSubcategorySelect:$e,isMobileFilterOpen:I,toggleMobileFilter:et,enableMobileFilter:a,showFilterName:!S,isMobile:!0})]})}),e.jsx("div",{className:"hidden lg:block lg:w-1/4",children:e.jsx(YN,{filters:J,sortBy:v,onFiltersChange:ot,onSortChange:k,onClearFilters:Lt,totalCourses:o.length,filteredCourses:Z.length,categories:Ie,selectedCategory:y,selectedSubcategory:x,onCategorySelect:ct,onSubcategorySelect:$e,isMobileFilterOpen:I,toggleMobileFilter:et,enableMobileFilter:a,showFilterName:!0})}),e.jsxs("div",{className:"lg:w-3/4",children:[e.jsx(kS,{viewMode:F,onToggleViewMode:ie,selectedItemsPerPage:K,onItemsPerPageChange:Ae,totalCount:Z.length,startIndex:Kt,endIndex:It,title:"All Courses"}),q?e.jsx(mS,{totalColumns:3}):e.jsx(KO,{processedCourses:Z,favorites:u,handleToggleFavorite:gt,handleClearFilters:Lt,itemsPerPage:K,handleEnroll:Nt,currentPage:C,setCurrentPage:on,viewMode:F,userAccess:te})]})]})]})]})};function eH(t,a=[]){let n=[];function r(i,o){const l=g.createContext(o),d=n.length;n=[...n,o];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=n.map(o=>g.createContext(o));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[r,tH(s,...a)]}function tH(...t){const a=t[0];if(t.length===1)return a;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:o}),[o])}};return n.scopeName=a.scopeName,n}function aH(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...n)=>{var r;return(r=a.current)==null?void 0:r.call(a,...n)},[])}var CC=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},nH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],AS=nH.reduce((t,a)=>{const n=Ye(`Primitive.${a}`),r=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{}),SC={exports:{}},G9={};/**
7810
7810
  * @license React
7811
7811
  * use-sync-external-store-shim.production.js
7812
7812
  *
@@ -7822,21 +7822,21 @@ For more information, see https://radix-ui.com/primitives/docs/components/${a.do
7822
7822
  *
7823
7823
  * This source code is licensed under the MIT license found in the
7824
7824
  * LICENSE file in the root directory of this source tree.
7825
- */var QN;function sH(){return QN||(QN=1,process.env.NODE_ENV!=="production"&&function(){function t(m,x){return m===x&&(m!==0||1/m===1/x)||m!==m&&x!==x}function a(m,x){u||s.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var f=x();if(!p){var v=x();i(f,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}v=o({inst:{value:f,getSnapshot:x}});var k=v[0].inst,w=v[1];return d(function(){k.value=f,k.getSnapshot=x,n(k)&&w({inst:k})},[m,f,x]),l(function(){return n(k)&&w({inst:k}),m(function(){n(k)&&w({inst:k})})},[m]),h(f),f}function n(m){var x=m.getSnapshot;m=m.value;try{var f=x();return!i(m,f)}catch{return!0}}function r(m,x){return x()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=M,i=typeof Object.is=="function"?Object.is:t,o=s.useState,l=s.useEffect,d=s.useLayoutEffect,h=s.useDebugValue,u=!1,p=!1,y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:a;W9.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:y,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),W9}process.env.NODE_ENV==="production"?SC.exports=rH():SC.exports=sH();var iH=SC.exports;function oH(){return iH.useSyncExternalStore(cH,()=>!0,()=>!1)}function cH(){return()=>{}}var PS="Avatar",[lH,oZ]=eH(PS),[dH,$P]=lH(PS),UP=g.forwardRef((t,a)=>{const{__scopeAvatar:n,...r}=t,[s,i]=g.useState("idle");return e.jsx(dH,{scope:n,imageLoadingStatus:s,onImageLoadingStatusChange:i,children:e.jsx(AS.span,{...r,ref:a})})});UP.displayName=PS;var GP="AvatarImage",WP=g.forwardRef((t,a)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:s=()=>{},...i}=t,o=$P(GP,n),l=hH(r,i),d=aH(h=>{s(h),o.onImageLoadingStatusChange(h)});return CC(()=>{l!=="idle"&&d(l)},[l,d]),l==="loaded"?e.jsx(AS.img,{...i,ref:a,src:r}):null});WP.displayName=GP;var ZP="AvatarFallback",JP=g.forwardRef((t,a)=>{const{__scopeAvatar:n,delayMs:r,...s}=t,i=$P(ZP,n),[o,l]=g.useState(r===void 0);return g.useEffect(()=>{if(r!==void 0){const d=window.setTimeout(()=>l(!0),r);return()=>window.clearTimeout(d)}},[r]),o&&i.imageLoadingStatus!=="loaded"?e.jsx(AS.span,{...s,ref:a}):null});JP.displayName=ZP;function eL(t,a){return t?a?(t.src!==a&&(t.src=a),t.complete&&t.naturalWidth>0?"loaded":"loading"):"error":"idle"}function hH(t,{referrerPolicy:a,crossOrigin:n}){const r=oH(),s=g.useRef(null),i=r?(s.current||(s.current=new window.Image),s.current):null,[o,l]=g.useState(()=>eL(i,t));return CC(()=>{l(eL(i,t))},[i,t]),CC(()=>{const d=p=>()=>{l(p)};if(!i)return;const h=d("loaded"),u=d("error");return i.addEventListener("load",h),i.addEventListener("error",u),a&&(i.referrerPolicy=a),typeof n=="string"&&(i.crossOrigin=n),()=>{i.removeEventListener("load",h),i.removeEventListener("error",u)}},[i,n,a]),o}var XP=UP,YP=WP,KP=JP;const QP=g.forwardRef(({className:t,...a},n)=>e.jsx(XP,{ref:n,className:ye("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",t),...a}));QP.displayName=XP.displayName;const e_=g.forwardRef(({className:t,...a},n)=>e.jsx(YP,{ref:n,className:ye("aspect-square h-full w-full",t),...a}));e_.displayName=YP.displayName;const t_=g.forwardRef(({className:t,...a},n)=>e.jsx(KP,{ref:n,className:ye("flex h-full w-full items-center justify-center rounded-full bg-muted",t),...a}));t_.displayName=KP.displayName;const uH=Uj("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-yellow-200/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function he({className:t,variant:a,...n}){return e.jsx("div",{className:ye(uH({variant:a}),t),...n})}function tL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function pH(...t){return a=>{let n=!1;const r=t.map(s=>{const i=tL(s,a);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():tL(t[s],null)}}}}var mH=Symbol.for("react.lazy"),qj=g[" use ".trim().toString()];function yH(t){return typeof t=="object"&&t!==null&&"then"in t}function a_(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===mH&&"_payload"in t&&yH(t._payload)}function fH(t){const a=xH(t),n=g.forwardRef((r,s)=>{let{children:i,...o}=r;a_(i)&&typeof qj=="function"&&(i=qj(i._payload));const l=g.Children.toArray(i),d=l.find(kH);if(d){const h=d.props.children,u=l.map(p=>p===d?g.Children.count(h)>1?g.Children.only(null):g.isValidElement(h)?h.props.children:null:p);return e.jsx(a,{...o,ref:s,children:g.isValidElement(h)?g.cloneElement(h,void 0,u):null})}return e.jsx(a,{...o,ref:s,children:i})});return n.displayName=`${t}.Slot`,n}function xH(t){const a=g.forwardRef((n,r)=>{let{children:s,...i}=n;if(a_(s)&&typeof qj=="function"&&(s=qj(s._payload)),g.isValidElement(s)){const o=wH(s),l=vH(i,s.props);return s.type!==g.Fragment&&(l.ref=r?pH(r,o):o),g.cloneElement(s,l)}return g.Children.count(s)>1?g.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var gH=Symbol("radix.slottable");function kH(t){return g.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===gH}function vH(t,a){const n={...a};for(const r in a){const s=t[r],i=a[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...l)=>{const d=i(...l);return s(...l),d}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...t,...n}}function wH(t){var r,s;let a=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=a&&"isReactWarning"in a&&a.isReactWarning;return n?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=a&&"isReactWarning"in a&&a.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var bH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],MH=bH.reduce((t,a)=>{const n=fH(`Primitive.${a}`),r=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{}),jH="Separator",aL="horizontal",CH=["horizontal","vertical"],n_=g.forwardRef((t,a)=>{const{decorative:n,orientation:r=aL,...s}=t,i=SH(r)?r:aL,l=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return e.jsx(MH.div,{"data-orientation":i,...l,...s,ref:a})});n_.displayName=jH;function SH(t){return CH.includes(t)}var r_=n_;const Mj=g.forwardRef(({className:t,orientation:a="horizontal",decorative:n=!0,...r},s)=>e.jsx(r_,{ref:s,decorative:n,orientation:a,className:ye("shrink-0 bg-border",a==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",t),...r}));Mj.displayName=r_.displayName;const NH=({candidateData:t})=>{var l;const[a,n]=M.useState(!1),{profileData:r,first_name:s,last_name:i}=t,o=`${s[0]}${i[0]}`;return e.jsxs("div",{className:"min-h-screen bg-muted/30",children:[e.jsx("header",{className:"bg-card border-b border-border sticky top-0 z-50",children:e.jsx("div",{className:"container mx-auto px-4 py-3",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("a",{href:"/jobs",className:"flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors",children:[e.jsx(bn,{className:"w-5 h-5"}),e.jsx("span",{className:"font-medium",children:"Back to Search"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs(T,{variant:"outline",size:"sm",onClick:()=>n(!a),children:[e.jsx(xa,{className:`w-4 h-4 mr-2 ${a?"fill-accent text-accent":""}`}),a?"Saved":"Save"]}),e.jsxs(T,{variant:"outline",size:"sm",children:[e.jsx(wo,{className:"w-4 h-4 mr-2"}),"Share"]}),e.jsxs(T,{variant:"accent",size:"sm",children:[e.jsx(Ln,{className:"w-4 h-4 mr-2"}),"Contact"]})]})]})})}),e.jsx("div",{className:"bg-gradient-to-r from-primary via-primary/90 to-accent/80 h-32 md:h-48"}),e.jsx("div",{className:"container mx-auto px-4 -mt-16 md:-mt-20 pb-12",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[e.jsx(Q,{className:"overflow-visible",children:e.jsx(ee,{className:"pt-0",children:e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsx("div",{className:"-mt-12 md:-mt-16",children:e.jsxs(QP,{className:"w-28 h-28 md:w-36 md:h-36 border-4 border-card shadow-lg",children:[e.jsx(e_,{src:""}),e.jsx(t_,{className:"bg-gradient-to-br from-accent to-accent/80 text-white text-3xl md:text-4xl font-bold",children:o})]})}),e.jsx("div",{className:"flex-1 pt-2 md:pt-6",children:e.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-foreground",children:r.personalDetails.fullName}),e.jsx("p",{className:"text-lg text-muted-foreground mt-1",children:"Business / Data Analyst"}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 mt-3 text-sm text-muted-foreground",children:[e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(Qe,{className:"w-4 h-4 text-accent"}),r.personalDetails.location]}),e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(oa,{className:"w-4 h-4 text-accent"}),r.personalDetails.nationality]})]})]}),e.jsxs("div",{className:"flex gap-6 text-center",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-2xl font-bold text-accent",children:"15+"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"Years Exp."})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-2xl font-bold text-accent",children:"5"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"Roles"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-2xl font-bold text-accent",children:"3"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"Languages"})]})]})]})})]})})}),e.jsxs(Q,{children:[e.jsx(ce,{children:e.jsxs(ue,{className:"flex items-center gap-2",children:[e.jsx(ic,{className:"w-5 h-5 text-accent"}),"About"]})}),e.jsx(ee,{children:e.jsx("p",{className:"text-muted-foreground leading-relaxed",children:r.personalDetails.summary})})]}),e.jsxs(Q,{children:[e.jsx(ce,{children:e.jsxs(ue,{className:"flex items-center gap-2",children:[e.jsx(Ze,{className:"w-5 h-5 text-accent"}),"Experience"]})}),e.jsx(ee,{className:"space-y-6",children:r.workExperience.map((d,h)=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx("div",{className:"w-12 h-12 rounded-lg bg-muted flex items-center justify-center",children:e.jsx(rt,{className:"w-6 h-6 text-accent"})})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-1",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground",children:d.title}),e.jsx("p",{className:"text-accent font-medium",children:d.company})]}),e.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-muted-foreground whitespace-nowrap",children:[e.jsx(xo,{className:"w-4 h-4"}),d.period]})]}),d.location&&e.jsxs("p",{className:"text-sm text-muted-foreground mt-1 flex items-center gap-1",children:[e.jsx(Qe,{className:"w-3 h-3"}),d.location]}),d.summary&&e.jsx("p",{className:"text-sm text-muted-foreground mt-3 leading-relaxed",children:d.summary}),d.tags&&d.tags.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 mt-3",children:d.tags.map(u=>e.jsx(he,{variant:"secondary",className:"text-xs",children:u},u))})]})]}),h<r.workExperience.length-1&&e.jsx(Mj,{className:"mt-6"})]},d.id))})]}),e.jsxs(Q,{children:[e.jsx(ce,{children:e.jsxs(ue,{className:"flex items-center gap-2",children:[e.jsx(Sn,{className:"w-5 h-5 text-accent"}),"Education"]})}),e.jsx(ee,{className:"space-y-6",children:r.education.map((d,h)=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx("div",{className:"w-12 h-12 rounded-lg bg-muted flex items-center justify-center",children:e.jsx(Sn,{className:"w-6 h-6 text-accent"})})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-semibold text-foreground",children:d.degree}),e.jsx("p",{className:"text-accent font-medium",children:d.institution}),e.jsx(he,{variant:"outline",className:"mt-2 text-xs",children:d.level})]})]}),h<r.education.length-1&&e.jsx(Mj,{className:"mt-6"})]},h))})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs(Q,{className:"sticky top-20",children:[e.jsx(ce,{children:e.jsx(ue,{className:"text-lg",children:"Contact Information"})}),e.jsxs(ee,{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-accent/10 flex items-center justify-center",children:e.jsx(ca,{className:"w-5 h-5 text-accent"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:"Email"}),e.jsx("p",{className:"text-sm font-medium truncate",children:r.personalDetails.email})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-accent/10 flex items-center justify-center",children:e.jsx(In,{className:"w-5 h-5 text-accent"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:"Phone"}),e.jsx("p",{className:"text-sm font-medium",children:r.personalDetails.phone})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-accent/10 flex items-center justify-center",children:e.jsx(Qe,{className:"w-5 h-5 text-accent"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:"Location"}),e.jsx("p",{className:"text-sm font-medium",children:r.personalDetails.location})]})]}),e.jsx(Mj,{}),e.jsxs(T,{variant:"accent",className:"w-full",children:[e.jsx(Ln,{className:"w-4 h-4 mr-2"}),"Send Message"]}),((l=r.resume)==null?void 0:l.url)&&e.jsxs(T,{variant:"outline",className:"w-full",children:[e.jsx(Fc,{className:"w-4 h-4 mr-2"}),"Download Resume"]})]})]}),e.jsxs(Q,{children:[e.jsx(ce,{children:e.jsxs(ue,{className:"flex items-center gap-2 text-lg",children:[e.jsx(na,{className:"w-5 h-5 text-accent"}),"Skills"]})}),e.jsx(ee,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:r.skills.map(d=>e.jsx(he,{variant:"secondary",className:"px-3 py-1",children:d},d))})})]}),e.jsxs(Q,{children:[e.jsx(ce,{children:e.jsxs(ue,{className:"flex items-center gap-2 text-lg",children:[e.jsx(Bc,{className:"w-5 h-5 text-accent"}),"Languages"]})}),e.jsx(ee,{className:"space-y-3",children:r.languages.map(d=>e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"font-medium text-foreground",children:d.name}),e.jsx(he,{variant:"outline",className:"text-xs",children:d.proficiency})]},d.name))})]})]})]})})]})};function nL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function LH(...t){return a=>{let n=!1;const r=t.map(s=>{const i=nL(s,a);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():nL(t[s],null)}}}}function _S(...t){return g.useCallback(LH(...t),t)}function IH(t,a=[]){let n=[];function r(i,o){const l=g.createContext(o),d=n.length;n=[...n,o];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=n.map(o=>g.createContext(o));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[r,AH(s,...a)]}function AH(...t){const a=t[0];if(t.length===1)return a;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:o}),[o])}};return n.scopeName=a.scopeName,n}function rL(t,a,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t==null||t(s),n===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}var NC=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},PH=g[" useInsertionEffect ".trim().toString()]||NC;function _H({prop:t,defaultProp:a,onChange:n=()=>{},caller:r}){const[s,i,o]=RH({defaultProp:a,onChange:n}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,r])}const h=g.useCallback(u=>{var p;if(l){const y=TH(u)?u(t):u;y!==t&&((p=o.current)==null||p.call(o,y))}else i(u)},[l,t,i,o]);return[d,h]}function RH({defaultProp:t,onChange:a}){const[n,r]=g.useState(t),s=g.useRef(n),i=g.useRef(a);return PH(()=>{i.current=a},[a]),g.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function TH(t){return typeof t=="function"}function RS(t){const a=g.useRef({value:t,previous:t});return g.useMemo(()=>(a.current.value!==t&&(a.current.previous=a.current.value,a.current.value=t),a.current.previous),[t])}var DH=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{};function TS(t){const[a,n]=g.useState(void 0);return DH(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,l;if("borderBoxSize"in i){const d=i.borderBoxSize,h=Array.isArray(d)?d[0]:d;o=h.inlineSize,l=h.blockSize}else o=t.offsetWidth,l=t.offsetHeight;n({width:o,height:l})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else n(void 0)},[t]),a}function qH(t,a){return g.useReducer((n,r)=>a[n][r]??n,t)}var s_=t=>{const{present:a,children:n}=t,r=zH(a),s=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),i=_S(r.ref,EH(s));return typeof n=="function"||r.isPresent?g.cloneElement(s,{ref:i}):null};s_.displayName="Presence";function zH(t){const[a,n]=g.useState(),r=g.useRef(null),s=g.useRef(t),i=g.useRef("none"),o=t?"mounted":"unmounted",[l,d]=qH(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const h=ql(r.current);i.current=l==="mounted"?h:"none"},[l]),NC(()=>{const h=r.current,u=s.current;if(u!==t){const y=i.current,m=ql(h);t?d("MOUNT"):m==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(u&&y!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,d]),NC(()=>{if(a){let h;const u=a.ownerDocument.defaultView??window,p=m=>{const f=ql(r.current).includes(CSS.escape(m.animationName));if(m.target===a&&f&&(d("ANIMATION_END"),!s.current)){const v=a.style.animationFillMode;a.style.animationFillMode="forwards",h=u.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=v)})}},y=m=>{m.target===a&&(i.current=ql(r.current))};return a.addEventListener("animationstart",y),a.addEventListener("animationcancel",p),a.addEventListener("animationend",p),()=>{u.clearTimeout(h),a.removeEventListener("animationstart",y),a.removeEventListener("animationcancel",p),a.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[a,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(h=>{r.current=h?getComputedStyle(h):null,n(h)},[])}}function ql(t){return(t==null?void 0:t.animationName)||"none"}function EH(t){var r,s;let a=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=a&&"isReactWarning"in a&&a.isReactWarning;return n?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=a&&"isReactWarning"in a&&a.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var FH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],DS=FH.reduce((t,a)=>{const n=Ye(`Primitive.${a}`),r=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{}),c9="Checkbox",[OH,cZ]=IH(c9),[HH,qS]=OH(c9);function VH(t){const{__scopeCheckbox:a,checked:n,children:r,defaultChecked:s,disabled:i,form:o,name:l,onCheckedChange:d,required:h,value:u="on",internal_do_not_use_render:p}=t,[y,m]=_H({prop:n,defaultProp:s??!1,onChange:d,caller:c9}),[x,f]=g.useState(null),[v,k]=g.useState(null),w=g.useRef(!1),b=x?!!o||!!x.closest("form"):!0,C={checked:y,disabled:i,setChecked:m,control:x,setControl:f,name:l,form:o,value:u,hasConsumerStoppedPropagationRef:w,required:h,defaultChecked:Dn(s)?!1:s,isFormControl:b,bubbleInput:v,setBubbleInput:k};return e.jsx(HH,{scope:a,...C,children:BH(p)?p(C):r})}var i_="CheckboxTrigger",o_=g.forwardRef(({__scopeCheckbox:t,onKeyDown:a,onClick:n,...r},s)=>{const{control:i,value:o,disabled:l,checked:d,required:h,setControl:u,setChecked:p,hasConsumerStoppedPropagationRef:y,isFormControl:m,bubbleInput:x}=qS(i_,t),f=_S(s,u),v=g.useRef(d);return g.useEffect(()=>{const k=i==null?void 0:i.form;if(k){const w=()=>p(v.current);return k.addEventListener("reset",w),()=>k.removeEventListener("reset",w)}},[i,p]),e.jsx(DS.button,{type:"button",role:"checkbox","aria-checked":Dn(d)?"mixed":d,"aria-required":h,"data-state":u_(d),"data-disabled":l?"":void 0,disabled:l,value:o,...r,ref:f,onKeyDown:rL(a,k=>{k.key==="Enter"&&k.preventDefault()}),onClick:rL(n,k=>{p(w=>Dn(w)?!0:!w),x&&m&&(y.current=k.isPropagationStopped(),y.current||k.stopPropagation())})})});o_.displayName=i_;var zS=g.forwardRef((t,a)=>{const{__scopeCheckbox:n,name:r,checked:s,defaultChecked:i,required:o,disabled:l,value:d,onCheckedChange:h,form:u,...p}=t;return e.jsx(VH,{__scopeCheckbox:n,checked:s,defaultChecked:i,disabled:l,required:o,onCheckedChange:h,name:r,form:u,value:d,internal_do_not_use_render:({isFormControl:y})=>e.jsxs(e.Fragment,{children:[e.jsx(o_,{...p,ref:a,__scopeCheckbox:n}),y&&e.jsx(h_,{__scopeCheckbox:n})]})})});zS.displayName=c9;var c_="CheckboxIndicator",l_=g.forwardRef((t,a)=>{const{__scopeCheckbox:n,forceMount:r,...s}=t,i=qS(c_,n);return e.jsx(s_,{present:r||Dn(i.checked)||i.checked===!0,children:e.jsx(DS.span,{"data-state":u_(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:a,style:{pointerEvents:"none",...t.style}})})});l_.displayName=c_;var d_="CheckboxBubbleInput",h_=g.forwardRef(({__scopeCheckbox:t,...a},n)=>{const{control:r,hasConsumerStoppedPropagationRef:s,checked:i,defaultChecked:o,required:l,disabled:d,name:h,value:u,form:p,bubbleInput:y,setBubbleInput:m}=qS(d_,t),x=_S(n,m),f=RS(i),v=TS(r);g.useEffect(()=>{const w=y;if(!w)return;const b=window.HTMLInputElement.prototype,j=Object.getOwnPropertyDescriptor(b,"checked").set,I=!s.current;if(f!==i&&j){const N=new Event("click",{bubbles:I});w.indeterminate=Dn(i),j.call(w,Dn(i)?!1:i),w.dispatchEvent(N)}},[y,f,i,s]);const k=g.useRef(Dn(i)?!1:i);return e.jsx(DS.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??k.current,required:l,disabled:d,name:h,value:u,form:p,...a,tabIndex:-1,ref:x,style:{...a.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});h_.displayName=d_;function BH(t){return typeof t=="function"}function Dn(t){return t==="indeterminate"}function u_(t){return Dn(t)?"indeterminate":t?"checked":"unchecked"}const _t=g.forwardRef(({className:t,...a},n)=>e.jsx(zS,{ref:n,className:ye("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...a,children:e.jsx(l_,{className:ye("flex items-center justify-center text-current"),children:e.jsx(Qo,{className:"h-4 w-4"})})}));_t.displayName=zS.displayName;const $H=({company:t,displayName:a,openRolesCount:n,groupMembersCount:r,isGroup:s=!1,viewMode:i="list",compareId:o,compareSelected:l=!1,compareDisabled:d=!1,onToggleCompare:h,isFollowing:u,followLoading:p=!1,followDisabled:y=!1,onToggleFollow:m,onFollowAction:x,isSaved:f,saveLoading:v=!1,saveDisabled:k=!1,onToggleSave:w,onSaveAction:b})=>{var ae,fe,we,J,ne,ke,ge;const C=i==="grid",j=u??t.isFollowing??!1,I=y||p,N=j?"Unfollow Company":"Follow Company",S=t.isSaved,L=k||v,q=S?"Remove from Saved":"Save Company",_=t.trustAndCompliance.licenses.length+t.trustAndCompliance.certifications.length+t.trustAndCompliance.awards.length,A=((ae=t.group)==null?void 0:ae.intelligenceProfile)??t.signalsAndInsights,D=Array.isArray(t.jobs.openRoles)?t.jobs.openRoles.length:t.jobs.openRoles,H=n??D,G=H>0,V=((fe=t.group)==null?void 0:fe.name)??t.groupName??t.group_name,$=((we=t.group)==null?void 0:we.slug)??t.groupSlug??t.group_slug??((J=t.group)==null?void 0:J.id)??t.groupId??t.group_id,F=se=>{switch(se){case"Operator":return"bg-blue-500/10 text-blue-600 border-blue-500/20";case"Game Provider":return"bg-purple-500/10 text-purple-600 border-purple-500/20";case"Platform Provider":return"bg-emerald-500/10 text-emerald-600 border-emerald-500/20";case"Affiliate":return"bg-orange-500/10 text-orange-600 border-orange-500/20";case"Payments":return"bg-cyan-500/10 text-cyan-600 border-cyan-500/20";default:return"bg-muted text-muted-foreground"}},re=se=>{var me,Ie,Ae;if(typeof se=="string")return se;if(typeof se=="object"&&se!==null){const Fe=se;return Fe.title??((me=Fe.tag)==null?void 0:me.title)??((Ie=Fe.tag)==null?void 0:Ie.name)??((Ae=Fe.tag)==null?void 0:Ae.slug)??null}return null},K=(ne=t.overview.headquarters)==null?void 0:ne.city,X=(ke=t.overview.headquarters)==null?void 0:ke.country,Z=()=>{const se=!j;m==null||m(t.id,se),x==null||x({companyId:t.id,companySlug:t.slug,action:se?"follow":"unfollow"})},le=()=>{const se=!S;w==null||w(t.id,se),b==null||b({companyId:t.id,companySlug:t.slug,companyName:t.name,action:se?"save":"unsave"})};return e.jsx(Q,{className:`group hover:shadow-lg transition-all duration-300 border-border/50 hover:border-accent/30 overflow-hidden ${C?"h-full":""}`,children:e.jsx(ee,{className:`p-5 ${C?"flex h-full flex-col":""}`,children:e.jsxs("div",{className:`flex gap-4 ${C?"flex-col":""}`,children:[e.jsx("div",{className:"w-16 h-16 rounded-xl bg-gradient-to-br from-primary/10 to-accent/10 flex items-center justify-center flex-shrink-0 border border-border/50",children:e.jsx(rt,{className:"w-8 h-8 text-primary"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:`mb-2 flex items-start ${C?"flex-col gap-3":"justify-between gap-2"}`,children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("a",{href:`/companies/${t.slug}`,className:"font-semibold text-foreground hover:text-accent transition-colors text-lg",children:a??t.name}),t.claimedStatus==="claimed"&&e.jsx(tt,{className:"w-4 h-4 text-accent flex-shrink-0"})]}),e.jsxs("div",{className:"flex items-center gap-3 text-sm text-muted-foreground mt-0.5",children:[(K||X)&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Qe,{className:"w-3.5 h-3.5"}),[K,X].filter(Boolean).join(", ")]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(mt,{className:"w-3.5 h-3.5"}),t.overview.employeeRange]})]})]}),e.jsxs("div",{className:`flex flex-col gap-2 ${C?"items-start":"items-end"}`,children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(_t,{id:`compare-${o??t.id}`,checked:l,disabled:d,onCheckedChange:()=>h==null?void 0:h(o??t.id),"aria-label":`Compare ${a??t.name}`}),e.jsx("label",{htmlFor:`compare-${o??t.id}`,className:`text-xs ${d?"text-muted-foreground":"text-foreground"} cursor-pointer`,children:"Compare"})]}),e.jsxs("div",{className:`flex flex-wrap gap-2 ${C?"justify-start":"justify-end"}`,children:[e.jsxs(T,{variant:S?"secondary":"outline",size:"sm",className:"flex-shrink-0 gap-2 opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity",onClick:le,disabled:L,"aria-label":`${q} ${a??t.name}`,"aria-pressed":S,"aria-busy":v,title:q,children:[v?e.jsx(at,{className:"h-4 w-4 animate-spin"}):e.jsx(xa,{className:`h-4 w-4 ${S?"fill-current":"fill-transparent"}`}),v?"Loading":S?"Saved":"Save"]}),e.jsxs(T,{variant:j?"secondary":"outline",size:"sm",className:"flex-shrink-0 gap-2 opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity",onClick:Z,disabled:I,"aria-label":`${N} ${a??t.name}`,"aria-pressed":j,"aria-busy":p,title:N,children:[p?e.jsx(at,{className:"h-4 w-4 animate-spin"}):j?e.jsx(tt,{className:"h-4 w-4"}):e.jsx(Nn,{className:"h-4 w-4"}),p?"Loading":j?"Following":"Follow"]})]})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-1.5 mb-3",children:[e.jsx(he,{className:`${F(t.companyType)} border text-xs`,children:t.companyType}),s&&e.jsxs(he,{variant:"outline",className:"text-xs",children:["Group (",r??1,")"]}),V&&!s&&e.jsx("a",{href:$?`/groups/${$}`:"/groups",children:e.jsxs(he,{variant:"outline",className:"text-xs",children:["Part of ",V]})}),t.classification.verticals.slice(0,2).map(se=>e.jsx(he,{variant:"secondary",className:"text-xs",children:se},se)),G&&e.jsxs(he,{className:"bg-gaming-success/10 text-gaming-success border-gaming-success/20 border text-xs",children:[e.jsx(Ze,{className:"w-3 h-3 mr-1"}),"Hiring (",H,")"]})]}),e.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 mb-3",children:t.overview.shortDescription}),e.jsx("div",{className:"flex flex-wrap gap-1.5 mb-3",children:(ge=t.classification.tags)==null?void 0:ge.map(re).filter(se=>!!se).slice(0,4).map(se=>e.jsxs("span",{className:"text-xs px-2 py-0.5 rounded-full bg-secondary text-secondary-foreground",children:["#",se]},se))}),e.jsxs("div",{className:"flex items-center justify-between pt-3 border-t border-border/50",children:[e.jsxs("div",{className:"flex items-center gap-4 text-xs text-muted-foreground",children:[_>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(An,{className:"w-3.5 h-3.5 text-gaming-success"}),_," trust signals"]}),A.followsCount>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(jt,{className:"w-3.5 h-3.5 text-gaming-gold"}),A.followsCount.toLocaleString()," followers"]}),A.hiringIntensity==="High"&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Pa,{className:"w-3.5 h-3.5 text-accent"}),"High hiring"]})]}),e.jsx("a",{href:`/companies/${t.slug}`,children:e.jsx(T,{variant:"ghost",size:"sm",className:"text-accent hover:text-accent",children:"View Profile →"})})]})]})]})})})};function sL(t,[a,n]){return Math.min(n,Math.max(a,t))}function ht(t,a,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t==null||t(s),n===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}function p_(t,a=[]){let n=[];function r(i,o){const l=g.createContext(o),d=n.length;n=[...n,o];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=n.map(o=>g.createContext(o));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[r,UH(s,...a)]}function UH(...t){const a=t[0];if(t.length===1)return a;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:o}),[o])}};return n.scopeName=a.scopeName,n}function iL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function GH(...t){return a=>{let n=!1;const r=t.map(s=>{const i=iL(s,a);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():iL(t[s],null)}}}}function ua(...t){return g.useCallback(GH(...t),t)}function WH(t){const a=t+"CollectionProvider",[n,r]=p_(a),[s,i]=n(a,{collectionRef:{current:null},itemMap:new Map}),o=f=>{const{scope:v,children:k}=f,w=M.useRef(null),b=M.useRef(new Map).current;return e.jsx(s,{scope:v,itemMap:b,collectionRef:w,children:k})};o.displayName=a;const l=t+"CollectionSlot",d=Ye(l),h=M.forwardRef((f,v)=>{const{scope:k,children:w}=f,b=i(l,k),C=ua(v,b.collectionRef);return e.jsx(d,{ref:C,children:w})});h.displayName=l;const u=t+"CollectionItemSlot",p="data-radix-collection-item",y=Ye(u),m=M.forwardRef((f,v)=>{const{scope:k,children:w,...b}=f,C=M.useRef(null),j=ua(v,C),I=i(u,k);return M.useEffect(()=>(I.itemMap.set(C,{ref:C,...b}),()=>void I.itemMap.delete(C))),e.jsx(y,{[p]:"",ref:j,children:w})});m.displayName=u;function x(f){const v=i(t+"CollectionConsumer",f);return M.useCallback(()=>{const w=v.collectionRef.current;if(!w)return[];const b=Array.from(w.querySelectorAll(`[${p}]`));return Array.from(v.itemMap.values()).sort((I,N)=>b.indexOf(I.ref.current)-b.indexOf(N.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:o,Slot:h,ItemSlot:m},x,r]}var ZH=g.createContext(void 0);function JH(t){const a=g.useContext(ZH);return t||a||"ltr"}var Da=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},XH=g[" useId ".trim().toString()]||(()=>{}),YH=0;function ES(t){const[a,n]=g.useState(XH());return Da(()=>{n(r=>r??String(YH++))},[t]),a?`radix-${a}`:""}const KH=["top","right","bottom","left"],En=Math.min,Bt=Math.max,zj=Math.round,zl=Math.floor,Ra=t=>({x:t,y:t}),QH={left:"right",right:"left",bottom:"top",top:"bottom"},eV={start:"end",end:"start"};function LC(t,a,n){return Bt(t,En(a,n))}function Qa(t,a){return typeof t=="function"?t(a):t}function en(t){return t.split("-")[0]}function wc(t){return t.split("-")[1]}function FS(t){return t==="x"?"y":"x"}function OS(t){return t==="y"?"height":"width"}const tV=new Set(["top","bottom"]);function Ia(t){return tV.has(en(t))?"y":"x"}function HS(t){return FS(Ia(t))}function aV(t,a,n){n===void 0&&(n=!1);const r=wc(t),s=HS(t),i=OS(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return a.reference[i]>a.floating[i]&&(o=Ej(o)),[o,Ej(o)]}function nV(t){const a=Ej(t);return[IC(t),a,IC(a)]}function IC(t){return t.replace(/start|end/g,a=>eV[a])}const oL=["left","right"],cL=["right","left"],rV=["top","bottom"],sV=["bottom","top"];function iV(t,a,n){switch(t){case"top":case"bottom":return n?a?cL:oL:a?oL:cL;case"left":case"right":return a?rV:sV;default:return[]}}function oV(t,a,n,r){const s=wc(t);let i=iV(en(t),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),a&&(i=i.concat(i.map(IC)))),i}function Ej(t){return t.replace(/left|right|bottom|top/g,a=>QH[a])}function cV(t){return{top:0,right:0,bottom:0,left:0,...t}}function m_(t){return typeof t!="number"?cV(t):{top:t,right:t,bottom:t,left:t}}function Fj(t){const{x:a,y:n,width:r,height:s}=t;return{width:r,height:s,top:n,left:a,right:a+r,bottom:n+s,x:a,y:n}}function lL(t,a,n){let{reference:r,floating:s}=t;const i=Ia(a),o=HS(a),l=OS(o),d=en(a),h=i==="y",u=r.x+r.width/2-s.width/2,p=r.y+r.height/2-s.height/2,y=r[l]/2-s[l]/2;let m;switch(d){case"top":m={x:u,y:r.y-s.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:p};break;case"left":m={x:r.x-s.width,y:p};break;default:m={x:r.x,y:r.y}}switch(wc(a)){case"start":m[o]-=y*(n&&h?-1:1);break;case"end":m[o]+=y*(n&&h?-1:1);break}return m}const lV=async(t,a,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,l=i.filter(Boolean),d=await(o.isRTL==null?void 0:o.isRTL(a));let h=await o.getElementRects({reference:t,floating:a,strategy:s}),{x:u,y:p}=lL(h,r,d),y=r,m={},x=0;for(let f=0;f<l.length;f++){const{name:v,fn:k}=l[f],{x:w,y:b,data:C,reset:j}=await k({x:u,y:p,initialPlacement:r,placement:y,strategy:s,middlewareData:m,rects:h,platform:o,elements:{reference:t,floating:a}});u=w??u,p=b??p,m={...m,[v]:{...m[v],...C}},j&&x<=50&&(x++,typeof j=="object"&&(j.placement&&(y=j.placement),j.rects&&(h=j.rects===!0?await o.getElementRects({reference:t,floating:a,strategy:s}):j.rects),{x:u,y:p}=lL(h,y,d)),f=-1)}return{x:u,y:p,placement:y,strategy:s,middlewareData:m}};async function xl(t,a){var n;a===void 0&&(a={});const{x:r,y:s,platform:i,rects:o,elements:l,strategy:d}=t,{boundary:h="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:y=!1,padding:m=0}=Qa(a,t),x=m_(m),v=l[y?p==="floating"?"reference":"floating":p],k=Fj(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:h,rootBoundary:u,strategy:d})),w=p==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),C=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},j=Fj(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:b,strategy:d}):w);return{top:(k.top-j.top+x.top)/C.y,bottom:(j.bottom-k.bottom+x.bottom)/C.y,left:(k.left-j.left+x.left)/C.x,right:(j.right-k.right+x.right)/C.x}}const dV=t=>({name:"arrow",options:t,async fn(a){const{x:n,y:r,placement:s,rects:i,platform:o,elements:l,middlewareData:d}=a,{element:h,padding:u=0}=Qa(t,a)||{};if(h==null)return{};const p=m_(u),y={x:n,y:r},m=HS(s),x=OS(m),f=await o.getDimensions(h),v=m==="y",k=v?"top":"left",w=v?"bottom":"right",b=v?"clientHeight":"clientWidth",C=i.reference[x]+i.reference[m]-y[m]-i.floating[x],j=y[m]-i.reference[m],I=await(o.getOffsetParent==null?void 0:o.getOffsetParent(h));let N=I?I[b]:0;(!N||!await(o.isElement==null?void 0:o.isElement(I)))&&(N=l.floating[b]||i.floating[x]);const S=C/2-j/2,L=N/2-f[x]/2-1,q=En(p[k],L),_=En(p[w],L),A=q,D=N-f[x]-_,H=N/2-f[x]/2+S,G=LC(A,H,D),V=!d.arrow&&wc(s)!=null&&H!==G&&i.reference[x]/2-(H<A?q:_)-f[x]/2<0,$=V?H<A?H-A:H-D:0;return{[m]:y[m]+$,data:{[m]:G,centerOffset:H-G-$,...V&&{alignmentOffset:$}},reset:V}}}),hV=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(a){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:l,platform:d,elements:h}=a,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:y,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:f=!0,...v}=Qa(t,a);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const k=en(s),w=Ia(l),b=en(l)===l,C=await(d.isRTL==null?void 0:d.isRTL(h.floating)),j=y||(b||!f?[Ej(l)]:nV(l)),I=x!=="none";!y&&I&&j.push(...oV(l,f,x,C));const N=[l,...j],S=await xl(a,v),L=[];let q=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&L.push(S[k]),p){const H=aV(s,o,C);L.push(S[H[0]],S[H[1]])}if(q=[...q,{placement:s,overflows:L}],!L.every(H=>H<=0)){var _,A;const H=(((_=i.flip)==null?void 0:_.index)||0)+1,G=N[H];if(G&&(!(p==="alignment"?w!==Ia(G):!1)||q.every(F=>Ia(F.placement)===w?F.overflows[0]>0:!0)))return{data:{index:H,overflows:q},reset:{placement:G}};let V=(A=q.filter($=>$.overflows[0]<=0).sort(($,F)=>$.overflows[1]-F.overflows[1])[0])==null?void 0:A.placement;if(!V)switch(m){case"bestFit":{var D;const $=(D=q.filter(F=>{if(I){const re=Ia(F.placement);return re===w||re==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(re=>re>0).reduce((re,K)=>re+K,0)]).sort((F,re)=>F[1]-re[1])[0])==null?void 0:D[0];$&&(V=$);break}case"initialPlacement":V=l;break}if(s!==V)return{reset:{placement:V}}}return{}}}};function dL(t,a){return{top:t.top-a.height,right:t.right-a.width,bottom:t.bottom-a.height,left:t.left-a.width}}function hL(t){return KH.some(a=>t[a]>=0)}const uV=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(a){const{rects:n}=a,{strategy:r="referenceHidden",...s}=Qa(t,a);switch(r){case"referenceHidden":{const i=await xl(a,{...s,elementContext:"reference"}),o=dL(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:hL(o)}}}case"escaped":{const i=await xl(a,{...s,altBoundary:!0}),o=dL(i,n.floating);return{data:{escapedOffsets:o,escaped:hL(o)}}}default:return{}}}}},y_=new Set(["left","top"]);async function pV(t,a){const{placement:n,platform:r,elements:s}=t,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=en(n),l=wc(n),d=Ia(n)==="y",h=y_.has(o)?-1:1,u=i&&d?-1:1,p=Qa(a,t);let{mainAxis:y,crossAxis:m,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof x=="number"&&(m=l==="end"?x*-1:x),d?{x:m*u,y:y*h}:{x:y*h,y:m*u}}const mV=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(a){var n,r;const{x:s,y:i,placement:o,middlewareData:l}=a,d=await pV(a,t);return o===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:s+d.x,y:i+d.y,data:{...d,placement:o}}}}},yV=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(a){const{x:n,y:r,placement:s}=a,{mainAxis:i=!0,crossAxis:o=!1,limiter:l={fn:v=>{let{x:k,y:w}=v;return{x:k,y:w}}},...d}=Qa(t,a),h={x:n,y:r},u=await xl(a,d),p=Ia(en(s)),y=FS(p);let m=h[y],x=h[p];if(i){const v=y==="y"?"top":"left",k=y==="y"?"bottom":"right",w=m+u[v],b=m-u[k];m=LC(w,m,b)}if(o){const v=p==="y"?"top":"left",k=p==="y"?"bottom":"right",w=x+u[v],b=x-u[k];x=LC(w,x,b)}const f=l.fn({...a,[y]:m,[p]:x});return{...f,data:{x:f.x-n,y:f.y-r,enabled:{[y]:i,[p]:o}}}}}},fV=function(t){return t===void 0&&(t={}),{options:t,fn(a){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=a,{offset:l=0,mainAxis:d=!0,crossAxis:h=!0}=Qa(t,a),u={x:n,y:r},p=Ia(s),y=FS(p);let m=u[y],x=u[p];const f=Qa(l,a),v=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(d){const b=y==="y"?"height":"width",C=i.reference[y]-i.floating[b]+v.mainAxis,j=i.reference[y]+i.reference[b]-v.mainAxis;m<C?m=C:m>j&&(m=j)}if(h){var k,w;const b=y==="y"?"width":"height",C=y_.has(en(s)),j=i.reference[p]-i.floating[b]+(C&&((k=o.offset)==null?void 0:k[p])||0)+(C?0:v.crossAxis),I=i.reference[p]+i.reference[b]+(C?0:((w=o.offset)==null?void 0:w[p])||0)-(C?v.crossAxis:0);x<j?x=j:x>I&&(x=I)}return{[y]:m,[p]:x}}}},xV=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(a){var n,r;const{placement:s,rects:i,platform:o,elements:l}=a,{apply:d=()=>{},...h}=Qa(t,a),u=await xl(a,h),p=en(s),y=wc(s),m=Ia(s)==="y",{width:x,height:f}=i.floating;let v,k;p==="top"||p==="bottom"?(v=p,k=y===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(k=p,v=y==="end"?"top":"bottom");const w=f-u.top-u.bottom,b=x-u.left-u.right,C=En(f-u[v],w),j=En(x-u[k],b),I=!a.middlewareData.shift;let N=C,S=j;if((n=a.middlewareData.shift)!=null&&n.enabled.x&&(S=b),(r=a.middlewareData.shift)!=null&&r.enabled.y&&(N=w),I&&!y){const q=Bt(u.left,0),_=Bt(u.right,0),A=Bt(u.top,0),D=Bt(u.bottom,0);m?S=x-2*(q!==0||_!==0?q+_:Bt(u.left,u.right)):N=f-2*(A!==0||D!==0?A+D:Bt(u.top,u.bottom))}await d({...a,availableWidth:S,availableHeight:N});const L=await o.getDimensions(l.floating);return x!==L.width||f!==L.height?{reset:{rects:!0}}:{}}}};function l9(){return typeof window<"u"}function bc(t){return f_(t)?(t.nodeName||"").toLowerCase():"#document"}function Jt(t){var a;return(t==null||(a=t.ownerDocument)==null?void 0:a.defaultView)||window}function Fa(t){var a;return(a=(f_(t)?t.ownerDocument:t.document)||window.document)==null?void 0:a.documentElement}function f_(t){return l9()?t instanceof Node||t instanceof Jt(t).Node:!1}function ka(t){return l9()?t instanceof Element||t instanceof Jt(t).Element:!1}function qa(t){return l9()?t instanceof HTMLElement||t instanceof Jt(t).HTMLElement:!1}function uL(t){return!l9()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Jt(t).ShadowRoot}const gV=new Set(["inline","contents"]);function bl(t){const{overflow:a,overflowX:n,overflowY:r,display:s}=va(t);return/auto|scroll|overlay|hidden|clip/.test(a+r+n)&&!gV.has(s)}const kV=new Set(["table","td","th"]);function vV(t){return kV.has(bc(t))}const wV=[":popover-open",":modal"];function d9(t){return wV.some(a=>{try{return t.matches(a)}catch{return!1}})}const bV=["transform","translate","scale","rotate","perspective"],MV=["transform","translate","scale","rotate","perspective","filter"],jV=["paint","layout","strict","content"];function VS(t){const a=BS(),n=ka(t)?va(t):t;return bV.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!a&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!a&&(n.filter?n.filter!=="none":!1)||MV.some(r=>(n.willChange||"").includes(r))||jV.some(r=>(n.contain||"").includes(r))}function CV(t){let a=Fn(t);for(;qa(a)&&!gc(a);){if(VS(a))return a;if(d9(a))return null;a=Fn(a)}return null}function BS(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const SV=new Set(["html","body","#document"]);function gc(t){return SV.has(bc(t))}function va(t){return Jt(t).getComputedStyle(t)}function h9(t){return ka(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Fn(t){if(bc(t)==="html")return t;const a=t.assignedSlot||t.parentNode||uL(t)&&t.host||Fa(t);return uL(a)?a.host:a}function x_(t){const a=Fn(t);return gc(a)?t.ownerDocument?t.ownerDocument.body:t.body:qa(a)&&bl(a)?a:x_(a)}function gl(t,a,n){var r;a===void 0&&(a=[]),n===void 0&&(n=!0);const s=x_(t),i=s===((r=t.ownerDocument)==null?void 0:r.body),o=Jt(s);if(i){const l=AC(o);return a.concat(o,o.visualViewport||[],bl(s)?s:[],l&&n?gl(l):[])}return a.concat(s,gl(s,[],n))}function AC(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function g_(t){const a=va(t);let n=parseFloat(a.width)||0,r=parseFloat(a.height)||0;const s=qa(t),i=s?t.offsetWidth:n,o=s?t.offsetHeight:r,l=zj(n)!==i||zj(r)!==o;return l&&(n=i,r=o),{width:n,height:r,$:l}}function $S(t){return ka(t)?t:t.contextElement}function hc(t){const a=$S(t);if(!qa(a))return Ra(1);const n=a.getBoundingClientRect(),{width:r,height:s,$:i}=g_(a);let o=(i?zj(n.width):n.width)/r,l=(i?zj(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const NV=Ra(0);function k_(t){const a=Jt(t);return!BS()||!a.visualViewport?NV:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function LV(t,a,n){return a===void 0&&(a=!1),!n||a&&n!==Jt(t)?!1:a}function _o(t,a,n,r){a===void 0&&(a=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),i=$S(t);let o=Ra(1);a&&(r?ka(r)&&(o=hc(r)):o=hc(t));const l=LV(i,n,r)?k_(i):Ra(0);let d=(s.left+l.x)/o.x,h=(s.top+l.y)/o.y,u=s.width/o.x,p=s.height/o.y;if(i){const y=Jt(i),m=r&&ka(r)?Jt(r):r;let x=y,f=AC(x);for(;f&&r&&m!==x;){const v=hc(f),k=f.getBoundingClientRect(),w=va(f),b=k.left+(f.clientLeft+parseFloat(w.paddingLeft))*v.x,C=k.top+(f.clientTop+parseFloat(w.paddingTop))*v.y;d*=v.x,h*=v.y,u*=v.x,p*=v.y,d+=b,h+=C,x=Jt(f),f=AC(x)}}return Fj({width:u,height:p,x:d,y:h})}function u9(t,a){const n=h9(t).scrollLeft;return a?a.left+n:_o(Fa(t)).left+n}function v_(t,a){const n=t.getBoundingClientRect(),r=n.left+a.scrollLeft-u9(t,n),s=n.top+a.scrollTop;return{x:r,y:s}}function IV(t){let{elements:a,rect:n,offsetParent:r,strategy:s}=t;const i=s==="fixed",o=Fa(r),l=a?d9(a.floating):!1;if(r===o||l&&i)return n;let d={scrollLeft:0,scrollTop:0},h=Ra(1);const u=Ra(0),p=qa(r);if((p||!p&&!i)&&((bc(r)!=="body"||bl(o))&&(d=h9(r)),qa(r))){const m=_o(r);h=hc(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}const y=o&&!p&&!i?v_(o,d):Ra(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-d.scrollLeft*h.x+u.x+y.x,y:n.y*h.y-d.scrollTop*h.y+u.y+y.y}}function AV(t){return Array.from(t.getClientRects())}function PV(t){const a=Fa(t),n=h9(t),r=t.ownerDocument.body,s=Bt(a.scrollWidth,a.clientWidth,r.scrollWidth,r.clientWidth),i=Bt(a.scrollHeight,a.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+u9(t);const l=-n.scrollTop;return va(r).direction==="rtl"&&(o+=Bt(a.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:l}}const pL=25;function _V(t,a){const n=Jt(t),r=Fa(t),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,l=0,d=0;if(s){i=s.width,o=s.height;const u=BS();(!u||u&&a==="fixed")&&(l=s.offsetLeft,d=s.offsetTop)}const h=u9(r);if(h<=0){const u=r.ownerDocument,p=u.body,y=getComputedStyle(p),m=u.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,x=Math.abs(r.clientWidth-p.clientWidth-m);x<=pL&&(i-=x)}else h<=pL&&(i+=h);return{width:i,height:o,x:l,y:d}}const RV=new Set(["absolute","fixed"]);function TV(t,a){const n=_o(t,!0,a==="fixed"),r=n.top+t.clientTop,s=n.left+t.clientLeft,i=qa(t)?hc(t):Ra(1),o=t.clientWidth*i.x,l=t.clientHeight*i.y,d=s*i.x,h=r*i.y;return{width:o,height:l,x:d,y:h}}function mL(t,a,n){let r;if(a==="viewport")r=_V(t,n);else if(a==="document")r=PV(Fa(t));else if(ka(a))r=TV(a,n);else{const s=k_(t);r={x:a.x-s.x,y:a.y-s.y,width:a.width,height:a.height}}return Fj(r)}function w_(t,a){const n=Fn(t);return n===a||!ka(n)||gc(n)?!1:va(n).position==="fixed"||w_(n,a)}function DV(t,a){const n=a.get(t);if(n)return n;let r=gl(t,[],!1).filter(l=>ka(l)&&bc(l)!=="body"),s=null;const i=va(t).position==="fixed";let o=i?Fn(t):t;for(;ka(o)&&!gc(o);){const l=va(o),d=VS(o);!d&&l.position==="fixed"&&(s=null),(i?!d&&!s:!d&&l.position==="static"&&!!s&&RV.has(s.position)||bl(o)&&!d&&w_(t,o))?r=r.filter(u=>u!==o):s=l,o=Fn(o)}return a.set(t,r),r}function qV(t){let{element:a,boundary:n,rootBoundary:r,strategy:s}=t;const o=[...n==="clippingAncestors"?d9(a)?[]:DV(a,this._c):[].concat(n),r],l=o[0],d=o.reduce((h,u)=>{const p=mL(a,u,s);return h.top=Bt(p.top,h.top),h.right=En(p.right,h.right),h.bottom=En(p.bottom,h.bottom),h.left=Bt(p.left,h.left),h},mL(a,l,s));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function zV(t){const{width:a,height:n}=g_(t);return{width:a,height:n}}function EV(t,a,n){const r=qa(a),s=Fa(a),i=n==="fixed",o=_o(t,!0,i,a);let l={scrollLeft:0,scrollTop:0};const d=Ra(0);function h(){d.x=u9(s)}if(r||!r&&!i)if((bc(a)!=="body"||bl(s))&&(l=h9(a)),r){const m=_o(a,!0,i,a);d.x=m.x+a.clientLeft,d.y=m.y+a.clientTop}else s&&h();i&&!r&&s&&h();const u=s&&!r&&!i?v_(s,l):Ra(0),p=o.left+l.scrollLeft-d.x-u.x,y=o.top+l.scrollTop-d.y-u.y;return{x:p,y,width:o.width,height:o.height}}function Z9(t){return va(t).position==="static"}function yL(t,a){if(!qa(t)||va(t).position==="fixed")return null;if(a)return a(t);let n=t.offsetParent;return Fa(t)===n&&(n=n.ownerDocument.body),n}function b_(t,a){const n=Jt(t);if(d9(t))return n;if(!qa(t)){let s=Fn(t);for(;s&&!gc(s);){if(ka(s)&&!Z9(s))return s;s=Fn(s)}return n}let r=yL(t,a);for(;r&&vV(r)&&Z9(r);)r=yL(r,a);return r&&gc(r)&&Z9(r)&&!VS(r)?n:r||CV(t)||n}const FV=async function(t){const a=this.getOffsetParent||b_,n=this.getDimensions,r=await n(t.floating);return{reference:EV(t.reference,await a(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function OV(t){return va(t).direction==="rtl"}const HV={convertOffsetParentRelativeRectToViewportRelativeRect:IV,getDocumentElement:Fa,getClippingRect:qV,getOffsetParent:b_,getElementRects:FV,getClientRects:AV,getDimensions:zV,getScale:hc,isElement:ka,isRTL:OV};function M_(t,a){return t.x===a.x&&t.y===a.y&&t.width===a.width&&t.height===a.height}function VV(t,a){let n=null,r;const s=Fa(t);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function o(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),i();const h=t.getBoundingClientRect(),{left:u,top:p,width:y,height:m}=h;if(l||a(),!y||!m)return;const x=zl(p),f=zl(s.clientWidth-(u+y)),v=zl(s.clientHeight-(p+m)),k=zl(u),b={rootMargin:-x+"px "+-f+"px "+-v+"px "+-k+"px",threshold:Bt(0,En(1,d))||1};let C=!0;function j(I){const N=I[0].intersectionRatio;if(N!==d){if(!C)return o();N?o(!1,N):r=setTimeout(()=>{o(!1,1e-7)},1e3)}N===1&&!M_(h,t.getBoundingClientRect())&&o(),C=!1}try{n=new IntersectionObserver(j,{...b,root:s.ownerDocument})}catch{n=new IntersectionObserver(j,b)}n.observe(t)}return o(!0),i}function BV(t,a,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,h=$S(t),u=s||i?[...h?gl(h):[],...gl(a)]:[];u.forEach(k=>{s&&k.addEventListener("scroll",n,{passive:!0}),i&&k.addEventListener("resize",n)});const p=h&&l?VV(h,n):null;let y=-1,m=null;o&&(m=new ResizeObserver(k=>{let[w]=k;w&&w.target===h&&m&&(m.unobserve(a),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(a)})),n()}),h&&!d&&m.observe(h),m.observe(a));let x,f=d?_o(t):null;d&&v();function v(){const k=_o(t);f&&!M_(f,k)&&n(),f=k,x=requestAnimationFrame(v)}return n(),()=>{var k;u.forEach(w=>{s&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),p==null||p(),(k=m)==null||k.disconnect(),m=null,d&&cancelAnimationFrame(x)}}const $V=mV,UV=yV,GV=hV,WV=xV,ZV=uV,fL=dV,JV=fV,XV=(t,a,n)=>{const r=new Map,s={platform:HV,...n},i={...s.platform,_c:r};return lV(t,a,{...s,platform:i})};var YV=typeof document<"u",KV=function(){},jj=YV?M.useLayoutEffect:KV;function Oj(t,a){if(t===a)return!0;if(typeof t!=typeof a)return!1;if(typeof t=="function"&&t.toString()===a.toString())return!0;let n,r,s;if(t&&a&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==a.length)return!1;for(r=n;r--!==0;)if(!Oj(t[r],a[r]))return!1;return!0}if(s=Object.keys(t),n=s.length,n!==Object.keys(a).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(a,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&t.$$typeof)&&!Oj(t[i],a[i]))return!1}return!0}return t!==t&&a!==a}function j_(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function xL(t,a){const n=j_(t);return Math.round(a*n)/n}function J9(t){const a=g.useRef(t);return jj(()=>{a.current=t}),a}function QV(t){t===void 0&&(t={});const{placement:a="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:l=!0,whileElementsMounted:d,open:h}=t,[u,p]=g.useState({x:0,y:0,strategy:n,placement:a,middlewareData:{},isPositioned:!1}),[y,m]=g.useState(r);Oj(y,r)||m(r);const[x,f]=g.useState(null),[v,k]=g.useState(null),w=g.useCallback(F=>{F!==I.current&&(I.current=F,f(F))},[]),b=g.useCallback(F=>{F!==N.current&&(N.current=F,k(F))},[]),C=i||x,j=o||v,I=g.useRef(null),N=g.useRef(null),S=g.useRef(u),L=d!=null,q=J9(d),_=J9(s),A=J9(h),D=g.useCallback(()=>{if(!I.current||!N.current)return;const F={placement:a,strategy:n,middleware:y};_.current&&(F.platform=_.current),XV(I.current,N.current,F).then(re=>{const K={...re,isPositioned:A.current!==!1};H.current&&!Oj(S.current,K)&&(S.current=K,$j.flushSync(()=>{p(K)}))})},[y,a,n,_,A]);jj(()=>{h===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,p(F=>({...F,isPositioned:!1})))},[h]);const H=g.useRef(!1);jj(()=>(H.current=!0,()=>{H.current=!1}),[]),jj(()=>{if(C&&(I.current=C),j&&(N.current=j),C&&j){if(q.current)return q.current(C,j,D);D()}},[C,j,D,q,L]);const G=g.useMemo(()=>({reference:I,floating:N,setReference:w,setFloating:b}),[w,b]),V=g.useMemo(()=>({reference:C,floating:j}),[C,j]),$=g.useMemo(()=>{const F={position:n,left:0,top:0};if(!V.floating)return F;const re=xL(V.floating,u.x),K=xL(V.floating,u.y);return l?{...F,transform:"translate("+re+"px, "+K+"px)",...j_(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:re,top:K}},[n,l,V.floating,u.x,u.y]);return g.useMemo(()=>({...u,update:D,refs:G,elements:V,floatingStyles:$}),[u,D,G,V,$])}const eB=t=>{function a(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:s}=typeof t=="function"?t(n):t;return r&&a(r)?r.current!=null?fL({element:r.current,padding:s}).fn(n):{}:r?fL({element:r,padding:s}).fn(n):{}}}},tB=(t,a)=>({...$V(t),options:[t,a]}),aB=(t,a)=>({...UV(t),options:[t,a]}),nB=(t,a)=>({...JV(t),options:[t,a]}),rB=(t,a)=>({...GV(t),options:[t,a]}),sB=(t,a)=>({...WV(t),options:[t,a]}),iB=(t,a)=>({...ZV(t),options:[t,a]}),oB=(t,a)=>({...eB(t),options:[t,a]});var cB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],lB=cB.reduce((t,a)=>{const n=Ye(`Primitive.${a}`),r=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{}),dB="Arrow",C_=g.forwardRef((t,a)=>{const{children:n,width:r=10,height:s=5,...i}=t;return e.jsx(lB.svg,{...i,ref:a,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:e.jsx("polygon",{points:"0,0 30,0 15,10"})})});C_.displayName=dB;var hB=C_;function gL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function uB(...t){return a=>{let n=!1;const r=t.map(s=>{const i=gL(s,a);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():gL(t[s],null)}}}}function S_(...t){return g.useCallback(uB(...t),t)}function pB(t,a=[]){let n=[];function r(i,o){const l=g.createContext(o),d=n.length;n=[...n,o];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=n.map(o=>g.createContext(o));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[r,mB(s,...a)]}function mB(...t){const a=t[0];if(t.length===1)return a;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:o}),[o])}};return n.scopeName=a.scopeName,n}var yB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],N_=yB.reduce((t,a)=>{const n=Ye(`Primitive.${a}`),r=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{});function fB(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...n)=>{var r;return(r=a.current)==null?void 0:r.call(a,...n)},[])}var kL=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},US="Popper",[L_,p9]=pB(US),[xB,I_]=L_(US),A_=t=>{const{__scopePopper:a,children:n}=t,[r,s]=g.useState(null);return e.jsx(xB,{scope:a,anchor:r,onAnchorChange:s,children:n})};A_.displayName=US;var P_="PopperAnchor",__=g.forwardRef((t,a)=>{const{__scopePopper:n,virtualRef:r,...s}=t,i=I_(P_,n),o=g.useRef(null),l=S_(a,o),d=g.useRef(null);return g.useEffect(()=>{const h=d.current;d.current=(r==null?void 0:r.current)||o.current,h!==d.current&&i.onAnchorChange(d.current)}),r?null:e.jsx(N_.div,{...s,ref:l})});__.displayName=P_;var GS="PopperContent",[gB,kB]=L_(GS),R_=g.forwardRef((t,a)=>{var J,ne,ke,ge,se,me;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:l=0,avoidCollisions:d=!0,collisionBoundary:h=[],collisionPadding:u=0,sticky:p="partial",hideWhenDetached:y=!1,updatePositionStrategy:m="optimized",onPlaced:x,...f}=t,v=I_(GS,n),[k,w]=g.useState(null),b=S_(a,Ie=>w(Ie)),[C,j]=g.useState(null),I=TS(C),N=(I==null?void 0:I.width)??0,S=(I==null?void 0:I.height)??0,L=r+(i!=="center"?"-"+i:""),q=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},_=Array.isArray(h)?h:[h],A=_.length>0,D={padding:q,boundary:_.filter(wB),altBoundary:A},{refs:H,floatingStyles:G,placement:V,isPositioned:$,middlewareData:F}=QV({strategy:"fixed",placement:L,whileElementsMounted:(...Ie)=>BV(...Ie,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[tB({mainAxis:s+S,alignmentAxis:o}),d&&aB({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?nB():void 0,...D}),d&&rB({...D}),sB({...D,apply:({elements:Ie,rects:Ae,availableWidth:Fe,availableHeight:ot})=>{const{width:gt,height:Nt}=Ae.reference,ct=Ie.floating.style;ct.setProperty("--radix-popper-available-width",`${Fe}px`),ct.setProperty("--radix-popper-available-height",`${ot}px`),ct.setProperty("--radix-popper-anchor-width",`${gt}px`),ct.setProperty("--radix-popper-anchor-height",`${Nt}px`)}}),C&&oB({element:C,padding:l}),bB({arrowWidth:N,arrowHeight:S}),y&&iB({strategy:"referenceHidden",...D})]}),[re,K]=q_(V),X=fB(x);kL(()=>{$&&(X==null||X())},[$,X]);const Z=(J=F.arrow)==null?void 0:J.x,le=(ne=F.arrow)==null?void 0:ne.y,ae=((ke=F.arrow)==null?void 0:ke.centerOffset)!==0,[fe,we]=g.useState();return kL(()=>{k&&we(window.getComputedStyle(k).zIndex)},[k]),e.jsx("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:$?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:fe,"--radix-popper-transform-origin":[(ge=F.transformOrigin)==null?void 0:ge.x,(se=F.transformOrigin)==null?void 0:se.y].join(" "),...((me=F.hide)==null?void 0:me.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:e.jsx(gB,{scope:n,placedSide:re,onArrowChange:j,arrowX:Z,arrowY:le,shouldHideArrow:ae,children:e.jsx(N_.div,{"data-side":re,"data-align":K,...f,ref:b,style:{...f.style,animation:$?void 0:"none"}})})})});R_.displayName=GS;var T_="PopperArrow",vB={top:"bottom",right:"left",bottom:"top",left:"right"},D_=g.forwardRef(function(a,n){const{__scopePopper:r,...s}=a,i=kB(T_,r),o=vB[i.placedSide];return e.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:e.jsx(hB,{...s,ref:n,style:{...s.style,display:"block"}})})});D_.displayName=T_;function wB(t){return t!==null}var bB=t=>({name:"transformOrigin",options:t,fn(a){var v,k,w;const{placement:n,rects:r,middlewareData:s}=a,o=((v=s.arrow)==null?void 0:v.centerOffset)!==0,l=o?0:t.arrowWidth,d=o?0:t.arrowHeight,[h,u]=q_(n),p={start:"0%",center:"50%",end:"100%"}[u],y=(((k=s.arrow)==null?void 0:k.x)??0)+l/2,m=(((w=s.arrow)==null?void 0:w.y)??0)+d/2;let x="",f="";return h==="bottom"?(x=o?p:`${y}px`,f=`${-d}px`):h==="top"?(x=o?p:`${y}px`,f=`${r.floating.height+d}px`):h==="right"?(x=`${-d}px`,f=o?p:`${m}px`):h==="left"&&(x=`${r.floating.width+d}px`,f=o?p:`${m}px`),{data:{x,y:f}}}});function q_(t){const[a,n="center"]=t.split("-");return[a,n]}var z_=A_,WS=__,E_=R_,F_=D_,MB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Yt=MB.reduce((t,a)=>{const n=Ye(`Primitive.${a}`),r=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{});function jB(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...n)=>{var r;return(r=a.current)==null?void 0:r.call(a,...n)},[])}var CB=g[" useInsertionEffect ".trim().toString()]||Da;function vL({prop:t,defaultProp:a,onChange:n=()=>{},caller:r}){const[s,i,o]=SB({defaultProp:a,onChange:n}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,r])}const h=g.useCallback(u=>{var p;if(l){const y=NB(u)?u(t):u;y!==t&&((p=o.current)==null||p.call(o,y))}else i(u)},[l,t,i,o]);return[d,h]}function SB({defaultProp:t,onChange:a}){const[n,r]=g.useState(t),s=g.useRef(n),i=g.useRef(a);return CB(()=>{i.current=a},[a]),g.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function NB(t){return typeof t=="function"}var LB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],IB=LB.reduce((t,a)=>{const n=Ye(`Primitive.${a}`),r=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{}),O_=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),AB="VisuallyHidden",PB=g.forwardRef((t,a)=>e.jsx(IB.span,{...t,ref:a,style:{...O_,...t.style}}));PB.displayName=AB;var _B=[" ","Enter","ArrowUp","ArrowDown"],RB=[" ","Enter"],Ro="Select",[m9,y9,TB]=WH(Ro),[Mc,lZ]=p_(Ro,[TB,p9]),f9=p9(),[DB,Hn]=Mc(Ro),[qB,zB]=Mc(Ro),H_=t=>{const{__scopeSelect:a,children:n,open:r,defaultOpen:s,onOpenChange:i,value:o,defaultValue:l,onValueChange:d,dir:h,name:u,autoComplete:p,disabled:y,required:m,form:x}=t,f=f9(a),[v,k]=g.useState(null),[w,b]=g.useState(null),[C,j]=g.useState(!1),I=JH(h),[N,S]=vL({prop:r,defaultProp:s??!1,onChange:i,caller:Ro}),[L,q]=vL({prop:o,defaultProp:l,onChange:d,caller:Ro}),_=g.useRef(null),A=v?x||!!v.closest("form"):!0,[D,H]=g.useState(new Set),G=Array.from(D).map(V=>V.props.value).join(";");return e.jsx(z_,{...f,children:e.jsxs(DB,{required:m,scope:a,trigger:v,onTriggerChange:k,valueNode:w,onValueNodeChange:b,valueNodeHasChildren:C,onValueNodeHasChildrenChange:j,contentId:ES(),value:L,onValueChange:q,open:N,onOpenChange:S,dir:I,triggerPointerDownPosRef:_,disabled:y,children:[e.jsx(m9.Provider,{scope:a,children:e.jsx(qB,{scope:t.__scopeSelect,onNativeOptionAdd:g.useCallback(V=>{H($=>new Set($).add(V))},[]),onNativeOptionRemove:g.useCallback(V=>{H($=>{const F=new Set($);return F.delete(V),F})},[]),children:n})}),A?e.jsxs(hR,{"aria-hidden":!0,required:m,tabIndex:-1,name:u,autoComplete:p,value:L,onChange:V=>q(V.target.value),disabled:y,form:x,children:[L===void 0?e.jsx("option",{value:""}):null,Array.from(D)]},G):null]})})};H_.displayName=Ro;var V_="SelectTrigger",B_=g.forwardRef((t,a)=>{const{__scopeSelect:n,disabled:r=!1,...s}=t,i=f9(n),o=Hn(V_,n),l=o.disabled||r,d=ua(a,o.onTriggerChange),h=y9(n),u=g.useRef("touch"),[p,y,m]=pR(f=>{const v=h().filter(b=>!b.disabled),k=v.find(b=>b.value===o.value),w=mR(v,f,k);w!==void 0&&o.onValueChange(w.value)}),x=f=>{l||(o.onOpenChange(!0),m()),f&&(o.triggerPointerDownPosRef.current={x:Math.round(f.pageX),y:Math.round(f.pageY)})};return e.jsx(WS,{asChild:!0,...i,children:e.jsx(Yt.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":uR(o.value)?"":void 0,...s,ref:d,onClick:ht(s.onClick,f=>{f.currentTarget.focus(),u.current!=="mouse"&&x(f)}),onPointerDown:ht(s.onPointerDown,f=>{u.current=f.pointerType;const v=f.target;v.hasPointerCapture(f.pointerId)&&v.releasePointerCapture(f.pointerId),f.button===0&&f.ctrlKey===!1&&f.pointerType==="mouse"&&(x(f),f.preventDefault())}),onKeyDown:ht(s.onKeyDown,f=>{const v=p.current!=="";!(f.ctrlKey||f.altKey||f.metaKey)&&f.key.length===1&&y(f.key),!(v&&f.key===" ")&&_B.includes(f.key)&&(x(),f.preventDefault())})})})});B_.displayName=V_;var $_="SelectValue",U_=g.forwardRef((t,a)=>{const{__scopeSelect:n,className:r,style:s,children:i,placeholder:o="",...l}=t,d=Hn($_,n),{onValueNodeHasChildrenChange:h}=d,u=i!==void 0,p=ua(a,d.onValueNodeChange);return Da(()=>{h(u)},[h,u]),e.jsx(Yt.span,{...l,ref:p,style:{pointerEvents:"none"},children:uR(d.value)?e.jsx(e.Fragment,{children:o}):i})});U_.displayName=$_;var EB="SelectIcon",G_=g.forwardRef((t,a)=>{const{__scopeSelect:n,children:r,...s}=t;return e.jsx(Yt.span,{"aria-hidden":!0,...s,ref:a,children:r||"▼"})});G_.displayName=EB;var FB="SelectPortal",W_=t=>e.jsx(a9,{asChild:!0,...t});W_.displayName=FB;var To="SelectContent",Z_=g.forwardRef((t,a)=>{const n=Hn(To,t.__scopeSelect),[r,s]=g.useState();if(Da(()=>{s(new DocumentFragment)},[]),!n.open){const i=r;return i?$j.createPortal(e.jsx(J_,{scope:t.__scopeSelect,children:e.jsx(m9.Slot,{scope:t.__scopeSelect,children:e.jsx("div",{children:t.children})})}),i):null}return e.jsx(X_,{...t,ref:a})});Z_.displayName=To;var ya=10,[J_,Vn]=Mc(To),OB="SelectContentImpl",HB=Ye("SelectContent.RemoveScroll"),X_=g.forwardRef((t,a)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:o,side:l,sideOffset:d,align:h,alignOffset:u,arrowPadding:p,collisionBoundary:y,collisionPadding:m,sticky:x,hideWhenDetached:f,avoidCollisions:v,...k}=t,w=Hn(To,n),[b,C]=g.useState(null),[j,I]=g.useState(null),N=ua(a,J=>C(J)),[S,L]=g.useState(null),[q,_]=g.useState(null),A=y9(n),[D,H]=g.useState(!1),G=g.useRef(!1);g.useEffect(()=>{if(b)return wS(b)},[b]),vS();const V=g.useCallback(J=>{const[ne,...ke]=A().map(me=>me.ref.current),[ge]=ke.slice(-1),se=document.activeElement;for(const me of J)if(me===se||(me==null||me.scrollIntoView({block:"nearest"}),me===ne&&j&&(j.scrollTop=0),me===ge&&j&&(j.scrollTop=j.scrollHeight),me==null||me.focus(),document.activeElement!==se))return},[A,j]),$=g.useCallback(()=>V([S,b]),[V,S,b]);g.useEffect(()=>{D&&$()},[D,$]);const{onOpenChange:F,triggerPointerDownPosRef:re}=w;g.useEffect(()=>{if(b){let J={x:0,y:0};const ne=ge=>{var se,me;J={x:Math.abs(Math.round(ge.pageX)-(((se=re.current)==null?void 0:se.x)??0)),y:Math.abs(Math.round(ge.pageY)-(((me=re.current)==null?void 0:me.y)??0))}},ke=ge=>{J.x<=10&&J.y<=10?ge.preventDefault():b.contains(ge.target)||F(!1),document.removeEventListener("pointermove",ne),re.current=null};return re.current!==null&&(document.addEventListener("pointermove",ne),document.addEventListener("pointerup",ke,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ne),document.removeEventListener("pointerup",ke,{capture:!0})}}},[b,F,re]),g.useEffect(()=>{const J=()=>F(!1);return window.addEventListener("blur",J),window.addEventListener("resize",J),()=>{window.removeEventListener("blur",J),window.removeEventListener("resize",J)}},[F]);const[K,X]=pR(J=>{const ne=A().filter(se=>!se.disabled),ke=ne.find(se=>se.ref.current===document.activeElement),ge=mR(ne,J,ke);ge&&setTimeout(()=>ge.ref.current.focus())}),Z=g.useCallback((J,ne,ke)=>{const ge=!G.current&&!ke;(w.value!==void 0&&w.value===ne||ge)&&(L(J),ge&&(G.current=!0))},[w.value]),le=g.useCallback(()=>b==null?void 0:b.focus(),[b]),ae=g.useCallback((J,ne,ke)=>{const ge=!G.current&&!ke;(w.value!==void 0&&w.value===ne||ge)&&_(J)},[w.value]),fe=r==="popper"?PC:Y_,we=fe===PC?{side:l,sideOffset:d,align:h,alignOffset:u,arrowPadding:p,collisionBoundary:y,collisionPadding:m,sticky:x,hideWhenDetached:f,avoidCollisions:v}:{};return e.jsx(J_,{scope:n,content:b,viewport:j,onViewportChange:I,itemRefCallback:Z,selectedItem:S,onItemLeave:le,itemTextRefCallback:ae,focusSelectedItem:$,selectedItemText:q,position:r,isPositioned:D,searchRef:K,children:e.jsx(s9,{as:HB,allowPinchZoom:!0,children:e.jsx(t9,{asChild:!0,trapped:w.open,onMountAutoFocus:J=>{J.preventDefault()},onUnmountAutoFocus:ht(s,J=>{var ne;(ne=w.trigger)==null||ne.focus({preventScroll:!0}),J.preventDefault()}),children:e.jsx(e9,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:J=>J.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:e.jsx(fe,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:J=>J.preventDefault(),...k,...we,onPlaced:()=>H(!0),ref:N,style:{display:"flex",flexDirection:"column",outline:"none",...k.style},onKeyDown:ht(k.onKeyDown,J=>{const ne=J.ctrlKey||J.altKey||J.metaKey;if(J.key==="Tab"&&J.preventDefault(),!ne&&J.key.length===1&&X(J.key),["ArrowUp","ArrowDown","Home","End"].includes(J.key)){let ge=A().filter(se=>!se.disabled).map(se=>se.ref.current);if(["ArrowUp","End"].includes(J.key)&&(ge=ge.slice().reverse()),["ArrowUp","ArrowDown"].includes(J.key)){const se=J.target,me=ge.indexOf(se);ge=ge.slice(me+1)}setTimeout(()=>V(ge)),J.preventDefault()}})})})})})})});X_.displayName=OB;var VB="SelectItemAlignedPosition",Y_=g.forwardRef((t,a)=>{const{__scopeSelect:n,onPlaced:r,...s}=t,i=Hn(To,n),o=Vn(To,n),[l,d]=g.useState(null),[h,u]=g.useState(null),p=ua(a,N=>u(N)),y=y9(n),m=g.useRef(!1),x=g.useRef(!0),{viewport:f,selectedItem:v,selectedItemText:k,focusSelectedItem:w}=o,b=g.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&h&&f&&v&&k){const N=i.trigger.getBoundingClientRect(),S=h.getBoundingClientRect(),L=i.valueNode.getBoundingClientRect(),q=k.getBoundingClientRect();if(i.dir!=="rtl"){const se=q.left-S.left,me=L.left-se,Ie=N.left-me,Ae=N.width+Ie,Fe=Math.max(Ae,S.width),ot=window.innerWidth-ya,gt=sL(me,[ya,Math.max(ya,ot-Fe)]);l.style.minWidth=Ae+"px",l.style.left=gt+"px"}else{const se=S.right-q.right,me=window.innerWidth-L.right-se,Ie=window.innerWidth-N.right-me,Ae=N.width+Ie,Fe=Math.max(Ae,S.width),ot=window.innerWidth-ya,gt=sL(me,[ya,Math.max(ya,ot-Fe)]);l.style.minWidth=Ae+"px",l.style.right=gt+"px"}const _=y(),A=window.innerHeight-ya*2,D=f.scrollHeight,H=window.getComputedStyle(h),G=parseInt(H.borderTopWidth,10),V=parseInt(H.paddingTop,10),$=parseInt(H.borderBottomWidth,10),F=parseInt(H.paddingBottom,10),re=G+V+D+F+$,K=Math.min(v.offsetHeight*5,re),X=window.getComputedStyle(f),Z=parseInt(X.paddingTop,10),le=parseInt(X.paddingBottom,10),ae=N.top+N.height/2-ya,fe=A-ae,we=v.offsetHeight/2,J=v.offsetTop+we,ne=G+V+J,ke=re-ne;if(ne<=ae){const se=_.length>0&&v===_[_.length-1].ref.current;l.style.bottom="0px";const me=h.clientHeight-f.offsetTop-f.offsetHeight,Ie=Math.max(fe,we+(se?le:0)+me+$),Ae=ne+Ie;l.style.height=Ae+"px"}else{const se=_.length>0&&v===_[0].ref.current;l.style.top="0px";const Ie=Math.max(ae,G+f.offsetTop+(se?Z:0)+we)+ke;l.style.height=Ie+"px",f.scrollTop=ne-ae+f.offsetTop}l.style.margin=`${ya}px 0`,l.style.minHeight=K+"px",l.style.maxHeight=A+"px",r==null||r(),requestAnimationFrame(()=>m.current=!0)}},[y,i.trigger,i.valueNode,l,h,f,v,k,i.dir,r]);Da(()=>b(),[b]);const[C,j]=g.useState();Da(()=>{h&&j(window.getComputedStyle(h).zIndex)},[h]);const I=g.useCallback(N=>{N&&x.current===!0&&(b(),w==null||w(),x.current=!1)},[b,w]);return e.jsx($B,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:m,onScrollButtonChange:I,children:e.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:e.jsx(Yt.div,{...s,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});Y_.displayName=VB;var BB="SelectPopperPosition",PC=g.forwardRef((t,a)=>{const{__scopeSelect:n,align:r="start",collisionPadding:s=ya,...i}=t,o=f9(n);return e.jsx(E_,{...o,...i,ref:a,align:r,collisionPadding:s,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});PC.displayName=BB;var[$B,ZS]=Mc(To,{}),_C="SelectViewport",K_=g.forwardRef((t,a)=>{const{__scopeSelect:n,nonce:r,...s}=t,i=Vn(_C,n),o=ZS(_C,n),l=ua(a,i.onViewportChange),d=g.useRef(0);return e.jsxs(e.Fragment,{children:[e.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),e.jsx(m9.Slot,{scope:n,children:e.jsx(Yt.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:ht(s.onScroll,h=>{const u=h.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:y}=o;if(y!=null&&y.current&&p){const m=Math.abs(d.current-u.scrollTop);if(m>0){const x=window.innerHeight-ya*2,f=parseFloat(p.style.minHeight),v=parseFloat(p.style.height),k=Math.max(f,v);if(k<x){const w=k+m,b=Math.min(x,w),C=w-b;p.style.height=b+"px",p.style.bottom==="0px"&&(u.scrollTop=C>0?C:0,p.style.justifyContent="flex-end")}}}d.current=u.scrollTop})})})]})});K_.displayName=_C;var Q_="SelectGroup",[UB,GB]=Mc(Q_),WB=g.forwardRef((t,a)=>{const{__scopeSelect:n,...r}=t,s=ES();return e.jsx(UB,{scope:n,id:s,children:e.jsx(Yt.div,{role:"group","aria-labelledby":s,...r,ref:a})})});WB.displayName=Q_;var eR="SelectLabel",tR=g.forwardRef((t,a)=>{const{__scopeSelect:n,...r}=t,s=GB(eR,n);return e.jsx(Yt.div,{id:s.id,...r,ref:a})});tR.displayName=eR;var Hj="SelectItem",[ZB,aR]=Mc(Hj),nR=g.forwardRef((t,a)=>{const{__scopeSelect:n,value:r,disabled:s=!1,textValue:i,...o}=t,l=Hn(Hj,n),d=Vn(Hj,n),h=l.value===r,[u,p]=g.useState(i??""),[y,m]=g.useState(!1),x=ua(a,w=>{var b;return(b=d.itemRefCallback)==null?void 0:b.call(d,w,r,s)}),f=ES(),v=g.useRef("touch"),k=()=>{s||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return e.jsx(ZB,{scope:n,value:r,disabled:s,textId:f,isSelected:h,onItemTextChange:g.useCallback(w=>{p(b=>b||((w==null?void 0:w.textContent)??"").trim())},[]),children:e.jsx(m9.ItemSlot,{scope:n,value:r,disabled:s,textValue:u,children:e.jsx(Yt.div,{role:"option","aria-labelledby":f,"data-highlighted":y?"":void 0,"aria-selected":h&&y,"data-state":h?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...o,ref:x,onFocus:ht(o.onFocus,()=>m(!0)),onBlur:ht(o.onBlur,()=>m(!1)),onClick:ht(o.onClick,()=>{v.current!=="mouse"&&k()}),onPointerUp:ht(o.onPointerUp,()=>{v.current==="mouse"&&k()}),onPointerDown:ht(o.onPointerDown,w=>{v.current=w.pointerType}),onPointerMove:ht(o.onPointerMove,w=>{var b;v.current=w.pointerType,s?(b=d.onItemLeave)==null||b.call(d):v.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ht(o.onPointerLeave,w=>{var b;w.currentTarget===document.activeElement&&((b=d.onItemLeave)==null||b.call(d))}),onKeyDown:ht(o.onKeyDown,w=>{var C;((C=d.searchRef)==null?void 0:C.current)!==""&&w.key===" "||(RB.includes(w.key)&&k(),w.key===" "&&w.preventDefault())})})})})});nR.displayName=Hj;var Tc="SelectItemText",rR=g.forwardRef((t,a)=>{const{__scopeSelect:n,className:r,style:s,...i}=t,o=Hn(Tc,n),l=Vn(Tc,n),d=aR(Tc,n),h=zB(Tc,n),[u,p]=g.useState(null),y=ua(a,k=>p(k),d.onItemTextChange,k=>{var w;return(w=l.itemTextRefCallback)==null?void 0:w.call(l,k,d.value,d.disabled)}),m=u==null?void 0:u.textContent,x=g.useMemo(()=>e.jsx("option",{value:d.value,disabled:d.disabled,children:m},d.value),[d.disabled,d.value,m]),{onNativeOptionAdd:f,onNativeOptionRemove:v}=h;return Da(()=>(f(x),()=>v(x)),[f,v,x]),e.jsxs(e.Fragment,{children:[e.jsx(Yt.span,{id:d.textId,...i,ref:y}),d.isSelected&&o.valueNode&&!o.valueNodeHasChildren?$j.createPortal(i.children,o.valueNode):null]})});rR.displayName=Tc;var sR="SelectItemIndicator",iR=g.forwardRef((t,a)=>{const{__scopeSelect:n,...r}=t;return aR(sR,n).isSelected?e.jsx(Yt.span,{"aria-hidden":!0,...r,ref:a}):null});iR.displayName=sR;var RC="SelectScrollUpButton",oR=g.forwardRef((t,a)=>{const n=Vn(RC,t.__scopeSelect),r=ZS(RC,t.__scopeSelect),[s,i]=g.useState(!1),o=ua(a,r.onScrollButtonChange);return Da(()=>{if(n.viewport&&n.isPositioned){let l=function(){const h=d.scrollTop>0;i(h)};const d=n.viewport;return l(),d.addEventListener("scroll",l),()=>d.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),s?e.jsx(lR,{...t,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:d}=n;l&&d&&(l.scrollTop=l.scrollTop-d.offsetHeight)}}):null});oR.displayName=RC;var TC="SelectScrollDownButton",cR=g.forwardRef((t,a)=>{const n=Vn(TC,t.__scopeSelect),r=ZS(TC,t.__scopeSelect),[s,i]=g.useState(!1),o=ua(a,r.onScrollButtonChange);return Da(()=>{if(n.viewport&&n.isPositioned){let l=function(){const h=d.scrollHeight-d.clientHeight,u=Math.ceil(d.scrollTop)<h;i(u)};const d=n.viewport;return l(),d.addEventListener("scroll",l),()=>d.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),s?e.jsx(lR,{...t,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:d}=n;l&&d&&(l.scrollTop=l.scrollTop+d.offsetHeight)}}):null});cR.displayName=TC;var lR=g.forwardRef((t,a)=>{const{__scopeSelect:n,onAutoScroll:r,...s}=t,i=Vn("SelectScrollButton",n),o=g.useRef(null),l=y9(n),d=g.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return g.useEffect(()=>()=>d(),[d]),Da(()=>{var u;const h=l().find(p=>p.ref.current===document.activeElement);(u=h==null?void 0:h.ref.current)==null||u.scrollIntoView({block:"nearest"})},[l]),e.jsx(Yt.div,{"aria-hidden":!0,...s,ref:a,style:{flexShrink:0,...s.style},onPointerDown:ht(s.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:ht(s.onPointerMove,()=>{var h;(h=i.onItemLeave)==null||h.call(i),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:ht(s.onPointerLeave,()=>{d()})})}),JB="SelectSeparator",dR=g.forwardRef((t,a)=>{const{__scopeSelect:n,...r}=t;return e.jsx(Yt.div,{"aria-hidden":!0,...r,ref:a})});dR.displayName=JB;var DC="SelectArrow",XB=g.forwardRef((t,a)=>{const{__scopeSelect:n,...r}=t,s=f9(n),i=Hn(DC,n),o=Vn(DC,n);return i.open&&o.position==="popper"?e.jsx(F_,{...s,...r,ref:a}):null});XB.displayName=DC;var YB="SelectBubbleInput",hR=g.forwardRef(({__scopeSelect:t,value:a,...n},r)=>{const s=g.useRef(null),i=ua(r,s),o=RS(a);return g.useEffect(()=>{const l=s.current;if(!l)return;const d=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(d,"value").set;if(o!==a&&u){const p=new Event("change",{bubbles:!0});u.call(l,a),l.dispatchEvent(p)}},[o,a]),e.jsx(Yt.select,{...n,style:{...O_,...n.style},ref:i,defaultValue:a})});hR.displayName=YB;function uR(t){return t===""||t===void 0}function pR(t){const a=jB(t),n=g.useRef(""),r=g.useRef(0),s=g.useCallback(o=>{const l=n.current+o;a(l),function d(h){n.current=h,window.clearTimeout(r.current),h!==""&&(r.current=window.setTimeout(()=>d(""),1e3))}(l)},[a]),i=g.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,s,i]}function mR(t,a,n){const s=a.length>1&&Array.from(a).every(h=>h===a[0])?a[0]:a,i=n?t.indexOf(n):-1;let o=KB(t,Math.max(i,0));s.length===1&&(o=o.filter(h=>h!==n));const d=o.find(h=>h.textValue.toLowerCase().startsWith(s.toLowerCase()));return d!==n?d:void 0}function KB(t,a){return t.map((n,r)=>t[(a+r)%t.length])}var QB=H_,yR=B_,e$=U_,t$=G_,a$=W_,fR=Z_,n$=K_,xR=tR,gR=nR,r$=rR,s$=iR,kR=oR,vR=cR,JS=dR;const tn=QB,an=e$,za=g.forwardRef(({className:t,children:a,...n},r)=>e.jsxs(yR,{ref:r,className:ye("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...n,children:[a,e.jsx(t$,{asChild:!0,children:e.jsx(zP,{className:"h-4 w-4 opacity-50"})})]}));za.displayName=yR.displayName;const wR=g.forwardRef(({className:t,...a},n)=>e.jsx(kR,{ref:n,className:ye("flex cursor-default items-center justify-center py-1",t),...a,children:e.jsx(vO,{className:"h-4 w-4"})}));wR.displayName=kR.displayName;const bR=g.forwardRef(({className:t,...a},n)=>e.jsx(vR,{ref:n,className:ye("flex cursor-default items-center justify-center py-1",t),...a,children:e.jsx(zP,{className:"h-4 w-4"})}));bR.displayName=vR.displayName;const Ea=g.forwardRef(({className:t,children:a,position:n="popper",...r},s)=>e.jsx(a$,{children:e.jsxs(fR,{ref:s,className:ye("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:n,...r,children:[e.jsx(wR,{}),e.jsx(n$,{className:ye("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),e.jsx(bR,{})]})}));Ea.displayName=fR.displayName;const i$=g.forwardRef(({className:t,...a},n)=>e.jsx(xR,{ref:n,className:ye("px-2 py-1.5 text-sm font-semibold",t),...a}));i$.displayName=xR.displayName;const Mt=g.forwardRef(({className:t,children:a,...n},r)=>e.jsxs(gR,{ref:r,className:ye("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...n,children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(s$,{children:e.jsx(xO,{className:"h-4 w-4"})})}),e.jsx(r$,{children:a})]}));Mt.displayName=gR.displayName;const o$=g.forwardRef(({className:t,...a},n)=>e.jsx(JS,{ref:n,className:ye("-mx-1 my-1 h-px bg-muted",t),...a}));o$.displayName=JS.displayName;function c$(t,a,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t==null||t(s),n===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}function l$(t,a=[]){let n=[];function r(i,o){const l=g.createContext(o),d=n.length;n=[...n,o];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=n.map(o=>g.createContext(o));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[r,d$(s,...a)]}function d$(...t){const a=t[0];if(t.length===1)return a;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:o}),[o])}};return n.scopeName=a.scopeName,n}var kl=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},h$=g[" useInsertionEffect ".trim().toString()]||kl;function u$({prop:t,defaultProp:a,onChange:n=()=>{},caller:r}){const[s,i,o]=p$({defaultProp:a,onChange:n}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,r])}const h=g.useCallback(u=>{var p;if(l){const y=m$(u)?u(t):u;y!==t&&((p=o.current)==null||p.call(o,y))}else i(u)},[l,t,i,o]);return[d,h]}function p$({defaultProp:t,onChange:a}){const[n,r]=g.useState(t),s=g.useRef(n),i=g.useRef(a);return h$(()=>{i.current=a},[a]),g.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function m$(t){return typeof t=="function"}function wL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function y$(...t){return a=>{let n=!1;const r=t.map(s=>{const i=wL(s,a);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():wL(t[s],null)}}}}function MR(...t){return g.useCallback(y$(...t),t)}var f$=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],XS=f$.reduce((t,a)=>{const n=Ye(`Primitive.${a}`),r=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{});function x$(t,a){return g.useReducer((n,r)=>a[n][r]??n,t)}var jR=t=>{const{present:a,children:n}=t,r=g$(a),s=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),i=MR(r.ref,k$(s));return typeof n=="function"||r.isPresent?g.cloneElement(s,{ref:i}):null};jR.displayName="Presence";function g$(t){const[a,n]=g.useState(),r=g.useRef(null),s=g.useRef(t),i=g.useRef("none"),o=t?"mounted":"unmounted",[l,d]=x$(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const h=El(r.current);i.current=l==="mounted"?h:"none"},[l]),kl(()=>{const h=r.current,u=s.current;if(u!==t){const y=i.current,m=El(h);t?d("MOUNT"):m==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(u&&y!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,d]),kl(()=>{if(a){let h;const u=a.ownerDocument.defaultView??window,p=m=>{const f=El(r.current).includes(CSS.escape(m.animationName));if(m.target===a&&f&&(d("ANIMATION_END"),!s.current)){const v=a.style.animationFillMode;a.style.animationFillMode="forwards",h=u.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=v)})}},y=m=>{m.target===a&&(i.current=El(r.current))};return a.addEventListener("animationstart",y),a.addEventListener("animationcancel",p),a.addEventListener("animationend",p),()=>{u.clearTimeout(h),a.removeEventListener("animationstart",y),a.removeEventListener("animationcancel",p),a.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[a,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(h=>{r.current=h?getComputedStyle(h):null,n(h)},[])}}function El(t){return(t==null?void 0:t.animationName)||"none"}function k$(t){var r,s;let a=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=a&&"isReactWarning"in a&&a.isReactWarning;return n?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=a&&"isReactWarning"in a&&a.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var v$=g[" useId ".trim().toString()]||(()=>{}),w$=0;function b$(t){const[a,n]=g.useState(v$());return kl(()=>{t||n(r=>r??String(w$++))},[t]),t||(a?`radix-${a}`:"")}var x9="Collapsible",[M$,dZ]=l$(x9),[j$,YS]=M$(x9),CR=g.forwardRef((t,a)=>{const{__scopeCollapsible:n,open:r,defaultOpen:s,disabled:i,onOpenChange:o,...l}=t,[d,h]=u$({prop:r,defaultProp:s??!1,onChange:o,caller:x9});return e.jsx(j$,{scope:n,disabled:i,contentId:b$(),open:d,onOpenToggle:g.useCallback(()=>h(u=>!u),[h]),children:e.jsx(XS.div,{"data-state":QS(d),"data-disabled":i?"":void 0,...l,ref:a})})});CR.displayName=x9;var SR="CollapsibleTrigger",NR=g.forwardRef((t,a)=>{const{__scopeCollapsible:n,...r}=t,s=YS(SR,n);return e.jsx(XS.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":QS(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...r,ref:a,onClick:c$(t.onClick,s.onOpenToggle)})});NR.displayName=SR;var KS="CollapsibleContent",LR=g.forwardRef((t,a)=>{const{forceMount:n,...r}=t,s=YS(KS,t.__scopeCollapsible);return e.jsx(jR,{present:n||s.open,children:({present:i})=>e.jsx(C$,{...r,ref:a,present:i})})});LR.displayName=KS;var C$=g.forwardRef((t,a)=>{const{__scopeCollapsible:n,present:r,children:s,...i}=t,o=YS(KS,n),[l,d]=g.useState(r),h=g.useRef(null),u=MR(a,h),p=g.useRef(0),y=p.current,m=g.useRef(0),x=m.current,f=o.open||l,v=g.useRef(f),k=g.useRef(void 0);return g.useEffect(()=>{const w=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(w)},[]),kl(()=>{const w=h.current;if(w){k.current=k.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const b=w.getBoundingClientRect();p.current=b.height,m.current=b.width,v.current||(w.style.transitionDuration=k.current.transitionDuration,w.style.animationName=k.current.animationName),d(r)}},[o.open,r]),e.jsx(XS.div,{"data-state":QS(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!f,...i,ref:u,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...t.style},children:f&&s})});function QS(t){return t?"open":"closed"}var S$=CR;const N$=S$,L$=NR,I$=LR,IR=[{category:"Online Casino Operators",items:[{label:"Slots",matchers:["slot","slots"]},{label:"Live Casino",matchers:["live casino","live dealer","live-casino"]},{label:"Jackpots",matchers:["jackpot","jackpots"]},{label:"Sportsbook",matchers:["sportsbook"]},{label:"Crypto",matchers:["crypto","crypto casino","crypto-casino"]}]},{category:"Providers",items:[{label:"Game Provider",matchers:["aggregation","aggregator","game-platform","games","game-api"]},{label:"Live Casino",matchers:["live-casino-studio","live-casino-provider","live-casino","live casino","live studios","live dealer","live dealers","live dealer studio","live dealer studios"]},{label:"Game Platform",matchers:["aggregation","aggregator","game-platform","games","game-api"]},{label:"Bonus Platform",matchers:["bonus","promotions","promo","loyalty"]},{label:"Backoffice",matchers:["backoffice","back office","crm","admin"]},{label:"Gamification",matchers:["gamification"]},{label:"Tech Providers",matchers:["AI","Integrations","Development"]}]},{category:"Affiliate",items:[{label:"Affiliate Agencies",matchers:["affiliate agencies","affiliate","affiliate agency","affiliate marketing"]},{label:"Affiliate Program",matchers:["affiliate program","affiliate programs"]},{label:"Tracking Tools",matchers:["tracking","attribution"]},{label:"Affiliate Tools",matchers:["affiliate tools","attribution","Marketing Platform","Marketing Automation","Marketing Automation Platform"]}]},{category:"Payments",items:[{label:"Payment Processing",matchers:["payment","psp","wallet"]}]},{category:"Compliance",items:[{label:"KYC",matchers:["kyc","know your customer"]},{label:"AML",matchers:["aml","anti-money"]},{label:"Risk & Fraud",matchers:["risk","fraud"]}]}],AR=IR.flatMap(t=>t.items),PR={search:"",companyType:"",verticals:[],productCategories:[],employeeRanges:[],products:[],openRolesRanges:[],yearsActiveRanges:[],hiringNow:!1,scope:"company",claimedOnly:!1,hasLicenses:!1,hasAwards:!1},A$=t=>Array.from(new Set(t.filter(Boolean))).sort((a,n)=>a.localeCompare(n)),P$=t=>{if(typeof t=="string")return t.toLowerCase();if(typeof t=="number")return String(t);if(typeof t=="object"&&t!==null){if("name"in t&&typeof t.name=="string")return t.name.toLowerCase();if("title"in t&&typeof t.title=="string")return t.title.toLowerCase()}return""},_$=t=>{var a,n;if(typeof t=="string")return t;if(typeof t=="object"&&t!==null){const r=t;return r.title??((a=r.tag)==null?void 0:a.name)??((n=r.tag)==null?void 0:n.slug)??null}return null},R$=t=>{const a=t.productsAndServices.flatMap(n=>[n.name,n.category,n.description,...n.keyDifferentiators??[]]);return[t.name,t.companyType,t.classification.businessModel,...t.classification.verticals,...t.classification.productCategories,...t.classification.tags.map(_$).filter(n=>!!n),...a].filter(Boolean)},T$=t=>{const a=R$(t).map(P$).join(" ");return AR.filter(n=>n.matchers.some(r=>a.includes(r))).map(n=>n.label)},D$=t=>{if(!t.overview.foundedYear)return null;const a=new Date().getFullYear();return Math.max(0,a-t.overview.foundedYear)},q$=t=>A$([t.classification.businessModel,...t.productsAndServices.map(a=>a.integrationModel),...t.productsAndServices.flatMap(a=>a.keyDifferentiators)]),z$=t=>{var r;const a=D$(t),n=((r=t.group)==null?void 0:r.intelligenceProfile)??t.signalsAndInsights;return{products:T$(t),capabilities:q$(t),credibility:{licenses:t.trustAndCompliance.licenses.length,awards:t.trustAndCompliance.awards.length,certifications:t.trustAndCompliance.certifications.length,yearsActive:a},commercialSignals:{profileViews30d:n.profileViews30d,followsCount:n.followsCount,hiringIntensity:n.hiringIntensity,searchImpressions:t.visibilityMetrics.searchImpressions,profileClicks:t.visibilityMetrics.profileClicks,externalClicks:t.visibilityMetrics.externalClicks}}},bL=({filters:t,options:a,onFiltersChange:n,onClearFilters:r,resultCount:s})=>{const[i,o]=M.useState({companyType:!0,verticals:!0,products:!0,normalizedProducts:!0,employees:!1,hiring:!0,credibility:!0,signals:!1}),l=m=>{o(x=>({...x,[m]:!x[m]}))},d={companyTypes:a.companyTypes??[],verticals:a.verticals??[],productCategories:a.productCategories??[],employeeRanges:a.employeeRanges??[],products:a.products??[],openRolesRanges:a.openRolesRanges??[],yearsActiveRanges:a.yearsActiveRanges??[]},h=(m,x)=>{n({...t,[m]:x})},u=(m,x)=>{const f=t[m],v=f.includes(x)?f.filter(k=>k!==x):[...f,x];h(m,v)},p=(t.companyType?1:0)+t.verticals.length+t.productCategories.length+t.employeeRanges.length+t.products.length+t.openRolesRanges.length+t.yearsActiveRanges.length+(t.hiringNow?1:0)+(t.claimedOnly?1:0)+(t.hasLicenses?1:0)+(t.hasAwards?1:0),y=({id:m,title:x,icon:f,children:v})=>e.jsxs(N$,{open:i[m],onOpenChange:()=>l(m),children:[e.jsxs(L$,{className:"flex items-center justify-between w-full py-3 text-left group",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(f,{className:"w-4 h-4 text-muted-foreground"}),e.jsx("span",{className:"font-medium text-sm",children:x})]}),i[m]?e.jsx(ec,{className:"w-4 h-4 text-muted-foreground"}):e.jsx(wn,{className:"w-4 h-4 text-muted-foreground"})]}),e.jsx(I$,{className:"pb-4",children:v})]});return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"relative",children:[e.jsx(Gt,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(de,{placeholder:"Search companies, products, tags...",value:t.search,onChange:m=>h("search",m.target.value),className:"pl-10"})]}),e.jsxs("div",{className:"flex items-center justify-between gap-2 rounded-lg border border-border px-3 py-2",children:[e.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"View scope"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(T,{type:"button",size:"sm",variant:t.scope==="company"?"default":"outline",onClick:()=>h("scope","company"),children:"Companies"}),e.jsx(T,{type:"button",size:"sm",variant:t.scope==="group"?"default":"outline",onClick:()=>h("scope","group"),children:"Groups"})]})]}),p>0&&e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"text-sm text-muted-foreground",children:[p," filter",p!==1?"s":""," active"]}),e.jsxs(T,{variant:"ghost",size:"sm",onClick:r,className:"text-accent h-auto py-1",children:[e.jsx(Ct,{className:"w-3 h-3 mr-1"}),"Clear all"]})]}),e.jsxs("div",{className:"text-sm font-medium text-foreground py-2 px-3 bg-secondary/50 rounded-lg",children:[s," ",s===1?t.scope==="group"?"group":"company":t.scope==="group"?"groups":"companies"," found"]}),e.jsxs("div",{className:"divide-y divide-border",children:[e.jsx(y,{id:"companyType",title:"Company Type",icon:rt,children:e.jsxs(tn,{value:t.companyType||"all",onValueChange:m=>h("companyType",m==="all"?"":m),children:[e.jsx(za,{className:"w-full",children:e.jsx(an,{placeholder:"All company types"})}),e.jsxs(Ea,{children:[e.jsx(Mt,{value:"all",children:"All company types"}),d.companyTypes.map(m=>e.jsx(Mt,{value:m,children:m},m))]})]})}),e.jsx(y,{id:"verticals",title:"Verticals",icon:Vc,children:e.jsx("div",{className:"flex flex-wrap gap-2",children:d.verticals.map(m=>e.jsx(he,{variant:t.verticals.includes(m)?"default":"outline",className:"cursor-pointer transition-colors",onClick:()=>u("verticals",m),children:m},m))})}),e.jsx(y,{id:"products",title:"Products & Services",icon:oa,children:e.jsx("div",{className:"space-y-2 max-h-48 overflow-y-auto",children:d.productCategories.map(m=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:`cat-${m}`,checked:t.productCategories.includes(m),onCheckedChange:()=>u("productCategories",m)}),e.jsx(O,{htmlFor:`cat-${m}`,className:"text-sm font-normal cursor-pointer flex-1",children:m})]},m))})}),e.jsx(y,{id:"normalizedProducts",title:"Normalized Products",icon:Ca,children:e.jsx("div",{className:"space-y-3",children:IR.map(m=>e.jsxs("div",{children:[e.jsx("p",{className:"text-xs font-semibold uppercase text-muted-foreground mb-2",children:m.category}),e.jsx("div",{className:"space-y-2",children:m.items.map(x=>x.label).filter(x=>(d.products??[]).includes(x)).map(x=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:`product-${x}`,checked:t.products.includes(x),onCheckedChange:()=>u("products",x)}),e.jsx(O,{htmlFor:`product-${x}`,className:"text-sm font-normal cursor-pointer flex-1",children:x})]},x))})]},m.category))})}),e.jsx(y,{id:"employees",title:"Company Size",icon:mt,children:e.jsx("div",{className:"space-y-2",children:d.employeeRanges.map(m=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:`emp-${m}`,checked:t.employeeRanges.includes(m),onCheckedChange:()=>u("employeeRanges",m)}),e.jsxs(O,{htmlFor:`emp-${m}`,className:"text-sm font-normal cursor-pointer flex-1",children:[m," employees"]})]},m))})}),e.jsx(y,{id:"hiring",title:"Hiring",icon:Ze,children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:"hiring-now",checked:t.hiringNow,onCheckedChange:m=>h("hiringNow",m===!0)}),e.jsxs(O,{htmlFor:"hiring-now",className:"text-sm font-normal cursor-pointer flex items-center gap-2",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-gaming-success"}),"Hiring now"]})]}),e.jsxs("div",{children:[e.jsx(O,{className:"text-xs text-muted-foreground mb-2 inline-flex items-center",children:"Open roles count"}),e.jsx("div",{className:"space-y-2",children:d.openRolesRanges.map(m=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:`open-roles-${m}`,checked:t.openRolesRanges.includes(m),onCheckedChange:()=>u("openRolesRanges",m)}),e.jsxs(O,{htmlFor:`open-roles-${m}`,className:"text-sm font-normal cursor-pointer flex-1",children:[m," roles"]})]},m))})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:"claimed-only",checked:t.claimedOnly,onCheckedChange:m=>h("claimedOnly",m===!0)}),e.jsxs(O,{htmlFor:"claimed-only",className:"text-sm font-normal cursor-pointer flex items-center gap-2",children:[e.jsx(tt,{className:"w-3.5 h-3.5 text-accent"}),"Claimed profiles only"]})]})]})}),e.jsx(y,{id:"credibility",title:"Credibility",icon:tt,children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:"has-licenses",checked:t.hasLicenses,onCheckedChange:m=>h("hasLicenses",m===!0)}),e.jsx(O,{htmlFor:"has-licenses",className:"text-sm font-normal cursor-pointer",children:"Licensed operators/providers"})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:"has-awards",checked:t.hasAwards,onCheckedChange:m=>h("hasAwards",m===!0)}),e.jsx(O,{htmlFor:"has-awards",className:"text-sm font-normal cursor-pointer",children:"Award winners"})]}),e.jsxs("div",{children:[e.jsx(O,{className:"text-xs text-muted-foreground mb-2 inline-flex items-center",children:"Years active"}),e.jsx("div",{className:"space-y-2",children:d.yearsActiveRanges.map(m=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:`years-${m}`,checked:t.yearsActiveRanges.includes(m),onCheckedChange:()=>u("yearsActiveRanges",m)}),e.jsxs(O,{htmlFor:`years-${m}`,className:"text-sm font-normal cursor-pointer flex-1",children:[m," years"]})]},m))})]})]})})]}),e.jsxs("div",{className:"p-4 bg-gradient-to-br from-accent/10 to-gaming-gold/10 rounded-xl border border-accent/20",children:[e.jsx("h4",{className:"font-semibold text-sm mb-1",children:"Need vendor recommendations?"}),e.jsx("p",{className:"text-xs text-muted-foreground mb-3",children:"Tell us what you need and we'll create a shortlist for you."}),e.jsx(T,{variant:"accent",size:"sm",className:"w-full",children:"Request Intro"})]})]})},E$=({count:t=4})=>e.jsx("div",{className:"space-y-4 animate-fade-in",children:[...Array(t)].map((a,n)=>e.jsx("div",{className:"bg-white rounded-lg shadow-sm p-5 border border-border/50 animate-pulse",children:e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"w-16 h-16 rounded-xl bg-gray-200 flex-shrink-0"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-start justify-between gap-2 mb-2",children:[e.jsxs("div",{className:"space-y-2 flex-1",children:[e.jsx("div",{className:"h-5 bg-gray-200 rounded w-1/3"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"h-3 bg-gray-200 rounded w-28"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-20"})]})]}),e.jsx("div",{className:"h-8 bg-gray-200 rounded w-20"})]}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[e.jsx("div",{className:"h-5 bg-gray-200 rounded w-20"}),e.jsx("div",{className:"h-5 bg-gray-200 rounded w-24"}),e.jsx("div",{className:"h-5 bg-gray-200 rounded w-16"})]}),e.jsxs("div",{className:"space-y-2 mb-3",children:[e.jsx("div",{className:"h-3 bg-gray-200 rounded w-full"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-3/4"})]}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[e.jsx("div",{className:"h-5 bg-gray-200 rounded w-16"}),e.jsx("div",{className:"h-5 bg-gray-200 rounded w-14"}),e.jsx("div",{className:"h-5 bg-gray-200 rounded w-20"})]}),e.jsxs("div",{className:"flex items-center justify-between pt-3 border-t border-border/50",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"h-3 bg-gray-200 rounded w-24"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-20"})]}),e.jsx("div",{className:"h-6 bg-gray-200 rounded w-24"})]})]})]})},n))}),F$=t=>{const a=AR.find(n=>n.label===t);return(a==null?void 0:a.label)??t},O$=({entities:t,onClearSelection:a,maxSelections:n})=>e.jsxs(Q,{className:"border-border/60",children:[e.jsxs(ce,{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold",children:"Comparison"}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Comparing ",t.length," of ",n," selected profiles"]})]}),e.jsx(T,{variant:"ghost",size:"sm",onClick:a,children:"Clear selection"})]}),e.jsx(ee,{children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("div",{className:"min-w-[640px] grid gap-4",children:[e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Profile"}),t.map(r=>e.jsx("div",{className:"font-semibold text-sm",children:r.name},r.id))]}),e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Products"}),t.map(r=>{const s=r.normalizedProfile;return e.jsx("div",{className:"flex flex-wrap gap-1",children:s.products.length===0?e.jsx("span",{className:"text-xs text-muted-foreground",children:"No normalized products"}):s.products.map(i=>e.jsx(he,{variant:"secondary",className:"text-xs",children:F$(i)},i))},r.id)})]}),e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Capabilities"}),t.map(r=>{const s=r.normalizedProfile;return e.jsx("div",{className:"flex flex-wrap gap-1",children:s.capabilities.length===0?e.jsx("span",{className:"text-xs text-muted-foreground",children:"No data"}):s.capabilities.map(i=>e.jsx(he,{variant:"outline",className:"text-xs",children:i},i))},r.id)})]}),e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Credibility"}),t.map(r=>{const s=r.normalizedProfile;return e.jsxs("div",{className:"text-sm text-muted-foreground space-y-1",children:[e.jsxs("div",{children:["Licenses: ",e.jsx("span",{className:"text-foreground",children:s.credibility.licenses})]}),e.jsxs("div",{children:["Awards: ",e.jsx("span",{className:"text-foreground",children:s.credibility.awards})]}),e.jsxs("div",{children:["Years active:"," ",e.jsx("span",{className:"text-foreground",children:s.credibility.yearsActive??"N/A"})]})]},r.id)})]}),e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Commercial Signals"}),t.map(r=>{const s=r.normalizedProfile;return e.jsxs("div",{className:"text-sm text-muted-foreground space-y-1",children:[e.jsxs("div",{children:["Profile views (30d):"," ",e.jsx("span",{className:"text-foreground",children:s.commercialSignals.profileViews30d})]}),e.jsxs("div",{children:["Followers:"," ",e.jsx("span",{className:"text-foreground",children:s.commercialSignals.followsCount})]}),e.jsxs("div",{children:["Hiring intensity:"," ",e.jsx("span",{className:"text-foreground",children:s.commercialSignals.hiringIntensity})]}),e.jsxs("div",{children:["Search impressions:"," ",e.jsx("span",{className:"text-foreground",children:s.commercialSignals.searchImpressions})]})]},r.id)})]})]})})})]}),H$=({viewMode:t,onToggleViewMode:a,selectedItemsPerPage:n,onItemsPerPageChange:r,totalCount:s,startIndex:i,endIndex:o,title:l,items:d})=>e.jsx("div",{className:"lg:block hidden bg-white rounded-lg shadow-sm border border-gray-200 p-4 mb-6",children:e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(rt,{className:"w-5 h-5 text-muted-foreground"}),e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:l})]}),e.jsxs("p",{className:"text-sm text-gray-600",children:["Showing ",e.jsx("span",{className:"font-semibold text-gray-900",children:i}),"–",e.jsx("span",{className:"font-semibold text-gray-900",children:o})," of"," ",e.jsx("span",{className:"font-semibold text-gray-900",children:s})," ",d]})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3",children:[e.jsx(QA,{viewMode:t,onToggle:a}),e.jsx(eP,{value:n,onChange:r})]})]})}),V$=()=>e.jsx("section",{className:"bg-gradient-to-br from-primary via-primary to-primary-variant py-12",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-3xl",children:[e.jsxs(Dc,{className:"bg-accent/20 text-accent border-accent/30 mb-4",children:[e.jsx(Ca,{className:"w-3 h-3 mr-1"}),"iGaming Intelligence"]}),e.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-primary-foreground mb-3",children:"iGaming Company Directory"}),e.jsx("p",{className:"text-primary-foreground/80 text-lg",children:"Discover operators, suppliers, affiliates, and service providers. Filter by type, vertical, jurisdiction, and hiring signals."})]})})}),X9=4,B$=t=>(t.companyType?1:0)+t.verticals.length+t.productCategories.length+t.employeeRanges.length+t.products.length+t.openRolesRanges.length+t.yearsActiveRanges.length+(t.hiringNow?1:0)+(t.claimedOnly?1:0)+(t.hasLicenses?1:0)+(t.hasAwards?1:0),_R=({companies:t,filterOptions:a,loading:n,page:r,pageSize:s,totalCount:i,totalPages:o,onPageChange:l,onPageSizeChange:d,filters:h,onFiltersChange:u,onClearFilters:p,viewMode:y,onViewModeChange:m,followDisabled:x=!1,followLoading:f=!1,onToggleFollow:v,onFollowAction:k,saveDisabled:w=!1,saveLoading:b=!1,onToggleSave:C,onSaveAction:j})=>{const[I,N]=M.useState(!1),[S,L]=M.useState([]),[q,_]=M.useState(!0),{displayCompanies:A,comparisonEntities:D}=M.useMemo(()=>{const X=t.map(Z=>{var fe,we,J;const le=h.scope==="group",ae=((we=(fe=Z.group)==null?void 0:fe.companies)==null?void 0:we.length)??1;return{company:Z,displayName:le?((J=Z.group)==null?void 0:J.name)??Z.groupName??Z.name:Z.name,openRolesCount:Array.isArray(Z.jobs.openRoles)?Z.jobs.openRoles.length:Z.jobs.openRoles,groupMembersCount:ae,isGroup:le,comparisonProfile:z$(Z),comparisonId:Z.id}});return{displayCompanies:X,comparisonEntities:X.map(Z=>({id:Z.comparisonId,name:Z.displayName,normalizedProfile:Z.comparisonProfile}))}},[t,h.scope]),H=M.useMemo(()=>B$(h),[h]),G=M.useMemo(()=>D.filter(X=>S.includes(X.id)),[D,S]);M.useEffect(()=>{L([])},[h.scope]),M.useEffect(()=>{L(X=>X.filter(Z=>D.some(le=>le.id===Z)))},[D]);const V=X=>{L(Z=>Z.includes(X)?Z.filter(le=>le!==X):Z.length>=X9?Z:[...Z,X])},$=()=>{L([])},F=i===0?0:(r-1)*s+1,re=Math.min(r*s,i),K=y==="grid"?"grid gap-6 sm:grid-cols-2 xl:grid-cols-3":"space-y-4";return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(V$,{}),e.jsx("section",{className:"py-8",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"flex gap-8",children:[e.jsx("aside",{className:"hidden lg:block w-80 flex-shrink-0",children:e.jsxs("div",{className:"sticky top-24 bg-card rounded-xl border border-border p-5",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[e.jsx(Cn,{className:"w-5 h-5 text-accent"}),e.jsx("h2",{className:"font-semibold",children:"Filters"})]}),e.jsx(bL,{filters:h,options:a,onFiltersChange:u,onClearFilters:p,resultCount:i})]})}),e.jsxs("main",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"lg:hidden mb-4",children:e.jsxs(T,{variant:"outline",onClick:()=>N(!0),className:"w-full",children:[e.jsx(Cn,{className:"w-4 h-4 mr-2"}),"Filters",H>0&&e.jsx(he,{variant:"secondary",className:"ml-2",children:"Active"})]})}),e.jsx(H$,{viewMode:y,onToggleViewMode:m,selectedItemsPerPage:s,onItemsPerPageChange:d,totalCount:i,startIndex:F,endIndex:re,title:"All companies",items:"companies"}),e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsx("div",{className:"flex items-center gap-3"}),e.jsxs("div",{className:"flex items-center gap-2",children:[S.length>0&&e.jsxs(T,{variant:"outline",size:"sm",onClick:()=>_(X=>!X),children:[q?"Hide comparison":"Show comparison"," (",S.length,")"]}),e.jsx("span",{className:"text-sm text-muted-foreground hidden sm:inline",children:"Sort by:"}),e.jsxs(T,{variant:"ghost",size:"sm",className:"text-accent",children:[e.jsx(Pa,{className:"w-4 h-4 mr-1"}),"Most Active"]})]})]}),G.length>0&&q&&e.jsx("div",{className:"mb-6",children:e.jsx(O$,{entities:G,onClearSelection:$,maxSelections:X9})}),n?e.jsx(E$,{count:s}):e.jsx("div",{className:K,children:A.map(X=>e.jsx($H,{company:X.company,displayName:X.displayName,openRolesCount:X.openRolesCount,groupMembersCount:X.groupMembersCount,isGroup:X.isGroup,viewMode:y,compareId:X.comparisonId,compareSelected:S.includes(X.comparisonId),compareDisabled:!S.includes(X.comparisonId)&&S.length>=X9,onToggleCompare:V,followDisabled:x,followLoading:f,onToggleFollow:v,onFollowAction:k,saveDisabled:w,saveLoading:b,onToggleSave:C,onSaveAction:j},X.company.id))}),!n&&o>1&&e.jsx(Kj,{currentPage:r,totalPages:o,onPageChange:l}),!n&&i===0&&e.jsxs("div",{className:"text-center py-16",children:[e.jsx(rt,{className:"w-12 h-12 text-muted-foreground mx-auto mb-4"}),e.jsxs("h3",{className:"text-lg font-medium mb-2",children:["No ",h.scope==="group"?"groups":"companies"," found"]}),e.jsx("p",{className:"text-muted-foreground mb-4",children:"Try adjusting your filters"}),e.jsx(T,{variant:"outline",onClick:p,children:"Clear all filters"})]})]})]})})}),I&&e.jsxs("div",{className:"fixed inset-0 z-50 lg:hidden",children:[e.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:()=>N(!1)}),e.jsxs("div",{className:"absolute right-0 top-0 h-full w-full max-w-sm bg-background p-6 overflow-y-auto",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsx("h2",{className:"font-semibold text-lg",children:"Filters"}),e.jsx(T,{variant:"ghost",size:"icon",onClick:()=>N(!1),children:e.jsx(Ct,{className:"w-5 h-5"})})]}),e.jsx(bL,{filters:h,options:a,onFiltersChange:u,onClearFilters:p,resultCount:i})]})]})]})},Et=g.forwardRef(({className:t,...a},n)=>e.jsx("textarea",{className:ye("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:n,...a}));Et.displayName="Textarea";const $$=({company:t,open:a,onOpenChange:n,onClaimSubmit:r,claimPrefill:s})=>{const[i,o]=M.useState(1),l=y=>({fullName:(y==null?void 0:y.fullName)??"",workEmail:(y==null?void 0:y.workEmail)??"",jobTitle:(y==null?void 0:y.jobTitle)??"",relationship:"",message:""}),[d,h]=M.useState(()=>l(s));M.useEffect(()=>{a&&h(l(s))},[a,s]);const u=()=>{r==null||r({companyId:t.id,companySlug:t.slug,companyName:t.name,fullName:d.fullName,workEmail:d.workEmail,jobTitle:d.jobTitle,relationship:d.relationship,message:d.message}),o(3)},p=()=>{o(1),h(l(s)),n(!1)};return e.jsx(St,{open:a,onOpenChange:p,children:e.jsxs(xt,{className:"sm:max-w-[500px]",children:[i===1&&e.jsxs(e.Fragment,{children:[e.jsxs(da,{children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-accent/20 to-gaming-gold/20 flex items-center justify-center mb-2",children:e.jsx(rt,{className:"w-6 h-6 text-accent"})}),e.jsxs(st,{children:["Claim ",t.name,"'s Profile"]}),e.jsx(Tn,{children:"Verify your affiliation to manage this company's page, add products, respond to reviews, and access analytics."})]}),e.jsx("div",{className:"space-y-4 py-4",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx(tt,{className:"w-5 h-5 text-gaming-success mt-0.5"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:"Update company information"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Add products, edit descriptions, and manage your profile"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx(tt,{className:"w-5 h-5 text-gaming-success mt-0.5"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:"Access analytics"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"See who's viewing your profile and track engagement"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx(tt,{className:"w-5 h-5 text-gaming-success mt-0.5"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:"Publish jobs & events"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Post open roles and announce event attendance"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx(tt,{className:"w-5 h-5 text-gaming-success mt-0.5"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:"Enable meeting bookings"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Let potential partners request meetings at events"})]})]})]})}),e.jsxs(Zt,{children:[e.jsx(T,{variant:"outline",onClick:p,children:"Cancel"}),e.jsxs(T,{variant:"accent",onClick:()=>o(2),children:["Continue",e.jsx(yo,{className:"w-4 h-4 ml-2"})]})]})]}),i===2&&e.jsxs(e.Fragment,{children:[e.jsxs(da,{children:[e.jsx(st,{children:"Verify Your Affiliation"}),e.jsxs(Tn,{children:["We'll verify your work email domain to confirm your connection to ",t.name,"."]})]}),e.jsx("div",{className:"space-y-4 py-4",children:e.jsxs("div",{className:"grid gap-4",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(O,{htmlFor:"fullName",children:"Full Name"}),e.jsx(de,{id:"fullName",placeholder:"John Smith",value:d.fullName,onChange:y=>h({...d,fullName:y.target.value})})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(O,{htmlFor:"workEmail",children:"Work Email"}),e.jsxs("div",{className:"relative",children:[e.jsx(ca,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(de,{id:"workEmail",type:"email",placeholder:`you@${t.overview.website.replace(/^https?:\/\/(www\.)?/,"").split("/")[0]}`,className:"pl-10",value:d.workEmail,onChange:y=>h({...d,workEmail:y.target.value})})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"We'll send a verification link to this address"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(O,{htmlFor:"jobTitle",children:"Job Title"}),e.jsxs("div",{className:"relative",children:[e.jsx(Ze,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(de,{id:"jobTitle",placeholder:"e.g., Marketing Manager",className:"pl-10",value:d.jobTitle,onChange:y=>h({...d,jobTitle:y.target.value})})]})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(O,{htmlFor:"relationship",children:"Your Role"}),e.jsxs(tn,{value:d.relationship,onValueChange:y=>h({...d,relationship:y}),children:[e.jsx(za,{children:e.jsx(an,{placeholder:"Select your relationship"})}),e.jsxs(Ea,{children:[e.jsx(Mt,{value:"employee",children:"Current Employee"}),e.jsx(Mt,{value:"founder",children:"Founder / Executive"}),e.jsx(Mt,{value:"hr",children:"HR / Recruiting"}),e.jsx(Mt,{value:"marketing",children:"Marketing / PR"}),e.jsx(Mt,{value:"agency",children:"Authorized Agency"})]})]})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(O,{htmlFor:"message",children:"Additional Information (Optional)"}),e.jsx(Et,{id:"message",placeholder:"Any additional context to help verify your claim...",value:d.message,onChange:y=>h({...d,message:y.target.value}),rows:3})]})]})}),e.jsxs(Zt,{children:[e.jsx(T,{variant:"outline",onClick:()=>o(1),children:"Back"}),e.jsx(T,{variant:"accent",onClick:u,disabled:!d.fullName||!d.workEmail||!d.relationship,children:"Submit Claim Request"})]})]}),i===3&&e.jsxs(e.Fragment,{children:[e.jsxs(da,{className:"text-center",children:[e.jsx("div",{className:"w-16 h-16 rounded-full bg-gaming-success/10 flex items-center justify-center mx-auto mb-4",children:e.jsx(tt,{className:"w-8 h-8 text-gaming-success"})}),e.jsx(st,{children:"Claim Request Submitted!"}),e.jsxs(Tn,{className:"text-center",children:["We've sent a verification email to ",e.jsx("strong",{children:d.workEmail}),". Click the link in the email to verify your affiliation."]})]}),e.jsx("div",{className:"py-4",children:e.jsxs("div",{className:"p-4 bg-secondary/50 rounded-lg text-sm text-muted-foreground",children:[e.jsx("p",{className:"font-medium text-foreground mb-2",children:"What happens next?"}),e.jsxs("ul",{className:"space-y-2",children:[e.jsx("li",{children:"• Check your email for the verification link"}),e.jsx("li",{children:"• Our team will review your claim within 24-48 hours"}),e.jsx("li",{children:"• You'll receive an email once your claim is approved"})]})]})}),e.jsx(Zt,{children:e.jsx(T,{variant:"accent",onClick:p,className:"w-full",children:"Done"})})]})]})})},U$=({headquarters:t,foundedYear:a,employeeRange:n,className:r})=>e.jsxs("div",{className:ye("flex flex-wrap items-center gap-4 text-sm text-muted-foreground",r),children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Qe,{className:"h-4 w-4"}),t.city,", ",t.country]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(xo,{className:"h-4 w-4"}),"Founded ",a]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(mt,{className:"h-4 w-4"}),n," employees"]})]});function RR({companyName:t,isAdminView:a=!1,companyType:n,overview:r,classification:s,companyId:i,companySlug:o,groupLabel:l,groupSlug:d,claimedStatus:h,isFollowing:u,signalsAndInsights:p,openRolesCount:y,trustScore:m,isSaved:x,onBack:f,saveDisabled:v,saveLoading:k,canClaim:w,onToggleFollow:b,onFollowAction:C,onToggleSave:j,onSaveAction:I,role:N="viewer",enabledPermissions:S=[],followLoading:L=!1,followDisabled:q=!1,onClaimClick:_}){const A=x,D=q||L,H=u?"Unfollow Company":"Follow Company",G=v||k,V=A?"Remove from Saved":"Save Company",$=()=>h==="claimed"?e.jsxs(he,{className:"bg-accent/10 text-accent border-accent/20",children:[e.jsx(tt,{className:"w-3 h-3 mr-1"}),"Claimed"]}):null,F=()=>{const K=!u;b==null||b(i,K),C==null||C({companyId:i,companySlug:o,action:K?"follow":"unfollow"})},re=()=>{const K=!A;j==null||j(i,K),I==null||I({companyId:i,companySlug:o,companyName:t,action:K?"save":"unsave"})};return e.jsx("section",{className:"bg-gradient-to-br from-primary via-primary to-primary-variant py-8",children:e.jsxs("div",{className:"container mx-auto px-4",children:[f&&e.jsxs("button",{type:"button",onClick:f,className:"inline-flex items-center text-primary-foreground/70 hover:text-primary-foreground mb-6 text-sm",children:[e.jsx(Ja,{className:"w-4 h-4 mr-1"}),"Back to Directory"]}),e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsx("div",{className:"w-20 h-20 rounded-2xl bg-white/10 backdrop-blur flex items-center justify-center flex-shrink-0",children:e.jsx(rt,{className:"w-10 h-10 text-primary-foreground"})}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-2",children:[e.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:t}),$()]}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[e.jsx(he,{variant:"secondary",children:n}),l&&e.jsx("a",{href:d?`/groups/${d}`:"/groups",children:e.jsxs(he,{variant:"outline",className:"border-primary-foreground/30 text-primary-foreground",children:["Part of ",l]})}),s.verticals.map(K=>e.jsx(he,{variant:"outline",className:"border-primary-foreground/30 text-primary-foreground",children:K},K))]}),e.jsx(U$,{headquarters:r.headquarters,foundedYear:r.foundedYear,employeeRange:r.employeeRange,className:"mb-4 text-primary-foreground/80"}),a?e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs(he,{variant:"secondary",className:"",children:["Role: ",N]}),S.length>0?S.map(([K,X])=>e.jsx(he,{variant:"outline",children:X},K)):e.jsx("span",{className:"text-xs text-muted-foreground",children:"No extra permissions"})]}):e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsxs(T,{variant:"accent",onClick:F,disabled:D,"aria-label":`${H} ${t}`,"aria-pressed":u,"aria-busy":L,title:H,children:[L?e.jsx(at,{className:"w-4 h-4 mr-2 animate-spin"}):u?e.jsx(tt,{className:"w-4 h-4 mr-2"}):e.jsx(Nn,{className:"w-4 h-4 mr-2"}),L?"Loading":u?"Following":"Follow"]}),e.jsxs(T,{variant:A?"secondary":"outline",className:"border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground/10",onClick:re,disabled:G,"aria-label":`${V} ${t}`,"aria-pressed":A,"aria-busy":k,title:V,children:[k?e.jsx(at,{className:"w-4 h-4 mr-2 animate-spin"}):e.jsx(xa,{className:`w-4 h-4 mr-2 ${A?"fill-current":"fill-transparent"}`}),k?"Loading":A?"Saved":"Save"]}),h==="unclaimed"&&e.jsx(T,{variant:"ghost",className:"text-primary-foreground",onClick:_,children:"Claim Profile"})]})]}),e.jsxs("div",{className:"flex gap-4 md:gap-6",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-primary-foreground",children:y}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Open Jobs"})]}),e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"text-2xl font-bold text-primary-foreground",children:[(p.profileViews30d/1e3).toFixed(1),"k"]}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Views/30d"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-primary-foreground",children:m}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Trust Signals"})]})]})]})]})})}const TR=({items:t,className:a})=>e.jsx(rn,{className:["flex-wrap h-auto gap-1 bg-secondary/50 p-1",a].join(" "),children:t.filter(n=>!n.hidden).map(({value:n,label:r,icon:s,disabled:i})=>e.jsxs(Pe,{value:n,disabled:i,children:[s&&e.jsx(s,{className:"w-4 h-4 mr-1.5"}),r]},n))}),G$=({overview:t,classification:a,officeLocations:n,formatOfficeLocation:r})=>e.jsxs(je,{value:"overview",className:"space-y-6 mt-0",children:[e.jsxs(Q,{children:[e.jsx(ce,{children:e.jsx(ue,{children:"About"})}),e.jsxs(ee,{children:[e.jsx("p",{className:"text-muted-foreground mb-4",children:t.longDescription||t.shortDescription}),e.jsx("div",{className:"flex flex-wrap gap-2",children:a.tags.map(s=>e.jsxs(he,{variant:"secondary",children:["#",s]},s))})]})]}),e.jsxs(Q,{children:[e.jsx(ce,{children:e.jsx(ue,{children:"Office Locations"})}),e.jsx(ee,{children:e.jsx("div",{className:"flex flex-wrap gap-3",children:n.map((s,i)=>e.jsxs(he,{variant:"outline",children:[e.jsx(Qe,{className:"w-3 h-3 mr-1"}),r(s)]},i))})})]})]}),W$=({products:t})=>e.jsx(je,{value:"products",className:"space-y-4 mt-0",children:t.map((a,n)=>e.jsxs(Q,{children:[e.jsx(ce,{children:e.jsx("div",{className:"flex items-start justify-between",children:e.jsxs("div",{children:[e.jsx(ue,{className:"text-lg",children:a.name}),e.jsx(he,{variant:"secondary",className:"mt-1",children:a.category})]})})}),e.jsxs(ee,{children:[e.jsx("p",{className:"text-muted-foreground mb-3",children:a.description}),e.jsx("div",{className:"flex flex-wrap gap-2",children:a.keyDifferentiators.map((r,s)=>e.jsxs(he,{variant:"outline",children:[e.jsx(al,{className:"w-3 h-3 mr-1"}),r]},s))})]})]},n))}),Z$=new Set(["malta","italy","spain","netherlands","united kingdom","germany","sweden","romania","croatia","serbia","brazil"]),J$=({companyTrustData:t,credibilityEvidence:a})=>{const n=h=>typeof h=="string"?h:`${h.authority} (${h.jurisdiction})`,r=h=>typeof h=="string"?h:`${h.name} (${h.year})`;function s(h=[]){const u=h.map(p=>p.toLowerCase());return i.flatMap(p=>u.find(m=>p.aliases.some(x=>m.includes(x)))?[{name:p.name,year:new Date().getFullYear()}]:[])}const i=[{key:"migea",name:"Malta iGaming Excellence Awards",aliases:["migea","malta igaming excellence awards","malta gaming excellence awards"]},{key:"egr",name:"EGR Awards",aliases:["egr awards","egr b2b awards","egr operator awards"]},{key:"sigma",name:"SiGMA Awards",aliases:["sigma awards","sigma igaming awards"]},{key:"ice",name:"ICE Gaming Awards",aliases:["ice gaming awards","ice awards"]}],o=s((a==null?void 0:a.awards_mentioned)??[]),l=d((a==null?void 0:a.countries_mentioned)??[],Z$);function d(h=[],u){return Array.from(new Set(h.map(p=>p.toLowerCase()).filter(p=>u.has(p)).map(p=>p[0].toUpperCase()+p.slice(1))))}return e.jsxs(je,{value:"trust",className:"space-y-4 mt-0",children:[t.licenses.length>0&&e.jsxs(Q,{children:[e.jsx(ce,{children:e.jsxs(ue,{className:"flex items-center gap-2",children:[e.jsx(An,{className:"w-5 h-5 text-gaming-success"}),"Licenses"]})}),e.jsx(ee,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:t.licenses.map((h,u)=>e.jsx(he,{className:"bg-gaming-success/10 text-gaming-success",children:n(h)},u))})})]}),t.awards.length>0&&e.jsxs(Q,{children:[e.jsx(ce,{children:e.jsxs(ue,{className:"flex items-center gap-2",children:[e.jsx(na,{className:"w-5 h-5 text-gaming-gold"}),"Awards"]})}),e.jsx(ee,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:t.awards.map((h,u)=>e.jsx(he,{className:"bg-gaming-gold/10 text-gaming-gold",children:r(h)},u))})})]}),o.length>0&&e.jsxs(Q,{children:[e.jsx(ce,{children:e.jsxs(ue,{className:"flex items-center gap-2",children:[e.jsx(na,{className:"w-5 h-5 text-gaming-gold"}),"Industry Recognition"]})}),e.jsx(ee,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:o.map((h,u)=>e.jsxs(he,{variant:"outline",children:[h.name,e.jsx("span",{className:"ml-1 text-xs text-muted-foreground",children:"(inferred)"})]},u))})})]}),l.length>0&&e.jsxs(Q,{children:[e.jsx(ce,{children:e.jsxs(ue,{className:"flex items-center gap-2",children:[e.jsx(oa,{className:"w-5 h-5 text-accent"}),"Markets Mentioned"]})}),e.jsx(ee,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:l.map((h,u)=>e.jsx(he,{variant:"secondary",children:h},u))})})]})]})},X$=({members:t})=>e.jsx(je,{value:"people",className:"mt-0",children:e.jsx(Q,{children:e.jsx(ee,{className:"py-6 space-y-4",children:t.length===0?e.jsx("p",{className:"text-center text-muted-foreground",children:"Employee profiles are opt-in. No verified members yet."}):t.map((a,n)=>e.jsxs("div",{className:"flex items-center justify-between gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:a.name}),e.jsx("p",{className:"text-sm text-muted-foreground",children:a.title})]}),a.profileUrl&&e.jsx("a",{href:a.profileUrl,target:"_blank",rel:"noreferrer",children:e.jsx(T,{size:"sm",variant:"outline",children:"View Profile"})})]},n))})})});function Cj({job:t,view:a,isSaved:n=!1,onApply:r,onSave:s,onRemove:i,onViewApplication:o}){var h;const l=t.city?`${t.city}, ${t.country}`:t.location,d=t.salaryMin&&t.salaryMax?`${t.salaryMin}–${t.salaryMax} ${t.salaryCurrency||""}`:void 0;return e.jsxs(Q,{children:[e.jsxs(ce,{children:[e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx(ue,{className:"text-lg",children:t.title}),e.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground mt-2",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Ko,{className:"h-4 w-4"}),t.company]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Qe,{className:"h-4 w-4"}),l]})]})]}),a==="applications"&&t.status&&e.jsx(he,{variant:"secondary",children:t.status})]}),d&&e.jsx("p",{className:"text-sm font-semibold text-accent mt-1",children:d})]}),e.jsx(ee,{children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex flex-wrap gap-2",children:[t.department&&e.jsx(he,{variant:"outline",children:t.department}),(h=t.skills)==null?void 0:h.slice(0,6).map(u=>e.jsx(he,{variant:"secondary",children:u},u))]}),a==="applications"&&t.appliedDate&&e.jsxs("p",{className:"text-xs text-muted-foreground flex items-center gap-1",children:[e.jsx(ga,{className:"h-3 w-3"}),"Applied ",t.appliedDate]}),e.jsxs("div",{className:"flex gap-2",children:[a==="recommended"&&e.jsxs(e.Fragment,{children:[e.jsx(T,{size:"sm",onClick:()=>r==null?void 0:r(t.id),children:"Apply Now"}),e.jsx(T,{size:"sm",variant:n?"secondary":"outline",disabled:n,onClick:()=>s==null?void 0:s(t),children:n?"Saved":"Save Job"}),e.jsx(T,{size:"sm",variant:"destructive",onClick:()=>i==null?void 0:i(t.id),children:"Remove"})]}),a==="saved"&&e.jsx(T,{size:"sm",variant:"destructive",onClick:()=>i==null?void 0:i(t.id),children:"Remove"}),a==="applications"&&e.jsx(T,{size:"sm",variant:"outline",onClick:()=>o==null?void 0:o(t.id),children:"View Application"}),a==="company"&&e.jsx(T,{size:"sm",variant:"outline",onClick:()=>{window.location.href=t.link},children:"Apply"})]})]})})]})}const Y$=({company:t,jobListings:a,openRolesCount:n})=>e.jsx(je,{value:"jobs",className:"space-y-4 mt-0",children:e.jsxs(Q,{children:[e.jsx(ce,{children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs(ue,{children:["Open Positions (",n,")"]}),e.jsx(he,{children:t.jobs.remotePolicy})]})}),e.jsx("div",{className:"grid gap-4 p-4",children:a.length===0?e.jsx(Q,{children:e.jsxs(ee,{className:"flex flex-col items-center justify-center py-10",children:[e.jsx(fa,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"No saved jobs yet"}),e.jsx(T,{variant:"link",className:"mt-2",children:"Browse Jobs"})]})}):a.map(r=>e.jsx(Cj,{job:r,view:"company"},r.id))})]})});function qC({article:t,view:a,isSaved:n=!1,onRead:r,onSave:s,onRemove:i}){var o;return e.jsxs(Q,{children:[e.jsxs(ce,{children:[e.jsxs("div",{className:"flex gap-2 items-start mb-2",children:[(o=t.categories)==null?void 0:o.map(l=>e.jsx(he,{variant:"secondary",children:l})),e.jsx("span",{className:"text-xs text-muted-foreground",children:t.publishedDate})]}),e.jsx(ue,{className:"text-lg",children:t.title}),e.jsxs(Se,{className:"text-xs",children:[t.source?t.source:t.company," • ",t.readTime," min"]})]}),e.jsx(ee,{children:e.jsxs("div",{className:"space-y-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:t.excerpt}),e.jsx("div",{className:"flex flex-wrap gap-2",children:t.tags.map(l=>e.jsx(he,{variant:"outline",className:"text-xs",children:l},l))}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:flex-wrap",children:[e.jsx(T,{size:"sm",onClick:()=>r==null?void 0:r(t.id),children:"Read Article"}),a==="recommended"&&e.jsxs(e.Fragment,{children:[e.jsx(T,{size:"sm",variant:n?"secondary":"outline",disabled:n,onClick:()=>s==null?void 0:s(t),children:n?"Saved":"Save"}),e.jsx(T,{size:"sm",variant:"destructive",onClick:()=>i==null?void 0:i(t.id),children:"Remove"})]}),a==="saved"&&e.jsx(T,{size:"sm",variant:"destructive",onClick:()=>i==null?void 0:i(t.id),children:"Remove Saved"}),a==="company"&&e.jsx(T,{size:"sm",variant:"outline",onClick:()=>r==null?void 0:r(t.id),children:"Read"})]})]})})]})}const K$=({companyNews:t,newsArticles:a=[]})=>{var s;const n=i=>typeof i=="string"?i:`${i.title} • ${i.source}`,r=i=>typeof i=="object"&&i!==null&&"url"in i;return e.jsx(je,{value:"news",className:"mt-0",children:e.jsxs(Q,{children:[e.jsx(ce,{children:e.jsxs(ue,{children:["News (",a.length,")"]})}),e.jsx(ee,{className:"py-6 space-y-4",children:a.length>0?e.jsx("div",{className:"grid gap-4",children:a.map(i=>e.jsx(qC,{article:i,view:"company",onRead:()=>window.open(i.link,"_blank")},i.id))}):(s=t==null?void 0:t.pressMentions)!=null&&s.length?t.pressMentions.map((i,o)=>e.jsxs("div",{className:"flex items-center justify-between gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx("span",{className:"text-sm",children:n(i)}),r(i)&&i.url&&e.jsx("a",{href:i.url,target:"_blank",rel:"noreferrer",children:e.jsx(T,{size:"sm",variant:"outline",children:"Read"})})]},o)):e.jsx("p",{className:"text-center text-muted-foreground",children:"No recent news mentions."})})]})})},Q$=({companyEvents:t,conferenceEvents:a=[]})=>{const n=s=>"name"in s?s.name:s.eventName,r=s=>"startDate"in s?`${s.startDate}${s.endDate?` - ${s.endDate}`:""}`:s.date;return e.jsx(je,{value:"events",className:"space-y-4 mt-0",children:a.length>0?e.jsxs(Q,{children:[e.jsx(ce,{children:e.jsx(ue,{className:"flex items-center gap-2",children:"Upcoming Events"})}),e.jsx(ee,{children:e.jsx("div",{className:"grid gap-4 p-4",children:a.map(s=>e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 p-3 m-3 rounded-xl border bg-card text-card-foreground shadow",children:[e.jsxs("div",{children:[e.jsxs("p",{className:"font-semibold text-lg",children:[s.conference," - ",s.event_year]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Stand: ",s.stand]})]}),e.jsx("a",{href:s.link,target:"_blank",rel:"noreferrer",children:e.jsx(T,{size:"sm",variant:"outline",children:"View"})})]},s._id))})})]}):t.upcomingEvents.map((s,i)=>e.jsxs("div",{className:"flex items-center justify-between p-3 bg-secondary/50 rounded-lg",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold tracking-tight text-lg",children:n(s)}),e.jsxs("p",{className:"font-semibold tracking-tight text-lg",children:[s.location," • ",r(s)]})]}),t.bookMeetingEnabled&&e.jsx(T,{size:"sm",variant:"accent",children:"Book Meeting"})]},i))})},eU=()=>e.jsx(je,{value:"insights",className:"mt-0",children:e.jsx(Q,{children:e.jsxs(ee,{className:"py-12 text-center",children:[e.jsx(ko,{className:"w-10 h-10 text-muted-foreground mx-auto mb-3"}),e.jsx("h3",{className:"font-semibold mb-2",children:"Premium Insights"}),e.jsx("p",{className:"text-muted-foreground mb-4",children:"Unlock demand trends, competitor analysis, and intent signals."}),e.jsx(T,{variant:"accent",children:"Upgrade to Access"})]})})}),tU=({companyOverview:t,intelligenceProfile:a})=>{var n;return e.jsxs("aside",{className:"space-y-4",children:[e.jsxs(Q,{children:[e.jsx(ce,{children:e.jsx(ue,{className:"text-base",children:"Contact"})}),e.jsxs(ee,{className:"space-y-3",children:[e.jsxs("a",{href:t.website,target:"_blank",className:"flex items-center gap-2 text-sm text-accent hover:underline",children:[e.jsx(oa,{className:"w-4 h-4"}),t.website.replace(/^https?:\/\//,"")]}),((n=t.socialLinks)==null?void 0:n.linkedin)&&e.jsxs("a",{href:t.socialLinks.linkedin,target:"_blank",className:"flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground",children:[e.jsx(Gc,{className:"w-4 h-4"}),"LinkedIn"]})]})]}),e.jsxs(Q,{children:[e.jsx(ce,{children:e.jsx(ue,{className:"text-base",children:"Similar Companies"})}),e.jsx(ee,{className:"space-y-2",children:a.similarCompanies.map((r,s)=>e.jsx("div",{className:"flex items-center gap-2 p-2 bg-secondary/50 rounded-lg text-sm",children:r},s))})]})]})},aU=t=>{var a,n;if(t==null)return"";if(typeof t=="string"&&t.startsWith("http"))return t;if(typeof t=="string"&&t.startsWith("{"))try{const r=JSON.parse(t.replace(/'/g,'"'));return(r==null?void 0:r.url)??""}catch{return""}return typeof t=="object"?(t==null?void 0:t.url)??((n=(a=t==null?void 0:t.formats)==null?void 0:a.thumbnail)==null?void 0:n.url)??"":""},DR=t=>({profileViews30d:(t==null?void 0:t.profile_views_30d)??(t==null?void 0:t.profileViews30d)??0,followsCount:(t==null?void 0:t.follows_count)??(t==null?void 0:t.followsCount)??0,hiringIntensity:(t==null?void 0:t.hiring_intensity)??(t==null?void 0:t.hiringIntensity)??"Low",topSkillsHiring:(t==null?void 0:t.top_skills_hiring)??(t==null?void 0:t.topSkillsHiring)??[],topViewingCountries:(t==null?void 0:t.top_viewing_countries)??(t==null?void 0:t.topViewingCountries)??[],oftenComparedWith:(t==null?void 0:t.often_compared_with)??(t==null?void 0:t.oftenComparedWith)??[],similarCompanies:(t==null?void 0:t.similar_companies)??(t==null?void 0:t.similarCompanies)??[]}),nU=t=>{if(t)return{capabilitiesScore:t.capabilities_score??t.capabilitiesScore??0,credibilityScore:t.credibility_score??t.credibilityScore??0,complianceScore:t.compliance_score??t.complianceScore??0,hiringScore:t.hiring_score??t.hiringScore??0,overallScore:t.overall_score??t.overallScore??0,detectedBusinessModel:t.detected_business_model??t.detectedBusinessModel??"",detectedProducts:t.detected_products??t.detectedProducts??[],detectedMarkets:t.detected_markets??t.detectedMarkets??[]}},rU=t=>({id:String(t.id??t.company_id??""),name:t.name??"",slug:t.slug??"",companyType:t.company_type??t.companyType,overview:t.overview?{shortDescription:t.overview.short_description??t.overview.shortDescription,headquarters:t.overview.headquarters,employeeRange:t.overview.employee_range??t.overview.employeeRange}:void 0,isPrimary:t.is_primary??t.isPrimary}),sU=t=>({id:String((t==null?void 0:t.id)??(t==null?void 0:t.group_id)??""),name:(t==null?void 0:t.name)??(t==null?void 0:t.group_name)??"",slug:(t==null?void 0:t.slug)??"",website:(t==null?void 0:t.website)??"",description:(t==null?void 0:t.description)??"",primaryCompanyId:(t==null?void 0:t.primary_company_id)??(t==null?void 0:t.primaryCompanyId)??"",companies:Array.isArray(t==null?void 0:t.companies)?t.companies.map(rU):[],intelligenceProfile:DR((t==null?void 0:t.intelligence_profile)??(t==null?void 0:t.intelligenceProfile))}),iU=t=>{var a,n;return{shortDescription:(t==null?void 0:t.shortDescription)??(t==null?void 0:t.short_description)??"",longDescription:(t==null?void 0:t.longDescription)??(t==null?void 0:t.long_description),foundedYear:typeof(t==null?void 0:t.foundedYear)=="number"?t.foundedYear:0,headquarters:{city:((a=t==null?void 0:t.headquarters)==null?void 0:a.city)??"",country:((n=t==null?void 0:t.headquarters)==null?void 0:n.country)??""},officeLocations:t==null?void 0:t.officeLocations,employeeRange:(t==null?void 0:t.employeeRange)??(t==null?void 0:t.employee_range)??"",publicCompany:t==null?void 0:t.publicCompany,stockTicker:t==null?void 0:t.stockTicker,website:(t==null?void 0:t.website)??"",socialLinks:t==null?void 0:t.socialLinks}},oU=t=>({searchImpressions:(t==null?void 0:t.searchImpressions)??0,profileClicks:(t==null?void 0:t.profileClicks)??0,externalClicks:(t==null?void 0:t.externalClicks)??0}),cU=t=>{var a,n,r;return{...t,overview:iU(t.overview),logo:aU(t.logo),jobs:lU(t.jobs),group:sU(t.group),groupId:t.groupId??t.group_id??((a=t.group)==null?void 0:a.id),groupName:t.groupName??t.group_name??((n=t.group)==null?void 0:n.name),groupSlug:t.group_slug??t.groupSlug??((r=t.group)==null?void 0:r.slug),signalsAndInsights:DR(t.signalsAndInsights??t.signals_and_insights??t.signalsAndInsights)??t.signalsAndInsights,visibilityMetrics:oU(t.visibilityMetrics),intelligenceProfile:nU(t.intelligence_profile??t.intelligenceProfile),classification:dU(t.classification)}},lU=t=>({openRoles:Array.isArray(t==null?void 0:t.openRoles)||typeof(t==null?void 0:t.openRoles)=="number"?t.openRoles:[],departmentsHiring:Array.isArray(t==null?void 0:t.departmentsHiring)?t.departmentsHiring:[],locationsHiring:Array.isArray(t==null?void 0:t.locationsHiring)?t.locationsHiring:[],remotePolicy:(t==null?void 0:t.remotePolicy)??""}),dU=t=>({businessModel:(t==null?void 0:t.businessModel)??(t==null?void 0:t.business_model)??"",verticals:Array.isArray(t==null?void 0:t.verticals)?t.verticals:[],productCategories:Array.isArray(t==null?void 0:t.productCategories)?t.productCategories:[],tags:((t==null?void 0:t.tags)??[]).map(a=>typeof a=="string"?a:a.title??a.tag??"")}),hU=t=>({count:(t==null?void 0:t.count)??0,page:(t==null?void 0:t.page)??1,pageSize:(t==null?void 0:t.page_size)??(t==null?void 0:t.pageSize)??0,totalPages:(t==null?void 0:t.total_pages)??(t==null?void 0:t.totalPages)??1,results:Array.isArray(t==null?void 0:t.results)?t.results.map(cU):[],filterOptions:(t==null?void 0:t.filter_options)??(t==null?void 0:t.filterOptions)}),uU=t=>{if(typeof t=="string")return t;const a=t.city??t.cities??t.location,n=t.country;return`${a??"Remote"}, ${n??"Global"}`},pU=[{name:"Casino Games (Slots & RNG)",category:"Game Content",description:"RNG-based casino games including slots and table games.",keywords:["slot","rng","casino game","table game","jackpot","buy bonus"],negativeKeywords:["live casino games","live casino"],priority:10},{name:"Live Casino Games",category:"Live Casino",description:"Live dealer games streamed from professional studios.",keywords:["live casino games","live dealer games","roulette games","live roulette","sic-bo","presenter"],negativeKeywords:["real-time reporting"],priority:10},{name:"iGaming Platform / PAM",category:"Platform",description:"Core iGaming platform including player accounts, wallet, and cashier.",keywords:["pam","aggregation platform","cashier","player account"],negativeKeywords:[],priority:10},{name:"Game Aggregation",category:"Aggregation",description:"Single API access to multiple game providers.",keywords:["aggregation","aggregator","single api","content hub"],negativeKeywords:[],priority:10},{name:"Bonus & Promotions Platform",category:"CRM & Engagement",description:"Bonus management, promotions, and player engagement tools.",keywords:["bonus tools","promotional tools","free spins tools","tournament","leaderboard","rewards tools","bonus features","bonus platform"],negativeKeywords:[],priority:10},{name:"Back Office & Analytics",category:"Operations",description:"Reporting, dashboards, and performance analytics.",keywords:["back office","real-time reporting","analytics","easy-to-use tools","insights"],negativeKeywords:[],priority:10},{name:"Live Casino Infrastructure",category:"Technology",description:"Hardware, streaming, and infrastructure for live casino operations.",keywords:["streaming","video streaming","Live Casino studio","professional game hosts"],negativeKeywords:[],priority:10},{name:"Payments & Payouts",category:"Payments",description:"Payment processing, deposits, and withdrawals.",keywords:["Payment processing","psp","payout","withdrawal","deposit"],negativeKeywords:[],priority:10},{name:"Compliance & Risk",category:"Compliance",description:"KYC, AML, fraud prevention, and responsible gaming.",keywords:["kyc detection","aml detection","compliance tools","fraud detection","fraud prevention","responsible gaming tools"],negativeKeywords:[],priority:10}];function mU(t,a){var i;const n=a.toLowerCase();return!(!t.keywords.some(o=>n.includes(o))||((i=t.negativeKeywords)==null?void 0:i.some(o=>n.includes(o))))}function yU(t){return t!==null}const fU=t=>pU.map(a=>{const n=t.filter(r=>mU(a,r));return n.length===0?null:{name:a.name,category:a.category,description:a.description,keyDifferentiators:Array.from(new Set(n)),source:"derived",confidence:Math.min(1,n.length/5),priority:a.priority}}).filter(yU).sort((a,n)=>n.priority-a.priority),xU=({company:t,jobs:a,news:n,events:r,followLoading:s=!1,followDisabled:i=!1,onToggleFollow:o,onFollowAction:l,saveLoading:d=!1,saveDisabled:h=!1,onToggleSave:u,onSaveAction:p,canClaim:y,onClaimSubmit:m,claimPrefill:x,onBack:f})=>{var H,G,V,$,F,re,K,X;const[v,k]=M.useState(!1);if(!t)return e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"container mx-auto px-4 py-16 text-center",children:[e.jsx(rt,{className:"w-16 h-16 text-muted-foreground mx-auto mb-4"}),e.jsx("h1",{className:"text-2xl font-bold mb-2",children:"Company Not Found"}),e.jsx("p",{className:"text-muted-foreground mb-6",children:"The company you're looking for doesn't exist."}),e.jsx("a",{href:"/companies",children:e.jsx(T,{variant:"accent",children:"Browse Directory"})})]})});const w=[{value:"overview",label:"Overview",icon:jn},{value:"products",label:"Products",icon:Xc},{value:"trust",label:"Trust",icon:An},{value:"people",label:"People",icon:Mo},{value:"jobs",label:"Jobs",icon:Ze},{value:"news",label:"News",icon:Aa},{value:"events",label:"Events",icon:fo},{value:"insights",label:"Insights",icon:ko,disabled:!0}],b=((G=(H=t.webIntelligence)==null?void 0:H.menus.primary_nav_details)==null?void 0:G.flatMap(Z=>Z.key_points))??[],C=t.trustAndCompliance.licenses.length+t.trustAndCompliance.certifications.length+t.trustAndCompliance.awards.length,j=t.signalsAndInsights,I=a??[],N=n??[],S=r??[],L=I.length>0?I.length:Array.isArray(t.jobs.openRoles)?t.jobs.openRoles.length:t.jobs.openRoles,q=((V=t.group)==null?void 0:V.name)??t.groupName??t.group_name??null,_=(($=t.group)==null?void 0:$.slug)??t.groupSlug??t.group_slug??((F=t.group)==null?void 0:F.id)??t.groupId??t.group_id??void 0,A=fU(b),D=[...t.productsAndServices??[],...A??[]];return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(RR,{companyName:t.name,companyType:t.companyType,overview:t.overview,classification:t.classification,companyId:t.id,companySlug:t.slug,groupSlug:_,groupLabel:q??"Gaming",signalsAndInsights:t.signalsAndInsights,claimedStatus:t.claimedStatus,isFollowing:t.isFollowing,isSaved:t.isSaved,openRolesCount:L,trustScore:C,onBack:f,saveDisabled:h,saveLoading:d,canClaim:y,onToggleFollow:o,onFollowAction:l,onToggleSave:u,onSaveAction:p,followLoading:s,followDisabled:i,onClaimClick:()=>k(!0)}),e.jsx("section",{className:"py-6",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs(nn,{defaultValue:"overview",className:"space-y-6",children:[e.jsx(TR,{items:w}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[e.jsx(G$,{overview:t.overview,classification:t.classification,officeLocations:t.overview.officeLocations??[],formatOfficeLocation:uU}),e.jsx(W$,{products:D}),e.jsx(J$,{companyTrustData:t.trustAndCompliance,credibilityEvidence:(X=(K=(re=t.webIntelligence)==null?void 0:re.signals)==null?void 0:K.evidence)==null?void 0:X.credibility}),e.jsx(X$,{members:t.people.members}),e.jsx(Y$,{company:t,jobListings:I,openRolesCount:L}),e.jsx(K$,{companyNews:t.newsAndMedia,newsArticles:N}),e.jsx(Q$,{companyEvents:t.events,conferenceEvents:S}),e.jsx(eU,{})]}),e.jsx(tU,{companyOverview:t.overview,intelligenceProfile:j})]})]})})}),e.jsx($$,{company:t,open:v,onOpenChange:k,onClaimSubmit:m,claimPrefill:x})]})},gU=({group:t})=>{var r,s;if(!t)return e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"container mx-auto px-4 py-16 text-center",children:[e.jsx(rt,{className:"w-16 h-16 text-muted-foreground mx-auto mb-4"}),e.jsx("h1",{className:"text-2xl font-bold mb-2",children:"Group Not Found"}),e.jsx("p",{className:"text-muted-foreground mb-6",children:"The group you're looking for doesn't exist."}),e.jsx("a",{href:"/companies",children:e.jsx(T,{variant:"accent",children:"Browse Companies"})})]})});const a=t.intelligenceProfile,n=((r=t.companies)==null?void 0:r.length)??0;return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx("section",{className:"bg-gradient-to-br from-primary via-primary to-primary-variant py-8",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("a",{href:"/companies",className:"inline-flex items-center text-primary-foreground/70 hover:text-primary-foreground mb-6 text-sm",children:[e.jsx(Ja,{className:"w-4 h-4 mr-1"})," Back to Directory"]}),e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsx("div",{className:"w-20 h-20 rounded-2xl bg-white/10 backdrop-blur flex items-center justify-center flex-shrink-0",children:e.jsx(rt,{className:"w-10 h-10 text-primary-foreground"})}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-2",children:[e.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:t.name}),e.jsx(he,{className:"bg-white/10 text-primary-foreground border-white/20",children:"Company Group"})]}),t.description&&e.jsx("p",{className:"text-primary-foreground/80 text-sm mb-4 max-w-2xl",children:t.description}),e.jsx("div",{className:"flex flex-wrap gap-2",children:t.website&&e.jsx("a",{href:t.website,target:"_blank",rel:"noreferrer",children:e.jsxs(T,{variant:"outline",className:"border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground/10",children:[e.jsx(oa,{className:"w-4 h-4 mr-2"})," Visit Website"]})})})]}),a&&e.jsxs("div",{className:"flex gap-4 md:gap-6",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-primary-foreground",children:n}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Member Companies"})]}),e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"text-2xl font-bold text-primary-foreground",children:[(a.profileViews30d/1e3).toFixed(1),"k"]}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Views/30d"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-primary-foreground",children:a.followsCount.toLocaleString()}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Followers"})]})]})]})]})}),e.jsx("section",{className:"py-8",children:e.jsxs("div",{className:"container mx-auto px-4 space-y-6",children:[e.jsxs(Q,{children:[e.jsx(ce,{children:e.jsx(ue,{children:"Group Overview"})}),e.jsxs(ee,{className:"space-y-4",children:[t.website&&e.jsxs("div",{className:"flex items-center gap-2 text-sm text-accent",children:[e.jsx(oa,{className:"w-4 h-4"}),e.jsx("a",{href:t.website,target:"_blank",rel:"noreferrer",className:"hover:underline",children:t.website.replace(/^https?:\/\//,"")})]}),t.description?e.jsx("p",{className:"text-muted-foreground",children:t.description}):e.jsx("p",{className:"text-muted-foreground",children:"No group description available yet."})]})]}),e.jsxs(Q,{children:[e.jsx(ce,{children:e.jsx(ue,{children:"Member Companies"})}),e.jsxs(ee,{className:"space-y-3",children:[n===0&&e.jsx("p",{className:"text-muted-foreground",children:"No member companies listed."}),(s=t.companies)==null?void 0:s.map(i=>{var l,d,h;const o=i.isPrimary||i.id===t.primaryCompanyId;return e.jsxs("div",{className:`flex flex-col md:flex-row md:items-center md:justify-between gap-3 rounded-lg border p-4 ${o?"border-accent/40 bg-accent/5":"border-border"}`,children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("a",{href:`/companies/${i.slug}`,className:"font-semibold hover:text-accent",children:i.name}),o&&e.jsx(he,{className:"bg-accent/10 text-accent border-accent/20",children:"Primary"})]}),((l=i.overview)==null?void 0:l.shortDescription)&&e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:i.overview.shortDescription})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm text-muted-foreground",children:[((d=i.overview)==null?void 0:d.headquarters)&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(rt,{className:"w-4 h-4"}),i.overview.headquarters.city,", ",i.overview.headquarters.country]}),((h=i.overview)==null?void 0:h.employeeRange)&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(mt,{className:"w-4 h-4"}),i.overview.employeeRange]})]})]},i.id)})]})]}),a&&e.jsxs(Q,{children:[e.jsx(ce,{children:e.jsx(ue,{children:"Group Intelligence"})}),e.jsxs(ee,{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsxs("div",{className:"rounded-lg border border-border/60 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(jt,{className:"w-4 h-4"})," Followers"]}),e.jsx("div",{className:"text-2xl font-semibold mt-2",children:a.followsCount.toLocaleString()})]}),e.jsxs("div",{className:"rounded-lg border border-border/60 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(Pa,{className:"w-4 h-4"})," Hiring Intensity"]}),e.jsx("div",{className:"text-2xl font-semibold mt-2",children:a.hiringIntensity})]}),e.jsxs("div",{className:"rounded-lg border border-border/60 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(mt,{className:"w-4 h-4"})," Top Viewing Countries"]}),e.jsx("div",{className:"text-sm font-medium mt-2",children:a.topViewingCountries.join(", ")||"No data"})]})]})]})]})})]})},kU=(t,a)=>{const{buildUrl:n,initialData:r}=a,[s,i]=M.useState(r??null),[o,l]=M.useState(!r),d=M.useMemo(()=>n(t),[n,t]);return M.useEffect(()=>{let h=!1;return l(!0),fetch(d).then(u=>{if(!u.ok)throw new Error(`Failed to load companies: ${u.status}`);return u.json()}).then(u=>{h||i(hU(u))}).catch(u=>{console.error(u)}).finally(()=>{h||l(!1)}),()=>{h=!0}},[d]),{data:s,loading:o}},zC={query:"",filters:{},sort:"popularity_desc",page:1,pageSize:50,scope:"company"},wt=(t,a)=>{var n;return((n=t.get(a))==null?void 0:n.split(",").filter(Boolean))??[]},ML=(t,a)=>{const n=Number(t);return Number.isFinite(n)&&n>0?n:a},vU=t=>{var n,r,s,i,o,l,d;const a=new URLSearchParams;return t.query&&a.set("query",t.query),t.sort&&a.set("sort",t.sort),t.scope&&t.scope!=="company"&&a.set("scope",t.scope),t.segment&&a.set("segment",t.segment),t.subcategory&&a.set("subcategory",t.subcategory),t.region&&a.set("region",t.region),a.set("page",String(t.page)),a.set("pageSize",String(t.pageSize)),t.filters.companyType&&a.set("filters[companyType]",t.filters.companyType),(n=t.filters.country)!=null&&n.length&&a.set("filters[country]",t.filters.country.join(",")),(r=t.filters.products)!=null&&r.length&&a.set("filters[products]",t.filters.products.join(",")),(s=t.filters.employees)!=null&&s.length&&a.set("filters[employees]",t.filters.employees.join(",")),(i=t.filters.verticals)!=null&&i.length&&a.set("filters[verticals]",t.filters.verticals.join(",")),(o=t.filters.productCategories)!=null&&o.length&&a.set("filters[productCategories]",t.filters.productCategories.join(",")),(l=t.filters.openRoles)!=null&&l.length&&a.set("filters[openRoles]",t.filters.openRoles.join(",")),(d=t.filters.yearsActive)!=null&&d.length&&a.set("filters[yearsActive]",t.filters.yearsActive.join(",")),t.filters.hiringNow&&a.set("filters[hiringNow]","true"),t.filters.claimedOnly&&a.set("filters[claimedOnly]","true"),t.filters.hasLicenses&&a.set("filters[hasLicenses]","true"),t.filters.hasAwards&&a.set("filters[hasAwards]","true"),a.toString()},wU=(t,a=zC)=>{const n=new URLSearchParams(t),r=n.get("scope"),s=r==="group"||r==="company"?r:a.scope,i=n.get("query")??n.get("search")??a.query??"",o=n.get("pageSize")??n.get("page_size");return{...a,query:i,sort:n.get("sort")??a.sort,page:ML(n.get("page"),a.page),pageSize:ML(o,a.pageSize),scope:s,segment:n.get("segment")??a.segment,subcategory:n.get("subcategory")??a.subcategory,region:n.get("region")??a.region,filters:{companyType:n.get("filters[companyType]")??n.get("companyType")??a.filters.companyType,country:wt(n,"filters[country]").concat(wt(n,"country")),products:wt(n,"filters[products]").concat(wt(n,"products")),employees:wt(n,"filters[employees]").concat(wt(n,"employees")).concat(wt(n,"employeeRanges")),verticals:wt(n,"filters[verticals]").concat(wt(n,"verticals")),productCategories:wt(n,"filters[productCategories]").concat(wt(n,"productCategories")),openRoles:wt(n,"filters[openRoles]").concat(wt(n,"openRoles")),yearsActive:wt(n,"filters[yearsActive]").concat(wt(n,"yearsActive")),hiringNow:["true","1","yes"].includes(n.get("filters[hiringNow]")??n.get("hiringNow")??""),claimedOnly:["true","1","yes"].includes(n.get("filters[claimedOnly]")??n.get("claimedOnly")??""),hasLicenses:["true","1","yes"].includes(n.get("filters[hasLicenses]")??n.get("hasLicenses")??""),hasAwards:["true","1","yes"].includes(n.get("filters[hasAwards]")??n.get("hasAwards")??"")}}},bU=t=>({...PR,search:t.query??"",companyType:t.filters.companyType??"",verticals:t.filters.verticals??[],productCategories:t.filters.productCategories??[],employeeRanges:t.filters.employees??[],products:t.filters.products??[],openRolesRanges:t.filters.openRoles??[],yearsActiveRanges:t.filters.yearsActive??[],hiringNow:t.filters.hiringNow??!1,scope:t.scope,claimedOnly:t.filters.claimedOnly??!1,hasLicenses:t.filters.hasLicenses??!1,hasAwards:t.filters.hasAwards??!1}),MU=t=>({companyType:t.companyType||void 0,verticals:t.verticals.length?t.verticals:void 0,productCategories:t.productCategories.length?t.productCategories:void 0,employees:t.employeeRanges.length?t.employeeRanges:void 0,products:t.products.length?t.products:void 0,openRoles:t.openRolesRanges.length?t.openRolesRanges:void 0,yearsActive:t.yearsActiveRanges.length?t.yearsActiveRanges:void 0,hiringNow:t.hiringNow||void 0,claimedOnly:t.claimedOnly||void 0,hasLicenses:t.hasLicenses||void 0,hasAwards:t.hasAwards||void 0}),jU={companyTypes:[],verticals:[],productCategories:[],employeeRanges:[],products:[],openRolesRanges:[],yearsActiveRanges:[]},CU=({initialData:t,initialFilterOptions:a,buildUrl:n,initialQuery:r,followDisabled:s=!1,followLoading:i=!1,onToggleFollow:o,onFollowAction:l,saveDisabled:d=!1,saveLoading:h=!1,onToggleSave:u,onSaveAction:p})=>{const[y,m]=M.useState(()=>r||(typeof window>"u"?zC:wU(window.location.search,zC))),[x,f]=M.useState("list"),[v,k]=M.useState(a),{data:w,loading:b}=kU(y,{buildUrl:n,initialData:t}),C=w??t,j=b&&!w,I=M.useMemo(()=>bU(y),[y]);M.useEffect(()=>{if(typeof window>"u")return;const A=vU(y),D=A?`${window.location.pathname}?${A}`:window.location.pathname;window.history.replaceState(null,"",D)},[y]),M.useEffect(()=>{w!=null&&w.filterOptions&&k({...jU,...w.filterOptions})},[w]);const N=A=>{m(D=>({...D,query:A.search,scope:A.scope,filters:MU(A),page:1}))},S=()=>{N(PR)},L=A=>{m(D=>({...D,page:A}))},q=A=>{m(D=>({...D,pageSize:A,page:1}))},_=()=>{f(A=>A==="grid"?"list":"grid")};return e.jsx(_R,{companies:C.results,loading:j,page:C.page,pageSize:C.pageSize||y.pageSize,totalCount:C.count,totalPages:C.totalPages,onPageChange:L,onPageSizeChange:q,filters:I,filterOptions:v,onFiltersChange:N,onClearFilters:S,viewMode:x,onViewModeChange:_,followDisabled:s,followLoading:i,onToggleFollow:o,onFollowAction:l,saveDisabled:d,saveLoading:h,onToggleSave:u,onSaveAction:p})},SU=({isClaimed:t,canClaim:a,onClaimClick:n})=>t||!a?null:e.jsx(T,{type:"button",variant:"ghost",className:"text-primary-foreground",onClick:n,children:"Claim this company"});function NU({title:t,value:a,description:n,icon:r,trend:s}){return e.jsxs(Q,{children:[e.jsxs(ce,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsx(ue,{className:"text-sm font-medium",children:t}),e.jsx(r,{className:"h-4 w-4 text-muted-foreground"})]}),e.jsxs(ee,{children:[e.jsx("div",{className:"text-2xl font-bold",children:a}),n&&e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:n}),s&&e.jsxs("p",{className:`text-xs mt-1 ${s.isPositive?"text-green-600":"text-red-600"}`,children:[s.isPositive?"+":"-",s.value," from last month"]})]})]})}function LU({stats:t}){return e.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:t.map((a,n)=>e.jsx(NU,{...a},n))})}const IU=["Sarah","Michael","Emma","James","Olivia","William","Sophia","Robert","Isabella","David","Mia","John","Charlotte","Daniel","Amelia"],AU=["Johnson","Smith","Williams","Brown","Jones","Garcia","Miller","Davis","Rodriguez","Martinez","Hernandez","Lopez","Wilson","Anderson","Thomas"],PU=["Malta","London, UK","Stockholm, Sweden","Madrid, Spain","Lisbon, Portugal","Remote","Berlin, Germany","Tallinn, Estonia","Athens, Greece"],_U=["Retention Manager","CRM Specialist","Senior Game Designer","Payments Risk Analyst","Compliance Officer","Affiliate Manager","Product Owner","VIP Support Lead","UX Researcher","Data Analyst"],jL=["Senior Backend Engineer","Game Producer","QA Lead","CRM Manager","Compliance Analyst","Fraud Specialist","Payments Manager","BI Analyst","VIP Account Manager"],Y9=["Lifecycle marketing","Player engagement","Responsible gaming","SQL","Live casino ops","Fraud detection","A/B testing","Segmentation","KYC/AML","Game math","Figma","Analytics"],CL=["MGA","UKGC","DGA","B2B","Curaçao"],RU=["LinkedIn","Referral","Job board","Career page","Recruiter outreach"],TU=["new","reviewed","shortlisted","rejected"],DU=[1,2,3,4,5,null],Pt=t=>t[Math.floor(Math.random()*t.length)],K9=t=>{const a=new Date;return a.setDate(a.getDate()-Math.floor(Math.random()*t)),a.toISOString()},qU=(t=32)=>Array.from({length:t}).map((a,n)=>{const r=Pt(IU),s=Pt(AU),i=Pt(DU),o=Pt(TU),l=K9(45),d=K9(14);return{id:`candidate-${n+1}`,firstName:r,lastName:s,title:Pt(_U),location:Pt(PU),appliedDate:l,lastActive:d,source:Pt(RU),yearsExperience:Math.floor(Math.random()*8)+2,status:o,rating:i,skills:Array.from(new Set([Pt(Y9),Pt(Y9),Pt(Y9)])).slice(0,3),licenses:Array.from(new Set([Pt(CL),Pt(CL)])).slice(0,2),appliedJobs:Array.from(new Set([Pt(jL),Pt(jL)])).slice(0,2),notes:[{id:`note-${n}-1`,author:"Recruiter",note:"Strong iGaming domain knowledge with proven retention wins.",createdAt:K9(20),isInternal:!0}]}}),Q9={new:"New",reviewed:"Reviewed",shortlisted:"Shortlisted",rejected:"Rejected"},SL={new:"outline",reviewed:"secondary",shortlisted:"default",rejected:"destructive"},qR=({candidate:t,canEdit:a=!1,onNameClick:n,onStatusChange:r,onRatingChange:s,onAddNote:i})=>{const[o,l]=M.useState(""),[d,h]=M.useState(!0),u=M.useMemo(()=>`${t.firstName} ${t.lastName}`,[t.firstName,t.lastName]),p=M.useMemo(()=>new Date(t.appliedDate).toLocaleDateString(),[t.appliedDate]),y=M.useMemo(()=>new Date(t.lastActive).toLocaleDateString(),[t.lastActive]),m=()=>{!o.trim()||!i||(i(t.id,o.trim(),d),l(""))};return e.jsxs(Q,{className:"border-muted/60",children:[e.jsxs(ce,{className:"space-y-4",children:[e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(T,{variant:"link",className:"h-auto p-0 text-lg font-semibold",onClick:()=>n==null?void 0:n(t.id),children:u}),e.jsx(he,{variant:SL[t.status],children:Q9[t.status]})]}),e.jsx("p",{className:"text-sm text-muted-foreground",children:t.title}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-sm text-muted-foreground",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Qe,{className:"h-4 w-4"}),t.location]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Ze,{className:"h-4 w-4"}),t.yearsExperience,"+ yrs"]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(fo,{className:"h-4 w-4"}),"Applied ",p]})]})]}),e.jsxs("div",{className:"flex flex-col gap-2 sm:items-end",children:[a?e.jsxs(tn,{value:t.status,onValueChange:x=>r==null?void 0:r(t.id,x),children:[e.jsx(za,{className:"w-44",children:e.jsx(an,{placeholder:"Update status"})}),e.jsx(Ea,{children:Object.entries(Q9).map(([x,f])=>e.jsx(Mt,{value:x,children:f},x))})]}):e.jsxs(he,{variant:SL[t.status],children:["Status: ",Q9[t.status]]}),e.jsxs("div",{className:"flex items-center gap-1",children:[Array.from({length:5}).map((x,f)=>{const v=f+1,k=t.rating!==null&&t.rating>=v;return e.jsx(T,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>a&&(s==null?void 0:s(t.id,v)),disabled:!a,children:e.jsx(jt,{className:k?"h-4 w-4 text-yellow-500":"h-4 w-4 text-muted-foreground"})},`${t.id}-star-${f}`)}),t.rating===null&&e.jsx("span",{className:"text-xs text-muted-foreground",children:"Unrated"})]})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[t.licenses.map(x=>e.jsx(he,{variant:"secondary",children:x},x)),t.skills.map(x=>e.jsx(he,{variant:"outline",children:x},x))]})]}),e.jsxs(ee,{className:"space-y-4",children:[e.jsxs("div",{className:"flex flex-wrap gap-4 text-sm text-muted-foreground",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(jn,{className:"h-4 w-4"}),"Source: ",t.source]}),e.jsxs("span",{children:["Last active ",y]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-sm font-semibold",children:"Applied roles"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:t.appliedJobs.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:"No roles attached."}):t.appliedJobs.map(x=>e.jsx(he,{variant:"outline",children:x},x))})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-sm font-semibold",children:"Notes"}),e.jsx("div",{className:"space-y-2",children:t.notes.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:"No notes yet."}):t.notes.map(x=>e.jsxs("div",{className:"rounded-lg border px-3 py-2 text-sm",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs text-muted-foreground",children:[e.jsxs("span",{children:[x.author," • ",new Date(x.createdAt).toLocaleDateString()]}),x.isInternal&&e.jsx(he,{variant:"outline",children:"Internal"})]}),e.jsx("p",{className:"mt-2",children:x.note})]},x.id))})]}),a&&e.jsxs("div",{className:"space-y-2",children:[e.jsx(Et,{value:o,onChange:x=>l(x.target.value),placeholder:"Add a note about this candidate...",rows:3}),e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsxs("label",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(_t,{checked:d,onCheckedChange:x=>h(!!x)}),"Internal note"]}),e.jsx(T,{size:"sm",onClick:m,disabled:!o.trim(),children:"Add note"})]})]})]})]})},zU=[{value:"all",label:"All"},{value:"new",label:"New"},{value:"reviewed",label:"Reviewed"},{value:"shortlisted",label:"Shortlisted"},{value:"rejected",label:"Rejected"}],EU={recent:"Most recent",name:"Name",rating:"Rating"},zR=({company:t,onUpdate:a,isSaving:n=!1,canEdit:r=!1})=>{const[s,i]=M.useState(()=>qU()),[o,l]=M.useState(""),[d,h]=M.useState("all"),[u,p]=M.useState("recent"),[y,m]=M.useState(null),x=M.useMemo(()=>s.reduce((C,j)=>(C[j.status]+=1,C.all+=1,C),{all:0,new:0,reviewed:0,shortlisted:0,rejected:0}),[s]),f=M.useMemo(()=>{const b=o.trim().toLowerCase(),C=N=>b?[`${N.firstName} ${N.lastName}`.toLowerCase(),N.title.toLowerCase(),N.location.toLowerCase(),N.skills.join(" ").toLowerCase()].join(" ").includes(b):!0;return(d==="all"?s:s.filter(N=>N.status===d)).filter(C).sort((N,S)=>{switch(u){case"name":{const L=`${N.lastName} ${N.firstName}`.toLowerCase(),q=`${S.lastName} ${S.firstName}`.toLowerCase();return L.localeCompare(q)}case"rating":{const L=N.rating??0;return(S.rating??0)-L}case"recent":default:return new Date(S.appliedDate).getTime()-new Date(N.appliedDate).getTime()}})},[s,o,u,d]),v=(b,C)=>{i(j=>j.map(I=>I.id===b?{...I,status:C}:I)),a({type:"candidates",payload:{action:"change-status",candidateId:b,status:C}})},k=(b,C)=>{i(j=>j.map(I=>I.id===b?{...I,rating:C}:I)),a({type:"candidates",payload:{action:"rate",candidateId:b,rating:C}})},w=(b,C,j)=>{i(I=>I.map(N=>N.id===b?{...N,notes:[{id:`${b}-${Date.now()}`,author:t.name,note:C,createdAt:new Date().toISOString(),isInternal:j},...N.notes]}:N)),a({type:"candidates",payload:{action:"add-note",candidateId:b,note:C,isInternal:j}})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"Candidates"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Review applicants and track status updates across your pipeline."}),y&&e.jsxs("p",{className:"text-sm text-muted-foreground mt-2",children:["Selected candidate:"," ",(()=>{const b=s.find(C=>C.id===y);return b?`${b.firstName} ${b.lastName}`:"Unknown"})()]})]}),n&&e.jsx(he,{variant:"secondary",className:"w-fit",children:"Syncing updates..."})]}),e.jsxs(Q,{children:[e.jsxs(ce,{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx(ue,{children:"Pipeline overview"}),e.jsx(Se,{children:"Filter, sort, and review candidate activity."})]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:zU.map(b=>e.jsxs(T,{variant:d===b.value?"default":"outline",size:"sm",onClick:()=>h(b.value),children:[b.label,e.jsx("span",{className:"ml-2 text-xs text-muted-foreground",children:x[b.value]})]},b.value))}),e.jsxs("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[e.jsx(de,{placeholder:"Search by name, role, or skill",value:o,onChange:b=>l(b.target.value),className:"md:max-w-sm"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:"Sort by"}),e.jsxs(tn,{value:u,onValueChange:b=>p(b),children:[e.jsx(za,{className:"w-40",children:e.jsx(an,{placeholder:"Sort by"})}),e.jsx(Ea,{children:Object.entries(EU).map(([b,C])=>e.jsx(Mt,{value:b,children:C},b))})]})]})]})]}),e.jsx(ee,{className:"space-y-6",children:f.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:"No candidates match the current filters."}):e.jsx("div",{className:"space-y-6",children:f.map(b=>e.jsx(qR,{candidate:b,canEdit:r,onNameClick:m,onStatusChange:v,onRatingChange:k,onAddNote:w},b.id))})})]})]})};function FU(t,a=[]){let n=[];function r(i,o){const l=g.createContext(o),d=n.length;n=[...n,o];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=n.map(o=>g.createContext(o));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[r,OU(s,...a)]}function OU(...t){const a=t[0];if(t.length===1)return a;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:o}),[o])}};return n.scopeName=a.scopeName,n}function NL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function HU(...t){return a=>{let n=!1;const r=t.map(s=>{const i=NL(s,a);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():NL(t[s],null)}}}}function ER(...t){return g.useCallback(HU(...t),t)}function VU(t,a,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t==null||t(s),n===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}var FR="AlertDialog",[BU,hZ]=FU(FR,[gP]),sn=gP(),OR=t=>{const{__scopeAlertDialog:a,...n}=t,r=sn(a);return e.jsx(TP,{...r,...n,modal:!0})};OR.displayName=FR;var $U="AlertDialogTrigger",UU=g.forwardRef((t,a)=>{const{__scopeAlertDialog:n,...r}=t,s=sn(n);return e.jsx(DP,{...s,...r,ref:a})});UU.displayName=$U;var GU="AlertDialogPortal",HR=t=>{const{__scopeAlertDialog:a,...n}=t,r=sn(a);return e.jsx(qP,{...r,...n})};HR.displayName=GU;var WU="AlertDialogOverlay",VR=g.forwardRef((t,a)=>{const{__scopeAlertDialog:n,...r}=t,s=sn(n);return e.jsx(CS,{...s,...r,ref:a})});VR.displayName=WU;var uc="AlertDialogContent",[ZU,JU]=BU(uc),XU=JT("AlertDialogContent"),BR=g.forwardRef((t,a)=>{const{__scopeAlertDialog:n,children:r,...s}=t,i=sn(n),o=g.useRef(null),l=ER(a,o),d=g.useRef(null);return e.jsx(uO,{contentName:uc,titleName:$R,docsSlug:"alert-dialog",children:e.jsx(ZU,{scope:n,cancelRef:d,children:e.jsxs(SS,{role:"alertdialog",...i,...s,ref:l,onOpenAutoFocus:VU(s.onOpenAutoFocus,h=>{var u;h.preventDefault(),(u=d.current)==null||u.focus({preventScroll:!0})}),onPointerDownOutside:h=>h.preventDefault(),onInteractOutside:h=>h.preventDefault(),children:[e.jsx(XU,{children:r}),e.jsx(KU,{contentRef:o})]})})})});BR.displayName=uc;var $R="AlertDialogTitle",UR=g.forwardRef((t,a)=>{const{__scopeAlertDialog:n,...r}=t,s=sn(n);return e.jsx(NS,{...s,...r,ref:a})});UR.displayName=$R;var GR="AlertDialogDescription",WR=g.forwardRef((t,a)=>{const{__scopeAlertDialog:n,...r}=t,s=sn(n);return e.jsx(LS,{...s,...r,ref:a})});WR.displayName=GR;var YU="AlertDialogAction",ZR=g.forwardRef((t,a)=>{const{__scopeAlertDialog:n,...r}=t,s=sn(n);return e.jsx(IS,{...s,...r,ref:a})});ZR.displayName=YU;var JR="AlertDialogCancel",XR=g.forwardRef((t,a)=>{const{__scopeAlertDialog:n,...r}=t,{cancelRef:s}=JU(JR,n),i=sn(n),o=ER(a,s);return e.jsx(IS,{...i,...r,ref:o})});XR.displayName=JR;var KU=({contentRef:t})=>{const a=`\`${uc}\` requires a description for the component to be accessible for screen reader users.
7825
+ */var QN;function sH(){return QN||(QN=1,process.env.NODE_ENV!=="production"&&function(){function t(m,x){return m===x&&(m!==0||1/m===1/x)||m!==m&&x!==x}function a(m,x){u||s.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var f=x();if(!p){var v=x();i(f,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}v=o({inst:{value:f,getSnapshot:x}});var k=v[0].inst,w=v[1];return d(function(){k.value=f,k.getSnapshot=x,n(k)&&w({inst:k})},[m,f,x]),l(function(){return n(k)&&w({inst:k}),m(function(){n(k)&&w({inst:k})})},[m]),h(f),f}function n(m){var x=m.getSnapshot;m=m.value;try{var f=x();return!i(m,f)}catch{return!0}}function r(m,x){return x()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=M,i=typeof Object.is=="function"?Object.is:t,o=s.useState,l=s.useEffect,d=s.useLayoutEffect,h=s.useDebugValue,u=!1,p=!1,y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:a;W9.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:y,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),W9}process.env.NODE_ENV==="production"?SC.exports=rH():SC.exports=sH();var iH=SC.exports;function oH(){return iH.useSyncExternalStore(cH,()=>!0,()=>!1)}function cH(){return()=>{}}var PS="Avatar",[lH,oZ]=eH(PS),[dH,$P]=lH(PS),UP=g.forwardRef((t,a)=>{const{__scopeAvatar:n,...r}=t,[s,i]=g.useState("idle");return e.jsx(dH,{scope:n,imageLoadingStatus:s,onImageLoadingStatusChange:i,children:e.jsx(AS.span,{...r,ref:a})})});UP.displayName=PS;var GP="AvatarImage",WP=g.forwardRef((t,a)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:s=()=>{},...i}=t,o=$P(GP,n),l=hH(r,i),d=aH(h=>{s(h),o.onImageLoadingStatusChange(h)});return CC(()=>{l!=="idle"&&d(l)},[l,d]),l==="loaded"?e.jsx(AS.img,{...i,ref:a,src:r}):null});WP.displayName=GP;var ZP="AvatarFallback",JP=g.forwardRef((t,a)=>{const{__scopeAvatar:n,delayMs:r,...s}=t,i=$P(ZP,n),[o,l]=g.useState(r===void 0);return g.useEffect(()=>{if(r!==void 0){const d=window.setTimeout(()=>l(!0),r);return()=>window.clearTimeout(d)}},[r]),o&&i.imageLoadingStatus!=="loaded"?e.jsx(AS.span,{...s,ref:a}):null});JP.displayName=ZP;function eL(t,a){return t?a?(t.src!==a&&(t.src=a),t.complete&&t.naturalWidth>0?"loaded":"loading"):"error":"idle"}function hH(t,{referrerPolicy:a,crossOrigin:n}){const r=oH(),s=g.useRef(null),i=r?(s.current||(s.current=new window.Image),s.current):null,[o,l]=g.useState(()=>eL(i,t));return CC(()=>{l(eL(i,t))},[i,t]),CC(()=>{const d=p=>()=>{l(p)};if(!i)return;const h=d("loaded"),u=d("error");return i.addEventListener("load",h),i.addEventListener("error",u),a&&(i.referrerPolicy=a),typeof n=="string"&&(i.crossOrigin=n),()=>{i.removeEventListener("load",h),i.removeEventListener("error",u)}},[i,n,a]),o}var XP=UP,YP=WP,KP=JP;const QP=g.forwardRef(({className:t,...a},n)=>e.jsx(XP,{ref:n,className:fe("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",t),...a}));QP.displayName=XP.displayName;const e_=g.forwardRef(({className:t,...a},n)=>e.jsx(YP,{ref:n,className:fe("aspect-square h-full w-full",t),...a}));e_.displayName=YP.displayName;const t_=g.forwardRef(({className:t,...a},n)=>e.jsx(KP,{ref:n,className:fe("flex h-full w-full items-center justify-center rounded-full bg-muted",t),...a}));t_.displayName=KP.displayName;const uH=Uj("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-yellow-200/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function he({className:t,variant:a,...n}){return e.jsx("div",{className:fe(uH({variant:a}),t),...n})}function tL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function pH(...t){return a=>{let n=!1;const r=t.map(s=>{const i=tL(s,a);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():tL(t[s],null)}}}}var mH=Symbol.for("react.lazy"),qj=g[" use ".trim().toString()];function yH(t){return typeof t=="object"&&t!==null&&"then"in t}function a_(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===mH&&"_payload"in t&&yH(t._payload)}function fH(t){const a=xH(t),n=g.forwardRef((r,s)=>{let{children:i,...o}=r;a_(i)&&typeof qj=="function"&&(i=qj(i._payload));const l=g.Children.toArray(i),d=l.find(kH);if(d){const h=d.props.children,u=l.map(p=>p===d?g.Children.count(h)>1?g.Children.only(null):g.isValidElement(h)?h.props.children:null:p);return e.jsx(a,{...o,ref:s,children:g.isValidElement(h)?g.cloneElement(h,void 0,u):null})}return e.jsx(a,{...o,ref:s,children:i})});return n.displayName=`${t}.Slot`,n}function xH(t){const a=g.forwardRef((n,r)=>{let{children:s,...i}=n;if(a_(s)&&typeof qj=="function"&&(s=qj(s._payload)),g.isValidElement(s)){const o=wH(s),l=vH(i,s.props);return s.type!==g.Fragment&&(l.ref=r?pH(r,o):o),g.cloneElement(s,l)}return g.Children.count(s)>1?g.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var gH=Symbol("radix.slottable");function kH(t){return g.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===gH}function vH(t,a){const n={...a};for(const r in a){const s=t[r],i=a[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...l)=>{const d=i(...l);return s(...l),d}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...t,...n}}function wH(t){var r,s;let a=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=a&&"isReactWarning"in a&&a.isReactWarning;return n?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=a&&"isReactWarning"in a&&a.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var bH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],MH=bH.reduce((t,a)=>{const n=fH(`Primitive.${a}`),r=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{}),jH="Separator",aL="horizontal",CH=["horizontal","vertical"],n_=g.forwardRef((t,a)=>{const{decorative:n,orientation:r=aL,...s}=t,i=SH(r)?r:aL,l=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return e.jsx(MH.div,{"data-orientation":i,...l,...s,ref:a})});n_.displayName=jH;function SH(t){return CH.includes(t)}var r_=n_;const Mj=g.forwardRef(({className:t,orientation:a="horizontal",decorative:n=!0,...r},s)=>e.jsx(r_,{ref:s,decorative:n,orientation:a,className:fe("shrink-0 bg-border",a==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",t),...r}));Mj.displayName=r_.displayName;const NH=({candidateData:t})=>{var l;const[a,n]=M.useState(!1),{profileData:r,first_name:s,last_name:i}=t,o=`${s[0]}${i[0]}`;return e.jsxs("div",{className:"min-h-screen bg-muted/30",children:[e.jsx("header",{className:"bg-card border-b border-border sticky top-0 z-50",children:e.jsx("div",{className:"container mx-auto px-4 py-3",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("a",{href:"/jobs",className:"flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors",children:[e.jsx(bn,{className:"w-5 h-5"}),e.jsx("span",{className:"font-medium",children:"Back to Search"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs(T,{variant:"outline",size:"sm",onClick:()=>n(!a),children:[e.jsx(xa,{className:`w-4 h-4 mr-2 ${a?"fill-accent text-accent":""}`}),a?"Saved":"Save"]}),e.jsxs(T,{variant:"outline",size:"sm",children:[e.jsx(wo,{className:"w-4 h-4 mr-2"}),"Share"]}),e.jsxs(T,{variant:"accent",size:"sm",children:[e.jsx(Ln,{className:"w-4 h-4 mr-2"}),"Contact"]})]})]})})}),e.jsx("div",{className:"bg-gradient-to-r from-primary via-primary/90 to-accent/80 h-32 md:h-48"}),e.jsx("div",{className:"container mx-auto px-4 -mt-16 md:-mt-20 pb-12",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[e.jsx(Q,{className:"overflow-visible",children:e.jsx(ee,{className:"pt-0",children:e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsx("div",{className:"-mt-12 md:-mt-16",children:e.jsxs(QP,{className:"w-28 h-28 md:w-36 md:h-36 border-4 border-card shadow-lg",children:[e.jsx(e_,{src:""}),e.jsx(t_,{className:"bg-gradient-to-br from-accent to-accent/80 text-white text-3xl md:text-4xl font-bold",children:o})]})}),e.jsx("div",{className:"flex-1 pt-2 md:pt-6",children:e.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-foreground",children:r.personalDetails.fullName}),e.jsx("p",{className:"text-lg text-muted-foreground mt-1",children:"Business / Data Analyst"}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 mt-3 text-sm text-muted-foreground",children:[e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(Qe,{className:"w-4 h-4 text-accent"}),r.personalDetails.location]}),e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(oa,{className:"w-4 h-4 text-accent"}),r.personalDetails.nationality]})]})]}),e.jsxs("div",{className:"flex gap-6 text-center",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-2xl font-bold text-accent",children:"15+"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"Years Exp."})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-2xl font-bold text-accent",children:"5"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"Roles"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-2xl font-bold text-accent",children:"3"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"Languages"})]})]})]})})]})})}),e.jsxs(Q,{children:[e.jsx(le,{children:e.jsxs(ue,{className:"flex items-center gap-2",children:[e.jsx(ic,{className:"w-5 h-5 text-accent"}),"About"]})}),e.jsx(ee,{children:e.jsx("p",{className:"text-muted-foreground leading-relaxed",children:r.personalDetails.summary})})]}),e.jsxs(Q,{children:[e.jsx(le,{children:e.jsxs(ue,{className:"flex items-center gap-2",children:[e.jsx(Ze,{className:"w-5 h-5 text-accent"}),"Experience"]})}),e.jsx(ee,{className:"space-y-6",children:r.workExperience.map((d,h)=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx("div",{className:"w-12 h-12 rounded-lg bg-muted flex items-center justify-center",children:e.jsx(rt,{className:"w-6 h-6 text-accent"})})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-1",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground",children:d.title}),e.jsx("p",{className:"text-accent font-medium",children:d.company})]}),e.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-muted-foreground whitespace-nowrap",children:[e.jsx(xo,{className:"w-4 h-4"}),d.period]})]}),d.location&&e.jsxs("p",{className:"text-sm text-muted-foreground mt-1 flex items-center gap-1",children:[e.jsx(Qe,{className:"w-3 h-3"}),d.location]}),d.summary&&e.jsx("p",{className:"text-sm text-muted-foreground mt-3 leading-relaxed",children:d.summary}),d.tags&&d.tags.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 mt-3",children:d.tags.map(u=>e.jsx(he,{variant:"secondary",className:"text-xs",children:u},u))})]})]}),h<r.workExperience.length-1&&e.jsx(Mj,{className:"mt-6"})]},d.id))})]}),e.jsxs(Q,{children:[e.jsx(le,{children:e.jsxs(ue,{className:"flex items-center gap-2",children:[e.jsx(Sn,{className:"w-5 h-5 text-accent"}),"Education"]})}),e.jsx(ee,{className:"space-y-6",children:r.education.map((d,h)=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx("div",{className:"w-12 h-12 rounded-lg bg-muted flex items-center justify-center",children:e.jsx(Sn,{className:"w-6 h-6 text-accent"})})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-semibold text-foreground",children:d.degree}),e.jsx("p",{className:"text-accent font-medium",children:d.institution}),e.jsx(he,{variant:"outline",className:"mt-2 text-xs",children:d.level})]})]}),h<r.education.length-1&&e.jsx(Mj,{className:"mt-6"})]},h))})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs(Q,{className:"sticky top-20",children:[e.jsx(le,{children:e.jsx(ue,{className:"text-lg",children:"Contact Information"})}),e.jsxs(ee,{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-accent/10 flex items-center justify-center",children:e.jsx(ca,{className:"w-5 h-5 text-accent"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:"Email"}),e.jsx("p",{className:"text-sm font-medium truncate",children:r.personalDetails.email})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-accent/10 flex items-center justify-center",children:e.jsx(In,{className:"w-5 h-5 text-accent"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:"Phone"}),e.jsx("p",{className:"text-sm font-medium",children:r.personalDetails.phone})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-accent/10 flex items-center justify-center",children:e.jsx(Qe,{className:"w-5 h-5 text-accent"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:"Location"}),e.jsx("p",{className:"text-sm font-medium",children:r.personalDetails.location})]})]}),e.jsx(Mj,{}),e.jsxs(T,{variant:"accent",className:"w-full",children:[e.jsx(Ln,{className:"w-4 h-4 mr-2"}),"Send Message"]}),((l=r.resume)==null?void 0:l.url)&&e.jsxs(T,{variant:"outline",className:"w-full",children:[e.jsx(Fc,{className:"w-4 h-4 mr-2"}),"Download Resume"]})]})]}),e.jsxs(Q,{children:[e.jsx(le,{children:e.jsxs(ue,{className:"flex items-center gap-2 text-lg",children:[e.jsx(na,{className:"w-5 h-5 text-accent"}),"Skills"]})}),e.jsx(ee,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:r.skills.map(d=>e.jsx(he,{variant:"secondary",className:"px-3 py-1",children:d},d))})})]}),e.jsxs(Q,{children:[e.jsx(le,{children:e.jsxs(ue,{className:"flex items-center gap-2 text-lg",children:[e.jsx(Bc,{className:"w-5 h-5 text-accent"}),"Languages"]})}),e.jsx(ee,{className:"space-y-3",children:r.languages.map(d=>e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"font-medium text-foreground",children:d.name}),e.jsx(he,{variant:"outline",className:"text-xs",children:d.proficiency})]},d.name))})]})]})]})})]})};function nL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function LH(...t){return a=>{let n=!1;const r=t.map(s=>{const i=nL(s,a);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():nL(t[s],null)}}}}function _S(...t){return g.useCallback(LH(...t),t)}function IH(t,a=[]){let n=[];function r(i,o){const l=g.createContext(o),d=n.length;n=[...n,o];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=n.map(o=>g.createContext(o));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[r,AH(s,...a)]}function AH(...t){const a=t[0];if(t.length===1)return a;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:o}),[o])}};return n.scopeName=a.scopeName,n}function rL(t,a,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t==null||t(s),n===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}var NC=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},PH=g[" useInsertionEffect ".trim().toString()]||NC;function _H({prop:t,defaultProp:a,onChange:n=()=>{},caller:r}){const[s,i,o]=RH({defaultProp:a,onChange:n}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,r])}const h=g.useCallback(u=>{var p;if(l){const y=TH(u)?u(t):u;y!==t&&((p=o.current)==null||p.call(o,y))}else i(u)},[l,t,i,o]);return[d,h]}function RH({defaultProp:t,onChange:a}){const[n,r]=g.useState(t),s=g.useRef(n),i=g.useRef(a);return PH(()=>{i.current=a},[a]),g.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function TH(t){return typeof t=="function"}function RS(t){const a=g.useRef({value:t,previous:t});return g.useMemo(()=>(a.current.value!==t&&(a.current.previous=a.current.value,a.current.value=t),a.current.previous),[t])}var DH=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{};function TS(t){const[a,n]=g.useState(void 0);return DH(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,l;if("borderBoxSize"in i){const d=i.borderBoxSize,h=Array.isArray(d)?d[0]:d;o=h.inlineSize,l=h.blockSize}else o=t.offsetWidth,l=t.offsetHeight;n({width:o,height:l})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else n(void 0)},[t]),a}function qH(t,a){return g.useReducer((n,r)=>a[n][r]??n,t)}var s_=t=>{const{present:a,children:n}=t,r=zH(a),s=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),i=_S(r.ref,EH(s));return typeof n=="function"||r.isPresent?g.cloneElement(s,{ref:i}):null};s_.displayName="Presence";function zH(t){const[a,n]=g.useState(),r=g.useRef(null),s=g.useRef(t),i=g.useRef("none"),o=t?"mounted":"unmounted",[l,d]=qH(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const h=ql(r.current);i.current=l==="mounted"?h:"none"},[l]),NC(()=>{const h=r.current,u=s.current;if(u!==t){const y=i.current,m=ql(h);t?d("MOUNT"):m==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(u&&y!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,d]),NC(()=>{if(a){let h;const u=a.ownerDocument.defaultView??window,p=m=>{const f=ql(r.current).includes(CSS.escape(m.animationName));if(m.target===a&&f&&(d("ANIMATION_END"),!s.current)){const v=a.style.animationFillMode;a.style.animationFillMode="forwards",h=u.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=v)})}},y=m=>{m.target===a&&(i.current=ql(r.current))};return a.addEventListener("animationstart",y),a.addEventListener("animationcancel",p),a.addEventListener("animationend",p),()=>{u.clearTimeout(h),a.removeEventListener("animationstart",y),a.removeEventListener("animationcancel",p),a.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[a,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(h=>{r.current=h?getComputedStyle(h):null,n(h)},[])}}function ql(t){return(t==null?void 0:t.animationName)||"none"}function EH(t){var r,s;let a=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=a&&"isReactWarning"in a&&a.isReactWarning;return n?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=a&&"isReactWarning"in a&&a.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var FH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],DS=FH.reduce((t,a)=>{const n=Ye(`Primitive.${a}`),r=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{}),c9="Checkbox",[OH,cZ]=IH(c9),[HH,qS]=OH(c9);function VH(t){const{__scopeCheckbox:a,checked:n,children:r,defaultChecked:s,disabled:i,form:o,name:l,onCheckedChange:d,required:h,value:u="on",internal_do_not_use_render:p}=t,[y,m]=_H({prop:n,defaultProp:s??!1,onChange:d,caller:c9}),[x,f]=g.useState(null),[v,k]=g.useState(null),w=g.useRef(!1),b=x?!!o||!!x.closest("form"):!0,C={checked:y,disabled:i,setChecked:m,control:x,setControl:f,name:l,form:o,value:u,hasConsumerStoppedPropagationRef:w,required:h,defaultChecked:Dn(s)?!1:s,isFormControl:b,bubbleInput:v,setBubbleInput:k};return e.jsx(HH,{scope:a,...C,children:BH(p)?p(C):r})}var i_="CheckboxTrigger",o_=g.forwardRef(({__scopeCheckbox:t,onKeyDown:a,onClick:n,...r},s)=>{const{control:i,value:o,disabled:l,checked:d,required:h,setControl:u,setChecked:p,hasConsumerStoppedPropagationRef:y,isFormControl:m,bubbleInput:x}=qS(i_,t),f=_S(s,u),v=g.useRef(d);return g.useEffect(()=>{const k=i==null?void 0:i.form;if(k){const w=()=>p(v.current);return k.addEventListener("reset",w),()=>k.removeEventListener("reset",w)}},[i,p]),e.jsx(DS.button,{type:"button",role:"checkbox","aria-checked":Dn(d)?"mixed":d,"aria-required":h,"data-state":u_(d),"data-disabled":l?"":void 0,disabled:l,value:o,...r,ref:f,onKeyDown:rL(a,k=>{k.key==="Enter"&&k.preventDefault()}),onClick:rL(n,k=>{p(w=>Dn(w)?!0:!w),x&&m&&(y.current=k.isPropagationStopped(),y.current||k.stopPropagation())})})});o_.displayName=i_;var zS=g.forwardRef((t,a)=>{const{__scopeCheckbox:n,name:r,checked:s,defaultChecked:i,required:o,disabled:l,value:d,onCheckedChange:h,form:u,...p}=t;return e.jsx(VH,{__scopeCheckbox:n,checked:s,defaultChecked:i,disabled:l,required:o,onCheckedChange:h,name:r,form:u,value:d,internal_do_not_use_render:({isFormControl:y})=>e.jsxs(e.Fragment,{children:[e.jsx(o_,{...p,ref:a,__scopeCheckbox:n}),y&&e.jsx(h_,{__scopeCheckbox:n})]})})});zS.displayName=c9;var c_="CheckboxIndicator",l_=g.forwardRef((t,a)=>{const{__scopeCheckbox:n,forceMount:r,...s}=t,i=qS(c_,n);return e.jsx(s_,{present:r||Dn(i.checked)||i.checked===!0,children:e.jsx(DS.span,{"data-state":u_(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:a,style:{pointerEvents:"none",...t.style}})})});l_.displayName=c_;var d_="CheckboxBubbleInput",h_=g.forwardRef(({__scopeCheckbox:t,...a},n)=>{const{control:r,hasConsumerStoppedPropagationRef:s,checked:i,defaultChecked:o,required:l,disabled:d,name:h,value:u,form:p,bubbleInput:y,setBubbleInput:m}=qS(d_,t),x=_S(n,m),f=RS(i),v=TS(r);g.useEffect(()=>{const w=y;if(!w)return;const b=window.HTMLInputElement.prototype,j=Object.getOwnPropertyDescriptor(b,"checked").set,I=!s.current;if(f!==i&&j){const N=new Event("click",{bubbles:I});w.indeterminate=Dn(i),j.call(w,Dn(i)?!1:i),w.dispatchEvent(N)}},[y,f,i,s]);const k=g.useRef(Dn(i)?!1:i);return e.jsx(DS.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??k.current,required:l,disabled:d,name:h,value:u,form:p,...a,tabIndex:-1,ref:x,style:{...a.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});h_.displayName=d_;function BH(t){return typeof t=="function"}function Dn(t){return t==="indeterminate"}function u_(t){return Dn(t)?"indeterminate":t?"checked":"unchecked"}const _t=g.forwardRef(({className:t,...a},n)=>e.jsx(zS,{ref:n,className:fe("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...a,children:e.jsx(l_,{className:fe("flex items-center justify-center text-current"),children:e.jsx(Qo,{className:"h-4 w-4"})})}));_t.displayName=zS.displayName;const $H=({company:t,displayName:a,openRolesCount:n,groupMembersCount:r,isGroup:s=!1,viewMode:i="list",compareId:o,compareSelected:l=!1,compareDisabled:d=!1,onToggleCompare:h,isFollowing:u,followLoading:p=!1,followDisabled:y=!1,onToggleFollow:m,onFollowAction:x,isSaved:f,saveLoading:v=!1,saveDisabled:k=!1,onToggleSave:w,onSaveAction:b})=>{var te,ye,ve,Z,ae,ge,ke;const C=i==="grid",j=u??t.isFollowing??!1,I=y||p,N=j?"Unfollow Company":"Follow Company",S=t.isSaved,L=k||v,q=S?"Remove from Saved":"Save Company",_=t.trustAndCompliance.licenses.length+t.trustAndCompliance.certifications.length+t.trustAndCompliance.awards.length,A=((te=t.group)==null?void 0:te.intelligenceProfile)??t.signalsAndInsights,D=Array.isArray(t.jobs.openRoles)?t.jobs.openRoles.length:t.jobs.openRoles,H=n??D,G=H>0,V=((ye=t.group)==null?void 0:ye.name)??t.groupName??t.group_name,U=((ve=t.group)==null?void 0:ve.slug)??t.groupSlug??t.group_slug??((Z=t.group)==null?void 0:Z.id)??t.groupId??t.group_id,F=ie=>{switch(ie){case"Operator":return"bg-blue-500/10 text-blue-600 border-blue-500/20";case"Game Provider":return"bg-purple-500/10 text-purple-600 border-purple-500/20";case"Platform Provider":return"bg-emerald-500/10 text-emerald-600 border-emerald-500/20";case"Affiliate":return"bg-orange-500/10 text-orange-600 border-orange-500/20";case"Payments":return"bg-cyan-500/10 text-cyan-600 border-cyan-500/20";default:return"bg-muted text-muted-foreground"}},se=ie=>{var me,Ie,Ae;if(typeof ie=="string")return ie;if(typeof ie=="object"&&ie!==null){const Fe=ie;return Fe.title??((me=Fe.tag)==null?void 0:me.title)??((Ie=Fe.tag)==null?void 0:Ie.name)??((Ae=Fe.tag)==null?void 0:Ae.slug)??null}return null},K=(ae=t.overview.headquarters)==null?void 0:ae.city,X=(ge=t.overview.headquarters)==null?void 0:ge.country,J=()=>{const ie=!j;m==null||m(t.id,ie),x==null||x({companyId:t.id,companySlug:t.slug,action:ie?"follow":"unfollow"})},re=()=>{const ie=!S;w==null||w(t.id,ie),b==null||b({companyId:t.id,companySlug:t.slug,companyName:t.name,action:ie?"save":"unsave"})};return e.jsx(Q,{className:`group hover:shadow-lg transition-all duration-300 border-border/50 hover:border-accent/30 overflow-hidden ${C?"h-full":""}`,children:e.jsx(ee,{className:`p-5 ${C?"flex h-full flex-col":""}`,children:e.jsxs("div",{className:`flex gap-4 ${C?"flex-col":""}`,children:[e.jsx("div",{className:"w-16 h-16 rounded-xl bg-gradient-to-br from-primary/10 to-accent/10 flex items-center justify-center flex-shrink-0 border border-border/50",children:e.jsx(rt,{className:"w-8 h-8 text-primary"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:`mb-2 flex items-start ${C?"flex-col gap-3":"justify-between gap-2"}`,children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("a",{href:`/companies/${t.slug}`,className:"font-semibold text-foreground hover:text-accent transition-colors text-lg",children:a??t.name}),t.claimedStatus==="claimed"&&e.jsx(tt,{className:"w-4 h-4 text-accent flex-shrink-0"})]}),e.jsxs("div",{className:"flex items-center gap-3 text-sm text-muted-foreground mt-0.5",children:[(K||X)&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Qe,{className:"w-3.5 h-3.5"}),[K,X].filter(Boolean).join(", ")]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(mt,{className:"w-3.5 h-3.5"}),t.overview.employeeRange]})]})]}),e.jsxs("div",{className:`flex flex-col gap-2 ${C?"items-start":"items-end"}`,children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(_t,{id:`compare-${o??t.id}`,checked:l,disabled:d,onCheckedChange:()=>h==null?void 0:h(o??t.id),"aria-label":`Compare ${a??t.name}`}),e.jsx("label",{htmlFor:`compare-${o??t.id}`,className:`text-xs ${d?"text-muted-foreground":"text-foreground"} cursor-pointer`,children:"Compare"})]}),e.jsxs("div",{className:`flex flex-wrap gap-2 ${C?"justify-start":"justify-end"}`,children:[e.jsxs(T,{variant:S?"secondary":"outline",size:"sm",className:"flex-shrink-0 gap-2 opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity",onClick:re,disabled:L,"aria-label":`${q} ${a??t.name}`,"aria-pressed":S,"aria-busy":v,title:q,children:[v?e.jsx(at,{className:"h-4 w-4 animate-spin"}):e.jsx(xa,{className:`h-4 w-4 ${S?"fill-current":"fill-transparent"}`}),v?"Loading":S?"Saved":"Save"]}),e.jsxs(T,{variant:j?"secondary":"outline",size:"sm",className:"flex-shrink-0 gap-2 opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity",onClick:J,disabled:I,"aria-label":`${N} ${a??t.name}`,"aria-pressed":j,"aria-busy":p,title:N,children:[p?e.jsx(at,{className:"h-4 w-4 animate-spin"}):j?e.jsx(tt,{className:"h-4 w-4"}):e.jsx(Nn,{className:"h-4 w-4"}),p?"Loading":j?"Following":"Follow"]})]})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-1.5 mb-3",children:[e.jsx(he,{className:`${F(t.companyType)} border text-xs`,children:t.companyType}),s&&e.jsxs(he,{variant:"outline",className:"text-xs",children:["Group (",r??1,")"]}),V&&!s&&e.jsx("a",{href:U?`/groups/${U}`:"/groups",children:e.jsxs(he,{variant:"outline",className:"text-xs",children:["Part of ",V]})}),t.classification.verticals.slice(0,2).map(ie=>e.jsx(he,{variant:"secondary",className:"text-xs",children:ie},ie)),G&&e.jsxs(he,{className:"bg-gaming-success/10 text-gaming-success border-gaming-success/20 border text-xs",children:[e.jsx(Ze,{className:"w-3 h-3 mr-1"}),"Hiring (",H,")"]})]}),e.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 mb-3",children:t.overview.shortDescription}),e.jsx("div",{className:"flex flex-wrap gap-1.5 mb-3",children:(ke=t.classification.tags)==null?void 0:ke.map(se).filter(ie=>!!ie).slice(0,4).map(ie=>e.jsxs("span",{className:"text-xs px-2 py-0.5 rounded-full bg-secondary text-secondary-foreground",children:["#",ie]},ie))}),e.jsxs("div",{className:"flex items-center justify-between pt-3 border-t border-border/50",children:[e.jsxs("div",{className:"flex items-center gap-4 text-xs text-muted-foreground",children:[_>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(An,{className:"w-3.5 h-3.5 text-gaming-success"}),_," trust signals"]}),A.followsCount>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(jt,{className:"w-3.5 h-3.5 text-gaming-gold"}),A.followsCount.toLocaleString()," followers"]}),A.hiringIntensity==="High"&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Pa,{className:"w-3.5 h-3.5 text-accent"}),"High hiring"]})]}),e.jsx("a",{href:`/companies/${t.slug}`,children:e.jsx(T,{variant:"ghost",size:"sm",className:"text-accent hover:text-accent",children:"View Profile →"})})]})]})]})})})};function sL(t,[a,n]){return Math.min(n,Math.max(a,t))}function ht(t,a,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t==null||t(s),n===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}function p_(t,a=[]){let n=[];function r(i,o){const l=g.createContext(o),d=n.length;n=[...n,o];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=n.map(o=>g.createContext(o));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[r,UH(s,...a)]}function UH(...t){const a=t[0];if(t.length===1)return a;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:o}),[o])}};return n.scopeName=a.scopeName,n}function iL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function GH(...t){return a=>{let n=!1;const r=t.map(s=>{const i=iL(s,a);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():iL(t[s],null)}}}}function ua(...t){return g.useCallback(GH(...t),t)}function WH(t){const a=t+"CollectionProvider",[n,r]=p_(a),[s,i]=n(a,{collectionRef:{current:null},itemMap:new Map}),o=f=>{const{scope:v,children:k}=f,w=M.useRef(null),b=M.useRef(new Map).current;return e.jsx(s,{scope:v,itemMap:b,collectionRef:w,children:k})};o.displayName=a;const l=t+"CollectionSlot",d=Ye(l),h=M.forwardRef((f,v)=>{const{scope:k,children:w}=f,b=i(l,k),C=ua(v,b.collectionRef);return e.jsx(d,{ref:C,children:w})});h.displayName=l;const u=t+"CollectionItemSlot",p="data-radix-collection-item",y=Ye(u),m=M.forwardRef((f,v)=>{const{scope:k,children:w,...b}=f,C=M.useRef(null),j=ua(v,C),I=i(u,k);return M.useEffect(()=>(I.itemMap.set(C,{ref:C,...b}),()=>void I.itemMap.delete(C))),e.jsx(y,{[p]:"",ref:j,children:w})});m.displayName=u;function x(f){const v=i(t+"CollectionConsumer",f);return M.useCallback(()=>{const w=v.collectionRef.current;if(!w)return[];const b=Array.from(w.querySelectorAll(`[${p}]`));return Array.from(v.itemMap.values()).sort((I,N)=>b.indexOf(I.ref.current)-b.indexOf(N.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:o,Slot:h,ItemSlot:m},x,r]}var ZH=g.createContext(void 0);function JH(t){const a=g.useContext(ZH);return t||a||"ltr"}var Da=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},XH=g[" useId ".trim().toString()]||(()=>{}),YH=0;function ES(t){const[a,n]=g.useState(XH());return Da(()=>{n(r=>r??String(YH++))},[t]),a?`radix-${a}`:""}const KH=["top","right","bottom","left"],En=Math.min,Bt=Math.max,zj=Math.round,zl=Math.floor,Ra=t=>({x:t,y:t}),QH={left:"right",right:"left",bottom:"top",top:"bottom"},eV={start:"end",end:"start"};function LC(t,a,n){return Bt(t,En(a,n))}function Qa(t,a){return typeof t=="function"?t(a):t}function en(t){return t.split("-")[0]}function wc(t){return t.split("-")[1]}function FS(t){return t==="x"?"y":"x"}function OS(t){return t==="y"?"height":"width"}const tV=new Set(["top","bottom"]);function Ia(t){return tV.has(en(t))?"y":"x"}function HS(t){return FS(Ia(t))}function aV(t,a,n){n===void 0&&(n=!1);const r=wc(t),s=HS(t),i=OS(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return a.reference[i]>a.floating[i]&&(o=Ej(o)),[o,Ej(o)]}function nV(t){const a=Ej(t);return[IC(t),a,IC(a)]}function IC(t){return t.replace(/start|end/g,a=>eV[a])}const oL=["left","right"],cL=["right","left"],rV=["top","bottom"],sV=["bottom","top"];function iV(t,a,n){switch(t){case"top":case"bottom":return n?a?cL:oL:a?oL:cL;case"left":case"right":return a?rV:sV;default:return[]}}function oV(t,a,n,r){const s=wc(t);let i=iV(en(t),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),a&&(i=i.concat(i.map(IC)))),i}function Ej(t){return t.replace(/left|right|bottom|top/g,a=>QH[a])}function cV(t){return{top:0,right:0,bottom:0,left:0,...t}}function m_(t){return typeof t!="number"?cV(t):{top:t,right:t,bottom:t,left:t}}function Fj(t){const{x:a,y:n,width:r,height:s}=t;return{width:r,height:s,top:n,left:a,right:a+r,bottom:n+s,x:a,y:n}}function lL(t,a,n){let{reference:r,floating:s}=t;const i=Ia(a),o=HS(a),l=OS(o),d=en(a),h=i==="y",u=r.x+r.width/2-s.width/2,p=r.y+r.height/2-s.height/2,y=r[l]/2-s[l]/2;let m;switch(d){case"top":m={x:u,y:r.y-s.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:p};break;case"left":m={x:r.x-s.width,y:p};break;default:m={x:r.x,y:r.y}}switch(wc(a)){case"start":m[o]-=y*(n&&h?-1:1);break;case"end":m[o]+=y*(n&&h?-1:1);break}return m}const lV=async(t,a,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,l=i.filter(Boolean),d=await(o.isRTL==null?void 0:o.isRTL(a));let h=await o.getElementRects({reference:t,floating:a,strategy:s}),{x:u,y:p}=lL(h,r,d),y=r,m={},x=0;for(let f=0;f<l.length;f++){const{name:v,fn:k}=l[f],{x:w,y:b,data:C,reset:j}=await k({x:u,y:p,initialPlacement:r,placement:y,strategy:s,middlewareData:m,rects:h,platform:o,elements:{reference:t,floating:a}});u=w??u,p=b??p,m={...m,[v]:{...m[v],...C}},j&&x<=50&&(x++,typeof j=="object"&&(j.placement&&(y=j.placement),j.rects&&(h=j.rects===!0?await o.getElementRects({reference:t,floating:a,strategy:s}):j.rects),{x:u,y:p}=lL(h,y,d)),f=-1)}return{x:u,y:p,placement:y,strategy:s,middlewareData:m}};async function xl(t,a){var n;a===void 0&&(a={});const{x:r,y:s,platform:i,rects:o,elements:l,strategy:d}=t,{boundary:h="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:y=!1,padding:m=0}=Qa(a,t),x=m_(m),v=l[y?p==="floating"?"reference":"floating":p],k=Fj(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:h,rootBoundary:u,strategy:d})),w=p==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),C=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},j=Fj(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:b,strategy:d}):w);return{top:(k.top-j.top+x.top)/C.y,bottom:(j.bottom-k.bottom+x.bottom)/C.y,left:(k.left-j.left+x.left)/C.x,right:(j.right-k.right+x.right)/C.x}}const dV=t=>({name:"arrow",options:t,async fn(a){const{x:n,y:r,placement:s,rects:i,platform:o,elements:l,middlewareData:d}=a,{element:h,padding:u=0}=Qa(t,a)||{};if(h==null)return{};const p=m_(u),y={x:n,y:r},m=HS(s),x=OS(m),f=await o.getDimensions(h),v=m==="y",k=v?"top":"left",w=v?"bottom":"right",b=v?"clientHeight":"clientWidth",C=i.reference[x]+i.reference[m]-y[m]-i.floating[x],j=y[m]-i.reference[m],I=await(o.getOffsetParent==null?void 0:o.getOffsetParent(h));let N=I?I[b]:0;(!N||!await(o.isElement==null?void 0:o.isElement(I)))&&(N=l.floating[b]||i.floating[x]);const S=C/2-j/2,L=N/2-f[x]/2-1,q=En(p[k],L),_=En(p[w],L),A=q,D=N-f[x]-_,H=N/2-f[x]/2+S,G=LC(A,H,D),V=!d.arrow&&wc(s)!=null&&H!==G&&i.reference[x]/2-(H<A?q:_)-f[x]/2<0,U=V?H<A?H-A:H-D:0;return{[m]:y[m]+U,data:{[m]:G,centerOffset:H-G-U,...V&&{alignmentOffset:U}},reset:V}}}),hV=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(a){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:l,platform:d,elements:h}=a,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:y,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:f=!0,...v}=Qa(t,a);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const k=en(s),w=Ia(l),b=en(l)===l,C=await(d.isRTL==null?void 0:d.isRTL(h.floating)),j=y||(b||!f?[Ej(l)]:nV(l)),I=x!=="none";!y&&I&&j.push(...oV(l,f,x,C));const N=[l,...j],S=await xl(a,v),L=[];let q=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&L.push(S[k]),p){const H=aV(s,o,C);L.push(S[H[0]],S[H[1]])}if(q=[...q,{placement:s,overflows:L}],!L.every(H=>H<=0)){var _,A;const H=(((_=i.flip)==null?void 0:_.index)||0)+1,G=N[H];if(G&&(!(p==="alignment"?w!==Ia(G):!1)||q.every(F=>Ia(F.placement)===w?F.overflows[0]>0:!0)))return{data:{index:H,overflows:q},reset:{placement:G}};let V=(A=q.filter(U=>U.overflows[0]<=0).sort((U,F)=>U.overflows[1]-F.overflows[1])[0])==null?void 0:A.placement;if(!V)switch(m){case"bestFit":{var D;const U=(D=q.filter(F=>{if(I){const se=Ia(F.placement);return se===w||se==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(se=>se>0).reduce((se,K)=>se+K,0)]).sort((F,se)=>F[1]-se[1])[0])==null?void 0:D[0];U&&(V=U);break}case"initialPlacement":V=l;break}if(s!==V)return{reset:{placement:V}}}return{}}}};function dL(t,a){return{top:t.top-a.height,right:t.right-a.width,bottom:t.bottom-a.height,left:t.left-a.width}}function hL(t){return KH.some(a=>t[a]>=0)}const uV=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(a){const{rects:n}=a,{strategy:r="referenceHidden",...s}=Qa(t,a);switch(r){case"referenceHidden":{const i=await xl(a,{...s,elementContext:"reference"}),o=dL(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:hL(o)}}}case"escaped":{const i=await xl(a,{...s,altBoundary:!0}),o=dL(i,n.floating);return{data:{escapedOffsets:o,escaped:hL(o)}}}default:return{}}}}},y_=new Set(["left","top"]);async function pV(t,a){const{placement:n,platform:r,elements:s}=t,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=en(n),l=wc(n),d=Ia(n)==="y",h=y_.has(o)?-1:1,u=i&&d?-1:1,p=Qa(a,t);let{mainAxis:y,crossAxis:m,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof x=="number"&&(m=l==="end"?x*-1:x),d?{x:m*u,y:y*h}:{x:y*h,y:m*u}}const mV=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(a){var n,r;const{x:s,y:i,placement:o,middlewareData:l}=a,d=await pV(a,t);return o===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:s+d.x,y:i+d.y,data:{...d,placement:o}}}}},yV=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(a){const{x:n,y:r,placement:s}=a,{mainAxis:i=!0,crossAxis:o=!1,limiter:l={fn:v=>{let{x:k,y:w}=v;return{x:k,y:w}}},...d}=Qa(t,a),h={x:n,y:r},u=await xl(a,d),p=Ia(en(s)),y=FS(p);let m=h[y],x=h[p];if(i){const v=y==="y"?"top":"left",k=y==="y"?"bottom":"right",w=m+u[v],b=m-u[k];m=LC(w,m,b)}if(o){const v=p==="y"?"top":"left",k=p==="y"?"bottom":"right",w=x+u[v],b=x-u[k];x=LC(w,x,b)}const f=l.fn({...a,[y]:m,[p]:x});return{...f,data:{x:f.x-n,y:f.y-r,enabled:{[y]:i,[p]:o}}}}}},fV=function(t){return t===void 0&&(t={}),{options:t,fn(a){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=a,{offset:l=0,mainAxis:d=!0,crossAxis:h=!0}=Qa(t,a),u={x:n,y:r},p=Ia(s),y=FS(p);let m=u[y],x=u[p];const f=Qa(l,a),v=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(d){const b=y==="y"?"height":"width",C=i.reference[y]-i.floating[b]+v.mainAxis,j=i.reference[y]+i.reference[b]-v.mainAxis;m<C?m=C:m>j&&(m=j)}if(h){var k,w;const b=y==="y"?"width":"height",C=y_.has(en(s)),j=i.reference[p]-i.floating[b]+(C&&((k=o.offset)==null?void 0:k[p])||0)+(C?0:v.crossAxis),I=i.reference[p]+i.reference[b]+(C?0:((w=o.offset)==null?void 0:w[p])||0)-(C?v.crossAxis:0);x<j?x=j:x>I&&(x=I)}return{[y]:m,[p]:x}}}},xV=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(a){var n,r;const{placement:s,rects:i,platform:o,elements:l}=a,{apply:d=()=>{},...h}=Qa(t,a),u=await xl(a,h),p=en(s),y=wc(s),m=Ia(s)==="y",{width:x,height:f}=i.floating;let v,k;p==="top"||p==="bottom"?(v=p,k=y===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(k=p,v=y==="end"?"top":"bottom");const w=f-u.top-u.bottom,b=x-u.left-u.right,C=En(f-u[v],w),j=En(x-u[k],b),I=!a.middlewareData.shift;let N=C,S=j;if((n=a.middlewareData.shift)!=null&&n.enabled.x&&(S=b),(r=a.middlewareData.shift)!=null&&r.enabled.y&&(N=w),I&&!y){const q=Bt(u.left,0),_=Bt(u.right,0),A=Bt(u.top,0),D=Bt(u.bottom,0);m?S=x-2*(q!==0||_!==0?q+_:Bt(u.left,u.right)):N=f-2*(A!==0||D!==0?A+D:Bt(u.top,u.bottom))}await d({...a,availableWidth:S,availableHeight:N});const L=await o.getDimensions(l.floating);return x!==L.width||f!==L.height?{reset:{rects:!0}}:{}}}};function l9(){return typeof window<"u"}function bc(t){return f_(t)?(t.nodeName||"").toLowerCase():"#document"}function Jt(t){var a;return(t==null||(a=t.ownerDocument)==null?void 0:a.defaultView)||window}function Fa(t){var a;return(a=(f_(t)?t.ownerDocument:t.document)||window.document)==null?void 0:a.documentElement}function f_(t){return l9()?t instanceof Node||t instanceof Jt(t).Node:!1}function ka(t){return l9()?t instanceof Element||t instanceof Jt(t).Element:!1}function qa(t){return l9()?t instanceof HTMLElement||t instanceof Jt(t).HTMLElement:!1}function uL(t){return!l9()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Jt(t).ShadowRoot}const gV=new Set(["inline","contents"]);function bl(t){const{overflow:a,overflowX:n,overflowY:r,display:s}=va(t);return/auto|scroll|overlay|hidden|clip/.test(a+r+n)&&!gV.has(s)}const kV=new Set(["table","td","th"]);function vV(t){return kV.has(bc(t))}const wV=[":popover-open",":modal"];function d9(t){return wV.some(a=>{try{return t.matches(a)}catch{return!1}})}const bV=["transform","translate","scale","rotate","perspective"],MV=["transform","translate","scale","rotate","perspective","filter"],jV=["paint","layout","strict","content"];function VS(t){const a=BS(),n=ka(t)?va(t):t;return bV.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!a&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!a&&(n.filter?n.filter!=="none":!1)||MV.some(r=>(n.willChange||"").includes(r))||jV.some(r=>(n.contain||"").includes(r))}function CV(t){let a=Fn(t);for(;qa(a)&&!gc(a);){if(VS(a))return a;if(d9(a))return null;a=Fn(a)}return null}function BS(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const SV=new Set(["html","body","#document"]);function gc(t){return SV.has(bc(t))}function va(t){return Jt(t).getComputedStyle(t)}function h9(t){return ka(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Fn(t){if(bc(t)==="html")return t;const a=t.assignedSlot||t.parentNode||uL(t)&&t.host||Fa(t);return uL(a)?a.host:a}function x_(t){const a=Fn(t);return gc(a)?t.ownerDocument?t.ownerDocument.body:t.body:qa(a)&&bl(a)?a:x_(a)}function gl(t,a,n){var r;a===void 0&&(a=[]),n===void 0&&(n=!0);const s=x_(t),i=s===((r=t.ownerDocument)==null?void 0:r.body),o=Jt(s);if(i){const l=AC(o);return a.concat(o,o.visualViewport||[],bl(s)?s:[],l&&n?gl(l):[])}return a.concat(s,gl(s,[],n))}function AC(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function g_(t){const a=va(t);let n=parseFloat(a.width)||0,r=parseFloat(a.height)||0;const s=qa(t),i=s?t.offsetWidth:n,o=s?t.offsetHeight:r,l=zj(n)!==i||zj(r)!==o;return l&&(n=i,r=o),{width:n,height:r,$:l}}function $S(t){return ka(t)?t:t.contextElement}function hc(t){const a=$S(t);if(!qa(a))return Ra(1);const n=a.getBoundingClientRect(),{width:r,height:s,$:i}=g_(a);let o=(i?zj(n.width):n.width)/r,l=(i?zj(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const NV=Ra(0);function k_(t){const a=Jt(t);return!BS()||!a.visualViewport?NV:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function LV(t,a,n){return a===void 0&&(a=!1),!n||a&&n!==Jt(t)?!1:a}function _o(t,a,n,r){a===void 0&&(a=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),i=$S(t);let o=Ra(1);a&&(r?ka(r)&&(o=hc(r)):o=hc(t));const l=LV(i,n,r)?k_(i):Ra(0);let d=(s.left+l.x)/o.x,h=(s.top+l.y)/o.y,u=s.width/o.x,p=s.height/o.y;if(i){const y=Jt(i),m=r&&ka(r)?Jt(r):r;let x=y,f=AC(x);for(;f&&r&&m!==x;){const v=hc(f),k=f.getBoundingClientRect(),w=va(f),b=k.left+(f.clientLeft+parseFloat(w.paddingLeft))*v.x,C=k.top+(f.clientTop+parseFloat(w.paddingTop))*v.y;d*=v.x,h*=v.y,u*=v.x,p*=v.y,d+=b,h+=C,x=Jt(f),f=AC(x)}}return Fj({width:u,height:p,x:d,y:h})}function u9(t,a){const n=h9(t).scrollLeft;return a?a.left+n:_o(Fa(t)).left+n}function v_(t,a){const n=t.getBoundingClientRect(),r=n.left+a.scrollLeft-u9(t,n),s=n.top+a.scrollTop;return{x:r,y:s}}function IV(t){let{elements:a,rect:n,offsetParent:r,strategy:s}=t;const i=s==="fixed",o=Fa(r),l=a?d9(a.floating):!1;if(r===o||l&&i)return n;let d={scrollLeft:0,scrollTop:0},h=Ra(1);const u=Ra(0),p=qa(r);if((p||!p&&!i)&&((bc(r)!=="body"||bl(o))&&(d=h9(r)),qa(r))){const m=_o(r);h=hc(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}const y=o&&!p&&!i?v_(o,d):Ra(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-d.scrollLeft*h.x+u.x+y.x,y:n.y*h.y-d.scrollTop*h.y+u.y+y.y}}function AV(t){return Array.from(t.getClientRects())}function PV(t){const a=Fa(t),n=h9(t),r=t.ownerDocument.body,s=Bt(a.scrollWidth,a.clientWidth,r.scrollWidth,r.clientWidth),i=Bt(a.scrollHeight,a.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+u9(t);const l=-n.scrollTop;return va(r).direction==="rtl"&&(o+=Bt(a.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:l}}const pL=25;function _V(t,a){const n=Jt(t),r=Fa(t),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,l=0,d=0;if(s){i=s.width,o=s.height;const u=BS();(!u||u&&a==="fixed")&&(l=s.offsetLeft,d=s.offsetTop)}const h=u9(r);if(h<=0){const u=r.ownerDocument,p=u.body,y=getComputedStyle(p),m=u.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,x=Math.abs(r.clientWidth-p.clientWidth-m);x<=pL&&(i-=x)}else h<=pL&&(i+=h);return{width:i,height:o,x:l,y:d}}const RV=new Set(["absolute","fixed"]);function TV(t,a){const n=_o(t,!0,a==="fixed"),r=n.top+t.clientTop,s=n.left+t.clientLeft,i=qa(t)?hc(t):Ra(1),o=t.clientWidth*i.x,l=t.clientHeight*i.y,d=s*i.x,h=r*i.y;return{width:o,height:l,x:d,y:h}}function mL(t,a,n){let r;if(a==="viewport")r=_V(t,n);else if(a==="document")r=PV(Fa(t));else if(ka(a))r=TV(a,n);else{const s=k_(t);r={x:a.x-s.x,y:a.y-s.y,width:a.width,height:a.height}}return Fj(r)}function w_(t,a){const n=Fn(t);return n===a||!ka(n)||gc(n)?!1:va(n).position==="fixed"||w_(n,a)}function DV(t,a){const n=a.get(t);if(n)return n;let r=gl(t,[],!1).filter(l=>ka(l)&&bc(l)!=="body"),s=null;const i=va(t).position==="fixed";let o=i?Fn(t):t;for(;ka(o)&&!gc(o);){const l=va(o),d=VS(o);!d&&l.position==="fixed"&&(s=null),(i?!d&&!s:!d&&l.position==="static"&&!!s&&RV.has(s.position)||bl(o)&&!d&&w_(t,o))?r=r.filter(u=>u!==o):s=l,o=Fn(o)}return a.set(t,r),r}function qV(t){let{element:a,boundary:n,rootBoundary:r,strategy:s}=t;const o=[...n==="clippingAncestors"?d9(a)?[]:DV(a,this._c):[].concat(n),r],l=o[0],d=o.reduce((h,u)=>{const p=mL(a,u,s);return h.top=Bt(p.top,h.top),h.right=En(p.right,h.right),h.bottom=En(p.bottom,h.bottom),h.left=Bt(p.left,h.left),h},mL(a,l,s));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function zV(t){const{width:a,height:n}=g_(t);return{width:a,height:n}}function EV(t,a,n){const r=qa(a),s=Fa(a),i=n==="fixed",o=_o(t,!0,i,a);let l={scrollLeft:0,scrollTop:0};const d=Ra(0);function h(){d.x=u9(s)}if(r||!r&&!i)if((bc(a)!=="body"||bl(s))&&(l=h9(a)),r){const m=_o(a,!0,i,a);d.x=m.x+a.clientLeft,d.y=m.y+a.clientTop}else s&&h();i&&!r&&s&&h();const u=s&&!r&&!i?v_(s,l):Ra(0),p=o.left+l.scrollLeft-d.x-u.x,y=o.top+l.scrollTop-d.y-u.y;return{x:p,y,width:o.width,height:o.height}}function Z9(t){return va(t).position==="static"}function yL(t,a){if(!qa(t)||va(t).position==="fixed")return null;if(a)return a(t);let n=t.offsetParent;return Fa(t)===n&&(n=n.ownerDocument.body),n}function b_(t,a){const n=Jt(t);if(d9(t))return n;if(!qa(t)){let s=Fn(t);for(;s&&!gc(s);){if(ka(s)&&!Z9(s))return s;s=Fn(s)}return n}let r=yL(t,a);for(;r&&vV(r)&&Z9(r);)r=yL(r,a);return r&&gc(r)&&Z9(r)&&!VS(r)?n:r||CV(t)||n}const FV=async function(t){const a=this.getOffsetParent||b_,n=this.getDimensions,r=await n(t.floating);return{reference:EV(t.reference,await a(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function OV(t){return va(t).direction==="rtl"}const HV={convertOffsetParentRelativeRectToViewportRelativeRect:IV,getDocumentElement:Fa,getClippingRect:qV,getOffsetParent:b_,getElementRects:FV,getClientRects:AV,getDimensions:zV,getScale:hc,isElement:ka,isRTL:OV};function M_(t,a){return t.x===a.x&&t.y===a.y&&t.width===a.width&&t.height===a.height}function VV(t,a){let n=null,r;const s=Fa(t);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function o(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),i();const h=t.getBoundingClientRect(),{left:u,top:p,width:y,height:m}=h;if(l||a(),!y||!m)return;const x=zl(p),f=zl(s.clientWidth-(u+y)),v=zl(s.clientHeight-(p+m)),k=zl(u),b={rootMargin:-x+"px "+-f+"px "+-v+"px "+-k+"px",threshold:Bt(0,En(1,d))||1};let C=!0;function j(I){const N=I[0].intersectionRatio;if(N!==d){if(!C)return o();N?o(!1,N):r=setTimeout(()=>{o(!1,1e-7)},1e3)}N===1&&!M_(h,t.getBoundingClientRect())&&o(),C=!1}try{n=new IntersectionObserver(j,{...b,root:s.ownerDocument})}catch{n=new IntersectionObserver(j,b)}n.observe(t)}return o(!0),i}function BV(t,a,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,h=$S(t),u=s||i?[...h?gl(h):[],...gl(a)]:[];u.forEach(k=>{s&&k.addEventListener("scroll",n,{passive:!0}),i&&k.addEventListener("resize",n)});const p=h&&l?VV(h,n):null;let y=-1,m=null;o&&(m=new ResizeObserver(k=>{let[w]=k;w&&w.target===h&&m&&(m.unobserve(a),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(a)})),n()}),h&&!d&&m.observe(h),m.observe(a));let x,f=d?_o(t):null;d&&v();function v(){const k=_o(t);f&&!M_(f,k)&&n(),f=k,x=requestAnimationFrame(v)}return n(),()=>{var k;u.forEach(w=>{s&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),p==null||p(),(k=m)==null||k.disconnect(),m=null,d&&cancelAnimationFrame(x)}}const $V=mV,UV=yV,GV=hV,WV=xV,ZV=uV,fL=dV,JV=fV,XV=(t,a,n)=>{const r=new Map,s={platform:HV,...n},i={...s.platform,_c:r};return lV(t,a,{...s,platform:i})};var YV=typeof document<"u",KV=function(){},jj=YV?M.useLayoutEffect:KV;function Oj(t,a){if(t===a)return!0;if(typeof t!=typeof a)return!1;if(typeof t=="function"&&t.toString()===a.toString())return!0;let n,r,s;if(t&&a&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==a.length)return!1;for(r=n;r--!==0;)if(!Oj(t[r],a[r]))return!1;return!0}if(s=Object.keys(t),n=s.length,n!==Object.keys(a).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(a,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&t.$$typeof)&&!Oj(t[i],a[i]))return!1}return!0}return t!==t&&a!==a}function j_(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function xL(t,a){const n=j_(t);return Math.round(a*n)/n}function J9(t){const a=g.useRef(t);return jj(()=>{a.current=t}),a}function QV(t){t===void 0&&(t={});const{placement:a="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:l=!0,whileElementsMounted:d,open:h}=t,[u,p]=g.useState({x:0,y:0,strategy:n,placement:a,middlewareData:{},isPositioned:!1}),[y,m]=g.useState(r);Oj(y,r)||m(r);const[x,f]=g.useState(null),[v,k]=g.useState(null),w=g.useCallback(F=>{F!==I.current&&(I.current=F,f(F))},[]),b=g.useCallback(F=>{F!==N.current&&(N.current=F,k(F))},[]),C=i||x,j=o||v,I=g.useRef(null),N=g.useRef(null),S=g.useRef(u),L=d!=null,q=J9(d),_=J9(s),A=J9(h),D=g.useCallback(()=>{if(!I.current||!N.current)return;const F={placement:a,strategy:n,middleware:y};_.current&&(F.platform=_.current),XV(I.current,N.current,F).then(se=>{const K={...se,isPositioned:A.current!==!1};H.current&&!Oj(S.current,K)&&(S.current=K,$j.flushSync(()=>{p(K)}))})},[y,a,n,_,A]);jj(()=>{h===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,p(F=>({...F,isPositioned:!1})))},[h]);const H=g.useRef(!1);jj(()=>(H.current=!0,()=>{H.current=!1}),[]),jj(()=>{if(C&&(I.current=C),j&&(N.current=j),C&&j){if(q.current)return q.current(C,j,D);D()}},[C,j,D,q,L]);const G=g.useMemo(()=>({reference:I,floating:N,setReference:w,setFloating:b}),[w,b]),V=g.useMemo(()=>({reference:C,floating:j}),[C,j]),U=g.useMemo(()=>{const F={position:n,left:0,top:0};if(!V.floating)return F;const se=xL(V.floating,u.x),K=xL(V.floating,u.y);return l?{...F,transform:"translate("+se+"px, "+K+"px)",...j_(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:se,top:K}},[n,l,V.floating,u.x,u.y]);return g.useMemo(()=>({...u,update:D,refs:G,elements:V,floatingStyles:U}),[u,D,G,V,U])}const eB=t=>{function a(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:s}=typeof t=="function"?t(n):t;return r&&a(r)?r.current!=null?fL({element:r.current,padding:s}).fn(n):{}:r?fL({element:r,padding:s}).fn(n):{}}}},tB=(t,a)=>({...$V(t),options:[t,a]}),aB=(t,a)=>({...UV(t),options:[t,a]}),nB=(t,a)=>({...JV(t),options:[t,a]}),rB=(t,a)=>({...GV(t),options:[t,a]}),sB=(t,a)=>({...WV(t),options:[t,a]}),iB=(t,a)=>({...ZV(t),options:[t,a]}),oB=(t,a)=>({...eB(t),options:[t,a]});var cB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],lB=cB.reduce((t,a)=>{const n=Ye(`Primitive.${a}`),r=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{}),dB="Arrow",C_=g.forwardRef((t,a)=>{const{children:n,width:r=10,height:s=5,...i}=t;return e.jsx(lB.svg,{...i,ref:a,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:e.jsx("polygon",{points:"0,0 30,0 15,10"})})});C_.displayName=dB;var hB=C_;function gL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function uB(...t){return a=>{let n=!1;const r=t.map(s=>{const i=gL(s,a);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():gL(t[s],null)}}}}function S_(...t){return g.useCallback(uB(...t),t)}function pB(t,a=[]){let n=[];function r(i,o){const l=g.createContext(o),d=n.length;n=[...n,o];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=n.map(o=>g.createContext(o));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[r,mB(s,...a)]}function mB(...t){const a=t[0];if(t.length===1)return a;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:o}),[o])}};return n.scopeName=a.scopeName,n}var yB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],N_=yB.reduce((t,a)=>{const n=Ye(`Primitive.${a}`),r=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{});function fB(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...n)=>{var r;return(r=a.current)==null?void 0:r.call(a,...n)},[])}var kL=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},US="Popper",[L_,p9]=pB(US),[xB,I_]=L_(US),A_=t=>{const{__scopePopper:a,children:n}=t,[r,s]=g.useState(null);return e.jsx(xB,{scope:a,anchor:r,onAnchorChange:s,children:n})};A_.displayName=US;var P_="PopperAnchor",__=g.forwardRef((t,a)=>{const{__scopePopper:n,virtualRef:r,...s}=t,i=I_(P_,n),o=g.useRef(null),l=S_(a,o),d=g.useRef(null);return g.useEffect(()=>{const h=d.current;d.current=(r==null?void 0:r.current)||o.current,h!==d.current&&i.onAnchorChange(d.current)}),r?null:e.jsx(N_.div,{...s,ref:l})});__.displayName=P_;var GS="PopperContent",[gB,kB]=L_(GS),R_=g.forwardRef((t,a)=>{var Z,ae,ge,ke,ie,me;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:l=0,avoidCollisions:d=!0,collisionBoundary:h=[],collisionPadding:u=0,sticky:p="partial",hideWhenDetached:y=!1,updatePositionStrategy:m="optimized",onPlaced:x,...f}=t,v=I_(GS,n),[k,w]=g.useState(null),b=S_(a,Ie=>w(Ie)),[C,j]=g.useState(null),I=TS(C),N=(I==null?void 0:I.width)??0,S=(I==null?void 0:I.height)??0,L=r+(i!=="center"?"-"+i:""),q=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},_=Array.isArray(h)?h:[h],A=_.length>0,D={padding:q,boundary:_.filter(wB),altBoundary:A},{refs:H,floatingStyles:G,placement:V,isPositioned:U,middlewareData:F}=QV({strategy:"fixed",placement:L,whileElementsMounted:(...Ie)=>BV(...Ie,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[tB({mainAxis:s+S,alignmentAxis:o}),d&&aB({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?nB():void 0,...D}),d&&rB({...D}),sB({...D,apply:({elements:Ie,rects:Ae,availableWidth:Fe,availableHeight:ot})=>{const{width:gt,height:Nt}=Ae.reference,ct=Ie.floating.style;ct.setProperty("--radix-popper-available-width",`${Fe}px`),ct.setProperty("--radix-popper-available-height",`${ot}px`),ct.setProperty("--radix-popper-anchor-width",`${gt}px`),ct.setProperty("--radix-popper-anchor-height",`${Nt}px`)}}),C&&oB({element:C,padding:l}),bB({arrowWidth:N,arrowHeight:S}),y&&iB({strategy:"referenceHidden",...D})]}),[se,K]=q_(V),X=fB(x);kL(()=>{U&&(X==null||X())},[U,X]);const J=(Z=F.arrow)==null?void 0:Z.x,re=(ae=F.arrow)==null?void 0:ae.y,te=((ge=F.arrow)==null?void 0:ge.centerOffset)!==0,[ye,ve]=g.useState();return kL(()=>{k&&ve(window.getComputedStyle(k).zIndex)},[k]),e.jsx("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:U?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ye,"--radix-popper-transform-origin":[(ke=F.transformOrigin)==null?void 0:ke.x,(ie=F.transformOrigin)==null?void 0:ie.y].join(" "),...((me=F.hide)==null?void 0:me.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:e.jsx(gB,{scope:n,placedSide:se,onArrowChange:j,arrowX:J,arrowY:re,shouldHideArrow:te,children:e.jsx(N_.div,{"data-side":se,"data-align":K,...f,ref:b,style:{...f.style,animation:U?void 0:"none"}})})})});R_.displayName=GS;var T_="PopperArrow",vB={top:"bottom",right:"left",bottom:"top",left:"right"},D_=g.forwardRef(function(a,n){const{__scopePopper:r,...s}=a,i=kB(T_,r),o=vB[i.placedSide];return e.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:e.jsx(hB,{...s,ref:n,style:{...s.style,display:"block"}})})});D_.displayName=T_;function wB(t){return t!==null}var bB=t=>({name:"transformOrigin",options:t,fn(a){var v,k,w;const{placement:n,rects:r,middlewareData:s}=a,o=((v=s.arrow)==null?void 0:v.centerOffset)!==0,l=o?0:t.arrowWidth,d=o?0:t.arrowHeight,[h,u]=q_(n),p={start:"0%",center:"50%",end:"100%"}[u],y=(((k=s.arrow)==null?void 0:k.x)??0)+l/2,m=(((w=s.arrow)==null?void 0:w.y)??0)+d/2;let x="",f="";return h==="bottom"?(x=o?p:`${y}px`,f=`${-d}px`):h==="top"?(x=o?p:`${y}px`,f=`${r.floating.height+d}px`):h==="right"?(x=`${-d}px`,f=o?p:`${m}px`):h==="left"&&(x=`${r.floating.width+d}px`,f=o?p:`${m}px`),{data:{x,y:f}}}});function q_(t){const[a,n="center"]=t.split("-");return[a,n]}var z_=A_,WS=__,E_=R_,F_=D_,MB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Yt=MB.reduce((t,a)=>{const n=Ye(`Primitive.${a}`),r=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{});function jB(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...n)=>{var r;return(r=a.current)==null?void 0:r.call(a,...n)},[])}var CB=g[" useInsertionEffect ".trim().toString()]||Da;function vL({prop:t,defaultProp:a,onChange:n=()=>{},caller:r}){const[s,i,o]=SB({defaultProp:a,onChange:n}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,r])}const h=g.useCallback(u=>{var p;if(l){const y=NB(u)?u(t):u;y!==t&&((p=o.current)==null||p.call(o,y))}else i(u)},[l,t,i,o]);return[d,h]}function SB({defaultProp:t,onChange:a}){const[n,r]=g.useState(t),s=g.useRef(n),i=g.useRef(a);return CB(()=>{i.current=a},[a]),g.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function NB(t){return typeof t=="function"}var LB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],IB=LB.reduce((t,a)=>{const n=Ye(`Primitive.${a}`),r=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{}),O_=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),AB="VisuallyHidden",PB=g.forwardRef((t,a)=>e.jsx(IB.span,{...t,ref:a,style:{...O_,...t.style}}));PB.displayName=AB;var _B=[" ","Enter","ArrowUp","ArrowDown"],RB=[" ","Enter"],Ro="Select",[m9,y9,TB]=WH(Ro),[Mc,lZ]=p_(Ro,[TB,p9]),f9=p9(),[DB,Hn]=Mc(Ro),[qB,zB]=Mc(Ro),H_=t=>{const{__scopeSelect:a,children:n,open:r,defaultOpen:s,onOpenChange:i,value:o,defaultValue:l,onValueChange:d,dir:h,name:u,autoComplete:p,disabled:y,required:m,form:x}=t,f=f9(a),[v,k]=g.useState(null),[w,b]=g.useState(null),[C,j]=g.useState(!1),I=JH(h),[N,S]=vL({prop:r,defaultProp:s??!1,onChange:i,caller:Ro}),[L,q]=vL({prop:o,defaultProp:l,onChange:d,caller:Ro}),_=g.useRef(null),A=v?x||!!v.closest("form"):!0,[D,H]=g.useState(new Set),G=Array.from(D).map(V=>V.props.value).join(";");return e.jsx(z_,{...f,children:e.jsxs(DB,{required:m,scope:a,trigger:v,onTriggerChange:k,valueNode:w,onValueNodeChange:b,valueNodeHasChildren:C,onValueNodeHasChildrenChange:j,contentId:ES(),value:L,onValueChange:q,open:N,onOpenChange:S,dir:I,triggerPointerDownPosRef:_,disabled:y,children:[e.jsx(m9.Provider,{scope:a,children:e.jsx(qB,{scope:t.__scopeSelect,onNativeOptionAdd:g.useCallback(V=>{H(U=>new Set(U).add(V))},[]),onNativeOptionRemove:g.useCallback(V=>{H(U=>{const F=new Set(U);return F.delete(V),F})},[]),children:n})}),A?e.jsxs(hR,{"aria-hidden":!0,required:m,tabIndex:-1,name:u,autoComplete:p,value:L,onChange:V=>q(V.target.value),disabled:y,form:x,children:[L===void 0?e.jsx("option",{value:""}):null,Array.from(D)]},G):null]})})};H_.displayName=Ro;var V_="SelectTrigger",B_=g.forwardRef((t,a)=>{const{__scopeSelect:n,disabled:r=!1,...s}=t,i=f9(n),o=Hn(V_,n),l=o.disabled||r,d=ua(a,o.onTriggerChange),h=y9(n),u=g.useRef("touch"),[p,y,m]=pR(f=>{const v=h().filter(b=>!b.disabled),k=v.find(b=>b.value===o.value),w=mR(v,f,k);w!==void 0&&o.onValueChange(w.value)}),x=f=>{l||(o.onOpenChange(!0),m()),f&&(o.triggerPointerDownPosRef.current={x:Math.round(f.pageX),y:Math.round(f.pageY)})};return e.jsx(WS,{asChild:!0,...i,children:e.jsx(Yt.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":uR(o.value)?"":void 0,...s,ref:d,onClick:ht(s.onClick,f=>{f.currentTarget.focus(),u.current!=="mouse"&&x(f)}),onPointerDown:ht(s.onPointerDown,f=>{u.current=f.pointerType;const v=f.target;v.hasPointerCapture(f.pointerId)&&v.releasePointerCapture(f.pointerId),f.button===0&&f.ctrlKey===!1&&f.pointerType==="mouse"&&(x(f),f.preventDefault())}),onKeyDown:ht(s.onKeyDown,f=>{const v=p.current!=="";!(f.ctrlKey||f.altKey||f.metaKey)&&f.key.length===1&&y(f.key),!(v&&f.key===" ")&&_B.includes(f.key)&&(x(),f.preventDefault())})})})});B_.displayName=V_;var $_="SelectValue",U_=g.forwardRef((t,a)=>{const{__scopeSelect:n,className:r,style:s,children:i,placeholder:o="",...l}=t,d=Hn($_,n),{onValueNodeHasChildrenChange:h}=d,u=i!==void 0,p=ua(a,d.onValueNodeChange);return Da(()=>{h(u)},[h,u]),e.jsx(Yt.span,{...l,ref:p,style:{pointerEvents:"none"},children:uR(d.value)?e.jsx(e.Fragment,{children:o}):i})});U_.displayName=$_;var EB="SelectIcon",G_=g.forwardRef((t,a)=>{const{__scopeSelect:n,children:r,...s}=t;return e.jsx(Yt.span,{"aria-hidden":!0,...s,ref:a,children:r||"▼"})});G_.displayName=EB;var FB="SelectPortal",W_=t=>e.jsx(a9,{asChild:!0,...t});W_.displayName=FB;var To="SelectContent",Z_=g.forwardRef((t,a)=>{const n=Hn(To,t.__scopeSelect),[r,s]=g.useState();if(Da(()=>{s(new DocumentFragment)},[]),!n.open){const i=r;return i?$j.createPortal(e.jsx(J_,{scope:t.__scopeSelect,children:e.jsx(m9.Slot,{scope:t.__scopeSelect,children:e.jsx("div",{children:t.children})})}),i):null}return e.jsx(X_,{...t,ref:a})});Z_.displayName=To;var ya=10,[J_,Vn]=Mc(To),OB="SelectContentImpl",HB=Ye("SelectContent.RemoveScroll"),X_=g.forwardRef((t,a)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:o,side:l,sideOffset:d,align:h,alignOffset:u,arrowPadding:p,collisionBoundary:y,collisionPadding:m,sticky:x,hideWhenDetached:f,avoidCollisions:v,...k}=t,w=Hn(To,n),[b,C]=g.useState(null),[j,I]=g.useState(null),N=ua(a,Z=>C(Z)),[S,L]=g.useState(null),[q,_]=g.useState(null),A=y9(n),[D,H]=g.useState(!1),G=g.useRef(!1);g.useEffect(()=>{if(b)return wS(b)},[b]),vS();const V=g.useCallback(Z=>{const[ae,...ge]=A().map(me=>me.ref.current),[ke]=ge.slice(-1),ie=document.activeElement;for(const me of Z)if(me===ie||(me==null||me.scrollIntoView({block:"nearest"}),me===ae&&j&&(j.scrollTop=0),me===ke&&j&&(j.scrollTop=j.scrollHeight),me==null||me.focus(),document.activeElement!==ie))return},[A,j]),U=g.useCallback(()=>V([S,b]),[V,S,b]);g.useEffect(()=>{D&&U()},[D,U]);const{onOpenChange:F,triggerPointerDownPosRef:se}=w;g.useEffect(()=>{if(b){let Z={x:0,y:0};const ae=ke=>{var ie,me;Z={x:Math.abs(Math.round(ke.pageX)-(((ie=se.current)==null?void 0:ie.x)??0)),y:Math.abs(Math.round(ke.pageY)-(((me=se.current)==null?void 0:me.y)??0))}},ge=ke=>{Z.x<=10&&Z.y<=10?ke.preventDefault():b.contains(ke.target)||F(!1),document.removeEventListener("pointermove",ae),se.current=null};return se.current!==null&&(document.addEventListener("pointermove",ae),document.addEventListener("pointerup",ge,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ae),document.removeEventListener("pointerup",ge,{capture:!0})}}},[b,F,se]),g.useEffect(()=>{const Z=()=>F(!1);return window.addEventListener("blur",Z),window.addEventListener("resize",Z),()=>{window.removeEventListener("blur",Z),window.removeEventListener("resize",Z)}},[F]);const[K,X]=pR(Z=>{const ae=A().filter(ie=>!ie.disabled),ge=ae.find(ie=>ie.ref.current===document.activeElement),ke=mR(ae,Z,ge);ke&&setTimeout(()=>ke.ref.current.focus())}),J=g.useCallback((Z,ae,ge)=>{const ke=!G.current&&!ge;(w.value!==void 0&&w.value===ae||ke)&&(L(Z),ke&&(G.current=!0))},[w.value]),re=g.useCallback(()=>b==null?void 0:b.focus(),[b]),te=g.useCallback((Z,ae,ge)=>{const ke=!G.current&&!ge;(w.value!==void 0&&w.value===ae||ke)&&_(Z)},[w.value]),ye=r==="popper"?PC:Y_,ve=ye===PC?{side:l,sideOffset:d,align:h,alignOffset:u,arrowPadding:p,collisionBoundary:y,collisionPadding:m,sticky:x,hideWhenDetached:f,avoidCollisions:v}:{};return e.jsx(J_,{scope:n,content:b,viewport:j,onViewportChange:I,itemRefCallback:J,selectedItem:S,onItemLeave:re,itemTextRefCallback:te,focusSelectedItem:U,selectedItemText:q,position:r,isPositioned:D,searchRef:K,children:e.jsx(s9,{as:HB,allowPinchZoom:!0,children:e.jsx(t9,{asChild:!0,trapped:w.open,onMountAutoFocus:Z=>{Z.preventDefault()},onUnmountAutoFocus:ht(s,Z=>{var ae;(ae=w.trigger)==null||ae.focus({preventScroll:!0}),Z.preventDefault()}),children:e.jsx(e9,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:Z=>Z.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:e.jsx(ye,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:Z=>Z.preventDefault(),...k,...ve,onPlaced:()=>H(!0),ref:N,style:{display:"flex",flexDirection:"column",outline:"none",...k.style},onKeyDown:ht(k.onKeyDown,Z=>{const ae=Z.ctrlKey||Z.altKey||Z.metaKey;if(Z.key==="Tab"&&Z.preventDefault(),!ae&&Z.key.length===1&&X(Z.key),["ArrowUp","ArrowDown","Home","End"].includes(Z.key)){let ke=A().filter(ie=>!ie.disabled).map(ie=>ie.ref.current);if(["ArrowUp","End"].includes(Z.key)&&(ke=ke.slice().reverse()),["ArrowUp","ArrowDown"].includes(Z.key)){const ie=Z.target,me=ke.indexOf(ie);ke=ke.slice(me+1)}setTimeout(()=>V(ke)),Z.preventDefault()}})})})})})})});X_.displayName=OB;var VB="SelectItemAlignedPosition",Y_=g.forwardRef((t,a)=>{const{__scopeSelect:n,onPlaced:r,...s}=t,i=Hn(To,n),o=Vn(To,n),[l,d]=g.useState(null),[h,u]=g.useState(null),p=ua(a,N=>u(N)),y=y9(n),m=g.useRef(!1),x=g.useRef(!0),{viewport:f,selectedItem:v,selectedItemText:k,focusSelectedItem:w}=o,b=g.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&h&&f&&v&&k){const N=i.trigger.getBoundingClientRect(),S=h.getBoundingClientRect(),L=i.valueNode.getBoundingClientRect(),q=k.getBoundingClientRect();if(i.dir!=="rtl"){const ie=q.left-S.left,me=L.left-ie,Ie=N.left-me,Ae=N.width+Ie,Fe=Math.max(Ae,S.width),ot=window.innerWidth-ya,gt=sL(me,[ya,Math.max(ya,ot-Fe)]);l.style.minWidth=Ae+"px",l.style.left=gt+"px"}else{const ie=S.right-q.right,me=window.innerWidth-L.right-ie,Ie=window.innerWidth-N.right-me,Ae=N.width+Ie,Fe=Math.max(Ae,S.width),ot=window.innerWidth-ya,gt=sL(me,[ya,Math.max(ya,ot-Fe)]);l.style.minWidth=Ae+"px",l.style.right=gt+"px"}const _=y(),A=window.innerHeight-ya*2,D=f.scrollHeight,H=window.getComputedStyle(h),G=parseInt(H.borderTopWidth,10),V=parseInt(H.paddingTop,10),U=parseInt(H.borderBottomWidth,10),F=parseInt(H.paddingBottom,10),se=G+V+D+F+U,K=Math.min(v.offsetHeight*5,se),X=window.getComputedStyle(f),J=parseInt(X.paddingTop,10),re=parseInt(X.paddingBottom,10),te=N.top+N.height/2-ya,ye=A-te,ve=v.offsetHeight/2,Z=v.offsetTop+ve,ae=G+V+Z,ge=se-ae;if(ae<=te){const ie=_.length>0&&v===_[_.length-1].ref.current;l.style.bottom="0px";const me=h.clientHeight-f.offsetTop-f.offsetHeight,Ie=Math.max(ye,ve+(ie?re:0)+me+U),Ae=ae+Ie;l.style.height=Ae+"px"}else{const ie=_.length>0&&v===_[0].ref.current;l.style.top="0px";const Ie=Math.max(te,G+f.offsetTop+(ie?J:0)+ve)+ge;l.style.height=Ie+"px",f.scrollTop=ae-te+f.offsetTop}l.style.margin=`${ya}px 0`,l.style.minHeight=K+"px",l.style.maxHeight=A+"px",r==null||r(),requestAnimationFrame(()=>m.current=!0)}},[y,i.trigger,i.valueNode,l,h,f,v,k,i.dir,r]);Da(()=>b(),[b]);const[C,j]=g.useState();Da(()=>{h&&j(window.getComputedStyle(h).zIndex)},[h]);const I=g.useCallback(N=>{N&&x.current===!0&&(b(),w==null||w(),x.current=!1)},[b,w]);return e.jsx($B,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:m,onScrollButtonChange:I,children:e.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:e.jsx(Yt.div,{...s,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});Y_.displayName=VB;var BB="SelectPopperPosition",PC=g.forwardRef((t,a)=>{const{__scopeSelect:n,align:r="start",collisionPadding:s=ya,...i}=t,o=f9(n);return e.jsx(E_,{...o,...i,ref:a,align:r,collisionPadding:s,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});PC.displayName=BB;var[$B,ZS]=Mc(To,{}),_C="SelectViewport",K_=g.forwardRef((t,a)=>{const{__scopeSelect:n,nonce:r,...s}=t,i=Vn(_C,n),o=ZS(_C,n),l=ua(a,i.onViewportChange),d=g.useRef(0);return e.jsxs(e.Fragment,{children:[e.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),e.jsx(m9.Slot,{scope:n,children:e.jsx(Yt.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:ht(s.onScroll,h=>{const u=h.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:y}=o;if(y!=null&&y.current&&p){const m=Math.abs(d.current-u.scrollTop);if(m>0){const x=window.innerHeight-ya*2,f=parseFloat(p.style.minHeight),v=parseFloat(p.style.height),k=Math.max(f,v);if(k<x){const w=k+m,b=Math.min(x,w),C=w-b;p.style.height=b+"px",p.style.bottom==="0px"&&(u.scrollTop=C>0?C:0,p.style.justifyContent="flex-end")}}}d.current=u.scrollTop})})})]})});K_.displayName=_C;var Q_="SelectGroup",[UB,GB]=Mc(Q_),WB=g.forwardRef((t,a)=>{const{__scopeSelect:n,...r}=t,s=ES();return e.jsx(UB,{scope:n,id:s,children:e.jsx(Yt.div,{role:"group","aria-labelledby":s,...r,ref:a})})});WB.displayName=Q_;var eR="SelectLabel",tR=g.forwardRef((t,a)=>{const{__scopeSelect:n,...r}=t,s=GB(eR,n);return e.jsx(Yt.div,{id:s.id,...r,ref:a})});tR.displayName=eR;var Hj="SelectItem",[ZB,aR]=Mc(Hj),nR=g.forwardRef((t,a)=>{const{__scopeSelect:n,value:r,disabled:s=!1,textValue:i,...o}=t,l=Hn(Hj,n),d=Vn(Hj,n),h=l.value===r,[u,p]=g.useState(i??""),[y,m]=g.useState(!1),x=ua(a,w=>{var b;return(b=d.itemRefCallback)==null?void 0:b.call(d,w,r,s)}),f=ES(),v=g.useRef("touch"),k=()=>{s||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return e.jsx(ZB,{scope:n,value:r,disabled:s,textId:f,isSelected:h,onItemTextChange:g.useCallback(w=>{p(b=>b||((w==null?void 0:w.textContent)??"").trim())},[]),children:e.jsx(m9.ItemSlot,{scope:n,value:r,disabled:s,textValue:u,children:e.jsx(Yt.div,{role:"option","aria-labelledby":f,"data-highlighted":y?"":void 0,"aria-selected":h&&y,"data-state":h?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...o,ref:x,onFocus:ht(o.onFocus,()=>m(!0)),onBlur:ht(o.onBlur,()=>m(!1)),onClick:ht(o.onClick,()=>{v.current!=="mouse"&&k()}),onPointerUp:ht(o.onPointerUp,()=>{v.current==="mouse"&&k()}),onPointerDown:ht(o.onPointerDown,w=>{v.current=w.pointerType}),onPointerMove:ht(o.onPointerMove,w=>{var b;v.current=w.pointerType,s?(b=d.onItemLeave)==null||b.call(d):v.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ht(o.onPointerLeave,w=>{var b;w.currentTarget===document.activeElement&&((b=d.onItemLeave)==null||b.call(d))}),onKeyDown:ht(o.onKeyDown,w=>{var C;((C=d.searchRef)==null?void 0:C.current)!==""&&w.key===" "||(RB.includes(w.key)&&k(),w.key===" "&&w.preventDefault())})})})})});nR.displayName=Hj;var Tc="SelectItemText",rR=g.forwardRef((t,a)=>{const{__scopeSelect:n,className:r,style:s,...i}=t,o=Hn(Tc,n),l=Vn(Tc,n),d=aR(Tc,n),h=zB(Tc,n),[u,p]=g.useState(null),y=ua(a,k=>p(k),d.onItemTextChange,k=>{var w;return(w=l.itemTextRefCallback)==null?void 0:w.call(l,k,d.value,d.disabled)}),m=u==null?void 0:u.textContent,x=g.useMemo(()=>e.jsx("option",{value:d.value,disabled:d.disabled,children:m},d.value),[d.disabled,d.value,m]),{onNativeOptionAdd:f,onNativeOptionRemove:v}=h;return Da(()=>(f(x),()=>v(x)),[f,v,x]),e.jsxs(e.Fragment,{children:[e.jsx(Yt.span,{id:d.textId,...i,ref:y}),d.isSelected&&o.valueNode&&!o.valueNodeHasChildren?$j.createPortal(i.children,o.valueNode):null]})});rR.displayName=Tc;var sR="SelectItemIndicator",iR=g.forwardRef((t,a)=>{const{__scopeSelect:n,...r}=t;return aR(sR,n).isSelected?e.jsx(Yt.span,{"aria-hidden":!0,...r,ref:a}):null});iR.displayName=sR;var RC="SelectScrollUpButton",oR=g.forwardRef((t,a)=>{const n=Vn(RC,t.__scopeSelect),r=ZS(RC,t.__scopeSelect),[s,i]=g.useState(!1),o=ua(a,r.onScrollButtonChange);return Da(()=>{if(n.viewport&&n.isPositioned){let l=function(){const h=d.scrollTop>0;i(h)};const d=n.viewport;return l(),d.addEventListener("scroll",l),()=>d.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),s?e.jsx(lR,{...t,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:d}=n;l&&d&&(l.scrollTop=l.scrollTop-d.offsetHeight)}}):null});oR.displayName=RC;var TC="SelectScrollDownButton",cR=g.forwardRef((t,a)=>{const n=Vn(TC,t.__scopeSelect),r=ZS(TC,t.__scopeSelect),[s,i]=g.useState(!1),o=ua(a,r.onScrollButtonChange);return Da(()=>{if(n.viewport&&n.isPositioned){let l=function(){const h=d.scrollHeight-d.clientHeight,u=Math.ceil(d.scrollTop)<h;i(u)};const d=n.viewport;return l(),d.addEventListener("scroll",l),()=>d.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),s?e.jsx(lR,{...t,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:d}=n;l&&d&&(l.scrollTop=l.scrollTop+d.offsetHeight)}}):null});cR.displayName=TC;var lR=g.forwardRef((t,a)=>{const{__scopeSelect:n,onAutoScroll:r,...s}=t,i=Vn("SelectScrollButton",n),o=g.useRef(null),l=y9(n),d=g.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return g.useEffect(()=>()=>d(),[d]),Da(()=>{var u;const h=l().find(p=>p.ref.current===document.activeElement);(u=h==null?void 0:h.ref.current)==null||u.scrollIntoView({block:"nearest"})},[l]),e.jsx(Yt.div,{"aria-hidden":!0,...s,ref:a,style:{flexShrink:0,...s.style},onPointerDown:ht(s.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:ht(s.onPointerMove,()=>{var h;(h=i.onItemLeave)==null||h.call(i),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:ht(s.onPointerLeave,()=>{d()})})}),JB="SelectSeparator",dR=g.forwardRef((t,a)=>{const{__scopeSelect:n,...r}=t;return e.jsx(Yt.div,{"aria-hidden":!0,...r,ref:a})});dR.displayName=JB;var DC="SelectArrow",XB=g.forwardRef((t,a)=>{const{__scopeSelect:n,...r}=t,s=f9(n),i=Hn(DC,n),o=Vn(DC,n);return i.open&&o.position==="popper"?e.jsx(F_,{...s,...r,ref:a}):null});XB.displayName=DC;var YB="SelectBubbleInput",hR=g.forwardRef(({__scopeSelect:t,value:a,...n},r)=>{const s=g.useRef(null),i=ua(r,s),o=RS(a);return g.useEffect(()=>{const l=s.current;if(!l)return;const d=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(d,"value").set;if(o!==a&&u){const p=new Event("change",{bubbles:!0});u.call(l,a),l.dispatchEvent(p)}},[o,a]),e.jsx(Yt.select,{...n,style:{...O_,...n.style},ref:i,defaultValue:a})});hR.displayName=YB;function uR(t){return t===""||t===void 0}function pR(t){const a=jB(t),n=g.useRef(""),r=g.useRef(0),s=g.useCallback(o=>{const l=n.current+o;a(l),function d(h){n.current=h,window.clearTimeout(r.current),h!==""&&(r.current=window.setTimeout(()=>d(""),1e3))}(l)},[a]),i=g.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,s,i]}function mR(t,a,n){const s=a.length>1&&Array.from(a).every(h=>h===a[0])?a[0]:a,i=n?t.indexOf(n):-1;let o=KB(t,Math.max(i,0));s.length===1&&(o=o.filter(h=>h!==n));const d=o.find(h=>h.textValue.toLowerCase().startsWith(s.toLowerCase()));return d!==n?d:void 0}function KB(t,a){return t.map((n,r)=>t[(a+r)%t.length])}var QB=H_,yR=B_,e$=U_,t$=G_,a$=W_,fR=Z_,n$=K_,xR=tR,gR=nR,r$=rR,s$=iR,kR=oR,vR=cR,JS=dR;const tn=QB,an=e$,za=g.forwardRef(({className:t,children:a,...n},r)=>e.jsxs(yR,{ref:r,className:fe("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...n,children:[a,e.jsx(t$,{asChild:!0,children:e.jsx(zP,{className:"h-4 w-4 opacity-50"})})]}));za.displayName=yR.displayName;const wR=g.forwardRef(({className:t,...a},n)=>e.jsx(kR,{ref:n,className:fe("flex cursor-default items-center justify-center py-1",t),...a,children:e.jsx(vO,{className:"h-4 w-4"})}));wR.displayName=kR.displayName;const bR=g.forwardRef(({className:t,...a},n)=>e.jsx(vR,{ref:n,className:fe("flex cursor-default items-center justify-center py-1",t),...a,children:e.jsx(zP,{className:"h-4 w-4"})}));bR.displayName=vR.displayName;const Ea=g.forwardRef(({className:t,children:a,position:n="popper",...r},s)=>e.jsx(a$,{children:e.jsxs(fR,{ref:s,className:fe("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:n,...r,children:[e.jsx(wR,{}),e.jsx(n$,{className:fe("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),e.jsx(bR,{})]})}));Ea.displayName=fR.displayName;const i$=g.forwardRef(({className:t,...a},n)=>e.jsx(xR,{ref:n,className:fe("px-2 py-1.5 text-sm font-semibold",t),...a}));i$.displayName=xR.displayName;const Mt=g.forwardRef(({className:t,children:a,...n},r)=>e.jsxs(gR,{ref:r,className:fe("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...n,children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(s$,{children:e.jsx(xO,{className:"h-4 w-4"})})}),e.jsx(r$,{children:a})]}));Mt.displayName=gR.displayName;const o$=g.forwardRef(({className:t,...a},n)=>e.jsx(JS,{ref:n,className:fe("-mx-1 my-1 h-px bg-muted",t),...a}));o$.displayName=JS.displayName;function c$(t,a,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t==null||t(s),n===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}function l$(t,a=[]){let n=[];function r(i,o){const l=g.createContext(o),d=n.length;n=[...n,o];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=n.map(o=>g.createContext(o));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[r,d$(s,...a)]}function d$(...t){const a=t[0];if(t.length===1)return a;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:o}),[o])}};return n.scopeName=a.scopeName,n}var kl=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},h$=g[" useInsertionEffect ".trim().toString()]||kl;function u$({prop:t,defaultProp:a,onChange:n=()=>{},caller:r}){const[s,i,o]=p$({defaultProp:a,onChange:n}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,r])}const h=g.useCallback(u=>{var p;if(l){const y=m$(u)?u(t):u;y!==t&&((p=o.current)==null||p.call(o,y))}else i(u)},[l,t,i,o]);return[d,h]}function p$({defaultProp:t,onChange:a}){const[n,r]=g.useState(t),s=g.useRef(n),i=g.useRef(a);return h$(()=>{i.current=a},[a]),g.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function m$(t){return typeof t=="function"}function wL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function y$(...t){return a=>{let n=!1;const r=t.map(s=>{const i=wL(s,a);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():wL(t[s],null)}}}}function MR(...t){return g.useCallback(y$(...t),t)}var f$=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],XS=f$.reduce((t,a)=>{const n=Ye(`Primitive.${a}`),r=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{});function x$(t,a){return g.useReducer((n,r)=>a[n][r]??n,t)}var jR=t=>{const{present:a,children:n}=t,r=g$(a),s=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),i=MR(r.ref,k$(s));return typeof n=="function"||r.isPresent?g.cloneElement(s,{ref:i}):null};jR.displayName="Presence";function g$(t){const[a,n]=g.useState(),r=g.useRef(null),s=g.useRef(t),i=g.useRef("none"),o=t?"mounted":"unmounted",[l,d]=x$(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const h=El(r.current);i.current=l==="mounted"?h:"none"},[l]),kl(()=>{const h=r.current,u=s.current;if(u!==t){const y=i.current,m=El(h);t?d("MOUNT"):m==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(u&&y!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,d]),kl(()=>{if(a){let h;const u=a.ownerDocument.defaultView??window,p=m=>{const f=El(r.current).includes(CSS.escape(m.animationName));if(m.target===a&&f&&(d("ANIMATION_END"),!s.current)){const v=a.style.animationFillMode;a.style.animationFillMode="forwards",h=u.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=v)})}},y=m=>{m.target===a&&(i.current=El(r.current))};return a.addEventListener("animationstart",y),a.addEventListener("animationcancel",p),a.addEventListener("animationend",p),()=>{u.clearTimeout(h),a.removeEventListener("animationstart",y),a.removeEventListener("animationcancel",p),a.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[a,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(h=>{r.current=h?getComputedStyle(h):null,n(h)},[])}}function El(t){return(t==null?void 0:t.animationName)||"none"}function k$(t){var r,s;let a=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=a&&"isReactWarning"in a&&a.isReactWarning;return n?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=a&&"isReactWarning"in a&&a.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var v$=g[" useId ".trim().toString()]||(()=>{}),w$=0;function b$(t){const[a,n]=g.useState(v$());return kl(()=>{t||n(r=>r??String(w$++))},[t]),t||(a?`radix-${a}`:"")}var x9="Collapsible",[M$,dZ]=l$(x9),[j$,YS]=M$(x9),CR=g.forwardRef((t,a)=>{const{__scopeCollapsible:n,open:r,defaultOpen:s,disabled:i,onOpenChange:o,...l}=t,[d,h]=u$({prop:r,defaultProp:s??!1,onChange:o,caller:x9});return e.jsx(j$,{scope:n,disabled:i,contentId:b$(),open:d,onOpenToggle:g.useCallback(()=>h(u=>!u),[h]),children:e.jsx(XS.div,{"data-state":QS(d),"data-disabled":i?"":void 0,...l,ref:a})})});CR.displayName=x9;var SR="CollapsibleTrigger",NR=g.forwardRef((t,a)=>{const{__scopeCollapsible:n,...r}=t,s=YS(SR,n);return e.jsx(XS.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":QS(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...r,ref:a,onClick:c$(t.onClick,s.onOpenToggle)})});NR.displayName=SR;var KS="CollapsibleContent",LR=g.forwardRef((t,a)=>{const{forceMount:n,...r}=t,s=YS(KS,t.__scopeCollapsible);return e.jsx(jR,{present:n||s.open,children:({present:i})=>e.jsx(C$,{...r,ref:a,present:i})})});LR.displayName=KS;var C$=g.forwardRef((t,a)=>{const{__scopeCollapsible:n,present:r,children:s,...i}=t,o=YS(KS,n),[l,d]=g.useState(r),h=g.useRef(null),u=MR(a,h),p=g.useRef(0),y=p.current,m=g.useRef(0),x=m.current,f=o.open||l,v=g.useRef(f),k=g.useRef(void 0);return g.useEffect(()=>{const w=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(w)},[]),kl(()=>{const w=h.current;if(w){k.current=k.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const b=w.getBoundingClientRect();p.current=b.height,m.current=b.width,v.current||(w.style.transitionDuration=k.current.transitionDuration,w.style.animationName=k.current.animationName),d(r)}},[o.open,r]),e.jsx(XS.div,{"data-state":QS(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!f,...i,ref:u,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...t.style},children:f&&s})});function QS(t){return t?"open":"closed"}var S$=CR;const N$=S$,L$=NR,I$=LR,IR=[{category:"Online Casino Operators",items:[{label:"Slots",matchers:["slot","slots"]},{label:"Live Casino",matchers:["live casino","live dealer","live-casino"]},{label:"Jackpots",matchers:["jackpot","jackpots"]},{label:"Sportsbook",matchers:["sportsbook"]},{label:"Crypto",matchers:["crypto","crypto casino","crypto-casino"]}]},{category:"Providers",items:[{label:"Game Provider",matchers:["aggregation","aggregator","game-platform","games","game-api"]},{label:"Live Casino",matchers:["live-casino-studio","live-casino-provider","live-casino","live casino","live studios","live dealer","live dealers","live dealer studio","live dealer studios"]},{label:"Game Platform",matchers:["aggregation","aggregator","game-platform","games","game-api"]},{label:"Bonus Platform",matchers:["bonus","promotions","promo","loyalty"]},{label:"Backoffice",matchers:["backoffice","back office","crm","admin"]},{label:"Gamification",matchers:["gamification"]},{label:"Tech Providers",matchers:["AI","Integrations","Development"]}]},{category:"Affiliate",items:[{label:"Affiliate Agencies",matchers:["affiliate agencies","affiliate","affiliate agency","affiliate marketing"]},{label:"Affiliate Program",matchers:["affiliate program","affiliate programs"]},{label:"Tracking Tools",matchers:["tracking","attribution"]},{label:"Affiliate Tools",matchers:["affiliate tools","attribution","Marketing Platform","Marketing Automation","Marketing Automation Platform"]}]},{category:"Payments",items:[{label:"Payment Processing",matchers:["payment","psp","wallet"]}]},{category:"Compliance",items:[{label:"KYC",matchers:["kyc","know your customer"]},{label:"AML",matchers:["aml","anti-money"]},{label:"Risk & Fraud",matchers:["risk","fraud"]}]}],AR=IR.flatMap(t=>t.items),PR={search:"",companyType:"",verticals:[],productCategories:[],employeeRanges:[],products:[],openRolesRanges:[],yearsActiveRanges:[],hiringNow:!1,scope:"company",claimedOnly:!1,hasLicenses:!1,hasAwards:!1},A$=t=>Array.from(new Set(t.filter(Boolean))).sort((a,n)=>a.localeCompare(n)),P$=t=>{if(typeof t=="string")return t.toLowerCase();if(typeof t=="number")return String(t);if(typeof t=="object"&&t!==null){if("name"in t&&typeof t.name=="string")return t.name.toLowerCase();if("title"in t&&typeof t.title=="string")return t.title.toLowerCase()}return""},_$=t=>{var a,n;if(typeof t=="string")return t;if(typeof t=="object"&&t!==null){const r=t;return r.title??((a=r.tag)==null?void 0:a.name)??((n=r.tag)==null?void 0:n.slug)??null}return null},R$=t=>{const a=t.productsAndServices.flatMap(n=>[n.name,n.category,n.description,...n.keyDifferentiators??[]]);return[t.name,t.companyType,t.classification.businessModel,...t.classification.verticals,...t.classification.productCategories,...t.classification.tags.map(_$).filter(n=>!!n),...a].filter(Boolean)},T$=t=>{const a=R$(t).map(P$).join(" ");return AR.filter(n=>n.matchers.some(r=>a.includes(r))).map(n=>n.label)},D$=t=>{if(!t.overview.foundedYear)return null;const a=new Date().getFullYear();return Math.max(0,a-t.overview.foundedYear)},q$=t=>A$([t.classification.businessModel,...t.productsAndServices.map(a=>a.integrationModel),...t.productsAndServices.flatMap(a=>a.keyDifferentiators)]),z$=t=>{var r;const a=D$(t),n=((r=t.group)==null?void 0:r.intelligenceProfile)??t.signalsAndInsights;return{products:T$(t),capabilities:q$(t),credibility:{licenses:t.trustAndCompliance.licenses.length,awards:t.trustAndCompliance.awards.length,certifications:t.trustAndCompliance.certifications.length,yearsActive:a},commercialSignals:{profileViews30d:n.profileViews30d,followsCount:n.followsCount,hiringIntensity:n.hiringIntensity,searchImpressions:t.visibilityMetrics.searchImpressions,profileClicks:t.visibilityMetrics.profileClicks,externalClicks:t.visibilityMetrics.externalClicks}}},bL=({filters:t,options:a,onFiltersChange:n,onClearFilters:r,resultCount:s})=>{const[i,o]=M.useState({companyType:!0,verticals:!0,products:!0,normalizedProducts:!0,employees:!1,hiring:!0,credibility:!0,signals:!1}),l=m=>{o(x=>({...x,[m]:!x[m]}))},d={companyTypes:a.companyTypes??[],verticals:a.verticals??[],productCategories:a.productCategories??[],employeeRanges:a.employeeRanges??[],products:a.products??[],openRolesRanges:a.openRolesRanges??[],yearsActiveRanges:a.yearsActiveRanges??[]},h=(m,x)=>{n({...t,[m]:x})},u=(m,x)=>{const f=t[m],v=f.includes(x)?f.filter(k=>k!==x):[...f,x];h(m,v)},p=(t.companyType?1:0)+t.verticals.length+t.productCategories.length+t.employeeRanges.length+t.products.length+t.openRolesRanges.length+t.yearsActiveRanges.length+(t.hiringNow?1:0)+(t.claimedOnly?1:0)+(t.hasLicenses?1:0)+(t.hasAwards?1:0),y=({id:m,title:x,icon:f,children:v})=>e.jsxs(N$,{open:i[m],onOpenChange:()=>l(m),children:[e.jsxs(L$,{className:"flex items-center justify-between w-full py-3 text-left group",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(f,{className:"w-4 h-4 text-muted-foreground"}),e.jsx("span",{className:"font-medium text-sm",children:x})]}),i[m]?e.jsx(ec,{className:"w-4 h-4 text-muted-foreground"}):e.jsx(wn,{className:"w-4 h-4 text-muted-foreground"})]}),e.jsx(I$,{className:"pb-4",children:v})]});return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"relative",children:[e.jsx(Gt,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(de,{placeholder:"Search companies, products, tags...",value:t.search,onChange:m=>h("search",m.target.value),className:"pl-10"})]}),e.jsxs("div",{className:"flex items-center justify-between gap-2 rounded-lg border border-border px-3 py-2",children:[e.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"View scope"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(T,{type:"button",size:"sm",variant:t.scope==="company"?"default":"outline",onClick:()=>h("scope","company"),children:"Companies"}),e.jsx(T,{type:"button",size:"sm",variant:t.scope==="group"?"default":"outline",onClick:()=>h("scope","group"),children:"Groups"})]})]}),p>0&&e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"text-sm text-muted-foreground",children:[p," filter",p!==1?"s":""," active"]}),e.jsxs(T,{variant:"ghost",size:"sm",onClick:r,className:"text-accent h-auto py-1",children:[e.jsx(Ct,{className:"w-3 h-3 mr-1"}),"Clear all"]})]}),e.jsxs("div",{className:"text-sm font-medium text-foreground py-2 px-3 bg-secondary/50 rounded-lg",children:[s," ",s===1?t.scope==="group"?"group":"company":t.scope==="group"?"groups":"companies"," found"]}),e.jsxs("div",{className:"divide-y divide-border",children:[e.jsx(y,{id:"companyType",title:"Company Type",icon:rt,children:e.jsxs(tn,{value:t.companyType||"all",onValueChange:m=>h("companyType",m==="all"?"":m),children:[e.jsx(za,{className:"w-full",children:e.jsx(an,{placeholder:"All company types"})}),e.jsxs(Ea,{children:[e.jsx(Mt,{value:"all",children:"All company types"}),d.companyTypes.map(m=>e.jsx(Mt,{value:m,children:m},m))]})]})}),e.jsx(y,{id:"verticals",title:"Verticals",icon:Vc,children:e.jsx("div",{className:"flex flex-wrap gap-2",children:d.verticals.map(m=>e.jsx(he,{variant:t.verticals.includes(m)?"default":"outline",className:"cursor-pointer transition-colors",onClick:()=>u("verticals",m),children:m},m))})}),e.jsx(y,{id:"products",title:"Products & Services",icon:oa,children:e.jsx("div",{className:"space-y-2 max-h-48 overflow-y-auto",children:d.productCategories.map(m=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:`cat-${m}`,checked:t.productCategories.includes(m),onCheckedChange:()=>u("productCategories",m)}),e.jsx(O,{htmlFor:`cat-${m}`,className:"text-sm font-normal cursor-pointer flex-1",children:m})]},m))})}),e.jsx(y,{id:"normalizedProducts",title:"Normalized Products",icon:Ca,children:e.jsx("div",{className:"space-y-3",children:IR.map(m=>e.jsxs("div",{children:[e.jsx("p",{className:"text-xs font-semibold uppercase text-muted-foreground mb-2",children:m.category}),e.jsx("div",{className:"space-y-2",children:m.items.map(x=>x.label).filter(x=>(d.products??[]).includes(x)).map(x=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:`product-${x}`,checked:t.products.includes(x),onCheckedChange:()=>u("products",x)}),e.jsx(O,{htmlFor:`product-${x}`,className:"text-sm font-normal cursor-pointer flex-1",children:x})]},x))})]},m.category))})}),e.jsx(y,{id:"employees",title:"Company Size",icon:mt,children:e.jsx("div",{className:"space-y-2",children:d.employeeRanges.map(m=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:`emp-${m}`,checked:t.employeeRanges.includes(m),onCheckedChange:()=>u("employeeRanges",m)}),e.jsxs(O,{htmlFor:`emp-${m}`,className:"text-sm font-normal cursor-pointer flex-1",children:[m," employees"]})]},m))})}),e.jsx(y,{id:"hiring",title:"Hiring",icon:Ze,children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:"hiring-now",checked:t.hiringNow,onCheckedChange:m=>h("hiringNow",m===!0)}),e.jsxs(O,{htmlFor:"hiring-now",className:"text-sm font-normal cursor-pointer flex items-center gap-2",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-gaming-success"}),"Hiring now"]})]}),e.jsxs("div",{children:[e.jsx(O,{className:"text-xs text-muted-foreground mb-2 inline-flex items-center",children:"Open roles count"}),e.jsx("div",{className:"space-y-2",children:d.openRolesRanges.map(m=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:`open-roles-${m}`,checked:t.openRolesRanges.includes(m),onCheckedChange:()=>u("openRolesRanges",m)}),e.jsxs(O,{htmlFor:`open-roles-${m}`,className:"text-sm font-normal cursor-pointer flex-1",children:[m," roles"]})]},m))})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:"claimed-only",checked:t.claimedOnly,onCheckedChange:m=>h("claimedOnly",m===!0)}),e.jsxs(O,{htmlFor:"claimed-only",className:"text-sm font-normal cursor-pointer flex items-center gap-2",children:[e.jsx(tt,{className:"w-3.5 h-3.5 text-accent"}),"Claimed profiles only"]})]})]})}),e.jsx(y,{id:"credibility",title:"Credibility",icon:tt,children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:"has-licenses",checked:t.hasLicenses,onCheckedChange:m=>h("hasLicenses",m===!0)}),e.jsx(O,{htmlFor:"has-licenses",className:"text-sm font-normal cursor-pointer",children:"Licensed operators/providers"})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:"has-awards",checked:t.hasAwards,onCheckedChange:m=>h("hasAwards",m===!0)}),e.jsx(O,{htmlFor:"has-awards",className:"text-sm font-normal cursor-pointer",children:"Award winners"})]}),e.jsxs("div",{children:[e.jsx(O,{className:"text-xs text-muted-foreground mb-2 inline-flex items-center",children:"Years active"}),e.jsx("div",{className:"space-y-2",children:d.yearsActiveRanges.map(m=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:`years-${m}`,checked:t.yearsActiveRanges.includes(m),onCheckedChange:()=>u("yearsActiveRanges",m)}),e.jsxs(O,{htmlFor:`years-${m}`,className:"text-sm font-normal cursor-pointer flex-1",children:[m," years"]})]},m))})]})]})})]}),e.jsxs("div",{className:"p-4 bg-gradient-to-br from-accent/10 to-gaming-gold/10 rounded-xl border border-accent/20",children:[e.jsx("h4",{className:"font-semibold text-sm mb-1",children:"Need vendor recommendations?"}),e.jsx("p",{className:"text-xs text-muted-foreground mb-3",children:"Tell us what you need and we'll create a shortlist for you."}),e.jsx(T,{variant:"accent",size:"sm",className:"w-full",children:"Request Intro"})]})]})},E$=({count:t=4})=>e.jsx("div",{className:"space-y-4 animate-fade-in",children:[...Array(t)].map((a,n)=>e.jsx("div",{className:"bg-white rounded-lg shadow-sm p-5 border border-border/50 animate-pulse",children:e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"w-16 h-16 rounded-xl bg-gray-200 flex-shrink-0"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-start justify-between gap-2 mb-2",children:[e.jsxs("div",{className:"space-y-2 flex-1",children:[e.jsx("div",{className:"h-5 bg-gray-200 rounded w-1/3"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"h-3 bg-gray-200 rounded w-28"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-20"})]})]}),e.jsx("div",{className:"h-8 bg-gray-200 rounded w-20"})]}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[e.jsx("div",{className:"h-5 bg-gray-200 rounded w-20"}),e.jsx("div",{className:"h-5 bg-gray-200 rounded w-24"}),e.jsx("div",{className:"h-5 bg-gray-200 rounded w-16"})]}),e.jsxs("div",{className:"space-y-2 mb-3",children:[e.jsx("div",{className:"h-3 bg-gray-200 rounded w-full"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-3/4"})]}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[e.jsx("div",{className:"h-5 bg-gray-200 rounded w-16"}),e.jsx("div",{className:"h-5 bg-gray-200 rounded w-14"}),e.jsx("div",{className:"h-5 bg-gray-200 rounded w-20"})]}),e.jsxs("div",{className:"flex items-center justify-between pt-3 border-t border-border/50",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"h-3 bg-gray-200 rounded w-24"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-20"})]}),e.jsx("div",{className:"h-6 bg-gray-200 rounded w-24"})]})]})]})},n))}),F$=t=>{const a=AR.find(n=>n.label===t);return(a==null?void 0:a.label)??t},O$=({entities:t,onClearSelection:a,maxSelections:n})=>e.jsxs(Q,{className:"border-border/60",children:[e.jsxs(le,{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold",children:"Comparison"}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Comparing ",t.length," of ",n," selected profiles"]})]}),e.jsx(T,{variant:"ghost",size:"sm",onClick:a,children:"Clear selection"})]}),e.jsx(ee,{children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("div",{className:"min-w-[640px] grid gap-4",children:[e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Profile"}),t.map(r=>e.jsx("div",{className:"font-semibold text-sm",children:r.name},r.id))]}),e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Products"}),t.map(r=>{const s=r.normalizedProfile;return e.jsx("div",{className:"flex flex-wrap gap-1",children:s.products.length===0?e.jsx("span",{className:"text-xs text-muted-foreground",children:"No normalized products"}):s.products.map(i=>e.jsx(he,{variant:"secondary",className:"text-xs",children:F$(i)},i))},r.id)})]}),e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Capabilities"}),t.map(r=>{const s=r.normalizedProfile;return e.jsx("div",{className:"flex flex-wrap gap-1",children:s.capabilities.length===0?e.jsx("span",{className:"text-xs text-muted-foreground",children:"No data"}):s.capabilities.map(i=>e.jsx(he,{variant:"outline",className:"text-xs",children:i},i))},r.id)})]}),e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Credibility"}),t.map(r=>{const s=r.normalizedProfile;return e.jsxs("div",{className:"text-sm text-muted-foreground space-y-1",children:[e.jsxs("div",{children:["Licenses: ",e.jsx("span",{className:"text-foreground",children:s.credibility.licenses})]}),e.jsxs("div",{children:["Awards: ",e.jsx("span",{className:"text-foreground",children:s.credibility.awards})]}),e.jsxs("div",{children:["Years active:"," ",e.jsx("span",{className:"text-foreground",children:s.credibility.yearsActive??"N/A"})]})]},r.id)})]}),e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Commercial Signals"}),t.map(r=>{const s=r.normalizedProfile;return e.jsxs("div",{className:"text-sm text-muted-foreground space-y-1",children:[e.jsxs("div",{children:["Profile views (30d):"," ",e.jsx("span",{className:"text-foreground",children:s.commercialSignals.profileViews30d})]}),e.jsxs("div",{children:["Followers:"," ",e.jsx("span",{className:"text-foreground",children:s.commercialSignals.followsCount})]}),e.jsxs("div",{children:["Hiring intensity:"," ",e.jsx("span",{className:"text-foreground",children:s.commercialSignals.hiringIntensity})]}),e.jsxs("div",{children:["Search impressions:"," ",e.jsx("span",{className:"text-foreground",children:s.commercialSignals.searchImpressions})]})]},r.id)})]})]})})})]}),H$=({viewMode:t,onToggleViewMode:a,selectedItemsPerPage:n,onItemsPerPageChange:r,totalCount:s,startIndex:i,endIndex:o,title:l,items:d})=>e.jsx("div",{className:"lg:block hidden bg-white rounded-lg shadow-sm border border-gray-200 p-4 mb-6",children:e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(rt,{className:"w-5 h-5 text-muted-foreground"}),e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:l})]}),e.jsxs("p",{className:"text-sm text-gray-600",children:["Showing ",e.jsx("span",{className:"font-semibold text-gray-900",children:i}),"–",e.jsx("span",{className:"font-semibold text-gray-900",children:o})," of"," ",e.jsx("span",{className:"font-semibold text-gray-900",children:s})," ",d]})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3",children:[e.jsx(QA,{viewMode:t,onToggle:a}),e.jsx(eP,{value:n,onChange:r})]})]})}),V$=()=>e.jsx("section",{className:"bg-gradient-to-br from-primary via-primary to-primary-variant py-12",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-3xl",children:[e.jsxs(Dc,{className:"bg-accent/20 text-accent border-accent/30 mb-4",children:[e.jsx(Ca,{className:"w-3 h-3 mr-1"}),"iGaming Intelligence"]}),e.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-primary-foreground mb-3",children:"iGaming Company Directory"}),e.jsx("p",{className:"text-primary-foreground/80 text-lg",children:"Discover operators, suppliers, affiliates, and service providers. Filter by type, vertical, jurisdiction, and hiring signals."})]})})}),X9=4,B$=t=>(t.companyType?1:0)+t.verticals.length+t.productCategories.length+t.employeeRanges.length+t.products.length+t.openRolesRanges.length+t.yearsActiveRanges.length+(t.hiringNow?1:0)+(t.claimedOnly?1:0)+(t.hasLicenses?1:0)+(t.hasAwards?1:0),_R=({companies:t,filterOptions:a,loading:n,page:r,pageSize:s,totalCount:i,totalPages:o,onPageChange:l,onPageSizeChange:d,filters:h,onFiltersChange:u,onClearFilters:p,viewMode:y,onViewModeChange:m,followDisabled:x=!1,followLoading:f=!1,onToggleFollow:v,onFollowAction:k,saveDisabled:w=!1,saveLoading:b=!1,onToggleSave:C,onSaveAction:j})=>{const[I,N]=M.useState(!1),[S,L]=M.useState([]),[q,_]=M.useState(!0),{displayCompanies:A,comparisonEntities:D}=M.useMemo(()=>{const X=t.map(J=>{var ye,ve,Z;const re=h.scope==="group",te=((ve=(ye=J.group)==null?void 0:ye.companies)==null?void 0:ve.length)??1;return{company:J,displayName:re?((Z=J.group)==null?void 0:Z.name)??J.groupName??J.name:J.name,openRolesCount:Array.isArray(J.jobs.openRoles)?J.jobs.openRoles.length:J.jobs.openRoles,groupMembersCount:te,isGroup:re,comparisonProfile:z$(J),comparisonId:J.id}});return{displayCompanies:X,comparisonEntities:X.map(J=>({id:J.comparisonId,name:J.displayName,normalizedProfile:J.comparisonProfile}))}},[t,h.scope]),H=M.useMemo(()=>B$(h),[h]),G=M.useMemo(()=>D.filter(X=>S.includes(X.id)),[D,S]);M.useEffect(()=>{L([])},[h.scope]),M.useEffect(()=>{L(X=>X.filter(J=>D.some(re=>re.id===J)))},[D]);const V=X=>{L(J=>J.includes(X)?J.filter(re=>re!==X):J.length>=X9?J:[...J,X])},U=()=>{L([])},F=i===0?0:(r-1)*s+1,se=Math.min(r*s,i),K=y==="grid"?"grid gap-6 sm:grid-cols-2 xl:grid-cols-3":"space-y-4";return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(V$,{}),e.jsx("section",{className:"py-8",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"flex gap-8",children:[e.jsx("aside",{className:"hidden lg:block w-80 flex-shrink-0",children:e.jsxs("div",{className:"sticky top-24 bg-card rounded-xl border border-border p-5",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[e.jsx(Cn,{className:"w-5 h-5 text-accent"}),e.jsx("h2",{className:"font-semibold",children:"Filters"})]}),e.jsx(bL,{filters:h,options:a,onFiltersChange:u,onClearFilters:p,resultCount:i})]})}),e.jsxs("main",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"lg:hidden mb-4",children:e.jsxs(T,{variant:"outline",onClick:()=>N(!0),className:"w-full",children:[e.jsx(Cn,{className:"w-4 h-4 mr-2"}),"Filters",H>0&&e.jsx(he,{variant:"secondary",className:"ml-2",children:"Active"})]})}),e.jsx(H$,{viewMode:y,onToggleViewMode:m,selectedItemsPerPage:s,onItemsPerPageChange:d,totalCount:i,startIndex:F,endIndex:se,title:"All companies",items:"companies"}),e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsx("div",{className:"flex items-center gap-3"}),e.jsxs("div",{className:"flex items-center gap-2",children:[S.length>0&&e.jsxs(T,{variant:"outline",size:"sm",onClick:()=>_(X=>!X),children:[q?"Hide comparison":"Show comparison"," (",S.length,")"]}),e.jsx("span",{className:"text-sm text-muted-foreground hidden sm:inline",children:"Sort by:"}),e.jsxs(T,{variant:"ghost",size:"sm",className:"text-accent",children:[e.jsx(Pa,{className:"w-4 h-4 mr-1"}),"Most Active"]})]})]}),G.length>0&&q&&e.jsx("div",{className:"mb-6",children:e.jsx(O$,{entities:G,onClearSelection:U,maxSelections:X9})}),n?e.jsx(E$,{count:s}):e.jsx("div",{className:K,children:A.map(X=>e.jsx($H,{company:X.company,displayName:X.displayName,openRolesCount:X.openRolesCount,groupMembersCount:X.groupMembersCount,isGroup:X.isGroup,viewMode:y,compareId:X.comparisonId,compareSelected:S.includes(X.comparisonId),compareDisabled:!S.includes(X.comparisonId)&&S.length>=X9,onToggleCompare:V,followDisabled:x,followLoading:f,onToggleFollow:v,onFollowAction:k,saveDisabled:w,saveLoading:b,onToggleSave:C,onSaveAction:j},X.company.id))}),!n&&o>1&&e.jsx(Kj,{currentPage:r,totalPages:o,onPageChange:l}),!n&&i===0&&e.jsxs("div",{className:"text-center py-16",children:[e.jsx(rt,{className:"w-12 h-12 text-muted-foreground mx-auto mb-4"}),e.jsxs("h3",{className:"text-lg font-medium mb-2",children:["No ",h.scope==="group"?"groups":"companies"," found"]}),e.jsx("p",{className:"text-muted-foreground mb-4",children:"Try adjusting your filters"}),e.jsx(T,{variant:"outline",onClick:p,children:"Clear all filters"})]})]})]})})}),I&&e.jsxs("div",{className:"fixed inset-0 z-50 lg:hidden",children:[e.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:()=>N(!1)}),e.jsxs("div",{className:"absolute right-0 top-0 h-full w-full max-w-sm bg-background p-6 overflow-y-auto",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsx("h2",{className:"font-semibold text-lg",children:"Filters"}),e.jsx(T,{variant:"ghost",size:"icon",onClick:()=>N(!1),children:e.jsx(Ct,{className:"w-5 h-5"})})]}),e.jsx(bL,{filters:h,options:a,onFiltersChange:u,onClearFilters:p,resultCount:i})]})]})]})},Et=g.forwardRef(({className:t,...a},n)=>e.jsx("textarea",{className:fe("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:n,...a}));Et.displayName="Textarea";const $$=({company:t,open:a,onOpenChange:n,onClaimSubmit:r,claimPrefill:s})=>{const[i,o]=M.useState(1),l=y=>({fullName:(y==null?void 0:y.fullName)??"",workEmail:(y==null?void 0:y.workEmail)??"",jobTitle:(y==null?void 0:y.jobTitle)??"",relationship:"",message:""}),[d,h]=M.useState(()=>l(s));M.useEffect(()=>{a&&h(l(s))},[a,s]);const u=()=>{r==null||r({companyId:t.id,companySlug:t.slug,companyName:t.name,fullName:d.fullName,workEmail:d.workEmail,jobTitle:d.jobTitle,relationship:d.relationship,message:d.message}),o(3)},p=()=>{o(1),h(l(s)),n(!1)};return e.jsx(St,{open:a,onOpenChange:p,children:e.jsxs(xt,{className:"sm:max-w-[500px]",children:[i===1&&e.jsxs(e.Fragment,{children:[e.jsxs(da,{children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-accent/20 to-gaming-gold/20 flex items-center justify-center mb-2",children:e.jsx(rt,{className:"w-6 h-6 text-accent"})}),e.jsxs(st,{children:["Claim ",t.name,"'s Profile"]}),e.jsx(Tn,{children:"Verify your affiliation to manage this company's page, add products, respond to reviews, and access analytics."})]}),e.jsx("div",{className:"space-y-4 py-4",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx(tt,{className:"w-5 h-5 text-gaming-success mt-0.5"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:"Update company information"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Add products, edit descriptions, and manage your profile"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx(tt,{className:"w-5 h-5 text-gaming-success mt-0.5"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:"Access analytics"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"See who's viewing your profile and track engagement"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx(tt,{className:"w-5 h-5 text-gaming-success mt-0.5"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:"Publish jobs & events"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Post open roles and announce event attendance"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx(tt,{className:"w-5 h-5 text-gaming-success mt-0.5"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:"Enable meeting bookings"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Let potential partners request meetings at events"})]})]})]})}),e.jsxs(Zt,{children:[e.jsx(T,{variant:"outline",onClick:p,children:"Cancel"}),e.jsxs(T,{variant:"accent",onClick:()=>o(2),children:["Continue",e.jsx(yo,{className:"w-4 h-4 ml-2"})]})]})]}),i===2&&e.jsxs(e.Fragment,{children:[e.jsxs(da,{children:[e.jsx(st,{children:"Verify Your Affiliation"}),e.jsxs(Tn,{children:["We'll verify your work email domain to confirm your connection to ",t.name,"."]})]}),e.jsx("div",{className:"space-y-4 py-4",children:e.jsxs("div",{className:"grid gap-4",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(O,{htmlFor:"fullName",children:"Full Name"}),e.jsx(de,{id:"fullName",placeholder:"John Smith",value:d.fullName,onChange:y=>h({...d,fullName:y.target.value})})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(O,{htmlFor:"workEmail",children:"Work Email"}),e.jsxs("div",{className:"relative",children:[e.jsx(ca,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(de,{id:"workEmail",type:"email",placeholder:`you@${t.overview.website.replace(/^https?:\/\/(www\.)?/,"").split("/")[0]}`,className:"pl-10",value:d.workEmail,onChange:y=>h({...d,workEmail:y.target.value})})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"We'll send a verification link to this address"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(O,{htmlFor:"jobTitle",children:"Job Title"}),e.jsxs("div",{className:"relative",children:[e.jsx(Ze,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(de,{id:"jobTitle",placeholder:"e.g., Marketing Manager",className:"pl-10",value:d.jobTitle,onChange:y=>h({...d,jobTitle:y.target.value})})]})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(O,{htmlFor:"relationship",children:"Your Role"}),e.jsxs(tn,{value:d.relationship,onValueChange:y=>h({...d,relationship:y}),children:[e.jsx(za,{children:e.jsx(an,{placeholder:"Select your relationship"})}),e.jsxs(Ea,{children:[e.jsx(Mt,{value:"employee",children:"Current Employee"}),e.jsx(Mt,{value:"founder",children:"Founder / Executive"}),e.jsx(Mt,{value:"hr",children:"HR / Recruiting"}),e.jsx(Mt,{value:"marketing",children:"Marketing / PR"}),e.jsx(Mt,{value:"agency",children:"Authorized Agency"})]})]})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(O,{htmlFor:"message",children:"Additional Information (Optional)"}),e.jsx(Et,{id:"message",placeholder:"Any additional context to help verify your claim...",value:d.message,onChange:y=>h({...d,message:y.target.value}),rows:3})]})]})}),e.jsxs(Zt,{children:[e.jsx(T,{variant:"outline",onClick:()=>o(1),children:"Back"}),e.jsx(T,{variant:"accent",onClick:u,disabled:!d.fullName||!d.workEmail||!d.relationship,children:"Submit Claim Request"})]})]}),i===3&&e.jsxs(e.Fragment,{children:[e.jsxs(da,{className:"text-center",children:[e.jsx("div",{className:"w-16 h-16 rounded-full bg-gaming-success/10 flex items-center justify-center mx-auto mb-4",children:e.jsx(tt,{className:"w-8 h-8 text-gaming-success"})}),e.jsx(st,{children:"Claim Request Submitted!"}),e.jsxs(Tn,{className:"text-center",children:["We've sent a verification email to ",e.jsx("strong",{children:d.workEmail}),". Click the link in the email to verify your affiliation."]})]}),e.jsx("div",{className:"py-4",children:e.jsxs("div",{className:"p-4 bg-secondary/50 rounded-lg text-sm text-muted-foreground",children:[e.jsx("p",{className:"font-medium text-foreground mb-2",children:"What happens next?"}),e.jsxs("ul",{className:"space-y-2",children:[e.jsx("li",{children:"• Check your email for the verification link"}),e.jsx("li",{children:"• Our team will review your claim within 24-48 hours"}),e.jsx("li",{children:"• You'll receive an email once your claim is approved"})]})]})}),e.jsx(Zt,{children:e.jsx(T,{variant:"accent",onClick:p,className:"w-full",children:"Done"})})]})]})})},U$=({headquarters:t,foundedYear:a,employeeRange:n,className:r})=>e.jsxs("div",{className:fe("flex flex-wrap items-center gap-4 text-sm text-muted-foreground",r),children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Qe,{className:"h-4 w-4"}),t.city,", ",t.country]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(xo,{className:"h-4 w-4"}),"Founded ",a]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(mt,{className:"h-4 w-4"}),n," employees"]})]});function RR({companyName:t,isAdminView:a=!1,companyType:n,overview:r,classification:s,companyId:i,companySlug:o,groupLabel:l,groupSlug:d,claimedStatus:h,isFollowing:u,signalsAndInsights:p,openRolesCount:y,trustScore:m,isSaved:x,onBack:f,saveDisabled:v,saveLoading:k,canClaim:w,onToggleFollow:b,onFollowAction:C,onToggleSave:j,onSaveAction:I,role:N="viewer",enabledPermissions:S=[],followLoading:L=!1,followDisabled:q=!1,onClaimClick:_}){const A=x,D=q||L,H=u?"Unfollow Company":"Follow Company",G=v||k,V=A?"Remove from Saved":"Save Company",U=()=>h==="claimed"?e.jsxs(he,{className:"bg-accent/10 text-accent border-accent/20",children:[e.jsx(tt,{className:"w-3 h-3 mr-1"}),"Claimed"]}):null,F=()=>{const K=!u;b==null||b(i,K),C==null||C({companyId:i,companySlug:o,action:K?"follow":"unfollow"})},se=()=>{const K=!A;j==null||j(i,K),I==null||I({companyId:i,companySlug:o,companyName:t,action:K?"save":"unsave"})};return e.jsx("section",{className:"bg-gradient-to-br from-primary via-primary to-primary-variant py-8",children:e.jsxs("div",{className:"container mx-auto px-4",children:[f&&e.jsxs("button",{type:"button",onClick:f,className:"inline-flex items-center text-primary-foreground/70 hover:text-primary-foreground mb-6 text-sm",children:[e.jsx(Ja,{className:"w-4 h-4 mr-1"}),"Back to Directory"]}),e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsx("div",{className:"w-20 h-20 rounded-2xl bg-white/10 backdrop-blur flex items-center justify-center flex-shrink-0",children:e.jsx(rt,{className:"w-10 h-10 text-primary-foreground"})}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-2",children:[e.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:t}),U()]}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[e.jsx(he,{variant:"secondary",children:n}),l&&e.jsx("a",{href:d?`/groups/${d}`:"/groups",children:e.jsxs(he,{variant:"outline",className:"border-primary-foreground/30 text-primary-foreground",children:["Part of ",l]})}),s.verticals.map(K=>e.jsx(he,{variant:"outline",className:"border-primary-foreground/30 text-primary-foreground",children:K},K))]}),e.jsx(U$,{headquarters:r.headquarters,foundedYear:r.foundedYear,employeeRange:r.employeeRange,className:"mb-4 text-primary-foreground/80"}),a?e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs(he,{variant:"secondary",className:"",children:["Role: ",N]}),S.length>0?S.map(([K,X])=>e.jsx(he,{variant:"outline",children:X},K)):e.jsx("span",{className:"text-xs text-muted-foreground",children:"No extra permissions"})]}):e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsxs(T,{variant:"accent",onClick:F,disabled:D,"aria-label":`${H} ${t}`,"aria-pressed":u,"aria-busy":L,title:H,children:[L?e.jsx(at,{className:"w-4 h-4 mr-2 animate-spin"}):u?e.jsx(tt,{className:"w-4 h-4 mr-2"}):e.jsx(Nn,{className:"w-4 h-4 mr-2"}),L?"Loading":u?"Following":"Follow"]}),e.jsxs(T,{variant:A?"secondary":"outline",className:"border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground/10",onClick:se,disabled:G,"aria-label":`${V} ${t}`,"aria-pressed":A,"aria-busy":k,title:V,children:[k?e.jsx(at,{className:"w-4 h-4 mr-2 animate-spin"}):e.jsx(xa,{className:`w-4 h-4 mr-2 ${A?"fill-current":"fill-transparent"}`}),k?"Loading":A?"Saved":"Save"]}),h==="unclaimed"&&e.jsx(T,{variant:"ghost",className:"text-primary-foreground",onClick:_,children:"Claim Profile"})]})]}),e.jsxs("div",{className:"flex gap-4 md:gap-6",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-primary-foreground",children:y}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Open Jobs"})]}),e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"text-2xl font-bold text-primary-foreground",children:[(p.profileViews30d/1e3).toFixed(1),"k"]}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Views/30d"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-primary-foreground",children:m}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Trust Signals"})]})]})]})]})})}const TR=({items:t,className:a})=>e.jsx(rn,{className:["flex-wrap h-auto gap-1 bg-secondary/50 p-1",a].join(" "),children:t.filter(n=>!n.hidden).map(({value:n,label:r,icon:s,disabled:i})=>e.jsxs(Pe,{value:n,disabled:i,children:[s&&e.jsx(s,{className:"w-4 h-4 mr-1.5"}),r]},n))}),G$=({overview:t,classification:a,officeLocations:n,formatOfficeLocation:r})=>e.jsxs(je,{value:"overview",className:"space-y-6 mt-0",children:[e.jsxs(Q,{children:[e.jsx(le,{children:e.jsx(ue,{children:"About"})}),e.jsxs(ee,{children:[e.jsx("p",{className:"text-muted-foreground mb-4",children:t.longDescription||t.shortDescription}),e.jsx("div",{className:"flex flex-wrap gap-2",children:a.tags.map(s=>e.jsxs(he,{variant:"secondary",children:["#",s]},s))})]})]}),e.jsxs(Q,{children:[e.jsx(le,{children:e.jsx(ue,{children:"Office Locations"})}),e.jsx(ee,{children:e.jsx("div",{className:"flex flex-wrap gap-3",children:n.map((s,i)=>e.jsxs(he,{variant:"outline",children:[e.jsx(Qe,{className:"w-3 h-3 mr-1"}),r(s)]},i))})})]})]}),W$=({products:t})=>e.jsx(je,{value:"products",className:"space-y-4 mt-0",children:t.map((a,n)=>e.jsxs(Q,{children:[e.jsx(le,{children:e.jsx("div",{className:"flex items-start justify-between",children:e.jsxs("div",{children:[e.jsx(ue,{className:"text-lg",children:a.name}),e.jsx(he,{variant:"secondary",className:"mt-1",children:a.category})]})})}),e.jsxs(ee,{children:[e.jsx("p",{className:"text-muted-foreground mb-3",children:a.description}),e.jsx("div",{className:"flex flex-wrap gap-2",children:a.keyDifferentiators.map((r,s)=>e.jsxs(he,{variant:"outline",children:[e.jsx(al,{className:"w-3 h-3 mr-1"}),r]},s))})]})]},n))}),Z$=new Set(["malta","italy","spain","netherlands","united kingdom","germany","sweden","romania","croatia","serbia","brazil"]),J$=({companyTrustData:t,credibilityEvidence:a})=>{const n=h=>typeof h=="string"?h:`${h.authority} (${h.jurisdiction})`,r=h=>typeof h=="string"?h:`${h.name} (${h.year})`;function s(h=[]){const u=h.map(p=>p.toLowerCase());return i.flatMap(p=>u.find(m=>p.aliases.some(x=>m.includes(x)))?[{name:p.name,year:new Date().getFullYear()}]:[])}const i=[{key:"migea",name:"Malta iGaming Excellence Awards",aliases:["migea","malta igaming excellence awards","malta gaming excellence awards"]},{key:"egr",name:"EGR Awards",aliases:["egr awards","egr b2b awards","egr operator awards"]},{key:"sigma",name:"SiGMA Awards",aliases:["sigma awards","sigma igaming awards"]},{key:"ice",name:"ICE Gaming Awards",aliases:["ice gaming awards","ice awards"]}],o=s((a==null?void 0:a.awards_mentioned)??[]),l=d((a==null?void 0:a.countries_mentioned)??[],Z$);function d(h=[],u){return Array.from(new Set(h.map(p=>p.toLowerCase()).filter(p=>u.has(p)).map(p=>p[0].toUpperCase()+p.slice(1))))}return e.jsxs(je,{value:"trust",className:"space-y-4 mt-0",children:[t.licenses.length>0&&e.jsxs(Q,{children:[e.jsx(le,{children:e.jsxs(ue,{className:"flex items-center gap-2",children:[e.jsx(An,{className:"w-5 h-5 text-gaming-success"}),"Licenses"]})}),e.jsx(ee,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:t.licenses.map((h,u)=>e.jsx(he,{className:"bg-gaming-success/10 text-gaming-success",children:n(h)},u))})})]}),t.awards.length>0&&e.jsxs(Q,{children:[e.jsx(le,{children:e.jsxs(ue,{className:"flex items-center gap-2",children:[e.jsx(na,{className:"w-5 h-5 text-gaming-gold"}),"Awards"]})}),e.jsx(ee,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:t.awards.map((h,u)=>e.jsx(he,{className:"bg-gaming-gold/10 text-gaming-gold",children:r(h)},u))})})]}),o.length>0&&e.jsxs(Q,{children:[e.jsx(le,{children:e.jsxs(ue,{className:"flex items-center gap-2",children:[e.jsx(na,{className:"w-5 h-5 text-gaming-gold"}),"Industry Recognition"]})}),e.jsx(ee,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:o.map((h,u)=>e.jsxs(he,{variant:"outline",children:[h.name,e.jsx("span",{className:"ml-1 text-xs text-muted-foreground",children:"(inferred)"})]},u))})})]}),l.length>0&&e.jsxs(Q,{children:[e.jsx(le,{children:e.jsxs(ue,{className:"flex items-center gap-2",children:[e.jsx(oa,{className:"w-5 h-5 text-accent"}),"Markets Mentioned"]})}),e.jsx(ee,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:l.map((h,u)=>e.jsx(he,{variant:"secondary",children:h},u))})})]})]})},X$=({members:t})=>e.jsx(je,{value:"people",className:"mt-0",children:e.jsx(Q,{children:e.jsx(ee,{className:"py-6 space-y-4",children:t.length===0?e.jsx("p",{className:"text-center text-muted-foreground",children:"Employee profiles are opt-in. No verified members yet."}):t.map((a,n)=>e.jsxs("div",{className:"flex items-center justify-between gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:a.name}),e.jsx("p",{className:"text-sm text-muted-foreground",children:a.title})]}),a.profileUrl&&e.jsx("a",{href:a.profileUrl,target:"_blank",rel:"noreferrer",children:e.jsx(T,{size:"sm",variant:"outline",children:"View Profile"})})]},n))})})});function Cj({job:t,view:a,isSaved:n=!1,onApply:r,onSave:s,onRemove:i,onViewApplication:o}){var h;const l=t.city?`${t.city}, ${t.country}`:t.location,d=t.salaryMin&&t.salaryMax?`${t.salaryMin}–${t.salaryMax} ${t.salaryCurrency||""}`:void 0;return e.jsxs(Q,{children:[e.jsxs(le,{children:[e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx(ue,{className:"text-lg",children:t.title}),e.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground mt-2",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Ko,{className:"h-4 w-4"}),t.company]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Qe,{className:"h-4 w-4"}),l]})]})]}),a==="applications"&&t.status&&e.jsx(he,{variant:"secondary",children:t.status})]}),d&&e.jsx("p",{className:"text-sm font-semibold text-accent mt-1",children:d})]}),e.jsx(ee,{children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex flex-wrap gap-2",children:[t.department&&e.jsx(he,{variant:"outline",children:t.department}),(h=t.skills)==null?void 0:h.slice(0,6).map(u=>e.jsx(he,{variant:"secondary",children:u},u))]}),a==="applications"&&t.appliedDate&&e.jsxs("p",{className:"text-xs text-muted-foreground flex items-center gap-1",children:[e.jsx(ga,{className:"h-3 w-3"}),"Applied ",t.appliedDate]}),e.jsxs("div",{className:"flex gap-2",children:[a==="recommended"&&e.jsxs(e.Fragment,{children:[e.jsx(T,{size:"sm",onClick:()=>r==null?void 0:r(t.id),children:"Apply Now"}),e.jsx(T,{size:"sm",variant:n?"secondary":"outline",disabled:n,onClick:()=>s==null?void 0:s(t),children:n?"Saved":"Save Job"}),e.jsx(T,{size:"sm",variant:"destructive",onClick:()=>i==null?void 0:i(t.id),children:"Remove"})]}),a==="saved"&&e.jsx(T,{size:"sm",variant:"destructive",onClick:()=>i==null?void 0:i(t.id),children:"Remove"}),a==="applications"&&e.jsx(T,{size:"sm",variant:"outline",onClick:()=>o==null?void 0:o(t.id),children:"View Application"}),a==="company"&&e.jsx(T,{size:"sm",variant:"outline",onClick:()=>{window.location.href=t.link},children:"Apply"})]})]})})]})}const Y$=({company:t,jobListings:a,openRolesCount:n})=>e.jsx(je,{value:"jobs",className:"space-y-4 mt-0",children:e.jsxs(Q,{children:[e.jsx(le,{children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs(ue,{children:["Open Positions (",n,")"]}),e.jsx(he,{children:t.jobs.remotePolicy})]})}),e.jsx("div",{className:"grid gap-4 p-4",children:a.length===0?e.jsx(Q,{children:e.jsxs(ee,{className:"flex flex-col items-center justify-center py-10",children:[e.jsx(fa,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"No saved jobs yet"}),e.jsx(T,{variant:"link",className:"mt-2",children:"Browse Jobs"})]})}):a.map(r=>e.jsx(Cj,{job:r,view:"company"},r.id))})]})});function qC({article:t,view:a,isSaved:n=!1,onRead:r,onSave:s,onRemove:i}){var o;return e.jsxs(Q,{children:[e.jsxs(le,{children:[e.jsxs("div",{className:"flex gap-2 items-start mb-2",children:[(o=t.categories)==null?void 0:o.map(l=>e.jsx(he,{variant:"secondary",children:l})),e.jsx("span",{className:"text-xs text-muted-foreground",children:t.publishedDate})]}),e.jsx(ue,{className:"text-lg",children:t.title}),e.jsxs(Se,{className:"text-xs",children:[t.source?t.source:t.company," • ",t.readTime," min"]})]}),e.jsx(ee,{children:e.jsxs("div",{className:"space-y-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:t.excerpt}),e.jsx("div",{className:"flex flex-wrap gap-2",children:t.tags.map(l=>e.jsx(he,{variant:"outline",className:"text-xs",children:l},l))}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:flex-wrap",children:[e.jsx(T,{size:"sm",onClick:()=>r==null?void 0:r(t.id),children:"Read Article"}),a==="recommended"&&e.jsxs(e.Fragment,{children:[e.jsx(T,{size:"sm",variant:n?"secondary":"outline",disabled:n,onClick:()=>s==null?void 0:s(t),children:n?"Saved":"Save"}),e.jsx(T,{size:"sm",variant:"destructive",onClick:()=>i==null?void 0:i(t.id),children:"Remove"})]}),a==="saved"&&e.jsx(T,{size:"sm",variant:"destructive",onClick:()=>i==null?void 0:i(t.id),children:"Remove Saved"}),a==="company"&&e.jsx(T,{size:"sm",variant:"outline",onClick:()=>r==null?void 0:r(t.id),children:"Read"})]})]})})]})}const K$=({companyNews:t,newsArticles:a=[]})=>{var s;const n=i=>typeof i=="string"?i:`${i.title} • ${i.source}`,r=i=>typeof i=="object"&&i!==null&&"url"in i;return e.jsx(je,{value:"news",className:"mt-0",children:e.jsxs(Q,{children:[e.jsx(le,{children:e.jsxs(ue,{children:["News (",a.length,")"]})}),e.jsx(ee,{className:"py-6 space-y-4",children:a.length>0?e.jsx("div",{className:"grid gap-4",children:a.map(i=>e.jsx(qC,{article:i,view:"company",onRead:()=>window.open(i.link,"_blank")},i.id))}):(s=t==null?void 0:t.pressMentions)!=null&&s.length?t.pressMentions.map((i,o)=>e.jsxs("div",{className:"flex items-center justify-between gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx("span",{className:"text-sm",children:n(i)}),r(i)&&i.url&&e.jsx("a",{href:i.url,target:"_blank",rel:"noreferrer",children:e.jsx(T,{size:"sm",variant:"outline",children:"Read"})})]},o)):e.jsx("p",{className:"text-center text-muted-foreground",children:"No recent news mentions."})})]})})},Q$=({companyEvents:t,conferenceEvents:a=[]})=>{const n=s=>"name"in s?s.name:s.eventName,r=s=>"startDate"in s?`${s.startDate}${s.endDate?` - ${s.endDate}`:""}`:s.date;return e.jsx(je,{value:"events",className:"space-y-4 mt-0",children:a.length>0?e.jsxs(Q,{children:[e.jsx(le,{children:e.jsx(ue,{className:"flex items-center gap-2",children:"Upcoming Events"})}),e.jsx(ee,{children:e.jsx("div",{className:"grid gap-4 p-4",children:a.map(s=>e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 p-3 m-3 rounded-xl border bg-card text-card-foreground shadow",children:[e.jsxs("div",{children:[e.jsxs("p",{className:"font-semibold text-lg",children:[s.conference," - ",s.event_year]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Stand: ",s.stand]})]}),e.jsx("a",{href:s.link,target:"_blank",rel:"noreferrer",children:e.jsx(T,{size:"sm",variant:"outline",children:"View"})})]},s._id))})})]}):t.upcomingEvents.map((s,i)=>e.jsxs("div",{className:"flex items-center justify-between p-3 bg-secondary/50 rounded-lg",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold tracking-tight text-lg",children:n(s)}),e.jsxs("p",{className:"font-semibold tracking-tight text-lg",children:[s.location," • ",r(s)]})]}),t.bookMeetingEnabled&&e.jsx(T,{size:"sm",variant:"accent",children:"Book Meeting"})]},i))})},eU=()=>e.jsx(je,{value:"insights",className:"mt-0",children:e.jsx(Q,{children:e.jsxs(ee,{className:"py-12 text-center",children:[e.jsx(ko,{className:"w-10 h-10 text-muted-foreground mx-auto mb-3"}),e.jsx("h3",{className:"font-semibold mb-2",children:"Premium Insights"}),e.jsx("p",{className:"text-muted-foreground mb-4",children:"Unlock demand trends, competitor analysis, and intent signals."}),e.jsx(T,{variant:"accent",children:"Upgrade to Access"})]})})}),tU=({companyOverview:t,intelligenceProfile:a})=>{var n;return e.jsxs("aside",{className:"space-y-4",children:[e.jsxs(Q,{children:[e.jsx(le,{children:e.jsx(ue,{className:"text-base",children:"Contact"})}),e.jsxs(ee,{className:"space-y-3",children:[e.jsxs("a",{href:t.website,target:"_blank",className:"flex items-center gap-2 text-sm text-accent hover:underline",children:[e.jsx(oa,{className:"w-4 h-4"}),t.website.replace(/^https?:\/\//,"")]}),((n=t.socialLinks)==null?void 0:n.linkedin)&&e.jsxs("a",{href:t.socialLinks.linkedin,target:"_blank",className:"flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground",children:[e.jsx(Gc,{className:"w-4 h-4"}),"LinkedIn"]})]})]}),e.jsxs(Q,{children:[e.jsx(le,{children:e.jsx(ue,{className:"text-base",children:"Similar Companies"})}),e.jsx(ee,{className:"space-y-2",children:a.similarCompanies.map((r,s)=>e.jsx("div",{className:"flex items-center gap-2 p-2 bg-secondary/50 rounded-lg text-sm",children:r},s))})]})]})},aU=t=>{var a,n;if(t==null)return"";if(typeof t=="string"&&t.startsWith("http"))return t;if(typeof t=="string"&&t.startsWith("{"))try{const r=JSON.parse(t.replace(/'/g,'"'));return(r==null?void 0:r.url)??""}catch{return""}return typeof t=="object"?(t==null?void 0:t.url)??((n=(a=t==null?void 0:t.formats)==null?void 0:a.thumbnail)==null?void 0:n.url)??"":""},DR=t=>({profileViews30d:(t==null?void 0:t.profile_views_30d)??(t==null?void 0:t.profileViews30d)??0,followsCount:(t==null?void 0:t.follows_count)??(t==null?void 0:t.followsCount)??0,hiringIntensity:(t==null?void 0:t.hiring_intensity)??(t==null?void 0:t.hiringIntensity)??"Low",topSkillsHiring:(t==null?void 0:t.top_skills_hiring)??(t==null?void 0:t.topSkillsHiring)??[],topViewingCountries:(t==null?void 0:t.top_viewing_countries)??(t==null?void 0:t.topViewingCountries)??[],oftenComparedWith:(t==null?void 0:t.often_compared_with)??(t==null?void 0:t.oftenComparedWith)??[],similarCompanies:(t==null?void 0:t.similar_companies)??(t==null?void 0:t.similarCompanies)??[]}),nU=t=>{if(t)return{capabilitiesScore:t.capabilities_score??t.capabilitiesScore??0,credibilityScore:t.credibility_score??t.credibilityScore??0,complianceScore:t.compliance_score??t.complianceScore??0,hiringScore:t.hiring_score??t.hiringScore??0,overallScore:t.overall_score??t.overallScore??0,detectedBusinessModel:t.detected_business_model??t.detectedBusinessModel??"",detectedProducts:t.detected_products??t.detectedProducts??[],detectedMarkets:t.detected_markets??t.detectedMarkets??[]}},rU=t=>({id:String(t.id??t.company_id??""),name:t.name??"",slug:t.slug??"",companyType:t.company_type??t.companyType,overview:t.overview?{shortDescription:t.overview.short_description??t.overview.shortDescription,headquarters:t.overview.headquarters,employeeRange:t.overview.employee_range??t.overview.employeeRange}:void 0,isPrimary:t.is_primary??t.isPrimary}),sU=t=>({id:String((t==null?void 0:t.id)??(t==null?void 0:t.group_id)??""),name:(t==null?void 0:t.name)??(t==null?void 0:t.group_name)??"",slug:(t==null?void 0:t.slug)??"",website:(t==null?void 0:t.website)??"",description:(t==null?void 0:t.description)??"",primaryCompanyId:(t==null?void 0:t.primary_company_id)??(t==null?void 0:t.primaryCompanyId)??"",companies:Array.isArray(t==null?void 0:t.companies)?t.companies.map(rU):[],intelligenceProfile:DR((t==null?void 0:t.intelligence_profile)??(t==null?void 0:t.intelligenceProfile))}),iU=t=>{var a,n;return{shortDescription:(t==null?void 0:t.shortDescription)??(t==null?void 0:t.short_description)??"",longDescription:(t==null?void 0:t.longDescription)??(t==null?void 0:t.long_description),foundedYear:typeof(t==null?void 0:t.foundedYear)=="number"?t.foundedYear:0,headquarters:{city:((a=t==null?void 0:t.headquarters)==null?void 0:a.city)??"",country:((n=t==null?void 0:t.headquarters)==null?void 0:n.country)??""},officeLocations:t==null?void 0:t.officeLocations,employeeRange:(t==null?void 0:t.employeeRange)??(t==null?void 0:t.employee_range)??"",publicCompany:t==null?void 0:t.publicCompany,stockTicker:t==null?void 0:t.stockTicker,website:(t==null?void 0:t.website)??"",socialLinks:t==null?void 0:t.socialLinks}},oU=t=>({searchImpressions:(t==null?void 0:t.searchImpressions)??0,profileClicks:(t==null?void 0:t.profileClicks)??0,externalClicks:(t==null?void 0:t.externalClicks)??0}),cU=t=>{var a,n,r;return{...t,overview:iU(t.overview),logo:aU(t.logo),jobs:lU(t.jobs),group:sU(t.group),groupId:t.groupId??t.group_id??((a=t.group)==null?void 0:a.id),groupName:t.groupName??t.group_name??((n=t.group)==null?void 0:n.name),groupSlug:t.group_slug??t.groupSlug??((r=t.group)==null?void 0:r.slug),signalsAndInsights:DR(t.signalsAndInsights??t.signals_and_insights??t.signalsAndInsights)??t.signalsAndInsights,visibilityMetrics:oU(t.visibilityMetrics),intelligenceProfile:nU(t.intelligence_profile??t.intelligenceProfile),classification:dU(t.classification)}},lU=t=>({openRoles:Array.isArray(t==null?void 0:t.openRoles)||typeof(t==null?void 0:t.openRoles)=="number"?t.openRoles:[],departmentsHiring:Array.isArray(t==null?void 0:t.departmentsHiring)?t.departmentsHiring:[],locationsHiring:Array.isArray(t==null?void 0:t.locationsHiring)?t.locationsHiring:[],remotePolicy:(t==null?void 0:t.remotePolicy)??""}),dU=t=>({businessModel:(t==null?void 0:t.businessModel)??(t==null?void 0:t.business_model)??"",verticals:Array.isArray(t==null?void 0:t.verticals)?t.verticals:[],productCategories:Array.isArray(t==null?void 0:t.productCategories)?t.productCategories:[],tags:((t==null?void 0:t.tags)??[]).map(a=>typeof a=="string"?a:a.title??a.tag??"")}),hU=t=>({count:(t==null?void 0:t.count)??0,page:(t==null?void 0:t.page)??1,pageSize:(t==null?void 0:t.page_size)??(t==null?void 0:t.pageSize)??0,totalPages:(t==null?void 0:t.total_pages)??(t==null?void 0:t.totalPages)??1,results:Array.isArray(t==null?void 0:t.results)?t.results.map(cU):[],filterOptions:(t==null?void 0:t.filter_options)??(t==null?void 0:t.filterOptions)}),uU=t=>{if(typeof t=="string")return t;const a=t.city??t.cities??t.location,n=t.country;return`${a??"Remote"}, ${n??"Global"}`},pU=[{name:"Casino Games (Slots & RNG)",category:"Game Content",description:"RNG-based casino games including slots and table games.",keywords:["slot","rng","casino game","table game","jackpot","buy bonus"],negativeKeywords:["live casino games","live casino"],priority:10},{name:"Live Casino Games",category:"Live Casino",description:"Live dealer games streamed from professional studios.",keywords:["live casino games","live dealer games","roulette games","live roulette","sic-bo","presenter"],negativeKeywords:["real-time reporting"],priority:10},{name:"iGaming Platform / PAM",category:"Platform",description:"Core iGaming platform including player accounts, wallet, and cashier.",keywords:["pam","aggregation platform","cashier","player account"],negativeKeywords:[],priority:10},{name:"Game Aggregation",category:"Aggregation",description:"Single API access to multiple game providers.",keywords:["aggregation","aggregator","single api","content hub"],negativeKeywords:[],priority:10},{name:"Bonus & Promotions Platform",category:"CRM & Engagement",description:"Bonus management, promotions, and player engagement tools.",keywords:["bonus tools","promotional tools","free spins tools","tournament","leaderboard","rewards tools","bonus features","bonus platform"],negativeKeywords:[],priority:10},{name:"Back Office & Analytics",category:"Operations",description:"Reporting, dashboards, and performance analytics.",keywords:["back office","real-time reporting","analytics","easy-to-use tools","insights"],negativeKeywords:[],priority:10},{name:"Live Casino Infrastructure",category:"Technology",description:"Hardware, streaming, and infrastructure for live casino operations.",keywords:["streaming","video streaming","Live Casino studio","professional game hosts"],negativeKeywords:[],priority:10},{name:"Payments & Payouts",category:"Payments",description:"Payment processing, deposits, and withdrawals.",keywords:["Payment processing","psp","payout","withdrawal","deposit"],negativeKeywords:[],priority:10},{name:"Compliance & Risk",category:"Compliance",description:"KYC, AML, fraud prevention, and responsible gaming.",keywords:["kyc detection","aml detection","compliance tools","fraud detection","fraud prevention","responsible gaming tools"],negativeKeywords:[],priority:10}];function mU(t,a){var i;const n=a.toLowerCase();return!(!t.keywords.some(o=>n.includes(o))||((i=t.negativeKeywords)==null?void 0:i.some(o=>n.includes(o))))}function yU(t){return t!==null}const fU=t=>pU.map(a=>{const n=t.filter(r=>mU(a,r));return n.length===0?null:{name:a.name,category:a.category,description:a.description,keyDifferentiators:Array.from(new Set(n)),source:"derived",confidence:Math.min(1,n.length/5),priority:a.priority}}).filter(yU).sort((a,n)=>n.priority-a.priority),xU=({company:t,jobs:a,news:n,events:r,followLoading:s=!1,followDisabled:i=!1,onToggleFollow:o,onFollowAction:l,saveLoading:d=!1,saveDisabled:h=!1,onToggleSave:u,onSaveAction:p,canClaim:y,onClaimSubmit:m,claimPrefill:x,onBack:f,activeTab:v,tabPaths:k,onTabChange:w})=>{var K,X,J,re,te,ye,ve,Z;const[b,C]=M.useState(!1),[j,I]=M.useState(v??"overview");if(M.useEffect(()=>{v&&I(v)},[v]),!t)return e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"container mx-auto px-4 py-16 text-center",children:[e.jsx(rt,{className:"w-16 h-16 text-muted-foreground mx-auto mb-4"}),e.jsx("h1",{className:"text-2xl font-bold mb-2",children:"Company Not Found"}),e.jsx("p",{className:"text-muted-foreground mb-6",children:"The company you're looking for doesn't exist."}),e.jsx("a",{href:"/companies",children:e.jsx(T,{variant:"accent",children:"Browse Directory"})})]})});const N=[{value:"overview",label:"Overview",icon:jn},{value:"products",label:"Products",icon:Xc},{value:"trust",label:"Trust",icon:An},{value:"people",label:"People",icon:Mo},{value:"jobs",label:"Jobs",icon:Ze},{value:"news",label:"News",icon:Aa},{value:"events",label:"Events",icon:fo},{value:"insights",label:"Insights",icon:ko,disabled:!0}],S=((X=(K=t.webIntelligence)==null?void 0:K.menus.primary_nav_details)==null?void 0:X.flatMap(ae=>ae.key_points))??[],L=t.trustAndCompliance.licenses.length+t.trustAndCompliance.certifications.length+t.trustAndCompliance.awards.length,q=t.signalsAndInsights,_=a??[],A=n??[],D=r??[],H=_.length>0?_.length:Array.isArray(t.jobs.openRoles)?t.jobs.openRoles.length:t.jobs.openRoles,G=((J=t.group)==null?void 0:J.name)??t.groupName??t.group_name??null,V=((re=t.group)==null?void 0:re.slug)??t.groupSlug??t.group_slug??((te=t.group)==null?void 0:te.id)??t.groupId??t.group_id??void 0,U=fU(S),F=[...t.productsAndServices??[],...U??[]],se=ae=>{const ge=ae;v||I(ge),w==null||w({tab:ge,path:k==null?void 0:k[ge]})};return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(RR,{companyName:t.name,companyType:t.companyType,overview:t.overview,classification:t.classification,companyId:t.id,companySlug:t.slug,groupSlug:V,groupLabel:G??"Gaming",signalsAndInsights:t.signalsAndInsights,claimedStatus:t.claimedStatus,isFollowing:t.isFollowing,isSaved:t.isSaved,openRolesCount:H,trustScore:L,onBack:f,saveDisabled:h,saveLoading:d,canClaim:y,onToggleFollow:o,onFollowAction:l,onToggleSave:u,onSaveAction:p,followLoading:s,followDisabled:i,onClaimClick:()=>C(!0)}),e.jsx("section",{className:"py-6",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs(nn,{value:v??j,onValueChange:se,className:"space-y-6",children:[e.jsx(TR,{items:N}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[e.jsx(G$,{overview:t.overview,classification:t.classification,officeLocations:t.overview.officeLocations??[],formatOfficeLocation:uU}),e.jsx(W$,{products:F}),e.jsx(J$,{companyTrustData:t.trustAndCompliance,credibilityEvidence:(Z=(ve=(ye=t.webIntelligence)==null?void 0:ye.signals)==null?void 0:ve.evidence)==null?void 0:Z.credibility}),e.jsx(X$,{members:t.people.members}),e.jsx(Y$,{company:t,jobListings:_,openRolesCount:H}),e.jsx(K$,{companyNews:t.newsAndMedia,newsArticles:A}),e.jsx(Q$,{companyEvents:t.events,conferenceEvents:D}),e.jsx(eU,{})]}),e.jsx(tU,{companyOverview:t.overview,intelligenceProfile:q})]})]})})}),e.jsx($$,{company:t,open:b,onOpenChange:C,onClaimSubmit:m,claimPrefill:x})]})},gU=({group:t})=>{var r,s;if(!t)return e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"container mx-auto px-4 py-16 text-center",children:[e.jsx(rt,{className:"w-16 h-16 text-muted-foreground mx-auto mb-4"}),e.jsx("h1",{className:"text-2xl font-bold mb-2",children:"Group Not Found"}),e.jsx("p",{className:"text-muted-foreground mb-6",children:"The group you're looking for doesn't exist."}),e.jsx("a",{href:"/companies",children:e.jsx(T,{variant:"accent",children:"Browse Companies"})})]})});const a=t.intelligenceProfile,n=((r=t.companies)==null?void 0:r.length)??0;return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx("section",{className:"bg-gradient-to-br from-primary via-primary to-primary-variant py-8",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("a",{href:"/companies",className:"inline-flex items-center text-primary-foreground/70 hover:text-primary-foreground mb-6 text-sm",children:[e.jsx(Ja,{className:"w-4 h-4 mr-1"})," Back to Directory"]}),e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsx("div",{className:"w-20 h-20 rounded-2xl bg-white/10 backdrop-blur flex items-center justify-center flex-shrink-0",children:e.jsx(rt,{className:"w-10 h-10 text-primary-foreground"})}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-2",children:[e.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:t.name}),e.jsx(he,{className:"bg-white/10 text-primary-foreground border-white/20",children:"Company Group"})]}),t.description&&e.jsx("p",{className:"text-primary-foreground/80 text-sm mb-4 max-w-2xl",children:t.description}),e.jsx("div",{className:"flex flex-wrap gap-2",children:t.website&&e.jsx("a",{href:t.website,target:"_blank",rel:"noreferrer",children:e.jsxs(T,{variant:"outline",className:"border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground/10",children:[e.jsx(oa,{className:"w-4 h-4 mr-2"})," Visit Website"]})})})]}),a&&e.jsxs("div",{className:"flex gap-4 md:gap-6",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-primary-foreground",children:n}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Member Companies"})]}),e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"text-2xl font-bold text-primary-foreground",children:[(a.profileViews30d/1e3).toFixed(1),"k"]}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Views/30d"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-primary-foreground",children:a.followsCount.toLocaleString()}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Followers"})]})]})]})]})}),e.jsx("section",{className:"py-8",children:e.jsxs("div",{className:"container mx-auto px-4 space-y-6",children:[e.jsxs(Q,{children:[e.jsx(le,{children:e.jsx(ue,{children:"Group Overview"})}),e.jsxs(ee,{className:"space-y-4",children:[t.website&&e.jsxs("div",{className:"flex items-center gap-2 text-sm text-accent",children:[e.jsx(oa,{className:"w-4 h-4"}),e.jsx("a",{href:t.website,target:"_blank",rel:"noreferrer",className:"hover:underline",children:t.website.replace(/^https?:\/\//,"")})]}),t.description?e.jsx("p",{className:"text-muted-foreground",children:t.description}):e.jsx("p",{className:"text-muted-foreground",children:"No group description available yet."})]})]}),e.jsxs(Q,{children:[e.jsx(le,{children:e.jsx(ue,{children:"Member Companies"})}),e.jsxs(ee,{className:"space-y-3",children:[n===0&&e.jsx("p",{className:"text-muted-foreground",children:"No member companies listed."}),(s=t.companies)==null?void 0:s.map(i=>{var l,d,h;const o=i.isPrimary||i.id===t.primaryCompanyId;return e.jsxs("div",{className:`flex flex-col md:flex-row md:items-center md:justify-between gap-3 rounded-lg border p-4 ${o?"border-accent/40 bg-accent/5":"border-border"}`,children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("a",{href:`/companies/${i.slug}`,className:"font-semibold hover:text-accent",children:i.name}),o&&e.jsx(he,{className:"bg-accent/10 text-accent border-accent/20",children:"Primary"})]}),((l=i.overview)==null?void 0:l.shortDescription)&&e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:i.overview.shortDescription})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm text-muted-foreground",children:[((d=i.overview)==null?void 0:d.headquarters)&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(rt,{className:"w-4 h-4"}),i.overview.headquarters.city,", ",i.overview.headquarters.country]}),((h=i.overview)==null?void 0:h.employeeRange)&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(mt,{className:"w-4 h-4"}),i.overview.employeeRange]})]})]},i.id)})]})]}),a&&e.jsxs(Q,{children:[e.jsx(le,{children:e.jsx(ue,{children:"Group Intelligence"})}),e.jsxs(ee,{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsxs("div",{className:"rounded-lg border border-border/60 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(jt,{className:"w-4 h-4"})," Followers"]}),e.jsx("div",{className:"text-2xl font-semibold mt-2",children:a.followsCount.toLocaleString()})]}),e.jsxs("div",{className:"rounded-lg border border-border/60 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(Pa,{className:"w-4 h-4"})," Hiring Intensity"]}),e.jsx("div",{className:"text-2xl font-semibold mt-2",children:a.hiringIntensity})]}),e.jsxs("div",{className:"rounded-lg border border-border/60 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(mt,{className:"w-4 h-4"})," Top Viewing Countries"]}),e.jsx("div",{className:"text-sm font-medium mt-2",children:a.topViewingCountries.join(", ")||"No data"})]})]})]})]})})]})},kU=(t,a)=>{const{buildUrl:n,initialData:r}=a,[s,i]=M.useState(r??null),[o,l]=M.useState(!r),d=M.useMemo(()=>n(t),[n,t]);return M.useEffect(()=>{let h=!1;return l(!0),fetch(d).then(u=>{if(!u.ok)throw new Error(`Failed to load companies: ${u.status}`);return u.json()}).then(u=>{h||i(hU(u))}).catch(u=>{console.error(u)}).finally(()=>{h||l(!1)}),()=>{h=!0}},[d]),{data:s,loading:o}},zC={query:"",filters:{},sort:"popularity_desc",page:1,pageSize:50,scope:"company"},wt=(t,a)=>{var n;return((n=t.get(a))==null?void 0:n.split(",").filter(Boolean))??[]},ML=(t,a)=>{const n=Number(t);return Number.isFinite(n)&&n>0?n:a},vU=t=>{var n,r,s,i,o,l,d;const a=new URLSearchParams;return t.query&&a.set("query",t.query),t.sort&&a.set("sort",t.sort),t.scope&&t.scope!=="company"&&a.set("scope",t.scope),t.segment&&a.set("segment",t.segment),t.subcategory&&a.set("subcategory",t.subcategory),t.region&&a.set("region",t.region),a.set("page",String(t.page)),a.set("pageSize",String(t.pageSize)),t.filters.companyType&&a.set("filters[companyType]",t.filters.companyType),(n=t.filters.country)!=null&&n.length&&a.set("filters[country]",t.filters.country.join(",")),(r=t.filters.products)!=null&&r.length&&a.set("filters[products]",t.filters.products.join(",")),(s=t.filters.employees)!=null&&s.length&&a.set("filters[employees]",t.filters.employees.join(",")),(i=t.filters.verticals)!=null&&i.length&&a.set("filters[verticals]",t.filters.verticals.join(",")),(o=t.filters.productCategories)!=null&&o.length&&a.set("filters[productCategories]",t.filters.productCategories.join(",")),(l=t.filters.openRoles)!=null&&l.length&&a.set("filters[openRoles]",t.filters.openRoles.join(",")),(d=t.filters.yearsActive)!=null&&d.length&&a.set("filters[yearsActive]",t.filters.yearsActive.join(",")),t.filters.hiringNow&&a.set("filters[hiringNow]","true"),t.filters.claimedOnly&&a.set("filters[claimedOnly]","true"),t.filters.hasLicenses&&a.set("filters[hasLicenses]","true"),t.filters.hasAwards&&a.set("filters[hasAwards]","true"),a.toString()},wU=(t,a=zC)=>{const n=new URLSearchParams(t),r=n.get("scope"),s=r==="group"||r==="company"?r:a.scope,i=n.get("query")??n.get("search")??a.query??"",o=n.get("pageSize")??n.get("page_size");return{...a,query:i,sort:n.get("sort")??a.sort,page:ML(n.get("page"),a.page),pageSize:ML(o,a.pageSize),scope:s,segment:n.get("segment")??a.segment,subcategory:n.get("subcategory")??a.subcategory,region:n.get("region")??a.region,filters:{companyType:n.get("filters[companyType]")??n.get("companyType")??a.filters.companyType,country:wt(n,"filters[country]").concat(wt(n,"country")),products:wt(n,"filters[products]").concat(wt(n,"products")),employees:wt(n,"filters[employees]").concat(wt(n,"employees")).concat(wt(n,"employeeRanges")),verticals:wt(n,"filters[verticals]").concat(wt(n,"verticals")),productCategories:wt(n,"filters[productCategories]").concat(wt(n,"productCategories")),openRoles:wt(n,"filters[openRoles]").concat(wt(n,"openRoles")),yearsActive:wt(n,"filters[yearsActive]").concat(wt(n,"yearsActive")),hiringNow:["true","1","yes"].includes(n.get("filters[hiringNow]")??n.get("hiringNow")??""),claimedOnly:["true","1","yes"].includes(n.get("filters[claimedOnly]")??n.get("claimedOnly")??""),hasLicenses:["true","1","yes"].includes(n.get("filters[hasLicenses]")??n.get("hasLicenses")??""),hasAwards:["true","1","yes"].includes(n.get("filters[hasAwards]")??n.get("hasAwards")??"")}}},bU=t=>({...PR,search:t.query??"",companyType:t.filters.companyType??"",verticals:t.filters.verticals??[],productCategories:t.filters.productCategories??[],employeeRanges:t.filters.employees??[],products:t.filters.products??[],openRolesRanges:t.filters.openRoles??[],yearsActiveRanges:t.filters.yearsActive??[],hiringNow:t.filters.hiringNow??!1,scope:t.scope,claimedOnly:t.filters.claimedOnly??!1,hasLicenses:t.filters.hasLicenses??!1,hasAwards:t.filters.hasAwards??!1}),MU=t=>({companyType:t.companyType||void 0,verticals:t.verticals.length?t.verticals:void 0,productCategories:t.productCategories.length?t.productCategories:void 0,employees:t.employeeRanges.length?t.employeeRanges:void 0,products:t.products.length?t.products:void 0,openRoles:t.openRolesRanges.length?t.openRolesRanges:void 0,yearsActive:t.yearsActiveRanges.length?t.yearsActiveRanges:void 0,hiringNow:t.hiringNow||void 0,claimedOnly:t.claimedOnly||void 0,hasLicenses:t.hasLicenses||void 0,hasAwards:t.hasAwards||void 0}),jU={companyTypes:[],verticals:[],productCategories:[],employeeRanges:[],products:[],openRolesRanges:[],yearsActiveRanges:[]},CU=({initialData:t,initialFilterOptions:a,buildUrl:n,initialQuery:r,followDisabled:s=!1,followLoading:i=!1,onToggleFollow:o,onFollowAction:l,saveDisabled:d=!1,saveLoading:h=!1,onToggleSave:u,onSaveAction:p})=>{const[y,m]=M.useState(()=>r||(typeof window>"u"?zC:wU(window.location.search,zC))),[x,f]=M.useState("list"),[v,k]=M.useState(a),{data:w,loading:b}=kU(y,{buildUrl:n,initialData:t}),C=w??t,j=b&&!w,I=M.useMemo(()=>bU(y),[y]);M.useEffect(()=>{if(typeof window>"u")return;const A=vU(y),D=A?`${window.location.pathname}?${A}`:window.location.pathname;window.history.replaceState(null,"",D)},[y]),M.useEffect(()=>{w!=null&&w.filterOptions&&k({...jU,...w.filterOptions})},[w]);const N=A=>{m(D=>({...D,query:A.search,scope:A.scope,filters:MU(A),page:1}))},S=()=>{N(PR)},L=A=>{m(D=>({...D,page:A}))},q=A=>{m(D=>({...D,pageSize:A,page:1}))},_=()=>{f(A=>A==="grid"?"list":"grid")};return e.jsx(_R,{companies:C.results,loading:j,page:C.page,pageSize:C.pageSize||y.pageSize,totalCount:C.count,totalPages:C.totalPages,onPageChange:L,onPageSizeChange:q,filters:I,filterOptions:v,onFiltersChange:N,onClearFilters:S,viewMode:x,onViewModeChange:_,followDisabled:s,followLoading:i,onToggleFollow:o,onFollowAction:l,saveDisabled:d,saveLoading:h,onToggleSave:u,onSaveAction:p})},SU=({isClaimed:t,canClaim:a,onClaimClick:n})=>t||!a?null:e.jsx(T,{type:"button",variant:"ghost",className:"text-primary-foreground",onClick:n,children:"Claim this company"});function NU({title:t,value:a,description:n,icon:r,trend:s}){return e.jsxs(Q,{children:[e.jsxs(le,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsx(ue,{className:"text-sm font-medium",children:t}),e.jsx(r,{className:"h-4 w-4 text-muted-foreground"})]}),e.jsxs(ee,{children:[e.jsx("div",{className:"text-2xl font-bold",children:a}),n&&e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:n}),s&&e.jsxs("p",{className:`text-xs mt-1 ${s.isPositive?"text-green-600":"text-red-600"}`,children:[s.isPositive?"+":"-",s.value," from last month"]})]})]})}function LU({stats:t}){return e.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:t.map((a,n)=>e.jsx(NU,{...a},n))})}const IU=["Sarah","Michael","Emma","James","Olivia","William","Sophia","Robert","Isabella","David","Mia","John","Charlotte","Daniel","Amelia"],AU=["Johnson","Smith","Williams","Brown","Jones","Garcia","Miller","Davis","Rodriguez","Martinez","Hernandez","Lopez","Wilson","Anderson","Thomas"],PU=["Malta","London, UK","Stockholm, Sweden","Madrid, Spain","Lisbon, Portugal","Remote","Berlin, Germany","Tallinn, Estonia","Athens, Greece"],_U=["Retention Manager","CRM Specialist","Senior Game Designer","Payments Risk Analyst","Compliance Officer","Affiliate Manager","Product Owner","VIP Support Lead","UX Researcher","Data Analyst"],jL=["Senior Backend Engineer","Game Producer","QA Lead","CRM Manager","Compliance Analyst","Fraud Specialist","Payments Manager","BI Analyst","VIP Account Manager"],Y9=["Lifecycle marketing","Player engagement","Responsible gaming","SQL","Live casino ops","Fraud detection","A/B testing","Segmentation","KYC/AML","Game math","Figma","Analytics"],CL=["MGA","UKGC","DGA","B2B","Curaçao"],RU=["LinkedIn","Referral","Job board","Career page","Recruiter outreach"],TU=["new","reviewed","shortlisted","rejected"],DU=[1,2,3,4,5,null],Pt=t=>t[Math.floor(Math.random()*t.length)],K9=t=>{const a=new Date;return a.setDate(a.getDate()-Math.floor(Math.random()*t)),a.toISOString()},qU=(t=32)=>Array.from({length:t}).map((a,n)=>{const r=Pt(IU),s=Pt(AU),i=Pt(DU),o=Pt(TU),l=K9(45),d=K9(14);return{id:`candidate-${n+1}`,firstName:r,lastName:s,title:Pt(_U),location:Pt(PU),appliedDate:l,lastActive:d,source:Pt(RU),yearsExperience:Math.floor(Math.random()*8)+2,status:o,rating:i,skills:Array.from(new Set([Pt(Y9),Pt(Y9),Pt(Y9)])).slice(0,3),licenses:Array.from(new Set([Pt(CL),Pt(CL)])).slice(0,2),appliedJobs:Array.from(new Set([Pt(jL),Pt(jL)])).slice(0,2),notes:[{id:`note-${n}-1`,author:"Recruiter",note:"Strong iGaming domain knowledge with proven retention wins.",createdAt:K9(20),isInternal:!0}]}}),Q9={new:"New",reviewed:"Reviewed",shortlisted:"Shortlisted",rejected:"Rejected"},SL={new:"outline",reviewed:"secondary",shortlisted:"default",rejected:"destructive"},qR=({candidate:t,canEdit:a=!1,onNameClick:n,onStatusChange:r,onRatingChange:s,onAddNote:i})=>{const[o,l]=M.useState(""),[d,h]=M.useState(!0),u=M.useMemo(()=>`${t.firstName} ${t.lastName}`,[t.firstName,t.lastName]),p=M.useMemo(()=>new Date(t.appliedDate).toLocaleDateString(),[t.appliedDate]),y=M.useMemo(()=>new Date(t.lastActive).toLocaleDateString(),[t.lastActive]),m=()=>{!o.trim()||!i||(i(t.id,o.trim(),d),l(""))};return e.jsxs(Q,{className:"border-muted/60",children:[e.jsxs(le,{className:"space-y-4",children:[e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(T,{variant:"link",className:"h-auto p-0 text-lg font-semibold",onClick:()=>n==null?void 0:n(t.id),children:u}),e.jsx(he,{variant:SL[t.status],children:Q9[t.status]})]}),e.jsx("p",{className:"text-sm text-muted-foreground",children:t.title}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-sm text-muted-foreground",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Qe,{className:"h-4 w-4"}),t.location]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Ze,{className:"h-4 w-4"}),t.yearsExperience,"+ yrs"]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(fo,{className:"h-4 w-4"}),"Applied ",p]})]})]}),e.jsxs("div",{className:"flex flex-col gap-2 sm:items-end",children:[a?e.jsxs(tn,{value:t.status,onValueChange:x=>r==null?void 0:r(t.id,x),children:[e.jsx(za,{className:"w-44",children:e.jsx(an,{placeholder:"Update status"})}),e.jsx(Ea,{children:Object.entries(Q9).map(([x,f])=>e.jsx(Mt,{value:x,children:f},x))})]}):e.jsxs(he,{variant:SL[t.status],children:["Status: ",Q9[t.status]]}),e.jsxs("div",{className:"flex items-center gap-1",children:[Array.from({length:5}).map((x,f)=>{const v=f+1,k=t.rating!==null&&t.rating>=v;return e.jsx(T,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>a&&(s==null?void 0:s(t.id,v)),disabled:!a,children:e.jsx(jt,{className:k?"h-4 w-4 text-yellow-500":"h-4 w-4 text-muted-foreground"})},`${t.id}-star-${f}`)}),t.rating===null&&e.jsx("span",{className:"text-xs text-muted-foreground",children:"Unrated"})]})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[t.licenses.map(x=>e.jsx(he,{variant:"secondary",children:x},x)),t.skills.map(x=>e.jsx(he,{variant:"outline",children:x},x))]})]}),e.jsxs(ee,{className:"space-y-4",children:[e.jsxs("div",{className:"flex flex-wrap gap-4 text-sm text-muted-foreground",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(jn,{className:"h-4 w-4"}),"Source: ",t.source]}),e.jsxs("span",{children:["Last active ",y]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-sm font-semibold",children:"Applied roles"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:t.appliedJobs.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:"No roles attached."}):t.appliedJobs.map(x=>e.jsx(he,{variant:"outline",children:x},x))})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-sm font-semibold",children:"Notes"}),e.jsx("div",{className:"space-y-2",children:t.notes.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:"No notes yet."}):t.notes.map(x=>e.jsxs("div",{className:"rounded-lg border px-3 py-2 text-sm",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs text-muted-foreground",children:[e.jsxs("span",{children:[x.author," • ",new Date(x.createdAt).toLocaleDateString()]}),x.isInternal&&e.jsx(he,{variant:"outline",children:"Internal"})]}),e.jsx("p",{className:"mt-2",children:x.note})]},x.id))})]}),a&&e.jsxs("div",{className:"space-y-2",children:[e.jsx(Et,{value:o,onChange:x=>l(x.target.value),placeholder:"Add a note about this candidate...",rows:3}),e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsxs("label",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(_t,{checked:d,onCheckedChange:x=>h(!!x)}),"Internal note"]}),e.jsx(T,{size:"sm",onClick:m,disabled:!o.trim(),children:"Add note"})]})]})]})]})},zU=[{value:"all",label:"All"},{value:"new",label:"New"},{value:"reviewed",label:"Reviewed"},{value:"shortlisted",label:"Shortlisted"},{value:"rejected",label:"Rejected"}],EU={recent:"Most recent",name:"Name",rating:"Rating"},zR=({company:t,onUpdate:a,isSaving:n=!1,canEdit:r=!1})=>{const[s,i]=M.useState(()=>qU()),[o,l]=M.useState(""),[d,h]=M.useState("all"),[u,p]=M.useState("recent"),[y,m]=M.useState(null),x=M.useMemo(()=>s.reduce((C,j)=>(C[j.status]+=1,C.all+=1,C),{all:0,new:0,reviewed:0,shortlisted:0,rejected:0}),[s]),f=M.useMemo(()=>{const b=o.trim().toLowerCase(),C=N=>b?[`${N.firstName} ${N.lastName}`.toLowerCase(),N.title.toLowerCase(),N.location.toLowerCase(),N.skills.join(" ").toLowerCase()].join(" ").includes(b):!0;return(d==="all"?s:s.filter(N=>N.status===d)).filter(C).sort((N,S)=>{switch(u){case"name":{const L=`${N.lastName} ${N.firstName}`.toLowerCase(),q=`${S.lastName} ${S.firstName}`.toLowerCase();return L.localeCompare(q)}case"rating":{const L=N.rating??0;return(S.rating??0)-L}case"recent":default:return new Date(S.appliedDate).getTime()-new Date(N.appliedDate).getTime()}})},[s,o,u,d]),v=(b,C)=>{i(j=>j.map(I=>I.id===b?{...I,status:C}:I)),a({type:"candidates",payload:{action:"change-status",candidateId:b,status:C}})},k=(b,C)=>{i(j=>j.map(I=>I.id===b?{...I,rating:C}:I)),a({type:"candidates",payload:{action:"rate",candidateId:b,rating:C}})},w=(b,C,j)=>{i(I=>I.map(N=>N.id===b?{...N,notes:[{id:`${b}-${Date.now()}`,author:t.name,note:C,createdAt:new Date().toISOString(),isInternal:j},...N.notes]}:N)),a({type:"candidates",payload:{action:"add-note",candidateId:b,note:C,isInternal:j}})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"Candidates"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Review applicants and track status updates across your pipeline."}),y&&e.jsxs("p",{className:"text-sm text-muted-foreground mt-2",children:["Selected candidate:"," ",(()=>{const b=s.find(C=>C.id===y);return b?`${b.firstName} ${b.lastName}`:"Unknown"})()]})]}),n&&e.jsx(he,{variant:"secondary",className:"w-fit",children:"Syncing updates..."})]}),e.jsxs(Q,{children:[e.jsxs(le,{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx(ue,{children:"Pipeline overview"}),e.jsx(Se,{children:"Filter, sort, and review candidate activity."})]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:zU.map(b=>e.jsxs(T,{variant:d===b.value?"default":"outline",size:"sm",onClick:()=>h(b.value),children:[b.label,e.jsx("span",{className:"ml-2 text-xs text-muted-foreground",children:x[b.value]})]},b.value))}),e.jsxs("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[e.jsx(de,{placeholder:"Search by name, role, or skill",value:o,onChange:b=>l(b.target.value),className:"md:max-w-sm"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:"Sort by"}),e.jsxs(tn,{value:u,onValueChange:b=>p(b),children:[e.jsx(za,{className:"w-40",children:e.jsx(an,{placeholder:"Sort by"})}),e.jsx(Ea,{children:Object.entries(EU).map(([b,C])=>e.jsx(Mt,{value:b,children:C},b))})]})]})]})]}),e.jsx(ee,{className:"space-y-6",children:f.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:"No candidates match the current filters."}):e.jsx("div",{className:"space-y-6",children:f.map(b=>e.jsx(qR,{candidate:b,canEdit:r,onNameClick:m,onStatusChange:v,onRatingChange:k,onAddNote:w},b.id))})})]})]})};function FU(t,a=[]){let n=[];function r(i,o){const l=g.createContext(o),d=n.length;n=[...n,o];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=n.map(o=>g.createContext(o));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[r,OU(s,...a)]}function OU(...t){const a=t[0];if(t.length===1)return a;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:o}),[o])}};return n.scopeName=a.scopeName,n}function NL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function HU(...t){return a=>{let n=!1;const r=t.map(s=>{const i=NL(s,a);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():NL(t[s],null)}}}}function ER(...t){return g.useCallback(HU(...t),t)}function VU(t,a,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t==null||t(s),n===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}var FR="AlertDialog",[BU,hZ]=FU(FR,[gP]),sn=gP(),OR=t=>{const{__scopeAlertDialog:a,...n}=t,r=sn(a);return e.jsx(TP,{...r,...n,modal:!0})};OR.displayName=FR;var $U="AlertDialogTrigger",UU=g.forwardRef((t,a)=>{const{__scopeAlertDialog:n,...r}=t,s=sn(n);return e.jsx(DP,{...s,...r,ref:a})});UU.displayName=$U;var GU="AlertDialogPortal",HR=t=>{const{__scopeAlertDialog:a,...n}=t,r=sn(a);return e.jsx(qP,{...r,...n})};HR.displayName=GU;var WU="AlertDialogOverlay",VR=g.forwardRef((t,a)=>{const{__scopeAlertDialog:n,...r}=t,s=sn(n);return e.jsx(CS,{...s,...r,ref:a})});VR.displayName=WU;var uc="AlertDialogContent",[ZU,JU]=BU(uc),XU=JT("AlertDialogContent"),BR=g.forwardRef((t,a)=>{const{__scopeAlertDialog:n,children:r,...s}=t,i=sn(n),o=g.useRef(null),l=ER(a,o),d=g.useRef(null);return e.jsx(uO,{contentName:uc,titleName:$R,docsSlug:"alert-dialog",children:e.jsx(ZU,{scope:n,cancelRef:d,children:e.jsxs(SS,{role:"alertdialog",...i,...s,ref:l,onOpenAutoFocus:VU(s.onOpenAutoFocus,h=>{var u;h.preventDefault(),(u=d.current)==null||u.focus({preventScroll:!0})}),onPointerDownOutside:h=>h.preventDefault(),onInteractOutside:h=>h.preventDefault(),children:[e.jsx(XU,{children:r}),e.jsx(KU,{contentRef:o})]})})})});BR.displayName=uc;var $R="AlertDialogTitle",UR=g.forwardRef((t,a)=>{const{__scopeAlertDialog:n,...r}=t,s=sn(n);return e.jsx(NS,{...s,...r,ref:a})});UR.displayName=$R;var GR="AlertDialogDescription",WR=g.forwardRef((t,a)=>{const{__scopeAlertDialog:n,...r}=t,s=sn(n);return e.jsx(LS,{...s,...r,ref:a})});WR.displayName=GR;var YU="AlertDialogAction",ZR=g.forwardRef((t,a)=>{const{__scopeAlertDialog:n,...r}=t,s=sn(n);return e.jsx(IS,{...s,...r,ref:a})});ZR.displayName=YU;var JR="AlertDialogCancel",XR=g.forwardRef((t,a)=>{const{__scopeAlertDialog:n,...r}=t,{cancelRef:s}=JU(JR,n),i=sn(n),o=ER(a,s);return e.jsx(IS,{...i,...r,ref:o})});XR.displayName=JR;var KU=({contentRef:t})=>{const a=`\`${uc}\` requires a description for the component to be accessible for screen reader users.
7826
7826
 
7827
7827
  You can add a description to the \`${uc}\` by passing a \`${GR}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
7828
7828
 
7829
7829
  Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${uc}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
7830
7830
 
7831
- For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return g.useEffect(()=>{var r;document.getElementById((r=t.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(a)},[a,t]),null},QU=OR,eG=HR,YR=VR,KR=BR,QR=ZR,eT=XR,tT=UR,aT=WR;const jc=QU,tG=eG,nT=g.forwardRef(({className:t,...a},n)=>e.jsx(YR,{className:ye("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...a,ref:n}));nT.displayName=YR.displayName;const zo=g.forwardRef(({className:t,...a},n)=>e.jsxs(tG,{children:[e.jsx(nT,{}),e.jsx(KR,{ref:n,className:ye("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...a})]}));zo.displayName=KR.displayName;const Eo=({className:t,...a})=>e.jsx("div",{className:ye("flex flex-col space-y-2 text-center sm:text-left",t),...a});Eo.displayName="AlertDialogHeader";const Fo=({className:t,...a})=>e.jsx("div",{className:ye("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a});Fo.displayName="AlertDialogFooter";const Oo=g.forwardRef(({className:t,...a},n)=>e.jsx(tT,{ref:n,className:ye("text-lg font-semibold",t),...a}));Oo.displayName=tT.displayName;const Ho=g.forwardRef(({className:t,...a},n)=>e.jsx(aT,{ref:n,className:ye("text-sm text-muted-foreground",t),...a}));Ho.displayName=aT.displayName;const Vo=g.forwardRef(({className:t,...a},n)=>e.jsx(QR,{ref:n,className:ye(HC(),t),...a}));Vo.displayName=QR.displayName;const Bo=g.forwardRef(({className:t,...a},n)=>e.jsx(eT,{ref:n,className:ye(HC({variant:"outline"}),"mt-2 sm:mt-0",t),...a}));Bo.displayName=eT.displayName;const aG=({open:t,onClose:a,onSave:n,existingEvent:r})=>{const[s,i]=M.useState({title:"",date:"",location:"",description:"",url:""});M.useEffect(()=>{i(r?{id:r.id,title:r.title,date:r.date,location:r.location,description:r.description??"",url:r.url??""}:{title:"",date:"",location:"",description:"",url:""})},[r,t]);const o=(d,h)=>i(u=>({...u,[d]:h})),l=()=>{n({...s,id:(r==null?void 0:r.id)??s.id??`event-${Date.now()}`}),i({title:"",date:"",location:"",description:"",url:""}),a()};return e.jsx(St,{open:t,onOpenChange:a,children:e.jsxs(xt,{children:[e.jsx(st,{children:r?"Edit Event":"Add Event"}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{children:[e.jsx(O,{children:"Title"}),e.jsx(de,{value:s.title,onChange:d=>o("title",d.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Date"}),e.jsx(de,{type:"date",value:s.date,onChange:d=>o("date",d.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Location"}),e.jsx(de,{value:s.location,onChange:d=>o("location",d.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Description"}),e.jsx(Et,{rows:4,value:s.description,onChange:d=>o("description",d.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Event URL"}),e.jsx(de,{type:"url",value:s.url,onChange:d=>o("url",d.target.value)})]}),e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsx(T,{variant:"outline",onClick:a,children:"Cancel"}),e.jsx(T,{onClick:l,children:"Save"})]})]})]})})},nG=(t,a)=>"eventName"in t?{id:`event-${a}`,title:t.eventName,date:t.date,location:t.location,description:"",url:""}:{id:`event-${a}`,title:t.name,date:t.startDate,location:t.location,description:"",url:""},rT=({company:t,onUpdate:a,isSaving:n=!1,canEdit:r=!1})=>{const[s,i]=M.useState({events:t.events.upcomingEvents.map(nG)}),[o,l]=M.useState(!1),[d,h]=M.useState(null),[u,p]=M.useState(null),y=()=>{a({type:"events",payload:{events:s.events}})},m=v=>{h(v),l(!0)},x=()=>{u&&(i(v=>({events:v.events.filter(k=>k.id!==u)})),p(null))},f=v=>{i(k=>{const w=k.events.findIndex(b=>b.id===v.id);if(w>=0){const b=[...k.events];return b[w]={...b[w],...v},{events:b}}return{events:[...k.events,v]}})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"Events"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Keep your event calendar current."})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[r&&e.jsxs(T,{variant:"outline",onClick:()=>{h(null),l(!0)},children:[e.jsx(la,{className:"mr-2 h-4 w-4"}),"Add event"]}),r&&e.jsx(T,{onClick:y,disabled:n,children:n?e.jsxs(e.Fragment,{children:[e.jsx(at,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):"Save Changes"})]})]}),e.jsxs(Q,{children:[e.jsxs(ce,{children:[e.jsx(ue,{children:"Upcoming events"}),e.jsx(Se,{children:"Highlight events, meetups, and conferences."})]}),e.jsx(ee,{className:"space-y-4",children:s.events.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:"No events scheduled yet."}):e.jsx("div",{className:"space-y-4",children:s.events.map(v=>e.jsx("div",{className:"p-4 border rounded-lg space-y-2 relative group",children:e.jsxs("div",{className:"flex justify-between items-start gap-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("h4",{className:"font-semibold",children:v.title}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[v.date||"Date TBD"," • ",v.location||"Location TBD"]}),v.description&&e.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:v.description})]}),r&&e.jsxs("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity flex gap-2",children:[e.jsx(T,{variant:"outline",size:"sm",onClick:()=>m(v),children:"Edit"}),e.jsx(T,{variant:"destructive",size:"sm",onClick:()=>p(v.id??null),children:"Delete"})]})]})},v.id))})})]}),e.jsx(aG,{open:o,onClose:()=>l(!1),onSave:f,existingEvent:d}),e.jsx(jc,{open:!!u,onOpenChange:()=>p(null),children:e.jsxs(zo,{children:[e.jsxs(Eo,{children:[e.jsx(Oo,{children:"Delete this event?"}),e.jsx(Ho,{children:"This action cannot be undone and will remove the event from the calendar."})]}),e.jsxs(Fo,{children:[e.jsx(Bo,{children:"Cancel"}),e.jsx(Vo,{onClick:x,children:"Delete"})]})]})})]})},rG=({open:t,onClose:a,onSave:n,existingJob:r})=>{const[s,i]=M.useState({title:"",location:"",employmentType:"",description:"",requirements:"",status:"Draft"});M.useEffect(()=>{i(r?{id:r.id,title:r.title,location:r.location,employmentType:r.employmentType,description:r.description??"",requirements:r.requirements??"",status:r.status??"Draft"}:{title:"",location:"",employmentType:"",description:"",requirements:"",status:"Draft"})},[r,t]);const o=(d,h)=>i(u=>({...u,[d]:h})),l=()=>{n({...s,id:(r==null?void 0:r.id)??s.id??`job-${Date.now()}`,status:s.status??"Draft"}),i({title:"",location:"",employmentType:"",description:"",requirements:"",status:"Draft"}),a()};return e.jsx(St,{open:t,onOpenChange:a,children:e.jsxs(xt,{children:[e.jsx(st,{children:r?"Edit Job":"Add Job"}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{children:[e.jsx(O,{children:"Title"}),e.jsx(de,{value:s.title,onChange:d=>o("title",d.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Location"}),e.jsx(de,{value:s.location,onChange:d=>o("location",d.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Employment Type"}),e.jsx(de,{value:s.employmentType,onChange:d=>o("employmentType",d.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Description"}),e.jsx(Et,{rows:4,value:s.description,onChange:d=>o("description",d.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Requirements"}),e.jsx(Et,{rows:4,value:s.requirements,onChange:d=>o("requirements",d.target.value)})]}),e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsx(T,{variant:"outline",onClick:a,children:"Cancel"}),e.jsx(T,{onClick:l,children:"Save"})]})]})]})})},sT=({company:t,onUpdate:a,isSaving:n=!1,canEdit:r=!1})=>{const s=Array.isArray(t.jobs.openRoles)?t.jobs.openRoles.map((w,b)=>({id:`job-${b}`,title:w,location:"",employmentType:"",description:"",requirements:"",status:"Published"})):[],[i,o]=M.useState({jobs:s}),[l,d]=M.useState(!1),[h,u]=M.useState(null),[p,y]=M.useState(null),m=()=>{a({type:"jobs",payload:{jobs:i.jobs}})},x=w=>{u(w),d(!0)},f=()=>{p&&(o(w=>({jobs:w.jobs.filter(b=>b.id!==p)})),y(null))},v=w=>{o(b=>{const C=b.jobs.findIndex(j=>j.id===w.id);if(C>=0){const j=[...b.jobs];return j[C]={...j[C],...w},{jobs:j}}return{jobs:[...b.jobs,w]}})},k=w=>{w&&o(b=>({jobs:b.jobs.map(C=>C.id===w?{...C,status:C.status==="Published"?"Draft":"Published"}:C)}))};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"Jobs"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Publish and manage open roles."})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[r&&e.jsxs(T,{variant:"outline",onClick:()=>{u(null),d(!0)},children:[e.jsx(la,{className:"mr-2 h-4 w-4"}),"Add job"]}),r&&e.jsx(T,{onClick:m,disabled:n,children:n?e.jsxs(e.Fragment,{children:[e.jsx(at,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):"Save Changes"})]})]}),e.jsxs(Q,{children:[e.jsxs(ce,{children:[e.jsx(ue,{children:"Open roles"}),e.jsx(Se,{children:"Manage publishing status and job details."})]}),e.jsx(ee,{className:"space-y-4",children:i.jobs.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:"No roles added yet."}):e.jsx("div",{className:"space-y-4",children:i.jobs.map(w=>e.jsx("div",{className:"p-4 border rounded-lg space-y-2 relative group",children:e.jsxs("div",{className:"flex justify-between items-start gap-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("h4",{className:"font-semibold",children:w.title}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[w.location||"Location not specified"," • ",w.employmentType||"Type TBD"]}),e.jsx(he,{variant:w.status==="Published"?"default":"secondary",children:w.status??"Draft"})]}),r&&e.jsxs("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity flex flex-wrap gap-2",children:[e.jsx(T,{variant:"outline",size:"sm",onClick:()=>k(w.id),children:w.status==="Published"?"Unpublish":"Publish"}),e.jsx(T,{variant:"outline",size:"sm",onClick:()=>x(w),children:"Edit"}),e.jsx(T,{variant:"destructive",size:"sm",onClick:()=>y(w.id??null),children:"Delete"})]})]})},w.id))})})]}),e.jsx(rG,{open:l,onClose:()=>d(!1),onSave:v,existingJob:h}),e.jsx(jc,{open:!!p,onOpenChange:()=>y(null),children:e.jsxs(zo,{children:[e.jsxs(Eo,{children:[e.jsx(Oo,{children:"Delete this job?"}),e.jsx(Ho,{children:"This action cannot be undone and will remove the job posting."})]}),e.jsxs(Fo,{children:[e.jsx(Bo,{children:"Cancel"}),e.jsx(Vo,{onClick:f,children:"Delete"})]})]})})]})},sG=(t,a)=>typeof t=="string"?{id:`news-${a}`,title:t,date:"",excerpt:"",status:"Published",content:"",url:""}:{id:`news-${a}`,title:t.title,date:"",excerpt:t.source,status:"Published",content:"",url:t.url},iT=({company:t,onUpdate:a,isSaving:n=!1,canEdit:r=!1})=>{const[s,i]=M.useState({news:t.newsAndMedia.pressMentions.map(sG)}),[o,l]=M.useState(!1),[d,h]=M.useState(null),[u,p]=M.useState(null),[y,m]=M.useState({title:"",date:"",excerpt:"",status:"Draft",content:"",url:""});M.useEffect(()=>{m(d?{id:d.id,title:d.title,date:d.date,excerpt:d.excerpt,status:d.status,content:d.content,url:d.url??""}:{title:"",date:"",excerpt:"",status:"Draft",content:"",url:""})},[d,o]);const x=()=>{a({type:"news",payload:{news:s.news}})},f=b=>{h(b),l(!0)},v=()=>{u&&(i(b=>({news:b.news.filter(C=>C.id!==u)})),p(null))},k=()=>{const b={...y,id:(d==null?void 0:d.id)??y.id??`news-${Date.now()}`};i(C=>{const j=C.news.findIndex(I=>I.id===b.id);if(j>=0){const I=[...C.news];return I[j]=b,{news:I}}return{news:[...C.news,b]}}),l(!1),h(null)},w=b=>{b&&i(C=>({news:C.news.map(j=>j.id===b?{...j,status:j.status==="Published"?"Draft":"Published"}:j)}))};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"News & Media"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Publish announcements and press coverage."})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[r&&e.jsxs(T,{variant:"outline",onClick:()=>{h(null),l(!0)},children:[e.jsx(la,{className:"mr-2 h-4 w-4"}),"Add article"]}),r&&e.jsx(T,{onClick:x,disabled:n,children:n?e.jsxs(e.Fragment,{children:[e.jsx(at,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):"Save Changes"})]})]}),e.jsxs(Q,{children:[e.jsxs(ce,{children:[e.jsx(ue,{children:"Latest updates"}),e.jsx(Se,{children:"Manage your press mentions and announcements."})]}),e.jsx(ee,{className:"space-y-4",children:s.news.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:"No news items yet."}):e.jsx("div",{className:"space-y-4",children:s.news.map(b=>e.jsx("div",{className:"p-4 border rounded-lg space-y-2 relative group",children:e.jsxs("div",{className:"flex justify-between items-start gap-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("h4",{className:"font-semibold",children:b.title}),e.jsx("p",{className:"text-sm text-muted-foreground",children:b.date||"Date TBD"}),b.excerpt&&e.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:b.excerpt}),e.jsx(he,{variant:b.status==="Published"?"default":"secondary",children:b.status})]}),r&&e.jsxs("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity flex flex-wrap gap-2",children:[e.jsx(T,{variant:"outline",size:"sm",onClick:()=>w(b.id),children:b.status==="Published"?"Unpublish":"Publish"}),e.jsx(T,{variant:"outline",size:"sm",onClick:()=>f(b),children:"Edit"}),e.jsx(T,{variant:"destructive",size:"sm",onClick:()=>p(b.id??null),children:"Delete"})]})]})},b.id))})})]}),e.jsx(St,{open:o,onOpenChange:l,children:e.jsxs(xt,{children:[e.jsx(st,{children:d?"Edit News":"Add News"}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{children:[e.jsx(O,{children:"Title"}),e.jsx(de,{value:y.title,onChange:b=>m(C=>({...C,title:b.target.value}))})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Date"}),e.jsx(de,{type:"date",value:y.date,onChange:b=>m(C=>({...C,date:b.target.value}))})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Excerpt"}),e.jsx(Et,{rows:3,value:y.excerpt,onChange:b=>m(C=>({...C,excerpt:b.target.value}))})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Content"}),e.jsx(Et,{rows:5,value:y.content,onChange:b=>m(C=>({...C,content:b.target.value}))})]}),e.jsxs("div",{children:[e.jsx(O,{children:"URL"}),e.jsx(de,{type:"url",value:y.url,onChange:b=>m(C=>({...C,url:b.target.value}))})]}),e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsx(T,{variant:"outline",onClick:()=>l(!1),children:"Cancel"}),e.jsx(T,{onClick:k,children:"Save"})]})]})]})}),e.jsx(jc,{open:!!u,onOpenChange:()=>p(null),children:e.jsxs(zo,{children:[e.jsxs(Eo,{children:[e.jsx(Oo,{children:"Delete this news item?"}),e.jsx(Ho,{children:"This action cannot be undone and will remove the news entry."})]}),e.jsxs(Fo,{children:[e.jsx(Bo,{children:"Cancel"}),e.jsx(Vo,{onClick:v,children:"Delete"})]})]})})]})},oT=({company:t,onUpdate:a,isSaving:n=!1,canEdit:r=!1})=>{const[s,i]=M.useState({companyName:t.name,foundedYear:t.overview.foundedYear,website:t.overview.website,employeeRange:t.overview.employeeRange,shortDescription:t.overview.shortDescription,longDescription:t.overview.longDescription??"",headquartersCity:t.overview.headquarters.city,headquartersCountry:t.overview.headquarters.country}),o=(d,h)=>{i(u=>({...u,[d]:h}))},l=()=>{a({type:"overview",payload:s})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"Company Overview"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Manage your company information"})]}),r&&e.jsx(T,{onClick:l,disabled:n,children:n?e.jsxs(e.Fragment,{children:[e.jsx(at,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):"Save Changes"})]}),e.jsxs(Q,{children:[e.jsxs(ce,{children:[e.jsx(ue,{children:"Company details"}),e.jsx(Se,{children:"Keep your profile accurate and up to date."})]}),e.jsxs(ee,{className:"grid gap-4 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"companyName",children:"Company Name"}),r?e.jsx(de,{id:"companyName",value:s.companyName,onChange:d=>o("companyName",d.target.value)}):e.jsx("p",{className:"text-sm text-muted-foreground",children:s.companyName})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"foundedYear",children:"Founded Year"}),r?e.jsx(de,{id:"foundedYear",type:"number",value:s.foundedYear,onChange:d=>o("foundedYear",Number(d.target.value))}):e.jsx("p",{className:"text-sm text-muted-foreground",children:s.foundedYear})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"website",children:"Website"}),r?e.jsx(de,{id:"website",type:"url",value:s.website,onChange:d=>o("website",d.target.value)}):e.jsx("p",{className:"text-sm text-muted-foreground",children:s.website})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"employeeRange",children:"Employee Range"}),r?e.jsx(de,{id:"employeeRange",value:s.employeeRange,onChange:d=>o("employeeRange",d.target.value)}):e.jsx("p",{className:"text-sm text-muted-foreground",children:s.employeeRange})]}),e.jsxs("div",{className:"space-y-2 md:col-span-2",children:[e.jsx(O,{htmlFor:"shortDescription",children:"Short Description"}),r?e.jsx(Et,{id:"shortDescription",rows:3,value:s.shortDescription,onChange:d=>o("shortDescription",d.target.value)}):e.jsx("p",{className:"text-sm text-muted-foreground",children:s.shortDescription})]}),e.jsxs("div",{className:"space-y-2 md:col-span-2",children:[e.jsx(O,{htmlFor:"longDescription",children:"Long Description"}),r?e.jsx(Et,{id:"longDescription",rows:6,value:s.longDescription,onChange:d=>o("longDescription",d.target.value)}):e.jsx("p",{className:"text-sm text-muted-foreground",children:s.longDescription})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"headquartersCity",children:"Headquarters City"}),r?e.jsx(de,{id:"headquartersCity",value:s.headquartersCity,onChange:d=>o("headquartersCity",d.target.value)}):e.jsx("p",{className:"text-sm text-muted-foreground",children:s.headquartersCity})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"headquartersCountry",children:"Headquarters Country"}),r?e.jsx(de,{id:"headquartersCountry",value:s.headquartersCountry,onChange:d=>o("headquartersCountry",d.target.value)}):e.jsx("p",{className:"text-sm text-muted-foreground",children:s.headquartersCountry})]})]})]})]})},iG=({open:t,onClose:a,onSave:n,existingPerson:r})=>{const[s,i]=M.useState({name:"",role:"",linkedIn:"",email:""});M.useEffect(()=>{i(r?{id:r.id,name:r.name,role:r.role,linkedIn:r.linkedIn??"",email:r.email??""}:{name:"",role:"",linkedIn:"",email:""})},[r,t]);const o=(d,h)=>i(u=>({...u,[d]:h})),l=()=>{n({...s,id:(r==null?void 0:r.id)??s.id??`person-${Date.now()}`}),i({name:"",role:"",linkedIn:"",email:""}),a()};return e.jsx(St,{open:t,onOpenChange:a,children:e.jsxs(xt,{children:[e.jsx(st,{children:r?"Edit Team Member":"Add Team Member"}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{children:[e.jsx(O,{children:"Name"}),e.jsx(de,{value:s.name,onChange:d=>o("name",d.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Role"}),e.jsx(de,{value:s.role,onChange:d=>o("role",d.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"LinkedIn"}),e.jsx(de,{value:s.linkedIn,onChange:d=>o("linkedIn",d.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Email"}),e.jsx(de,{type:"email",value:s.email,onChange:d=>o("email",d.target.value)})]}),e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsx(T,{variant:"outline",onClick:a,children:"Cancel"}),e.jsx(T,{onClick:l,children:"Save"})]})]})]})})},cT=({company:t,onUpdate:a,isSaving:n=!1,canEdit:r=!1})=>{const[s,i]=M.useState({members:t.people.members.map((v,k)=>({id:`person-${k}`,name:v.name,role:v.title,linkedIn:v.profileUrl??"",email:""}))}),[o,l]=M.useState(!1),[d,h]=M.useState(null),[u,p]=M.useState(null),y=()=>{const v=s.members.map(k=>({name:k.name,title:k.role,profileUrl:k.linkedIn}));a({type:"people",payload:{members:v}})},m=v=>{h(v),l(!0)},x=()=>{u&&(i(v=>({members:v.members.filter(k=>k.id!==u)})),p(null))},f=v=>{i(k=>{const w=k.members.findIndex(b=>b.id===v.id);if(w>=0){const b=[...k.members];return b[w]={...b[w],...v},{members:b}}return{members:[...k.members,v]}})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"People"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Manage your leadership and team members."})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[r&&e.jsxs(T,{variant:"outline",onClick:()=>{h(null),l(!0)},children:[e.jsx(la,{className:"mr-2 h-4 w-4"}),"Add member"]}),r&&e.jsx(T,{onClick:y,disabled:n,children:n?e.jsxs(e.Fragment,{children:[e.jsx(at,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):"Save Changes"})]})]}),e.jsxs(Q,{children:[e.jsxs(ce,{children:[e.jsx(ue,{children:"Team directory"}),e.jsx(Se,{children:"Highlight decision makers and team contacts."})]}),e.jsx(ee,{className:"space-y-4",children:s.members.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:"No team members added yet."}):e.jsx("div",{className:"space-y-4",children:s.members.map(v=>e.jsx("div",{className:"p-4 border rounded-lg space-y-2 relative group",children:e.jsxs("div",{className:"flex justify-between items-start gap-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("h4",{className:"font-semibold",children:v.name}),e.jsx("p",{className:"text-sm text-muted-foreground",children:v.role}),v.linkedIn&&e.jsx("a",{href:v.linkedIn,target:"_blank",rel:"noreferrer",className:"text-sm text-primary underline",children:"LinkedIn profile"})]}),r&&e.jsxs("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity flex gap-2",children:[e.jsx(T,{variant:"outline",size:"sm",onClick:()=>m(v),children:"Edit"}),e.jsx(T,{variant:"destructive",size:"sm",onClick:()=>p(v.id??null),children:"Delete"})]})]})},v.id))})})]}),e.jsx(iG,{open:o,onClose:()=>l(!1),onSave:f,existingPerson:d}),e.jsx(jc,{open:!!u,onOpenChange:()=>p(null),children:e.jsxs(zo,{children:[e.jsxs(Eo,{children:[e.jsx(Oo,{children:"Delete this team member?"}),e.jsx(Ho,{children:"This action cannot be undone and will remove the member from your list."})]}),e.jsxs(Fo,{children:[e.jsx(Bo,{children:"Cancel"}),e.jsx(Vo,{onClick:x,children:"Delete"})]})]})})]})},oG=({open:t,onClose:a,onSave:n,existingProduct:r})=>{const[s,i]=M.useState({name:"",category:"",description:"",url:""});M.useEffect(()=>{i(r?{id:r.id,name:r.name,category:r.category,description:r.description,url:r.url??""}:{name:"",category:"",description:"",url:""})},[r,t]);const o=(d,h)=>i(u=>({...u,[d]:h})),l=()=>{n({...s,id:(r==null?void 0:r.id)??s.id??`product-${Date.now()}`}),i({name:"",category:"",description:"",url:""}),a()};return e.jsx(St,{open:t,onOpenChange:a,children:e.jsxs(xt,{children:[e.jsx(st,{children:r?"Edit Product":"Add Product"}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{children:[e.jsx(O,{children:"Name"}),e.jsx(de,{value:s.name,onChange:d=>o("name",d.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Category"}),e.jsx(de,{value:s.category,onChange:d=>o("category",d.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Description"}),e.jsx(Et,{rows:4,value:s.description,onChange:d=>o("description",d.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"URL"}),e.jsx(de,{type:"url",value:s.url,onChange:d=>o("url",d.target.value)})]}),e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsx(T,{variant:"outline",onClick:a,children:"Cancel"}),e.jsx(T,{onClick:l,children:"Save"})]})]})]})})},lT=({company:t,onUpdate:a,isSaving:n=!1,canEdit:r=!1})=>{const[s,i]=M.useState({products:t.productsAndServices.map((v,k)=>({id:`product-${k}`,...v}))}),[o,l]=M.useState(!1),[d,h]=M.useState(null),[u,p]=M.useState(null),y=()=>{a({type:"products",payload:{products:s.products}})},m=v=>{h(v),l(!0)},x=()=>{u&&(i(v=>({products:v.products.filter(k=>k.id!==u)})),p(null))},f=v=>{i(k=>{const w=k.products.findIndex(b=>b.id===v.id);if(w>=0){const b=[...k.products];return b[w]={...b[w],...v},{products:b}}return{products:[...k.products,v]}})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"Products & Services"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Showcase the offerings that define your company."})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[r&&e.jsxs(T,{variant:"outline",onClick:()=>{h(null),l(!0)},children:[e.jsx(la,{className:"mr-2 h-4 w-4"}),"Add product"]}),r&&e.jsx(T,{onClick:y,disabled:n,children:n?e.jsxs(e.Fragment,{children:[e.jsx(at,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):"Save Changes"})]})]}),e.jsxs(Q,{children:[e.jsxs(ce,{children:[e.jsx(ue,{children:"Product catalog"}),e.jsx(Se,{children:"Update categories, descriptions, and links."})]}),e.jsx(ee,{className:"space-y-4",children:s.products.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:"No products added yet."}):e.jsx("div",{className:"space-y-4",children:s.products.map(v=>e.jsx("div",{className:"p-4 border rounded-lg space-y-2 relative group",children:e.jsxs("div",{className:"flex justify-between items-start gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h4",{className:"font-semibold",children:v.name}),v.category&&e.jsx(he,{variant:"secondary",children:v.category}),v.description&&e.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:v.description})]}),r&&e.jsxs("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity flex gap-2",children:[e.jsx(T,{variant:"outline",size:"sm",onClick:()=>m(v),children:"Edit"}),e.jsx(T,{variant:"destructive",size:"sm",onClick:()=>p(v.id??null),children:"Delete"})]})]})},v.id))})})]}),e.jsx(oG,{open:o,onClose:()=>l(!1),onSave:f,existingProduct:d}),e.jsx(jc,{open:!!u,onOpenChange:()=>p(null),children:e.jsxs(zo,{children:[e.jsxs(Eo,{children:[e.jsx(Oo,{children:"Delete this product?"}),e.jsx(Ho,{children:"This action cannot be undone and will remove the product from your catalog."})]}),e.jsxs(Fo,{children:[e.jsx(Bo,{children:"Cancel"}),e.jsx(Vo,{onClick:x,children:"Delete"})]})]})})]})};function cG(t,a,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t==null||t(s),n===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}function LL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function lG(...t){return a=>{let n=!1;const r=t.map(s=>{const i=LL(s,a);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():LL(t[s],null)}}}}function dT(...t){return g.useCallback(lG(...t),t)}function dG(t,a=[]){let n=[];function r(i,o){const l=g.createContext(o),d=n.length;n=[...n,o];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=n.map(o=>g.createContext(o));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[r,hG(s,...a)]}function hG(...t){const a=t[0];if(t.length===1)return a;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:o}),[o])}};return n.scopeName=a.scopeName,n}var uG=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},pG=g[" useInsertionEffect ".trim().toString()]||uG;function mG({prop:t,defaultProp:a,onChange:n=()=>{},caller:r}){const[s,i,o]=yG({defaultProp:a,onChange:n}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,r])}const h=g.useCallback(u=>{var p;if(l){const y=fG(u)?u(t):u;y!==t&&((p=o.current)==null||p.call(o,y))}else i(u)},[l,t,i,o]);return[d,h]}function yG({defaultProp:t,onChange:a}){const[n,r]=g.useState(t),s=g.useRef(n),i=g.useRef(a);return pG(()=>{i.current=a},[a]),g.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function fG(t){return typeof t=="function"}var xG=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],hT=xG.reduce((t,a)=>{const n=Ye(`Primitive.${a}`),r=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{}),g9="Switch",[gG,uZ]=dG(g9),[kG,vG]=gG(g9),uT=g.forwardRef((t,a)=>{const{__scopeSwitch:n,name:r,checked:s,defaultChecked:i,required:o,disabled:l,value:d="on",onCheckedChange:h,form:u,...p}=t,[y,m]=g.useState(null),x=dT(a,b=>m(b)),f=g.useRef(!1),v=y?u||!!y.closest("form"):!0,[k,w]=mG({prop:s,defaultProp:i??!1,onChange:h,caller:g9});return e.jsxs(kG,{scope:n,checked:k,disabled:l,children:[e.jsx(hT.button,{type:"button",role:"switch","aria-checked":k,"aria-required":o,"data-state":fT(k),"data-disabled":l?"":void 0,disabled:l,value:d,...p,ref:x,onClick:cG(t.onClick,b=>{w(C=>!C),v&&(f.current=b.isPropagationStopped(),f.current||b.stopPropagation())})}),v&&e.jsx(yT,{control:y,bubbles:!f.current,name:r,value:d,checked:k,required:o,disabled:l,form:u,style:{transform:"translateX(-100%)"}})]})});uT.displayName=g9;var pT="SwitchThumb",mT=g.forwardRef((t,a)=>{const{__scopeSwitch:n,...r}=t,s=vG(pT,n);return e.jsx(hT.span,{"data-state":fT(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:a})});mT.displayName=pT;var wG="SwitchBubbleInput",yT=g.forwardRef(({__scopeSwitch:t,control:a,checked:n,bubbles:r=!0,...s},i)=>{const o=g.useRef(null),l=dT(o,i),d=RS(n),h=TS(a);return g.useEffect(()=>{const u=o.current;if(!u)return;const p=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(p,"checked").set;if(d!==n&&m){const x=new Event("click",{bubbles:r});m.call(u,n),u.dispatchEvent(x)}},[d,n,r]),e.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...s,tabIndex:-1,ref:l,style:{...s.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});yT.displayName=wG;function fT(t){return t?"checked":"unchecked"}var xT=uT,bG=mT;const ut=g.forwardRef(({className:t,...a},n)=>e.jsx(xT,{className:ye("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",t),...a,ref:n,children:e.jsx(bG,{className:ye("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));ut.displayName=xT.displayName;const gT=({company:t,onUpdate:a,isSaving:n=!1,canEdit:r=!1})=>{const s={visibility:t.claimedStatus==="claimed",notifications:{jobAlerts:!0,newsAlerts:!0,eventAlerts:!1},integrations:{slackEnabled:!1,webhookUrl:""},team:t.people.members.map((x,f)=>({id:`team-${f}`,name:x.name,role:x.title}))},i=t.settings,[o,l]=M.useState({...s,...i,notifications:{...s.notifications,...i==null?void 0:i.notifications},integrations:{...s.integrations,...i==null?void 0:i.integrations},team:(i==null?void 0:i.team)??s.team}),d=()=>{a({type:"settings",payload:o})},h=x=>{l(f=>({...f,notifications:{...f.notifications,[x]:!f.notifications[x]}}))},u=()=>{l(x=>({...x,integrations:{...x.integrations,slackEnabled:!x.integrations.slackEnabled}}))},p=(x,f)=>{l(v=>({...v,team:v.team.map(k=>k.id===x?{...k,role:f}:k)}))},y=()=>{l(x=>({...x,team:[...x.team,{id:`team-${Date.now()}`,name:"New member",role:"Contributor"}]}))},m=x=>{l(f=>({...f,team:f.team.filter(v=>v.id!==x)}))};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"Settings"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Control visibility, notifications, and team roles."})]}),r&&e.jsx(T,{onClick:d,disabled:n,children:n?e.jsxs(e.Fragment,{children:[e.jsx(at,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):"Save Changes"})]}),e.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[e.jsxs(Q,{children:[e.jsxs(ce,{children:[e.jsx(ue,{children:"Visibility & notifications"}),e.jsx(Se,{children:"Adjust how your company appears and who gets notified."})]}),e.jsxs(ee,{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(O,{children:"Public profile"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Show your company in the directory."})]}),e.jsx(ut,{checked:o.visibility,onCheckedChange:()=>r&&l(x=>({...x,visibility:!x.visibility})),disabled:!r})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(O,{children:"Job alerts"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Notify recruiters about new applicants."})]}),e.jsx(ut,{checked:o.notifications.jobAlerts,onCheckedChange:()=>r&&h("jobAlerts"),disabled:!r})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(O,{children:"News alerts"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Send weekly press mention updates."})]}),e.jsx(ut,{checked:o.notifications.newsAlerts,onCheckedChange:()=>r&&h("newsAlerts"),disabled:!r})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(O,{children:"Event alerts"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Notify teams about upcoming events."})]}),e.jsx(ut,{checked:o.notifications.eventAlerts,onCheckedChange:()=>r&&h("eventAlerts"),disabled:!r})]})]})]}),e.jsxs(Q,{children:[e.jsxs(ce,{children:[e.jsx(ue,{children:"Integrations"}),e.jsx(Se,{children:"Connect your workspace tools."})]}),e.jsxs(ee,{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(O,{children:"Slack notifications"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Send updates to a Slack channel."})]}),e.jsx(ut,{checked:o.integrations.slackEnabled,onCheckedChange:()=>r&&u(),disabled:!r})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"webhookUrl",children:"Webhook URL"}),r?e.jsx(de,{id:"webhookUrl",value:o.integrations.webhookUrl,onChange:x=>l(f=>({...f,integrations:{...f.integrations,webhookUrl:x.target.value}}))}):e.jsx("p",{className:"text-sm text-muted-foreground",children:o.integrations.webhookUrl||"No webhook configured"})]})]})]})]}),e.jsxs(Q,{children:[e.jsxs(ce,{className:"flex flex-col gap-2 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{children:[e.jsx(ue,{children:"Team roles"}),e.jsx(Se,{children:"Assign roles for company administrators."})]}),r&&e.jsxs(T,{variant:"outline",onClick:y,children:[e.jsx(la,{className:"mr-2 h-4 w-4"}),"Add member"]})]}),e.jsx(ee,{className:"space-y-4",children:o.team.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:"No team members assigned."}):o.team.map(x=>e.jsxs("div",{className:"flex flex-col gap-2 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:x.name}),e.jsx("p",{className:"text-sm text-muted-foreground",children:x.role})]}),r&&e.jsxs("div",{className:"flex gap-2 items-center",children:[e.jsx(de,{className:"w-48",value:x.role,onChange:f=>p(x.id,f.target.value)}),e.jsx(T,{variant:"ghost",size:"icon",onClick:()=>m(x.id),children:e.jsx(bo,{className:"h-4 w-4"})})]})]},x.id))})]})]})},MG=["Operator","Game Provider","Platform Provider","Affiliate","Payments","KYC/AML","Marketing","Hosting/Infrastructure","Legal/Compliance","Recruitment"],jG=g.createContext(null),CG={overview:jn,products:rt,people:mt,jobs:Ze,candidates:Mo,news:Mo,events:fo,settings:vo},SG={overview:"Overview",products:"Products",people:"People",jobs:"Jobs",events:"Events",news:"News",candidates:"Candidates",settings:"Settings"},NG={canViewOverview:"Overview",canManageProducts:"Products",canManagePeople:"People",canManageJobs:"Jobs",canManageEvents:"Events",canManageNews:"News",canManageCandidates:"Candidates",canManageSettings:"Settings"},LG={overview:"canViewOverview",products:"canManageProducts",people:"canManagePeople",jobs:"canManageJobs",events:"canManageEvents",news:"canManageNews",candidates:"canManageCandidates",settings:"canManageSettings"},IG=["overview","products","people","jobs","events","news","candidates","settings"],AG=({company:t,companyName:a,companySlug:n,activeTab:r,visibleTabs:s,onTabChange:i,role:o,permissions:l,summaryStats:d,onUpdate:h,isSaving:u})=>{const p=a??t.name,y=n??t.slug,m=o??"admin",x=s??IG,f=g.useMemo(()=>{var A,D,H;if(d)return d;const q=Array.isArray(t.jobs.openRoles)?t.jobs.openRoles.length:t.jobs.openRoles,_=(((A=t.trustAndCompliance.licenses)==null?void 0:A.length)??0)+(((D=t.trustAndCompliance.certifications)==null?void 0:D.length)??0)+(((H=t.trustAndCompliance.awards)==null?void 0:H.length)??0);return[{title:"Open roles",value:q,description:"Live listings",icon:Ze},{title:"Team members",value:t.people.members.length,description:"Listed people",icon:mt},{title:"Trust signals",value:_,description:"Licenses & awards",icon:rc}]},[t,d]),[v,k]=g.useState(()=>r??x[0]??"overview"),w=r??v,b=Object.entries(NG).filter(([q])=>!!l[q]),C=g.useMemo(()=>x.filter(q=>{const _=LG[q];return l[_]!==!1}),[l,x]),j=C.includes(w),I=g.useCallback(q=>{i==null||i(q),r===void 0&&k(q)},[r,i]),N=g.useCallback(q=>h==null?void 0:h(q),[h]);g.useEffect(()=>{!j&&C.length>0&&I(C[0])},[I,j,C]);const S=g.useMemo(()=>C.map(q=>({value:q,label:SG[q],icon:CG[q]})),[C]),L=()=>{switch(w){case"overview":return e.jsx(oT,{company:t,onUpdate:N,isSaving:u,canEdit:l.canViewOverview});case"products":return e.jsx(lT,{company:t,onUpdate:N,isSaving:u,canEdit:l.canManageProducts});case"people":return e.jsx(cT,{company:t,onUpdate:N,isSaving:u,canEdit:l.canManagePeople});case"jobs":return e.jsx(sT,{company:t,onUpdate:N,isSaving:u,canEdit:l.canManageJobs});case"events":return e.jsx(rT,{company:t,onUpdate:N,isSaving:u,canEdit:l.canManageEvents});case"news":return e.jsx(iT,{company:t,onUpdate:N,isSaving:u,canEdit:l.canManageNews});case"candidates":return e.jsx(zR,{company:t,onUpdate:N,isSaving:u,canEdit:l.canManageCandidates});case"settings":return e.jsx(gT,{company:t,onUpdate:N,isSaving:u,canEdit:l.canManageSettings});default:return null}};return e.jsxs("div",{className:"flex flex-col gap-6",children:[e.jsx(RR,{companyName:p,isAdminView:!0,role:m,enabledPermissions:b,overview:t.overview,classification:t.classification,companyType:MG[0],companyId:y,companySlug:y,claimedStatus:"claimed",signalsAndInsights:t.signalsAndInsights,openRolesCount:0,trustScore:0}),f.length>0?e.jsx("section",{className:"py-6",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsx(LU,{stats:f})})}):null,e.jsx("section",{className:"py-6",children:e.jsx("div",{className:"container mx-auto px-4",children:C.length>0?e.jsxs(nn,{value:w,onValueChange:q=>I(q),children:[e.jsx(TR,{items:S}),j?e.jsx(je,{value:w,className:"mt-6",children:e.jsx(jG.Provider,{value:{onUpdate:N,isSaving:u,permissions:l},children:e.jsx("div",{className:"rounded-2xl border bg-background p-6 shadow-sm",children:L()})})}):null]}):null})})]})},PG=({companyName:t,companySlug:a,open:n,onOpenChange:r,onSave:s})=>{const[i,o]=M.useState({companyName:t,companySlug:a,shortDescription:"",website:""}),l=()=>{s==null||s(i),r(!1)};return e.jsx(St,{open:n,onOpenChange:r,children:e.jsxs(xt,{className:"sm:max-w-[520px]",children:[e.jsxs(da,{children:[e.jsx(st,{children:"Edit company profile"}),e.jsx(Tn,{children:"Update company details for admins with profile permissions. This dialog is layout-only and does not perform any API calls."})]}),e.jsxs("div",{className:"grid gap-4 py-2",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(O,{htmlFor:"admin-company-name",children:"Company name"}),e.jsx(de,{id:"admin-company-name",value:i.companyName,onChange:d=>o(h=>({...h,companyName:d.target.value}))})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(O,{htmlFor:"admin-company-slug",children:"Company slug"}),e.jsx(de,{id:"admin-company-slug",value:i.companySlug,onChange:d=>o(h=>({...h,companySlug:d.target.value}))})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(O,{htmlFor:"admin-company-description",children:"Short description"}),e.jsx(Et,{id:"admin-company-description",rows:4,value:i.shortDescription,onChange:d=>o(h=>({...h,shortDescription:d.target.value}))})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(O,{htmlFor:"admin-company-website",children:"Website"}),e.jsx(de,{id:"admin-company-website",value:i.website,onChange:d=>o(h=>({...h,website:d.target.value}))})]})]}),e.jsxs(Zt,{children:[e.jsx(T,{variant:"outline",onClick:()=>r(!1),children:"Cancel"}),e.jsx(T,{variant:"accent",onClick:l,children:"Save changes"})]})]})})},_G=(t,a)=>t[a]===!0,RG=t=>Object.entries(t).filter(([a,n])=>n===!0).map(([a])=>a);var EC={exports:{}},eN={};function TG(t){return t&&t.__esModule?t:{default:t}}eN._=TG;var kT={};function vT(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,n=new WeakMap;return(vT=function(r){return r?n:a})(t)}function DG(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=vT(a);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)){var o=s?Object.getOwnPropertyDescriptor(t,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=t[i]}return r.default=t,n&&n.set(t,r),r}kT._=DG;var eC={},IL;function qG(){return IL||(IL=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return r}});const r=eN._(M).default.createContext({});process.env.NODE_ENV!=="production"&&(r.displayName="HeadManagerContext")}(eC)),eC}var Fl={exports:{}},AL;function zG(){return AL||(AL=1,function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"setAttributesFromProps",{enumerable:!0,get:function(){return i}});const n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},r=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function s(o){return["async","defer","noModule"].includes(o)}function i(o,l){for(const[d,h]of Object.entries(l)){if(!l.hasOwnProperty(d)||r.includes(d)||h===void 0)continue;const u=n[d]||d.toLowerCase();o.tagName==="SCRIPT"&&s(u)?o[u]=!!h:o.setAttribute(u,String(h)),(h===!1||o.tagName==="SCRIPT"&&s(u)&&(!h||h==="false"))&&(o.setAttribute(u,""),o.removeAttribute(u))}}(typeof a.default=="function"||typeof a.default=="object"&&a.default!==null)&&typeof a.default.__esModule>"u"&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)}(Fl,Fl.exports)),Fl.exports}var Ol={exports:{}},PL;function EG(){return PL||(PL=1,function(t,a){Object.defineProperty(a,"__esModule",{value:!0});function n(i,o){for(var l in o)Object.defineProperty(i,l,{enumerable:!0,get:o[l]})}n(a,{cancelIdleCallback:function(){return s},requestIdleCallback:function(){return r}});const r=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(i){let o=Date.now();return self.setTimeout(function(){i({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-o))}})},1)},s=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(i){return clearTimeout(i)};(typeof a.default=="function"||typeof a.default=="object"&&a.default!==null)&&typeof a.default.__esModule>"u"&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)}(Ol,Ol.exports)),Ol.exports}(function(t,a){"use client";Object.defineProperty(a,"__esModule",{value:!0});function n(j,I){for(var N in I)Object.defineProperty(j,N,{enumerable:!0,get:I[N]})}n(a,{default:function(){return C},handleClientScriptLoad:function(){return f},initScriptLoader:function(){return w}});const r=eN,s=kT,i=e,o=r._(FC),l=s._(M),d=qG(),h=zG(),u=EG(),p=new Map,y=new Set,m=j=>{if(o.default.preinit){j.forEach(I=>{o.default.preinit(I,{as:"style"})});return}if(typeof window<"u"){let I=document.head;j.forEach(N=>{let S=document.createElement("link");S.type="text/css",S.rel="stylesheet",S.href=N,I.appendChild(S)})}},x=j=>{const{src:I,id:N,onLoad:S=()=>{},onReady:L=null,dangerouslySetInnerHTML:q,children:_="",strategy:A="afterInteractive",onError:D,stylesheets:H}=j,G=N||I;if(G&&y.has(G))return;if(p.has(I)){y.add(G),p.get(I).then(S,D);return}const V=()=>{L&&L(),y.add(G)},$=document.createElement("script"),F=new Promise((re,K)=>{$.addEventListener("load",function(X){re(),S&&S.call(this,X),V()}),$.addEventListener("error",function(X){K(X)})}).catch(function(re){D&&D(re)});q?($.innerHTML=q.__html||"",V()):_?($.textContent=typeof _=="string"?_:Array.isArray(_)?_.join(""):"",V()):I&&($.src=I,p.set(I,F)),(0,h.setAttributesFromProps)($,j),A==="worker"&&$.setAttribute("type","text/partytown"),$.setAttribute("data-nscript",A),H&&m(H),document.body.appendChild($)};function f(j){const{strategy:I="afterInteractive"}=j;I==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>x(j))}):x(j)}function v(j){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>x(j)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>x(j))})}function k(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(I=>{const N=I.id||I.getAttribute("src");y.add(N)})}function w(j){j.forEach(f),k()}function b(j){const{id:I,src:N="",onLoad:S=()=>{},onReady:L=null,strategy:q="afterInteractive",onError:_,stylesheets:A,...D}=j,{updateScripts:H,scripts:G,getIsSsr:V,appDir:$,nonce:F}=(0,l.useContext)(d.HeadManagerContext),re=(0,l.useRef)(!1);(0,l.useEffect)(()=>{const X=I||N;re.current||(L&&X&&y.has(X)&&L(),re.current=!0)},[L,I,N]);const K=(0,l.useRef)(!1);if((0,l.useEffect)(()=>{K.current||(q==="afterInteractive"?x(j):q==="lazyOnload"&&v(j),K.current=!0)},[j,q]),(q==="beforeInteractive"||q==="worker")&&(H?(G[q]=(G[q]||[]).concat([{id:I,src:N,onLoad:S,onReady:L,onError:_,...D}]),H(G)):V&&V()?y.add(I||N):V&&!V()&&x(j)),$){if(A&&A.forEach(X=>{o.default.preinit(X,{as:"style"})}),q==="beforeInteractive")return N?(o.default.preload(N,D.integrity?{as:"script",integrity:D.integrity,nonce:F,crossOrigin:D.crossOrigin}:{as:"script",nonce:F,crossOrigin:D.crossOrigin}),(0,i.jsx)("script",{nonce:F,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([N,{...D,id:I}])+")"}})):(D.dangerouslySetInnerHTML&&(D.children=D.dangerouslySetInnerHTML.__html,delete D.dangerouslySetInnerHTML),(0,i.jsx)("script",{nonce:F,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...D,id:I}])+")"}}));q==="afterInteractive"&&N&&o.default.preload(N,D.integrity?{as:"script",integrity:D.integrity,nonce:F,crossOrigin:D.crossOrigin}:{as:"script",nonce:F,crossOrigin:D.crossOrigin})}return null}Object.defineProperty(b,"__nextScript",{value:!0});const C=b;(typeof a.default=="function"||typeof a.default=="object"&&a.default!==null)&&typeof a.default.__esModule>"u"&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)})(EC,EC.exports);var FG=EC.exports,OG=FG;const HG=BT(OG),VG=`
7831
+ For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return g.useEffect(()=>{var r;document.getElementById((r=t.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(a)},[a,t]),null},QU=OR,eG=HR,YR=VR,KR=BR,QR=ZR,eT=XR,tT=UR,aT=WR;const jc=QU,tG=eG,nT=g.forwardRef(({className:t,...a},n)=>e.jsx(YR,{className:fe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...a,ref:n}));nT.displayName=YR.displayName;const zo=g.forwardRef(({className:t,...a},n)=>e.jsxs(tG,{children:[e.jsx(nT,{}),e.jsx(KR,{ref:n,className:fe("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...a})]}));zo.displayName=KR.displayName;const Eo=({className:t,...a})=>e.jsx("div",{className:fe("flex flex-col space-y-2 text-center sm:text-left",t),...a});Eo.displayName="AlertDialogHeader";const Fo=({className:t,...a})=>e.jsx("div",{className:fe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a});Fo.displayName="AlertDialogFooter";const Oo=g.forwardRef(({className:t,...a},n)=>e.jsx(tT,{ref:n,className:fe("text-lg font-semibold",t),...a}));Oo.displayName=tT.displayName;const Ho=g.forwardRef(({className:t,...a},n)=>e.jsx(aT,{ref:n,className:fe("text-sm text-muted-foreground",t),...a}));Ho.displayName=aT.displayName;const Vo=g.forwardRef(({className:t,...a},n)=>e.jsx(QR,{ref:n,className:fe(HC(),t),...a}));Vo.displayName=QR.displayName;const Bo=g.forwardRef(({className:t,...a},n)=>e.jsx(eT,{ref:n,className:fe(HC({variant:"outline"}),"mt-2 sm:mt-0",t),...a}));Bo.displayName=eT.displayName;const aG=({open:t,onClose:a,onSave:n,existingEvent:r})=>{const[s,i]=M.useState({title:"",date:"",location:"",description:"",url:""});M.useEffect(()=>{i(r?{id:r.id,title:r.title,date:r.date,location:r.location,description:r.description??"",url:r.url??""}:{title:"",date:"",location:"",description:"",url:""})},[r,t]);const o=(d,h)=>i(u=>({...u,[d]:h})),l=()=>{n({...s,id:(r==null?void 0:r.id)??s.id??`event-${Date.now()}`}),i({title:"",date:"",location:"",description:"",url:""}),a()};return e.jsx(St,{open:t,onOpenChange:a,children:e.jsxs(xt,{children:[e.jsx(st,{children:r?"Edit Event":"Add Event"}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{children:[e.jsx(O,{children:"Title"}),e.jsx(de,{value:s.title,onChange:d=>o("title",d.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Date"}),e.jsx(de,{type:"date",value:s.date,onChange:d=>o("date",d.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Location"}),e.jsx(de,{value:s.location,onChange:d=>o("location",d.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Description"}),e.jsx(Et,{rows:4,value:s.description,onChange:d=>o("description",d.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Event URL"}),e.jsx(de,{type:"url",value:s.url,onChange:d=>o("url",d.target.value)})]}),e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsx(T,{variant:"outline",onClick:a,children:"Cancel"}),e.jsx(T,{onClick:l,children:"Save"})]})]})]})})},nG=(t,a)=>"eventName"in t?{id:`event-${a}`,title:t.eventName,date:t.date,location:t.location,description:"",url:""}:{id:`event-${a}`,title:t.name,date:t.startDate,location:t.location,description:"",url:""},rT=({company:t,onUpdate:a,isSaving:n=!1,canEdit:r=!1})=>{const[s,i]=M.useState({events:t.events.upcomingEvents.map(nG)}),[o,l]=M.useState(!1),[d,h]=M.useState(null),[u,p]=M.useState(null),y=()=>{a({type:"events",payload:{events:s.events}})},m=v=>{h(v),l(!0)},x=()=>{u&&(i(v=>({events:v.events.filter(k=>k.id!==u)})),p(null))},f=v=>{i(k=>{const w=k.events.findIndex(b=>b.id===v.id);if(w>=0){const b=[...k.events];return b[w]={...b[w],...v},{events:b}}return{events:[...k.events,v]}})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"Events"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Keep your event calendar current."})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[r&&e.jsxs(T,{variant:"outline",onClick:()=>{h(null),l(!0)},children:[e.jsx(la,{className:"mr-2 h-4 w-4"}),"Add event"]}),r&&e.jsx(T,{onClick:y,disabled:n,children:n?e.jsxs(e.Fragment,{children:[e.jsx(at,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):"Save Changes"})]})]}),e.jsxs(Q,{children:[e.jsxs(le,{children:[e.jsx(ue,{children:"Upcoming events"}),e.jsx(Se,{children:"Highlight events, meetups, and conferences."})]}),e.jsx(ee,{className:"space-y-4",children:s.events.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:"No events scheduled yet."}):e.jsx("div",{className:"space-y-4",children:s.events.map(v=>e.jsx("div",{className:"p-4 border rounded-lg space-y-2 relative group",children:e.jsxs("div",{className:"flex justify-between items-start gap-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("h4",{className:"font-semibold",children:v.title}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[v.date||"Date TBD"," • ",v.location||"Location TBD"]}),v.description&&e.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:v.description})]}),r&&e.jsxs("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity flex gap-2",children:[e.jsx(T,{variant:"outline",size:"sm",onClick:()=>m(v),children:"Edit"}),e.jsx(T,{variant:"destructive",size:"sm",onClick:()=>p(v.id??null),children:"Delete"})]})]})},v.id))})})]}),e.jsx(aG,{open:o,onClose:()=>l(!1),onSave:f,existingEvent:d}),e.jsx(jc,{open:!!u,onOpenChange:()=>p(null),children:e.jsxs(zo,{children:[e.jsxs(Eo,{children:[e.jsx(Oo,{children:"Delete this event?"}),e.jsx(Ho,{children:"This action cannot be undone and will remove the event from the calendar."})]}),e.jsxs(Fo,{children:[e.jsx(Bo,{children:"Cancel"}),e.jsx(Vo,{onClick:x,children:"Delete"})]})]})})]})},rG=({open:t,onClose:a,onSave:n,existingJob:r})=>{const[s,i]=M.useState({title:"",location:"",employmentType:"",description:"",requirements:"",status:"Draft"});M.useEffect(()=>{i(r?{id:r.id,title:r.title,location:r.location,employmentType:r.employmentType,description:r.description??"",requirements:r.requirements??"",status:r.status??"Draft"}:{title:"",location:"",employmentType:"",description:"",requirements:"",status:"Draft"})},[r,t]);const o=(d,h)=>i(u=>({...u,[d]:h})),l=()=>{n({...s,id:(r==null?void 0:r.id)??s.id??`job-${Date.now()}`,status:s.status??"Draft"}),i({title:"",location:"",employmentType:"",description:"",requirements:"",status:"Draft"}),a()};return e.jsx(St,{open:t,onOpenChange:a,children:e.jsxs(xt,{children:[e.jsx(st,{children:r?"Edit Job":"Add Job"}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{children:[e.jsx(O,{children:"Title"}),e.jsx(de,{value:s.title,onChange:d=>o("title",d.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Location"}),e.jsx(de,{value:s.location,onChange:d=>o("location",d.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Employment Type"}),e.jsx(de,{value:s.employmentType,onChange:d=>o("employmentType",d.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Description"}),e.jsx(Et,{rows:4,value:s.description,onChange:d=>o("description",d.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Requirements"}),e.jsx(Et,{rows:4,value:s.requirements,onChange:d=>o("requirements",d.target.value)})]}),e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsx(T,{variant:"outline",onClick:a,children:"Cancel"}),e.jsx(T,{onClick:l,children:"Save"})]})]})]})})},sT=({company:t,onUpdate:a,isSaving:n=!1,canEdit:r=!1})=>{const s=Array.isArray(t.jobs.openRoles)?t.jobs.openRoles.map((w,b)=>({id:`job-${b}`,title:w,location:"",employmentType:"",description:"",requirements:"",status:"Published"})):[],[i,o]=M.useState({jobs:s}),[l,d]=M.useState(!1),[h,u]=M.useState(null),[p,y]=M.useState(null),m=()=>{a({type:"jobs",payload:{jobs:i.jobs}})},x=w=>{u(w),d(!0)},f=()=>{p&&(o(w=>({jobs:w.jobs.filter(b=>b.id!==p)})),y(null))},v=w=>{o(b=>{const C=b.jobs.findIndex(j=>j.id===w.id);if(C>=0){const j=[...b.jobs];return j[C]={...j[C],...w},{jobs:j}}return{jobs:[...b.jobs,w]}})},k=w=>{w&&o(b=>({jobs:b.jobs.map(C=>C.id===w?{...C,status:C.status==="Published"?"Draft":"Published"}:C)}))};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"Jobs"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Publish and manage open roles."})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[r&&e.jsxs(T,{variant:"outline",onClick:()=>{u(null),d(!0)},children:[e.jsx(la,{className:"mr-2 h-4 w-4"}),"Add job"]}),r&&e.jsx(T,{onClick:m,disabled:n,children:n?e.jsxs(e.Fragment,{children:[e.jsx(at,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):"Save Changes"})]})]}),e.jsxs(Q,{children:[e.jsxs(le,{children:[e.jsx(ue,{children:"Open roles"}),e.jsx(Se,{children:"Manage publishing status and job details."})]}),e.jsx(ee,{className:"space-y-4",children:i.jobs.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:"No roles added yet."}):e.jsx("div",{className:"space-y-4",children:i.jobs.map(w=>e.jsx("div",{className:"p-4 border rounded-lg space-y-2 relative group",children:e.jsxs("div",{className:"flex justify-between items-start gap-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("h4",{className:"font-semibold",children:w.title}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[w.location||"Location not specified"," • ",w.employmentType||"Type TBD"]}),e.jsx(he,{variant:w.status==="Published"?"default":"secondary",children:w.status??"Draft"})]}),r&&e.jsxs("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity flex flex-wrap gap-2",children:[e.jsx(T,{variant:"outline",size:"sm",onClick:()=>k(w.id),children:w.status==="Published"?"Unpublish":"Publish"}),e.jsx(T,{variant:"outline",size:"sm",onClick:()=>x(w),children:"Edit"}),e.jsx(T,{variant:"destructive",size:"sm",onClick:()=>y(w.id??null),children:"Delete"})]})]})},w.id))})})]}),e.jsx(rG,{open:l,onClose:()=>d(!1),onSave:v,existingJob:h}),e.jsx(jc,{open:!!p,onOpenChange:()=>y(null),children:e.jsxs(zo,{children:[e.jsxs(Eo,{children:[e.jsx(Oo,{children:"Delete this job?"}),e.jsx(Ho,{children:"This action cannot be undone and will remove the job posting."})]}),e.jsxs(Fo,{children:[e.jsx(Bo,{children:"Cancel"}),e.jsx(Vo,{onClick:f,children:"Delete"})]})]})})]})},sG=(t,a)=>typeof t=="string"?{id:`news-${a}`,title:t,date:"",excerpt:"",status:"Published",content:"",url:""}:{id:`news-${a}`,title:t.title,date:"",excerpt:t.source,status:"Published",content:"",url:t.url},iT=({company:t,onUpdate:a,isSaving:n=!1,canEdit:r=!1})=>{const[s,i]=M.useState({news:t.newsAndMedia.pressMentions.map(sG)}),[o,l]=M.useState(!1),[d,h]=M.useState(null),[u,p]=M.useState(null),[y,m]=M.useState({title:"",date:"",excerpt:"",status:"Draft",content:"",url:""});M.useEffect(()=>{m(d?{id:d.id,title:d.title,date:d.date,excerpt:d.excerpt,status:d.status,content:d.content,url:d.url??""}:{title:"",date:"",excerpt:"",status:"Draft",content:"",url:""})},[d,o]);const x=()=>{a({type:"news",payload:{news:s.news}})},f=b=>{h(b),l(!0)},v=()=>{u&&(i(b=>({news:b.news.filter(C=>C.id!==u)})),p(null))},k=()=>{const b={...y,id:(d==null?void 0:d.id)??y.id??`news-${Date.now()}`};i(C=>{const j=C.news.findIndex(I=>I.id===b.id);if(j>=0){const I=[...C.news];return I[j]=b,{news:I}}return{news:[...C.news,b]}}),l(!1),h(null)},w=b=>{b&&i(C=>({news:C.news.map(j=>j.id===b?{...j,status:j.status==="Published"?"Draft":"Published"}:j)}))};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"News & Media"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Publish announcements and press coverage."})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[r&&e.jsxs(T,{variant:"outline",onClick:()=>{h(null),l(!0)},children:[e.jsx(la,{className:"mr-2 h-4 w-4"}),"Add article"]}),r&&e.jsx(T,{onClick:x,disabled:n,children:n?e.jsxs(e.Fragment,{children:[e.jsx(at,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):"Save Changes"})]})]}),e.jsxs(Q,{children:[e.jsxs(le,{children:[e.jsx(ue,{children:"Latest updates"}),e.jsx(Se,{children:"Manage your press mentions and announcements."})]}),e.jsx(ee,{className:"space-y-4",children:s.news.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:"No news items yet."}):e.jsx("div",{className:"space-y-4",children:s.news.map(b=>e.jsx("div",{className:"p-4 border rounded-lg space-y-2 relative group",children:e.jsxs("div",{className:"flex justify-between items-start gap-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("h4",{className:"font-semibold",children:b.title}),e.jsx("p",{className:"text-sm text-muted-foreground",children:b.date||"Date TBD"}),b.excerpt&&e.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:b.excerpt}),e.jsx(he,{variant:b.status==="Published"?"default":"secondary",children:b.status})]}),r&&e.jsxs("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity flex flex-wrap gap-2",children:[e.jsx(T,{variant:"outline",size:"sm",onClick:()=>w(b.id),children:b.status==="Published"?"Unpublish":"Publish"}),e.jsx(T,{variant:"outline",size:"sm",onClick:()=>f(b),children:"Edit"}),e.jsx(T,{variant:"destructive",size:"sm",onClick:()=>p(b.id??null),children:"Delete"})]})]})},b.id))})})]}),e.jsx(St,{open:o,onOpenChange:l,children:e.jsxs(xt,{children:[e.jsx(st,{children:d?"Edit News":"Add News"}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{children:[e.jsx(O,{children:"Title"}),e.jsx(de,{value:y.title,onChange:b=>m(C=>({...C,title:b.target.value}))})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Date"}),e.jsx(de,{type:"date",value:y.date,onChange:b=>m(C=>({...C,date:b.target.value}))})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Excerpt"}),e.jsx(Et,{rows:3,value:y.excerpt,onChange:b=>m(C=>({...C,excerpt:b.target.value}))})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Content"}),e.jsx(Et,{rows:5,value:y.content,onChange:b=>m(C=>({...C,content:b.target.value}))})]}),e.jsxs("div",{children:[e.jsx(O,{children:"URL"}),e.jsx(de,{type:"url",value:y.url,onChange:b=>m(C=>({...C,url:b.target.value}))})]}),e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsx(T,{variant:"outline",onClick:()=>l(!1),children:"Cancel"}),e.jsx(T,{onClick:k,children:"Save"})]})]})]})}),e.jsx(jc,{open:!!u,onOpenChange:()=>p(null),children:e.jsxs(zo,{children:[e.jsxs(Eo,{children:[e.jsx(Oo,{children:"Delete this news item?"}),e.jsx(Ho,{children:"This action cannot be undone and will remove the news entry."})]}),e.jsxs(Fo,{children:[e.jsx(Bo,{children:"Cancel"}),e.jsx(Vo,{onClick:v,children:"Delete"})]})]})})]})},oT=({company:t,onUpdate:a,isSaving:n=!1,canEdit:r=!1})=>{const[s,i]=M.useState({companyName:t.name,foundedYear:t.overview.foundedYear,website:t.overview.website,employeeRange:t.overview.employeeRange,shortDescription:t.overview.shortDescription,longDescription:t.overview.longDescription??"",headquartersCity:t.overview.headquarters.city,headquartersCountry:t.overview.headquarters.country}),o=(d,h)=>{i(u=>({...u,[d]:h}))},l=()=>{a({type:"overview",payload:s})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"Company Overview"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Manage your company information"})]}),r&&e.jsx(T,{onClick:l,disabled:n,children:n?e.jsxs(e.Fragment,{children:[e.jsx(at,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):"Save Changes"})]}),e.jsxs(Q,{children:[e.jsxs(le,{children:[e.jsx(ue,{children:"Company details"}),e.jsx(Se,{children:"Keep your profile accurate and up to date."})]}),e.jsxs(ee,{className:"grid gap-4 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"companyName",children:"Company Name"}),r?e.jsx(de,{id:"companyName",value:s.companyName,onChange:d=>o("companyName",d.target.value)}):e.jsx("p",{className:"text-sm text-muted-foreground",children:s.companyName})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"foundedYear",children:"Founded Year"}),r?e.jsx(de,{id:"foundedYear",type:"number",value:s.foundedYear,onChange:d=>o("foundedYear",Number(d.target.value))}):e.jsx("p",{className:"text-sm text-muted-foreground",children:s.foundedYear})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"website",children:"Website"}),r?e.jsx(de,{id:"website",type:"url",value:s.website,onChange:d=>o("website",d.target.value)}):e.jsx("p",{className:"text-sm text-muted-foreground",children:s.website})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"employeeRange",children:"Employee Range"}),r?e.jsx(de,{id:"employeeRange",value:s.employeeRange,onChange:d=>o("employeeRange",d.target.value)}):e.jsx("p",{className:"text-sm text-muted-foreground",children:s.employeeRange})]}),e.jsxs("div",{className:"space-y-2 md:col-span-2",children:[e.jsx(O,{htmlFor:"shortDescription",children:"Short Description"}),r?e.jsx(Et,{id:"shortDescription",rows:3,value:s.shortDescription,onChange:d=>o("shortDescription",d.target.value)}):e.jsx("p",{className:"text-sm text-muted-foreground",children:s.shortDescription})]}),e.jsxs("div",{className:"space-y-2 md:col-span-2",children:[e.jsx(O,{htmlFor:"longDescription",children:"Long Description"}),r?e.jsx(Et,{id:"longDescription",rows:6,value:s.longDescription,onChange:d=>o("longDescription",d.target.value)}):e.jsx("p",{className:"text-sm text-muted-foreground",children:s.longDescription})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"headquartersCity",children:"Headquarters City"}),r?e.jsx(de,{id:"headquartersCity",value:s.headquartersCity,onChange:d=>o("headquartersCity",d.target.value)}):e.jsx("p",{className:"text-sm text-muted-foreground",children:s.headquartersCity})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"headquartersCountry",children:"Headquarters Country"}),r?e.jsx(de,{id:"headquartersCountry",value:s.headquartersCountry,onChange:d=>o("headquartersCountry",d.target.value)}):e.jsx("p",{className:"text-sm text-muted-foreground",children:s.headquartersCountry})]})]})]})]})},iG=({open:t,onClose:a,onSave:n,existingPerson:r})=>{const[s,i]=M.useState({name:"",role:"",linkedIn:"",email:""});M.useEffect(()=>{i(r?{id:r.id,name:r.name,role:r.role,linkedIn:r.linkedIn??"",email:r.email??""}:{name:"",role:"",linkedIn:"",email:""})},[r,t]);const o=(d,h)=>i(u=>({...u,[d]:h})),l=()=>{n({...s,id:(r==null?void 0:r.id)??s.id??`person-${Date.now()}`}),i({name:"",role:"",linkedIn:"",email:""}),a()};return e.jsx(St,{open:t,onOpenChange:a,children:e.jsxs(xt,{children:[e.jsx(st,{children:r?"Edit Team Member":"Add Team Member"}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{children:[e.jsx(O,{children:"Name"}),e.jsx(de,{value:s.name,onChange:d=>o("name",d.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Role"}),e.jsx(de,{value:s.role,onChange:d=>o("role",d.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"LinkedIn"}),e.jsx(de,{value:s.linkedIn,onChange:d=>o("linkedIn",d.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Email"}),e.jsx(de,{type:"email",value:s.email,onChange:d=>o("email",d.target.value)})]}),e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsx(T,{variant:"outline",onClick:a,children:"Cancel"}),e.jsx(T,{onClick:l,children:"Save"})]})]})]})})},cT=({company:t,onUpdate:a,isSaving:n=!1,canEdit:r=!1})=>{const[s,i]=M.useState({members:t.people.members.map((v,k)=>({id:`person-${k}`,name:v.name,role:v.title,linkedIn:v.profileUrl??"",email:""}))}),[o,l]=M.useState(!1),[d,h]=M.useState(null),[u,p]=M.useState(null),y=()=>{const v=s.members.map(k=>({name:k.name,title:k.role,profileUrl:k.linkedIn}));a({type:"people",payload:{members:v}})},m=v=>{h(v),l(!0)},x=()=>{u&&(i(v=>({members:v.members.filter(k=>k.id!==u)})),p(null))},f=v=>{i(k=>{const w=k.members.findIndex(b=>b.id===v.id);if(w>=0){const b=[...k.members];return b[w]={...b[w],...v},{members:b}}return{members:[...k.members,v]}})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"People"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Manage your leadership and team members."})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[r&&e.jsxs(T,{variant:"outline",onClick:()=>{h(null),l(!0)},children:[e.jsx(la,{className:"mr-2 h-4 w-4"}),"Add member"]}),r&&e.jsx(T,{onClick:y,disabled:n,children:n?e.jsxs(e.Fragment,{children:[e.jsx(at,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):"Save Changes"})]})]}),e.jsxs(Q,{children:[e.jsxs(le,{children:[e.jsx(ue,{children:"Team directory"}),e.jsx(Se,{children:"Highlight decision makers and team contacts."})]}),e.jsx(ee,{className:"space-y-4",children:s.members.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:"No team members added yet."}):e.jsx("div",{className:"space-y-4",children:s.members.map(v=>e.jsx("div",{className:"p-4 border rounded-lg space-y-2 relative group",children:e.jsxs("div",{className:"flex justify-between items-start gap-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("h4",{className:"font-semibold",children:v.name}),e.jsx("p",{className:"text-sm text-muted-foreground",children:v.role}),v.linkedIn&&e.jsx("a",{href:v.linkedIn,target:"_blank",rel:"noreferrer",className:"text-sm text-primary underline",children:"LinkedIn profile"})]}),r&&e.jsxs("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity flex gap-2",children:[e.jsx(T,{variant:"outline",size:"sm",onClick:()=>m(v),children:"Edit"}),e.jsx(T,{variant:"destructive",size:"sm",onClick:()=>p(v.id??null),children:"Delete"})]})]})},v.id))})})]}),e.jsx(iG,{open:o,onClose:()=>l(!1),onSave:f,existingPerson:d}),e.jsx(jc,{open:!!u,onOpenChange:()=>p(null),children:e.jsxs(zo,{children:[e.jsxs(Eo,{children:[e.jsx(Oo,{children:"Delete this team member?"}),e.jsx(Ho,{children:"This action cannot be undone and will remove the member from your list."})]}),e.jsxs(Fo,{children:[e.jsx(Bo,{children:"Cancel"}),e.jsx(Vo,{onClick:x,children:"Delete"})]})]})})]})},oG=({open:t,onClose:a,onSave:n,existingProduct:r})=>{const[s,i]=M.useState({name:"",category:"",description:"",url:""});M.useEffect(()=>{i(r?{id:r.id,name:r.name,category:r.category,description:r.description,url:r.url??""}:{name:"",category:"",description:"",url:""})},[r,t]);const o=(d,h)=>i(u=>({...u,[d]:h})),l=()=>{n({...s,id:(r==null?void 0:r.id)??s.id??`product-${Date.now()}`}),i({name:"",category:"",description:"",url:""}),a()};return e.jsx(St,{open:t,onOpenChange:a,children:e.jsxs(xt,{children:[e.jsx(st,{children:r?"Edit Product":"Add Product"}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{children:[e.jsx(O,{children:"Name"}),e.jsx(de,{value:s.name,onChange:d=>o("name",d.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Category"}),e.jsx(de,{value:s.category,onChange:d=>o("category",d.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Description"}),e.jsx(Et,{rows:4,value:s.description,onChange:d=>o("description",d.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"URL"}),e.jsx(de,{type:"url",value:s.url,onChange:d=>o("url",d.target.value)})]}),e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsx(T,{variant:"outline",onClick:a,children:"Cancel"}),e.jsx(T,{onClick:l,children:"Save"})]})]})]})})},lT=({company:t,onUpdate:a,isSaving:n=!1,canEdit:r=!1})=>{const[s,i]=M.useState({products:t.productsAndServices.map((v,k)=>({id:`product-${k}`,...v}))}),[o,l]=M.useState(!1),[d,h]=M.useState(null),[u,p]=M.useState(null),y=()=>{a({type:"products",payload:{products:s.products}})},m=v=>{h(v),l(!0)},x=()=>{u&&(i(v=>({products:v.products.filter(k=>k.id!==u)})),p(null))},f=v=>{i(k=>{const w=k.products.findIndex(b=>b.id===v.id);if(w>=0){const b=[...k.products];return b[w]={...b[w],...v},{products:b}}return{products:[...k.products,v]}})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"Products & Services"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Showcase the offerings that define your company."})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[r&&e.jsxs(T,{variant:"outline",onClick:()=>{h(null),l(!0)},children:[e.jsx(la,{className:"mr-2 h-4 w-4"}),"Add product"]}),r&&e.jsx(T,{onClick:y,disabled:n,children:n?e.jsxs(e.Fragment,{children:[e.jsx(at,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):"Save Changes"})]})]}),e.jsxs(Q,{children:[e.jsxs(le,{children:[e.jsx(ue,{children:"Product catalog"}),e.jsx(Se,{children:"Update categories, descriptions, and links."})]}),e.jsx(ee,{className:"space-y-4",children:s.products.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:"No products added yet."}):e.jsx("div",{className:"space-y-4",children:s.products.map(v=>e.jsx("div",{className:"p-4 border rounded-lg space-y-2 relative group",children:e.jsxs("div",{className:"flex justify-between items-start gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h4",{className:"font-semibold",children:v.name}),v.category&&e.jsx(he,{variant:"secondary",children:v.category}),v.description&&e.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:v.description})]}),r&&e.jsxs("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity flex gap-2",children:[e.jsx(T,{variant:"outline",size:"sm",onClick:()=>m(v),children:"Edit"}),e.jsx(T,{variant:"destructive",size:"sm",onClick:()=>p(v.id??null),children:"Delete"})]})]})},v.id))})})]}),e.jsx(oG,{open:o,onClose:()=>l(!1),onSave:f,existingProduct:d}),e.jsx(jc,{open:!!u,onOpenChange:()=>p(null),children:e.jsxs(zo,{children:[e.jsxs(Eo,{children:[e.jsx(Oo,{children:"Delete this product?"}),e.jsx(Ho,{children:"This action cannot be undone and will remove the product from your catalog."})]}),e.jsxs(Fo,{children:[e.jsx(Bo,{children:"Cancel"}),e.jsx(Vo,{onClick:x,children:"Delete"})]})]})})]})};function cG(t,a,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t==null||t(s),n===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}function LL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function lG(...t){return a=>{let n=!1;const r=t.map(s=>{const i=LL(s,a);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():LL(t[s],null)}}}}function dT(...t){return g.useCallback(lG(...t),t)}function dG(t,a=[]){let n=[];function r(i,o){const l=g.createContext(o),d=n.length;n=[...n,o];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=n.map(o=>g.createContext(o));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[r,hG(s,...a)]}function hG(...t){const a=t[0];if(t.length===1)return a;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:o}),[o])}};return n.scopeName=a.scopeName,n}var uG=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},pG=g[" useInsertionEffect ".trim().toString()]||uG;function mG({prop:t,defaultProp:a,onChange:n=()=>{},caller:r}){const[s,i,o]=yG({defaultProp:a,onChange:n}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,r])}const h=g.useCallback(u=>{var p;if(l){const y=fG(u)?u(t):u;y!==t&&((p=o.current)==null||p.call(o,y))}else i(u)},[l,t,i,o]);return[d,h]}function yG({defaultProp:t,onChange:a}){const[n,r]=g.useState(t),s=g.useRef(n),i=g.useRef(a);return pG(()=>{i.current=a},[a]),g.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function fG(t){return typeof t=="function"}var xG=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],hT=xG.reduce((t,a)=>{const n=Ye(`Primitive.${a}`),r=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{}),g9="Switch",[gG,uZ]=dG(g9),[kG,vG]=gG(g9),uT=g.forwardRef((t,a)=>{const{__scopeSwitch:n,name:r,checked:s,defaultChecked:i,required:o,disabled:l,value:d="on",onCheckedChange:h,form:u,...p}=t,[y,m]=g.useState(null),x=dT(a,b=>m(b)),f=g.useRef(!1),v=y?u||!!y.closest("form"):!0,[k,w]=mG({prop:s,defaultProp:i??!1,onChange:h,caller:g9});return e.jsxs(kG,{scope:n,checked:k,disabled:l,children:[e.jsx(hT.button,{type:"button",role:"switch","aria-checked":k,"aria-required":o,"data-state":fT(k),"data-disabled":l?"":void 0,disabled:l,value:d,...p,ref:x,onClick:cG(t.onClick,b=>{w(C=>!C),v&&(f.current=b.isPropagationStopped(),f.current||b.stopPropagation())})}),v&&e.jsx(yT,{control:y,bubbles:!f.current,name:r,value:d,checked:k,required:o,disabled:l,form:u,style:{transform:"translateX(-100%)"}})]})});uT.displayName=g9;var pT="SwitchThumb",mT=g.forwardRef((t,a)=>{const{__scopeSwitch:n,...r}=t,s=vG(pT,n);return e.jsx(hT.span,{"data-state":fT(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:a})});mT.displayName=pT;var wG="SwitchBubbleInput",yT=g.forwardRef(({__scopeSwitch:t,control:a,checked:n,bubbles:r=!0,...s},i)=>{const o=g.useRef(null),l=dT(o,i),d=RS(n),h=TS(a);return g.useEffect(()=>{const u=o.current;if(!u)return;const p=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(p,"checked").set;if(d!==n&&m){const x=new Event("click",{bubbles:r});m.call(u,n),u.dispatchEvent(x)}},[d,n,r]),e.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...s,tabIndex:-1,ref:l,style:{...s.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});yT.displayName=wG;function fT(t){return t?"checked":"unchecked"}var xT=uT,bG=mT;const ut=g.forwardRef(({className:t,...a},n)=>e.jsx(xT,{className:fe("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",t),...a,ref:n,children:e.jsx(bG,{className:fe("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));ut.displayName=xT.displayName;const gT=({company:t,onUpdate:a,isSaving:n=!1,canEdit:r=!1})=>{const s={visibility:t.claimedStatus==="claimed",notifications:{jobAlerts:!0,newsAlerts:!0,eventAlerts:!1},integrations:{slackEnabled:!1,webhookUrl:""},team:t.people.members.map((x,f)=>({id:`team-${f}`,name:x.name,role:x.title}))},i=t.settings,[o,l]=M.useState({...s,...i,notifications:{...s.notifications,...i==null?void 0:i.notifications},integrations:{...s.integrations,...i==null?void 0:i.integrations},team:(i==null?void 0:i.team)??s.team}),d=()=>{a({type:"settings",payload:o})},h=x=>{l(f=>({...f,notifications:{...f.notifications,[x]:!f.notifications[x]}}))},u=()=>{l(x=>({...x,integrations:{...x.integrations,slackEnabled:!x.integrations.slackEnabled}}))},p=(x,f)=>{l(v=>({...v,team:v.team.map(k=>k.id===x?{...k,role:f}:k)}))},y=()=>{l(x=>({...x,team:[...x.team,{id:`team-${Date.now()}`,name:"New member",role:"Contributor"}]}))},m=x=>{l(f=>({...f,team:f.team.filter(v=>v.id!==x)}))};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"Settings"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Control visibility, notifications, and team roles."})]}),r&&e.jsx(T,{onClick:d,disabled:n,children:n?e.jsxs(e.Fragment,{children:[e.jsx(at,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):"Save Changes"})]}),e.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[e.jsxs(Q,{children:[e.jsxs(le,{children:[e.jsx(ue,{children:"Visibility & notifications"}),e.jsx(Se,{children:"Adjust how your company appears and who gets notified."})]}),e.jsxs(ee,{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(O,{children:"Public profile"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Show your company in the directory."})]}),e.jsx(ut,{checked:o.visibility,onCheckedChange:()=>r&&l(x=>({...x,visibility:!x.visibility})),disabled:!r})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(O,{children:"Job alerts"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Notify recruiters about new applicants."})]}),e.jsx(ut,{checked:o.notifications.jobAlerts,onCheckedChange:()=>r&&h("jobAlerts"),disabled:!r})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(O,{children:"News alerts"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Send weekly press mention updates."})]}),e.jsx(ut,{checked:o.notifications.newsAlerts,onCheckedChange:()=>r&&h("newsAlerts"),disabled:!r})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(O,{children:"Event alerts"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Notify teams about upcoming events."})]}),e.jsx(ut,{checked:o.notifications.eventAlerts,onCheckedChange:()=>r&&h("eventAlerts"),disabled:!r})]})]})]}),e.jsxs(Q,{children:[e.jsxs(le,{children:[e.jsx(ue,{children:"Integrations"}),e.jsx(Se,{children:"Connect your workspace tools."})]}),e.jsxs(ee,{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(O,{children:"Slack notifications"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Send updates to a Slack channel."})]}),e.jsx(ut,{checked:o.integrations.slackEnabled,onCheckedChange:()=>r&&u(),disabled:!r})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"webhookUrl",children:"Webhook URL"}),r?e.jsx(de,{id:"webhookUrl",value:o.integrations.webhookUrl,onChange:x=>l(f=>({...f,integrations:{...f.integrations,webhookUrl:x.target.value}}))}):e.jsx("p",{className:"text-sm text-muted-foreground",children:o.integrations.webhookUrl||"No webhook configured"})]})]})]})]}),e.jsxs(Q,{children:[e.jsxs(le,{className:"flex flex-col gap-2 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{children:[e.jsx(ue,{children:"Team roles"}),e.jsx(Se,{children:"Assign roles for company administrators."})]}),r&&e.jsxs(T,{variant:"outline",onClick:y,children:[e.jsx(la,{className:"mr-2 h-4 w-4"}),"Add member"]})]}),e.jsx(ee,{className:"space-y-4",children:o.team.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:"No team members assigned."}):o.team.map(x=>e.jsxs("div",{className:"flex flex-col gap-2 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:x.name}),e.jsx("p",{className:"text-sm text-muted-foreground",children:x.role})]}),r&&e.jsxs("div",{className:"flex gap-2 items-center",children:[e.jsx(de,{className:"w-48",value:x.role,onChange:f=>p(x.id,f.target.value)}),e.jsx(T,{variant:"ghost",size:"icon",onClick:()=>m(x.id),children:e.jsx(bo,{className:"h-4 w-4"})})]})]},x.id))})]})]})},MG=["Operator","Game Provider","Platform Provider","Affiliate","Payments","KYC/AML","Marketing","Hosting/Infrastructure","Legal/Compliance","Recruitment"],jG=g.createContext(null),CG={overview:jn,products:rt,people:mt,jobs:Ze,candidates:Mo,news:Mo,events:fo,settings:vo},SG={overview:"Overview",products:"Products",people:"People",jobs:"Jobs",events:"Events",news:"News",candidates:"Candidates",settings:"Settings"},NG={canViewOverview:"Overview",canManageProducts:"Products",canManagePeople:"People",canManageJobs:"Jobs",canManageEvents:"Events",canManageNews:"News",canManageCandidates:"Candidates",canManageSettings:"Settings"},LG={overview:"canViewOverview",products:"canManageProducts",people:"canManagePeople",jobs:"canManageJobs",events:"canManageEvents",news:"canManageNews",candidates:"canManageCandidates",settings:"canManageSettings"},IG=["overview","products","people","jobs","events","news","candidates","settings"],AG=({company:t,companyName:a,companySlug:n,activeTab:r,visibleTabs:s,onTabChange:i,role:o,permissions:l,summaryStats:d,onUpdate:h,isSaving:u})=>{const p=a??t.name,y=n??t.slug,m=o??"admin",x=s??IG,f=g.useMemo(()=>{var A,D,H;if(d)return d;const q=Array.isArray(t.jobs.openRoles)?t.jobs.openRoles.length:t.jobs.openRoles,_=(((A=t.trustAndCompliance.licenses)==null?void 0:A.length)??0)+(((D=t.trustAndCompliance.certifications)==null?void 0:D.length)??0)+(((H=t.trustAndCompliance.awards)==null?void 0:H.length)??0);return[{title:"Open roles",value:q,description:"Live listings",icon:Ze},{title:"Team members",value:t.people.members.length,description:"Listed people",icon:mt},{title:"Trust signals",value:_,description:"Licenses & awards",icon:rc}]},[t,d]),[v,k]=g.useState(()=>r??x[0]??"overview"),w=r??v,b=Object.entries(NG).filter(([q])=>!!l[q]),C=g.useMemo(()=>x.filter(q=>{const _=LG[q];return l[_]!==!1}),[l,x]),j=C.includes(w),I=g.useCallback(q=>{i==null||i(q),r===void 0&&k(q)},[r,i]),N=g.useCallback(q=>h==null?void 0:h(q),[h]);g.useEffect(()=>{!j&&C.length>0&&I(C[0])},[I,j,C]);const S=g.useMemo(()=>C.map(q=>({value:q,label:SG[q],icon:CG[q]})),[C]),L=()=>{switch(w){case"overview":return e.jsx(oT,{company:t,onUpdate:N,isSaving:u,canEdit:l.canViewOverview});case"products":return e.jsx(lT,{company:t,onUpdate:N,isSaving:u,canEdit:l.canManageProducts});case"people":return e.jsx(cT,{company:t,onUpdate:N,isSaving:u,canEdit:l.canManagePeople});case"jobs":return e.jsx(sT,{company:t,onUpdate:N,isSaving:u,canEdit:l.canManageJobs});case"events":return e.jsx(rT,{company:t,onUpdate:N,isSaving:u,canEdit:l.canManageEvents});case"news":return e.jsx(iT,{company:t,onUpdate:N,isSaving:u,canEdit:l.canManageNews});case"candidates":return e.jsx(zR,{company:t,onUpdate:N,isSaving:u,canEdit:l.canManageCandidates});case"settings":return e.jsx(gT,{company:t,onUpdate:N,isSaving:u,canEdit:l.canManageSettings});default:return null}};return e.jsxs("div",{className:"flex flex-col gap-6",children:[e.jsx(RR,{companyName:p,isAdminView:!0,role:m,enabledPermissions:b,overview:t.overview,classification:t.classification,companyType:MG[0],companyId:y,companySlug:y,claimedStatus:"claimed",signalsAndInsights:t.signalsAndInsights,openRolesCount:0,trustScore:0}),f.length>0?e.jsx("section",{className:"py-6",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsx(LU,{stats:f})})}):null,e.jsx("section",{className:"py-6",children:e.jsx("div",{className:"container mx-auto px-4",children:C.length>0?e.jsxs(nn,{value:w,onValueChange:q=>I(q),children:[e.jsx(TR,{items:S}),j?e.jsx(je,{value:w,className:"mt-6",children:e.jsx(jG.Provider,{value:{onUpdate:N,isSaving:u,permissions:l},children:e.jsx("div",{className:"rounded-2xl border bg-background p-6 shadow-sm",children:L()})})}):null]}):null})})]})},PG=({companyName:t,companySlug:a,open:n,onOpenChange:r,onSave:s})=>{const[i,o]=M.useState({companyName:t,companySlug:a,shortDescription:"",website:""}),l=()=>{s==null||s(i),r(!1)};return e.jsx(St,{open:n,onOpenChange:r,children:e.jsxs(xt,{className:"sm:max-w-[520px]",children:[e.jsxs(da,{children:[e.jsx(st,{children:"Edit company profile"}),e.jsx(Tn,{children:"Update company details for admins with profile permissions. This dialog is layout-only and does not perform any API calls."})]}),e.jsxs("div",{className:"grid gap-4 py-2",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(O,{htmlFor:"admin-company-name",children:"Company name"}),e.jsx(de,{id:"admin-company-name",value:i.companyName,onChange:d=>o(h=>({...h,companyName:d.target.value}))})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(O,{htmlFor:"admin-company-slug",children:"Company slug"}),e.jsx(de,{id:"admin-company-slug",value:i.companySlug,onChange:d=>o(h=>({...h,companySlug:d.target.value}))})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(O,{htmlFor:"admin-company-description",children:"Short description"}),e.jsx(Et,{id:"admin-company-description",rows:4,value:i.shortDescription,onChange:d=>o(h=>({...h,shortDescription:d.target.value}))})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(O,{htmlFor:"admin-company-website",children:"Website"}),e.jsx(de,{id:"admin-company-website",value:i.website,onChange:d=>o(h=>({...h,website:d.target.value}))})]})]}),e.jsxs(Zt,{children:[e.jsx(T,{variant:"outline",onClick:()=>r(!1),children:"Cancel"}),e.jsx(T,{variant:"accent",onClick:l,children:"Save changes"})]})]})})},_G=(t,a)=>t[a]===!0,RG=t=>Object.entries(t).filter(([a,n])=>n===!0).map(([a])=>a);var EC={exports:{}},eN={};function TG(t){return t&&t.__esModule?t:{default:t}}eN._=TG;var kT={};function vT(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,n=new WeakMap;return(vT=function(r){return r?n:a})(t)}function DG(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=vT(a);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)){var o=s?Object.getOwnPropertyDescriptor(t,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=t[i]}return r.default=t,n&&n.set(t,r),r}kT._=DG;var eC={},IL;function qG(){return IL||(IL=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return r}});const r=eN._(M).default.createContext({});process.env.NODE_ENV!=="production"&&(r.displayName="HeadManagerContext")}(eC)),eC}var Fl={exports:{}},AL;function zG(){return AL||(AL=1,function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"setAttributesFromProps",{enumerable:!0,get:function(){return i}});const n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},r=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function s(o){return["async","defer","noModule"].includes(o)}function i(o,l){for(const[d,h]of Object.entries(l)){if(!l.hasOwnProperty(d)||r.includes(d)||h===void 0)continue;const u=n[d]||d.toLowerCase();o.tagName==="SCRIPT"&&s(u)?o[u]=!!h:o.setAttribute(u,String(h)),(h===!1||o.tagName==="SCRIPT"&&s(u)&&(!h||h==="false"))&&(o.setAttribute(u,""),o.removeAttribute(u))}}(typeof a.default=="function"||typeof a.default=="object"&&a.default!==null)&&typeof a.default.__esModule>"u"&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)}(Fl,Fl.exports)),Fl.exports}var Ol={exports:{}},PL;function EG(){return PL||(PL=1,function(t,a){Object.defineProperty(a,"__esModule",{value:!0});function n(i,o){for(var l in o)Object.defineProperty(i,l,{enumerable:!0,get:o[l]})}n(a,{cancelIdleCallback:function(){return s},requestIdleCallback:function(){return r}});const r=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(i){let o=Date.now();return self.setTimeout(function(){i({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-o))}})},1)},s=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(i){return clearTimeout(i)};(typeof a.default=="function"||typeof a.default=="object"&&a.default!==null)&&typeof a.default.__esModule>"u"&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)}(Ol,Ol.exports)),Ol.exports}(function(t,a){"use client";Object.defineProperty(a,"__esModule",{value:!0});function n(j,I){for(var N in I)Object.defineProperty(j,N,{enumerable:!0,get:I[N]})}n(a,{default:function(){return C},handleClientScriptLoad:function(){return f},initScriptLoader:function(){return w}});const r=eN,s=kT,i=e,o=r._(FC),l=s._(M),d=qG(),h=zG(),u=EG(),p=new Map,y=new Set,m=j=>{if(o.default.preinit){j.forEach(I=>{o.default.preinit(I,{as:"style"})});return}if(typeof window<"u"){let I=document.head;j.forEach(N=>{let S=document.createElement("link");S.type="text/css",S.rel="stylesheet",S.href=N,I.appendChild(S)})}},x=j=>{const{src:I,id:N,onLoad:S=()=>{},onReady:L=null,dangerouslySetInnerHTML:q,children:_="",strategy:A="afterInteractive",onError:D,stylesheets:H}=j,G=N||I;if(G&&y.has(G))return;if(p.has(I)){y.add(G),p.get(I).then(S,D);return}const V=()=>{L&&L(),y.add(G)},U=document.createElement("script"),F=new Promise((se,K)=>{U.addEventListener("load",function(X){se(),S&&S.call(this,X),V()}),U.addEventListener("error",function(X){K(X)})}).catch(function(se){D&&D(se)});q?(U.innerHTML=q.__html||"",V()):_?(U.textContent=typeof _=="string"?_:Array.isArray(_)?_.join(""):"",V()):I&&(U.src=I,p.set(I,F)),(0,h.setAttributesFromProps)(U,j),A==="worker"&&U.setAttribute("type","text/partytown"),U.setAttribute("data-nscript",A),H&&m(H),document.body.appendChild(U)};function f(j){const{strategy:I="afterInteractive"}=j;I==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>x(j))}):x(j)}function v(j){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>x(j)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>x(j))})}function k(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(I=>{const N=I.id||I.getAttribute("src");y.add(N)})}function w(j){j.forEach(f),k()}function b(j){const{id:I,src:N="",onLoad:S=()=>{},onReady:L=null,strategy:q="afterInteractive",onError:_,stylesheets:A,...D}=j,{updateScripts:H,scripts:G,getIsSsr:V,appDir:U,nonce:F}=(0,l.useContext)(d.HeadManagerContext),se=(0,l.useRef)(!1);(0,l.useEffect)(()=>{const X=I||N;se.current||(L&&X&&y.has(X)&&L(),se.current=!0)},[L,I,N]);const K=(0,l.useRef)(!1);if((0,l.useEffect)(()=>{K.current||(q==="afterInteractive"?x(j):q==="lazyOnload"&&v(j),K.current=!0)},[j,q]),(q==="beforeInteractive"||q==="worker")&&(H?(G[q]=(G[q]||[]).concat([{id:I,src:N,onLoad:S,onReady:L,onError:_,...D}]),H(G)):V&&V()?y.add(I||N):V&&!V()&&x(j)),U){if(A&&A.forEach(X=>{o.default.preinit(X,{as:"style"})}),q==="beforeInteractive")return N?(o.default.preload(N,D.integrity?{as:"script",integrity:D.integrity,nonce:F,crossOrigin:D.crossOrigin}:{as:"script",nonce:F,crossOrigin:D.crossOrigin}),(0,i.jsx)("script",{nonce:F,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([N,{...D,id:I}])+")"}})):(D.dangerouslySetInnerHTML&&(D.children=D.dangerouslySetInnerHTML.__html,delete D.dangerouslySetInnerHTML),(0,i.jsx)("script",{nonce:F,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...D,id:I}])+")"}}));q==="afterInteractive"&&N&&o.default.preload(N,D.integrity?{as:"script",integrity:D.integrity,nonce:F,crossOrigin:D.crossOrigin}:{as:"script",nonce:F,crossOrigin:D.crossOrigin})}return null}Object.defineProperty(b,"__nextScript",{value:!0});const C=b;(typeof a.default=="function"||typeof a.default=="object"&&a.default!==null)&&typeof a.default.__esModule>"u"&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)})(EC,EC.exports);var FG=EC.exports,OG=FG;const HG=BT(OG),VG=`
7832
7832
  window.dataLayer = window.dataLayer || [];
7833
7833
  window.dataLayer.push({ event: 'consent_granted' });
7834
7834
  // gtag('consent', 'update', { ad_storage: 'granted', analytics_storage: 'granted' });
7835
- `;function BG({allow:t="analytics",scriptId:a="ga",scriptStrategy:n="afterInteractive",scriptContent:r=VG}){return e.jsx(iE,{allow:t,children:e.jsx(HG,{id:a,strategy:n,children:r})})}const $G=Uj("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Ml=g.forwardRef(({className:t,variant:a,...n},r)=>e.jsx("div",{ref:r,role:"alert",className:ye($G({variant:a}),t),...n}));Ml.displayName="Alert";const UG=g.forwardRef(({className:t,...a},n)=>e.jsx("h5",{ref:n,className:ye("mb-1 font-medium leading-none tracking-tight",t),...a}));UG.displayName="AlertTitle";const jl=g.forwardRef(({className:t,...a},n)=>e.jsx("div",{ref:n,className:ye("text-sm [&_p]:leading-relaxed",t),...a}));jl.displayName="AlertDescription";function GG({onSubmit:t,onForgotPassword:a,onRegisterClick:n,isLoading:r=!1,error:s,title:i="Welcome Back",description:o="Sign in to your account to continue",identifierLabel:l="Email or Username",identifierPlaceholder:d="you@example.com"}){const[h,u]=M.useState(""),[p,y]=M.useState(""),[m,x]=M.useState(!1),f=v=>{v.preventDefault(),t(h,p,m)};return e.jsxs(Q,{className:"w-full max-w-md",children:[e.jsxs(ce,{className:"space-y-1",children:[e.jsx(ue,{className:"text-2xl font-bold",children:i}),e.jsx(Se,{children:o})]}),e.jsxs("form",{onSubmit:f,children:[e.jsxs(ee,{className:"space-y-4",children:[s&&e.jsxs(Ml,{variant:"destructive",children:[e.jsx(Ht,{className:"h-4 w-4"}),e.jsx(jl,{children:s})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"identifier",children:l}),e.jsxs("div",{className:"relative",children:[e.jsx(ca,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),e.jsx(de,{id:"identifier",type:"text",placeholder:d,value:h,onChange:v=>u(v.target.value),className:"pl-10",required:!0,disabled:r})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"password",children:"Password"}),e.jsxs("div",{className:"relative",children:[e.jsx(ko,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),e.jsx(de,{id:"password",type:"password",placeholder:"••••••••",value:p,onChange:v=>y(v.target.value),className:"pl-10",required:!0,disabled:r})]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:"remember",checked:m,onCheckedChange:v=>x(v),disabled:r}),e.jsx(O,{htmlFor:"remember",className:"text-sm font-normal cursor-pointer",children:"Remember me"})]}),a&&e.jsx("button",{type:"button",onClick:a,className:"text-sm text-accent hover:underline",disabled:r,children:"Forgot password?"})]})]}),e.jsxs(Lo,{className:"flex flex-col space-y-4",children:[e.jsx(T,{type:"submit",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:r,children:r?"Signing in...":"Sign In"}),n&&e.jsxs("div",{className:"text-sm text-center text-muted-foreground",children:["Don't have an account?"," ",e.jsx("button",{type:"button",onClick:n,className:"text-accent hover:underline font-medium",disabled:r,children:"Create account"})]})]})]})]})}const WG=({onSubmit:t,onForgotPassword:a,onRegisterClick:n,isLoading:r=!1,error:s="",appName:i="Your App",logo:o,identifierLabel:l="Email or Username",identifierPlaceholder:d="you@example.com"})=>e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4",children:e.jsxs("div",{className:"w-full max-w-md",children:[e.jsxs("div",{className:"mb-8 text-center",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[o||e.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-accent",children:e.jsx("span",{className:"text-xl font-bold text-accent-foreground",children:"APP"})}),e.jsx("span",{className:"text-2xl font-bold text-white",children:i})]}),e.jsx("p",{className:"text-gray-300",children:"Access your dashboard"})]}),e.jsx(GG,{onSubmit:t,onForgotPassword:a,onRegisterClick:n,isLoading:r,error:s,identifierLabel:l,identifierPlaceholder:d})]})});function ZG({onSubmit:t,fields:a,onLoginClick:n,isLoading:r=!1,error:s,title:i="Create Account",description:o="Join us to access exclusive opportunities"}){const[l,d]=M.useState({}),[h,u]=M.useState(""),p=(m,x)=>d(f=>({...f,[m]:x})),y=m=>{if(m.preventDefault(),u(""),"password"in l&&("confirmPassword"in l||"password2"in l)){const f=l.confirmPassword??l.password2;if(l.password!==f){u("Passwords do not match");return}}const x={...l};if("confirmPassword"in x&&!("password2"in x)&&(x.password2=x.confirmPassword,delete x.confirmPassword),"fullName"in x&&!("first_name"in x)&&!("last_name"in x)){const f=String(x.fullName||"").trim().split(/\s+/).filter(Boolean);f.length>0&&(x.first_name=f[0],f.length>1&&(x.last_name=f.slice(1).join(" "))),delete x.fullName}t(x)};return e.jsxs(Q,{className:"w-full max-w-md",children:[e.jsxs(ce,{className:"space-y-1",children:[e.jsx(ue,{className:"text-2xl font-bold",children:i}),e.jsx(Se,{children:o})]}),e.jsxs("form",{onSubmit:y,children:[e.jsxs(ee,{className:"space-y-4",children:[(s||h)&&e.jsxs(Ml,{variant:"destructive",children:[e.jsx(Ht,{className:"h-4 w-4"}),e.jsx(jl,{children:s||h})]}),a.map(m=>e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:m.name,children:m.label}),e.jsx(de,{id:m.name,type:m.type||"text",placeholder:m.placeholder,required:m.required,disabled:r,value:l[m.name]||"",onChange:x=>p(m.name,x.target.value)})]},m.name))]}),e.jsxs(Lo,{className:"flex flex-col space-y-4",children:[e.jsx(T,{type:"submit",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:r,children:r?"Creating account...":"Create Account"}),n&&e.jsxs("div",{className:"text-sm text-center text-muted-foreground",children:["Already have an account?"," ",e.jsx("button",{type:"button",onClick:n,className:"text-accent hover:underline font-medium",disabled:r,children:"Sign in"})]})]})]})]})}const JG=({onSubmit:t,fields:a,onLoginClick:n,isLoading:r=!1,error:s="",appName:i="Your App",logo:o,title:l="Create Account",description:d="Join us to access exclusive opportunities"})=>e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4",children:e.jsxs("div",{className:"w-full max-w-md",children:[e.jsxs("div",{className:"mb-8 text-center",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[o||e.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-accent",children:e.jsx("span",{className:"text-xl font-bold text-accent-foreground",children:"APP"})}),e.jsx("span",{className:"text-2xl font-bold text-white",children:i})]}),e.jsx("p",{className:"text-gray-300",children:"Start your journey"})]}),e.jsx(ZG,{onSubmit:t,fields:a,onLoginClick:n,isLoading:r,error:s,title:l,description:d})]})}),XG=t=>{let a=0;return t.length>=8&&(a+=1),/[A-Z]/.test(t)&&(a+=1),/[a-z]/.test(t)&&(a+=1),/\d/.test(t)&&(a+=1),/[^A-Za-z0-9]/.test(t)&&(a+=1),t?a<=2?{label:"Weak",score:a}:a<=4?{label:"Good",score:a}:{label:"Strong",score:a}:{label:"",score:0}};function YG({onSubmit:t,fields:a,optionalFields:n=[],onLoginClick:r,isLoading:s=!1,error:i,title:o="Create Account",description:l="Join iGaming Career in seconds",privacyNote:d="We respect your privacy. Your data is protected and never shared without consent."}){const[h,u]=M.useState({}),[p,y]=M.useState(""),[m,x]=M.useState(!1),[f,v]=M.useState({}),k=M.useMemo(()=>{const N=a.find(S=>S.type==="password"||S.name==="password");return N&&h[N.name]||""},[a,h]),w=M.useMemo(()=>XG(k),[k]),b=(N,S)=>u(L=>({...L,[N]:S})),C=N=>{if(N.preventDefault(),y(""),"password"in h&&("confirmPassword"in h||"password2"in h)){const L=h.confirmPassword??h.password2;if(h.password!==L){y("Passwords do not match");return}}const S={...h};if("confirmPassword"in S&&!("password2"in S)&&(S.password2=S.confirmPassword,delete S.confirmPassword),"fullName"in S&&!("first_name"in S)&&!("last_name"in S)){const L=String(S.fullName||"").trim().split(/\s+/).filter(Boolean);L.length>0&&(S.first_name=L[0],L.length>1&&(S.last_name=L.slice(1).join(" "))),delete S.fullName}t(S)},j=N=>e.jsx("button",{type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 text-xs font-medium text-muted-foreground hover:text-foreground",onClick:()=>v(S=>({...S,[N]:!S[N]})),disabled:s,children:f[N]?e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx(Oc,{className:"h-3.5 w-3.5"})," Hide"]}):e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx(tc,{className:"h-3.5 w-3.5"})," Show"]})}),I=N=>{const S=N.type==="password"||N.name.toLowerCase().includes("password");return e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:N.name,children:N.label}),e.jsxs("div",{className:S?"relative":void 0,children:[e.jsx(de,{id:N.name,type:S?f[N.name]?"text":"password":N.type||"text",placeholder:N.placeholder,required:N.required,disabled:s,value:h[N.name]||"",onChange:L=>b(N.name,L.target.value),className:S?"pr-20":void 0}),S?j(N.name):null]}),S&&N.name==="password"&&w.label?e.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx(rc,{className:"h-3.5 w-3.5"})," Strength:"]}),e.jsx("span",{className:w.label==="Weak"?"text-destructive":w.label==="Good"?"text-amber-500":"text-emerald-500",children:w.label})]}):null]},N.name)};return e.jsxs(Q,{className:"w-full max-w-md",children:[e.jsxs(ce,{className:"space-y-1",children:[e.jsx(ue,{className:"text-2xl font-bold",children:o}),e.jsx(Se,{children:l})]}),e.jsxs("form",{onSubmit:C,children:[e.jsxs(ee,{className:"space-y-4",children:[(i||p)&&e.jsxs(Ml,{variant:"destructive",children:[e.jsx(Ht,{className:"h-4 w-4"}),e.jsx(jl,{children:i||p})]}),e.jsx("div",{className:"space-y-4",children:a.map(N=>I(N))}),n.length>0&&e.jsxs("div",{className:"space-y-3 pt-2",children:[e.jsx("button",{type:"button",onClick:()=>x(N=>!N),className:"text-sm font-medium text-accent hover:underline",disabled:s,children:m?"Hide optional details":"Complete your profile (optional)"}),m&&e.jsx("div",{className:"space-y-4 rounded-lg border border-dashed border-muted-foreground/40 p-4",children:n.map(N=>I(N))})]})]}),e.jsxs(Lo,{className:"flex flex-col space-y-4",children:[e.jsx(T,{type:"submit",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:s,children:s?"Creating account...":"Create Account"}),e.jsx("p",{className:"text-center text-xs text-muted-foreground",children:d}),r&&e.jsxs("div",{className:"text-sm text-center text-muted-foreground",children:["Already have an account?"," ",e.jsx("button",{type:"button",onClick:r,className:"text-accent hover:underline font-medium",disabled:s,children:"Sign in"})]})]})]})]})}const KG=({onSubmit:t,fields:a,optionalFields:n,onLoginClick:r,isLoading:s=!1,error:i="",appName:o="Your App",logo:l,title:d="Create Account",description:h="Join iGaming Career in seconds",privacyNote:u})=>e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4",children:e.jsxs("div",{className:"w-full max-w-md",children:[e.jsxs("div",{className:"mb-8 text-center",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[l||e.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-accent",children:e.jsx("span",{className:"text-xl font-bold text-accent-foreground",children:"APP"})}),e.jsx("span",{className:"text-2xl font-bold text-white",children:o})]}),e.jsx("p",{className:"text-gray-300",children:"Start your journey"})]}),e.jsx(YG,{onSubmit:t,fields:a,optionalFields:n,onLoginClick:r,isLoading:s,error:i,title:d,description:h,privacyNote:u})]})});function QG({onSubmit:t,onBackToLogin:a,isLoading:n=!1,error:r,success:s=!1,title:i="Reset Password",description:o="Enter your email address and we'll send you a link to reset your password",successMessage:l="If an account exists with that email, you will receive a password reset link shortly. Please check your inbox and spam folder."}){const[d,h]=M.useState(""),u=p=>{p.preventDefault(),t(d)};return s?e.jsxs(Q,{className:"w-full max-w-md",children:[e.jsxs(ce,{className:"space-y-1",children:[e.jsx("div",{className:"flex items-center justify-center mb-4",children:e.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-green-100",children:e.jsx(Vt,{className:"h-6 w-6 text-green-600"})})}),e.jsx(ue,{className:"text-2xl font-bold text-center",children:"Check Your Email"}),e.jsx(Se,{className:"text-center",children:l})]}),e.jsx(Lo,{className:"flex flex-col space-y-4",children:a&&e.jsxs(T,{type:"button",variant:"outline",className:"w-full",onClick:a,children:[e.jsx(Ja,{className:"mr-2 h-4 w-4"}),"Back to Login"]})})]}):e.jsxs(Q,{className:"w-full max-w-md",children:[e.jsxs(ce,{className:"space-y-1",children:[e.jsx(ue,{className:"text-2xl font-bold",children:i}),e.jsx(Se,{children:o})]}),e.jsxs("form",{onSubmit:u,children:[e.jsxs(ee,{className:"space-y-4",children:[r&&e.jsxs(Ml,{variant:"destructive",children:[e.jsx(Ht,{className:"h-4 w-4"}),e.jsx(jl,{children:r})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"email",children:"Email Address"}),e.jsxs("div",{className:"relative",children:[e.jsx(ca,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),e.jsx(de,{id:"email",type:"email",placeholder:"you@example.com",value:d,onChange:p=>h(p.target.value),className:"pl-10",required:!0,disabled:n})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"We'll send you an email with instructions to reset your password"})]})]}),e.jsxs(Lo,{className:"flex flex-col space-y-4",children:[e.jsx(T,{type:"submit",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:n,children:n?"Sending...":"Send Reset Link"}),a&&e.jsxs(T,{type:"button",variant:"ghost",className:"w-full",onClick:a,disabled:n,children:[e.jsx(Ja,{className:"mr-2 h-4 w-4"}),"Back to Login"]})]})]})]})}const eW=({onSubmit:t,onBackToLogin:a,isLoading:n=!1,error:r="",success:s=!1,appName:i="Your App",logo:o})=>e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4",children:e.jsxs("div",{className:"w-full max-w-md",children:[e.jsxs("div",{className:"mb-8 text-center",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[o||e.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-accent",children:e.jsx("span",{className:"text-xl font-bold text-accent-foreground",children:"APP"})}),e.jsx("span",{className:"text-2xl font-bold text-white",children:i})]}),e.jsx("p",{className:"text-gray-300",children:"Recover your account access"})]}),e.jsx(QG,{onSubmit:t,onBackToLogin:a,isLoading:n,error:r,success:s})]})}),tW=["Save and track your favorite jobs","Unlock full job descriptions","Get personalized recommendations"],aW=t=>{if(!t)return"continue";const a=t.trim();return a.length===0?"continue":a.toLowerCase()},nW=({open:t,onClose:a,onLogin:n,onRegister:r,appName:s="Your App",attemptedAction:i,title:o="Sign in to continue",description:l,helperContent:d})=>{const h=aW(i),u=l??`Please sign in to ${h} and keep your progress synced with ${s}.`;return e.jsx(St,{open:t,onOpenChange:p=>!p&&a(),children:e.jsxs(xt,{className:"sm:max-w-lg",children:[e.jsxs(da,{className:"space-y-2",children:[e.jsxs(st,{className:"flex items-center gap-2 text-xl font-semibold",children:[e.jsx("span",{className:"flex h-9 w-9 items-center justify-center rounded-full bg-accent/10 text-accent",children:e.jsx(Ht,{className:"h-5 w-5"})}),o]}),e.jsx(Tn,{className:"text-base text-muted-foreground",children:u})]}),e.jsxs("div",{className:"mt-2 space-y-4",children:[e.jsxs("div",{className:"rounded-lg border border-border/60 bg-muted/30 p-4",children:[e.jsxs("div",{className:"mb-3 flex items-center gap-2 text-sm font-medium text-foreground",children:[e.jsx(Ca,{className:"h-4 w-4 text-accent"}),"Why create an account?"]}),e.jsx("ul",{className:"space-y-2 text-sm text-muted-foreground",children:tW.map(p=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"mt-1 block h-1.5 w-1.5 rounded-full bg-accent","aria-hidden":!0}),e.jsx("span",{children:p})]},p))})]}),d&&e.jsx("div",{className:"rounded-md bg-card p-4 text-sm text-muted-foreground shadow-sm",children:d})]}),e.jsx(JS,{className:"my-4"}),e.jsxs(Zt,{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[e.jsx(T,{variant:"outline",onClick:r,className:"w-full",children:"Create account"}),e.jsx(T,{onClick:n,className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",children:"Sign in"}),e.jsx(T,{variant:"ghost",onClick:a,className:"w-full sm:col-span-2 text-muted-foreground",children:"Maybe later"})]})]})})},rW=[{icon:$c,label:"Dashboard",path:"/dashboard"},{icon:Ze,label:"My Jobs",path:"/dashboard/jobs"},{icon:ia,label:"Courses",path:"/dashboard/courses"},{icon:vo,label:"Settings",path:"/dashboard/settings"}];function sW({children:t,user:a={name:"User",email:"user@example.com"},onLogout:n,onNavigate:r,currentPath:s="/dashboard",notificationCount:i=0}){return e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"flex",children:[e.jsxs("aside",{className:"hidden md:flex w-64 flex-col border-r bg-card h-[calc(100vh-4rem)]",children:[e.jsx("nav",{className:"flex-1 space-y-1 p-4",children:rW.map(o=>{const l=o.icon,d=s===o.path;return e.jsxs("button",{onClick:()=>r==null?void 0:r(o.path),className:`flex w-full items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium transition-colors ${d?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground"}`,children:[e.jsx(l,{className:"h-4 w-4"}),o.label]},o.path)})}),n&&e.jsx("div",{className:"border-t p-4",children:e.jsxs(T,{variant:"ghost",className:"w-full justify-start text-muted-foreground hover:text-foreground",onClick:n,children:[e.jsx(Zc,{className:"mr-3 h-4 w-4"}),"Logout"]})})]}),e.jsx("main",{className:"flex-1 p-6 md:p-8",children:t})]})})}function iW({userName:t,feedItems:a,alerts:n,snapshot:r,onSave:s,onApply:i,onEnroll:o,onRead:l}){const d=u=>{switch(u){case"job":return Ze;case"course":return ia;case"news":return Aa;default:return Ze}},h=u=>{switch(u.type){case"job":return e.jsxs(e.Fragment,{children:[e.jsx(T,{variant:"outline",size:"sm",onClick:()=>s(u.id),children:"Save"}),e.jsx(T,{size:"sm",onClick:()=>i(u.id),children:"Apply"})]});case"course":return e.jsxs(e.Fragment,{children:[e.jsx(T,{variant:"outline",size:"sm",onClick:()=>s(u.id),children:"Save"}),e.jsx(T,{size:"sm",onClick:()=>o(u.id),children:"Enroll"})]});case"news":return e.jsx(T,{size:"sm",onClick:()=>l(u.id),children:"Read"});default:return null}};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsxs("h2",{className:"text-3xl font-bold",children:["Welcome back, ",t," 👋"]}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Your personalized iGaming career hub"})]}),e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-4",children:[e.jsx("h3",{className:"text-xl font-semibold",children:"Your Feed"}),a.map(u=>{const p=d(u.type);return e.jsxs(Q,{children:[e.jsxs(ce,{children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(p,{className:"h-5 w-5 text-primary"}),e.jsx(he,{variant:"secondary",children:u.type})]}),e.jsx("span",{className:"text-xs text-muted-foreground",children:u.timestamp})]}),e.jsx(ue,{className:"text-lg mt-2",children:u.title}),u.company&&e.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Ko,{className:"h-4 w-4"}),u.company]}),u.location&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Qe,{className:"h-4 w-4"}),u.location]})]}),e.jsx(Se,{children:u.description})]}),e.jsxs(ee,{children:[e.jsx("div",{className:"flex flex-wrap gap-2 mb-4",children:u.tags.map(y=>e.jsx(he,{variant:"outline",children:y},y))}),u.reason&&e.jsxs("p",{className:"text-xs text-muted-foreground mb-3 italic",children:["💡 ",u.reason]}),e.jsx("div",{className:"flex gap-2",children:h(u)})]})]},u.id)})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs(Q,{children:[e.jsx(ce,{children:e.jsxs(ue,{className:"flex items-center gap-2",children:[e.jsx(Pa,{className:"h-5 w-5"}),"Your iGaming Career Snapshot"]})}),e.jsx(ee,{className:"space-y-3",children:r.map(u=>e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:u.label}),e.jsxs("div",{className:"text-right",children:[e.jsx("span",{className:"font-semibold",children:u.value}),u.trend&&e.jsx("span",{className:"text-xs text-green-600 ml-2",children:u.trend})]})]},u.label))})]}),e.jsxs(Q,{children:[e.jsx(ce,{children:e.jsxs(ue,{className:"flex items-center gap-2",children:[e.jsx(ga,{className:"h-5 w-5"}),"Alerts & Notifications"]})}),e.jsx(ee,{className:"space-y-3",children:n.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:"No new alerts"}):n.map(u=>e.jsxs("div",{className:"p-3 rounded-lg bg-secondary/50 text-sm",children:[e.jsx(he,{variant:"outline",className:"mb-2",children:u.type}),e.jsx("p",{children:u.message})]},u.id))})]})]})]})]})}function cl(t,a,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t==null||t(s),n===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}function _L(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function oW(...t){return a=>{let n=!1;const r=t.map(s=>{const i=_L(s,a);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():_L(t[s],null)}}}}function tN(...t){return g.useCallback(oW(...t),t)}function cW(t,a=[]){let n=[];function r(i,o){const l=g.createContext(o),d=n.length;n=[...n,o];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=n.map(o=>g.createContext(o));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[r,lW(s,...a)]}function lW(...t){const a=t[0];if(t.length===1)return a;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:o}),[o])}};return n.scopeName=a.scopeName,n}var Vj=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},dW=g[" useId ".trim().toString()]||(()=>{}),hW=0;function uW(t){const[a,n]=g.useState(dW());return Vj(()=>{t||n(r=>r??String(hW++))},[t]),t||(a?`radix-${a}`:"")}function pW(t,a){return g.useReducer((n,r)=>a[n][r]??n,t)}var aN=t=>{const{present:a,children:n}=t,r=mW(a),s=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),i=tN(r.ref,yW(s));return typeof n=="function"||r.isPresent?g.cloneElement(s,{ref:i}):null};aN.displayName="Presence";function mW(t){const[a,n]=g.useState(),r=g.useRef(null),s=g.useRef(t),i=g.useRef("none"),o=t?"mounted":"unmounted",[l,d]=pW(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const h=Hl(r.current);i.current=l==="mounted"?h:"none"},[l]),Vj(()=>{const h=r.current,u=s.current;if(u!==t){const y=i.current,m=Hl(h);t?d("MOUNT"):m==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(u&&y!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,d]),Vj(()=>{if(a){let h;const u=a.ownerDocument.defaultView??window,p=m=>{const f=Hl(r.current).includes(CSS.escape(m.animationName));if(m.target===a&&f&&(d("ANIMATION_END"),!s.current)){const v=a.style.animationFillMode;a.style.animationFillMode="forwards",h=u.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=v)})}},y=m=>{m.target===a&&(i.current=Hl(r.current))};return a.addEventListener("animationstart",y),a.addEventListener("animationcancel",p),a.addEventListener("animationend",p),()=>{u.clearTimeout(h),a.removeEventListener("animationstart",y),a.removeEventListener("animationcancel",p),a.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[a,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(h=>{r.current=h?getComputedStyle(h):null,n(h)},[])}}function Hl(t){return(t==null?void 0:t.animationName)||"none"}function yW(t){var r,s;let a=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=a&&"isReactWarning"in a&&a.isReactWarning;return n?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=a&&"isReactWarning"in a&&a.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var fW=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],wT=fW.reduce((t,a)=>{const n=Ye(`Primitive.${a}`),r=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{}),xW=g[" useInsertionEffect ".trim().toString()]||Vj;function gW({prop:t,defaultProp:a,onChange:n=()=>{},caller:r}){const[s,i,o]=kW({defaultProp:a,onChange:n}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,r])}const h=g.useCallback(u=>{var p;if(l){const y=vW(u)?u(t):u;y!==t&&((p=o.current)==null||p.call(o,y))}else i(u)},[l,t,i,o]);return[d,h]}function kW({defaultProp:t,onChange:a}){const[n,r]=g.useState(t),s=g.useRef(n),i=g.useRef(a);return xW(()=>{i.current=a},[a]),g.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function vW(t){return typeof t=="function"}var k9="Popover",[bT,pZ]=cW(k9,[p9]),Cl=p9(),[wW,Bn]=bT(k9),MT=t=>{const{__scopePopover:a,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!1}=t,l=Cl(a),d=g.useRef(null),[h,u]=g.useState(!1),[p,y]=gW({prop:r,defaultProp:s??!1,onChange:i,caller:k9});return e.jsx(z_,{...l,children:e.jsx(wW,{scope:a,contentId:uW(),triggerRef:d,open:p,onOpenChange:y,onOpenToggle:g.useCallback(()=>y(m=>!m),[y]),hasCustomAnchor:h,onCustomAnchorAdd:g.useCallback(()=>u(!0),[]),onCustomAnchorRemove:g.useCallback(()=>u(!1),[]),modal:o,children:n})})};MT.displayName=k9;var jT="PopoverAnchor",bW=g.forwardRef((t,a)=>{const{__scopePopover:n,...r}=t,s=Bn(jT,n),i=Cl(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:l}=s;return g.useEffect(()=>(o(),()=>l()),[o,l]),e.jsx(WS,{...i,...r,ref:a})});bW.displayName=jT;var CT="PopoverTrigger",ST=g.forwardRef((t,a)=>{const{__scopePopover:n,...r}=t,s=Bn(CT,n),i=Cl(n),o=tN(a,s.triggerRef),l=e.jsx(wT.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":PT(s.open),...r,ref:o,onClick:cl(t.onClick,s.onOpenToggle)});return s.hasCustomAnchor?l:e.jsx(WS,{asChild:!0,...i,children:l})});ST.displayName=CT;var nN="PopoverPortal",[MW,jW]=bT(nN,{forceMount:void 0}),NT=t=>{const{__scopePopover:a,forceMount:n,children:r,container:s}=t,i=Bn(nN,a);return e.jsx(MW,{scope:a,forceMount:n,children:e.jsx(aN,{present:n||i.open,children:e.jsx(a9,{asChild:!0,container:s,children:r})})})};NT.displayName=nN;var kc="PopoverContent",LT=g.forwardRef((t,a)=>{const n=jW(kc,t.__scopePopover),{forceMount:r=n.forceMount,...s}=t,i=Bn(kc,t.__scopePopover);return e.jsx(aN,{present:r||i.open,children:i.modal?e.jsx(SW,{...s,ref:a}):e.jsx(NW,{...s,ref:a})})});LT.displayName=kc;var CW=Ye("PopoverContent.RemoveScroll"),SW=g.forwardRef((t,a)=>{const n=Bn(kc,t.__scopePopover),r=g.useRef(null),s=tN(a,r),i=g.useRef(!1);return g.useEffect(()=>{const o=r.current;if(o)return wS(o)},[]),e.jsx(s9,{as:CW,allowPinchZoom:!0,children:e.jsx(IT,{...t,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:cl(t.onCloseAutoFocus,o=>{var l;o.preventDefault(),i.current||(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:cl(t.onPointerDownOutside,o=>{const l=o.detail.originalEvent,d=l.button===0&&l.ctrlKey===!0,h=l.button===2||d;i.current=h},{checkForDefaultPrevented:!1}),onFocusOutside:cl(t.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),NW=g.forwardRef((t,a)=>{const n=Bn(kc,t.__scopePopover),r=g.useRef(!1),s=g.useRef(!1);return e.jsx(IT,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,l;(o=t.onCloseAutoFocus)==null||o.call(t,i),i.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var d,h;(d=t.onInteractOutside)==null||d.call(t,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((h=n.triggerRef.current)==null?void 0:h.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),IT=g.forwardRef((t,a)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:u,...p}=t,y=Bn(kc,n),m=Cl(n);return vS(),e.jsx(t9,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:e.jsx(e9,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:h,onDismiss:()=>y.onOpenChange(!1),children:e.jsx(E_,{"data-state":PT(y.open),role:"dialog",id:y.contentId,...m,...p,ref:a,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),AT="PopoverClose",LW=g.forwardRef((t,a)=>{const{__scopePopover:n,...r}=t,s=Bn(AT,n);return e.jsx(wT.button,{type:"button",...r,ref:a,onClick:cl(t.onClick,()=>s.onOpenChange(!1))})});LW.displayName=AT;var IW="PopoverArrow",AW=g.forwardRef((t,a)=>{const{__scopePopover:n,...r}=t,s=Cl(n);return e.jsx(F_,{...s,...r,ref:a})});AW.displayName=IW;function PT(t){return t?"open":"closed"}var PW=MT,_W=ST,RW=NT,_T=LT;const TW=PW,DW=_W,RT=g.forwardRef(({className:t,align:a="center",sideOffset:n=4,...r},s)=>e.jsx(RW,{children:e.jsx(_T,{ref:s,align:a,sideOffset:n,className:ye("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",t),...r})}));RT.displayName=_T.displayName;function qW({open:t,onClose:a,onAdded:n,existingExperience:r,onUpdated:s}){const i=new Date().getFullYear(),o=Array.from({length:40},(m,x)=>`${i-x}`),[l,d]=M.useState({title:"",company:"",startYear:"",endYear:"",isPresent:!1,location:"",summary:"",tags:""});M.useEffect(()=>{if(r){const[m,x]=r.period.split(" - ");d({title:r.title,company:r.company,startYear:m||"",endYear:x==="Present"?"":x||"",isPresent:x==="Present",location:r.location||"",summary:r.summary||"",tags:r.tags.join(", ")})}else d({title:"",company:"",startYear:"",endYear:"",isPresent:!1,location:"",summary:"",tags:""})},[r,t]);const[h,u]=M.useState(!1),p=(m,x)=>d(f=>({...f,[m]:x})),y=()=>{const m=l.isPresent?`${l.startYear} - Present`:`${l.startYear} - ${l.endYear}`,x={id:(r==null?void 0:r.id)||`temp-${Date.now()}`,title:l.title,company:l.company,period:m,summary:l.summary.trim()||void 0,location:l.location.trim()||void 0,tags:l.tags.split(",").map(f=>f.trim()).filter(Boolean)};r?s==null||s(x):n(x),d({title:"",company:"",startYear:"",endYear:"",isPresent:!1,location:"",summary:"",tags:""}),a()};return e.jsx(St,{open:t,onOpenChange:a,children:e.jsxs(xt,{children:[e.jsx(st,{children:r?"Edit Work Experience":"Add Work Experience"}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{children:[e.jsx(O,{children:"Title"}),e.jsx(de,{value:l.title,onChange:m=>p("title",m.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Company"}),e.jsx(de,{value:l.company,onChange:m=>p("company",m.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Location (optional)"}),e.jsx(de,{value:l.location,onChange:m=>p("location",m.target.value),placeholder:"e.g., Malta or Remote"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx(O,{children:"Start Year"}),e.jsxs(tn,{onValueChange:m=>p("startYear",m),value:l.startYear,children:[e.jsx(za,{children:e.jsx(an,{placeholder:"Select year"})}),e.jsx(Ea,{children:o.map(m=>e.jsx(Mt,{value:m,children:m},m))})]})]}),!l.isPresent&&e.jsxs("div",{children:[e.jsx(O,{children:"End Year"}),e.jsxs(tn,{onValueChange:m=>p("endYear",m),value:l.endYear,children:[e.jsx(za,{children:e.jsx(an,{placeholder:"Select year"})}),e.jsx(Ea,{children:o.map(m=>e.jsx(Mt,{value:m,children:m},m))})]})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("input",{id:"present",type:"checkbox",checked:l.isPresent,onChange:m=>p("isPresent",m.target.checked),className:"w-4 h-4 accent-primary"}),e.jsx(O,{htmlFor:"present",children:"I currently work here"})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Summary (optional)"}),e.jsx(Et,{placeholder:"e.g., Led product roadmap for iGaming platform",value:l.summary,onChange:m=>p("summary",m.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Tags (comma-separated)"}),e.jsx(Et,{placeholder:"e.g., Product Strategy, iGaming, Agile",value:l.tags,onChange:m=>p("tags",m.target.value)})]})]}),e.jsxs(Zt,{children:[e.jsx(T,{variant:"outline",onClick:a,children:"Cancel"}),e.jsx(T,{onClick:y,disabled:h||!l.title||!l.company||!l.startYear||!l.isPresent&&!l.endYear,children:h?"Saving...":r?"Save Changes":"Add Experience"})]})]})})}function RL({open:t,onClose:a,onAdded:n,title:r,placeholder:s}){const[i,o]=M.useState("");M.useEffect(()=>{t||o("")},[t]);const l=()=>{i.trim()&&(n(i.trim()),o(""),a())};return e.jsx(St,{open:t,onOpenChange:a,children:e.jsxs(xt,{children:[e.jsx(da,{children:e.jsx(st,{children:r})}),e.jsx("div",{className:"space-y-4 py-2",children:e.jsxs("div",{children:[e.jsx(O,{children:r}),e.jsx(de,{value:i,onChange:d=>o(d.target.value),placeholder:s||"Type and save"})]})}),e.jsxs(Zt,{children:[e.jsx(T,{variant:"outline",onClick:a,children:"Cancel"}),e.jsx(T,{onClick:l,disabled:!i.trim(),children:"Add"})]})]})})}const TL=["Product Management","Project Management","Agile","Scrum","Leadership","Communication","Stakeholder Management","Game Design","Data Analysis","Marketing Strategy","UX/UI Design","Regulatory Compliance","Casino Operations","Sportsbook Operations","Frontend Development","Backend Development","React","TypeScript","Python","SQL","Kubernetes","Cloud Infrastructure"];function zW({open:t,onClose:a,onAdded:n}){const[r,s]=M.useState(""),[i,o]=M.useState(TL),l=()=>{r.trim()&&(n(r.trim()),s(""),a())},d=h=>{s(h);const u=TL.filter(p=>p.toLowerCase().includes(h.toLowerCase()));o(u)};return e.jsx(St,{open:t,onOpenChange:a,children:e.jsxs(xt,{children:[e.jsx(da,{children:e.jsx(st,{children:"Add Skill"})}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"skill",children:"Skill Name"}),e.jsx(de,{id:"skill",placeholder:"e.g. Product Strategy",value:r,onChange:h=>d(h.target.value)})]}),r&&i.length>0&&e.jsx("div",{className:"border rounded-md p-2 space-y-1 max-h-40 overflow-y-auto",children:i.map(h=>e.jsx("div",{className:"cursor-pointer px-2 py-1 hover:bg-muted rounded-md text-sm",onClick:()=>{s(h)},children:h},h))})]}),e.jsxs(Zt,{children:[e.jsx(T,{variant:"outline",onClick:a,children:"Cancel"}),e.jsx(T,{onClick:l,disabled:!r.trim(),children:"Add Skill"})]})]})})}const DL=["Regulation","Technology","Market Trends","Responsible Gaming","Game Design","Payments","Marketing","AI in iGaming","Player Retention","Security"];function EW({open:t,onClose:a,onAdded:n}){const[r,s]=M.useState(""),[i,o]=M.useState(DL),l=()=>{r.trim()&&(n(r.trim()),s(""),a())},d=h=>{s(h),o(DL.filter(u=>u.toLowerCase().includes(h.toLowerCase())))};return e.jsx(St,{open:t,onOpenChange:a,children:e.jsxs(xt,{children:[e.jsx(da,{children:e.jsx(st,{children:"Add Interested Topic"})}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"topic",children:"Topic"}),e.jsx(de,{id:"topic",placeholder:"e.g. Game Design",value:r,onChange:h=>d(h.target.value)})]}),r&&i.length>0&&e.jsx("div",{className:"border rounded-md p-2 space-y-1 max-h-40 overflow-y-auto",children:i.map(h=>e.jsx("div",{className:"cursor-pointer px-2 py-1 hover:bg-muted rounded-md text-sm",onClick:()=>s(h),children:h},h))})]}),e.jsxs(Zt,{children:[e.jsx(T,{variant:"outline",onClick:a,children:"Cancel"}),e.jsx(T,{onClick:l,disabled:!r.trim(),children:"Add Topic"})]})]})})}const FW=["English","Spanish","French","German","Italian","Portuguese","Polish","Turkish","Swedish","Norwegian","Finnish","Danish","Dutch","Japanese","Chinese","Korean"],OW=["Native","Fluent","Intermediate","Basic"];function HW({open:t,onClose:a,onAdded:n}){const[r,s]=M.useState({name:"",proficiency:""}),i=()=>{if(!r.name||!r.proficiency)return;const o={name:r.name,proficiency:r.proficiency};n(o),s({name:"",proficiency:""}),a()};return e.jsx(St,{open:t,onOpenChange:a,children:e.jsxs(xt,{children:[e.jsx(da,{children:e.jsx(st,{children:"Add Language"})}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{children:[e.jsx(O,{children:"Language"}),e.jsxs(tn,{value:r.name,onValueChange:o=>s(l=>({...l,name:o})),children:[e.jsx(za,{children:e.jsx(an,{placeholder:"Select a language"})}),e.jsx(Ea,{children:FW.map(o=>e.jsx(Mt,{value:o,children:o},o))})]})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Proficiency"}),e.jsxs(tn,{value:r.proficiency,onValueChange:o=>s(l=>({...l,proficiency:o})),children:[e.jsx(za,{children:e.jsx(an,{placeholder:"Select proficiency"})}),e.jsx(Ea,{children:OW.map(o=>e.jsx(Mt,{value:o,children:o},o))})]})]})]}),e.jsxs(Zt,{children:[e.jsx(T,{variant:"outline",onClick:a,children:"Cancel"}),e.jsx(T,{onClick:i,disabled:!r.name||!r.proficiency,children:"Add"})]})]})})}function VW({profile:t,onUpdate:a,isSaving:n=!1}){const[r,s]=M.useState(t),[i,o]=M.useState(!1),[l,d]=M.useState(null);M.useState(null);const[h,u]=M.useState(null),[p,y]=M.useState(!1),[m,x]=M.useState(!1),[f,v]=M.useState(!1),[k,w]=M.useState(!1),[b,C]=M.useState(!1),j=["Full-time","Part-time","Contract","Freelance","Internship","Temporary"],I=["English","Spanish","French","German","Italian","Portuguese","Polish","Turkish","Swedish","Norwegian","Finnish","Danish","Dutch","Japanese","Chinese","Korean"],N=()=>{l&&(s(_=>{const A={..._,workExperience:_.workExperience.filter(D=>D.id!==l)};return a({type:"profile",payload:A}),A}),d(null))},S=(_,A,D)=>{s(H=>({...H,[_]:{...H[_],[A]:D}}))},L=(_,A,D)=>{s(H=>({...H,[_]:{...H[_],[A]:D}}))},q=()=>{a({type:"profile",payload:r})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"Your Profile"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Manage your professional information"})]}),e.jsx(T,{onClick:q,disabled:n,children:n?"Saving...":"Save Changes"})]}),e.jsxs(nn,{defaultValue:"personal",className:"w-full",children:[e.jsxs(rn,{className:"grid w-full grid-cols-3 lg:grid-cols-7",children:[e.jsx(Pe,{value:"personal",children:"Personal"}),e.jsx(Pe,{value:"experience",children:"Experience"}),e.jsx(Pe,{value:"job-search",children:"Job Search"}),e.jsx(Pe,{value:"skills",children:"Skills"}),e.jsx(Pe,{value:"languages",children:"Languages"}),e.jsx(Pe,{value:"alerts",children:"Alerts"}),e.jsx(Pe,{value:"preferences",children:"Preferences"})]}),e.jsx(je,{value:"personal",children:e.jsxs(Q,{children:[e.jsxs(ce,{children:[e.jsx(ue,{children:"Personal Details"}),e.jsx(Se,{children:"Update your personal information"})]}),e.jsx(ee,{className:"space-y-4",children:e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"fullName",children:"Full Name"}),e.jsx(de,{id:"fullName",value:r.personalDetails.fullName??"",onChange:_=>S("personalDetails","fullName",_.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"email",children:"Email"}),e.jsx(de,{id:"email",type:"email",value:r.personalDetails.email??"",onChange:_=>S("personalDetails","email",_.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"phone",children:"Phone"}),e.jsx(de,{id:"phone",value:r.personalDetails.phone??"",onChange:_=>S("personalDetails","phone",_.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"location",children:"Location"}),e.jsx(de,{id:"location",value:r.personalDetails.location??"",onChange:_=>S("personalDetails","location",_.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"dob",children:"Date of Birth"}),e.jsx(de,{id:"dob",type:"date",value:r.personalDetails.dob??"",onChange:_=>S("personalDetails","dob",_.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"address",children:"Address"}),e.jsx(de,{id:"address",value:r.personalDetails.address??"",onChange:_=>S("personalDetails","address",_.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"nationality",children:"Nationality"}),e.jsx(de,{id:"nationality",value:r.personalDetails.nationality??"",onChange:_=>S("personalDetails","nationality",_.target.value)})]}),e.jsxs("div",{className:"space-y-2 md:col-span-2",children:[e.jsx(O,{htmlFor:"summary",children:"Summary"}),e.jsx(de,{id:"summary",value:r.personalDetails.summary??"",onChange:_=>S("personalDetails","summary",_.target.value)})]})]})})]})}),e.jsx(je,{value:"experience",children:e.jsxs(Q,{children:[e.jsxs(ce,{children:[e.jsx(ue,{children:"Work Experience"}),e.jsx(Se,{children:"Your iGaming industry experience"})]}),e.jsxs(ee,{className:"space-y-4",children:[r.workExperience.map(_=>e.jsxs("div",{className:"p-4 border rounded-lg space-y-2 relative group",children:[e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold",children:_.title}),e.jsx("p",{className:"text-sm text-muted-foreground",children:_.company}),e.jsx("p",{className:"text-xs text-muted-foreground",children:_.period}),_.location&&e.jsx("p",{className:"text-xs text-muted-foreground",children:_.location})]}),e.jsxs("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity flex gap-2",children:[e.jsx(T,{variant:"outline",size:"sm",onClick:()=>{const A=r.workExperience.find(D=>D.id===_.id);u(A||null),o(!0)},children:"Edit"}),e.jsx(T,{variant:"destructive",size:"sm",onClick:()=>d(_.id),children:"Delete"})]})]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:_.tags.map(A=>e.jsx(he,{variant:"secondary",children:A},A))}),_.summary&&e.jsx("p",{className:"text-sm text-muted-foreground",children:_.summary})]},_.id)),e.jsx(T,{variant:"outline",className:"w-full",onClick:()=>o(!0),children:"Add Experience"})]})]})}),e.jsx(qW,{open:i,onClose:()=>{o(!1),u(null)},existingExperience:h,onAdded:_=>{s(A=>({...A,workExperience:[...A.workExperience,_]}))},onUpdated:_=>{s(A=>({...A,workExperience:A.workExperience.map(D=>D.id===_.id?_:D)}))}}),e.jsx(jc,{open:!!l,onOpenChange:()=>d(null),children:e.jsxs(zo,{children:[e.jsxs(Eo,{children:[e.jsx(Oo,{children:"Delete Experience"}),e.jsx(Ho,{children:"Are you sure you want to delete this work experience? This action cannot be undone."})]}),e.jsxs(Fo,{children:[e.jsx(Bo,{children:"Cancel"}),e.jsx(Vo,{onClick:N,className:"bg-destructive text-white",children:"Delete"})]})]})}),e.jsxs(je,{value:"job-search",children:[e.jsxs(Q,{children:[e.jsxs(ce,{children:[e.jsx(ue,{children:"Job Search Details"}),e.jsx(Se,{children:"Define your ideal job preferences"})]}),e.jsxs(ee,{className:"space-y-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{children:"Desired Roles"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:r.jobSearchDetails.desiredRoles.map(_=>e.jsxs(he,{variant:"secondary",children:[_,e.jsx(T,{variant:"ghost",size:"sm",className:"ml-1 text-xs text-muted-foreground hover:text-destructive",onClick:()=>s(A=>({...A,jobSearchDetails:{...A.jobSearchDetails,desiredRoles:Array.from(new Set([...A.jobSearchDetails.desiredRoles,_]))}})),children:"✕"})]},_))}),e.jsx(T,{variant:"outline",size:"sm",onClick:()=>y(!0),children:"Add Role"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{children:"Preferred Locations"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:r.jobSearchDetails.locations.map(_=>e.jsxs(he,{variant:"secondary",children:[_,e.jsx(T,{variant:"ghost",size:"sm",className:"ml-1 text-xs text-muted-foreground hover:text-destructive",onClick:()=>s(A=>({...A,jobSearchDetails:{...A.jobSearchDetails,locations:A.jobSearchDetails.locations.filter(D=>D!==_)}})),children:"✕"})]},_))}),e.jsx(T,{variant:"outline",size:"sm",onClick:()=>x(!0),children:"Add Location"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{children:"Employment Type"}),e.jsxs(TW,{children:[e.jsx(DW,{asChild:!0,children:e.jsx(T,{variant:"outline",className:"w-full justify-between",children:r.jobSearchDetails.employmentType.length>0?r.jobSearchDetails.employmentType.join(", "):"Select Employment Type"})}),e.jsx(RT,{className:"w-64 p-2 space-y-2",children:j.map(_=>{const A=r.jobSearchDetails.employmentType.includes(_);return e.jsxs("div",{className:"flex items-center space-x-2",onClick:()=>s(D=>{const G=D.jobSearchDetails.employmentType.includes(_)?D.jobSearchDetails.employmentType.filter(V=>V!==_):[...D.jobSearchDetails.employmentType,_];return{...D,jobSearchDetails:{...D.jobSearchDetails,employmentType:G}}}),children:[e.jsx(_t,{checked:A}),e.jsx(O,{className:"text-sm",children:_})]},_)})})]})]})]})]}),e.jsx(RL,{open:p,onClose:()=>y(!1),title:"Add Desired Role",placeholder:"e.g. Senior Product Manager",onAdded:_=>s(A=>({...A,jobSearchDetails:{...A.jobSearchDetails,desiredRoles:[...A.jobSearchDetails.desiredRoles,_]}}))}),e.jsx(RL,{open:m,onClose:()=>x(!1),title:"Add Preferred Location",placeholder:"e.g. Malta or Remote",onAdded:_=>s(A=>({...A,jobSearchDetails:{...A.jobSearchDetails,locations:[...A.jobSearchDetails.locations,_]}}))})]}),e.jsxs(je,{value:"skills",children:[e.jsxs(Q,{children:[e.jsxs(ce,{children:[e.jsx(ue,{children:"Skill Set"}),e.jsx(Se,{children:"Your professional skills and expertise"})]}),e.jsxs(ee,{className:"space-y-4",children:[e.jsx("div",{className:"flex flex-wrap gap-2",children:r.skills.map(_=>e.jsxs(he,{variant:"secondary",className:"flex items-center gap-1",children:[_,e.jsx(T,{variant:"ghost",size:"sm",className:"ml-1 text-xs text-muted-foreground hover:text-destructive",onClick:()=>s(A=>({...A,skills:A.skills.filter(D=>D!==_)})),children:"✕"})]},_))}),e.jsx(T,{variant:"outline",onClick:()=>v(!0),children:"Add Skill"})]})]}),e.jsx(zW,{open:f,onClose:()=>v(!1),onAdded:_=>s(A=>({...A,skills:Array.from(new Set([...A.skills,_]))}))})]}),e.jsxs(je,{value:"languages",children:[e.jsxs(Q,{children:[e.jsxs(ce,{children:[e.jsx(ue,{children:"Languages"}),e.jsx(Se,{children:"Your spoken and professional languages"})]}),e.jsxs(ee,{className:"space-y-4",children:[e.jsx("div",{className:"flex flex-wrap gap-2",children:r.languages.map((_,A)=>e.jsxs(he,{variant:"secondary",className:"flex items-center gap-1",children:[_.name," — ",_.proficiency,e.jsx(T,{variant:"ghost",size:"sm",className:"ml-1 text-xs text-muted-foreground hover:text-destructive",onClick:()=>s(D=>({...D,languages:D.languages.filter((H,G)=>G!==A)})),children:"✕"})]},`${_.name}-${A}`))}),e.jsx(T,{variant:"outline",onClick:()=>C(!0),children:"Add Language"})]})]}),e.jsx(HW,{open:b,onClose:()=>C(!1),onAdded:_=>s(A=>({...A,languages:[...A.languages,_]}))})]}),e.jsx(je,{value:"alerts",children:e.jsxs(Q,{children:[e.jsxs(ce,{children:[e.jsx(ue,{children:"Alerts & Subscriptions"}),e.jsx(Se,{children:"Manage your notification preferences"})]}),e.jsxs(ee,{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(O,{htmlFor:"job-alerts",className:"text-base",children:"Job Alerts"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Get notified about new job matches"})]}),e.jsx(ut,{id:"job-alerts",checked:r.alerts.jobAlerts,onCheckedChange:_=>L("alerts","jobAlerts",_)})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(O,{htmlFor:"course-alerts",className:"text-base",children:"Course Alerts"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Updates on new courses and training"})]}),e.jsx(ut,{id:"course-alerts",checked:r.alerts.courseAlerts,onCheckedChange:_=>L("alerts","courseAlerts",_)})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(O,{htmlFor:"news-alerts",className:"text-base",children:"News Alerts"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Industry news and updates"})]}),e.jsx(ut,{id:"news-alerts",checked:r.alerts.newsAlerts,onCheckedChange:_=>L("alerts","newsAlerts",_)})]})]})]})}),e.jsxs(je,{value:"preferences",children:[e.jsxs(Q,{children:[e.jsxs(ce,{children:[e.jsx(ue,{children:"Preferences"}),e.jsx(Se,{children:"Customize your platform experience"})]}),e.jsxs(ee,{className:"space-y-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{children:"Interested Topics"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:r.preferences.topics.map(_=>e.jsxs(he,{variant:"secondary",className:"flex items-center gap-1",children:[_,e.jsx(T,{variant:"ghost",size:"sm",className:"ml-1 text-xs text-muted-foreground hover:text-destructive",onClick:()=>s(A=>({...A,preferences:{...A.preferences,topics:A.preferences.topics.filter(D=>D!==_)}})),children:"✕"})]},_))}),e.jsx(T,{variant:"outline",size:"sm",onClick:()=>w(!0),children:"Manage Topics"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"language",children:"Language"}),e.jsxs(tn,{value:r.preferences.language,onValueChange:_=>S("preferences","language",_),children:[e.jsx(za,{id:"language",children:e.jsx(an,{placeholder:"Select your preferred language"})}),e.jsx(Ea,{children:I.map(_=>e.jsx(Mt,{value:_,children:_},_))})]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(O,{htmlFor:"email-notif",className:"text-base",children:"Email Notifications"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Receive updates via email"})]}),e.jsx(ut,{id:"email-notif",checked:r.preferences.emailNotifications,onCheckedChange:_=>L("preferences","emailNotifications",_)})]})]})]}),e.jsx(EW,{open:k,onClose:()=>w(!1),onAdded:_=>s(A=>({...A,preferences:{...A.preferences,topics:Array.from(new Set([...A.preferences.topics,_]))}}))})]})]})]})}const BW=t=>t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`,qL=800;function $W({onCVChange:t,previewText:a,previewStatus:n="idle",previewErrorMessage:r}){const[s,i]=M.useState(!1),[o,l]=M.useState(null),[d,h]=M.useState(null),[u,p]=M.useState(null),[y,m]=M.useState(!1);M.useEffect(()=>()=>{d&&URL.revokeObjectURL(d)},[d]);const x=M.useMemo(()=>o?{name:o.name,size:BW(o.size),lastModified:new Date(o.lastModified).toLocaleDateString()}:null,[o]),f=async C=>{var N;const j=(N=C.target.files)==null?void 0:N[0];if(!j)return;if(j.type!=="application/pdf"){p("Only PDF files are supported.");return}d&&URL.revokeObjectURL(d);const I=URL.createObjectURL(j);l(j),h(I),m(!1),t(j)},v=()=>{d&&URL.revokeObjectURL(d),l(null),h(null),p(null),m(!1),t(null)},k=(a==null?void 0:a.replace(/\s{2,}/g," ").replace(/\n{3,}/g,`
7835
+ `;function BG({allow:t="analytics",scriptId:a="ga",scriptStrategy:n="afterInteractive",scriptContent:r=VG}){return e.jsx(iE,{allow:t,children:e.jsx(HG,{id:a,strategy:n,children:r})})}const $G=Uj("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Ml=g.forwardRef(({className:t,variant:a,...n},r)=>e.jsx("div",{ref:r,role:"alert",className:fe($G({variant:a}),t),...n}));Ml.displayName="Alert";const UG=g.forwardRef(({className:t,...a},n)=>e.jsx("h5",{ref:n,className:fe("mb-1 font-medium leading-none tracking-tight",t),...a}));UG.displayName="AlertTitle";const jl=g.forwardRef(({className:t,...a},n)=>e.jsx("div",{ref:n,className:fe("text-sm [&_p]:leading-relaxed",t),...a}));jl.displayName="AlertDescription";function GG({onSubmit:t,onForgotPassword:a,onRegisterClick:n,isLoading:r=!1,error:s,title:i="Welcome Back",description:o="Sign in to your account to continue",identifierLabel:l="Email or Username",identifierPlaceholder:d="you@example.com"}){const[h,u]=M.useState(""),[p,y]=M.useState(""),[m,x]=M.useState(!1),f=v=>{v.preventDefault(),t(h,p,m)};return e.jsxs(Q,{className:"w-full max-w-md",children:[e.jsxs(le,{className:"space-y-1",children:[e.jsx(ue,{className:"text-2xl font-bold",children:i}),e.jsx(Se,{children:o})]}),e.jsxs("form",{onSubmit:f,children:[e.jsxs(ee,{className:"space-y-4",children:[s&&e.jsxs(Ml,{variant:"destructive",children:[e.jsx(Ht,{className:"h-4 w-4"}),e.jsx(jl,{children:s})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"identifier",children:l}),e.jsxs("div",{className:"relative",children:[e.jsx(ca,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),e.jsx(de,{id:"identifier",type:"text",placeholder:d,value:h,onChange:v=>u(v.target.value),className:"pl-10",required:!0,disabled:r})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"password",children:"Password"}),e.jsxs("div",{className:"relative",children:[e.jsx(ko,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),e.jsx(de,{id:"password",type:"password",placeholder:"••••••••",value:p,onChange:v=>y(v.target.value),className:"pl-10",required:!0,disabled:r})]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:"remember",checked:m,onCheckedChange:v=>x(v),disabled:r}),e.jsx(O,{htmlFor:"remember",className:"text-sm font-normal cursor-pointer",children:"Remember me"})]}),a&&e.jsx("button",{type:"button",onClick:a,className:"text-sm text-accent hover:underline",disabled:r,children:"Forgot password?"})]})]}),e.jsxs(Lo,{className:"flex flex-col space-y-4",children:[e.jsx(T,{type:"submit",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:r,children:r?"Signing in...":"Sign In"}),n&&e.jsxs("div",{className:"text-sm text-center text-muted-foreground",children:["Don't have an account?"," ",e.jsx("button",{type:"button",onClick:n,className:"text-accent hover:underline font-medium",disabled:r,children:"Create account"})]})]})]})]})}const WG=({onSubmit:t,onForgotPassword:a,onRegisterClick:n,isLoading:r=!1,error:s="",appName:i="Your App",logo:o,identifierLabel:l="Email or Username",identifierPlaceholder:d="you@example.com"})=>e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4",children:e.jsxs("div",{className:"w-full max-w-md",children:[e.jsxs("div",{className:"mb-8 text-center",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[o||e.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-accent",children:e.jsx("span",{className:"text-xl font-bold text-accent-foreground",children:"APP"})}),e.jsx("span",{className:"text-2xl font-bold text-white",children:i})]}),e.jsx("p",{className:"text-gray-300",children:"Access your dashboard"})]}),e.jsx(GG,{onSubmit:t,onForgotPassword:a,onRegisterClick:n,isLoading:r,error:s,identifierLabel:l,identifierPlaceholder:d})]})});function ZG({onSubmit:t,fields:a,onLoginClick:n,isLoading:r=!1,error:s,title:i="Create Account",description:o="Join us to access exclusive opportunities"}){const[l,d]=M.useState({}),[h,u]=M.useState(""),p=(m,x)=>d(f=>({...f,[m]:x})),y=m=>{if(m.preventDefault(),u(""),"password"in l&&("confirmPassword"in l||"password2"in l)){const f=l.confirmPassword??l.password2;if(l.password!==f){u("Passwords do not match");return}}const x={...l};if("confirmPassword"in x&&!("password2"in x)&&(x.password2=x.confirmPassword,delete x.confirmPassword),"fullName"in x&&!("first_name"in x)&&!("last_name"in x)){const f=String(x.fullName||"").trim().split(/\s+/).filter(Boolean);f.length>0&&(x.first_name=f[0],f.length>1&&(x.last_name=f.slice(1).join(" "))),delete x.fullName}t(x)};return e.jsxs(Q,{className:"w-full max-w-md",children:[e.jsxs(le,{className:"space-y-1",children:[e.jsx(ue,{className:"text-2xl font-bold",children:i}),e.jsx(Se,{children:o})]}),e.jsxs("form",{onSubmit:y,children:[e.jsxs(ee,{className:"space-y-4",children:[(s||h)&&e.jsxs(Ml,{variant:"destructive",children:[e.jsx(Ht,{className:"h-4 w-4"}),e.jsx(jl,{children:s||h})]}),a.map(m=>e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:m.name,children:m.label}),e.jsx(de,{id:m.name,type:m.type||"text",placeholder:m.placeholder,required:m.required,disabled:r,value:l[m.name]||"",onChange:x=>p(m.name,x.target.value)})]},m.name))]}),e.jsxs(Lo,{className:"flex flex-col space-y-4",children:[e.jsx(T,{type:"submit",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:r,children:r?"Creating account...":"Create Account"}),n&&e.jsxs("div",{className:"text-sm text-center text-muted-foreground",children:["Already have an account?"," ",e.jsx("button",{type:"button",onClick:n,className:"text-accent hover:underline font-medium",disabled:r,children:"Sign in"})]})]})]})]})}const JG=({onSubmit:t,fields:a,onLoginClick:n,isLoading:r=!1,error:s="",appName:i="Your App",logo:o,title:l="Create Account",description:d="Join us to access exclusive opportunities"})=>e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4",children:e.jsxs("div",{className:"w-full max-w-md",children:[e.jsxs("div",{className:"mb-8 text-center",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[o||e.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-accent",children:e.jsx("span",{className:"text-xl font-bold text-accent-foreground",children:"APP"})}),e.jsx("span",{className:"text-2xl font-bold text-white",children:i})]}),e.jsx("p",{className:"text-gray-300",children:"Start your journey"})]}),e.jsx(ZG,{onSubmit:t,fields:a,onLoginClick:n,isLoading:r,error:s,title:l,description:d})]})}),XG=t=>{let a=0;return t.length>=8&&(a+=1),/[A-Z]/.test(t)&&(a+=1),/[a-z]/.test(t)&&(a+=1),/\d/.test(t)&&(a+=1),/[^A-Za-z0-9]/.test(t)&&(a+=1),t?a<=2?{label:"Weak",score:a}:a<=4?{label:"Good",score:a}:{label:"Strong",score:a}:{label:"",score:0}};function YG({onSubmit:t,fields:a,optionalFields:n=[],onLoginClick:r,isLoading:s=!1,error:i,title:o="Create Account",description:l="Join iGaming Career in seconds",privacyNote:d="We respect your privacy. Your data is protected and never shared without consent."}){const[h,u]=M.useState({}),[p,y]=M.useState(""),[m,x]=M.useState(!1),[f,v]=M.useState({}),k=M.useMemo(()=>{const N=a.find(S=>S.type==="password"||S.name==="password");return N&&h[N.name]||""},[a,h]),w=M.useMemo(()=>XG(k),[k]),b=(N,S)=>u(L=>({...L,[N]:S})),C=N=>{if(N.preventDefault(),y(""),"password"in h&&("confirmPassword"in h||"password2"in h)){const L=h.confirmPassword??h.password2;if(h.password!==L){y("Passwords do not match");return}}const S={...h};if("confirmPassword"in S&&!("password2"in S)&&(S.password2=S.confirmPassword,delete S.confirmPassword),"fullName"in S&&!("first_name"in S)&&!("last_name"in S)){const L=String(S.fullName||"").trim().split(/\s+/).filter(Boolean);L.length>0&&(S.first_name=L[0],L.length>1&&(S.last_name=L.slice(1).join(" "))),delete S.fullName}t(S)},j=N=>e.jsx("button",{type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 text-xs font-medium text-muted-foreground hover:text-foreground",onClick:()=>v(S=>({...S,[N]:!S[N]})),disabled:s,children:f[N]?e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx(Oc,{className:"h-3.5 w-3.5"})," Hide"]}):e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx(tc,{className:"h-3.5 w-3.5"})," Show"]})}),I=N=>{const S=N.type==="password"||N.name.toLowerCase().includes("password");return e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:N.name,children:N.label}),e.jsxs("div",{className:S?"relative":void 0,children:[e.jsx(de,{id:N.name,type:S?f[N.name]?"text":"password":N.type||"text",placeholder:N.placeholder,required:N.required,disabled:s,value:h[N.name]||"",onChange:L=>b(N.name,L.target.value),className:S?"pr-20":void 0}),S?j(N.name):null]}),S&&N.name==="password"&&w.label?e.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx(rc,{className:"h-3.5 w-3.5"})," Strength:"]}),e.jsx("span",{className:w.label==="Weak"?"text-destructive":w.label==="Good"?"text-amber-500":"text-emerald-500",children:w.label})]}):null]},N.name)};return e.jsxs(Q,{className:"w-full max-w-md",children:[e.jsxs(le,{className:"space-y-1",children:[e.jsx(ue,{className:"text-2xl font-bold",children:o}),e.jsx(Se,{children:l})]}),e.jsxs("form",{onSubmit:C,children:[e.jsxs(ee,{className:"space-y-4",children:[(i||p)&&e.jsxs(Ml,{variant:"destructive",children:[e.jsx(Ht,{className:"h-4 w-4"}),e.jsx(jl,{children:i||p})]}),e.jsx("div",{className:"space-y-4",children:a.map(N=>I(N))}),n.length>0&&e.jsxs("div",{className:"space-y-3 pt-2",children:[e.jsx("button",{type:"button",onClick:()=>x(N=>!N),className:"text-sm font-medium text-accent hover:underline",disabled:s,children:m?"Hide optional details":"Complete your profile (optional)"}),m&&e.jsx("div",{className:"space-y-4 rounded-lg border border-dashed border-muted-foreground/40 p-4",children:n.map(N=>I(N))})]})]}),e.jsxs(Lo,{className:"flex flex-col space-y-4",children:[e.jsx(T,{type:"submit",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:s,children:s?"Creating account...":"Create Account"}),e.jsx("p",{className:"text-center text-xs text-muted-foreground",children:d}),r&&e.jsxs("div",{className:"text-sm text-center text-muted-foreground",children:["Already have an account?"," ",e.jsx("button",{type:"button",onClick:r,className:"text-accent hover:underline font-medium",disabled:s,children:"Sign in"})]})]})]})]})}const KG=({onSubmit:t,fields:a,optionalFields:n,onLoginClick:r,isLoading:s=!1,error:i="",appName:o="Your App",logo:l,title:d="Create Account",description:h="Join iGaming Career in seconds",privacyNote:u})=>e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4",children:e.jsxs("div",{className:"w-full max-w-md",children:[e.jsxs("div",{className:"mb-8 text-center",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[l||e.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-accent",children:e.jsx("span",{className:"text-xl font-bold text-accent-foreground",children:"APP"})}),e.jsx("span",{className:"text-2xl font-bold text-white",children:o})]}),e.jsx("p",{className:"text-gray-300",children:"Start your journey"})]}),e.jsx(YG,{onSubmit:t,fields:a,optionalFields:n,onLoginClick:r,isLoading:s,error:i,title:d,description:h,privacyNote:u})]})});function QG({onSubmit:t,onBackToLogin:a,isLoading:n=!1,error:r,success:s=!1,title:i="Reset Password",description:o="Enter your email address and we'll send you a link to reset your password",successMessage:l="If an account exists with that email, you will receive a password reset link shortly. Please check your inbox and spam folder."}){const[d,h]=M.useState(""),u=p=>{p.preventDefault(),t(d)};return s?e.jsxs(Q,{className:"w-full max-w-md",children:[e.jsxs(le,{className:"space-y-1",children:[e.jsx("div",{className:"flex items-center justify-center mb-4",children:e.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-green-100",children:e.jsx(Vt,{className:"h-6 w-6 text-green-600"})})}),e.jsx(ue,{className:"text-2xl font-bold text-center",children:"Check Your Email"}),e.jsx(Se,{className:"text-center",children:l})]}),e.jsx(Lo,{className:"flex flex-col space-y-4",children:a&&e.jsxs(T,{type:"button",variant:"outline",className:"w-full",onClick:a,children:[e.jsx(Ja,{className:"mr-2 h-4 w-4"}),"Back to Login"]})})]}):e.jsxs(Q,{className:"w-full max-w-md",children:[e.jsxs(le,{className:"space-y-1",children:[e.jsx(ue,{className:"text-2xl font-bold",children:i}),e.jsx(Se,{children:o})]}),e.jsxs("form",{onSubmit:u,children:[e.jsxs(ee,{className:"space-y-4",children:[r&&e.jsxs(Ml,{variant:"destructive",children:[e.jsx(Ht,{className:"h-4 w-4"}),e.jsx(jl,{children:r})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"email",children:"Email Address"}),e.jsxs("div",{className:"relative",children:[e.jsx(ca,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),e.jsx(de,{id:"email",type:"email",placeholder:"you@example.com",value:d,onChange:p=>h(p.target.value),className:"pl-10",required:!0,disabled:n})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"We'll send you an email with instructions to reset your password"})]})]}),e.jsxs(Lo,{className:"flex flex-col space-y-4",children:[e.jsx(T,{type:"submit",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:n,children:n?"Sending...":"Send Reset Link"}),a&&e.jsxs(T,{type:"button",variant:"ghost",className:"w-full",onClick:a,disabled:n,children:[e.jsx(Ja,{className:"mr-2 h-4 w-4"}),"Back to Login"]})]})]})]})}const eW=({onSubmit:t,onBackToLogin:a,isLoading:n=!1,error:r="",success:s=!1,appName:i="Your App",logo:o})=>e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4",children:e.jsxs("div",{className:"w-full max-w-md",children:[e.jsxs("div",{className:"mb-8 text-center",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[o||e.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-accent",children:e.jsx("span",{className:"text-xl font-bold text-accent-foreground",children:"APP"})}),e.jsx("span",{className:"text-2xl font-bold text-white",children:i})]}),e.jsx("p",{className:"text-gray-300",children:"Recover your account access"})]}),e.jsx(QG,{onSubmit:t,onBackToLogin:a,isLoading:n,error:r,success:s})]})}),tW=["Save and track your favorite jobs","Unlock full job descriptions","Get personalized recommendations"],aW=t=>{if(!t)return"continue";const a=t.trim();return a.length===0?"continue":a.toLowerCase()},nW=({open:t,onClose:a,onLogin:n,onRegister:r,appName:s="Your App",attemptedAction:i,title:o="Sign in to continue",description:l,helperContent:d})=>{const h=aW(i),u=l??`Please sign in to ${h} and keep your progress synced with ${s}.`;return e.jsx(St,{open:t,onOpenChange:p=>!p&&a(),children:e.jsxs(xt,{className:"sm:max-w-lg",children:[e.jsxs(da,{className:"space-y-2",children:[e.jsxs(st,{className:"flex items-center gap-2 text-xl font-semibold",children:[e.jsx("span",{className:"flex h-9 w-9 items-center justify-center rounded-full bg-accent/10 text-accent",children:e.jsx(Ht,{className:"h-5 w-5"})}),o]}),e.jsx(Tn,{className:"text-base text-muted-foreground",children:u})]}),e.jsxs("div",{className:"mt-2 space-y-4",children:[e.jsxs("div",{className:"rounded-lg border border-border/60 bg-muted/30 p-4",children:[e.jsxs("div",{className:"mb-3 flex items-center gap-2 text-sm font-medium text-foreground",children:[e.jsx(Ca,{className:"h-4 w-4 text-accent"}),"Why create an account?"]}),e.jsx("ul",{className:"space-y-2 text-sm text-muted-foreground",children:tW.map(p=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"mt-1 block h-1.5 w-1.5 rounded-full bg-accent","aria-hidden":!0}),e.jsx("span",{children:p})]},p))})]}),d&&e.jsx("div",{className:"rounded-md bg-card p-4 text-sm text-muted-foreground shadow-sm",children:d})]}),e.jsx(JS,{className:"my-4"}),e.jsxs(Zt,{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[e.jsx(T,{variant:"outline",onClick:r,className:"w-full",children:"Create account"}),e.jsx(T,{onClick:n,className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",children:"Sign in"}),e.jsx(T,{variant:"ghost",onClick:a,className:"w-full sm:col-span-2 text-muted-foreground",children:"Maybe later"})]})]})})},rW=[{icon:$c,label:"Dashboard",path:"/dashboard"},{icon:Ze,label:"My Jobs",path:"/dashboard/jobs"},{icon:ia,label:"Courses",path:"/dashboard/courses"},{icon:vo,label:"Settings",path:"/dashboard/settings"}];function sW({children:t,user:a={name:"User",email:"user@example.com"},onLogout:n,onNavigate:r,currentPath:s="/dashboard",notificationCount:i=0}){return e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"flex",children:[e.jsxs("aside",{className:"hidden md:flex w-64 flex-col border-r bg-card h-[calc(100vh-4rem)]",children:[e.jsx("nav",{className:"flex-1 space-y-1 p-4",children:rW.map(o=>{const l=o.icon,d=s===o.path;return e.jsxs("button",{onClick:()=>r==null?void 0:r(o.path),className:`flex w-full items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium transition-colors ${d?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground"}`,children:[e.jsx(l,{className:"h-4 w-4"}),o.label]},o.path)})}),n&&e.jsx("div",{className:"border-t p-4",children:e.jsxs(T,{variant:"ghost",className:"w-full justify-start text-muted-foreground hover:text-foreground",onClick:n,children:[e.jsx(Zc,{className:"mr-3 h-4 w-4"}),"Logout"]})})]}),e.jsx("main",{className:"flex-1 p-6 md:p-8",children:t})]})})}function iW({userName:t,feedItems:a,alerts:n,snapshot:r,onSave:s,onApply:i,onEnroll:o,onRead:l}){const d=u=>{switch(u){case"job":return Ze;case"course":return ia;case"news":return Aa;default:return Ze}},h=u=>{switch(u.type){case"job":return e.jsxs(e.Fragment,{children:[e.jsx(T,{variant:"outline",size:"sm",onClick:()=>s(u.id),children:"Save"}),e.jsx(T,{size:"sm",onClick:()=>i(u.id),children:"Apply"})]});case"course":return e.jsxs(e.Fragment,{children:[e.jsx(T,{variant:"outline",size:"sm",onClick:()=>s(u.id),children:"Save"}),e.jsx(T,{size:"sm",onClick:()=>o(u.id),children:"Enroll"})]});case"news":return e.jsx(T,{size:"sm",onClick:()=>l(u.id),children:"Read"});default:return null}};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsxs("h2",{className:"text-3xl font-bold",children:["Welcome back, ",t," 👋"]}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Your personalized iGaming career hub"})]}),e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-4",children:[e.jsx("h3",{className:"text-xl font-semibold",children:"Your Feed"}),a.map(u=>{const p=d(u.type);return e.jsxs(Q,{children:[e.jsxs(le,{children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(p,{className:"h-5 w-5 text-primary"}),e.jsx(he,{variant:"secondary",children:u.type})]}),e.jsx("span",{className:"text-xs text-muted-foreground",children:u.timestamp})]}),e.jsx(ue,{className:"text-lg mt-2",children:u.title}),u.company&&e.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Ko,{className:"h-4 w-4"}),u.company]}),u.location&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Qe,{className:"h-4 w-4"}),u.location]})]}),e.jsx(Se,{children:u.description})]}),e.jsxs(ee,{children:[e.jsx("div",{className:"flex flex-wrap gap-2 mb-4",children:u.tags.map(y=>e.jsx(he,{variant:"outline",children:y},y))}),u.reason&&e.jsxs("p",{className:"text-xs text-muted-foreground mb-3 italic",children:["💡 ",u.reason]}),e.jsx("div",{className:"flex gap-2",children:h(u)})]})]},u.id)})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs(Q,{children:[e.jsx(le,{children:e.jsxs(ue,{className:"flex items-center gap-2",children:[e.jsx(Pa,{className:"h-5 w-5"}),"Your iGaming Career Snapshot"]})}),e.jsx(ee,{className:"space-y-3",children:r.map(u=>e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:u.label}),e.jsxs("div",{className:"text-right",children:[e.jsx("span",{className:"font-semibold",children:u.value}),u.trend&&e.jsx("span",{className:"text-xs text-green-600 ml-2",children:u.trend})]})]},u.label))})]}),e.jsxs(Q,{children:[e.jsx(le,{children:e.jsxs(ue,{className:"flex items-center gap-2",children:[e.jsx(ga,{className:"h-5 w-5"}),"Alerts & Notifications"]})}),e.jsx(ee,{className:"space-y-3",children:n.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:"No new alerts"}):n.map(u=>e.jsxs("div",{className:"p-3 rounded-lg bg-secondary/50 text-sm",children:[e.jsx(he,{variant:"outline",className:"mb-2",children:u.type}),e.jsx("p",{children:u.message})]},u.id))})]})]})]})]})}function cl(t,a,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t==null||t(s),n===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}function _L(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function oW(...t){return a=>{let n=!1;const r=t.map(s=>{const i=_L(s,a);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():_L(t[s],null)}}}}function tN(...t){return g.useCallback(oW(...t),t)}function cW(t,a=[]){let n=[];function r(i,o){const l=g.createContext(o),d=n.length;n=[...n,o];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=n.map(o=>g.createContext(o));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[r,lW(s,...a)]}function lW(...t){const a=t[0];if(t.length===1)return a;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:o}),[o])}};return n.scopeName=a.scopeName,n}var Vj=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},dW=g[" useId ".trim().toString()]||(()=>{}),hW=0;function uW(t){const[a,n]=g.useState(dW());return Vj(()=>{t||n(r=>r??String(hW++))},[t]),t||(a?`radix-${a}`:"")}function pW(t,a){return g.useReducer((n,r)=>a[n][r]??n,t)}var aN=t=>{const{present:a,children:n}=t,r=mW(a),s=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),i=tN(r.ref,yW(s));return typeof n=="function"||r.isPresent?g.cloneElement(s,{ref:i}):null};aN.displayName="Presence";function mW(t){const[a,n]=g.useState(),r=g.useRef(null),s=g.useRef(t),i=g.useRef("none"),o=t?"mounted":"unmounted",[l,d]=pW(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const h=Hl(r.current);i.current=l==="mounted"?h:"none"},[l]),Vj(()=>{const h=r.current,u=s.current;if(u!==t){const y=i.current,m=Hl(h);t?d("MOUNT"):m==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(u&&y!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,d]),Vj(()=>{if(a){let h;const u=a.ownerDocument.defaultView??window,p=m=>{const f=Hl(r.current).includes(CSS.escape(m.animationName));if(m.target===a&&f&&(d("ANIMATION_END"),!s.current)){const v=a.style.animationFillMode;a.style.animationFillMode="forwards",h=u.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=v)})}},y=m=>{m.target===a&&(i.current=Hl(r.current))};return a.addEventListener("animationstart",y),a.addEventListener("animationcancel",p),a.addEventListener("animationend",p),()=>{u.clearTimeout(h),a.removeEventListener("animationstart",y),a.removeEventListener("animationcancel",p),a.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[a,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(h=>{r.current=h?getComputedStyle(h):null,n(h)},[])}}function Hl(t){return(t==null?void 0:t.animationName)||"none"}function yW(t){var r,s;let a=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=a&&"isReactWarning"in a&&a.isReactWarning;return n?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=a&&"isReactWarning"in a&&a.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var fW=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],wT=fW.reduce((t,a)=>{const n=Ye(`Primitive.${a}`),r=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{}),xW=g[" useInsertionEffect ".trim().toString()]||Vj;function gW({prop:t,defaultProp:a,onChange:n=()=>{},caller:r}){const[s,i,o]=kW({defaultProp:a,onChange:n}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,r])}const h=g.useCallback(u=>{var p;if(l){const y=vW(u)?u(t):u;y!==t&&((p=o.current)==null||p.call(o,y))}else i(u)},[l,t,i,o]);return[d,h]}function kW({defaultProp:t,onChange:a}){const[n,r]=g.useState(t),s=g.useRef(n),i=g.useRef(a);return xW(()=>{i.current=a},[a]),g.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function vW(t){return typeof t=="function"}var k9="Popover",[bT,pZ]=cW(k9,[p9]),Cl=p9(),[wW,Bn]=bT(k9),MT=t=>{const{__scopePopover:a,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!1}=t,l=Cl(a),d=g.useRef(null),[h,u]=g.useState(!1),[p,y]=gW({prop:r,defaultProp:s??!1,onChange:i,caller:k9});return e.jsx(z_,{...l,children:e.jsx(wW,{scope:a,contentId:uW(),triggerRef:d,open:p,onOpenChange:y,onOpenToggle:g.useCallback(()=>y(m=>!m),[y]),hasCustomAnchor:h,onCustomAnchorAdd:g.useCallback(()=>u(!0),[]),onCustomAnchorRemove:g.useCallback(()=>u(!1),[]),modal:o,children:n})})};MT.displayName=k9;var jT="PopoverAnchor",bW=g.forwardRef((t,a)=>{const{__scopePopover:n,...r}=t,s=Bn(jT,n),i=Cl(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:l}=s;return g.useEffect(()=>(o(),()=>l()),[o,l]),e.jsx(WS,{...i,...r,ref:a})});bW.displayName=jT;var CT="PopoverTrigger",ST=g.forwardRef((t,a)=>{const{__scopePopover:n,...r}=t,s=Bn(CT,n),i=Cl(n),o=tN(a,s.triggerRef),l=e.jsx(wT.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":PT(s.open),...r,ref:o,onClick:cl(t.onClick,s.onOpenToggle)});return s.hasCustomAnchor?l:e.jsx(WS,{asChild:!0,...i,children:l})});ST.displayName=CT;var nN="PopoverPortal",[MW,jW]=bT(nN,{forceMount:void 0}),NT=t=>{const{__scopePopover:a,forceMount:n,children:r,container:s}=t,i=Bn(nN,a);return e.jsx(MW,{scope:a,forceMount:n,children:e.jsx(aN,{present:n||i.open,children:e.jsx(a9,{asChild:!0,container:s,children:r})})})};NT.displayName=nN;var kc="PopoverContent",LT=g.forwardRef((t,a)=>{const n=jW(kc,t.__scopePopover),{forceMount:r=n.forceMount,...s}=t,i=Bn(kc,t.__scopePopover);return e.jsx(aN,{present:r||i.open,children:i.modal?e.jsx(SW,{...s,ref:a}):e.jsx(NW,{...s,ref:a})})});LT.displayName=kc;var CW=Ye("PopoverContent.RemoveScroll"),SW=g.forwardRef((t,a)=>{const n=Bn(kc,t.__scopePopover),r=g.useRef(null),s=tN(a,r),i=g.useRef(!1);return g.useEffect(()=>{const o=r.current;if(o)return wS(o)},[]),e.jsx(s9,{as:CW,allowPinchZoom:!0,children:e.jsx(IT,{...t,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:cl(t.onCloseAutoFocus,o=>{var l;o.preventDefault(),i.current||(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:cl(t.onPointerDownOutside,o=>{const l=o.detail.originalEvent,d=l.button===0&&l.ctrlKey===!0,h=l.button===2||d;i.current=h},{checkForDefaultPrevented:!1}),onFocusOutside:cl(t.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),NW=g.forwardRef((t,a)=>{const n=Bn(kc,t.__scopePopover),r=g.useRef(!1),s=g.useRef(!1);return e.jsx(IT,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,l;(o=t.onCloseAutoFocus)==null||o.call(t,i),i.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var d,h;(d=t.onInteractOutside)==null||d.call(t,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((h=n.triggerRef.current)==null?void 0:h.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),IT=g.forwardRef((t,a)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:u,...p}=t,y=Bn(kc,n),m=Cl(n);return vS(),e.jsx(t9,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:e.jsx(e9,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:h,onDismiss:()=>y.onOpenChange(!1),children:e.jsx(E_,{"data-state":PT(y.open),role:"dialog",id:y.contentId,...m,...p,ref:a,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),AT="PopoverClose",LW=g.forwardRef((t,a)=>{const{__scopePopover:n,...r}=t,s=Bn(AT,n);return e.jsx(wT.button,{type:"button",...r,ref:a,onClick:cl(t.onClick,()=>s.onOpenChange(!1))})});LW.displayName=AT;var IW="PopoverArrow",AW=g.forwardRef((t,a)=>{const{__scopePopover:n,...r}=t,s=Cl(n);return e.jsx(F_,{...s,...r,ref:a})});AW.displayName=IW;function PT(t){return t?"open":"closed"}var PW=MT,_W=ST,RW=NT,_T=LT;const TW=PW,DW=_W,RT=g.forwardRef(({className:t,align:a="center",sideOffset:n=4,...r},s)=>e.jsx(RW,{children:e.jsx(_T,{ref:s,align:a,sideOffset:n,className:fe("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",t),...r})}));RT.displayName=_T.displayName;function qW({open:t,onClose:a,onAdded:n,existingExperience:r,onUpdated:s}){const i=new Date().getFullYear(),o=Array.from({length:40},(m,x)=>`${i-x}`),[l,d]=M.useState({title:"",company:"",startYear:"",endYear:"",isPresent:!1,location:"",summary:"",tags:""});M.useEffect(()=>{if(r){const[m,x]=r.period.split(" - ");d({title:r.title,company:r.company,startYear:m||"",endYear:x==="Present"?"":x||"",isPresent:x==="Present",location:r.location||"",summary:r.summary||"",tags:r.tags.join(", ")})}else d({title:"",company:"",startYear:"",endYear:"",isPresent:!1,location:"",summary:"",tags:""})},[r,t]);const[h,u]=M.useState(!1),p=(m,x)=>d(f=>({...f,[m]:x})),y=()=>{const m=l.isPresent?`${l.startYear} - Present`:`${l.startYear} - ${l.endYear}`,x={id:(r==null?void 0:r.id)||`temp-${Date.now()}`,title:l.title,company:l.company,period:m,summary:l.summary.trim()||void 0,location:l.location.trim()||void 0,tags:l.tags.split(",").map(f=>f.trim()).filter(Boolean)};r?s==null||s(x):n(x),d({title:"",company:"",startYear:"",endYear:"",isPresent:!1,location:"",summary:"",tags:""}),a()};return e.jsx(St,{open:t,onOpenChange:a,children:e.jsxs(xt,{children:[e.jsx(st,{children:r?"Edit Work Experience":"Add Work Experience"}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{children:[e.jsx(O,{children:"Title"}),e.jsx(de,{value:l.title,onChange:m=>p("title",m.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Company"}),e.jsx(de,{value:l.company,onChange:m=>p("company",m.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Location (optional)"}),e.jsx(de,{value:l.location,onChange:m=>p("location",m.target.value),placeholder:"e.g., Malta or Remote"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx(O,{children:"Start Year"}),e.jsxs(tn,{onValueChange:m=>p("startYear",m),value:l.startYear,children:[e.jsx(za,{children:e.jsx(an,{placeholder:"Select year"})}),e.jsx(Ea,{children:o.map(m=>e.jsx(Mt,{value:m,children:m},m))})]})]}),!l.isPresent&&e.jsxs("div",{children:[e.jsx(O,{children:"End Year"}),e.jsxs(tn,{onValueChange:m=>p("endYear",m),value:l.endYear,children:[e.jsx(za,{children:e.jsx(an,{placeholder:"Select year"})}),e.jsx(Ea,{children:o.map(m=>e.jsx(Mt,{value:m,children:m},m))})]})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("input",{id:"present",type:"checkbox",checked:l.isPresent,onChange:m=>p("isPresent",m.target.checked),className:"w-4 h-4 accent-primary"}),e.jsx(O,{htmlFor:"present",children:"I currently work here"})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Summary (optional)"}),e.jsx(Et,{placeholder:"e.g., Led product roadmap for iGaming platform",value:l.summary,onChange:m=>p("summary",m.target.value)})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Tags (comma-separated)"}),e.jsx(Et,{placeholder:"e.g., Product Strategy, iGaming, Agile",value:l.tags,onChange:m=>p("tags",m.target.value)})]})]}),e.jsxs(Zt,{children:[e.jsx(T,{variant:"outline",onClick:a,children:"Cancel"}),e.jsx(T,{onClick:y,disabled:h||!l.title||!l.company||!l.startYear||!l.isPresent&&!l.endYear,children:h?"Saving...":r?"Save Changes":"Add Experience"})]})]})})}function RL({open:t,onClose:a,onAdded:n,title:r,placeholder:s}){const[i,o]=M.useState("");M.useEffect(()=>{t||o("")},[t]);const l=()=>{i.trim()&&(n(i.trim()),o(""),a())};return e.jsx(St,{open:t,onOpenChange:a,children:e.jsxs(xt,{children:[e.jsx(da,{children:e.jsx(st,{children:r})}),e.jsx("div",{className:"space-y-4 py-2",children:e.jsxs("div",{children:[e.jsx(O,{children:r}),e.jsx(de,{value:i,onChange:d=>o(d.target.value),placeholder:s||"Type and save"})]})}),e.jsxs(Zt,{children:[e.jsx(T,{variant:"outline",onClick:a,children:"Cancel"}),e.jsx(T,{onClick:l,disabled:!i.trim(),children:"Add"})]})]})})}const TL=["Product Management","Project Management","Agile","Scrum","Leadership","Communication","Stakeholder Management","Game Design","Data Analysis","Marketing Strategy","UX/UI Design","Regulatory Compliance","Casino Operations","Sportsbook Operations","Frontend Development","Backend Development","React","TypeScript","Python","SQL","Kubernetes","Cloud Infrastructure"];function zW({open:t,onClose:a,onAdded:n}){const[r,s]=M.useState(""),[i,o]=M.useState(TL),l=()=>{r.trim()&&(n(r.trim()),s(""),a())},d=h=>{s(h);const u=TL.filter(p=>p.toLowerCase().includes(h.toLowerCase()));o(u)};return e.jsx(St,{open:t,onOpenChange:a,children:e.jsxs(xt,{children:[e.jsx(da,{children:e.jsx(st,{children:"Add Skill"})}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"skill",children:"Skill Name"}),e.jsx(de,{id:"skill",placeholder:"e.g. Product Strategy",value:r,onChange:h=>d(h.target.value)})]}),r&&i.length>0&&e.jsx("div",{className:"border rounded-md p-2 space-y-1 max-h-40 overflow-y-auto",children:i.map(h=>e.jsx("div",{className:"cursor-pointer px-2 py-1 hover:bg-muted rounded-md text-sm",onClick:()=>{s(h)},children:h},h))})]}),e.jsxs(Zt,{children:[e.jsx(T,{variant:"outline",onClick:a,children:"Cancel"}),e.jsx(T,{onClick:l,disabled:!r.trim(),children:"Add Skill"})]})]})})}const DL=["Regulation","Technology","Market Trends","Responsible Gaming","Game Design","Payments","Marketing","AI in iGaming","Player Retention","Security"];function EW({open:t,onClose:a,onAdded:n}){const[r,s]=M.useState(""),[i,o]=M.useState(DL),l=()=>{r.trim()&&(n(r.trim()),s(""),a())},d=h=>{s(h),o(DL.filter(u=>u.toLowerCase().includes(h.toLowerCase())))};return e.jsx(St,{open:t,onOpenChange:a,children:e.jsxs(xt,{children:[e.jsx(da,{children:e.jsx(st,{children:"Add Interested Topic"})}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"topic",children:"Topic"}),e.jsx(de,{id:"topic",placeholder:"e.g. Game Design",value:r,onChange:h=>d(h.target.value)})]}),r&&i.length>0&&e.jsx("div",{className:"border rounded-md p-2 space-y-1 max-h-40 overflow-y-auto",children:i.map(h=>e.jsx("div",{className:"cursor-pointer px-2 py-1 hover:bg-muted rounded-md text-sm",onClick:()=>s(h),children:h},h))})]}),e.jsxs(Zt,{children:[e.jsx(T,{variant:"outline",onClick:a,children:"Cancel"}),e.jsx(T,{onClick:l,disabled:!r.trim(),children:"Add Topic"})]})]})})}const FW=["English","Spanish","French","German","Italian","Portuguese","Polish","Turkish","Swedish","Norwegian","Finnish","Danish","Dutch","Japanese","Chinese","Korean"],OW=["Native","Fluent","Intermediate","Basic"];function HW({open:t,onClose:a,onAdded:n}){const[r,s]=M.useState({name:"",proficiency:""}),i=()=>{if(!r.name||!r.proficiency)return;const o={name:r.name,proficiency:r.proficiency};n(o),s({name:"",proficiency:""}),a()};return e.jsx(St,{open:t,onOpenChange:a,children:e.jsxs(xt,{children:[e.jsx(da,{children:e.jsx(st,{children:"Add Language"})}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{children:[e.jsx(O,{children:"Language"}),e.jsxs(tn,{value:r.name,onValueChange:o=>s(l=>({...l,name:o})),children:[e.jsx(za,{children:e.jsx(an,{placeholder:"Select a language"})}),e.jsx(Ea,{children:FW.map(o=>e.jsx(Mt,{value:o,children:o},o))})]})]}),e.jsxs("div",{children:[e.jsx(O,{children:"Proficiency"}),e.jsxs(tn,{value:r.proficiency,onValueChange:o=>s(l=>({...l,proficiency:o})),children:[e.jsx(za,{children:e.jsx(an,{placeholder:"Select proficiency"})}),e.jsx(Ea,{children:OW.map(o=>e.jsx(Mt,{value:o,children:o},o))})]})]})]}),e.jsxs(Zt,{children:[e.jsx(T,{variant:"outline",onClick:a,children:"Cancel"}),e.jsx(T,{onClick:i,disabled:!r.name||!r.proficiency,children:"Add"})]})]})})}function VW({profile:t,onUpdate:a,isSaving:n=!1}){const[r,s]=M.useState(t),[i,o]=M.useState(!1),[l,d]=M.useState(null);M.useState(null);const[h,u]=M.useState(null),[p,y]=M.useState(!1),[m,x]=M.useState(!1),[f,v]=M.useState(!1),[k,w]=M.useState(!1),[b,C]=M.useState(!1),j=["Full-time","Part-time","Contract","Freelance","Internship","Temporary"],I=["English","Spanish","French","German","Italian","Portuguese","Polish","Turkish","Swedish","Norwegian","Finnish","Danish","Dutch","Japanese","Chinese","Korean"],N=()=>{l&&(s(_=>{const A={..._,workExperience:_.workExperience.filter(D=>D.id!==l)};return a({type:"profile",payload:A}),A}),d(null))},S=(_,A,D)=>{s(H=>({...H,[_]:{...H[_],[A]:D}}))},L=(_,A,D)=>{s(H=>({...H,[_]:{...H[_],[A]:D}}))},q=()=>{a({type:"profile",payload:r})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"Your Profile"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Manage your professional information"})]}),e.jsx(T,{onClick:q,disabled:n,children:n?"Saving...":"Save Changes"})]}),e.jsxs(nn,{defaultValue:"personal",className:"w-full",children:[e.jsxs(rn,{className:"grid w-full grid-cols-3 lg:grid-cols-7",children:[e.jsx(Pe,{value:"personal",children:"Personal"}),e.jsx(Pe,{value:"experience",children:"Experience"}),e.jsx(Pe,{value:"job-search",children:"Job Search"}),e.jsx(Pe,{value:"skills",children:"Skills"}),e.jsx(Pe,{value:"languages",children:"Languages"}),e.jsx(Pe,{value:"alerts",children:"Alerts"}),e.jsx(Pe,{value:"preferences",children:"Preferences"})]}),e.jsx(je,{value:"personal",children:e.jsxs(Q,{children:[e.jsxs(le,{children:[e.jsx(ue,{children:"Personal Details"}),e.jsx(Se,{children:"Update your personal information"})]}),e.jsx(ee,{className:"space-y-4",children:e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"fullName",children:"Full Name"}),e.jsx(de,{id:"fullName",value:r.personalDetails.fullName??"",onChange:_=>S("personalDetails","fullName",_.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"email",children:"Email"}),e.jsx(de,{id:"email",type:"email",value:r.personalDetails.email??"",onChange:_=>S("personalDetails","email",_.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"phone",children:"Phone"}),e.jsx(de,{id:"phone",value:r.personalDetails.phone??"",onChange:_=>S("personalDetails","phone",_.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"location",children:"Location"}),e.jsx(de,{id:"location",value:r.personalDetails.location??"",onChange:_=>S("personalDetails","location",_.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"dob",children:"Date of Birth"}),e.jsx(de,{id:"dob",type:"date",value:r.personalDetails.dob??"",onChange:_=>S("personalDetails","dob",_.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"address",children:"Address"}),e.jsx(de,{id:"address",value:r.personalDetails.address??"",onChange:_=>S("personalDetails","address",_.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"nationality",children:"Nationality"}),e.jsx(de,{id:"nationality",value:r.personalDetails.nationality??"",onChange:_=>S("personalDetails","nationality",_.target.value)})]}),e.jsxs("div",{className:"space-y-2 md:col-span-2",children:[e.jsx(O,{htmlFor:"summary",children:"Summary"}),e.jsx(de,{id:"summary",value:r.personalDetails.summary??"",onChange:_=>S("personalDetails","summary",_.target.value)})]})]})})]})}),e.jsx(je,{value:"experience",children:e.jsxs(Q,{children:[e.jsxs(le,{children:[e.jsx(ue,{children:"Work Experience"}),e.jsx(Se,{children:"Your iGaming industry experience"})]}),e.jsxs(ee,{className:"space-y-4",children:[r.workExperience.map(_=>e.jsxs("div",{className:"p-4 border rounded-lg space-y-2 relative group",children:[e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold",children:_.title}),e.jsx("p",{className:"text-sm text-muted-foreground",children:_.company}),e.jsx("p",{className:"text-xs text-muted-foreground",children:_.period}),_.location&&e.jsx("p",{className:"text-xs text-muted-foreground",children:_.location})]}),e.jsxs("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity flex gap-2",children:[e.jsx(T,{variant:"outline",size:"sm",onClick:()=>{const A=r.workExperience.find(D=>D.id===_.id);u(A||null),o(!0)},children:"Edit"}),e.jsx(T,{variant:"destructive",size:"sm",onClick:()=>d(_.id),children:"Delete"})]})]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:_.tags.map(A=>e.jsx(he,{variant:"secondary",children:A},A))}),_.summary&&e.jsx("p",{className:"text-sm text-muted-foreground",children:_.summary})]},_.id)),e.jsx(T,{variant:"outline",className:"w-full",onClick:()=>o(!0),children:"Add Experience"})]})]})}),e.jsx(qW,{open:i,onClose:()=>{o(!1),u(null)},existingExperience:h,onAdded:_=>{s(A=>({...A,workExperience:[...A.workExperience,_]}))},onUpdated:_=>{s(A=>({...A,workExperience:A.workExperience.map(D=>D.id===_.id?_:D)}))}}),e.jsx(jc,{open:!!l,onOpenChange:()=>d(null),children:e.jsxs(zo,{children:[e.jsxs(Eo,{children:[e.jsx(Oo,{children:"Delete Experience"}),e.jsx(Ho,{children:"Are you sure you want to delete this work experience? This action cannot be undone."})]}),e.jsxs(Fo,{children:[e.jsx(Bo,{children:"Cancel"}),e.jsx(Vo,{onClick:N,className:"bg-destructive text-white",children:"Delete"})]})]})}),e.jsxs(je,{value:"job-search",children:[e.jsxs(Q,{children:[e.jsxs(le,{children:[e.jsx(ue,{children:"Job Search Details"}),e.jsx(Se,{children:"Define your ideal job preferences"})]}),e.jsxs(ee,{className:"space-y-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{children:"Desired Roles"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:r.jobSearchDetails.desiredRoles.map(_=>e.jsxs(he,{variant:"secondary",children:[_,e.jsx(T,{variant:"ghost",size:"sm",className:"ml-1 text-xs text-muted-foreground hover:text-destructive",onClick:()=>s(A=>({...A,jobSearchDetails:{...A.jobSearchDetails,desiredRoles:Array.from(new Set([...A.jobSearchDetails.desiredRoles,_]))}})),children:"✕"})]},_))}),e.jsx(T,{variant:"outline",size:"sm",onClick:()=>y(!0),children:"Add Role"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{children:"Preferred Locations"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:r.jobSearchDetails.locations.map(_=>e.jsxs(he,{variant:"secondary",children:[_,e.jsx(T,{variant:"ghost",size:"sm",className:"ml-1 text-xs text-muted-foreground hover:text-destructive",onClick:()=>s(A=>({...A,jobSearchDetails:{...A.jobSearchDetails,locations:A.jobSearchDetails.locations.filter(D=>D!==_)}})),children:"✕"})]},_))}),e.jsx(T,{variant:"outline",size:"sm",onClick:()=>x(!0),children:"Add Location"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{children:"Employment Type"}),e.jsxs(TW,{children:[e.jsx(DW,{asChild:!0,children:e.jsx(T,{variant:"outline",className:"w-full justify-between",children:r.jobSearchDetails.employmentType.length>0?r.jobSearchDetails.employmentType.join(", "):"Select Employment Type"})}),e.jsx(RT,{className:"w-64 p-2 space-y-2",children:j.map(_=>{const A=r.jobSearchDetails.employmentType.includes(_);return e.jsxs("div",{className:"flex items-center space-x-2",onClick:()=>s(D=>{const G=D.jobSearchDetails.employmentType.includes(_)?D.jobSearchDetails.employmentType.filter(V=>V!==_):[...D.jobSearchDetails.employmentType,_];return{...D,jobSearchDetails:{...D.jobSearchDetails,employmentType:G}}}),children:[e.jsx(_t,{checked:A}),e.jsx(O,{className:"text-sm",children:_})]},_)})})]})]})]})]}),e.jsx(RL,{open:p,onClose:()=>y(!1),title:"Add Desired Role",placeholder:"e.g. Senior Product Manager",onAdded:_=>s(A=>({...A,jobSearchDetails:{...A.jobSearchDetails,desiredRoles:[...A.jobSearchDetails.desiredRoles,_]}}))}),e.jsx(RL,{open:m,onClose:()=>x(!1),title:"Add Preferred Location",placeholder:"e.g. Malta or Remote",onAdded:_=>s(A=>({...A,jobSearchDetails:{...A.jobSearchDetails,locations:[...A.jobSearchDetails.locations,_]}}))})]}),e.jsxs(je,{value:"skills",children:[e.jsxs(Q,{children:[e.jsxs(le,{children:[e.jsx(ue,{children:"Skill Set"}),e.jsx(Se,{children:"Your professional skills and expertise"})]}),e.jsxs(ee,{className:"space-y-4",children:[e.jsx("div",{className:"flex flex-wrap gap-2",children:r.skills.map(_=>e.jsxs(he,{variant:"secondary",className:"flex items-center gap-1",children:[_,e.jsx(T,{variant:"ghost",size:"sm",className:"ml-1 text-xs text-muted-foreground hover:text-destructive",onClick:()=>s(A=>({...A,skills:A.skills.filter(D=>D!==_)})),children:"✕"})]},_))}),e.jsx(T,{variant:"outline",onClick:()=>v(!0),children:"Add Skill"})]})]}),e.jsx(zW,{open:f,onClose:()=>v(!1),onAdded:_=>s(A=>({...A,skills:Array.from(new Set([...A.skills,_]))}))})]}),e.jsxs(je,{value:"languages",children:[e.jsxs(Q,{children:[e.jsxs(le,{children:[e.jsx(ue,{children:"Languages"}),e.jsx(Se,{children:"Your spoken and professional languages"})]}),e.jsxs(ee,{className:"space-y-4",children:[e.jsx("div",{className:"flex flex-wrap gap-2",children:r.languages.map((_,A)=>e.jsxs(he,{variant:"secondary",className:"flex items-center gap-1",children:[_.name," — ",_.proficiency,e.jsx(T,{variant:"ghost",size:"sm",className:"ml-1 text-xs text-muted-foreground hover:text-destructive",onClick:()=>s(D=>({...D,languages:D.languages.filter((H,G)=>G!==A)})),children:"✕"})]},`${_.name}-${A}`))}),e.jsx(T,{variant:"outline",onClick:()=>C(!0),children:"Add Language"})]})]}),e.jsx(HW,{open:b,onClose:()=>C(!1),onAdded:_=>s(A=>({...A,languages:[...A.languages,_]}))})]}),e.jsx(je,{value:"alerts",children:e.jsxs(Q,{children:[e.jsxs(le,{children:[e.jsx(ue,{children:"Alerts & Subscriptions"}),e.jsx(Se,{children:"Manage your notification preferences"})]}),e.jsxs(ee,{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(O,{htmlFor:"job-alerts",className:"text-base",children:"Job Alerts"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Get notified about new job matches"})]}),e.jsx(ut,{id:"job-alerts",checked:r.alerts.jobAlerts,onCheckedChange:_=>L("alerts","jobAlerts",_)})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(O,{htmlFor:"course-alerts",className:"text-base",children:"Course Alerts"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Updates on new courses and training"})]}),e.jsx(ut,{id:"course-alerts",checked:r.alerts.courseAlerts,onCheckedChange:_=>L("alerts","courseAlerts",_)})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(O,{htmlFor:"news-alerts",className:"text-base",children:"News Alerts"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Industry news and updates"})]}),e.jsx(ut,{id:"news-alerts",checked:r.alerts.newsAlerts,onCheckedChange:_=>L("alerts","newsAlerts",_)})]})]})]})}),e.jsxs(je,{value:"preferences",children:[e.jsxs(Q,{children:[e.jsxs(le,{children:[e.jsx(ue,{children:"Preferences"}),e.jsx(Se,{children:"Customize your platform experience"})]}),e.jsxs(ee,{className:"space-y-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{children:"Interested Topics"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:r.preferences.topics.map(_=>e.jsxs(he,{variant:"secondary",className:"flex items-center gap-1",children:[_,e.jsx(T,{variant:"ghost",size:"sm",className:"ml-1 text-xs text-muted-foreground hover:text-destructive",onClick:()=>s(A=>({...A,preferences:{...A.preferences,topics:A.preferences.topics.filter(D=>D!==_)}})),children:"✕"})]},_))}),e.jsx(T,{variant:"outline",size:"sm",onClick:()=>w(!0),children:"Manage Topics"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"language",children:"Language"}),e.jsxs(tn,{value:r.preferences.language,onValueChange:_=>S("preferences","language",_),children:[e.jsx(za,{id:"language",children:e.jsx(an,{placeholder:"Select your preferred language"})}),e.jsx(Ea,{children:I.map(_=>e.jsx(Mt,{value:_,children:_},_))})]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(O,{htmlFor:"email-notif",className:"text-base",children:"Email Notifications"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Receive updates via email"})]}),e.jsx(ut,{id:"email-notif",checked:r.preferences.emailNotifications,onCheckedChange:_=>L("preferences","emailNotifications",_)})]})]})]}),e.jsx(EW,{open:k,onClose:()=>w(!1),onAdded:_=>s(A=>({...A,preferences:{...A.preferences,topics:Array.from(new Set([...A.preferences.topics,_]))}}))})]})]})]})}const BW=t=>t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`,qL=800;function $W({onCVChange:t,previewText:a,previewStatus:n="idle",previewErrorMessage:r}){const[s,i]=M.useState(!1),[o,l]=M.useState(null),[d,h]=M.useState(null),[u,p]=M.useState(null),[y,m]=M.useState(!1);M.useEffect(()=>()=>{d&&URL.revokeObjectURL(d)},[d]);const x=M.useMemo(()=>o?{name:o.name,size:BW(o.size),lastModified:new Date(o.lastModified).toLocaleDateString()}:null,[o]),f=async C=>{var N;const j=(N=C.target.files)==null?void 0:N[0];if(!j)return;if(j.type!=="application/pdf"){p("Only PDF files are supported.");return}d&&URL.revokeObjectURL(d);const I=URL.createObjectURL(j);l(j),h(I),m(!1),t(j)},v=()=>{d&&URL.revokeObjectURL(d),l(null),h(null),p(null),m(!1),t(null)},k=(a==null?void 0:a.replace(/\s{2,}/g," ").replace(/\n{3,}/g,`
7836
7836
 
7837
7837
  `).trim())??"",w=k.length>qL,b=y?k:w?`${k.slice(0,qL)}…`:k;return e.jsxs(St,{open:s,onOpenChange:i,children:[e.jsx(MO,{asChild:!0,children:e.jsxs(T,{children:[e.jsx(xn,{className:"h-4 w-4 mr-2"}),"Upload CV"]})}),e.jsxs(xt,{className:"sm:max-w-2xl",children:[e.jsxs(da,{children:[e.jsx(st,{children:"Upload your CV"}),e.jsx(Tn,{children:"Add a PDF so we can extract key details and keep it ready for job applications."})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(de,{type:"file",accept:"application/pdf",onChange:f}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Accepted format: PDF only. Text extraction should be handled by the host application if needed."})]}),u&&e.jsx("div",{className:"rounded-md border border-destructive/40 bg-destructive/10 px-3 py-2 text-sm text-destructive",children:u}),o&&x&&e.jsxs("div",{className:"rounded-md border border-muted p-4 space-y-3",children:[e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(jn,{className:"h-5 w-5 text-primary"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:x.name}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:[x.size," • Updated ",x.lastModified]})]})]}),e.jsx(he,{variant:"secondary",children:"Stored"})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[d&&e.jsx(T,{variant:"outline",size:"sm",asChild:!0,children:e.jsx("a",{href:d,target:"_blank",rel:"noreferrer",children:"View PDF"})}),e.jsxs(T,{variant:"destructive",size:"sm",onClick:v,children:[e.jsx(bo,{className:"h-4 w-4 mr-2"}),"Delete"]})]})]}),e.jsxs("div",{className:"rounded-md border border-muted p-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("p",{className:"font-medium",children:"Extracted preview"}),n==="parsing"&&e.jsx(he,{variant:"outline",children:"Parsing..."})]}),n==="error"?e.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:r||"Text preview is unavailable for this file."}):b?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"mt-2 max-h-48 overflow-y-auto rounded-md border bg-muted/30 p-2",children:e.jsx("p",{className:"whitespace-pre-wrap text-sm text-muted-foreground",children:b})}),w&&e.jsx(T,{variant:"link",size:"sm",className:"px-0",onClick:()=>m(C=>!C),children:y?"Show less":"Show full text"})]}):e.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"Upload a PDF to preview extracted text from the host app."})]})]}),e.jsx(Zt,{children:e.jsx(T,{variant:"outline",onClick:()=>i(!1),children:"Close"})})]})]})}function UW({savedJobs:t,applications:a,recommendedJobs:n,onApply:r,onRemove:s,onUploadCV:i,cvPreviewText:o,cvPreviewStatus:l,cvPreviewErrorMessage:d,onSetAlert:h,onUpdateProfile:u}){const p=w=>({savedJobs:w.saved,recommendedJobs:w.recommended,applications:w.applications}),[y,m]=M.useState({saved:t||[],recommended:n||[],applications:a||[]});M.useEffect(()=>{m({saved:t||[],recommended:n||[],applications:a||[]})},[t,n,a]);const x=w=>{m(b=>{if(b.saved.some(I=>I.id===w.id))return b;const j={...b,saved:[...b.saved,w]};return u==null||u({type:"jobs",payload:p(j)}),j})},f=w=>{m(b=>{const C={...b,saved:b.saved.filter(j=>j.id!==w)};return u==null||u({type:"jobs",payload:p(C)}),C})},v=w=>{m(b=>{const C={...b,recommended:b.recommended.filter(j=>j.id!==w)};return u==null||u({type:"jobs",payload:p(C)}),C})},k=w=>{const b=y.recommended.find(C=>C.id===w);b&&(m(C=>{const j={...C,applications:[...C.applications,{...b,status:"Applied",appliedDate:new Date().toLocaleDateString()}]};return u==null||u({type:"jobs",payload:p(j)}),j}),r(w))};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"Jobs"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Manage your job search"})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(T,{variant:"outline",onClick:h,children:"Set Job Alerts"}),e.jsx($W,{onCVChange:i,previewText:o,previewStatus:l,previewErrorMessage:d})]})]}),e.jsxs(nn,{defaultValue:"recommended",className:"w-full",children:[e.jsxs(rn,{className:"grid w-full grid-cols-3 lg:grid-cols-3",children:[e.jsxs(Pe,{value:"recommended",children:["Recommended (",y.recommended.length,")"]}),e.jsxs(Pe,{value:"saved",children:[e.jsx(fa,{className:"h-4 w-4 mr-2"}),"Saved (",y.saved.length,")"]}),e.jsxs(Pe,{value:"applications",children:[e.jsx(Ze,{className:"h-4 w-4 mr-2"}),"Applications (",y.applications.length,")"]})]}),e.jsx(je,{value:"recommended",className:"space-y-4",children:e.jsx("div",{className:"grid gap-4",children:y.recommended.map(w=>e.jsx(Cj,{job:w,view:"recommended",isSaved:y.saved.some(b=>b.id===w.id),onApply:k,onSave:x,onRemove:v},w.id))})}),e.jsx(je,{value:"saved",className:"space-y-4",children:e.jsx("div",{className:"grid gap-4",children:y.saved.length===0?e.jsx(Q,{children:e.jsxs(ee,{className:"flex flex-col items-center justify-center py-10",children:[e.jsx(fa,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"No saved jobs yet"}),e.jsx(T,{variant:"link",className:"mt-2",children:"Browse Jobs"})]})}):y.saved.map(w=>e.jsx(Cj,{job:w,view:"saved",onRemove:f},w.id))})}),e.jsx(je,{value:"applications",className:"space-y-4",children:e.jsx("div",{className:"grid gap-4",children:y.applications.length===0?e.jsx(Q,{children:e.jsxs(ee,{className:"flex flex-col items-center justify-center py-10",children:[e.jsx(Ze,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"No applications yet"}),e.jsx(T,{variant:"link",className:"mt-2",children:"Start Applying"})]})}):y.applications.map(w=>e.jsx(Cj,{job:w,view:"applications",onViewApplication:()=>{}},w.id))})})]})]})}function GW(t,a=[]){let n=[];function r(i,o){const l=g.createContext(o),d=n.length;n=[...n,o];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=n.map(o=>g.createContext(o));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[r,WW(s,...a)]}function WW(...t){const a=t[0];if(t.length===1)return a;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:o}),[o])}};return n.scopeName=a.scopeName,n}var ZW=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],TT=ZW.reduce((t,a)=>{const n=Ye(`Primitive.${a}`),r=g.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{}),rN="Progress",sN=100,[JW,mZ]=GW(rN),[XW,YW]=JW(rN),DT=g.forwardRef((t,a)=>{const{__scopeProgress:n,value:r=null,max:s,getValueLabel:i=KW,...o}=t;(s||s===0)&&!zL(s)&&console.error(QW(`${s}`,"Progress"));const l=zL(s)?s:sN;r!==null&&!EL(r,l)&&console.error(eZ(`${r}`,"Progress"));const d=EL(r,l)?r:null,h=Bj(d)?i(d,l):void 0;return e.jsx(XW,{scope:n,value:d,max:l,children:e.jsx(TT.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":Bj(d)?d:void 0,"aria-valuetext":h,role:"progressbar","data-state":ET(d,l),"data-value":d??void 0,"data-max":l,...o,ref:a})})});DT.displayName=rN;var qT="ProgressIndicator",zT=g.forwardRef((t,a)=>{const{__scopeProgress:n,...r}=t,s=YW(qT,n);return e.jsx(TT.div,{"data-state":ET(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...r,ref:a})});zT.displayName=qT;function KW(t,a){return`${Math.round(t/a*100)}%`}function ET(t,a){return t==null?"indeterminate":t===a?"complete":"loading"}function Bj(t){return typeof t=="number"}function zL(t){return Bj(t)&&!isNaN(t)&&t>0}function EL(t,a){return Bj(t)&&!isNaN(t)&&t<=a&&t>=0}function QW(t,a){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${a}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${sN}\`.`}function eZ(t,a){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${a}\`. The \`value\` prop must be:
7838
7838
  - a positive number
7839
7839
  - less than the value passed to \`max\` (or ${sN} if no \`max\` prop is set)
7840
7840
  - \`null\` or \`undefined\` if the progress is indeterminate.
7841
7841
 
7842
- Defaulting to \`null\`.`}var FT=DT,tZ=zT;const OT=g.forwardRef(({className:t,value:a,...n},r)=>e.jsx(FT,{ref:r,className:ye("relative h-4 w-full overflow-hidden rounded-full bg-secondary",t),...n,children:e.jsx(tZ,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(a||0)}%)`}})}));OT.displayName=FT.displayName;function aZ({enrolledCourses:t,savedCourses:a,recommendedCourses:n,certificates:r,onEnroll:s,onContinue:i,onExplore:o,onSave:l,onRemoveSaved:d,onRemoveRecommended:h}){const[u,p]=M.useState({enrolled:t||[],recommended:n||[],saved:a||[]});M.useEffect(()=>{p({enrolled:t||[],recommended:n||[],saved:a||[]})},[t,n,a]);const y=k=>s(k),m=k=>{p(w=>{if(w.saved.some(j=>j.id===k.id))return w;const C={...w,saved:[...w.saved,{...k,saved:!0}],recommended:w.recommended.map(j=>j.id===k.id?{...j,saved:!0}:j)};return l==null||l(k.id),C})},x=k=>{p(w=>{const b={...w,saved:w.saved.filter(C=>C.id!==k),recommended:w.recommended.map(C=>C.id===k?{...C,saved:!1}:C)};return d==null||d(k),b})},f=k=>{p(w=>{const b={...w,recommended:w.recommended.filter(C=>C.id!==k)};return h==null||h(k),b})},v=({course:k,view:w})=>{const b=u.saved.some(C=>C.id===k.id);return e.jsxs(Q,{children:[e.jsx(ce,{children:e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx(ue,{className:"text-lg",children:k.title}),e.jsx(Se,{children:k.provider})]}),e.jsx(he,{variant:"outline",children:k.level})]})}),e.jsx(ee,{children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[e.jsx("span",{children:k.duration}),k.certificate&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(na,{className:"h-4 w-4"}),"Certificate"]})]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:k.tags.map(C=>e.jsx(he,{variant:"secondary",children:C},C))}),w==="enrolled"&&k.progress!==void 0&&e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex justify-between text-sm",children:[e.jsx("span",{className:"text-muted-foreground",children:"Progress"}),e.jsxs("span",{className:"font-medium",children:[k.progress,"%"]})]}),e.jsx(OT,{value:k.progress})]}),w==="recommended"&&k.reason&&e.jsxs("p",{className:"text-xs text-muted-foreground italic",children:["💡 ",k.reason]}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:flex-wrap",children:[w==="enrolled"&&e.jsx(T,{className:"sm:w-auto w-full",onClick:()=>i(k.id),children:"Continue Learning"}),w==="recommended"&&e.jsxs(e.Fragment,{children:[e.jsx(T,{className:"sm:w-auto w-full",onClick:()=>y(k.id),children:"Enroll Now"}),e.jsx(T,{variant:b?"secondary":"outline",className:"sm:w-auto w-full",size:"sm",disabled:b,onClick:()=>m(k),children:b?"Saved":"Save Course"}),e.jsx(T,{variant:"destructive",size:"sm",className:"sm:w-auto w-full",onClick:()=>f(k.id),children:"Remove"}),!h&&e.jsx("p",{className:"text-[11px] text-muted-foreground",children:"Remove not available yet"})]}),w==="saved"&&e.jsxs(e.Fragment,{children:[e.jsx(T,{className:"sm:w-auto w-full",size:"sm",onClick:()=>y(k.id),children:"Start Course"}),e.jsx(T,{variant:"destructive",size:"sm",className:"sm:w-auto w-full",onClick:()=>x(k.id),children:"Remove Saved"}),!d&&e.jsx("p",{className:"text-[11px] text-muted-foreground",children:"Remove from saved not available yet"})]})]})]})})]})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"Courses"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Advance your iGaming career"})]}),e.jsx(T,{onClick:o,children:"Explore All Courses"})]}),e.jsxs(nn,{defaultValue:"enrolled",className:"w-full",children:[e.jsxs(rn,{className:"grid w-full grid-cols-3 lg:grid-cols-4",children:[e.jsxs(Pe,{value:"enrolled",children:[e.jsx(ia,{className:"h-4 w-4 mr-2"}),"Enrolled (",u.enrolled.length,")"]}),e.jsxs(Pe,{value:"recommended",children:[e.jsx(Pa,{className:"h-4 w-4 mr-2"}),"Recommended (",u.recommended.length,")"]}),e.jsxs(Pe,{value:"saved",children:[e.jsx(fa,{className:"h-4 w-4 mr-2"}),"Saved (",u.saved.length,")"]}),e.jsxs(Pe,{value:"certificates",children:[e.jsx(na,{className:"h-4 w-4 mr-2"}),"Certificates (",r.length,")"]})]}),e.jsx(je,{value:"enrolled",className:"space-y-4",children:e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:u.enrolled.length===0?e.jsx(Q,{className:"md:col-span-2",children:e.jsxs(ee,{className:"flex flex-col items-center justify-center py-10",children:[e.jsx(ia,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"No enrolled courses yet"}),e.jsx(T,{variant:"link",className:"mt-2",onClick:o,children:"Browse Courses"})]})}):u.enrolled.map(k=>e.jsx(v,{course:k,view:"enrolled"},k.id))})}),e.jsx(je,{value:"recommended",className:"space-y-4",children:e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:u.recommended.map(k=>e.jsx(v,{course:k,view:"recommended"},k.id))})}),e.jsx(je,{value:"saved",className:"space-y-4",children:e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:u.saved.length===0?e.jsx(Q,{className:"md:col-span-2",children:e.jsxs(ee,{className:"flex flex-col items-center justify-center py-10",children:[e.jsx(fa,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"No saved courses yet"}),e.jsx(T,{variant:"link",className:"mt-2",onClick:o,children:"Browse Courses"}),!l&&e.jsx("p",{className:"text-[11px] text-muted-foreground mt-2",children:"Saving courses not available yet"})]})}):u.saved.map(k=>e.jsx(v,{course:k,view:"saved"},k.id))})}),e.jsx(je,{value:"certificates",className:"space-y-4",children:e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:r.length===0?e.jsx(Q,{className:"md:col-span-2",children:e.jsxs(ee,{className:"flex flex-col items-center justify-center py-10",children:[e.jsx(na,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"No certificates yet"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Complete courses to earn certificates"})]})}):r.map(k=>e.jsxs(Q,{children:[e.jsx(ce,{children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"p-2 rounded-lg bg-accent/10",children:e.jsx(na,{className:"h-6 w-6 text-accent"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx(ue,{className:"text-base",children:k.title}),e.jsx(Se,{children:k.issuer}),e.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:["Issued: ",k.date]})]})]})}),e.jsx(ee,{children:e.jsx(T,{variant:"outline",size:"sm",className:"w-full",children:"Download Certificate"})})]},k.id))})})]})]})}function nZ({recommendedNews:t,savedArticles:a,categories:n,selectedCategory:r,onRead:s,onSave:i,onRemoveSaved:o,onRemoveRecommended:l,onCategoryChange:d,onManagePreferences:h}){const[u,p]=M.useState({recommended:t||[],saved:a||[]});M.useEffect(()=>{p({recommended:t||[],saved:a||[]})},[t,a]);const y=f=>{p(v=>{if(v.saved.some(b=>b.id===f.id))return v;const w={recommended:v.recommended.map(b=>b.id===f.id?{...b,saved:!0}:b),saved:[...v.saved,{...f,saved:!0}]};return i(f.id),w})},m=f=>{p(v=>{const k={recommended:v.recommended.map(w=>w.id===f?{...w,saved:!1}:w),saved:v.saved.filter(w=>w.id!==f)};return o==null||o(f),k})},x=f=>{p(v=>{const k={...v,recommended:v.recommended.filter(w=>w.id!==f)};return l==null||l(f),k})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"News"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Stay updated with iGaming industry"})]}),e.jsxs(T,{variant:"outline",onClick:h,children:[e.jsx(Cn,{className:"h-4 w-4 mr-2"}),"Preferences"]})]}),e.jsxs(nn,{defaultValue:"recommended",className:"w-full",children:[e.jsxs(rn,{children:[e.jsxs(Pe,{value:"recommended",children:[e.jsx(Aa,{className:"h-4 w-4 mr-2"}),"Recommended (",u.recommended.length,")"]}),e.jsxs(Pe,{value:"saved",children:[e.jsx(fa,{className:"h-4 w-4 mr-2"}),"Saved (",u.saved.length,")"]})]}),e.jsxs(je,{value:"recommended",className:"space-y-4",children:[e.jsxs("div",{className:"flex flex-wrap gap-2 mb-4",children:[e.jsx(T,{variant:r==="all"?"default":"outline",size:"sm",onClick:()=>d("all"),children:"All"}),n.map(f=>e.jsx(T,{variant:r===f?"default":"outline",size:"sm",onClick:()=>d(f),children:f},f))]}),e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:u.recommended.map(f=>e.jsx(qC,{article:f,view:"recommended",isSaved:u.saved.some(v=>v.id===f.id),onRead:s,onSave:y,onRemove:x},f.id))})]}),e.jsx(je,{value:"saved",className:"space-y-4",children:e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:u.saved.length===0?e.jsx(Q,{className:"md:col-span-2",children:e.jsxs(ee,{className:"flex flex-col items-center justify-center py-10",children:[e.jsx(fa,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"No saved articles yet"}),e.jsx(T,{variant:"link",className:"mt-2",onClick:h,children:"Browse News"})]})}):u.saved.map(f=>e.jsx(qC,{article:f,view:"saved",onRead:s,onRemove:m},f.id))})})]})]})}function rZ({settings:t,onUpdate:a}){const{notifications:n,connectedAccounts:r,subscription:s}=t,i=d=>{a({action:"notifications",updates:d})},o=d=>{a({action:"connect-account",platform:d})},l=d=>{a({action:"disconnect-account",accountId:d})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"Settings"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Manage your account preferences"})]}),e.jsxs(nn,{defaultValue:"notifications",className:"w-full",children:[e.jsxs(rn,{children:[e.jsxs(Pe,{value:"notifications",children:[e.jsx(Yo,{className:"h-4 w-4 mr-2"}),"Notifications"]}),e.jsxs(Pe,{value:"account",children:[e.jsx(An,{className:"h-4 w-4 mr-2"}),"Account"]}),e.jsxs(Pe,{value:"subscription",children:[e.jsx(zc,{className:"h-4 w-4 mr-2"}),"Subscription"]}),e.jsxs(Pe,{value:"connected",children:[e.jsx(Uc,{className:"h-4 w-4 mr-2"}),"Connected"]})]}),e.jsx(je,{value:"notifications",children:e.jsxs(Q,{children:[e.jsxs(ce,{children:[e.jsx(ue,{children:"Notification Preferences"}),e.jsx(Se,{children:"Choose how you want to be notified"})]}),e.jsxs(ee,{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(O,{htmlFor:"email-notif",className:"text-base",children:"Email Notifications"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Receive updates via email"})]}),e.jsx(ut,{id:"email-notif",checked:n.emailNotifications,onCheckedChange:d=>i({emailNotifications:d})})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(O,{htmlFor:"push-notif",className:"text-base",children:"Push Notifications"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Browser push notifications"})]}),e.jsx(ut,{id:"push-notif",checked:n.pushNotifications,onCheckedChange:d=>i({pushNotifications:d})})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(O,{htmlFor:"weekly-digest",className:"text-base",children:"Weekly Digest"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Summary of activities"})]}),e.jsx(ut,{id:"weekly-digest",checked:n.weeklyDigest,onCheckedChange:d=>i({weeklyDigest:d})})]}),e.jsxs("div",{className:"border-t pt-4 space-y-4",children:[e.jsx("h4",{className:"font-medium",children:"Content Alerts"}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(O,{htmlFor:"job-alerts-set",children:"Job Alerts"}),e.jsx(ut,{id:"job-alerts-set",checked:n.jobAlerts,onCheckedChange:d=>i({jobAlerts:d})})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(O,{htmlFor:"course-updates",children:"Course Updates"}),e.jsx(ut,{id:"course-updates",checked:n.courseUpdates,onCheckedChange:d=>i({courseUpdates:d})})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(O,{htmlFor:"news-digest",children:"News Digest"}),e.jsx(ut,{id:"news-digest",checked:n.newsDigest,onCheckedChange:d=>i({newsDigest:d})})]})]})]})]})}),e.jsx(je,{value:"account",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs(Q,{children:[e.jsxs(ce,{children:[e.jsx(ue,{children:"Password"}),e.jsx(Se,{children:"Change your account password"})]}),e.jsx(ee,{children:e.jsx(T,{onClick:()=>a({action:"change-password"}),children:"Change Password"})})]}),e.jsxs(Q,{children:[e.jsxs(ce,{children:[e.jsx(ue,{children:"Delete Account"}),e.jsx(Se,{children:"Permanently delete your account and all data"})]}),e.jsx(ee,{children:e.jsx(T,{variant:"destructive",onClick:()=>a({action:"delete-account"}),children:"Delete Account"})})]})]})}),e.jsx(je,{value:"subscription",children:e.jsxs(Q,{children:[e.jsx(ce,{children:e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{children:[e.jsx(ue,{children:"Subscription Plan"}),e.jsx(Se,{children:"Manage your membership"})]}),s.isPremium&&e.jsx(he,{children:"Premium"})]})}),e.jsx(ee,{className:"space-y-4",children:s.isPremium?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"p-4 border rounded-lg bg-accent/5",children:[e.jsx("h4",{className:"font-semibold mb-2",children:"Premium Benefits"}),e.jsxs("ul",{className:"space-y-1 text-sm text-muted-foreground",children:[e.jsx("li",{children:"✓ Unlimited job applications"}),e.jsx("li",{children:"✓ Access to all courses"}),e.jsx("li",{children:"✓ Priority support"}),e.jsx("li",{children:"✓ Advanced analytics"}),e.jsx("li",{children:"✓ Ad-free experience"})]})]}),e.jsx(T,{variant:"outline",children:"Manage Subscription"})]}):e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Upgrade to Premium to unlock exclusive features"}),e.jsx(T,{onClick:()=>a({action:"upgrade",plan:"premium"}),children:"Upgrade to Premium"})]})})]})}),e.jsx(je,{value:"connected",children:e.jsxs(Q,{children:[e.jsxs(ce,{children:[e.jsx(ue,{children:"Connected Accounts"}),e.jsx(Se,{children:"Manage linked accounts and integrations"})]}),e.jsx(ee,{className:"space-y-4",children:r.map(d=>e.jsxs("div",{className:"flex items-center justify-between p-4 border rounded-lg",children:[e.jsxs("div",{children:[e.jsx("h4",{className:"font-medium",children:d.platform}),d.connected&&d.email&&e.jsx("p",{className:"text-sm text-muted-foreground",children:d.email})]}),d.connected?e.jsx(T,{variant:"outline",size:"sm",onClick:()=>l(d.id),children:"Disconnect"}):e.jsx(T,{size:"sm",onClick:()=>o(d.platform),children:"Connect"})]},d.id))})]})})]})]})}function sZ({user:t,profileData:a,jobsDashboard:n,alerts:r,snapshot:s,feedItems:i,onUploadCV:o,cvPreviewText:l,cvPreviewStatus:d,cvPreviewErrorMessage:h,coursesData:u,newsData:p,settingsData:y,onUpdateProfile:m,activeTab:x,tabPaths:f,onTabChange:v}){const[k,w]=M.useState(x??"overview");M.useEffect(()=>{x&&w(x)},[x]);const b=n||(a==null?void 0:a.jobsDashboard)||{savedJobs:[],recommendedJobs:[],applications:[]},C=()=>console.log("/logout"),j=A=>console.log(A),I=async A=>{await m({type:"courses",payload:A})},N=(...A)=>console.log("Action:",...A),S=async A=>{await m({type:"news",payload:A})},L=y||{notifications:{emailNotifications:!0,pushNotifications:!1,weeklyDigest:!0,jobAlerts:!0,courseUpdates:!0,newsDigest:!1},connectedAccounts:[{id:"google_89213",platform:"Google",connected:!0,email:t.email},{id:"linkedin_55521",platform:"LinkedIn",connected:!1}],subscription:{isPremium:!1,plan:"free",renewalDate:null}},q=async A=>{await m({type:"settings",payload:A})},_=A=>{const D=A;x||w(D),v==null||v({tab:D,path:f==null?void 0:f[D]})};return e.jsx(sW,{user:t,onLogout:C,onNavigate:j,currentPath:"/dashboard",notificationCount:r.length,children:e.jsxs(nn,{value:x??k,onValueChange:_,className:"w-full",children:[e.jsxs(rn,{className:"grid w-full grid-cols-3 lg:grid-cols-6",children:[e.jsxs(Pe,{value:"overview",className:"flex items-center gap-2",children:[e.jsx(Ua,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden sm:inline",children:"Overview"})]}),e.jsxs(Pe,{value:"profile",className:"flex items-center gap-2",children:[e.jsx(ic,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden sm:inline",children:"Profile"})]}),e.jsxs(Pe,{value:"jobs",className:"flex items-center gap-2",children:[e.jsx(Ze,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden sm:inline",children:"Jobs"})]}),e.jsxs(Pe,{value:"courses",className:"flex items-center gap-2",children:[e.jsx(ia,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden sm:inline",children:"Courses"})]}),e.jsxs(Pe,{value:"news",className:"flex items-center gap-2",children:[e.jsx(Aa,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden sm:inline",children:"News"})]}),e.jsxs(Pe,{value:"settings",className:"flex items-center gap-2",children:[e.jsx(vo,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden sm:inline",children:"Settings"})]})]}),e.jsx(je,{value:"overview",className:"mt-6",children:e.jsx(iW,{userName:t.name,feedItems:i,alerts:r,snapshot:s,onSave:N,onApply:N,onEnroll:A=>I({action:"enroll",courseId:A}),onRead:A=>S({action:"read",articleId:A})})}),e.jsx(je,{value:"profile",className:"mt-6",children:e.jsx(VW,{profile:a,onUpdate:A=>m(A)})}),e.jsx(je,{value:"jobs",className:"mt-6",children:e.jsx(UW,{savedJobs:b.savedJobs,applications:b.applications,recommendedJobs:b.recommendedJobs,onApply:A=>console.log("Applied:",A),onRemove:A=>console.log("Removed:",A),onUploadCV:o??(A=>console.log("Upload CV changed:",(A==null?void 0:A.name)||"removed")),cvPreviewText:l,cvPreviewStatus:d,cvPreviewErrorMessage:h,onSetAlert:()=>console.log("Set alerts clicked"),onUpdateProfile:async A=>{await m({type:"jobs",payload:A.payload})}})}),e.jsx(je,{value:"courses",className:"mt-6",children:e.jsx(aZ,{enrolledCourses:(u==null?void 0:u.enrolledCourses)||[],savedCourses:(u==null?void 0:u.savedCourses)||[],recommendedCourses:(u==null?void 0:u.recommendedCourses)||[],certificates:(u==null?void 0:u.certificates)||[],onEnroll:A=>I({action:"enroll",courseId:A}),onContinue:A=>I({action:"continue",courseId:A}),onExplore:()=>I({action:"explore"}),onSave:A=>I({action:"save",courseId:A}),onRemoveSaved:A=>I({action:"remove-saved",courseId:A}),onRemoveRecommended:A=>I({action:"remove-recommended",courseId:A})})}),e.jsx(je,{value:"news",className:"mt-6",children:e.jsx(nZ,{recommendedNews:(p==null?void 0:p.recommendedNews)||[],savedArticles:(p==null?void 0:p.savedArticles)||[],categories:(p==null?void 0:p.categories)||[],selectedCategory:(p==null?void 0:p.selectedCategory)||"all",onRead:A=>S({action:"read",articleId:A}),onSave:A=>S({action:"save",articleId:A}),onRemoveSaved:A=>S({action:"remove-saved",articleId:A}),onRemoveRecommended:A=>S({action:"remove-recommended",articleId:A}),onCategoryChange:A=>S({action:"category",category:A}),onManagePreferences:()=>S({action:"manage-preferences"})})}),e.jsx(je,{value:"settings",className:"mt-6",children:e.jsx(rZ,{settings:L,onUpdate:q})})]})})}exports.Advantages=vA;exports.Analytics=BG;exports.Banner=fl;exports.Button=T;exports.CandidateCard=qR;exports.CandidateProfile=NH;exports.Cart=RA;exports.Chatbot=_A;exports.CompanyAdminCandidates=zR;exports.CompanyAdminEditDialog=PG;exports.CompanyAdminEvents=rT;exports.CompanyAdminJobs=sT;exports.CompanyAdminNews=iT;exports.CompanyAdminOverview=oT;exports.CompanyAdminPeople=cT;exports.CompanyAdminProducts=lT;exports.CompanyAdminSettings=gT;exports.CompanyAdminShell=AG;exports.CompanyClaim=SU;exports.CompanyDetail=xU;exports.CompanyDirectory=_R;exports.CompanyDirectoryContainer=CU;exports.CompanyGroupDetail=gU;exports.ConsentBanner=WA;exports.ConsentProvider=GA;exports.CourseTypes=DA;exports.Courses=MA;exports.CoursesPage=QO;exports.Dashboard=sZ;exports.Destinations=jA;exports.FAQ=AA;exports.FeatureJobs=rE;exports.Features=IA;exports.Footer=ME;exports.FooterLib=BA;exports.ForEmployers=qA;exports.ForgotPassword=eW;exports.Gallery=PA;exports.GroupPrices=jq;exports.Header=$O;exports.HeaderAlternative=VA;exports.Hero=CA;exports.HeroAlternative=zA;exports.HomePage=nE;exports.IgamingCareerHome=yE;exports.Input=de;exports.JobDetailPage=BO;exports.JobListings=bE;exports.JobSearchWidget=HA;exports.Listing=FO;exports.Login=WG;exports.MobileNav=XA;exports.Navbar=jE;exports.NewsPage=GO;exports.Newsletter=OA;exports.NotificationModal=ZA;exports.Partners=$A;exports.Register=JG;exports.RegisterV2=KG;exports.SearchableSelect=Xj;exports.Services=SA;exports.ServicesNoIcons=TA;exports.SidebarNewsletter=uS;exports.SignInPromptModal=nW;exports.SlidingSummary=Cq;exports.TagBadge=VC;exports.TagPicker=zD;exports.Testimonials=NA;exports.TrustSignals=FA;exports.ValueProposition=EA;exports.Videos=LA;exports.canEditSection=_G;exports.getEnabledPermissions=RG;exports.useConsent=hS;
7842
+ Defaulting to \`null\`.`}var FT=DT,tZ=zT;const OT=g.forwardRef(({className:t,value:a,...n},r)=>e.jsx(FT,{ref:r,className:fe("relative h-4 w-full overflow-hidden rounded-full bg-secondary",t),...n,children:e.jsx(tZ,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(a||0)}%)`}})}));OT.displayName=FT.displayName;function aZ({enrolledCourses:t,savedCourses:a,recommendedCourses:n,certificates:r,onEnroll:s,onContinue:i,onExplore:o,onSave:l,onRemoveSaved:d,onRemoveRecommended:h}){const[u,p]=M.useState({enrolled:t||[],recommended:n||[],saved:a||[]});M.useEffect(()=>{p({enrolled:t||[],recommended:n||[],saved:a||[]})},[t,n,a]);const y=k=>s(k),m=k=>{p(w=>{if(w.saved.some(j=>j.id===k.id))return w;const C={...w,saved:[...w.saved,{...k,saved:!0}],recommended:w.recommended.map(j=>j.id===k.id?{...j,saved:!0}:j)};return l==null||l(k.id),C})},x=k=>{p(w=>{const b={...w,saved:w.saved.filter(C=>C.id!==k),recommended:w.recommended.map(C=>C.id===k?{...C,saved:!1}:C)};return d==null||d(k),b})},f=k=>{p(w=>{const b={...w,recommended:w.recommended.filter(C=>C.id!==k)};return h==null||h(k),b})},v=({course:k,view:w})=>{const b=u.saved.some(C=>C.id===k.id);return e.jsxs(Q,{children:[e.jsx(le,{children:e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx(ue,{className:"text-lg",children:k.title}),e.jsx(Se,{children:k.provider})]}),e.jsx(he,{variant:"outline",children:k.level})]})}),e.jsx(ee,{children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[e.jsx("span",{children:k.duration}),k.certificate&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(na,{className:"h-4 w-4"}),"Certificate"]})]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:k.tags.map(C=>e.jsx(he,{variant:"secondary",children:C},C))}),w==="enrolled"&&k.progress!==void 0&&e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex justify-between text-sm",children:[e.jsx("span",{className:"text-muted-foreground",children:"Progress"}),e.jsxs("span",{className:"font-medium",children:[k.progress,"%"]})]}),e.jsx(OT,{value:k.progress})]}),w==="recommended"&&k.reason&&e.jsxs("p",{className:"text-xs text-muted-foreground italic",children:["💡 ",k.reason]}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:flex-wrap",children:[w==="enrolled"&&e.jsx(T,{className:"sm:w-auto w-full",onClick:()=>i(k.id),children:"Continue Learning"}),w==="recommended"&&e.jsxs(e.Fragment,{children:[e.jsx(T,{className:"sm:w-auto w-full",onClick:()=>y(k.id),children:"Enroll Now"}),e.jsx(T,{variant:b?"secondary":"outline",className:"sm:w-auto w-full",size:"sm",disabled:b,onClick:()=>m(k),children:b?"Saved":"Save Course"}),e.jsx(T,{variant:"destructive",size:"sm",className:"sm:w-auto w-full",onClick:()=>f(k.id),children:"Remove"}),!h&&e.jsx("p",{className:"text-[11px] text-muted-foreground",children:"Remove not available yet"})]}),w==="saved"&&e.jsxs(e.Fragment,{children:[e.jsx(T,{className:"sm:w-auto w-full",size:"sm",onClick:()=>y(k.id),children:"Start Course"}),e.jsx(T,{variant:"destructive",size:"sm",className:"sm:w-auto w-full",onClick:()=>x(k.id),children:"Remove Saved"}),!d&&e.jsx("p",{className:"text-[11px] text-muted-foreground",children:"Remove from saved not available yet"})]})]})]})})]})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"Courses"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Advance your iGaming career"})]}),e.jsx(T,{onClick:o,children:"Explore All Courses"})]}),e.jsxs(nn,{defaultValue:"enrolled",className:"w-full",children:[e.jsxs(rn,{className:"grid w-full grid-cols-3 lg:grid-cols-4",children:[e.jsxs(Pe,{value:"enrolled",children:[e.jsx(ia,{className:"h-4 w-4 mr-2"}),"Enrolled (",u.enrolled.length,")"]}),e.jsxs(Pe,{value:"recommended",children:[e.jsx(Pa,{className:"h-4 w-4 mr-2"}),"Recommended (",u.recommended.length,")"]}),e.jsxs(Pe,{value:"saved",children:[e.jsx(fa,{className:"h-4 w-4 mr-2"}),"Saved (",u.saved.length,")"]}),e.jsxs(Pe,{value:"certificates",children:[e.jsx(na,{className:"h-4 w-4 mr-2"}),"Certificates (",r.length,")"]})]}),e.jsx(je,{value:"enrolled",className:"space-y-4",children:e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:u.enrolled.length===0?e.jsx(Q,{className:"md:col-span-2",children:e.jsxs(ee,{className:"flex flex-col items-center justify-center py-10",children:[e.jsx(ia,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"No enrolled courses yet"}),e.jsx(T,{variant:"link",className:"mt-2",onClick:o,children:"Browse Courses"})]})}):u.enrolled.map(k=>e.jsx(v,{course:k,view:"enrolled"},k.id))})}),e.jsx(je,{value:"recommended",className:"space-y-4",children:e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:u.recommended.map(k=>e.jsx(v,{course:k,view:"recommended"},k.id))})}),e.jsx(je,{value:"saved",className:"space-y-4",children:e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:u.saved.length===0?e.jsx(Q,{className:"md:col-span-2",children:e.jsxs(ee,{className:"flex flex-col items-center justify-center py-10",children:[e.jsx(fa,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"No saved courses yet"}),e.jsx(T,{variant:"link",className:"mt-2",onClick:o,children:"Browse Courses"}),!l&&e.jsx("p",{className:"text-[11px] text-muted-foreground mt-2",children:"Saving courses not available yet"})]})}):u.saved.map(k=>e.jsx(v,{course:k,view:"saved"},k.id))})}),e.jsx(je,{value:"certificates",className:"space-y-4",children:e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:r.length===0?e.jsx(Q,{className:"md:col-span-2",children:e.jsxs(ee,{className:"flex flex-col items-center justify-center py-10",children:[e.jsx(na,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"No certificates yet"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Complete courses to earn certificates"})]})}):r.map(k=>e.jsxs(Q,{children:[e.jsx(le,{children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"p-2 rounded-lg bg-accent/10",children:e.jsx(na,{className:"h-6 w-6 text-accent"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx(ue,{className:"text-base",children:k.title}),e.jsx(Se,{children:k.issuer}),e.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:["Issued: ",k.date]})]})]})}),e.jsx(ee,{children:e.jsx(T,{variant:"outline",size:"sm",className:"w-full",children:"Download Certificate"})})]},k.id))})})]})]})}function nZ({recommendedNews:t,savedArticles:a,categories:n,selectedCategory:r,onRead:s,onSave:i,onRemoveSaved:o,onRemoveRecommended:l,onCategoryChange:d,onManagePreferences:h}){const[u,p]=M.useState({recommended:t||[],saved:a||[]});M.useEffect(()=>{p({recommended:t||[],saved:a||[]})},[t,a]);const y=f=>{p(v=>{if(v.saved.some(b=>b.id===f.id))return v;const w={recommended:v.recommended.map(b=>b.id===f.id?{...b,saved:!0}:b),saved:[...v.saved,{...f,saved:!0}]};return i(f.id),w})},m=f=>{p(v=>{const k={recommended:v.recommended.map(w=>w.id===f?{...w,saved:!1}:w),saved:v.saved.filter(w=>w.id!==f)};return o==null||o(f),k})},x=f=>{p(v=>{const k={...v,recommended:v.recommended.filter(w=>w.id!==f)};return l==null||l(f),k})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"News"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Stay updated with iGaming industry"})]}),e.jsxs(T,{variant:"outline",onClick:h,children:[e.jsx(Cn,{className:"h-4 w-4 mr-2"}),"Preferences"]})]}),e.jsxs(nn,{defaultValue:"recommended",className:"w-full",children:[e.jsxs(rn,{children:[e.jsxs(Pe,{value:"recommended",children:[e.jsx(Aa,{className:"h-4 w-4 mr-2"}),"Recommended (",u.recommended.length,")"]}),e.jsxs(Pe,{value:"saved",children:[e.jsx(fa,{className:"h-4 w-4 mr-2"}),"Saved (",u.saved.length,")"]})]}),e.jsxs(je,{value:"recommended",className:"space-y-4",children:[e.jsxs("div",{className:"flex flex-wrap gap-2 mb-4",children:[e.jsx(T,{variant:r==="all"?"default":"outline",size:"sm",onClick:()=>d("all"),children:"All"}),n.map(f=>e.jsx(T,{variant:r===f?"default":"outline",size:"sm",onClick:()=>d(f),children:f},f))]}),e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:u.recommended.map(f=>e.jsx(qC,{article:f,view:"recommended",isSaved:u.saved.some(v=>v.id===f.id),onRead:s,onSave:y,onRemove:x},f.id))})]}),e.jsx(je,{value:"saved",className:"space-y-4",children:e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:u.saved.length===0?e.jsx(Q,{className:"md:col-span-2",children:e.jsxs(ee,{className:"flex flex-col items-center justify-center py-10",children:[e.jsx(fa,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"No saved articles yet"}),e.jsx(T,{variant:"link",className:"mt-2",onClick:h,children:"Browse News"})]})}):u.saved.map(f=>e.jsx(qC,{article:f,view:"saved",onRead:s,onRemove:m},f.id))})})]})]})}function rZ({settings:t,onUpdate:a}){const{notifications:n,connectedAccounts:r,subscription:s}=t,i=d=>{a({action:"notifications",updates:d})},o=d=>{a({action:"connect-account",platform:d})},l=d=>{a({action:"disconnect-account",accountId:d})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"Settings"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Manage your account preferences"})]}),e.jsxs(nn,{defaultValue:"notifications",className:"w-full",children:[e.jsxs(rn,{className:"grid w-full grid-cols-3 lg:grid-cols-7",children:[e.jsxs(Pe,{value:"notifications",children:[e.jsx(Yo,{className:"h-4 w-4 mr-2"}),"Notifications"]}),e.jsxs(Pe,{value:"account",children:[e.jsx(An,{className:"h-4 w-4 mr-2"}),"Account"]}),e.jsxs(Pe,{value:"subscription",children:[e.jsx(zc,{className:"h-4 w-4 mr-2"}),"Subscription"]}),e.jsxs(Pe,{value:"connected",children:[e.jsx(Uc,{className:"h-4 w-4 mr-2"}),"Connected"]})]}),e.jsx(je,{value:"notifications",children:e.jsxs(Q,{children:[e.jsxs(le,{children:[e.jsx(ue,{children:"Notification Preferences"}),e.jsx(Se,{children:"Choose how you want to be notified"})]}),e.jsxs(ee,{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(O,{htmlFor:"email-notif",className:"text-base",children:"Email Notifications"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Receive updates via email"})]}),e.jsx(ut,{id:"email-notif",checked:n.emailNotifications,onCheckedChange:d=>i({emailNotifications:d})})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(O,{htmlFor:"push-notif",className:"text-base",children:"Push Notifications"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Browser push notifications"})]}),e.jsx(ut,{id:"push-notif",checked:n.pushNotifications,onCheckedChange:d=>i({pushNotifications:d})})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(O,{htmlFor:"weekly-digest",className:"text-base",children:"Weekly Digest"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Summary of activities"})]}),e.jsx(ut,{id:"weekly-digest",checked:n.weeklyDigest,onCheckedChange:d=>i({weeklyDigest:d})})]}),e.jsxs("div",{className:"border-t pt-4 space-y-4",children:[e.jsx("h4",{className:"font-medium",children:"Content Alerts"}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(O,{htmlFor:"job-alerts-set",children:"Job Alerts"}),e.jsx(ut,{id:"job-alerts-set",checked:n.jobAlerts,onCheckedChange:d=>i({jobAlerts:d})})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(O,{htmlFor:"course-updates",children:"Course Updates"}),e.jsx(ut,{id:"course-updates",checked:n.courseUpdates,onCheckedChange:d=>i({courseUpdates:d})})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(O,{htmlFor:"news-digest",children:"News Digest"}),e.jsx(ut,{id:"news-digest",checked:n.newsDigest,onCheckedChange:d=>i({newsDigest:d})})]})]})]})]})}),e.jsx(je,{value:"account",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs(Q,{children:[e.jsxs(le,{children:[e.jsx(ue,{children:"Password"}),e.jsx(Se,{children:"Change your account password"})]}),e.jsx(ee,{children:e.jsx(T,{onClick:()=>a({action:"change-password"}),children:"Change Password"})})]}),e.jsxs(Q,{children:[e.jsxs(le,{children:[e.jsx(ue,{children:"Delete Account"}),e.jsx(Se,{children:"Permanently delete your account and all data"})]}),e.jsx(ee,{children:e.jsx(T,{variant:"destructive",onClick:()=>a({action:"delete-account"}),children:"Delete Account"})})]})]})}),e.jsx(je,{value:"subscription",children:e.jsxs(Q,{children:[e.jsx(le,{children:e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{children:[e.jsx(ue,{children:"Subscription Plan"}),e.jsx(Se,{children:"Manage your membership"})]}),s.isPremium&&e.jsx(he,{children:"Premium"})]})}),e.jsx(ee,{className:"space-y-4",children:s.isPremium?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"p-4 border rounded-lg bg-accent/5",children:[e.jsx("h4",{className:"font-semibold mb-2",children:"Premium Benefits"}),e.jsxs("ul",{className:"space-y-1 text-sm text-muted-foreground",children:[e.jsx("li",{children:"✓ Unlimited job applications"}),e.jsx("li",{children:"✓ Access to all courses"}),e.jsx("li",{children:"✓ Priority support"}),e.jsx("li",{children:"✓ Advanced analytics"}),e.jsx("li",{children:"✓ Ad-free experience"})]})]}),e.jsx(T,{variant:"outline",children:"Manage Subscription"})]}):e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Upgrade to Premium to unlock exclusive features"}),e.jsx(T,{onClick:()=>a({action:"upgrade",plan:"premium"}),children:"Upgrade to Premium"})]})})]})}),e.jsx(je,{value:"connected",children:e.jsxs(Q,{children:[e.jsxs(le,{children:[e.jsx(ue,{children:"Connected Accounts"}),e.jsx(Se,{children:"Manage linked accounts and integrations"})]}),e.jsx(ee,{className:"space-y-4",children:r.map(d=>e.jsxs("div",{className:"flex items-center justify-between p-4 border rounded-lg",children:[e.jsxs("div",{children:[e.jsx("h4",{className:"font-medium",children:d.platform}),d.connected&&d.email&&e.jsx("p",{className:"text-sm text-muted-foreground",children:d.email})]}),d.connected?e.jsx(T,{variant:"outline",size:"sm",onClick:()=>l(d.id),children:"Disconnect"}):e.jsx(T,{size:"sm",onClick:()=>o(d.platform),children:"Connect"})]},d.id))})]})})]})]})}function sZ({user:t,profileData:a,jobsDashboard:n,alerts:r,snapshot:s,feedItems:i,onUploadCV:o,cvPreviewText:l,cvPreviewStatus:d,cvPreviewErrorMessage:h,coursesData:u,newsData:p,settingsData:y,onUpdateProfile:m,activeTab:x,tabPaths:f,onTabChange:v}){const[k,w]=M.useState(x??"overview");M.useEffect(()=>{x&&w(x)},[x]);const b=n||(a==null?void 0:a.jobsDashboard)||{savedJobs:[],recommendedJobs:[],applications:[]},C=()=>console.log("/logout"),j=A=>console.log(A),I=async A=>{await m({type:"courses",payload:A})},N=(...A)=>console.log("Action:",...A),S=async A=>{await m({type:"news",payload:A})},L=y||{notifications:{emailNotifications:!0,pushNotifications:!1,weeklyDigest:!0,jobAlerts:!0,courseUpdates:!0,newsDigest:!1},connectedAccounts:[{id:"google_89213",platform:"Google",connected:!0,email:t.email},{id:"linkedin_55521",platform:"LinkedIn",connected:!1}],subscription:{isPremium:!1,plan:"free",renewalDate:null}},q=async A=>{await m({type:"settings",payload:A})},_=A=>{const D=A;x||w(D),v==null||v({tab:D,path:f==null?void 0:f[D]})};return e.jsx(sW,{user:t,onLogout:C,onNavigate:j,currentPath:"/dashboard",notificationCount:r.length,children:e.jsxs(nn,{value:x??k,onValueChange:_,className:"w-full",children:[e.jsxs(rn,{className:"grid w-full grid-cols-3 lg:grid-cols-6",children:[e.jsxs(Pe,{value:"overview",className:"flex items-center gap-2",children:[e.jsx(Ua,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden sm:inline",children:"Overview"})]}),e.jsxs(Pe,{value:"profile",className:"flex items-center gap-2",children:[e.jsx(ic,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden sm:inline",children:"Profile"})]}),e.jsxs(Pe,{value:"jobs",className:"flex items-center gap-2",children:[e.jsx(Ze,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden sm:inline",children:"Jobs"})]}),e.jsxs(Pe,{value:"courses",className:"flex items-center gap-2",children:[e.jsx(ia,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden sm:inline",children:"Courses"})]}),e.jsxs(Pe,{value:"news",className:"flex items-center gap-2",children:[e.jsx(Aa,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden sm:inline",children:"News"})]}),e.jsxs(Pe,{value:"settings",className:"flex items-center gap-2",children:[e.jsx(vo,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden sm:inline",children:"Settings"})]})]}),e.jsx(je,{value:"overview",className:"mt-6",children:e.jsx(iW,{userName:t.name,feedItems:i,alerts:r,snapshot:s,onSave:N,onApply:N,onEnroll:A=>I({action:"enroll",courseId:A}),onRead:A=>S({action:"read",articleId:A})})}),e.jsx(je,{value:"profile",className:"mt-6",children:e.jsx(VW,{profile:a,onUpdate:A=>m(A)})}),e.jsx(je,{value:"jobs",className:"mt-6",children:e.jsx(UW,{savedJobs:b.savedJobs,applications:b.applications,recommendedJobs:b.recommendedJobs,onApply:A=>console.log("Applied:",A),onRemove:A=>console.log("Removed:",A),onUploadCV:o??(A=>console.log("Upload CV changed:",(A==null?void 0:A.name)||"removed")),cvPreviewText:l,cvPreviewStatus:d,cvPreviewErrorMessage:h,onSetAlert:()=>console.log("Set alerts clicked"),onUpdateProfile:async A=>{await m({type:"jobs",payload:A.payload})}})}),e.jsx(je,{value:"courses",className:"mt-6",children:e.jsx(aZ,{enrolledCourses:(u==null?void 0:u.enrolledCourses)||[],savedCourses:(u==null?void 0:u.savedCourses)||[],recommendedCourses:(u==null?void 0:u.recommendedCourses)||[],certificates:(u==null?void 0:u.certificates)||[],onEnroll:A=>I({action:"enroll",courseId:A}),onContinue:A=>I({action:"continue",courseId:A}),onExplore:()=>I({action:"explore"}),onSave:A=>I({action:"save",courseId:A}),onRemoveSaved:A=>I({action:"remove-saved",courseId:A}),onRemoveRecommended:A=>I({action:"remove-recommended",courseId:A})})}),e.jsx(je,{value:"news",className:"mt-6",children:e.jsx(nZ,{recommendedNews:(p==null?void 0:p.recommendedNews)||[],savedArticles:(p==null?void 0:p.savedArticles)||[],categories:(p==null?void 0:p.categories)||[],selectedCategory:(p==null?void 0:p.selectedCategory)||"all",onRead:A=>S({action:"read",articleId:A}),onSave:A=>S({action:"save",articleId:A}),onRemoveSaved:A=>S({action:"remove-saved",articleId:A}),onRemoveRecommended:A=>S({action:"remove-recommended",articleId:A}),onCategoryChange:A=>S({action:"category",category:A}),onManagePreferences:()=>S({action:"manage-preferences"})})}),e.jsx(je,{value:"settings",className:"mt-6",children:e.jsx(rZ,{settings:L,onUpdate:q})})]})})}exports.Advantages=vA;exports.Analytics=BG;exports.Banner=fl;exports.Button=T;exports.CandidateCard=qR;exports.CandidateProfile=NH;exports.Cart=RA;exports.Chatbot=_A;exports.CompanyAdminCandidates=zR;exports.CompanyAdminEditDialog=PG;exports.CompanyAdminEvents=rT;exports.CompanyAdminJobs=sT;exports.CompanyAdminNews=iT;exports.CompanyAdminOverview=oT;exports.CompanyAdminPeople=cT;exports.CompanyAdminProducts=lT;exports.CompanyAdminSettings=gT;exports.CompanyAdminShell=AG;exports.CompanyClaim=SU;exports.CompanyDetail=xU;exports.CompanyDirectory=_R;exports.CompanyDirectoryContainer=CU;exports.CompanyGroupDetail=gU;exports.ConsentBanner=WA;exports.ConsentProvider=GA;exports.CourseTypes=DA;exports.Courses=MA;exports.CoursesPage=QO;exports.Dashboard=sZ;exports.Destinations=jA;exports.FAQ=AA;exports.FeatureJobs=rE;exports.Features=IA;exports.Footer=ME;exports.FooterLib=BA;exports.ForEmployers=qA;exports.ForgotPassword=eW;exports.Gallery=PA;exports.GroupPrices=jq;exports.Header=$O;exports.HeaderAlternative=VA;exports.Hero=CA;exports.HeroAlternative=zA;exports.HomePage=nE;exports.IgamingCareerHome=yE;exports.Input=de;exports.JobDetailPage=BO;exports.JobListings=bE;exports.JobSearchWidget=HA;exports.Listing=FO;exports.Login=WG;exports.MobileNav=XA;exports.Navbar=jE;exports.NewsPage=GO;exports.Newsletter=OA;exports.NotificationModal=ZA;exports.Partners=$A;exports.Register=JG;exports.RegisterV2=KG;exports.SearchableSelect=Xj;exports.Services=SA;exports.ServicesNoIcons=TA;exports.SidebarNewsletter=uS;exports.SignInPromptModal=nW;exports.SlidingSummary=Cq;exports.TagBadge=VC;exports.TagPicker=zD;exports.Testimonials=NA;exports.TrustSignals=FA;exports.ValueProposition=EA;exports.Videos=LA;exports.canEditSection=_G;exports.getEnabledPermissions=RG;exports.useConsent=hS;