HifiPlanet-Website/hifi/assets/index-DPjtOB4k.js
Max Olchov ad3d1b081d
Live-Bearbeiten-Modus: Texte direkt auf der Website ändern
Eingeloggte Admins schalten über den Stift in der Navbar (oder "Website live
bearbeiten" im Dashboard) einen Bearbeiten-Modus ein und ändern Texte direkt
auf der Seite. Gesammelte Änderungen gehen mit "Speichern" an PUT /live-edit,
das jede Änderung gegen Feld-Whitelist und Berechtigung prüft und alles in
einer Transaktion schreibt.

- Startseite: Vorspann, Überschriften, Texte, Buttons inkl. Ziel, FAQ, Partner
- Leistungen, Paketkacheln (Name, Preistext, Stichpunkte), Marken, Modelle,
  Galerie-Marken/-Projekte, Impressum/Datenschutz/AGB
- Feste Texte (Buttons, Menü, Beschriftungen) je Seite über eine Liste,
  gespeichert in der neuen Tabelle text_overrides (Auto-Migration)
- Bearbeitet wird jeweils die gerade angezeigte Sprache
- .schema-version wird nicht mehr versioniert und vom Self-Update geschont

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015Dgc8etkq7JkjyZgD2DEbv
2026-10-19 22:31:25 +00:00

290 lines
500 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/iconRegistry-H4l5YZoi.js","assets/music-KHqYrHBN.js","assets/eye-BEN2zYzi.js","assets/grip-vertical-CUuB59gl.js","assets/trash-2-DoF1Wl4m.js","assets/DownloadsPage-CT2JtDjl.js","assets/downloads-B9pqFegV.js","assets/Impressum-CD5RtMwn.js","assets/LegalPageView-CftQhY6B.js","assets/Datenschutz-Hw0CcqUH.js","assets/AGB-B-uVHPUd.js","assets/Dashboard-Ny22AC_t.js","assets/ImageOptimizer-BFzUS7K5.js","assets/contactRequests-Qfsfq7Lb.js","assets/Brands-B0b0_Juu.js","assets/ImageUploadField-9c5yqxKc.js","assets/resizeImage-C6PvAwh0.js","assets/TextStyleWidget-BAoStnrf.js","assets/SortableList-BJ0lSjmQ.js","assets/sortable.esm-DcJMx5eJ.js","assets/Models-Dm2ZOtK7.js","assets/ViewOnSite-BpPSiS-X.js","assets/GalleryBrands-BIgI9jbo.js","assets/GalleryProjects-DjAXUN2H.js","assets/GalleryPhotos-Cv_Qhmer.js","assets/Packages-DP0k5UCv.js","assets/Services-IqOiBpFo.js","assets/Faqs-YCnZqzOe.js","assets/Partners-CaTZjCI-.js","assets/Downloads-kRYcJVxv.js","assets/HomeSections-CoOnRZ8A.js","assets/RichTextEditor-C9ovXVWM.js","assets/SaveBar-CCWqRbQZ.js","assets/ContactRequests-BudQZuIt.js","assets/WebsiteSettings-BW_4m7rg.js","assets/LegalSettings-C7GXvNXd.js","assets/EmailSettings-Di0wz8p1.js","assets/DatabaseSettings-DpuNUN63.js"])))=>i.map(i=>d[i]);
function Jy(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}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 s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function up(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cp={exports:{}},Yo={},dp={exports:{}},Y={};/**
* @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 si=Symbol.for("react.element"),ev=Symbol.for("react.portal"),tv=Symbol.for("react.fragment"),nv=Symbol.for("react.strict_mode"),rv=Symbol.for("react.profiler"),sv=Symbol.for("react.provider"),iv=Symbol.for("react.context"),ov=Symbol.for("react.forward_ref"),av=Symbol.for("react.suspense"),lv=Symbol.for("react.memo"),uv=Symbol.for("react.lazy"),Wd=Symbol.iterator;function cv(e){return e===null||typeof e!="object"?null:(e=Wd&&e[Wd]||e["@@iterator"],typeof e=="function"?e:null)}var fp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hp=Object.assign,mp={};function qr(e,t,n){this.props=e,this.context=t,this.refs=mp,this.updater=n||fp}qr.prototype.isReactComponent={};qr.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")};qr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function pp(){}pp.prototype=qr.prototype;function tc(e,t,n){this.props=e,this.context=t,this.refs=mp,this.updater=n||fp}var nc=tc.prototype=new pp;nc.constructor=tc;hp(nc,qr.prototype);nc.isPureReactComponent=!0;var Gd=Array.isArray,gp=Object.prototype.hasOwnProperty,rc={current:null},xp={key:!0,ref:!0,__self:!0,__source:!0};function yp(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)gp.call(t,r)&&!xp.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];s.children=u}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:si,type:e,key:i,ref:o,props:s,_owner:rc.current}}function dv(e,t){return{$$typeof:si,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function sc(e){return typeof e=="object"&&e!==null&&e.$$typeof===si}function fv(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Kd=/\/+/g;function ja(e,t){return typeof e=="object"&&e!==null&&e.key!=null?fv(""+e.key):t.toString(36)}function $i(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case si:case ev:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+ja(o,0):r,Gd(s)?(n="",e!=null&&(n=e.replace(Kd,"$&/")+"/"),$i(s,t,n,"",function(c){return c})):s!=null&&(sc(s)&&(s=dv(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(Kd,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",Gd(e))for(var a=0;a<e.length;a++){i=e[a];var u=r+ja(i,a);o+=$i(i,t,n,u,s)}else if(u=cv(e),typeof u=="function")for(e=u.call(e),a=0;!(i=e.next()).done;)i=i.value,u=r+ja(i,a++),o+=$i(i,t,n,u,s);else if(i==="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 o}function gi(e,t,n){if(e==null)return e;var r=[],s=0;return $i(e,r,"","",function(i){return t.call(n,i,s++)}),r}function hv(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 Ze={current:null},Hi={transition:null},mv={ReactCurrentDispatcher:Ze,ReactCurrentBatchConfig:Hi,ReactCurrentOwner:rc};function vp(){throw Error("act(...) is not supported in production builds of React.")}Y.Children={map:gi,forEach:function(e,t,n){gi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return gi(e,function(){t++}),t},toArray:function(e){return gi(e,function(t){return t})||[]},only:function(e){if(!sc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Y.Component=qr;Y.Fragment=tv;Y.Profiler=rv;Y.PureComponent=tc;Y.StrictMode=nv;Y.Suspense=av;Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mv;Y.act=vp;Y.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=hp({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=rc.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)gp.call(t,u)&&!xp.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&a!==void 0?a[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){a=Array(u);for(var c=0;c<u;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:si,type:e.type,key:s,ref:i,props:r,_owner:o}};Y.createContext=function(e){return e={$$typeof:iv,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:sv,_context:e},e.Consumer=e};Y.createElement=yp;Y.createFactory=function(e){var t=yp.bind(null,e);return t.type=e,t};Y.createRef=function(){return{current:null}};Y.forwardRef=function(e){return{$$typeof:ov,render:e}};Y.isValidElement=sc;Y.lazy=function(e){return{$$typeof:uv,_payload:{_status:-1,_result:e},_init:hv}};Y.memo=function(e,t){return{$$typeof:lv,type:e,compare:t===void 0?null:t}};Y.startTransition=function(e){var t=Hi.transition;Hi.transition={};try{e()}finally{Hi.transition=t}};Y.unstable_act=vp;Y.useCallback=function(e,t){return Ze.current.useCallback(e,t)};Y.useContext=function(e){return Ze.current.useContext(e)};Y.useDebugValue=function(){};Y.useDeferredValue=function(e){return Ze.current.useDeferredValue(e)};Y.useEffect=function(e,t){return Ze.current.useEffect(e,t)};Y.useId=function(){return Ze.current.useId()};Y.useImperativeHandle=function(e,t,n){return Ze.current.useImperativeHandle(e,t,n)};Y.useInsertionEffect=function(e,t){return Ze.current.useInsertionEffect(e,t)};Y.useLayoutEffect=function(e,t){return Ze.current.useLayoutEffect(e,t)};Y.useMemo=function(e,t){return Ze.current.useMemo(e,t)};Y.useReducer=function(e,t,n){return Ze.current.useReducer(e,t,n)};Y.useRef=function(e){return Ze.current.useRef(e)};Y.useState=function(e){return Ze.current.useState(e)};Y.useSyncExternalStore=function(e,t,n){return Ze.current.useSyncExternalStore(e,t,n)};Y.useTransition=function(){return Ze.current.useTransition()};Y.version="18.3.1";dp.exports=Y;var m=dp.exports;const wp=up(m),pv=Jy({__proto__:null,default:wp},[m]);/**
* @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 gv=m,xv=Symbol.for("react.element"),yv=Symbol.for("react.fragment"),vv=Object.prototype.hasOwnProperty,wv=gv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,bv={key:!0,ref:!0,__self:!0,__source:!0};function bp(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)vv.call(t,r)&&!bv.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:xv,type:e,key:i,ref:o,props:s,_owner:wv.current}}Yo.Fragment=yv;Yo.jsx=bp;Yo.jsxs=bp;cp.exports=Yo;var l=cp.exports,jl={},kp={exports:{}},ft={},Sp={exports:{}},jp={};/**
* @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(N,A){var L=N.length;N.push(A);e:for(;0<L;){var F=L-1>>>1,C=N[F];if(0<s(C,A))N[F]=A,N[L]=C,L=F;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var A=N[0],L=N.pop();if(L!==A){N[0]=L;e:for(var F=0,C=N.length,R=C>>>1;F<R;){var z=2*(F+1)-1,W=N[z],te=z+1,se=N[te];if(0>s(W,L))te<C&&0>s(se,W)?(N[F]=se,N[te]=L,F=te):(N[F]=W,N[z]=L,F=z);else if(te<C&&0>s(se,L))N[F]=se,N[te]=L,F=te;else break e}}return A}function s(N,A){var L=N.sortIndex-A.sortIndex;return L!==0?L:N.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var u=[],c=[],d=1,f=null,h=3,p=!1,v=!1,w=!1,b=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,x=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(N){for(var A=n(c);A!==null;){if(A.callback===null)r(c);else if(A.startTime<=N)r(c),A.sortIndex=A.expirationTime,t(u,A);else break;A=n(c)}}function k(N){if(w=!1,y(N),!v)if(n(u)!==null)v=!0,q(S);else{var A=n(c);A!==null&&ie(k,A.startTime-N)}}function S(N,A){v=!1,w&&(w=!1,g(P),P=-1),p=!0;var L=h;try{for(y(A),f=n(u);f!==null&&(!(f.expirationTime>A)||N&&!B());){var F=f.callback;if(typeof F=="function"){f.callback=null,h=f.priorityLevel;var C=F(f.expirationTime<=A);A=e.unstable_now(),typeof C=="function"?f.callback=C:f===n(u)&&r(u),y(A)}else r(u);f=n(u)}if(f!==null)var R=!0;else{var z=n(c);z!==null&&ie(k,z.startTime-A),R=!1}return R}finally{f=null,h=L,p=!1}}var E=!1,j=null,P=-1,M=5,T=-1;function B(){return!(e.unstable_now()-T<M)}function H(){if(j!==null){var N=e.unstable_now();T=N;var A=!0;try{A=j(!0,N)}finally{A?ee():(E=!1,j=null)}}else E=!1}var ee;if(typeof x=="function")ee=function(){x(H)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,G=U.port2;U.port1.onmessage=H,ee=function(){G.postMessage(null)}}else ee=function(){b(H,0)};function q(N){j=N,E||(E=!0,ee())}function ie(N,A){P=b(function(){N(e.unstable_now())},A)}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(N){N.callback=null},e.unstable_continueExecution=function(){v||p||(v=!0,q(S))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(N){switch(h){case 1:case 2:case 3:var A=3;break;default:A=h}var L=h;h=A;try{return N()}finally{h=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,A){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var L=h;h=N;try{return A()}finally{h=L}},e.unstable_scheduleCallback=function(N,A,L){var F=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?F+L:F):L=F,N){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=L+C,N={id:d++,callback:A,priorityLevel:N,startTime:L,expirationTime:C,sortIndex:-1},L>F?(N.sortIndex=L,t(c,N),n(u)===null&&N===n(c)&&(w?(g(P),P=-1):w=!0,ie(k,L-F))):(N.sortIndex=C,t(u,N),v||p||(v=!0,q(S))),N},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(N){var A=h;return function(){var L=h;h=A;try{return N.apply(this,arguments)}finally{h=L}}}})(jp);Sp.exports=jp;var kv=Sp.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 Sv=m,dt=kv;function D(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 Pp=new Set,Rs={};function or(e,t){Vr(e,t),Vr(e+"Capture",t)}function Vr(e,t){for(Rs[e]=t,e=0;e<t.length;e++)Pp.add(t[e])}var Jt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pl=Object.prototype.hasOwnProperty,jv=/^[: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]*$/,qd={},Yd={};function Pv(e){return Pl.call(Yd,e)?!0:Pl.call(qd,e)?!1:jv.test(e)?Yd[e]=!0:(qd[e]=!0,!1)}function Cv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ev(e,t,n,r){if(t===null||typeof t>"u"||Cv(e,t,n,r))return!0;if(r)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 Qe(e,t,n,r,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Oe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Oe[e]=new Qe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Oe[t]=new Qe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Oe[e]=new Qe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Oe[e]=new Qe(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){Oe[e]=new Qe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Oe[e]=new Qe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Oe[e]=new Qe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Oe[e]=new Qe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Oe[e]=new Qe(e,5,!1,e.toLowerCase(),null,!1,!1)});var ic=/[\-:]([a-z])/g;function oc(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(ic,oc);Oe[t]=new Qe(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(ic,oc);Oe[t]=new Qe(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(ic,oc);Oe[t]=new Qe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Oe[e]=new Qe(e,1,!1,e.toLowerCase(),null,!1,!1)});Oe.xlinkHref=new Qe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Oe[e]=new Qe(e,1,!1,e.toLowerCase(),null,!0,!0)});function ac(e,t,n,r){var s=Oe.hasOwnProperty(t)?Oe[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Ev(t,n,s,r)&&(n=null),r||s===null?Pv(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var sn=Sv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,xi=Symbol.for("react.element"),mr=Symbol.for("react.portal"),pr=Symbol.for("react.fragment"),lc=Symbol.for("react.strict_mode"),Cl=Symbol.for("react.profiler"),Cp=Symbol.for("react.provider"),Ep=Symbol.for("react.context"),uc=Symbol.for("react.forward_ref"),El=Symbol.for("react.suspense"),Tl=Symbol.for("react.suspense_list"),cc=Symbol.for("react.memo"),un=Symbol.for("react.lazy"),Tp=Symbol.for("react.offscreen"),Xd=Symbol.iterator;function rs(e){return e===null||typeof e!="object"?null:(e=Xd&&e[Xd]||e["@@iterator"],typeof e=="function"?e:null)}var ye=Object.assign,Pa;function ms(e){if(Pa===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Pa=t&&t[1]||""}return`
`+Pa+e}var Ca=!1;function Ea(e,t){if(!e||Ca)return"";Ca=!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(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var s=c.stack.split(`
`),i=r.stack.split(`
`),o=s.length-1,a=i.length-1;1<=o&&0<=a&&s[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||s[o]!==i[a]){var u=`
`+s[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=a);break}}}finally{Ca=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ms(e):""}function Tv(e){switch(e.tag){case 5:return ms(e.type);case 16:return ms("Lazy");case 13:return ms("Suspense");case 19:return ms("SuspenseList");case 0:case 2:case 15:return e=Ea(e.type,!1),e;case 11:return e=Ea(e.type.render,!1),e;case 1:return e=Ea(e.type,!0),e;default:return""}}function Nl(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 pr:return"Fragment";case mr:return"Portal";case Cl:return"Profiler";case lc:return"StrictMode";case El:return"Suspense";case Tl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ep:return(e.displayName||"Context")+".Consumer";case Cp:return(e._context.displayName||"Context")+".Provider";case uc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case cc:return t=e.displayName||null,t!==null?t:Nl(e.type)||"Memo";case un:t=e._payload,e=e._init;try{return Nl(e(t))}catch{}}return null}function Nv(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 Nl(t);case 8:return t===lc?"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 _n(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Np(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _v(e){var t=Np(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yi(e){e._valueTracker||(e._valueTracker=_v(e))}function _p(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Np(e)?e.checked?"true":"false":e.value),e=r,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 _l(e,t){var n=t.checked;return ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Zd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=_n(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Mp(e,t){t=t.checked,t!=null&&ac(e,"checked",t,!1)}function Ml(e,t){Mp(e,t);var n=_n(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ll(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ll(e,t.type,_n(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Qd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="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 Ll(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 _r(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+_n(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Al(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(D(91));return ye({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Jd(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(D(92));if(ps(n)){if(1<n.length)throw Error(D(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:_n(n)}}function Lp(e,t){var n=_n(t.value),r=_n(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ef(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ap(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 Dl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ap(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var vi,Dp=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(vi=vi||document.createElement("div"),vi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=vi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ws={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},Mv=["Webkit","ms","Moz","O"];Object.keys(ws).forEach(function(e){Mv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ws[t]=ws[e]})});function Rp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ws.hasOwnProperty(e)&&ws[e]?(""+t).trim():t+"px"}function Vp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Rp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var Lv=ye({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 Rl(e,t){if(t){if(Lv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function Vl(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 Il=null;function dc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fl=null,Mr=null,Lr=null;function tf(e){if(e=ai(e)){if(typeof Fl!="function")throw Error(D(280));var t=e.stateNode;t&&(t=ea(t),Fl(e.stateNode,e.type,t))}}function Ip(e){Mr?Lr?Lr.push(e):Lr=[e]:Mr=e}function Fp(){if(Mr){var e=Mr,t=Lr;if(Lr=Mr=null,tf(e),t)for(e=0;e<t.length;e++)tf(t[e])}}function Op(e,t){return e(t)}function zp(){}var Ta=!1;function Bp(e,t,n){if(Ta)return e(t,n);Ta=!0;try{return Op(e,t,n)}finally{Ta=!1,(Mr!==null||Lr!==null)&&(zp(),Fp())}}function Is(e,t){var n=e.stateNode;if(n===null)return null;var r=ea(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(D(231,t,typeof n));return n}var Ol=!1;if(Jt)try{var ss={};Object.defineProperty(ss,"passive",{get:function(){Ol=!0}}),window.addEventListener("test",ss,ss),window.removeEventListener("test",ss,ss)}catch{Ol=!1}function Av(e,t,n,r,s,i,o,a,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var bs=!1,fo=null,ho=!1,zl=null,Dv={onError:function(e){bs=!0,fo=e}};function Rv(e,t,n,r,s,i,o,a,u){bs=!1,fo=null,Av.apply(Dv,arguments)}function Vv(e,t,n,r,s,i,o,a,u){if(Rv.apply(this,arguments),bs){if(bs){var c=fo;bs=!1,fo=null}else throw Error(D(198));ho||(ho=!0,zl=c)}}function ar(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 $p(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 nf(e){if(ar(e)!==e)throw Error(D(188))}function Iv(e){var t=e.alternate;if(!t){if(t=ar(e),t===null)throw Error(D(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return nf(s),e;if(i===r)return nf(s),t;i=i.sibling}throw Error(D(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o){for(a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o)throw Error(D(189))}}if(n.alternate!==r)throw Error(D(190))}if(n.tag!==3)throw Error(D(188));return n.stateNode.current===n?e:t}function Hp(e){return e=Iv(e),e!==null?Up(e):null}function Up(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Up(e);if(t!==null)return t;e=e.sibling}return null}var Wp=dt.unstable_scheduleCallback,rf=dt.unstable_cancelCallback,Fv=dt.unstable_shouldYield,Ov=dt.unstable_requestPaint,ke=dt.unstable_now,zv=dt.unstable_getCurrentPriorityLevel,fc=dt.unstable_ImmediatePriority,Gp=dt.unstable_UserBlockingPriority,mo=dt.unstable_NormalPriority,Bv=dt.unstable_LowPriority,Kp=dt.unstable_IdlePriority,Xo=null,$t=null;function $v(e){if($t&&typeof $t.onCommitFiberRoot=="function")try{$t.onCommitFiberRoot(Xo,e,void 0,(e.current.flags&128)===128)}catch{}}var Mt=Math.clz32?Math.clz32:Wv,Hv=Math.log,Uv=Math.LN2;function Wv(e){return e>>>=0,e===0?32:31-(Hv(e)/Uv|0)|0}var wi=64,bi=4194304;function gs(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 po(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=gs(a):(i&=o,i!==0&&(r=gs(i)))}else o=n&~s,o!==0?r=gs(o):i!==0&&(r=gs(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Mt(t),s=1<<n,r|=e[n],t&=~s;return r}function Gv(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 Kv(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-Mt(i),a=1<<o,u=s[o];u===-1?(!(a&n)||a&r)&&(s[o]=Gv(a,t)):u<=t&&(e.expiredLanes|=a),i&=~a}}function Bl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function qp(){var e=wi;return wi<<=1,!(wi&4194240)&&(wi=64),e}function Na(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ii(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Mt(t),e[t]=n}function qv(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 r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-Mt(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function hc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Mt(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var re=0;function Yp(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Xp,mc,Zp,Qp,Jp,$l=!1,ki=[],vn=null,wn=null,bn=null,Fs=new Map,Os=new Map,fn=[],Yv="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 sf(e,t){switch(e){case"focusin":case"focusout":vn=null;break;case"dragenter":case"dragleave":wn=null;break;case"mouseover":case"mouseout":bn=null;break;case"pointerover":case"pointerout":Fs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Os.delete(t.pointerId)}}function is(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=ai(t),t!==null&&mc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Xv(e,t,n,r,s){switch(t){case"focusin":return vn=is(vn,e,t,n,r,s),!0;case"dragenter":return wn=is(wn,e,t,n,r,s),!0;case"mouseover":return bn=is(bn,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return Fs.set(i,is(Fs.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,Os.set(i,is(Os.get(i)||null,e,t,n,r,s)),!0}return!1}function eg(e){var t=Hn(e.target);if(t!==null){var n=ar(t);if(n!==null){if(t=n.tag,t===13){if(t=$p(n),t!==null){e.blockedOn=t,Jp(e.priority,function(){Zp(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 Ui(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Hl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Il=r,n.target.dispatchEvent(r),Il=null}else return t=ai(n),t!==null&&mc(t),e.blockedOn=n,!1;t.shift()}return!0}function of(e,t,n){Ui(e)&&n.delete(t)}function Zv(){$l=!1,vn!==null&&Ui(vn)&&(vn=null),wn!==null&&Ui(wn)&&(wn=null),bn!==null&&Ui(bn)&&(bn=null),Fs.forEach(of),Os.forEach(of)}function os(e,t){e.blockedOn===t&&(e.blockedOn=null,$l||($l=!0,dt.unstable_scheduleCallback(dt.unstable_NormalPriority,Zv)))}function zs(e){function t(s){return os(s,e)}if(0<ki.length){os(ki[0],e);for(var n=1;n<ki.length;n++){var r=ki[n];r.blockedOn===e&&(r.blockedOn=null)}}for(vn!==null&&os(vn,e),wn!==null&&os(wn,e),bn!==null&&os(bn,e),Fs.forEach(t),Os.forEach(t),n=0;n<fn.length;n++)r=fn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<fn.length&&(n=fn[0],n.blockedOn===null);)eg(n),n.blockedOn===null&&fn.shift()}var Ar=sn.ReactCurrentBatchConfig,go=!0;function Qv(e,t,n,r){var s=re,i=Ar.transition;Ar.transition=null;try{re=1,pc(e,t,n,r)}finally{re=s,Ar.transition=i}}function Jv(e,t,n,r){var s=re,i=Ar.transition;Ar.transition=null;try{re=4,pc(e,t,n,r)}finally{re=s,Ar.transition=i}}function pc(e,t,n,r){if(go){var s=Hl(e,t,n,r);if(s===null)Oa(e,t,r,xo,n),sf(e,r);else if(Xv(s,e,t,n,r))r.stopPropagation();else if(sf(e,r),t&4&&-1<Yv.indexOf(e)){for(;s!==null;){var i=ai(s);if(i!==null&&Xp(i),i=Hl(e,t,n,r),i===null&&Oa(e,t,r,xo,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Oa(e,t,r,null,n)}}var xo=null;function Hl(e,t,n,r){if(xo=null,e=dc(r),e=Hn(e),e!==null)if(t=ar(e),t===null)e=null;else if(n=t.tag,n===13){if(e=$p(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 xo=e,null}function tg(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(zv()){case fc:return 1;case Gp:return 4;case mo:case Bv:return 16;case Kp:return 536870912;default:return 16}default:return 16}}var mn=null,gc=null,Wi=null;function ng(){if(Wi)return Wi;var e,t=gc,n=t.length,r,s="value"in mn?mn.value:mn.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return Wi=s.slice(e,1<r?1-r:void 0)}function Gi(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 Si(){return!0}function af(){return!1}function ht(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Si:af,this.isPropagationStopped=af,this}return ye(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=Si)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Si)},persist:function(){},isPersistent:Si}),t}var Yr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xc=ht(Yr),oi=ye({},Yr,{view:0,detail:0}),e1=ht(oi),_a,Ma,as,Zo=ye({},oi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yc,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"?(_a=e.screenX-as.screenX,Ma=e.screenY-as.screenY):Ma=_a=0,as=e),_a)},movementY:function(e){return"movementY"in e?e.movementY:Ma}}),lf=ht(Zo),t1=ye({},Zo,{dataTransfer:0}),n1=ht(t1),r1=ye({},oi,{relatedTarget:0}),La=ht(r1),s1=ye({},Yr,{animationName:0,elapsedTime:0,pseudoElement:0}),i1=ht(s1),o1=ye({},Yr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),a1=ht(o1),l1=ye({},Yr,{data:0}),uf=ht(l1),u1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},c1={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"},d1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function f1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=d1[e])?!!t[e]:!1}function yc(){return f1}var h1=ye({},oi,{key:function(e){if(e.key){var t=u1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Gi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?c1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yc,charCode:function(e){return e.type==="keypress"?Gi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Gi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),m1=ht(h1),p1=ye({},Zo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cf=ht(p1),g1=ye({},oi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yc}),x1=ht(g1),y1=ye({},Yr,{propertyName:0,elapsedTime:0,pseudoElement:0}),v1=ht(y1),w1=ye({},Zo,{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}),b1=ht(w1),k1=[9,13,27,32],vc=Jt&&"CompositionEvent"in window,ks=null;Jt&&"documentMode"in document&&(ks=document.documentMode);var S1=Jt&&"TextEvent"in window&&!ks,rg=Jt&&(!vc||ks&&8<ks&&11>=ks),df=" ",ff=!1;function sg(e,t){switch(e){case"keyup":return k1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ig(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var gr=!1;function j1(e,t){switch(e){case"compositionend":return ig(t);case"keypress":return t.which!==32?null:(ff=!0,df);case"textInput":return e=t.data,e===df&&ff?null:e;default:return null}}function P1(e,t){if(gr)return e==="compositionend"||!vc&&sg(e,t)?(e=ng(),Wi=gc=mn=null,gr=!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 rg&&t.locale!=="ko"?null:t.data;default:return null}}var C1={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 hf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!C1[e.type]:t==="textarea"}function og(e,t,n,r){Ip(r),t=yo(t,"onChange"),0<t.length&&(n=new xc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ss=null,Bs=null;function E1(e){xg(e,0)}function Qo(e){var t=vr(e);if(_p(t))return e}function T1(e,t){if(e==="change")return t}var ag=!1;if(Jt){var Aa;if(Jt){var Da="oninput"in document;if(!Da){var mf=document.createElement("div");mf.setAttribute("oninput","return;"),Da=typeof mf.oninput=="function"}Aa=Da}else Aa=!1;ag=Aa&&(!document.documentMode||9<document.documentMode)}function pf(){Ss&&(Ss.detachEvent("onpropertychange",lg),Bs=Ss=null)}function lg(e){if(e.propertyName==="value"&&Qo(Bs)){var t=[];og(t,Bs,e,dc(e)),Bp(E1,t)}}function N1(e,t,n){e==="focusin"?(pf(),Ss=t,Bs=n,Ss.attachEvent("onpropertychange",lg)):e==="focusout"&&pf()}function _1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qo(Bs)}function M1(e,t){if(e==="click")return Qo(t)}function L1(e,t){if(e==="input"||e==="change")return Qo(t)}function A1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dt=typeof Object.is=="function"?Object.is:A1;function $s(e,t){if(Dt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!Pl.call(t,s)||!Dt(e[s],t[s]))return!1}return!0}function gf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xf(e,t){var n=gf(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=gf(n)}}function ug(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ug(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function cg(){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 wc(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 D1(e){var t=cg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ug(n.ownerDocument.documentElement,n)){if(r!==null&&wc(n)){if(t=r.start,e=r.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 s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=xf(n,i);var o=xf(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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 R1=Jt&&"documentMode"in document&&11>=document.documentMode,xr=null,Ul=null,js=null,Wl=!1;function yf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Wl||xr==null||xr!==co(r)||(r=xr,"selectionStart"in r&&wc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),js&&$s(js,r)||(js=r,r=yo(Ul,"onSelect"),0<r.length&&(t=new xc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=xr)))}function ji(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var yr={animationend:ji("Animation","AnimationEnd"),animationiteration:ji("Animation","AnimationIteration"),animationstart:ji("Animation","AnimationStart"),transitionend:ji("Transition","TransitionEnd")},Ra={},dg={};Jt&&(dg=document.createElement("div").style,"AnimationEvent"in window||(delete yr.animationend.animation,delete yr.animationiteration.animation,delete yr.animationstart.animation),"TransitionEvent"in window||delete yr.transitionend.transition);function Jo(e){if(Ra[e])return Ra[e];if(!yr[e])return e;var t=yr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in dg)return Ra[e]=t[n];return e}var fg=Jo("animationend"),hg=Jo("animationiteration"),mg=Jo("animationstart"),pg=Jo("transitionend"),gg=new Map,vf="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 An(e,t){gg.set(e,t),or(t,[e])}for(var Va=0;Va<vf.length;Va++){var Ia=vf[Va],V1=Ia.toLowerCase(),I1=Ia[0].toUpperCase()+Ia.slice(1);An(V1,"on"+I1)}An(fg,"onAnimationEnd");An(hg,"onAnimationIteration");An(mg,"onAnimationStart");An("dblclick","onDoubleClick");An("focusin","onFocus");An("focusout","onBlur");An(pg,"onTransitionEnd");Vr("onMouseEnter",["mouseout","mouseover"]);Vr("onMouseLeave",["mouseout","mouseover"]);Vr("onPointerEnter",["pointerout","pointerover"]);Vr("onPointerLeave",["pointerout","pointerover"]);or("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));or("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));or("onBeforeInput",["compositionend","keypress","textInput","paste"]);or("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));or("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));or("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xs="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(" "),F1=new Set("cancel close invalid load scroll toggle".split(" ").concat(xs));function wf(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Vv(r,t,void 0,e),e.currentTarget=null}function xg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],u=a.instance,c=a.currentTarget;if(a=a.listener,u!==i&&s.isPropagationStopped())break e;wf(s,a,c),i=u}else for(o=0;o<r.length;o++){if(a=r[o],u=a.instance,c=a.currentTarget,a=a.listener,u!==i&&s.isPropagationStopped())break e;wf(s,a,c),i=u}}}if(ho)throw e=zl,ho=!1,zl=null,e}function fe(e,t){var n=t[Xl];n===void 0&&(n=t[Xl]=new Set);var r=e+"__bubble";n.has(r)||(yg(t,e,2,!1),n.add(r))}function Fa(e,t,n){var r=0;t&&(r|=4),yg(n,e,r,t)}var Pi="_reactListening"+Math.random().toString(36).slice(2);function Hs(e){if(!e[Pi]){e[Pi]=!0,Pp.forEach(function(n){n!=="selectionchange"&&(F1.has(n)||Fa(n,!1,e),Fa(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Pi]||(t[Pi]=!0,Fa("selectionchange",!1,t))}}function yg(e,t,n,r){switch(tg(t)){case 1:var s=Qv;break;case 4:s=Jv;break;default:s=pc}n=s.bind(null,t,n,e),s=void 0,!Ol||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Oa(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===s||u.nodeType===8&&u.parentNode===s))return;o=o.return}for(;a!==null;){if(o=Hn(a),o===null)return;if(u=o.tag,u===5||u===6){r=i=o;continue e}a=a.parentNode}}r=r.return}Bp(function(){var c=i,d=dc(n),f=[];e:{var h=gg.get(e);if(h!==void 0){var p=xc,v=e;switch(e){case"keypress":if(Gi(n)===0)break e;case"keydown":case"keyup":p=m1;break;case"focusin":v="focus",p=La;break;case"focusout":v="blur",p=La;break;case"beforeblur":case"afterblur":p=La;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":p=lf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=n1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=x1;break;case fg:case hg:case mg:p=i1;break;case pg:p=v1;break;case"scroll":p=e1;break;case"wheel":p=b1;break;case"copy":case"cut":case"paste":p=a1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=cf}var w=(t&4)!==0,b=!w&&e==="scroll",g=w?h!==null?h+"Capture":null:h;w=[];for(var x=c,y;x!==null;){y=x;var k=y.stateNode;if(y.tag===5&&k!==null&&(y=k,g!==null&&(k=Is(x,g),k!=null&&w.push(Us(x,k,y)))),b)break;x=x.return}0<w.length&&(h=new p(h,v,null,n,d),f.push({event:h,listeners:w}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==Il&&(v=n.relatedTarget||n.fromElement)&&(Hn(v)||v[en]))break e;if((p||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,p?(v=n.relatedTarget||n.toElement,p=c,v=v?Hn(v):null,v!==null&&(b=ar(v),v!==b||v.tag!==5&&v.tag!==6)&&(v=null)):(p=null,v=c),p!==v)){if(w=lf,k="onMouseLeave",g="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(w=cf,k="onPointerLeave",g="onPointerEnter",x="pointer"),b=p==null?h:vr(p),y=v==null?h:vr(v),h=new w(k,x+"leave",p,n,d),h.target=b,h.relatedTarget=y,k=null,Hn(d)===c&&(w=new w(g,x+"enter",v,n,d),w.target=y,w.relatedTarget=b,k=w),b=k,p&&v)t:{for(w=p,g=v,x=0,y=w;y;y=cr(y))x++;for(y=0,k=g;k;k=cr(k))y++;for(;0<x-y;)w=cr(w),x--;for(;0<y-x;)g=cr(g),y--;for(;x--;){if(w===g||g!==null&&w===g.alternate)break t;w=cr(w),g=cr(g)}w=null}else w=null;p!==null&&bf(f,h,p,w,!1),v!==null&&b!==null&&bf(f,b,v,w,!0)}}e:{if(h=c?vr(c):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var S=T1;else if(hf(h))if(ag)S=L1;else{S=_1;var E=N1}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(S=M1);if(S&&(S=S(e,c))){og(f,S,n,d);break e}E&&E(e,h,c),e==="focusout"&&(E=h._wrapperState)&&E.controlled&&h.type==="number"&&Ll(h,"number",h.value)}switch(E=c?vr(c):window,e){case"focusin":(hf(E)||E.contentEditable==="true")&&(xr=E,Ul=c,js=null);break;case"focusout":js=Ul=xr=null;break;case"mousedown":Wl=!0;break;case"contextmenu":case"mouseup":case"dragend":Wl=!1,yf(f,n,d);break;case"selectionchange":if(R1)break;case"keydown":case"keyup":yf(f,n,d)}var j;if(vc)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else gr?sg(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(rg&&n.locale!=="ko"&&(gr||P!=="onCompositionStart"?P==="onCompositionEnd"&&gr&&(j=ng()):(mn=d,gc="value"in mn?mn.value:mn.textContent,gr=!0)),E=yo(c,P),0<E.length&&(P=new uf(P,e,null,n,d),f.push({event:P,listeners:E}),j?P.data=j:(j=ig(n),j!==null&&(P.data=j)))),(j=S1?j1(e,n):P1(e,n))&&(c=yo(c,"onBeforeInput"),0<c.length&&(d=new uf("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:c}),d.data=j))}xg(f,t)})}function Us(e,t,n){return{instance:e,listener:t,currentTarget:n}}function yo(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=Is(e,n),i!=null&&r.unshift(Us(e,i,s)),i=Is(e,t),i!=null&&r.push(Us(e,i,s))),e=e.return}return r}function cr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function bf(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var a=n,u=a.alternate,c=a.stateNode;if(u!==null&&u===r)break;a.tag===5&&c!==null&&(a=c,s?(u=Is(n,i),u!=null&&o.unshift(Us(n,u,a))):s||(u=Is(n,i),u!=null&&o.push(Us(n,u,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var O1=/\r\n?/g,z1=/\u0000|\uFFFD/g;function kf(e){return(typeof e=="string"?e:""+e).replace(O1,`
`).replace(z1,"")}function Ci(e,t,n){if(t=kf(t),kf(e)!==t&&n)throw Error(D(425))}function vo(){}var Gl=null,Kl=null;function ql(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 Yl=typeof setTimeout=="function"?setTimeout:void 0,B1=typeof clearTimeout=="function"?clearTimeout:void 0,Sf=typeof Promise=="function"?Promise:void 0,$1=typeof queueMicrotask=="function"?queueMicrotask:typeof Sf<"u"?function(e){return Sf.resolve(null).then(e).catch(H1)}:Yl;function H1(e){setTimeout(function(){throw e})}function za(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),zs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);zs(t)}function kn(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 jf(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 Xr=Math.random().toString(36).slice(2),Bt="__reactFiber$"+Xr,Ws="__reactProps$"+Xr,en="__reactContainer$"+Xr,Xl="__reactEvents$"+Xr,U1="__reactListeners$"+Xr,W1="__reactHandles$"+Xr;function Hn(e){var t=e[Bt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[en]||n[Bt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=jf(e);e!==null;){if(n=e[Bt])return n;e=jf(e)}return t}e=n,n=e.parentNode}return null}function ai(e){return e=e[Bt]||e[en],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function vr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(D(33))}function ea(e){return e[Ws]||null}var Zl=[],wr=-1;function Dn(e){return{current:e}}function he(e){0>wr||(e.current=Zl[wr],Zl[wr]=null,wr--)}function ce(e,t){wr++,Zl[wr]=e.current,e.current=t}var Mn={},Ge=Dn(Mn),nt=Dn(!1),Qn=Mn;function Ir(e,t){var n=e.type.contextTypes;if(!n)return Mn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function rt(e){return e=e.childContextTypes,e!=null}function wo(){he(nt),he(Ge)}function Pf(e,t,n){if(Ge.current!==Mn)throw Error(D(168));ce(Ge,t),ce(nt,n)}function vg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(D(108,Nv(e)||"Unknown",s));return ye({},n,r)}function bo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mn,Qn=Ge.current,ce(Ge,e),ce(nt,nt.current),!0}function Cf(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=vg(e,t,Qn),r.__reactInternalMemoizedMergedChildContext=e,he(nt),he(Ge),ce(Ge,e)):he(nt),ce(nt,n)}var qt=null,ta=!1,Ba=!1;function wg(e){qt===null?qt=[e]:qt.push(e)}function G1(e){ta=!0,wg(e)}function Rn(){if(!Ba&&qt!==null){Ba=!0;var e=0,t=re;try{var n=qt;for(re=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}qt=null,ta=!1}catch(s){throw qt!==null&&(qt=qt.slice(e+1)),Wp(fc,Rn),s}finally{re=t,Ba=!1}}return null}var br=[],kr=0,ko=null,So=0,pt=[],gt=0,Jn=null,Yt=1,Xt="";function zn(e,t){br[kr++]=So,br[kr++]=ko,ko=e,So=t}function bg(e,t,n){pt[gt++]=Yt,pt[gt++]=Xt,pt[gt++]=Jn,Jn=e;var r=Yt;e=Xt;var s=32-Mt(r)-1;r&=~(1<<s),n+=1;var i=32-Mt(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,Yt=1<<32-Mt(t)+s|n<<s|r,Xt=i+e}else Yt=1<<i|n<<s|r,Xt=e}function bc(e){e.return!==null&&(zn(e,1),bg(e,1,0))}function kc(e){for(;e===ko;)ko=br[--kr],br[kr]=null,So=br[--kr],br[kr]=null;for(;e===Jn;)Jn=pt[--gt],pt[gt]=null,Xt=pt[--gt],pt[gt]=null,Yt=pt[--gt],pt[gt]=null}var ut=null,lt=null,me=!1,Nt=null;function kg(e,t){var n=xt(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 Ef(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,ut=e,lt=kn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ut=e,lt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Jn!==null?{id:Yt,overflow:Xt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=xt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ut=e,lt=null,!0):!1;default:return!1}}function Ql(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Jl(e){if(me){var t=lt;if(t){var n=t;if(!Ef(e,t)){if(Ql(e))throw Error(D(418));t=kn(n.nextSibling);var r=ut;t&&Ef(e,t)?kg(r,n):(e.flags=e.flags&-4097|2,me=!1,ut=e)}}else{if(Ql(e))throw Error(D(418));e.flags=e.flags&-4097|2,me=!1,ut=e}}}function Tf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ut=e}function Ei(e){if(e!==ut)return!1;if(!me)return Tf(e),me=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ql(e.type,e.memoizedProps)),t&&(t=lt)){if(Ql(e))throw Sg(),Error(D(418));for(;t;)kg(e,t),t=kn(t.nextSibling)}if(Tf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(D(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){lt=kn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}lt=null}}else lt=ut?kn(e.stateNode.nextSibling):null;return!0}function Sg(){for(var e=lt;e;)e=kn(e.nextSibling)}function Fr(){lt=ut=null,me=!1}function Sc(e){Nt===null?Nt=[e]:Nt.push(e)}var K1=sn.ReactCurrentBatchConfig;function ls(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(D(309));var r=n.stateNode}if(!r)throw Error(D(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=s.refs;o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(D(284));if(!n._owner)throw Error(D(290,e))}return e}function Ti(e,t){throw e=Object.prototype.toString.call(t),Error(D(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Nf(e){var t=e._init;return t(e._payload)}function jg(e){function t(g,x){if(e){var y=g.deletions;y===null?(g.deletions=[x],g.flags|=16):y.push(x)}}function n(g,x){if(!e)return null;for(;x!==null;)t(g,x),x=x.sibling;return null}function r(g,x){for(g=new Map;x!==null;)x.key!==null?g.set(x.key,x):g.set(x.index,x),x=x.sibling;return g}function s(g,x){return g=Cn(g,x),g.index=0,g.sibling=null,g}function i(g,x,y){return g.index=y,e?(y=g.alternate,y!==null?(y=y.index,y<x?(g.flags|=2,x):y):(g.flags|=2,x)):(g.flags|=1048576,x)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,x,y,k){return x===null||x.tag!==6?(x=qa(y,g.mode,k),x.return=g,x):(x=s(x,y),x.return=g,x)}function u(g,x,y,k){var S=y.type;return S===pr?d(g,x,y.props.children,k,y.key):x!==null&&(x.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===un&&Nf(S)===x.type)?(k=s(x,y.props),k.ref=ls(g,x,y),k.return=g,k):(k=Ji(y.type,y.key,y.props,null,g.mode,k),k.ref=ls(g,x,y),k.return=g,k)}function c(g,x,y,k){return x===null||x.tag!==4||x.stateNode.containerInfo!==y.containerInfo||x.stateNode.implementation!==y.implementation?(x=Ya(y,g.mode,k),x.return=g,x):(x=s(x,y.children||[]),x.return=g,x)}function d(g,x,y,k,S){return x===null||x.tag!==7?(x=Yn(y,g.mode,k,S),x.return=g,x):(x=s(x,y),x.return=g,x)}function f(g,x,y){if(typeof x=="string"&&x!==""||typeof x=="number")return x=qa(""+x,g.mode,y),x.return=g,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case xi:return y=Ji(x.type,x.key,x.props,null,g.mode,y),y.ref=ls(g,null,x),y.return=g,y;case mr:return x=Ya(x,g.mode,y),x.return=g,x;case un:var k=x._init;return f(g,k(x._payload),y)}if(ps(x)||rs(x))return x=Yn(x,g.mode,y,null),x.return=g,x;Ti(g,x)}return null}function h(g,x,y,k){var S=x!==null?x.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return S!==null?null:a(g,x,""+y,k);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case xi:return y.key===S?u(g,x,y,k):null;case mr:return y.key===S?c(g,x,y,k):null;case un:return S=y._init,h(g,x,S(y._payload),k)}if(ps(y)||rs(y))return S!==null?null:d(g,x,y,k,null);Ti(g,y)}return null}function p(g,x,y,k,S){if(typeof k=="string"&&k!==""||typeof k=="number")return g=g.get(y)||null,a(x,g,""+k,S);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case xi:return g=g.get(k.key===null?y:k.key)||null,u(x,g,k,S);case mr:return g=g.get(k.key===null?y:k.key)||null,c(x,g,k,S);case un:var E=k._init;return p(g,x,y,E(k._payload),S)}if(ps(k)||rs(k))return g=g.get(y)||null,d(x,g,k,S,null);Ti(x,k)}return null}function v(g,x,y,k){for(var S=null,E=null,j=x,P=x=0,M=null;j!==null&&P<y.length;P++){j.index>P?(M=j,j=null):M=j.sibling;var T=h(g,j,y[P],k);if(T===null){j===null&&(j=M);break}e&&j&&T.alternate===null&&t(g,j),x=i(T,x,P),E===null?S=T:E.sibling=T,E=T,j=M}if(P===y.length)return n(g,j),me&&zn(g,P),S;if(j===null){for(;P<y.length;P++)j=f(g,y[P],k),j!==null&&(x=i(j,x,P),E===null?S=j:E.sibling=j,E=j);return me&&zn(g,P),S}for(j=r(g,j);P<y.length;P++)M=p(j,g,P,y[P],k),M!==null&&(e&&M.alternate!==null&&j.delete(M.key===null?P:M.key),x=i(M,x,P),E===null?S=M:E.sibling=M,E=M);return e&&j.forEach(function(B){return t(g,B)}),me&&zn(g,P),S}function w(g,x,y,k){var S=rs(y);if(typeof S!="function")throw Error(D(150));if(y=S.call(y),y==null)throw Error(D(151));for(var E=S=null,j=x,P=x=0,M=null,T=y.next();j!==null&&!T.done;P++,T=y.next()){j.index>P?(M=j,j=null):M=j.sibling;var B=h(g,j,T.value,k);if(B===null){j===null&&(j=M);break}e&&j&&B.alternate===null&&t(g,j),x=i(B,x,P),E===null?S=B:E.sibling=B,E=B,j=M}if(T.done)return n(g,j),me&&zn(g,P),S;if(j===null){for(;!T.done;P++,T=y.next())T=f(g,T.value,k),T!==null&&(x=i(T,x,P),E===null?S=T:E.sibling=T,E=T);return me&&zn(g,P),S}for(j=r(g,j);!T.done;P++,T=y.next())T=p(j,g,P,T.value,k),T!==null&&(e&&T.alternate!==null&&j.delete(T.key===null?P:T.key),x=i(T,x,P),E===null?S=T:E.sibling=T,E=T);return e&&j.forEach(function(H){return t(g,H)}),me&&zn(g,P),S}function b(g,x,y,k){if(typeof y=="object"&&y!==null&&y.type===pr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case xi:e:{for(var S=y.key,E=x;E!==null;){if(E.key===S){if(S=y.type,S===pr){if(E.tag===7){n(g,E.sibling),x=s(E,y.props.children),x.return=g,g=x;break e}}else if(E.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===un&&Nf(S)===E.type){n(g,E.sibling),x=s(E,y.props),x.ref=ls(g,E,y),x.return=g,g=x;break e}n(g,E);break}else t(g,E);E=E.sibling}y.type===pr?(x=Yn(y.props.children,g.mode,k,y.key),x.return=g,g=x):(k=Ji(y.type,y.key,y.props,null,g.mode,k),k.ref=ls(g,x,y),k.return=g,g=k)}return o(g);case mr:e:{for(E=y.key;x!==null;){if(x.key===E)if(x.tag===4&&x.stateNode.containerInfo===y.containerInfo&&x.stateNode.implementation===y.implementation){n(g,x.sibling),x=s(x,y.children||[]),x.return=g,g=x;break e}else{n(g,x);break}else t(g,x);x=x.sibling}x=Ya(y,g.mode,k),x.return=g,g=x}return o(g);case un:return E=y._init,b(g,x,E(y._payload),k)}if(ps(y))return v(g,x,y,k);if(rs(y))return w(g,x,y,k);Ti(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,x!==null&&x.tag===6?(n(g,x.sibling),x=s(x,y),x.return=g,g=x):(n(g,x),x=qa(y,g.mode,k),x.return=g,g=x),o(g)):n(g,x)}return b}var Or=jg(!0),Pg=jg(!1),jo=Dn(null),Po=null,Sr=null,jc=null;function Pc(){jc=Sr=Po=null}function Cc(e){var t=jo.current;he(jo),e._currentValue=t}function eu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Dr(e,t){Po=e,jc=Sr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(tt=!0),e.firstContext=null)}function wt(e){var t=e._currentValue;if(jc!==e)if(e={context:e,memoizedValue:t,next:null},Sr===null){if(Po===null)throw Error(D(308));Sr=e,Po.dependencies={lanes:0,firstContext:e}}else Sr=Sr.next=e;return t}var Un=null;function Ec(e){Un===null?Un=[e]:Un.push(e)}function Cg(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,Ec(t)):(n.next=s.next,s.next=n),t.interleaved=n,tn(e,r)}function tn(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 cn=!1;function Tc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Eg(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 Qt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Sn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ne&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,tn(e,n)}return s=r.interleaved,s===null?(t.next=t,Ec(r)):(t.next=s.next,s.next=t),r.interleaved=t,tn(e,n)}function Ki(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,hc(e,n)}}function _f(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Co(e,t,n,r){var s=e.updateQueue;cn=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var u=a,c=u.next;u.next=null,o===null?i=c:o.next=c,o=u;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=u))}if(i!==null){var f=s.baseState;o=0,d=c=u=null,a=i;do{var h=a.lane,p=a.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,w=a;switch(h=t,p=n,w.tag){case 1:if(v=w.payload,typeof v=="function"){f=v.call(p,f,h);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=w.payload,h=typeof v=="function"?v.call(p,f,h):v,h==null)break e;f=ye({},f,h);break e;case 2:cn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else p={eventTime:p,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=p,u=f):d=d.next=p,o|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(!0);if(d===null&&(u=f),s.baseState=u,s.firstBaseUpdate=c,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);tr|=o,e.lanes=o,e.memoizedState=f}}function Mf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(D(191,s));s.call(r)}}}var li={},Ht=Dn(li),Gs=Dn(li),Ks=Dn(li);function Wn(e){if(e===li)throw Error(D(174));return e}function Nc(e,t){switch(ce(Ks,t),ce(Gs,e),ce(Ht,li),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Dl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Dl(t,e)}he(Ht),ce(Ht,t)}function zr(){he(Ht),he(Gs),he(Ks)}function Tg(e){Wn(Ks.current);var t=Wn(Ht.current),n=Dl(t,e.type);t!==n&&(ce(Gs,e),ce(Ht,n))}function _c(e){Gs.current===e&&(he(Ht),he(Gs))}var pe=Dn(0);function Eo(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 $a=[];function Mc(){for(var e=0;e<$a.length;e++)$a[e]._workInProgressVersionPrimary=null;$a.length=0}var qi=sn.ReactCurrentDispatcher,Ha=sn.ReactCurrentBatchConfig,er=0,ge=null,Ne=null,Ae=null,To=!1,Ps=!1,qs=0,q1=0;function ze(){throw Error(D(321))}function Lc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Dt(e[n],t[n]))return!1;return!0}function Ac(e,t,n,r,s,i){if(er=i,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,qi.current=e===null||e.memoizedState===null?Q1:J1,e=n(r,s),Ps){i=0;do{if(Ps=!1,qs=0,25<=i)throw Error(D(301));i+=1,Ae=Ne=null,t.updateQueue=null,qi.current=ew,e=n(r,s)}while(Ps)}if(qi.current=No,t=Ne!==null&&Ne.next!==null,er=0,Ae=Ne=ge=null,To=!1,t)throw Error(D(300));return e}function Dc(){var e=qs!==0;return qs=0,e}function Ft(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ae===null?ge.memoizedState=Ae=e:Ae=Ae.next=e,Ae}function bt(){if(Ne===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=Ae===null?ge.memoizedState:Ae.next;if(t!==null)Ae=t,Ne=e;else{if(e===null)throw Error(D(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},Ae===null?ge.memoizedState=Ae=e:Ae=Ae.next=e}return Ae}function Ys(e,t){return typeof t=="function"?t(e):t}function Ua(e){var t=bt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=Ne,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var a=o=null,u=null,c=i;do{var d=c.lane;if((er&d)===d)u!==null&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(a=u=f,o=r):u=u.next=f,ge.lanes|=d,tr|=d}c=c.next}while(c!==null&&c!==i);u===null?o=r:u.next=a,Dt(r,t.memoizedState)||(tt=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,ge.lanes|=i,tr|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Wa(e){var t=bt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);Dt(i,t.memoizedState)||(tt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Ng(){}function _g(e,t){var n=ge,r=bt(),s=t(),i=!Dt(r.memoizedState,s);if(i&&(r.memoizedState=s,tt=!0),r=r.queue,Rc(Ag.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Ae!==null&&Ae.memoizedState.tag&1){if(n.flags|=2048,Xs(9,Lg.bind(null,n,r,s,t),void 0,null),De===null)throw Error(D(349));er&30||Mg(n,t,s)}return s}function Mg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ge.updateQueue,t===null?(t={lastEffect:null,stores:null},ge.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Lg(e,t,n,r){t.value=n,t.getSnapshot=r,Dg(t)&&Rg(e)}function Ag(e,t,n){return n(function(){Dg(t)&&Rg(e)})}function Dg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Dt(e,n)}catch{return!0}}function Rg(e){var t=tn(e,1);t!==null&&Lt(t,e,1,-1)}function Lf(e){var t=Ft();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ys,lastRenderedState:e},t.queue=e,e=e.dispatch=Z1.bind(null,ge,e),[t.memoizedState,e]}function Xs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ge.updateQueue,t===null?(t={lastEffect:null,stores:null},ge.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Vg(){return bt().memoizedState}function Yi(e,t,n,r){var s=Ft();ge.flags|=e,s.memoizedState=Xs(1|t,n,void 0,r===void 0?null:r)}function na(e,t,n,r){var s=bt();r=r===void 0?null:r;var i=void 0;if(Ne!==null){var o=Ne.memoizedState;if(i=o.destroy,r!==null&&Lc(r,o.deps)){s.memoizedState=Xs(t,n,i,r);return}}ge.flags|=e,s.memoizedState=Xs(1|t,n,i,r)}function Af(e,t){return Yi(8390656,8,e,t)}function Rc(e,t){return na(2048,8,e,t)}function Ig(e,t){return na(4,2,e,t)}function Fg(e,t){return na(4,4,e,t)}function Og(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 zg(e,t,n){return n=n!=null?n.concat([e]):null,na(4,4,Og.bind(null,t,e),n)}function Vc(){}function Bg(e,t){var n=bt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Lc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $g(e,t){var n=bt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Lc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Hg(e,t,n){return er&21?(Dt(n,t)||(n=qp(),ge.lanes|=n,tr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,tt=!0),e.memoizedState=n)}function Y1(e,t){var n=re;re=n!==0&&4>n?n:4,e(!0);var r=Ha.transition;Ha.transition={};try{e(!1),t()}finally{re=n,Ha.transition=r}}function Ug(){return bt().memoizedState}function X1(e,t,n){var r=Pn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Wg(e))Gg(t,n);else if(n=Cg(e,t,n,r),n!==null){var s=Xe();Lt(n,e,r,s),Kg(n,t,r)}}function Z1(e,t,n){var r=Pn(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Wg(e))Gg(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(s.hasEagerState=!0,s.eagerState=a,Dt(a,o)){var u=t.interleaved;u===null?(s.next=s,Ec(t)):(s.next=u.next,u.next=s),t.interleaved=s;return}}catch{}finally{}n=Cg(e,t,s,r),n!==null&&(s=Xe(),Lt(n,e,r,s),Kg(n,t,r))}}function Wg(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function Gg(e,t){Ps=To=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Kg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,hc(e,n)}}var No={readContext:wt,useCallback:ze,useContext:ze,useEffect:ze,useImperativeHandle:ze,useInsertionEffect:ze,useLayoutEffect:ze,useMemo:ze,useReducer:ze,useRef:ze,useState:ze,useDebugValue:ze,useDeferredValue:ze,useTransition:ze,useMutableSource:ze,useSyncExternalStore:ze,useId:ze,unstable_isNewReconciler:!1},Q1={readContext:wt,useCallback:function(e,t){return Ft().memoizedState=[e,t===void 0?null:t],e},useContext:wt,useEffect:Af,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yi(4194308,4,Og.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yi(4,2,e,t)},useMemo:function(e,t){var n=Ft();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ft();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=X1.bind(null,ge,e),[r.memoizedState,e]},useRef:function(e){var t=Ft();return e={current:e},t.memoizedState=e},useState:Lf,useDebugValue:Vc,useDeferredValue:function(e){return Ft().memoizedState=e},useTransition:function(){var e=Lf(!1),t=e[0];return e=Y1.bind(null,e[1]),Ft().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ge,s=Ft();if(me){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),De===null)throw Error(D(349));er&30||Mg(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,Af(Ag.bind(null,r,i,e),[e]),r.flags|=2048,Xs(9,Lg.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ft(),t=De.identifierPrefix;if(me){var n=Xt,r=Yt;n=(r&~(1<<32-Mt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=qs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=q1++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},J1={readContext:wt,useCallback:Bg,useContext:wt,useEffect:Rc,useImperativeHandle:zg,useInsertionEffect:Ig,useLayoutEffect:Fg,useMemo:$g,useReducer:Ua,useRef:Vg,useState:function(){return Ua(Ys)},useDebugValue:Vc,useDeferredValue:function(e){var t=bt();return Hg(t,Ne.memoizedState,e)},useTransition:function(){var e=Ua(Ys)[0],t=bt().memoizedState;return[e,t]},useMutableSource:Ng,useSyncExternalStore:_g,useId:Ug,unstable_isNewReconciler:!1},ew={readContext:wt,useCallback:Bg,useContext:wt,useEffect:Rc,useImperativeHandle:zg,useInsertionEffect:Ig,useLayoutEffect:Fg,useMemo:$g,useReducer:Wa,useRef:Vg,useState:function(){return Wa(Ys)},useDebugValue:Vc,useDeferredValue:function(e){var t=bt();return Ne===null?t.memoizedState=e:Hg(t,Ne.memoizedState,e)},useTransition:function(){var e=Wa(Ys)[0],t=bt().memoizedState;return[e,t]},useMutableSource:Ng,useSyncExternalStore:_g,useId:Ug,unstable_isNewReconciler:!1};function Et(e,t){if(e&&e.defaultProps){t=ye({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function tu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ye({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ra={isMounted:function(e){return(e=e._reactInternals)?ar(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Xe(),s=Pn(e),i=Qt(r,s);i.payload=t,n!=null&&(i.callback=n),t=Sn(e,i,s),t!==null&&(Lt(t,e,s,r),Ki(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Xe(),s=Pn(e),i=Qt(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Sn(e,i,s),t!==null&&(Lt(t,e,s,r),Ki(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xe(),r=Pn(e),s=Qt(n,r);s.tag=2,t!=null&&(s.callback=t),t=Sn(e,s,r),t!==null&&(Lt(t,e,r,n),Ki(t,e,r))}};function Df(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!$s(n,r)||!$s(s,i):!0}function qg(e,t,n){var r=!1,s=Mn,i=t.contextType;return typeof i=="object"&&i!==null?i=wt(i):(s=rt(t)?Qn:Ge.current,r=t.contextTypes,i=(r=r!=null)?Ir(e,s):Mn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ra,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function Rf(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ra.enqueueReplaceState(t,t.state,null)}function nu(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},Tc(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=wt(i):(i=rt(t)?Qn:Ge.current,s.context=Ir(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(tu(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&ra.enqueueReplaceState(s,s.state,null),Co(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Br(e,t){try{var n="",r=t;do n+=Tv(r),r=r.return;while(r);var s=n}catch(i){s=`
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:s,digest:null}}function Ga(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ru(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var tw=typeof WeakMap=="function"?WeakMap:Map;function Yg(e,t,n){n=Qt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Mo||(Mo=!0,hu=r),ru(e,t)},n}function Xg(e,t,n){n=Qt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){ru(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){ru(e,t),typeof r!="function"&&(jn===null?jn=new Set([this]):jn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Vf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new tw;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=pw.bind(null,e,t,n),t.then(e,e))}function If(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 Ff(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,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=Qt(-1,1),t.tag=2,Sn(n,t,1))),n.lanes|=1),e)}var nw=sn.ReactCurrentOwner,tt=!1;function Ke(e,t,n,r){t.child=e===null?Pg(t,null,n,r):Or(t,e.child,n,r)}function Of(e,t,n,r,s){n=n.render;var i=t.ref;return Dr(t,s),r=Ac(e,t,n,r,i,s),n=Dc(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,nn(e,t,s)):(me&&n&&bc(t),t.flags|=1,Ke(e,t,r,s),t.child)}function zf(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!Uc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Zg(e,t,i,r,s)):(e=Ji(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:$s,n(o,r)&&e.ref===t.ref)return nn(e,t,s)}return t.flags|=1,e=Cn(i,r),e.ref=t.ref,e.return=t,t.child=e}function Zg(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if($s(i,r)&&e.ref===t.ref)if(tt=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(tt=!0);else return t.lanes=e.lanes,nn(e,t,s)}return su(e,t,n,r,s)}function Qg(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ce(Pr,at),at|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ce(Pr,at),at|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ce(Pr,at),at|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ce(Pr,at),at|=r;return Ke(e,t,s,n),t.child}function Jg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function su(e,t,n,r,s){var i=rt(n)?Qn:Ge.current;return i=Ir(t,i),Dr(t,s),n=Ac(e,t,n,r,i,s),r=Dc(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,nn(e,t,s)):(me&&r&&bc(t),t.flags|=1,Ke(e,t,n,s),t.child)}function Bf(e,t,n,r,s){if(rt(n)){var i=!0;bo(t)}else i=!1;if(Dr(t,s),t.stateNode===null)Xi(e,t),qg(t,n,r),nu(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var u=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=wt(c):(c=rt(n)?Qn:Ge.current,c=Ir(t,c));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||u!==c)&&Rf(t,o,r,c),cn=!1;var h=t.memoizedState;o.state=h,Co(t,r,o,s),u=t.memoizedState,a!==r||h!==u||nt.current||cn?(typeof d=="function"&&(tu(t,n,d,r),u=t.memoizedState),(a=cn||Df(t,n,a,r,h,u,c))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=c,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Eg(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Et(t.type,a),o.props=c,f=t.pendingProps,h=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=wt(u):(u=rt(n)?Qn:Ge.current,u=Ir(t,u));var p=n.getDerivedStateFromProps;(d=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||h!==u)&&Rf(t,o,r,u),cn=!1,h=t.memoizedState,o.state=h,Co(t,r,o,s);var v=t.memoizedState;a!==f||h!==v||nt.current||cn?(typeof p=="function"&&(tu(t,n,p,r),v=t.memoizedState),(c=cn||Df(t,n,c,r,h,v,u)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,v,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,v,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),o.props=r,o.state=v,o.context=u,r=c):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return iu(e,t,n,r,i,s)}function iu(e,t,n,r,s,i){Jg(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&Cf(t,n,!1),nn(e,t,i);r=t.stateNode,nw.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Or(t,e.child,null,i),t.child=Or(t,null,a,i)):Ke(e,t,a,i),t.memoizedState=r.state,s&&Cf(t,n,!0),t.child}function e0(e){var t=e.stateNode;t.pendingContext?Pf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Pf(e,t.context,!1),Nc(e,t.containerInfo)}function $f(e,t,n,r,s){return Fr(),Sc(s),t.flags|=256,Ke(e,t,n,r),t.child}var ou={dehydrated:null,treeContext:null,retryLane:0};function au(e){return{baseLanes:e,cachePool:null,transitions:null}}function t0(e,t,n){var r=t.pendingProps,s=pe.current,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),ce(pe,s&1),e===null)return Jl(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):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=oa(o,r,0,null),e=Yn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=au(n),t.memoizedState=ou,e):Ic(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return rw(e,t,o,r,a,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,a=s.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Cn(s,u),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=Cn(a,i):(i=Yn(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?au(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=ou,r}return i=e.child,e=i.sibling,r=Cn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ic(e,t){return t=oa({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ni(e,t,n,r){return r!==null&&Sc(r),Or(t,e.child,null,n),e=Ic(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function rw(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=Ga(Error(D(422))),Ni(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=oa({mode:"visible",children:r.children},s,0,null),i=Yn(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Or(t,e.child,null,o),t.child.memoizedState=au(o),t.memoizedState=ou,i);if(!(t.mode&1))return Ni(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(D(419)),r=Ga(i,r,void 0),Ni(e,t,o,r)}if(a=(o&e.childLanes)!==0,tt||a){if(r=De,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,tn(e,s),Lt(r,e,s,-1))}return Hc(),r=Ga(Error(D(421))),Ni(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=gw.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,lt=kn(s.nextSibling),ut=t,me=!0,Nt=null,e!==null&&(pt[gt++]=Yt,pt[gt++]=Xt,pt[gt++]=Jn,Yt=e.id,Xt=e.overflow,Jn=t),t=Ic(t,r.children),t.flags|=4096,t)}function Hf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),eu(e.return,t,n)}function Ka(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function n0(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(Ke(e,t,r.children,n),r=pe.current,r&2)r=r&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&&Hf(e,n,t);else if(e.tag===19)Hf(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}r&=1}if(ce(pe,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Eo(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Ka(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Eo(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Ka(t,!0,n,null,i);break;case"together":Ka(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Xi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function nn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),tr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(D(153));if(t.child!==null){for(e=t.child,n=Cn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Cn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function sw(e,t,n){switch(t.tag){case 3:e0(t),Fr();break;case 5:Tg(t);break;case 1:rt(t.type)&&bo(t);break;case 4:Nc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;ce(jo,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ce(pe,pe.current&1),t.flags|=128,null):n&t.child.childLanes?t0(e,t,n):(ce(pe,pe.current&1),e=nn(e,t,n),e!==null?e.sibling:null);ce(pe,pe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return n0(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),ce(pe,pe.current),r)break;return null;case 22:case 23:return t.lanes=0,Qg(e,t,n)}return nn(e,t,n)}var r0,lu,s0,i0;r0=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}};lu=function(){};s0=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Wn(Ht.current);var i=null;switch(n){case"input":s=_l(e,s),r=_l(e,r),i=[];break;case"select":s=ye({},s,{value:void 0}),r=ye({},r,{value:void 0}),i=[];break;case"textarea":s=Al(e,s),r=Al(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=vo)}Rl(n,r);var o;n=null;for(c in s)if(!r.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var a=s[c];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Rs.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var u=r[c];if(a=s!=null?s[c]:void 0,r.hasOwnProperty(c)&&u!==a&&(u!=null||a!=null))if(c==="style")if(a){for(o in a)!a.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&a[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(i||(i=[]),i.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(i=i||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Rs.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&fe("scroll",e),i||a===u||(i=[])):(i=i||[]).push(c,u))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};i0=function(e,t,n,r){n!==r&&(t.flags|=4)};function us(e,t){if(!me)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 r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Be(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function iw(e,t,n){var r=t.pendingProps;switch(kc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(t),null;case 1:return rt(t.type)&&wo(),Be(t),null;case 3:return r=t.stateNode,zr(),he(nt),he(Ge),Mc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ei(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Nt!==null&&(gu(Nt),Nt=null))),lu(e,t),Be(t),null;case 5:_c(t);var s=Wn(Ks.current);if(n=t.type,e!==null&&t.stateNode!=null)s0(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(D(166));return Be(t),null}if(e=Wn(Ht.current),Ei(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Bt]=t,r[Ws]=i,e=(t.mode&1)!==0,n){case"dialog":fe("cancel",r),fe("close",r);break;case"iframe":case"object":case"embed":fe("load",r);break;case"video":case"audio":for(s=0;s<xs.length;s++)fe(xs[s],r);break;case"source":fe("error",r);break;case"img":case"image":case"link":fe("error",r),fe("load",r);break;case"details":fe("toggle",r);break;case"input":Zd(r,i),fe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},fe("invalid",r);break;case"textarea":Jd(r,i),fe("invalid",r)}Rl(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Ci(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Ci(r.textContent,a,e),s=["children",""+a]):Rs.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&fe("scroll",r)}switch(n){case"input":yi(r),Qd(r,i,!0);break;case"textarea":yi(r),ef(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=vo)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ap(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Bt]=t,e[Ws]=r,r0(e,t,!1,!1),t.stateNode=e;e:{switch(o=Vl(n,r),n){case"dialog":fe("cancel",e),fe("close",e),s=r;break;case"iframe":case"object":case"embed":fe("load",e),s=r;break;case"video":case"audio":for(s=0;s<xs.length;s++)fe(xs[s],e);s=r;break;case"source":fe("error",e),s=r;break;case"img":case"image":case"link":fe("error",e),fe("load",e),s=r;break;case"details":fe("toggle",e),s=r;break;case"input":Zd(e,r),s=_l(e,r),fe("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=ye({},r,{value:void 0}),fe("invalid",e);break;case"textarea":Jd(e,r),s=Al(e,r),fe("invalid",e);break;default:s=r}Rl(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var u=a[i];i==="style"?Vp(e,u):i==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Dp(e,u)):i==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Vs(e,u):typeof u=="number"&&Vs(e,""+u):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Rs.hasOwnProperty(i)?u!=null&&i==="onScroll"&&fe("scroll",e):u!=null&&ac(e,i,u,o))}switch(n){case"input":yi(e),Qd(e,r,!1);break;case"textarea":yi(e),ef(e);break;case"option":r.value!=null&&e.setAttribute("value",""+_n(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?_r(e,!!r.multiple,i,!1):r.defaultValue!=null&&_r(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=vo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Be(t),null;case 6:if(e&&t.stateNode!=null)i0(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(D(166));if(n=Wn(Ks.current),Wn(Ht.current),Ei(t)){if(r=t.stateNode,n=t.memoizedProps,r[Bt]=t,(i=r.nodeValue!==n)&&(e=ut,e!==null))switch(e.tag){case 3:Ci(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ci(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Bt]=t,t.stateNode=r}return Be(t),null;case 13:if(he(pe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(me&&lt!==null&&t.mode&1&&!(t.flags&128))Sg(),Fr(),t.flags|=98560,i=!1;else if(i=Ei(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(D(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(D(317));i[Bt]=t}else Fr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Be(t),i=!1}else Nt!==null&&(gu(Nt),Nt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||pe.current&1?_e===0&&(_e=3):Hc())),t.updateQueue!==null&&(t.flags|=4),Be(t),null);case 4:return zr(),lu(e,t),e===null&&Hs(t.stateNode.containerInfo),Be(t),null;case 10:return Cc(t.type._context),Be(t),null;case 17:return rt(t.type)&&wo(),Be(t),null;case 19:if(he(pe),i=t.memoizedState,i===null)return Be(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)us(i,!1);else{if(_e!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Eo(e),o!==null){for(t.flags|=128,us(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ce(pe,pe.current&1|2),t.child}e=e.sibling}i.tail!==null&&ke()>$r&&(t.flags|=128,r=!0,us(i,!1),t.lanes=4194304)}else{if(!r)if(e=Eo(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),us(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!me)return Be(t),null}else 2*ke()-i.renderingStartTime>$r&&n!==1073741824&&(t.flags|=128,r=!0,us(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ke(),t.sibling=null,n=pe.current,ce(pe,r?n&1|2:n&1),t):(Be(t),null);case 22:case 23:return $c(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?at&1073741824&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function ow(e,t){switch(kc(t),t.tag){case 1:return rt(t.type)&&wo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zr(),he(nt),he(Ge),Mc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return _c(t),null;case 13:if(he(pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));Fr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return he(pe),null;case 4:return zr(),null;case 10:return Cc(t.type._context),null;case 22:case 23:return $c(),null;case 24:return null;default:return null}}var _i=!1,We=!1,aw=typeof WeakSet=="function"?WeakSet:Set,I=null;function jr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){be(e,t,r)}else n.current=null}function uu(e,t,n){try{n()}catch(r){be(e,t,r)}}var Uf=!1;function lw(e,t){if(Gl=go,e=cg(),wc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,u=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||s!==0&&f.nodeType!==3||(a=o+s),f!==i||r!==0&&f.nodeType!==3||(u=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(p=f.firstChild)!==null;)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++c===s&&(a=o),h===i&&++d===r&&(u=o),(p=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=p}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Kl={focusedElem:e,selectionRange:n},go=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var w=v.memoizedProps,b=v.memoizedState,g=t.stateNode,x=g.getSnapshotBeforeUpdate(t.elementType===t.type?w:Et(t.type,w),b);g.__reactInternalSnapshotBeforeUpdate=x}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(D(163))}}catch(k){be(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return v=Uf,Uf=!1,v}function Cs(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&uu(t,n,i)}s=s.next}while(s!==r)}}function sa(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 r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function cu(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 o0(e){var t=e.alternate;t!==null&&(e.alternate=null,o0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Bt],delete t[Ws],delete t[Xl],delete t[U1],delete t[W1])),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 Wf(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 du(e,t,n){var r=e.tag;if(r===5||r===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=vo));else if(r!==4&&(e=e.child,e!==null))for(du(e,t,n),e=e.sibling;e!==null;)du(e,t,n),e=e.sibling}function fu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(fu(e,t,n),e=e.sibling;e!==null;)fu(e,t,n),e=e.sibling}var Ie=null,Tt=!1;function an(e,t,n){for(n=n.child;n!==null;)l0(e,t,n),n=n.sibling}function l0(e,t,n){if($t&&typeof $t.onCommitFiberUnmount=="function")try{$t.onCommitFiberUnmount(Xo,n)}catch{}switch(n.tag){case 5:We||jr(n,t);case 6:var r=Ie,s=Tt;Ie=null,an(e,t,n),Ie=r,Tt=s,Ie!==null&&(Tt?(e=Ie,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ie.removeChild(n.stateNode));break;case 18:Ie!==null&&(Tt?(e=Ie,n=n.stateNode,e.nodeType===8?za(e.parentNode,n):e.nodeType===1&&za(e,n),zs(e)):za(Ie,n.stateNode));break;case 4:r=Ie,s=Tt,Ie=n.stateNode.containerInfo,Tt=!0,an(e,t,n),Ie=r,Tt=s;break;case 0:case 11:case 14:case 15:if(!We&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&uu(n,t,o),s=s.next}while(s!==r)}an(e,t,n);break;case 1:if(!We&&(jr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){be(n,t,a)}an(e,t,n);break;case 21:an(e,t,n);break;case 22:n.mode&1?(We=(r=We)||n.memoizedState!==null,an(e,t,n),We=r):an(e,t,n);break;default:an(e,t,n)}}function Gf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new aw),t.forEach(function(r){var s=xw.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function jt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Ie=a.stateNode,Tt=!1;break e;case 3:Ie=a.stateNode.containerInfo,Tt=!0;break e;case 4:Ie=a.stateNode.containerInfo,Tt=!0;break e}a=a.return}if(Ie===null)throw Error(D(160));l0(i,o,s),Ie=null,Tt=!1;var u=s.alternate;u!==null&&(u.return=null),s.return=null}catch(c){be(s,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)u0(t,e),t=t.sibling}function u0(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(jt(t,e),It(e),r&4){try{Cs(3,e,e.return),sa(3,e)}catch(w){be(e,e.return,w)}try{Cs(5,e,e.return)}catch(w){be(e,e.return,w)}}break;case 1:jt(t,e),It(e),r&512&&n!==null&&jr(n,n.return);break;case 5:if(jt(t,e),It(e),r&512&&n!==null&&jr(n,n.return),e.flags&32){var s=e.stateNode;try{Vs(s,"")}catch(w){be(e,e.return,w)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&Mp(s,i),Vl(a,o);var c=Vl(a,i);for(o=0;o<u.length;o+=2){var d=u[o],f=u[o+1];d==="style"?Vp(s,f):d==="dangerouslySetInnerHTML"?Dp(s,f):d==="children"?Vs(s,f):ac(s,d,f,c)}switch(a){case"input":Ml(s,i);break;case"textarea":Lp(s,i);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?_r(s,!!i.multiple,p,!1):h!==!!i.multiple&&(i.defaultValue!=null?_r(s,!!i.multiple,i.defaultValue,!0):_r(s,!!i.multiple,i.multiple?[]:"",!1))}s[Ws]=i}catch(w){be(e,e.return,w)}}break;case 6:if(jt(t,e),It(e),r&4){if(e.stateNode===null)throw Error(D(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(w){be(e,e.return,w)}}break;case 3:if(jt(t,e),It(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{zs(t.containerInfo)}catch(w){be(e,e.return,w)}break;case 4:jt(t,e),It(e);break;case 13:jt(t,e),It(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(zc=ke())),r&4&&Gf(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(We=(c=We)||d,jt(t,e),We=c):jt(t,e),It(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(I=e,d=e.child;d!==null;){for(f=I=d;I!==null;){switch(h=I,p=h.child,h.tag){case 0:case 11:case 14:case 15:Cs(4,h,h.return);break;case 1:jr(h,h.return);var v=h.stateNode;if(typeof v.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(w){be(r,n,w)}}break;case 5:jr(h,h.return);break;case 22:if(h.memoizedState!==null){qf(f);continue}}p!==null?(p.return=h,I=p):qf(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{s=f.stateNode,c?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=f.stateNode,u=f.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=Rp("display",o))}catch(w){be(e,e.return,w)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(w){be(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:jt(t,e),It(e),r&4&&Gf(e);break;case 21:break;default:jt(t,e),It(e)}}function It(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(a0(n)){var r=n;break e}n=n.return}throw Error(D(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Vs(s,""),r.flags&=-33);var i=Wf(e);fu(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Wf(e);du(e,a,o);break;default:throw Error(D(161))}}catch(u){be(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function uw(e,t,n){I=e,c0(e)}function c0(e,t,n){for(var r=(e.mode&1)!==0;I!==null;){var s=I,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||_i;if(!o){var a=s.alternate,u=a!==null&&a.memoizedState!==null||We;a=_i;var c=We;if(_i=o,(We=u)&&!c)for(I=s;I!==null;)o=I,u=o.child,o.tag===22&&o.memoizedState!==null?Yf(s):u!==null?(u.return=o,I=u):Yf(s);for(;i!==null;)I=i,c0(i),i=i.sibling;I=s,_i=a,We=c}Kf(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,I=i):Kf(e)}}function Kf(e){for(;I!==null;){var t=I;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:We||sa(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!We)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:Et(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Mf(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Mf(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&zs(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(D(163))}We||t.flags&512&&cu(t)}catch(h){be(t,t.return,h)}}if(t===e){I=null;break}if(n=t.sibling,n!==null){n.return=t.return,I=n;break}I=t.return}}function qf(e){for(;I!==null;){var t=I;if(t===e){I=null;break}var n=t.sibling;if(n!==null){n.return=t.return,I=n;break}I=t.return}}function Yf(e){for(;I!==null;){var t=I;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{sa(4,t)}catch(u){be(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(u){be(t,s,u)}}var i=t.return;try{cu(t)}catch(u){be(t,i,u)}break;case 5:var o=t.return;try{cu(t)}catch(u){be(t,o,u)}}}catch(u){be(t,t.return,u)}if(t===e){I=null;break}var a=t.sibling;if(a!==null){a.return=t.return,I=a;break}I=t.return}}var cw=Math.ceil,_o=sn.ReactCurrentDispatcher,Fc=sn.ReactCurrentOwner,vt=sn.ReactCurrentBatchConfig,ne=0,De=null,Ee=null,Fe=0,at=0,Pr=Dn(0),_e=0,Zs=null,tr=0,ia=0,Oc=0,Es=null,et=null,zc=0,$r=1/0,Kt=null,Mo=!1,hu=null,jn=null,Mi=!1,pn=null,Lo=0,Ts=0,mu=null,Zi=-1,Qi=0;function Xe(){return ne&6?ke():Zi!==-1?Zi:Zi=ke()}function Pn(e){return e.mode&1?ne&2&&Fe!==0?Fe&-Fe:K1.transition!==null?(Qi===0&&(Qi=qp()),Qi):(e=re,e!==0||(e=window.event,e=e===void 0?16:tg(e.type)),e):1}function Lt(e,t,n,r){if(50<Ts)throw Ts=0,mu=null,Error(D(185));ii(e,n,r),(!(ne&2)||e!==De)&&(e===De&&(!(ne&2)&&(ia|=n),_e===4&&hn(e,Fe)),st(e,r),n===1&&ne===0&&!(t.mode&1)&&($r=ke()+500,ta&&Rn()))}function st(e,t){var n=e.callbackNode;Kv(e,t);var r=po(e,e===De?Fe:0);if(r===0)n!==null&&rf(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&rf(n),t===1)e.tag===0?G1(Xf.bind(null,e)):wg(Xf.bind(null,e)),$1(function(){!(ne&6)&&Rn()}),n=null;else{switch(Yp(r)){case 1:n=fc;break;case 4:n=Gp;break;case 16:n=mo;break;case 536870912:n=Kp;break;default:n=mo}n=y0(n,d0.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function d0(e,t){if(Zi=-1,Qi=0,ne&6)throw Error(D(327));var n=e.callbackNode;if(Rr()&&e.callbackNode!==n)return null;var r=po(e,e===De?Fe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ao(e,r);else{t=r;var s=ne;ne|=2;var i=h0();(De!==e||Fe!==t)&&(Kt=null,$r=ke()+500,qn(e,t));do try{hw();break}catch(a){f0(e,a)}while(!0);Pc(),_o.current=i,ne=s,Ee!==null?t=0:(De=null,Fe=0,t=_e)}if(t!==0){if(t===2&&(s=Bl(e),s!==0&&(r=s,t=pu(e,s))),t===1)throw n=Zs,qn(e,0),hn(e,r),st(e,ke()),n;if(t===6)hn(e,r);else{if(s=e.current.alternate,!(r&30)&&!dw(s)&&(t=Ao(e,r),t===2&&(i=Bl(e),i!==0&&(r=i,t=pu(e,i))),t===1))throw n=Zs,qn(e,0),hn(e,r),st(e,ke()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(D(345));case 2:Bn(e,et,Kt);break;case 3:if(hn(e,r),(r&130023424)===r&&(t=zc+500-ke(),10<t)){if(po(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){Xe(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Yl(Bn.bind(null,e,et,Kt),t);break}Bn(e,et,Kt);break;case 4:if(hn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-Mt(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*cw(r/1960))-r,10<r){e.timeoutHandle=Yl(Bn.bind(null,e,et,Kt),r);break}Bn(e,et,Kt);break;case 5:Bn(e,et,Kt);break;default:throw Error(D(329))}}}return st(e,ke()),e.callbackNode===n?d0.bind(null,e):null}function pu(e,t){var n=Es;return e.current.memoizedState.isDehydrated&&(qn(e,t).flags|=256),e=Ao(e,t),e!==2&&(t=et,et=n,t!==null&&gu(t)),e}function gu(e){et===null?et=e:et.push.apply(et,e)}function dw(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!Dt(i(),s))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 hn(e,t){for(t&=~Oc,t&=~ia,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Mt(t),r=1<<n;e[n]=-1,t&=~r}}function Xf(e){if(ne&6)throw Error(D(327));Rr();var t=po(e,0);if(!(t&1))return st(e,ke()),null;var n=Ao(e,t);if(e.tag!==0&&n===2){var r=Bl(e);r!==0&&(t=r,n=pu(e,r))}if(n===1)throw n=Zs,qn(e,0),hn(e,t),st(e,ke()),n;if(n===6)throw Error(D(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Bn(e,et,Kt),st(e,ke()),null}function Bc(e,t){var n=ne;ne|=1;try{return e(t)}finally{ne=n,ne===0&&($r=ke()+500,ta&&Rn())}}function nr(e){pn!==null&&pn.tag===0&&!(ne&6)&&Rr();var t=ne;ne|=1;var n=vt.transition,r=re;try{if(vt.transition=null,re=1,e)return e()}finally{re=r,vt.transition=n,ne=t,!(ne&6)&&Rn()}}function $c(){at=Pr.current,he(Pr)}function qn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,B1(n)),Ee!==null)for(n=Ee.return;n!==null;){var r=n;switch(kc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&wo();break;case 3:zr(),he(nt),he(Ge),Mc();break;case 5:_c(r);break;case 4:zr();break;case 13:he(pe);break;case 19:he(pe);break;case 10:Cc(r.type._context);break;case 22:case 23:$c()}n=n.return}if(De=e,Ee=e=Cn(e.current,null),Fe=at=t,_e=0,Zs=null,Oc=ia=tr=0,et=Es=null,Un!==null){for(t=0;t<Un.length;t++)if(n=Un[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}Un=null}return e}function f0(e,t){do{var n=Ee;try{if(Pc(),qi.current=No,To){for(var r=ge.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}To=!1}if(er=0,Ae=Ne=ge=null,Ps=!1,qs=0,Fc.current=null,n===null||n.return===null){_e=1,Zs=t,Ee=null;break}e:{var i=e,o=n.return,a=n,u=t;if(t=Fe,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u,d=a,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 p=If(o);if(p!==null){p.flags&=-257,Ff(p,o,a,i,t),p.mode&1&&Vf(i,c,t),t=p,u=c;var v=t.updateQueue;if(v===null){var w=new Set;w.add(u),t.updateQueue=w}else v.add(u);break e}else{if(!(t&1)){Vf(i,c,t),Hc();break e}u=Error(D(426))}}else if(me&&a.mode&1){var b=If(o);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Ff(b,o,a,i,t),Sc(Br(u,a));break e}}i=u=Br(u,a),_e!==4&&(_e=2),Es===null?Es=[i]:Es.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=Yg(i,u,t);_f(i,g);break e;case 1:a=u;var x=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof x.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(jn===null||!jn.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var k=Xg(i,a,t);_f(i,k);break e}}i=i.return}while(i!==null)}p0(n)}catch(S){t=S,Ee===n&&n!==null&&(Ee=n=n.return);continue}break}while(!0)}function h0(){var e=_o.current;return _o.current=No,e===null?No:e}function Hc(){(_e===0||_e===3||_e===2)&&(_e=4),De===null||!(tr&268435455)&&!(ia&268435455)||hn(De,Fe)}function Ao(e,t){var n=ne;ne|=2;var r=h0();(De!==e||Fe!==t)&&(Kt=null,qn(e,t));do try{fw();break}catch(s){f0(e,s)}while(!0);if(Pc(),ne=n,_o.current=r,Ee!==null)throw Error(D(261));return De=null,Fe=0,_e}function fw(){for(;Ee!==null;)m0(Ee)}function hw(){for(;Ee!==null&&!Fv();)m0(Ee)}function m0(e){var t=x0(e.alternate,e,at);e.memoizedProps=e.pendingProps,t===null?p0(e):Ee=t,Fc.current=null}function p0(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ow(n,t),n!==null){n.flags&=32767,Ee=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{_e=6,Ee=null;return}}else if(n=iw(n,t,at),n!==null){Ee=n;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);_e===0&&(_e=5)}function Bn(e,t,n){var r=re,s=vt.transition;try{vt.transition=null,re=1,mw(e,t,n,r)}finally{vt.transition=s,re=r}return null}function mw(e,t,n,r){do Rr();while(pn!==null);if(ne&6)throw Error(D(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(D(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(qv(e,i),e===De&&(Ee=De=null,Fe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Mi||(Mi=!0,y0(mo,function(){return Rr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=vt.transition,vt.transition=null;var o=re;re=1;var a=ne;ne|=4,Fc.current=null,lw(e,n),u0(n,e),D1(Kl),go=!!Gl,Kl=Gl=null,e.current=n,uw(n),Ov(),ne=a,re=o,vt.transition=i}else e.current=n;if(Mi&&(Mi=!1,pn=e,Lo=s),i=e.pendingLanes,i===0&&(jn=null),$v(n.stateNode),st(e,ke()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(Mo)throw Mo=!1,e=hu,hu=null,e;return Lo&1&&e.tag!==0&&Rr(),i=e.pendingLanes,i&1?e===mu?Ts++:(Ts=0,mu=e):Ts=0,Rn(),null}function Rr(){if(pn!==null){var e=Yp(Lo),t=vt.transition,n=re;try{if(vt.transition=null,re=16>e?16:e,pn===null)var r=!1;else{if(e=pn,pn=null,Lo=0,ne&6)throw Error(D(331));var s=ne;for(ne|=4,I=e.current;I!==null;){var i=I,o=i.child;if(I.flags&16){var a=i.deletions;if(a!==null){for(var u=0;u<a.length;u++){var c=a[u];for(I=c;I!==null;){var d=I;switch(d.tag){case 0:case 11:case 15:Cs(8,d,i)}var f=d.child;if(f!==null)f.return=d,I=f;else for(;I!==null;){d=I;var h=d.sibling,p=d.return;if(o0(d),d===c){I=null;break}if(h!==null){h.return=p,I=h;break}I=p}}}var v=i.alternate;if(v!==null){var w=v.child;if(w!==null){v.child=null;do{var b=w.sibling;w.sibling=null,w=b}while(w!==null)}}I=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,I=o;else e:for(;I!==null;){if(i=I,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Cs(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,I=g;break e}I=i.return}}var x=e.current;for(I=x;I!==null;){o=I;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,I=y;else e:for(o=x;I!==null;){if(a=I,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:sa(9,a)}}catch(S){be(a,a.return,S)}if(a===o){I=null;break e}var k=a.sibling;if(k!==null){k.return=a.return,I=k;break e}I=a.return}}if(ne=s,Rn(),$t&&typeof $t.onPostCommitFiberRoot=="function")try{$t.onPostCommitFiberRoot(Xo,e)}catch{}r=!0}return r}finally{re=n,vt.transition=t}}return!1}function Zf(e,t,n){t=Br(n,t),t=Yg(e,t,1),e=Sn(e,t,1),t=Xe(),e!==null&&(ii(e,1,t),st(e,t))}function be(e,t,n){if(e.tag===3)Zf(e,e,n);else for(;t!==null;){if(t.tag===3){Zf(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(jn===null||!jn.has(r))){e=Br(n,e),e=Xg(t,e,1),t=Sn(t,e,1),e=Xe(),t!==null&&(ii(t,1,e),st(t,e));break}}t=t.return}}function pw(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Xe(),e.pingedLanes|=e.suspendedLanes&n,De===e&&(Fe&n)===n&&(_e===4||_e===3&&(Fe&130023424)===Fe&&500>ke()-zc?qn(e,0):Oc|=n),st(e,t)}function g0(e,t){t===0&&(e.mode&1?(t=bi,bi<<=1,!(bi&130023424)&&(bi=4194304)):t=1);var n=Xe();e=tn(e,t),e!==null&&(ii(e,t,n),st(e,n))}function gw(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),g0(e,n)}function xw(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(D(314))}r!==null&&r.delete(t),g0(e,n)}var x0;x0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||nt.current)tt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return tt=!1,sw(e,t,n);tt=!!(e.flags&131072)}else tt=!1,me&&t.flags&1048576&&bg(t,So,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Xi(e,t),e=t.pendingProps;var s=Ir(t,Ge.current);Dr(t,n),s=Ac(null,t,r,e,s,n);var i=Dc();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rt(r)?(i=!0,bo(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Tc(t),s.updater=ra,t.stateNode=s,s._reactInternals=t,nu(t,r,e,n),t=iu(null,t,r,!0,i,n)):(t.tag=0,me&&i&&bc(t),Ke(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Xi(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=vw(r),e=Et(r,e),s){case 0:t=su(null,t,r,e,n);break e;case 1:t=Bf(null,t,r,e,n);break e;case 11:t=Of(null,t,r,e,n);break e;case 14:t=zf(null,t,r,Et(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Et(r,s),su(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Et(r,s),Bf(e,t,r,s,n);case 3:e:{if(e0(t),e===null)throw Error(D(387));r=t.pendingProps,i=t.memoizedState,s=i.element,Eg(e,t),Co(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=Br(Error(D(423)),t),t=$f(e,t,r,n,s);break e}else if(r!==s){s=Br(Error(D(424)),t),t=$f(e,t,r,n,s);break e}else for(lt=kn(t.stateNode.containerInfo.firstChild),ut=t,me=!0,Nt=null,n=Pg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Fr(),r===s){t=nn(e,t,n);break e}Ke(e,t,r,n)}t=t.child}return t;case 5:return Tg(t),e===null&&Jl(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,ql(r,s)?o=null:i!==null&&ql(r,i)&&(t.flags|=32),Jg(e,t),Ke(e,t,o,n),t.child;case 6:return e===null&&Jl(t),null;case 13:return t0(e,t,n);case 4:return Nc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Or(t,null,r,n):Ke(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Et(r,s),Of(e,t,r,s,n);case 7:return Ke(e,t,t.pendingProps,n),t.child;case 8:return Ke(e,t,t.pendingProps.children,n),t.child;case 12:return Ke(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,ce(jo,r._currentValue),r._currentValue=o,i!==null)if(Dt(i.value,o)){if(i.children===s.children&&!nt.current){t=nn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=Qt(-1,n&-n),u.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),eu(i.return,n,t),a.lanes|=n;break}u=u.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(D(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),eu(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ke(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Dr(t,n),s=wt(s),r=r(s),t.flags|=1,Ke(e,t,r,n),t.child;case 14:return r=t.type,s=Et(r,t.pendingProps),s=Et(r.type,s),zf(e,t,r,s,n);case 15:return Zg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Et(r,s),Xi(e,t),t.tag=1,rt(r)?(e=!0,bo(t)):e=!1,Dr(t,n),qg(t,r,s),nu(t,r,s,n),iu(null,t,r,!0,e,n);case 19:return n0(e,t,n);case 22:return Qg(e,t,n)}throw Error(D(156,t.tag))};function y0(e,t){return Wp(e,t)}function yw(e,t,n,r){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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xt(e,t,n,r){return new yw(e,t,n,r)}function Uc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vw(e){if(typeof e=="function")return Uc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===uc)return 11;if(e===cc)return 14}return 2}function Cn(e,t){var n=e.alternate;return n===null?(n=xt(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 Ji(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")Uc(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case pr:return Yn(n.children,s,i,t);case lc:o=8,s|=8;break;case Cl:return e=xt(12,n,t,s|2),e.elementType=Cl,e.lanes=i,e;case El:return e=xt(13,n,t,s),e.elementType=El,e.lanes=i,e;case Tl:return e=xt(19,n,t,s),e.elementType=Tl,e.lanes=i,e;case Tp:return oa(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Cp:o=10;break e;case Ep:o=9;break e;case uc:o=11;break e;case cc:o=14;break e;case un:o=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=xt(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function Yn(e,t,n,r){return e=xt(7,e,r,t),e.lanes=n,e}function oa(e,t,n,r){return e=xt(22,e,r,t),e.elementType=Tp,e.lanes=n,e.stateNode={isHidden:!1},e}function qa(e,t,n){return e=xt(6,e,null,t),e.lanes=n,e}function Ya(e,t,n){return t=xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ww(e,t,n,r,s){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=Na(0),this.expirationTimes=Na(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Na(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Wc(e,t,n,r,s,i,o,a,u){return e=new ww(e,t,n,a,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=xt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Tc(i),e}function bw(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:mr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function v0(e){if(!e)return Mn;e=e._reactInternals;e:{if(ar(e)!==e||e.tag!==1)throw Error(D(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(rt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(D(171))}if(e.tag===1){var n=e.type;if(rt(n))return vg(e,n,t)}return t}function w0(e,t,n,r,s,i,o,a,u){return e=Wc(n,r,!0,e,s,i,o,a,u),e.context=v0(null),n=e.current,r=Xe(),s=Pn(n),i=Qt(r,s),i.callback=t??null,Sn(n,i,s),e.current.lanes=s,ii(e,s,r),st(e,r),e}function aa(e,t,n,r){var s=t.current,i=Xe(),o=Pn(s);return n=v0(n),t.context===null?t.context=n:t.pendingContext=n,t=Qt(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Sn(s,t,o),e!==null&&(Lt(e,s,o,i),Ki(e,s,o)),o}function Do(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 Qf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Gc(e,t){Qf(e,t),(e=e.alternate)&&Qf(e,t)}function kw(){return null}var b0=typeof reportError=="function"?reportError:function(e){console.error(e)};function Kc(e){this._internalRoot=e}la.prototype.render=Kc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(D(409));aa(e,t,null,null)};la.prototype.unmount=Kc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;nr(function(){aa(null,e,null,null)}),t[en]=null}};function la(e){this._internalRoot=e}la.prototype.unstable_scheduleHydration=function(e){if(e){var t=Qp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<fn.length&&t!==0&&t<fn[n].priority;n++);fn.splice(n,0,e),n===0&&eg(e)}};function qc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ua(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Jf(){}function Sw(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var c=Do(o);i.call(c)}}var o=w0(t,r,e,0,null,!1,!1,"",Jf);return e._reactRootContainer=o,e[en]=o.current,Hs(e.nodeType===8?e.parentNode:e),nr(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var c=Do(u);a.call(c)}}var u=Wc(e,0,!1,null,null,!1,!1,"",Jf);return e._reactRootContainer=u,e[en]=u.current,Hs(e.nodeType===8?e.parentNode:e),nr(function(){aa(t,u,n,r)}),u}function ca(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var a=s;s=function(){var u=Do(o);a.call(u)}}aa(t,o,e,s)}else o=Sw(n,t,e,s,r);return Do(o)}Xp=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=gs(t.pendingLanes);n!==0&&(hc(t,n|1),st(t,ke()),!(ne&6)&&($r=ke()+500,Rn()))}break;case 13:nr(function(){var r=tn(e,1);if(r!==null){var s=Xe();Lt(r,e,1,s)}}),Gc(e,1)}};mc=function(e){if(e.tag===13){var t=tn(e,134217728);if(t!==null){var n=Xe();Lt(t,e,134217728,n)}Gc(e,134217728)}};Zp=function(e){if(e.tag===13){var t=Pn(e),n=tn(e,t);if(n!==null){var r=Xe();Lt(n,e,t,r)}Gc(e,t)}};Qp=function(){return re};Jp=function(e,t){var n=re;try{return re=e,t()}finally{re=n}};Fl=function(e,t,n){switch(t){case"input":if(Ml(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 r=n[t];if(r!==e&&r.form===e.form){var s=ea(r);if(!s)throw Error(D(90));_p(r),Ml(r,s)}}}break;case"textarea":Lp(e,n);break;case"select":t=n.value,t!=null&&_r(e,!!n.multiple,t,!1)}};Op=Bc;zp=nr;var jw={usingClientEntryPoint:!1,Events:[ai,vr,ea,Ip,Fp,Bc]},cs={findFiberByHostInstance:Hn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Pw={bundleType:cs.bundleType,version:cs.version,rendererPackageName:cs.rendererPackageName,rendererConfig:cs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:sn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Hp(e),e===null?null:e.stateNode},findFiberByHostInstance:cs.findFiberByHostInstance||kw,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 Li=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Li.isDisabled&&Li.supportsFiber)try{Xo=Li.inject(Pw),$t=Li}catch{}}ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=jw;ft.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!qc(t))throw Error(D(200));return bw(e,t,null,n)};ft.createRoot=function(e,t){if(!qc(e))throw Error(D(299));var n=!1,r="",s=b0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Wc(e,1,!1,null,null,n,!1,r,s),e[en]=t.current,Hs(e.nodeType===8?e.parentNode:e),new Kc(t)};ft.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(D(188)):(e=Object.keys(e).join(","),Error(D(268,e)));return e=Hp(t),e=e===null?null:e.stateNode,e};ft.flushSync=function(e){return nr(e)};ft.hydrate=function(e,t,n){if(!ua(t))throw Error(D(200));return ca(null,e,t,!0,n)};ft.hydrateRoot=function(e,t,n){if(!qc(e))throw Error(D(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=b0;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=w0(t,null,e,1,n??null,s,!1,i,o),e[en]=t.current,Hs(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new la(t)};ft.render=function(e,t,n){if(!ua(t))throw Error(D(200));return ca(null,e,t,!1,n)};ft.unmountComponentAtNode=function(e){if(!ua(e))throw Error(D(40));return e._reactRootContainer?(nr(function(){ca(null,null,e,!1,function(){e._reactRootContainer=null,e[en]=null})}),!0):!1};ft.unstable_batchedUpdates=Bc;ft.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ua(n))throw Error(D(200));if(e==null||e._reactInternals===void 0)throw Error(D(38));return ca(e,t,n,!1,r)};ft.version="18.3.1-next-f1338f8080-20240426";function k0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(k0)}catch(e){console.error(e)}}k0(),kp.exports=ft;var Yc=kp.exports;const a4=up(Yc);var eh=Yc;jl.createRoot=eh.createRoot,jl.hydrateRoot=eh.hydrateRoot;/**
* @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 Qs(){return Qs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qs.apply(null,arguments)}var gn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(gn||(gn={}));const th="popstate";function Cw(e){e===void 0&&(e={});function t(r,s){let{pathname:i,search:o,hash:a}=r.location;return xu("",{pathname:i,search:o,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Ro(s)}return Tw(t,n,null,e)}function xe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Xc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ew(){return Math.random().toString(36).substr(2,8)}function nh(e,t){return{usr:e.state,key:e.key,idx:t}}function xu(e,t,n,r){return n===void 0&&(n=null),Qs({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Zr(t):t,{state:n,key:t&&t.key||r||Ew()})}function Ro(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Zr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Tw(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,o=s.history,a=gn.Pop,u=null,c=d();c==null&&(c=0,o.replaceState(Qs({},o.state,{idx:c}),""));function d(){return(o.state||{idx:null}).idx}function f(){a=gn.Pop;let b=d(),g=b==null?null:b-c;c=b,u&&u({action:a,location:w.location,delta:g})}function h(b,g){a=gn.Push;let x=xu(w.location,b,g);c=d()+1;let y=nh(x,c),k=w.createHref(x);try{o.pushState(y,"",k)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;s.location.assign(k)}i&&u&&u({action:a,location:w.location,delta:1})}function p(b,g){a=gn.Replace;let x=xu(w.location,b,g);c=d();let y=nh(x,c),k=w.createHref(x);o.replaceState(y,"",k),i&&u&&u({action:a,location:w.location,delta:0})}function v(b){let g=s.location.origin!=="null"?s.location.origin:s.location.href,x=typeof b=="string"?b:Ro(b);return x=x.replace(/ $/,"%20"),xe(g,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,g)}let w={get action(){return a},get location(){return e(s,o)},listen(b){if(u)throw new Error("A history only accepts one active listener");return s.addEventListener(th,f),u=b,()=>{s.removeEventListener(th,f),u=null}},createHref(b){return t(s,b)},createURL:v,encodeLocation(b){let g=v(b);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:p,go(b){return o.go(b)}};return w}var rh;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(rh||(rh={}));function Nw(e,t,n){return n===void 0&&(n="/"),_w(e,t,n)}function _w(e,t,n,r){let s=typeof t=="string"?Zr(t):t,i=Hr(s.pathname||"/",n);if(i==null)return null;let o=S0(e);Mw(o);let a=null,u=$w(i);for(let c=0;a==null&&c<o.length;++c)a=zw(o[c],u);return a}function S0(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(i,o,a)=>{let u={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};u.relativePath.startsWith("/")&&(xe(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=En([r,u.relativePath]),d=n.concat(u);i.children&&i.children.length>0&&(xe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),S0(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:Fw(c,i.index),routesMeta:d})};return e.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))s(i,o);else for(let u of j0(i.path))s(i,o,u)}),t}function j0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let o=j0(r.join("/")),a=[];return a.push(...o.map(u=>u===""?i:[i,u].join("/"))),s&&a.push(...o),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function Mw(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Ow(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Lw=/^:[\w-]+$/,Aw=3,Dw=2,Rw=1,Vw=10,Iw=-2,sh=e=>e==="*";function Fw(e,t){let n=e.split("/"),r=n.length;return n.some(sh)&&(r+=Iw),t&&(r+=Dw),n.filter(s=>!sh(s)).reduce((s,i)=>s+(Lw.test(i)?Aw:i===""?Rw:Vw),r)}function Ow(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function zw(e,t,n){let{routesMeta:r}=e,s={},i="/",o=[];for(let a=0;a<r.length;++a){let u=r[a],c=a===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",f=yu({path:u.relativePath,caseSensitive:u.caseSensitive,end:c},d),h=u.route;if(!f)return null;Object.assign(s,f.params),o.push({params:s,pathname:En([i,f.pathname]),pathnameBase:Kw(En([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=En([i,f.pathnameBase]))}return o}function yu(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Bw(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let i=s[0],o=i.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:r.reduce((c,d,f)=>{let{paramName:h,isOptional:p}=d;if(h==="*"){let w=a[f]||"";o=i.slice(0,i.length-w.length).replace(/(.)\/+$/,"$1")}const v=a[f];return p&&!v?c[h]=void 0:c[h]=(v||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:o,pattern:e}}function Bw(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Xc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function $w(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Xc(!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 Hr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Hw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Uw=e=>Hw.test(e);function Ww(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?Zr(e):e,i;if(n)if(Uw(n))i=n;else{if(n.includes("//")){let o=n;n=P0(n),Xc(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+n))}n.startsWith("/")?i=ih(n.substring(1),"/"):i=ih(n,t)}else i=t;return{pathname:i,search:qw(r),hash:Yw(s)}}function ih(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Xa(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Gw(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Zc(e,t){let n=Gw(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Qc(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=Zr(e):(s=Qs({},e),xe(!s.pathname||!s.pathname.includes("?"),Xa("?","pathname","search",s)),xe(!s.pathname||!s.pathname.includes("#"),Xa("#","pathname","hash",s)),xe(!s.search||!s.search.includes("#"),Xa("#","search","hash",s)));let i=e===""||s.pathname==="",o=i?"/":s.pathname,a;if(o==null)a=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),f-=1;s.pathname=h.join("/")}a=f>=0?t[f]:"/"}let u=Ww(s,a),c=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}const P0=e=>e.replace(/\/\/+/g,"/"),En=e=>P0(e.join("/")),Kw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),qw=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Yw=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Xw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const C0=["post","put","patch","delete"];new Set(C0);const Zw=["get",...C0];new Set(Zw);/**
* 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 Js(){return Js=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Js.apply(null,arguments)}const da=m.createContext(null),E0=m.createContext(null),on=m.createContext(null),fa=m.createContext(null),Wt=m.createContext({outlet:null,matches:[],isDataRoute:!1}),T0=m.createContext(null);function Qw(e,t){let{relative:n}=t===void 0?{}:t;Qr()||xe(!1);let{basename:r,navigator:s}=m.useContext(on),{hash:i,pathname:o,search:a}=ma(e,{relative:n}),u=o;return r!=="/"&&(u=o==="/"?r:En([r,o])),s.createHref({pathname:u,search:a,hash:i})}function Qr(){return m.useContext(fa)!=null}function Je(){return Qr()||xe(!1),m.useContext(fa).location}function N0(e){m.useContext(on).static||m.useLayoutEffect(e)}function ha(){let{isDataRoute:e}=m.useContext(Wt);return e?hb():Jw()}function Jw(){Qr()||xe(!1);let e=m.useContext(da),{basename:t,future:n,navigator:r}=m.useContext(on),{matches:s}=m.useContext(Wt),{pathname:i}=Je(),o=JSON.stringify(Zc(s,n.v7_relativeSplatPath)),a=m.useRef(!1);return N0(()=>{a.current=!0}),m.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let f=Qc(c,JSON.parse(o),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:En([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,o,i,e])}const eb=m.createContext(null);function tb(e){let t=m.useContext(Wt).outlet;return t&&m.createElement(eb.Provider,{value:e},t)}function Jc(){let{matches:e}=m.useContext(Wt),t=e[e.length-1];return t?t.params:{}}function ma(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=m.useContext(on),{matches:s}=m.useContext(Wt),{pathname:i}=Je(),o=JSON.stringify(Zc(s,r.v7_relativeSplatPath));return m.useMemo(()=>Qc(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function nb(e,t){return rb(e,t)}function rb(e,t,n,r){Qr()||xe(!1);let{navigator:s}=m.useContext(on),{matches:i}=m.useContext(Wt),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let u=o?o.pathnameBase:"/";o&&o.route;let c=Je(),d;if(t){var f;let b=typeof t=="string"?Zr(t):t;u==="/"||(f=b.pathname)!=null&&f.startsWith(u)||xe(!1),d=b}else d=c;let h=d.pathname||"/",p=h;if(u!=="/"){let b=u.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(b.length).join("/")}let v=Nw(e,{pathname:p}),w=lb(v&&v.map(b=>Object.assign({},b,{params:Object.assign({},a,b.params),pathname:En([u,s.encodeLocation?s.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?u:En([u,s.encodeLocation?s.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,n,r);return t&&w?m.createElement(fa.Provider,{value:{location:Js({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:gn.Pop}},w):w}function sb(){let e=fb(),t=Xw(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:s},n):null,null)}const ib=m.createElement(sb,null);class ob extends m.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?m.createElement(Wt.Provider,{value:this.props.routeContext},m.createElement(T0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ab(e){let{routeContext:t,match:n,children:r}=e,s=m.useContext(da);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),m.createElement(Wt.Provider,{value:t},r)}function lb(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=(s=n)==null?void 0:s.errors;if(a!=null){let d=o.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);d>=0||xe(!1),o=o.slice(0,Math.min(o.length,d+1))}let u=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<o.length;d++){let f=o[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(c=d),f.route.id){let{loaderData:h,errors:p}=n,v=f.route.loader&&h[f.route.id]===void 0&&(!p||p[f.route.id]===void 0);if(f.route.lazy||v){u=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((d,f,h)=>{let p,v=!1,w=null,b=null;n&&(p=a&&f.route.id?a[f.route.id]:void 0,w=f.route.errorElement||ib,u&&(c<0&&h===0?(mb("route-fallback"),v=!0,b=null):c===h&&(v=!0,b=f.route.hydrateFallbackElement||null)));let g=t.concat(o.slice(0,h+1)),x=()=>{let y;return p?y=w:v?y=b:f.route.Component?y=m.createElement(f.route.Component,null):f.route.element?y=f.route.element:y=d,m.createElement(ab,{match:f,routeContext:{outlet:d,matches:g,isDataRoute:n!=null},children:y})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?m.createElement(ob,{location:n.location,revalidation:n.revalidation,component:w,error:p,children:x(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):x()},null)}var _0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(_0||{}),M0=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}(M0||{});function ub(e){let t=m.useContext(da);return t||xe(!1),t}function cb(e){let t=m.useContext(E0);return t||xe(!1),t}function db(e){let t=m.useContext(Wt);return t||xe(!1),t}function L0(e){let t=db(),n=t.matches[t.matches.length-1];return n.route.id||xe(!1),n.route.id}function fb(){var e;let t=m.useContext(T0),n=cb(),r=L0();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function hb(){let{router:e}=ub(_0.UseNavigateStable),t=L0(M0.UseNavigateStable),n=m.useRef(!1);return N0(()=>{n.current=!0}),m.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Js({fromRouteId:t},i)))},[e,t])}const oh={};function mb(e,t,n){oh[e]||(oh[e]=!0)}function pb(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function rr(e){let{to:t,replace:n,state:r,relative:s}=e;Qr()||xe(!1);let{future:i,static:o}=m.useContext(on),{matches:a}=m.useContext(Wt),{pathname:u}=Je(),c=ha(),d=Qc(t,Zc(a,i.v7_relativeSplatPath),u,s==="path"),f=JSON.stringify(d);return m.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:s}),[c,f,s,n,r]),null}function ed(e){return tb(e.context)}function $(e){xe(!1)}function gb(e){let{basename:t="/",children:n=null,location:r,navigationType:s=gn.Pop,navigator:i,static:o=!1,future:a}=e;Qr()&&xe(!1);let u=t.replace(/^\/*/,"/"),c=m.useMemo(()=>({basename:u,navigator:i,static:o,future:Js({v7_relativeSplatPath:!1},a)}),[u,a,i,o]);typeof r=="string"&&(r=Zr(r));let{pathname:d="/",search:f="",hash:h="",state:p=null,key:v="default"}=r,w=m.useMemo(()=>{let b=Hr(d,u);return b==null?null:{location:{pathname:b,search:f,hash:h,state:p,key:v},navigationType:s}},[u,d,f,h,p,v,s]);return w==null?null:m.createElement(on.Provider,{value:c},m.createElement(fa.Provider,{children:n,value:w}))}function xb(e){let{children:t,location:n}=e;return nb(vu(t),n)}new Promise(()=>{});function vu(e,t){t===void 0&&(t=[]);let n=[];return m.Children.forEach(e,(r,s)=>{if(!m.isValidElement(r))return;let i=[...t,s];if(r.type===m.Fragment){n.push.apply(n,vu(r.props.children,i));return}r.type!==$&&xe(!1),!r.props.index||!r.props.children||xe(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=vu(r.props.children,i)),n.push(o)}),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 Vo(){return Vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vo.apply(null,arguments)}function A0(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function yb(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function vb(e,t){return e.button===0&&(!t||t==="_self")&&!yb(e)}function wu(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function wb(e,t){let n=wu(e);return t&&t.forEach((r,s)=>{n.has(s)||t.getAll(s).forEach(i=>{n.append(s,i)})}),n}const bb=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],kb=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],Sb="6";try{window.__reactRouterVersion=Sb}catch{}const jb=m.createContext({isTransitioning:!1}),Pb="startTransition",ah=pv[Pb];function Cb(e){let{basename:t,children:n,future:r,window:s}=e,i=m.useRef();i.current==null&&(i.current=Cw({window:s,v5Compat:!0}));let o=i.current,[a,u]=m.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},d=m.useCallback(f=>{c&&ah?ah(()=>u(f)):u(f)},[u,c]);return m.useLayoutEffect(()=>o.listen(d),[o,d]),m.useEffect(()=>pb(r),[r]),m.createElement(gb,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const Eb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Tb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,K=m.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:i,replace:o,state:a,target:u,to:c,preventScrollReset:d,viewTransition:f}=t,h=A0(t,bb),{basename:p}=m.useContext(on),v,w=!1;if(typeof c=="string"&&Tb.test(c)&&(v=c,Eb))try{let y=new URL(window.location.href),k=c.startsWith("//")?new URL(y.protocol+c):new URL(c),S=Hr(k.pathname,p);k.origin===y.origin&&S!=null?c=S+k.search+k.hash:w=!0}catch{}let b=Qw(c,{relative:s}),g=Mb(c,{replace:o,state:a,target:u,preventScrollReset:d,relative:s,viewTransition:f});function x(y){r&&r(y),y.defaultPrevented||g(y)}return m.createElement("a",Vo({},h,{href:v||b,onClick:w||i?r:x,ref:n,target:u}))}),Nb=m.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:s=!1,className:i="",end:o=!1,style:a,to:u,viewTransition:c,children:d}=t,f=A0(t,kb),h=ma(u,{relative:f.relative}),p=Je(),v=m.useContext(E0),{navigator:w,basename:b}=m.useContext(on),g=v!=null&&Ab(h)&&c===!0,x=w.encodeLocation?w.encodeLocation(h).pathname:h.pathname,y=p.pathname,k=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;s||(y=y.toLowerCase(),k=k?k.toLowerCase():null,x=x.toLowerCase()),k&&b&&(k=Hr(k,b)||k);const S=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let E=y===x||!o&&y.startsWith(x)&&y.charAt(S)==="/",j=k!=null&&(k===x||!o&&k.startsWith(x)&&k.charAt(x.length)==="/"),P={isActive:E,isPending:j,isTransitioning:g},M=E?r:void 0,T;typeof i=="function"?T=i(P):T=[i,E?"active":null,j?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let B=typeof a=="function"?a(P):a;return m.createElement(K,Vo({},f,{"aria-current":M,className:T,ref:n,style:B,to:u,viewTransition:c}),typeof d=="function"?d(P):d)});var bu;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(bu||(bu={}));var lh;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(lh||(lh={}));function _b(e){let t=m.useContext(da);return t||xe(!1),t}function Mb(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:o,viewTransition:a}=t===void 0?{}:t,u=ha(),c=Je(),d=ma(e,{relative:o});return m.useCallback(f=>{if(vb(f,n)){f.preventDefault();let h=r!==void 0?r:Ro(c)===Ro(d);u(e,{replace:h,state:s,preventScrollReset:i,relative:o,viewTransition:a})}},[c,u,d,r,s,n,e,i,o,a])}function Lb(e){let t=m.useRef(wu(e)),n=m.useRef(!1),r=Je(),s=m.useMemo(()=>wb(r.search,n.current?null:t.current),[r.search]),i=ha(),o=m.useCallback((a,u)=>{const c=wu(typeof a=="function"?a(s):a);n.current=!0,i("?"+c,u)},[i,s]);return[s,o]}function Ab(e,t){t===void 0&&(t={});let n=m.useContext(jb);n==null&&xe(!1);let{basename:r}=_b(bu.useViewTransitionState),s=ma(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=Hr(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Hr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return yu(s.pathname,o)!=null||yu(s.pathname,i)!=null}const Db="modulepreload",Rb=function(e){return"/"+e},uh={},X=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.allSettled(n.map(u=>{if(u=Rb(u),u in uh)return;uh[u]=!0;const c=u.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${d}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":Db,c||(f.as="script"),f.crossOrigin="",f.href=u,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})},td=m.createContext({});function rn(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const Vb=typeof window<"u",ui=Vb?m.useLayoutEffect:m.useEffect,pa=m.createContext(null);function nd(e,t){e.indexOf(t)===-1&&e.push(t)}function Io(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Rt=(e,t,n)=>n>t?t:n<e?e:n;let rd=()=>{};const Ln={},D0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),R0=e=>typeof e=="object"&&e!==null,V0=e=>/^0[^.\s]+$/u.test(e);function I0(e){let t;return()=>(t===void 0&&(t=e()),t)}const it=e=>e,ci=(...e)=>e.reduce((t,n)=>r=>n(t(r))),Ur=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class sd{constructor(){this.subscriptions=[]}add(t){return nd(this.subscriptions,t),()=>Io(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i<s;i++){const o=this.subscriptions[i];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ct=e=>e*1e3,yt=e=>e/1e3,id=(e,t)=>t?e*(1e3/t):0,F0=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ib=1e-7,Fb=12;function Ob(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=F0(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>Ib&&++a<Fb);return o}function di(e,t,n,r){if(e===t&&n===r)return it;const s=i=>Ob(i,0,1,e,n);return i=>i===0||i===1?i:F0(s(i),t,r)}const O0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,z0=e=>t=>1-e(1-t),B0=di(.33,1.53,.69,.99),od=z0(B0),$0=O0(od),H0=e=>e>=1?1:(e*=2)<1?.5*od(e):.5*(2-Math.pow(2,-10*(e-1))),ad=e=>1-Math.sin(Math.acos(e)),U0=z0(ad),W0=O0(ad),zb=di(.42,0,1,1),Bb=di(0,0,.58,1),G0=di(.42,0,.58,1),$b=e=>Array.isArray(e)&&typeof e[0]!="number",K0=e=>Array.isArray(e)&&typeof e[0]=="number",Hb={linear:it,easeIn:zb,easeInOut:G0,easeOut:Bb,circIn:ad,circInOut:W0,circOut:U0,backIn:od,backInOut:$0,backOut:B0,anticipate:H0},Ub=e=>typeof e=="string",ch=e=>{if(K0(e)){rd(e.length===4);const[t,n,r,s]=e;return di(t,n,r,s)}else if(Ub(e))return Hb[e];return e},Ai=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Wb(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(c){i.has(c)&&(u.schedule(c),e()),c(o)}const u={schedule:(c,d=!1,f=!1)=>{const p=f&&r?t:n;return d&&i.add(c),p.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(o=c,r){s=!0;return}r=!0;const d=t;t=n,n=d,t.forEach(a),t.clear(),r=!1,s&&(s=!1,u.process(c))}};return u}const Gb=40;function q0(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=Ai.reduce((y,k)=>(y[k]=Wb(i),y),{}),{setup:a,read:u,resolveKeyframes:c,preUpdate:d,update:f,preRender:h,render:p,postRender:v}=o,w=()=>{const y=Ln.useManualTiming,k=y?s.timestamp:performance.now();n=!1,y||(s.delta=r?1e3/60:Math.max(Math.min(k-s.timestamp,Gb),1)),s.timestamp=k,s.isProcessing=!0,a.process(s),u.process(s),c.process(s),d.process(s),f.process(s),h.process(s),p.process(s),v.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(w))},b=()=>{n=!0,r=!0,s.isProcessing||e(w)};return{schedule:Ai.reduce((y,k)=>{const S=o[k];return y[k]=(E,j=!1,P=!1)=>(n||b(),S.schedule(E,j,P)),y},{}),cancel:y=>{for(let k=0;k<Ai.length;k++)o[Ai[k]].cancel(y)},state:s,steps:o}}const{schedule:Q,cancel:kt,state:Le,steps:Za}=q0(typeof requestAnimationFrame<"u"?requestAnimationFrame:it,!0);let eo;function Kb(){eo=void 0}const qe={now:()=>(eo===void 0&&qe.set(Le.isProcessing||Ln.useManualTiming?Le.timestamp:performance.now()),eo),set:e=>{eo=e,queueMicrotask(Kb)}},Y0=e=>t=>typeof t=="string"&&t.startsWith(e),X0=Y0("--"),qb=Y0("var(--"),ld=e=>qb(e)?Yb.test(e.split("/*")[0].trim()):!1,Yb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function dh(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Jr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ei={...Jr,transform:e=>Rt(0,1,e)},Di={...Jr,default:1},Ns=e=>Math.round(e*1e5)/1e5,ud=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Xb(e){return e==null}const Zb=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,cd=(e,t)=>n=>!!(typeof n=="string"&&Zb.test(n)&&n.startsWith(e)||t&&!Xb(n)&&Object.prototype.hasOwnProperty.call(n,t)),Z0=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(ud);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Qb=e=>Rt(0,255,e),Qa={...Jr,transform:e=>Math.round(Qb(e))},Gn={test:cd("rgb","red"),parse:Z0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Qa.transform(e)+", "+Qa.transform(t)+", "+Qa.transform(n)+", "+Ns(ei.transform(r))+")"};function Jb(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const ku={test:cd("#"),parse:Jb,transform:Gn.transform},fi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Gt=fi("deg"),Ut=fi("%"),O=fi("px"),ek=fi("vh"),tk=fi("vw"),fh={...Ut,parse:e=>Ut.parse(e)/100,transform:e=>Ut.transform(e*100)},Cr={test:cd("hsl","hue"),parse:Z0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ut.transform(Ns(t))+", "+Ut.transform(Ns(n))+", "+Ns(ei.transform(r))+")"},Ce={test:e=>Gn.test(e)||ku.test(e)||Cr.test(e),parse:e=>Gn.test(e)?Gn.parse(e):Cr.test(e)?Cr.parse(e):ku.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Gn.transform(e):Cr.transform(e),getAnimatableNone:e=>{const t=Ce.parse(e);return t.alpha=0,Ce.transform(t)}},nk=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function rk(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(ud))==null?void 0:t.length)||0)+(((n=e.match(nk))==null?void 0:n.length)||0)>0}const Q0="number",J0="color",sk="var",ik="var(",hh="${}",ok=/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 Wr(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(ok,u=>(Ce.test(u)?(r.color.push(i),s.push(J0),n.push(Ce.parse(u))):u.startsWith(ik)?(r.var.push(i),s.push(sk),n.push(u)):(r.number.push(i),s.push(Q0),n.push(parseFloat(u))),++i,hh)).split(hh);return{values:n,split:a,indexes:r,types:s}}function ak(e){return Wr(e).values}function ex({split:e,types:t}){const n=e.length;return r=>{let s="";for(let i=0;i<n;i++)if(s+=e[i],r[i]!==void 0){const o=t[i];o===Q0?s+=Ns(r[i]):o===J0?s+=Ce.transform(r[i]):s+=r[i]}return s}}function lk(e){return ex(Wr(e))}const uk=e=>typeof e=="number"?0:Ce.test(e)?Ce.getAnimatableNone(e):e,ck=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:uk(e);function dk(e){const t=Wr(e);return ex(t)(t.values.map((r,s)=>ck(r,t.split[s])))}const At={test:rk,parse:ak,createTransformer:lk,getAnimatableNone:dk};function Ja(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 fk({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,u=2*n-a;s=Ja(u,a,e+1/3),i=Ja(u,a,e),o=Ja(u,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function Fo(e,t){return n=>n>0?t:e}const le=(e,t,n)=>e+(t-e)*n,el=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},hk=[ku,Gn,Cr],mk=e=>hk.find(t=>t.test(e));function mh(e){const t=mk(e);if(!t)return!1;let n=t.parse(e);return t===Cr&&(n=fk(n)),n}const ph=(e,t)=>{const n=mh(e),r=mh(t);if(!n||!r)return Fo(e,t);const s={...n};return i=>(s.red=el(n.red,r.red,i),s.green=el(n.green,r.green,i),s.blue=el(n.blue,r.blue,i),s.alpha=le(n.alpha,r.alpha,i),Gn.transform(s))},Su=new Set(["none","hidden"]);function pk(e,t){return Su.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function gk(e,t){return n=>le(e,t,n)}function dd(e){return typeof e=="number"?gk:typeof e=="string"?ld(e)?Fo:Ce.test(e)?ph:vk:Array.isArray(e)?tx:typeof e=="object"?Ce.test(e)?ph:xk:Fo}function tx(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>dd(i)(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function xk(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=dd(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function yk(e,t){const n=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const i=t.types[s],o=e.indexes[i][r[i]],a=e.values[o]??0;n[s]=a,r[i]++}return n}const vk=(e,t)=>{const n=At.createTransformer(t),r=Wr(e),s=Wr(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?Su.has(e)&&!s.values.length||Su.has(t)&&!r.values.length?pk(e,t):ci(tx(yk(r,s),s.values),n):Fo(e,t)};function nx(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?le(e,t,n):dd(e)(e,t)}const wk=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Q.update(t,n),stop:()=>kt(t),now:()=>Le.isProcessing?Le.timestamp:qe.now()}},rx=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)r+=Math.round(e(i/(s-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Oo=2e4;function fd(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Oo;)t+=n,r=e.next(t);return t>=Oo?1/0:t}function bk(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(fd(r),Oo);return{type:"keyframes",ease:i=>r.next(s*i).value/t,duration:yt(s)}}const we={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 ju(e,t){return e*Math.sqrt(1-t*t)}const kk=12;function Sk(e,t,n){let r=n;for(let s=1;s<kk;s++)r=r-e(r)/t(r);return r}const tl=.001;function jk({duration:e=we.duration,bounce:t=we.bounce,velocity:n=we.velocity,mass:r=we.mass}){let s,i,o=1-t;o=Rt(we.minDamping,we.maxDamping,o),e=Rt(we.minDuration,we.maxDuration,yt(e)),o<1?(s=c=>{const d=c*o,f=d*e,h=d-n,p=ju(c,o),v=Math.exp(-f);return tl-h/p*v},i=c=>{const f=c*o*e,h=f*n+n,p=Math.pow(o,2)*Math.pow(c,2)*e,v=Math.exp(-f),w=ju(Math.pow(c,2),o);return(-s(c)+tl>0?-1:1)*((h-p)*v)/w}):(s=c=>{const d=Math.exp(-c*e),f=(c-n)*e+1;return-tl+d*f},i=c=>{const d=Math.exp(-c*e),f=(n-c)*(e*e);return d*f});const a=5/e,u=Sk(s,i,a);if(e=ct(e),isNaN(u))return{stiffness:we.stiffness,damping:we.damping,duration:e};{const c=Math.pow(u,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const Pk=["duration","bounce"],Ck=["stiffness","damping","mass"];function gh(e,t){return t.some(n=>e[n]!==void 0)}function Ek(e){let t={velocity:we.velocity,stiffness:we.stiffness,damping:we.damping,mass:we.mass,isResolvedFromDuration:!1,...e};if(!gh(e,Ck)&&gh(e,Pk))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*Rt(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:we.mass,stiffness:s,damping:i}}else{const n=jk({...e,velocity:0});t={...t,...n,mass:we.mass},t.isResolvedFromDuration=!0}return t}function zo(e=we.visualDuration,t=we.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:u,damping:c,mass:d,duration:f,velocity:h,isResolvedFromDuration:p}=Ek({...n,velocity:-yt(n.velocity||0)}),v=h||0,w=c/(2*Math.sqrt(u*d)),b=o-i,g=yt(Math.sqrt(u/d)),x=Math.abs(b)<5;r||(r=x?we.restSpeed.granular:we.restSpeed.default),s||(s=x?we.restDelta.granular:we.restDelta.default);let y,k,S,E,j,P;if(w<1)S=ju(g,w),E=(v+w*g*b)/S,y=T=>{const B=Math.exp(-w*g*T);return o-B*(E*Math.sin(S*T)+b*Math.cos(S*T))},j=w*g*E+b*S,P=w*g*b-E*S,k=T=>Math.exp(-w*g*T)*(j*Math.sin(S*T)+P*Math.cos(S*T));else if(w===1){y=B=>o-Math.exp(-g*B)*(b+(v+g*b)*B);const T=v+g*b;k=B=>Math.exp(-g*B)*(g*T*B-v)}else{const T=g*Math.sqrt(w*w-1);y=U=>{const G=Math.exp(-w*g*U),q=Math.min(T*U,300);return o-G*((v+w*g*b)*Math.sinh(q)+T*b*Math.cosh(q))/T};const B=(v+w*g*b)/T,H=w*g*B-b*T,ee=w*g*b-B*T;k=U=>{const G=Math.exp(-w*g*U),q=Math.min(T*U,300);return G*(H*Math.sinh(q)+ee*Math.cosh(q))}}const M={calculatedDuration:p&&f||null,velocity:T=>ct(k(T)),next:T=>{if(!p&&w<1){const H=Math.exp(-w*g*T),ee=Math.sin(S*T),U=Math.cos(S*T),G=o-H*(E*ee+b*U),q=ct(H*(j*ee+P*U));return a.done=Math.abs(q)<=r&&Math.abs(o-G)<=s,a.value=a.done?o:G,a}const B=y(T);if(p)a.done=T>=f;else{const H=ct(k(T));a.done=Math.abs(H)<=r&&Math.abs(o-B)<=s}return a.value=a.done?o:B,a},toString:()=>{const T=Math.min(fd(M),Oo),B=rx(H=>M.next(T*H).value,T,30);return T+"ms "+B},toTransition:()=>{}};return M}zo.applyToOptions=e=>{const t=bk(e,100,zo);return e.ease=t.ease,e.duration=ct(t.duration),e.type="keyframes",e};const Tk=5;function sx(e,t,n){const r=Math.max(t-Tk,0);return id(n-e(r),t-r)}function Pu({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:u,restDelta:c=.5,restSpeed:d}){const f=e[0],h={done:!1,value:f},p=P=>a!==void 0&&P<a||u!==void 0&&P>u,v=P=>a===void 0?u:u===void 0||Math.abs(a-P)<Math.abs(u-P)?a:u;let w=n*t;const b=f+w,g=o===void 0?b:o(b);g!==b&&(w=g-f);const x=P=>-w*Math.exp(-P/r),y=P=>g+x(P),k=P=>{const M=x(P),T=y(P);h.done=Math.abs(M)<=c,h.value=h.done?g:T};let S,E;const j=P=>{p(h.value)&&(S=P,E=zo({keyframes:[h.value,v(h.value)],velocity:sx(y,P,h.value),damping:s,stiffness:i,restDelta:c,restSpeed:d}))};return j(0),{calculatedDuration:null,next:P=>{let M=!1;return!E&&S===void 0&&(M=!0,k(P),j(P)),S!==void 0&&P>=S?E.next(P-S):(!M&&k(P),h)}}}function Nk(e,t,n){const r=[],s=n||Ln.mix||nx,i=e.length-1;for(let o=0;o<i;o++){let a=s(e[o],e[o+1]);if(t){const u=Array.isArray(t)?t[o]||it:t;a=ci(u,a)}r.push(a)}return r}function hd(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(rd(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Nk(t,r,s),u=a.length,c=d=>{if(o&&d<e[0])return t[0];let f=0;if(u>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=Ur(e[f],e[f+1],d);return a[f](h)};return n?d=>c(Rt(e[0],e[i-1],d)):c}function _k(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=Ur(0,t,r);e.push(le(n,1,s))}}function ix(e){const t=[0];return _k(t,e.length-1),t}function Mk(e,t){return e.map(n=>n*t)}function Lk(e,t){return e.map(()=>t||G0).splice(0,e.length-1)}function _s({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=$b(r)?r.map(ch):ch(r),i={done:!1,value:t[0]},o=Mk(n&&n.length===t.length?n:ix(t),e),a=hd(o,t,{ease:Array.isArray(s)?s:Lk(t,s)});return{calculatedDuration:e,next:u=>(i.value=a(u),i.done=u>=e,i)}}const Ak=e=>e!==null;function ga(e,{repeat:t,repeatType:n="loop"},r,s=1){const i=e.filter(Ak),a=s<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const Dk={decay:Pu,inertia:Pu,tween:_s,keyframes:_s,spring:zo};function ox(e){typeof e.type=="string"&&(e.type=Dk[e.type])}class md{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 Rk=e=>e/100;class ti extends md{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 r,s;const{motionValue:n}=this.options;n&&n.updatedAt!==qe.now()&&this.tick(qe.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(r=this.options).onStop)==null||s.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;ox(t);const{type:n=_s,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=t;let{keyframes:a}=t;const u=n||_s;u!==_s&&typeof a[0]!="number"&&(this.mixKeyframes=ci(Rk,nx(a[0],a[1])),a=[0,100]);const c=u({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=fd(c));const{calculatedDuration:d}=c;this.calculatedDuration=d,this.resolvedDuration=d+s,this.totalDuration=this.resolvedDuration*(r+1)-s,this.generator=c}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:r,totalDuration:s,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:d,repeat:f,repeatType:h,repeatDelay:p,type:v,onUpdate:w,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?g<0:g>s;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let y=this.currentTime,k=r;if(f){const P=Math.min(this.currentTime,s)/a;let M=Math.floor(P),T=P%1;!T&&P>=1&&(T=1),T===1&&M--,M=Math.min(M,f+1),!!(M%2)&&(h==="reverse"?(T=1-T,p&&(T-=p/a)):h==="mirror"&&(k=o)),y=Rt(0,1,T)*a}let S;x?(this.delayState.value=d[0],S=this.delayState):S=k.next(y),i&&!x&&(S.value=i(S.value));let{done:E}=S;!x&&u!==null&&(E=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return j&&v!==Pu&&(S.value=ga(d,this.options,b,this.speed)),w&&w(S.value),j&&this.finish(),S}then(t,n){return this.finished.then(t,n)}get duration(){return yt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+yt(t)}get time(){return yt(this.currentTime)}set time(t){t=ct(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 sx(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(qe.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=yt(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:t=wk,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(i=(s=this.options).onPlay)==null||i.call(s);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),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(qe.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 Vk(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Kn=e=>e*180/Math.PI,Cu=e=>{const t=Kn(Math.atan2(e[1],e[0]));return Eu(t)},Ik={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Cu,rotateZ:Cu,skewX:e=>Kn(Math.atan(e[1])),skewY:e=>Kn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Eu=e=>(e=e%360,e<0&&(e+=360),e),xh=Cu,yh=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),vh=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Fk={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:yh,scaleY:vh,scale:e=>(yh(e)+vh(e))/2,rotateX:e=>Eu(Kn(Math.atan2(e[6],e[5]))),rotateY:e=>Eu(Kn(Math.atan2(-e[2],e[0]))),rotateZ:xh,rotate:xh,skewX:e=>Kn(Math.atan(e[4])),skewY:e=>Kn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Tu(e){return e.includes("scale")?1:0}function Nu(e,t){if(!e||e==="none")return Tu(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=Fk,s=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Ik,s=a}if(!s)return Tu(t);const i=r[t],o=s[1].split(",").map(zk);return typeof i=="function"?i(o):o[i]}const Ok=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Nu(n,t)};function zk(e){return parseFloat(e.trim())}const es=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ts=new Set([...es,"pathRotation"]),wh=e=>e===Jr||e===O,Bk=new Set(["x","y","z"]),$k=es.filter(e=>!Bk.has(e));function Hk(e){const t=[];return $k.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const xn={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-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})=>Nu(t,"x"),y:(e,{transform:t})=>Nu(t,"y")};xn.translateX=xn.x;xn.translateY=xn.y;const Xn=new Set;let _u=!1,Mu=!1,Lu=!1;function ax(){if(Mu){const e=Array.from(Xn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=Hk(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Mu=!1,_u=!1,Xn.forEach(e=>e.complete(Lu)),Xn.clear()}function lx(){Xn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Mu=!0)})}function Uk(){Lu=!0,lx(),ax(),Lu=!1}class pd{constructor(t,n,r,s,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Xn.add(this),_u||(_u=!0,Q.read(lx),Q.resolveKeyframes(ax))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;if(t[0]===null){const i=s==null?void 0:s.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),s&&i===void 0&&s.set(t[0])}Vk(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Xn.delete(this)}cancel(){this.state==="scheduled"&&(Xn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Wk=e=>e.startsWith("--");function ux(e,t,n){Wk(t)?e.style.setProperty(t,n):e.style[t]=n}const Gk={};function gd(e,t){const n=I0(e);return()=>Gk[t]??n()}const xd=gd(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),cx=gd(()=>window.ViewTimeline!==void 0,"viewTimeline"),dx=gd(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ys=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,bh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ys([0,.65,.55,1]),circOut:ys([.55,0,1,.45]),backIn:ys([.31,.01,.66,-.59]),backOut:ys([.33,1.53,.69,.99])};function fx(e,t){if(e)return typeof e=="function"?dx()?rx(e,t):"ease-out":K0(e)?ys(e):Array.isArray(e)?e.map(n=>fx(n,t)||bh.easeOut):bh[e]}function Kk(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeOut",times:u}={},c=void 0){const d={[t]:n};u&&(d.offset=u);const f=fx(a,s);Array.isArray(f)&&(d.easing=f);const h={delay:r,duration:s,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(d,h)}function hx(e){return typeof e=="function"&&"applyToOptions"in e}function qk({type:e,...t}){return hx(e)&&dx()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class mx extends md{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:s,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:u}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,rd(typeof t.type!="string");const c=qk(t);this.animation=Kk(n,r,s,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=ga(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(d),ux(n,r,d),this.animation.cancel()}u==null||u(),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,r,s;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((s=(r=this.animation).commitStyles)==null||s.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return yt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+yt(t)}get time(){return yt(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ct(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:r,observe:s}){var i;return this.allowFlatten&&((i=this.animation.effect)==null||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&xd()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),it):s(this)}}const px={anticipate:H0,backInOut:$0,circInOut:W0};function Yk(e){return e in px}function Xk(e){typeof e.ease=="string"&&Yk(e.ease)&&(e.ease=px[e.ease])}const nl=10;class Zk extends mx{constructor(t){Xk(t),ox(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:s,element:i,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new ti({...o,autoplay:!1}),u=Math.max(nl,qe.now()-this.startTime),c=Rt(0,nl,u-nl),d=a.sample(u).value,{name:f}=this.options;i&&f&&ux(i,f,d),n.setWithVelocity(a.sample(Math.max(0,u-c)).value,d,c),a.stop()}}const kh=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(At.test(e)||e==="0")&&!e.startsWith("url("));function Qk(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 Jk(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=kh(s,t),a=kh(i,t);return!o||!a?!1:Qk(e)||(n==="spring"||hx(n))&&r}function Au(e){e.duration=0,e.type="keyframes"}const gx=new Set(["opacity","clipPath","filter","transform"]),eS=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function tS(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&eS.test(e[t]))return!0;return!1}const nS=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),rS=I0(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function sS(e){var f;const{motionValue:t,name:n,repeatDelay:r,repeatType:s,damping:i,type:o,keyframes:a}=e;if(!(((f=t==null?void 0:t.owner)==null?void 0:f.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:d}=t.owner.getProps();return rS()&&n&&(gx.has(n)||nS.has(n)&&tS(a))&&(n!=="transform"||!d)&&!c&&!r&&s!=="mirror"&&i!==0&&o!=="inertia"}const iS=40;class oS extends md{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",keyframes:a,name:u,motionValue:c,element:d,...f}){var v;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=qe.now();const h={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,name:u,motionValue:c,element:d,...f},p=(d==null?void 0:d.KeyframeResolver)||pd;this.keyframeResolver=new p(a,(w,b,g)=>this.onKeyframesResolved(w,b,h,!g),u,c,d),(v=this.keyframeResolver)==null||v.scheduleResolve()}onKeyframesResolved(t,n,r,s){var g,x;this.keyframeResolver=void 0;const{name:i,type:o,velocity:a,delay:u,isHandoff:c,onUpdate:d}=r;this.resolvedAt=qe.now();let f=!0;Jk(t,i,o,a)||(f=!1,(Ln.instantAnimations||!u)&&(d==null||d(ga(t,r,n))),t[0]=t[t.length-1],Au(r),r.repeat=0);const p={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>iS?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},v=f&&!c&&sS(p),w=(x=(g=p.motionValue)==null?void 0:g.owner)==null?void 0:x.current;let b;if(v)try{b=new Zk({...p,element:w})}catch{b=new ti(p)}else b=new ti(p);b.finished.then(()=>{this.notifyFinished()}).catch(it),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(),Uk()),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 xx(e,t,n,r=0,s=1){const i=Array.from(e).sort((c,d)=>c.sortNodePosition(d)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(i,o):s===1?i*r:a-i*r}const Sh=30,aS=e=>!isNaN(parseFloat(e)),Ms={current:void 0};class lS{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const s=qe.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=qe.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=aS(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 sd);const r=this.events[t].add(n);return t==="change"?()=>{r(),Q.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}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 Ms.current&&Ms.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=qe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Sh)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Sh);return id(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 _t(e,t){return new lS(e,t)}function yd(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function vd(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?yd(n,e):n}const uS={type:"spring",stiffness:500,damping:25,restSpeed:10},cS=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),dS={type:"keyframes",duration:.8},fS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},hS=(e,{keyframes:t})=>t.length>2?dS:ts.has(e)?e.startsWith("scale")?cS(t[1]):uS:fS,mS=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function pS(e){for(const t in e)if(!mS.has(t))return!0;return!1}const wd=(e,t,n,r={},s,i)=>o=>{const a=vd(r,e)||{},u=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-ct(u);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};pS(a)||Object.assign(d,hS(e,d)),d.duration&&(d.duration=ct(d.duration)),d.repeatDelay&&(d.repeatDelay=ct(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(Au(d),d.delay===0&&(f=!0)),(Ln.instantAnimations||Ln.skipAnimations||s!=null&&s.shouldSkipAnimations||a.skipAnimations)&&(f=!0,Au(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,f&&!i&&t.get()!==void 0){const h=ga(d.keyframes,a);if(h!==void 0){Q.update(()=>{d.onUpdate(h),d.onComplete()});return}}return a.isSync?new ti(d):new oS(d)},gS=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function xS(e){const t=gS.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function yx(e,t,n=1){const[r,s]=xS(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return D0(o)?parseFloat(o):o}return ld(s)?yx(s,t,n+1):s}function jh(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function bd(e,t,n,r){if(typeof t=="function"){const[s,i]=jh(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=jh(r);t=t(n!==void 0?n:e.custom,s,i)}return t}function Zn(e,t,n){const r=e.getProps();return bd(r,t,n!==void 0?n:r.custom,e)}const vx=new Set(["width","height","top","left","right","bottom",...es]),Du=e=>Array.isArray(e);function yS(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,_t(n))}function vS(e){return Du(e)?e[e.length-1]||0:e}function wS(e,t){const n=Zn(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=vS(i[o]);yS(e,o,a)}}const Me=e=>!!(e&&e.getVelocity);function bS(e){return!!(Me(e)&&e.add)}function Ru(e,t){const n=e.getValue("willChange");if(bS(n))return n.add(t);if(!n&&Ln.WillChange){const r=new Ln.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function kd(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const kS="framerAppearId",wx="data-"+kd(kS);function bx(e){return e.props[wx]}function SS({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function kx(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i,transitionEnd:o,...a}=t;const u=e.getDefaultTransition();i=i?yd(i,u):u;const c=i==null?void 0:i.reduceMotion,d=i==null?void 0:i.skipAnimations;r&&(i=r);const f=[],h=s&&e.animationState&&e.animationState.getState()[s],p=i==null?void 0:i.path;p&&p.animateVisualElement(e,a,i,n,f);for(const v in a){const w=e.getValue(v,e.latestValues[v]??null),b=a[v];if(b===void 0||h&&SS(h,v))continue;const g={delay:n,...vd(i||{},v)};d&&(g.skipAnimations=!0);const x=w.get();if(x!==void 0&&!w.isAnimating()&&!Array.isArray(b)&&b===x&&!g.velocity){Q.update(()=>w.set(b));continue}let y=!1;if(window.MotionHandoffAnimation){const E=bx(e);if(E){const j=window.MotionHandoffAnimation(E,v,Q);j!==null&&(g.startTime=j,y=!0)}}Ru(e,v);const k=c??e.shouldReduceMotion;w.start(wd(v,w,b,k&&vx.has(v)?{type:!1}:g,e,y));const S=w.animation;S&&f.push(S)}if(o){const v=()=>Q.update(()=>{o&&wS(e,o)});f.length?Promise.all(f).then(v):v()}return f}function Vu(e,t,n={}){var u;const r=Zn(e,t,n.type==="exit"?(u=e.presenceContext)==null?void 0:u.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const i=r?()=>Promise.all(kx(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:h}=s;return jS(e,t,c,d,f,h,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[c,d]=a==="beforeChildren"?[i,o]:[o,i];return c().then(()=>d())}else return Promise.all([i(),o(n.delay)])}function jS(e,t,n=0,r=0,s=0,i=1,o){const a=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),a.push(Vu(u,t,{...o,delay:n+(typeof r=="function"?0:r)+xx(e.variantChildren,u,r,s,i)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(a)}function PS(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>Vu(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=Vu(e,t,n);else{const s=typeof t=="function"?Zn(e,t,n.custom):t;r=Promise.all(kx(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const CS={test:e=>e==="auto",parse:e=>e},Sx=e=>t=>t.test(e),jx=[Jr,O,Ut,Gt,tk,ek,CS],Ph=e=>jx.find(Sx(e));function ES(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||V0(e):!0}const TS=new Set(["brightness","contrast","saturate","opacity"]);function NS(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ud)||[];if(!r)return e;const s=n.replace(r,"");let i=TS.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const _S=/\b([a-z-]*)\(.*?\)/gu,Iu={...At,getAnimatableNone:e=>{const t=e.match(_S);return t?t.map(NS).join(" "):e}},Fu={...At,getAnimatableNone:e=>{const t=At.parse(e);return At.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Ch={...Jr,transform:Math.round},MS={rotate:Gt,pathRotation:Gt,rotateX:Gt,rotateY:Gt,rotateZ:Gt,scale:Di,scaleX:Di,scaleY:Di,scaleZ:Di,skew:Gt,skewX:Gt,skewY:Gt,distance:O,translateX:O,translateY:O,translateZ:O,x:O,y:O,z:O,perspective:O,transformPerspective:O,opacity:ei,originX:fh,originY:fh,originZ:O},Bo={borderWidth:O,borderTopWidth:O,borderRightWidth:O,borderBottomWidth:O,borderLeftWidth:O,borderRadius:O,borderTopLeftRadius:O,borderTopRightRadius:O,borderBottomRightRadius:O,borderBottomLeftRadius:O,width:O,maxWidth:O,height:O,maxHeight:O,top:O,right:O,bottom:O,left:O,inset:O,insetBlock:O,insetBlockStart:O,insetBlockEnd:O,insetInline:O,insetInlineStart:O,insetInlineEnd:O,padding:O,paddingTop:O,paddingRight:O,paddingBottom:O,paddingLeft:O,paddingBlock:O,paddingBlockStart:O,paddingBlockEnd:O,paddingInline:O,paddingInlineStart:O,paddingInlineEnd:O,margin:O,marginTop:O,marginRight:O,marginBottom:O,marginLeft:O,marginBlock:O,marginBlockStart:O,marginBlockEnd:O,marginInline:O,marginInlineStart:O,marginInlineEnd:O,fontSize:O,backgroundPositionX:O,backgroundPositionY:O,...MS,zIndex:Ch,fillOpacity:ei,strokeOpacity:ei,numOctaves:Ch},LS={...Bo,color:Ce,backgroundColor:Ce,outlineColor:Ce,fill:Ce,stroke:Ce,borderColor:Ce,borderTopColor:Ce,borderRightColor:Ce,borderBottomColor:Ce,borderLeftColor:Ce,filter:Iu,WebkitFilter:Iu,mask:Fu,WebkitMask:Fu},Px=e=>LS[e],AS=new Set([Iu,Fu]);function Cx(e,t){let n=Px(e);return AS.has(n)||(n=At),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const DS=new Set(["auto","none","0"]);function RS(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!DS.has(i)&&Wr(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=Cx(n,s)}class VS extends pd{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=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(),ld(f))){const h=yx(f,n.current);h!==void 0&&(t[d]=h),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!vx.has(r)||t.length!==2)return;const[s,i]=t,o=Ph(s),a=Ph(i),u=dh(s),c=dh(i);if(u!==c&&xn[r]){this.needsMeasurement=!0;return}if(o!==a)if(wh(o)&&wh(a))for(let d=0;d<t.length;d++){const f=t[d];typeof f=="string"&&(t[d]=parseFloat(f))}else xn[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)(t[s]===null||ES(t[s]))&&r.push(s);r.length&&RS(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=xn[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const i=r.length-1,o=r[i];r[i]=xn[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([u,c])=>{t.getValue(u).set(c)}),this.resolveNoneKeyframes()}}const Sd=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function Ex(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const s=document.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(r=>r!=null)}const Ou=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Ls(e){return R0(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Gr,cancel:Tx}=q0(queueMicrotask,!1),Ct={x:!1,y:!1};function Nx(){return Ct.x||Ct.y}function IS(e){return e==="x"||e==="y"?Ct[e]?null:(Ct[e]=!0,()=>{Ct[e]=!1}):Ct.x||Ct.y?null:(Ct.x=Ct.y=!0,()=>{Ct.x=Ct.y=!1})}function _x(e,t){const n=Ex(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function FS(e){return!(e.pointerType==="touch"||Nx())}function OS(e,t,n={}){const[r,s,i]=_x(e,n);return r.forEach(o=>{let a=!1,u=!1,c;const d=()=>{o.removeEventListener("pointerleave",v)},f=b=>{c&&(c(b),c=void 0),d()},h=b=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),u&&(u=!1,f(b))},p=()=>{a=!0,window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",h,s)},v=b=>{if(b.pointerType!=="touch"){if(a){u=!0;return}f(b)}},w=b=>{if(!FS(b))return;u=!1;const g=t(o,b);typeof g=="function"&&(c=g,o.addEventListener("pointerleave",v,s))};o.addEventListener("pointerenter",w,s),o.addEventListener("pointerdown",p,s)}),i}const Mx=(e,t)=>t?e===t?!0:Mx(e,t.parentElement):!1,jd=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,zS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function BS(e){return zS.has(e.tagName)||e.isContentEditable===!0}const $S=new Set(["INPUT","SELECT","TEXTAREA"]);function HS(e){return $S.has(e.tagName)||e.isContentEditable===!0}const to=new WeakSet;function Eh(e){return t=>{t.key==="Enter"&&e(t)}}function rl(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const US=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Eh(()=>{if(to.has(n))return;rl(n,"down");const s=Eh(()=>{rl(n,"up")}),i=()=>rl(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Th(e){return jd(e)&&!Nx()}const Nh=new WeakSet;function WS(e,t,n={}){const[r,s,i]=_x(e,n),o=a=>{const u=a.currentTarget;if(!Th(a)||Nh.has(a))return;to.add(u),n.stopPropagation&&Nh.add(a);const c=t(u,a),d={...s,capture:!0},f=(v,w)=>{window.removeEventListener("pointerup",h,d),window.removeEventListener("pointercancel",p,d),to.has(u)&&to.delete(u),Th(v)&&typeof c=="function"&&c(v,{success:w})},h=v=>{f(v,u===window||u===document||n.useGlobalTarget||Mx(u,v.target))},p=v=>{f(v,!1)};window.addEventListener("pointerup",h,d),window.addEventListener("pointercancel",p,d)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),Ls(a)&&(a.addEventListener("focus",c=>US(c,s)),!BS(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function Pd(e){return R0(e)&&"ownerSVGElement"in e}const no=new WeakMap;let ln;const Lx=(e,t,n)=>(r,s)=>s&&s[0]?s[0][e+"Size"]:Pd(r)&&"getBBox"in r?r.getBBox()[t]:r[n],GS=Lx("inline","width","offsetWidth"),KS=Lx("block","height","offsetHeight");function qS({target:e,borderBoxSize:t}){var n;(n=no.get(e))==null||n.forEach(r=>{r(e,{get width(){return GS(e,t)},get height(){return KS(e,t)}})})}function YS(e){e.forEach(qS)}function XS(){typeof ResizeObserver>"u"||(ln=new ResizeObserver(YS))}function ZS(e,t){ln||XS();const n=Ex(e);return n.forEach(r=>{let s=no.get(r);s||(s=new Set,no.set(r,s)),s.add(t),ln==null||ln.observe(r)}),()=>{n.forEach(r=>{const s=no.get(r);s==null||s.delete(t),s!=null&&s.size||ln==null||ln.unobserve(r)})}}const ro=new Set;let Er;function QS(){Er=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};ro.forEach(t=>t(e))},window.addEventListener("resize",Er)}function JS(e){return ro.add(e),Er||QS(),()=>{ro.delete(e),!ro.size&&typeof Er=="function"&&(window.removeEventListener("resize",Er),Er=void 0)}}function zu(e,t){return typeof e=="function"?JS(e):ZS(e,t)}function Ax(e,t){let n;const r=()=>{const{currentTime:s}=t,o=(s===null?0:s.value)/100;n!==o&&e(o),n=o};return Q.preUpdate(r,!0),()=>kt(r)}function e2(e){return Pd(e)&&e.tagName==="svg"}function t2(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],s=e[1+n],i=e[2+n],o=e[3+n],a=hd(s,i,o);return t?a(r):a}function n2(e,t,n={}){const r=e.get();let s=null,i=r,o;const a=typeof r=="string"?r.replace(/[\d.-]/g,""):void 0,u=()=>{s&&(s.stop(),s=null),e.animation=void 0},c=()=>{const f=_h(e.get()),h=_h(i);if(f===h){u();return}const p=s?s.getGeneratorVelocity():e.getVelocity();u(),s=new ti({keyframes:[f,h],velocity:p,type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:o})},d=()=>{var f;c(),e.animation=s??void 0,(f=e.events.animationStart)==null||f.notify(),s==null||s.then(()=>{var h;e.animation=void 0,(h=e.events.animationComplete)==null||h.notify()})};if(e.attach((f,h)=>{i=f,o=p=>h(sl(p,a)),Q.postRender(d)},u),Me(t)){let f=n.skipInitialAnimation===!0;const h=t.on("change",v=>{f?(f=!1,e.jump(sl(v,a),!1)):e.set(sl(v,a))}),p=e.on("destroy",h);return()=>{h(),p()}}return u}function sl(e,t){return t?e+t:e}function _h(e){return typeof e=="number"?e:parseFloat(e)}const r2=[...jx,Ce,At],s2=e=>r2.find(Sx(e)),Mh=()=>({translate:0,scale:1,origin:0,originPoint:0}),Tr=()=>({x:Mh(),y:Mh()}),Lh=()=>({min:0,max:0}),Te=()=>({x:Lh(),y:Lh()}),i2=new WeakMap;function xa(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ni(e){return typeof e=="string"||Array.isArray(e)}const Cd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ed=["initial",...Cd];function ya(e){return xa(e.animate)||Ed.some(t=>ni(e[t]))}function Dx(e){return!!(ya(e)||e.variants)}function o2(e,t,n){for(const r in t){const s=t[r],i=n[r];if(Me(s))e.addValue(r,s);else if(Me(i))e.addValue(r,_t(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,_t(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const $o={current:null},Td={current:!1},a2=typeof window<"u";function Rx(){if(Td.current=!0,!!a2)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>$o.current=e.matches;e.addEventListener("change",t),t()}else $o.current=!1}const Ah=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Ho={};function Vx(e){Ho=e}function l2(){return Ho}class u2{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,skipAnimations:i,blockInitialAnimation:o,visualState:a},u={}){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=pd,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 p=qe.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,Q.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=ya(n),this.isVariantNode=Dx(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in h){const v=h[p];c[p]!==void 0&&Me(v)&&v.set(c[p])}}mount(t){var n,r;if(this.hasBeenMounted)for(const s in this.initialValues)(n=this.values.get(s))==null||n.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=t,i2.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((s,i)=>this.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Td.current||Rx(),this.shouldReduceMotion=$o.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),kt(this.notifyUpdate),kt(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 r=this.features[n];r&&(r.unmount(),r.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&&gx.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:u,ease:c,duration:d}=n.accelerate,f=new mx({element:this.current,name:t,keyframes:a,times:u,ease:c,duration:ct(d)}),h=o(f);this.valueSubscriptions.set(t,()=>{h(),f.cancel()});return}const r=ts.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Q.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i&&i()})}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 Ho){const n=Ho[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Te()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Ah.length;r++){const s=Ah[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,o=t[i];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=o2(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=_t(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(D0(r)||V0(r))?r=parseFloat(r):!s2(r)&&At.test(n)&&(r=Cx(t,n)),this.setBaseTarget(t,Me(r)?r.get():r)),Me(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=bd(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!Me(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new sd),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Gr.render(this.render)}}class Ix extends u2{constructor(){super(...arguments),this.KeyframeResolver=VS}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Me(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Vn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Fx({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function c2({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function d2(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function il(e){return e===void 0||e===1}function Bu({scale:e,scaleX:t,scaleY:n}){return!il(e)||!il(t)||!il(n)}function $n(e){return Bu(e)||Ox(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ox(e){return Dh(e.x)||Dh(e.y)}function Dh(e){return e&&e!=="0%"}function Uo(e,t,n){const r=e-n,s=t*r;return n+s}function Rh(e,t,n,r,s){return s!==void 0&&(e=Uo(e,s,r)),Uo(e,n,r)+t}function $u(e,t=0,n=1,r,s){e.min=Rh(e.min,t,n,r,s),e.max=Rh(e.max,t,n,r,s)}function zx(e,{x:t,y:n}){$u(e.x,t.translate,t.scale,t.originPoint),$u(e.y,n.translate,n.scale,n.originPoint)}const Vh=.999999999999,Ih=1.0000000000001;function f2(e,t,n,r=!1){var a;const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let u=0;u<s;u++){i=n[u],o=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(zt(e.x,-i.scroll.offset.x),zt(e.y,-i.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,zx(e,o)),r&&$n(i.latestValues)&&so(e,i.latestValues,(a=i.layout)==null?void 0:a.layoutBox))}t.x<Ih&&t.x>Vh&&(t.x=1),t.y<Ih&&t.y>Vh&&(t.y=1)}function zt(e,t){e.min+=t,e.max+=t}function Fh(e,t,n,r,s=.5){const i=le(e.min,e.max,s);$u(e,t,n,i,r)}function Oh(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function so(e,t,n){const r=n??e;Fh(e.x,Oh(t.x,r.x),t.scaleX,t.scale,t.originX),Fh(e.y,Oh(t.y,r.y),t.scaleY,t.scale,t.originY)}function Bx(e,t){return Fx(d2(e.getBoundingClientRect(),t))}function h2(e,t,n){const r=Bx(e,n),{scroll:s}=t;return s&&(zt(r.x,s.offset.x),zt(r.y,s.offset.y)),r}const m2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},p2=es.length;function g2(e,t,n){let r="",s=!0;for(let o=0;o<p2;o++){const a=es[o],u=e[a];if(u===void 0)continue;let c=!0;if(typeof u=="number")c=u===(a.startsWith("scale")?1:0);else{const d=parseFloat(u);c=a.startsWith("scale")?d===1:d===0}if(!c||n){const d=Ou(u,Bo[a]);if(!c){s=!1;const f=m2[a]||a;r+=`${f}(${d}) `}n&&(t[a]=d)}}const i=e.pathRotation;return i&&(s=!1,r+=`rotate(${Ou(i,Bo.pathRotation)}) `),r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Nd(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let o=!1,a=!1;for(const u in t){const c=t[u];if(ts.has(u)){o=!0;continue}else if(X0(u)){s[u]=c;continue}else{const d=Ou(c,Bo[u]);u.startsWith("origin")?(a=!0,i[u]=d):r[u]=d}}if(t.transform||(o||n?r.transform=g2(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:u="50%",originY:c="50%",originZ:d=0}=i;r.transformOrigin=`${u} ${c} ${d}`}}function $x(e,{style:t,vars:n},r,s){const i=e.style;let o;for(o in t)i[o]=t[o];s==null||s.applyProjectionStyles(i,r);for(o in n)i.setProperty(o,n[o])}function zh(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(O.test(e))e=parseFloat(e);else return e;const n=zh(e,t.target.x),r=zh(e,t.target.y);return`${n}% ${r}%`}},x2={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=At.parse(e);if(s.length>5)return r;const i=At.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,u=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=u;const c=le(a,u,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}},Hu={borderRadius:{...ds,applyTo:[...Sd]},borderTopLeftRadius:ds,borderTopRightRadius:ds,borderBottomLeftRadius:ds,borderBottomRightRadius:ds,boxShadow:x2};function Hx(e,{layout:t,layoutId:n}){return ts.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Hu[e]||e==="opacity")}function _d(e,t,n){var o;const r=e.style,s=t==null?void 0:t.style,i={};if(!r)return i;for(const a in r)(Me(r[a])||s&&Me(s[a])||Hx(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(i[a]=r[a]);return i}function y2(e){return window.getComputedStyle(e)}class v2 extends Ix{constructor(){super(...arguments),this.type="html",this.renderInstance=$x}readValueFromInstance(t,n){var r;if(ts.has(n))return(r=this.projection)!=null&&r.isProjecting?Tu(n):Ok(t,n);{const s=y2(t),i=(X0(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Bx(t,n)}build(t,n,r){Nd(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return _d(t,n,r)}}const w2={offset:"stroke-dashoffset",array:"stroke-dasharray"},b2={offset:"strokeDashoffset",array:"strokeDasharray"};function k2(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?w2:b2;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const S2=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Ux(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:o=0,...a},u,c,d){if(Nd(e,a,c),u){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 p of S2)f[p]!==void 0&&(h[p]=f[p],delete f[p]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),s!==void 0&&k2(f,s,i,o,!1)}const Wx=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"]),Gx=e=>typeof e=="string"&&e.toLowerCase()==="svg";function j2(e,t,n,r){$x(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(Wx.has(s)?s:kd(s),t.attrs[s])}function Kx(e,t,n){const r=_d(e,t,n);for(const s in e)if(Me(e[s])||Me(t[s])){const i=es.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}class P2 extends Ix{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Te}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ts.has(n)){const r=Px(n);return r&&r.default||0}return n=Wx.has(n)?n:kd(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Kx(t,n,r)}build(t,n,r){Ux(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){j2(t,n,r,s)}mount(t){this.isSVGTag=Gx(t.tagName),super.mount(t)}}const C2=Ed.length;function qx(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?qx(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<C2;n++){const r=Ed[n],s=e.props[r];(ni(s)||s===!1)&&(t[r]=s)}return t}function Yx(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const E2=[...Cd].reverse(),T2=Cd.length;function N2(e){return t=>Promise.all(t.map(({animation:n,options:r})=>PS(e,n,r)))}function _2(e){let t=N2(e),n=Bh(),r=!0,s=!1;const i=c=>(d,f)=>{var p;const h=Zn(e,f,c==="exit"?(p=e.presenceContext)==null?void 0:p.custom:void 0);if(h){const{transition:v,transitionEnd:w,...b}=h;d={...d,...b,...w}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,f=qx(e.parent)||{},h=[],p=new Set;let v={},w=1/0;for(let g=0;g<T2;g++){const x=E2[g],y=n[x],k=d[x]!==void 0?d[x]:f[x],S=ni(k),E=x===c?y.isActive:null;E===!1&&(w=g);let j=k===f[x]&&k!==d[x]&&S;if(j&&(r||s)&&e.manuallyAnimateOnMount&&(j=!1),y.protectedKeys={...v},!y.isActive&&E===null||!k&&!y.prevProp||xa(k)||typeof k=="boolean")continue;if(x==="exit"&&y.isActive&&E!==!0){y.prevResolvedValues&&(v={...v,...y.prevResolvedValues});continue}const P=M2(y.prevProp,k);let M=P||x===c&&y.isActive&&!j&&S||g>w&&S,T=!1;const B=Array.isArray(k)?k:[k];let H=B.reduce(i(x),{});E===!1&&(H={});const{prevResolvedValues:ee={}}=y,U={...ee,...H},G=N=>{M=!0,p.has(N)&&(T=!0,p.delete(N)),y.needsAnimating[N]=!0;const A=e.getValue(N);A&&(A.liveStyle=!1)};for(const N in U){const A=H[N],L=ee[N];if(v.hasOwnProperty(N))continue;let F=!1;Du(A)&&Du(L)?F=!Yx(A,L)||P:F=A!==L,F?A!=null?G(N):p.add(N):A!==void 0&&p.has(N)?G(N):y.protectedKeys[N]=!0}y.prevProp=k,y.prevResolvedValues=H,y.isActive&&(v={...v,...H}),(r||s)&&e.blockInitialAnimation&&(M=!1);const q=j&&P;M&&(!q||T)&&h.push(...B.map(N=>{const A={type:x};if(typeof N=="string"&&(r||s)&&!q&&e.manuallyAnimateOnMount&&e.parent){const{parent:L}=e,F=Zn(L,N);if(L.enteringChildren&&F){const{delayChildren:C}=F.transition||{};A.delay=xx(L.enteringChildren,e,C)}}return{animation:N,options:A}}))}if(p.size){const g={};if(typeof d.initial!="boolean"){const x=Zn(e,Array.isArray(d.initial)?d.initial[0]:d.initial);x&&x.transition&&(g.transition=x.transition)}p.forEach(x=>{const y=e.getBaseTarget(x),k=e.getValue(x);k&&(k.liveStyle=!0),g[x]=y??null}),h.push({animation:g})}let b=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,s=!1,b?t(h):Promise.resolve()}function u(c,d){var h;if(n[c].isActive===d)return Promise.resolve();(h=e.variantChildren)==null||h.forEach(p=>{var v;return(v=p.animationState)==null?void 0:v.setActive(c,d)}),n[c].isActive=d;const f=a(c);for(const p in n)n[p].protectedKeys={};return f}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Bh(),s=!0}}}function M2(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Yx(t,e):!1}function Fn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Bh(){return{animate:Fn(!0),whileInView:Fn(),whileHover:Fn(),whileTap:Fn(),whileDrag:Fn(),whileFocus:Fn(),exit:Fn()}}function Uu(e,t){e.min=t.min,e.max=t.max}function Pt(e,t){Uu(e.x,t.x),Uu(e.y,t.y)}function $h(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Xx=1e-4,L2=1-Xx,A2=1+Xx,Zx=.01,D2=0-Zx,R2=0+Zx;function Ye(e){return e.max-e.min}function V2(e,t,n){return Math.abs(e-t)<=n}function Hh(e,t,n,r=.5){e.origin=r,e.originPoint=le(t.min,t.max,e.origin),e.scale=Ye(n)/Ye(t),e.translate=le(n.min,n.max,e.origin)-e.originPoint,(e.scale>=L2&&e.scale<=A2||isNaN(e.scale))&&(e.scale=1),(e.translate>=D2&&e.translate<=R2||isNaN(e.translate))&&(e.translate=0)}function As(e,t,n,r){Hh(e.x,t.x,n.x,r?r.originX:void 0),Hh(e.y,t.y,n.y,r?r.originY:void 0)}function Uh(e,t,n,r=0){const s=r?le(n.min,n.max,r):n.min;e.min=s+t.min,e.max=e.min+Ye(t)}function I2(e,t,n,r){Uh(e.x,t.x,n.x,r==null?void 0:r.x),Uh(e.y,t.y,n.y,r==null?void 0:r.y)}function Wh(e,t,n,r=0){const s=r?le(n.min,n.max,r):n.min;e.min=t.min-s,e.max=e.min+Ye(t)}function Wo(e,t,n,r){Wh(e.x,t.x,n.x,r==null?void 0:r.x),Wh(e.y,t.y,n.y,r==null?void 0:r.y)}function Gh(e,t,n,r,s){return e-=t,e=Uo(e,1/n,r),s!==void 0&&(e=Uo(e,1/s,r)),e}function F2(e,t=0,n=1,r=.5,s,i=e,o=e){if(Ut.test(t)&&(t=parseFloat(t),t=le(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=le(i.min,i.max,r);e===i&&(a-=t),e.min=Gh(e.min,t,n,a,s),e.max=Gh(e.max,t,n,a,s)}function Kh(e,t,[n,r,s],i,o){F2(e,t[n],t[r],t[s],t.scale,i,o)}const O2=["x","scaleX","originX"],z2=["y","scaleY","originY"];function qh(e,t,n,r){Kh(e.x,t,O2,n?n.x:void 0,r?r.x:void 0),Kh(e.y,t,z2,n?n.y:void 0,r?r.y:void 0)}function Yh(e){return e.translate===0&&e.scale===1}function Qx(e){return Yh(e.x)&&Yh(e.y)}function Xh(e,t){return e.min===t.min&&e.max===t.max}function B2(e,t){return Xh(e.x,t.x)&&Xh(e.y,t.y)}function Zh(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Jx(e,t){return Zh(e.x,t.x)&&Zh(e.y,t.y)}function Qh(e){return Ye(e.x)/Ye(e.y)}function Jh(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Ot(e){return[e("x"),e("y")]}function $2(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:d,pathRotation:f,rotateX:h,rotateY:p,skewX:v,skewY:w}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotate(${f}deg) `),h&&(r+=`rotateX(${h}deg) `),p&&(r+=`rotateY(${p}deg) `),v&&(r+=`skewX(${v}deg) `),w&&(r+=`skewY(${w}deg) `)}const a=e.x.scale*t.x,u=e.y.scale*t.y;return(a!==1||u!==1)&&(r+=`scale(${a}, ${u})`),r||"none"}const H2=Sd.length,em=e=>typeof e=="string"?parseFloat(e):e,tm=e=>typeof e=="number"||O.test(e);function U2(e,t,n,r,s,i){s?(e.opacity=le(0,n.opacity??1,W2(r)),e.opacityExit=le(t.opacity??1,0,G2(r))):i&&(e.opacity=le(t.opacity??1,n.opacity??1,r));for(let o=0;o<H2;o++){const a=Sd[o];let u=nm(t,a),c=nm(n,a);if(u===void 0&&c===void 0)continue;u||(u=0),c||(c=0),u===0||c===0||tm(u)===tm(c)?(e[a]=Math.max(le(em(u),em(c),r),0),(Ut.test(c)||Ut.test(u))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=le(t.rotate||0,n.rotate||0,r))}function nm(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const W2=ey(0,.5,U0),G2=ey(.5,.95,it);function ey(e,t,n){return r=>r<e?0:r>t?1:n(Ur(e,t,r))}function K2(e,t,n){const r=Me(e)?e:_t(e);return r.start(wd("",r,t,n)),r.animation}function ri(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}const q2=(e,t)=>e.depth-t.depth;class Y2{constructor(){this.children=[],this.isDirty=!1}add(t){nd(this.children,t),this.isDirty=!0}remove(t){Io(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(q2),this.isDirty=!1,this.children.forEach(t)}}function X2(e,t){const n=qe.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(kt(r),e(i-t))};return Q.setup(r,!0),()=>kt(r)}function io(e){return Me(e)?e.get():e}class Z2{constructor(){this.members=[]}add(t){nd(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const s=r.instance;(!s||s.isConnected===!1)&&!r.snapshot&&(Io(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(Io(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 r=this.members.indexOf(t)-1;r>=0;r--){const s=this.members[r];if(s.isPresent!==!1&&((n=s.instance)==null?void 0:n.isConnected)!==!1)return this.promote(s),!0}return!1}promote(t,n){var s;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:i}=r.options,{layoutDependency:o}=t.options;(i===void 0||i!==o)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(s=t.root)!=null&&s.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,s,i,o;(r=(n=t.options).onExitComplete)==null||r.call(n),(o=(s=t.resumingFrom)==null?void 0:(i=s.options).onExitComplete)==null||o.call(i)})}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 oo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ol=["","X","Y","Z"],Q2=1e3;let J2=0;function al(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ty(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=bx(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Q,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ty(r)}function ny({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=J2++,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(nj),this.nodes.forEach(lj),this.nodes.forEach(uj),this.nodes.forEach(rj)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new Y2)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new sd),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const u=this.eventHandlers.get(o);u&&u.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=Pd(o)&&!e2(o),this.instance=o;const{layoutId:a,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||a)&&(this.isLayoutDirty=!0),e){let d,f=0;const h=()=>this.root.updateBlockedByResize=!1;Q.read(()=>{f=window.innerWidth}),e(o,()=>{const p=window.innerWidth;p!==f&&(f=p,this.root.updateBlockedByResize=!0,d&&d(),d=X2(h,250),oo.hasAnimatedSinceResize&&(oo.hasAnimatedSinceResize=!1,this.nodes.forEach(im)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||mj,{onLayoutAnimationStart:w,onLayoutAnimationComplete:b}=c.getProps(),g=!this.targetLayout||!Jx(this.targetLayout,p),x=!f&&h;if(this.options.layoutRoot||this.resumeFrom||x||f&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const y={...vd(v,"layout"),onPlay:w,onComplete:b};(c.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(d,x,y.path)}else f||im(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),kt(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(cj),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ty(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:a,layout:u}=this.options;if(a===void 0&&!u)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const u=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),u&&this.nodes.forEach(ij),this.nodes.forEach(rm);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(sm);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(oj),this.nodes.forEach(aj),this.nodes.forEach(ej),this.nodes.forEach(tj)):this.nodes.forEach(sm),this.clearAllSnapshots();const a=qe.now();Le.delta=Rt(0,1e3/60,a-Le.timestamp),Le.timestamp=a,Le.isProcessing=!0,Za.update.process(Le),Za.preRender.process(Le),Za.render.process(Le),Le.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Gr.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sj),this.sharedNodes.forEach(dj)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Q.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Q.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ye(this.snapshot.measuredBox.x)&&!Ye(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 u=0;u<this.path.length;u++)this.path[u].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Te()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Qx(this.projectionDelta),u=this.getTransformTemplate(),c=u?u(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;o&&this.instance&&(a||$n(this.latestValues)||d)&&(s(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let u=this.removeElementScroll(a);return o&&(u=this.removeTransform(u)),pj(u),{animationId:this.root.animationId,measuredBox:a,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:o}=this.options;if(!o)return Te();const a=o.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(gj))){const{scroll:d}=this.root;d&&(zt(a.x,d.offset.x),zt(a.y,d.offset.y))}return a}removeElementScroll(o){var u;const a=Te();if(Pt(a,o),(u=this.scroll)!=null&&u.wasRoot)return a;for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:f,options:h}=d;d!==this.root&&f&&h.layoutScroll&&(f.wasRoot&&Pt(a,o),zt(a.x,f.offset.x),zt(a.y,f.offset.y))}return a}applyTransform(o,a=!1,u){var d,f;const c=u||Te();Pt(c,o);for(let h=0;h<this.path.length;h++){const p=this.path[h];!a&&p.options.layoutScroll&&p.scroll&&p!==p.root&&(zt(c.x,-p.scroll.offset.x),zt(c.y,-p.scroll.offset.y)),$n(p.latestValues)&&so(c,p.latestValues,(d=p.layout)==null?void 0:d.layoutBox)}return $n(this.latestValues)&&so(c,this.latestValues,(f=this.layout)==null?void 0:f.layoutBox),c}removeTransform(o){var u;const a=Te();Pt(a,o);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!$n(d.latestValues))continue;let f;d.instance&&(Bu(d.latestValues)&&d.updateSnapshot(),f=Te(),Pt(f,d.measurePageBox())),qh(a,d.latestValues,(u=d.snapshot)==null?void 0:u.layoutBox,f)}return $n(this.latestValues)&&qh(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.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!==Le.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var p;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==a;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!this.layout||!(d||f))return;this.resolvedRelativeTargetAt=Le.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=Te(),this.targetWithTransforms=Te()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),I2(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Pt(this.target,this.layout.layoutBox),zx(this.target,this.targetDelta)):Pt(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||Bu(this.parent.latestValues)||Ox(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,u){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Te(),this.relativeTargetOrigin=Te(),Wo(this.relativeTargetOrigin,a,u,this.options.layoutAnchor||void 0),Pt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var v;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let u=!0;if((this.isProjectionDirty||(v=this.parent)!=null&&v.isProjectionDirty)&&(u=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Le.timestamp&&(u=!1),u)return;const{layout:c,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||!(c||d))return;Pt(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;f2(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Te());const{target:p}=o;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():($h(this.prevProjectionDelta.x,this.projectionDelta.x),$h(this.prevProjectionDelta.y,this.projectionDelta.y)),As(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!Jh(this.projectionDelta.x,this.prevProjectionDelta.x)||!Jh(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Tr(),this.projectionDelta=Tr(),this.projectionDeltaWithTransform=Tr()}setAnimationOrigin(o,a=!1,u){const c=this.snapshot,d=c?c.latestValues:{},f={...this.latestValues},h=Tr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const p=Te(),v=c?c.source:void 0,w=this.layout?this.layout.source:void 0,b=v!==w,g=this.getStack(),x=!g||g.members.length<=1,y=!!(b&&!x&&this.options.crossfade===!0&&!this.path.some(hj));this.animationProgress=0;let k;const S=u==null?void 0:u.interpolateProjection(o);this.mixTargetDelta=E=>{const j=E/1e3,P=S==null?void 0:S(j);P?(h.x.translate=P.x,h.x.scale=le(o.x.scale,1,j),h.x.origin=o.x.origin,h.x.originPoint=o.x.originPoint,h.y.translate=P.y,h.y.scale=le(o.y.scale,1,j),h.y.origin=o.y.origin,h.y.originPoint=o.y.originPoint):(om(h.x,o.x,j),om(h.y,o.y,j)),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Wo(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),fj(this.relativeTarget,this.relativeTargetOrigin,p,j),k&&B2(this.relativeTarget,k)&&(this.isProjectionDirty=!1),k||(k=Te()),Pt(k,this.relativeTarget)),b&&(this.animationValues=f,U2(f,d,this.latestValues,j,y,x)),P&&P.rotate!==void 0&&(this.animationValues||(this.animationValues=f),this.animationValues.pathRotation=P.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=j},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,u,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(u=this.resumingFrom)==null?void 0:u.currentAnimation)==null||c.stop(),this.pendingAnimation&&(kt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Q.update(()=>{oo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=_t(0)),this.motionValue.jump(0,!1),this.currentAnimation=K2(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),o.onUpdate&&o.onUpdate(d)},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Q2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:u,layout:c,latestValues:d}=o;if(!(!a||!u||!c)){if(this!==o&&this.layout&&c&&ry(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||Te();const f=Ye(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+f;const h=Ye(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+h}Pt(a,u),so(a,d),As(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Z2),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:u}={}){const c=this.getStack();c&&c.promote(this,u),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:u}=o;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(a=!0),!a)return;const c={};u.z&&al("z",o,c,this.animationValues);for(let d=0;d<ol.length;d++)al(`rotate${ol[d]}`,o,c,this.animationValues),al(`skew${ol[d]}`,o,c,this.animationValues);o.render();for(const d in c)o.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=io(a==null?void 0:a.pointerEvents)||"",o.transform=u?u(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=io(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!$n(this.latestValues)&&(o.transform=u?u({},""):"none",this.hasProjected=!1);return}o.visibility="";const d=c.animationValues||c.latestValues;this.applyTransformsToTarget();let f=$2(this.projectionDeltaWithTransform,this.treeScale,d);u&&(f=u(d,f)),o.transform=f;const{x:h,y:p}=this.projectionDelta;o.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,c.animationValues?o.opacity=c===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:o.opacity=c===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const v in Hu){if(d[v]===void 0)continue;const{correct:w,applyTo:b,isCSSVariable:g}=Hu[v],x=f==="none"?d[v]:w(d[v],c);if(b){const y=b.length;for(let k=0;k<y;k++)o[b[k]]=x}else g?this.options.visualElement.renderState.vars[v]=x:o[v]=x}this.options.layoutId&&(o.pointerEvents=c===this?io(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(rm),this.root.sharedNodes.clear()}}}function ej(e){e.updateLayout()}function tj(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:r,measuredBox:s}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;if(i==="size")Ot(f=>{const h=o?t.measuredBox[f]:t.layoutBox[f],p=Ye(h);h.min=r[f].min,h.max=h.min+p});else if(i==="x"||i==="y"){const f=i==="x"?"y":"x";Uu(o?t.measuredBox[f]:t.layoutBox[f],r[f])}else ry(i,t.layoutBox,r)&&Ot(f=>{const h=o?t.measuredBox[f]:t.layoutBox[f],p=Ye(r[f]);h.max=h.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+p)});const a=Tr();As(a,r,t.layoutBox);const u=Tr();o?As(u,e.applyTransform(s,!0),t.measuredBox):As(u,r,t.layoutBox);const c=!Qx(a);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:p}=f;if(h&&p){const v=e.options.layoutAnchor||void 0,w=Te();Wo(w,t.layoutBox,h.layoutBox,v);const b=Te();Wo(b,r,p.layoutBox,v),Jx(w,b)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=w,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:u,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function nj(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 rj(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function sj(e){e.clearSnapshot()}function rm(e){e.clearMeasurements()}function ij(e){e.isLayoutDirty=!0,e.updateLayout()}function sm(e){e.isLayoutDirty=!1}function oj(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function aj(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function im(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function lj(e){e.resolveTargetDelta()}function uj(e){e.calcProjection()}function cj(e){e.resetSkewAndRotation()}function dj(e){e.removeLeadSnapshot()}function om(e,t,n){e.translate=le(t.translate,0,n),e.scale=le(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function am(e,t,n,r){e.min=le(t.min,n.min,r),e.max=le(t.max,n.max,r)}function fj(e,t,n,r){am(e.x,t.x,n.x,r),am(e.y,t.y,n.y,r)}function hj(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const mj={duration:.45,ease:[.4,0,.1,1]},lm=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),um=lm("applewebkit/")&&!lm("chrome/")?Math.round:it;function cm(e){e.min=um(e.min),e.max=um(e.max)}function pj(e){cm(e.x),cm(e.y)}function ry(e,t,n){return e==="position"||e==="preserve-aspect"&&!V2(Qh(t),Qh(n),.2)}function gj(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const xj=ny({attachResizeListener:(e,t)=>ri(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}),ll={current:void 0},sy=ny({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ll.current){const e=new xj({});e.mount(window),e.setOptions({layoutScroll:!0}),ll.current=e}return ll.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),sr=m.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function dm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function yj(...e){return t=>{let n=!1;const r=e.map(s=>{const i=dm(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():dm(e[s],null)}}}}function vj(...e){return m.useCallback(yj(...e),e)}class wj extends m.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(Ls(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,s=Ls(r)&&r.offsetWidth||0,i=Ls(r)&&r.offsetHeight||0,o=getComputedStyle(n),a=this.props.sizeRef.current;a.height=parseFloat(o.height),a.width=parseFloat(o.width),a.top=n.offsetTop,a.left=n.offsetLeft,a.right=s-a.width-a.left,a.bottom=i-a.height-a.top,a.direction=o.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function bj({children:e,isPresent:t,anchorX:n,anchorY:r,root:s,pop:i}){var h;const o=m.useId(),a=m.useRef(null),u=m.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:c}=m.useContext(sr),d=((h=e.props)==null?void 0:h.ref)??(e==null?void 0:e.ref),f=vj(a,d);return m.useInsertionEffect(()=>{const{width:p,height:v,top:w,left:b,right:g,bottom:x,direction:y}=u.current;if(t||i===!1||!a.current||!p||!v)return;const k=y==="rtl",S=n==="left"?k?`right: ${g}`:`left: ${b}`:k?`left: ${b}`:`right: ${g}`,E=r==="bottom"?`bottom: ${x}`:`top: ${w}`;a.current.dataset.motionPopId=o;const j=document.createElement("style");c&&(j.nonce=c);const P=s??document.head;return P.appendChild(j),j.sheet&&j.sheet.insertRule(`
[data-motion-pop-id="${o}"] {
position: absolute !important;
width: ${p}px !important;
height: ${v}px !important;
${S}px !important;
${E}px !important;
}
`),()=>{var M;(M=a.current)==null||M.removeAttribute("data-motion-pop-id"),P.contains(j)&&P.removeChild(j)}},[t]),l.jsx(wj,{isPresent:t,childRef:a,sizeRef:u,pop:i,children:i===!1?e:m.cloneElement(e,{ref:f})})}const kj=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o,anchorX:a,anchorY:u,root:c})=>{const d=rn(Sj),f=m.useId(),h=m.useRef(n),p=m.useRef(r);ui(()=>{h.current=n,p.current=r});let v=!0,w=m.useMemo(()=>(v=!1,{id:f,initial:t,isPresent:n,custom:s,onExitComplete:b=>{d.set(b,!0);for(const g of d.values())if(!g)return;r&&r()},register:b=>(d.set(b,!1),()=>{var g;d.delete(b),!h.current&&!d.size&&((g=p.current)==null||g.call(p))})}),[n,d,r]);return i&&v&&(w={...w}),m.useMemo(()=>{d.forEach((b,g)=>d.set(g,!1))},[n]),m.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),e=l.jsx(bj,{pop:o==="popLayout",isPresent:n,anchorX:a,anchorY:u,root:c,children:e}),l.jsx(pa.Provider,{value:w,children:e})};function Sj(){return new Map}function iy(e=!0){const t=m.useContext(pa);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=m.useId();m.useEffect(()=>{if(e)return s(i)},[e]);const o=m.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const Ri=e=>e.key||"";function fm(e){const t=[];return m.Children.forEach(e,n=>{m.isValidElement(n)&&t.push(n)}),t}const jj=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:o=!1,anchorX:a="left",anchorY:u="top",root:c})=>{const[d,f]=iy(o),h=m.useMemo(()=>fm(e),[e]),p=o&&!d?[]:h.map(Ri),v=m.useRef(!0),w=m.useRef(h),b=rn(()=>new Map),g=m.useRef(new Set),[x,y]=m.useState(h),[k,S]=m.useState(h);ui(()=>{v.current=!1,w.current=h;for(let P=0;P<k.length;P++){const M=Ri(k[P]);p.includes(M)?(b.delete(M),g.current.delete(M)):b.get(M)!==!0&&b.set(M,!1)}},[k,p.length,p.join("-")]);const E=[];if(h!==x){let P=[...h];for(let M=0;M<k.length;M++){const T=k[M],B=Ri(T);p.includes(B)||(P.splice(M,0,T),E.push(T))}return i==="wait"&&E.length&&(P=E),S(fm(P)),y(h),null}const{forceRender:j}=m.useContext(td);return l.jsx(l.Fragment,{children:k.map(P=>{const M=Ri(P),T=o&&!d?!1:h===k||p.includes(M),B=()=>{if(g.current.has(M))return;if(b.has(M))g.current.add(M),b.set(M,!0);else return;let H=!0;b.forEach(ee=>{ee||(H=!1)}),H&&(j==null||j(),S(w.current),o&&(f==null||f()),r&&r())};return l.jsx(kj,{isPresent:T,initial:!v.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:i,root:c,onExitComplete:T?void 0:B,anchorX:a,anchorY:u,children:P},M)})})},oy=m.createContext({strict:!1}),hm={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 mm=!1;function Pj(){if(mm)return;const e={};for(const t in hm)e[t]={isEnabled:n=>hm[t].some(r=>!!n[r])};Vx(e),mm=!0}function ay(){return Pj(),l2()}function Cj(e){const t=ay();for(const n in e)t[n]={...t[n],...e[n]};Vx(t)}const Ej=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 Go(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Ej.has(e)}let ly=e=>!Go(e);function uy(e){typeof e=="function"&&(ly=t=>t.startsWith("on")?!Go(t):e(t))}try{uy(require("@emotion/is-prop-valid").default)}catch{}function Tj(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||Me(e[s])||(ly(s)||n===!0&&Go(s)||!t&&!Go(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function Nj({children:e,isValidProp:t,...n}){t&&uy(t);const r=m.useContext(sr);n={...r,...n},n.transition=yd(n.transition,r.transition),n.isStatic=rn(()=>n.isStatic);const s=m.useMemo(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion,n.skipAnimations]);return l.jsx(sr.Provider,{value:s,children:e})}const va=m.createContext({});function _j(e,t){if(ya(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ni(n)?n:void 0,animate:ni(r)?r:void 0}}return e.inherit!==!1?t:{}}function Mj(e){const{initial:t,animate:n}=_j(e,m.useContext(va));return m.useMemo(()=>({initial:t,animate:n}),[pm(t),pm(n)])}function pm(e){return Array.isArray(e)?e.join(" "):e}const Md=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function cy(e,t,n){for(const r in t)!Me(t[r])&&!Hx(r,n)&&(e[r]=t[r])}function Lj({transformTemplate:e},t){return m.useMemo(()=>{const n=Md();return Nd(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Aj(e,t){const n=e.style||{},r={};return cy(r,n,e),Object.assign(r,Lj(e,t)),r}function Dj(e,t){const n={},r=Aj(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const dy=()=>({...Md(),attrs:{}});function Rj(e,t,n,r){const s=m.useMemo(()=>{const i=dy();return Ux(i,t,Gx(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};cy(i,e.style,e),s.style={...i,...s.style}}return s}const Vj=["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 Ld(e){return typeof e!="string"||e.includes("-")?!1:!!(Vj.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ij(e,t,n,{latestValues:r},s,i=!1,o){const u=(o??Ld(e)?Rj:Dj)(t,r,s,e),c=Tj(t,typeof e=="string",i),d=e!==m.Fragment?{...c,...u,ref:n}:{},{children:f}=t,h=m.useMemo(()=>Me(f)?f.get():f,[f]);return m.createElement(e,{...d,children:h})}function Fj({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,s){return{latestValues:Oj(n,r,s,e),renderState:t()}}function Oj(e,t,n,r){const s={},i=r(e,{});for(const h in i)s[h]=io(i[h]);let{initial:o,animate:a}=e;const u=ya(e),c=Dx(e);t&&c&&!u&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const f=d?a:o;if(f&&typeof f!="boolean"&&!xa(f)){const h=Array.isArray(f)?f:[f];for(let p=0;p<h.length;p++){const v=bd(e,h[p]);if(v){const{transitionEnd:w,transition:b,...g}=v;for(const x in g){let y=g[x];if(Array.isArray(y)){const k=d?y.length-1:0;y=y[k]}y!==null&&(s[x]=y)}for(const x in w)s[x]=w[x]}}}return s}const fy=e=>(t,n)=>{const r=m.useContext(va),s=m.useContext(pa),i=()=>Fj(e,t,r,s);return n?i():rn(i)},zj=fy({scrapeMotionValuesFromProps:_d,createRenderState:Md}),Bj=fy({scrapeMotionValuesFromProps:Kx,createRenderState:dy}),$j=Symbol.for("motionComponentSymbol");function Hj(e,t,n){const r=m.useRef(n);m.useInsertionEffect(()=>{r.current=n});const s=m.useRef(null);return m.useCallback(i=>{var a;i&&((a=e.onMount)==null||a.call(e,i)),t&&(i?t.mount(i):t.unmount());const o=r.current;if(typeof o=="function")if(i){const u=o(i);typeof u=="function"&&(s.current=u)}else s.current?(s.current(),s.current=null):o(i);else o&&(o.current=i)},[t])}const hy=m.createContext({});function hr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Uj(e,t,n,r,s,i){var y,k;const{visualElement:o}=m.useContext(va),a=m.useContext(oy),u=m.useContext(pa),c=m.useContext(sr),d=c.reducedMotion,f=c.skipAnimations,h=m.useRef(null),p=m.useRef(!1);r=r||a.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:o,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d,skipAnimations:f,isSVG:i}),p.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const v=h.current,w=m.useContext(hy);v&&!v.projection&&s&&(v.type==="html"||v.type==="svg")&&Wj(h.current,n,s,w);const b=m.useRef(!1);m.useInsertionEffect(()=>{v&&b.current&&v.update(n,u)});const g=n[wx],x=m.useRef(!!g&&typeof window<"u"&&!((y=window.MotionHandoffIsComplete)!=null&&y.call(window,g))&&((k=window.MotionHasOptimisedAnimation)==null?void 0:k.call(window,g)));return ui(()=>{p.current=!0,v&&(b.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),x.current&&v.animationState&&v.animationState.animateChanges())}),m.useEffect(()=>{v&&(!x.current&&v.animationState&&v.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)==null||S.call(window,g)}),x.current=!1),v.enteringChildren=void 0)}),v}function Wj(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:u,layoutRoot:c,layoutAnchor:d,layoutCrossfade:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:my(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&hr(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:f,layoutScroll:u,layoutRoot:c,layoutAnchor:d})}function my(e){if(e)return e.options.allowProjection!==!1?e.projection:my(e.parent)}function ul(e,{forwardMotionProps:t=!1,type:n}={},r,s){r&&Cj(r);const i=n?n==="svg":Ld(e),o=i?Bj:zj;function a(c,d){let f;const h={...m.useContext(sr),...c,layoutId:Gj(c)},{isStatic:p}=h,v=Mj(c),w=o(c,p);if(!p&&typeof window<"u"){Kj();const b=qj(h);f=b.MeasureLayout,v.visualElement=Uj(e,w,h,s,b.ProjectionNode,i)}return l.jsxs(va.Provider,{value:v,children:[f&&v.visualElement?l.jsx(f,{visualElement:v.visualElement,...h}):null,Ij(e,c,Hj(w,v.visualElement,d),w,p,t,i)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=m.forwardRef(a);return u[$j]=e,u}function Gj({layoutId:e}){const t=m.useContext(td).id;return t&&e!==void 0?t+"-"+e:e}function Kj(e,t){m.useContext(oy).strict}function qj(e){const t=ay(),{drag:n,layout:r}=t;if(!n&&!r)return{};const s={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function Yj(e,t){if(typeof Proxy>"u")return ul;const n=new Map,r=(i,o)=>ul(i,o,e,t),s=(i,o)=>r(i,o);return new Proxy(s,{get:(i,o)=>o==="create"?r:(n.has(o)||n.set(o,ul(o,void 0,e,t)),n.get(o))})}const Xj=(e,t)=>t.isSVG??Ld(e)?new P2(t):new v2(t,{allowProjection:e!==m.Fragment});class Zj extends Vn{constructor(t){super(t),t.animationState||(t.animationState=_2(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();xa(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 Qj=0;class Jj extends Vn{constructor(){super(...arguments),this.id=Qj++,this.isExitComplete=!1}update(){var i;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:o,custom:a}=this.node.getProps();if(typeof o=="string"||typeof o=="object"&&o!==null&&!Array.isArray(o)){const u=Zn(this.node,o,a);if(u){const{transition:c,transitionEnd:d,...f}=u;for(const h in f)(i=this.node.getValue(h))==null||i.jump(f[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.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 eP={animation:{Feature:Zj},exit:{Feature:Jj}};function hi(e){return{point:{x:e.pageX,y:e.pageY}}}const tP=e=>t=>jd(t)&&e(t,hi(t));function Ds(e,t,n,r){return ri(e,t,tP(n),r)}const py=({current:e})=>e?e.ownerDocument.defaultView:null,gm=(e,t)=>Math.abs(e-t);function nP(e,t){const n=gm(e.x,t.x),r=gm(e.y,t.y);return Math.sqrt(n**2+r**2)}const xm=new Set(["auto","scroll"]);class gy{constructor(t,n,{transformPagePoint:r,contextWindow:s=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3,element:a}={}){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=v=>{this.handleScroll(v.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Vi(this.lastRawMoveEventInfo,this.transformPagePoint));const v=cl(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,b=nP(v.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!b)return;const{point:g}=v,{timestamp:x}=Le;this.history.push({...g,timestamp:x});const{onStart:y,onMove:k}=this.handlers;w||(y&&y(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),k&&k(this.lastMoveEvent,v)},this.handlePointerMove=(v,w)=>{this.lastMoveEvent=v,this.lastRawMoveEventInfo=w,this.lastMoveEventInfo=Vi(w,this.transformPagePoint),Q.update(this.updatePoint,!0)},this.handlePointerUp=(v,w)=>{this.end();const{onEnd:b,onSessionEnd:g,resumeAnimation:x}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=cl(v.type==="pointercancel"?this.lastMoveEventInfo:Vi(w,this.transformPagePoint),this.history);this.startEvent&&b&&b(v,y),g&&g(v,y)},!jd(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=s||window;const u=hi(t),c=Vi(u,this.transformPagePoint),{point:d}=c,{timestamp:f}=Le;this.history=[{...d,timestamp:f}];const{onSessionStart:h}=n;h&&h(t,cl(c,this.history));const p={passive:!0,capture:!0};this.removeListeners=ci(Ds(this.contextWindow,"pointermove",this.handlePointerMove,p),Ds(this.contextWindow,"pointerup",this.handlePointerUp,p),Ds(this.contextWindow,"pointercancel",this.handlePointerUp,p)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(xm.has(r.overflowX)||xm.has(r.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 r=t===window,s=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:s.x-n.x,y:s.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,s),Q.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),kt(this.updatePoint)}}function Vi(e,t){return t?{point:t(e.point)}:e}function ym(e,t){return{x:e.x-t.x,y:e.y-t.y}}function cl({point:e},t){return{point:e,delta:ym(e,xy(t)),offset:ym(e,rP(t)),velocity:sP(t,.1)}}function rP(e){return e[0]}function xy(e){return e[e.length-1]}function sP(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=xy(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>ct(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&s.timestamp-r.timestamp>ct(t)*2&&(r=e[1]);const i=yt(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function iP(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?le(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?le(n,e,r.max):Math.min(e,n)),e}function vm(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 oP(e,{top:t,left:n,bottom:r,right:s}){return{x:vm(e.x,n,s),y:vm(e.y,t,r)}}function wm(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function aP(e,t){return{x:wm(e.x,t.x),y:wm(e.y,t.y)}}function lP(e,t){let n=.5;const r=Ye(e),s=Ye(t);return s>r?n=Ur(t.min,t.max-r,e.min):r>s&&(n=Ur(e.min,e.max-s,t.min)),Rt(0,1,n)}function uP(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 Wu=.35;function cP(e=Wu){return e===!1?e=0:e===!0&&(e=Wu),{x:bm(e,"left","right"),y:bm(e,"top","bottom")}}function bm(e,t,n){return{min:km(e,t),max:km(e,n)}}function km(e,t){return typeof e=="number"?e:e[t]||0}const dP=new WeakMap;class fP{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=Te(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=f=>{n&&this.snapToCursor(hi(f).point),this.stopAnimation()},o=(f,h)=>{const{drag:p,dragPropagation:v,onDragStart:w}=this.getProps();if(p&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=IS(p),!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),Ot(g=>{let x=this.getAxisMotionValue(g).get()||0;if(Ut.test(x)){const{projection:y}=this.visualElement;if(y&&y.layout){const k=y.layout.layoutBox[g];k&&(x=Ye(k)*(parseFloat(x)/100))}}this.originPoint[g]=x}),w&&Q.update(()=>w(f,h),!1,!0),Ru(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:p,dragDirectionLock:v,onDirectionLock:w,onDrag:b}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:g}=h;if(v&&this.currentDirection===null){this.currentDirection=mP(g),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",h.point,g),this.updateAxis("y",h.point,g),this.visualElement.render(),b&&Q.update(()=>b(f,h),!1,!0)},u=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:d}=this.getProps();this.panSession=new gy(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:py(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,s=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!s||!r)return;const{velocity:o}=s;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&Q.postRender(()=>a(r,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&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,r){const{drag:s}=this.getProps();if(!r||!Ii(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=iP(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,s=this.constraints;t&&hr(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=oP(r.layoutBox,t):this.constraints=!1,this.elastic=cP(n),s!==this.constraints&&!hr(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Ot(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=uP(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!hr(t))return!1;const r=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;s.root&&(s.root.scroll=void 0,s.root.updateScroll());const i=h2(r,s.root,this.visualElement.getTransformPagePoint());let o=aP(s.layout.layoutBox,i);if(n){const a=n(c2(o));this.hasMutatedConstraints=!!a,a&&(o=Fx(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),u=this.constraints||{},c=Ot(d=>{if(!Ii(d,n,this.currentDirection))return;let f=u&&u[d]||{};(o===!0||o===d)&&(f={min:0,max:0});const h=s?200:1e6,p=s?40:1e7,v={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,v)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ru(this.visualElement,t),r.start(wd(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ot(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps()[n];return s||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){Ot(n=>{const{drag:r}=this.getProps();if(!Ii(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n],u=i.get()||0;i.set(t[n]-le(o,a,.5)+u)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!hr(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Ot(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const u=a.get();s[o]=lP({min:u,max:u},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Ot(o=>{if(!Ii(o,t,null))return;const a=this.getAxisMotionValue(o),{min:u,max:c}=this.constraints[o];a.set(le(u,c,s[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;dP.set(this.visualElement,this);const t=this.visualElement.current,n=Ds(t,"pointerdown",c=>{const{drag:d,dragListener:f=!0}=this.getProps(),h=c.target,p=h!==t&&HS(h);d&&f&&!p&&this.start(c)});let r;const s=()=>{const{dragConstraints:c}=this.getProps();hr(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),r||(r=hP(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Q.read(s);const a=ri(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Ot(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=c[f].translate,h.set(h.get()+c[f].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),u&&u(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=Wu,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function Sm(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function hP(e,t,n){const r=zu(e,Sm(n)),s=zu(t,Sm(n));return()=>{r(),s()}}function Ii(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function mP(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class pP extends Vn{constructor(t){super(t),this.removeGroupControls=it,this.removeListeners=it,this.controls=new fP(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||it}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 dl=e=>(t,n)=>{e&&Q.update(()=>e(t,n),!1,!0)};class gP extends Vn{constructor(){super(...arguments),this.removePointerDownListener=it}onPointerDown(t){this.session=new gy(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:py(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:dl(t),onStart:dl(n),onMove:dl(r),onEnd:(i,o)=>{delete this.session,s&&Q.postRender(()=>s(i,o))}}}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 fl=!1;class xP extends m.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),fl&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),oo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,{projection:o}=r;return o&&(o.isPresent=i,t.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),fl=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||Q.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),Gr.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;fl=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function yy(e){const[t,n]=iy(),r=m.useContext(td);return l.jsx(xP,{...e,layoutGroup:r,switchLayoutGroup:m.useContext(hy),isPresent:t,safeToRemove:n})}const yP={pan:{Feature:gP},drag:{Feature:pP,ProjectionNode:sy,MeasureLayout:yy}};function jm(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&Q.postRender(()=>i(t,hi(t)))}class vP extends Vn{mount(){const{current:t}=this.node;t&&(this.unmount=OS(t,(n,r)=>(jm(this.node,r,"Start"),s=>jm(this.node,s,"End"))))}unmount(){}}class wP extends Vn{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=ci(ri(this.node.current,"focus",()=>this.onFocus()),ri(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Pm(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&Q.postRender(()=>i(t,hi(t)))}class bP extends Vn{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=WS(t,(s,i)=>(Pm(this.node,i,"Start"),(o,{success:a})=>Pm(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const Gu=new WeakMap,hl=new WeakMap,kP=e=>{const t=Gu.get(e.target);t&&t(e)},SP=e=>{e.forEach(kP)};function jP({root:e,...t}){const n=e||document;hl.has(n)||hl.set(n,{});const r=hl.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(SP,{root:e,...t})),r[s]}function PP(e,t,n){const r=jP(t);return Gu.set(e,n),r.observe(e),()=>{Gu.delete(e),r.unobserve(e)}}const CP={some:0,all:1};class EP extends Vn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var u;(u=this.stopObserver)==null||u.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:CP[s]},a=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,i&&!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(),p=d?f:h;p&&p(c)};this.stopObserver=PP(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(TP(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function TP({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const NP={inView:{Feature:EP},tap:{Feature:bP},focus:{Feature:wP},hover:{Feature:vP}},_P={layout:{ProjectionNode:sy,MeasureLayout:yy}},MP={...eP,...NP,...yP,..._P},Zt=Yj(MP,Xj);function Ko(e){return typeof window>"u"?!1:e?cx():xd()}const LP=50,Cm=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),AP=()=>({time:0,x:Cm(),y:Cm()}),DP={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Em(e,t,n,r){const s=n[t],{length:i,position:o}=DP[t],a=s.current,u=n.time;s.current=Math.abs(e[`scroll${o}`]),s.scrollLength=e[`scroll${i}`]-e[`client${i}`],s.offset.length=0,s.offset[0]=0,s.offset[1]=s.scrollLength,s.progress=Ur(0,s.scrollLength,s.current);const c=r-u;s.velocity=c>LP?0:id(s.current-a,c)}function RP(e,t,n){Em(e,"x",t,n),Em(e,"y",t,n),t.time=n}function VP(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(Ls(r))n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const s=r.getBoundingClientRect();r=r.parentElement;const i=r.getBoundingClientRect();n.x+=s.left-i.left,n.y+=s.top-i.top}else if(r instanceof SVGGraphicsElement){const{x:s,y:i}=r.getBBox();n.x+=s,n.y+=i;let o=null,a=r.parentNode;for(;!o;)a.tagName==="svg"&&(o=a),a=r.parentNode;r=o}else break;return n}const Ku={start:0,center:.5,end:1};function Tm(e,t,n=0){let r=0;if(e in Ku&&(e=Ku[e]),typeof e=="string"){const s=parseFloat(e);e.endsWith("px")?r=s:e.endsWith("%")?e=s/100:e.endsWith("vw")?r=s/100*document.documentElement.clientWidth:e.endsWith("vh")?r=s/100*document.documentElement.clientHeight:e=s}return typeof e=="number"&&(r=t*e),n+r}const IP=[0,0];function FP(e,t,n,r){let s=Array.isArray(e)?e:IP,i=0,o=0;return typeof e=="number"?s=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?s=e.split(" "):s=[e,Ku[e]?e:"0"]),i=Tm(s[0],n,r),o=Tm(s[1],t),i-o}const vs={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},OP={x:0,y:0};function zP(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function BP(e,t,n){const{offset:r=vs.All}=n,{target:s=e,axis:i="y"}=n,o=i==="y"?"height":"width",a=s!==e?VP(s,e):OP,u=s===e?{width:e.scrollWidth,height:e.scrollHeight}:zP(s),c={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let d=!t[i].interpolate;const f=r.length;for(let h=0;h<f;h++){const p=FP(r[h],c[o],u[o],a[i]);!d&&p!==t[i].interpolatorOffsets[h]&&(d=!0),t[i].offset[h]=p}d&&(t[i].interpolate=hd(t[i].offset,ix(r),{clamp:!1}),t[i].interpolatorOffsets=[...t[i].offset]),t[i].progress=Rt(0,1,t[i].interpolate(t[i].current))}function $P(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function HP(e,t,n,r={}){return{measure:s=>{$P(e,r.target,n),RP(e,n,s),(r.offset||r.target)&&BP(e,n,r)},notify:()=>t(n)}}const dr=new WeakMap,Nm=new WeakMap,ml=new WeakMap,_m=new WeakMap,Fi=new WeakMap,Mm=e=>e===document.scrollingElement?window:e;function vy(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return it;let s=ml.get(t);s||(s=new Set,ml.set(t,s));const i=AP(),o=HP(t,e,i,r);if(s.add(o),!dr.has(t)){const u=()=>{for(const h of s)h.measure(Le.timestamp);Q.preUpdate(c)},c=()=>{for(const h of s)h.notify()},d=()=>Q.read(u);dr.set(t,d);const f=Mm(t);window.addEventListener("resize",d),t!==document.documentElement&&Nm.set(t,zu(t,d)),f.addEventListener("scroll",d),d()}if(n&&!Fi.has(t)){const u=dr.get(t),c={width:t.scrollWidth,height:t.scrollHeight};_m.set(t,c);const d=()=>{const h=t.scrollWidth,p=t.scrollHeight;(c.width!==h||c.height!==p)&&(u(),c.width=h,c.height=p)},f=Q.read(d,!0);Fi.set(t,f)}const a=dr.get(t);return Q.read(a,!1,!0),()=>{var f;kt(a);const u=ml.get(t);if(!u||(u.delete(o),u.size))return;const c=dr.get(t);dr.delete(t),c&&(Mm(t).removeEventListener("scroll",c),(f=Nm.get(t))==null||f(),window.removeEventListener("resize",c));const d=Fi.get(t);d&&(kt(d),Fi.delete(t)),_m.delete(t)}}const UP=[[vs.Enter,"entry"],[vs.Exit,"exit"],[vs.Any,"cover"],[vs.All,"contain"]],Lm={start:0,end:1};function WP(e){const t=e.trim().split(/\s+/);if(t.length!==2)return;const n=Lm[t[0]],r=Lm[t[1]];if(!(n===void 0||r===void 0))return[n,r]}function GP(e){if(e.length!==2)return;const t=[];for(const n of e)if(Array.isArray(n))t.push(n);else if(typeof n=="string"){const r=WP(n);if(!r)return;t.push(r)}else return;return t}function KP(e,t){const n=GP(e);if(!n)return!1;for(let r=0;r<2;r++){const s=n[r],i=t[r];if(s[0]!==i[0]||s[1]!==i[1])return!1}return!0}function Ad(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(const[t,n]of UP)if(KP(e,t))return{rangeStart:`${n} 0%`,rangeEnd:`${n} 100%`}}const Am=new Map;function Dm(e){const t={value:0},n=vy(r=>{t.value=r[e.axis].progress*100},e);return{currentTime:t,cancel:n}}function wy({source:e,container:t,...n}){const{axis:r}=n;e&&(t=e);let s=Am.get(t);s||(s=new Map,Am.set(t,s));const i=n.target??"self";let o=s.get(i);o||(o={},s.set(i,o));const a=r+(n.offset??[]).join(",");return o[a]||(n.target&&Ko(n.target)?Ad(n.offset)?o[a]=new ViewTimeline({subject:n.target,axis:r}):o[a]=Dm({container:t,...n}):Ko()?o[a]=new ScrollTimeline({source:t,axis:r}):o[a]=Dm({container:t,...n})),o[a]}function qP(e,t){const n=wy(t),r=t.target?Ad(t.offset):void 0,s=t.target?Ko(t.target)&&!!r:Ko();return e.attachTimeline({timeline:s?n:void 0,...r&&s&&{rangeStart:r.rangeStart,rangeEnd:r.rangeEnd},observe:i=>(i.pause(),Ax(o=>{i.time=i.iterationDuration*o},n))})}function YP(e){return e&&(e.target||e.offset)}function XP(e){return e.length===2}function ZP(e,t){return XP(e)||YP(t)?vy(n=>{e(n[t.axis].progress,n)},t):Ax(e,wy(t))}function by(e,{axis:t="y",container:n=document.scrollingElement,...r}={}){if(!n)return it;const s={axis:t,container:n,...r};return typeof e=="function"?ZP(e,s):qP(e,s)}const QP=()=>({scrollX:_t(0),scrollY:_t(0),scrollXProgress:_t(0),scrollYProgress:_t(0)}),Nr=e=>e?!e.current:!1;function Rm(e,t,n,r){return{factory:s=>{let i;const o=()=>{if(Nr(n)||Nr(r)){Gr.read(o);return}i=by(s,{...t,axis:e,container:(n==null?void 0:n.current)||void 0,target:(r==null?void 0:r.current)||void 0})};return Gr.read(o),()=>{Tx(o),i==null||i()}},times:[0,1],keyframes:[0,1],ease:s=>s,duration:1}}function JP(e,t){return typeof window>"u"?!1:e?cx()&&!!Ad(t):xd()}function ky({container:e,target:t,...n}={}){const r=rn(QP);JP(t,n.offset)&&(r.scrollXProgress.accelerate=Rm("x",n,e,t),r.scrollYProgress.accelerate=Rm("y",n,e,t));const s=m.useRef(null),i=m.useRef(!1),o=m.useCallback(()=>(s.current=by((a,{x:u,y:c})=>{r.scrollX.set(u.current),r.scrollXProgress.set(u.progress),r.scrollY.set(c.current),r.scrollYProgress.set(c.progress)},{...n,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0}),()=>{var a;(a=s.current)==null||a.call(s)}),[e,t,JSON.stringify(n.offset)]);return ui(()=>{if(i.current=!1,Nr(e)||Nr(t)){i.current=!0;return}else return o()},[o]),m.useEffect(()=>{if(!i.current)return;let a;const u=()=>{const c=Nr(e),d=Nr(t);!c&&!d&&(a=o())};return Gr.read(u),()=>{Tx(u),a==null||a()}},[o]),r}function Sy(e){const t=rn(()=>_t(e)),{isStatic:n}=m.useContext(sr);if(n){const[,r]=m.useState(e);m.useEffect(()=>t.on("change",r),[])}return t}function jy(e,t){const n=Sy(t()),r=()=>n.set(t());return r(),ui(()=>{const s=()=>Q.preRender(r,!1,!0),i=e.map(o=>o.on("change",s));return()=>{i.forEach(o=>o()),kt(r)}}),n}function eC(e){Ms.current=[],e();const t=jy(Ms.current,e);return Ms.current=void 0,t}function dn(e,t,n,r){if(typeof e=="function")return eC(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!="function")return tC(e,t,n,r);const o=typeof t=="function"?t:t2(t,n,r),a=Array.isArray(e)?Vm(e,o):Vm([e],([c])=>o(c)),u=Array.isArray(e)?void 0:e.accelerate;return u&&!u.isTransformed&&typeof t!="function"&&Array.isArray(n)&&(r==null?void 0:r.clamp)!==!1&&(a.accelerate={...u,times:t,keyframes:n,isTransformed:!0}),a}function Vm(e,t){const n=rn(()=>[]);return jy(e,()=>{n.length=0;const r=e.length;for(let s=0;s<r;s++)n[s]=e[s].get();return t(n)})}function tC(e,t,n,r){const s=rn(()=>Object.keys(n)),i=rn(()=>({}));for(const o of s)i[o]=dn(e,t,n[o],r);return i}function nC(e,t={}){const{isStatic:n}=m.useContext(sr),r=()=>Me(e)?e.get():e;if(n)return dn(r);const s=Sy(r());return m.useInsertionEffect(()=>n2(s,e,t),[s,JSON.stringify(t)]),s}function rC(e,t={}){return nC(e,{type:"spring",...t})}function sC(){!Td.current&&Rx();const[e]=m.useState($o.current);return e}function iC(){const{pathname:e}=Je();return m.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"instant"})},[e]),null}const oC='a, button, [role="button"], label, select, summary, [data-cursor="hover"], .cursor-pointer',aC='input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="file"]), textarea, [contenteditable="true"]';function lC(){const e=m.useRef(null),t=m.useRef(null),n=m.useRef(null),r=m.useRef(null),s=m.useRef(null);return m.useEffect(()=>{const i=window.matchMedia("(pointer: fine)"),o=window.matchMedia("(prefers-reduced-motion: reduce)");if(!i.matches||o.matches)return;const a=e.current,u=t.current,c=n.current,d=r.current,f=s.current;if(!a||!u||!c||!d||!f)return;document.documentElement.classList.add("hifi-cursor-on");const h=-24*Math.PI/180,p=Math.cos(h),v=Math.sin(h);let w=-100,b=-100,g=0,x=2.4,y=2.4,k=16,S=6.5,E=16,j=6.5,P=!1,M,T=performance.now();const B=N=>{const A=Math.min((N-T)/1e3,.05);T=N,x+=(y-x)*Math.min(1,A*8),k+=(E-k)*Math.min(1,A*10),S+=(j-S)*Math.min(1,A*10),g+=x*A,u.style.transform=`translate3d(${w}px, ${b}px, 0)`,c.style.transform=`translate3d(${w}px, ${b}px, 0)`;const L=Math.cos(g)*k,F=Math.sin(g)*S;d.style.transform=`translate(${L*p-F*v}px, ${L*v+F*p}px)`,M=requestAnimationFrame(B)},H=N=>{a.dataset.state=N;const A=N==="hover";y=A?7:2.4,E=A?23:16,j=A?9.5:6.5},ee=N=>{w=N.clientX,b=N.clientY,P||(P=!0,a.dataset.hidden="false")},U=N=>{const A=N.target;A instanceof Element&&(A.closest(aC)?H("text"):A.closest(oC)?H("hover"):H("default"))},G=()=>{a.dataset.down="true",f.style.left=`${w}px`,f.style.top=`${b}px`,f.classList.remove("is-live"),f.offsetWidth,f.classList.add("is-live")},q=()=>{a.dataset.down="false"},ie=()=>{P=!1,a.dataset.hidden="true"};return document.addEventListener("mousemove",ee,{passive:!0}),document.addEventListener("mouseover",U,{passive:!0}),document.addEventListener("mousedown",G,{passive:!0}),document.addEventListener("mouseup",q,{passive:!0}),document.documentElement.addEventListener("mouseleave",ie),window.addEventListener("blur",ie),M=requestAnimationFrame(B),()=>{cancelAnimationFrame(M),document.removeEventListener("mousemove",ee),document.removeEventListener("mouseover",U),document.removeEventListener("mousedown",G),document.removeEventListener("mouseup",q),document.documentElement.removeEventListener("mouseleave",ie),window.removeEventListener("blur",ie),document.documentElement.classList.remove("hifi-cursor-on")}},[]),l.jsxs("div",{ref:e,className:"hifi-cursor","data-state":"default","data-hidden":"true","data-down":"false","aria-hidden":"true",children:[l.jsxs("div",{ref:n,className:"hifi-cursor__orbit",children:[l.jsx("div",{className:"hifi-cursor__ring"}),l.jsx("div",{ref:r,className:"hifi-cursor__sat"})]}),l.jsx("div",{ref:t,className:"hifi-cursor__core"}),l.jsx("div",{ref:s,className:"hifi-cursor__pulse"})]})}const uC=`${"/".replace(/\/$/,"")}/api`;let qu=0;const Yu=new Set,Im=e=>{qu+=e,Yu.forEach(t=>t(qu))},cC=()=>qu,dC=e=>(Yu.add(e),()=>Yu.delete(e)),Xu=new Set,fC=e=>(Xu.add(e),()=>Xu.delete(e));async function fs(e,t={}){Im(1);try{return await hC(e,t)}finally{Im(-1)}}async function hC(e,t){const n=await fetch(`${uC}${e}`,{credentials:"include",headers:t.body instanceof FormData?{}:{"Content-Type":"application/json"},...t}),r=await n.text();let s=null;if(r)try{s=JSON.parse(r)}catch{}if(!n.ok){const i=new Error((s==null?void 0:s.error)||`Fehler ${n.status}`);throw i.status=n.status,i.code=(s==null?void 0:s.code)||null,n.status===401&&!e.startsWith("/auth/")&&Xu.forEach(o=>o()),i}if(s===null&&r){const i=new Error("Unerwartete Server-Antwort (kein gültiges JSON)");throw i.status=n.status,i.code="invalid_response",i}return s}const ue={get:(e,t)=>fs(e,t),post:(e,t)=>fs(e,{method:"POST",body:t instanceof FormData?t:JSON.stringify(t)}),put:(e,t)=>fs(e,{method:"PUT",body:JSON.stringify(t)}),patch:(e,t)=>fs(e,{method:"PATCH",body:JSON.stringify(t)}),delete:e=>fs(e,{method:"DELETE"})};function mC({children:e}){const[t,n]=m.useState({pathname:null,needsSetup:null}),r=Je(),s=t.needsSetup===!1;m.useEffect(()=>{if(s)return;let o=!1;return ue.get("/setup/status").then(a=>{o||n({pathname:r.pathname,needsSetup:a.needs_setup})}).catch(()=>{o||n({pathname:r.pathname,needsSetup:!1})}),()=>{o=!0}},[r.pathname,s]);const i=t.pathname===r.pathname;return r.pathname==="/setup"?s?l.jsx(rr,{to:"/",replace:!0}):!i||t.needsSetup===null?l.jsx("div",{className:"min-h-screen bg-white dark:bg-neutral-950"}):e:i&&t.needsSetup?l.jsx(rr,{to:"/setup",replace:!0}):e}/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Py=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const pC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const gC=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fm=e=>{const t=gC(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var pl={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 v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xC=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},Cy=m.createContext({});function u4({children:e,size:t,color:n,strokeWidth:r,absoluteStrokeWidth:s,className:i}){const o=m.useMemo(()=>({size:t,color:n,strokeWidth:r,absoluteStrokeWidth:s,className:i}),[t,n,r,s,i]);return m.createElement(Cy.Provider,{value:o},e)}const yC=()=>m.useContext(Cy),vC=m.forwardRef(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},u)=>{const{size:c=24,strokeWidth:d=2,absoluteStrokeWidth:f=!1,color:h="currentColor",className:p=""}=yC()??{},v=r??f?Number(n??d)*24/Number(t??c):n??d;return m.createElement("svg",{ref:u,...pl,width:t??c??pl.width,height:t??c??pl.height,stroke:e??h,strokeWidth:v,className:Py("lucide",p,s),...!i&&!xC(a)&&{"aria-hidden":"true"},...a},[...o.map(([w,b])=>m.createElement(w,b)),...Array.isArray(i)?i:[i]])});/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Z=(e,t)=>{const n=m.forwardRef(({className:r,...s},i)=>m.createElement(vC,{ref:i,iconNode:t,className:Py(`lucide-${pC(Fm(e))}`,`lucide-${e}`,r),...s}));return n.displayName=Fm(e),n};/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const wC=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],bC=Z("boxes",wC);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const kC=[["path",{d:"m21 8-2 2-1.5-3.7A2 2 0 0 0 15.646 5H8.4a2 2 0 0 0-1.903 1.257L5 10 3 8",key:"1imjwt"}],["path",{d:"M7 14h.01",key:"1qa3f1"}],["path",{d:"M17 14h.01",key:"7oqj8z"}],["rect",{width:"18",height:"8",x:"3",y:"10",rx:"2",key:"a7itu8"}],["path",{d:"M5 18v2",key:"ppbyun"}],["path",{d:"M19 18v2",key:"gy7782"}]],SC=Z("car-front",kC);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const jC=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],qo=Z("car",jC);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const PC=[["path",{d:"M18 19V9a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v8a2 2 0 0 0 2 2h2",key:"19jm3t"}],["path",{d:"M2 9h3a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H2",key:"13hakp"}],["path",{d:"M22 17v1a1 1 0 0 1-1 1H10v-9a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v9",key:"1crci8"}],["circle",{cx:"8",cy:"19",r:"2",key:"t8fc5s"}]],CC=Z("caravan",PC);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const EC=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ey=Z("check",EC);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const TC=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],NC=Z("chevron-down",TC);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _C=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],MC=Z("chevron-left",_C);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const LC=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],AC=Z("chevron-right",LC);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const DC=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],RC=Z("chevron-up",DC);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const VC=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],IC=Z("circle-play",VC);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const FC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Ty=Z("clock",FC);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const OC=[["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}]],zC=Z("cog",OC);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const BC=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],$C=Z("external-link",BC);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const HC=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],UC=Z("flame",HC);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const WC=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],GC=Z("layout-dashboard",WC);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const KC=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],qC=Z("lightbulb",KC);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const YC=[["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"M3 10a2 2 0 0 0 2 2h3",key:"1npucw"}],["path",{d:"M3 5v12a2 2 0 0 0 2 2h3",key:"x1gjn2"}]],XC=Z("list-tree",YC);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ZC=[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]],QC=Z("log-in",ZC);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const JC=[["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"}]],Zu=Z("mail",JC);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const eE=[["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"}]],Ny=Z("map-pin",eE);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const tE=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],_y=Z("message-circle",tE);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const nE=[["rect",{x:"5",y:"2",width:"14",height:"20",rx:"7",key:"11ol66"}],["path",{d:"M12 6v4",key:"16clxf"}]],rE=Z("mouse",nE);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const sE=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],iE=Z("navigation",sE);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const oE=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],aE=Z("package",oE);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const lE=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],My=Z("pencil",lE);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const uE=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Kr=Z("phone",uE);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cE=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],dE=Z("rotate-ccw",cE);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fE=[["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"}]],hE=Z("send",fE);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const mE=[["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"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],pE=Z("shield-alert",mE);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const gE=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],xE=Z("shopping-bag",gE);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yE=[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]],vE=Z("thumbs-up",yE);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const wE=[["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"}]],bE=Z("user",wE);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const kE=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],SE=Z("video",kE);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const jE=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Dd=Z("x",jE);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const PE=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],CE=Z("zap",PE),Ly=m.createContext(null);function EE(){const e=new Date,t=e.getHours()+e.getMinutes()/60;return t>=6.5&&t<21?"light":"dark"}function TE({children:e}){const[t,n]=m.useState(()=>{const s=localStorage.getItem("hifi-theme");return s==="light"||s==="dark"?s:EE()});m.useEffect(()=>{document.documentElement.classList.toggle("dark",t==="dark"),localStorage.setItem("hifi-theme",t)},[t]);const r=()=>n(s=>s==="dark"?"light":"dark");return l.jsx(Ly.Provider,{value:{theme:t,toggleTheme:r},children:e})}function NE(){return m.useContext(Ly)}const _E={nav:{mainNav:"Hauptnavigation",menu:"Menü",call:"Anrufen",openMenu:"Menü öffnen",closeMenu:"Menü schließen",close:"Schließen",adminPanel:"Zum Admin-Panel",vehicles:"Fahrzeuge",services:"Leistungen",gallery:"Galerie",contact:"Kontakt",whatsapp:"WhatsApp",shop:"Zum Shop",downloads:"Downloads"},themeToggle:{label:"Theme umschalten"},languageToggle:{label:"Sprache auswählen"},footer:{routePlan:"Route planen",contactHeading:"Kontakt",contactForm:"Kontaktformular",hoursHeading:"Öffnungszeiten",open:"Geöffnet",closed:"Geschlossen",days:{monFri:"Montag – Freitag",sat:"Samstag",sun:"Sonntag"},copyright:e=>`© ${e} HifiPlanet. Alle Angaben ohne Gewähr.`,imprint:"Impressum",privacy:"Datenschutz",terms:"AGB",downloads:"Downloads",cookieSettings:"Cookie-Einstellungen"},cookieConsent:{bannerText:"Wir verwenden nur technisch notwendige Cookies. Für Google Maps, YouTube-Videos und Statistik-Cookies benötigen wir zusätzlich deine Zustimmung, da dabei Daten an Google übertragen werden.",moreInfo:"Mehr dazu in unserer",privacyPolicy:"Datenschutzerklärung",settings:"Einstellungen",onlyNecessary:"Nur notwendige",acceptAll:"Alle akzeptieren",modalTitle:"Cookie-Einstellungen",modalIntro:"Lege fest, welche Kategorien du zulassen möchtest. Mehr dazu in unserer",necessaryTitle:"Notwendig",necessaryDesc:"Für den Betrieb der Website erforderlich (z. B. Login-Session, Theme- und Cookie-Einstellung). Kann nicht deaktiviert werden.",externalTitle:"Externe Medien",externalDesc:"Google Maps und YouTube-Videos. Beim Laden werden Daten (u. a. deine IP-Adresse) an Google übertragen.",analyticsTitle:"Statistik",analyticsDesc:"Google Analytics hilft uns zu verstehen, wie die Website genutzt wird. Dabei werden Daten an Google übertragen.",cancel:"Abbrechen",saveSelection:"Auswahl speichern"},maintenance:{title:"Wartungsarbeiten",defaultMessage:"Dieser Bereich wird gerade aktualisiert. Bitte schau in Kürze wieder vorbei.",login:"Anmelden"},lightbox:{close:"Schließen",previous:"Vorheriges Bild",next:"Nächstes Bild"},home:{metaTitle:"Car-Hifi Umbauten nach Maß",metaDescription:"HifiPlanet – dein Car-Hifi Spezialist in Amorbach. Marke und Modell wählen, passende Sound-Pakete entdecken und unverbindlich anfragen.",stickyCta:"Bereit für deinen Sound-Umbau?",selectVehicle:"Fahrzeug auswählen",getInTouch:"Kontakt aufnehmen",welcome:"Willkommen bei HifiPlanet",heroTitle:"Home of pure Sound",heroSubtitle:"Dein Car-Hifi Spezialist für individuelle Sound-Umbauten. Wähle dein Fahrzeug, entdecke passende Pakete und frag unverbindlich an – wir kümmern uns um den Rest.",stats:[{value:"20+",label:"Jahre Erfahrung"},{value:"Riesige",label:"3D-Druckfarm im eigenen Haus"},{value:"Eigene",label:"CNC- & Laserwerkstatt"},{value:"International",label:"anerkannter Car-Hifi-Spezialist"}],brandsHeading:"Marken, mit denen wir arbeiten",youtubeBadge:"HifiPlanet präsentiert",youtubeTitle:"Das Handwerk hinter deinem Sound",youtubeText:"Entdecke die Handwerkskunst hinter unserer Arbeit",youtubeCta:"Jetzt ansehen",heroImageAlt:"Ground Zero Subwoofer und Endstufen mit violetter Ambiente-Beleuchtung",craftImageAlt:"Individueller Subwoofer-Bau",adviceImageAlt:"Endstufen-Einbau mit Ambiente-Beleuchtung",moreImageAlt:"Hochwertige Endstufe und Subwoofer, Studioaufnahme",craftEyebrow:"Handwerk",craftTitle:"Präzisionsarbeit in jedem Detail",craftText:"Ob eigens gefertigte Subwoofer-Gehäuse, integrierte Beleuchtung oder unsichtbar verlegte Kabelwege – dank eigener CNC-, Laser- und 3D-Druck-Fertigung entstehen bei uns Lösungen, die es von der Stange nicht gibt.",adviceEyebrow:"Beratung",adviceTitle:"Von der ersten Idee bis zum letzten Schliff",adviceText:"Jedes Fahrzeug und jeder Anspruch ist anders. Deshalb beraten wir dich persönlich und unverbindlich – vom dezenten Upgrade bis zum kompromisslosen High-End-System.",insightsTitle:"Einblicke in unsere Umbauten",insightsText:"Vom unauffälligen Sound-Upgrade bis zum aufwendigen Komplettumbau – Handarbeit aus unserer Werkstatt in Amorbach.",galleryAlts:["Individueller Subwoofer-Bau mit Ground Zero Bässen","Endstufen-Einbau mit violetter Ambiente-Beleuchtung","Hochtöner- und Mitteltöner-Einbau von Focal Utopia","Sony Navigationssystem mit Apple CarPlay im Cockpit","Verbauter Hochtöner im Kofferraum","Individueller Subwoofer-Einbau mit LED-Beleuchtung im Kofferraum"],reviewsRating:"5,0 von 181 Kunden bewertet",reviewsRatingDynamic:(e,t)=>`${e.toFixed(1).replace(".",",")} von ${t} Kunden bewertet`,reviewsText:"Das sagen unsere Kunden über uns.",reviewsLink:"Alle Bewertungen auf Google ansehen →",testimonials:[{name:"Thomas K.",text:"Über YouTube auf dieses Klang-Juwel gestoßen. Beratung und Empfehlungen sind erstklassig – der Tesla-Vorführwagen hat meine Leidenschaft für guten Sound neu entfacht."},{name:"Andreas I.",text:"Sehr professionelle Beratung und Service. Obwohl ich von VAG zu Mercedes gewechselt bin, wurde alles reibungslos angepasst. Die 3-Wege-Lautsprecher und zwei Subwoofer liefern außergewöhnliche Leistung."},{name:"Thomas F.",text:"Kompletter Audi A4 B9 Umbau hat meine Erwartungen übertroffen. Von Anfang bis Ende professionell, mit tadelloser Verarbeitung und Klangqualität."},{name:"Drago G.",text:"Beeindruckt von der CNC-Arbeit, die auf YouTube gezeigt wird. Angefangen mit 3D-gedruckten Lautsprecherringen für meinen Ford Mustang – daraus wurde ein viel größeres Projekt."},{name:"Leonardo B.",text:"Toller Service und meisterhafte Handwerkskunst. Saubere Installation, Leidenschaft in jedem Detail erkennbar."},{name:"Marcel S.",text:"Unschlagbares Preis-Leistungs-Verhältnis. Das Team hat sich viel Zeit genommen, um genau die Lösung für mein Budget zu finden."},{name:"Julia W.",text:"Endlich ein Betrieb, der auch Wohnmobile ernst nimmt. Die Soundanlage in unserem Camper klingt jetzt wie im Wohnzimmer."},{name:"Kevin R.",text:"Dashcam und Alarmanlage in einem Termin sauber verbaut, keine sichtbaren Kabel. Absolute Empfehlung für alle, die Wert auf Verarbeitung legen."},{name:"Sabrina H.",text:"Mein Oldtimer hat jetzt modernen Sound, ohne dass es dem Original-Look geschadet hätte. Genau das habe ich gesucht."},{name:"Niklas P.",text:"Von der ersten Anfrage bis zum fertigen Umbau lief alles reibungslos. Ehrliche Beratung ohne Verkaufsdruck."}],moreTitle:"Mehr als nur Car-Hifi",moreText:"Neben individuellen Sound-Umbauten bieten wir CNC-Zerspanung, Lasertechnik, 3D-Druck und mehr – alles aus einer Hand in unserer eigenen Werkstatt.",moreCta:"Alle Leistungen entdecken",faqHeading:"Häufig gestellte Fragen"},vehicleSelect:{loading:"Marken werden geladen…",metaTitle:"Fahrzeug auswählen",metaDescription:"Wähle deine Fahrzeugmarke und dein Modell und entdecke passende Car-Hifi Sound-Pakete von HifiPlanet.",title:"Fahrzeug auswählen",intro:"Wähle zuerst deine Marke, dann dein Modell – wir zeigen dir direkt die passenden Sound-Pakete.",empty:"Es sind noch keine Marken hinterlegt."},brandPage:{metaTitleFallback:"Modell auswählen",metaDescription:e=>`Wähle dein ${e} Modell und entdecke passende Car-Hifi Sound-Pakete von HifiPlanet.`,loading:"Lädt…",breadcrumbVehicles:"Fahrzeuge",titleSuffix:"Modell wählen",empty:"Für diese Marke sind noch keine Modelle hinterlegt."},modelPage:{customRequest:"Individuell anfragen",customHint:"Nicht das Passende dabei? Wir stellen dir gerne ein Paket nach deinen Wünschen zusammen.",whatsappText:(e,t)=>`Hallo HifiPlanet, ich interessiere mich für einen Car-Hifi-Umbau für meinen ${e} ${t}.`,metaTitleFallback:"Sound-Pakete",metaTitle:(e,t)=>`${e} ${t} Sound-Pakete`,metaDescription:(e,t)=>`Car-Hifi Sound-Pakete für ${e} ${t} inkl. aktueller Preise – von HifiPlanet unverbindlich anfragen.`,loading:"Lädt…",breadcrumbVehicles:"Fahrzeuge",titleSuffix:"Sound-Pakete",empty:"Für dieses Modell sind noch keine Pakete hinterlegt.",totalPrice:"ab ca.",productLoading:"Produkt wird geladen…",requestContact:"Kontakt anfragen",badges:{recommended:"Empfohlen",popular:"Am beliebtesten",tip:"Tipp",coming_soon:"Coming soon"},videoLink:"Zum Video",moreBullets:e=>e===1?"+ 1 weitere Leistung":`+ ${e} weitere Leistungen`,showMore:"Mehr anzeigen",lessBullets:"Weniger anzeigen",wheelHint:"Mit dem Mausrad blättern"},leistungen:{metaTitle:"Leistungen",metaDescription:"Car-Hifi, Wohnmobil & Caravan, Oldtimer, CNC-Zerspanung, Lasertechnik, 3D-Druck, Alarmanlagen und Dash Cams – alles aus einer Hand bei HifiPlanet in Amorbach.",title:"Unsere Leistungen",intro:"Von individuellen Sound-Umbauten bis zur eigenen CNC- und 3D-Druck-Fertigung – alles aus einer Hand in unserer Werkstatt in Amorbach.",notListedTitle:"Dein Projekt ist nicht dabei?",notListedText:"Sprich uns einfach an – wir finden gemeinsam die passende Lösung.",contact:"Kontakt aufnehmen"},contactPage:{sendAnother:"Weitere Anfrage senden",vehicleBoxTitle:"Dein Fahrzeug:",privacyPre:"Mit dem Absenden stimmst du zu, dass wir deine Angaben zur Bearbeitung der Anfrage verwenden. Mehr dazu in der ",privacyLink:"Datenschutzerklärung",privacyPost:".",mapIframeTitle:"Standort von HifiPlanet in Amorbach auf Google Maps",whatsappText:(e,t,n)=>`Hallo HifiPlanet, ich interessiere mich für das Paket "${n}" für meinen ${e} ${t}.`,metaTitle:"Kontakt",metaDescription:"Kontaktiere HifiPlanet in Amorbach für dein individuelles Car-Hifi Projekt – wir beraten dich gerne unverbindlich.",title:"Kontakt aufnehmen",heroEyebrow:"Kontakt",heroTitlePre:"Sprich",heroTitleAccent:"mit",heroTitlePost:"uns.",heroSubtitle:"Ob Anlage, Einbau oder Klang-Tuning für dein Fahrzeug — schreib uns, wir melden uns schnellstmöglich zurück.",packageBoxTitle:"Deine Anfrage bezieht sich auf",formTitle:"Anfrage senden",sentTitle:"Anfrage gesendet ✓",sentText:"Danke! Wir melden uns innerhalb eines Werktags bei dir.",contextIntro:"Deine Anfrage bezieht sich auf:",contextBrand:"Marke",contextModel:"Modell",contextPackage:"Paket",contextProduct:"Produkt",packagePrice:"Paketpreis",upgrades:"Upgrades",optionalUpgrades:"Optionale Upgrades",totalWithUpgrades:"Gesamt inkl. Upgrades",nameLabel:"Name *",namePlaceholder:"Max Mustermann",emailLabel:"E-Mail *",emailPlaceholder:"max@mail.de",phoneLabel:"Telefon",phonePlaceholder:"Optional",vinLabel:"Fahrgestellnummer (FIN)",vinPlaceholder:"Optional – hilft bei der Einschätzung",messageLabel:"Nachricht",messagePlaceholder:"Erzähl uns von deinem Projekt – Fahrzeug, Wunschklang, Budget …",requiredHint:"* Pflichtfelder",sending:"Wird gesendet…",submit:"Anfrage senden",cardTitle:"HiFi Planet Amorbach",address:"Adresse",phone:"Telefon",email:"E-Mail",hours:"Öffnungszeiten",hoursWeek:"Mo–Fr: 9:00–18:00 Uhr",hoursSat:"Sa: 10:00–13:00 Uhr",hoursWeekDays:"Mo–Fr",hoursWeekTime:"9:00 – 18:00 Uhr",hoursSatDay:"Sa",hoursSatTime:"10:00 – 13:00 Uhr",directionsTitle:"Anfahrt",mapEmbedName:"Die Google-Maps-Karte",mapOpenChip:"In Maps öffnen",routePlan:"Route planen",featurePremiumTitle:"Premium Klang",featurePremiumSub:"Höchste Qualität",featureGermanyTitle:"Made in Germany",featureGermanySub:"Präzise Handarbeit",featureIndividualTitle:"Individuell",featureIndividualSub:"Maßgeschneiderte Lösungen",featureExpertsTitle:"Experten Team",featureExpertsSub:"Leidenschaft & Know-how"},galleryOverview:{metaTitle:"Bildergalerie",metaDescription:"Einblicke in unsere Car-Hifi Umbauten – nach Marke sortiert. Wähle eine Marke und entdecke die Projekte.",title:"Bildergalerie",intro:"Wähle eine Marke und entdecke unsere Umbauten im Detail.",loading:"Lädt…",empty:"Es sind noch keine Galerie-Marken hinterlegt."},galleryBrandPage:{metaTitleFallback:"Bildergalerie",metaTitle:e=>`${e} Umbauten`,metaDescription:e=>`Einblicke in unsere ${e} Car-Hifi Umbauten.`,loading:"Lädt…",breadcrumbGallery:"Galerie",titleSuffix:"Projekt wählen",empty:"Für diese Marke sind noch keine Projekte hinterlegt."},galleryProjectPage:{ctaTitle:"So etwas für dein Auto?",ctaText:"Erzähl uns von deinem Fahrzeug – wir planen einen ähnlichen Umbau für dich.",ctaButton:"Ähnlichen Umbau anfragen",ctaTopic:e=>`Mich interessiert ein ähnlicher Umbau wie "${e}" aus eurer Galerie.`,metaTitleFallback:"Bildergalerie",metaDescription:e=>`Fotos unseres ${e} Umbaus.`,loading:"Lädt…",breadcrumbGallery:"Galerie",empty:"Für dieses Projekt sind noch keine Fotos hinterlegt.",enlargeImage:"Bild vergrößern"},downloadsPage:{metaTitle:"Downloads",metaDescription:"Dateien und Songs von HifiPlanet zum Anhören und Herunterladen.",title:"Downloads",intro:"Hier stellen wir dir Dateien und Songs bereit – direkt anhören oder herunterladen.",loading:"Lädt…",empty:"Aktuell stehen keine Downloads bereit.",download:"Herunterladen",lockedTitle:"Geschützter Bereich",lockedText:"Bitte gib das Passwort ein, das du von uns bekommen hast.",passwordLabel:"Passwort",unlock:"Freischalten",unlocking:"Wird geprüft…",wrongPassword:"Das Passwort stimmt leider nicht."},errors:{generic:"Da ist etwas schiefgelaufen. Bitte versuche es noch einmal.",network:"Keine Verbindung zum Server. Bitte prüfe deine Internetverbindung.",notFound:"Diese Seite gibt es nicht (mehr).",rateLimited:"Zu viele Anfragen in kurzer Zeit. Bitte versuche es später noch einmal oder ruf uns an.",invalidInput:"Bitte gib deinen Namen und eine gültige E-Mail-Adresse an.",server:"Auf dem Server ist ein Fehler aufgetreten. Bitte versuche es später noch einmal.",maintenance:"Dieser Bereich wird gerade überarbeitet. Bitte schau später wieder vorbei."},notFound:{metaTitle:"Seite nicht gefunden",title:"Diese Seite haben wir nicht gefunden",text:"Vielleicht ist der Link veraltet oder hat einen Tippfehler. Hier geht es direkt weiter:",toVehicles:"Fahrzeug wählen",toContact:"Kontakt aufnehmen",toHome:"Zur Startseite"}},ME={nav:{mainNav:"Main navigation",menu:"Menu",call:"Call",openMenu:"Open menu",closeMenu:"Close menu",close:"Close",adminPanel:"Go to admin panel",vehicles:"Vehicles",services:"Services",gallery:"Gallery",contact:"Contact",whatsapp:"WhatsApp",shop:"Visit shop",downloads:"Downloads"},themeToggle:{label:"Toggle theme"},languageToggle:{label:"Select language"},footer:{routePlan:"Get directions",contactHeading:"Contact",contactForm:"Contact form",hoursHeading:"Opening hours",open:"Open",closed:"Closed",days:{monFri:"Monday – Friday",sat:"Saturday",sun:"Sunday"},copyright:e=>`© ${e} HifiPlanet. All information without guarantee.`,imprint:"Legal notice",privacy:"Privacy",terms:"Terms",downloads:"Downloads",cookieSettings:"Cookie settings"},cookieConsent:{bannerText:"We only use technically necessary cookies. For Google Maps, YouTube videos and analytics cookies we need your additional consent, since data is transferred to Google in that case.",moreInfo:"More details in our",privacyPolicy:"privacy policy",settings:"Settings",onlyNecessary:"Necessary only",acceptAll:"Accept all",modalTitle:"Cookie settings",modalIntro:"Choose which categories you want to allow. More details in our",necessaryTitle:"Necessary",necessaryDesc:"Required to operate the website (e.g. login session, theme and cookie preference). Cannot be disabled.",externalTitle:"External media",externalDesc:"Google Maps and YouTube videos. Loading them transfers data (including your IP address) to Google.",analyticsTitle:"Analytics",analyticsDesc:"Google Analytics helps us understand how the website is used. This transfers data to Google.",cancel:"Cancel",saveSelection:"Save selection"},maintenance:{title:"Under maintenance",defaultMessage:"This area is currently being updated. Please check back shortly.",login:"Log in"},lightbox:{close:"Close",previous:"Previous image",next:"Next image"},home:{metaTitle:"Custom Car-Hifi Installations",metaDescription:"HifiPlanet – your car-hifi specialist in Amorbach, Germany. Choose your make and model, discover matching sound packages and get in touch, no obligation.",stickyCta:"Ready for your sound upgrade?",selectVehicle:"Select vehicle",getInTouch:"Get in touch",welcome:"Welcome to HifiPlanet",heroTitle:"Home of pure Sound",heroSubtitle:"Your car-hifi specialist for custom sound installations. Choose your vehicle, discover the right package and get in touch, no obligation – we take care of the rest.",stats:[{value:"20+",label:"years of experience"},{value:"Huge",label:"in-house 3D print farm"},{value:"In-house",label:"CNC & laser workshop"},{value:"International",label:"recognized car-hifi specialist"}],brandsHeading:"Brands we work with",youtubeBadge:"HifiPlanet presents",youtubeTitle:"The craft behind your sound",youtubeText:"Discover the artistry behind our work",youtubeCta:"Watch now",heroImageAlt:"Ground Zero subwoofer and amplifiers with purple ambient lighting",craftImageAlt:"Custom subwoofer build",adviceImageAlt:"Amplifier installation with ambient lighting",moreImageAlt:"High-end amplifier and subwoofer, studio shot",craftEyebrow:"Craftsmanship",craftTitle:"Precision work in every detail",craftText:"Whether custom-built subwoofer enclosures, integrated lighting or invisibly routed cabling – our own CNC, laser and 3D-printing production means we can build solutions you simply can't buy off the shelf.",adviceEyebrow:"Consultation",adviceTitle:"From the first idea to the final touch",adviceText:"Every vehicle and every requirement is different. That's why we advise you personally and without obligation – from a subtle upgrade to an uncompromising high-end system.",insightsTitle:"A look at our installations",insightsText:"From subtle sound upgrades to elaborate full installations – handcrafted in our workshop in Amorbach.",galleryAlts:["Custom subwoofer build with Ground Zero bass drivers","Amplifier installation with purple ambient lighting","Tweeter and midrange installation by Focal Utopia","Sony navigation system with Apple CarPlay in the cockpit","Installed tweeter in the trunk","Custom subwoofer installation with LED lighting in the trunk"],reviewsRating:"Rated 5.0 by 181 customers",reviewsRatingDynamic:(e,t)=>`Rated ${e.toFixed(1)} by ${t} customers`,reviewsText:"Here's what our customers say about us.",reviewsLink:"See all reviews on Google →",testimonials:[{name:"Thomas K.",text:"Found this gem through YouTube. Advice and recommendations are top-notch – the Tesla demo car reignited my passion for great sound."},{name:"Andreas I.",text:"Very professional advice and service. Even though I switched from VAG to Mercedes, everything was adapted smoothly. The 3-way speakers and two subwoofers deliver outstanding performance."},{name:"Thomas F.",text:"The complete Audi A4 B9 build exceeded my expectations. Professional from start to finish, with flawless workmanship and sound quality."},{name:"Drago G.",text:"Impressed by the CNC work shown on YouTube. Started with 3D-printed speaker rings for my Ford Mustang – it turned into a much bigger project."},{name:"Leonardo B.",text:"Great service and masterful craftsmanship. Clean installation, passion visible in every detail."},{name:"Marcel S.",text:"Unbeatable value for money. The team took a lot of time to find the exact solution for my budget."},{name:"Julia W.",text:"Finally a shop that takes motorhomes seriously too. The sound system in our camper now sounds like a living room."},{name:"Kevin R.",text:"Dash cam and alarm system installed cleanly in a single appointment, no visible cables. Highly recommended for anyone who values quality workmanship."},{name:"Sabrina H.",text:"My classic car now has modern sound without compromising the original look. Exactly what I was looking for."},{name:"Niklas P.",text:"From the first inquiry to the finished build, everything went smoothly. Honest advice with no sales pressure."}],moreTitle:"More than just car-hifi",moreText:"Besides custom sound installations, we also offer CNC machining, laser technology, 3D printing and more – all from a single source in our own workshop.",moreCta:"Discover all our services",faqHeading:"Frequently asked questions"},vehicleSelect:{loading:"Loading brands…",metaTitle:"Select your vehicle",metaDescription:"Choose your vehicle make and model and discover matching car-hifi sound packages from HifiPlanet.",title:"Select your vehicle",intro:"Choose your make first, then your model – we'll show you the matching sound packages right away.",empty:"No brands have been added yet."},brandPage:{metaTitleFallback:"Select a model",metaDescription:e=>`Choose your ${e} model and discover matching car-hifi sound packages from HifiPlanet.`,loading:"Loading…",breadcrumbVehicles:"Vehicles",titleSuffix:"Select a model",empty:"No models have been added for this brand yet."},modelPage:{customRequest:"Request a custom setup",customHint:"Nothing quite right? We will happily put together a package to suit you.",whatsappText:(e,t)=>`Hello HifiPlanet, I am interested in a car audio upgrade for my ${e} ${t}.`,metaTitleFallback:"Sound packages",metaTitle:(e,t)=>`${e} ${t} sound packages`,metaDescription:(e,t)=>`Car-hifi sound packages for the ${e} ${t} including current prices – get in touch with HifiPlanet, no obligation.`,loading:"Loading…",breadcrumbVehicles:"Vehicles",titleSuffix:"Sound packages",empty:"No packages have been added for this model yet.",totalPrice:"from approx.",productLoading:"Loading product…",requestContact:"Request contact",badges:{recommended:"Recommended",popular:"Most popular",tip:"Tip",coming_soon:"Coming soon"},videoLink:"Watch video",moreBullets:e=>e===1?"+ 1 more feature":`+ ${e} more features`,showMore:"Show more",lessBullets:"Show less",wheelHint:"Scroll to browse"},leistungen:{metaTitle:"Services",metaDescription:"Car-hifi, motorhomes & caravans, classic cars, CNC machining, laser technology, 3D printing, alarm systems and dash cams – all from a single source at HifiPlanet in Amorbach.",title:"Our services",intro:"From custom sound installations to our own CNC and 3D-printing production – all from a single source in our workshop in Amorbach.",notListedTitle:"Don't see your project?",notListedText:"Just get in touch – we'll find the right solution together.",contact:"Get in touch"},contactPage:{sendAnother:"Send another request",vehicleBoxTitle:"Your vehicle:",privacyPre:"By sending this form you agree that we use your details to handle your request. Learn more in our ",privacyLink:"privacy policy",privacyPost:".",mapIframeTitle:"HifiPlanet location in Amorbach on Google Maps",whatsappText:(e,t,n)=>`Hello HifiPlanet, I am interested in the "${n}" package for my ${e} ${t}.`,metaTitle:"Contact",metaDescription:"Get in touch with HifiPlanet in Amorbach for your custom car-hifi project – we're happy to advise you, no obligation.",title:"Get in touch",heroEyebrow:"Contact",heroTitlePre:"Talk",heroTitleAccent:"to",heroTitlePost:"us.",heroSubtitle:"Whether it's a system, installation, or sound tuning for your car — write to us, we'll get back to you as soon as possible.",packageBoxTitle:"Your inquiry relates to",formTitle:"Send inquiry",sentTitle:"Inquiry sent ✓",sentText:"Thanks! We'll get back to you within one business day.",contextIntro:"Your inquiry relates to:",contextBrand:"Brand",contextModel:"Model",contextPackage:"Package",contextProduct:"Product",packagePrice:"Package price",upgrades:"Upgrades",optionalUpgrades:"Optional upgrades",totalWithUpgrades:"Total incl. upgrades",nameLabel:"Name *",namePlaceholder:"Max Mustermann",emailLabel:"Email *",emailPlaceholder:"max@mail.de",phoneLabel:"Phone",phonePlaceholder:"Optional",vinLabel:"Vehicle identification number (VIN)",vinPlaceholder:"Optional – helps us assess your vehicle",messageLabel:"Message",messagePlaceholder:"Tell us about your project – vehicle, desired sound, budget …",requiredHint:"* Required fields",sending:"Sending…",submit:"Send inquiry",cardTitle:"HiFi Planet Amorbach",address:"Address",phone:"Phone",email:"Email",hours:"Opening hours",hoursWeek:"Mon–Fri: 9:00 AM–6:00 PM",hoursSat:"Sat: 10:00 AM–1:00 PM",hoursWeekDays:"Mon–Fri",hoursWeekTime:"9:00 AM – 6:00 PM",hoursSatDay:"Sat",hoursSatTime:"10:00 AM – 1:00 PM",directionsTitle:"Directions",mapEmbedName:"The Google Maps map",mapOpenChip:"Open in Maps",routePlan:"Get directions",featurePremiumTitle:"Premium Sound",featurePremiumSub:"Highest quality",featureGermanyTitle:"Made in Germany",featureGermanySub:"Precision craftsmanship",featureIndividualTitle:"Custom-built",featureIndividualSub:"Tailored solutions",featureExpertsTitle:"Expert Team",featureExpertsSub:"Passion & know-how"},galleryOverview:{metaTitle:"Photo gallery",metaDescription:"A look at our car-hifi installations – sorted by brand. Choose a brand and explore the projects.",title:"Photo gallery",intro:"Choose a brand and explore our installations in detail.",loading:"Loading…",empty:"No gallery brands have been added yet."},galleryBrandPage:{metaTitleFallback:"Photo gallery",metaTitle:e=>`${e} installations`,metaDescription:e=>`A look at our ${e} car-hifi installations.`,loading:"Loading…",breadcrumbGallery:"Gallery",titleSuffix:"Select a project",empty:"No projects have been added for this brand yet."},galleryProjectPage:{ctaTitle:"Want something like this for your car?",ctaText:"Tell us about your vehicle and we will plan a similar build for you.",ctaButton:"Request a similar build",ctaTopic:e=>`I am interested in a build similar to "${e}" from your gallery.`,metaTitleFallback:"Photo gallery",metaDescription:e=>`Photos of our ${e} installation.`,loading:"Loading…",breadcrumbGallery:"Gallery",empty:"No photos have been added for this project yet.",enlargeImage:"Enlarge image"},downloadsPage:{metaTitle:"Downloads",metaDescription:"Files and songs from HifiPlanet to listen to and download.",title:"Downloads",intro:"Here you will find files and songs we provide for you – listen right here or download them.",loading:"Loading…",empty:"There are no downloads available right now.",download:"Download",lockedTitle:"Protected area",lockedText:"Please enter the password you received from us.",passwordLabel:"Password",unlock:"Unlock",unlocking:"Checking…",wrongPassword:"Sorry, that password is not correct."},errors:{generic:"Something went wrong. Please try again.",network:"No connection to the server. Please check your internet connection.",notFound:"This page does not exist (anymore).",rateLimited:"Too many requests in a short time. Please try again later or give us a call.",invalidInput:"Please enter your name and a valid email address.",server:"A server error occurred. Please try again later.",maintenance:"This section is being updated. Please check back later."},notFound:{metaTitle:"Page not found",title:"We could not find this page",text:"The link may be outdated or contain a typo. Continue here:",toVehicles:"Choose your vehicle",toContact:"Get in touch",toHome:"Back to the homepage"}},yn={de:_E,en:ME},Ay=m.createContext(null);function LE({children:e}){const[t,n]=m.useState(null),[r,s]=m.useState(!0);m.useEffect(()=>{ue.get("/auth/me").then(d=>n(d.authenticated===!1?null:d)).catch(()=>n(null)).finally(()=>s(!1))},[]);const i=async(d,f)=>{const h=await ue.post("/auth/login",{username:d,password:f});return h.requires_2fa?{requires2fa:!0}:(n(h),{requires2fa:!1})},o=async d=>{const f=await ue.post("/auth/verify-2fa",{code:d});n(f)},a=async()=>{await ue.post("/auth/logout",{}),n(null)},u=async()=>{const d=await ue.get("/auth/me");n(d.authenticated===!1?null:d)},c=d=>{var f;return!!t&&(t.is_super_admin||((f=t.permissions)==null?void 0:f.includes(d)))};return l.jsx(Ay.Provider,{value:{user:t,loading:r,login:i,verifyTwoFactor:o,logout:a,refreshUser:u,hasPermission:c},children:e})}function lr(){return m.useContext(Ay)}const gl={home_sections:"content.manage",faqs:"content.manage",partners:"content.manage",text:"content.manage",services:"services.manage",packages:"packages.manage",brands:"brands.manage",car_models:"models.manage",gallery_brands:"gallery.manage",gallery_projects:"gallery.manage",gallery_photos:"gallery.manage",legal_pages:"settings.manage"},Qu="hifi-live-edit",AE={de:{},en:{}},hs=(e,t,n,r)=>`${e}|${t}|${n}|${r}`;function DE(){try{const e=new URLSearchParams(window.location.search);if(e.get("bearbeiten")==="1"){sessionStorage.setItem(Qu,"1"),e.delete("bearbeiten");const t=e.toString();return window.history.replaceState(window.history.state,"",window.location.pathname+(t?`?${t}`:"")+window.location.hash),!0}return sessionStorage.getItem(Qu)==="1"}catch{return!1}}const On=()=>{},Dy=m.createContext({available:!1,enabled:!1,setEnabled:On,canEdit:()=>!1,getValue:(e,t,n,r,s)=>s,setValue:On,resetValue:On,hasPending:()=>!1,textOverride:()=>{},trackTextKey:On,usedTextKeys:()=>[],pendingCount:0,saving:!1,error:"",save:async()=>{},discard:On,editor:null,openEditor:On,closeEditor:On});function Om({serverOverrides:e,children:t}){const{user:n,hasPermission:r}=lr(),s=!!n&&Object.values(gl).some(L=>r(L)),[i,o]=m.useState(DE),a=s&&i,[u,c]=m.useState({}),[d,f]=m.useState({}),[h,p]=m.useState(!1),[v,w]=m.useState(""),[b,g]=m.useState(null),x=m.useRef(a);x.current=a;const y=m.useRef(new Map),k=m.useCallback(L=>{o(L);try{sessionStorage.setItem(Qu,L?"1":"0")}catch{}L||g(null)},[]),S=m.useCallback(L=>a&&!!gl[L]&&r(gl[L]),[a,r]),E=m.useCallback((L,F,C,R,z)=>{const W=hs(L,F,C,R);return W in u?u[W]:W in d?d[W]:z},[u,d]),j=m.useCallback((L,F,C,R,z)=>{w(""),c(W=>({...W,[hs(L,F,C,R)]:z}))},[]),P=m.useCallback((L,F,C,R)=>{c(z=>{const W=hs(L,F,C,R);if(!(W in z))return z;const te={...z};return delete te[W],te})},[]),M=m.useCallback((L,F,C,R)=>hs(L,F,C,R)in u,[u]),T=e||AE,B=m.useCallback((L,F)=>{var z;const C=hs("text",F,"value",L),R=C in u?u[C]:C in d?d[C]:(z=T[L])==null?void 0:z[F];return R||void 0},[u,d,T]),H=m.useCallback(L=>{if(!x.current)return;const F=window.location.pathname,C=y.current.get(L);C?C.add(F):y.current.set(L,new Set([F]))},[]),ee=m.useCallback(L=>{const F=[];return y.current.forEach((C,R)=>{C.has(L)&&F.push(R)}),F.sort()},[]),U=Object.keys(u).length,G=m.useCallback(async()=>{const L=Object.entries(u);if(!L.length)return;const F=L.map(([C,R])=>{const[z,W,te,se]=C.split("|");return{entity:z,id:W,field:te,lang:se,value:R??""}});p(!0),w("");try{await ue.put("/live-edit",{changes:F}),f(C=>({...C,...u})),c({})}catch(C){w(C.status===401?"Deine Anmeldung ist abgelaufen. Bitte im Admin-Bereich neu anmelden, die Änderungen bleiben hier so lange erhalten.":C.message)}finally{p(!1)}},[u]),q=m.useCallback(()=>{c({}),w(""),g(null)},[]),ie=m.useCallback(L=>g(L),[]),N=m.useCallback(()=>g(null),[]);m.useEffect(()=>{if(!U)return;const L=F=>{F.preventDefault(),F.returnValue=""};return window.addEventListener("beforeunload",L),()=>window.removeEventListener("beforeunload",L)},[U]);const A=m.useMemo(()=>({available:s,enabled:a,setEnabled:k,canEdit:S,getValue:E,setValue:j,resetValue:P,hasPending:M,textOverride:B,trackTextKey:H,usedTextKeys:ee,pendingCount:U,saving:h,error:v,save:G,discard:q,editor:b,openEditor:ie,closeEditor:N}),[s,a,k,S,E,j,P,M,B,H,ee,U,h,v,G,q,b,ie,N]);return l.jsx(Dy.Provider,{value:A,children:t})}function ot(){return m.useContext(Dy)}function RE(){const e=localStorage.getItem("hifi-lang");return e==="de"||e==="en"?e:(navigator.language||"de").toLowerCase().startsWith("de")?"de":"en"}function ao(e,t){return t.split(".").reduce((n,r)=>n==null?void 0:n[r],e)}const Ry=m.createContext({language:"de",setLanguage:()=>{},toggleLanguage:()=>{},t:e=>{const t=ao(yn.de,e);return t!==void 0?t:e}});function zm({children:e}){const[t,n]=m.useState(RE),{textOverride:r,trackTextKey:s}=ot();m.useEffect(()=>{document.documentElement.setAttribute("lang",t),localStorage.setItem("hifi-lang",t)},[t]);const i=()=>n(a=>a==="de"?"en":"de"),o=a=>{const u=yn[t]||yn.de,c=ao(u,a);if(typeof c=="string"||c===void 0&&typeof ao(yn.de,a)=="string"){s(a);const f=r(t,a);if(f!==void 0)return f}if(c!==void 0)return c;const d=ao(yn.de,a);return d!==void 0?d:a};return l.jsx(Ry.Provider,{value:{language:t,setLanguage:n,toggleLanguage:i,t:o},children:e})}function Se(){return m.useContext(Ry)}function Vy({overHero:e=!1,forceDark:t=!1}){const{theme:n,toggleTheme:r}=NE(),{t:s}=Se();return l.jsx("button",{onClick:r,"aria-label":s("themeToggle.label"),className:`rounded-full p-2 transition ${e?"text-white hover:bg-white/10":t?"text-neutral-300 hover:bg-neutral-800":"text-neutral-600 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,children:n==="dark"?l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"h-5 w-5",children:l.jsx("path",{d:"M12 3a1 1 0 011 1v1a1 1 0 11-2 0V4a1 1 0 011-1zm0 15a5 5 0 100-10 5 5 0 000 10zm9-6a1 1 0 010 2h-1a1 1 0 110-2h1zM4 12a1 1 0 010 2H3a1 1 0 110-2h1zm14.36-7.36a1 1 0 011.42 1.42l-.71.7a1 1 0 11-1.41-1.4l.7-.72zM5.64 18.36a1 1 0 011.41 1.41l-.7.71a1 1 0 11-1.42-1.41l.71-.71zm12.72 0l.71.7a1 1 0 11-1.41 1.42l-.71-.71a1 1 0 011.41-1.41zM6.34 5.64l-.7-.7A1 1 0 117.05 3.5l.7.71A1 1 0 016.34 5.64zM12 6a1 1 0 011-1v0a1 1 0 01-1 1zm0 12a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1z"})}):l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"h-5 w-5",children:l.jsx("path",{fillRule:"evenodd",d:"M9.53 2.25a.75.75 0 01.19.82 8.25 8.25 0 0011.03 11.03.75.75 0 011.01.99A10.5 10.5 0 1112.9 2.1a.75.75 0 011.63-.85z",clipRule:"evenodd"})})})}const Rd=m.createContext({phone:"09373 20 62 390",whatsapp:null,contact_email:"info@hifi-planet-amorbach.de",address_street:"Boxbrunner Str. 20a",address_zip:"63916",address_city:"Amorbach",logo_path:null,logo_dark_path:null,business_hours:null,hero_image_path:null,ga_measurement_id:null,gallery_card_text_x:0,gallery_card_text_y:100,site_font:null,page_loader_enabled:1,package_card_width:210,package_card_height:480,vehicle_tile_width:240,vehicle_tile_height:180,hidden_areas:[]}),VE=Rd.Provider;function Vt(){return m.useContext(Rd)}function wa(){const{hidden_areas:e}=m.useContext(Rd);return t=>(e||[]).includes(t)}const Ju="/assets/logo-dark-R-ckaBhx.png",Iy=e=>(e||"").replace(/[^\d+]/g,""),Vd=e=>`tel:${Iy(e)}`,Id=(e,t="")=>`https://wa.me/${Iy(e).replace(/^0/,"49").replace("+","")}${t?`?text=${encodeURIComponent(t)}`:""}`;function Tn(e,t={}){typeof window>"u"||typeof window.gtag!="function"||window.gtag("event",e,t)}const IE="https://www.audio4cars.de/",Bm=70,FE=500;function OE({className:e}){return l.jsxs("svg",{viewBox:"0 0 3 2",className:e,"aria-hidden":"true",children:[l.jsx("rect",{width:"3",height:"0.667",y:"0",fill:"#000"}),l.jsx("rect",{width:"3",height:"0.667",y:"0.667",fill:"#D00"}),l.jsx("rect",{width:"3",height:"0.666",y:"1.334",fill:"#FFCE00"})]})}function zE({className:e}){return l.jsxs("svg",{viewBox:"0 0 60 30",className:e,"aria-hidden":"true",children:[l.jsx("clipPath",{id:"fgb-t",children:l.jsx("path",{d:"M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z"})}),l.jsx("path",{d:"M0,0 v30 h60 v-30 z",fill:"#00247d"}),l.jsx("path",{d:"M0,0 L60,30 M60,0 L0,30",stroke:"#fff",strokeWidth:"6"}),l.jsx("path",{d:"M0,0 L60,30 M60,0 L0,30",clipPath:"url(#fgb-t)",stroke:"#cf142b",strokeWidth:"4"}),l.jsx("path",{d:"M30,0 v30 M0,15 h60",stroke:"#fff",strokeWidth:"10"}),l.jsx("path",{d:"M30,0 v30 M0,15 h60",stroke:"#cf142b",strokeWidth:"6"})]})}const xl=[{code:"de",label:"Deutsch",Flag:OE},{code:"en",label:"English",Flag:zE}];function BE({overHero:e=!1}){const{language:t,setLanguage:n,t:r}=Se(),[s,i]=m.useState(!1),o=m.useRef(null),a=xl.find(u=>u.code===t)||xl[0];return m.useEffect(()=>{if(!s)return;const u=d=>{o.current&&!o.current.contains(d.target)&&i(!1)},c=d=>{d.key==="Escape"&&i(!1)};return document.addEventListener("mousedown",u),document.addEventListener("keydown",c),()=>{document.removeEventListener("mousedown",u),document.removeEventListener("keydown",c)}},[s]),l.jsxs("div",{className:"relative",ref:o,children:[l.jsxs("button",{type:"button",onClick:()=>i(u=>!u),"aria-haspopup":"listbox","aria-expanded":s,"aria-label":r("languageToggle.label"),className:`flex items-center gap-1 rounded-full p-1.5 transition ${e?"hover:bg-white/10":"hover:bg-neutral-800"}`,children:[l.jsx("span",{className:`block h-4 w-6 shrink-0 overflow-hidden rounded-[3px] ring-1 ${e?"ring-white/50":"ring-neutral-600"}`,children:l.jsx(a.Flag,{className:"h-full w-full"})}),l.jsx("svg",{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",className:`h-3 w-3 transition-transform ${e?"text-white/70":"text-neutral-400"} ${s?"rotate-180":""}`,children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z"})})]}),s&&l.jsx("div",{role:"listbox",className:"absolute right-0 z-50 mt-2 min-w-[9rem] overflow-hidden rounded-lg border border-neutral-700 bg-neutral-900 py-1 shadow-lg",children:xl.map(u=>l.jsxs("button",{type:"button",role:"option","aria-selected":u.code===t,onClick:()=>{n(u.code),i(!1)},className:`flex w-full items-center gap-2 px-3 py-2 text-left text-sm transition hover:bg-neutral-800 ${u.code===t?"font-semibold text-brand-400":"text-neutral-200"}`,children:[l.jsx("span",{className:"block h-4 w-6 shrink-0 overflow-hidden rounded-[3px] ring-1 ring-neutral-600",children:l.jsx(u.Flag,{className:"h-full w-full"})}),u.label]},u.code))})]})}function $E(){const[e,t]=m.useState(!1),[n,r]=m.useState(!1),[s,i]=m.useState(!1),{user:o}=lr(),{phone:a,whatsapp:u,logo_dark_path:c,has_downloads:d}=Vt(),f=wa(),{t:h}=Se(),p=!f("page.vehicles"),v=!f("page.services"),w=!f("page.gallery"),b=d&&!f("page.downloads"),g=3+[p,v,w,b,a,u].filter(Boolean).length,y=Je().pathname==="/",[k,S]=m.useState(!y);m.useEffect(()=>{if(!y){S(!0);return}const q=()=>S(window.scrollY>24);return q(),window.addEventListener("scroll",q,{passive:!0}),()=>window.removeEventListener("scroll",q)},[y]);const E=y&&!k,j=m.useRef(null),P=m.useRef(null);m.useEffect(()=>{if(!e)return;const q=document.body.style.overflow;document.body.style.overflow="hidden";const ie=setTimeout(()=>{var A,L;return(L=(A=j.current)==null?void 0:A.querySelector("button, a"))==null?void 0:L.focus()},50),N=A=>{if(A.key==="Escape"){t(!1);return}if(A.key!=="Tab"||!j.current)return;const L=[...j.current.querySelectorAll("a[href], button")];if(!L.length)return;const F=L[0],C=L[L.length-1];A.shiftKey&&document.activeElement===F?(A.preventDefault(),C.focus()):!A.shiftKey&&document.activeElement===C&&(A.preventDefault(),F.focus())};return document.addEventListener("keydown",N),()=>{var A;clearTimeout(ie),document.body.style.overflow=q,document.removeEventListener("keydown",N),(A=P.current)==null||A.focus({preventScroll:!0})}},[e]),m.useEffect(()=>{if(e){r(!0);let N;const A=requestAnimationFrame(()=>{N=requestAnimationFrame(()=>i(!0))});return()=>{cancelAnimationFrame(A),N&&cancelAnimationFrame(N)}}i(!1);const q=FE+(g-1)*Bm,ie=setTimeout(()=>r(!1),q);return()=>clearTimeout(ie)},[e,g]);const M=()=>`transition-all duration-500 ease-out ${s?"opacity-100":"opacity-0"}`,T=q=>({transitionDelay:`${(s?q:g-1-q)*Bm}ms`,transform:s?"translateY(0)":"translateY(-140px)"}),B=o&&l.jsx(K,{to:"/admin","aria-label":h("nav.adminPanel"),title:h("nav.adminPanel"),className:`rounded-full p-2 transition ${E?"text-white hover:bg-white/10":"text-neutral-300 hover:bg-neutral-800"}`,children:l.jsx(GC,{className:"h-5 w-5"})}),H=ot(),ee=H.available&&l.jsx("button",{type:"button",onClick:()=>H.setEnabled(!H.enabled),"aria-pressed":H.enabled,"aria-label":"Seite bearbeiten",title:H.enabled?"Bearbeiten beenden":"Seite bearbeiten",className:`rounded-full p-2 transition ${H.enabled?"bg-brand-500 text-white hover:bg-brand-600":E?"text-white hover:bg-white/10":"text-neutral-300 hover:bg-neutral-800"}`,children:l.jsx(My,{className:"h-5 w-5"})});let U=0;const G=()=>T(U++);return l.jsxs("header",{className:`sticky top-0 z-30 border-b transition-colors duration-300 ${E?"border-transparent bg-transparent":"border-neutral-800 bg-neutral-950/90 backdrop-blur"}`,children:[l.jsxs("div",{className:"mx-auto grid max-w-6xl grid-cols-[1fr_auto_1fr] items-center gap-3 px-4 py-3 sm:px-6",children:[l.jsx("div",{className:"flex items-center justify-self-start",children:l.jsx("button",{ref:P,onClick:()=>t(!0),"aria-label":h("nav.openMenu"),"aria-expanded":e,"aria-haspopup":"dialog",className:`rounded-md p-2 transition ${E?"text-white hover:bg-white/10":"text-neutral-300 hover:bg-neutral-800"}`,children:l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-6 w-6",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h16"})})})}),l.jsx(K,{to:"/",className:"flex items-center justify-self-center rounded-lg px-2 py-1",children:l.jsx("img",{src:c||Ju,alt:"HifiPlanet",className:"h-14 w-auto sm:h-16"})}),l.jsxs("div",{className:"flex items-center justify-self-end gap-1",children:[ee,B,!e&&l.jsx(BE,{overHero:E}),l.jsx(Vy,{overHero:E,forceDark:!0})]})]}),n&&Yc.createPortal(l.jsx("div",{ref:j,role:"dialog","aria-modal":"true","aria-label":h("nav.menu"),className:"fixed inset-0 z-[100] overflow-y-auto text-left backdrop-blur-xl",style:{background:"linear-gradient(135deg, rgba(241,245,249,0.55) 0%, rgba(227,240,207,0.55) 50%, rgba(248,250,252,0.55) 100%)"},children:l.jsxs("div",{className:"relative mx-auto flex min-h-full max-w-6xl flex-col items-start justify-center gap-5 py-24 pl-6 pr-8 sm:pl-8",children:[l.jsxs("button",{onClick:()=>t(!1),"aria-label":h("nav.closeMenu"),className:"absolute left-6 top-8 flex items-center gap-2 text-neutral-600 hover:text-brand-600 sm:left-8 sm:top-[65px]",children:[l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-6 w-6",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6l12 12M18 6 6 18"})}),l.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide",children:h("nav.close")})]}),p&&l.jsx(K,{to:"/fahrzeuge",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${M()}`,style:G(),children:h("nav.vehicles")}),v&&l.jsx(K,{to:"/leistungen",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${M()}`,style:G(),children:h("nav.services")}),w&&l.jsx(K,{to:"/galerie",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${M()}`,style:G(),children:h("nav.gallery")}),l.jsx(K,{to:"/kontakt",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${M()}`,style:G(),children:h("nav.contact")}),b&&l.jsx(K,{to:"/downloads",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${M()}`,style:G(),children:h("nav.downloads")}),l.jsx("div",{className:`h-px w-16 bg-brand-500/60 ${M()}`,style:G()}),a&&l.jsxs("a",{href:Vd(a),onClick:()=>Tn("contact_call"),className:`flex items-center gap-2 text-sm font-semibold uppercase tracking-wide text-neutral-600 hover:text-brand-600 ${M()}`,style:G(),children:[l.jsx(Kr,{className:"h-4 w-4"}),a]}),u&&l.jsxs("a",{href:Id(u),onClick:()=>Tn("contact_whatsapp"),target:"_blank",rel:"noopener noreferrer",className:`flex items-center gap-2 text-sm font-semibold uppercase tracking-wide text-neutral-600 hover:text-brand-600 ${M()}`,style:G(),children:[l.jsx(_y,{className:"h-4 w-4"}),h("nav.whatsapp")]}),l.jsxs("a",{href:IE,target:"_blank",rel:"noopener noreferrer",className:`flex items-center gap-2 text-sm font-semibold uppercase tracking-wide text-neutral-600 hover:text-brand-600 ${M()}`,style:G(),children:[l.jsx(xE,{className:"h-4 w-4"}),h("nav.shop")]})]})}),document.body)]})}const $m="hifiplanet-cookie-consent",Fy={necessary:!0,external:!1,analytics:!1},Oy=m.createContext({consent:Fy,decided:!1,settingsOpen:!1,acceptAll:()=>{},rejectNonEssential:()=>{},saveCustom:()=>{},openSettings:()=>{},closeSettings:()=>{}});function HE({children:e}){const[t,n]=m.useState(Fy),[r,s]=m.useState(!1),[i,o]=m.useState(!1);m.useEffect(()=>{try{const p=localStorage.getItem($m);if(p){const v=JSON.parse(p);n({necessary:!0,external:!!v.external,analytics:!!v.analytics}),s(!0)}}catch{}},[]);const a=m.useCallback(p=>{n(p),s(!0),o(!1),localStorage.setItem($m,JSON.stringify({...p,decidedAt:new Date().toISOString()}))},[]),u=m.useCallback(()=>a({necessary:!0,external:!0,analytics:!0}),[a]),c=m.useCallback(()=>a({necessary:!0,external:!1,analytics:!1}),[a]),d=m.useCallback(p=>a({necessary:!0,external:!!p.external,analytics:!!p.analytics}),[a]),f=m.useCallback(()=>o(!0),[]),h=m.useCallback(()=>o(!1),[]);return l.jsx(Oy.Provider,{value:{consent:t,decided:r,settingsOpen:i,acceptAll:u,rejectNonEssential:c,saveCustom:d,openSettings:f,closeSettings:h},children:e})}function ns(){return m.useContext(Oy)}const UE=["mon","tue","wed","thu","fri","sat","sun"],WE=["sun","mon","tue","wed","thu","fri","sat"],yl={mon:"Mo",tue:"Di",wed:"Mi",thu:"Do",fri:"Fr",sat:"Sa",sun:"So"};function GE(e){const t=new Date,n=e==null?void 0:e[WE[t.getDay()]];if(!n||n.closed||!n.open||!n.close)return!1;const r=t.getHours()*60+t.getMinutes(),[s,i]=n.open.split(":").map(Number),[o,a]=n.close.split(":").map(Number);return r>=s*60+i&&r<o*60+a}function KE(e){return!e||e.closed||!e.open||!e.close?null:`${e.open} – ${e.close} Uhr`}function zy(e,t="Geschlossen"){const n=[];return UE.forEach(r=>{const s=KE(e==null?void 0:e[r])||t,i=n[n.length-1];i&&i.label===s?i.days=`${i.firstLabel}-${yl[r]}`:n.push({key:r,days:yl[r],firstLabel:yl[r],label:s})}),n}const qE=e=>(e||"").replace(/[^\d+]/g,"");function YE(){const{phone:e,contact_email:t,address_street:n,address_zip:r,address_city:s,business_hours:i,has_downloads:o}=Vt(),a=wa(),u=o&&!a("page.downloads"),c=GE(i),{openSettings:d}=ns(),{pathname:f}=Je(),h=f==="/",{t:p}=Se(),v=[n,[r,s].filter(Boolean).join(" ")].filter(Boolean).join(", "),w=`https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(v)}`,b=zy(i,p("footer.closed"));return l.jsxs("footer",{className:`border-t border-neutral-200 bg-neutral-50 py-10 text-sm text-neutral-600 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-300 ${h?"pb-24":""}`,children:[l.jsxs("div",{className:"mx-auto grid max-w-6xl gap-4 px-4 sm:grid-cols-3 sm:px-6",children:[l.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[l.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[l.jsx(Ny,{className:"h-4 w-4 text-brand-500"}),l.jsx("p",{className:"font-semibold text-neutral-900 dark:text-white",children:"HifiPlanet"})]}),n&&l.jsx("p",{children:n}),(r||s)&&l.jsx("p",{children:[r,s].filter(Boolean).join(" ")}),l.jsxs("a",{href:w,target:"_blank",rel:"noopener noreferrer",className:"mt-4 flex items-center justify-center gap-1.5 rounded-md bg-brand-500 px-3 py-2 text-xs font-semibold text-white hover:bg-brand-600",children:[l.jsx(iE,{className:"h-3.5 w-3.5"}),p("footer.routePlan")]})]}),l.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[l.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[l.jsx(Kr,{className:"h-4 w-4 text-brand-500"}),l.jsx("p",{className:"font-semibold text-neutral-900 dark:text-white",children:p("footer.contactHeading")})]}),l.jsx("p",{children:l.jsx("a",{href:`tel:${qE(e)}`,className:"inline-block py-1 hover:text-brand-500",children:e})}),l.jsx("p",{children:l.jsx("a",{href:`mailto:${t}`,className:"inline-block py-1 hover:text-brand-500",children:t})}),l.jsx(K,{to:"/kontakt",className:"mt-4 flex items-center justify-center gap-1.5 rounded-md border border-neutral-300 px-3 py-2 text-xs font-semibold text-neutral-700 hover:border-brand-500 hover:text-brand-600 dark:border-neutral-700 dark:text-neutral-200",children:p("footer.contactForm")})]}),l.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[l.jsxs("div",{className:"mb-3 flex items-center justify-between gap-2",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(Ty,{className:"h-4 w-4 text-brand-500"}),l.jsx("p",{className:"font-semibold text-neutral-900 dark:text-white",children:p("footer.hoursHeading")})]}),l.jsxs("span",{className:`flex items-center gap-1.5 rounded-full px-2 py-0.5 text-[11px] font-semibold ${c?"bg-green-100 text-green-700 dark:bg-green-900/40 dark:text-green-300":"bg-neutral-100 text-neutral-500 dark:bg-neutral-800 dark:text-neutral-400"}`,children:[l.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${c?"bg-green-500":"bg-neutral-400"}`}),p(c?"footer.open":"footer.closed")]})]}),l.jsx("dl",{className:"space-y-1.5",children:b.map(g=>l.jsxs("div",{className:"flex items-center justify-between gap-3",children:[l.jsx("dt",{className:"text-neutral-500 dark:text-neutral-400",children:g.days}),l.jsx("dd",{className:"font-medium text-neutral-700 dark:text-neutral-200",children:g.label})]},g.key))})]})]}),l.jsx("div",{className:"mx-auto mt-8 max-w-6xl border-t border-neutral-200 px-4 pt-6 text-center text-xs text-neutral-500 dark:border-neutral-800 dark:text-neutral-400 sm:px-6",children:l.jsxs("p",{className:"flex flex-wrap items-center justify-center gap-x-2 gap-y-1",children:[l.jsx("span",{children:p("footer.copyright")(new Date().getFullYear())}),l.jsx("span",{children:"·"}),l.jsx(K,{to:"/impressum",className:"hover:text-brand-500",children:p("footer.imprint")}),l.jsx("span",{children:"·"}),l.jsx(K,{to:"/datenschutz",className:"hover:text-brand-500",children:p("footer.privacy")}),l.jsx("span",{children:"·"}),l.jsx(K,{to:"/agb",className:"hover:text-brand-500",children:p("footer.terms")}),l.jsx("span",{children:"·"}),u&&l.jsxs(l.Fragment,{children:[l.jsx(K,{to:"/downloads",className:"hover:text-brand-500",children:p("footer.downloads")}),l.jsx("span",{children:"·"})]}),l.jsx("button",{type:"button",onClick:d,className:"hover:text-brand-500",children:p("footer.cookieSettings")})]})})]})}function XE(){const{scrollYProgress:e}=ky(),t=rC(e,{stiffness:200,damping:30,restDelta:.001});return l.jsx(Zt.div,{style:{scaleX:t},className:"fixed left-0 top-0 z-40 h-0.5 w-full origin-left bg-brand-500"})}const ZE=()=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"h-10 w-10",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.7 6.3a4 4 0 0 0-5.5 4.5L3 17l2 2 6.2-6.2a4 4 0 0 0 4.5-5.5l-2.6 2.6-2-2 2.6-2.6Z"})});function mi({message:e,fullScreen:t=!1}){const{t:n}=Se(),r=l.jsxs("div",{className:"mx-auto max-w-md text-center",children:[l.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-brand-100 text-brand-600 dark:bg-brand-900/40 dark:text-brand-400",children:l.jsx(ZE,{})}),l.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:n("maintenance.title")}),l.jsx("p",{className:"text-neutral-600 dark:text-neutral-300",children:e||n("maintenance.defaultMessage")})]});return t?l.jsxs("div",{className:"relative flex min-h-screen items-center justify-center bg-white px-4 dark:bg-neutral-950",children:[r,l.jsxs(K,{to:"/admin/login","aria-label":n("maintenance.login"),title:n("maintenance.login"),className:"fixed bottom-4 right-4 flex items-center gap-2 rounded-full border border-neutral-200 bg-white px-3 py-2 text-sm font-medium text-neutral-600 shadow-sm transition hover:border-brand-500 hover:text-brand-600 dark:border-neutral-800 dark:bg-neutral-900 dark:text-neutral-300 dark:hover:text-brand-400",children:[l.jsx(QC,{className:"h-4 w-4"}),n("maintenance.login")]})]}):l.jsx("div",{className:"mx-auto max-w-6xl px-4 py-20 sm:px-6",children:r})}const Hm=l.jsx(l.Fragment,{children:'Wartungsmodus aktiv – Besucher sehen aktuell eine Wartungsmeldung. Du siehst diese Seite nur, weil du die Berechtigung "Wartungsmodus umgehen" hast.'});function pi({inline:e=!1}){return e?l.jsx("div",{className:"mb-8 rounded-lg bg-amber-500 px-4 py-2 text-center text-xs font-semibold text-white",children:Hm}):l.jsx("div",{className:"bg-amber-500 px-4 py-2 text-center text-xs font-semibold text-white",children:Hm})}const Um='a[href], button:not([disabled]), input:not([disabled]), select, textarea, [tabindex]:not([tabindex="-1"])';function By(e,t,n){m.useEffect(()=>{if(!t)return;const r=document.activeElement,s=document.body.style.overflow;document.body.style.overflow="hidden";const i=setTimeout(()=>{var a,u;return(u=(a=e.current)==null?void 0:a.querySelector(Um))==null?void 0:u.focus()},30),o=a=>{if(a.key==="Escape"){a.stopPropagation(),n==null||n();return}if(a.key!=="Tab"||!e.current)return;const u=[...e.current.querySelectorAll(Um)];if(!u.length)return;const c=u[0],d=u[u.length-1];a.shiftKey&&document.activeElement===c?(a.preventDefault(),d.focus()):!a.shiftKey&&document.activeElement===d&&(a.preventDefault(),c.focus())};return document.addEventListener("keydown",o),()=>{clearTimeout(i),document.body.style.overflow=s,document.removeEventListener("keydown",o),r instanceof HTMLElement&&r.focus({preventScroll:!0})}},[t,e])}function QE({onClose:e}){const{consent:t,saveCustom:n}=ns(),[r,s]=m.useState(t.external),[i,o]=m.useState(t.analytics),{t:a}=Se(),u=m.useRef(null);return By(u,!0,e),l.jsx("div",{className:"fixed inset-0 z-[60] flex items-center justify-center bg-black/50 p-4",onClick:e,children:l.jsxs("div",{ref:u,role:"dialog","aria-modal":"true","aria-label":a("cookieConsent.modalTitle"),className:"w-full max-w-md rounded-xl bg-white p-6 dark:bg-neutral-900",onClick:c=>c.stopPropagation(),children:[l.jsx("h2",{className:"mb-1 text-lg font-bold text-neutral-900 dark:text-white",children:a("cookieConsent.modalTitle")}),l.jsxs("p",{className:"mb-4 text-sm text-neutral-600 dark:text-neutral-300",children:[a("cookieConsent.modalIntro")," ",l.jsx(K,{to:"/datenschutz",className:"underline hover:text-brand-500",onClick:e,children:a("cookieConsent.privacyPolicy")}),"."]}),l.jsxs("div",{className:"space-y-3",children:[l.jsxs("div",{className:"flex items-start justify-between gap-3 rounded-lg border border-neutral-200 p-3 dark:border-neutral-700",children:[l.jsxs("div",{children:[l.jsx("p",{className:"text-sm font-semibold text-neutral-800 dark:text-neutral-100",children:a("cookieConsent.necessaryTitle")}),l.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:a("cookieConsent.necessaryDesc")})]}),l.jsx("input",{type:"checkbox",checked:!0,disabled:!0,className:"mt-1 h-4 w-4 shrink-0"})]}),l.jsxs("div",{className:"flex items-start justify-between gap-3 rounded-lg border border-neutral-200 p-3 dark:border-neutral-700",children:[l.jsxs("div",{children:[l.jsx("p",{className:"text-sm font-semibold text-neutral-800 dark:text-neutral-100",children:a("cookieConsent.externalTitle")}),l.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:a("cookieConsent.externalDesc")})]}),l.jsx("input",{type:"checkbox",checked:r,onChange:c=>s(c.target.checked),className:"mt-1 h-4 w-4 shrink-0"})]}),l.jsxs("div",{className:"flex items-start justify-between gap-3 rounded-lg border border-neutral-200 p-3 dark:border-neutral-700",children:[l.jsxs("div",{children:[l.jsx("p",{className:"text-sm font-semibold text-neutral-800 dark:text-neutral-100",children:a("cookieConsent.analyticsTitle")}),l.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:a("cookieConsent.analyticsDesc")})]}),l.jsx("input",{type:"checkbox",checked:i,onChange:c=>o(c.target.checked),className:"mt-1 h-4 w-4 shrink-0"})]})]}),l.jsxs("div",{className:"mt-5 flex justify-end gap-2",children:[l.jsx("button",{type:"button",onClick:e,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:a("cookieConsent.cancel")}),l.jsx("button",{type:"button",onClick:()=>n({external:r,analytics:i}),className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:a("cookieConsent.saveSelection")})]})]})})}function JE(){const{decided:e,settingsOpen:t,acceptAll:n,rejectNonEssential:r,openSettings:s,closeSettings:i}=ns(),{t:o}=Se();return l.jsxs(l.Fragment,{children:[!e&&l.jsx("div",{className:"fixed inset-x-0 bottom-0 z-50 border-t border-neutral-200 bg-white/95 p-4 shadow-lg backdrop-blur dark:border-neutral-800 dark:bg-neutral-900/95 sm:p-5",children:l.jsxs("div",{className:"mx-auto flex max-w-6xl flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[l.jsxs("p",{className:"text-sm text-neutral-600 dark:text-neutral-300",children:[o("cookieConsent.bannerText")," ",o("cookieConsent.moreInfo")," ",l.jsx(K,{to:"/datenschutz",className:"underline hover:text-brand-500",children:o("cookieConsent.privacyPolicy")}),"."]}),l.jsxs("div",{className:"flex flex-wrap gap-2 sm:shrink-0",children:[l.jsx("button",{type:"button",onClick:s,className:"rounded-md border border-neutral-300 px-3 py-2 text-sm dark:border-neutral-700",children:o("cookieConsent.settings")}),l.jsx("button",{type:"button",onClick:r,className:"rounded-md border border-neutral-300 px-3 py-2 text-sm dark:border-neutral-700",children:o("cookieConsent.onlyNecessary")}),l.jsx("button",{type:"button",onClick:n,className:"rounded-md bg-brand-500 px-3 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:o("cookieConsent.acceptAll")})]})]})}),t&&l.jsx(QE,{onClose:i})]})}function eT(){const{consent:e}=ns(),{ga_measurement_id:t}=Vt(),n=m.useRef(!1),r=Je();return m.useEffect(()=>{if(!t||!e.analytics||n.current)return;n.current=!0;const s=document.createElement("script");s.src=`https://www.googletagmanager.com/gtag/js?id=${t}`,s.async=!0,document.head.appendChild(s),window.dataLayer=window.dataLayer||[];function i(...o){window.dataLayer.push(o)}window.gtag=i,i("js",new Date),i("config",t,{anonymize_ip:!0,send_page_view:!1})},[t,e.analytics]),m.useEffect(()=>{!n.current||typeof window.gtag!="function"||window.gtag("consent","update",{analytics_storage:e.analytics?"granted":"denied"})},[e.analytics]),m.useEffect(()=>{!e.analytics||typeof window.gtag!="function"||window.gtag("event","page_view",{page_path:r.pathname+r.search,page_location:window.location.href,page_title:document.title})},[r.pathname,r.search,e.analytics,t]),null}const $y=m.createContext({global:{enabled:!1,message:null},services:{enabled:!1,message:null},vehicles:{enabled:!1,message:null},bypass:!1}),tT=$y.Provider;function ba(){return m.useContext($y)}const Fd=m.createContext({}),nT=Fd.Provider;function ir(e,t){const n=e[t];if(!n)return{};const r={};return n.font_family&&(r.fontFamily=n.font_family),n.font_size&&(r.fontSize=n.font_size),n.color&&(r.color=n.color),r}function He(e){const t=m.useContext(Fd);return ir(t,e)}function Od(){return m.useContext(Fd)}const rT=[{label:"Systemschrift",value:""},{label:"Serifenlos (Arial)",value:"Arial, Helvetica, sans-serif"},{label:"Serif (Georgia)",value:'Georgia, "Times New Roman", serif'},{label:"Klassisch (Times New Roman)",value:'"Times New Roman", Times, serif'},{label:"Modern (Verdana)",value:"Verdana, Geneva, sans-serif"},{label:"Schreibmaschine (Courier New)",value:'"Courier New", Courier, monospace'}],zd=m.createContext({fonts:[],refresh:()=>{}}),Hy=zd.Provider;function Uy(){return m.useContext(zd).fonts}function c4(){return m.useContext(zd).refresh}function d4(){const e=Uy();return[...rT,...e.map(t=>({label:t.name,value:t.font_family}))]}function sT(e){const t=/\.([a-z0-9]+)$/i.exec(e||"");return t?t[1].toLowerCase():""}const iT={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype"};function Wy(){const e=Uy();if(e.length===0)return null;const t=e.map(n=>{const r=iT[sT(n.file_path)]||"woff2";return`@font-face { font-family: "${n.font_family}"; src: url("${n.file_path}") format("${r}"); font-display: swap; }`}).join(`
`);return l.jsx("style",{children:t})}const oT=150,aT=300,lT=80,uT=5e3;function cT(){return l.jsx("div",{className:"fixed inset-0 z-[200] flex items-center justify-center bg-white dark:bg-neutral-950",children:l.jsx("div",{className:"h-10 w-10 animate-spin rounded-full border-4 border-neutral-200 border-t-brand-500 dark:border-neutral-800 dark:border-t-brand-500"})})}function dT({enabled:e,children:t}){const n=Je(),[r,s]=m.useState(!e),[i,o]=m.useState(!1),a=m.useRef(null);return m.useLayoutEffect(()=>{const u=a.current;if(!e||!u){s(!0),o(!1);return}s(!1),o(!1);let c=!1,d=0,f=null;const h=new Set,p=setTimeout(()=>{d=Date.now(),o(!0)},oT),v=()=>{s(!0),o(!1)},w=()=>{c=!0,clearTimeout(p),clearTimeout(f),clearTimeout(E),k.disconnect(),S()},b=()=>{if(c)return;w();const j=d?aT-(Date.now()-d):0;j>0?setTimeout(v,j):v()},g=()=>{clearTimeout(f),f=setTimeout(()=>{h.size===0&&cC()===0&&b()},lT)},x=j=>{if(h.has(j)||j.complete||j.getBoundingClientRect().top>=window.innerHeight)return;j.loading==="lazy"&&(j.loading="eager"),h.add(j);const P=()=>{h.delete(j),j.removeEventListener("load",P),j.removeEventListener("error",P),g()};j.addEventListener("load",P),j.addEventListener("error",P)},y=j=>{var P;j.nodeType===1&&(j.tagName==="IMG"&&x(j),(P=j.querySelectorAll)==null||P.call(j,"img").forEach(x))},k=new MutationObserver(j=>{j.forEach(P=>P.addedNodes.forEach(y)),g()});k.observe(u,{childList:!0,subtree:!0});const S=dC(g),E=setTimeout(b,uT);return u.querySelectorAll("img").forEach(x),g(),()=>{c||w()}},[n.pathname,e]),l.jsxs("div",{className:"relative",children:[l.jsx("div",{ref:a,style:e?{visibility:r?"visible":"hidden"}:void 0,children:t}),e&&i&&l.jsx(cT,{})]})}const fT=m.lazy(()=>X(()=>import("./RichTextEditor-C9ovXVWM.js"),[])),Bd={de:"Deutsch",en:"Englisch"},hT=["nav.","footer.","cookieConsent.","languageToggle.","themeToggle.","maintenance."],Oi=e=>hT.some(t=>e.startsWith(t));function vl(e,t){return t.split(".").reduce((n,r)=>n==null?void 0:n[r],e)}function mT({editor:e}){const t=ot(),{entity:n,id:r,field:s,lang:i,kind:o,label:a,hint:u,original:c}=e,[d]=m.useState(()=>({value:c,wasPending:t.hasPending(n,r,s,i)})),[f,h]=m.useState(c),p=w=>{h(w),t.setValue(n,r,s,i,w)},v=()=>{d.wasPending?t.setValue(n,r,s,i,d.value):t.resetValue(n,r,s,i),t.closeEditor()};return l.jsxs("div",{className:"pointer-events-auto w-full rounded-xl border border-neutral-200 bg-white p-4 text-neutral-900 shadow-2xl dark:border-neutral-700 dark:bg-neutral-900 dark:text-neutral-100 sm:w-[min(92vw,520px)]",children:[l.jsxs("div",{className:"mb-2 flex items-center justify-between gap-3",children:[l.jsxs("p",{className:"text-sm font-semibold",children:[a," ",l.jsxs("span",{className:"font-normal text-neutral-500",children:["(",Bd[i],")"]})]}),l.jsx("button",{type:"button",onClick:v,"aria-label":"Abbrechen",className:"rounded p-1 text-neutral-500 hover:bg-neutral-100 dark:hover:bg-neutral-800",children:l.jsx(Dd,{className:"h-4 w-4"})})]}),u&&l.jsx("p",{className:"mb-2 text-xs text-neutral-500 dark:text-neutral-400",children:u}),o==="html"?l.jsx("div",{className:"max-h-[45vh] overflow-y-auto rounded-md border border-neutral-300 dark:border-neutral-700",children:l.jsx(m.Suspense,{fallback:l.jsx("p",{className:"p-3 text-sm text-neutral-500",children:"Editor lädt…"}),children:l.jsx(fT,{value:f,onChange:p})})}):o==="input"?l.jsx("input",{autoFocus:!0,value:f,onChange:w=>p(w.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-800"}):l.jsx("textarea",{autoFocus:!0,rows:7,value:f,onChange:w=>p(w.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-800"}),l.jsxs("div",{className:"mt-3 flex justify-end gap-2",children:[l.jsx("button",{type:"button",onClick:v,className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm font-medium hover:bg-neutral-50 dark:border-neutral-700 dark:hover:bg-neutral-800",children:"Abbrechen"}),l.jsx("button",{type:"button",onClick:t.closeEditor,className:"rounded-md bg-brand-500 px-3 py-1.5 text-sm font-semibold text-white hover:bg-brand-600",children:"Übernehmen"})]})]})}function pT({onClose:e}){const t=ot(),{language:n,t:r}=Se(),s=Je(),[i,o]=m.useState(""),[a,u]=m.useState(0);m.useEffect(()=>{const h=setTimeout(()=>u(p=>p+1),400);return()=>clearTimeout(h)},[s.pathname]);const c=m.useMemo(()=>t.usedTextKeys(s.pathname).filter(h=>typeof vl(yn.de,h)=="string").sort((h,p)=>Oi(h)-Oi(p)||h.localeCompare(p)),[s.pathname,a,t.usedTextKeys]),d=i.trim().toLowerCase(),f=c.filter(h=>!d||h.toLowerCase().includes(d)||r(h).toLowerCase().includes(d));return l.jsxs("div",{className:"pointer-events-auto flex max-h-[60vh] w-full flex-col rounded-xl border border-neutral-200 bg-white text-neutral-900 shadow-2xl dark:border-neutral-700 dark:bg-neutral-900 dark:text-neutral-100 sm:w-[min(92vw,520px)]",children:[l.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-neutral-200 p-4 pb-3 dark:border-neutral-800",children:[l.jsxs("div",{children:[l.jsxs("p",{className:"text-sm font-semibold",children:["Feste Texte auf dieser Seite ",l.jsxs("span",{className:"font-normal text-neutral-500",children:["(",Bd[n],")"]})]}),l.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:"Buttons, Beschriftungen, Menü und Fußzeile. Leer lassen = Standardtext."})]}),l.jsx("button",{type:"button",onClick:e,"aria-label":"Schließen",className:"rounded p-1 text-neutral-500 hover:bg-neutral-100 dark:hover:bg-neutral-800",children:l.jsx(Dd,{className:"h-4 w-4"})})]}),l.jsx("div",{className:"px-4 pt-3",children:l.jsx("input",{type:"search",value:i,onChange:h=>o(h.target.value),placeholder:"Suchen…",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-1.5 text-sm dark:border-neutral-700 dark:bg-neutral-800"})}),l.jsxs("ul",{className:"flex-1 space-y-3 overflow-y-auto p-4",children:[f.length===0&&l.jsx("li",{className:"text-sm text-neutral-500",children:"Keine Texte gefunden."}),f.map((h,p)=>{const v=vl(yn[n],h)??vl(yn.de,h),w=t.textOverride(n,h)!==void 0,b=r(h);return l.jsxs("li",{children:[Oi(h)&&(p===0||!Oi(f[p-1]))&&l.jsx("p",{className:"mb-3 border-t border-neutral-200 pt-3 text-xs font-semibold uppercase tracking-wide text-neutral-500 dark:border-neutral-800",children:"Auf allen Seiten (Menü, Fußzeile, Cookie-Hinweis)"}),l.jsxs("div",{className:"mb-1 flex items-center justify-between gap-2",children:[l.jsx("label",{htmlFor:`live-text-${h}`,className:"truncate font-mono text-[11px] text-neutral-500",title:h,children:h}),w&&l.jsxs("button",{type:"button",onClick:()=>t.setValue("text",h,"value",n,""),className:"flex shrink-0 items-center gap-1 text-[11px] text-neutral-500 hover:text-brand-600",title:`Standard: ${v}`,children:[l.jsx(dE,{className:"h-3 w-3"})," Standard"]})]}),l.jsx("textarea",{id:`live-text-${h}`,rows:b.length>60?3:1,value:b,onChange:g=>t.setValue("text",h,"value",n,g.target.value===v?"":g.target.value),className:`w-full resize-y rounded-md border bg-white px-2.5 py-1.5 text-sm dark:bg-neutral-800 ${w?"border-amber-400 dark:border-amber-500":"border-neutral-300 dark:border-neutral-700"}`})]},h)})]})]})}function gT(){const e=ot(),{language:t}=Se(),[n,r]=m.useState(!1);if(!e.enabled)return null;const s=()=>{e.pendingCount&&!window.confirm("Es gibt ungespeicherte Änderungen. Bearbeiten trotzdem beenden? Die Änderungen gehen dann verloren.")||(e.discard(),e.setEnabled(!1))},i=e.editor&&`${e.editor.entity}|${e.editor.id}|${e.editor.field}|${e.editor.lang}`;return l.jsxs("div",{className:"pointer-events-none fixed inset-x-0 bottom-0 z-[150] flex flex-col items-end gap-2 p-2 sm:p-4",children:[e.editor?l.jsx(mT,{editor:e.editor},i):n&&l.jsx(pT,{onClose:()=>r(!1)}),l.jsxs("div",{className:"pointer-events-auto flex w-full flex-wrap items-center justify-between gap-2 rounded-xl border border-neutral-700 bg-neutral-950/95 px-3 py-2.5 text-sm text-neutral-100 shadow-2xl backdrop-blur sm:px-4",children:[l.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[l.jsx(My,{className:"h-4 w-4 shrink-0 text-brand-400"}),l.jsxs("p",{className:"min-w-0 truncate",children:[l.jsx("span",{className:"font-semibold",children:"Bearbeiten"}),l.jsxs("span",{className:"hidden text-neutral-400 sm:inline",children:[" · ",Bd[t]," · gestrichelte Stellen anklicken"]})]})]}),l.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.error&&l.jsx("span",{className:"max-w-xs text-xs text-red-400",children:e.error}),l.jsxs("button",{type:"button",onClick:()=>{e.closeEditor(),r(o=>!o)},className:`flex items-center gap-1.5 rounded-md border px-3 py-1.5 font-medium ${n?"border-brand-400 text-brand-300":"border-neutral-700 hover:bg-neutral-800"}`,children:[l.jsx(XC,{className:"h-4 w-4"}),l.jsx("span",{className:"hidden sm:inline",children:"Feste Texte"})]}),e.pendingCount>0&&l.jsx("button",{type:"button",onClick:e.discard,className:"rounded-md border border-neutral-700 px-3 py-1.5 font-medium hover:bg-neutral-800",children:"Verwerfen"}),l.jsxs("button",{type:"button",onClick:e.save,disabled:!e.pendingCount||e.saving,className:"flex items-center gap-1.5 rounded-md bg-brand-500 px-3 py-1.5 font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:[l.jsx(Ey,{className:"h-4 w-4"}),e.saving?"Speichere…":e.pendingCount?`Speichern (${e.pendingCount})`:"Gespeichert"]}),l.jsx("button",{type:"button",onClick:s,"aria-label":"Bearbeiten beenden",title:"Bearbeiten beenden",className:"rounded-md p-1.5 text-neutral-400 hover:bg-neutral-800 hover:text-white",children:l.jsx(Dd,{className:"h-4 w-4"})})]})]})]})}const Gy=[{title:"Seiten",hint:"Ausgeblendete Seiten verschwinden aus dem Menü und leiten Besucher auf die Startseite um.",areas:[{key:"page.vehicles",label:"Fahrzeuge & Pakete",path:"/fahrzeuge"},{key:"page.services",label:"Leistungen",path:"/leistungen"},{key:"page.gallery",label:"Galerie",path:"/galerie"},{key:"page.downloads",label:"Downloads",path:"/downloads",note:"Erscheint ohnehin nur, wenn Downloads hinterlegt sind."}]},{title:"Startseite",hint:"Einzelne Abschnitte der Startseite. Das große Titelbild oben bleibt immer sichtbar.",areas:[{key:"home.stats",label:"Zahlen-Leiste"},{key:"home.partners",label:"Marken / Partner-Logos"},{key:"home.youtube",label:"Video-Abschnitt"},{key:"home.craft",label:"Handwerk & Beratung"},{key:"home.insights",label:"Einblicke (Bilder)"},{key:"home.reviews",label:"Kundenbewertungen"},{key:"home.more",label:'„Mehr als Car-Hifi"'},{key:"home.faq",label:"Häufige Fragen (FAQ)"}]}],xT=Gy[0].areas;function yT(e){if(!e)return null;const t=xT.find(n=>e===n.path||e.startsWith(`${n.path}/`));return t?t.key:null}function Ky(e,t=[]){const n=yT(e);return!!n&&t.includes(n)}const vT=Gy.flatMap(e=>e.areas),wT={global:{enabled:!1,message:null},services:{enabled:!1,message:null},vehicles:{enabled:!1,message:null}},bT={mon:{open:"09:00",close:"18:00",closed:!1},tue:{open:"09:00",close:"18:00",closed:!1},wed:{open:"09:00",close:"18:00",closed:!1},thu:{open:"09:00",close:"18:00",closed:!1},fri:{open:"09:00",close:"18:00",closed:!1},sat:{open:"10:00",close:"13:00",closed:!1},sun:{open:"",close:"",closed:!0}},wl={phone:"09373 20 62 390",whatsapp:null,contact_email:"info@hifi-planet-amorbach.de",address_street:"Boxbrunner Str. 20a",address_zip:"63916",address_city:"Amorbach",logo_path:null,logo_dark_path:null,business_hours:bT,hero_image_path:null,ga_measurement_id:null,package_card_theme:"graphite",package_card_layout:"strip",package_wheel_hint_interval:8,package_card_width:210,package_card_height:480,vehicle_tile_width:240,vehicle_tile_height:180,gallery_card_text_x:0,gallery_card_text_y:100,site_font:null,page_loader_enabled:1,has_downloads:!1,hidden_areas:[],price_note:null,price_note_en:null},kT=["/impressum","/datenschutz","/agb"],Wm="hifi-site-settings",Gm="hifi-maintenance";function Km(e){try{const t=localStorage.getItem(e);return t?JSON.parse(t):null}catch{return null}}function qm(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch{}}const ST={mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday",sun:"Sunday"};function jT(e){var n,r,s;const t=document.getElementById("ld-business");if(t)try{const i=JSON.parse(t.textContent),o=(e.phone||"").replace(/[^\d+]/g,"");o&&(i.telephone=o.startsWith("+")?o:`+49${o.replace(/^0/,"")}`),e.contact_email&&(i.email=e.contact_email),i.address={"@type":"PostalAddress",streetAddress:e.address_street||((n=i.address)==null?void 0:n.streetAddress),postalCode:e.address_zip||((r=i.address)==null?void 0:r.postalCode),addressLocality:e.address_city||((s=i.address)==null?void 0:s.addressLocality),addressCountry:"DE"};const a=e.business_hours;a&&typeof a=="object"&&(i.openingHoursSpecification=Object.entries(ST).filter(([u])=>a[u]&&!a[u].closed&&a[u].open&&a[u].close).map(([u,c])=>({"@type":"OpeningHoursSpecification",dayOfWeek:c,opens:a[u].open,closes:a[u].close}))),t.textContent=JSON.stringify(i)}catch{}}function PT(){var b;const[e]=m.useState(()=>Km(Wm)),[t,n]=m.useState(()=>Km(Gm)),[r,s]=m.useState(()=>e?{...wl,...e}:wl),[i,o]=m.useState(!!e),[a,u]=m.useState({}),[c,d]=m.useState([]),{loading:f,hasPermission:h}=lr(),p=Je();if(m.useEffect(()=>{ue.get("/maintenance").then(g=>{n(g),qm(Gm,g)}).catch(()=>n(g=>g||wT)),ue.get("/site-settings").then(g=>{s({...wl,...g}),qm(Wm,g)}).catch(()=>{}).finally(()=>o(!0)),ue.get("/text-styles").then(u).catch(()=>{}),ue.get("/custom-fonts").then(d).catch(()=>{})},[]),m.useEffect(()=>{r.site_font?document.documentElement.style.setProperty("--site-font",r.site_font):document.documentElement.style.removeProperty("--site-font")},[r.site_font]),m.useEffect(()=>{i&&jT(r)},[r,i]),t===null||!i||(b=t.global)!=null&&b.enabled&&f)return l.jsx("div",{className:"min-h-screen bg-white dark:bg-neutral-950"});const v=h("maintenance.bypass"),w=kT.includes(p.pathname);return t.global.enabled&&!v&&!w?l.jsx(Om,{serverOverrides:r.text_overrides,children:l.jsx(zm,{children:l.jsx(mi,{message:t.global.message,fullScreen:!0})})}):l.jsx(Om,{serverOverrides:r.text_overrides,children:l.jsx(zm,{children:l.jsx(tT,{value:{...t,bypass:v},children:l.jsx(VE,{value:r,children:l.jsx(nT,{value:a,children:l.jsx(Hy,{value:{fonts:c,refresh:()=>{}},children:l.jsxs("div",{className:"page-texture flex min-h-screen flex-col text-neutral-900 dark:text-neutral-100",children:[l.jsx(Wy,{}),v&&t.global.enabled&&l.jsx(pi,{}),l.jsx(XE,{}),l.jsx($E,{}),l.jsx("main",{className:"flex-1",children:l.jsx(dT,{enabled:p.pathname!=="/"&&!!r.page_loader_enabled,children:Ky(p.pathname,r.hidden_areas)?l.jsx(rr,{to:"/",replace:!0}):l.jsx(m.Suspense,{fallback:l.jsx("div",{className:"min-h-[60vh]"}),children:l.jsx(ed,{})})})}),l.jsx(YE,{}),l.jsx(JE,{}),l.jsx(eT,{}),l.jsx(gT,{})]})})})})})})})}const ka=m.createContext({toast:{success:()=>{},error:()=>{},info:()=>{}},setDirty:()=>{},confirmLeave:()=>!0,refreshCounters:()=>{}});let CT=0;function ET({children:e,onRefreshCounters:t}){const[n,r]=m.useState([]),s=m.useRef(new Set),i=m.useCallback(f=>r(h=>h.filter(p=>p.id!==f)),[]),o=m.useCallback((f,h,p={})=>{const v=++CT;return r(w=>[...w.slice(-3),{id:v,type:f,message:h,action:p.action}]),setTimeout(()=>i(v),p.duration||(f==="error"?7e3:3500)),v},[i]),a=m.useMemo(()=>({success:(f,h)=>o("success",f,h),error:(f,h)=>o("error",f,h),info:(f,h)=>o("info",f,h)}),[o]),u=m.useCallback((f,h)=>{h?s.current.add(f):s.current.delete(f)},[]),c=m.useCallback(()=>{if(s.current.size===0)return!0;const f=window.confirm("Du hast ungespeicherte Änderungen. Seite trotzdem verlassen? Die Änderungen gehen dann verloren.");return f&&s.current.clear(),f},[]);m.useEffect(()=>{const f=p=>{s.current.size!==0&&(p.preventDefault(),p.returnValue="")},h=p=>{var b,g;if(s.current.size===0||p.defaultPrevented||p.button!==0)return;const v=(g=(b=p.target).closest)==null?void 0:g.call(b,"a[href]");if(!v||v.target==="_blank"||p.metaKey||p.ctrlKey||p.shiftKey)return;const w=new URL(v.href,window.location.href);w.origin!==window.location.origin||w.pathname===window.location.pathname||c()||(p.preventDefault(),p.stopPropagation())};return window.addEventListener("beforeunload",f),document.addEventListener("click",h,!0),()=>{window.removeEventListener("beforeunload",f),document.removeEventListener("click",h,!0)}},[c]);const d=m.useMemo(()=>({toast:a,setDirty:u,confirmLeave:c,refreshCounters:t||(()=>{})}),[a,u,c,t]);return l.jsxs(ka.Provider,{value:d,children:[e,l.jsx("div",{className:"pointer-events-none fixed bottom-4 right-4 z-[300] flex w-[min(92vw,380px)] flex-col gap-2","aria-live":"polite",children:n.map(f=>l.jsxs("div",{role:f.type==="error"?"alert":"status",className:`pointer-events-auto flex items-start justify-between gap-3 rounded-lg border px-4 py-3 text-sm shadow-lg ${f.type==="error"?"border-red-200 bg-red-50 text-red-800 dark:border-red-900 dark:bg-red-950 dark:text-red-200":f.type==="success"?"border-green-200 bg-green-50 text-green-800 dark:border-green-900 dark:bg-green-950 dark:text-green-200":"border-neutral-200 bg-white text-neutral-800 dark:border-neutral-700 dark:bg-neutral-900 dark:text-neutral-100"}`,children:[l.jsxs("span",{children:[f.type==="success"?"✓ ":"",f.message]}),l.jsxs("span",{className:"flex shrink-0 items-center gap-3",children:[f.action&&l.jsx("button",{type:"button",onClick:()=>{f.action.onClick(),i(f.id)},className:"font-semibold underline",children:f.action.label}),l.jsx("button",{type:"button",onClick:()=>i(f.id),"aria-label":"Meldung schließen",className:"opacity-60 hover:opacity-100",children:"✕"})]})]},f.id))})]})}function f4(){return m.useContext(ka)}function h4(){return m.useContext(ka).toast}function m4(e,t="page"){const{setDirty:n}=m.useContext(ka);m.useEffect(()=>{n(t,!!e)},[e,t,n]),m.useEffect(()=>()=>n(t,!1),[t,n])}const TT=5*60*1e3,NT=30*60*1e3;function _T(){const{user:e,login:t,verifyTwoFactor:n}=lr(),[r,s]=m.useState(!1),[i,o]=m.useState("credentials"),[a,u]=m.useState((e==null?void 0:e.username)||""),[c,d]=m.useState(""),[f,h]=m.useState(""),[p,v]=m.useState(""),[w,b]=m.useState(!1),g=m.useRef(Date.now()),x=m.useRef(null);if(By(x,r,()=>{}),m.useEffect(()=>fC(()=>s(!0)),[]),m.useEffect(()=>{const j=()=>{g.current=Date.now()},P=["keydown","pointerdown","scroll"];P.forEach(T=>window.addEventListener(T,j,{passive:!0}));const M=setInterval(()=>{document.hidden||Date.now()-g.current>NT||ue.get("/auth/me").then(T=>{(T==null?void 0:T.authenticated)===!1&&s(!0)}).catch(()=>{})},TT);return()=>{P.forEach(T=>window.removeEventListener(T,j)),clearInterval(M)}},[]),!r)return null;const y=()=>{s(!1),o("credentials"),d(""),h(""),v("")},k=async j=>{j.preventDefault(),b(!0),v("");try{(await t(a,c)).requires2fa?o("code"):y()}catch(P){v(P.message)}finally{b(!1)}},S=async j=>{j.preventDefault(),b(!0),v("");try{await n(f),y()}catch(P){v(P.message)}finally{b(!1)}},E="w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm focus:border-brand-500 focus:outline-none dark:border-neutral-700 dark:bg-neutral-900";return l.jsx("div",{className:"fixed inset-0 z-[400] flex items-center justify-center bg-black/50 p-4",children:l.jsxs("div",{ref:x,role:"dialog","aria-modal":"true","aria-labelledby":"session-expired-title",className:"w-full max-w-sm rounded-xl bg-white p-6 shadow-xl dark:bg-neutral-900",children:[l.jsx("h2",{id:"session-expired-title",className:"mb-1 text-lg font-bold text-neutral-900 dark:text-white",children:"Bitte erneut anmelden"}),l.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Deine Sitzung ist abgelaufen. Deine Eingaben auf dieser Seite bleiben erhalten – nach dem Anmelden einfach noch einmal speichern."}),i==="credentials"?l.jsxs("form",{onSubmit:k,className:"space-y-3",children:[l.jsx("input",{value:a,onChange:j=>u(j.target.value),required:!0,placeholder:"Benutzername",autoComplete:"username",className:E}),l.jsx("input",{type:"password",value:c,onChange:j=>d(j.target.value),required:!0,placeholder:"Passwort",autoComplete:"current-password",className:E}),p&&l.jsx("p",{className:"text-sm text-red-600",children:p}),l.jsx("button",{type:"submit",disabled:w,className:"w-full rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:w?"Melde an…":"Anmelden"})]}):l.jsxs("form",{onSubmit:S,className:"space-y-3",children:[l.jsx("input",{value:f,onChange:j=>h(j.target.value),required:!0,inputMode:"numeric",autoComplete:"one-time-code",placeholder:"6-stelliger Code aus der App",className:E}),p&&l.jsx("p",{className:"text-sm text-red-600",children:p}),l.jsx("button",{type:"submit",disabled:w,className:"w-full rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:w?"Prüfe…":"Bestätigen"})]})]})})}const Ym="/assets/logo-BNfZDkmN.png",Xm={home:"M3 11.5 12 4l9 7.5M5 10v9a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1v-9",tag:"M4 4h7l9 9-7 7-9-9V4Zm3.5 3.5h.01",car:"M3 13.5 4.5 9A2 2 0 0 1 6.4 7.5h11.2A2 2 0 0 1 19.5 9L21 13.5M3 13.5v4a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1h12v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-4M3 13.5h18M6.5 16.5h.01M17.5 16.5h.01",box:"M12 3 4 7.5v9L12 21l8-4.5v-9L12 3Zm0 9 8-4.5M12 12v9M12 12 4 7.5",mail:"M4 6h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1Zm0 0 8 7 8-7",users:"M16 7a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm-4 6c-4 0-7 2-7 4.5V19h14v-1.5C19 15 16 13 12 13Z",shield:"M12 3 4 6v6c0 4.5 3.4 7.7 8 9 4.6-1.3 8-4.5 8-9V6l-8-3Zm-1.5 9.5 4-4 1 1-5 5-2.5-2.5 1-1 1.5 1.5Z",lock:"M6 10V8a6 6 0 1 1 12 0v2m-13 0h14a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1Zm7 5v2",briefcase:"M4 7h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1Zm4 0V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M3 12h18",sliders:"M4 6h16M4 6a2 2 0 1 0 4 0 2 2 0 0 0-4 0Zm16 6H4m10 0a2 2 0 1 0 4 0 2 2 0 0 0-4 0ZM4 18h16m-12 0a2 2 0 1 0 4 0 2 2 0 0 0-4 0Z",image:"M4 5h16a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Zm2 12 4.5-5.5L14 16l2.5-3L20 17H6ZM8 9.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z",help:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-5.5v.01M9.5 9.25a2.5 2.5 0 1 1 3.5 2.29c-.7.32-1 .77-1 1.46v.3",download:"M12 4v11m0 0-4-4m4 4 4-4M5 19h14",gauge:"M4 13a8 8 0 1 1 16 0M12 13l3.5-3.5M6 17h12",inbox:"M3 13h5l1.5 2.5h5L16 13h5M5 5h14l2 8v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-5l2-8Z",building:"M4 21V5a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v16M15 9h4a1 1 0 0 1 1 1v11M3 21h18M8 8h3M8 12h3M8 16h3",palette:"M12 3a9 9 0 1 0 0 18c1 0 1.5-.7 1.5-1.5 0-.4-.2-.8-.4-1.1-.3-.3-.4-.7-.4-1.1 0-.8.7-1.5 1.5-1.5H16a5 5 0 0 0 5-5c0-4.4-4-7.8-9-7.8ZM7.5 12h.01M10 7.5h.01M15 7.5h.01",file:"M7 3h7l5 5v12a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm7 0v5h5M9 13h6M9 17h6",wrench:"M14.5 6.5a4 4 0 0 0-5.3 5.3L4 17l3 3 5.2-5.2a4 4 0 0 0 5.3-5.3l-2.5 2.5-2.5-.5-.5-2.5 2.5-2.5Z",server:"M4 4h16v6H4V4Zm0 10h16v6H4v-6Zm3-7h.01M7 17h.01",globe:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm-9-9h18M12 3c2.5 2.5 3.5 5.5 3.5 9s-1 6.5-3.5 9c-2.5-2.5-3.5-5.5-3.5-9s1-6.5 3.5-9Z",send:"M4 12 20 4l-4 16-4-7-8-1Zm8 1 8-9",refresh:"M20 11a8 8 0 0 0-14.9-3M4 4v4h4m-4 5a8 8 0 0 0 14.9 3M20 20v-4h-4",trash:"M5 7h14M10 11v6m4-6v6M6 7l1 13h10l1-13M9 7V4h6v3",external:"M14 4h6v6m0-6-9 9M19 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h5",pause:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm-2-12v6m4-6v6"},Zm=({path:e})=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",className:"h-5 w-5 shrink-0",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:e})});function MT(){const{logout:e,user:t,hasPermission:n}=lr(),r=ha(),[s,i]=m.useState(!1),[o,a]=m.useState(0),[u,c]=m.useState([]),[d,f]=m.useState([]),[h,p]=m.useState(!1),v=m.useCallback(()=>{n("contact.manage")&&ue.get("/contact").then(S=>a(S.filter(E=>E.status==="new").length)).catch(()=>{}),ue.get("/site-settings").then(S=>f(S.hidden_areas||[])).catch(()=>{}),ue.get("/maintenance").then(S=>{var E;return p(!!((E=S==null?void 0:S.global)!=null&&E.enabled))}).catch(()=>{})},[t==null?void 0:t.id]);m.useEffect(()=>{v();const S=setInterval(v,2*60*1e3);return()=>clearInterval(S)},[v]);const w=vT.filter(S=>d.includes(S.key)).map(S=>S.label),b=()=>ue.get("/custom-fonts").then(c).catch(()=>{});m.useEffect(()=>{b()},[]);const g=[{title:null,links:[{to:"/admin",label:"Übersicht",icon:"gauge",end:!0},{to:"/admin/contact-requests",label:"Anfragen",icon:"inbox",permission:"contact.manage",badge:o}]},{title:"Fahrzeuge & Pakete",links:[{to:"/admin/brands",label:"Fahrzeugmarken",icon:"tag",permission:"brands.manage"},{to:"/admin/models",label:"Modelle",icon:"car",permission:"models.manage"},{to:"/admin/packages",label:"Pakete",icon:"box",permission:"packages.manage"}]},{title:"Website-Inhalte",links:[{to:"/admin/home-sections",label:"Startseite",icon:"home",permission:"content.manage"},{to:"/admin/services",label:"Leistungen",icon:"briefcase",permission:"services.manage"},{to:"/admin/faqs",label:"FAQ",icon:"help",permission:"content.manage"},{to:"/admin/partners",label:"Partner-Logos",icon:"shield",permission:"content.manage"},{to:"/admin/downloads",label:"Downloads",icon:"download",permission:"downloads.manage"}]},{title:"Bildergalerie",links:[{to:"/admin/gallery-brands",label:"Galerie-Marken",icon:"image",permission:"gallery.manage"},{to:"/admin/gallery-projects",label:"Projekte & Fotos",icon:"image",permission:"gallery.manage"}]},{title:"Firma & Aussehen",links:[{to:"/admin/settings/company",label:"Firmendaten",icon:"building",permission:"settings.manage"},{to:"/admin/settings/design",label:"Aussehen",icon:"palette",permission:"settings.manage"},{to:"/admin/settings/legal",label:"Rechtstexte",icon:"file",permission:"settings.manage"},{to:"/admin/settings/maintenance",label:"Wartungsmodus",icon:"pause",permission:"settings.manage"}]},{title:"System (Experten)",links:[{to:"/admin/users",label:"Benutzer",icon:"users",permission:"users.manage"},{to:"/admin/permission-groups",label:"Berechtigungsgruppen",icon:"lock",permission:"permission_groups.manage"},{to:"/admin/settings/email",label:"E-Mail-Versand",icon:"send",permission:"system.admin"},{to:"/admin/settings/google",label:"Google-Dienste",icon:"globe",permission:"system.admin"},{to:"/admin/settings/database",label:"Datenbank",icon:"server",permission:"system.admin"},{to:"/admin/settings/export-import",label:"Export & Import",icon:"download",permission:"system.admin"},{to:"/admin/settings/update",label:"Updates",icon:"refresh",permission:"system.update"},{to:"/admin/settings/reset",label:"Zurücksetzen",icon:"trash",permission:"system.admin"}]},{title:null,links:[{to:"/admin/account",label:"Mein Konto",icon:"lock"}]}].map(S=>({...S,links:S.links.filter(E=>!E.permission||n(E.permission))})).filter(S=>S.links.length>0),x=async()=>{await e(),r("/admin/login")},y=({isActive:S})=>`flex items-center justify-between gap-2 rounded-md px-3 py-2 text-sm font-medium transition ${S?"bg-brand-500 text-white":"text-neutral-600 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,k=({onNavigate:S})=>l.jsx("nav",{className:"space-y-5",children:g.map((E,j)=>l.jsxs("div",{children:[E.title&&l.jsx("p",{className:"mb-1.5 px-3 text-xs font-semibold uppercase tracking-wide text-neutral-400 dark:text-neutral-500",children:E.title}),l.jsx("div",{className:"space-y-1",children:E.links.map(P=>l.jsxs(Nb,{to:P.to,end:P.end,className:y,onClick:S,children:[l.jsxs("span",{className:"flex items-center gap-2.5",children:[l.jsx(Zm,{path:Xm[P.icon]}),P.label]}),!!P.badge&&l.jsx("span",{className:"rounded-full bg-red-500 px-2 py-0.5 text-xs font-bold text-white",children:P.badge})]},P.to))})]},j))});return l.jsxs(ET,{onRefreshCounters:v,children:[l.jsx(_T,{}),l.jsx(Hy,{value:{fonts:u,refresh:b},children:l.jsxs("div",{className:"flex min-h-screen bg-neutral-50 text-neutral-900 dark:bg-neutral-950 dark:text-neutral-100",children:[l.jsx(Wy,{}),l.jsxs("aside",{className:"hidden w-60 shrink-0 border-r border-neutral-200 p-4 dark:border-neutral-800 sm:block",children:[l.jsxs("div",{className:"mb-6 flex items-center gap-2 px-3",children:[l.jsxs(K,{to:"/",className:"rounded-lg px-2 py-1",children:[l.jsx("img",{src:Ym,alt:"HifiPlanet",className:"h-7 w-auto dark:hidden"}),l.jsx("img",{src:Ju,alt:"HifiPlanet",className:"hidden h-7 w-auto dark:block"})]}),l.jsx("span",{className:"text-sm font-semibold text-neutral-500 dark:text-neutral-400",children:"Admin"})]}),l.jsx(k,{})]}),l.jsxs("div",{className:"flex-1",children:[l.jsxs("header",{className:"border-b border-neutral-200 dark:border-neutral-800",children:[l.jsxs("div",{className:"flex items-center justify-between px-4 py-3 sm:px-6",children:[l.jsxs("div",{className:"flex items-center gap-2 sm:hidden",children:[l.jsx("button",{onClick:()=>i(S=>!S),"aria-label":"Menü öffnen",className:"rounded-md p-2 text-neutral-600 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800",children:l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-6 w-6",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h16"})})}),l.jsxs(K,{to:"/",className:"rounded-lg px-1.5 py-0.5",children:[l.jsx("img",{src:Ym,alt:"HifiPlanet",className:"h-6 w-auto dark:hidden"}),l.jsx("img",{src:Ju,alt:"HifiPlanet",className:"hidden h-6 w-auto dark:block"})]})]}),l.jsxs("p",{className:"hidden text-sm text-neutral-500 dark:text-neutral-400 sm:block",children:["Angemeldet als ",t==null?void 0:t.username,t!=null&&t.is_super_admin?" · Super-Admin":""]}),l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsxs("a",{href:"/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-md border border-neutral-300 px-3 py-1.5 text-sm font-medium text-neutral-700 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800",children:[l.jsx(Zm,{path:Xm.external}),l.jsx("span",{className:"hidden sm:inline",children:"Website öffnen"})]}),l.jsx(Vy,{}),l.jsx("button",{onClick:x,className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm font-medium text-neutral-700 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800",children:"Abmelden"})]})]}),s&&l.jsx("div",{className:"border-t border-neutral-200 px-4 py-3 dark:border-neutral-800 sm:hidden",children:l.jsx(k,{onNavigate:()=>i(!1)})})]}),(h||w.length>0)&&l.jsxs("div",{className:"border-b border-amber-200 bg-amber-50 px-4 py-2 text-sm text-amber-900 dark:border-amber-900 dark:bg-amber-950 dark:text-amber-200 sm:px-6",children:[h&&l.jsxs("p",{children:[l.jsx("strong",{children:"Wartungsmodus ist aktiv"})," – Besucher sehen gerade nur die Wartungsseite."," ",n("settings.manage")&&l.jsx(K,{to:"/admin/settings/maintenance",className:"underline",children:"Ändern"})]}),w.length>0&&l.jsxs("p",{children:[l.jsx("strong",{children:"Ausgeblendet für Besucher:"})," ",w.join(", "),"."," ",l.jsx(K,{to:"/admin",className:"underline",children:"Auf der Übersicht ändern"})]})]}),l.jsx("main",{className:"p-4 sm:p-6",children:l.jsx(m.Suspense,{fallback:l.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}),children:l.jsx(ed,{})})})]})]})})]})}function LT(){const{user:e,loading:t}=lr();return t?l.jsx("div",{className:"flex min-h-screen items-center justify-center text-neutral-500",children:"Lädt…"}):e?l.jsx(ed,{}):l.jsx(rr,{to:"/admin/login",replace:!0})}function de({permission:e,children:t}){const{hasPermission:n}=lr();return(Array.isArray(e)?e:[e]).some(i=>n(i))?t:l.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-8 text-center dark:border-neutral-800 dark:bg-neutral-900",children:[l.jsx("h1",{className:"mb-2 text-lg font-bold text-neutral-900 dark:text-white",children:"Keine Berechtigung"}),l.jsx("p",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:"Du hast keinen Zugriff auf diesen Bereich. Bitte wende dich an einen Administrator, falls du hier Zugriff brauchst."})]})}function lo(e,t,n="name"){if(!t)return;let r=document.head.querySelector(`meta[${n}="${e}"]`);r||(r=document.createElement("meta"),r.setAttribute(n,e),document.head.appendChild(r)),r.setAttribute("content",t)}function AT(e){let t=document.head.querySelector('link[rel="canonical"]');t||(t=document.createElement("link"),t.setAttribute("rel","canonical"),document.head.appendChild(t)),t.setAttribute("href",`https://hifi-planet.de${e}`),lo("og:url",`https://hifi-planet.de${e}`,"property")}function Qm(e){let t=document.head.querySelector('meta[name="robots"]');if(!e){t==null||t.remove();return}t||(t=document.createElement("meta"),t.setAttribute("name","robots"),document.head.appendChild(t)),t.setAttribute("content","noindex")}function ur({title:e,description:t,path:n,noindex:r=!1}){m.useEffect(()=>(Qm(r),()=>Qm(!1)),[r]),m.useEffect(()=>{e&&(document.title=`${e} | HifiPlanet`,lo("og:title",`${e} | HifiPlanet`,"property")),t&&(lo("description",t),lo("og:description",t,"property")),n&&AT(n)},[e,t,n])}const DT=[.16,1,.3,1],Jm={up:{y:40},left:{x:-56},right:{x:56}};function RT(e){return{hidden:{opacity:0,scale:.96,filter:"blur(8px)",...Jm[e]||Jm.up},visible:{opacity:1,scale:1,x:0,y:0,filter:"blur(0px)"}}}const VT={hidden:{x:"-130%"},visible:{x:"230%",transition:{duration:1.1,ease:"easeInOut",delay:.4}}};function $e({children:e,direction:t="up",className:n="",index:r=0,shine:s=!1,style:i}){const o=Math.min(r*.09,.45);return l.jsxs(Zt.div,{className:n,style:{position:"relative",overflow:"hidden",...i},initial:"hidden",whileInView:"visible",viewport:{once:!0,amount:.25,margin:"-100px"},variants:RT(t),transition:{duration:.75,ease:DT,delay:o},children:[e,s&&l.jsx(Zt.div,{"aria-hidden":!0,variants:VT,className:"pointer-events-none absolute inset-y-0 -left-1/3 w-1/3 rotate-12 bg-gradient-to-r from-transparent via-white/40 to-transparent"})]})}const $d=e=>{e.preventDefault(),e.stopPropagation()};function IT(e){e.preventDefault();const t=e.clipboardData.getData("text/plain");document.execCommand("insertText",!1,t)}function ae({entity:e,id:t,field:n,lang:r,value:s,as:i="span",multiline:o=!1,placeholder:a="Text eingeben…",className:u="",...c}){const{language:d}=Se(),f=ot(),h=r||d,p=f.getValue(e,t,n,h,s??"")??"";if(!f.canEdit(e))return l.jsx(i,{className:u,...c,children:p});const v=w=>{const b=o?w.innerText.replace(/\n{3,}/g,`
`).trim():w.innerText.replace(/\s+/g," ").trim();b!==p.trim()&&f.setValue(e,t,n,h,b),w.innerText!==b&&(w.innerText=b)};return l.jsx(i,{...c,className:`${u} live-editable${f.hasPending(e,t,n,h)?" live-editable-changed":""}`,contentEditable:!0,suppressContentEditableWarning:!0,spellCheck:!0,"data-live-placeholder":a,onClick:$d,onPaste:IT,onKeyDown:w=>{w.key==="Enter"&&!o?(w.preventDefault(),w.currentTarget.blur()):w.key==="Escape"&&(w.currentTarget.innerText=p,w.currentTarget.blur()),w.stopPropagation()},onKeyUp:w=>w.stopPropagation(),onBlur:w=>v(w.currentTarget),children:p},`${h}:${p}`)}function Ue({k:e,...t}){const{t:n}=Se();return l.jsx(ae,{entity:"text",id:e,field:"value",value:n(e),placeholder:"Leer = Standardtext",...t})}function fr({entity:e,id:t,field:n,lang:r,value:s,label:i="Text",className:o="",...a}){const{language:u}=Se(),c=ot(),d=r||u,f=c.getValue(e,t,n,d,s??"")??"";if(!c.canEdit(e))return l.jsx("div",{className:o,...a,dangerouslySetInnerHTML:{__html:f}});const h=p=>{$d(p),c.openEditor({kind:"html",entity:e,id:t,field:n,lang:d,label:i,original:f})};return l.jsx("div",{...a,className:`${o} live-editable live-editable-block${c.hasPending(e,t,n,d)?" live-editable-changed":""}`,role:"button",tabIndex:0,title:"Klicken zum Bearbeiten",onClick:h,onKeyDown:p=>p.key==="Enter"&&h(p),"data-live-placeholder":"Text hinzufügen…",dangerouslySetInnerHTML:{__html:f}})}function ec({entity:e,id:t,field:n,lang:r,value:s,label:i,kind:o="textarea",hint:a,as:u="div",className:c="",children:d,...f}){const{language:h}=Se(),p=ot(),v=r||h;if(!p.canEdit(e))return l.jsx(u,{className:c,...f,children:d});const w=p.getValue(e,t,n,v,s??"")??"",b=g=>{$d(g),p.openEditor({kind:o,entity:e,id:t,field:n,lang:v,label:i,hint:a,original:w})};return l.jsx(u,{...f,className:`${c} live-editable live-editable-block${p.hasPending(e,t,n,v)?" live-editable-changed":""}`,role:"button",tabIndex:0,title:`${i} bearbeiten`,onClickCapture:b,onKeyDown:g=>g.key==="Enter"&&b(g),children:d})}function FT({items:e,entity:t="faqs"}){const[n,r]=m.useState(null),s=ot(),{language:i}=Se();return s.canEdit(t)?l.jsx("div",{className:"divide-y divide-neutral-200 rounded-xl border border-neutral-200 bg-white dark:divide-neutral-800 dark:border-neutral-800 dark:bg-neutral-900",children:e.map((o,a)=>l.jsxs("div",{className:"space-y-3 px-5 py-4",children:[l.jsx(ae,{entity:t,id:o.id,field:"question",value:o.question,as:"p",className:"block font-medium text-neutral-900 dark:text-white",placeholder:"Frage"}),l.jsx(ae,{entity:t,id:o.id,field:"answer",value:o.answer,as:"p",multiline:!0,className:"block whitespace-pre-line text-sm text-neutral-600 dark:text-neutral-300",placeholder:"Antwort"})]},o.id??a))}):l.jsx("div",{className:"divide-y divide-neutral-200 rounded-xl border border-neutral-200 bg-white dark:divide-neutral-800 dark:border-neutral-800 dark:bg-neutral-900",children:e.map((o,a)=>{const u=n===a,c=o.id?{...o,question:s.getValue(t,o.id,"question",i,o.question),answer:s.getValue(t,o.id,"answer",i,o.answer)}:o;return l.jsxs("div",{children:[l.jsxs("button",{onClick:()=>r(u?null:a),className:"flex w-full items-center justify-between gap-4 px-5 py-4 text-left","aria-expanded":u,children:[l.jsx("span",{className:"font-medium text-neutral-900 dark:text-white",children:c.question}),l.jsx(Zt.svg,{animate:{rotate:u?180:0},transition:{duration:.2},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-5 w-5 shrink-0 text-neutral-500",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m6 9 6 6 6-6"})})]}),l.jsx(jj,{initial:!1,children:u&&l.jsx(Zt.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.25,ease:"easeInOut"},className:"overflow-hidden",children:l.jsx("p",{className:"px-5 pb-4 text-sm text-neutral-600 dark:text-neutral-300",children:c.answer})})})]},c.id??c.question)})})}function qy({count:e=5,className:t="h-4 w-4"}){return l.jsx("div",{className:"flex gap-0.5 text-amber-400",children:Array.from({length:e}).map((n,r)=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:t,children:l.jsx("path",{d:"M10 1.5l2.6 5.6 6.1.6-4.6 4.1 1.3 6-5.4-3.1-5.4 3.1 1.3-6-4.6-4.1 6.1-.6L10 1.5z"})},r))})}const OT=70;function zT({testimonials:e}){const t=m.useRef(null),n=m.useRef(null),r=m.useRef({pos:0,half:0,hovering:!1,dragging:!1,dragStartX:0,dragStartPos:0,lastTime:null,rafId:null}).current;m.useLayoutEffect(()=>{const i=n.current,o=window.matchMedia("(prefers-reduced-motion: reduce)").matches,a=()=>{i.style.transform=`translateX(${r.pos}px)`},u=x=>{if(r.half<=0)return x;for(;x>0;)x-=r.half;for(;x<=-r.half;)x+=r.half;return x},c=()=>{r.half=i.scrollWidth/2,r.pos===0?r.pos=-r.half:r.pos=u(r.pos),a()};c();const d=new ResizeObserver(c);d.observe(i);const f=x=>{r.lastTime===null&&(r.lastTime=x);const y=(x-r.lastTime)/1e3;r.lastTime=x,!r.dragging&&!r.hovering&&!o&&(r.pos=u(r.pos+OT*y),a()),r.rafId=requestAnimationFrame(f)};r.rafId=requestAnimationFrame(f);const h=t.current,p=()=>{r.hovering=!0},v=()=>{r.hovering=!1},w=x=>{r.dragging=!0,r.dragStartX=x.clientX,r.dragStartPos=r.pos,h.setPointerCapture(x.pointerId),h.classList.add("cursor-grabbing"),h.classList.remove("cursor-grab")},b=x=>{r.dragging&&(r.pos=u(r.dragStartPos+(x.clientX-r.dragStartX)),a())},g=x=>{r.dragging&&(r.dragging=!1,h.hasPointerCapture(x.pointerId)&&h.releasePointerCapture(x.pointerId),h.classList.remove("cursor-grabbing"),h.classList.add("cursor-grab"))};return h.addEventListener("pointerenter",p),h.addEventListener("pointerleave",v),h.addEventListener("pointerdown",w),h.addEventListener("pointermove",b),h.addEventListener("pointerup",g),h.addEventListener("pointercancel",g),()=>{cancelAnimationFrame(r.rafId),d.disconnect(),h.removeEventListener("pointerenter",p),h.removeEventListener("pointerleave",v),h.removeEventListener("pointerdown",w),h.removeEventListener("pointermove",b),h.removeEventListener("pointerup",g),h.removeEventListener("pointercancel",g)}},[e.length]);const s=[...e,...e];return l.jsx("div",{ref:t,className:"marquee-viewport cursor-grab touch-pan-y select-none overflow-hidden",children:l.jsx("div",{ref:n,className:"marquee-track flex w-max gap-5",children:s.map((i,o)=>l.jsx("div",{className:"w-64 shrink-0 sm:w-72 lg:w-80",children:l.jsxs("div",{className:"relative flex h-full flex-col overflow-hidden rounded-xl border border-neutral-200 bg-white p-6 shadow-sm transition-shadow duration-300 hover:shadow-lg dark:border-neutral-800 dark:bg-neutral-900",children:[l.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 32 24",className:"absolute -right-1 -top-1 h-16 w-16 text-brand-500/10 dark:text-brand-400/10",children:l.jsx("path",{fill:"currentColor",d:"M9.4 0C4.4 3.5 1 9.1 1 15.3 1 20.6 4.3 24 8.4 24c3.8 0 6.6-3 6.6-6.6 0-3.4-2.4-5.9-5.4-5.9-.6 0-1.4.1-1.6.2C8.5 8.5 11.6 4.6 14.6 2.6L9.4 0zm16.5 0c-4.8 3.5-8.3 9.1-8.3 15.3 0 5.3 3.3 8.6 7.5 8.6 3.7 0 6.6-3 6.6-6.6 0-3.4-2.5-5.9-5.4-5.9-.6 0-1.4.1-1.6.2.5-3.3 3.6-7.1 6.7-9.1L25.9 0z"})}),l.jsx(qy,{className:"relative z-10 mb-3 h-4 w-4",count:i.rating||5}),l.jsxs("p",{className:"relative z-10 mb-4 line-clamp-6 flex-1 text-sm leading-relaxed text-neutral-600 dark:text-neutral-300",children:["„",i.text,'"']}),l.jsxs("div",{className:"relative z-10 mt-auto flex items-center gap-3",children:[i.photo?l.jsx("img",{src:i.photo,alt:"",referrerPolicy:"no-referrer",className:"h-9 w-9 shrink-0 rounded-full object-cover"}):l.jsx("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-brand-100 text-sm font-semibold text-brand-700 dark:bg-brand-900/40 dark:text-brand-300",children:i.name.charAt(0).toUpperCase()}),l.jsx("p",{className:"text-sm font-semibold text-neutral-900 dark:text-white",children:i.name})]})]})},`${i.name}-${o}`))})})}function ep(e,t,n={x:0,y:0}){const r=Math.max(0,Math.min(100,e==null?n.x:Number(e)||0)),s=Math.max(0,Math.min(100,t==null?n.y:Number(t)||0));return{left:`${r}%`,top:`${s}%`,transform:`translate(-${r}%, -${s}%)`}}const BT="/assets/gallery-dash2-CEVCErVK.webp",Yy="/assets/gallery-amp-purple-CESAKuOf.webp",$T="/assets/gallery-speaker-CUXQZ49Q.webp",Xy="/assets/gallery-subs-COSd4seJ.webp",Zy="/assets/gallery-dash-Cg-7v9qo.webp",HT="/assets/hero-trunk-Dp4_JHDh.webp",UT="/assets/gallery-rear-8cIXPC7T.webp",WT="/assets/hero-highlight-Co4f1Kj5.webp",GT="/assets/youtube-hintergrund-BqSbCrLQ.mp4",KT="/assets/youtube-hintergrund-mobil-BolxAIc0.mp4",zi={left:"text-left",center:"text-center",right:"text-right"},qT={left:"",center:"mx-auto",right:"ml-auto"},YT={eyebrow_de:"",eyebrow_en:"",title_de:"",title_en:"",body_html_de:"",body_html_en:"",text_align:"center",text_align_x:50,text_align_y:50,button_label_de:"",button_label_en:"",button_url:"",font_family:null};function tp({slug:e,label:t,url:n,className:r,style:s}){const{hidden_areas:i}=Vt(),o=ot();return e&&o.canEdit("home_sections")?l.jsxs("span",{className:"inline-flex flex-wrap items-center justify-center gap-2",children:[l.jsx(ae,{entity:"home_sections",id:e,field:"button_label",value:t,className:r,style:s,placeholder:"Button-Text (leer = kein Button)"}),l.jsxs(ec,{entity:"home_sections",id:e,field:"button_url",lang:"de",value:n,kind:"input",label:"Button-Ziel",hint:"Interne Seite mit / am Anfang (z. B. /leistungen) oder volle Adresse (https://...).",as:"span",className:"rounded bg-black/60 px-2 py-1 text-xs font-medium text-white",children:["Ziel: ",n||"–"]})]}):!t||!n||Ky(n,i)?null:n.startsWith("/")?l.jsx(K,{to:n,className:r,style:s,children:t}):l.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:r,style:s,children:t})}const XT=[{src:Xy,width:900,height:600},{src:Yy,width:900,height:600},{src:$T,width:900,height:1200},{src:Zy,width:900,height:814},{src:UT,width:900,height:1200},{src:HT,width:1920,height:1280}];function ZT(){const{hero_image_path:e}=Vt(),t=e||BT,{t:n,language:r}=Se(),s=wa(),i=ot(),o=i.canEdit("home_sections"),a=!s("page.vehicles"),u=n("home.stats"),c=n("home.galleryAlts"),d=XT.map((_,V)=>({..._,alt:c[V]})),[f,h]=m.useState([]),[p,v]=m.useState({}),[w,b]=m.useState(!1),[g,x]=m.useState([]),y=_=>{const V=p[_]||YT,Pe=w&&{hero:n("home.heroTitle"),craft:n("home.craftTitle")}[_]||"",Ve=w&&_==="hero"?`<p>${n("home.heroSubtitle")}</p>`:"";return{eyebrow:i.getValue("home_sections",_,"eyebrow",r,V[`eyebrow_${r}`]||""),title:i.getValue("home_sections",_,"title",r,V[`title_${r}`]||Pe),bodyHtml:i.getValue("home_sections",_,"body_html",r,V[`body_html_${r}`]||Ve),align:V.text_align||"center",alignX:V.text_align_x,alignY:V.text_align_y,buttonLabel:i.getValue("home_sections",_,"button_label",r,V[`button_label_${r}`]||""),buttonUrl:i.getValue("home_sections",_,"button_url","de",V.button_url||""),fontFamily:V.font_family||void 0}},k=He("home_sections.hero.eyebrow"),S=He("home_sections.hero.title"),E=He("home_sections.youtube.eyebrow"),j=He("home_sections.youtube.title"),P=He("home_sections.youtube.button_label"),M=He("home_sections.craft.eyebrow"),T=He("home_sections.craft.title"),B=He("home_sections.advice.eyebrow"),H=He("home_sections.advice.title"),ee=He("home_sections.insights.eyebrow"),U=He("home_sections.insights.title"),G=He("home_sections.more.eyebrow"),q=He("home_sections.more.title"),ie=He("home_sections.more.button_label");m.useEffect(()=>{ue.get("/home-sections").then(v).catch(()=>b(!0))},[]),m.useEffect(()=>{ue.get("/partners").then(x).catch(()=>{})},[]);const[N,A]=m.useState(null),L=N?N.reviews.filter(_=>_.review_text).map(_=>({name:_.author_name,text:_.review_text,rating:_.rating,photo:_.profile_photo_url})):n("home.testimonials");m.useEffect(()=>{ue.get("/faqs").then(_=>{h(_.map(V=>({id:V.id,question:r==="de"?V.question_de:V.question_en,answer:r==="de"?V.answer_de:V.answer_en})))}).catch(()=>{})},[r]),m.useEffect(()=>{ue.get("/google-reviews").then(_=>{_.rating!=null&&_.reviews.some(V=>V.review_text)&&A(_)}).catch(()=>{})},[]),ur({title:n("home.metaTitle"),description:n("home.metaDescription"),path:"/"}),m.useEffect(()=>{if(f.length===0||s("home.faq"))return;const _=document.createElement("script");return _.type="application/ld+json",_.text=JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:f.map(V=>({"@type":"Question",name:V.question,acceptedAnswer:{"@type":"Answer",text:V.answer}}))}),document.head.appendChild(_),()=>document.head.removeChild(_)},[f]),m.useEffect(()=>{var _;f.length>0&&window.location.hash==="#faq"&&((_=document.getElementById("faq"))==null||_.scrollIntoView())},[f]);const F=m.useRef(null);m.useEffect(()=>{var mt,In,Ud;const _=F.current;if(!_)return;const V=(mt=window.matchMedia)==null?void 0:mt.call(window,"(prefers-reduced-motion: reduce)").matches,Pe=(In=navigator.connection)==null?void 0:In.saveData;if(V||Pe)return;const oe=((Ud=window.matchMedia)==null?void 0:Ud.call(window,"(max-width: 767px), (pointer: coarse)").matches)?KT:GT,ve=new IntersectionObserver(([Qy])=>{Qy.isIntersecting?(_.getAttribute("src")||(_.src=oe),_.play().catch(()=>{})):_.paused||_.pause()},{rootMargin:"300px 0px"});return ve.observe(_),()=>ve.disconnect()},[]);const C=m.useRef(null),{scrollYProgress:R}=ky({target:C,offset:["start start","end start"]}),z=sC(),W=dn(R,[0,1],z?["0%","0%"]:["-6%","6%"]),te=dn(R,[0,1],z?["0%","0%"]:["0%","60%"]),se=dn(R,[0,.8],[1,0]),je=dn(R,[.5,1],[0,1]),Re=dn(je,_=>_>.05?"auto":"none"),St=dn(R,[.5,1],[16,0]);return l.jsxs("div",{children:[l.jsx(Zt.div,{style:{opacity:je,pointerEvents:Re,y:St},className:"fixed inset-x-0 bottom-0 z-20 border-t border-neutral-200 bg-white/95 px-4 py-3 shadow-[0_-8px_24px_rgba(0,0,0,0.08)] backdrop-blur dark:border-neutral-800 dark:bg-neutral-950/95 sm:px-6",children:l.jsxs("div",{className:"mx-auto flex max-w-6xl items-center justify-between gap-3",children:[l.jsx(Ue,{k:"home.stickyCta",as:"p",className:"hidden text-sm font-medium text-neutral-600 dark:text-neutral-300 sm:block"}),l.jsxs("div",{className:"flex w-full gap-3 sm:w-auto",children:[a&&l.jsx(K,{to:"/fahrzeuge",className:"flex-1 rounded-md bg-brand-500 px-5 py-2.5 text-center text-sm font-semibold text-white shadow-sm transition hover:-translate-y-0.5 hover:bg-brand-600 sm:flex-none",children:l.jsx(Ue,{k:"home.selectVehicle"})}),l.jsx(K,{to:"/kontakt",className:"flex-1 rounded-md border border-neutral-300 px-5 py-2.5 text-center text-sm font-semibold text-neutral-700 transition hover:-translate-y-0.5 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800 sm:flex-none",children:l.jsx(Ue,{k:"home.getInTouch"})})]})]})}),l.jsxs("section",{ref:C,className:"relative -mt-[89px] h-svh min-h-[560px] overflow-hidden sm:-mt-[97px]",children:[l.jsx(Zt.img,{style:{y:W,scale:1.15},src:t,alt:n("home.heroImageAlt"),className:"absolute inset-0 h-full w-full object-cover"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-neutral-950 via-neutral-950/80 to-neutral-950/40"}),l.jsx(Zt.div,{style:{y:te,opacity:se},className:"absolute inset-0",children:l.jsx("div",{className:"absolute w-full max-w-2xl px-4 text-center sm:px-6",style:{...ep(y("hero").alignX,y("hero").alignY,{x:50,y:50}),fontFamily:y("hero").fontFamily},children:l.jsxs(Zt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.7,ease:"easeOut"},children:[(y("hero").eyebrow||o)&&l.jsx(ae,{entity:"home_sections",id:"hero",field:"eyebrow",value:y("hero").eyebrow,as:"p",className:"mb-3 text-sm font-semibold uppercase tracking-wide text-brand-400",style:k,placeholder:"Vorspann (optional)"}),l.jsx(ae,{entity:"home_sections",id:"hero",field:"title",value:y("hero").title,as:"h1",className:"text-3xl font-extrabold tracking-tight text-white sm:text-5xl",style:S,placeholder:"Überschrift"}),l.jsx(fr,{entity:"home_sections",id:"hero",field:"body_html",value:y("hero").bodyHtml,label:"Text",className:"legal-content mx-auto mt-4 max-w-2xl text-base text-neutral-200 sm:text-lg"}),l.jsxs("div",{className:"mt-8 flex flex-wrap items-center justify-center gap-3",children:[a&&l.jsx(K,{to:"/fahrzeuge",className:"rounded-md bg-brand-500 px-6 py-3 text-sm font-semibold text-white shadow-sm transition hover:-translate-y-0.5 hover:bg-brand-600 hover:shadow-lg",children:l.jsx(Ue,{k:"home.selectVehicle"})}),l.jsx(K,{to:"/kontakt",className:"rounded-md border border-white/30 bg-white/10 px-6 py-3 text-sm font-semibold text-white backdrop-blur transition hover:-translate-y-0.5 hover:bg-white/20",children:l.jsx(Ue,{k:"home.getInTouch"})})]})]})})})]}),!s("home.stats")&&l.jsx("section",{className:"border-b border-neutral-200 bg-neutral-950 py-8 dark:border-neutral-800",children:l.jsx("div",{className:"mx-auto grid max-w-6xl grid-cols-2 gap-6 px-4 text-center sm:grid-cols-4 sm:px-6",children:u.map((_,V)=>l.jsxs($e,{index:V,children:[l.jsx("p",{className:"text-2xl font-extrabold text-brand-400 sm:text-3xl",children:_.value}),l.jsx("p",{className:"text-sm text-neutral-400",children:_.label})]},_.label))})}),!s("home.partners")&&l.jsx("section",{className:"border-b border-neutral-200 py-8 dark:border-neutral-800",children:l.jsxs("div",{className:"mx-auto max-w-6xl px-4 sm:px-6",children:[l.jsx(Ue,{k:"home.brandsHeading",as:"p",className:"mb-4 block text-center text-xs font-semibold uppercase tracking-wide text-neutral-400"}),l.jsx("div",{className:"flex flex-wrap items-center justify-center gap-x-8 gap-y-3",children:g.map((_,V)=>l.jsx($e,{index:V,children:_.logo_path?l.jsx("img",{src:_.logo_path,alt:_.name,className:"h-8 max-w-[8rem] object-contain opacity-70 grayscale transition hover:opacity-100 hover:grayscale-0"}):l.jsx(ae,{entity:"partners",id:_.id,field:"name",lang:"de",value:_.name,className:"text-lg font-bold text-neutral-400 dark:text-neutral-600"})},_.id))})]})}),!s("home.youtube")&&l.jsxs("section",{className:"relative min-h-[70vh] overflow-hidden sm:min-h-[85vh]",children:[l.jsx("video",{ref:F,loop:!0,muted:!0,playsInline:!0,preload:"none",poster:Zy,className:"absolute inset-0 h-full w-full object-cover"}),l.jsx("div",{className:"absolute inset-0 bg-black/55"}),l.jsx("div",{className:"absolute w-full max-w-3xl px-4 text-center sm:px-6",style:{...ep(y("youtube").alignX,y("youtube").alignY,{x:50,y:50}),fontFamily:y("youtube").fontFamily},children:l.jsxs($e,{children:[(y("youtube").eyebrow||o)&&l.jsx(ae,{entity:"home_sections",id:"youtube",field:"eyebrow",value:y("youtube").eyebrow,as:"p",className:"mb-4 text-xs font-semibold uppercase tracking-[0.2em] text-neutral-200 sm:text-sm",style:E,placeholder:"Vorspann (optional)"}),l.jsx(ae,{entity:"home_sections",id:"youtube",field:"title",value:y("youtube").title,as:"h2",className:"text-3xl font-bold uppercase tracking-wide text-white sm:text-5xl",style:j,placeholder:"Überschrift"}),l.jsx(fr,{entity:"home_sections",id:"youtube",field:"body_html",value:y("youtube").bodyHtml,label:"Text",className:"legal-content mt-4 text-xs font-semibold uppercase tracking-wide text-neutral-200 sm:text-sm"}),l.jsx(tp,{slug:"youtube",label:y("youtube").buttonLabel,url:y("youtube").buttonUrl,className:"mt-8 inline-flex items-center justify-center rounded-full bg-white px-8 py-3 text-xs font-bold uppercase tracking-wide text-neutral-900 transition hover:-translate-y-0.5 hover:bg-neutral-100",style:P})]})})]}),!s("home.craft")&&l.jsx("section",{className:"grain-band border-y border-neutral-200 bg-neutral-50 py-16 dark:border-neutral-800 dark:bg-neutral-900/40",children:l.jsxs("div",{className:"mx-auto max-w-6xl space-y-16 overflow-hidden px-4 sm:px-6",children:[l.jsxs("div",{className:"grid items-center gap-8 md:grid-cols-2",children:[l.jsx($e,{direction:"left",shine:!0,className:"rounded-xl shadow-lg",children:l.jsx("img",{src:Xy,alt:n("home.craftImageAlt"),width:900,height:600,className:"w-full rounded-xl object-cover",style:{maxHeight:380}})}),l.jsxs($e,{direction:"right",index:1,className:zi[y("craft").align],style:{fontFamily:y("craft").fontFamily},children:[(y("craft").eyebrow||o)&&l.jsx(ae,{entity:"home_sections",id:"craft",field:"eyebrow",value:y("craft").eyebrow,as:"p",className:"mb-2 text-sm font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",style:M,placeholder:"Vorspann (optional)"}),l.jsx(ae,{entity:"home_sections",id:"craft",field:"title",value:y("craft").title,as:"h2",className:"mb-3 text-2xl font-bold text-neutral-900 dark:text-white",style:T,placeholder:"Überschrift"}),l.jsx(fr,{entity:"home_sections",id:"craft",field:"body_html",value:y("craft").bodyHtml,label:"Text",className:"legal-content text-neutral-600 dark:text-neutral-300"})]})]}),l.jsxs("div",{className:"grid items-center gap-8 md:grid-cols-2",children:[l.jsxs($e,{direction:"left",className:`order-2 md:order-1 ${zi[y("advice").align]}`,style:{fontFamily:y("advice").fontFamily},children:[(y("advice").eyebrow||o)&&l.jsx(ae,{entity:"home_sections",id:"advice",field:"eyebrow",value:y("advice").eyebrow,as:"p",className:"mb-2 text-sm font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",style:B,placeholder:"Vorspann (optional)"}),l.jsx(ae,{entity:"home_sections",id:"advice",field:"title",value:y("advice").title,as:"h2",className:"mb-3 text-2xl font-bold text-neutral-900 dark:text-white",style:H,placeholder:"Überschrift"}),l.jsx(fr,{entity:"home_sections",id:"advice",field:"body_html",value:y("advice").bodyHtml,label:"Text",className:"legal-content text-neutral-600 dark:text-neutral-300"})]}),l.jsx($e,{direction:"right",index:1,shine:!0,className:"order-1 md:order-2 rounded-xl shadow-lg",children:l.jsx("img",{src:Yy,alt:n("home.adviceImageAlt"),width:900,height:600,className:"w-full rounded-xl object-cover",style:{maxHeight:380}})})]})]})}),!s("home.insights")&&l.jsxs("section",{className:"mx-auto max-w-6xl px-4 py-16 sm:px-6",children:[l.jsxs($e,{className:`mb-8 ${zi[y("insights").align]}`,style:{fontFamily:y("insights").fontFamily},children:[(y("insights").eyebrow||o)&&l.jsx(ae,{entity:"home_sections",id:"insights",field:"eyebrow",value:y("insights").eyebrow,as:"p",className:"mb-2 text-sm font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",style:ee,placeholder:"Vorspann (optional)"}),l.jsx(ae,{entity:"home_sections",id:"insights",field:"title",value:y("insights").title,as:"h2",className:"text-2xl font-bold text-neutral-900 dark:text-white",style:U,placeholder:"Überschrift"}),l.jsx(fr,{entity:"home_sections",id:"insights",field:"body_html",value:y("insights").bodyHtml,label:"Text",className:"legal-content mt-2 text-neutral-600 dark:text-neutral-300"})]}),l.jsx("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3",children:d.map((_,V)=>l.jsx($e,{index:V%3,shine:!0,className:"aspect-square overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:l.jsx("img",{src:_.src,alt:_.alt,width:_.width,height:_.height,loading:"lazy",className:"h-full w-full object-cover transition duration-300 hover:scale-105"})},_.src))})]}),!s("home.reviews")&&l.jsx("section",{className:"grain-band border-y border-neutral-200 bg-neutral-50 py-16 dark:border-neutral-800 dark:bg-neutral-900/40",children:l.jsxs("div",{className:"mx-auto max-w-6xl px-4 sm:px-6",children:[l.jsxs($e,{className:"mb-10 text-center",children:[l.jsx("div",{className:"mb-2 flex items-center justify-center gap-2",children:l.jsx(qy,{className:"h-6 w-6",count:N?Math.round(N.rating):5})}),l.jsx("h2",{className:"text-2xl font-bold text-neutral-900 dark:text-white",children:N?n("home.reviewsRatingDynamic")(N.rating,N.rating_count):n("home.reviewsRating")}),l.jsx(Ue,{k:"home.reviewsText",as:"p",className:"mt-1 text-neutral-600 dark:text-neutral-300"}),l.jsx("a",{href:"https://www.google.com/maps/search/?api=1&query=Hifi+Planet+Amorbach+Boxbrunner+Stra%C3%9Fe+20a",target:"_blank",rel:"noopener noreferrer",className:"mt-2 inline-block text-sm font-medium text-brand-600 hover:underline dark:text-brand-400",children:l.jsx(Ue,{k:"home.reviewsLink"})})]}),l.jsx($e,{children:l.jsx(zT,{testimonials:L})})]})}),!s("home.more")&&l.jsx("section",{className:"mx-auto max-w-6xl overflow-hidden px-4 py-16 sm:px-6",children:l.jsxs("div",{className:"grid items-center gap-10 md:grid-cols-2",children:[l.jsx($e,{direction:"left",shine:!0,className:"overflow-hidden rounded-xl shadow-lg",children:l.jsx("img",{src:WT,alt:n("home.moreImageAlt"),width:1600,height:905,className:"h-full w-full object-cover",loading:"lazy"})}),l.jsxs($e,{direction:"right",index:1,className:`rounded-xl border border-neutral-200 bg-white p-8 shadow-sm dark:border-neutral-800 dark:bg-neutral-900 ${zi[y("more").align]}`,style:{fontFamily:y("more").fontFamily},children:[(y("more").eyebrow||o)&&l.jsx(ae,{entity:"home_sections",id:"more",field:"eyebrow",value:y("more").eyebrow,as:"p",className:"mb-2 text-sm font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",style:G,placeholder:"Vorspann (optional)"}),l.jsx(ae,{entity:"home_sections",id:"more",field:"title",value:y("more").title,as:"h2",className:"mb-3 text-2xl font-bold text-neutral-900 dark:text-white",style:q,placeholder:"Überschrift"}),l.jsx(fr,{entity:"home_sections",id:"more",field:"body_html",value:y("more").bodyHtml,label:"Text",className:`legal-content mb-8 max-w-2xl text-neutral-600 dark:text-neutral-300 ${qT[y("more").align]}`}),l.jsx(tp,{slug:"more",label:y("more").buttonLabel,url:y("more").buttonUrl,className:"inline-block rounded-md border border-neutral-300 px-6 py-3 text-sm font-semibold text-neutral-700 transition hover:-translate-y-0.5 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800",style:ie})]})]})}),!s("home.faq")&&l.jsx("section",{id:"faq",className:"scroll-mt-20 border-t border-neutral-300 py-16 dark:border-neutral-700",children:l.jsxs("div",{className:"mx-auto max-w-3xl px-4 sm:px-6",children:[l.jsx($e,{className:"mb-8 text-center",children:l.jsx(Ue,{k:"home.faqHeading",as:"h2",className:"text-2xl font-bold text-neutral-900 dark:text-white"})}),l.jsx($e,{index:1,children:l.jsx(FT,{items:f})})]})})]})}function Sa(e,t){return e?e.code==="rate_limited"||e.status===429?t("errors.rateLimited"):e.code==="invalid_input"||e.status===422?t("errors.invalidInput"):e.status===404?t("errors.notFound"):e.status===503?t("errors.maintenance"):e.status>=500?t("errors.server"):e.status?t("errors.generic"):t("errors.network"):""}function QT(){const[e,t]=m.useState(null),[n,r]=m.useState(null),s=ba(),{t:i}=Se(),o=Od(),{vehicle_tile_width:a,vehicle_tile_height:u}=Vt(),c={width:`${a}px`,height:`${u}px`};return ur({title:i("vehicleSelect.metaTitle"),description:i("vehicleSelect.metaDescription"),path:"/fahrzeuge"}),m.useEffect(()=>{s.vehicles.enabled&&!s.bypass||ue.get("/brands").then(t).catch(d=>r(d))},[s.vehicles.enabled,s.bypass]),s.vehicles.enabled&&!s.bypass?l.jsx(mi,{message:s.vehicles.message}):l.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[s.vehicles.enabled&&s.bypass&&l.jsx(pi,{inline:!0}),l.jsx(Ue,{k:"vehicleSelect.title",as:"h1",className:"mb-2 block text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl"}),l.jsx(Ue,{k:"vehicleSelect.intro",as:"p",className:"mb-8 block text-neutral-600 dark:text-neutral-300"}),n&&l.jsx("p",{className:"text-red-600",children:typeof n=="string"?n:Sa(n,i)}),e===null&&!n&&l.jsx("div",{className:"flex flex-wrap gap-4","aria-busy":"true","aria-label":i("vehicleSelect.loading"),children:Array.from({length:6},(d,f)=>l.jsx("div",{style:c,className:"shrink-0 animate-pulse rounded-xl bg-neutral-200 dark:bg-neutral-800"},f))}),(e==null?void 0:e.length)===0&&!n&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:i("vehicleSelect.empty")}),l.jsx("div",{className:"flex flex-wrap gap-4",children:(e||[]).map(d=>d.image_path?l.jsxs(K,{to:`/fahrzeuge/${d.slug}`,style:c,className:"group relative block shrink-0 overflow-hidden rounded-xl bg-neutral-900 shadow-sm transition hover:shadow-lg",children:[l.jsx("img",{src:d.image_path,alt:"",loading:"lazy",decoding:"async",width:a,height:u,className:"h-full w-full object-cover transition duration-300 group-hover:scale-105"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent transition group-hover:from-black/95"}),l.jsx(ae,{entity:"brands",id:d.id,field:"name",lang:"de",value:d.name,className:"absolute inset-x-0 bottom-0 p-4 text-center text-lg font-extrabold text-white",style:ir(o,`brands.${d.id}.name`)})]},d.id):l.jsx(K,{to:`/fahrzeuge/${d.slug}`,style:c,className:"flex shrink-0 flex-col items-center justify-center gap-3 rounded-xl border border-neutral-200 bg-white px-6 text-center font-semibold text-neutral-800 shadow-sm transition hover:-translate-y-0.5 hover:border-brand-500 hover:shadow-md dark:border-neutral-800 dark:bg-neutral-900 dark:text-neutral-100",children:l.jsx(ae,{entity:"brands",id:d.id,field:"name",lang:"de",value:d.name,style:ir(o,`brands.${d.id}.name`)})},d.id))})]})}function Hd(){const{t:e}=Se(),{phone:t}=Vt(),n=wa();return ur({title:e("notFound.metaTitle"),noindex:!0}),l.jsxs("div",{className:"mx-auto max-w-2xl px-4 py-20 text-center sm:px-6",children:[l.jsx("p",{className:"text-sm font-semibold uppercase tracking-[4px] text-brand-500",children:"404"}),l.jsx("h1",{className:"mt-3 text-3xl font-bold text-neutral-900 dark:text-white sm:text-4xl",children:e("notFound.title")}),l.jsx("p",{className:"mx-auto mt-4 max-w-md text-neutral-600 dark:text-neutral-300",children:e("notFound.text")}),l.jsxs("div",{className:"mt-10 flex flex-wrap justify-center gap-3",children:[!n("page.vehicles")&&l.jsxs(K,{to:"/fahrzeuge",className:"inline-flex items-center gap-2 rounded-md bg-brand-500 px-5 py-3 text-sm font-semibold text-white shadow-sm hover:bg-brand-600",children:[l.jsx(qo,{className:"h-4 w-4"}),e("notFound.toVehicles")]}),l.jsxs(K,{to:"/kontakt",className:"inline-flex items-center gap-2 rounded-md border border-neutral-300 px-5 py-3 text-sm font-semibold text-neutral-700 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800",children:[l.jsx(Zu,{className:"h-4 w-4"}),e("notFound.toContact")]}),t&&l.jsxs("a",{href:Vd(t),className:"inline-flex items-center gap-2 rounded-md border border-neutral-300 px-5 py-3 text-sm font-semibold text-neutral-700 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800",children:[l.jsx(Kr,{className:"h-4 w-4"}),t]})]}),l.jsx(K,{to:"/",className:"mt-8 inline-block text-sm text-neutral-500 underline hover:text-brand-500",children:e("notFound.toHome")})]})}function JT(){const{brandSlug:e}=Jc(),[t,n]=m.useState(null),[r,s]=m.useState(null),i=ba(),{t:o}=Se(),a=Od(),u=He(t?`brands.${t.brand.id}.name`:""),{vehicle_tile_width:c,vehicle_tile_height:d}=Vt(),f={width:`${c}px`,height:`${d}px`};return m.useEffect(()=>{i.vehicles.enabled&&!i.bypass||ue.get(`/brands/${e}/models`).then(n).catch(h=>s(h))},[e,i.vehicles.enabled,i.bypass]),ur({title:t?`${t.brand.name} ${o("brandPage.titleSuffix")}`:o("brandPage.metaTitleFallback"),description:t?o("brandPage.metaDescription")(t.brand.name):void 0,path:`/fahrzeuge/${e}`}),i.vehicles.enabled&&!i.bypass?l.jsx(mi,{message:i.vehicles.message}):r?r.status===404?l.jsx(Hd,{}):l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-red-600 sm:px-6",children:Sa(r,o)}):t?l.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[i.vehicles.enabled&&i.bypass&&l.jsx(pi,{inline:!0}),l.jsxs("p",{className:"mb-1 text-sm text-neutral-500 dark:text-neutral-400",children:[l.jsx(K,{to:"/fahrzeuge",className:"hover:text-brand-500",children:o("brandPage.breadcrumbVehicles")})," / ",l.jsx("span",{style:u,children:t.brand.name})]}),l.jsxs("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:[l.jsx("span",{style:u,children:t.brand.name})," – ",o("brandPage.titleSuffix")]}),t.models.length===0&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:o("brandPage.empty")}),l.jsx("div",{className:"flex flex-wrap gap-4",children:t.models.map(h=>h.image_path?l.jsxs(K,{to:`/fahrzeuge/${e}/${h.slug}`,style:f,className:"group relative block shrink-0 overflow-hidden rounded-xl bg-neutral-900 shadow-sm transition hover:shadow-lg",children:[l.jsx("img",{src:h.image_path,alt:"",loading:"lazy",decoding:"async",width:c,height:d,className:"h-full w-full object-cover transition duration-300 group-hover:scale-105"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent transition group-hover:from-black/95"}),l.jsx(ae,{entity:"car_models",id:h.id,field:"name",lang:"de",value:h.name,className:"absolute inset-x-0 bottom-0 p-4 text-center text-lg font-extrabold text-white",style:ir(a,`car_models.${h.id}.name`)})]},h.id):l.jsx(K,{to:`/fahrzeuge/${e}/${h.slug}`,style:f,className:"flex shrink-0 flex-col items-center justify-center gap-3 rounded-xl border border-neutral-200 bg-white px-6 text-center font-semibold text-neutral-800 shadow-sm transition hover:-translate-y-0.5 hover:border-brand-500 hover:shadow-md dark:border-neutral-800 dark:bg-neutral-900 dark:text-neutral-100",children:l.jsx(ae,{entity:"car_models",id:h.id,field:"name",lang:"de",value:h.name,style:ir(a,`car_models.${h.id}.name`)})},h.id))})]}):l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-neutral-500 sm:px-6",children:o("brandPage.loading")})}function eN({text:e}){return e?e.split(/(\*\*[^*]+\*\*)/g).map((n,r)=>{const s=n.match(/^\*\*([^*]+)\*\*$/);return s?l.jsx("strong",{children:s[1]},r):l.jsx("span",{children:n},r)}):null}const np="data:image/webp;base64,UklGRmoNAABXRUJQVlA4IF4NAAAQjACdASrgAVYDPlEok0ajoqGhIRK4IHAKCWlu/F+5xDCoDux8VXNtc99B5Uf715Q+k/+V6E/yD7bfvf7tYI7QKys1Pu/n/K9wD+L/0L/aeqHflfZf937AH81/p//N/yXr9f9f+M/yf7c+4D6R/7n+O+BL9d+rb+0f//9yX9VQU+fHDhw4cN7KTkCBAgQIECBAgQIEB8GtgzU5WrVq1atWrVq1atTTWWxGRvDLM5r169evXr169evVcNgPhleRXp06dOnTp06dOnTpUIn65+OKaJVsmzZs2bNmzZs2bNmSyYC6ipEunTp06dOnTp06dOlydZVuN901q1atWrVq1atWrVXZqLYS16JYyeHDhw4cOHDhw4cN4wtQeDaQLgECBAgQIECBAgQIDddB6sEmQB2atWrVq1atWrVq1aq1iYS5JU9iBlzXr169evXr169evXeEPp+8N6OklatWrVq1atWrVq1V3IfqDdZ8CK1AgQIECBAgQIECBBQFoI3bXHSzdGb8+OHDhw4cOHDhw4ZwLNj/Gx48ePHjx48ePHjx5HaZ5q8hFQPLVq1atWrVq1atWrVWlrSSS1atWrVq1atWrVq1VouJ4vs1atWrVq1atWrVqzMNN6naRaj4OHDhw4cOHDhwzggYy8goXr169evXr169evXbAmy3nWg79+/fv379+/fv377Aw+GV3JG24BIkSJEiRIkSJEiRH091sORb3KZK2rVq1atWrVq1atWZgOgxn2g3CECBAgQIECBAgQHwEh4tRYq5WHRSJEiRIkSJEiRIkRmQ4gXd9q0Xa9evXr169evXr169SUP3aSDmqBOfHDhw4cOHDhw4cN/rYXzoW6jx48ePHjx48ePHjwyNgV/F/hRIkSJEiRIkSJEiRGcgeccx2x48ePHjx48ePHjx5+h2DL7y1q1atWrVq1atWrVqrLjxn1+UevXr169evXr169epWz/ixb7G7Fx48ePHjx48ePHjx64Dpo0+TFzjw4cOHDhw4cOHDhwr64/FOVqj1ftlBYsWLFixYsWLFixsB93m6MKtrfi/YePHjx48ePHjx48eGCFP4MdBX+BXbQiRIkSJEiRIkSJEiA+X4/Ne4l0FixYsWLFixYsWLTKZjxkHLs7TTrVq1atWrVq1atWrSGY83Cktx0PPjhw4cOHDhw4cN/7Xmd/H4DxEePHjx48ePHjx48ct7KWpas7p5jy5cuXLly5cuXLlyM+h2/gRIkSJEiRIkSJEiRAPRMs9EnbFixYsWLFixYsWLBwJstxClHwcOHDhw4cOHDhw3+o6GvCGxY8ePHjx48ePHjx45aAayr3BCnnxw4cOHDhw4cOG/2HuJWxIvK1JLZs2bNmzZs2bNmyAMNnZLnTo6dOnTp06dOnTp06Vd0rFPQfnwwCPHjx48ePHjx48eOU7jRhCFUn5bFixYsWLFixYsWKZRr/1LzwcOHDhw4cOHDhw4ZshIGgexQoECBAgQIECBAgQH+hD+jvXr169eu0AAP7/2BA2pStbx3f0LK6/mZcFuZpv73FLTm7GUv07j8lFLoOGX1EwKUHfPc4FImBkAvjxF1E2TgBogJKpQ2lbMv5bOqPckB4PELJo9ZXlMwGup4PkMOtTZPmrbNoaCJqn0H4Bx7A0xA439P5hkMGBnAEfInQIN5UeUIDb3y6tLej2gR8HhJ5XmTsxvmM15ltL5ZwdGmoNeW8NevUVUKqJ8mNngu7ocCsyGYaeYOGGZBBt6rj6bPVKVbxvb8onw6mljAaaxGTz0W+aNPv06kK3qhDe6/uHi8kg2qvjF3njhRMyOJKZzg12h4qOtVgTuKPAMRWYDkgwiRs9iYqcumonNNXvXk3FAk2LO5XnyjtD5sHSUO3pIrztpBvqq+UJzKeIwGBlPwA2NP46tOJxLzbrKeH4SQjt2HAsbrVcQ/b/TgKZGPwaqfGDN+OjqJK3Z9dyCkGGfGKeG1w9+HSZTm/qh052lQEJAcdUX6vm/+sDBxtrfl4Sg8iMcVnDsfTKJpsTYF/vzJ1oQ6/VPyIX1HpDwnPXsptu9rKDFazlkwc3ofi8uKJmycgPiG9xOLlzn4Af8Dm+LcjJUMAtA7XeZPLlW1bwogbRthU8oA4LcURuku6eXDJ1eb1IKUU7k/UK0cBeK+R5YVcmrOnZIyHzcIaClYnrIwerP535fHv4VXjURTO6/85BvSeTNWvQGqkW5v1hG6AEMrxBryfat3kmr+SNEz5wC2f54z1O7C2KsRpt3maISh9PhMg7jDIxmVe07eHtkLtz6v3yQUJQV95yazDYpH5JfpuYSb8dtmB1cKjeoDTPvik9dCA1UFCTZBfojpIOwXdwAR7JEdZkEi/24hMNKJJlB6udZZKqNJB1hNl24Z++z6lAGSAuRgSwDZGdbqxs+0iL6wmRHilqPOiYB6hQiPZ7cfpMZxesqRwyhcf1O29w4ORG/7BlerR8hYvY4B1XsPYbDORvPk6FHIDXwTXGpuDIta7G4F6RNDdOvCFkAl53GZo5h/p2QkWUry5YuyegnPlKjT3He6ewYypA9YOvMhaqip7kr9sF4TU2bX9foKZ+FFZNzhyySS+13+g4BdJo9YF3bw5b6eSxUfTWiDLNh50VjuqRQWHUEkiA8zJqnqkKCwuDy6iY2oF20FJQlGIPpCDKPBzdXSb/n9NDltaoUlbam7cDAU7CwNdaWFXTABRk0S0e49iF4tO106Uwul7DGYpq0Eu71TnKUjCtEBc83QH8skvRzHniEne3AtJLYRH0cMNSSzeCJ1g+Nfc8RaZkhLhCaZGZdYe5j0LGmQnVFt2iapZvGBi7Sw0X56zdziC9Foq0OPsqKFetZdICc2eUV5Vu1+nvisSzn8wlSDUt3OmRkt/gJxfJQfWxcu5HZ26qqNpA4ablWrX4E9DEmvXzpFGYCnYJMheN2BlWwBVLh1cyQ8INngXaoB8I5Pj9oYyuz/W+jvJQ6G074luX9D3pLkuc88D0Hae3ZqXrRYRzGF1vD8pHsk9Co8B6rpE/4GEwW/zsCtnjz5G8m4KFwf2qW1k0HkNv7Nlg38bcz6TdTzuw/jega5XZQQhflLu4I6l+s90BHFIR+JEXTBBqJwT+IgTnpHNc+h5Ek74HiKqXuGUNGIKIozHkiFxMlnrsklrpweBzYY6ype9CzepAuQF63xC/eIJw1pMZEC1pPgq/r+1gWx5M6g8fpu2O12sb6pLeqT+G4mK3yHMZTojfp1xwQedRmwZnWQ8SCh4XV2a/+3OTz4D4pmmumyBV7V2VW3he8y6usinSjfYPxLyTng27fgw6jQhHl2mVhxBBjiwr5ljvJV7L+MJYDiZjGWfBCsTmehk6rbNt7ahTJpHu4B9ctRqiZXjx0zGpTF91OKifmy4nTq31p1XaIsZAHCWvItXKeke06KKKRTIm6mCT9yBJVwG1sqQhjrkP77q0/JGYgOwgdCQCstsAZQ0FlOrGYXYTIQK/krLyCAZjg8vP/Ers/KVN8F88OsyU5/T1e5ba8A2F63qgwhtkWoVIEZErOVL8sM/DtpWTlcBNsvVOFl4tT+Sk6a2ScCptFL5F6cZXTIw8JmgoCbyqB6xyU+uPP5y09s5T8MDC7Em7NpxCjgD39eed40gHQrBm6CtAbS9JOCVPkPxbpcGDj/LoAGbnyYzMpOmTi28LJ9FTIqyGuAI0jxY/QpNelOOEvNK3io1HeYkK3AprImDk99tlUjgt9bc3ejCOFDXt9LqGHjFssGrhVHyJBmWjwHQipcIMHxF2jfP5jfAGuHtJRRncHIFgLWmJ1XmzJ0LLqWCJShdJSJLc7L6YeVcgKfzOZCwhtzJ7VeI3uBhPXQNOqCf5tlQ32HApAMvCIiBwhYrpfFo/kvjfTMB/NJ0w2Lk8GAFfFQY+U6uX1oB0hztGmA5HggJTwgLo8exG64m3Xu4fg2g4MmQol7z6xNwwubABnpoS3Og85giFkaarUP2ovQyixFpXki8Xf5a5NwjUGCPbx+LD3WKJiBtkiHsYMMV/VAZVNvdg/Ph/V4ZYOr+hw7g9mOJXi+oVZxG9pqJC9w8nRkegsnQ2lpRHn22lTsIa9aOkR0X8zp/IajQxUzv057a3WptBst0EZbZtfmWp6h2K0sDQS9oQT1PqOkGDJlz6ZHZzDMShDTcwJfIZMdnjpeHdPoYoqlcn3M8daRuMeTSP3mabP1/pdQrs6Wl7ToKog2Au/gv46pUMgVcKmdWNJdDF8RplMMXJpU2tZMdkTWq4ofSypsCfuWfeHOpFQGJdFF6OoH2pDJXvkqpj1a832g3uYtVQg1TGyqYqI7UBZQy4NEZbdj6O/s6MNEnfujUDQ8QZj7rSE2RI77egKDWzM708AsvlMFoeX4CVP09rMzXNP2aOZwY7zOBTvBgEEqCWlXAFlY8pW0zIm16gqSPiwRUgH41i1PuJx382C0zTWGT243ZhLnyOIlreUrMQAfwR/oYt+ljnDFKqa5PEczDPa+u/vWmR6UM+Q/lLFiIlgBJTfaekWoeLpPd9FPN4gIHzK1ZS8kDHyq3lh/e6FQ84a4Zg6JlfQC/qhAAAAA==",tN="/assets/base-BKOm0Bib.webp",nN="/assets/clear-DZZMSrMX.webp",rN="/assets/drive-BE2W1yna.webp",sN="/assets/prime-BTVNe2Gb.webp",iN="/assets/elite_r-BRvz_pyr.webp",oN="/assets/apex-CFy2qup8.webp",aN="/assets/statement-pTO-wTPx.webp",lN="/assets/limitless-DDs0S_PU.webp";function Nn(e,t,n){if(!e)return"";if(n==="en"){const r=e[`${t}_en`];if(r)return r}return e[t]}const uN=(e,t,n)=>{t/=100,n/=100;const r=o=>(o+e/30)%12,s=t*Math.min(n,1-n),i=o=>n-s*Math.max(-1,Math.min(r(o)-3,Math.min(9-r(o),1)));return[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)]},bl=(e,t,n)=>`rgb(${uN(e,t,n).join(", ")})`,rp=e=>e.map(([t,n,r,s,i,o])=>({bgTop:bl(t,n,r),border:bl(t,n,r+8),accent:bl(s,i,o),img:null})),sp={graphite:[{accent:"#b6b6b6",border:"#2a2a2a",bgTop:"#1c1c1c",img:tN},{accent:"#d3d3d3",border:"#2e2e2e",bgTop:"#212121",img:nN},{accent:"#8fb8bd",border:"#26383b",bgTop:"#16282b",img:rN},{accent:"#6fbf73",border:"#1f3a24",bgTop:"#122916",img:sN},{accent:"#63d34f",border:"#204a1c",bgTop:"#123312",img:iN},{accent:"#8bea3c",border:"#2b5518",bgTop:"#173a0f",img:oN},{accent:"#d9a83c",border:"#4a3a16",bgTop:"#33270d",img:aN},{accent:"#f2c14e",border:"#5a4718",bgTop:"#3d2f0c",img:lN}],"deep-blue":rp([[215,18,11,210,15,60],[212,25,11,208,32,60],[210,38,12,206,46,60],[212,46,12,205,56,61],[214,52,12,205,63,62],[216,58,12,205,68,63],[220,62,12,212,73,65],[226,66,12,216,78,68]]),"warm-bronze":rp([[30,15,11,34,22,60],[34,32,11,34,46,60],[32,46,12,30,58,60],[26,52,12,24,65,60],[20,55,12,18,68,60],[14,55,12,12,68,61],[8,52,12,6,64,62],[2,50,12,358,60,63]])},cN="#f2f2f2",ip="#8a8a8a",op="#c4c4c4",ap=5,dN=3,fN={recommended:{Icon:vE,className:"bg-brand-500 text-white"},popular:{Icon:UC,className:"bg-amber-400 text-neutral-950"},tip:{Icon:qC,className:"bg-sky-500 text-white"},coming_soon:{Icon:Ty,className:"bg-white text-neutral-900"},custom:{Icon:null,className:"bg-brand-500 text-white"}};function hN({pkg:e,tier:t,tierT:n,layout:r,bullets:s,formatPrice:i,contactUrl:o,priceNote:a,t:u}){const[c,d]=m.useState(!1),f=ot().canEdit("packages"),[h,p]=m.useState(!1),v=m.useRef(null),w=s.length-ap,b=c?s:s.slice(0,ap);m.useLayoutEffect(()=>{const M=v.current;if(!M||c){p(!1);return}const T=()=>p([...M.querySelectorAll("[data-clamp]")].some(H=>H.scrollHeight>H.clientHeight+1));T();const B=new ResizeObserver(T);return B.observe(M),()=>B.disconnect()},[c,s.length,e.description]);const g=Od(),x=ir(g,`packages.${e.id}.description`),y=ir(g,`packages.${e.id}.price_text`),{package_card_height:k}=Vt(),S=fN[e.badge],E=r!=="grid",j=e.badge==="custom"?e.badge_text:e.badge&&u(`modelPage.badges.${e.badge}`),P=t.img?null:{backgroundColor:t.accent,WebkitMaskImage:`url(${np})`,maskImage:`url(${np})`,maskMode:"luminance",WebkitMaskSize:"cover",maskSize:"cover",WebkitMaskPosition:"center",maskPosition:"center",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat"};return l.jsxs("div",{style:{borderColor:t.border,background:`linear-gradient(180deg, ${t.bgTop} 0%, #0b0b0b 55%, #080808 100%)`,...E?{gridRow:"span 4",gridTemplateRows:"subgrid",rowGap:0}:{minHeight:`${k}px`}},className:r==="strip"?"relative grid snap-start overflow-hidden rounded-[18px] border shadow-xl shadow-neutral-900/20 dark:shadow-black/40":r==="coverflow"?"relative grid snap-center overflow-hidden rounded-[18px] border shadow-xl shadow-neutral-900/20 will-change-transform dark:shadow-black/40":"relative flex flex-col overflow-hidden rounded-[18px] border shadow-xl shadow-neutral-900/20 dark:shadow-black/40",children:[t.img?l.jsx("img",{src:t.img,alt:"","aria-hidden":"true",className:"pointer-events-none absolute inset-0 h-full w-full object-cover"}):l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"pointer-events-none absolute inset-0",style:{...P,opacity:.2+n*.45,filter:"blur(18px)"},"aria-hidden":"true"}),l.jsx("div",{className:"pointer-events-none absolute inset-0",style:{...P,opacity:.55+n*.45},"aria-hidden":"true"})]}),S&&j&&l.jsxs("span",{className:`absolute top-2 left-1/2 z-10 flex max-w-[calc(100%-16px)] -translate-x-1/2 items-center gap-1 whitespace-nowrap rounded-full px-3 py-1 text-xs font-bold shadow ${S.className}`,children:[S.Icon&&l.jsx(S.Icon,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":"true"}),l.jsx("span",{className:"truncate",children:j})]}),l.jsxs("div",{className:"relative z-10 text-center",style:{padding:"34px 20px 0",gridRow:1},children:[l.jsx("div",{style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"30px",letterSpacing:"3px",fontWeight:600,color:t.accent,textTransform:"uppercase",lineHeight:1.1},children:l.jsx(ae,{entity:"packages",id:e.id,field:"name",lang:"de",value:e.name,placeholder:"Paketname"})}),l.jsx("div",{style:{width:"44px",height:"2px",margin:"14px auto 0",background:`linear-gradient(90deg, rgba(255,255,255,0) 0%, ${t.accent} 50%, rgba(255,255,255,0) 100%)`}})]}),s.length>0&&l.jsxs("div",{className:"relative z-10",style:{gridRow:2,padding:"18px 20px 14px",background:c?"linear-gradient(180deg, rgba(8,8,8,0.7) 0%, rgba(8,8,8,0.62) 94%, rgba(8,8,8,0) 100%)":"linear-gradient(180deg, rgba(8,8,8,0.55) 0%, rgba(8,8,8,0.48) 92%, rgba(8,8,8,0) 100%)"},children:[l.jsx(ec,{entity:"packages",id:e.id,field:"description",value:e.description,label:"Zusätzliche Stichpunkte",hint:"Eine Zeile = ein Stichpunkt (unter den Produkten). **fett** wird fett dargestellt. Die Produkte selbst pflegst du im Admin unter Pakete.",children:l.jsx("ul",{ref:v,className:"space-y-1.5 text-left",children:b.map((M,T)=>l.jsxs("li",{className:"flex items-start gap-2",style:{fontSize:"13px",color:op,...M.fromDescription?x:null},children:[l.jsx(Ey,{className:"mt-0.5 h-3.5 w-3.5 shrink-0",style:{color:t.accent}}),l.jsx("span",{"data-clamp":!0,className:"leading-snug",style:c?void 0:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:dN,overflow:"hidden"},children:M.fromDescription?l.jsx(eN,{text:M.text}):M.text})]},T))})}),(c||w>0||h)&&l.jsxs("button",{type:"button",onClick:()=>d(M=>!M),className:"mt-2.5 flex items-center gap-1 hover:opacity-80",style:{fontSize:"13px",color:t.accent},children:[c?u("modelPage.lessBullets"):w>0?u("modelPage.moreBullets")(w):u("modelPage.showMore"),c?l.jsx(RC,{className:"h-3.5 w-3.5"}):l.jsx(NC,{className:"h-3.5 w-3.5"})]})]}),s.length===0&&f&&l.jsx(ec,{entity:"packages",id:e.id,field:"description",value:e.description,label:"Zusätzliche Stichpunkte",hint:"Eine Zeile = ein Stichpunkt. **fett** wird fett dargestellt.",className:"relative z-10 mx-5 mt-4 text-center text-xs",style:{gridRow:2,color:op},children:"+ Stichpunkte hinzufügen"}),l.jsx("div",{className:"relative z-10 flex-1",style:{gridRow:3}}),l.jsx("div",{className:"relative z-10",style:{gridRow:4,padding:"20px 20px 28px",background:"linear-gradient(180deg, rgba(8,8,8,0) 0%, rgba(8,8,8,0.85) 45%, rgba(8,8,8,0.95) 100%)"},children:l.jsxs("div",{className:"text-center",children:[!e.price_text&&l.jsx("div",{style:{fontSize:"13px",color:ip},children:u("modelPage.totalPrice")}),l.jsx("div",{style:{marginTop:"4px",fontFamily:"'Barlow Condensed', sans-serif",fontSize:"30px",fontWeight:600,letterSpacing:"1px",color:cN,...e.price_text?y:null},children:f?l.jsx(ae,{entity:"packages",id:e.id,field:"price_text",value:e.price_text,placeholder:i(e.total_price),title:"Leer lassen = Preis automatisch aus den Produkten"}):e.price_text||i(e.total_price)}),!e.price_text&&a&&l.jsx("div",{style:{marginTop:"2px",fontSize:"11px",color:ip},children:a}),l.jsx(K,{to:o(e),onClick:()=>Tn("select_package",{package_name:e.name,value:Number(e.total_price)||void 0,currency:"EUR"}),className:"mt-4 inline-block rounded-md bg-brand-500 px-4 py-2 text-center text-sm font-semibold text-white shadow-lg shadow-brand-500/30 hover:bg-brand-400",children:u("modelPage.requestContact")}),e.video_url&&l.jsx("div",{className:"mt-3",children:l.jsxs("a",{href:e.video_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-full border border-white/15 bg-white/5 px-3 py-1 text-xs font-semibold text-white transition hover:bg-white/15",children:[l.jsx(IC,{className:"h-4 w-4 text-red-500","aria-hidden":"true"}),u("modelPage.videoLink")]})})]})})]})}function mN(){const{brandSlug:e,modelSlug:t}=Jc(),[n,r]=m.useState(null),[s,i]=m.useState(null),o=ba(),{t:a,language:u}=Se(),c=ot(),{package_card_theme:d,package_card_layout:f,package_wheel_hint_interval:h,package_card_width:p,package_card_height:v,phone:w,whatsapp:b,price_note:g,price_note_en:x}=Vt(),y=u==="en"&&x||g,k=sp[d]||sp.graphite,S=["grid","strip","coverflow"].includes(f)?f:"strip",E=Math.max(2,Number(h)||8)*1e3,j=m.useRef(null),P=m.useRef(null),M=m.useRef(null),[T,B]=m.useState(!1),H=C=>new Intl.NumberFormat(u==="de"?"de-DE":"en-US",{style:"currency",currency:"EUR"}).format(C);m.useEffect(()=>{o.vehicles.enabled&&!o.bypass||ue.get(`/models/${e}/${t}/packages`).then(r).catch(C=>i(C))},[e,t,o.vehicles.enabled,o.bypass]),m.useEffect(()=>{const C=j.current;if(S!=="coverflow"||!C)return;let R=0;const z=()=>{R=0;const se=C.scrollLeft+C.clientWidth/2;for(const je of C.children){const Re=je.offsetLeft+je.offsetWidth/2,St=Math.max(-1,Math.min(1,(Re-se)/(je.offsetWidth*1.4))),_=Math.abs(St);je.style.transform=`rotateY(${(-St*35).toFixed(2)}deg) scale(${(1-_*.13).toFixed(3)}) translateZ(${(-_*60).toFixed(1)}px)`,je.style.zIndex=String(100-Math.round(_*50))}},W=()=>{R||(R=requestAnimationFrame(z))};z(),C.addEventListener("scroll",W,{passive:!0});const te=new ResizeObserver(W);return te.observe(C),()=>{C.removeEventListener("scroll",W),te.disconnect(),cancelAnimationFrame(R)}},[S,n]),m.useEffect(()=>{const C=j.current;if(S==="grid"||!C)return;const R=window.matchMedia("(pointer: coarse)").matches;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let W=[],te=0;const se=()=>{const Re=Math.min(C.clientWidth*.4,160);W.push(setTimeout(()=>C.scrollTo({left:Re,behavior:"smooth"}),500)),W.push(setTimeout(()=>C.scrollTo({left:0,behavior:"smooth"}),1250)),R||(W.push(setTimeout(()=>B(!0),450)),W.push(setTimeout(()=>B(!1),1700)))},je=new IntersectionObserver(([Re])=>{Re.isIntersecting&&(je.disconnect(),se(),te=setInterval(()=>{C.scrollLeft<=1&&se()},E))},{threshold:.35});return je.observe(C),()=>{je.disconnect(),clearInterval(te),W.forEach(clearTimeout)}},[S,n,E]),m.useEffect(()=>{const C=j.current;if(S==="grid"||!C)return;let R=0,z=0,W=!1,te=0,se=0;const je=()=>[...C.children].map(V=>V.offsetLeft+V.offsetWidth/2),Re=(V,Pe)=>{let Ve=0,oe=1/0;return V.forEach((ve,mt)=>{const In=Math.abs(ve-Pe);In<oe&&(oe=In,Ve=mt)}),Ve},St=()=>{W=!1;const V=je();if(!V.length)return;const Pe=C.scrollLeft+C.clientWidth/2,Ve=Re(V,Pe);let oe=Ve;Ve===te&&Math.abs(se)>4&&(oe=se>0?Math.min(te+1,V.length-1):Math.max(te-1,0));const ve=C.scrollWidth-C.clientWidth,mt=Math.max(0,Math.min(V[oe]-C.clientWidth/2,ve));C.scrollTo({left:mt,behavior:"smooth"}),clearTimeout(z),z=setTimeout(()=>{C.style.scrollSnapType=""},450)},_=V=>{if(Math.abs(V.deltaX)>Math.abs(V.deltaY))return;const Pe=C.scrollWidth-C.clientWidth;if(Pe<=1)return;const Ve=C.scrollLeft<=1,oe=C.scrollLeft>=Pe-1;V.deltaY<0&&Ve||V.deltaY>0&&oe||(V.preventDefault(),W||(W=!0,se=0,te=Re(je(),C.scrollLeft+C.clientWidth/2)),se+=V.deltaY,C.style.scrollSnapType="none",C.scrollLeft+=V.deltaY,clearTimeout(R),R=setTimeout(St,150))};return C.addEventListener("wheel",_,{passive:!1}),()=>{C.removeEventListener("wheel",_),clearTimeout(R),clearTimeout(z)}},[S,n]),m.useEffect(()=>{const C=j.current,R=P.current,z=M.current;if(S==="grid"||!C||!R||!z)return;let W=0;const te=()=>{W=0;const oe=C.scrollWidth-C.clientWidth;if(oe<=1){R.style.opacity="0",R.style.pointerEvents="none";return}R.style.opacity="1",R.style.pointerEvents="auto";const ve=R.clientWidth,mt=Math.max(32,C.clientWidth/C.scrollWidth*ve);z.style.width=`${mt}px`,z.style.transform=`translateX(${(C.scrollLeft/oe*(ve-mt)).toFixed(1)}px)`},se=()=>{W||(W=requestAnimationFrame(te))};te(),C.addEventListener("scroll",se,{passive:!0});const je=new ResizeObserver(se);je.observe(C);let Re=!1,St=0;const _=oe=>{const ve=R.getBoundingClientRect(),mt=z.clientWidth,In=Math.min(Math.max(oe-ve.left-St,0),ve.width-mt);C.scrollLeft=In/(ve.width-mt)*(C.scrollWidth-C.clientWidth)},V=oe=>{Re=!0,R.setPointerCapture(oe.pointerId),C.style.scrollSnapType="none";const ve=z.getBoundingClientRect();St=oe.clientX>=ve.left&&oe.clientX<=ve.right?oe.clientX-ve.left:z.clientWidth/2,oe.clientX>=ve.left&&oe.clientX<=ve.right||_(oe.clientX)},Pe=oe=>{Re&&_(oe.clientX)},Ve=oe=>{var ve;Re&&(Re=!1,(ve=R.hasPointerCapture)!=null&&ve.call(R,oe.pointerId)&&R.releasePointerCapture(oe.pointerId),C.style.scrollSnapType="")};return R.addEventListener("pointerdown",V),R.addEventListener("pointermove",Pe),R.addEventListener("pointerup",Ve),R.addEventListener("pointercancel",Ve),()=>{C.removeEventListener("scroll",se),je.disconnect(),cancelAnimationFrame(W),R.removeEventListener("pointerdown",V),R.removeEventListener("pointermove",Pe),R.removeEventListener("pointerup",Ve),R.removeEventListener("pointercancel",Ve)}},[S,n]),ur({title:n?a("modelPage.metaTitle")(n.model.brand_name,n.model.name):a("modelPage.metaTitleFallback"),description:n?a("modelPage.metaDescription")(n.model.brand_name,n.model.name):void 0,path:`/fahrzeuge/${e}/${t}`});const ee=He(n?`car_models.${n.model.id}.name`:"");if(o.vehicles.enabled&&!o.bypass)return l.jsx(mi,{message:o.vehicles.message});if(s)return s.status===404?l.jsx(Hd,{}):l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-red-600 sm:px-6",children:Sa(s,a)});if(!n)return l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-neutral-500 sm:px-6",children:a("modelPage.loading")});const{model:U}=n,G=n.packages.map(C=>({...C,name:c.getValue("packages",C.id,"name","de",C.name),description:c.getValue("packages",C.id,"description",u,Nn(C,"description",u)),tagline:Nn(C,"tagline",u),price_text:c.getValue("packages",C.id,"price_text",u,Nn(C,"price_text",u))})),q=new Map([...G].sort((C,R)=>C.total_price-R.total_price).map((C,R)=>[C.id,R])),ie=C=>{const R=C.tier_count??G.length,z=C.tier_rank??q.get(C.id)??0,W=R<=1?0:z/(R-1),te=Math.round(W*(k.length-1));return{tier:k[te],tierT:W}},N=C=>[...C.products.map(R=>({text:R.name_override||R.scraped_name||a("modelPage.productLoading"),fromDescription:!1})),...(C.description||"").split(`
`).map(R=>R.trim()).filter(Boolean).map(R=>({text:R,fromDescription:!0}))],A=C=>`/kontakt?${new URLSearchParams({brand:U.brand_name,model:U.name,package:C.name,packageId:C.id,total:C.total_price,brandSlug:e,modelSlug:t}).toString()}`,L=`/kontakt?${new URLSearchParams({brand:U.brand_name,model:U.name}).toString()}`,F=a("modelPage.whatsappText")(U.brand_name,U.name);return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"mx-auto max-w-6xl px-4 pt-12 sm:px-6",children:[o.vehicles.enabled&&o.bypass&&l.jsx(pi,{inline:!0}),l.jsxs("p",{className:"mb-1 text-sm text-neutral-500 dark:text-neutral-400",children:[l.jsx(K,{to:"/fahrzeuge",className:"hover:text-brand-500",children:a("modelPage.breadcrumbVehicles")})," /"," ",l.jsx(K,{to:`/fahrzeuge/${e}`,className:"hover:text-brand-500",children:U.brand_name})," / ",l.jsx("span",{style:ee,children:U.name})]}),l.jsxs("h1",{className:`text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl ${G.length?"mb-2":"mb-8"}`,children:[U.brand_name," ",l.jsx(ae,{entity:"car_models",id:U.id,field:"name",lang:"de",value:U.name,style:ee})," – ",a("modelPage.titleSuffix")]}),G.length===0&&l.jsxs("div",{className:"pb-12",children:[l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:a("modelPage.empty")}),l.jsx(K,{to:L,className:"mt-5 inline-block rounded-md bg-brand-500 px-5 py-3 text-sm font-semibold text-white shadow-sm hover:bg-brand-600",children:a("modelPage.customRequest")})]})]}),G.length>0&&l.jsx("section",{className:"py-10 sm:py-14",style:{fontFamily:"'Barlow', sans-serif"},children:l.jsxs("div",{className:S==="grid"?"mx-auto max-w-6xl px-4 sm:px-6":"relative mx-auto max-w-[1880px] px-4 sm:px-6",children:[l.jsx("div",{ref:S==="grid"?void 0:j,className:S==="grid"?"grid items-stretch gap-[18px]":"grid select-none gap-x-[18px] overflow-x-auto pb-3 snap-x snap-mandatory [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",style:S==="grid"?{gridTemplateColumns:`repeat(auto-fill, minmax(${p}px, 1fr))`,gridAutoRows:"1fr"}:{gridAutoFlow:"column",gridAutoColumns:`${p}px`,gridTemplateRows:"auto auto 1fr auto",minHeight:`${Number(v)+(S==="coverflow"?22:12)}px`,...S==="coverflow"?{perspective:"1200px",paddingLeft:`calc(50% - ${p/2}px)`,paddingRight:`calc(50% - ${p/2}px)`,paddingTop:"10px"}:null},children:G.map(C=>{const{tier:R,tierT:z}=ie(C);return l.jsx(hN,{pkg:C,tier:R,tierT:z,layout:S,bullets:N(C),formatPrice:H,contactUrl:A,priceNote:y,t:a},C.id)})}),S!=="grid"&&l.jsx("div",{className:`pointer-events-none absolute inset-x-0 top-1/2 z-[200] flex -translate-y-1/2 justify-center transition-opacity duration-300 ${T?"opacity-100":"opacity-0"}`,"aria-hidden":"true",children:l.jsxs("div",{className:"flex items-center gap-2 rounded-full border border-white/10 bg-neutral-900/85 px-4 py-2 text-xs font-medium text-white shadow-lg backdrop-blur-sm",children:[l.jsx(MC,{className:"h-3.5 w-3.5 text-brand-400"}),l.jsx(rE,{className:"h-4 w-4 text-brand-400"}),l.jsx(AC,{className:"h-3.5 w-3.5 text-brand-400"}),l.jsx("span",{children:a("modelPage.wheelHint")})]})}),S!=="grid"&&l.jsx("div",{ref:P,className:"relative mx-auto mt-5 h-2 w-56 max-w-full cursor-pointer rounded-full bg-neutral-900/10 transition-opacity duration-200 dark:bg-white/10",style:{touchAction:"none"},"aria-hidden":"true",children:l.jsx("div",{ref:M,className:"absolute left-0 top-0 h-full rounded-full bg-brand-500 shadow-[0_0_10px_rgba(107,166,38,0.7)]",style:{width:"48px"}})})]})}),G.length>0&&l.jsxs("div",{className:"mx-auto max-w-6xl px-4 pb-24 text-center sm:px-6 sm:pb-14",children:[l.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-300",children:a("modelPage.customHint")}),l.jsx(K,{to:L,className:"mt-2 inline-block text-sm font-semibold text-brand-600 underline hover:text-brand-500",children:a("modelPage.customRequest")})]}),(w||b)&&l.jsxs("div",{className:"fixed inset-x-0 bottom-0 z-20 flex gap-3 border-t border-neutral-200 bg-white/95 px-4 py-3 shadow-[0_-8px_24px_rgba(0,0,0,0.08)] backdrop-blur dark:border-neutral-800 dark:bg-neutral-950/95 sm:hidden",children:[w&&l.jsxs("a",{href:Vd(w),onClick:()=>Tn("contact_call"),className:"flex flex-1 items-center justify-center gap-2 rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white",children:[l.jsx(Kr,{className:"h-4 w-4"}),a("nav.call")]}),b&&l.jsxs("a",{href:Id(b,F),target:"_blank",rel:"noopener noreferrer",onClick:()=>Tn("contact_whatsapp"),className:"flex flex-1 items-center justify-center gap-2 rounded-md border border-neutral-300 px-4 py-2.5 text-sm font-semibold text-neutral-700 dark:border-neutral-700 dark:text-neutral-200",children:[l.jsx(_y,{className:"h-4 w-4"}),a("nav.whatsapp")]})]})]})}const pN={car:qo,caravan:CC,"car-front":SC,cog:zC,zap:CE,boxes:bC,"shield-alert":pE,video:SE},gN=m.lazy(()=>X(()=>import("./iconRegistry-H4l5YZoi.js"),__vite__mapDeps([0,1,2,3,4])));function xN({name:e,className:t="h-6 w-6",...n}){if(!e)return null;const r=pN[e];return r?l.jsx(r,{className:t,...n}):l.jsx(m.Suspense,{fallback:l.jsx("span",{className:`inline-block ${t}`,"aria-hidden":"true"}),children:l.jsx(gN,{name:e,className:t,...n})})}function yN(){const[e,t]=m.useState([]),n=ba(),{t:r,language:s}=Se(),i=ot();return m.useEffect(()=>{ue.get("/services").then(t).catch(()=>t([]))},[]),ur({title:r("leistungen.metaTitle"),description:r("leistungen.metaDescription"),path:"/leistungen"}),n.services.enabled&&!n.bypass?l.jsx(mi,{message:n.services.message}):l.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[n.services.enabled&&n.bypass&&l.jsx(pi,{inline:!0}),l.jsx(Ue,{k:"leistungen.title",as:"h1",className:"mb-2 block text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl"}),l.jsx(Ue,{k:"leistungen.intro",as:"p",className:"mb-10 block max-w-2xl text-neutral-600 dark:text-neutral-300"}),l.jsx("div",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:e.map(o=>({...o,title:Nn(o,"title",s),description:Nn(o,"description",s),cta_label:Nn(o,"cta_label",s)})).map((o,a)=>l.jsxs($e,{index:a%3,shine:!0,className:"overflow-hidden rounded-xl border border-neutral-200 bg-white dark:border-neutral-800 dark:bg-neutral-900",children:[l.jsxs("div",{className:"relative aspect-[4/3]",children:[o.image_path&&l.jsx("img",{src:o.image_path,alt:o.title,className:"h-full w-full object-cover",loading:"lazy"}),l.jsx("div",{className:"absolute -bottom-5 left-5 flex h-12 w-12 items-center justify-center rounded-full bg-brand-500 text-white shadow-lg ring-4 ring-white dark:ring-neutral-900",children:l.jsx(xN,{name:o.icon_name,className:"h-6 w-6"})})]}),l.jsxs("div",{className:"p-6 pt-8",children:[l.jsx(ae,{entity:"services",id:o.id,field:"title",value:o.title,as:"h2",className:"mb-2 block font-semibold text-neutral-900 dark:text-white"}),l.jsx(ae,{entity:"services",id:o.id,field:"description",value:o.description,as:"p",multiline:!0,className:"mb-3 block text-sm text-neutral-600 dark:text-neutral-300"}),l.jsxs(K,{to:o.cta_url||"/kontakt",className:"text-sm font-semibold text-brand-600 hover:underline dark:text-brand-400",children:[i.canEdit("services")||o.cta_label?l.jsx(ae,{entity:"services",id:o.id,field:"cta_label",value:o.cta_label,placeholder:r("leistungen.contact")}):r("leistungen.contact")," ","→"]})]})]},o.id))}),l.jsxs("div",{className:"mt-12 rounded-xl border border-neutral-200 bg-neutral-50 p-8 text-center dark:border-neutral-800 dark:bg-neutral-900/40",children:[l.jsx(Ue,{k:"leistungen.notListedTitle",as:"h2",className:"mb-2 block text-xl font-bold text-neutral-900 dark:text-white"}),l.jsx(Ue,{k:"leistungen.notListedText",as:"p",className:"mb-5 block text-neutral-600 dark:text-neutral-300"}),l.jsx(K,{to:"/kontakt",className:"inline-block rounded-md bg-brand-500 px-6 py-3 text-sm font-semibold text-white hover:bg-brand-600",children:l.jsx(Ue,{k:"leistungen.contact"})})]})]})}function vN({name:e,description:t,className:n="",children:r}){const{consent:s,acceptAll:i,openSettings:o}=ns();return s.external?r:l.jsxs("div",{className:`flex flex-col items-center justify-center gap-3 rounded-xl border border-neutral-200 bg-neutral-50 p-6 text-center dark:border-neutral-800 dark:bg-neutral-900/40 ${n}`,children:[l.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-300",children:t||`${e} wird erst nach deiner Zustimmung geladen, da dabei Daten an Google übertragen werden.`}),l.jsxs("div",{className:"flex flex-wrap justify-center gap-2",children:[l.jsx("button",{type:"button",onClick:i,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:"Laden erlauben"}),l.jsx("button",{type:"button",onClick:o,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Cookie-Einstellungen"})]})]})}const wN=e=>(e||"").replace(/[^\d+]/g,""),uo={fontFamily:"'Michroma', sans-serif"};function bN({className:e}){return l.jsx("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:l.jsx("path",{d:"M12 2a10 10 0 0 0-8.6 15l-1.3 4.8 5-1.3A10 10 0 1 0 12 2zm0 2a8 8 0 1 1-4.2 14.8l-.3-.2-2.6.7.7-2.5-.2-.3A8 8 0 0 1 12 4zm4.3 9.9c-.2-.1-1.4-.7-1.6-.8s-.4-.1-.5.1l-.7.9c-.1.1-.3.2-.5.1a6.5 6.5 0 0 1-3.2-2.8c-.1-.2 0-.4.1-.5l.4-.5.2-.4v-.4l-.7-1.7c-.2-.4-.4-.4-.5-.4h-.5c-.2 0-.4.1-.6.3-.7.7-.9 1.6-.6 2.7.5 1.7 1.6 3.1 3.4 4.2 1.7 1 2.5 1 3.4.9.5-.1 1.4-.6 1.6-1.1.2-.5.2-1 .1-1.1z"})})}function kN({path:e,className:t}){return l.jsx("svg",{className:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:l.jsx("path",{d:e})})}const SN={premium:"M4 12v3M8 8v11M12 4v16M16 8v11M20 12v3",germany:"M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0 M12 2v2M12 20v2M2 12h2M20 12h2M5 5l1.5 1.5M17.5 17.5 19 19M19 5l-1.5 1.5M6.5 17.5 5 19",individual:"M6 3h12l4 6-10 12L2 9z M11 3 8 9l4 12 4-12-3-6M2 9h20",experts:"M20 6 9 17l-5-5"};function lp({formatted:e,color:t}){const[n,r]=e.split("€");return l.jsxs("span",{style:{...uo,color:t},children:[n,l.jsx("span",{style:{fontFamily:"'Barlow', sans-serif"},children:"€"}),r]})}function Bi({icon:e,label:t,name:n,type:r="text",required:s,value:i,onChange:o,placeholder:a,autoComplete:u,inputMode:c}){return l.jsxs("div",{className:"flex flex-col gap-2",children:[l.jsx("label",{htmlFor:`kf-${n}`,className:"text-xs font-semibold uppercase tracking-[2px]",style:{color:"var(--kf-label)"},children:t}),l.jsxs("div",{className:"relative flex items-center",children:[l.jsx(e,{className:"pointer-events-none absolute left-[14px] h-[17px] w-[17px]",style:{color:"var(--kf-fieldicon)"}}),l.jsx("input",{id:`kf-${n}`,name:n,type:r,required:s,autoComplete:u,inputMode:c,value:i,onChange:o,placeholder:a,className:"w-full rounded-lg border py-3.5 pl-[42px] pr-4 text-[15px] outline-none transition-colors",style:{background:"var(--kf-field)",borderColor:"var(--kf-fieldbrd)",color:"var(--kf-text2)"}})]})]})}function jN(){const[e]=Lb(),{phone:t,whatsapp:n,contact_email:r,address_street:s,address_zip:i,address_city:o,business_hours:a,price_note:u,price_note_en:c}=Vt(),{t:d,language:f}=Se(),{consent:h}=ns(),p=[s,[i,o].filter(Boolean).join(" ")].filter(Boolean).join(", "),v=encodeURIComponent(p),w=`https://www.google.com/maps/dir/?api=1&destination=${v}`,b=zy(a,d("footer.closed")),g=_=>new Intl.NumberFormat(f==="de"?"de-DE":"en-US",{style:"currency",currency:"EUR"}).format(_),[x,y]=m.useState(()=>({name:"",email:"",phone:"",vin:"",message:e.get("topic")||""})),[k,S]=m.useState("idle"),[E,j]=m.useState(""),[P,M]=m.useState([]),[T,B]=m.useState([]),H=m.useRef(Date.now()),ee=m.useRef(null),U=e.get("packageId"),G=e.get("brandSlug"),q=e.get("modelSlug"),[ie,N]=m.useState(e.get("total")?Number(e.get("total")):null),[A,L]=m.useState(null),F=f==="en"&&c||u;m.useEffect(()=>{!U||!G||!q||ue.get(`/models/${encodeURIComponent(G)}/${encodeURIComponent(q)}/packages`).then(_=>{var Pe;const V=(Pe=_==null?void 0:_.packages)==null?void 0:Pe.find(Ve=>String(Ve.id)===String(U));V&&(N(Number(V.total_price)),L(V.price_text||null))}).catch(()=>{})},[U,G,q]),m.useEffect(()=>{if(!U){M([]);return}ue.get(`/packages/${U}/upgrades`).then(M).catch(()=>M([]))},[U]);const C=_=>{B(V=>V.includes(_)?V.filter(Pe=>Pe!==_):[...V,_])},R=P.filter(_=>T.includes(_.id)).reduce((_,V)=>_+Number(V.price),0);ur({title:d("contactPage.metaTitle"),description:d("contactPage.metaDescription"),path:"/kontakt"});const z={brand:e.get("brand")||"",model:e.get("model")||"",package:e.get("package")||""},W=!!(z.brand&&z.model&&z.package),te=!W&&!!(z.brand&&z.model),se=_=>y(V=>({...V,[_.target.name]:_.target.value})),je=async _=>{var V;_.preventDefault(),S("sending"),j("");try{await ue.post("/contact",{...x,website:((V=_.target.elements.website)==null?void 0:V.value)||"",fill_ms:Date.now()-H.current,brand_name:z.brand||null,model_name:z.model||null,package_name:z.package||null,product_name:e.get("product")||null,package_id:U||null,package_product_id:e.get("productId")||null,upgrade_ids:T}),S("sent"),y({name:"",email:"",phone:"",vin:"",message:""}),Tn("generate_lead",{package_name:z.package||void 0,value:ie||void 0,currency:"EUR"})}catch(Pe){j(Sa(Pe,d)),S("idle")}};m.useEffect(()=>{k==="sent"&&ee.current&&(ee.current.scrollIntoView({behavior:"smooth",block:"center"}),ee.current.focus({preventScroll:!0}))},[k]);const Re=W?d("contactPage.whatsappText")(z.brand,z.model,z.package):te?d("modelPage.whatsappText")(z.brand,z.model):"",St=[{key:"premium",title:d("contactPage.featurePremiumTitle"),sub:d("contactPage.featurePremiumSub")},{key:"germany",title:d("contactPage.featureGermanyTitle"),sub:d("contactPage.featureGermanySub")},{key:"individual",title:d("contactPage.featureIndividualTitle"),sub:d("contactPage.featureIndividualSub")},{key:"experts",title:d("contactPage.featureExpertsTitle"),sub:d("contactPage.featureExpertsSub")}];return l.jsx("div",{className:"kf-page kontakt-sektion relative w-full overflow-hidden px-4 pb-10 sm:px-10",style:{color:"var(--kf-text2)",fontFamily:"'Barlow', sans-serif"},children:l.jsxs("div",{className:"relative z-10 mx-auto max-w-[1280px] pt-10 sm:pt-14",children:[l.jsx("div",{className:"mb-3 text-[13px] font-semibold uppercase tracking-[6px]",style:{color:"var(--kf-accent2)"},children:d("contactPage.heroEyebrow")}),l.jsxs("h1",{className:"text-[34px] leading-[1.08] sm:text-[46px] lg:text-[60px]",style:{...uo,color:"var(--kf-text)"},children:[d("contactPage.heroTitlePre")," ",l.jsx("span",{style:{color:"var(--kf-accent2)"},children:d("contactPage.heroTitleAccent")})," ",d("contactPage.heroTitlePost")]}),l.jsx("p",{className:"mb-10 mt-5 max-w-[520px] text-lg leading-[1.55]",style:{color:"var(--kf-muted)"},children:d("contactPage.heroSubtitle")}),l.jsxs("div",{className:"grid grid-cols-1 items-start gap-10 min-[981px]:grid-cols-[minmax(0,1.35fr)_minmax(320px,1fr)]",children:[l.jsx("div",{children:l.jsxs("div",{className:"rounded-2xl border p-[22px] sm:p-10",style:{background:"var(--kf-card)",borderColor:"var(--kf-cardbrd)",boxShadow:"var(--kf-shadow)"},children:[W&&l.jsxs("div",{className:"mb-8 rounded-xl border px-6 py-[22px]",style:{background:"var(--kf-pkgbg)",borderColor:"var(--kf-pkgbrd)"},children:[l.jsxs("div",{className:"mb-3.5 flex items-center gap-2.5 text-xs font-bold uppercase tracking-[2px]",style:{color:"var(--kf-accent2)"},children:[l.jsx(aE,{className:"h-4 w-4"}),d("contactPage.packageBoxTitle")]}),l.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-5 gap-y-2 text-[15px]",children:[l.jsx("span",{style:{color:"var(--kf-label)"},children:d("contactPage.contextBrand")}),l.jsx("span",{className:"font-semibold",style:{color:"var(--kf-text2)"},children:z.brand}),l.jsx("span",{style:{color:"var(--kf-label)"},children:d("contactPage.contextModel")}),l.jsx("span",{className:"font-semibold",style:{color:"var(--kf-text2)"},children:z.model}),l.jsx("span",{style:{color:"var(--kf-label)"},children:d("contactPage.contextPackage")}),l.jsx("span",{className:"font-semibold",style:{color:"var(--kf-text2)"},children:z.package})]}),l.jsxs("div",{className:"mt-3.5 flex items-baseline justify-between border-t pt-3.5",style:{borderColor:"var(--kf-pkgbrd)"},children:[l.jsx("span",{className:"text-[13px] font-semibold uppercase tracking-wide",style:{color:"var(--kf-muted)"},children:d("contactPage.packagePrice")}),l.jsx("span",{className:"text-xl",children:A||(ie!=null?l.jsx(lp,{formatted:g(ie),color:"var(--kf-text)"}):"—")})]}),F&&!A&&l.jsx("div",{className:"mt-1 text-right text-xs",style:{color:"var(--kf-muted)"},children:F})]}),te&&l.jsxs("div",{className:"mb-8 flex items-center gap-3 rounded-xl border px-6 py-4 text-[15px]",style:{background:"var(--kf-pkgbg)",borderColor:"var(--kf-pkgbrd)"},children:[l.jsx(qo,{className:"h-4 w-4",style:{color:"var(--kf-accent2)"}}),l.jsx("span",{style:{color:"var(--kf-label)"},children:d("contactPage.vehicleBoxTitle")}),l.jsxs("span",{className:"font-semibold",style:{color:"var(--kf-text2)"},children:[z.brand," ",z.model]})]}),P.length>0&&l.jsxs("div",{className:"mb-8 rounded-xl border p-5",style:{background:"var(--kf-field)",borderColor:"var(--kf-fieldbrd)"},children:[l.jsx("div",{className:"mb-3 text-xs font-bold uppercase tracking-[2px]",style:{color:"var(--kf-accent2)"},children:d("contactPage.optionalUpgrades")}),l.jsx("div",{className:"space-y-2",children:P.map(_=>l.jsxs("label",{className:"flex cursor-pointer items-start gap-3 rounded-lg border p-3 text-sm",style:{borderColor:"var(--kf-fieldbrd)"},children:[l.jsx("input",{type:"checkbox",checked:T.includes(_.id),onChange:()=>C(_.id),className:"mt-0.5 h-4 w-4 rounded",style:{accentColor:"var(--kf-accent)"}}),l.jsxs("span",{className:"flex-1",children:[l.jsx("span",{className:"block font-semibold",style:{color:"var(--kf-text2)"},children:Nn(_,"name",f)}),_.description&&l.jsx("span",{className:"block text-xs",style:{color:"var(--kf-muted)"},children:Nn(_,"description",f)})]}),l.jsxs("span",{className:"font-semibold",style:{color:"var(--kf-accent2)"},children:["+",g(_.price)]})]},_.id))}),T.length>0&&ie!=null&&!A&&l.jsxs("div",{className:"mt-3 flex items-baseline justify-between border-t pt-3 text-sm",style:{borderColor:"var(--kf-pkgbrd)"},children:[l.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide",style:{color:"var(--kf-muted)"},children:d("contactPage.totalWithUpgrades")}),l.jsx(lp,{formatted:g(ie+R),color:"var(--kf-text)"})]})]}),l.jsx("h2",{className:"mb-8 text-xl",style:{...uo,color:"var(--kf-text)"},children:d("contactPage.formTitle")}),l.jsx("div",{role:"status","aria-live":"polite",children:k==="sent"&&l.jsxs("div",{ref:ee,tabIndex:-1,className:"rounded-[10px] border p-5 outline-none",style:{borderColor:"var(--kf-accent)",background:"var(--kf-accentsoft)"},children:[l.jsx("div",{className:"text-base font-bold",style:{color:"var(--kf-accent2)"},children:d("contactPage.sentTitle")}),l.jsx("div",{className:"mt-1 text-sm",style:{color:"var(--kf-muted)"},children:d("contactPage.sentText")}),l.jsx("button",{type:"button",onClick:()=>{H.current=Date.now(),S("idle")},className:"mt-4 text-sm font-semibold underline",style:{color:"var(--kf-text2)"},children:d("contactPage.sendAnother")})]})}),k!=="sent"&&l.jsxs("form",{onSubmit:je,noValidate:!1,children:[l.jsxs("div",{"aria-hidden":"true",style:{position:"absolute",left:"-10000px",width:"1px",height:"1px",overflow:"hidden"},children:[l.jsx("label",{htmlFor:"kf-website",children:"Website"}),l.jsx("input",{id:"kf-website",name:"website",type:"text",tabIndex:-1,autoComplete:"off",defaultValue:""})]}),l.jsxs("div",{className:"grid grid-cols-1 gap-6 min-[641px]:grid-cols-2",children:[l.jsx(Bi,{icon:bE,label:d("contactPage.nameLabel"),name:"name",autoComplete:"name",required:!0,value:x.name,onChange:se,placeholder:d("contactPage.namePlaceholder")}),l.jsx(Bi,{icon:Zu,label:d("contactPage.emailLabel"),name:"email",type:"email",autoComplete:"email",required:!0,value:x.email,onChange:se,placeholder:d("contactPage.emailPlaceholder")}),l.jsx(Bi,{icon:Kr,label:d("contactPage.phoneLabel"),name:"phone",type:"tel",inputMode:"tel",autoComplete:"tel",value:x.phone,onChange:se,placeholder:d("contactPage.phonePlaceholder")}),l.jsx(Bi,{icon:qo,label:d("contactPage.vinLabel"),name:"vin",value:x.vin,onChange:se,placeholder:d("contactPage.vinPlaceholder")})]}),l.jsxs("div",{className:"mt-6 flex flex-col gap-2",children:[l.jsx("label",{htmlFor:"kf-message",className:"text-xs font-semibold uppercase tracking-[2px]",style:{color:"var(--kf-label)"},children:d("contactPage.messageLabel")}),l.jsx("textarea",{id:"kf-message",name:"message",rows:5,value:x.message,onChange:se,placeholder:d("contactPage.messagePlaceholder"),className:"w-full resize-y rounded-lg border px-4 py-3.5 text-[15px] outline-none",style:{background:"var(--kf-field)",borderColor:"var(--kf-fieldbrd)",color:"var(--kf-text2)"}})]}),l.jsx("div",{role:"alert","aria-live":"assertive",children:E&&l.jsx("p",{className:"mt-4 text-sm text-red-600 dark:text-red-400",children:E})}),l.jsxs("div",{className:"mt-8 flex flex-wrap items-center gap-5",children:[l.jsxs("button",{type:"submit",disabled:k==="sending",className:"inline-flex items-center gap-3 rounded-lg px-8 py-4 text-sm font-bold uppercase tracking-[3px] transition-[filter,box-shadow] hover:brightness-110 disabled:opacity-60",style:{background:"var(--kf-accent)",color:"var(--kf-btntext)",boxShadow:"0 10px 24px rgba(150,200,20,0.32)"},children:[l.jsx(hE,{className:"h-[18px] w-[18px]"}),d(k==="sending"?"contactPage.sending":"contactPage.submit")]}),l.jsx("div",{className:"text-[13px]",style:{color:"var(--kf-label)"},children:d("contactPage.requiredHint")})]}),l.jsxs("p",{className:"mt-5 text-[13px] leading-relaxed",style:{color:"var(--kf-muted)"},children:[d("contactPage.privacyPre"),l.jsx(K,{to:"/datenschutz",className:"underline",style:{color:"var(--kf-text2)"},children:d("contactPage.privacyLink")}),d("contactPage.privacyPost")]})]})]})}),l.jsxs("div",{className:"flex flex-col gap-6",children:[l.jsxs("div",{className:"relative overflow-hidden rounded-2xl border px-[22px] py-[26px] sm:px-8 sm:py-[34px]",style:{background:"var(--kf-card)",borderColor:"var(--kf-cardbrd)",boxShadow:"var(--kf-shadow)"},children:[l.jsx("div",{className:"pointer-events-none absolute -right-[60px] -top-[60px] h-[190px] w-[190px] rounded-full border border-dashed",style:{borderColor:"var(--kf-pkgbrd)"}}),l.jsx("h2",{className:"mb-7 text-[17px]",style:{...uo,color:"var(--kf-text)"},children:d("contactPage.cardTitle")}),l.jsxs("div",{className:"flex flex-col gap-5",children:[l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full",style:{background:"var(--kf-accentsoft)"},children:l.jsx(Kr,{className:"h-[18px] w-[18px]",style:{color:"var(--kf-accent2)"}})}),l.jsxs("div",{children:[l.jsx("div",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:d("contactPage.phone")}),l.jsx("a",{href:`tel:${wN(t)}`,onClick:()=>Tn("contact_call"),className:"text-base font-semibold",style:{color:"var(--kf-text2)"},children:t})]})]}),l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full",style:{background:"var(--kf-accentsoft)"},children:l.jsx(Zu,{className:"h-[18px] w-[18px]",style:{color:"var(--kf-accent2)"}})}),l.jsxs("div",{children:[l.jsx("div",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:d("contactPage.email")}),l.jsx("a",{href:`mailto:${r}`,className:"text-base font-semibold",style:{color:"var(--kf-text2)"},children:r})]})]}),l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full",style:{background:"var(--kf-accentsoft)"},children:l.jsx(Ny,{className:"h-[18px] w-[18px]",style:{color:"var(--kf-accent2)"}})}),l.jsxs("div",{children:[l.jsx("div",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:d("contactPage.address")}),l.jsxs("div",{className:"text-base font-semibold leading-[1.4]",style:{color:"var(--kf-text2)"},children:[s,l.jsx("br",{}),[i,o].filter(Boolean).join(" ")]})]})]}),n&&l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full",style:{background:"var(--kf-accentsoft)"},children:l.jsx(bN,{className:"h-[18px] w-[18px]",style:{color:"var(--kf-accent2)"}})}),l.jsxs("div",{children:[l.jsx("div",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:d("nav.whatsapp")}),l.jsx("a",{href:Id(n,Re),target:"_blank",rel:"noopener noreferrer",onClick:()=>Tn("contact_whatsapp"),className:"text-base font-semibold",style:{color:"var(--kf-text2)"},children:n})]})]})]}),l.jsxs("div",{className:"mt-7 border-t pt-6",style:{borderColor:"var(--kf-divider)"},children:[l.jsx("div",{className:"mb-3 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:d("contactPage.hours")}),l.jsx("div",{className:"grid grid-cols-[auto_1fr] gap-x-6 gap-y-2 text-[15px]",children:b.map(_=>l.jsxs("span",{style:{display:"contents"},children:[l.jsx("span",{style:{color:"var(--kf-label)"},children:_.days}),l.jsx("span",{children:_.label})]},_.key))})]})]}),l.jsxs("div",{className:"relative overflow-hidden rounded-2xl border",style:{background:"var(--kf-card)",borderColor:"var(--kf-cardbrd)",boxShadow:"var(--kf-shadow)"},children:[h.external&&l.jsxs("a",{href:w,target:"_blank",rel:"noopener noreferrer",className:"absolute left-3.5 top-3.5 z-10 inline-flex items-center gap-2 rounded-lg border px-3.5 py-2 text-[13px] font-semibold hover:border-[var(--kf-accent)]",style:{background:"var(--kf-pill)",borderColor:"var(--kf-pillbrd)",color:"var(--kf-text2)",boxShadow:"var(--kf-shadow2)"},children:[d("contactPage.mapOpenChip"),l.jsx($C,{className:"h-3.5 w-3.5",style:{color:"var(--kf-accent2)"}})]}),l.jsx(vN,{name:d("contactPage.mapEmbedName"),className:"h-[210px] w-full",children:l.jsx("div",{className:"h-[210px] overflow-hidden",children:l.jsx("iframe",{title:d("contactPage.mapIframeTitle"),src:`https://www.google.com/maps?q=${v}&output=embed`,width:"100%",height:"290",style:{border:0,display:"block",marginTop:"-60px"},loading:"lazy",referrerPolicy:"no-referrer-when-downgrade"})})}),l.jsxs("a",{href:w,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2.5 border-t px-4 py-4 text-[13px] font-bold uppercase tracking-[3px] hover:bg-[var(--kf-accentsoft)]",style:{borderColor:"var(--kf-divider)",color:"var(--kf-accent2)"},children:[d("contactPage.routePlan")," →"]})]})]})]}),l.jsx("div",{className:"mt-10 grid grid-cols-1 overflow-hidden rounded-2xl border min-[641px]:grid-cols-2 min-[901px]:grid-cols-4",style:{background:"var(--kf-card)",borderColor:"var(--kf-cardbrd)",boxShadow:"var(--kf-shadow2)"},children:St.map(_=>l.jsxs("div",{className:"flex items-center gap-4 border-b p-6 last:border-b-0 min-[641px]:border-b-0 min-[641px]:border-r min-[641px]:last:border-r-0",style:{borderColor:"var(--kf-divider)"},children:[l.jsx("div",{className:"flex h-[46px] w-[46px] flex-shrink-0 items-center justify-center rounded-full border-[1.5px]",style:{borderColor:"var(--kf-pkgbrd)",color:"var(--kf-accent2)"},children:l.jsx(kN,{path:SN[_.key],className:"h-[22px] w-[22px]"})}),l.jsxs("div",{children:[l.jsx("div",{className:"text-[15px] font-bold",style:{color:"var(--kf-text)"},children:_.title}),l.jsx("div",{className:"mt-0.5 text-[13px]",style:{color:"var(--kf-muted)"},children:_.sub})]})]},_.key))})]})})}const kl="hifi-chunk-reload",J=e=>m.lazy(()=>e().then(t=>{try{sessionStorage.removeItem(kl)}catch{}return t},t=>{let n=!0;try{n=!!sessionStorage.getItem(kl),sessionStorage.setItem(kl,"1")}catch{}if(n)throw t;return window.location.reload(),new Promise(()=>{})})),PN=J(()=>X(()=>import("./GalleryOverview-tHPy0jOe.js"),[])),CN=J(()=>X(()=>import("./GalleryBrandPage-BzAoxXE_.js"),[])),EN=J(()=>X(()=>import("./GalleryProjectPage-DpBAlPTy.js"),[])),TN=J(()=>X(()=>import("./DownloadsPage-CT2JtDjl.js"),__vite__mapDeps([5,6,1]))),NN=J(()=>X(()=>import("./Impressum-CD5RtMwn.js"),__vite__mapDeps([7,8]))),_N=J(()=>X(()=>import("./Datenschutz-Hw0CcqUH.js"),__vite__mapDeps([9,8]))),MN=J(()=>X(()=>import("./AGB-B-uVHPUd.js"),__vite__mapDeps([10,8]))),LN=J(()=>X(()=>import("./SetupWizard-Ckw5k6ZE.js"),[])),AN=J(()=>X(()=>import("./Login-CCbyGhS0.js"),[])),DN=J(()=>X(()=>import("./Dashboard-Ny22AC_t.js"),__vite__mapDeps([11,12,13]))),RN=J(()=>X(()=>import("./Brands-B0b0_Juu.js"),__vite__mapDeps([14,15,16,17,18,19,3]))),VN=J(()=>X(()=>import("./Models-Dm2ZOtK7.js"),__vite__mapDeps([20,15,16,17,18,19,3,21]))),IN=J(()=>X(()=>import("./GalleryBrands-BIgI9jbo.js"),__vite__mapDeps([22,15,16,18,19,3,21]))),FN=J(()=>X(()=>import("./GalleryProjects-DjAXUN2H.js"),__vite__mapDeps([23,15,16,18,19,3,21]))),ON=J(()=>X(()=>import("./GalleryPhotos-Cv_Qhmer.js"),__vite__mapDeps([24,18,19,3,21,16]))),zN=J(()=>X(()=>import("./Packages-DP0k5UCv.js"),__vite__mapDeps([25,17,21,19,4,3,2]))),BN=J(()=>X(()=>import("./Services-IqOiBpFo.js"),__vite__mapDeps([26,18,19,3,21,15,16,0,1,2,4]))),$N=J(()=>X(()=>import("./Faqs-YCnZqzOe.js"),__vite__mapDeps([27,18,19,3,21]))),HN=J(()=>X(()=>import("./Partners-CaTZjCI-.js"),__vite__mapDeps([28,15,16,18,19,3,21]))),UN=J(()=>X(()=>import("./Downloads-kRYcJVxv.js"),__vite__mapDeps([29,6,18,19,3,21,2]))),WN=J(()=>X(()=>import("./HomeSections-CoOnRZ8A.js"),__vite__mapDeps([30,31,17,32]))),GN=J(()=>X(()=>import("./ContactRequests-BudQZuIt.js"),__vite__mapDeps([33,13]))),KN=J(()=>X(()=>import("./AccountSettings-D-hOTRNd.js"),[])),qN=J(()=>X(()=>import("./AdminUsers-DMG68KM1.js"),[])),YN=J(()=>X(()=>import("./PermissionGroups-Btdv6FCF.js"),[])),XN=J(()=>X(()=>import("./SettingsLayout-U5xLs4HJ.js"),[])),Sl=J(()=>X(()=>import("./WebsiteSettings-BW_4m7rg.js"),__vite__mapDeps([34,15,16,32]))),ZN=J(()=>X(()=>import("./LegalSettings-C7GXvNXd.js"),__vite__mapDeps([35,31]))),QN=J(()=>X(()=>import("./UpdateSettings-DBnNrTDh.js"),[])),JN=J(()=>X(()=>import("./EmailSettings-Di0wz8p1.js"),__vite__mapDeps([36,31]))),e4=J(()=>X(()=>import("./DatabaseSettings-DpuNUN63.js"),__vite__mapDeps([37,12]))),t4=J(()=>X(()=>import("./ExportImportSettings-2FIa9jsz.js"),[])),n4=J(()=>X(()=>import("./MaintenanceSettings-ClIcGTQL.js"),[])),r4=J(()=>X(()=>import("./ResetSettings-eK_mT9UN.js"),[])),s4=l.jsx("div",{className:"min-h-screen bg-white dark:bg-neutral-950"});function i4(){const{packageId:e}=Jc();return l.jsx(rr,{to:`/admin/packages?paket=${e}`,replace:!0})}function o4(){return l.jsxs(Nj,{reducedMotion:"user",children:[l.jsx(iC,{}),l.jsx(lC,{}),l.jsx(mC,{children:l.jsx(m.Suspense,{fallback:s4,children:l.jsxs(xb,{children:[l.jsx($,{path:"/setup",element:l.jsx(LN,{})}),l.jsxs($,{element:l.jsx(PT,{}),children:[l.jsx($,{path:"/",element:l.jsx(ZT,{})}),l.jsx($,{path:"/fahrzeuge",element:l.jsx(QT,{})}),l.jsx($,{path:"/fahrzeuge/:brandSlug",element:l.jsx(JT,{})}),l.jsx($,{path:"/fahrzeuge/:brandSlug/:modelSlug",element:l.jsx(mN,{})}),l.jsx($,{path:"/galerie",element:l.jsx(PN,{})}),l.jsx($,{path:"/galerie/:brandSlug",element:l.jsx(CN,{})}),l.jsx($,{path:"/galerie/:brandSlug/:projectSlug",element:l.jsx(EN,{})}),l.jsx($,{path:"/leistungen",element:l.jsx(yN,{})}),l.jsx($,{path:"/kontakt",element:l.jsx(jN,{})}),l.jsx($,{path:"/downloads",element:l.jsx(TN,{})}),l.jsx($,{path:"/impressum",element:l.jsx(NN,{})}),l.jsx($,{path:"/datenschutz",element:l.jsx(_N,{})}),l.jsx($,{path:"/agb",element:l.jsx(MN,{})}),l.jsx($,{path:"*",element:l.jsx(Hd,{})})]}),l.jsx($,{path:"/admin/login",element:l.jsx(AN,{})}),l.jsx($,{path:"/admin",element:l.jsx(LT,{}),children:l.jsxs($,{element:l.jsx(MT,{}),children:[l.jsx($,{index:!0,element:l.jsx(DN,{})}),l.jsx($,{path:"account",element:l.jsx(KN,{})}),l.jsx($,{path:"brands",element:l.jsx(de,{permission:"brands.manage",children:l.jsx(RN,{})})}),l.jsx($,{path:"models",element:l.jsx(de,{permission:"models.manage",children:l.jsx(VN,{})})}),l.jsx($,{path:"gallery-brands",element:l.jsx(de,{permission:"gallery.manage",children:l.jsx(IN,{})})}),l.jsx($,{path:"gallery-projects",element:l.jsx(de,{permission:"gallery.manage",children:l.jsx(FN,{})})}),l.jsx($,{path:"gallery-projects/:projectId/photos",element:l.jsx(de,{permission:"gallery.manage",children:l.jsx(ON,{})})}),l.jsx($,{path:"packages",element:l.jsx(de,{permission:"packages.manage",children:l.jsx(zN,{})})}),l.jsx($,{path:"packages/:packageId/*",element:l.jsx(i4,{})}),l.jsx($,{path:"services",element:l.jsx(de,{permission:"services.manage",children:l.jsx(BN,{})})}),l.jsx($,{path:"faqs",element:l.jsx(de,{permission:"content.manage",children:l.jsx($N,{})})}),l.jsx($,{path:"partners",element:l.jsx(de,{permission:"content.manage",children:l.jsx(HN,{})})}),l.jsx($,{path:"downloads",element:l.jsx(de,{permission:"downloads.manage",children:l.jsx(UN,{})})}),l.jsx($,{path:"home-sections",element:l.jsx(de,{permission:"content.manage",children:l.jsx(WN,{})})}),l.jsx($,{path:"contact-requests",element:l.jsx(de,{permission:"contact.manage",children:l.jsx(GN,{})})}),l.jsx($,{path:"users",element:l.jsx(de,{permission:"users.manage",children:l.jsx(qN,{})})}),l.jsx($,{path:"permission-groups",element:l.jsx(de,{permission:"permission_groups.manage",children:l.jsx(YN,{})})}),l.jsxs($,{path:"settings",element:l.jsx(de,{permission:["settings.manage","system.admin","system.update"],children:l.jsx(XN,{})}),children:[l.jsx($,{index:!0,element:l.jsx(rr,{to:"company",replace:!0})}),l.jsx($,{path:"website",element:l.jsx(rr,{to:"../company",replace:!0})}),l.jsx($,{path:"company",element:l.jsx(de,{permission:"settings.manage",children:l.jsx(Sl,{section:"company"})})}),l.jsx($,{path:"design",element:l.jsx(de,{permission:"settings.manage",children:l.jsx(Sl,{section:"design"})})}),l.jsx($,{path:"legal",element:l.jsx(de,{permission:"settings.manage",children:l.jsx(ZN,{})})}),l.jsx($,{path:"maintenance",element:l.jsx(de,{permission:"settings.manage",children:l.jsx(n4,{})})}),l.jsx($,{path:"google",element:l.jsx(de,{permission:"system.admin",children:l.jsx(Sl,{section:"google"})})}),l.jsx($,{path:"email",element:l.jsx(de,{permission:"system.admin",children:l.jsx(JN,{})})}),l.jsx($,{path:"database",element:l.jsx(de,{permission:"system.admin",children:l.jsx(e4,{})})}),l.jsx($,{path:"export-import",element:l.jsx(de,{permission:"system.admin",children:l.jsx(t4,{})})}),l.jsx($,{path:"update",element:l.jsx(de,{permission:"system.update",children:l.jsx(QN,{})})}),l.jsx($,{path:"reset",element:l.jsx(de,{permission:"system.admin",children:l.jsx(r4,{})})})]})]})})]})})})]})}jl.createRoot(document.getElementById("root")).render(l.jsx(wp.StrictMode,{children:l.jsx(Cb,{basename:"/".replace(/\/$/,"")||"/",children:l.jsx(TE,{children:l.jsx(LE,{children:l.jsx(HE,{children:l.jsx(o4,{})})})})})}));export{XC as $,uC as A,Je as B,IC as C,xN as D,Ue as E,Uy as F,c4 as G,up as H,Z as I,bC as J,qo as K,K as L,SC as M,Hd as N,ed as O,My as P,CC as Q,$e as R,Gy as S,Ey as T,MC as U,RC as V,Ty as W,zC as X,UC as Y,GC as Z,qC as _,Vt as a,QC as a0,Zu as a1,Ny as a2,_y as a3,rE as a4,iE as a5,aE as a6,Kr as a7,dE as a8,hE as a9,pE as aa,xE as ab,vE as ac,bE as ad,SE as ae,Dd as af,CE as ag,vC as ah,u4 as ai,yC as aj,a4 as ak,ur as b,ue as c,ae as d,Sa as e,ep as f,Jc as g,Yc as h,fr as i,l as j,lr as k,Ym as l,ha as m,rr as n,Ju as o,f4 as p,h4 as q,m as r,m4 as s,Lb as t,Se as u,NC as v,AC as w,$C as x,wp as y,d4 as z};