Customer feedback round (4 items):
- Packages: one-click "Sichtbar/Ausgeblendet" toggle per package (saved
immediately). Hidden packages disappear from the model page; the tier
look of the remaining cards is ranked across all packages so it stays
stable.
- Packages: badge per card (Empfohlen, Am beliebtesten, Tipp, Coming soon
or custom text) plus an optional video link shown as "Zum Video". Legacy
is_featured maps to "Empfohlen".
- New download area (/downloads + Admin -> Downloads): upload with
progress, inline audio player, allow-listed file types, optional access
password, new permission downloads.manage. Files live in
api/uploads/downloads/ (gitignored, created at runtime).
- Performance:
- SetupGate no longer refetches and remounts the whole app on every
navigation.
- Page loader waits only for pending API calls and above-the-fold images
(fixes an 8 s hang on /leistungen caused by lazy images inside the
hidden container).
- Admin pages lazy-loaded; icon library moved out of the main bundle
(initial JS 2.2 MB -> 0.48 MB).
- Background video loads only near the viewport and was re-encoded to
720p (32 MB -> 8.5 MB).
- Visitors without a session cookie get no PHP session, so their parallel
API requests no longer queue on the session lock.
- index.html is served with Cache-Control: no-cache so browsers don't
keep a stale build after deploys.
- Fonts (Barlow, Barlow Condensed, Michroma) are self-hosted instead of
loaded from Google Fonts; the default privacy policy mentions this, lists
all local storage uses and uses the new TDDDG name.
- A code update that adds a table no longer sends the site into the setup
wizard while an admin exists.
Run "Datenbankstruktur aktualisieren" after deploying (new package
columns, downloads table, app_settings.downloads_password).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
303 lines
467 KiB
JavaScript
303 lines
467 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/iconRegistry-BJUM-_6m.js","assets/eye-DXpFNIUm.js","assets/Brands-vqxdbQxK.js","assets/ImageUploadField-BcYYcPAm.js","assets/TextStyleWidget-BJ8A0Q5H.js","assets/Models-ziTFkF11.js","assets/GalleryBrands-D1j5xSDf.js","assets/GalleryProjects-LRqhs8Yz.js","assets/Packages-yKMipMRC.js","assets/Services-CYRt7nkD.js","assets/Partners-_sfjbipE.js","assets/Downloads-CL1Jhgqp.js","assets/HomeSections-BGS9Sedm.js","assets/RichTextEditor-AMyLKCg7.js","assets/WebsiteSettings-CUqt2H1_.js","assets/LegalSettings-kVcunIgr.js","assets/EmailSettings-CqQsV22t.js"])))=>i.map(i=>d[i]);
|
||
function sy(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 wm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var km={exports:{}},Eo={},bm={exports:{}},K={};/**
|
||
* @license React
|
||
* react.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Rs=Symbol.for("react.element"),iy=Symbol.for("react.portal"),oy=Symbol.for("react.fragment"),ay=Symbol.for("react.strict_mode"),ly=Symbol.for("react.profiler"),uy=Symbol.for("react.provider"),cy=Symbol.for("react.context"),dy=Symbol.for("react.forward_ref"),fy=Symbol.for("react.suspense"),hy=Symbol.for("react.memo"),my=Symbol.for("react.lazy"),ud=Symbol.iterator;function py(e){return e===null||typeof e!="object"?null:(e=ud&&e[ud]||e["@@iterator"],typeof e=="function"?e:null)}var Sm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},jm=Object.assign,Pm={};function Tr(e,t,n){this.props=e,this.context=t,this.refs=Pm,this.updater=n||Sm}Tr.prototype.isReactComponent={};Tr.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")};Tr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Tm(){}Tm.prototype=Tr.prototype;function _u(e,t,n){this.props=e,this.context=t,this.refs=Pm,this.updater=n||Sm}var Mu=_u.prototype=new Tm;Mu.constructor=_u;jm(Mu,Tr.prototype);Mu.isPureReactComponent=!0;var cd=Array.isArray,Cm=Object.prototype.hasOwnProperty,Lu={current:null},Em={key:!0,ref:!0,__self:!0,__source:!0};function Nm(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)Cm.call(t,r)&&!Em.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:Rs,type:e,key:i,ref:o,props:s,_owner:Lu.current}}function gy(e,t){return{$$typeof:Rs,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Au(e){return typeof e=="object"&&e!==null&&e.$$typeof===Rs}function xy(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var dd=/\/+/g;function na(e,t){return typeof e=="object"&&e!==null&&e.key!=null?xy(""+e.key):t.toString(36)}function ki(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 Rs:case iy:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+na(o,0):r,cd(s)?(n="",e!=null&&(n=e.replace(dd,"$&/")+"/"),ki(s,t,n,"",function(c){return c})):s!=null&&(Au(s)&&(s=gy(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(dd,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",cd(e))for(var a=0;a<e.length;a++){i=e[a];var u=r+na(i,a);o+=ki(i,t,n,u,s)}else if(u=py(e),typeof u=="function")for(e=u.call(e),a=0;!(i=e.next()).done;)i=i.value,u=r+na(i,a++),o+=ki(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 qs(e,t,n){if(e==null)return e;var r=[],s=0;return ki(e,r,"","",function(i){return t.call(n,i,s++)}),r}function yy(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 Be={current:null},bi={transition:null},vy={ReactCurrentDispatcher:Be,ReactCurrentBatchConfig:bi,ReactCurrentOwner:Lu};function _m(){throw Error("act(...) is not supported in production builds of React.")}K.Children={map:qs,forEach:function(e,t,n){qs(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return qs(e,function(){t++}),t},toArray:function(e){return qs(e,function(t){return t})||[]},only:function(e){if(!Au(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};K.Component=Tr;K.Fragment=oy;K.Profiler=ly;K.PureComponent=_u;K.StrictMode=ay;K.Suspense=fy;K.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=vy;K.act=_m;K.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=jm({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=Lu.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)Cm.call(t,u)&&!Em.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:Rs,type:e.type,key:s,ref:i,props:r,_owner:o}};K.createContext=function(e){return e={$$typeof:cy,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:uy,_context:e},e.Consumer=e};K.createElement=Nm;K.createFactory=function(e){var t=Nm.bind(null,e);return t.type=e,t};K.createRef=function(){return{current:null}};K.forwardRef=function(e){return{$$typeof:dy,render:e}};K.isValidElement=Au;K.lazy=function(e){return{$$typeof:my,_payload:{_status:-1,_result:e},_init:yy}};K.memo=function(e,t){return{$$typeof:hy,type:e,compare:t===void 0?null:t}};K.startTransition=function(e){var t=bi.transition;bi.transition={};try{e()}finally{bi.transition=t}};K.unstable_act=_m;K.useCallback=function(e,t){return Be.current.useCallback(e,t)};K.useContext=function(e){return Be.current.useContext(e)};K.useDebugValue=function(){};K.useDeferredValue=function(e){return Be.current.useDeferredValue(e)};K.useEffect=function(e,t){return Be.current.useEffect(e,t)};K.useId=function(){return Be.current.useId()};K.useImperativeHandle=function(e,t,n){return Be.current.useImperativeHandle(e,t,n)};K.useInsertionEffect=function(e,t){return Be.current.useInsertionEffect(e,t)};K.useLayoutEffect=function(e,t){return Be.current.useLayoutEffect(e,t)};K.useMemo=function(e,t){return Be.current.useMemo(e,t)};K.useReducer=function(e,t,n){return Be.current.useReducer(e,t,n)};K.useRef=function(e){return Be.current.useRef(e)};K.useState=function(e){return Be.current.useState(e)};K.useSyncExternalStore=function(e,t,n){return Be.current.useSyncExternalStore(e,t,n)};K.useTransition=function(){return Be.current.useTransition()};K.version="18.3.1";bm.exports=K;var x=bm.exports;const Mm=wm(x),wy=sy({__proto__:null,default:Mm},[x]);/**
|
||
* @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 ky=x,by=Symbol.for("react.element"),Sy=Symbol.for("react.fragment"),jy=Object.prototype.hasOwnProperty,Py=ky.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ty={key:!0,ref:!0,__self:!0,__source:!0};function Lm(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)jy.call(t,r)&&!Ty.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:by,type:e,key:i,ref:o,props:s,_owner:Py.current}}Eo.Fragment=Sy;Eo.jsx=Lm;Eo.jsxs=Lm;km.exports=Eo;var l=km.exports,Ja={},Am={exports:{}},et={},Dm={exports:{}},Rm={};/**
|
||
* @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(E,T){var D=E.length;E.push(T);e:for(;0<D;){var $=D-1>>>1,Z=E[$];if(0<s(Z,T))E[$]=T,E[D]=Z,D=$;else break e}}function n(E){return E.length===0?null:E[0]}function r(E){if(E.length===0)return null;var T=E[0],D=E.pop();if(D!==T){E[0]=D;e:for(var $=0,Z=E.length,re=Z>>>1;$<re;){var I=2*($+1)-1,z=E[I],X=I+1,le=E[X];if(0>s(z,D))X<Z&&0>s(le,z)?(E[$]=le,E[X]=D,$=X):(E[$]=z,E[I]=D,$=I);else if(X<Z&&0>s(le,D))E[$]=le,E[X]=D,$=X;else break e}}return T}function s(E,T){var D=E.sortIndex-T.sortIndex;return D!==0?D:E.id-T.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,y=!1,w=!1,k=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(E){for(var T=n(c);T!==null;){if(T.callback===null)r(c);else if(T.startTime<=E)r(c),T.sortIndex=T.expirationTime,t(u,T);else break;T=n(c)}}function b(E){if(w=!1,v(E),!y)if(n(u)!==null)y=!0,F(P);else{var T=n(c);T!==null&&q(b,T.startTime-E)}}function P(E,T){y=!1,w&&(w=!1,g(j),j=-1),p=!0;var D=h;try{for(v(T),f=n(u);f!==null&&(!(f.expirationTime>T)||E&&!O());){var $=f.callback;if(typeof $=="function"){f.callback=null,h=f.priorityLevel;var Z=$(f.expirationTime<=T);T=e.unstable_now(),typeof Z=="function"?f.callback=Z:f===n(u)&&r(u),v(T)}else r(u);f=n(u)}if(f!==null)var re=!0;else{var I=n(c);I!==null&&q(b,I.startTime-T),re=!1}return re}finally{f=null,h=D,p=!1}}var C=!1,S=null,j=-1,A=5,N=-1;function O(){return!(e.unstable_now()-N<A)}function H(){if(S!==null){var E=e.unstable_now();N=E;var T=!0;try{T=S(!0,E)}finally{T?_():(C=!1,S=null)}}else C=!1}var _;if(typeof m=="function")_=function(){m(H)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,W=L.port2;L.port1.onmessage=H,_=function(){W.postMessage(null)}}else _=function(){k(H,0)};function F(E){S=E,C||(C=!0,_())}function q(E,T){j=k(function(){E(e.unstable_now())},T)}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(E){E.callback=null},e.unstable_continueExecution=function(){y||p||(y=!0,F(P))},e.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<E?Math.floor(1e3/E):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(E){switch(h){case 1:case 2:case 3:var T=3;break;default:T=h}var D=h;h=T;try{return E()}finally{h=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(E,T){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var D=h;h=E;try{return T()}finally{h=D}},e.unstable_scheduleCallback=function(E,T,D){var $=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?$+D:$):D=$,E){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=D+Z,E={id:d++,callback:T,priorityLevel:E,startTime:D,expirationTime:Z,sortIndex:-1},D>$?(E.sortIndex=D,t(c,E),n(u)===null&&E===n(c)&&(w?(g(j),j=-1):w=!0,q(b,D-$))):(E.sortIndex=Z,t(u,E),y||p||(y=!0,F(P))),E},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(E){var T=h;return function(){var D=h;h=T;try{return E.apply(this,arguments)}finally{h=D}}}})(Rm);Dm.exports=Rm;var Cy=Dm.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 Ey=x,Je=Cy;function M(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 Im=new Set,fs={};function $n(e,t){pr(e,t),pr(e+"Capture",t)}function pr(e,t){for(fs[e]=t,e=0;e<t.length;e++)Im.add(t[e])}var $t=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),el=Object.prototype.hasOwnProperty,Ny=/^[: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]*$/,fd={},hd={};function _y(e){return el.call(hd,e)?!0:el.call(fd,e)?!1:Ny.test(e)?hd[e]=!0:(fd[e]=!0,!1)}function My(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 Ly(e,t,n,r){if(t===null||typeof t>"u"||My(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 $e(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 Me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Me[e]=new $e(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Me[t]=new $e(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Me[e]=new $e(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Me[e]=new $e(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){Me[e]=new $e(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Me[e]=new $e(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Me[e]=new $e(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Me[e]=new $e(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Me[e]=new $e(e,5,!1,e.toLowerCase(),null,!1,!1)});var Du=/[\-:]([a-z])/g;function Ru(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(Du,Ru);Me[t]=new $e(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(Du,Ru);Me[t]=new $e(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(Du,Ru);Me[t]=new $e(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Me[e]=new $e(e,1,!1,e.toLowerCase(),null,!1,!1)});Me.xlinkHref=new $e("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Me[e]=new $e(e,1,!1,e.toLowerCase(),null,!0,!0)});function Iu(e,t,n,r){var s=Me.hasOwnProperty(t)?Me[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Ly(t,n,s,r)&&(n=null),r||s===null?_y(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 Gt=Ey.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Qs=Symbol.for("react.element"),Kn=Symbol.for("react.portal"),Xn=Symbol.for("react.fragment"),Vu=Symbol.for("react.strict_mode"),tl=Symbol.for("react.profiler"),Vm=Symbol.for("react.provider"),Om=Symbol.for("react.context"),Ou=Symbol.for("react.forward_ref"),nl=Symbol.for("react.suspense"),rl=Symbol.for("react.suspense_list"),Fu=Symbol.for("react.memo"),qt=Symbol.for("react.lazy"),Fm=Symbol.for("react.offscreen"),md=Symbol.iterator;function Rr(e){return e===null||typeof e!="object"?null:(e=md&&e[md]||e["@@iterator"],typeof e=="function"?e:null)}var he=Object.assign,ra;function Ur(e){if(ra===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ra=t&&t[1]||""}return`
|
||
`+ra+e}var sa=!1;function ia(e,t){if(!e||sa)return"";sa=!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{sa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ur(e):""}function Ay(e){switch(e.tag){case 5:return Ur(e.type);case 16:return Ur("Lazy");case 13:return Ur("Suspense");case 19:return Ur("SuspenseList");case 0:case 2:case 15:return e=ia(e.type,!1),e;case 11:return e=ia(e.type.render,!1),e;case 1:return e=ia(e.type,!0),e;default:return""}}function sl(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 Xn:return"Fragment";case Kn:return"Portal";case tl:return"Profiler";case Vu:return"StrictMode";case nl:return"Suspense";case rl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Om:return(e.displayName||"Context")+".Consumer";case Vm:return(e._context.displayName||"Context")+".Provider";case Ou:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fu:return t=e.displayName||null,t!==null?t:sl(e.type)||"Memo";case qt:t=e._payload,e=e._init;try{return sl(e(t))}catch{}}return null}function Dy(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 sl(t);case 8:return t===Vu?"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 pn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ry(e){var t=zm(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 Zs(e){e._valueTracker||(e._valueTracker=Ry(e))}function Bm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=zm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function $i(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 il(e,t){var n=t.checked;return he({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function pd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=pn(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 $m(e,t){t=t.checked,t!=null&&Iu(e,"checked",t,!1)}function ol(e,t){$m(e,t);var n=pn(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")?al(e,t.type,n):t.hasOwnProperty("defaultValue")&&al(e,t.type,pn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function gd(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 al(e,t,n){(t!=="number"||$i(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Gr=Array.isArray;function ur(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=""+pn(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 ll(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(M(91));return he({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function xd(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(M(92));if(Gr(n)){if(1<n.length)throw Error(M(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:pn(n)}}function Hm(e,t){var n=pn(t.value),r=pn(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 yd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Wm(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 ul(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Wm(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Js,Um=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(Js=Js||document.createElement("div"),Js.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Js.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function hs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qr={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},Iy=["Webkit","ms","Moz","O"];Object.keys(Qr).forEach(function(e){Iy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qr[t]=Qr[e]})});function Gm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Qr.hasOwnProperty(e)&&Qr[e]?(""+t).trim():t+"px"}function Km(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Gm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var Vy=he({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 cl(e,t){if(t){if(Vy[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function dl(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 fl=null;function zu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hl=null,cr=null,dr=null;function vd(e){if(e=Os(e)){if(typeof hl!="function")throw Error(M(280));var t=e.stateNode;t&&(t=Ao(t),hl(e.stateNode,e.type,t))}}function Xm(e){cr?dr?dr.push(e):dr=[e]:cr=e}function Ym(){if(cr){var e=cr,t=dr;if(dr=cr=null,vd(e),t)for(e=0;e<t.length;e++)vd(t[e])}}function qm(e,t){return e(t)}function Qm(){}var oa=!1;function Zm(e,t,n){if(oa)return e(t,n);oa=!0;try{return qm(e,t,n)}finally{oa=!1,(cr!==null||dr!==null)&&(Qm(),Ym())}}function ms(e,t){var n=e.stateNode;if(n===null)return null;var r=Ao(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(M(231,t,typeof n));return n}var ml=!1;if($t)try{var Ir={};Object.defineProperty(Ir,"passive",{get:function(){ml=!0}}),window.addEventListener("test",Ir,Ir),window.removeEventListener("test",Ir,Ir)}catch{ml=!1}function Oy(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 Zr=!1,Hi=null,Wi=!1,pl=null,Fy={onError:function(e){Zr=!0,Hi=e}};function zy(e,t,n,r,s,i,o,a,u){Zr=!1,Hi=null,Oy.apply(Fy,arguments)}function By(e,t,n,r,s,i,o,a,u){if(zy.apply(this,arguments),Zr){if(Zr){var c=Hi;Zr=!1,Hi=null}else throw Error(M(198));Wi||(Wi=!0,pl=c)}}function Hn(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 Jm(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 wd(e){if(Hn(e)!==e)throw Error(M(188))}function $y(e){var t=e.alternate;if(!t){if(t=Hn(e),t===null)throw Error(M(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 wd(s),e;if(i===r)return wd(s),t;i=i.sibling}throw Error(M(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(M(189))}}if(n.alternate!==r)throw Error(M(190))}if(n.tag!==3)throw Error(M(188));return n.stateNode.current===n?e:t}function ep(e){return e=$y(e),e!==null?tp(e):null}function tp(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=tp(e);if(t!==null)return t;e=e.sibling}return null}var np=Je.unstable_scheduleCallback,kd=Je.unstable_cancelCallback,Hy=Je.unstable_shouldYield,Wy=Je.unstable_requestPaint,ge=Je.unstable_now,Uy=Je.unstable_getCurrentPriorityLevel,Bu=Je.unstable_ImmediatePriority,rp=Je.unstable_UserBlockingPriority,Ui=Je.unstable_NormalPriority,Gy=Je.unstable_LowPriority,sp=Je.unstable_IdlePriority,No=null,_t=null;function Ky(e){if(_t&&typeof _t.onCommitFiberRoot=="function")try{_t.onCommitFiberRoot(No,e,void 0,(e.current.flags&128)===128)}catch{}}var vt=Math.clz32?Math.clz32:qy,Xy=Math.log,Yy=Math.LN2;function qy(e){return e>>>=0,e===0?32:31-(Xy(e)/Yy|0)|0}var ei=64,ti=4194304;function Kr(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 Gi(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=Kr(a):(i&=o,i!==0&&(r=Kr(i)))}else o=n&~s,o!==0?r=Kr(o):i!==0&&(r=Kr(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-vt(t),s=1<<n,r|=e[n],t&=~s;return r}function Qy(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 Zy(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-vt(i),a=1<<o,u=s[o];u===-1?(!(a&n)||a&r)&&(s[o]=Qy(a,t)):u<=t&&(e.expiredLanes|=a),i&=~a}}function gl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ip(){var e=ei;return ei<<=1,!(ei&4194240)&&(ei=64),e}function aa(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Is(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-vt(t),e[t]=n}function Jy(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-vt(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function $u(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-vt(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var te=0;function op(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var ap,Hu,lp,up,cp,xl=!1,ni=[],on=null,an=null,ln=null,ps=new Map,gs=new Map,Jt=[],ev="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 bd(e,t){switch(e){case"focusin":case"focusout":on=null;break;case"dragenter":case"dragleave":an=null;break;case"mouseover":case"mouseout":ln=null;break;case"pointerover":case"pointerout":ps.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":gs.delete(t.pointerId)}}function Vr(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=Os(t),t!==null&&Hu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function tv(e,t,n,r,s){switch(t){case"focusin":return on=Vr(on,e,t,n,r,s),!0;case"dragenter":return an=Vr(an,e,t,n,r,s),!0;case"mouseover":return ln=Vr(ln,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return ps.set(i,Vr(ps.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,gs.set(i,Vr(gs.get(i)||null,e,t,n,r,s)),!0}return!1}function dp(e){var t=Cn(e.target);if(t!==null){var n=Hn(t);if(n!==null){if(t=n.tag,t===13){if(t=Jm(n),t!==null){e.blockedOn=t,cp(e.priority,function(){lp(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 Si(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=yl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);fl=r,n.target.dispatchEvent(r),fl=null}else return t=Os(n),t!==null&&Hu(t),e.blockedOn=n,!1;t.shift()}return!0}function Sd(e,t,n){Si(e)&&n.delete(t)}function nv(){xl=!1,on!==null&&Si(on)&&(on=null),an!==null&&Si(an)&&(an=null),ln!==null&&Si(ln)&&(ln=null),ps.forEach(Sd),gs.forEach(Sd)}function Or(e,t){e.blockedOn===t&&(e.blockedOn=null,xl||(xl=!0,Je.unstable_scheduleCallback(Je.unstable_NormalPriority,nv)))}function xs(e){function t(s){return Or(s,e)}if(0<ni.length){Or(ni[0],e);for(var n=1;n<ni.length;n++){var r=ni[n];r.blockedOn===e&&(r.blockedOn=null)}}for(on!==null&&Or(on,e),an!==null&&Or(an,e),ln!==null&&Or(ln,e),ps.forEach(t),gs.forEach(t),n=0;n<Jt.length;n++)r=Jt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Jt.length&&(n=Jt[0],n.blockedOn===null);)dp(n),n.blockedOn===null&&Jt.shift()}var fr=Gt.ReactCurrentBatchConfig,Ki=!0;function rv(e,t,n,r){var s=te,i=fr.transition;fr.transition=null;try{te=1,Wu(e,t,n,r)}finally{te=s,fr.transition=i}}function sv(e,t,n,r){var s=te,i=fr.transition;fr.transition=null;try{te=4,Wu(e,t,n,r)}finally{te=s,fr.transition=i}}function Wu(e,t,n,r){if(Ki){var s=yl(e,t,n,r);if(s===null)xa(e,t,r,Xi,n),bd(e,r);else if(tv(s,e,t,n,r))r.stopPropagation();else if(bd(e,r),t&4&&-1<ev.indexOf(e)){for(;s!==null;){var i=Os(s);if(i!==null&&ap(i),i=yl(e,t,n,r),i===null&&xa(e,t,r,Xi,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else xa(e,t,r,null,n)}}var Xi=null;function yl(e,t,n,r){if(Xi=null,e=zu(r),e=Cn(e),e!==null)if(t=Hn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Jm(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 Xi=e,null}function fp(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(Uy()){case Bu:return 1;case rp:return 4;case Ui:case Gy:return 16;case sp:return 536870912;default:return 16}default:return 16}}var tn=null,Uu=null,ji=null;function hp(){if(ji)return ji;var e,t=Uu,n=t.length,r,s="value"in tn?tn.value:tn.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 ji=s.slice(e,1<r?1-r:void 0)}function Pi(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 ri(){return!0}function jd(){return!1}function tt(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)?ri:jd,this.isPropagationStopped=jd,this}return he(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=ri)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ri)},persist:function(){},isPersistent:ri}),t}var Cr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gu=tt(Cr),Vs=he({},Cr,{view:0,detail:0}),iv=tt(Vs),la,ua,Fr,_o=he({},Vs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ku,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!==Fr&&(Fr&&e.type==="mousemove"?(la=e.screenX-Fr.screenX,ua=e.screenY-Fr.screenY):ua=la=0,Fr=e),la)},movementY:function(e){return"movementY"in e?e.movementY:ua}}),Pd=tt(_o),ov=he({},_o,{dataTransfer:0}),av=tt(ov),lv=he({},Vs,{relatedTarget:0}),ca=tt(lv),uv=he({},Cr,{animationName:0,elapsedTime:0,pseudoElement:0}),cv=tt(uv),dv=he({},Cr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),fv=tt(dv),hv=he({},Cr,{data:0}),Td=tt(hv),mv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pv={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"},gv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=gv[e])?!!t[e]:!1}function Ku(){return xv}var yv=he({},Vs,{key:function(e){if(e.key){var t=mv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Pi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?pv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ku,charCode:function(e){return e.type==="keypress"?Pi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Pi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),vv=tt(yv),wv=he({},_o,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cd=tt(wv),kv=he({},Vs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ku}),bv=tt(kv),Sv=he({},Cr,{propertyName:0,elapsedTime:0,pseudoElement:0}),jv=tt(Sv),Pv=he({},_o,{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}),Tv=tt(Pv),Cv=[9,13,27,32],Xu=$t&&"CompositionEvent"in window,Jr=null;$t&&"documentMode"in document&&(Jr=document.documentMode);var Ev=$t&&"TextEvent"in window&&!Jr,mp=$t&&(!Xu||Jr&&8<Jr&&11>=Jr),Ed=" ",Nd=!1;function pp(e,t){switch(e){case"keyup":return Cv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yn=!1;function Nv(e,t){switch(e){case"compositionend":return gp(t);case"keypress":return t.which!==32?null:(Nd=!0,Ed);case"textInput":return e=t.data,e===Ed&&Nd?null:e;default:return null}}function _v(e,t){if(Yn)return e==="compositionend"||!Xu&&pp(e,t)?(e=hp(),ji=Uu=tn=null,Yn=!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 mp&&t.locale!=="ko"?null:t.data;default:return null}}var Mv={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 _d(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Mv[e.type]:t==="textarea"}function xp(e,t,n,r){Xm(r),t=Yi(t,"onChange"),0<t.length&&(n=new Gu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var es=null,ys=null;function Lv(e){Ep(e,0)}function Mo(e){var t=Zn(e);if(Bm(t))return e}function Av(e,t){if(e==="change")return t}var yp=!1;if($t){var da;if($t){var fa="oninput"in document;if(!fa){var Md=document.createElement("div");Md.setAttribute("oninput","return;"),fa=typeof Md.oninput=="function"}da=fa}else da=!1;yp=da&&(!document.documentMode||9<document.documentMode)}function Ld(){es&&(es.detachEvent("onpropertychange",vp),ys=es=null)}function vp(e){if(e.propertyName==="value"&&Mo(ys)){var t=[];xp(t,ys,e,zu(e)),Zm(Lv,t)}}function Dv(e,t,n){e==="focusin"?(Ld(),es=t,ys=n,es.attachEvent("onpropertychange",vp)):e==="focusout"&&Ld()}function Rv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Mo(ys)}function Iv(e,t){if(e==="click")return Mo(t)}function Vv(e,t){if(e==="input"||e==="change")return Mo(t)}function Ov(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bt=typeof Object.is=="function"?Object.is:Ov;function vs(e,t){if(bt(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(!el.call(t,s)||!bt(e[s],t[s]))return!1}return!0}function Ad(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Dd(e,t){var n=Ad(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=Ad(n)}}function wp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function kp(){for(var e=window,t=$i();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=$i(e.document)}return t}function Yu(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 Fv(e){var t=kp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&wp(n.ownerDocument.documentElement,n)){if(r!==null&&Yu(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=Dd(n,i);var o=Dd(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 zv=$t&&"documentMode"in document&&11>=document.documentMode,qn=null,vl=null,ts=null,wl=!1;function Rd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;wl||qn==null||qn!==$i(r)||(r=qn,"selectionStart"in r&&Yu(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}),ts&&vs(ts,r)||(ts=r,r=Yi(vl,"onSelect"),0<r.length&&(t=new Gu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=qn)))}function si(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Qn={animationend:si("Animation","AnimationEnd"),animationiteration:si("Animation","AnimationIteration"),animationstart:si("Animation","AnimationStart"),transitionend:si("Transition","TransitionEnd")},ha={},bp={};$t&&(bp=document.createElement("div").style,"AnimationEvent"in window||(delete Qn.animationend.animation,delete Qn.animationiteration.animation,delete Qn.animationstart.animation),"TransitionEvent"in window||delete Qn.transitionend.transition);function Lo(e){if(ha[e])return ha[e];if(!Qn[e])return e;var t=Qn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in bp)return ha[e]=t[n];return e}var Sp=Lo("animationend"),jp=Lo("animationiteration"),Pp=Lo("animationstart"),Tp=Lo("transitionend"),Cp=new Map,Id="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 vn(e,t){Cp.set(e,t),$n(t,[e])}for(var ma=0;ma<Id.length;ma++){var pa=Id[ma],Bv=pa.toLowerCase(),$v=pa[0].toUpperCase()+pa.slice(1);vn(Bv,"on"+$v)}vn(Sp,"onAnimationEnd");vn(jp,"onAnimationIteration");vn(Pp,"onAnimationStart");vn("dblclick","onDoubleClick");vn("focusin","onFocus");vn("focusout","onBlur");vn(Tp,"onTransitionEnd");pr("onMouseEnter",["mouseout","mouseover"]);pr("onMouseLeave",["mouseout","mouseover"]);pr("onPointerEnter",["pointerout","pointerover"]);pr("onPointerLeave",["pointerout","pointerover"]);$n("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));$n("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));$n("onBeforeInput",["compositionend","keypress","textInput","paste"]);$n("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));$n("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));$n("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xr="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(" "),Hv=new Set("cancel close invalid load scroll toggle".split(" ").concat(Xr));function Vd(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,By(r,t,void 0,e),e.currentTarget=null}function Ep(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;Vd(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;Vd(s,a,c),i=u}}}if(Wi)throw e=pl,Wi=!1,pl=null,e}function oe(e,t){var n=t[Pl];n===void 0&&(n=t[Pl]=new Set);var r=e+"__bubble";n.has(r)||(Np(t,e,2,!1),n.add(r))}function ga(e,t,n){var r=0;t&&(r|=4),Np(n,e,r,t)}var ii="_reactListening"+Math.random().toString(36).slice(2);function ws(e){if(!e[ii]){e[ii]=!0,Im.forEach(function(n){n!=="selectionchange"&&(Hv.has(n)||ga(n,!1,e),ga(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ii]||(t[ii]=!0,ga("selectionchange",!1,t))}}function Np(e,t,n,r){switch(fp(t)){case 1:var s=rv;break;case 4:s=sv;break;default:s=Wu}n=s.bind(null,t,n,e),s=void 0,!ml||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 xa(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=Cn(a),o===null)return;if(u=o.tag,u===5||u===6){r=i=o;continue e}a=a.parentNode}}r=r.return}Zm(function(){var c=i,d=zu(n),f=[];e:{var h=Cp.get(e);if(h!==void 0){var p=Gu,y=e;switch(e){case"keypress":if(Pi(n)===0)break e;case"keydown":case"keyup":p=vv;break;case"focusin":y="focus",p=ca;break;case"focusout":y="blur",p=ca;break;case"beforeblur":case"afterblur":p=ca;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=Pd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=av;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=bv;break;case Sp:case jp:case Pp:p=cv;break;case Tp:p=jv;break;case"scroll":p=iv;break;case"wheel":p=Tv;break;case"copy":case"cut":case"paste":p=fv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Cd}var w=(t&4)!==0,k=!w&&e==="scroll",g=w?h!==null?h+"Capture":null:h;w=[];for(var m=c,v;m!==null;){v=m;var b=v.stateNode;if(v.tag===5&&b!==null&&(v=b,g!==null&&(b=ms(m,g),b!=null&&w.push(ks(m,b,v)))),k)break;m=m.return}0<w.length&&(h=new p(h,y,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!==fl&&(y=n.relatedTarget||n.fromElement)&&(Cn(y)||y[Ht]))break e;if((p||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,p?(y=n.relatedTarget||n.toElement,p=c,y=y?Cn(y):null,y!==null&&(k=Hn(y),y!==k||y.tag!==5&&y.tag!==6)&&(y=null)):(p=null,y=c),p!==y)){if(w=Pd,b="onMouseLeave",g="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(w=Cd,b="onPointerLeave",g="onPointerEnter",m="pointer"),k=p==null?h:Zn(p),v=y==null?h:Zn(y),h=new w(b,m+"leave",p,n,d),h.target=k,h.relatedTarget=v,b=null,Cn(d)===c&&(w=new w(g,m+"enter",y,n,d),w.target=v,w.relatedTarget=k,b=w),k=b,p&&y)t:{for(w=p,g=y,m=0,v=w;v;v=Wn(v))m++;for(v=0,b=g;b;b=Wn(b))v++;for(;0<m-v;)w=Wn(w),m--;for(;0<v-m;)g=Wn(g),v--;for(;m--;){if(w===g||g!==null&&w===g.alternate)break t;w=Wn(w),g=Wn(g)}w=null}else w=null;p!==null&&Od(f,h,p,w,!1),y!==null&&k!==null&&Od(f,k,y,w,!0)}}e:{if(h=c?Zn(c):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var P=Av;else if(_d(h))if(yp)P=Vv;else{P=Rv;var C=Dv}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(P=Iv);if(P&&(P=P(e,c))){xp(f,P,n,d);break e}C&&C(e,h,c),e==="focusout"&&(C=h._wrapperState)&&C.controlled&&h.type==="number"&&al(h,"number",h.value)}switch(C=c?Zn(c):window,e){case"focusin":(_d(C)||C.contentEditable==="true")&&(qn=C,vl=c,ts=null);break;case"focusout":ts=vl=qn=null;break;case"mousedown":wl=!0;break;case"contextmenu":case"mouseup":case"dragend":wl=!1,Rd(f,n,d);break;case"selectionchange":if(zv)break;case"keydown":case"keyup":Rd(f,n,d)}var S;if(Xu)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else Yn?pp(e,n)&&(j="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(j="onCompositionStart");j&&(mp&&n.locale!=="ko"&&(Yn||j!=="onCompositionStart"?j==="onCompositionEnd"&&Yn&&(S=hp()):(tn=d,Uu="value"in tn?tn.value:tn.textContent,Yn=!0)),C=Yi(c,j),0<C.length&&(j=new Td(j,e,null,n,d),f.push({event:j,listeners:C}),S?j.data=S:(S=gp(n),S!==null&&(j.data=S)))),(S=Ev?Nv(e,n):_v(e,n))&&(c=Yi(c,"onBeforeInput"),0<c.length&&(d=new Td("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:c}),d.data=S))}Ep(f,t)})}function ks(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yi(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=ms(e,n),i!=null&&r.unshift(ks(e,i,s)),i=ms(e,t),i!=null&&r.push(ks(e,i,s))),e=e.return}return r}function Wn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Od(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=ms(n,i),u!=null&&o.unshift(ks(n,u,a))):s||(u=ms(n,i),u!=null&&o.push(ks(n,u,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Wv=/\r\n?/g,Uv=/\u0000|\uFFFD/g;function Fd(e){return(typeof e=="string"?e:""+e).replace(Wv,`
|
||
`).replace(Uv,"")}function oi(e,t,n){if(t=Fd(t),Fd(e)!==t&&n)throw Error(M(425))}function qi(){}var kl=null,bl=null;function Sl(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 jl=typeof setTimeout=="function"?setTimeout:void 0,Gv=typeof clearTimeout=="function"?clearTimeout:void 0,zd=typeof Promise=="function"?Promise:void 0,Kv=typeof queueMicrotask=="function"?queueMicrotask:typeof zd<"u"?function(e){return zd.resolve(null).then(e).catch(Xv)}:jl;function Xv(e){setTimeout(function(){throw e})}function ya(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),xs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);xs(t)}function un(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Bd(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 Er=Math.random().toString(36).slice(2),Nt="__reactFiber$"+Er,bs="__reactProps$"+Er,Ht="__reactContainer$"+Er,Pl="__reactEvents$"+Er,Yv="__reactListeners$"+Er,qv="__reactHandles$"+Er;function Cn(e){var t=e[Nt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ht]||n[Nt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Bd(e);e!==null;){if(n=e[Nt])return n;e=Bd(e)}return t}e=n,n=e.parentNode}return null}function Os(e){return e=e[Nt]||e[Ht],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Zn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(M(33))}function Ao(e){return e[bs]||null}var Tl=[],Jn=-1;function wn(e){return{current:e}}function ae(e){0>Jn||(e.current=Tl[Jn],Tl[Jn]=null,Jn--)}function ie(e,t){Jn++,Tl[Jn]=e.current,e.current=t}var gn={},Ie=wn(gn),Ue=wn(!1),In=gn;function gr(e,t){var n=e.type.contextTypes;if(!n)return gn;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 Ge(e){return e=e.childContextTypes,e!=null}function Qi(){ae(Ue),ae(Ie)}function $d(e,t,n){if(Ie.current!==gn)throw Error(M(168));ie(Ie,t),ie(Ue,n)}function _p(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(M(108,Dy(e)||"Unknown",s));return he({},n,r)}function Zi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gn,In=Ie.current,ie(Ie,e),ie(Ue,Ue.current),!0}function Hd(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=_p(e,t,In),r.__reactInternalMemoizedMergedChildContext=e,ae(Ue),ae(Ie),ie(Ie,e)):ae(Ue),ie(Ue,n)}var Vt=null,Do=!1,va=!1;function Mp(e){Vt===null?Vt=[e]:Vt.push(e)}function Qv(e){Do=!0,Mp(e)}function kn(){if(!va&&Vt!==null){va=!0;var e=0,t=te;try{var n=Vt;for(te=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Vt=null,Do=!1}catch(s){throw Vt!==null&&(Vt=Vt.slice(e+1)),np(Bu,kn),s}finally{te=t,va=!1}}return null}var er=[],tr=0,Ji=null,eo=0,st=[],it=0,Vn=null,Ot=1,Ft="";function jn(e,t){er[tr++]=eo,er[tr++]=Ji,Ji=e,eo=t}function Lp(e,t,n){st[it++]=Ot,st[it++]=Ft,st[it++]=Vn,Vn=e;var r=Ot;e=Ft;var s=32-vt(r)-1;r&=~(1<<s),n+=1;var i=32-vt(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,Ot=1<<32-vt(t)+s|n<<s|r,Ft=i+e}else Ot=1<<i|n<<s|r,Ft=e}function qu(e){e.return!==null&&(jn(e,1),Lp(e,1,0))}function Qu(e){for(;e===Ji;)Ji=er[--tr],er[tr]=null,eo=er[--tr],er[tr]=null;for(;e===Vn;)Vn=st[--it],st[it]=null,Ft=st[--it],st[it]=null,Ot=st[--it],st[it]=null}var Qe=null,qe=null,ue=!1,xt=null;function Ap(e,t){var n=ot(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 Wd(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,Qe=e,qe=un(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Qe=e,qe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Vn!==null?{id:Ot,overflow:Ft}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ot(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Qe=e,qe=null,!0):!1;default:return!1}}function Cl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function El(e){if(ue){var t=qe;if(t){var n=t;if(!Wd(e,t)){if(Cl(e))throw Error(M(418));t=un(n.nextSibling);var r=Qe;t&&Wd(e,t)?Ap(r,n):(e.flags=e.flags&-4097|2,ue=!1,Qe=e)}}else{if(Cl(e))throw Error(M(418));e.flags=e.flags&-4097|2,ue=!1,Qe=e}}}function Ud(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Qe=e}function ai(e){if(e!==Qe)return!1;if(!ue)return Ud(e),ue=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Sl(e.type,e.memoizedProps)),t&&(t=qe)){if(Cl(e))throw Dp(),Error(M(418));for(;t;)Ap(e,t),t=un(t.nextSibling)}if(Ud(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(M(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){qe=un(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}qe=null}}else qe=Qe?un(e.stateNode.nextSibling):null;return!0}function Dp(){for(var e=qe;e;)e=un(e.nextSibling)}function xr(){qe=Qe=null,ue=!1}function Zu(e){xt===null?xt=[e]:xt.push(e)}var Zv=Gt.ReactCurrentBatchConfig;function zr(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(M(309));var r=n.stateNode}if(!r)throw Error(M(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(M(284));if(!n._owner)throw Error(M(290,e))}return e}function li(e,t){throw e=Object.prototype.toString.call(t),Error(M(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Gd(e){var t=e._init;return t(e._payload)}function Rp(e){function t(g,m){if(e){var v=g.deletions;v===null?(g.deletions=[m],g.flags|=16):v.push(m)}}function n(g,m){if(!e)return null;for(;m!==null;)t(g,m),m=m.sibling;return null}function r(g,m){for(g=new Map;m!==null;)m.key!==null?g.set(m.key,m):g.set(m.index,m),m=m.sibling;return g}function s(g,m){return g=hn(g,m),g.index=0,g.sibling=null,g}function i(g,m,v){return g.index=v,e?(v=g.alternate,v!==null?(v=v.index,v<m?(g.flags|=2,m):v):(g.flags|=2,m)):(g.flags|=1048576,m)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,m,v,b){return m===null||m.tag!==6?(m=Ta(v,g.mode,b),m.return=g,m):(m=s(m,v),m.return=g,m)}function u(g,m,v,b){var P=v.type;return P===Xn?d(g,m,v.props.children,b,v.key):m!==null&&(m.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===qt&&Gd(P)===m.type)?(b=s(m,v.props),b.ref=zr(g,m,v),b.return=g,b):(b=Li(v.type,v.key,v.props,null,g.mode,b),b.ref=zr(g,m,v),b.return=g,b)}function c(g,m,v,b){return m===null||m.tag!==4||m.stateNode.containerInfo!==v.containerInfo||m.stateNode.implementation!==v.implementation?(m=Ca(v,g.mode,b),m.return=g,m):(m=s(m,v.children||[]),m.return=g,m)}function d(g,m,v,b,P){return m===null||m.tag!==7?(m=An(v,g.mode,b,P),m.return=g,m):(m=s(m,v),m.return=g,m)}function f(g,m,v){if(typeof m=="string"&&m!==""||typeof m=="number")return m=Ta(""+m,g.mode,v),m.return=g,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Qs:return v=Li(m.type,m.key,m.props,null,g.mode,v),v.ref=zr(g,null,m),v.return=g,v;case Kn:return m=Ca(m,g.mode,v),m.return=g,m;case qt:var b=m._init;return f(g,b(m._payload),v)}if(Gr(m)||Rr(m))return m=An(m,g.mode,v,null),m.return=g,m;li(g,m)}return null}function h(g,m,v,b){var P=m!==null?m.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return P!==null?null:a(g,m,""+v,b);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Qs:return v.key===P?u(g,m,v,b):null;case Kn:return v.key===P?c(g,m,v,b):null;case qt:return P=v._init,h(g,m,P(v._payload),b)}if(Gr(v)||Rr(v))return P!==null?null:d(g,m,v,b,null);li(g,v)}return null}function p(g,m,v,b,P){if(typeof b=="string"&&b!==""||typeof b=="number")return g=g.get(v)||null,a(m,g,""+b,P);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Qs:return g=g.get(b.key===null?v:b.key)||null,u(m,g,b,P);case Kn:return g=g.get(b.key===null?v:b.key)||null,c(m,g,b,P);case qt:var C=b._init;return p(g,m,v,C(b._payload),P)}if(Gr(b)||Rr(b))return g=g.get(v)||null,d(m,g,b,P,null);li(m,b)}return null}function y(g,m,v,b){for(var P=null,C=null,S=m,j=m=0,A=null;S!==null&&j<v.length;j++){S.index>j?(A=S,S=null):A=S.sibling;var N=h(g,S,v[j],b);if(N===null){S===null&&(S=A);break}e&&S&&N.alternate===null&&t(g,S),m=i(N,m,j),C===null?P=N:C.sibling=N,C=N,S=A}if(j===v.length)return n(g,S),ue&&jn(g,j),P;if(S===null){for(;j<v.length;j++)S=f(g,v[j],b),S!==null&&(m=i(S,m,j),C===null?P=S:C.sibling=S,C=S);return ue&&jn(g,j),P}for(S=r(g,S);j<v.length;j++)A=p(S,g,j,v[j],b),A!==null&&(e&&A.alternate!==null&&S.delete(A.key===null?j:A.key),m=i(A,m,j),C===null?P=A:C.sibling=A,C=A);return e&&S.forEach(function(O){return t(g,O)}),ue&&jn(g,j),P}function w(g,m,v,b){var P=Rr(v);if(typeof P!="function")throw Error(M(150));if(v=P.call(v),v==null)throw Error(M(151));for(var C=P=null,S=m,j=m=0,A=null,N=v.next();S!==null&&!N.done;j++,N=v.next()){S.index>j?(A=S,S=null):A=S.sibling;var O=h(g,S,N.value,b);if(O===null){S===null&&(S=A);break}e&&S&&O.alternate===null&&t(g,S),m=i(O,m,j),C===null?P=O:C.sibling=O,C=O,S=A}if(N.done)return n(g,S),ue&&jn(g,j),P;if(S===null){for(;!N.done;j++,N=v.next())N=f(g,N.value,b),N!==null&&(m=i(N,m,j),C===null?P=N:C.sibling=N,C=N);return ue&&jn(g,j),P}for(S=r(g,S);!N.done;j++,N=v.next())N=p(S,g,j,N.value,b),N!==null&&(e&&N.alternate!==null&&S.delete(N.key===null?j:N.key),m=i(N,m,j),C===null?P=N:C.sibling=N,C=N);return e&&S.forEach(function(H){return t(g,H)}),ue&&jn(g,j),P}function k(g,m,v,b){if(typeof v=="object"&&v!==null&&v.type===Xn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Qs:e:{for(var P=v.key,C=m;C!==null;){if(C.key===P){if(P=v.type,P===Xn){if(C.tag===7){n(g,C.sibling),m=s(C,v.props.children),m.return=g,g=m;break e}}else if(C.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===qt&&Gd(P)===C.type){n(g,C.sibling),m=s(C,v.props),m.ref=zr(g,C,v),m.return=g,g=m;break e}n(g,C);break}else t(g,C);C=C.sibling}v.type===Xn?(m=An(v.props.children,g.mode,b,v.key),m.return=g,g=m):(b=Li(v.type,v.key,v.props,null,g.mode,b),b.ref=zr(g,m,v),b.return=g,g=b)}return o(g);case Kn:e:{for(C=v.key;m!==null;){if(m.key===C)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){n(g,m.sibling),m=s(m,v.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=Ca(v,g.mode,b),m.return=g,g=m}return o(g);case qt:return C=v._init,k(g,m,C(v._payload),b)}if(Gr(v))return y(g,m,v,b);if(Rr(v))return w(g,m,v,b);li(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,m!==null&&m.tag===6?(n(g,m.sibling),m=s(m,v),m.return=g,g=m):(n(g,m),m=Ta(v,g.mode,b),m.return=g,g=m),o(g)):n(g,m)}return k}var yr=Rp(!0),Ip=Rp(!1),to=wn(null),no=null,nr=null,Ju=null;function ec(){Ju=nr=no=null}function tc(e){var t=to.current;ae(to),e._currentValue=t}function Nl(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 hr(e,t){no=e,Ju=nr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(We=!0),e.firstContext=null)}function ut(e){var t=e._currentValue;if(Ju!==e)if(e={context:e,memoizedValue:t,next:null},nr===null){if(no===null)throw Error(M(308));nr=e,no.dependencies={lanes:0,firstContext:e}}else nr=nr.next=e;return t}var En=null;function nc(e){En===null?En=[e]:En.push(e)}function Vp(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,nc(t)):(n.next=s.next,s.next=n),t.interleaved=n,Wt(e,r)}function Wt(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 Qt=!1;function rc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Op(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 Bt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function cn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Q&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Wt(e,n)}return s=r.interleaved,s===null?(t.next=t,nc(r)):(t.next=s.next,s.next=t),r.interleaved=t,Wt(e,n)}function Ti(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,$u(e,n)}}function Kd(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 ro(e,t,n,r){var s=e.updateQueue;Qt=!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 y=e,w=a;switch(h=t,p=n,w.tag){case 1:if(y=w.payload,typeof y=="function"){f=y.call(p,f,h);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=w.payload,h=typeof y=="function"?y.call(p,f,h):y,h==null)break e;f=he({},f,h);break e;case 2:Qt=!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);Fn|=o,e.lanes=o,e.memoizedState=f}}function Xd(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(M(191,s));s.call(r)}}}var Fs={},Mt=wn(Fs),Ss=wn(Fs),js=wn(Fs);function Nn(e){if(e===Fs)throw Error(M(174));return e}function sc(e,t){switch(ie(js,t),ie(Ss,e),ie(Mt,Fs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ul(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ul(t,e)}ae(Mt),ie(Mt,t)}function vr(){ae(Mt),ae(Ss),ae(js)}function Fp(e){Nn(js.current);var t=Nn(Mt.current),n=ul(t,e.type);t!==n&&(ie(Ss,e),ie(Mt,n))}function ic(e){Ss.current===e&&(ae(Mt),ae(Ss))}var ce=wn(0);function so(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 wa=[];function oc(){for(var e=0;e<wa.length;e++)wa[e]._workInProgressVersionPrimary=null;wa.length=0}var Ci=Gt.ReactCurrentDispatcher,ka=Gt.ReactCurrentBatchConfig,On=0,de=null,we=null,Te=null,io=!1,ns=!1,Ps=0,Jv=0;function Le(){throw Error(M(321))}function ac(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!bt(e[n],t[n]))return!1;return!0}function lc(e,t,n,r,s,i){if(On=i,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ci.current=e===null||e.memoizedState===null?r1:s1,e=n(r,s),ns){i=0;do{if(ns=!1,Ps=0,25<=i)throw Error(M(301));i+=1,Te=we=null,t.updateQueue=null,Ci.current=i1,e=n(r,s)}while(ns)}if(Ci.current=oo,t=we!==null&&we.next!==null,On=0,Te=we=de=null,io=!1,t)throw Error(M(300));return e}function uc(){var e=Ps!==0;return Ps=0,e}function Tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Te===null?de.memoizedState=Te=e:Te=Te.next=e,Te}function ct(){if(we===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=we.next;var t=Te===null?de.memoizedState:Te.next;if(t!==null)Te=t,we=e;else{if(e===null)throw Error(M(310));we=e,e={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},Te===null?de.memoizedState=Te=e:Te=Te.next=e}return Te}function Ts(e,t){return typeof t=="function"?t(e):t}function ba(e){var t=ct(),n=t.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=e;var r=we,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((On&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,de.lanes|=d,Fn|=d}c=c.next}while(c!==null&&c!==i);u===null?o=r:u.next=a,bt(r,t.memoizedState)||(We=!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,de.lanes|=i,Fn|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Sa(e){var t=ct(),n=t.queue;if(n===null)throw Error(M(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);bt(i,t.memoizedState)||(We=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function zp(){}function Bp(e,t){var n=de,r=ct(),s=t(),i=!bt(r.memoizedState,s);if(i&&(r.memoizedState=s,We=!0),r=r.queue,cc(Wp.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Te!==null&&Te.memoizedState.tag&1){if(n.flags|=2048,Cs(9,Hp.bind(null,n,r,s,t),void 0,null),Ce===null)throw Error(M(349));On&30||$p(n,t,s)}return s}function $p(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=de.updateQueue,t===null?(t={lastEffect:null,stores:null},de.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Hp(e,t,n,r){t.value=n,t.getSnapshot=r,Up(t)&&Gp(e)}function Wp(e,t,n){return n(function(){Up(t)&&Gp(e)})}function Up(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!bt(e,n)}catch{return!0}}function Gp(e){var t=Wt(e,1);t!==null&&wt(t,e,1,-1)}function Yd(e){var t=Tt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ts,lastRenderedState:e},t.queue=e,e=e.dispatch=n1.bind(null,de,e),[t.memoizedState,e]}function Cs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=de.updateQueue,t===null?(t={lastEffect:null,stores:null},de.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 Kp(){return ct().memoizedState}function Ei(e,t,n,r){var s=Tt();de.flags|=e,s.memoizedState=Cs(1|t,n,void 0,r===void 0?null:r)}function Ro(e,t,n,r){var s=ct();r=r===void 0?null:r;var i=void 0;if(we!==null){var o=we.memoizedState;if(i=o.destroy,r!==null&&ac(r,o.deps)){s.memoizedState=Cs(t,n,i,r);return}}de.flags|=e,s.memoizedState=Cs(1|t,n,i,r)}function qd(e,t){return Ei(8390656,8,e,t)}function cc(e,t){return Ro(2048,8,e,t)}function Xp(e,t){return Ro(4,2,e,t)}function Yp(e,t){return Ro(4,4,e,t)}function qp(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 Qp(e,t,n){return n=n!=null?n.concat([e]):null,Ro(4,4,qp.bind(null,t,e),n)}function dc(){}function Zp(e,t){var n=ct();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ac(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Jp(e,t){var n=ct();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ac(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function eg(e,t,n){return On&21?(bt(n,t)||(n=ip(),de.lanes|=n,Fn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,We=!0),e.memoizedState=n)}function e1(e,t){var n=te;te=n!==0&&4>n?n:4,e(!0);var r=ka.transition;ka.transition={};try{e(!1),t()}finally{te=n,ka.transition=r}}function tg(){return ct().memoizedState}function t1(e,t,n){var r=fn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ng(e))rg(t,n);else if(n=Vp(e,t,n,r),n!==null){var s=ze();wt(n,e,r,s),sg(n,t,r)}}function n1(e,t,n){var r=fn(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ng(e))rg(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,bt(a,o)){var u=t.interleaved;u===null?(s.next=s,nc(t)):(s.next=u.next,u.next=s),t.interleaved=s;return}}catch{}finally{}n=Vp(e,t,s,r),n!==null&&(s=ze(),wt(n,e,r,s),sg(n,t,r))}}function ng(e){var t=e.alternate;return e===de||t!==null&&t===de}function rg(e,t){ns=io=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$u(e,n)}}var oo={readContext:ut,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useInsertionEffect:Le,useLayoutEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useMutableSource:Le,useSyncExternalStore:Le,useId:Le,unstable_isNewReconciler:!1},r1={readContext:ut,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:qd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ei(4194308,4,qp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ei(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ei(4,2,e,t)},useMemo:function(e,t){var n=Tt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Tt();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=t1.bind(null,de,e),[r.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:Yd,useDebugValue:dc,useDeferredValue:function(e){return Tt().memoizedState=e},useTransition:function(){var e=Yd(!1),t=e[0];return e=e1.bind(null,e[1]),Tt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=de,s=Tt();if(ue){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),Ce===null)throw Error(M(349));On&30||$p(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,qd(Wp.bind(null,r,i,e),[e]),r.flags|=2048,Cs(9,Hp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Tt(),t=Ce.identifierPrefix;if(ue){var n=Ft,r=Ot;n=(r&~(1<<32-vt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ps++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Jv++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},s1={readContext:ut,useCallback:Zp,useContext:ut,useEffect:cc,useImperativeHandle:Qp,useInsertionEffect:Xp,useLayoutEffect:Yp,useMemo:Jp,useReducer:ba,useRef:Kp,useState:function(){return ba(Ts)},useDebugValue:dc,useDeferredValue:function(e){var t=ct();return eg(t,we.memoizedState,e)},useTransition:function(){var e=ba(Ts)[0],t=ct().memoizedState;return[e,t]},useMutableSource:zp,useSyncExternalStore:Bp,useId:tg,unstable_isNewReconciler:!1},i1={readContext:ut,useCallback:Zp,useContext:ut,useEffect:cc,useImperativeHandle:Qp,useInsertionEffect:Xp,useLayoutEffect:Yp,useMemo:Jp,useReducer:Sa,useRef:Kp,useState:function(){return Sa(Ts)},useDebugValue:dc,useDeferredValue:function(e){var t=ct();return we===null?t.memoizedState=e:eg(t,we.memoizedState,e)},useTransition:function(){var e=Sa(Ts)[0],t=ct().memoizedState;return[e,t]},useMutableSource:zp,useSyncExternalStore:Bp,useId:tg,unstable_isNewReconciler:!1};function pt(e,t){if(e&&e.defaultProps){t=he({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function _l(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:he({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Io={isMounted:function(e){return(e=e._reactInternals)?Hn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ze(),s=fn(e),i=Bt(r,s);i.payload=t,n!=null&&(i.callback=n),t=cn(e,i,s),t!==null&&(wt(t,e,s,r),Ti(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ze(),s=fn(e),i=Bt(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=cn(e,i,s),t!==null&&(wt(t,e,s,r),Ti(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ze(),r=fn(e),s=Bt(n,r);s.tag=2,t!=null&&(s.callback=t),t=cn(e,s,r),t!==null&&(wt(t,e,r,n),Ti(t,e,r))}};function Qd(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?!vs(n,r)||!vs(s,i):!0}function ig(e,t,n){var r=!1,s=gn,i=t.contextType;return typeof i=="object"&&i!==null?i=ut(i):(s=Ge(t)?In:Ie.current,r=t.contextTypes,i=(r=r!=null)?gr(e,s):gn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Io,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function Zd(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&&Io.enqueueReplaceState(t,t.state,null)}function Ml(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},rc(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=ut(i):(i=Ge(t)?In:Ie.current,s.context=gr(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(_l(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&&Io.enqueueReplaceState(s,s.state,null),ro(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function wr(e,t){try{var n="",r=t;do n+=Ay(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 ja(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ll(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var o1=typeof WeakMap=="function"?WeakMap:Map;function og(e,t,n){n=Bt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){lo||(lo=!0,$l=r),Ll(e,t)},n}function ag(e,t,n){n=Bt(-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(){Ll(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ll(e,t),typeof r!="function"&&(dn===null?dn=new Set([this]):dn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Jd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new o1;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=w1.bind(null,e,t,n),t.then(e,e))}function ef(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 tf(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=Bt(-1,1),t.tag=2,cn(n,t,1))),n.lanes|=1),e)}var a1=Gt.ReactCurrentOwner,We=!1;function Ve(e,t,n,r){t.child=e===null?Ip(t,null,n,r):yr(t,e.child,n,r)}function nf(e,t,n,r,s){n=n.render;var i=t.ref;return hr(t,s),r=lc(e,t,n,r,i,s),n=uc(),e!==null&&!We?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Ut(e,t,s)):(ue&&n&&qu(t),t.flags|=1,Ve(e,t,r,s),t.child)}function rf(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!vc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,lg(e,t,i,r,s)):(e=Li(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:vs,n(o,r)&&e.ref===t.ref)return Ut(e,t,s)}return t.flags|=1,e=hn(i,r),e.ref=t.ref,e.return=t,t.child=e}function lg(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(vs(i,r)&&e.ref===t.ref)if(We=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(We=!0);else return t.lanes=e.lanes,Ut(e,t,s)}return Al(e,t,n,r,s)}function ug(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},ie(sr,Ye),Ye|=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,ie(sr,Ye),Ye|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ie(sr,Ye),Ye|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ie(sr,Ye),Ye|=r;return Ve(e,t,s,n),t.child}function cg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Al(e,t,n,r,s){var i=Ge(n)?In:Ie.current;return i=gr(t,i),hr(t,s),n=lc(e,t,n,r,i,s),r=uc(),e!==null&&!We?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Ut(e,t,s)):(ue&&r&&qu(t),t.flags|=1,Ve(e,t,n,s),t.child)}function sf(e,t,n,r,s){if(Ge(n)){var i=!0;Zi(t)}else i=!1;if(hr(t,s),t.stateNode===null)Ni(e,t),ig(t,n,r),Ml(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=ut(c):(c=Ge(n)?In:Ie.current,c=gr(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)&&Zd(t,o,r,c),Qt=!1;var h=t.memoizedState;o.state=h,ro(t,r,o,s),u=t.memoizedState,a!==r||h!==u||Ue.current||Qt?(typeof d=="function"&&(_l(t,n,d,r),u=t.memoizedState),(a=Qt||Qd(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,Op(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:pt(t.type,a),o.props=c,f=t.pendingProps,h=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=ut(u):(u=Ge(n)?In:Ie.current,u=gr(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)&&Zd(t,o,r,u),Qt=!1,h=t.memoizedState,o.state=h,ro(t,r,o,s);var y=t.memoizedState;a!==f||h!==y||Ue.current||Qt?(typeof p=="function"&&(_l(t,n,p,r),y=t.memoizedState),(c=Qt||Qd(t,n,c,r,h,y,u)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,y,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,y,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=y),o.props=r,o.state=y,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 Dl(e,t,n,r,i,s)}function Dl(e,t,n,r,s,i){cg(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&Hd(t,n,!1),Ut(e,t,i);r=t.stateNode,a1.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=yr(t,e.child,null,i),t.child=yr(t,null,a,i)):Ve(e,t,a,i),t.memoizedState=r.state,s&&Hd(t,n,!0),t.child}function dg(e){var t=e.stateNode;t.pendingContext?$d(e,t.pendingContext,t.pendingContext!==t.context):t.context&&$d(e,t.context,!1),sc(e,t.containerInfo)}function of(e,t,n,r,s){return xr(),Zu(s),t.flags|=256,Ve(e,t,n,r),t.child}var Rl={dehydrated:null,treeContext:null,retryLane:0};function Il(e){return{baseLanes:e,cachePool:null,transitions:null}}function fg(e,t,n){var r=t.pendingProps,s=ce.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),ie(ce,s&1),e===null)return El(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=Fo(o,r,0,null),e=An(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Il(n),t.memoizedState=Rl,e):fc(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return l1(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=hn(s,u),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=hn(a,i):(i=An(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?Il(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Rl,r}return i=e.child,e=i.sibling,r=hn(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 fc(e,t){return t=Fo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ui(e,t,n,r){return r!==null&&Zu(r),yr(t,e.child,null,n),e=fc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function l1(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=ja(Error(M(422))),ui(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=Fo({mode:"visible",children:r.children},s,0,null),i=An(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&yr(t,e.child,null,o),t.child.memoizedState=Il(o),t.memoizedState=Rl,i);if(!(t.mode&1))return ui(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(M(419)),r=ja(i,r,void 0),ui(e,t,o,r)}if(a=(o&e.childLanes)!==0,We||a){if(r=Ce,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,Wt(e,s),wt(r,e,s,-1))}return yc(),r=ja(Error(M(421))),ui(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=k1.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,qe=un(s.nextSibling),Qe=t,ue=!0,xt=null,e!==null&&(st[it++]=Ot,st[it++]=Ft,st[it++]=Vn,Ot=e.id,Ft=e.overflow,Vn=t),t=fc(t,r.children),t.flags|=4096,t)}function af(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Nl(e.return,t,n)}function Pa(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 hg(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(Ve(e,t,r.children,n),r=ce.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&&af(e,n,t);else if(e.tag===19)af(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(ie(ce,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&&so(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Pa(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&&so(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Pa(t,!0,n,null,i);break;case"together":Pa(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ni(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ut(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Fn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(M(153));if(t.child!==null){for(e=t.child,n=hn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=hn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function u1(e,t,n){switch(t.tag){case 3:dg(t),xr();break;case 5:Fp(t);break;case 1:Ge(t.type)&&Zi(t);break;case 4:sc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;ie(to,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ie(ce,ce.current&1),t.flags|=128,null):n&t.child.childLanes?fg(e,t,n):(ie(ce,ce.current&1),e=Ut(e,t,n),e!==null?e.sibling:null);ie(ce,ce.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return hg(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),ie(ce,ce.current),r)break;return null;case 22:case 23:return t.lanes=0,ug(e,t,n)}return Ut(e,t,n)}var mg,Vl,pg,gg;mg=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}};Vl=function(){};pg=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Nn(Mt.current);var i=null;switch(n){case"input":s=il(e,s),r=il(e,r),i=[];break;case"select":s=he({},s,{value:void 0}),r=he({},r,{value:void 0}),i=[];break;case"textarea":s=ll(e,s),r=ll(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=qi)}cl(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"&&(fs.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"&&(fs.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&oe("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)}};gg=function(e,t,n,r){n!==r&&(t.flags|=4)};function Br(e,t){if(!ue)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 Ae(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 c1(e,t,n){var r=t.pendingProps;switch(Qu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ae(t),null;case 1:return Ge(t.type)&&Qi(),Ae(t),null;case 3:return r=t.stateNode,vr(),ae(Ue),ae(Ie),oc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ai(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,xt!==null&&(Ul(xt),xt=null))),Vl(e,t),Ae(t),null;case 5:ic(t);var s=Nn(js.current);if(n=t.type,e!==null&&t.stateNode!=null)pg(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(M(166));return Ae(t),null}if(e=Nn(Mt.current),ai(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Nt]=t,r[bs]=i,e=(t.mode&1)!==0,n){case"dialog":oe("cancel",r),oe("close",r);break;case"iframe":case"object":case"embed":oe("load",r);break;case"video":case"audio":for(s=0;s<Xr.length;s++)oe(Xr[s],r);break;case"source":oe("error",r);break;case"img":case"image":case"link":oe("error",r),oe("load",r);break;case"details":oe("toggle",r);break;case"input":pd(r,i),oe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},oe("invalid",r);break;case"textarea":xd(r,i),oe("invalid",r)}cl(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&&oi(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&oi(r.textContent,a,e),s=["children",""+a]):fs.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&oe("scroll",r)}switch(n){case"input":Zs(r),gd(r,i,!0);break;case"textarea":Zs(r),yd(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=qi)}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=Wm(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[Nt]=t,e[bs]=r,mg(e,t,!1,!1),t.stateNode=e;e:{switch(o=dl(n,r),n){case"dialog":oe("cancel",e),oe("close",e),s=r;break;case"iframe":case"object":case"embed":oe("load",e),s=r;break;case"video":case"audio":for(s=0;s<Xr.length;s++)oe(Xr[s],e);s=r;break;case"source":oe("error",e),s=r;break;case"img":case"image":case"link":oe("error",e),oe("load",e),s=r;break;case"details":oe("toggle",e),s=r;break;case"input":pd(e,r),s=il(e,r),oe("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=he({},r,{value:void 0}),oe("invalid",e);break;case"textarea":xd(e,r),s=ll(e,r),oe("invalid",e);break;default:s=r}cl(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var u=a[i];i==="style"?Km(e,u):i==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Um(e,u)):i==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&hs(e,u):typeof u=="number"&&hs(e,""+u):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(fs.hasOwnProperty(i)?u!=null&&i==="onScroll"&&oe("scroll",e):u!=null&&Iu(e,i,u,o))}switch(n){case"input":Zs(e),gd(e,r,!1);break;case"textarea":Zs(e),yd(e);break;case"option":r.value!=null&&e.setAttribute("value",""+pn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?ur(e,!!r.multiple,i,!1):r.defaultValue!=null&&ur(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=qi)}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 Ae(t),null;case 6:if(e&&t.stateNode!=null)gg(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(M(166));if(n=Nn(js.current),Nn(Mt.current),ai(t)){if(r=t.stateNode,n=t.memoizedProps,r[Nt]=t,(i=r.nodeValue!==n)&&(e=Qe,e!==null))switch(e.tag){case 3:oi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&oi(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Nt]=t,t.stateNode=r}return Ae(t),null;case 13:if(ae(ce),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ue&&qe!==null&&t.mode&1&&!(t.flags&128))Dp(),xr(),t.flags|=98560,i=!1;else if(i=ai(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(M(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(M(317));i[Nt]=t}else xr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ae(t),i=!1}else xt!==null&&(Ul(xt),xt=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||ce.current&1?ke===0&&(ke=3):yc())),t.updateQueue!==null&&(t.flags|=4),Ae(t),null);case 4:return vr(),Vl(e,t),e===null&&ws(t.stateNode.containerInfo),Ae(t),null;case 10:return tc(t.type._context),Ae(t),null;case 17:return Ge(t.type)&&Qi(),Ae(t),null;case 19:if(ae(ce),i=t.memoizedState,i===null)return Ae(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)Br(i,!1);else{if(ke!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=so(e),o!==null){for(t.flags|=128,Br(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 ie(ce,ce.current&1|2),t.child}e=e.sibling}i.tail!==null&&ge()>kr&&(t.flags|=128,r=!0,Br(i,!1),t.lanes=4194304)}else{if(!r)if(e=so(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Br(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ue)return Ae(t),null}else 2*ge()-i.renderingStartTime>kr&&n!==1073741824&&(t.flags|=128,r=!0,Br(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=ge(),t.sibling=null,n=ce.current,ie(ce,r?n&1|2:n&1),t):(Ae(t),null);case 22:case 23:return xc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ye&1073741824&&(Ae(t),t.subtreeFlags&6&&(t.flags|=8192)):Ae(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function d1(e,t){switch(Qu(t),t.tag){case 1:return Ge(t.type)&&Qi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vr(),ae(Ue),ae(Ie),oc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ic(t),null;case 13:if(ae(ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));xr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ae(ce),null;case 4:return vr(),null;case 10:return tc(t.type._context),null;case 22:case 23:return xc(),null;case 24:return null;default:return null}}var ci=!1,Re=!1,f1=typeof WeakSet=="function"?WeakSet:Set,R=null;function rr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){pe(e,t,r)}else n.current=null}function Ol(e,t,n){try{n()}catch(r){pe(e,t,r)}}var lf=!1;function h1(e,t){if(kl=Ki,e=kp(),Yu(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(bl={focusedElem:e,selectionRange:n},Ki=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var w=y.memoizedProps,k=y.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?w:pt(t.type,w),k);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(b){pe(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return y=lf,lf=!1,y}function rs(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&&Ol(t,n,i)}s=s.next}while(s!==r)}}function Vo(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 Fl(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 xg(e){var t=e.alternate;t!==null&&(e.alternate=null,xg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Nt],delete t[bs],delete t[Pl],delete t[Yv],delete t[qv])),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 yg(e){return e.tag===5||e.tag===3||e.tag===4}function uf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yg(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 zl(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=qi));else if(r!==4&&(e=e.child,e!==null))for(zl(e,t,n),e=e.sibling;e!==null;)zl(e,t,n),e=e.sibling}function Bl(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(Bl(e,t,n),e=e.sibling;e!==null;)Bl(e,t,n),e=e.sibling}var Ne=null,gt=!1;function Xt(e,t,n){for(n=n.child;n!==null;)vg(e,t,n),n=n.sibling}function vg(e,t,n){if(_t&&typeof _t.onCommitFiberUnmount=="function")try{_t.onCommitFiberUnmount(No,n)}catch{}switch(n.tag){case 5:Re||rr(n,t);case 6:var r=Ne,s=gt;Ne=null,Xt(e,t,n),Ne=r,gt=s,Ne!==null&&(gt?(e=Ne,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ne.removeChild(n.stateNode));break;case 18:Ne!==null&&(gt?(e=Ne,n=n.stateNode,e.nodeType===8?ya(e.parentNode,n):e.nodeType===1&&ya(e,n),xs(e)):ya(Ne,n.stateNode));break;case 4:r=Ne,s=gt,Ne=n.stateNode.containerInfo,gt=!0,Xt(e,t,n),Ne=r,gt=s;break;case 0:case 11:case 14:case 15:if(!Re&&(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)&&Ol(n,t,o),s=s.next}while(s!==r)}Xt(e,t,n);break;case 1:if(!Re&&(rr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){pe(n,t,a)}Xt(e,t,n);break;case 21:Xt(e,t,n);break;case 22:n.mode&1?(Re=(r=Re)||n.memoizedState!==null,Xt(e,t,n),Re=r):Xt(e,t,n);break;default:Xt(e,t,n)}}function cf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new f1),t.forEach(function(r){var s=b1.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function ft(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:Ne=a.stateNode,gt=!1;break e;case 3:Ne=a.stateNode.containerInfo,gt=!0;break e;case 4:Ne=a.stateNode.containerInfo,gt=!0;break e}a=a.return}if(Ne===null)throw Error(M(160));vg(i,o,s),Ne=null,gt=!1;var u=s.alternate;u!==null&&(u.return=null),s.return=null}catch(c){pe(s,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)wg(t,e),t=t.sibling}function wg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ft(t,e),Pt(e),r&4){try{rs(3,e,e.return),Vo(3,e)}catch(w){pe(e,e.return,w)}try{rs(5,e,e.return)}catch(w){pe(e,e.return,w)}}break;case 1:ft(t,e),Pt(e),r&512&&n!==null&&rr(n,n.return);break;case 5:if(ft(t,e),Pt(e),r&512&&n!==null&&rr(n,n.return),e.flags&32){var s=e.stateNode;try{hs(s,"")}catch(w){pe(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&&$m(s,i),dl(a,o);var c=dl(a,i);for(o=0;o<u.length;o+=2){var d=u[o],f=u[o+1];d==="style"?Km(s,f):d==="dangerouslySetInnerHTML"?Um(s,f):d==="children"?hs(s,f):Iu(s,d,f,c)}switch(a){case"input":ol(s,i);break;case"textarea":Hm(s,i);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?ur(s,!!i.multiple,p,!1):h!==!!i.multiple&&(i.defaultValue!=null?ur(s,!!i.multiple,i.defaultValue,!0):ur(s,!!i.multiple,i.multiple?[]:"",!1))}s[bs]=i}catch(w){pe(e,e.return,w)}}break;case 6:if(ft(t,e),Pt(e),r&4){if(e.stateNode===null)throw Error(M(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(w){pe(e,e.return,w)}}break;case 3:if(ft(t,e),Pt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{xs(t.containerInfo)}catch(w){pe(e,e.return,w)}break;case 4:ft(t,e),Pt(e);break;case 13:ft(t,e),Pt(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(pc=ge())),r&4&&cf(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Re=(c=Re)||d,ft(t,e),Re=c):ft(t,e),Pt(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(R=e,d=e.child;d!==null;){for(f=R=d;R!==null;){switch(h=R,p=h.child,h.tag){case 0:case 11:case 14:case 15:rs(4,h,h.return);break;case 1:rr(h,h.return);var y=h.stateNode;if(typeof y.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(w){pe(r,n,w)}}break;case 5:rr(h,h.return);break;case 22:if(h.memoizedState!==null){ff(f);continue}}p!==null?(p.return=h,R=p):ff(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=Gm("display",o))}catch(w){pe(e,e.return,w)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(w){pe(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:ft(t,e),Pt(e),r&4&&cf(e);break;case 21:break;default:ft(t,e),Pt(e)}}function Pt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(yg(n)){var r=n;break e}n=n.return}throw Error(M(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(hs(s,""),r.flags&=-33);var i=uf(e);Bl(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=uf(e);zl(e,a,o);break;default:throw Error(M(161))}}catch(u){pe(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function m1(e,t,n){R=e,kg(e)}function kg(e,t,n){for(var r=(e.mode&1)!==0;R!==null;){var s=R,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||ci;if(!o){var a=s.alternate,u=a!==null&&a.memoizedState!==null||Re;a=ci;var c=Re;if(ci=o,(Re=u)&&!c)for(R=s;R!==null;)o=R,u=o.child,o.tag===22&&o.memoizedState!==null?hf(s):u!==null?(u.return=o,R=u):hf(s);for(;i!==null;)R=i,kg(i),i=i.sibling;R=s,ci=a,Re=c}df(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,R=i):df(e)}}function df(e){for(;R!==null;){var t=R;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Re||Vo(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Re)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:pt(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Xd(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}Xd(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&&xs(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(M(163))}Re||t.flags&512&&Fl(t)}catch(h){pe(t,t.return,h)}}if(t===e){R=null;break}if(n=t.sibling,n!==null){n.return=t.return,R=n;break}R=t.return}}function ff(e){for(;R!==null;){var t=R;if(t===e){R=null;break}var n=t.sibling;if(n!==null){n.return=t.return,R=n;break}R=t.return}}function hf(e){for(;R!==null;){var t=R;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Vo(4,t)}catch(u){pe(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(u){pe(t,s,u)}}var i=t.return;try{Fl(t)}catch(u){pe(t,i,u)}break;case 5:var o=t.return;try{Fl(t)}catch(u){pe(t,o,u)}}}catch(u){pe(t,t.return,u)}if(t===e){R=null;break}var a=t.sibling;if(a!==null){a.return=t.return,R=a;break}R=t.return}}var p1=Math.ceil,ao=Gt.ReactCurrentDispatcher,hc=Gt.ReactCurrentOwner,lt=Gt.ReactCurrentBatchConfig,Q=0,Ce=null,ye=null,_e=0,Ye=0,sr=wn(0),ke=0,Es=null,Fn=0,Oo=0,mc=0,ss=null,He=null,pc=0,kr=1/0,It=null,lo=!1,$l=null,dn=null,di=!1,nn=null,uo=0,is=0,Hl=null,_i=-1,Mi=0;function ze(){return Q&6?ge():_i!==-1?_i:_i=ge()}function fn(e){return e.mode&1?Q&2&&_e!==0?_e&-_e:Zv.transition!==null?(Mi===0&&(Mi=ip()),Mi):(e=te,e!==0||(e=window.event,e=e===void 0?16:fp(e.type)),e):1}function wt(e,t,n,r){if(50<is)throw is=0,Hl=null,Error(M(185));Is(e,n,r),(!(Q&2)||e!==Ce)&&(e===Ce&&(!(Q&2)&&(Oo|=n),ke===4&&en(e,_e)),Ke(e,r),n===1&&Q===0&&!(t.mode&1)&&(kr=ge()+500,Do&&kn()))}function Ke(e,t){var n=e.callbackNode;Zy(e,t);var r=Gi(e,e===Ce?_e:0);if(r===0)n!==null&&kd(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&kd(n),t===1)e.tag===0?Qv(mf.bind(null,e)):Mp(mf.bind(null,e)),Kv(function(){!(Q&6)&&kn()}),n=null;else{switch(op(r)){case 1:n=Bu;break;case 4:n=rp;break;case 16:n=Ui;break;case 536870912:n=sp;break;default:n=Ui}n=Ng(n,bg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function bg(e,t){if(_i=-1,Mi=0,Q&6)throw Error(M(327));var n=e.callbackNode;if(mr()&&e.callbackNode!==n)return null;var r=Gi(e,e===Ce?_e:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=co(e,r);else{t=r;var s=Q;Q|=2;var i=jg();(Ce!==e||_e!==t)&&(It=null,kr=ge()+500,Ln(e,t));do try{y1();break}catch(a){Sg(e,a)}while(!0);ec(),ao.current=i,Q=s,ye!==null?t=0:(Ce=null,_e=0,t=ke)}if(t!==0){if(t===2&&(s=gl(e),s!==0&&(r=s,t=Wl(e,s))),t===1)throw n=Es,Ln(e,0),en(e,r),Ke(e,ge()),n;if(t===6)en(e,r);else{if(s=e.current.alternate,!(r&30)&&!g1(s)&&(t=co(e,r),t===2&&(i=gl(e),i!==0&&(r=i,t=Wl(e,i))),t===1))throw n=Es,Ln(e,0),en(e,r),Ke(e,ge()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(M(345));case 2:Pn(e,He,It);break;case 3:if(en(e,r),(r&130023424)===r&&(t=pc+500-ge(),10<t)){if(Gi(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){ze(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=jl(Pn.bind(null,e,He,It),t);break}Pn(e,He,It);break;case 4:if(en(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-vt(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=ge()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*p1(r/1960))-r,10<r){e.timeoutHandle=jl(Pn.bind(null,e,He,It),r);break}Pn(e,He,It);break;case 5:Pn(e,He,It);break;default:throw Error(M(329))}}}return Ke(e,ge()),e.callbackNode===n?bg.bind(null,e):null}function Wl(e,t){var n=ss;return e.current.memoizedState.isDehydrated&&(Ln(e,t).flags|=256),e=co(e,t),e!==2&&(t=He,He=n,t!==null&&Ul(t)),e}function Ul(e){He===null?He=e:He.push.apply(He,e)}function g1(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(!bt(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 en(e,t){for(t&=~mc,t&=~Oo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-vt(t),r=1<<n;e[n]=-1,t&=~r}}function mf(e){if(Q&6)throw Error(M(327));mr();var t=Gi(e,0);if(!(t&1))return Ke(e,ge()),null;var n=co(e,t);if(e.tag!==0&&n===2){var r=gl(e);r!==0&&(t=r,n=Wl(e,r))}if(n===1)throw n=Es,Ln(e,0),en(e,t),Ke(e,ge()),n;if(n===6)throw Error(M(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pn(e,He,It),Ke(e,ge()),null}function gc(e,t){var n=Q;Q|=1;try{return e(t)}finally{Q=n,Q===0&&(kr=ge()+500,Do&&kn())}}function zn(e){nn!==null&&nn.tag===0&&!(Q&6)&&mr();var t=Q;Q|=1;var n=lt.transition,r=te;try{if(lt.transition=null,te=1,e)return e()}finally{te=r,lt.transition=n,Q=t,!(Q&6)&&kn()}}function xc(){Ye=sr.current,ae(sr)}function Ln(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Gv(n)),ye!==null)for(n=ye.return;n!==null;){var r=n;switch(Qu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Qi();break;case 3:vr(),ae(Ue),ae(Ie),oc();break;case 5:ic(r);break;case 4:vr();break;case 13:ae(ce);break;case 19:ae(ce);break;case 10:tc(r.type._context);break;case 22:case 23:xc()}n=n.return}if(Ce=e,ye=e=hn(e.current,null),_e=Ye=t,ke=0,Es=null,mc=Oo=Fn=0,He=ss=null,En!==null){for(t=0;t<En.length;t++)if(n=En[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}En=null}return e}function Sg(e,t){do{var n=ye;try{if(ec(),Ci.current=oo,io){for(var r=de.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}io=!1}if(On=0,Te=we=de=null,ns=!1,Ps=0,hc.current=null,n===null||n.return===null){ke=1,Es=t,ye=null;break}e:{var i=e,o=n.return,a=n,u=t;if(t=_e,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=ef(o);if(p!==null){p.flags&=-257,tf(p,o,a,i,t),p.mode&1&&Jd(i,c,t),t=p,u=c;var y=t.updateQueue;if(y===null){var w=new Set;w.add(u),t.updateQueue=w}else y.add(u);break e}else{if(!(t&1)){Jd(i,c,t),yc();break e}u=Error(M(426))}}else if(ue&&a.mode&1){var k=ef(o);if(k!==null){!(k.flags&65536)&&(k.flags|=256),tf(k,o,a,i,t),Zu(wr(u,a));break e}}i=u=wr(u,a),ke!==4&&(ke=2),ss===null?ss=[i]:ss.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=og(i,u,t);Kd(i,g);break e;case 1:a=u;var m=i.type,v=i.stateNode;if(!(i.flags&128)&&(typeof m.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(dn===null||!dn.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t;var b=ag(i,a,t);Kd(i,b);break e}}i=i.return}while(i!==null)}Tg(n)}catch(P){t=P,ye===n&&n!==null&&(ye=n=n.return);continue}break}while(!0)}function jg(){var e=ao.current;return ao.current=oo,e===null?oo:e}function yc(){(ke===0||ke===3||ke===2)&&(ke=4),Ce===null||!(Fn&268435455)&&!(Oo&268435455)||en(Ce,_e)}function co(e,t){var n=Q;Q|=2;var r=jg();(Ce!==e||_e!==t)&&(It=null,Ln(e,t));do try{x1();break}catch(s){Sg(e,s)}while(!0);if(ec(),Q=n,ao.current=r,ye!==null)throw Error(M(261));return Ce=null,_e=0,ke}function x1(){for(;ye!==null;)Pg(ye)}function y1(){for(;ye!==null&&!Hy();)Pg(ye)}function Pg(e){var t=Eg(e.alternate,e,Ye);e.memoizedProps=e.pendingProps,t===null?Tg(e):ye=t,hc.current=null}function Tg(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=d1(n,t),n!==null){n.flags&=32767,ye=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ke=6,ye=null;return}}else if(n=c1(n,t,Ye),n!==null){ye=n;return}if(t=t.sibling,t!==null){ye=t;return}ye=t=e}while(t!==null);ke===0&&(ke=5)}function Pn(e,t,n){var r=te,s=lt.transition;try{lt.transition=null,te=1,v1(e,t,n,r)}finally{lt.transition=s,te=r}return null}function v1(e,t,n,r){do mr();while(nn!==null);if(Q&6)throw Error(M(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(M(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Jy(e,i),e===Ce&&(ye=Ce=null,_e=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||di||(di=!0,Ng(Ui,function(){return mr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=lt.transition,lt.transition=null;var o=te;te=1;var a=Q;Q|=4,hc.current=null,h1(e,n),wg(n,e),Fv(bl),Ki=!!kl,bl=kl=null,e.current=n,m1(n),Wy(),Q=a,te=o,lt.transition=i}else e.current=n;if(di&&(di=!1,nn=e,uo=s),i=e.pendingLanes,i===0&&(dn=null),Ky(n.stateNode),Ke(e,ge()),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(lo)throw lo=!1,e=$l,$l=null,e;return uo&1&&e.tag!==0&&mr(),i=e.pendingLanes,i&1?e===Hl?is++:(is=0,Hl=e):is=0,kn(),null}function mr(){if(nn!==null){var e=op(uo),t=lt.transition,n=te;try{if(lt.transition=null,te=16>e?16:e,nn===null)var r=!1;else{if(e=nn,nn=null,uo=0,Q&6)throw Error(M(331));var s=Q;for(Q|=4,R=e.current;R!==null;){var i=R,o=i.child;if(R.flags&16){var a=i.deletions;if(a!==null){for(var u=0;u<a.length;u++){var c=a[u];for(R=c;R!==null;){var d=R;switch(d.tag){case 0:case 11:case 15:rs(8,d,i)}var f=d.child;if(f!==null)f.return=d,R=f;else for(;R!==null;){d=R;var h=d.sibling,p=d.return;if(xg(d),d===c){R=null;break}if(h!==null){h.return=p,R=h;break}R=p}}}var y=i.alternate;if(y!==null){var w=y.child;if(w!==null){y.child=null;do{var k=w.sibling;w.sibling=null,w=k}while(w!==null)}}R=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,R=o;else e:for(;R!==null;){if(i=R,i.flags&2048)switch(i.tag){case 0:case 11:case 15:rs(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,R=g;break e}R=i.return}}var m=e.current;for(R=m;R!==null;){o=R;var v=o.child;if(o.subtreeFlags&2064&&v!==null)v.return=o,R=v;else e:for(o=m;R!==null;){if(a=R,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Vo(9,a)}}catch(P){pe(a,a.return,P)}if(a===o){R=null;break e}var b=a.sibling;if(b!==null){b.return=a.return,R=b;break e}R=a.return}}if(Q=s,kn(),_t&&typeof _t.onPostCommitFiberRoot=="function")try{_t.onPostCommitFiberRoot(No,e)}catch{}r=!0}return r}finally{te=n,lt.transition=t}}return!1}function pf(e,t,n){t=wr(n,t),t=og(e,t,1),e=cn(e,t,1),t=ze(),e!==null&&(Is(e,1,t),Ke(e,t))}function pe(e,t,n){if(e.tag===3)pf(e,e,n);else for(;t!==null;){if(t.tag===3){pf(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(dn===null||!dn.has(r))){e=wr(n,e),e=ag(t,e,1),t=cn(t,e,1),e=ze(),t!==null&&(Is(t,1,e),Ke(t,e));break}}t=t.return}}function w1(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ze(),e.pingedLanes|=e.suspendedLanes&n,Ce===e&&(_e&n)===n&&(ke===4||ke===3&&(_e&130023424)===_e&&500>ge()-pc?Ln(e,0):mc|=n),Ke(e,t)}function Cg(e,t){t===0&&(e.mode&1?(t=ti,ti<<=1,!(ti&130023424)&&(ti=4194304)):t=1);var n=ze();e=Wt(e,t),e!==null&&(Is(e,t,n),Ke(e,n))}function k1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Cg(e,n)}function b1(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(M(314))}r!==null&&r.delete(t),Cg(e,n)}var Eg;Eg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ue.current)We=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return We=!1,u1(e,t,n);We=!!(e.flags&131072)}else We=!1,ue&&t.flags&1048576&&Lp(t,eo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ni(e,t),e=t.pendingProps;var s=gr(t,Ie.current);hr(t,n),s=lc(null,t,r,e,s,n);var i=uc();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,Ge(r)?(i=!0,Zi(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,rc(t),s.updater=Io,t.stateNode=s,s._reactInternals=t,Ml(t,r,e,n),t=Dl(null,t,r,!0,i,n)):(t.tag=0,ue&&i&&qu(t),Ve(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ni(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=j1(r),e=pt(r,e),s){case 0:t=Al(null,t,r,e,n);break e;case 1:t=sf(null,t,r,e,n);break e;case 11:t=nf(null,t,r,e,n);break e;case 14:t=rf(null,t,r,pt(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:pt(r,s),Al(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:pt(r,s),sf(e,t,r,s,n);case 3:e:{if(dg(t),e===null)throw Error(M(387));r=t.pendingProps,i=t.memoizedState,s=i.element,Op(e,t),ro(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=wr(Error(M(423)),t),t=of(e,t,r,n,s);break e}else if(r!==s){s=wr(Error(M(424)),t),t=of(e,t,r,n,s);break e}else for(qe=un(t.stateNode.containerInfo.firstChild),Qe=t,ue=!0,xt=null,n=Ip(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xr(),r===s){t=Ut(e,t,n);break e}Ve(e,t,r,n)}t=t.child}return t;case 5:return Fp(t),e===null&&El(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,Sl(r,s)?o=null:i!==null&&Sl(r,i)&&(t.flags|=32),cg(e,t),Ve(e,t,o,n),t.child;case 6:return e===null&&El(t),null;case 13:return fg(e,t,n);case 4:return sc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=yr(t,null,r,n):Ve(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:pt(r,s),nf(e,t,r,s,n);case 7:return Ve(e,t,t.pendingProps,n),t.child;case 8:return Ve(e,t,t.pendingProps.children,n),t.child;case 12:return Ve(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,ie(to,r._currentValue),r._currentValue=o,i!==null)if(bt(i.value,o)){if(i.children===s.children&&!Ue.current){t=Ut(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=Bt(-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),Nl(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(M(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Nl(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}Ve(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,hr(t,n),s=ut(s),r=r(s),t.flags|=1,Ve(e,t,r,n),t.child;case 14:return r=t.type,s=pt(r,t.pendingProps),s=pt(r.type,s),rf(e,t,r,s,n);case 15:return lg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:pt(r,s),Ni(e,t),t.tag=1,Ge(r)?(e=!0,Zi(t)):e=!1,hr(t,n),ig(t,r,s),Ml(t,r,s,n),Dl(null,t,r,!0,e,n);case 19:return hg(e,t,n);case 22:return ug(e,t,n)}throw Error(M(156,t.tag))};function Ng(e,t){return np(e,t)}function S1(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 ot(e,t,n,r){return new S1(e,t,n,r)}function vc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function j1(e){if(typeof e=="function")return vc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ou)return 11;if(e===Fu)return 14}return 2}function hn(e,t){var n=e.alternate;return n===null?(n=ot(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 Li(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")vc(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Xn:return An(n.children,s,i,t);case Vu:o=8,s|=8;break;case tl:return e=ot(12,n,t,s|2),e.elementType=tl,e.lanes=i,e;case nl:return e=ot(13,n,t,s),e.elementType=nl,e.lanes=i,e;case rl:return e=ot(19,n,t,s),e.elementType=rl,e.lanes=i,e;case Fm:return Fo(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vm:o=10;break e;case Om:o=9;break e;case Ou:o=11;break e;case Fu:o=14;break e;case qt:o=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=ot(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function An(e,t,n,r){return e=ot(7,e,r,t),e.lanes=n,e}function Fo(e,t,n,r){return e=ot(22,e,r,t),e.elementType=Fm,e.lanes=n,e.stateNode={isHidden:!1},e}function Ta(e,t,n){return e=ot(6,e,null,t),e.lanes=n,e}function Ca(e,t,n){return t=ot(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function P1(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=aa(0),this.expirationTimes=aa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=aa(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function wc(e,t,n,r,s,i,o,a,u){return e=new P1(e,t,n,a,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ot(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},rc(i),e}function T1(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Kn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function _g(e){if(!e)return gn;e=e._reactInternals;e:{if(Hn(e)!==e||e.tag!==1)throw Error(M(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ge(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(M(171))}if(e.tag===1){var n=e.type;if(Ge(n))return _p(e,n,t)}return t}function Mg(e,t,n,r,s,i,o,a,u){return e=wc(n,r,!0,e,s,i,o,a,u),e.context=_g(null),n=e.current,r=ze(),s=fn(n),i=Bt(r,s),i.callback=t??null,cn(n,i,s),e.current.lanes=s,Is(e,s,r),Ke(e,r),e}function zo(e,t,n,r){var s=t.current,i=ze(),o=fn(s);return n=_g(n),t.context===null?t.context=n:t.pendingContext=n,t=Bt(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=cn(s,t,o),e!==null&&(wt(e,s,o,i),Ti(e,s,o)),o}function fo(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 gf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function kc(e,t){gf(e,t),(e=e.alternate)&&gf(e,t)}function C1(){return null}var Lg=typeof reportError=="function"?reportError:function(e){console.error(e)};function bc(e){this._internalRoot=e}Bo.prototype.render=bc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(M(409));zo(e,t,null,null)};Bo.prototype.unmount=bc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;zn(function(){zo(null,e,null,null)}),t[Ht]=null}};function Bo(e){this._internalRoot=e}Bo.prototype.unstable_scheduleHydration=function(e){if(e){var t=up();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Jt.length&&t!==0&&t<Jt[n].priority;n++);Jt.splice(n,0,e),n===0&&dp(e)}};function Sc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function $o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function xf(){}function E1(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var c=fo(o);i.call(c)}}var o=Mg(t,r,e,0,null,!1,!1,"",xf);return e._reactRootContainer=o,e[Ht]=o.current,ws(e.nodeType===8?e.parentNode:e),zn(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var c=fo(u);a.call(c)}}var u=wc(e,0,!1,null,null,!1,!1,"",xf);return e._reactRootContainer=u,e[Ht]=u.current,ws(e.nodeType===8?e.parentNode:e),zn(function(){zo(t,u,n,r)}),u}function Ho(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=fo(o);a.call(u)}}zo(t,o,e,s)}else o=E1(n,t,e,s,r);return fo(o)}ap=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Kr(t.pendingLanes);n!==0&&($u(t,n|1),Ke(t,ge()),!(Q&6)&&(kr=ge()+500,kn()))}break;case 13:zn(function(){var r=Wt(e,1);if(r!==null){var s=ze();wt(r,e,1,s)}}),kc(e,1)}};Hu=function(e){if(e.tag===13){var t=Wt(e,134217728);if(t!==null){var n=ze();wt(t,e,134217728,n)}kc(e,134217728)}};lp=function(e){if(e.tag===13){var t=fn(e),n=Wt(e,t);if(n!==null){var r=ze();wt(n,e,t,r)}kc(e,t)}};up=function(){return te};cp=function(e,t){var n=te;try{return te=e,t()}finally{te=n}};hl=function(e,t,n){switch(t){case"input":if(ol(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=Ao(r);if(!s)throw Error(M(90));Bm(r),ol(r,s)}}}break;case"textarea":Hm(e,n);break;case"select":t=n.value,t!=null&&ur(e,!!n.multiple,t,!1)}};qm=gc;Qm=zn;var N1={usingClientEntryPoint:!1,Events:[Os,Zn,Ao,Xm,Ym,gc]},$r={findFiberByHostInstance:Cn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},_1={bundleType:$r.bundleType,version:$r.version,rendererPackageName:$r.rendererPackageName,rendererConfig:$r.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Gt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ep(e),e===null?null:e.stateNode},findFiberByHostInstance:$r.findFiberByHostInstance||C1,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 fi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fi.isDisabled&&fi.supportsFiber)try{No=fi.inject(_1),_t=fi}catch{}}et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N1;et.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Sc(t))throw Error(M(200));return T1(e,t,null,n)};et.createRoot=function(e,t){if(!Sc(e))throw Error(M(299));var n=!1,r="",s=Lg;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[Ht]=t.current,ws(e.nodeType===8?e.parentNode:e),new bc(t)};et.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(M(188)):(e=Object.keys(e).join(","),Error(M(268,e)));return e=ep(t),e=e===null?null:e.stateNode,e};et.flushSync=function(e){return zn(e)};et.hydrate=function(e,t,n){if(!$o(t))throw Error(M(200));return Ho(null,e,t,!0,n)};et.hydrateRoot=function(e,t,n){if(!Sc(e))throw Error(M(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=Lg;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Mg(t,null,e,1,n??null,s,!1,i,o),e[Ht]=t.current,ws(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 Bo(t)};et.render=function(e,t,n){if(!$o(t))throw Error(M(200));return Ho(null,e,t,!1,n)};et.unmountComponentAtNode=function(e){if(!$o(e))throw Error(M(40));return e._reactRootContainer?(zn(function(){Ho(null,null,e,!1,function(){e._reactRootContainer=null,e[Ht]=null})}),!0):!1};et.unstable_batchedUpdates=gc;et.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!$o(n))throw Error(M(200));if(e==null||e._reactInternals===void 0)throw Error(M(38));return Ho(e,t,n,!1,r)};et.version="18.3.1-next-f1338f8080-20240426";function Ag(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ag)}catch(e){console.error(e)}}Ag(),Am.exports=et;var Wo=Am.exports;const mN=wm(Wo);var yf=Wo;Ja.createRoot=yf.createRoot,Ja.hydrateRoot=yf.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 Ns(){return Ns=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},Ns.apply(null,arguments)}var rn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(rn||(rn={}));const vf="popstate";function M1(e){e===void 0&&(e={});function t(r,s){let{pathname:i,search:o,hash:a}=r.location;return Gl("",{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:ho(s)}return A1(t,n,null,e)}function fe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function jc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function L1(){return Math.random().toString(36).substr(2,8)}function wf(e,t){return{usr:e.state,key:e.key,idx:t}}function Gl(e,t,n,r){return n===void 0&&(n=null),Ns({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Nr(t):t,{state:n,key:t&&t.key||r||L1()})}function ho(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 Nr(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 A1(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,o=s.history,a=rn.Pop,u=null,c=d();c==null&&(c=0,o.replaceState(Ns({},o.state,{idx:c}),""));function d(){return(o.state||{idx:null}).idx}function f(){a=rn.Pop;let k=d(),g=k==null?null:k-c;c=k,u&&u({action:a,location:w.location,delta:g})}function h(k,g){a=rn.Push;let m=Gl(w.location,k,g);c=d()+1;let v=wf(m,c),b=w.createHref(m);try{o.pushState(v,"",b)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;s.location.assign(b)}i&&u&&u({action:a,location:w.location,delta:1})}function p(k,g){a=rn.Replace;let m=Gl(w.location,k,g);c=d();let v=wf(m,c),b=w.createHref(m);o.replaceState(v,"",b),i&&u&&u({action:a,location:w.location,delta:0})}function y(k){let g=s.location.origin!=="null"?s.location.origin:s.location.href,m=typeof k=="string"?k:ho(k);return m=m.replace(/ $/,"%20"),fe(g,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,g)}let w={get action(){return a},get location(){return e(s,o)},listen(k){if(u)throw new Error("A history only accepts one active listener");return s.addEventListener(vf,f),u=k,()=>{s.removeEventListener(vf,f),u=null}},createHref(k){return t(s,k)},createURL:y,encodeLocation(k){let g=y(k);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:p,go(k){return o.go(k)}};return w}var kf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(kf||(kf={}));function D1(e,t,n){return n===void 0&&(n="/"),R1(e,t,n)}function R1(e,t,n,r){let s=typeof t=="string"?Nr(t):t,i=br(s.pathname||"/",n);if(i==null)return null;let o=Dg(e);I1(o);let a=null,u=K1(i);for(let c=0;a==null&&c<o.length;++c)a=U1(o[c],u);return a}function Dg(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("/")&&(fe(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=mn([r,u.relativePath]),d=n.concat(u);i.children&&i.children.length>0&&(fe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Dg(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:H1(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 Rg(i.path))s(i,o,u)}),t}function Rg(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=Rg(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 I1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:W1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const V1=/^:[\w-]+$/,O1=3,F1=2,z1=1,B1=10,$1=-2,bf=e=>e==="*";function H1(e,t){let n=e.split("/"),r=n.length;return n.some(bf)&&(r+=$1),t&&(r+=F1),n.filter(s=>!bf(s)).reduce((s,i)=>s+(V1.test(i)?O1:i===""?z1:B1),r)}function W1(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 U1(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=Kl({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:mn([i,f.pathname]),pathnameBase:Z1(mn([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=mn([i,f.pathnameBase]))}return o}function Kl(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=G1(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 y=a[f];return p&&!y?c[h]=void 0:c[h]=(y||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:o,pattern:e}}function G1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),jc(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 K1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return jc(!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 br(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 X1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Y1=e=>X1.test(e);function q1(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?Nr(e):e,i;if(n)if(Y1(n))i=n;else{if(n.includes("//")){let o=n;n=Ig(n),jc(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+n))}n.startsWith("/")?i=Sf(n.substring(1),"/"):i=Sf(n,t)}else i=t;return{pathname:i,search:J1(r),hash:ew(s)}}function Sf(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 Ea(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 Q1(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Pc(e,t){let n=Q1(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Tc(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=Nr(e):(s=Ns({},e),fe(!s.pathname||!s.pathname.includes("?"),Ea("?","pathname","search",s)),fe(!s.pathname||!s.pathname.includes("#"),Ea("#","pathname","hash",s)),fe(!s.search||!s.search.includes("#"),Ea("#","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=q1(s,a),c=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}const Ig=e=>e.replace(/\/\/+/g,"/"),mn=e=>Ig(e.join("/")),Z1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),J1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ew=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function tw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Vg=["post","put","patch","delete"];new Set(Vg);const nw=["get",...Vg];new Set(nw);/**
|
||
* 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 _s(){return _s=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},_s.apply(null,arguments)}const Uo=x.createContext(null),Og=x.createContext(null),Kt=x.createContext(null),Go=x.createContext(null),At=x.createContext({outlet:null,matches:[],isDataRoute:!1}),Fg=x.createContext(null);function rw(e,t){let{relative:n}=t===void 0?{}:t;_r()||fe(!1);let{basename:r,navigator:s}=x.useContext(Kt),{hash:i,pathname:o,search:a}=Yo(e,{relative:n}),u=o;return r!=="/"&&(u=o==="/"?r:mn([r,o])),s.createHref({pathname:u,search:a,hash:i})}function _r(){return x.useContext(Go)!=null}function nt(){return _r()||fe(!1),x.useContext(Go).location}function zg(e){x.useContext(Kt).static||x.useLayoutEffect(e)}function Ko(){let{isDataRoute:e}=x.useContext(At);return e?yw():sw()}function sw(){_r()||fe(!1);let e=x.useContext(Uo),{basename:t,future:n,navigator:r}=x.useContext(Kt),{matches:s}=x.useContext(At),{pathname:i}=nt(),o=JSON.stringify(Pc(s,n.v7_relativeSplatPath)),a=x.useRef(!1);return zg(()=>{a.current=!0}),x.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let f=Tc(c,JSON.parse(o),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:mn([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,o,i,e])}const iw=x.createContext(null);function ow(e){let t=x.useContext(At).outlet;return t&&x.createElement(iw.Provider,{value:e},t)}function Xo(){let{matches:e}=x.useContext(At),t=e[e.length-1];return t?t.params:{}}function Yo(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=x.useContext(Kt),{matches:s}=x.useContext(At),{pathname:i}=nt(),o=JSON.stringify(Pc(s,r.v7_relativeSplatPath));return x.useMemo(()=>Tc(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function aw(e,t){return lw(e,t)}function lw(e,t,n,r){_r()||fe(!1);let{navigator:s}=x.useContext(Kt),{matches:i}=x.useContext(At),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let u=o?o.pathnameBase:"/";o&&o.route;let c=nt(),d;if(t){var f;let k=typeof t=="string"?Nr(t):t;u==="/"||(f=k.pathname)!=null&&f.startsWith(u)||fe(!1),d=k}else d=c;let h=d.pathname||"/",p=h;if(u!=="/"){let k=u.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(k.length).join("/")}let y=D1(e,{pathname:p}),w=hw(y&&y.map(k=>Object.assign({},k,{params:Object.assign({},a,k.params),pathname:mn([u,s.encodeLocation?s.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?u:mn([u,s.encodeLocation?s.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),i,n,r);return t&&w?x.createElement(Go.Provider,{value:{location:_s({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:rn.Pop}},w):w}function uw(){let e=xw(),t=tw(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 x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:s},n):null,null)}const cw=x.createElement(uw,null);class dw extends x.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?x.createElement(At.Provider,{value:this.props.routeContext},x.createElement(Fg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function fw(e){let{routeContext:t,match:n,children:r}=e,s=x.useContext(Uo);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(At.Provider,{value:t},r)}function hw(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||fe(!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,y=f.route.loader&&h[f.route.id]===void 0&&(!p||p[f.route.id]===void 0);if(f.route.lazy||y){u=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((d,f,h)=>{let p,y=!1,w=null,k=null;n&&(p=a&&f.route.id?a[f.route.id]:void 0,w=f.route.errorElement||cw,u&&(c<0&&h===0?(vw("route-fallback"),y=!0,k=null):c===h&&(y=!0,k=f.route.hydrateFallbackElement||null)));let g=t.concat(o.slice(0,h+1)),m=()=>{let v;return p?v=w:y?v=k:f.route.Component?v=x.createElement(f.route.Component,null):f.route.element?v=f.route.element:v=d,x.createElement(fw,{match:f,routeContext:{outlet:d,matches:g,isDataRoute:n!=null},children:v})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?x.createElement(dw,{location:n.location,revalidation:n.revalidation,component:w,error:p,children:m(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):m()},null)}var Bg=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Bg||{}),$g=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}($g||{});function mw(e){let t=x.useContext(Uo);return t||fe(!1),t}function pw(e){let t=x.useContext(Og);return t||fe(!1),t}function gw(e){let t=x.useContext(At);return t||fe(!1),t}function Hg(e){let t=gw(),n=t.matches[t.matches.length-1];return n.route.id||fe(!1),n.route.id}function xw(){var e;let t=x.useContext(Fg),n=pw(),r=Hg();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function yw(){let{router:e}=mw(Bg.UseNavigateStable),t=Hg($g.UseNavigateStable),n=x.useRef(!1);return zg(()=>{n.current=!0}),x.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,_s({fromRouteId:t},i)))},[e,t])}const jf={};function vw(e,t,n){jf[e]||(jf[e]=!0)}function ww(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function mo(e){let{to:t,replace:n,state:r,relative:s}=e;_r()||fe(!1);let{future:i,static:o}=x.useContext(Kt),{matches:a}=x.useContext(At),{pathname:u}=nt(),c=Ko(),d=Tc(t,Pc(a,i.v7_relativeSplatPath),u,s==="path"),f=JSON.stringify(d);return x.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:s}),[c,f,s,n,r]),null}function Cc(e){return ow(e.context)}function B(e){fe(!1)}function kw(e){let{basename:t="/",children:n=null,location:r,navigationType:s=rn.Pop,navigator:i,static:o=!1,future:a}=e;_r()&&fe(!1);let u=t.replace(/^\/*/,"/"),c=x.useMemo(()=>({basename:u,navigator:i,static:o,future:_s({v7_relativeSplatPath:!1},a)}),[u,a,i,o]);typeof r=="string"&&(r=Nr(r));let{pathname:d="/",search:f="",hash:h="",state:p=null,key:y="default"}=r,w=x.useMemo(()=>{let k=br(d,u);return k==null?null:{location:{pathname:k,search:f,hash:h,state:p,key:y},navigationType:s}},[u,d,f,h,p,y,s]);return w==null?null:x.createElement(Kt.Provider,{value:c},x.createElement(Go.Provider,{children:n,value:w}))}function bw(e){let{children:t,location:n}=e;return aw(Xl(t),n)}new Promise(()=>{});function Xl(e,t){t===void 0&&(t=[]);let n=[];return x.Children.forEach(e,(r,s)=>{if(!x.isValidElement(r))return;let i=[...t,s];if(r.type===x.Fragment){n.push.apply(n,Xl(r.props.children,i));return}r.type!==B&&fe(!1),!r.props.index||!r.props.children||fe(!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=Xl(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 po(){return po=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},po.apply(null,arguments)}function Wg(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 Sw(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function jw(e,t){return e.button===0&&(!t||t==="_self")&&!Sw(e)}function Yl(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 Pw(e,t){let n=Yl(e);return t&&t.forEach((r,s)=>{n.has(s)||t.getAll(s).forEach(i=>{n.append(s,i)})}),n}const Tw=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Cw=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],Ew="6";try{window.__reactRouterVersion=Ew}catch{}const Nw=x.createContext({isTransitioning:!1}),_w="startTransition",Pf=wy[_w];function Mw(e){let{basename:t,children:n,future:r,window:s}=e,i=x.useRef();i.current==null&&(i.current=M1({window:s,v5Compat:!0}));let o=i.current,[a,u]=x.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},d=x.useCallback(f=>{c&&Pf?Pf(()=>u(f)):u(f)},[u,c]);return x.useLayoutEffect(()=>o.listen(d),[o,d]),x.useEffect(()=>ww(r),[r]),x.createElement(kw,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const Lw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Aw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,U=x.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=Wg(t,Tw),{basename:p}=x.useContext(Kt),y,w=!1;if(typeof c=="string"&&Aw.test(c)&&(y=c,Lw))try{let v=new URL(window.location.href),b=c.startsWith("//")?new URL(v.protocol+c):new URL(c),P=br(b.pathname,p);b.origin===v.origin&&P!=null?c=P+b.search+b.hash:w=!0}catch{}let k=rw(c,{relative:s}),g=Iw(c,{replace:o,state:a,target:u,preventScrollReset:d,relative:s,viewTransition:f});function m(v){r&&r(v),v.defaultPrevented||g(v)}return x.createElement("a",po({},h,{href:y||k,onClick:w||i?r:m,ref:n,target:u}))}),Dw=x.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=Wg(t,Cw),h=Yo(u,{relative:f.relative}),p=nt(),y=x.useContext(Og),{navigator:w,basename:k}=x.useContext(Kt),g=y!=null&&Ow(h)&&c===!0,m=w.encodeLocation?w.encodeLocation(h).pathname:h.pathname,v=p.pathname,b=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;s||(v=v.toLowerCase(),b=b?b.toLowerCase():null,m=m.toLowerCase()),b&&k&&(b=br(b,k)||b);const P=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let C=v===m||!o&&v.startsWith(m)&&v.charAt(P)==="/",S=b!=null&&(b===m||!o&&b.startsWith(m)&&b.charAt(m.length)==="/"),j={isActive:C,isPending:S,isTransitioning:g},A=C?r:void 0,N;typeof i=="function"?N=i(j):N=[i,C?"active":null,S?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let O=typeof a=="function"?a(j):a;return x.createElement(U,po({},f,{"aria-current":A,className:N,ref:n,style:O,to:u,viewTransition:c}),typeof d=="function"?d(j):d)});var ql;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ql||(ql={}));var Tf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Tf||(Tf={}));function Rw(e){let t=x.useContext(Uo);return t||fe(!1),t}function Iw(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:o,viewTransition:a}=t===void 0?{}:t,u=Ko(),c=nt(),d=Yo(e,{relative:o});return x.useCallback(f=>{if(jw(f,n)){f.preventDefault();let h=r!==void 0?r:ho(c)===ho(d);u(e,{replace:h,state:s,preventScrollReset:i,relative:o,viewTransition:a})}},[c,u,d,r,s,n,e,i,o,a])}function Vw(e){let t=x.useRef(Yl(e)),n=x.useRef(!1),r=nt(),s=x.useMemo(()=>Pw(r.search,n.current?null:t.current),[r.search]),i=Ko(),o=x.useCallback((a,u)=>{const c=Yl(typeof a=="function"?a(s):a);n.current=!0,i("?"+c,u)},[i,s]);return[s,o]}function Ow(e,t){t===void 0&&(t={});let n=x.useContext(Nw);n==null&&fe(!1);let{basename:r}=Rw(ql.useViewTransitionState),s=Yo(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=br(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=br(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Kl(s.pathname,o)!=null||Kl(s.pathname,i)!=null}const Fw="modulepreload",zw=function(e){return"/"+e},Cf={},J=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=zw(u),u in Cf)return;Cf[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":Fw,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)})};function Bw(){const{pathname:e}=nt();return x.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"instant"})},[e]),null}const $w='a, button, [role="button"], label, select, summary, [data-cursor="hover"], .cursor-pointer',Hw='input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="file"]), textarea, [contenteditable="true"]';function Ww(){const e=x.useRef(null),t=x.useRef(null),n=x.useRef(null),r=x.useRef(null),s=x.useRef(null);return x.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),y=Math.sin(h);let w=-100,k=-100,g=0,m=2.4,v=2.4,b=16,P=6.5,C=16,S=6.5,j=!1,A,N=performance.now();const O=E=>{const T=Math.min((E-N)/1e3,.05);N=E,m+=(v-m)*Math.min(1,T*8),b+=(C-b)*Math.min(1,T*10),P+=(S-P)*Math.min(1,T*10),g+=m*T,u.style.transform=`translate3d(${w}px, ${k}px, 0)`,c.style.transform=`translate3d(${w}px, ${k}px, 0)`;const D=Math.cos(g)*b,$=Math.sin(g)*P;d.style.transform=`translate(${D*p-$*y}px, ${D*y+$*p}px)`,A=requestAnimationFrame(O)},H=E=>{a.dataset.state=E;const T=E==="hover";v=T?7:2.4,C=T?23:16,S=T?9.5:6.5},_=E=>{w=E.clientX,k=E.clientY,j||(j=!0,a.dataset.hidden="false")},L=E=>{const T=E.target;T instanceof Element&&(T.closest(Hw)?H("text"):T.closest($w)?H("hover"):H("default"))},W=()=>{a.dataset.down="true",f.style.left=`${w}px`,f.style.top=`${k}px`,f.classList.remove("is-live"),f.offsetWidth,f.classList.add("is-live")},F=()=>{a.dataset.down="false"},q=()=>{j=!1,a.dataset.hidden="true"};return document.addEventListener("mousemove",_,{passive:!0}),document.addEventListener("mouseover",L,{passive:!0}),document.addEventListener("mousedown",W,{passive:!0}),document.addEventListener("mouseup",F,{passive:!0}),document.documentElement.addEventListener("mouseleave",q),window.addEventListener("blur",q),A=requestAnimationFrame(O),()=>{cancelAnimationFrame(A),document.removeEventListener("mousemove",_),document.removeEventListener("mouseover",L),document.removeEventListener("mousedown",W),document.removeEventListener("mouseup",F),document.documentElement.removeEventListener("mouseleave",q),window.removeEventListener("blur",q),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 Uw=`${"/".replace(/\/$/,"")}/api`;let Ql=0;const Zl=new Set,Ef=e=>{Ql+=e,Zl.forEach(t=>t(Ql))},Gw=()=>Ql,Kw=e=>(Zl.add(e),()=>Zl.delete(e));async function Hr(e,t={}){Ef(1);try{return await Xw(e,t)}finally{Ef(-1)}}async function Xw(e,t){const n=await fetch(`${Uw}${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)throw new Error((s==null?void 0:s.error)||`Fehler ${n.status}`);if(s===null&&r)throw new Error("Unerwartete Server-Antwort (kein gültiges JSON)");return s}const ee={get:(e,t)=>Hr(e,t),post:(e,t)=>Hr(e,{method:"POST",body:t instanceof FormData?t:JSON.stringify(t)}),put:(e,t)=>Hr(e,{method:"PUT",body:JSON.stringify(t)}),patch:(e,t)=>Hr(e,{method:"PATCH",body:JSON.stringify(t)}),delete:e=>Hr(e,{method:"DELETE"})};function Yw({children:e}){const[t,n]=x.useState({pathname:null,needsSetup:null}),r=nt(),s=t.needsSetup===!1;x.useEffect(()=>{if(s)return;let o=!1;return ee.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(mo,{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(mo,{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 Ug=(...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 qw=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 Qw=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 Nf=e=>{const t=Qw(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 Na={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 Zw=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},Gg=x.createContext({});function pN({children:e,size:t,color:n,strokeWidth:r,absoluteStrokeWidth:s,className:i}){const o=x.useMemo(()=>({size:t,color:n,strokeWidth:r,absoluteStrokeWidth:s,className:i}),[t,n,r,s,i]);return x.createElement(Gg.Provider,{value:o},e)}const Jw=()=>x.useContext(Gg),ek=x.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=""}=Jw()??{},y=r??f?Number(n??d)*24/Number(t??c):n??d;return x.createElement("svg",{ref:u,...Na,width:t??c??Na.width,height:t??c??Na.height,stroke:e??h,strokeWidth:y,className:Ug("lucide",p,s),...!i&&!Zw(a)&&{"aria-hidden":"true"},...a},[...o.map(([w,k])=>x.createElement(w,k)),...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 G=(e,t)=>{const n=x.forwardRef(({className:r,...s},i)=>x.createElement(ek,{ref:i,iconNode:t,className:Ug(`lucide-${qw(Nf(e))}`,`lucide-${e}`,r),...s}));return n.displayName=Nf(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 tk=[["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"}]],nk=G("boxes",tk);/**
|
||
* @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 rk=[["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"}]],sk=G("car-front",rk);/**
|
||
* @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 ik=[["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"}]],Kg=G("car",ik);/**
|
||
* @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 ok=[["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"}]],ak=G("caravan",ok);/**
|
||
* @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 lk=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],uk=G("check",lk);/**
|
||
* @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 ck=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],dk=G("chevron-down",ck);/**
|
||
* @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 fk=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],hk=G("chevron-left",fk);/**
|
||
* @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 mk=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],pk=G("chevron-right",mk);/**
|
||
* @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 gk=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],xk=G("chevron-up",gk);/**
|
||
* @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 yk=[["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"}]],vk=G("circle-play",yk);/**
|
||
* @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 wk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Xg=G("clock",wk);/**
|
||
* @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 kk=[["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"}]],bk=G("cog",kk);/**
|
||
* @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 Sk=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],jk=G("download",Sk);/**
|
||
* @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 Pk=[["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"}]],Tk=G("external-link",Pk);/**
|
||
* @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 Ck=[["path",{d:"M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5",key:"4pqfef"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 12v-1",key:"1ej8lb"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["path",{d:"M8 7V6",key:"1nbb54"}],["circle",{cx:"8",cy:"20",r:"2",key:"ckkr5m"}]],Ek=G("file-archive",Ck);/**
|
||
* @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 Nk=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]],_k=G("file-image",Nk);/**
|
||
* @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 Mk=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M15.033 13.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56v-4.704a.645.645 0 0 1 .967-.56z",key:"1tzo1f"}]],Lk=G("file-play",Mk);/**
|
||
* @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 Ak=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],_f=G("file-text",Ak);/**
|
||
* @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 Dk=[["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"}]],Rk=G("flame",Dk);/**
|
||
* @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 Ik=[["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"}]],Vk=G("layout-dashboard",Ik);/**
|
||
* @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 Ok=[["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"}]],Fk=G("lightbulb",Ok);/**
|
||
* @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 zk=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Bk=G("lock",zk);/**
|
||
* @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 $k=[["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"}]],Hk=G("log-in",$k);/**
|
||
* @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 Wk=[["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"}]],Mf=G("mail",Wk);/**
|
||
* @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 Uk=[["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"}]],Yg=G("map-pin",Uk);/**
|
||
* @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 Gk=[["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"}]],Kk=G("message-circle",Gk);/**
|
||
* @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 Xk=[["rect",{x:"5",y:"2",width:"14",height:"20",rx:"7",key:"11ol66"}],["path",{d:"M12 6v4",key:"16clxf"}]],Yk=G("mouse",Xk);/**
|
||
* @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 qk=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],Qk=G("music",qk);/**
|
||
* @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 Zk=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Jk=G("navigation",Zk);/**
|
||
* @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 eb=[["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"}]],tb=G("package",eb);/**
|
||
* @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 nb=[["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"}]],go=G("phone",nb);/**
|
||
* @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 rb=[["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"}]],sb=G("send",rb);/**
|
||
* @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 ib=[["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"}]],ob=G("shield-alert",ib);/**
|
||
* @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 ab=[["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"}]],lb=G("shopping-bag",ab);/**
|
||
* @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 ub=[["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"}]],cb=G("thumbs-up",ub);/**
|
||
* @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 db=[["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"}]],fb=G("user",db);/**
|
||
* @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 hb=[["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"}]],mb=G("video",hb);/**
|
||
* @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 pb=[["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"}]],gb=G("zap",pb),qg=x.createContext(null);function xb(){const e=new Date,t=e.getHours()+e.getMinutes()/60;return t>=6.5&&t<21?"light":"dark"}function yb({children:e}){const[t,n]=x.useState(()=>{const s=localStorage.getItem("hifi-theme");return s==="light"||s==="dark"?s:xb()});x.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(qg.Provider,{value:{theme:t,toggleTheme:r},children:e})}function vb(){return x.useContext(qg)}const wb={nav:{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:{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:{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`,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:{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:{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."}},kb={nav:{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:{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:{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`,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:{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:{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."}},Ai={de:wb,en:kb};function bb(){const e=localStorage.getItem("hifi-lang");return e==="de"||e==="en"?e:(navigator.language||"de").toLowerCase().startsWith("de")?"de":"en"}function Jl(e,t){return t.split(".").reduce((n,r)=>n==null?void 0:n[r],e)}const Qg=x.createContext({language:"de",setLanguage:()=>{},toggleLanguage:()=>{},t:e=>{const t=Jl(Ai.de,e);return t!==void 0?t:e}});function Lf({children:e}){const[t,n]=x.useState(bb);x.useEffect(()=>{document.documentElement.setAttribute("lang",t),localStorage.setItem("hifi-lang",t)},[t]);const r=()=>n(i=>i==="de"?"en":"de"),s=i=>{const o=Ai[t]||Ai.de,a=Jl(o,i);if(a!==void 0)return a;const u=Jl(Ai.de,i);return u!==void 0?u:i};return l.jsx(Qg.Provider,{value:{language:t,setLanguage:n,toggleLanguage:r,t:s},children:e})}function Ee(){return x.useContext(Qg)}function Zg({overHero:e=!1,forceDark:t=!1}){const{theme:n,toggleTheme:r}=vb(),{t:s}=Ee();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 Jg=x.createContext(null);function Sb({children:e}){const[t,n]=x.useState(null),[r,s]=x.useState(!0);x.useEffect(()=>{ee.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 ee.post("/auth/login",{username:d,password:f});return h.requires_2fa?{requires2fa:!0}:(n(h),{requires2fa:!1})},o=async d=>{const f=await ee.post("/auth/verify-2fa",{code:d});n(f)},a=async()=>{await ee.post("/auth/logout",{}),n(null)},u=async()=>{const d=await ee.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(Jg.Provider,{value:{user:t,loading:r,login:i,verifyTwoFactor:o,logout:a,refreshUser:u,hasPermission:c},children:e})}function zs(){return x.useContext(Jg)}const e0=x.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}),jb=e0.Provider;function jt(){return x.useContext(e0)}const eu="/assets/logo-dark-R-ckaBhx.png",Pb="https://www.audio4cars.de/",Af=e=>(e||"").replace(/[^\d+]/g,""),Df=70,Tb=500;function Cb({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 Eb({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 _a=[{code:"de",label:"Deutsch",Flag:Cb},{code:"en",label:"English",Flag:Eb}];function Nb({overHero:e=!1}){const{language:t,setLanguage:n,t:r}=Ee(),[s,i]=x.useState(!1),o=x.useRef(null),a=_a.find(u=>u.code===t)||_a[0];return x.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:_a.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 _b(){const[e,t]=x.useState(!1),[n,r]=x.useState(!1),[s,i]=x.useState(!1),{user:o}=zs(),{phone:a,whatsapp:u,logo_dark_path:c,has_downloads:d}=jt(),{t:f}=Ee(),h=6+(d?1:0)+(a?1:0)+(u?1:0),y=nt().pathname==="/",[w,k]=x.useState(!y);x.useEffect(()=>{if(!y){k(!0);return}const S=()=>k(window.scrollY>24);return S(),window.addEventListener("scroll",S,{passive:!0}),()=>window.removeEventListener("scroll",S)},[y]);const g=y&&!w;x.useEffect(()=>{if(e){r(!0);let A;const N=requestAnimationFrame(()=>{A=requestAnimationFrame(()=>i(!0))});return()=>{cancelAnimationFrame(N),A&&cancelAnimationFrame(A)}}i(!1);const S=Tb+(h-1)*Df,j=setTimeout(()=>r(!1),S);return()=>clearTimeout(j)},[e,h]);const m=()=>`transition-all duration-500 ease-out ${s?"opacity-100":"opacity-0"}`,v=S=>({transitionDelay:`${(s?S:h-1-S)*Df}ms`,transform:s?"translateY(0)":"translateY(-140px)"}),b=o&&l.jsx(U,{to:"/admin","aria-label":f("nav.adminPanel"),title:f("nav.adminPanel"),className:`rounded-full p-2 transition ${g?"text-white hover:bg-white/10":"text-neutral-300 hover:bg-neutral-800"}`,children:l.jsx(Vk,{className:"h-5 w-5"})});let P=0;const C=()=>v(P++);return l.jsxs("header",{className:`sticky top-0 z-30 border-b transition-colors duration-300 ${g?"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",{onClick:()=>t(!0),"aria-label":f("nav.openMenu"),className:`rounded-md p-2 transition ${g?"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(U,{to:"/",className:"flex items-center justify-self-center rounded-lg px-2 py-1",children:l.jsx("img",{src:c||eu,alt:"HifiPlanet",className:"h-14 w-auto sm:h-16"})}),l.jsxs("div",{className:"flex items-center justify-self-end gap-1",children:[b,!e&&l.jsx(Nb,{overHero:g}),l.jsx(Zg,{overHero:g,forceDark:!0})]})]}),n&&Wo.createPortal(l.jsx("div",{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":f("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:f("nav.close")})]}),l.jsx(U,{to:"/fahrzeuge",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${m()}`,style:C(),children:f("nav.vehicles")}),l.jsx(U,{to:"/leistungen",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${m()}`,style:C(),children:f("nav.services")}),l.jsx(U,{to:"/galerie",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${m()}`,style:C(),children:f("nav.gallery")}),l.jsx(U,{to:"/kontakt",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${m()}`,style:C(),children:f("nav.contact")}),d&&l.jsx(U,{to:"/downloads",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${m()}`,style:C(),children:f("nav.downloads")}),l.jsx("div",{className:`h-px w-16 bg-brand-500/60 ${m()}`,style:C()}),a&&l.jsxs("a",{href:`tel:${Af(a)}`,className:`flex items-center gap-2 text-sm font-semibold uppercase tracking-wide text-neutral-600 hover:text-brand-600 ${m()}`,style:C(),children:[l.jsx(go,{className:"h-4 w-4"}),a]}),u&&l.jsxs("a",{href:`https://wa.me/${Af(u).replace(/^0/,"49").replace("+","")}`,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:C(),children:[l.jsx(Kk,{className:"h-4 w-4"}),f("nav.whatsapp")]}),l.jsxs("a",{href:Pb,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:C(),children:[l.jsx(lb,{className:"h-4 w-4"}),f("nav.shop")]})]})}),document.body)]})}const Rf="hifiplanet-cookie-consent",t0={necessary:!0,external:!1,analytics:!1},n0=x.createContext({consent:t0,decided:!1,settingsOpen:!1,acceptAll:()=>{},rejectNonEssential:()=>{},saveCustom:()=>{},openSettings:()=>{},closeSettings:()=>{}});function Mb({children:e}){const[t,n]=x.useState(t0),[r,s]=x.useState(!1),[i,o]=x.useState(!1);x.useEffect(()=>{try{const p=localStorage.getItem(Rf);if(p){const y=JSON.parse(p);n({necessary:!0,external:!!y.external,analytics:!!y.analytics}),s(!0)}}catch{}},[]);const a=x.useCallback(p=>{n(p),s(!0),o(!1),localStorage.setItem(Rf,JSON.stringify({...p,decidedAt:new Date().toISOString()}))},[]),u=x.useCallback(()=>a({necessary:!0,external:!0,analytics:!0}),[a]),c=x.useCallback(()=>a({necessary:!0,external:!1,analytics:!1}),[a]),d=x.useCallback(p=>a({necessary:!0,external:!!p.external,analytics:!!p.analytics}),[a]),f=x.useCallback(()=>o(!0),[]),h=x.useCallback(()=>o(!1),[]);return l.jsx(n0.Provider,{value:{consent:t,decided:r,settingsOpen:i,acceptAll:u,rejectNonEssential:c,saveCustom:d,openSettings:f,closeSettings:h},children:e})}function Mr(){return x.useContext(n0)}const Lb=["mon","tue","wed","thu","fri","sat","sun"],Ab=["sun","mon","tue","wed","thu","fri","sat"],Ma={mon:"Mo",tue:"Di",wed:"Mi",thu:"Do",fri:"Fr",sat:"Sa",sun:"So"};function Db(e){const t=new Date,n=e==null?void 0:e[Ab[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 Rb(e){return!e||e.closed||!e.open||!e.close?null:`${e.open} – ${e.close} Uhr`}function r0(e,t="Geschlossen"){const n=[];return Lb.forEach(r=>{const s=Rb(e==null?void 0:e[r])||t,i=n[n.length-1];i&&i.label===s?i.days=`${i.firstLabel}-${Ma[r]}`:n.push({key:r,days:Ma[r],firstLabel:Ma[r],label:s})}),n}const Ib=e=>(e||"").replace(/[^\d+]/g,"");function Vb(){const{phone:e,contact_email:t,address_street:n,address_zip:r,address_city:s,business_hours:i,has_downloads:o}=jt(),a=Db(i),{openSettings:u}=Mr(),{pathname:c}=nt(),d=c==="/",{t:f}=Ee(),h=[n,[r,s].filter(Boolean).join(" ")].filter(Boolean).join(", "),p=`https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(h)}`,y=r0(i,f("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 ${d?"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(Yg,{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:p,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(Jk,{className:"h-3.5 w-3.5"}),f("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(go,{className:"h-4 w-4 text-brand-500"}),l.jsx("p",{className:"font-semibold text-neutral-900 dark:text-white",children:f("footer.contactHeading")})]}),l.jsx("p",{children:l.jsx("a",{href:`tel:${Ib(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(U,{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:f("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(Xg,{className:"h-4 w-4 text-brand-500"}),l.jsx("p",{className:"font-semibold text-neutral-900 dark:text-white",children:f("footer.hoursHeading")})]}),l.jsxs("span",{className:`flex items-center gap-1.5 rounded-full px-2 py-0.5 text-[11px] font-semibold ${a?"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 ${a?"bg-green-500":"bg-neutral-400"}`}),f(a?"footer.open":"footer.closed")]})]}),l.jsx("dl",{className:"space-y-1.5",children:y.map(w=>l.jsxs("div",{className:"flex items-center justify-between gap-3",children:[l.jsx("dt",{className:"text-neutral-500 dark:text-neutral-400",children:w.days}),l.jsx("dd",{className:"font-medium text-neutral-700 dark:text-neutral-200",children:w.label})]},w.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:f("footer.copyright")(new Date().getFullYear())}),l.jsx("span",{children:"·"}),l.jsx(U,{to:"/impressum",className:"hover:text-brand-500",children:f("footer.imprint")}),l.jsx("span",{children:"·"}),l.jsx(U,{to:"/datenschutz",className:"hover:text-brand-500",children:f("footer.privacy")}),l.jsx("span",{children:"·"}),l.jsx(U,{to:"/agb",className:"hover:text-brand-500",children:f("footer.terms")}),l.jsx("span",{children:"·"}),o&&l.jsxs(l.Fragment,{children:[l.jsx(U,{to:"/downloads",className:"hover:text-brand-500",children:f("footer.downloads")}),l.jsx("span",{children:"·"})]}),l.jsx("button",{type:"button",onClick:u,className:"hover:text-brand-500",children:f("footer.cookieSettings")})]})})]})}const Ec=x.createContext({});function xn(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ob=typeof window<"u",Bs=Ob?x.useLayoutEffect:x.useEffect,qo=x.createContext(null);function Nc(e,t){e.indexOf(t)===-1&&e.push(t)}function xo(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const St=(e,t,n)=>n>t?t:n<e?e:n;let _c=()=>{};const yn={},s0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),i0=e=>typeof e=="object"&&e!==null,o0=e=>/^0[^.\s]+$/u.test(e);function a0(e){let t;return()=>(t===void 0&&(t=e()),t)}const Xe=e=>e,$s=(...e)=>e.reduce((t,n)=>r=>n(t(r))),Sr=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class Mc{constructor(){this.subscriptions=[]}add(t){return Nc(this.subscriptions,t),()=>xo(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 Ze=e=>e*1e3,at=e=>e/1e3,Lc=(e,t)=>t?e*(1e3/t):0,l0=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Fb=1e-7,zb=12;function Bb(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=l0(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>Fb&&++a<zb);return o}function Hs(e,t,n,r){if(e===t&&n===r)return Xe;const s=i=>Bb(i,0,1,e,n);return i=>i===0||i===1?i:l0(s(i),t,r)}const u0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,c0=e=>t=>1-e(1-t),d0=Hs(.33,1.53,.69,.99),Ac=c0(d0),f0=u0(Ac),h0=e=>e>=1?1:(e*=2)<1?.5*Ac(e):.5*(2-Math.pow(2,-10*(e-1))),Dc=e=>1-Math.sin(Math.acos(e)),m0=c0(Dc),p0=u0(Dc),$b=Hs(.42,0,1,1),Hb=Hs(0,0,.58,1),g0=Hs(.42,0,.58,1),Wb=e=>Array.isArray(e)&&typeof e[0]!="number",x0=e=>Array.isArray(e)&&typeof e[0]=="number",Ub={linear:Xe,easeIn:$b,easeInOut:g0,easeOut:Hb,circIn:Dc,circInOut:p0,circOut:m0,backIn:Ac,backInOut:f0,backOut:d0,anticipate:h0},Gb=e=>typeof e=="string",If=e=>{if(x0(e)){_c(e.length===4);const[t,n,r,s]=e;return Hs(t,n,r,s)}else if(Gb(e))return Ub[e];return e},hi=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Kb(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 Xb=40;function y0(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=hi.reduce((v,b)=>(v[b]=Kb(i),v),{}),{setup:a,read:u,resolveKeyframes:c,preUpdate:d,update:f,preRender:h,render:p,postRender:y}=o,w=()=>{const v=yn.useManualTiming,b=v?s.timestamp:performance.now();n=!1,v||(s.delta=r?1e3/60:Math.max(Math.min(b-s.timestamp,Xb),1)),s.timestamp=b,s.isProcessing=!0,a.process(s),u.process(s),c.process(s),d.process(s),f.process(s),h.process(s),p.process(s),y.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(w))},k=()=>{n=!0,r=!0,s.isProcessing||e(w)};return{schedule:hi.reduce((v,b)=>{const P=o[b];return v[b]=(C,S=!1,j=!1)=>(n||k(),P.schedule(C,S,j)),v},{}),cancel:v=>{for(let b=0;b<hi.length;b++)o[hi[b]].cancel(v)},state:s,steps:o}}const{schedule:Y,cancel:dt,state:Pe,steps:La}=y0(typeof requestAnimationFrame<"u"?requestAnimationFrame:Xe,!0);let Di;function Yb(){Di=void 0}const Oe={now:()=>(Di===void 0&&Oe.set(Pe.isProcessing||yn.useManualTiming?Pe.timestamp:performance.now()),Di),set:e=>{Di=e,queueMicrotask(Yb)}},v0=e=>t=>typeof t=="string"&&t.startsWith(e),w0=v0("--"),qb=v0("var(--"),Rc=e=>qb(e)?Qb.test(e.split("/*")[0].trim()):!1,Qb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Vf(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Lr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ms={...Lr,transform:e=>St(0,1,e)},mi={...Lr,default:1},os=e=>Math.round(e*1e5)/1e5,Ic=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Zb(e){return e==null}const Jb=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Vc=(e,t)=>n=>!!(typeof n=="string"&&Jb.test(n)&&n.startsWith(e)||t&&!Zb(n)&&Object.prototype.hasOwnProperty.call(n,t)),k0=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(Ic);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},e2=e=>St(0,255,e),Aa={...Lr,transform:e=>Math.round(e2(e))},_n={test:Vc("rgb","red"),parse:k0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Aa.transform(e)+", "+Aa.transform(t)+", "+Aa.transform(n)+", "+os(Ms.transform(r))+")"};function t2(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 tu={test:Vc("#"),parse:t2,transform:_n.transform},Ws=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Rt=Ws("deg"),Lt=Ws("%"),V=Ws("px"),n2=Ws("vh"),r2=Ws("vw"),Of={...Lt,parse:e=>Lt.parse(e)/100,transform:e=>Lt.transform(e*100)},ir={test:Vc("hsl","hue"),parse:k0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Lt.transform(os(t))+", "+Lt.transform(os(n))+", "+os(Ms.transform(r))+")"},xe={test:e=>_n.test(e)||tu.test(e)||ir.test(e),parse:e=>_n.test(e)?_n.parse(e):ir.test(e)?ir.parse(e):tu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?_n.transform(e):ir.transform(e),getAnimatableNone:e=>{const t=xe.parse(e);return t.alpha=0,xe.transform(t)}},s2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function i2(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Ic))==null?void 0:t.length)||0)+(((n=e.match(s2))==null?void 0:n.length)||0)>0}const b0="number",S0="color",o2="var",a2="var(",Ff="${}",l2=/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 jr(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(l2,u=>(xe.test(u)?(r.color.push(i),s.push(S0),n.push(xe.parse(u))):u.startsWith(a2)?(r.var.push(i),s.push(o2),n.push(u)):(r.number.push(i),s.push(b0),n.push(parseFloat(u))),++i,Ff)).split(Ff);return{values:n,split:a,indexes:r,types:s}}function u2(e){return jr(e).values}function j0({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===b0?s+=os(r[i]):o===S0?s+=xe.transform(r[i]):s+=r[i]}return s}}function c2(e){return j0(jr(e))}const d2=e=>typeof e=="number"?0:xe.test(e)?xe.getAnimatableNone(e):e,f2=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:d2(e);function h2(e){const t=jr(e);return j0(t)(t.values.map((r,s)=>f2(r,t.split[s])))}const kt={test:i2,parse:u2,createTransformer:c2,getAnimatableNone:h2};function Da(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 m2({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=Da(u,a,e+1/3),i=Da(u,a,e),o=Da(u,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function yo(e,t){return n=>n>0?t:e}const se=(e,t,n)=>e+(t-e)*n,Ra=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},p2=[tu,_n,ir],g2=e=>p2.find(t=>t.test(e));function zf(e){const t=g2(e);if(!t)return!1;let n=t.parse(e);return t===ir&&(n=m2(n)),n}const Bf=(e,t)=>{const n=zf(e),r=zf(t);if(!n||!r)return yo(e,t);const s={...n};return i=>(s.red=Ra(n.red,r.red,i),s.green=Ra(n.green,r.green,i),s.blue=Ra(n.blue,r.blue,i),s.alpha=se(n.alpha,r.alpha,i),_n.transform(s))},nu=new Set(["none","hidden"]);function x2(e,t){return nu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function y2(e,t){return n=>se(e,t,n)}function Oc(e){return typeof e=="number"?y2:typeof e=="string"?Rc(e)?yo:xe.test(e)?Bf:k2:Array.isArray(e)?P0:typeof e=="object"?xe.test(e)?Bf:v2:yo}function P0(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>Oc(i)(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function v2(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=Oc(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function w2(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 k2=(e,t)=>{const n=kt.createTransformer(t),r=jr(e),s=jr(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?nu.has(e)&&!s.values.length||nu.has(t)&&!r.values.length?x2(e,t):$s(P0(w2(r,s),s.values),n):yo(e,t)};function T0(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?se(e,t,n):Oc(e)(e,t)}const b2=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Y.update(t,n),stop:()=>dt(t),now:()=>Pe.isProcessing?Pe.timestamp:Oe.now()}},C0=(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)})`},vo=2e4;function Fc(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<vo;)t+=n,r=e.next(t);return t>=vo?1/0:t}function S2(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(Fc(r),vo);return{type:"keyframes",ease:i=>r.next(s*i).value/t,duration:at(s)}}const me={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 ru(e,t){return e*Math.sqrt(1-t*t)}const j2=12;function P2(e,t,n){let r=n;for(let s=1;s<j2;s++)r=r-e(r)/t(r);return r}const Ia=.001;function T2({duration:e=me.duration,bounce:t=me.bounce,velocity:n=me.velocity,mass:r=me.mass}){let s,i,o=1-t;o=St(me.minDamping,me.maxDamping,o),e=St(me.minDuration,me.maxDuration,at(e)),o<1?(s=c=>{const d=c*o,f=d*e,h=d-n,p=ru(c,o),y=Math.exp(-f);return Ia-h/p*y},i=c=>{const f=c*o*e,h=f*n+n,p=Math.pow(o,2)*Math.pow(c,2)*e,y=Math.exp(-f),w=ru(Math.pow(c,2),o);return(-s(c)+Ia>0?-1:1)*((h-p)*y)/w}):(s=c=>{const d=Math.exp(-c*e),f=(c-n)*e+1;return-Ia+d*f},i=c=>{const d=Math.exp(-c*e),f=(n-c)*(e*e);return d*f});const a=5/e,u=P2(s,i,a);if(e=Ze(e),isNaN(u))return{stiffness:me.stiffness,damping:me.damping,duration:e};{const c=Math.pow(u,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const C2=["duration","bounce"],E2=["stiffness","damping","mass"];function $f(e,t){return t.some(n=>e[n]!==void 0)}function N2(e){let t={velocity:me.velocity,stiffness:me.stiffness,damping:me.damping,mass:me.mass,isResolvedFromDuration:!1,...e};if(!$f(e,E2)&&$f(e,C2))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*St(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:me.mass,stiffness:s,damping:i}}else{const n=T2({...e,velocity:0});t={...t,...n,mass:me.mass},t.isResolvedFromDuration=!0}return t}function wo(e=me.visualDuration,t=me.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}=N2({...n,velocity:-at(n.velocity||0)}),y=h||0,w=c/(2*Math.sqrt(u*d)),k=o-i,g=at(Math.sqrt(u/d)),m=Math.abs(k)<5;r||(r=m?me.restSpeed.granular:me.restSpeed.default),s||(s=m?me.restDelta.granular:me.restDelta.default);let v,b,P,C,S,j;if(w<1)P=ru(g,w),C=(y+w*g*k)/P,v=N=>{const O=Math.exp(-w*g*N);return o-O*(C*Math.sin(P*N)+k*Math.cos(P*N))},S=w*g*C+k*P,j=w*g*k-C*P,b=N=>Math.exp(-w*g*N)*(S*Math.sin(P*N)+j*Math.cos(P*N));else if(w===1){v=O=>o-Math.exp(-g*O)*(k+(y+g*k)*O);const N=y+g*k;b=O=>Math.exp(-g*O)*(g*N*O-y)}else{const N=g*Math.sqrt(w*w-1);v=L=>{const W=Math.exp(-w*g*L),F=Math.min(N*L,300);return o-W*((y+w*g*k)*Math.sinh(F)+N*k*Math.cosh(F))/N};const O=(y+w*g*k)/N,H=w*g*O-k*N,_=w*g*k-O*N;b=L=>{const W=Math.exp(-w*g*L),F=Math.min(N*L,300);return W*(H*Math.sinh(F)+_*Math.cosh(F))}}const A={calculatedDuration:p&&f||null,velocity:N=>Ze(b(N)),next:N=>{if(!p&&w<1){const H=Math.exp(-w*g*N),_=Math.sin(P*N),L=Math.cos(P*N),W=o-H*(C*_+k*L),F=Ze(H*(S*_+j*L));return a.done=Math.abs(F)<=r&&Math.abs(o-W)<=s,a.value=a.done?o:W,a}const O=v(N);if(p)a.done=N>=f;else{const H=Ze(b(N));a.done=Math.abs(H)<=r&&Math.abs(o-O)<=s}return a.value=a.done?o:O,a},toString:()=>{const N=Math.min(Fc(A),vo),O=C0(H=>A.next(N*H).value,N,30);return N+"ms "+O},toTransition:()=>{}};return A}wo.applyToOptions=e=>{const t=S2(e,100,wo);return e.ease=t.ease,e.duration=Ze(t.duration),e.type="keyframes",e};const _2=5;function E0(e,t,n){const r=Math.max(t-_2,0);return Lc(n-e(r),t-r)}function su({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=j=>a!==void 0&&j<a||u!==void 0&&j>u,y=j=>a===void 0?u:u===void 0||Math.abs(a-j)<Math.abs(u-j)?a:u;let w=n*t;const k=f+w,g=o===void 0?k:o(k);g!==k&&(w=g-f);const m=j=>-w*Math.exp(-j/r),v=j=>g+m(j),b=j=>{const A=m(j),N=v(j);h.done=Math.abs(A)<=c,h.value=h.done?g:N};let P,C;const S=j=>{p(h.value)&&(P=j,C=wo({keyframes:[h.value,y(h.value)],velocity:E0(v,j,h.value),damping:s,stiffness:i,restDelta:c,restSpeed:d}))};return S(0),{calculatedDuration:null,next:j=>{let A=!1;return!C&&P===void 0&&(A=!0,b(j),S(j)),P!==void 0&&j>=P?C.next(j-P):(!A&&b(j),h)}}}function M2(e,t,n){const r=[],s=n||yn.mix||T0,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]||Xe:t;a=$s(u,a)}r.push(a)}return r}function zc(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(_c(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=M2(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=Sr(e[f],e[f+1],d);return a[f](h)};return n?d=>c(St(e[0],e[i-1],d)):c}function L2(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=Sr(0,t,r);e.push(se(n,1,s))}}function N0(e){const t=[0];return L2(t,e.length-1),t}function A2(e,t){return e.map(n=>n*t)}function D2(e,t){return e.map(()=>t||g0).splice(0,e.length-1)}function as({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=Wb(r)?r.map(If):If(r),i={done:!1,value:t[0]},o=A2(n&&n.length===t.length?n:N0(t),e),a=zc(o,t,{ease:Array.isArray(s)?s:D2(t,s)});return{calculatedDuration:e,next:u=>(i.value=a(u),i.done=u>=e,i)}}const R2=e=>e!==null;function Qo(e,{repeat:t,repeatType:n="loop"},r,s=1){const i=e.filter(R2),a=s<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const I2={decay:su,inertia:su,tween:as,keyframes:as,spring:wo};function _0(e){typeof e.type=="string"&&(e.type=I2[e.type])}class Bc{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 V2=e=>e/100;class Ls extends Bc{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!==Oe.now()&&this.tick(Oe.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;_0(t);const{type:n=as,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=t;let{keyframes:a}=t;const u=n||as;u!==as&&typeof a[0]!="number"&&(this.mixKeyframes=$s(V2,T0(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=Fc(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:y,onUpdate:w,finalKeyframe:k}=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),m=this.playbackSpeed>=0?g<0:g>s;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let v=this.currentTime,b=r;if(f){const j=Math.min(this.currentTime,s)/a;let A=Math.floor(j),N=j%1;!N&&j>=1&&(N=1),N===1&&A--,A=Math.min(A,f+1),!!(A%2)&&(h==="reverse"?(N=1-N,p&&(N-=p/a)):h==="mirror"&&(b=o)),v=St(0,1,N)*a}let P;m?(this.delayState.value=d[0],P=this.delayState):P=b.next(v),i&&!m&&(P.value=i(P.value));let{done:C}=P;!m&&u!==null&&(C=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return S&&y!==su&&(P.value=Qo(d,this.options,k,this.speed)),w&&w(P.value),S&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return at(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+at(t)}get time(){return at(this.currentTime)}set time(t){t=Ze(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 E0(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(Oe.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=at(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:t=b2,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(Oe.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 O2(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Mn=e=>e*180/Math.PI,iu=e=>{const t=Mn(Math.atan2(e[1],e[0]));return ou(t)},F2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:iu,rotateZ:iu,skewX:e=>Mn(Math.atan(e[1])),skewY:e=>Mn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ou=e=>(e=e%360,e<0&&(e+=360),e),Hf=iu,Wf=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Uf=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),z2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Wf,scaleY:Uf,scale:e=>(Wf(e)+Uf(e))/2,rotateX:e=>ou(Mn(Math.atan2(e[6],e[5]))),rotateY:e=>ou(Mn(Math.atan2(-e[2],e[0]))),rotateZ:Hf,rotate:Hf,skewX:e=>Mn(Math.atan(e[4])),skewY:e=>Mn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function au(e){return e.includes("scale")?1:0}function lu(e,t){if(!e||e==="none")return au(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=z2,s=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=F2,s=a}if(!s)return au(t);const i=r[t],o=s[1].split(",").map($2);return typeof i=="function"?i(o):o[i]}const B2=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return lu(n,t)};function $2(e){return parseFloat(e.trim())}const Ar=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Dr=new Set([...Ar,"pathRotation"]),Gf=e=>e===Lr||e===V,H2=new Set(["x","y","z"]),W2=Ar.filter(e=>!H2.has(e));function U2(e){const t=[];return W2.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const sn={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})=>lu(t,"x"),y:(e,{transform:t})=>lu(t,"y")};sn.translateX=sn.x;sn.translateY=sn.y;const Dn=new Set;let uu=!1,cu=!1,du=!1;function M0(){if(cu){const e=Array.from(Dn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=U2(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)})}cu=!1,uu=!1,Dn.forEach(e=>e.complete(du)),Dn.clear()}function L0(){Dn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(cu=!0)})}function G2(){du=!0,L0(),M0(),du=!1}class $c{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?(Dn.add(this),uu||(uu=!0,Y.read(L0),Y.resolveKeyframes(M0))):(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])}O2(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Dn.delete(this)}cancel(){this.state==="scheduled"&&(Dn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const K2=e=>e.startsWith("--");function A0(e,t,n){K2(t)?e.style.setProperty(t,n):e.style[t]=n}const X2={};function Hc(e,t){const n=a0(e);return()=>X2[t]??n()}const Wc=Hc(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),D0=Hc(()=>window.ViewTimeline!==void 0,"viewTimeline"),R0=Hc(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Yr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Kf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Yr([0,.65,.55,1]),circOut:Yr([.55,0,1,.45]),backIn:Yr([.31,.01,.66,-.59]),backOut:Yr([.33,1.53,.69,.99])};function I0(e,t){if(e)return typeof e=="function"?R0()?C0(e,t):"ease-out":x0(e)?Yr(e):Array.isArray(e)?e.map(n=>I0(n,t)||Kf.easeOut):Kf[e]}function Y2(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=I0(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 V0(e){return typeof e=="function"&&"applyToOptions"in e}function q2({type:e,...t}){return V0(e)&&R0()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class O0 extends Bc{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,_c(typeof t.type!="string");const c=q2(t);this.animation=Y2(n,r,s,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=Qo(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(d),A0(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 at(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+at(t)}get time(){return at(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ze(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&&Wc()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),Xe):s(this)}}const F0={anticipate:h0,backInOut:f0,circInOut:p0};function Q2(e){return e in F0}function Z2(e){typeof e.ease=="string"&&Q2(e.ease)&&(e.ease=F0[e.ease])}const Va=10;class J2 extends O0{constructor(t){Z2(t),_0(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 Ls({...o,autoplay:!1}),u=Math.max(Va,Oe.now()-this.startTime),c=St(0,Va,u-Va),d=a.sample(u).value,{name:f}=this.options;i&&f&&A0(i,f,d),n.setWithVelocity(a.sample(Math.max(0,u-c)).value,d,c),a.stop()}}const Xf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(kt.test(e)||e==="0")&&!e.startsWith("url("));function eS(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 tS(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=Xf(s,t),a=Xf(i,t);return!o||!a?!1:eS(e)||(n==="spring"||V0(n))&&r}function fu(e){e.duration=0,e.type="keyframes"}const z0=new Set(["opacity","clipPath","filter","transform"]),nS=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function rS(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&nS.test(e[t]))return!0;return!1}const sS=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),iS=a0(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function oS(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 iS()&&n&&(z0.has(n)||sS.has(n)&&rS(a))&&(n!=="transform"||!d)&&!c&&!r&&s!=="mirror"&&i!==0&&o!=="inertia"}const aS=40;class lS extends Bc{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 y;super(),this.stop=()=>{var w,k;this._animation&&(this._animation.stop(),(w=this.stopTimeline)==null||w.call(this)),(k=this.keyframeResolver)==null||k.cancel()},this.createdAt=Oe.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)||$c;this.keyframeResolver=new p(a,(w,k,g)=>this.onKeyframesResolved(w,k,h,!g),u,c,d),(y=this.keyframeResolver)==null||y.scheduleResolve()}onKeyframesResolved(t,n,r,s){var g,m;this.keyframeResolver=void 0;const{name:i,type:o,velocity:a,delay:u,isHandoff:c,onUpdate:d}=r;this.resolvedAt=Oe.now();let f=!0;tS(t,i,o,a)||(f=!1,(yn.instantAnimations||!u)&&(d==null||d(Qo(t,r,n))),t[0]=t[t.length-1],fu(r),r.repeat=0);const p={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>aS?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},y=f&&!c&&oS(p),w=(m=(g=p.motionValue)==null?void 0:g.owner)==null?void 0:m.current;let k;if(y)try{k=new J2({...p,element:w})}catch{k=new Ls(p)}else k=new Ls(p);k.finished.then(()=>{this.notifyFinished()}).catch(Xe),this.pendingTimeline&&(this.stopTimeline=k.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=k}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(),G2()),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 B0(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 Yf=30,uS=e=>!isNaN(parseFloat(e)),ls={current:void 0};class cS{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const s=Oe.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=Oe.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=uS(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 Mc);const r=this.events[t].add(n);return t==="change"?()=>{r(),Y.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 ls.current&&ls.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Oe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Yf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Yf);return Lc(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 yt(e,t){return new cS(e,t)}function $0(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Uc(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?$0(n,e):n}const dS={type:"spring",stiffness:500,damping:25,restSpeed:10},fS=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),hS={type:"keyframes",duration:.8},mS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},pS=(e,{keyframes:t})=>t.length>2?hS:Dr.has(e)?e.startsWith("scale")?fS(t[1]):dS:mS,gS=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function xS(e){for(const t in e)if(!gS.has(t))return!0;return!1}const Gc=(e,t,n,r={},s,i)=>o=>{const a=Uc(r,e)||{},u=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Ze(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};xS(a)||Object.assign(d,pS(e,d)),d.duration&&(d.duration=Ze(d.duration)),d.repeatDelay&&(d.repeatDelay=Ze(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(fu(d),d.delay===0&&(f=!0)),(yn.instantAnimations||yn.skipAnimations||s!=null&&s.shouldSkipAnimations||a.skipAnimations)&&(f=!0,fu(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,f&&!i&&t.get()!==void 0){const h=Qo(d.keyframes,a);if(h!==void 0){Y.update(()=>{d.onUpdate(h),d.onComplete()});return}}return a.isSync?new Ls(d):new lS(d)},yS=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function vS(e){const t=yS.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function H0(e,t,n=1){const[r,s]=vS(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return s0(o)?parseFloat(o):o}return Rc(s)?H0(s,t,n+1):s}function qf(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Kc(e,t,n,r){if(typeof t=="function"){const[s,i]=qf(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]=qf(r);t=t(n!==void 0?n:e.custom,s,i)}return t}function Rn(e,t,n){const r=e.getProps();return Kc(r,t,n!==void 0?n:r.custom,e)}const W0=new Set(["width","height","top","left","right","bottom",...Ar]),hu=e=>Array.isArray(e);function wS(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,yt(n))}function kS(e){return hu(e)?e[e.length-1]||0:e}function bS(e,t){const n=Rn(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=kS(i[o]);wS(e,o,a)}}const be=e=>!!(e&&e.getVelocity);function SS(e){return!!(be(e)&&e.add)}function mu(e,t){const n=e.getValue("willChange");if(SS(n))return n.add(t);if(!n&&yn.WillChange){const r=new yn.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Xc(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const jS="framerAppearId",U0="data-"+Xc(jS);function G0(e){return e.props[U0]}function PS({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function K0(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i,transitionEnd:o,...a}=t;const u=e.getDefaultTransition();i=i?$0(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 y in a){const w=e.getValue(y,e.latestValues[y]??null),k=a[y];if(k===void 0||h&&PS(h,y))continue;const g={delay:n,...Uc(i||{},y)};d&&(g.skipAnimations=!0);const m=w.get();if(m!==void 0&&!w.isAnimating()&&!Array.isArray(k)&&k===m&&!g.velocity){Y.update(()=>w.set(k));continue}let v=!1;if(window.MotionHandoffAnimation){const C=G0(e);if(C){const S=window.MotionHandoffAnimation(C,y,Y);S!==null&&(g.startTime=S,v=!0)}}mu(e,y);const b=c??e.shouldReduceMotion;w.start(Gc(y,w,k,b&&W0.has(y)?{type:!1}:g,e,v));const P=w.animation;P&&f.push(P)}if(o){const y=()=>Y.update(()=>{o&&bS(e,o)});f.length?Promise.all(f).then(y):y()}return f}function pu(e,t,n={}){var u;const r=Rn(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(K0(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:h}=s;return TS(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 TS(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(pu(u,t,{...o,delay:n+(typeof r=="function"?0:r)+B0(e.variantChildren,u,r,s,i)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(a)}function CS(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>pu(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=pu(e,t,n);else{const s=typeof t=="function"?Rn(e,t,n.custom):t;r=Promise.all(K0(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const ES={test:e=>e==="auto",parse:e=>e},X0=e=>t=>t.test(e),Y0=[Lr,V,Lt,Rt,r2,n2,ES],Qf=e=>Y0.find(X0(e));function NS(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||o0(e):!0}const _S=new Set(["brightness","contrast","saturate","opacity"]);function MS(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ic)||[];if(!r)return e;const s=n.replace(r,"");let i=_S.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const LS=/\b([a-z-]*)\(.*?\)/gu,gu={...kt,getAnimatableNone:e=>{const t=e.match(LS);return t?t.map(MS).join(" "):e}},xu={...kt,getAnimatableNone:e=>{const t=kt.parse(e);return kt.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Zf={...Lr,transform:Math.round},AS={rotate:Rt,pathRotation:Rt,rotateX:Rt,rotateY:Rt,rotateZ:Rt,scale:mi,scaleX:mi,scaleY:mi,scaleZ:mi,skew:Rt,skewX:Rt,skewY:Rt,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:Ms,originX:Of,originY:Of,originZ:V},ko={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,inset:V,insetBlock:V,insetBlockStart:V,insetBlockEnd:V,insetInline:V,insetInlineStart:V,insetInlineEnd:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,paddingBlock:V,paddingBlockStart:V,paddingBlockEnd:V,paddingInline:V,paddingInlineStart:V,paddingInlineEnd:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,marginBlock:V,marginBlockStart:V,marginBlockEnd:V,marginInline:V,marginInlineStart:V,marginInlineEnd:V,fontSize:V,backgroundPositionX:V,backgroundPositionY:V,...AS,zIndex:Zf,fillOpacity:Ms,strokeOpacity:Ms,numOctaves:Zf},DS={...ko,color:xe,backgroundColor:xe,outlineColor:xe,fill:xe,stroke:xe,borderColor:xe,borderTopColor:xe,borderRightColor:xe,borderBottomColor:xe,borderLeftColor:xe,filter:gu,WebkitFilter:gu,mask:xu,WebkitMask:xu},q0=e=>DS[e],RS=new Set([gu,xu]);function Q0(e,t){let n=q0(e);return RS.has(n)||(n=kt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const IS=new Set(["auto","none","0"]);function VS(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!IS.has(i)&&jr(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=Q0(n,s)}class OS extends $c{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(),Rc(f))){const h=H0(f,n.current);h!==void 0&&(t[d]=h),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!W0.has(r)||t.length!==2)return;const[s,i]=t,o=Qf(s),a=Qf(i),u=Vf(s),c=Vf(i);if(u!==c&&sn[r]){this.needsMeasurement=!0;return}if(o!==a)if(Gf(o)&&Gf(a))for(let d=0;d<t.length;d++){const f=t[d];typeof f=="string"&&(t[d]=parseFloat(f))}else sn[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)(t[s]===null||NS(t[s]))&&r.push(s);r.length&&VS(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=sn[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]=sn[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 Yc=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function Z0(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 yu=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function us(e){return i0(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Pr,cancel:J0}=y0(queueMicrotask,!1),mt={x:!1,y:!1};function ex(){return mt.x||mt.y}function FS(e){return e==="x"||e==="y"?mt[e]?null:(mt[e]=!0,()=>{mt[e]=!1}):mt.x||mt.y?null:(mt.x=mt.y=!0,()=>{mt.x=mt.y=!1})}function tx(e,t){const n=Z0(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function zS(e){return!(e.pointerType==="touch"||ex())}function BS(e,t,n={}){const[r,s,i]=tx(e,n);return r.forEach(o=>{let a=!1,u=!1,c;const d=()=>{o.removeEventListener("pointerleave",y)},f=k=>{c&&(c(k),c=void 0),d()},h=k=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),u&&(u=!1,f(k))},p=()=>{a=!0,window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",h,s)},y=k=>{if(k.pointerType!=="touch"){if(a){u=!0;return}f(k)}},w=k=>{if(!zS(k))return;u=!1;const g=t(o,k);typeof g=="function"&&(c=g,o.addEventListener("pointerleave",y,s))};o.addEventListener("pointerenter",w,s),o.addEventListener("pointerdown",p,s)}),i}const nx=(e,t)=>t?e===t?!0:nx(e,t.parentElement):!1,qc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,$S=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function HS(e){return $S.has(e.tagName)||e.isContentEditable===!0}const WS=new Set(["INPUT","SELECT","TEXTAREA"]);function US(e){return WS.has(e.tagName)||e.isContentEditable===!0}const Ri=new WeakSet;function Jf(e){return t=>{t.key==="Enter"&&e(t)}}function Oa(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const GS=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Jf(()=>{if(Ri.has(n))return;Oa(n,"down");const s=Jf(()=>{Oa(n,"up")}),i=()=>Oa(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 eh(e){return qc(e)&&!ex()}const th=new WeakSet;function KS(e,t,n={}){const[r,s,i]=tx(e,n),o=a=>{const u=a.currentTarget;if(!eh(a)||th.has(a))return;Ri.add(u),n.stopPropagation&&th.add(a);const c=t(u,a),d={...s,capture:!0},f=(y,w)=>{window.removeEventListener("pointerup",h,d),window.removeEventListener("pointercancel",p,d),Ri.has(u)&&Ri.delete(u),eh(y)&&typeof c=="function"&&c(y,{success:w})},h=y=>{f(y,u===window||u===document||n.useGlobalTarget||nx(u,y.target))},p=y=>{f(y,!1)};window.addEventListener("pointerup",h,d),window.addEventListener("pointercancel",p,d)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),us(a)&&(a.addEventListener("focus",c=>GS(c,s)),!HS(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function Qc(e){return i0(e)&&"ownerSVGElement"in e}const Ii=new WeakMap;let Yt;const rx=(e,t,n)=>(r,s)=>s&&s[0]?s[0][e+"Size"]:Qc(r)&&"getBBox"in r?r.getBBox()[t]:r[n],XS=rx("inline","width","offsetWidth"),YS=rx("block","height","offsetHeight");function qS({target:e,borderBoxSize:t}){var n;(n=Ii.get(e))==null||n.forEach(r=>{r(e,{get width(){return XS(e,t)},get height(){return YS(e,t)}})})}function QS(e){e.forEach(qS)}function ZS(){typeof ResizeObserver>"u"||(Yt=new ResizeObserver(QS))}function JS(e,t){Yt||ZS();const n=Z0(e);return n.forEach(r=>{let s=Ii.get(r);s||(s=new Set,Ii.set(r,s)),s.add(t),Yt==null||Yt.observe(r)}),()=>{n.forEach(r=>{const s=Ii.get(r);s==null||s.delete(t),s!=null&&s.size||Yt==null||Yt.unobserve(r)})}}const Vi=new Set;let or;function ej(){or=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Vi.forEach(t=>t(e))},window.addEventListener("resize",or)}function tj(e){return Vi.add(e),or||ej(),()=>{Vi.delete(e),!Vi.size&&typeof or=="function"&&(window.removeEventListener("resize",or),or=void 0)}}function vu(e,t){return typeof e=="function"?tj(e):JS(e,t)}function sx(e,t){let n;const r=()=>{const{currentTime:s}=t,o=(s===null?0:s.value)/100;n!==o&&e(o),n=o};return Y.preUpdate(r,!0),()=>dt(r)}function nj(e){return Qc(e)&&e.tagName==="svg"}function rj(...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=zc(s,i,o);return t?a(r):a}function sj(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=nh(e.get()),h=nh(i);if(f===h){u();return}const p=s?s.getGeneratorVelocity():e.getVelocity();u(),s=new Ls({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(Fa(p,a)),Y.postRender(d)},u),be(t)){let f=n.skipInitialAnimation===!0;const h=t.on("change",y=>{f?(f=!1,e.jump(Fa(y,a),!1)):e.set(Fa(y,a))}),p=e.on("destroy",h);return()=>{h(),p()}}return u}function Fa(e,t){return t?e+t:e}function nh(e){return typeof e=="number"?e:parseFloat(e)}const ij=[...Y0,xe,kt],oj=e=>ij.find(X0(e)),rh=()=>({translate:0,scale:1,origin:0,originPoint:0}),ar=()=>({x:rh(),y:rh()}),sh=()=>({min:0,max:0}),ve=()=>({x:sh(),y:sh()}),aj=new WeakMap;function Zo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function As(e){return typeof e=="string"||Array.isArray(e)}const Zc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Jc=["initial",...Zc];function Jo(e){return Zo(e.animate)||Jc.some(t=>As(e[t]))}function ix(e){return!!(Jo(e)||e.variants)}function lj(e,t,n){for(const r in t){const s=t[r],i=n[r];if(be(s))e.addValue(r,s);else if(be(i))e.addValue(r,yt(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,yt(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const wu={current:null},ox={current:!1},uj=typeof window<"u";function cj(){if(ox.current=!0,!!uj)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>wu.current=e.matches;e.addEventListener("change",t),t()}else wu.current=!1}const ih=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let bo={};function ax(e){bo=e}function dj(){return bo}class fj{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=$c,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=Oe.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,Y.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=Jo(n),this.isVariantNode=ix(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 y=h[p];c[p]!==void 0&&be(y)&&y.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,aj.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:(ox.current||cj(),this.shouldReduceMotion=wu.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(),dt(this.notifyUpdate),dt(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&&z0.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:u,ease:c,duration:d}=n.accelerate,f=new O0({element:this.current,name:t,keyframes:a,times:u,ease:c,duration:Ze(d)}),h=o(f);this.valueSubscriptions.set(t,()=>{h(),f.cancel()});return}const r=Dr.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Y.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 bo){const n=bo[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):ve()}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<ih.length;r++){const s=ih[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=lj(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=yt(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"&&(s0(r)||o0(r))?r=parseFloat(r):!oj(r)&&kt.test(n)&&(r=Q0(t,n)),this.setBaseTarget(t,be(r)?r.get():r)),be(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=Kc(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&&!be(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 Mc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Pr.render(this.render)}}class lx extends fj{constructor(){super(...arguments),this.KeyframeResolver=OS}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;be(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class bn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function ux({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function hj({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function mj(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 za(e){return e===void 0||e===1}function ku({scale:e,scaleX:t,scaleY:n}){return!za(e)||!za(t)||!za(n)}function Tn(e){return ku(e)||cx(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function cx(e){return oh(e.x)||oh(e.y)}function oh(e){return e&&e!=="0%"}function So(e,t,n){const r=e-n,s=t*r;return n+s}function ah(e,t,n,r,s){return s!==void 0&&(e=So(e,s,r)),So(e,n,r)+t}function bu(e,t=0,n=1,r,s){e.min=ah(e.min,t,n,r,s),e.max=ah(e.max,t,n,r,s)}function dx(e,{x:t,y:n}){bu(e.x,t.translate,t.scale,t.originPoint),bu(e.y,n.translate,n.scale,n.originPoint)}const lh=.999999999999,uh=1.0000000000001;function pj(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&&(Et(e.x,-i.scroll.offset.x),Et(e.y,-i.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,dx(e,o)),r&&Tn(i.latestValues)&&Oi(e,i.latestValues,(a=i.layout)==null?void 0:a.layoutBox))}t.x<uh&&t.x>lh&&(t.x=1),t.y<uh&&t.y>lh&&(t.y=1)}function Et(e,t){e.min+=t,e.max+=t}function ch(e,t,n,r,s=.5){const i=se(e.min,e.max,s);bu(e,t,n,i,r)}function dh(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Oi(e,t,n){const r=n??e;ch(e.x,dh(t.x,r.x),t.scaleX,t.scale,t.originX),ch(e.y,dh(t.y,r.y),t.scaleY,t.scale,t.originY)}function fx(e,t){return ux(mj(e.getBoundingClientRect(),t))}function gj(e,t,n){const r=fx(e,n),{scroll:s}=t;return s&&(Et(r.x,s.offset.x),Et(r.y,s.offset.y)),r}const xj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},yj=Ar.length;function vj(e,t,n){let r="",s=!0;for(let o=0;o<yj;o++){const a=Ar[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=yu(u,ko[a]);if(!c){s=!1;const f=xj[a]||a;r+=`${f}(${d}) `}n&&(t[a]=d)}}const i=e.pathRotation;return i&&(s=!1,r+=`rotate(${yu(i,ko.pathRotation)}) `),r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function ed(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(Dr.has(u)){o=!0;continue}else if(w0(u)){s[u]=c;continue}else{const d=yu(c,ko[u]);u.startsWith("origin")?(a=!0,i[u]=d):r[u]=d}}if(t.transform||(o||n?r.transform=vj(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 hx(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 fh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Wr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=fh(e,t.target.x),r=fh(e,t.target.y);return`${n}% ${r}%`}},wj={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=kt.parse(e);if(s.length>5)return r;const i=kt.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=se(a,u,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}},Su={borderRadius:{...Wr,applyTo:[...Yc]},borderTopLeftRadius:Wr,borderTopRightRadius:Wr,borderBottomLeftRadius:Wr,borderBottomRightRadius:Wr,boxShadow:wj};function mx(e,{layout:t,layoutId:n}){return Dr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Su[e]||e==="opacity")}function td(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)(be(r[a])||s&&be(s[a])||mx(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(i[a]=r[a]);return i}function kj(e){return window.getComputedStyle(e)}class bj extends lx{constructor(){super(...arguments),this.type="html",this.renderInstance=hx}readValueFromInstance(t,n){var r;if(Dr.has(n))return(r=this.projection)!=null&&r.isProjecting?au(n):B2(t,n);{const s=kj(t),i=(w0(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return fx(t,n)}build(t,n,r){ed(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return td(t,n,r)}}const Sj={offset:"stroke-dashoffset",array:"stroke-dasharray"},jj={offset:"strokeDashoffset",array:"strokeDasharray"};function Pj(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?Sj:jj;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const Tj=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function px(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:o=0,...a},u,c,d){if(ed(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 Tj)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&&Pj(f,s,i,o,!1)}const gx=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"]),xx=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Cj(e,t,n,r){hx(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(gx.has(s)?s:Xc(s),t.attrs[s])}function yx(e,t,n){const r=td(e,t,n);for(const s in e)if(be(e[s])||be(t[s])){const i=Ar.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}class Ej extends lx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ve}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Dr.has(n)){const r=q0(n);return r&&r.default||0}return n=gx.has(n)?n:Xc(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return yx(t,n,r)}build(t,n,r){px(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){Cj(t,n,r,s)}mount(t){this.isSVGTag=xx(t.tagName),super.mount(t)}}const Nj=Jc.length;function vx(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?vx(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Nj;n++){const r=Jc[n],s=e.props[r];(As(s)||s===!1)&&(t[r]=s)}return t}function wx(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 _j=[...Zc].reverse(),Mj=Zc.length;function Lj(e){return t=>Promise.all(t.map(({animation:n,options:r})=>CS(e,n,r)))}function Aj(e){let t=Lj(e),n=hh(),r=!0,s=!1;const i=c=>(d,f)=>{var p;const h=Rn(e,f,c==="exit"?(p=e.presenceContext)==null?void 0:p.custom:void 0);if(h){const{transition:y,transitionEnd:w,...k}=h;d={...d,...k,...w}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,f=vx(e.parent)||{},h=[],p=new Set;let y={},w=1/0;for(let g=0;g<Mj;g++){const m=_j[g],v=n[m],b=d[m]!==void 0?d[m]:f[m],P=As(b),C=m===c?v.isActive:null;C===!1&&(w=g);let S=b===f[m]&&b!==d[m]&&P;if(S&&(r||s)&&e.manuallyAnimateOnMount&&(S=!1),v.protectedKeys={...y},!v.isActive&&C===null||!b&&!v.prevProp||Zo(b)||typeof b=="boolean")continue;if(m==="exit"&&v.isActive&&C!==!0){v.prevResolvedValues&&(y={...y,...v.prevResolvedValues});continue}const j=Dj(v.prevProp,b);let A=j||m===c&&v.isActive&&!S&&P||g>w&&P,N=!1;const O=Array.isArray(b)?b:[b];let H=O.reduce(i(m),{});C===!1&&(H={});const{prevResolvedValues:_={}}=v,L={..._,...H},W=E=>{A=!0,p.has(E)&&(N=!0,p.delete(E)),v.needsAnimating[E]=!0;const T=e.getValue(E);T&&(T.liveStyle=!1)};for(const E in L){const T=H[E],D=_[E];if(y.hasOwnProperty(E))continue;let $=!1;hu(T)&&hu(D)?$=!wx(T,D)||j:$=T!==D,$?T!=null?W(E):p.add(E):T!==void 0&&p.has(E)?W(E):v.protectedKeys[E]=!0}v.prevProp=b,v.prevResolvedValues=H,v.isActive&&(y={...y,...H}),(r||s)&&e.blockInitialAnimation&&(A=!1);const F=S&&j;A&&(!F||N)&&h.push(...O.map(E=>{const T={type:m};if(typeof E=="string"&&(r||s)&&!F&&e.manuallyAnimateOnMount&&e.parent){const{parent:D}=e,$=Rn(D,E);if(D.enteringChildren&&$){const{delayChildren:Z}=$.transition||{};T.delay=B0(D.enteringChildren,e,Z)}}return{animation:E,options:T}}))}if(p.size){const g={};if(typeof d.initial!="boolean"){const m=Rn(e,Array.isArray(d.initial)?d.initial[0]:d.initial);m&&m.transition&&(g.transition=m.transition)}p.forEach(m=>{const v=e.getBaseTarget(m),b=e.getValue(m);b&&(b.liveStyle=!0),g[m]=v??null}),h.push({animation:g})}let k=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(k=!1),r=!1,s=!1,k?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 y;return(y=p.animationState)==null?void 0:y.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=hh(),s=!0}}}function Dj(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!wx(t,e):!1}function Sn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function hh(){return{animate:Sn(!0),whileInView:Sn(),whileHover:Sn(),whileTap:Sn(),whileDrag:Sn(),whileFocus:Sn(),exit:Sn()}}function ju(e,t){e.min=t.min,e.max=t.max}function ht(e,t){ju(e.x,t.x),ju(e.y,t.y)}function mh(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const kx=1e-4,Rj=1-kx,Ij=1+kx,bx=.01,Vj=0-bx,Oj=0+bx;function Fe(e){return e.max-e.min}function Fj(e,t,n){return Math.abs(e-t)<=n}function ph(e,t,n,r=.5){e.origin=r,e.originPoint=se(t.min,t.max,e.origin),e.scale=Fe(n)/Fe(t),e.translate=se(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Rj&&e.scale<=Ij||isNaN(e.scale))&&(e.scale=1),(e.translate>=Vj&&e.translate<=Oj||isNaN(e.translate))&&(e.translate=0)}function cs(e,t,n,r){ph(e.x,t.x,n.x,r?r.originX:void 0),ph(e.y,t.y,n.y,r?r.originY:void 0)}function gh(e,t,n,r=0){const s=r?se(n.min,n.max,r):n.min;e.min=s+t.min,e.max=e.min+Fe(t)}function zj(e,t,n,r){gh(e.x,t.x,n.x,r==null?void 0:r.x),gh(e.y,t.y,n.y,r==null?void 0:r.y)}function xh(e,t,n,r=0){const s=r?se(n.min,n.max,r):n.min;e.min=t.min-s,e.max=e.min+Fe(t)}function jo(e,t,n,r){xh(e.x,t.x,n.x,r==null?void 0:r.x),xh(e.y,t.y,n.y,r==null?void 0:r.y)}function yh(e,t,n,r,s){return e-=t,e=So(e,1/n,r),s!==void 0&&(e=So(e,1/s,r)),e}function Bj(e,t=0,n=1,r=.5,s,i=e,o=e){if(Lt.test(t)&&(t=parseFloat(t),t=se(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=se(i.min,i.max,r);e===i&&(a-=t),e.min=yh(e.min,t,n,a,s),e.max=yh(e.max,t,n,a,s)}function vh(e,t,[n,r,s],i,o){Bj(e,t[n],t[r],t[s],t.scale,i,o)}const $j=["x","scaleX","originX"],Hj=["y","scaleY","originY"];function wh(e,t,n,r){vh(e.x,t,$j,n?n.x:void 0,r?r.x:void 0),vh(e.y,t,Hj,n?n.y:void 0,r?r.y:void 0)}function kh(e){return e.translate===0&&e.scale===1}function Sx(e){return kh(e.x)&&kh(e.y)}function bh(e,t){return e.min===t.min&&e.max===t.max}function Wj(e,t){return bh(e.x,t.x)&&bh(e.y,t.y)}function Sh(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function jx(e,t){return Sh(e.x,t.x)&&Sh(e.y,t.y)}function jh(e){return Fe(e.x)/Fe(e.y)}function Ph(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Ct(e){return[e("x"),e("y")]}function Uj(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:y,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) `),y&&(r+=`skewX(${y}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 Gj=Yc.length,Th=e=>typeof e=="string"?parseFloat(e):e,Ch=e=>typeof e=="number"||V.test(e);function Kj(e,t,n,r,s,i){s?(e.opacity=se(0,n.opacity??1,Xj(r)),e.opacityExit=se(t.opacity??1,0,Yj(r))):i&&(e.opacity=se(t.opacity??1,n.opacity??1,r));for(let o=0;o<Gj;o++){const a=Yc[o];let u=Eh(t,a),c=Eh(n,a);if(u===void 0&&c===void 0)continue;u||(u=0),c||(c=0),u===0||c===0||Ch(u)===Ch(c)?(e[a]=Math.max(se(Th(u),Th(c),r),0),(Lt.test(c)||Lt.test(u))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=se(t.rotate||0,n.rotate||0,r))}function Eh(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Xj=Px(0,.5,m0),Yj=Px(.5,.95,Xe);function Px(e,t,n){return r=>r<e?0:r>t?1:n(Sr(e,t,r))}function qj(e,t,n){const r=be(e)?e:yt(e);return r.start(Gc("",r,t,n)),r.animation}function Ds(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}const Qj=(e,t)=>e.depth-t.depth;class Zj{constructor(){this.children=[],this.isDirty=!1}add(t){Nc(this.children,t),this.isDirty=!0}remove(t){xo(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Qj),this.isDirty=!1,this.children.forEach(t)}}function Jj(e,t){const n=Oe.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(dt(r),e(i-t))};return Y.setup(r,!0),()=>dt(r)}function Fi(e){return be(e)?e.get():e}class eP{constructor(){this.members=[]}add(t){Nc(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&&(xo(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(xo(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 zi={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ba=["","X","Y","Z"],tP=1e3;let nP=0;function $a(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Tx(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=G0(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Y,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Tx(r)}function Cx({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=nP++,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(iP),this.nodes.forEach(dP),this.nodes.forEach(fP),this.nodes.forEach(oP)},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 Zj)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Mc),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=Qc(o)&&!nj(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;Y.read(()=>{f=window.innerWidth}),e(o,()=>{const p=window.innerWidth;p!==f&&(f=p,this.root.updateBlockedByResize=!0,d&&d(),d=Jj(h,250),zi.hasAnimatedSinceResize&&(zi.hasAnimatedSinceResize=!1,this.nodes.forEach(Mh)))})}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 y=this.options.transition||c.getDefaultTransition()||xP,{onLayoutAnimationStart:w,onLayoutAnimationComplete:k}=c.getProps(),g=!this.targetLayout||!jx(this.targetLayout,p),m=!f&&h;if(this.options.layoutRoot||this.resumeFrom||m||f&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...Uc(y,"layout"),onPlay:w,onComplete:k};(c.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(d,m,v.path)}else f||Mh(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(),dt(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(hP),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&&Tx(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(lP),this.nodes.forEach(Nh);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(_h);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(uP),this.nodes.forEach(cP),this.nodes.forEach(rP),this.nodes.forEach(sP)):this.nodes.forEach(_h),this.clearAllSnapshots();const a=Oe.now();Pe.delta=St(0,1e3/60,a-Pe.timestamp),Pe.timestamp=a,Pe.isProcessing=!0,La.update.process(Pe),La.preRender.process(Pe),La.render.process(Pe),Pe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Pr.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(aP),this.sharedNodes.forEach(mP)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Y.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Y.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Fe(this.snapshot.measuredBox.x)&&!Fe(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=ve()),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&&!Sx(this.projectionDelta),u=this.getTransformTemplate(),c=u?u(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;o&&this.instance&&(a||Tn(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)),yP(u),{animationId:this.root.animationId,measuredBox:a,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:o}=this.options;if(!o)return ve();const a=o.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(vP))){const{scroll:d}=this.root;d&&(Et(a.x,d.offset.x),Et(a.y,d.offset.y))}return a}removeElementScroll(o){var u;const a=ve();if(ht(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&&ht(a,o),Et(a.x,f.offset.x),Et(a.y,f.offset.y))}return a}applyTransform(o,a=!1,u){var d,f;const c=u||ve();ht(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&&(Et(c.x,-p.scroll.offset.x),Et(c.y,-p.scroll.offset.y)),Tn(p.latestValues)&&Oi(c,p.latestValues,(d=p.layout)==null?void 0:d.layoutBox)}return Tn(this.latestValues)&&Oi(c,this.latestValues,(f=this.layout)==null?void 0:f.layoutBox),c}removeTransform(o){var u;const a=ve();ht(a,o);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!Tn(d.latestValues))continue;let f;d.instance&&(ku(d.latestValues)&&d.updateSnapshot(),f=ve(),ht(f,d.measurePageBox())),wh(a,d.latestValues,(u=d.snapshot)==null?void 0:u.layoutBox,f)}return Tn(this.latestValues)&&wh(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!==Pe.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=Pe.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=ve(),this.targetWithTransforms=ve()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),zj(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):ht(this.target,this.layout.layoutBox),dx(this.target,this.targetDelta)):ht(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||ku(this.parent.latestValues)||cx(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=ve(),this.relativeTargetOrigin=ve(),jo(this.relativeTargetOrigin,a,u,this.options.layoutAnchor||void 0),ht(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var y;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let u=!0;if((this.isProjectionDirty||(y=this.parent)!=null&&y.isProjectionDirty)&&(u=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Pe.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;ht(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;pj(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=ve());const{target:p}=o;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(mh(this.prevProjectionDelta.x,this.projectionDelta.x),mh(this.prevProjectionDelta.y,this.projectionDelta.y)),cs(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!Ph(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ph(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=ar(),this.projectionDelta=ar(),this.projectionDeltaWithTransform=ar()}setAnimationOrigin(o,a=!1,u){const c=this.snapshot,d=c?c.latestValues:{},f={...this.latestValues},h=ar();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const p=ve(),y=c?c.source:void 0,w=this.layout?this.layout.source:void 0,k=y!==w,g=this.getStack(),m=!g||g.members.length<=1,v=!!(k&&!m&&this.options.crossfade===!0&&!this.path.some(gP));this.animationProgress=0;let b;const P=u==null?void 0:u.interpolateProjection(o);this.mixTargetDelta=C=>{const S=C/1e3,j=P==null?void 0:P(S);j?(h.x.translate=j.x,h.x.scale=se(o.x.scale,1,S),h.x.origin=o.x.origin,h.x.originPoint=o.x.originPoint,h.y.translate=j.y,h.y.scale=se(o.y.scale,1,S),h.y.origin=o.y.origin,h.y.originPoint=o.y.originPoint):(Lh(h.x,o.x,S),Lh(h.y,o.y,S)),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(jo(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),pP(this.relativeTarget,this.relativeTargetOrigin,p,S),b&&Wj(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=ve()),ht(b,this.relativeTarget)),k&&(this.animationValues=f,Kj(f,d,this.latestValues,S,v,m)),j&&j.rotate!==void 0&&(this.animationValues||(this.animationValues=f),this.animationValues.pathRotation=j.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},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&&(dt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Y.update(()=>{zi.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=yt(0)),this.motionValue.jump(0,!1),this.currentAnimation=qj(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(tP),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&&Ex(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||ve();const f=Fe(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+f;const h=Fe(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+h}ht(a,u),Oi(a,d),cs(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new eP),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&&$a("z",o,c,this.animationValues);for(let d=0;d<Ba.length;d++)$a(`rotate${Ba[d]}`,o,c,this.animationValues),$a(`skew${Ba[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=Fi(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=Fi(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Tn(this.latestValues)&&(o.transform=u?u({},""):"none",this.hasProjected=!1);return}o.visibility="";const d=c.animationValues||c.latestValues;this.applyTransformsToTarget();let f=Uj(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 y in Su){if(d[y]===void 0)continue;const{correct:w,applyTo:k,isCSSVariable:g}=Su[y],m=f==="none"?d[y]:w(d[y],c);if(k){const v=k.length;for(let b=0;b<v;b++)o[k[b]]=m}else g?this.options.visualElement.renderState.vars[y]=m:o[y]=m}this.options.layoutId&&(o.pointerEvents=c===this?Fi(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(Nh),this.root.sharedNodes.clear()}}}function rP(e){e.updateLayout()}function sP(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")Ct(f=>{const h=o?t.measuredBox[f]:t.layoutBox[f],p=Fe(h);h.min=r[f].min,h.max=h.min+p});else if(i==="x"||i==="y"){const f=i==="x"?"y":"x";ju(o?t.measuredBox[f]:t.layoutBox[f],r[f])}else Ex(i,t.layoutBox,r)&&Ct(f=>{const h=o?t.measuredBox[f]:t.layoutBox[f],p=Fe(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=ar();cs(a,r,t.layoutBox);const u=ar();o?cs(u,e.applyTransform(s,!0),t.measuredBox):cs(u,r,t.layoutBox);const c=!Sx(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 y=e.options.layoutAnchor||void 0,w=ve();jo(w,t.layoutBox,h.layoutBox,y);const k=ve();jo(k,r,p.layoutBox,y),jx(w,k)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=k,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 iP(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 oP(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function aP(e){e.clearSnapshot()}function Nh(e){e.clearMeasurements()}function lP(e){e.isLayoutDirty=!0,e.updateLayout()}function _h(e){e.isLayoutDirty=!1}function uP(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function cP(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Mh(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function dP(e){e.resolveTargetDelta()}function fP(e){e.calcProjection()}function hP(e){e.resetSkewAndRotation()}function mP(e){e.removeLeadSnapshot()}function Lh(e,t,n){e.translate=se(t.translate,0,n),e.scale=se(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ah(e,t,n,r){e.min=se(t.min,n.min,r),e.max=se(t.max,n.max,r)}function pP(e,t,n,r){Ah(e.x,t.x,n.x,r),Ah(e.y,t.y,n.y,r)}function gP(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const xP={duration:.45,ease:[.4,0,.1,1]},Dh=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Rh=Dh("applewebkit/")&&!Dh("chrome/")?Math.round:Xe;function Ih(e){e.min=Rh(e.min),e.max=Rh(e.max)}function yP(e){Ih(e.x),Ih(e.y)}function Ex(e,t,n){return e==="position"||e==="preserve-aspect"&&!Fj(jh(t),jh(n),.2)}function vP(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const wP=Cx({attachResizeListener:(e,t)=>Ds(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}),Ha={current:void 0},Nx=Cx({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ha.current){const e=new wP({});e.mount(window),e.setOptions({layoutScroll:!0}),Ha.current=e}return Ha.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Us=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Vh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function kP(...e){return t=>{let n=!1;const r=e.map(s=>{const i=Vh(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():Vh(e[s],null)}}}}function bP(...e){return x.useCallback(kP(...e),e)}class SP extends x.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(us(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,s=us(r)&&r.offsetWidth||0,i=us(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 jP({children:e,isPresent:t,anchorX:n,anchorY:r,root:s,pop:i}){var h;const o=x.useId(),a=x.useRef(null),u=x.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:c}=x.useContext(Us),d=((h=e.props)==null?void 0:h.ref)??(e==null?void 0:e.ref),f=bP(a,d);return x.useInsertionEffect(()=>{const{width:p,height:y,top:w,left:k,right:g,bottom:m,direction:v}=u.current;if(t||i===!1||!a.current||!p||!y)return;const b=v==="rtl",P=n==="left"?b?`right: ${g}`:`left: ${k}`:b?`left: ${k}`:`right: ${g}`,C=r==="bottom"?`bottom: ${m}`:`top: ${w}`;a.current.dataset.motionPopId=o;const S=document.createElement("style");c&&(S.nonce=c);const j=s??document.head;return j.appendChild(S),S.sheet&&S.sheet.insertRule(`
|
||
[data-motion-pop-id="${o}"] {
|
||
position: absolute !important;
|
||
width: ${p}px !important;
|
||
height: ${y}px !important;
|
||
${P}px !important;
|
||
${C}px !important;
|
||
}
|
||
`),()=>{var A;(A=a.current)==null||A.removeAttribute("data-motion-pop-id"),j.contains(S)&&j.removeChild(S)}},[t]),l.jsx(SP,{isPresent:t,childRef:a,sizeRef:u,pop:i,children:i===!1?e:x.cloneElement(e,{ref:f})})}const PP=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o,anchorX:a,anchorY:u,root:c})=>{const d=xn(TP),f=x.useId(),h=x.useRef(n),p=x.useRef(r);Bs(()=>{h.current=n,p.current=r});let y=!0,w=x.useMemo(()=>(y=!1,{id:f,initial:t,isPresent:n,custom:s,onExitComplete:k=>{d.set(k,!0);for(const g of d.values())if(!g)return;r&&r()},register:k=>(d.set(k,!1),()=>{var g;d.delete(k),!h.current&&!d.size&&((g=p.current)==null||g.call(p))})}),[n,d,r]);return i&&y&&(w={...w}),x.useMemo(()=>{d.forEach((k,g)=>d.set(g,!1))},[n]),x.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),e=l.jsx(jP,{pop:o==="popLayout",isPresent:n,anchorX:a,anchorY:u,root:c,children:e}),l.jsx(qo.Provider,{value:w,children:e})};function TP(){return new Map}function _x(e=!0){const t=x.useContext(qo);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=x.useId();x.useEffect(()=>{if(e)return s(i)},[e]);const o=x.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const pi=e=>e.key||"";function Oh(e){const t=[];return x.Children.forEach(e,n=>{x.isValidElement(n)&&t.push(n)}),t}const CP=({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]=_x(o),h=x.useMemo(()=>Oh(e),[e]),p=o&&!d?[]:h.map(pi),y=x.useRef(!0),w=x.useRef(h),k=xn(()=>new Map),g=x.useRef(new Set),[m,v]=x.useState(h),[b,P]=x.useState(h);Bs(()=>{y.current=!1,w.current=h;for(let j=0;j<b.length;j++){const A=pi(b[j]);p.includes(A)?(k.delete(A),g.current.delete(A)):k.get(A)!==!0&&k.set(A,!1)}},[b,p.length,p.join("-")]);const C=[];if(h!==m){let j=[...h];for(let A=0;A<b.length;A++){const N=b[A],O=pi(N);p.includes(O)||(j.splice(A,0,N),C.push(N))}return i==="wait"&&C.length&&(j=C),P(Oh(j)),v(h),null}const{forceRender:S}=x.useContext(Ec);return l.jsx(l.Fragment,{children:b.map(j=>{const A=pi(j),N=o&&!d?!1:h===b||p.includes(A),O=()=>{if(g.current.has(A))return;if(k.has(A))g.current.add(A),k.set(A,!0);else return;let H=!0;k.forEach(_=>{_||(H=!1)}),H&&(S==null||S(),P(w.current),o&&(f==null||f()),r&&r())};return l.jsx(PP,{isPresent:N,initial:!y.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:i,root:c,onExitComplete:N?void 0:O,anchorX:a,anchorY:u,children:j},A)})})},Mx=x.createContext({strict:!1}),Fh={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 zh=!1;function EP(){if(zh)return;const e={};for(const t in Fh)e[t]={isEnabled:n=>Fh[t].some(r=>!!n[r])};ax(e),zh=!0}function Lx(){return EP(),dj()}function NP(e){const t=Lx();for(const n in e)t[n]={...t[n],...e[n]};ax(t)}const _P=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 Po(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||_P.has(e)}let Ax=e=>!Po(e);function MP(e){typeof e=="function"&&(Ax=t=>t.startsWith("on")?!Po(t):e(t))}try{MP(require("@emotion/is-prop-valid").default)}catch{}function LP(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||be(e[s])||(Ax(s)||n===!0&&Po(s)||!t&&!Po(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const ea=x.createContext({});function AP(e,t){if(Jo(e)){const{initial:n,animate:r}=e;return{initial:n===!1||As(n)?n:void 0,animate:As(r)?r:void 0}}return e.inherit!==!1?t:{}}function DP(e){const{initial:t,animate:n}=AP(e,x.useContext(ea));return x.useMemo(()=>({initial:t,animate:n}),[Bh(t),Bh(n)])}function Bh(e){return Array.isArray(e)?e.join(" "):e}const nd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Dx(e,t,n){for(const r in t)!be(t[r])&&!mx(r,n)&&(e[r]=t[r])}function RP({transformTemplate:e},t){return x.useMemo(()=>{const n=nd();return ed(n,t,e),Object.assign({},n.vars,n.style)},[t])}function IP(e,t){const n=e.style||{},r={};return Dx(r,n,e),Object.assign(r,RP(e,t)),r}function VP(e,t){const n={},r=IP(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 Rx=()=>({...nd(),attrs:{}});function OP(e,t,n,r){const s=x.useMemo(()=>{const i=Rx();return px(i,t,xx(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Dx(i,e.style,e),s.style={...i,...s.style}}return s}const FP=["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 rd(e){return typeof e!="string"||e.includes("-")?!1:!!(FP.indexOf(e)>-1||/[A-Z]/u.test(e))}function zP(e,t,n,{latestValues:r},s,i=!1,o){const u=(o??rd(e)?OP:VP)(t,r,s,e),c=LP(t,typeof e=="string",i),d=e!==x.Fragment?{...c,...u,ref:n}:{},{children:f}=t,h=x.useMemo(()=>be(f)?f.get():f,[f]);return x.createElement(e,{...d,children:h})}function BP({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,s){return{latestValues:$P(n,r,s,e),renderState:t()}}function $P(e,t,n,r){const s={},i=r(e,{});for(const h in i)s[h]=Fi(i[h]);let{initial:o,animate:a}=e;const u=Jo(e),c=ix(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"&&!Zo(f)){const h=Array.isArray(f)?f:[f];for(let p=0;p<h.length;p++){const y=Kc(e,h[p]);if(y){const{transitionEnd:w,transition:k,...g}=y;for(const m in g){let v=g[m];if(Array.isArray(v)){const b=d?v.length-1:0;v=v[b]}v!==null&&(s[m]=v)}for(const m in w)s[m]=w[m]}}}return s}const Ix=e=>(t,n)=>{const r=x.useContext(ea),s=x.useContext(qo),i=()=>BP(e,t,r,s);return n?i():xn(i)},HP=Ix({scrapeMotionValuesFromProps:td,createRenderState:nd}),WP=Ix({scrapeMotionValuesFromProps:yx,createRenderState:Rx}),UP=Symbol.for("motionComponentSymbol");function GP(e,t,n){const r=x.useRef(n);x.useInsertionEffect(()=>{r.current=n});const s=x.useRef(null);return x.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 Vx=x.createContext({});function Gn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function KP(e,t,n,r,s,i){var v,b;const{visualElement:o}=x.useContext(ea),a=x.useContext(Mx),u=x.useContext(qo),c=x.useContext(Us),d=c.reducedMotion,f=c.skipAnimations,h=x.useRef(null),p=x.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 y=h.current,w=x.useContext(Vx);y&&!y.projection&&s&&(y.type==="html"||y.type==="svg")&&XP(h.current,n,s,w);const k=x.useRef(!1);x.useInsertionEffect(()=>{y&&k.current&&y.update(n,u)});const g=n[U0],m=x.useRef(!!g&&typeof window<"u"&&!((v=window.MotionHandoffIsComplete)!=null&&v.call(window,g))&&((b=window.MotionHasOptimisedAnimation)==null?void 0:b.call(window,g)));return Bs(()=>{p.current=!0,y&&(k.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),m.current&&y.animationState&&y.animationState.animateChanges())}),x.useEffect(()=>{y&&(!m.current&&y.animationState&&y.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var P;(P=window.MotionHandoffMarkAsComplete)==null||P.call(window,g)}),m.current=!1),y.enteringChildren=void 0)}),y}function XP(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:Ox(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&Gn(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:f,layoutScroll:u,layoutRoot:c,layoutAnchor:d})}function Ox(e){if(e)return e.options.allowProjection!==!1?e.projection:Ox(e.parent)}function Wa(e,{forwardMotionProps:t=!1,type:n}={},r,s){r&&NP(r);const i=n?n==="svg":rd(e),o=i?WP:HP;function a(c,d){let f;const h={...x.useContext(Us),...c,layoutId:YP(c)},{isStatic:p}=h,y=DP(c),w=o(c,p);if(!p&&typeof window<"u"){qP();const k=QP(h);f=k.MeasureLayout,y.visualElement=KP(e,w,h,s,k.ProjectionNode,i)}return l.jsxs(ea.Provider,{value:y,children:[f&&y.visualElement?l.jsx(f,{visualElement:y.visualElement,...h}):null,zP(e,c,GP(w,y.visualElement,d),w,p,t,i)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=x.forwardRef(a);return u[UP]=e,u}function YP({layoutId:e}){const t=x.useContext(Ec).id;return t&&e!==void 0?t+"-"+e:e}function qP(e,t){x.useContext(Mx).strict}function QP(e){const t=Lx(),{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 ZP(e,t){if(typeof Proxy>"u")return Wa;const n=new Map,r=(i,o)=>Wa(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,Wa(o,void 0,e,t)),n.get(o))})}const JP=(e,t)=>t.isSVG??rd(e)?new Ej(t):new bj(t,{allowProjection:e!==x.Fragment});class eT extends bn{constructor(t){super(t),t.animationState||(t.animationState=Aj(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Zo(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 tT=0;class nT extends bn{constructor(){super(...arguments),this.id=tT++,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=Rn(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 rT={animation:{Feature:eT},exit:{Feature:nT}};function Gs(e){return{point:{x:e.pageX,y:e.pageY}}}const sT=e=>t=>qc(t)&&e(t,Gs(t));function ds(e,t,n,r){return Ds(e,t,sT(n),r)}const Fx=({current:e})=>e?e.ownerDocument.defaultView:null,$h=(e,t)=>Math.abs(e-t);function iT(e,t){const n=$h(e.x,t.x),r=$h(e.y,t.y);return Math.sqrt(n**2+r**2)}const Hh=new Set(["auto","scroll"]);class zx{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=y=>{this.handleScroll(y.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=gi(this.lastRawMoveEventInfo,this.transformPagePoint));const y=Ua(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,k=iT(y.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!k)return;const{point:g}=y,{timestamp:m}=Pe;this.history.push({...g,timestamp:m});const{onStart:v,onMove:b}=this.handlers;w||(v&&v(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,y)},this.handlePointerMove=(y,w)=>{this.lastMoveEvent=y,this.lastRawMoveEventInfo=w,this.lastMoveEventInfo=gi(w,this.transformPagePoint),Y.update(this.updatePoint,!0)},this.handlePointerUp=(y,w)=>{this.end();const{onEnd:k,onSessionEnd:g,resumeAnimation:m}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Ua(y.type==="pointercancel"?this.lastMoveEventInfo:gi(w,this.transformPagePoint),this.history);this.startEvent&&k&&k(y,v),g&&g(y,v)},!qc(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=s||window;const u=Gs(t),c=gi(u,this.transformPagePoint),{point:d}=c,{timestamp:f}=Pe;this.history=[{...d,timestamp:f}];const{onSessionStart:h}=n;h&&h(t,Ua(c,this.history));const p={passive:!0,capture:!0};this.removeListeners=$s(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);(Hh.has(r.overflowX)||Hh.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),Y.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),dt(this.updatePoint)}}function gi(e,t){return t?{point:t(e.point)}:e}function Wh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ua({point:e},t){return{point:e,delta:Wh(e,Bx(t)),offset:Wh(e,oT(t)),velocity:aT(t,.1)}}function oT(e){return e[0]}function Bx(e){return e[e.length-1]}function aT(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=Bx(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>Ze(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&s.timestamp-r.timestamp>Ze(t)*2&&(r=e[1]);const i=at(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 lT(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?se(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?se(n,e,r.max):Math.min(e,n)),e}function Uh(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 uT(e,{top:t,left:n,bottom:r,right:s}){return{x:Uh(e.x,n,s),y:Uh(e.y,t,r)}}function Gh(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 cT(e,t){return{x:Gh(e.x,t.x),y:Gh(e.y,t.y)}}function dT(e,t){let n=.5;const r=Fe(e),s=Fe(t);return s>r?n=Sr(t.min,t.max-r,e.min):r>s&&(n=Sr(e.min,e.max-s,t.min)),St(0,1,n)}function fT(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 Pu=.35;function hT(e=Pu){return e===!1?e=0:e===!0&&(e=Pu),{x:Kh(e,"left","right"),y:Kh(e,"top","bottom")}}function Kh(e,t,n){return{min:Xh(e,t),max:Xh(e,n)}}function Xh(e,t){return typeof e=="number"?e:e[t]||0}const mT=new WeakMap;class pT{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=ve(),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(Gs(f).point),this.stopAnimation()},o=(f,h)=>{const{drag:p,dragPropagation:y,onDragStart:w}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=FS(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),Ct(g=>{let m=this.getAxisMotionValue(g).get()||0;if(Lt.test(m)){const{projection:v}=this.visualElement;if(v&&v.layout){const b=v.layout.layoutBox[g];b&&(m=Fe(b)*(parseFloat(m)/100))}}this.originPoint[g]=m}),w&&Y.update(()=>w(f,h),!1,!0),mu(this.visualElement,"transform");const{animationState:k}=this.visualElement;k&&k.setActive("whileDrag",!0)},a=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:p,dragDirectionLock:y,onDirectionLock:w,onDrag:k}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:g}=h;if(y&&this.currentDirection===null){this.currentDirection=xT(g),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",h.point,g),this.updateAxis("y",h.point,g),this.visualElement.render(),k&&Y.update(()=>k(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 zx(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:Fx(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&&Y.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||!xi(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=lT(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&&Gn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=uT(r.layoutBox,t):this.constraints=!1,this.elastic=hT(n),s!==this.constraints&&!Gn(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Ct(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=fT(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Gn(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=gj(r,s.root,this.visualElement.getTransformPagePoint());let o=cT(s.layout.layoutBox,i);if(n){const a=n(hj(o));this.hasMutatedConstraints=!!a,a&&(o=ux(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),u=this.constraints||{},c=Ct(d=>{if(!xi(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,y={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,y)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return mu(this.visualElement,t),r.start(Gc(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ct(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){Ct(n=>{const{drag:r}=this.getProps();if(!xi(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]-se(o,a,.5)+u)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Gn(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Ct(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const u=a.get();s[o]=dT({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(),Ct(o=>{if(!xi(o,t,null))return;const a=this.getAxisMotionValue(o),{min:u,max:c}=this.constraints[o];a.set(se(u,c,s[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;mT.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&&US(h);d&&f&&!p&&this.start(c)});let r;const s=()=>{const{dragConstraints:c}=this.getProps();Gn(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),r||(r=gT(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Y.read(s);const a=Ds(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Ct(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=Pu,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function Yh(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function gT(e,t,n){const r=vu(e,Yh(n)),s=vu(t,Yh(n));return()=>{r(),s()}}function xi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function xT(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class yT extends bn{constructor(t){super(t),this.removeGroupControls=Xe,this.removeListeners=Xe,this.controls=new pT(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Xe}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 Ga=e=>(t,n)=>{e&&Y.update(()=>e(t,n),!1,!0)};class vT extends bn{constructor(){super(...arguments),this.removePointerDownListener=Xe}onPointerDown(t){this.session=new zx(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Fx(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Ga(t),onStart:Ga(n),onMove:Ga(r),onEnd:(i,o)=>{delete this.session,s&&Y.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 Ka=!1;class wT extends x.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),Ka&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),zi.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}),Ka=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||Y.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(),Pr.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;Ka=!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 $x(e){const[t,n]=_x(),r=x.useContext(Ec);return l.jsx(wT,{...e,layoutGroup:r,switchLayoutGroup:x.useContext(Vx),isPresent:t,safeToRemove:n})}const kT={pan:{Feature:vT},drag:{Feature:yT,ProjectionNode:Nx,MeasureLayout:$x}};function qh(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&&Y.postRender(()=>i(t,Gs(t)))}class bT extends bn{mount(){const{current:t}=this.node;t&&(this.unmount=BS(t,(n,r)=>(qh(this.node,r,"Start"),s=>qh(this.node,s,"End"))))}unmount(){}}class ST extends bn{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=$s(Ds(this.node.current,"focus",()=>this.onFocus()),Ds(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Qh(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&&Y.postRender(()=>i(t,Gs(t)))}class jT extends bn{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=KS(t,(s,i)=>(Qh(this.node,i,"Start"),(o,{success:a})=>Qh(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const Tu=new WeakMap,Xa=new WeakMap,PT=e=>{const t=Tu.get(e.target);t&&t(e)},TT=e=>{e.forEach(PT)};function CT({root:e,...t}){const n=e||document;Xa.has(n)||Xa.set(n,{});const r=Xa.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(TT,{root:e,...t})),r[s]}function ET(e,t,n){const r=CT(t);return Tu.set(e,n),r.observe(e),()=>{Tu.delete(e),r.unobserve(e)}}const NT={some:0,all:1};class _T extends bn{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:NT[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=ET(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(MT(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function MT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const LT={inView:{Feature:_T},tap:{Feature:jT},focus:{Feature:ST},hover:{Feature:bT}},AT={layout:{ProjectionNode:Nx,MeasureLayout:$x}},DT={...rT,...LT,...kT,...AT},zt=ZP(DT,JP);function To(e){return typeof window>"u"?!1:e?D0():Wc()}const RT=50,Zh=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),IT=()=>({time:0,x:Zh(),y:Zh()}),VT={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Jh(e,t,n,r){const s=n[t],{length:i,position:o}=VT[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=Sr(0,s.scrollLength,s.current);const c=r-u;s.velocity=c>RT?0:Lc(s.current-a,c)}function OT(e,t,n){Jh(e,"x",t,n),Jh(e,"y",t,n),t.time=n}function FT(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(us(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 Cu={start:0,center:.5,end:1};function em(e,t,n=0){let r=0;if(e in Cu&&(e=Cu[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 zT=[0,0];function BT(e,t,n,r){let s=Array.isArray(e)?e:zT,i=0,o=0;return typeof e=="number"?s=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?s=e.split(" "):s=[e,Cu[e]?e:"0"]),i=em(s[0],n,r),o=em(s[1],t),i-o}const qr={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},$T={x:0,y:0};function HT(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function WT(e,t,n){const{offset:r=qr.All}=n,{target:s=e,axis:i="y"}=n,o=i==="y"?"height":"width",a=s!==e?FT(s,e):$T,u=s===e?{width:e.scrollWidth,height:e.scrollHeight}:HT(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=BT(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=zc(t[i].offset,N0(r),{clamp:!1}),t[i].interpolatorOffsets=[...t[i].offset]),t[i].progress=St(0,1,t[i].interpolate(t[i].current))}function UT(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 GT(e,t,n,r={}){return{measure:s=>{UT(e,r.target,n),OT(e,n,s),(r.offset||r.target)&&WT(e,n,r)},notify:()=>t(n)}}const Un=new WeakMap,tm=new WeakMap,Ya=new WeakMap,nm=new WeakMap,yi=new WeakMap,rm=e=>e===document.scrollingElement?window:e;function Hx(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return Xe;let s=Ya.get(t);s||(s=new Set,Ya.set(t,s));const i=IT(),o=GT(t,e,i,r);if(s.add(o),!Un.has(t)){const u=()=>{for(const h of s)h.measure(Pe.timestamp);Y.preUpdate(c)},c=()=>{for(const h of s)h.notify()},d=()=>Y.read(u);Un.set(t,d);const f=rm(t);window.addEventListener("resize",d),t!==document.documentElement&&tm.set(t,vu(t,d)),f.addEventListener("scroll",d),d()}if(n&&!yi.has(t)){const u=Un.get(t),c={width:t.scrollWidth,height:t.scrollHeight};nm.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=Y.read(d,!0);yi.set(t,f)}const a=Un.get(t);return Y.read(a,!1,!0),()=>{var f;dt(a);const u=Ya.get(t);if(!u||(u.delete(o),u.size))return;const c=Un.get(t);Un.delete(t),c&&(rm(t).removeEventListener("scroll",c),(f=tm.get(t))==null||f(),window.removeEventListener("resize",c));const d=yi.get(t);d&&(dt(d),yi.delete(t)),nm.delete(t)}}const KT=[[qr.Enter,"entry"],[qr.Exit,"exit"],[qr.Any,"cover"],[qr.All,"contain"]],sm={start:0,end:1};function XT(e){const t=e.trim().split(/\s+/);if(t.length!==2)return;const n=sm[t[0]],r=sm[t[1]];if(!(n===void 0||r===void 0))return[n,r]}function YT(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=XT(n);if(!r)return;t.push(r)}else return;return t}function qT(e,t){const n=YT(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 sd(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(const[t,n]of KT)if(qT(e,t))return{rangeStart:`${n} 0%`,rangeEnd:`${n} 100%`}}const im=new Map;function om(e){const t={value:0},n=Hx(r=>{t.value=r[e.axis].progress*100},e);return{currentTime:t,cancel:n}}function Wx({source:e,container:t,...n}){const{axis:r}=n;e&&(t=e);let s=im.get(t);s||(s=new Map,im.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&&To(n.target)?sd(n.offset)?o[a]=new ViewTimeline({subject:n.target,axis:r}):o[a]=om({container:t,...n}):To()?o[a]=new ScrollTimeline({source:t,axis:r}):o[a]=om({container:t,...n})),o[a]}function QT(e,t){const n=Wx(t),r=t.target?sd(t.offset):void 0,s=t.target?To(t.target)&&!!r:To();return e.attachTimeline({timeline:s?n:void 0,...r&&s&&{rangeStart:r.rangeStart,rangeEnd:r.rangeEnd},observe:i=>(i.pause(),sx(o=>{i.time=i.iterationDuration*o},n))})}function ZT(e){return e&&(e.target||e.offset)}function JT(e){return e.length===2}function eC(e,t){return JT(e)||ZT(t)?Hx(n=>{e(n[t.axis].progress,n)},t):sx(e,Wx(t))}function Ux(e,{axis:t="y",container:n=document.scrollingElement,...r}={}){if(!n)return Xe;const s={axis:t,container:n,...r};return typeof e=="function"?eC(e,s):QT(e,s)}const tC=()=>({scrollX:yt(0),scrollY:yt(0),scrollXProgress:yt(0),scrollYProgress:yt(0)}),lr=e=>e?!e.current:!1;function am(e,t,n,r){return{factory:s=>{let i;const o=()=>{if(lr(n)||lr(r)){Pr.read(o);return}i=Ux(s,{...t,axis:e,container:(n==null?void 0:n.current)||void 0,target:(r==null?void 0:r.current)||void 0})};return Pr.read(o),()=>{J0(o),i==null||i()}},times:[0,1],keyframes:[0,1],ease:s=>s,duration:1}}function nC(e,t){return typeof window>"u"?!1:e?D0()&&!!sd(t):Wc()}function Gx({container:e,target:t,...n}={}){const r=xn(tC);nC(t,n.offset)&&(r.scrollXProgress.accelerate=am("x",n,e,t),r.scrollYProgress.accelerate=am("y",n,e,t));const s=x.useRef(null),i=x.useRef(!1),o=x.useCallback(()=>(s.current=Ux((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 Bs(()=>{if(i.current=!1,lr(e)||lr(t)){i.current=!0;return}else return o()},[o]),x.useEffect(()=>{if(!i.current)return;let a;const u=()=>{const c=lr(e),d=lr(t);!c&&!d&&(a=o())};return Pr.read(u),()=>{J0(u),a==null||a()}},[o]),r}function Kx(e){const t=xn(()=>yt(e)),{isStatic:n}=x.useContext(Us);if(n){const[,r]=x.useState(e);x.useEffect(()=>t.on("change",r),[])}return t}function Xx(e,t){const n=Kx(t()),r=()=>n.set(t());return r(),Bs(()=>{const s=()=>Y.preRender(r,!1,!0),i=e.map(o=>o.on("change",s));return()=>{i.forEach(o=>o()),dt(r)}}),n}function rC(e){ls.current=[],e();const t=Xx(ls.current,e);return ls.current=void 0,t}function Zt(e,t,n,r){if(typeof e=="function")return rC(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!="function")return sC(e,t,n,r);const o=typeof t=="function"?t:rj(t,n,r),a=Array.isArray(e)?lm(e,o):lm([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 lm(e,t){const n=xn(()=>[]);return Xx(e,()=>{n.length=0;const r=e.length;for(let s=0;s<r;s++)n[s]=e[s].get();return t(n)})}function sC(e,t,n,r){const s=xn(()=>Object.keys(n)),i=xn(()=>({}));for(const o of s)i[o]=Zt(e,t,n[o],r);return i}function iC(e,t={}){const{isStatic:n}=x.useContext(Us),r=()=>be(e)?e.get():e;if(n)return Zt(r);const s=Kx(r());return x.useInsertionEffect(()=>sj(s,e,t),[s,JSON.stringify(t)]),s}function oC(e,t={}){return iC(e,{type:"spring",...t})}function aC(){const{scrollYProgress:e}=Gx(),t=oC(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 lC=()=>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 Ks({message:e,fullScreen:t=!1}){const{t:n}=Ee(),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(lC,{})}),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(U,{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(Hk,{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 um=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 Xs({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:um}):l.jsx("div",{className:"bg-amber-500 px-4 py-2 text-center text-xs font-semibold text-white",children:um})}function uC({onClose:e}){const{consent:t,saveCustom:n}=Mr(),[r,s]=x.useState(t.external),[i,o]=x.useState(t.analytics),{t:a}=Ee();return 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",{className:"w-full max-w-md rounded-xl bg-white p-6 dark:bg-neutral-900",onClick:u=>u.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(U,{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:u=>s(u.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:u=>o(u.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 cC(){const{decided:e,settingsOpen:t,acceptAll:n,rejectNonEssential:r,openSettings:s,closeSettings:i}=Mr(),{t:o}=Ee();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(U,{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(uC,{onClose:i})]})}function dC(){const{consent:e}=Mr(),{ga_measurement_id:t}=jt(),n=x.useRef(!1);return x.useEffect(()=>{if(!t||!e.analytics||n.current)return;n.current=!0;const r=document.createElement("script");r.src=`https://www.googletagmanager.com/gtag/js?id=${t}`,r.async=!0,document.head.appendChild(r),window.dataLayer=window.dataLayer||[];function s(...i){window.dataLayer.push(i)}window.gtag=s,s("js",new Date),s("config",t,{anonymize_ip:!0})},[t,e.analytics]),null}const Yx=x.createContext({global:{enabled:!1,message:null},services:{enabled:!1,message:null},vehicles:{enabled:!1,message:null},bypass:!1}),fC=Yx.Provider;function ta(){return x.useContext(Yx)}const id=x.createContext({}),hC=id.Provider;function Bn(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 De(e){const t=x.useContext(id);return Bn(t,e)}function od(){return x.useContext(id)}const mC=[{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'}],ad=x.createContext({fonts:[],refresh:()=>{}}),qx=ad.Provider;function Qx(){return x.useContext(ad).fonts}function xN(){return x.useContext(ad).refresh}function yN(){const e=Qx();return[...mC,...e.map(t=>({label:t.name,value:t.font_family}))]}function pC(e){const t=/\.([a-z0-9]+)$/i.exec(e||"");return t?t[1].toLowerCase():""}const gC={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype"};function Zx(){const e=Qx();if(e.length===0)return null;const t=e.map(n=>{const r=gC[pC(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 xC=150,yC=300,vC=80,wC=5e3;function kC(){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 bC({enabled:e,children:t}){const n=nt(),[r,s]=x.useState(!e),[i,o]=x.useState(!1),a=x.useRef(null);return x.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)},xC),y=()=>{s(!0),o(!1)},w=()=>{c=!0,clearTimeout(p),clearTimeout(f),clearTimeout(C),b.disconnect(),P()},k=()=>{if(c)return;w();const S=d?yC-(Date.now()-d):0;S>0?setTimeout(y,S):y()},g=()=>{clearTimeout(f),f=setTimeout(()=>{h.size===0&&Gw()===0&&k()},vC)},m=S=>{if(h.has(S)||S.complete||S.getBoundingClientRect().top>=window.innerHeight)return;S.loading==="lazy"&&(S.loading="eager"),h.add(S);const j=()=>{h.delete(S),S.removeEventListener("load",j),S.removeEventListener("error",j),g()};S.addEventListener("load",j),S.addEventListener("error",j)},v=S=>{var j;S.nodeType===1&&(S.tagName==="IMG"&&m(S),(j=S.querySelectorAll)==null||j.call(S,"img").forEach(m))},b=new MutationObserver(S=>{S.forEach(j=>j.addedNodes.forEach(v)),g()});b.observe(u,{childList:!0,subtree:!0});const P=Kw(g),C=setTimeout(k,wC);return u.querySelectorAll("img").forEach(m),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(kC,{})]})}const SC={global:{enabled:!1,message:null},services:{enabled:!1,message:null},vehicles:{enabled:!1,message:null}},jC={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}},PC={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:jC,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},TC=["/impressum","/datenschutz","/agb"];function CC(){const[e,t]=x.useState(null),[n,r]=x.useState(PC),[s,i]=x.useState({}),[o,a]=x.useState([]),{loading:u,hasPermission:c}=zs(),d=nt();if(x.useEffect(()=>{ee.get("/maintenance").then(t).catch(()=>t(SC)),ee.get("/site-settings").then(r).catch(()=>{}),ee.get("/text-styles").then(i).catch(()=>{}),ee.get("/custom-fonts").then(a).catch(()=>{})},[]),x.useEffect(()=>{n.site_font?document.documentElement.style.setProperty("--site-font",n.site_font):document.documentElement.style.removeProperty("--site-font")},[n.site_font]),e===null||u)return l.jsx("div",{className:"min-h-screen bg-white dark:bg-neutral-950"});const f=c("maintenance.bypass"),h=TC.includes(d.pathname);return e.global.enabled&&!f&&!h?l.jsx(Lf,{children:l.jsx(Ks,{message:e.global.message,fullScreen:!0})}):l.jsx(Lf,{children:l.jsx(fC,{value:{...e,bypass:f},children:l.jsx(jb,{value:n,children:l.jsx(hC,{value:s,children:l.jsx(qx,{value:{fonts:o,refresh:()=>{}},children:l.jsxs("div",{className:"page-texture flex min-h-screen flex-col text-neutral-900 dark:text-neutral-100",children:[l.jsx(Zx,{}),f&&e.global.enabled&&l.jsx(Xs,{}),l.jsx(aC,{}),l.jsx(_b,{}),l.jsx("main",{className:"flex-1",children:l.jsx(bC,{enabled:d.pathname!=="/"&&!!n.page_loader_enabled,children:l.jsx(Cc,{})})}),l.jsx(Vb,{}),l.jsx(cC,{}),l.jsx(dC,{})]})})})})})})}const cm="/assets/logo-BNfZDkmN.png",EC={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"},NC=({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 _C(){const{logout:e,user:t,hasPermission:n}=zs(),r=Ko(),[s,i]=x.useState(!1),[o,a]=x.useState(0),[u,c]=x.useState([]);x.useEffect(()=>{n("contact.manage")&&ee.get("/contact").then(w=>a(w.filter(k=>k.status==="new").length)).catch(()=>{})},[]);const d=()=>ee.get("/custom-fonts").then(c).catch(()=>{});x.useEffect(()=>{d()},[]);const f=[{title:null,links:[{to:"/admin",label:"Dashboard",icon:"home",end:!0},{to:"/admin/account",label:"Mein Konto",icon:"lock"}]},{title:"Fahrzeug-Katalog",links:[{to:"/admin/brands",label:"Marken",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",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",icon:"tag",permission:"content.manage"},{to:"/admin/downloads",label:"Downloads",icon:"download",permission:"downloads.manage"}]},{title:"Bildergalerie",links:[{to:"/admin/gallery-brands",label:"Marken",icon:"tag",permission:"gallery.manage"},{to:"/admin/gallery-projects",label:"Projekte",icon:"image",permission:"gallery.manage"}]},{title:"Kunden",links:[{to:"/admin/contact-requests",label:"Kontaktanfragen",icon:"mail",permission:"contact.manage",badge:o}]},{title:"Verwaltung",links:[{to:"/admin/users",label:"Benutzer",icon:"users",permission:"users.manage"},{to:"/admin/permission-groups",label:"Berechtigungsgruppen",icon:"shield",permission:"permission_groups.manage"},{to:"/admin/settings",label:"Einstellungen",icon:"sliders",permission:"settings.manage"}]}].map(w=>({...w,links:w.links.filter(k=>!k.permission||n(k.permission))})).filter(w=>w.links.length>0),h=async()=>{await e(),r("/admin/login")},p=({isActive:w})=>`flex items-center justify-between gap-2 rounded-md px-3 py-2 text-sm font-medium transition ${w?"bg-brand-500 text-white":"text-neutral-600 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,y=({onNavigate:w})=>l.jsx("nav",{className:"space-y-5",children:f.map((k,g)=>l.jsxs("div",{children:[k.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:k.title}),l.jsx("div",{className:"space-y-1",children:k.links.map(m=>l.jsxs(Dw,{to:m.to,end:m.end,className:p,onClick:w,children:[l.jsxs("span",{className:"flex items-center gap-2.5",children:[l.jsx(NC,{path:EC[m.icon]}),m.label]}),!!m.badge&&l.jsx("span",{className:"rounded-full bg-red-500 px-2 py-0.5 text-xs font-bold text-white",children:m.badge})]},m.to))})]},g))});return l.jsx(qx,{value:{fonts:u,refresh:d},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(Zx,{}),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(U,{to:"/",className:"rounded-lg px-2 py-1",children:[l.jsx("img",{src:cm,alt:"HifiPlanet",className:"h-7 w-auto dark:hidden"}),l.jsx("img",{src:eu,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(y,{})]}),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(w=>!w),"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(U,{to:"/",className:"rounded-lg px-1.5 py-0.5",children:[l.jsx("img",{src:cm,alt:"HifiPlanet",className:"h-6 w-auto dark:hidden"}),l.jsx("img",{src:eu,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.jsx(Zg,{}),l.jsx("button",{onClick:h,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(y,{onNavigate:()=>i(!1)})})]}),l.jsx("main",{className:"p-4 sm:p-6",children:l.jsx(x.Suspense,{fallback:l.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}),children:l.jsx(Cc,{})})})]})]})})}function MC(){const{user:e,loading:t}=zs();return t?l.jsx("div",{className:"flex min-h-screen items-center justify-center text-neutral-500",children:"Lädt…"}):e?l.jsx(Cc,{}):l.jsx(mo,{to:"/admin/login",replace:!0})}function Se({permission:e,children:t}){const{hasPermission:n}=zs();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 qa(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 LC(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}`)}function rt({title:e,description:t,path:n}){x.useEffect(()=>{e&&(document.title=`${e} | HifiPlanet`,qa("og:title",`${e} | HifiPlanet`,"property")),t&&(qa("description",t),qa("og:description",t,"property")),n&&LC(n)},[e,t,n])}const AC=[.16,1,.3,1],dm={up:{y:40},left:{x:-56},right:{x:56}};function DC(e){return{hidden:{opacity:0,scale:.96,filter:"blur(8px)",...dm[e]||dm.up},visible:{opacity:1,scale:1,x:0,y:0,filter:"blur(0px)"}}}const RC={hidden:{x:"-130%"},visible:{x:"230%",transition:{duration:1.1,ease:"easeInOut",delay:.4}}};function je({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:DC(t),transition:{duration:.75,ease:AC,delay:o},children:[e,s&&l.jsx(zt.div,{"aria-hidden":!0,variants:RC,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"})]})}function IC({items:e}){const[t,n]=x.useState(null);return 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((r,s)=>{const i=t===s;return l.jsxs("div",{children:[l.jsxs("button",{onClick:()=>n(i?null:s),className:"flex w-full items-center justify-between gap-4 px-5 py-4 text-left","aria-expanded":i,children:[l.jsx("span",{className:"font-medium text-neutral-900 dark:text-white",children:r.question}),l.jsx(zt.svg,{animate:{rotate:i?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(CP,{initial:!1,children:i&&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:r.answer})})})]},r.question)})})}function Jx({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 VC=70;function OC({testimonials:e}){const t=x.useRef(null),n=x.useRef(null),r=x.useRef({pos:0,half:0,hovering:!1,dragging:!1,dragStartX:0,dragStartPos:0,lastTime:null,rafId:null}).current;x.useLayoutEffect(()=>{const i=n.current,o=window.matchMedia("(prefers-reduced-motion: reduce)").matches,a=()=>{i.style.transform=`translateX(${r.pos}px)`},u=m=>{if(r.half<=0)return m;for(;m>0;)m-=r.half;for(;m<=-r.half;)m+=r.half;return m},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=m=>{r.lastTime===null&&(r.lastTime=m);const v=(m-r.lastTime)/1e3;r.lastTime=m,!r.dragging&&!r.hovering&&!o&&(r.pos=u(r.pos+VC*v),a()),r.rafId=requestAnimationFrame(f)};r.rafId=requestAnimationFrame(f);const h=t.current,p=()=>{r.hovering=!0},y=()=>{r.hovering=!1},w=m=>{r.dragging=!0,r.dragStartX=m.clientX,r.dragStartPos=r.pos,h.setPointerCapture(m.pointerId),h.classList.add("cursor-grabbing"),h.classList.remove("cursor-grab")},k=m=>{r.dragging&&(r.pos=u(r.dragStartPos+(m.clientX-r.dragStartX)),a())},g=m=>{r.dragging&&(r.dragging=!1,h.hasPointerCapture(m.pointerId)&&h.releasePointerCapture(m.pointerId),h.classList.remove("cursor-grabbing"),h.classList.add("cursor-grab"))};return h.addEventListener("pointerenter",p),h.addEventListener("pointerleave",y),h.addEventListener("pointerdown",w),h.addEventListener("pointermove",k),h.addEventListener("pointerup",g),h.addEventListener("pointercancel",g),()=>{cancelAnimationFrame(r.rafId),d.disconnect(),h.removeEventListener("pointerenter",p),h.removeEventListener("pointerleave",y),h.removeEventListener("pointerdown",w),h.removeEventListener("pointermove",k),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(Jx,{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 Co(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 FC="/assets/gallery-dash2-CEVCErVK.webp",ey="/assets/gallery-amp-purple-CESAKuOf.webp",zC="/assets/gallery-speaker-CUXQZ49Q.webp",ty="/assets/gallery-subs-COSd4seJ.webp",ny="/assets/gallery-dash-Cg-7v9qo.webp",BC="/assets/hero-trunk-Dp4_JHDh.webp",$C="/assets/gallery-rear-8cIXPC7T.webp",HC="/assets/hero-highlight-Co4f1Kj5.webp",WC="/assets/youtube-hintergrund-BqSbCrLQ.mp4",vi={left:"text-left",center:"text-center",right:"text-right"},UC={left:"",center:"mx-auto",right:"ml-auto"},GC={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 fm({label:e,url:t,className:n,style:r}){return!e||!t?null:t.startsWith("/")?l.jsx(U,{to:t,className:n,style:r,children:e}):l.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:n,style:r,children:e})}const KC=[{src:ty,width:900,height:600},{src:ey,width:900,height:600},{src:zC,width:900,height:1200},{src:ny,width:900,height:814},{src:$C,width:900,height:1200},{src:BC,width:1920,height:1280}];function XC(){const{hero_image_path:e}=jt(),t=e||FC,{t:n,language:r}=Ee(),s=n("home.stats"),i=n("home.galleryAlts"),o=KC.map((I,z)=>({...I,alt:i[z]})),[a,u]=x.useState([]),[c,d]=x.useState({}),[f,h]=x.useState([]),p=I=>{const z=c[I]||GC;return{eyebrow:z[`eyebrow_${r}`]||"",title:z[`title_${r}`]||"",bodyHtml:z[`body_html_${r}`]||"",align:z.text_align||"center",alignX:z.text_align_x,alignY:z.text_align_y,buttonLabel:z[`button_label_${r}`]||"",buttonUrl:z.button_url||"",fontFamily:z.font_family||void 0}},y=De("home_sections.hero.eyebrow"),w=De("home_sections.hero.title"),k=De("home_sections.youtube.eyebrow"),g=De("home_sections.youtube.title"),m=De("home_sections.youtube.button_label"),v=De("home_sections.craft.eyebrow"),b=De("home_sections.craft.title"),P=De("home_sections.advice.eyebrow"),C=De("home_sections.advice.title"),S=De("home_sections.insights.eyebrow"),j=De("home_sections.insights.title"),A=De("home_sections.more.eyebrow"),N=De("home_sections.more.title"),O=De("home_sections.more.button_label");x.useEffect(()=>{ee.get("/home-sections").then(d).catch(()=>{})},[]),x.useEffect(()=>{ee.get("/partners").then(h).catch(()=>{})},[]);const[H,_]=x.useState(null),L=H?H.reviews.filter(I=>I.review_text).map(I=>({name:I.author_name,text:I.review_text,rating:I.rating,photo:I.profile_photo_url})):n("home.testimonials");x.useEffect(()=>{ee.get("/faqs").then(I=>{u(I.map(z=>({question:r==="de"?z.question_de:z.question_en,answer:r==="de"?z.answer_de:z.answer_en})))}).catch(()=>{})},[r]),x.useEffect(()=>{ee.get("/google-reviews").then(I=>{I.rating!=null&&I.reviews.some(z=>z.review_text)&&_(I)}).catch(()=>{})},[]),rt({title:n("home.metaTitle"),description:n("home.metaDescription"),path:"/"}),x.useEffect(()=>{if(a.length===0)return;const I=document.createElement("script");return I.type="application/ld+json",I.text=JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:a.map(z=>({"@type":"Question",name:z.question,acceptedAnswer:{"@type":"Answer",text:z.answer}}))}),document.head.appendChild(I),()=>document.head.removeChild(I)},[a]);const W=x.useRef(null);x.useEffect(()=>{const I=W.current;if(!I)return;const z=new IntersectionObserver(([X])=>{X.isIntersecting?(I.getAttribute("src")||(I.src=WC),I.play().catch(()=>{})):I.paused||I.pause()},{rootMargin:"300px 0px"});return z.observe(I),()=>z.disconnect()},[]);const F=x.useRef(null),{scrollYProgress:q}=Gx({target:F,offset:["start start","end start"]}),E=Zt(q,[0,1],["-6%","6%"]),T=Zt(q,[0,1],["0%","60%"]),D=Zt(q,[0,.8],[1,0]),$=Zt(q,[.5,1],[0,1]),Z=Zt($,I=>I>.05?"auto":"none"),re=Zt(q,[.5,1],[16,0]);return l.jsxs("div",{children:[l.jsx(zt.div,{style:{opacity:$,pointerEvents:Z,y:re},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("p",{className:"hidden text-sm font-medium text-neutral-600 dark:text-neutral-300 sm:block",children:n("home.stickyCta")}),l.jsxs("div",{className:"flex w-full gap-3 sm:w-auto",children:[l.jsx(U,{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:n("home.selectVehicle")}),l.jsx(U,{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:n("home.getInTouch")})]})]})}),l.jsxs("section",{ref:F,className:"relative -mt-[89px] h-dvh min-h-[560px] overflow-hidden sm:-mt-[97px]",children:[l.jsx(zt.img,{style:{y:E,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:T,opacity:D},className:"absolute inset-0",children:l.jsx("div",{className:"absolute w-full max-w-2xl px-4 text-center sm:px-6",style:{...Co(p("hero").alignX,p("hero").alignY,{x:50,y:50}),fontFamily:p("hero").fontFamily},children:l.jsxs(zt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.7,ease:"easeOut"},children:[p("hero").eyebrow&&l.jsx("p",{className:"mb-3 text-sm font-semibold uppercase tracking-wide text-brand-400",style:y,children:p("hero").eyebrow}),l.jsx("h1",{className:"text-3xl font-extrabold tracking-tight text-white sm:text-5xl",style:w,children:p("hero").title}),l.jsx("div",{className:"legal-content mx-auto mt-4 max-w-2xl text-base text-neutral-200 sm:text-lg",dangerouslySetInnerHTML:{__html:p("hero").bodyHtml}}),l.jsxs("div",{className:"mt-8 flex flex-wrap items-center justify-center gap-3",children:[l.jsx(U,{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:n("home.selectVehicle")}),l.jsx(U,{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:n("home.getInTouch")})]})]})})})]}),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:s.map((I,z)=>l.jsxs(je,{index:z,children:[l.jsx("p",{className:"text-2xl font-extrabold text-brand-400 sm:text-3xl",children:I.value}),l.jsx("p",{className:"text-sm text-neutral-400",children:I.label})]},I.label))})}),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("p",{className:"mb-4 text-center text-xs font-semibold uppercase tracking-wide text-neutral-400",children:n("home.brandsHeading")}),l.jsx("div",{className:"flex flex-wrap items-center justify-center gap-x-8 gap-y-3",children:f.map((I,z)=>l.jsx(je,{index:z,children:I.logo_path?l.jsx("img",{src:I.logo_path,alt:I.name,className:"h-8 max-w-[8rem] object-contain opacity-70 grayscale transition hover:opacity-100 hover:grayscale-0"}):l.jsx("span",{className:"text-lg font-bold text-neutral-400 dark:text-neutral-600",children:I.name})},I.id))})]})}),l.jsxs("section",{className:"relative min-h-[70vh] overflow-hidden sm:min-h-[85vh]",children:[l.jsx("video",{ref:W,loop:!0,muted:!0,playsInline:!0,preload:"none",poster:ny,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:{...Co(p("youtube").alignX,p("youtube").alignY,{x:50,y:50}),fontFamily:p("youtube").fontFamily},children:l.jsxs(je,{children:[p("youtube").eyebrow&&l.jsx("p",{className:"mb-4 text-xs font-semibold uppercase tracking-[0.2em] text-neutral-200 sm:text-sm",style:k,children:p("youtube").eyebrow}),l.jsx("h2",{className:"text-3xl font-bold uppercase tracking-wide text-white sm:text-5xl",style:g,children:p("youtube").title}),l.jsx("div",{className:"legal-content mt-4 text-xs font-semibold uppercase tracking-wide text-neutral-200 sm:text-sm",dangerouslySetInnerHTML:{__html:p("youtube").bodyHtml}}),l.jsx(fm,{label:p("youtube").buttonLabel,url:p("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:m})]})})]}),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(je,{direction:"left",shine:!0,className:"rounded-xl shadow-lg",children:l.jsx("img",{src:ty,alt:n("home.craftImageAlt"),width:900,height:600,className:"w-full rounded-xl object-cover",style:{maxHeight:380}})}),l.jsxs(je,{direction:"right",index:1,className:vi[p("craft").align],style:{fontFamily:p("craft").fontFamily},children:[p("craft").eyebrow&&l.jsx("p",{className:"mb-2 text-sm font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",style:v,children:p("craft").eyebrow}),l.jsx("h2",{className:"mb-3 text-2xl font-bold text-neutral-900 dark:text-white",style:b,children:p("craft").title}),l.jsx("div",{className:"legal-content text-neutral-600 dark:text-neutral-300",dangerouslySetInnerHTML:{__html:p("craft").bodyHtml}})]})]}),l.jsxs("div",{className:"grid items-center gap-8 md:grid-cols-2",children:[l.jsxs(je,{direction:"left",className:`order-2 md:order-1 ${vi[p("advice").align]}`,style:{fontFamily:p("advice").fontFamily},children:[p("advice").eyebrow&&l.jsx("p",{className:"mb-2 text-sm font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",style:P,children:p("advice").eyebrow}),l.jsx("h2",{className:"mb-3 text-2xl font-bold text-neutral-900 dark:text-white",style:C,children:p("advice").title}),l.jsx("div",{className:"legal-content text-neutral-600 dark:text-neutral-300",dangerouslySetInnerHTML:{__html:p("advice").bodyHtml}})]}),l.jsx(je,{direction:"right",index:1,shine:!0,className:"order-1 md:order-2 rounded-xl shadow-lg",children:l.jsx("img",{src:ey,alt:n("home.adviceImageAlt"),width:900,height:600,className:"w-full rounded-xl object-cover",style:{maxHeight:380}})})]})]})}),l.jsxs("section",{className:"mx-auto max-w-6xl px-4 py-16 sm:px-6",children:[l.jsxs(je,{className:`mb-8 ${vi[p("insights").align]}`,style:{fontFamily:p("insights").fontFamily},children:[p("insights").eyebrow&&l.jsx("p",{className:"mb-2 text-sm font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",style:S,children:p("insights").eyebrow}),l.jsx("h2",{className:"text-2xl font-bold text-neutral-900 dark:text-white",style:j,children:p("insights").title}),l.jsx("div",{className:"legal-content mt-2 text-neutral-600 dark:text-neutral-300",dangerouslySetInnerHTML:{__html:p("insights").bodyHtml}})]}),l.jsx("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3",children:o.map((I,z)=>l.jsx(je,{index:z%3,shine:!0,className:"aspect-square overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:l.jsx("img",{src:I.src,alt:I.alt,width:I.width,height:I.height,loading:"lazy",className:"h-full w-full object-cover transition duration-300 hover:scale-105"})},I.src))})]}),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(je,{className:"mb-10 text-center",children:[l.jsx("div",{className:"mb-2 flex items-center justify-center gap-2",children:l.jsx(Jx,{className:"h-6 w-6",count:H?Math.round(H.rating):5})}),l.jsx("h2",{className:"text-2xl font-bold text-neutral-900 dark:text-white",children:H?n("home.reviewsRatingDynamic")(H.rating,H.rating_count):n("home.reviewsRating")}),l.jsx("p",{className:"mt-1 text-neutral-600 dark:text-neutral-300",children:n("home.reviewsText")}),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:n("home.reviewsLink")})]}),l.jsx(je,{children:l.jsx(OC,{testimonials:L})})]})}),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(je,{direction:"left",shine:!0,className:"overflow-hidden rounded-xl shadow-lg",children:l.jsx("img",{src:HC,alt:n("home.moreImageAlt"),width:1600,height:905,className:"h-full w-full object-cover",loading:"lazy"})}),l.jsxs(je,{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 ${vi[p("more").align]}`,style:{fontFamily:p("more").fontFamily},children:[p("more").eyebrow&&l.jsx("p",{className:"mb-2 text-sm font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",style:A,children:p("more").eyebrow}),l.jsx("h2",{className:"mb-3 text-2xl font-bold text-neutral-900 dark:text-white",style:N,children:p("more").title}),l.jsx("div",{className:`legal-content mb-8 max-w-2xl text-neutral-600 dark:text-neutral-300 ${UC[p("more").align]}`,dangerouslySetInnerHTML:{__html:p("more").bodyHtml}}),l.jsx(fm,{label:p("more").buttonLabel,url:p("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:O})]})]})}),l.jsx("section",{className:"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(je,{className:"mb-8 text-center",children:l.jsx("h2",{className:"text-2xl font-bold text-neutral-900 dark:text-white",children:n("home.faqHeading")})}),l.jsx(je,{index:1,children:l.jsx(IC,{items:a})})]})})]})}function YC(){const[e,t]=x.useState([]),[n,r]=x.useState(""),s=ta(),{t:i}=Ee(),o=od(),{vehicle_tile_width:a,vehicle_tile_height:u}=jt(),c={width:`${a}px`,height:`${u}px`};return rt({title:i("vehicleSelect.metaTitle"),description:i("vehicleSelect.metaDescription"),path:"/fahrzeuge"}),x.useEffect(()=>{s.vehicles.enabled&&!s.bypass||ee.get("/brands").then(t).catch(d=>r(d.message))},[s.vehicles.enabled,s.bypass]),s.vehicles.enabled&&!s.bypass?l.jsx(Ks,{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(Xs,{inline:!0}),l.jsx("h1",{className:"mb-2 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:i("vehicleSelect.title")}),l.jsx("p",{className:"mb-8 text-neutral-600 dark:text-neutral-300",children:i("vehicleSelect.intro")}),n&&l.jsx("p",{className:"text-red-600",children:n}),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(U,{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:"",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("span",{className:"absolute inset-x-0 bottom-0 p-4 text-center text-lg font-extrabold text-white",style:Bn(o,`brands.${d.id}.name`),children:d.name})]},d.id):l.jsx(U,{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("span",{style:Bn(o,`brands.${d.id}.name`),children:d.name})},d.id))})]})}function qC(){const{brandSlug:e}=Xo(),[t,n]=x.useState(null),[r,s]=x.useState(""),i=ta(),{t:o}=Ee(),a=od(),u=De(t?`brands.${t.brand.id}.name`:""),{vehicle_tile_width:c,vehicle_tile_height:d}=jt(),f={width:`${c}px`,height:`${d}px`};return x.useEffect(()=>{i.vehicles.enabled&&!i.bypass||ee.get(`/brands/${e}/models`).then(n).catch(h=>s(h.message))},[e,i.vehicles.enabled,i.bypass]),rt({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(Ks,{message:i.vehicles.message}):r?l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-red-600 sm:px-6",children:r}):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(Xs,{inline:!0}),l.jsxs("p",{className:"mb-1 text-sm text-neutral-500 dark:text-neutral-400",children:[l.jsx(U,{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(U,{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:"",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("span",{className:"absolute inset-x-0 bottom-0 p-4 text-center text-lg font-extrabold text-white",style:Bn(a,`car_models.${h.id}.name`),children:h.name})]},h.id):l.jsx(U,{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("span",{style:Bn(a,`car_models.${h.id}.name`),children:h.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 QC({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 hm="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==",ZC="/assets/base-BKOm0Bib.webp",JC="/assets/clear-DZZMSrMX.webp",eE="/assets/drive-BE2W1yna.webp",tE="/assets/prime-BTVNe2Gb.webp",nE="/assets/elite_r-BRvz_pyr.webp",rE="/assets/apex-CFy2qup8.webp",sE="/assets/statement-pTO-wTPx.webp",iE="/assets/limitless-DDs0S_PU.webp",oE=(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)]},Qa=(e,t,n)=>`rgb(${oE(e,t,n).join(", ")})`,mm=e=>e.map(([t,n,r,s,i,o])=>({bgTop:Qa(t,n,r),border:Qa(t,n,r+8),accent:Qa(s,i,o),img:null})),pm={graphite:[{accent:"#b6b6b6",border:"#2a2a2a",bgTop:"#1c1c1c",img:ZC},{accent:"#d3d3d3",border:"#2e2e2e",bgTop:"#212121",img:JC},{accent:"#8fb8bd",border:"#26383b",bgTop:"#16282b",img:eE},{accent:"#6fbf73",border:"#1f3a24",bgTop:"#122916",img:tE},{accent:"#63d34f",border:"#204a1c",bgTop:"#123312",img:nE},{accent:"#8bea3c",border:"#2b5518",bgTop:"#173a0f",img:rE},{accent:"#d9a83c",border:"#4a3a16",bgTop:"#33270d",img:sE},{accent:"#f2c14e",border:"#5a4718",bgTop:"#3d2f0c",img:iE}],"deep-blue":mm([[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":mm([[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]])},aE="#f2f2f2",lE="#8a8a8a",uE="#c4c4c4",gm=5,cE={recommended:{Icon:cb,className:"bg-brand-500 text-white"},popular:{Icon:Rk,className:"bg-amber-400 text-neutral-950"},tip:{Icon:Fk,className:"bg-sky-500 text-white"},coming_soon:{Icon:Xg,className:"bg-white text-neutral-900"},custom:{Icon:null,className:"bg-brand-500 text-white"}};function dE({pkg:e,tier:t,tierT:n,layout:r,bullets:s,formatPrice:i,contactUrl:o,t:a}){const[u,c]=x.useState(!1),d=s.length-gm,f=u?s:s.slice(0,gm),h=od(),p=Bn(h,`packages.${e.id}.description`),y=Bn(h,`packages.${e.id}.price_text`),{package_card_width:w,package_card_height:k}=jt(),g=cE[e.badge],m=e.badge==="custom"?e.badge_text:e.badge&&a(`modelPage.badges.${e.badge}`),v=t.img?null:{backgroundColor:t.accent,WebkitMaskImage:`url(${hm})`,maskImage:`url(${hm})`,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%)`,width:r==="grid"?void 0:`${w}px`,minHeight:`${k}px`},className:r==="strip"?"relative flex shrink-0 snap-start flex-col overflow-hidden rounded-[18px] border shadow-xl shadow-neutral-900/20 dark:shadow-black/40":r==="coverflow"?"relative flex shrink-0 snap-center flex-col 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:{...v,opacity:.2+n*.45,filter:"blur(18px)"},"aria-hidden":"true"}),l.jsx("div",{className:"pointer-events-none absolute inset-0",style:{...v,opacity:.55+n*.45},"aria-hidden":"true"})]}),g&&m&&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 ${g.className}`,children:[g.Icon&&l.jsx(g.Icon,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":"true"}),l.jsx("span",{className:"truncate",children:m})]}),l.jsxs("div",{className:"relative z-10 text-center",style:{padding:"34px 20px 0"},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:e.name}),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:{padding:"18px 20px 14px",background:u?"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("ul",{className:"space-y-1.5 text-left",children:f.map((b,P)=>l.jsxs("li",{className:"flex items-start gap-2",style:{fontSize:"13px",color:uE,...b.fromDescription?p:null},children:[l.jsx(uk,{className:"mt-0.5 h-3.5 w-3.5 shrink-0",style:{color:t.accent}}),l.jsx("span",{className:"leading-snug",children:b.fromDescription?l.jsx(QC,{text:b.text}):b.text})]},P))}),d>0&&l.jsxs("button",{type:"button",onClick:()=>c(b=>!b),className:"mt-2.5 flex items-center gap-1 hover:opacity-80",style:{fontSize:"13px",color:t.accent},children:[u?a("modelPage.lessBullets"):a("modelPage.moreBullets")(d),u?l.jsx(xk,{className:"h-3.5 w-3.5"}):l.jsx(dk,{className:"h-3.5 w-3.5"})]})]}),l.jsx("div",{className:"relative z-10 flex-1"}),l.jsx("div",{className:"relative z-10",style:{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:lE},children:a("modelPage.totalPrice")}),l.jsx("div",{style:{marginTop:"4px",fontFamily:"'Barlow Condensed', sans-serif",fontSize:"30px",fontWeight:600,letterSpacing:"1px",color:aE,...e.price_text?y:null},children:e.price_text||i(e.total_price)}),l.jsx(U,{to:o(e),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:a("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(vk,{className:"h-4 w-4 text-red-500","aria-hidden":"true"}),a("modelPage.videoLink")]})})]})})]})}function fE(){const{brandSlug:e,modelSlug:t}=Xo(),[n,r]=x.useState(null),[s,i]=x.useState(""),o=ta(),{t:a,language:u}=Ee(),{package_card_theme:c,package_card_layout:d,package_wheel_hint_interval:f,package_card_width:h}=jt(),p=pm[c]||pm.graphite,y=["grid","strip","coverflow"].includes(d)?d:"strip",w=Math.max(2,Number(f)||8)*1e3,k=x.useRef(null),g=x.useRef(null),m=x.useRef(null),[v,b]=x.useState(!1),P=_=>new Intl.NumberFormat(u==="de"?"de-DE":"en-US",{style:"currency",currency:"EUR"}).format(_);x.useEffect(()=>{o.vehicles.enabled&&!o.bypass||ee.get(`/models/${e}/${t}/packages`).then(r).catch(_=>i(_.message))},[e,t,o.vehicles.enabled,o.bypass]),x.useEffect(()=>{const _=k.current;if(y!=="coverflow"||!_)return;let L=0;const W=()=>{L=0;const E=_.scrollLeft+_.clientWidth/2;for(const T of _.children){const D=T.offsetLeft+T.offsetWidth/2,$=Math.max(-1,Math.min(1,(D-E)/(T.offsetWidth*1.4))),Z=Math.abs($);T.style.transform=`rotateY(${(-$*35).toFixed(2)}deg) scale(${(1-Z*.13).toFixed(3)}) translateZ(${(-Z*60).toFixed(1)}px)`,T.style.zIndex=String(100-Math.round(Z*50))}},F=()=>{L||(L=requestAnimationFrame(W))};W(),_.addEventListener("scroll",F,{passive:!0});const q=new ResizeObserver(F);return q.observe(_),()=>{_.removeEventListener("scroll",F),q.disconnect(),cancelAnimationFrame(L)}},[y,n]),x.useEffect(()=>{const _=k.current;if(y==="grid"||!_)return;const L=window.matchMedia("(pointer: coarse)").matches;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let F=[],q=0;const E=()=>{const D=Math.min(_.clientWidth*.4,160);F.push(setTimeout(()=>_.scrollTo({left:D,behavior:"smooth"}),500)),F.push(setTimeout(()=>_.scrollTo({left:0,behavior:"smooth"}),1250)),L||(F.push(setTimeout(()=>b(!0),450)),F.push(setTimeout(()=>b(!1),1700)))},T=new IntersectionObserver(([D])=>{D.isIntersecting&&(T.disconnect(),E(),q=setInterval(()=>{_.scrollLeft<=1&&E()},w))},{threshold:.35});return T.observe(_),()=>{T.disconnect(),clearInterval(q),F.forEach(clearTimeout)}},[y,n,w]),x.useEffect(()=>{const _=k.current;if(y==="grid"||!_)return;let L=0,W=0,F=!1,q=0,E=0;const T=()=>[..._.children].map(re=>re.offsetLeft+re.offsetWidth/2),D=(re,I)=>{let z=0,X=1/0;return re.forEach((le,Dt)=>{const Ys=Math.abs(le-I);Ys<X&&(X=Ys,z=Dt)}),z},$=()=>{F=!1;const re=T();if(!re.length)return;const I=_.scrollLeft+_.clientWidth/2,z=D(re,I);let X=z;z===q&&Math.abs(E)>4&&(X=E>0?Math.min(q+1,re.length-1):Math.max(q-1,0));const le=_.scrollWidth-_.clientWidth,Dt=Math.max(0,Math.min(re[X]-_.clientWidth/2,le));_.scrollTo({left:Dt,behavior:"smooth"}),clearTimeout(W),W=setTimeout(()=>{_.style.scrollSnapType=""},450)},Z=re=>{if(Math.abs(re.deltaX)>Math.abs(re.deltaY))return;const I=_.scrollWidth-_.clientWidth;if(I<=1)return;const z=_.scrollLeft<=1,X=_.scrollLeft>=I-1;re.deltaY<0&&z||re.deltaY>0&&X||(re.preventDefault(),F||(F=!0,E=0,q=D(T(),_.scrollLeft+_.clientWidth/2)),E+=re.deltaY,_.style.scrollSnapType="none",_.scrollLeft+=re.deltaY,clearTimeout(L),L=setTimeout($,150))};return _.addEventListener("wheel",Z,{passive:!1}),()=>{_.removeEventListener("wheel",Z),clearTimeout(L),clearTimeout(W)}},[y,n]),x.useEffect(()=>{const _=k.current,L=g.current,W=m.current;if(y==="grid"||!_||!L||!W)return;let F=0;const q=()=>{F=0;const X=_.scrollWidth-_.clientWidth;if(X<=1){L.style.opacity="0",L.style.pointerEvents="none";return}L.style.opacity="1",L.style.pointerEvents="auto";const le=L.clientWidth,Dt=Math.max(32,_.clientWidth/_.scrollWidth*le);W.style.width=`${Dt}px`,W.style.transform=`translateX(${(_.scrollLeft/X*(le-Dt)).toFixed(1)}px)`},E=()=>{F||(F=requestAnimationFrame(q))};q(),_.addEventListener("scroll",E,{passive:!0});const T=new ResizeObserver(E);T.observe(_);let D=!1,$=0;const Z=X=>{const le=L.getBoundingClientRect(),Dt=W.clientWidth,Ys=Math.min(Math.max(X-le.left-$,0),le.width-Dt);_.scrollLeft=Ys/(le.width-Dt)*(_.scrollWidth-_.clientWidth)},re=X=>{D=!0,L.setPointerCapture(X.pointerId),_.style.scrollSnapType="none";const le=W.getBoundingClientRect();$=X.clientX>=le.left&&X.clientX<=le.right?X.clientX-le.left:W.clientWidth/2,X.clientX>=le.left&&X.clientX<=le.right||Z(X.clientX)},I=X=>{D&&Z(X.clientX)},z=X=>{var le;D&&(D=!1,(le=L.hasPointerCapture)!=null&&le.call(L,X.pointerId)&&L.releasePointerCapture(X.pointerId),_.style.scrollSnapType="")};return L.addEventListener("pointerdown",re),L.addEventListener("pointermove",I),L.addEventListener("pointerup",z),L.addEventListener("pointercancel",z),()=>{_.removeEventListener("scroll",E),T.disconnect(),cancelAnimationFrame(F),L.removeEventListener("pointerdown",re),L.removeEventListener("pointermove",I),L.removeEventListener("pointerup",z),L.removeEventListener("pointercancel",z)}},[y,n]),rt({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 C=De(n?`car_models.${n.model.id}.name`:"");if(o.vehicles.enabled&&!o.bypass)return l.jsx(Ks,{message:o.vehicles.message});if(s)return l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-red-600 sm:px-6",children:s});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:S,packages:j}=n,A=new Map([...j].sort((_,L)=>_.total_price-L.total_price).map((_,L)=>[_.id,L])),N=_=>{const L=_.tier_count??j.length,W=_.tier_rank??A.get(_.id)??0,F=L<=1?0:W/(L-1),q=Math.round(F*(p.length-1));return{tier:p[q],tierT:F}},O=_=>[..._.products.map(L=>({text:L.name_override||L.scraped_name||a("modelPage.productLoading"),fromDescription:!1})),...(_.description||"").split(`
|
||
`).map(L=>L.trim()).filter(Boolean).map(L=>({text:L,fromDescription:!0}))],H=_=>`/kontakt?${new URLSearchParams({brand:S.brand_name,model:S.name,package:_.name,packageId:_.id,total:_.total_price}).toString()}`;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(Xs,{inline:!0}),l.jsxs("p",{className:"mb-1 text-sm text-neutral-500 dark:text-neutral-400",children:[l.jsx(U,{to:"/fahrzeuge",className:"hover:text-brand-500",children:a("modelPage.breadcrumbVehicles")})," /"," ",l.jsx(U,{to:`/fahrzeuge/${e}`,className:"hover:text-brand-500",children:S.brand_name})," / ",l.jsx("span",{style:C,children:S.name})]}),l.jsxs("h1",{className:`text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl ${j.length?"mb-2":"mb-8"}`,children:[S.brand_name," ",l.jsx("span",{style:C,children:S.name})," – ",a("modelPage.titleSuffix")]}),j.length===0&&l.jsx("p",{className:"pb-12 text-neutral-500 dark:text-neutral-400",children:a("modelPage.empty")})]}),j.length>0&&l.jsx("section",{className:"py-10 sm:py-14",style:{fontFamily:"'Barlow', sans-serif"},children:l.jsxs("div",{className:y==="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:y==="grid"?void 0:k,className:y==="grid"?"grid items-start gap-[18px]":"flex select-none items-start gap-[18px] overflow-x-auto pb-3 snap-x snap-mandatory [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",style:y==="grid"?{gridTemplateColumns:`repeat(auto-fill, minmax(${h}px, 1fr))`}:y==="coverflow"?{perspective:"1200px",paddingLeft:`calc(50% - ${h/2}px)`,paddingRight:`calc(50% - ${h/2}px)`,paddingTop:"10px"}:void 0,children:j.map(_=>{const{tier:L,tierT:W}=N(_);return l.jsx(dE,{pkg:_,tier:L,tierT:W,layout:y,bullets:O(_),formatPrice:P,contactUrl:H,t:a},_.id)})}),y!=="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 ${v?"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(hk,{className:"h-3.5 w-3.5 text-brand-400"}),l.jsx(Yk,{className:"h-4 w-4 text-brand-400"}),l.jsx(pk,{className:"h-3.5 w-3.5 text-brand-400"}),l.jsx("span",{children:a("modelPage.wheelHint")})]})}),y!=="grid"&&l.jsx("div",{ref:g,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"}})})]})})]})}function hE(){const[e,t]=x.useState(null),[n,r]=x.useState(""),{t:s}=Ee(),{gallery_card_text_x:i,gallery_card_text_y:o}=jt();return rt({title:s("galleryOverview.metaTitle"),description:s("galleryOverview.metaDescription"),path:"/galerie"}),x.useEffect(()=>{ee.get("/gallery-brands").then(t).catch(a=>r(a.message))},[]),l.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[l.jsx("h1",{className:"mb-2 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:s("galleryOverview.title")}),l.jsx("p",{className:"mb-8 text-neutral-600 dark:text-neutral-300",children:s("galleryOverview.intro")}),n&&l.jsx("p",{className:"text-red-600",children:n}),!e&&!n&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:s("galleryOverview.loading")}),e&&e.length===0&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:s("galleryOverview.empty")}),l.jsx("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-4",children:e==null?void 0:e.map(a=>l.jsxs(U,{to:`/galerie/${a.slug}`,className:"group relative block aspect-[4/3] overflow-hidden rounded-xl bg-neutral-900 shadow-sm transition hover:shadow-lg",children:[a.cover_image_path?l.jsx("img",{src:a.cover_image_path,alt:a.name,className:"h-full w-full object-cover transition duration-300 group-hover:scale-105"}):l.jsx("div",{className:"flex h-full w-full items-center justify-center bg-neutral-200 dark:bg-neutral-800"}),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("span",{className:"absolute whitespace-nowrap p-4 text-lg font-extrabold text-white",style:Co(i,o,{x:0,y:100}),children:a.name})]},a.id))})]})}function mE(){const{brandSlug:e}=Xo(),[t,n]=x.useState(null),[r,s]=x.useState(""),{t:i}=Ee(),{gallery_card_text_x:o,gallery_card_text_y:a}=jt();return x.useEffect(()=>{ee.get(`/gallery-brands/${e}/projects`).then(n).catch(u=>s(u.message))},[e]),rt({title:t?i("galleryBrandPage.metaTitle")(t.brand.name):i("galleryBrandPage.metaTitleFallback"),description:t?i("galleryBrandPage.metaDescription")(t.brand.name):void 0,path:`/galerie/${e}`}),r?l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-red-600 sm:px-6",children:r}):t?l.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[l.jsxs("p",{className:"mb-1 text-sm text-neutral-500 dark:text-neutral-400",children:[l.jsx(U,{to:"/galerie",className:"hover:text-brand-500",children:i("galleryBrandPage.breadcrumbGallery")})," / ",t.brand.name]}),l.jsxs("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:[t.brand.name," – ",i("galleryBrandPage.titleSuffix")]}),t.projects.length===0&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:i("galleryBrandPage.empty")}),l.jsx("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-4",children:t.projects.map(u=>l.jsxs(U,{to:`/galerie/${e}/${u.slug}`,className:"group relative block aspect-[4/3] overflow-hidden rounded-xl bg-neutral-900 shadow-sm transition hover:shadow-lg",children:[u.cover_image_path?l.jsx("img",{src:u.cover_image_path,alt:u.name,className:"h-full w-full object-cover transition duration-300 group-hover:scale-105"}):l.jsx("div",{className:"flex h-full w-full items-center justify-center bg-neutral-200 dark:bg-neutral-800"}),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("span",{className:"absolute whitespace-nowrap p-4 text-lg font-extrabold text-white",style:Co(o,a,{x:0,y:100}),children:u.name})]},u.id))})]}):l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-neutral-500 sm:px-6",children:i("galleryBrandPage.loading")})}function pE({photos:e,index:t,onClose:n,onNavigate:r}){const{t:s}=Ee();if(x.useEffect(()=>{if(t==null)return;const a=u=>{u.key==="Escape"&&n(),u.key==="ArrowRight"&&r(1),u.key==="ArrowLeft"&&r(-1)};return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[t,n,r]),t==null)return null;const i=e[t],o=a=>a.stopPropagation();return Wo.createPortal(l.jsxs("div",{className:"fixed inset-0 z-[200] flex items-center justify-center bg-black/90 p-4",onClick:n,children:[l.jsx("button",{onClick:a=>{o(a),n()},"aria-label":s("lightbox.close"),className:"absolute right-4 top-4 rounded-full p-2 text-white/80 hover:bg-white/10 hover:text-white",children:l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-7 w-7",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6l12 12M18 6 6 18"})})}),e.length>1&&l.jsx("button",{onClick:a=>{o(a),r(-1)},"aria-label":s("lightbox.previous"),className:"absolute left-2 top-1/2 -translate-y-1/2 rounded-full p-2 text-white/80 hover:bg-white/10 hover:text-white sm:left-4",children:l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-8 w-8",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m15 18-6-6 6-6"})})}),l.jsx("img",{src:i.image_path,alt:i.caption||"",onClick:o,className:"max-h-[85vh] max-w-full rounded-lg object-contain"}),e.length>1&&l.jsx("button",{onClick:a=>{o(a),r(1)},"aria-label":s("lightbox.next"),className:"absolute right-2 top-1/2 -translate-y-1/2 rounded-full p-2 text-white/80 hover:bg-white/10 hover:text-white sm:right-4",children:l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-8 w-8",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9 18 6-6-6-6"})})}),i.caption&&l.jsx("p",{onClick:o,className:"absolute bottom-4 left-1/2 -translate-x-1/2 rounded-full bg-black/60 px-4 py-1.5 text-sm text-white",children:i.caption})]}),document.body)}function gE(){const{brandSlug:e,projectSlug:t}=Xo(),[n,r]=x.useState(null),[s,i]=x.useState(""),[o,a]=x.useState(null),{t:u}=Ee();x.useEffect(()=>{ee.get(`/gallery-brands/${e}/${t}/photos`).then(r).catch(d=>i(d.message))},[e,t]),rt({title:n?`${n.project.name} – ${n.project.brand_name}`:u("galleryProjectPage.metaTitleFallback"),description:n?u("galleryProjectPage.metaDescription")(n.project.name):void 0,path:`/galerie/${e}/${t}`});const c=d=>{a(f=>{const h=n.photos.length;return(f+d+h)%h})};return s?l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-red-600 sm:px-6",children:s}):n?l.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[l.jsxs("p",{className:"mb-1 text-sm text-neutral-500 dark:text-neutral-400",children:[l.jsx(U,{to:"/galerie",className:"hover:text-brand-500",children:u("galleryProjectPage.breadcrumbGallery")})," /"," ",l.jsx(U,{to:`/galerie/${e}`,className:"hover:text-brand-500",children:n.project.brand_name})," / ",n.project.name]}),l.jsx("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:n.project.name}),n.photos.length===0&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:u("galleryProjectPage.empty")}),l.jsx("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3",children:n.photos.map((d,f)=>l.jsx(je,{index:f%6,shine:!0,className:"aspect-square overflow-hidden rounded-xl",children:l.jsx("button",{onClick:()=>a(f),className:"block h-full w-full","aria-label":d.caption||u("galleryProjectPage.enlargeImage"),children:l.jsx("img",{src:d.image_path,alt:d.caption||"",loading:"lazy",decoding:"async",className:"h-full w-full object-cover transition duration-300 hover:scale-105"})})},d.id))}),l.jsx(pE,{photos:n.photos,index:o,onClose:()=>a(null),onNavigate:c})]}):l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-neutral-500 sm:px-6",children:u("galleryProjectPage.loading")})}const xE={car:Kg,caravan:ak,"car-front":sk,cog:bk,zap:gb,boxes:nk,"shield-alert":ob,video:mb},yE=x.lazy(()=>J(()=>import("./iconRegistry-BJUM-_6m.js"),__vite__mapDeps([0,1])));function vE({name:e,className:t="h-6 w-6",...n}){if(!e)return null;const r=xE[e];return r?l.jsx(r,{className:t,...n}):l.jsx(x.Suspense,{fallback:l.jsx("span",{className:`inline-block ${t}`,"aria-hidden":"true"}),children:l.jsx(yE,{name:e,className:t,...n})})}function wE(){const[e,t]=x.useState([]),n=ta(),{t:r}=Ee();return x.useEffect(()=>{ee.get("/services").then(t).catch(()=>t([]))},[]),rt({title:r("leistungen.metaTitle"),description:r("leistungen.metaDescription"),path:"/leistungen"}),n.services.enabled&&!n.bypass?l.jsx(Ks,{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(Xs,{inline:!0}),l.jsx("h1",{className:"mb-2 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:r("leistungen.title")}),l.jsx("p",{className:"mb-10 max-w-2xl text-neutral-600 dark:text-neutral-300",children:r("leistungen.intro")}),l.jsx("div",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:e.map((s,i)=>l.jsxs(je,{index:i%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:[s.image_path&&l.jsx("img",{src:s.image_path,alt:s.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(vE,{name:s.icon_name,className:"h-6 w-6"})})]}),l.jsxs("div",{className:"p-6 pt-8",children:[l.jsx("h2",{className:"mb-2 font-semibold text-neutral-900 dark:text-white",children:s.title}),l.jsx("p",{className:"mb-3 text-sm text-neutral-600 dark:text-neutral-300",children:s.description}),l.jsxs(U,{to:s.cta_url||"/kontakt",className:"text-sm font-semibold text-brand-600 hover:underline dark:text-brand-400",children:[s.cta_label||r("leistungen.contact")," →"]})]})]},s.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("h2",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:r("leistungen.notListedTitle")}),l.jsx("p",{className:"mb-5 text-neutral-600 dark:text-neutral-300",children:r("leistungen.notListedText")}),l.jsx(U,{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:r("leistungen.contact")})]})]})}function kE({name:e,description:t,className:n="",children:r}){const{consent:s,acceptAll:i,openSettings:o}=Mr();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 ry=e=>(e||"").replace(/[^\d+]/g,""),bE=e=>`https://wa.me/${ry(e).replace(/^0/,"49").replace("+","")}`,Bi={fontFamily:"'Michroma', sans-serif"};function SE({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 jE({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 PE={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 xm({formatted:e,color:t}){const[n,r]=e.split("€");return l.jsxs("span",{style:{...Bi,color:t},children:[n,l.jsx("span",{style:{fontFamily:"'Barlow', sans-serif"},children:"€"}),r]})}function wi({icon:e,label:t,name:n,type:r="text",required:s,value:i,onChange:o,placeholder:a}){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,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 TE(){const[e]=Vw(),{phone:t,whatsapp:n,contact_email:r,address_street:s,address_zip:i,address_city:o,business_hours:a}=jt(),{t:u,language:c}=Ee(),{consent:d}=Mr(),f=[s,[i,o].filter(Boolean).join(" ")].filter(Boolean).join(", "),h=encodeURIComponent(f),p=`https://www.google.com/maps/dir/?api=1&destination=${h}`,y=r0(a,u("footer.closed")),w=T=>new Intl.NumberFormat(c==="de"?"de-DE":"en-US",{style:"currency",currency:"EUR"}).format(T),[k,g]=x.useState({name:"",email:"",phone:"",vin:"",message:""}),[m,v]=x.useState("idle"),[b,P]=x.useState(""),[C,S]=x.useState([]),[j,A]=x.useState([]),N=e.get("packageId"),O=e.get("total")?Number(e.get("total")):null;x.useEffect(()=>{if(!N){S([]);return}ee.get(`/packages/${N}/upgrades`).then(S).catch(()=>S([]))},[N]);const H=T=>{A(D=>D.includes(T)?D.filter($=>$!==T):[...D,T])},_=C.filter(T=>j.includes(T.id)).reduce((T,D)=>T+Number(D.price),0);rt({title:u("contactPage.metaTitle"),description:u("contactPage.metaDescription"),path:"/kontakt"});const L={brand:e.get("brand")||"",model:e.get("model")||"",package:e.get("package")||""},W=!!(L.brand&&L.model&&L.package),F=T=>g(D=>({...D,[T.target.name]:T.target.value})),q=async T=>{T.preventDefault(),v("sending"),P("");try{await ee.post("/contact",{...k,brand_name:L.brand||null,model_name:L.model||null,package_name:L.package||null,product_name:e.get("product")||null,package_id:N||null,package_product_id:e.get("productId")||null,upgrade_ids:j}),v("sent"),g({name:"",email:"",phone:"",vin:"",message:""})}catch(D){P(D.message),v("idle")}},E=[{key:"premium",title:u("contactPage.featurePremiumTitle"),sub:u("contactPage.featurePremiumSub")},{key:"germany",title:u("contactPage.featureGermanyTitle"),sub:u("contactPage.featureGermanySub")},{key:"individual",title:u("contactPage.featureIndividualTitle"),sub:u("contactPage.featureIndividualSub")},{key:"experts",title:u("contactPage.featureExpertsTitle"),sub:u("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:u("contactPage.heroEyebrow")}),l.jsxs("h1",{className:"text-[34px] leading-[1.08] sm:text-[46px] lg:text-[60px]",style:{...Bi,color:"var(--kf-text)"},children:[u("contactPage.heroTitlePre")," ",l.jsx("span",{style:{color:"var(--kf-accent2)"},children:u("contactPage.heroTitleAccent")})," ",u("contactPage.heroTitlePost")]}),l.jsx("p",{className:"mb-10 mt-5 max-w-[520px] text-lg leading-[1.55]",style:{color:"var(--kf-muted)"},children:u("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(tb,{className:"h-4 w-4"}),u("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:u("contactPage.contextBrand")}),l.jsx("span",{className:"font-semibold",style:{color:"var(--kf-text2)"},children:L.brand}),l.jsx("span",{style:{color:"var(--kf-label)"},children:u("contactPage.contextModel")}),l.jsx("span",{className:"font-semibold",style:{color:"var(--kf-text2)"},children:L.model}),l.jsx("span",{style:{color:"var(--kf-label)"},children:u("contactPage.contextPackage")}),l.jsx("span",{className:"font-semibold",style:{color:"var(--kf-text2)"},children:L.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:u("contactPage.packagePrice")}),l.jsx("span",{className:"text-xl",children:O!=null?l.jsx(xm,{formatted:w(O),color:"var(--kf-text)"}):"—"})]})]}),C.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:u("contactPage.optionalUpgrades")}),l.jsx("div",{className:"space-y-2",children:C.map(T=>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:j.includes(T.id),onChange:()=>H(T.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:T.name}),T.description&&l.jsx("span",{className:"block text-xs",style:{color:"var(--kf-muted)"},children:T.description})]}),l.jsxs("span",{className:"font-semibold",style:{color:"var(--kf-accent2)"},children:["+",w(T.price)]})]},T.id))}),j.length>0&&O!=null&&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:u("contactPage.totalWithUpgrades")}),l.jsx(xm,{formatted:w(O+_),color:"var(--kf-text)"})]})]}),l.jsx("h2",{className:"mb-8 text-xl",style:{...Bi,color:"var(--kf-text)"},children:u("contactPage.formTitle")}),m==="sent"&&l.jsxs("div",{className:"mb-6 rounded-[10px] border p-5",style:{borderColor:"var(--kf-accent)",background:"var(--kf-accentsoft)"},children:[l.jsx("div",{className:"text-base font-bold",style:{color:"var(--kf-accent2)"},children:u("contactPage.sentTitle")}),l.jsx("div",{className:"mt-1 text-sm",style:{color:"var(--kf-muted)"},children:u("contactPage.sentText")})]}),l.jsxs("form",{onSubmit:q,children:[l.jsxs("div",{className:"grid grid-cols-1 gap-6 min-[641px]:grid-cols-2",children:[l.jsx(wi,{icon:fb,label:u("contactPage.nameLabel"),name:"name",required:!0,value:k.name,onChange:F,placeholder:u("contactPage.namePlaceholder")}),l.jsx(wi,{icon:Mf,label:u("contactPage.emailLabel"),name:"email",type:"email",required:!0,value:k.email,onChange:F,placeholder:u("contactPage.emailPlaceholder")}),l.jsx(wi,{icon:go,label:u("contactPage.phoneLabel"),name:"phone",value:k.phone,onChange:F,placeholder:u("contactPage.phonePlaceholder")}),l.jsx(wi,{icon:Kg,label:u("contactPage.vinLabel"),name:"vin",value:k.vin,onChange:F,placeholder:u("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:u("contactPage.messageLabel")}),l.jsx("textarea",{id:"kf-message",name:"message",rows:5,value:k.message,onChange:F,placeholder:u("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)"}})]}),b&&l.jsx("p",{className:"mt-4 text-sm text-red-600 dark:text-red-400",children:b}),l.jsxs("div",{className:"mt-8 flex flex-wrap items-center gap-5",children:[l.jsxs("button",{type:"submit",disabled:m==="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(sb,{className:"h-[18px] w-[18px]"}),u(m==="sending"?"contactPage.sending":"contactPage.submit")]}),l.jsx("div",{className:"text-[13px]",style:{color:"var(--kf-label)"},children:u("contactPage.requiredHint")})]})]})]})}),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:{...Bi,color:"var(--kf-text)"},children:u("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(go,{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:u("contactPage.phone")}),l.jsx("a",{href:`tel:${ry(t)}`,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(Mf,{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:u("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(Yg,{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:u("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(SE,{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:u("nav.whatsapp")}),l.jsx("a",{href:bE(n),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:u("contactPage.hours")}),l.jsx("div",{className:"grid grid-cols-[auto_1fr] gap-x-6 gap-y-2 text-[15px]",children:y.map(T=>l.jsxs("span",{style:{display:"contents"},children:[l.jsx("span",{style:{color:"var(--kf-label)"},children:T.days}),l.jsx("span",{children:T.label})]},T.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:[d.external&&l.jsxs("a",{href:p,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:[u("contactPage.mapOpenChip"),l.jsx(Tk,{className:"h-3.5 w-3.5",style:{color:"var(--kf-accent2)"}})]}),l.jsx(kE,{name:u("contactPage.mapEmbedName"),className:"h-[210px] w-full",children:l.jsx("div",{className:"h-[210px] overflow-hidden",children:l.jsx("iframe",{title:"HifiPlanet Amorbach – Standort",src:`https://www.google.com/maps?q=${h}&output=embed`,width:"100%",height:"290",style:{border:0,display:"block",marginTop:"-60px"},loading:"lazy",referrerPolicy:"no-referrer-when-downgrade"})})}),l.jsxs("a",{href:p,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:[u("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:E.map(T=>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(jE,{path:PE[T.key],className:"h-[22px] w-[22px]"})}),l.jsxs("div",{children:[l.jsx("div",{className:"text-[15px] font-bold",style:{color:"var(--kf-text)"},children:T.title}),l.jsx("div",{className:"mt-0.5 text-[13px]",style:{color:"var(--kf-muted)"},children:T.sub})]})]},T.key))})]})})}const Eu={audio:["mp3","wav","flac","m4a","aac","ogg","opus","aif","aiff","wma"],video:["mp4","mov","webm"],pdf:["pdf"],image:["jpg","jpeg","png","webp","gif"],archive:["zip","rar","7z"],document:["txt","rtf","doc","docx","xls","xlsx","odt","ods"]},vN=Object.values(Eu).flat(),CE=["mp3","wav","flac","m4a","aac","ogg","opus"],ld=e=>{const t=(e||"").lastIndexOf(".");return t===-1?"":e.slice(t+1).toLowerCase()},EE=e=>{const t=ld(e);return Object.keys(Eu).find(n=>Eu[n].includes(t))||"document"},NE=e=>CE.includes(ld(e)),_E=(e,t="de-DE")=>{const n=["B","KB","MB","GB"];let r=Number(e)||0,s=0;for(;r>=1024&&s<n.length-1;)r/=1024,s+=1;return`${new Intl.NumberFormat(t,{maximumFractionDigits:s>=2?1:0}).format(r)} ${n[s]}`},ME={audio:Qk,video:Lk,pdf:_f,image:_k,archive:Ek,document:_f},Nu="hifi-downloads-password",LE=()=>{try{return localStorage.getItem(Nu)||""}catch{return""}},ym=e=>{try{e?localStorage.setItem(Nu,e):localStorage.removeItem(Nu)}catch{}},vm=e=>ee.get("/downloads",e?{headers:{"X-Download-Password":encodeURIComponent(e)}}:void 0);function AE(){const[e,t]=x.useState(null),[n,r]=x.useState(!1),[s,i]=x.useState(""),[o,a]=x.useState(!1),[u,c]=x.useState(!1),[d,f]=x.useState(""),{t:h,language:p}=Ee();x.useEffect(()=>{const w=LE();vm(w).then(k=>{k.locked?(w&&ym(""),r(!0)):t(k.items)}).catch(k=>f(k.message))},[]);const y=async w=>{w.preventDefault(),c(!0),a(!1);try{const k=await vm(s);k.locked?a(!0):(ym(s),r(!1),t(k.items))}catch(k){f(k.message)}finally{c(!1)}};return rt({title:h("downloadsPage.metaTitle"),description:h("downloadsPage.metaDescription"),path:"/downloads"}),l.jsxs("div",{className:"mx-auto max-w-4xl px-4 py-12 sm:px-6",children:[l.jsx("h1",{className:"mb-2 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:h("downloadsPage.title")}),l.jsx("p",{className:"mb-10 max-w-2xl text-neutral-600 dark:text-neutral-300",children:h("downloadsPage.intro")}),d&&l.jsx("p",{className:"text-red-600",children:d}),!d&&!n&&e===null&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:h("downloadsPage.loading")}),(e==null?void 0:e.length)===0&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:h("downloadsPage.empty")}),n&&l.jsxs("form",{onSubmit:y,className:"max-w-md rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[l.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[l.jsx(Bk,{className:"h-5 w-5 text-brand-500","aria-hidden":"true"}),l.jsx("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:h("downloadsPage.lockedTitle")})]}),l.jsx("p",{className:"mb-4 text-sm text-neutral-600 dark:text-neutral-300",children:h("downloadsPage.lockedText")}),l.jsx("label",{htmlFor:"downloads-password",className:"sr-only",children:h("downloadsPage.passwordLabel")}),l.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[l.jsx("input",{id:"downloads-password",type:"password",required:!0,autoComplete:"off",value:s,onChange:w=>i(w.target.value),placeholder:h("downloadsPage.passwordLabel"),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm text-neutral-900 dark:border-neutral-700 dark:bg-neutral-950 dark:text-white"}),l.jsx("button",{type:"submit",disabled:u,className:"shrink-0 rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:h(u?"downloadsPage.unlocking":"downloadsPage.unlock")})]}),o&&l.jsx("p",{className:"mt-2 text-sm text-red-600",role:"alert",children:h("downloadsPage.wrongPassword")})]}),l.jsx("div",{className:"space-y-4",children:e==null?void 0:e.map((w,k)=>{const g=ME[EE(w.file_name)];return l.jsx(je,{index:k%4,className:"rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:l.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-start",children:[l.jsx("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-brand-500/10 text-brand-600 dark:text-brand-400",children:l.jsx(g,{className:"h-6 w-6","aria-hidden":"true"})}),l.jsxs("div",{className:"min-w-0 flex-1",children:[l.jsx("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:w.title}),w.description&&l.jsx("p",{className:"mt-1 whitespace-pre-line text-sm text-neutral-600 dark:text-neutral-300",children:w.description}),l.jsxs("p",{className:"mt-1 text-xs text-neutral-400",children:[ld(w.file_name).toUpperCase()," · ",_E(w.file_size,p==="de"?"de-DE":"en-US")]}),NE(w.file_name)&&l.jsx("audio",{controls:!0,preload:"none",src:w.file_path,className:"mt-3 w-full"})]}),l.jsxs("a",{href:w.file_path,download:w.file_name,className:"inline-flex shrink-0 items-center justify-center gap-2 rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:[l.jsx(jk,{className:"h-4 w-4","aria-hidden":"true"}),h("downloadsPage.download")]})]})},w.id)})})]})}function DE(){const[e,t]=x.useState(null);return x.useEffect(()=>{ee.get("/legal-pages/impressum").then(t).catch(()=>{})},[]),rt({title:(e==null?void 0:e.title)||"Impressum",description:"Impressum von HifiPlanet Amorbach gemäß § 5 DDG.",path:"/impressum"}),e?l.jsxs("div",{className:"mx-auto max-w-3xl px-4 py-12 sm:px-6",children:[l.jsx("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:e.title}),l.jsx("div",{className:"legal-content text-sm text-neutral-600 dark:text-neutral-300",dangerouslySetInnerHTML:{__html:e.body_html}})]}):null}function RE(){const[e,t]=x.useState(null);return x.useEffect(()=>{ee.get("/legal-pages/datenschutz").then(t).catch(()=>{})},[]),rt({title:(e==null?void 0:e.title)||"Datenschutzerklärung",description:"Datenschutzerklärung von HifiPlanet Amorbach gemäß Art. 13 DSGVO.",path:"/datenschutz"}),e?l.jsxs("div",{className:"mx-auto max-w-3xl px-4 py-12 sm:px-6",children:[l.jsx("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:e.title}),l.jsx("div",{className:"legal-content text-sm text-neutral-600 dark:text-neutral-300",dangerouslySetInnerHTML:{__html:e.body_html}})]}):null}function IE(){const[e,t]=x.useState(null);return x.useEffect(()=>{ee.get("/legal-pages/agb").then(t).catch(()=>{})},[]),rt({title:(e==null?void 0:e.title)||"AGB",description:"Allgemeine Geschäftsbedingungen von HifiPlanet Amorbach.",path:"/agb"}),e?l.jsxs("div",{className:"mx-auto max-w-3xl px-4 py-12 sm:px-6",children:[l.jsx("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:e.title}),l.jsx("div",{className:"legal-content text-sm text-neutral-600 dark:text-neutral-300",dangerouslySetInnerHTML:{__html:e.body_html}})]}):null}const Za="hifi-chunk-reload",ne=e=>x.lazy(()=>e().then(t=>{try{sessionStorage.removeItem(Za)}catch{}return t},t=>{let n=!0;try{n=!!sessionStorage.getItem(Za),sessionStorage.setItem(Za,"1")}catch{}if(n)throw t;return window.location.reload(),new Promise(()=>{})})),VE=ne(()=>J(()=>import("./SetupWizard-BhmlGYjq.js"),[])),OE=ne(()=>J(()=>import("./Login-fD1Gc69Y.js"),[])),FE=ne(()=>J(()=>import("./Dashboard-NbR3Ooj7.js"),[])),zE=ne(()=>J(()=>import("./Brands-vqxdbQxK.js"),__vite__mapDeps([2,3,4]))),BE=ne(()=>J(()=>import("./Models-ziTFkF11.js"),__vite__mapDeps([5,3,4]))),$E=ne(()=>J(()=>import("./GalleryBrands-D1j5xSDf.js"),__vite__mapDeps([6,3]))),HE=ne(()=>J(()=>import("./GalleryProjects-LRqhs8Yz.js"),__vite__mapDeps([7,3]))),WE=ne(()=>J(()=>import("./GalleryPhotos-DGMVFfyC.js"),[])),UE=ne(()=>J(()=>import("./Packages-yKMipMRC.js"),__vite__mapDeps([8,4,1]))),GE=ne(()=>J(()=>import("./Services-CYRt7nkD.js"),__vite__mapDeps([9,3,0,1]))),KE=ne(()=>J(()=>import("./Faqs-DLPVuJHB.js"),[])),XE=ne(()=>J(()=>import("./Partners-_sfjbipE.js"),__vite__mapDeps([10,3]))),YE=ne(()=>J(()=>import("./Downloads-CL1Jhgqp.js"),__vite__mapDeps([11,1]))),qE=ne(()=>J(()=>import("./HomeSections-BGS9Sedm.js"),__vite__mapDeps([12,13,4]))),QE=ne(()=>J(()=>import("./PackageProducts-BiHhjH75.js"),[])),ZE=ne(()=>J(()=>import("./PackageUpgrades-CqegMehR.js"),[])),JE=ne(()=>J(()=>import("./ContactRequests-D83PSee5.js"),[])),eN=ne(()=>J(()=>import("./AccountSettings-DDTEFT25.js"),[])),tN=ne(()=>J(()=>import("./AdminUsers-ByQIq3tE.js"),[])),nN=ne(()=>J(()=>import("./PermissionGroups-Dj1eCZ_1.js"),[])),rN=ne(()=>J(()=>import("./SettingsLayout-D9TLUu2J.js"),[])),sN=ne(()=>J(()=>import("./WebsiteSettings-CUqt2H1_.js"),__vite__mapDeps([14,3]))),iN=ne(()=>J(()=>import("./LegalSettings-kVcunIgr.js"),__vite__mapDeps([15,13]))),oN=ne(()=>J(()=>import("./UpdateSettings-DgFhzAXU.js"),[])),aN=ne(()=>J(()=>import("./EmailSettings-CqQsV22t.js"),__vite__mapDeps([16,13]))),lN=ne(()=>J(()=>import("./DatabaseSettings-Cb0c_VcO.js"),[])),uN=ne(()=>J(()=>import("./ExportImportSettings-BcCG7j3_.js"),[])),cN=ne(()=>J(()=>import("./MaintenanceSettings-MgDlXntb.js"),[])),dN=ne(()=>J(()=>import("./ResetSettings-FyPtzEXN.js"),[])),fN=l.jsx("div",{className:"min-h-screen bg-white dark:bg-neutral-950"});function hN(){return l.jsxs(l.Fragment,{children:[l.jsx(Bw,{}),l.jsx(Ww,{}),l.jsx(Yw,{children:l.jsx(x.Suspense,{fallback:fN,children:l.jsxs(bw,{children:[l.jsx(B,{path:"/setup",element:l.jsx(VE,{})}),l.jsxs(B,{element:l.jsx(CC,{}),children:[l.jsx(B,{path:"/",element:l.jsx(XC,{})}),l.jsx(B,{path:"/fahrzeuge",element:l.jsx(YC,{})}),l.jsx(B,{path:"/fahrzeuge/:brandSlug",element:l.jsx(qC,{})}),l.jsx(B,{path:"/fahrzeuge/:brandSlug/:modelSlug",element:l.jsx(fE,{})}),l.jsx(B,{path:"/galerie",element:l.jsx(hE,{})}),l.jsx(B,{path:"/galerie/:brandSlug",element:l.jsx(mE,{})}),l.jsx(B,{path:"/galerie/:brandSlug/:projectSlug",element:l.jsx(gE,{})}),l.jsx(B,{path:"/leistungen",element:l.jsx(wE,{})}),l.jsx(B,{path:"/kontakt",element:l.jsx(TE,{})}),l.jsx(B,{path:"/downloads",element:l.jsx(AE,{})}),l.jsx(B,{path:"/impressum",element:l.jsx(DE,{})}),l.jsx(B,{path:"/datenschutz",element:l.jsx(RE,{})}),l.jsx(B,{path:"/agb",element:l.jsx(IE,{})})]}),l.jsx(B,{path:"/admin/login",element:l.jsx(OE,{})}),l.jsx(B,{path:"/admin",element:l.jsx(MC,{}),children:l.jsxs(B,{element:l.jsx(_C,{}),children:[l.jsx(B,{index:!0,element:l.jsx(FE,{})}),l.jsx(B,{path:"account",element:l.jsx(eN,{})}),l.jsx(B,{path:"brands",element:l.jsx(Se,{permission:"brands.manage",children:l.jsx(zE,{})})}),l.jsx(B,{path:"models",element:l.jsx(Se,{permission:"models.manage",children:l.jsx(BE,{})})}),l.jsx(B,{path:"gallery-brands",element:l.jsx(Se,{permission:"gallery.manage",children:l.jsx($E,{})})}),l.jsx(B,{path:"gallery-projects",element:l.jsx(Se,{permission:"gallery.manage",children:l.jsx(HE,{})})}),l.jsx(B,{path:"gallery-projects/:projectId/photos",element:l.jsx(Se,{permission:"gallery.manage",children:l.jsx(WE,{})})}),l.jsx(B,{path:"packages",element:l.jsx(Se,{permission:"packages.manage",children:l.jsx(UE,{})})}),l.jsx(B,{path:"packages/:packageId/products",element:l.jsx(Se,{permission:"packages.manage",children:l.jsx(QE,{})})}),l.jsx(B,{path:"packages/:packageId/upgrades",element:l.jsx(Se,{permission:"packages.manage",children:l.jsx(ZE,{})})}),l.jsx(B,{path:"services",element:l.jsx(Se,{permission:"services.manage",children:l.jsx(GE,{})})}),l.jsx(B,{path:"faqs",element:l.jsx(Se,{permission:"content.manage",children:l.jsx(KE,{})})}),l.jsx(B,{path:"partners",element:l.jsx(Se,{permission:"content.manage",children:l.jsx(XE,{})})}),l.jsx(B,{path:"downloads",element:l.jsx(Se,{permission:"downloads.manage",children:l.jsx(YE,{})})}),l.jsx(B,{path:"home-sections",element:l.jsx(Se,{permission:"content.manage",children:l.jsx(qE,{})})}),l.jsx(B,{path:"contact-requests",element:l.jsx(Se,{permission:"contact.manage",children:l.jsx(JE,{})})}),l.jsx(B,{path:"users",element:l.jsx(Se,{permission:"users.manage",children:l.jsx(tN,{})})}),l.jsx(B,{path:"permission-groups",element:l.jsx(Se,{permission:"permission_groups.manage",children:l.jsx(nN,{})})}),l.jsxs(B,{path:"settings",element:l.jsx(Se,{permission:"settings.manage",children:l.jsx(rN,{})}),children:[l.jsx(B,{index:!0,element:l.jsx(mo,{to:"website",replace:!0})}),l.jsx(B,{path:"website",element:l.jsx(sN,{})}),l.jsx(B,{path:"legal",element:l.jsx(iN,{})}),l.jsx(B,{path:"email",element:l.jsx(aN,{})}),l.jsx(B,{path:"database",element:l.jsx(lN,{})}),l.jsx(B,{path:"export-import",element:l.jsx(uN,{})}),l.jsx(B,{path:"maintenance",element:l.jsx(cN,{})}),l.jsx(B,{path:"update",element:l.jsx(Se,{permission:"system.update",children:l.jsx(oN,{})})}),l.jsx(B,{path:"reset",element:l.jsx(dN,{})})]})]})})]})})})]})}Ja.createRoot(document.getElementById("root")).render(l.jsx(Mm.StrictMode,{children:l.jsx(Mw,{basename:"/".replace(/\/$/,"")||"/",children:l.jsx(yb,{children:l.jsx(Sb,{children:l.jsx(Mb,{children:l.jsx(hN,{})})})})})}));export{Jk as $,vN as A,nk as B,vk as C,vE as D,xk as E,Xg as F,bk as G,jk as H,Tk as I,Ek as J,_k as K,U as L,Lk as M,mo as N,Cc as O,_f as P,Rk as Q,Mm as R,Vk as S,Fk as T,Bk as U,Hk as V,Mf as W,Yg as X,Kk as Y,Yk as Z,Qk as _,ee as a,tb as a0,go as a1,sb as a2,ob as a3,lb as a4,cb as a5,fb as a6,mb as a7,gb as a8,ek as a9,pN as aa,Jw as ab,zs as b,Ko as c,eu as d,Xo as e,_E as f,Uw as g,yN as h,Co as i,l as j,Dw as k,cm as l,Qx as m,xN as n,wm as o,mN as p,G as q,x as r,Kg as s,sk as t,rt as u,ak as v,uk as w,dk as x,hk as y,pk as z};
|