var l1=Object.defineProperty;var Oh=e=>{throw TypeError(e)};var c1=(e,t,n)=>t in e?l1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Jt=(e,t,n)=>c1(e,typeof t!="symbol"?t+"":t,n),Gl=(e,t,n)=>t.has(e)||Oh("Cannot "+n);var T=(e,t,n)=>(Gl(e,t,"read from private field"),n?n.call(e):t.get(e)),G=(e,t,n)=>t.has(e)?Oh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),V=(e,t,n,a)=>(Gl(e,t,"write to private field"),a?a.call(e,n):t.set(e,n),n),Ne=(e,t,n)=>(Gl(e,t,"access private method"),n);var Ci=(e,t,n,a)=>({set _(r){V(e,t,r,n)},get _(){return T(e,t,a)}});function u1(e,t){for(var n=0;n<t.length;n++){const a=t[n];if(typeof a!="string"&&!Array.isArray(a)){for(const r in a)if(r!=="default"&&!(r in e)){const s=Object.getOwnPropertyDescriptor(a,r);s&&Object.defineProperty(e,r,s.get?s:{enumerable:!0,get:()=>a[r]})}}}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 r of document.querySelectorAll('link[rel="modulepreload"]'))a(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&a(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function a(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();function ml(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ox={exports:{}},gl={},lx={exports:{}},K={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ci=Symbol.for("react.element"),d1=Symbol.for("react.portal"),f1=Symbol.for("react.fragment"),h1=Symbol.for("react.strict_mode"),p1=Symbol.for("react.profiler"),m1=Symbol.for("react.provider"),g1=Symbol.for("react.context"),x1=Symbol.for("react.forward_ref"),y1=Symbol.for("react.suspense"),v1=Symbol.for("react.memo"),w1=Symbol.for("react.lazy"),Lh=Symbol.iterator;function b1(e){return e===null||typeof e!="object"?null:(e=Lh&&e[Lh]||e["@@iterator"],typeof e=="function"?e:null)}var cx={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ux=Object.assign,dx={};function Vr(e,t,n){this.props=e,this.context=t,this.refs=dx,this.updater=n||cx}Vr.prototype.isReactComponent={};Vr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Vr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function fx(){}fx.prototype=Vr.prototype;function _d(e,t,n){this.props=e,this.context=t,this.refs=dx,this.updater=n||cx}var Id=_d.prototype=new fx;Id.constructor=_d;ux(Id,Vr.prototype);Id.isPureReactComponent=!0;var _h=Array.isArray,hx=Object.prototype.hasOwnProperty,Fd={current:null},px={key:!0,ref:!0,__self:!0,__source:!0};function mx(e,t,n){var a,r={},s=null,i=null;if(t!=null)for(a in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)hx.call(t,a)&&!px.hasOwnProperty(a)&&(r[a]=t[a]);var o=arguments.length-2;if(o===1)r.children=n;else if(1<o){for(var c=Array(o),u=0;u<o;u++)c[u]=arguments[u+2];r.children=c}if(e&&e.defaultProps)for(a in o=e.defaultProps,o)r[a]===void 0&&(r[a]=o[a]);return{$$typeof:ci,type:e,key:s,ref:i,props:r,_owner:Fd.current}}function P1(e,t){return{$$typeof:ci,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function zd(e){return typeof e=="object"&&e!==null&&e.$$typeof===ci}function j1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ih=/\/+/g;function Ql(e,t){return typeof e=="object"&&e!==null&&e.key!=null?j1(""+e.key):t.toString(36)}function eo(e,t,n,a,r){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case ci:case d1:i=!0}}if(i)return i=e,r=r(i),e=a===""?"."+Ql(i,0):a,_h(r)?(n="",e!=null&&(n=e.replace(Ih,"$&/")+"/"),eo(r,t,n,"",function(u){return u})):r!=null&&(zd(r)&&(r=P1(r,n+(!r.key||i&&i.key===r.key?"":(""+r.key).replace(Ih,"$&/")+"/")+e)),t.push(r)),1;if(i=0,a=a===""?".":a+":",_h(e))for(var o=0;o<e.length;o++){s=e[o];var c=a+Ql(s,o);i+=eo(s,t,n,c,r)}else if(c=b1(e),typeof c=="function")for(e=c.call(e),o=0;!(s=e.next()).done;)s=s.value,c=a+Ql(s,o++),i+=eo(s,t,n,c,r);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Ni(e,t,n){if(e==null)return e;var a=[],r=0;return eo(e,a,"","",function(s){return t.call(n,s,r++)}),a}function S1(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var $e={current:null},to={transition:null},C1={ReactCurrentDispatcher:$e,ReactCurrentBatchConfig:to,ReactCurrentOwner:Fd};function gx(){throw Error("act(...) is not supported in production builds of React.")}K.Children={map:Ni,forEach:function(e,t,n){Ni(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ni(e,function(){t++}),t},toArray:function(e){return Ni(e,function(t){return t})||[]},only:function(e){if(!zd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};K.Component=Vr;K.Fragment=f1;K.Profiler=p1;K.PureComponent=_d;K.StrictMode=h1;K.Suspense=y1;K.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=C1;K.act=gx;K.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=ux({},e.props),r=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=Fd.current),t.key!==void 0&&(r=""+t.key),e.type&&e.type.defaultProps)var o=e.type.defaultProps;for(c in t)hx.call(t,c)&&!px.hasOwnProperty(c)&&(a[c]=t[c]===void 0&&o!==void 0?o[c]:t[c])}var c=arguments.length-2;if(c===1)a.children=n;else if(1<c){o=Array(c);for(var u=0;u<c;u++)o[u]=arguments[u+2];a.children=o}return{$$typeof:ci,type:e.type,key:r,ref:s,props:a,_owner:i}};K.createContext=function(e){return e={$$typeof:g1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:m1,_context:e},e.Consumer=e};K.createElement=mx;K.createFactory=function(e){var t=mx.bind(null,e);return t.type=e,t};K.createRef=function(){return{current:null}};K.forwardRef=function(e){return{$$typeof:x1,render:e}};K.isValidElement=zd;K.lazy=function(e){return{$$typeof:w1,_payload:{_status:-1,_result:e},_init:S1}};K.memo=function(e,t){return{$$typeof:v1,type:e,compare:t===void 0?null:t}};K.startTransition=function(e){var t=to.transition;to.transition={};try{e()}finally{to.transition=t}};K.unstable_act=gx;K.useCallback=function(e,t){return $e.current.useCallback(e,t)};K.useContext=function(e){return $e.current.useContext(e)};K.useDebugValue=function(){};K.useDeferredValue=function(e){return $e.current.useDeferredValue(e)};K.useEffect=function(e,t){return $e.current.useEffect(e,t)};K.useId=function(){return $e.current.useId()};K.useImperativeHandle=function(e,t,n){return $e.current.useImperativeHandle(e,t,n)};K.useInsertionEffect=function(e,t){return $e.current.useInsertionEffect(e,t)};K.useLayoutEffect=function(e,t){return $e.current.useLayoutEffect(e,t)};K.useMemo=function(e,t){return $e.current.useMemo(e,t)};K.useReducer=function(e,t,n){return $e.current.useReducer(e,t,n)};K.useRef=function(e){return $e.current.useRef(e)};K.useState=function(e){return $e.current.useState(e)};K.useSyncExternalStore=function(e,t,n){return $e.current.useSyncExternalStore(e,t,n)};K.useTransition=function(){return $e.current.useTransition()};K.version="18.3.1";lx.exports=K;var v=lx.exports;const Ut=ml(v),Vd=u1({__proto__:null,default:Ut},[v]);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var N1=v,k1=Symbol.for("react.element"),T1=Symbol.for("react.fragment"),E1=Object.prototype.hasOwnProperty,A1=N1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,R1={key:!0,ref:!0,__self:!0,__source:!0};function xx(e,t,n){var a,r={},s=null,i=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(i=t.ref);for(a in t)E1.call(t,a)&&!R1.hasOwnProperty(a)&&(r[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps,t)r[a]===void 0&&(r[a]=t[a]);return{$$typeof:k1,type:e,key:s,ref:i,props:r,_owner:A1.current}}gl.Fragment=T1;gl.jsx=xx;gl.jsxs=xx;ox.exports=gl;var l=ox.exports,yx={exports:{}},st={},vx={exports:{}},wx={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(k,D){var F=k.length;k.push(D);e:for(;0<F;){var B=F-1>>>1,Z=k[B];if(0<r(Z,D))k[B]=D,k[F]=Z,F=B;else break e}}function n(k){return k.length===0?null:k[0]}function a(k){if(k.length===0)return null;var D=k[0],F=k.pop();if(F!==D){k[0]=F;e:for(var B=0,Z=k.length,yt=Z>>>1;B<yt;){var ot=2*(B+1)-1,Xr=k[ot],Zt=ot+1,$a=k[Zt];if(0>r(Xr,F))Zt<Z&&0>r($a,Xr)?(k[B]=$a,k[Zt]=F,B=Zt):(k[B]=Xr,k[ot]=F,B=ot);else if(Zt<Z&&0>r($a,F))k[B]=$a,k[Zt]=F,B=Zt;else break e}}return D}function r(k,D){var F=k.sortIndex-D.sortIndex;return F!==0?F:k.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,o=i.now();e.unstable_now=function(){return i.now()-o}}var c=[],u=[],d=1,f=null,h=3,m=!1,x=!1,w=!1,b=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(k){for(var D=n(u);D!==null;){if(D.callback===null)a(u);else if(D.startTime<=k)a(u),D.sortIndex=D.expirationTime,t(c,D);else break;D=n(u)}}function P(k){if(w=!1,y(k),!x)if(n(c)!==null)x=!0,z(j);else{var D=n(u);D!==null&&Y(P,D.startTime-k)}}function j(k,D){x=!1,w&&(w=!1,p(N),N=-1),m=!0;var F=h;try{for(y(D),f=n(c);f!==null&&(!(f.expirationTime>D)||k&&!_());){var B=f.callback;if(typeof B=="function"){f.callback=null,h=f.priorityLevel;var Z=B(f.expirationTime<=D);D=e.unstable_now(),typeof Z=="function"?f.callback=Z:f===n(c)&&a(c),y(D)}else a(c);f=n(c)}if(f!==null)var yt=!0;else{var ot=n(u);ot!==null&&Y(P,ot.startTime-D),yt=!1}return yt}finally{f=null,h=F,m=!1}}var S=!1,C=null,N=-1,R=5,E=-1;function _(){return!(e.unstable_now()-E<R)}function O(){if(C!==null){var k=e.unstable_now();E=k;var D=!0;try{D=C(!0,k)}finally{D?$():(S=!1,C=null)}}else S=!1}var $;if(typeof g=="function")$=function(){g(O)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,U=M.port2;M.port1.onmessage=O,$=function(){U.postMessage(null)}}else $=function(){b(O,0)};function z(k){C=k,S||(S=!0,$())}function Y(k,D){N=b(function(){k(e.unstable_now())},D)}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(k){k.callback=null},e.unstable_continueExecution=function(){x||m||(x=!0,z(j))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(k){switch(h){case 1:case 2:case 3:var D=3;break;default:D=h}var F=h;h=D;try{return k()}finally{h=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,D){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var F=h;h=k;try{return D()}finally{h=F}},e.unstable_scheduleCallback=function(k,D,F){var B=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?B+F:B):F=B,k){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=F+Z,k={id:d++,callback:D,priorityLevel:k,startTime:F,expirationTime:Z,sortIndex:-1},F>B?(k.sortIndex=F,t(u,k),n(c)===null&&k===n(u)&&(w?(p(N),N=-1):w=!0,Y(P,F-B))):(k.sortIndex=Z,t(c,k),x||m||(x=!0,z(j))),k},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(k){var D=h;return function(){var F=h;h=D;try{return k.apply(this,arguments)}finally{h=F}}}})(wx);vx.exports=wx;var D1=vx.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var M1=v,rt=D1;function A(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var bx=new Set,Ms={};function Ia(e,t){kr(e,t),kr(e+"Capture",t)}function kr(e,t){for(Ms[e]=t,e=0;e<t.length;e++)bx.add(t[e])}var fn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yc=Object.prototype.hasOwnProperty,O1=/^[: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]*$/,Fh={},zh={};function L1(e){return Yc.call(zh,e)?!0:Yc.call(Fh,e)?!1:O1.test(e)?zh[e]=!0:(Fh[e]=!0,!1)}function _1(e,t,n,a){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return a?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function I1(e,t,n,a){if(t===null||typeof t>"u"||_1(e,t,n,a))return!0;if(a)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ue(e,t,n,a,r,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var Re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Re[e]=new Ue(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Re[t]=new Ue(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Re[e]=new Ue(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Re[e]=new Ue(e,2,!1,e,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(e){Re[e]=new Ue(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Re[e]=new Ue(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Re[e]=new Ue(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Re[e]=new Ue(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Re[e]=new Ue(e,5,!1,e.toLowerCase(),null,!1,!1)});var Bd=/[\-:]([a-z])/g;function Hd(e){return e[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(e){var t=e.replace(Bd,Hd);Re[t]=new Ue(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Bd,Hd);Re[t]=new Ue(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Bd,Hd);Re[t]=new Ue(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Re[e]=new Ue(e,1,!1,e.toLowerCase(),null,!1,!1)});Re.xlinkHref=new Ue("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Re[e]=new Ue(e,1,!1,e.toLowerCase(),null,!0,!0)});function $d(e,t,n,a){var r=Re.hasOwnProperty(t)?Re[t]:null;(r!==null?r.type!==0:a||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(I1(t,n,r,a)&&(n=null),a||r===null?L1(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=n===null?r.type===3?!1:"":n:(t=r.attributeName,a=r.attributeNamespace,n===null?e.removeAttribute(t):(r=r.type,n=r===3||r===4&&n===!0?"":""+n,a?e.setAttributeNS(a,t,n):e.setAttribute(t,n))))}var yn=M1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ki=Symbol.for("react.element"),Ka=Symbol.for("react.portal"),Ga=Symbol.for("react.fragment"),Ud=Symbol.for("react.strict_mode"),Xc=Symbol.for("react.profiler"),Px=Symbol.for("react.provider"),jx=Symbol.for("react.context"),qd=Symbol.for("react.forward_ref"),Zc=Symbol.for("react.suspense"),Jc=Symbol.for("react.suspense_list"),Wd=Symbol.for("react.memo"),kn=Symbol.for("react.lazy"),Sx=Symbol.for("react.offscreen"),Vh=Symbol.iterator;function Jr(e){return e===null||typeof e!="object"?null:(e=Vh&&e[Vh]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Object.assign,Yl;function hs(e){if(Yl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Yl=t&&t[1]||""}return`
`+Yl+e}var Xl=!1;function Zl(e,t){if(!e||Xl)return"";Xl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var a=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){a=u}e.call(t.prototype)}else{try{throw Error()}catch(u){a=u}e()}}catch(u){if(u&&a&&typeof u.stack=="string"){for(var r=u.stack.split(`
`),s=a.stack.split(`
`),i=r.length-1,o=s.length-1;1<=i&&0<=o&&r[i]!==s[o];)o--;for(;1<=i&&0<=o;i--,o--)if(r[i]!==s[o]){if(i!==1||o!==1)do if(i--,o--,0>o||r[i]!==s[o]){var c=`
`+r[i].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=i&&0<=o);break}}}finally{Xl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?hs(e):""}function F1(e){switch(e.tag){case 5:return hs(e.type);case 16:return hs("Lazy");case 13:return hs("Suspense");case 19:return hs("SuspenseList");case 0:case 2:case 15:return e=Zl(e.type,!1),e;case 11:return e=Zl(e.type.render,!1),e;case 1:return e=Zl(e.type,!0),e;default:return""}}function eu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ga:return"Fragment";case Ka:return"Portal";case Xc:return"Profiler";case Ud:return"StrictMode";case Zc:return"Suspense";case Jc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case jx:return(e.displayName||"Context")+".Consumer";case Px:return(e._context.displayName||"Context")+".Provider";case qd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Wd:return t=e.displayName||null,t!==null?t:eu(e.type)||"Memo";case kn:t=e._payload,e=e._init;try{return eu(e(t))}catch{}}return null}function z1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return eu(t);case 8:return t===Ud?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Yn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Cx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function V1(e){var t=Cx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(i){a=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(i){a=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ti(e){e._valueTracker||(e._valueTracker=V1(e))}function Nx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Cx(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Co(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function tu(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Bh(e,t){var n=t.defaultValue==null?"":t.defaultValue,a=t.checked!=null?t.checked:t.defaultChecked;n=Yn(t.value!=null?t.value:n),e._wrapperState={initialChecked:a,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function kx(e,t){t=t.checked,t!=null&&$d(e,"checked",t,!1)}function nu(e,t){kx(e,t);var n=Yn(t.value),a=t.type;if(n!=null)a==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?au(e,t.type,n):t.hasOwnProperty("defaultValue")&&au(e,t.type,Yn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Hh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(!(a!=="submit"&&a!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function au(e,t,n){(t!=="number"||Co(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ps=Array.isArray;function lr(e,t,n,a){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Yn(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,a&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function ru(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(A(91));return ce({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function $h(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(A(92));if(ps(n)){if(1<n.length)throw Error(A(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Yn(n)}}function Tx(e,t){var n=Yn(t.value),a=Yn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),a!=null&&(e.defaultValue=""+a)}function Uh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ex(e){switch(e){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 su(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ex(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ei,Ax=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,a,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,a,r)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ei=Ei||document.createElement("div"),Ei.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ei.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Os(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ys={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},B1=["Webkit","ms","Moz","O"];Object.keys(ys).forEach(function(e){B1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ys[t]=ys[e]})});function Rx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ys.hasOwnProperty(e)&&ys[e]?(""+t).trim():t+"px"}function Dx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var a=n.indexOf("--")===0,r=Rx(n,t[n],a);n==="float"&&(n="cssFloat"),a?e.setProperty(n,r):e[n]=r}}var H1=ce({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 iu(e,t){if(t){if(H1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function ou(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 lu=null;function Kd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var cu=null,cr=null,ur=null;function qh(e){if(e=fi(e)){if(typeof cu!="function")throw Error(A(280));var t=e.stateNode;t&&(t=bl(t),cu(e.stateNode,e.type,t))}}function Mx(e){cr?ur?ur.push(e):ur=[e]:cr=e}function Ox(){if(cr){var e=cr,t=ur;if(ur=cr=null,qh(e),t)for(e=0;e<t.length;e++)qh(t[e])}}function Lx(e,t){return e(t)}function _x(){}var Jl=!1;function Ix(e,t,n){if(Jl)return e(t,n);Jl=!0;try{return Lx(e,t,n)}finally{Jl=!1,(cr!==null||ur!==null)&&(_x(),Ox())}}function Ls(e,t){var n=e.stateNode;if(n===null)return null;var a=bl(n);if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(A(231,t,typeof n));return n}var uu=!1;if(fn)try{var es={};Object.defineProperty(es,"passive",{get:function(){uu=!0}}),window.addEventListener("test",es,es),window.removeEventListener("test",es,es)}catch{uu=!1}function $1(e,t,n,a,r,s,i,o,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var vs=!1,No=null,ko=!1,du=null,U1={onError:function(e){vs=!0,No=e}};function q1(e,t,n,a,r,s,i,o,c){vs=!1,No=null,$1.apply(U1,arguments)}function W1(e,t,n,a,r,s,i,o,c){if(q1.apply(this,arguments),vs){if(vs){var u=No;vs=!1,No=null}else throw Error(A(198));ko||(ko=!0,du=u)}}function Fa(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Fx(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Wh(e){if(Fa(e)!==e)throw Error(A(188))}function K1(e){var t=e.alternate;if(!t){if(t=Fa(e),t===null)throw Error(A(188));return t!==e?null:e}for(var n=e,a=t;;){var r=n.return;if(r===null)break;var s=r.alternate;if(s===null){if(a=r.return,a!==null){n=a;continue}break}if(r.child===s.child){for(s=r.child;s;){if(s===n)return Wh(r),e;if(s===a)return Wh(r),t;s=s.sibling}throw Error(A(188))}if(n.return!==a.return)n=r,a=s;else{for(var i=!1,o=r.child;o;){if(o===n){i=!0,n=r,a=s;break}if(o===a){i=!0,a=r,n=s;break}o=o.sibling}if(!i){for(o=s.child;o;){if(o===n){i=!0,n=s,a=r;break}if(o===a){i=!0,a=s,n=r;break}o=o.sibling}if(!i)throw Error(A(189))}}if(n.alternate!==a)throw Error(A(190))}if(n.tag!==3)throw Error(A(188));return n.stateNode.current===n?e:t}function zx(e){return e=K1(e),e!==null?Vx(e):null}function Vx(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Vx(e);if(t!==null)return t;e=e.sibling}return null}var Bx=rt.unstable_scheduleCallback,Kh=rt.unstable_cancelCallback,G1=rt.unstable_shouldYield,Q1=rt.unstable_requestPaint,he=rt.unstable_now,Y1=rt.unstable_getCurrentPriorityLevel,Gd=rt.unstable_ImmediatePriority,Hx=rt.unstable_UserBlockingPriority,To=rt.unstable_NormalPriority,X1=rt.unstable_LowPriority,$x=rt.unstable_IdlePriority,xl=null,Wt=null;function Z1(e){if(Wt&&typeof Wt.onCommitFiberRoot=="function")try{Wt.onCommitFiberRoot(xl,e,void 0,(e.current.flags&128)===128)}catch{}}var Tt=Math.clz32?Math.clz32:tP,J1=Math.log,eP=Math.LN2;function tP(e){return e>>>=0,e===0?32:31-(J1(e)/eP|0)|0}var Ai=64,Ri=4194304;function ms(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Eo(e,t){var n=e.pendingLanes;if(n===0)return 0;var a=0,r=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var o=i&~r;o!==0?a=ms(o):(s&=i,s!==0&&(a=ms(s)))}else i=n&~r,i!==0?a=ms(i):s!==0&&(a=ms(s));if(a===0)return 0;if(t!==0&&t!==a&&!(t&r)&&(r=a&-a,s=t&-t,r>=s||r===16&&(s&4194240)!==0))return t;if(a&4&&(a|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=a;0<t;)n=31-Tt(t),r=1<<n,a|=e[n],t&=~r;return a}function nP(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 aP(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,r=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-Tt(s),o=1<<i,c=r[i];c===-1?(!(o&n)||o&a)&&(r[i]=nP(o,t)):c<=t&&(e.expiredLanes|=o),s&=~o}}function fu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ux(){var e=Ai;return Ai<<=1,!(Ai&4194240)&&(Ai=64),e}function ec(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ui(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Tt(t),e[t]=n}function rP(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var a=e.eventTimes;for(e=e.expirationTimes;0<n;){var r=31-Tt(n),s=1<<r;t[r]=0,a[r]=-1,e[r]=-1,n&=~s}}function Qd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Tt(n),r=1<<a;r&t|e[a]&t&&(e[a]|=t),n&=~r}}var J=0;function qx(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Wx,Yd,Kx,Gx,Qx,hu=!1,Di=[],Bn=null,Hn=null,$n=null,_s=new Map,Is=new Map,En=[],sP="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 Gh(e,t){switch(e){case"focusin":case"focusout":Bn=null;break;case"dragenter":case"dragleave":Hn=null;break;case"mouseover":case"mouseout":$n=null;break;case"pointerover":case"pointerout":_s.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Is.delete(t.pointerId)}}function ts(e,t,n,a,r,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:s,targetContainers:[r]},t!==null&&(t=fi(t),t!==null&&Yd(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function iP(e,t,n,a,r){switch(t){case"focusin":return Bn=ts(Bn,e,t,n,a,r),!0;case"dragenter":return Hn=ts(Hn,e,t,n,a,r),!0;case"mouseover":return $n=ts($n,e,t,n,a,r),!0;case"pointerover":var s=r.pointerId;return _s.set(s,ts(_s.get(s)||null,e,t,n,a,r)),!0;case"gotpointercapture":return s=r.pointerId,Is.set(s,ts(Is.get(s)||null,e,t,n,a,r)),!0}return!1}function Yx(e){var t=ma(e.target);if(t!==null){var n=Fa(t);if(n!==null){if(t=n.tag,t===13){if(t=Fx(n),t!==null){e.blockedOn=t,Qx(e.priority,function(){Kx(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function no(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=pu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);lu=a,n.target.dispatchEvent(a),lu=null}else return t=fi(n),t!==null&&Yd(t),e.blockedOn=n,!1;t.shift()}return!0}function Qh(e,t,n){no(e)&&n.delete(t)}function oP(){hu=!1,Bn!==null&&no(Bn)&&(Bn=null),Hn!==null&&no(Hn)&&(Hn=null),$n!==null&&no($n)&&($n=null),_s.forEach(Qh),Is.forEach(Qh)}function ns(e,t){e.blockedOn===t&&(e.blockedOn=null,hu||(hu=!0,rt.unstable_scheduleCallback(rt.unstable_NormalPriority,oP)))}function Fs(e){function t(r){return ns(r,e)}if(0<Di.length){ns(Di[0],e);for(var n=1;n<Di.length;n++){var a=Di[n];a.blockedOn===e&&(a.blockedOn=null)}}for(Bn!==null&&ns(Bn,e),Hn!==null&&ns(Hn,e),$n!==null&&ns($n,e),_s.forEach(t),Is.forEach(t),n=0;n<En.length;n++)a=En[n],a.blockedOn===e&&(a.blockedOn=null);for(;0<En.length&&(n=En[0],n.blockedOn===null);)Yx(n),n.blockedOn===null&&En.shift()}var dr=yn.ReactCurrentBatchConfig,Ao=!0;function lP(e,t,n,a){var r=J,s=dr.transition;dr.transition=null;try{J=1,Xd(e,t,n,a)}finally{J=r,dr.transition=s}}function cP(e,t,n,a){var r=J,s=dr.transition;dr.transition=null;try{J=4,Xd(e,t,n,a)}finally{J=r,dr.transition=s}}function Xd(e,t,n,a){if(Ao){var r=pu(e,t,n,a);if(r===null)uc(e,t,a,Ro,n),Gh(e,a);else if(iP(r,e,t,n,a))a.stopPropagation();else if(Gh(e,a),t&4&&-1<sP.indexOf(e)){for(;r!==null;){var s=fi(r);if(s!==null&&Wx(s),s=pu(e,t,n,a),s===null&&uc(e,t,a,Ro,n),s===r)break;r=s}r!==null&&a.stopPropagation()}else uc(e,t,a,null,n)}}var Ro=null;function pu(e,t,n,a){if(Ro=null,e=Kd(a),e=ma(e),e!==null)if(t=Fa(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Fx(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ro=e,null}function Xx(e){switch(e){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(Y1()){case Gd:return 1;case Hx:return 4;case To:case X1:return 16;case $x:return 536870912;default:return 16}default:return 16}}var In=null,Zd=null,ao=null;function Zx(){if(ao)return ao;var e,t=Zd,n=t.length,a,r="value"in In?In.value:In.textContent,s=r.length;for(e=0;e<n&&t[e]===r[e];e++);var i=n-e;for(a=1;a<=i&&t[n-a]===r[s-a];a++);return ao=r.slice(e,1<a?1-a:void 0)}function ro(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Mi(){return!0}function Yh(){return!1}function it(e){function t(n,a,r,s,i){this._reactName=n,this._targetInst=r,this.type=a,this.nativeEvent=s,this.target=i,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(s):s[o]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Mi:Yh,this.isPropagationStopped=Yh,this}return ce(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Mi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Mi)},persist:function(){},isPersistent:Mi}),t}var Br={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jd=it(Br),di=ce({},Br,{view:0,detail:0}),uP=it(di),tc,nc,as,yl=ce({},di,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ef,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==as&&(as&&e.type==="mousemove"?(tc=e.screenX-as.screenX,nc=e.screenY-as.screenY):nc=tc=0,as=e),tc)},movementY:function(e){return"movementY"in e?e.movementY:nc}}),Xh=it(yl),dP=ce({},yl,{dataTransfer:0}),fP=it(dP),hP=ce({},di,{relatedTarget:0}),ac=it(hP),pP=ce({},Br,{animationName:0,elapsedTime:0,pseudoElement:0}),mP=it(pP),gP=ce({},Br,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xP=it(gP),yP=ce({},Br,{data:0}),Zh=it(yP),vP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wP={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"},bP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function PP(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=bP[e])?!!t[e]:!1}function ef(){return PP}var jP=ce({},di,{key:function(e){if(e.key){var t=vP[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ro(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?wP[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ef,charCode:function(e){return e.type==="keypress"?ro(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ro(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),SP=it(jP),CP=ce({},yl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jh=it(CP),NP=ce({},di,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ef}),kP=it(NP),TP=ce({},Br,{propertyName:0,elapsedTime:0,pseudoElement:0}),EP=it(TP),AP=ce({},yl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),RP=it(AP),DP=[9,13,27,32],tf=fn&&"CompositionEvent"in window,ws=null;fn&&"documentMode"in document&&(ws=document.documentMode);var MP=fn&&"TextEvent"in window&&!ws,Jx=fn&&(!tf||ws&&8<ws&&11>=ws),ep=" ",tp=!1;function ey(e,t){switch(e){case"keyup":return DP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ty(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qa=!1;function OP(e,t){switch(e){case"compositionend":return ty(t);case"keypress":return t.which!==32?null:(tp=!0,ep);case"textInput":return e=t.data,e===ep&&tp?null:e;default:return null}}function LP(e,t){if(Qa)return e==="compositionend"||!tf&&ey(e,t)?(e=Zx(),ao=Zd=In=null,Qa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Jx&&t.locale!=="ko"?null:t.data;default:return null}}var _P={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 np(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!_P[e.type]:t==="textarea"}function ny(e,t,n,a){Mx(a),t=Do(t,"onChange"),0<t.length&&(n=new Jd("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var bs=null,zs=null;function IP(e){hy(e,0)}function vl(e){var t=Za(e);if(Nx(t))return e}function FP(e,t){if(e==="change")return t}var ay=!1;if(fn){var rc;if(fn){var sc="oninput"in document;if(!sc){var ap=document.createElement("div");ap.setAttribute("oninput","return;"),sc=typeof ap.oninput=="function"}rc=sc}else rc=!1;ay=rc&&(!document.documentMode||9<document.documentMode)}function rp(){bs&&(bs.detachEvent("onpropertychange",ry),zs=bs=null)}function ry(e){if(e.propertyName==="value"&&vl(zs)){var t=[];ny(t,zs,e,Kd(e)),Ix(IP,t)}}function zP(e,t,n){e==="focusin"?(rp(),bs=t,zs=n,bs.attachEvent("onpropertychange",ry)):e==="focusout"&&rp()}function VP(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vl(zs)}function BP(e,t){if(e==="click")return vl(t)}function HP(e,t){if(e==="input"||e==="change")return vl(t)}function $P(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Rt=typeof Object.is=="function"?Object.is:$P;function Vs(e,t){if(Rt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var r=n[a];if(!Yc.call(t,r)||!Rt(e[r],t[r]))return!1}return!0}function sp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ip(e,t){var n=sp(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=sp(n)}}function sy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?sy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function iy(){for(var e=window,t=Co();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Co(e.document)}return t}function nf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function UP(e){var t=iy(),n=e.focusedElem,a=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&sy(n.ownerDocument.documentElement,n)){if(a!==null&&nf(n)){if(t=a.start,e=a.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var r=n.textContent.length,s=Math.min(a.start,r);a=a.end===void 0?s:Math.min(a.end,r),!e.extend&&s>a&&(r=a,a=s,s=r),r=ip(n,s);var i=ip(n,a);r&&i&&(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),s>a?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var qP=fn&&"documentMode"in document&&11>=document.documentMode,Ya=null,mu=null,Ps=null,gu=!1;function op(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;gu||Ya==null||Ya!==Co(a)||(a=Ya,"selectionStart"in a&&nf(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Ps&&Vs(Ps,a)||(Ps=a,a=Do(mu,"onSelect"),0<a.length&&(t=new Jd("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Ya)))}function Oi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Xa={animationend:Oi("Animation","AnimationEnd"),animationiteration:Oi("Animation","AnimationIteration"),animationstart:Oi("Animation","AnimationStart"),transitionend:Oi("Transition","TransitionEnd")},ic={},oy={};fn&&(oy=document.createElement("div").style,"AnimationEvent"in window||(delete Xa.animationend.animation,delete Xa.animationiteration.animation,delete Xa.animationstart.animation),"TransitionEvent"in window||delete Xa.transitionend.transition);function wl(e){if(ic[e])return ic[e];if(!Xa[e])return e;var t=Xa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in oy)return ic[e]=t[n];return e}var ly=wl("animationend"),cy=wl("animationiteration"),uy=wl("animationstart"),dy=wl("transitionend"),fy=new Map,lp="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 sa(e,t){fy.set(e,t),Ia(t,[e])}for(var oc=0;oc<lp.length;oc++){var lc=lp[oc],WP=lc.toLowerCase(),KP=lc[0].toUpperCase()+lc.slice(1);sa(WP,"on"+KP)}sa(ly,"onAnimationEnd");sa(cy,"onAnimationIteration");sa(uy,"onAnimationStart");sa("dblclick","onDoubleClick");sa("focusin","onFocus");sa("focusout","onBlur");sa(dy,"onTransitionEnd");kr("onMouseEnter",["mouseout","mouseover"]);kr("onMouseLeave",["mouseout","mouseover"]);kr("onPointerEnter",["pointerout","pointerover"]);kr("onPointerLeave",["pointerout","pointerover"]);Ia("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ia("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ia("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ia("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ia("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ia("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gs="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(" "),GP=new Set("cancel close invalid load scroll toggle".split(" ").concat(gs));function cp(e,t,n){var a=e.type||"unknown-event";e.currentTarget=n,W1(a,t,void 0,e),e.currentTarget=null}function hy(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],r=a.event;a=a.listeners;e:{var s=void 0;if(t)for(var i=a.length-1;0<=i;i--){var o=a[i],c=o.instance,u=o.currentTarget;if(o=o.listener,c!==s&&r.isPropagationStopped())break e;cp(r,o,u),s=c}else for(i=0;i<a.length;i++){if(o=a[i],c=o.instance,u=o.currentTarget,o=o.listener,c!==s&&r.isPropagationStopped())break e;cp(r,o,u),s=c}}}if(ko)throw e=du,ko=!1,du=null,e}function re(e,t){var n=t[bu];n===void 0&&(n=t[bu]=new Set);var a=e+"__bubble";n.has(a)||(py(t,e,2,!1),n.add(a))}function cc(e,t,n){var a=0;t&&(a|=4),py(n,e,a,t)}var Li="_reactListening"+Math.random().toString(36).slice(2);function Bs(e){if(!e[Li]){e[Li]=!0,bx.forEach(function(n){n!=="selectionchange"&&(GP.has(n)||cc(n,!1,e),cc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Li]||(t[Li]=!0,cc("selectionchange",!1,t))}}function py(e,t,n,a){switch(Xx(t)){case 1:var r=lP;break;case 4:r=cP;break;default:r=Xd}n=r.bind(null,t,n,e),r=void 0,!uu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),a?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function uc(e,t,n,a,r){var s=a;if(!(t&1)&&!(t&2)&&a!==null)e:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var o=a.stateNode.containerInfo;if(o===r||o.nodeType===8&&o.parentNode===r)break;if(i===4)for(i=a.return;i!==null;){var c=i.tag;if((c===3||c===4)&&(c=i.stateNode.containerInfo,c===r||c.nodeType===8&&c.parentNode===r))return;i=i.return}for(;o!==null;){if(i=ma(o),i===null)return;if(c=i.tag,c===5||c===6){a=s=i;continue e}o=o.parentNode}}a=a.return}Ix(function(){var u=s,d=Kd(n),f=[];e:{var h=fy.get(e);if(h!==void 0){var m=Jd,x=e;switch(e){case"keypress":if(ro(n)===0)break e;case"keydown":case"keyup":m=SP;break;case"focusin":x="focus",m=ac;break;case"focusout":x="blur",m=ac;break;case"beforeblur":case"afterblur":m=ac;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=Xh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=fP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=kP;break;case ly:case cy:case uy:m=mP;break;case dy:m=EP;break;case"scroll":m=uP;break;case"wheel":m=RP;break;case"copy":case"cut":case"paste":m=xP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Jh}var w=(t&4)!==0,b=!w&&e==="scroll",p=w?h!==null?h+"Capture":null:h;w=[];for(var g=u,y;g!==null;){y=g;var P=y.stateNode;if(y.tag===5&&P!==null&&(y=P,p!==null&&(P=Ls(g,p),P!=null&&w.push(Hs(g,P,y)))),b)break;g=g.return}0<w.length&&(h=new m(h,x,null,n,d),f.push({event:h,listeners:w}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",h&&n!==lu&&(x=n.relatedTarget||n.fromElement)&&(ma(x)||x[hn]))break e;if((m||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,m?(x=n.relatedTarget||n.toElement,m=u,x=x?ma(x):null,x!==null&&(b=Fa(x),x!==b||x.tag!==5&&x.tag!==6)&&(x=null)):(m=null,x=u),m!==x)){if(w=Xh,P="onMouseLeave",p="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(w=Jh,P="onPointerLeave",p="onPointerEnter",g="pointer"),b=m==null?h:Za(m),y=x==null?h:Za(x),h=new w(P,g+"leave",m,n,d),h.target=b,h.relatedTarget=y,P=null,ma(d)===u&&(w=new w(p,g+"enter",x,n,d),w.target=y,w.relatedTarget=b,P=w),b=P,m&&x)t:{for(w=m,p=x,g=0,y=w;y;y=Ua(y))g++;for(y=0,P=p;P;P=Ua(P))y++;for(;0<g-y;)w=Ua(w),g--;for(;0<y-g;)p=Ua(p),y--;for(;g--;){if(w===p||p!==null&&w===p.alternate)break t;w=Ua(w),p=Ua(p)}w=null}else w=null;m!==null&&up(f,h,m,w,!1),x!==null&&b!==null&&up(f,b,x,w,!0)}}e:{if(h=u?Za(u):window,m=h.nodeName&&h.nodeName.toLowerCase(),m==="select"||m==="input"&&h.type==="file")var j=FP;else if(np(h))if(ay)j=HP;else{j=VP;var S=zP}else(m=h.nodeName)&&m.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(j=BP);if(j&&(j=j(e,u))){ny(f,j,n,d);break e}S&&S(e,h,u),e==="focusout"&&(S=h._wrapperState)&&S.controlled&&h.type==="number"&&au(h,"number",h.value)}switch(S=u?Za(u):window,e){case"focusin":(np(S)||S.contentEditable==="true")&&(Ya=S,mu=u,Ps=null);break;case"focusout":Ps=mu=Ya=null;break;case"mousedown":gu=!0;break;case"contextmenu":case"mouseup":case"dragend":gu=!1,op(f,n,d);break;case"selectionchange":if(qP)break;case"keydown":case"keyup":op(f,n,d)}var C;if(tf)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else Qa?ey(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(Jx&&n.locale!=="ko"&&(Qa||N!=="onCompositionStart"?N==="onCompositionEnd"&&Qa&&(C=Zx()):(In=d,Zd="value"in In?In.value:In.textContent,Qa=!0)),S=Do(u,N),0<S.length&&(N=new Zh(N,e,null,n,d),f.push({event:N,listeners:S}),C?N.data=C:(C=ty(n),C!==null&&(N.data=C)))),(C=MP?OP(e,n):LP(e,n))&&(u=Do(u,"onBeforeInput"),0<u.length&&(d=new Zh("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=C))}hy(f,t)})}function Hs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Do(e,t){for(var n=t+"Capture",a=[];e!==null;){var r=e,s=r.stateNode;r.tag===5&&s!==null&&(r=s,s=Ls(e,n),s!=null&&a.unshift(Hs(e,s,r)),s=Ls(e,t),s!=null&&a.push(Hs(e,s,r))),e=e.return}return a}function Ua(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function up(e,t,n,a,r){for(var s=t._reactName,i=[];n!==null&&n!==a;){var o=n,c=o.alternate,u=o.stateNode;if(c!==null&&c===a)break;o.tag===5&&u!==null&&(o=u,r?(c=Ls(n,s),c!=null&&i.unshift(Hs(n,c,o))):r||(c=Ls(n,s),c!=null&&i.push(Hs(n,c,o)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var QP=/\r\n?/g,YP=/\u0000|\uFFFD/g;function dp(e){return(typeof e=="string"?e:""+e).replace(QP,`
`).replace(YP,"")}function _i(e,t,n){if(t=dp(t),dp(e)!==t&&n)throw Error(A(425))}function Mo(){}var xu=null,yu=null;function vu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var wu=typeof setTimeout=="function"?setTimeout:void 0,XP=typeof clearTimeout=="function"?clearTimeout:void 0,fp=typeof Promise=="function"?Promise:void 0,ZP=typeof queueMicrotask=="function"?queueMicrotask:typeof fp<"u"?function(e){return fp.resolve(null).then(e).catch(JP)}:wu;function JP(e){setTimeout(function(){throw e})}function dc(e,t){var n=t,a=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(a===0){e.removeChild(r),Fs(t);return}a--}else n!=="$"&&n!=="$?"&&n!=="$!"||a++;n=r}while(n);Fs(t)}function Un(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function hp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Hr=Math.random().toString(36).slice(2),$t="__reactFiber$"+Hr,$s="__reactProps$"+Hr,hn="__reactContainer$"+Hr,bu="__reactEvents$"+Hr,ej="__reactListeners$"+Hr,tj="__reactHandles$"+Hr;function ma(e){var t=e[$t];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hn]||n[$t]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hp(e);e!==null;){if(n=e[$t])return n;e=hp(e)}return t}e=n,n=e.parentNode}return null}function fi(e){return e=e[$t]||e[hn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Za(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(A(33))}function bl(e){return e[$s]||null}var Pu=[],Ja=-1;function ia(e){return{current:e}}function se(e){0>Ja||(e.current=Pu[Ja],Pu[Ja]=null,Ja--)}function ne(e,t){Ja++,Pu[Ja]=e.current,e.current=t}var Xn={},_e=ia(Xn),Ge=ia(!1),Ra=Xn;function Tr(e,t){var n=e.type.contextTypes;if(!n)return Xn;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var r={},s;for(s in n)r[s]=t[s];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function Qe(e){return e=e.childContextTypes,e!=null}function Oo(){se(Ge),se(_e)}function pp(e,t,n){if(_e.current!==Xn)throw Error(A(168));ne(_e,t),ne(Ge,n)}function my(e,t,n){var a=e.stateNode;if(t=t.childContextTypes,typeof a.getChildContext!="function")return n;a=a.getChildContext();for(var r in a)if(!(r in t))throw Error(A(108,z1(e)||"Unknown",r));return ce({},n,a)}function Lo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xn,Ra=_e.current,ne(_e,e),ne(Ge,Ge.current),!0}function mp(e,t,n){var a=e.stateNode;if(!a)throw Error(A(169));n?(e=my(e,t,Ra),a.__reactInternalMemoizedMergedChildContext=e,se(Ge),se(_e),ne(_e,e)):se(Ge),ne(Ge,n)}var rn=null,Pl=!1,fc=!1;function gy(e){rn===null?rn=[e]:rn.push(e)}function nj(e){Pl=!0,gy(e)}function oa(){if(!fc&&rn!==null){fc=!0;var e=0,t=J;try{var n=rn;for(J=1;e<n.length;e++){var a=n[e];do a=a(!0);while(a!==null)}rn=null,Pl=!1}catch(r){throw rn!==null&&(rn=rn.slice(e+1)),Bx(Gd,oa),r}finally{J=t,fc=!1}}return null}var er=[],tr=0,_o=null,Io=0,ut=[],dt=0,Da=null,on=1,ln="";function fa(e,t){er[tr++]=Io,er[tr++]=_o,_o=e,Io=t}function xy(e,t,n){ut[dt++]=on,ut[dt++]=ln,ut[dt++]=Da,Da=e;var a=on;e=ln;var r=32-Tt(a)-1;a&=~(1<<r),n+=1;var s=32-Tt(t)+r;if(30<s){var i=r-r%5;s=(a&(1<<i)-1).toString(32),a>>=i,r-=i,on=1<<32-Tt(t)+r|n<<r|a,ln=s+e}else on=1<<s|n<<r|a,ln=e}function af(e){e.return!==null&&(fa(e,1),xy(e,1,0))}function rf(e){for(;e===_o;)_o=er[--tr],er[tr]=null,Io=er[--tr],er[tr]=null;for(;e===Da;)Da=ut[--dt],ut[dt]=null,ln=ut[--dt],ut[dt]=null,on=ut[--dt],ut[dt]=null}var tt=null,et=null,ie=!1,Nt=null;function yy(e,t){var n=ft(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function gp(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,tt=e,et=Un(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,tt=e,et=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Da!==null?{id:on,overflow:ln}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ft(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,tt=e,et=null,!0):!1;default:return!1}}function ju(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Su(e){if(ie){var t=et;if(t){var n=t;if(!gp(e,t)){if(ju(e))throw Error(A(418));t=Un(n.nextSibling);var a=tt;t&&gp(e,t)?yy(a,n):(e.flags=e.flags&-4097|2,ie=!1,tt=e)}}else{if(ju(e))throw Error(A(418));e.flags=e.flags&-4097|2,ie=!1,tt=e}}}function xp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;tt=e}function Ii(e){if(e!==tt)return!1;if(!ie)return xp(e),ie=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!vu(e.type,e.memoizedProps)),t&&(t=et)){if(ju(e))throw vy(),Error(A(418));for(;t;)yy(e,t),t=Un(t.nextSibling)}if(xp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){et=Un(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}et=null}}else et=tt?Un(e.stateNode.nextSibling):null;return!0}function vy(){for(var e=et;e;)e=Un(e.nextSibling)}function Er(){et=tt=null,ie=!1}function sf(e){Nt===null?Nt=[e]:Nt.push(e)}var aj=yn.ReactCurrentBatchConfig;function rs(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(A(309));var a=n.stateNode}if(!a)throw Error(A(147,e));var r=a,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(i){var o=r.refs;i===null?delete o[s]:o[s]=i},t._stringRef=s,t)}if(typeof e!="string")throw Error(A(284));if(!n._owner)throw Error(A(290,e))}return e}function Fi(e,t){throw e=Object.prototype.toString.call(t),Error(A(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yp(e){var t=e._init;return t(e._payload)}function wy(e){function t(p,g){if(e){var y=p.deletions;y===null?(p.deletions=[g],p.flags|=16):y.push(g)}}function n(p,g){if(!e)return null;for(;g!==null;)t(p,g),g=g.sibling;return null}function a(p,g){for(p=new Map;g!==null;)g.key!==null?p.set(g.key,g):p.set(g.index,g),g=g.sibling;return p}function r(p,g){return p=Gn(p,g),p.index=0,p.sibling=null,p}function s(p,g,y){return p.index=y,e?(y=p.alternate,y!==null?(y=y.index,y<g?(p.flags|=2,g):y):(p.flags|=2,g)):(p.flags|=1048576,g)}function i(p){return e&&p.alternate===null&&(p.flags|=2),p}function o(p,g,y,P){return g===null||g.tag!==6?(g=vc(y,p.mode,P),g.return=p,g):(g=r(g,y),g.return=p,g)}function c(p,g,y,P){var j=y.type;return j===Ga?d(p,g,y.props.children,P,y.key):g!==null&&(g.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===kn&&yp(j)===g.type)?(P=r(g,y.props),P.ref=rs(p,g,y),P.return=p,P):(P=fo(y.type,y.key,y.props,null,p.mode,P),P.ref=rs(p,g,y),P.return=p,P)}function u(p,g,y,P){return g===null||g.tag!==4||g.stateNode.containerInfo!==y.containerInfo||g.stateNode.implementation!==y.implementation?(g=wc(y,p.mode,P),g.return=p,g):(g=r(g,y.children||[]),g.return=p,g)}function d(p,g,y,P,j){return g===null||g.tag!==7?(g=Ta(y,p.mode,P,j),g.return=p,g):(g=r(g,y),g.return=p,g)}function f(p,g,y){if(typeof g=="string"&&g!==""||typeof g=="number")return g=vc(""+g,p.mode,y),g.return=p,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case ki:return y=fo(g.type,g.key,g.props,null,p.mode,y),y.ref=rs(p,null,g),y.return=p,y;case Ka:return g=wc(g,p.mode,y),g.return=p,g;case kn:var P=g._init;return f(p,P(g._payload),y)}if(ps(g)||Jr(g))return g=Ta(g,p.mode,y,null),g.return=p,g;Fi(p,g)}return null}function h(p,g,y,P){var j=g!==null?g.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return j!==null?null:o(p,g,""+y,P);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ki:return y.key===j?c(p,g,y,P):null;case Ka:return y.key===j?u(p,g,y,P):null;case kn:return j=y._init,h(p,g,j(y._payload),P)}if(ps(y)||Jr(y))return j!==null?null:d(p,g,y,P,null);Fi(p,y)}return null}function m(p,g,y,P,j){if(typeof P=="string"&&P!==""||typeof P=="number")return p=p.get(y)||null,o(g,p,""+P,j);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case ki:return p=p.get(P.key===null?y:P.key)||null,c(g,p,P,j);case Ka:return p=p.get(P.key===null?y:P.key)||null,u(g,p,P,j);case kn:var S=P._init;return m(p,g,y,S(P._payload),j)}if(ps(P)||Jr(P))return p=p.get(y)||null,d(g,p,P,j,null);Fi(g,P)}return null}function x(p,g,y,P){for(var j=null,S=null,C=g,N=g=0,R=null;C!==null&&N<y.length;N++){C.index>N?(R=C,C=null):R=C.sibling;var E=h(p,C,y[N],P);if(E===null){C===null&&(C=R);break}e&&C&&E.alternate===null&&t(p,C),g=s(E,g,N),S===null?j=E:S.sibling=E,S=E,C=R}if(N===y.length)return n(p,C),ie&&fa(p,N),j;if(C===null){for(;N<y.length;N++)C=f(p,y[N],P),C!==null&&(g=s(C,g,N),S===null?j=C:S.sibling=C,S=C);return ie&&fa(p,N),j}for(C=a(p,C);N<y.length;N++)R=m(C,p,N,y[N],P),R!==null&&(e&&R.alternate!==null&&C.delete(R.key===null?N:R.key),g=s(R,g,N),S===null?j=R:S.sibling=R,S=R);return e&&C.forEach(function(_){return t(p,_)}),ie&&fa(p,N),j}function w(p,g,y,P){var j=Jr(y);if(typeof j!="function")throw Error(A(150));if(y=j.call(y),y==null)throw Error(A(151));for(var S=j=null,C=g,N=g=0,R=null,E=y.next();C!==null&&!E.done;N++,E=y.next()){C.index>N?(R=C,C=null):R=C.sibling;var _=h(p,C,E.value,P);if(_===null){C===null&&(C=R);break}e&&C&&_.alternate===null&&t(p,C),g=s(_,g,N),S===null?j=_:S.sibling=_,S=_,C=R}if(E.done)return n(p,C),ie&&fa(p,N),j;if(C===null){for(;!E.done;N++,E=y.next())E=f(p,E.value,P),E!==null&&(g=s(E,g,N),S===null?j=E:S.sibling=E,S=E);return ie&&fa(p,N),j}for(C=a(p,C);!E.done;N++,E=y.next())E=m(C,p,N,E.value,P),E!==null&&(e&&E.alternate!==null&&C.delete(E.key===null?N:E.key),g=s(E,g,N),S===null?j=E:S.sibling=E,S=E);return e&&C.forEach(function(O){return t(p,O)}),ie&&fa(p,N),j}function b(p,g,y,P){if(typeof y=="object"&&y!==null&&y.type===Ga&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ki:e:{for(var j=y.key,S=g;S!==null;){if(S.key===j){if(j=y.type,j===Ga){if(S.tag===7){n(p,S.sibling),g=r(S,y.props.children),g.return=p,p=g;break e}}else if(S.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===kn&&yp(j)===S.type){n(p,S.sibling),g=r(S,y.props),g.ref=rs(p,S,y),g.return=p,p=g;break e}n(p,S);break}else t(p,S);S=S.sibling}y.type===Ga?(g=Ta(y.props.children,p.mode,P,y.key),g.return=p,p=g):(P=fo(y.type,y.key,y.props,null,p.mode,P),P.ref=rs(p,g,y),P.return=p,p=P)}return i(p);case Ka:e:{for(S=y.key;g!==null;){if(g.key===S)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){n(p,g.sibling),g=r(g,y.children||[]),g.return=p,p=g;break e}else{n(p,g);break}else t(p,g);g=g.sibling}g=wc(y,p.mode,P),g.return=p,p=g}return i(p);case kn:return S=y._init,b(p,g,S(y._payload),P)}if(ps(y))return x(p,g,y,P);if(Jr(y))return w(p,g,y,P);Fi(p,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(n(p,g.sibling),g=r(g,y),g.return=p,p=g):(n(p,g),g=vc(y,p.mode,P),g.return=p,p=g),i(p)):n(p,g)}return b}var Ar=wy(!0),by=wy(!1),Fo=ia(null),zo=null,nr=null,of=null;function lf(){of=nr=zo=null}function cf(e){var t=Fo.current;se(Fo),e._currentValue=t}function Cu(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function fr(e,t){zo=e,of=nr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ke=!0),e.firstContext=null)}function gt(e){var t=e._currentValue;if(of!==e)if(e={context:e,memoizedValue:t,next:null},nr===null){if(zo===null)throw Error(A(308));nr=e,zo.dependencies={lanes:0,firstContext:e}}else nr=nr.next=e;return t}var ga=null;function uf(e){ga===null?ga=[e]:ga.push(e)}function Py(e,t,n,a){var r=t.interleaved;return r===null?(n.next=n,uf(t)):(n.next=r.next,r.next=n),t.interleaved=n,pn(e,a)}function pn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Tn=!1;function df(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function jy(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function cn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function qn(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,X&2){var r=a.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),a.pending=t,pn(e,n)}return r=a.interleaved,r===null?(t.next=t,uf(a)):(t.next=r.next,r.next=t),a.interleaved=t,pn(e,n)}function so(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Qd(e,n)}}function vp(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var r=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?r=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?r=s=t:s=s.next=t}else r=s=t;n={baseState:a.baseState,firstBaseUpdate:r,lastBaseUpdate:s,shared:a.shared,effects:a.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Vo(e,t,n,a){var r=e.updateQueue;Tn=!1;var s=r.firstBaseUpdate,i=r.lastBaseUpdate,o=r.shared.pending;if(o!==null){r.shared.pending=null;var c=o,u=c.next;c.next=null,i===null?s=u:i.next=u,i=c;var d=e.alternate;d!==null&&(d=d.updateQueue,o=d.lastBaseUpdate,o!==i&&(o===null?d.firstBaseUpdate=u:o.next=u,d.lastBaseUpdate=c))}if(s!==null){var f=r.baseState;i=0,d=u=c=null,o=s;do{var h=o.lane,m=o.eventTime;if((a&h)===h){d!==null&&(d=d.next={eventTime:m,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var x=e,w=o;switch(h=t,m=n,w.tag){case 1:if(x=w.payload,typeof x=="function"){f=x.call(m,f,h);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=w.payload,h=typeof x=="function"?x.call(m,f,h):x,h==null)break e;f=ce({},f,h);break e;case 2:Tn=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,h=r.effects,h===null?r.effects=[o]:h.push(o))}else m={eventTime:m,lane:h,tag:o.tag,payload:o.payload,callback:o.callback,next:null},d===null?(u=d=m,c=f):d=d.next=m,i|=h;if(o=o.next,o===null){if(o=r.shared.pending,o===null)break;h=o,o=h.next,h.next=null,r.lastBaseUpdate=h,r.shared.pending=null}}while(!0);if(d===null&&(c=f),r.baseState=c,r.firstBaseUpdate=u,r.lastBaseUpdate=d,t=r.shared.interleaved,t!==null){r=t;do i|=r.lane,r=r.next;while(r!==t)}else s===null&&(r.shared.lanes=0);Oa|=i,e.lanes=i,e.memoizedState=f}}function wp(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var a=e[t],r=a.callback;if(r!==null){if(a.callback=null,a=n,typeof r!="function")throw Error(A(191,r));r.call(a)}}}var hi={},Kt=ia(hi),Us=ia(hi),qs=ia(hi);function xa(e){if(e===hi)throw Error(A(174));return e}function ff(e,t){switch(ne(qs,t),ne(Us,e),ne(Kt,hi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:su(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=su(t,e)}se(Kt),ne(Kt,t)}function Rr(){se(Kt),se(Us),se(qs)}function Sy(e){xa(qs.current);var t=xa(Kt.current),n=su(t,e.type);t!==n&&(ne(Us,e),ne(Kt,n))}function hf(e){Us.current===e&&(se(Kt),se(Us))}var oe=ia(0);function Bo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var hc=[];function pf(){for(var e=0;e<hc.length;e++)hc[e]._workInProgressVersionPrimary=null;hc.length=0}var io=yn.ReactCurrentDispatcher,pc=yn.ReactCurrentBatchConfig,Ma=0,le=null,ye=null,Pe=null,Ho=!1,js=!1,Ws=0,rj=0;function De(){throw Error(A(321))}function mf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Rt(e[n],t[n]))return!1;return!0}function gf(e,t,n,a,r,s){if(Ma=s,le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,io.current=e===null||e.memoizedState===null?lj:cj,e=n(a,r),js){s=0;do{if(js=!1,Ws=0,25<=s)throw Error(A(301));s+=1,Pe=ye=null,t.updateQueue=null,io.current=uj,e=n(a,r)}while(js)}if(io.current=$o,t=ye!==null&&ye.next!==null,Ma=0,Pe=ye=le=null,Ho=!1,t)throw Error(A(300));return e}function xf(){var e=Ws!==0;return Ws=0,e}function It(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pe===null?le.memoizedState=Pe=e:Pe=Pe.next=e,Pe}function xt(){if(ye===null){var e=le.alternate;e=e!==null?e.memoizedState:null}else e=ye.next;var t=Pe===null?le.memoizedState:Pe.next;if(t!==null)Pe=t,ye=e;else{if(e===null)throw Error(A(310));ye=e,e={memoizedState:ye.memoizedState,baseState:ye.baseState,baseQueue:ye.baseQueue,queue:ye.queue,next:null},Pe===null?le.memoizedState=Pe=e:Pe=Pe.next=e}return Pe}function Ks(e,t){return typeof t=="function"?t(e):t}function mc(e){var t=xt(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var a=ye,r=a.baseQueue,s=n.pending;if(s!==null){if(r!==null){var i=r.next;r.next=s.next,s.next=i}a.baseQueue=r=s,n.pending=null}if(r!==null){s=r.next,a=a.baseState;var o=i=null,c=null,u=s;do{var d=u.lane;if((Ma&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),a=u.hasEagerState?u.eagerState:e(a,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(o=c=f,i=a):c=c.next=f,le.lanes|=d,Oa|=d}u=u.next}while(u!==null&&u!==s);c===null?i=a:c.next=o,Rt(a,t.memoizedState)||(Ke=!0),t.memoizedState=a,t.baseState=i,t.baseQueue=c,n.lastRenderedState=a}if(e=n.interleaved,e!==null){r=e;do s=r.lane,le.lanes|=s,Oa|=s,r=r.next;while(r!==e)}else r===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function gc(e){var t=xt(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var a=n.dispatch,r=n.pending,s=t.memoizedState;if(r!==null){n.pending=null;var i=r=r.next;do s=e(s,i.action),i=i.next;while(i!==r);Rt(s,t.memoizedState)||(Ke=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,a]}function Cy(){}function Ny(e,t){var n=le,a=xt(),r=t(),s=!Rt(a.memoizedState,r);if(s&&(a.memoizedState=r,Ke=!0),a=a.queue,yf(Ey.bind(null,n,a,e),[e]),a.getSnapshot!==t||s||Pe!==null&&Pe.memoizedState.tag&1){if(n.flags|=2048,Gs(9,Ty.bind(null,n,a,r,t),void 0,null),Se===null)throw Error(A(349));Ma&30||ky(n,t,r)}return r}function ky(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=le.updateQueue,t===null?(t={lastEffect:null,stores:null},le.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ty(e,t,n,a){t.value=n,t.getSnapshot=a,Ay(t)&&Ry(e)}function Ey(e,t,n){return n(function(){Ay(t)&&Ry(e)})}function Ay(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Rt(e,n)}catch{return!0}}function Ry(e){var t=pn(e,1);t!==null&&Et(t,e,1,-1)}function bp(e){var t=It();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ks,lastRenderedState:e},t.queue=e,e=e.dispatch=oj.bind(null,le,e),[t.memoizedState,e]}function Gs(e,t,n,a){return e={tag:e,create:t,destroy:n,deps:a,next:null},t=le.updateQueue,t===null?(t={lastEffect:null,stores:null},le.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e)),e}function Dy(){return xt().memoizedState}function oo(e,t,n,a){var r=It();le.flags|=e,r.memoizedState=Gs(1|t,n,void 0,a===void 0?null:a)}function jl(e,t,n,a){var r=xt();a=a===void 0?null:a;var s=void 0;if(ye!==null){var i=ye.memoizedState;if(s=i.destroy,a!==null&&mf(a,i.deps)){r.memoizedState=Gs(t,n,s,a);return}}le.flags|=e,r.memoizedState=Gs(1|t,n,s,a)}function Pp(e,t){return oo(8390656,8,e,t)}function yf(e,t){return jl(2048,8,e,t)}function My(e,t){return jl(4,2,e,t)}function Oy(e,t){return jl(4,4,e,t)}function Ly(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function _y(e,t,n){return n=n!=null?n.concat([e]):null,jl(4,4,Ly.bind(null,t,e),n)}function vf(){}function Iy(e,t){var n=xt();t=t===void 0?null:t;var a=n.memoizedState;return a!==null&&t!==null&&mf(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Fy(e,t){var n=xt();t=t===void 0?null:t;var a=n.memoizedState;return a!==null&&t!==null&&mf(t,a[1])?a[0]:(e=e(),n.memoizedState=[e,t],e)}function zy(e,t,n){return Ma&21?(Rt(n,t)||(n=Ux(),le.lanes|=n,Oa|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ke=!0),e.memoizedState=n)}function sj(e,t){var n=J;J=n!==0&&4>n?n:4,e(!0);var a=pc.transition;pc.transition={};try{e(!1),t()}finally{J=n,pc.transition=a}}function Vy(){return xt().memoizedState}function ij(e,t,n){var a=Kn(e);if(n={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null},By(e))Hy(t,n);else if(n=Py(e,t,n,a),n!==null){var r=He();Et(n,e,a,r),$y(n,t,a)}}function oj(e,t,n){var a=Kn(e),r={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(By(e))Hy(t,r);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,o=s(i,n);if(r.hasEagerState=!0,r.eagerState=o,Rt(o,i)){var c=t.interleaved;c===null?(r.next=r,uf(t)):(r.next=c.next,c.next=r),t.interleaved=r;return}}catch{}finally{}n=Py(e,t,r,a),n!==null&&(r=He(),Et(n,e,a,r),$y(n,t,a))}}function By(e){var t=e.alternate;return e===le||t!==null&&t===le}function Hy(e,t){js=Ho=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function $y(e,t,n){if(n&4194240){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Qd(e,n)}}var $o={readContext:gt,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useInsertionEffect:De,useLayoutEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useMutableSource:De,useSyncExternalStore:De,useId:De,unstable_isNewReconciler:!1},lj={readContext:gt,useCallback:function(e,t){return It().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:Pp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,oo(4194308,4,Ly.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oo(4194308,4,e,t)},useInsertionEffect:function(e,t){return oo(4,2,e,t)},useMemo:function(e,t){var n=It();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var a=It();return t=n!==void 0?n(t):t,a.memoizedState=a.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},a.queue=e,e=e.dispatch=ij.bind(null,le,e),[a.memoizedState,e]},useRef:function(e){var t=It();return e={current:e},t.memoizedState=e},useState:bp,useDebugValue:vf,useDeferredValue:function(e){return It().memoizedState=e},useTransition:function(){var e=bp(!1),t=e[0];return e=sj.bind(null,e[1]),It().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var a=le,r=It();if(ie){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),Se===null)throw Error(A(349));Ma&30||ky(a,t,n)}r.memoizedState=n;var s={value:n,getSnapshot:t};return r.queue=s,Pp(Ey.bind(null,a,s,e),[e]),a.flags|=2048,Gs(9,Ty.bind(null,a,s,n,t),void 0,null),n},useId:function(){var e=It(),t=Se.identifierPrefix;if(ie){var n=ln,a=on;n=(a&~(1<<32-Tt(a)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ws++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=rj++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},cj={readContext:gt,useCallback:Iy,useContext:gt,useEffect:yf,useImperativeHandle:_y,useInsertionEffect:My,useLayoutEffect:Oy,useMemo:Fy,useReducer:mc,useRef:Dy,useState:function(){return mc(Ks)},useDebugValue:vf,useDeferredValue:function(e){var t=xt();return zy(t,ye.memoizedState,e)},useTransition:function(){var e=mc(Ks)[0],t=xt().memoizedState;return[e,t]},useMutableSource:Cy,useSyncExternalStore:Ny,useId:Vy,unstable_isNewReconciler:!1},uj={readContext:gt,useCallback:Iy,useContext:gt,useEffect:yf,useImperativeHandle:_y,useInsertionEffect:My,useLayoutEffect:Oy,useMemo:Fy,useReducer:gc,useRef:Dy,useState:function(){return gc(Ks)},useDebugValue:vf,useDeferredValue:function(e){var t=xt();return ye===null?t.memoizedState=e:zy(t,ye.memoizedState,e)},useTransition:function(){var e=gc(Ks)[0],t=xt().memoizedState;return[e,t]},useMutableSource:Cy,useSyncExternalStore:Ny,useId:Vy,unstable_isNewReconciler:!1};function Pt(e,t){if(e&&e.defaultProps){t=ce({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Nu(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:ce({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Sl={isMounted:function(e){return(e=e._reactInternals)?Fa(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var a=He(),r=Kn(e),s=cn(a,r);s.payload=t,n!=null&&(s.callback=n),t=qn(e,s,r),t!==null&&(Et(t,e,r,a),so(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=He(),r=Kn(e),s=cn(a,r);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=qn(e,s,r),t!==null&&(Et(t,e,r,a),so(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=He(),a=Kn(e),r=cn(n,a);r.tag=2,t!=null&&(r.callback=t),t=qn(e,r,a),t!==null&&(Et(t,e,a,n),so(t,e,a))}};function jp(e,t,n,a,r,s,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,s,i):t.prototype&&t.prototype.isPureReactComponent?!Vs(n,a)||!Vs(r,s):!0}function Uy(e,t,n){var a=!1,r=Xn,s=t.contextType;return typeof s=="object"&&s!==null?s=gt(s):(r=Qe(t)?Ra:_e.current,a=t.contextTypes,s=(a=a!=null)?Tr(e,r):Xn),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Sl,e.stateNode=t,t._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=s),t}function Sp(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Sl.enqueueReplaceState(t,t.state,null)}function ku(e,t,n,a){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs={},df(e);var s=t.contextType;typeof s=="object"&&s!==null?r.context=gt(s):(s=Qe(t)?Ra:_e.current,r.context=Tr(e,s)),r.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Nu(e,t,s,n),r.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(t=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),t!==r.state&&Sl.enqueueReplaceState(r,r.state,null),Vo(e,n,r,a),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308)}function Dr(e,t){try{var n="",a=t;do n+=F1(a),a=a.return;while(a);var r=n}catch(s){r=`
Error generating stack: `+s.message+`
`+s.stack}return{value:e,source:t,stack:r,digest:null}}function xc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Tu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var dj=typeof WeakMap=="function"?WeakMap:Map;function qy(e,t,n){n=cn(-1,n),n.tag=3,n.payload={element:null};var a=t.value;return n.callback=function(){qo||(qo=!0,Fu=a),Tu(e,t)},n}function Wy(e,t,n){n=cn(-1,n),n.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var r=t.value;n.payload=function(){return a(r)},n.callback=function(){Tu(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Tu(e,t),typeof a!="function"&&(Wn===null?Wn=new Set([this]):Wn.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Cp(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new dj;var r=new Set;a.set(t,r)}else r=a.get(t),r===void 0&&(r=new Set,a.set(t,r));r.has(n)||(r.add(n),e=Cj.bind(null,e,t,n),t.then(e,e))}function Np(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function kp(e,t,n,a,r){return e.mode&1?(e.flags|=65536,e.lanes=r,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=cn(-1,1),t.tag=2,qn(n,t,1))),n.lanes|=1),e)}var fj=yn.ReactCurrentOwner,Ke=!1;function Ie(e,t,n,a){t.child=e===null?by(t,null,n,a):Ar(t,e.child,n,a)}function Tp(e,t,n,a,r){n=n.render;var s=t.ref;return fr(t,r),a=gf(e,t,n,a,s,r),n=xf(),e!==null&&!Ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,mn(e,t,r)):(ie&&n&&af(t),t.flags|=1,Ie(e,t,a,r),t.child)}function Ep(e,t,n,a,r){if(e===null){var s=n.type;return typeof s=="function"&&!kf(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Ky(e,t,s,a,r)):(e=fo(n.type,null,a,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&r)){var i=s.memoizedProps;if(n=n.compare,n=n!==null?n:Vs,n(i,a)&&e.ref===t.ref)return mn(e,t,r)}return t.flags|=1,e=Gn(s,a),e.ref=t.ref,e.return=t,t.child=e}function Ky(e,t,n,a,r){if(e!==null){var s=e.memoizedProps;if(Vs(s,a)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=a=s,(e.lanes&r)!==0)e.flags&131072&&(Ke=!0);else return t.lanes=e.lanes,mn(e,t,r)}return Eu(e,t,n,a,r)}function Gy(e,t,n){var a=t.pendingProps,r=a.children,s=e!==null?e.memoizedState:null;if(a.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ne(rr,Xe),Xe|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ne(rr,Xe),Xe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=s!==null?s.baseLanes:n,ne(rr,Xe),Xe|=a}else s!==null?(a=s.baseLanes|n,t.memoizedState=null):a=n,ne(rr,Xe),Xe|=a;return Ie(e,t,r,n),t.child}function Qy(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Eu(e,t,n,a,r){var s=Qe(n)?Ra:_e.current;return s=Tr(t,s),fr(t,r),n=gf(e,t,n,a,s,r),a=xf(),e!==null&&!Ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,mn(e,t,r)):(ie&&a&&af(t),t.flags|=1,Ie(e,t,n,r),t.child)}function Ap(e,t,n,a,r){if(Qe(n)){var s=!0;Lo(t)}else s=!1;if(fr(t,r),t.stateNode===null)lo(e,t),Uy(t,n,a),ku(t,n,a,r),a=!0;else if(e===null){var i=t.stateNode,o=t.memoizedProps;i.props=o;var c=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=gt(u):(u=Qe(n)?Ra:_e.current,u=Tr(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==a||c!==u)&&Sp(t,i,a,u),Tn=!1;var h=t.memoizedState;i.state=h,Vo(t,a,i,r),c=t.memoizedState,o!==a||h!==c||Ge.current||Tn?(typeof d=="function"&&(Nu(t,n,d,a),c=t.memoizedState),(o=Tn||jp(t,n,o,a,h,c,u))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=c),i.props=a,i.state=c,i.context=u,a=o):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,jy(e,t),o=t.memoizedProps,u=t.type===t.elementType?o:Pt(t.type,o),i.props=u,f=t.pendingProps,h=i.context,c=n.contextType,typeof c=="object"&&c!==null?c=gt(c):(c=Qe(n)?Ra:_e.current,c=Tr(t,c));var m=n.getDerivedStateFromProps;(d=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==f||h!==c)&&Sp(t,i,a,c),Tn=!1,h=t.memoizedState,i.state=h,Vo(t,a,i,r);var x=t.memoizedState;o!==f||h!==x||Ge.current||Tn?(typeof m=="function"&&(Nu(t,n,m,a),x=t.memoizedState),(u=Tn||jp(t,n,u,a,h,x,c)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,x,c),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,x,c)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=x),i.props=a,i.state=x,i.context=c,a=u):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),a=!1)}return Au(e,t,n,a,s,r)}function Au(e,t,n,a,r,s){Qy(e,t);var i=(t.flags&128)!==0;if(!a&&!i)return r&&mp(t,n,!1),mn(e,t,s);a=t.stateNode,fj.current=t;var o=i&&typeof n.getDerivedStateFromError!="function"?null:a.render();return t.flags|=1,e!==null&&i?(t.child=Ar(t,e.child,null,s),t.child=Ar(t,null,o,s)):Ie(e,t,o,s),t.memoizedState=a.state,r&&mp(t,n,!0),t.child}function Yy(e){var t=e.stateNode;t.pendingContext?pp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&pp(e,t.context,!1),ff(e,t.containerInfo)}function Rp(e,t,n,a,r){return Er(),sf(r),t.flags|=256,Ie(e,t,n,a),t.child}var Ru={dehydrated:null,treeContext:null,retryLane:0};function Du(e){return{baseLanes:e,cachePool:null,transitions:null}}function Xy(e,t,n){var a=t.pendingProps,r=oe.current,s=!1,i=(t.flags&128)!==0,o;if((o=i)||(o=e!==null&&e.memoizedState===null?!1:(r&2)!==0),o?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(r|=1),ne(oe,r&1),e===null)return Su(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=a.children,e=a.fallback,s?(a=t.mode,s=t.child,i={mode:"hidden",children:i},!(a&1)&&s!==null?(s.childLanes=0,s.pendingProps=i):s=kl(i,a,0,null),e=Ta(e,a,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Du(n),t.memoizedState=Ru,e):wf(t,i));if(r=e.memoizedState,r!==null&&(o=r.dehydrated,o!==null))return hj(e,t,i,a,o,r,n);if(s){s=a.fallback,i=t.mode,r=e.child,o=r.sibling;var c={mode:"hidden",children:a.children};return!(i&1)&&t.child!==r?(a=t.child,a.childLanes=0,a.pendingProps=c,t.deletions=null):(a=Gn(r,c),a.subtreeFlags=r.subtreeFlags&14680064),o!==null?s=Gn(o,s):(s=Ta(s,i,n,null),s.flags|=2),s.return=t,a.return=t,a.sibling=s,t.child=a,a=s,s=t.child,i=e.child.memoizedState,i=i===null?Du(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=Ru,a}return s=e.child,e=s.sibling,a=Gn(s,{mode:"visible",children:a.children}),!(t.mode&1)&&(a.lanes=n),a.return=t,a.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a}function wf(e,t){return t=kl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function zi(e,t,n,a){return a!==null&&sf(a),Ar(t,e.child,null,n),e=wf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hj(e,t,n,a,r,s,i){if(n)return t.flags&256?(t.flags&=-257,a=xc(Error(A(422))),zi(e,t,i,a)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=a.fallback,r=t.mode,a=kl({mode:"visible",children:a.children},r,0,null),s=Ta(s,r,i,null),s.flags|=2,a.return=t,s.return=t,a.sibling=s,t.child=a,t.mode&1&&Ar(t,e.child,null,i),t.child.memoizedState=Du(i),t.memoizedState=Ru,s);if(!(t.mode&1))return zi(e,t,i,null);if(r.data==="$!"){if(a=r.nextSibling&&r.nextSibling.dataset,a)var o=a.dgst;return a=o,s=Error(A(419)),a=xc(s,a,void 0),zi(e,t,i,a)}if(o=(i&e.childLanes)!==0,Ke||o){if(a=Se,a!==null){switch(i&-i){case 4:r=2;break;case 16:r=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:r=32;break;case 536870912:r=268435456;break;default:r=0}r=r&(a.suspendedLanes|i)?0:r,r!==0&&r!==s.retryLane&&(s.retryLane=r,pn(e,r),Et(a,e,r,-1))}return Nf(),a=xc(Error(A(421))),zi(e,t,i,a)}return r.data==="$?"?(t.flags|=128,t.child=e.child,t=Nj.bind(null,e),r._reactRetry=t,null):(e=s.treeContext,et=Un(r.nextSibling),tt=t,ie=!0,Nt=null,e!==null&&(ut[dt++]=on,ut[dt++]=ln,ut[dt++]=Da,on=e.id,ln=e.overflow,Da=t),t=wf(t,a.children),t.flags|=4096,t)}function Dp(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Cu(e.return,t,n)}function yc(e,t,n,a,r){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:r}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=a,s.tail=n,s.tailMode=r)}function Zy(e,t,n){var a=t.pendingProps,r=a.revealOrder,s=a.tail;if(Ie(e,t,a.children,n),a=oe.current,a&2)a=a&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dp(e,n,t);else if(e.tag===19)Dp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}if(ne(oe,a),!(t.mode&1))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&Bo(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),yc(t,!1,r,n,s);break;case"backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Bo(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}yc(t,!0,n,null,s);break;case"together":yc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function lo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function mn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Oa|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(A(153));if(t.child!==null){for(e=t.child,n=Gn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Gn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function pj(e,t,n){switch(t.tag){case 3:Yy(t),Er();break;case 5:Sy(t);break;case 1:Qe(t.type)&&Lo(t);break;case 4:ff(t,t.stateNode.containerInfo);break;case 10:var a=t.type._context,r=t.memoizedProps.value;ne(Fo,a._currentValue),a._currentValue=r;break;case 13:if(a=t.memoizedState,a!==null)return a.dehydrated!==null?(ne(oe,oe.current&1),t.flags|=128,null):n&t.child.childLanes?Xy(e,t,n):(ne(oe,oe.current&1),e=mn(e,t,n),e!==null?e.sibling:null);ne(oe,oe.current&1);break;case 19:if(a=(n&t.childLanes)!==0,e.flags&128){if(a)return Zy(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),ne(oe,oe.current),a)break;return null;case 22:case 23:return t.lanes=0,Gy(e,t,n)}return mn(e,t,n)}var Jy,Mu,e0,t0;Jy=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Mu=function(){};e0=function(e,t,n,a){var r=e.memoizedProps;if(r!==a){e=t.stateNode,xa(Kt.current);var s=null;switch(n){case"input":r=tu(e,r),a=tu(e,a),s=[];break;case"select":r=ce({},r,{value:void 0}),a=ce({},a,{value:void 0}),s=[];break;case"textarea":r=ru(e,r),a=ru(e,a),s=[];break;default:typeof r.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=Mo)}iu(n,a);var i;n=null;for(u in r)if(!a.hasOwnProperty(u)&&r.hasOwnProperty(u)&&r[u]!=null)if(u==="style"){var o=r[u];for(i in o)o.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ms.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in a){var c=a[u];if(o=r!=null?r[u]:void 0,a.hasOwnProperty(u)&&c!==o&&(c!=null||o!=null))if(u==="style")if(o){for(i in o)!o.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&o[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(s||(s=[]),s.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,o=o?o.__html:void 0,c!=null&&o!==c&&(s=s||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(s=s||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ms.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&re("scroll",e),s||o===c||(s=[])):(s=s||[]).push(u,c))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};t0=function(e,t,n,a){n!==a&&(t.flags|=4)};function ss(e,t){if(!ie)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Me(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags&14680064,a|=r.flags&14680064,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags,a|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function mj(e,t,n){var a=t.pendingProps;switch(rf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Me(t),null;case 1:return Qe(t.type)&&Oo(),Me(t),null;case 3:return a=t.stateNode,Rr(),se(Ge),se(_e),pf(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ii(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Nt!==null&&(Bu(Nt),Nt=null))),Mu(e,t),Me(t),null;case 5:hf(t);var r=xa(qs.current);if(n=t.type,e!==null&&t.stateNode!=null)e0(e,t,n,a,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!a){if(t.stateNode===null)throw Error(A(166));return Me(t),null}if(e=xa(Kt.current),Ii(t)){a=t.stateNode,n=t.type;var s=t.memoizedProps;switch(a[$t]=t,a[$s]=s,e=(t.mode&1)!==0,n){case"dialog":re("cancel",a),re("close",a);break;case"iframe":case"object":case"embed":re("load",a);break;case"video":case"audio":for(r=0;r<gs.length;r++)re(gs[r],a);break;case"source":re("error",a);break;case"img":case"image":case"link":re("error",a),re("load",a);break;case"details":re("toggle",a);break;case"input":Bh(a,s),re("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!s.multiple},re("invalid",a);break;case"textarea":$h(a,s),re("invalid",a)}iu(n,s),r=null;for(var i in s)if(s.hasOwnProperty(i)){var o=s[i];i==="children"?typeof o=="string"?a.textContent!==o&&(s.suppressHydrationWarning!==!0&&_i(a.textContent,o,e),r=["children",o]):typeof o=="number"&&a.textContent!==""+o&&(s.suppressHydrationWarning!==!0&&_i(a.textContent,o,e),r=["children",""+o]):Ms.hasOwnProperty(i)&&o!=null&&i==="onScroll"&&re("scroll",a)}switch(n){case"input":Ti(a),Hh(a,s,!0);break;case"textarea":Ti(a),Uh(a);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(a.onclick=Mo)}a=r,t.updateQueue=a,a!==null&&(t.flags|=4)}else{i=r.nodeType===9?r:r.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ex(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=i.createElement(n,{is:a.is}):(e=i.createElement(n),n==="select"&&(i=e,a.multiple?i.multiple=!0:a.size&&(i.size=a.size))):e=i.createElementNS(e,n),e[$t]=t,e[$s]=a,Jy(e,t,!1,!1),t.stateNode=e;e:{switch(i=ou(n,a),n){case"dialog":re("cancel",e),re("close",e),r=a;break;case"iframe":case"object":case"embed":re("load",e),r=a;break;case"video":case"audio":for(r=0;r<gs.length;r++)re(gs[r],e);r=a;break;case"source":re("error",e),r=a;break;case"img":case"image":case"link":re("error",e),re("load",e),r=a;break;case"details":re("toggle",e),r=a;break;case"input":Bh(e,a),r=tu(e,a),re("invalid",e);break;case"option":r=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},r=ce({},a,{value:void 0}),re("invalid",e);break;case"textarea":$h(e,a),r=ru(e,a),re("invalid",e);break;default:r=a}iu(n,r),o=r;for(s in o)if(o.hasOwnProperty(s)){var c=o[s];s==="style"?Dx(e,c):s==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&Ax(e,c)):s==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Os(e,c):typeof c=="number"&&Os(e,""+c):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Ms.hasOwnProperty(s)?c!=null&&s==="onScroll"&&re("scroll",e):c!=null&&$d(e,s,c,i))}switch(n){case"input":Ti(e),Hh(e,a,!1);break;case"textarea":Ti(e),Uh(e);break;case"option":a.value!=null&&e.setAttribute("value",""+Yn(a.value));break;case"select":e.multiple=!!a.multiple,s=a.value,s!=null?lr(e,!!a.multiple,s,!1):a.defaultValue!=null&&lr(e,!!a.multiple,a.defaultValue,!0);break;default:typeof r.onClick=="function"&&(e.onclick=Mo)}switch(n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Me(t),null;case 6:if(e&&t.stateNode!=null)t0(e,t,e.memoizedProps,a);else{if(typeof a!="string"&&t.stateNode===null)throw Error(A(166));if(n=xa(qs.current),xa(Kt.current),Ii(t)){if(a=t.stateNode,n=t.memoizedProps,a[$t]=t,(s=a.nodeValue!==n)&&(e=tt,e!==null))switch(e.tag){case 3:_i(a.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&_i(a.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else a=(n.nodeType===9?n:n.ownerDocument).createTextNode(a),a[$t]=t,t.stateNode=a}return Me(t),null;case 13:if(se(oe),a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ie&&et!==null&&t.mode&1&&!(t.flags&128))vy(),Er(),t.flags|=98560,s=!1;else if(s=Ii(t),a!==null&&a.dehydrated!==null){if(e===null){if(!s)throw Error(A(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(A(317));s[$t]=t}else Er(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Me(t),s=!1}else Nt!==null&&(Bu(Nt),Nt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(a=a!==null,a!==(e!==null&&e.memoizedState!==null)&&a&&(t.child.flags|=8192,t.mode&1&&(e===null||oe.current&1?we===0&&(we=3):Nf())),t.updateQueue!==null&&(t.flags|=4),Me(t),null);case 4:return Rr(),Mu(e,t),e===null&&Bs(t.stateNode.containerInfo),Me(t),null;case 10:return cf(t.type._context),Me(t),null;case 17:return Qe(t.type)&&Oo(),Me(t),null;case 19:if(se(oe),s=t.memoizedState,s===null)return Me(t),null;if(a=(t.flags&128)!==0,i=s.rendering,i===null)if(a)ss(s,!1);else{if(we!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Bo(e),i!==null){for(t.flags|=128,ss(s,!1),a=i.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),t.subtreeFlags=0,a=n,n=t.child;n!==null;)s=n,e=a,s.flags&=14680066,i=s.alternate,i===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,s.type=i.type,e=i.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ne(oe,oe.current&1|2),t.child}e=e.sibling}s.tail!==null&&he()>Mr&&(t.flags|=128,a=!0,ss(s,!1),t.lanes=4194304)}else{if(!a)if(e=Bo(i),e!==null){if(t.flags|=128,a=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ss(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!ie)return Me(t),null}else 2*he()-s.renderingStartTime>Mr&&n!==1073741824&&(t.flags|=128,a=!0,ss(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=he(),t.sibling=null,n=oe.current,ne(oe,a?n&1|2:n&1),t):(Me(t),null);case 22:case 23:return Cf(),a=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(t.flags|=8192),a&&t.mode&1?Xe&1073741824&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function gj(e,t){switch(rf(t),t.tag){case 1:return Qe(t.type)&&Oo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Rr(),se(Ge),se(_e),pf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return hf(t),null;case 13:if(se(oe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));Er()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(oe),null;case 4:return Rr(),null;case 10:return cf(t.type._context),null;case 22:case 23:return Cf(),null;case 24:return null;default:return null}}var Vi=!1,Le=!1,xj=typeof WeakSet=="function"?WeakSet:Set,L=null;function ar(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(a){fe(e,t,a)}else n.current=null}function Ou(e,t,n){try{n()}catch(a){fe(e,t,a)}}var Mp=!1;function yj(e,t){if(xu=Ao,e=iy(),nf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var r=a.anchorOffset,s=a.focusNode;a=a.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,o=-1,c=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var m;f!==n||r!==0&&f.nodeType!==3||(o=i+r),f!==s||a!==0&&f.nodeType!==3||(c=i+a),f.nodeType===3&&(i+=f.nodeValue.length),(m=f.firstChild)!==null;)h=f,f=m;for(;;){if(f===e)break t;if(h===n&&++u===r&&(o=i),h===s&&++d===a&&(c=i),(m=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=m}n=o===-1||c===-1?null:{start:o,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(yu={focusedElem:e,selectionRange:n},Ao=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var w=x.memoizedProps,b=x.memoizedState,p=t.stateNode,g=p.getSnapshotBeforeUpdate(t.elementType===t.type?w:Pt(t.type,w),b);p.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(P){fe(t,t.return,P)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return x=Mp,Mp=!1,x}function Ss(e,t,n){var a=t.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var r=a=a.next;do{if((r.tag&e)===e){var s=r.destroy;r.destroy=void 0,s!==void 0&&Ou(t,n,s)}r=r.next}while(r!==a)}}function Cl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var a=n.create;n.destroy=a()}n=n.next}while(n!==t)}}function Lu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function n0(e){var t=e.alternate;t!==null&&(e.alternate=null,n0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[$t],delete t[$s],delete t[bu],delete t[ej],delete t[tj])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function a0(e){return e.tag===5||e.tag===3||e.tag===4}function Op(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||a0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function _u(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Mo));else if(a!==4&&(e=e.child,e!==null))for(_u(e,t,n),e=e.sibling;e!==null;)_u(e,t,n),e=e.sibling}function Iu(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(Iu(e,t,n),e=e.sibling;e!==null;)Iu(e,t,n),e=e.sibling}var ke=null,Ct=!1;function bn(e,t,n){for(n=n.child;n!==null;)r0(e,t,n),n=n.sibling}function r0(e,t,n){if(Wt&&typeof Wt.onCommitFiberUnmount=="function")try{Wt.onCommitFiberUnmount(xl,n)}catch{}switch(n.tag){case 5:Le||ar(n,t);case 6:var a=ke,r=Ct;ke=null,bn(e,t,n),ke=a,Ct=r,ke!==null&&(Ct?(e=ke,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ke.removeChild(n.stateNode));break;case 18:ke!==null&&(Ct?(e=ke,n=n.stateNode,e.nodeType===8?dc(e.parentNode,n):e.nodeType===1&&dc(e,n),Fs(e)):dc(ke,n.stateNode));break;case 4:a=ke,r=Ct,ke=n.stateNode.containerInfo,Ct=!0,bn(e,t,n),ke=a,Ct=r;break;case 0:case 11:case 14:case 15:if(!Le&&(a=n.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){r=a=a.next;do{var s=r,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&Ou(n,t,i),r=r.next}while(r!==a)}bn(e,t,n);break;case 1:if(!Le&&(ar(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=n.memoizedProps,a.state=n.memoizedState,a.componentWillUnmount()}catch(o){fe(n,t,o)}bn(e,t,n);break;case 21:bn(e,t,n);break;case 22:n.mode&1?(Le=(a=Le)||n.memoizedState!==null,bn(e,t,n),Le=a):bn(e,t,n);break;default:bn(e,t,n)}}function Lp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new xj),t.forEach(function(a){var r=kj.bind(null,e,a);n.has(a)||(n.add(a),a.then(r,r))})}}function vt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var r=n[a];try{var s=e,i=t,o=i;e:for(;o!==null;){switch(o.tag){case 5:ke=o.stateNode,Ct=!1;break e;case 3:ke=o.stateNode.containerInfo,Ct=!0;break e;case 4:ke=o.stateNode.containerInfo,Ct=!0;break e}o=o.return}if(ke===null)throw Error(A(160));r0(s,i,r),ke=null,Ct=!1;var c=r.alternate;c!==null&&(c.return=null),r.return=null}catch(u){fe(r,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)s0(t,e),t=t.sibling}function s0(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vt(t,e),Lt(e),a&4){try{Ss(3,e,e.return),Cl(3,e)}catch(w){fe(e,e.return,w)}try{Ss(5,e,e.return)}catch(w){fe(e,e.return,w)}}break;case 1:vt(t,e),Lt(e),a&512&&n!==null&&ar(n,n.return);break;case 5:if(vt(t,e),Lt(e),a&512&&n!==null&&ar(n,n.return),e.flags&32){var r=e.stateNode;try{Os(r,"")}catch(w){fe(e,e.return,w)}}if(a&4&&(r=e.stateNode,r!=null)){var s=e.memoizedProps,i=n!==null?n.memoizedProps:s,o=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{o==="input"&&s.type==="radio"&&s.name!=null&&kx(r,s),ou(o,i);var u=ou(o,s);for(i=0;i<c.length;i+=2){var d=c[i],f=c[i+1];d==="style"?Dx(r,f):d==="dangerouslySetInnerHTML"?Ax(r,f):d==="children"?Os(r,f):$d(r,d,f,u)}switch(o){case"input":nu(r,s);break;case"textarea":Tx(r,s);break;case"select":var h=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!s.multiple;var m=s.value;m!=null?lr(r,!!s.multiple,m,!1):h!==!!s.multiple&&(s.defaultValue!=null?lr(r,!!s.multiple,s.defaultValue,!0):lr(r,!!s.multiple,s.multiple?[]:"",!1))}r[$s]=s}catch(w){fe(e,e.return,w)}}break;case 6:if(vt(t,e),Lt(e),a&4){if(e.stateNode===null)throw Error(A(162));r=e.stateNode,s=e.memoizedProps;try{r.nodeValue=s}catch(w){fe(e,e.return,w)}}break;case 3:if(vt(t,e),Lt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Fs(t.containerInfo)}catch(w){fe(e,e.return,w)}break;case 4:vt(t,e),Lt(e);break;case 13:vt(t,e),Lt(e),r=e.child,r.flags&8192&&(s=r.memoizedState!==null,r.stateNode.isHidden=s,!s||r.alternate!==null&&r.alternate.memoizedState!==null||(jf=he())),a&4&&Lp(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Le=(u=Le)||d,vt(t,e),Le=u):vt(t,e),Lt(e),a&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(L=e,d=e.child;d!==null;){for(f=L=d;L!==null;){switch(h=L,m=h.child,h.tag){case 0:case 11:case 14:case 15:Ss(4,h,h.return);break;case 1:ar(h,h.return);var x=h.stateNode;if(typeof x.componentWillUnmount=="function"){a=h,n=h.return;try{t=a,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(w){fe(a,n,w)}}break;case 5:ar(h,h.return);break;case 22:if(h.memoizedState!==null){Ip(f);continue}}m!==null?(m.return=h,L=m):Ip(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{r=f.stateNode,u?(s=r.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(o=f.stateNode,c=f.memoizedProps.style,i=c!=null&&c.hasOwnProperty("display")?c.display:null,o.style.display=Rx("display",i))}catch(w){fe(e,e.return,w)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(w){fe(e,e.return,w)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:vt(t,e),Lt(e),a&4&&Lp(e);break;case 21:break;default:vt(t,e),Lt(e)}}function Lt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(a0(n)){var a=n;break e}n=n.return}throw Error(A(160))}switch(a.tag){case 5:var r=a.stateNode;a.flags&32&&(Os(r,""),a.flags&=-33);var s=Op(e);Iu(e,s,r);break;case 3:case 4:var i=a.stateNode.containerInfo,o=Op(e);_u(e,o,i);break;default:throw Error(A(161))}}catch(c){fe(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vj(e,t,n){L=e,i0(e)}function i0(e,t,n){for(var a=(e.mode&1)!==0;L!==null;){var r=L,s=r.child;if(r.tag===22&&a){var i=r.memoizedState!==null||Vi;if(!i){var o=r.alternate,c=o!==null&&o.memoizedState!==null||Le;o=Vi;var u=Le;if(Vi=i,(Le=c)&&!u)for(L=r;L!==null;)i=L,c=i.child,i.tag===22&&i.memoizedState!==null?Fp(r):c!==null?(c.return=i,L=c):Fp(r);for(;s!==null;)L=s,i0(s),s=s.sibling;L=r,Vi=o,Le=u}_p(e)}else r.subtreeFlags&8772&&s!==null?(s.return=r,L=s):_p(e)}}function _p(e){for(;L!==null;){var t=L;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Le||Cl(5,t);break;case 1:var a=t.stateNode;if(t.flags&4&&!Le)if(n===null)a.componentDidMount();else{var r=t.elementType===t.type?n.memoizedProps:Pt(t.type,n.memoizedProps);a.componentDidUpdate(r,n.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&wp(t,s,a);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}wp(t,i,n)}break;case 5:var o=t.stateNode;if(n===null&&t.flags&4){n=o;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&Fs(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(A(163))}Le||t.flags&512&&Lu(t)}catch(h){fe(t,t.return,h)}}if(t===e){L=null;break}if(n=t.sibling,n!==null){n.return=t.return,L=n;break}L=t.return}}function Ip(e){for(;L!==null;){var t=L;if(t===e){L=null;break}var n=t.sibling;if(n!==null){n.return=t.return,L=n;break}L=t.return}}function Fp(e){for(;L!==null;){var t=L;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Cl(4,t)}catch(c){fe(t,n,c)}break;case 1:var a=t.stateNode;if(typeof a.componentDidMount=="function"){var r=t.return;try{a.componentDidMount()}catch(c){fe(t,r,c)}}var s=t.return;try{Lu(t)}catch(c){fe(t,s,c)}break;case 5:var i=t.return;try{Lu(t)}catch(c){fe(t,i,c)}}}catch(c){fe(t,t.return,c)}if(t===e){L=null;break}var o=t.sibling;if(o!==null){o.return=t.return,L=o;break}L=t.return}}var wj=Math.ceil,Uo=yn.ReactCurrentDispatcher,bf=yn.ReactCurrentOwner,pt=yn.ReactCurrentBatchConfig,X=0,Se=null,me=null,Ae=0,Xe=0,rr=ia(0),we=0,Qs=null,Oa=0,Nl=0,Pf=0,Cs=null,We=null,jf=0,Mr=1/0,an=null,qo=!1,Fu=null,Wn=null,Bi=!1,Fn=null,Wo=0,Ns=0,zu=null,co=-1,uo=0;function He(){return X&6?he():co!==-1?co:co=he()}function Kn(e){return e.mode&1?X&2&&Ae!==0?Ae&-Ae:aj.transition!==null?(uo===0&&(uo=Ux()),uo):(e=J,e!==0||(e=window.event,e=e===void 0?16:Xx(e.type)),e):1}function Et(e,t,n,a){if(50<Ns)throw Ns=0,zu=null,Error(A(185));ui(e,n,a),(!(X&2)||e!==Se)&&(e===Se&&(!(X&2)&&(Nl|=n),we===4&&An(e,Ae)),Ye(e,a),n===1&&X===0&&!(t.mode&1)&&(Mr=he()+500,Pl&&oa()))}function Ye(e,t){var n=e.callbackNode;aP(e,t);var a=Eo(e,e===Se?Ae:0);if(a===0)n!==null&&Kh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=a&-a,e.callbackPriority!==t){if(n!=null&&Kh(n),t===1)e.tag===0?nj(zp.bind(null,e)):gy(zp.bind(null,e)),ZP(function(){!(X&6)&&oa()}),n=null;else{switch(qx(a)){case 1:n=Gd;break;case 4:n=Hx;break;case 16:n=To;break;case 536870912:n=$x;break;default:n=To}n=p0(n,o0.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function o0(e,t){if(co=-1,uo=0,X&6)throw Error(A(327));var n=e.callbackNode;if(hr()&&e.callbackNode!==n)return null;var a=Eo(e,e===Se?Ae:0);if(a===0)return null;if(a&30||a&e.expiredLanes||t)t=Ko(e,a);else{t=a;var r=X;X|=2;var s=c0();(Se!==e||Ae!==t)&&(an=null,Mr=he()+500,ka(e,t));do try{jj();break}catch(o){l0(e,o)}while(!0);lf(),Uo.current=s,X=r,me!==null?t=0:(Se=null,Ae=0,t=we)}if(t!==0){if(t===2&&(r=fu(e),r!==0&&(a=r,t=Vu(e,r))),t===1)throw n=Qs,ka(e,0),An(e,a),Ye(e,he()),n;if(t===6)An(e,a);else{if(r=e.current.alternate,!(a&30)&&!bj(r)&&(t=Ko(e,a),t===2&&(s=fu(e),s!==0&&(a=s,t=Vu(e,s))),t===1))throw n=Qs,ka(e,0),An(e,a),Ye(e,he()),n;switch(e.finishedWork=r,e.finishedLanes=a,t){case 0:case 1:throw Error(A(345));case 2:ha(e,We,an);break;case 3:if(An(e,a),(a&130023424)===a&&(t=jf+500-he(),10<t)){if(Eo(e,0)!==0)break;if(r=e.suspendedLanes,(r&a)!==a){He(),e.pingedLanes|=e.suspendedLanes&r;break}e.timeoutHandle=wu(ha.bind(null,e,We,an),t);break}ha(e,We,an);break;case 4:if(An(e,a),(a&4194240)===a)break;for(t=e.eventTimes,r=-1;0<a;){var i=31-Tt(a);s=1<<i,i=t[i],i>r&&(r=i),a&=~s}if(a=r,a=he()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*wj(a/1960))-a,10<a){e.timeoutHandle=wu(ha.bind(null,e,We,an),a);break}ha(e,We,an);break;case 5:ha(e,We,an);break;default:throw Error(A(329))}}}return Ye(e,he()),e.callbackNode===n?o0.bind(null,e):null}function Vu(e,t){var n=Cs;return e.current.memoizedState.isDehydrated&&(ka(e,t).flags|=256),e=Ko(e,t),e!==2&&(t=We,We=n,t!==null&&Bu(t)),e}function Bu(e){We===null?We=e:We.push.apply(We,e)}function bj(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var a=0;a<n.length;a++){var r=n[a],s=r.getSnapshot;r=r.value;try{if(!Rt(s(),r))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function An(e,t){for(t&=~Pf,t&=~Nl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Tt(t),a=1<<n;e[n]=-1,t&=~a}}function zp(e){if(X&6)throw Error(A(327));hr();var t=Eo(e,0);if(!(t&1))return Ye(e,he()),null;var n=Ko(e,t);if(e.tag!==0&&n===2){var a=fu(e);a!==0&&(t=a,n=Vu(e,a))}if(n===1)throw n=Qs,ka(e,0),An(e,t),Ye(e,he()),n;if(n===6)throw Error(A(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ha(e,We,an),Ye(e,he()),null}function Sf(e,t){var n=X;X|=1;try{return e(t)}finally{X=n,X===0&&(Mr=he()+500,Pl&&oa())}}function La(e){Fn!==null&&Fn.tag===0&&!(X&6)&&hr();var t=X;X|=1;var n=pt.transition,a=J;try{if(pt.transition=null,J=1,e)return e()}finally{J=a,pt.transition=n,X=t,!(X&6)&&oa()}}function Cf(){Xe=rr.current,se(rr)}function ka(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,XP(n)),me!==null)for(n=me.return;n!==null;){var a=n;switch(rf(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&Oo();break;case 3:Rr(),se(Ge),se(_e),pf();break;case 5:hf(a);break;case 4:Rr();break;case 13:se(oe);break;case 19:se(oe);break;case 10:cf(a.type._context);break;case 22:case 23:Cf()}n=n.return}if(Se=e,me=e=Gn(e.current,null),Ae=Xe=t,we=0,Qs=null,Pf=Nl=Oa=0,We=Cs=null,ga!==null){for(t=0;t<ga.length;t++)if(n=ga[t],a=n.interleaved,a!==null){n.interleaved=null;var r=a.next,s=n.pending;if(s!==null){var i=s.next;s.next=r,a.next=i}n.pending=a}ga=null}return e}function l0(e,t){do{var n=me;try{if(lf(),io.current=$o,Ho){for(var a=le.memoizedState;a!==null;){var r=a.queue;r!==null&&(r.pending=null),a=a.next}Ho=!1}if(Ma=0,Pe=ye=le=null,js=!1,Ws=0,bf.current=null,n===null||n.return===null){we=1,Qs=t,me=null;break}e:{var s=e,i=n.return,o=n,c=t;if(t=Ae,o.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=o,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=Np(i);if(m!==null){m.flags&=-257,kp(m,i,o,s,t),m.mode&1&&Cp(s,u,t),t=m,c=u;var x=t.updateQueue;if(x===null){var w=new Set;w.add(c),t.updateQueue=w}else x.add(c);break e}else{if(!(t&1)){Cp(s,u,t),Nf();break e}c=Error(A(426))}}else if(ie&&o.mode&1){var b=Np(i);if(b!==null){!(b.flags&65536)&&(b.flags|=256),kp(b,i,o,s,t),sf(Dr(c,o));break e}}s=c=Dr(c,o),we!==4&&(we=2),Cs===null?Cs=[s]:Cs.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var p=qy(s,c,t);vp(s,p);break e;case 1:o=c;var g=s.type,y=s.stateNode;if(!(s.flags&128)&&(typeof g.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Wn===null||!Wn.has(y)))){s.flags|=65536,t&=-t,s.lanes|=t;var P=Wy(s,o,t);vp(s,P);break e}}s=s.return}while(s!==null)}d0(n)}catch(j){t=j,me===n&&n!==null&&(me=n=n.return);continue}break}while(!0)}function c0(){var e=Uo.current;return Uo.current=$o,e===null?$o:e}function Nf(){(we===0||we===3||we===2)&&(we=4),Se===null||!(Oa&268435455)&&!(Nl&268435455)||An(Se,Ae)}function Ko(e,t){var n=X;X|=2;var a=c0();(Se!==e||Ae!==t)&&(an=null,ka(e,t));do try{Pj();break}catch(r){l0(e,r)}while(!0);if(lf(),X=n,Uo.current=a,me!==null)throw Error(A(261));return Se=null,Ae=0,we}function Pj(){for(;me!==null;)u0(me)}function jj(){for(;me!==null&&!G1();)u0(me)}function u0(e){var t=h0(e.alternate,e,Xe);e.memoizedProps=e.pendingProps,t===null?d0(e):me=t,bf.current=null}function d0(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=gj(n,t),n!==null){n.flags&=32767,me=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{we=6,me=null;return}}else if(n=mj(n,t,Xe),n!==null){me=n;return}if(t=t.sibling,t!==null){me=t;return}me=t=e}while(t!==null);we===0&&(we=5)}function ha(e,t,n){var a=J,r=pt.transition;try{pt.transition=null,J=1,Sj(e,t,n,a)}finally{pt.transition=r,J=a}return null}function Sj(e,t,n,a){do hr();while(Fn!==null);if(X&6)throw Error(A(327));n=e.finishedWork;var r=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(A(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(rP(e,s),e===Se&&(me=Se=null,Ae=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Bi||(Bi=!0,p0(To,function(){return hr(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=pt.transition,pt.transition=null;var i=J;J=1;var o=X;X|=4,bf.current=null,yj(e,n),s0(n,e),UP(yu),Ao=!!xu,yu=xu=null,e.current=n,vj(n),Q1(),X=o,J=i,pt.transition=s}else e.current=n;if(Bi&&(Bi=!1,Fn=e,Wo=r),s=e.pendingLanes,s===0&&(Wn=null),Z1(n.stateNode),Ye(e,he()),t!==null)for(a=e.onRecoverableError,n=0;n<t.length;n++)r=t[n],a(r.value,{componentStack:r.stack,digest:r.digest});if(qo)throw qo=!1,e=Fu,Fu=null,e;return Wo&1&&e.tag!==0&&hr(),s=e.pendingLanes,s&1?e===zu?Ns++:(Ns=0,zu=e):Ns=0,oa(),null}function hr(){if(Fn!==null){var e=qx(Wo),t=pt.transition,n=J;try{if(pt.transition=null,J=16>e?16:e,Fn===null)var a=!1;else{if(e=Fn,Fn=null,Wo=0,X&6)throw Error(A(331));var r=X;for(X|=4,L=e.current;L!==null;){var s=L,i=s.child;if(L.flags&16){var o=s.deletions;if(o!==null){for(var c=0;c<o.length;c++){var u=o[c];for(L=u;L!==null;){var d=L;switch(d.tag){case 0:case 11:case 15:Ss(8,d,s)}var f=d.child;if(f!==null)f.return=d,L=f;else for(;L!==null;){d=L;var h=d.sibling,m=d.return;if(n0(d),d===u){L=null;break}if(h!==null){h.return=m,L=h;break}L=m}}}var x=s.alternate;if(x!==null){var w=x.child;if(w!==null){x.child=null;do{var b=w.sibling;w.sibling=null,w=b}while(w!==null)}}L=s}}if(s.subtreeFlags&2064&&i!==null)i.return=s,L=i;else e:for(;L!==null;){if(s=L,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Ss(9,s,s.return)}var p=s.sibling;if(p!==null){p.return=s.return,L=p;break e}L=s.return}}var g=e.current;for(L=g;L!==null;){i=L;var y=i.child;if(i.subtreeFlags&2064&&y!==null)y.return=i,L=y;else e:for(i=g;L!==null;){if(o=L,o.flags&2048)try{switch(o.tag){case 0:case 11:case 15:Cl(9,o)}}catch(j){fe(o,o.return,j)}if(o===i){L=null;break e}var P=o.sibling;if(P!==null){P.return=o.return,L=P;break e}L=o.return}}if(X=r,oa(),Wt&&typeof Wt.onPostCommitFiberRoot=="function")try{Wt.onPostCommitFiberRoot(xl,e)}catch{}a=!0}return a}finally{J=n,pt.transition=t}}return!1}function Vp(e,t,n){t=Dr(n,t),t=qy(e,t,1),e=qn(e,t,1),t=He(),e!==null&&(ui(e,1,t),Ye(e,t))}function fe(e,t,n){if(e.tag===3)Vp(e,e,n);else for(;t!==null;){if(t.tag===3){Vp(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Wn===null||!Wn.has(a))){e=Dr(n,e),e=Wy(t,e,1),t=qn(t,e,1),e=He(),t!==null&&(ui(t,1,e),Ye(t,e));break}}t=t.return}}function Cj(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),t=He(),e.pingedLanes|=e.suspendedLanes&n,Se===e&&(Ae&n)===n&&(we===4||we===3&&(Ae&130023424)===Ae&&500>he()-jf?ka(e,0):Pf|=n),Ye(e,t)}function f0(e,t){t===0&&(e.mode&1?(t=Ri,Ri<<=1,!(Ri&130023424)&&(Ri=4194304)):t=1);var n=He();e=pn(e,t),e!==null&&(ui(e,t,n),Ye(e,n))}function Nj(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),f0(e,n)}function kj(e,t){var n=0;switch(e.tag){case 13:var a=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(A(314))}a!==null&&a.delete(t),f0(e,n)}var h0;h0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ge.current)Ke=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ke=!1,pj(e,t,n);Ke=!!(e.flags&131072)}else Ke=!1,ie&&t.flags&1048576&&xy(t,Io,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;lo(e,t),e=t.pendingProps;var r=Tr(t,_e.current);fr(t,n),r=gf(null,t,a,e,r,n);var s=xf();return t.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qe(a)?(s=!0,Lo(t)):s=!1,t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,df(t),r.updater=Sl,t.stateNode=r,r._reactInternals=t,ku(t,a,e,n),t=Au(null,t,a,!0,s,n)):(t.tag=0,ie&&s&&af(t),Ie(null,t,r,n),t=t.child),t;case 16:a=t.elementType;e:{switch(lo(e,t),e=t.pendingProps,r=a._init,a=r(a._payload),t.type=a,r=t.tag=Ej(a),e=Pt(a,e),r){case 0:t=Eu(null,t,a,e,n);break e;case 1:t=Ap(null,t,a,e,n);break e;case 11:t=Tp(null,t,a,e,n);break e;case 14:t=Ep(null,t,a,Pt(a.type,e),n);break e}throw Error(A(306,a,""))}return t;case 0:return a=t.type,r=t.pendingProps,r=t.elementType===a?r:Pt(a,r),Eu(e,t,a,r,n);case 1:return a=t.type,r=t.pendingProps,r=t.elementType===a?r:Pt(a,r),Ap(e,t,a,r,n);case 3:e:{if(Yy(t),e===null)throw Error(A(387));a=t.pendingProps,s=t.memoizedState,r=s.element,jy(e,t),Vo(t,a,null,n);var i=t.memoizedState;if(a=i.element,s.isDehydrated)if(s={element:a,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){r=Dr(Error(A(423)),t),t=Rp(e,t,a,n,r);break e}else if(a!==r){r=Dr(Error(A(424)),t),t=Rp(e,t,a,n,r);break e}else for(et=Un(t.stateNode.containerInfo.firstChild),tt=t,ie=!0,Nt=null,n=by(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Er(),a===r){t=mn(e,t,n);break e}Ie(e,t,a,n)}t=t.child}return t;case 5:return Sy(t),e===null&&Su(t),a=t.type,r=t.pendingProps,s=e!==null?e.memoizedProps:null,i=r.children,vu(a,r)?i=null:s!==null&&vu(a,s)&&(t.flags|=32),Qy(e,t),Ie(e,t,i,n),t.child;case 6:return e===null&&Su(t),null;case 13:return Xy(e,t,n);case 4:return ff(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Ar(t,null,a,n):Ie(e,t,a,n),t.child;case 11:return a=t.type,r=t.pendingProps,r=t.elementType===a?r:Pt(a,r),Tp(e,t,a,r,n);case 7:return Ie(e,t,t.pendingProps,n),t.child;case 8:return Ie(e,t,t.pendingProps.children,n),t.child;case 12:return Ie(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(a=t.type._context,r=t.pendingProps,s=t.memoizedProps,i=r.value,ne(Fo,a._currentValue),a._currentValue=i,s!==null)if(Rt(s.value,i)){if(s.children===r.children&&!Ge.current){t=mn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var o=s.dependencies;if(o!==null){i=s.child;for(var c=o.firstContext;c!==null;){if(c.context===a){if(s.tag===1){c=cn(-1,n&-n),c.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),Cu(s.return,n,t),o.lanes|=n;break}c=c.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(A(341));i.lanes|=n,o=i.alternate,o!==null&&(o.lanes|=n),Cu(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}Ie(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,a=t.pendingProps.children,fr(t,n),r=gt(r),a=a(r),t.flags|=1,Ie(e,t,a,n),t.child;case 14:return a=t.type,r=Pt(a,t.pendingProps),r=Pt(a.type,r),Ep(e,t,a,r,n);case 15:return Ky(e,t,t.type,t.pendingProps,n);case 17:return a=t.type,r=t.pendingProps,r=t.elementType===a?r:Pt(a,r),lo(e,t),t.tag=1,Qe(a)?(e=!0,Lo(t)):e=!1,fr(t,n),Uy(t,a,r),ku(t,a,r,n),Au(null,t,a,!0,e,n);case 19:return Zy(e,t,n);case 22:return Gy(e,t,n)}throw Error(A(156,t.tag))};function p0(e,t){return Bx(e,t)}function Tj(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ft(e,t,n,a){return new Tj(e,t,n,a)}function kf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ej(e){if(typeof e=="function")return kf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qd)return 11;if(e===Wd)return 14}return 2}function Gn(e,t){var n=e.alternate;return n===null?(n=ft(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function fo(e,t,n,a,r,s){var i=2;if(a=e,typeof e=="function")kf(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Ga:return Ta(n.children,r,s,t);case Ud:i=8,r|=8;break;case Xc:return e=ft(12,n,t,r|2),e.elementType=Xc,e.lanes=s,e;case Zc:return e=ft(13,n,t,r),e.elementType=Zc,e.lanes=s,e;case Jc:return e=ft(19,n,t,r),e.elementType=Jc,e.lanes=s,e;case Sx:return kl(n,r,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Px:i=10;break e;case jx:i=9;break e;case qd:i=11;break e;case Wd:i=14;break e;case kn:i=16,a=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=ft(i,n,t,r),t.elementType=e,t.type=a,t.lanes=s,t}function Ta(e,t,n,a){return e=ft(7,e,a,t),e.lanes=n,e}function kl(e,t,n,a){return e=ft(22,e,a,t),e.elementType=Sx,e.lanes=n,e.stateNode={isHidden:!1},e}function vc(e,t,n){return e=ft(6,e,null,t),e.lanes=n,e}function wc(e,t,n){return t=ft(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Aj(e,t,n,a,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ec(0),this.expirationTimes=ec(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ec(0),this.identifierPrefix=a,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Tf(e,t,n,a,r,s,i,o,c){return e=new Aj(e,t,n,o,c),t===1?(t=1,s===!0&&(t|=8)):t=0,s=ft(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:a,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},df(s),e}function Rj(e,t,n){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ka,key:a==null?null:""+a,children:e,containerInfo:t,implementation:n}}function m0(e){if(!e)return Xn;e=e._reactInternals;e:{if(Fa(e)!==e||e.tag!==1)throw Error(A(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Qe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(A(171))}if(e.tag===1){var n=e.type;if(Qe(n))return my(e,n,t)}return t}function g0(e,t,n,a,r,s,i,o,c){return e=Tf(n,a,!0,e,r,s,i,o,c),e.context=m0(null),n=e.current,a=He(),r=Kn(n),s=cn(a,r),s.callback=t??null,qn(n,s,r),e.current.lanes=r,ui(e,r,a),Ye(e,a),e}function Tl(e,t,n,a){var r=t.current,s=He(),i=Kn(r);return n=m0(n),t.context===null?t.context=n:t.pendingContext=n,t=cn(s,i),t.payload={element:e},a=a===void 0?null:a,a!==null&&(t.callback=a),e=qn(r,t,i),e!==null&&(Et(e,r,i,s),so(e,r,i)),i}function Go(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Bp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ef(e,t){Bp(e,t),(e=e.alternate)&&Bp(e,t)}function Dj(){return null}var x0=typeof reportError=="function"?reportError:function(e){console.error(e)};function Af(e){this._internalRoot=e}El.prototype.render=Af.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(A(409));Tl(e,t,null,null)};El.prototype.unmount=Af.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;La(function(){Tl(null,e,null,null)}),t[hn]=null}};function El(e){this._internalRoot=e}El.prototype.unstable_scheduleHydration=function(e){if(e){var t=Gx();e={blockedOn:null,target:e,priority:t};for(var n=0;n<En.length&&t!==0&&t<En[n].priority;n++);En.splice(n,0,e),n===0&&Yx(e)}};function Rf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Al(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Hp(){}function Mj(e,t,n,a,r){if(r){if(typeof a=="function"){var s=a;a=function(){var u=Go(i);s.call(u)}}var i=g0(t,a,e,0,null,!1,!1,"",Hp);return e._reactRootContainer=i,e[hn]=i.current,Bs(e.nodeType===8?e.parentNode:e),La(),i}for(;r=e.lastChild;)e.removeChild(r);if(typeof a=="function"){var o=a;a=function(){var u=Go(c);o.call(u)}}var c=Tf(e,0,!1,null,null,!1,!1,"",Hp);return e._reactRootContainer=c,e[hn]=c.current,Bs(e.nodeType===8?e.parentNode:e),La(function(){Tl(t,c,n,a)}),c}function Rl(e,t,n,a,r){var s=n._reactRootContainer;if(s){var i=s;if(typeof r=="function"){var o=r;r=function(){var c=Go(i);o.call(c)}}Tl(t,i,e,r)}else i=Mj(n,t,e,r,a);return Go(i)}Wx=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ms(t.pendingLanes);n!==0&&(Qd(t,n|1),Ye(t,he()),!(X&6)&&(Mr=he()+500,oa()))}break;case 13:La(function(){var a=pn(e,1);if(a!==null){var r=He();Et(a,e,1,r)}}),Ef(e,1)}};Yd=function(e){if(e.tag===13){var t=pn(e,134217728);if(t!==null){var n=He();Et(t,e,134217728,n)}Ef(e,134217728)}};Kx=function(e){if(e.tag===13){var t=Kn(e),n=pn(e,t);if(n!==null){var a=He();Et(n,e,t,a)}Ef(e,t)}};Gx=function(){return J};Qx=function(e,t){var n=J;try{return J=e,t()}finally{J=n}};cu=function(e,t,n){switch(t){case"input":if(nu(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var r=bl(a);if(!r)throw Error(A(90));Nx(a),nu(a,r)}}}break;case"textarea":Tx(e,n);break;case"select":t=n.value,t!=null&&lr(e,!!n.multiple,t,!1)}};Lx=Sf;_x=La;var Oj={usingClientEntryPoint:!1,Events:[fi,Za,bl,Mx,Ox,Sf]},is={findFiberByHostInstance:ma,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Lj={bundleType:is.bundleType,version:is.version,rendererPackageName:is.rendererPackageName,rendererConfig:is.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:yn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=zx(e),e===null?null:e.stateNode},findFiberByHostInstance:is.findFiberByHostInstance||Dj,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Hi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hi.isDisabled&&Hi.supportsFiber)try{xl=Hi.inject(Lj),Wt=Hi}catch{}}st.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Oj;st.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Rf(t))throw Error(A(200));return Rj(e,t,null,n)};st.createRoot=function(e,t){if(!Rf(e))throw Error(A(299));var n=!1,a="",r=x0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onRecoverableError!==void 0&&(r=t.onRecoverableError)),t=Tf(e,1,!1,null,null,n,!1,a,r),e[hn]=t.current,Bs(e.nodeType===8?e.parentNode:e),new Af(t)};st.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(A(188)):(e=Object.keys(e).join(","),Error(A(268,e)));return e=zx(t),e=e===null?null:e.stateNode,e};st.flushSync=function(e){return La(e)};st.hydrate=function(e,t,n){if(!Al(t))throw Error(A(200));return Rl(null,e,t,!0,n)};st.hydrateRoot=function(e,t,n){if(!Rf(e))throw Error(A(405));var a=n!=null&&n.hydratedSources||null,r=!1,s="",i=x0;if(n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=g0(t,null,e,1,n??null,r,!1,s,i),e[hn]=t.current,Bs(e),a)for(e=0;e<a.length;e++)n=a[e],r=n._getVersion,r=r(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,r]:t.mutableSourceEagerHydrationData.push(n,r);return new El(t)};st.render=function(e,t,n){if(!Al(t))throw Error(A(200));return Rl(null,e,t,!1,n)};st.unmountComponentAtNode=function(e){if(!Al(e))throw Error(A(40));return e._reactRootContainer?(La(function(){Rl(null,null,e,!1,function(){e._reactRootContainer=null,e[hn]=null})}),!0):!1};st.unstable_batchedUpdates=Sf;st.unstable_renderSubtreeIntoContainer=function(e,t,n,a){if(!Al(n))throw Error(A(200));if(e==null||e._reactInternals===void 0)throw Error(A(38));return Rl(e,t,n,!1,a)};st.version="18.3.1-next-f1338f8080-20240426";function y0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(y0)}catch(e){console.error(e)}}y0(),yx.exports=st;var pi=yx.exports,v0,$p=pi;v0=$p.createRoot,$p.hydrateRoot;const _j=1,Ij=1e6;let bc=0;function Fj(){return bc=(bc+1)%Number.MAX_SAFE_INTEGER,bc.toString()}const Pc=new Map,Up=e=>{if(Pc.has(e))return;const t=setTimeout(()=>{Pc.delete(e),ks({type:"REMOVE_TOAST",toastId:e})},Ij);Pc.set(e,t)},zj=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,_j)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Up(n):e.toasts.forEach(a=>{Up(a.id)}),{...e,toasts:e.toasts.map(a=>a.id===n||n===void 0?{...a,open:!1}:a)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},ho=[];let po={toasts:[]};function ks(e){po=zj(po,e),ho.forEach(t=>{t(po)})}function Vj({...e}){const t=Fj(),n=r=>ks({type:"UPDATE_TOAST",toast:{...r,id:t}}),a=()=>ks({type:"DISMISS_TOAST",toastId:t});return ks({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||a()}}}),{id:t,dismiss:a,update:n}}function Dl(){const[e,t]=v.useState(po);return v.useEffect(()=>(ho.push(t),()=>{const n=ho.indexOf(t);n>-1&&ho.splice(n,1)}),[e]),{...e,toast:Vj,dismiss:n=>ks({type:"DISMISS_TOAST",toastId:n})}}function ve(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function qp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Bj(...e){return t=>{let n=!1;const a=e.map(r=>{const s=qp(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<a.length;r++){const s=a[r];typeof s=="function"?s():qp(e[r],null)}}}}function Dt(...e){return v.useCallback(Bj(...e),e)}function Ml(e,t=[]){let n=[];function a(s,i){const o=v.createContext(i);o.displayName=s+"Context";const c=n.length;n=[...n,i];const u=f=>{var p;const{scope:h,children:m,...x}=f,w=((p=h==null?void 0:h[e])==null?void 0:p[c])||o,b=v.useMemo(()=>x,Object.values(x));return l.jsx(w.Provider,{value:b,children:m})};u.displayName=s+"Provider";function d(f,h){var w;const m=((w=h==null?void 0:h[e])==null?void 0:w[c])||o,x=v.useContext(m);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,d]}const r=()=>{const s=n.map(i=>v.createContext(i));return function(o){const c=(o==null?void 0:o[e])||s;return v.useMemo(()=>({[`__scope${e}`]:{...o,[e]:c}}),[o,c])}};return r.scopeName=e,[a,Hj(r,...t)]}function Hj(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const a=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const i=a.reduce((o,{useScope:c,scopeName:u})=>{const f=c(s)[`__scope${u}`];return{...o,...f}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Qo(e){const t=v.forwardRef((n,a)=>{let{children:r,...s}=n,i=null,o=!1;const c=[];Wp(r)&&typeof $i=="function"&&(r=$i(r._payload)),v.Children.forEach(r,h=>{var m;if(Gj(h)){o=!0;const x=h;let w="child"in x.props?x.props.child:x.props.children;Wp(w)&&typeof $i=="function"&&(w=$i(w._payload)),i=qj(x,w),c.push((m=i==null?void 0:i.props)==null?void 0:m.children)}else c.push(h)}),i?i=v.cloneElement(i,void 0,c):!o&&v.Children.count(r)===1&&v.isValidElement(r)&&(i=r);const u=i?Kj(i):void 0,d=Dt(a,u);if(!i){if(r||r===0)throw new Error(o?Zj(e):Xj(e));return r}const f=Wj(s,i.props??{});return i.type!==v.Fragment&&(f.ref=a?d:u),v.cloneElement(i,f)});return t.displayName=`${e}.Slot`,t}var $j=Qo("Slot"),w0=Symbol.for("radix.slottable");function Uj(e){const t=n=>"child"in n?n.children(n.child):n.children;return t.displayName=`${e}.Slottable`,t.__radixId=w0,t}var qj=(e,t)=>{if("child"in e.props){const n=e.props.child;return v.isValidElement(n)?v.cloneElement(n,void 0,e.props.children(n.props.children)):null}return v.isValidElement(t)?t:null};function Wj(e,t){const n={...t};for(const a in t){const r=e[a],s=t[a];/^on[A-Z]/.test(a)?r&&s?n[a]=(...o)=>{const c=s(...o);return r(...o),c}:r&&(n[a]=r):a==="style"?n[a]={...r,...s}:a==="className"&&(n[a]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Kj(e){var a,r;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Gj(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===w0}var Qj=Symbol.for("react.lazy");function Wp(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Qj&&"_payload"in e&&Yj(e._payload)}function Yj(e){return typeof e=="object"&&e!==null&&"then"in e}var Xj=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,Zj=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,$i=Vd[" use ".trim().toString()];function Jj(e){const t=e+"CollectionProvider",[n,a]=Ml(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=w=>{const{scope:b,children:p}=w,g=v.useRef(null),y=v.useRef(new Map).current;return l.jsx(r,{scope:b,itemMap:y,collectionRef:g,children:p})};i.displayName=t;const o=e+"CollectionSlot",c=Qo(o),u=v.forwardRef((w,b)=>{const{scope:p,children:g}=w,y=s(o,p),P=Dt(b,y.collectionRef);return l.jsx(c,{ref:P,children:g})});u.displayName=o;const d=e+"CollectionItemSlot",f="data-radix-collection-item",h=Qo(d),m=v.forwardRef((w,b)=>{const{scope:p,children:g,...y}=w,P=v.useRef(null),j=Dt(b,P),S=s(d,p);return v.useEffect(()=>(S.itemMap.set(P,{ref:P,...y}),()=>void S.itemMap.delete(P))),l.jsx(h,{[f]:"",ref:j,children:g})});m.displayName=d;function x(w){const b=s(e+"CollectionConsumer",w);return v.useCallback(()=>{const g=b.collectionRef.current;if(!g)return[];const y=Array.from(g.querySelectorAll(`[${f}]`));return Array.from(b.itemMap.values()).sort((S,C)=>y.indexOf(S.ref.current)-y.indexOf(C.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:u,ItemSlot:m},x,a]}var eS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],qe=eS.reduce((e,t)=>{const n=Qo(`Primitive.${t}`),a=v.forwardRef((r,s)=>{const{asChild:i,...o}=r,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(c,{...o,ref:s})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function b0(e,t){e&&pi.flushSync(()=>e.dispatchEvent(t))}function Zn(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var a;return(a=t.current)==null?void 0:a.call(t,...n)},[])}function tS(e,t=globalThis==null?void 0:globalThis.document){const n=Zn(e);v.useEffect(()=>{const a=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",a,{capture:!0}),()=>t.removeEventListener("keydown",a,{capture:!0})},[n,t])}var nS="DismissableLayer",Hu="dismissableLayer.update",aS="dismissableLayer.pointerDownOutside",rS="dismissableLayer.focusOutside",Kp,P0=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Df=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:i,onDismiss:o,...c}=e,u=v.useContext(P0),[d,f]=v.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=v.useState({}),x=Dt(t,C=>f(C)),w=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),p=w.indexOf(b),g=d?w.indexOf(d):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,P=g>=p,j=iS(C=>{const N=C.target,R=[...u.branches].some(E=>E.contains(N));!P||R||(r==null||r(C),i==null||i(C),C.defaultPrevented||o==null||o())},h),S=oS(C=>{const N=C.target;[...u.branches].some(E=>E.contains(N))||(s==null||s(C),i==null||i(C),C.defaultPrevented||o==null||o())},h);return tS(C=>{g===u.layers.size-1&&(a==null||a(C),!C.defaultPrevented&&o&&(C.preventDefault(),o()))},h),v.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Kp=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Gp(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(h.body.style.pointerEvents=Kp))}},[d,h,n,u]),v.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Gp())},[d,u]),v.useEffect(()=>{const C=()=>m({});return document.addEventListener(Hu,C),()=>document.removeEventListener(Hu,C)},[]),l.jsx(qe.div,{...c,ref:x,style:{pointerEvents:y?P?"auto":"none":void 0,...e.style},onFocusCapture:ve(e.onFocusCapture,S.onFocusCapture),onBlurCapture:ve(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:ve(e.onPointerDownCapture,j.onPointerDownCapture)})});Df.displayName=nS;var sS="DismissableLayerBranch",j0=v.forwardRef((e,t)=>{const n=v.useContext(P0),a=v.useRef(null),r=Dt(t,a);return v.useEffect(()=>{const s=a.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsx(qe.div,{...e,ref:r})});j0.displayName=sS;function iS(e,t=globalThis==null?void 0:globalThis.document){const n=Zn(e),a=v.useRef(!1),r=v.useRef(()=>{});return v.useEffect(()=>{const s=o=>{if(o.target&&!a.current){let c=function(){S0(aS,n,u,{discrete:!0})};const u={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=c,t.addEventListener("click",r.current,{once:!0})):c()}else t.removeEventListener("click",r.current);a.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>a.current=!0}}function oS(e,t=globalThis==null?void 0:globalThis.document){const n=Zn(e),a=v.useRef(!1);return v.useEffect(()=>{const r=s=>{s.target&&!a.current&&S0(rS,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function Gp(){const e=new CustomEvent(Hu);document.dispatchEvent(e)}function S0(e,t,n,{discrete:a}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),a?b0(r,s):r.dispatchEvent(s)}var lS=Df,cS=j0,un=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},uS="Portal",Mf=v.forwardRef((e,t)=>{var o;const{container:n,...a}=e,[r,s]=v.useState(!1);un(()=>s(!0),[]);const i=n||r&&((o=globalThis==null?void 0:globalThis.document)==null?void 0:o.body);return i?pi.createPortal(l.jsx(qe.div,{...a,ref:t}),i):null});Mf.displayName=uS;function dS(e,t){return v.useReducer((n,a)=>t[n][a]??n,e)}var Ol=e=>{const{present:t,children:n}=e,a=fS(t),r=typeof n=="function"?n({present:a.isPresent}):v.Children.only(n),s=hS(a.ref,pS(r));return typeof n=="function"||a.isPresent?v.cloneElement(r,{ref:s}):null};Ol.displayName="Presence";function fS(e){const[t,n]=v.useState(),a=v.useRef(null),r=v.useRef(e),s=v.useRef("none"),i=e?"mounted":"unmounted",[o,c]=dS(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const u=Ui(a.current);s.current=o==="mounted"?u:"none"},[o]),un(()=>{const u=a.current,d=r.current;if(d!==e){const h=s.current,m=Ui(u);e?c("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&h!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),un(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=m=>{const w=Ui(a.current).includes(CSS.escape(m.animationName));if(m.target===t&&w&&(c("ANIMATION_END"),!r.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},h=m=>{m.target===t&&(s.current=Ui(a.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:v.useCallback(u=>{a.current=u?getComputedStyle(u):null,n(u)},[])}}function Qp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function hS(...e){const t=v.useRef(e);return t.current=e,v.useCallback(n=>{const a=t.current;let r=!1;const s=a.map(i=>{const o=Qp(i,n);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let i=0;i<s.length;i++){const o=s[i];typeof o=="function"?o():Qp(a[i],null)}}},[])}function Ui(e){return(e==null?void 0:e.animationName)||"none"}function pS(e){var a,r;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var mS=Vd[" useInsertionEffect ".trim().toString()]||un;function gS({prop:e,defaultProp:t,onChange:n=()=>{},caller:a}){const[r,s,i]=xS({defaultProp:t,onChange:n}),o=e!==void 0,c=o?e:r;{const d=v.useRef(e!==void 0);v.useEffect(()=>{const f=d.current;f!==o&&console.warn(`${a} is changing from ${f?"controlled":"uncontrolled"} to ${o?"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.`),d.current=o},[o,a])}const u=v.useCallback(d=>{var f;if(o){const h=yS(d)?d(e):d;h!==e&&((f=i.current)==null||f.call(i,h))}else s(d)},[o,e,s,i]);return[c,u]}function xS({defaultProp:e,onChange:t}){const[n,a]=v.useState(e),r=v.useRef(n),s=v.useRef(t);return mS(()=>{s.current=t},[t]),v.useEffect(()=>{var i;r.current!==n&&((i=s.current)==null||i.call(s,n),r.current=n)},[n,r]),[n,a,s]}function yS(e){return typeof e=="function"}var vS=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"}),wS="VisuallyHidden",Ll=v.forwardRef((e,t)=>l.jsx(qe.span,{...e,ref:t,style:{...vS,...e.style}}));Ll.displayName=wS;var bS=Ll,Of="ToastProvider",[Lf,PS,jS]=Jj("Toast"),[C0]=Ml("Toast",[jS]),[SS,_l]=C0(Of),N0=e=>{const{__scopeToast:t,label:n="Notification",duration:a=5e3,swipeDirection:r="right",swipeThreshold:s=50,announcerContainer:i,children:o}=e,[c,u]=v.useState(null),[d,f]=v.useState(0),h=v.useRef(!1),m=v.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Of}\`. Expected non-empty \`string\`.`),l.jsx(Lf.Provider,{scope:t,children:l.jsx(SS,{scope:t,label:n,duration:a,swipeDirection:r,swipeThreshold:s,toastCount:d,viewport:c,onViewportChange:u,onToastAdd:v.useCallback(()=>f(x=>x+1),[]),onToastRemove:v.useCallback(()=>f(x=>x-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:m,announcerContainer:i,children:o})})};N0.displayName=Of;var k0="ToastViewport",CS=["F8"],$u="toast.viewportPause",Uu="toast.viewportResume",T0=v.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:a=CS,label:r="Notifications ({hotkey})",...s}=e,i=_l(k0,n),o=PS(n),c=v.useRef(null),u=v.useRef(null),d=v.useRef(null),f=v.useRef(null),h=Dt(t,f,i.onViewportChange),m=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=i.toastCount>0;v.useEffect(()=>{const b=p=>{var y;a.length!==0&&a.every(P=>p[P]||p.code===P)&&((y=f.current)==null||y.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[a]),v.useEffect(()=>{const b=c.current,p=f.current;if(x&&b&&p){const g=()=>{if(!i.isClosePausedRef.current){const S=new CustomEvent($u);p.dispatchEvent(S),i.isClosePausedRef.current=!0}},y=()=>{if(i.isClosePausedRef.current){const S=new CustomEvent(Uu);p.dispatchEvent(S),i.isClosePausedRef.current=!1}},P=S=>{!b.contains(S.relatedTarget)&&y()},j=()=>{b.contains(document.activeElement)||y()};return b.addEventListener("focusin",g),b.addEventListener("focusout",P),b.addEventListener("pointermove",g),b.addEventListener("pointerleave",j),window.addEventListener("blur",g),window.addEventListener("focus",y),()=>{b.removeEventListener("focusin",g),b.removeEventListener("focusout",P),b.removeEventListener("pointermove",g),b.removeEventListener("pointerleave",j),window.removeEventListener("blur",g),window.removeEventListener("focus",y)}}},[x,i.isClosePausedRef]);const w=v.useCallback(({tabbingDirection:b})=>{const g=o().map(y=>{const P=y.ref.current,j=[P,...FS(P)];return b==="forwards"?j:j.reverse()});return(b==="forwards"?g.reverse():g).flat()},[o]);return v.useEffect(()=>{const b=f.current;if(b){const p=g=>{var j,S,C;const y=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!y){const N=document.activeElement,R=g.shiftKey;if(g.target===b&&R){(j=u.current)==null||j.focus();return}const O=w({tabbingDirection:R?"backwards":"forwards"}),$=O.findIndex(M=>M===N);jc(O.slice($+1))?g.preventDefault():R?(S=u.current)==null||S.focus():(C=d.current)==null||C.focus()}};return b.addEventListener("keydown",p),()=>b.removeEventListener("keydown",p)}},[o,w]),l.jsxs(cS,{ref:c,role:"region","aria-label":r.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&l.jsx(qu,{ref:u,onFocusFromOutsideViewport:()=>{const b=w({tabbingDirection:"forwards"});jc(b)}}),l.jsx(Lf.Slot,{scope:n,children:l.jsx(qe.ol,{tabIndex:-1,...s,ref:h})}),x&&l.jsx(qu,{ref:d,onFocusFromOutsideViewport:()=>{const b=w({tabbingDirection:"backwards"});jc(b)}})]})});T0.displayName=k0;var E0="ToastFocusProxy",qu=v.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:a,...r}=e,s=_l(E0,n);return l.jsx(Ll,{tabIndex:0,...r,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const o=i.relatedTarget;!((u=s.viewport)!=null&&u.contains(o))&&a()}})});qu.displayName=E0;var mi="Toast",NS="toast.swipeStart",kS="toast.swipeMove",TS="toast.swipeCancel",ES="toast.swipeEnd",A0=v.forwardRef((e,t)=>{const{forceMount:n,open:a,defaultOpen:r,onOpenChange:s,...i}=e,[o,c]=gS({prop:a,defaultProp:r??!0,onChange:s,caller:mi});return l.jsx(Ol,{present:n||o,children:l.jsx(DS,{open:o,...i,ref:t,onClose:()=>c(!1),onPause:Zn(e.onPause),onResume:Zn(e.onResume),onSwipeStart:ve(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ve(e.onSwipeMove,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:ve(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ve(e.onSwipeEnd,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),c(!1)})})})});A0.displayName=mi;var[AS,RS]=C0(mi,{onClose(){}}),DS=v.forwardRef((e,t)=>{const{__scopeToast:n,type:a="foreground",duration:r,open:s,onClose:i,onEscapeKeyDown:o,onPause:c,onResume:u,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:h,onSwipeEnd:m,...x}=e,w=_l(mi,n),[b,p]=v.useState(null),g=Dt(t,M=>p(M)),y=v.useRef(null),P=v.useRef(null),j=r||w.duration,S=v.useRef(0),C=v.useRef(j),N=v.useRef(0),{onToastAdd:R,onToastRemove:E}=w,_=Zn(()=>{var U;(b==null?void 0:b.contains(document.activeElement))&&((U=w.viewport)==null||U.focus()),i()}),O=v.useCallback(M=>{!M||M===1/0||(window.clearTimeout(N.current),S.current=new Date().getTime(),N.current=window.setTimeout(_,M))},[_]);v.useEffect(()=>{const M=w.viewport;if(M){const U=()=>{O(C.current),u==null||u()},z=()=>{const Y=new Date().getTime()-S.current;C.current=C.current-Y,window.clearTimeout(N.current),c==null||c()};return M.addEventListener($u,z),M.addEventListener(Uu,U),()=>{M.removeEventListener($u,z),M.removeEventListener(Uu,U)}}},[w.viewport,j,c,u,O]),v.useEffect(()=>{s&&!w.isClosePausedRef.current&&O(j)},[s,j,w.isClosePausedRef,O]),v.useEffect(()=>(R(),()=>E()),[R,E]);const $=v.useMemo(()=>b?I0(b):null,[b]);return w.viewport?l.jsxs(l.Fragment,{children:[$&&l.jsx(MS,{__scopeToast:n,role:"status","aria-live":a==="foreground"?"assertive":"polite",children:$}),l.jsx(AS,{scope:n,onClose:_,children:pi.createPortal(l.jsx(Lf.ItemSlot,{scope:n,children:l.jsx(lS,{asChild:!0,onEscapeKeyDown:ve(o,()=>{w.isFocusedToastEscapeKeyDownRef.current||_(),w.isFocusedToastEscapeKeyDownRef.current=!1}),children:l.jsx(qe.li,{tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":w.swipeDirection,...x,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ve(e.onKeyDown,M=>{M.key==="Escape"&&(o==null||o(M.nativeEvent),M.nativeEvent.defaultPrevented||(w.isFocusedToastEscapeKeyDownRef.current=!0,_()))}),onPointerDown:ve(e.onPointerDown,M=>{M.button===0&&(y.current={x:M.clientX,y:M.clientY})}),onPointerMove:ve(e.onPointerMove,M=>{if(!y.current)return;const U=M.clientX-y.current.x,z=M.clientY-y.current.y,Y=!!P.current,k=["left","right"].includes(w.swipeDirection),D=["left","up"].includes(w.swipeDirection)?Math.min:Math.max,F=k?D(0,U):0,B=k?0:D(0,z),Z=M.pointerType==="touch"?10:2,yt={x:F,y:B},ot={originalEvent:M,delta:yt};Y?(P.current=yt,qi(kS,f,ot,{discrete:!1})):Yp(yt,w.swipeDirection,Z)?(P.current=yt,qi(NS,d,ot,{discrete:!1}),M.target.setPointerCapture(M.pointerId)):(Math.abs(U)>Z||Math.abs(z)>Z)&&(y.current=null)}),onPointerUp:ve(e.onPointerUp,M=>{const U=P.current,z=M.target;if(z.hasPointerCapture(M.pointerId)&&z.releasePointerCapture(M.pointerId),P.current=null,y.current=null,U){const Y=M.currentTarget,k={originalEvent:M,delta:U};Yp(U,w.swipeDirection,w.swipeThreshold)?qi(ES,m,k,{discrete:!0}):qi(TS,h,k,{discrete:!0}),Y.addEventListener("click",D=>D.preventDefault(),{once:!0})}})})})}),w.viewport)})]}):null}),MS=e=>{const{__scopeToast:t,children:n,...a}=e,r=_l(mi,t),[s,i]=v.useState(!1),[o,c]=v.useState(!1);return _S(()=>i(!0)),v.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),o?null:l.jsx(Mf,{asChild:!0,container:r.announcerContainer||void 0,children:l.jsx(Ll,{...a,children:s&&l.jsxs(l.Fragment,{children:[r.label," ",n]})})})},OS="ToastTitle",R0=v.forwardRef((e,t)=>{const{__scopeToast:n,...a}=e;return l.jsx(qe.div,{...a,ref:t})});R0.displayName=OS;var LS="ToastDescription",D0=v.forwardRef((e,t)=>{const{__scopeToast:n,...a}=e;return l.jsx(qe.div,{...a,ref:t})});D0.displayName=LS;var M0="ToastAction",O0=v.forwardRef((e,t)=>{const{altText:n,...a}=e;return n.trim()?l.jsx(_0,{altText:n,asChild:!0,children:l.jsx(_f,{...a,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${M0}\`. Expected non-empty \`string\`.`),null)});O0.displayName=M0;var L0="ToastClose",_f=v.forwardRef((e,t)=>{const{__scopeToast:n,...a}=e,r=RS(L0,n);return l.jsx(_0,{asChild:!0,children:l.jsx(qe.button,{type:"button",...a,ref:t,onClick:ve(e.onClick,r.onClose)})})});_f.displayName=L0;var _0=v.forwardRef((e,t)=>{const{__scopeToast:n,altText:a,...r}=e;return l.jsx(qe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":a||void 0,...r,ref:t})});function I0(e){const t=[];return Array.from(e.childNodes).forEach(a=>{if(a.nodeType===a.TEXT_NODE&&a.textContent&&t.push(a.textContent),IS(a)){const r=a.ariaHidden||a.hidden||a.style.display==="none",s=a.dataset.radixToastAnnounceExclude==="";if(!r)if(s){const i=a.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...I0(a))}}),t}function qi(e,t,n,{discrete:a}){const r=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),a?b0(r,s):r.dispatchEvent(s)}var Yp=(e,t,n=0)=>{const a=Math.abs(e.x),r=Math.abs(e.y),s=a>r;return t==="left"||t==="right"?s&&a>n:!s&&r>n};function _S(e=()=>{}){const t=Zn(e);un(()=>{let n=0,a=0;return n=window.requestAnimationFrame(()=>a=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(a)}},[t])}function IS(e){return e.nodeType===e.ELEMENT_NODE}function FS(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const r=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||r?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function jc(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var zS=N0,F0=T0,z0=A0,V0=R0,B0=D0,H0=O0,$0=_f;function U0(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=U0(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function q0(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=U0(e))&&(a&&(a+=" "),a+=t);return a}const Xp=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Zp=q0,If=(e,t)=>n=>{var a;if((t==null?void 0:t.variants)==null)return Zp(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:s}=t,i=Object.keys(r).map(u=>{const d=n==null?void 0:n[u],f=s==null?void 0:s[u];if(d===null)return null;const h=Xp(d)||Xp(f);return r[u][h]}),o=n&&Object.entries(n).reduce((u,d)=>{let[f,h]=d;return h===void 0||(u[f]=h),u},{}),c=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((u,d)=>{let{class:f,className:h,...m}=d;return Object.entries(m).every(x=>{let[w,b]=x;return Array.isArray(b)?b.includes({...s,...o}[w]):{...s,...o}[w]===b})?[...u,f,h]:u},[]);return Zp(e,i,c,n==null?void 0:n.class,n==null?void 0:n.className)};/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const VS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),BS=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,a)=>a?a.toUpperCase():n.toLowerCase()),Jp=e=>{const t=BS(e);return t.charAt(0).toUpperCase()+t.slice(1)},W0=(...e)=>e.filter((t,n,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===n).join(" ").trim(),HS=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var $S={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"};/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const US=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:r="",children:s,iconNode:i,...o},c)=>v.createElement("svg",{ref:c,...$S,width:t,height:t,stroke:e,strokeWidth:a?Number(n)*24/Number(t):n,className:W0("lucide",r),...!s&&!HS(o)&&{"aria-hidden":"true"},...o},[...i.map(([u,d])=>v.createElement(u,d)),...Array.isArray(s)?s:[s]]));/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Q=(e,t)=>{const n=v.forwardRef(({className:a,...r},s)=>v.createElement(US,{ref:s,iconNode:t,className:W0(`lucide-${VS(Jp(e))}`,`lucide-${e}`,a),...r}));return n.displayName=Jp(e),n};/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const qS=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],em=Q("arrow-left",qS);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const WS=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],ze=Q("arrow-right",WS);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const KS=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],Yo=Q("book-open",KS);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const GS=[["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"}]],QS=Q("building",GS);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const YS=[["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"}]],XS=Q("calendar",YS);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ZS=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Wu=Q("chevron-down",ZS);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const JS=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],e2=Q("chevron-right",JS);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const t2=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Or=Q("circle-check-big",t2);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const n2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Xo=Q("clock",n2);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const a2=[["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"}]],r2=Q("dollar-sign",a2);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const s2=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],i2=Q("facebook",s2);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const o2=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],l2=Q("funnel",o2);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const c2=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],$r=Q("graduation-cap",c2);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const u2=[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]],Jn=Q("handshake",u2);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const d2=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]],je=Q("heart",d2);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const f2=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],za=Q("house",f2);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const h2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],p2=Q("info",h2);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const m2=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],g2=Q("instagram",m2);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const x2=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],y2=Q("layers",x2);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const v2=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],gi=Q("mail",v2);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const w2=[["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"}]],Zo=Q("map-pin",w2);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const b2=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],P2=Q("menu",b2);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const j2=[["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"}]],Ys=Q("phone",j2);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const S2=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],C2=Q("quote",S2);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const N2=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Ku=Q("refresh-cw",N2);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const k2=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],T2=Q("search",k2);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const E2=[["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"}]],A2=Q("send",E2);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const R2=[["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"}]],Va=Q("shield",R2);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const D2=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],K0=Q("star",D2);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const M2=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],tm=Q("triangle-alert",M2);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const O2=[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]],L2=Q("twitter",O2);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _2=[["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"}]],I2=Q("user",_2);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const F2=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Lr=Q("users",F2);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const z2=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],G0=Q("x",z2);/**
* @license lucide-react v0.507.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const V2=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],B2=Q("youtube",V2),Ff="-",H2=e=>{const t=U2(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{const o=i.split(Ff);return o[0]===""&&o.length!==1&&o.shift(),Q0(o,t)||$2(i)},getConflictingClassGroupIds:(i,o)=>{const c=n[i]||[];return o&&a[i]?[...c,...a[i]]:c}}},Q0=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],a=t.nextPart.get(n),r=a?Q0(e.slice(1),a):void 0;if(r)return r;if(t.validators.length===0)return;const s=e.join(Ff);return(i=t.validators.find(({validator:o})=>o(s)))==null?void 0:i.classGroupId},nm=/^\[(.+)\]$/,$2=e=>{if(nm.test(e)){const t=nm.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},U2=e=>{const{theme:t,prefix:n}=e,a={nextPart:new Map,validators:[]};return W2(Object.entries(e.classGroups),n).forEach(([s,i])=>{Gu(i,a,s,t)}),a},Gu=(e,t,n,a)=>{e.forEach(r=>{if(typeof r=="string"){const s=r===""?t:am(t,r);s.classGroupId=n;return}if(typeof r=="function"){if(q2(r)){Gu(r(a),t,n,a);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([s,i])=>{Gu(i,am(t,s),n,a)})})},am=(e,t)=>{let n=e;return t.split(Ff).forEach(a=>{n.nextPart.has(a)||n.nextPart.set(a,{nextPart:new Map,validators:[]}),n=n.nextPart.get(a)}),n},q2=e=>e.isThemeGetter,W2=(e,t)=>t?e.map(([n,a])=>{const r=a.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,o])=>[t+i,o])):s);return[n,r]}):e,K2=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,a=new Map;const r=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,a=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=a.get(s))!==void 0)return r(s,i),i},set(s,i){n.has(s)?n.set(s,i):r(s,i)}}},Y0="!",G2=e=>{const{separator:t,experimentalParseClassName:n}=e,a=t.length===1,r=t[0],s=t.length,i=o=>{const c=[];let u=0,d=0,f;for(let b=0;b<o.length;b++){let p=o[b];if(u===0){if(p===r&&(a||o.slice(b,b+s)===t)){c.push(o.slice(d,b)),d=b+s;continue}if(p==="/"){f=b;continue}}p==="["?u++:p==="]"&&u--}const h=c.length===0?o:o.substring(d),m=h.startsWith(Y0),x=m?h.substring(1):h,w=f&&f>d?f-d:void 0;return{modifiers:c,hasImportantModifier:m,baseClassName:x,maybePostfixModifierPosition:w}};return n?o=>n({className:o,parseClassName:i}):i},Q2=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(a=>{a[0]==="["?(t.push(...n.sort(),a),n=[]):n.push(a)}),t.push(...n.sort()),t},Y2=e=>({cache:K2(e.cacheSize),parseClassName:G2(e),...H2(e)}),X2=/\s+/,Z2=(e,t)=>{const{parseClassName:n,getClassGroupId:a,getConflictingClassGroupIds:r}=t,s=[],i=e.trim().split(X2);let o="";for(let c=i.length-1;c>=0;c-=1){const u=i[c],{modifiers:d,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:m}=n(u);let x=!!m,w=a(x?h.substring(0,m):h);if(!w){if(!x){o=u+(o.length>0?" "+o:o);continue}if(w=a(h),!w){o=u+(o.length>0?" "+o:o);continue}x=!1}const b=Q2(d).join(":"),p=f?b+Y0:b,g=p+w;if(s.includes(g))continue;s.push(g);const y=r(w,x);for(let P=0;P<y.length;++P){const j=y[P];s.push(p+j)}o=u+(o.length>0?" "+o:o)}return o};function J2(){let e=0,t,n,a="";for(;e<arguments.length;)(t=arguments[e++])&&(n=X0(t))&&(a&&(a+=" "),a+=n);return a}const X0=e=>{if(typeof e=="string")return e;let t,n="";for(let a=0;a<e.length;a++)e[a]&&(t=X0(e[a]))&&(n&&(n+=" "),n+=t);return n};function eC(e,...t){let n,a,r,s=i;function i(c){const u=t.reduce((d,f)=>f(d),e());return n=Y2(u),a=n.cache.get,r=n.cache.set,s=o,o(c)}function o(c){const u=a(c);if(u)return u;const d=Z2(c,n);return r(c,d),d}return function(){return s(J2.apply(null,arguments))}}const ae=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Z0=/^\[(?:([a-z-]+):)?(.+)\]$/i,tC=/^\d+\/\d+$/,nC=new Set(["px","full","screen"]),aC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,rC=/\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$/,sC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,iC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,oC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,en=e=>pr(e)||nC.has(e)||tC.test(e),Pn=e=>Ur(e,"length",mC),pr=e=>!!e&&!Number.isNaN(Number(e)),Sc=e=>Ur(e,"number",pr),os=e=>!!e&&Number.isInteger(Number(e)),lC=e=>e.endsWith("%")&&pr(e.slice(0,-1)),q=e=>Z0.test(e),jn=e=>aC.test(e),cC=new Set(["length","size","percentage"]),uC=e=>Ur(e,cC,J0),dC=e=>Ur(e,"position",J0),fC=new Set(["image","url"]),hC=e=>Ur(e,fC,xC),pC=e=>Ur(e,"",gC),ls=()=>!0,Ur=(e,t,n)=>{const a=Z0.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):n(a[2]):!1},mC=e=>rC.test(e)&&!sC.test(e),J0=()=>!1,gC=e=>iC.test(e),xC=e=>oC.test(e),yC=()=>{const e=ae("colors"),t=ae("spacing"),n=ae("blur"),a=ae("brightness"),r=ae("borderColor"),s=ae("borderRadius"),i=ae("borderSpacing"),o=ae("borderWidth"),c=ae("contrast"),u=ae("grayscale"),d=ae("hueRotate"),f=ae("invert"),h=ae("gap"),m=ae("gradientColorStops"),x=ae("gradientColorStopPositions"),w=ae("inset"),b=ae("margin"),p=ae("opacity"),g=ae("padding"),y=ae("saturate"),P=ae("scale"),j=ae("sepia"),S=ae("skew"),C=ae("space"),N=ae("translate"),R=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto",q,t],O=()=>[q,t],$=()=>["",en,Pn],M=()=>["auto",pr,q],U=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>["start","end","center","between","around","evenly","stretch"],D=()=>["","0",q],F=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>[pr,q];return{cacheSize:500,separator:":",theme:{colors:[ls],spacing:[en,Pn],blur:["none","",jn,q],brightness:B(),borderColor:[e],borderRadius:["none","","full",jn,q],borderSpacing:O(),borderWidth:$(),contrast:B(),grayscale:D(),hueRotate:B(),invert:D(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[lC,Pn],inset:_(),margin:_(),opacity:B(),padding:O(),saturate:B(),scale:B(),sepia:D(),skew:B(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",q]}],container:["container"],columns:[{columns:[jn]}],"break-after":[{"break-after":F()}],"break-before":[{"break-before":F()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...U(),q]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",os,q]}],basis:[{basis:_()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",q]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",os,q]}],"grid-cols":[{"grid-cols":[ls]}],"col-start-end":[{col:["auto",{span:["full",os,q]},q]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[ls]}],"row-start-end":[{row:["auto",{span:[os,q]},q]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",q]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...k()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...k(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...k(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",q,t]}],"min-w":[{"min-w":[q,t,"min","max","fit"]}],"max-w":[{"max-w":[q,t,"none","full","min","max","fit","prose",{screen:[jn]},jn]}],h:[{h:[q,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[q,t,"auto","min","max","fit"]}],"font-size":[{text:["base",jn,Pn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Sc]}],"font-family":[{font:[ls]}],"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:["tighter","tight","normal","wide","wider","widest",q]}],"line-clamp":[{"line-clamp":["none",pr,Sc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",en,q]}],"list-image":[{"list-image":["none",q]}],"list-style-type":[{list:["none","disc","decimal",q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[p]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[p]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",en,Pn]}],"underline-offset":[{"underline-offset":["auto",en,q]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[p]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...U(),dC]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",uC]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},hC]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[p]}],"border-style":[{border:[...z(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[p]}],"divide-style":[{divide:z()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...z()]}],"outline-offset":[{"outline-offset":[en,q]}],"outline-w":[{outline:[en,Pn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[p]}],"ring-offset-w":[{"ring-offset":[en,Pn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",jn,pC]}],"shadow-color":[{shadow:[ls]}],opacity:[{opacity:[p]}],"mix-blend":[{"mix-blend":[...Y(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Y()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[a]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",jn,q]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[y]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[p]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",q]}],duration:[{duration:B()}],ease:[{ease:["linear","in","out","in-out",q]}],delay:[{delay:B()}],animate:[{animate:["none","spin","ping","pulse","bounce",q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[P]}],"scale-x":[{"scale-x":[P]}],"scale-y":[{"scale-y":[P]}],rotate:[{rotate:[os,q]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",q]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",q]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"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",q]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[en,Pn,Sc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},vC=eC(yC);function Ce(...e){return vC(q0(e))}const wC=zS,ev=v.forwardRef(({className:e,...t},n)=>l.jsx(F0,{ref:n,className:Ce("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),...t}));ev.displayName=F0.displayName;const bC=If("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 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"}}),tv=v.forwardRef(({className:e,variant:t,...n},a)=>l.jsx(z0,{ref:a,className:Ce(bC({variant:t}),e),...n}));tv.displayName=z0.displayName;const PC=v.forwardRef(({className:e,...t},n)=>l.jsx(H0,{ref:n,className:Ce("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring 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}));PC.displayName=H0.displayName;const nv=v.forwardRef(({className:e,...t},n)=>l.jsx($0,{ref:n,className:Ce("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 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:l.jsx(G0,{className:"h-4 w-4"})}));nv.displayName=$0.displayName;const av=v.forwardRef(({className:e,...t},n)=>l.jsx(V0,{ref:n,className:Ce("text-sm font-semibold [&+div]:text-xs",e),...t}));av.displayName=V0.displayName;const rv=v.forwardRef(({className:e,...t},n)=>l.jsx(B0,{ref:n,className:Ce("text-sm opacity-90",e),...t}));rv.displayName=B0.displayName;function jC(){const{toasts:e}=Dl();return l.jsxs(wC,{children:[e.map(function({id:t,title:n,description:a,action:r,...s}){return l.jsxs(tv,{...s,children:[l.jsxs("div",{className:"grid gap-1",children:[n&&l.jsx(av,{children:n}),a&&l.jsx(rv,{children:a})]}),r,l.jsx(nv,{})]},t)}),l.jsx(ev,{})]})}const SC=["top","right","bottom","left"],ea=Math.min,Je=Math.max,Jo=Math.round,Wi=Math.floor,Gt=e=>({x:e,y:e}),CC={left:"right",right:"left",bottom:"top",top:"bottom"};function Qu(e,t,n){return Je(e,ea(t,n))}function gn(e,t){return typeof e=="function"?e(t):e}function xn(e){return e.split("-")[0]}function qr(e){return e.split("-")[1]}function zf(e){return e==="x"?"y":"x"}function Vf(e){return e==="y"?"height":"width"}function qt(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Bf(e){return zf(qt(e))}function NC(e,t,n){n===void 0&&(n=!1);const a=qr(e),r=Bf(e),s=Vf(r);let i=r==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=el(i)),[i,el(i)]}function kC(e){const t=el(e);return[Yu(e),t,Yu(t)]}function Yu(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const rm=["left","right"],sm=["right","left"],TC=["top","bottom"],EC=["bottom","top"];function AC(e,t,n){switch(e){case"top":case"bottom":return n?t?sm:rm:t?rm:sm;case"left":case"right":return t?TC:EC;default:return[]}}function RC(e,t,n,a){const r=qr(e);let s=AC(xn(e),n==="start",a);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(Yu)))),s}function el(e){const t=xn(e);return CC[t]+e.slice(t.length)}function DC(e){return{top:0,right:0,bottom:0,left:0,...e}}function sv(e){return typeof e!="number"?DC(e):{top:e,right:e,bottom:e,left:e}}function tl(e){const{x:t,y:n,width:a,height:r}=e;return{width:a,height:r,top:n,left:t,right:t+a,bottom:n+r,x:t,y:n}}function im(e,t,n){let{reference:a,floating:r}=e;const s=qt(t),i=Bf(t),o=Vf(i),c=xn(t),u=s==="y",d=a.x+a.width/2-r.width/2,f=a.y+a.height/2-r.height/2,h=a[o]/2-r[o]/2;let m;switch(c){case"top":m={x:d,y:a.y-r.height};break;case"bottom":m={x:d,y:a.y+a.height};break;case"right":m={x:a.x+a.width,y:f};break;case"left":m={x:a.x-r.width,y:f};break;default:m={x:a.x,y:a.y}}switch(qr(t)){case"start":m[i]-=h*(n&&u?-1:1);break;case"end":m[i]+=h*(n&&u?-1:1);break}return m}async function MC(e,t){var n;t===void 0&&(t={});const{x:a,y:r,platform:s,rects:i,elements:o,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=gn(t,e),x=sv(m),b=o[h?f==="floating"?"reference":"floating":f],p=tl(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(o.floating)),boundary:u,rootBoundary:d,strategy:c})),g=f==="floating"?{x:a,y:r,width:i.floating.width,height:i.floating.height}:i.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(o.floating)),P=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},j=tl(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:y,strategy:c}):g);return{top:(p.top-j.top+x.top)/P.y,bottom:(j.bottom-p.bottom+x.bottom)/P.y,left:(p.left-j.left+x.left)/P.x,right:(j.right-p.right+x.right)/P.x}}const OC=50,LC=async(e,t,n)=>{const{placement:a="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,o=i.detectOverflow?i:{...i,detectOverflow:MC},c=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:f}=im(u,a,c),h=a,m=0;const x={};for(let w=0;w<s.length;w++){const b=s[w];if(!b)continue;const{name:p,fn:g}=b,{x:y,y:P,data:j,reset:S}=await g({x:d,y:f,initialPlacement:a,placement:h,strategy:r,middlewareData:x,rects:u,platform:o,elements:{reference:e,floating:t}});d=y??d,f=P??f,x[p]={...x[p],...j},S&&m<OC&&(m++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(u=S.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:d,y:f}=im(u,h,c)),w=-1)}return{x:d,y:f,placement:h,strategy:r,middlewareData:x}},_C=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:r,rects:s,platform:i,elements:o,middlewareData:c}=t,{element:u,padding:d=0}=gn(e,t)||{};if(u==null)return{};const f=sv(d),h={x:n,y:a},m=Bf(r),x=Vf(m),w=await i.getDimensions(u),b=m==="y",p=b?"top":"left",g=b?"bottom":"right",y=b?"clientHeight":"clientWidth",P=s.reference[x]+s.reference[m]-h[m]-s.floating[x],j=h[m]-s.reference[m],S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let C=S?S[y]:0;(!C||!await(i.isElement==null?void 0:i.isElement(S)))&&(C=o.floating[y]||s.floating[x]);const N=P/2-j/2,R=C/2-w[x]/2-1,E=ea(f[p],R),_=ea(f[g],R),O=E,$=C-w[x]-_,M=C/2-w[x]/2+N,U=Qu(O,M,$),z=!c.arrow&&qr(r)!=null&&M!==U&&s.reference[x]/2-(M<O?E:_)-w[x]/2<0,Y=z?M<O?M-O:M-$:0;return{[m]:h[m]+Y,data:{[m]:U,centerOffset:M-U-Y,...z&&{alignmentOffset:Y}},reset:z}}}),IC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,a;const{placement:r,middlewareData:s,rects:i,initialPlacement:o,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:w=!0,...b}=gn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const p=xn(r),g=qt(o),y=xn(o)===o,P=await(c.isRTL==null?void 0:c.isRTL(u.floating)),j=h||(y||!w?[el(o)]:kC(o)),S=x!=="none";!h&&S&&j.push(...RC(o,w,x,P));const C=[o,...j],N=await c.detectOverflow(t,b),R=[];let E=((a=s.flip)==null?void 0:a.overflows)||[];if(d&&R.push(N[p]),f){const M=NC(r,i,P);R.push(N[M[0]],N[M[1]])}if(E=[...E,{placement:r,overflows:R}],!R.every(M=>M<=0)){var _,O;const M=(((_=s.flip)==null?void 0:_.index)||0)+1,U=C[M];if(U&&(!(f==="alignment"?g!==qt(U):!1)||E.every(k=>qt(k.placement)===g?k.overflows[0]>0:!0)))return{data:{index:M,overflows:E},reset:{placement:U}};let z=(O=E.filter(Y=>Y.overflows[0]<=0).sort((Y,k)=>Y.overflows[1]-k.overflows[1])[0])==null?void 0:O.placement;if(!z)switch(m){case"bestFit":{var $;const Y=($=E.filter(k=>{if(S){const D=qt(k.placement);return D===g||D==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(D=>D>0).reduce((D,F)=>D+F,0)]).sort((k,D)=>k[1]-D[1])[0])==null?void 0:$[0];Y&&(z=Y);break}case"initialPlacement":z=o;break}if(r!==z)return{reset:{placement:z}}}return{}}}};function om(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function lm(e){return SC.some(t=>e[t]>=0)}const FC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:a}=t,{strategy:r="referenceHidden",...s}=gn(e,t);switch(r){case"referenceHidden":{const i=await a.detectOverflow(t,{...s,elementContext:"reference"}),o=om(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:lm(o)}}}case"escaped":{const i=await a.detectOverflow(t,{...s,altBoundary:!0}),o=om(i,n.floating);return{data:{escapedOffsets:o,escaped:lm(o)}}}default:return{}}}}},iv=new Set(["left","top"]);async function zC(e,t){const{placement:n,platform:a,elements:r}=e,s=await(a.isRTL==null?void 0:a.isRTL(r.floating)),i=xn(n),o=qr(n),c=qt(n)==="y",u=iv.has(i)?-1:1,d=s&&c?-1:1,f=gn(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:x}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return o&&typeof x=="number"&&(m=o==="end"?x*-1:x),c?{x:m*d,y:h*u}:{x:h*u,y:m*d}}const VC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:r,y:s,placement:i,middlewareData:o}=t,c=await zC(t,e);return i===((n=o.offset)==null?void 0:n.placement)&&(a=o.arrow)!=null&&a.alignmentOffset?{}:{x:r+c.x,y:s+c.y,data:{...c,placement:i}}}}},BC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:r,platform:s}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:c={fn:p=>{let{x:g,y}=p;return{x:g,y}}},...u}=gn(e,t),d={x:n,y:a},f=await s.detectOverflow(t,u),h=qt(xn(r)),m=zf(h);let x=d[m],w=d[h];if(i){const p=m==="y"?"top":"left",g=m==="y"?"bottom":"right",y=x+f[p],P=x-f[g];x=Qu(y,x,P)}if(o){const p=h==="y"?"top":"left",g=h==="y"?"bottom":"right",y=w+f[p],P=w-f[g];w=Qu(y,w,P)}const b=c.fn({...t,[m]:x,[h]:w});return{...b,data:{x:b.x-n,y:b.y-a,enabled:{[m]:i,[h]:o}}}}}},HC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:a,placement:r,rects:s,middlewareData:i}=t,{offset:o=0,mainAxis:c=!0,crossAxis:u=!0}=gn(e,t),d={x:n,y:a},f=qt(r),h=zf(f);let m=d[h],x=d[f];const w=gn(o,t),b=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(c){const y=h==="y"?"height":"width",P=s.reference[h]-s.floating[y]+b.mainAxis,j=s.reference[h]+s.reference[y]-b.mainAxis;m<P?m=P:m>j&&(m=j)}if(u){var p,g;const y=h==="y"?"width":"height",P=iv.has(xn(r)),j=s.reference[f]-s.floating[y]+(P&&((p=i.offset)==null?void 0:p[f])||0)+(P?0:b.crossAxis),S=s.reference[f]+s.reference[y]+(P?0:((g=i.offset)==null?void 0:g[f])||0)-(P?b.crossAxis:0);x<j?x=j:x>S&&(x=S)}return{[h]:m,[f]:x}}}},$C=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,a;const{placement:r,rects:s,platform:i,elements:o}=t,{apply:c=()=>{},...u}=gn(e,t),d=await i.detectOverflow(t,u),f=xn(r),h=qr(r),m=qt(r)==="y",{width:x,height:w}=s.floating;let b,p;f==="top"||f==="bottom"?(b=f,p=h===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(p=f,b=h==="end"?"top":"bottom");const g=w-d.top-d.bottom,y=x-d.left-d.right,P=ea(w-d[b],g),j=ea(x-d[p],y),S=!t.middlewareData.shift;let C=P,N=j;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=y),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(C=g),S&&!h){const E=Je(d.left,0),_=Je(d.right,0),O=Je(d.top,0),$=Je(d.bottom,0);m?N=x-2*(E!==0||_!==0?E+_:Je(d.left,d.right)):C=w-2*(O!==0||$!==0?O+$:Je(d.top,d.bottom))}await c({...t,availableWidth:N,availableHeight:C});const R=await i.getDimensions(o.floating);return x!==R.width||w!==R.height?{reset:{rects:!0}}:{}}}};function Il(){return typeof window<"u"}function Wr(e){return ov(e)?(e.nodeName||"").toLowerCase():"#document"}function nt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xt(e){var t;return(t=(ov(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ov(e){return Il()?e instanceof Node||e instanceof nt(e).Node:!1}function Mt(e){return Il()?e instanceof Element||e instanceof nt(e).Element:!1}function vn(e){return Il()?e instanceof HTMLElement||e instanceof nt(e).HTMLElement:!1}function cm(e){return!Il()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof nt(e).ShadowRoot}function xi(e){const{overflow:t,overflowX:n,overflowY:a,display:r}=Ot(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&r!=="inline"&&r!=="contents"}function UC(e){return/^(table|td|th)$/.test(Wr(e))}function Fl(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const qC=/transform|translate|scale|rotate|perspective|filter/,WC=/paint|layout|strict|content/,ca=e=>!!e&&e!=="none";let Cc;function Hf(e){const t=Mt(e)?Ot(e):e;return ca(t.transform)||ca(t.translate)||ca(t.scale)||ca(t.rotate)||ca(t.perspective)||!$f()&&(ca(t.backdropFilter)||ca(t.filter))||qC.test(t.willChange||"")||WC.test(t.contain||"")}function KC(e){let t=ta(e);for(;vn(t)&&!_r(t);){if(Hf(t))return t;if(Fl(t))return null;t=ta(t)}return null}function $f(){return Cc==null&&(Cc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Cc}function _r(e){return/^(html|body|#document)$/.test(Wr(e))}function Ot(e){return nt(e).getComputedStyle(e)}function zl(e){return Mt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ta(e){if(Wr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||cm(e)&&e.host||Xt(e);return cm(t)?t.host:t}function lv(e){const t=ta(e);return _r(t)?e.ownerDocument?e.ownerDocument.body:e.body:vn(t)&&xi(t)?t:lv(t)}function Xs(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=lv(e),s=r===((a=e.ownerDocument)==null?void 0:a.body),i=nt(r);if(s){const o=Xu(i);return t.concat(i,i.visualViewport||[],xi(r)?r:[],o&&n?Xs(o):[])}else return t.concat(r,Xs(r,[],n))}function Xu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function cv(e){const t=Ot(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const r=vn(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:a,o=Jo(n)!==s||Jo(a)!==i;return o&&(n=s,a=i),{width:n,height:a,$:o}}function Uf(e){return Mt(e)?e:e.contextElement}function mr(e){const t=Uf(e);if(!vn(t))return Gt(1);const n=t.getBoundingClientRect(),{width:a,height:r,$:s}=cv(t);let i=(s?Jo(n.width):n.width)/a,o=(s?Jo(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!o||!Number.isFinite(o))&&(o=1),{x:i,y:o}}const GC=Gt(0);function uv(e){const t=nt(e);return!$f()||!t.visualViewport?GC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function QC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==nt(e)?!1:t}function _a(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=Uf(e);let i=Gt(1);t&&(a?Mt(a)&&(i=mr(a)):i=mr(e));const o=QC(s,n,a)?uv(s):Gt(0);let c=(r.left+o.x)/i.x,u=(r.top+o.y)/i.y,d=r.width/i.x,f=r.height/i.y;if(s){const h=nt(s),m=a&&Mt(a)?nt(a):a;let x=h,w=Xu(x);for(;w&&a&&m!==x;){const b=mr(w),p=w.getBoundingClientRect(),g=Ot(w),y=p.left+(w.clientLeft+parseFloat(g.paddingLeft))*b.x,P=p.top+(w.clientTop+parseFloat(g.paddingTop))*b.y;c*=b.x,u*=b.y,d*=b.x,f*=b.y,c+=y,u+=P,x=nt(w),w=Xu(x)}}return tl({width:d,height:f,x:c,y:u})}function Vl(e,t){const n=zl(e).scrollLeft;return t?t.left+n:_a(Xt(e)).left+n}function dv(e,t){const n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-Vl(e,n),r=n.top+t.scrollTop;return{x:a,y:r}}function YC(e){let{elements:t,rect:n,offsetParent:a,strategy:r}=e;const s=r==="fixed",i=Xt(a),o=t?Fl(t.floating):!1;if(a===i||o&&s)return n;let c={scrollLeft:0,scrollTop:0},u=Gt(1);const d=Gt(0),f=vn(a);if((f||!f&&!s)&&((Wr(a)!=="body"||xi(i))&&(c=zl(a)),f)){const m=_a(a);u=mr(a),d.x=m.x+a.clientLeft,d.y=m.y+a.clientTop}const h=i&&!f&&!s?dv(i,c):Gt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+h.x,y:n.y*u.y-c.scrollTop*u.y+d.y+h.y}}function XC(e){return Array.from(e.getClientRects())}function ZC(e){const t=Xt(e),n=zl(e),a=e.ownerDocument.body,r=Je(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),s=Je(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let i=-n.scrollLeft+Vl(e);const o=-n.scrollTop;return Ot(a).direction==="rtl"&&(i+=Je(t.clientWidth,a.clientWidth)-r),{width:r,height:s,x:i,y:o}}const um=25;function JC(e,t){const n=nt(e),a=Xt(e),r=n.visualViewport;let s=a.clientWidth,i=a.clientHeight,o=0,c=0;if(r){s=r.width,i=r.height;const d=$f();(!d||d&&t==="fixed")&&(o=r.offsetLeft,c=r.offsetTop)}const u=Vl(a);if(u<=0){const d=a.ownerDocument,f=d.body,h=getComputedStyle(f),m=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,x=Math.abs(a.clientWidth-f.clientWidth-m);x<=um&&(s-=x)}else u<=um&&(s+=u);return{width:s,height:i,x:o,y:c}}function eN(e,t){const n=_a(e,!0,t==="fixed"),a=n.top+e.clientTop,r=n.left+e.clientLeft,s=vn(e)?mr(e):Gt(1),i=e.clientWidth*s.x,o=e.clientHeight*s.y,c=r*s.x,u=a*s.y;return{width:i,height:o,x:c,y:u}}function dm(e,t,n){let a;if(t==="viewport")a=JC(e,n);else if(t==="document")a=ZC(Xt(e));else if(Mt(t))a=eN(t,n);else{const r=uv(e);a={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return tl(a)}function fv(e,t){const n=ta(e);return n===t||!Mt(n)||_r(n)?!1:Ot(n).position==="fixed"||fv(n,t)}function tN(e,t){const n=t.get(e);if(n)return n;let a=Xs(e,[],!1).filter(o=>Mt(o)&&Wr(o)!=="body"),r=null;const s=Ot(e).position==="fixed";let i=s?ta(e):e;for(;Mt(i)&&!_r(i);){const o=Ot(i),c=Hf(i);!c&&o.position==="fixed"&&(r=null),(s?!c&&!r:!c&&o.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||xi(i)&&!c&&fv(e,i))?a=a.filter(d=>d!==i):r=o,i=ta(i)}return t.set(e,a),a}function nN(e){let{element:t,boundary:n,rootBoundary:a,strategy:r}=e;const i=[...n==="clippingAncestors"?Fl(t)?[]:tN(t,this._c):[].concat(n),a],o=dm(t,i[0],r);let c=o.top,u=o.right,d=o.bottom,f=o.left;for(let h=1;h<i.length;h++){const m=dm(t,i[h],r);c=Je(m.top,c),u=ea(m.right,u),d=ea(m.bottom,d),f=Je(m.left,f)}return{width:u-f,height:d-c,x:f,y:c}}function aN(e){const{width:t,height:n}=cv(e);return{width:t,height:n}}function rN(e,t,n){const a=vn(t),r=Xt(t),s=n==="fixed",i=_a(e,!0,s,t);let o={scrollLeft:0,scrollTop:0};const c=Gt(0);function u(){c.x=Vl(r)}if(a||!a&&!s)if((Wr(t)!=="body"||xi(r))&&(o=zl(t)),a){const m=_a(t,!0,s,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else r&&u();s&&!a&&r&&u();const d=r&&!a&&!s?dv(r,o):Gt(0),f=i.left+o.scrollLeft-c.x-d.x,h=i.top+o.scrollTop-c.y-d.y;return{x:f,y:h,width:i.width,height:i.height}}function Nc(e){return Ot(e).position==="static"}function fm(e,t){if(!vn(e)||Ot(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Xt(e)===n&&(n=n.ownerDocument.body),n}function hv(e,t){const n=nt(e);if(Fl(e))return n;if(!vn(e)){let r=ta(e);for(;r&&!_r(r);){if(Mt(r)&&!Nc(r))return r;r=ta(r)}return n}let a=fm(e,t);for(;a&&UC(a)&&Nc(a);)a=fm(a,t);return a&&_r(a)&&Nc(a)&&!Hf(a)?n:a||KC(e)||n}const sN=async function(e){const t=this.getOffsetParent||hv,n=this.getDimensions,a=await n(e.floating);return{reference:rN(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function iN(e){return Ot(e).direction==="rtl"}const oN={convertOffsetParentRelativeRectToViewportRelativeRect:YC,getDocumentElement:Xt,getClippingRect:nN,getOffsetParent:hv,getElementRects:sN,getClientRects:XC,getDimensions:aN,getScale:mr,isElement:Mt,isRTL:iN};function pv(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function lN(e,t){let n=null,a;const r=Xt(e);function s(){var o;clearTimeout(a),(o=n)==null||o.disconnect(),n=null}function i(o,c){o===void 0&&(o=!1),c===void 0&&(c=1),s();const u=e.getBoundingClientRect(),{left:d,top:f,width:h,height:m}=u;if(o||t(),!h||!m)return;const x=Wi(f),w=Wi(r.clientWidth-(d+h)),b=Wi(r.clientHeight-(f+m)),p=Wi(d),y={rootMargin:-x+"px "+-w+"px "+-b+"px "+-p+"px",threshold:Je(0,ea(1,c))||1};let P=!0;function j(S){const C=S[0].intersectionRatio;if(C!==c){if(!P)return i();C?i(!1,C):a=setTimeout(()=>{i(!1,1e-7)},1e3)}C===1&&!pv(u,e.getBoundingClientRect())&&i(),P=!1}try{n=new IntersectionObserver(j,{...y,root:r.ownerDocument})}catch{n=new IntersectionObserver(j,y)}n.observe(e)}return i(!0),s}function cN(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:c=!1}=a,u=Uf(e),d=r||s?[...u?Xs(u):[],...t?Xs(t):[]]:[];d.forEach(p=>{r&&p.addEventListener("scroll",n,{passive:!0}),s&&p.addEventListener("resize",n)});const f=u&&o?lN(u,n):null;let h=-1,m=null;i&&(m=new ResizeObserver(p=>{let[g]=p;g&&g.target===u&&m&&t&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=m)==null||y.observe(t)})),n()}),u&&!c&&m.observe(u),t&&m.observe(t));let x,w=c?_a(e):null;c&&b();function b(){const p=_a(e);w&&!pv(w,p)&&n(),w=p,x=requestAnimationFrame(b)}return n(),()=>{var p;d.forEach(g=>{r&&g.removeEventListener("scroll",n),s&&g.removeEventListener("resize",n)}),f==null||f(),(p=m)==null||p.disconnect(),m=null,c&&cancelAnimationFrame(x)}}const uN=VC,dN=BC,fN=IC,hN=$C,pN=FC,hm=_C,mN=HC,gN=(e,t,n)=>{const a=new Map,r={platform:oN,...n},s={...r.platform,_c:a};return LC(e,t,{...r,platform:s})};var xN=typeof document<"u",yN=function(){},mo=xN?v.useLayoutEffect:yN;function nl(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,a,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(a=n;a--!==0;)if(!nl(e[a],t[a]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(a=n;a--!==0;)if(!{}.hasOwnProperty.call(t,r[a]))return!1;for(a=n;a--!==0;){const s=r[a];if(!(s==="_owner"&&e.$$typeof)&&!nl(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function mv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pm(e,t){const n=mv(e);return Math.round(t*n)/n}function kc(e){const t=v.useRef(e);return mo(()=>{t.current=e}),t}function vN(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:a=[],platform:r,elements:{reference:s,floating:i}={},transform:o=!0,whileElementsMounted:c,open:u}=e,[d,f]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=v.useState(a);nl(h,a)||m(a);const[x,w]=v.useState(null),[b,p]=v.useState(null),g=v.useCallback(k=>{k!==S.current&&(S.current=k,w(k))},[]),y=v.useCallback(k=>{k!==C.current&&(C.current=k,p(k))},[]),P=s||x,j=i||b,S=v.useRef(null),C=v.useRef(null),N=v.useRef(d),R=c!=null,E=kc(c),_=kc(r),O=kc(u),$=v.useCallback(()=>{if(!S.current||!C.current)return;const k={placement:t,strategy:n,middleware:h};_.current&&(k.platform=_.current),gN(S.current,C.current,k).then(D=>{const F={...D,isPositioned:O.current!==!1};M.current&&!nl(N.current,F)&&(N.current=F,pi.flushSync(()=>{f(F)}))})},[h,t,n,_,O]);mo(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,f(k=>({...k,isPositioned:!1})))},[u]);const M=v.useRef(!1);mo(()=>(M.current=!0,()=>{M.current=!1}),[]),mo(()=>{if(P&&(S.current=P),j&&(C.current=j),P&&j){if(E.current)return E.current(P,j,$);$()}},[P,j,$,E,R]);const U=v.useMemo(()=>({reference:S,floating:C,setReference:g,setFloating:y}),[g,y]),z=v.useMemo(()=>({reference:P,floating:j}),[P,j]),Y=v.useMemo(()=>{const k={position:n,left:0,top:0};if(!z.floating)return k;const D=pm(z.floating,d.x),F=pm(z.floating,d.y);return o?{...k,transform:"translate("+D+"px, "+F+"px)",...mv(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:D,top:F}},[n,o,z.floating,d.x,d.y]);return v.useMemo(()=>({...d,update:$,refs:U,elements:z,floatingStyles:Y}),[d,$,U,z,Y])}const wN=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:a,padding:r}=typeof e=="function"?e(n):e;return a&&t(a)?a.current!=null?hm({element:a.current,padding:r}).fn(n):{}:a?hm({element:a,padding:r}).fn(n):{}}}},bN=(e,t)=>{const n=uN(e);return{name:n.name,fn:n.fn,options:[e,t]}},PN=(e,t)=>{const n=dN(e);return{name:n.name,fn:n.fn,options:[e,t]}},jN=(e,t)=>({fn:mN(e).fn,options:[e,t]}),SN=(e,t)=>{const n=fN(e);return{name:n.name,fn:n.fn,options:[e,t]}},CN=(e,t)=>{const n=hN(e);return{name:n.name,fn:n.fn,options:[e,t]}},NN=(e,t)=>{const n=pN(e);return{name:n.name,fn:n.fn,options:[e,t]}},kN=(e,t)=>{const n=wN(e);return{name:n.name,fn:n.fn,options:[e,t]}};var TN="Arrow",gv=v.forwardRef((e,t)=>{const{children:n,width:a=10,height:r=5,...s}=e;return l.jsx(qe.svg,{...s,ref:t,width:a,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});gv.displayName=TN;var EN=gv;function AN(e){const[t,n]=v.useState(void 0);return un(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let i,o;if("borderBoxSize"in s){const c=s.borderBoxSize,u=Array.isArray(c)?c[0]:c;i=u.inlineSize,o=u.blockSize}else i=e.offsetWidth,o=e.offsetHeight;n({width:i,height:o})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else n(void 0)},[e]),t}var xv="Popper",[yv,vv]=Ml(xv),[GR,wv]=yv(xv),bv="PopperAnchor",Pv=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:a,...r}=e,s=wv(bv,n),i=v.useRef(null),o=s.onAnchorChange,c=v.useCallback(x=>{i.current=x,x&&o(x)},[o]),u=Dt(t,c),d=v.useRef(null);v.useEffect(()=>{if(!a)return;const x=d.current;d.current=a.current,x!==d.current&&o(d.current)});const f=s.placementState&&Wf(s.placementState),h=f==null?void 0:f[0],m=f==null?void 0:f[1];return a?null:l.jsx(qe.div,{"data-radix-popper-side":h,"data-radix-popper-align":m,...r,ref:u})});Pv.displayName=bv;var qf="PopperContent",[RN,DN]=yv(qf),jv=v.forwardRef((e,t)=>{var kh,Th,Eh,Ah,Rh,Dh;const{__scopePopper:n,side:a="bottom",sideOffset:r=0,align:s="center",alignOffset:i=0,arrowPadding:o=0,avoidCollisions:c=!0,collisionBoundary:u,collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:x,...w}=e,b=wv(qf,n),[p,g]=v.useState(null),y=Dt(t,Zr=>g(Zr)),[P,j]=v.useState(null),S=AN(P),C=(S==null?void 0:S.width)??0,N=(S==null?void 0:S.height)??0,R=a+(s!=="center"?"-"+s:""),E=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},_=u?Array.isArray(u)?u:[u]:void 0,O=_!==void 0&&_.length>0,$={padding:E,boundary:_==null?void 0:_.filter(ON),altBoundary:O},{refs:M,floatingStyles:U,placement:z,isPositioned:Y,middlewareData:k}=vN({strategy:"fixed",placement:R,whileElementsMounted:(...Zr)=>cN(...Zr,{animationFrame:m==="always"}),elements:{reference:b.anchor},middleware:[bN({mainAxis:r+N,alignmentAxis:i}),c&&PN({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?jN():void 0,...$}),c&&SN({...$}),CN({...$,apply:({elements:Zr,rects:Mh,availableWidth:r1,availableHeight:s1})=>{const{width:i1,height:o1}=Mh.reference,Si=Zr.floating.style;Si.setProperty("--radix-popper-available-width",`${r1}px`),Si.setProperty("--radix-popper-available-height",`${s1}px`),Si.setProperty("--radix-popper-anchor-width",`${i1}px`),Si.setProperty("--radix-popper-anchor-height",`${o1}px`)}}),P&&kN({element:P,padding:o}),LN({arrowWidth:C,arrowHeight:N}),h&&NN({strategy:"referenceHidden",...$})]}),D=b.setPlacementState;un(()=>(D(z),()=>{D(void 0)}),[z,D]);const[F,B]=Wf(z),Z=Zn(x);un(()=>{Y&&(Z==null||Z())},[Y,Z]);const yt=(kh=k.arrow)==null?void 0:kh.x,ot=(Th=k.arrow)==null?void 0:Th.y,Xr=((Eh=k.arrow)==null?void 0:Eh.centerOffset)!==0,[Zt,$a]=v.useState();return un(()=>{p&&$a(window.getComputedStyle(p).zIndex)},[p]),l.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:Y?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Zt,"--radix-popper-transform-origin":[(Ah=k.transformOrigin)==null?void 0:Ah.x,(Rh=k.transformOrigin)==null?void 0:Rh.y].join(" "),...((Dh=k.hide)==null?void 0:Dh.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(RN,{scope:n,placedSide:F,placedAlign:B,onArrowChange:j,arrowX:yt,arrowY:ot,shouldHideArrow:Xr,children:l.jsx(qe.div,{"data-side":F,"data-align":B,...w,ref:y,style:{...w.style,animation:Y?void 0:"none"}})})})});jv.displayName=qf;var Sv="PopperArrow",MN={top:"bottom",right:"left",bottom:"top",left:"right"},Cv=v.forwardRef(function(t,n){const{__scopePopper:a,...r}=t,s=DN(Sv,a),i=MN[s.placedSide];return l.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsx(EN,{...r,ref:n,style:{...r.style,display:"block"}})})});Cv.displayName=Sv;function ON(e){return e!==null}var LN=e=>({name:"transformOrigin",options:e,fn(t){var b,p,g;const{placement:n,rects:a,middlewareData:r}=t,i=((b=r.arrow)==null?void 0:b.centerOffset)!==0,o=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[u,d]=Wf(n),f={start:"0%",center:"50%",end:"100%"}[d],h=(((p=r.arrow)==null?void 0:p.x)??0)+o/2,m=(((g=r.arrow)==null?void 0:g.y)??0)+c/2;let x="",w="";return u==="bottom"?(x=i?f:`${h}px`,w=`${-c}px`):u==="top"?(x=i?f:`${h}px`,w=`${a.floating.height+c}px`):u==="right"?(x=`${-c}px`,w=i?f:`${m}px`):u==="left"&&(x=`${a.floating.width+c}px`,w=i?f:`${m}px`),{data:{x,y:w}}}});function Wf(e){const[t,n="center"]=e.split("-");return[t,n]}var _N=Pv,IN=jv,FN=Cv,[Bl]=Ml("Tooltip",[vv]),Kf=vv(),Nv="TooltipProvider",zN=700,mm="tooltip.open",[VN,kv]=Bl(Nv),Tv=e=>{const{__scopeTooltip:t,delayDuration:n=zN,skipDelayDuration:a=300,disableHoverableContent:r=!1,children:s}=e,i=v.useRef(!0),o=v.useRef(!1),c=v.useRef(0);return v.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),l.jsx(VN,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:v.useCallback(()=>{a<=0||(window.clearTimeout(c.current),i.current=!1)},[a]),onClose:v.useCallback(()=>{a<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,a))},[a]),isPointerInTransitRef:o,onPointerInTransitChange:v.useCallback(u=>{o.current=u},[]),disableHoverableContent:r,children:s})};Tv.displayName=Nv;var Ev="Tooltip",[QR,yi]=Bl(Ev),Zu="TooltipTrigger",BN=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...a}=e,r=yi(Zu,n),s=kv(Zu,n),i=Kf(n),o=v.useRef(null),c=Dt(t,o,r.onTriggerChange),u=v.useRef(!1),d=v.useRef(!1),f=v.useCallback(()=>u.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),l.jsx(_N,{asChild:!0,...i,children:l.jsx(qe.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...a,ref:c,onPointerMove:ve(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(r.onTriggerEnter(),d.current=!0)}),onPointerLeave:ve(e.onPointerLeave,()=>{r.onTriggerLeave(),d.current=!1}),onPointerDown:ve(e.onPointerDown,()=>{r.open&&r.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:ve(e.onFocus,()=>{u.current||r.onOpen()}),onBlur:ve(e.onBlur,r.onClose),onClick:ve(e.onClick,r.onClose)})})});BN.displayName=Zu;var Gf="TooltipPortal",[HN,$N]=Bl(Gf,{forceMount:void 0}),Av=e=>{const{__scopeTooltip:t,forceMount:n,children:a,container:r}=e,s=yi(Gf,t);return l.jsx(HN,{scope:t,forceMount:n,children:l.jsx(Ol,{present:n||s.open,children:l.jsx(Mf,{asChild:!0,container:r,children:a})})})};Av.displayName=Gf;var Ir="TooltipContent",Rv=v.forwardRef((e,t)=>{const n=$N(Ir,e.__scopeTooltip),{forceMount:a=n.forceMount,side:r="top",...s}=e,i=yi(Ir,e.__scopeTooltip);return l.jsx(Ol,{present:a||i.open,children:i.disableHoverableContent?l.jsx(Dv,{side:r,...s,ref:t}):l.jsx(UN,{side:r,...s,ref:t})})}),UN=v.forwardRef((e,t)=>{const n=yi(Ir,e.__scopeTooltip),a=kv(Ir,e.__scopeTooltip),r=v.useRef(null),s=Dt(t,r),[i,o]=v.useState(null),{trigger:c,onClose:u}=n,d=r.current,{onPointerInTransitChange:f}=a,h=v.useCallback(()=>{o(null),f(!1)},[f]),m=v.useCallback((x,w)=>{const b=x.currentTarget,p={x:x.clientX,y:x.clientY},g=QN(p,b.getBoundingClientRect()),y=YN(p,g),P=XN(w.getBoundingClientRect()),j=JN([...y,...P]);o(j),f(!0)},[f]);return v.useEffect(()=>()=>h(),[h]),v.useEffect(()=>{if(c&&d){const x=b=>m(b,d),w=b=>m(b,c);return c.addEventListener("pointerleave",x),d.addEventListener("pointerleave",w),()=>{c.removeEventListener("pointerleave",x),d.removeEventListener("pointerleave",w)}}},[c,d,m,h]),v.useEffect(()=>{if(i){const x=w=>{const b=w.target,p={x:w.clientX,y:w.clientY},g=(c==null?void 0:c.contains(b))||(d==null?void 0:d.contains(b)),y=!ZN(p,i);g?h():y&&(h(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[c,d,i,u,h]),l.jsx(Dv,{...e,ref:s})}),[qN,WN]=Bl(Ev,{isInside:!1}),KN=Uj("TooltipContent"),Dv=v.forwardRef((e,t)=>{const{__scopeTooltip:n,children:a,"aria-label":r,onEscapeKeyDown:s,onPointerDownOutside:i,...o}=e,c=yi(Ir,n),u=Kf(n),{onClose:d}=c;return v.useEffect(()=>(document.addEventListener(mm,d),()=>document.removeEventListener(mm,d)),[d]),v.useEffect(()=>{if(c.trigger){const f=h=>{h.target instanceof Node&&h.target.contains(c.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,d]),l.jsx(Df,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:l.jsxs(IN,{"data-state":c.stateAttribute,...u,...o,ref:t,style:{...o.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[l.jsx(KN,{children:a}),l.jsx(qN,{scope:n,isInside:!0,children:l.jsx(bS,{id:c.contentId,role:"tooltip",children:r||a})})]})})});Rv.displayName=Ir;var Mv="TooltipArrow",GN=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...a}=e,r=Kf(n);return WN(Mv,n).isInside?null:l.jsx(FN,{...r,...a,ref:t})});GN.displayName=Mv;function QN(e,t){const n=Math.abs(t.top-e.y),a=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,a,r,s)){case s:return"left";case r:return"right";case n:return"top";case a:return"bottom";default:throw new Error("unreachable")}}function YN(e,t,n=5){const a=[];switch(t){case"top":a.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":a.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":a.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":a.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return a}function XN(e){const{top:t,right:n,bottom:a,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:a},{x:r,y:a}]}function ZN(e,t){const{x:n,y:a}=e;let r=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const o=t[s],c=t[i],u=o.x,d=o.y,f=c.x,h=c.y;d>a!=h>a&&n<(f-u)*(a-d)/(h-d)+u&&(r=!r)}return r}function JN(e){const t=e.slice();return t.sort((n,a)=>n.x<a.x?-1:n.x>a.x?1:n.y<a.y?-1:n.y>a.y?1:0),ek(t)}function ek(e){if(e.length<=1)return e.slice();const t=[];for(let a=0;a<e.length;a++){const r=e[a];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(r.y-i.y)>=(s.y-i.y)*(r.x-i.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let a=e.length-1;a>=0;a--){const r=e[a];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(r.y-i.y)>=(s.y-i.y)*(r.x-i.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var tk=Tv,nk=Av,Ov=Rv;const ak=tk,rk=v.forwardRef(({className:e,sideOffset:t=4,...n},a)=>l.jsx(nk,{children:l.jsx(Ov,{ref:a,sideOffset:t,className:Ce("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",e),...n})}));rk.displayName=Ov.displayName;var Hl=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(){}},wa,Rn,yr,Zg,sk=(Zg=class extends Hl{constructor(){super();G(this,wa);G(this,Rn);G(this,yr);V(this,yr,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){T(this,Rn)||this.setEventListener(T(this,yr))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,Rn))==null||t.call(this),V(this,Rn,void 0))}setEventListener(t){var n;V(this,yr,t),(n=T(this,Rn))==null||n.call(this),V(this,Rn,t(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(t){T(this,wa)!==t&&(V(this,wa,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof T(this,wa)=="boolean"?T(this,wa):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},wa=new WeakMap,Rn=new WeakMap,yr=new WeakMap,Zg),Lv=new sk,ik={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Dn,Ld,Jg,ok=(Jg=class{constructor(){G(this,Dn,ik);G(this,Ld,!1)}setTimeoutProvider(e){V(this,Dn,e)}setTimeout(e,t){return T(this,Dn).setTimeout(e,t)}clearTimeout(e){T(this,Dn).clearTimeout(e)}setInterval(e,t){return T(this,Dn).setInterval(e,t)}clearInterval(e){T(this,Dn).clearInterval(e)}},Dn=new WeakMap,Ld=new WeakMap,Jg),Ju=new ok;function lk(e){setTimeout(e,0)}var ck=typeof window>"u"||"Deno"in globalThis;function jt(){}function uk(e,t){return typeof e=="function"?e(t):e}function dk(e){return typeof e=="number"&&e>=0&&e!==1/0}function fk(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ed(e,t){return typeof e=="function"?e(t):e}function hk(e,t){return typeof e=="function"?e(t):e}function gm(e,t){const{type:n="all",exact:a,fetchStatus:r,predicate:s,queryKey:i,stale:o}=e;if(i){if(a){if(t.queryHash!==Qf(i,t.options))return!1}else if(!Js(t.queryKey,i))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||r&&r!==t.state.fetchStatus||s&&!s(t))}function xm(e,t){const{exact:n,status:a,predicate:r,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Zs(t.options.mutationKey)!==Zs(s))return!1}else if(!Js(t.options.mutationKey,s))return!1}return!(a&&t.state.status!==a||r&&!r(t))}function Qf(e,t){return((t==null?void 0:t.queryKeyHashFn)||Zs)(e)}function Zs(e){return JSON.stringify(e,(t,n)=>td(n)?Object.keys(n).sort().reduce((a,r)=>(a[r]=n[r],a),{}):n)}function Js(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Js(e[n],t[n])):!1}var pk=Object.prototype.hasOwnProperty;function _v(e,t,n=0){if(e===t)return e;if(n>500)return t;const a=ym(e)&&ym(t);if(!a&&!(td(e)&&td(t)))return t;const s=(a?e:Object.keys(e)).length,i=a?t:Object.keys(t),o=i.length,c=a?new Array(o):{};let u=0;for(let d=0;d<o;d++){const f=a?d:i[d],h=e[f],m=t[f];if(h===m){c[f]=h,(a?d<s:pk.call(e,f))&&u++;continue}if(h===null||m===null||typeof h!="object"||typeof m!="object"){c[f]=m;continue}const x=_v(h,m,n+1);c[f]=x,x===h&&u++}return s===o&&u===s?e:c}function ym(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function td(e){if(!vm(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!vm(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function vm(e){return Object.prototype.toString.call(e)==="[object Object]"}function mk(e){return new Promise(t=>{Ju.setTimeout(t,e)})}function gk(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?_v(e,t):t}function xk(e,t,n=0){const a=[...e,t];return n&&a.length>n?a.slice(1):a}function yk(e,t,n=0){const a=[t,...e];return n&&a.length>n?a.slice(0,-1):a}var Yf=Symbol();function Iv(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Yf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function vk(e,t,n){let a=!1,r;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(r??(r=t()),a||(a=!0,r.aborted?n():r.addEventListener("abort",n,{once:!0})),r)}),e}var Fv=(()=>{let e=()=>ck;return{isServer(){return e()},setIsServer(t){e=t}}})();function wk(){let e,t;const n=new Promise((r,s)=>{e=r,t=s});n.status="pending",n.catch(()=>{});function a(r){Object.assign(n,r),delete n.resolve,delete n.reject}return n.resolve=r=>{a({status:"fulfilled",value:r}),e(r)},n.reject=r=>{a({status:"rejected",reason:r}),t(r)},n}var bk=lk;function Pk(){let e=[],t=0,n=o=>{o()},a=o=>{o()},r=bk;const s=o=>{t?e.push(o):r(()=>{n(o)})},i=()=>{const o=e;e=[],o.length&&r(()=>{a(()=>{o.forEach(c=>{n(c)})})})};return{batch:o=>{let c;t++;try{c=o()}finally{t--,t||i()}return c},batchCalls:o=>(...c)=>{s(()=>{o(...c)})},schedule:s,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{a=o},setScheduler:o=>{r=o}}}var Fe=Pk(),vr,Mn,wr,ex,jk=(ex=class extends Hl{constructor(){super();G(this,vr,!0);G(this,Mn);G(this,wr);V(this,wr,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),a=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",a)}}})}onSubscribe(){T(this,Mn)||this.setEventListener(T(this,wr))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,Mn))==null||t.call(this),V(this,Mn,void 0))}setEventListener(t){var n;V(this,wr,t),(n=T(this,Mn))==null||n.call(this),V(this,Mn,t(this.setOnline.bind(this)))}setOnline(t){T(this,vr)!==t&&(V(this,vr,t),this.listeners.forEach(a=>{a(t)}))}isOnline(){return T(this,vr)}},vr=new WeakMap,Mn=new WeakMap,wr=new WeakMap,ex),al=new jk;function Sk(e){return Math.min(1e3*2**e,3e4)}function zv(e){return(e??"online")==="online"?al.isOnline():!0}var nd=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Vv(e){let t=!1,n=0,a;const r=wk(),s=()=>r.status!=="pending",i=w=>{var b;if(!s()){const p=new nd(w);h(p),(b=e.onCancel)==null||b.call(e,p)}},o=()=>{t=!0},c=()=>{t=!1},u=()=>Lv.isFocused()&&(e.networkMode==="always"||al.isOnline())&&e.canRun(),d=()=>zv(e.networkMode)&&e.canRun(),f=w=>{s()||(a==null||a(),r.resolve(w))},h=w=>{s()||(a==null||a(),r.reject(w))},m=()=>new Promise(w=>{var b;a=p=>{(s()||u())&&w(p)},(b=e.onPause)==null||b.call(e)}).then(()=>{var w;a=void 0,s()||(w=e.onContinue)==null||w.call(e)}),x=()=>{if(s())return;let w;const b=n===0?e.initialPromise:void 0;try{w=b??e.fn()}catch(p){w=Promise.reject(p)}Promise.resolve(w).then(f).catch(p=>{var S;if(s())return;const g=e.retry??(Fv.isServer()?0:3),y=e.retryDelay??Sk,P=typeof y=="function"?y(n,p):y,j=g===!0||typeof g=="number"&&n<g||typeof g=="function"&&g(n,p);if(t||!j){h(p);return}n++,(S=e.onFail)==null||S.call(e,n,p),mk(P).then(()=>u()?void 0:m()).then(()=>{t?h(p):x()})})};return{promise:r,status:()=>r.status,cancel:i,continue:()=>(a==null||a(),r),cancelRetry:o,continueRetry:c,canStart:d,start:()=>(d()?x():m().then(x),r)}}var ba,tx,Bv=(tx=class{constructor(){G(this,ba)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),dk(this.gcTime)&&V(this,ba,Ju.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Fv.isServer()?1/0:5*60*1e3))}clearGcTimeout(){T(this,ba)!==void 0&&(Ju.clearTimeout(T(this,ba)),V(this,ba,void 0))}},ba=new WeakMap,tx);function Ck(e){return{onFetch:(t,n)=>{var d,f,h,m,x;const a=t.options,r=(h=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:h.direction,s=((m=t.state.data)==null?void 0:m.pages)||[],i=((x=t.state.data)==null?void 0:x.pageParams)||[];let o={pages:[],pageParams:[]},c=0;const u=async()=>{let w=!1;const b=y=>{vk(y,()=>t.signal,()=>w=!0)},p=Iv(t.options,t.fetchOptions),g=async(y,P,j)=>{if(w)return Promise.reject(t.signal.reason);if(P==null&&y.pages.length)return Promise.resolve(y);const C=(()=>{const _={client:t.client,queryKey:t.queryKey,pageParam:P,direction:j?"backward":"forward",meta:t.options.meta};return b(_),_})(),N=await p(C),{maxPages:R}=t.options,E=j?yk:xk;return{pages:E(y.pages,N,R),pageParams:E(y.pageParams,P,R)}};if(r&&s.length){const y=r==="backward",P=y?Nk:wm,j={pages:s,pageParams:i},S=P(a,j);o=await g(j,S,y)}else{const y=e??s.length;do{const P=c===0?i[0]??a.initialPageParam:wm(a,o);if(c>0&&P==null)break;o=await g(o,P),c++}while(c<y)}return o};t.options.persister?t.fetchFn=()=>{var w,b;return(b=(w=t.options).persister)==null?void 0:b.call(w,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function wm(e,{pages:t,pageParams:n}){const a=t.length-1;return t.length>0?e.getNextPageParam(t[a],t,n[a],n):void 0}function Nk(e,{pages:t,pageParams:n}){var a;return t.length>0?(a=e.getPreviousPageParam)==null?void 0:a.call(e,t[0],t,n[0],n):void 0}var br,Pa,Pr,ct,ja,be,ii,Sa,Ze,Hv,tn,nx,kk=(nx=class extends Bv{constructor(t){super();G(this,Ze);G(this,br);G(this,Pa);G(this,Pr);G(this,ct);G(this,ja);G(this,be);G(this,ii);G(this,Sa);V(this,Sa,!1),V(this,ii,t.defaultOptions),this.setOptions(t.options),this.observers=[],V(this,ja,t.client),V(this,ct,T(this,ja).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,V(this,Pa,Pm(this.options)),this.state=t.state??T(this,Pa),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return T(this,br)}get promise(){var t;return(t=T(this,be))==null?void 0:t.promise}setOptions(t){if(this.options={...T(this,ii),...t},t!=null&&t._type&&V(this,br,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Pm(this.options);n.data!==void 0&&(this.setState(bm(n.data,n.dataUpdatedAt)),V(this,Pa,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,ct).remove(this)}setData(t,n){const a=gk(this.state.data,t,this.options);return Ne(this,Ze,tn).call(this,{data:a,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),a}setState(t){Ne(this,Ze,tn).call(this,{type:"setState",state:t})}cancel(t){var a,r;const n=(a=T(this,be))==null?void 0:a.promise;return(r=T(this,be))==null||r.cancel(t),n?n.then(jt).catch(jt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return T(this,Pa)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>hk(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Yf||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ed(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:!fk(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(a=>a.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,be))==null||n.continue()}onOnline(){var n;const t=this.observers.find(a=>a.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,be))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,ct).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(T(this,be)&&(T(this,Sa)||Ne(this,Ze,Hv).call(this)?T(this,be).cancel({revert:!0}):T(this,be).cancelRetry()),this.scheduleGc()),T(this,ct).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ne(this,Ze,tn).call(this,{type:"invalidate"})}async fetch(t,n){var u,d,f,h,m,x,w,b,p,g,y;if(this.state.fetchStatus!=="idle"&&((u=T(this,be))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(T(this,be))return T(this,be).continueRetry(),T(this,be).promise}if(t&&this.setOptions(t),!this.options.queryFn){const P=this.observers.find(j=>j.options.queryFn);P&&this.setOptions(P.options)}const a=new AbortController,r=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>(V(this,Sa,!0),a.signal)})},s=()=>{const P=Iv(this.options,n),S=(()=>{const C={client:T(this,ja),queryKey:this.queryKey,meta:this.meta};return r(C),C})();return V(this,Sa,!1),this.options.persister?this.options.persister(P,S,this):P(S)},o=(()=>{const P={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:T(this,ja),state:this.state,fetchFn:s};return r(P),P})(),c=T(this,br)==="infinite"?Ck(this.options.pages):this.options.behavior;c==null||c.onFetch(o,this),V(this,Pr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=o.fetchOptions)==null?void 0:d.meta))&&Ne(this,Ze,tn).call(this,{type:"fetch",meta:(f=o.fetchOptions)==null?void 0:f.meta}),V(this,be,Vv({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,onCancel:P=>{P instanceof nd&&P.revert&&this.setState({...T(this,Pr),fetchStatus:"idle"}),a.abort()},onFail:(P,j)=>{Ne(this,Ze,tn).call(this,{type:"failed",failureCount:P,error:j})},onPause:()=>{Ne(this,Ze,tn).call(this,{type:"pause"})},onContinue:()=>{Ne(this,Ze,tn).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}));try{const P=await T(this,be).start();if(P===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(P),(m=(h=T(this,ct).config).onSuccess)==null||m.call(h,P,this),(w=(x=T(this,ct).config).onSettled)==null||w.call(x,P,this.state.error,this),P}catch(P){if(P instanceof nd){if(P.silent)return T(this,be).promise;if(P.revert){if(this.state.data===void 0)throw P;return this.state.data}}throw Ne(this,Ze,tn).call(this,{type:"error",error:P}),(p=(b=T(this,ct).config).onError)==null||p.call(b,P,this),(y=(g=T(this,ct).config).onSettled)==null||y.call(g,this.state.data,P,this),P}finally{this.scheduleGc()}}},br=new WeakMap,Pa=new WeakMap,Pr=new WeakMap,ct=new WeakMap,ja=new WeakMap,be=new WeakMap,ii=new WeakMap,Sa=new WeakMap,Ze=new WeakSet,Hv=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},tn=function(t){const n=a=>{switch(t.type){case"failed":return{...a,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...Tk(a.data,this.options),fetchMeta:t.meta??null};case"success":const r={...a,...bm(t.data,t.dataUpdatedAt),dataUpdateCount:a.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return V(this,Pr,t.manual?r:void 0),r;case"error":const s=t.error;return{...a,error:s,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...t.state}}};this.state=n(this.state),Fe.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),T(this,ct).notify({query:this,type:"updated",action:t})})},nx);function Tk(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:zv(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function bm(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Pm(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,a=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var oi,zt,Oe,Ca,Vt,Cn,ax,Ek=(ax=class extends Bv{constructor(t){super();G(this,Vt);G(this,oi);G(this,zt);G(this,Oe);G(this,Ca);V(this,oi,t.client),this.mutationId=t.mutationId,V(this,Oe,t.mutationCache),V(this,zt,[]),this.state=t.state||Ak(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,zt).includes(t)||(T(this,zt).push(t),this.clearGcTimeout(),T(this,Oe).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){V(this,zt,T(this,zt).filter(n=>n!==t)),this.scheduleGc(),T(this,Oe).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,zt).length||(this.state.status==="pending"?this.scheduleGc():T(this,Oe).remove(this))}continue(){var t;return((t=T(this,Ca))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,c,u,d,f,h,m,x,w,b,p,g,y,P,j,S,C;const n=()=>{Ne(this,Vt,Cn).call(this,{type:"continue"})},a={client:T(this,oi),meta:this.options.meta,mutationKey:this.options.mutationKey};V(this,Ca,Vv({fn:()=>this.options.mutationFn?this.options.mutationFn(t,a):Promise.reject(new Error("No mutationFn found")),onFail:(N,R)=>{Ne(this,Vt,Cn).call(this,{type:"failed",failureCount:N,error:R})},onPause:()=>{Ne(this,Vt,Cn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,Oe).canRun(this)}));const r=this.state.status==="pending",s=!T(this,Ca).canStart();try{if(r)n();else{Ne(this,Vt,Cn).call(this,{type:"pending",variables:t,isPaused:s}),T(this,Oe).config.onMutate&&await T(this,Oe).config.onMutate(t,this,a);const R=await((o=(i=this.options).onMutate)==null?void 0:o.call(i,t,a));R!==this.state.context&&Ne(this,Vt,Cn).call(this,{type:"pending",context:R,variables:t,isPaused:s})}const N=await T(this,Ca).start();return await((u=(c=T(this,Oe).config).onSuccess)==null?void 0:u.call(c,N,t,this.state.context,this,a)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,N,t,this.state.context,a)),await((m=(h=T(this,Oe).config).onSettled)==null?void 0:m.call(h,N,null,this.state.variables,this.state.context,this,a)),await((w=(x=this.options).onSettled)==null?void 0:w.call(x,N,null,t,this.state.context,a)),Ne(this,Vt,Cn).call(this,{type:"success",data:N}),N}catch(N){try{await((p=(b=T(this,Oe).config).onError)==null?void 0:p.call(b,N,t,this.state.context,this,a))}catch(R){Promise.reject(R)}try{await((y=(g=this.options).onError)==null?void 0:y.call(g,N,t,this.state.context,a))}catch(R){Promise.reject(R)}try{await((j=(P=T(this,Oe).config).onSettled)==null?void 0:j.call(P,void 0,N,this.state.variables,this.state.context,this,a))}catch(R){Promise.reject(R)}try{await((C=(S=this.options).onSettled)==null?void 0:C.call(S,void 0,N,t,this.state.context,a))}catch(R){Promise.reject(R)}throw Ne(this,Vt,Cn).call(this,{type:"error",error:N}),N}finally{T(this,Oe).runNext(this)}}},oi=new WeakMap,zt=new WeakMap,Oe=new WeakMap,Ca=new WeakMap,Vt=new WeakSet,Cn=function(t){const n=a=>{switch(t.type){case"failed":return{...a,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,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{...a,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:t.error,failureCount:a.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Fe.batch(()=>{T(this,zt).forEach(a=>{a.onMutationUpdate(t)}),T(this,Oe).notify({mutation:this,type:"updated",action:t})})},ax);function Ak(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var sn,St,li,rx,Rk=(rx=class extends Hl{constructor(t={}){super();G(this,sn);G(this,St);G(this,li);this.config=t,V(this,sn,new Set),V(this,St,new Map),V(this,li,0)}build(t,n,a){const r=new Ek({client:t,mutationCache:this,mutationId:++Ci(this,li)._,options:t.defaultMutationOptions(n),state:a});return this.add(r),r}add(t){T(this,sn).add(t);const n=Ki(t);if(typeof n=="string"){const a=T(this,St).get(n);a?a.push(t):T(this,St).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(T(this,sn).delete(t)){const n=Ki(t);if(typeof n=="string"){const a=T(this,St).get(n);if(a)if(a.length>1){const r=a.indexOf(t);r!==-1&&a.splice(r,1)}else a[0]===t&&T(this,St).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Ki(t);if(typeof n=="string"){const a=T(this,St).get(n),r=a==null?void 0:a.find(s=>s.state.status==="pending");return!r||r===t}else return!0}runNext(t){var a;const n=Ki(t);if(typeof n=="string"){const r=(a=T(this,St).get(n))==null?void 0:a.find(s=>s!==t&&s.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Fe.batch(()=>{T(this,sn).forEach(t=>{this.notify({type:"removed",mutation:t})}),T(this,sn).clear(),T(this,St).clear()})}getAll(){return Array.from(T(this,sn))}find(t){const n={exact:!0,...t};return this.getAll().find(a=>xm(n,a))}findAll(t={}){return this.getAll().filter(n=>xm(t,n))}notify(t){Fe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Fe.batch(()=>Promise.all(t.map(n=>n.continue().catch(jt))))}},sn=new WeakMap,St=new WeakMap,li=new WeakMap,rx);function Ki(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Bt,sx,Dk=(sx=class extends Hl{constructor(t={}){super();G(this,Bt);this.config=t,V(this,Bt,new Map)}build(t,n,a){const r=n.queryKey,s=n.queryHash??Qf(r,n);let i=this.get(s);return i||(i=new kk({client:t,queryKey:r,queryHash:s,options:t.defaultQueryOptions(n),state:a,defaultOptions:t.getQueryDefaults(r)}),this.add(i)),i}add(t){T(this,Bt).has(t.queryHash)||(T(this,Bt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=T(this,Bt).get(t.queryHash);n&&(t.destroy(),n===t&&T(this,Bt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Fe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,Bt).get(t)}getAll(){return[...T(this,Bt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(a=>gm(n,a))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(a=>gm(t,a)):n}notify(t){Fe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Fe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Fe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Bt=new WeakMap,sx),ue,On,Ln,jr,Sr,_n,Cr,Nr,ix,Mk=(ix=class{constructor(e={}){G(this,ue);G(this,On);G(this,Ln);G(this,jr);G(this,Sr);G(this,_n);G(this,Cr);G(this,Nr);V(this,ue,e.queryCache||new Dk),V(this,On,e.mutationCache||new Rk),V(this,Ln,e.defaultOptions||{}),V(this,jr,new Map),V(this,Sr,new Map),V(this,_n,0)}mount(){Ci(this,_n)._++,T(this,_n)===1&&(V(this,Cr,Lv.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,ue).onFocus())})),V(this,Nr,al.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,ue).onOnline())})))}unmount(){var e,t;Ci(this,_n)._--,T(this,_n)===0&&((e=T(this,Cr))==null||e.call(this),V(this,Cr,void 0),(t=T(this,Nr))==null||t.call(this),V(this,Nr,void 0))}isFetching(e){return T(this,ue).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,On).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,ue).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=T(this,ue).build(this,t),a=n.state.data;return a===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ed(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(a))}getQueriesData(e){return T(this,ue).findAll(e).map(({queryKey:t,state:n})=>{const a=n.data;return[t,a]})}setQueryData(e,t,n){const a=this.defaultQueryOptions({queryKey:e}),r=T(this,ue).get(a.queryHash),s=r==null?void 0:r.state.data,i=uk(t,s);if(i!==void 0)return T(this,ue).build(this,a).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Fe.batch(()=>T(this,ue).findAll(e).map(({queryKey:a})=>[a,this.setQueryData(a,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,ue).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=T(this,ue);Fe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=T(this,ue);return Fe.batch(()=>(n.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},a=Fe.batch(()=>T(this,ue).findAll(e).map(r=>r.cancel(n)));return Promise.all(a).then(jt).catch(jt)}invalidateQueries(e,t={}){return Fe.batch(()=>(T(this,ue).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},a=Fe.batch(()=>T(this,ue).findAll(e).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let s=r.fetch(void 0,n);return n.throwOnError||(s=s.catch(jt)),r.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(a).then(jt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=T(this,ue).build(this,t);return n.isStaleByTime(ed(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(jt).catch(jt)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(jt).catch(jt)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return al.isOnline()?T(this,On).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,ue)}getMutationCache(){return T(this,On)}getDefaultOptions(){return T(this,Ln)}setDefaultOptions(e){V(this,Ln,e)}setQueryDefaults(e,t){T(this,jr).set(Zs(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,jr).values()],n={};return t.forEach(a=>{Js(e,a.queryKey)&&Object.assign(n,a.defaultOptions)}),n}setMutationDefaults(e,t){T(this,Sr).set(Zs(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,Sr).values()],n={};return t.forEach(a=>{Js(e,a.mutationKey)&&Object.assign(n,a.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,Ln).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Qf(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===Yf&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,Ln).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,ue).clear(),T(this,On).clear()}},ue=new WeakMap,On=new WeakMap,Ln=new WeakMap,jr=new WeakMap,Sr=new WeakMap,_n=new WeakMap,Cr=new WeakMap,Nr=new WeakMap,ix),Ok=v.createContext(void 0),Lk=({client:e,children:t})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),l.jsx(Ok.Provider,{value:e,children:t}));/**
* @remix-run/router v1.23.3
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function ei(){return ei=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},ei.apply(null,arguments)}var zn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(zn||(zn={}));const jm="popstate";function _k(e){e===void 0&&(e={});function t(a,r){let{pathname:s,search:i,hash:o}=a.location;return ad("",{pathname:s,search:i,hash:o},r.state&&r.state.usr||null,r.state&&r.state.key||"default")}function n(a,r){return typeof r=="string"?r:rl(r)}return Fk(t,n,null,e)}function ge(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Xf(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ik(){return Math.random().toString(36).substr(2,8)}function Sm(e,t){return{usr:e.state,key:e.key,idx:t}}function ad(e,t,n,a){return n===void 0&&(n=null),ei({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Kr(t):t,{state:n,key:t&&t.key||a||Ik()})}function rl(e){let{pathname:t="/",search:n="",hash:a=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(t+=a.charAt(0)==="#"?a:"#"+a),t}function Kr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substr(a),e=e.substr(0,a)),e&&(t.pathname=e)}return t}function Fk(e,t,n,a){a===void 0&&(a={});let{window:r=document.defaultView,v5Compat:s=!1}=a,i=r.history,o=zn.Pop,c=null,u=d();u==null&&(u=0,i.replaceState(ei({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function f(){o=zn.Pop;let b=d(),p=b==null?null:b-u;u=b,c&&c({action:o,location:w.location,delta:p})}function h(b,p){o=zn.Push;let g=ad(w.location,b,p);u=d()+1;let y=Sm(g,u),P=w.createHref(g);try{i.pushState(y,"",P)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;r.location.assign(P)}s&&c&&c({action:o,location:w.location,delta:1})}function m(b,p){o=zn.Replace;let g=ad(w.location,b,p);u=d();let y=Sm(g,u),P=w.createHref(g);i.replaceState(y,"",P),s&&c&&c({action:o,location:w.location,delta:0})}function x(b){let p=r.location.origin!=="null"?r.location.origin:r.location.href,g=typeof b=="string"?b:rl(b);return g=g.replace(/ $/,"%20"),ge(p,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,p)}let w={get action(){return o},get location(){return e(r,i)},listen(b){if(c)throw new Error("A history only accepts one active listener");return r.addEventListener(jm,f),c=b,()=>{r.removeEventListener(jm,f),c=null}},createHref(b){return t(r,b)},createURL:x,encodeLocation(b){let p=x(b);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:h,replace:m,go(b){return i.go(b)}};return w}var Cm;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Cm||(Cm={}));function zk(e,t,n){return n===void 0&&(n="/"),Vk(e,t,n)}function Vk(e,t,n,a){let r=typeof t=="string"?Kr(t):t,s=Zf(r.pathname||"/",n);if(s==null)return null;let i=$v(e);Bk(i);let o=null,c=Jk(s);for(let u=0;o==null&&u<i.length;++u)o=Yk(i[u],c);return o}function $v(e,t,n,a){t===void 0&&(t=[]),n===void 0&&(n=[]),a===void 0&&(a="");let r=(s,i,o)=>{let c={relativePath:o===void 0?s.path||"":o,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};c.relativePath.startsWith("/")&&(ge(c.relativePath.startsWith(a),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+a+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(a.length));let u=Qn([a,c.relativePath]),d=n.concat(c);s.children&&s.children.length>0&&(ge(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),$v(s.children,t,d,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:Gk(u,s.index),routesMeta:d})};return e.forEach((s,i)=>{var o;if(s.path===""||!((o=s.path)!=null&&o.includes("?")))r(s,i);else for(let c of Uv(s.path))r(s,i,c)}),t}function Uv(e){let t=e.split("/");if(t.length===0)return[];let[n,...a]=t,r=n.endsWith("?"),s=n.replace(/\?$/,"");if(a.length===0)return r?[s,""]:[s];let i=Uv(a.join("/")),o=[];return o.push(...i.map(c=>c===""?s:[s,c].join("/"))),r&&o.push(...i),o.map(c=>e.startsWith("/")&&c===""?"/":c)}function Bk(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Qk(t.routesMeta.map(a=>a.childrenIndex),n.routesMeta.map(a=>a.childrenIndex)))}const Hk=/^:[\w-]+$/,$k=3,Uk=2,qk=1,Wk=10,Kk=-2,Nm=e=>e==="*";function Gk(e,t){let n=e.split("/"),a=n.length;return n.some(Nm)&&(a+=Kk),t&&(a+=Uk),n.filter(r=>!Nm(r)).reduce((r,s)=>r+(Hk.test(s)?$k:s===""?qk:Wk),a)}function Qk(e,t){return e.length===t.length&&e.slice(0,-1).every((a,r)=>a===t[r])?e[e.length-1]-t[t.length-1]:0}function Yk(e,t,n){let{routesMeta:a}=e,r={},s="/",i=[];for(let o=0;o<a.length;++o){let c=a[o],u=o===a.length-1,d=s==="/"?t:t.slice(s.length)||"/",f=Xk({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),h=c.route;if(!f)return null;Object.assign(r,f.params),i.push({params:r,pathname:Qn([s,f.pathname]),pathnameBase:rT(Qn([s,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(s=Qn([s,f.pathnameBase]))}return i}function Xk(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,a]=Zk(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let s=r[0],i=s.replace(/(.)\/+$/,"$1"),o=r.slice(1);return{params:a.reduce((u,d,f)=>{let{paramName:h,isOptional:m}=d;if(h==="*"){let w=o[f]||"";i=s.slice(0,s.length-w.length).replace(/(.)\/+$/,"$1")}const x=o[f];return m&&!x?u[h]=void 0:u[h]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:i,pattern:e}}function Zk(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Xf(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 a=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,o,c)=>(a.push({paramName:o,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(a.push({paramName:"*"}),r+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":e!==""&&e!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),a]}function Jk(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Xf(!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 Zf(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,a=e.charAt(n);return a&&a!=="/"?null:e.slice(n)||"/"}const eT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,tT=e=>eT.test(e);function nT(e,t){t===void 0&&(t="/");let{pathname:n,search:a="",hash:r=""}=typeof e=="string"?Kr(e):e,s;if(n)if(tT(n))s=n;else{if(n.includes("//")){let i=n;n=Kv(n),Xf(!1,"Pathnames cannot have embedded double slashes - normalizing "+(i+" -> "+n))}n.startsWith("/")?s=km(n.substring(1),"/"):s=km(n,t)}else s=t;return{pathname:s,search:sT(a),hash:iT(r)}}function km(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function Tc(e,t,n,a){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(a)+"]. 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 aT(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function qv(e,t){let n=aT(e);return t?n.map((a,r)=>r===n.length-1?a.pathname:a.pathnameBase):n.map(a=>a.pathnameBase)}function Wv(e,t,n,a){a===void 0&&(a=!1);let r;typeof e=="string"?r=Kr(e):(r=ei({},e),ge(!r.pathname||!r.pathname.includes("?"),Tc("?","pathname","search",r)),ge(!r.pathname||!r.pathname.includes("#"),Tc("#","pathname","hash",r)),ge(!r.search||!r.search.includes("#"),Tc("#","search","hash",r)));let s=e===""||r.pathname==="",i=s?"/":r.pathname,o;if(i==null)o=n;else{let f=t.length-1;if(!a&&i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),f-=1;r.pathname=h.join("/")}o=f>=0?t[f]:"/"}let c=nT(r,o),u=i&&i!=="/"&&i.endsWith("/"),d=(s||i===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const Kv=e=>e.replace(/\/\/+/g,"/"),Qn=e=>Kv(e.join("/")),rT=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),sT=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,iT=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function oT(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Gv=["post","put","patch","delete"];new Set(Gv);const lT=["get",...Gv];new Set(lT);/**
* React Router v6.30.4
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function ti(){return ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},ti.apply(null,arguments)}const Jf=v.createContext(null),cT=v.createContext(null),Ba=v.createContext(null),$l=v.createContext(null),wn=v.createContext({outlet:null,matches:[],isDataRoute:!1}),Qv=v.createContext(null);function uT(e,t){let{relative:n}=t===void 0?{}:t;vi()||ge(!1);let{basename:a,navigator:r}=v.useContext(Ba),{hash:s,pathname:i,search:o}=Xv(e,{relative:n}),c=i;return a!=="/"&&(c=i==="/"?a:Qn([a,i])),r.createHref({pathname:c,search:o,hash:s})}function vi(){return v.useContext($l)!=null}function Ha(){return vi()||ge(!1),v.useContext($l).location}function Yv(e){v.useContext(Ba).static||v.useLayoutEffect(e)}function dT(){let{isDataRoute:e}=v.useContext(wn);return e?kT():fT()}function fT(){vi()||ge(!1);let e=v.useContext(Jf),{basename:t,future:n,navigator:a}=v.useContext(Ba),{matches:r}=v.useContext(wn),{pathname:s}=Ha(),i=JSON.stringify(qv(r,n.v7_relativeSplatPath)),o=v.useRef(!1);return Yv(()=>{o.current=!0}),v.useCallback(function(u,d){if(d===void 0&&(d={}),!o.current)return;if(typeof u=="number"){a.go(u);return}let f=Wv(u,JSON.parse(i),s,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Qn([t,f.pathname])),(d.replace?a.replace:a.push)(f,d.state,d)},[t,a,i,s,e])}const hT=v.createContext(null);function pT(e){let t=v.useContext(wn).outlet;return t&&v.createElement(hT.Provider,{value:e},t)}function mT(){let{matches:e}=v.useContext(wn),t=e[e.length-1];return t?t.params:{}}function Xv(e,t){let{relative:n}=t===void 0?{}:t,{future:a}=v.useContext(Ba),{matches:r}=v.useContext(wn),{pathname:s}=Ha(),i=JSON.stringify(qv(r,a.v7_relativeSplatPath));return v.useMemo(()=>Wv(e,JSON.parse(i),s,n==="path"),[e,i,s,n])}function gT(e,t){return xT(e,t)}function xT(e,t,n,a){vi()||ge(!1);let{navigator:r}=v.useContext(Ba),{matches:s}=v.useContext(wn),i=s[s.length-1],o=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let u=Ha(),d;if(t){var f;let b=typeof t=="string"?Kr(t):t;c==="/"||(f=b.pathname)!=null&&f.startsWith(c)||ge(!1),d=b}else d=u;let h=d.pathname||"/",m=h;if(c!=="/"){let b=c.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(b.length).join("/")}let x=zk(e,{pathname:m}),w=PT(x&&x.map(b=>Object.assign({},b,{params:Object.assign({},o,b.params),pathname:Qn([c,r.encodeLocation?r.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?c:Qn([c,r.encodeLocation?r.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),s,n,a);return t&&w?v.createElement($l.Provider,{value:{location:ti({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:zn.Pop}},w):w}function yT(){let e=NT(),t=oT(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:r},n):null,null)}const vT=v.createElement(yT,null);class wT extends v.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?v.createElement(wn.Provider,{value:this.props.routeContext},v.createElement(Qv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function bT(e){let{routeContext:t,match:n,children:a}=e,r=v.useContext(Jf);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(wn.Provider,{value:t},a)}function PT(e,t,n,a){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),a===void 0&&(a=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=a)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,o=(r=n)==null?void 0:r.errors;if(o!=null){let d=i.findIndex(f=>f.route.id&&(o==null?void 0:o[f.route.id])!==void 0);d>=0||ge(!1),i=i.slice(0,Math.min(i.length,d+1))}let c=!1,u=-1;if(n&&a&&a.v7_partialHydration)for(let d=0;d<i.length;d++){let f=i[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:h,errors:m}=n,x=f.route.loader&&h[f.route.id]===void 0&&(!m||m[f.route.id]===void 0);if(f.route.lazy||x){c=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,f,h)=>{let m,x=!1,w=null,b=null;n&&(m=o&&f.route.id?o[f.route.id]:void 0,w=f.route.errorElement||vT,c&&(u<0&&h===0?(TT("route-fallback"),x=!0,b=null):u===h&&(x=!0,b=f.route.hydrateFallbackElement||null)));let p=t.concat(i.slice(0,h+1)),g=()=>{let y;return m?y=w:x?y=b:f.route.Component?y=v.createElement(f.route.Component,null):f.route.element?y=f.route.element:y=d,v.createElement(bT,{match:f,routeContext:{outlet:d,matches:p,isDataRoute:n!=null},children:y})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?v.createElement(wT,{location:n.location,revalidation:n.revalidation,component:w,error:m,children:g(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):g()},null)}var Zv=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Zv||{}),Jv=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}(Jv||{});function jT(e){let t=v.useContext(Jf);return t||ge(!1),t}function ST(e){let t=v.useContext(cT);return t||ge(!1),t}function CT(e){let t=v.useContext(wn);return t||ge(!1),t}function ew(e){let t=CT(),n=t.matches[t.matches.length-1];return n.route.id||ge(!1),n.route.id}function NT(){var e;let t=v.useContext(Qv),n=ST(),a=ew();return t!==void 0?t:(e=n.errors)==null?void 0:e[a]}function kT(){let{router:e}=jT(Zv.UseNavigateStable),t=ew(Jv.UseNavigateStable),n=v.useRef(!1);return Yv(()=>{n.current=!0}),v.useCallback(function(r,s){s===void 0&&(s={}),n.current&&(typeof r=="number"?e.navigate(r):e.navigate(r,ti({fromRouteId:t},s)))},[e,t])}const Tm={};function TT(e,t,n){Tm[e]||(Tm[e]=!0)}function ET(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function AT(e){return pT(e.context)}function _t(e){ge(!1)}function RT(e){let{basename:t="/",children:n=null,location:a,navigationType:r=zn.Pop,navigator:s,static:i=!1,future:o}=e;vi()&&ge(!1);let c=t.replace(/^\/*/,"/"),u=v.useMemo(()=>({basename:c,navigator:s,static:i,future:ti({v7_relativeSplatPath:!1},o)}),[c,o,s,i]);typeof a=="string"&&(a=Kr(a));let{pathname:d="/",search:f="",hash:h="",state:m=null,key:x="default"}=a,w=v.useMemo(()=>{let b=Zf(d,c);return b==null?null:{location:{pathname:b,search:f,hash:h,state:m,key:x},navigationType:r}},[c,d,f,h,m,x,r]);return w==null?null:v.createElement(Ba.Provider,{value:u},v.createElement($l.Provider,{children:n,value:w}))}function DT(e){let{children:t,location:n}=e;return gT(rd(t),n)}new Promise(()=>{});function rd(e,t){t===void 0&&(t=[]);let n=[];return v.Children.forEach(e,(a,r)=>{if(!v.isValidElement(a))return;let s=[...t,r];if(a.type===v.Fragment){n.push.apply(n,rd(a.props.children,s));return}a.type!==_t&&ge(!1),!a.props.index||!a.props.children||ge(!1);let i={id:a.props.id||s.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,loader:a.props.loader,action:a.props.action,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(i.children=rd(a.props.children,s)),n.push(i)}),n}/**
* React Router DOM v6.30.4
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function sd(){return sd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},sd.apply(null,arguments)}function MT(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;n[a]=e[a]}return n}function OT(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function LT(e,t){return e.button===0&&(!t||t==="_self")&&!OT(e)}const _T=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],IT="6";try{window.__reactRouterVersion=IT}catch{}const FT="startTransition",Em=Vd[FT];function zT(e){let{basename:t,children:n,future:a,window:r}=e,s=v.useRef();s.current==null&&(s.current=_k({window:r,v5Compat:!0}));let i=s.current,[o,c]=v.useState({action:i.action,location:i.location}),{v7_startTransition:u}=a||{},d=v.useCallback(f=>{u&&Em?Em(()=>c(f)):c(f)},[c,u]);return v.useLayoutEffect(()=>i.listen(d),[i,d]),v.useEffect(()=>ET(a),[a]),v.createElement(RT,{basename:t,children:n,location:o.location,navigationType:o.action,navigator:i,future:a})}const VT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",BT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,H=v.forwardRef(function(t,n){let{onClick:a,relative:r,reloadDocument:s,replace:i,state:o,target:c,to:u,preventScrollReset:d,viewTransition:f}=t,h=MT(t,_T),{basename:m}=v.useContext(Ba),x,w=!1;if(typeof u=="string"&&BT.test(u)&&(x=u,VT))try{let y=new URL(window.location.href),P=u.startsWith("//")?new URL(y.protocol+u):new URL(u),j=Zf(P.pathname,m);P.origin===y.origin&&j!=null?u=j+P.search+P.hash:w=!0}catch{}let b=uT(u,{relative:r}),p=HT(u,{replace:i,state:o,target:c,preventScrollReset:d,relative:r,viewTransition:f});function g(y){a&&a(y),y.defaultPrevented||p(y)}return v.createElement("a",sd({},h,{href:x||b,onClick:w||s?a:g,ref:n,target:c}))});var Am;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Am||(Am={}));var Rm;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Rm||(Rm={}));function HT(e,t){let{target:n,replace:a,state:r,preventScrollReset:s,relative:i,viewTransition:o}=t===void 0?{}:t,c=dT(),u=Ha(),d=Xv(e,{relative:i});return v.useCallback(f=>{if(LT(f,n)){f.preventDefault();let h=a!==void 0?a:rl(u)===rl(d);c(e,{replace:h,state:r,preventScrollReset:s,relative:i,viewTransition:o})}},[u,c,d,a,r,n,e,s,i,o])}const $T=v.createContext(null),Ec={didCatch:!1,error:null};class UT extends v.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Ec}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(...t){var a,r;const{error:n}=this.state;n!==null&&((r=(a=this.props).onReset)==null||r.call(a,{args:t,reason:"imperative-api"}),this.setState(Ec))}componentDidCatch(t,n){var a,r;(r=(a=this.props).onError)==null||r.call(a,t,n)}componentDidUpdate(t,n){var s,i;const{didCatch:a}=this.state,{resetKeys:r}=this.props;a&&n.error!==null&&qT(t.resetKeys,r)&&((i=(s=this.props).onReset)==null||i.call(s,{next:r,prev:t.resetKeys,reason:"keys"}),this.setState(Ec))}render(){const{children:t,fallbackRender:n,FallbackComponent:a,fallback:r}=this.props,{didCatch:s,error:i}=this.state;let o=t;if(s){const c={error:i,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")o=n(c);else if(a)o=v.createElement(a,c);else if(r!==void 0)o=r;else throw i}return v.createElement($T.Provider,{value:{didCatch:s,error:i,resetErrorBoundary:this.resetErrorBoundary}},o)}}function qT(e=[],t=[]){return e.length!==t.length||e.some((n,a)=>!Object.is(n,t[a]))}var WT=typeof Element<"u",KT=typeof Map=="function",GT=typeof Set=="function",QT=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function go(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,a,r;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(a=n;a--!==0;)if(!go(e[a],t[a]))return!1;return!0}var s;if(KT&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(a=s.next()).done;)if(!t.has(a.value[0]))return!1;for(s=e.entries();!(a=s.next()).done;)if(!go(a.value[1],t.get(a.value[0])))return!1;return!0}if(GT&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(a=s.next()).done;)if(!t.has(a.value[0]))return!1;return!0}if(QT&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(a=n;a--!==0;)if(e[a]!==t[a])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,r[a]))return!1;if(WT&&e instanceof Element)return!1;for(a=n;a--!==0;)if(!((r[a]==="_owner"||r[a]==="__v"||r[a]==="__o")&&e.$$typeof)&&!go(e[r[a]],t[r[a]]))return!1;return!0}return e!==e&&t!==t}var YT=function(t,n){try{return go(t,n)}catch(a){if((a.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw a}};const XT=ml(YT);var ZT=function(e,t,n,a,r,s,i,o){if(!e){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,a,r,s,i,o],d=0;c=new Error(t.replace(/%s/g,function(){return u[d++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},JT=ZT;const Dm=ml(JT);var eE=function(t,n,a,r){var s=a?a.call(r,t,n):void 0;if(s!==void 0)return!!s;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var i=Object.keys(t),o=Object.keys(n);if(i.length!==o.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(n),u=0;u<i.length;u++){var d=i[u];if(!c(d))return!1;var f=t[d],h=n[d];if(s=a?a.call(r,f,h,d):void 0,s===!1||s===void 0&&f!==h)return!1}return!0};const tE=ml(eE);var tw=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(tw||{}),Ac={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},Mm=Object.values(tw),eh={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},nE=Object.entries(eh).reduce((e,[t,n])=>(e[n]=t,e),{}),kt="data-rh",gr={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},xr=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const a=e[n];if(Object.prototype.hasOwnProperty.call(a,t))return a[t]}return null},aE=e=>{let t=xr(e,"title");const n=xr(e,gr.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const a=xr(e,gr.DEFAULT_TITLE);return t||a||void 0},rE=e=>xr(e,gr.ON_CHANGE_CLIENT_STATE)||(()=>{}),Rc=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,a)=>({...n,...a}),{}),sE=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,a)=>{if(!n.length){const r=Object.keys(a);for(let s=0;s<r.length;s+=1){const o=r[s].toLowerCase();if(e.indexOf(o)!==-1&&a[o])return n.concat(a)}}return n},[]),iE=e=>console&&typeof console.warn=="function"&&console.warn(e),cs=(e,t,n)=>{const a={};return n.filter(r=>Array.isArray(r[e])?!0:(typeof r[e]<"u"&&iE(`Helmet: ${e} should be of type "Array". Instead found type "${typeof r[e]}"`),!1)).map(r=>r[e]).reverse().reduce((r,s)=>{const i={};s.filter(c=>{let u;const d=Object.keys(c);for(let h=0;h<d.length;h+=1){const m=d[h],x=m.toLowerCase();t.indexOf(x)!==-1&&!(u==="rel"&&c[u].toLowerCase()==="canonical")&&!(x==="rel"&&c[x].toLowerCase()==="stylesheet")&&(u=x),t.indexOf(m)!==-1&&(m==="innerHTML"||m==="cssText"||m==="itemprop")&&(u=m)}if(!u||!c[u])return!1;const f=c[u].toLowerCase();return a[u]||(a[u]={}),i[u]||(i[u]={}),a[u][f]?!1:(i[u][f]=!0,!0)}).reverse().forEach(c=>r.push(c));const o=Object.keys(i);for(let c=0;c<o.length;c+=1){const u=o[c],d={...a[u],...i[u]};a[u]=d}return r},[]).reverse()},oE=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},lE=e=>({baseTag:sE(["href"],e),bodyAttributes:Rc("bodyAttributes",e),defer:xr(e,gr.DEFER),encode:xr(e,gr.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Rc("htmlAttributes",e),linkTags:cs("link",["rel","href"],e),metaTags:cs("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:cs("noscript",["innerHTML"],e),onChangeClientState:rE(e),scriptTags:cs("script",["src","innerHTML"],e),styleTags:cs("style",["cssText"],e),title:aE(e),titleAttributes:Rc("titleAttributes",e),prioritizeSeoTags:oE(e,gr.PRIORITIZE_SEO_TAGS)}),nw=e=>Array.isArray(e)?e.join(""):e,cE=(e,t)=>{const n=Object.keys(e);for(let a=0;a<n.length;a+=1)if(t[n[a]]&&t[n[a]].includes(e[n[a]]))return!0;return!1},Dc=(e,t)=>Array.isArray(e)?e.reduce((n,a)=>(cE(a,t)?n.priority.push(a):n.default.push(a),n),{priority:[],default:[]}):{default:e,priority:[]},Om=(e,t)=>({...e,[t]:void 0}),uE=["noscript","script","style"],id=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),aw=e=>Object.keys(e).reduce((t,n)=>{const a=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${a}`:a},""),dE=(e,t,n,a)=>{const r=aw(n),s=nw(t);return r?`<${e} ${kt}="true" ${r}>${id(s,a)}</${e}>`:`<${e} ${kt}="true">${id(s,a)}</${e}>`},fE=(e,t,n=!0)=>t.reduce((a,r)=>{const s=r,i=Object.keys(s).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,d)=>{const f=typeof s[d]>"u"?d:`${d}="${id(s[d],n)}"`;return u?`${u} ${f}`:f},""),o=s.innerHTML||s.cssText||"",c=uE.indexOf(e)===-1;return`${a}<${e} ${kt}="true" ${i}${c?"/>":`>${o}</${e}>`}`},""),rw=(e,t={})=>Object.keys(e).reduce((n,a)=>{const r=eh[a];return n[r||a]=e[a],n},t),hE=(e,t,n)=>{const a={key:t,[kt]:!0},r=rw(n,a);return[Ut.createElement("title",r,t)]},xo=(e,t)=>t.map((n,a)=>{const r={key:a,[kt]:!0};return Object.keys(n).forEach(s=>{const o=eh[s]||s;if(o==="innerHTML"||o==="cssText"){const c=n.innerHTML||n.cssText;r.dangerouslySetInnerHTML={__html:c}}else r[o]=n[s]}),Ut.createElement(e,r)}),lt=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>hE(e,t.title,t.titleAttributes),toString:()=>dE(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>rw(t),toString:()=>aw(t)};default:return{toComponent:()=>xo(e,t),toString:()=>fE(e,t,n)}}},pE=({metaTags:e,linkTags:t,scriptTags:n,encode:a})=>{const r=Dc(e,Ac.meta),s=Dc(t,Ac.link),i=Dc(n,Ac.script);return{priorityMethods:{toComponent:()=>[...xo("meta",r.priority),...xo("link",s.priority),...xo("script",i.priority)],toString:()=>`${lt("meta",r.priority,a)} ${lt("link",s.priority,a)} ${lt("script",i.priority,a)}`},metaTags:r.default,linkTags:s.default,scriptTags:i.default}},mE=e=>{const{baseTag:t,bodyAttributes:n,encode:a=!0,htmlAttributes:r,noscriptTags:s,styleTags:i,title:o="",titleAttributes:c,prioritizeSeoTags:u}=e;let{linkTags:d,metaTags:f,scriptTags:h}=e,m={toComponent:()=>{},toString:()=>""};return u&&({priorityMethods:m,linkTags:d,metaTags:f,scriptTags:h}=pE(e)),{priority:m,base:lt("base",t,a),bodyAttributes:lt("bodyAttributes",n,a),htmlAttributes:lt("htmlAttributes",r,a),link:lt("link",d,a),meta:lt("meta",f,a),noscript:lt("noscript",s,a),script:lt("script",h,a),style:lt("style",i,a),title:lt("title",{title:o,titleAttributes:c},a)}},od=mE,Gi=[],sw=!!(typeof window<"u"&&window.document&&window.document.createElement),ld=class{constructor(e,t){Jt(this,"instances",[]);Jt(this,"canUseDOM",sw);Jt(this,"context");Jt(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Gi:this.instances,add:e=>{(this.canUseDOM?Gi:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Gi:this.instances).indexOf(e);(this.canUseDOM?Gi:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=od({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},gE={},iw=Ut.createContext(gE),Na,ow=(Na=class extends v.Component{constructor(n){super(n);Jt(this,"helmetData");this.helmetData=new ld(this.props.context||{},Na.canUseDOM)}render(){return Ut.createElement(iw.Provider,{value:this.helmetData.value},this.props.children)}},Jt(Na,"canUseDOM",sw),Na),qa=(e,t)=>{const n=document.head||document.querySelector("head"),a=n.querySelectorAll(`${e}[${kt}]`),r=[].slice.call(a),s=[];let i;return t&&t.length&&t.forEach(o=>{const c=document.createElement(e);for(const u in o)if(Object.prototype.hasOwnProperty.call(o,u))if(u==="innerHTML")c.innerHTML=o.innerHTML;else if(u==="cssText")c.styleSheet?c.styleSheet.cssText=o.cssText:c.appendChild(document.createTextNode(o.cssText));else{const d=u,f=typeof o[d]>"u"?"":o[d];c.setAttribute(u,f)}c.setAttribute(kt,"true"),r.some((u,d)=>(i=d,c.isEqualNode(u)))?r.splice(i,1):s.push(c)}),r.forEach(o=>{var c;return(c=o.parentNode)==null?void 0:c.removeChild(o)}),s.forEach(o=>n.appendChild(o)),{oldTags:r,newTags:s}},cd=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const a=n.getAttribute(kt),r=a?a.split(","):[],s=[...r],i=Object.keys(t);for(const o of i){const c=t[o]||"";n.getAttribute(o)!==c&&n.setAttribute(o,c),r.indexOf(o)===-1&&r.push(o);const u=s.indexOf(o);u!==-1&&s.splice(u,1)}for(let o=s.length-1;o>=0;o-=1)n.removeAttribute(s[o]);r.length===s.length?n.removeAttribute(kt):n.getAttribute(kt)!==i.join(",")&&n.setAttribute(kt,i.join(","))},xE=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=nw(e)),cd("title",t)},Lm=(e,t)=>{const{baseTag:n,bodyAttributes:a,htmlAttributes:r,linkTags:s,metaTags:i,noscriptTags:o,onChangeClientState:c,scriptTags:u,styleTags:d,title:f,titleAttributes:h}=e;cd("body",a),cd("html",r),xE(f,h);const m={baseTag:qa("base",n),linkTags:qa("link",s),metaTags:qa("meta",i),noscriptTags:qa("noscript",o),scriptTags:qa("script",u),styleTags:qa("style",d)},x={},w={};Object.keys(m).forEach(b=>{const{newTags:p,oldTags:g}=m[b];p.length&&(x[b]=p),g.length&&(w[b]=m[b].oldTags)}),t&&t(),c(e,x,w)},us=null,yE=e=>{us&&cancelAnimationFrame(us),e.defer?us=requestAnimationFrame(()=>{Lm(e,()=>{us=null})}):(Lm(e),us=null)},vE=yE,_m=class extends v.Component{constructor(){super(...arguments);Jt(this,"rendered",!1)}shouldComponentUpdate(t){return!tE(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let a=null;const r=lE(t.get().map(s=>{const i={...s.props};return delete i.context,i}));ow.canUseDOM?vE(r):od&&(a=od(r)),n(a)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},Qc,wE=(Qc=class extends v.Component{shouldComponentUpdate(e){return!XT(Om(this.props,"helmetData"),Om(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,a){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,a)}]}}mapObjectTypeChildren(e,t,n,a){switch(e.type){case"title":return{...t,[e.type]:a,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(a=>{n={...n,[a]:e[a]}}),n}warnOnInvalidChildren(e,t){return Dm(Mm.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Mm.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Dm(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return Ut.Children.forEach(e,a=>{if(!a||!a.props)return;const{children:r,...s}=a.props,i=Object.keys(s).reduce((c,u)=>(c[nE[u]||u]=s[u],c),{});let{type:o}=a;switch(typeof o=="symbol"?o=o.toString():this.warnOnInvalidChildren(a,r),o){case"Symbol(react.fragment)":t=this.mapChildrenToProps(r,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(a,n,i,r);break;default:t=this.mapObjectTypeChildren(a,t,i,r);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:a}=t;if(e&&(n=this.mapChildrenToProps(e,n)),a&&!(a instanceof ld)){const r=a;a=new ld(r.context,!0),delete n.helmetData}return a?Ut.createElement(_m,{...n,context:a.value}):Ut.createElement(iw.Consumer,null,r=>Ut.createElement(_m,{...n,context:r}))}},Jt(Qc,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),Qc);const bE=()=>{const e=Ha(),t=window.location.origin+e.pathname;return l.jsxs(l.Fragment,{children:[l.jsx(wE,{"data-id":"w3ubee001","data-path":"src/components/canonical-manager.tsx",children:l.jsx("link",{rel:"canonical",href:t,"data-id":"ufhxafheh","data-path":"src/components/canonical-manager.tsx"})}),l.jsx(AT,{"data-id":"hw3hgdymo","data-path":"src/components/canonical-manager.tsx"})]})},PE=If("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"}}),Ts=v.forwardRef(({className:e,variant:t,size:n,asChild:a=!1,...r},s)=>{const i=a?$j:"button";return l.jsx(i,{className:Ce(PE({variant:t,size:n,className:e})),ref:s,...r})});Ts.displayName="Button";const lw=v.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:Ce("rounded-xl border bg-card text-card-foreground shadow",e),...t}));lw.displayName="Card";const cw=v.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:Ce("flex flex-col space-y-1.5 p-6",e),...t}));cw.displayName="CardHeader";const uw=v.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:Ce("font-semibold leading-none tracking-tight",e),...t}));uw.displayName="CardTitle";const dw=v.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:Ce("text-sm text-muted-foreground",e),...t}));dw.displayName="CardDescription";const fw=v.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:Ce("p-6 pt-0",e),...t}));fw.displayName="CardContent";const hw=v.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:Ce("flex items-center p-6 pt-0",e),...t}));hw.displayName="CardFooter";const jE=If("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),pw=v.forwardRef(({className:e,variant:t,...n},a)=>l.jsx("div",{ref:a,role:"alert",className:Ce(jE({variant:t}),e),...n}));pw.displayName="Alert";const SE=v.forwardRef(({className:e,...t},n)=>l.jsx("h5",{ref:n,className:Ce("mb-1 font-medium leading-none tracking-tight",e),...t}));SE.displayName="AlertTitle";const mw=v.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:Ce("text-sm [&_p]:leading-relaxed",e),...t}));mw.displayName="AlertDescription";var CE="Separator",Im="horizontal",NE=["horizontal","vertical"],gw=v.forwardRef((e,t)=>{const{decorative:n,orientation:a=Im,...r}=e,s=kE(a)?a:Im,o=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return l.jsx(qe.div,{"data-orientation":s,...o,...r,ref:t})});gw.displayName=CE;function kE(e){return NE.includes(e)}var xw=gw;const yw=v.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...a},r)=>l.jsx(xw,{ref:r,decorative:n,orientation:t,className:Ce("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...a}));yw.displayName=xw.displayName;const TE=({error:e,resetErrorBoundary:t})=>{Ut.useEffect(()=>{e&&window.dispatchEvent(new ErrorEvent("error",{error:e,message:e.message,filename:window.location.href,lineno:0,colno:0}))},[e]);const n=()=>{window.location.reload()},a=()=>{window.location.href="/"};return l.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-4","data-id":"qgyjusxhj","data-path":"src/components/error-fallback.tsx",children:l.jsxs(lw,{className:"w-full max-w-md","data-id":"pv3ewd89q","data-path":"src/components/error-fallback.tsx",children:[l.jsxs(cw,{className:"text-center","data-id":"h4x11z546","data-path":"src/components/error-fallback.tsx",children:[l.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-destructive/15 ring-2 ring-destructive/20","data-id":"9mg9xdca6","data-path":"src/components/error-fallback.tsx",children:l.jsx(tm,{className:"h-8 w-8 text-destructive drop-shadow-sm","data-id":"kxhdx41ds","data-path":"src/components/error-fallback.tsx"})}),l.jsx(uw,{className:"text-xl font-semibold","data-id":"uu1cs6nay","data-path":"src/components/error-fallback.tsx",children:"Something went wrong"}),l.jsx(dw,{"data-id":"1536ps50y","data-path":"src/components/error-fallback.tsx",children:"Sorry, the application encountered an unexpected error"})]}),l.jsxs(fw,{className:"space-y-4","data-id":"ob2y8cdxs","data-path":"src/components/error-fallback.tsx",children:[e&&l.jsxs(pw,{variant:"destructive","data-id":"n7djw7ri3","data-path":"src/components/error-fallback.tsx",children:[l.jsx(tm,{className:"h-5 w-5","data-id":"37qqlwvno","data-path":"src/components/error-fallback.tsx"}),l.jsx(mw,{className:"text-sm","data-id":"chs1frw5j","data-path":"src/components/error-fallback.tsx",children:l.jsxs("details",{className:"mt-2","data-id":"9avtbgtzi","data-path":"src/components/error-fallback.tsx",children:[l.jsx("summary",{className:"cursor-pointer font-medium","data-id":"vr0lkqpe5","data-path":"src/components/error-fallback.tsx",children:"Error Details"}),l.jsx("div",{id:"capture-error-detail",className:"mt-2 text-xs font-mono bg-muted/80 dark:bg-muted/20 p-3 rounded border dark:border-border/50 overflow-auto max-h-32 text-foreground dark:text-muted-foreground","data-id":"i5z7kcvs8","data-path":"src/components/error-fallback.tsx",children:e.message})]})})]}),l.jsx("div",{className:"text-sm text-muted-foreground text-center","data-id":"4osodwfl9","data-path":"src/components/error-fallback.tsx",children:"You can try refreshing the page or returning to the homepage to resolve this issue"})]}),l.jsx(yw,{"data-id":"4co2r7w16","data-path":"src/components/error-fallback.tsx"}),l.jsxs(hw,{className:"flex flex-col gap-2 pt-6","data-id":"ol2l8xyti","data-path":"src/components/error-fallback.tsx",children:[l.jsxs("div",{className:"flex w-full gap-2","data-id":"lpx0zf8ic","data-path":"src/components/error-fallback.tsx",children:[t&&l.jsxs(Ts,{onClick:t,className:"flex-1",variant:"default","data-id":"jkcwbvuc0","data-path":"src/components/error-fallback.tsx",children:[l.jsx(Ku,{className:"mr-2 h-4 w-4 opacity-90","data-id":"d06tfc2lf","data-path":"src/components/error-fallback.tsx"}),"Retry"]}),l.jsxs(Ts,{onClick:n,variant:"outline",className:"flex-1","data-id":"3ceq5lx68","data-path":"src/components/error-fallback.tsx",children:[l.jsx(Ku,{className:"mr-2 h-4 w-4 opacity-90","data-id":"wndr7tjg4","data-path":"src/components/error-fallback.tsx"}),"Refresh Page"]})]}),l.jsxs(Ts,{onClick:a,variant:"ghost",className:"w-full","data-id":"4v7gvmw9i","data-path":"src/components/error-fallback.tsx",children:[l.jsx(za,{className:"mr-2 h-4 w-4 opacity-80","data-id":"mwh91nx9y","data-path":"src/components/error-fallback.tsx"}),"Go Home"]})]})]})})},vw=v.createContext({});function EE(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}const AE=typeof window<"u",RE=AE?v.useLayoutEffect:v.useEffect,th=v.createContext(null);function nh(e,t){e.indexOf(t)===-1&&e.push(t)}function sl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Yt=(e,t,n)=>n>t?t:n<e?e:n;let ah=()=>{};const na={},ww=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),bw=e=>typeof e=="object"&&e!==null,Pw=e=>/^0[^.\s]+$/u.test(e);function jw(e){let t;return()=>(t===void 0&&(t=e()),t)}const mt=e=>e,wi=(...e)=>e.reduce((t,n)=>a=>n(t(a))),ni=(e,t,n)=>{const a=t-e;return a?(n-e)/a:1};class rh{constructor(){this.subscriptions=[]}add(t){return nh(this.subscriptions,t),()=>sl(this.subscriptions,t)}notify(t,n,a){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,a);else for(let s=0;s<r;s++){const i=this.subscriptions[s];i&&i(t,n,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const at=e=>e*1e3,ht=e=>e/1e3,Sw=(e,t)=>t?e*(1e3/t):0,Cw=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,DE=1e-7,ME=12;function OE(e,t,n,a,r){let s,i,o=0;do i=t+(n-t)/2,s=Cw(i,a,r)-e,s>0?n=i:t=i;while(Math.abs(s)>DE&&++o<ME);return i}function bi(e,t,n,a){if(e===t&&n===a)return mt;const r=s=>OE(s,0,1,e,n);return s=>s===0||s===1?s:Cw(r(s),t,a)}const Nw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,kw=e=>t=>1-e(1-t),Tw=bi(.33,1.53,.69,.99),sh=kw(Tw),Ew=Nw(sh),Aw=e=>e>=1?1:(e*=2)<1?.5*sh(e):.5*(2-Math.pow(2,-10*(e-1))),ih=e=>1-Math.sin(Math.acos(e)),Rw=kw(ih),Dw=Nw(ih),LE=bi(.42,0,1,1),_E=bi(0,0,.58,1),Mw=bi(.42,0,.58,1),IE=e=>Array.isArray(e)&&typeof e[0]!="number",Ow=e=>Array.isArray(e)&&typeof e[0]=="number",FE={linear:mt,easeIn:LE,easeInOut:Mw,easeOut:_E,circIn:ih,circInOut:Dw,circOut:Rw,backIn:sh,backInOut:Ew,backOut:Tw,anticipate:Aw},zE=e=>typeof e=="string",Fm=e=>{if(Ow(e)){ah(e.length===4);const[t,n,a,r]=e;return bi(t,n,a,r)}else if(zE(e))return FE[e];return e},Qi=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function VE(e,t){let n=new Set,a=new Set,r=!1,s=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function c(d){i.has(d)&&(u.schedule(d),e()),d(o)}const u={schedule:(d,f=!1,h=!1)=>{const x=h&&r?n:a;return f&&i.add(d),x.add(d),d},cancel:d=>{a.delete(d),i.delete(d)},process:d=>{if(o=d,r){s=!0;return}r=!0;const f=n;n=a,a=f,n.forEach(c),n.clear(),r=!1,s&&(s=!1,u.process(d))}};return u}const BE=40;function Lw(e,t){let n=!1,a=!0;const r={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,i=Qi.reduce((y,P)=>(y[P]=VE(s),y),{}),{setup:o,read:c,resolveKeyframes:u,preUpdate:d,update:f,preRender:h,render:m,postRender:x}=i,w=()=>{const y=na.useManualTiming,P=y?r.timestamp:performance.now();n=!1,y||(r.delta=a?1e3/60:Math.max(Math.min(P-r.timestamp,BE),1)),r.timestamp=P,r.isProcessing=!0,o.process(r),c.process(r),u.process(r),d.process(r),f.process(r),h.process(r),m.process(r),x.process(r),r.isProcessing=!1,n&&t&&(a=!1,e(w))},b=()=>{n=!0,a=!0,r.isProcessing||e(w)};return{schedule:Qi.reduce((y,P)=>{const j=i[P];return y[P]=(S,C=!1,N=!1)=>(n||b(),j.schedule(S,C,N)),y},{}),cancel:y=>{for(let P=0;P<Qi.length;P++)i[Qi[P]].cancel(y)},state:r,steps:i}}const{schedule:te,cancel:aa,state:Te,steps:Mc}=Lw(typeof requestAnimationFrame<"u"?requestAnimationFrame:mt,!0);let yo;function HE(){yo=void 0}const Ve={now:()=>(yo===void 0&&Ve.set(Te.isProcessing||na.useManualTiming?Te.timestamp:performance.now()),yo),set:e=>{yo=e,queueMicrotask(HE)}},_w=e=>t=>typeof t=="string"&&t.startsWith(e),Iw=_w("--"),$E=_w("var(--"),oh=e=>$E(e)?UE.test(e.split("/*")[0].trim()):!1,UE=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function zm(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Gr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ai={...Gr,transform:e=>Yt(0,1,e)},Yi={...Gr,default:1},Es=e=>Math.round(e*1e5)/1e5,lh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function qE(e){return e==null}const WE=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ch=(e,t)=>n=>!!(typeof n=="string"&&WE.test(n)&&n.startsWith(e)||t&&!qE(n)&&Object.prototype.hasOwnProperty.call(n,t)),Fw=(e,t,n)=>a=>{if(typeof a!="string")return a;const[r,s,i,o]=a.match(lh);return{[e]:parseFloat(r),[t]:parseFloat(s),[n]:parseFloat(i),alpha:o!==void 0?parseFloat(o):1}},KE=e=>Yt(0,255,e),Oc={...Gr,transform:e=>Math.round(KE(e))},ya={test:ch("rgb","red"),parse:Fw("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:a=1})=>"rgba("+Oc.transform(e)+", "+Oc.transform(t)+", "+Oc.transform(n)+", "+Es(ai.transform(a))+")"};function GE(e){let t="",n="",a="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),a=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),a=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,a+=a,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(a,16),alpha:r?parseInt(r,16)/255:1}}const ud={test:ch("#"),parse:GE,transform:ya.transform},Pi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),nn=Pi("deg"),Qt=Pi("%"),I=Pi("px"),QE=Pi("vh"),YE=Pi("vw"),Vm={...Qt,parse:e=>Qt.parse(e)/100,transform:e=>Qt.transform(e*100)},sr={test:ch("hsl","hue"),parse:Fw("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:a=1})=>"hsla("+Math.round(e)+", "+Qt.transform(Es(t))+", "+Qt.transform(Es(n))+", "+Es(ai.transform(a))+")"},pe={test:e=>ya.test(e)||ud.test(e)||sr.test(e),parse:e=>ya.test(e)?ya.parse(e):sr.test(e)?sr.parse(e):ud.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ya.transform(e):sr.transform(e),getAnimatableNone:e=>{const t=pe.parse(e);return t.alpha=0,pe.transform(t)}},XE=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ZE(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(lh))==null?void 0:t.length)||0)+(((n=e.match(XE))==null?void 0:n.length)||0)>0}const zw="number",Vw="color",JE="var",e4="var(",Bm="${}",t4=/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 Fr(e){const t=e.toString(),n=[],a={color:[],number:[],var:[]},r=[];let s=0;const o=t.replace(t4,c=>(pe.test(c)?(a.color.push(s),r.push(Vw),n.push(pe.parse(c))):c.startsWith(e4)?(a.var.push(s),r.push(JE),n.push(c)):(a.number.push(s),r.push(zw),n.push(parseFloat(c))),++s,Bm)).split(Bm);return{values:n,split:o,indexes:a,types:r}}function n4(e){return Fr(e).values}function Bw({split:e,types:t}){const n=e.length;return a=>{let r="";for(let s=0;s<n;s++)if(r+=e[s],a[s]!==void 0){const i=t[s];i===zw?r+=Es(a[s]):i===Vw?r+=pe.transform(a[s]):r+=a[s]}return r}}function a4(e){return Bw(Fr(e))}const r4=e=>typeof e=="number"?0:pe.test(e)?pe.getAnimatableNone(e):e,s4=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:r4(e);function i4(e){const t=Fr(e);return Bw(t)(t.values.map((a,r)=>s4(a,t.split[r])))}const At={test:ZE,parse:n4,createTransformer:a4,getAnimatableNone:i4};function Lc(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 o4({hue:e,saturation:t,lightness:n,alpha:a}){e/=360,t/=100,n/=100;let r=0,s=0,i=0;if(!t)r=s=i=n;else{const o=n<.5?n*(1+t):n+t-n*t,c=2*n-o;r=Lc(c,o,e+1/3),s=Lc(c,o,e),i=Lc(c,o,e-1/3)}return{red:Math.round(r*255),green:Math.round(s*255),blue:Math.round(i*255),alpha:a}}function il(e,t){return n=>n>0?t:e}const ee=(e,t,n)=>e+(t-e)*n,_c=(e,t,n)=>{const a=e*e,r=n*(t*t-a)+a;return r<0?0:Math.sqrt(r)},l4=[ud,ya,sr],c4=e=>l4.find(t=>t.test(e));function Hm(e){const t=c4(e);if(!t)return!1;let n=t.parse(e);return t===sr&&(n=o4(n)),n}const $m=(e,t)=>{const n=Hm(e),a=Hm(t);if(!n||!a)return il(e,t);const r={...n};return s=>(r.red=_c(n.red,a.red,s),r.green=_c(n.green,a.green,s),r.blue=_c(n.blue,a.blue,s),r.alpha=ee(n.alpha,a.alpha,s),ya.transform(r))},dd=new Set(["none","hidden"]);function u4(e,t){return dd.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function d4(e,t){return n=>ee(e,t,n)}function uh(e){return typeof e=="number"?d4:typeof e=="string"?oh(e)?il:pe.test(e)?$m:p4:Array.isArray(e)?Hw:typeof e=="object"?pe.test(e)?$m:f4:il}function Hw(e,t){const n=[...e],a=n.length,r=e.map((s,i)=>uh(s)(s,t[i]));return s=>{for(let i=0;i<a;i++)n[i]=r[i](s);return n}}function f4(e,t){const n={...e,...t},a={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(a[r]=uh(e[r])(e[r],t[r]));return r=>{for(const s in a)n[s]=a[s](r);return n}}function h4(e,t){const n=[],a={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const s=t.types[r],i=e.indexes[s][a[s]],o=e.values[i]??0;n[r]=o,a[s]++}return n}const p4=(e,t)=>{const n=At.createTransformer(t),a=Fr(e),r=Fr(t);return a.indexes.var.length===r.indexes.var.length&&a.indexes.color.length===r.indexes.color.length&&a.indexes.number.length>=r.indexes.number.length?dd.has(e)&&!r.values.length||dd.has(t)&&!a.values.length?u4(e,t):wi(Hw(h4(a,r),r.values),n):il(e,t)};function $w(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ee(e,t,n):uh(e)(e,t)}const m4=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>te.update(t,n),stop:()=>aa(t),now:()=>Te.isProcessing?Te.timestamp:Ve.now()}},Uw=(e,t,n=10)=>{let a="";const r=Math.max(Math.round(t/n),2);for(let s=0;s<r;s++)a+=Math.round(e(s/(r-1))*1e4)/1e4+", ";return`linear(${a.substring(0,a.length-2)})`},ol=2e4;function dh(e){let t=0;const n=50;let a=e.next(t);for(;!a.done&&t<ol;)t+=n,a=e.next(t);return t>=ol?1/0:t}function g4(e,t=100,n){const a=n({...e,keyframes:[0,t]}),r=Math.min(dh(a),ol);return{type:"keyframes",ease:s=>a.next(r*s).value/t,duration:ht(r)}}const de={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};function fd(e,t){return e*Math.sqrt(1-t*t)}const x4=12;function y4(e,t,n){let a=n;for(let r=1;r<x4;r++)a=a-e(a)/t(a);return a}const Ic=.001;function v4({duration:e=de.duration,bounce:t=de.bounce,velocity:n=de.velocity,mass:a=de.mass}){let r,s,i=1-t;i=Yt(de.minDamping,de.maxDamping,i),e=Yt(de.minDuration,de.maxDuration,ht(e)),i<1?(r=u=>{const d=u*i,f=d*e,h=d-n,m=fd(u,i),x=Math.exp(-f);return Ic-h/m*x},s=u=>{const f=u*i*e,h=f*n+n,m=Math.pow(i,2)*Math.pow(u,2)*e,x=Math.exp(-f),w=fd(Math.pow(u,2),i);return(-r(u)+Ic>0?-1:1)*((h-m)*x)/w}):(r=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-Ic+d*f},s=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const o=5/e,c=y4(r,s,o);if(e=at(e),isNaN(c))return{stiffness:de.stiffness,damping:de.damping,duration:e};{const u=Math.pow(c,2)*a;return{stiffness:u,damping:i*2*Math.sqrt(a*u),duration:e}}}const w4=["duration","bounce"],b4=["stiffness","damping","mass"];function Um(e,t){return t.some(n=>e[n]!==void 0)}function P4(e){let t={velocity:de.velocity,stiffness:de.stiffness,damping:de.damping,mass:de.mass,isResolvedFromDuration:!1,...e};if(!Um(e,b4)&&Um(e,w4))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,a=2*Math.PI/(n*1.2),r=a*a,s=2*Yt(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:de.mass,stiffness:r,damping:s}}else{const n=v4({...e,velocity:0});t={...t,...n,mass:de.mass},t.isResolvedFromDuration=!0}return t}function ll(e=de.visualDuration,t=de.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:a,restDelta:r}=n;const s=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],o={done:!1,value:s},{stiffness:c,damping:u,mass:d,duration:f,velocity:h,isResolvedFromDuration:m}=P4({...n,velocity:-ht(n.velocity||0)}),x=h||0,w=u/(2*Math.sqrt(c*d)),b=i-s,p=ht(Math.sqrt(c/d)),g=Math.abs(b)<5;a||(a=g?de.restSpeed.granular:de.restSpeed.default),r||(r=g?de.restDelta.granular:de.restDelta.default);let y,P,j,S,C,N;if(w<1)j=fd(p,w),S=(x+w*p*b)/j,y=E=>{const _=Math.exp(-w*p*E);return i-_*(S*Math.sin(j*E)+b*Math.cos(j*E))},C=w*p*S+b*j,N=w*p*b-S*j,P=E=>Math.exp(-w*p*E)*(C*Math.sin(j*E)+N*Math.cos(j*E));else if(w===1){y=_=>i-Math.exp(-p*_)*(b+(x+p*b)*_);const E=x+p*b;P=_=>Math.exp(-p*_)*(p*E*_-x)}else{const E=p*Math.sqrt(w*w-1);y=M=>{const U=Math.exp(-w*p*M),z=Math.min(E*M,300);return i-U*((x+w*p*b)*Math.sinh(z)+E*b*Math.cosh(z))/E};const _=(x+w*p*b)/E,O=w*p*_-b*E,$=w*p*b-_*E;P=M=>{const U=Math.exp(-w*p*M),z=Math.min(E*M,300);return U*(O*Math.sinh(z)+$*Math.cosh(z))}}const R={calculatedDuration:m&&f||null,velocity:E=>at(P(E)),next:E=>{if(!m&&w<1){const O=Math.exp(-w*p*E),$=Math.sin(j*E),M=Math.cos(j*E),U=i-O*(S*$+b*M),z=at(O*(C*$+N*M));return o.done=Math.abs(z)<=a&&Math.abs(i-U)<=r,o.value=o.done?i:U,o}const _=y(E);if(m)o.done=E>=f;else{const O=at(P(E));o.done=Math.abs(O)<=a&&Math.abs(i-_)<=r}return o.value=o.done?i:_,o},toString:()=>{const E=Math.min(dh(R),ol),_=Uw(O=>R.next(E*O).value,E,30);return E+"ms "+_},toTransition:()=>{}};return R}ll.applyToOptions=e=>{const t=g4(e,100,ll);return e.ease=t.ease,e.duration=at(t.duration),e.type="keyframes",e};const j4=5;function qw(e,t,n){const a=Math.max(t-j4,0);return Sw(n-e(a),t-a)}function hd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:a=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:i,min:o,max:c,restDelta:u=.5,restSpeed:d}){const f=e[0],h={done:!1,value:f},m=N=>o!==void 0&&N<o||c!==void 0&&N>c,x=N=>o===void 0?c:c===void 0||Math.abs(o-N)<Math.abs(c-N)?o:c;let w=n*t;const b=f+w,p=i===void 0?b:i(b);p!==b&&(w=p-f);const g=N=>-w*Math.exp(-N/a),y=N=>p+g(N),P=N=>{const R=g(N),E=y(N);h.done=Math.abs(R)<=u,h.value=h.done?p:E};let j,S;const C=N=>{m(h.value)&&(j=N,S=ll({keyframes:[h.value,x(h.value)],velocity:qw(y,N,h.value),damping:r,stiffness:s,restDelta:u,restSpeed:d}))};return C(0),{calculatedDuration:null,next:N=>{let R=!1;return!S&&j===void 0&&(R=!0,P(N),C(N)),j!==void 0&&N>=j?S.next(N-j):(!R&&P(N),h)}}}function S4(e,t,n){const a=[],r=n||na.mix||$w,s=e.length-1;for(let i=0;i<s;i++){let o=r(e[i],e[i+1]);if(t){const c=Array.isArray(t)?t[i]||mt:t;o=wi(c,o)}a.push(o)}return a}function C4(e,t,{clamp:n=!0,ease:a,mixer:r}={}){const s=e.length;if(ah(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const i=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=S4(t,a,r),c=o.length,u=d=>{if(i&&d<e[0])return t[0];let f=0;if(c>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=ni(e[f],e[f+1],d);return o[f](h)};return n?d=>u(Yt(e[0],e[s-1],d)):u}function N4(e,t){const n=e[e.length-1];for(let a=1;a<=t;a++){const r=ni(0,t,a);e.push(ee(n,1,r))}}function k4(e){const t=[0];return N4(t,e.length-1),t}function T4(e,t){return e.map(n=>n*t)}function E4(e,t){return e.map(()=>t||Mw).splice(0,e.length-1)}function As({duration:e=300,keyframes:t,times:n,ease:a="easeInOut"}){const r=IE(a)?a.map(Fm):Fm(a),s={done:!1,value:t[0]},i=T4(n&&n.length===t.length?n:k4(t),e),o=C4(i,t,{ease:Array.isArray(r)?r:E4(t,r)});return{calculatedDuration:e,next:c=>(s.value=o(c),s.done=c>=e,s)}}const A4=e=>e!==null;function Ul(e,{repeat:t,repeatType:n="loop"},a,r=1){const s=e.filter(A4),o=r<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!o||a===void 0?s[o]:a}const R4={decay:hd,inertia:hd,tween:As,keyframes:As,spring:ll};function Ww(e){typeof e.type=="string"&&(e.type=R4[e.type])}class fh{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const D4=e=>e/100;class cl extends fh{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var a,r;const{motionValue:n}=this.options;n&&n.updatedAt!==Ve.now()&&this.tick(Ve.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(r=(a=this.options).onStop)==null||r.call(a))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Ww(t);const{type:n=As,repeat:a=0,repeatDelay:r=0,repeatType:s,velocity:i=0}=t;let{keyframes:o}=t;const c=n||As;c!==As&&typeof o[0]!="number"&&(this.mixKeyframes=wi(D4,$w(o[0],o[1])),o=[0,100]);const u=c({...t,keyframes:o});s==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...o].reverse(),velocity:-i})),u.calculatedDuration===null&&(u.calculatedDuration=dh(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+r,this.totalDuration=this.resolvedDuration*(a+1)-r,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:a,totalDuration:r,mixKeyframes:s,mirroredGenerator:i,resolvedDuration:o,calculatedDuration:c}=this;if(this.startTime===null)return a.next(0);const{delay:u=0,keyframes:d,repeat:f,repeatType:h,repeatDelay:m,type:x,onUpdate:w,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const p=this.currentTime-u*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?p<0:p>r;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let y=this.currentTime,P=a;if(f){const N=Math.min(this.currentTime,r)/o;let R=Math.floor(N),E=N%1;!E&&N>=1&&(E=1),E===1&&R--,R=Math.min(R,f+1),!!(R%2)&&(h==="reverse"?(E=1-E,m&&(E-=m/o)):h==="mirror"&&(P=i)),y=Yt(0,1,E)*o}let j;g?(this.delayState.value=d[0],j=this.delayState):j=P.next(y),s&&!g&&(j.value=s(j.value));let{done:S}=j;!g&&c!==null&&(S=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return C&&x!==hd&&(j.value=Ul(d,this.options,b,this.speed)),w&&w(j.value),C&&this.finish(),j}then(t,n){return this.finished.then(t,n)}get duration(){return ht(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ht(t)}get time(){return ht(this.currentTime)}set time(t){t=at(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return qw(a=>this.generator.next(a).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(Ve.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=ht(this.currentTime))}play(){var r,s;if(this.isStopped)return;const{driver:t=m4,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),(s=(r=this.options).onPlay)==null||s.call(r);const a=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=a):this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime||(this.startTime=n??a),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ve.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function M4(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const va=e=>e*180/Math.PI,pd=e=>{const t=va(Math.atan2(e[1],e[0]));return md(t)},O4={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:pd,rotateZ:pd,skewX:e=>va(Math.atan(e[1])),skewY:e=>va(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},md=e=>(e=e%360,e<0&&(e+=360),e),qm=pd,Wm=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Km=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),L4={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Wm,scaleY:Km,scale:e=>(Wm(e)+Km(e))/2,rotateX:e=>md(va(Math.atan2(e[6],e[5]))),rotateY:e=>md(va(Math.atan2(-e[2],e[0]))),rotateZ:qm,rotate:qm,skewX:e=>va(Math.atan(e[4])),skewY:e=>va(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function gd(e){return e.includes("scale")?1:0}function xd(e,t){if(!e||e==="none")return gd(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let a,r;if(n)a=L4,r=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);a=O4,r=o}if(!r)return gd(t);const s=a[t],i=r[1].split(",").map(I4);return typeof s=="function"?s(i):i[s]}const _4=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return xd(n,t)};function I4(e){return parseFloat(e.trim())}const Qr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Yr=new Set([...Qr,"pathRotation"]),Gm=e=>e===Gr||e===I,F4=new Set(["x","y","z"]),z4=Qr.filter(e=>!F4.has(e));function V4(e){const t=[];return z4.forEach(n=>{const a=e.getValue(n);a!==void 0&&(t.push([n,a.get()]),a.set(n.startsWith("scale")?1:0))}),t}const Vn={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:a})=>{const r=e.max-e.min;return a==="border-box"?r:r-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:a})=>{const r=e.max-e.min;return a==="border-box"?r:r-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:(e,{transform:t})=>xd(t,"x"),y:(e,{transform:t})=>xd(t,"y")};Vn.translateX=Vn.x;Vn.translateY=Vn.y;const Ea=new Set;let yd=!1,vd=!1,wd=!1;function Kw(){if(vd){const e=Array.from(Ea).filter(a=>a.needsMeasurement),t=new Set(e.map(a=>a.element)),n=new Map;t.forEach(a=>{const r=V4(a);r.length&&(n.set(a,r),a.render())}),e.forEach(a=>a.measureInitialState()),t.forEach(a=>{a.render();const r=n.get(a);r&&r.forEach(([s,i])=>{var o;(o=a.getValue(s))==null||o.set(i)})}),e.forEach(a=>a.measureEndState()),e.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}vd=!1,yd=!1,Ea.forEach(e=>e.complete(wd)),Ea.clear()}function Gw(){Ea.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(vd=!0)})}function B4(){wd=!0,Gw(),Kw(),wd=!1}class hh{constructor(t,n,a,r,s,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=a,this.motionValue=r,this.element=s,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(Ea.add(this),yd||(yd=!0,te.read(Gw),te.resolveKeyframes(Kw))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:a,motionValue:r}=this;if(t[0]===null){const s=r==null?void 0:r.get(),i=t[t.length-1];if(s!==void 0)t[0]=s;else if(a&&n){const o=a.readValue(n,i);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=i),r&&s===void 0&&r.set(t[0])}M4(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ea.delete(this)}cancel(){this.state==="scheduled"&&(Ea.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const H4=e=>e.startsWith("--");function Qw(e,t,n){H4(t)?e.style.setProperty(t,n):e.style[t]=n}const $4={};function Yw(e,t){const n=jw(e);return()=>$4[t]??n()}const U4=Yw(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Xw=Yw(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),xs=([e,t,n,a])=>`cubic-bezier(${e}, ${t}, ${n}, ${a})`,Qm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xs([0,.65,.55,1]),circOut:xs([.55,0,1,.45]),backIn:xs([.31,.01,.66,-.59]),backOut:xs([.33,1.53,.69,.99])};function Zw(e,t){if(e)return typeof e=="function"?Xw()?Uw(e,t):"ease-out":Ow(e)?xs(e):Array.isArray(e)?e.map(n=>Zw(n,t)||Qm.easeOut):Qm[e]}function q4(e,t,n,{delay:a=0,duration:r=300,repeat:s=0,repeatType:i="loop",ease:o="easeOut",times:c}={},u=void 0){const d={[t]:n};c&&(d.offset=c);const f=Zw(o,r);Array.isArray(f)&&(d.easing=f);const h={delay:a,duration:r,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:i==="reverse"?"alternate":"normal"};return u&&(h.pseudoElement=u),e.animate(d,h)}function Jw(e){return typeof e=="function"&&"applyToOptions"in e}function W4({type:e,...t}){return Jw(e)&&Xw()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class eb extends fh{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:a,keyframes:r,pseudoElement:s,allowFlatten:i=!1,finalKeyframe:o,onComplete:c}=t;this.isPseudoElement=!!s,this.allowFlatten=i,this.options=t,ah(typeof t.type!="string");const u=W4(t);this.animation=q4(n,a,r,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const d=Ul(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(d),Qw(n,a,d),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,a,r;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((r=(a=this.animation).commitStyles)==null||r.call(a))}get duration(){var n,a;const t=((a=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:a.call(n).duration)||0;return ht(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ht(t)}get time(){return ht(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=at(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:a,observe:r}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&U4()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),a&&(this.animation.rangeEnd=a),mt):r(this)}}const tb={anticipate:Aw,backInOut:Ew,circInOut:Dw};function K4(e){return e in tb}function G4(e){typeof e.ease=="string"&&K4(e.ease)&&(e.ease=tb[e.ease])}const Fc=10;class Q4 extends eb{constructor(t){G4(t),Ww(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:a,onComplete:r,element:s,...i}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const o=new cl({...i,autoplay:!1}),c=Math.max(Fc,Ve.now()-this.startTime),u=Yt(0,Fc,c-Fc),d=o.sample(c).value,{name:f}=this.options;s&&f&&Qw(s,f,d),n.setWithVelocity(o.sample(Math.max(0,c-u)).value,d,u),o.stop()}}const Ym=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(At.test(e)||e==="0")&&!e.startsWith("url("));function Y4(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 X4(e,t,n,a){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],i=Ym(r,t),o=Ym(s,t);return!i||!o?!1:Y4(e)||(n==="spring"||Jw(n))&&a}function bd(e){e.duration=0,e.type="keyframes"}const nb=new Set(["opacity","clipPath","filter","transform"]),Z4=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function J4(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&Z4.test(e[t]))return!0;return!1}const eA=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),tA=jw(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function nA(e){var f;const{motionValue:t,name:n,repeatDelay:a,repeatType:r,damping:s,type:i,keyframes:o}=e;if(!(((f=t==null?void 0:t.owner)==null?void 0:f.current)instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=t.owner.getProps();return tA()&&n&&(nb.has(n)||eA.has(n)&&J4(o))&&(n!=="transform"||!d)&&!u&&!a&&r!=="mirror"&&s!==0&&i!=="inertia"}const aA=40;class rA extends fh{constructor({autoplay:t=!0,delay:n=0,type:a="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:i="loop",keyframes:o,name:c,motionValue:u,element:d,...f}){var x;super(),this.stop=()=>{var w,b;this._animation&&(this._animation.stop(),(w=this.stopTimeline)==null||w.call(this)),(b=this.keyframeResolver)==null||b.cancel()},this.createdAt=Ve.now();const h={autoplay:t,delay:n,type:a,repeat:r,repeatDelay:s,repeatType:i,name:c,motionValue:u,element:d,...f},m=(d==null?void 0:d.KeyframeResolver)||hh;this.keyframeResolver=new m(o,(w,b,p)=>this.onKeyframesResolved(w,b,h,!p),c,u,d),(x=this.keyframeResolver)==null||x.scheduleResolve()}onKeyframesResolved(t,n,a,r){var p,g;this.keyframeResolver=void 0;const{name:s,type:i,velocity:o,delay:c,isHandoff:u,onUpdate:d}=a;this.resolvedAt=Ve.now();let f=!0;X4(t,s,i,o)||(f=!1,(na.instantAnimations||!c)&&(d==null||d(Ul(t,a,n))),t[0]=t[t.length-1],bd(a),a.repeat=0);const m={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>aA?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...a,keyframes:t},x=f&&!u&&nA(m),w=(g=(p=m.motionValue)==null?void 0:p.owner)==null?void 0:g.current;let b;if(x)try{b=new Q4({...m,element:w})}catch{b=new cl(m)}else b=new cl(m);b.finished.then(()=>{this.notifyFinished()}).catch(mt),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),B4()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function ab(e,t,n,a=0,r=1){const s=Array.from(e).sort((u,d)=>u.sortNodePosition(d)).indexOf(t),i=e.size,o=(i-1)*a;return typeof n=="function"?n(s,i):r===1?s*a:o-s*a}const Xm=30,sA=e=>!isNaN(parseFloat(e));class iA{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{var s;const r=Ve.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ve.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=sA(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 rh);const a=this.events[t].add(n);return t==="change"?()=>{a(),te.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,a){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-a}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ve.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Xm)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Xm);return Sw(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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function zr(e,t){return new iA(e,t)}function rb(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...a}=e;return{...t,...a}}return e}function ph(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?rb(n,e):n}const oA={type:"spring",stiffness:500,damping:25,restSpeed:10},lA=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),cA={type:"keyframes",duration:.8},uA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dA=(e,{keyframes:t})=>t.length>2?cA:Yr.has(e)?e.startsWith("scale")?lA(t[1]):oA:uA,fA=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function hA(e){for(const t in e)if(!fA.has(t))return!0;return!1}const mh=(e,t,n,a={},r,s)=>i=>{const o=ph(a,e)||{},c=o.delay||a.delay||0;let{elapsed:u=0}=a;u=u-at(c);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-u,onUpdate:h=>{t.set(h),o.onUpdate&&o.onUpdate(h)},onComplete:()=>{i(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:r};hA(o)||Object.assign(d,dA(e,d)),d.duration&&(d.duration=at(d.duration)),d.repeatDelay&&(d.repeatDelay=at(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(bd(d),d.delay===0&&(f=!0)),(na.instantAnimations||na.skipAnimations||r!=null&&r.shouldSkipAnimations||o.skipAnimations)&&(f=!0,bd(d),d.delay=0),d.allowFlatten=!o.type&&!o.ease,f&&!s&&t.get()!==void 0){const h=Ul(d.keyframes,o);if(h!==void 0){te.update(()=>{d.onUpdate(h),d.onComplete()});return}}return o.isSync?new cl(d):new rA(d)},pA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function mA(e){const t=pA.exec(e);if(!t)return[,];const[,n,a,r]=t;return[`--${n??a}`,r]}function sb(e,t,n=1){const[a,r]=mA(e);if(!a)return;const s=window.getComputedStyle(t).getPropertyValue(a);if(s){const i=s.trim();return ww(i)?parseFloat(i):i}return oh(r)?sb(r,t,n+1):r}function Zm(e){const t=[{},{}];return e==null||e.values.forEach((n,a)=>{t[0][a]=n.get(),t[1][a]=n.getVelocity()}),t}function gh(e,t,n,a){if(typeof t=="function"){const[r,s]=Zm(a);t=t(n!==void 0?n:e.custom,r,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,s]=Zm(a);t=t(n!==void 0?n:e.custom,r,s)}return t}function Aa(e,t,n){const a=e.getProps();return gh(a,t,n!==void 0?n:a.custom,e)}const ib=new Set(["width","height","top","left","right","bottom",...Qr]),Pd=e=>Array.isArray(e);function gA(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,zr(n))}function xA(e){return Pd(e)?e[e.length-1]||0:e}function yA(e,t){const n=Aa(e,t);let{transitionEnd:a={},transition:r={},...s}=n||{};s={...s,...a};for(const i in s){const o=xA(s[i]);gA(e,i,o)}}const Ee=e=>!!(e&&e.getVelocity);function vA(e){return!!(Ee(e)&&e.add)}function jd(e,t){const n=e.getValue("willChange");if(vA(n))return n.add(t);if(!n&&na.WillChange){const a=new na.WillChange("auto");e.addValue("willChange",a),a.add(t)}}function xh(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const wA="framerAppearId",ob="data-"+xh(wA);function lb(e){return e.props[ob]}function bA({protectedKeys:e,needsAnimating:t},n){const a=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,a}function cb(e,t,{delay:n=0,transitionOverride:a,type:r}={}){let{transition:s,transitionEnd:i,...o}=t;const c=e.getDefaultTransition();s=s?rb(s,c):c;const u=s==null?void 0:s.reduceMotion,d=s==null?void 0:s.skipAnimations;a&&(s=a);const f=[],h=r&&e.animationState&&e.animationState.getState()[r],m=s==null?void 0:s.path;m&&m.animateVisualElement(e,o,s,n,f);for(const x in o){const w=e.getValue(x,e.latestValues[x]??null),b=o[x];if(b===void 0||h&&bA(h,x))continue;const p={delay:n,...ph(s||{},x)};d&&(p.skipAnimations=!0);const g=w.get();if(g!==void 0&&!w.isAnimating()&&!Array.isArray(b)&&b===g&&!p.velocity){te.update(()=>w.set(b));continue}let y=!1;if(window.MotionHandoffAnimation){const S=lb(e);if(S){const C=window.MotionHandoffAnimation(S,x,te);C!==null&&(p.startTime=C,y=!0)}}jd(e,x);const P=u??e.shouldReduceMotion;w.start(mh(x,w,b,P&&ib.has(x)?{type:!1}:p,e,y));const j=w.animation;j&&f.push(j)}if(i){const x=()=>te.update(()=>{i&&yA(e,i)});f.length?Promise.all(f).then(x):x()}return f}function Sd(e,t,n={}){var c;const a=Aa(e,t,n.type==="exit"?(c=e.presenceContext)==null?void 0:c.custom:void 0);let{transition:r=e.getDefaultTransition()||{}}=a||{};n.transitionOverride&&(r=n.transitionOverride);const s=a?()=>Promise.all(cb(e,a,n)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:h}=r;return PA(e,t,u,d,f,h,n)}:()=>Promise.resolve(),{when:o}=r;if(o){const[u,d]=o==="beforeChildren"?[s,i]:[i,s];return u().then(()=>d())}else return Promise.all([s(),i(n.delay)])}function PA(e,t,n=0,a=0,r=0,s=1,i){const o=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),o.push(Sd(c,t,{...i,delay:n+(typeof a=="function"?0:a)+ab(e.variantChildren,c,a,r,s)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(o)}function jA(e,t,n={}){e.notify("AnimationStart",t);let a;if(Array.isArray(t)){const r=t.map(s=>Sd(e,s,n));a=Promise.all(r)}else if(typeof t=="string")a=Sd(e,t,n);else{const r=typeof t=="function"?Aa(e,t,n.custom):t;a=Promise.all(cb(e,r,n))}return a.then(()=>{e.notify("AnimationComplete",t)})}const SA={test:e=>e==="auto",parse:e=>e},ub=e=>t=>t.test(e),db=[Gr,I,Qt,nn,YE,QE,SA],Jm=e=>db.find(ub(e));function CA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Pw(e):!0}const NA=new Set(["brightness","contrast","saturate","opacity"]);function kA(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[a]=n.match(lh)||[];if(!a)return e;const r=n.replace(a,"");let s=NA.has(t)?1:0;return a!==n&&(s*=100),t+"("+s+r+")"}const TA=/\b([a-z-]*)\(.*?\)/gu,Cd={...At,getAnimatableNone:e=>{const t=e.match(TA);return t?t.map(kA).join(" "):e}},Nd={...At,getAnimatableNone:e=>{const t=At.parse(e);return At.createTransformer(e)(t.map(a=>typeof a=="number"?0:typeof a=="object"?{...a,alpha:1}:a))}},eg={...Gr,transform:Math.round},EA={rotate:nn,pathRotation:nn,rotateX:nn,rotateY:nn,rotateZ:nn,scale:Yi,scaleX:Yi,scaleY:Yi,scaleZ:Yi,skew:nn,skewX:nn,skewY:nn,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:ai,originX:Vm,originY:Vm,originZ:I},ul={borderWidth:I,borderTopWidth:I,borderRightWidth:I,borderBottomWidth:I,borderLeftWidth:I,borderRadius:I,borderTopLeftRadius:I,borderTopRightRadius:I,borderBottomRightRadius:I,borderBottomLeftRadius:I,width:I,maxWidth:I,height:I,maxHeight:I,top:I,right:I,bottom:I,left:I,inset:I,insetBlock:I,insetBlockStart:I,insetBlockEnd:I,insetInline:I,insetInlineStart:I,insetInlineEnd:I,padding:I,paddingTop:I,paddingRight:I,paddingBottom:I,paddingLeft:I,paddingBlock:I,paddingBlockStart:I,paddingBlockEnd:I,paddingInline:I,paddingInlineStart:I,paddingInlineEnd:I,margin:I,marginTop:I,marginRight:I,marginBottom:I,marginLeft:I,marginBlock:I,marginBlockStart:I,marginBlockEnd:I,marginInline:I,marginInlineStart:I,marginInlineEnd:I,fontSize:I,backgroundPositionX:I,backgroundPositionY:I,...EA,zIndex:eg,fillOpacity:ai,strokeOpacity:ai,numOctaves:eg},AA={...ul,color:pe,backgroundColor:pe,outlineColor:pe,fill:pe,stroke:pe,borderColor:pe,borderTopColor:pe,borderRightColor:pe,borderBottomColor:pe,borderLeftColor:pe,filter:Cd,WebkitFilter:Cd,mask:Nd,WebkitMask:Nd},fb=e=>AA[e],RA=new Set([Cd,Nd]);function hb(e,t){let n=fb(e);return RA.has(n)||(n=At),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const DA=new Set(["auto","none","0"]);function MA(e,t,n){let a=0,r;for(;a<e.length&&!r;){const s=e[a];typeof s=="string"&&!DA.has(s)&&Fr(s).values.length&&(r=e[a]),a++}if(r&&n)for(const s of t)e[s]=hb(n,r)}class OA extends hh{constructor(t,n,a,r,s){super(t,n,a,r,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:a}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let f=t[d];if(typeof f=="string"&&(f=f.trim(),oh(f))){const h=sb(f,n.current);h!==void 0&&(t[d]=h),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!ib.has(a)||t.length!==2)return;const[r,s]=t,i=Jm(r),o=Jm(s),c=zm(r),u=zm(s);if(c!==u&&Vn[a]){this.needsMeasurement=!0;return}if(i!==o)if(Gm(i)&&Gm(o))for(let d=0;d<t.length;d++){const f=t[d];typeof f=="string"&&(t[d]=parseFloat(f))}else Vn[a]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,a=[];for(let r=0;r<t.length;r++)(t[r]===null||CA(t[r]))&&a.push(r);a.length&&MA(t,a,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:a}=this;if(!t||!t.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Vn[a](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(a,r).jump(r,!1)}measureEndState(){var o;const{element:t,name:n,unresolvedKeyframes:a}=this;if(!t||!t.current)return;const r=t.getValue(n);r&&r.jump(this.measuredOrigin,!1);const s=a.length-1,i=a[s];a[s]=Vn[n](t.measureViewportBox(),window.getComputedStyle(t.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),(o=this.removedTransforms)!=null&&o.length&&this.removedTransforms.forEach(([c,u])=>{t.getValue(c).set(u)}),this.resolveNoneKeyframes()}}function pb(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let a=document;const r=(n==null?void 0:n[e])??a.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e).filter(a=>a!=null)}const kd=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function LA(e){return bw(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:yh}=Lw(queueMicrotask,!1),bt={x:!1,y:!1};function mb(){return bt.x||bt.y}function _A(e){return e==="x"||e==="y"?bt[e]?null:(bt[e]=!0,()=>{bt[e]=!1}):bt.x||bt.y?null:(bt.x=bt.y=!0,()=>{bt.x=bt.y=!1})}function gb(e,t){const n=pb(e),a=new AbortController,r={passive:!0,...t,signal:a.signal};return[n,r,()=>a.abort()]}function IA(e){return!(e.pointerType==="touch"||mb())}function FA(e,t,n={}){const[a,r,s]=gb(e,n);return a.forEach(i=>{let o=!1,c=!1,u;const d=()=>{i.removeEventListener("pointerleave",x)},f=b=>{u&&(u(b),u=void 0),d()},h=b=>{o=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),c&&(c=!1,f(b))},m=()=>{o=!0,window.addEventListener("pointerup",h,r),window.addEventListener("pointercancel",h,r)},x=b=>{if(b.pointerType!=="touch"){if(o){c=!0;return}f(b)}},w=b=>{if(!IA(b))return;c=!1;const p=t(i,b);typeof p=="function"&&(u=p,i.addEventListener("pointerleave",x,r))};i.addEventListener("pointerenter",w,r),i.addEventListener("pointerdown",m,r)}),s}const xb=(e,t)=>t?e===t?!0:xb(e,t.parentElement):!1,vh=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,zA=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function VA(e){return zA.has(e.tagName)||e.isContentEditable===!0}const BA=new Set(["INPUT","SELECT","TEXTAREA"]);function HA(e){return BA.has(e.tagName)||e.isContentEditable===!0}const vo=new WeakSet;function tg(e){return t=>{t.key==="Enter"&&e(t)}}function zc(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const $A=(e,t)=>{const n=e.currentTarget;if(!n)return;const a=tg(()=>{if(vo.has(n))return;zc(n,"down");const r=tg(()=>{zc(n,"up")}),s=()=>zc(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",a,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",a),t)};function ng(e){return vh(e)&&!mb()}const ag=new WeakSet;function UA(e,t,n={}){const[a,r,s]=gb(e,n),i=o=>{const c=o.currentTarget;if(!ng(o)||ag.has(o))return;vo.add(c),n.stopPropagation&&ag.add(o);const u=t(c,o),d=(m,x)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),vo.has(c)&&vo.delete(c),ng(m)&&typeof u=="function"&&u(m,{success:x})},f=m=>{d(m,c===window||c===document||n.useGlobalTarget||xb(c,m.target))},h=m=>{d(m,!1)};window.addEventListener("pointerup",f,r),window.addEventListener("pointercancel",h,r)};return a.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",i,r),LA(o)&&(o.addEventListener("focus",u=>$A(u,r)),!VA(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),s}function wh(e){return bw(e)&&"ownerSVGElement"in e}const wo=new WeakMap;let Nn;const yb=(e,t,n)=>(a,r)=>r&&r[0]?r[0][e+"Size"]:wh(a)&&"getBBox"in a?a.getBBox()[t]:a[n],qA=yb("inline","width","offsetWidth"),WA=yb("block","height","offsetHeight");function KA({target:e,borderBoxSize:t}){var n;(n=wo.get(e))==null||n.forEach(a=>{a(e,{get width(){return qA(e,t)},get height(){return WA(e,t)}})})}function GA(e){e.forEach(KA)}function QA(){typeof ResizeObserver>"u"||(Nn=new ResizeObserver(GA))}function YA(e,t){Nn||QA();const n=pb(e);return n.forEach(a=>{let r=wo.get(a);r||(r=new Set,wo.set(a,r)),r.add(t),Nn==null||Nn.observe(a)}),()=>{n.forEach(a=>{const r=wo.get(a);r==null||r.delete(t),r!=null&&r.size||Nn==null||Nn.unobserve(a)})}}const bo=new Set;let ir;function XA(){ir=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};bo.forEach(t=>t(e))},window.addEventListener("resize",ir)}function ZA(e){return bo.add(e),ir||XA(),()=>{bo.delete(e),!bo.size&&typeof ir=="function"&&(window.removeEventListener("resize",ir),ir=void 0)}}function rg(e,t){return typeof e=="function"?ZA(e):YA(e,t)}function JA(e){return wh(e)&&e.tagName==="svg"}const e3=[...db,pe,At],t3=e=>e3.find(ub(e)),sg=()=>({translate:0,scale:1,origin:0,originPoint:0}),or=()=>({x:sg(),y:sg()}),ig=()=>({min:0,max:0}),xe=()=>({x:ig(),y:ig()}),n3=new WeakMap;function ql(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ri(e){return typeof e=="string"||Array.isArray(e)}const bh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ph=["initial",...bh];function Wl(e){return ql(e.animate)||Ph.some(t=>ri(e[t]))}function vb(e){return!!(Wl(e)||e.variants)}function a3(e,t,n){for(const a in t){const r=t[a],s=n[a];if(Ee(r))e.addValue(a,r);else if(Ee(s))e.addValue(a,zr(r,{owner:e}));else if(s!==r)if(e.hasValue(a)){const i=e.getValue(a);i.liveStyle===!0?i.jump(r):i.hasAnimated||i.set(r)}else{const i=e.getStaticValue(a);e.addValue(a,zr(i!==void 0?i:r,{owner:e}))}}for(const a in n)t[a]===void 0&&e.removeValue(a);return t}const Td={current:null},wb={current:!1},r3=typeof window<"u";function s3(){if(wb.current=!0,!!r3)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Td.current=e.matches;e.addEventListener("change",t),t()}else Td.current=!1}const og=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let dl={};function bb(e){dl=e}function i3(){return dl}class o3{scrapeMotionValuesFromProps(t,n,a){return{}}constructor({parent:t,props:n,presenceContext:a,reducedMotionConfig:r,skipAnimations:s,blockInitialAnimation:i,visualState:o},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=hh,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 m=Ve.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,te.render(this.render,!1,!0))};const{latestValues:u,renderState:d}=o;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=a,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=s,this.options=c,this.blockInitialAnimation=!!i,this.isControllingVariants=Wl(n),this.isVariantNode=vb(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in h){const x=h[m];u[m]!==void 0&&Ee(x)&&x.set(u[m])}}mount(t){var n,a;if(this.hasBeenMounted)for(const r in this.initialValues)(n=this.values.get(r))==null||n.jump(this.initialValues[r]),this.latestValues[r]=this.initialValues[r];this.current=t,n3.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((r,s)=>this.bindToMotionValue(s,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(wb.current||s3(),this.shouldReduceMotion=Td.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(a=this.parent)==null||a.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),aa(this.notifyUpdate),aa(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const a=this.features[n];a&&(a.unmount(),a.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&nb.has(t)&&this.current instanceof HTMLElement){const{factory:i,keyframes:o,times:c,ease:u,duration:d}=n.accelerate,f=new eb({element:this.current,name:t,keyframes:o,times:c,ease:u,duration:at(d)}),h=i(f);this.valueSubscriptions.set(t,()=>{h(),f.cancel()});return}const a=Yr.has(t);a&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&te.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),s&&s()})}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 dl){const n=dl[t];if(!n)continue;const{isEnabled:a,Feature:r}=n;if(!this.features[t]&&r&&a(this.props)&&(this.features[t]=new r(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):xe()}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 a=0;a<og.length;a++){const r=og[a];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const s="on"+r,i=t[s];i&&(this.propEventSubscriptions[r]=this.on(r,i))}this.prevMotionValues=a3(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 a=this.values.get(t);n!==a&&(a&&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 a=this.values.get(t);return a===void 0&&n!==void 0&&(a=zr(n===null?void 0:n,{owner:this}),this.addValue(t,a)),a}readValue(t,n){let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(ww(a)||Pw(a))?a=parseFloat(a):!t3(a)&&At.test(n)&&(a=hb(t,n)),this.setBaseTarget(t,Ee(a)?a.get():a)),Ee(a)?a.get():a}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let a;if(typeof n=="string"||typeof n=="object"){const i=gh(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);i&&(a=i[t])}if(n&&a!==void 0)return a;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!Ee(r)?r:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new rh),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){yh.render(this.render)}}class Pb extends o3{constructor(){super(...arguments),this.KeyframeResolver=OA}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const a=t.style;return a?a[n]:void 0}removeValueFromRenderState(t,{vars:n,style:a}){delete n[t],delete a[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ee(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class la{constructor(t){this.isMounted=!1,this.node=t}update(){}}function jb({top:e,left:t,right:n,bottom:a}){return{x:{min:t,max:n},y:{min:e,max:a}}}function l3({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function c3(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),a=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:a.y,right:a.x}}function Vc(e){return e===void 0||e===1}function Ed({scale:e,scaleX:t,scaleY:n}){return!Vc(e)||!Vc(t)||!Vc(n)}function pa(e){return Ed(e)||Sb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Sb(e){return lg(e.x)||lg(e.y)}function lg(e){return e&&e!=="0%"}function fl(e,t,n){const a=e-n,r=t*a;return n+r}function cg(e,t,n,a,r){return r!==void 0&&(e=fl(e,r,a)),fl(e,n,a)+t}function Ad(e,t=0,n=1,a,r){e.min=cg(e.min,t,n,a,r),e.max=cg(e.max,t,n,a,r)}function Cb(e,{x:t,y:n}){Ad(e.x,t.translate,t.scale,t.originPoint),Ad(e.y,n.translate,n.scale,n.originPoint)}const ug=.999999999999,dg=1.0000000000001;function u3(e,t,n,a=!1){var o;const r=n.length;if(!r)return;t.x=t.y=1;let s,i;for(let c=0;c<r;c++){s=n[c],i=s.projectionDelta;const{visualElement:u}=s.options;u&&u.props.style&&u.props.style.display==="contents"||(a&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(Ht(e.x,-s.scroll.offset.x),Ht(e.y,-s.scroll.offset.y)),i&&(t.x*=i.x.scale,t.y*=i.y.scale,Cb(e,i)),a&&pa(s.latestValues)&&Po(e,s.latestValues,(o=s.layout)==null?void 0:o.layoutBox))}t.x<dg&&t.x>ug&&(t.x=1),t.y<dg&&t.y>ug&&(t.y=1)}function Ht(e,t){e.min+=t,e.max+=t}function fg(e,t,n,a,r=.5){const s=ee(e.min,e.max,r);Ad(e,t,n,s,a)}function hg(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Po(e,t,n){const a=n??e;fg(e.x,hg(t.x,a.x),t.scaleX,t.scale,t.originX),fg(e.y,hg(t.y,a.y),t.scaleY,t.scale,t.originY)}function Nb(e,t){return jb(c3(e.getBoundingClientRect(),t))}function d3(e,t,n){const a=Nb(e,n),{scroll:r}=t;return r&&(Ht(a.x,r.offset.x),Ht(a.y,r.offset.y)),a}const f3={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},h3=Qr.length;function p3(e,t,n){let a="",r=!0;for(let i=0;i<h3;i++){const o=Qr[i],c=e[o];if(c===void 0)continue;let u=!0;if(typeof c=="number")u=c===(o.startsWith("scale")?1:0);else{const d=parseFloat(c);u=o.startsWith("scale")?d===1:d===0}if(!u||n){const d=kd(c,ul[o]);if(!u){r=!1;const f=f3[o]||o;a+=`${f}(${d}) `}n&&(t[o]=d)}}const s=e.pathRotation;return s&&(r=!1,a+=`rotate(${kd(s,ul.pathRotation)}) `),a=a.trim(),n?a=n(t,r?"":a):r&&(a="none"),a}function jh(e,t,n){const{style:a,vars:r,transformOrigin:s}=e;let i=!1,o=!1;for(const c in t){const u=t[c];if(Yr.has(c)){i=!0;continue}else if(Iw(c)){r[c]=u;continue}else{const d=kd(u,ul[c]);c.startsWith("origin")?(o=!0,s[c]=d):a[c]=d}}if(t.transform||(i||n?a.transform=p3(t,e.transform,n):a.transform&&(a.transform="none")),o){const{originX:c="50%",originY:u="50%",originZ:d=0}=s;a.transformOrigin=`${c} ${u} ${d}`}}function kb(e,{style:t,vars:n},a,r){const s=e.style;let i;for(i in t)s[i]=t[i];r==null||r.applyProjectionStyles(s,a);for(i in n)s.setProperty(i,n[i])}function pg(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ds={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(I.test(e))e=parseFloat(e);else return e;const n=pg(e,t.target.x),a=pg(e,t.target.y);return`${n}% ${a}%`}},m3={correct:(e,{treeScale:t,projectionDelta:n})=>{const a=e,r=At.parse(e);if(r.length>5)return a;const s=At.createTransformer(e),i=typeof r[0]!="number"?1:0,o=n.x.scale*t.x,c=n.y.scale*t.y;r[0+i]/=o,r[1+i]/=c;const u=ee(o,c,.5);return typeof r[2+i]=="number"&&(r[2+i]/=u),typeof r[3+i]=="number"&&(r[3+i]/=u),s(r)}},Rd={borderRadius:{...ds,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ds,borderTopRightRadius:ds,borderBottomLeftRadius:ds,borderBottomRightRadius:ds,boxShadow:m3};function Tb(e,{layout:t,layoutId:n}){return Yr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Rd[e]||e==="opacity")}function Sh(e,t,n){var i;const a=e.style,r=t==null?void 0:t.style,s={};if(!a)return s;for(const o in a)(Ee(a[o])||r&&Ee(r[o])||Tb(o,e)||((i=n==null?void 0:n.getValue(o))==null?void 0:i.liveStyle)!==void 0)&&(s[o]=a[o]);return s}function g3(e){return window.getComputedStyle(e)}class x3 extends Pb{constructor(){super(...arguments),this.type="html",this.renderInstance=kb}readValueFromInstance(t,n){var a;if(Yr.has(n))return(a=this.projection)!=null&&a.isProjecting?gd(n):_4(t,n);{const r=g3(t),s=(Iw(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Nb(t,n)}build(t,n,a){jh(t,n,a.transformTemplate)}scrapeMotionValuesFromProps(t,n,a){return Sh(t,n,a)}}const y3={offset:"stroke-dashoffset",array:"stroke-dasharray"},v3={offset:"strokeDashoffset",array:"strokeDasharray"};function w3(e,t,n=1,a=0,r=!0){e.pathLength=1;const s=r?y3:v3;e[s.offset]=`${-a}`,e[s.array]=`${t} ${n}`}const b3=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Eb(e,{attrX:t,attrY:n,attrScale:a,pathLength:r,pathSpacing:s=1,pathOffset:i=0,...o},c,u,d){if(jh(e,o,u),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h}=e;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=(d==null?void 0:d.transformBox)??"fill-box",delete f.transformBox);for(const m of b3)f[m]!==void 0&&(h[m]=f[m],delete f[m]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),a!==void 0&&(f.scale=a),r!==void 0&&w3(f,r,s,i,!1)}const Ab=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"]),Rb=e=>typeof e=="string"&&e.toLowerCase()==="svg";function P3(e,t,n,a){kb(e,t,void 0,a);for(const r in t.attrs)e.setAttribute(Ab.has(r)?r:xh(r),t.attrs[r])}function Db(e,t,n){const a=Sh(e,t,n);for(const r in e)if(Ee(e[r])||Ee(t[r])){const s=Qr.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;a[s]=e[r]}return a}class j3 extends Pb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=xe}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Yr.has(n)){const a=fb(n);return a&&a.default||0}return n=Ab.has(n)?n:xh(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,a){return Db(t,n,a)}build(t,n,a){Eb(t,n,this.isSVGTag,a.transformTemplate,a.style)}renderInstance(t,n,a,r){P3(t,n,a,r)}mount(t){this.isSVGTag=Rb(t.tagName),super.mount(t)}}const S3=Ph.length;function Mb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Mb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<S3;n++){const a=Ph[n],r=e.props[a];(ri(r)||r===!1)&&(t[a]=r)}return t}function Ob(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let a=0;a<n;a++)if(t[a]!==e[a])return!1;return!0}const C3=[...bh].reverse(),N3=bh.length;function k3(e){return t=>Promise.all(t.map(({animation:n,options:a})=>jA(e,n,a)))}function T3(e){let t=k3(e),n=mg(),a=!0,r=!1;const s=u=>(d,f)=>{var m;const h=Aa(e,f,u==="exit"?(m=e.presenceContext)==null?void 0:m.custom:void 0);if(h){const{transition:x,transitionEnd:w,...b}=h;d={...d,...b,...w}}return d};function i(u){t=u(e)}function o(u){const{props:d}=e,f=Mb(e.parent)||{},h=[],m=new Set;let x={},w=1/0;for(let p=0;p<N3;p++){const g=C3[p],y=n[g],P=d[g]!==void 0?d[g]:f[g],j=ri(P),S=g===u?y.isActive:null;S===!1&&(w=p);let C=P===f[g]&&P!==d[g]&&j;if(C&&(a||r)&&e.manuallyAnimateOnMount&&(C=!1),y.protectedKeys={...x},!y.isActive&&S===null||!P&&!y.prevProp||ql(P)||typeof P=="boolean")continue;if(g==="exit"&&y.isActive&&S!==!0){y.prevResolvedValues&&(x={...x,...y.prevResolvedValues});continue}const N=E3(y.prevProp,P);let R=N||g===u&&y.isActive&&!C&&j||p>w&&j,E=!1;const _=Array.isArray(P)?P:[P];let O=_.reduce(s(g),{});S===!1&&(O={});const{prevResolvedValues:$={}}=y,M={...$,...O},U=k=>{R=!0,m.has(k)&&(E=!0,m.delete(k)),y.needsAnimating[k]=!0;const D=e.getValue(k);D&&(D.liveStyle=!1)};for(const k in M){const D=O[k],F=$[k];if(x.hasOwnProperty(k))continue;let B=!1;Pd(D)&&Pd(F)?B=!Ob(D,F)||N:B=D!==F,B?D!=null?U(k):m.add(k):D!==void 0&&m.has(k)?U(k):y.protectedKeys[k]=!0}y.prevProp=P,y.prevResolvedValues=O,y.isActive&&(x={...x,...O}),(a||r)&&e.blockInitialAnimation&&(R=!1);const z=C&&N;R&&(!z||E)&&h.push(..._.map(k=>{const D={type:g};if(typeof k=="string"&&(a||r)&&!z&&e.manuallyAnimateOnMount&&e.parent){const{parent:F}=e,B=Aa(F,k);if(F.enteringChildren&&B){const{delayChildren:Z}=B.transition||{};D.delay=ab(F.enteringChildren,e,Z)}}return{animation:k,options:D}}))}if(m.size){const p={};if(typeof d.initial!="boolean"){const g=Aa(e,Array.isArray(d.initial)?d.initial[0]:d.initial);g&&g.transition&&(p.transition=g.transition)}m.forEach(g=>{const y=e.getBaseTarget(g),P=e.getValue(g);P&&(P.liveStyle=!0),p[g]=y??null}),h.push({animation:p})}let b=!!h.length;return a&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),a=!1,r=!1,b?t(h):Promise.resolve()}function c(u,d){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)==null||h.forEach(m=>{var x;return(x=m.animationState)==null?void 0:x.setActive(u,d)}),n[u].isActive=d;const f=o(u);for(const m in n)n[m].protectedKeys={};return f}return{animateChanges:o,setActive:c,setAnimateFunction:i,getState:()=>n,reset:()=>{n=mg(),r=!0}}}function E3(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ob(t,e):!1}function ua(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mg(){return{animate:ua(!0),whileInView:ua(),whileHover:ua(),whileTap:ua(),whileDrag:ua(),whileFocus:ua(),exit:ua()}}function Dd(e,t){e.min=t.min,e.max=t.max}function wt(e,t){Dd(e.x,t.x),Dd(e.y,t.y)}function gg(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Lb=1e-4,A3=1-Lb,R3=1+Lb,_b=.01,D3=0-_b,M3=0+_b;function Be(e){return e.max-e.min}function O3(e,t,n){return Math.abs(e-t)<=n}function xg(e,t,n,a=.5){e.origin=a,e.originPoint=ee(t.min,t.max,e.origin),e.scale=Be(n)/Be(t),e.translate=ee(n.min,n.max,e.origin)-e.originPoint,(e.scale>=A3&&e.scale<=R3||isNaN(e.scale))&&(e.scale=1),(e.translate>=D3&&e.translate<=M3||isNaN(e.translate))&&(e.translate=0)}function Rs(e,t,n,a){xg(e.x,t.x,n.x,a?a.originX:void 0),xg(e.y,t.y,n.y,a?a.originY:void 0)}function yg(e,t,n,a=0){const r=a?ee(n.min,n.max,a):n.min;e.min=r+t.min,e.max=e.min+Be(t)}function L3(e,t,n,a){yg(e.x,t.x,n.x,a==null?void 0:a.x),yg(e.y,t.y,n.y,a==null?void 0:a.y)}function vg(e,t,n,a=0){const r=a?ee(n.min,n.max,a):n.min;e.min=t.min-r,e.max=e.min+Be(t)}function hl(e,t,n,a){vg(e.x,t.x,n.x,a==null?void 0:a.x),vg(e.y,t.y,n.y,a==null?void 0:a.y)}function wg(e,t,n,a,r){return e-=t,e=fl(e,1/n,a),r!==void 0&&(e=fl(e,1/r,a)),e}function _3(e,t=0,n=1,a=.5,r,s=e,i=e){if(Qt.test(t)&&(t=parseFloat(t),t=ee(i.min,i.max,t/100)-i.min),typeof t!="number")return;let o=ee(s.min,s.max,a);e===s&&(o-=t),e.min=wg(e.min,t,n,o,r),e.max=wg(e.max,t,n,o,r)}function bg(e,t,[n,a,r],s,i){_3(e,t[n],t[a],t[r],t.scale,s,i)}const I3=["x","scaleX","originX"],F3=["y","scaleY","originY"];function Pg(e,t,n,a){bg(e.x,t,I3,n?n.x:void 0,a?a.x:void 0),bg(e.y,t,F3,n?n.y:void 0,a?a.y:void 0)}function jg(e){return e.translate===0&&e.scale===1}function Ib(e){return jg(e.x)&&jg(e.y)}function Sg(e,t){return e.min===t.min&&e.max===t.max}function z3(e,t){return Sg(e.x,t.x)&&Sg(e.y,t.y)}function Cg(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Fb(e,t){return Cg(e.x,t.x)&&Cg(e.y,t.y)}function Ng(e){return Be(e.x)/Be(e.y)}function kg(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Ft(e){return[e("x"),e("y")]}function V3(e,t,n){let a="";const r=e.x.translate/t.x,s=e.y.translate/t.y,i=(n==null?void 0:n.z)||0;if((r||s||i)&&(a=`translate3d(${r}px, ${s}px, ${i}px) `),(t.x!==1||t.y!==1)&&(a+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,pathRotation:f,rotateX:h,rotateY:m,skewX:x,skewY:w}=n;u&&(a=`perspective(${u}px) ${a}`),d&&(a+=`rotate(${d}deg) `),f&&(a+=`rotate(${f}deg) `),h&&(a+=`rotateX(${h}deg) `),m&&(a+=`rotateY(${m}deg) `),x&&(a+=`skewX(${x}deg) `),w&&(a+=`skewY(${w}deg) `)}const o=e.x.scale*t.x,c=e.y.scale*t.y;return(o!==1||c!==1)&&(a+=`scale(${o}, ${c})`),a||"none"}const zb=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],B3=zb.length,Tg=e=>typeof e=="string"?parseFloat(e):e,Eg=e=>typeof e=="number"||I.test(e);function H3(e,t,n,a,r,s){r?(e.opacity=ee(0,n.opacity??1,$3(a)),e.opacityExit=ee(t.opacity??1,0,U3(a))):s&&(e.opacity=ee(t.opacity??1,n.opacity??1,a));for(let i=0;i<B3;i++){const o=zb[i];let c=Ag(t,o),u=Ag(n,o);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||Eg(c)===Eg(u)?(e[o]=Math.max(ee(Tg(c),Tg(u),a),0),(Qt.test(u)||Qt.test(c))&&(e[o]+="%")):e[o]=u}(t.rotate||n.rotate)&&(e.rotate=ee(t.rotate||0,n.rotate||0,a))}function Ag(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const $3=Vb(0,.5,Rw),U3=Vb(.5,.95,mt);function Vb(e,t,n){return a=>a<e?0:a>t?1:n(ni(e,t,a))}function q3(e,t,n){const a=Ee(e)?e:zr(e);return a.start(mh("",a,t,n)),a.animation}function si(e,t,n,a={passive:!0}){return e.addEventListener(t,n,a),()=>e.removeEventListener(t,n)}const W3=(e,t)=>e.depth-t.depth;class K3{constructor(){this.children=[],this.isDirty=!1}add(t){nh(this.children,t),this.isDirty=!0}remove(t){sl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(W3),this.isDirty=!1,this.children.forEach(t)}}function G3(e,t){const n=Ve.now(),a=({timestamp:r})=>{const s=r-n;s>=t&&(aa(a),e(s-t))};return te.setup(a,!0),()=>aa(a)}function jo(e){return Ee(e)?e.get():e}class Q3{constructor(){this.members=[]}add(t){nh(this.members,t);for(let n=this.members.length-1;n>=0;n--){const a=this.members[n];if(a===t||a===this.lead||a===this.prevLead)continue;const r=a.instance;(!r||r.isConnected===!1)&&!a.snapshot&&(sl(this.members,a),a.unmount())}t.scheduleRender()}remove(t){if(sl(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){var n;for(let a=this.members.indexOf(t)-1;a>=0;a--){const r=this.members[a];if(r.isPresent!==!1&&((n=r.instance)==null?void 0:n.isConnected)!==!1)return this.promote(r),!0}return!1}promote(t,n){var r;const a=this.lead;if(t!==a&&(this.prevLead=a,this.lead=t,t.show(),a)){a.updateSnapshot(),t.scheduleRender();const{layoutDependency:s}=a.options,{layoutDependency:i}=t.options;(s===void 0||s!==i)&&(t.resumeFrom=a,n&&(a.preserveOpacity=!0),a.snapshot&&(t.snapshot=a.snapshot,t.snapshot.latestValues=a.animationValues||a.latestValues),(r=t.root)!=null&&r.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,a,r,s,i;(a=(n=t.options).onExitComplete)==null||a.call(n),(i=(r=t.resumingFrom)==null?void 0:(s=r.options).onExitComplete)==null||i.call(s)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const So={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Bc=["","X","Y","Z"],Y3=1e3;let X3=0;function Hc(e,t,n,a){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),a&&(a[e]=0))}function Bb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=lb(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",te,!(r||s))}const{parent:a}=e;a&&!a.hasCheckedOptimisedAppear&&Bb(a)}function Hb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:a,resetTransform:r}){return class{constructor(i={},o=t==null?void 0:t()){this.id=X3++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(e5),this.nodes.forEach(i5),this.nodes.forEach(o5),this.nodes.forEach(t5)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new K3)}addEventListener(i,o){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new rh),this.eventHandlers.get(i).add(o)}notifyListeners(i,...o){const c=this.eventHandlers.get(i);c&&c.notify(...o)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=wh(i)&&!JA(i),this.instance=i;const{layoutId:o,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||o)&&(this.isLayoutDirty=!0),e){let d,f=0;const h=()=>this.root.updateBlockedByResize=!1;te.read(()=>{f=window.innerWidth}),e(i,()=>{const m=window.innerWidth;m!==f&&(f=m,this.root.updateBlockedByResize=!0,d&&d(),d=G3(h,250),So.hasAnimatedSinceResize&&(So.hasAnimatedSinceResize=!1,this.nodes.forEach(Mg)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&u&&(o||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||u.getDefaultTransition()||f5,{onLayoutAnimationStart:w,onLayoutAnimationComplete:b}=u.getProps(),p=!this.targetLayout||!Fb(this.targetLayout,m),g=!f&&h;if(this.options.layoutRoot||this.resumeFrom||g||f&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const y={...ph(x,"layout"),onPlay:w,onComplete:b};(u.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(d,g,y.path)}else f||Mg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),aa(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(l5),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Bb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,(typeof f.latestValues.x=="string"||typeof f.latestValues.y=="string")&&(f.isLayoutDirty=!0),f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:o,layout:c}=this.options;if(o===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const c=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),c&&this.nodes.forEach(a5),this.nodes.forEach(Rg);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Dg);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(r5),this.nodes.forEach(s5),this.nodes.forEach(Z3),this.nodes.forEach(J3)):this.nodes.forEach(Dg),this.clearAllSnapshots();const o=Ve.now();Te.delta=Yt(0,1e3/60,o-Te.timestamp),Te.timestamp=o,Te.isProcessing=!0,Mc.update.process(Te),Mc.preRender.process(Te),Mc.render.process(Te),Te.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,yh.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(n5),this.sharedNodes.forEach(c5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,te.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){te.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Be(this.snapshot.measuredBox.x)&&!Be(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=xe()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(o=!1),o&&this.instance){const c=a(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!r)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!Ib(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;i&&this.instance&&(o||pa(this.latestValues)||d)&&(r(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const o=this.measurePageBox();let c=this.removeElementScroll(o);return i&&(c=this.removeTransform(c)),h5(c),{animationId:this.root.animationId,measuredBox:o,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:i}=this.options;if(!i)return xe();const o=i.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(p5))){const{scroll:d}=this.root;d&&(Ht(o.x,d.offset.x),Ht(o.y,d.offset.y))}return o}removeElementScroll(i){var c;const o=xe();if(wt(o,i),(c=this.scroll)!=null&&c.wasRoot)return o;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:f,options:h}=d;d!==this.root&&f&&h.layoutScroll&&(f.wasRoot&&wt(o,i),Ht(o.x,f.offset.x),Ht(o.y,f.offset.y))}return o}applyTransform(i,o=!1,c){var d,f;const u=c||xe();wt(u,i);for(let h=0;h<this.path.length;h++){const m=this.path[h];!o&&m.options.layoutScroll&&m.scroll&&m!==m.root&&(Ht(u.x,-m.scroll.offset.x),Ht(u.y,-m.scroll.offset.y)),pa(m.latestValues)&&Po(u,m.latestValues,(d=m.layout)==null?void 0:d.layoutBox)}return pa(this.latestValues)&&Po(u,this.latestValues,(f=this.layout)==null?void 0:f.layoutBox),u}removeTransform(i){var c;const o=xe();wt(o,i);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!pa(d.latestValues))continue;let f;d.instance&&(Ed(d.latestValues)&&d.updateSnapshot(),f=xe(),wt(f,d.measurePageBox())),Pg(o,d.latestValues,(c=d.snapshot)==null?void 0:c.layoutBox,f)}return pa(this.latestValues)&&Pg(o,this.latestValues),o}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.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!==Te.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){var m;const o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==o;if(!(i||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!this.layout||!(d||f))return;this.resolvedRelativeTargetAt=Te.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=xe(),this.targetWithTransforms=xe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),L3(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):wt(this.target,this.layout.layoutBox),Cb(this.target,this.targetDelta)):wt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Ed(this.parent.latestValues)||Sb(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(i,o,c){this.relativeParent=i,this.linkedParentVersion=i.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xe(),this.relativeTargetOrigin=xe(),hl(this.relativeTargetOrigin,o,c,this.options.layoutAnchor||void 0),wt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var x;const i=this.getLead(),o=!!this.resumingFrom||this!==i;let c=!0;if((this.isProjectionDirty||(x=this.parent)!=null&&x.isProjectionDirty)&&(c=!1),o&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Te.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;wt(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;u3(this.layoutCorrected,this.treeScale,this.path,o),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=xe());const{target:m}=i;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(gg(this.prevProjectionDelta.x,this.projectionDelta.x),gg(this.prevProjectionDelta.y,this.projectionDelta.y)),Rs(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!kg(this.projectionDelta.x,this.prevProjectionDelta.x)||!kg(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){var o;if((o=this.options.visualElement)==null||o.scheduleRender(),i){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=or(),this.projectionDelta=or(),this.projectionDeltaWithTransform=or()}setAnimationOrigin(i,o=!1,c){const u=this.snapshot,d=u?u.latestValues:{},f={...this.latestValues},h=or();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const m=xe(),x=u?u.source:void 0,w=this.layout?this.layout.source:void 0,b=x!==w,p=this.getStack(),g=!p||p.members.length<=1,y=!!(b&&!g&&this.options.crossfade===!0&&!this.path.some(d5));this.animationProgress=0;let P;const j=c==null?void 0:c.interpolateProjection(i);this.mixTargetDelta=S=>{const C=S/1e3,N=j==null?void 0:j(C);N?(h.x.translate=N.x,h.x.scale=ee(i.x.scale,1,C),h.x.origin=i.x.origin,h.x.originPoint=i.x.originPoint,h.y.translate=N.y,h.y.scale=ee(i.y.scale,1,C),h.y.origin=i.y.origin,h.y.originPoint=i.y.originPoint):(Og(h.x,i.x,C),Og(h.y,i.y,C)),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(hl(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),u5(this.relativeTarget,this.relativeTargetOrigin,m,C),P&&z3(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=xe()),wt(P,this.relativeTarget)),b&&(this.animationValues=f,H3(f,d,this.latestValues,C,y,g)),N&&N.rotate!==void 0&&(this.animationValues||(this.animationValues=f),this.animationValues.pathRotation=N.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){var o,c,u;this.notifyListeners("animationStart"),(o=this.currentAnimation)==null||o.stop(),(u=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||u.stop(),this.pendingAnimation&&(aa(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=te.update(()=>{So.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=zr(0)),this.motionValue.jump(0,!1),this.currentAnimation=q3(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),i.onUpdate&&i.onUpdate(d)},onStop:()=>{},onComplete:()=>{i.onComplete&&i.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 i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Y3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:o,target:c,layout:u,latestValues:d}=i;if(!(!o||!c||!u)){if(this!==i&&this.layout&&u&&$b(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||xe();const f=Be(this.layout.layoutBox.x);c.x.min=i.target.x.min,c.x.max=c.x.min+f;const h=Be(this.layout.layoutBox.y);c.y.min=i.target.y.min,c.y.max=c.y.min+h}wt(o,c),Po(o,d),Rs(this.projectionDeltaWithTransform,this.layoutCorrected,o,d)}}registerSharedNode(i,o){this.sharedNodes.has(i)||this.sharedNodes.set(i,new Q3),this.sharedNodes.get(i).add(o);const u=o.options.initialPromotionConfig;o.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(o):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){var o;const{layoutId:i}=this.options;return i?((o=this.getStack())==null?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:i}=this.options;return i?(o=this.getStack())==null?void 0:o.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:o,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),i&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let o=!1;const{latestValues:c}=i;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(o=!0),!o)return;const u={};c.z&&Hc("z",i,u,this.animationValues);for(let d=0;d<Bc.length;d++)Hc(`rotate${Bc[d]}`,i,u,this.animationValues),Hc(`skew${Bc[d]}`,i,u,this.animationValues);i.render();for(const d in u)i.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);i.scheduleRender()}applyProjectionStyles(i,o){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=jo(o==null?void 0:o.pointerEvents)||"",i.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=jo(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!pa(this.latestValues)&&(i.transform=c?c({},""):"none",this.hasProjected=!1);return}i.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=V3(this.projectionDeltaWithTransform,this.treeScale,d);c&&(f=c(d,f)),i.transform=f;const{x:h,y:m}=this.projectionDelta;i.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,u.animationValues?i.opacity=u===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:i.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const x in Rd){if(d[x]===void 0)continue;const{correct:w,applyTo:b,isCSSVariable:p}=Rd[x],g=f==="none"?d[x]:w(d[x],u);if(b){const y=b.length;for(let P=0;P<y;P++)i[b[P]]=g}else p?this.options.visualElement.renderState.vars[x]=g:i[x]=g}this.options.layoutId&&(i.pointerEvents=u===this?jo(o==null?void 0:o.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>{var o;return(o=i.currentAnimation)==null?void 0:o.stop()}),this.root.nodes.forEach(Rg),this.root.sharedNodes.clear()}}}function Z3(e){e.updateLayout()}function J3(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:r}=e.layout,{animationType:s}=e.options,i=t.source!==e.layout.source;if(s==="size")Ft(f=>{const h=i?t.measuredBox[f]:t.layoutBox[f],m=Be(h);h.min=a[f].min,h.max=h.min+m});else if(s==="x"||s==="y"){const f=s==="x"?"y":"x";Dd(i?t.measuredBox[f]:t.layoutBox[f],a[f])}else $b(s,t.layoutBox,a)&&Ft(f=>{const h=i?t.measuredBox[f]:t.layoutBox[f],m=Be(a[f]);h.max=h.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+m)});const o=or();Rs(o,a,t.layoutBox);const c=or();i?Rs(c,e.applyTransform(r,!0),t.measuredBox):Rs(c,a,t.layoutBox);const u=!Ib(o);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:m}=f;if(h&&m){const x=e.options.layoutAnchor||void 0,w=xe();hl(w,t.layoutBox,h.layoutBox,x);const b=xe();hl(b,a,m.layoutBox,x),Fb(w,b)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=w,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:a,snapshot:t,delta:c,layoutDelta:o,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:a}=e.options;a&&a()}e.options.transition=void 0}function e5(e){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 t5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function n5(e){e.clearSnapshot()}function Rg(e){e.clearMeasurements()}function a5(e){e.isLayoutDirty=!0,e.updateLayout()}function Dg(e){e.isLayoutDirty=!1}function r5(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function s5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Mg(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function i5(e){e.resolveTargetDelta()}function o5(e){e.calcProjection()}function l5(e){e.resetSkewAndRotation()}function c5(e){e.removeLeadSnapshot()}function Og(e,t,n){e.translate=ee(t.translate,0,n),e.scale=ee(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Lg(e,t,n,a){e.min=ee(t.min,n.min,a),e.max=ee(t.max,n.max,a)}function u5(e,t,n,a){Lg(e.x,t.x,n.x,a),Lg(e.y,t.y,n.y,a)}function d5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const f5={duration:.45,ease:[.4,0,.1,1]},_g=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ig=_g("applewebkit/")&&!_g("chrome/")?Math.round:mt;function Fg(e){e.min=Ig(e.min),e.max=Ig(e.max)}function h5(e){Fg(e.x),Fg(e.y)}function $b(e,t,n){return e==="position"||e==="preserve-aspect"&&!O3(Ng(t),Ng(n),.2)}function p5(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const m5=Hb({attachResizeListener:(e,t)=>si(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),$c={current:void 0},Ub=Hb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!$c.current){const e=new m5({});e.mount(window),e.setOptions({layoutScroll:!0}),$c.current=e}return $c.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),qb=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function g5(e=!0){const t=v.useContext(th);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:a,register:r}=t,s=v.useId();v.useEffect(()=>{if(e)return r(s)},[e]);const i=v.useCallback(()=>e&&a&&a(s),[s,a,e]);return!n&&a?[!1,i]:[!0]}const Wb=v.createContext({strict:!1}),zg={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"]};let Vg=!1;function x5(){if(Vg)return;const e={};for(const t in zg)e[t]={isEnabled:n=>zg[t].some(a=>!!n[a])};bb(e),Vg=!0}function Kb(){return x5(),i3()}function y5(e){const t=Kb();for(const n in e)t[n]={...t[n],...e[n]};bb(t)}const v5=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","propagate","ignoreStrict","viewport"]);function pl(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||v5.has(e)}let Gb=e=>!pl(e);function w5(e){typeof e=="function"&&(Gb=t=>t.startsWith("on")?!pl(t):e(t))}try{w5(require("@emotion/is-prop-valid").default)}catch{}function b5(e,t,n){const a={};for(const r in e)r==="values"&&typeof e.values=="object"||Ee(e[r])||(Gb(r)||n===!0&&pl(r)||!t&&!pl(r)||e.draggable&&r.startsWith("onDrag"))&&(a[r]=e[r]);return a}const Kl=v.createContext({});function P5(e,t){if(Wl(e)){const{initial:n,animate:a}=e;return{initial:n===!1||ri(n)?n:void 0,animate:ri(a)?a:void 0}}return e.inherit!==!1?t:{}}function j5(e){const{initial:t,animate:n}=P5(e,v.useContext(Kl));return v.useMemo(()=>({initial:t,animate:n}),[Bg(t),Bg(n)])}function Bg(e){return Array.isArray(e)?e.join(" "):e}const Ch=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Qb(e,t,n){for(const a in t)!Ee(t[a])&&!Tb(a,n)&&(e[a]=t[a])}function S5({transformTemplate:e},t){return v.useMemo(()=>{const n=Ch();return jh(n,t,e),Object.assign({},n.vars,n.style)},[t])}function C5(e,t){const n=e.style||{},a={};return Qb(a,n,e),Object.assign(a,S5(e,t)),a}function N5(e,t){const n={},a=C5(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.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=a,n}const Yb=()=>({...Ch(),attrs:{}});function k5(e,t,n,a){const r=v.useMemo(()=>{const s=Yb();return Eb(s,t,Rb(a),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Qb(s,e.style,e),r.style={...s,...r.style}}return r}const T5=["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 Nh(e){return typeof e!="string"||e.includes("-")?!1:!!(T5.indexOf(e)>-1||/[A-Z]/u.test(e))}function E5(e,t,n,{latestValues:a},r,s=!1,i){const c=(i??Nh(e)?k5:N5)(t,a,r,e),u=b5(t,typeof e=="string",s),d=e!==v.Fragment?{...u,...c,ref:n}:{},{children:f}=t,h=v.useMemo(()=>Ee(f)?f.get():f,[f]);return v.createElement(e,{...d,children:h})}function A5({scrapeMotionValuesFromProps:e,createRenderState:t},n,a,r){return{latestValues:R5(n,a,r,e),renderState:t()}}function R5(e,t,n,a){const r={},s=a(e,{});for(const h in s)r[h]=jo(s[h]);let{initial:i,animate:o}=e;const c=Wl(e),u=vb(e);t&&u&&!c&&e.inherit!==!1&&(i===void 0&&(i=t.initial),o===void 0&&(o=t.animate));let d=n?n.initial===!1:!1;d=d||i===!1;const f=d?o:i;if(f&&typeof f!="boolean"&&!ql(f)){const h=Array.isArray(f)?f:[f];for(let m=0;m<h.length;m++){const x=gh(e,h[m]);if(x){const{transitionEnd:w,transition:b,...p}=x;for(const g in p){let y=p[g];if(Array.isArray(y)){const P=d?y.length-1:0;y=y[P]}y!==null&&(r[g]=y)}for(const g in w)r[g]=w[g]}}}return r}const Xb=e=>(t,n)=>{const a=v.useContext(Kl),r=v.useContext(th),s=()=>A5(e,t,a,r);return n?s():EE(s)},D5=Xb({scrapeMotionValuesFromProps:Sh,createRenderState:Ch}),M5=Xb({scrapeMotionValuesFromProps:Db,createRenderState:Yb}),O5=Symbol.for("motionComponentSymbol");function L5(e,t,n){const a=v.useRef(n);v.useInsertionEffect(()=>{a.current=n});const r=v.useRef(null);return v.useCallback(s=>{var o;s&&((o=e.onMount)==null||o.call(e,s)),t&&(s?t.mount(s):t.unmount());const i=a.current;if(typeof i=="function")if(s){const c=i(s);typeof c=="function"&&(r.current=c)}else r.current?(r.current(),r.current=null):i(s);else i&&(i.current=s)},[t])}const Zb=v.createContext({});function Wa(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function _5(e,t,n,a,r,s){var y,P;const{visualElement:i}=v.useContext(Kl),o=v.useContext(Wb),c=v.useContext(th),u=v.useContext(qb),d=u.reducedMotion,f=u.skipAnimations,h=v.useRef(null),m=v.useRef(!1);a=a||o.renderer,!h.current&&a&&(h.current=a(e,{visualState:t,parent:i,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d,skipAnimations:f,isSVG:s}),m.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const x=h.current,w=v.useContext(Zb);x&&!x.projection&&r&&(x.type==="html"||x.type==="svg")&&I5(h.current,n,r,w);const b=v.useRef(!1);v.useInsertionEffect(()=>{x&&b.current&&x.update(n,c)});const p=n[ob],g=v.useRef(!!p&&typeof window<"u"&&!((y=window.MotionHandoffIsComplete)!=null&&y.call(window,p))&&((P=window.MotionHasOptimisedAnimation)==null?void 0:P.call(window,p)));return RE(()=>{m.current=!0,x&&(b.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),x.scheduleRenderMicrotask(),g.current&&x.animationState&&x.animationState.animateChanges())}),v.useEffect(()=>{x&&(!g.current&&x.animationState&&x.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var j;(j=window.MotionHandoffMarkAsComplete)==null||j.call(window,p)}),g.current=!1),x.enteringChildren=void 0)}),x}function I5(e,t,n,a){const{layoutId:r,layout:s,drag:i,dragConstraints:o,layoutScroll:c,layoutRoot:u,layoutAnchor:d,layoutCrossfade:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Jb(e.parent)),e.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!i||o&&Wa(o),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:a,crossfade:f,layoutScroll:c,layoutRoot:u,layoutAnchor:d})}function Jb(e){if(e)return e.options.allowProjection!==!1?e.projection:Jb(e.parent)}function Uc(e,{forwardMotionProps:t=!1,type:n}={},a,r){a&&y5(a);const s=n?n==="svg":Nh(e),i=s?M5:D5;function o(u,d){let f;const h={...v.useContext(qb),...u,layoutId:F5(u)},{isStatic:m}=h,x=j5(u),w=i(u,m);if(!m&&typeof window<"u"){z5();const b=V5(h);f=b.MeasureLayout,x.visualElement=_5(e,w,h,r,b.ProjectionNode,s)}return l.jsxs(Kl.Provider,{value:x,children:[f&&x.visualElement?l.jsx(f,{visualElement:x.visualElement,...h}):null,E5(e,u,L5(w,x.visualElement,d),w,m,t,s)]})}o.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=v.forwardRef(o);return c[O5]=e,c}function F5({layoutId:e}){const t=v.useContext(vw).id;return t&&e!==void 0?t+"-"+e:e}function z5(e,t){v.useContext(Wb).strict}function V5(e){const t=Kb(),{drag:n,layout:a}=t;if(!n&&!a)return{};const r={...n,...a};return{MeasureLayout:n!=null&&n.isEnabled(e)||a!=null&&a.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function B5(e,t){if(typeof Proxy>"u")return Uc;const n=new Map,a=(s,i)=>Uc(s,i,e,t),r=(s,i)=>a(s,i);return new Proxy(r,{get:(s,i)=>i==="create"?a:(n.has(i)||n.set(i,Uc(i,void 0,e,t)),n.get(i))})}const H5=(e,t)=>t.isSVG??Nh(e)?new j3(t):new x3(t,{allowProjection:e!==v.Fragment});class $5 extends la{constructor(t){super(t),t.animationState||(t.animationState=T3(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ql(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.call(this)}}let U5=0;class q5 extends la{constructor(){super(...arguments),this.id=U5++,this.isExitComplete=!1}update(){var s;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===a)return;if(t&&a===!1){if(this.isExitComplete){const{initial:i,custom:o}=this.node.getProps();if(typeof i=="string"||typeof i=="object"&&i!==null&&!Array.isArray(i)){const c=Aa(this.node,i,o);if(c){const{transition:u,transitionEnd:d,...f}=c;for(const h in f)(s=this.node.getValue(h))==null||s.jump(f[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const W5={animation:{Feature:$5},exit:{Feature:q5}};function ji(e){return{point:{x:e.pageX,y:e.pageY}}}const K5=e=>t=>vh(t)&&e(t,ji(t));function Ds(e,t,n,a){return si(e,t,K5(n),a)}const e1=({current:e})=>e?e.ownerDocument.defaultView:null,Hg=(e,t)=>Math.abs(e-t);function G5(e,t){const n=Hg(e.x,t.x),a=Hg(e.y,t.y);return Math.sqrt(n**2+a**2)}const $g=new Set(["auto","scroll"]);class t1{constructor(t,n,{transformPagePoint:a,contextWindow:r=window,dragSnapToOrigin:s=!1,distanceThreshold:i=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=m=>{this.handleScroll(m.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Xi(this.lastRawMoveEventInfo,this.transformPagePoint));const m=qc(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,w=G5(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!w)return;const{point:b}=m,{timestamp:p}=Te;this.history.push({...b,timestamp:p});const{onStart:g,onMove:y}=this.handlers;x||(g&&g(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,m)},this.handlePointerMove=(m,x)=>{this.lastMoveEvent=m,this.lastRawMoveEventInfo=x,this.lastMoveEventInfo=Xi(x,this.transformPagePoint),te.update(this.updatePoint,!0)},this.handlePointerUp=(m,x)=>{this.end();const{onEnd:w,onSessionEnd:b,resumeAnimation:p}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=qc(m.type==="pointercancel"?this.lastMoveEventInfo:Xi(x,this.transformPagePoint),this.history);this.startEvent&&w&&w(m,g),b&&b(m,g)},!vh(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=a,this.distanceThreshold=i,this.contextWindow=r||window;const c=ji(t),u=Xi(c,this.transformPagePoint),{point:d}=u,{timestamp:f}=Te;this.history=[{...d,timestamp:f}];const{onSessionStart:h}=n;h&&h(t,qc(u,this.history)),this.removeListeners=wi(Ds(this.contextWindow,"pointermove",this.handlePointerMove),Ds(this.contextWindow,"pointerup",this.handlePointerUp),Ds(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(t){let n=t.parentElement;for(;n;){const a=getComputedStyle(n);($g.has(a.overflowX)||$g.has(a.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const a=t===window,r=a?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:r.x-n.x,y:r.y-n.y};s.x===0&&s.y===0||(a?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,r),te.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),aa(this.updatePoint)}}function Xi(e,t){return t?{point:t(e.point)}:e}function Ug(e,t){return{x:e.x-t.x,y:e.y-t.y}}function qc({point:e},t){return{point:e,delta:Ug(e,n1(t)),offset:Ug(e,Q5(t)),velocity:Y5(t,.1)}}function Q5(e){return e[0]}function n1(e){return e[e.length-1]}function Y5(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,a=null;const r=n1(e);for(;n>=0&&(a=e[n],!(r.timestamp-a.timestamp>at(t)));)n--;if(!a)return{x:0,y:0};a===e[0]&&e.length>2&&r.timestamp-a.timestamp>at(t)*2&&(a=e[1]);const s=ht(r.timestamp-a.timestamp);if(s===0)return{x:0,y:0};const i={x:(r.x-a.x)/s,y:(r.y-a.y)/s};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function X5(e,{min:t,max:n},a){return t!==void 0&&e<t?e=a?ee(t,e,a.min):Math.max(e,t):n!==void 0&&e>n&&(e=a?ee(n,e,a.max):Math.min(e,n)),e}function qg(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 Z5(e,{top:t,left:n,bottom:a,right:r}){return{x:qg(e.x,n,r),y:qg(e.y,t,a)}}function Wg(e,t){let n=t.min-e.min,a=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,a]=[a,n]),{min:n,max:a}}function J5(e,t){return{x:Wg(e.x,t.x),y:Wg(e.y,t.y)}}function eR(e,t){let n=.5;const a=Be(e),r=Be(t);return r>a?n=ni(t.min,t.max-a,e.min):a>r&&(n=ni(e.min,e.max-r,t.min)),Yt(0,1,n)}function tR(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 Md=.35;function nR(e=Md){return e===!1?e=0:e===!0&&(e=Md),{x:Kg(e,"left","right"),y:Kg(e,"top","bottom")}}function Kg(e,t,n){return{min:Gg(e,t),max:Gg(e,n)}}function Gg(e,t){return typeof e=="number"?e:e[t]||0}const aR=new WeakMap;class rR{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=xe(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:a}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=f=>{n&&this.snapToCursor(ji(f).point),this.stopAnimation()},i=(f,h)=>{const{drag:m,dragPropagation:x,onDragStart:w}=this.getProps();if(m&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=_A(m),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ft(p=>{let g=this.getAxisMotionValue(p).get()||0;if(Qt.test(g)){const{projection:y}=this.visualElement;if(y&&y.layout){const P=y.layout.layoutBox[p];P&&(g=Be(P)*(parseFloat(g)/100))}}this.originPoint[p]=g}),w&&te.update(()=>w(f,h),!1,!0),jd(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},o=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:m,dragDirectionLock:x,onDirectionLock:w,onDrag:b}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:p}=h;if(x&&this.currentDirection===null){this.currentDirection=iR(p),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",h.point,p),this.updateAxis("y",h.point,p),this.visualElement.render(),b&&te.update(()=>b(f,h),!1,!0)},c=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:d}=this.getProps();this.panSession=new t1(t,{onSessionStart:s,onStart:i,onMove:o,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:a,contextWindow:e1(this.visualElement),element:this.visualElement.current})}stop(t,n){const a=t||this.latestPointerEvent,r=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!r||!a)return;const{velocity:i}=r;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&te.postRender(()=>o(a,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:a}=this.getProps();!a&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,a){const{drag:r}=this.getProps();if(!a||!Zi(t,r,this.currentDirection))return;const s=this.getAxisMotionValue(t);let i=this.originPoint[t]+a[t];this.constraints&&this.constraints[t]&&(i=X5(i,this.constraints[t],this.elastic[t])),s.set(i)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,r=this.constraints;t&&Wa(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&a?this.constraints=Z5(a.layoutBox,t):this.constraints=!1,this.elastic=nR(n),r!==this.constraints&&!Wa(t)&&a&&this.constraints&&!this.hasMutatedConstraints&&Ft(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=tR(a.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Wa(t))return!1;const a=t.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());const s=d3(a,r.root,this.visualElement.getTransformPagePoint());let i=J5(r.layout.layoutBox,s);if(n){const o=n(l3(i));this.hasMutatedConstraints=!!o,o&&(i=jb(o))}return i}startAnimation(t){const{drag:n,dragMomentum:a,dragElastic:r,dragTransition:s,dragSnapToOrigin:i,onDragTransitionEnd:o}=this.getProps(),c=this.constraints||{},u=Ft(d=>{if(!Zi(d,n,this.currentDirection))return;let f=c&&c[d]||{};(i===!0||i===d)&&(f={min:0,max:0});const h=r?200:1e6,m=r?40:1e7,x={type:"inertia",velocity:a?t[d]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(d,x)});return Promise.all(u).then(o)}startAxisValueAnimation(t,n){const a=this.getAxisMotionValue(t);return jd(this.visualElement,t),a.start(mh(t,a,0,n,this.visualElement,!1))}stopAnimation(){Ft(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps()[n];return r||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){Ft(n=>{const{drag:a}=this.getProps();if(!Zi(n,a,this.currentDirection))return;const{projection:r}=this.visualElement,s=this.getAxisMotionValue(n);if(r&&r.layout){const{min:i,max:o}=r.layout.layoutBox[n],c=s.get()||0;s.set(t[n]-ee(i,o,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:a}=this.visualElement;if(!Wa(n)||!a||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Ft(i=>{const o=this.getAxisMotionValue(i);if(o&&this.constraints!==!1){const c=o.get();r[i]=eR({min:c,max:c},this.constraints[i])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.constraints=!1,this.resolveConstraints(),Ft(i=>{if(!Zi(i,t,null))return;const o=this.getAxisMotionValue(i),{min:c,max:u}=this.constraints[i];o.set(ee(c,u,r[i]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;aR.set(this.visualElement,this);const t=this.visualElement.current,n=Ds(t,"pointerdown",u=>{const{drag:d,dragListener:f=!0}=this.getProps(),h=u.target,m=h!==t&&HA(h);d&&f&&!m&&this.start(u)});let a;const r=()=>{const{dragConstraints:u}=this.getProps();Wa(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),a||(a=sR(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,i=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),te.read(r);const o=si(window,"resize",()=>this.scalePositionWithinConstraints()),c=s.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(Ft(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=u[f].translate,h.set(h.get()+u[f].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),c&&c(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:a=!1,dragPropagation:r=!1,dragConstraints:s=!1,dragElastic:i=Md,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:a,dragPropagation:r,dragConstraints:s,dragElastic:i,dragMomentum:o}}}function Qg(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function sR(e,t,n){const a=rg(e,Qg(n)),r=rg(t,Qg(n));return()=>{a(),r()}}function Zi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function iR(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class oR extends la{constructor(t){super(t),this.removeGroupControls=mt,this.removeListeners=mt,this.controls=new rR(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||mt}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Wc=e=>(t,n)=>{e&&te.update(()=>e(t,n),!1,!0)};class lR extends la{constructor(){super(...arguments),this.removePointerDownListener=mt}onPointerDown(t){this.session=new t1(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:e1(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:a,onPanEnd:r}=this.node.getProps();return{onSessionStart:Wc(t),onStart:Wc(n),onMove:Wc(a),onEnd:(s,i)=>{delete this.session,r&&te.postRender(()=>r(s,i))}}}mount(){this.removePointerDownListener=Ds(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Kc=!1;class cR extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:a,layoutId:r}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),a&&a.register&&r&&a.register(s),Kc&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),So.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:a,drag:r,isPresent:s}=this.props,{projection:i}=a;return i&&(i.isPresent=s,t.layoutDependency!==n&&i.setOptions({...i.options,layoutDependency:n}),Kc=!0,r||t.layoutDependency!==n||n===void 0||t.isPresent!==s?i.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?i.promote():i.relegate()||te.postRender(()=>{const o=i.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:a}=t;a&&(a.options.layoutAnchor=n,a.root.didUpdate(),yh.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:a}=this.props,{projection:r}=t;Kc=!0,r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),a&&a.deregister&&a.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function a1(e){const[t,n]=g5(),a=v.useContext(vw);return l.jsx(cR,{...e,layoutGroup:a,switchLayoutGroup:v.useContext(Zb),isPresent:t,safeToRemove:n})}const uR={pan:{Feature:lR},drag:{Feature:oR,ProjectionNode:Ub,MeasureLayout:a1}};function Yg(e,t,n){const{props:a}=e;e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,s=a[r];s&&te.postRender(()=>s(t,ji(t)))}class dR extends la{mount(){const{current:t}=this.node;t&&(this.unmount=FA(t,(n,a)=>(Yg(this.node,a,"Start"),r=>Yg(this.node,r,"End"))))}unmount(){}}class fR extends la{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=wi(si(this.node.current,"focus",()=>this.onFocus()),si(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Xg(e,t,n){const{props:a}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&a.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),s=a[r];s&&te.postRender(()=>s(t,ji(t)))}class hR extends la{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:a}=this.node.props;this.unmount=UA(t,(r,s)=>(Xg(this.node,s,"Start"),(i,{success:o})=>Xg(this.node,i,o?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(a==null?void 0:a.tap)===!1})}unmount(){}}const Od=new WeakMap,Gc=new WeakMap,pR=e=>{const t=Od.get(e.target);t&&t(e)},mR=e=>{e.forEach(pR)};function gR({root:e,...t}){const n=e||document;Gc.has(n)||Gc.set(n,{});const a=Gc.get(n),r=JSON.stringify(t);return a[r]||(a[r]=new IntersectionObserver(mR,{root:e,...t})),a[r]}function xR(e,t,n){const a=gR(t);return Od.set(e,n),a.observe(e),()=>{Od.delete(e),a.unobserve(e)}}const yR={some:0,all:1};class vR extends la{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var c;(c=this.stopObserver)==null||c.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:a,amount:r="some",once:s}=t,i={root:n?n.current:void 0,rootMargin:a,threshold:typeof r=="number"?r:yR[r]},o=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,s&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),m=d?f:h;m&&m(u)};this.stopObserver=xR(this.node.current,i,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(wR(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function wR({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const bR={inView:{Feature:vR},tap:{Feature:hR},focus:{Feature:fR},hover:{Feature:dR}},PR={layout:{ProjectionNode:Ub,MeasureLayout:a1}},jR={...W5,...bR,...uR,...PR},W=B5(jR,H5),dn=()=>{const[e,t]=v.useState(!1),[n,a]=v.useState(!1),[r,s]=v.useState(!1),[i,o]=v.useState(!1),c=Ha(),u=c.pathname==="/";v.useEffect(()=>{const h=()=>a(window.scrollY>30);return window.addEventListener("scroll",h),()=>window.removeEventListener("scroll",h)},[]),v.useEffect(()=>{t(!1),s(!1),o(!1)},[c.pathname]);const d=n||!u,f=`px-3 py-2 text-sm font-medium transition-colors rounded-lg ${d?"text-gray-700 hover:text-teal-700 hover:bg-teal-50":"text-white/90 hover:text-white hover:bg-white/10"}`;return l.jsxs("nav",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${d?"bg-white shadow-md":"bg-transparent"}`,"data-id":"rjf079wi3","data-path":"src/components/Navbar.tsx",children:[l.jsx("div",{className:"container mx-auto px-4","data-id":"v2j383058","data-path":"src/components/Navbar.tsx",children:l.jsxs("div",{className:"flex items-center justify-between h-16 md:h-20","data-id":"9iktffks2","data-path":"src/components/Navbar.tsx",children:[l.jsxs(H,{to:"/",className:"flex items-center gap-2 group","data-id":"uqqfzztfr","data-path":"src/components/Navbar.tsx",children:[l.jsx("div",{className:`w-9 h-9 rounded-xl flex items-center justify-center transition-colors ${d?"bg-teal-700":"bg-white/20 backdrop-blur-sm"}`,"data-id":"j742mt1zs","data-path":"src/components/Navbar.tsx",children:l.jsx(je,{className:"w-5 h-5 text-white","data-id":"ophxehumw","data-path":"src/components/Navbar.tsx"})}),l.jsx("div",{"data-id":"pdg74plbi","data-path":"src/components/Navbar.tsx",children:l.jsx("div",{className:`font-bold text-sm leading-tight ${d?"text-teal-800":"text-white"}`,"data-id":"bpzga7sku","data-path":"src/components/Navbar.tsx",children:"HOMELESS ACTION SONOMA INC"})})]}),l.jsxs("div",{className:"hidden md:flex items-center gap-1","data-id":"iu2qu9a74","data-path":"src/components/Navbar.tsx",children:[l.jsx(H,{to:"/",className:f,"data-id":"o0lvx39k2","data-path":"src/components/Navbar.tsx",children:"Home"}),l.jsxs("div",{className:"relative",onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),"data-id":"kfrdfi19d","data-path":"src/components/Navbar.tsx",children:[l.jsxs("button",{className:`flex items-center gap-1 ${f}`,"data-id":"xmwnzf3t4","data-path":"src/components/Navbar.tsx",children:["About ",l.jsx(Wu,{className:`w-3 h-3 transition-transform ${r?"rotate-180":""}`,"data-id":"7jxyrlq5t","data-path":"src/components/Navbar.tsx"})]}),r&&l.jsxs("div",{className:"absolute top-full left-0 mt-1 bg-white rounded-xl shadow-xl py-2 w-52 border border-gray-100 animate-in fade-in slide-in-from-top-2 duration-150","data-id":"fsfsu4fbe","data-path":"src/components/Navbar.tsx",children:[l.jsx(Sn,{to:"/about",label:"Our Story","data-id":"wboiidqc5","data-path":"src/components/Navbar.tsx"}),l.jsx(Sn,{to:"/about#approach",label:"Our Approach","data-id":"w1uvioots","data-path":"src/components/Navbar.tsx"}),l.jsx(Sn,{to:"/about#team",label:"Our Team","data-id":"hrykxxmf7","data-path":"src/components/Navbar.tsx"}),l.jsx(Sn,{to:"/about#partners",label:"Community Partners","data-id":"ih8e7ptq4","data-path":"src/components/Navbar.tsx"})]})]}),l.jsxs("div",{className:"relative",onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),"data-id":"z5fz504p5","data-path":"src/components/Navbar.tsx",children:[l.jsxs("button",{className:`flex items-center gap-1 ${f}`,"data-id":"n30ba6slp","data-path":"src/components/Navbar.tsx",children:["Programs ",l.jsx(Wu,{className:`w-3 h-3 transition-transform ${i?"rotate-180":""}`,"data-id":"sf9015r5i","data-path":"src/components/Navbar.tsx"})]}),i&&l.jsxs("div",{className:"absolute top-full left-0 mt-1 bg-white rounded-xl shadow-xl py-2 w-60 border border-gray-100 animate-in fade-in slide-in-from-top-2 duration-150","data-id":"r7q2fegyk","data-path":"src/components/Navbar.tsx",children:[l.jsx(Sn,{to:"/programs#housing",label:"Housing Resource Navigation","data-id":"e2bkzpq7y","data-path":"src/components/Navbar.tsx"}),l.jsx(Sn,{to:"/programs#behavioral-health",label:"Behavioral Health & Recovery","data-id":"mw9ugwre2","data-path":"src/components/Navbar.tsx"}),l.jsx(Sn,{to:"/programs#outreach",label:"Community Outreach","data-id":"j7tniphca","data-path":"src/components/Navbar.tsx"}),l.jsx(Sn,{to:"/programs#education",label:"Education & Awareness","data-id":"hbma83she","data-path":"src/components/Navbar.tsx"})]})]}),l.jsx(H,{to:"/blog",className:f,"data-id":"uydcqtb2e","data-path":"src/components/Navbar.tsx",children:"Blog"}),l.jsx(H,{to:"/contact",className:f,"data-id":"g6zn4zy4z","data-path":"src/components/Navbar.tsx",children:"Contact"})]}),l.jsxs("div",{className:"hidden md:flex items-center gap-3","data-id":"ffomm0krm","data-path":"src/components/Navbar.tsx",children:[l.jsx(H,{to:"/contact",className:`text-sm font-medium transition-colors ${d?"text-teal-700 hover:text-teal-900":"text-white/90 hover:text-white"}`,"data-id":"4k5jli9oh","data-path":"src/components/Navbar.tsx",children:"Get Support"}),l.jsxs(H,{to:"/donate",className:"flex items-center gap-1.5 px-5 py-2.5 bg-amber-500 hover:bg-amber-600 text-white rounded-full text-sm font-semibold shadow-sm transition-colors","data-id":"kqpq9njwy","data-path":"src/components/Navbar.tsx",children:[l.jsx(je,{className:"w-3.5 h-3.5","data-id":"c0w9ygpub","data-path":"src/components/Navbar.tsx"})," Donate"]})]}),l.jsx("button",{className:`md:hidden p-2 rounded-lg transition-colors ${d?"text-gray-700 hover:bg-gray-100":"text-white hover:bg-white/10"}`,onClick:()=>t(!e),"aria-label":"Toggle menu","data-id":"0yww6n1wm","data-path":"src/components/Navbar.tsx",children:e?l.jsx(G0,{className:"w-6 h-6","data-id":"x86v96zw4","data-path":"src/components/Navbar.tsx"}):l.jsx(P2,{className:"w-6 h-6","data-id":"w6u0b76xn","data-path":"src/components/Navbar.tsx"})})]})}),e&&l.jsx("div",{className:"md:hidden bg-white border-t border-gray-100 shadow-xl","data-id":"11b2qv01o","data-path":"src/components/Navbar.tsx",children:l.jsxs("div",{className:"px-4 py-4 space-y-1","data-id":"nb2tk4yey","data-path":"src/components/Navbar.tsx",children:[l.jsx(fs,{to:"/",label:"Home",icon:l.jsx(za,{className:"w-4 h-4","data-id":"02wcxarnr","data-path":"src/components/Navbar.tsx"}),"data-id":"tyf1g41o6","data-path":"src/components/Navbar.tsx"}),l.jsx(fs,{to:"/about",label:"About Us",icon:l.jsx(p2,{className:"w-4 h-4","data-id":"6ahueef00","data-path":"src/components/Navbar.tsx"}),"data-id":"pandloc2y","data-path":"src/components/Navbar.tsx"}),l.jsx(fs,{to:"/programs",label:"Our Programs",icon:l.jsx(y2,{className:"w-4 h-4","data-id":"vxaxgdef6","data-path":"src/components/Navbar.tsx"}),"data-id":"mytmu5tzx","data-path":"src/components/Navbar.tsx"}),l.jsx(fs,{to:"/blog",label:"Blog & News",icon:l.jsx(Yo,{className:"w-4 h-4","data-id":"rwb5yw4an","data-path":"src/components/Navbar.tsx"}),"data-id":"l5yiqt9y2","data-path":"src/components/Navbar.tsx"}),l.jsx(fs,{to:"/contact",label:"Contact Us",icon:l.jsx(gi,{className:"w-4 h-4","data-id":"yih1e8t1f","data-path":"src/components/Navbar.tsx"}),"data-id":"40p1kcv7w","data-path":"src/components/Navbar.tsx"}),l.jsxs("div",{className:"pt-3 space-y-2","data-id":"0mefq9usy","data-path":"src/components/Navbar.tsx",children:[l.jsx(H,{to:"/contact",className:"block w-full text-center py-2.5 border-2 border-teal-700 text-teal-700 rounded-full text-sm font-semibold hover:bg-teal-50 transition-colors","data-id":"2h1uy0g9j","data-path":"src/components/Navbar.tsx",children:"Get Support"}),l.jsxs(H,{to:"/donate",className:"flex items-center justify-center gap-2 w-full py-2.5 bg-amber-500 hover:bg-amber-600 text-white rounded-full text-sm font-semibold transition-colors","data-id":"wd9haek5e","data-path":"src/components/Navbar.tsx",children:[l.jsx(je,{className:"w-4 h-4","data-id":"2mmcosy02","data-path":"src/components/Navbar.tsx"})," Donate Now"]})]})]})})]})},Sn=({to:e,label:t})=>l.jsx(H,{to:e,className:"block px-4 py-2.5 text-sm text-gray-700 hover:bg-teal-50 hover:text-teal-700 transition-colors","data-id":"uo9qkvrwl","data-path":"src/components/Navbar.tsx",children:t}),fs=({to:e,label:t,icon:n})=>l.jsxs(H,{to:e,className:"flex items-center gap-3 px-3 py-2.5 text-gray-700 hover:text-teal-700 hover:bg-teal-50 rounded-lg font-medium transition-colors","data-id":"czy54ob9z","data-path":"src/components/Navbar.tsx",children:[l.jsx("span",{className:"text-teal-600","data-id":"w4z69hcb3","data-path":"src/components/Navbar.tsx",children:n}),t]}),ra=()=>{const[e,t]=v.useState(""),[n,a]=v.useState(""),[r,s]=v.useState(!1),{toast:i}=Dl(),o=async c=>{if(c.preventDefault(),!!e){s(!0);try{const{error:u}=await window.ezsite.apis.tableCreate(84702,{email:e,first_name:n,subscribed_at:new Date().toISOString()});if(u)throw u;i({title:"You're subscribed!",description:"Thank you for joining our community updates."}),t(""),a("")}catch{i({title:"Error",description:"Unable to subscribe. Please try again.",variant:"destructive"})}finally{s(!1)}}};return l.jsxs("footer",{className:"bg-teal-950 text-white","data-id":"9ffp70vq6","data-path":"src/components/Footer.tsx",children:[l.jsx("div",{className:"bg-teal-800 py-12","data-id":"6fw8vd149","data-path":"src/components/Footer.tsx",children:l.jsx("div",{className:"container mx-auto px-4","data-id":"u2d1grmhk","data-path":"src/components/Footer.tsx",children:l.jsxs("div",{className:"max-w-3xl mx-auto text-center","data-id":"6pdweqmsk","data-path":"src/components/Footer.tsx",children:[l.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-2 text-white","data-id":"3n17pon6t","data-path":"src/components/Footer.tsx",children:"Stay Connected to Our Mission"}),l.jsx("p",{className:"text-teal-200 mb-8 text-sm md:text-base","data-id":"x54hzxga5","data-path":"src/components/Footer.tsx",children:"Receive updates on housing solutions, outreach events, and ways to support our community partnerships."}),l.jsxs("form",{onSubmit:o,className:"flex flex-col sm:flex-row gap-3","data-id":"69flanmmx","data-path":"src/components/Footer.tsx",children:[l.jsx("input",{type:"text",placeholder:"First Name",value:n,onChange:c=>a(c.target.value),className:"flex-1 px-4 py-3 rounded-xl text-gray-900 bg-white placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-amber-400 text-sm","data-id":"s7kfw9ywf","data-path":"src/components/Footer.tsx"}),l.jsx("input",{type:"email",required:!0,placeholder:"Your email address",value:e,onChange:c=>t(c.target.value),className:"flex-2 min-w-0 sm:w-64 px-4 py-3 rounded-xl text-gray-900 bg-white placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-amber-400 text-sm","data-id":"g2k0t51cf","data-path":"src/components/Footer.tsx"}),l.jsx("button",{type:"submit",disabled:r,className:"flex items-center justify-center gap-2 px-6 py-3 bg-amber-500 hover:bg-amber-600 disabled:opacity-60 rounded-xl font-semibold text-white transition-colors whitespace-nowrap text-sm","data-id":"5qnse98xz","data-path":"src/components/Footer.tsx",children:r?"Subscribing...":l.jsxs(l.Fragment,{children:[l.jsx("span",{"data-id":"l2b6t13jh","data-path":"src/components/Footer.tsx",children:"Subscribe"})," ",l.jsx(ze,{className:"w-4 h-4","data-id":"xos10mj8p","data-path":"src/components/Footer.tsx"})]})})]})]})})}),l.jsxs("div",{className:"container mx-auto px-4 py-14","data-id":"n5r0ovjwp","data-path":"src/components/Footer.tsx",children:[l.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-10","data-id":"egvn0oz31","data-path":"src/components/Footer.tsx",children:[l.jsxs("div",{className:"lg:col-span-1","data-id":"t38wefggt","data-path":"src/components/Footer.tsx",children:[l.jsxs(H,{to:"/",className:"flex items-center gap-2 mb-5","data-id":"sb4od7yww","data-path":"src/components/Footer.tsx",children:[l.jsx("div",{className:"w-9 h-9 rounded-xl bg-amber-500 flex items-center justify-center","data-id":"lnnlrn9z5","data-path":"src/components/Footer.tsx",children:l.jsx(je,{className:"w-5 h-5 text-white","data-id":"vpo3jt5qo","data-path":"src/components/Footer.tsx"})}),l.jsx("div",{"data-id":"vll9db4db","data-path":"src/components/Footer.tsx",children:l.jsx("div",{className:"font-bold text-sm text-white","data-id":"p6d6stpdn","data-path":"src/components/Footer.tsx",children:"HOMELESS ACTION SONOMA INC"})})]}),l.jsx("p",{className:"text-teal-300 text-sm leading-relaxed mb-6","data-id":"nea7dqqug","data-path":"src/components/Footer.tsx",children:"Dedicated to improving lives through community outreach, education, and coordinated support services across the Sonoma Valley."}),l.jsx("div",{className:"flex gap-2","data-id":"qsyv985ji","data-path":"src/components/Footer.tsx",children:[{icon:l.jsx(i2,{className:"w-4 h-4","data-id":"ob1v88o29","data-path":"src/components/Footer.tsx"}),label:"Facebook"},{icon:l.jsx(L2,{className:"w-4 h-4","data-id":"p9pj9vq0t","data-path":"src/components/Footer.tsx"}),label:"Twitter"},{icon:l.jsx(g2,{className:"w-4 h-4","data-id":"3o5hkpif6","data-path":"src/components/Footer.tsx"}),label:"Instagram"},{icon:l.jsx(B2,{className:"w-4 h-4","data-id":"8npyyucto","data-path":"src/components/Footer.tsx"}),label:"YouTube"}].map(c=>l.jsx("a",{href:"#","aria-label":c.label,className:"w-8 h-8 bg-teal-800 hover:bg-amber-500 rounded-lg flex items-center justify-center transition-colors","data-id":"dixs8753w","data-path":"src/components/Footer.tsx",children:c.icon},c.label))})]}),l.jsxs("div",{"data-id":"xcvx3w12s","data-path":"src/components/Footer.tsx",children:[l.jsx("h4",{className:"font-semibold text-white mb-5 text-xs uppercase tracking-widest","data-id":"6sqtp5lyz","data-path":"src/components/Footer.tsx",children:"Navigation"}),l.jsx("ul",{className:"space-y-2.5","data-id":"hazvky03s","data-path":"src/components/Footer.tsx",children:[{to:"/",label:"Home"},{to:"/about",label:"About Us"},{to:"/about#approach",label:"Our Approach"},{to:"/about#partners",label:"Our Partners"},{to:"/blog",label:"Blog & News"},{to:"/contact",label:"Contact"},{to:"/donate",label:"Donate"}].map(c=>l.jsx("li",{"data-id":"2ll09hc5t","data-path":"src/components/Footer.tsx",children:l.jsxs(H,{to:c.to,className:"text-teal-300 hover:text-amber-400 text-sm transition-colors flex items-center gap-1.5 group","data-id":"xr2q8axx8","data-path":"src/components/Footer.tsx",children:[l.jsx(ze,{className:"w-3 h-3 opacity-0 group-hover:opacity-100 transition-opacity","data-id":"833324vlb","data-path":"src/components/Footer.tsx"}),c.label]})},c.to))})]}),l.jsxs("div",{"data-id":"mhlch0kkx","data-path":"src/components/Footer.tsx",children:[l.jsx("h4",{className:"font-semibold text-white mb-5 text-xs uppercase tracking-widest","data-id":"6wjat6mqh","data-path":"src/components/Footer.tsx",children:"Programs"}),l.jsx("ul",{className:"space-y-2.5","data-id":"0r6s9y1l4","data-path":"src/components/Footer.tsx",children:[{to:"/programs#housing",label:"Housing Resource Navigation"},{to:"/programs#behavioral-health",label:"Behavioral Health Support"},{to:"/programs#recovery",label:"Recovery Services"},{to:"/programs#outreach",label:"Community Outreach"},{to:"/programs#education",label:"Education & Awareness"},{to:"/programs#partnerships",label:"Partnership Network"}].map(c=>l.jsx("li",{"data-id":"07l64spk1","data-path":"src/components/Footer.tsx",children:l.jsxs(H,{to:c.to,className:"text-teal-300 hover:text-amber-400 text-sm transition-colors flex items-center gap-1.5 group","data-id":"imp42t2pb","data-path":"src/components/Footer.tsx",children:[l.jsx(ze,{className:"w-3 h-3 opacity-0 group-hover:opacity-100 transition-opacity","data-id":"11etl5lgk","data-path":"src/components/Footer.tsx"}),c.label]})},c.to))})]}),l.jsxs("div",{"data-id":"c88zoxra6","data-path":"src/components/Footer.tsx",children:[l.jsx("h4",{className:"font-semibold text-white mb-5 text-xs uppercase tracking-widest","data-id":"0y42by580","data-path":"src/components/Footer.tsx",children:"Get in Touch"}),l.jsxs("ul",{className:"space-y-4","data-id":"siqixip4j","data-path":"src/components/Footer.tsx",children:[l.jsxs("li",{className:"flex items-start gap-3","data-id":"nknqsl1do","data-path":"src/components/Footer.tsx",children:[l.jsx("div",{className:"w-7 h-7 bg-teal-800 rounded-lg flex items-center justify-center flex-shrink-0 mt-0.5","data-id":"6883lumat","data-path":"src/components/Footer.tsx",children:l.jsx(Zo,{className:"w-3.5 h-3.5 text-amber-400","data-id":"7o7i3863m","data-path":"src/components/Footer.tsx"})}),l.jsxs("span",{className:"text-teal-300 text-sm leading-relaxed","data-id":"a8qdg8jjo","data-path":"src/components/Footer.tsx",children:["20018 St Germain Lane",l.jsx("br",{"data-id":"z2givlgo9","data-path":"src/components/Footer.tsx"}),"Sonoma, CA 95476"]})]}),l.jsxs("li",{className:"flex items-center gap-3","data-id":"kouut0dya","data-path":"src/components/Footer.tsx",children:[l.jsx("div",{className:"w-7 h-7 bg-teal-800 rounded-lg flex items-center justify-center flex-shrink-0","data-id":"wwhrwsjr3","data-path":"src/components/Footer.tsx",children:l.jsx(Ys,{className:"w-3.5 h-3.5 text-amber-400","data-id":"20xhamf5c","data-path":"src/components/Footer.tsx"})}),l.jsx("a",{href:"tel:+17073040502",className:"text-teal-300 hover:text-amber-400 text-sm transition-colors","data-id":"v097b4wqn","data-path":"src/components/Footer.tsx",children:"+1-707-304-0502"})]}),l.jsxs("li",{className:"flex items-center gap-3","data-id":"pebtzagiw","data-path":"src/components/Footer.tsx",children:[l.jsx("div",{className:"w-7 h-7 bg-teal-800 rounded-lg flex items-center justify-center flex-shrink-0","data-id":"ry3dddxum","data-path":"src/components/Footer.tsx",children:l.jsx(gi,{className:"w-3.5 h-3.5 text-amber-400","data-id":"jq02ff80s","data-path":"src/components/Footer.tsx"})}),l.jsx("a",{href:"mailto:staff@momentumconverthub.com",className:"text-teal-300 hover:text-amber-400 text-sm transition-colors break-all","data-id":"a9cghh99n","data-path":"src/components/Footer.tsx",children:"staff@momentumconverthub.com"})]})]}),l.jsxs("div",{className:"mt-6 p-3 bg-teal-900 rounded-xl","data-id":"cnh2i2zx0","data-path":"src/components/Footer.tsx",children:[l.jsx("p",{className:"text-teal-400 text-xs mb-1 uppercase tracking-wider","data-id":"by3zl2l3z","data-path":"src/components/Footer.tsx",children:"Registered Nonprofit"}),l.jsx("p",{className:"text-teal-200 text-sm font-medium","data-id":"fi772b3cp","data-path":"src/components/Footer.tsx",children:"EIN: 85-2764190"})]})]})]}),l.jsxs("div",{className:"border-t border-teal-900 mt-12 pt-6 flex flex-col md:flex-row justify-between items-center gap-4","data-id":"o2aqempe4","data-path":"src/components/Footer.tsx",children:[l.jsxs("p",{className:"text-teal-400 text-sm text-center md:text-left","data-id":"9ajai85kj","data-path":"src/components/Footer.tsx",children:["© ",new Date().getFullYear()," Homeless Action Sonoma Inc. All rights reserved. 501(c)(3) nonprofit organization."]}),l.jsxs("div",{className:"flex gap-6","data-id":"sn4hng6el","data-path":"src/components/Footer.tsx",children:[l.jsx(H,{to:"/contact",className:"text-teal-400 hover:text-amber-400 text-xs transition-colors","data-id":"eabmdunak","data-path":"src/components/Footer.tsx",children:"Privacy Policy"}),l.jsx(H,{to:"/contact",className:"text-teal-400 hover:text-amber-400 text-xs transition-colors","data-id":"wwqx8dt4i","data-path":"src/components/Footer.tsx",children:"Accessibility"}),l.jsx(H,{to:"/contact",className:"text-teal-400 hover:text-amber-400 text-xs transition-colors","data-id":"6sukuppkh","data-path":"src/components/Footer.tsx",children:"Sitemap"})]})]})]})]})};function SR(e,t=2e3,n=!1){const[a,r]=v.useState(0);return v.useEffect(()=>{if(!n)return;let s=null;const i=o=>{s||(s=o);const c=Math.min((o-s)/t,1);r(Math.floor(c*e)),c<1&&requestAnimationFrame(i)};requestAnimationFrame(i)},[e,t,n]),a}function Ji({value:e,suffix:t,label:n,description:a,started:r}){const s=SR(e,2e3,r);return l.jsxs("div",{className:"text-center","data-id":"o0b34ioqq","data-path":"src/pages/HomePage.tsx",children:[l.jsxs("div",{className:"text-4xl md:text-5xl font-extrabold text-white mb-1","data-id":"qk0ily31x","data-path":"src/pages/HomePage.tsx",children:[s.toLocaleString(),t]}),l.jsx("div",{className:"text-amber-300 font-semibold text-sm mb-1","data-id":"e7dt6zmvq","data-path":"src/pages/HomePage.tsx",children:n}),l.jsx("div",{className:"text-teal-200 text-xs leading-relaxed max-w-[160px] mx-auto","data-id":"1r22qn5cj","data-path":"src/pages/HomePage.tsx",children:a})]})}const da=[{quote:"Having a team that understood both my housing needs and what I was going through mentally changed everything. After two years of instability, I finally have a place I call home and a recovery plan I believe in.",name:"Robert M.",role:"Program Graduate — 14 months stable housing",image:"https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=80&auto=format&fit=crop"},{quote:"The outreach team met me where I was — not just geographically, but emotionally. They didn't push me into a system. They walked with me through it, step by step, until I felt ready.",name:"Diana T.",role:"Community Outreach Participant — Sonoma Valley",image:"https://images.unsplash.com/photo-1494790108755-2616b612b78c?w=80&auto=format&fit=crop"},{quote:"Our congregation has seen firsthand how coordinated care works. Families who once cycled through crisis after crisis are now building stability because multiple organizations are aligned around the same goals.",name:"Pastor Grace W.",role:"Community Partner — St. Andrew's Lutheran Church",image:"https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=80&auto=format&fit=crop"}],CR=[{id:"housing",icon:l.jsx(za,{className:"w-6 h-6","data-id":"qo1wpb474","data-path":"src/pages/HomePage.tsx"}),color:"bg-teal-700",title:"Housing Resource Navigation",desc:"Personalized guidance through Sonoma County's housing landscape — from emergency options to long-term stability pathways. We help individuals understand eligibility, prepare documentation, and navigate each step.",link:"/programs#housing"},{id:"behavioral-health",icon:l.jsx(Va,{className:"w-6 h-6","data-id":"uvqgc5aed","data-path":"src/pages/HomePage.tsx"}),color:"bg-amber-600",title:"Behavioral Health & Recovery",desc:"Integrated counseling and recovery support that addresses mental health and substance use alongside housing needs. Stability requires addressing the whole person, not just the immediate crisis.",link:"/programs#behavioral-health"},{id:"outreach",icon:l.jsx(Jn,{className:"w-6 h-6","data-id":"0ba05vq4l","data-path":"src/pages/HomePage.tsx"}),color:"bg-teal-600",title:"Community Outreach",desc:"Street-level and community-based outreach that builds trust before services. Our team connects with individuals where they are and creates bridges to the support network that can help them move forward.",link:"/programs#outreach"},{id:"education",icon:l.jsx($r,{className:"w-6 h-6","data-id":"pbexiycgw","data-path":"src/pages/HomePage.tsx"}),color:"bg-teal-800",title:"Education & Awareness",desc:"School presentations, community forums, and civic engagement initiatives that build informed community understanding of housing instability, reduce stigma, and activate local solutions.",link:"/programs#education"}],NR=["St. Andrew's Lutheran Church","Valley of the Moon Children's Home","Sonoma Valley Unified School District","Community Action Partnership","Rotary Club of Sonoma","Sonoma County Behavioral Health","Faith Lutheran Church","Sonoma Valley Chamber of Commerce"];function kR({post:e}){return l.jsxs("article",{className:"bg-white rounded-2xl overflow-hidden shadow-sm hover:shadow-lg transition-shadow border border-gray-100 flex flex-col","data-id":"rcptohw3o","data-path":"src/pages/HomePage.tsx",children:[l.jsxs("div",{className:"relative h-48 overflow-hidden","data-id":"p5snkx5ec","data-path":"src/pages/HomePage.tsx",children:[l.jsx("img",{src:e.image_url,alt:e.title,className:"w-full h-full object-cover hover:scale-105 transition-transform duration-500","data-id":"5ee0et8aa","data-path":"src/pages/HomePage.tsx"}),l.jsx("span",{className:"absolute top-3 left-3 bg-teal-700 text-white text-xs px-3 py-1 rounded-full font-medium","data-id":"7crbqbxii","data-path":"src/pages/HomePage.tsx",children:e.category})]}),l.jsxs("div",{className:"p-5 flex flex-col flex-1","data-id":"x2wd5yjtl","data-path":"src/pages/HomePage.tsx",children:[l.jsxs("div",{className:"flex items-center gap-3 text-xs text-gray-400 mb-3","data-id":"ttl8wmej2","data-path":"src/pages/HomePage.tsx",children:[l.jsx("span",{"data-id":"pmhlxomu4","data-path":"src/pages/HomePage.tsx",children:e.published_date}),l.jsx("span",{"data-id":"jvr0mb6id","data-path":"src/pages/HomePage.tsx",children:"·"}),l.jsxs("span",{"data-id":"cssv8q97u","data-path":"src/pages/HomePage.tsx",children:[e.read_time," min read"]})]}),l.jsx("h3",{className:"font-bold text-gray-900 text-base leading-snug mb-2 line-clamp-2","data-id":"6pnef6sfy","data-path":"src/pages/HomePage.tsx",children:e.title}),l.jsx("p",{className:"text-gray-500 text-sm leading-relaxed mb-4 line-clamp-3 flex-1","data-id":"n5slqrux2","data-path":"src/pages/HomePage.tsx",children:e.excerpt}),l.jsxs(H,{to:`/blog/${e.slug}`,className:"flex items-center gap-1.5 text-teal-700 font-semibold text-sm hover:text-teal-900 transition-colors","data-id":"yc21a0mks","data-path":"src/pages/HomePage.tsx",children:["Read Article ",l.jsx(ze,{className:"w-4 h-4","data-id":"hhf42q9g5","data-path":"src/pages/HomePage.tsx"})]})]})]})}const TR=()=>{const e=v.useRef(null),[t,n]=v.useState(!1),[a,r]=v.useState(0),[s,i]=v.useState([]),[o,c]=v.useState(0);return v.useEffect(()=>{const u=new IntersectionObserver(([d])=>{d.isIntersecting&&n(!0)},{threshold:.3});return e.current&&u.observe(e.current),()=>u.disconnect()},[]),v.useEffect(()=>{const u=setInterval(()=>c(d=>(d+1)%da.length),5e3);return()=>clearInterval(u)},[]),v.useEffect(()=>{(async()=>{try{const{data:u,error:d}=await window.ezsite.apis.tablePage(84700,{PageNo:1,PageSize:3,OrderByField:"ID",IsAsc:!1});!d&&(u!=null&&u.List)&&i(u.List)}catch{}})()},[]),l.jsxs("div",{className:"min-h-screen bg-white","data-id":"524p5qj17","data-path":"src/pages/HomePage.tsx",children:[l.jsx(dn,{"data-id":"5chs9oovh","data-path":"src/pages/HomePage.tsx"}),l.jsxs("section",{className:"relative min-h-screen flex items-center overflow-hidden","data-id":"d9rb83kwx","data-path":"src/pages/HomePage.tsx",children:[l.jsx("div",{className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:"url('https://images.unsplash.com/photo-1509099836639-18ba1795216d?w=1600&auto=format&fit=crop')"},"data-id":"a62nc5ncd","data-path":"src/pages/HomePage.tsx"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-teal-950/90 via-teal-900/80 to-teal-800/70","data-id":"jdtuk7owt","data-path":"src/pages/HomePage.tsx"}),l.jsx("div",{className:"absolute top-1/4 right-10 w-80 h-80 bg-amber-500/10 rounded-full blur-3xl","data-id":"9syh8c4dk","data-path":"src/pages/HomePage.tsx"}),l.jsx("div",{className:"absolute bottom-1/4 left-10 w-60 h-60 bg-teal-400/10 rounded-full blur-3xl","data-id":"lseyvc6ik","data-path":"src/pages/HomePage.tsx"}),l.jsx("div",{className:"relative container mx-auto px-4 pt-24 pb-16","data-id":"8d1s13vxu","data-path":"src/pages/HomePage.tsx",children:l.jsxs("div",{className:"max-w-3xl","data-id":"0nm3ugylp","data-path":"src/pages/HomePage.tsx",children:[l.jsxs(W.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"inline-flex items-center gap-2 bg-amber-500/20 border border-amber-400/30 text-amber-300 px-4 py-2 rounded-full text-sm font-medium mb-6","data-id":"f81td6lrv","data-path":"src/pages/HomePage.tsx",children:[l.jsx(je,{className:"w-4 h-4","data-id":"elwt5g5cy","data-path":"src/pages/HomePage.tsx"}),"Serving the Sonoma Valley Community"]}),l.jsxs(W.h1,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.7,delay:.1},className:"text-4xl md:text-5xl lg:text-6xl font-extrabold text-white leading-tight mb-6","data-id":"hj12hj63g","data-path":"src/pages/HomePage.tsx",children:["Building"," ",l.jsx("span",{className:"text-amber-400","data-id":"o0wf6scv6","data-path":"src/pages/HomePage.tsx",children:"Pathways"})," ","to Stability & Hope"]}),l.jsx(W.p,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.7,delay:.2},className:"text-teal-100 text-lg md:text-xl leading-relaxed mb-10 max-w-2xl","data-id":"8hg49ivgi","data-path":"src/pages/HomePage.tsx",children:"Homeless Action Sonoma connects individuals to housing resources, behavioral health support, and community partnerships that create lasting change across the Sonoma Valley — one person, one plan, one community at a time."}),l.jsxs(W.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.7,delay:.3},className:"flex flex-col sm:flex-row gap-4","data-id":"kda1gjkin","data-path":"src/pages/HomePage.tsx",children:[l.jsxs(H,{to:"/contact",className:"flex items-center justify-center gap-2 px-8 py-4 bg-amber-500 hover:bg-amber-600 text-white rounded-full font-bold text-base shadow-xl shadow-amber-900/30 transition-all hover:scale-105","data-id":"eudr9x18p","data-path":"src/pages/HomePage.tsx",children:[l.jsx(je,{className:"w-5 h-5","data-id":"5ylzo1fwv","data-path":"src/pages/HomePage.tsx"})," Get Support Now"]}),l.jsxs(H,{to:"/programs",className:"flex items-center justify-center gap-2 px-8 py-4 bg-white/10 hover:bg-white/20 border border-white/30 text-white rounded-full font-semibold text-base backdrop-blur-sm transition-all hover:scale-105","data-id":"71lkzdjuh","data-path":"src/pages/HomePage.tsx",children:["Explore Programs ",l.jsx(ze,{className:"w-5 h-5","data-id":"ili6r8xia","data-path":"src/pages/HomePage.tsx"})]})]}),l.jsx(W.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.7,delay:.5},className:"flex flex-wrap gap-4 mt-10","data-id":"6lq4eqzzz","data-path":"src/pages/HomePage.tsx",children:["501(c)(3) Nonprofit","EIN: 85-2764190","Serving Sonoma Since 2020"].map(u=>l.jsxs("div",{className:"flex items-center gap-2 text-teal-200 text-sm","data-id":"pd3aprpbt","data-path":"src/pages/HomePage.tsx",children:[l.jsx(Or,{className:"w-4 h-4 text-amber-400","data-id":"bp8vi75zm","data-path":"src/pages/HomePage.tsx"}),u]},u))})]})}),l.jsxs("div",{className:"absolute bottom-8 left-1/2 -translate-x-1/2 flex flex-col items-center gap-2 text-teal-300","data-id":"p0jutuwxd","data-path":"src/pages/HomePage.tsx",children:[l.jsx("span",{className:"text-xs uppercase tracking-widest","data-id":"bpvesv244","data-path":"src/pages/HomePage.tsx",children:"Scroll to explore"}),l.jsx("div",{className:"w-px h-8 bg-gradient-to-b from-teal-300 to-transparent animate-pulse","data-id":"2uyzwrm20","data-path":"src/pages/HomePage.tsx"})]})]}),l.jsx("section",{className:"py-20 bg-gray-50","data-id":"znwtvjqgi","data-path":"src/pages/HomePage.tsx",children:l.jsxs("div",{className:"container mx-auto px-4","data-id":"q0im73h28","data-path":"src/pages/HomePage.tsx",children:[l.jsxs(W.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-14","data-id":"uu86rvtzp","data-path":"src/pages/HomePage.tsx",children:[l.jsx("span",{className:"text-amber-600 font-semibold text-sm uppercase tracking-widest","data-id":"zdwpfdgal","data-path":"src/pages/HomePage.tsx",children:"Our Core Work"}),l.jsx("h2",{className:"text-3xl md:text-4xl font-extrabold text-gray-900 mt-2 mb-4","data-id":"651w4le7b","data-path":"src/pages/HomePage.tsx",children:"Four Pillars of Community Impact"}),l.jsx("p",{className:"text-gray-500 max-w-2xl mx-auto text-base","data-id":"fikf808ls","data-path":"src/pages/HomePage.tsx",children:"Every initiative we run connects back to these four operational purposes — because lasting change requires coordinated action, not isolated intervention."})]}),l.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6","data-id":"hdfiuxqln","data-path":"src/pages/HomePage.tsx",children:[{icon:l.jsx(za,{className:"w-7 h-7","data-id":"zoguiwaam","data-path":"src/pages/HomePage.tsx"}),color:"from-teal-700 to-teal-600",lightBg:"bg-teal-50",textColor:"text-teal-700",num:"01",title:"Housing Stability Resources",desc:"Connecting individuals to housing pathways — from emergency options to long-term stability plans — with personalized navigation support every step of the way."},{icon:l.jsx(Va,{className:"w-7 h-7","data-id":"ziufmc45c","data-path":"src/pages/HomePage.tsx"}),color:"from-amber-600 to-amber-500",lightBg:"bg-amber-50",textColor:"text-amber-700",num:"02",title:"Behavioral Health & Recovery",desc:"Integrated mental health counseling and addiction recovery support that addresses the whole person, not just the immediate housing need."},{icon:l.jsx(Jn,{className:"w-7 h-7","data-id":"l3f26j5tc","data-path":"src/pages/HomePage.tsx"}),color:"from-teal-800 to-teal-700",lightBg:"bg-teal-50",textColor:"text-teal-700",num:"03",title:"Community Partnerships",desc:"Building sustained collaboration with local churches, schools, civic groups, and government leaders that strengthens outcomes for everyone we serve."},{icon:l.jsx($r,{className:"w-7 h-7","data-id":"gnnajklw2","data-path":"src/pages/HomePage.tsx"}),color:"from-teal-600 to-teal-500",lightBg:"bg-teal-50",textColor:"text-teal-700",num:"04",title:"Education & Outreach",desc:"Community awareness initiatives, school programs, and civic engagement that build informed, compassionate local understanding and activate solutions."}].map((u,d)=>l.jsxs(W.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:d*.1},className:"bg-white rounded-2xl p-6 shadow-sm hover:shadow-lg transition-shadow border border-gray-100 group","data-id":"egzjnas1r","data-path":"src/pages/HomePage.tsx",children:[l.jsx("div",{className:`w-12 h-12 rounded-xl bg-gradient-to-br ${u.color} flex items-center justify-center text-white mb-5`,"data-id":"8idjvg7lw","data-path":"src/pages/HomePage.tsx",children:u.icon}),l.jsx("div",{className:`text-xs font-bold uppercase tracking-widest ${u.textColor} mb-2`,"data-id":"gb4316mfu","data-path":"src/pages/HomePage.tsx",children:u.num}),l.jsx("h3",{className:"font-bold text-gray-900 text-base mb-3 leading-snug","data-id":"qtgj87o2i","data-path":"src/pages/HomePage.tsx",children:u.title}),l.jsx("p",{className:"text-gray-500 text-sm leading-relaxed","data-id":"pao9nnpqw","data-path":"src/pages/HomePage.tsx",children:u.desc})]},u.num))})]})}),l.jsxs("section",{ref:e,className:"py-20 bg-gradient-to-br from-teal-900 to-teal-800 relative overflow-hidden","data-id":"71f8a9kz6","data-path":"src/pages/HomePage.tsx",children:[l.jsxs("div",{className:"absolute inset-0 opacity-10","data-id":"eajkd16fl","data-path":"src/pages/HomePage.tsx",children:[l.jsx("div",{className:"absolute top-0 left-0 w-96 h-96 bg-amber-400 rounded-full -translate-x-1/2 -translate-y-1/2 blur-3xl","data-id":"zcrpluqbb","data-path":"src/pages/HomePage.tsx"}),l.jsx("div",{className:"absolute bottom-0 right-0 w-80 h-80 bg-teal-400 rounded-full translate-x-1/2 translate-y-1/2 blur-3xl","data-id":"73izg2o6d","data-path":"src/pages/HomePage.tsx"})]}),l.jsxs("div",{className:"container mx-auto px-4 relative","data-id":"ftyz36ory","data-path":"src/pages/HomePage.tsx",children:[l.jsxs("div",{className:"text-center mb-14","data-id":"jbaxi5ghd","data-path":"src/pages/HomePage.tsx",children:[l.jsx("span",{className:"text-amber-400 font-semibold text-sm uppercase tracking-widest","data-id":"lhd5q54gu","data-path":"src/pages/HomePage.tsx",children:"Measurable Outcomes"}),l.jsx("h2",{className:"text-3xl md:text-4xl font-extrabold text-white mt-2","data-id":"j0nghq5f3","data-path":"src/pages/HomePage.tsx",children:"Community Impact in Numbers"})]}),l.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-10 max-w-4xl mx-auto","data-id":"dgpgk6f29","data-path":"src/pages/HomePage.tsx",children:[l.jsx(Ji,{value:1200,suffix:"+",label:"Individuals Supported",description:"People connected to housing resources and services",started:t,"data-id":"9em8hk02z","data-path":"src/pages/HomePage.tsx"}),l.jsx(Ji,{value:85,suffix:"+",label:"Community Partners",description:"Churches, schools, and civic organizations aligned with our mission",started:t,"data-id":"2opb5xj7e","data-path":"src/pages/HomePage.tsx"}),l.jsx(Ji,{value:320,suffix:"+",label:"Counseling Referrals",description:"Behavioral health connections completed this year",started:t,"data-id":"gew55jkc7","data-path":"src/pages/HomePage.tsx"}),l.jsx(Ji,{value:6,suffix:"",label:"Years of Service",description:"Sustained community presence in the Sonoma Valley",started:t,"data-id":"su5wnav9w","data-path":"src/pages/HomePage.tsx"})]})]})]}),l.jsx("section",{className:"py-20 bg-white","data-id":"kxc2t2c9w","data-path":"src/pages/HomePage.tsx",children:l.jsxs("div",{className:"container mx-auto px-4","data-id":"68tjio5xj","data-path":"src/pages/HomePage.tsx",children:[l.jsxs(W.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-14","data-id":"yflxfjd8e","data-path":"src/pages/HomePage.tsx",children:[l.jsx("span",{className:"text-amber-600 font-semibold text-sm uppercase tracking-widest","data-id":"1fg5kgxwb","data-path":"src/pages/HomePage.tsx",children:"What We Do"}),l.jsx("h2",{className:"text-3xl md:text-4xl font-extrabold text-gray-900 mt-2 mb-4","data-id":"ykpdfg3fo","data-path":"src/pages/HomePage.tsx",children:"Programs Built Around Your Needs"}),l.jsx("p",{className:"text-gray-500 max-w-2xl mx-auto text-base","data-id":"agy2c1y46","data-path":"src/pages/HomePage.tsx",children:"Each program is designed to address a specific barrier to stability while connecting to the broader support network every person deserves."})]}),l.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mb-10","data-id":"3kqiiahqr","data-path":"src/pages/HomePage.tsx",children:CR.map((u,d)=>l.jsxs(W.div,{initial:{opacity:0,x:d%2===0?-20:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5,delay:d*.1},className:"flex gap-5 p-6 rounded-2xl border border-gray-100 hover:border-teal-200 hover:shadow-md transition-all group bg-white","data-id":"kysxvfeuc","data-path":"src/pages/HomePage.tsx",children:[l.jsx("div",{className:`w-12 h-12 ${u.color} rounded-xl flex items-center justify-center text-white flex-shrink-0`,"data-id":"d96z3b2o1","data-path":"src/pages/HomePage.tsx",children:u.icon}),l.jsxs("div",{className:"flex-1","data-id":"1oe0mfy6d","data-path":"src/pages/HomePage.tsx",children:[l.jsx("h3",{className:"font-bold text-gray-900 mb-2","data-id":"nybl2w1ba","data-path":"src/pages/HomePage.tsx",children:u.title}),l.jsx("p",{className:"text-gray-500 text-sm leading-relaxed mb-3","data-id":"osuai7cbm","data-path":"src/pages/HomePage.tsx",children:u.desc}),l.jsxs(H,{to:u.link,className:"inline-flex items-center gap-1.5 text-teal-700 font-semibold text-sm hover:text-teal-900 transition-colors","data-id":"uhblxtqih","data-path":"src/pages/HomePage.tsx",children:["Learn More ",l.jsx(e2,{className:"w-4 h-4","data-id":"3mrh116sn","data-path":"src/pages/HomePage.tsx"})]})]})]},u.id))}),l.jsx("div",{className:"text-center","data-id":"rwz87m9ju","data-path":"src/pages/HomePage.tsx",children:l.jsxs(H,{to:"/programs",className:"inline-flex items-center gap-2 px-8 py-3.5 bg-teal-700 hover:bg-teal-800 text-white rounded-full font-semibold transition-colors shadow-sm","data-id":"fwwyzewyc","data-path":"src/pages/HomePage.tsx",children:["View All Programs ",l.jsx(ze,{className:"w-5 h-5","data-id":"385r4bpv3","data-path":"src/pages/HomePage.tsx"})]})})]})}),l.jsx("section",{className:"py-20 bg-teal-50","data-id":"vpbm0bcv4","data-path":"src/pages/HomePage.tsx",children:l.jsx("div",{className:"container mx-auto px-4","data-id":"wg3a1ms9a","data-path":"src/pages/HomePage.tsx",children:l.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center","data-id":"4m21k68aw","data-path":"src/pages/HomePage.tsx",children:[l.jsxs(W.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},"data-id":"cr6fx0xgz","data-path":"src/pages/HomePage.tsx",children:[l.jsx("span",{className:"text-amber-600 font-semibold text-sm uppercase tracking-widest","data-id":"inivdv49s","data-path":"src/pages/HomePage.tsx",children:"Our Approach"}),l.jsx("h2",{className:"text-3xl md:text-4xl font-extrabold text-gray-900 mt-2 mb-6","data-id":"2kg4hrepg","data-path":"src/pages/HomePage.tsx",children:"Coordinated Action Creates Stronger Outcomes"}),l.jsx("p",{className:"text-gray-600 leading-relaxed mb-6","data-id":"xkx2054tf","data-path":"src/pages/HomePage.tsx",children:"When a church, a school counselor, a civic leader, and a housing navigator work from the same plan, individuals experience continuity of support rather than fragmented one-time interventions. That coordination is what we provide."}),l.jsx("p",{className:"text-gray-600 leading-relaxed mb-8","data-id":"ge4y4kl5m","data-path":"src/pages/HomePage.tsx",children:"Our partner network means that the moment someone enters our system, they gain access to an aligned community — not just a single service. We track outcomes, maintain communication across providers, and adapt plans as needs change."}),l.jsx("div",{className:"space-y-3","data-id":"hd7zoisw4","data-path":"src/pages/HomePage.tsx",children:["Personalized support plans for each individual","Cross-agency coordination and communication","Long-term follow-up beyond initial placement","Integrated housing and behavioral health services"].map(u=>l.jsxs("div",{className:"flex items-start gap-3","data-id":"7j4prkani","data-path":"src/pages/HomePage.tsx",children:[l.jsx(Or,{className:"w-5 h-5 text-teal-600 flex-shrink-0 mt-0.5","data-id":"y6gky35dz","data-path":"src/pages/HomePage.tsx"}),l.jsx("span",{className:"text-gray-700 text-sm","data-id":"8u1mw1i64","data-path":"src/pages/HomePage.tsx",children:u})]},u))}),l.jsx("div",{className:"mt-8","data-id":"p70npot33","data-path":"src/pages/HomePage.tsx",children:l.jsxs(H,{to:"/about#approach",className:"inline-flex items-center gap-2 px-6 py-3 bg-teal-700 hover:bg-teal-800 text-white rounded-full font-semibold text-sm transition-colors","data-id":"hfxt9ka0n","data-path":"src/pages/HomePage.tsx",children:["About Our Approach ",l.jsx(ze,{className:"w-4 h-4","data-id":"ts6a1tauk","data-path":"src/pages/HomePage.tsx"})]})})]}),l.jsxs(W.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},className:"relative","data-id":"znuhwelxz","data-path":"src/pages/HomePage.tsx",children:[l.jsx("div",{className:"rounded-2xl overflow-hidden shadow-2xl","data-id":"xoc1gd657","data-path":"src/pages/HomePage.tsx",children:l.jsx("img",{src:"https://images.unsplash.com/photo-1582213782179-e0d53f98f2ca?w=700&auto=format&fit=crop",alt:"Community coordination meeting",className:"w-full h-96 object-cover","data-id":"jyza9y1za","data-path":"src/pages/HomePage.tsx"})}),l.jsxs("div",{className:"absolute -bottom-6 -left-6 bg-amber-500 text-white p-5 rounded-2xl shadow-xl max-w-[220px]","data-id":"1dw9ezmy9","data-path":"src/pages/HomePage.tsx",children:[l.jsx("div",{className:"text-2xl font-extrabold mb-1","data-id":"n6a1be2hn","data-path":"src/pages/HomePage.tsx",children:"40%"}),l.jsx("div",{className:"text-xs font-medium opacity-90","data-id":"k0k8aka2f","data-path":"src/pages/HomePage.tsx",children:"Improvement in 12-month housing stability outcomes through coordinated care"})]})]})]})})}),l.jsx("section",{className:"py-20 bg-white","data-id":"wvtql1tyj","data-path":"src/pages/HomePage.tsx",children:l.jsxs("div",{className:"container mx-auto px-4","data-id":"sro479hba","data-path":"src/pages/HomePage.tsx",children:[l.jsxs(W.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-14","data-id":"igk6xqny5","data-path":"src/pages/HomePage.tsx",children:[l.jsx("span",{className:"text-amber-600 font-semibold text-sm uppercase tracking-widest","data-id":"km8livp9n","data-path":"src/pages/HomePage.tsx",children:"Voices from Our Community"}),l.jsx("h2",{className:"text-3xl md:text-4xl font-extrabold text-gray-900 mt-2 mb-4","data-id":"4l1ypbmhg","data-path":"src/pages/HomePage.tsx",children:"Stories of Resilience & Progress"}),l.jsx("p",{className:"text-gray-500 max-w-xl mx-auto text-base","data-id":"tzd8tn2kq","data-path":"src/pages/HomePage.tsx",children:"Real voices from individuals and partners who have experienced the difference coordinated support makes."})]}),l.jsxs("div",{className:"max-w-4xl mx-auto","data-id":"vacdfxw22","data-path":"src/pages/HomePage.tsx",children:[l.jsxs("div",{className:"relative bg-gradient-to-br from-teal-50 to-teal-100 rounded-3xl p-8 md:p-12","data-id":"q5rpy7uul","data-path":"src/pages/HomePage.tsx",children:[l.jsx(C2,{className:"w-12 h-12 text-teal-200 mb-6","data-id":"c2dxztpml","data-path":"src/pages/HomePage.tsx"}),l.jsxs("p",{className:"text-gray-800 text-lg md:text-xl leading-relaxed mb-8 italic","data-id":"w7ryabist","data-path":"src/pages/HomePage.tsx",children:['"',da[o].quote,'"']}),l.jsxs("div",{className:"flex items-center gap-4","data-id":"frbufjbo3","data-path":"src/pages/HomePage.tsx",children:[l.jsx("img",{src:da[o].image,alt:da[o].name,className:"w-12 h-12 rounded-full object-cover border-2 border-teal-300","data-id":"yv6nm79b8","data-path":"src/pages/HomePage.tsx"}),l.jsxs("div",{"data-id":"rugfdbxv5","data-path":"src/pages/HomePage.tsx",children:[l.jsx("div",{className:"font-bold text-gray-900","data-id":"wq21625ci","data-path":"src/pages/HomePage.tsx",children:da[o].name}),l.jsx("div",{className:"text-teal-600 text-sm","data-id":"nipd2gzep","data-path":"src/pages/HomePage.tsx",children:da[o].role})]}),l.jsx("div",{className:"ml-auto flex gap-1","data-id":"mxoizhuq9","data-path":"src/pages/HomePage.tsx",children:[1,2,3,4,5].map(u=>l.jsx(K0,{className:"w-4 h-4 text-amber-400 fill-current","data-id":"g85hrk7be","data-path":"src/pages/HomePage.tsx"},u))})]})]}),l.jsx("div",{className:"flex justify-center gap-2 mt-6","data-id":"7y7gxts0t","data-path":"src/pages/HomePage.tsx",children:da.map((u,d)=>l.jsx("button",{onClick:()=>c(d),className:`w-2.5 h-2.5 rounded-full transition-colors ${d===o?"bg-teal-700":"bg-gray-300"}`,"aria-label":`Testimonial ${d+1}`,"data-id":"txzzo0lzf","data-path":"src/pages/HomePage.tsx"},d))})]})]})}),s.length>0&&l.jsx("section",{className:"py-20 bg-gray-50","data-id":"lotznp48f","data-path":"src/pages/HomePage.tsx",children:l.jsxs("div",{className:"container mx-auto px-4","data-id":"rywpqel3l","data-path":"src/pages/HomePage.tsx",children:[l.jsxs(W.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"flex flex-col md:flex-row md:items-end justify-between mb-12","data-id":"bnz3i0g4w","data-path":"src/pages/HomePage.tsx",children:[l.jsxs("div",{"data-id":"2974lc0te","data-path":"src/pages/HomePage.tsx",children:[l.jsx("span",{className:"text-amber-600 font-semibold text-sm uppercase tracking-widest","data-id":"fbd2s20id","data-path":"src/pages/HomePage.tsx",children:"Latest Insights"}),l.jsx("h2",{className:"text-3xl md:text-4xl font-extrabold text-gray-900 mt-2","data-id":"mlxzqjnws","data-path":"src/pages/HomePage.tsx",children:"News & Perspectives"})]}),l.jsxs(H,{to:"/blog",className:"mt-4 md:mt-0 inline-flex items-center gap-2 text-teal-700 font-semibold hover:text-teal-900 transition-colors","data-id":"6qkzkgng1","data-path":"src/pages/HomePage.tsx",children:["All Articles ",l.jsx(ze,{className:"w-5 h-5","data-id":"yj28ijh4u","data-path":"src/pages/HomePage.tsx"})]})]}),l.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6","data-id":"0fktjhe1q","data-path":"src/pages/HomePage.tsx",children:s.map((u,d)=>l.jsx(W.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:d*.1},"data-id":"w0v7smhdk","data-path":"src/pages/HomePage.tsx",children:l.jsx(kR,{post:u,"data-id":"houz8n51v","data-path":"src/pages/HomePage.tsx"})},u.ID))})]})}),l.jsx("section",{className:"py-16 bg-white border-t border-gray-100","data-id":"bg3ycrc8h","data-path":"src/pages/HomePage.tsx",children:l.jsxs("div",{className:"container mx-auto px-4","data-id":"6zgdzck3w","data-path":"src/pages/HomePage.tsx",children:[l.jsxs("div",{className:"text-center mb-10","data-id":"ykhzmxnnh","data-path":"src/pages/HomePage.tsx",children:[l.jsx("span",{className:"text-amber-600 font-semibold text-sm uppercase tracking-widest","data-id":"oiynxnjch","data-path":"src/pages/HomePage.tsx",children:"Stronger Together"}),l.jsx("h2",{className:"text-2xl md:text-3xl font-extrabold text-gray-900 mt-2","data-id":"kmofr2b4g","data-path":"src/pages/HomePage.tsx",children:"Our Community Partners"})]}),l.jsx("div",{className:"flex flex-wrap justify-center gap-4 max-w-4xl mx-auto","data-id":"8o0b9tz9o","data-path":"src/pages/HomePage.tsx",children:NR.map(u=>l.jsxs("div",{className:"flex items-center gap-2 px-5 py-3 bg-gray-50 border border-gray-200 rounded-full text-sm text-gray-700 font-medium hover:border-teal-300 hover:text-teal-700 hover:bg-teal-50 transition-colors","data-id":"86uji687s","data-path":"src/pages/HomePage.tsx",children:[l.jsx(QS,{className:"w-3.5 h-3.5 text-teal-500","data-id":"qai5vp6hw","data-path":"src/pages/HomePage.tsx"}),u]},u))}),l.jsx("div",{className:"text-center mt-8","data-id":"cknb0mrq9","data-path":"src/pages/HomePage.tsx",children:l.jsx(H,{to:"/about#partners",className:"text-teal-700 font-semibold text-sm hover:text-teal-900 transition-colors","data-id":"olh7l7azz","data-path":"src/pages/HomePage.tsx",children:"Learn about partnership opportunities →"})})]})}),l.jsxs("section",{className:"py-20 bg-gradient-to-br from-teal-900 to-teal-800 relative overflow-hidden","data-id":"kgg9kmlwm","data-path":"src/pages/HomePage.tsx",children:[l.jsx("div",{className:"absolute inset-0 opacity-20","data-id":"e6ibao4qw","data-path":"src/pages/HomePage.tsx",children:l.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] bg-amber-400 rounded-full blur-3xl","data-id":"78ms4o4dp","data-path":"src/pages/HomePage.tsx"})}),l.jsx("div",{className:"container mx-auto px-4 relative text-center","data-id":"gr663j6x0","data-path":"src/pages/HomePage.tsx",children:l.jsxs(W.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},"data-id":"gfahcf5mp","data-path":"src/pages/HomePage.tsx",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-extrabold text-white mb-4","data-id":"wxrrnp606","data-path":"src/pages/HomePage.tsx",children:"Every Act of Support Builds Someone's Pathway Forward"}),l.jsx("p",{className:"text-teal-200 text-base md:text-lg max-w-2xl mx-auto mb-10","data-id":"10pd678pi","data-path":"src/pages/HomePage.tsx",children:"Whether you're seeking help, volunteering your time, or making a financial contribution — your involvement strengthens the community network that creates real, lasting change."}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center","data-id":"nhwur3dgp","data-path":"src/pages/HomePage.tsx",children:[l.jsxs(H,{to:"/contact",className:"flex items-center justify-center gap-2 px-8 py-4 bg-amber-500 hover:bg-amber-600 text-white rounded-full font-bold text-base shadow-xl transition-all hover:scale-105","data-id":"u330v72bj","data-path":"src/pages/HomePage.tsx",children:[l.jsx(Lr,{className:"w-5 h-5","data-id":"ev17p1379","data-path":"src/pages/HomePage.tsx"})," Get Support Today"]}),l.jsxs(H,{to:"/donate",className:"flex items-center justify-center gap-2 px-8 py-4 bg-white/10 hover:bg-white/20 border border-white/30 text-white rounded-full font-semibold text-base backdrop-blur-sm transition-all hover:scale-105","data-id":"gf6s434vt","data-path":"src/pages/HomePage.tsx",children:[l.jsx(je,{className:"w-5 h-5","data-id":"0209cuahn","data-path":"src/pages/HomePage.tsx"})," Make a Donation"]}),l.jsxs(H,{to:"/about#partners",className:"flex items-center justify-center gap-2 px-8 py-4 bg-white/10 hover:bg-white/20 border border-white/30 text-white rounded-full font-semibold text-base backdrop-blur-sm transition-all hover:scale-105","data-id":"vzdsxf9wg","data-path":"src/pages/HomePage.tsx",children:[l.jsx(Jn,{className:"w-5 h-5","data-id":"xywfd2pya","data-path":"src/pages/HomePage.tsx"})," Become a Partner"]})]}),l.jsxs("div",{className:"mt-12 flex flex-col md:flex-row items-center justify-center gap-6 text-teal-200 text-sm","data-id":"nudqo0ub8","data-path":"src/pages/HomePage.tsx",children:[l.jsxs("a",{href:"tel:+17073040502",className:"flex items-center gap-2 hover:text-amber-300 transition-colors","data-id":"wurb0djj0","data-path":"src/pages/HomePage.tsx",children:[l.jsx(Ys,{className:"w-4 h-4","data-id":"2mixu3eqe","data-path":"src/pages/HomePage.tsx"})," +1-707-304-0502"]}),l.jsx("span",{className:"hidden md:block text-teal-600","data-id":"oa4r0fhx0","data-path":"src/pages/HomePage.tsx",children:"|"}),l.jsxs("a",{href:"mailto:staff@momentumconverthub.com",className:"flex items-center gap-2 hover:text-amber-300 transition-colors","data-id":"gzrhl5fn3","data-path":"src/pages/HomePage.tsx",children:[l.jsx(gi,{className:"w-4 h-4","data-id":"qe2l18fjv","data-path":"src/pages/HomePage.tsx"})," staff@momentumconverthub.com"]}),l.jsx("span",{className:"hidden md:block text-teal-600","data-id":"ela55br20","data-path":"src/pages/HomePage.tsx",children:"|"}),l.jsxs("span",{className:"flex items-center gap-2","data-id":"17aamzqcj","data-path":"src/pages/HomePage.tsx",children:[l.jsx(Zo,{className:"w-4 h-4","data-id":"muj0vg2vo","data-path":"src/pages/HomePage.tsx"})," 20018 St Germain Lane, Sonoma, CA 95476"]})]})]})})]}),l.jsx(ra,{"data-id":"ti0qojs42","data-path":"src/pages/HomePage.tsx"})]})},ER=[{name:"Sandra Okafor",role:"Executive Director",bio:"Sandra brings over 15 years of nonprofit leadership experience and a deep commitment to systemic solutions for housing instability. She founded Homeless Action Sonoma in 2020 after years of community organizing work across the Bay Area.",image:"https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?w=300&auto=format&fit=crop"},{name:"Carlos Mendez",role:"Director of Community Outreach",bio:"Carlos leads our street outreach and partner engagement work. A native of the Sonoma Valley, he brings trusted relationships across the community and expertise in trauma-informed care approaches.",image:"https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=300&auto=format&fit=crop"},{name:"Dr. James Whitfield",role:"Behavioral Health Programs Lead",bio:"Dr. Whitfield oversees our counseling referral network and recovery support programming. With a background in clinical psychology and public health, he ensures our behavioral health approach meets the highest standards.",image:"https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=300&auto=format&fit=crop"},{name:"Maria Gonzalez",role:"Housing Navigation Specialist",bio:"Maria guides individuals through the housing resource landscape, building personalized plans that account for each person's history, needs, and goals. She has helped over 200 individuals secure stable housing since joining our team.",image:"https://images.unsplash.com/photo-1580489944761-15a19d654956?w=300&auto=format&fit=crop"}],AR=[{name:"St. Andrew's Lutheran Church",type:"Faith Community",desc:"Providing meeting space, volunteer support, and emergency assistance coordination."},{name:"Faith Lutheran Church",type:"Faith Community",desc:"Hosting weekly community dinners and connecting congregation members with outreach opportunities."},{name:"Sonoma Valley Unified School District",type:"Education",desc:"Partner in youth housing awareness programming and student support coordination."},{name:"Sonoma County Behavioral Health",type:"Government",desc:"Coordinating mental health referrals and co-facilitating recovery support programming."},{name:"Community Action Partnership",type:"Nonprofit",desc:"Shared resource database and collaborative case management for overlapping populations."},{name:"Rotary Club of Sonoma",type:"Civic Group",desc:"Annual fundraising support and volunteer recruitment for community events."},{name:"Sonoma Valley Chamber of Commerce",type:"Business",desc:"Employment connection initiatives and employer awareness programming."},{name:"Valley of the Moon Children's Home",type:"Nonprofit",desc:"Collaborative services for families with children experiencing housing instability."}],RR=[{icon:l.jsx(je,{className:"w-5 h-5","data-id":"6a8o85as5","data-path":"src/pages/AboutPage.tsx"}),title:"Dignity First",desc:"Every person we serve is met with unconditional respect and recognition of their inherent worth."},{icon:l.jsx(Lr,{className:"w-5 h-5","data-id":"odcorj6bv","data-path":"src/pages/AboutPage.tsx"}),title:"Whole-Person Care",desc:"We address housing, health, and well-being as interconnected — never in isolation."},{icon:l.jsx(Jn,{className:"w-5 h-5","data-id":"684l5dao4","data-path":"src/pages/AboutPage.tsx"}),title:"Community Accountability",desc:"We answer to the community we serve and the partners we work alongside — always."},{icon:l.jsx(Or,{className:"w-5 h-5","data-id":"052mbcapm","data-path":"src/pages/AboutPage.tsx"}),title:"Outcome Focus",desc:"Good intentions matter, but measurable progress is what we hold ourselves to."},{icon:l.jsx($r,{className:"w-5 h-5","data-id":"0s7fnu792","data-path":"src/pages/AboutPage.tsx"}),title:"Continuous Learning",desc:"We adapt our programs based on what the data, our partners, and our community tell us is working."},{icon:l.jsx(Va,{className:"w-5 h-5","data-id":"kupig16ms","data-path":"src/pages/AboutPage.tsx"}),title:"Structural Awareness",desc:"We understand that individual hardship is shaped by larger systems — and we address both."}],DR=()=>l.jsxs("div",{className:"min-h-screen bg-white","data-id":"65vgv53kl","data-path":"src/pages/AboutPage.tsx",children:[l.jsx(dn,{"data-id":"2pzcyi15x","data-path":"src/pages/AboutPage.tsx"}),l.jsxs("section",{className:"pt-32 pb-20 bg-gradient-to-br from-teal-900 to-teal-700 relative overflow-hidden","data-id":"nceo665qc","data-path":"src/pages/AboutPage.tsx",children:[l.jsx("div",{className:"absolute inset-0 opacity-10","data-id":"ai7ln3x52","data-path":"src/pages/AboutPage.tsx",children:l.jsx("div",{className:"absolute top-0 right-0 w-96 h-96 bg-amber-400 rounded-full translate-x-1/3 -translate-y-1/3 blur-3xl","data-id":"pkc8k1sfx","data-path":"src/pages/AboutPage.tsx"})}),l.jsx("div",{className:"container mx-auto px-4 relative","data-id":"ex8rmcln4","data-path":"src/pages/AboutPage.tsx",children:l.jsx("div",{className:"max-w-3xl","data-id":"dlvltfu0g","data-path":"src/pages/AboutPage.tsx",children:l.jsxs(W.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},"data-id":"bs4n13z6l","data-path":"src/pages/AboutPage.tsx",children:[l.jsxs("span",{className:"inline-flex items-center gap-2 bg-amber-500/20 border border-amber-400/30 text-amber-300 px-4 py-2 rounded-full text-sm font-medium mb-6","data-id":"mgiydpxcp","data-path":"src/pages/AboutPage.tsx",children:[l.jsx(je,{className:"w-4 h-4","data-id":"3hzcbf06z","data-path":"src/pages/AboutPage.tsx"})," About Our Organization"]}),l.jsxs("h1",{className:"text-4xl md:text-5xl font-extrabold text-white mb-6 leading-tight","data-id":"5wnad864h","data-path":"src/pages/AboutPage.tsx",children:["A Community Built on",l.jsx("br",{"data-id":"gi2u8kgyi","data-path":"src/pages/AboutPage.tsx"}),l.jsx("span",{className:"text-amber-400","data-id":"bjr6xjksr","data-path":"src/pages/AboutPage.tsx",children:"Coordination & Care"})]}),l.jsx("p",{className:"text-teal-100 text-lg leading-relaxed max-w-2xl","data-id":"b1igjdnt1","data-path":"src/pages/AboutPage.tsx",children:"Homeless Action Sonoma was founded on the conviction that lasting housing stability requires more than emergency services — it requires a coordinated community committed to long-term well-being."})]})})})]}),l.jsx("section",{id:"story",className:"py-20","data-id":"923n56lkm","data-path":"src/pages/AboutPage.tsx",children:l.jsx("div",{className:"container mx-auto px-4","data-id":"th0f32pya","data-path":"src/pages/AboutPage.tsx",children:l.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center","data-id":"qs312dzge","data-path":"src/pages/AboutPage.tsx",children:[l.jsxs(W.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},"data-id":"viy6asr4a","data-path":"src/pages/AboutPage.tsx",children:[l.jsx("span",{className:"text-amber-600 font-semibold text-sm uppercase tracking-widest","data-id":"tzagc6hav","data-path":"src/pages/AboutPage.tsx",children:"Our Story"}),l.jsx("h2",{className:"text-3xl md:text-4xl font-extrabold text-gray-900 mt-2 mb-6","data-id":"z98vnmcx6","data-path":"src/pages/AboutPage.tsx",children:"From Awareness to Action"}),l.jsx("p",{className:"text-gray-600 leading-relaxed mb-5","data-id":"3r6dfm1mk","data-path":"src/pages/AboutPage.tsx",children:"Homeless Action Sonoma was established in 2020 by community members who recognized that existing services — while well-intentioned — were operating in silos. People experiencing homelessness were falling between gaps not because resources didn't exist, but because those resources weren't connected."}),l.jsx("p",{className:"text-gray-600 leading-relaxed mb-5","data-id":"ujcle8lbv","data-path":"src/pages/AboutPage.tsx",children:"We started with a simple model: bring together the organizations, faith communities, schools, and civic leaders who were already doing good work, and build the coordination infrastructure that would help their efforts reinforce each other."}),l.jsx("p",{className:"text-gray-600 leading-relaxed mb-8","data-id":"ylucbq2dq","data-path":"src/pages/AboutPage.tsx",children:"Today, Homeless Action Sonoma operates a partner network of over 85 organizations across the Sonoma Valley, providing housing navigation, behavioral health support, and community outreach to more than 1,200 individuals each year."}),l.jsx("div",{className:"grid grid-cols-2 gap-4","data-id":"xqhst7xsy","data-path":"src/pages/AboutPage.tsx",children:[{num:"2020",label:"Founded"},{num:"85+",label:"Active Partners"},{num:"1,200+",label:"People Served"},{num:"4",label:"Core Programs"}].map(e=>l.jsxs("div",{className:"bg-teal-50 rounded-xl p-4","data-id":"lriyeljbh","data-path":"src/pages/AboutPage.tsx",children:[l.jsx("div",{className:"text-2xl font-extrabold text-teal-700 mb-1","data-id":"sk1jv9fv6","data-path":"src/pages/AboutPage.tsx",children:e.num}),l.jsx("div",{className:"text-gray-500 text-sm","data-id":"c5iojfotr","data-path":"src/pages/AboutPage.tsx",children:e.label})]},e.label))})]}),l.jsx(W.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},"data-id":"6c7t4n5h7","data-path":"src/pages/AboutPage.tsx",children:l.jsx("div",{className:"rounded-2xl overflow-hidden shadow-xl","data-id":"7gq7gvaus","data-path":"src/pages/AboutPage.tsx",children:l.jsx("img",{src:"https://images.unsplash.com/photo-1469571486292-0ba58a3f068b?w=700&auto=format&fit=crop",alt:"Community collaboration",className:"w-full h-[460px] object-cover","data-id":"jah48xdxf","data-path":"src/pages/AboutPage.tsx"})})})]})})}),l.jsx("section",{id:"approach",className:"py-20 bg-gray-50","data-id":"o6fvrm9bp","data-path":"src/pages/AboutPage.tsx",children:l.jsxs("div",{className:"container mx-auto px-4","data-id":"llmsfn9he","data-path":"src/pages/AboutPage.tsx",children:[l.jsxs(W.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-14","data-id":"rfs6wxeww","data-path":"src/pages/AboutPage.tsx",children:[l.jsx("span",{className:"text-amber-600 font-semibold text-sm uppercase tracking-widest","data-id":"t6d8tu1r3","data-path":"src/pages/AboutPage.tsx",children:"Our Approach"}),l.jsx("h2",{className:"text-3xl md:text-4xl font-extrabold text-gray-900 mt-2 mb-4","data-id":"dfhfsdsnw","data-path":"src/pages/AboutPage.tsx",children:"Why Coordination Changes Everything"}),l.jsx("p",{className:"text-gray-500 max-w-2xl mx-auto","data-id":"nlzpasyia","data-path":"src/pages/AboutPage.tsx",children:"Isolated interventions address symptoms. Coordinated community action addresses causes — and builds the sustained support systems that make stability last."})]}),l.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 mb-14","data-id":"0h5ua6c0r","data-path":"src/pages/AboutPage.tsx",children:[{step:"01",title:"Outreach & Connection",desc:"Our outreach workers and community partners identify individuals in need and build initial trust relationships before introducing formal support systems.",icon:l.jsx(Lr,{className:"w-6 h-6","data-id":"31iem3x08","data-path":"src/pages/AboutPage.tsx"})},{step:"02",title:"Integrated Assessment",desc:"We assess housing, health, and behavioral health needs together, creating a holistic picture that drives a coordinated support plan.",icon:l.jsx(Va,{className:"w-6 h-6","data-id":"723c8rknu","data-path":"src/pages/AboutPage.tsx"})},{step:"03",title:"Coordinated Navigation",desc:"Rather than referring individuals to a list, we connect them to a aligned network of services — and stay present throughout the process.",icon:l.jsx(Jn,{className:"w-6 h-6","data-id":"4s7sqkteq","data-path":"src/pages/AboutPage.tsx"})}].map((e,t)=>l.jsxs(W.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:t*.1},className:"bg-white rounded-2xl p-8 shadow-sm border border-gray-100","data-id":"q6xamso10","data-path":"src/pages/AboutPage.tsx",children:[l.jsxs("div",{className:"flex items-start gap-4 mb-4","data-id":"1ngsftcq0","data-path":"src/pages/AboutPage.tsx",children:[l.jsx("div",{className:"w-12 h-12 rounded-xl bg-teal-700 text-white flex items-center justify-center flex-shrink-0","data-id":"xg8fc29x3","data-path":"src/pages/AboutPage.tsx",children:e.icon}),l.jsx("span",{className:"text-4xl font-extrabold text-gray-100 leading-none","data-id":"fzz81j2xr","data-path":"src/pages/AboutPage.tsx",children:e.step})]}),l.jsx("h3",{className:"font-bold text-gray-900 text-lg mb-3","data-id":"846aeqpeh","data-path":"src/pages/AboutPage.tsx",children:e.title}),l.jsx("p",{className:"text-gray-500 text-sm leading-relaxed","data-id":"19zenztxa","data-path":"src/pages/AboutPage.tsx",children:e.desc})]},e.step))}),l.jsx("h3",{className:"text-2xl font-extrabold text-gray-900 text-center mb-8","data-id":"48zdge8k9","data-path":"src/pages/AboutPage.tsx",children:"Our Core Values"}),l.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4","data-id":"rkqdvcp8j","data-path":"src/pages/AboutPage.tsx",children:RR.map((e,t)=>l.jsxs(W.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.4,delay:t*.07},className:"flex gap-4 p-5 bg-white rounded-xl border border-gray-100 hover:border-teal-200 transition-colors","data-id":"tgm7qr6k7","data-path":"src/pages/AboutPage.tsx",children:[l.jsx("div",{className:"w-9 h-9 rounded-lg bg-teal-100 text-teal-700 flex items-center justify-center flex-shrink-0","data-id":"hw0w2m3ne","data-path":"src/pages/AboutPage.tsx",children:e.icon}),l.jsxs("div",{"data-id":"nx2yvei4n","data-path":"src/pages/AboutPage.tsx",children:[l.jsx("div",{className:"font-semibold text-gray-900 text-sm mb-1","data-id":"10ohzbkdp","data-path":"src/pages/AboutPage.tsx",children:e.title}),l.jsx("div",{className:"text-gray-500 text-xs leading-relaxed","data-id":"mo6sgecgq","data-path":"src/pages/AboutPage.tsx",children:e.desc})]})]},e.title))})]})}),l.jsx("section",{id:"team",className:"py-20 bg-white","data-id":"bd1qid904","data-path":"src/pages/AboutPage.tsx",children:l.jsxs("div",{className:"container mx-auto px-4","data-id":"hjv2it6ar","data-path":"src/pages/AboutPage.tsx",children:[l.jsxs(W.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-14","data-id":"3tzsr4jx2","data-path":"src/pages/AboutPage.tsx",children:[l.jsx("span",{className:"text-amber-600 font-semibold text-sm uppercase tracking-widest","data-id":"i60rs5fng","data-path":"src/pages/AboutPage.tsx",children:"Our People"}),l.jsx("h2",{className:"text-3xl md:text-4xl font-extrabold text-gray-900 mt-2","data-id":"or1wb60rc","data-path":"src/pages/AboutPage.tsx",children:"Meet the Team"})]}),l.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6","data-id":"c52656x9y","data-path":"src/pages/AboutPage.tsx",children:ER.map((e,t)=>l.jsxs(W.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:t*.1},className:"group text-center","data-id":"puf2vszky","data-path":"src/pages/AboutPage.tsx",children:[l.jsx("div",{className:"w-32 h-32 rounded-2xl overflow-hidden mx-auto mb-4 shadow-md","data-id":"dh7l70s4a","data-path":"src/pages/AboutPage.tsx",children:l.jsx("img",{src:e.image,alt:e.name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300","data-id":"49qxxid54","data-path":"src/pages/AboutPage.tsx"})}),l.jsx("h3",{className:"font-bold text-gray-900 mb-1","data-id":"mv8txsa9g","data-path":"src/pages/AboutPage.tsx",children:e.name}),l.jsx("div",{className:"text-teal-600 text-sm font-medium mb-3","data-id":"qlptxa1yf","data-path":"src/pages/AboutPage.tsx",children:e.role}),l.jsx("p",{className:"text-gray-500 text-xs leading-relaxed","data-id":"x4vsv1eaq","data-path":"src/pages/AboutPage.tsx",children:e.bio})]},e.name))})]})}),l.jsx("section",{id:"partners",className:"py-20 bg-gray-50","data-id":"lumr042bn","data-path":"src/pages/AboutPage.tsx",children:l.jsxs("div",{className:"container mx-auto px-4","data-id":"n1fnrulsj","data-path":"src/pages/AboutPage.tsx",children:[l.jsxs(W.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-14","data-id":"4u251qzqr","data-path":"src/pages/AboutPage.tsx",children:[l.jsx("span",{className:"text-amber-600 font-semibold text-sm uppercase tracking-widest","data-id":"vii20c8ki","data-path":"src/pages/AboutPage.tsx",children:"Community Network"}),l.jsx("h2",{className:"text-3xl md:text-4xl font-extrabold text-gray-900 mt-2 mb-4","data-id":"cuv6i5ecs","data-path":"src/pages/AboutPage.tsx",children:"Our Partners"}),l.jsx("p",{className:"text-gray-500 max-w-xl mx-auto","data-id":"00bdlwjux","data-path":"src/pages/AboutPage.tsx",children:"Our strength comes from the organizations, congregations, schools, and civic groups that align their efforts with our shared mission."})]}),l.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-12","data-id":"ehmmq5o6i","data-path":"src/pages/AboutPage.tsx",children:AR.map((e,t)=>l.jsxs(W.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.4,delay:t*.07},className:"bg-white rounded-xl p-5 border border-gray-100 hover:border-teal-200 hover:shadow-sm transition-all","data-id":"9iu2czbhg","data-path":"src/pages/AboutPage.tsx",children:[l.jsx("div",{className:"inline-flex items-center px-2.5 py-1 rounded-full bg-teal-50 text-teal-700 text-xs font-medium mb-3","data-id":"r43zdxqp7","data-path":"src/pages/AboutPage.tsx",children:e.type}),l.jsx("h3",{className:"font-semibold text-gray-900 text-sm mb-2","data-id":"n44oz91uj","data-path":"src/pages/AboutPage.tsx",children:e.name}),l.jsx("p",{className:"text-gray-500 text-xs leading-relaxed","data-id":"y0qtymizq","data-path":"src/pages/AboutPage.tsx",children:e.desc})]},e.name))}),l.jsxs("div",{className:"bg-teal-700 rounded-2xl p-8 md:p-10 text-center text-white","data-id":"5dzpgcbee","data-path":"src/pages/AboutPage.tsx",children:[l.jsx("h3",{className:"text-2xl font-extrabold mb-3","data-id":"du81lxuf7","data-path":"src/pages/AboutPage.tsx",children:"Interested in Partnering with Us?"}),l.jsx("p",{className:"text-teal-200 mb-6 max-w-xl mx-auto text-sm","data-id":"hi01j8u44","data-path":"src/pages/AboutPage.tsx",children:"We welcome churches, schools, businesses, civic organizations, and government agencies committed to improving housing outcomes across Sonoma."}),l.jsxs(H,{to:"/contact",className:"inline-flex items-center gap-2 px-8 py-3.5 bg-amber-500 hover:bg-amber-600 text-white rounded-full font-semibold transition-colors","data-id":"07jjneqlw","data-path":"src/pages/AboutPage.tsx",children:["Start a Partnership Conversation ",l.jsx(ze,{className:"w-4 h-4","data-id":"2z76dli7u","data-path":"src/pages/AboutPage.tsx"})]})]})]})}),l.jsx(ra,{"data-id":"jq6csy1tq","data-path":"src/pages/AboutPage.tsx"})]}),MR=[{id:"housing",icon:l.jsx(za,{className:"w-8 h-8","data-id":"blcdfy5mr","data-path":"src/pages/ProgramsPage.tsx"}),color:"from-teal-700 to-teal-600",accentBg:"bg-teal-50",accentText:"text-teal-700",badge:"Housing Stability",title:"Housing Resource Navigation",subtitle:"Finding the right path through Sonoma County's housing landscape",desc:"Housing resource navigation is the cornerstone of our work. Many individuals and families facing housing instability are not short on resources — they're short on clear guidance through a complex system. We change that.",desc2:"Our housing navigators meet with individuals one-on-one to understand their full situation — history, health needs, financial circumstances, and personal goals. From that conversation, we develop a realistic, personalized housing plan that identifies the most appropriate pathway forward.",image:"https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=700&auto=format&fit=crop",features:["Personalized housing pathway assessment","Emergency shelter referrals and placement support","Transitional housing coordination","Rapid rehousing and rental assistance navigation","Tenant rights education and documentation support","Long-term supportive housing applications","Ongoing case follow-up beyond initial placement"],who:"Adults and families currently experiencing or at imminent risk of housing instability in the Sonoma Valley.",outcome:"85% of individuals who complete our navigation program achieve stable housing within 90 days."},{id:"behavioral-health",icon:l.jsx(Va,{className:"w-8 h-8","data-id":"1cc1559ub","data-path":"src/pages/ProgramsPage.tsx"}),color:"from-amber-600 to-amber-500",accentBg:"bg-amber-50",accentText:"text-amber-700",badge:"Recovery & Wellness",title:"Behavioral Health & Recovery Support",subtitle:"Addressing the whole person, not just the immediate need",desc:"Housing instability and behavioral health challenges are deeply interconnected. Unaddressed mental illness and substance use are among the leading drivers of housing loss — and individuals without behavioral health support are significantly more likely to cycle through crisis repeatedly.",desc2:"Our behavioral health programming is integrated with housing services, not siloed from them. We work alongside licensed counselors, peer support specialists, and recovery programs to ensure that every individual we serve has access to the mental health and addiction support that makes housing stability sustainable.",image:"https://images.unsplash.com/photo-1573497019940-1c28c88b4f3e?w=700&auto=format&fit=crop",features:["Trauma-informed mental health counseling referrals","Addiction recovery support and peer connections","Co-occurring disorder coordination","Medication management navigation","Crisis support and stabilization resources","Peer mentor matching","Long-term recovery planning"],who:"Individuals experiencing mental health challenges, substance use, or co-occurring disorders alongside housing instability.",outcome:"Participants in integrated housing and behavioral health support show a 40% higher rate of 12-month housing retention."},{id:"outreach",icon:l.jsx(Jn,{className:"w-8 h-8","data-id":"3f6mbb98x","data-path":"src/pages/ProgramsPage.tsx"}),color:"from-teal-800 to-teal-700",accentBg:"bg-teal-50",accentText:"text-teal-700",badge:"Community Presence",title:"Community Outreach",subtitle:"Building trust before services, presence before paperwork",desc:"Effective outreach doesn't start with a brochure. It starts with presence, consistency, and a willingness to meet people exactly where they are — geographically, emotionally, and practically. Our outreach team builds genuine relationships before they ever discuss a program.",desc2:"Our community outreach workers are deployed across the Sonoma Valley, partnering with churches, parks, food distribution sites, and community centers to maintain a visible, trusted presence. They act as bridges — connecting individuals to the broader support network at the moment the individual feels ready, not when a program schedule demands it.",image:"https://images.unsplash.com/photo-1529156069898-49953e39b3ac?w=700&auto=format&fit=crop",features:["Street and community-based outreach","Faith community partnership coordination","Mobile resource distribution","Warm handoffs to partner services","Trust-building and relationship maintenance","Community needs assessment and feedback","Crisis identification and emergency referral"],who:"Individuals and families experiencing homelessness or housing instability who may not yet be connected to formal services.",outcome:"Our outreach team makes an average of 180 community contacts per month across Sonoma Valley locations."},{id:"education",icon:l.jsx($r,{className:"w-8 h-8","data-id":"b8ae17j39","data-path":"src/pages/ProgramsPage.tsx"}),color:"from-teal-600 to-teal-500",accentBg:"bg-teal-50",accentText:"text-teal-700",badge:"Awareness & Prevention",title:"Education & Community Awareness",subtitle:"Building the informed community that can solve housing instability",desc:"Public understanding of homelessness shapes local policy, funding priorities, and neighbor relationships. When communities understand the structural drivers of housing instability — and the evidence-based responses that work — they become powerful partners in the solution.",desc2:"Our education programming reaches students, parents, faith communities, business owners, and civic leaders with content that challenges stigma, explains systemic factors, and demonstrates how coordinated community action creates lasting change. We tailor each presentation to its audience, ensuring the conversation is relevant, respectful, and actionable.",image:"https://images.unsplash.com/photo-1524178232363-1fb2b075b655?w=700&auto=format&fit=crop",features:["School presentations on housing and economic inequality","McKinney-Vento Act training for school staff","Community forums for faith and civic organizations","Business community awareness sessions","Policy education for government leaders","Volunteer training programs","Public media and storytelling initiatives"],who:"Schools, faith communities, civic organizations, businesses, and government agencies seeking to deepen their understanding and strengthen their community response.",outcome:"Over 600 students and 400 community members reached through education initiatives this year."}],OR=()=>l.jsxs("div",{className:"min-h-screen bg-white","data-id":"3e6adrmwp","data-path":"src/pages/ProgramsPage.tsx",children:[l.jsx(dn,{"data-id":"je8bwa2mf","data-path":"src/pages/ProgramsPage.tsx"}),l.jsxs("section",{className:"pt-32 pb-16 bg-gradient-to-br from-teal-900 to-teal-700 relative overflow-hidden","data-id":"hd49xqnjw","data-path":"src/pages/ProgramsPage.tsx",children:[l.jsx("div",{className:"absolute inset-0 opacity-10","data-id":"y4yxtkj1m","data-path":"src/pages/ProgramsPage.tsx",children:l.jsx("div",{className:"absolute bottom-0 left-1/3 w-80 h-80 bg-amber-400 rounded-full blur-3xl","data-id":"vshkexfi8","data-path":"src/pages/ProgramsPage.tsx"})}),l.jsx("div",{className:"container mx-auto px-4 relative text-center","data-id":"zsb7cifpc","data-path":"src/pages/ProgramsPage.tsx",children:l.jsxs(W.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},"data-id":"z0ic3mq2k","data-path":"src/pages/ProgramsPage.tsx",children:[l.jsxs("span",{className:"inline-flex items-center gap-2 bg-amber-500/20 border border-amber-400/30 text-amber-300 px-4 py-2 rounded-full text-sm font-medium mb-6","data-id":"nnvm5ftf1","data-path":"src/pages/ProgramsPage.tsx",children:[l.jsx(je,{className:"w-4 h-4","data-id":"2d42nuuol","data-path":"src/pages/ProgramsPage.tsx"})," What We Do"]}),l.jsxs("h1",{className:"text-4xl md:text-5xl font-extrabold text-white mb-6","data-id":"8yhui8vy0","data-path":"src/pages/ProgramsPage.tsx",children:["Programs Built for",l.jsx("br",{"data-id":"c5eduqs1c","data-path":"src/pages/ProgramsPage.tsx"}),l.jsx("span",{className:"text-amber-400","data-id":"npp3mhiwy","data-path":"src/pages/ProgramsPage.tsx",children:"Lasting Impact"})]}),l.jsx("p",{className:"text-teal-100 text-lg max-w-2xl mx-auto","data-id":"83nagpuy8","data-path":"src/pages/ProgramsPage.tsx",children:"Each of our four programs addresses a specific dimension of housing instability — and together, they form a coordinated system of support that creates sustainable change."}),l.jsx("div",{className:"flex flex-wrap justify-center gap-3 mt-8","data-id":"87wz2z0rz","data-path":"src/pages/ProgramsPage.tsx",children:["Housing Navigation","Behavioral Health","Community Outreach","Education"].map(e=>l.jsx("a",{href:`#${e.toLowerCase().replace(/ /g,"-")}`,className:"px-4 py-2 bg-white/10 hover:bg-white/20 border border-white/20 text-white rounded-full text-sm font-medium transition-colors","data-id":"f7fn35vcn","data-path":"src/pages/ProgramsPage.tsx",children:e},e))})]})})]}),MR.map((e,t)=>l.jsx("section",{id:e.id,className:`py-20 ${t%2===1?"bg-gray-50":"bg-white"}`,"data-id":"jmpslmpt0","data-path":"src/pages/ProgramsPage.tsx",children:l.jsx("div",{className:"container mx-auto px-4","data-id":"27fxpdjl8","data-path":"src/pages/ProgramsPage.tsx",children:l.jsxs("div",{className:`grid grid-cols-1 lg:grid-cols-2 gap-12 items-center ${t%2===1?"lg:flex-row-reverse":""}`,"data-id":"wycnt65c4","data-path":"src/pages/ProgramsPage.tsx",children:[l.jsxs(W.div,{initial:{opacity:0,x:t%2===0?-30:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},className:t%2===1?"lg:order-2":"","data-id":"bfvwt28ao","data-path":"src/pages/ProgramsPage.tsx",children:[l.jsx("div",{className:`inline-flex items-center gap-2 ${e.accentBg} ${e.accentText} px-3 py-1.5 rounded-full text-xs font-semibold uppercase tracking-wide mb-4`,"data-id":"kev5emnob","data-path":"src/pages/ProgramsPage.tsx",children:e.badge}),l.jsx("div",{className:`w-14 h-14 rounded-2xl bg-gradient-to-br ${e.color} text-white flex items-center justify-center mb-5`,"data-id":"ulxura30g","data-path":"src/pages/ProgramsPage.tsx",children:e.icon}),l.jsx("h2",{className:"text-3xl md:text-4xl font-extrabold text-gray-900 mb-2","data-id":"wipj72dcb","data-path":"src/pages/ProgramsPage.tsx",children:e.title}),l.jsx("p",{className:`${e.accentText} font-medium mb-5`,"data-id":"vprx51tns","data-path":"src/pages/ProgramsPage.tsx",children:e.subtitle}),l.jsx("p",{className:"text-gray-600 leading-relaxed mb-4","data-id":"3h6p7mm71","data-path":"src/pages/ProgramsPage.tsx",children:e.desc}),l.jsx("p",{className:"text-gray-600 leading-relaxed mb-8","data-id":"nrb7aoa78","data-path":"src/pages/ProgramsPage.tsx",children:e.desc2}),l.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2 mb-8","data-id":"fx9opqedp","data-path":"src/pages/ProgramsPage.tsx",children:e.features.map(n=>l.jsxs("div",{className:"flex items-start gap-2","data-id":"41m3svk7o","data-path":"src/pages/ProgramsPage.tsx",children:[l.jsx(Or,{className:"w-4 h-4 text-teal-600 flex-shrink-0 mt-0.5","data-id":"y0i87u315","data-path":"src/pages/ProgramsPage.tsx"}),l.jsx("span",{className:"text-gray-700 text-sm","data-id":"oadicm43j","data-path":"src/pages/ProgramsPage.tsx",children:n})]},n))}),l.jsxs("div",{className:`${e.accentBg} rounded-xl p-5 mb-6`,"data-id":"81tt4ma8f","data-path":"src/pages/ProgramsPage.tsx",children:[l.jsxs("div",{className:"flex items-start gap-3 mb-3","data-id":"pob0wu4no","data-path":"src/pages/ProgramsPage.tsx",children:[l.jsx(Lr,{className:"w-4 h-4 text-gray-500 flex-shrink-0 mt-0.5","data-id":"uugyh1jvr","data-path":"src/pages/ProgramsPage.tsx"}),l.jsxs("div",{"data-id":"7n5gva3uv","data-path":"src/pages/ProgramsPage.tsx",children:[l.jsx("div",{className:"text-xs font-semibold text-gray-500 uppercase tracking-wide mb-1","data-id":"ynwv4q2pj","data-path":"src/pages/ProgramsPage.tsx",children:"Who This Serves"}),l.jsx("p",{className:"text-gray-700 text-sm","data-id":"y3rjaqee4","data-path":"src/pages/ProgramsPage.tsx",children:e.who})]})]}),l.jsxs("div",{className:"flex items-start gap-3","data-id":"fgrs4qug5","data-path":"src/pages/ProgramsPage.tsx",children:[l.jsx(K0,{className:"w-4 h-4 text-amber-500 flex-shrink-0 mt-0.5","data-id":"0udqj2a9k","data-path":"src/pages/ProgramsPage.tsx"}),l.jsxs("div",{"data-id":"rjsdgf9gl","data-path":"src/pages/ProgramsPage.tsx",children:[l.jsx("div",{className:"text-xs font-semibold text-gray-500 uppercase tracking-wide mb-1","data-id":"pz825307h","data-path":"src/pages/ProgramsPage.tsx",children:"Measured Outcome"}),l.jsx("p",{className:"text-gray-700 text-sm","data-id":"tk7ibdtuz","data-path":"src/pages/ProgramsPage.tsx",children:e.outcome})]})]})]}),l.jsxs(H,{to:"/contact",className:"inline-flex items-center gap-2 px-6 py-3 bg-teal-700 hover:bg-teal-800 text-white rounded-full font-semibold text-sm transition-colors","data-id":"2tpmz2xr6","data-path":"src/pages/ProgramsPage.tsx",children:["Connect with This Program ",l.jsx(ze,{className:"w-4 h-4","data-id":"lgie2pa7b","data-path":"src/pages/ProgramsPage.tsx"})]})]}),l.jsx(W.div,{initial:{opacity:0,x:t%2===0?30:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},className:t%2===1?"lg:order-1":"","data-id":"qqceq50qv","data-path":"src/pages/ProgramsPage.tsx",children:l.jsx("div",{className:"rounded-2xl overflow-hidden shadow-xl","data-id":"uhqadrabc","data-path":"src/pages/ProgramsPage.tsx",children:l.jsx("img",{src:e.image,alt:e.title,className:"w-full h-[420px] object-cover","data-id":"axrs7yfg8","data-path":"src/pages/ProgramsPage.tsx"})})})]})})},e.id)),l.jsx("section",{className:"py-16 bg-teal-700","data-id":"vx5cmxdc6","data-path":"src/pages/ProgramsPage.tsx",children:l.jsxs("div",{className:"container mx-auto px-4 text-center text-white","data-id":"a3kg7wrkf","data-path":"src/pages/ProgramsPage.tsx",children:[l.jsx("h2",{className:"text-3xl font-extrabold mb-4","data-id":"3phuomuzn","data-path":"src/pages/ProgramsPage.tsx",children:"Ready to Connect?"}),l.jsx("p",{className:"text-teal-200 mb-8 max-w-xl mx-auto","data-id":"1fspkytjk","data-path":"src/pages/ProgramsPage.tsx",children:"Whether you're seeking support or looking to refer someone, our team is here to help you find the right pathway forward."}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center","data-id":"geqg67ihp","data-path":"src/pages/ProgramsPage.tsx",children:[l.jsx(H,{to:"/contact",className:"px-8 py-4 bg-amber-500 hover:bg-amber-600 text-white rounded-full font-bold transition-colors","data-id":"ot03hlte4","data-path":"src/pages/ProgramsPage.tsx",children:"Get in Touch"}),l.jsx(H,{to:"/donate",className:"px-8 py-4 bg-white/10 hover:bg-white/20 border border-white/30 text-white rounded-full font-semibold transition-colors","data-id":"jvgknzeo4","data-path":"src/pages/ProgramsPage.tsx",children:"Support Our Programs"})]}),l.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-6 mt-10 text-teal-200 text-sm","data-id":"xh3jhp1d0","data-path":"src/pages/ProgramsPage.tsx",children:[l.jsxs("a",{href:"tel:+17073040502",className:"flex items-center gap-2 hover:text-amber-300 transition-colors","data-id":"41drlxzbr","data-path":"src/pages/ProgramsPage.tsx",children:[l.jsx(Ys,{className:"w-4 h-4","data-id":"4xfyc5fot","data-path":"src/pages/ProgramsPage.tsx"})," +1-707-304-0502"]}),l.jsxs("a",{href:"mailto:staff@momentumconverthub.com",className:"flex items-center gap-2 hover:text-amber-300 transition-colors","data-id":"e4o9exlkm","data-path":"src/pages/ProgramsPage.tsx",children:[l.jsx(gi,{className:"w-4 h-4","data-id":"51v0pldxs","data-path":"src/pages/ProgramsPage.tsx"})," staff@momentumconverthub.com"]})]})]})}),l.jsx(ra,{"data-id":"tjb3s9gyo","data-path":"src/pages/ProgramsPage.tsx"})]}),LR=["All","Housing Resources","Behavioral Health","Community Partnerships","Education & Outreach","Resources"],_R=()=>{const[e,t]=v.useState([]),[n,a]=v.useState(!0),[r,s]=v.useState("All"),[i,o]=v.useState("");v.useEffect(()=>{(async()=>{try{const{data:f,error:h}=await window.ezsite.apis.tablePage(84700,{PageNo:1,PageSize:20,OrderByField:"ID",IsAsc:!1});!h&&(f!=null&&f.List)&&t(f.List)}catch{}finally{a(!1)}})()},[]);const c=e.filter(f=>{var x;const h=r==="All"||f.category===r,m=!i||f.title.toLowerCase().includes(i.toLowerCase())||((x=f.excerpt)==null?void 0:x.toLowerCase().includes(i.toLowerCase()));return h&&m}),u=c.find(f=>f.featured),d=c.filter(f=>!f.featured||r!=="All"||i);return l.jsxs("div",{className:"min-h-screen bg-white","data-id":"5ztek4ahf","data-path":"src/pages/BlogPage.tsx",children:[l.jsx(dn,{"data-id":"t0s289kye","data-path":"src/pages/BlogPage.tsx"}),l.jsxs("section",{className:"pt-32 pb-16 bg-gradient-to-br from-teal-900 to-teal-700 relative overflow-hidden","data-id":"zstg4eo9z","data-path":"src/pages/BlogPage.tsx",children:[l.jsx("div",{className:"absolute inset-0 opacity-10","data-id":"ca6emi2x1","data-path":"src/pages/BlogPage.tsx",children:l.jsx("div",{className:"absolute top-1/2 right-0 w-72 h-72 bg-amber-400 rounded-full translate-x-1/3 -translate-y-1/2 blur-3xl","data-id":"l5oa7lksj","data-path":"src/pages/BlogPage.tsx"})}),l.jsx("div",{className:"container mx-auto px-4 relative text-center","data-id":"fc1dgpt44","data-path":"src/pages/BlogPage.tsx",children:l.jsxs(W.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},"data-id":"risl6p00v","data-path":"src/pages/BlogPage.tsx",children:[l.jsxs("span",{className:"inline-flex items-center gap-2 bg-amber-500/20 border border-amber-400/30 text-amber-300 px-4 py-2 rounded-full text-sm font-medium mb-6","data-id":"xp4rs0z8r","data-path":"src/pages/BlogPage.tsx",children:[l.jsx(Yo,{className:"w-4 h-4","data-id":"mhm2dhsj9","data-path":"src/pages/BlogPage.tsx"})," Knowledge & Perspectives"]}),l.jsxs("h1",{className:"text-4xl md:text-5xl font-extrabold text-white mb-4","data-id":"3qn6wa5t1","data-path":"src/pages/BlogPage.tsx",children:["Blog & ",l.jsx("span",{className:"text-amber-400","data-id":"zdnv8y26i","data-path":"src/pages/BlogPage.tsx",children:"News"})]}),l.jsx("p",{className:"text-teal-200 text-lg max-w-xl mx-auto mb-8","data-id":"ca1bha1up","data-path":"src/pages/BlogPage.tsx",children:"Solutions-focused insights on housing stability, community partnerships, behavioral health, and systemic change."}),l.jsxs("div",{className:"relative max-w-md mx-auto","data-id":"ge5dluu1t","data-path":"src/pages/BlogPage.tsx",children:[l.jsx(T2,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400","data-id":"qtwmtd27v","data-path":"src/pages/BlogPage.tsx"}),l.jsx("input",{type:"text",placeholder:"Search articles...",value:i,onChange:f=>o(f.target.value),className:"w-full pl-10 pr-4 py-3 rounded-full bg-white text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-amber-400 text-sm","data-id":"s999ct66s","data-path":"src/pages/BlogPage.tsx"})]})]})})]}),l.jsx("section",{className:"border-b border-gray-100 bg-white sticky top-16 md:top-20 z-30 shadow-sm","data-id":"oehyp5dqd","data-path":"src/pages/BlogPage.tsx",children:l.jsx("div",{className:"container mx-auto px-4","data-id":"52gpd3qnh","data-path":"src/pages/BlogPage.tsx",children:l.jsxs("div",{className:"flex items-center gap-2 overflow-x-auto py-4 scrollbar-none","data-id":"3v86fcncc","data-path":"src/pages/BlogPage.tsx",children:[l.jsx(l2,{className:"w-4 h-4 text-gray-400 flex-shrink-0","data-id":"sggcnyzcm","data-path":"src/pages/BlogPage.tsx"}),LR.map(f=>l.jsx("button",{onClick:()=>s(f),className:`flex-shrink-0 px-4 py-2 rounded-full text-sm font-medium transition-colors ${r===f?"bg-teal-700 text-white":"bg-gray-100 text-gray-600 hover:bg-teal-50 hover:text-teal-700"}`,"data-id":"xcv0kx0ez","data-path":"src/pages/BlogPage.tsx",children:f},f))]})})}),l.jsx("section",{className:"py-16","data-id":"o8ybxgydr","data-path":"src/pages/BlogPage.tsx",children:l.jsx("div",{className:"container mx-auto px-4","data-id":"s9bnk3v41","data-path":"src/pages/BlogPage.tsx",children:n?l.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6","data-id":"c7nevzrqc","data-path":"src/pages/BlogPage.tsx",children:[1,2,3].map(f=>l.jsx("div",{className:"animate-pulse rounded-2xl bg-gray-100 h-72","data-id":"0o0jtop2f","data-path":"src/pages/BlogPage.tsx"},f))}):c.length===0?l.jsxs("div",{className:"text-center py-20","data-id":"sa3wpwq98","data-path":"src/pages/BlogPage.tsx",children:[l.jsx(Yo,{className:"w-12 h-12 text-gray-200 mx-auto mb-4","data-id":"26u1sbirk","data-path":"src/pages/BlogPage.tsx"}),l.jsx("p",{className:"text-gray-400 text-lg","data-id":"io4b3w8w3","data-path":"src/pages/BlogPage.tsx",children:"No articles found matching your search."})]}):l.jsxs(l.Fragment,{children:[u&&r==="All"&&!i&&l.jsx(W.article,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"mb-12 group","data-id":"0gwtmk54i","data-path":"src/pages/BlogPage.tsx",children:l.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 rounded-2xl overflow-hidden shadow-lg border border-gray-100","data-id":"1dnwi8d4f","data-path":"src/pages/BlogPage.tsx",children:[l.jsxs("div",{className:"relative h-64 lg:h-auto overflow-hidden","data-id":"x69f9g83g","data-path":"src/pages/BlogPage.tsx",children:[l.jsx("img",{src:u.image_url,alt:u.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500","data-id":"2vs8wbdaq","data-path":"src/pages/BlogPage.tsx"}),l.jsx("span",{className:"absolute top-4 left-4 bg-amber-500 text-white text-xs px-3 py-1.5 rounded-full font-semibold uppercase tracking-wide","data-id":"w0uoza0co","data-path":"src/pages/BlogPage.tsx",children:"Featured"})]}),l.jsxs("div",{className:"p-8 flex flex-col justify-center bg-white","data-id":"duj1fhtws","data-path":"src/pages/BlogPage.tsx",children:[l.jsx("span",{className:"inline-block bg-teal-50 text-teal-700 text-xs px-3 py-1 rounded-full font-medium mb-4","data-id":"iv2h7xlq3","data-path":"src/pages/BlogPage.tsx",children:u.category}),l.jsx("h2",{className:"text-2xl md:text-3xl font-extrabold text-gray-900 mb-4 leading-snug","data-id":"gvl7up9of","data-path":"src/pages/BlogPage.tsx",children:u.title}),l.jsx("p",{className:"text-gray-500 leading-relaxed mb-6 line-clamp-3","data-id":"3x5vis8co","data-path":"src/pages/BlogPage.tsx",children:u.excerpt}),l.jsxs("div",{className:"flex items-center gap-4 text-sm text-gray-400 mb-6","data-id":"zdo29y7dw","data-path":"src/pages/BlogPage.tsx",children:[l.jsx("span",{className:"font-medium text-gray-600","data-id":"c8uec63bp","data-path":"src/pages/BlogPage.tsx",children:u.author}),l.jsx("span",{"data-id":"3bk8ba23r","data-path":"src/pages/BlogPage.tsx",children:"·"}),l.jsx("span",{"data-id":"unwycfdkh","data-path":"src/pages/BlogPage.tsx",children:u.published_date}),l.jsx("span",{"data-id":"xgsl3uotv","data-path":"src/pages/BlogPage.tsx",children:"·"}),l.jsxs("span",{className:"flex items-center gap-1","data-id":"mi0bbxmci","data-path":"src/pages/BlogPage.tsx",children:[l.jsx(Xo,{className:"w-3.5 h-3.5","data-id":"feajg8dy4","data-path":"src/pages/BlogPage.tsx"})," ",u.read_time," min"]})]}),l.jsxs(H,{to:`/blog/${u.slug}`,className:"inline-flex items-center gap-2 px-6 py-3 bg-teal-700 hover:bg-teal-800 text-white rounded-full font-semibold text-sm transition-colors self-start","data-id":"qh1vsijni","data-path":"src/pages/BlogPage.tsx",children:["Read Article ",l.jsx(ze,{className:"w-4 h-4","data-id":"d8nbfvxkp","data-path":"src/pages/BlogPage.tsx"})]})]})]})}),l.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6","data-id":"qpzy93s2k","data-path":"src/pages/BlogPage.tsx",children:(r!=="All"||i?c:d).map((f,h)=>l.jsxs(W.article,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:h*.1},className:"group bg-white rounded-2xl overflow-hidden shadow-sm hover:shadow-lg transition-shadow border border-gray-100 flex flex-col","data-id":"of7i0vm2g","data-path":"src/pages/BlogPage.tsx",children:[l.jsxs("div",{className:"relative h-48 overflow-hidden","data-id":"1sb0megl4","data-path":"src/pages/BlogPage.tsx",children:[l.jsx("img",{src:f.image_url,alt:f.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500","data-id":"nai6o4xlg","data-path":"src/pages/BlogPage.tsx"}),l.jsx("span",{className:"absolute top-3 left-3 bg-teal-700 text-white text-xs px-3 py-1 rounded-full font-medium","data-id":"s5oleleaz","data-path":"src/pages/BlogPage.tsx",children:f.category})]}),l.jsxs("div",{className:"p-5 flex flex-col flex-1","data-id":"jr56obzd0","data-path":"src/pages/BlogPage.tsx",children:[l.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-400 mb-3","data-id":"l43y8ky6t","data-path":"src/pages/BlogPage.tsx",children:[l.jsx("span",{"data-id":"x963xgay2","data-path":"src/pages/BlogPage.tsx",children:f.published_date}),l.jsx("span",{"data-id":"zu6osyz2d","data-path":"src/pages/BlogPage.tsx",children:"·"}),l.jsxs("span",{className:"flex items-center gap-1","data-id":"1b7nfm3kw","data-path":"src/pages/BlogPage.tsx",children:[l.jsx(Xo,{className:"w-3 h-3","data-id":"9mt12ravb","data-path":"src/pages/BlogPage.tsx"})," ",f.read_time," min read"]})]}),l.jsx("h3",{className:"font-bold text-gray-900 text-base leading-snug mb-2 line-clamp-2","data-id":"w8j7bed57","data-path":"src/pages/BlogPage.tsx",children:f.title}),l.jsx("p",{className:"text-gray-500 text-sm leading-relaxed mb-4 flex-1 line-clamp-3","data-id":"phop82n4t","data-path":"src/pages/BlogPage.tsx",children:f.excerpt}),l.jsxs("div",{className:"flex items-center justify-between","data-id":"njny8zaly","data-path":"src/pages/BlogPage.tsx",children:[l.jsx("span",{className:"text-xs text-gray-400 font-medium","data-id":"paalbv044","data-path":"src/pages/BlogPage.tsx",children:f.author}),l.jsxs(H,{to:`/blog/${f.slug}`,className:"flex items-center gap-1 text-teal-700 font-semibold text-sm hover:text-teal-900 transition-colors","data-id":"iqslvp6vg","data-path":"src/pages/BlogPage.tsx",children:["Read ",l.jsx(ze,{className:"w-3.5 h-3.5","data-id":"v7e4vmyyj","data-path":"src/pages/BlogPage.tsx"})]})]})]})]},f.ID))})]})})}),l.jsx("section",{className:"py-14 bg-teal-700","data-id":"n88cqpvuv","data-path":"src/pages/BlogPage.tsx",children:l.jsxs("div",{className:"container mx-auto px-4 text-center text-white","data-id":"efrpsauuc","data-path":"src/pages/BlogPage.tsx",children:[l.jsx(je,{className:"w-8 h-8 text-amber-400 mx-auto mb-4","data-id":"0825bz4ww","data-path":"src/pages/BlogPage.tsx"}),l.jsx("h2",{className:"text-2xl font-extrabold mb-3","data-id":"qxr4326db","data-path":"src/pages/BlogPage.tsx",children:"Never Miss a Story"}),l.jsx("p",{className:"text-teal-200 mb-6 text-sm max-w-md mx-auto","data-id":"whdrdzq6v","data-path":"src/pages/BlogPage.tsx",children:"Subscribe to receive our latest articles, community updates, and insights on housing solutions delivered to your inbox."}),l.jsxs(H,{to:"/#newsletter",className:"inline-flex items-center gap-2 px-8 py-3.5 bg-amber-500 hover:bg-amber-600 text-white rounded-full font-semibold transition-colors","data-id":"vh8ssttrk","data-path":"src/pages/BlogPage.tsx",children:["Subscribe to Updates ",l.jsx(ze,{className:"w-4 h-4","data-id":"p714jhfwi","data-path":"src/pages/BlogPage.tsx"})]})]})}),l.jsx(ra,{"data-id":"8u51aqkvv","data-path":"src/pages/BlogPage.tsx"})]})},IR=()=>{var d;const{slug:e}=mT(),[t,n]=v.useState(null),[a,r]=v.useState([]),[s,i]=v.useState(!0),[o,c]=v.useState(!1);if(v.useEffect(()=>{e&&(async()=>{try{const{data:f,error:h}=await window.ezsite.apis.tablePage(84700,{PageNo:1,PageSize:20,OrderByField:"ID",IsAsc:!1});if(!h&&(f!=null&&f.List)){const m=f.List.find(x=>x.slug===e);m?(n(m),r(f.List.filter(x=>x.slug!==e&&x.category===m.category).slice(0,3))):c(!0)}}catch{c(!0)}finally{i(!1)}})()},[e]),s)return l.jsxs("div",{className:"min-h-screen bg-white","data-id":"r0v9xtuea","data-path":"src/pages/BlogDetailPage.tsx",children:[l.jsx(dn,{"data-id":"2y1f2iq6n","data-path":"src/pages/BlogDetailPage.tsx"}),l.jsx("div",{className:"pt-32 container mx-auto px-4","data-id":"ukzxkjus0","data-path":"src/pages/BlogDetailPage.tsx",children:l.jsxs("div",{className:"max-w-3xl mx-auto animate-pulse space-y-4","data-id":"xw5ayyuub","data-path":"src/pages/BlogDetailPage.tsx",children:[l.jsx("div",{className:"h-8 bg-gray-100 rounded w-3/4","data-id":"n20bctw6o","data-path":"src/pages/BlogDetailPage.tsx"}),l.jsx("div",{className:"h-4 bg-gray-100 rounded w-1/2","data-id":"kra89zrav","data-path":"src/pages/BlogDetailPage.tsx"}),l.jsx("div",{className:"h-64 bg-gray-100 rounded-2xl","data-id":"qsmy5dvxd","data-path":"src/pages/BlogDetailPage.tsx"}),l.jsx("div",{className:"h-4 bg-gray-100 rounded","data-id":"cbt50w2bm","data-path":"src/pages/BlogDetailPage.tsx"}),l.jsx("div",{className:"h-4 bg-gray-100 rounded w-5/6","data-id":"e9ntqrvug","data-path":"src/pages/BlogDetailPage.tsx"})]})})]});if(o||!t)return l.jsxs("div",{className:"min-h-screen bg-white","data-id":"nlm6tozj0","data-path":"src/pages/BlogDetailPage.tsx",children:[l.jsx(dn,{"data-id":"mocdcmixg","data-path":"src/pages/BlogDetailPage.tsx"}),l.jsxs("div",{className:"pt-32 pb-20 container mx-auto px-4 text-center","data-id":"cqgj7qi88","data-path":"src/pages/BlogDetailPage.tsx",children:[l.jsx(Yo,{className:"w-16 h-16 text-gray-200 mx-auto mb-6","data-id":"49s2ri0pk","data-path":"src/pages/BlogDetailPage.tsx"}),l.jsx("h1",{className:"text-3xl font-extrabold text-gray-900 mb-4","data-id":"oaojxfxhb","data-path":"src/pages/BlogDetailPage.tsx",children:"Article Not Found"}),l.jsx("p",{className:"text-gray-500 mb-8","data-id":"v6wuuteub","data-path":"src/pages/BlogDetailPage.tsx",children:"We couldn't find the article you're looking for."}),l.jsxs(H,{to:"/blog",className:"inline-flex items-center gap-2 px-6 py-3 bg-teal-700 text-white rounded-full font-semibold hover:bg-teal-800 transition-colors","data-id":"6wxi16x5u","data-path":"src/pages/BlogDetailPage.tsx",children:[l.jsx(em,{className:"w-4 h-4","data-id":"pa94tg6z3","data-path":"src/pages/BlogDetailPage.tsx"})," Back to Blog"]})]}),l.jsx(ra,{"data-id":"4dr8iqmxs","data-path":"src/pages/BlogDetailPage.tsx"})]});const u=(t.content||"").split(`
`).filter(Boolean);return l.jsxs("div",{className:"min-h-screen bg-white","data-id":"ou4mzujch","data-path":"src/pages/BlogDetailPage.tsx",children:[l.jsx(dn,{"data-id":"kxosj8q5d","data-path":"src/pages/BlogDetailPage.tsx"}),l.jsx("section",{className:"pt-28 pb-10 bg-gray-50 border-b border-gray-100","data-id":"ebfa285mk","data-path":"src/pages/BlogDetailPage.tsx",children:l.jsx("div",{className:"container mx-auto px-4","data-id":"em7bomzp0","data-path":"src/pages/BlogDetailPage.tsx",children:l.jsx("div",{className:"max-w-3xl mx-auto","data-id":"k1v5hbblq","data-path":"src/pages/BlogDetailPage.tsx",children:l.jsxs(W.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},"data-id":"7d67kzeqm","data-path":"src/pages/BlogDetailPage.tsx",children:[l.jsxs(H,{to:"/blog",className:"inline-flex items-center gap-2 text-teal-600 hover:text-teal-800 text-sm font-medium mb-6 transition-colors","data-id":"teyqlq1sz","data-path":"src/pages/BlogDetailPage.tsx",children:[l.jsx(em,{className:"w-4 h-4","data-id":"scmpbii3t","data-path":"src/pages/BlogDetailPage.tsx"})," Back to all articles"]}),l.jsx("span",{className:"inline-block bg-teal-100 text-teal-700 text-xs px-3 py-1.5 rounded-full font-semibold uppercase tracking-wide mb-4","data-id":"qdjx470oi","data-path":"src/pages/BlogDetailPage.tsx",children:t.category}),l.jsx("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-extrabold text-gray-900 mb-6 leading-tight","data-id":"90c4bxbuv","data-path":"src/pages/BlogDetailPage.tsx",children:t.title}),l.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-sm text-gray-500","data-id":"aj52qmqbf","data-path":"src/pages/BlogDetailPage.tsx",children:[l.jsxs("span",{className:"flex items-center gap-1.5","data-id":"u8dr39o6g","data-path":"src/pages/BlogDetailPage.tsx",children:[l.jsx(I2,{className:"w-4 h-4 text-teal-500","data-id":"o4ia5z5b9","data-path":"src/pages/BlogDetailPage.tsx"}),l.jsx("span",{className:"font-medium text-gray-700","data-id":"33ngvztya","data-path":"src/pages/BlogDetailPage.tsx",children:t.author})]}),l.jsxs("span",{className:"flex items-center gap-1.5","data-id":"izt8ld3x6","data-path":"src/pages/BlogDetailPage.tsx",children:[l.jsx(XS,{className:"w-4 h-4 text-teal-500","data-id":"yhtd9xf3j","data-path":"src/pages/BlogDetailPage.tsx"}),t.published_date]}),l.jsxs("span",{className:"flex items-center gap-1.5","data-id":"h4o9f2t9a","data-path":"src/pages/BlogDetailPage.tsx",children:[l.jsx(Xo,{className:"w-4 h-4 text-teal-500","data-id":"ysi3ik7im","data-path":"src/pages/BlogDetailPage.tsx"}),t.read_time," min read"]})]})]})})})}),t.image_url&&l.jsx("div",{className:"container mx-auto px-4 py-8","data-id":"li7tpnyap","data-path":"src/pages/BlogDetailPage.tsx",children:l.jsx("div",{className:"max-w-3xl mx-auto","data-id":"3o3ez8ebk","data-path":"src/pages/BlogDetailPage.tsx",children:l.jsx("div",{className:"rounded-2xl overflow-hidden shadow-lg","data-id":"zx8vh1b14","data-path":"src/pages/BlogDetailPage.tsx",children:l.jsx("img",{src:t.image_url,alt:t.title,className:"w-full h-72 md:h-96 object-cover","data-id":"126le2cld","data-path":"src/pages/BlogDetailPage.tsx"})})})}),l.jsx("article",{className:"container mx-auto px-4 pb-16","data-id":"5w4wukm88","data-path":"src/pages/BlogDetailPage.tsx",children:l.jsxs("div",{className:"max-w-3xl mx-auto","data-id":"k20u4leca","data-path":"src/pages/BlogDetailPage.tsx",children:[t.excerpt&&l.jsx("p",{className:"text-xl text-gray-600 leading-relaxed mb-8 font-medium border-l-4 border-amber-400 pl-5 italic","data-id":"v6f0rjlcj","data-path":"src/pages/BlogDetailPage.tsx",children:t.excerpt}),l.jsx("div",{className:"prose prose-lg max-w-none","data-id":"wuy037q5n","data-path":"src/pages/BlogDetailPage.tsx",children:u.map((f,h)=>l.jsx("p",{className:"text-gray-700 leading-relaxed mb-6 text-base","data-id":"a46k853gd","data-path":"src/pages/BlogDetailPage.tsx",children:f},h))}),l.jsxs("div",{className:"mt-10 pt-8 border-t border-gray-100 flex flex-wrap gap-2","data-id":"4kxx0fscx","data-path":"src/pages/BlogDetailPage.tsx",children:[l.jsx("span",{className:"text-xs text-gray-500 font-medium mr-2","data-id":"qc5b3thuw","data-path":"src/pages/BlogDetailPage.tsx",children:"Topics:"}),[t.category,"Homeless Action Sonoma","Sonoma Valley"].map(f=>l.jsx("span",{className:"px-3 py-1 bg-teal-50 text-teal-700 rounded-full text-xs font-medium","data-id":"i1cyt5hs8","data-path":"src/pages/BlogDetailPage.tsx",children:f},f))]}),l.jsxs("div",{className:"mt-10 bg-gray-50 rounded-2xl p-6 flex items-start gap-4","data-id":"rx75xc3nk","data-path":"src/pages/BlogDetailPage.tsx",children:[l.jsx("div",{className:"w-12 h-12 rounded-xl bg-teal-700 text-white flex items-center justify-center font-bold text-lg flex-shrink-0","data-id":"is95ni2q5","data-path":"src/pages/BlogDetailPage.tsx",children:(d=t.author)==null?void 0:d.charAt(0)}),l.jsxs("div",{"data-id":"stnuw5y8z","data-path":"src/pages/BlogDetailPage.tsx",children:[l.jsx("div",{className:"font-bold text-gray-900 mb-1","data-id":"ztoh3sb31","data-path":"src/pages/BlogDetailPage.tsx",children:t.author}),l.jsx("p",{className:"text-gray-500 text-sm","data-id":"caj4xufhc","data-path":"src/pages/BlogDetailPage.tsx",children:"A member of the Homeless Action Sonoma team, committed to advancing housing stability, recovery support, and community coordination across the Sonoma Valley."})]})]}),l.jsxs("div",{className:"mt-10 bg-teal-700 rounded-2xl p-6 text-center text-white","data-id":"qd1xo8y5o","data-path":"src/pages/BlogDetailPage.tsx",children:[l.jsx(je,{className:"w-8 h-8 text-amber-400 mx-auto mb-3","data-id":"qt2mc7a3l","data-path":"src/pages/BlogDetailPage.tsx"}),l.jsx("h3",{className:"text-xl font-bold mb-2","data-id":"gcsdjc8li","data-path":"src/pages/BlogDetailPage.tsx",children:"Ready to Take Action?"}),l.jsx("p",{className:"text-teal-200 text-sm mb-5","data-id":"4cgg9h82k","data-path":"src/pages/BlogDetailPage.tsx",children:"If this article moved you, consider supporting our mission through a donation or by volunteering your time and expertise."}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center","data-id":"h6v00ppfh","data-path":"src/pages/BlogDetailPage.tsx",children:[l.jsx(H,{to:"/donate",className:"px-6 py-2.5 bg-amber-500 hover:bg-amber-600 text-white rounded-full font-semibold text-sm transition-colors","data-id":"iijt3gp1a","data-path":"src/pages/BlogDetailPage.tsx",children:"Donate Now"}),l.jsx(H,{to:"/contact",className:"px-6 py-2.5 bg-white/10 hover:bg-white/20 border border-white/30 text-white rounded-full font-semibold text-sm transition-colors","data-id":"ez955ofub","data-path":"src/pages/BlogDetailPage.tsx",children:"Get Involved"})]})]})]})}),a.length>0&&l.jsx("section",{className:"py-16 bg-gray-50 border-t border-gray-100","data-id":"ef4aiuibc","data-path":"src/pages/BlogDetailPage.tsx",children:l.jsxs("div",{className:"container mx-auto px-4","data-id":"3ijnsj054","data-path":"src/pages/BlogDetailPage.tsx",children:[l.jsx("h2",{className:"text-2xl font-extrabold text-gray-900 mb-8","data-id":"apsh5sl9k","data-path":"src/pages/BlogDetailPage.tsx",children:"Related Articles"}),l.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6","data-id":"a7sl8jnb3","data-path":"src/pages/BlogDetailPage.tsx",children:a.map(f=>l.jsxs("article",{className:"bg-white rounded-2xl overflow-hidden shadow-sm hover:shadow-md transition-shadow border border-gray-100","data-id":"mewie7w3i","data-path":"src/pages/BlogDetailPage.tsx",children:[f.image_url&&l.jsx("img",{src:f.image_url,alt:f.title,className:"w-full h-44 object-cover","data-id":"8pnlgmsxe","data-path":"src/pages/BlogDetailPage.tsx"}),l.jsxs("div",{className:"p-5","data-id":"uldwtnwli","data-path":"src/pages/BlogDetailPage.tsx",children:[l.jsx("span",{className:"text-xs text-teal-600 font-semibold","data-id":"qfpvfft11","data-path":"src/pages/BlogDetailPage.tsx",children:f.category}),l.jsx("h3",{className:"font-bold text-gray-900 my-2 line-clamp-2 text-sm","data-id":"yblwn3g0x","data-path":"src/pages/BlogDetailPage.tsx",children:f.title}),l.jsxs(H,{to:`/blog/${f.slug}`,className:"inline-flex items-center gap-1 text-teal-700 text-sm font-semibold hover:text-teal-900 transition-colors","data-id":"lxu6p0lw9","data-path":"src/pages/BlogDetailPage.tsx",children:["Read ",l.jsx(ze,{className:"w-3.5 h-3.5","data-id":"ihwkr80mm","data-path":"src/pages/BlogDetailPage.tsx"})]})]})]},f.ID))})]})}),l.jsx(ra,{"data-id":"v9h0abab8","data-path":"src/pages/BlogDetailPage.tsx"})]})},FR=["I need housing support","I need behavioral health resources","I want to volunteer","I want to become a community partner","I'm a referring professional","Media or press inquiry","General question"],zR=()=>{const{toast:e}=Dl(),[t,n]=v.useState(!1),[a,r]=v.useState(!1),[s,i]=v.useState({full_name:"",email:"",phone:"",subject:"",inquiry_type:"",message:""}),o=(u,d)=>i(f=>({...f,[u]:d})),c=async u=>{if(u.preventDefault(),!s.full_name||!s.email||!s.message){e({title:"Missing fields",description:"Please fill in all required fields.",variant:"destructive"});return}n(!0);try{const{error:d}=await window.ezsite.apis.tableCreate(84701,{...s,submitted_at:new Date().toISOString()});if(d)throw d;r(!0),e({title:"Message received!",description:"We'll be in touch within 24-48 hours."})}catch{e({title:"Error",description:"Unable to send your message. Please try again or call us.",variant:"destructive"})}finally{n(!1)}};return l.jsxs("div",{className:"min-h-screen bg-white","data-id":"nevysu3ir","data-path":"src/pages/ContactPage.tsx",children:[l.jsx(dn,{"data-id":"47rp7s7z4","data-path":"src/pages/ContactPage.tsx"}),l.jsxs("section",{className:"pt-32 pb-16 bg-gradient-to-br from-teal-900 to-teal-700 relative overflow-hidden","data-id":"riwoj5hyf","data-path":"src/pages/ContactPage.tsx",children:[l.jsx("div",{className:"absolute inset-0 opacity-10","data-id":"wlyn24eya","data-path":"src/pages/ContactPage.tsx",children:l.jsx("div",{className:"absolute top-1/2 left-0 w-80 h-80 bg-amber-400 rounded-full -translate-x-1/2 blur-3xl","data-id":"oqrrkoxd9","data-path":"src/pages/ContactPage.tsx"})}),l.jsx("div",{className:"container mx-auto px-4 relative text-center","data-id":"8i3zqpkm5","data-path":"src/pages/ContactPage.tsx",children:l.jsxs(W.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},"data-id":"ldfdhw0j5","data-path":"src/pages/ContactPage.tsx",children:[l.jsxs("span",{className:"inline-flex items-center gap-2 bg-amber-500/20 border border-amber-400/30 text-amber-300 px-4 py-2 rounded-full text-sm font-medium mb-6","data-id":"xpx3vgwp2","data-path":"src/pages/ContactPage.tsx",children:[l.jsx(je,{className:"w-4 h-4","data-id":"88caf7vea","data-path":"src/pages/ContactPage.tsx"})," We're Here for You"]}),l.jsxs("h1",{className:"text-4xl md:text-5xl font-extrabold text-white mb-4","data-id":"yu8fdkhnp","data-path":"src/pages/ContactPage.tsx",children:["Let's Start a ",l.jsx("span",{className:"text-amber-400","data-id":"lpy82fpa2","data-path":"src/pages/ContactPage.tsx",children:"Conversation"})]}),l.jsx("p",{className:"text-teal-100 text-lg max-w-xl mx-auto","data-id":"v709o3nkb","data-path":"src/pages/ContactPage.tsx",children:"Whether you're seeking support, looking to partner, or simply want to learn more — our team is ready to help you find the right next step."})]})})]}),l.jsx("section",{className:"py-10 bg-white border-b border-gray-100","data-id":"n9n8sctkf","data-path":"src/pages/ContactPage.tsx",children:l.jsx("div",{className:"container mx-auto px-4","data-id":"hxqaorv66","data-path":"src/pages/ContactPage.tsx",children:l.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 max-w-3xl mx-auto","data-id":"um6ywrpom","data-path":"src/pages/ContactPage.tsx",children:[{icon:l.jsx(Ys,{className:"w-5 h-5","data-id":"krpqzy0te","data-path":"src/pages/ContactPage.tsx"}),label:"Call Us",value:"+1-707-304-0502",sub:"Mon–Fri, 9am–5pm PT",href:"tel:+17073040502",color:"bg-teal-50 text-teal-700"},{icon:l.jsx(gi,{className:"w-5 h-5","data-id":"66fvmhy0k","data-path":"src/pages/ContactPage.tsx"}),label:"Email Us",value:"staff@momentumconverthub.com",sub:"We respond within 24–48 hours",href:"mailto:staff@momentumconverthub.com",color:"bg-amber-50 text-amber-700"},{icon:l.jsx(Zo,{className:"w-5 h-5","data-id":"xvy2abq6b","data-path":"src/pages/ContactPage.tsx"}),label:"Visit Us",value:"20018 St Germain Lane",sub:"Sonoma, CA 95476",href:"https://maps.google.com/?q=20018+St+Germain+Lane+Sonoma+CA+95476",color:"bg-teal-50 text-teal-700"}].map(u=>l.jsxs("a",{href:u.href,target:u.label==="Visit Us"?"_blank":void 0,rel:"noopener noreferrer",className:"flex items-start gap-4 p-4 rounded-xl border border-gray-100 hover:border-teal-200 hover:shadow-sm transition-all group","data-id":"hwba50tvu","data-path":"src/pages/ContactPage.tsx",children:[l.jsx("div",{className:`w-10 h-10 rounded-lg ${u.color} flex items-center justify-center flex-shrink-0`,"data-id":"ttn7uk7an","data-path":"src/pages/ContactPage.tsx",children:u.icon}),l.jsxs("div",{"data-id":"6ecumhjzn","data-path":"src/pages/ContactPage.tsx",children:[l.jsx("div",{className:"text-xs text-gray-400 uppercase tracking-wide font-medium","data-id":"2vctv4vcs","data-path":"src/pages/ContactPage.tsx",children:u.label}),l.jsx("div",{className:"font-semibold text-gray-900 text-sm mt-0.5 break-all","data-id":"8cmr1ldui","data-path":"src/pages/ContactPage.tsx",children:u.value}),l.jsx("div",{className:"text-xs text-gray-400 mt-0.5","data-id":"k0fz0om7u","data-path":"src/pages/ContactPage.tsx",children:u.sub})]})]},u.label))})})}),l.jsx("section",{className:"py-16","data-id":"pp6p69b4j","data-path":"src/pages/ContactPage.tsx",children:l.jsx("div",{className:"container mx-auto px-4","data-id":"qm450avyg","data-path":"src/pages/ContactPage.tsx",children:l.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-5 gap-12 max-w-5xl mx-auto","data-id":"7pwtvo58e","data-path":"src/pages/ContactPage.tsx",children:[l.jsxs("div",{className:"lg:col-span-3","data-id":"laadbsn1d","data-path":"src/pages/ContactPage.tsx",children:[l.jsx("h2",{className:"text-2xl font-extrabold text-gray-900 mb-2","data-id":"xn8zdnuz7","data-path":"src/pages/ContactPage.tsx",children:"Send Us a Message"}),l.jsx("p",{className:"text-gray-500 text-sm mb-8","data-id":"w3fxny8fl","data-path":"src/pages/ContactPage.tsx",children:"All fields marked with * are required. We'll respond within 24–48 hours."}),a?l.jsxs(W.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"bg-teal-50 border border-teal-200 rounded-2xl p-10 text-center","data-id":"ce63udro2","data-path":"src/pages/ContactPage.tsx",children:[l.jsx("div",{className:"w-16 h-16 bg-teal-100 rounded-full flex items-center justify-center mx-auto mb-5","data-id":"vn6mnf45b","data-path":"src/pages/ContactPage.tsx",children:l.jsx(Or,{className:"w-8 h-8 text-teal-600","data-id":"pphimepdp","data-path":"src/pages/ContactPage.tsx"})}),l.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2","data-id":"4cofa10fy","data-path":"src/pages/ContactPage.tsx",children:"Message Sent!"}),l.jsx("p",{className:"text-gray-600 text-sm mb-6","data-id":"pnxtdel8r","data-path":"src/pages/ContactPage.tsx",children:"Thank you for reaching out to Homeless Action Sonoma. A member of our team will be in touch with you within 24–48 business hours."}),l.jsx("button",{onClick:()=>{r(!1),i({full_name:"",email:"",phone:"",subject:"",inquiry_type:"",message:""})},className:"px-6 py-2.5 bg-teal-700 hover:bg-teal-800 text-white rounded-full font-semibold text-sm transition-colors","data-id":"z3qahsrk3","data-path":"src/pages/ContactPage.tsx",children:"Send Another Message"})]}):l.jsxs("form",{onSubmit:c,className:"space-y-5","data-id":"j8kybmng7","data-path":"src/pages/ContactPage.tsx",children:[l.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4","data-id":"evdgsgtnx","data-path":"src/pages/ContactPage.tsx",children:[l.jsxs("div",{"data-id":"hg6zrsolc","data-path":"src/pages/ContactPage.tsx",children:[l.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1.5","data-id":"orr1mllqo","data-path":"src/pages/ContactPage.tsx",children:"Full Name *"}),l.jsx("input",{type:"text",required:!0,value:s.full_name,onChange:u=>o("full_name",u.target.value),placeholder:"Your full name",className:"w-full px-4 py-3 border border-gray-200 rounded-xl text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-teal-500 focus:border-transparent text-sm","data-id":"wsnctej0c","data-path":"src/pages/ContactPage.tsx"})]}),l.jsxs("div",{"data-id":"hq2eie1q1","data-path":"src/pages/ContactPage.tsx",children:[l.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1.5","data-id":"1yzmvydmk","data-path":"src/pages/ContactPage.tsx",children:"Email Address *"}),l.jsx("input",{type:"email",required:!0,value:s.email,onChange:u=>o("email",u.target.value),placeholder:"your@email.com",className:"w-full px-4 py-3 border border-gray-200 rounded-xl text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-teal-500 focus:border-transparent text-sm","data-id":"nf9le6z2o","data-path":"src/pages/ContactPage.tsx"})]})]}),l.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4","data-id":"8a4a2zwwh","data-path":"src/pages/ContactPage.tsx",children:[l.jsxs("div",{"data-id":"b1szujcs2","data-path":"src/pages/ContactPage.tsx",children:[l.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1.5","data-id":"ljr54kjxl","data-path":"src/pages/ContactPage.tsx",children:"Phone Number"}),l.jsx("input",{type:"tel",value:s.phone,onChange:u=>o("phone",u.target.value),placeholder:"+1 (707) 000-0000",className:"w-full px-4 py-3 border border-gray-200 rounded-xl text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-teal-500 focus:border-transparent text-sm","data-id":"hno7wwg8q","data-path":"src/pages/ContactPage.tsx"})]}),l.jsxs("div",{"data-id":"ln4d5tdu2","data-path":"src/pages/ContactPage.tsx",children:[l.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1.5","data-id":"c8ab49nt4","data-path":"src/pages/ContactPage.tsx",children:"How Can We Help?"}),l.jsxs("div",{className:"relative","data-id":"mz6csiny6","data-path":"src/pages/ContactPage.tsx",children:[l.jsxs("select",{value:s.inquiry_type,onChange:u=>o("inquiry_type",u.target.value),className:"w-full px-4 py-3 border border-gray-200 rounded-xl text-gray-900 focus:outline-none focus:ring-2 focus:ring-teal-500 focus:border-transparent text-sm appearance-none bg-white","data-id":"hm6yiwrcm","data-path":"src/pages/ContactPage.tsx",children:[l.jsx("option",{value:"","data-id":"3brnfbwba","data-path":"src/pages/ContactPage.tsx",children:"Select inquiry type"}),FR.map(u=>l.jsx("option",{value:u,"data-id":"kz6gv85se","data-path":"src/pages/ContactPage.tsx",children:u},u))]}),l.jsx(Wu,{className:"absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400 pointer-events-none","data-id":"6wcnk9b0e","data-path":"src/pages/ContactPage.tsx"})]})]})]}),l.jsxs("div",{"data-id":"sfm6j93us","data-path":"src/pages/ContactPage.tsx",children:[l.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1.5","data-id":"zwn23c8qs","data-path":"src/pages/ContactPage.tsx",children:"Subject"}),l.jsx("input",{type:"text",value:s.subject,onChange:u=>o("subject",u.target.value),placeholder:"Brief subject or topic",className:"w-full px-4 py-3 border border-gray-200 rounded-xl text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-teal-500 focus:border-transparent text-sm","data-id":"zy8e6bsl6","data-path":"src/pages/ContactPage.tsx"})]}),l.jsxs("div",{"data-id":"4qulk8pl6","data-path":"src/pages/ContactPage.tsx",children:[l.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1.5","data-id":"ij3qebhy6","data-path":"src/pages/ContactPage.tsx",children:"Message *"}),l.jsx("textarea",{required:!0,value:s.message,onChange:u=>o("message",u.target.value),placeholder:"Tell us how we can help, or share what brings you here today...",rows:5,className:"w-full px-4 py-3 border border-gray-200 rounded-xl text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-teal-500 focus:border-transparent text-sm resize-none","data-id":"imwnpq26x","data-path":"src/pages/ContactPage.tsx"})]}),l.jsx("button",{type:"submit",disabled:t,className:"w-full flex items-center justify-center gap-2 py-4 bg-teal-700 hover:bg-teal-800 disabled:opacity-60 text-white rounded-xl font-semibold transition-colors","data-id":"bf6nwpfl3","data-path":"src/pages/ContactPage.tsx",children:t?"Sending...":l.jsxs(l.Fragment,{children:[l.jsx(A2,{className:"w-4 h-4","data-id":"yfde91yxi","data-path":"src/pages/ContactPage.tsx"})," Send Message"]})}),l.jsx("p",{className:"text-xs text-gray-400 text-center","data-id":"nffg2epjg","data-path":"src/pages/ContactPage.tsx",children:"Your information is kept confidential and used only to respond to your inquiry."})]})]}),l.jsxs("div",{className:"lg:col-span-2 space-y-6","data-id":"piyr9eka7","data-path":"src/pages/ContactPage.tsx",children:[l.jsxs("div",{className:"bg-gray-50 rounded-2xl p-6","data-id":"1mq1ou4h0","data-path":"src/pages/ContactPage.tsx",children:[l.jsxs("h3",{className:"font-bold text-gray-900 mb-5 flex items-center gap-2","data-id":"qc3vha3cq","data-path":"src/pages/ContactPage.tsx",children:[l.jsx(Xo,{className:"w-4 h-4 text-teal-600","data-id":"57etgmpe6","data-path":"src/pages/ContactPage.tsx"})," Office Hours"]}),l.jsx("div",{className:"space-y-2 text-sm","data-id":"baapnobag","data-path":"src/pages/ContactPage.tsx",children:[{day:"Monday – Friday",hours:"9:00 AM – 5:00 PM"},{day:"Saturday",hours:"10:00 AM – 2:00 PM"},{day:"Sunday",hours:"Closed"}].map(u=>l.jsxs("div",{className:"flex justify-between items-center py-2 border-b border-gray-100 last:border-0","data-id":"nz0wa60r0","data-path":"src/pages/ContactPage.tsx",children:[l.jsx("span",{className:"text-gray-600","data-id":"a9pj5k8se","data-path":"src/pages/ContactPage.tsx",children:u.day}),l.jsx("span",{className:`font-medium ${u.hours==="Closed"?"text-gray-400":"text-teal-700"}`,"data-id":"nangxpzpg","data-path":"src/pages/ContactPage.tsx",children:u.hours})]},u.day))})]}),l.jsxs("div",{className:"bg-teal-700 text-white rounded-2xl p-6","data-id":"mmrpmqsip","data-path":"src/pages/ContactPage.tsx",children:[l.jsx("h3",{className:"font-bold mb-3","data-id":"5bh43z4ya","data-path":"src/pages/ContactPage.tsx",children:"Need Immediate Support?"}),l.jsx("p",{className:"text-teal-200 text-sm mb-4","data-id":"ao5yb1srw","data-path":"src/pages/ContactPage.tsx",children:"If you or someone you know is in immediate need of housing or crisis support, call us directly or visit our office during business hours."}),l.jsxs("a",{href:"tel:+17073040502",className:"flex items-center gap-2 font-bold text-amber-300 hover:text-amber-200 transition-colors","data-id":"qa14t2fvc","data-path":"src/pages/ContactPage.tsx",children:[l.jsx(Ys,{className:"w-4 h-4","data-id":"a9mon5285","data-path":"src/pages/ContactPage.tsx"})," +1-707-304-0502"]})]}),l.jsxs("div",{className:"bg-amber-50 border border-amber-100 rounded-2xl p-6","data-id":"79nvmpsq6","data-path":"src/pages/ContactPage.tsx",children:[l.jsx("h3",{className:"font-bold text-gray-900 mb-3","data-id":"gxwfpmjrf","data-path":"src/pages/ContactPage.tsx",children:"Our Location"}),l.jsxs("div",{className:"flex items-start gap-3 mb-4","data-id":"butlithx0","data-path":"src/pages/ContactPage.tsx",children:[l.jsx(Zo,{className:"w-5 h-5 text-amber-500 flex-shrink-0 mt-0.5","data-id":"cuponkeeg","data-path":"src/pages/ContactPage.tsx"}),l.jsxs("div",{className:"text-gray-700 text-sm","data-id":"peiy4vsfb","data-path":"src/pages/ContactPage.tsx",children:[l.jsx("div",{className:"font-medium","data-id":"ru4buzcd7","data-path":"src/pages/ContactPage.tsx",children:"Homeless Action Sonoma"}),l.jsx("div",{"data-id":"g3ba01its","data-path":"src/pages/ContactPage.tsx",children:"20018 St Germain Lane"}),l.jsx("div",{"data-id":"5itsqtxih","data-path":"src/pages/ContactPage.tsx",children:"Sonoma, CA 95476"})]})]}),l.jsx("a",{href:"https://maps.google.com/?q=20018+St+Germain+Lane+Sonoma+CA+95476",target:"_blank",rel:"noopener noreferrer",className:"text-amber-700 font-semibold text-sm hover:text-amber-900 transition-colors","data-id":"lul1c0v27","data-path":"src/pages/ContactPage.tsx",children:"Get Directions →"})]}),l.jsxs("div",{className:"bg-gray-50 rounded-2xl p-6","data-id":"w03oj9nzf","data-path":"src/pages/ContactPage.tsx",children:[l.jsx("h3",{className:"font-bold text-gray-900 mb-4","data-id":"4srm7jq4y","data-path":"src/pages/ContactPage.tsx",children:"Looking for a Specific Program?"}),l.jsx("div",{className:"space-y-2","data-id":"nnj2l5ni4","data-path":"src/pages/ContactPage.tsx",children:[{to:"/programs#housing",icon:l.jsx(za,{className:"w-4 h-4","data-id":"8otazqohn","data-path":"src/pages/ContactPage.tsx"}),label:"Housing Navigation"},{to:"/programs#behavioral-health",icon:l.jsx(Va,{className:"w-4 h-4","data-id":"6f4bku2eo","data-path":"src/pages/ContactPage.tsx"}),label:"Behavioral Health Support"},{to:"/programs#outreach",icon:l.jsx(Jn,{className:"w-4 h-4","data-id":"972izxglb","data-path":"src/pages/ContactPage.tsx"}),label:"Community Outreach"},{to:"/programs#education",icon:l.jsx($r,{className:"w-4 h-4","data-id":"z1cd9bf1j","data-path":"src/pages/ContactPage.tsx"}),label:"Education & Awareness"}].map(u=>l.jsxs(H,{to:u.to,className:"flex items-center gap-3 py-2 text-sm text-gray-700 hover:text-teal-700 transition-colors","data-id":"d7a4b7fkn","data-path":"src/pages/ContactPage.tsx",children:[l.jsx("span",{className:"text-teal-500","data-id":"f5ne5j1m0","data-path":"src/pages/ContactPage.tsx",children:u.icon}),u.label]},u.to))})]})]})]})})}),l.jsx(ra,{"data-id":"j3mnnzony","data-path":"src/pages/ContactPage.tsx"})]})},VR=[25,50,100,250,500,1e3],BR={25:"Provides one week of outreach materials for our community team",50:"Funds a peer support session for one individual in recovery",100:"Covers one month of case coordination for a housing-seeking individual",250:"Supports a school education presentation reaching 30+ students",500:"Funds a full month of personalized housing navigation services",1e3:"Sustains our community outreach program for a full week"},HR=[{label:"Programs & Direct Services",percent:82,color:"bg-teal-600"},{label:"Community Outreach & Education",percent:10,color:"bg-amber-500"},{label:"Administration & Operations",percent:8,color:"bg-gray-400"}],$R=()=>{const{toast:e}=Dl(),[t,n]=v.useState(!1),[a,r]=v.useState(!1),[s,i]=v.useState(100),[o,c]=v.useState(""),[u,d]=v.useState("one-time"),[f,h]=v.useState({donor_name:"",email:"",message:"",anonymous:!1}),m=(p,g)=>h(y=>({...y,[p]:g})),x=o?parseFloat(o)||0:s,w=BR[s]||`Your generous gift of $${x} directly supports housing stability programs across Sonoma.`,b=async p=>{if(p.preventDefault(),!f.donor_name||!f.email||x<=0){e({title:"Missing information",description:"Please provide your name, email, and a donation amount.",variant:"destructive"});return}n(!0);try{const{error:g}=await window.ezsite.apis.tableCreate(84703,{donor_name:f.anonymous?"Anonymous":f.donor_name,email:f.email,amount:x,frequency:u,message:f.message,donated_at:new Date().toISOString(),anonymous:f.anonymous});if(g)throw g;r(!0),e({title:"Thank you for your generosity!",description:"Your donation supports housing stability across Sonoma."})}catch{e({title:"Error",description:"Unable to process your donation. Please try again or contact us.",variant:"destructive"})}finally{n(!1)}};return l.jsxs("div",{className:"min-h-screen bg-white","data-id":"pi7atzdf2","data-path":"src/pages/DonatePage.tsx",children:[l.jsx(dn,{"data-id":"f319n1m98","data-path":"src/pages/DonatePage.tsx"}),l.jsxs("section",{className:"pt-32 pb-16 bg-gradient-to-br from-teal-900 to-amber-800 relative overflow-hidden","data-id":"t6zroid3b","data-path":"src/pages/DonatePage.tsx",children:[l.jsx("div",{className:"absolute inset-0 opacity-20","data-id":"hyr1jnbdv","data-path":"src/pages/DonatePage.tsx",children:l.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] bg-amber-400 rounded-full blur-3xl","data-id":"5dfm9jsmg","data-path":"src/pages/DonatePage.tsx"})}),l.jsx("div",{className:"container mx-auto px-4 relative text-center","data-id":"44roww9lh","data-path":"src/pages/DonatePage.tsx",children:l.jsxs(W.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},"data-id":"09ot0b7qd","data-path":"src/pages/DonatePage.tsx",children:[l.jsx("div",{className:"w-16 h-16 bg-amber-500/20 border border-amber-400/30 rounded-2xl flex items-center justify-center mx-auto mb-6","data-id":"hjn9dbwzy","data-path":"src/pages/DonatePage.tsx",children:l.jsx(je,{className:"w-8 h-8 text-amber-300","data-id":"qbtutnnrs","data-path":"src/pages/DonatePage.tsx"})}),l.jsxs("h1",{className:"text-4xl md:text-5xl font-extrabold text-white mb-4","data-id":"7s7m6itz8","data-path":"src/pages/DonatePage.tsx",children:["Your Gift Builds",l.jsx("br",{"data-id":"k3o9tf38c","data-path":"src/pages/DonatePage.tsx"}),l.jsx("span",{className:"text-amber-400","data-id":"x3c9oj86j","data-path":"src/pages/DonatePage.tsx",children:"Someone's Pathway Forward"})]}),l.jsx("p",{className:"text-teal-100 text-lg max-w-xl mx-auto","data-id":"afmaag3mh","data-path":"src/pages/DonatePage.tsx",children:"Every contribution funds direct services — housing navigation, recovery support, and outreach programs that create lasting stability across Sonoma."})]})})]}),l.jsx("section",{className:"py-16","data-id":"1gij3ghus","data-path":"src/pages/DonatePage.tsx",children:l.jsx("div",{className:"container mx-auto px-4","data-id":"05xf474b0","data-path":"src/pages/DonatePage.tsx",children:l.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-5 gap-12 max-w-5xl mx-auto","data-id":"8yygbeetc","data-path":"src/pages/DonatePage.tsx",children:[l.jsx("div",{className:"lg:col-span-3","data-id":"j0ez6bgyd","data-path":"src/pages/DonatePage.tsx",children:a?l.jsxs(W.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"text-center py-16 px-8","data-id":"3h244krni","data-path":"src/pages/DonatePage.tsx",children:[l.jsx("div",{className:"w-20 h-20 bg-amber-100 rounded-full flex items-center justify-center mx-auto mb-6","data-id":"t1j2cda31","data-path":"src/pages/DonatePage.tsx",children:l.jsx(je,{className:"w-10 h-10 text-amber-500 fill-current","data-id":"oan1zdorl","data-path":"src/pages/DonatePage.tsx"})}),l.jsx("h2",{className:"text-3xl font-extrabold text-gray-900 mb-3","data-id":"elgup213s","data-path":"src/pages/DonatePage.tsx",children:"Thank You!"}),l.jsxs("p",{className:"text-gray-600 mb-4","data-id":"zvp15cg4k","data-path":"src/pages/DonatePage.tsx",children:["Your ",u==="monthly"?"monthly ":"","donation of"," ",l.jsxs("span",{className:"font-bold text-teal-700","data-id":"sc5u9hsrd","data-path":"src/pages/DonatePage.tsx",children:["$",x.toFixed(2)]})," ","has been recorded and will directly support housing stability programs in Sonoma."]}),l.jsxs("p",{className:"text-gray-500 text-sm mb-8","data-id":"12htphgt1","data-path":"src/pages/DonatePage.tsx",children:["A confirmation has been sent to ",f.email,"."]}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center","data-id":"vbzd7tcey","data-path":"src/pages/DonatePage.tsx",children:[l.jsx(H,{to:"/",className:"px-6 py-3 bg-teal-700 hover:bg-teal-800 text-white rounded-full font-semibold transition-colors","data-id":"8rbdhiyo8","data-path":"src/pages/DonatePage.tsx",children:"Return Home"}),l.jsx(H,{to:"/about",className:"px-6 py-3 border border-gray-200 text-gray-700 hover:bg-gray-50 rounded-full font-semibold transition-colors","data-id":"vx68s4o4m","data-path":"src/pages/DonatePage.tsx",children:"Learn About Our Work"})]})]}):l.jsxs("form",{onSubmit:b,"data-id":"reufiuhhv","data-path":"src/pages/DonatePage.tsx",children:[l.jsxs("div",{className:"mb-8","data-id":"3u8dwlf4i","data-path":"src/pages/DonatePage.tsx",children:[l.jsx("h2",{className:"text-lg font-bold text-gray-900 mb-4","data-id":"kyguoqtmw","data-path":"src/pages/DonatePage.tsx",children:"Donation Frequency"}),l.jsx("div",{className:"flex rounded-xl border border-gray-200 overflow-hidden","data-id":"e61kq8tla","data-path":"src/pages/DonatePage.tsx",children:[{value:"one-time",label:"Give Once"},{value:"monthly",label:"Give Monthly"}].map(p=>l.jsx("button",{type:"button",onClick:()=>d(p.value),className:`flex-1 py-3 text-sm font-semibold transition-colors ${u===p.value?"bg-teal-700 text-white":"bg-white text-gray-600 hover:bg-gray-50"}`,"data-id":"dqtmeq84c","data-path":"src/pages/DonatePage.tsx",children:p.label},p.value))}),u==="monthly"&&l.jsxs("p",{className:"mt-2 text-xs text-teal-600 flex items-center gap-1.5","data-id":"qnu3gsy4w","data-path":"src/pages/DonatePage.tsx",children:[l.jsx(Ku,{className:"w-3 h-3","data-id":"l7h2etd7w","data-path":"src/pages/DonatePage.tsx"}),"Monthly giving provides our programs with sustainable, predictable support."]})]}),l.jsxs("div",{className:"mb-8","data-id":"54g27ztct","data-path":"src/pages/DonatePage.tsx",children:[l.jsx("h2",{className:"text-lg font-bold text-gray-900 mb-4","data-id":"c4idu6vv9","data-path":"src/pages/DonatePage.tsx",children:"Select Your Gift Amount"}),l.jsx("div",{className:"grid grid-cols-3 gap-3 mb-4","data-id":"c0j09onk9","data-path":"src/pages/DonatePage.tsx",children:VR.map(p=>l.jsxs("button",{type:"button",onClick:()=>{i(p),c("")},className:`py-3 rounded-xl text-sm font-bold transition-all ${s===p&&!o?"bg-teal-700 text-white shadow-md shadow-teal-200":"bg-gray-50 text-gray-700 border border-gray-200 hover:border-teal-300 hover:bg-teal-50"}`,"data-id":"9goiu02o5","data-path":"src/pages/DonatePage.tsx",children:["$",p]},p))}),l.jsxs("div",{className:"relative","data-id":"41pcl6ohh","data-path":"src/pages/DonatePage.tsx",children:[l.jsx("span",{className:"absolute left-4 top-1/2 -translate-y-1/2 text-gray-500 font-medium","data-id":"ldybf2cg1","data-path":"src/pages/DonatePage.tsx",children:"$"}),l.jsx("input",{type:"number",min:"1",placeholder:"Or enter a custom amount",value:o,onChange:p=>{c(p.target.value),i(0)},className:"w-full pl-8 pr-4 py-3 border border-gray-200 rounded-xl text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-teal-500 focus:border-transparent text-sm","data-id":"v004d2igz","data-path":"src/pages/DonatePage.tsx"})]}),(s>0||o)&&l.jsxs(W.div,{initial:{opacity:0,y:5},animate:{opacity:1,y:0},className:"mt-4 bg-amber-50 border border-amber-100 rounded-xl p-4 flex items-start gap-3","data-id":"ga7vqibem","data-path":"src/pages/DonatePage.tsx",children:[l.jsx(je,{className:"w-4 h-4 text-amber-500 flex-shrink-0 mt-0.5","data-id":"0lfxh6c3j","data-path":"src/pages/DonatePage.tsx"}),l.jsx("p",{className:"text-amber-800 text-sm","data-id":"40b0mbrbe","data-path":"src/pages/DonatePage.tsx",children:w})]})]}),l.jsxs("div",{className:"mb-8 space-y-4","data-id":"vfrk37um8","data-path":"src/pages/DonatePage.tsx",children:[l.jsx("h2",{className:"text-lg font-bold text-gray-900","data-id":"i8r8uohaa","data-path":"src/pages/DonatePage.tsx",children:"Your Information"}),l.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4","data-id":"dlsedxrw2","data-path":"src/pages/DonatePage.tsx",children:[l.jsxs("div",{"data-id":"4b2o2qh69","data-path":"src/pages/DonatePage.tsx",children:[l.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1.5","data-id":"tw32vlyzv","data-path":"src/pages/DonatePage.tsx",children:"Full Name *"}),l.jsx("input",{type:"text",required:!0,value:f.donor_name,onChange:p=>m("donor_name",p.target.value),placeholder:"Your name",className:"w-full px-4 py-3 border border-gray-200 rounded-xl text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-teal-500 text-sm","data-id":"4ex2v29yz","data-path":"src/pages/DonatePage.tsx"})]}),l.jsxs("div",{"data-id":"3c2xaqlii","data-path":"src/pages/DonatePage.tsx",children:[l.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1.5","data-id":"ch47jsjnt","data-path":"src/pages/DonatePage.tsx",children:"Email Address *"}),l.jsx("input",{type:"email",required:!0,value:f.email,onChange:p=>m("email",p.target.value),placeholder:"your@email.com",className:"w-full px-4 py-3 border border-gray-200 rounded-xl text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-teal-500 text-sm","data-id":"gdoa6utq4","data-path":"src/pages/DonatePage.tsx"})]})]}),l.jsxs("div",{"data-id":"f9qxfklzi","data-path":"src/pages/DonatePage.tsx",children:[l.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1.5","data-id":"x5eqfhpc9","data-path":"src/pages/DonatePage.tsx",children:"Leave a Message (Optional)"}),l.jsx("textarea",{value:f.message,onChange:p=>m("message",p.target.value),placeholder:"Share why you're giving or a message for our community...",rows:3,className:"w-full px-4 py-3 border border-gray-200 rounded-xl text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-teal-500 text-sm resize-none","data-id":"bunrtrgc4","data-path":"src/pages/DonatePage.tsx"})]}),l.jsxs("label",{className:"flex items-center gap-3 cursor-pointer","data-id":"ed7ds7g6g","data-path":"src/pages/DonatePage.tsx",children:[l.jsx("input",{type:"checkbox",checked:f.anonymous,onChange:p=>m("anonymous",p.target.checked),className:"w-4 h-4 rounded text-teal-600 focus:ring-teal-500","data-id":"zarlh0xkf","data-path":"src/pages/DonatePage.tsx"}),l.jsx("span",{className:"text-sm text-gray-600","data-id":"62l1uqh9b","data-path":"src/pages/DonatePage.tsx",children:"Make this donation anonymous"})]})]}),l.jsx("button",{type:"submit",disabled:t||!o&&s===0,className:"w-full flex items-center justify-center gap-2 py-4 bg-amber-500 hover:bg-amber-600 disabled:opacity-60 text-white rounded-xl font-bold text-base transition-colors shadow-lg shadow-amber-200","data-id":"mh32xbxtv","data-path":"src/pages/DonatePage.tsx",children:t?"Processing...":l.jsxs(l.Fragment,{children:[l.jsx(je,{className:"w-5 h-5","data-id":"sdkskel1m","data-path":"src/pages/DonatePage.tsx"}),u==="monthly"?`Give $${x}/month`:`Donate $${x||"—"}`]})}),l.jsx("p",{className:"text-xs text-center text-gray-400 mt-3","data-id":"ov3rzavw6","data-path":"src/pages/DonatePage.tsx",children:"Homeless Action Sonoma Inc. is a registered 501(c)(3) nonprofit (EIN: 85-2764190). Your donation may be tax-deductible."})]})}),l.jsxs("div",{className:"lg:col-span-2 space-y-6","data-id":"d93utxurp","data-path":"src/pages/DonatePage.tsx",children:[l.jsxs("div",{className:"bg-gray-50 rounded-2xl p-6","data-id":"arszzra7c","data-path":"src/pages/DonatePage.tsx",children:[l.jsxs("h3",{className:"font-bold text-gray-900 mb-5 flex items-center gap-2","data-id":"9160rqx08","data-path":"src/pages/DonatePage.tsx",children:[l.jsx(r2,{className:"w-5 h-5 text-teal-600","data-id":"711x55lor","data-path":"src/pages/DonatePage.tsx"})," How Your Gift Is Used"]}),l.jsx("div",{className:"space-y-4","data-id":"zs0qncf0m","data-path":"src/pages/DonatePage.tsx",children:HR.map(p=>l.jsxs("div",{"data-id":"9lxwzdgqw","data-path":"src/pages/DonatePage.tsx",children:[l.jsxs("div",{className:"flex justify-between text-sm mb-1.5","data-id":"vajgdhrjk","data-path":"src/pages/DonatePage.tsx",children:[l.jsx("span",{className:"text-gray-700","data-id":"esbhanxmh","data-path":"src/pages/DonatePage.tsx",children:p.label}),l.jsxs("span",{className:"font-bold text-gray-900","data-id":"zwsbk5tkb","data-path":"src/pages/DonatePage.tsx",children:[p.percent,"%"]})]}),l.jsx("div",{className:"h-2 bg-gray-200 rounded-full overflow-hidden","data-id":"jnuowt427","data-path":"src/pages/DonatePage.tsx",children:l.jsx("div",{className:`h-full ${p.color} rounded-full`,style:{width:`${p.percent}%`},"data-id":"2ufjei0dh","data-path":"src/pages/DonatePage.tsx"})})]},p.label))}),l.jsx("p",{className:"text-xs text-gray-400 mt-4","data-id":"974e6mwpi","data-path":"src/pages/DonatePage.tsx",children:"82 cents of every dollar goes directly to programs and services."})]}),l.jsxs("div",{className:"bg-white border border-gray-100 rounded-2xl p-6","data-id":"1i2b3o9jv","data-path":"src/pages/DonatePage.tsx",children:[l.jsx("h3",{className:"font-bold text-gray-900 mb-4","data-id":"0fau80uzb","data-path":"src/pages/DonatePage.tsx",children:"Your Gift is Secure & Impactful"}),l.jsx("div",{className:"space-y-3","data-id":"ao5kzcwbp","data-path":"src/pages/DonatePage.tsx",children:[{icon:l.jsx(Va,{className:"w-4 h-4 text-teal-600","data-id":"efmfdtel3","data-path":"src/pages/DonatePage.tsx"}),label:"501(c)(3) registered nonprofit"},{icon:l.jsx(Or,{className:"w-4 h-4 text-teal-600","data-id":"q5b89b331","data-path":"src/pages/DonatePage.tsx"}),label:"EIN: 85-2764190"},{icon:l.jsx(Lr,{className:"w-4 h-4 text-teal-600","data-id":"kij2e30e1","data-path":"src/pages/DonatePage.tsx"}),label:"1,200+ individuals supported annually"},{icon:l.jsx(za,{className:"w-4 h-4 text-teal-600","data-id":"68m2iyjql","data-path":"src/pages/DonatePage.tsx"}),label:"85%+ housing stability success rate"}].map(p=>l.jsxs("div",{className:"flex items-center gap-3","data-id":"5ji2xt2p9","data-path":"src/pages/DonatePage.tsx",children:[p.icon,l.jsx("span",{className:"text-gray-600 text-sm","data-id":"9q1dpzqa0","data-path":"src/pages/DonatePage.tsx",children:p.label})]},p.label))})]}),l.jsxs("div",{className:"bg-teal-700 text-white rounded-2xl p-6","data-id":"2i5bntwt1","data-path":"src/pages/DonatePage.tsx",children:[l.jsx("h3",{className:"font-bold mb-3","data-id":"bagcxgr2d","data-path":"src/pages/DonatePage.tsx",children:"Other Ways to Support"}),l.jsxs("ul",{className:"space-y-2 text-teal-200 text-sm","data-id":"ljmbpr0ny","data-path":"src/pages/DonatePage.tsx",children:[l.jsxs("li",{className:"flex items-center gap-2","data-id":"4yppex0xe","data-path":"src/pages/DonatePage.tsx",children:[l.jsx(Jn,{className:"w-4 h-4 text-amber-400 flex-shrink-0","data-id":"jfyqzvuqy","data-path":"src/pages/DonatePage.tsx"})," Volunteer your time and skills"]}),l.jsxs("li",{className:"flex items-center gap-2","data-id":"mg8ens5aw","data-path":"src/pages/DonatePage.tsx",children:[l.jsx($r,{className:"w-4 h-4 text-amber-400 flex-shrink-0","data-id":"l535t1axj","data-path":"src/pages/DonatePage.tsx"})," Host an awareness event"]}),l.jsxs("li",{className:"flex items-center gap-2","data-id":"n4x9n72b2","data-path":"src/pages/DonatePage.tsx",children:[l.jsx(Lr,{className:"w-4 h-4 text-amber-400 flex-shrink-0","data-id":"8tifq5545","data-path":"src/pages/DonatePage.tsx"})," Become a community partner"]}),l.jsxs("li",{className:"flex items-center gap-2","data-id":"8oqva4rjh","data-path":"src/pages/DonatePage.tsx",children:[l.jsx(je,{className:"w-4 h-4 text-amber-400 flex-shrink-0","data-id":"p48mowp0s","data-path":"src/pages/DonatePage.tsx"})," Share our mission with others"]})]}),l.jsxs(H,{to:"/contact",className:"mt-5 inline-flex items-center gap-2 text-amber-300 hover:text-amber-200 font-semibold text-sm transition-colors","data-id":"n0apkwy6j","data-path":"src/pages/DonatePage.tsx",children:["Contact Us to Learn More ",l.jsx(ze,{className:"w-4 h-4","data-id":"zjg9e9zvd","data-path":"src/pages/DonatePage.tsx"})]})]})]})]})})}),l.jsx(ra,{"data-id":"yubwgkuyy","data-path":"src/pages/DonatePage.tsx"})]})},UR=()=>{const e=Ha();return v.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),l.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background","data-id":"xcfjtuzgd","data-path":"src/pages/NotFound.tsx",children:l.jsxs(W.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"text-center space-y-6 p-8","data-id":"odasvz2v8","data-path":"src/pages/NotFound.tsx",children:[l.jsx(W.div,{initial:{scale:.5},animate:{scale:1},transition:{duration:.5,delay:.2},"data-id":"qm17drztz","data-path":"src/pages/NotFound.tsx",children:l.jsx("h1",{className:"text-8xl font-bold text-primary","data-id":"qfj47p8gj","data-path":"src/pages/NotFound.tsx",children:"404"})}),l.jsxs(W.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.5,delay:.4},className:"space-y-4","data-id":"xoxp5yemo","data-path":"src/pages/NotFound.tsx",children:[l.jsx("h2",{className:"text-2xl font-semibold tracking-tight","data-id":"55gfdhskq","data-path":"src/pages/NotFound.tsx",children:"Page Not Found"}),l.jsx("p",{className:"text-muted-foreground","data-id":"im5v9aq6k","data-path":"src/pages/NotFound.tsx",children:"Sorry, the page you are looking for does not exist or has been removed."})]}),l.jsx(W.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.5,delay:.6},"data-id":"pdjfd2fft","data-path":"src/pages/NotFound.tsx",children:l.jsx(Ts,{asChild:!0,variant:"default",size:"lg","data-id":"ign79pqff","data-path":"src/pages/NotFound.tsx",children:l.jsx("a",{href:"/","data-id":"6llfbiewr","data-path":"src/pages/NotFound.tsx",children:"Back to Home"})})})]})})},qR=new Mk,WR=()=>l.jsx(UT,{FallbackComponent:TE,onError:(e,t)=>{console.error(`Error Boundary caught an error(pathname:${location.pathname+location.search}):`,e,t),setTimeout(()=>{throw e},0)},"data-id":"qitcsfp7a","data-path":"src/App.tsx",children:l.jsx(ow,{"data-id":"9mut7h8q2","data-path":"src/App.tsx",children:l.jsx(Lk,{client:qR,"data-id":"cndid0h25","data-path":"src/App.tsx",children:l.jsxs(ak,{"data-id":"v82gu2yyi","data-path":"src/App.tsx",children:[l.jsx(jC,{"data-id":"ftkm5je4n","data-path":"src/App.tsx"}),l.jsx(zT,{"data-id":"t4r09ifwg","data-path":"src/App.tsx",children:l.jsx(DT,{"data-id":"n9g0c5j9x","data-path":"src/App.tsx",children:l.jsxs(_t,{element:l.jsx(bE,{"data-id":"nq7ut7pbi","data-path":"src/App.tsx"}),"data-id":"x7sufwgvg","data-path":"src/App.tsx",children:[l.jsx(_t,{path:"/",element:l.jsx(TR,{"data-id":"d3hc4ppxr","data-path":"src/App.tsx"}),"data-id":"7n92msxez","data-path":"src/App.tsx"}),l.jsx(_t,{path:"/about",element:l.jsx(DR,{"data-id":"pn2ppy0qa","data-path":"src/App.tsx"}),"data-id":"rwlgs5mci","data-path":"src/App.tsx"}),l.jsx(_t,{path:"/programs",element:l.jsx(OR,{"data-id":"toddn8ayl","data-path":"src/App.tsx"}),"data-id":"il6hjta1u","data-path":"src/App.tsx"}),l.jsx(_t,{path:"/blog",element:l.jsx(_R,{"data-id":"0qsn4fvmb","data-path":"src/App.tsx"}),"data-id":"2cpqhhzd2","data-path":"src/App.tsx"}),l.jsx(_t,{path:"/blog/:slug",element:l.jsx(IR,{"data-id":"h0pu5wk1c","data-path":"src/App.tsx"}),"data-id":"23bv5fug3","data-path":"src/App.tsx"}),l.jsx(_t,{path:"/contact",element:l.jsx(zR,{"data-id":"13efg40te","data-path":"src/App.tsx"}),"data-id":"8ecgenz7i","data-path":"src/App.tsx"}),l.jsx(_t,{path:"/donate",element:l.jsx($R,{"data-id":"8pj02xm7m","data-path":"src/App.tsx"}),"data-id":"sooc32g09","data-path":"src/App.tsx"}),l.jsx(_t,{path:"*",element:l.jsx(UR,{"data-id":"xelny0fw6","data-path":"src/App.tsx"}),"data-id":"iuy6q6ul9","data-path":"src/App.tsx"})]})})})]})})})});v0(document.getElementById("root")).render(l.jsx(WR,{"data-id":"2aiuqmrxa","data-path":"src/main.tsx"}));