PageSourceSearch

https://elite-sourcing.ch/assets/index-YoJGgOVf.js

js elite-sourcing.ch collected 2026-10-08 10:20:57 UTC 889,873 bytes, 566 lines download raw bytes

vendor: 4,802 bytes, lines 1-9
1var FT=Object.defineProperty;var Oy=e=>{throw TypeError(e)};var VT=(e,t,n)=>t in e?FT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ge=(e,t,n)=>VT(e,typeof t!="symbol"?t+"":t,n),dp=(e,t,n)=>t.has(e)||Oy("Cannot "+n);var O=(e,t,n)=>(dp(e,t,"read from private field"),n?n.call(e):t.get(e)),_e=(e,t,n)=>t.has(e)?Oy("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),le=(e,t,n,r)=>(dp(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Fe=(e,t,n)=>(dp(e,t,"access private method"),n);var _u=(e,t,n,r)=>({set _(o){le(e,t,o,n)},get _(){return O(e,t,r)}});function BT(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const l=Object.getOwnPropertyDescriptor(r,o);l&&Object.defineProperty(e,o,l.get?l:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();function pg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hp={exports:{}},sl={},fp={exports:{}},ze={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Dy;function $T(){if(Dy)return ze;Dy=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.iterator;function v(D){return D===null||typeof D!="object"?null:(D=g&&D[g]||D["@@iterator"],typeof D=="function"?D:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,b={};function C(D,W,de){this.props=D,this.context=W,this.refs=b,this.updater=de||N}C.prototype.isReactComponent={},C.prototype.setState=function(D,W){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,W,"setState")},C.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function S(){}S.prototype=C.prototype;function k(D,W,de){this.props=D,this.context=W,this.refs=b,this.updater=de||N}var _=k.prototype=new S;_.constructor=k,j(_,C.prototype),_.isPureReactComponent=!0;var T=Array.isArray,R=Object.prototype.hasOwnProperty,P={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function M(D,W,de){var he,Pe={},ie=null,Q=null;if(W!=null)for(he in W.ref!==void 0&&(Q=W.ref),W.key!==void 0&&(ie=""+W.key),W)R.call(W,he)&&!L.hasOwnProperty(he)&&(Pe[he]=W[he]);var me=arguments.length-2;if(me===1)Pe.children=de;else if(1<me){for(var Se=Array(me),Re=0;Re<me;Re++)Se[Re]=arguments[Re+2];Pe.children=Se}if(D&&D.defaultProps)for(he in me=D.defaultProps,me)Pe[he]===void 0&&(Pe[he]=me[he]);return{$$typeof:e,type:D,key:ie,ref:Q,props:Pe,_owner:P.current}}function G(D,W){return{$$typeof:e,type:D.type,key:W,ref:D.ref,props:D.props,_owner:D._owner}}function H(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function ne(D){var W={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(de){return W[de]})}var ce=/\/+/g;function se(D,W){return typeof D=="object"&&D!==null&&D.key!=null?ne(""+D.key):W.toString(36)}function ue(D,W,de,he,Pe){var ie=typeof D;(ie==="undefined"||ie==="boolean")&&(D=null);var Q=!1;if(D===null)Q=!0;else switch(ie){case"string":case"number":Q=!0;break;case"object":switch(D.$$typeof){case e:case t:Q=!0}}if(Q)return Q=D,Pe=Pe(Q),D=he===""?"."+se(Q,0):he,T(Pe)?(de="",D!=null&&(de=D.replace(ce,"$&/")+"/"),ue(Pe,W,de,"",function(Re){return Re})):Pe!=null&&(H(Pe)&&(Pe=G(Pe,de+(!Pe.key||Q&&Q.key===Pe.key?"":(""+Pe.key).replace(ce,"$&/")+"/")+D)),W.pu
vendor: 10,887 bytes, lines 9-33
9sh(Pe)),1;if(Q=0,he=he===""?".":he+":",T(D))for(var me=0;me<D.length;me++){ie=D[me];var Se=he+se(ie,me);Q+=ue(ie,W,de,Se,Pe)}else if(Se=v(D),typeof Se=="function")for(D=Se.call(D),me=0;!(ie=D.next()).done;)ie=ie.value,Se=he+se(ie,me++),Q+=ue(ie,W,de,Se,Pe);else if(ie==="object")throw W=String(D),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.");return Q}function Te(D,W,de){if(D==null)return D;var he=[],Pe=0;return ue(D,he,"","",function(ie){return W.call(de,ie,Pe++)}),he}function oe(D){if(D._status===-1){var W=D._result;W=W(),W.then(function(de){(D._status===0||D._status===-1)&&(D._status=1,D._result=de)},function(de){(D._status===0||D._status===-1)&&(D._status=2,D._result=de)}),D._status===-1&&(D._status=0,D._result=W)}if(D._status===1)return D._result.default;throw D._result}var re={current:null},B={transition:null},K={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:B,ReactCurrentOwner:P};function Y(){throw Error("act(...) is not supported in production builds of React.")}return ze.Children={map:Te,forEach:function(D,W,de){Te(D,function(){W.apply(this,arguments)},de)},count:function(D){var W=0;return Te(D,function(){W++}),W},toArray:function(D){return Te(D,function(W){return W})||[]},only:function(D){if(!H(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},ze.Component=C,ze.Fragment=n,ze.Profiler=o,ze.PureComponent=k,ze.StrictMode=r,ze.Suspense=h,ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=K,ze.act=Y,ze.cloneElement=function(D,W,de){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var he=j({},D.props),Pe=D.key,ie=D.ref,Q=D._owner;if(W!=null){if(W.ref!==void 0&&(ie=W.ref,Q=P.current),W.key!==void 0&&(Pe=""+W.key),D.type&&D.type.defaultProps)var me=D.type.defaultProps;for(Se in W)R.call(W,Se)&&!L.hasOwnProperty(Se)&&(he[Se]=W[Se]===void 0&&me!==void 0?me[Se]:W[Se])}var Se=arguments.length-2;if(Se===1)he.children=de;else if(1<Se){me=Array(Se);for(var Re=0;Re<Se;Re++)me[Re]=arguments[Re+2];he.children=me}return{$$typeof:e,type:D.type,key:Pe,ref:ie,props:he,_owner:Q}},ze.createContext=function(D){return D={$$typeof:c,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:l,_context:D},D.Consumer=D},ze.createElement=M,ze.createFactory=function(D){var W=M.bind(null,D);return W.type=D,W},ze.createRef=function(){return{current:null}},ze.forwardRef=function(D){return{$$typeof:d,render:D}},ze.isValidElement=H,ze.lazy=function(D){return{$$typeof:m,_payload:{_status:-1,_result:D},_init:oe}},ze.memo=function(D,W){return{$$typeof:f,type:D,compare:W===void 0?null:W}},ze.startTransition=function(D){var W=B.transition;B.transition={};try{D()}finally{B.transition=W}},ze.unstable_act=Y,ze.useCallback=function(D,W){return re.current.useCallback(D,W)},ze.useContext=function(D){return re.current.useContext(D)},ze.useDebugValue=function(){},ze.useDeferredValue=function(D){return re.current.useDeferredValue(D)},ze.useEffect=function(D,W){return re.current.useEffect(D,W)},ze.useId=function(){return re.current.useId()},ze.useImperativeHandle=function(D,W,de){return re.current.useImperativeHandle(D,W,de)},ze.useInsertionEffect=function(D,W){return re.current.useInsertionEffect(D,W)},ze.useLayoutEffect=function(D,W){return re.current.useLayoutEffect(D,W)},ze.useMemo=function(D,W){return re.current.useMemo(D,W)},ze.useReducer=function(D,W,de){return re.current.useReducer(D,W,de)},ze.useRef=function(D){return re.current.useRef(D)},ze.useState=function(D){return re.current.useState(D)},ze.useSyncExternalStore=function(D,W,de){return re.current.useSyncExternalStore(D,W,de)},ze.useTransition=function(){return re.current.useTransition()},ze.version="18.3.1",ze}var Iy;function mg(){return Iy||(Iy=1,fp.exports=$T()),fp.exports}/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var Ly;function UT(){if(Ly)return sl;Ly=1;var e=mg(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(d,h,f){var m,g={},v=null,N=null;f!==void 0&&(v=""+f),h.key!==void 0&&(v=""+h.key),h.ref!==void 0&&(N=h.ref);for(m in h)r.call(h,m)&&!l.hasOwnProperty(m)&&(g[m]=h[m]);if(d&&d.defaultProps)for(m in h=d.defaultProps,h)g[m]===void 0&&(g[m]=h[m]);return{$$typeof:t,type:d,key:v,ref:N,props:g,_owner:o.current}}return sl.Fragment=n,sl.jsx=c,sl.jsxs=c,sl}var Fy;function zT(){return Fy||(Fy=1,hp.exports=UT()),hp.exports}var i=zT(),y=mg();const it=pg(y),gg=BT({__proto__:null,default:it},[y]);var Eu={},pp={exports:{}},pn={},mp={exports:{}},gp={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var Vy;function qT(){return Vy||(Vy=1,(function(e){function t(B,K){var Y=B.length;B.push(K);e:for(;0<Y;){var D=Y-1>>>1,W=B[D];if(0<o(W,K))B[D]=K,B[Y]=W,Y=D;else break e}}function n(B){return B.length===0?null:B[0]}function r(B){if(B.length===0)return null;var K=B[0],Y=B.pop();if(Y!==K){B[0]=Y;e:for(var D=0,W=B.length,de=W>>>1;D<de;){var he=2*(D+1)-1,Pe=B[he],ie=he+1,Q=B[ie];if(0>o(Pe,Y))ie<W&&0>o(Q,Pe)?(B[D]=Q,B[ie]=Y,D=ie):(B[D]=Pe,B[he]=Y,D=he);else if(ie<W&&0>o(Q,Y))B[D]=Q,B[ie]=Y,D=ie;else break e}}return K}function o(B,K){var Y=B.sortIndex-K.sortIndex;return Y!==0?Y:B.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var h=[],f=[],m=1,g=null,v=3,N=!1,j=!1,b=!1,C=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(B){for(var K=n(f);K!==null;){if(K.callback===null)r(f);else if(K.startTime<=B)r(f),K.sortIndex=K.expirationTime,t(h,K);else break;K=n(f)}}function T(B){if(b=!1,_(B),!j)if(n(h)!==null)j=!0,oe(R);else{var K=n(f);K!==null&&re(T,K.startTime-B)}}function R(B,K){j=!1,b&&(b=!1,S(M),M=-1),N=!0;var Y=v;try{for(_(K),g=n(h);g!==null&&(!(g.expirationTime>K)||B&&!ne());){var D=g.callback;if(typeof D=="function"){g.callback=null,v=g.priorityLevel;var W=D(g.expirationTime<=K);K=e.unstable_now(),typeof W=="function"?g.callback=W:g===n(h)&&r(h),_(K)}else r(h);g=n(h)}if(g!==null)var de=!0;else{var he=n(f);he!==null&&re(T,he.startTime-K),de=!1}return de}finally{g=null,v=Y,N=!1}}var P=!1,L=null,M=-1,G=5,H=-1;function ne(){return!(e.unstable_now()-H<G)}function ce(){if(L!==null){var B=e.unstable_now();H=B;var K=!0;try{K=L(!0,B)}finally{K?se():(P=!1,L=null)}}else P=!1}var se;if(typeof k=="function")se=function(){k(ce)};else if(typeof MessageChannel<"u"){var ue=new MessageChannel,Te=ue.port2;ue.port1.onmessage=ce,se=function(){Te.postMessage(null)}}else se=function(){C(ce,0)};function oe(B){L=B,P||(P=!0,se())}function re(B,K){M=C(function(){B(e.unstable_now())},K)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(B){B.callback=null},e.unstable_continueExecution=function(){j||N||(j=!0,oe(R))},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(h)},e.unstable_next=function(B){switch(v){case 1:case 2:case 3:var K=3;break;default:K=v}var Y=v;v=K;try{return B()}finally{v=Y}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(B,K){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var Y=v;v=B;try{return K()}finally{v=Y}},e.unstable_scheduleCallback=function(B,K,Y){var D=e.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?D+Y:D):Y=D,B){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=Y+W,B={id:m++,callback:K,priorityLevel:B,startTime:Y,expirationTime:W,sortIndex:-1},Y>D?(B.sortIndex=Y,t(f,B),n(h)===null&&B===n(f)&&(b?(S(M),M=-1):b=!0,re(T,Y-D))):(B.sortIndex=W,t(h,B),j||N||(j=!0,oe(R))),B},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(B){var K=v;return function(){var Y=v;v=K;try{return B.apply(this,arguments)}finally{v=Y}}}})(gp)),gp}var By;function HT(){return By||(By=1,mp.exports=qT()),mp.exports}/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var $y;function WT(){if($y)return pn;$y=1;var e=mg(),t=HT();function n(s){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+s,u=1;u<arguments.length;u++)a+="&args[]="+encodeURIComponent(arguments[u]);return"Minified React error #"+s+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function l(s,a){c(s,a),c(s+"Capture",a)}function c(s,a){for(o[s]=a,s=0;s<a.length;s++)r.add(a[s])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,m={},g={};function v(s){return h.call(g,s)?!0:h.call(m,s)?!1:f.test(s)?g[s]=!0:(m[s]=!0,!1)}function N(s,a,u,p){if(u!==null&&u.type===0)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":return p?!1:u!==null?!u.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function j(s,a,u,p){if(a===null||typeof a>"u"||N(s,a,u,p))return!0;
vendor: 46,116 bytes, lines 33-38
33if(p)return!1;if(u!==null)switch(u.type){case 3:return!a;case 4:return a===!1;case 5:return isNaN(a);case 6:return isNaN(a)||1>a}return!1}function b(s,a,u,p,x,w,E){this.acceptsBooleans=a===2||a===3||a===4,this.attributeName=p,this.attributeNamespace=x,this.mustUseProperty=u,this.propertyName=s,this.type=a,this.sanitizeURL=w,this.removeEmptyString=E}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){C[s]=new b(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var a=s[0];C[a]=new b(a,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){C[s]=new b(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){C[s]=new b(s,2,!1,s,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(s){C[s]=new b(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){C[s]=new b(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){C[s]=new b(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){C[s]=new b(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){C[s]=new b(s,5,!1,s.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function k(s){return s[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(s){var a=s.replace(S,k);C[a]=new b(a,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var a=s.replace(S,k);C[a]=new b(a,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var a=s.replace(S,k);C[a]=new b(a,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){C[s]=new b(s,1,!1,s.toLowerCase(),null,!1,!1)}),C.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){C[s]=new b(s,1,!1,s.toLowerCase(),null,!0,!0)});function _(s,a,u,p){var x=C.hasOwnProperty(a)?C[a]:null;(x!==null?x.type!==0:p||!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(j(a,u,x,p)&&(u=null),p||x===null?v(a)&&(u===null?s.removeAttribute(a):s.setAttribute(a,""+u)):x.mustUseProperty?s[x.propertyName]=u===null?x.type===3?!1:"":u:(a=x.attributeName,p=x.attributeNamespace,u===null?s.removeAttribute(a):(x=x.type,u=x===3||x===4&&u===!0?"":""+u,p?s.setAttributeNS(p,a,u):s.setAttribute(a,u))))}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,R=Symbol.for("react.element"),P=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),H=Symbol.for("react.provider"),ne=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),se=Symbol.for("react.suspense"),ue=Symbol.for("react.suspense_list"),Te=Symbol.for("react.memo"),oe=Symbol.for("react.lazy"),re=Symbol.for("react.offscreen"),B=Symbol.iterator;function K(s){return s===null||typeof s!="object"?null:(s=B&&s[B]||s["@@iterator"],typeof s=="function"?s:null)}var Y=Object.assign,D;function W(s){if(D===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);D=a&&a[1]||""}return`
34`+D+s}var de=!1;function he(s,a){if(!s||de)return"";de=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(a)if(a=function(){throw Error()},Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[])}catch(z){var p=z}Reflect.construct(s,[],a)}else{try{a.call()}catch(z){p=z}s.call(a.prototype)}else{try{throw Error()}catch(z){p=z}s()}}catch(z){if(z&&p&&typeof z.stack=="string"){for(var x=z.stack.split(`
35`),w=p.stack.split(`
36`),E=x.length-1,A=w.length-1;1<=E&&0<=A&&x[E]!==w[A];)A--;for(;1<=E&&0<=A;E--,A--)if(x[E]!==w[A]){if(E!==1||A!==1)do if(E--,A--,0>A||x[E]!==w[A]){var I=`
37`+x[E].replace(" at new "," at ");return s.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",s.displayName)),I}while(1<=E&&0<=A);break}}}finally{de=!1,Error.prepareStackTrace=u}return(s=s?s.displayName||s.name:"")?W(s):""}function Pe(s){switch(s.tag){case 5:return W(s.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return s=he(s.type,!1),s;case 11:return s=he(s.type.render,!1),s;case 1:return s=he(s.type,!0),s;default:return""}}function ie(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case L:return"Fragment";case P:return"Portal";case G:return"Profiler";case M:return"StrictMode";case se:return"Suspense";case ue:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case ne:return(s.displayName||"Context")+".Consumer";case H:return(s._context.displayName||"Context")+".Provider";case ce:var a=s.render;return s=s.displayName,s||(s=a.displayName||a.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case Te:return a=s.displayName||null,a!==null?a:ie(s.type)||"Memo";case oe:a=s._payload,s=s._init;try{return ie(s(a))}catch{}}return null}function Q(s){var a=s.type;switch(s.tag){case 24:return"Cache";case 9:return(a.displayName||"Context")+".Consumer";case 10:return(a._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=a.render,s=s.displayName||s.name||"",a.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ie(a);case 8:return a===M?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a}return null}function me(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function Se(s){var a=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Re(s){var a=Se(s)?"checked":"value",u=Object.getOwnPropertyDescriptor(s.constructor.prototype,a),p=""+s[a];if(!s.hasOwnProperty(a)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var x=u.get,w=u.set;return Object.defineProperty(s,a,{configurable:!0,get:function(){return x.call(this)},set:function(E){p=""+E,w.call(this,E)}}),Object.defineProperty(s,a,{enumerable:u.enumerable}),{getValue:function(){return p},setValue:function(E){p=""+E},stopTracking:function(){s._valueTracker=null,delete s[a]}}}}function Le(s){s._valueTracker||(s._valueTracker=Re(s))}function Ie(s){if(!s)return!1;var a=s._valueTracker;if(!a)return!0;var u=a.getValue(),p="";return s&&(p=Se(s)?s.checked?"true":"false":s.value),s=p,s!==u?(a.setValue(s),!0):!1}function vt(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function Pt(s,a){var u=a.checked;return Y({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:u??s._wrapperState.initialChecked})}function Rt(s,a){var u=a.defaultValue==null?"":a.defaultValue,p=a.checked!=null?a.checked:a.defaultChecked;u=me(a.value!=null?a.value:u),s._wrapperState={initialChecked:p,initialValue:u,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function Ae(s,a){a=a.checked,a!=null&&_(s,"checked",a,!1)}function dt(s,a){Ae(s,a);var u=me(a.value),p=a.type;if(u!=null)p==="number"?(u===0&&s.value===""||s.value!=u)&&(s.value=""+u):s.value!==""+u&&(s.value=""+u);else if(p==="submit"||p==="reset"){s.removeAttribute("value");return}a.hasOwnProperty("value")?$t(s,a.type,u):a.hasOwnProperty("defaultValue")&&$t(s,a.type,me(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(s.defaultChecked=!!a.defaultChecked)}function vn(s,a,u){if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var p=a.type;if(!(p!=="submit"&&p!=="reset"||a.value!==void 0&&a.value!==null))return;a=""+s._wrapperState.initialValue,u||a===s.value||(s.value=a),s.defaultValue=a}u=s.name,u!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,u!==""&&(s.name=u)}function $t(s,a,u){(a!=="number"||vt(s.ownerDocument)!==s)&&(u==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+u&&(s.defaultValue=""+u))}var rs=Array.isArray;function ss(s,a,u,p){if(s=s.options,a){a={};for(var x=0;x<u.length;x++)a["$"+u[x]]=!0;for(u=0;u<s.length;u++)x=a.hasOwnProperty("$"+s[u].value),s[u].selected!==x&&(s[u].selected=x),x&&p&&(s[u].defaultSelected=!0)}else{for(u=""+me(u),a=null,x=0;x<s.length;x++){if(s[x].value===u){s[x].selected=!0,p&&(s[x].defaultSelected=!0);return}a!==null||s[x].disabled||(a=s[x])}a!==null&&(a.selected=!0)}}function Tr(s,a){if(a.dangerouslySetInnerHTML!=null)throw Error(n(91));return Y({},a,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function q0(s,a){var u=a.value;if(u==null){if(u=a.children,a=a.defaultValue,u!=null){if(a!=null)throw Error(n(92));if(rs(u)){if(1<u.length)throw Error(n(93));u=u[0]}a=u}a==null&&(a=""),u=a}s._wrapperState={initialValue:me(u)}}function H0(s,a){var u=me(a.value),p=me(a.defaultValue);u!=null&&(u=""+u,u!==s.value&&(s.value=u),a.defaultValue==null&&s.defaultValue!==u&&(s.defaultValue=u)),p!=null&&(s.defaultValue=""+p)}function W0(s){var a=s.textContent;a===s._wrapperState.initialValue&&a!==""&&a!==null&&(s.value=a)}function K0(s){switch(s){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function bh(s,a){return s==null||s==="http://www.w3.org/1999/xhtml"?K0(a):s==="http://www.w3.org/2000/svg"&&a==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var vc,G0=(function(s){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,u,p,x){MSApp.execUnsafeLocalFunction(function(){return s(a,u,p,x)})}:s})(function(s,a){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=a;else{for(vc=vc||document.createElement("div"),vc.innerHTML="<svg>"+a.valueOf().toString()+"</svg>",a=vc.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;a.firstChild;)s.appendChild(a.firstChild)}});function wa(s,a){if(a){var u=s.firstChild;if(u&&u===s.lastChild&&u.nodeType===3){u.nodeValue=a;return}}s.textContent=a}var ba={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},UE=["Webkit","ms","Moz","O"];Object.keys(ba).forEach(function(s){UE.forEach(function(a){a=a+s.charAt(0).toUpperCase()+s.substring(1),ba[a]=ba[s]})});function Q0(s,a,u){return a==null||typeof a=="boolean"||a===""?"":u||typeof a!="number"||a===0||ba.hasOwnProperty(s)&&ba[s]?(""+a).trim():a+"px"}function Y0(s,a){s=s.style;for(var u in a)if(a.hasOwnProperty(u)){var p=u.indexOf("--")===0,x=Q0(u,a[u],p);u==="float"&&(u="cssFloat"),p?s.setProperty(u,x):s[u]=x}}var zE=Y({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function jh(s,a){if(a){if(zE[s]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw Error(n(137,s));if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw Error(n(60));if(typeof a.dangerouslySetInnerHTML!="object"||!("__html"in a.dangerouslySetInnerHTML))throw Error(n(61))}if(a.style!=null&&typeof a.style!="object")throw Error(n(62))}}function Nh(s,a){if(s.indexOf("-")===-1)return typeof a.is=="string";switch(s){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Sh=null;function Ch(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var _h=null,eo=null,to=null;function X0(s){if(s=za(s)){if(typeof _h!="function")throw Error(n(280));var a=s.stateNode;a&&(a=$c(a),_h(s.stateNode,s.type,a))}}function J0(s){eo?to?to.push(s):to=[s]:eo=s}function Z0(){if(eo){var s=eo,a=to;if(to=eo=null,X0(s),a)for(s=0;s<a.length;s++)X0(a[s])}}function ex(s,a){return s(a)}function tx(){}var Eh=!1;function nx(s,a,u){if(Eh)return s(a,u);Eh=!0;try{return ex(s,a,u)}finally{Eh=!1,(eo!==null||to!==null)&&(tx(),Z0())}}function ja(s,a){var u=s.stateNode;if(u===null)return null;var p=$c(u);if(p===null)return null;u=p[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(s=s.type,p=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!p;break e;default:s=!1}if(s)return null;if(u&&typeof u!="function")throw Error(n(231,a,typeof u));return u}var kh=!1;if(d)try{var Na={};Object.defineProperty(Na,"passive",{get:function(){kh=!0}}),window.addEventListener("test",Na,Na),window.removeEventListener("test",Na,Na)}catch{kh=!1}function qE(s,a,u,p,x,w,E,A,I){var z=Array.prototype.slice.call(arguments,3);try{a.apply(u,z)}catch(J){this.onError(J)}}var Sa=!1,yc=null,wc=!1,Th=null,HE={onError:function(s){Sa=!0,yc=s}};function WE(s,a,u,p,x,w,E,A,I){Sa=!1,yc=null,qE.apply(HE,arguments)}function KE(s,a,u,p,x,w,E,A,I){if(WE.apply(this,arguments),Sa){if(Sa){var z=yc;Sa=!1,yc=null}else throw Error(n(198));wc||(wc=!0,Th=z)}}function ei(s){var a=s,u=s;if(s.alternate)for(;a.return;)a=a.return;else{s=a;do a=s,(a.flags&4098)!==0&&(u=a.return),s=a.return;while(s)}return a.tag===3?u:null}function rx(s){if(s.tag===13){var a=s.memoizedState;if(a===null&&(s=s.alternate,s!==null&&(a=s.memoizedState)),a!==null)return a.dehydrated}return null}function sx(s){if(ei(s)!==s)throw Error(n(188))}function GE(s){var a=s.alternate;if(!a){if(a=ei(s),a===null)throw Error(n(188));return a!==s?null:s}for(var u=s,p=a;;){var x=u.return;if(x===null)break;var w=x.alternate;if(w===null){if(p=x.return,p!==null){u=p;continue}break}if(x.child===w.child){for(w=x.child;w;){if(w===u)return sx(x),s;if(w===p)return sx(x),a;w=w.sibling}throw Error(n(188))}if(u.return!==p.return)u=x,p=w;else{for(var E=!1,A=x.child;A;){if(A===u){E=!0,u=x,p=w;break}if(A===p){E=!0,p=x,u=w;break}A=A.sibling}if(!E){for(A=w.child;A;){if(A===u){E=!0,u=w,p=x;break}if(A===p){E=!0,p=w,u=x;break}A=A.sibling}if(!E)throw Error(n(189))}}if(u.alternate!==p)throw Error(n(190))}if(u.tag!==3)throw Error(n(188));return u.stateNode.current===u?s:a}function ix(s){return s=GE(s),s!==null?ox(s):null}function ox(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var a=ox(s);if(a!==null)return a;s=s.sibling}return null}var ax=t.unstable_scheduleCallback,lx=t.unstable_cancelCallback,QE=t.unstable_shouldYield,YE=t.unstable_requestPaint,yt=t.unstable_now,XE=t.unstable_getCurrentPriorityLevel,Ph=t.unstable_ImmediatePriority,cx=t.unstable_UserBlockingPriority,bc=t.unstable_NormalPriority,JE=t.unstable_LowPriority,ux=t.unstable_IdlePriority,jc=null,or=null;function ZE(s){if(or&&typeof or.onCommitFiberRoot=="function")try{or.onCommitFiberRoot(jc,s,void 0,(s.current.flags&128)===128)}catch{}}var Un=Math.clz32?Math.clz32:nk,ek=Math.log,tk=Math.LN2;function nk(s){return s>>>=0,s===0?32:31-(ek(s)/tk|0)|0}var Nc=64,Sc=4194304;function Ca(s){switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function Cc(s,a){var u=s.pendingLanes;if(u===0)return 0;var p=0,x=s.suspendedLanes,w=s.pingedLanes,E=u&268435455;if(E!==0){var A=E&~x;A!==0?p=Ca(A):(w&=E,w!==0&&(p=Ca(w)))}else E=u&~x,E!==0?p=Ca(E):w!==0&&(p=Ca(w));if(p===0)return 0;if(a!==0&&a!==p&&(a&x)===0&&(x=p&-p,w=a&-a,x>=w||x===16&&(w&4194240)!==0))return a;if((p&4)!==0&&(p|=u&16),a=s.entangledLanes,a!==0)for(s=s.entanglements,a&=p;0<a;)u=31-Un(a),x=1<<u,p|=s[u],a&=~x;return p}function rk(s,a){switch(s){case 1:case 2:case 4:return a+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function sk(s,a){for(var u=s.suspendedLanes,p=s.pingedLanes,x=s.expirationTimes,w=s.pendingLanes;0<w;){var E=31-Un(w),A=1<<E,I=x[E];I===-1?((A&u)===0||(A&p)!==0)&&(x[E]=rk(A,a)):I<=a&&(s.expiredLanes|=A),w&=~A}}function Rh(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function dx(){var s=Nc;return Nc<<=1,(Nc&4194240)===0&&(Nc=64),s}function Ah(s){for(var a=[],u=0;31>u;u++)a.push(s);return a}function _a(s,a,u){s.pendingLanes|=a,a!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,a=31-Un(a),s[a]=u}function ik(s,a){var u=s.pendingLanes&~a;s.pendingLanes=a,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=a,s.mutableReadLanes&=a,s.entangledLanes&=a,a=s.entanglements;var p=s.eventTimes;for(s=s.expirationTimes;0<u;){var x=31-Un(u),w=1<<x;a[x]=0,p[x]=-1,s[x]=-1,u&=~w}}function Mh(s,a){var u=s.entangledLanes|=a;for(s=s.entanglements;u;){var p=31-Un(u),x=1<<p;x&a|s[p]&a&&(s[p]|=a),u&=~x}}var Ze=0;function hx(s){return s&=-s,1<s?4<s?(s&268435455)!==0?16:536870912:4:1}var fx,Oh,px,mx,gx,Dh=!1,_c=[],is=null,os=null,as=null,Ea=new Map,ka=new Map,ls=[],ok="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function xx(s,a){switch(s){case"focusin":case"focusout":is=null;break;case"dragenter":case"dragleave":os=null;break;case"mouseover":case"mouseout":as=null;break;case"pointerover":case"pointerout":Ea.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":ka.delete(a.pointerId)}}function Ta(s,a,u,p,x,w){return s===null||s.nativeEvent!==w?(s={blockedOn:a,domEventName:u,eventSystemFlags:p,nativeEvent:w,targetContainers:[x]},a!==null&&(a=za(a),a!==null&&Oh(a)),s):(s.eventSystemFlags|=p,a=s.targetContainers,x!==null&&a.indexOf(x)===-1&&a.push(x),s)}function ak(s,a,u,p,x){switch(a){case"focusin":return is=Ta(is,s,a,u,p,x),!0;case"dragenter":return os=Ta(os,s,a,u,p,x),!0;case"mouseover":return as=Ta(as,s,a,u,p,x),!0;case"pointerover":var w=x.pointerId;return Ea.set(w,Ta(Ea.get(w)||null,s,a,u,p,x)),!0;case"gotpointercapture":return w=x.pointerId,ka.set(w,Ta(ka.get(w)||null,s,a,u,p,x)),!0}return!1}function vx(s){var a=ti(s.target);if(a!==null){var u=ei(a);if(u!==null){if(a=u.tag,a===13){if(a=rx(u),a!==null){s.blockedOn=a,gx(s.priority,function(){px(u)});return}}else if(a===3&&u.stateNode.current.memoizedState.isDehydrated){s.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}s.blockedOn=null}function Ec(s){if(s.blockedOn!==null)return!1;for(var a=s.targetContainers;0<a.length;){var u=Lh(s.domEventName,s.eventSystemFlags,a[0],s.nativeEvent);if(u===null){u=s.nativeEvent;var p=new u.constructor(u.type,u);Sh=p,u.target.dispatchEvent(p),Sh=null}else return a=za(u),a!==null&&Oh(a),s.blockedOn=u,!1;a.shift()}return!0}function yx(s,a,u){Ec(s)&&u.delete(a)}function lk(){Dh=!1,is!==null&&Ec(is)&&(is=null),os!==null&&Ec(os)&&(os=null),as!==null&&Ec(as)&&(as=null),Ea.forEach(yx),ka.forEach(yx)}function Pa(s,a){s.blockedOn===a&&(s.blockedOn=null,Dh||(Dh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,lk)))}function Ra(s){function a(x){return Pa(x,s)}if(0<_c.length){Pa(_c[0],s);for(var u=1;u<_c.length;u++){var p=_c[u];p.blockedOn===s&&(p.blockedOn=null)}}for(is!==null&&Pa(is,s),os!==null&&Pa(os,s),as!==null&&Pa(as,s),Ea.forEach(a),ka.forEach(a),u=0;u<ls.length;u++)p=ls[u],p.blockedOn===s&&(p.blockedOn=null);for(;0<ls.length&&(u=ls[0],u.blockedOn===null);)vx(u),u.blockedOn===null&&ls.shift()}var no=T.ReactCurrentBatchConfig,kc=!0;function ck(s,a,u,p){var x=Ze,w=no.transition;no.transition=null;try{Ze=1,Ih(s,a,u,p)}finally{Ze=x,no.transition=w}}function uk(s,a,u,p){var x=Ze,w=no.transition;no.transition=null;try{Ze=4,Ih(s,a,u,p)}finally{Ze=x,no.transition=w}}function Ih(s,a,u,p){if(kc){var x=Lh(s,a,u,p);if(x===null)ef(s,a,p,Tc,u),xx(s,p);else if(ak(x,s,a,u,p))p.stopPropagation();else if(xx(s,p),a&4&&-1<ok.indexOf(s)){for(;x!==null;){var w=za(x);if(w!==null&&fx(w),w=Lh(s,a,u,p),w===null&&ef(s,a,p,Tc,u),w===x)break;x=w}x!==null&&p.stopPropagation()}else ef(s,a,p,null,u)}}var Tc=null;function Lh(s,a,u,p){if(Tc=null,s=Ch(p),s=ti(s),s!==null)if(a=ei(s),a===null)s=null;else if(u=a.tag,u===13){if(s=rx(a),s!==null)return s;s=null}else if(u===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;s=null}else a!==s&&(s=null);return Tc=s,null}function wx(s){switch(s){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(XE()){case Ph:return 1;case cx:return 4;case bc:case JE:return 16;case ux:return 536870912;default:return 16}default:return 16}}var cs=null,Fh=null,Pc=null;function bx(){if(Pc)return Pc;var s,a=Fh,u=a.length,p,x="value"in cs?cs.value:cs.textContent,w=x.length;for(s=0;s<u&&a[s]===x[s];s++);var E=u-s;for(p=1;p<=E&&a[u-p]===x[w-p];p++);return Pc=x.slice(s,1<p?1-p:void 0)}function Rc(s){var a=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&a===13&&(s=13)):s=a,s===10&&(s=13),32<=s||s===13?s:0}function Ac(){return!0}function jx(){return!1}function yn(s){function a(u,p,x,w,E){this._reactName=u,this._targetInst=x,this.type=p,this.nativeEvent=w,this.target=E,this.currentTarget=null;for(var A in s)s.hasOwnProperty(A)&&(u=s[A],this[A]=u?u(w):w[A]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?Ac:jx,this.isPropagationStopped=jx,this}return Y(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Ac)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Ac)},persist:function(){},isPersistent:Ac}),a}var ro={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vh=yn(ro),Aa=Y({},ro,{view:0,detail:0}),dk=yn(Aa),Bh,$h,Ma,Mc=Y({},Aa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zh,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==Ma&&(Ma&&s.type==="mousemove"?(Bh=s.screenX-Ma.screenX,$h=s.screenY-Ma.screenY):$h=Bh=0,Ma=s),Bh)},movementY:function(s){return"movementY"in s?s.movementY:$h}}),Nx=yn(Mc),hk=Y({},Mc,{dataTransfer:0}),fk=yn(hk),pk=Y({},Aa,{relatedTarget:0}),Uh=yn(pk),mk=Y({},ro,{animationName:0,elapsedTime:0,pseudoElement:0}),gk=yn(mk),xk=Y({},ro,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),vk=yn(xk),yk=Y({},ro,{data:0}),Sx=yn(yk),wk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bk={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},jk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Nk(s){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(s):(s=jk[s])?!!a[s]:!1}function zh(){return Nk}var Sk=Y({},Aa,{key:function(s){if(s.key){var a=wk[s.key]||s.key;if(a!=="Unidentified")return a}return s.type==="keypress"?(s=Rc(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?bk[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zh,charCode:function(s){return s.type==="keypress"?Rc(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?Rc(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),Ck=yn(Sk),_k=Y({},Mc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cx=yn(_k),Ek=Y({},Aa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zh}),kk=yn(Ek),Tk=Y({},ro,{propertyName:0,elapsedTime:0,pseudoElement:0}),Pk=yn(Tk),Rk=Y({},Mc,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),Ak=yn(Rk),Mk=[9,13,27,32],qh=d&&"CompositionEvent"in window,Oa=null;d&&"documentMode"in document&&(Oa=document.documentMode);var Ok=d&&"TextEvent"in window&&!Oa,_x=d&&(!qh||Oa&&8<Oa&&11>=Oa),Ex=" ",kx=!1;function Tx(s,a){switch(s){case"keyup":return Mk.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Px(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var so=!1;function Dk(s,a){switch(s){case"compositionend":return Px(a);case"keypress":return a.which!==32?null:(kx=!0,Ex);case"textInput":return s=a.data,s===Ex&&kx?null:s;default:return null}}function Ik(s,a){if(so)return s==="compositionend"||!qh&&Tx(s,a)?(s=bx(),Pc=Fh=cs=null,so=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return _x&&a.locale!=="ko"?null:a.data;default:return null}}var Lk={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Rx(s){var a=s&&s.nodeName&&s.nodeName.toLowerCase();return a==="input"?!!Lk[s.type]:a==="textarea"}function Ax(s,a,u,p){J0(p),a=Fc(a,"onChange"),0<a.length&&(u=new Vh("onChange","change",null,u,p),s.push({event:u,listeners:a}))}var Da=null,Ia=null;function Fk(s){Yx(s,0)}function Oc(s){var a=co(s);if(Ie(a))return s}function Vk(s,a){if(s==="change")return a}var Mx=!1;if(d){var Hh;if(d){var Wh="oninput"in document;if(!Wh){var Ox=document.createElement("div");Ox.setAttribute("oninput","return;"),Wh=typeof Ox.oninput=="function"}Hh=Wh}else Hh=!1;Mx=Hh&&(!document.documentMode||9<document.documentMode)}function Dx(){Da&&(Da.detachEvent("onpropertychange",Ix),Ia=Da=null)}function Ix(s){if(s.propertyName==="value"&&Oc(Ia)){var a=[];Ax(a,Ia,s,Ch(s)),nx(Fk,a)}}function Bk(s,a,u){s==="focusin"?(Dx(),Da=a,Ia=u,Da.attachEvent("onpropertychange",Ix)):s==="focusout"&&Dx()}function $k(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return Oc(Ia)}function Uk(s,a){if(s==="click")return Oc(a)}function zk(s,a){if(s==="input"||s==="change")return Oc(a)}function qk(s,a){return s===a&&(s!==0||1/s===1/a)||s!==s&&a!==a}var zn=typeof Object.is=="function"?Object.is:qk;function La(s,a){if(zn(s,a))return!0;if(typeof s!="object"||s===null||typeof a!="object"||a===null)return!1;var u=Object.keys(s),p=Object.keys(a);if(u.length!==p.length)return!1;for(p=0;p<u.length;p++){var x=u[p];if(!h.call(a,x)||!zn(s[x],a[x]))return!1}return!0}function Lx(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function Fx(s,a){var u=Lx(s);s=0;for(var p;u;){if(u.nodeType===3){if(p=s+u.textContent.length,s<=a&&p>=a)return{node:u,offset:a-s};s=p}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=Lx(u)}}function Vx(s,a){return s&&a?s===a?!0:s&&s.nodeType===3?!1:a&&a.nodeType===3?Vx(s,a.parentNode):"contains"in s?s.contains(a):s.compareDocumentPosition?!!(s.compareDocumentPosition(a)&16):!1:!1}function Bx(){for(var s=window,a=vt();a instanceof s.HTMLIFrameElement;){try{var u=typeof a.contentWindow.location.href=="string"}catch{u=!1}if(u)s=a.contentWindow;else break;a=vt(s.document)}return a}function Kh(s){var a=s&&s.nodeName&&s.nodeName.toLowerCase();return a&&(a==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||a==="textarea"||s.contentEditable==="true")}function Hk(s){var a=Bx(),u=s.focusedElem,p=s.selectionRange;if(a!==u&&u&&u.ownerDocument&&Vx(u.ownerDocument.documentElement,u)){if(p!==null&&Kh(u)){if(a=p.start,s=p.end,s===void 0&&(s=a),"selectionStart"in u)u.selectionStart=a,u.selectionEnd=Math.min(s,u.value.length);else if(s=(a=u.ownerDocument||document)&&a.defaultView||window,s.getSelection){s=s.getSelection();var x=u.textContent.length,w=Math.min(p.start,x);p=p.end===void 0?w:Math.min(p.end,x),!s.extend&&w>p&&(x=p,p=w,w=x),x=Fx(u,w);var E=Fx(u,p);x&&E&&(s.rangeCount!==1||s.anchorNode!==x.node||s.anchorOffset!==x.offset||s.focusNode!==E.node||s.focusOffset!==E.offset)&&(a=a.createRange(),a.setStart(x.node,x.offset),s.removeAllRanges(),w>p?(s.addRange(a),s.extend(E.node,E.offset)):(a.setEnd(E.node,E.offset),s.addRange(a)))}}for(a=[],s=u;s=s.parentNode;)s.nodeType===1&&a.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof u.focus=="function"&&u.focus(),u=0;u<a.length;u++)s=a[u],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var Wk=d&&"documentMode"in document&&11>=document.documentMode,io=null,Gh=null,Fa=null,Qh=!1;function $x(s,a,u){var p=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Qh||io==null||io!==vt(p)||(p=io,"selectionStart"in p&&Kh(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),Fa&&La(Fa,p)||(Fa=p,p=Fc(Gh,"onSelect"),0<p.length&&(a=new Vh("onSelect","select",null,a,u),s.push({event:a,listeners:p}),a.target=io)))}function Dc(s,a){var u={};return u[s.toLowerCase()]=a.toLowerCase(),u["Webkit"+s]="webkit"+a,u["Moz"+s]="moz"+a,u}var oo={animationend:Dc("Animation","AnimationEnd"),animationiteration:Dc("Animation","AnimationIteration"),animationstart:Dc("Animation","AnimationStart"),transitionend:Dc("Transition","TransitionEnd")},Yh={},Ux={};d&&(Ux=document.createElement("div").style,"AnimationEvent"in window||(delete oo.animationend.animation,delete oo.animationiteration.animation,delete oo.animationstart.animation),"TransitionEvent"in window||delete oo.transitionend.transition);function Ic(s){if(Yh[s])return Yh[s];if(!oo[s])return s;var a=oo[s],u;for(u in a)if(a.hasOwnProperty(u)&&u in Ux)return Yh[s]=a[u];return s}var zx=Ic("animationend"),qx=Ic("animationiteration"),Hx=Ic("animationstart"),Wx=Ic("transitionend"),Kx=new Map,Gx="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function us(s,a){Kx.set(s,a),l(a,[s])}for(var Xh=0;Xh<Gx.length;Xh++){var Jh=Gx[Xh],Kk=Jh.toLowerCase(),Gk=Jh[0].toUpperCase()+Jh.slice(1);us(Kk,"on"+Gk)}us(zx,"onAnimationEnd"),us(qx,"onAnimationIteration"),us(Hx,"onAnimationStart"),us("dblclick","onDoubleClick"),us("focusin","onFocus"),us("focusout","onBlur"),us(Wx,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Va="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Qk=new Set("cancel close invalid load scroll toggle".split(" ").concat(Va));function Qx(s,a,u){var p=s.type||"unknown-event";s.currentTarget=u,KE(p,a,void 0,s),s.currentTarget=null}function Yx(s,a){a=(a&4)!==0;for(var u=0;u<s.length;u++){var p=s[u],x=p.event;p=p.listeners;e:{var w=void 0;if(a)for(var E=p.length-1;0<=E;E--){var A=p[E],I=A.instance,z=A.currentTarget;if(A=A.listener,I!==w&&x.isPropagationStopped())break e;Qx(x,A,z),w=I}else for(E=0;E<p.length;E++){if(A=p[E],I=A.instance,z=A.currentTarget,A=A.listener,I!==w&&x.isPropagationStopped())break e;Qx(x,A,z),w=I}}}if(wc)throw s=Th,wc=!1,Th=null,s}function ot(s,a){var u=a[af];u===void 0&&(u=a[af]=new Set);var p=s+"__bubble";u.has(p)||(Xx(a,s,2,!1),u.add(p))}function Zh(s,a,u){var p=0;a&&(p|=4),Xx(u,s,p,a)}var Lc="_reactListening"+Math.random().toString(36).slice(2);function Ba(s){if(!s[Lc]){s[Lc]=!0,r.forEach(function(u){u!=="selectionchange"&&(Qk.has(u)||Zh(u,!1,s),Zh(u,!0,s))});var a=s.nodeType===9?s:s.ownerDocument;a===null||a[Lc]||(a[Lc]=!0,Zh("selectionchange",!1,a))}}function Xx(s,a,u,p){switch(wx(a)){case 1:var x=ck;break;case 4:x=uk;break;default:x=Ih}u=x.bind(null,a,u,s),x=void 0,!kh||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(x=!0),p?x!==void 0?s.addEventListener(a,u,{capture:!0,passive:x}):s.addEventListener(a,u,!0):x!==void 0?s.addEventListener(a,u,{passive:x}):s.addEventListener(a,u,!1)}function ef(s,a,u,p,x){var w=p;if((a&1)===0&&(a&2)===0&&p!==null)e:for(;;){if(p===null)return;var E=p.tag;if(E===3||E===4){var A=p.stateNode.containerInfo;if(A===x||A.nodeType===8&&A.parentNode===x)break;if(E===4)for(E=p.return;E!==null;){var I=E.tag;if((I===3||I===4)&&(I=E.stateNode.containerInfo,I===x||I.nodeType===8&&I.parentNode===x))return;E=E.return}for(;A!==null;){if(E=ti(A),E===null)return;if(I=E.tag,I===5||I===6){p=w=E;continue e}A=A.parentNode}}p=p.return}nx(function(){var z=w,J=Ch(u),Z=[];e:{var X=Kx.get(s);if(X!==void 0){var fe=Vh,xe=s;switch(s){case"keypress":if(Rc(u)===0)break e;case"keydown":case"keyup":fe=Ck;break;case"focusin":xe="focus",fe=Uh;break;case"focusout":xe="blur",fe=Uh;break;case"beforeblur":case"afterblur":fe=Uh;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":fe=Nx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":fe=fk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":fe=kk;break;case zx:case qx:case Hx:fe=gk;break;case Wx:fe=Pk;break;case"scroll":fe=dk;break;case"wheel":fe=Ak;break;case"copy":case"cut":case"paste":fe=vk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":fe=Cx}var be=(a&4)!==0,wt=!be&&s==="scroll",$=be?X!==null?X+"Capture":null:X;be=[];for(var F=z,U;F!==null;){U=F;var ee=U.stateNode;if(U.tag===5&&ee!==null&&(U=ee,$!==null&&(ee=ja(F,$),ee!=null&&be.push($a(F,ee,U)))),wt)break;F=F.return}0<be.length&&(X=new fe(X,xe,null,u,J),Z.push({event:X,listeners:be}))}}if((a&7)===0){e:{if(X=s==="mouseover"||s==="pointerover",fe=s==="mouseout"||s==="pointerout",X&&u!==Sh&&(xe=u.relatedTarget||u.fromElement)&&(ti(xe)||xe[Pr]))break e;if((fe||X)&&(X=J.window===J?J:(X=J.ownerDocument)?X.defaultView||X.parentWindow:window,fe?(xe=u.relatedTarget||u.toElement,fe=z,xe=xe?ti(xe):null,xe!==null&&(wt=ei(xe),xe!==wt||xe.tag!==5&&xe.tag!==6)&&(xe=null)):(fe=null,xe=z),fe!==xe)){if(be=Nx,ee="onMouseLeave",$="onMouseEnter",F="mouse",(s==="pointerout"||s==="pointerover")&&(be=Cx,ee="onPointerLeave",$="onPointerEnter",F="pointer"),wt=fe==null?X:co(fe),U=xe==null?X:co(xe),X=new be(ee,F+"leave",fe,u,J),X.target=wt,X.relatedTarget=U,ee=null,ti(J)===z&&(be=new be($,F+"enter",xe,u,J),be.target=U,be.relatedTarget=wt,ee=be),wt=ee,fe&&xe)t:{for(be=fe,$=xe,F=0,U=be;U;U=ao(U))F++;for(U=0,ee=$;ee;ee=ao(ee))U++;for(;0<F-U;)be=ao(be),F--;for(;0<U-F;)$=ao($),U--;for(;F--;){if(be===$||$!==null&&be===$.alternate)break t;be=ao(be),$=ao($)}be=null}else be=null;fe!==null&&Jx(Z,X,fe,be,!1),xe!==null&&wt!==null&&Jx(Z,wt,xe,be,!0)}}e:{if(X=z?co(z):window,fe=X.nodeName&&X.nodeName.toLowerCase(),fe==="select"||fe==="input"&&X.type==="file")var je=Vk;else if(Rx(X))if(Mx)je=zk;else{je=$k;var Ee=Bk}else(fe=X.nodeName)&&fe.toLowerCase()==="input"&&(X.type==="checkbox"||X.type==="radio")&&(je=Uk);if(je&&(je=je(s,z))){Ax(Z,je,u,J);break e}Ee&&Ee(s,X,z),s==="focusout"&&(Ee=X._wrapperState)&&Ee.controlled&&X.type==="number"&&$t(X,"number",X.value)}switch(Ee=z?co(z):window,s){case"focusin":(Rx(Ee)||Ee.contentEditable==="true")&&(io=Ee,Gh=z,Fa=null);break;case"focusout":Fa=Gh=io=null;break;case"mousedown":Qh=!0;break;case"contextmenu":case"mouseup":case"dragend":Qh=!1,$x(Z,u,J);break;case"selectionchange":if(Wk)break;case"keydown":case"keyup":$x(Z,u,J)}var ke;if(qh)e:{switch(s){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else so?Tx(s,u)&&(De="onCompositionEnd"):s==="keydown"&&u.keyCode===229&&(De="onCompositionStart");De&&(_x&&u.locale!=="ko"&&(so||De!=="onCompositionStart"?De==="onCompositionEnd"&&so&&(ke=bx()):(cs=J,Fh="value"in cs?cs.value:cs.textContent,so=!0)),Ee=Fc(z,De),0<Ee.length&&(De=new Sx(De,s,null,u,J),Z.push({event:De,listeners:Ee}),ke?De.data=ke:(ke=Px(u),ke!==null&&(De.data=ke)))),(ke=Ok?Dk(s,u):Ik(s,u))&&(z=Fc(z,"onBeforeInput"),0<z.length&&(J=new Sx("onBeforeInput","beforeinput",null,u,J),Z.push({event:J,listeners:z}),J.data=ke))}Yx(Z,a)})}function $a(s,a,u){return{instance:s,listener:a,currentTarget:u}}function Fc(s,a){for(var u=a+"Capture",p=[];s!==null;){var x=s,w=x.stateNode;x.tag===5&&w!==null&&(x=w,w=ja(s,u),w!=null&&p.unshift($a(s,w,x)),w=ja(s,a),w!=null&&p.push($a(s,w,x))),s=s.return}return p}function ao(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function Jx(s,a,u,p,x){for(var w=a._reactName,E=[];u!==null&&u!==p;){var A=u,I=A.alternate,z=A.stateNode;if(I!==null&&I===p)break;A.tag===5&&z!==null&&(A=z,x?(I=ja(u,w),I!=null&&E.unshift($a(u,I,A))):x||(I=ja(u,w),I!=null&&E.push($a(u,I,A)))),u=u.return}E.length!==0&&s.push({event:a,listeners:E})}var Yk=/\r\n?/g,Xk=/\u0000|\uFFFD/g;function Zx(s){return(typeof s=="string"?s:""+s).replace(Yk,`
38`).replace(Xk,"")}function Vc(s,a,u){if(a=Zx(a),Zx(s)!==a&&u)throw Error(n(425))}function Bc(){}var tf=null,nf=null;function rf(s,a){return s==="textarea"||s==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var sf=typeof setTimeout=="function"?setTimeout:void 0,Jk=typeof clearTimeout=="function"?clearTimeout:void 0,ev=typeof Promise=="function"?Promise:void 0,Zk=typeof queueMicrotask=="function"?queueMicrotask:typeof ev<"u"?function(s){return ev.resolve(null).then(s).catch(eT)}:sf;function eT(s){setTimeout(function(){throw s})}function of(s,a){var u=a,p=0;do{var x=u.nextSibling;if(s.removeChild(u),x&&x.nodeType===8)if(u=x.data,u==="/$"){if(p===0){s.removeChild(x),Ra(a);return}p--}else u!=="$"&&u!=="$?"&&u!=="$!"||p++;u=x}while(u);Ra(a)}function ds(s){for(;s!=null;s=s.nextSibling){var a=s.nodeType;if(a===1||a===3)break;if(a===8){if(a=s.data,a==="$"||a==="$!"||a==="$?")break;if(a==="/$")return null}}return s}function tv(s){s=s.previousSibling;for(var a=0;s;){if(s.nodeType===8){var u=s.data;if(u==="$"||u==="$!"||u==="$?"){if(a===0)return s;a--}else u==="/$"&&a++}s=s.previousSibling}return null}var lo=Math.random().toString(36).slice(2),ar="__reactFiber$"+lo,Ua="__reactProps$"+lo,Pr="__reactContainer$"+lo,af="__reactEvents$"+lo,tT="__reactListeners$"+lo,nT="__reactHandles$"+lo;function ti(s){var a=s[ar];if(a)return a;for(var u=s.parentNode;u;){if(a=u[Pr]||u[ar]){if(u=a.alternate,a.child!==null||u!==null&&u.child!==null)for(s=tv(s);s!==null;){if(u=s[ar])return u;s=tv(s)}return a}s=u,u=s.parentNode}return null}function za(s){return s=s[ar]||s[Pr],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function co(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(n(33))}function $c(s){return s[Ua]||null}var lf=[],uo=-1;function hs(s){return{current:s}}function at(s){0>uo||(s.current=lf[uo],lf[uo]=null,uo--)}function st(s,a){uo++,lf[uo]=s.current,s.current=a}var fs={},Ut=hs(fs),cn=hs(!1),ni=fs;function ho(s,a){var u=s.type.contextTypes;if(!u)return fs;var p=s.stateNode;if(p&&p.__reactInternalMemoizedUnmaskedChildContext===a)return p.__reactInternalMemoizedMaskedChildContext;var x={},w;for(w in u)x[w]=a[w];return p&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=a,s.__reactInternalMemoizedMaskedChildContext=x),x}function un(s){return s=s.childContextTypes,s!=null}function Uc(){at(cn),at(Ut)}function nv(s,a,u){if(Ut.current!==fs)throw Error(n(168));st(Ut,a),st(cn,u)}function rv(s,a,u){var p=s.stateNode;if(a=a.childContextTypes,typeof p.getChildContext!="function")return u;p=p.getChildContext();for(var x in p)if(!(x in a))throw Error(n(108,Q(s)||"Unknown",x));return Y({},u,p)}function zc(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||fs,ni=Ut.current,st(Ut,s),st(cn,cn.current),!0}function sv(s,a,u){var p=s.stateNode;if(!p)throw Error(n(169));u?(s=rv(s,a,ni),p.__reactInternalMemoizedMergedChildContext=s,at(cn),at(Ut),st(Ut,s)):at(cn),st
vendor: 9,125 bytes, line 38
38(cn,u)}var Rr=null,qc=!1,cf=!1;function iv(s){Rr===null?Rr=[s]:Rr.push(s)}function rT(s){qc=!0,iv(s)}function ps(){if(!cf&&Rr!==null){cf=!0;var s=0,a=Ze;try{var u=Rr;for(Ze=1;s<u.length;s++){var p=u[s];do p=p(!0);while(p!==null)}Rr=null,qc=!1}catch(x){throw Rr!==null&&(Rr=Rr.slice(s+1)),ax(Ph,ps),x}finally{Ze=a,cf=!1}}return null}var fo=[],po=0,Hc=null,Wc=0,En=[],kn=0,ri=null,Ar=1,Mr="";function si(s,a){fo[po++]=Wc,fo[po++]=Hc,Hc=s,Wc=a}function ov(s,a,u){En[kn++]=Ar,En[kn++]=Mr,En[kn++]=ri,ri=s;var p=Ar;s=Mr;var x=32-Un(p)-1;p&=~(1<<x),u+=1;var w=32-Un(a)+x;if(30<w){var E=x-x%5;w=(p&(1<<E)-1).toString(32),p>>=E,x-=E,Ar=1<<32-Un(a)+x|u<<x|p,Mr=w+s}else Ar=1<<w|u<<x|p,Mr=s}function uf(s){s.return!==null&&(si(s,1),ov(s,1,0))}function df(s){for(;s===Hc;)Hc=fo[--po],fo[po]=null,Wc=fo[--po],fo[po]=null;for(;s===ri;)ri=En[--kn],En[kn]=null,Mr=En[--kn],En[kn]=null,Ar=En[--kn],En[kn]=null}var wn=null,bn=null,ut=!1,qn=null;function av(s,a){var u=An(5,null,null,0);u.elementType="DELETED",u.stateNode=a,u.return=s,a=s.deletions,a===null?(s.deletions=[u],s.flags|=16):a.push(u)}function lv(s,a){switch(s.tag){case 5:var u=s.type;return a=a.nodeType!==1||u.toLowerCase()!==a.nodeName.toLowerCase()?null:a,a!==null?(s.stateNode=a,wn=s,bn=ds(a.firstChild),!0):!1;case 6:return a=s.pendingProps===""||a.nodeType!==3?null:a,a!==null?(s.stateNode=a,wn=s,bn=null,!0):!1;case 13:return a=a.nodeType!==8?null:a,a!==null?(u=ri!==null?{id:Ar,overflow:Mr}:null,s.memoizedState={dehydrated:a,treeContext:u,retryLane:1073741824},u=An(18,null,null,0),u.stateNode=a,u.return=s,s.child=u,wn=s,bn=null,!0):!1;default:return!1}}function hf(s){return(s.mode&1)!==0&&(s.flags&128)===0}function ff(s){if(ut){var a=bn;if(a){var u=a;if(!lv(s,a)){if(hf(s))throw Error(n(418));a=ds(u.nextSibling);var p=wn;a&&lv(s,a)?av(p,u):(s.flags=s.flags&-4097|2,ut=!1,wn=s)}}else{if(hf(s))throw Error(n(418));s.flags=s.flags&-4097|2,ut=!1,wn=s}}}function cv(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;wn=s}function Kc(s){if(s!==wn)return!1;if(!ut)return cv(s),ut=!0,!1;var a;if((a=s.tag!==3)&&!(a=s.tag!==5)&&(a=s.type,a=a!=="head"&&a!=="body"&&!rf(s.type,s.memoizedProps)),a&&(a=bn)){if(hf(s))throw uv(),Error(n(418));for(;a;)av(s,a),a=ds(a.nextSibling)}if(cv(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(n(317));e:{for(s=s.nextSibling,a=0;s;){if(s.nodeType===8){var u=s.data;if(u==="/$"){if(a===0){bn=ds(s.nextSibling);break e}a--}else u!=="$"&&u!=="$!"&&u!=="$?"||a++}s=s.nextSibling}bn=null}}else bn=wn?ds(s.stateNode.nextSibling):null;return!0}function uv(){for(var s=bn;s;)s=ds(s.nextSibling)}function mo(){bn=wn=null,ut=!1}function pf(s){qn===null?qn=[s]:qn.push(s)}var sT=T.ReactCurrentBatchConfig;function qa(s,a,u){if(s=u.ref,s!==null&&typeof s!="function"&&typeof s!="object"){if(u._owner){if(u=u._owner,u){if(u.tag!==1)throw Error(n(309));var p=u.stateNode}if(!p)throw Error(n(147,s));var x=p,w=""+s;return a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===w?a.ref:(a=function(E){var A=x.refs;E===null?delete A[w]:A[w]=E},a._stringRef=w,a)}if(typeof s!="string")throw Error(n(284));if(!u._owner)throw Error(n(290,s))}return s}function Gc(s,a){throw s=Object.prototype.toString.call(a),Error(n(31,s==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":s))}function dv(s){var a=s._init;return a(s._payload)}function hv(s){function a($,F){if(s){var U=$.deletions;U===null?($.deletions=[F],$.flags|=16):U.push(F)}}function u($,F){if(!s)return null;for(;F!==null;)a($,F),F=F.sibling;return null}function p($,F){for($=new Map;F!==null;)F.key!==null?$.set(F.key,F):$.set(F.index,F),F=F.sibling;return $}function x($,F){return $=js($,F),$.index=0,$.sibling=null,$}function w($,F,U){return $.index=U,s?(U=$.alternate,U!==null?(U=U.index,U<F?($.flags|=2,F):U):($.flags|=2,F)):($.flags|=1048576,F)}function E($){return s&&$.alternate===null&&($.flags|=2),$}function A($,F,U,ee){return F===null||F.tag!==6?(F=ip(U,$.mode,ee),F.return=$,F):(F=x(F,U),F.return=$,F)}function I($,F,U,ee){var je=U.type;return je===L?J($,F,U.props.children,ee,U.key):F!==null&&(F.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===oe&&dv(je)===F.type)?(ee=x(F,U.props),ee.ref=qa($,F,U),ee.return=$,ee):(ee=vu(U.type,U.key,U.props,null,$.mode,ee),ee.ref=qa($,F,U),ee.return=$,ee)}function z($,F,U,ee){return F===null||F.tag!==4||F.stateNode.containerInfo!==U.containerInfo||F.stateNode.implementation!==U.implementation?(F=op(U,$.mode,ee),F.return=$,F):(F=x(F,U.children||[]),F.return=$,F)}function J($,F,U,ee,je){return F===null||F.tag!==7?(F=hi(U,$.mode,ee,je),F.return=$,F):(F=x(F,U),F.return=$,F)}function Z($,F,U){if(typeof F=="string"&&F!==""||typeof F=="number")return F=ip(""+F,$.mode,U),F.return=$,F;if(typeof F=="object"&&F!==null){switch(F.$$typeof){case R:return U=vu(F.type,F.key,F.props,null,$.mode,U),U.ref=qa($,null,F),U.return=$,U;case P:return F=op(F,$.mode,U),F.return=$,F;case oe:var ee=F._init;return Z($,ee(F._payload),U)}if(rs(F)||K(F))return F=hi(F,$.mode,U,null),F.return=$,F;Gc($,F)}return null}function X($,F,U,ee){var je=F!==null?F.key:null;if(typeof U=="string"&&U!==""||typeof U=="number")return je!==null?null:A($,F,""+U,ee);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case R:return U.key===je?I($,F,U,ee):null;case P:return U.key===je?z($,F,U,ee):null;case oe:return je=U._init,X($,F,je(U._payload),ee)}if(rs(U)||K(U))return je!==null?null:J($,F,U,ee,null);Gc($,U)}return null}function fe($,F,U,ee,je){if(typeof ee=="string"&&ee!==""||typeof ee=="number")return $=$.get(U)||null,A(F,$,""+ee,je);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case R:return $=$.get(ee.key===null?U:ee.key)||null,I(F,$,ee,je);case P:return $=$.get(ee.key===null?U:ee.key)||null,z(F,$,ee,je);case oe:var Ee=ee._init;return fe($,F,U,Ee(ee._payload),je)}if(rs(ee)||K(ee))return $=$.get(U)||null,J(F,$,ee,je,null);Gc(F,ee)}return null}function xe($,F,U,ee){for(var je=null,Ee=null,ke=F,De=F=0,Ot=null;ke!==null&&De<U.length;De++){ke.index>De?(Ot=ke,ke=null):Ot=ke.sibling;var Ke=X($,ke,U[De],ee);if(Ke===null){ke===null&&(ke=Ot);break}s&&ke&&Ke.alternate===null&&a($,ke),F=w(Ke,F,De),Ee===null?je=Ke:Ee.sibling=Ke,Ee=Ke,ke=Ot}if(De===U.length)return u($,ke),ut&&si($,De),je;if(ke===null){for(;De<U.length;De++)ke=Z($,U[De],ee),ke!==null&&(F=w(ke,F,De),Ee===null?je=ke:Ee.sibling=ke,Ee=ke);return ut&&si($,De),je}for(ke=p($,ke);De<U.length;De++)Ot=fe(ke,$,De,U[De],ee),Ot!==null&&(s&&Ot.alternate!==null&&ke.delete(Ot.key===null?De:Ot.key),F=w(Ot,F,De),Ee===null?je=Ot:Ee.sibling=Ot,Ee=Ot);return s&&ke.forEach(function(Ns){return a($,Ns)}),ut&&si($,De),je}function be($,F,U,ee){var je=K(U);if(typeof je!="function")throw Error(n(150));if(U=je.call(U),U==null)throw Error(n(151));for(var Ee=je=null,ke=F,De=F=0,Ot=null,Ke=U.next();ke!==null&&!Ke.done;De++,Ke=U.next()){ke.index>De?(Ot=ke,ke=null):Ot=ke.sibling;var Ns=X($,ke,Ke.value,ee);if(Ns===null){ke===null&&(ke=Ot);break}s&&ke&&Ns.alternate===null&&a($,ke),F=w(Ns,F,De),Ee===null?je=Ns:Ee.sibling=Ns,Ee=Ns,ke=Ot}if(Ke.done)return u($,ke),ut&&si($,De),je;if(ke===null){for(;!Ke.done;De++,Ke=U.next())Ke=Z($,Ke.value,ee),Ke!==null&&(F=w(Ke,F,De),Ee===null?je=Ke:Ee.sibling=Ke,Ee=Ke);return ut&&si($,De),je}for(ke=p($,ke);!Ke.done;De++,Ke=U.next())Ke=fe(ke,$,De,Ke.value,ee),Ke!==null&&(s&&Ke.alternate!==null&&ke.delete(Ke.key===null?De:Ke.key),F=w(Ke,F,De),Ee===null?je=Ke:Ee.sibling=Ke,Ee=Ke);return s&&ke.forEach(function(LT){return a($,LT)}),ut&&si($,De),je}function wt($,F,U,ee){if(typeof U=="object"&&U!==null&&U.type===L&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case R:e:{for(var je=U.key,Ee=F;Ee!==null;){if(Ee.key===je){if(je=U.type,je===L){if(Ee.tag===7){u($,Ee.sibling),F=x(Ee,U.props.children),F.return=$,$=F;break e}}else if(Ee.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===oe&&dv(je)===Ee.type){u($,Ee.sibling),F=x(Ee,U.props),F.ref=qa($,Ee,U),F.return=$,$=F;break e}u($,Ee);break}else a($,Ee);Ee=Ee.sibling}U.type===L?(F=hi(U.props.children,$.mode,ee,U.key),F.return=$,$=F):(ee=vu(U.type,U.key,U.props,null,$.mode,ee),ee.ref=qa($,F,U),ee.return=$,$=ee)}return E($);case P:e:{for(Ee=U.key;F!==null;){if(F.key===Ee)if(F.tag===4&&F.stateNode.containerInfo===U.containerInfo&&F.stateNode.implementation===U.implementation){u($,F.sibling),F=x(F,U.children||[]),F.return=$,$=F;break e}else{u($,F);break}else a($,F);F=F.sibling}F=op(U,$.mode,ee),F.return=$,$=F}return E($);case oe:return Ee=U._init,wt($,F,Ee(U._payload),ee)}if(rs(U))return xe($,F,U,ee);if(K(U))return be($,F,U,ee);Gc($,U)}return typeof U=="string"&&U!==""||typeof U=="number"?(U=""+U,F!==null&&F.tag===6?(u($,F.sibling),F=x(F,U),F.return=$,$=F):(u($,F),F=ip(U,$.mode,ee),F.return=$,$=F),E($)):u($,F)}return wt}var go=hv(!0),fv=hv(!1),Qc=hs(null),Yc=null,xo=null,mf=null;function gf(){mf=xo=Yc=null}function xf(s){var a=Qc.current;at(Qc),s._currentValue=a}function vf(s,a,u){for(;s!==null;){var p=s.alternate;if((s.childLanes&a)!==a?(s.childLanes|=a,p!==null&&(p.childLanes|=a)):p!==null&&(p.childLanes&a)!==a&&(p.childLanes|=a),s===u)break;s=s.return}}
vendor: 6,583 bytes, line 38
38function vo(s,a){Yc=s,mf=xo=null,s=s.dependencies,s!==null&&s.firstContext!==null&&((s.lanes&a)!==0&&(dn=!0),s.firstContext=null)}function Tn(s){var a=s._currentValue;if(mf!==s)if(s={context:s,memoizedValue:a,next:null},xo===null){if(Yc===null)throw Error(n(308));xo=s,Yc.dependencies={lanes:0,firstContext:s}}else xo=xo.next=s;return a}var ii=null;function yf(s){ii===null?ii=[s]:ii.push(s)}function pv(s,a,u,p){var x=a.interleaved;return x===null?(u.next=u,yf(a)):(u.next=x.next,x.next=u),a.interleaved=u,Or(s,p)}function Or(s,a){s.lanes|=a;var u=s.alternate;for(u!==null&&(u.lanes|=a),u=s,s=s.return;s!==null;)s.childLanes|=a,u=s.alternate,u!==null&&(u.childLanes|=a),u=s,s=s.return;return u.tag===3?u.stateNode:null}var ms=!1;function wf(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function mv(s,a){s=s.updateQueue,a.updateQueue===s&&(a.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function Dr(s,a){return{eventTime:s,lane:a,tag:0,payload:null,callback:null,next:null}}function gs(s,a,u){var p=s.updateQueue;if(p===null)return null;if(p=p.shared,(We&2)!==0){var x=p.pending;return x===null?a.next=a:(a.next=x.next,x.next=a),p.pending=a,Or(s,u)}return x=p.interleaved,x===null?(a.next=a,yf(p)):(a.next=x.next,x.next=a),p.interleaved=a,Or(s,u)}function Xc(s,a,u){if(a=a.updateQueue,a!==null&&(a=a.shared,(u&4194240)!==0)){var p=a.lanes;p&=s.pendingLanes,u|=p,a.lanes=u,Mh(s,u)}}function gv(s,a){var u=s.updateQueue,p=s.alternate;if(p!==null&&(p=p.updateQueue,u===p)){var x=null,w=null;if(u=u.firstBaseUpdate,u!==null){do{var E={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};w===null?x=w=E:w=w.next=E,u=u.next}while(u!==null);w===null?x=w=a:w=w.next=a}else x=w=a;u={baseState:p.baseState,firstBaseUpdate:x,lastBaseUpdate:w,shared:p.shared,effects:p.effects},s.updateQueue=u;return}s=u.lastBaseUpdate,s===null?u.firstBaseUpdate=a:s.next=a,u.lastBaseUpdate=a}function Jc(s,a,u,p){var x=s.updateQueue;ms=!1;var w=x.firstBaseUpdate,E=x.lastBaseUpdate,A=x.shared.pending;if(A!==null){x.shared.pending=null;var I=A,z=I.next;I.next=null,E===null?w=z:E.next=z,E=I;var J=s.alternate;J!==null&&(J=J.updateQueue,A=J.lastBaseUpdate,A!==E&&(A===null?J.firstBaseUpdate=z:A.next=z,J.lastBaseUpdate=I))}if(w!==null){var Z=x.baseState;E=0,J=z=I=null,A=w;do{var X=A.lane,fe=A.eventTime;if((p&X)===X){J!==null&&(J=J.next={eventTime:fe,lane:0,tag:A.tag,payload:A.payload,callback:A.callback,next:null});e:{var xe=s,be=A;switch(X=a,fe=u,be.tag){case 1:if(xe=be.payload,typeof xe=="function"){Z=xe.call(fe,Z,X);break e}Z=xe;break e;case 3:xe.flags=xe.flags&-65537|128;case 0:if(xe=be.payload,X=typeof xe=="function"?xe.call(fe,Z,X):xe,X==null)break e;Z=Y({},Z,X);break e;case 2:ms=!0}}A.callback!==null&&A.lane!==0&&(s.flags|=64,X=x.effects,X===null?x.effects=[A]:X.push(A))}else fe={eventTime:fe,lane:X,tag:A.tag,payload:A.payload,callback:A.callback,next:null},J===null?(z=J=fe,I=Z):J=J.next=fe,E|=X;if(A=A.next,A===null){if(A=x.shared.pending,A===null)break;X=A,A=X.next,X.next=null,x.lastBaseUpdate=X,x.shared.pending=null}}while(!0);if(J===null&&(I=Z),x.baseState=I,x.firstBaseUpdate=z,x.lastBaseUpdate=J,a=x.shared.interleaved,a!==null){x=a;do E|=x.lane,x=x.next;while(x!==a)}else w===null&&(x.shared.lanes=0);li|=E,s.lanes=E,s.memoizedState=Z}}function xv(s,a,u){if(s=a.effects,a.effects=null,s!==null)for(a=0;a<s.length;a++){var p=s[a],x=p.callback;if(x!==null){if(p.callback=null,p=u,typeof x!="function")throw Error(n(191,x));x.call(p)}}}var Ha={},lr=hs(Ha),Wa=hs(Ha),Ka=hs(Ha);function oi(s){if(s===Ha)throw Error(n(174));return s}function bf(s,a){switch(st(Ka,a),st(Wa,s),st(lr,Ha),s=a.nodeType,s){case 9:case 11:a=(a=a.documentElement)?a.namespaceURI:bh(null,"");break;default:s=s===8?a.parentNode:a,a=s.namespaceURI||null,s=s.tagName,a=bh(a,s)}at(lr),st(lr,a)}function yo(){at(lr),at(Wa),at(Ka)}function vv(s){oi(Ka.current);var a=oi(lr.current),u=bh(a,s.type);a!==u&&(st(Wa,s),st(lr,u))}function jf(s){Wa.current===s&&(at(lr),at(Wa))}var ht=hs(0);function Zc(s){for(var a=s;a!==null;){if(a.tag===13){var u=a.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||u.data==="$!"))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===s)break;for(;a.sibling===null;){if(a.return===null||a.return===s)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Nf=[];function Sf(){for(var s=0;s<Nf.length;s++)Nf[s]._workInProgressVersionPrimary=null;Nf.length=0}var eu=T.ReactCurrentDispatcher,Cf=T.ReactCurrentBatchConfig,ai=0,ft=null,_t=null,At=null,tu=!1,Ga=!1,Qa=0,iT=0;function zt(){throw Error(n(321))}function _f(s,a){if(a===null)return!1;for(var u=0;u<a.length&&u<s.length;u++)if(!zn(s[u],a[u]))return!1;return!0}function Ef(s,a,u,p,x,w){if(ai=w,ft=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,eu.current=s===null||s.memoizedState===null?cT:uT,s=u(p,x),Ga){w=0;do{if(Ga=!1,Qa=0,25<=w)throw Error(n(301));w+=1,At=_t=null,a.updateQueue=null,eu.current=dT,s=u(p,x)}while(Ga)}if(eu.current=su,a=_t!==null&&_t.next!==null,ai=0,At=_t=ft=null,tu=!1,a)throw Error(n(300));return s}function kf(){var s=Qa!==0;return Qa=0,s}function cr(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return At===null?ft.memoizedState=At=s:At=At.next=s,At}function Pn(){if(_t===null){var s=ft.alternate;s=s!==null?s.memoizedState:null}else s=_t.next;var a=At===null?ft.memoizedState:At.next;if(a!==null)At=a,_t=s;else{if(s===null)throw Error(n(310));_t=s,s={memoizedState:_t.memoizedState,baseState:_t.baseState,baseQueue:_t.baseQueue,queue:_t.queue,next:null},At===null?ft.memoizedState=At=s:At=At.next=s}return At}function Ya(s,a){return typeof a=="function"?a(s):a}function Tf(s){var a=Pn(),u=a.queue;if(u===null)throw Error(n(311));u.lastRenderedReducer=s;var p=_t,x=p.baseQueue,w=u.pending;if(w!==null){if(x!==null){var E=x.next;x.next=w.next,w.next=E}p.baseQueue=x=w,u.pending=null}if(x!==null){w=x.next,p=p.baseState;var A=E=null,I=null,z=w;do{var J=z.lane;if((ai&J)===J)I!==null&&(I=I.next={lane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),p=z.hasEagerState?z.eagerState:s(p,z.action);else{var Z={lane:J,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null};I===null?(A=I=Z,E=p):I=I.next=Z,ft.lanes|=J,li|=J}z=z.next}
vendor: 5,173 bytes, line 38
38while(z!==null&&z!==w);I===null?E=p:I.next=A,zn(p,a.memoizedState)||(dn=!0),a.memoizedState=p,a.baseState=E,a.baseQueue=I,u.lastRenderedState=p}if(s=u.interleaved,s!==null){x=s;do w=x.lane,ft.lanes|=w,li|=w,x=x.next;while(x!==s)}else x===null&&(u.lanes=0);return[a.memoizedState,u.dispatch]}function Pf(s){var a=Pn(),u=a.queue;if(u===null)throw Error(n(311));u.lastRenderedReducer=s;var p=u.dispatch,x=u.pending,w=a.memoizedState;if(x!==null){u.pending=null;var E=x=x.next;do w=s(w,E.action),E=E.next;while(E!==x);zn(w,a.memoizedState)||(dn=!0),a.memoizedState=w,a.baseQueue===null&&(a.baseState=w),u.lastRenderedState=w}return[w,p]}function yv(){}function wv(s,a){var u=ft,p=Pn(),x=a(),w=!zn(p.memoizedState,x);if(w&&(p.memoizedState=x,dn=!0),p=p.queue,Rf(Nv.bind(null,u,p,s),[s]),p.getSnapshot!==a||w||At!==null&&At.memoizedState.tag&1){if(u.flags|=2048,Xa(9,jv.bind(null,u,p,x,a),void 0,null),Mt===null)throw Error(n(349));(ai&30)!==0||bv(u,a,x)}return x}function bv(s,a,u){s.flags|=16384,s={getSnapshot:a,value:u},a=ft.updateQueue,a===null?(a={lastEffect:null,stores:null},ft.updateQueue=a,a.stores=[s]):(u=a.stores,u===null?a.stores=[s]:u.push(s))}function jv(s,a,u,p){a.value=u,a.getSnapshot=p,Sv(a)&&Cv(s)}function Nv(s,a,u){return u(function(){Sv(a)&&Cv(s)})}function Sv(s){var a=s.getSnapshot;s=s.value;try{var u=a();return!zn(s,u)}catch{return!0}}function Cv(s){var a=Or(s,1);a!==null&&Gn(a,s,1,-1)}function _v(s){var a=cr();return typeof s=="function"&&(s=s()),a.memoizedState=a.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ya,lastRenderedState:s},a.queue=s,s=s.dispatch=lT.bind(null,ft,s),[a.memoizedState,s]}function Xa(s,a,u,p){return s={tag:s,create:a,destroy:u,deps:p,next:null},a=ft.updateQueue,a===null?(a={lastEffect:null,stores:null},ft.updateQueue=a,a.lastEffect=s.next=s):(u=a.lastEffect,u===null?a.lastEffect=s.next=s:(p=u.next,u.next=s,s.next=p,a.lastEffect=s)),s}function Ev(){return Pn().memoizedState}function nu(s,a,u,p){var x=cr();ft.flags|=s,x.memoizedState=Xa(1|a,u,void 0,p===void 0?null:p)}function ru(s,a,u,p){var x=Pn();p=p===void 0?null:p;var w=void 0;if(_t!==null){var E=_t.memoizedState;if(w=E.destroy,p!==null&&_f(p,E.deps)){x.memoizedState=Xa(a,u,w,p);return}}ft.flags|=s,x.memoizedState=Xa(1|a,u,w,p)}function kv(s,a){return nu(8390656,8,s,a)}function Rf(s,a){return ru(2048,8,s,a)}function Tv(s,a){return ru(4,2,s,a)}function Pv(s,a){return ru(4,4,s,a)}function Rv(s,a){if(typeof a=="function")return s=s(),a(s),function(){a(null)};if(a!=null)return s=s(),a.current=s,function(){a.current=null}}function Av(s,a,u){return u=u!=null?u.concat([s]):null,ru(4,4,Rv.bind(null,a,s),u)}function Af(){}function Mv(s,a){var u=Pn();a=a===void 0?null:a;var p=u.memoizedState;return p!==null&&a!==null&&_f(a,p[1])?p[0]:(u.memoizedState=[s,a],s)}function Ov(s,a){var u=Pn();a=a===void 0?null:a;var p=u.memoizedState;return p!==null&&a!==null&&_f(a,p[1])?p[0]:(s=s(),u.memoizedState=[s,a],s)}function Dv(s,a,u){return(ai&21)===0?(s.baseState&&(s.baseState=!1,dn=!0),s.memoizedState=u):(zn(u,a)||(u=dx(),ft.lanes|=u,li|=u,s.baseState=!0),a)}function oT(s,a){var u=Ze;Ze=u!==0&&4>u?u:4,s(!0);var p=Cf.transition;Cf.transition={};try{s(!1),a()}finally{Ze=u,Cf.transition=p}}function Iv(){return Pn().memoizedState}function aT(s,a,u){var p=ws(s);if(u={lane:p,action:u,hasEagerState:!1,eagerState:null,next:null},Lv(s))Fv(a,u);else if(u=pv(s,a,u,p),u!==null){var x=tn();Gn(u,s,p,x),Vv(u,a,p)}}function lT(s,a,u){var p=ws(s),x={lane:p,action:u,hasEagerState:!1,eagerState:null,next:null};if(Lv(s))Fv(a,x);else{var w=s.alternate;if(s.lanes===0&&(w===null||w.lanes===0)&&(w=a.lastRenderedReducer,w!==null))try{var E=a.lastRenderedState,A=w(E,u);if(x.hasEagerState=!0,x.eagerState=A,zn(A,E)){var I=a.interleaved;I===null?(x.next=x,yf(a)):(x.next=I.next,I.next=x),a.interleaved=x;return}}catch{}finally{}u=pv(s,a,x,p),u!==null&&(x=tn(),Gn(u,s,p,x),Vv(u,a,p))}}function Lv(s){var a=s.alternate;return s===ft||a!==null&&a===ft}function Fv(s,a){Ga=tu=!0;var u=s.pending;u===null?a.next=a:(a.next=u.next,u.next=a),s.pending=a}function Vv(s,a,u){if((u&4194240)!==0){var p=a.lanes;p&=s.pendingLanes,u|=p,a.lanes=u,Mh(s,u)}}var su={readContext:Tn,useCallback:zt,useContext:zt,useEffect:zt,useImperativeHandle:zt,useInsertionEffect:zt,useLayoutEffect:zt,useMemo:zt,useReducer:zt,useRef:zt,useState:zt,useDebugValue:zt,useDeferredValue:zt,useTransition:zt,useMutableSource:zt,useSyncExternalStore:zt,useId:zt,unstable_isNewReconciler:!1},cT={readContext:Tn,useCallback:function(s,a){return cr().memoizedState=[s,a===void 0?null:a],s},useContext:Tn,useEffect:kv,useImperativeHandle:function(s,a,u){return u=u!=null?u.concat([s]):null,nu(4194308,4,Rv.bind(null,a,s),u)},useLayoutEffect:function(s,a){return nu(4194308,4,s,a)},useInsertionEffect:function(s,a){return nu(4,2,s,a)},useMemo:function(s,a){var u=cr();return a=a===void 0?null:a,s=s(),u.memoizedState=[s,a],s},useReducer:function(s,a,u){var p=cr();return a=u!==void 0?u(a):a,p.memoizedState=p.baseState=a,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:a},p.queue=s,s=s.dispatch=aT.bind(null,ft,s),[p.memoizedState,s]}
vendor: 6,750 bytes, lines 38-40
38,useRef:function(s){var a=cr();return s={current:s},a.memoizedState=s},useState:_v,useDebugValue:Af,useDeferredValue:function(s){return cr().memoizedState=s},useTransition:function(){var s=_v(!1),a=s[0];return s=oT.bind(null,s[1]),cr().memoizedState=s,[a,s]},useMutableSource:function(){},useSyncExternalStore:function(s,a,u){var p=ft,x=cr();if(ut){if(u===void 0)throw Error(n(407));u=u()}else{if(u=a(),Mt===null)throw Error(n(349));(ai&30)!==0||bv(p,a,u)}x.memoizedState=u;var w={value:u,getSnapshot:a};return x.queue=w,kv(Nv.bind(null,p,w,s),[s]),p.flags|=2048,Xa(9,jv.bind(null,p,w,u,a),void 0,null),u},useId:function(){var s=cr(),a=Mt.identifierPrefix;if(ut){var u=Mr,p=Ar;u=(p&~(1<<32-Un(p)-1)).toString(32)+u,a=":"+a+"R"+u,u=Qa++,0<u&&(a+="H"+u.toString(32)),a+=":"}else u=iT++,a=":"+a+"r"+u.toString(32)+":";return s.memoizedState=a},unstable_isNewReconciler:!1},uT={readContext:Tn,useCallback:Mv,useContext:Tn,useEffect:Rf,useImperativeHandle:Av,useInsertionEffect:Tv,useLayoutEffect:Pv,useMemo:Ov,useReducer:Tf,useRef:Ev,useState:function(){return Tf(Ya)},useDebugValue:Af,useDeferredValue:function(s){var a=Pn();return Dv(a,_t.memoizedState,s)},useTransition:function(){var s=Tf(Ya)[0],a=Pn().memoizedState;return[s,a]},useMutableSource:yv,useSyncExternalStore:wv,useId:Iv,unstable_isNewReconciler:!1},dT={readContext:Tn,useCallback:Mv,useContext:Tn,useEffect:Rf,useImperativeHandle:Av,useInsertionEffect:Tv,useLayoutEffect:Pv,useMemo:Ov,useReducer:Pf,useRef:Ev,useState:function(){return Pf(Ya)},useDebugValue:Af,useDeferredValue:function(s){var a=Pn();return _t===null?a.memoizedState=s:Dv(a,_t.memoizedState,s)},useTransition:function(){var s=Pf(Ya)[0],a=Pn().memoizedState;return[s,a]},useMutableSource:yv,useSyncExternalStore:wv,useId:Iv,unstable_isNewReconciler:!1};function Hn(s,a){if(s&&s.defaultProps){a=Y({},a),s=s.defaultProps;for(var u in s)a[u]===void 0&&(a[u]=s[u]);return a}return a}function Mf(s,a,u,p){a=s.memoizedState,u=u(p,a),u=u==null?a:Y({},a,u),s.memoizedState=u,s.lanes===0&&(s.updateQueue.baseState=u)}var iu={isMounted:function(s){return(s=s._reactInternals)?ei(s)===s:!1},enqueueSetState:function(s,a,u){s=s._reactInternals;var p=tn(),x=ws(s),w=Dr(p,x);w.payload=a,u!=null&&(w.callback=u),a=gs(s,w,x),a!==null&&(Gn(a,s,x,p),Xc(a,s,x))},enqueueReplaceState:function(s,a,u){s=s._reactInternals;var p=tn(),x=ws(s),w=Dr(p,x);w.tag=1,w.payload=a,u!=null&&(w.callback=u),a=gs(s,w,x),a!==null&&(Gn(a,s,x,p),Xc(a,s,x))},enqueueForceUpdate:function(s,a){s=s._reactInternals;var u=tn(),p=ws(s),x=Dr(u,p);x.tag=2,a!=null&&(x.callback=a),a=gs(s,x,p),a!==null&&(Gn(a,s,p,u),Xc(a,s,p))}};function Bv(s,a,u,p,x,w,E){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(p,w,E):a.prototype&&a.prototype.isPureReactComponent?!La(u,p)||!La(x,w):!0}function $v(s,a,u){var p=!1,x=fs,w=a.contextType;return typeof w=="object"&&w!==null?w=Tn(w):(x=un(a)?ni:Ut.current,p=a.contextTypes,w=(p=p!=null)?ho(s,x):fs),a=new a(u,w),s.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=iu,s.stateNode=a,a._reactInternals=s,p&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=x,s.__reactInternalMemoizedMaskedChildContext=w),a}function Uv(s,a,u,p){s=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(u,p),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(u,p),a.state!==s&&iu.enqueueReplaceState(a,a.state,null)}function Of(s,a,u,p){var x=s.stateNode;x.props=u,x.state=s.memoizedState,x.refs={},wf(s);var w=a.contextType;typeof w=="object"&&w!==null?x.context=Tn(w):(w=un(a)?ni:Ut.current,x.context=ho(s,w)),x.state=s.memoizedState,w=a.getDerivedStateFromProps,typeof w=="function"&&(Mf(s,a,w,u),x.state=s.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(a=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),a!==x.state&&iu.enqueueReplaceState(x,x.state,null),Jc(s,u,x,p),x.state=s.memoizedState),typeof x.componentDidMount=="function"&&(s.flags|=4194308)}function wo(s,a){try{var u="",p=a;do u+=Pe(p),p=p.return;while(p);var x=u}catch(w){x=`
39Error generating stack: `+w.message+`
40`+w.stack}return{value:s,source:a,stack:x,digest:null}}function Df(s,a,u){return{value:s,source:null,stack:u??null,digest:a??null}}function If(s,a){try{console.error(a.value)}catch(u){setTimeout(function(){throw u})}}var hT=typeof WeakMap=="function"?WeakMap:Map;function zv(s,a,u){u=Dr(-1,u),u.tag=3,u.payload={element:null};var p=a.value;return u.callback=function(){hu||(hu=!0,Xf=p),If(s,a)},u}function qv(s,a,u){u=Dr(-1,u),u.tag=3;var p=s.type.getDerivedStateFromError;if(typeof p=="function"){var x=a.value;u.payload=function(){return p(x)},u.callback=function(){If(s,a)}}var w=s.stateNode;return w!==null&&typeof w.componentDidCatch=="function"&&(u.callback=function(){If(s,a),typeof p!="function"&&(vs===null?vs=new Set([this]):vs.add(this));var E=a.stack;this.componentDidCatch(a.value,{componentStack:E!==null?E:""})}),u}function Hv(s,a,u){var p=s.pingCache;if(p===null){p=s.pingCache=new hT;var x=new Set;p.set(a,x)}else x=p.get(a),x===void 0&&(x=new Set,p.set(a,x));x.has(u)||(x.add(u),s=_T.bind(null,s,a,u),a.then(s,s))}function Wv(s){do{var a;if((a=s.tag===13)&&(a=s.memoizedState,a=a!==null?a.dehydrated!==null:!0),a)return s;s=s.return}while(s!==null);return null}function Kv(s,a,u,p,x){return(s.mode&1)===0?(s===a?s.flags|=65536:(s.flags|=128,u.flags|=131072,u.flags&=-52805,u.tag===1&&(u.alternate===null?u.tag=17:(a=Dr(-1,1),a.tag=2,gs(u,a,1))),u.lanes|=1),s):(s.flags|=65536,s.lanes=x,s)}var fT=T.ReactCurrentOwner,dn=!1;function en(s,a,u,p){a.child=s===null?fv(a,null,u,p):go(a,s.child,u,p)}function Gv(s,a,u,p,x){u=u.render;var w=a.ref;return vo(a,x),p=Ef(s,a,u,p,w,x),u=kf(),s!==null&&!dn?(a.updateQueue=s.updateQueue,a.flags&=-2053,s.lanes&=~x,Ir(s,a,x)):(ut&&u&&uf(a),a.flags|=1,en(s,a,p,x),a.child)}function Qv(s,a,u,p,x){if(s===null){var w=u.type;return typeof w=="function"&&!sp(w)&&w.defaultProps===void 0&&u.compare===null&&u.defaultProps===void 0?(a.tag=15,a.type=w,Yv(s,a,w,p,x)):(s=vu(u.type,null,p,a,a.mode,x),s.ref=a.ref,s.return=a,a.child=s)}if(w=s.child,(s.lanes&x)===0){var E=w.memoizedProps;if(u=u.compare,u=u!==null?u:La,u(E,p)&&s.ref===a.ref)return Ir(s,a,x)}return a.flags|=1,s=js(w,p),s.ref=a.ref,s.return=a,a.child=s}function Yv(s,a,u,p,x){if(s!==null){var w=s.memoizedProps;if(La(w,p)&&s.ref===a.ref)if(dn=!1,a.pendingProps=p=w,(s.lanes&x)!==0)(s.flags&131072)!==0&&(dn=!0);else return a.lanes=s.lanes,Ir(s,a,x)}return Lf(s,a,u,p,x)}
vendor: 37,982 bytes, line 40
40function Xv(s,a,u){var p=a.pendingProps,x=p.children,w=s!==null?s.memoizedState:null;if(p.mode==="hidden")if((a.mode&1)===0)a.memoizedState={baseLanes:0,cachePool:null,transitions:null},st(jo,jn),jn|=u;else{if((u&1073741824)===0)return s=w!==null?w.baseLanes|u:u,a.lanes=a.childLanes=1073741824,a.memoizedState={baseLanes:s,cachePool:null,transitions:null},a.updateQueue=null,st(jo,jn),jn|=s,null;a.memoizedState={baseLanes:0,cachePool:null,transitions:null},p=w!==null?w.baseLanes:u,st(jo,jn),jn|=p}else w!==null?(p=w.baseLanes|u,a.memoizedState=null):p=u,st(jo,jn),jn|=p;return en(s,a,x,u),a.child}function Jv(s,a){var u=a.ref;(s===null&&u!==null||s!==null&&s.ref!==u)&&(a.flags|=512,a.flags|=2097152)}function Lf(s,a,u,p,x){var w=un(u)?ni:Ut.current;return w=ho(a,w),vo(a,x),u=Ef(s,a,u,p,w,x),p=kf(),s!==null&&!dn?(a.updateQueue=s.updateQueue,a.flags&=-2053,s.lanes&=~x,Ir(s,a,x)):(ut&&p&&uf(a),a.flags|=1,en(s,a,u,x),a.child)}function Zv(s,a,u,p,x){if(un(u)){var w=!0;zc(a)}else w=!1;if(vo(a,x),a.stateNode===null)au(s,a),$v(a,u,p),Of(a,u,p,x),p=!0;else if(s===null){var E=a.stateNode,A=a.memoizedProps;E.props=A;var I=E.context,z=u.contextType;typeof z=="object"&&z!==null?z=Tn(z):(z=un(u)?ni:Ut.current,z=ho(a,z));var J=u.getDerivedStateFromProps,Z=typeof J=="function"||typeof E.getSnapshotBeforeUpdate=="function";Z||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(A!==p||I!==z)&&Uv(a,E,p,z),ms=!1;var X=a.memoizedState;E.state=X,Jc(a,p,E,x),I=a.memoizedState,A!==p||X!==I||cn.current||ms?(typeof J=="function"&&(Mf(a,u,J,p),I=a.memoizedState),(A=ms||Bv(a,u,A,p,X,I,z))?(Z||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(a.flags|=4194308)):(typeof E.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=p,a.memoizedState=I),E.props=p,E.state=I,E.context=z,p=A):(typeof E.componentDidMount=="function"&&(a.flags|=4194308),p=!1)}else{E=a.stateNode,mv(s,a),A=a.memoizedProps,z=a.type===a.elementType?A:Hn(a.type,A),E.props=z,Z=a.pendingProps,X=E.context,I=u.contextType,typeof I=="object"&&I!==null?I=Tn(I):(I=un(u)?ni:Ut.current,I=ho(a,I));var fe=u.getDerivedStateFromProps;(J=typeof fe=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(A!==Z||X!==I)&&Uv(a,E,p,I),ms=!1,X=a.memoizedState,E.state=X,Jc(a,p,E,x);var xe=a.memoizedState;A!==Z||X!==xe||cn.current||ms?(typeof fe=="function"&&(Mf(a,u,fe,p),xe=a.memoizedState),(z=ms||Bv(a,u,z,p,X,xe,I)||!1)?(J||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(p,xe,I),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(p,xe,I)),typeof E.componentDidUpdate=="function"&&(a.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof E.componentDidUpdate!="function"||A===s.memoizedProps&&X===s.memoizedState||(a.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||A===s.memoizedProps&&X===s.memoizedState||(a.flags|=1024),a.memoizedProps=p,a.memoizedState=xe),E.props=p,E.state=xe,E.context=I,p=z):(typeof E.componentDidUpdate!="function"||A===s.memoizedProps&&X===s.memoizedState||(a.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||A===s.memoizedProps&&X===s.memoizedState||(a.flags|=1024),p=!1)}return Ff(s,a,u,p,w,x)}function Ff(s,a,u,p,x,w){Jv(s,a);var E=(a.flags&128)!==0;if(!p&&!E)return x&&sv(a,u,!1),Ir(s,a,w);p=a.stateNode,fT.current=a;var A=E&&typeof u.getDerivedStateFromError!="function"?null:p.render();return a.flags|=1,s!==null&&E?(a.child=go(a,s.child,null,w),a.child=go(a,null,A,w)):en(s,a,A,w),a.memoizedState=p.state,x&&sv(a,u,!0),a.child}function ey(s){var a=s.stateNode;a.pendingContext?nv(s,a.pendingContext,a.pendingContext!==a.context):a.context&&nv(s,a.context,!1),bf(s,a.containerInfo)}function ty(s,a,u,p,x){return mo(),pf(x),a.flags|=256,en(s,a,u,p),a.child}var Vf={dehydrated:null,treeContext:null,retryLane:0};function Bf(s){return{baseLanes:s,cachePool:null,transitions:null}}function ny(s,a,u){var p=a.pendingProps,x=ht.current,w=!1,E=(a.flags&128)!==0,A;if((A=E)||(A=s!==null&&s.memoizedState===null?!1:(x&2)!==0),A?(w=!0,a.flags&=-129):(s===null||s.memoizedState!==null)&&(x|=1),st(ht,x&1),s===null)return ff(a),s=a.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?((a.mode&1)===0?a.lanes=1:s.data==="$!"?a.lanes=8:a.lanes=1073741824,null):(E=p.children,s=p.fallback,w?(p=a.mode,w=a.child,E={mode:"hidden",children:E},(p&1)===0&&w!==null?(w.childLanes=0,w.pendingProps=E):w=yu(E,p,0,null),s=hi(s,p,u,null),w.return=a,s.return=a,w.sibling=s,a.child=w,a.child.memoizedState=Bf(u),a.memoizedState=Vf,s):$f(a,E));if(x=s.memoizedState,x!==null&&(A=x.dehydrated,A!==null))return pT(s,a,E,p,A,x,u);if(w){w=p.fallback,E=a.mode,x=s.child,A=x.sibling;var I={mode:"hidden",children:p.children};return(E&1)===0&&a.child!==x?(p=a.child,p.childLanes=0,p.pendingProps=I,a.deletions=null):(p=js(x,I),p.subtreeFlags=x.subtreeFlags&14680064),A!==null?w=js(A,w):(w=hi(w,E,u,null),w.flags|=2),w.return=a,p.return=a,p.sibling=w,a.child=p,p=w,w=a.child,E=s.child.memoizedState,E=E===null?Bf(u):{baseLanes:E.baseLanes|u,cachePool:null,transitions:E.transitions},w.memoizedState=E,w.childLanes=s.childLanes&~u,a.memoizedState=Vf,p}return w=s.child,s=w.sibling,p=js(w,{mode:"visible",children:p.children}),(a.mode&1)===0&&(p.lanes=u),p.return=a,p.sibling=null,s!==null&&(u=a.deletions,u===null?(a.deletions=[s],a.flags|=16):u.push(s)),a.child=p,a.memoizedState=null,p}function $f(s,a){return a=yu({mode:"visible",children:a},s.mode,0,null),a.return=s,s.child=a}function ou(s,a,u,p){return p!==null&&pf(p),go(a,s.child,null,u),s=$f(a,a.pendingProps.children),s.flags|=2,a.memoizedState=null,s}function pT(s,a,u,p,x,w,E){if(u)return a.flags&256?(a.flags&=-257,p=Df(Error(n(422))),ou(s,a,E,p)):a.memoizedState!==null?(a.child=s.child,a.flags|=128,null):(w=p.fallback,x=a.mode,p=yu({mode:"visible",children:p.children},x,0,null),w=hi(w,x,E,null),w.flags|=2,p.return=a,w.return=a,p.sibling=w,a.child=p,(a.mode&1)!==0&&go(a,s.child,null,E),a.child.memoizedState=Bf(E),a.memoizedState=Vf,w);if((a.mode&1)===0)return ou(s,a,E,null);if(x.data==="$!"){if(p=x.nextSibling&&x.nextSibling.dataset,p)var A=p.dgst;return p=A,w=Error(n(419)),p=Df(w,p,void 0),ou(s,a,E,p)}if(A=(E&s.childLanes)!==0,dn||A){if(p=Mt,p!==null){switch(E&-E){case 4:x=2;break;case 16:x=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:x=32;break;case 536870912:x=268435456;break;default:x=0}x=(x&(p.suspendedLanes|E))!==0?0:x,x!==0&&x!==w.retryLane&&(w.retryLane=x,Or(s,x),Gn(p,s,x,-1))}return rp(),p=Df(Error(n(421))),ou(s,a,E,p)}return x.data==="$?"?(a.flags|=128,a.child=s.child,a=ET.bind(null,s),x._reactRetry=a,null):(s=w.treeContext,bn=ds(x.nextSibling),wn=a,ut=!0,qn=null,s!==null&&(En[kn++]=Ar,En[kn++]=Mr,En[kn++]=ri,Ar=s.id,Mr=s.overflow,ri=a),a=$f(a,p.children),a.flags|=4096,a)}function ry(s,a,u){s.lanes|=a;var p=s.alternate;p!==null&&(p.lanes|=a),vf(s.return,a,u)}function Uf(s,a,u,p,x){var w=s.memoizedState;w===null?s.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:p,tail:u,tailMode:x}:(w.isBackwards=a,w.rendering=null,w.renderingStartTime=0,w.last=p,w.tail=u,w.tailMode=x)}function sy(s,a,u){var p=a.pendingProps,x=p.revealOrder,w=p.tail;if(en(s,a,p.children,u),p=ht.current,(p&2)!==0)p=p&1|2,a.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=a.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&ry(s,u,a);else if(s.tag===19)ry(s,u,a);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break e;for(;s.sibling===null;){if(s.return===null||s.return===a)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}p&=1}if(st(ht,p),(a.mode&1)===0)a.memoizedState=null;else switch(x){case"forwards":for(u=a.child,x=null;u!==null;)s=u.alternate,s!==null&&Zc(s)===null&&(x=u),u=u.sibling;u=x,u===null?(x=a.child,a.child=null):(x=u.sibling,u.sibling=null),Uf(a,!1,x,u,w);break;case"backwards":for(u=null,x=a.child,a.child=null;x!==null;){if(s=x.alternate,s!==null&&Zc(s)===null){a.child=x;break}s=x.sibling,x.sibling=u,u=x,x=s}Uf(a,!0,u,null,w);break;case"together":Uf(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function au(s,a){(a.mode&1)===0&&s!==null&&(s.alternate=null,a.alternate=null,a.flags|=2)}function Ir(s,a,u){if(s!==null&&(a.dependencies=s.dependencies),li|=a.lanes,(u&a.childLanes)===0)return null;if(s!==null&&a.child!==s.child)throw Error(n(153));if(a.child!==null){for(s=a.child,u=js(s,s.pendingProps),a.child=u,u.return=a;s.sibling!==null;)s=s.sibling,u=u.sibling=js(s,s.pendingProps),u.return=a;u.sibling=null}return a.child}function mT(s,a,u){switch(a.tag){case 3:ey(a),mo();break;case 5:vv(a);break;case 1:un(a.type)&&zc(a);break;case 4:bf(a,a.stateNode.containerInfo);break;case 10:var p=a.type._context,x=a.memoizedProps.value;st(Qc,p._currentValue),p._currentValue=x;break;case 13:if(p=a.memoizedState,p!==null)return p.dehydrated!==null?(st(ht,ht.current&1),a.flags|=128,null):(u&a.child.childLanes)!==0?ny(s,a,u):(st(ht,ht.current&1),s=Ir(s,a,u),s!==null?s.sibling:null);st(ht,ht.current&1);break;case 19:if(p=(u&a.childLanes)!==0,(s.flags&128)!==0){if(p)return sy(s,a,u);a.flags|=128}if(x=a.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),st(ht,ht.current),p)break;return null;case 22:case 23:return a.lanes=0,Xv(s,a,u)}return Ir(s,a,u)}var iy,zf,oy,ay;iy=function(s,a){for(var u=a.child;u!==null;){if(u.tag===5||u.tag===6)s.appendChild(u.stateNode);else if(u.tag!==4&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===a)break;for(;u.sibling===null;){if(u.return===null||u.return===a)return;u=u.return}u.sibling.return=u.return,u=u.sibling}},zf=function(){},oy=function(s,a,u,p){var x=s.memoizedProps;if(x!==p){s=a.stateNode,oi(lr.current);var w=null;switch(u){case"input":x=Pt(s,x),p=Pt(s,p),w=[];break;case"select":x=Y({},x,{value:void 0}),p=Y({},p,{value:void 0}),w=[];break;case"textarea":x=Tr(s,x),p=Tr(s,p),w=[];break;default:typeof x.onClick!="function"&&typeof p.onClick=="function"&&(s.onclick=Bc)}jh(u,p);var E;u=null;for(z in x)if(!p.hasOwnProperty(z)&&x.hasOwnProperty(z)&&x[z]!=null)if(z==="style"){var A=x[z];for(E in A)A.hasOwnProperty(E)&&(u||(u={}),u[E]="")}else z!=="dangerouslySetInnerHTML"&&z!=="children"&&z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&z!=="autoFocus"&&(o.hasOwnProperty(z)?w||(w=[]):(w=w||[]).push(z,null));for(z in p){var I=p[z];if(A=x!=null?x[z]:void 0,p.hasOwnProperty(z)&&I!==A&&(I!=null||A!=null))if(z==="style")if(A){for(E in A)!A.hasOwnProperty(E)||I&&I.hasOwnProperty(E)||(u||(u={}),u[E]="");for(E in I)I.hasOwnProperty(E)&&A[E]!==I[E]&&(u||(u={}),u[E]=I[E])}else u||(w||(w=[]),w.push(z,u)),u=I;else z==="dangerouslySetInnerHTML"?(I=I?I.__html:void 0,A=A?A.__html:void 0,I!=null&&A!==I&&(w=w||[]).push(z,I)):z==="children"?typeof I!="string"&&typeof I!="number"||(w=w||[]).push(z,""+I):z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&(o.hasOwnProperty(z)?(I!=null&&z==="onScroll"&&ot("scroll",s),w||A===I||(w=[])):(w=w||[]).push(z,I))}u&&(w=w||[]).push("style",u);var z=w;(a.updateQueue=z)&&(a.flags|=4)}},ay=function(s,a,u,p){u!==p&&(a.flags|=4)};function Ja(s,a){if(!ut)switch(s.tailMode){case"hidden":a=s.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?s.tail=null:u.sibling=null;break;case"collapsed":u=s.tail;for(var p=null;u!==null;)u.alternate!==null&&(p=u),u=u.sibling;p===null?a||s.tail===null?s.tail=null:s.tail.sibling=null:p.sibling=null}}function qt(s){var a=s.alternate!==null&&s.alternate.child===s.child,u=0,p=0;if(a)for(var x=s.child;x!==null;)u|=x.lanes|x.childLanes,p|=x.subtreeFlags&14680064,p|=x.flags&14680064,x.return=s,x=x.sibling;else for(x=s.child;x!==null;)u|=x.lanes|x.childLanes,p|=x.subtreeFlags,p|=x.flags,x.return=s,x=x.sibling;return s.subtreeFlags|=p,s.childLanes=u,a}function gT(s,a,u){var p=a.pendingProps;switch(df(a),a.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qt(a),null;case 1:return un(a.type)&&Uc(),qt(a),null;case 3:return p=a.stateNode,yo(),at(cn),at(Ut),Sf(),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),(s===null||s.child===null)&&(Kc(a)?a.flags|=4:s===null||s.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,qn!==null&&(ep(qn),qn=null))),zf(s,a),qt(a),null;case 5:jf(a);var x=oi(Ka.current);if(u=a.type,s!==null&&a.stateNode!=null)oy(s,a,u,p,x),s.ref!==a.ref&&(a.flags|=512,a.flags|=2097152);else{if(!p){if(a.stateNode===null)throw Error(n(166));return qt(a),null}if(s=oi(lr.current),Kc(a)){p=a.stateNode,u=a.type;var w=a.memoizedProps;switch(p[ar]=a,p[Ua]=w,s=(a.mode&1)!==0,u){case"dialog":ot("cancel",p),ot("close",p);break;case"iframe":case"object":case"embed":ot("load",p);break;case"video":case"audio":for(x=0;x<Va.length;x++)ot(Va[x],p);break;case"source":ot("error",p);break;case"img":case"image":case"link":ot("error",p),ot("load",p);break;case"details":ot("toggle",p);break;case"input":Rt(p,w),ot("invalid",p);break;case"select":p._wrapperState={wasMultiple:!!w.multiple},ot("invalid",p);break;case"textarea":q0(p,w),ot("invalid",p)}jh(u,w),x=null;for(var E in w)if(w.hasOwnProperty(E)){var A=w[E];E==="children"?typeof A=="string"?p.textContent!==A&&(w.suppressHydrationWarning!==!0&&Vc(p.textContent,A,s),x=["children",A]):typeof A=="number"&&p.textContent!==""+A&&(w.suppressHydrationWarning!==!0&&Vc(p.textContent,A,s),x=["children",""+A]):o.hasOwnProperty(E)&&A!=null&&E==="onScroll"&&ot("scroll",p)}switch(u){case"input":Le(p),vn(p,w,!0);break;case"textarea":Le(p),W0(p);break;case"select":case"option":break;default:typeof w.onClick=="function"&&(p.onclick=Bc)}p=x,a.updateQueue=p,p!==null&&(a.flags|=4)}else{E=x.nodeType===9?x:x.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=K0(u)),s==="http://www.w3.org/1999/xhtml"?u==="script"?(s=E.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild)):typeof p.is=="string"?s=E.createElement(u,{is:p.is}):(s=E.createElement(u),u==="select"&&(E=s,p.multiple?E.multiple=!0:p.size&&(E.size=p.size))):s=E.createElementNS(s,u),s[ar]=a,s[Ua]=p,iy(s,a,!1,!1),a.stateNode=s;e:{switch(E=Nh(u,p),u){case"dialog":ot("cancel",s),ot("close",s),x=p;break;case"iframe":case"object":case"embed":ot("load",s),x=p;break;case"video":case"audio":for(x=0;x<Va.length;x++)ot(Va[x],s);x=p;break;case"source":ot("error",s),x=p;break;case"img":case"image":case"link":ot("error",s),ot("load",s),x=p;break;case"details":ot("toggle",s),x=p;break;case"input":Rt(s,p),x=Pt(s,p),ot("invalid",s);break;case"option":x=p;break;case"select":s._wrapperState={wasMultiple:!!p.multiple},x=Y({},p,{value:void 0}),ot("invalid",s);break;case"textarea":q0(s,p),x=Tr(s,p),ot("invalid",s);break;default:x=p}jh(u,x),A=x;for(w in A)if(A.hasOwnProperty(w)){var I=A[w];w==="style"?Y0(s,I):w==="dangerouslySetInnerHTML"?(I=I?I.__html:void 0,I!=null&&G0(s,I)):w==="children"?typeof I=="string"?(u!=="textarea"||I!=="")&&wa(s,I):typeof I=="number"&&wa(s,""+I):w!=="suppressContentEditableWarning"&&w!=="suppressHydrationWarning"&&w!=="autoFocus"&&(o.hasOwnProperty(w)?I!=null&&w==="onScroll"&&ot("scroll",s):I!=null&&_(s,w,I,E))}switch(u){case"input":Le(s),vn(s,p,!1);break;case"textarea":Le(s),W0(s);break;case"option":p.value!=null&&s.setAttribute("value",""+me(p.value));break;case"select":s.multiple=!!p.multiple,w=p.value,w!=null?ss(s,!!p.multiple,w,!1):p.defaultValue!=null&&ss(s,!!p.multiple,p.defaultValue,!0);break;default:typeof x.onClick=="function"&&(s.onclick=Bc)}switch(u){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break e;case"img":p=!0;break e;default:p=!1}}p&&(a.flags|=4)}a.ref!==null&&(a.flags|=512,a.flags|=2097152)}return qt(a),null;case 6:if(s&&a.stateNode!=null)ay(s,a,s.memoizedProps,p);else{if(typeof p!="string"&&a.stateNode===null)throw Error(n(166));if(u=oi(Ka.current),oi(lr.current),Kc(a)){if(p=a.stateNode,u=a.memoizedProps,p[ar]=a,(w=p.nodeValue!==u)&&(s=wn,s!==null))switch(s.tag){case 3:Vc(p.nodeValue,u,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&Vc(p.nodeValue,u,(s.mode&1)!==0)}w&&(a.flags|=4)}else p=(u.nodeType===9?u:u.ownerDocument).createTextNode(p),p[ar]=a,a.stateNode=p}return qt(a),null;case 13:if(at(ht),p=a.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(ut&&bn!==null&&(a.mode&1)!==0&&(a.flags&128)===0)uv(),mo(),a.flags|=98560,w=!1;else if(w=Kc(a),p!==null&&p.dehydrated!==null){if(s===null){if(!w)throw Error(n(318));if(w=a.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error(n(317));w[ar]=a}else mo(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;qt(a),w=!1}else qn!==null&&(ep(qn),qn=null),w=!0;if(!w)return a.flags&65536?a:null}return(a.flags&128)!==0?(a.lanes=u,a):(p=p!==null,p!==(s!==null&&s.memoizedState!==null)&&p&&(a.child.flags|=8192,(a.mode&1)!==0&&(s===null||(ht.current&1)!==0?Et===0&&(Et=3):rp())),a.updateQueue!==null&&(a.flags|=4),qt(a),null);case 4:return yo(),zf(s,a),s===null&&Ba(a.stateNode.containerInfo),qt(a),null;case 10:return xf(a.type._context),qt(a),null;case 17:return un(a.type)&&Uc(),qt(a),null;case 19:if(at(ht),w=a.memoizedState,w===null)return qt(a),null;if(p=(a.flags&128)!==0,E=w.rendering,E===null)if(p)Ja(w,!1);else{if(Et!==0||s!==null&&(s.flags&128)!==0)for(s=a.child;s!==null;){if(E=Zc(s),E!==null){for(a.flags|=128,Ja(w,!1),p=E.updateQueue,p!==null&&(a.updateQueue=p,a.flags|=4),a.subtreeFlags=0,p=u,u=a.child;u!==null;)w=u,s=p,w.flags&=14680066,E=w.alternate,E===null?(w.childLanes=0,w.lanes=s,w.child=null,w.subtreeFlags=0,w.memoizedProps=null,w.memoizedState=null,w.updateQueue=null,w.dependencies=null,w.stateNode=null):(w.childLanes=E.childLanes,w.lanes=E.lanes,w.child=E.child,w.subtreeFlags=0,w.deletions=null,w.memoizedProps=E.memoizedProps,w.memoizedState=E.memoizedState,w.updateQueue=E.updateQueue,w.type=E.type,s=E.dependencies,w.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),u=u.sibling;return st(ht,ht.current&1|2),a.child}s=s.sibling}w.tail!==null&&yt()>No&&(a.flags|=128,p=!0,Ja(w,!1),a.lanes=4194304)}else{if(!p)if(s=Zc(E),s!==null){if(a.flags|=128,p=!0,u=s.updateQueue,u!==null&&(a.updateQueue=u,a.flags|=4),Ja(w,!0),w.tail===null&&w.tailMode==="hidden"&&!E.alternate&&!ut)return qt(a),null}else 2*yt()-w.renderingStartTime>No&&u!==1073741824&&(a.flags|=128,p=!0,Ja(w,!1),a.lanes=4194304);w.isBackwards?(E.sibling=a.child,a.child=E):(u=w.last,u!==null?u.sibling=E:a.child=E,w.last=E)}return w.tail!==null?(a=w.tail,w.rendering=a,w.tail=a.sibling,w.renderingStartTime=yt(),a.sibling=null,u=ht.current,st(ht,p?u&1|2:u&1),a):(qt(a),null);case 22:case 23:return np(),p=a.memoizedState!==null,s!==null&&s.memoizedState!==null!==p&&(a.flags|=8192),p&&(a.mode&1)!==0?(jn&1073741824)!==0&&(qt(a),a.subtreeFlags&6&&(a.flags|=8192)):qt(a),null;case 24:return null;case 25:return null}throw Error(n(156,a.tag))}function xT(s,a){switch(df(a),a.tag){case 1:return un(a.type)&&Uc(),s=a.flags,s&65536?(a.flags=s&-65537|128,a):null;case 3:return yo(),at(cn),at(Ut),Sf(),s=a.flags,(s&65536)!==0&&(s&128)===0?(a.flags=s&-65537|128,a):null;case 5:return jf(a),null;case 13:if(at(ht),s=a.memoizedState,s!==null&&s.dehydrated!==null){if(a.alternate===null)throw Error(n(340));mo()}return s=a.flags,s&65536?(a.flags=s&-65537|128,a):null;case 19:return at(ht),null;case 4:return yo(),null;case 10:return xf(a.type._context),null;case 22:case 23:return np(),null;case 24:return null;default:return null}}var lu=!1,Ht=!1,vT=typeof WeakSet=="function"?WeakSet:Set,ge=null;function bo(s,a){var u=s.ref;if(u!==null)if(typeof u=="function")try{u(null)}catch(p){mt(s,a,p)}else u.current=null}function qf(s,a,u){try{u()}catch(p){mt(s,a,p)}}var ly=!1;function yT(s,a){if(tf=kc,s=Bx(),Kh(s)){if("selectionStart"in s)var u={start:s.selectionStart,end:s.selectionEnd};else e:{u=(u=s.ownerDocument)&&u.defaultView||window;var p=u.getSelection&&u.getSelection();if(p&&p.rangeCount!==0){u=p.anchorNode;var x=p.anchorOffset,w=p.focusNode;p=p.focusOffset;try{u.nodeType,w.nodeType}catch{u=null;break e}var E=0,A=-1,I=-1,z=0,J=0,Z=s,X=null;t:for(;;){for(var fe;Z!==u||x!==0&&Z.nodeType!==3||(A=E+x),Z!==w||p!==0&&Z.nodeType!==3||(I=E+p),Z.nodeType===3&&(E+=Z.nodeValue.length),(fe=Z.firstChild)!==null;)X=Z,Z=fe;for(;;){if(Z===s)break t;if(X===u&&++z===x&&(A=E),X===w&&++J===p&&(I=E),(fe=Z.nextSibling)!==null)break;Z=X,X=Z.parentNode}Z=fe}u=A===-1||I===-1?null:{start:A,end:I}}else u=null}u=u||{start:0,end:0}}else u=null;for(nf={focusedElem:s,selectionRange:u},kc=!1,ge=a;ge!==null;)if(a=ge,s=a.child,(a.subtreeFlags&1028)!==0&&s!==null)s.return=a,ge=s;else for(;ge!==null;){a=ge;try{var xe=a.alternate;if((a.flags&1024)!==0)switch(a.tag){case 0:case 11:case 15:break;case 1:if(xe!==null){var be=xe.memoizedProps,wt=xe.memoizedState,$=a.stateNode,F=$.getSnapshotBeforeUpdate(a.elementType===a.type?be:Hn(a.type,be),wt);$.__reactInternalSnapshotBeforeUpdate=F}break;case 3:var U=a.stateNode.containerInfo;U.nodeType===1?U.textContent="":U.nodeType===9&&U.documentElement&&U.removeChild(U.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ee){mt(a,a.return,ee)}if(s=a.sibling,s!==null){s.return=a.return,ge=s;break}ge=a.return}return xe=ly,ly=!1,xe}function Za(s,a,u){var p=a.updateQueue;if(p=p!==null?p.lastEffect:null,p!==null){var x=p=p.next;do{if((x.tag&s)===s){var w=x.destroy;x.destroy=void 0,w!==void 0&&qf(a,u,w)}x=x.next}while(x!==p)}}function cu(s,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var u=a=a.next;do{if((u.tag&s)===s){var p=u.create;u.destroy=p()}u=u.next}while(u!==a)}}function Hf(s){var a=s.ref;if(a!==null){var u=s.stateNode;switch(s.tag){case 5:s=u;break;default:s=u}typeof a=="function"?a(s):a.current=s}}function cy(s){var a=s.alternate;a!==null&&(s.alternate=null,cy(a)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(a=s.stateNode,a!==null&&(delete a[ar],delete a[Ua],delete a[af],delete a[tT],delete a[nT])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function uy(s){return s.tag===5||s.tag===3||s.tag===4}function dy(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||uy(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function Wf(s,a,u){var p=s.tag;if(p===5||p===6)s=s.stateNode,a?u.nodeType===8?u.parentNode.insertBefore(s,a):u.insertBefore(s,a):(u.nodeType===8?(a=u.parentNode,a.insertBefore(s,u)):(a=u,a.appendChild(s)),u=u._reactRootContainer,u!=null||a.onclick!==null||(a.onclick=Bc));else if(p!==4&&(s=s.child,s!==null))for(Wf(s,a,u),s=s.sibling;s!==null;)Wf(s,a,u),s=s.sibling}function Kf(s,a,u){var p=s.tag;if(p===5||p===6)s=s.stateNode,a?u.insertBefore(s,a):u.appendChild(s);else if(p!==4&&(s=s.child,s!==null))for(Kf(s,a,u),s=s.sibling;s!==null;)Kf(s,a,u),s=s.sibling}var It=null,Wn=!1;function xs(s,a,u){for(u=u.child;u!==null;)hy(s,a,u),u=u.sibling}function hy(s,a,u){if(or&&typeof or.onCommitFiberUnmount=="function")try{or.onCommitFiberUnmount(jc,u)}catch{}switch(u.tag){case 5:Ht||bo(u,a);case 6:var p=It,x=Wn;It=null,xs(s,a,u),It=p,Wn=x,It!==null&&(Wn?(s=It,u=u.stateNode,s.nodeType===8?s.parentNode.removeChild(u):s.removeChild(u)):It.removeChild(u.stateNode));break;case 18:It!==null&&(Wn?(s=It,u=u.stateNode,s.nodeType===8?of(s.parentNode,u):s.nodeType===1&&of(s,u),Ra(s)):of(It,u.stateNode));break;case 4:p=It,x=Wn,It=u.stateNode.containerInfo,Wn=!0,xs(s,a,u),It=p,Wn=x;break;case 0:case 11:case 14:case 15:if(!Ht&&(p=u.updateQueue,p!==null&&(p=p.lastEffect,p!==null))){x=p=p.next;do{var w=x,E=w.destroy;w=w.tag,E!==void 0&&((w&2)!==0||(w&4)!==0)&&qf(u,a,E),x=x.next}while(x!==p)}xs(s,a,u);break;case 1:if(!Ht&&(bo(u,a),p=u.stateNode,typeof p.componentWillUnmount=="function"))try{p.props=u.memoizedProps,p.state=u.memoizedState,p.componentWillUnmount()}catch(A){mt(u,a,A)}xs(s,a,u);break;case 21:xs(s,a,u);break;case 22:u.mode&1?(Ht=(p=Ht)||u.memoizedState!==null,xs(s,a,u),Ht=p):xs(s,a,u);break;default:xs(s,a,u)}}function fy(s){var a=s.updateQueue;if(a!==null){s.updateQueue=null;var u=s.stateNode;u===null&&(u=s.stateNode=new vT),a.forEach(function(p){var x=kT.bind(null,s,p);u.has(p)||(u.add(p),p.then(x,x))})}}function Kn(s,a){var u=a.deletions;if(u!==null)for(var p=0;p<u.length;p++){var x=u[p];try{var w=s,E=a,A=E;e:for(;A!==null;){switch(A.tag){case 5:It=A.stateNode,Wn=!1;break e;case 3:It=A.stateNode.containerInfo,Wn=!0;break e;case 4:It=A.stateNode.containerInfo,Wn=!0;break e}A=A.return}if(It===null)throw Error(n(160));hy(w,E,x),It=null,Wn=!1;var I=x.alternate;I!==null&&(I.return=null),x.return=null}catch(z){mt(x,a,z)}}if(a.subtreeFlags&12854)for(a=a.child;a!==null;)py(a,s),a=a.sibling}function py(s,a){var u=s.alternate,p=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(Kn(a,s),ur(s),p&4){try{Za(3,s,s.return),cu(3,s)}catch(be){mt(s,s.return,be)}try{Za(5,s,s.return)}catch(be){mt(s,s.return,be)}}break;case 1:Kn(a,s),ur(s),p&512&&u!==null&&bo(u,u.return);break;case 5:if(Kn(a,s),ur(s),p&512&&u!==null&&bo(u,u.return),s.flags&32){var x=s.stateNode;try{wa(x,"")}catch(be){mt(s,s.return,be)}}if(p&4&&(x=s.stateNode,x!=null)){var w=s.memoizedProps,E=u!==null?u.memoizedProps:w,A=s.type,I=s.updateQueue;if(s.updateQueue=null,I!==null)try{A==="input"&&w.type==="radio"&&w.name!=null&&Ae(x,w),Nh(A,E);var z=Nh(A,w);for(E=0;E<I.length;E+=2){var J=I[E],Z=I[E+1];J==="style"?Y0(x,Z):J==="dangerouslySetInnerHTML"?G0(x,Z):J==="children"?wa(x,Z):_(x,J,Z,z)}switch(A){case"input":dt(x,w);break;case"textarea":H0(x,w);break;case"select":var X=x._wrapperState.wasMultiple;x._wrapperState.wasMultiple=!!w.multiple;var fe=w.value;fe!=null?ss(x,!!w.multiple,fe,!1):X!==!!w.multiple&&(w.defaultValue!=null?ss(x,!!w.multiple,w.defaultValue,!0):ss(x,!!w.multiple,w.multiple?[]:"",!1))}x[Ua]=w}catch(be){mt(s,s.return,be)}}break;case 6:if(Kn(a,s),ur(s),p&4){if(s.stateNode===null)throw Error(n(162));x=s.stateNode,w=s.memoizedProps;try{x.nodeValue=w}catch(be){mt(s,s.return,be)}}break;case 3:if(Kn(a,s),ur(s),p&4&&u!==null&&u.memoizedState.isDehydrated)try{Ra(a.containerInfo)}catch(be){mt(s,s.return,be)}break;case 4:Kn(a,s),ur(s);break;case 13:Kn(a,s),ur(s),x=s.child,x.flags&8192&&(w=x.memoizedState!==null,x.stateNode.isHidden=w,!w||x.alternate!==null&&x.alternate.memoizedState!==null||(Yf=yt())),p&4&&fy(s);break;case 22:if(J=u!==null&&u.memoizedState!==null,s.mode&1?(Ht=(z=Ht)||J,Kn(a,s),Ht=z):Kn(a,s),ur(s),p&8192){if(z=s.memoizedState!==null,(s.stateNode.isHidden=z)&&!J&&(s.mode&1)!==0)for(ge=s,J=s.child;J!==null;){for(Z=ge=J;ge!==null;){switch(X=ge,fe=X.child,X.tag){case 0:case 11:case 14:case 15:Za(4,X,X.return);break;case 1:bo(X,X.return);var xe=X.stateNode;if(typeof xe.componentWillUnmount=="function"){p=X,u=X.return;try{a=p,xe.props=a.memoizedProps,xe.state=a.memoizedState,xe.componentWillUnmount()}catch(be){mt(p,u,be)}}break;case 5:bo(X,X.return);break;case 22:if(X.memoizedState!==null){xy(Z);continue}}fe!==null?(fe.return=X,ge=fe):xy(Z)}J=J.sibling}e:for(J=null,Z=s;;){if(Z.tag===5){if(J===null){J=Z;try{x=Z.stateNode,z?(w=x.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none"):(A=Z.stateNode,I=Z.memoizedProps.style,E=I!=null&&I.hasOwnProperty("display")?I.display:null,A.style.display=Q0("display",E))}catch(be){mt(s,s.return,be)}}}else if(Z.tag===6){if(J===null)try{Z.stateNode.nodeValue=z?"":Z.memoizedProps}catch(be){mt(s,s.return,be)}}else if((Z.tag!==22&&Z.tag!==23||Z.memoizedState===null||Z===s)&&Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===s)break e;for(;Z.sibling===null;){if(Z.return===null||Z.return===s)break e;J===Z&&(J=null),Z=Z.return}J===Z&&(J=null),Z.sibling.return=Z.return,Z=Z.sibling}}break;case 19:Kn(a,s),ur(s),p&4&&fy(s);break;case 21:break;default:Kn(a,s),ur(s)}}function ur(s){var a=s.flags;if(a&2){try{e:{for(var u=s.return;u!==null;){if(uy(u)){var p=u;break e}u=u.return}throw Error(n(160))}switch(p.tag){case 5:var x=p.stateNode;p.flags&32&&(wa(x,""),p.flags&=-33);var w=dy(s);Kf(s,w,x);break;case 3:case 4:var E=p.stateNode.containerInfo,A=dy(s);Wf(s,A,E);break;default:throw Error(n(161))}}catch(I){mt(s,s.return,I)}s.flags&=-3}a&4096&&(s.flags&=-4097)}function wT(s,a,u){ge=s,my(s)}function my(s,a,u){for(var p=(s.mode&1)!==0;ge!==null;){var x=ge,w=x.child;if(x.tag===22&&p){var E=x.memoizedState!==null||lu;if(!E){var A=x.alternate,I=A!==null&&A.memoizedState!==null||Ht;A=lu;var z=Ht;if(lu=E,(Ht=I)&&!z)for(ge=x;ge!==null;)E=ge,I=E.child,E.tag===22&&E.memoizedState!==null?vy(x):I!==null?(I.return=E,ge=I):vy(x);for(;w!==null;)ge=w,my(w),w=w.sibling;ge=x,lu=A,Ht=z}gy(s)}else(x.subtreeFlags&8772)!==0&&w!==null?(w.return=x,ge=w):gy(s)}}function gy(s){for(;ge!==null;){var a=ge;if((a.flags&8772)!==0){var u=a.alternate;try{if((a.flags&8772)!==0)switch(a.tag){case 0:case 11:case 15:Ht||cu(5,a);break;case 1:var p=a.stateNode;if(a.flags&4&&!Ht)if(u===null)p.componentDidMount();else{var x=a.elementType===a.type?u.memoizedProps:Hn(a.type,u.memoizedProps);p.componentDidUpdate(x,u.memoizedState,p.__reactInternalSnapshotBeforeUpdate)}var w=a.updateQueue;w!==null&&xv(a,w,p);break;case 3:var E=a.updateQueue;if(E!==null){if(u=null,a.child!==null)switch(a.child.tag){case 5:u=a.child.stateNode;break;case 1:u=a.child.stateNode}xv(a,E,u)}break;case 5:var A=a.stateNode;if(u===null&&a.flags&4){u=A;var I=a.memoizedProps;switch(a.type){case"button":case"input":case"select":case"textarea":I.autoFocus&&u.focus();break;case"img":I.src&&(u.src=I.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(a.memoizedState===null){var z=a.alternate;if(z!==null){var J=z.memoizedState;if(J!==null){var Z=J.dehydrated;Z!==null&&Ra(Z)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Ht||a.flags&512&&Hf(a)}catch(X){mt(a,a.return,X)}}if(a===s){ge=null;break}if(u=a.sibling,u!==null){u.return=a.return,ge=u;break}ge=a.return}}function xy(s){for(;ge!==null;){var a=ge;if(a===s){ge=null;break}var u=a.sibling;if(u!==null){u.return=a.return,ge=u;break}ge=a.return}}function vy(s){for(;ge!==null;){var a=ge;try{switch(a.tag){case 0:case 11:case 15:var u=a.return;try{cu(4,a)}catch(I){mt(a,u,I)}break;case 1:var p=a.stateNode;if(typeof p.componentDidMount=="function"){var x=a.return;try{p.componentDidMount()}catch(I){mt(a,x,I)}}var w=a.return;try{Hf(a)}catch(I){mt(a,w,I)}break;case 5:var E=a.return;try{Hf(a)}catch(I){mt(a,E,I)}}}catch(I){mt(a,a.return,I)}if(a===s){ge=null;break}var A=a.sibling;if(A!==null){A.return=a.return,ge=A;break}ge=a.return}}var bT=Math.ceil,uu=T.ReactCurrentDispatcher,Gf=T.ReactCurrentOwner,Rn=T.ReactCurrentBatchConfig,We=0,Mt=null,Nt=null,Lt=0,jn=0,jo=hs(0),Et=0,el=null,li=0,du=0,Qf=0,tl=null,hn=null,Yf=0,No=1/0,Lr=null,hu=!1,Xf=null,vs=null,fu=!1,ys=null,pu=0,nl=0,Jf=null,mu=-1,gu=0;function tn(){return(We&6)!==0?yt():mu!==-1?mu:mu=yt()}function ws(s){return(s.mode&1)===0?1:(We&2)!==0&&Lt!==0?Lt&-Lt:sT.transition!==null?(gu===0&&(gu=dx()),gu):(s=Ze,s!==0||(s=window.event,s=s===void 0?16:wx(s.type)),s)}function Gn(s,a,u,p){if(50<nl)throw nl=0,Jf=null,Error(n(185));_a(s,u,p),((We&2)===0||s!==Mt)&&(s===Mt&&((We&2)===0&&(du|=u),Et===4&&bs(s,Lt)),fn(s,p),u===1&&We===0&&(a.mode&1)===0&&(No=yt()+500,qc&&ps()))}function fn(s,a){var u=s.callbackNode;sk(s,a);var p=Cc(s,s===Mt?Lt:0);if(p===0)u!==null&&lx(u),s.callbackNode=null,s.callbackPriority=0;else if(a=p&-p,s.callbackPriority!==a){if(u!=null&&lx(u),a===1)s.tag===0?rT(wy.bind(null,s)):iv(wy.bind(null,s)),Zk(function(){(We&6)===0&&ps()}),u=null;else{switch(hx(p)){case 1:u=Ph;break;case 4:u=cx;break;case 16:u=bc;break;case 536870912:u=ux;break;default:u=bc}u=ky(u,yy.bind(null,s))}s.callbackPriority=a,s.callbackNode=u}}function yy(s,a){if(mu=-1,gu=0,(We&6)!==0)throw Error(n(327));var u=s.callbackNode;if(So()&&s.callbackNode!==u)return null;var p=Cc(s,s===Mt?Lt:0);if(p===0)return null;if((p&30)!==0||(p&s.expiredLanes)!==0||a)a=xu(s,p);else{a=p;var x=We;We|=2;var w=jy();(Mt!==s||Lt!==a)&&(Lr=null,No=yt()+500,ui(s,a));do try{ST();break}catch(A){by(s,A)}while(!0);gf(),uu.current=w,We=x,Nt!==null?a=0:(Mt=null,Lt=0,a=Et)}if(a!==0){if(a===2&&(x=Rh(s),x!==0&&(p=x,a=Zf(s,x))),a===1)throw u=el,ui(s,0),bs(s,p),fn(s,yt()),u;if(a===6)bs(s,p);else{if(x=s.current.alternate,(p&30)===0&&!jT(x)&&(a=xu(s,p),a===2&&(w=Rh(s),w!==0&&(p=w,a=Zf(s,w))),a===1))throw u=el,ui(s,0),bs(s,p),fn(s,yt()),u;switch(s.finishedWork=x,s.finishedLanes=p,a){case 0:case 1:throw Error(n(345));case 2:di(s,hn,Lr);break;case 3:if(bs(s,p),(p&130023424)===p&&(a=Yf+500-yt(),10<a)){if(Cc(s,0)!==0)break;if(x=s.suspendedLanes,(x&p)!==p){tn(),s.pingedLanes|=s.suspendedLanes&x;break}s.timeoutHandle=sf(di.bind(null,s,hn,Lr),a);break}di(s,hn,Lr);break;case 4:if(bs(s,p),(p&4194240)===p)break;for(a=s.eventTimes,x=-1;0<p;){var E=31-Un(p);w=1<<E,E=a[E],E>x&&(x=E),p&=~w}if(p=x,p=yt()-p,p=(120>p?120:480>p?480:1080>p?1080:1920>p?1920:3e3>p?3e3:4320>p?4320:1960*bT(p/1960))-p,10<p){s.timeoutHandle=sf(di.bind(null,s,hn,Lr),p);break}di(s,hn,Lr);break;case 5:di(s,hn,Lr);break;default:throw Error(n(329))}}}return fn(s,yt()),s.callbackNode===u?yy.bind(null,s):null}function Zf(s,a){var u=tl;return s.current.memoizedState.isDehydrated&&(ui(s,a).flags|=256),s=xu(s,a),s!==2&&(a=hn,hn=u,a!==null&&ep(a)),s}function ep(s){hn===null?hn=s:hn.push.apply(hn,s)}function jT(s){for(var a=s;;){if(a.flags&16384){var u=a.updateQueue;if(u!==null&&(u=u.stores,u!==null))for(var p=0;p<u.length;p++){var x=u[p],w=x.getSnapshot;x=x.value;try{if(!zn(w(),x))return!1}catch{return!1}}}if(u=a.child,a.subtreeFlags&16384&&u!==null)u.return=a,a=u;else{if(a===s)break;for(;a.sibling===null;){if(a.return===null||a.return===s)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function bs(s,a){for(a&=~Qf,a&=~du,s.suspendedLanes|=a,s.pingedLanes&=~a,s=s.expirationTimes;0<a;){var u=31-Un(a),p=1<<u;s[u]=-1,a&=~p}}function wy(s){if((We&6)!==0)throw Error(n(327));So();var a=Cc(s,0);if((a&1)===0)return fn(s,yt()),null;var u=xu(s,a);if(s.tag!==0&&u===2){var p=Rh(s);p!==0&&(a=p,u=Zf(s,p))}if(u===1)throw u=el,ui(s,0),bs(s,a),fn(s,yt()),u;if(u===6)throw Error(n(345));return s.finishedWork=s.current.alternate,s.finishedLanes=a,di(s,hn,Lr),fn(s,yt()),null}function tp(s,a){var u=We;We|=1;try{return s(a)}finally{We=u,We===0&&(No=yt()+500,qc&&ps())}}function ci(s){ys!==null&&ys.tag===0&&(We&6)===0&&So();var a=We;We|=1;var u=Rn.transition,p=Ze;try{if(Rn.transition=null,Ze=1,s)return s()}finally{Ze=p,Rn.transition=u,We=a,(We&6)===0&&ps()}}function np(){jn=jo.current,at(jo)}function ui(s,a){s.finishedWork=null,s.finishedLanes=0;var u=s.timeoutHandle;if(u!==-1&&(s.timeoutHandle=-1,Jk(u)),Nt!==null)for(u=Nt.return;u!==null;){var p=u;switch(df(p),p.tag){case 1:p=p.type.childContextTypes,p!=null&&Uc();break;case 3:yo(),at(cn),at(Ut),Sf();break;case 5:jf(p);break;case 4:yo();break;case 13:at(ht);break;case 19:at(ht);break;case 10:xf(p.type._context);break;case 22:case 23:np()}u=u.return}if(Mt=s,Nt=s=js(s.current,null),Lt=jn=a,Et=0,el=null,Qf=du=li=0,hn=tl=null,ii!==null){for(a=0;a<ii.length;a++)if(u=ii[a],p=u.interleaved,p!==null){u.interleaved=null;var x=p.next,w=u.pending;if(w!==null){var E=w.next;w.next=x,p.next=E}u.pending=p}ii=null}return s}function by(s,a){do{var u=Nt;try{if(gf(),eu.current=su,tu){for(var p=ft.memoizedState;p!==null;){var x=p.queue;x!==null&&(x.pending=null),p=p.next}tu=!1}if(ai=0,At=_t=ft=null,Ga=!1,Qa=0,Gf.current=null,u===null||u.return===null){Et=1,el=a,Nt=null;break}e:{var w=s,E=u.return,A=u,I=a;if(a=Lt,A.flags|=32768,I!==null&&typeof I=="object"&&typeof I.then=="function"){var z=I,J=A,Z=J.tag;if((J.mode&1)===0&&(Z===0||Z===11||Z===15)){var X=J.alternate;X?(J.updateQueue=X.updateQueue,J.memoizedState=X.memoizedState,J.lanes=X.lanes):(J.updateQueue=null,J.memoizedState=null)}var fe=Wv(E);if(fe!==null){fe.flags&=-257,Kv(fe,E,A,w,a),fe.mode&1&&Hv(w,z,a),a=fe,I=z;var xe=a.updateQueue;if(xe===null){var be=new Set;be.add(I),a.updateQueue=be}else xe.add(I);break e}else{if((a&1)===0){Hv(w,z,a),rp();break e}I=Error(n(426))}}else if(ut&&A.mode&1){var wt=Wv(E);if(wt!==null){(wt.flags&65536)===0&&(wt.flags|=256),Kv(wt,E,A,w,a),pf(wo(I,A));break e}}w=I=wo(I,A),Et!==4&&(Et=2),tl===null?tl=[w]:tl.push(w),w=E;do{switch(w.tag){case 3:w.flags|=65536,a&=-a,w.lanes|=a;var $=zv(w,I,a);gv(w,$);break e;case 1:A=I;var F=w.type,U=w.stateNode;if((w.flags&128)===0&&(typeof F.getDerivedStateFromError=="function"||U!==null&&typeof U.componentDidCatch=="function"&&(vs===null||!vs.has(U)))){w.flags|=65536,a&=-a,w.lanes|=a;var ee=qv(w,A,a);gv(w,ee);break e}}w=w.return}while(w!==null)}Sy(u)}catch(je){a=je,Nt===u&&u!==null&&(Nt=u=u.return);continue}break}while(!0)}function jy(){var s=uu.current;return uu.current=su,s===null?su:s}function rp(){(Et===0||Et===3||Et===2)&&(Et=4),Mt===null||(li&268435455)===0&&(du&268435455)===0||bs(Mt,Lt)}function xu(s,a){var u=We;We|=2;var p=jy();(Mt!==s||Lt!==a)&&(Lr=null,ui(s,a));do try{NT();break}catch(x){by(s,x)}while(!0);if(gf(),We=u,uu.current=p,Nt!==null)throw Error(n(261));return Mt=null,Lt=0,Et}function NT(){for(;Nt!==null;)Ny(Nt)}function ST(){for(;Nt!==null&&!QE();)Ny(Nt)}function Ny(s){var a=Ey(s.alternate,s,jn);s.memoizedProps=s.pendingProps,a===null?Sy(s):Nt=a,Gf.current=null}function Sy(s){var a=s;do{var u=a.alternate;if(s=a.return,(a.flags&32768)===0){if(u=gT(u,a,jn),u!==null){Nt=u;return}}else{if(u=xT(u,a),u!==null){u.flags&=32767,Nt=u;return}
vendor: 4,823 bytes, line 40
40if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{Et=6,Nt=null;return}}if(a=a.sibling,a!==null){Nt=a;return}Nt=a=s}while(a!==null);Et===0&&(Et=5)}function di(s,a,u){var p=Ze,x=Rn.transition;try{Rn.transition=null,Ze=1,CT(s,a,u,p)}finally{Rn.transition=x,Ze=p}return null}function CT(s,a,u,p){do So();while(ys!==null);if((We&6)!==0)throw Error(n(327));u=s.finishedWork;var x=s.finishedLanes;if(u===null)return null;if(s.finishedWork=null,s.finishedLanes=0,u===s.current)throw Error(n(177));s.callbackNode=null,s.callbackPriority=0;var w=u.lanes|u.childLanes;if(ik(s,w),s===Mt&&(Nt=Mt=null,Lt=0),(u.subtreeFlags&2064)===0&&(u.flags&2064)===0||fu||(fu=!0,ky(bc,function(){return So(),null})),w=(u.flags&15990)!==0,(u.subtreeFlags&15990)!==0||w){w=Rn.transition,Rn.transition=null;var E=Ze;Ze=1;var A=We;We|=4,Gf.current=null,yT(s,u),py(u,s),Hk(nf),kc=!!tf,nf=tf=null,s.current=u,wT(u),YE(),We=A,Ze=E,Rn.transition=w}else s.current=u;if(fu&&(fu=!1,ys=s,pu=x),w=s.pendingLanes,w===0&&(vs=null),ZE(u.stateNode),fn(s,yt()),a!==null)for(p=s.onRecoverableError,u=0;u<a.length;u++)x=a[u],p(x.value,{componentStack:x.stack,digest:x.digest});if(hu)throw hu=!1,s=Xf,Xf=null,s;return(pu&1)!==0&&s.tag!==0&&So(),w=s.pendingLanes,(w&1)!==0?s===Jf?nl++:(nl=0,Jf=s):nl=0,ps(),null}function So(){if(ys!==null){var s=hx(pu),a=Rn.transition,u=Ze;try{if(Rn.transition=null,Ze=16>s?16:s,ys===null)var p=!1;else{if(s=ys,ys=null,pu=0,(We&6)!==0)throw Error(n(331));var x=We;for(We|=4,ge=s.current;ge!==null;){var w=ge,E=w.child;if((ge.flags&16)!==0){var A=w.deletions;if(A!==null){for(var I=0;I<A.length;I++){var z=A[I];for(ge=z;ge!==null;){var J=ge;switch(J.tag){case 0:case 11:case 15:Za(8,J,w)}var Z=J.child;if(Z!==null)Z.return=J,ge=Z;else for(;ge!==null;){J=ge;var X=J.sibling,fe=J.return;if(cy(J),J===z){ge=null;break}if(X!==null){X.return=fe,ge=X;break}ge=fe}}}var xe=w.alternate;if(xe!==null){var be=xe.child;if(be!==null){xe.child=null;do{var wt=be.sibling;be.sibling=null,be=wt}while(be!==null)}}ge=w}}if((w.subtreeFlags&2064)!==0&&E!==null)E.return=w,ge=E;else e:for(;ge!==null;){if(w=ge,(w.flags&2048)!==0)switch(w.tag){case 0:case 11:case 15:Za(9,w,w.return)}var $=w.sibling;if($!==null){$.return=w.return,ge=$;break e}ge=w.return}}var F=s.current;for(ge=F;ge!==null;){E=ge;var U=E.child;if((E.subtreeFlags&2064)!==0&&U!==null)U.return=E,ge=U;else e:for(E=F;ge!==null;){if(A=ge,(A.flags&2048)!==0)try{switch(A.tag){case 0:case 11:case 15:cu(9,A)}}catch(je){mt(A,A.return,je)}if(A===E){ge=null;break e}var ee=A.sibling;if(ee!==null){ee.return=A.return,ge=ee;break e}ge=A.return}}if(We=x,ps(),or&&typeof or.onPostCommitFiberRoot=="function")try{or.onPostCommitFiberRoot(jc,s)}catch{}p=!0}return p}finally{Ze=u,Rn.transition=a}}return!1}function Cy(s,a,u){a=wo(u,a),a=zv(s,a,1),s=gs(s,a,1),a=tn(),s!==null&&(_a(s,1,a),fn(s,a))}function mt(s,a,u){if(s.tag===3)Cy(s,s,u);else for(;a!==null;){if(a.tag===3){Cy(a,s,u);break}else if(a.tag===1){var p=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(vs===null||!vs.has(p))){s=wo(u,s),s=qv(a,s,1),a=gs(a,s,1),s=tn(),a!==null&&(_a(a,1,s),fn(a,s));break}}a=a.return}}function _T(s,a,u){var p=s.pingCache;p!==null&&p.delete(a),a=tn(),s.pingedLanes|=s.suspendedLanes&u,Mt===s&&(Lt&u)===u&&(Et===4||Et===3&&(Lt&130023424)===Lt&&500>yt()-Yf?ui(s,0):Qf|=u),fn(s,a)}function _y(s,a){a===0&&((s.mode&1)===0?a=1:(a=Sc,Sc<<=1,(Sc&130023424)===0&&(Sc=4194304)));var u=tn();s=Or(s,a),s!==null&&(_a(s,a,u),fn(s,u))}function ET(s){var a=s.memoizedState,u=0;a!==null&&(u=a.retryLane),_y(s,u)}function kT(s,a){var u=0;switch(s.tag){case 13:var p=s.stateNode,x=s.memoizedState;x!==null&&(u=x.retryLane);break;case 19:p=s.stateNode;break;default:throw Error(n(314))}p!==null&&p.delete(a),_y(s,u)}var Ey;Ey=function(s,a,u){if(s!==null)if(s.memoizedProps!==a.pendingProps||cn.current)dn=!0;else{if((s.lanes&u)===0&&(a.flags&128)===0)return dn=!1,mT(s,a,u);dn=(s.flags&131072)!==0}else dn=!1,ut&&(a.flags&1048576)!==0&&ov(a,Wc,a.index);switch(a.lanes=0,a.tag){case 2:var p=a.type;au(s,a),s=a.pendingProps;var x=ho(a,Ut.current);vo(a,u),x=Ef(null,a,p,s,x,u);var w=kf();return a.flags|=1,typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,un(p)?(w=!0,zc(a)):w=!1,a.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,wf(a),x.updater=iu,a.stateNode=x,x._reactInternals=a,Of(a,p,s,u),a=Ff(null,a,p,!0,w,u)):(a.tag=0,ut&&w&&uf(a),en(null,a,x,u),a=a.child),a;case 16:p=a.elementType;e:{switch(au(s,a),s=a.pendingProps,x=p._init,p=x(p._payload),a.type=p,x=a.tag=PT(p),s=Hn(p,s),x){case 0:a=Lf(null,a,p,s,u);break e;case 1:a=Zv(null,a,p,s,u);break e;case 11:a=Gv(null,a,p,s,u);break e;case 14:a=Qv(null,a,p,Hn(p.type,s),u);break e}throw Error(n(306,p,""))}return a;
vendor: 10,577 bytes, line 40
40case 0:return p=a.type,x=a.pendingProps,x=a.elementType===p?x:Hn(p,x),Lf(s,a,p,x,u);case 1:return p=a.type,x=a.pendingProps,x=a.elementType===p?x:Hn(p,x),Zv(s,a,p,x,u);case 3:e:{if(ey(a),s===null)throw Error(n(387));p=a.pendingProps,w=a.memoizedState,x=w.element,mv(s,a),Jc(a,p,null,u);var E=a.memoizedState;if(p=E.element,w.isDehydrated)if(w={element:p,isDehydrated:!1,cache:E.cache,pendingSuspenseBoundaries:E.pendingSuspenseBoundaries,transitions:E.transitions},a.updateQueue.baseState=w,a.memoizedState=w,a.flags&256){x=wo(Error(n(423)),a),a=ty(s,a,p,u,x);break e}else if(p!==x){x=wo(Error(n(424)),a),a=ty(s,a,p,u,x);break e}else for(bn=ds(a.stateNode.containerInfo.firstChild),wn=a,ut=!0,qn=null,u=fv(a,null,p,u),a.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(mo(),p===x){a=Ir(s,a,u);break e}en(s,a,p,u)}a=a.child}return a;case 5:return vv(a),s===null&&ff(a),p=a.type,x=a.pendingProps,w=s!==null?s.memoizedProps:null,E=x.children,rf(p,x)?E=null:w!==null&&rf(p,w)&&(a.flags|=32),Jv(s,a),en(s,a,E,u),a.child;case 6:return s===null&&ff(a),null;case 13:return ny(s,a,u);case 4:return bf(a,a.stateNode.containerInfo),p=a.pendingProps,s===null?a.child=go(a,null,p,u):en(s,a,p,u),a.child;case 11:return p=a.type,x=a.pendingProps,x=a.elementType===p?x:Hn(p,x),Gv(s,a,p,x,u);case 7:return en(s,a,a.pendingProps,u),a.child;case 8:return en(s,a,a.pendingProps.children,u),a.child;case 12:return en(s,a,a.pendingProps.children,u),a.child;case 10:e:{if(p=a.type._context,x=a.pendingProps,w=a.memoizedProps,E=x.value,st(Qc,p._currentValue),p._currentValue=E,w!==null)if(zn(w.value,E)){if(w.children===x.children&&!cn.current){a=Ir(s,a,u);break e}}else for(w=a.child,w!==null&&(w.return=a);w!==null;){var A=w.dependencies;if(A!==null){E=w.child;for(var I=A.firstContext;I!==null;){if(I.context===p){if(w.tag===1){I=Dr(-1,u&-u),I.tag=2;var z=w.updateQueue;if(z!==null){z=z.shared;var J=z.pending;J===null?I.next=I:(I.next=J.next,J.next=I),z.pending=I}}w.lanes|=u,I=w.alternate,I!==null&&(I.lanes|=u),vf(w.return,u,a),A.lanes|=u;break}I=I.next}}else if(w.tag===10)E=w.type===a.type?null:w.child;else if(w.tag===18){if(E=w.return,E===null)throw Error(n(341));E.lanes|=u,A=E.alternate,A!==null&&(A.lanes|=u),vf(E,u,a),E=w.sibling}else E=w.child;if(E!==null)E.return=w;else for(E=w;E!==null;){if(E===a){E=null;break}if(w=E.sibling,w!==null){w.return=E.return,E=w;break}E=E.return}w=E}en(s,a,x.children,u),a=a.child}return a;case 9:return x=a.type,p=a.pendingProps.children,vo(a,u),x=Tn(x),p=p(x),a.flags|=1,en(s,a,p,u),a.child;case 14:return p=a.type,x=Hn(p,a.pendingProps),x=Hn(p.type,x),Qv(s,a,p,x,u);case 15:return Yv(s,a,a.type,a.pendingProps,u);case 17:return p=a.type,x=a.pendingProps,x=a.elementType===p?x:Hn(p,x),au(s,a),a.tag=1,un(p)?(s=!0,zc(a)):s=!1,vo(a,u),$v(a,p,x),Of(a,p,x,u),Ff(null,a,p,!0,s,u);case 19:return sy(s,a,u);case 22:return Xv(s,a,u)}throw Error(n(156,a.tag))};function ky(s,a){return ax(s,a)}function TT(s,a,u,p){this.tag=s,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function An(s,a,u,p){return new TT(s,a,u,p)}function sp(s){return s=s.prototype,!(!s||!s.isReactComponent)}function PT(s){if(typeof s=="function")return sp(s)?1:0;if(s!=null){if(s=s.$$typeof,s===ce)return 11;if(s===Te)return 14}return 2}function js(s,a){var u=s.alternate;return u===null?(u=An(s.tag,a,s.key,s.mode),u.elementType=s.elementType,u.type=s.type,u.stateNode=s.stateNode,u.alternate=s,s.alternate=u):(u.pendingProps=a,u.type=s.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=s.flags&14680064,u.childLanes=s.childLanes,u.lanes=s.lanes,u.child=s.child,u.memoizedProps=s.memoizedProps,u.memoizedState=s.memoizedState,u.updateQueue=s.updateQueue,a=s.dependencies,u.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},u.sibling=s.sibling,u.index=s.index,u.ref=s.ref,u}function vu(s,a,u,p,x,w){var E=2;if(p=s,typeof s=="function")sp(s)&&(E=1);else if(typeof s=="string")E=5;else e:switch(s){case L:return hi(u.children,x,w,a);case M:E=8,x|=8;break;case G:return s=An(12,u,a,x|2),s.elementType=G,s.lanes=w,s;case se:return s=An(13,u,a,x),s.elementType=se,s.lanes=w,s;case ue:return s=An(19,u,a,x),s.elementType=ue,s.lanes=w,s;case re:return yu(u,x,w,a);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case H:E=10;break e;case ne:E=9;break e;case ce:E=11;break e;case Te:E=14;break e;case oe:E=16,p=null;break e}throw Error(n(130,s==null?s:typeof s,""))}return a=An(E,u,a,x),a.elementType=s,a.type=p,a.lanes=w,a}function hi(s,a,u,p){return s=An(7,s,p,a),s.lanes=u,s}function yu(s,a,u,p){return s=An(22,s,p,a),s.elementType=re,s.lanes=u,s.stateNode={isHidden:!1},s}function ip(s,a,u){return s=An(6,s,null,a),s.lanes=u,s}function op(s,a,u){return a=An(4,s.children!==null?s.children:[],s.key,a),a.lanes=u,a.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},a}function RT(s,a,u,p,x){this.tag=a,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ah(0),this.expirationTimes=Ah(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ah(0),this.identifierPrefix=p,this.onRecoverableError=x,this.mutableSourceEagerHydrationData=null}function ap(s,a,u,p,x,w,E,A,I){return s=new RT(s,a,u,A,I),a===1?(a=1,w===!0&&(a|=8)):a=0,w=An(3,null,null,a),s.current=w,w.stateNode=s,w.memoizedState={element:p,isDehydrated:u,cache:null,transitions:null,pendingSuspenseBoundaries:null},wf(w),s}function AT(s,a,u){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:P,key:p==null?null:""+p,children:s,containerInfo:a,implementation:u}}function Ty(s){if(!s)return fs;s=s._reactInternals;e:{if(ei(s)!==s||s.tag!==1)throw Error(n(170));var a=s;do{switch(a.tag){case 3:a=a.stateNode.context;break e;case 1:if(un(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}}a=a.return}while(a!==null);throw Error(n(171))}if(s.tag===1){var u=s.type;if(un(u))return rv(s,u,a)}return a}function Py(s,a,u,p,x,w,E,A,I){return s=ap(u,p,!0,s,x,w,E,A,I),s.context=Ty(null),u=s.current,p=tn(),x=ws(u),w=Dr(p,x),w.callback=a??null,gs(u,w,x),s.current.lanes=x,_a(s,x,p),fn(s,p),s}function wu(s,a,u,p){var x=a.current,w=tn(),E=ws(x);return u=Ty(u),a.context===null?a.context=u:a.pendingContext=u,a=Dr(w,E),a.payload={element:s},p=p===void 0?null:p,p!==null&&(a.callback=p),s=gs(x,a,E),s!==null&&(Gn(s,x,E,w),Xc(s,x,E)),E}function bu(s){if(s=s.current,!s.child)return null;switch(s.child.tag){case 5:return s.child.stateNode;default:return s.child.stateNode}}function Ry(s,a){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var u=s.retryLane;s.retryLane=u!==0&&u<a?u:a}}function lp(s,a){Ry(s,a),(s=s.alternate)&&Ry(s,a)}function MT(){return null}var Ay=typeof reportError=="function"?reportError:function(s){console.error(s)};function cp(s){this._internalRoot=s}ju.prototype.render=cp.prototype.render=function(s){var a=this._internalRoot;if(a===null)throw Error(n(409));wu(s,a,null,null)},ju.prototype.unmount=cp.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var a=s.containerInfo;ci(function(){wu(null,s,null,null)}),a[Pr]=null}};function ju(s){this._internalRoot=s}ju.prototype.unstable_scheduleHydration=function(s){if(s){var a=mx();s={blockedOn:null,target:s,priority:a};for(var u=0;u<ls.length&&a!==0&&a<ls[u].priority;u++);ls.splice(u,0,s),u===0&&vx(s)}};function up(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function Nu(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function My(){}function OT(s,a,u,p,x){if(x){if(typeof p=="function"){var w=p;p=function(){var z=bu(E);w.call(z)}}var E=Py(a,p,s,0,null,!1,!1,"",My);return s._reactRootContainer=E,s[Pr]=E.current,Ba(s.nodeType===8?s.parentNode:s),ci(),E}for(;x=s.lastChild;)s.removeChild(x);if(typeof p=="function"){var A=p;p=function(){var z=bu(I);A.call(z)}}var I=ap(s,0,!1,null,null,!1,!1,"",My);return s._reactRootContainer=I,s[Pr]=I.current,Ba(s.nodeType===8?s.parentNode:s),ci(function(){wu(a,I,u,p)}),I}function Su(s,a,u,p,x){var w=u._reactRootContainer;if(w){var E=w;if(typeof x=="function"){var A=x;x=function(){var I=bu(E);A.call(I)}}wu(a,E,s,x)}else E=OT(u,a,s,x,p);return bu(E)}fx=function(s){switch(s.tag){case 3:var a=s.stateNode;if(a.current.memoizedState.isDehydrated){var u=Ca(a.pendingLanes);u!==0&&(Mh(a,u|1),fn(a,yt()),(We&6)===0&&(No=yt()+500,ps()))}break;case 13:ci(function(){var p=Or(s,1);if(p!==null){var x=tn();Gn(p,s,1,x)}}),lp(s,1)}},Oh=function(s){if(s.tag===13){var a=Or(s,134217728);if(a!==null){var u=tn();Gn(a,s,134217728,u)}lp(s,134217728)}},px=function(s){if(s.tag===13){var a=ws(s),u=Or(s,a);if(u!==null){var p=tn();Gn(u,s,a,p)}lp(s,a)}},mx=function(){return Ze},gx=function(s,a){var u=Ze;try{return Ze=s,a()}finally{Ze=u}},_h=function(s,a,u){switch(a){case"input":if(dt(s,u),a=u.name,u.type==="radio"&&a!=null){for(u=s;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),a=0;a<u.length;a++){var p=u[a];if(p!==s&&p.form===s.form){var x=$c(p);if(!x)throw Error(n(90));Ie(p),dt(p,x)}}}break;case"textarea":H0(s,u);break;case"select":a=u.value,a!=null&&ss(s,!!u.multiple,a,!1)}},ex=tp,tx=ci;var DT={usingClientEntryPoint:!1,Events:[za,co,$c,J0,Z0,tp]},rl={findFiberByHostInstance:ti,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},IT={bundleType:rl.bundleType,version:rl.version,rendererPackageName:rl.rendererPackageName,rendererConfig:rl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:T.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=ix(s),s===null?null:s.stateNode},findFiberByHostInstance:rl.findFiberByHostInstance||MT,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cu.isDisabled&&Cu.supportsFiber)try{jc=Cu.inject(IT),or=Cu}catch{}}return pn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=DT,pn.createPortal=function(s,a){var u=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!up(a))throw Error(n(200));return AT(s,a,null,u)},pn.createRoot=function(s,a){if(!up(s))throw Error(n(299));var u=!1,p="",x=Ay;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(p=a.identifierPrefix),a.onRecoverableError!==void 0&&(x=a.onRecoverableError)),a=ap(s,1,!1,null,null,u,!1,p,x),s[Pr]=a.current,Ba(s.nodeType===8?s.parentNode:s),new cp(a)},pn.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var a=s._reactInternals;if(a===void 0)throw typeof s.render=="function"?Error(n(188)):(s=Object.keys(s).join(","),Error(n(268,s)));return s=ix(a),s=s===null?null:s.stateNode,s},pn.flushSync=function(s){return ci(s)},pn.hydrate=function(s,a,u){if(!Nu(a))throw Error(n(200));return Su(null,s,a,!0,u)},pn.hydrateRoot=function(s,a,u){if(!up(s))throw Error(n(405));var p=u!=null&&u.hydratedSources||null,x=!1,w="",E=Ay;if(u!=null&&(u.unstable_strictMode===!0&&(x=!0),u.identifierPrefix!==void 0&&(w=u.identifierPrefix),u.onRecoverableError!==void 0&&(E=u.onRecoverableError)),a=Py(a,null,s,1,u??null,x,!1,w,E),s[Pr]=a.current,Ba(s),p)for(s=0;s<p.length;s++)u=p[s],x=u._getVersion,x=x(u._source),a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[u,x]:a.mutableSourceEagerHydrationData.push(u,x);return new ju(a)},pn.render=function(s,a,u){if(!Nu(a))throw Error(n(200));return Su(null,s,a,!1,u)},pn.unmountComponentAtNode=function(s){if(!Nu(s))throw Error(n(40));return s._reactRootContainer?(ci(function(){Su(null,null,s,!1,function(){s._reactRootContainer=null,s[Pr]=null})}),!0):!1},pn.unstable_batchedUpdates=tp,pn.unstable_renderSubtreeIntoContainer=function(s,a,u,p){if(!Nu(u))throw Error(n(200));if(s==null||s._reactInternals===void 0)throw Error(n(38));return Su(s,a,u,!1,p)},pn.version="18.3.1-next-f1338f8080-20240426",pn}var Uy;function dj(){if(Uy)return pp.exports;Uy=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),pp.exports=WT(),pp.exports}var zy;function KT(){if(zy)return Eu;zy=1;var e=dj();return Eu.createRoot=e.createRoot,Eu.hydrateRoot=e.hydrateRoot,Eu}var GT=KT();const QT=pg(GT),YT=20,XT=1e6,Wr={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let xp=0;function JT(){return xp=(xp+1)%Number.MAX_VALUE,xp.toString()}const vp=new Map,qy=e=>{if(vp.has(e))return;const t=setTimeout(()=>{vp.delete(e),jl({type:Wr.REMOVE_TOAST,toastId:e})},XT);vp.set(e,t)},ZT=(e,t)=>{switch(t.type){case Wr.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,YT)};case Wr.UPDATE_TOAST:return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case Wr.DISMISS_TOAST:{const{toastId:n}=t;return n?qy(n):e.toasts.forEach(r=>{qy(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case Wr.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Hu=[];let Wu={toasts:[]};function jl(e){Wu=ZT(Wu,e),Hu.forEach(t=>{t(Wu)})}function eP({...e}){const t=JT(),n=o=>jl({type:Wr.UPDATE_TOAST,toast:{...o,id:t}}),r=()=>jl({type:Wr.DISMISS_TOAST,toastId:t});return jl({type:Wr.ADD_TOAST,toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function tP(){const[e,t]=y.useState(Wu);return y.useEffect(()=>(Hu.push(t),()=>{const n=Hu.indexOf(t);n>-1&&Hu.splice(n,1)}),[e]),{...e,toast:eP,dismiss:n=>jl({type:Wr.DISMISS_TOAST,toastId:n})}}function hj(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=hj(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function fj(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=hj(e))&&(r&&(r+=" "),r+=t);return r}const Hy=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Wy=fj,Md=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Wy(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:l}=t,c=Object.keys(o).map(f=>{const m=n==null?void 0:n[f],g=l==null?void 0:l[f];if(m===null)return null;const v=Hy(m)||Hy(g);return o[f][v]}),d=n&&Object.entries(n).reduce((f,m)=>{let[g,v]=m;return v===void 0||(f[g]=v),f},{}),h=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((f,m)=>{let{class:g,className:v,...N}=m;return Object.entries(N).every(j=>{let[b,C]=j;return Array.isArray(C)?C.includes({...l,...d}[b]):{...l,...d}[b]===C})?[...f,g,v]:f},[]);return Wy(e,c,h,n==null?void 0:n.class,n==null?void 0:n.className)};/**
41 * @license lucide-react v0.475.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const nP=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),pj=(...e)=>
vendor: 4,628 bytes, lines 45-100
45e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46 * @license lucide-react v0.475.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var rP={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
51 * @license lucide-react v0.475.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const sP=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:l,iconNode:c,...d},h)=>y.createElement("svg",{ref:h,...rP,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:pj("lucide",o),...d},[...c.map(([f,m])=>y.createElement(f,m)),...Array.isArray(l)?l:[l]]));/**
56 * @license lucide-react v0.475.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const we=(e,t)=>{const n=y.forwardRef(({className:r,...o},l)=>y.createElement(sP,{ref:l,iconNode:t,className:pj(`lucide-${nP(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
61 * @license lucide-react v0.475.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const iP=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Ky=we("Activity",iP);/**
66 * @license lucide-react v0.475.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const oP=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Od=we("ArrowLeft",oP);/**
71 * @license lucide-react v0.475.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const aP=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],lP=we("ArrowRight",aP);/**
76 * @license lucide-react v0.475.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
80 */const cP=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],uP=we("Bell",cP);/**
81 * @license lucide-react v0.475.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const dP=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],yp=we("Bot",dP);/**
86 * @license lucide-react v0.475.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const hP=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],zs=we("Briefcase",hP);/**
91 * @license lucide-react v0.475.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const fP=[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],xg=we("Building2",fP);/**
96 * @license lucide-react v0.475.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const pP=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]],mj=we("Building",pP);
100/**
101 * @license lucide-react v0.475.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const mP=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Dd=we("Calendar",mP);/**
106 * @license lucide-react v0.475.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const gP=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],xP=we("ChartColumn",gP);/**
111 * @license lucide-react v0.475.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const vP=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],vg=we("Check",vP);/**
116 * @license lucide-react v0.475.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const yP=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Xo=we("ChevronDown",yP);/**
121 * @license lucide-react v0.475.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const wP=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],bP=we("ChevronLeft",wP);/**
126 * @license lucide-react v0.475.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const jP=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],gj=we("ChevronRight",jP);/**
131 * @license lucide-react v0.475.0 - ISC
132 *
133 * This source code is licensed under the ISC license.
134 * See the LICENSE file in the root directory of this source tree.
135 */const NP=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Id=we("ChevronUp",NP);/**
136 * @license lucide-react v0.475.0 - ISC
137 *
138 * This source code is licensed under the ISC license.
139 * See the LICENSE file in the root directory of this source tree.
140 */const SP=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],CP=we("CircleAlert",SP);/**
141 * @license lucide-react v0.475.0 - ISC
142 *
143 * This source code is licensed under the ISC license.
144 * See the LICENSE file in the root directory of this source tree.
145 */const _P=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],sm=we("CircleCheckBig",_P);/**
146 * @license lucide-react v0.475.0 - ISC
147 *
148 * This source code is licensed under the ISC license.
149 * See the LICENSE file in the root directory of this source tree.
150 */const EP=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Nl=we("CircleCheck",EP);/**
151 * @license lucide-react v0.475.0 - ISC
152 *
153 * This source code is licensed under the ISC license.
154 * See the LICENSE file in the root directory of this source tree.
155 */const kP=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],TP=we("Circle",kP);/**
156 * @license lucide-react v0.475.0 - ISC
157 *
158 * This source code is licensed under the ISC license.
159 * See the LICENSE file in the root directory of this source tree.
160 */const PP=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Ql=we("Clock",PP);/**
161 * @license lucide-react v0.475.0 - ISC
162 *
163 * This source code is licensed under the ISC license.
164 * See the LICENSE file in the root directory of this source tree.
165 */const RP=[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]],Gy=we("Cookie",RP);/**
166 * @license lucide-react v0.475.0 - ISC
167 *
168 * This source code is licensed under the ISC license.
169 * See the LICENSE file in the root directory of this source tree.
170 */const AP=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Qy=we("Copy",AP);/**
171 * @license lucide-react v0.475.0 - ISC
172 *
173 * This source code is licensed under the ISC license.
174 * See the LICENSE file in the root directory of this source tree.
175 */const MP=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],Ld=we("DollarSign",MP);/**
176 * @license lucide-react v0.475.0 - ISC
177 *
178 * This source code is licensed under the ISC license.
179 * See the LICENSE file in the root directory of this source tree.
180 */const OP=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],yg=we("Download",OP);/**
181 * @license lucide-react v0.475.0 - ISC
182 *
183 * This source code is licensed under the ISC license.
184 * See the LICENSE file in the root directory of this source tree.
185 */const DP=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Fd=we("Eye",DP);/**
186 * @license lucide-react v0.475.0 - ISC
187 *
188 * This source code is licensed under the ISC license.
189 * See the LICENSE file in the root directory of this source tree.
190 */const IP=[["path",{d:"M2 20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8l-7 5V8l-7 5V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"159hny"}],["path",{d:"M17 18h1",key:"uldtlt"}],["path",{d:"M12 18h1",key:"s9uhes"}],["path",{d:"M7 18h1",key:"1neino"}]],LP=we("Factory",IP);/**
191 * @license lucide-react v0.475.0 - ISC
192 *
193 * This source code is licensed under the ISC license.
194 * See the LICENSE file in the root directory of this source tree.
195 */const FP=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]],VP=we("FileDown",FP);
195/**
196 * @license lucide-react v0.475.0 - ISC
197 *
198 * This source code is licensed under the ISC license.
199 * See the LICENSE file in the root directory of this source tree.
200 */const BP=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Tl=we("FileText",BP);/**
201 * @license lucide-react v0.475.0 - ISC
202 *
203 * This source code is licensed under the ISC license.
204 * See the LICENSE file in the root directory of this source tree.
205 */const $P=[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]],UP=we("Filter",$P);/**
206 * @license lucide-react v0.475.0 - ISC
207 *
208 * This source code is licensed under the ISC license.
209 * See the LICENSE file in the root directory of this source tree.
210 */const zP=[["path",{d:"M10 22v-6.57",key:"1wmca3"}],["path",{d:"M12 11h.01",key:"z322tv"}],["path",{d:"M12 7h.01",key:"1ivr5q"}],["path",{d:"M14 15.43V22",key:"1q2vjd"}],["path",{d:"M15 16a5 5 0 0 0-6 0",key:"o9wqvi"}],["path",{d:"M16 11h.01",key:"xkw8gn"}],["path",{d:"M16 7h.01",key:"1kdx03"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 7h.01",key:"1vti4s"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]],qP=we("Hotel",zP);/**
211 * @license lucide-react v0.475.0 - ISC
212 *
213 * This source code is licensed under the ISC license.
214 * See the LICENSE file in the root directory of this source tree.
215 */const HP=[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]],WP=we("ImagePlus",HP);/**
216 * @license lucide-react v0.475.0 - ISC
217 *
218 * This source code is licensed under the ISC license.
219 * See the LICENSE file in the root directory of this source tree.
220 */const KP=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],GP=we("Image",KP);/**
221 * @license lucide-react v0.475.0 - ISC
222 *
223 * This source code is licensed under the ISC license.
224 * See the LICENSE file in the root directory of this source tree.
225 */const QP=[["path",{d:"M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16",key:"tarvll"}]],YP=we("Laptop",QP);/**
226 * @license lucide-react v0.475.0 - ISC
227 *
228 * This source code is licensed under the ISC license.
229 * See the LICENSE file in the root directory of this source tree.
230 */const XP=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],JP=we("Lightbulb",XP);/**
231 * @license lucide-react v0.475.0 - ISC
232 *
233 * This source code is licensed under the ISC license.
234 * See the LICENSE file in the root directory of this source tree.
235 */const ZP=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Jo=we("LoaderCircle",ZP);/**
236 * @license lucide-react v0.475.0 - ISC
237 *
238 * This source code is licensed under the ISC license.
239 * See the LICENSE file in the root directory of this source tree.
240 */const eR=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],xj=we("LogOut",eR);/**
241 * @license lucide-react v0.475.0 - ISC
242 *
243 * This source code is licensed under the ISC license.
244 * See the LICENSE file in the root directory of this source tree.
245 */const tR=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]],Qs=we("Mail",tR);/**
246 * @license lucide-react v0.475.0 - ISC
247 *
248 * This source code is licensed under the ISC license.
249 * See the LICENSE file in the root directory of this source tree.
250 */const nR=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],la=we("MapPin",nR);/**
251 * @license lucide-react v0.475.0 - ISC
252 *
253 * This source code is licensed under the ISC license.
254 * See the LICENSE file in the root directory of this source tree.
255 */const rR=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],sR=we("Menu",rR);/**
256 * @license lucide-react v0.475.0 - ISC
257 *
258 * This source code is licensed under the ISC license.
259 * See the LICENSE file in the root directory of this source tree.
260 */const iR=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],oR=we("MessageCircle",iR);/**
261 * @license lucide-react v0.475.0 - ISC
262 *
263 * This source code is licensed under the ISC license.
264 * See the LICENSE file in the root directory of this source tree.
265 */const aR=[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]],qs=we("Phone",aR);/**
266 * @license lucide-react v0.475.0 - ISC
267 *
268 * This source code is licensed under the ISC license.
269 * See the LICENSE file in the root directory of this source tree.
270 */const lR=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],vj=we("Plus",lR);/**
271 * @license lucide-react v0.475.0 - ISC
272 *
273 * This source code is licensed under the ISC license.
274 * See the LICENSE file in the root directory of this source tree.
275 */const cR=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],uR=we("Save",cR);/**
276 * @license lucide-react v0.475.0 - ISC
277 *
278 * This source code is licensed under the ISC license.
279 * See the LICENSE file in the root directory of this source tree.
280 */const dR=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Yr=we("Search",dR);/**
281 * @license lucide-react v0.475.0 - ISC
282 *
283 * This source code is licensed under the ISC license.
284 * See the LICENSE file in the root directory of this source tree.
285 */const hR=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],yj=we("Send",hR);/**
286 * @license lucide-react v0.475.0 - ISC
287 *
288 * This source code is licensed under the ISC license.
289 * See the LICENSE file in the root directory of this source tree.
290 */const fR=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],pR=we("Settings",fR);/**
291 * @license lucide-react v0.475.0 - ISC
292 *
293 * This source code is licensed under the ISC license.
294 * See the LICENSE file in the root directory of this source tree.
295 */const mR=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
295y:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],gR=we("ShieldAlert",mR);/**
296 * @license lucide-react v0.475.0 - ISC
297 *
298 * This source code is licensed under the ISC license.
299 * See the LICENSE file in the root directory of this source tree.
300 */const xR=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],vR=we("Shield",xR);/**
301 * @license lucide-react v0.475.0 - ISC
302 *
303 * This source code is licensed under the ISC license.
304 * See the LICENSE file in the root directory of this source tree.
305 */const yR=[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]],wR=we("ShoppingBag",yR);/**
306 * @license lucide-react v0.475.0 - ISC
307 *
308 * This source code is licensed under the ISC license.
309 * See the LICENSE file in the root directory of this source tree.
310 */const bR=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],wj=we("SquarePen",bR);/**
311 * @license lucide-react v0.475.0 - ISC
312 *
313 * This source code is licensed under the ISC license.
314 * See the LICENSE file in the root directory of this source tree.
315 */const jR=[["path",{d:"M11 2v2",key:"1539x4"}],["path",{d:"M5 2v2",key:"1yf1q8"}],["path",{d:"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1",key:"rb5t3r"}],["path",{d:"M8 15a6 6 0 0 0 12 0v-3",key:"x18d4x"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]],NR=we("Stethoscope",jR);/**
316 * @license lucide-react v0.475.0 - ISC
317 *
318 * This source code is licensed under the ISC license.
319 * See the LICENSE file in the root directory of this source tree.
320 */const SR=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],CR=we("Tag",SR);/**
321 * @license lucide-react v0.475.0 - ISC
322 *
323 * This source code is licensed under the ISC license.
324 * See the LICENSE file in the root directory of this source tree.
325 */const _R=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],ER=we("Target",_R);/**
326 * @license lucide-react v0.475.0 - ISC
327 *
328 * This source code is licensed under the ISC license.
329 * See the LICENSE file in the root directory of this source tree.
330 */const kR=[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"8",cy:"12",r:"2",key:"1nvbw3"}]],TR=we("ToggleLeft",kR);/**
331 * @license lucide-react v0.475.0 - ISC
332 *
333 * This source code is licensed under the ISC license.
334 * See the LICENSE file in the root directory of this source tree.
335 */const PR=[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"16",cy:"12",r:"2",key:"4ma0v8"}]],RR=we("ToggleRight",PR);/**
336 * @license lucide-react v0.475.0 - ISC
337 *
338 * This source code is licensed under the ISC license.
339 * See the LICENSE file in the root directory of this source tree.
340 */const AR=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Wi=we("Trash2",AR);/**
341 * @license lucide-react v0.475.0 - ISC
342 *
343 * This source code is licensed under the ISC license.
344 * See the LICENSE file in the root directory of this source tree.
345 */const MR=[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]],OR=we("TrendingUp",MR);/**
346 * @license lucide-react v0.475.0 - ISC
347 *
348 * This source code is licensed under the ISC license.
349 * See the LICENSE file in the root directory of this source tree.
350 */const DR=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],cd=we("Upload",DR);/**
351 * @license lucide-react v0.475.0 - ISC
352 *
353 * This source code is licensed under the ISC license.
354 * See the LICENSE file in the root directory of this source tree.
355 */const IR=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}
vendor: 4,837 bytes, lines 355-375
355],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]],im=we("UserCheck",IR);/**
356 * @license lucide-react v0.475.0 - ISC
357 *
358 * This source code is licensed under the ISC license.
359 * See the LICENSE file in the root directory of this source tree.
360 */const LR=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],wg=we("User",LR);/**
361 * @license lucide-react v0.475.0 - ISC
362 *
363 * This source code is licensed under the ISC license.
364 * See the LICENSE file in the root directory of this source tree.
365 */const FR=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],Zo=we("Users",FR);/**
366 * @license lucide-react v0.475.0 - ISC
367 *
368 * This source code is licensed under the ISC license.
369 * See the LICENSE file in the root directory of this source tree.
370 */const VR=[["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["polyline",{points:"12 10 12 12 13 13",key:"19dquz"}],["path",{d:"m16.13 7.66-.81-4.05a2 2 0 0 0-2-1.61h-2.68a2 2 0 0 0-2 1.61l-.78 4.05",key:"18k57s"}],["path",{d:"m7.88 16.36.8 4a2 2 0 0 0 2 1.61h2.72a2 2 0 0 0 2-1.61l.81-4.05",key:"16ny36"}]],BR=we("Watch",VR);/**
371 * @license lucide-react v0.475.0 - ISC
372 *
373 * This source code is licensed under the ISC license.
374 * See the LICENSE file in the root directory of this source tree.
375 */const $R=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ki=we("X",$R),bg="-",UR=e=>{const t=qR(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:c=>{const d=c.split(bg);return d[0]===""&&d.length!==1&&d.shift(),bj(d,t)||zR(c)},getConflictingClassGroupIds:(c,d)=>{const h=n[c]||[];return d&&r[c]?[...h,...r[c]]:h}}},bj=(e,t)=>{var c;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?bj(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const l=e.join(bg);return(c=t.validators.find(({validator:d})=>d(l)))==null?void 0:c.classGroupId},Yy=/^\[(.+)\]$/,zR=e=>{if(Yy.test(e)){const t=Yy.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},qR=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)om(n[o],r,o,t);return r},om=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const l=o===""?t:Xy(t,o);l.classGroupId=n;return}if(typeof o=="function"){if(HR(o)){om(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([l,c])=>{om(c,Xy(t,l),n,r)})})},Xy=(e,t)=>{let n=e;return t.split(bg).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},HR=e=>e.isThemeGetter,WR=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(l,c)=>{n.set(l,c),t++,t>e&&(t=0,r=n,n=new Map)};return{get(l){let c=n.get(l);if(c!==void 0)return c;if((c=r.get(l))!==void 0)return o(l,c),c},set(l,c){n.has(l)?n.set(l,c):o(l,c)}}},am="!",lm=":",KR=lm.length,GR=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const l=[];let c=0,d=0,h=0,f;for(let j=0;j<o.length;j++){let b=o[j];if(c===0&&d===0){if(b===lm){l.push(o.slice(h,j)),h=j+KR;continue}if(b==="/"){f=j;continue}}b==="["?c++:b==="]"?c--:b==="("?d++:b===")"&&d--}const m=l.length===0?o:o.substring(h),g=QR(m),v=g!==m,N=f&&f>h?f-h:void 0;return{modifiers:l,hasImportantModifier:v,baseClassName:g,maybePostfixModifierPosition:N}};if(t){const o=t+lm,l=r;r=c=>c.startsWith(o)?l(c.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:c,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=l=>n({className:l,parseClassName:o})}return r},QR=e=>e.endsWith(am)?e.substring(0,e.length-1):e.startsWith(am)?e.substring(1):e,YR=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let l=[];return r.forEach(c=>{c[0]==="["||t[c]?(o.push(...l.sort(),c),l=[]):l.push(c)}),o.push(...l.sort()),o}},XR=e=>({cache:WR(e.cacheSize),parseClassName:GR(e),sortModifiers:YR(e),...UR(e)}),JR=/\s+/,ZR=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:l}=t,c=[],d=e.trim().split(JR);let h="";for(let f=d.length-1;f>=0;f-=1){const m=d[f],{isExternal:g,modifiers:v,hasImportantModifier:N,baseClassName:j,maybePostfixModifierPosition:b}=n(m);if(g){h=m+(h.length>0?" "+h:h);continue}let C=!!b,S=r(C?j.substring(0,b):j);if(!S){if(!C){h=m+(h.length>0?" "+h:h);continue}if(S=r(j),!S){h=m+(h.length>0?" "+h:h);continue}C=!1}const k=l(v).join(":"),_=N?k+am:k,T=_+S;if(c.includes(T))continue;c.push(T);const R=o(S,C);for(let P=0;P<R.length;++P){const L=R[P];c.push(_+L)}h=m+(h.length>0?" "+h:h)}return h};
vendor: 4,231 bytes, line 375
375function eA(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=jj(t))&&(r&&(r+=" "),r+=n);return r}const jj=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=jj(e[r]))&&(n&&(n+=" "),n+=t);return n};function tA(e,...t){let n,r,o,l=c;function c(h){const f=t.reduce((m,g)=>g(m),e());return n=XR(f),r=n.cache.get,o=n.cache.set,l=d,d(h)}function d(h){const f=r(h);if(f)return f;const m=ZR(h,n);return o(h,m),m}return function(){return l(eA.apply(null,arguments))}}const kt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Nj=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Sj=/^\((?:(\w[\w-]*):)?(.+)\)$/i,nA=/^\d+\/\d+$/,rA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,sA=/\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$/,iA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,oA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,aA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Co=e=>nA.test(e),$e=e=>!!e&&!Number.isNaN(Number(e)),Ss=e=>!!e&&Number.isInteger(Number(e)),wp=e=>e.endsWith("%")&&$e(e.slice(0,-1)),Fr=e=>rA.test(e),lA=()=>!0,cA=e=>sA.test(e)&&!iA.test(e),Cj=()=>!1,uA=e=>oA.test(e),dA=e=>aA.test(e),hA=e=>!ve(e)&&!ye(e),fA=e=>ca(e,kj,Cj),ve=e=>Nj.test(e),fi=e=>ca(e,Tj,cA),bp=e=>ca(e,vA,$e),Jy=e=>ca(e,_j,Cj),pA=e=>ca(e,Ej,dA),ku=e=>ca(e,Pj,uA),ye=e=>Sj.test(e),il=e=>ua(e,Tj),mA=e=>ua(e,yA),Zy=e=>ua(e,_j),gA=e=>ua(e,kj),xA=e=>ua(e,Ej),Tu=e=>ua(e,Pj,!0),ca=(e,t,n)=>{const r=Nj.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ua=(e,t,n=!1)=>{const r=Sj.exec(e);return r?r[1]?t(r[1]):n:!1},_j=e=>e==="position"||e==="percentage",Ej=e=>e==="image"||e==="url",kj=e=>e==="length"||e==="size"||e==="bg-size",Tj=e=>e==="length",vA=e=>e==="number",yA=e=>e==="family-name",Pj=e=>e==="shadow",wA=()=>{const e=kt("color"),t=kt("font"),n=kt("text"),r=kt("font-weight"),o=kt("tracking"),l=kt("leading"),c=kt("breakpoint"),d=kt("container"),h=kt("spacing"),f=kt("radius"),m=kt("shadow"),g=kt("inset-shadow"),v=kt("text-shadow"),N=kt("drop-shadow"),j=kt("blur"),b=kt("perspective"),C=kt("aspect"),S=kt("ease"),k=kt("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[...T(),ye,ve],P=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto","contain","none"],M=()=>[ye,ve,h],G=()=>[Co,"full","auto",...M()],H=()=>[Ss,"none","subgrid",ye,ve],ne=()=>["auto",{span:["full",Ss,ye,ve]},Ss,ye,ve],ce=()=>[Ss,"auto",ye,ve],se=()=>["auto","min","max","fr",ye,ve],ue=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Te=()=>["start","end","center","stretch","center-safe","end-safe"],oe=()=>["auto",...M()],re=()=>[Co,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],B=()=>[e,ye,ve],K=()=>[...T(),Zy,Jy,{position:[ye,ve]}],Y=()=>["no-repeat",{repeat:["","x","y","space","round"]}],D=()=>["auto","cover","contain",gA,fA,{size:[ye,ve]}],W=()=>[wp,il,fi],de=()=>["","none","full",f,ye,ve],he=()=>["",$e,il,fi],Pe=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>[$e,wp,Zy,Jy],me=()=>["","none",j,ye,ve],Se=()=>["none",$e,ye,ve],Re=()=>["none",$e,ye,ve],Le=()=>[$e,ye,ve],Ie=()=>[Co,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Fr],breakpoint:[Fr],color:[lA],container:[Fr],"drop-shadow":[Fr],ease:["in","out","in-out"],font:[hA],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Fr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Fr],shadow:[Fr],spacing:["px",$e],text:[Fr],"text-shadow":[Fr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Co,ve,ye,C]}
vendor: 5,651 bytes, line 375
375],container:["container"],columns:[{columns:[$e,ve,ye,d]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:R()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{start:G()}],end:[{end:G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[Ss,"auto",ye,ve]}],basis:[{basis:[Co,"full","auto",d,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[$e,Co,"auto","initial","none",ve]}],grow:[{grow:["",$e,ye,ve]}],shrink:[{shrink:["",$e,ye,ve]}],order:[{order:[Ss,"first","last","none",ye,ve]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":ce()}],"col-end":[{"col-end":ce()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":ce()}],"row-end":[{"row-end":ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":se()}],"auto-rows":[{"auto-rows":se()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...ue(),"normal"]}],"justify-items":[{"justify-items":[...Te(),"normal"]}],"justify-self":[{"justify-self":["auto",...Te()]}],"align-content":[{content:["normal",...ue()]}],"align-items":[{items:[...Te(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Te(),{baseline:["","last"]}]}],"place-content":[{"place-content":ue()}],"place-items":[{"place-items":[...Te(),"baseline"]}],"place-self":[{"place-self":["auto",...Te()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:oe()}],mx:[{mx:oe()}],my:[{my:oe()}],ms:[{ms:oe()}],me:[{me:oe()}],mt:[{mt:oe()}],mr:[{mr:oe()}],mb:[{mb:oe()}],ml:[{ml:oe()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:re()}],w:[{w:[d,"screen",...re()]}],"min-w":[{"min-w":[d,"screen","none",...re()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...re()]}],h:[{h:["screen","lh",...re()]}],"min-h":[{"min-h":["screen","lh","none",...re()]}],"max-h":[{"max-h":["screen","lh",...re()]}],"font-size":[{text:["base",n,il,fi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ye,bp]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",wp,ve]}],"font-family":[{font:[mA,ve,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ye,ve]}],"line-clamp":[{"line-clamp":[$e,"none",ye,bp]}],leading:[{leading:[l,...M()]}],"list-image":[{"list-image":["none",ye,ve]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ye,ve]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Pe(),"wavy"]}],"text-decoration-thickness":[{decoration:[$e,"from-font","auto",ye,fi]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[$e,"auto",ye,ve]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ye,ve]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ye,ve]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:K()}],"bg-repeat":[{bg:Y()}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ss,ye,ve],radial:["",ye,ve],conic:[Ss,ye,ve]},xA,pA]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:W()}
375],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:de()}],"rounded-s":[{"rounded-s":de()}],"rounded-e":[{"rounded-e":de()}],"rounded-t":[{"rounded-t":de()}],"rounded-r":[{"rounded-r":de()}],"rounded-b":[{"rounded-b":de()}],"rounded-l":[{"rounded-l":de()}],"rounded-ss":[{"rounded-ss":de()}],"rounded-se":[{"rounded-se":de()}],"rounded-ee":[{"rounded-ee":de()}],"rounded-es":[{"rounded-es":de()}],"rounded-tl":[{"rounded-tl":de()}],"rounded-tr":[{"rounded-tr":de()}],"rounded-br":[{"rounded-br":de()}],"rounded-bl":[{"rounded-bl":de()}],"border-w":[{border:he()}],"border-w-x":[{"border-x":he()}],"border-w-y":[{"border-y":he()}],"border-w-s":[{"border-s":he()}],"border-w-e":[{"border-e":he()}],"border-w-t":[{"border-t":he()}],"border-w-r":[{"border-r":he()}],"border-w-b":[{"border-b":he()}],"border-w-l":[{"border-l":he()}],"divide-x":[{"divide-x":he()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":he()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Pe(),"hidden","none"]}],"divide-style":[{divide:[...Pe(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}
vendor: 5,737 bytes, line 375
375],"divide-color":[{divide:B()}],"outline-style":[{outline:[...Pe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[$e,ye,ve]}],"outline-w":[{outline:["",$e,il,fi]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",m,Tu,ku]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",g,Tu,ku]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[$e,fi]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":he()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",v,Tu,ku]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[$e,ye,ve]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[$e]}],"mask-image-linear-from-pos":[{"mask-linear-from":Q()}],"mask-image-linear-to-pos":[{"mask-linear-to":Q()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":Q()}],"mask-image-t-to-pos":[{"mask-t-to":Q()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":Q()}],"mask-image-r-to-pos":[{"mask-r-to":Q()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":Q()}],"mask-image-b-to-pos":[{"mask-b-to":Q()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":Q()}],"mask-image-l-to-pos":[{"mask-l-to":Q()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":Q()}],"mask-image-x-to-pos":[{"mask-x-to":Q()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":Q()}],"mask-image-y-to-pos":[{"mask-y-to":Q()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[ye,ve]}],"mask-image-radial-from-pos":[{"mask-radial-from":Q()}],"mask-image-radial-to-pos":[{"mask-radial-to":Q()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":T()}],"mask-image-conic-pos":[{"mask-conic":[$e]}],"mask-image-conic-from-pos":[{"mask-conic-from":Q()}],"mask-image-conic-to-pos":[{"mask-conic-to":Q()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:K()}],"mask-repeat":[{mask:Y()}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ye,ve]}],filter:[{filter:["","none",ye,ve]}],blur:[{blur:me()}],brightness:[{brightness:[$e,ye,ve]}],contrast:[{contrast:[$e,ye,ve]}],"drop-shadow":[{"drop-shadow":["","none",N,Tu,ku]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",$e,ye,ve]}],"hue-rotate":[{"hue-rotate":[$e,ye,ve]}],invert:[{invert:["",$e,ye,ve]}],saturate:[{saturate:[$e,ye,ve]}],sepia:[{sepia:["",$e,ye,ve]}],"backdrop-filter":[{"backdrop-filter":["","none",ye,ve]}],"backdrop-blur":[{"backdrop-blur":me()}],"backdrop-brightness":[{"backdrop-brightness":[$e,ye,ve]}],"backdrop-contrast":[{"backdrop-contrast":[$e,ye,ve]}],"backdrop-grayscale":[{"backdrop-grayscale":["",$e,ye,ve]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[$e,ye,ve]}],"backdrop-invert":[{"backdrop-invert":["",$e,ye,ve]}],"backdrop-opacity":[{"backdrop-opacity":[$e,ye,ve]}],"backdrop-saturate":[{"backdrop-saturate":[$e,ye,ve]}],"backdrop-sepia":[{"backdrop-sepia":["",$e,ye,ve]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ye,ve]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[$e,"initial",ye,ve]}],ease:[{ease:["linear","initial",S,ye,ve]}],delay:[{delay:[$e,ye,ve]}],animate:[{animate:["none",k,ye,ve]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,ye,ve]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:Se()}],"rotate-x":[{"rotate-x":Se()}],"rotate-y":[{"rotate-y":Se()}],"rotate-z":[{"rotate-z":Se()}],scale:[{scale:Re()}],"scale-x":[{"scale-x":Re()}],"scale-y":[{"scale-y":Re()}],"scale-z":[{"scale-z":Re()}],"scale-3d":["scale-3d"],skew:[{skew:Le()}],"skew-x":[{"skew-x":Le()}],"skew-y":[{"skew-y":Le()}],transform:[{transform:[ye,ve,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ie()}],"translate-x":[{"translate-x":Ie()}],"translate-y":[{"translate-y":Ie()}],"translate-z":[{"translate-z":Ie()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}
vendor: 6,493 bytes, line 375
375],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ye,ve]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","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",ye,ve]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[$e,il,fi,bp]}],stroke:[{stroke:["none",...B()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},bA=tA(wA);function Oe(...e){return bA(fj(e))}const Rj=y.forwardRef(({...e},t)=>i.jsx("div",{ref:t,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...e}));Rj.displayName="ToastProvider";const Aj=y.forwardRef(({...e},t)=>i.jsx("div",{ref:t,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...e}));Aj.displayName="ToastViewport";const jA=Md("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Mj=y.forwardRef(({className:e,variant:t,...n},r)=>i.jsx("div",{ref:r,className:Oe(jA({variant:t}),e),...n}));Mj.displayName="Toast";const NA=y.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:Oe("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));
375NA.displayName="ToastAction";const Oj=y.forwardRef(({className:e,...t},n)=>i.jsx("button",{ref:n,className:Oe("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:i.jsx(Ki,{className:"h-4 w-4"})}));Oj.displayName="ToastClose";const Dj=y.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:Oe("text-sm font-semibold",e),...t}));Dj.displayName="ToastTitle";const Ij=y.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:Oe("text-sm opacity-90",e),...t}));Ij.displayName="ToastDescription";function SA(){const{toasts:e}=tP();return i.jsxs(Rj,{children:[e.map(function({id:t,title:n,description:r,action:o,...l}){return i.jsxs(Mj,{...l,children:[i.jsxs("div",{className:"grid gap-1",children:[n&&i.jsx(Dj,{children:n}),r&&i.jsx(Ij,{children:r})]}),o,i.jsx(Oj,{})]},t)}),i.jsx(Aj,{})]})}var da=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},CA={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ts,fg,Z1,_A=(Z1=class{constructor(){_e(this,Ts,CA);_e(this,fg,!1)}setTimeoutProvider(e){le(this,Ts,e)}setTimeout(e,t){return O(this,Ts).setTimeout(e,t)}clearTimeout(e){O(this,Ts).clearTimeout(e)}setInterval(e,t){return O(this,Ts).setInterval(e,t)}clearInterval(e){O(this,Ts).clearInterval(e)}},Ts=new WeakMap,fg=new WeakMap,Z1),wi=new _A;function EA(e){setTimeout(e,0)}var Di=typeof window>"u"||"Deno"in globalThis;function sn(){}function kA(e,t){return typeof e=="function"?e(t):e}function cm(e){return typeof e=="number"&&e>=0&&e!==1/0}function Lj(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Vs(e,t){return typeof e=="function"?e(t):e}function Ln(e,t){return typeof e=="function"?e(t):e}function ew(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:l,queryKey:c,stale:d}=e;if(c){if(r){if(t.queryHash!==jg(c,t.options))return!1}else if(!Pl(t.queryKey,c))return!1}if(n!=="all"){const h=t.isActive();if(n==="active"&&!h||n==="inactive"&&h)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||o&&o!==t.state.fetchStatus||l&&!l(t))}function tw(e,t){const{exact:n,status:r,predicate:o,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(Ii(t.options.mutationKey)!==Ii(l))return!1}else if(!Pl(t.options.mutationKey,l))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function jg(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ii)(e)}function Ii(e){return JSON.stringify(e,(t,n)=>um(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Pl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Pl(e[n],t[n])):!1}var TA=Object.prototype.hasOwnProperty;function Fj(e,t){if(e===t)return e;const n=nw(e)&&nw(t);if(!n&&!(um(e)&&um(t)))return t;const o=(n?e:Object.keys(e)).length,l=n?t:Object.keys(t),c=l.length,d=n?new Array(c):{};let h=0;for(let f=0;f<c;f++){const m=n?f:l[f],g=e[m],v=t[m];if(g===v){d[m]=g,(n?f<o:TA.call(e,m))&&h++;continue}if(g===null||v===null||typeof g!="object"||typeof v!="object"){d[m]=v;continue}const N=Fj(g,v);d[m]=N,N===g&&h++}return o===c&&h===o?e:d}function ud(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function nw(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function um(e){if(!rw(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!rw(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function rw(e){return Object.prototype.toString.call(e)==="[object Object]"}function PA(e){return new Promise(t=>{wi.setTimeout(t,e)})}function dm(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Fj(e,t):t}function RA(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function AA(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ng=Symbol();function Vj(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Ng?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Bj(e,t){return typeof e=="function"?e(...t):!!e}var Ni,Ps,Vo,ej,MA=(ej=class extends da{constructor(){super();_e(this,Ni);_e(this,Ps);_e(this,Vo);le(this,Vo,t=>{if(!Di&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){O(this,Ps)||this.setEventListener(O(this,Vo))}onUnsubscribe(){var t;this.hasListeners()||((t=O(this,Ps))==null||t.call(this),le(this,Ps,void 0))}setEventListener(t){var n;le(this,Vo,t),(n=O(this,Ps))==null||n.call(this),le(this,Ps,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){O(this,Ni)!==t&&(le(this,Ni,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 5,022 bytes, line 375
375this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof O(this,Ni)=="boolean"?O(this,Ni):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ni=new WeakMap,Ps=new WeakMap,Vo=new WeakMap,ej),Sg=new MA;function hm(){let e,t;const n=new Promise((o,l)=>{e=o,t=l});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var OA=EA;function DA(){let e=[],t=0,n=d=>{d()},r=d=>{d()},o=OA;const l=d=>{t?e.push(d):o(()=>{n(d)})},c=()=>{const d=e;e=[],d.length&&o(()=>{r(()=>{d.forEach(h=>{n(h)})})})};return{batch:d=>{let h;t++;try{h=d()}finally{t--,t||c()}return h},batchCalls:d=>(...h)=>{l(()=>{d(...h)})},schedule:l,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{r=d},setScheduler:d=>{o=d}}}var Tt=DA(),Bo,Rs,$o,tj,IA=(tj=class extends da{constructor(){super();_e(this,Bo,!0);_e(this,Rs);_e(this,$o);le(this,$o,t=>{if(!Di&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){O(this,Rs)||this.setEventListener(O(this,$o))}onUnsubscribe(){var t;this.hasListeners()||((t=O(this,Rs))==null||t.call(this),le(this,Rs,void 0))}setEventListener(t){var n;le(this,$o,t),(n=O(this,Rs))==null||n.call(this),le(this,Rs,t(this.setOnline.bind(this)))}setOnline(t){O(this,Bo)!==t&&(le(this,Bo,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return O(this,Bo)}},Bo=new WeakMap,Rs=new WeakMap,$o=new WeakMap,tj),dd=new IA;function LA(e){return Math.min(1e3*2**e,3e4)}function $j(e){return(e??"online")==="online"?dd.isOnline():!0}var fm=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Uj(e){let t=!1,n=0,r;const o=hm(),l=()=>o.status!=="pending",c=b=>{var C;if(!l()){const S=new fm(b);v(S),(C=e.onCancel)==null||C.call(e,S)}},d=()=>{t=!0},h=()=>{t=!1},f=()=>Sg.isFocused()&&(e.networkMode==="always"||dd.isOnline())&&e.canRun(),m=()=>$j(e.networkMode)&&e.canRun(),g=b=>{l()||(r==null||r(),o.resolve(b))},v=b=>{l()||(r==null||r(),o.reject(b))},N=()=>new Promise(b=>{var C;r=S=>{(l()||f())&&b(S)},(C=e.onPause)==null||C.call(e)}).then(()=>{var b;r=void 0,l()||(b=e.onContinue)==null||b.call(e)}),j=()=>{if(l())return;let b;const C=n===0?e.initialPromise:void 0;try{b=C??e.fn()}catch(S){b=Promise.reject(S)}Promise.resolve(b).then(g).catch(S=>{var P;if(l())return;const k=e.retry??(Di?0:3),_=e.retryDelay??LA,T=typeof _=="function"?_(n,S):_,R=k===!0||typeof k=="number"&&n<k||typeof k=="function"&&k(n,S);if(t||!R){v(S);return}n++,(P=e.onFail)==null||P.call(e,n,S),PA(T).then(()=>f()?void 0:N()).then(()=>{t?v(S):j()})})};return{promise:o,status:()=>o.status,cancel:c,continue:()=>(r==null||r(),o),cancelRetry:d,continueRetry:h,canStart:m,start:()=>(m()?j():N().then(j),o)}}var Si,nj,zj=(nj=class{constructor(){_e(this,Si)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),cm(this.gcTime)&&le(this,Si,wi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Di?1/0:300*1e3))}clearGcTimeout(){O(this,Si)&&(wi.clearTimeout(O(this,Si)),le(this,Si,void 0))}},Si=new WeakMap,nj),Ci,Uo,In,_i,Dt,ql,Ei,Xn,Vr,rj,FA=(rj=class extends zj{constructor(t){super();_e(this,Xn);_e(this,Ci);_e(this,Uo);_e(this,In);_e(this,_i);_e(this,Dt);_e(this,ql);_e(this,Ei);le(this,Ei,!1),le(this,ql,t.defaultOptions),this.setOptions(t.options),this.observers=[],le(this,_i,t.client),le(this,In,O(this,_i).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,le(this,Ci,sw(this.options)),this.state=t.state??O(this,Ci),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=O(this,Dt))==null?void 0:t.promise}setOptions(t){if(this.options={...O(this,ql),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=sw(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),le(this,Ci,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&O(this,In).remove(this)}setData(t,n){const r=dm(this.state.data,t,this.options);return Fe(this,Xn,Vr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Fe(this,Xn,Vr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=O(this,Dt))==null?void 0:r.promise;return(o=O(this,Dt))==null||o.cancel(t),n?n.then(sn).catch(sn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(O(this,Ci))}isActive(){return this.observers.some(t=>Ln(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ng||this.state.dataUpdateCount+this.state.errorUpdate
375Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Vs(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Lj(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=O(this,Dt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=O(this,Dt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),O(this,In).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(O(this,Dt)&&(O(this,Ei)?O(this,Dt).cancel({revert:!0}):O(this,Dt).cancelRetry()),this.scheduleGc()),O(this,In).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Fe(this,Xn,Vr).call(this,{type:"invalidate"})}async fetch(t,n){var h,f,m,g,v,N,j,b,C,S,k,_;if(this.state.fetchStatus!=="idle"&&((h=O(this,Dt))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(O(this,Dt))return O(this,Dt).continueRetry(),O(this,Dt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const T=this.observers.find(R=>R.options.queryFn);T&&this.setOptions(T.options)}const r=new AbortController,o=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(le(this,Ei,!0),r.signal)})},l=()=>{const T=Vj(this.options,n),P=(()=>{const L={client:O(this,_i),queryKey:this.queryKey,meta:this.meta};return o(L),L})();return le(this,Ei,!1),this.options.persister?this.options.persister(T,P,this):T(P)},d=(()=>{const T={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:O(this,_i),state:this.state,fetchFn:l};return o(T),T})();(f=this.options.behavior)==null||f.onFetch(d,this),le(this,Uo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=d.fetchOptions)==null?void 0:m.meta))&&Fe(this,Xn,Vr).call(this,{type:"fetch",meta:(g=d.fetchOptions)==null?void 0:g.meta}),le(this,Dt,Uj({initialPromise:n==null?void 0:n.initialPromise,fn:d.fetchFn,onCancel:T=>{T instanceof fm&&T.revert&&this.setState({...O(this,Uo),fetchStatus:"idle"}),r.abort()},onFail:(T,R)=>{Fe(this,Xn,Vr).call(this,{type:"failed",failureCount:T,error:R})},onPause:()=>{Fe(this,Xn,Vr).call(this,{type:"pause"})},onContinue:()=>{Fe(this,Xn,Vr).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0}));try{const T=await O(this,Dt).start();if(T===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(T),(N=(v=O(this,In).config).onSuccess)==null||N.call(v,T,this),(b=(j=O(this,In).config).onSettled)==null||b.call(j,T,this.state.error,this),T}catch(T){if(T instanceof fm){if(T.silent)return O(this,Dt).promise;if(T.revert){if(this.state.data===void 0)throw T;return this.state.data}}throw Fe(this,Xn,Vr).call(this,{type:"error",error:T}),(S=(C=O(this,In).config).onError)==null||S.call(C,T,this),(_=(k=O(this,In).config).onSettled)==null||_.call(k,this.state.data,T,this),T}finally{this.scheduleGc()}}},Ci=new WeakMap,Uo=new WeakMap,In=new WeakMap,_i=new WeakMap,Dt=new WeakMap,ql=new WeakMap,Ei=new WeakMap,Xn=new WeakSet,Vr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...qj(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return le(this,Uo,t.manual?o:void 0),o;case"error":const l=t.error;
vendor: 13,778 bytes, line 375
375return{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Tt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),O(this,In).notify({query:this,type:"updated",action:t})})},rj);function qj(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:$j(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function sw(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var mn,He,Hl,nn,ki,zo,Ur,As,Wl,qo,Ho,Ti,Pi,Ms,Wo,Je,dl,pm,mm,gm,xm,vm,ym,wm,Hj,sj,VA=(sj=class extends da{constructor(t,n){super();_e(this,Je);_e(this,mn);_e(this,He);_e(this,Hl);_e(this,nn);_e(this,ki);_e(this,zo);_e(this,Ur);_e(this,As);_e(this,Wl);_e(this,qo);_e(this,Ho);_e(this,Ti);_e(this,Pi);_e(this,Ms);_e(this,Wo,new Set);this.options=n,le(this,mn,t),le(this,As,null),le(this,Ur,hm()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(O(this,He).addObserver(this),iw(O(this,He),this.options)?Fe(this,Je,dl).call(this):this.updateResult(),Fe(this,Je,xm).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return bm(O(this,He),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return bm(O(this,He),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Fe(this,Je,vm).call(this),Fe(this,Je,ym).call(this),O(this,He).removeObserver(this)}setOptions(t){const n=this.options,r=O(this,He);if(this.options=O(this,mn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ln(this.options.enabled,O(this,He))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Fe(this,Je,wm).call(this),O(this,He).setOptions(this.options),n._defaulted&&!ud(this.options,n)&&O(this,mn).getQueryCache().notify({type:"observerOptionsUpdated",query:O(this,He),observer:this});const o=this.hasListeners();o&&ow(O(this,He),r,this.options,n)&&Fe(this,Je,dl).call(this),this.updateResult(),o&&(O(this,He)!==r||Ln(this.options.enabled,O(this,He))!==Ln(n.enabled,O(this,He))||Vs(this.options.staleTime,O(this,He))!==Vs(n.staleTime,O(this,He)))&&Fe(this,Je,pm).call(this);const l=Fe(this,Je,mm).call(this);o&&(O(this,He)!==r||Ln(this.options.enabled,O(this,He))!==Ln(n.enabled,O(this,He))||l!==O(this,Ms))&&Fe(this,Je,gm).call(this,l)}getOptimisticResult(t){const n=O(this,mn).getQueryCache().build(O(this,mn),t),r=this.createResult(n,t);return $A(this,r)&&(le(this,nn,r),le(this,zo,this.options),le(this,ki,O(this,He).state)),r}getCurrentResult(){return O(this,nn)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&!this.options.experimental_prefetchInRender&&O(this,Ur).status==="pending"&&O(this,Ur).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,o))})}trackProp(t){O(this,Wo).add(t)}getCurrentQuery(){return O(this,He)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=O(this,mn).defaultQueryOptions(t),r=O(this,mn).getQueryCache().build(O(this,mn),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Fe(this,Je,dl).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),O(this,nn)))}createResult(t,n){var G;const r=O(this,He),o=this.options,l=O(this,nn),c=O(this,ki),d=O(this,zo),f=t!==r?t.state:O(this,Hl),{state:m}=t;let g={...m},v=!1,N;if(n._optimisticResults){const H=this.hasListeners(),ne=!H&&iw(t,n),ce=H&&ow(t,r,n,o);(ne||ce)&&(g={...g,...qj(m.data,t.options)}),n._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:j,errorUpdatedAt:b,status:C}=g;N=g.data;let S=!1;if(n.placeholderData!==void 0&&N===void 0&&C==="pending"){let H;l!=null&&l.isPlaceholderData&&n.placeholderData===(d==null?void 0:d.placeholderData)?(H=l.data,S=!0):H=typeof n.placeholderData=="function"?n.placeholderData((G=O(this,Ho))==null?void 0:G.state.data,O(this,Ho)):n.placeholderData,H!==void 0&&(C="success",N=dm(l==null?void 0:l.data,H,n),v=!0)}if(n.select&&N!==void 0&&!S)if(l&&N===(c==null?void 0:c.data)&&n.select===O(this,Wl))N=O(this,qo);else try{le(this,Wl,n.select),N=n.select(N),N=dm(l==null?void 0:l.data,N,n),le(this,qo,N),le(this,As,null)}catch(H){le(this,As,H)}O(this,As)&&(j=O(this,As),N=O(this,qo),b=Date.now(),C="error");const k=g.fetchStatus==="fetching",_=C==="pending",T=C==="error",R=_&&k,P=N!==void 0,M={status:C,fetchStatus:g.fetchStatus,isPending:_,isSuccess:C==="success",isError:T,isInitialLoading:R,isLoading:R,data:N,dataUpdatedAt:g.dataUpdatedAt,error:j,errorUpdatedAt:b,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>f.dataUpdateCount||g.errorUpdateCount>f.errorUpdateCount,isFetching:k,isRefetching:k&&!_,isLoadingError:T&&!P,isPaused:g.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:T&&P,isStale:Cg(t,n),refetch:this.refetch,promise:O(this,Ur),isEnabled:Ln(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const H=se=>{M.status==="error"?se.reject(M.error):M.data!==void 0&&se.resolve(M.data)},ne=()=>{const se=le(this,Ur,M.promise=hm());H(se)},ce=O(this,Ur);switch(ce.status){case"pending":t.queryHash===r.queryHash&&H(ce);break;case"fulfilled":(M.status==="error"||M.data!==ce.value)&&ne();break;case"rejected":(M.status!=="error"||M.error!==ce.reason)&&ne();break}}return M}updateResult(){const t=O(this,nn),n=this.createResult(O(this,He),this.options);if(le(this,ki,O(this,He).state),le(this,zo,this.options),O(this,ki).data!==void 0&&le(this,Ho,O(this,He)),ud(n,t))return;le(this,nn,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!O(this,Wo).size)return!0;const c=new Set(l??O(this,Wo));return this.options.throwOnError&&c.add("error"),Object.keys(O(this,nn)).some(d=>{const h=d;return O(this,nn)[h]!==t[h]&&c.has(h)})};Fe(this,Je,Hj).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Fe(this,Je,xm).call(this)}},mn=new WeakMap,He=new WeakMap,Hl=new WeakMap,nn=new WeakMap,ki=new WeakMap,zo=new WeakMap,Ur=new WeakMap,As=new WeakMap,Wl=new WeakMap,qo=new WeakMap,Ho=new WeakMap,Ti=new WeakMap,Pi=new WeakMap,Ms=new WeakMap,Wo=new WeakMap,Je=new WeakSet,dl=function(t){Fe(this,Je,wm).call(this);let n=O(this,He).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(sn)),n},pm=function(){Fe(this,Je,vm).call(this);const t=Vs(this.options.staleTime,O(this,He));if(Di||O(this,nn).isStale||!cm(t))return;const r=Lj(O(this,nn).dataUpdatedAt,t)+1;le(this,Ti,wi.setTimeout(()=>{O(this,nn).isStale||this.updateResult()},r))},mm=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(O(this,He)):this.options.refetchInterval)??!1},gm=function(t){Fe(this,Je,ym).call(this),le(this,Ms,t),!(Di||Ln(this.options.enabled,O(this,He))===!1||!cm(O(this,Ms))||O(this,Ms)===0)&&le(this,Pi,wi.setInterval(()=>{(this.options.refetchIntervalInBackground||Sg.isFocused())&&Fe(this,Je,dl).call(this)},O(this,Ms)))},xm=function(){Fe(this,Je,pm).call(this),Fe(this,Je,gm).call(this,Fe(this,Je,mm).call(this))},vm=function(){O(this,Ti)&&(wi.clearTimeout(O(this,Ti)),le(this,Ti,void 0))},ym=function(){O(this,Pi)&&(wi.clearInterval(O(this,Pi)),le(this,Pi,void 0))},wm=function(){const t=O(this,mn).getQueryCache().build(O(this,mn),this.options);if(t===O(this,He))return;const n=O(this,He);le(this,He,t),le(this,Hl,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Hj=function(t){Tt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(O(this,nn))}),O(this,mn).getQueryCache().notify({query:O(this,He),type:"observerResultsUpdated"})})},sj);function BA(e,t){return Ln(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function iw(e,t){return BA(e,t)||e.state.data!==void 0&&bm(e,t,t.refetchOnMount)}function bm(e,t,n){if(Ln(t.enabled,e)!==!1&&Vs(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Cg(e,t)}return!1}function ow(e,t,n,r){return(e!==t||Ln(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Cg(e,n)}function Cg(e,t){return Ln(t.enabled,e)!==!1&&e.isStaleByTime(Vs(t.staleTime,e))}function $A(e,t){return!ud(e.getCurrentResult(),t)}function aw(e){return{onFetch:(t,n)=>{var m,g,v,N,j;const r=t.options,o=(v=(g=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:g.fetchMore)==null?void 0:v.direction,l=((N=t.state.data)==null?void 0:N.pages)||[],c=((j=t.state.data)==null?void 0:j.pageParams)||[];let d={pages:[],pageParams:[]},h=0;const f=async()=>{let b=!1;const C=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(t.signal.aborted?b=!0:t.signal.addEventListener("abort",()=>{b=!0}),t.signal)})},S=Vj(t.options,t.fetchOptions),k=async(_,T,R)=>{if(b)return Promise.reject();if(T==null&&_.pages.length)return Promise.resolve(_);const L=(()=>{const ne={client:t.client,queryKey:t.queryKey,pageParam:T,direction:R?"backward":"forward",meta:t.options.meta};return C(ne),ne})(),M=await S(L),{maxPages:G}=t.options,H=R?AA:RA;return{pages:H(_.pages,M,G),pageParams:H(_.pageParams,T,G)}};if(o&&l.length){const _=o==="backward",T=_?UA:lw,R={pages:l,pageParams:c},P=T(r,R);d=await k(R,P,_)}else{const _=e??l.length;do{const T=h===0?c[0]??r.initialPageParam:lw(r,d);if(h>0&&T==null)break;d=await k(d,T),h++}while(h<_)}return d};t.options.persister?t.fetchFn=()=>{var b,C;return(C=(b=t.options).persister)==null?void 0:C.call(b,f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=f}}}function lw(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function UA(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Kl,dr,rn,Ri,hr,_s,ij,zA=(ij=class extends zj{constructor(t){super();_e(this,hr);_e(this,Kl);_e(this,dr);_e(this,rn);_e(this,Ri);le(this,Kl,t.client),this.mutationId=t.mutationId,le(this,rn,t.mutationCache),le(this,dr,[]),this.state=t.state||Wj(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){O(this,dr).includes(t)||(O(this,dr).push(t),this.clearGcTimeout(),O(this,rn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){le(this,dr,O(this,dr).filter(n=>n!==t)),this.scheduleGc(),O(this,rn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){O(this,dr).length||(this.state.status==="pending"?this.scheduleGc():O(this,rn).remove(this))}continue(){var t;return((t=O(this,Ri))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var c,d,h,f,m,g,v,N,j,b,C,S,k,_,T,R,P,L,M,G;const n=()=>{Fe(this,hr,_s).call(this,{type:"continue"})},r={client:O(this,Kl),meta:this.options.meta,mutationKey:this.options.mutationKey};le(this,Ri,Uj({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(H,ne)=>{Fe(this,hr,_s).call(this,{type:"failed",failureCount:H,error:ne})},onPause:()=>{Fe(this,hr,_s).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>O(this,rn).canRun(this)}));const o=this.state.status==="pending",l=!O(this,Ri).canStart();try{if(o)n();else{Fe(this,hr,_s).call(this,{type:"pending",variables:t,isPaused:l}),await((d=(c=O(this,rn).config).onMutate)==null?void 0:d.call(c,t,this,r));const ne=await((f=(h=this.options).onMutate)==null?void 0:f.call(h,t,r));ne!==this.state.context&&Fe(this,hr,_s).call(this,{type:"pending",context:ne,variables:t,isPaused:l})}const H=await O(this,Ri).start();return await((g=(m=O(this,rn).config).onSuccess)==null?void 0:g.call(m,H,t,this.state.context,this,r)),await((N=(v=this.options).onSuccess)==null?void 0:N.call(v,H,t,this.state.context,r)),await((b=(j=O(this,rn).config).onSettled)==null?void 0:b.call(j,H,null,this.state.variables,this.state.context,this,r)),await((S=(C=this.options).onSettled)==null?void 0:S.call(C,H,null,t,this.state.context,r)),Fe(this,hr,_s).call(this,{type:"success",data:H}),H}catch(H){try{throw await((_=(k=O(this,rn).config).onError)==null?void 0:_.call(k,H,t,this.state.context,this,r)),await((R=(T=this.options).onError)==null?void 0:R.call(T,H,t,this.state.context,r)),await((L=(P=O(this,rn).config).onSettled)==null?void 0:L.call(P,void 0,H,this.state.variables,this.state.context,this,r)),await((G=(M=this.options).onSettled)==null?void 0:G.call(M,void 0,H,t,this.state.context,r)),H}finally{Fe(this,hr,_s).call(this,{type:"error",error:H})}}finally{O(this,rn).runNext(this)}}},Kl=new WeakMap,dr=new WeakMap,rn=new WeakMap,Ri=new WeakMap,hr=new WeakSet,_s=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};
375case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Tt.batch(()=>{O(this,dr).forEach(r=>{r.onMutationUpdate(t)}),O(this,rn).notify({mutation:this,type:"updated",action:t})})},ij);function Wj(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var zr,Jn,Gl,oj,qA=(oj=class extends da{constructor(t={}){super();_e(this,zr);_e(this,Jn);_e(this,Gl);this.config=t,le(this,zr,new Set),le(this,Jn,new Map),le(this,Gl,0)}build(t,n,r){const o=new zA({client:t,mutationCache:this,mutationId:++_u(this,Gl)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){O(this,zr).add(t);const n=Pu(t);if(typeof n=="string"){const r=O(this,Jn).get(n);r?r.push(t):O(this,Jn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(O(this,zr).delete(t)){const n=Pu(t);if(typeof n=="string"){const r=O(this,Jn).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&O(this,Jn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Pu(t);if(typeof n=="string"){const r=O(this,Jn).get(n),o=r==null?void 0:r.find(l=>l.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=Pu(t);if(typeof n=="string"){const o=(r=O(this,Jn).get(n))==null?void 0:r.find(l=>
vendor: 5,504 bytes, line 375
375l!==t&&l.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Tt.batch(()=>{O(this,zr).forEach(t=>{this.notify({type:"removed",mutation:t})}),O(this,zr).clear(),O(this,Jn).clear()})}getAll(){return Array.from(O(this,zr))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>tw(n,r))}findAll(t={}){return this.getAll().filter(n=>tw(t,n))}notify(t){Tt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Tt.batch(()=>Promise.all(t.map(n=>n.continue().catch(sn))))}},zr=new WeakMap,Jn=new WeakMap,Gl=new WeakMap,oj);function Pu(e){var t;return(t=e.options.scope)==null?void 0:t.id}var qr,Os,gn,Hr,Qr,Ku,jm,aj,HA=(aj=class extends da{constructor(n,r){super();_e(this,Qr);_e(this,qr);_e(this,Os);_e(this,gn);_e(this,Hr);le(this,qr,n),this.setOptions(r),this.bindMethods(),Fe(this,Qr,Ku).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=O(this,qr).defaultMutationOptions(n),ud(this.options,r)||O(this,qr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:O(this,gn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Ii(r.mutationKey)!==Ii(this.options.mutationKey)?this.reset():((o=O(this,gn))==null?void 0:o.state.status)==="pending"&&O(this,gn).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=O(this,gn))==null||n.removeObserver(this)}onMutationUpdate(n){Fe(this,Qr,Ku).call(this),Fe(this,Qr,jm).call(this,n)}getCurrentResult(){return O(this,Os)}reset(){var n;(n=O(this,gn))==null||n.removeObserver(this),le(this,gn,void 0),Fe(this,Qr,Ku).call(this),Fe(this,Qr,jm).call(this)}mutate(n,r){var o;return le(this,Hr,r),(o=O(this,gn))==null||o.removeObserver(this),le(this,gn,O(this,qr).getMutationCache().build(O(this,qr),this.options)),O(this,gn).addObserver(this),O(this,gn).execute(n)}},qr=new WeakMap,Os=new WeakMap,gn=new WeakMap,Hr=new WeakMap,Qr=new WeakSet,Ku=function(){var r;const n=((r=O(this,gn))==null?void 0:r.state)??Wj();le(this,Os,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},jm=function(n){Tt.batch(()=>{var r,o,l,c,d,h,f,m;if(O(this,Hr)&&this.hasListeners()){const g=O(this,Os).variables,v=O(this,Os).context,N={client:O(this,qr),meta:this.options.meta,mutationKey:this.options.mutationKey};(n==null?void 0:n.type)==="success"?((o=(r=O(this,Hr)).onSuccess)==null||o.call(r,n.data,g,v,N),(c=(l=O(this,Hr)).onSettled)==null||c.call(l,n.data,null,g,v,N)):(n==null?void 0:n.type)==="error"&&((h=(d=O(this,Hr)).onError)==null||h.call(d,n.error,g,v,N),(m=(f=O(this,Hr)).onSettled)==null||m.call(f,void 0,n.error,g,v,N))}this.listeners.forEach(g=>{g(O(this,Os))})})},aj),fr,lj,WA=(lj=class extends da{constructor(t={}){super();_e(this,fr);this.config=t,le(this,fr,new Map)}build(t,n,r){const o=n.queryKey,l=n.queryHash??jg(o,n);let c=this.get(l);return c||(c=new FA({client:t,queryKey:o,queryHash:l,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(c)),c}add(t){O(this,fr).has(t.queryHash)||(O(this,fr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=O(this,fr).get(t.queryHash);n&&(t.destroy(),n===t&&O(this,fr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Tt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return O(this,fr).get(t)}getAll(){return[...O(this,fr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ew(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>ew(t,r)):n}notify(t){Tt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Tt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Tt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},fr=new WeakMap,lj),gt,Ds,Is,Ko,Go,Ls,Qo,Yo,cj,KA=(cj=class{constructor(e={}){_e(this,gt);_e(this,Ds);_e(this,Is);_e(this,Ko);_e(this,Go);_e(this,Ls);_e(this,Qo);_e(this,Yo);le(this,gt,e.queryCache||new WA),le(this,Ds,e.mutationCache||new qA),le(this,Is,e.defaultOptions||{}),le(this,Ko,new Map),le(this,Go,new Map),le(this,Ls,0)}mount(){_u(this,Ls)._++,O(this,Ls)===1&&(le(this,Qo,Sg.subscribe(async e=>{e&&(await this.resumePausedMutations(),O(this,gt).onFocus())})),le(this,Yo,dd.subscribe(async e=>{e&&(await this.resumePausedMutations(),O(this,gt).onOnline())})))}unmount(){var e,t;_u(this,Ls)._--,O(this,Ls)===0&&((e=O(this,Qo))==null||e.call(this),le(this,Qo,void 0),(t=O(this,Yo))==null||t.call(this),le(this,Yo,void 0))}isFetching(e){return O(this,gt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return O(this,Ds).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=O(this,gt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=O(this,gt).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Vs(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return O(this,gt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=O(this,gt).get(r.queryHash),l=o==null?void 0:o.state.data,c=kA(t,l);if(c!==void 0)return O(this,gt).build(this,r).setData(c,{...n,manual:!0})}
375setQueriesData(e,t,n){return Tt.batch(()=>O(this,gt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=O(this,gt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=O(this,gt);Tt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=O(this,gt);return Tt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Tt.batch(()=>O(this,gt).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(sn).catch(sn)}invalidateQueries(e,t={}){return Tt.batch(()=>(O(this,gt).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Tt.batch(()=>O(this,gt).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let l=o.fetch(void 0,n);return n.throwOnError||(l=l.catch(sn)),o.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(r).then(sn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=O(this,gt).build(this,t);return n.isStaleByTime(Vs(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(sn).catch(sn)}fetchInfiniteQuery(e){return e.behavior=aw(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(sn).catch(sn)}ensureInfiniteQueryData(e){return e.behavior=aw(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return dd.isOnline()?O(this,Ds).resumePausedMutations():Promise.resolve()}getQueryCache(){return O(this,gt)}getMutationCache(){return O(this,Ds)}getDefaultOptions(){return O(this,Is)}setDefaultOptions(e){le(this,Is,e)}setQueryDefaults(e,t){O(this,Ko).set(Ii(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...O(this,Ko).values()],n={};return t.forEach(r=>{Pl(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){O(this,Go).set(Ii(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...O(this,Go).values()],n={};return t.forEach(r=>{Pl(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...O(this,Is).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=jg(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Ng&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...O(this,Is).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){O(this,gt).clear(),O(this,Ds).clear()}},gt=new WeakMap,Ds=new WeakMap,Is=new WeakMap,Ko=new WeakMap,Go=new WeakMap,Ls=new WeakMap,Qo=new WeakMap,Yo=new WeakMap,cj),Kj=y.createContext(void 0),Er=e=>{const t=y.useContext(Kj);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},GA=({client:e,children:t})=>(y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),i.jsx(Kj.Provider,{value:e,children:t})),Gj=y.createContext(!1),QA=()=>y.useContext(Gj);Gj.Provider;function YA(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var XA=y.createContext(YA()),JA=()=>y.useContext(XA),ZA=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},e4=e=>{y.useEffect(()=>{e.clearReset()},[e])},t4=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Bj(n,[e.error,r])),n4=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},r4=(e,t)=>e.isLoading&&e.isFetching&&!t,s4=(e,t)=>
375(e==null?void 0:e.suspense)&&t.isPending,cw=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function i4(e,t,n){var g,v,N,j,b;const r=QA(),o=JA(),l=Er(),c=l.defaultQueryOptions(e);(v=(g=l.getDefaultOptions().queries)==null?void 0:g._experimental_beforeQuery)==null||v.call(g,c),c._optimisticResults=r?"isRestoring":"optimistic",n4(c),ZA(c,o),e4(o);const d=!l.getQueryCache().get(c.queryHash),[h]=y.useState(()=>new t(l,c)),f=h.getOptimisticResult(c),m=!r&&e.subscribed!==!1;if(y.useSyncExternalStore(y.useCallback(C=>{const S=m?h.subscribe(Tt.batchCalls(C)):sn;return h.updateResult(),S},[h,m]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),y.useEffect(()=>{h.setOptions(c)},[c,h]),s4(c,f))throw cw(c,h,o);if(t4({result:f,errorResetBoundary:o,throwOnError:c.throwOnError,query:l.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw f.error;if((j=(N=l.getDefaultOptions().queries)==null?void 0:N._experimental_afterQuery)==null||j.call(N,c,f),c.experimental_prefetchInRender&&!Di&&r4(f,r)){const C=d?cw(c,h,o):(b=l.getQueryCache().get(c.queryHash))==null?void 0:b.promise;C==null||C.catch(sn).finally(()=>{h.updateResult()})}return c.notifyOnChangeProps?f:h.trackResult(f)}function Bn(e,t){return i4(e,VA)}function Li(e,t){const n=Er(),[r]=y.useState(()=>new HA(n,e));y.useEffect(()=>{r.setOptions(e)},[r,e]);const o=y.useSyncExternalStore(y.useCallback(c=>r.subscribe(Tt.batchCalls(c)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),l=y.useCallback((c,d)=>{r.mutate(c,d).catch(sn)},[r]);if(o.error&&Bj(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:l,mutateAsync:o.mutate}}const o4=new KA({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});var Yl=dj();const a4=pg(Yl);/**
376 * @remix-run/router v1.23.0
377 *
378 * Copyright (c) Remix Software Inc.
379 *
380 * This source code is licensed under the MIT license found in the
381 * LICENSE.md file in the root directory of this source tree.
382 *
383 * @license MIT
384 */function Rl(){return Rl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rl.apply(this,arguments)}var Fs;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Fs||(Fs={}));const uw="popstate";function l4(e){e===void 0&&(e={});function t(r,o){let{pathname:l,search:c,hash:d}=r.location;return Nm("",{pathname:l,search:c,hash:d},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:hd(o)}return u4(t,n,null,e)}function Ct(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Qj(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function c4(){return Math.random().toString(36).substr(2,8)}function dw(e,t){return{usr:e.state,key:e.key,idx:t}}function Nm(e,t,n,r){return n===void 0&&(n=null),Rl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ha(t):t,{state:n,key:t&&t.key||r||c4()})}function hd(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ha(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function u4(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:l=!1}=r,c=o.history,d=Fs.Pop,h=null,f=m();f==null&&(f=0,c.replaceState(Rl({},c.state,{idx:f}),""));function m(){return(c.state||{idx:null}).idx}function g(){d=Fs.Pop;let C=m(),S=C==null?null:C-f;f=C,h&&h({action:d,location:b.location,delta:S})}function v(C,S){d=Fs.Push;let k=Nm(b.location,C,S);f=m()+1;let _=dw(k,f),T=b.createHref(k);try{c.pushState(_,"",T)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;o.location.assign(T)}l&&h&&h({action:d,location:b.location,delta:1})}function N(C,S){d=Fs.Replace;let k=Nm(b.location,C,S);f=m();let _=dw(k,f),T=b.createHref(k);c.replaceState(_,"",T),l&&h&&h({action:d,location:b.location,delta:0})}function j(C){let S=o.location.origin!=="null"?o.location.origin:o.location.href,k=typeof C=="string"?C:hd(C);return k=k.replace(/ $/,"%20"),Ct(S,"No window.location.(origin|href) available to create URL for href: "+k),new URL(k,S)}let b={get action(){return d},get location(){return e(o,c)},listen(C){if(h)throw new Error("A history only accepts one active listener");return o.addEventListener(uw,g),h=C,()=>{o.removeEventListener(uw,g),h=null}},createHref(C){return t(o,C)},createURL:j,encodeLocation(C){let S=j(C);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:v,replace:N,go(C){return c.go(C)}};return b}var hw;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(hw||(hw={}));function d4(e,t,n){return n===void 0&&(n="/"),h4(e,t,n)}function h4(e,t,n,r){let o=typeof t=="string"?ha(t):t,l=_g(o.pathname||"/",n);if(l==null)return null;
vendor: 11,451 bytes, lines 384-393
384let c=Yj(e);f4(c);let d=null;for(let h=0;d==null&&h<c.length;++h){let f=C4(l);d=j4(c[h],f)}return d}function Yj(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(l,c,d)=>{let h={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};h.relativePath.startsWith("/")&&(Ct(h.relativePath.startsWith(r),'Absolute route path "'+h.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),h.relativePath=h.relativePath.slice(r.length));let f=Bs([r,h.relativePath]),m=n.concat(h);l.children&&l.children.length>0&&(Ct(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),Yj(l.children,t,m,f)),!(l.path==null&&!l.index)&&t.push({path:f,score:w4(f,l.index),routesMeta:m})};return e.forEach((l,c)=>{var d;if(l.path===""||!((d=l.path)!=null&&d.includes("?")))o(l,c);else for(let h of Xj(l.path))o(l,c,h)}),t}function Xj(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return o?[l,""]:[l];let c=Xj(r.join("/")),d=[];return d.push(...c.map(h=>h===""?l:[l,h].join("/"))),o&&d.push(...c),d.map(h=>e.startsWith("/")&&h===""?"/":h)}function f4(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:b4(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const p4=/^:[\w-]+$/,m4=3,g4=2,x4=1,v4=10,y4=-2,fw=e=>e==="*";function w4(e,t){let n=e.split("/"),r=n.length;return n.some(fw)&&(r+=y4),t&&(r+=g4),n.filter(o=>!fw(o)).reduce((o,l)=>o+(p4.test(l)?m4:l===""?x4:v4),r)}function b4(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function j4(e,t,n){let{routesMeta:r}=e,o={},l="/",c=[];for(let d=0;d<r.length;++d){let h=r[d],f=d===r.length-1,m=l==="/"?t:t.slice(l.length)||"/",g=N4({path:h.relativePath,caseSensitive:h.caseSensitive,end:f},m),v=h.route;if(!g)return null;Object.assign(o,g.params),c.push({params:o,pathname:Bs([l,g.pathname]),pathnameBase:T4(Bs([l,g.pathnameBase])),route:v}),g.pathnameBase!=="/"&&(l=Bs([l,g.pathnameBase]))}return c}function N4(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=S4(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let l=o[0],c=l.replace(/(.)\/+$/,"$1"),d=o.slice(1);return{params:r.reduce((f,m,g)=>{let{paramName:v,isOptional:N}=m;if(v==="*"){let b=d[g]||"";c=l.slice(0,l.length-b.length).replace(/(.)\/+$/,"$1")}const j=d[g];return N&&!j?f[v]=void 0:f[v]=(j||"").replace(/%2F/g,"/"),f},{}),pathname:l,pathnameBase:c,pattern:e}}function S4(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Qj(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,h)=>(r.push({paramName:d,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function C4(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Qj(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function _g(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function _4(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ha(e):e;return{pathname:n?n.startsWith("/")?n:E4(n,t):t,search:P4(r),hash:R4(o)}}function E4(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function jp(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function k4(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Jj(e,t){let n=k4(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Zj(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ha(e):(o=Rl({},e),Ct(!o.pathname||!o.pathname.includes("?"),jp("?","pathname","search",o)),Ct(!o.pathname||!o.pathname.includes("#"),jp("#","pathname","hash",o)),Ct(!o.search||!o.search.includes("#"),jp("#","search","hash",o)));let l=e===""||o.pathname==="",c=l?"/":o.pathname,d;if(c==null)d=n;else{let g=t.length-1;if(!r&&c.startsWith("..")){let v=c.split("/");for(;v[0]==="..";)v.shift(),g-=1;o.pathname=v.join("/")}d=g>=0?t[g]:"/"}let h=_4(o,d),f=c&&c!=="/"&&c.endsWith("/"),m=(l||c===".")&&n.endsWith("/");return!h.pathname.endsWith("/")&&(f||m)&&(h.pathname+="/"),h}const Bs=e=>e.join("/").replace(/\/\/+/g,"/"),T4=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),P4=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,R4=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function A4(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const eN=["post","put","patch","delete"];new Set(eN);const M4=["get",...eN];new Set(M4);/**
385 * React Router v6.30.1
386 *
387 * Copyright (c) Remix Software Inc.
388 *
389 * This source code is licensed under the MIT license found in the
390 * LICENSE.md file in the root directory of this source tree.
391 *
392 * @license MIT
393 */function Al(){return Al=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Al.apply(this,arguments)}const Eg=y.createContext(null),O4=y.createContext(null),Gi=y.createContext(null),Vd=y.createContext(null),Qi=y.createContext({outlet:null,matches:[],isDataRoute:!1}),tN=y.createContext(null);function D4(e,t){let{relative:n}=t===void 0?{}:t;Xl()||Ct(!1);let{basename:r,navigator:o}=y.useContext(Gi),{hash:l,pathname:c,search:d}=rN(e,{relative:n}),h=c;return r!=="/"&&(h=c==="/"?r:Bs([r,c])),o.createHref({pathname:h,search:d,hash:l})}function Xl(){return y.useContext(Vd)!=null}function Yi(){return Xl()||Ct(!1),y.useContext(Vd).location}function nN(e){y.useContext(Gi).static||y.useLayoutEffect(e)}function Bd(){let{isDataRoute:e}=y.useContext(Qi);return e?G4():I4()}function I4(){Xl()||Ct(!1);let e=y.useContext(Eg),{basename:t,future:n,navigator:r}=y.useContext(Gi),{matches:o}=y.useContext(Qi),{pathname:l}=Yi(),c=JSON.stringify(Jj(o,n.v7_relativeSplatPath)),d=y.useRef(!1);return nN(()=>{d.current=!0}),y.useCallback(function(f,m){if(m===void 0&&(m={}),!d.current)return;if(typeof f=="number"){r.go(f);return}let g=Zj(f,JSON.parse(c),l,m.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:Bs([t,g.pathname])),(m.replace?r.replace:r.push)(g,m.state,m)},[t,r,c,l,e])}function rN(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=y.useContext(Gi),{matches:o}=y.useContext(Qi),{pathname:l}=Yi(),c=JSON.stringify(Jj(o,r.v7_relativeSplatPath));return y.useMemo(()=>Zj(e,JSON.parse(c),l,n==="path"),[e,c,l,n])}function L4(e,t){return F4(e,t)}function F4(e,t,n,r){Xl()||Ct(!1);let{navigator:o}=y.useContext(Gi),{matches:l}=y.useContext(Qi),c=l[l.length-1],d=c?c.params:{};c&&c.pathname;let h=c?c.pathnameBase:"/";c&&c.route;let f=Yi(),m;if(t){var g;let C=typeof t=="string"?ha(t):t;h==="/"||(g=C.pathname)!=null&&g.startsWith(h)||Ct(!1),m=C}else m=f;let v=m.pathname||"/",N=v;if(h!=="/"){let C=h.replace(/^\//,"").split("/");N="/"+v.replace(/^\//,"").split("/").slice(C.length).join("/")}let j=d4(e,{pathname:N}),b=z4(j&&j.map(C=>Object.assign({},C,{params:Object.assign({},d,C.params),pathname:Bs([h,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?h:Bs([h,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),l,n,r);return t&&b?y.createElement(Vd.Provider,{value:{location:Al({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:Fs.Pop}},b):b}function V4(){let e=K4(),t=A4(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:o},n):null,null)}const B4=y.createElement(V4,null);class $4 extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?y.createElement(Qi.Provider,{value:this.props.routeContext},y.createElement(tN.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function U4(e){let{routeContext:t,match:n,children:r}=e,o=y.useContext(Eg);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(Qi.Provider,{value:t},r)}function z4(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var l;if(!n)return null;if(n.errors)e=n.matches;else if((l=r)!=null&&l.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let c=e,d=(o=n)==null?void 0:o.errors;if(d!=null){let m=c.findIndex(g=>g.route.id&&(d==null?void 0:d[g.route.id])!==void 0);m>=0||Ct(!1),c=c.slice(0,Math.min(c.length,m+1))}let h=!1,f=-1;if(n&&r&&r.v7_partialHydration)for(let m=0;m<c.length;m++){let g=c[m];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(f=m),g.route.id){let{loaderData:v,errors:N}=n,j=g.route.loader&&v[g.route.id]===void 0&&(!N||N[g.route.id]===void 0);if(g.route.lazy||j){h=!0,f>=0?c=c.slice(0,f+1):c=[c[0]];break}}}return c.reduceRight((m,g,v)=>{let N,j=!1,b=null,C=null;n&&(N=d&&g.route.id?d[g.route.id]:void 0,b=g.route.errorElement||B4,h&&(f<0&&v===0?(Q4("route-fallback"),j=!0,C=null):f===v&&(j=!0,C=g.route.hydrateFallbackElement||null)));let S=t.concat(c.slice(0,v+1)),k=()=>{let _;return N?_=b:j?_=C:g.route.Component?_=y.createElement(g.route.Component,null):g.route.element?_=g.route.element:_=m,y.createElement(U4,{match:g,routeContext:{outlet:m,matches:S,isDataRoute:n!=null},children:_})};return n&&(g.route.ErrorBoundary||g.route.errorElement||v===0)?y.createElement($4,{location:n.location,revalidation:n.revalidation,component:b,error:N,children:k(),routeC
393ontext:{outlet:null,matches:S,isDataRoute:!0}}):k()},null)}var sN=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(sN||{}),iN=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(iN||{});function q4(e){let t=y.useContext(Eg);return t||Ct(!1),t}function H4(e){let t=y.useContext(O4);return t||Ct(!1),t}function W4(e){let t=y.useContext(Qi);return t||Ct(!1),t}function oN(e){let t=W4(),n=t.matches[t.matches.length-1];return n.route.id||Ct(!1),n.route.id}function K4(){var e;let t=y.useContext(tN),n=H4(),r=oN();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function G4(){let{router:e}=q4(sN.UseNavigateStable),t=oN(iN.UseNavigateStable),n=y.useRef(!1);return nN(()=>{n.current=!0}),y.useCallback(function(o,l){l===void 0&&(l={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Al({fromRouteId:t},l)))},[e,t])}const pw={};function Q4(e,t,n){pw[e]||(pw[e]=!0)}function Y4(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function hl(e){Ct(!1)}function X4(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Fs.Pop,navigator:l,static:c=!1,future:d}=e;Xl()&&Ct(!1);let h=t.replace(/^\/*/,"/"),f=y.useMemo(()=>({basename:h,navigator:l,static:c,future:Al({v7_relativeSplatPath:!1},d)}),[h,d,l,c]);typeof r=="string"&&(r=ha(r));let{pathname:m="/",search:g="",hash:v="",state:N=null,key:j="default"}=r,b=y.useMemo(()=>{let C=_g(m,h);return C==null?null:{location:{pathname:C,search:g,hash:v,state:N,key:j},navigationType:o}},[h,m,g,v,N,j,o]);return b==null?null:y.createElement(Gi.Provider,{value:f},y.createElement(Vd.Provider,{children:n,value:b}))}function J4(e){let{children:t,location:n}=e;return L4(Sm(t),n)}new Promise(()=>{});function Sm(e,t){t===void 0&&(t=[]);let n=[];return y.Children.forEach(e,(r,o)=>{if(!y.isValidElement(r))return;let l=[...t,o];if(r.type===y.Fragment){n.push.apply(n,Sm(r.props.children,l));return}r.type!==hl&&Ct(!1),!r.props.index||!r.props.children||Ct(!1);let c={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(c.children=Sm(r.props.children,l)),n.push(c)}),n}/**
394 * React Router DOM v6.30.1
395 *
396 * Copyright (c) Remix Software Inc.
397 *
398 * This source code is licensed under the MIT license found in the
399 * LICENSE.md file in the root directory of this source tree.
400 *
401 * @license MIT
402 */function Cm(){return Cm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cm.apply(this,arguments)}function Z4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,l;for(l=0;l<r.length;l++)o=r[l],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function eM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function tM(e,t){return e.button===0&&(!t||t==="_self")&&!eM(e)}const nM=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],rM="6";try{window.__reactRouterVersion=rM}catch{}const sM="startTransition",mw=gg[sM];function iM(e){let{basename:t,children:n,future:r,window:o}=e,l=y.useRef();l.current==null&&(l.current=l4({window:o,v5Compat:!0}));let c=l.current,[d,h]=y.useState({action:c.action,location:c.location}),{v7_startTransition:f}=r||{},m=y.useCallback(g=>{f&&mw?mw(()=>h(g)):h(g)},[h,f]);return y.useLayoutEffect(()=>c.listen(m),[c,m]),y.useEffect(()=>Y4(r),[r]),y.createElement(X4,{basename:t,children:n,location:d.location,navigationType:d.action,navigator:c,future:r})}const oM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",aM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Be=y.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:l,replace:c,state:d,target:h,to:f,preventScrollReset:m,viewTransition:g}=t,v=Z4(t,nM),{basename:N}=y.useContext(Gi),j,b=!1;if(typeof f=="string"&&aM.test(f)&&(j=f,oM))try{let _=new URL(window.location.href),T=f.startsWith("//")?new URL(_.protocol+f):new URL(f),R=_g(T.pathname,N);T.origin===_.origin&&R!=null?f=R+T.search+T.hash:b=!0}catch{}let C=D4(f,{relative:o}),S=lM(f,{replace:c,state:d,target:h,preventScrollReset:m,relative:o,viewTransition:g});function k(_){r&&r(_),_.defaultPrevented||S(_)}return y.createElement("a",Cm({},v,{href:j||C,onClick:b||l?r:k,ref:n,target:h}))});var gw;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(gw||(gw={}));var xw;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(xw||(xw={}));function lM(e,t){let{target:n,replace:r,state:o,preventScrollReset:l,relative:c,viewTransition:d}=t===void 0?{}:t,h=Bd(),f=Yi(),m=rN(e,{relative:c}
vendor: 10,251 bytes, lines 402-403
402);return y.useCallback(g=>{if(tM(g,n)){g.preventDefault();let v=r!==void 0?r:hd(f)===hd(m);h(e,{replace:v,state:o,preventScrollReset:l,relative:c,viewTransition:d})}},[f,h,m,r,o,n,e,l,c,d])}function aN(e,t){return function(){return e.apply(t,arguments)}}const{toString:cM}=Object.prototype,{getPrototypeOf:ea}=Object,{iterator:Jl,toStringTag:lN}=Symbol,fd=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ml=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),fd(n,t))return!0;n=ea(n)}return!1},uM=(e,t)=>e!=null&&Ml(e,t)?e[t]:void 0,kg=(e=>t=>{const n=cM.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),rr=e=>(e=e.toLowerCase(),t=>kg(t)===e),$d=e=>t=>typeof t===e,{isArray:Fi}=Array,ta=$d("undefined");function fa(e){return e!==null&&!ta(e)&&e.constructor!==null&&!ta(e.constructor)&&xn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const cN=rr("ArrayBuffer");function dM(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&cN(e.buffer),t}const hM=$d("string"),xn=$d("function"),uN=$d("number"),pa=e=>e!==null&&typeof e=="object",fM=e=>e===!0||e===!1,Gu=e=>{if(!pa(e))return!1;const t=ea(e);return(t===null||t===Object.prototype||ea(t)===null)&&!Ml(e,lN)&&!Ml(e,Jl)},pM=e=>{if(!pa(e)||fa(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},mM=rr("Date"),gM=rr("File"),xM=e=>!!(e&&typeof e.uri<"u"),vM=e=>e&&typeof e.getParts<"u",yM=rr("Blob"),wM=rr("FileList"),bM=e=>pa(e)&&xn(e.pipe);function jM(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const vw=jM(),yw=typeof vw.FormData<"u"?vw.FormData:void 0,NM=e=>{if(!e)return!1;if(yw&&e instanceof yw)return!0;const t=ea(e);if(!t||t===Object.prototype||!xn(e.append))return!1;const n=kg(e);return n==="formdata"||n==="object"&&xn(e.toString)&&e.toString()==="[object FormData]"},SM=rr("URLSearchParams"),[CM,_M,EM,kM]=["ReadableStream","Request","Response","Headers"].map(rr),TM=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Zl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Fi(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(fa(e))return;const l=n?Object.getOwnPropertyNames(e):Object.keys(e),c=l.length;let d;for(r=0;r<c;r++)d=l[r],t.call(null,e[d],d,e)}}function dN(e,t){if(fa(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const bi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,hN=e=>!ta(e)&&e!==bi;function _m(...e){const{caseless:t,skipUndefined:n}=hN(this)&&this||{},r={},o=(l,c)=>{if(c==="__proto__"||c==="constructor"||c==="prototype")return;const d=t&&typeof c=="string"&&dN(r,c)||c,h=fd(r,d)?r[d]:void 0;Gu(h)&&Gu(l)?r[d]=_m(h,l):Gu(l)?r[d]=_m({},l):Fi(l)?r[d]=l.slice():(!n||!ta(l))&&(r[d]=l)};for(let l=0,c=e.length;l<c;l++){const d=e[l];if(!d||fa(d)||(Zl(d,o),typeof d!="object"||Fi(d)))continue;const h=Object.getOwnPropertySymbols(d);for(let f=0;f<h.length;f++){const m=h[f];$M.call(d,m)&&o(d[m],m)}}return r}const PM=(e,t,n,{allOwnKeys:r}={})=>(Zl(t,(o,l)=>{n&&xn(o)?Object.defineProperty(e,l,{__proto__:null,value:aN(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,l,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),RM=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),AM=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},MM=(e,t,n,r)=>{let o,l,c;const d={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),l=o.length;l-- >0;)c=o[l],(!r||r(c,e,t))&&!d[c]&&(t[c]=e[c],d[c]=!0);e=n!==!1&&ea(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},OM=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},DM=e=>{if(!e)return null;if(Fi(e))return e;let t=e.length;if(!uN(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},IM=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ea(Uint8Array)),LM=(e,t)=>{const r=(e&&e[Jl]).call(e);let o;for(;(o=r.next())&&!o.done;){const l=o.value;t.call(e,l[0],l[1])}},FM=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},VM=rr("HTMLFormElement"),BM=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),{propertyIsEnumerable:$M}=Object.prototype,UM=rr("RegExp"),fN=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Zl(n,(o,l)=>{let c;(c=t(o,l,e))!==!1&&(r[l]=c||o)}),Object.defineProperties(e,r)},zM=e=>{fN(e,(t,n)=>{if(xn(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(xn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},qM=(e,t)=>{const n={},r=o=>{o.forEach(l=>{n[l]=!0})};return Fi(e)?r(e):r(String(e).split(t)),n},HM=()=>{},WM=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function KM(e){return!!(e&&xn(e.append)&&e[lN]==="FormData"&&e[Jl])}const GM=e=>{const t=new WeakSet,n=r=>{if(pa(r)){if(t.has(r))return;if(fa(r))return r;if(!("toJSON"in r)){t.add(r);const o=Fi(r)?[]:{};return Zl(r,(l,c)=>{const d=n(l);!ta(d)&&(o[c]=d)}),t.delete(r),o}}return r};return n(e)},QM=rr("AsyncFunction"),YM=e=>e&&(pa(e)||xn(e))&&xn(e.then)&&xn(e.catch),pN=((e,t)=>e?setImmediate:t?((n,r)=>(bi.addEventListener("message",({source:o,data:l})=>{o===bi&&l===n&&r.length&&r.shift()()},!1),o=>{r.push(o),bi.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",xn(bi.postMessage)),XM=typeof queueMicrotask<"u"?queueMicrotask.bind(bi):typeof process<"u"&&process.nextTick||pN,mN=e=>e!=null&&xn(e[Jl]),JM=e=>e!=null&&Ml(e,Jl)&&mN(e),V={isArray:Fi,isArrayBuffer:cN,isBuffer:fa,isFormData:NM,isArrayBufferView:dM,isString:hM,isNumber:uN,isBoolean:fM,isObject:pa,isPlainObject:Gu,isEmptyObject:pM,isReadableStream:CM,isRequest:_M,isResponse:EM,isHeaders:kM,isUndefined:ta,isDate:mM,isFile:gM,isReactNativeBlob:xM,isReactNative:vM,isBlob:yM,isRegExp:UM,isFunction:xn,isStream:bM,isURLSearchParams:SM,isTypedArray:IM,isFileList:wM,forEach:Zl,merge:_m,extend:PM,trim:TM,stripBOM:RM,inherits:AM,toFlatObject:MM,kindOf:kg,kindOfTest:rr,endsWith:OM,toArray:DM,forEachEntry:LM,matchAll:FM,isHTMLForm:VM,hasOwnProperty:fd,hasOwnProp:fd,hasOwnInPrototypeChain:Ml,getSafeProp:uM,reduceDescriptors:fN,freezeMethods:zM,toObjectSet:qM,toCamelCase:BM,noop:HM,toFiniteNumber:WM,findKey:dN,global:bi,isContextDefined:hN,isSpecCompliantForm:KM,toJSONObject:GM,isAsyncFn:QM,isThenable:YM,setImmediate:pN,asap:XM,isIterable:mN,isSafeIterable:JM},ZM=V.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),e5=e=>{const t={};let n,r,o;return e&&e.split(`
403`).forEach(function(c){o=c.indexOf(":"),n=c.substring(0,o).trim().toLowerCase(),r=c.substring(o+1).trim(),!(!n||t[n]&&ZM[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function t5(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const n5=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),r5=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Tg(e,t){return V.isArray(e)?e.map(n=>Tg(n,t)):t5(String(e).replace(t,""))}const s5=e=>Tg(e,n5),i5=e=>Tg(e,r5);function gN(e){const t=Object.create(null);return V.forEach(e.toJSON(),(n,r)=>{t[r]=i5(n)}),t}const ww=Symbol("internals");function ol(e){return e&&String(e).trim().toLowerCase()}function Qu(e){return e===!1||e==null?e:V.isArray(e)?e.map(Qu):s5(String(e))}function o5(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const a5=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Np(e,t,n,r,o){if(V.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!V.isString(t)){if(V.isString(r))return t.indexOf(r)!==-1;if(V.isRegExp(r))return r.test(t)}}function l5(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function c5(e,t){const n=V.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(o,l,c){return this[r].call(this,t,o,l,c)},configurable:!0})})}let Yt=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function l(d,h,f){const m=ol(h);if(!m)return;const g=V.findKey(o,m);(!g||o[g]===void 0||f===!0||f===void 0&&o[g]!==!1)&&(o[g||h]=Qu(d))}const c=(d,h)=>V.forEach(d,(f,m)=>l(f,m,h));if(V.isPlainObject(t)||t instanceof this.constructor)c(t,n);else if(V.isString(t)&&(t=t.trim())&&!a5(t))c(e5(t),n);else if(V.isObject(t)&&V.isSafeIterable(t)){let d=Object.create(null),h,f;for(const m of t){if(!V.isArray(m))throw new TypeError("Object iterator must return a key-value pair");f=m[0],V.hasOwnProp(d,f)?(h=d[f],d[f]=V.isArray(h)?[...h,m[1]]:[h,m[1]]):d[f]=m[1]}c(d,n)}else t!=null&&l(n,t,r);return this}get(t,n){if(t=ol(t),t){const r=V.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return o5(o);if(V.isFunction(n))return n.call(this,o,r);if(V.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ol(t),t){const r=V.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Np(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function l(c){if(c=ol(c),c){const d=V.findKey(r,c);d&&(!n||Np(r,r[d],d,n))&&(delete r[d],o=!0)}}return V.isArray(t)?t.forEach(l):l(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const l=n[r];(!t||Np(this,this[l],l,t,!0))&&(delete this[l],o=!0)}return o}normalize(t){const n=this,r={};
vendor: 5,541 bytes, lines 403-404
403return V.forEach(this,(o,l)=>{const c=V.findKey(r,l);if(c){n[c]=Qu(o),delete n[l];return}const d=t?l5(l):String(l).trim();d!==l&&delete n[l],n[d]=Qu(o),r[d]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return V.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&V.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
404`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[ww]=this[ww]={accessors:{}}).accessors,o=this.prototype;function l(c){const d=ol(c);r[d]||(c5(o,c),r[d]=!0)}return V.isArray(t)?t.forEach(l):l(t),this}};Yt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);V.reduceDescriptors(Yt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});V.freezeMethods(Yt);const u5="[REDACTED ****]";function d5(e){if(V.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(V.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function h5(e,t){const n=new Set(t.map(l=>String(l).toLowerCase())),r=[],o=l=>{if(l===null||typeof l!="object"||V.isBuffer(l))return l;if(r.indexOf(l)!==-1)return;l instanceof Yt&&(l=l.toJSON()),r.push(l);let c;if(V.isArray(l))c=[],l.forEach((d,h)=>{const f=o(d);V.isUndefined(f)||(c[h]=f)});else{if(!V.isPlainObject(l)&&d5(l))return r.pop(),l;c=Object.create(null);for(const[d,h]of Object.entries(l)){const f=n.has(d.toLowerCase())?u5:o(h);V.isUndefined(f)||(c[d]=f)}}return r.pop(),c};return o(e)}let ae=class xN extends Error{static from(t,n,r,o,l,c){const d=new xN(t.message,n||t.code,r,o,l);return Object.defineProperty(d,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),d.name=t.name,t.status!=null&&d.status==null&&(d.status=t.status),c&&Object.assign(d,c),d}constructor(t,n,r,o,l){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),l&&(this.response=l,this.status=l.status)}toJSON(){const t=this.config,n=t&&V.hasOwnProp(t,"redact")?t.redact:void 0,r=V.isArray(n)&&n.length>0?h5(t,n):V.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};ae.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";ae.ERR_BAD_OPTION="ERR_BAD_OPTION";ae.ECONNABORTED="ECONNABORTED";ae.ETIMEDOUT="ETIMEDOUT";ae.ECONNREFUSED="ECONNREFUSED";ae.ERR_NETWORK="ERR_NETWORK";ae.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";ae.ERR_DEPRECATED="ERR_DEPRECATED";ae.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";ae.ERR_BAD_REQUEST="ERR_BAD_REQUEST";ae.ERR_CANCELED="ERR_CANCELED";ae.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";ae.ERR_INVALID_URL="ERR_INVALID_URL";ae.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const f5=null,vN=100;function Em(e){return V.isPlainObject(e)||V.isArray(e)}function yN(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function Sp(e,t,n){return e?e.concat(t).map(function(o,l){return o=yN(o),!n&&l?"["+o+"]":o}).join(n?".":""):t}function p5(e){return V.isArray(e)&&!e.some(Em)}const m5=V.toFlatObject(V,{},null,function(t){return/^is[A-Z]/.test(t)});function Ud(e,t,n){if(!V.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=V.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(k,_){return!V.isUndefined(_[k])});const r=n.metaTokens,o=n.visitor||j,l=n.dots,c=n.indexes,d=n.Blob||typeof Blob<"u"&&Blob,h=n.maxDepth===void 0?vN:n.maxDepth,f=d&&V.isSpecCompliantForm(t),m=[];if(!V.isFunction(o))throw new TypeError("visitor must be a function");function g(S){if(S===null)return"";if(V.isDate(S))return S.toISOString();if(V.isBoolean(S))return S.toString();if(!f&&V.isBlob(S))throw new ae("Blob is not supported. Use a Buffer instead.");if(V.isArrayBuffer(S)||V.isTypedArray(S)){if(f&&typeof d=="function")return new d([S]);if(typeof Buffer<"u")return Buffer.from(S);throw new ae("Blob is not supported. Use a Buffer instead.",ae.ERR_NOT_SUPPORT)}return S}function v(S){if(S>h)throw new ae("Object is too deeply nested ("+S+" levels). Max depth: "+h,ae.ERR_FORM_DATA_DEPTH_EXCEEDED)}function N(S,k){if(h===1/0)return JSON.stringify(S);const _=[];return JSON.stringify(S,function(R,P){if(!V.isObject(P))return P;for(;_.length&&_[_.length-1]!==this;)_.pop();return _.push(P),v(k+_.length-1),P})}function j(S,k,_){let T=S;if(V.isReactNative(t)&&V.isReactNativeBlob(S))return t.append(Sp(_,k,l),g(S)),!1;if(S&&!_&&typeof S=="object"){if(V.endsWith(k,"{}"))k=r?k:k.slice(0,-2),S=N(S,1);else if(V.isArray(S)&&p5(S)||(V.isFileList(S)||V.endsWith(k,"[]"))&&(T=V.toArray(S)))return k=yN(k),T.forEach(function(P,L){!(V.isUndefined(P)||P===null)&&t.append(c===!0?Sp([k],L,l):c===null?k:k+"[]",g(P))}),!1}return Em(S)?!0:(t.append(Sp(_,k,l),g(S)),!1)}const b=Object.assign(m5,{defaultVisitor:j,convertValue:g,isVisitable:Em});function C(S,k,_=0){if(!V.isUndefined(S)){if(v(_),m.indexOf(S)!==-1)throw new Error("Circular reference detected in "+k.join("."));
vendor: 4,183 bytes, line 404
404m.push(S),V.forEach(S,function(R,P){(!(V.isUndefined(R)||R===null)&&o.call(t,R,V.isString(P)?P.trim():P,k,b))===!0&&C(R,k?k.concat(P):[P],_+1)}),m.pop()}}if(!V.isObject(e))throw new TypeError("data must be an object");return C(e),t}function bw(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function Pg(e,t){this._pairs=[],e&&Ud(e,this,t)}const wN=Pg.prototype;wN.append=function(t,n){this._pairs.push([t,n])};wN.toString=function(t){const n=t?r=>t.call(this,r,bw):bw;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function g5(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function bN(e,t,n){if(!t)return e;e=e||"";const r=V.isFunction(n)?{serialize:n}:n,o=V.getSafeProp(r,"encode")||g5,l=V.getSafeProp(r,"serialize");let c;if(l?c=l(t,r):c=V.isURLSearchParams(t)?t.toString():new Pg(t,r).toString(o),c){const d=e.indexOf("#");d!==-1&&(e=e.slice(0,d)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}class jw{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){V.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Rg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},x5=typeof URLSearchParams<"u"?URLSearchParams:Pg,v5=typeof FormData<"u"?FormData:null,y5=typeof Blob<"u"?Blob:null,w5={isBrowser:!0,classes:{URLSearchParams:x5,FormData:v5,Blob:y5},protocols:["http","https","file","blob","url","data"]},Ag=typeof window<"u"&&typeof document<"u",km=typeof navigator=="object"&&navigator||void 0,b5=Ag&&(!km||["ReactNative","NativeScript","NS"].indexOf(km.product)<0),j5=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",N5=Ag&&window.location.href||"http://localhost",S5=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ag,hasStandardBrowserEnv:b5,hasStandardBrowserWebWorkerEnv:j5,navigator:km,origin:N5},Symbol.toStringTag,{value:"Module"})),Bt={...S5,...w5};function C5(e,t){return Ud(e,new Bt.classes.URLSearchParams,{visitor:function(n,r,o,l){return Bt.isNode&&V.isBuffer(n)?(this.append(r,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...t})}const Nw=vN;function jN(e){if(e>Nw)throw new ae("FormData field is too deeply nested ("+e+" levels). Max depth: "+Nw,ae.ERR_FORM_DATA_DEPTH_EXCEEDED)}function _5(e){const t=[],n=/\w+|\[(\w*)]/g;let r;for(;(r=n.exec(e))!==null;)jN(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function E5(e){const t={},n=Object.keys(e);let r;const o=n.length;let l;for(r=0;r<o;r++)l=n[r],t[l]=e[l];return t}function NN(e){function t(n,r,o,l){jN(l);let c=n[l++];if(c==="__proto__")return!0;const d=Number.isFinite(+c),h=l>=n.length;return c=!c&&V.isArray(o)?o.length:c,h?(V.hasOwnProp(o,c)?o[c]=V.isArray(o[c])?o[c].concat(r):[o[c],r]:o[c]=r,!d):((!V.hasOwnProp(o,c)||!V.isObject(o[c]))&&(o[c]=[]),t(n,r,o[c],l)&&V.isArray(o[c])&&(o[c]=E5(o[c])),!d)}if(V.isFormData(e)&&V.isFunction(e.entries)){const n={};return V.forEachEntry(e,(r,o)=>{t(_5(r),o,n,0)}),n}return null}const _o=(e,t)=>e!=null&&V.hasOwnProp(e,t)?e[t]:void 0;function k5(e,t,n){if(V.isString(e))try{return(t||JSON.parse)(e),V.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ec={transitional:Rg,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,l=V.isObject(t);if(l&&V.isHTMLForm(t)&&(t=new FormData(t)),V.isFormData(t))return o?JSON.stringify(NN(t)):t;if(V.isArrayBuffer(t)||V.isBuffer(t)||V.isStream(t)||V.isFile(t)||V.isBlob(t)||V.isReadableStream(t))return t;if(V.isArrayBufferView(t))return t.buffer;if(V.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let d;
vendor: 21,467 bytes, lines 404-410
404if(l){const h=_o(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return C5(t,h).toString();if((d=V.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=_o(this,"env"),m=f&&f.FormData;return Ud(d?{"files[]":t}:t,m&&new m,h)}}return l||o?(n.setContentType("application/json",!1),k5(t)):t}],transformResponse:[function(t){const n=_o(this,"transitional")||ec.transitional,r=n&&n.forcedJSONParsing,o=_o(this,"responseType"),l=o==="json";if(V.isResponse(t)||V.isReadableStream(t))return t;if(t&&V.isString(t)&&(r&&!o||l)){const d=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(t,_o(this,"parseReviver"))}catch(h){if(d)throw h.name==="SyntaxError"?ae.from(h,ae.ERR_BAD_RESPONSE,this,null,_o(this,"response")):h}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Bt.classes.FormData,Blob:Bt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch","query"],e=>{ec.headers[e]={}});function Cp(e,t){const n=this||ec,r=t||n,o=Yt.from(r.headers);let l=r.data;return V.forEach(e,function(d){l=d.call(n,l,o.normalize(),t?t.status:void 0)}),o.normalize(),l}function SN(e){return!!(e&&e.__CANCEL__)}let tc=class extends ae{constructor(t,n,r){super(t??"canceled",ae.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function CN(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ae("Request failed with status code "+n.status,n.status>=400&&n.status<500?ae.ERR_BAD_REQUEST:ae.ERR_BAD_RESPONSE,n.config,n.request,n))}function T5(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function P5(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,l=0,c;return t=t!==void 0?t:1e3,function(h){const f=Date.now(),m=r[l];c||(c=f),n[o]=h,r[o]=f;let g=l,v=0;for(;g!==o;)v+=n[g++],g=g%e;if(o=(o+1)%e,o===l&&(l=(l+1)%e),f-c<t)return;const N=m&&f-m;return N?Math.round(v*1e3/N):void 0}}function R5(e,t){let n=0,r=1e3/t,o,l;const c=(f,m=Date.now())=>{n=m,o=null,l&&(clearTimeout(l),l=null),e(...f)};return[(...f)=>{const m=Date.now(),g=m-n;g>=r?c(f,m):(o=f,l||(l=setTimeout(()=>{l=null,c(o)},r-g)))},()=>o&&c(o)]}const pd=(e,t,n=3)=>{let r=0;const o=P5(50,250);return R5(l=>{if(!l||typeof l.loaded!="number")return;const c=l.loaded,d=l.lengthComputable?l.total:void 0,h=d!=null?Math.min(c,d):c,f=Math.max(0,h-r),m=o(f);r=Math.max(r,h);const g={loaded:h,total:d,progress:d?h/d:void 0,bytes:f,rate:m||void 0,estimated:m&&d?(d-h)/m:void 0,event:l,lengthComputable:d!=null,[t?"download":"upload"]:!0};e(g)},n)},Sw=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Cw=e=>(...t)=>V.asap(()=>e(...t)),A5=Bt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Bt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Bt.origin),Bt.navigator&&/(msie|trident)/i.test(Bt.navigator.userAgent)):()=>!0,M5=Bt.hasStandardBrowserEnv?{write(e,t,n,r,o,l,c){if(typeof document>"u")return;const d=[`${e}=${encodeURIComponent(t)}`];V.isNumber(n)&&d.push(`expires=${new Date(n).toUTCString()}`),V.isString(r)&&d.push(`path=${r}`),V.isString(o)&&d.push(`domain=${o}`),l===!0&&d.push("secure"),V.isString(c)&&d.push(`SameSite=${c}`),document.cookie=d.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),o=r.indexOf("=");if(o!==-1&&r.slice(0,o)===e)try{return decodeURIComponent(r.slice(o+1))}catch{return r.slice(o+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function O5(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function D5(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const I5=/^https?:(?!\/\/)/i,L5=/[\t\n\r]/g;function F5(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function V5(e){return F5(e).replace(L5,"")}function _w(e,t){if(typeof e=="string"&&I5.test(V5(e)))throw new ae('Invalid URL: missing "//" after protocol',ae.ERR_INVALID_URL,t)}function _N(e,t,n,r){_w(t,r);let o=!O5(t);return e&&(o||n===!1)?(_w(e,r),D5(e,t)):t}const Ew=e=>e instanceof Yt?{...e}:e;function Vi(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(m,g,v,N){return V.isPlainObject(m)&&V.isPlainObject(g)?V.merge.call({caseless:N},m,g):V.isPlainObject(g)?V.merge({},g):V.isArray(g)?g.slice():g}function o(m,g,v,N){if(V.isUndefined(g)){if(!V.isUndefined(m))return r(void 0,m,v,N)}else return r(m,g,v,N)}function l(m,g){if(!V.isUndefined(g))return r(void 0,g)}function c(m,g){if(V.isUndefined(g)){if(!V.isUndefined(m))return r(void 0,m)}else return r(void 0,g)}function d(m){const g=V.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!V.isUndefined(g))if(V.isPlainObject(g)){if(V.hasOwnProp(g,m))return g[m]}else return;const v=V.hasOwnProp(e,"transitional")?e.transitional:void 0;if(V.isPlainObject(v)&&V.hasOwnProp(v,m))return v[m]}function h(m,g,v){if(V.hasOwnProp(t,v))return r(m,g);if(V.hasOwnProp(e,v))return r(void 0,m)}const f={url:l,method:l,data:l,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,allowedSocketPaths:c,responseEncoding:c,validateStatus:h,headers:(m,g,v)=>o(Ew(m),Ew(g),v,!0)};return V.forEach(Object.keys({...e,...t}),function(g){if(g==="__proto__"||g==="constructor"||g==="prototype")return;const v=V.hasOwnProp(f,g)?f[g]:o,N=V.hasOwnProp(e,g)?e[g]:void 0,j=V.hasOwnProp(t,g)?t[g]:void 0,b=v(N,j,g);V.isUndefined(b)&&v!==h||(n[g]=b)}),V.hasOwnProp(t,"validateStatus")&&V.isUndefined(t.validateStatus)&&d("validateStatusUndefinedResolves")===!1&&(V.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const B5=["content-type","content-length"];function $5(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,o])=>{B5.includes(r.toLowerCase())&&e.set(r,o)})}const U5=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function EN(e){const t=Vi({},e),n=v=>V.hasOwnProp(t,v)?t[v]:void 0,r=n("data");let o=n("withXSRFToken");const l=n("xsrfHeaderName"),c=n("xsrfCookieName");let d=n("headers");const h=n("auth"),f=n("baseURL"),m=n("allowAbsoluteUrls"),g=n("url");if(t.headers=d=Yt.from(d),t.url=bN(_N(f,g,m,t),n("params"),n("paramsSerializer")),h){const v=V.getSafeProp(h,"username")||"",N=V.getSafeProp(h,"password")||"";try{d.set("Authorization","Basic "+btoa(v+":"+(N?U5(N):"")))}catch(j){throw ae.from(j,ae.ERR_BAD_OPTION_VALUE,e)}}if(V.isFormData(r)&&(Bt.hasStandardBrowserEnv||Bt.hasStandardBrowserWebWorkerEnv||V.isReactNative(r)?d.setContentType(void 0):V.isFunction(r.getHeaders)&&$5(d,r.getHeaders(),n("formDataHeaderPolicy"))),Bt.hasStandardBrowserEnv&&(V.isFunction(o)&&(o=o(t)),o===!0||o==null&&A5(t.url))){const N=l&&c&&M5.read(c);N&&d.set(l,N)}return t}const z5=typeof XMLHttpRequest<"u",q5=z5&&function(e){return new Promise(function(n,r){const o=EN(e);let l=o.data;const c=Yt.from(o.headers).normalize();let{responseType:d,onUploadProgress:h,onDownloadProgress:f}=o,m,g,v,N,j;function b(){N&&N(),j&&j(),o.cancelToken&&o.cancelToken.unsubscribe(m),o.signal&&o.signal.removeEventListener("abort",m)}let C=new XMLHttpRequest;C.open(o.method.toUpperCase(),o.url,!0),C.timeout=o.timeout;function S(){if(!C)return;const _=Yt.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),R={data:!d||d==="text"||d==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:_,config:e,request:C};CN(function(L){n(L),b()},function(L){r(L),b()},R),C=null}"onloadend"in C?C.onloadend=S:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.startsWith("file:"))||setTimeout(S)},C.onabort=function(){C&&(r(new ae("Request aborted",ae.ECONNABORTED,e,C)),b(),C=null)},C.onerror=function(T){const R=T&&T.message?T.message:"Network Error",P=new ae(R,ae.ERR_NETWORK,e,C);P.event=T||null,r(P),b(),C=null},C.ontimeout=function(){let T=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const R=o.transitional||Rg;o.timeoutErrorMessage&&(T=o.timeoutErrorMessage),r(new ae(T,R.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,e,C)),b(),C=null},l===void 0&&c.setContentType(null),"setRequestHeader"in C&&V.forEach(gN(c),function(T,R){C.setRequestHeader(R,T)}),V.isUndefined(o.withCredentials)||(C.withCredentials=!!o.withCredentials),d&&d!=="json"&&(C.responseType=o.responseType),f&&([v,j]=pd(f,!0),C.addEventListener("progress",v)),h&&C.upload&&([g,N]=pd(h),C.upload.addEventListener("progress",g),C.upload.addEventListener("loadend",N)),(o.cancelToken||o.signal)&&(m=_=>{C&&(r(!_||_.type?new tc(null,e,C):_),C.abort(),b(),C=null)},o.cancelToken&&o.cancelToken.subscribe(m),o.signal&&(o.signal.aborted?m():o.signal.addEventListener("abort",m)));const k=T5(o.url);if(k&&!Bt.protocols.includes(k)){r(new ae("Unsupported protocol "+k+":",ae.ERR_BAD_REQUEST,e)),b();return}C.send(l||null)})},H5=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const o=function(h){if(!r){r=!0,c();const f=h instanceof Error?h:this.reason;n.abort(f instanceof ae?f:new tc(f instanceof Error?f.message:f))}};let l=t&&setTimeout(()=>{l=null,o(new ae(`timeout of ${t}ms exceeded`,ae.ETIMEDOUT))},t);const c=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(o):h.removeEventListener("abort",o)}),e=null)};e.forEach(h=>h.addEventListener("abort",o,{once:!0}));const{signal:d}=n;return d.unsubscribe=()=>V.asap(c),d},W5=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},K5=async function*(e,t){for await(const n of G5(e))yield*W5(n,t)},G5=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},kw=(e,t,n,r)=>{const o=K5(e,t);let l=0,c,d=h=>{c||(c=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:f,value:m}=await o.next();if(f){d(),h.close();return}let g=m.byteLength;if(n){let v=l+=g;n(v)}h.enqueue(new Uint8Array(m))}catch(f){throw d(f),f}},cancel(h){return d(h),o.return()}},{highWaterMark:2})},md=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Q5=(e,t,n)=>t+2<n&&md(e.charCodeAt(t+1))&&md(e.charCodeAt(t+2));function Y5(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let c=r.length;const d=r.length;for(let N=0;N<d;N++)if(r.charCodeAt(N)===37&&N+2<d){const j=r.charCodeAt(N+1),b=r.charCodeAt(N+2);md(j)&&md(b)&&(c-=2,N+=2)}let h=0,f=d-1;const m=N=>N>=2&&r.charCodeAt(N-2)===37&&r.charCodeAt(N-1)===51&&(r.charCodeAt(N)===68||r.charCodeAt(N)===100);f>=0&&(r.charCodeAt(f)===61?(h++,f--):m(f)&&(h++,f-=3)),h===1&&f>=0&&(r.charCodeAt(f)===61||m(f))&&h++;const v=Math.floor(c/4)*3-(h||0);return v>0?v:0}let l=0;for(let c=0,d=r.length;c<d;c++){const h=r.charCodeAt(c);if(h===37&&Q5(r,c,d))l+=1,c+=2;else if(h<128)l+=1;else if(h<2048)l+=2;else if(h>=55296&&h<=56319&&c+1<d){const f=r.charCodeAt(c+1);f>=56320&&f<=57343?(l+=4,c++):l+=3}else l+=3}return l}const Mg="1.18.1",Tw=64*1024,{isFunction:Ru}=V,X5=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),Pw=e=>{if(!V.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Rw=(e,...t)=>{try{return!!e(...t)}catch{return!1}},J5=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},Z5=e=>{const t=V.global!==void 0&&V.global!==null?V.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=V.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:l,Response:c}=e,d=o?Ru(o):typeof fetch=="function",h=Ru(l),f=Ru(c);if(!d)return!1;const m=d&&Ru(n),g=d&&(typeof r=="function"?(S=>k=>S.encode(k))(new r):async S=>new Uint8Array(await new l(S).arrayBuffer())),v=h&&m&&Rw(()=>{let S=!1;const k=new l(Bt.origin,{body:new n,method:"POST",get duplex(){return S=!0,"half"}}),_=k.headers.has("Content-Type");return k.body!=null&&k.body.cancel(),S&&!_}),N=f&&m&&Rw(()=>V.isReadableStream(new c("").body)),j={stream:N&&(S=>S.body)};d&&["text","arrayBuffer","blob","formData","stream"].forEach(S=>{!j[S]&&(j[S]=(k,_)=>{let T=k&&k[S];if(T)return T.call(k);throw new ae(`Response type '${S}' is not supported`,ae.ERR_NOT_SUPPORT,_)})});const b=async S=>{if(S==null)return 0;if(V.isBlob(S))return S.size;if(V.isSpecCompliantForm(S))return(await new l(Bt.origin,{method:"POST",body:S}).arrayBuffer()).byteLength;if(V.isArrayBufferView(S)||V.isArrayBuffer(S))return S.byteLength;if(V.isURLSearchParams(S)&&(S=S+""),V.isString(S))return(await g(S)).byteLength},C=async(S,k)=>{const _=V.toFiniteNumber(S.getContentLength());return _??b(k)};return async S=>{let{url:k,method:_,data:T,signal:R,cancelToken:P,timeout:L,onDownloadProgress:M,onUploadProgress:G,responseType:H,headers:ne,withCredentials:ce="same-origin",fetchOptions:se,maxContentLength:ue,maxBodyLength:Te}=EN(S);const oe=V.isNumber(ue)&&ue>-1,re=V.isNumber(Te)&&Te>-1,B=ie=>V.hasOwnProp(S,ie)?S[ie]:void 0;let K=o||fetch;H=H?(H+"").toLowerCase():"text";let Y=H5([R,P&&P.toAbortSignal()],L),D=null;const W=Y&&Y.unsubscribe&&(()=>{Y.unsubscribe()});let de,he=null;const Pe=()=>new ae("Request body larger than maxBodyLength limit",ae.ERR_BAD_REQUEST,S,D);try{let ie;const Q=B("auth");if(Q){const Ae=V.getSafeProp(Q,"username")||"",dt=V.getSafeProp(Q,"password")||"";ie={username:Ae,password:dt}}if(J5(k)){const Ae=new URL(k,Bt.origin);if(!ie&&(Ae.username||Ae.password)){const dt=Pw(Ae.username),vn=Pw(Ae.password);ie={username:dt,password:vn}}(Ae.username||Ae.password)&&(Ae.username="",Ae.password="",k=Ae.href)}if(ie&&(ne.delete("authorization"),ne.set("Authorization","Basic "+btoa(X5((ie.username||"")+":"+(ie.password||""))))),oe&&typeof k=="string"&&k.startsWith("data:")&&Y5(k)>ue)throw new ae("maxContentLength size of "+ue+" exceeded",ae.ERR_BAD_RESPONSE,S,D);if(re&&_!=="get"&&_!=="head"){const Ae=await b(T);if(typeof Ae=="number"&&isFinite(Ae)&&(de=Ae,Ae>Te))throw Pe()}const me=re&&(V.isReadableStream(T)||V.isStream(T)),Se=(Ae,dt,vn)=>kw(Ae,Tw,$t=>{if(re&&$t>Te)throw he=Pe();dt&&dt($t)},vn);if(v&&_!=="get"&&_!=="head"&&(G||me)){if(de=de??await C(ne,T),de!==0||me){let Ae=new l(k,{method:"POST",body:T,duplex:"half"}),dt;if(V.isFormData(T)&&(dt=Ae.headers.get("content-type"))&&ne.setContentType(dt),Ae.body){const[vn,$t]=G&&Sw(de,pd(Cw(G)))||[];T=Se(Ae.body,vn,$t)}}}else if(me&&!h&&m&&_!=="get"&&_!=="head")T=Se(T);else if(me&&h&&!v&&_!=="get"&&_!=="head")throw new ae("Stream request bodies are not supported by the current fetch implementation",ae.ERR_NOT_SUPPORT,S,D);V.isString(ce)||(ce=ce?"include":"omit");const Re=h&&"credentials"in l.prototype;if(V.isFormData(T)){const Ae=ne.getContentType();Ae&&/^multipart\/form-data/i.test(Ae)&&!/boundary=/i.test(Ae)&&ne.delete("content-type")}ne.set("User-Agent","axios/"+Mg,!1);const Le={...se,signal:Y,method:_.toUpperCase(),headers:gN(ne.normalize()),body:T,duplex:"half",credentials:Re?ce:void 0};D=h&&new l(k,Le);let Ie=await(h?K(D,se):K(k,Le));const vt=Yt.from(Ie.headers);if(oe){const Ae=V.toFiniteNumber(vt.getContentLength());if(Ae!=null&&Ae>ue)throw new ae("maxContentLength size of "+ue+" exceeded",ae.ERR_BAD_RESPONSE,S,D)}const Pt=N&&(H==="stream"||H==="response");if(N&&Ie.body&&(M||oe||Pt&&W)){const Ae={};["status","statusText","headers"].forEach(Tr=>{Ae[Tr]=Ie[Tr]});const dt=V.toFiniteNumber(vt.getContentLength()),[vn,$t]=M&&Sw(dt,pd(Cw(M),!0))||[];let rs=0;const ss=Tr=>{if(oe&&(rs=Tr,rs>ue))throw new ae("maxContentLength size of "+ue+" exceeded",ae.ERR_BAD_RESPONSE,S,D);vn&&vn(Tr)};Ie=new c(kw(Ie.body,Tw,ss,()=>{$t&&$t(),W&&W()}),Ae)}H=H||"text";let Rt=await j[V.findKey(j,H)||"text"](Ie,S);if(oe&&!N&&!Pt){let Ae;if(Rt!=null&&(typeof Rt.byteLength=="number"?Ae=Rt.byteLength:typeof Rt.size=="number"?Ae=Rt.size:typeof Rt=="string"&&(Ae=typeof r=="function"?new r().encode(Rt).byteLength:Rt.length)),typeof Ae=="number"&&Ae>ue)throw new ae("maxContentLength size of "+ue+" exceeded",ae.ERR_BAD_RESPONSE,S,D)}return!Pt&&W&&W(),await new Promise((Ae,dt)=>{CN(Ae,dt,{data:Rt,headers:Yt.from(Ie.headers),status:Ie.status,statusText:Ie.statusText,config:S,request:D})})}catch(ie){if(W&&W(),Y&&Y.aborted&&Y.reason instanceof ae){const Q=Y.reason;throw Q.config=S,D&&(Q.request=D),ie!==Q&&Object.defineProperty(Q,"cause",{__proto__:null,value:ie,writable:!0,enumerable:!1,configurable:!0}),Q}if(he)throw D&&!he.request&&(he.request=D),he;if(ie instanceof ae)throw D&&!ie.request&&(ie.request=D),ie;if(ie&&ie.name==="TypeError"&&/Load failed|fetch/i.test(ie.message)){const Q=new ae("Network Error",ae.ERR_NETWORK,S,D,ie&&ie.response);throw Object.defineProperty(Q,"cause",{__proto__:null,value:ie.cause||ie,writable:!0,enumerable:!1,configurable:!0}),Q}throw ae.from(ie,ie&&ie.code,S,D,ie&&ie.response)}}},eO=new Map,kN=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,l=[r,o,n];let c=l.length,d=c,h,f,m=eO;for(;d--;)h=l[d],f=m.get(h),f===void 0&&m.set(h,f=d?new Map:Z5(t)),m=f;return f};kN();const Og={http:f5,xhr:q5,fetch:{get:kN}};V.forEach(Og,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Aw=e=>`- ${e}`,tO=e=>V.isFunction(e)||e===null||e===!1;function nO(e,t){e=V.isArray(e)?e:[e];const{length:n}=e;let r,o;const l={};for(let c=0;c<n;c++){r=e[c];let d;if(o=r,!tO(r)&&(o=Og[(d=String(r)).toLowerCase()],o===void 0))throw new ae(`Unknown adapter '${d}'`);if(o&&(V.isFunction(o)||(o=o.get(t))))break;l[d||"#"+c]=o}if(!o){const c=Object.entries(l).map(([h,f])=>`adapter ${h} `+(f===!1?"is not supported by the environment":"is not available in the build"));let d=n?c.length>1?`since :
405`+c.map(Aw).join(`
406`):" "+Aw(c[0]):"as no adapter specified";throw new ae("There is no suitable adapter to dispatch the request "+d,ae.ERR_NOT_SUPPORT)}return o}const TN={getAdapter:nO,adapters:Og};function _p(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new tc(null,e)}function Mw(e){return _p(e),e.headers=Yt.from(e.headers),e.data=Cp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),TN.getAdapter(e.adapter||ec.adapter,e)(e).then(function(r){_p(e),e.response=r;try{r.data=Cp.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=Yt.from(r.headers),r},function(r){if(!SN(r)&&(_p(e),r&&r.response)){e.response=r.response;try{r.response.data=Cp.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=Yt.from(r.response.headers)}return Promise.reject(r)})}const zd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{zd[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ow={};zd.transitional=function(t,n,r){function o(l,c){return"[Axios v"+Mg+"] Transitional option '"+l+"'"+c+(r?". "+r:"")}return(l,c,d)=>{if(t===!1)throw new ae(o(c," has been removed"+(n?" in "+n:"")),ae.ERR_DEPRECATED);return n&&!Ow[c]&&(Ow[c]=!0,console.warn(o(c," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,c,d):!0}};zd.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function rO(e,t,n){if(typeof e!="object"||e===null)throw new ae("options must be an object",ae.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const l=r[o],c=Object.prototype.hasOwnProperty.call(t,l)?t[l]:void 0;if(c){const d=e[l],h=d===void 0||c(d,l,e);if(h!==!0)throw new ae("option "+l+" must be "+h,ae.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ae("Unknown option "+l,ae.ERR_BAD_OPTION)}}const Yu={assertOptions:rO,validators:zd},Wt=Yu.validators;let Ai=class{constructor(t){this.defaults=t||{},this.interceptors={request:new jw,response:new jw}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const l=(()=>{if(!o.stack)return"";const c=o.stack.indexOf(`
407`);return c===-1?"":o.stack.slice(c+1)})();try{if(!r.stack)r.stack=l;else if(l){const c=l.indexOf(`
408`),d=c===-1?-1:l.indexOf(`
409`,c+1),h=d===-1?"":l.slice(d+1);String(r.stack).endsWith(h)||(r.stack+=`
410`+l)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Vi(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:l}=n;r!==void 0&&Yu.assertOptions(r,{silentJSONParsing:Wt.transitional(Wt.boolean),forcedJSONParsing:Wt.transitional(Wt.boolean),clarifyTimeoutError:Wt.transitional(Wt.boolean),legacyInterceptorReqResOrdering:Wt.transitional(Wt.boolean),advertiseZstdAcceptEncoding:Wt.transitional(Wt.boolean),validateStatusUndefinedResolves:Wt.transitional(Wt.boolean)}
vendor: 3,165 bytes, line 410
410,!1),o!=null&&(V.isFunction(o)?n.paramsSerializer={serialize:o}:Yu.assertOptions(o,{encode:Wt.function,serialize:Wt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Yu.assertOptions(n,{baseUrl:Wt.spelling("baseURL"),withXsrfToken:Wt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let c=l&&V.merge(l.common,l[n.method]);l&&V.forEach(["delete","get","head","post","put","patch","query","common"],j=>{delete l[j]}),n.headers=Yt.concat(c,l);const d=[];let h=!0;this.interceptors.request.forEach(function(b){if(typeof b.runWhen=="function"&&b.runWhen(n)===!1)return;h=h&&b.synchronous;const C=n.transitional||Rg;C&&C.legacyInterceptorReqResOrdering?d.unshift(b.fulfilled,b.rejected):d.push(b.fulfilled,b.rejected)});const f=[];this.interceptors.response.forEach(function(b){f.push(b.fulfilled,b.rejected)});let m,g=0,v;if(!h){const j=[Mw.bind(this),void 0];for(j.unshift(...d),j.push(...f),v=j.length,m=Promise.resolve(n);g<v;)m=m.then(j[g++],j[g++]);return m}v=d.length;let N=n;for(;g<v;){const j=d[g++],b=d[g++];try{N=j(N)}catch(C){b.call(this,C);break}}try{m=Mw.call(this,N)}catch(j){return Promise.reject(j)}for(g=0,v=f.length;g<v;)m=m.then(f[g++],f[g++]);return m}getUri(t){t=Vi(this.defaults,t);const n=_N(t.baseURL,t.url,t.allowAbsoluteUrls,t);return bN(n,t.params,t.paramsSerializer)}};V.forEach(["delete","get","head","options"],function(t){Ai.prototype[t]=function(n,r){return this.request(Vi(r||{},{method:t,url:n,data:r&&V.hasOwnProp(r,"data")?r.data:void 0}))}});V.forEach(["post","put","patch","query"],function(t){function n(r){return function(l,c,d){return this.request(Vi(d||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:l,data:c}))}}Ai.prototype[t]=n(),t!=="query"&&(Ai.prototype[t+"Form"]=n(!0))});let sO=class PN{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const r=this;this.promise.then(o=>{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](o);r._listeners=null}),this.promise.then=o=>{let l;const c=new Promise(d=>{r.subscribe(d),l=d}).then(o);return c.cancel=function(){r.unsubscribe(l)},c},t(function(l,c,d){r.reason||(r.reason=new tc(l,c,d),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new PN(function(o){t=o}),cancel:t}}};function iO(e){return function(n){return e.apply(null,n)}}function oO(e){return V.isObject(e)&&e.isAxiosError===!0}const Tm={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
410alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Tm).forEach(([e,t])=>{Tm[t]=e});function RN(e){const t=new Ai(e),n=aN(Ai.prototype.request,t);return V.extend(n,Ai.prototype,t,{allOwnKeys:!0}),V.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return RN(Vi(e,o))},n}const jt=RN(ec);jt.Axios=Ai;jt.CanceledError=tc;jt.CancelToken=sO;jt.isCancel=SN;jt.VERSION=Mg;jt.toFormData=Ud;jt.AxiosError=ae;jt.Cancel=jt.CanceledError;jt.all=function(t){return Promise.all(t)};jt.spread=iO;jt.isAxiosError=oO;jt.mergeConfig=Vi;jt.AxiosHeaders=Yt;jt.formToJSON=e=>NN(V.isHTMLForm(e)?new FormData(e):e);jt.getAdapter=TN.getAdapter;jt.HttpStatusCode=Tm;jt.default=jt;const{Axios:Vz,AxiosError:Bz,CanceledError:$z,isCancel:Uz,CancelToken:zz,VERSION:qz,all:Hz,Cancel:Wz,isAxiosError:Kz,spread:Gz,toFormData:Qz,AxiosHeaders:Yz,HttpStatusCode:Xz,formToJSON:Jz,getAdapter:Zz,mergeConfig:eq,create:tq}=jt,AN=typeof window>"u",Dw=!AN&&window.self!==window.top,aO=!AN&&typeof document>"u",Ep=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),Ft=[];for(let e=0;e<256;++e)Ft.push((e+256).toString(16).slice(1));function lO(e,t=0){return(Ft[e[t+0]]+Ft[e[t+1]]+Ft[e[t+2]]+Ft[e[t+3]]+"-"+Ft[e[t+4]]+Ft[e[t+5]]+"-"+Ft[e[t+6]]+Ft[e[t+7]]+"-"+Ft[e[t+8]]+Ft[e[t+9]]+"-"+Ft[e[t+10]]+Ft[e[t+11]]+Ft[e[t+12]]+Ft[e[t+13]]+Ft[e[t+14]]+Ft[e[t+15]]).toLowerCase()}let kp;const cO=new Uint8Array(16);function uO(){if(!kp){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");kp=crypto.getRandomValues.bind(crypto)}return kp(cO)}const dO=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Iw={randomUUID:dO};function hO(e,t,n){var o;e=e||{};const r=e.random??((o=e.rng)==null?void 0:o.call(e))??uO();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,lO(r)}function fO(e,t,n){return Iw.randomUUID&&!e?Iw.randomUUID():hO(e)}const al=typeof window<"u"?window:{base44SharedInstances:{}};function pO(e,t){return al.base44SharedInstances||(al.base44SharedInstances={}),al.base44SharedInstances[e]||(al.base44SharedInstances[e]={instance:t()}),al.base44SharedInstances[e].instance}const mO="__user_heartbeat_event__",gO="__initialization_event__",xO="__session_duration_event__",Lw="analytics-enable",Fw="base44_analytics_session_id",vO={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},yO="analytics",nt=pO(yO,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,config:{...vO,...EO()}})),wO=({axiosClient:e,serverUrl:t,appId:n,userAuthModule:r})=>{var o;const{maxQueueSize:l,throttleTime:c,batchSize:d}=nt.config;if(!(!((o=nt.config)===null||o===void 0)&&o.enabled)||aO)return{track:()=>{},cleanup:()=>{}};let h;const f=`${t}/api/apps/${n}/analytics/track/batch`,m=async _=>{await e.request({method:"POST",url:`/apps/${n}/analytics/track/batch`,data:{events:_}})},g=_=>{try{const T=JSON.stringify({events:_}),R=new Blob([T],{type:"application/json"});return typeof navigator>"u"||T.length>6e4||!navigator.sendBeacon(f,R)}catch{return!1}},v=async(_,T={})=>
410{if(_.length===0)return;const R=await _O(r),P=_.map(CO(R));try{(!T.isBeacon||!g(P))&&await m(P)}catch{}},N=()=>{Bw(v,{throttleTime:c,batchSize:d})},j=_=>{if(nt.requestsQueue.length>=l)return;const T=SO();nt.requestsQueue.push({..._,...T}),N()},b=()=>{Bw(v,{throttleTime:c,batchSize:d}),h=$w(j),jO()},C=()=>{Vw(),h==null||h(),NO(j);const _=nt.requestsQueue.splice(0);v(_,{isBeacon:!0})},S=()=>{typeof window>"u"||(document.visibilityState==="hidden"?C():document.visibilityState==="visible"&&b())},k=()=>{Vw(),h==null||h(),typeof window<"u"&&window.removeEventListener("visibilitychange",S)};return N(),h=$w(j),bO(j),typeof window<"u"&&window.addEventListener("visibilitychange",S),{track:j,cleanup:k}};function Vw(){nt.isProcessing=!1}async function Bw(e,t){if(nt.isProcessing)return;nt.isProcessing=!0;const{throttleTime:n=1e3,batchSize:r=30}=t??{};for(;nt.isProcessing&&nt.requestsQueue.length>0;){const o=nt.requestsQueue.splice(0,r);o.length&&await e(o),await new Promise(l=>setTimeout(l,n))}nt.isProcessing=!1}function $w(e){var t;if(nt.isHeartBeatProcessing||((t=nt.config.heartBeatInterval)!==null&&t!==void 0?t:0)<10)return()=>{};nt.isHeartBeatProcessing=!0;const n=setInterval(()=>{e({eventName:mO})},nt.config.heartBeatInterval);return()=>{clearInterval(n),nt.isHeartBeatProcessing=!1}}function bO(e){typeof window>"u"||nt.wasInitializationTracked||(nt.wasInitializationTracked=!0,e({eventName:gO,properties:{referrer:document==null?void 0:document.referrer}}))}function jO(){typeof window>"u"||nt.sessionStartTime!==null||(nt.sessionStartTime=new Date().toISOString())}function NO(e){if(typeof window>"u"||nt.sessionStartTime===null)return;const t=new Date().getTime()-new Date(nt.sessionStartTime).getTime();nt.sessionStartTime=null,e({eventName:xO,properties:{sessionDuration:t}})}function SO(){return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"?window.location.pathname:null}}function CO(e){return t=>({event_name:t.eventName,properties:t.properties,timestamp:t.timestamp,page_url:t.pageUrl,...e})}let Tp=null;async function _O(e){if(!nt.sessionContext){if(!Tp){const t=Dg();Tp=e.me().then(n=>({user_id:n.id,session_id:t})).catch(()=>({user_id:null,session_id:t}))}nt.sessionContext=await Tp}return nt.sessionContext}function EO(){if(typeof window>"u"||!window.location)return;const t=new URLSearchParams(window.location.search).get(Lw);if(t==null||!t.length)return;const n=new URLSearchParams(window.location.search);n.delete(Lw);const r=window.location.pathname+(n.toString()?"?"+n.toString():"");return window.history.replaceState({},"",r),{enabled:t==="true"}}function Dg(){if(typeof window>"u")return Ep();try{const e=localStorage.getItem(Fw);if(!e){const t=Ep();return localStorage.setItem(Fw,t),t}return e}catch{return Ep()}}class kO extends Error{constructor(t,n,r,o,l){super(t),this.name="Base44Error",this.status=n,this.code=r,this.data=o,this.originalError=l}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function fl({baseURL:e,headers:t={},token:n,interceptResponses:r=!0,onError:o}){const l=jt.create({baseURL:e,headers:{"Content-Type":"application/json",Accept:"application/json",...t}});return n&&(l.defaults.headers.common.Authorization=`Bearer ${n}`),l.interceptors.request.use(c=>{typeof window<"u"&&window.location&&(c.headers.set("X-Origin-URL",window.location.href),c.headers.get("Authorization")||c.headers.set("X-Base44-Anonymous-Id",Dg()));const d=fO();if(c.requestId=d,Dw)try{window.parent.postMessage({type:"api-request-start",requestId:d,data:{url:e+c.url,method:c.method,body:c.data instanceof FormData?"[FormData object]":c.data}},"*")}catch{}return c}),r&&l.interceptors.response.use(c=>{var d;const h=(d=c.config)===null||d===void 0?void 0:d.requestId;try{Dw&&h&&window.parent.postMessage({type:"api-request-end",requestId:h,data:{statusCode:c.status,response:c.data}},"*")}catch{}return c.data},c=>{var d,h,f,m,g,v,N,j;const b=((h=(d=c.response)===null||d===void 0?void 0:d.data)===null||h===void 0?void 0:h.message)||((m=(f=c.response)===null||f===void 0?void 0:f.data)===null||m===void 0?void 0:m.detail)||c.message,C=new kO(b,(g=c.response)===null||g===void 0?void 0:g.status,(N=(v=c.response)===null||v===void 0?void 0:v.data)===null||N===void 0?void 0:N.co
410de,(j=c.response)===null||j===void 0?void 0:j.data,c);return o==null||o(C),Promise.reject(C)}),l}function Uw(e){const{axios:t,appId:n,getSocket:r}=e;return new Proxy({},{get(o,l){if(!(typeof l!="string"||l==="then"||l.startsWith("_")))return PO(t,n,l,r)}})}function TO(e){var t;try{const n=JSON.parse(e);return{type:n.type,data:n.data,id:n.id||((t=n.data)===null||t===void 0?void 0:t.id),timestamp:n.timestamp||new Date().toISOString()}}catch(n){return console.warn("[Base44 SDK] Failed to parse realtime message:",n),null}}function PO(e,t,n,r){const o=`/apps/${t}/entities/${n}`;return{async list(l,c,d,h){const f={};return l&&(f.sort=l),c&&(f.limit=c),d&&(f.skip=d),h&&(f.fields=Array.isArray(h)?h.join(","):h),e.get(o,{params:f})},async filter(l,c,d,h,f){const m={q:JSON.stringify(l)};return c&&(m.sort=c),d&&(m.limit=d),h&&(m.skip=h),f&&(m.fields=Array.isArray(f)?f.join(","):f),e.get(o,{params:m})},async get(l){return e.get(`${o}/${l}`)},async create(l){return e.post(o,l)},async update(l,c){return e.put(`${o}/${l}`,c)},async delete(l){return e.delete(`${o}/${l}`)},async deleteMany(l){return e.delete(o,{data:l})},async bulkCreate(l){return e.post(`${o}/bulk`,l)},async updateMany(l,c){return e.patch(`${o}/update-many`,{query:l,data:c})},async bulkUpdate(l){return e.put(`${o}/bulk`,l)},async importEntities(l){const c=new FormData;return c.append("file",l,l.name),e.post(`${o}/import`,c,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(l){const c=`entities:${t}:${n}`;return r().subscribeToRoom(c,{update_model:f=>{var m;const g=TO(f.data);if(g){g.type!=="delete"&&(!((m=g.data)===null||m===void 0)&&m._oversize)&&console.error(`[Base44 SDK] Realtime broadcast for ${n}#${g.id} was oversize and got slimmed for transport. Fields >10 KB are empty and the rest of the record may be a stub. Call \`entities.${n}.get("${g.id}")\` to fetch the full record.`);try{l(g)}catch(v){console.error("[Base44 SDK] Subscription callback error:",v)}}}})}}}function RO(e,t){return{async call(n,r,o){if(!(n!=null&&n.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(r!=null&&r.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:l,queryParams:c,...d}=o??{},h={...d,...l&&{path_params:l},...c&&{query_params:c}};return await e.post(`/apps/${t}/integrations/custom/${n}/${r}`,h)}}}function zw(e,t){const n=RO(e,t);return new Proxy({},{get(r,o){if(!(typeof o!="string"||o==="then"||o.startsWith("_")))return o==="custom"?n:new Proxy({},{get(l,c){if(!(typeof c!="string"||c==="then"||c.startsWith("_")))return async d=>{if(typeof d=="string")throw new Error(`Integration ${c} must receive an object with named parameters, received: ${d}`);let h,f;return d instanceof FormData||d&&Object.values(d).some(m=>m instanceof File)?(h=new FormData,Object.keys(d).forEach(m=>{d[m]instanceof File?h.append(m,d[m],d[m].name):typeof d[m]=="object"&&d[m]!==null?h.append(m,JSON.stringify(d[m])):h.append(m,d[m])}),f="multipart/form-data"):(h=d,f="application/json"),o==="Core"?e.post(`/apps/${t}/integration-endpoints/Core/${c}`,h||d,{headers:{"Content-Type":f}}):e.post(`/apps/${t}/integration-endpoints/installable/${o}/integration-endpoints/${c}`,h||d,{headers:{"Content-Type":f}})}}})}})}function AO(){return typeof window>"u"?!1:window!==window.parent}function MO(e,t,n){const l=Math.round(window.screenX+(window.outerWidth-500)/2),c=Math.round(window.screenY+(window.outerHeight-600)/2),d=window.open(e,"base44_auth",`width=500,height=600,left=${l},top=${c},resizable=yes,scrollbars=yes`);if(!d)return;const h=()=>{window.removeEventListener("message",f),clearInterval(m),d.closed||d.close()},f=g=>{var v;if(g.origin!==n||g.source!==d||!(!((v=g.data)===null||v===void 0)&&v.access_token))return;h();const N=new URL(t),{access_token:j,is_new_user:b}=g.data;N.searchParams.set("access_token",j),b!=null&&N.searchParams.set("is_new_user",String(b)),window.location.href=N.toString()},m=setInterval(()=>{d.closed&&h()},500);window.addEventListener("message",f)}function OO(e,t,n,r){return{async me(){return e.get(`/apps/${n}/entities/User/me`)},async updateMe(o){return e.put(`/apps/${n}/entities/User/me`,o)}
410,redirectToLogin(o){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const l=o?new URL(o,window.location.origin).toString():window.location.href,c=`${r.appBaseUrl}/login?from_url=${encodeURIComponent(l)}`;window.location.href=c},loginWithProvider(o,l="/"){const c=new URL(l,window.location.origin).toString(),d=`app_id=${n}&from_url=${encodeURIComponent(c)}`;let h;o==="sso"?h=`/apps/${n}/auth/sso/login`:h=`/apps/auth${o==="google"?"":`/${o}`}/login`;const f=`${r.appBaseUrl}/api${h}?${d}`;if(AO()){const m=`${f}&popup_origin=${encodeURIComponent(window.location.origin)}`;return MO(m,c,window.location.origin)}window.location.href=f},logout(o){if(delete e.defaults.headers.common.Authorization,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(d){console.error("Failed to remove token from localStorage:",d)}const l=o||window.location.href,c=`${r.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(l)}`;window.location.href=c}},setToken(o,l=!0){if(o&&(e.defaults.headers.common.Authorization=`Bearer ${o}`,t.defaults.headers.common.Authorization=`Bearer ${o}`,l&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",o),window.localStorage.setItem("token",o)}catch(c){console.error("Failed to save token to localStorage:",c)}},async loginViaEmailPassword(o,l,c){var d;try{const h=await e.post(`/apps/${n}/auth/login`,{email:o,password:l,...c&&{turnstile_token:c}}),{access_token:f,user:m}=h;return f&&this.setToken(f),{access_token:f,user:m}}catch(h){throw((d=h.response)===null||d===void 0?void 0:d.status)===401&&await this.logout(),h}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(o,l){return e.post(`/apps/${n}/users/invite-user`,{user_email:o,role:l})},register(o){return e.post(`/apps/${n}/auth/register`,o)},verifyOtp({email:o,otpCode:l}){return e.post(`/apps/${n}/auth/verify-otp`,{email:o,otp_code:l})},resendOtp(o){return e.post(`/apps/${n}/auth/resend-otp`,{email:o})},resetPasswordRequest(o){return e.post(`/apps/${n}/auth/reset-password-request`,{email:o})},resetPassword({resetToken:o,newPassword:l}){return e.post(`/apps/${n}/auth/reset-password`,{reset_token:o,new_password:l})},changePassword({userId:o,currentPassword:l,newPassword:c}){return e.post(`/apps/${n}/auth/change-password`,{user_id:o,current_password:l,new_password:c})}}}function DO(e,t){return{async getAccessToken(n){const r=`/apps/${t}/auth/sso/accesstoken/${n}`;return e.get(r)},async getIdToken(n){const r=`/apps/${t}/auth/sso/idtoken/${n}`;return e.get(r)}}}function IO(e,t){return{async getAccessToken(n){if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");return(await e.get(`/apps/${t}/external-auth/tokens/${n}`)).access_token},async getConnection(n){var r;if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");const l=await e.get(`/apps/${t}/external-auth/tokens/${n}`);return{accessToken:l.access_token,connectionConfig:(r=l.connection_config)!==null&&r!==void 0?r:null}},async getWorkspaceConnection(n){var r;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const l=await e.get(`/apps/${t}/external-auth/tokens/connectors/${n}`);return{accessToken:l.access_token,connectionConfig:(r=l.connection_config)!==null&&r!==void 0?r:null}},async getCurrentAppUserAccessToken(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await e.get(`/apps/${t}/app-user-auth/connectors/${n}/token`)).access_token},async getCurrentAppUserConnection(n){var r;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const l=await e.get(`/apps/${t}/app-user-auth/connectors/${n}/token`);return{accessToken:l.access_token,connectionConfig:(r=l.connection_config)!==null&&r!==void 0?r:null}}}}function LO(e,t){return{async connectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await e.post(`/apps/${t}/app-user-auth/connectors/${n}/initiate`)).redirect_url}
410,async disconnectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");await e.delete(`/apps/${t}/app-user-auth/connectors/${n}`)}}}function Mi(e={}){const{storageKey:t="base44_access_token",paramName:n="access_token",saveToStorage:r=!0,removeFromUrl:o=!0}=e;let l=null;if(typeof window<"u"&&window.location)try{const c=new URLSearchParams(window.location.search);if(l=c.get(n),l){if(r&&FO(l,{storageKey:t}),o){c.delete(n);const d=`${window.location.pathname}${c.toString()?`?${c.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,d)}return l}}catch(c){console.error("Error retrieving token from URL:",c)}if(typeof window<"u"&&window.localStorage)try{return l=window.localStorage.getItem(t),l}catch(c){console.error("Error retrieving token from local storage:",c)}return null}function FO(e,t){const{storageKey:n="base44_access_token"}=t;if(typeof window>"u"||!window.localStorage||!e)return!1;try{return window.localStorage.setItem(n,e),window.localStorage.setItem("token",e),!0}catch(r){return console.error("Error saving token to local storage:",r),!1}}function qw(e,t,n){const r=(l,c)=>l?`${String(l).replace(/\/$/,"")}${c}`:c,o=l=>{const c=new Headers;if(n!=null&&n.getAuthHeaders){const d=n.getAuthHeaders();Object.entries(d).forEach(([h,f])=>{f!=null&&c.set(h,String(f))})}return l&&new Headers(l).forEach((d,h)=>{c.set(h,d)}),c};return{async invoke(l,c){if(typeof c=="string")throw new Error(`Function ${l} must receive an object with named parameters, received: ${c}`);let d,h;return c instanceof FormData||c&&Object.values(c).some(f=>f instanceof File)?(d=new FormData,Object.keys(c).forEach(f=>{c[f]instanceof File?d.append(f,c[f],c[f].name):typeof c[f]=="object"&&c[f]!==null?d.append(f,JSON.stringify(c[f])):d.append(f,c[f])}),h="multipart/form-data"):(d=c,h="application/json"),e.post(`/apps/${t}/functions/${l}`,d||c,{headers:{"Content-Type":h}})},async fetch(l,c={}){const h=`/functions${l.startsWith("/")?l:`/${l}`}`,f=o(c.headers),m={...c,headers:f};return await fetch(r(n==null?void 0:n.baseURL,h),m)}}}function Hw({axios:e,getSocket:t,appId:n,serverUrl:r,token:o}){const l=`/apps/${n}/agents`,c={},d=()=>e.get(`${l}/conversations`),h=b=>e.get(`${l}/conversations/${b}`);return{getConversations:d,getConversation:h,listConversations:b=>e.get(`${l}/conversations`,{params:b}),createConversation:b=>e.post(`${l}/conversations`,b),addMessage:async(b,C)=>e.post(`${l}/conversations/v2/${b.id}/messages`,C),subscribeToConversation:(b,C)=>{const S=`/agent-conversations/${b}`,k=t(),_=h(b).then(T=>(c[b]=T,T));return k.subscribeToRoom(S,{connect:()=>{},update_model:async({data:T})=>{const R=JSON.parse(T);if(R._message){await _;const P=R._message,L=c[b];if(L){const M=L.messages||[],G=M.findIndex(ne=>ne.id===P.id),H=G!==-1?M.map((ne,ce)=>ce===G?P:ne):[...M,P];c[b]={...L,messages:H},C==null||C(c[b])}}}})},getWhatsAppConnectURL:b=>{const C=`${r}/api/apps/${n}/agents/${encodeURIComponent(b)}/whatsapp`,S=o??Mi();return S?`${C}?token=${S}`:C},getTelegramConnectURL:b=>{const C=`${r}/api/apps/${n}/agents/${encodeURIComponent(b)}/telegram`,S=o??Mi();return S?`${C}?token=${S}`:C}}}function Ww({serverUrl:e,token:t,appId:n}){return{connection:()=>{var o;return{baseURL:`${e}/api/apps/${n}/ai/openai/v1`,token:(o=t??Mi())!==null&&o!==void 0?o:""}}}}function Kw(e,t){const n=`/app-logs/${t}`;return{async logUserInApp(r){await e.post(`${n}/log-user-in-app/${r}`)},async fetchLogs(r={}){return await e.get(n,{params:r})},async getStats(r={}){return await e.get(`${n}/stats`,{params:r})}}}function VO(e,t){return{async inviteUser(n,r){if(r!=="user"&&r!=="admin")throw new Error(`Invalid role: "${r}". Role must be either "user" or "admin".`);return await e.post(`/apps/${t}/runtime/users/invite-user`,{user_email:n,role:r})}}}const Sr=Object.create(null);Sr.open="0";Sr.close="1";Sr.ping="2";Sr.pong="3";Sr.message="4";Sr.upgrade="5";Sr.noop="6";const Xu=Object.create(null);Object.keys(Sr).forEach(e=>{Xu[Sr[e]]=e});const Pm={type:"error",data:"parser error"},MN=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ON=typeof ArrayBuffer=="function",DN=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Ig=({type:e,data:t},n,r)=>
vendor: 5,631 bytes, line 410
410MN&&t instanceof Blob?n?r(t):Gw(t,r):ON&&(t instanceof ArrayBuffer||DN(t))?n?r(t):Gw(new Blob([t]),r):r(Sr[e]+(t||"")),Gw=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function Qw(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Pp;function BO(e,t){if(MN&&e.data instanceof Blob)return e.data.arrayBuffer().then(Qw).then(t);if(ON&&(e.data instanceof ArrayBuffer||DN(e.data)))return t(Qw(e.data));Ig(e,!1,n=>{Pp||(Pp=new TextEncoder),t(Pp.encode(n))})}const Yw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Yw.length;e++)pl[Yw.charCodeAt(e)]=e;const $O=e=>{let t=e.length*.75,n=e.length,r,o=0,l,c,d,h;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const f=new ArrayBuffer(t),m=new Uint8Array(f);for(r=0;r<n;r+=4)l=pl[e.charCodeAt(r)],c=pl[e.charCodeAt(r+1)],d=pl[e.charCodeAt(r+2)],h=pl[e.charCodeAt(r+3)],m[o++]=l<<2|c>>4,m[o++]=(c&15)<<4|d>>2,m[o++]=(d&3)<<6|h&63;return f},UO=typeof ArrayBuffer=="function",Lg=(e,t)=>{if(typeof e!="string")return{type:"message",data:IN(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:zO(e.substring(1),t)}:Xu[n]?e.length>1?{type:Xu[n],data:e.substring(1)}:{type:Xu[n]}:Pm},zO=(e,t)=>{if(UO){const n=$O(e);return IN(n,t)}else return{base64:!0,data:e}},IN=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},LN="�",qO=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((l,c)=>{Ig(l,!1,d=>{r[c]=d,++o===n&&t(r.join(LN))})})},HO=(e,t)=>{const n=e.split(LN),r=[];for(let o=0;o<n.length;o++){const l=Lg(n[o],t);if(r.push(l),l.type==="error")break}return r};function WO(){return new TransformStream({transform(e,t){BO(e,n=>{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const l=new DataView(o.buffer);l.setUint8(0,126),l.setUint16(1,r)}else{o=new Uint8Array(9);const l=new DataView(o.buffer);l.setUint8(0,127),l.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let Rp;function Au(e){return e.reduce((t,n)=>t+n.length,0)}function Mu(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;o<t;o++)n[o]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function KO(e,t){Rp||(Rp=new TextDecoder);const n=[];let r=0,o=-1,l=!1;return new TransformStream({transform(c,d){for(n.push(c);;){if(r===0){if(Au(n)<1)break;const h=Mu(n,1);l=(h[0]&128)===128,o=h[0]&127,o<126?r=3:o===126?r=1:r=2}else if(r===1){if(Au(n)<2)break;const h=Mu(n,2);o=new DataView(h.buffer,h.byteOffset,h.length).getUint16(0),r=3}else if(r===2){if(Au(n)<8)break;const h=Mu(n,8),f=new DataView(h.buffer,h.byteOffset,h.length),m=f.getUint32(0);if(m>Math.pow(2,21)-1){d.enqueue(Pm);break}o=m*Math.pow(2,32)+f.getUint32(4),r=3}else{if(Au(n)<o)break;const h=Mu(n,o);d.enqueue(Lg(l?h:Rp.decode(h),t)),r=0}if(o===0||o>e){d.enqueue(Pm);break}}}})}const FN=4;function St(e){if(e)return GO(e)}function GO(e){for(var t in St.prototype)e[t]=St.prototype[t];return e}St.prototype.on=St.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};St.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};St.prototype.off=St.prototype.removeListener=St.prototype.removeAllListeners=St.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this};St.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this};St.prototype.emitReserved=St.prototype.emit;St.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};St.prototype.hasListeners=function(e){return!!this.listeners(e).length};const qd=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Fn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),QO="arraybuffer";function VN(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const YO=Fn.setTimeout,XO=Fn.clearTimeout;function Hd(e,t){t.useNativeTimers?(e.setTimeoutFn=YO.bind(Fn),e.clearTimeoutFn=XO.bind(Fn)):(e.setTimeoutFn=Fn.setTimeout.bind(Fn),e.clearTimeoutFn=Fn.clearTimeout.bind(Fn))}const JO=1.33;function ZO(e){return typeof e=="string"?eD(e):Math.ceil((e.byteLength||e.size)*JO)}function eD(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function BN(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function tD(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function nD(e){let t={},n=e.split("&");for(let r=0,o=n.length;r<o;r++){let l=n[r].split("=");
vendor: 6,261 bytes, line 410
410t[decodeURIComponent(l[0])]=decodeURIComponent(l[1])}return t}class rD extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class Fg extends St{constructor(t){super(),this.writable=!1,Hd(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new rD(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=Lg(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=tD(t);return n.length?"?"+n:""}}class sD extends Fg{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};HO(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,qO(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=BN()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let $N=!1;try{$N=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const iD=$N;function oD(){}class aD extends sD{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,l)=>{this.onError("xhr post error",o,l)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class vr extends St{constructor(t,n,r){super(),this.createRequest=t,Hd(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=VN(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=vr.requestsCount++,vr.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=oD,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete vr.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}vr.requestsCount=0;vr.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Xw);else if(typeof addEventListener=="function"){const e="onpagehide"in Fn?"pagehide":"unload";addEventListener(e,Xw,!1)}}function Xw(){for(let e in vr.requests)vr.requests.hasOwnProperty(e)&&vr.requests[e].abort()}const lD=(function(){const e=UN({xdomain:!1});return e&&e.responseType!==null})();class cD extends aD{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=lD&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new vr(UN,this.uri(),t)}}function UN(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||iD))return new XMLHttpRequest}catch{}if(!t)try{return new Fn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const zN=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class uD extends Fg{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=zN?{}:VN(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(o){return this.emitReserved("error",o)}
vendor: 10,324 bytes, line 410
410this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;Ig(r,this.supportsBinary,l=>{try{this.doWrite(r,l)}catch{}o&&qd(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=BN()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const Ap=Fn.WebSocket||Fn.MozWebSocket;class dD extends uD{createSocket(t,n,r){return zN?new Ap(t,n,r):n?new Ap(t,n):new Ap(t)}doWrite(t,n){this.ws.send(n)}}class hD extends Fg{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=KO(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=WO();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();const l=()=>{r.read().then(({done:d,value:h})=>{d||(this.onPacket(h),l())}).catch(d=>{})};l();const c={type:"open"};this.query.sid&&(c.data=`{"sid":"${this.query.sid}"}`),this._writer.write(c).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;this._writer.write(r).then(()=>{o&&qd(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const fD={websocket:dD,webtransport:hD,polling:cD},pD=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,mD=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Rm(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=pD.exec(e||""),l={},c=14;for(;c--;)l[mD[c]]=o[c]||"";return n!=-1&&r!=-1&&(l.source=t,l.host=l.host.substring(1,l.host.length-1).replace(/;/g,":"),l.authority=l.authority.replace("[","").replace("]","").replace(/;/g,":"),l.ipv6uri=!0),l.pathNames=gD(l,l.path),l.queryKey=xD(l,l.query),l}function gD(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function xD(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,l){o&&(n[o]=l)}),n}const Am=typeof addEventListener=="function"&&typeof removeEventListener=="function",Ju=[];Am&&addEventListener("offline",()=>{Ju.forEach(e=>e())},!1);class $s extends St{constructor(t,n){if(super(),this.binaryType=QO,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=Rm(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=Rm(n.host).host);Hd(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const o=r.prototype.name;this.transports.push(o),this._transportsByName[o]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=nD(this.opts.query)),Am&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Ju.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=FN,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&$s.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",$s.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const o=this.writeBuffer[r].data;if(o&&(n+=ZO(o)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,qd(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const l={type:t,data:n,options:r};this.emitReserved("packetCreate",l),this.writeBuffer.push(l),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if($s.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Am&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=Ju.indexOf(this._offlineEventListener);r!==-1&&Ju.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}$s.protocol=FN;class vD extends $s{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;$s.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",g=>{if(!r)if(g.type==="pong"&&g.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;$s.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(m(),this.setTransport(n),n.send([{type:"upgrade"}
vendor: 11,000 bytes, line 410
410]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const v=new Error("probe error");v.transport=n.name,this.emitReserved("upgradeError",v)}}))};function l(){r||(r=!0,m(),n.close(),n=null)}const c=g=>{const v=new Error("probe error: "+g);v.transport=n.name,l(),this.emitReserved("upgradeError",v)};function d(){c("transport closed")}function h(){c("socket closed")}function f(g){n&&g.name!==n.name&&l()}const m=()=>{n.removeListener("open",o),n.removeListener("error",c),n.removeListener("close",d),this.off("close",h),this.off("upgrading",f)};n.once("open",o),n.once("error",c),n.once("close",d),this.once("close",h),this.once("upgrading",f),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let yD=class extends vD{constructor(t,n={}){const r=typeof t=="object",o=r?{...t}:{...n};(!o.transports||o.transports&&typeof o.transports[0]=="string")&&(o.transports=(o.transports||["polling","websocket","webtransport"]).map(l=>fD[l]).filter(l=>!!l)),super(r?o:t,o)}};function wD(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=Rm(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const l=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+l+":"+r.port+t,r.href=r.protocol+"://"+l+(n&&n.port===r.port?"":":"+r.port),r}const bD=typeof ArrayBuffer=="function",jD=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,qN=Object.prototype.toString,ND=typeof Blob=="function"||typeof Blob<"u"&&qN.call(Blob)==="[object BlobConstructor]",SD=typeof File=="function"||typeof File<"u"&&qN.call(File)==="[object FileConstructor]";function Vg(e){return bD&&(e instanceof ArrayBuffer||jD(e))||ND&&e instanceof Blob||SD&&e instanceof File}function Zu(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Zu(e[n]))return!0;return!1}if(Vg(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Zu(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Zu(e[n]))return!0;return!1}function CD(e){const t=[],n=e.data,r=e;return r.data=Mm(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Mm(e,t){if(!e)return e;if(Vg(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=Mm(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=Mm(e[r],t));return n}return e}function _D(e,t){return e.data=Om(e.data,t),delete e.attachments,e}function Om(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Om(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Om(e[n],t));return e}const HN=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],ED=5;var Ve;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Ve||(Ve={}));class kD{constructor(t){this.replacer=t}encode(t){return(t.type===Ve.EVENT||t.type===Ve.ACK)&&Zu(t)?this.encodeAsBinary({type:t.type===Ve.EVENT?Ve.BINARY_EVENT:Ve.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===Ve.BINARY_EVENT||t.type===Ve.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=CD(t),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}}class Bg extends St{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===Ve.BINARY_EVENT;r||n.type===Ve.BINARY_ACK?(n.type=r?Ve.EVENT:Ve.ACK,this.reconstructor=new TD(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Vg(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(Ve[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===Ve.BINARY_EVENT||r.type===Ve.BINARY_ACK){const l=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const c=t.substring(l,n);if(c!=Number(c)||t.charAt(n)!=="-")throw new Error("Illegal attachments");const d=Number(c);if(!WN(d)||d<0)throw new Error("Illegal attachments");if(d>this.opts.maxAttachments)throw new Error("too many attachments");r.attachments=d}if(t.charAt(n+1)==="/"){const l=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(l,n)}else r.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const l=n+1;for(;++n;){const c=t.charAt(n);if(c==null||Number(c)!=c){--n;break}if(n===t.length)break}r.id=Number(t.substring(l,n+1))}if(t.charAt(++n)){const l=this.tryParse(t.substr(n));if(Bg.isPayloadValid(r.type,l))r.data=l;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case Ve.CONNECT:return gd(n);case Ve.DISCONNECT:return n===void 0;case Ve.CONNECT_ERROR:return typeof n=="string"||gd(n);case Ve.EVENT:case Ve.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&HN.indexOf(n[0])===-1);case Ve.ACK:case Ve.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class TD{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=_D(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function PD(e){return typeof e=="string"}const WN=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function RD(e){return e===void 0||WN(e)}function gd(e){return Object.prototype.toString.call(e)==="[object Object]"}function AD(e,t){switch(e){case Ve.CONNECT:return t===void 0||gd(t);case Ve.DISCONNECT:return t===void 0;case Ve.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&HN.indexOf(t[0])===-1);case Ve.ACK:return Array.isArray(t);case Ve.CONNECT_ERROR:return typeof t=="string"||gd(t);default:return!1}}function MD(e){return PD(e.nsp)&&RD(e.id)&&AD(e.type,e.data)}const OD=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Bg,Encoder:kD,get PacketType(){return Ve},isPacketValid:MD,protocol:ED},Symbol.toStringTag,{value:"Module"}));function Zn(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const DD=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class KN extends St{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Zn(t,"open",this.onopen.bind(this)),Zn(t,"packet",this.onpacket.bind(this)),Zn(t,"error",this.onerror.bind(this)),Zn(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,o,l;if(DD.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const c={type:Ve.EVENT,data:n};if(c.options={},c.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const m=this.ids++,g=n.pop();this._registerAckCallback(m,g),c.id=m}const d=(o=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||o===void 0?void 0:o.writable,h=this.connected&&!(!((l=this.io.engine)===null||l===void 0)&&l._hasPingExpired());return this.flags.volatile&&!d||(h?(this.notifyOutgoingListeners(c),this.packet(c)):this.sendBuffer.push(c)),this.flags={},this}_registerAckCallback(t,n){var r;const o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[t]=n;return}const l=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let d=0;d<this.sendBuffer.length;d++)this.sendBuffer[d].id===t&&this.sendBuffer.splice(d,1);n.call(this,new Error("operation has timed out"))},o),c=(...d)=>{this.io.clearTimeoutFn(l),n.apply(this,d)};c.withError=!0,this.acks[t]=c}emitWithAck(t,...n){return new Promise((r,o)=>{const l=(c,d)=>c?o(c):r(d);l.withError=!0,n.push(l),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...l)=>(this._queue[0],o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...l)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Ve.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}
vendor: 7,087 bytes, line 410
410_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Ve.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ve.EVENT:case Ve.BINARY_EVENT:this.onevent(t);break;case Ve.ACK:case Ve.BINARY_ACK:this.onack(t);break;case Ve.DISCONNECT:this.ondisconnect();break;case Ve.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:Ve.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ve.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function ma(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}ma.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};ma.prototype.reset=function(){this.attempts=0};ma.prototype.setMin=function(e){this.ms=e};ma.prototype.setMax=function(e){this.max=e};ma.prototype.setJitter=function(e){this.jitter=e};class Dm extends St{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Hd(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new ma({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||OD;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new yD(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Zn(n,"open",function(){r.onopen(),t&&t()}),l=d=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",d),t?t(d):this.maybeReconnectOnOpen()},c=Zn(n,"error",l);if(this._timeout!==!1){const d=this._timeout,h=this.setTimeoutFn(()=>{o(),l(new Error("timeout")),n.close()},d);this.opts.autoUnref&&h.unref(),this.subs.push(()=>{this.clearTimeoutFn(h)})}return this.subs.push(o),this.subs.push(c),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Zn(t,"ping",this.onping.bind(this)),Zn(t,"data",this.ondata.bind(this)),Zn(t,"error",this.onerror.bind(this)),Zn(t,"close",this.onclose.bind(this)),Zn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){qd(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new KN(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}
410cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const ll={};function ed(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=wD(e,t.path||"/socket.io"),r=n.source,o=n.id,l=n.path,c=ll[o]&&l in ll[o].nsps,d=t.forceNew||t["force new connection"]||t.multiplex===!1||c;let h;return d?h=new Dm(r,t):(ll[o]||(ll[o]=new Dm(r,t)),h=ll[o]),n.query&&!t.query&&(t.query=n.queryKey),h.socket(n.path,t)}Object.assign(ed,{Manager:Dm,Socket:KN,io:ed,connect:ed});const ID=250;function Jw(e,t){var n;const r=(n=e.token)!==null&&n!==void 0?n:Mi(),o={app_id:e.appId,token:r};r||(o.anonymous_id=Dg());const l=ed(e.serverUrl,{path:e.mountPath,transports:e.transports,query:o});return l.on("connect",async()=>{var c;return console.log("connect",l.id),(c=t.connect)===null||c===void 0?void 0:c.call(t)}),l.on("update_model",async c=>{var d;return(d=t.update_model)===null||d===void 0?void 0:d.call(t,c)}),l.on("error",async c=>{var d;return(d=t.error)===null||d===void 0?void 0:d.call(t,c)}),l.on("connect_error",async c=>{var d;return console.error("connect_error",c),(d=t.error)===null||d===void 0?void 0:d.call(t,c)}),l}function LD({config:e}){let t={...e};const n={},r={},o={connect:async()=>{const S=[];Object.keys(n).forEach(k=>{const _=v(k);_.length!==0&&(f(k),_.forEach(({connect:T})=>{const R=async()=>T==null?void 0:T();S.push(R())}))}),await Promise.all(S)},update_model:async S=>{const _=v(S.room).map(T=>{var R;return(R=T.update_model)===null||R===void 0?void 0:R.call(T,S)});await Promise.all(_)},error:async S=>{console.error("error",S);const k=Object.values(n).flat().map(_=>{var T;return(T=_.error)===null||T===void 0?void 0:T.call(_,S)});await Promise.all(k)}};let l=Jw(e,o);function c(){d()}function d(){j(),l&&l.disconnect()}function h(S){c(),t={...t,...S},l=Jw(t,o)}function f(S){l.emit("join",S)}function m(S){l.emit("leave",S)}async function g(S,k){var _;const T=JSON.stringify(k);return(_=o.update_model)===null||_===void 0?void 0:_.call(o,{room:S,data:T})}function v(S){var k;return(k=n[S])!==null&&k!==void 0?k:[]}function N(S){const k=r[S];k&&(clearTimeout(k),delete r[S])}function j(){Object.keys(r).forEach(S=>{var k,_;clearTimeout(r[S]),delete r[S],((_=(k=n[S])===null||k===void 0?void 0:k.length)!==null&&_!==void 0?_:0)===0&&delete n[S]})}function b(S){N(S),r[S]=setTimeout(()=>{var k,_;delete r[S],!(((_=(k=n[S])===null||k===void 0?void 0:k.length)!==null&&_!==void 0?_:0)>0)&&(m(S),delete n[S])},ID)}return{socket:l,subscribeToRoom:(S,k)=>{n[S]?N(S):(f(S),n[S]=[]),n[S].push(k);let _=!1;return()=>{var T,R;_||(_=!0,n[S]=(R=(T=n[S])===null||T===void 0?void 0:T.filter(P=>P!==k))!==null&&R!==void 0?R:[],n[S].length===0&&b(S))}},updateConfig:h,updateModel:g,disconnect:d}}(!globalThis.EventTarget||!globalThis.Event)&&console.error(`
411  PartySocket requires a global 'EventTarget' class to be available!
412  You can polyfill this global by adding this to your code before any partysocket imports: 
413  
414  \`\`\`
415  import 'partysocket/event-target-polyfill';
416  \`\`\`
417  Please file an issue at https://github.com/partykit/partykit if you're still having trouble.
418`);
vendor: 5,074 bytes, line 418
418var GN=class extends Event{constructor(t,n){super("error",n);Ge(this,"message");Ge(this,"error");this.message=t.message,this.error=t}},QN=class extends Event{constructor(t=1e3,n="",r){super("close",r);Ge(this,"code");Ge(this,"reason");Ge(this,"wasClean",!0);this.code=t,this.reason=n}},Mp={Event,ErrorEvent:GN,CloseEvent:QN};function FD(e,t){if(!e)throw new Error(t)}function VD(e){return new e.constructor(e.type,e)}function BD(e){return"data"in e?new MessageEvent(e.type,e):"code"in e||"reason"in e?new QN(e.code||1999,e.reason||"unknown reason",e):"error"in e?new GN(e.error,e):new Event(e.type,e)}var uj,$D=typeof process<"u"&&typeof((uj=process.versions)==null?void 0:uj.node)<"u"&&typeof document>"u",Ou=$D?BD:VD,pi={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},Zw=!1,UD=class gi extends EventTarget{constructor(n,r,o={}){super();Ge(this,"_ws");Ge(this,"_retryCount",-1);Ge(this,"_uptimeTimeout");Ge(this,"_connectTimeout");Ge(this,"_shouldReconnect",!0);Ge(this,"_connectLock",!1);Ge(this,"_binaryType","blob");Ge(this,"_closeCalled",!1);Ge(this,"_messageQueue",[]);Ge(this,"_url");Ge(this,"_protocols");Ge(this,"_options");Ge(this,"onclose",null);Ge(this,"onerror",null);Ge(this,"onmessage",null);Ge(this,"onopen",null);Ge(this,"_handleOpen",n=>{this._debug("open event");const{minUptime:r=pi.minUptime}=this._options;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout(()=>this._acceptOpen(),r),FD(this._ws,"WebSocket is not defined"),this._ws.binaryType=this._binaryType,this._messageQueue.forEach(o=>{var l;return(l=this._ws)==null?void 0:l.send(o)}),this._messageQueue=[],this.onopen&&this.onopen(n),this.dispatchEvent(Ou(n))});Ge(this,"_handleMessage",n=>{this._debug("message event"),this.onmessage&&this.onmessage(n),this.dispatchEvent(Ou(n))});Ge(this,"_handleError",n=>{this._debug("error event",n.message),this._disconnect(void 0,n.message==="TIMEOUT"?"timeout":void 0),this.onerror&&this.onerror(n),this._debug("exec error listeners"),this.dispatchEvent(Ou(n)),this._connect()});Ge(this,"_handleClose",n=>{this._debug("close event"),this._clearTimeouts(),this._shouldReconnect&&this._connect(),this.onclose&&this.onclose(n),this.dispatchEvent(Ou(n))});this._url=n,this._protocols=r,this._options=o,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}static get CONNECTING(){return 0}static get OPEN(){return 1}static get CLOSING(){return 2}static get CLOSED(){return 3}get CONNECTING(){return gi.CONNECTING}get OPEN(){return gi.OPEN}get CLOSING(){return gi.CLOSING}get CLOSED(){return gi.CLOSED}get binaryType(){return this._ws?this._ws.binaryType:this._binaryType}set binaryType(n){this._binaryType=n,this._ws&&(this._ws.binaryType=n)}get retryCount(){return Math.max(this._retryCount,0)}get bufferedAmount(){return this._messageQueue.reduce((r,o)=>(typeof o=="string"?r+=o.length:o instanceof Blob?r+=o.size:r+=o.byteLength,r),0)+(this._ws?this._ws.bufferedAmount:0)}get extensions(){return this._ws?this._ws.extensions:""}get protocol(){return this._ws?this._ws.protocol:""}get readyState(){return this._ws?this._ws.readyState:this._options.startClosed?gi.CLOSED:gi.CONNECTING}get url(){return this._ws?this._ws.url:""}get shouldReconnect(){return this._shouldReconnect}close(n=1e3,r){if(this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(n,r)}reconnect(n,r){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(n,r),this._connect())}send(n){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",n),this._ws.send(n);else{const{maxEnqueuedMessages:r=pi.maxEnqueuedMessages}=this._options;this._messageQueue.length<r&&(this._debug("enqueue",n),this._messageQueue.push(n))}}_debug(...n){this._options.debug&&console.log.apply(console,["RWS>",...n])}_getNextDelay(){const{reconnectionDelayGrowFactor:n=pi.reconnectionDelayGrowFactor,minReconnectionDelay:r=pi.minReconnectionDelay,maxReconnectionDelay:o=pi.maxReconnectionDelay}=this._options;let l=0;return this._retryCount>0&&(l=r*Math.pow(n,this._retryCount-1),l>o&&(l=o)),this._debug("next delay",l),l}_wait(){return new Promise(n=>{setTimeout(n,this._getNextDelay())})}_getNextProtocols(n){if(!n)return Promise.resolve(null);if(typeof n=="string"||Array.isArray(n))return Promise.resolve(n);if(typeof n=="function"){const r=n();if(!r)return Promise.resolve(null);if(typeof r=="string"||Array.isArray(r))return Promise.resolve(r);if(r.then)return r}throw Error("Invalid protocols")}_getNextUrl(n){if(typeof n=="string")return Promise.resolve(n);if(typeof n=="function"){const r=n();if(typeof r=="string")return Promise.resolve(r);if(r.then)return r}throw Error("Invalid URL")}_connect(){if(this._connectLock||!this._shouldReconnect)return;this._connectLock=!0;
418const{maxRetries:n=pi.maxRetries,connectionTimeout:r=pi.connectionTimeout}=this._options;if(this._retryCount>=n){this._debug("max retries reached",this._retryCount,">=",n);return}this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),this._wait().then(()=>Promise.all([this._getNextUrl(this._url),this._getNextProtocols(this._protocols||null)])).then(([o,l])=>{if(this._closeCalled){this._connectLock=!1;return}!this._options.WebSocket&&typeof WebSocket>"u"&&!Zw&&(console.error(`‼️ No WebSocket implementation available. You should define options.WebSocket. 
419
420For example, if you're using node.js, run \`npm install ws\`, and then in your code:
421
422import PartySocket from 'partysocket';
423import WS from 'ws';
424
425const partysocket = new PartySocket({
426  host: "127.0.0.1:1999",
427  room: "test-room",
428  WebSocket: WS
429});
430
431`),Zw=!0);const c=this._options.WebSocket||WebSocket;this._debug("connect",{url:o,protocols:l}),this._ws=l?new c(o,l):new c(o),this._ws.binaryType=this._binaryType,this._connectLock=!1,this._addListeners(),this._connectTimeout=setTimeout(()=>this._handleTimeout(),r)}).catch(o=>{this._connectLock=!1,this._handleError(new Mp.ErrorEvent(Error(o.message),this))})}_handleTimeout(){this._debug("timeout event"),this._handleError(new Mp.ErrorEvent(Error("TIMEOUT"),this))}_disconnect(n=1e3,r){if(this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(n,r),this._handleClose(new Mp.CloseEvent(n,r,this))}catch{}}}_acceptOpen(){this._debug("accept open"),this._retryCount=0}_removeListeners(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))}_addListeners(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))}_clearTimeouts(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)}};/*!
432 * Reconnecting WebSocket
433 * by Pedro Ladaria <[email protected]>
434 * https://github.com/pladaria/reconnecting-websocket
435 * License MIT
436 */var zD=e=>e[1]!==null&&e[1]!==void 0;function qD(){if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();let e=new Date().getTime(),t=typeof performance<"u"&&performance.now&&performance.now()*1e3||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){let r=Math.random()*16;return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),(n==="x"?r:r&3|8).toString(16)})}function YN(e,t,n={}){const{host:r,path:o,protocol:l,room:c,party:d,query:h}=e;let f=r.replace(/^(http|https|ws|wss):\/\//,"");if(f.endsWith("/")&&(f=f.slice(0,-1)),o&&o.startsWith("/"))throw new Error("path must not start with a slash");const m=d??"main",g=o?`/${o}`:"",v=l||(f.startsWith("localhost:")||f.startsWith("127.0.0.1:")||f.startsWith("192.168.")||f.startsWith("10.")||f.startsWith("172.")&&f.split(".")[1]>="16"&&f.split(".")[1]<="31"||f.startsWith("[::ffff:7f00:1]:")?t:t+"s"),N=`${v}://${f}/${d?`parties/${d}`:"party"}/${c}${g}`,j=(C={})=>`${N}?${new URLSearchParams([...Object.entries(n),...Object.entries(C).filter(zD)])}`,b=typeof h=="function"?async()=>j(await h()):j(h);return{host:f,path:g,room:c,name:m,protocol:v,partyUrl:N,urlProvider:b}}var HD=class extends UD{constructor(t){const n=eb(t);super(n.urlProvider,n.protocols,n.socketOptions);Ge(this,"_pk");Ge(this,"_pkurl");Ge(this,"name");Ge(this,"room");Ge(this,"host");Ge(this,"path");this.partySocketOptions=t,this.setWSProperties(n)}updateProperties(t){const n=eb({...t,host:t.host??this.host,room:t.room??this.room,path:t.path??this.path});this._url=n.urlProvider,this._protocols=n.protocols,this._options=n.socketOptions,this.setWSProperties(n)}setWSProperties(t){const{_pk:n,_pkurl:r,name:o,room:l,host:c,path:d}=t;this._pk=n,this._pkurl=r,this.name=o,this.room=l,this.host=c,this.path=d}reconnect(t,n){if(!this.room||!this.host)throw new Error("The room and host must be set before connecting, use `updateProperties` method to set them or pass them to the constructor.");super.reconnect(t,n)}get id(){return this._pk}get roomUrl(){return this._pkurl}static async fetch(t,n){const r=YN(t,"http"),o=typeof r.urlProvider=="string"?r.urlProvider:await r.urlProvider();return(t.fetch??fetch)(o,n)}};function eb(e){const{id:t,host:n,path:r,party:o,room:l,protocol:c,query:d,protocols:h,...f}=e,m=t||qD(),g=YN(e,"ws",{_pk:m});return{_pk:m,_pkurl:g.partyUrl,name:g.name,room:g.room,host:g.host,path:g.path,protocols:h,socketOptions:f,urlProvider:g.urlProvider}}const WD=1e3,KD=3e3;class GD{constructor(t,n,r,o,l){var c;this.onClose=l,this.listeners=new Set,this.heartbeat=null,this.id=(c=o==null?void 0:o.id)!==null&&c!==void 0?c:crypto.randomUUID();const d=new HD({host:r.host,party:t,room:n,id:this.id,query:()=>{const m=r.getAuthToken();return{app_id:r.appId,handler:t,...m?{token:m}:{},...r.functionsVersion?{fv:r.functionsVersion}:{}}}});this.ws=d;let h=Date.now();const f=()=>{h=Date.now()};d.addEventListener("open",f),d.addEventListener("message",m=>{f();let g;
436try{g=JSON.parse(m.data)}catch{return}if((g&&typeof g=="object"?g.type:void 0)!=="__pong")for(const N of this.listeners)N(g)}),this.heartbeat=setInterval(()=>{if(Date.now()-h>KD){f(),d.reconnect();return}try{d.send(JSON.stringify({type:"__ping"}))}catch{}},WD)}subscribe(t){return this.listeners.add(t),{unsubscribe:()=>{this.listeners.delete(t)}}}send(t){this.ws.send(JSON.stringify(t))}close(){this.heartbeat&&(clearInterval(this.heartbeat),this.heartbeat=null),this.listeners.clear(),this.ws.close(),this.onClose()}}function QD(e,t,n,r){let o=null;return{connect(l){if(o)return o;const c=new GD(e,t,n,l,()=>{r.delete(c),o===c&&(o=null)});return o=c,r.add(c),c}}}function YD(e,t){return e&&!e.startsWith("/")?e:t??e}function XD(e){const t=new Set;return{module:new Proxy({},{get(r,o){if(!(typeof o!="string"||o==="then"))return l=>QD(o,l,e,t)}}),closeAll:()=>{for(const r of[...t])r.close()}}}function JD(e){var t,n,r;const{serverUrl:o="https://base44.app",appId:l,token:c,serviceToken:d,requiresAuth:h=!1,appBaseUrl:f,options:m,functionsVersion:g,headers:v}=e,N=typeof f=="string"?f:"",j={serverUrl:o,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:l,token:c};let b=null;const C=()=>(b||(b=LD({config:j})),b),S={...v,"X-App-Id":String(l)},k=g?{...S,"Base44-Functions-Version":g}:S,_=fl({baseURL:`${o}/api`,headers:S,token:c,onError:m==null?void 0:m.onError}),T=fl({baseURL:`${o}/api`,headers:k,token:c,interceptResponses:!1,onError:m==null?void 0:m.onError}),R={...S,...c?{"on-behalf-of":`Bearer ${c}`}:{}},P=fl({baseURL:`${o}/api`,headers:R,token:d,onError:m==null?void 0:m.onError}),L=fl({baseURL:`${o}/api`,headers:k,token:d,interceptResponses:!1}),M=OO(_,T,l,{appBaseUrl:N});if(typeof window<"u"){const se=c||Mi();se&&M.setToken(se)}const G=XD({appId:l,host:YD(o,typeof window<"u"?(t=window.location)===null||t===void 0?void 0:t.origin:void 0),functionsVersion:g,getAuthToken:()=>c||Mi()}),H={entities:Uw({axios:_,appId:l,getSocket:C}),integrations:zw(_,l),connectors:LO(_,l),auth:M,functions:qw(T,l,{getAuthHeaders:()=>{const se={},ue=c||Mi();return ue&&(se.Authorization=`Bearer ${ue}`),se},baseURL:(n=T.defaults)===null||n===void 0?void 0:n.baseURL}),agents:Hw({axios:_,getSocket:C,appId:l,serverUrl:o,token:c}),aiGateway:Ww({serverUrl:o,token:c,appId:l}),appLogs:Kw(_,l),users:VO(_,l),analytics:wO({axiosClient:_,serverUrl:o,appId:l,userAuthModule:M}),actors:G.module,cleanup:()=>{H.analytics.cleanup(),G.closeAll(),b&&b.disconnect()}},ne={entities:Uw({axios:P,appId:l,getSocket:C}),integrations:zw(P,l),sso:DO(P,l),connectors:IO(P,l),functions:qw(L,l,{getAuthHeaders:()=>{const se={};return d&&(se.Authorization=`Bearer ${d}`),se},baseURL:(r=L.defaults)===null||r===void 0?void 0:r.baseURL}),agents:Hw({axios:P,getSocket:C,appId:l,serverUrl:o,token:c}),aiGateway:Ww({serverUrl:o,token:d,appId:l}),appLogs:Kw(P,l),cleanup:()=>{b&&b.disconnect()}};return h&&typeof window<"u"&&setTimeout(async()=>{try{await H.auth.isAuthenticated()||H.auth.redirectToLogin(window.location.href)}catch(se){console.error("Authentication check failed:",se),H.auth.redirectToLogin(window.location.href)}},0),{...H,setToken(se){H.auth.setToken(se),b&&b.updateConfig({token:se}),j.token=se},getConfig(){return{serverUrl:o,appId:l,requiresAuth:h}},get asServiceRole(){if(!d)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return ne}}}const XN=typeof window>"u",ZD=XN?{localStorage:new Map}:window,Sl=ZD.localStorage,e3=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase(),cl=(e,{defaultValue:t=void 0,removeFromUrl:n=!1}={})=>{if(XN)return t;const r=`base44_${e3(e)}`,o=new URLSearchParams(window.location.search),l=o.get(e);if(n){o.delete(e);const d=`${window.location.pathname}${o.toString()?`?${o.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,d)}if(l)return Sl.setItem(r,l),l;if(t)return Sl.setItem(r,t),t;const c=Sl.getItem(r);return c||null},t3=()=>(cl("clear_access_token")==="true"&&(Sl.removeItem("base44_access_token"),Sl.removeItem("token")),{appId:cl("app_id",{defaultValue:"6948f7f2482bad13c88dfbdc"}),token:cl("access_token",{removeFromUrl:!0}),fromUrl:cl("from_url",{defaultValue:window.location.href}),functionsVersion:cl("functions_version",{defaultValue:"prod"})}),ml={...t3()},{appId:n3,token:r3,functionsVersion:s3}=ml,Ne=JD({appId:n3,token:r3,functionsVersion:s3,serverUrl:"",requiresAuth:!1}),JN=y.createContext(),i3=({children:e})=>{const[t,n]=y.useState(null),[r,o]=y.useState(!1),[l,c]=y.useState(!0),[d,h]=y.useState(!0),[f,m]=y.useState(null),[g,v]=y.useState(null);y.useEffect(()=>{N()},[]);const N=async()=>{var S,k;try{h(!0),m(null);const _=fl({baseURL:"/api/apps/public",headers:{"X-App-Id":ml.appId},token:ml.token,interceptResponses:!0});try{const T=await _.get(`/prod/public-settings/by-id/${ml.appId}`);v(T),ml.token?await j():(c(!1),o(!1)),h(!1)}catch(T){if(console.error("App state check failed:",T),T.status===403&&((k=(S=T.data)==null?void 0:S.extra_data)!=null&&k.reason)){const R=T.data.extra_data.reason;
436m(R==="auth_required"?{type:"auth_required",message:"Authentication required"}:R==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:R,message:T.message})}else m({type:"unknown",message:T.message||"Failed to load app"});h(!1),c(!1)}}catch(_){console.error("Unexpected error:",_),m({type:"unknown",message:_.message||"An unexpected error occurred"}),h(!1),c(!1)}},j=async()=>{try{c(!0);const S=await Ne.auth.me();n(S),o(!0),c(!1)}catch(S){console.error("User auth check failed:",S),c(!1),o(!1),(S.status===401||S.status===403)&&m({type:"auth_required",message:"Authentication required"})}},b=(S=!0)=>{n(null),o(!1),S?Ne.auth.logout(window.location.href):Ne.auth.logout()},C=()=>{Ne.auth.redirectToLogin(window.location.href)};return i.jsx(JN.Provider,{value:{user:t,isAuthenticated:r,isLoadingAuth:l,isLoadingPublicSettings:d,authError:f,appPublicSettings:g,logout:b,navigateToLogin:C,checkAppState:N},children:e})},ZN=()=>{const e=y.useContext(JN);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e};function tb(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Wd(...e){return t=>{let n=!1;const r=e.map(o=>{const l=tb(o,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let o=0;o<r.length;o++){const l=r[o];typeof l=="function"?l():tb(e[o],null)}}}}function rt(...e){return y.useCallback(Wd(...e),e)}function Bi(e){const t=a3(e),n=y.forwardRef((r,o)=>{const{children:l,...c}=r,d=y.Children.toArray(l),h=d.find(c3);if(h){const f=h.props.children,m=d.map(g=>g===h?y.Children.count(f)>1?y.Children.only(null):y.isValidElement(f)?f.props.children:null:g);return i.jsx(t,{...c,ref:o,children:y.isValidElement(f)?y.cloneElement(f,void 0,m):null})}return i.jsx(t,{...c,ref:o,children:l})});return n.displayName=`${e}.Slot`,n}var o3=Bi("Slot");function a3(e){const t=y.forwardRef((n,r)=>{const{children:o,...l}=n;if(y.isValidElement(o)){const c=d3(o),d=u3(l,o.props);return o.type!==y.Fragment&&(d.ref=r?Wd(r,c):c),y.cloneElement(o,d)}return y.Children.count(o)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var l3=Symbol("radix.slottable");function c3(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===l3}function u3(e,t){const n={...t};for(const r in t){const o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...d)=>{const h=l(...d);return o(...d),h}:o&&(n[r]=o):r==="style"?n[r]={...o,...l}:r==="className"&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function d3(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const h3=Md("inline-flex items-center justify-center gap-2 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 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{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"},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"}}),te=y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},l)=>{const c=r?o3:"button";return i.jsx(c,{className:Oe(h3({variant:t,size:n,className:e})),ref:l,...o})});te.displayName="Button";const Kd=y.createContext(null);function $g(e){const t=y.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ug=y.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class f3 extends y.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function p3({children:e,isPresent:t}){const n=y.useId(),r=y.useRef(null),o=y.useRef({width:0,height:0,top:0,left:0}),{nonce:l}=y.useContext(Ug);return y.useInsertionEffect(()=>{const{width:c,height:d,top:h,left:f}=o.current;if(t||!r.current||!c||!d)return;r.current.dataset.motionPopId=n;
vendor: 10,795 bytes, lines 436-444
436const m=document.createElement("style");return l&&(m.nonce=l),document.head.appendChild(m),m.sheet&&m.sheet.insertRule(`
437          [data-motion-pop-id="${n}"] {
438            position: absolute !important;
439            width: ${c}px !important;
440            height: ${d}px !important;
441            top: ${h}px !important;
442            left: ${f}px !important;
443          }
444        `),()=>{document.head.removeChild(m)}},[t]),i.jsx(f3,{isPresent:t,childRef:r,sizeRef:o,children:y.cloneElement(e,{ref:r})})}const m3=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:l,mode:c})=>{const d=$g(g3),h=y.useId(),f=y.useCallback(g=>{d.set(g,!0);for(const v of d.values())if(!v)return;r&&r()},[d,r]),m=y.useMemo(()=>({id:h,initial:t,isPresent:n,custom:o,onExitComplete:f,register:g=>(d.set(g,!1),()=>d.delete(g))}),l?[Math.random(),f]:[n,f]);return y.useMemo(()=>{d.forEach((g,v)=>d.set(v,!1))},[n]),y.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),c==="popLayout"&&(e=i.jsx(p3,{isPresent:n,children:e})),i.jsx(Kd.Provider,{value:m,children:e})};function g3(){return new Map}const zg=y.createContext({}),Sn=e=>e;let eS=Sn;function qg(e){let t;return()=>(t===void 0&&(t=e()),t)}const na=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Kr=e=>e*1e3,Gr=e=>e/1e3,Du=e=>e.key||"";function nb(e){const t=[];return y.Children.forEach(e,n=>{y.isValidElement(n)&&t.push(n)}),t}const Hg=typeof window<"u",tS=Hg?y.useLayoutEffect:y.useEffect,yr=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:o,presenceAffectsLayout:l=!0,mode:c="sync"})=>{const d=y.useMemo(()=>nb(e),[e]),h=d.map(Du),f=y.useRef(!0),m=y.useRef(d),g=$g(()=>new Map),[v,N]=y.useState(d),[j,b]=y.useState(d);tS(()=>{f.current=!1,m.current=d;for(let k=0;k<j.length;k++){const _=Du(j[k]);h.includes(_)?g.delete(_):g.get(_)!==!0&&g.set(_,!1)}},[j,h.length,h.join("-")]);const C=[];if(d!==v){let k=[...d];for(let _=0;_<j.length;_++){const T=j[_],R=Du(T);h.includes(R)||(k.splice(_,0,T),C.push(T))}c==="wait"&&C.length&&(k=C),b(nb(k)),N(d);return}const{forceRender:S}=y.useContext(zg);return i.jsx(i.Fragment,{children:j.map(k=>{const _=Du(k),T=d===j||h.includes(_),R=()=>{if(g.has(_))g.set(_,!0);else return;let P=!0;g.forEach(L=>{L||(P=!1)}),P&&(S==null||S(),b(m.current),o&&o())};return i.jsx(m3,{isPresent:T,initial:!f.current||r?void 0:!1,custom:T?void 0:n,presenceAffectsLayout:l,mode:c,onExitComplete:T?void 0:R,children:k},_)})})},x3={useManualTiming:!1};function v3(e){let t=new Set,n=new Set,r=!1,o=!1;const l=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function d(f){l.has(f)&&(h.schedule(f),e()),f(c)}const h={schedule:(f,m=!1,g=!1)=>{const N=g&&r?t:n;return m&&l.add(f),N.has(f)||N.add(f),f},cancel:f=>{n.delete(f),l.delete(f)},process:f=>{if(c=f,r){o=!0;return}r=!0,[t,n]=[n,t],t.forEach(d),t.clear(),r=!1,o&&(o=!1,h.process(f))}};return h}const Iu=["read","resolveKeyframes","update","preRender","render","postRender"],y3=40;function nS(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,c=Iu.reduce((S,k)=>(S[k]=v3(l),S),{}),{read:d,resolveKeyframes:h,update:f,preRender:m,render:g,postRender:v}=c,N=()=>{const S=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(S-o.timestamp,y3),1),o.timestamp=S,o.isProcessing=!0,d.process(o),h.process(o),f.process(o),m.process(o),g.process(o),v.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(N))},j=()=>{n=!0,r=!0,o.isProcessing||e(N)};return{schedule:Iu.reduce((S,k)=>{const _=c[k];return S[k]=(T,R=!1,P=!1)=>(n||j(),_.schedule(T,R,P)),S},{}),cancel:S=>{for(let k=0;k<Iu.length;k++)c[Iu[k]].cancel(S)},state:o,steps:c}}const{schedule:lt,cancel:Hs,state:Vt,steps:Op}=nS(typeof requestAnimationFrame<"u"?requestAnimationFrame:Sn,!0),rS=y.createContext({strict:!1}),rb={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ra={};for(const e in rb)ra[e]={isEnabled:t=>rb[e].some(n=>!!t[n])};function w3(e){for(const t in e)ra[t]={...ra[t],...e[t]}}const b3=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function xd(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||b3.has(e)}let sS=e=>!xd(e);function j3(e){e&&(sS=t=>t.startsWith("on")?!xd(t):e(t))}try{j3(require("@emotion/is-prop-valid").default)}catch{}function N3(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(sS(o)||n===!0&&xd(o)||!t&&!xd(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function S3(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}const Gd=y.createContext({});function Ol(e){return typeof e=="string"||Array.isArray(e)}function Qd(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Wg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Kg=["initial",...Wg];function Yd(e){return Qd(e.animate)||Kg.some(t=>Ol(e[t]))}function iS(e){return!!(Yd(e)||e.variants)}function C3(e,t){if(Yd(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ol(n)?n:void 0,animate:Ol(r)?r:void 0}}return e.inherit!==!1?t:{}}function _3(e){const{initial:t,animate:n}=C3(e,y.useContext(Gd));return y.useMemo(()=>({initial:t,animate:n}),[sb(t),sb(n)])}function sb(e){return Array.isArray(e)?e.join(" "):e}const E3=Symbol.for("motionComponentSymbol");function Ro(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function k3(e,t,n){return y.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ro(n)&&(n.current=r))},[t])}const Gg=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),T3="framerAppearId",oS="data-"+Gg(T3),{schedule:Qg}=nS(queueMicrotask,!1),aS=y.createContext({});function P3(e,t,n,r,o){var l,c;const{visualElement:d}=y.useContext(Gd),h=y.useContext(rS),f=y.useContext(Kd),m=y.useContext(Ug).reducedMotion,g=y.useRef(null);r=r||h.renderer,!g.current&&r&&(g.current=r(e,{visualState:t,parent:d,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:m}));const v=g.current,N=y.useContext(aS);v&&!v.projection&&o&&(v.type==="html"||v.type==="svg")&&R3(g.current,n,o,N);const j=y.useRef(!1);y.useInsertionEffect(()=>{v&&j.current&&v.update(n,f)});const b=n[oS],C=y.useRef(!!b&&!(!((l=window.MotionHandoffIsComplete)===null||l===void 0)&&l.call(window,b))&&((c=window.MotionHasOptimisedAnimation)===null||c===void 0?void 0:c.call(window,b)));return tS(()=>{v&&(j.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),Qg.render(v.render),C.current&&v.animationState&&v.animationState.animateChanges())}),y.useEffect(()=>{v&&(!C.current&&v.animationState&&v.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)===null||S===void 0||S.call(window,b)}),C.current=!1))}),v}function R3(e,t,n,r){const{layoutId:o,layout:l,drag:c,dragConstraints:d,layoutScroll:h,layoutRoot:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:lS(e.parent)),e.projection.setOptions({layoutId:o,layout:l,alwaysMeasureLayout:!!c||d&&Ro(d),visualElement:e,animationType:typeof l=="string"?l:"both",initialPromotionConfig:r,layoutScroll:h,layoutRoot:f})}function lS(e){if(e)return e.options.allowProjection!==!1?e.projection:lS(e.parent)}function A3({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){var l,c;e&&w3(e);function d(f,m){let g;const v={...y.useContext(Ug),...f,layoutId:M3(f)},{isStatic:N}=v,j=_3(f),b=r(f,N);if(!N&&Hg){O3();const C=D3(v);g=C.MeasureLayout,j.visualElement=P3(o,b,v,t,C.ProjectionNode)}return i.jsxs(Gd.Provider,{value:j,children:[g&&j.visualElement?i.jsx(g,{visualElement:j.visualElement,...v}):null,n(o,f,k3(b,j.visualElement,m),b,N,j.visualElement)]})}d.displayName=`motion.${typeof o=="string"?o:`create(${(c=(l=o.displayName)!==null&&l!==void 0?l:o.name)!==null&&c!==void 0?c:""})`}`;const h=y.forwardRef(d);return h[E3]=o,h}function M3({layoutId:e}){const t=y.useContext(zg).id;return t&&e!==void 0?t+"-"+e:e}function O3(e,t){y.useContext(rS).strict}function D3(e){const{drag:t,layout:n}=ra;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const I3=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Yg(e){return typeof e!="string"||e.includes("-")?!1:!!(I3.indexOf(e)>-1||/[A-Z]/u.test(e))}function cS(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const l in n)e.style.setProperty(l,n[l])}const uS=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function dS(e,t,n,r){cS(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(uS.has(o)?o:Gg(o),t.attrs[o])}const Qt=e=>!!(e&&e.getVelocity),vd={};function L3(e){Object.assign(vd,e)}const nc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xi=new Set(nc);function hS(e,{layout:t,layoutId:n}){return Xi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!vd[e]||e==="opacity")}function Xg(e,t,n){var r;const{style:o}=e,l={};for(const c in o)(Qt(o[c])||t.style&&Qt(t.style[c])||hS(c,e)||((r=n==null?void 0:n.getValue(c))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(l[c]=o[c]);return l}function fS(e,t,n){const r=Xg(e,t,n);for(const o in e)if(Qt(e[o])||Qt(t[o])){const l=nc.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[l]=e[o]}return r}function ib(e){const t=[{},{}];
vendor: 4,296 bytes, line 444
444return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Jg(e,t,n,r){if(typeof t=="function"){const[o,l]=ib(r);t=t(n!==void 0?n:e.custom,o,l)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,l]=ib(r);t=t(n!==void 0?n:e.custom,o,l)}return t}const Im=e=>Array.isArray(e),F3=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),V3=e=>Im(e)?e[e.length-1]||0:e;function td(e){const t=Qt(e)?e.get():e;return F3(t)?t.toValue():t}function B3({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,l){const c={latestValues:$3(r,o,l,e),renderState:t()};return n&&(c.mount=d=>n(r,d,c)),c}const pS=e=>(t,n)=>{const r=y.useContext(Gd),o=y.useContext(Kd),l=()=>B3(e,t,r,o);return n?l():$g(l)};function $3(e,t,n,r){const o={},l=r(e,{});for(const v in l)o[v]=td(l[v]);let{initial:c,animate:d}=e;const h=Yd(e),f=iS(e);t&&f&&!h&&e.inherit!==!1&&(c===void 0&&(c=t.initial),d===void 0&&(d=t.animate));let m=n?n.initial===!1:!1;m=m||c===!1;const g=m?d:c;if(g&&typeof g!="boolean"&&!Qd(g)){const v=Array.isArray(g)?g:[g];for(let N=0;N<v.length;N++){const j=Jg(e,v[N]);if(j){const{transitionEnd:b,transition:C,...S}=j;for(const k in S){let _=S[k];if(Array.isArray(_)){const T=m?_.length-1:0;_=_[T]}_!==null&&(o[k]=_)}for(const k in b)o[k]=b[k]}}}return o}const Zg=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),mS=()=>({...Zg(),attrs:{}}),gS=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Xr=(e,t,n)=>n>t?t:n<e?e:n,ga={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Dl={...ga,transform:e=>Xr(0,1,e)},Lu={...ga,default:1},rc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Es=rc("deg"),wr=rc("%"),Me=rc("px"),U3=rc("vh"),z3=rc("vw"),ob={...wr,parse:e=>wr.parse(e)/100,transform:e=>wr.transform(e*100)},q3={borderWidth:Me,borderTopWidth:Me,borderRightWidth:Me,borderBottomWidth:Me,borderLeftWidth:Me,borderRadius:Me,radius:Me,borderTopLeftRadius:Me,borderTopRightRadius:Me,borderBottomRightRadius:Me,borderBottomLeftRadius:Me,width:Me,maxWidth:Me,height:Me,maxHeight:Me,top:Me,right:Me,bottom:Me,left:Me,padding:Me,paddingTop:Me,paddingRight:Me,paddingBottom:Me,paddingLeft:Me,margin:Me,marginTop:Me,marginRight:Me,marginBottom:Me,marginLeft:Me,backgroundPositionX:Me,backgroundPositionY:Me},H3={rotate:Es,rotateX:Es,rotateY:Es,rotateZ:Es,scale:Lu,scaleX:Lu,scaleY:Lu,scaleZ:Lu,skew:Es,skewX:Es,skewY:Es,distance:Me,translateX:Me,translateY:Me,translateZ:Me,x:Me,y:Me,z:Me,perspective:Me,transformPerspective:Me,opacity:Dl,originX:ob,originY:ob,originZ:Me},ab={...ga,transform:Math.round},e0={...q3,...H3,zIndex:ab,size:Me,fillOpacity:Dl,strokeOpacity:Dl,numOctaves:ab},W3={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},K3=nc.length;function G3(e,t,n){let r="",o=!0;for(let l=0;l<K3;l++){const c=nc[l],d=e[c];if(d===void 0)continue;let h=!0;if(typeof d=="number"?h=d===(c.startsWith("scale")?1:0):h=parseFloat(d)===0,!h||n){const f=gS(d,e0[c]);if(!h){o=!1;const m=W3[c]||c;r+=`${m}(${f}) `}n&&(t[c]=f)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}const xS=e=>t=>typeof t=="string"&&t.startsWith(e),vS=xS("--"),Q3=xS("var(--"),t0=e=>Q3(e)?Y3.test(e.split("/*")[0].trim()):!1,Y3=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function n0(e,t,n){const{style:r,vars:o,transformOrigin:l}=e;let c=!1,d=!1;for(const h in t){const f=t[h];if(Xi.has(h)){c=!0;continue}else if(vS(h)){o[h]=f;continue}else{const m=gS(f,e0[h]);h.startsWith("origin")?(d=!0,l[h]=m):r[h]=m}}if(t.transform||(c||n?r.transform=G3(t,e.transform,n):r.transform&&(r.transform="none")),d){const{originX:h="50%",originY:f="50%",originZ:m=0}=l;r.transformOrigin=`${h} ${f} ${m}`}}function lb(e,t,n){return typeof e=="string"?e:Me.transform(t+n*e)}function X3(e,t,n){const r=lb(t,e.x,e.width),o=lb(n,e.y,e.height);return`${r} ${o}`}const J3={offset:"stroke-dashoffset",array:"stroke-dasharray"},Z3={offset:"strokeDashoffset",array:"strokeDasharray"};function e6(e,t,n=1,r=0,o=!0){e.pathLength=1;const l=o?J3:Z3;e[l.offset]=Me.transform(-r);const c=Me.transform(t),d=Me.transform(n);e[l.array]=`${c} ${d}`}function r0(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:l,pathLength:c,pathSpacing:d=1,pathOffset:h=0,...f}
vendor: 97,477 bytes, line 444
444,m,g){if(n0(e,f,g),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:v,style:N,dimensions:j}=e;v.transform&&(j&&(N.transform=v.transform),delete v.transform),j&&(o!==void 0||l!==void 0||N.transform)&&(N.transformOrigin=X3(j,o!==void 0?o:.5,l!==void 0?l:.5)),t!==void 0&&(v.x=t),n!==void 0&&(v.y=n),r!==void 0&&(v.scale=r),c!==void 0&&e6(v,c,d,h,!1)}const s0=e=>typeof e=="string"&&e.toLowerCase()==="svg",t6={useVisualState:pS({scrapeMotionValuesFromProps:fS,createRenderState:mS,onMount:(e,t,{renderState:n,latestValues:r})=>{lt.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),lt.render(()=>{r0(n,r,s0(t.tagName),e.transformTemplate),dS(t,n)})}})},n6={useVisualState:pS({scrapeMotionValuesFromProps:Xg,createRenderState:Zg})};function yS(e,t,n){for(const r in t)!Qt(t[r])&&!hS(r,n)&&(e[r]=t[r])}function r6({transformTemplate:e},t){return y.useMemo(()=>{const n=Zg();return n0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function s6(e,t){const n=e.style||{},r={};return yS(r,n,e),Object.assign(r,r6(e,t)),r}function i6(e,t){const n={},r=s6(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function o6(e,t,n,r){const o=y.useMemo(()=>{const l=mS();return r0(l,t,s0(r),e.transformTemplate),{...l.attrs,style:{...l.style}}},[t]);if(e.style){const l={};yS(l,e.style,e),o.style={...l,...o.style}}return o}function a6(e=!1){return(n,r,o,{latestValues:l},c)=>{const h=(Yg(n)?o6:i6)(r,l,c,n),f=N3(r,typeof n=="string",e),m=n!==y.Fragment?{...f,...h,ref:o}:{},{children:g}=r,v=y.useMemo(()=>Qt(g)?g.get():g,[g]);return y.createElement(n,{...m,children:v})}}function l6(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const c={...Yg(r)?t6:n6,preloadedFeatures:e,useRender:a6(o),createVisualElement:t,Component:r};return A3(c)}}function wS(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Xd(e,t,n){const r=e.getProps();return Jg(r,t,n!==void 0?n:r.custom,e)}const c6=qg(()=>window.ScrollTimeline!==void 0);class u6{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(o=>{if(c6()&&o.attachTimeline)return o.attachTimeline(t);if(typeof n=="function")return n(o)});return()=>{r.forEach((o,l)=>{o&&o(),this.animations[l].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class d6 extends u6{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function i0(e,t){return e?e[t]||e.default||e:void 0}const Lm=2e4;function bS(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Lm;)t+=n,r=e.next(t);return t>=Lm?1/0:t}function o0(e){return typeof e=="function"}function cb(e,t){e.timeline=t,e.onfinish=null}const a0=e=>Array.isArray(e)&&typeof e[0]=="number",h6={linearEasing:void 0};function f6(e,t){const n=qg(e);return()=>{var r;return(r=h6[t])!==null&&r!==void 0?r:n()}}const yd=f6(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),jS=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let l=0;l<o;l++)r+=e(na(0,o-1,l))+", ";return`linear(${r.substring(0,r.length-2)})`};function NS(e){return!!(typeof e=="function"&&yd()||!e||typeof e=="string"&&(e in Fm||yd())||a0(e)||Array.isArray(e)&&e.every(NS))}const gl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Fm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gl([0,.65,.55,1]),circOut:gl([.55,0,1,.45]),backIn:gl([.31,.01,.66,-.59]),backOut:gl([.33,1.53,.69,.99])};function SS(e,t){if(e)return typeof e=="function"&&yd()?jS(e,t):a0(e)?gl(e):Array.isArray(e)?e.map(n=>SS(n,t)||Fm.easeOut):Fm[e]}const Qn={x:!1,y:!1};function CS(){return Qn.x||Qn.y}function p6(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;const l=(r=void 0)!==null&&r!==void 0?r:o.querySelectorAll(e);return l?Array.from(l):[]}return Array.from(e)}function _S(e,t){const n=p6(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function ub(e){return t=>{t.pointerType==="touch"||CS()||e(t)}}function m6(e,t,n={}){const[r,o,l]=_S(e,n),c=ub(d=>{const{target:h}=d,f=t(d);if(typeof f!="function"||!h)return;const m=ub(g=>{f(g),h.removeEventListener("pointerleave",m)});h.addEventListener("pointerleave",m,o)});return r.forEach(d=>{d.addEventListener("pointerenter",c,o)}),l}const ES=(e,t)=>t?e===t?!0:ES(e,t.parentElement):!1,l0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,g6=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function x6(e){return g6.has(e.tagName)||e.tabIndex!==-1}const xl=new WeakSet;function db(e){return t=>{t.key==="Enter"&&e(t)}}function Dp(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const v6=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=db(()=>{if(xl.has(n))return;Dp(n,"down");const o=db(()=>{Dp(n,"up")}),l=()=>Dp(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",l,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function hb(e){return l0(e)&&!CS()}function y6(e,t,n={}){const[r,o,l]=_S(e,n),c=d=>{const h=d.currentTarget;if(!hb(d)||xl.has(h))return;xl.add(h);const f=t(d),m=(N,j)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",v),!(!hb(N)||!xl.has(h))&&(xl.delete(h),typeof f=="function"&&f(N,{success:j}))},g=N=>{m(N,n.useGlobalTarget||ES(h,N.target))},v=N=>{m(N,!1)};window.addEventListener("pointerup",g,o),window.addEventListener("pointercancel",v,o)};return r.forEach(d=>{!x6(d)&&d.getAttribute("tabindex")===null&&(d.tabIndex=0),(n.useGlobalTarget?window:d).addEventListener("pointerdown",c,o),d.addEventListener("focus",f=>v6(f,o),o)}),l}function w6(e){return e==="x"||e==="y"?Qn[e]?null:(Qn[e]=!0,()=>{Qn[e]=!1}):Qn.x||Qn.y?null:(Qn.x=Qn.y=!0,()=>{Qn.x=Qn.y=!1})}let nd;function b6(){nd=void 0}const br={now:()=>(nd===void 0&&br.set(Vt.isProcessing||x3.useManualTiming?Vt.timestamp:performance.now()),nd),set:e=>{nd=e,queueMicrotask(b6)}};function c0(e,t){e.indexOf(t)===-1&&e.push(t)}function u0(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class d0{constructor(){this.subscriptions=[]}add(t){return c0(this.subscriptions,t),()=>u0(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let l=0;l<o;l++){const c=this.subscriptions[l];c&&c(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function kS(e,t){return t?e*(1e3/t):0}const fb=30,j6=e=>!isNaN(parseFloat(e));class N6{constructor(t,n={}){this.version="11.16.4",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const l=br.now();this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=br.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=j6(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new d0);const r=this.events[t].add(n);return t==="change"?()=>{r(),lt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=br.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>fb)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,fb);return kS(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Il(e,t){return new N6(e,t)}function S6(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Il(n))}function C6(e,t){const n=Xd(e,t);let{transitionEnd:r={},transition:o={},...l}=n||{};l={...l,...r};for(const c in l){const d=V3(l[c]);S6(e,c,d)}}function _6(e){return!!(Qt(e)&&e.add)}function Vm(e,t){const n=e.getValue("willChange");if(_6(n))return n.add(t)}function TS(e){return e.props[oS]}const PS=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,E6=1e-7,k6=12;function T6(e,t,n,r,o){let l,c,d=0;do c=t+(n-t)/2,l=PS(c,r,o)-e,l>0?n=c:t=c;while(Math.abs(l)>E6&&++d<k6);return c}function sc(e,t,n,r){if(e===t&&n===r)return Sn;const o=l=>T6(l,0,1,e,n);return l=>l===0||l===1?l:PS(o(l),t,r)}const RS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,AS=e=>t=>1-e(1-t),MS=sc(.33,1.53,.69,.99),h0=AS(MS),OS=RS(h0),DS=e=>(e*=2)<1?.5*h0(e):.5*(2-Math.pow(2,-10*(e-1))),f0=e=>1-Math.sin(Math.acos(e)),IS=AS(f0),LS=RS(f0),FS=e=>/^0[^.\s]+$/u.test(e);function P6(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||FS(e):!0}const VS=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),R6=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function A6(e){const t=R6.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function BS(e,t,n=1){const[r,o]=A6(e);if(!r)return;const l=window.getComputedStyle(t).getPropertyValue(r);if(l){const c=l.trim();return VS(c)?parseFloat(c):c}return t0(o)?BS(o,t,n+1):o}const M6=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),pb=e=>e===ga||e===Me,mb=(e,t)=>parseFloat(e.split(", ")[t]),gb=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return mb(o[1],t);{const l=r.match(/^matrix\((.+)\)$/u);return l?mb(l[1],e):0}},O6=new Set(["x","y","z"]),D6=nc.filter(e=>!O6.has(e));function I6(e){const t=[];return D6.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const sa={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:gb(4,13),y:gb(5,14)};sa.translateX=sa.x;sa.translateY=sa.y;const $S=e=>t=>t.test(e),L6={test:e=>e==="auto",parse:e=>e},US=[ga,Me,wr,Es,z3,U3,L6],xb=e=>US.find($S(e)),Oi=new Set;let Bm=!1,$m=!1;function zS(){if($m){const e=Array.from(Oi).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=I6(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([l,c])=>{var d;(d=r.getValue(l))===null||d===void 0||d.set(c)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}$m=!1,Bm=!1,Oi.forEach(e=>e.complete()),Oi.clear()}function qS(){Oi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&($m=!0)})}function F6(){qS(),zS()}class p0{constructor(t,n,r,o,l,c=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=l,this.isAsync=c}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Oi.add(this),Bm||(Bm=!0,lt.read(qS),lt.resolveKeyframes(zS))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let l=0;l<t.length;l++)if(t[l]===null)if(l===0){const c=o==null?void 0:o.get(),d=t[t.length-1];if(c!==void 0)t[0]=c;else if(r&&n){const h=r.readValue(n,d);h!=null&&(t[0]=h)}t[0]===void 0&&(t[0]=d),o&&c===void 0&&o.set(t[0])}else t[l]=t[l-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Oi.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Oi.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Cl=e=>Math.round(e*1e5)/1e5,m0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function V6(e){return e==null}const B6=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,g0=(e,t)=>n=>!!(typeof n=="string"&&B6.test(n)&&n.startsWith(e)||t&&!V6(n)&&Object.prototype.hasOwnProperty.call(n,t)),HS=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,l,c,d]=r.match(m0);return{[e]:parseFloat(o),[t]:parseFloat(l),[n]:parseFloat(c),alpha:d!==void 0?parseFloat(d):1}},$6=e=>Xr(0,255,e),Ip={...ga,transform:e=>Math.round($6(e))},ji={test:g0("rgb","red"),parse:HS("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ip.transform(e)+", "+Ip.transform(t)+", "+Ip.transform(n)+", "+Cl(Dl.transform(r))+")"};function U6(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Um={test:g0("#"),parse:U6,transform:ji.transform},Ao={test:g0("hsl","hue"),parse:HS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+wr.transform(Cl(t))+", "+wr.transform(Cl(n))+", "+Cl(Dl.transform(r))+")"},Kt={test:e=>ji.test(e)||Um.test(e)||Ao.test(e),parse:e=>ji.test(e)?ji.parse(e):Ao.test(e)?Ao.parse(e):Um.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ji.transform(e):Ao.transform(e)},z6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function q6(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(m0))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(z6))===null||n===void 0?void 0:n.length)||0)>0}const WS="number",KS="color",H6="var",W6="var(",vb="${}",K6=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ll(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let l=0;const d=t.replace(K6,h=>(Kt.test(h)?(r.color.push(l),o.push(KS),n.push(Kt.parse(h))):h.startsWith(W6)?(r.var.push(l),o.push(H6),n.push(h)):(r.number.push(l),o.push(WS),n.push(parseFloat(h))),++l,vb)).split(vb);return{values:n,split:d,indexes:r,types:o}}function GS(e){return Ll(e).values}function QS(e){const{split:t,types:n}=Ll(e),r=t.length;return o=>{let l="";for(let c=0;c<r;c++)if(l+=t[c],o[c]!==void 0){const d=n[c];d===WS?l+=Cl(o[c]):d===KS?l+=Kt.transform(o[c]):l+=o[c]}return l}}const G6=e=>typeof e=="number"?0:e;function Q6(e){const t=GS(e);return QS(e)(t.map(G6))}const Ws={test:q6,parse:GS,createTransformer:QS,getAnimatableNone:Q6},Y6=new Set(["brightness","contrast","saturate","opacity"]);function X6(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(m0)||[];if(!r)return e;const o=n.replace(r,"");let l=Y6.has(t)?1:0;return r!==n&&(l*=100),t+"("+l+o+")"}const J6=/\b([a-z-]*)\(.*?\)/gu,zm={...Ws,getAnimatableNone:e=>{const t=e.match(J6);return t?t.map(X6).join(" "):e}},Z6={...e0,color:Kt,backgroundColor:Kt,outlineColor:Kt,fill:Kt,stroke:Kt,borderColor:Kt,borderTopColor:Kt,borderRightColor:Kt,borderBottomColor:Kt,borderLeftColor:Kt,filter:zm,WebkitFilter:zm},x0=e=>Z6[e];function YS(e,t){let n=x0(e);return n!==zm&&(n=Ws),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const eI=new Set(["auto","none","0"]);function tI(e,t,n){let r=0,o;for(;r<e.length&&!o;){const l=e[r];typeof l=="string"&&!eI.has(l)&&Ll(l).values.length&&(o=e[r]),r++}if(o&&n)for(const l of t)e[l]=YS(n,o)}class XS extends p0{constructor(t,n,r,o,l){super(t,n,r,o,l,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let h=0;h<t.length;h++){let f=t[h];if(typeof f=="string"&&(f=f.trim(),t0(f))){const m=BS(f,n.current);m!==void 0&&(t[h]=m),h===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!M6.has(r)||t.length!==2)return;const[o,l]=t,c=xb(o),d=xb(l);if(c!==d)if(pb(c)&&pb(d))for(let h=0;h<t.length;h++){const f=t[h];typeof f=="string"&&(t[h]=parseFloat(f))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)P6(t[o])&&r.push(o);r.length&&tI(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=sa[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:o}=this;if(!n||!n.current)return;const l=n.getValue(r);l&&l.jump(this.measuredOrigin,!1);const c=o.length-1,d=o[c];o[c]=sa[r](n.measureViewportBox(),window.getComputedStyle(n.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([h,f])=>{n.getValue(h).set(f)}),this.resolveNoneKeyframes()}}const yb=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ws.test(e)||e==="0")&&!e.startsWith("url("));function nI(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function rI(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const l=e[e.length-1],c=yb(o,t),d=yb(l,t);return!c||!d?!1:nI(e)||(n==="spring"||o0(n))&&r}const sI=e=>e!==null;function Jd(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(sI),l=t&&n!=="loop"&&t%2===1?0:o.length-1;return!l||r===void 0?o[l]:r}const iI=40;class JS{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:l=0,repeatType:c="loop",...d}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=br.now(),this.options={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:l,repeatType:c,...d},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>iI?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&F6(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=br.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:l,delay:c,onComplete:d,onUpdate:h,isGenerator:f}=this.options;if(!f&&!rI(t,r,o,l))if(c)this.options.duration=0;else{h==null||h(Jd(t,this.options,n)),d==null||d(),this.resolveFinishedPromise();return}const m=this.initPlayback(t,n);m!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...m},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const pt=(e,t,n)=>e+(t-e)*n;function Lp(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function oI({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,l=0,c=0;if(!t)o=l=c=n;else{const d=n<.5?n*(1+t):n+t-n*t,h=2*n-d;o=Lp(h,d,e+1/3),l=Lp(h,d,e),c=Lp(h,d,e-1/3)}return{red:Math.round(o*255),green:Math.round(l*255),blue:Math.round(c*255),alpha:r}}function wd(e,t){return n=>n>0?t:e}const Fp=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},aI=[Um,ji,Ao],lI=e=>aI.find(t=>t.test(e));function wb(e){const t=lI(e);if(!t)return!1;let n=t.parse(e);return t===Ao&&(n=oI(n)),n}const bb=(e,t)=>{const n=wb(e),r=wb(t);if(!n||!r)return wd(e,t);const o={...n};return l=>(o.red=Fp(n.red,r.red,l),o.green=Fp(n.green,r.green,l),o.blue=Fp(n.blue,r.blue,l),o.alpha=pt(n.alpha,r.alpha,l),ji.transform(o))},cI=(e,t)=>n=>t(e(n)),ic=(...e)=>e.reduce(cI),qm=new Set(["none","hidden"]);function uI(e,t){return qm.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function dI(e,t){return n=>pt(e,t,n)}function v0(e){return typeof e=="number"?dI:typeof e=="string"?t0(e)?wd:Kt.test(e)?bb:pI:Array.isArray(e)?ZS:typeof e=="object"?Kt.test(e)?bb:hI:wd}function ZS(e,t){const n=[...e],r=n.length,o=e.map((l,c)=>v0(l)(l,t[c]));return l=>{for(let c=0;c<r;c++)n[c]=o[c](l);return n}}function hI(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=v0(e[o])(e[o],t[o]));return o=>{for(const l in r)n[l]=r[l](o);return n}}function fI(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let l=0;l<t.values.length;l++){const c=t.types[l],d=e.indexes[c][o[c]],h=(n=e.values[d])!==null&&n!==void 0?n:0;r[l]=h,o[c]++}return r}const pI=(e,t)=>{const n=Ws.createTransformer(t),r=Ll(e),o=Ll(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?qm.has(e)&&!o.values.length||qm.has(t)&&!r.values.length?uI(e,t):ic(ZS(fI(r,o),o.values),n):wd(e,t)};function e2(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?pt(e,t,n):v0(e)(e,t)}const mI=5;function t2(e,t,n){const r=Math.max(t-mI,0);return kS(n-e(r),t-r)}const xt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Vp=.001;function gI({duration:e=xt.duration,bounce:t=xt.bounce,velocity:n=xt.velocity,mass:r=xt.mass}){let o,l,c=1-t;c=Xr(xt.minDamping,xt.maxDamping,c),e=Xr(xt.minDuration,xt.maxDuration,Gr(e)),c<1?(o=f=>{const m=f*c,g=m*e,v=m-n,N=Hm(f,c),j=Math.exp(-g);return Vp-v/N*j},l=f=>{const g=f*c*e,v=g*n+n,N=Math.pow(c,2)*Math.pow(f,2)*e,j=Math.exp(-g),b=Hm(Math.pow(f,2),c);return(-o(f)+Vp>0?-1:1)*((v-N)*j)/b}):(o=f=>{const m=Math.exp(-f*e),g=(f-n)*e+1;return-Vp+m*g},l=f=>{const m=Math.exp(-f*e),g=(n-f)*(e*e);return m*g});const d=5/e,h=vI(o,l,d);if(e=Kr(e),isNaN(h))return{stiffness:xt.stiffness,damping:xt.damping,duration:e};{const f=Math.pow(h,2)*r;return{stiffness:f,damping:c*2*Math.sqrt(r*f),duration:e}}}const xI=12;function vI(e,t,n){let r=n;for(let o=1;o<xI;o++)r=r-e(r)/t(r);return r}function Hm(e,t){return e*Math.sqrt(1-t*t)}const yI=["duration","bounce"],wI=["stiffness","damping","mass"];function jb(e,t){return t.some(n=>e[n]!==void 0)}function bI(e){let t={velocity:xt.velocity,stiffness:xt.stiffness,damping:xt.damping,mass:xt.mass,isResolvedFromDuration:!1,...e};if(!jb(e,wI)&&jb(e,yI))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,l=2*Xr(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:xt.mass,stiffness:o,damping:l}}else{const n=gI(e);t={...t,...n,mass:xt.mass},t.isResolvedFromDuration=!0}return t}function n2(e=xt.visualDuration,t=xt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const l=n.keyframes[0],c=n.keyframes[n.keyframes.length-1],d={done:!1,value:l},{stiffness:h,damping:f,mass:m,duration:g,velocity:v,isResolvedFromDuration:N}=bI({...n,velocity:-Gr(n.velocity||0)}),j=v||0,b=f/(2*Math.sqrt(h*m)),C=c-l,S=Gr(Math.sqrt(h/m)),k=Math.abs(C)<5;r||(r=k?xt.restSpeed.granular:xt.restSpeed.default),o||(o=k?xt.restDelta.granular:xt.restDelta.default);let _;if(b<1){const R=Hm(S,b);_=P=>{const L=Math.exp(-b*S*P);return c-L*((j+b*S*C)/R*Math.sin(R*P)+C*Math.cos(R*P))}}else if(b===1)_=R=>c-Math.exp(-S*R)*(C+(j+S*C)*R);else{const R=S*Math.sqrt(b*b-1);_=P=>{const L=Math.exp(-b*S*P),M=Math.min(R*P,300);return c-L*((j+b*S*C)*Math.sinh(M)+R*C*Math.cosh(M))/R}}const T={calculatedDuration:N&&g||null,next:R=>{const P=_(R);if(N)d.done=R>=g;else{let L=0;b<1&&(L=R===0?Kr(j):t2(_,R,P));const M=Math.abs(L)<=r,G=Math.abs(c-P)<=o;d.done=M&&G}return d.value=d.done?c:P,d},toString:()=>{const R=Math.min(bS(T),Lm),P=jS(L=>T.next(R*L).value,R,30);return R+"ms "+P}};return T}function Nb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:l=500,modifyTarget:c,min:d,max:h,restDelta:f=.5,restSpeed:m}){const g=e[0],v={done:!1,value:g},N=M=>d!==void 0&&M<d||h!==void 0&&M>h,j=M=>d===void 0?h:h===void 0||Math.abs(d-M)<Math.abs(h-M)?d:h;let b=n*t;const C=g+b,S=c===void 0?C:c(C);S!==C&&(b=S-g);const k=M=>-b*Math.exp(-M/r),_=M=>S+k(M),T=M=>{const G=k(M),H=_(M);v.done=Math.abs(G)<=f,v.value=v.done?S:H};let R,P;const L=M=>{N(v.value)&&(R=M,P=n2({keyframes:[v.value,j(v.value)],velocity:t2(_,M,v.value),damping:o,stiffness:l,restDelta:f,restSpeed:m}))};return L(0),{calculatedDuration:null,next:M=>{let G=!1;return!P&&R===void 0&&(G=!0,T(M),L(M)),R!==void 0&&M>=R?P.next(M-R):(!G&&T(M),v)}}}const jI=sc(.42,0,1,1),NI=sc(0,0,.58,1),r2=sc(.42,0,.58,1),SI=e=>Array.isArray(e)&&typeof e[0]!="number",CI={linear:Sn,easeIn:jI,easeInOut:r2,easeOut:NI,circIn:f0,circInOut:LS,circOut:IS,backIn:h0,backInOut:OS,backOut:MS,anticipate:DS},Sb=e=>{if(a0(e)){eS(e.length===4);const[t,n,r,o]=e;return sc(t,n,r,o)}else if(typeof e=="string")return CI[e];return e};function _I(e,t,n){const r=[],o=n||e2,l=e.length-1;for(let c=0;c<l;c++){let d=o(e[c],e[c+1]);if(t){const h=Array.isArray(t)?t[c]||Sn:t;d=ic(h,d)}r.push(d)}return r}function EI(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const l=e.length;if(eS(l===t.length),l===1)return()=>t[0];if(l===2&&e[0]===e[1])return()=>t[1];e[0]>e[l-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=_I(t,r,o),d=c.length,h=f=>{let m=0;if(d>1)for(;m<e.length-2&&!(f<e[m+1]);m++);const g=na(e[m],e[m+1],f);return c[m](g)};return n?f=>h(Xr(e[0],e[l-1],f)):h}function kI(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=na(0,t,r);e.push(pt(n,1,o))}}function TI(e){const t=[0];return kI(t,e.length-1),t}function PI(e,t){return e.map(n=>n*t)}function RI(e,t){return e.map(()=>t||r2).splice(0,e.length-1)}function bd({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=SI(r)?r.map(Sb):Sb(r),l={done:!1,value:t[0]},c=PI(n&&n.length===t.length?n:TI(t),e),d=EI(c,t,{ease:Array.isArray(o)?o:RI(t,o)});return{calculatedDuration:e,next:h=>(l.value=d(h),l.done=h>=e,l)}}const AI=e=>{const t=({timestamp:n})=>e(n);return{start:()=>lt.update(t,!0),stop:()=>Hs(t),now:()=>Vt.isProcessing?Vt.timestamp:br.now()}},MI={decay:Nb,inertia:Nb,tween:bd,keyframes:bd,spring:n2},OI=e=>e/100;class y0 extends JS{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:h}=this.options;h&&h()};const{name:n,motionValue:r,element:o,keyframes:l}=this.options,c=(o==null?void 0:o.KeyframeResolver)||p0,d=(h,f)=>this.onKeyframesResolved(h,f);this.resolver=new c(l,d,n,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:l,velocity:c=0}=this.options,d=o0(n)?n:MI[n]||bd;let h,f;d!==bd&&typeof t[0]!="number"&&(h=ic(OI,e2(t[0],t[1])),t=[0,100]);const m=d({...this.options,keyframes:t});l==="mirror"&&(f=d({...this.options,keyframes:[...t].reverse(),velocity:-c})),m.calculatedDuration===null&&(m.calculatedDuration=bS(m));const{calculatedDuration:g}=m,v=g+o,N=v*(r+1)-o;return{generator:m,mirroredGenerator:f,mapPercentToKeyframes:h,calculatedDuration:g,resolvedDuration:v,totalDuration:N}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:M}=this.options;return{done:!0,value:M[M.length-1]}}const{finalKeyframe:o,generator:l,mirroredGenerator:c,mapPercentToKeyframes:d,keyframes:h,calculatedDuration:f,totalDuration:m,resolvedDuration:g}=r;if(this.startTime===null)return l.next(0);const{delay:v,repeat:N,repeatType:j,repeatDelay:b,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-m/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const S=this.currentTime-v*(this.speed>=0?1:-1),k=this.speed>=0?S<0:S>m;this.currentTime=Math.max(S,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=m);let _=this.currentTime,T=l;if(N){const M=Math.min(this.currentTime,m)/g;let G=Math.floor(M),H=M%1;!H&&M>=1&&(H=1),H===1&&G--,G=Math.min(G,N+1),!!(G%2)&&(j==="reverse"?(H=1-H,b&&(H-=b/g)):j==="mirror"&&(T=c)),_=Xr(0,1,H)*g}const R=k?{done:!1,value:h[0]}:T.next(_);d&&(R.value=d(R.value));let{done:P}=R;!k&&f!==null&&(P=this.speed>=0?this.currentTime>=m:this.currentTime<=0);const L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return L&&o!==void 0&&(R.value=Jd(h,this.options,o)),C&&C(R.value),L&&this.finish(),R}get duration(){const{resolved:t}=this;return t?Gr(t.calculatedDuration):0}get time(){return Gr(this.currentTime)}set time(t){t=Kr(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Gr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=AI,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(l=>this.tick(l))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const DI=new Set(["opacity","clipPath","filter","transform"]);function II(e,t,n,{delay:r=0,duration:o=300,repeat:l=0,repeatType:c="loop",ease:d="easeInOut",times:h}={}){const f={[t]:n};h&&(f.offset=h);const m=SS(d,o);return Array.isArray(m)&&(f.easing=m),e.animate(f,{delay:r,duration:o,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:l+1,direction:c==="reverse"?"alternate":"normal"})}const LI=qg(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),jd=10,FI=2e4;function VI(e){return o0(e.type)||e.type==="spring"||!NS(e.ease)}function BI(e,t){const n=new y0({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let l=0;for(;!r.done&&l<FI;)r=n.sample(l),o.push(r.value),l+=jd;return{times:void 0,keyframes:o,duration:l-jd,ease:"linear"}}const s2={anticipate:DS,backInOut:OS,circInOut:LS};function $I(e){return e in s2}class Cb extends JS{constructor(t){super(t);const{name:n,motionValue:r,element:o,keyframes:l}=this.options;this.resolver=new XS(l,(c,d)=>this.onKeyframesResolved(c,d),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:l,ease:c,type:d,motionValue:h,name:f,startTime:m}=this.options;if(!(!((r=h.owner)===null||r===void 0)&&r.current))return!1;if(typeof c=="string"&&yd()&&$I(c)&&(c=s2[c]),VI(this.options)){const{onComplete:v,onUpdate:N,motionValue:j,element:b,...C}=this.options,S=BI(t,C);t=S.keyframes,t.length===1&&(t[1]=t[0]),o=S.duration,l=S.times,c=S.ease,d="keyframes"}const g=II(h.owner.current,f,t,{...this.options,duration:o,times:l,ease:c});return g.startTime=m??this.calcStartTime(),this.pendingTimeline?(cb(g,this.pendingTimeline),this.pendingTimeline=void 0):g.onfinish=()=>{const{onComplete:v}=this.options;h.set(Jd(t,this.options,n)),v&&v(),this.cancel(),this.resolveFinishedPromise()},{animation:g,duration:o,times:l,type:d,ease:c,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Gr(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Gr(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Kr(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Sn;const{animation:r}=n;cb(r,t)}return Sn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:l,ease:c,times:d}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:f,onUpdate:m,onComplete:g,element:v,...N}=this.options,j=new y0({...N,keyframes:r,duration:o,type:l,ease:c,times:d,isGenerator:!0}),b=Kr(this.time);f.setWithVelocity(j.sample(b-jd).value,j.sample(b).value,jd)}const{onStop:h}=this.options;h&&h(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:l,damping:c,type:d}=t;return LI()&&r&&DI.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&l!=="mirror"&&c!==0&&d!=="inertia"}}const UI={type:"spring",stiffness:500,damping:25,restSpeed:10},zI=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),qI={type:"keyframes",duration:.8},HI={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},WI=(e,{keyframes:t})=>t.length>2?qI:Xi.has(e)?e.startsWith("scale")?zI(t[1]):UI:HI;function KI({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:l,repeatType:c,repeatDelay:d,from:h,elapsed:f,...m}){return!!Object.keys(m).length}const w0=(e,t,n,r={},o,l)=>c=>{const d=i0(r,e)||{},h=d.delay||r.delay||0;let{elapsed:f=0}=r;f=f-Kr(h);let m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-f,onUpdate:v=>{t.set(v),d.onUpdate&&d.onUpdate(v)},onComplete:()=>{c(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:l?void 0:o};KI(d)||(m={...m,...WI(e,m)}),m.duration&&(m.duration=Kr(m.duration)),m.repeatDelay&&(m.repeatDelay=Kr(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let g=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(g=!0)),g&&!l&&t.get()!==void 0){const v=Jd(m.keyframes,d);if(v!==void 0)return lt.update(()=>{m.onUpdate(v),m.onComplete()}),new d6([])}return!l&&Cb.supports(m)?new Cb(m):new y0(m)};function GI({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function i2(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var l;let{transition:c=e.getDefaultTransition(),transitionEnd:d,...h}=t;r&&(c=r);const f=[],m=o&&e.animationState&&e.animationState.getState()[o];for(const g in h){const v=e.getValue(g,(l=e.latestValues[g])!==null&&l!==void 0?l:null),N=h[g];if(N===void 0||m&&GI(m,g))continue;const j={delay:n,...i0(c||{},g)};let b=!1;if(window.MotionHandoffAnimation){const S=TS(e);if(S){const k=window.MotionHandoffAnimation(S,g,lt);k!==null&&(j.startTime=k,b=!0)}}Vm(e,g),v.start(w0(g,v,N,e.shouldReduceMotion&&Xi.has(g)?{type:!1}:j,e,b));const C=v.animation;C&&f.push(C)}return d&&Promise.all(f).then(()=>{lt.update(()=>{d&&C6(e,d)})}),f}function Wm(e,t,n={}){var r;const o=Xd(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:l=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(l=n.transitionOverride);const c=o?()=>Promise.all(i2(e,o,n)):()=>Promise.resolve(),d=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:m=0,staggerChildren:g,staggerDirection:v}=l;return QI(e,t,m+f,g,v,n)}:()=>Promise.resolve(),{when:h}=l;if(h){const[f,m]=h==="beforeChildren"?[c,d]:[d,c];return f().then(()=>m())}else return Promise.all([c(),d(n.delay)])}function QI(e,t,n=0,r=0,o=1,l){const c=[],d=(e.variantChildren.size-1)*r,h=o===1?(f=0)=>f*r:(f=0)=>d-f*r;return Array.from(e.variantChildren).sort(YI).forEach((f,m)=>{f.notify("AnimationStart",t),c.push(Wm(f,t,{...l,delay:n+h(m)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(c)}function YI(e,t){return e.sortNodePosition(t)}function XI(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(l=>Wm(e,l,n));r=Promise.all(o)}else if(typeof t=="string")r=Wm(e,t,n);else{const o=typeof t=="function"?Xd(e,t,n.custom):t;r=Promise.all(i2(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const JI=Kg.length;function o2(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?o2(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<JI;n++){const r=Kg[n],o=e.props[r];(Ol(o)||o===!1)&&(t[r]=o)}return t}const ZI=[...Wg].reverse(),eL=Wg.length;function tL(e){return t=>Promise.all(t.map(({animation:n,options:r})=>XI(e,n,r)))}function nL(e){let t=tL(e),n=_b(),r=!0;const o=h=>(f,m)=>{var g;const v=Xd(e,m,h==="exit"?(g=e.presenceContext)===null||g===void 0?void 0:g.custom:void 0);if(v){const{transition:N,transitionEnd:j,...b}=v;f={...f,...b,...j}}return f};function l(h){t=h(e)}function c(h){const{props:f}=e,m=o2(e.parent)||{},g=[],v=new Set;let N={},j=1/0;for(let C=0;C<eL;C++){const S=ZI[C],k=n[S],_=f[S]!==void 0?f[S]:m[S],T=Ol(_),R=S===h?k.isActive:null;R===!1&&(j=C);let P=_===m[S]&&_!==f[S]&&T;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),k.protectedKeys={...N},!k.isActive&&R===null||!_&&!k.prevProp||Qd(_)||typeof _=="boolean")continue;const L=rL(k.prevProp,_);let M=L||S===h&&k.isActive&&!P&&T||C>j&&T,G=!1;const H=Array.isArray(_)?_:[_];let ne=H.reduce(o(S),{});R===!1&&(ne={});const{prevResolvedValues:ce={}}=k,se={...ce,...ne},ue=re=>{M=!0,v.has(re)&&(G=!0,v.delete(re)),k.needsAnimating[re]=!0;const B=e.getValue(re);B&&(B.liveStyle=!1)};for(const re in se){const B=ne[re],K=ce[re];if(N.hasOwnProperty(re))continue;let Y=!1;Im(B)&&Im(K)?Y=!wS(B,K):Y=B!==K,Y?B!=null?ue(re):v.add(re):B!==void 0&&v.has(re)?ue(re):k.protectedKeys[re]=!0}k.prevProp=_,k.prevResolvedValues=ne,k.isActive&&(N={...N,...ne}),r&&e.blockInitialAnimation&&(M=!1),M&&(!(P&&L)||G)&&g.push(...H.map(re=>({animation:re,options:{type:S}})))}if(v.size){const C={};v.forEach(S=>{const k=e.getBaseTarget(S),_=e.getValue(S);_&&(_.liveStyle=!0),C[S]=k??null}),g.push({animation:C})}let b=!!g.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(g):Promise.resolve()}function d(h,f){var m;if(n[h].isActive===f)return Promise.resolve();(m=e.variantChildren)===null||m===void 0||m.forEach(v=>{var N;return(N=v.animationState)===null||N===void 0?void 0:N.setActive(h,f)}),n[h].isActive=f;const g=c(h);for(const v in n)n[v].protectedKeys={};return g}return{animateChanges:c,setActive:d,setAnimateFunction:l,getState:()=>n,reset:()=>{n=_b(),r=!0}}}function rL(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!wS(t,e):!1}function mi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function _b(){return{animate:mi(!0),whileInView:mi(),whileHover:mi(),whileTap:mi(),whileDrag:mi(),whileFocus:mi(),exit:mi()}}class Ys{constructor(t){this.isMounted=!1,this.node=t}update(){}}class sL extends Ys{constructor(t){super(t),t.animationState||(t.animationState=nL(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Qd(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let iL=0;class oL extends Ys{constructor(){super(...arguments),this.id=iL++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const aL={animation:{Feature:sL},exit:{Feature:oL}};function Fl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function oc(e){return{point:{x:e.pageX,y:e.pageY}}}const lL=e=>t=>l0(t)&&e(t,oc(t));function _l(e,t,n,r){return Fl(e,t,lL(n),r)}const Eb=(e,t)=>Math.abs(e-t);function cL(e,t){const n=Eb(e.x,t.x),r=Eb(e.y,t.y);return Math.sqrt(n**2+r**2)}class a2{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:l=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=$p(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,N=cL(g.offset,{x:0,y:0})>=3;if(!v&&!N)return;const{point:j}=g,{timestamp:b}=Vt;this.history.push({...j,timestamp:b});const{onStart:C,onMove:S}=this.handlers;v||(C&&C(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,g)},this.handlePointerMove=(g,v)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=Bp(v,this.transformPagePoint),lt.update(this.updatePoint,!0)},this.handlePointerUp=(g,v)=>{this.end();const{onEnd:N,onSessionEnd:j,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=$p(g.type==="pointercancel"?this.lastMoveEventInfo:Bp(v,this.transformPagePoint),this.history);this.startEvent&&N&&N(g,C),j&&j(g,C)},!l0(t))return;this.dragSnapToOrigin=l,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const c=oc(t),d=Bp(c,this.transformPagePoint),{point:h}=d,{timestamp:f}=Vt;this.history=[{...h,timestamp:f}];const{onSessionStart:m}=n;m&&m(t,$p(d,this.history)),this.removeListeners=ic(_l(this.contextWindow,"pointermove",this.handlePointerMove),_l(this.contextWindow,"pointerup",this.handlePointerUp),_l(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Hs(this.updatePoint)}}function Bp(e,t){return t?{point:t(e.point)}:e}function kb(e,t){return{x:e.x-t.x,y:e.y-t.y}}function $p({point:e},t){return{point:e,delta:kb(e,l2(t)),offset:kb(e,uL(t)),velocity:dL(t,.1)}}function uL(e){return e[0]}function l2(e){return e[e.length-1]}function dL(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=l2(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Kr(t)));)n--;if(!r)return{x:0,y:0};const l=Gr(o.timestamp-r.timestamp);if(l===0)return{x:0,y:0};const c={x:(o.x-r.x)/l,y:(o.y-r.y)/l};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}const c2=1e-4,hL=1-c2,fL=1+c2,u2=.01,pL=0-u2,mL=0+u2;function _n(e){return e.max-e.min}function gL(e,t,n){return Math.abs(e-t)<=n}function Tb(e,t,n,r=.5){e.origin=r,e.originPoint=pt(t.min,t.max,e.origin),e.scale=_n(n)/_n(t),e.translate=pt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=hL&&e.scale<=fL||isNaN(e.scale))&&(e.scale=1),(e.translate>=pL&&e.translate<=mL||isNaN(e.translate))&&(e.translate=0)}function El(e,t,n,r){Tb(e.x,t.x,n.x,r?r.originX:void 0),Tb(e.y,t.y,n.y,r?r.originY:void 0)}function Pb(e,t,n){e.min=n.min+t.min,e.max=e.min+_n(t)}function xL(e,t,n){Pb(e.x,t.x,n.x),Pb(e.y,t.y,n.y)}function Rb(e,t,n){e.min=t.min-n.min,e.max=e.min+_n(t)}function kl(e,t,n){Rb(e.x,t.x,n.x),Rb(e.y,t.y,n.y)}function vL(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?pt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?pt(n,e,r.max):Math.min(e,n)),e}function Ab(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function yL(e,{top:t,left:n,bottom:r,right:o}){return{x:Ab(e.x,n,o),y:Ab(e.y,t,r)}}function Mb(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function wL(e,t){return{x:Mb(e.x,t.x),y:Mb(e.y,t.y)}}function bL(e,t){let n=.5;const r=_n(e),o=_n(t);return o>r?n=na(t.min,t.max-r,e.min):r>o&&(n=na(e.min,e.max-o,t.min)),Xr(0,1,n)}function jL(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Km=.35;function NL(e=Km){return e===!1?e=0:e===!0&&(e=Km),{x:Ob(e,"left","right"),y:Ob(e,"top","bottom")}}function Ob(e,t,n){return{min:Db(e,t),max:Db(e,n)}}function Db(e,t){return typeof e=="number"?e:e[t]||0}const Ib=()=>({translate:0,scale:1,origin:0,originPoint:0}),Mo=()=>({x:Ib(),y:Ib()}),Lb=()=>({min:0,max:0}),bt=()=>({x:Lb(),y:Lb()});function On(e){return[e("x"),e("y")]}function d2({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function SL({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function CL(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Up(e){return e===void 0||e===1}function Gm({scale:e,scaleX:t,scaleY:n}){return!Up(e)||!Up(t)||!Up(n)}function xi(e){return Gm(e)||h2(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function h2(e){return Fb(e.x)||Fb(e.y)}function Fb(e){return e&&e!=="0%"}function Nd(e,t,n){const r=e-n,o=t*r;return n+o}function Vb(e,t,n,r,o){return o!==void 0&&(e=Nd(e,o,r)),Nd(e,n,r)+t}function Qm(e,t=0,n=1,r,o){e.min=Vb(e.min,t,n,r,o),e.max=Vb(e.max,t,n,r,o)}function f2(e,{x:t,y:n}){Qm(e.x,t.translate,t.scale,t.originPoint),Qm(e.y,n.translate,n.scale,n.originPoint)}const Bb=.999999999999,$b=1.0000000000001;function _L(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let l,c;for(let d=0;d<o;d++){l=n[d],c=l.projectionDelta;const{visualElement:h}=l.options;h&&h.props.style&&h.props.style.display==="contents"||(r&&l.options.layoutScroll&&l.scroll&&l!==l.root&&Do(e,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,f2(e,c)),r&&xi(l.latestValues)&&Do(e,l.latestValues))}t.x<$b&&t.x>Bb&&(t.x=1),t.y<$b&&t.y>Bb&&(t.y=1)}function Oo(e,t){e.min=e.min+t,e.max=e.max+t}function Ub(e,t,n,r,o=.5){const l=pt(e.min,e.max,o);Qm(e,t,n,l,r)}function Do(e,t){Ub(e.x,t.x,t.scaleX,t.scale,t.originX),Ub(e.y,t.y,t.scaleY,t.scale,t.originY)}function p2(e,t){return d2(CL(e.getBoundingClientRect(),t))}function EL(e,t,n){const r=p2(e,n),{scroll:o}=t;return o&&(Oo(r.x,o.offset.x),Oo(r.y,o.offset.y)),r}const m2=({current:e})=>e?e.ownerDocument.defaultView:null,kL=new WeakMap;class TL{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=bt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=m=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(oc(m).point)},l=(m,g)=>{const{drag:v,dragPropagation:N,onDragStart:j}=this.getProps();if(v&&!N&&(this.openDragLock&&this.openDragLock(),this.openDragLock=w6(v),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),On(C=>{let S=this.getAxisMotionValue(C).get()||0;if(wr.test(S)){const{projection:k}=this.visualElement;if(k&&k.layout){const _=k.layout.layoutBox[C];_&&(S=_n(_)*(parseFloat(S)/100))}}this.originPoint[C]=S}),j&&lt.postRender(()=>j(m,g)),Vm(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},c=(m,g)=>{const{dragPropagation:v,dragDirectionLock:N,onDirectionLock:j,onDrag:b}=this.getProps();if(!v&&!this.openDragLock)return;const{offset:C}=g;if(N&&this.currentDirection===null){this.currentDirection=PL(C),this.currentDirection!==null&&j&&j(this.currentDirection);return}this.updateAxis("x",g.point,C),this.updateAxis("y",g.point,C),this.visualElement.render(),b&&b(m,g)},d=(m,g)=>this.stop(m,g),h=()=>On(m=>{var g;return this.getAnimationState(m)==="paused"&&((g=this.getAxisMotionValue(m).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:f}=this.getProps();this.panSession=new a2(t,{onSessionStart:o,onStart:l,onMove:c,onSessionEnd:d,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,contextWindow:m2(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:l}=this.getProps();l&&lt.postRender(()=>l(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Fu(t,o,this.currentDirection))return;const l=this.getAxisMotionValue(t);let c=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(c=vL(c,this.constraints[t],this.elastic[t])),l.set(c)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,l=this.constraints;n&&Ro(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=yL(o.layoutBox,n):this.constraints=!1,this.elastic=NL(r),l!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&On(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=jL(o.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ro(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const l=EL(r,o.root,this.visualElement.getTransformPagePoint());let c=wL(o.layout.layoutBox,l);if(n){const d=n(SL(c));this.hasMutatedConstraints=!!d,d&&(c=d2(d))}return c}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:l,dragSnapToOrigin:c,onDragTransitionEnd:d}=this.getProps(),h=this.constraints||{},f=On(m=>{if(!Fu(m,n,this.currentDirection))return;let g=h&&h[m]||{};c&&(g={min:0,max:0});const v=o?200:1e6,N=o?40:1e7,j={type:"inertia",velocity:r?t[m]:0,bounceStiffness:v,bounceDamping:N,timeConstant:750,restDelta:1,restSpeed:10,...l,...g};return this.startAxisValueAnimation(m,j)});return Promise.all(f).then(d)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Vm(this.visualElement,t),r.start(w0(t,r,0,n,this.visualElement,!1))}stopAnimation(){On(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){On(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){On(n=>{const{drag:r}=this.getProps();if(!Fu(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,l=this.getAxisMotionValue(n);if(o&&o.layout){const{min:c,max:d}=o.layout.layoutBox[n];l.set(t[n]-pt(c,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ro(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};On(c=>{const d=this.getAxisMotionValue(c);if(d&&this.constraints!==!1){const h=d.get();o[c]=bL({min:h,max:h},this.constraints[c])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),On(c=>{if(!Fu(c,t,null))return;const d=this.getAxisMotionValue(c),{min:h,max:f}=this.constraints[c];d.set(pt(h,f,o[c]))})}addListeners(){if(!this.visualElement.current)return;kL.set(this.visualElement,this);const t=this.visualElement.current,n=_l(t,"pointerdown",h=>{const{drag:f,dragListener:m=!0}=this.getProps();f&&m&&this.start(h)}),r=()=>{const{dragConstraints:h}=this.getProps();Ro(h)&&h.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,l=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),lt.read(r);const c=Fl(window,"resize",()=>this.scalePositionWithinConstraints()),d=o.addEventListener("didUpdate",(({delta:h,hasLayoutChanged:f})=>{this.isDragging&&f&&(On(m=>{const g=this.getAxisMotionValue(m);g&&(this.originPoint[m]+=h[m].translate,g.set(g.get()+h[m].translate))}),this.visualElement.render())}));return()=>{c(),n(),l(),d&&d()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:l=!1,dragElastic:c=Km,dragMomentum:d=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:l,dragElastic:c,dragMomentum:d}}}function Fu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function PL(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class RL extends Ys{constructor(t){super(t),this.removeGroupControls=Sn,this.removeListeners=Sn,this.controls=new TL(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Sn}unmount(){this.removeGroupControls(),this.removeListeners()}}const zb=e=>(t,n)=>{e&&lt.postRender(()=>e(t,n))};class AL extends Ys{constructor(){super(...arguments),this.removePointerDownListener=Sn}onPointerDown(t){this.session=new a2(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:m2(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:zb(t),onStart:zb(n),onMove:r,onEnd:(l,c)=>{delete this.session,o&&lt.postRender(()=>o(l,c))}}}mount(){this.removePointerDownListener=_l(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function ML(){const e=y.useContext(Kd);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=y.useId();y.useEffect(()=>r(o),[]);const l=y.useCallback(()=>n&&n(o),[o,n]);return!t&&n?[!1,l]:[!0]}const rd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function qb(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ul={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Me.test(e))e=parseFloat(e);else return e;const n=qb(e,t.target.x),r=qb(e,t.target.y);return`${n}% ${r}%`}},OL={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Ws.parse(e);if(o.length>5)return r;const l=Ws.createTransformer(e),c=typeof o[0]!="number"?1:0,d=n.x.scale*t.x,h=n.y.scale*t.y;o[0+c]/=d,o[1+c]/=h;const f=pt(d,h,.5);return typeof o[2+c]=="number"&&(o[2+c]/=f),typeof o[3+c]=="number"&&(o[3+c]/=f),l(o)}};class DL extends y.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:l}=t;L3(IL),l&&(n.group&&n.group.add(l),r&&r.register&&o&&r.register(l),l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,onExitComplete:()=>this.safeToRemove()})),rd.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:l}=this.props,c=r.projection;return c&&(c.isPresent=l,o||t.layoutDependency!==n||n===void 0?c.willUpdate():this.safeToRemove(),t.isPresent!==l&&(l?c.promote():c.relegate()||lt.postRender(()=>{const d=c.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Qg.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function g2(e){const[t,n]=ML(),r=y.useContext(zg);return i.jsx(DL,{...e,layoutGroup:r,switchLayoutGroup:y.useContext(aS),isPresent:t,safeToRemove:n})}const IL={borderRadius:{...ul,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ul,borderTopRightRadius:ul,borderBottomLeftRadius:ul,borderBottomRightRadius:ul,boxShadow:OL};function LL(e,t,n){const r=Qt(e)?e:Il(e);return r.start(w0("",r,t,n)),r.animation}function FL(e){return e instanceof SVGElement&&e.tagName!=="svg"}const VL=(e,t)=>e.depth-t.depth;class BL{constructor(){this.children=[],this.isDirty=!1}add(t){c0(this.children,t),this.isDirty=!0}remove(t){u0(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(VL),this.isDirty=!1,this.children.forEach(t)}}function $L(e,t){const n=br.now(),r=({timestamp:o})=>{const l=o-n;l>=t&&(Hs(r),e(l-t))};return lt.read(r,!0),()=>Hs(r)}const x2=["TopLeft","TopRight","BottomLeft","BottomRight"],UL=x2.length,Hb=e=>typeof e=="string"?parseFloat(e):e,Wb=e=>typeof e=="number"||Me.test(e);function zL(e,t,n,r,o,l){o?(e.opacity=pt(0,n.opacity!==void 0?n.opacity:1,qL(r)),e.opacityExit=pt(t.opacity!==void 0?t.opacity:1,0,HL(r))):l&&(e.opacity=pt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let c=0;c<UL;c++){const d=`border${x2[c]}Radius`;let h=Kb(t,d),f=Kb(n,d);if(h===void 0&&f===void 0)continue;h||(h=0),f||(f=0),h===0||f===0||Wb(h)===Wb(f)?(e[d]=Math.max(pt(Hb(h),Hb(f),r),0),(wr.test(f)||wr.test(h))&&(e[d]+="%")):e[d]=f}(t.rotate||n.rotate)&&(e.rotate=pt(t.rotate||0,n.rotate||0,r))}function Kb(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const qL=v2(0,.5,IS),HL=v2(.5,.95,Sn);function v2(e,t,n){return r=>r<e?0:r>t?1:n(na(e,t,r))}function Gb(e,t){e.min=t.min,e.max=t.max}function Mn(e,t){Gb(e.x,t.x),Gb(e.y,t.y)}function Qb(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Yb(e,t,n,r,o){return e-=t,e=Nd(e,1/n,r),o!==void 0&&(e=Nd(e,1/o,r)),e}function WL(e,t=0,n=1,r=.5,o,l=e,c=e){if(wr.test(t)&&(t=parseFloat(t),t=pt(c.min,c.max,t/100)-c.min),typeof t!="number")return;let d=pt(l.min,l.max,r);e===l&&(d-=t),e.min=Yb(e.min,t,n,d,o),e.max=Yb(e.max,t,n,d,o)}function Xb(e,t,[n,r,o],l,c){WL(e,t[n],t[r],t[o],t.scale,l,c)}const KL=["x","scaleX","originX"],GL=["y","scaleY","originY"];function Jb(e,t,n,r){Xb(e.x,t,KL,n?n.x:void 0,r?r.x:void 0),Xb(e.y,t,GL,n?n.y:void 0,r?r.y:void 0)}function Zb(e){return e.translate===0&&e.scale===1}function y2(e){return Zb(e.x)&&Zb(e.y)}function e1(e,t){return e.min===t.min&&e.max===t.max}function QL(e,t){return e1(e.x,t.x)&&e1(e.y,t.y)}function t1(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function w2(e,t){return t1(e.x,t.x)&&t1(e.y,t.y)}function n1(e){return _n(e.x)/_n(e.y)}function r1(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class YL{constructor(){this.members=[]}add(t){c0(this.members,t),t.scheduleRender()}remove(t){if(u0(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const l=this.members[o];if(l.isPresent!==!1){r=l;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function XL(e,t,n){let r="";const o=e.x.translate/t.x,l=e.y.translate/t.y,c=(n==null?void 0:n.z)||0;if((o||l||c)&&(r=`translate3d(${o}px, ${l}px, ${c}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:f,rotate:m,rotateX:g,rotateY:v,skewX:N,skewY:j}=n;f&&(r=`perspective(${f}px) ${r}`),m&&(r+=`rotate(${m}deg) `),g&&(r+=`rotateX(${g}deg) `),v&&(r+=`rotateY(${v}deg) `),N&&(r+=`skewX(${N}deg) `),j&&(r+=`skewY(${j}deg) `)}const d=e.x.scale*t.x,h=e.y.scale*t.y;return(d!==1||h!==1)&&(r+=`scale(${d}, ${h})`),r||"none"}const vi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},vl=typeof window<"u"&&window.MotionDebug!==void 0,zp=["","X","Y","Z"],JL={visibility:"hidden"},s1=1e3;let ZL=0;function qp(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function b2(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=TS(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:l}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",lt,!(o||l))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&b2(r)}function j2({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(c={},d=t==null?void 0:t()){this.id=ZL++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,vl&&(vi.totalNodes=vi.resolvedTargetDeltas=vi.recalculatedProjection=0),this.nodes.forEach(n8),this.nodes.forEach(a8),this.nodes.forEach(l8),this.nodes.forEach(r8),vl&&window.MotionDebug.record(vi)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new BL)}addEventListener(c,d){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new d0),this.eventHandlers.get(c).add(d)}notifyListeners(c,...d){const h=this.eventHandlers.get(c);h&&h.notify(...d)}hasListeners(c){return this.eventHandlers.has(c)}mount(c,d=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=FL(c),this.instance=c;const{layoutId:h,layout:f,visualElement:m}=this.options;if(m&&!m.current&&m.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),d&&(f||h)&&(this.isLayoutDirty=!0),e){let g;const v=()=>this.root.updateBlockedByResize=!1;e(c,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=$L(v,250),rd.hasAnimatedSinceResize&&(rd.hasAnimatedSinceResize=!1,this.nodes.forEach(o1))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&m&&(h||f)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:v,hasRelativeTargetChanged:N,layout:j})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||m.getDefaultTransition()||f8,{onLayoutAnimationStart:C,onLayoutAnimationComplete:S}=m.getProps(),k=!this.targetLayout||!w2(this.targetLayout,j)||N,_=!v&&N;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||_||v&&(k||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,_);const T={...i0(b,"layout"),onPlay:C,onComplete:S};(m.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else v||o1(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=j})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Hs(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(c8),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&b2(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const g=this.path[m];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:d,layout:h}=this.options;if(d===void 0&&!h)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(i1);return}this.isUpdating||this.nodes.forEach(i8),this.isUpdating=!1,this.nodes.forEach(o8),this.nodes.forEach(e8),this.nodes.forEach(t8),this.clearAllSnapshots();const d=br.now();Vt.delta=Xr(0,1e3/60,d-Vt.timestamp),Vt.timestamp=d,Vt.isProcessing=!0,Op.update.process(Vt),Op.preRender.process(Vt),Op.render.process(Vt),Vt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Qg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(s8),this.sharedNodes.forEach(u8)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,lt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){lt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let h=0;h<this.path.length;h++)this.path[h].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutCorrected=bt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(d=!1),d){const h=r(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:h,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!o)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!y2(this.projectionDelta),h=this.getTransformTemplate(),f=h?h(this.latestValues,""):void 0,m=f!==this.prevTransformTemplateValue;c&&(d||xi(this.latestValues)||m)&&(o(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const d=this.measurePageBox();let h=this.removeElementScroll(d);return c&&(h=this.removeTransform(h)),p8(h),{animationId:this.root.animationId,measuredBox:d,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:d}=this.options;if(!d)return bt();const h=d.measureViewportBox();if(!(((c=this.scroll)===null||c===void 0?void 0:c.wasRoot)||this.path.some(m8))){const{scroll:m}=this.root;m&&(Oo(h.x,m.offset.x),Oo(h.y,m.offset.y))}return h}removeElementScroll(c){var d;const h=bt();if(Mn(h,c),!((d=this.scroll)===null||d===void 0)&&d.wasRoot)return h;for(let f=0;f<this.path.length;f++){const m=this.path[f],{scroll:g,options:v}=m;m!==this.root&&g&&v.layoutScroll&&(g.wasRoot&&Mn(h,c),Oo(h.x,g.offset.x),Oo(h.y,g.offset.y))}return h}applyTransform(c,d=!1){const h=bt();Mn(h,c);for(let f=0;f<this.path.length;f++){const m=this.path[f];!d&&m.options.layoutScroll&&m.scroll&&m!==m.root&&Do(h,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),xi(m.latestValues)&&Do(h,m.latestValues)}return xi(this.latestValues)&&Do(h,this.latestValues),h}removeTransform(c){const d=bt();Mn(d,c);for(let h=0;h<this.path.length;h++){const f=this.path[h];if(!f.instance||!xi(f.latestValues))continue;Gm(f.latestValues)&&f.updateSnapshot();const m=bt(),g=f.measurePageBox();Mn(m,g),Jb(d,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,m)}return xi(this.latestValues)&&Jb(d,this.latestValues),d}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Vt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){var d;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==h;if(!(c||f&&this.isSharedProjectionDirty||this.isProjectionDirty||!((d=this.parent)===null||d===void 0)&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:v}=this.options;if(!(!this.layout||!(g||v))){if(this.resolvedRelativeTargetAt=Vt.timestamp,!this.targetDelta&&!this.relativeTarget){const N=this.getClosestProjectingParent();N&&N.layout&&this.animationProgress!==1?(this.relativeParent=N,this.forceRelativeParentToResolveTarget(),this.relativeTarget=bt(),this.relativeTargetOrigin=bt(),kl(this.relativeTargetOrigin,this.layout.layoutBox,N.layout.layoutBox),Mn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=bt(),this.targetWithTransforms=bt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),xL(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Mn(this.target,this.layout.layoutBox),f2(this.target,this.targetDelta)):Mn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const N=this.getClosestProjectingParent();N&&!!N.resumingFrom==!!this.resumingFrom&&!N.options.layoutScroll&&N.target&&this.animationProgress!==1?(this.relativeParent=N,this.forceRelativeParentToResolveTarget(),this.relativeTarget=bt(),this.relativeTargetOrigin=bt(),kl(this.relativeTargetOrigin,this.target,N.target),Mn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}vl&&vi.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Gm(this.parent.latestValues)||h2(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var c;const d=this.getLead(),h=!!this.resumingFrom||this!==d;let f=!0;if((this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty)&&(f=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===Vt.timestamp&&(f=!1),f)return;const{layout:m,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||g))return;Mn(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,N=this.treeScale.y;_L(this.layoutCorrected,this.treeScale,this.path,h),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=bt());const{target:j}=d;if(!j){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Qb(this.prevProjectionDelta.x,this.projectionDelta.x),Qb(this.prevProjectionDelta.y,this.projectionDelta.y)),El(this.projectionDelta,this.layoutCorrected,j,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==N||!r1(this.projectionDelta.x,this.prevProjectionDelta.x)||!r1(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",j)),vl&&vi.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){var d;if((d=this.options.visualElement)===null||d===void 0||d.scheduleRender(),c){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Mo(),this.projectionDelta=Mo(),this.projectionDeltaWithTransform=Mo()}setAnimationOrigin(c,d=!1){const h=this.snapshot,f=h?h.latestValues:{},m={...this.latestValues},g=Mo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const v=bt(),N=h?h.source:void 0,j=this.layout?this.layout.source:void 0,b=N!==j,C=this.getStack(),S=!C||C.members.length<=1,k=!!(b&&!S&&this.options.crossfade===!0&&!this.path.some(h8));this.animationProgress=0;let _;this.mixTargetDelta=T=>{const R=T/1e3;a1(g.x,c.x,R),a1(g.y,c.y,R),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(kl(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),d8(this.relativeTarget,this.relativeTargetOrigin,v,R),_&&QL(this.relativeTarget,_)&&(this.isProjectionDirty=!1),_||(_=bt()),Mn(_,this.relativeTarget)),b&&(this.animationValues=m,zL(m,f,this.latestValues,R,k,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=R},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Hs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=lt.update(()=>{rd.hasAnimatedSinceResize=!0,this.currentAnimation=LL(0,s1,{...c,onUpdate:d=>{this.mixTargetDelta(d),c.onUpdate&&c.onUpdate(d)},onComplete:()=>{c.onComplete&&c.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(s1),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:d,target:h,layout:f,latestValues:m}=c;if(!(!d||!h||!f)){if(this!==c&&this.layout&&f&&N2(this.options.animationType,this.layout.layoutBox,f.layoutBox)){h=this.target||bt();const g=_n(this.layout.layoutBox.x);h.x.min=c.target.x.min,h.x.max=h.x.min+g;const v=_n(this.layout.layoutBox.y);h.y.min=c.target.y.min,h.y.max=h.y.min+v}Mn(d,h),Do(d,m),El(this.projectionDeltaWithTransform,this.layoutCorrected,d,m)}}registerSharedNode(c,d){this.sharedNodes.has(c)||this.sharedNodes.set(c,new YL),this.sharedNodes.get(c).add(d);const f=d.options.initialPromotionConfig;d.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(d):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){var c;const{layoutId:d}=this.options;return d?((c=this.getStack())===null||c===void 0?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:d}=this.options;return d?(c=this.getStack())===null||c===void 0?void 0:c.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:d,preserveFollowOpacity:h}={}){const f=this.getStack();f&&f.promote(this,h),c&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let d=!1;const{latestValues:h}=c;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(d=!0),!d)return;const f={};h.z&&qp("z",c,f,this.animationValues);for(let m=0;m<zp.length;m++)qp(`rotate${zp[m]}`,c,f,this.animationValues),qp(`skew${zp[m]}`,c,f,this.animationValues);c.render();for(const m in f)c.setStaticValue(m,f[m]),this.animationValues&&(this.animationValues[m]=f[m]);c.scheduleRender()}getProjectionStyles(c){var d,h;if(!this.instance||this.isSVG)return;if(!this.isVisible)return JL;const f={visibility:""},m=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,f.opacity="",f.pointerEvents=td(c==null?void 0:c.pointerEvents)||"",f.transform=m?m(this.latestValues,""):"none",f;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=td(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!xi(this.latestValues)&&(b.transform=m?m({},""):"none",this.hasProjected=!1),b}const v=g.animationValues||g.latestValues;this.applyTransformsToTarget(),f.transform=XL(this.projectionDeltaWithTransform,this.treeScale,v),m&&(f.transform=m(v,f.transform));const{x:N,y:j}=this.projectionDelta;f.transformOrigin=`${N.origin*100}% ${j.origin*100}% 0`,g.animationValues?f.opacity=g===this?(h=(d=v.opacity)!==null&&d!==void 0?d:this.latestValues.opacity)!==null&&h!==void 0?h:1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:f.opacity=g===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const b in vd){if(v[b]===void 0)continue;const{correct:C,applyTo:S}=vd[b],k=f.transform==="none"?v[b]:C(v[b],g);if(S){const _=S.length;for(let T=0;T<_;T++)f[S[T]]=k}else f[b]=k}return this.options.layoutId&&(f.pointerEvents=g===this?td(c==null?void 0:c.pointerEvents)||"":"none"),f}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>{var d;return(d=c.currentAnimation)===null||d===void 0?void 0:d.stop()}),this.root.nodes.forEach(i1),this.root.sharedNodes.clear()}}}function e8(e){e.updateLayout()}function t8(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:l}=e.options,c=n.source!==e.layout.source;l==="size"?On(g=>{const v=c?n.measuredBox[g]:n.layoutBox[g],N=_n(v);v.min=r[g].min,v.max=v.min+N}):N2(l,n.layoutBox,r)&&On(g=>{const v=c?n.measuredBox[g]:n.layoutBox[g],N=_n(r[g]);v.max=v.min+N,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+N)});const d=Mo();El(d,r,n.layoutBox);const h=Mo();c?El(h,e.applyTransform(o,!0),n.measuredBox):El(h,r,n.layoutBox);const f=!y2(d);let m=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:v,layout:N}=g;if(v&&N){const j=bt();kl(j,n.layoutBox,v.layoutBox);const b=bt();kl(b,r,N.layoutBox),w2(j,b)||(m=!0),g.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=j,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:h,layoutDelta:d,hasLayoutChanged:f,hasRelativeTargetChanged:m})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function n8(e){vl&&vi.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function r8(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function s8(e){e.clearSnapshot()}function i1(e){e.clearMeasurements()}function i8(e){e.isLayoutDirty=!1}function o8(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function o1(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function a8(e){e.resolveTargetDelta()}function l8(e){e.calcProjection()}function c8(e){e.resetSkewAndRotation()}function u8(e){e.removeLeadSnapshot()}function a1(e,t,n){e.translate=pt(t.translate,0,n),e.scale=pt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function l1(e,t,n,r){e.min=pt(t.min,n.min,r),e.max=pt(t.max,n.max,r)}function d8(e,t,n,r){l1(e.x,t.x,n.x,r),l1(e.y,t.y,n.y,r)}function h8(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const f8={duration:.45,ease:[.4,0,.1,1]},c1=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),u1=c1("applewebkit/")&&!c1("chrome/")?Math.round:Sn;function d1(e){e.min=u1(e.min),e.max=u1(e.max)}function p8(e){d1(e.x),d1(e.y)}function N2(e,t,n){return e==="position"||e==="preserve-aspect"&&!gL(n1(t),n1(n),.2)}function m8(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const g8=j2({attachResizeListener:(e,t)=>Fl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Hp={current:void 0},S2=j2({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Hp.current){const e=new g8({});e.mount(window),e.setOptions({layoutScroll:!0}),Hp.current=e}return Hp.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),x8={pan:{Feature:AL},drag:{Feature:RL,ProjectionNode:S2,MeasureLayout:g2}};function h1(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,l=r[o];l&&lt.postRender(()=>l(t,oc(t)))}class v8 extends Ys{mount(){const{current:t}=this.node;t&&(this.unmount=m6(t,n=>(h1(this.node,n,"Start"),r=>h1(this.node,r,"End"))))}unmount(){}}class y8 extends Ys{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ic(Fl(this.node.current,"focus",()=>this.onFocus()),Fl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function f1(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),l=r[o];l&&lt.postRender(()=>l(t,oc(t)))}class w8 extends Ys{mount(){const{current:t}=this.node;t&&(this.unmount=y6(t,n=>(f1(this.node,n,"Start"),(r,{success:o})=>f1(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ym=new WeakMap,Wp=new WeakMap,b8=e=>{const t=Ym.get(e.target);t&&t(e)},j8=e=>{e.forEach(b8)};function N8({root:e,...t}){const n=e||document;Wp.has(n)||Wp.set(n,{});const r=Wp.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(j8,{root:e,...t})),r[o]}function S8(e,t,n){const r=N8(t);return Ym.set(e,n),r.observe(e),()=>{Ym.delete(e),r.unobserve(e)}}const C8={some:0,all:1};class _8 extends Ys{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:l}=t,c={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:C8[o]},d=h=>{const{isIntersecting:f}=h;if(this.isInView===f||(this.isInView=f,l&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:m,onViewportLeave:g}=this.node.getProps(),v=f?m:g;v&&v(h)};return S8(this.node.current,c,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(E8(t,n))&&this.startObserver()}unmount(){}}function E8({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const k8={inView:{Feature:_8},tap:{Feature:w8},focus:{Feature:y8},hover:{Feature:v8}},T8={layout:{ProjectionNode:S2,MeasureLayout:g2}},Xm={current:null},C2={current:!1};function P8(){if(C2.current=!0,!!Hg)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Xm.current=e.matches;e.addListener(t),t()}else Xm.current=!1}function R8(e,t,n){for(const r in t){const o=t[r],l=n[r];if(Qt(o))e.addValue(r,o);else if(Qt(l))e.addValue(r,Il(o,{owner:e}));else if(l!==o)if(e.hasValue(r)){const c=e.getValue(r);c.liveStyle===!0?c.jump(o):c.hasAnimated||c.set(o)}else{const c=e.getStaticValue(r);e.addValue(r,Il(c!==void 0?c:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const p1=new WeakMap,A8=[...US,Kt,Ws],M8=e=>A8.find($S(e)),m1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class O8{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:l,visualState:c},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=p0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const v=br.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,lt.render(this.render,!1,!0))};const{latestValues:h,renderState:f}=c;this.latestValues=h,this.baseTarget={...h},this.initialValues=n.initial?{...h}:{},this.renderState=f,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=d,this.blockInitialAnimation=!!l,this.isControllingVariants=Yd(n),this.isVariantNode=iS(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in g){const N=g[v];h[v]!==void 0&&Qt(N)&&N.set(h[v],!1)}}mount(t){this.current=t,p1.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),C2.current||P8(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Xm.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){p1.delete(this.current),this.projection&&this.projection.unmount(),Hs(this.notifyUpdate),Hs(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Xi.has(t),o=n.on("change",d=>{this.latestValues[t]=d,this.props.onUpdate&&lt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),l=n.on("renderRequest",this.scheduleRender);let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),l(),c&&c(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ra){const n=ra[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const l=this.features[t];l.isMounted?l.update():(l.mount(),l.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):bt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<m1.length;r++){const o=m1[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const l="on"+o,c=t[l];c&&(this.propEventSubscriptions[o]=this.on(o,c))}this.prevMotionValues=R8(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Il(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(VS(o)||FS(o))?o=parseFloat(o):!M8(o)&&Ws.test(n)&&(o=YS(t,n)),this.setBaseTarget(t,Qt(o)?o.get():o)),Qt(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const c=Jg(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);c&&(o=c[t])}if(r&&o!==void 0)return o;const l=this.getBaseTargetFromProps(this.props,t);return l!==void 0&&!Qt(l)?l:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new d0),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class _2 extends O8{constructor(){super(...arguments),this.KeyframeResolver=XS}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Qt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function D8(e){return window.getComputedStyle(e)}class I8 extends _2{constructor(){super(...arguments),this.type="html",this.renderInstance=cS}readValueFromInstance(t,n){if(Xi.has(n)){const r=x0(n);return r&&r.default||0}else{const r=D8(t),o=(vS(n)?r.getPropertyValue(n):r[n])||0;
444return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return p2(t,n)}build(t,n,r){n0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Xg(t,n,r)}}class L8 extends _2{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=bt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Xi.has(n)){const r=x0(n);return r&&r.default||0}return n=uS.has(n)?n:Gg(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return fS(t,n,r)}build(t,n,r){r0(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){dS(t,n,r,o)}mount(t){this.isSVGTag=s0(t.tagName),super.mount(t)}}const F8=(e,t)=>Yg(e)?new L8(t):new I8(t,{allowProjection:e!==y.Fragment}),V8=l6({...aL,...k8,...x8,...T8},F8),q=S3(V8);function ts({title:e="Elite Sourcing - Cabinet de Recrutement à Genève",description:t="Elite Sourcing, votre partenaire expert en recrutement à Genève. Nous accompagnons candidats et entreprises dans leurs projets professionnels en Suisse romande.",keywords:n="recrutement, emploi, Genève, Suisse, cabinet recrutement, offres emploi, Elite Sourcing",canonical:r,ogImage:o="https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/6948f7f2482bad13c88dfbdc/1f4313719_image.png",structuredData:l}){const c=typeof window<"u"?window.location.origin:"https://elitesourcing.ch",d=r?`${c}${r}`:typeof window<"u"?window.location.href:c;return it.useEffect(()=>{document.documentElement.setAttribute("translate","no"),document.documentElement.classList.add("notranslate"),document.body.setAttribute("translate","no"),document.body.classList.add("notranslate"),document.title=e;const h=(m,g,v=!1)=>{const N=v?"property":"name";let j=document.querySelector(`meta[${N}="${m}"]`);j||(j=document.createElement("meta"),j.setAttribute(N,m),document.head.appendChild(j)),j.setAttribute("content",g)};h("google","notranslate"),h("google","notranslate"),h("description",t),h("keywords",n),h("og:type","website",!0),h("og:url",d,!0),h("og:title",e,!0),h("og:description",t,!0),h("og:image",o,!0),h("og:locale","fr_CH",!0),h("twitter:card","summary_large_image",!0),h("twitter:url",d,!0),h("twitter:title",e,!0),h("twitter:description",t,!0),h("twitter:image",o,!0);let f=document.querySelector('link[rel="canonical"]');if(f||(f=document.createElement("link"),f.setAttribute("rel","canonical"),document.head.appendChild(f)),f.setAttribute("href",d),l){let m=document.querySelector('script[type="application/ld+json"]');m||(m=document.createElement("script"),m.setAttribute("type","application/ld+json"),document.head.appendChild(m)),m.textContent=JSON.stringify(l)}},[e,t,n,d,o,l]),null}const B8=({end:e,duration:t=2e3,suffix:n=""})=>{const[r,o]=it.useState(0),[l,c]=it.useState(!1);it.useEffect(()=>{if(!l)return;const h=e;let f=0;const m=h/(t/16),g=setInterval(()=>{f+=m,f>=h?(o(h),clearInterval(g)):o(Math.floor(f))},16);return()=>clearInterval(g)},[e,t,l]);const d=h=>{l||c(!0)};return i.jsxs(q.div,{initial:{opacity:0}
444,whileInView:{opacity:1},viewport:{once:!0},onViewportEnter:()=>d(),children:[r.toLocaleString(),n]})};function $8(){const e=[{value:15,suffix:"+",label:"Années d'expérience"},{value:2500,suffix:"+",label:"Placements réussis"},{value:450,suffix:"+",label:"Entreprises partenaires"},{value:96,suffix:"%",label:"Taux de satisfaction"}];return i.jsxs("div",{className:"bg-white",children:[i.jsx(ts,{title:"Elite Sourcing — Qui sommes-nous ? | Agence de Recrutement à Genève",description:"Découvrez Elite Sourcing, votre agence de placement et recrutement à Genève. Expertise RH reconnue, valeurs humaines et accompagnement personnalisé pour candidats et entreprises en Suisse.",keywords:"Elite Sourcing qui sommes-nous, agence recrutement Genève, expertise RH Suisse, cabinet placement Genève, accompagnement candidats Suisse romande",canonical:"/About"}),i.jsxs("section",{className:"relative min-h-[600px] flex items-center justify-center overflow-hidden",children:[i.jsx("div",{className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:"url(https://images.unsplash.com/photo-1542744173-8e7e53415bb0?w=1600&h=900&fit=crop)"},children:i.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-slate-900/95 via-slate-900/90 to-slate-900/95"})}),i.jsx("div",{className:"relative max-w-7xl mx-auto px-6 text-center",children:i.jsxs(q.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.8},children:[i.jsx(q.h1,{className:"text-4xl md:text-5xl lg:text-6xl font-bold text-white mb-6",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{delay:.2,duration:.6},children:"Elite Sourcing — Qui sommes-nous ?"}),i.jsx(q.p,{className:"text-xl md:text-2xl text-slate-200 max-w-3xl mx-auto leading-relaxed",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{delay:.4,duration:.6},children:"Découvrez qui nous sommes, comment nous travaillons et pourquoi nous sommes la solution de choix pour de nombreuses entreprises et professionnels à la recherche d'opportunités."})]})})]}),i.jsx("section",{className:"py-16 bg-slate-50",children:i.jsx("div",{className:"max-w-7xl mx-auto px-6",children:i.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-8",children:e.map((t,n)=>i.jsxs(q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{delay:n*.1},viewport:{once:!0},className:"text-center",children:[i.jsx("div",{className:"text-4xl lg:text-5xl font-bold text-red-500 mb-2",children:i.jsx(B8,{end:t.value,suffix:t.suffix})}),i.jsx("div",{className:"text-slate-600",children:t.label})]},n))})})}),i.jsx("section",{className:"py-20 bg-white",children:i.jsx("div",{className:"max-w-7xl mx-auto px-6",children:i.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-start",children:[i.jsxs(q.div,{initial:{opacity:0,x:-50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},children:[i.jsx("h2",{className:"text-3xl lg:text-4xl font-bold text-slate-900 mb-8",children:"Qui nous sommes"}),i.jsxs("div",{className:"space-y-6 text-slate-700 leading-relaxed",children:[i.jsxs("p",{className:"text-lg",children:[i.jsx("span",{className:"font-semibold text-slate-900",children:"Elite Sourcing SA"})," est une start-up dynamique, qui incarne la jeunesse et le dynamisme. Elle est avant tout composée d'une équipe de professionnels compétents, spécialement sélectionnés pour leur expertise dans votre domaine d'activité."]}),i.jsx("p",{className:"text-lg",children:"Nous nous engageons à construire des relations professionnelles basées sur la confiance mutuelle, une communication positive et constructive. Chez Elite Sourcing SA, nous croyons que la transparence et l'honnêteté sont les bases d'un partenariat réussi."}),i.jsx("p",{className:"text-lg",children:"Nous communiquons avec toutes les parties prenantes avec équité, respect et considération."})]})]}),i.jsxs(q.div,{initial:{opacity:0,x:50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},className:"relative grid grid-cols-2 gap-4",children:[i.jsx(q.div,{className:"rounded-xl overflow-hidden shadow-lg",whileHover:{scale:1.05,rotate:-2},transition:{type:"spring",stiffness:300},children:i.jsx("img",{src:"https://images.unsplash.com/photo-1542744173-8e7e53415bb0?w=600&h=400&fit=crop",alt:"Équipe professionnelle Elite Sourcing en réunion collaborative",className:"w-full h-full object-cover",loading:"lazy"})}),i.jsx(q.div,{className:"rounded-xl overflow-hidden shadow-lg mt-8",whileHover:{scale:1.05,rotate:2},transition:{type:"spring",stiffness:300},children:i.jsx("img",{src:"https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=600&h=400&fit=crop",alt:"Collaboration",className:"w-full h-full object-cover"})}),i.jsx(q.div,{className:"rounded-xl overflow-hidden shadow-lg col-span-2",whileHover:{scale:1.02},transition:{type:"spring",stiffness:300},children:i.jsx("img",{src:"https://images.unsplash.com/photo-1521791136064-7986c2920216?w=800&h=300&fit=crop",alt:"Partenariat",className:"w-full h-full object-cover"})})]})]})})}),i.jsx("section",{className:"py-20 bg-slate-900 text-white",children:i.jsx("div",{className:"max-w-5xl mx-auto px-6",children:i.jsx(q.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"bg-slate-800/50 backdrop-blur-sm rounded-2xl p-8 md:p-12 border border-slate-700",children:i.jsxs("p",{className:"text-lg md:text-xl leading-relaxed",children:[i.jsx("span",{className:"font-semibold text-red-400",children:"Chez Elite Sourcing SA, nous accordons une importance particulière à la conduite de nos employés."})," Nous comprenons que les compétences humaines sont tout aussi importantes que l'expertise, et nous en tenons compte à tous les niveaux de notre entreprise."]})})})}),i.jsx("section",{className:"py-20 bg-slate-900",children:i.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[i.jsxs(q.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-16",children:[i.jsx("h2",{className:"text-3xl lg:text-4xl font-bold text-white mb-6",children:"Notre méthodologie"}),i.jsxs("p",{className:"text-lg text-slate-300 max-w-3xl",children:[i.jsx("span",{className:"font-semibold text-white",children:"Nous comprenons que chaque client est unique et a des besoins spécifiques."}
444)," C'est pourquoi Elite Sourcing SA assure à chaque client un suivi personnalisé et affecte un consultant pour gérer leurs dossiers. Nous cherchons à vous comprendre et vous connaître, car nous savons que cela nous permet de mieux répondre à vos attentes."]})]}),i.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6",children:[{icon:im,title:"Conseils personnalisés",description:"Nous vous offrons des conseils et un suivi, adaptés à votre situation, pour un recrutement, une gestion RH correspondant exactement à vos attentes."},{icon:ER,title:"Compréhension des besoins",description:"Nous nous attelons à cerner précisément votre philosophie et vos besoins pour dénicher le ou les candidats idoines."},{icon:Zo,title:"Expert du domaine",description:"Notre expertise éprouvée dans le secteur du recrutement fait de nous un partenaire de confiance pour votre recherche en personnel fixe ou temporaire."},{icon:zs,title:"Conseillers à votre écoute",description:"Nos conseillers se tiennent à votre disposition, prêts à répondre à vos questions, vos attentes, vous accompagnant tout au long du processus de recrutement."}].map((t,n)=>i.jsxs(q.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:n*.1},whileHover:{y:-8,transition:{duration:.2}},className:"bg-white rounded-xl p-6 border-2 border-slate-800 hover:border-red-500 transition-all",children:[i.jsx("div",{className:"w-14 h-14 bg-red-500 rounded-lg flex items-center justify-center mb-4",children:i.jsx(t.icon,{className:"w-7 h-7 text-white"})}),i.jsx("h3",{className:"text-lg font-bold text-slate-900 mb-3",children:t.title}),i.jsx("p",{className:"text-slate-600 text-sm leading-relaxed",children:t.description})]},n))})]})}),i.jsx("section",{className:"py-20 bg-white",children:i.jsx("div",{className:"max-w-7xl mx-auto px-6",children:i.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[i.jsxs(q.div,{initial:{opacity:0,x:-50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},children:[i.jsx("h2",{className:"text-3xl lg:text-4xl font-bold text-slate-900 mb-8",children:"Prioriser le Développement"}),i.jsxs("div",{className:"space-y-6 text-slate-700 leading-relaxed",children:[i.jsx("p",{className:"text-lg",children:"Chez Elite Sourcing SA, nous accordons une grande importance au suivi auprès de nos clients et de nos employés. Nous croyons fermement à la formation continue de nos employés, à leur développement professionnel et personnel."}),i.jsx("p",{className:"text-lg",children:"Nous investissons dans leur développement afin qu'ils puissent fournir un service de qualité et rester à la pointe des dernières tendances et technologies."})]})]}),i.jsxs(q.div,{initial:{opacity:0,x:50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},className:"grid grid-cols-2 gap-4",children:[i.jsx(q.div,{className:"rounded-xl overflow-hidden shadow-lg",whileHover:{scale:1.05},transition:{type:"spring",stiffness:300},children:i.jsx("img",{src:"https://images.unsplash.com/photo-1552664730-d307ca884978?w=400&h=500&fit=crop",alt:"Formation",className:"w-full h-full object-cover"})}),i.jsxs(q.div,{className:"space-y-4",initial:{opacity:0}
vendor: 9,893 bytes, line 444
444,whileInView:{opacity:1},viewport:{once:!0},transition:{delay:.3},children:[i.jsx(q.div,{className:"rounded-xl overflow-hidden shadow-lg",whileHover:{scale:1.05},transition:{type:"spring",stiffness:300},children:i.jsx("img",{src:"https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?w=400&h=240&fit=crop",alt:"Travail",className:"w-full h-full object-cover"})}),i.jsx(q.div,{className:"rounded-xl overflow-hidden shadow-lg",whileHover:{scale:1.05},transition:{type:"spring",stiffness:300},children:i.jsx("img",{src:"https://images.unsplash.com/photo-1573164713714-d95e436ab8d6?w=400&h=240&fit=crop",alt:"Développement",className:"w-full h-full object-cover"})})]})]})]})})}),i.jsxs("section",{className:"relative py-24 overflow-hidden",children:[i.jsx("div",{className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:"url(https://images.unsplash.com/photo-1521791136064-7986c2920216?w=1600&h=800&fit=crop)"},children:i.jsx("div",{className:"absolute inset-0 bg-slate-900/85"})}),i.jsxs("div",{className:"relative max-w-6xl mx-auto px-6",children:[i.jsxs(q.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-12",children:[i.jsx("h2",{className:"text-3xl lg:text-4xl font-bold text-white mb-6",children:"Découvrez nos services"}),i.jsx("p",{className:"text-xl text-slate-200 max-w-3xl mx-auto leading-relaxed",children:"Maintenant que vous connaissez mieux Elite Sourcing SA, nous vous invitons à découvrir comment nous pouvons vous aider concrètement. Que vous soyez un employeur à la recherche de talents ou un candidat cherchant à évoluer dans votre carrière, nous avons les ressources qu'il vous faut."})]}),i.jsxs(q.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.2,duration:.6},className:"flex flex-col sm:flex-row gap-6 justify-center items-center",children:[i.jsx(Be,{to:"/Offres",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),children:i.jsx(q.div,{whileHover:{scale:1.05},whileTap:{scale:.95},children:i.jsxs(te,{className:"w-full sm:w-auto bg-red-500 hover:bg-red-600 border-2 border-red-500 text-white px-10 py-7 text-lg font-semibold flex items-center gap-3",children:[i.jsx(Zo,{className:"w-6 h-6"}),"Candidats"]})})}),i.jsx(Be,{to:"/Entreprise",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),children:i.jsx(q.div,{whileHover:{scale:1.05},whileTap:{scale:.95},children:i.jsxs(te,{className:"w-full sm:w-auto bg-white hover:bg-slate-100 border-2 border-white text-slate-900 px-10 py-7 text-lg font-semibold flex items-center gap-3",children:[i.jsx(mj,{className:"w-6 h-6"}),"Entreprises"]})})})]})]})]})]})}function Ce(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function U8(e,t){const n=y.createContext(t),r=l=>{const{children:c,...d}=l,h=y.useMemo(()=>d,Object.values(d));return i.jsx(n.Provider,{value:h,children:c})};r.displayName=e+"Provider";function o(l){const c=y.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[r,o]}function Xs(e,t=[]){let n=[];function r(l,c){const d=y.createContext(c),h=n.length;n=[...n,c];const f=g=>{var S;const{scope:v,children:N,...j}=g,b=((S=v==null?void 0:v[e])==null?void 0:S[h])||d,C=y.useMemo(()=>j,Object.values(j));return i.jsx(b.Provider,{value:C,children:N})};f.displayName=l+"Provider";function m(g,v){var b;const N=((b=v==null?void 0:v[e])==null?void 0:b[h])||d,j=y.useContext(N);if(j)return j;if(c!==void 0)return c;throw new Error(`\`${g}\` must be used within \`${l}\``)}return[f,m]}const o=()=>{const l=n.map(c=>y.createContext(c));return function(d){const h=(d==null?void 0:d[e])||l;return y.useMemo(()=>({[`__scope${e}`]:{...d,[e]:h}}),[d,h])}};return o.scopeName=e,[r,z8(o,...t)]}function z8(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(l){const c=r.reduce((d,{useScope:h,scopeName:f})=>{const g=h(l)[`__scope${f}`];return{...d,...g}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function b0(e){const t=e+"CollectionProvider",[n,r]=Xs(t),[o,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=b=>{const{scope:C,children:S}=b,k=it.useRef(null),_=it.useRef(new Map).current;return i.jsx(o,{scope:C,itemMap:_,collectionRef:k,children:S})};c.displayName=t;const d=e+"CollectionSlot",h=Bi(d),f=it.forwardRef((b,C)=>{const{scope:S,children:k}=b,_=l(d,S),T=rt(C,_.collectionRef);return i.jsx(h,{ref:T,children:k})});f.displayName=d;const m=e+"CollectionItemSlot",g="data-radix-collection-item",v=Bi(m),N=it.forwardRef((b,C)=>{const{scope:S,children:k,..._}=b,T=it.useRef(null),R=rt(C,T),P=l(m,S);return it.useEffect(()=>(P.itemMap.set(T,{ref:T,..._}),()=>void P.itemMap.delete(T))),i.jsx(v,{[g]:"",ref:R,children:k})});N.displayName=m;function j(b){const C=l(e+"CollectionConsumer",b);return it.useCallback(()=>{const k=C.collectionRef.current;if(!k)return[];const _=Array.from(k.querySelectorAll(`[${g}]`));return Array.from(C.itemMap.values()).sort((P,L)=>_.indexOf(P.ref.current)-_.indexOf(L.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:c,Slot:f,ItemSlot:N},j,r]}var Zt=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},q8=gg[" useId ".trim().toString()]||(()=>{}),H8=0;function jr(e){const[t,n]=y.useState(q8());return Zt(()=>{n(r=>r??String(H8++))},[e]),t?`radix-${t}`:""}var W8=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ue=W8.reduce((e,t)=>{const n=Bi(`Primitive.${t}`),r=y.forwardRef((o,l)=>{const{asChild:c,...d}=o,h=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(h,{...d,ref:l})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function E2(e,t){e&&Yl.flushSync(()=>e.dispatchEvent(t))}function Cr(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var K8=gg[" useInsertionEffect ".trim().toString()]||Zt;function ia({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,l,c]=G8({defaultProp:t,onChange:n}),d=e!==void 0,h=d?e:o;{const m=y.useRef(e!==void 0);y.useEffect(()=>{const g=m.current;g!==d&&console.warn(`${r} is changing from ${g?"controlled":"uncontrolled"} to ${d?"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.`),m.current=d},[d,r])}const f=y.useCallback(m=>{var g;if(d){const v=Q8(m)?m(e):m;v!==e&&((g=c.current)==null||g.call(c,v))}else l(m)},[d,e,l,c]);return[h,f]}function G8({defaultProp:e,onChange:t}){const[n,r]=y.useState(e),o=y.useRef(n),l=y.useRef(t);return K8(()=>{l.current=t},[t]),y.useEffect(()=>{var c;o.current!==n&&((c=l.current)==null||c.call(l,n),o.current=n)},[n,o]),[n,r,l]}function Q8(e){return typeof e=="function"}var Y8=y.createContext(void 0);function Zd(e){const t=y.useContext(Y8);return e||t||"ltr"}var Kp="rovingFocusGroup.onEntryFocus",X8={bubbles:!1,cancelable:!0},ac="RovingFocusGroup",[Jm,k2,J8]=b0(ac),[Z8,eh]=Xs(ac,[J8]),[eF,tF]=Z8(ac),T2=y.forwardRef((e,t)=>i.jsx(Jm.Provider,{scope:e.__scopeRovingFocusGroup,children:i.jsx(Jm.Slot,{scope:e.__scopeRovingFocusGroup,children:i.jsx(nF,{...e,ref:t})})}));T2.displayName=ac;var nF=y.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:l,currentTabStopId:c,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:h,onEntryFocus:f,preventScrollOnEntryFocus:m=!1,...g}=e,v=y.useRef(null),N=rt(t,v),j=Zd(l),[b,C]=ia({prop:c,defaultProp:d??null,onChange:h,caller:ac}),[S,k]=y.useState(!1),_=Cr(f),T=k2(n),R=y.useRef(!1),[P,L]=y.useState(0);return y.useEffect(()=>{const M=v.current;if(M)return M.addEventListener(Kp,_),()=>M.removeEventListener(Kp,_)},[_]),i.jsx(eF,{scope:n,orientation:r,dir:j,loop:o,currentTabStopId:b,onItemFocus:y.useCallback(M=>C(M),[C]),onItemShiftTab:y.useCallback(()=>k(!0),[]),onFocusableItemAdd:y.useCallback(()=>L(M=>M+1),[]),onFocusableItemRemove:y.useCallback(()=>L(M=>M-1),[]),children:i.jsx(Ue.div,{tabIndex:S||P===0?-1:0,"data-orientation":r,...g,ref:N,style:{outline:"none",...e.style},onMouseDown:Ce(e.onMouseDown,()=>{R.current=!0}),onFocus:Ce(e.onFocus,M=>{const G=!R.current;if(M.target===M.currentTarget&&G&&!S){const H=new CustomEvent(Kp,X8);if(M.currentTarget.dispatchEvent(H),!H.defaultPrevented){const ne=T().filter(oe=>oe.focusable),ce=ne.find(oe=>oe.active),se=ne.find(oe=>oe.id===b),Te=[ce,se,...ne].filter(Boolean).map(oe=>oe.ref.current);A2(Te,m)}}R.current=!1}),onBlur:Ce(e.onBlur,()=>k(!1))})})}),P2="RovingFocusGroupItem",R2=y.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:l,children:c,...d}=e,h=jr(),f=l||h,m=tF(P2,n),g=m.currentTabStopId===f,v=k2(n),{onFocusableItemAdd:N,onFocusableItemRemove:j,currentTabStopId:b}=m;return y.useEffect(()=>{if(r)return N(),()=>j()},[r,N,j]),i.jsx(Jm.ItemSlot,{scope:n,id:f,focusable:r,active:o,children:i.jsx(Ue.span,{tabIndex:g?0:-1,"data-orientation":m.orientation,...d,ref:t,onMouseDown:Ce(e.onMouseDown,C=>{r?m.onItemFocus(f):C.preventDefault()}),onFocus:Ce(e.onFocus,()=>m.onItemFocus(f)),onKeyDown:Ce(e.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){m.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const S=iF(C,m.orientation,m.dir);if(S!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let _=v().filter(T=>T.focusable).map(T=>T.ref.current);if(S==="last")_.reverse();else if(S==="prev"||S==="next"){S==="prev"&&_.reverse();const T=_.indexOf(C.currentTarget);_=m.loop?oF(_,T+1):_.slice(T+1)}setTimeout(()=>A2(_))}}),children:typeof c=="function"?c({isCurrentTabStop:g,hasTabStop:b!=null}):c}
vendor: 4,167 bytes, line 444
444)})});R2.displayName=P2;var rF={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function sF(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function iF(e,t,n){const r=sF(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return rF[r]}function A2(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function oF(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var M2=T2,O2=R2;function aF(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var ns=e=>{const{present:t,children:n}=e,r=lF(t),o=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),l=rt(r.ref,cF(o));return typeof n=="function"||r.isPresent?y.cloneElement(o,{ref:l}):null};ns.displayName="Presence";function lF(e){const[t,n]=y.useState(),r=y.useRef(null),o=y.useRef(e),l=y.useRef("none"),c=e?"mounted":"unmounted",[d,h]=aF(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const f=Vu(r.current);l.current=d==="mounted"?f:"none"},[d]),Zt(()=>{const f=r.current,m=o.current;if(m!==e){const v=l.current,N=Vu(f);e?h("MOUNT"):N==="none"||(f==null?void 0:f.display)==="none"?h("UNMOUNT"):h(m&&v!==N?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,h]),Zt(()=>{if(t){let f;const m=t.ownerDocument.defaultView??window,g=N=>{const b=Vu(r.current).includes(CSS.escape(N.animationName));if(N.target===t&&b&&(h("ANIMATION_END"),!o.current)){const C=t.style.animationFillMode;t.style.animationFillMode="forwards",f=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=C)})}},v=N=>{N.target===t&&(l.current=Vu(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{m.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else h("ANIMATION_END")},[t,h]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:y.useCallback(f=>{r.current=f?getComputedStyle(f):null,n(f)},[])}}function Vu(e){return(e==null?void 0:e.animationName)||"none"}function cF(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var th="Tabs",[uF]=Xs(th,[eh]),D2=eh(),[dF,j0]=uF(th),I2=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:l,orientation:c="horizontal",dir:d,activationMode:h="automatic",...f}=e,m=Zd(d),[g,v]=ia({prop:r,onChange:o,defaultProp:l??"",caller:th});return i.jsx(dF,{scope:n,baseId:jr(),value:g,onValueChange:v,orientation:c,dir:m,activationMode:h,children:i.jsx(Ue.div,{dir:m,"data-orientation":c,...f,ref:t})})});I2.displayName=th;var L2="TabsList",F2=y.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,l=j0(L2,n),c=D2(n);return i.jsx(M2,{asChild:!0,...c,orientation:l.orientation,dir:l.dir,loop:r,children:i.jsx(Ue.div,{role:"tablist","aria-orientation":l.orientation,...o,ref:t})})});F2.displayName=L2;var V2="TabsTrigger",B2=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...l}=e,c=j0(V2,n),d=D2(n),h=z2(c.baseId,r),f=q2(c.baseId,r),m=r===c.value;return i.jsx(O2,{asChild:!0,...d,focusable:!o,active:m,children:i.jsx(Ue.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":f,"data-state":m?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:h,...l,ref:t,onMouseDown:Ce(e.onMouseDown,g=>{!o&&g.button===0&&g.ctrlKey===!1?c.onValueChange(r):g.preventDefault()}),onKeyDown:Ce(e.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&c.onValueChange(r)}),onFocus:Ce(e.onFocus,()=>{const g=c.activationMode!=="manual";!m&&!o&&g&&c.onValueChange(r)})})})});B2.displayName=V2;var $2="TabsContent",U2=y.forwardRef((e,t)=>
444{const{__scopeTabs:n,value:r,forceMount:o,children:l,...c}=e,d=j0($2,n),h=z2(d.baseId,r),f=q2(d.baseId,r),m=r===d.value,g=y.useRef(m);return y.useEffect(()=>{const v=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(v)},[]),i.jsx(ns,{present:o||m,children:({present:v})=>i.jsx(Ue.div,{"data-state":m?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":h,hidden:!v,id:f,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:g.current?"0s":void 0},children:v&&l})})});U2.displayName=$2;function z2(e,t){return`${e}-trigger-${t}`}function q2(e,t){return`${e}-content-${t}`}var hF=I2,H2=F2,W2=B2,K2=U2;const fF=hF,G2=y.forwardRef(({className:e,...t},n)=>i.jsx(H2,{ref:n,className:Oe("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));G2.displayName=H2.displayName;const Br=y.forwardRef(({className:e,...t},n)=>i.jsx(W2,{ref:n,className:Oe("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",e),...t}));Br.displayName=W2.displayName;const $r=y.forwardRef(({className:e,...t},n)=>i.jsx(K2,{ref:n,className:Oe("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));$r.displayName=K2.displayName;function pF({children:e}){const t=()=>{Ne.auth.logout()};return i.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-slate-950 via-slate-900 to-slate-950",children:[i.jsx("div",{className:"bg-slate-900/80 border-b border-slate-800 backdrop-blur-sm sticky top-0 z-50",children:i.jsx("div",{className:"max-w-[1600px] mx-auto px-6 py-4",children:i.jsxs("div",{className:"flex items-center justify-between flex-wrap gap-4",children:[i.jsxs("div",{className:"flex items-center gap-4",children:[i.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/6948f7f2482bad13c88dfbdc/1f4313719_image.png",alt:"Elite Sourcing",className:"h-12 w-auto"}),i.jsx("div",{className:"h-8 w-px bg-slate-700 hidden sm:block"}),i.jsx("h1",{className:"text-lg sm:text-xl font-bold text-white",children:"Dashboard Admin"})]}),i.jsxs("div",{className:"flex items-center gap-2 sm:gap-3",children:[i.jsx(Be,{to:"/Home",className:"flex-1 sm:flex-none",children:i.jsxs(te,{className:"bg-red-500 hover:bg-red-600 text-white border-0 w-full sm:w-auto",children:[i.jsx(Od,{className:"w-4 h-4 mr-2"}),i.jsx("span",{className:"hidden sm:inline",children:"Retour au site"}),i.jsx("span",{className:"sm:hidden",children:"Retour"})]})}),i.jsxs(te,{variant:"ghost",onClick:t,className:"text-red-400 hover:text-red-300 hover:bg-red-500/10 text-sm sm:text-base",children:[i.jsx(xj,{className:"w-4 h-4 mr-1 sm:mr-2"}),i.jsx("span",{className:"hidden sm:inline",children:"Déconnexion"})]})]})]})})}),i.jsx("div",{className:"py-8 px-6",children:e})]})}const ct=y.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:Oe("rounded-xl border bg-card text-card-foreground shadow",e),...t}));ct.displayName="Card";const Zm=y.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:Oe("flex flex-col space-y-1.5 p-6",e),...t}));Zm.displayName="CardHeader";const Q2=y.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:Oe("font-semibold leading-none tracking-tight",e),...t}));Q2.displayName="CardTitle";const mF=y.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:Oe("text-sm text-muted-foreground",e),...t}));mF.displayName="CardDescription";const eg=y.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:Oe("p-6 pt-0",e),...t}));eg.displayName="CardContent";const gF=y.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:Oe("flex items-center p-6 pt-0",e),...t}));gF.displayName="CardFooter";function er({className:e,...t}){return i.jsx("div",{className:Oe("animate-pulse rounded-md bg-primary/10",e),...t})}function xF({candidates:e,missions:t,loading:n}){if(n)return i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:Array(6).fill(0).map((o,l)=>i.jsxs(ct,{className:"bg-slate-900/80 border-slate-800",children:[i.jsx(Zm,{children:i.jsx(er,{className:"h-4 w-24 bg-slate-800"})}),i.jsx(eg,{children:i.jsx(er,{className:"h-8 w-16 bg-slate-800"})})]},l))});const r=[{title:"Total Candidats",value:e.length,icon:Zo,color:"from-blue-500 to-blue-600",bgColor:"bg-blue-500/10"},{title:"Candidats Actifs",value:e.filter(o=>["new","screening","interview"].includes(o.status)).length,icon:Ql,color:"from-
444amber-500 to-amber-600",bgColor:"bg-amber-500/10"},{title:"Recrutés",value:e.filter(o=>o.status==="hired").length,icon:sm,color:"from-green-500 to-green-600",bgColor:"bg-green-500/10"},{title:"Missions Ouvertes",value:t.filter(o=>o.status==="open").length,icon:zs,color:"from-purple-500 to-purple-600",bgColor:"bg-purple-500/10"},{title:"Missions en Cours",value:t.filter(o=>o.status==="in_progress").length,icon:OR,color:"from-indigo-500 to-indigo-600",bgColor:"bg-indigo-500/10"},{title:"Missions Complétées",value:t.filter(o=>o.status==="filled").length,icon:sm,color:"from-emerald-500 to-emerald-600",bgColor:"bg-emerald-500/10"}];return i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:r.map((o,l)=>i.jsx(q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:l*.05},children:i.jsxs(ct,{className:"bg-slate-900/80 border-slate-800 hover:border-slate-700 transition-all backdrop-blur-sm overflow-hidden group",children:[i.jsx("div",{className:`absolute inset-0 bg-gradient-to-br ${o.color} opacity-0 group-hover:opacity-5 transition-opacity`}),i.jsxs(Zm,{className:"flex flex-row items-center justify-between pb-2",children:[i.jsx(Q2,{className:"text-sm font-medium text-slate-400",children:o.title}),i.jsx("div",{className:`p-2 rounded-lg ${o.bgColor}`,children:i.jsx(o.icon,{className:`w-4 h-4 bg-gradient-to-br ${o.color} bg-clip-text text-transparent`,style:{WebkitTextFillColor:"transparent",backgroundClip:"text"}})})]}),i.jsx(eg,{children:i.jsx("div",{className:`text-3xl font-bold bg-gradient-to-br ${o.color} bg-clip-text text-transparent`,children:o.value})})]})},l))})}const lc=y.forwardRef(({className:e,...t},n)=>i.jsx("div",{className:"relative w-full overflow-auto",children:i.jsx("table",{ref:n,className:Oe("w-full caption-bottom text-sm",e),...t})}));lc.displayName="Table";const cc=y.forwardRef(({className:e,...t},n)=>i.jsx("thead",{ref:n,className:Oe("[&_tr]:border-b",e),...t}));cc.displayName="TableHeader";const uc=y.forwardRef(({className:e,...t},n)=>i.jsx("tbody",{ref:n,className:Oe("[&_tr:last-child]:border-0",e),...t}));uc.displayName="TableBody";const vF=y.forwardRef(({className:e,...t},n)=>i.jsx("tfoot",{ref:n,className:Oe("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));vF.displayName="TableFooter";const Jr=y.forwardRef(({className:e,...t},n)=>i.jsx("tr",{ref:n,className:Oe("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Jr.displayName="TableRow";const Ye=y.forwardRef(({className:e,...t},n)=>i.jsx("th",{ref:n,className:Oe("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));Ye.displayName="TableHead";const Xe=y.forwardRef(({className:e,...t},n)=>i.jsx("td",{ref:n,className:Oe("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));Xe.displayName="TableCell";const yF=y.forwardRef(({className:e,...t},n)=>i.jsx("caption",{ref:n,className:Oe("mt-4 text-sm text-muted-foreground",e),...t}));yF.displayName="TableCaption";const wF=Md("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-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Vn({className:e,variant:t,...n}){return i.jsx("div",{className:Oe(wF({variant:t}),e),...n})}const qe=y.forwardRef(({className:e,type:t,...n},r)=>i.jsx("input",{type:t,className:Oe("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",e),ref:r,...n}));qe.displayName="Input";function g1(e,[t,n]){return Math.min(n,Math.max(t,e))}function bF(e,t=globalThis==null?void 0:globalThis.document){const n=Cr(e);y.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var jF="DismissableLayer",tg="dismissableLayer.update",NF="dismissableLayer.pointerDownOutside",SF="dismissableLayer.focusOutside",x1,Y2=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),nh=y.forwardRef((e,t)=>
vendor: 26,409 bytes, line 444
444{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:c,onDismiss:d,...h}=e,f=y.useContext(Y2),[m,g]=y.useState(null),v=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,N]=y.useState({}),j=rt(t,L=>g(L)),b=Array.from(f.layers),[C]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),S=b.indexOf(C),k=m?b.indexOf(m):-1,_=f.layersWithOutsidePointerEventsDisabled.size>0,T=k>=S,R=EF(L=>{const M=L.target,G=[...f.branches].some(H=>H.contains(M));!T||G||(o==null||o(L),c==null||c(L),L.defaultPrevented||d==null||d())},v),P=kF(L=>{const M=L.target;[...f.branches].some(H=>H.contains(M))||(l==null||l(L),c==null||c(L),L.defaultPrevented||d==null||d())},v);return bF(L=>{k===f.layers.size-1&&(r==null||r(L),!L.defaultPrevented&&d&&(L.preventDefault(),d()))},v),y.useEffect(()=>{if(m)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(x1=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(m)),f.layers.add(m),v1(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=x1)}},[m,v,n,f]),y.useEffect(()=>()=>{m&&(f.layers.delete(m),f.layersWithOutsidePointerEventsDisabled.delete(m),v1())},[m,f]),y.useEffect(()=>{const L=()=>N({});return document.addEventListener(tg,L),()=>document.removeEventListener(tg,L)},[]),i.jsx(Ue.div,{...h,ref:j,style:{pointerEvents:_?T?"auto":"none":void 0,...e.style},onFocusCapture:Ce(e.onFocusCapture,P.onFocusCapture),onBlurCapture:Ce(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:Ce(e.onPointerDownCapture,R.onPointerDownCapture)})});nh.displayName=jF;var CF="DismissableLayerBranch",_F=y.forwardRef((e,t)=>{const n=y.useContext(Y2),r=y.useRef(null),o=rt(t,r);return y.useEffect(()=>{const l=r.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),i.jsx(Ue.div,{...e,ref:o})});_F.displayName=CF;function EF(e,t=globalThis==null?void 0:globalThis.document){const n=Cr(e),r=y.useRef(!1),o=y.useRef(()=>{});return y.useEffect(()=>{const l=d=>{if(d.target&&!r.current){let h=function(){X2(NF,n,f,{discrete:!0})};const f={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=h,t.addEventListener("click",o.current,{once:!0})):h()}else t.removeEventListener("click",o.current);r.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",l),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function kF(e,t=globalThis==null?void 0:globalThis.document){const n=Cr(e),r=y.useRef(!1);return y.useEffect(()=>{const o=l=>{l.target&&!r.current&&X2(SF,n,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function v1(){const e=new CustomEvent(tg);document.dispatchEvent(e)}function X2(e,t,n,{discrete:r}){const o=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?E2(o,l):o.dispatchEvent(l)}var Gp=0;function N0(){y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??y1()),document.body.insertAdjacentElement("beforeend",e[1]??y1()),Gp++,()=>{Gp===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Gp--}},[])}function y1(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Qp="focusScope.autoFocusOnMount",Yp="focusScope.autoFocusOnUnmount",w1={bubbles:!1,cancelable:!0},TF="FocusScope",rh=y.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...c}=e,[d,h]=y.useState(null),f=Cr(o),m=Cr(l),g=y.useRef(null),v=rt(t,b=>h(b)),N=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let b=function(_){if(N.paused||!d)return;const T=_.target;d.contains(T)?g.current=T:ks(g.current,{select:!0})},C=function(_){if(N.paused||!d)return;const T=_.relatedTarget;T!==null&&(d.contains(T)||ks(g.current,{select:!0}))},S=function(_){if(document.activeElement===document.body)for(const R of _)R.removedNodes.length>0&&ks(d)};document.addEventListener("focusin",b),document.addEventListener("focusout",C);const k=new MutationObserver(S);return d&&k.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",C),k.disconnect()}}},[r,d,N.paused]),y.useEffect(()=>{if(d){j1.add(N);const b=document.activeElement;if(!d.contains(b)){const S=new CustomEvent(Qp,w1);d.addEventListener(Qp,f),d.dispatchEvent(S),S.defaultPrevented||(PF(DF(J2(d)),{select:!0}),document.activeElement===b&&ks(d))}return()=>{d.removeEventListener(Qp,f),setTimeout(()=>{const S=new CustomEvent(Yp,w1);d.addEventListener(Yp,m),d.dispatchEvent(S),S.defaultPrevented||ks(b??document.body,{select:!0}),d.removeEventListener(Yp,m),j1.remove(N)},0)}}},[d,f,m,N]);const j=y.useCallback(b=>{if(!n&&!r||N.paused)return;const C=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,S=document.activeElement;if(C&&S){const k=b.currentTarget,[_,T]=RF(k);_&&T?!b.shiftKey&&S===T?(b.preventDefault(),n&&ks(_,{select:!0})):b.shiftKey&&S===_&&(b.preventDefault(),n&&ks(T,{select:!0})):S===k&&b.preventDefault()}},[n,r,N.paused]);return i.jsx(Ue.div,{tabIndex:-1,...c,ref:v,onKeyDown:j})});rh.displayName=TF;function PF(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ks(r,{select:t}),document.activeElement!==n)return}function RF(e){const t=J2(e),n=b1(t,e),r=b1(t.reverse(),e);return[n,r]}function J2(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function b1(e,t){for(const n of e)if(!AF(n,{upTo:t}))return n}function AF(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function MF(e){return e instanceof HTMLInputElement&&"select"in e}function ks(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&MF(e)&&t&&e.select()}}var j1=OF();function OF(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=N1(e,t),e.unshift(t)},remove(t){var n;e=N1(e,t),(n=e[0])==null||n.resume()}}}function N1(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function DF(e){return e.filter(t=>t.tagName!=="A")}const IF=["top","right","bottom","left"],Ks=Math.min,Nn=Math.max,Sd=Math.round,Bu=Math.floor,Nr=e=>({x:e,y:e}),LF={left:"right",right:"left",bottom:"top",top:"bottom"},FF={start:"end",end:"start"};function ng(e,t,n){return Nn(e,Ks(t,n))}function Zr(e,t){return typeof e=="function"?e(t):e}function es(e){return e.split("-")[0]}function xa(e){return e.split("-")[1]}function S0(e){return e==="x"?"y":"x"}function C0(e){return e==="y"?"height":"width"}const VF=new Set(["top","bottom"]);function xr(e){return VF.has(es(e))?"y":"x"}function _0(e){return S0(xr(e))}function BF(e,t,n){n===void 0&&(n=!1);const r=xa(e),o=_0(e),l=C0(o);let c=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(c=Cd(c)),[c,Cd(c)]}function $F(e){const t=Cd(e);return[rg(e),t,rg(t)]}function rg(e){return e.replace(/start|end/g,t=>FF[t])}const S1=["left","right"],C1=["right","left"],UF=["top","bottom"],zF=["bottom","top"];function qF(e,t,n){switch(e){case"top":case"bottom":return n?t?C1:S1:t?S1:C1;case"left":case"right":return t?UF:zF;default:return[]}}function HF(e,t,n,r){const o=xa(e);let l=qF(es(e),n==="start",r);return o&&(l=l.map(c=>c+"-"+o),t&&(l=l.concat(l.map(rg)))),l}function Cd(e){return e.replace(/left|right|bottom|top/g,t=>LF[t])}function WF(e){return{top:0,right:0,bottom:0,left:0,...e}}function Z2(e){return typeof e!="number"?WF(e):{top:e,right:e,bottom:e,left:e}}function _d(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function _1(e,t,n){let{reference:r,floating:o}=e;const l=xr(t),c=_0(t),d=C0(c),h=es(t),f=l==="y",m=r.x+r.width/2-o.width/2,g=r.y+r.height/2-o.height/2,v=r[d]/2-o[d]/2;let N;switch(h){case"top":N={x:m,y:r.y-o.height};break;case"bottom":N={x:m,y:r.y+r.height};break;case"right":N={x:r.x+r.width,y:g};break;case"left":N={x:r.x-o.width,y:g};break;default:N={x:r.x,y:r.y}}switch(xa(t)){case"start":N[c]-=v*(n&&f?-1:1);break;case"end":N[c]+=v*(n&&f?-1:1);break}return N}const KF=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:l=[],platform:c}=n,d=l.filter(Boolean),h=await(c.isRTL==null?void 0:c.isRTL(t));let f=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:m,y:g}=_1(f,r,h),v=r,N={},j=0;for(let b=0;b<d.length;b++){const{name:C,fn:S}=d[b],{x:k,y:_,data:T,reset:R}=await S({x:m,y:g,initialPlacement:r,placement:v,strategy:o,middlewareData:N,rects:f,platform:c,elements:{reference:e,floating:t}});m=k??m,g=_??g,N={...N,[C]:{...N[C],...T}},R&&j<=50&&(j++,typeof R=="object"&&(R.placement&&(v=R.placement),R.rects&&(f=R.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:o}):R.rects),{x:m,y:g}=_1(f,v,h)),b=-1)}return{x:m,y:g,placement:v,strategy:o,middlewareData:N}};async function Vl(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:l,rects:c,elements:d,strategy:h}=e,{boundary:f="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:v=!1,padding:N=0}=Zr(t,e),j=Z2(N),C=d[v?g==="floating"?"reference":"floating":g],S=_d(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(C)))==null||n?C:C.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(d.floating)),boundary:f,rootBoundary:m,strategy:h})),k=g==="floating"?{x:r,y:o,width:c.floating.width,height:c.floating.height}:c.reference,_=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d.floating)),T=await(l.isElement==null?void 0:l.isElement(_))?await(l.getScale==null?void 0:l.getScale(_))||{x:1,y:1}:{x:1,y:1},R=_d(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:k,offsetParent:_,strategy:h}):k);return{top:(S.top-R.top+j.top)/T.y,bottom:(R.bottom-S.bottom+j.bottom)/T.y,left:(S.left-R.left+j.left)/T.x,right:(R.right-S.right+j.right)/T.x}}const GF=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:l,platform:c,elements:d,middlewareData:h}=t,{element:f,padding:m=0}=Zr(e,t)||{};if(f==null)return{};const g=Z2(m),v={x:n,y:r},N=_0(o),j=C0(N),b=await c.getDimensions(f),C=N==="y",S=C?"top":"left",k=C?"bottom":"right",_=C?"clientHeight":"clientWidth",T=l.reference[j]+l.reference[N]-v[N]-l.floating[j],R=v[N]-l.reference[N],P=await(c.getOffsetParent==null?void 0:c.getOffsetParent(f));let L=P?P[_]:0;(!L||!await(c.isElement==null?void 0:c.isElement(P)))&&(L=d.floating[_]||l.floating[j]);const M=T/2-R/2,G=L/2-b[j]/2-1,H=Ks(g[S],G),ne=Ks(g[k],G),ce=H,se=L-b[j]-ne,ue=L/2-b[j]/2+M,Te=ng(ce,ue,se),oe=!h.arrow&&xa(o)!=null&&ue!==Te&&l.reference[j]/2-(ue<ce?H:ne)-b[j]/2<0,re=oe?ue<ce?ue-ce:ue-se:0;return{[N]:v[N]+re,data:{[N]:Te,centerOffset:ue-Te-re,...oe&&{alignmentOffset:re}},reset:oe}}}),QF=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:l,rects:c,initialPlacement:d,platform:h,elements:f}=t,{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:N="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:b=!0,...C}=Zr(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const S=es(o),k=xr(d),_=es(d)===d,T=await(h.isRTL==null?void 0:h.isRTL(f.floating)),R=v||(_||!b?[Cd(d)]:$F(d)),P=j!=="none";!v&&P&&R.push(...HF(d,b,j,T));const L=[d,...R],M=await Vl(t,C),G=[];let H=((r=l.flip)==null?void 0:r.overflows)||[];if(m&&G.push(M[S]),g){const ue=BF(o,c,T);G.push(M[ue[0]],M[ue[1]])}if(H=[...H,{placement:o,overflows:G}],!G.every(ue=>ue<=0)){var ne,ce;const ue=(((ne=l.flip)==null?void 0:ne.index)||0)+1,Te=L[ue];if(Te&&(!(g==="alignment"?k!==xr(Te):!1)||H.every(B=>xr(B.placement)===k?B.overflows[0]>0:!0)))return{data:{index:ue,overflows:H},reset:{placement:Te}};let oe=(ce=H.filter(re=>re.overflows[0]<=0).sort((re,B)=>re.overflows[1]-B.overflows[1])[0])==null?void 0:ce.placement;if(!oe)switch(N){case"bestFit":{var se;const re=(se=H.filter(B=>{if(P){const K=xr(B.placement);return K===k||K==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(K=>K>0).reduce((K,Y)=>K+Y,0)]).sort((B,K)=>B[1]-K[1])[0])==null?void 0:se[0];re&&(oe=re);break}case"initialPlacement":oe=d;break}if(o!==oe)return{reset:{placement:oe}}}return{}}}};function E1(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function k1(e){return IF.some(t=>e[t]>=0)}const YF=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Zr(e,t);switch(r){case"referenceHidden":{const l=await Vl(t,{...o,elementContext:"reference"}),c=E1(l,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:k1(c)}}}case"escaped":{const l=await Vl(t,{...o,altBoundary:!0}),c=E1(l,n.floating);return{data:{escapedOffsets:c,escaped:k1(c)}}}default:return{}}}}},eC=new Set(["left","top"]);async function XF(e,t){const{placement:n,platform:r,elements:o}=e,l=await(r.isRTL==null?void 0:r.isRTL(o.floating)),c=es(n),d=xa(n),h=xr(n)==="y",f=eC.has(c)?-1:1,m=l&&h?-1:1,g=Zr(t,e);let{mainAxis:v,crossAxis:N,alignmentAxis:j}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return d&&typeof j=="number"&&(N=d==="end"?j*-1:j),h?{x:N*m,y:v*f}:{x:v*f,y:N*m}}const JF=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:l,placement:c,middlewareData:d}=t,h=await XF(t,e);return c===((n=d.offset)==null?void 0:n.placement)&&(r=d.arrow)!=null&&r.alignmentOffset?{}:{x:o+h.x,y:l+h.y,data:{...h,placement:c}}}}},ZF=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:l=!0,crossAxis:c=!1,limiter:d={fn:C=>{let{x:S,y:k}=C;return{x:S,y:k}}},...h}=Zr(e,t),f={x:n,y:r},m=await Vl(t,h),g=xr(es(o)),v=S0(g);let N=f[v],j=f[g];if(l){const C=v==="y"?"top":"left",S=v==="y"?"bottom":"right",k=N+m[C],_=N-m[S];N=ng(k,N,_)}if(c){const C=g==="y"?"top":"left",S=g==="y"?"bottom":"right",k=j+m[C],_=j-m[S];j=ng(k,j,_)}const b=d.fn({...t,[v]:N,[g]:j});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[v]:l,[g]:c}}}}}},e9=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:l,middlewareData:c}=t,{offset:d=0,mainAxis:h=!0,crossAxis:f=!0}=Zr(e,t),m={x:n,y:r},g=xr(o),v=S0(g);let N=m[v],j=m[g];const b=Zr(d,t),C=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(h){const _=v==="y"?"height":"width",T=l.reference[v]-l.floating[_]+C.mainAxis,R=l.reference[v]+l.reference[_]-C.mainAxis;N<T?N=T:N>R&&(N=R)}if(f){var S,k;const _=v==="y"?"width":"height",T=eC.has(es(o)),R=l.reference[g]-l.floating[_]+(T&&((S=c.offset)==null?void 0:S[g])||0)+(T?0:C.crossAxis),P=l.reference[g]+l.reference[_]+(T?0:((k=c.offset)==null?void 0:k[g])||0)-(T?C.crossAxis:0);j<R?j=R:j>P&&(j=P)}return{[v]:N,[g]:j}}}},t9=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:l,platform:c,elements:d}=t,{apply:h=()=>{},...f}=Zr(e,t),m=await Vl(t,f),g=es(o),v=xa(o),N=xr(o)==="y",{width:j,height:b}=l.floating;let C,S;g==="top"||g==="bottom"?(C=g,S=v===(await(c.isRTL==null?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(S=g,C=v==="end"?"top":"bottom");const k=b-m.top-m.bottom,_=j-m.left-m.right,T=Ks(b-m[C],k),R=Ks(j-m[S],_),P=!t.middlewareData.shift;let L=T,M=R;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(M=_),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(L=k),P&&!v){const H=Nn(m.left,0),ne=Nn(m.right,0),ce=Nn(m.top,0),se=Nn(m.bottom,0);N?M=j-2*(H!==0||ne!==0?H+ne:Nn(m.left,m.right)):L=b-2*(ce!==0||se!==0?ce+se:Nn(m.top,m.bottom))}await h({...t,availableWidth:M,availableHeight:L});const G=await c.getDimensions(d.floating);return j!==G.width||b!==G.height?{reset:{rects:!0}}:{}}}};function sh(){return typeof window<"u"}function va(e){return tC(e)?(e.nodeName||"").toLowerCase():"#document"}function Cn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function kr(e){var t;return(t=(tC(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function tC(e){return sh()?e instanceof Node||e instanceof Cn(e).Node:!1}function tr(e){return sh()?e instanceof Element||e instanceof Cn(e).Element:!1}function _r(e){return sh()?e instanceof HTMLElement||e instanceof Cn(e).HTMLElement:!1}function T1(e){return!sh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Cn(e).ShadowRoot}const n9=new Set(["inline","contents"]);function dc(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=nr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!n9.has(o)}const r9=new Set(["table","td","th"]);function s9(e){return r9.has(va(e))}const i9=[":popover-open",":modal"];function ih(e){return i9.some(t=>{try{return e.matches(t)}catch{return!1}})}const o9=["transform","translate","scale","rotate","perspective"],a9=["transform","translate","scale","rotate","perspective","filter"],l9=["paint","layout","strict","content"];function E0(e){const t=k0(),n=tr(e)?nr(e):e;return o9.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||a9.some(r=>(n.willChange||"").includes(r))||l9.some(r=>(n.contain||"").includes(r))}function c9(e){let t=Gs(e);for(;_r(t)&&!oa(t);){if(E0(t))return t;if(ih(t))return null;t=Gs(t)}return null}function k0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const u9=new Set(["html","body","#document"]);function oa(e){return u9.has(va(e))}function nr(e){return Cn(e).getComputedStyle(e)}function oh(e){return tr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gs(e){if(va(e)==="html")return e;const t=e.assignedSlot||e.parentNode||T1(e)&&e.host||kr(e);return T1(t)?t.host:t}function nC(e){const t=Gs(e);return oa(t)?e.ownerDocument?e.ownerDocument.body:e.body:_r(t)&&dc(t)?t:nC(t)}function Bl(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=nC(e),l=o===((r=e.ownerDocument)==null?void 0:r.body),c=Cn(o);if(l){const d=sg(c);return t.concat(c,c.visualViewport||[],dc(o)?o:[],d&&n?Bl(d):[])}return t.concat(o,Bl(o,[],n))}function sg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rC(e){const t=nr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=_r(e),l=o?e.offsetWidth:n,c=o?e.offsetHeight:r,d=Sd(n)!==l||Sd(r)!==c;return d&&(n=l,r=c),{width:n,height:r,$:d}}function T0(e){return tr(e)?e:e.contextElement}function Io(e){const t=T0(e);if(!_r(t))return Nr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:l}=rC(t);let c=(l?Sd(n.width):n.width)/r,d=(l?Sd(n.height):n.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}const d9=Nr(0);function sC(e){const t=Cn(e);return!k0()||!t.visualViewport?d9:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function h9(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Cn(e)?!1:t}function $i(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),l=T0(e);let c=Nr(1);t&&(r?tr(r)&&(c=Io(r)):c=Io(e));const d=h9(l,n,r)?sC(l):Nr(0);let h=(o.left+d.x)/c.x,f=(o.top+d.y)/c.y,m=o.width/c.x,g=o.height/c.y;if(l){const v=Cn(l),N=r&&tr(r)?Cn(r):r;let j=v,b=sg(j);for(;b&&r&&N!==j;){const C=Io(b),S=b.getBoundingClientRect(),k=nr(b),_=S.left+(b.clientLeft+parseFloat(k.paddingLeft))*C.x,T=S.top+(b.clientTop+parseFloat(k.paddingTop))*C.y;h*=C.x,f*=C.y,m*=C.x,g*=C.y,h+=_,f+=T,j=Cn(b),b=sg(j)}}return _d({width:m,height:g,x:h,y:f})}function ah(e,t){const n=oh(e).scrollLeft;return t?t.left+n:$i(kr(e)).left+n}function iC(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-ah(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function f9(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const l=o==="fixed",c=kr(r),d=t?ih(t.floating):!1;if(r===c||d&&l)return n;let h={scrollLeft:0,scrollTop:0},f=Nr(1);const m=Nr(0),g=_r(r);if((g||!g&&!l)&&((va(r)!=="body"||dc(c))&&(h=oh(r)),_r(r))){const N=$i(r);f=Io(r),m.x=N.x+r.clientLeft,m.y=N.y+r.clientTop}const v=c&&!g&&!l?iC(c,h):Nr(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-h.scrollLeft*f.x+m.x+v.x,y:n.y*f.y-h.scrollTop*f.y+m.y+v.y}}function p9(e){return Array.from(e.getClientRects())}function m9(e){const t=kr(e),n=oh(e),r=e.ownerDocument.body,o=Nn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=Nn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let c=-n.scrollLeft+ah(e);const d=-n.scrollTop;return nr(r).direction==="rtl"&&(c+=Nn(t.clientWidth,r.clientWidth)-o),{width:o,height:l,x:c,y:d}}const P1=25;function g9(e,t){const n=Cn(e),r=kr(e),o=n.visualViewport;let l=r.clientWidth,c=r.clientHeight,d=0,h=0;if(o){l=o.width,c=o.height;const m=k0();(!m||m&&t==="fixed")&&(d=o.offsetLeft,h=o.offsetTop)}const f=ah(r);if(f<=0){const m=r.ownerDocument,g=m.body,v=getComputedStyle(g),N=m.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,j=Math.abs(r.clientWidth-g.clientWidth-N);j<=P1&&(l-=j)}else f<=P1&&(l+=f);return{width:l,height:c,x:d,y:h}}const x9=new Set(["absolute","fixed"]);function v9(e,t){const n=$i(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,l=_r(e)?Io(e):Nr(1),c=e.clientWidth*l.x,d=e.clientHeight*l.y,h=o*l.x,f=r*l.y;return{width:c,height:d,x:h,y:f}}function R1(e,t,n){let r;if(t==="viewport")r=g9(e,n);else if(t==="document")r=m9(kr(e));else if(tr(t))r=v9(t,n);else{const o=sC(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return _d(r)}function oC(e,t){const n=Gs(e);return n===t||!tr(n)||oa(n)?!1:nr(n).position==="fixed"||oC(n,t)}function y9(e,t){const n=t.get(e);if(n)return n;let r=Bl(e,[],!1).filter(d=>tr(d)&&va(d)!=="body"),o=null;const l=nr(e).position==="fixed";let c=l?Gs(e):e;for(;tr(c)&&!oa(c);){const d=nr(c),h=E0(c);!h&&d.position==="fixed"&&(o=null),(l?!h&&!o:!h&&d.position==="static"&&!!o&&x9.has(o.position)||dc(c)&&!h&&oC(e,c))?r=r.filter(m=>m!==c):o=d,c=Gs(c)}return t.set(e,r),r}function w9(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const c=[...n==="clippingAncestors"?ih(t)?[]:y9(t,this._c):[].concat(n),r],d=c[0],h=c.reduce((f,m)=>{const g=R1(t,m,o);return f.top=Nn(g.top,f.top),f.right=Ks(g.right,f.right),f.bottom=Ks(g.bottom,f.bottom),f.left=Nn(g.left,f.left),f},R1(t,d,o));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function b9(e){const{width:t,height:n}=rC(e);return{width:t,height:n}}function j9(e,t,n){const r=_r(t),o=kr(t),l=n==="fixed",c=$i(e,!0,l,t);let d={scrollLeft:0,scrollTop:0};const h=Nr(0);function f(){h.x=ah(o)}if(r||!r&&!l)if((va(t)!=="body"||dc(o))&&(d=oh(t)),r){const N=$i(t,!0,l,t);h.x=N.x+t.clientLeft,h.y=N.y+t.clientTop}else o&&f();l&&!r&&o&&f();const m=o&&!r&&!l?iC(o,d):Nr(0),g=c.left+d.scrollLeft-h.x-m.x,v=c.top+d.scrollTop-h.y-m.y;return{x:g,y:v,width:c.width,height:c.height}}function Xp(e){return nr(e).position==="static"}function A1(e,t){if(!_r(e)||nr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return kr(e)===n&&(n=n.ownerDocument.body),n}function aC(e,t){const n=Cn(e);if(ih(e))return n;if(!_r(e)){let o=Gs(e);for(;o&&!oa(o);){if(tr(o)&&!Xp(o))return o;o=Gs(o)}return n}let r=A1(e,t);for(;r&&s9(r)&&Xp(r);)r=A1(r,t);return r&&oa(r)&&Xp(r)&&!E0(r)?n:r||c9(e)||n}const N9=async function(e){const t=this.getOffsetParent||aC,n=this.getDimensions,r=await n(e.floating);return{reference:j9(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function S9(e){return nr(e).direction==="rtl"}const C9={convertOffsetParentRelativeRectToViewportRelativeRect:f9,getDocumentElement:kr,getClippingRect:w9,getOffsetParent:aC,getElementRects:N9,getClientRects:p9,getDimensions:b9,getScale:Io,isElement:tr,isRTL:S9};function lC(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _9(e,t){let n=null,r;const o=kr(e);function l(){var d;clearTimeout(r),(d=n)==null||d.disconnect(),n=null}function c(d,h){d===void 0&&(d=!1),h===void 0&&(h=1),l();const f=e.getBoundingClientRect(),{left:m,top:g,width:v,height:N}=f;if(d||t(),!v||!N)return;const j=Bu(g),b=Bu(o.clientWidth-(m+v)),C=Bu(o.clientHeight-(g+N)),S=Bu(m),_={rootMargin:-j+"px "+-b+"px "+-C+"px "+-S+"px",threshold:Nn(0,Ks(1,h))||1};let T=!0;function R(P){const L=P[0].intersectionRatio;if(L!==h){if(!T)return c();L?c(!1,L):r=setTimeout(()=>{c(!1,1e-7)},1e3)}L===1&&!lC(f,e.getBoundingClientRect())&&c(),T=!1}try{n=new IntersectionObserver(R,{..._,root:o.ownerDocument})}catch{n=new IntersectionObserver(R,_)}n.observe(e)}return c(!0),l}function E9(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=r,f=T0(e),m=o||l?[...f?Bl(f):[],...Bl(t)]:[];m.forEach(S=>{o&&S.addEventListener("scroll",n,{passive:!0}),l&&S.addEventListener("resize",n)});const g=f&&d?_9(f,n):null;let v=-1,N=null;c&&(N=new ResizeObserver(S=>{let[k]=S;k&&k.target===f&&N&&(N.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var _;(_=N)==null||_.observe(t)})),n()}),f&&!h&&N.observe(f),N.observe(t));let j,b=h?$i(e):null;h&&C();function C(){const S=$i(e);b&&!lC(b,S)&&n(),b=S,j=requestAnimationFrame(C)}return n(),()=>{var S;m.forEach(k=>{o&&k.removeEventListener("scroll",n),l&&k.removeEventListener("resize",n)}),g==null||g(),(S=N)==null||S.disconnect(),N=null,h&&cancelAnimationFrame(j)}}
vendor: 4,155 bytes, line 444
444const k9=JF,T9=ZF,P9=QF,R9=t9,A9=YF,M1=GF,M9=e9,O9=(e,t,n)=>{const r=new Map,o={platform:C9,...n},l={...o.platform,_c:r};return KF(e,t,{...o,platform:l})};var D9=typeof document<"u",I9=function(){},sd=D9?y.useLayoutEffect:I9;function Ed(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ed(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const l=o[r];if(!(l==="_owner"&&e.$$typeof)&&!Ed(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function cC(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function O1(e,t){const n=cC(e);return Math.round(t*n)/n}function Jp(e){const t=y.useRef(e);return sd(()=>{t.current=e}),t}function L9(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:c}={},transform:d=!0,whileElementsMounted:h,open:f}=e,[m,g]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,N]=y.useState(r);Ed(v,r)||N(r);const[j,b]=y.useState(null),[C,S]=y.useState(null),k=y.useCallback(B=>{B!==P.current&&(P.current=B,b(B))},[]),_=y.useCallback(B=>{B!==L.current&&(L.current=B,S(B))},[]),T=l||j,R=c||C,P=y.useRef(null),L=y.useRef(null),M=y.useRef(m),G=h!=null,H=Jp(h),ne=Jp(o),ce=Jp(f),se=y.useCallback(()=>{if(!P.current||!L.current)return;const B={placement:t,strategy:n,middleware:v};ne.current&&(B.platform=ne.current),O9(P.current,L.current,B).then(K=>{const Y={...K,isPositioned:ce.current!==!1};ue.current&&!Ed(M.current,Y)&&(M.current=Y,Yl.flushSync(()=>{g(Y)}))})},[v,t,n,ne,ce]);sd(()=>{f===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,g(B=>({...B,isPositioned:!1})))},[f]);const ue=y.useRef(!1);sd(()=>(ue.current=!0,()=>{ue.current=!1}),[]),sd(()=>{if(T&&(P.current=T),R&&(L.current=R),T&&R){if(H.current)return H.current(T,R,se);se()}},[T,R,se,H,G]);const Te=y.useMemo(()=>({reference:P,floating:L,setReference:k,setFloating:_}),[k,_]),oe=y.useMemo(()=>({reference:T,floating:R}),[T,R]),re=y.useMemo(()=>{const B={position:n,left:0,top:0};if(!oe.floating)return B;const K=O1(oe.floating,m.x),Y=O1(oe.floating,m.y);return d?{...B,transform:"translate("+K+"px, "+Y+"px)",...cC(oe.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:K,top:Y}},[n,d,oe.floating,m.x,m.y]);return y.useMemo(()=>({...m,update:se,refs:Te,elements:oe,floatingStyles:re}),[m,se,Te,oe,re])}const F9=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?M1({element:r.current,padding:o}).fn(n):{}:r?M1({element:r,padding:o}).fn(n):{}}}},V9=(e,t)=>({...k9(e),options:[e,t]}),B9=(e,t)=>({...T9(e),options:[e,t]}),$9=(e,t)=>({...M9(e),options:[e,t]}),U9=(e,t)=>({...P9(e),options:[e,t]}),z9=(e,t)=>({...R9(e),options:[e,t]}),q9=(e,t)=>({...A9(e),options:[e,t]}),H9=(e,t)=>({...F9(e),options:[e,t]});var W9="Arrow",uC=y.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...l}=e;return i.jsx(Ue.svg,{...l,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:i.jsx("polygon",{points:"0,0 30,0 15,10"})})});uC.displayName=W9;var K9=uC;function G9(e){const[t,n]=y.useState(void 0);return Zt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const l=o[0];let c,d;if("borderBoxSize"in l){const h=l.borderBoxSize,f=Array.isArray(h)?h[0]:h;c=f.inlineSize,d=f.blockSize}else c=e.offsetWidth,d=e.offsetHeight;n({width:c,height:d})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var P0="Popper",[dC,lh]=Xs(P0),[Q9,hC]=dC(P0),fC=e=>{const{__scopePopper:t,children:n}=e,[r,o]=y.useState(null);return i.jsx(Q9,{scope:t,anchor:r,onAnchorChange:o,children:n})};fC.displayName=P0;var pC="PopperAnchor",mC=y.forwardRef((e,t)=>
vendor: 4,692 bytes, line 444
444{const{__scopePopper:n,virtualRef:r,...o}=e,l=hC(pC,n),c=y.useRef(null),d=rt(t,c),h=y.useRef(null);return y.useEffect(()=>{const f=h.current;h.current=(r==null?void 0:r.current)||c.current,f!==h.current&&l.onAnchorChange(h.current)}),r?null:i.jsx(Ue.div,{...o,ref:d})});mC.displayName=pC;var R0="PopperContent",[Y9,X9]=dC(R0),gC=y.forwardRef((e,t)=>{var Q,me,Se,Re,Le,Ie;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:l="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:h=!0,collisionBoundary:f=[],collisionPadding:m=0,sticky:g="partial",hideWhenDetached:v=!1,updatePositionStrategy:N="optimized",onPlaced:j,...b}=e,C=hC(R0,n),[S,k]=y.useState(null),_=rt(t,vt=>k(vt)),[T,R]=y.useState(null),P=G9(T),L=(P==null?void 0:P.width)??0,M=(P==null?void 0:P.height)??0,G=r+(l!=="center"?"-"+l:""),H=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},ne=Array.isArray(f)?f:[f],ce=ne.length>0,se={padding:H,boundary:ne.filter(Z9),altBoundary:ce},{refs:ue,floatingStyles:Te,placement:oe,isPositioned:re,middlewareData:B}=L9({strategy:"fixed",placement:G,whileElementsMounted:(...vt)=>E9(...vt,{animationFrame:N==="always"}),elements:{reference:C.anchor},middleware:[V9({mainAxis:o+M,alignmentAxis:c}),h&&B9({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?$9():void 0,...se}),h&&U9({...se}),z9({...se,apply:({elements:vt,rects:Pt,availableWidth:Rt,availableHeight:Ae})=>{const{width:dt,height:vn}=Pt.reference,$t=vt.floating.style;$t.setProperty("--radix-popper-available-width",`${Rt}px`),$t.setProperty("--radix-popper-available-height",`${Ae}px`),$t.setProperty("--radix-popper-anchor-width",`${dt}px`),$t.setProperty("--radix-popper-anchor-height",`${vn}px`)}}),T&&H9({element:T,padding:d}),eV({arrowWidth:L,arrowHeight:M}),v&&q9({strategy:"referenceHidden",...se})]}),[K,Y]=yC(oe),D=Cr(j);Zt(()=>{re&&(D==null||D())},[re,D]);const W=(Q=B.arrow)==null?void 0:Q.x,de=(me=B.arrow)==null?void 0:me.y,he=((Se=B.arrow)==null?void 0:Se.centerOffset)!==0,[Pe,ie]=y.useState();return Zt(()=>{S&&ie(window.getComputedStyle(S).zIndex)},[S]),i.jsx("div",{ref:ue.setFloating,"data-radix-popper-content-wrapper":"",style:{...Te,transform:re?Te.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Pe,"--radix-popper-transform-origin":[(Re=B.transformOrigin)==null?void 0:Re.x,(Le=B.transformOrigin)==null?void 0:Le.y].join(" "),...((Ie=B.hide)==null?void 0:Ie.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:i.jsx(Y9,{scope:n,placedSide:K,onArrowChange:R,arrowX:W,arrowY:de,shouldHideArrow:he,children:i.jsx(Ue.div,{"data-side":K,"data-align":Y,...b,ref:_,style:{...b.style,animation:re?void 0:"none"}})})})});gC.displayName=R0;var xC="PopperArrow",J9={top:"bottom",right:"left",bottom:"top",left:"right"},vC=y.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,l=X9(xC,r),c=J9[l.placedSide];return i.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:i.jsx(K9,{...o,ref:n,style:{...o.style,display:"block"}})})});vC.displayName=xC;function Z9(e){return e!==null}var eV=e=>({name:"transformOrigin",options:e,fn(t){var C,S,k;const{placement:n,rects:r,middlewareData:o}=t,c=((C=o.arrow)==null?void 0:C.centerOffset)!==0,d=c?0:e.arrowWidth,h=c?0:e.arrowHeight,[f,m]=yC(n),g={start:"0%",center:"50%",end:"100%"}[m],v=(((S=o.arrow)==null?void 0:S.x)??0)+d/2,N=(((k=o.arrow)==null?void 0:k.y)??0)+h/2;let j="",b="";return f==="bottom"?(j=c?g:`${v}px`,b=`${-h}px`):f==="top"?(j=c?g:`${v}px`,b=`${r.floating.height+h}px`):f==="right"?(j=`${-h}px`,b=c?g:`${N}px`):f==="left"&&(j=`${r.floating.width+h}px`,b=c?g:`${N}px`),{data:{x:j,y:b}}}});function yC(e){const[t,n="center"]=e.split("-");return[t,n]}var wC=fC,bC=mC,jC=gC,NC=vC,tV="Portal",ch=y.forwardRef((e,t)=>{var d;const{container:n,...r}=e,[o,l]=y.useState(!1);Zt(()=>l(!0),[]);const c=n||o&&((d=globalThis==null?void 0:globalThis.document)==null?void 0:d.body);return c?a4.createPortal(i.jsx(Ue.div,{...r,ref:t}),c):null});ch.displayName=tV;function nV(e){const t=y.useRef({value:e,previous:e});return y.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var SC=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"}),rV="VisuallyHidden",sV=y.forwardRef((e,t)=>
vendor: 14,304 bytes, lines 444-484
444i.jsx(Ue.span,{...e,ref:t,style:{...SC,...e.style}}));sV.displayName=rV;var iV=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Eo=new WeakMap,$u=new WeakMap,Uu={},Zp=0,CC=function(e){return e&&(e.host||CC(e.parentNode))},oV=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=CC(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},aV=function(e,t,n,r){var o=oV(t,Array.isArray(e)?e:[e]);Uu[n]||(Uu[n]=new WeakMap);var l=Uu[n],c=[],d=new Set,h=new Set(o),f=function(g){!g||d.has(g)||(d.add(g),f(g.parentNode))};o.forEach(f);var m=function(g){!g||h.has(g)||Array.prototype.forEach.call(g.children,function(v){if(d.has(v))m(v);else try{var N=v.getAttribute(r),j=N!==null&&N!=="false",b=(Eo.get(v)||0)+1,C=(l.get(v)||0)+1;Eo.set(v,b),l.set(v,C),c.push(v),b===1&&j&&$u.set(v,!0),C===1&&v.setAttribute(n,"true"),j||v.setAttribute(r,"true")}catch(S){console.error("aria-hidden: cannot operate on ",v,S)}})};return m(t),d.clear(),Zp++,function(){c.forEach(function(g){var v=Eo.get(g)-1,N=l.get(g)-1;Eo.set(g,v),l.set(g,N),v||($u.has(g)||g.removeAttribute(r),$u.delete(g)),N||g.removeAttribute(n)}),Zp--,Zp||(Eo=new WeakMap,Eo=new WeakMap,$u=new WeakMap,Uu={})}},A0=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=iV(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),aV(r,o,n,"aria-hidden")):function(){return null}},pr=function(){return pr=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},pr.apply(this,arguments)};function _C(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function lV(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,l;r<o;r++)(l||!(r in t))&&(l||(l=Array.prototype.slice.call(t,0,r)),l[r]=t[r]);return e.concat(l||Array.prototype.slice.call(t))}var id="right-scroll-bar-position",od="width-before-scroll-bar",cV="with-scroll-bars-hidden",uV="--removed-body-scroll-bar-size";function em(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function dV(e,t){var n=y.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var hV=typeof window<"u"?y.useLayoutEffect:y.useEffect,D1=new WeakMap;function fV(e,t){var n=dV(null,function(r){return e.forEach(function(o){return em(o,r)})});return hV(function(){var r=D1.get(n);if(r){var o=new Set(r),l=new Set(e),c=n.current;o.forEach(function(d){l.has(d)||em(d,null)}),l.forEach(function(d){o.has(d)||em(d,c)})}D1.set(n,e)},[e]),n}function pV(e){return e}function mV(e,t){t===void 0&&(t=pV);var n=[],r=!1,o={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]:e},useMedium:function(l){var c=t(l,r);return n.push(c),function(){n=n.filter(function(d){return d!==c})}},assignSyncMedium:function(l){for(r=!0;n.length;){var c=n;n=[],c.forEach(l)}n={push:function(d){return l(d)},filter:function(){return n}}},assignMedium:function(l){r=!0;var c=[];if(n.length){var d=n;n=[],d.forEach(l),c=n}var h=function(){var m=c;c=[],m.forEach(l)},f=function(){return Promise.resolve().then(h)};f(),n={push:function(m){c.push(m),f()},filter:function(m){return c=c.filter(m),n}}}};return o}function gV(e){e===void 0&&(e={});var t=mV(null);return t.options=pr({async:!0,ssr:!1},e),t}var EC=function(e){var t=e.sideCar,n=_C(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return y.createElement(r,pr({},n))};EC.isSideCarExport=!0;function xV(e,t){return e.useMedium(t),EC}var kC=gV(),tm=function(){},uh=y.forwardRef(function(e,t){var n=y.useRef(null),r=y.useState({onScrollCapture:tm,onWheelCapture:tm,onTouchMoveCapture:tm}),o=r[0],l=r[1],c=e.forwardProps,d=e.children,h=e.className,f=e.removeScrollBar,m=e.enabled,g=e.shards,v=e.sideCar,N=e.noRelative,j=e.noIsolation,b=e.inert,C=e.allowPinchZoom,S=e.as,k=S===void 0?"div":S,_=e.gapMode,T=_C(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=v,P=fV([n,t]),L=pr(pr({},T),o);return y.createElement(y.Fragment,null,m&&y.createElement(R,{sideCar:kC,removeScrollBar:f,shards:g,noRelative:N,noIsolation:j,inert:b,setCallbacks:l,allowPinchZoom:!!C,lockRef:n,gapMode:_}),c?y.cloneElement(y.Children.only(d),pr(pr({},L),{ref:P})):y.createElement(k,pr({},L,{className:h,ref:P}),d))});uh.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};uh.classNames={fullWidth:od,zeroRight:id};var vV=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function yV(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=vV();return t&&e.setAttribute("nonce",t),e}function wV(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function bV(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var jV=function(){var e=0,t=null;return{add:function(n){e==0&&(t=yV())&&(wV(t,n),bV(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},NV=function(){var e=jV();return function(t,n){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},TC=function(){var e=NV(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},SV={left:0,top:0,right:0,gap:0},nm=function(e){return parseInt(e||"",10)||0},CV=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[nm(n),nm(r),nm(o)]},_V=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return SV;var t=CV(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},EV=TC(),Lo="data-scroll-locked",kV=function(e,t,n,r){var o=e.left,l=e.top,c=e.right,d=e.gap;return n===void 0&&(n="margin"),`
445  .`.concat(cV,` {
446   overflow: hidden `).concat(r,`;
447   padding-right: `).concat(d,"px ").concat(r,`;
448  }
449  body[`).concat(Lo,`] {
450    overflow: hidden `).concat(r,`;
451    overscroll-behavior: contain;
452    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
453    padding-left: `.concat(o,`px;
454    padding-top: `).concat(l,`px;
455    padding-right: `).concat(c,`px;
456    margin-left:0;
457    margin-top:0;
458    margin-right: `).concat(d,"px ").concat(r,`;
459    `),n==="padding"&&"padding-right: ".concat(d,"px ").concat(r,";")].filter(Boolean).join(""),`
460  }
461  
462  .`).concat(id,` {
463    right: `).concat(d,"px ").concat(r,`;
464  }
465  
466  .`).concat(od,` {
467    margin-right: `).concat(d,"px ").concat(r,`;
468  }
469  
470  .`).concat(id," .").concat(id,` {
471    right: 0 `).concat(r,`;
472  }
473  
474  .`).concat(od," .").concat(od,` {
475    margin-right: 0 `).concat(r,`;
476  }
477  
478  body[`).concat(Lo,`] {
479    `).concat(uV,": ").concat(d,`px;
480  }
481`)},I1=function(){var e=parseInt(document.body.getAttribute(Lo)||"0",10);return isFinite(e)?e:0},TV=function(){y.useEffect(function(){return document.body.setAttribute(Lo,(I1()+1).toString()),function(){var e=I1()-1;e<=0?document.body.removeAttribute(Lo):document.body.setAttribute(Lo,e.toString())}},[])},PV=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;TV();var l=y.useMemo(function(){return _V(o)},[o]);return y.createElement(EV,{styles:kV(l,!t,o,n?"":"!important")})},ig=!1;if(typeof window<"u")try{var zu=Object.defineProperty({},"passive",{get:function(){return ig=!0,!0}});window.addEventListener("test",zu,zu),window.removeEventListener("test",zu,zu)}catch{ig=!1}var ko=ig?{passive:!1}:!1,RV=function(e){return e.tagName==="TEXTAREA"},PC=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!RV(e)&&n[t]==="visible")},AV=function(e){return PC(e,"overflowY")},MV=function(e){return PC(e,"overflowX")},L1=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=RC(e,r);if(o){var l=AC(e,r),c=l[1],d=l[2];if(c>d)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},OV=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},DV=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},RC=function(e,t){return e==="v"?AV(t):MV(t)},AC=function(e,t){return e==="v"?OV(t):DV(t)},IV=function(e,t){return e==="h"&&t==="rtl"?-1:1},LV=function(e,t,n,r,o){var l=IV(e,window.getComputedStyle(t).direction),c=l*r,d=n.target,h=t.contains(d),f=!1,m=c>0,g=0,v=0;do{if(!d)break;var N=AC(e,d),j=N[0],b=N[1],C=N[2],S=b-C-l*j;(j||S)&&RC(e,d)&&(g+=S,v+=j);var k=d.parentNode;d=k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE?k.host:k}while(!h&&d!==document.body||h&&(t.contains(d)||t===d));return(m&&Math.abs(g)<1||!m&&Math.abs(v)<1)&&(f=!0),f},qu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},F1=function(e){return[e.deltaX,e.deltaY]},V1=function(e){return e&&"current"in e?e.current:e},FV=function(e,t){return e[0]===t[0]&&e[1]===t[1]},VV=function(e){return`
482  .block-interactivity-`.concat(e,` {pointer-events: none;}
483  .allow-interactivity-`).concat(e,` {pointer-events: all;}
484`)},BV=0,To=[];function $V(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),o=y.useState(BV++)[0],l=y.useState(TC)[0],c=y.useRef(e);y.useEffect(function(){c.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var b=lV([e.lockRef.current],(e.shards||[]).map(V1),!0).filter(Boolean);return b.forEach(function(C){return C.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),b.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var d=y.useCallback(function(b,C){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!c.current.allowPinchZoom;var S=qu(b),k=n.current,_="deltaX"in b?b.deltaX:k[0]-S[0],T="deltaY"in b?b.deltaY:k[1]-S[1],R,P=b.target,L=Math.abs(_)>Math.abs(T)?"h":"v";if("touches"in b&&L==="h"&&P.type==="range")return!1;var M=L1(L,P);if(!M)return!0;if(M?R=L:(R=L==="v"?"h":"v",M=L1(L,P)),!M)return!1;if(!r.current&&"changedTouches"in b&&(_||T)&&(r.current=R),!R)return!0;var G=r.current||R;return LV(G,C,b,G==="h"?_:T)},[]),h=y.useCallback(function(b){var C=b;if(!(!To.length||To[To.length-1]!==l)){var S="deltaY"in C?F1(C):qu(C),k=t.current.filter(function(R){return R.name===C.type&&(R.target===C.target||C.target===R.shadowParent)&&FV(R.delta,S)})[0];if(k&&k.should){C.cancelable&&C.preventDefault();return}if(!k){var _=(c.current.shards||[]).map(V1).filter(Boolean).filter(function(R){return R.contains(C.target)}),T=_.length>0?d(C,_[0]):!c.current.noIsolation;T&&C.cancelable&&C.preventDefault()}}},[]),f=y.useCallback(function(b,C,S,k){var _={name:b,delta:C,target:S,should:k,shadowParent:UV(S)};t.current.push(_),setTimeout(function(){t.current=t.current.filter(function(T){return T!==_})},1)},[]),m=y.useCallback(function(b){n.current=qu(b),r.current=void 0},[]),g=y.useCallback(function(b){f(b.type,F1(b),b.target,d(b,e.lockRef.current))},[]),v=y.useCallback(function(b){f(b.type,qu(b),b.target,d(b,e.lockRef.current))},[]);y.useEffect(function(){return To.push(l),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",h,ko),document.addEventListener("touchmove",h,ko),document.addEventListener("touchstart",m,ko),function(){To=To.filter(function(b){return b!==l}),document.removeEventListener("wheel",h,ko),document.removeEventListener("touchmove",h,ko),document.removeEventListener("touchstart",m,ko)}},[]);var N=e.removeScrollBar,j=e.inert;return y.createElement(y.Fragment,null,j?y.createElement(l,{styles:VV(o)}):null,N?y.createElement(PV,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function UV(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const zV=xV(kC,$V);var dh=y.forwardRef(function(e,t){return y.createElement(uh,pr({},e,{ref:t,sideCar:zV}))});dh.classNames=uh.classNames;var qV=[" ","Enter","ArrowUp","ArrowDown"],HV=[" ","Enter"],Ui="Select",[hh,fh,WV]=b0(Ui),[ya]=Xs(Ui,[WV,lh]),ph=lh(),[KV,Js]=ya(Ui),[GV,QV]=ya(Ui),MC=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:l,value:c,defaultValue:d,onValueChange:h,dir:f,name:m,autoComplete:g,disabled:v,required:N,form:j}=e,b=ph(t),[C,S]=y.useState(null),[k,_]=y.useState(null),[T,R]=y.useState(!1),P=Zd(f),[L,M]=ia({prop:r,defaultProp:o??!1,onChange:l,caller:Ui}),[G,H]=ia({prop:c,defaultProp:d,onChange:h,caller:Ui}),ne=y.useRef(null),ce=C?j||!!C.closest("form"):!0,[se,ue]=y.useState(new Set),Te=Array.from(se).map(oe=>oe.props.value).join(";");return i.jsx(wC,{...b,children:i.jsxs(KV,{required:N,scope:t,trigger:C,onTriggerChange:S,valueNode:k,onValueNodeChange:_,valueNodeHasChildren:T,onValueNodeHasChildrenChange:R,contentId:jr(),value:G,onValueChange:H,open:L,onOpenChange:M,dir:P,triggerPointerDownPosRef:ne,disabled:v,children:[i.jsx(hh.Provider,{scope:t,children:i.jsx(GV,{scope:e.__scopeSelect,onNativeOptionAdd:y.useCallback(oe=>{ue(re=>new Set(re).add(oe))},[]),onNativeOptionRemove:y.useCallback(oe=>{ue(re=>{const B=new Set(re);return B.delete(oe),B})},[]),children:n})}),ce?i.jsxs(r_,{"aria-hidden":!0,required:N,tabIndex:-1,name:m,autoComplete:g,value:G,onChange:oe=>H(oe.target.value),disabled:v,form:j,children:[G===void 0?i.jsx("option",{value:""}):null,Array.from(se)]},Te):null]})})};MC.displayName=Ui;var OC="SelectTrigger",DC=y.forwardRef((e,t)=>
vendor: 18,161 bytes, line 484
484{const{__scopeSelect:n,disabled:r=!1,...o}=e,l=ph(n),c=Js(OC,n),d=c.disabled||r,h=rt(t,c.onTriggerChange),f=fh(n),m=y.useRef("touch"),[g,v,N]=i_(b=>{const C=f().filter(_=>!_.disabled),S=C.find(_=>_.value===c.value),k=o_(C,b,S);k!==void 0&&c.onValueChange(k.value)}),j=b=>{d||(c.onOpenChange(!0),N()),b&&(c.triggerPointerDownPosRef.current={x:Math.round(b.pageX),y:Math.round(b.pageY)})};return i.jsx(bC,{asChild:!0,...l,children:i.jsx(Ue.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:d,"data-disabled":d?"":void 0,"data-placeholder":s_(c.value)?"":void 0,...o,ref:h,onClick:Ce(o.onClick,b=>{b.currentTarget.focus(),m.current!=="mouse"&&j(b)}),onPointerDown:Ce(o.onPointerDown,b=>{m.current=b.pointerType;const C=b.target;C.hasPointerCapture(b.pointerId)&&C.releasePointerCapture(b.pointerId),b.button===0&&b.ctrlKey===!1&&b.pointerType==="mouse"&&(j(b),b.preventDefault())}),onKeyDown:Ce(o.onKeyDown,b=>{const C=g.current!=="";!(b.ctrlKey||b.altKey||b.metaKey)&&b.key.length===1&&v(b.key),!(C&&b.key===" ")&&qV.includes(b.key)&&(j(),b.preventDefault())})})})});DC.displayName=OC;var IC="SelectValue",LC=y.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:l,placeholder:c="",...d}=e,h=Js(IC,n),{onValueNodeHasChildrenChange:f}=h,m=l!==void 0,g=rt(t,h.onValueNodeChange);return Zt(()=>{f(m)},[f,m]),i.jsx(Ue.span,{...d,ref:g,style:{pointerEvents:"none"},children:s_(h.value)?i.jsx(i.Fragment,{children:c}):l})});LC.displayName=IC;var YV="SelectIcon",FC=y.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return i.jsx(Ue.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});FC.displayName=YV;var XV="SelectPortal",VC=e=>i.jsx(ch,{asChild:!0,...e});VC.displayName=XV;var zi="SelectContent",BC=y.forwardRef((e,t)=>{const n=Js(zi,e.__scopeSelect),[r,o]=y.useState();if(Zt(()=>{o(new DocumentFragment)},[]),!n.open){const l=r;return l?Yl.createPortal(i.jsx($C,{scope:e.__scopeSelect,children:i.jsx(hh.Slot,{scope:e.__scopeSelect,children:i.jsx("div",{children:e.children})})}),l):null}return i.jsx(UC,{...e,ref:t})});BC.displayName=zi;var Yn=10,[$C,Zs]=ya(zi),JV="SelectContentImpl",ZV=Bi("SelectContent.RemoveScroll"),UC=y.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:l,onPointerDownOutside:c,side:d,sideOffset:h,align:f,alignOffset:m,arrowPadding:g,collisionBoundary:v,collisionPadding:N,sticky:j,hideWhenDetached:b,avoidCollisions:C,...S}=e,k=Js(zi,n),[_,T]=y.useState(null),[R,P]=y.useState(null),L=rt(t,Q=>T(Q)),[M,G]=y.useState(null),[H,ne]=y.useState(null),ce=fh(n),[se,ue]=y.useState(!1),Te=y.useRef(!1);y.useEffect(()=>{if(_)return A0(_)},[_]),N0();const oe=y.useCallback(Q=>{const[me,...Se]=ce().map(Ie=>Ie.ref.current),[Re]=Se.slice(-1),Le=document.activeElement;for(const Ie of Q)if(Ie===Le||(Ie==null||Ie.scrollIntoView({block:"nearest"}),Ie===me&&R&&(R.scrollTop=0),Ie===Re&&R&&(R.scrollTop=R.scrollHeight),Ie==null||Ie.focus(),document.activeElement!==Le))return},[ce,R]),re=y.useCallback(()=>oe([M,_]),[oe,M,_]);y.useEffect(()=>{se&&re()},[se,re]);const{onOpenChange:B,triggerPointerDownPosRef:K}=k;y.useEffect(()=>{if(_){let Q={x:0,y:0};const me=Re=>{var Le,Ie;Q={x:Math.abs(Math.round(Re.pageX)-(((Le=K.current)==null?void 0:Le.x)??0)),y:Math.abs(Math.round(Re.pageY)-(((Ie=K.current)==null?void 0:Ie.y)??0))}},Se=Re=>{Q.x<=10&&Q.y<=10?Re.preventDefault():_.contains(Re.target)||B(!1),document.removeEventListener("pointermove",me),K.current=null};return K.current!==null&&(document.addEventListener("pointermove",me),document.addEventListener("pointerup",Se,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",me),document.removeEventListener("pointerup",Se,{capture:!0})}}},[_,B,K]),y.useEffect(()=>{const Q=()=>B(!1);return window.addEventListener("blur",Q),window.addEventListener("resize",Q),()=>{window.removeEventListener("blur",Q),window.removeEventListener("resize",Q)}},[B]);const[Y,D]=i_(Q=>{const me=ce().filter(Le=>!Le.disabled),Se=me.find(Le=>Le.ref.current===document.activeElement),Re=o_(me,Q,Se);Re&&setTimeout(()=>Re.ref.current.focus())}),W=y.useCallback((Q,me,Se)=>{const Re=!Te.current&&!Se;(k.value!==void 0&&k.value===me||Re)&&(G(Q),Re&&(Te.current=!0))},[k.value]),de=y.useCallback(()=>_==null?void 0:_.focus(),[_]),he=y.useCallback((Q,me,Se)=>{const Re=!Te.current&&!Se;(k.value!==void 0&&k.value===me||Re)&&ne(Q)},[k.value]),Pe=r==="popper"?og:zC,ie=Pe===og?{side:d,sideOffset:h,align:f,alignOffset:m,arrowPadding:g,collisionBoundary:v,collisionPadding:N,sticky:j,hideWhenDetached:b,avoidCollisions:C}:{};return i.jsx($C,{scope:n,content:_,viewport:R,onViewportChange:P,itemRefCallback:W,selectedItem:M,onItemLeave:de,itemTextRefCallback:he,focusSelectedItem:re,selectedItemText:H,position:r,isPositioned:se,searchRef:Y,children:i.jsx(dh,{as:ZV,allowPinchZoom:!0,children:i.jsx(rh,{asChild:!0,trapped:k.open,onMountAutoFocus:Q=>{Q.preventDefault()},onUnmountAutoFocus:Ce(o,Q=>{var me;(me=k.trigger)==null||me.focus({preventScroll:!0}),Q.preventDefault()}),children:i.jsx(nh,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:Q=>Q.preventDefault(),onDismiss:()=>k.onOpenChange(!1),children:i.jsx(Pe,{role:"listbox",id:k.contentId,"data-state":k.open?"open":"closed",dir:k.dir,onContextMenu:Q=>Q.preventDefault(),...S,...ie,onPlaced:()=>ue(!0),ref:L,style:{display:"flex",flexDirection:"column",outline:"none",...S.style},onKeyDown:Ce(S.onKeyDown,Q=>{const me=Q.ctrlKey||Q.altKey||Q.metaKey;if(Q.key==="Tab"&&Q.preventDefault(),!me&&Q.key.length===1&&D(Q.key),["ArrowUp","ArrowDown","Home","End"].includes(Q.key)){let Re=ce().filter(Le=>!Le.disabled).map(Le=>Le.ref.current);if(["ArrowUp","End"].includes(Q.key)&&(Re=Re.slice().reverse()),["ArrowUp","ArrowDown"].includes(Q.key)){const Le=Q.target,Ie=Re.indexOf(Le);Re=Re.slice(Ie+1)}setTimeout(()=>oe(Re)),Q.preventDefault()}})})})})})})});UC.displayName=JV;var e7="SelectItemAlignedPosition",zC=y.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,l=Js(zi,n),c=Zs(zi,n),[d,h]=y.useState(null),[f,m]=y.useState(null),g=rt(t,L=>m(L)),v=fh(n),N=y.useRef(!1),j=y.useRef(!0),{viewport:b,selectedItem:C,selectedItemText:S,focusSelectedItem:k}=c,_=y.useCallback(()=>{if(l.trigger&&l.valueNode&&d&&f&&b&&C&&S){const L=l.trigger.getBoundingClientRect(),M=f.getBoundingClientRect(),G=l.valueNode.getBoundingClientRect(),H=S.getBoundingClientRect();if(l.dir!=="rtl"){const Le=H.left-M.left,Ie=G.left-Le,vt=L.left-Ie,Pt=L.width+vt,Rt=Math.max(Pt,M.width),Ae=window.innerWidth-Yn,dt=g1(Ie,[Yn,Math.max(Yn,Ae-Rt)]);d.style.minWidth=Pt+"px",d.style.left=dt+"px"}else{const Le=M.right-H.right,Ie=window.innerWidth-G.right-Le,vt=window.innerWidth-L.right-Ie,Pt=L.width+vt,Rt=Math.max(Pt,M.width),Ae=window.innerWidth-Yn,dt=g1(Ie,[Yn,Math.max(Yn,Ae-Rt)]);d.style.minWidth=Pt+"px",d.style.right=dt+"px"}const ne=v(),ce=window.innerHeight-Yn*2,se=b.scrollHeight,ue=window.getComputedStyle(f),Te=parseInt(ue.borderTopWidth,10),oe=parseInt(ue.paddingTop,10),re=parseInt(ue.borderBottomWidth,10),B=parseInt(ue.paddingBottom,10),K=Te+oe+se+B+re,Y=Math.min(C.offsetHeight*5,K),D=window.getComputedStyle(b),W=parseInt(D.paddingTop,10),de=parseInt(D.paddingBottom,10),he=L.top+L.height/2-Yn,Pe=ce-he,ie=C.offsetHeight/2,Q=C.offsetTop+ie,me=Te+oe+Q,Se=K-me;if(me<=he){const Le=ne.length>0&&C===ne[ne.length-1].ref.current;d.style.bottom="0px";const Ie=f.clientHeight-b.offsetTop-b.offsetHeight,vt=Math.max(Pe,ie+(Le?de:0)+Ie+re),Pt=me+vt;d.style.height=Pt+"px"}else{const Le=ne.length>0&&C===ne[0].ref.current;d.style.top="0px";const vt=Math.max(he,Te+b.offsetTop+(Le?W:0)+ie)+Se;d.style.height=vt+"px",b.scrollTop=me-he+b.offsetTop}d.style.margin=`${Yn}px 0`,d.style.minHeight=Y+"px",d.style.maxHeight=ce+"px",r==null||r(),requestAnimationFrame(()=>N.current=!0)}},[v,l.trigger,l.valueNode,d,f,b,C,S,l.dir,r]);Zt(()=>_(),[_]);const[T,R]=y.useState();Zt(()=>{f&&R(window.getComputedStyle(f).zIndex)},[f]);const P=y.useCallback(L=>{L&&j.current===!0&&(_(),k==null||k(),j.current=!1)},[_,k]);return i.jsx(n7,{scope:n,contentWrapper:d,shouldExpandOnScrollRef:N,onScrollButtonChange:P,children:i.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:T},children:i.jsx(Ue.div,{...o,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});zC.displayName=e7;var t7="SelectPopperPosition",og=y.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Yn,...l}=e,c=ph(n);return i.jsx(jC,{...c,...l,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...l.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)"}})});og.displayName=t7;var[n7,M0]=ya(zi,{}),ag="SelectViewport",qC=y.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,l=Zs(ag,n),c=M0(ag,n),d=rt(t,l.onViewportChange),h=y.useRef(0);return i.jsxs(i.Fragment,{children:[i.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}),i.jsx(hh.Slot,{scope:n,children:i.jsx(Ue.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Ce(o.onScroll,f=>{const m=f.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:v}=c;if(v!=null&&v.current&&g){const N=Math.abs(h.current-m.scrollTop);if(N>0){const j=window.innerHeight-Yn*2,b=parseFloat(g.style.minHeight),C=parseFloat(g.style.height),S=Math.max(b,C);if(S<j){const k=S+N,_=Math.min(j,k),T=k-_;g.style.height=_+"px",g.style.bottom==="0px"&&(m.scrollTop=T>0?T:0,g.style.justifyContent="flex-end")}}}h.current=m.scrollTop})})})]})});qC.displayName=ag;var HC="SelectGroup",[r7,s7]=ya(HC),i7=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=jr();return i.jsx(r7,{scope:n,id:o,children:i.jsx(Ue.div,{role:"group","aria-labelledby":o,...r,ref:t})})});i7.displayName=HC;var WC="SelectLabel",KC=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=s7(WC,n);return i.jsx(Ue.div,{id:o.id,...r,ref:t})});KC.displayName=WC;var kd="SelectItem",[o7,GC]=ya(kd),QC=y.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:l,...c}=e,d=Js(kd,n),h=Zs(kd,n),f=d.value===r,[m,g]=y.useState(l??""),[v,N]=y.useState(!1),j=rt(t,k=>{var _;return(_=h.itemRefCallback)==null?void 0:_.call(h,k,r,o)}),b=jr(),C=y.useRef("touch"),S=()=>{o||(d.onValueChange(r),d.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 i.jsx(o7,{scope:n,value:r,disabled:o,textId:b,isSelected:f,onItemTextChange:y.useCallback(k=>{g(_=>_||((k==null?void 0:k.textContent)??"").trim())},[]),children:i.jsx(hh.ItemSlot,{scope:n,value:r,disabled:o,textValue:m,children:i.jsx(Ue.div,{role:"option","aria-labelledby":b,"data-highlighted":v?"":void 0,"aria-selected":f&&v,"data-state":f?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...c,ref:j,onFocus:Ce(c.onFocus,()=>N(!0)),onBlur:Ce(c.onBlur,()=>N(!1)),onClick:Ce(c.onClick,()=>{C.current!=="mouse"&&S()}),onPointerUp:Ce(c.onPointerUp,()=>{C.current==="mouse"&&S()}),onPointerDown:Ce(c.onPointerDown,k=>{C.current=k.pointerType}),onPointerMove:Ce(c.onPointerMove,k=>{var _;C.current=k.pointerType,o?(_=h.onItemLeave)==null||_.call(h):C.current==="mouse"&&k.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ce(c.onPointerLeave,k=>{var _;k.currentTarget===document.activeElement&&((_=h.onItemLeave)==null||_.call(h))}),onKeyDown:Ce(c.onKeyDown,k=>{var T;((T=h.searchRef)==null?void 0:T.current)!==""&&k.key===" "||(HV.includes(k.key)&&S(),k.key===" "&&k.preventDefault())})})})})});QC.displayName=kd;var yl="SelectItemText",YC=y.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...l}=e,c=Js(yl,n),d=Zs(yl,n),h=GC(yl,n),f=QV(yl,n),[m,g]=y.useState(null),v=rt(t,S=>g(S),h.onItemTextChange,S=>{var k;return(k=d.itemTextRefCallback)==null?void 0:k.call(d,S,h.value,h.disabled)}),N=m==null?void 0:m.textContent,j=y.useMemo(()=>i.jsx("option",{value:h.value,disabled:h.disabled,children:N},h.value),[h.disabled,h.value,N]),{onNativeOptionAdd:b,onNativeOptionRemove:C}=f;return Zt(()=>(b(j),()=>C(j)),[b,C,j]),i.jsxs(i.Fragment,{children:[i.jsx(Ue.span,{id:h.textId,...l,ref:v}),h.isSelected&&c.valueNode&&!c.valueNodeHasChildren?Yl.createPortal(l.children,c.valueNode):null]})});YC.displayName=yl;var XC="SelectItemIndicator",JC=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return GC(XC,n).isSelected?i.jsx(Ue.span,{"aria-hidden":!0,...r,ref:t}):null});JC.displayName=XC;var lg="SelectScrollUpButton",ZC=y.forwardRef((e,t)=>{const n=Zs(lg,e.__scopeSelect),r=M0(lg,e.__scopeSelect),[o,l]=y.useState(!1),c=rt(t,r.onScrollButtonChange);return Zt(()=>{if(n.viewport&&n.isPositioned){let d=function(){const f=h.scrollTop>0;l(f)};const h=n.viewport;return d(),h.addEventListener("scroll",d),()=>h.removeEventListener("scroll",d)}},[n.viewport,n.isPositioned]),o?i.jsx(t_,{...e,ref:c,onAutoScroll:()=>{const{viewport:d,selectedItem:h}=n;d&&h&&(d.scrollTop=d.scrollTop-h.offsetHeight)}}):null});ZC.displayName=lg;var cg="SelectScrollDownButton",e_=y.forwardRef((e,t)=>{const n=Zs(cg,e.__scopeSelect),r=M0(cg,e.__scopeSelect),[o,l]=y.useState(!1),c=rt(t,r.onScrollButtonChange);return Zt(()=>{if(n.viewport&&n.isPositioned){let d=function(){const f=h.scrollHeight-h.clientHeight,m=Math.ceil(h.scrollTop)<f;l(m)};const h=n.viewport;return d(),h.addEventListener("scroll",d),()=>h.removeEventListener("scroll",d)}},[n.viewport,n.isPositioned]),o?i.jsx(t_,{...e,ref:c,onAutoScroll:()=>{const{viewport:d,selectedItem:h}=n;d&&h&&(d.scrollTop=d.scrollTop+h.offsetHeight)}}):null});e_.displayName=cg;var t_=y.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,l=Zs("SelectScrollButton",n),c=y.useRef(null),d=fh(n),h=y.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return y.useEffect(()=>()=>h(),[h]),Zt(()=>{var m;const f=d().find(g=>g.ref.current===document.activeElement);(m=f==null?void 0:f.ref.current)==null||m.scrollIntoView({block:"nearest"})},[d]),i.jsx(Ue.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Ce(o.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(r,50))}),onPointerMove:Ce(o.onPointerMove,()=>{var f;(f=l.onItemLeave)==null||f.call(l),c.current===null&&(c.current=window.setInterval(r,50))}),onPointerLeave:Ce(o.onPointerLeave,()=>{h()})})}),a7="SelectSeparator",n_=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return i.jsx(Ue.div,{"aria-hidden":!0,...r,ref:t})});n_.displayName=a7;var ug="SelectArrow",l7=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ph(n),l=Js(ug,n),c=Zs(ug,n);return l.open&&c.position==="popper"?i.jsx(NC,{...o,...r,ref:t}):null});l7.displayName=ug;var c7="SelectBubbleInput",r_=y.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=y.useRef(null),l=rt(r,o),c=nV(t);return y.useEffect(()=>{const d=o.current;if(!d)return;const h=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(h,"value").set;if(c!==t&&m){const g=new Event("change",{bubbles:!0});m.call(d,t),d.dispatchEvent(g)}},[c,t]),i.jsx(Ue.select,{...n,style:{...SC,...n.style},ref:l,defaultValue:t})});r_.displayName=c7;function s_(e){return e===""||e===void 0}function i_(e){const t=Cr(e),n=y.useRef(""),r=y.useRef(0),o=y.useCallback(c=>{const d=n.current+c;t(d),(function h(f){n.current=f,window.clearTimeout(r.current),f!==""&&(r.current=window.setTimeout(()=>h(""),1e3))})(d)},[t]),l=y.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,l]}function o_(e,t,n){const o=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let c=u7(e,Math.max(l,0));o.length===1&&(c=c.filter(f=>f!==n));const h=c.find(f=>f.textValue.toLowerCase().startsWith(o.toLowerCase()));return h!==n?h:void 0}function u7(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var d7=MC,a_=DC,h7=LC,f7=FC,p7=VC,l_=BC,m7=qC,c_=KC,u_=QC,g7=YC,x7=JC,d_=ZC,h_=e_,f_=n_;const on=d7,an=h7,Xt=y.forwardRef(({className:e,children:t,...n},r)=>i.jsxs(a_,{ref:r,className:Oe("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",e),...n,children:[t,i.jsx(f7,{asChild:!0,children:i.jsx(Xo,{className:"h-4 w-4 opacity-50"})})]}));Xt.displayName=a_.displayName;const p_=y.forwardRef(({className:e,...t},n)=>i.jsx(d_,{ref:n,className:Oe("flex cursor-default items-center justify-center py-1",e),...t,children:i.jsx(Id,{className:"h-4 w-4"})}));p_.displayName=d_.displayName;const m_=y.forwardRef(({className:e,...t},n)=>i.jsx(h_,{ref:n,className:Oe("flex cursor-default items-center justify-center py-1",e),...t,children:i.jsx(Xo,{className:"h-4 w-4"})}));m_.displayName=h_.displayName;const Jt=y.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>i.jsx(p7,{children:i.jsxs(l_,{ref:o,className:Oe("relative z-50 max-h-96 min-w-[8rem] overflow-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]:sli
484de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",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",e),position:n,...r,children:[i.jsx(p_,{}),i.jsx(m7,{className:Oe("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),i.jsx(m_,{})]})}));Jt.displayName=l_.displayName;const v7=y.forwardRef(({className:e,...t},n)=>i.jsx(c_,{ref:n,className:Oe("px-2 py-1.5 text-sm font-semibold",e),...t}));v7.displayName=c_.displayName;const pe=y.forwardRef(({className:e,children:t,...n},r)=>i.jsxs(u_,{ref:r,className:Oe("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",e),...n,children:[i.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:i.jsx(x7,{children:i.jsx(vg,{className:"h-4 w-4"})})}),i.jsx(g7,{children:t})]}));pe.displayName=u_.displayName;const y7=y.forwardRef(({className:e,...t},n)=>i.jsx(f_,{ref:n,className:Oe("-mx-1 my-1 h-px bg-muted",e),...t}));y7.displayName=f_.displayName;function sr(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function qi(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const g_=6048e5,w7=864e5;let b7={};function mh(){return b7}function $l(e,t){var d,h,f,m;const n=mh(),r=(t==null?void 0:t.weekStartsOn)??((h=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??n.weekStartsOn??((m=(f=n.locale)==null?void 0:f.options)==null?void 0:m.weekStartsOn)??0,o=sr(e),l=o.getDay(),c=(l<r?7:0)+l-r;return o.setDate(o.getDate()-c),o.setHours(0,0,0,0),o}function Td(e){return $l(e,{weekStartsOn:1})}function x_(e){const t=sr(e),n=t.getFullYear(),r=qi(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=Td(r),l=qi(e,0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);const c=Td(l);return t.getTime()>=o.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}function B1(e){const t=sr(e);return t.setHours(0,0,0,0),t}function $1(e){const t=sr(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function j7(e,t){const n=B1(e),r=B1(t),o=+n-$1(n),l=+r-$1(r);return Math.round((o-l)/w7)}function N7(e){const t=x_(e),n=qi(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Td(n)}function S7(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function C7(e){if(!S7(e)&&typeof e!="number")return!1;const t=sr(e);return!isNaN(Number(t))}function _7(e){const t=sr(e),n=qi(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const E7={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},k7=(e,t,n)=>{let r;const o=E7[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Fo(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const T7={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},P7={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},R7={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},A7={date:Fo({formats:T7,defaultWidth:"full"}),time:Fo({formats:P7,defaultWidth:"full"}),dateTime:Fo({formats:R7,defaultWidth:"full"})},M7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},O7=(e,t,n,r)=>M7[e];function mr(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const c=e.defaultFormattingWidth||e.defaultWidth,d=n!=null&&n.width?String(n.width):c;o=e.formattingValues[d]||e.formattingValues[c]}else{const c=e.defaultWidth,d=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[d]||e.values[c]}const l=e.argumentCallback?e.argumentCallback(t):t;return o[l]}}const D7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},I7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},L7={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},F7={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
484ay","Saturday"]},V7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},B7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},$7=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},U7={ordinalNumber:$7,era:mr({values:D7,defaultWidth:"wide"}),quarter:mr({values:I7,defaultWidth:"wide",argumentCallback:e=>e-1}),month:mr({values:L7,defaultWidth:"wide"}),day:mr({values:F7,defaultWidth:"wide"}),dayPeriod:mr({values:V7,defaultWidth:"wide",formattingValues:B7,defaultFormattingWidth:"wide"})};function gr(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],l=t.match(o);if(!l)return null;const c=l[0],d=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],h=Array.isArray(d)?q7(d,g=>g.test(c)):z7(d,g=>g.test(c));let f;f=e.valueCallback?e.valueCallback(h):h,f=n.valueCallback?n.valueCallback(f):f;const m=t.slice(c.length);return{value:f,rest:m}}}function z7(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function q7(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function v_(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],l=t.match(e.parsePattern);if(!l)return null;let c=e.valueCallback?e.valueCallback(l[0]):l[0];c=n.valueCallback?n.valueCallback(c):c;const d=t.slice(o.length);return{value:c,rest:d}}}const H7=/^(\d+)(th|st|nd|rd)?/i,W7=/\d+/i,K7={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},G7={any:[/^b/i,/^(a|c)/i]},Q7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Y7={any:[/1/i,/2/i,/3/i,/4/i]},X7={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},J7={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Z7={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},eB={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},tB={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},nB={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},rB={ordinalNumber:v_({matchPattern:H7,parsePattern:W7,valueCallback:e=>parseInt(e,10)}),era:gr({matchPatterns:K7,defaultMatchWidth:"wide",parsePatterns:G7,defaultParseWidth:"any"}),quarter:gr({matchPatterns:Q7,defaultMatchWidth:"wide",parsePatterns:Y7,defaultParseWidth:"any",valueCallback:e=>e+1}),month:gr({matchPatterns:X7,defaultMatchWidth:"wide",parsePatterns:J7,defaultParseWidth:"any"}),day:gr({matchPatterns:Z7,defaultMatchWidth:"wide",parsePatterns:eB,defaultParseWidth:"any"}),dayPeriod:gr({matchPatterns:tB,defaultMatchWidth:"any",parsePatterns:nB,defaultParseWidth:"any"})},sB={code:"en-US",formatDistance:k7,formatLong:A7,formatRelative:O7,localize:U7,match:rB,options:{weekStartsOn:0,firstWeekContainsDate:1}};function iB(e){const t=sr(e);return j7(t,_7(t))+1}function oB(e){const t=sr(e),n=+Td(t)-+N7(t);return Math.round(n/g_)+1}function y_(e,t){var m,g,v,N;const n=sr(e),r=n.getFullYear(),o=mh(),l=(t==null?void 0:t.firstWeekContainsDate)??((g=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??o.firstWeekContainsDate??((N=(v=o.locale)==null?void 0:v.options)==null?void 0:N.firstWeekContainsDate)??1,c=qi(e,0);c.setFullYear(r+1,0,l),c.setHours(0,0,0,0);const d=$l(c,t),h=qi(e,0);h.setFullYear(r,0,l),h.setHours(0,0,0,0);const f=$l(h,t);return n.getTime()>=d.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function aB(e,t){var d,h,f,m;
vendor: 5,932 bytes, line 484
484const n=mh(),r=(t==null?void 0:t.firstWeekContainsDate)??((h=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??n.firstWeekContainsDate??((m=(f=n.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??1,o=y_(e,t),l=qi(e,0);return l.setFullYear(o,0,r),l.setHours(0,0,0,0),$l(l,t)}function lB(e,t){const n=sr(e),r=+$l(n,t)-+aB(n,t);return Math.round(r/g_)+1}function et(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Cs={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return et(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):et(n+1,2)},d(e,t){return et(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return et(e.getHours()%12||12,t.length)},H(e,t){return et(e.getHours(),t.length)},m(e,t){return et(e.getMinutes(),t.length)},s(e,t){return et(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return et(o,t.length)}},Po={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},U1={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Cs.y(e,t)},Y:function(e,t,n,r){const o=y_(e,r),l=o>0?o:1-o;if(t==="YY"){const c=l%100;return et(c,2)}return t==="Yo"?n.ordinalNumber(l,{unit:"year"}):et(l,t.length)},R:function(e,t){const n=x_(e);return et(n,t.length)},u:function(e,t){const n=e.getFullYear();return et(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return et(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return et(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Cs.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return et(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=lB(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):et(o,t.length)},I:function(e,t,n){const r=oB(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):et(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Cs.d(e,t)},D:function(e,t,n){const r=iB(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):et(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),l=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(l);case"ee":return et(l,2);case"eo":return n.ordinalNumber(l,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),l=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(l);case"cc":return et(l,t.length);case"co":return n.ordinalNumber(l,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return et(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Po.noon:r===0?o=Po.midnight:o=r/12>
vendor: 4,371 bytes, line 484
484=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Po.evening:r>=12?o=Po.afternoon:r>=4?o=Po.morning:o=Po.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Cs.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Cs.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):et(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):et(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Cs.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Cs.s(e,t)},S:function(e,t){return Cs.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return q1(r);case"XXXX":case"XX":return yi(r);case"XXXXX":case"XXX":default:return yi(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return q1(r);case"xxxx":case"xx":return yi(r);case"xxxxx":case"xxx":default:return yi(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+z1(r,":");case"OOOO":default:return"GMT"+yi(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+z1(r,":");case"zzzz":default:return"GMT"+yi(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return et(r,t.length)},T:function(e,t,n){const r=e.getTime();return et(r,t.length)}};function z1(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),l=r%60;return l===0?n+String(o):n+String(o)+t+et(l,2)}function q1(e,t){return e%60===0?(e>0?"-":"+")+et(Math.abs(e)/60,2):yi(e,t)}function yi(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=et(Math.trunc(r/60),2),l=et(r%60,2);return n+o+t+l}const H1=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},w_=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},cB=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return H1(e,t);let l;switch(r){case"P":l=t.dateTime({width:"short"});break;case"PP":l=t.dateTime({width:"medium"});break;case"PPP":l=t.dateTime({width:"long"});break;case"PPPP":default:l=t.dateTime({width:"full"});break}return l.replace("{{date}}",H1(r,t)).replace("{{time}}",w_(o,t))},uB={p:w_,P:cB},dB=/^D+$/,hB=/^Y+$/,fB=["D","DD","YY","YYYY"];function pB(e){return dB.test(e)}function mB(e){return hB.test(e)}function gB(e,t,n){const r=xB(e,t,n);if(console.warn(r),fB.includes(e))throw new RangeError(r)}function xB(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const vB=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,yB=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,wB=/^'([^]*?)'?$/,bB=/''/g,jB=/[a-zA-Z]/;function aa(e,t,n){var m,g,v,N,j,b,C,S;const r=mh(),o=(n==null?void 0:n.locale)??r.locale??sB,l=(n==null?void 0:n.firstWeekContainsDate)??((g=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??r.firstWeekContainsDate??((N=(v=r.locale)==null?void 0:v.options)==null?void 0:N.firstWeekContainsDate)??1,c=(n==null?void 0:n.weekStartsOn)??((b=(j=n==null?void 0:n.locale)==null?void 0:j.options)==null?void 0:b.weekStartsOn)??r.weekStartsOn??((S=(C=r.locale)==null?void 0:C.options)==null?void 0:S.weekStartsOn)??0,d=sr(e);
484if(!C7(d))throw new RangeError("Invalid time value");let h=t.match(yB).map(k=>{const _=k[0];if(_==="p"||_==="P"){const T=uB[_];return T(k,o.formatLong)}return k}).join("").match(vB).map(k=>{if(k==="''")return{isToken:!1,value:"'"};const _=k[0];if(_==="'")return{isToken:!1,value:NB(k)};if(U1[_])return{isToken:!0,value:k};if(_.match(jB))throw new RangeError("Format string contains an unescaped latin alphabet character `"+_+"`");return{isToken:!1,value:k}});o.localize.preprocessor&&(h=o.localize.preprocessor(d,h));const f={firstWeekContainsDate:l,weekStartsOn:c,locale:o};return h.map(k=>{if(!k.isToken)return k.value;const _=k.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&mB(_)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&pB(_))&&gB(_,t,String(e));const T=U1[_[0]];return T(d,_,o.localize,f)}).join("")}function NB(e){const t=e.match(wB);return t?t[1].replace(bB,"'"):e}const SB={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},CB=(e,t,n)=>{let r;const o=SB[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"dans "+r:"il y a "+r:r},_B={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},EB={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},kB={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},TB={date:Fo({formats:_B,defaultWidth:"full"}),time:Fo({formats:EB,defaultWidth:"full"}),dateTime:Fo({formats:kB,defaultWidth:"full"})},PB={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},RB=(e,t,n,r)=>PB[e],AB={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},MB={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},OB={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},DB={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},IB={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},LB=(e,t)=>{const n=Number(e),r=t==null?void 0:t.unit;if(n===0)return"0";const o=["year","week","hour","minute","second"];let l;return n===1?l=r&&o.includes(r)?"ère":"er":l="ème",n+l},FB=["MMM","MMMM"],VB={preprocessor:(e,t)=>e.getDate()===1||!t.some(r=>r.isToken&&FB.includes(r.value))?t:t.map(r=>r.isToken&&r.value==="do"?{isToken:!0,value:"d"}:r),ordinalNumber:LB,era:mr({values:AB,defaultWidth:"wide"}),quarter:mr({values:MB,defaultWidth:"wide",argumentCallback:e=>e-1}),month:mr({values:OB,defaultWidth:"wide"}),day:mr({values:DB,defaultWidth:"wide"}),dayPeriod:mr({values:IB,defaultWidth:"wide"})},BB=/^(\d+)(ième|ère|ème|er|e)?/i,$B=/\d+/i,UB={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},zB={any:[/^av/i,/^ap/i]},qB={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},HB={any:[/1/i,/2/i,/3/i,/4/i]},WB={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janv
484ier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},KB={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},GB={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},QB={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},YB={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},XB={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},JB={ordinalNumber:v_({matchPattern:BB,parsePattern:$B,valueCallback:e=>parseInt(e)}),era:gr({matchPatterns:UB,defaultMatchWidth:"wide",parsePatterns:zB,defaultParseWidth:"any"}),quarter:gr({matchPatterns:qB,defaultMatchWidth:"wide",parsePatterns:HB,defaultParseWidth:"any",valueCallback:e=>e+1}),month:gr({matchPatterns:WB,defaultMatchWidth:"wide",parsePatterns:KB,defaultParseWidth:"any"}),day:gr({matchPatterns:GB,defaultMatchWidth:"wide",parsePatterns:QB,defaultParseWidth:"any"}),dayPeriod:gr({matchPatterns:YB,defaultMatchWidth:"any",parsePatterns:XB,defaultParseWidth:"any"})},hc={code:"fr",formatDistance:CB,formatLong:TB,formatRelative:RB,localize:VB,match:JB,options:{weekStartsOn:1,firstWeekContainsDate:4}};var gh="Dialog",[b_]=Xs(gh),[ZB,ir]=b_(gh),j_=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:l,modal:c=!0}=e,d=y.useRef(null),h=y.useRef(null),[f,m]=ia({prop:r,defaultProp:o??!1,onChange:l,caller:gh});return i.jsx(ZB,{scope:t,triggerRef:d,contentRef:h,contentId:jr(),titleId:jr(),descriptionId:jr(),open:f,onOpenChange:m,onOpenToggle:y.useCallback(()=>m(g=>!g),[m]),modal:c,children:n})};
vendor: 4,563 bytes, lines 484-488
484j_.displayName=gh;var N_="DialogTrigger",e$=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ir(N_,n),l=rt(t,o.triggerRef);return i.jsx(Ue.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":I0(o.open),...r,ref:l,onClick:Ce(e.onClick,o.onOpenToggle)})});e$.displayName=N_;var O0="DialogPortal",[t$,S_]=b_(O0,{forceMount:void 0}),C_=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,l=ir(O0,t);return i.jsx(t$,{scope:t,forceMount:n,children:y.Children.map(r,c=>i.jsx(ns,{present:n||l.open,children:i.jsx(ch,{asChild:!0,container:o,children:c})}))})};C_.displayName=O0;var Pd="DialogOverlay",__=y.forwardRef((e,t)=>{const n=S_(Pd,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,l=ir(Pd,e.__scopeDialog);return l.modal?i.jsx(ns,{present:r||l.open,children:i.jsx(r$,{...o,ref:t})}):null});__.displayName=Pd;var n$=Bi("DialogOverlay.RemoveScroll"),r$=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ir(Pd,n);return i.jsx(dh,{as:n$,allowPinchZoom:!0,shards:[o.contentRef],children:i.jsx(Ue.div,{"data-state":I0(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Hi="DialogContent",E_=y.forwardRef((e,t)=>{const n=S_(Hi,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,l=ir(Hi,e.__scopeDialog);return i.jsx(ns,{present:r||l.open,children:l.modal?i.jsx(s$,{...o,ref:t}):i.jsx(i$,{...o,ref:t})})});E_.displayName=Hi;var s$=y.forwardRef((e,t)=>{const n=ir(Hi,e.__scopeDialog),r=y.useRef(null),o=rt(t,n.contentRef,r);return y.useEffect(()=>{const l=r.current;if(l)return A0(l)},[]),i.jsx(k_,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ce(e.onCloseAutoFocus,l=>{var c;l.preventDefault(),(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:Ce(e.onPointerDownOutside,l=>{const c=l.detail.originalEvent,d=c.button===0&&c.ctrlKey===!0;(c.button===2||d)&&l.preventDefault()}),onFocusOutside:Ce(e.onFocusOutside,l=>l.preventDefault())})}),i$=y.forwardRef((e,t)=>{const n=ir(Hi,e.__scopeDialog),r=y.useRef(!1),o=y.useRef(!1);return i.jsx(k_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var c,d;(c=e.onCloseAutoFocus)==null||c.call(e,l),l.defaultPrevented||(r.current||(d=n.triggerRef.current)==null||d.focus(),l.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:l=>{var h,f;(h=e.onInteractOutside)==null||h.call(e,l),l.defaultPrevented||(r.current=!0,l.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=l.target;((f=n.triggerRef.current)==null?void 0:f.contains(c))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&o.current&&l.preventDefault()}})}),k_=y.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:l,...c}=e,d=ir(Hi,n),h=y.useRef(null),f=rt(t,h);return N0(),i.jsxs(i.Fragment,{children:[i.jsx(rh,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:l,children:i.jsx(nh,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":I0(d.open),...c,ref:f,onDismiss:()=>d.onOpenChange(!1)})}),i.jsxs(i.Fragment,{children:[i.jsx(o$,{titleId:d.titleId}),i.jsx(l$,{contentRef:h,descriptionId:d.descriptionId})]})]})}),D0="DialogTitle",T_=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ir(D0,n);return i.jsx(Ue.h2,{id:o.titleId,...r,ref:t})});T_.displayName=D0;var P_="DialogDescription",R_=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ir(P_,n);return i.jsx(Ue.p,{id:o.descriptionId,...r,ref:t})});R_.displayName=P_;var A_="DialogClose",M_=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ir(A_,n);return i.jsx(Ue.button,{type:"button",...r,ref:t,onClick:Ce(e.onClick,()=>o.onOpenChange(!1))})});M_.displayName=A_;function I0(e){return e?"open":"closed"}var O_="DialogTitleWarning",[sq,D_]=U8(O_,{contentName:Hi,titleName:D0,docsSlug:"dialog"}),o$=({titleId:e})=>{const t=D_(O_),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
485
486If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
487
488For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return y.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},a$="DialogDescriptionWarning",l$=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${D_(a$).contentName}}.`;return y.useEffect(()=>{var l;const o=(l=e.current)==null?void 0:l.getAttribute("aria-describedby");
488t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},c$=j_,u$=C_,I_=__,L_=E_,F_=T_,V_=R_,d$=M_;const xh=c$,h$=u$,B_=y.forwardRef(({className:e,...t},n)=>i.jsx(I_,{ref:n,className:Oe("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",e),...t}));B_.displayName=I_.displayName;const fc=y.forwardRef(({className:e,children:t,...n},r)=>i.jsxs(h$,{children:[i.jsx(B_,{}),i.jsxs(L_,{ref:r,className:Oe("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",e),...n,children:[t,i.jsxs(d$,{className:"absolute right-4 top-4 roun
488ded-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:[i.jsx(Ki,{className:"h-4 w-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));fc.displayName=L_.displayName;const pc=({className:e,...t})=>i.jsx("div",{className:Oe("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});pc.displayName="DialogHeader";const mc=y.forwardRef(({className:e,...t},n)=>i.jsx(F_,{ref:n,className:Oe("text-lg font-semibold leading-none tracking-tight",e),...t}));mc.displayName=F_.displayName;const f$=y.forwardRef(({className:e,...t},n)=>i.jsx(V_,{ref:n,className:Oe("text-sm text-muted-foreground",e),...t}));f$.displayName=V_.displayName;const p$={immediate:"Immédiate","2_weeks":"2 semaines","1_month":"1 mois","3_months":"3 mois"};function m$({candidate:e,onClose:t,onStatusUpdate:n}){const r=Er(),o=async()=>{if(e.cv_url)try{const d=await(await fetch(e.cv_url)).blob(),h=window.URL.createObjectURL(d),f=document.createElement("a");f.href=h,f.download=`CV_${e.full_name.replace(/\s+/g,"_")}.pdf`,document.body.appendChild(f),f.click(),window.URL.revokeObjectURL(h),f.remove()}catch(c){console.error("Erreur téléchargement:",c)}},l=async()=>{if(window.confirm(`Êtes-vous sûr de vouloir supprimer ${e.full_name} ?`))try{await Ne.entities.Candidate.delete(e.id),r.invalidateQueries({queryKey:["candidates"]}),t()}catch(c){console.error("Erreur suppression:",c),alert("Erreur lors de la suppression du candidat")}};return i.jsx(i.Fragment,{children:i.jsx(xh,{open:!!e,onOpenChange:t,children:i.jsxs(fc,{className:"bg-slate-900 border-slate-800 text-white max-w-4xl max-h-[90vh] overflow-y-auto",children:[i.jsx(pc,{children:i.jsx(mc,{className:"text-2xl font-bold",children:e.full_name})}),i.jsxs("div",{className:"space-y-6 mt-4",children:[i.jsxs("div",{className:"flex items-center justify-between gap-4 flex-wrap",children:[i.jsxs("div",{className:"space-y-1",children:[i.jsx("p",{className:"text-sm text-slate-400",children:"Statut"}),i.jsxs(on,{value:e.status,onValueChange:c=>n(e.id,c),children:[i.jsx(Xt,{className:"w-48 bg-slate-950/50 border-slate-700",children:i.jsx(an,{})}),i.jsxs(Jt,{children:[i.jsx(pe,{value:"new",children:"Nouveau"}),i.jsx(pe,{value:"screening",children:"Présélection"}),i.jsx(pe,{value:"interview",children:"Entretien"}),i.jsx(pe,{value:"offer",children:"Offre"}),i.jsx(pe,{value:"hired",children:"Recruté"}),i.jsx(pe,{value:"rejected",children:"Rejeté"})]})]})]}),i.jsxs("div",{className:"flex gap-2",children:[e.cv_url&&i.jsxs(te,{onClick:o,className:"bg-green-500/10 text-green-500 hover:bg-green-500/20",children:[i.jsx(yg,{className:"w-4 h-4 mr-2"}),"Télécharger CV"]}),i.jsxs(te,{onClick:l,className:"bg-red-500/10 text-red-500 hover:bg-red-500/20",children:[i.jsx(Wi,{className:"w-4 h-4 mr-2"}),"Supprimer"]})]})]}),i.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center gap-2 text-slate-400",children:[i.jsx(Qs,{className:"w-4 h-4"}),i.jsx("span",{className:"text-sm",children:"Email"})]}),i.jsx("p",{className:"text-white",children:e.email})]}),e.phone&&i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center gap-2 text-slate-400",children:[i.jsx(qs,{className:"w-4 h-4"}),i.jsx("span",{className:"text-sm",children:"Téléphone"})]}),i.jsx("p",{className:"text-white",children:e.phone})]})]}),i.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.position&&i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center gap-2 text-slate-400",children:[i.jsx(Tl,{className:"w-4 h-4"}),i.jsx("span",{className:"text-sm",children:"Poste recherché"})]}),i.jsx("p",{className:"text-white",children:e.position})]}),e.experience_years&&i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center gap-2 text-slate-400",children:[i.jsx(Dd,{className:"w-4 h-4"}),i.jsx("span",{className:"text-sm",children:"Expérience"})]}),i.jsxs("p",{className:"text-white",children:[e.experience_years," ans"]})]}),e.salary_expectation&&i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center gap-2 text-slate-400",children:[i.jsx(Ld,{className:"w-4 h-4"}),i.jsx("span",{className:"text-sm",children:"Prétentions salariales"})]}),i.jsxs("p",{className:"text-white",children:[e.salary_expectation.toLocaleStr
488ing("fr-FR")," €/an"]})]}),e.availability&&i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center gap-2 text-slate-400",children:[i.jsx(Ql,{className:"w-4 h-4"}),i.jsx("span",{className:"text-sm",children:"Disponibilité"})]}),i.jsx("p",{className:"text-white",children:p$[e.availability]})]})]}),e.skills&&e.skills.length>0&&i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center gap-2 text-slate-400",children:[i.jsx(CR,{className:"w-4 h-4"}),i.jsx("span",{className:"text-sm",children:"Compétences"})]}),i.jsx("div",{className:"flex flex-wrap gap-2",children:e.skills.map((c,d)=>i.jsx(Vn,{className:"bg-amber-500/10 text-amber-400 border-amber-500/20",children:c},d))})]}),e.notes&&i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center gap-2 text-slate-400",children:[i.jsx(Tl,{className:"w-4 h-4"}),i.jsx("span",{className:"text-sm",children:"Notes"})]}),i.jsx("p",{className:"text-white bg-slate-950/50 rounded-lg p-4 border border-slate-800",children:e.notes})]}),i.jsxs("div",{className:"pt-4 border-t border-slate-800 text-sm text-slate-500",children:[i.jsxs("p",{children:["Créé le ",aa(new Date(e.created_date),"dd MMMM yyyy à HH:mm",{locale:hc})]}),e.source&&i.jsxs("p",{children:["Source: ",e.source]})]})]})]})})})}const g$={new:"bg-blue-500/10 text-blue-400 border-blue-500/20",screening:"bg-purple-500/10 text-purple-400 border-purple-500/20",interview:"bg-amber-500/10 text-amber-400 border-amber-500/20",offer:"bg-green-500/10 text-green-400 border-green-500/20",hired:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",rejected:"bg-red-500/10 text-red-400 border-red-500/20"},x$={new:"Nouveau",screening:"Présélection",interview:"Entretien",offer:"Offre",hired:"Recruté",rejected:"Rejeté"};function v$({candidates:e,loading:t}){const[n,r]=y.useState(""),[o,l]=y.useState(null),[c,d]=y.useState("all"),[h,f]=y.useState("all"),[m,g]=y.useState("all"),[v,N]=y.useState("desc"),[j,b]=y.useState(!1),C=Er(),S=e.filter(P=>{var ne,ce,se,ue;const L=((ne=P.full_name)==null?void 0:ne.toLowerCase().includes(n.toLowerCase()))||((ce=P.email)==null?void 0:ce.toLowerCase().includes(n.toLowerCase()))||((se=P.position)==null?void 0:se.toLowerCase().includes(n.toLowerCase())),M=c==="all"||c==="18-25"&&P.age>=18&&P.age<=25||c==="26-35"&&P.age>=26&&P.age<=35||c==="36-45"&&P.age>=36&&P.age<=45||c==="46+"&&P.age>=46,G=h==="all"||((ue=P.position)==null?void 0:ue.toLowerCase().includes(h.toLowerCase())),H=m==="all"||m==="yes"&&P.has_children==="oui"||m==="no"&&P.has_children==="non";return L&&M&&G&&H}).sort((P,L)=>{const M=new Date(P.created_date).getTime(),G=new Date(L.created_date).getTime();return v==="desc"?G-M:M-G}),k=[...new Set(e.map(P=>P.position).filter(Boolean))],_=async P=>{if(P.cv_url)try{const M=await(await fetch(P.cv_url)).blob(),G=window.URL.createObjectURL(M),H=document.createElement("a");H.href=G,H.download=`CV_${P.full_name.replace(/\s+/g,"_")}.pdf`,document.body.appendChild(H),H.click(),window.URL.revokeObjectURL(G),H.remove()}catch(L){console.error("Erreur téléchargement:",L)}},T=async(P,L)=>{await Ne.entities.Candidate.update(P,{status:L}),C.invalidateQueries({queryKey:["candidates"]})},R=async(P,L)=>{if(L.stopPropagation(),window.confirm(`Êtes-vous sûr de vouloir supprimer ${P.full_name} ?`))try{await Ne.entities.Candidate.delete(P.id),C.invalidateQueries({queryKey:["candidates"]})}catch(M){console.error("Erreur suppression:",M)}};return t?i.jsxs(ct,{className:"bg-slate-900/80 border-slate-800 backdrop-blur-sm p-6",children:[i.jsx(er,{className:"h-10 w-64 bg-slate-800 mb-6"}),i.jsx("div",{className:"space-y-4",children:Array(5).fill(0).map((P,L)=>i.jsx(er,{className:"h-16 w-full bg-slate-800"},L))})]}):i.jsxs(i.Fragment,{children:[i.jsxs(ct,{className:"bg-slate-900/80 border-slate-800 backdrop-blur-sm overflow-hidden",children:[i.jsx("div",{className:"p-6 border-b border-slate-800",children:i.jsxs("div",{className:"flex flex-col gap-4",children:[i.jsxs("div",{className:"flex flex-col md:flex-row gap-4 items-center justify-between",children:[i.jsxs("h2",{className:"text-2xl font-bold text-white",children:["Candidats (",S.length,")"]}),i.jsxs("div",{className:"flex gap-3 w-full md:w-auto",children:[i.jsxs("div",{className:"relative flex-1 md:w-96",children:[i.jsx(Yr,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-500"}),i.jsx(qe,{placeholder:"Rechercher un candidat...",value:n,onChange:P=>r(P.target.value),className:"pl-10 bg-slate-950/50 border-slate-700 text-white"})]}),i.jsxs(te,{onClick:()=>b(!j),className:"bg-red-500 hover:bg-red-600 text-white border-0",children:[i.jsx(UP,{className:"w-4 h-4 mr-2"}),"Filtres"]}),i.jsx(te,{onClick:()=>N(v==="desc"?"asc":"desc"),className:"bg-slate-700 hover:bg-slate-600 text-white border-0",title:v==="desc"?"Du plus récent au plus ancien":"Du plus ancien au plus récent",children:v==="desc"?i.jsx(Xo,{className:"w-4 h-4"}):i.jsx(Id,{className:"w-4 h-4"})})]})]}),j&&i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 ga
488p-3 pt-3 border-t border-slate-800",children:[i.jsxs(on,{value:c,onValueChange:d,children:[i.jsx(Xt,{className:"bg-slate-950/50 border-slate-700 text-white",children:i.jsx(an,{placeholder:"Âge"})}),i.jsxs(Jt,{children:[i.jsx(pe,{value:"all",children:"Tous les âges"}),i.jsx(pe,{value:"18-25",children:"18-25 ans"}),i.jsx(pe,{value:"26-35",children:"26-35 ans"}),i.jsx(pe,{value:"36-45",children:"36-45 ans"}),i.jsx(pe,{value:"46+",children:"46+ ans"})]})]}),i.jsxs(on,{value:h,onValueChange:f,children:[i.jsx(Xt,{className:"bg-slate-950/50 border-slate-700 text-white",children:i.jsx(an,{placeholder:"Poste"})}),i.jsxs(Jt,{children:[i.jsx(pe,{value:"all",children:"Tous les postes"}),k.map(P=>i.jsx(pe,{value:P,children:P},P))]})]}),i.jsxs(on,{value:m,onValueChange:g,children:[i.jsx(Xt,{className:"bg-slate-950/50 border-slate-700 text-white",children:i.jsx(an,{placeholder:"Enfants"})}),i.jsxs(Jt,{children:[i.jsx(pe,{value:"all",children:"Tous"}),i.jsx(pe,{value:"yes",children:"Avec enfants"}),i.jsx(pe,{value:"no",children:"Sans enfants"})]})]})]})]})}),i.jsx("div",{className:"overflow-x-auto",children:i.jsxs(lc,{children:[i.jsx(cc,{children:i.jsxs(Jr,{className:"border-slate-800 hover:bg-slate-800/50",children:[i.jsx(Ye,{className:"text-slate-400",children:"Nom"}),i.jsx(Ye,{className:"text-slate-400",children:"Contact"}),i.jsx(Ye,{className:"text-slate-400",children:"Poste"}),i.jsx(Ye,{className:"text-slate-400",children:"Âge / Situation"}),i.jsx(Ye,{className:"text-slate-400",children:"Disponibilité"}),i.jsx(Ye,{className:"text-slate-400",children:"Statut"}),i.jsx(Ye,{className:"text-slate-400",children:"Date"}),i.jsx(Ye,{className:"text-slate-400",children:"Actions"})]})}),i.jsx(uc,{children:S.map(P=>i.jsxs(Jr,{className:"border-slate-800 hover:bg-slate-800/30 cursor-pointer transition-colors",onClick:()=>l(P),children:[i.jsx(Xe,{className:"font-medium text-white",children:P.full_name}),i.jsx(Xe,{children:i.jsxs("div",{className:"space-y-1",children:[i.jsxs("div",{className:"flex items-center gap-2 text-sm text-slate-400",children:[i.jsx(Qs,{className:"w-3 h-3"}),P.email]}),P.phone&&i.jsxs("div",{className:"flex items-center gap-2 text-sm text-slate-400",children:[i.jsx(qs,{className:"w-3 h-3"}),P.phone]})]})}),i.jsx(Xe,{className:"text-slate-300",children:P.position||"-"}),i.jsxs(Xe,{className:"text-sm text-slate-400",children:[i.jsx("div",{children:P.age?`${P.age} ans`:"-"}),i.jsx("div",{className:"text-xs text-slate-500",children:P.situation||"-"})]}),i.jsx(Xe,{className:"text-sm text-slate-300",children:P.availability?P.availability.replace(/_/g," "):"-"}),i.jsx(Xe,{children:i.jsx(Vn,{className:`${g$[P.status]} border`,children:x$[P.status]})}),i.jsx(Xe,{className:"text-slate-400 text-sm",children:aa(new Date(P.created_date),"dd MMM yyyy",{locale:hc})}),i.jsx(Xe,{children:i.jsxs("div",{className:"flex gap-2",children:[i.jsx(te,{size:"sm",variant:"ghost",className:"text-amber-500 hover:text-amber-400 hover:bg-amber-500/10",onClick:L=>{L.stopPropagation(),l(P)},children:i.jsx(Fd,{className:"w-4 h-4"})}),P.cv_url&&i.jsx(te,{size:"sm",variant:"ghost",className:"text-green-500 hover:text-green-400 hover:bg-green-500/10",onClick:L=>{L.stopPropagation(),_(P)},children:i.jsx(yg,{className:"w-4 h-4"})}),i.jsx(te,{size:"sm",variant:"ghost",className:"text-red-500 hover:text-red-400 hover:bg-red-500/10",onClick:L=>R(P,L),children:i.jsx(Wi,{className:"w-4 h-4"})})]})})]},P.id))})]})}),S.length===0&&i.jsx("div",{className:"text-center py-12 text-slate-500",children:"Aucun candidat trouvé"})]}),o&&i.jsx(m$,{candidate:o,onClose:()=>l(null),onStatusUpdate:T})]})}var dg=["Enter"," "],y$=["ArrowDown","PageUp","Home"],$_=["ArrowUp","PageDown","End"],w$=[...y$,...$_],b$={ltr:[...dg,"ArrowRight"],rtl:[...dg,"ArrowLeft"]},j$={ltr:["ArrowLeft"],rtl:["ArrowRight"]},gc="Menu",[Ul,N$,S$]=b0(gc),[Ji,U_]=Xs(gc,[S$,lh,eh]),vh=lh(),z_=eh(),[C$,Zi]=Ji(gc),[_$,xc]=Ji(gc),q_=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:l,modal:c=!0}=e,d=vh(t),[h,f]=y.useState(null),m=y.useRef(!1),g=Cr(l),v=Zd(o);return y.useEffect(()=>{const N=()=>{m.current=!0,document.addEventListener("pointerdown",j,{capture:!0,once:!0}),document.addEventListener("pointermove",j,{capture:!0,once:!0})},j=()=>m.current=!1;return document.addEventListener("keydown",N,{capture:!0}),()=>{document.removeEventListener("keydown",N,{capture:!0}),document.removeEventListener("pointerdown",j,{capture:!0}),document.removeEventListener("pointermove",j,{capture:!0})}},[]),i.jsx(wC,{...d,children:i.jsx(C$,{scope:t,open:n,onOpenChange:g,content:h,onContentChange:f,children:i.jsx(_$,{scope:t,onClose:y.useCallback(()=>g(!1),[g]),isUsingKeyboardRef:m,dir:v,modal:c,children:r})})})};q_.displayName=gc;var E$="MenuAnchor",L0=y.forwardRef((e,t)=>
vendor: 12,920 bytes, line 488
488{const{__scopeMenu:n,...r}=e,o=vh(n);return i.jsx(bC,{...o,...r,ref:t})});L0.displayName=E$;var F0="MenuPortal",[k$,H_]=Ji(F0,{forceMount:void 0}),W_=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,l=Zi(F0,t);return i.jsx(k$,{scope:t,forceMount:n,children:i.jsx(ns,{present:n||l.open,children:i.jsx(ch,{asChild:!0,container:o,children:r})})})};W_.displayName=F0;var $n="MenuContent",[T$,V0]=Ji($n),K_=y.forwardRef((e,t)=>{const n=H_($n,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,l=Zi($n,e.__scopeMenu),c=xc($n,e.__scopeMenu);return i.jsx(Ul.Provider,{scope:e.__scopeMenu,children:i.jsx(ns,{present:r||l.open,children:i.jsx(Ul.Slot,{scope:e.__scopeMenu,children:c.modal?i.jsx(P$,{...o,ref:t}):i.jsx(R$,{...o,ref:t})})})})}),P$=y.forwardRef((e,t)=>{const n=Zi($n,e.__scopeMenu),r=y.useRef(null),o=rt(t,r);return y.useEffect(()=>{const l=r.current;if(l)return A0(l)},[]),i.jsx(B0,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Ce(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),R$=y.forwardRef((e,t)=>{const n=Zi($n,e.__scopeMenu);return i.jsx(B0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),A$=Bi("MenuContent.ScrollLock"),B0=y.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:l,onCloseAutoFocus:c,disableOutsidePointerEvents:d,onEntryFocus:h,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:v,onDismiss:N,disableOutsideScroll:j,...b}=e,C=Zi($n,n),S=xc($n,n),k=vh(n),_=z_(n),T=N$(n),[R,P]=y.useState(null),L=y.useRef(null),M=rt(t,L,C.onContentChange),G=y.useRef(0),H=y.useRef(""),ne=y.useRef(0),ce=y.useRef(null),se=y.useRef("right"),ue=y.useRef(0),Te=j?dh:y.Fragment,oe=j?{as:A$,allowPinchZoom:!0}:void 0,re=K=>{var Q,me;const Y=H.current+K,D=T().filter(Se=>!Se.disabled),W=document.activeElement,de=(Q=D.find(Se=>Se.ref.current===W))==null?void 0:Q.textValue,he=D.map(Se=>Se.textValue),Pe=q$(he,Y,de),ie=(me=D.find(Se=>Se.textValue===Pe))==null?void 0:me.ref.current;(function Se(Re){H.current=Re,window.clearTimeout(G.current),Re!==""&&(G.current=window.setTimeout(()=>Se(""),1e3))})(Y),ie&&setTimeout(()=>ie.focus())};y.useEffect(()=>()=>window.clearTimeout(G.current),[]),N0();const B=y.useCallback(K=>{var D,W;return se.current===((D=ce.current)==null?void 0:D.side)&&W$(K,(W=ce.current)==null?void 0:W.area)},[]);return i.jsx(T$,{scope:n,searchRef:H,onItemEnter:y.useCallback(K=>{B(K)&&K.preventDefault()},[B]),onItemLeave:y.useCallback(K=>{var Y;B(K)||((Y=L.current)==null||Y.focus(),P(null))},[B]),onTriggerLeave:y.useCallback(K=>{B(K)&&K.preventDefault()},[B]),pointerGraceTimerRef:ne,onPointerGraceIntentChange:y.useCallback(K=>{ce.current=K},[]),children:i.jsx(Te,{...oe,children:i.jsx(rh,{asChild:!0,trapped:o,onMountAutoFocus:Ce(l,K=>{var Y;K.preventDefault(),(Y=L.current)==null||Y.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:i.jsx(nh,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:v,onDismiss:N,children:i.jsx(M2,{asChild:!0,..._,dir:S.dir,orientation:"vertical",loop:r,currentTabStopId:R,onCurrentTabStopIdChange:P,onEntryFocus:Ce(h,K=>{S.isUsingKeyboardRef.current||K.preventDefault()}),preventScrollOnEntryFocus:!0,children:i.jsx(jC,{role:"menu","aria-orientation":"vertical","data-state":cE(C.open),"data-radix-menu-content":"",dir:S.dir,...k,...b,ref:M,style:{outline:"none",...b.style},onKeyDown:Ce(b.onKeyDown,K=>{const D=K.target.closest("[data-radix-menu-content]")===K.currentTarget,W=K.ctrlKey||K.altKey||K.metaKey,de=K.key.length===1;D&&(K.key==="Tab"&&K.preventDefault(),!W&&de&&re(K.key));const he=L.current;if(K.target!==he||!w$.includes(K.key))return;K.preventDefault();const ie=T().filter(Q=>!Q.disabled).map(Q=>Q.ref.current);$_.includes(K.key)&&ie.reverse(),U$(ie)}),onBlur:Ce(e.onBlur,K=>{K.currentTarget.contains(K.target)||(window.clearTimeout(G.current),H.current="")}),onPointerMove:Ce(e.onPointerMove,zl(K=>{const Y=K.target,D=ue.current!==K.clientX;if(K.currentTarget.contains(Y)&&D){const W=K.clientX>ue.current?"right":"left";se.current=W,ue.current=K.clientX}}))})})})})})})});K_.displayName=$n;var M$="MenuGroup",$0=y.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(Ue.div,{role:"group",...r,ref:t})});$0.displayName=M$;var O$="MenuLabel",G_=y.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(Ue.div,{...r,ref:t})});G_.displayName=O$;var Rd="MenuItem",W1="menu.itemSelect",yh=y.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,l=y.useRef(null),c=xc(Rd,e.__scopeMenu),d=V0(Rd,e.__scopeMenu),h=rt(t,l),f=y.useRef(!1),m=()=>{const g=l.current;if(!n&&g){const v=new CustomEvent(W1,{bubbles:!0,cancelable:!0});g.addEventListener(W1,N=>r==null?void 0:r(N),{once:!0}),E2(g,v),v.defaultPrevented?f.current=!1:c.onClose()}};return i.jsx(Q_,{...o,ref:h,disabled:n,onClick:Ce(e.onClick,m),onPointerDown:g=>{var v;(v=e.onPointerDown)==null||v.call(e,g),f.current=!0},onPointerUp:Ce(e.onPointerUp,g=>{var v;f.current||(v=g.currentTarget)==null||v.click()}),onKeyDown:Ce(e.onKeyDown,g=>{const v=d.searchRef.current!=="";n||v&&g.key===" "||dg.includes(g.key)&&(g.currentTarget.click(),g.preventDefault())})})});yh.displayName=Rd;var Q_=y.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...l}=e,c=V0(Rd,n),d=z_(n),h=y.useRef(null),f=rt(t,h),[m,g]=y.useState(!1),[v,N]=y.useState("");return y.useEffect(()=>{const j=h.current;j&&N((j.textContent??"").trim())},[l.children]),i.jsx(Ul.ItemSlot,{scope:n,disabled:r,textValue:o??v,children:i.jsx(O2,{asChild:!0,...d,focusable:!r,children:i.jsx(Ue.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...l,ref:f,onPointerMove:Ce(e.onPointerMove,zl(j=>{r?c.onItemLeave(j):(c.onItemEnter(j),j.defaultPrevented||j.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Ce(e.onPointerLeave,zl(j=>c.onItemLeave(j))),onFocus:Ce(e.onFocus,()=>g(!0)),onBlur:Ce(e.onBlur,()=>g(!1))})})})}),D$="MenuCheckboxItem",Y_=y.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return i.jsx(tE,{scope:e.__scopeMenu,checked:n,children:i.jsx(yh,{role:"menuitemcheckbox","aria-checked":Ad(n)?"mixed":n,...o,ref:t,"data-state":z0(n),onSelect:Ce(o.onSelect,()=>r==null?void 0:r(Ad(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Y_.displayName=D$;var X_="MenuRadioGroup",[I$,L$]=Ji(X_,{value:void 0,onValueChange:()=>{}}),J_=y.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,l=Cr(r);return i.jsx(I$,{scope:e.__scopeMenu,value:n,onValueChange:l,children:i.jsx($0,{...o,ref:t})})});J_.displayName=X_;var Z_="MenuRadioItem",eE=y.forwardRef((e,t)=>{const{value:n,...r}=e,o=L$(Z_,e.__scopeMenu),l=n===o.value;return i.jsx(tE,{scope:e.__scopeMenu,checked:l,children:i.jsx(yh,{role:"menuitemradio","aria-checked":l,...r,ref:t,"data-state":z0(l),onSelect:Ce(r.onSelect,()=>{var c;return(c=o.onValueChange)==null?void 0:c.call(o,n)},{checkForDefaultPrevented:!1})})})});eE.displayName=Z_;var U0="MenuItemIndicator",[tE,F$]=Ji(U0,{checked:!1}),nE=y.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,l=F$(U0,n);return i.jsx(ns,{present:r||Ad(l.checked)||l.checked===!0,children:i.jsx(Ue.span,{...o,ref:t,"data-state":z0(l.checked)})})});nE.displayName=U0;var V$="MenuSeparator",rE=y.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(Ue.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});rE.displayName=V$;var B$="MenuArrow",sE=y.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=vh(n);return i.jsx(NC,{...o,...r,ref:t})});sE.displayName=B$;var $$="MenuSub",[iq,iE]=Ji($$),wl="MenuSubTrigger",oE=y.forwardRef((e,t)=>{const n=Zi(wl,e.__scopeMenu),r=xc(wl,e.__scopeMenu),o=iE(wl,e.__scopeMenu),l=V0(wl,e.__scopeMenu),c=y.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:h}=l,f={__scopeMenu:e.__scopeMenu},m=y.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return y.useEffect(()=>m,[m]),y.useEffect(()=>{const g=d.current;return()=>{window.clearTimeout(g),h(null)}},[d,h]),i.jsx(L0,{asChild:!0,...f,children:i.jsx(Q_,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":cE(n.open),...e,ref:Wd(t,o.onTriggerChange),onClick:g=>{var v;(v=e.onClick)==null||v.call(e,g),!(e.disabled||g.defaultPrevented)&&(g.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Ce(e.onPointerMove,zl(g=>{l.onItemEnter(g),!g.defaultPrevented&&!e.disabled&&!n.open&&!c.current&&(l.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),m()},100))})),onPointerLeave:Ce(e.onPointerLeave,zl(g=>{var N,j;m();const v=(N=n.content)==null?void 0:N.getBoundingClientRect();if(v){const b=(j=n.content)==null?void 0:j.dataset.side,C=b==="right",S=C?-5:5,k=v[C?"left":"right"],_=v[C?"right":"left"];l.onPointerGraceIntentChange({area:[{x:g.clientX+S,y:g.clientY},{x:k,y:v.top},{x:_,y:v.top},{x:_,y:v.bottom},{x:k,y:v.bottom}],side:b}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(g),g.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:Ce(e.onKeyDown,g=>{var N;const v=l.searchRef.current!=="";e.disabled||v&&g.key===" "||b$[r.dir].includes(g.key)&&(n.onOpenChange(!0),(N=n.content)==null||N.focus(),g.preventDefault())})})})});oE.displayName=wl;var aE="MenuSubContent",lE=y.forwardRef((e,t)=>{const n=H_($n,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,l=Zi($n,e.__scopeMenu),c=xc($n,e.__scopeMenu),d=iE(aE,e.__scopeMenu),h=y.useRef(null),f=rt(t,h);return i.jsx(Ul.Provider,{scope:e.__scopeMenu,children:i.jsx(ns,{present:r||l.open,children:i.jsx(Ul.Slot,{scope:e.__scopeMenu,children:i.jsx(B0,{id:d.contentId,"aria-labelledby":d.triggerId,...o,ref:f,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{var g;c.isUsingKeyboardRef.current&&((g=h.current)==null||g.focus()),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:Ce(e.onFocusOutside,m=>{m.target!==d.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:Ce(e.onEscapeKeyDown,m=>{c.onClose(),m.preventDefault()}),onKeyDown:Ce(e.onKeyDown,m=>{var N;const g=m.currentTarget.contains(m.target),v=j$[c.dir].includes(m.key);g&&v&&(l.onOpenChange(!1),(N=d.trigger)==null||N.focus(),m.preventDefault())})})})})})});lE.displayName=aE;function cE(e){return e?"open":"closed"}function Ad(e){return e==="indeterminate"}function z0(e){return Ad(e)?"indeterminate":e?"checked":"unchecked"}function U$(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function z$(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function q$(e,t,n){const o=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let c=z$(e,Math.max(l,0));o.length===1&&(c=c.filter(f=>f!==n));const h=c.find(f=>f.toLowerCase().startsWith(o.toLowerCase()));return h!==n?h:void 0}function H$(e,t){const{x:n,y:r}=e;let o=!1;for(let l=0,c=t.length-1;l<t.length;c=l++){const d=t[l],h=t[c],f=d.x,m=d.y,g=h.x,v=h.y;m>r!=v>r&&n<(g-f)*(r-m)/(v-m)+f&&(o=!o)}return o}function W$(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return H$(n,t)}function zl(e){return t=>t.pointerType==="mouse"?e(t):void 0}var K$=q_,G$=L0,Q$=W_,Y$=K_,X$=$0,J$=G_,Z$=yh,eU=Y_,tU=J_,nU=eE,rU=nE,sU=rE,iU=sE,oU=oE,aU=lE,wh="DropdownMenu",[lU]=Xs(wh,[U_]),ln=U_(),[cU,uE]=lU(wh),dE=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:l,onOpenChange:c,modal:d=!0}=e,h=ln(t),f=y.useRef(null),[m,g]=ia({prop:o,defaultProp:l??!1,onChange:c,caller:wh});return i.jsx(cU,{scope:t,triggerId:jr(),triggerRef:f,contentId:jr(),open:m,onOpenChange:g,onOpenToggle:y.useCallback(()=>g(v=>!v),[g]),modal:d,children:i.jsx(K$,{...h,open:m,onOpenChange:g,dir:r,modal:d,children:n})})};dE.displayName=wh;var hE="DropdownMenuTrigger",fE=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,l=uE(hE,n),c=ln(n);return i.jsx(G$,{asChild:!0,...c,children:i.jsx(Ue.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Wd(t,l.triggerRef),onPointerDown:Ce(e.onPointerDown,d=>{!r&&d.button===0&&d.ctrlKey===!1&&(l.onOpenToggle(),l.open||d.preventDefault())}),onKeyDown:Ce(e.onKeyDown,d=>{r||(["Enter"," "].includes(d.key)&&l.onOpenToggle(),d.key==="ArrowDown"&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(d.key)&&d.preventDefault())})})})});fE.displayName=hE;var uU="DropdownMenuPortal",pE=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ln(t);return i.jsx(Q$,{...r,...n})};pE.displayName=uU;var mE="DropdownMenuContent",gE=y.forwardRef((e,t)=>
488{const{__scopeDropdownMenu:n,...r}=e,o=uE(mE,n),l=ln(n),c=y.useRef(!1);return i.jsx(Y$,{id:o.contentId,"aria-labelledby":o.triggerId,...l,...r,ref:t,onCloseAutoFocus:Ce(e.onCloseAutoFocus,d=>{var h;c.current||(h=o.triggerRef.current)==null||h.focus(),c.current=!1,d.preventDefault()}),onInteractOutside:Ce(e.onInteractOutside,d=>{const h=d.detail.originalEvent,f=h.button===0&&h.ctrlKey===!0,m=h.button===2||f;(!o.modal||m)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});gE.displayName=mE;var dU="DropdownMenuGroup",hU=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ln(n);return i.jsx(X$,{...o,...r,ref:t})});hU.displayName=dU;var fU="DropdownMenuLabel",xE=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ln(n);return i.jsx(J$,{...o,...r,ref:t})});xE.displayName=fU;var pU="DropdownMenuItem",vE=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ln(n);return i.jsx(Z$,{...o,...r,ref:t})});vE.displayName=pU;var mU="DropdownMenuCheckboxItem",yE=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ln(n);return i.jsx(eU,{...o,...r,ref:t})});yE.displayName=mU;var gU="DropdownMenuRadioGroup",xU=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ln(n);return i.jsx(tU,{...o,...r,ref:t})});xU.displayName=gU;var vU="DropdownMenuRadioItem",wE=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ln(n);return i.jsx(nU,{...o,...r,ref:t})});wE.displayName=vU;var yU="DropdownMenuItemIndicator",bE=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ln(n);return i.jsx(rU,{...o,...r,ref:t})});bE.displayName=yU;var wU="DropdownMenuSeparator",jE=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ln(n);return i.jsx(sU,{...o,...r,ref:t})});jE.displayName=wU;var bU="DropdownMenuArrow",jU=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ln(n);return i.jsx(iU,{...o,...r,ref:t})});jU.displayName=bU;var NU="DropdownMenuSubTrigger",NE=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ln(n);return i.jsx(oU,{...o,...r,ref:t})});NE.displayName=NU;var SU="DropdownMenuSubContent",SE=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ln(n);return i.jsx(aU,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});SE.displayName=SU;var CU=dE,_U=fE,EU=pE,CE=gE,_E=xE,EE=vE,kE=yE,TE=wE,PE=bE,RE=jE,AE=NE,ME=SE;const kU=CU,TU=_U,PU=y.forwardRef(({className:e,inset:t,children:n,...r},o)=>i.jsxs(AE,{ref:o,className:Oe("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[n,i.jsx(gj,{className:"ml-auto"})]}));PU.displayName=AE.displayName;const RU=y.forwardRef(({className:e,...t},n)=>i.jsx(ME,{ref:n,className:Oe("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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",e),...t}));RU.displayName=ME.displayName;const OE=y.forwardRef(({className:e,sideOffset:t=4,...n},r)=>i.jsx(EU,{children:i.jsx(CE,{ref:r,sideOffset:t,className:Oe("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 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]:sli
488de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));OE.displayName=CE.displayName;const ad=y.forwardRef(({className:e,inset:t,...n},r)=>i.jsx(EE,{ref:r,className:Oe("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...n}));ad.displayName=EE.displayName;const AU=y.forwardRef(({className:e,children:t,checked:n,...r},o)=>i.jsxs(kE,{ref:o,className:Oe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[i.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:i.jsx(PE,{children:i.jsx(vg,{className:"h-4 w-4"})})}),t]}));AU.displayName=kE.displayName;const MU=y.forwardRef(({className:e,children:t,...n},r)=>i.jsxs(TE,{ref:r,className:Oe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[i.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:i.jsx(PE,{children:i.jsx(TP,{className:"h-2 w-2 fill-current"})})}),t]}));MU.displayName=TE.displayName;const DE=y.forwardRef(({className:e,inset:t,...n},r)=>i.jsx(_E,{ref:r,className:Oe("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));DE.displayName=_E.displayName;const IE=y.forwardRef(({className:e,...t},n)=>i.jsx(RE,{ref:n,className:Oe("-mx-1 my-1 h-px bg-muted",e),...t}));IE.displayName=RE.displayName;const Gt=y.forwardRef(({className:e,...t},n)=>i.jsx("textarea",{className:Oe("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm 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",e),ref:n,...t}));Gt.displayName="Textarea";var OU="Label",LE=y.forwardRef((e,t)=>i.jsx(Ue.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));LE.displayName=OU;var FE=LE;const DU=Md("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Qe=y.forwardRef(({className:e,...t},n)=>i.jsx(FE,{ref:n,className:Oe(DU(),e),...t}));Qe.displayName=FE.displayName;function IU(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}Array(12).fill(0);let hg=1;class LU{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,l=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:hg++,c=this.toasts.find(h=>h.id===l),d=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(l)&&this.dismissedToasts.delete(l),c?this.toasts=this.toasts.map(h=>h.id===l?(this.publish({...h,...t,id:l,title:r}),{...h,...t,id:l,dismissible:d,title:r}):h):this.addToast({title:r,...o,dismissible:d,id:l}),l},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let l=r!==void 0,c;const d=o.then(async f=>{if(c=["resolve",f],it.isValidElement(f))l=!1,this.create({id:r,type:"default",message:f});else if(VU(f)&&!f.ok){l=!1;const g=typeof n.error=="function"?await n.error(`HTTP error! status: ${f.status}`):n.error,v=typeof n.description=="function"?await n.description(`HTTP error! status: ${f.status}`):n.description,j=typeof g=="object"&&!it.isValidElement(g)?g:{message:g};this.create({id:r,type:"error",description:v,...j})}else if(f instanceof Error){l=!1;const g=typeof n.error=="function"?await n.error(f):n.error,v=typeof n.description=="function"?await n.description(f):n.description,j=typeof g=="object"&&!it.isValidElement(g)?g:{message:g};this.create({id:r,type:"error",description:v,...j})}else if(n.success!==void 0){l=!1;const g=typeof n.success=="function"?await n.success(f):n.success,v=typeof n.description=="function"?await n.description(f):n.description,j=typeof g=="object"&&!it.isValidElement(g)?g:{message:g};this.create({id:r,type:"success",description:v,...j})}}).catch(async f=>{if(c=["reject",f],n.error!==void 0){l=!1;const m=typeof n.error=="function"?await n.error(f):n.error,g=typeof n.description=="function"?await n.description(f):n.description,N=typeof m=="object"&&!it.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:g,...N})}}).finally(()=>{l&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),h=()=>new Promise((f,m)=>d.then(()=>c[0]==="reject"?m(c[1]):f(c[1])).catch(m));return typeof r!="string"&&typeof r!="number"?{unwrap:h}:Object.assign(r,{unwrap:h})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||hg++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Dn=new LU,FU=(e,t)=>{const n=(t==null?void 0:t.id)||hg++;return Dn.addToast({title:e,...t,id:n}),n},VU=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",BU=FU,$U=()=>Dn.toasts,UU=()=>Dn.getActiveToasts(),tt=Object.assign(BU,{success:Dn.success,info:Dn.info,warning:Dn.warning,error:Dn.error,custom:Dn.custom,message:Dn.message,promise:Dn.promise,dismiss:Dn.dismiss,loading:Dn.loading},{getHistory:$U,getToasts:UU}
488);IU
vendor: 14,864 bytes, line 488
488("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
488const K1=[{name:"Construction & Bâtiment",images:[{url:"https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=800",label:"Chantier 1"},{url:"https://images.unsplash.com/photo-1541888946425-d81bb19240f5?w=800",label:"Artisan travail"},{url:"https://images.unsplash.com/photo-1581244277943-fe4a9c777189?w=800",label:"Charpentier"},{url:"https://images.unsplash.com/photo-1621905251189-08b45d6a269e?w=800",label:"Plombier"}]},{name:"Bureau & Administration",images:[{url:"https://images.unsplash.com/photo-1542744173-8e7e53415bb0?w=800",label:"Équipe bureau"},{url:"https://images.unsplash.com/photo-1521791136064-7986c2920216?w=800",label:"Réunion"},{url:"https://images.unsplash.com/photo-1556761175-5973dc0f32e7?w=800",label:"Bureau moderne"},{url:"https://images.unsplash.com/photo-1497366216548-37526070297c?w=800",label:"Open space"}]},{name:"Santé & Médical",images:[{url:"https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?w=800",label:"Personnel médical"},{url:"https://images.unsplash.com/photo-1631217868264-e5b90bb7e133?w=800",label:"Médecin"},{url:"https://images.unsplash.com/photo-1579154204601-01588f351e67?w=800",label:"Hôpital"},{url:"https://images.unsplash.com/photo-1538108149393-fbbd81895907?w=800",label:"Infirmière"}]},{name:"Technologie",images:[{url:"https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=800",label:"Dev team"},{url:"https://images.unsplash.com/photo-1531482615713-2afd69097998?w=800",label:"Développeurs"},{url:"https://images.unsplash.com/photo-1563986768609-322da13575f3?w=800",label:"Tech workspace"},{url:"https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=800",label:"Codage"}]},{name:"Restauration & Hôtellerie",images:[{url:"https://images.unsplash.com/photo-1577219491135-ce391730fb2c?w=800",label:"Chef cuisinier"},{url:"https://images.unsplash.com/photo-1414235077428-338989a2e8c0?w=800",label:"Restaurant"},{url:"https://images.unsplash.com/photo-1556740758-90de374c12ad?w=800",label:"Service"},{url:"https://images.unsplash.com/photo-1551218808-94e220e084d2?w=800",label:"Cuisine pro"}]},{name:"Commerce & Vente",images:[{url:"https://images.unsplash.com/photo-1556742502-ec7c0e9f34b1?w=800",label:"Vendeur"},{url:"https://images.unsplash.com/photo-1441986300917-64674bd600d8?w=800",label:"Boutique"},{url:"https://images.unsplash.com/photo-1472851294608-062f824d29cc?w=800",label:"Commerce"},{url:"https://images.unsplash.com/photo-1532453288672-3a27e9be9efd?w=800",label:"Client service"}]},{name:"Logistique & Transport",images:[{url:"https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?w=800",label:"Entrepôt"},{url:"https://images.unsplash.com/photo-1578575437130-527eed3abbec?w=800",label:"Logistique"},{url:"https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?w=800",label:"Livraison"},{url:"https://images.unsplash.com/photo-1566576912321-d58ddd7a6088?w=800",label:"Transport"}]},{name:"Finance & Assurance",images:[{url:"https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=800",label:"Finance"},{url:"https://images.unsplash.com/photo-1554224155-6726b3ff858f?w=800",label:"Business"},{url:"https://images.unsplash.com/photo-1553729459-efe14ef6055d?w=800",label:"Banque"},{url:"https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=800",label:"Analytics"}]}];function zU({open:e,onClose:t,onSelect:n,uploadedImages:r,onUploadImage:o}){const[l,c]=y.useState(""),[d,h]=y.useState(!1),f=y.useMemo(()=>{if(!l.trim())return K1;const g=l.toLowerCase();return K1.map(v=>({...v,images:v.images.filter(N=>N.label.toLowerCase().includes(g))})).filter(v=>v.images.length>0)},[l]),m=async g=>{var N;const v=(N=g.target.files)==null?void 0:N[0];if(v){h(!0);try{const{file_url:j}=await Ne.integrations.Core.UploadFile({file:v});n(j),t(),tt.success("Image téléversée et sélectionnée")}catch{tt.error("Erreur lors du téléversement")}finally{h(!1)}}};return i.jsx(xh,{open:e,onOpenChange:t,children:i.jsxs(fc,{className:"bg-slate-900 border-slate-800 text-white max-w-4xl max-h-[90vh] overflow-hidden flex flex-col",children:[i.jsx(pc,{children:i.jsxs(mc,{className:"text-2xl font-bold flex items-center justify-between",children:["Choisir une image",i.jsx(te,{variant:"ghost",size:"icon",onClick:t,className:"text-slate-400 hover:text-white",children:i.jsx(Ki,{className:"w-5 h-5"})})]})}),i.jsxs("div",{className:"flex gap-3 mb-4",children:[i.jsxs("div",{className:"relative flex-1",children:[i.jsx(Yr,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-500"}
488),i.jsx(qe,{placeholder:"Rechercher...",value:l,onChange:g=>c(g.target.value),className:"pl-10 bg-slate-950/50 border-slate-700 text-white"})]}),i.jsxs("label",{children:[i.jsx(te,{type:"button",className:"bg-amber-600 hover:bg-amber-700 text-white",disabled:d,asChild:!0,children:i.jsxs("span",{children:[i.jsx(cd,{className:"w-4 h-4 mr-2"}),d?"Upload...":"Téléverser"]})}),i.jsx("input",{type:"file",accept:"image/*",onChange:m,className:"hidden",disabled:d})]})]}),i.jsxs("div",{className:"overflow-y-auto flex-1 pr-2",children:[r.length>0&&i.jsxs("div",{className:"mb-6",children:[i.jsx("h3",{className:"text-sm font-semibold text-slate-300 mb-3",children:"Vos images"}),i.jsx("div",{className:"grid grid-cols-3 md:grid-cols-5 lg:grid-cols-6 gap-3",children:r.map((g,v)=>i.jsxs("button",{onClick:()=>{n(g.url),t()},className:"relative group aspect-video rounded-lg overflow-hidden border-2 border-slate-700 hover:border-amber-500 transition-all",children:[i.jsx("img",{src:g.url,alt:g.name,className:"w-full h-full object-cover",loading:"lazy"}),i.jsx("div",{className:"absolute inset-0 bg-black/40 opacity-0 group-hover:opacity-100 transition-opacity"})]},v))})]}),i.jsx("div",{className:"space-y-5",children:f.map(g=>i.jsxs("div",{children:[i.jsx("h3",{className:"text-sm font-semibold text-slate-300 mb-3",children:g.name}),i.jsx("div",{className:"grid grid-cols-3 md:grid-cols-5 lg:grid-cols-6 gap-3",children:g.images.map((v,N)=>i.jsxs("button",{onClick:()=>{n(v.url),t()},title:v.label,className:"relative group aspect-video rounded-lg overflow-hidden border-2 border-slate-700 hover:border-amber-500 transition-all",children:[i.jsx("img",{src:v.url,alt:v.label,className:"w-full h-full object-cover",loading:"lazy"}),i.jsx("div",{className:"absolute inset-0 bg-black/40 opacity-0 group-hover:opacity-100 transition-opacity flex items-end p-2",children:i.jsx("span",{className:"text-white text-xs font-medium truncate",children:v.label})})]},N))})]},g.name))}),f.length===0&&i.jsx("div",{className:"text-center py-12 text-slate-500",children:"Aucune image trouvée"})]})]})})}function qU({mission:e,onClose:t,onSuccess:n}){const[r,o]=y.useState(!1),[l,c]=y.useState(!1),[d,h]=y.useState([]),[f,m]=y.useState(e?{...e,image_url:e.image_url||""}:{title:"",description:"",location:"",contract_type:"CDI",status:"published",priority:"medium",image_url:"",deadline:""}),g=(j,b)=>{m(C=>({...C,[j]:b}))},v=j=>{m(b=>({...b,image_url:j}))},N=async j=>{j.preventDefault(),o(!0);try{e?(await Ne.entities.Mission.update(e.id,f),tt.success("Poste modifié avec succès")):(await Ne.entities.Mission.create(f),tt.success("Poste créé avec succès")),n()}catch(b){console.error("Submit error:",b),tt.error("Erreur lors de l'enregistrement")}finally{o(!1)}};return i.jsx(xh,{open:!0,onOpenChange:t,children:i.jsxs(fc,{className:"bg-slate-900 border-slate-800 text-white max-w-3xl max-h-[95vh] overflow-y-auto",children:[i.jsx(pc,{children:i.jsx(mc,{className:"text-2xl font-bold",children:e?"Modifier le poste":"Nouveau Poste Recherché"})}),i.jsxs("form",{onSubmit:N,className:"space-y-5 mt-4",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx(Qe,{children:"Titre du poste *"}),i.jsx(qe,{required:!0,value:f.title,onChange:j=>g("title",j.target.value),className:"bg-slate-950/50 border-slate-700 text-white",placeholder:"Ex: Directeur Marketing"})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Qe,{children:"Lieu"}),i.jsx(qe,{value:f.location,onChange:j=>g("location",j.target.value),className:"bg-slate-950/50 border-slate-700 text-white",placeholder:"Ex: Genève, Suisse"})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Qe,{children:"Description du poste"}),i.jsx(Gt,{value:f.description,onChange:j=>g("description",j.target.value),className:"bg-slate-950/50 border-slate-700 text-white min-h-[120px]",placeholder:"Description détaillée du poste recherché..."})]}),i.jsxs("div",{className:"grid grid-cols-4 gap-4",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx(Qe,{children:"Type de contrat"}),i.jsxs(on,{value:f.contract_type,onValueChange:j=>g("contract_type",j),children:[i.jsx(Xt,{className:"bg-slate-950/50 border-slate-700 text-white",children:i.jsx(an,{})}),i.jsxs(Jt,{children:[i.jsx(pe,{value:"CDI",children:"CDI"}),i.jsx(pe,{value:"CDD",children:"CDD"}),i.jsx(pe,{value:"Freelance",children:"Freelance"}),i.jsx(pe,{value:"Stage",children:"Stage"}),i.jsx(pe,{value:"Alternance",children:"Alternance"}),i.jsx(pe,{value:"Temporaire",children:"Temporaire"})]})]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Qe,{children:"Priorité"}),i.jsxs(on,{value:f.priority,onValueChange:j=>g("priority",j),children:[i.jsx(Xt,{className:"bg-slate-950/50 border-slate-700 text-white",children:i.jsx(an,{})}),i.jsxs(Jt,{children:[i.jsx(pe,{value:"low",children:"Basse"}),i.jsx(pe,{value:"medium",children:"Normal"}),i.jsx(pe,{value:"high",children:"Prioritaire"}),i.jsx(pe,{value:"urgent",children:"Urgent"})]})]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Qe,{children:"Statut"}),i.jsxs(on,{value:f.status,onValueChange:j=>g("status",j),children:[i.jsx(Xt,{className:"bg-slate-950/50 border-slate-700 text-white",children:i.jsx(an,{})}),i.jsxs(Jt,{children:[i.jsx(pe,{value:"draft",children:"Brouillon"}),i.jsx(pe,{value:"published",children:"Publiée"}),i.jsx(pe,{value:"archived",children:"Archivée"})]})]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Qe,{children:"Date limite"}),i.jsx(qe,{type:"date",value:f.deadline,onChange:j=>g("deadline",j.target.value),className:"bg-slate-950/50 border-slate-700 text-white"})]})]}),i.jsxs("div",{className:"space-y-3",children:[i.jsx(Qe,{children:"Image du poste"}),f.image_url&&i.jsxs("div",{className:"relative w-full h-64 roun
488ded-lg overflow-hidden border-2 border-slate-600 bg-slate-950",children:[i.jsx("img",{src:f.image_url,alt:"Preview",className:"w-full h-full object-cover"}),i.jsx(te,{type:"button",size:"icon",onClick:()=>g("image_url",""),className:"absolute top-2 right-2 bg-red-500 hover:bg-red-600",children:i.jsx(Wi,{className:"w-4 h-4"})})]}),i.jsxs(te,{type:"button",onClick:()=>c(!0),className:"w-full bg-amber-600 hover:bg-amber-700 text-white",children:[i.jsx(WP,{className:"w-4 h-4 mr-2"}),"Choisir une image"]}),i.jsx(zU,{open:l,onClose:()=>c(!1),onSelect:v,uploadedImages:d,onUploadImage:j=>h(b=>[...b,{url:j,name:"Uploaded"}])})]}),i.jsxs("div",{className:"flex gap-3 justify-end pt-4",children:[i.jsx(te,{type:"button",onClick:t,className:"bg-slate-700 hover:bg-slate-600 text-white border-0",children:"Annuler"}),i.jsx(te,{type:"submit",disabled:r,className:"bg-red-500 hover:bg-red-600 text-white border-0",children:r?i.jsxs(i.Fragment,{children:[i.jsx(Jo,{className:"w-4 h-4 mr-2 animate-spin"}),e?"Modification...":"Création..."]}):e?"Modifier":"Créer"})]})]})]})})}const HU={draft:"bg-slate-500/10 text-slate-400 border-slate-500/20",published:"bg-green-500/10 text-green-400 border-green-500/20",archived:"bg-red-500/10 text-red-400 border-red-500/20",open:"bg-green-500/10 text-green-400 border-green-500/20",in_progress:"bg-blue-500/10 text-blue-400 border-blue-500/20",filled:"bg-purple-500/10 text-purple-400 border-purple-500/20",cancelled:"bg-red-500/10 text-red-400 border-red-500/20"},WU={draft:"Brouillon",published:"Publiée",archived:"Archivée",open:"Publiée",in_progress:"En cours",filled:"Pourvue",cancelled:"Annulée"},KU={low:"bg-slate-500/10 text-slate-400 border-slate-500/20",medium:"bg-yellow-500/10 text-yellow-400 border-yellow-500/20",high:"bg-orange-500/10 text-orange-400 border-orange-500/20",urgent:"bg-red-500/10 text-red-400 border-red-500/20"};function GU({missions:e,loading:t}){const[n,r]=y.useState(""),[o,l]=y.useState("desc"),[c,d]=y.useState(!1),[h,f]=y.useState(null),m=Er(),g=async(j,b)=>{try{m.setQueryData(["missions"],C=>C.map(S=>S.id===j?{...S,status:b}:S)),await Ne.entities.Mission.update(j,{status:b})}catch{m.invalidateQueries({queryKey:["missions"]}),alert("Erreur lors du changement de statut")}},v=async j=>{if(window.confirm("Êtes-vous sûr de vouloir supprimer cette mission ?"))try{const b=m.getQueryData(["missions"]);m.setQueryData(["missions"],C=>C.filter(S=>S.id!==j)),await Ne.entities.Mission.delete(j)}catch{m.invalidateQueries({queryKey:["missions"]}),alert("Erreur lors de la suppression")}},N=e.filter(j=>{var b,C;return((b=j.title)==null?void 0:b.toLowerCase().includes(n.toLowerCase()))||((C=j.client_name)==null?void 0:C.toLowerCase().includes(n.toLowerCase()))}).sort((j,b)=>{const C=new Date(j.created_date).getTime(),S=new Date(b.created_date).getTime();return o==="desc"?S-C:C-S});return t?i.jsxs(ct,{className:"bg-slate-900/80 border-slate-800 backdrop-blur-sm p-6",children:[i.jsx(er,{className:"h-10 w-64 bg-slate-800 mb-6"}),i.jsx("div",{className:"space-y-4",children:Array(5).fill(0).map((j,b)=>i.jsx(er,{className:"h-16 w-full bg-slate-800"},b))})]}):i.jsxs(i.Fragment,{children:[i.jsxs(ct,{className:"bg-slate-900/80 border-slate-800 backdrop-blur-sm overflow-hidden",children:[i.jsxs("div",{className:"p-6 border-b border-slate-800 space-y-4",children:[i.jsxs("div",{className:"flex flex-col md:flex-row gap-4 items-center justify-between",children:[i.jsx("h2",{className:"text-2xl font-bold text-white",children:"Missions"}),i.jsxs("div",{className:"flex gap-3 w-full md:w-auto",children:[i.jsxs("div",{className:"relative flex-1 md:w-96",children:[i.jsx(Yr,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-500"}),i.jsx(qe,{placeholder:"Rechercher une mission...",value:n,onChange:j=>r(j.target.value),className:"pl-10 bg-slate-950/50 border-slate-700 text-white"})]}),i.jsxs(te,{onClick:()=>d(!0),className:"bg-gradient-to-r from-amber-500 to-amber-600 hover:from-amber-600 hover:to-amber-700",children:[i.jsx(vj,{className:"w-4 h-4 mr-2"}),"Nouvelle"]})]})]}),i.jsx(te,{onClick:()=>l(o==="desc"?"asc":"desc"),className:"bg-slate-700 hover:bg-slate-600 text-white border-0 px-3",title:o==="desc"?"Du plus récent au plus ancien":"Du plus ancien au plus récent",children:o==="desc"?i.jsx(Xo,{className:"w-4 h-4"}):i.jsx(Id,{className:"w-4 h-4"})})]}),i.jsx("div",{className:"overflow-x-auto",children:i.jsxs(lc,{children:[i.jsx(cc,{children:i.jsxs(Jr,{className:"border-slate-800 hover:bg-slate-800/50",children:[i.jsx(Ye,{className:"text-slate-400",children:"Titre"}),i.jsx(Ye,{className:"text-slate-400",children:"Client"}),i.jsx(Ye,{className:"text-slate-400",children:"Type"}),i.jsx(Ye,{className:"text-slate-400",children:"Lieu"}),i.jsx(Ye,{className:"text-slate-400",children:"Priorité"}),i.jsx(Ye,{className:"text-slate-400",children:"Statut"}),i.jsx(Ye,{className:"text-slate-400",children:"Date limite"}),i.jsx(Ye,{className:"text-slate-400 text-right",children:"Actions"})]})}),i.jsx(uc,{children:N.map(j=>i.jsxs(Jr,{className:"border-slate-800 hover:bg-slate-800/30 transition-colors",children:[i.jsx(Xe,{className:"font-medium text-white",children:j.title}),i.jsx(Xe,{className:"text-slate-300",children:j.client_name}),i.jsx(Xe,{children:i.jsx(Vn,{className:"bg-blue-500/10 text-blue-400 border-blue-500/20",children:j.contract_type})}),i.jsx(Xe,{className:"text-slate-300",children:j.location||"-"}),i.jsx(Xe,{children:i.jsx(Vn,{className:KU[j.priority],children:j.priority})}),i.jsx(Xe,{children:i.jsxs(kU,{children:[i.jsx(TU,{asChild:!0,children:i.jsxs("button",{className:"inline-flex items-center gap-1 hover:opacity-80 transition-opacity",children:[i.jsx(Vn,{className:HU[j.status],children:WU[j.status]||j.status}),i.jsx(Xo,{className:"w-3 h-3 text-slate-400"})]})}),i.jsxs(OE,{align:"start",className:"bg-slate-900 border-slate-700",children:[i.jsx(DE,{className:"text-slate-400",children:"Changer le statut"}),i.jsx(IE,{className:"bg-slate-700"}),i.jsxs(ad,{onClick:()=>g(j.id,"draft"),className:"text-white hover:bg-slate-800 cursor-pointer",children:[i.jsx("span",{className:"w-2 h-2 rounded-full bg-slate-400 mr-2"}),"Brouillon"]}),i.jsxs(ad,{onClick:()=>g(j.id,"published"),className:"text-white hover:bg-slate-800 cursor-pointer",children:[i.jsx("span",{className:"w-2 h-2 rounded-full bg-green-400 mr-2"}),"Publiée"]}),i.jsxs(ad,{onClick:()=>g(j.id,"archived"),className:"text-white hover:bg-slate-800 cursor-pointer",children:[i.jsx("span",{className:"w-2 h-2 rounded-full bg-red-400 mr-2"}),"Archivée"]})]})]})}),i.jsx(Xe,{className:"text-slate-400 text-sm",children:j.deadline?aa(new Date(j.deadline),"dd MMM yyyy",{locale:hc}):"-"}),i.jsx(Xe,{className:"text-right",children:i.jsxs("div",{className:"flex gap-2 justify-end",children:[i.jsx(te,{size:"sm",variant:"ghost",className:"text-amber-500 hover:bg-amber-500/10",onClick:()=>f(j),children:i.jsx(wj,{className:"w-4 h-4"})}),i.jsx(te,{size:"sm",variant:"ghost",className:"text-red-500 hover:bg-red-500/10",onClick:()=>v(j.id),children:i.jsx(Wi,{className:"w-4 h-4"})})]})})]},j.id))})]})}),N.length===0&&i.jsx("div",{className:"text-center py-12 text-slate-500",children:"Aucune mission trouvée"})]}),(c||h)&&i.jsx(qU,{mission:h,onClose:()=>{d(!1),f(null)},onSuccess:()=>
488{d(!1),f(null),m.invalidateQueries({queryKey:["missions"]})}})]})}const G1={new:"bg-blue-500/10 text-blue-400 border-blue-500/20",processing:"bg-purple-500/10 text-purple-400 border-purple-500/20",contacted:"bg-amber-500/10 text-amber-400 border-amber-500/20",completed:"bg-green-500/10 text-green-400 border-green-500/20",rejected:"bg-red-500/10 text-red-400 border-red-500/20"},Q1={new:"Nouveau",processing:"En traitement",contacted:"Contacté",completed:"Terminé",rejected:"Rejeté"},Y1={normal:"bg-slate-500/10 text-slate-400 border-slate-500/20",urgent:"bg-orange-500/10 text-orange-400 border-orange-500/20",tres_urgent:"bg-red-500/10 text-red-400 border-red-500/20"};function QU(){const[e,t]=y.useState(""),[n,r]=y.useState("desc"),[o,l]=y.useState(null),c=Er(),{data:d=[],isLoading:h}=Bn({queryKey:["enterprise-requests"],queryFn:()=>Ne.entities.EnterpriseRequest.list("-created_date")}),f=Li({mutationFn:({id:v,status:N,notes:j})=>Ne.entities.EnterpriseRequest.update(v,{status:N,notes:j}),onSuccess:()=>{c.invalidateQueries({queryKey:["enterprise-requests"]}),tt.success("Statut mis à jour"),l(null)}}),m=Li({mutationFn:v=>Ne.entities.EnterpriseRequest.delete(v),onSuccess:()=>{c.invalidateQueries({queryKey:["enterprise-requests"]}),tt.success("Demande supprimée"),l(null)}}),g=d.filter(v=>{var N,j;return((N=v.company_name)==null?void 0:N.toLowerCase().includes(e.toLowerCase()))||((j=v.contact_name)==null?void 0:j.toLowerCase().includes(e.toLowerCase()))}).sort((v,N)=>{const j=new Date(v.created_date).getTime(),b=new Date(N.created_date).getTime();return n==="desc"?b-j:j-b});return h?i.jsxs(ct,{className:"bg-slate-900/80 border-slate-800 backdrop-blur-sm p-6",children:[i.jsx(er,{className:"h-10 w-64 bg-slate-800 mb-6"}),i.jsx("div",{className:"space-y-4",children:Array(5).fill(0).map((v,N)=>i.jsx(er,{className:"h-16 w-full bg-slate-800"},N))})]}):i.jsxs(i.Fragment,{children:[i.jsxs(ct,{className:"bg-slate-900/80 border-slate-800 backdrop-blur-sm overflow-hidden",children:[i.jsxs("div",{className:"p-6 border-b border-slate-800 space-y-4",children:[i.jsxs("div",{className:"flex flex-col md:flex-row gap-4 items-center justify-between",children:[i.jsxs("h2",{className:"text-2xl font-bold text-white",children:["Demandes entreprises (",g.length,")"]}),i.jsxs("div",{className:"relative w-full md:w-96",children:[i.jsx(Yr,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-500"}),i.jsx(qe,{placeholder:"Rechercher une demande...",value:e,onChange:v=>t(v.target.value),className:"pl-10 bg-slate-950/50 border-slate-700 text-white"})]})]}),i.jsx(te,{onClick:()=>r(n==="desc"?"asc":"desc"),className:"bg-slate-700 hover:bg-slate-600 text-white border-0 px-3",title:n==="desc"?"Du plus récent au plus ancien":"Du plus ancien au plus récent",children:n==="desc"?i.jsx(Xo,{className:"w-4 h-4"}):i.jsx(Id,{className:"w-4 h-4"})})]}),i.jsx("div",{className:"overflow-x-auto",children:i.jsxs(lc,{children:[i.jsx(cc,{children:i.jsxs(Jr,{className:"border-slate-800 hover:bg-slate-800/50",children:[i.jsx(Ye,{className:"text-slate-400",children:"Entreprise"}),i.jsx(Ye,{className:"text-slate-400",children:"Contact"}),i.jsx(Ye,{className:"text-slate-400",children:"Poste"}),i.jsx(Ye,{className:"text-slate-400",children:"Urgence"}),i.jsx(Ye,{className:"text-slate-400",children:"Statut"}),i.jsx(Ye,{className:"text-slate-400",children:"Date"}),i.jsx(Ye,{className:"text-slate-400",children:"Actions"})]})}),i.jsx(uc,{children:g.map(v=>i.jsxs(Jr,{className:"border-slate-800 hover:bg-slate-800/30 transition-colors cursor-pointer",onClick:()=>l(v),children:[i.jsx(Xe,{className:"font-medium text-white",children:v.company_name}),i.jsx(Xe,{children:i.jsxs("div",{className:"space-y-1",children:[i.jsx("div",{className:"text-sm text-slate-300",children:v.contact_name}),i.jsxs("div",{className:"flex items-center gap-2 text-xs text-slate-400",children:[i.jsx(Qs,{className:"w-3 h-3"}),v.contact_email]}),v.contact_phone&&i.jsxs("div",{className:"flex items-center gap-2 text-xs text-slate-400",children:[i.jsx(qs,{className:"w-3 h-3"}),v.contact_phone]})]})}),i.jsx(Xe,{className:"text-slate-300",children:v.job_title||"-"}),i.jsx(Xe,{children:i.jsx(Vn,{className:Y1[v.urgency],children:v.urgency==="tres_urgent"?"Très urgent":v.urgency==="urgent"?"Urgent":"Normal"})}),i.jsx(Xe,{children:i.jsx(Vn,{className:G1[v.status],children:Q1[v.status]})}),i.jsx(Xe,{className:"text-slate-400 text-sm",children:aa(new Date(v.created_date),"dd MMM yyyy",{locale:hc})}),i.jsx(Xe,{children:i.jsxs("div",{className:"flex gap-1",children:[i.jsx(te,{size:"sm",variant:"ghost",className:"text-amber-500 hover:text-amber-400 hover:bg-amber-500/10",onClick:N=>{N.stopPropagation(),l(v)},children:i.jsx(Fd,{className:"w-4 h-4"})}),i.jsx(te,{size:"sm",variant:"ghost",className:"text-red-500 hover:text-red-400 hover:bg-red-500/10",onClick:N=>{N.stopPropagation(),confirm(`Êtes-vous sûr de vouloir supprimer la demande de ${v.company_name} ?`)&&m.mutate(v.id)},children:i.jsx(Wi,{className:"w-4 h-4"})})]})})]},v.id))})]})}),g.length===0&&i.jsx("div",{className:"text-center py-12 text-slate-500",children:"Aucune demande trouvée"})]}),o&&i.jsx("div",{className:"fixed inset-0 bg-black/50 z-50 flex items-center justify-center p-4",children:i.jsxs(ct,{className:"bg-slate-900 border-slate-800 max-w-2xl w-full max-h-[90vh] overflow-auto",children:[i.jsxs("div",{className:"p-6 border-b border-slate-800",children:[i.jsx("h3",{className:"text-2xl font-bold text-white mb-2",children:o.company_name}),i.jsxs("div",{className:"flex gap-2",children:[i.jsx(Vn,{className:Y1[o.urgency],children:o.urgency==="tres_urgent"?"Très urgent":o.urgency==="urgent"?"Urgent":"Normal"}),i.jsx(Vn,{className:G1[o.status],children:Q1[o.status]})]})]}),i.jsxs("div",{className:"p-6 space-y-4",children:[i.jsxs("div",{children:[i.jsx("h4",{className:"text-sm font-semibold text-slate-400 mb-1",children:"Contact"}),i.jsx("p",{className:"text-white",children:o.contact_name}),i.jsx("p",{className:"text-slate-400 text-sm",children:o.contact_email}),o.contact_phone&&i.jsx("p",{className:"text-slate-400 text-sm",children:o.contact_phone})]}),o.industry&&i.jsxs("div",{children:[i.jsx("h4",{className:"text-sm font-semibold text-slate-400 mb-1",children:"Secteur"}),i.jsx("p",{className:"text-white",children:o.industry})]}),o.job_title&&i.jsxs("div",{children:[i.jsx("h4",{className:"text-sm font-semibold text-slate-400 mb-1",children:"Poste recherché"}),i.jsx("p",{className:"text-white",children:o.job_title})]}),o.job_description&&i.jsxs("div",{children:[i.jsx("h4",{className:"text-sm font-semibold text-slate-400 mb-1",children:"Description"}),i.jsx("p",{className:"text-slate-300 whitespace-pre-wrap",children:o.job_description})]}),o.contract_type&&i.jsxs("div",{children:[i.jsx("h4",{className:"text-sm font-semibold text-slate-400 mb-1",children:"Type de contrat"}),i.jsx("p",{className:"text-white",children:o.contract_type})]}),i.jsxs("div",{children:[i.jsx("h4",{className:"text-sm font-semibold text-slate-400 mb-2",children:"Changer le statut"}),i.jsxs(on,{value:o.status,onValueChange:v=>f.mutate({id:o.id,status:v,notes:o.notes}),children:[i.jsx(Xt,{className:"bg-slate-950/50 border-slate-700 text-white",children:i.jsx(an,{})}),i.jsxs(Jt,{children:[i.jsx(pe,{value:"new",children:"Nouveau"}),i.jsx(pe,{value:"processing",children:"En traitement"}),i.jsx(pe,{value:"contacted",children:"Contacté"}),i.jsx(pe,{value:"completed",children:"Terminé"}),i.jsx(pe,{value:"rejected",children:"Rejeté"})]})]})]})]}),i.jsxs("div",{className:"p-6 border-t border-slate-800 flex justify-between",children:[i.jsx(te,{variant:"destructive",onClick:()=>{confirm(`Êtes-vous sûr de vouloir supprimer la demande de ${o.company_name} ?`)&&m.mutate(o.id)},children:"Supprimer"}),i.jsx(te,{variant:"outline",onClick:()=>l(null),className:"border-slate-700",children:"Fermer"})]})]})})]})}function YU({article:e,onClose:t,onSuccess:n}){const[r,o]=y.useState({title:(e==null?void 0:e.title)||"",category:(e==null?void 0:e.category)||"carriere",image_url:(e==null?void 0:e.image_url)||"",excerpt:(e==null?void 0:e.excerpt)||"",content:(e==null?void 0:e.content)||"",author:(e==null?void 0:e.author)||"",published_date:(e==null?void 0:e.published_date)||new Date().toISOString().split("T")[0]}),[l,c]=y.useState(!1),d=async h=>{h.preventDefault(),c(!0);try{const f=new Date().toISOString().split("T")[0],m={...r,published_date:f};e?(await Ne.entities.BlogArticle.update(e.id,m),tt.success("Article mis à jour")):(await Ne.entities.BlogArticle.create(m),tt.success("Article créé")),n()}catch{tt.error("Erreur lors de l'enregistrement")}finally{c(!1)}};return i.jsx(xh,{open:!0,onOpenChange:t,children:i.jsxs(fc,{className:"bg-slate-900 border-slate-800 text-white max-w-3xl max-h-[90vh] overflow-auto",children:[i.jsx(pc,{children:i.jsx(mc,{children:e?"Modifier l'article":"Nouvel article"})}
488),i.jsxs("form",{onSubmit:d,className:"space-y-4 mt-4",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium mb-2",children:"Titre *"}),i.jsx(qe,{required:!0,value:r.title,onChange:h=>o({...r,title:h.target.value}),className:"bg-slate-950/50 border-slate-700 text-white",placeholder:"Titre de l'article"})]}),i.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium mb-2",children:"Catégorie *"}),i.jsxs(on,{value:r.category,onValueChange:h=>o({...r,category:h}),children:[i.jsx(Xt,{className:"bg-slate-950/50 border-slate-700 text-white",children:i.jsx(an,{})}),i.jsxs(Jt,{children:[i.jsx(pe,{value:"carriere",children:"Conseils carrière"}),i.jsx(pe,{value:"recrutement",children:"Conseils recrutement"})]})]})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium mb-2",children:"Date de publication"}),i.jsx(qe,{type:"date",value:r.published_date,onChange:h=>o({...r,published_date:h.target.value}),className:"bg-slate-950/50 border-slate-700 text-white"})]})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium mb-2",children:"URL de l'image *"}),i.jsx(qe,{required:!0,value:r.image_url,onChange:h=>o({...r,image_url:h.target.value}),className:"bg-slate-950/50 border-slate-700 text-white",placeholder:"https://..."}),r.image_url&&i.jsx("img",{src:r.image_url,alt:"Aperçu",className:"mt-2 w-32 h-32 object-cover rounded"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium mb-2",children:"Auteur"}),i.jsx(qe,{value:r.author,onChange:h=>o({...r,author:h.target.value}),className:"bg-slate-950/50 border-slate-700 text-white",placeholder:"Nom de l'auteur"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium mb-2",children:"Extrait"}),i.jsx(Gt,{value:r.excerpt,onChange:h=>o({...r,excerpt:h.target.value}),className:"bg-slate-950/50 border-slate-700 text-white h-20",placeholder:"Court résumé de l'article..."})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium mb-2",children:"Contenu *"}),i.jsx(Gt,{required:!0,value:r.content,onChange:h=>o({...r,content:h.target.value}),className:"bg-slate-950/50 border-slate-700 text-white h-64",placeholder:"Contenu complet de l'article..."})]}),i.jsxs("div",{className:"flex gap-3 justify-end pt-4",children:[i.jsx(te,{type:"button",variant:"outline",onClick:t,className:"border-slate-700",children:"Annuler"}),i.jsx(te,{type:"submit",disabled:l,className:"bg-gradient-to-r from-amber-500 to-amber-600 hover:from-amber-600 hover:to-amber-700 disabled:opacity-50 disabled:cursor-not-allowed",children:l?"Enregistrement...":e?"Mettre à jour":"Créer"})]})]})]})})}const XU={carriere:"bg-blue-500/10 text-blue-400 border-blue-500/20",recrutement:"bg-purple-500/10 text-purple-400 border-purple-500/20"};function JU(){const[e,t]=y.useState(""),[n,r]=y.useState(!1),[o,l]=y.useState(null),c=Er(),{data:d=[],isLoading:h}=Bn({queryKey:["blog-articles"],queryFn:()=>Ne.entities.BlogArticle.list("-created_date")}),f=Li({mutationFn:j=>Ne.entities.BlogArticle.delete(j),onSuccess:()=>{c.invalidateQueries(["blog-articles"]),tt.success("Article supprimé")},onError:()=>{tt.error("Erreur lors de la suppression")}}),m=Li({mutationFn:async()=>{const j=aa(new Date,"yyyy-MM-dd");await Promise.all(d.map(b=>Ne.entities.BlogArticle.update(b.id,{published_date:j})))},onSuccess:()=>{c.invalidateQueries(["blog-articles"]),tt.success("Dates mises à jour")},onError:()=>{tt.error("Erreur lors de la mise à jour")}}),g=d.filter(j=>{var b,C;return((b=j.title)==null?void 0:b.toLowerCase().includes(e.toLowerCase()))||((C=j.author)==null?void 0:C.toLowerCase().includes(e.toLowerCase()))}),v=j=>{l(j),r(!0)},N=(j,b)=>{window.confirm(`Supprimer l'article "${b}" ?`)&&f.mutate(j)};return h?i.jsxs(ct,{className:"bg-slate-900/80 border-slate-800 backdrop-blur-sm p-6",children:[i.jsx(er,{className:"h-10 w-64 bg-slate-800 mb-6"}),i.jsx("div",{className:"space-y-4",children:Array(5).fill(0).map((j,b)=>i.jsx(er,{className:"h-16 w-full bg-slate-800"},b))})]}):i.jsxs(i.Fragment,{children:[i.jsxs(ct,{className:"bg-slate-900/80 border-slate-800 backdrop-blur-sm overflow-hidden",children:[i.jsx("div",{className:"p-6 border-b border-slate-800",children:i.jsxs("div",{className:"flex flex-col md:flex-row gap-4 items-center justify-between",children:[i.jsxs("h2",{className:"text-2xl font-bold text-white",children:["Articles de blog (",g.length,")"]}),i.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 w-full md:w-auto",children:[i.jsxs("div",{className:"relative flex-1 md:w-96",children:[i.jsx(Yr,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-500"}
488),i.jsx(qe,{placeholder:"Rechercher un article...",value:e,onChange:j=>t(j.target.value),className:"pl-10 bg-slate-950/50 border-slate-700 text-white"})]}),i.jsxs(te,{onClick:()=>m.mutate(),disabled:m.isPending,variant:"outline",className:"text-slate-300 border-slate-600 hover:bg-slate-800",children:[i.jsx(Dd,{className:"w-4 h-4 mr-2"}),"Mettre à jour dates"]}),i.jsxs(te,{onClick:()=>{l(null),r(!0)},className:"bg-gradient-to-r from-amber-500 to-amber-600 hover:from-amber-600 hover:to-amber-700",children:[i.jsx(vj,{className:"w-4 h-4 mr-2"}),"Nouveau"]})]})]})}),i.jsx("div",{className:"overflow-x-auto",children:i.jsxs(lc,{children:[i.jsx(cc,{children:i.jsxs(Jr,{className:"border-slate-800 hover:bg-slate-800/50",children:[i.jsx(Ye,{className:"text-slate-400",children:"Image"}),i.jsx(Ye,{className:"text-slate-400",children:"Titre"}),i.jsx(Ye,{className:"text-slate-400",children:"Catégorie"}),i.jsx(Ye,{className:"text-slate-400",children:"Auteur"}),i.jsx(Ye,{className:"text-slate-400",children:"Date de publication"}),i.jsx(Ye,{className:"text-slate-400",children:"Actions"})]})}),i.jsx(uc,{children:g.map(j=>i.jsxs(Jr,{className:"border-slate-800 hover:bg-slate-800/30 transition-colors",children:[i.jsx(Xe,{children:j.image_url&&i.jsx("img",{src:j.image_url,alt:j.title,className:"w-16 h-16 object-cover rounded"})}),i.jsxs(Xe,{className:"font-medium text-white max-w-xs",children:[i.jsx("div",{className:"truncate",children:j.title}),j.excerpt&&i.jsx("div",{className:"text-xs text-slate-400 truncate mt-1",children:j.excerpt})]}),i.jsx(Xe,{children:i.jsx(Vn,{className:XU[j.category],children:j.category==="carriere"?"Carrière":"Recrutement"})}),i.jsx(Xe,{className:"text-slate-300",children:j.author||"-"}),i.jsx(Xe,{className:"text-slate-400 text-sm",children:j.published_date?aa(new Date(j.published_date),"dd MMM yyyy",{locale:hc}):"-"}),i.jsx(Xe,{children:i.jsxs("div",{className:"flex gap-2",children:[i.jsx(te,{size:"sm",variant:"ghost",className:"text-blue-500 hover:text-blue-400 hover:bg-blue-500/10",onClick:()=>window.open(`/ArticleDetail?id=${j.id}`,"_blank"),children:i.jsx(Fd,{className:"w-4 h-4"})}),i.jsx(te,{size:"sm",variant:"ghost",className:"text-amber-500 hover:text-amber-400 hover:bg-amber-500/10",onClick:()=>v(j),children:i.jsx(wj,{className:"w-4 h-4"})}),i.jsx(te,{size:"sm",variant:"ghost",className:"text-red-500 hover:text-red-400 hover:bg-red-500/10",onClick:()=>N(j.id,j.title),children:i.jsx(Wi,{className:"w-4 h-4"})})]})})]},j.id))})]})}),g.length===0&&i.jsx("div",{className:"text-center py-12 text-slate-500",children:"Aucun article trouvé"})]}),n&&i.jsx(YU,{article:o,onClose:()=>{r(!1),l(null)},onSuccess:()=>{r(!1),l(null),c.invalidateQueries(["blog-articles"])}})]})}const ZU=[{category:"Construction & Artisanat",images:[{url:"https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=800",name:"Chantier 1"},{url:"https://images.unsplash.com/photo-1541888946425-d81bb19240f5?w=800",name:"Artisan travail"},{url:"https://images.unsplash.com/photo-1581244277943-fe4a9c777189?w=800",name:"Charpentier"},{url:"https://images.unsplash.com/photo-1621905251189-08b45d6a269e?w=800",name:"Plombier"}]},{category:"Bureau & Administration",images:[{url:"https://images.unsplash.com/photo-1542744173-8e7e53415bb0?w=800",name:"Équipe bureau"},{url:"https://images.unsplash.com/photo-1521791136064-7986c2920216?w=800",name:"Réunion"},{url:"https://images.unsplash.com/photo-1556761175-5973dc0f32e7?w=800",name:"Bureau moderne"},{url:"https://images.unsplash.com/photo-1497366216548-37526070297c?w=800",name:"Open space"}]},{category:"Santé & Médical",images:[{url:"https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?w=800",name:"Personnel médical"},{url:"https://images.unsplash.com/photo-1631217868264-e5b90bb7e133?w=800",name:"Médecin"},{url:"https://images.unsplash.com/photo-1579154204601-01588f351e67?w=800",name:"Hôpital"},{url:"https://images.unsplash.com/photo-1538108149393-fbbd81895907?w=800",name:"Infirmière"}]},{category:"Technologie",images:[{url:"https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=800",name:"Dev team"},{url:"https://images.unsplash.com/photo-1531482615713-2afd69097998?w=800",name:"Développeurs"},{url:"https://images.unsplash.com/photo-1563986768609-322da13575f3?w=800",name:"Tech workspace"},{url:"https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=800",name:"Codage"}]},{category:"Restauration & Hôtellerie",images:[{url:"https://images.unsplash.com/photo-1577219491135-ce391730fb2c?w=800",name:"Chef cuisinier"},{url:"https://images.unsplash.com/photo-1414235077428-338989a2e8c0?w=800",name:"Restaurant"},{url:"https://images.unsplash.com/photo-1556740758-90de374c12ad?w=800",name:"Service"},{url:"https://images.unsplash.com/photo-1551218808-94e220e084d2?w=800",name:"Cuisine pro"}]},{category:"Commerce & Vente",images:[{url:"https://images.unsplash.com/photo-1556742502-ec7c0e9f34b1?w=800",name:"Vendeur"},{url:"https://images.unsplash.com/photo-1441986300917-64674bd600d8?w=800",name:"Boutique"},{url:"https://images.unsplash.com/photo-1472851294608-062f824d29cc?w=800",name:"Commerce"},{url:"https://images.unsplash.com/photo-1532453288672-3a27e9be9efd?w=800",name:"Client service"}]},{category:"Logistique & Transport",images:[{url:"https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?w=800",name:"Entrepôt"},{url:"https://images.unsplash.com/photo-1578575437130-527eed3abbec?w=800",name:"Logistique"},{url:"https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?w=800",name:"Livraison"},{url:"https://images.unsplash.com/photo-1566576912321-d58ddd7a6088?w=800",name:"Trans
488port"}]},{category:"Finance & Assurance",images:[{url:"https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=800",name:"Finance"},{url:"https://images.unsplash.com/photo-1554224155-6726b3ff858f?w=800",name:"Business"},{url:"https://images.unsplash.com/photo-1553729459-efe14ef6055d?w=800",name:"Banque"},{url:"https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=800",name:"Analytics"}]}];function ez(){const[e,t]=y.useState(""),[n,r]=y.useState([]),[o,l]=y.useState(!1),[c,d]=y.useState(0),[h,f]=y.useState(null),[m,g]=y.useState(null),[v,N]=y.useState(""),j=12,b=async P=>{var M;const L=(M=P.target.files)==null?void 0:M[0];if(L){l(!0);try{const{file_url:G}=await Ne.integrations.Core.UploadFile({file:L});g({url:G,name:L.name}),N("")}catch{tt.error("Erreur lors du téléchargement")}finally{l(!1)}}},C=()=>{m&&(r([...n,{...m,post_title:v||m.name}]),tt.success("Image ajoutée"),g(null))},S=P=>{r(n.filter((L,M)=>M!==P)),tt.success("Image supprimée")},k=P=>{navigator.clipboard.writeText(P),tt.success("URL copiée dans le presse-papier")},_=y.useMemo(()=>ZU.filter(P=>P.category.toLowerCase().includes(e.toLowerCase())||P.images.some(L=>L.name.toLowerCase().includes(e.toLowerCase()))),[e]),T=y.useMemo(()=>n.slice(c*j,(c+1)*j),[n,c]),R=Math.ceil(n.length/j);return i.jsxs("div",{className:"space-y-6",children:[i.jsxs(ct,{className:"bg-slate-900/80 border-slate-800 backdrop-blur-sm p-6",children:[i.jsxs("div",{className:"flex flex-col md:flex-row gap-4 items-center justify-between mb-6",children:[i.jsx("h2",{className:"text-2xl font-bold text-white",children:"Médiathèque d'images"}),i.jsxs("div",{className:"flex gap-3 w-full md:w-auto",children:[i.jsxs("div",{className:"relative flex-1 md:w-96",children:[i.jsx(Yr,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-500"}),i.jsx(qe,{placeholder:"Rechercher une image...",value:e,onChange:P=>t(P.target.value),className:"pl-10 bg-slate-950/50 border-slate-700 text-white"})]}),i.jsxs(te,{onClick:()=>document.getElementById("file-upload").click(),disabled:o,className:"bg-gradient-to-r from-amber-500 to-amber-600 hover:from-amber-600 hover:to-amber-700",children:[i.jsx(cd,{className:"w-4 h-4 mr-2"}),o?"Upload...":"Upload"]}),i.jsx("input",{id:"file-upload",type:"file",accept:"image/*",onChange:b,className:"hidden"})]})]}),n.length>0&&i.jsxs("div",{className:"mb-8",children:[i.jsxs("h3",{className:"text-lg font-semibold text-white mb-4",children:["Mes images uploadées (",n.length,")"]}),i.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4 mb-4",children:T.map((P,L)=>i.jsxs("div",{className:"group relative rounded-lg overflow-hidden bg-slate-800",children:[i.jsx("img",{src:P.url,alt:P.post_title,className:"w-full h-48 object-cover",loading:"lazy"}),i.jsxs("div",{className:"absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center gap-2",children:[i.jsxs(te,{size:"sm",variant:"ghost",onClick:()=>k(P.url),className:"text-white hover:bg-white/20",children:[i.jsx(Qy,{className:"w-4 h-4 mr-2"}),"Copier"]}),i.jsx(te,{size:"sm",variant:"ghost",onClick:()=>S(c*j+L),className:"text-red-400 hover:bg-red-500/20",children:i.jsx(Ki,{className:"w-4 h-4"})})]}),i.jsxs("div",{className:"p-2",children:[i.jsx("p",{className:"text-xs text-slate-300 font-medium truncate",children:P.post_title}),i.jsx("p",{className:"text-xs text-slate-500 truncate",children:P.name})]})]},L))}),R>1&&i.jsx("div",{className:"flex gap-2 justify-center",children:Array.from({length:R}).map((P,L)=>i.jsx(te,{size:"sm",variant:c===L?"default":"outline",onClick:()=>d(L),className:c===L?"bg-amber-600":"border-slate-700",children:L+1},L))})]}),_.map(P=>i.jsxs("div",{className:"mb-8",children:[i.jsx("h3",{className:"text-lg font-semibold text-white mb-4",children:P.category}),i.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:P.images.map((L,M)=>i.jsxs("div",{className:"group relative rounded-lg overflow-hidden bg-slate-800 cursor-pointer",children:[i.jsx("img",{src:L.url,alt:L.name,className:"w-full h-48 object-cover",loading:"lazy"}),i.jsxs("div",{className:"absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center gap-2",children:[i.jsx(te,{size:"sm",variant:"ghost",onClick:()=>g({url:L.url,name:L.name}),className:"text-white hover:bg-white/20",children:"Ajouter un poste"}),i.jsx(te,{size:"sm",variant:"ghost",onClick:()=>k(L.url),className:"text-amber-400 hover:bg-amber-500/20",children:i.jsx(Qy,{className:"w-4 h-4"})})]}),i.jsx("div",{className:"p-2",children:i.jsx("p",{className:"text-xs text-slate-400 truncate",children:L.name})})]},M))})]},P.category)),_.length===0&&i.jsx("div",{className:"text-center py-12 text-slate-500",children:"Aucune image trouvée"})]}),m&&i.jsx("div",{className:"fixed inset-0 bg-black/50 z-50 flex items-center justify-center p-4",children:i.jsx(ct,{className:"bg-slate-900 border-slate-800 max-w-md w-full",children:i.jsxs("div",{className:"p-6",children:[i.jsx("h3",{className:"text-xl font-bold text-white mb-4",children:"Ajouter un titre de poste"}),i.jsx("img",{src:m.url,alt:"preview",className:"w-full h-48 object-cover rounded-lg mb-4"}),i.jsx(qe,{placeholder:"Ex: Développeur Full Stack, Manager de projet...",value:v,onCh
488ange:P=>N(P.target.value),className:"bg-slate-950/50 border-slate-700 text-white mb-4",autoFocus:!0}),i.jsxs("div",{className:"flex gap-2",children:[i.jsx(te,{onClick:C,className:"flex-1 bg-amber-600 hover:bg-amber-700",children:"Ajouter"}),i.jsx(te,{onClick:()=>g(null),variant:"outline",className:"flex-1 border-slate-700",children:"Annuler"})]})]})})})]})}function tz(){const[e,t]=y.useState(""),n=Er(),{data:r=[],isLoading:o}=Bn({queryKey:["newsletter"],queryFn:()=>Ne.entities.Newsletter.list("-created_date")}),l=Li({mutationFn:f=>Ne.entities.Newsletter.delete(f),onSuccess:()=>n.invalidateQueries(["newsletter"])}),c=Li({mutationFn:f=>Ne.entities.Newsletter.update(f.id,{is_active:!f.is_active}),onSuccess:()=>n.invalidateQueries(["newsletter"])}),d=r.filter(f=>f.email.toLowerCase().includes(e.toLowerCase())),h=()=>{const f=[["Email","Actif","Date d'inscription"],...r.map(v=>[v.email,v.is_active?"Oui":"Non",new Date(v.created_date).toLocaleDateString("fr-CH")])].map(v=>v.join(",")).join(`
489`),m=new Blob([f],{type:"text/csv;charset=utf-8;"}),g=document.createElement("a");g.href=URL.createObjectURL(m),g.download=`newsletter_subscribers_${new Date().toISOString().split("T")[0]}.csv`,g.click()};return i.jsx(q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"space-y-6",children:i.jsxs(ct,{className:"bg-slate-900/50 border-slate-800 p-6",children:[i.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-between items-start sm:items-center mb-6",children:[i.jsx("div",{className:"flex-1 w-full sm:w-auto",children:i.jsxs("div",{className:"relative",children:[i.jsx(Yr,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-500"}),i.jsx(qe,{placeholder:"Rechercher un email...",value:e,onChange:f=>t(f.target.value),className:"pl-10 bg-slate-800 border-slate-700 text-white"})]})}),i.jsxs(te,{onClick:h,variant:"outline",className:"border-slate-700 text-slate-300 hover:bg-slate-800",children:[i.jsx(yg,{className:"w-4 h-4 mr-2"}),"Exporter"]})]}),i.jsx("div",{className:"bg-slate-800/50 rounded-lg overflow-hidden",children:i.jsx("div",{className:"overflow-x-auto",children:i.jsxs("table",{className:"w-full",children:[i.jsx("thead",{children:i.jsxs("tr",{className:"border-b border-slate-700",children:[i.jsx("th",{className:"px-6 py-4 text-left text-xs font-semibold text-slate-400",children:"Email"}),i.jsx("th",{className:"px-6 py-4 text-left text-xs font-semibold text-slate-400",children:"Statut"}),i.jsx("th",{className:"px-6 py-4 text-left text-xs font-semibold text-slate-400",children:"Inscription"}),i.jsx("th",{className:"px-6 py-4 text-right text-xs font-semibold text-slate-400",children:"Actions"})]})}),i.jsx("tbody",{className:"divide-y divide-slate-700",children:o?[...Array(5)].map((f,m)=>i.jsx("tr",{className:"hover:bg-slate-700/50",children:i.jsx("td",{colSpan:"4",className:"px-6 py-4",children:i.jsx(er,{className:"h-4 w-full bg-slate-700"})})},m)):d.length===0?i.jsx("tr",{children:i.jsx("td",{colSpan:"4",className:"px-6 py-8 text-center text-slate-400",children:"Aucun abonné trouvé"})}):d.map(f=>i.jsxs(q.tr,{initial:{opacity:0}
489,animate:{opacity:1},className:"hover:bg-slate-700/50 transition-colors",children:[i.jsx("td",{className:"px-6 py-4",children:i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(Qs,{className:"w-4 h-4 text-slate-500"}),i.jsx("span",{className:"text-white font-medium",children:f.email})]})}),i.jsx("td",{className:"px-6 py-4",children:i.jsx("span",{className:`px-3 py-1 rounded-full text-xs font-medium ${f.is_active?"bg-green-500/20 text-green-400":"bg-slate-600/20 text-slate-400"}`,children:f.is_active?"Actif":"Inactif"})}),i.jsx("td",{className:"px-6 py-4 text-slate-400 text-sm",children:new Date(f.created_date).toLocaleDateString("fr-CH")}),i.jsx("td",{className:"px-6 py-4",children:i.jsxs("div",{className:"flex justify-end gap-2",children:[i.jsx("button",{onClick:()=>c.mutate(f),disabled:c.isPending,className:"p-2 hover:bg-slate-600 rounded-lg transition-colors disabled:opacity-50",title:f.is_active?"Désactiver":"Activer",children:f.is_active?i.jsx(RR,{className:"w-4 h-4 text-green-500"}):i.jsx(TR,{className:"w-4 h-4 text-slate-500"})}),i.jsx("button",{onClick:()=>l.mutate(f.id),disabled:l.isPending,className:"p-2 hover:bg-red-500/20 text-red-500 rounded-lg transition-colors disabled:opacity-50",title:"Supprimer",children:i.jsx(Wi,{className:"w-4 h-4"})})]})})]},f.id))})]})})}),i.jsx("div",{className:"mt-4 pt-4 border-t border-slate-700 text-sm text-slate-400",children:i.jsxs("p",{children:["Total: ",i.jsx("span",{className:"text-white font-semibold",children:r.length})," abonnés (",i.jsxs("span",{className:"text-green-400",children:[r.filter(f=>f.is_active).length," actifs"]}),")"]})})]})})}const rm={greeting:"Chère Candidate, Cher Candidat,",paragraph_1:"Nous accusons réception de votre offre de collaboration et nous vous remercions pour l'intérêt que vous portez à la société Elite Sourcing SA.",paragraph_2:"Votre dossier sera traité dans les plus brefs délais.",paragraph_3:"Cependant, si vous n'avez pas de nouvelles de notre part dans les trois semaines qui suivent ce courrier, veuillez considérer que nous ne sommes pas en mesure de répondre favorablement à votre candidature.",paragraph_4:"Toutefois, avec votre accord, nous souhaitons garder votre dossier, afin de pouvoir vous proposer d'autres possibilités de collaboration.",paragraph_5:"Nous vous prions d'agréer, Chère Candidate, Cher Candidat, nos respectueuses salutations.",closing_1:"Cordialement,",closing_2:"Le service recrutement",footer_text:"Route de Saint-Julien 292A, 1258 Perly, Genève CH | +41 22 771 31 76 | [email protected]"};function nz(){const[e,t]=y.useState(rm),[n,r]=y.useState(!0),[o,l]=y.useState(!1),[c,d]=y.useState("editor"),[h,f]=y.useState(""),[m,g]=y.useState(""),[v,N]=y.useState(!1),[j,b]=y.useState(!1);y.useEffect(()=>{(async()=>{try{const P=await Ne.entities.ApplicationPDFTemplate.list();P.length>0&&(t({...rm,...P[0]}),f(P[0].logo_url||""),g(P[0].footer_image_url||""))}catch(P){console.error("Error loading template:",P)}finally{r(!1)}})()},[]);const C=async()=>{l(!0);try{const R={...e,logo_url:h,footer_image_url:m},P=await Ne.entities.ApplicationPDFTemplate.list();P.length>0?await Ne.entities.ApplicationPDFTemplate.update(P[0].id,R):await Ne.entities.ApplicationPDFTemplate.create(R),tt.success("Template PDF sauvegardé")}catch(R){console.error("Error saving template:",R),tt.error("Erreur lors de la sauvegarde")}finally{l(!1)}},S=(R,P)=>{t(L=>({...L,[R]:P}))},k=()=>{t(rm),f(""),g("")},_=async R=>{const P=R.target.files[0];if(P){N(!0);try{const{file_url:L}=await Ne.integrations.Core.UploadFile({file:P});f(L),tt.success("Logo uploadé")}catch(L){console.error("Upload error:",L),tt.error("Erreur lors de l'upload")}finally{N(!1)}}},T=async R=>{const P=R.target.files[0];if(P){b(!0);try{const{file_url:L}=await Ne.integrations.Core.UploadFile({file:P});g(L),tt.success("Image pied de page uploadée")}catch(L){console.error("Upload error:",L),tt.error("Erreur lors de l'upload")}finally{b(!1)}}};return n?i.jsx("div",{className:"flex items-center justify-center p-8",children:i.jsx(Jo,{className:"w-6 h-6 animate-spin text-slate-400"})}):i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"flex justify-between items-center",children:[i.jsx("h2",{className:"text-2xl font-bold text-white",children:"Template PDF de Confirmation"}),i.jsxs("div",{className:"flex gap-2",children:[i.jsxs(te,{onClick:()=>d(c==="editor"?"preview":"editor"),variant:"outline",className:"border-slate-600 text-white hover:bg-slate-800",children:[i.jsx(Fd,{className:"w-4 h-4 mr-2"}),c==="editor"?"Aperçu":"Éditer"]}),i.jsx(te,{onClick:k,variant:"outline",className:"border-slate-600 text-white hover:bg-slate-800",children:"Réinitialiser"}),i.jsxs(te,{onClick:C,disabled:o,className:"bg-green-600 hover:bg-green-700",children:[i.jsx(uR,{className:"w-4 h-4 mr-2"}),o?"Sauvegarde...":"Sauvegarder"]})]})]}),c==="editor"?i.jsxs(ct,{className:"bg-slate-900 border-slate-800 p-6 space-y-6",children:[i.jsxs("div",{className:"space-y-2 pb-4 border-b border-slate-700",children:[i.jsx(Qe,{className:"text-slate-300",children:"Logo / En-tête"}),h&&i.jsx("div",{className:"mb-3",children:i.jsx("img",{src:h,alt:"Logo",className:"h-20 object-contain"})}),i.jsxs("div",{className:"relative",children:[i.jsx("input",{type:"file",onChange:_,className:"hidden",id:"logo-upload",accept:"image/*"}),i.jsx("label",{htmlFor:"logo-upload",className:"cursor-pointer",children:i.jsx(te,{asChild:!0,disabled:v,className:"bg-slate-800 hover:bg-slate-700 text-white",children:i.jsxs("span",{children:[i.jsx(cd,{className:"w-4 h-4 mr-2"}),v?"Upload...":"Uploader un logo"]})})})]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Qe,{className:"text-slate-300",children:"Salutation"}),i.jsx(Gt,{value:e.greeting,onChange:R=>S("greeting",R.target.value),className:"bg-slate-950/50 border-slate-700 text-white min-h-16"})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Qe,{className:"text-slate-300",children:"Paragraphe 1"}),i.jsx(Gt,{value:e.paragraph_1,onChange:R=>S("paragraph_1",R.target.value),className:"bg-slate-950/50 border-slate-700 text-white min-h-20"})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Qe,{className:"text-slate-300",children:"Paragraphe 2"}),i.jsx(Gt,{value:e.paragraph_2,onChange:R=>S("paragraph_2",R.target.value),className:"bg-slate-950/50 border-slate-700 text-white min-h-16"})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Qe,{className:"text-slate-300",children:"Paragraphe 3"}),i.jsx(Gt,{value:e.paragraph_3,onChange:R=>S("paragraph_3",R.target.value),className:"bg-slate-950/50 border-slate-700 text-white min-h-24"})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Qe,{className:"text-slate-300",children:"Paragraphe 4"}),i.jsx(Gt,{value:e.paragraph_4,onChange:R=>S("paragraph_4",R.target.value),className:"bg-slate-950/50 border-slate-700 text-white min-h-20"})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Qe,{className:"text-slate-300",children:"Paragraphe 5"}),i.jsx(Gt,{value:e.paragraph_5,onChange:R=>S("paragraph_5",R.target.value),className:"bg-slate-950/50 border-slate-700 text-white min-h-16"})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Qe,{className:"text-slate-300",children:"Formule de politesse"}),i.jsx(Gt,{value:e.closing_1,onChange:R=>S("closing_1",R.target.value),className:"bg-slate-950/50 border-slate-700 text-white min-h-16"})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Qe,{className:"text-slate-300",children:"Signature"}),i.jsx(Gt,{value:e.closing_2,onChange:R=>S("closing_2",R.target.value),className:"bg-slate-950/50 border-slate-700 text-white min-h-16"})]}),i.jsxs("div",{className:"space-y-4 pt-4 border-t border-slate-700",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx(Qe,{className:"text-slate-300",children:"Image Pied de page"}),m&&i.jsx("div",{className:"mb-3",children:i.jsx("img",{src:m,alt:"Footer",className:"h-12 object-contain"})}),i.jsxs("div",{className:"relative",children:[i.jsx("input",{type:"file",onChange:T,className:"hidden",id:"footer-upload",accept:"image/*"}),i.jsx("label",{htmlFor:"footer-upload",className:"cursor-pointer",children:i.jsx(te,{asChild:!0,disabled:j,className:"bg-slate-800 hover:bg-slate-700 text-white",children:i.jsxs("span",{children:[i.jsx(cd,{className:"w-4 h-4 mr-2"}),j?"Upload...":"Uploader image pied de page"]})})})]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Qe,{className:"text-slate-300",children:"Texte Pied de page"}),i.jsx(Gt,{value:e.footer_text,onChange:R=>S("footer_text",R.target.value),className:"bg-slate-950/50 border-slate-700 text-white min-h-16"})]})]})]}):i.jsx(ct,{className:"bg-slate-900 border-slate-800 p-8",children:i.jsxs("div",{className:"bg-white rounded p-8 max-w-3xl mx-auto",style:{minHeight:"800px",display:"flex",flexDirection:"column"},children:[h&&i.jsx("div",{className:"mb-6",children:i.jsx("img",{src:h,alt:"Logo",className:"h-24 object-contain"})}),i.jsxs("div",{className:"prose prose-sm max-w-none flex-1",children:[i.jsx("div",{dangerouslySetInnerHTML:{__html:e.greeting},className:"mb-4 font-semibold"}),i.jsx("div",{dangerouslySetInnerHTML:{__html:e.paragraph_1},className:"mb-4"}),i.jsx("div",{dangerouslySetInnerHTML:{__html:e.paragraph_2}
489,className:"mb-4"}),i.jsx("div",{dangerouslySetInnerHTML:{__html:e.paragraph_3},className:"mb-4"}),i.jsx("div",{dangerouslySetInnerHTML:{__html:e.paragraph_4},className:"mb-4"}),i.jsx("div",{dangerouslySetInnerHTML:{__html:e.paragraph_5},className:"mb-4"}),i.jsx("div",{dangerouslySetInnerHTML:{__html:e.closing_1},className:"mb-2 font-semibold"}),i.jsx("div",{dangerouslySetInnerHTML:{__html:e.closing_2}})]}),i.jsxs("div",{className:"mt-8 pt-6 border-t border-gray-300 flex flex-col items-center gap-3",children:[m&&i.jsx("img",{src:m,alt:"Footer",className:"h-10 object-contain"}),i.jsx("div",{className:"text-xs text-gray-600 text-center",children:e.footer_text})]})]})})]})}function rz(){const[e,t]=y.useState("overview");Bd();const n=Er(),{data:r,isLoading:o,error:l}=Bn({queryKey:["current-user"],queryFn:async()=>await Ne.auth.isAuthenticated()?await Ne.auth.me():(Ne.auth.redirectToLogin("/Admin"),null),retry:!1}),{data:c=[],isLoading:d}=Bn({queryKey:["candidates"],queryFn:()=>Ne.entities.Candidate.list("-created_date"),enabled:!!r&&r.role==="admin"}),{data:h=[],isLoading:f}=Bn({queryKey:["missions"],queryFn:()=>Ne.entities.Mission.list("-created_date"),enabled:!!r&&r.role==="admin"});return it.useEffect(()=>{if(!r||r.role!=="admin")return;const m=Ne.entities.Candidate.subscribe(()=>{n.invalidateQueries(["candidates"])}),g=Ne.entities.Mission.subscribe(()=>{n.invalidateQueries(["missions"])});return()=>{m(),g()}},[r]),o?i.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-950 via-slate-900 to-slate-950 flex items-center justify-center",children:i.jsxs("div",{className:"text-white text-center",children:[i.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-white mx-auto mb-4"}),i.jsx("p",{children:"Chargement..."})]})}):r&&r.role!=="admin"?i.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-950 via-slate-900 to-slate-950 flex items-center justify-center px-6",children:i.jsx(q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"max-w-md w-full",children:i.jsxs("div",{className:"bg-slate-900/80 border border-slate-800 backdrop-blur-sm rounded-2xl p-8 text-center",children:[i.jsx("div",{className:"w-16 h-16 bg-red-500/10 rounded-full flex items-center justify-center mx-auto mb-4",children:i.jsx(gR,{className:"w-8 h-8 text-red-500"})}),i.jsx("h2",{className:"text-2xl font-bold text-white mb-3",children:"Accès refusé"}),i.jsx("p",{className:"text-slate-400 mb-6",children:"Vous n'avez pas l'autorisation d'accéder à cette page."}),i.jsx("button",{onClick:()=>Ne.auth.logout("/Home"),className:"w-full bg-red-500 hover:bg-red-600 text-white font-semibold py-3 px-6 rounded-lg transition-colors",children:"Retour à l'accueil"})]})})}):r?i.jsx(pF,{children:i.jsxs("div",{className:"max-w-[1600px] mx-auto",children:[i.jsx(q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"mb-10",children:i.jsx("p",{className:"text-slate-400 text-lg",children:"Gérez vos candidats, postes, demandes et contenus"})}),i.jsxs(fF,{value:e,onValueChange:t,className:"space-y-8",children:[i.jsxs(G2,{className:"bg-slate-900/80 border border-slate-800 p-1 h-auto backdrop-blur-sm flex flex-wrap justify-start gap-1",children:[i.jsxs(Br,{value:"overview",className:"data-[state=active]:bg-gradient-to-r data-[state=active]:from-amber-500 data-[state=active]:to-amber-600 data-[state=active]:text-white px-4 sm:px-6 py-2 sm:py-3 text-xs sm:text-sm",children:[i.jsx(xP,{className:"w-4 h-4 mr-2"}),i.jsx("span",{className:"hidden sm:inline",children:"Vue d'ensemble"}),i.jsx("span",{className:"sm:hidden",children:"Vue"})]}),i.jsxs(Br,{value:"candidates",className:"data-[state=active]:bg-gradient-to-r data-[state=active]:from-amber-500 data-[state=active]:to-amber-600 data-[state=active]:text-white px-4 sm:px-6 py-2 sm:py-3 text-xs sm:text-sm",children:[i.jsx(Zo,{className:"w-4 h-4 mr-2"}),"Candidats"]}),i.jsxs(Br,{value:"missions",className:"data-[state=active]:bg-gradient-to-r data-[state=active]:from-amber-500 data-[state=active]:to-amber-600 data-[state=active]:text-white px-4 sm:px-6 py-2 sm:py-3 text-xs sm:text-sm",children:[i.jsx(zs,{className:"w-4 h-4 mr-2"}),i.jsx("span",{className:"hidden sm:inline",children:"Postes"}),i.jsx("span",{className:"sm:hidden",children:"Postes"})]}),i.jsxs(Br,{value:"requests",className:"data-[state=active]:bg-gradient-to-r data-[state=active]:from-amber-500 data-[state=active]:to-amber-600 data-[state=active]:text-white px-4 sm:px-6 py-2 sm:py-3 text-xs sm:text-sm",children:[i.jsx(xg,{className:"w-4 h-4 mr-2"}),i.jsx("span",{className:"hidden sm:inline",children:"Demandes"}),i.jsx("span",{className:"sm:hidden",children:"Demandes"})]}),i.jsxs(Br,{value:"blog",className:"data-[state=active]:bg-gradient-to-r data-[state=active]:from-amber-500 data-[state=active]:to-amber-600 data-[state=active]:text-white px-4 sm:px-6 py-2 sm:py-3 text-xs sm:text-sm",children:[i.jsx(Tl,{className:"w-4 h-4 mr-2"}),i.jsx("span",{className:"hidden sm:inline",children:"Articles"}),i.jsx("span",{className:"sm:hidden",children:"Blog"})]}),i.jsxs(Br,{value:"media",className:"data-[state=active]:bg-gradient-to-r data-[state=active]:from-amber-500 data-[state=active]:to-amber-600 data-[state=active]:text-white px-4 sm:px-6 py-2 sm:py-3 text-xs sm:text-sm",children:[i.jsx(GP,{className:"w-4 h-4 mr-2"}),i.jsx("span",{className:"hidden sm:inline",children:"Médiathèque"}),i.jsx("span",{className:"sm:hidden",children:"Média"})]}),i.jsxs(Br,{value:"newsletter",className:"data-[state=active]:bg-gradient-to-r data-[state=active]:from-amber-500 data-[state=active]:to-amber-600 data-[state=active]:text-white px-4 sm:px-6 py-2 sm:py-3 text-xs sm:text-sm",children:[i.jsx(Qs,{className:"w-4 h-4 mr-2"}),i.jsx("span",{className:"hidden sm:inline",children:"Newsletter"}),i.jsx("span",{className:"sm:hidden",children:"Mail"})]}),i.jsxs(Br,{value:"pdf-template",className:"data-[state=active]:bg-gradient-to-r data-[state=active]:from-amber-500 data-[state=active]:to-amber-600 data-[state=active]:text-white px-4 sm:px-6 py-2 sm:py-3 text-xs sm:text-sm",children:[i.jsx(Tl,{className:"w-4 h-4 mr-2"}),i.jsx("span",{className:"hidden sm:inline",children:"Template PDF"}),i.jsx("span",{className:"sm:hidden",children:"PDF"})]})]}),i.jsx($r,{value:"overview",children:i.jsx(xF,{candidates:c,missions:h,loading:d||f})}),i.jsx($r,{value:"candidates",children:i.jsx(v$,{candidates:c,loading:d})}),i.jsx($r,{value:"missions",children:i.jsx(GU,{missions:h,loading:f})}),i.jsx($r,{value:"requests",children:i.jsx(QU,{})}),i.jsx($r,{value:"blog",children:i.jsx(JU,{})}),i.jsx($r,{value:"media",children:i.jsx(ez,{})}),i.jsx($r,{value:"newsletter",children:i.jsx(tz,{})}),i.jsx($r,{value:"pdf-template",children:i.jsx(nz,{})})]})]})}):null}function sz(){const t=new URLSearchParams(window.location.search).get("id"),{data:n,isLoading:r}=Bn({queryKey:["blog-article",t],queryFn:async()=>(await Ne.entities.BlogArticle.list()).find(c=>c.id===t)}),o=l=>new Date(l).toLocaleDateString("fr-FR",{day:"numeric",month:"long",year:"numeric"});return r?i.jsx("div",{className:"min-h-screen bg-white pt-32 pb-20",children:i.jsx("div",{className:"max-w-4xl mx-auto px-6",children:i.jsxs("div",{className:"animate-pulse space-y-6",children:[i.jsx("div",{className:"h-8 bg-slate-200 rounded w-3/4"}),i.jsx("div",{className:"h-96 bg-slate-200 rounded"}),i.jsxs("div",{className:"space-y-3",children:[i.jsx("div",{className:"h-4 bg-slate-200 rounded"}),i.jsx("div",{className:"h-4 bg-slate-200 rounded"}),i.jsx("div",{className:"h-4 bg-slate-200 rounded w-5/6"})]})]})})}):n?i.jsxs("div",{className:"min-h-screen bg-white",children:[i.jsx("div",{className:"pt-32 pb-12 bg-slate-900",children:i.jsxs("div",{className:"max-w-4xl mx-auto px-6",children:[i.jsx(Be,{to:"/Conseils",children:i.jsxs(te,{variant:"ghost",className:"text-white hover:text-slate-300 hover:bg-white/10 mb-6",children:[i.jsx(Od,{className:"w-4 h-4 mr-2"}),"Retour aux articles"]})}),i.jsxs(q.div,{initial:{opacity:0,y:30}
489,animate:{opacity:1,y:0},transition:{duration:.6},children:[i.jsx("div",{className:"inline-block mb-4",children:i.jsx("span",{className:"bg-red-500 text-white text-sm font-semibold px-4 py-2 rounded-full uppercase",children:n.category==="carriere"?"Conseils carrière":"Conseils recrutement"})}),i.jsx("h1",{className:"text-4xl lg:text-5xl font-bold text-white mb-6",children:n.title}),i.jsxs("div",{className:"flex items-center gap-6 text-slate-300",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(Dd,{className:"w-4 h-4"}),i.jsx("span",{children:o(n.published_date)})]}),n.author&&i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(wg,{className:"w-4 h-4"}),i.jsx("span",{children:n.author})]})]})]})]})}),i.jsx("div",{className:"max-w-6xl mx-auto px-6 -mt-20 mb-12",children:i.jsx(q.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{delay:.2,duration:.6},className:"rounded-2xl overflow-hidden shadow-2xl",children:i.jsx("img",{src:n.image_url,alt:n.title,className:"w-full h-[400px] object-cover"})})}),i.jsxs("div",{className:"max-w-4xl mx-auto px-6 pb-20",children:[i.jsxs(q.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{delay:.4,duration:.6},className:"prose prose-lg max-w-none",children:[n.excerpt&&i.jsx("p",{className:"text-xl text-slate-700 font-medium mb-8 leading-relaxed",children:n.excerpt}),i.jsx("div",{className:"text-slate-700 leading-relaxed space-y-6",children:n.content?i.jsx("div",{style:{whiteSpace:"pre-wrap"},children:n.content}):i.jsxs("div",{className:"space-y-6",children:[i.jsx("p",{children:"Dans le contexte professionnel suisse et particulièrement à Genève, il est essentiel de comprendre les spécificités du marché du travail local. Elite Sourcing vous accompagne dans votre démarche avec une expertise reconnue de la région genevoise et romande."}),i.jsx("h2",{className:"text-2xl font-bold text-slate-900 mt-8 mb-4",children:"Pourquoi cette approche est importante"}),i.jsx("p",{children:"Le marché du travail genevois présente des particularités uniques. Que vous soyez candidat en recherche d'opportunités ou entreprise à la recherche de talents, comprendre ces nuances fait toute la différence."}),i.jsx("h2",{className:"text-2xl font-bold text-slate-900 mt-8 mb-4",children:"Notre expertise locale"}),i.jsx("p",{children:"Basée à Genève, Elite Sourcing connaît parfaitement le tissu économique de la région. Nous entretenons des relations solides avec les entreprises locales et comprenons les attentes spécifiques du marché genevois et suisse romand."}),i.jsx("h2",{className:"text-2xl font-bold text-slate-900 mt-8 mb-4",children:"Comment nous pouvons vous aider"}),i.jsx("p",{children:"Notre équipe vous accompagne personnellement dans votre démarche. Que ce soit pour optimiser votre candidature, préparer vos entretiens ou identifier les meilleurs talents pour votre entreprise, nous mettons notre expertise à votre service."}),i.jsxs("div",{className:"bg-slate-50 border-l-4 border-red-500 p-6 my-8",children:[i.jsx("p",{className:"text-slate-900 font-semibold mb-2",children:"💡 Conseil Elite Sourcing"}),i.jsx("p",{className:"text-slate-700",children:"N'hésitez pas à nous contacter pour discuter de votre situation spécifique. Chaque parcours est unique et mérite une attention particulière."})]}),i.jsx("p",{children:"Pour en savoir plus sur nos services ou pour une consultation personnalisée, contactez-nous directement. Notre équipe basée à Genève se tient à votre disposition pour répondre à toutes vos questions."})]})})]}),i.jsxs(q.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{delay:.6,duration:.6},className:"mt-12 bg-slate-900 rounded-2xl p-8 text-center",children:[i.jsx("h3",{className:"text-2xl font-bold text-white mb-4",children:"Besoin d'accompagnement personnalisé ?"}),i.jsx("p",{className:"text-slate-300 mb-6",children:"Notre équipe à Genève est à votre écoute pour vous guider dans votre démarche"}),i.jsx(Be,{to:"/Contact",children:i.jsx(te,{className:"bg-red-500 hover:bg-red-600 text-white px-8 py-6 text-lg",children:"Contactez-nous"})})]})]})]}):i.jsx("div",{className:"min-h-screen bg-white pt-32 pb-20",children:i.jsxs("div",{className:"max-w-4xl mx-auto px-6 text-center",children:[i.jsx("h1",{className:"text-2xl font-bold text-slate-900 mb-4",children:"Article introuvable"}),i.jsx(Be,{to:"/Conseils",children:i.jsx(te,{children:"Retour aux articles"})})]})})}function iz(){const e=Bd(),[t,n]=y.useState(!1),[r,o]=y.useState(!1),[l,c]=y.useState(!1),[d,h]=y.useState(!1),[f,m]=y.useState(""),[g,v]=y.useState(!1),j=new URLSearchParams(window.location.search).get("position");it.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]);
489const[b,C]=y.useState({full_name:"",email:"",phone:"",position:j||"",experience_years:"",age:"",situation:"",has_children:"",number_of_children:"",status:"new",salary_expectation:"",availability:"",cv_url:"",notes:"",source:"website"}),[S,k]=y.useState({}),_=(M,G)=>{C(H=>({...H,[M]:G})),S[M]&&k(H=>({...H,[M]:""}))},T=()=>{var G,H,ne;const M={};return(G=b.full_name)!=null&&G.trim()||(M.full_name="Le nom est requis"),(H=b.email)!=null&&H.trim()||(M.email="L'email est requis"),b.email&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(b.email)&&(M.email="Email invalide"),b.phone&&!/^\+?[0-9\s\-()]+$/.test(b.phone)&&(M.phone="Téléphone invalide"),(ne=b.position)!=null&&ne.trim()||(M.position="Le poste est requis"),k(M),Object.keys(M).length===0},R=async M=>{const G=M.target.files[0];if(G){o(!0);try{const{file_url:H}=await Ne.integrations.Core.UploadFile({file:G});_("cv_url",H)}catch(H){console.error("Upload error:",H)}finally{o(!1)}}},P=async M=>{if(M.preventDefault(),!T()){n(!1);return}n(!0);try{const G={...b,age:b.age?Number(b.age):void 0,number_of_children:b.number_of_children?Number(b.number_of_children):void 0,salary_expectation:b.salary_expectation?Number(b.salary_expectation):void 0,experience_years:b.experience_years?Number(b.experience_years):void 0};await Ne.entities.Candidate.create(G),m(b.full_name);try{await Ne.integrations.Core.SendEmail({to:"[email protected]",subject:`Nouvelle candidature - ${b.full_name}`,body:`
490Nouvelle candidature reçue:
491
492Nom: ${b.full_name}
493Email: ${b.email}
494Téléphone: ${b.phone}
495Poste recherché: ${b.position}
496
497Âge: ${b.age||"Non renseigné"}
498Situation: ${b.situation||"Non renseignée"}
499Enfants: ${b.has_children||"Non renseigné"}
500Nombre d'enfants: ${b.number_of_children||"Non renseigné"}
501
502Disponibilité: ${b.availability||"Non renseignée"}
503Salaire souhaité: ${b.salary_expectation||"Non renseigné"}
504
505CV: ${b.cv_url||"Non fourni"}
506
507Message:
508${b.notes||"Aucun message"}
509          `})}catch(H){console.error("Email send error:",H)}h(!0),setTimeout(()=>{c(!0)},1500)}catch(G){console.error("Submit error:",G),alert("Erreur lors de l'envoi de la candidature. Veuillez réessayer."),n(!1)}},L=async()=>{v(!0);try{let G=(await Ne.functions.invoke("generateApplicationPDFNew",{candidateName:f})).data;typeof G=="string"&&(G=new TextEncoder().encode(G));const H=new Blob([G],{type:"application/pdf"}),ne=window.URL.createObjectURL(H),ce=document.createElement("a");ce.href=ne,ce.download=`confirmation_postulation_${(f==null?void 0:f.replace(/\s+/g,"_"))||"candidat"}.pdf`,ce.click(),setTimeout(()=>window.URL.revokeObjectURL(ne),100),tt.success("PDF téléchargé avec succès")}catch(M){console.error("PDF error:",M),tt.error("Erreur lors du téléchargement du PDF")}finally{v(!1)}};return l?i.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-950 via-slate-900 to-slate-950 flex items-center justify-center px-6",children:i.jsxs(q.div,{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},className:"text-center max-w-lg",children:[i.jsx("div",{className:"inline-flex p-6 rounded-full bg-green-500/10 border border-green-500/20 mb-6",children:i.jsx(Nl,{className:"w-16 h-16 text-green-500"})}),i.jsx("h2",{className:"text-3xl font-bold text-white mb-4",children:"Candidature envoyée !"}),i.jsx("p",{className:"text-slate-400 mb-8",children:"Nous reviendrons vers vous très prochainement."}),i.jsxs("div",{className:"flex gap-4 justify-center",children:[i.jsxs(te,{onClick:L,disabled:g,className:"bg-gradient-to-r from-amber-500 to-amber-600 hover:from-amber-600 hover:to-amber-700 text-white",children:[i.jsx(VP,{className:"w-5 h-5 mr-2"}),g?"Téléchargement...":"Télécharger confirmation"]}),i.jsx(te,{onClick:()=>e(-1),className:"bg-white text-slate-900 hover:bg-slate-100",children:"Retour"})]})]})}):i.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-slate-950 via-slate-900 to-slate-950 pt-32 pb-12 px-6",children:[i.jsx(ts,{title:"Déposer un CV | Candidature Spontanée - Elite Sourcing",description:"Déposez votre CV en ligne et rejoignez notre vivier de talents. Elite Sourcing vous contactera dès qu'une opportunité correspondant à votre profil sera disponible.",keywords:"déposer CV, candidature spontanée, postuler Elite Sourcing, envoyer CV Genève",canonical:"/CandidateForm"}),i.jsx("div",{className:"max-w-3xl mx-auto",children:i.jsxs(q.div,{initial:{opacity:0,y:20}
509,animate:{opacity:1,y:0},className:"bg-slate-900/80 backdrop-blur-sm border border-slate-800 rounded-3xl p-8 md:p-12",children:[i.jsxs("div",{className:"flex justify-between items-start mb-10",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"text-4xl font-bold text-white mb-4",children:"Postuler"}),i.jsx("p",{className:"text-slate-400 text-lg",children:"Remplissez le formulaire ci-dessous et rejoignez notre réseau de talents"})]}),i.jsx(Be,{to:"/Home",children:i.jsx(q.div,{whileHover:{x:-5},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:i.jsxs(te,{className:"bg-slate-800 hover:bg-slate-700 text-white border border-slate-600 px-6 py-6 text-base group shadow-lg",children:[i.jsx(Od,{className:"w-5 h-5 mr-2 transition-transform group-hover:-translate-x-1"}),"Retour"]})})})]}),i.jsxs("form",{onSubmit:P,className:"space-y-6",children:[i.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx(Qe,{className:"text-slate-300",children:"Nom complet *"}),i.jsx(qe,{required:!0,value:b.full_name,onChange:M=>_("full_name",M.target.value),className:`bg-slate-950/50 border-slate-700 text-white ${S.full_name?"border-red-500":""}`,placeholder:"Jean Dupont"}),S.full_name&&i.jsx("p",{className:"text-sm text-red-500",children:S.full_name})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Qe,{className:"text-slate-300",children:"Email *"}),i.jsx(qe,{type:"email",required:!0,value:b.email,onChange:M=>_("email",M.target.value),className:`bg-slate-950/50 border-slate-700 text-white ${S.email?"border-red-500":""}`,placeholder:"[email protected]"}),S.email&&i.jsx("p",{className:"text-sm text-red-500",children:S.email})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Qe,{className:"text-slate-300",children:"Téléphone (avec préfixe)"}),i.jsx(qe,{type:"tel",value:b.phone,onChange:M=>_("phone",M.target.value),className:`bg-slate-950/50 border-slate-700 text-white ${S.phone?"border-red-500":""}`,placeholder:"+41 22 123 45 67"}),S.phone&&i.jsx("p",{className:"text-sm text-red-500",children:S.phone})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Qe,{className:"text-slate-300",children:"Poste recherché *"}),i.jsx(qe,{required:!0,value:b.position,onChange:M=>_("position",M.target.value),className:`bg-slate-950/50 border-slate-700 text-white ${S.position?"border-red-500":""}`,placeholder:"Directeur Marketing"}),S.position&&i.jsx("p",{className:"text-sm text-red-500",children:S.position})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Qe,{className:"text-slate-300",children:"Disponibilité"}),i.jsxs(on,{value:b.availability,onValueChange:M=>_("availability",M),children:[i.jsx(Xt,{className:"bg-slate-950/50 border-slate-700 text-white",children:i.jsx(an,{placeholder:"Sélectionner"})}),i.jsxs(Jt,{children:[i.jsx(pe,{value:"immediate",children:"Immédiate"}),i.jsx(pe,{value:"2_weeks",children:"2 semaines"}),i.jsx(pe,{value:"1_month",children:"1 mois"}),i.jsx(pe,{value:"3_months",children:"3 mois"})]})]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Qe,{className:"text-slate-300",children:"Âge"}),i.jsx(qe,{type:"number",value:b.age,onChange:M=>_("age",M.target.value),className:"bg-slate-950/50 border-slate-700 text-white",placeholder:"30"})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Qe,{className:"text-slate-300",children:"Situation"}),i.jsxs(on,{value:b.situation,onValueChange:M=>_("situation",M),children:[i.jsx(Xt,{className:"bg-slate-950/50 border-slate-700 text-white",children:i.jsx(an,{placeholder:"Sélectionner"})}),i.jsxs(Jt,{children:[i.jsx(pe,{value:"celibataire",children:"Célibataire"}),i.jsx(pe,{value:"marie",children:"Marié(e)"}),i.jsx(pe,{value:"divorce",children:"Divorcé(e)"}),i.jsx(pe,{value:"concubinage",children:"Concubinage"})]})]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Qe,{className:"text-slate-300",children:"Enfants"}),i.jsxs(on,{value:b.has_children,onValueChange:M=>_("has_children",M),children:[i.jsx(Xt,{className:"bg-slate-950/50 border-slate-700 text-white",children:i.jsx(an,{placeholder:"Sélectionner"})}),i.jsxs(Jt,{children:[i.jsx(pe,{value:"oui",children:"Oui"}),i.jsx(pe,{value:"non",children:"Non"})]})]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Qe,{className:"text-slate-300",children:"Nombre d'enfants"}),i.jsx(qe,{type:"number",value:b.number_of_children,onChange:M=>_("number_of_children",M.target.value),className:"bg-slate-950/50 border-slate-700 text-white",placeholder:"0",min:"0"})]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Qe,{className:"text-slate-300",children:"CV"}),i.jsxs("div",{className:"relative",children:[i.jsx(qe,{type:"file",onChange:R,className:`bg-slate-950/50 border-slate-700 text-white file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:bg-amber-500/10 file:text-amber-500 hover:file:bg-amber-500/20 ${S.cv_url?"border-red-500":""}`}),r&&i.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2",children:i.jsx(Jo,{className:"w-5 h-5 text-amber-500 animate-spin"})})]}),b.cv_url&&i.jsxs("p",{className:"text-sm text-green-500 flex items-center gap-2",children:[i.jsx(Nl,{className:"w-4 h-4"}),"CV téléchargé avec succès"]}),S.cv_url&&i.jsx("p",{className:"text-sm text-red-500",children:S.cv_url})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Qe,{className:"text-slate-300",children:"Message / Informations complémentaires"}),i.jsx(Gt,{value:b.notes,onChange:M=>_("notes",M.target.value),className:"bg-slate-950/50 border-slate-700 text-white min-h-32",placeholder:"Parlez-nous de votre parcours et de vos aspirations..."})]}),i.jsx(te,{type:"submit",disabled:t||d,className:`w-full py-6 text-lg rounded-full transition-all duration-500 ${d?"bg-green-500 hover:bg-green-600":"bg-gradient-to-r from-amber-500 to-amber-600 hover:from-amber-600 hover:to-amber-700 disabled:opacity-50 disabled:cursor-not-allowed"} text-white`,children:d?i.jsxs(i.Fragment,{children:[i.jsx(Nl,{className:"w-5 h-5 mr-2"}),"Transmis"]}):t?i.jsxs(i.Fragment,{children:[i.jsx(Jo,{className:"w-5 h-5 mr-2 animate-spin"}),"Validation en cours..."]}):"Valider ma candidature"})]})]})})]})}function oz(){const[e,t]=y.useState("all"),[n,r]=y.useState(1),o=9,{data:l=[],isLoading:c}=Bn({queryKey:["blog-articles"],queryFn:()=>Ne.entities.BlogArticle.list("-published_date")}),d=l.filter(j=>e==="all"||j.category===e),h=l.filter(j=>j.category==="carriere").length,f=l.filter(j=>j.category==="recrutement").length,m=Math.ceil(d.length/o),g=(n-1)*o,v=d.slice(g,g+o),N=j=>j?new Date(j).toLocaleDateString("fr-FR",{day:"numeric",month:"long",year:"numeric"}):new Date().toLocaleDateString("fr-FR",{day:"numeric",month:"long",year:"numeric"});return i.jsxs("div",{className:"bg-white",children:[i.jsx(ts,{title:"Conseils Carrière & Recrutement à Genève | Blog Elite Sourcing",description:"Conseils d'experts pour réussir votre carrière et vos recrutements en Suisse romande. Articles pratiques, astuces emploi et bonnes pratiques RH par Elite Sourcing Genève.",keywords:"conseils carrière Genève, blog recrutement Suisse, astuces emploi Suisse romande, tendances RH Genève, Elite Sourcing conseils",canonical:"/Conseils"}),i.jsx("section",{className:"bg-slate-900 text-white py-20",children:i.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[i.jsxs(q.div,{initial:{opacity:0,y:30}
509,animate:{opacity:1,y:0},transition:{duration:.6},children:[i.jsx("h1",{className:"text-4xl lg:text-5xl font-bold mb-6",children:"Conseils Carrière & Recrutement à Genève"}),i.jsx("p",{className:"text-lg text-slate-300 max-w-3xl leading-relaxed",children:"Nous sommes ravis de vous présenter notre blog dédié au recrutement et à la gestion de carrière. Vous y trouverez des articles pratiques et informatifs qui vous aideront à développer vos compétences professionnelles ou à recruter les meilleurs talents pour votre entreprise."})]}),i.jsxs("div",{className:"flex flex-wrap gap-4 mt-12",children:[i.jsx(te,{onClick:()=>{t("all"),r(1)},className:e==="all"?"bg-red-500 text-white hover:bg-red-600 border-0":"bg-white text-slate-900 hover:bg-slate-100 border-0",children:"Tous les articles"}),i.jsxs(te,{onClick:()=>{t("carriere"),r(1)},className:e==="carriere"?"bg-red-500 text-white hover:bg-red-600 border-0":"bg-white text-slate-900 hover:bg-slate-100 border-0",children:["Conseils carrière (",h,")"]}),i.jsxs(te,{onClick:()=>{t("recrutement"),r(1)},className:e==="recrutement"?"bg-red-500 text-white hover:bg-red-600 border-0":"bg-white text-slate-900 hover:bg-slate-100 border-0",children:["Conseils recrutement (",f,")"]})]})]})}),i.jsx("section",{className:"py-16 bg-slate-50",children:i.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[c?i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[...Array(6)].map((j,b)=>i.jsxs("div",{className:"bg-white rounded-lg overflow-hidden shadow-lg animate-pulse",children:[i.jsx("div",{className:"h-48 bg-slate-200"}),i.jsxs("div",{className:"p-6 space-y-3",children:[i.jsx("div",{className:"h-4 bg-slate-200 rounded w-3/4"}),i.jsx("div",{className:"h-3 bg-slate-200 rounded w-1/2"})]})]},b))}):v.length===0?i.jsx("div",{className:"text-center py-12",children:i.jsx("p",{className:"text-slate-600",children:"Aucun article disponible pour cette catégorie."})}):i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:v.map((j,b)=>i.jsx(q.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.4,delay:b*.1},children:i.jsx(Be,{to:`/ArticleDetail?id=${j.id}`,children:i.jsxs(ct,{className:"overflow-hidden shadow-lg hover:shadow-xl transition-all duration-300 cursor-pointer group h-full flex flex-col",children:[i.jsxs("div",{className:"relative h-48 overflow-hidden",children:[i.jsx("img",{src:j.image_url,alt:`Article: ${j.title} - Elite Sourcing`,className:"w-full h-full object-cover group-hover:scale-110 transition-transform duration-300",loading:"lazy"}),i.jsx("div",{className:"absolute top-4 left-4",children:i.jsx("span",{className:"bg-slate-900 text-white text-xs font-semibold px-3 py-1 rounded-full uppercase",children:j.category==="carriere"?"Conseils carrière":"Conseils recrutement"})})]}),i.jsxs("div",{className:"p-6 flex flex-col flex-grow",children:[i.jsx("h3",{className:"text-xl font-bold text-slate-900 mb-3 group-hover:text-red-500 transition-colors",children:j.title}),i.jsx("p",{className:"text-sm text-slate-500 mt-auto",children:N(j.published_date)})]})]})})},j.id))}),m>1&&i.jsxs("div",{className:"flex justify-center items-center gap-2 mt-12",children:[i.jsx(te,{variant:"ghost",size:"icon",onClick:()=>r(j=>Math.max(1,j-1)),disabled:n===1,children:i.jsx(bP,{className:"w-5 h-5"})}),[...Array(m)].map((j,b)=>i.jsx(te,{variant:n===b+1?"default":"ghost",onClick:()=>r(b+1),className:n===b+1?"bg-slate-900 text-white":"text-slate-600",children:b+1},b)),i.jsx(te,{variant:"ghost",size:"icon",onClick:()=>r(j=>Math.min(m,j+1)),disabled:n===m,children:i.jsx(gj,{className:"w-5 h-5"})})]})]})})]})}function az(){const[e,t]=y.useState({firstName:"",lastName:"",email:"",phone:"",message:""}),[n,r]=y.useState(!1),[o,l]=y.useState(!1),[c,d]=y.useState({}),h=N=>{t({...e,[N.target.name]:N.target.value}),c[N.target.name]&&d(j=>({...j,[N.target.name]:""}))},f=()=>{var j,b,C,S;const N={};return(j=e.firstName)!=null&&j.trim()||(N.firstName="Le prénom est requis"),(b=e.lastName)!=null&&b.trim()||(N.lastName="Le nom est requis"),(C=e.email)!=null&&C.trim()||(N.email="L'email est requis"),e.email&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.email)&&(N.email="Email invalide"),e.phone&&!/^\+?[0-9\s\-()]+$/.test(e.phone)&&(N.phone="Téléphone invalide"),(S=e.message)!=null&&S.trim()||(N.message="Le message est requis"),d(N),Ob
509ject.keys(N).length===0},m=async N=>{if(N.preventDefault(),!f()){r(!1);return}r(!0);try{await Ne.integrations.Core.SendEmail({to:"[email protected]",subject:`Nouveau message de ${e.firstName} ${e.lastName}`,body:`Nom: ${e.firstName} ${e.lastName}
510    Email: ${e.email}
511    Téléphone: ${e.phone}
512
513    Message:
514    ${e.message}`}),l(!0),t({firstName:"",lastName:"",email:"",phone:"",message:""}),setTimeout(()=>l(!1),5e3)}catch{alert("Erreur lors de l'envoi du message. Veuillez réessayer."),r(!1)}},g={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1,delayChildren:.2}}},v={hidden:{opacity:0,y:30},visible:{opacity:1,y:0,transition:{duration:.5}}};return i.jsxs("div",{className:"min-h-screen bg-white",children:[i.jsx(ts,{title:"Contactez-nous | Elite Sourcing — Agence de Recrutement Genève",description:"Contactez Elite Sourcing pour tous vos besoins en recrutement. Route de Saint-Julien 292A, 1258 Perly, Genève. Tél: +41 22 771 31 76. Disponibles du lundi au vendredi, 08h00-17h30.",keywords:"contacter Elite Sourcing, agence recrutement Genève contact, adresse Elite Sourcing Perly, téléphone agence placement Genève",canonical:"/Contact"}),i.jsxs("section",{className:"relative min-h-[500px] flex items-center justify-center overflow-hidden",children:[i.jsx("div",{className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:"url(https://images.unsplash.com/photo-1423666639041-f56000c27a9a?w=1600&h=900&fit=crop)"},children:i.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-slate-900/95 via-slate-900/90 to-slate-900/95"})}),i.jsx("div",{className:"relative max-w-7xl mx-auto px-6 text-center",children:i.jsxs(q.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.8},children:[i.jsx(q.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{delay:.2,duration:.6},className:"inline-block mb-6",children:i.jsx("span",{className:"bg-red-500 text-white px-6 py-2 rounded-full text-sm font-semibold uppercase tracking-wide",children:"Contactez-nous"})}),i.jsx(q.h1,{className:"text-4xl md:text-5xl lg:text-6xl font-bold text-white mb-6",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{delay:.3,duration:.6},children:"Contactez-nous"}),i.jsx(q.p,{className:"text-xl md:text-2xl text-slate-200 max-w-3xl mx-auto",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{delay:.4,duration:.6},children:"Notre équipe est à votre disposition pour répondre à toutes vos questions"})]})}),i.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[...Array(20)].map((N,j)=>i.jsx(q.div,{className:"absolute w-2 h-2 bg-red-500/30 rounded-full",initial:{x:Math.random()*window.innerWidth,y:Math.random()*500},animate:{y:[null,-100],opacity:[.3,0]},transition:{duration:3+Math.random()*2,repeat:1/0,delay:Math.random()*2}},j))})]}),i.jsx("section",{className:"py-20 px-6",children:i.jsx(q.div,{className:"max-w-7xl mx-auto",variants:g,initial:"hidden",whileInView:"visible",viewport:{once:!0},children:i.jsxs("div",{className:"grid lg:grid-cols-2 gap-12",children:[i.jsx(q.div,{variants:v,children:i.jsxs(ct,{className:"p-8 lg:p-10 bg-white shadow-2xl border-0 relative overflow-hidden",children:[i.jsx("div",{className:"absolute top-0 left-0 right-0 h-2 bg-gradient-to-r from-red-500 via-red-600 to-red-500"}),i.jsx("h2",{className:"text-3xl font-bold text-slate-900 mb-2",children:"Envoyez-nous un message"}),i.jsx("p",{className:"text-slate-600 mb-8",children:"Remplissez le formulaire et nous vous répondrons dans les plus brefs délais"}),i.jsx(yr,{mode:"wait",children:o?i.jsxs(q.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},className:"flex flex-col items-center justify-center py-16",children:[i.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mb-4",children:i.jsx(Nl,{className:"w-10 h-10 text-green-600"})}),i.jsx("h3",{className:"text-2xl font-bold text-slate-900 mb-2",children:"Message envoyé !"}),i.jsx("p",{className:"text-slate-600 text-center",children:"Nous avons bien reçu votre message et vous répondrons rapidement."})]}):i.jsxs(q.form,{onSubmit:m,className:"space-y-6",initial:{opacity:1},exit:{opacity:0}
514,children:[i.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[i.jsxs(q.div,{whileFocus:{scale:1.02},transition:{duration:.2},children:[i.jsx("label",{className:"block text-sm font-semibold text-slate-700 mb-2",children:"Prénom *"}),i.jsx(qe,{name:"firstName",value:e.firstName,onChange:h,placeholder:"Votre prénom",required:!0,className:`h-12 ${c.firstName?"border-red-500":""}`}),c.firstName&&i.jsx("p",{className:"text-sm text-red-500 mt-1",children:c.firstName})]}),i.jsxs(q.div,{whileFocus:{scale:1.02},transition:{duration:.2},children:[i.jsx("label",{className:"block text-sm font-semibold text-slate-700 mb-2",children:"Nom *"}),i.jsx(qe,{name:"lastName",value:e.lastName,onChange:h,placeholder:"Votre nom",required:!0,className:`h-12 ${c.lastName?"border-red-500":""}`}),c.lastName&&i.jsx("p",{className:"text-sm text-red-500 mt-1",children:c.lastName})]})]}),i.jsxs(q.div,{whileFocus:{scale:1.02},transition:{duration:.2},children:[i.jsx("label",{className:"block text-sm font-semibold text-slate-700 mb-2",children:"Email *"}),i.jsx(qe,{type:"email",name:"email",value:e.email,onChange:h,placeholder:"[email protected]",required:!0,className:`h-12 ${c.email?"border-red-500":""}`}),c.email&&i.jsx("p",{className:"text-sm text-red-500 mt-1",children:c.email})]}),i.jsxs(q.div,{whileFocus:{scale:1.02},transition:{duration:.2},children:[i.jsx("label",{className:"block text-sm font-semibold text-slate-700 mb-2",children:"Téléphone"}),i.jsx(qe,{type:"tel",name:"phone",value:e.phone,onChange:h,placeholder:"+41 XX XXX XX XX",className:`h-12 ${c.phone?"border-red-500":""}`}),c.phone&&i.jsx("p",{className:"text-sm text-red-500 mt-1",children:c.phone})]}),i.jsxs(q.div,{whileFocus:{scale:1.02},transition:{duration:.2},children:[i.jsx("label",{className:"block text-sm font-semibold text-slate-700 mb-2",children:"Message *"}),i.jsx(Gt,{name:"message",value:e.message,onChange:h,placeholder:"Comment pouvons-nous vous aider ?",className:`min-h-36 ${c.message?"border-red-500":""}`,required:!0}),c.message&&i.jsx("p",{className:"text-sm text-red-500 mt-1",children:c.message})]}),i.jsx(q.div,{whileHover:{scale:1.02},whileTap:{scale:.98},children:i.jsx(te,{type:"submit",disabled:n,className:"w-full bg-red-500 hover:bg-red-600 text-white h-14 text-lg font-semibold flex items-center justify-center gap-2",children:n?"Envoi en cours...":i.jsxs(i.Fragment,{children:[i.jsx(yj,{className:"w-5 h-5"}),"Envoyer le message"]})})})]})})]})}),i.jsxs(q.div,{variants:v,className:"space-y-6",children:[i.jsxs("div",{className:"space-y-6",children:[i.jsx("h2",{className:"text-3xl font-bold text-slate-900 mb-8",children:"Nos coordonnées"}),[{icon:qs,title:"Téléphone",content:"+41 22 771 31 76",link:"tel:+41227713176"},{icon:Qs,title:"Email",content:"[email protected]",link:"mailto:[email protected]"},{icon:la,title:"Adresse",content:`Route de Saint-Julien 292A
5151258 Perly, Genève
516Suisse`},{icon:Ql,title:"Horaires",content:`Lun - Ven: 08h00 - 17h30
517Sam - Dim: Fermé`}].map((N,j)=>i.jsx(q.div,{whileHover:{x:5},transition:{duration:.2},children:i.jsx(ct,{className:"p-6 bg-white shadow-lg hover:shadow-xl transition-all border-0",children:i.jsxs("div",{className:"flex items-start gap-4",children:[i.jsx(q.div,{className:"p-4 bg-gradient-to-br from-red-500 to-red-600 rounded-xl shadow-lg",whileHover:{rotate:360,scale:1.1},transition:{duration:.5},children:i.jsx(N.icon,{className:"w-6 h-6 text-white"})}),i.jsxs("div",{className:"flex-1",children:[i.jsx("h3",{className:"font-bold text-slate-900 mb-2 text-lg",children:N.title}),N.link?i.jsx("a",{href:N.link,className:"text-slate-600 hover:text-red-500 transition-colors font-medium",children:N.content}):i.jsx("p",{className:"text-slate-600 whitespace-pre-line font-medium",children:N.content})]})]})})},j))]}),i.jsx(q.div,{variants:v,whileHover:{scale:1.02},transition:{duration:.3},children:i.jsx("a",{href:"https://www.google.com/maps/dir/?api=1&destination=Route+de+Saint-Julien+292A,+1258+Perly,+Geneva,+Switzerland",target:"_blank",rel:"noopener noreferrer",className:"block",children:i.jsxs(ct,{className:"overflow-hidden shadow-2xl border-0 cursor-pointer hover:shadow-3xl transition-shadow relative group",children:[i.jsx("iframe",{src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2762.4!2d6.0910!3d46.1729!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x478c62e7e1e1e1e1%3A0x1e1e1e1e1e1e1e1e!2sRoute%20de%20Saint-Julien%20292A%2C%201258%20Perly%2C%20Switzerland!5e0!3m2!1sen!2sch!4v1234567890",width:"100%",height:"320",style:{border:0},allowFullScreen:"",loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"pointer-events-none"}),i.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-slate-900/0 group-hover:bg-slate-900/10 transition-colors",children:i.jsx("div",{className:"bg-white/95 px-4 py-2 rounded-lg shadow-lg op
517acity-0 group-hover:opacity-100 transition-opacity",children:i.jsx("p",{className:"text-sm font-semibold text-slate-900",children:"Cliquez pour ouvrir dans Google Maps"})})})]})})})]})]})})}),i.jsx(q.section,{className:"py-20 bg-gradient-to-br from-slate-900 via-slate-800 to-slate-900",initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.8},children:i.jsx("div",{className:"max-w-4xl mx-auto px-6 text-center",children:i.jsxs(q.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[i.jsx("h2",{className:"text-3xl lg:text-4xl font-bold text-white mb-6",children:"Vous préférez nous rendre visite ?"}),i.jsx("p",{className:"text-xl text-slate-300 mb-8",children:"Notre bureau est ouvert du lundi au vendredi. N'hésitez pas à prendre rendez-vous pour discuter de vos besoins."}),i.jsx(q.a,{href:"tel:+41227713176",whileHover:{scale:1.05},whileTap:{scale:.95},children:i.jsxs(te,{className:"bg-red-500 hover:bg-red-600 text-white px-10 py-7 text-lg font-semibold",children:[i.jsx(qs,{className:"w-5 h-5 mr-2"}),"Prendre rendez-vous"]})})]})})})]})}function lz(){const[e,t]=y.useState({company_name:"",contact_name:"",contact_email:"",contact_phone:"",industry:"",position_title:"",location:"",contract_type:"",description:"",urgency:"normal"}),[n,r]=y.useState(!1),[o,l]=y.useState(!1),[c,d]=y.useState({}),h=(g,v)=>{t(N=>({...N,[g]:v})),c[g]&&d(N=>({...N,[g]:""}))},f=()=>{var v,N,j,b,C,S,k;const g={};return(v=e.company_name)!=null&&v.trim()||(g.company_name="Le nom de l'entreprise est requis"),e.industry||(g.industry="Le secteur est requis"),(N=e.contact_name)!=null&&N.trim()||(g.contact_name="Le nom du contact est requis"),(j=e.contact_email)!=null&&j.trim()||(g.contact_email="L'email est requis"),e.contact_email&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.contact_email)&&(g.contact_email="Email invalide"),(b=e.contact_phone)!=null&&b.trim()||(g.contact_phone="Le téléphone est requis"),e.contact_phone&&!/^\+?[0-9\s\-()]+$/.test(e.contact_phone)&&(g.contact_phone="Téléphone invalide"),(C=e.position_title)!=null&&C.trim()||(g.position_title="Le poste est requis"),(S=e.location)!=null&&S.trim()||(g.location="Le lieu est requis"),e.contract_type||(g.contract_type="Le type de contrat est requis"),(k=e.description)!=null&&k.trim()||(g.description="La description est requise"),d(g),Object.keys(g).length===0},m=async g=>{if(g.preventDefault(),!f()){r(!1);return}r(!0);try{await Ne.entities.EnterpriseRequest.create({company_name:e.company_name,industry:e.industry,contact_name:e.contact_name,contact_email:e.contact_email,contact_phone:e.contact_phone,job_title:e.position_title,job_description:e.description,contract_type:e.contract_type,urgency:e.urgency==="urgent"?"tres_urgent":e.urgency==="high"?"urgent":"normal",status:"new"});try{await Ne.integrations.Core.SendEmail({to:"[email protected]",subject:`Nouvelle demande entreprise - ${e.company_name}`,body:`Nouvelle demande de recrutement:
518
519    Entreprise: ${e.company_name}
520    Contact: ${e.contact_name}
521    Email: ${e.contact_email}
522    Téléphone: ${e.contact_phone}
523    Secteur: ${e.industry}
524
525    Poste recherché: ${e.position_title}
526    Lieu: ${e.location}
527    Type de contrat: ${e.contract_type}
528    Urgence: ${e.urgency}
529
530    Description:
531    ${e.description}`})}catch(v){console.error("Email send error:",v)}l(!0),tt.success("Demande envoyée avec succès ! Nous vous contacterons rapidement."),setTimeout(()=>{t({company_name:"",contact_name:"",contact_email:"",contact_phone:"",industry:"",position_title:"",location:"",contract_type:"",description:"",urgency:"normal"}),l(!1)},3e3)}catch{alert("Erreur lors de l'envoi de la demande. Veuillez réessayer."),r(!1)}};return i.jsxs(q.form,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},onSubmit:m,className:"bg-white rounded-2xl shadow-2xl p-8 lg:p-12",children:[i.jsx("h3",{className:"text-2xl lg:text-3xl font-bold text-slate-900 mb-8",children:"Déposer une demande de recrutement"}),i.jsxs("div",{className:"space-y-6 mb-6",children:[i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[i.jsxs("div",{children:[i.jsxs("label",{className:"block text-sm font-medium text-slate-700 mb-2",children:[i.jsx(xg,{className:"w-4 h-4 inline mr-2"}),"Nom de l'entreprise *"]}),i.jsx(qe,{required:!0,value:e.company_name,onChange:g=>h("company_name",g.target.value),placeholder:"Votre entreprise",className:c.company_name?"border-red-500":""}),c.company_name&&i.jsx("p",{className:"text-sm text-red-500 mt-1",children:c.company_name})]}),i.jsxs("div",{children:[i.jsxs("label",{className:"block text-sm font-medium text-slate-700 mb-2",children:[i.jsx(zs,{className:"w-4 h-4 inline mr-2"}),"Secteur d'activité *"]}),i.jsxs(on,{value:e.industry,onValueChange:g=>h("industry",g),required:!0,children:[i.jsx(Xt,{className:c.industry?"border-red-500":"",children:i.jsx(an,{placeholder:"Sélectionnez"})}),i.jsxs(Jt,{children:[i.jsx(pe,{value:"construction",children:"Construction & Artisanat"}),i.jsx(pe,{value:"tech",children:"Informatique"}),i.jsx(pe,{value:"finance",children:"Finance"}),i.jsx(pe,{value:"healthcare",children:"Médecine & Soins"}),i.jsx(pe,{value:"retail",children:"Vente & Marketing"}),i.jsx(pe,{value:"manufacturing",children:"Logistique & Production"}
531),i.jsx(pe,{value:"hospitality",children:"Restauration & Hôtellerie"}),i.jsx(pe,{value:"watchmaking",children:"Horlogerie"}),i.jsx(pe,{value:"pharma",children:"Pharma & Lifescience"}),i.jsx(pe,{value:"other",children:"Autre"})]})]}),c.industry&&i.jsx("p",{className:"text-sm text-red-500 mt-1",children:c.industry})]})]}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[i.jsxs("div",{children:[i.jsxs("label",{className:"block text-sm font-medium text-slate-700 mb-2",children:[i.jsx(wg,{className:"w-4 h-4 inline mr-2"}),"Nom du contact *"]}),i.jsx(qe,{required:!0,value:e.contact_name,onChange:g=>h("contact_name",g.target.value),placeholder:"Prénom Nom",className:c.contact_name?"border-red-500":""}),c.contact_name&&i.jsx("p",{className:"text-sm text-red-500 mt-1",children:c.contact_name})]}),i.jsxs("div",{children:[i.jsxs("label",{className:"block text-sm font-medium text-slate-700 mb-2",children:[i.jsx(Qs,{className:"w-4 h-4 inline mr-2"}),"Email *"]}),i.jsx(qe,{required:!0,type:"email",value:e.contact_email,onChange:g=>h("contact_email",g.target.value),placeholder:"[email protected]",className:c.contact_email?"border-red-500":""}),c.contact_email&&i.jsx("p",{className:"text-sm text-red-500 mt-1",children:c.contact_email})]})]}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[i.jsxs("div",{children:[i.jsxs("label",{className:"block text-sm font-medium text-slate-700 mb-2",children:[i.jsx(qs,{className:"w-4 h-4 inline mr-2"}),"Téléphone *"]}),i.jsx(qe,{required:!0,type:"tel",value:e.contact_phone,onChange:g=>h("contact_phone",g.target.value),placeholder:"+41 XX XXX XX XX",className:c.contact_phone?"border-red-500":""}),c.contact_phone&&i.jsx("p",{className:"text-sm text-red-500 mt-1",children:c.contact_phone})]}),i.jsx("div",{})]}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[i.jsxs("div",{children:[i.jsxs("label",{className:"block text-sm font-medium text-slate-700 mb-2",children:[i.jsx(zs,{className:"w-4 h-4 inline mr-2"}),"Poste recherché *"]}),i.jsx(qe,{required:!0,value:e.position_title,onChange:g=>h("position_title",g.target.value),placeholder:"Ex: Développeur Full Stack",className:c.position_title?"border-red-500":""}),c.position_title&&i.jsx("p",{className:"text-sm text-red-500 mt-1",children:c.position_title})]}),i.jsxs("div",{children:[i.jsxs("label",{className:"block text-sm font-medium text-slate-700 mb-2",children:[i.jsx(la,{className:"w-4 h-4 inline mr-2"}),"Lieu *"]}),i.jsx(qe,{required:!0,value:e.location,onChange:g=>h("location",g.target.value),placeholder:"Genève",className:c.location?"border-red-500":""}),c.location&&i.jsx("p",{className:"text-sm text-red-500 mt-1",children:c.location})]})]}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[i.jsxs("div",{children:[i.jsxs("label",{className:"block text-sm font-medium text-slate-700 mb-2",children:[i.jsx(Tl,{className:"w-4 h-4 inline mr-2"}),"Type de contrat *"]}),i.jsxs(on,{value:e.contract_type,onValueChange:g=>h("contract_type",g),required:!0,children:[i.jsx(Xt,{className:c.contract_type?"border-red-500":"",children:i.jsx(an,{placeholder:"Sélectionnez"})}),i.jsxs(Jt,{children:[i.jsx(pe,{value:"CDI",children:"CDI"}),i.jsx(pe,{value:"CDD",children:"CDD"}),i.jsx(pe,{value:"Temporaire",children:"Temporaire"}),i.jsx(pe,{value:"Freelance",children:"Freelance"}),i.jsx(pe,{value:"Stage",children:"Stage"}),i.jsx(pe,{value:"Alternance",children:"Alternance"})]})]}),c.contract_type&&i.jsx("p",{className:"text-sm text-red-500 mt-1",children:c.contract_type})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-2",children:"Urgence"}),i.jsxs(on,{value:e.urgency,onValueChange:g=>h("urgency",g),children:[i.jsx(Xt,{children:i.jsx(an,{placeholder:"Normale"})}),i.jsxs(Jt,{children:[i.jsx(pe,{value:"low",children:"Basse"}),i.jsx(pe,{value:"normal",children:"Normale"}),i.jsx(pe,{value:"high",children:"Élevée"}),i.jsx(pe,{value:"urgent",children:"Urgente"})]})]})]})]})]}),i.jsxs("div",{className:"mb-6",children:[i.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-2",children:"Description du poste et exigences *"}),i.jsx(Gt,{required:!0,value:e.description,onChange:g=>h("description",g.target.value),placeholder:"Décrivez le poste, les compétences requises, l'expérience souhaitée...",className:`h-32 ${c.description?"border-red-500":""}`}),c.description&&i.jsx("p",{className:"text-sm text-red-500 mt-1",children:c.description})]}),i.jsx(te,{type:"submit",disabled:n||o,className:`w-full py-6 text-lg font-semibold transition-all duration-500 ${o?"bg-green-500 hover:bg-green-600":"bg-slate-900 hover:bg-slate-800 disabled:opacity-50 disabled:cursor-not-allowed"} text-white`,children:o?i.jsxs(i.Fragment,{children:[i.jsx(Nl,{className:"w-5 h-5 mr-2 inline"}),"Transmis"]}):n?i.jsxs(i.Fragment,{children:[i.jsx(Jo,{className:"w-5 h-5 mr-2 inline animate-spin"}),"Validation en cours..."]}):"Valider la demande"})]})}function cz({images:e,interval:t=3e3}){const[n,r]=y.useState(0);return y.useEffect(()=>{const o=setInterval(()=>{r(l=>(l+1)%e.length)},t);return()=>clearInterval(o)},[e.length,t]),i.jsxs("div",{className:"relative w-full h-full overflow-hidden rounded-2xl shadow-2xl",children:[i.jsx(yr,{mode:"wait",children:i.jsxs(q.div,{initial:{opacity:0,scale:1.1}
531,animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},transition:{duration:.7,ease:"easeInOut"},className:"absolute inset-0",children:[i.jsx("img",{src:e[n],alt:`Slide ${n+1}`,className:"w-full h-full object-cover"}),i.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-slate-900/40 to-transparent"})]},n)}),i.jsx("div",{className:"absolute bottom-4 left-0 right-0 flex justify-center gap-2 z-10",children:e.map((o,l)=>i.jsx("button",{onClick:()=>r(l),className:`w-2 h-2 rounded-full transition-all ${l===n?"bg-white w-8":"bg-white/50 hover:bg-white/75"}`,"aria-label":`Aller à l'image ${l+1}`},l))})]})}function uz({testimonials:e}){const t=y.useRef(null),n=[...e,...e];return y.useEffect(()=>{const r=t.current;if(!r)return;let o,l=0;const c=.5,d=()=>{l+=c,l>=r.scrollWidth/2&&(l=0),r.scrollLeft=l,o=requestAnimationFrame(d)};return o=requestAnimationFrame(d),()=>{o&&cancelAnimationFrame(o)}},[]),i.jsx("div",{ref:t,className:"flex gap-6 overflow-hidden",style:{scrollBehavior:"auto"},children:n.map((r,o)=>i.jsxs("div",{className:"flex-shrink-0 w-80 bg-slate-800 rounded-xl p-6 border border-slate-700",children:[i.jsxs("p",{className:"text-white/90 text-sm italic mb-6 leading-relaxed",children:['"',r.text,'"']}),i.jsxs("div",{className:"pt-4 border-t border-slate-700",children:[i.jsx("p",{className:"text-white font-semibold",children:r.author}),i.jsx("p",{className:"text-slate-400 text-sm",children:r.role})]})]},o))})}function dz(){const[e,t]=it.useState(0),n=["https://images.unsplash.com/photo-1542744173-8e7e53415bb0?w=800&h=600&fit=crop","https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=800&h=600&fit=crop","https://images.unsplash.com/photo-1552664730-d307ca884978?w=800&h=600&fit=crop","https://images.unsplash.com/photo-1521791136064-7986c2920216?w=800&h=600&fit=crop","https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?w=800&h=600&fit=crop"],o=["https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?w=300&h=300&fit=crop","https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=300&h=300&fit=crop","https://images.unsplash.com/photo-1580489944761-15a19d654956?w=300&h=300&fit=crop","https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=300&h=300&fit=crop","https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=300&h=300&fit=crop","https://images.unsplash.com/photo-1566492031773-4f4e44671857?w=300&h=300&fit=crop","https://images.unsplash.com/photo-1519085360753-af0119f7cbe7?w=300&h=300&fit=crop","https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=300&h=300&fit=crop","https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=300&h=300&fit=crop","https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=300&h=300&fit=crop","https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=300&h=300&fit=crop","https://images.unsplash.com/photo-1531746020798-e6953c6e8e04?w=300&h=300&fit=crop"].slice(e*6,e*6+6);it.useEffect(()=>{const f=setInterval(()=>{t(m=>(m+1)%2)},3e3);return()=>clearInterval(f)},[]);const l=()=>{var f;(f=document.getElementById("formulaire-entreprise"))==null||f.scrollIntoView({behavior:"smooth",block:"start"})},c=[{icon:Zo,title:"Collaborateurs temporaires",description:"Recrutez des candidats pour une durée limitée, et bénéficiez de renforts ponctuels pour des projets spécifiques."},{icon:im,title:"Recrutement fixe",description:"Déléguez-nous vos recherches de profils, recherche des candidats, entretiens, constitutions de dossiers de recrutement."},{icon:zs,title:"Try & Hire",description:"Testez un candidat temporaire avant de l'engager, pour valider ses compétences et son intégration."},{icon:Ky,title:"Payrolling",description:"Confiez-nous la gestion administrative de vos employés pour vous concentrer sur votre cœur de métier."}],d=[{icon:xg,name:"Construction & Artisanat"},{icon:JP,name:"Électronique"},{icon:pR,name:"Ingénierie"},{icon:Ld,name:"Finance"},{icon:qP,name:"Restauration & Hôtellerie"},{icon:LP,name:"Logistique & Production"},{icon:YP,name:"Informatique"},{icon:Ky,name:"Pharma & Lifescience"},{icon:NR,name:"Médecine & Soins"},{icon:mj,name:"Bureaux & Administration"},{icon:wR,name:"Vente & Marketing"},{icon:BR,name:"Horlogerie"}],h=[{text:"Je tiens à souligner l'attention particulière que nous avons bénéficié chez Elite Sourcing. Ils ont consacré le temps nécessaire pour comprendre notre demande et y répondre efficacement.",author:"Carlos N.",role:"Chef de chantier"},{text:"Nous recommandons l'agence Elite Sourcing, qui répond parfaitement à nos demandes de temporaires. Son engagement, son suivi et son souci du détail est remarquables.",author:"Ana L.",role:"Secrétaire médical"},{text:"Les équipiers chez Elite Sourcing sont pleinement investis dans nos projets. Ils nous accompagnent pour la recherche de candidat et répondent parfaitement à nos demandes.",author:"Thomas F.",role:"Électricie
531n"},{text:"Elite Sourcing est réactif et répond rapidement à nos demandes de temporaires, tout en respectant nos exigences et en maintenant un personnel de qualité.",author:"Daniel T.",role:"Technicien"}];return i.jsxs("div",{className:"bg-white",children:[i.jsx(ts,{title:"Solutions de Recrutement pour Entreprises à Genève | Elite Sourcing",description:"Elite Sourcing accompagne les entreprises de Genève et Suisse romande dans leurs recrutements : placement temporaire, CDI, try & hire, payrolling. Expertise sectorielle reconnue.",keywords:"recrutement entreprises Genève, agence intérim Genève, placement temporaire Suisse, solutions RH entreprises, try hire Genève, payrolling Suisse romande",canonical:"/Entreprise"}),i.jsxs("section",{className:"relative min-h-[600px] lg:min-h-[700px] bg-slate-900 overflow-hidden",children:[i.jsxs("div",{className:"absolute inset-0 opacity-20",children:[i.jsx("div",{className:"absolute top-20 right-20 w-64 h-48 bg-red-500 blur-3xl rounded-full"}),i.jsx("div",{className:"absolute bottom-40 left-20 w-80 h-64 bg-blue-500 blur-3xl rounded-full"})]}),i.jsx("div",{className:"relative max-w-7xl mx-auto px-6 py-20 lg:py-32",children:i.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center",children:[i.jsxs(q.div,{initial:{opacity:0,x:-50},animate:{opacity:1,x:0},transition:{duration:.6},children:[i.jsx("h1",{className:"text-4xl lg:text-5xl font-bold text-white mb-6",children:"Solutions de Recrutement pour Entreprises à Genève"}),i.jsx("p",{className:"text-lg text-white/90 mb-8",children:"Recrutez vos futurs collaborateurs, en placement fixe ou temporaire, directement en déposant votre demande."}),i.jsx(te,{onClick:l,className:"bg-white text-slate-900 hover:bg-slate-100 px-8 py-6 text-base font-semibold",children:"Déposer une demande 📋"})]}),i.jsx(q.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.6,delay:.2},className:"relative hidden lg:block",children:i.jsx(yr,{mode:"wait",children:i.jsx(q.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},transition:{duration:.8},className:"grid grid-cols-3 gap-4 rotate-3",children:o.map((f,m)=>i.jsx(q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:m*.1},className:"relative overflow-hidden rounded-xl shadow-2xl aspect-square",style:{transform:`rotate(${Math.random()*10-5}deg)`,zIndex:m},children:i.jsx("img",{src:f,alt:"",className:"w-full h-full object-cover"})},m))},e)})})]})})]}),i.jsx("section",{className:"py-20 bg-white",children:i.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[i.jsxs(q.h2,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"text-3xl lg:text-4xl font-bold text-slate-900 mb-16 text-center lg:text-left",children:["Trouvez et recrutez les candidats",i.jsx("br",{}),"parfaits pour votre entreprise."]}),i.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center",children:[i.jsxs("div",{className:"space-y-8",children:[i.jsxs(q.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5},className:"flex gap-4",children:[i.jsx("div",{className:"flex-shrink-0",children:i.jsx("div",{className:"w-12 h-12 bg-red-100 rounded-lg flex items-center justify-center",children:i.jsx(Zo,{className:"w-6 h-6 text-red-600"})})}),i.jsxs("div",{children:[i.jsx("h3",{className:"text-xl font-bold text-slate-900 mb-2",children:"Recrutement temporaire"}),i.jsx("p",{className:"text-slate-600",children:"Recrutez des candidats vous correspondant, bénéficiez de renforts ponctuels pour des travaux spécifiques, pour des futurs projets, pour pallier aux absences de vos collaborateurs."})]})]}),i.jsxs(q.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5,delay:.1},className:"flex gap-4",children:[i.jsx("div",{className:"flex-shrink-0",children:i.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center",children:i.jsx(im,{className:"w-6 h-6 text-blue-600"})})}),i.jsxs("div",{children:[i.jsx("h3",{className:"text-xl font-bold text-slate-900 mb-2",children:"Recrutement fixe"}),i.jsx("p",{className:"text-slate-600",children:"Déléguez-nous vos recherches de profils, recherche des candidats, entretiens, constitutions de dossiers de recrutement. Puis diverses possibilités s'offrent à vous try&hire, payrolling, engagement fixe sans mauvaise surprise."})]})]})]}),i.jsx(q.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.5},className:"relative",children:i.jsx("img",{src:"https://images.unsplash.com/photo-1552664730-d307ca884978?w=800&h=600&fit=crop",alt:"Équipe au travail",className:"rounded-2xl shadow-2xl w-full"})})]})]})}),i.jsx("section",{className:"py-20 bg-slate-900 overflow-hidden",children:i.jsx("div",{className:"py-12",children:i.jsx(uz,{testimonials:h})})}),i.jsx("section",{className:"py-20 bg-slate-50",children:i.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[i.jsxs(q.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"text-center mb-12",children:[i.jsx("h2",{className:"text-3xl lg:text-4xl font-bold text-slate-900 mb-4",children:"Nos services pour vos besoins en personnel"}),i.jsx("p",{className:"text-slate-600 text-lg max-w-3xl mx-auto",children:"Notre équipe expérimentée et dédiée travaille en totale collaboration pour comprendre vos besoins spécifiques et vous proposer des candidats idoines."})]}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mb-12",children:c.map((f,m)=>{const g=f.icon;return i.jsx(q.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:m*.1},className:"bg-white rounded-xl p-6 shadow-lg hover:shadow-xl transition-shadow",children:i.jsxs("div",{className:"flex items-start gap-4",children:[i.jsx("div",{className:"flex-shrink-0",children:i.jsx("div",{className:"w-12 h-12 bg-red-100 rounded-lg flex items-center justify-center",children:i.jsx(g,{className:"w-6 h-6 text-red-600"})})}),i.jsxs("div",{children:[i.jsx("h3",{className:"text-lg font-bold text-slate-900 mb-2",children:f.title}),i.jsx("p",{className:"text-slate-600 text-sm",children:f.description})]})]})},m)})}),i.jsx(q.div,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.5},className:"flex justify-center",children:i.jsx(te,{onClick:l,className:"bg-slate-900 hover:bg-slate-800 text-white px-8 py-6 text-base font-semibold",children:"Contactez-nous 📞"})})]})}),i.jsx("section",{className:"py-20 bg-slate-900",children:i.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[i.jsxs(q.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"mb-12",children:[i.jsx("h2",{className:"text-3xl lg:text-4xl font-bold text-white mb-4",children:"Nos secteurs d'activité"}),i.jsx("p",{className:"text-slate-300 text-lg max-w-2xl",children:"Nous accompagnons nos clients dans l'ensemble de leurs besoins de recrutement. Quel que soit votre secteur d'activité, nous s
531avons nous adapter à vos besoins."})]}),i.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:d.map((f,m)=>{const g=f.icon;return i.jsxs(q.div,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.3,delay:m*.05},whileHover:{scale:1.05},className:"bg-slate-800 rounded-xl p-6 border border-slate-700 hover:border-red-500 transition-all cursor-pointer",children:[i.jsx(g,{className:"w-8 h-8 text-red-500 mb-3"}),i.jsx("p",{className:"text-white font-medium text-sm",children:f.name})]},m)})})]})}),i.jsx("section",{id:"formulaire-entreprise",className:"py-20 bg-slate-50",children:i.jsx("div",{className:"max-w-7xl mx-auto px-6",children:i.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12",children:[i.jsx(q.div,{initial:{opacity:0,x:-50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5},className:"hidden lg:block sticky top-24",children:i.jsx("div",{className:"aspect-[4/3]",children:i.jsx(cz,{images:n,interval:3e3})})}),i.jsx("div",{className:"lg:col-start-2",children:i.jsx(lz,{})})]})})}),i.jsx("section",{className:"py-20 bg-white",children:i.jsx("div",{className:"max-w-7xl mx-auto px-6",children:i.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center",children:[i.jsxs(q.div,{initial:{opacity:0,x:-50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5},className:"relative h-[500px]",children:[i.jsx("img",{src:"https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=600&h=500&fit=crop",alt:"Équipe collaborative",className:"absolute top-0 left-0 w-3/4 rounded-xl shadow-2xl"}),i.jsx("img",{src:"https://images.unsplash.com/photo-1521791136064-7986c2920216?w=600&h=500&fit=crop",alt:"Poignée de main",className:"absolute bottom-0 right-0 w-3/4 rounded-xl shadow-2xl"})]}),i.jsxs(q.div,{initial:{opacity:0,x:50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5},children:[i.jsx("h2",{className:"text-3xl lg:text-4xl font-bold text-slate-900 mb-6",children:"Elite Sourcing, votre partenaire expert en recrutement"}),i.jsxs("div",{className:"space-y-4 text-slate-600 leading-relaxed",children:[i.jsx("p",{children:"Elite Sourcing SA est une entreprise indépendante et dynamique, à taille humaine, créée par des spécialistes de votre secteur et des ressources humaines."}),i.jsx("p",{children:"Nous apportons aux entreprises et aux candidats faisant appel à nos services un accompagnement de qualité et une expertise reconnue."}),i.jsx("p",{children:"Notre agence porte un soin particulier aux candidats et à nos salariés, nous sommes à votre écoute, dans une relation de confiance."}),i.jsx("p",{className:"font-semibold text-slate-900",children:"Contactez-nous pour découvrir comment nous pouvons vous accompagner dans votre recherche d'emploi."})]}),i.jsx("div",{className:"mt-8",children:i.jsx(te,{onClick:l,className:"bg-slate-900 hover:bg-slate-800 text-white px-8 py-6 text-base font-semibold",children:"Déposer une demande"})})]})]})})})]})}function hz(){const e=y.useRef(null),t=[{text:"L'agence a été incroyable comme employeur temporaire. J'ai recours à leur service lors de mes emplois saisonnier et ne suis jamais déçu.",author:"Victor D.",role:"Opérateur en horlogerie"},{text:"J'ai pu constater de leur professionnalisme, leur soutien et leur réactivité. Je ne peux que recommander leur service.",author:"Arthur G.",role:"Peintre"},{text:"Je tenais témoigner à quel point j'ai adoré travailler avec l'agence Elite Sourcing ! J'ai pu travailler dans des missions qui m'ont beaucoup appris.",author:"Hamza L.",role:"Aide monteur"},{text:"J'ai eu de très bons échanges avec l'équipe Elite Sourcing. Mon conseiller a pris le temps de m'aider à mettre à jour mon CV.",author:"Isaac A.",role:"Manutentionnaire"},{text:"Les échanges que j'ai eus avec Elite Sourcing étaient pertinents et m'ont aidé à avancer dans mes recherches d'emploi.",author:"Magalie A.",role:"Serveuse"},{text:"Je me suis senti correctement encadré par Elite Sourcing lors de mes missions. L'équipe est joignable et m'accompagne dans mes démarches administratives.",author:"Anthony N.",role:"Comptable fiduciaire"}],n=[...t,...t];return y.useEffect(()=>{const r=e.current;if(!r)return;let o,l=0;const c=.5,d=()=>{l+=c,l>=r.scrollWidth/2&&(l=0),r.scrollLeft=l,o=requestAnimationFrame(d)};return o=requestAnimationFrame(d),()=>{o&&cancelAnimationFrame(o)}},[]),i.jsxs("section",{className:"relative bg-slate-900 overflow-hidden",style:{clipPath:"pol
531ygon(0 0, 100% 0, 100% 100%, 0 100%)"},children:[i.jsx("div",{className:"absolute top-0 left-0 right-0 h-20 -mt-1",children:i.jsx("svg",{viewBox:"0 0 1440 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",preserveAspectRatio:"none",children:i.jsx("path",{d:"M0,40 C360,10 720,5 1080,25 C1320,40 1440,60 1440,60 L1440,0 L0,0 Z",fill:"rgba(15, 23, 42, 0.6)",className:"blur-md"})})}),i.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-20 -mb-1",children:i.jsx("svg",{viewBox:"0 0 1440 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",preserveAspectRatio:"none",children:i.jsx("path",{d:"M0,20 C240,50 600,60 960,45 C1200,35 1440,20 1440,20 L1440,80 L0,80 Z",fill:"rgba(15, 23, 42, 0.4)",className:"blur-md"})})}),i.jsx("div",{className:"py-12 relative z-10",children:i.jsx("div",{ref:e,className:"flex gap-6 overflow-hidden",style:{scrollBehavior:"auto"},children:n.map((r,o)=>i.jsxs("div",{className:"flex-shrink-0 w-80 bg-transparent p-6",children:[i.jsxs("p",{className:"text-white/90 text-sm mb-4 leading-relaxed italic",children:['"',r.text,'"']}),i.jsxs("div",{className:"pt-3",children:[i.jsx("p",{className:"text-white font-semibold",children:r.author}),i.jsx("p",{className:"text-slate-400 text-sm",children:r.role})]})]},o))})})]})}function ld({color:e="#ffffff",className:t=""}){return i.jsx("div",{className:`absolute top-0 left-0 right-0 ${t}`,children:i.jsx("svg",{viewBox:"0 0 1440 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-full",preserveAspectRatio:"none",children:i.jsx("path",{d:"M0,60 C240,20 480,10 720,35 C960,60 1200,80 1440,70 L1440,0 L0,0 Z",fill:e})})})}function bl({color:e="#ffffff",className:t=""}){return i.jsx("div",{className:`absolute bottom-0 left-0 right-0 ${t}`,children:i.jsx("svg",{viewBox:"0 0 1440 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-full",preserveAspectRatio:"none",children:i.jsx("path",{d:"M0,50 C360,80 720,90 1080,65 C1320,50 1440,30 1440,30 L1440,120 L0,120 Z",fill:e})})})}function fz(){const[e,t]=y.useState(""),[n,r]=y.useState(""),[o,l]=y.useState("idle"),[c,d]=y.useState(""),h=async f=>{if(f.preventDefault(),n){l("success"),d("Merci de votre intérêt!");return}if(!e||!e.includes("@")){l("error"),d("Veuillez entrer un email valide");return}l("loading");try{if((await Ne.entities.Newsletter.filter({email:e})).length>0){l("success"),d("✓ Vous êtes déjà inscrit à notre newsletter!"),t("");return}await Ne.entities.Newsletter.create({email:e,is_active:!0});try{await Ne.functions.invoke("registerNewsletterUser",{email:e})}catch(g){console.error("Erreur création utilisateur:",g)}l("success"),d("✓ Inscription confirmée! Vous recevrez nos alertes emploi."),t("")}catch{l("error"),d("Une erreur est survenue. Réessayez.")}};return i.jsxs("section",{className:"relative bg-gradient-to-br from-red-500 via-red-600 to-red-700 overflow-hidden",children:[i.jsx(ld,{color:"#0f172a",className:"-mt-1"}),i.jsxs(q.div,{initial:{opacity:0}
531,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:1.2},className:"absolute inset-0",children:[i.jsx(q.div,{animate:{scale:[1,1.1,1],opacity:[.05,.1,.05]},transition:{duration:8,repeat:1/0,ease:"easeInOut"},className:"absolute top-10 right-20 w-72 h-72 bg-white rounded-full blur-3xl"}),i.jsx(q.div,{animate:{scale:[1.1,1,1.1],opacity:[.05,.08,.05]},transition:{duration:10,repeat:1/0,ease:"easeInOut",delay:1},className:"absolute bottom-10 left-20 w-80 h-80 bg-white rounded-full blur-3xl"})]}),i.jsxs("div",{className:"max-w-5xl mx-auto px-6 py-24 relative z-10",children:[i.jsxs(q.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8},className:"text-center mb-12",children:[i.jsx(q.div,{initial:{scale:0},whileInView:{scale:1},viewport:{once:!0},transition:{duration:.6,type:"spring"},className:"inline-block mb-4",children:i.jsx("div",{className:"bg-white/20 backdrop-blur-sm rounded-full p-4 border border-white/30",children:i.jsx(uP,{className:"w-8 h-8 text-white"})})}),i.jsx("h2",{className:"text-4xl lg:text-5xl font-bold text-white mb-4 leading-tight",children:"Restez à jour avec Elite Sourcing"}),i.jsx("p",{className:"text-white/90 text-lg lg:text-xl max-w-2xl mx-auto",children:"Recevez en avant-première les nouvelles offres d'emploi qui correspondent à votre profil"})]}),i.jsxs(q.form,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,delay:.2},onSubmit:h,className:"flex flex-col sm:flex-row gap-3 max-w-2xl mx-auto mb-6",children:[i.jsx("div",{className:"relative flex-1 hidden",children:i.jsx("input",{type:"text",value:n,onChange:f=>r(f.target.value),placeholder:"website",tabIndex:"-1",autoComplete:"off","aria-hidden":"true"})}),i.jsxs("div",{className:"flex-1 relative",children:[i.jsx(Qs,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-5 h-5 text-white/70 pointer-events-none"}),i.jsx(qe,{type:"email",placeholder:"Votre adresse email",value:e,onChange:f=>t(f.target.value),disabled:o==="loading",className:"pl-12 bg-white/10 border-white/30 backdrop-blur-sm text-white placeholder:text-white/60 focus:bg-white/20 focus:border-white/50 h-12 text-base"})]}),i.jsx(te,{type:"submit",disabled:o==="loading",className:"bg-white hover:bg-slate-100 text-red-600 font-bold px-8 h-12 text-base whitespace-nowrap shadow-lg hover:shadow-xl transition-all disabled:opacity-60",children:o==="loading"?"Inscription...":"S'inscrire"})]}),c&&i.jsxs(q.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3},className:"text-center flex items-center justify-center gap-2 text-white",children:[o==="success"?i.jsx(vg,{className:"w-5 h-5"}):i.jsx(CP,{className:"w-5 h-5"}),i.jsx("span",{className:"text-base font-medium",children:c})]})]}),i.jsx(bl,{color:"#0f172a",className:"-mb-1"})]})}function Us(e){return"/"+e.replace(/ /g,"-")}function pz(){const{data:e=[]}=Bn({queryKey:["missions-recent"],queryFn:()=>Ne.entities.Mission.list("-created_date")}),t=e.filter(r=>r.status==="open").slice(0,2),n={"@context":"https://schema.org","@type":"Organization",name:"Elite Sourcing",description:"Cabinet de recrutement d'élite à Genève spécialisé dans le placement de candidats qualifiés",url:"https://elitesourcing.ch",logo:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/6948f7f2482bad13c88dfbdc/1f4313719_image.png",address:{"@type":"PostalAddress",streetAddress:"Route de Saint-Julien 292A",addressLocality:"Perly",addressRegion:"Genève",postalCode:"1258",addressCountry:"CH"}
531,telephone:"+41227713176",email:"[email protected]",openingHours:"Mo-Fr 08:00-17:30",sameAs:["https://www.linkedin.com/company/elitesourcing"]};return i.jsxs("div",{className:"bg-white",children:[i.jsxs("div",{style:{position:"fixed",left:"-9999px",top:0,width:"1px",height:"1px",overflow:"hidden"},children:[i.jsx("a",{href:"/",children:"Accueil"}),i.jsx("a",{href:"/Offres",children:"Offres d'emploi"}),i.jsx("a",{href:"/CandidateForm",children:"Déposer CV"}),i.jsx("a",{href:"/Entreprise",children:"Entreprises"}),i.jsx("a",{href:"/About",children:"À propos"}),i.jsx("a",{href:"/Conseils",children:"Conseils"}),i.jsx("a",{href:"/Contact",children:"Contact"})]}),i.jsx(ts,{title:"Elite Sourcing - Agence de Placement Temporaire à Genève | Recrutement RH",description:"Agence d'intérim et de placement à Genève. Elite Sourcing propose des offres d'emploi CDI, CDD et temporaire en Suisse romande. Trouvez l'emploi qui vous convient avec un expert du recrutement.",keywords:"agence de placement Genève, agence d'intérim Genève, Elite Sourcing, recrutement Genève, offres d'emploi Genève, emploi temporaire, agence d'intérim Suisse",canonical:"/",structuredData:n}),i.jsxs("section",{className:"relative h-[90vh] min-h-[600px] max-h-[800px] overflow-hidden",children:[i.jsx(bl,{color:"#0f172a",className:"z-10"}),i.jsx(q.div,{className:"absolute inset-0 bg-cover bg-center bg-no-repeat",initial:{scale:1.1},animate:{scale:1},transition:{duration:1.5,ease:"easeOut"},style:{backgroundImage:"url(https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/6948f7f2482bad13c88dfbdc/65ec0bc59_image.png)",backgroundSize:"cover",backgroundPosition:"center center"},children:i.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-slate-900/70 via-slate-900/50 to-slate-900/70"})}),i.jsx("div",{className:"relative max-w-7xl mx-auto px-6 lg:px-12 h-full flex flex-col justify-center items-start text-left",children:i.jsxs(q.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:1,delay:.3},className:"w-full lg:w-2/3",children:[i.jsx(q.h1,{className:"text-3xl md:text-4xl lg:text-5xl xl:text-6xl font-bold text-white mb-5 lg:mb-6 leading-tight",initial:{opacity:0,x:-30},animate:{opacity:1,x:0},transition:{duration:.8,delay:.5},children:"Trouvez votre emploi à Genève avec Elite Sourcing"}),i.jsx(q.p,{className:"text-base md:text-lg lg:text-xl text-white/90 mb-3",initial:{opacity:0,x:-30},animate:{opacity:1,x:0},transition:{duration:.8,delay:.7},children:"Cabinet de recrutement expert en Suisse romande. Nous vous accompagnons dans votre recherche d'emploi CDI, CDD ou temporaire avec des spécialistes de votre secteur."}),i.jsx(q.p,{className:"text-base md:text-lg lg:text-xl text-white/90 mb-8",initial:{opacity:0,x:-30},animate:{opacity:1,x:0},transition:{duration:.8,delay:.9},children:"Consultez nos offres d'emploi actives, postulez directement en ligne ou deposez votre candidature avec votre CV. Elite Sourcing se charge de votre placement."}),i.jsxs(q.div,{className:"flex flex-col sm:flex-row gap-4 max-w-2xl",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:1.1},children:[i.jsx(Be,{to:"/Offres",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),className:"flex-1",children:i.jsx(q.div,{whileHover:{scale:1.05,y:-3},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:i.jsx(te,{className:"w-full bg-transparent hover:bg-white/10 border-2 border-white/60 text-white backdrop-blur-sm px-6 lg:px-8 py-4 lg:py-5 text-sm lg:text-base font-medium",children:"👤 Nos offres d'emploi"})})}),i.jsx(Be,{to:"/CandidateForm",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),className:"flex-1",children:i.jsx(q.div,{whileHover:{scale:1.05,y:-3},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:i.jsx(te,{className:"w-full bg-transparent hover:bg-white/10 border-2 border-white/60 text-white backdrop-blur-sm px-6 lg:px-8 py-4 lg:py-5 text-sm lg:text-base font-medium",children:"📄 Déposer un CV"})})})]})]})})]}),i.jsx(hz,{}),i.jsxs("section",{className:"relative py-20 bg-slate-50",children:[i.jsx(ld,{color:"#0f172a",className:"-mt-1"}),i.jsx(bl,{color:"#0f172a",className:"-mb-1"}),i.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[i.jsx(q.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.3},transition:{duration:.8},className:"text-left mb-12",children:i.jsx(q.h2,{className:"text-3xl lg:text-4xl font-bold text-slate-900",initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8,delay:.2},children:"Offres d'emploi CDI, CDD et temporaire à Genève"})}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[t.length>0?i.jsx(i.Fragment,{children:t.map((r,o)=>i.jsxs(q.div,{initial:{opacity:0,y:50,scale:.9},whileInView:{opacity:1,y:0,scale:1},viewport:{once:!0,amount:.2},transition:{duration:.6,delay:o*.2,ease:"easeOut"},whileHover:{scale:1.05,y:-12,transition:{type:"spring",stiffness:300,damping:20}},className:"bg-white rounded-lg overflow-hidden shadow-lg hover:shadow-[0_20px_60px_-15px_rgba(0,0,0,0.3)] transition-shadow duration-300 flex flex-col h-[420px]",children:[i.jsxs("div",{className:"bg-gradient-to-r from-red-500 to-red-600 p-6 text-white",children:[i.jsx("h3",{className:"text-lg font-bold mb-2",children:r.title}),i.jsx("p",{className:"text-sm text-red-100",children:r.client_name})]}),i.jsxs("div",{className:"p-5 flex flex-col flex-grow",children:[r.location&&i.jsxs("div",{className:"flex items-center gap-2 text-xs text-slate-600 mb-2",children:[i.jsx(la,{className:"w-3 h-3"}),r.location]}),r.contract_type&&i.jsx("div",{className:"text-xs font-semibold text-slate-900 mb-3",children:r.contract_type}),r.description&&i.jsx("p",{className:"text-xs text-slate-600 mb-4 flex-grow line-clamp-2",children:r.description}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Be,{to:`${Us("MissionDetail")}?id=${r.id}`,className:"w-full",children:i.jsx(te,{className:"w-full bg-slate-900 hover:bg-slate-800 text-white text-sm",children:"Voir les détails"})}),i.jsx(Be,{to:`${Us("CandidateForm")}?position=${encodeURIComponent(r.title)}`,className:"w-full",children:i.jsx(te,{variant:"outline",className:"w-full border-red-500 text-red-500 hover:bg-red-50 text-sm",children:"Postuler"})})]})]})]},r.id))}):null,i.jsxs(q.div,{initial:{opacity:0,y:50,scale:.9},whileInView:{opacity:1,y:0,scale:1},transition:{duration:.6,delay:t.length>0?.4:0,ease:"easeOut"},viewport:{once:!0,amount:.2},whileHover:{scale:1.05,y:-12,transition:{type:"spring",stiffness:300,damping:20}},className:"bg-slate-900 rounded-lg p-5 shadow-lg hover:shadow-[0_20px_60px_-15px_rgba(0,0,0,0.3)] transition-shadow duration-300 flex flex-col justify-between h-[420px]",children:[i.jsx("div",{className:"flex-grow flex items-center",children:i.jsx("p",{className:"text-white text-base leading-relaxed",children:"Nous publions très régulièrement de nouvelles offres d'emploi, dans divers domaines et zones géographiques en Suisse romande."})}),i.jsx(Be,{to:Us("Offres"),onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),children:i.jsx(te,{className:"w-full bg-white hover:bg-slate-100 text-slate-900 font-semibold text-sm",children:"Toutes nos offres"})})]})]})]})]}),i.jsxs("section",{className:"relative py-24 bg-slate-900 flex items-center",children:[i.jsx(ld,{color:"#0f172a",className:"-mt-1"}),i.jsx(bl,{color:"#0f172a",className:"-mb-1"}),i.jsx("div",{className:"max-w-7xl mx-auto px-6 w-full",children:i.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-8",children:[i.jsxs("div",{className:"flex items-center gap-6",children:[i.jsx("div",{className:"w-20 h-20 flex-shrink-0 border-2 border-white rounded-lg flex items-center justify-center",children:i.jsxs("svg",{className:"w-12 h-12 text-white",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[i.jsx("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),i.jsx("circle",{cx:"12",cy:"7",r:"4"}),i.jsx("path",{d:"M14 2h4v4M20 2l-6 6"})]})}),i.jsxs("div",{children:[i.jsx("h2",{className:"text-3xl font-bold text-white mb-3",children:"Déposez votre CV"}),i.jsx("p",{className:"text-slate-300 text-lg max-w-xl",children:"Partagez proactivement votre CV auprès de notre cabinet Elite Sourcing. Soyez recontacté dès qu'une offre d'emploi correspondant à votre profil, compétences et expérience professionnelle est disponible."})]})]}),i.jsx(Be,{to:"/CandidateForm",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),children:i.jsx(te,{className:"bg-white hover:bg-slate-100 text-slate-900 px-8 py-6 text-base font-semibold whitespace-nowrap",children:"Partager mon CV"})})]})})]}),i.jsx(fz,{}),i.jsxs("section",{className:"relative py-20 bg-slate-50 overflow-hidden",children:[i.jsx(ld,{color:"#0f172a",className:"-mt-1"}),i.jsx(bl,{color:"#0f172a",className:"-mb-1"}),i.jsx(q.div,{initial:{opacity:0,x:-100,scale:.9},whileInView:{opacity:1,x:0,scale:1},viewport:{once:!0,amount:.3},transition:{duration:.8,ease:"easeOut"}
531,className:"absolute left-0 top-32 w-80 h-64 rounded-lg overflow-hidden shadow-lg",style:{maskImage:"linear-gradient(to right, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%)",WebkitMaskImage:"linear-gradient(to right, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%)"},children:i.jsx("img",{src:"https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=500&h=350&fit=crop",alt:"Personne écrivant sur des documents",className:"w-full h-full object-cover"})}),i.jsx("div",{className:"max-w-7xl mx-auto px-6 relative z-10",children:i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-[320px_1fr] gap-8 md:gap-12 items-start",children:[i.jsxs("div",{className:"space-y-6",children:[i.jsx("div",{className:"h-64"}),i.jsx(q.div,{initial:{opacity:0,y:100,scale:.9},whileInView:{opacity:1,y:0,scale:1},viewport:{once:!0,amount:.3},transition:{duration:.8,delay:.3,ease:"easeOut"},className:"rounded-lg overflow-hidden shadow-lg ml-8",children:i.jsx("img",{src:"https://images.unsplash.com/photo-1521791136064-7986c2920216?w=500&h=350&fit=crop",alt:"Réunion professionnelle",className:"w-full h-auto object-cover"})})]}),i.jsxs(q.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,ease:"easeOut"},className:"pt-4",children:[i.jsx("h2",{className:"text-3xl lg:text-4xl font-bold text-slate-900 mb-16",children:"Qui est Elite Sourcing, votre cabinet expert en recrutement à Genève"}),i.jsxs("div",{className:"space-y-4 text-slate-700 text-base leading-relaxed mb-8",children:[i.jsx("p",{children:"Elite Sourcing SA est un cabinet de recrutement indépendant basé à Genève. Créé par des spécialistes en ressources humaines et experts de votre secteur d'activité, nous vous proposons des solutions complètes de placement en emploi."}),i.jsx("p",{children:"Nous apportons aux entreprises suisses et aux candidats une expertise reconnue en recrutement, un accompagnement de qualité et des services professionnels personnalisés pour chaque projet."}),i.jsx("p",{children:"Notre équipe du cabinet Elite Sourcing à Genève porte un soin particulier à chaque candidat et à chaque client. Nous sommes à votre écoute dans une relation de confiance et de transparence."}),i.jsx("p",{children:"Vous cherchez un emploi fixe, un poste en contrat à durée déterminée ou une mission temporaire en Suisse romande ? Contactez-nous pour découvrir comment Elite Sourcing peut vous accompagner vers votre prochain emploi."})]}),i.jsx(Be,{to:"/About",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),children:i.jsx(q.div,{whileHover:{scale:1.05,x:5},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:i.jsxs(te,{className:"bg-white hover:bg-slate-50 text-slate-900 border-2 border-slate-300 px-6 py-3 text-base font-medium rounded-md inline-flex items-center gap-2 transition-all",children:["En savoir plus sur Elite Sourcing",i.jsx(lP,{className:"w-4 h-4"})]})})})]})]})})]}),i.jsxs("div",{style:{display:"none"},children:[i.jsxs("nav",{children:[i.jsx("a",{href:"/",children:"Accueil Elite Sourcing"}),i.jsx("a",{href:"/Offres",children:"Nos offres d'emploi CDI CDD temporaire"}),i.jsx("a",{href:"/CandidateForm",children:"Déposer candidature CV"}),i.jsx("a",{href:"/Entreprise",children:"Services recrutement entreprises Genève"}),i.jsx("a",{href:"/About",children:"Qui sommes-nous Elite Sourcing"}),i.jsx("a",{href:"/Conseils",children:"Blog conseils carrière recrutement"}),i.jsx("a",{href:"/Contact",children:"Formulaire contact Elite Sourcing"}),i.jsx("a",{href:"/PrivacyPolicy",children:"Politique confidentialité RGPD"})]}),i.jsx("h2",{children:"Elite Sourcing – Agence de Placement Temporaire à Genève"}),i.jsx("p",{children:"Agence de recrutement spécialisée en placement CDI, CDD, intérim et try & hire en Suisse romande."})]})]})}function mz(){const t=new URLSearchParams(window.location.search).get("id"),[n,r]=y.useState(!1),{data:o,isLoading:l}=Bn({queryKey:["mission",t],queryFn:async()=>(await Ne.entities.Mission.list()).find(d=>d.id===t)});return Er(),Li({mutationFn:async()=>{await Ne.entities.Candidate.create({full_name:"Candidat",email:"[email protected]",position:o.title,source:"website"})},onSuccess:()=>{tt.success("Candidature envoyée"),r(!1)},onError:()=>{tt.error("Erreur lors de la candidature")}}),l?i.jsx("div",{className:"min-h-screen bg-slate-50 pt-32",children:i.jsx("div",{className:"max-w-4xl mx-auto px-6",children:i.jsxs("div",{className:"animate-pulse space-y-6",children:[i.jsx("div",{className:"h-8 bg-slate-200 rounded w-3/4"}),i.jsx("div",{className:"h-96 bg-slate-200 rounded"}),i.jsxs("div",{className:"space-y-3",children:[i.jsx("div",{className:"h-4 bg-slate-200 rounded"}),i.jsx("div",{className:"h-4 bg-slate-200 rounded"})]})]})})}):o?i.jsxs("div",{className:"min-h-screen bg-slate-50",children:[i.jsx("div",{className:"pt-32 pb-12 bg-slate-900",children:i.jsxs("div",{className:"max-w-4xl mx-auto px-6",children:[i.jsx(Be,{to:Us("Offres"),children:i.jsxs(te,{variant:"ghost",className:"text-white hover:text-slate-300 hover:bg-white/10 mb-6",children:[i.jsx(Od,{className:"w-4 h-4 mr-2"}),"Retour aux offres"]})}),i.jsxs(q.div,{initial:{opacity:0,y:30}
531,animate:{opacity:1,y:0},transition:{duration:.6},children:[i.jsx("h1",{className:"text-4xl lg:text-5xl font-bold text-white mb-6",children:o.title}),i.jsx("p",{className:"text-xl text-slate-300 mb-4",children:o.client_name})]})]})}),i.jsx("div",{className:"max-w-4xl mx-auto px-6 py-12",children:i.jsx(q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-white rounded-lg shadow-lg p-8",children:i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[o.location&&i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx(la,{className:"w-5 h-5 text-red-500 mt-1 flex-shrink-0"}),i.jsxs("div",{children:[i.jsx("p",{className:"text-sm text-slate-500 font-medium",children:"Localisation"}),i.jsx("p",{className:"text-lg font-semibold text-slate-900",children:o.location})]})]}),o.contract_type&&i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx(zs,{className:"w-5 h-5 text-red-500 mt-1 flex-shrink-0"}),i.jsxs("div",{children:[i.jsx("p",{className:"text-sm text-slate-500 font-medium",children:"Type de contrat"}),i.jsx("p",{className:"text-lg font-semibold text-slate-900",children:o.contract_type})]})]}),(o.salary_min||o.salary_max)&&i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx(Ld,{className:"w-5 h-5 text-red-500 mt-1 flex-shrink-0"}),i.jsxs("div",{children:[i.jsx("p",{className:"text-sm text-slate-500 font-medium",children:"Salaire"}),i.jsx("p",{className:"text-lg font-semibold text-slate-900",children:o.salary_min&&o.salary_max?`${o.salary_min.toLocaleString()} - ${o.salary_max.toLocaleString()} CHF`:o.salary_min?`À partir de ${o.salary_min.toLocaleString()} CHF`:`Jusqu'à ${o.salary_max.toLocaleString()} CHF`})]})]}),o.start_date&&i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx(Dd,{className:"w-5 h-5 text-red-500 mt-1 flex-shrink-0"}),i.jsxs("div",{children:[i.jsx("p",{className:"text-sm text-slate-500 font-medium",children:"Date de début"}),i.jsx("p",{className:"text-lg font-semibold text-slate-900",children:new Date(o.start_date).toLocaleDateString("fr-FR",{day:"numeric",month:"long",year:"numeric"})})]})]})]}),o.description&&i.jsxs("div",{children:[i.jsx("h2",{className:"text-2xl font-bold text-slate-900 mb-4",children:"Description du poste"}),i.jsx("p",{className:"text-slate-700 leading-relaxed whitespace-pre-wrap",children:o.description})]}),o.requirements&&o.requirements.length>0&&i.jsxs("div",{children:[i.jsx("h2",{className:"text-2xl font-bold text-slate-900 mb-4",children:"Exigences"}),i.jsx("ul",{className:"list-disc list-inside space-y-2 text-slate-700",children:o.requirements.map((c,d)=>i.jsx("li",{children:c},d))})]}),i.jsx("div",{className:"pt-8 border-t border-slate-200",children:i.jsx(Be,{to:`${Us("CandidateForm")}?position=${encodeURIComponent(o.title)}`,children:i.jsx(te,{className:"w-full bg-red-500 hover:bg-red-600 text-white py-6 text-lg",children:"Postuler pour ce poste"})})})]})})})]}):i.jsx("div",{className:"min-h-screen bg-slate-50 pt-32",children:i.jsxs("div",{className:"max-w-4xl mx-auto px-6 text-center",children:[i.jsx("h1",{className:"text-2xl font-bold text-slate-900 mb-4",children:"Offre introuvable"}),i.jsx(Be,{to:Us("Offres"),children:i.jsx(te,{children:"Retour aux offres"})})]})})}const gz={CDI:"bg-green-100 text-green-800 border-green-200",CDD:"bg-blue-100 text-blue-800 border-blue-200",Freelance:"bg-purple-100 text-purple-800 border-purple-200",Stage:"bg-orange-100 text-orange-800 border-orange-200",Alternance:"bg-cyan-100 text-cyan-800 border-cyan-200"},xz={low:"bg-slate-100 text-slate-600",medium:"bg-yellow-100 text-yellow-800",high:"bg-orange-100 text-orange-800",urgent:"bg-red-100 text-red-800"};function vz(){const[e,t]=y.useState(""),[n,r]=y.useState(0),{data:o=[],isLoading:l}=Bn({queryKey:["missions"],queryFn:()=>Ne.entities.Mission.list("-created_date"),refetchInterval:5e3}),c=o.filter(f=>f.status==="published"||f.status==="open"),d=c.filter(f=>{var m,g,v;return((m=f.title)==null?void 0:m.toLowerCase().includes(e.toLowerCase()))||((g=f.client_name)==null?void 0:g.toLowerCase().includes(e.toLowerCase()))||((v=f.location)==null?void 0:v.toLowerCase().includes(e.toLowerCase()))}),h={"@context":"https://schema.org","@type":"ItemList",itemListElement:d.map((f,m)=>({"@type":"ListItem",position:m+1,item:{"@type":"JobPosting",title:f.title,de
531scription:f.description||"Opportunité de carrière chez "+f.client_name,datePosted:f.created_date,hiringOrganization:{"@type":"Organization",name:f.client_name,sameAs:"https://elitesourcing.ch"},jobLocation:{"@type":"Place",address:{"@type":"PostalAddress",addressLocality:f.location||"Genève",addressCountry:"CH"}},employmentType:f.contract_type||"FULL_TIME",baseSalary:f.salary_min?{"@type":"MonetaryAmount",currency:"CHF",value:{"@type":"QuantitativeValue",minValue:f.salary_min,maxValue:f.salary_max||f.salary_min,unitText:"YEAR"}}:void 0}}))};return it.useEffect(()=>{if(c.length>0&&n<c.length){const f=setTimeout(()=>{r(n+1)},30);return()=>clearTimeout(f)}},[n,c.length]),i.jsxs("div",{className:"min-h-screen bg-slate-50",children:[i.jsx(ts,{title:"Offres d'Emploi à Genève & Suisse Romande | Elite Sourcing",description:"Trouvez votre prochain emploi parmi nos offres en Suisse romande : CDI, CDD, missions temporaires. Postes dans le bâtiment, l'horlogerie, l'industrie et plus. Postulez en ligne !",keywords:"offres emploi Genève, emploi Suisse romande, jobs Genève CDI CDD, emploi temporaire Genève, agence placement Genève, Elite Sourcing offres",canonical:"/Offres",structuredData:h}),i.jsxs("section",{className:"relative h-96 overflow-hidden",children:[i.jsxs("div",{className:"absolute inset-0",children:[i.jsx("img",{src:"https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920&h=400&fit=crop",alt:"Vue panoramique de Genève avec le Jet d'eau - Offres d'emploi Elite Sourcing",className:"w-full h-full object-cover",loading:"eager"}),i.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-slate-900/90 to-slate-900/70"})]}),i.jsx("div",{className:"relative max-w-7xl mx-auto px-6 h-full flex flex-col justify-center",children:i.jsxs(q.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},children:[i.jsx("h1",{className:"text-4xl lg:text-5xl font-bold text-white mb-6",children:"Offres d'Emploi à Genève & Suisse Romande"}),i.jsxs("p",{className:"text-xl text-slate-200 max-w-2xl",children:["Trouvez votre prochaine opportunité parmi nos"," ",i.jsx(q.span,{initial:{scale:1.5,color:"#ef4444"},animate:{scale:1,color:"#e2e8f0"},transition:{duration:.5},className:"font-bold",children:n},n)," ","postes disponibles"]})]})})]}),i.jsx("section",{className:"py-8 bg-white shadow-sm sticky top-20 z-40",children:i.jsx("div",{className:"max-w-7xl mx-auto px-6",children:i.jsxs("div",{className:"flex flex-col md:flex-row gap-4",children:[i.jsxs("div",{className:"relative flex-1",children:[i.jsx(Yr,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-5 h-5 text-slate-400"}),i.jsx(qe,{placeholder:"Rechercher par titre, entreprise ou localisation...",value:e,onChange:f=>t(f.target.value),className:"pl-12 py-6 text-lg border-slate-300"})]}),i.jsxs(te,{className:"bg-red-500 hover:bg-red-600 text-white px-8 py-6",children:[i.jsx(Yr,{className:"w-5 h-5 mr-2"}),"Rechercher"]})]})})}),i.jsx("section",{className:"py-16",children:i.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[i.jsx("div",{className:"mb-8 flex items-center justify-between",children:i.jsxs(q.h2,{className:"text-2xl font-bold text-slate-900",initial:{scale:1.2,color:"#ef4444"},animate:{scale:1,color:"#0f172a"},transition:{duration:.4},children:[d.length," offres disponibles"]},d.length)}),l?i.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:Array(6).fill(0).map((f,m)=>i.jsxs(ct,{className:"p-6 animate-pulse",children:[i.jsx("div",{className:"h-6 bg-slate-200 rounded mb-4"}),i.jsx("div",{className:"h-4 bg-slate-200 rounded mb-2"}),i.jsx("div",{className:"h-4 bg-slate-200 rounded w-2/3"})]},m))}):d.length===0?i.jsx(ct,{className:"p-12 text-center",children:i.jsx("p",{className:"text-slate-500 text-lg",children:"Aucune offre ne correspond à votre recherche"})}):i.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:d.map((f,m)=>i.jsx(q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:m*.05},whileHover:{y:-8,transition:{duration:.2}},children:i.jsxs(ct,{className:"p-0 hover:shadow-2xl hover:shadow-red-500/10 transition-all duration-300 group cursor-pointer h-full flex flex-col border-2 hover:border-red-500 overflow-hidden",children:[f.image_url&&i.jsx("div",{className:"w-full h-48 overflow-hidden bg-slate-200",children:i.jsx("img",{src:f.image_url,alt:f.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"})}),i.jsxs("div",{className:"p-6 flex flex-col flex-1",children:[i.jsxs("div",{className:"flex items-start justify-between mb-4",children:[i.jsx("div",{className:"flex-1",children:i.jsx("h3",{className:"text-xl font-bold text-slate-900 mb-2 group-hover:text-red-500 transition-colors",children:f.title})}),f.priority&&f.priority!=="low"&&i.jsx(q.div,{animate:f.priority==="urgent"?{scale:[1,1.1,1]}:{},transition:{duration:2,repeat:1/0,ease:"easeInOut"},children:i.jsx(Vn,{className:`${xz[f.priority]} text-xs`,children:f.priority==="urgent"?"🔥 Urgent":f.priority==="high"?"Prioritaire":"Normal"})})]}),i.jsxs("div",{className:"space-y-3 mb-6 flex-1",children:[f.location&&i.jsxs("div",{className:"flex items-center gap-2 text-slate-600",children:[i.jsx(la,{className:"w-4 h-4 flex-shrink-0"}),i.jsx("span",{className:"text-sm",children:f.location})]}),f.contract_type&&i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(zs,{className:"w-4 h-4 text-slate-600 flex-shrink-0"}),i.jsx(Vn,{className:`${gz[f.contract_type]} text-xs`,children:f.contract_type})]}),(f.salary_min||f.salary_max)&&i.jsxs("div",{className:"flex items-center gap-2 text-slate-600",children:[i.jsx(Ld,{className:"w-4 h-4 flex-shrink-0"}),i.jsx("span",{className:"text-sm",children:f.salary_min&&f.salary_max?`${f.salary_min.toLocaleStr
531ing()} - ${f.salary_max.toLocaleString()} CHF`:f.salary_min?`À partir de ${f.salary_min.toLocaleString()} CHF`:`Jusqu'à ${f.salary_max.toLocaleString()} CHF`})]})]}),f.description&&i.jsx("p",{className:"text-sm text-slate-500 mb-6 line-clamp-2",children:f.description}),i.jsxs(q.div,{className:"flex gap-3",initial:{opacity:0},animate:{opacity:1},transition:{delay:.3},children:[i.jsx(q.div,{className:"flex-1",whileHover:{scale:1.05},whileTap:{scale:.95},children:i.jsx(Be,{to:`${Us("MissionDetail")}?id=${f.id}`,className:"w-full",children:i.jsx(te,{className:"w-full bg-slate-900 hover:bg-slate-800 text-white",children:"Voir les détails"})})}),i.jsx(q.div,{whileHover:{scale:1.05},whileTap:{scale:.95},children:i.jsx(Be,{to:`${Us("CandidateForm")}?position=${encodeURIComponent(f.title)}`,children:i.jsx(te,{variant:"outline",className:"border-red-500 text-red-500 hover:bg-red-50",children:"Postuler"})})})]})]})]})},f.id))})]})})]})}function yz(){return i.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-slate-50 to-white",children:[i.jsx(ts,{title:"Politique de Confidentialité - Elite Sourcing",description:"Politique de confidentialité d'Elite Sourcing. Découvrez comment nous protégeons vos données personnelles.",canonical:"/PrivacyPolicy"}),i.jsx("section",{className:"relative pt-32 pb-16 bg-gradient-to-r from-slate-900 via-slate-800 to-slate-900",children:i.jsx("div",{className:"max-w-7xl mx-auto px-6",children:i.jsxs(q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center",children:[i.jsx("div",{className:"flex justify-center mb-6",children:i.jsx("div",{className:"bg-red-500/10 p-4 rounded-2xl",children:i.jsx(vR,{className:"w-12 h-12 text-red-500"})})}),i.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-white mb-4",children:"Politique de Confidentialité"}),i.jsx("p",{className:"text-xl text-slate-300 max-w-3xl mx-auto",children:"Dernière mise à jour : Janvier 2025"})]})})}),i.jsx("section",{className:"py-16",children:i.jsx("div",{className:"max-w-4xl mx-auto px-6",children:i.jsx(q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"prose prose-lg max-w-none",children:i.jsxs("div",{className:"bg-white rounded-2xl shadow-xl p-8 md:p-12 space-y-8",children:[i.jsxs("div",{children:[i.jsx("h2",{className:"text-2xl font-bold text-slate-900 mb-4",children:"1. Introduction"}),i.jsx("p",{className:"text-slate-600",children:"Elite Sourcing SA s'engage à protéger la confidentialité de vos données personnelles. Cette politique décrit comment nous collectons, utilisons et protégeons vos informations conformément à la législation suisse sur la protection des données (LPD) et au Règlement général sur la protection des données (RGPD)."})]}),i.jsxs("div",{children:[i.jsx("h2",{className:"text-2xl font-bold text-slate-900 mb-4",children:"2. Responsable du traitement"}),i.jsxs("p",{className:"text-slate-600",children:[i.jsx("strong",{children:"Elite Sourcing SA"}),i.jsx("br",{}),"Route de Saint-Julien 292A",i.jsx("br",{}),"1258 Perly, Genève, Suisse",i.jsx("br",{}),"Téléphone : +41 22 771 31 76",i.jsx("br",{}),"Email : [email protected]"]})]}),i.jsxs("div",{children:[i.jsx("h2",{className:"text-2xl font-bold text-slate-900 mb-4",children:"3. Données collectées"}),i.jsx("p",{className:"text-slate-600 mb-3",children:"Nous collectons les données suivantes :"}),i.jsxs("ul",{className:"list-disc pl-6 text-slate-600 space-y-2",children:[i.jsxs("li",{children:[i.jsx("strong",{children:"Candidats :"})," nom, prénom, email, téléphone, CV, expériences professionnelles, compétences"]}),i.jsxs("li",{children:[i.jsx("strong",{children:"Entreprises :"})," nom de l'entreprise, nom du contact, email, téléphone, secteur d'activité"]}),i.jsxs("li",{children:[i.jsx("strong",{children:"Navigation :"})," cookies techniques pour le bon fonctionnement du site"]})]})]}),i.jsxs("div",{children:[i.jsx("h2",{className:"text-2xl font-bold text-slate-900 mb-4",children:"4. Finalités du traitement"}),i.jsx("p",{className:"text-slate-600 mb-3",children:"Vos données sont utilisées pour :"}),i.jsxs("ul",{className:"list-disc pl-6 text-slate-600 space-y-2",children:[i.jsx("li",{children:"Gérer vos candidatures et recherches d'emploi"}),i.jsx("li",{children:"Traiter les demandes de recrutement des entreprises"}),i.jsx("li",{children:"Vous contacter concernant des opportunités professionnelles"}),i.jsx("li",{children:"Améliorer nos services"}),i.jsx("li",{children:"Respecter nos obligations légales"})]})]}),i.jsxs("div",{children:[i.jsx("h2",{className:"text-2xl font-bold text-slate-900 mb-4",children:"5. Base légale"}),i.jsx("p",{className:"text-slate-600",children:"Le traitement de vos données repose sur :"}),i.jsxs("ul",{className:"list-disc pl-6 text-slate-600 space-y-2",children:[i.jsx("li",{children:"Votre consentement explicite"}),i.jsx("li",{children:"L'exécution de mesures précontractuelles"}),i.jsx("li",{children:"Nos intérêts légitimes en tant qu'agence de recrutement"})]})]}),i.jsxs("div",{children:[i.jsx("h2",{className:"text-2xl font-bold text-slate-900 mb-4",children:"6. Conservation des données"}),i.jsx("p",{className:"text-slate-600",children:"Vos données sont conservées pendant :"}),i.jsxs("ul",{className:"list-disc pl-6 text-slate-600 space-y-2",children:[i.jsxs("li",{children:[i.jsx("strong",{children:"CV et candidatures :"})," 2 ans maximum après votre dernière interaction"]}),i.jsxs("li",{children:[i.jsx("strong",{children:"Données entreprises :"})," durée de la relation commerciale + 5 ans"]}),i.jsxs("li",{children:[i.jsx("strong",{children:"Cookies :"})," 13 mois maximum"]})]})]}),i.jsxs("div",{children:[i.jsx("h2",{className:"text-2xl font-bold text-slate-900 mb-4",children:"7. Partage des données"}),i.jsx("p",{className:"text-slate-600",children:"Vos données peuvent être partagées avec :"}),i.jsxs("ul",{className:"list-disc pl-6 text-slate-600 space-y-2",children:[i.jsx("li",{children:"Les entreprises clientes pour lesquelles vous postulez (avec votre consentement)"}),i.jsx("li",{children:"Nos prestataires techniques (hébergement, emails)"}),i.jsx("li",{children:"Les autorités légales si requis par la loi"})]}),i.jsx("p",{className:"text-slate-600 mt-3",children:"Nous ne vendons jamais vos données à des tiers."})]}),i.jsxs("div",{children:[i.jsx("h2",{className:"text-2xl font-bold text-slate-900 mb-4",children:"8. Vos droits"}),i.jsx("p",{className:"text-slate-600 mb-3",children:"Conformément à la LPD et au RGPD, vou
531s disposez des droits suivants :"}),i.jsxs("ul",{className:"list-disc pl-6 text-slate-600 space-y-2",children:[i.jsxs("li",{children:[i.jsx("strong",{children:"Droit d'accès :"})," obtenir une copie de vos données"]}),i.jsxs("li",{children:[i.jsx("strong",{children:"Droit de rectification :"})," corriger vos données inexactes"]}),i.jsxs("li",{children:[i.jsx("strong",{children:"Droit à l'effacement :"})," demander la suppression de vos données"]}),i.jsxs("li",{children:[i.jsx("strong",{children:"Droit d'opposition :"})," vous opposer au traitement de vos données"]}),i.jsxs("li",{children:[i.jsx("strong",{children:"Droit à la portabilité :"})," recevoir vos données dans un format structuré"]}),i.jsxs("li",{children:[i.jsx("strong",{children:"Droit de limitation :"})," demander la limitation du traitement"]})]}),i.jsxs("p",{className:"text-slate-600 mt-3",children:["Pour exercer vos droits, contactez-nous à : ",i.jsx("a",{href:"mailto:[email protected]",className:"text-red-500 hover:text-red-600",children:"[email protected]"})]})]}),i.jsxs("div",{children:[i.jsx("h2",{className:"text-2xl font-bold text-slate-900 mb-4",children:"9. Sécurité"}),i.jsx("p",{className:"text-slate-600",children:"Nous mettons en œuvre des mesures techniques et organisationnelles appropriées pour protéger vos données contre tout accès non autorisé, perte ou destruction. Nos systèmes sont hébergés en Suisse et conformes aux standards de sécurité."})]}),i.jsxs("div",{children:[i.jsx("h2",{className:"text-2xl font-bold text-slate-900 mb-4",children:"10. Cookies"}),i.jsx("p",{className:"text-slate-600",children:"Notre site utilise uniquement des cookies techniques essentiels au fonctionnement du site. Vous pouvez gérer vos préférences via la bannière cookies."})]}),i.jsxs("div",{children:[i.jsx("h2",{className:"text-2xl font-bold text-slate-900 mb-4",children:"11. Modifications"}),i.jsx("p",{className:"text-slate-600",children:"Nous nous réservons le droit de modifier cette politique. Les modifications seront publiées sur cette page avec une nouvelle date de mise à jour."})]}),i.jsxs("div",{children:[i.jsx("h2",{className:"text-2xl font-bold text-slate-900 mb-4",children:"12. Réclamations"}),i.jsx("p",{className:"text-slate-600",children:"Si vous estimez que vos droits ne sont pas respectés, vous pouvez déposer une réclamation auprès du Préposé fédéral à la protection des données et à la transparence (PFPDT) en Suisse."})]}),i.jsxs("div",{className:"bg-slate-50 rounded-xl p-6 mt-8",children:[i.jsx("h3",{className:"text-lg font-semibold text-slate-900 mb-2",children:"Contact"}),i.jsxs("p",{className:"text-slate-600",children:["Pour toute question concernant cette politique de confidentialité :",i.jsx("br",{}),i.jsx("strong",{children:"Email :"})," ",i.jsx("a",{href:"mailto:[email protected]",className:"text-red-500 hover:text-red-600",children:"[email protected]"}),i.jsx("br",{}),i.jsx("strong",{children:"Téléphone :"})," ",i.jsx("a",{href:"tel:+41227713176",className:"text-red-500 hover:text-red-600",children:"+41 22 771 31 76"})]})]})]})})})})]})}function wz(){const e=Bd(),[t,n]=y.useState(null),[r,o]=y.useState(!0),[l,c]=y.useState(!1);y.useEffect(()=>{const h=async()=>{try{const m=await Ne.auth.me();if(!m){e("/Home");return}n(m),m.approved&&(c(!0),setTimeout(()=>{e("/AdminDashboard")},1500))}catch{e("/Home")}finally{o(!1)}};h();const f=setInterval(h,2e3);return()=>clearInterval(f)},[e]);const d=()=>{Ne.auth.logout("/Home")};return r?i.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-900 to-slate-950 flex items-center justify-center p-6",children:i.jsxs("div",{className:"text-white text-center",children:[i.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-white mx-auto mb-4"}),i.jsx("p",{children:"Chargement..."})]})}):i.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-900 to-slate-950 flex items-center justify-center p-6",children:i.jsx(q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"w-full max-w-md",children:i.jsx(ct,{className:"bg-slate-900/80 border-slate-800 backdrop-blur-sm p-8 text-center",children:l?i.jsxs(i.Fragment,{children:[i.jsx(q.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200},className:"w-16 h-16 bg-green-500/10 rounded-full flex items-center justify-center mx-auto mb-6",children:i.jsx(sm,{className:"w-8 h-8 text-green-500"})}),i.jsx("h2",{className:"text-2xl font-bold text-white mb-2",children:"Compte approuvé!"}),i.jsx("p",{className:"text-slate-400 mb-6",children:"Votre compte a été validé. Redirection en cours..."})]}):i.jsxs(i.Fragment,{children:[i.jsx(q.div,{animate:{rotate:360},transition:{duration:2,repeat:1/0,ease:"linear"},className:"w-16 h-16 bg-blue-500/10 rounded-full flex items-center justify-center mx-auto mb-6",children:i.jsx(Ql,{className:"w-8 h-8 text-blue-500"})}),i.jsx("h2",{className:"text-2xl font-bold text-white mb-2",children:"En attente de confirmation"}),i.jsx("p",{className:"text-slate-400 mb-4",children:"Votre inscription est en attente de validation par un administrateur."}),i.jsxs("p",{className:"text-sm text-slate-500 mb-6",children:["Email: ",i.jsx("span",{className:"text-slate-300",children:t==null?void 0:t.email})]}),i.jsx("p",{className:"text-xs text-slate-500 mb-8",children:"Cette page se rafraîchira automatiquement lorsque votre compte sera approuvé."}),i.jsxs(te,{onClick:d,variant:"outline",className:"w-full border-slate-700 text-slate-300 hover:bg-slate-800",children:[i.jsx(xj,{className:"w-4 h-4 mr-2"}),"Déconnexion"]})]})})})})}function bz(){const[e,t]=y.useState(!1),[n,r]=y.useState(!1),[o,l]=y.useState(!1),[c,d]=y.useState([{role:"assistant",content:"Bonjour ! Je suis Jean-François, votre assistant Elite Sourcing. Comment puis-je vous aider aujourd'hui ?"}]),[h,f]=y.useState(""),[m,g]=y.useState(!1),v=y.useRef(null),N=()=>{var C;(C=v.current)==null||C.scrollIntoView({behavior:"smooth"})};y.useEffect(()=>{N()},[c]);const j=async()=>
531{if(!h.trim()||m)return;const C=h.trim();f(""),d(S=>[...S,{role:"user",content:C}]),g(!0);try{const S=`Tu es l'assistant virtuel d'Elite Sourcing, une agence de recrutement basée à Genève.
532
533INFORMATIONS SUR ELITE SOURCING:
534- Cabinet de recrutement d'élite spécialisé dans le placement de candidats qualifiés
535- Adresse: Route de Saint-Julien 292A, 1258 Perly, Genève
536- Téléphone: +41 22 771 31 76
537- Horaires: Du lundi au vendredi, de 08h00 à 17h30
538- Services: Recrutement temporaire et fixe, accompagnement personnalisé
539
540SECTIONS DU SITE:
541- /Offres : Consulter les offres d'emploi disponibles
542- /CandidateForm : Déposer un CV ou postuler à une offre
543- /Contact : Contacter l'équipe ou déposer une demande entreprise
544- /About : En savoir plus sur Elite Sourcing
545
546INSTRUCTIONS:
547- Réponds en français de manière professionnelle et amicale
548- Pour les questions sur les offres d'emploi, mentionne qu'il y a des postes dans le bâtiment, l'horlogerie, et d'autres secteurs
549- Suggère de visiter la page /Offres pour voir toutes les opportunités
550- Pour les candidats, encourage à déposer leur CV via /CandidateForm
551- Pour les entreprises, suggère de contacter via /Contact
552- Si une question nécessite un contact humain, fournis les coordonnées
553- Sois concis (max 3-4 phrases par réponse)
554
555Question de l'utilisateur: ${C}`,k=await Ne.integrations.Core.InvokeLLM({prompt:S,add_context_from_internet:!1});d(_=>[..._,{role:"assistant",content:k}])}catch{d(k=>[...k,{role:"assistant",content:"Désolé, une erreur s'est produite. Pour une assistance immédiate, contactez-nous au +41 22 771 31 76."}])}finally{g(!1)}},b=C=>{C.key==="Enter"&&!C.shiftKey&&(C.preventDefault(),j())};return i.jsxs(i.Fragment,{children:[i.jsxs(q.div,{initial:{scale:0,opacity:0},animate:{scale:1,opacity:1},transition:{delay:.3},className:"fixed bottom-24 right-6 z-50",onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[i.jsx("a",{href:"tel:+41227713176",children:i.jsx(q.div,{whileHover:{scale:1.1},whileTap:{scale:.95},animate:{boxShadow:["0 0 20px rgba(239, 68, 68, 0.5)","0 0 40px rgba(239, 68, 68, 0.8)","0 0 20px rgba(239, 68, 68, 0.5)"]},transition:{boxShadow:{duration:2,repeat:1/0,ease:"easeInOut"}},className:"rounded-full",children:i.jsx(te,{className:"w-14 h-14 rounded-full bg-gradient-to-r from-red-500 to-red-600 hover:from-red-600 hover:to-red-700 shadow-2xl hover:shadow-red-500/50 transition-all relative",children:i.jsx(qs,{className:"w-6 h-6 text-white"})})})}),i.jsx(yr,{children:o&&i.jsxs(q.div,{initial:{opacity:0,x:10},animate:{opacity:1,x:0},exit:{opacity:0,x:10},className:"absolute right-full mr-3 top-1/2 -translate-y-1/2 bg-slate-900 text-white text-sm px-4 py-2 rounded-lg whitespace-nowrap pointer-events-none shadow-xl",children:[i.jsx("div",{className:"font-semibold",children:"Appelez-nous"}),i.jsx("div",{className:"text-slate-300",children:"+41 22 771 31 76"}),i.jsx("div",{className:"absolute right-0 top-1/2 -translate-y-1/2 translate-x-1/2 rotate-45 w-2 h-2 bg-slate-900"})]})})]}),i.jsx(yr,{children:!e&&i.jsx(q.div,{initial:{scale:0,opacity:0},animate:{scale:1,opacity:1},exit:{scale:0,opacity:0},className:"fixed bottom-6 right-6 z-50",children:i.jsx(q.div,{whileHover:{scale:1.1},whileTap:{scale:.95},children:i.jsx(te,{onClick:()=>t(!0),className:"w-16 h-16 rounded-full bg-gradient-to-r from-red-500 to-red-600 hover:from-red-600 hover:to-red-700 shadow-2xl hover:shadow-red-500/50 transition-all",children:i.jsx(oR,{className:"w-7 h-7 text-white"})})})})}),i.jsx(yr,{children:e&&i.jsxs(q.div,{initial:{opacity:0,y:100,scale:.8},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:100,scale:.8},className:"fixed bottom-6 right-6 z-50 w-[380px] max-w-[calc(100vw-3rem)] h-[600px] max-h-[calc(100vh-3rem)] bg-white rounded-2xl shadow-2xl flex flex-col overflow-hidden",children:[i.jsxs("div",{className:"bg-gradient-to-r from-red-500 to-red-600 p-4 flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:"w-10 h-10 rounded-full bg-white/20 flex items-center justify-center",children:i.jsx(yp,{className:"w-6 h-6 text-white"})}),i.jsxs("div",{children:[i.jsx("h3",{className:"text-white font-semibold",children:"Jean-François"}),i.jsx("p",{className:"text-white/80 text-xs",children:"Assistant Elite Sourcing • En ligne"})]})]}),i.jsx(te,{onClick:()=>t(!1),variant:"ghost",size:"icon",className:"text-white hover:bg-white/20",children:i.jsx(Ki,{className:"w-5 h-5"})})]}),i.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4 bg-slate-50",children:[c.map((C,S)=>i.jsxs(q.div,{initial:{opacity:0,y:10}
555,animate:{opacity:1,y:0},className:`flex gap-2 ${C.role==="user"?"justify-end":"justify-start"}`,children:[C.role==="assistant"&&i.jsx("div",{className:"w-8 h-8 rounded-full bg-red-500 flex items-center justify-center flex-shrink-0",children:i.jsx(yp,{className:"w-5 h-5 text-white"})}),i.jsx("div",{className:`max-w-[75%] rounded-2xl px-4 py-2.5 ${C.role==="user"?"bg-red-500 text-white":"bg-white text-slate-900 border border-slate-200"}`,children:i.jsx("p",{className:"text-sm leading-relaxed whitespace-pre-wrap",children:C.content})}),C.role==="user"&&i.jsx("div",{className:"w-8 h-8 rounded-full bg-slate-700 flex items-center justify-center flex-shrink-0",children:i.jsx(wg,{className:"w-5 h-5 text-white"})})]},S)),m&&i.jsxs(q.div,{initial:{opacity:0},animate:{opacity:1},className:"flex gap-2",children:[i.jsx("div",{className:"w-8 h-8 rounded-full bg-red-500 flex items-center justify-center",children:i.jsx(yp,{className:"w-5 h-5 text-white"})}),i.jsx("div",{className:"bg-white rounded-2xl px-4 py-3 border border-slate-200",children:i.jsxs("div",{className:"flex gap-1",children:[i.jsx("div",{className:"w-2 h-2 bg-slate-400 rounded-full animate-bounce",style:{animationDelay:"0ms"}}),i.jsx("div",{className:"w-2 h-2 bg-slate-400 rounded-full animate-bounce",style:{animationDelay:"150ms"}}),i.jsx("div",{className:"w-2 h-2 bg-slate-400 rounded-full animate-bounce",style:{animationDelay:"300ms"}})]})})]}),i.jsx("div",{ref:v})]}),i.jsx("div",{className:"p-4 bg-white border-t border-slate-200",children:i.jsxs("div",{className:"flex gap-2",children:[i.jsx(qe,{value:h,onChange:C=>f(C.target.value),onKeyPress:b,placeholder:"Posez votre question...",className:"flex-1",disabled:m}),i.jsx(te,{onClick:j,disabled:!h.trim()||m,className:"bg-red-500 hover:bg-red-600",children:m?i.jsx(Jo,{className:"w-5 h-5 animate-spin"}):i.jsx(yj,{className:"w-5 h-5"})})]})})]})})]})}function jz(){const[e,t]=y.useState(!1),[n,r]=y.useState(!1);y.useEffect(()=>{localStorage.getItem("cookieConsent")?r(!0):setTimeout(()=>t(!0),1e3)},[]);const o=()=>{localStorage.setItem("cookieConsent","accepted"),t(!1),r(!0)},l=()=>{localStorage.setItem("cookieConsent","refused"),t(!1),r(!0)},c=()=>{t(!0)};return i.jsxs(i.Fragment,{children:[i.jsx(yr,{children:n&&!e&&i.jsx(q.div,{initial:{x:-100,opacity:0},animate:{x:0,opacity:1},exit:{x:-100,opacity:0},className:"fixed bottom-6 left-6 z-50",children:i.jsxs(q.button,{onClick:c,whileHover:{scale:1.1,rotate:10},whileTap:{scale:.95},className:"bg-slate-900 text-white p-3 rounded-full shadow-lg hover:bg-slate-800 transition-colors group",title:"Paramètres des cookies",style:{boxShadow:"0 0 20px rgba(239, 68, 68, 0.8), 0 0 40px rgba(239, 68, 68, 0.4), inset 0 0 10px rgba(239, 68, 68, 0.2)"},children:[i.jsx(Gy,{className:"w-5 h-5"}),i.jsx(q.div,{initial:{opacity:0,x:-10},whileHover:{opacity:1,x:0},className:"absolute left-full ml-3 top-1/2 -translate-y-1/2 bg-slate-900 text-white text-sm px-3 py-2 rounded-lg whitespace-nowrap pointer-events-none opacity-0 group-hover:opacity-100 transition-opacity",children:"Gérer les cookies"})]})})}),i.jsx(yr,{children:e&&i.jsx(q.div,{initial:{y:100,opacity:0},animate:{y:0,opacity:1},exit:{y:100,opacity:0},transition:{type:"spring",damping:20,stiffness:300},className:"fixed bottom-6 left-6 right-6 md:left-auto md:right-6 md:max-w-md z-50",children:i.jsxs("div",{className:"bg-white rounded-2xl shadow-2xl border-2 border-red-500 p-6 relative",style:{boxShadow:"0 0 20px rgba(239, 68, 68, 0.6), 0 0 40px rgba(239, 68, 68, 0.3)"},children:[i.jsx("button",{onClick:l,className:"absolute top-4 right-4 text-slate-400 hover:text-red-500 transition-colors",title:"Fermer",children:i.jsx(Ki,{className:"w-5 h-5"})}),i.jsxs("div",{className:"flex items-start gap-4 mb-4",children:[i.jsx("div",{className:"p-3 bg-slate-100 rounded-full",children:i.jsx(Gy,{className:"w-6 h-6 text-slate-700"})}),i.jsxs("div",{className:"flex-1",children:[i.jsx("h3",{className:"font-bold text-slate-900 mb-2",children:"Nous utilisons des cookies"}),i.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:"Nous utilisons de
555s cookies pour améliorer votre expérience sur notre site. En continuant, vous acceptez notre utilisation des cookies."})]})]}),i.jsxs("div",{className:"flex gap-3",children:[i.jsx(te,{onClick:l,variant:"outline",className:"flex-1 border-slate-300 text-slate-700 hover:bg-slate-50",children:"Refuser"}),i.jsx(te,{onClick:o,className:"flex-1 bg-slate-900 hover:bg-slate-800 text-white",children:"Accepter"})]})]})})})]})}function Nz(){const[e,t]=y.useState(()=>!sessionStorage.getItem("preloaderShown"));return y.useEffect(()=>{if(e){const n=setTimeout(()=>{t(!1),sessionStorage.setItem("preloaderShown","true")},1700);return()=>clearTimeout(n)}},[e]),i.jsx(yr,{mode:"wait",children:e&&i.jsxs(q.div,{initial:{opacity:1},exit:{opacity:0},transition:{duration:.4},className:"fixed inset-0 z-[9999] bg-gradient-to-br from-slate-950 via-slate-900 to-slate-950 flex items-center justify-center pointer-events-auto",children:[i.jsxs("div",{className:"absolute inset-0 overflow-hidden",children:[i.jsx(q.div,{animate:{scale:[1,1.2,1],opacity:[.1,.2,.1]},transition:{duration:3,repeat:1/0,ease:"easeInOut"},className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-96 h-96 bg-red-500 rounded-full blur-3xl"}),i.jsx(q.div,{animate:{scale:[1.2,1,1.2],opacity:[.1,.15,.1]},transition:{duration:3,repeat:1/0,ease:"easeInOut",delay:1},className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-80 h-80 bg-amber-500 rounded-full blur-3xl"})]}),i.jsxs("div",{className:"relative z-10",children:[i.jsxs(q.div,{initial:{scale:.5,opacity:0},animate:{scale:1,opacity:1},transition:{duration:.8,ease:"easeOut"},className:"relative",children:[i.jsx(q.div,{animate:{rotate:360},transition:{duration:2,repeat:1/0,ease:"linear"},className:"absolute -inset-8 rounded-full border-2 border-t-red-500 border-r-transparent border-b-amber-500 border-l-transparent"}),i.jsx(q.img,{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/6948f7f2482bad13c88dfbdc/4dd69289c_image.png",alt:"Elite Sourcing",className:"w-32 h-32 object-contain relative z-10",animate:{y:[0,-10,0]},transition:{duration:2,repeat:1/0,ease:"easeInOut"}}),i.jsx("div",{className:"absolute -bottom-12 left-1/2 -translate-x-1/2 flex gap-2",children:[0,1,2].map(n=>i.jsx(q.div,{animate:{scale:[1,1.5,1],opacity:[.5,1,.5]},transition:{duration:1.5,repeat:1/0,delay:n*.2},className:"w-2 h-2 bg-red-500 rounded-full"},n))})]}),i.jsx(q.div,{initial:{opacity:0}
555,animate:{opacity:1},transition:{delay:.5},className:"mt-16 text-center",children:i.jsx(q.p,{animate:{opacity:[.5,1,.5]},transition:{duration:2,repeat:1/0},className:"text-white text-lg font-light tracking-wider",children:"Chargement..."})})]})]})})}function Sz({children:e,currentPageName:t}){const[n,r]=y.useState(!1),[o,l]=y.useState(!1),c=Yi();it.useEffect(()=>{window.scrollTo(0,0)},[c.pathname]),it.useEffect(()=>{const f=()=>{l(window.scrollY>50)};return window.addEventListener("scroll",f),()=>window.removeEventListener("scroll",f)},[]),it.useEffect(()=>(n?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow="auto",document.body.style.overflow="auto"),()=>{document.documentElement.style.overflow="auto",document.body.style.overflow="auto"}),[n]);const d=[{name:"Candidats",path:"Offres"},{name:"Entreprises",path:"Entreprise"}],h=[{name:"À propos",path:"About"},{name:"Conseils",path:"Conseils"},{name:"Contact",path:"Contact"}];return it.useEffect(()=>{document.documentElement.setAttribute("translate","no"),document.documentElement.lang="fr";const f=document.createElement("meta");f.name="google",f.content="notranslate",document.head.appendChild(f);const m=document.createElement("meta");m.httpEquiv="Content-Security-Policy",m.content="default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' *.supabase.co *.stripe.com; style-src 'self' 'unsafe-inline'; img-src 'self' data: https: http:; font-src 'self' data:; connect-src 'self' *.supabase.co *.stripe.com https:",document.head.appendChild(m)},[]),i.jsxs("div",{className:"min-h-screen bg-white",translate:"no",children:[i.jsx(Nz,{}),t!=="Admin"&&i.jsxs("header",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${o||n?"bg-gradient-to-r from-blue-950 via-slate-950 to-blue-950 backdrop-blur-md":"bg-transparent"}`,children:[o&&i.jsx(q.div,{initial:{scaleX:0,opacity:0},animate:{scaleX:1,opacity:1},transition:{duration:.5,ease:"easeOut"},className:"absolute bottom-0 left-0 right-0 h-[2px] bg-gradient-to-r from-transparent via-red-500 to-transparent shadow-[0_0_15px_rgba(239,68,68,0.8)] origin-center",style:{animation:"glow-pulse 2s ease-in-out infinite"}}),i.jsx("style",{children:`
556          @keyframes glow-pulse {
557            0%, 100% { 
558              box-shadow: 0 0 15px rgba(239, 68, 68, 0.8);
559              opacity: 1;
560            }
561            50% { 
562              box-shadow: 0 0 25px rgba(239, 68, 68, 1);
563              opacity: 0.9;
564            }
565          }
566        `}),i.jsx("div",{className:"max-w-7xl mx-auto px-6",children:i.jsxs("div",{className:"flex items-center justify-between h-20",children:[i.jsx(Be,{to:"/Home",className:"flex-shrink-0",children:i.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/6948f7f2482bad13c88dfbdc/1f4313719_image.png",alt:"Elite Sourcing",className:"h-16 lg:h-20 w-auto object-contain"})}),i.jsxs("nav",{className:"hidden lg:flex items-center gap-6 xl:gap-8 flex-1 justify-center",children:[d.map(f=>i.jsxs(Be,{to:`/${f.path}`,className:`text-sm xl:text-base font-medium transition-all relative group whitespace-nowrap ${t===f.path?"text-red-500":"text-white"}`,children:[f.name,i.jsx("span",{className:"absolute -bottom-1 left-0 w-0 h-0.5 bg-red-500 transition-all duration-300 group-hover:w-full"})]},f.name)),h.map(f=>i.jsxs(Be,{to:`/${f.path}`,className:`text-sm xl:text-base font-medium transition-all relative group whitespace-nowrap ${t===f.path?"text-red-500":"text-white"}`,children:[f.name,i.jsx("span",{className:"absolute -bottom-1 left-0 w-0 h-0.5 bg-red-500 transition-all duration-300 group-hover:w-full"})]},f.name))]}),i.jsx("div",{className:"hidden lg:block mr-4",children:i.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/6948f7f2482bad13c88dfbdc/e9ef9c5a7_image.png",alt:"Swisstaffing",className:"h-8 w-auto opacity-90"})}),i.jsx("div",{className:"lg:hidden flex items-center gap-3",children:i.jsx("button",{onClick:()=>r(!n),className:"text-white",children:i.jsx(sR,{className:"w-6 h-6"})})})]})}),i.jsx(yr,{children:n&&i.jsxs(i.Fragment,{children:[i.jsx(q.div,{initial:{opacity:0}
566,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"lg:hidden fixed inset-0 bg-black/60 backdrop-blur-sm z-[9998]",onClick:()=>r(!1)}),i.jsx(q.div,{initial:{y:-300,opacity:0},animate:{y:0,opacity:1},exit:{y:-300,opacity:0},transition:{type:"spring",damping:25,stiffness:200},className:"lg:hidden fixed top-20 left-0 right-0 mx-4 bg-gradient-to-b from-slate-900 to-slate-950 rounded-2xl border border-red-500/30 shadow-2xl z-[9999] overflow-hidden",children:i.jsxs("div",{className:"relative p-6 space-y-2",children:[i.jsx("button",{onClick:()=>r(!1),className:"absolute top-3 right-3 text-slate-400 hover:text-red-500 transition-colors lg:hidden",title:"Fermer",children:i.jsx(Ki,{className:"w-6 h-6"})}),i.jsx("div",{className:"pt-4"}),[...d,...h].map((f,m)=>i.jsx(q.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:m*.1},children:i.jsx(Be,{to:`/${f.path}`,onClick:()=>r(!1),className:"block px-4 py-3 rounded-lg text-white font-medium hover:bg-red-500/20 hover:text-red-400 transition-all duration-200 border border-transparent hover:border-red-500/50",children:f.name})},f.name))]})})]})})]}),i.jsx("main",{children:e}),i.jsx(bz,{}),i.jsx(jz,{}),t!=="Admin"&&i.jsx("footer",{className:"bg-slate-900 text-white py-12 lg:py-16",children:i.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[i.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-8 lg:gap-12 mb-12",children:[i.jsx("div",{className:"lg:col-span-1",children:i.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/6948f7f2482bad13c88dfbdc/1f4313719_image.png",alt:"Elite Sourcing",className:"h-20 lg:h-28 w-auto"})}),i.jsxs("div",{children:[i.jsx("h3",{className:"font-semibold mb-4 text-base",children:"Candidats"}),i.jsxs("ul",{className:"space-y-2 text-sm text-slate-300",children:[i.jsx("li",{children:i.jsx(Be,{to:"/Offres",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),className:"hover:text-white transition-colors",children:"Offres d'emploi"})}),i.jsx("li",{children:i.jsx(Be,{to:"/CandidateForm",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),className:"hover:text-white transition-colors",children:"Partager un CV"})}),i.jsx("li",{children:i.jsx(Be,{to:"/About",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),className:"hover:text-white transition-colors",children:"Conseils carrière"})})]})]}),i.jsxs("div",{children:[i.jsx("h3",{className:"font-semibold mb-4 text-base",children:"Entreprises"}),i.jsxs("ul",{className:"space-y-2 text-sm text-slate-300",children:[i.jsx("li",{children:i.jsx(Be,{to:"/About",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),className:"hover:text-white transition-colors",children:"Notre expertise"})}),i.jsx("li",{children:i.jsx(Be,{to:"/Contact",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),className:"hover:text-white transition-colors",children:"Déposer une demande"})}),i.jsx("li",{children:i.jsx(Be,{to:"/About",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),className:"hover:text-white transition-colors",children:"Conseils recrutement"})})]})]}),i.jsxs("div",{children:[i.jsx("h3",{className:"font-semibold mb-4 text-base",children:"Informations"}),i.jsxs("ul",{className:"space-y-2 text-sm text-slate-300",children:[i.jsx("li",{children:i.jsx(Be,{to:"/About",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),className:"hover:text-white transition-colors",children:"À propos"})}),i.jsx("li",{children:i.jsx(Be,{to:"/Conseils",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),className:"hover:text-white transition-colors",children:"Conseils"})}),i.jsx("li",{children:i.jsx(Be,{to:"/PrivacyPolicy",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),className:"hover:text-white transition-colors",children:"Politique de confidentialité"})})]})]}),i.jsxs("div",{children:[i.jsx("h3",{className:"font-semibold mb-4 text-base",children:"Contactez-nous"}),i.jsxs("ul",{className:"space-y-3 text-sm text-slate-300",children:[i.jsxs("li",{className:"flex items-center gap-2",children:[i.jsx(qs,{className:"w-4 h-4 flex-shrink-0"}),i.jsx("a",{href:"tel:+41227713176",className:"hover:text-white transition-colors",children:"+41 22 771 31 76"})]}),i.jsxs("li",{className:"flex items-start gap-2",children:[i.jsx(la,{className:"w-4 h-4 mt-0.5 flex-shrink-0"}),i.jsxs("a",{href:"https://www.google.com/maps/dir/?api=1&destination=Route+de+Saint-Julien+292A,+1258+Perly,+Geneva,+Switzerland",target:"_blank",rel:"noopener noreferrer",className:"hover:text-white transition-colors",children:["Route de Saint-Julien 292A",i.jsx("br",{}),"1258 Perly, Genève"]})]}),i.jsxs("li",{className:"flex items-start gap-2",children:[i.jsx(Ql,{className:"w-4 h-4 mt-0.5 flex-shrink-0"}),i.jsxs("span",{children:["Du lundi au vendredi,",i.jsx("br",{}),"de 08h00 à 17h30"]})]})]})]})]}),i.jsx("div",{className:"pt-8 border-t border-slate-700",children:i.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-center gap-4 text-center sm:text-left",children:[i.jsx("div",{className:"text-xs sm:text-sm text-slate-400",children:"© Elite Sourcing 2025"}),i.jsx("div",{className:"flex items-center gap-2",children:i.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/6948f7f2482bad13c88dfbdc/02f99c234_image.png",alt:"Swisstaffing",className:"h-8 w-auto opacity-70"})}),i.jsx("a",{href:"https://nys-activity.ch/",target:"_blank",rel:"noopener noreferrer",className:"text-xs sm:text-sm text-slate-400 hover:text-white transition-colors",children:"Créé par NVS"})]})})]})})]})}const Cz={About:$8,Admin:rz,ArticleDetail:sz,CandidateForm:iz,Conseils:oz,Contact:az,Entreprise:dz,Home:pz,MissionDetail:mz,Offres:vz,PrivacyPolicy:yz,WaitingApproval:wz},VE={mainPage:"Home",Pages:Cz,Layout:Sz};function _z(){const e=Yi(),{isAuthenticated:t}=ZN(),{Pages:n,mainPage:r}=VE,o=r;return y.useEffect(()=>{const l=e.pathname;let c;if(l==="/"||l==="")c=o;else{const d=l.replace(/^\//,"").split("/")[0];c=Object.keys(n).find(m=>m.toLowerCase()===d.toLowerCase())||null}t&&c&&Ne.appLogs.logUserInApp(c).catch(()=>{})},[e,t,n,o]),null}function Ez({}){var o;const t=Yi().pathname.substring(1),{data:n,isFetched:r}=Bn({queryKey:["user"],queryFn:async()=>{try{return{user:await Ne.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return i.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:i.jsx("div",{className:"max-w-md w-full",children:i.jsxs("div",{className:"text-center space-y-6",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),i.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),i.jsxs("div",{className:"space-y-3",children:[i.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),i.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",i.jsxs("span",{className:"font-medium text-slate-700",children:['"',t,'"']})," could not be found in this application."]})]}),r&&n.isAuthenticated&&((o=n.user)==null?void 0:o.role)==="admin"&&i.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:i.jsxs("div",{className:"flex items-start space-x-3",children:[i.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:i.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),i.jsxs("div",{className:"text-left space-y-1",children:[i.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),i.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:"This could mean that the AI hasn't implemented this page yet. Ask it to implement it in the chat."})]})]})}),i.jsx("div",{className:"pt-6",children:i.jsxs("button",{onClick:()=>window.location.href="/",className:"inline-flex items-center px-4 py-2 text-sm font-medium text-slate-700 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:border-slate-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",children:[i.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Go Home"]})})]})})})}const kz=()=>i.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:i.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:i.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),i.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),i.jsx("p",{className:"text-slate-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),i.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[i.jsx("p",{children:"If you believe this is an error, you can:"}),i.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[i.jsx("li",{children:"Verify you are logged in with the correct account"}),i.jsx("li",{children:"Contact the app administrator for access"}),i.jsx("li",{children:"Try logging out and back in again"})]})]})]})})});function Tz(){return i.jsxs("div",{className:"min-h-screen bg-white p-8",children:[i.jsx(ts,{title:"Page Test SEO - Elite Sourcing",description:"Page optimisée pour Screaming Frog avec H1, liens internes et structure correcte",canonical:"/TestSEO"}),i.jsx("h1",{className:"text-4xl font-bold mb-6 text-slate-900",children:"Page Test SEO - Elite Sourcing Genève"}),i.jsx("p",{className:"text-lg text-slate-700 mb-6",children:"Cette page est optimisée pour les crawlers SEO avec une structure correcte."}),i.jsx("h2",{className:"text-2xl font-bold mt-12 mb-4 text-slate-900",children:"Nos services de recrutement"}),i.jsx("p",{className:"text-slate-700 mb-6",children:"Elite Sourcing propose des solutions complètes de recrutement à Genève et en Suisse romande. Nous couvrons les domaines : construction, finance, informatique, santé, logistique et hôtellerie."}),i.jsx("h2",{className:"text-2xl font-bold mt-12 mb-4 text-slate-900",children:"Parcours candidats"}),i.jsx("p",{className:"text-slate-700 mb-6",children:"Trouvez votre prochain emploi CDI, CDD ou temporaire avec Elite Sourcing. Accédez à nos offres d'emploi publiées régulièrement en Suisse romande."}),i.jsxs("nav",{className:"mt-16 p-6 bg-slate-50 rounded-lg",children:[i.jsx("h3",{className:"font-bold mb-4 text-slate-900",children:"Naviguez sur le site"}),i.jsxs("ul",{className:"space-y-3 text-slate-700",children:[i.jsx("li",{children:i.jsx(Be,{to:"/",className:"text-blue-600 hover:underline",children:"Accueil Elite Sourcing"})}),i.jsx("li",{children:i.jsx(Be,{to:"/Offres",className:"text-blue-600 hover:underline",children:"Offres d'emploi Genève"})}),i.jsx("li",{children:i.jsx(Be,{to:"/CandidateForm",className:"text-blue-600 hover:underline",children:"Déposer un CV"})}),i.jsx("li",{children:i.jsx(Be,{to:"/Entreprise",className:"text-blue-600 hover:underline",children:"Services pour entreprises"})}),i.jsx("li",{children:i.jsx(Be,{to:"/About",className:"text-blue-600 hover:underline",children:"À propos de nous"})}),i.jsx("li",{children:i.jsx(Be,{to:"/Conseils",className:"text-blue-600 hover:underline",children:"Blog et conseils"})}),i.jsx("li",{children:i.jsx(Be,{to:"/Contact",className:"text-blue-600 hover:underline",children:"Nous contacter"})})]})]}),i.jsxs("section",{className:"mt-16 p-6 bg-slate-900 text-white rounded-lg",children:[i.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Contactez Elite Sourcing"}),i.jsxs("p",{className:"mb-3",children:[i.jsx("strong",{children:"Adresse:"})," Route de Saint-Julien 292A, 1258 Perly, Genève, Suisse"]}),i.jsxs("p",{className:"mb-3",children:[i.jsx("strong",{children:"Téléphone:"})," ",i.jsx("a",{href:"tel:+41227713176",className:"hover:underline",children:"+41 22 771 31 76"})]}),i.jsxs("p",{className:"mb-3",children:[i.jsx("strong",{children:"Email:"})," ",i.jsx("a",{href:"mailto:[email protected]",className:"hover:underline",children:"[email protected]"})]}),i.jsxs("p",{className:"mb-3",children:[i.jsx("strong",{children:"Horaires:"})," Lundi au vendredi, 08h00–17h30"]})]})]})}const{Pages:BE,Layout:X1,mainPage:Pz}=VE,$E=Pz,Rz=BE[$E],J1=({children:e,currentPageName:t})=>X1?i.jsx(X1,{currentPageName:t,children:e}):i.jsx(i.Fragment,{children:e}),Az=()=>{const{isLoadingAuth:e,isLoadingPublicSettings:t,authError:n,navigateToLogin:r}=ZN();if(t||e)return i.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:i.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})});if(n){if(n.type==="user_not_registered")return i.jsx(kz,{});if(n.type==="auth_required")return r(),null}return i.jsxs(J4,{children:[i.jsx(hl,{path:"/TestSEO",element:i.jsx(Tz,{})}),i.jsx(hl,{path:"/",element:i.jsx(J1,{currentPageName:$E,children:i.jsx(Rz,{})})}),Object.entries(BE).map(([o,l])=>i.jsx(hl,{path:`/${o}`,element:i.jsx(J1,{currentPageName:o,children:i.jsx(l,{})})},o)),i.jsx(hl,{path:"*",element:i.jsx(Ez,{})})]})};function Mz(){return i.jsx(i3,{children:i.jsxs(GA,{client:o4,children:[i.jsxs(iM,{children:[i.jsx(_z,{}),i.jsx(Az,{})]}),i.jsx(SA,{})]})})}QT.createRoot(document.getElementById("root")).render(i.jsx(Mz,{}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.