diff --git a/hifi-src/src/i18n/de.js b/hifi-src/src/i18n/de.js index 307e4c7..68f64d0 100644 --- a/hifi-src/src/i18n/de.js +++ b/hifi-src/src/i18n/de.js @@ -160,6 +160,7 @@ export default { }, videoLink: 'Zum Video', moreBullets: (n) => (n === 1 ? '+ 1 weitere Leistung' : `+ ${n} weitere Leistungen`), + showMore: 'Mehr anzeigen', lessBullets: 'Weniger anzeigen', wheelHint: 'Mit dem Mausrad blättern', }, diff --git a/hifi-src/src/i18n/en.js b/hifi-src/src/i18n/en.js index 13db57d..e661c8a 100644 --- a/hifi-src/src/i18n/en.js +++ b/hifi-src/src/i18n/en.js @@ -160,6 +160,7 @@ export default { }, videoLink: 'Watch video', moreBullets: (n) => (n === 1 ? '+ 1 more feature' : `+ ${n} more features`), + showMore: 'Show more', lessBullets: 'Show less', wheelHint: 'Scroll to browse', }, diff --git a/hifi-src/src/pages/public/ModelPage.jsx b/hifi-src/src/pages/public/ModelPage.jsx index 0812958..c65b117 100644 --- a/hifi-src/src/pages/public/ModelPage.jsx +++ b/hifi-src/src/pages/public/ModelPage.jsx @@ -1,4 +1,4 @@ -import { useEffect, useRef, useState } from 'react'; +import { useEffect, useLayoutEffect, useRef, useState } from 'react'; import { Link, useParams } from 'react-router-dom'; import { api } from '../../api/client.js'; import usePageMeta from '../../hooks/usePageMeta.js'; @@ -104,6 +104,12 @@ const BULLET_COLOR = '#c4c4c4'; // Rest steckt hinter einem "+X weitere Leistungen"-Toggle, dessen Zaehler selbst als // Wertigkeitssignal wirkt. const VISIBLE_BULLETS = 5; +// Eingeklappt zeigt jeder Stichpunkt hoechstens so viele Zeilen - normale Stichpunkte +// ("Gezielte Fahrzeugdaemmung mit 14Stk. 2mm-Daemmmatten") passen hinein, ganze Absaetze in +// der Beschreibung werden gekuerzt. Sonst bestimmte eine einzige Kachel mit viel Text die +// Hoehe der ganzen Reihe (alle Kacheln sind gleich hoch), und alle anderen haetten unten +// viel Leerraum (Kundenfeedback). +const BULLET_LINES = 3; // Markierung oben auf der Kachel (Admin: Pakete -> Markierung). Farben bewusst unabhaengig // von der Preisstufe, damit z. B. "Am beliebtesten" auf jeder Kachel gleich aussieht. @@ -117,8 +123,27 @@ const BADGE_STYLES = { function PackageCard({ pkg, tier, tierT, layout, bullets, formatPrice, contactUrl, t }) { const [expanded, setExpanded] = useState(false); + const [truncated, setTruncated] = useState(false); + const listRef = useRef(null); const hiddenCount = bullets.length - VISIBLE_BULLETS; const shownBullets = expanded ? bullets : bullets.slice(0, VISIBLE_BULLETS); + + // Ob die Zeilenbegrenzung (BULLET_LINES) gerade Text abschneidet - dann gibt es einen + // "Mehr anzeigen"-Button, auch wenn keine weiteren Stichpunkte versteckt sind. Neu + // geprueft, sobald sich die Groesse aendert (Schrift nachgeladen, andere Kachelbreite). + useLayoutEffect(() => { + const list = listRef.current; + if (!list || expanded) { + setTruncated(false); + return undefined; + } + const check = () => + setTruncated([...list.querySelectorAll('[data-clamp]')].some((el) => el.scrollHeight > el.clientHeight + 1)); + check(); + const observer = new ResizeObserver(check); + observer.observe(list); + return () => observer.disconnect(); + }, [expanded, bullets.length, pkg.description]); const textStyles = useTextStylesMap(); const descriptionStyle = fieldStyle(textStyles, `packages.${pkg.id}.description`); const priceTextStyle = fieldStyle(textStyles, `packages.${pkg.id}.price_text`); @@ -240,7 +265,7 @@ function PackageCard({ pkg, tier, tierT, layout, bullets, formatPrice, contactUr : 'linear-gradient(180deg, rgba(8,8,8,0.55) 0%, rgba(8,8,8,0.48) 92%, rgba(8,8,8,0) 100%)', }} > -
${l.innerHTML.replace(/\n/g,"
")}
${l.innerHTML.replace(/\n/g,"
")}
s(Q,$)?(E[F]=Q,E[fe]=A,F=fe):(E[F]=$,E[D]=A,F=D);else if(fes(Q,A))E[F]=Q,E[fe]=A,F=fe;else break e}}return C}function s(E,C){var A=E.sortIndex-C.sortIndex;return A!==0?A:E.id-C.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,w=!1,v=!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 y(E){for(var C=n(c);C!==null;){if(C.callback===null)r(c);else if(C.startTime<=E)r(c),C.sortIndex=C.expirationTime,t(u,C);else break;C=n(c)}}function b(E){if(v=!1,y(E),!w)if(n(u)!==null)w=!0,B(P);else{var C=n(c);C!==null&&W(b,C.startTime-E)}}function P(E,C){w=!1,v&&(v=!1,g(S),S=-1),p=!0;var A=h;try{for(y(C),f=n(u);f!==null&&(!(f.expirationTime>C)||E&&!O());){var F=f.callback;if(typeof F=="function"){f.callback=null,h=f.priorityLevel;var q=F(f.expirationTime<=C);C=e.unstable_now(),typeof q=="function"?f.callback=q:f===n(u)&&r(u),y(C)}else r(u);f=n(u)}if(f!==null)var Me=!0;else{var D=n(c);D!==null&&W(b,D.startTime-C),Me=!1}return Me}finally{f=null,h=A,p=!1}}var T=!1,j=null,S=-1,L=5,N=-1;function O(){return!(e.unstable_now()-NE||125 F?(E.sortIndex=A,t(c,E),n(u)===null&&E===n(c)&&(v?(g(S),S=-1):v=!0,W(b,A-F))):(E.sortIndex=q,t(u,E),w||p||(w=!0,B(P))),E},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(E){var C=h;return function(){var A=h;h=C;try{return E.apply(this,arguments)}finally{h=A}}}})(Im);Rm.exports=Im;var Ey=Rm.exports;/** + */(function(e){function t(E,C){var A=E.length;E.push(C);e:for(;0>>1,q=E[F];if(0 >>1;Fs($,A))fe s(Q,$)?(E[F]=Q,E[fe]=A,F=fe):(E[F]=$,E[D]=A,F=D);else if(fes(Q,A))E[F]=Q,E[fe]=A,F=fe;else break e}}return C}function s(E,C){var A=E.sortIndex-C.sortIndex;return A!==0?A:E.id-C.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,w=!1,v=!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 y(E){for(var C=n(c);C!==null;){if(C.callback===null)r(c);else if(C.startTime<=E)r(c),C.sortIndex=C.expirationTime,t(u,C);else break;C=n(c)}}function b(E){if(v=!1,y(E),!w)if(n(u)!==null)w=!0,B(P);else{var C=n(c);C!==null&&W(b,C.startTime-E)}}function P(E,C){w=!1,v&&(v=!1,g(j),j=-1),p=!0;var A=h;try{for(y(C),f=n(u);f!==null&&(!(f.expirationTime>C)||E&&!O());){var F=f.callback;if(typeof F=="function"){f.callback=null,h=f.priorityLevel;var q=F(f.expirationTime<=C);C=e.unstable_now(),typeof q=="function"?f.callback=q:f===n(u)&&r(u),y(C)}else r(u);f=n(u)}if(f!==null)var Me=!0;else{var D=n(c);D!==null&&W(b,D.startTime-C),Me=!1}return Me}finally{f=null,h=A,p=!1}}var T=!1,S=null,j=-1,L=5,N=-1;function O(){return!(e.unstable_now()-NE||125 F?(E.sortIndex=A,t(c,E),n(u)===null&&E===n(c)&&(v?(g(j),j=-1):v=!0,W(b,A-F))):(E.sortIndex=q,t(u,E),w||p||(w=!0,B(P))),E},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(E){var C=h;return function(){var A=h;h=C;try{return E.apply(this,arguments)}finally{h=A}}}})(Im);Rm.exports=Im;var Ey=Rm.exports;/** * @license React * react-dom.production.min.js * @@ -35,10 +35,10 @@ function iy(e,t){for(var n=0;n a||s[o]!==i[a]){var u=` -`+s[o].replace(" at new "," at ");return e.displayName&&u.includes(" ")&&(u=u.replace(" ",e.displayName)),u}while(1<=o&&0<=a);break}}}finally{ia=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Gr(e):""}function Dy(e){switch(e.tag){case 5:return Gr(e.type);case 16:return Gr("Lazy");case 13:return Gr("Suspense");case 19:return Gr("SuspenseList");case 0:case 2:case 15:return e=oa(e.type,!1),e;case 11:return e=oa(e.type.render,!1),e;case 1:return e=oa(e.type,!0),e;default:return""}}function il(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 Yn:return"Fragment";case Xn:return"Portal";case nl:return"Profiler";case Ou:return"StrictMode";case rl:return"Suspense";case sl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Fm:return(e.displayName||"Context")+".Consumer";case Om:return(e._context.displayName||"Context")+".Provider";case Fu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case zu:return t=e.displayName||null,t!==null?t:il(e.type)||"Memo";case Qt:t=e._payload,e=e._init;try{return il(e(t))}catch{}}return null}function Ry(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 il(t);case 8:return t===Ou?"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 gn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Bm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Iy(e){var t=Bm(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 ti(e){e._valueTracker||(e._valueTracker=Iy(e))}function $m(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Bm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ui(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 ol(e,t){var n=t.checked;return de({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function gd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=gn(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 Hm(e,t){t=t.checked,t!=null&&Vu(e,"checked",t,!1)}function al(e,t){Hm(e,t);var n=gn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ll(e,t.type,n):t.hasOwnProperty("defaultValue")&&ll(e,t.type,gn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ll(e,t,n){(t!=="number"||Ui(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Kr=Array.isArray;function cr(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s "+t.valueOf().toString()+"",t=ni.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ms(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zr={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},Vy=["Webkit","ms","Moz","O"];Object.keys(Zr).forEach(function(e){Vy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zr[t]=Zr[e]})});function Km(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Zr.hasOwnProperty(e)&&Zr[e]?(""+t).trim():t+"px"}function Xm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Km(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var Oy=de({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 dl(e,t){if(t){if(Oy[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 fl(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 hl=null;function Bu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ml=null,dr=null,fr=null;function wd(e){if(e=zs(e)){if(typeof ml!="function")throw Error(M(280));var t=e.stateNode;t&&(t=Ro(t),ml(e.stateNode,e.type,t))}}function Ym(e){dr?fr?fr.push(e):fr=[e]:dr=e}function qm(){if(dr){var e=dr,t=fr;if(fr=dr=null,wd(e),t)for(e=0;e >>=0,e===0?32:31-(Yy(e)/qy|0)|0}var ri=64,si=4194304;function Xr(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 Yi(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=Xr(a):(i&=o,i!==0&&(r=Xr(i)))}else o=n&~s,o!==0?r=Xr(o):i!==0&&(r=Xr(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 n;n++)t.push(e);return t}function Os(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wt(t),e[t]=n}function ev(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 =es),Nd=" ",_d=!1;function gp(e,t){switch(e){case"keyup":return Ev.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qn=!1;function _v(e,t){switch(e){case"compositionend":return xp(t);case"keypress":return t.which!==32?null:(_d=!0,Nd);case"textInput":return e=t.data,e===Nd&&_d?null:e;default:return null}}function Mv(e,t){if(qn)return e==="compositionend"||!Yu&&gp(e,t)?(e=mp(),Ci=Gu=nn=null,qn=!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)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=Dd(n)}}function kp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bp(){for(var e=window,t=Ui();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ui(e.document)}return t}function qu(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 zv(e){var t=bp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&kp(n.ownerDocument.documentElement,n)){if(r!==null&&qu(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=Rd(n,i);var o=Rd(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 =document.documentMode,Qn=null,wl=null,ns=null,kl=!1;function Id(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;kl||Qn==null||Qn!==Ui(r)||(r=Qn,"selectionStart"in r&&qu(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}),ns&&ws(ns,r)||(ns=r,r=Zi(wl,"onSelect"),0 er||(e.current=Cl[er],Cl[er]=null,er--)}function re(e,t){er++,Cl[er]=e.current,e.current=t}var xn={},Ve=kn(xn),Ge=kn(!1),Vn=xn;function xr(e,t){var n=e.type.contextTypes;if(!n)return xn;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 Ke(e){return e=e.childContextTypes,e!=null}function eo(){ie(Ge),ie(Ve)}function Hd(e,t,n){if(Ve.current!==xn)throw Error(M(168));re(Ve,t),re(Ge,n)}function Mp(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,Ry(e)||"Unknown",s));return de({},n,r)}function to(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xn,Vn=Ve.current,re(Ve,e),re(Ge,Ge.current),!0}function Wd(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=Mp(e,t,Vn),r.__reactInternalMemoizedMergedChildContext=e,ie(Ge),ie(Ve),re(Ve,e)):ie(Ge),re(Ge,n)}var Ot=null,Io=!1,wa=!1;function Lp(e){Ot===null?Ot=[e]:Ot.push(e)}function Zv(e){Io=!0,Lp(e)}function bn(){if(!wa&&Ot!==null){wa=!0;var e=0,t=J;try{var n=Ot;for(J=1;e >=o,s-=o,Ft=1<<32-wt(t)+s|n< S?(L=j,j=null):L=j.sibling;var N=h(g,j,y[S],b);if(N===null){j===null&&(j=L);break}e&&j&&N.alternate===null&&t(g,j),m=i(N,m,S),T===null?P=N:T.sibling=N,T=N,j=L}if(S===y.length)return n(g,j),ae&&Pn(g,S),P;if(j===null){for(;SS?(L=j,j=null):L=j.sibling;var O=h(g,j,N.value,b);if(O===null){j===null&&(j=L);break}e&&j&&O.alternate===null&&t(g,j),m=i(O,m,S),T===null?P=O:T.sibling=O,T=O,j=L}if(N.done)return n(g,j),ae&&Pn(g,S),P;if(j===null){for(;!N.done;S++,N=y.next())N=f(g,N.value,b),N!==null&&(m=i(N,m,S),T===null?P=N:T.sibling=N,T=N);return ae&&Pn(g,S),P}for(j=r(g,j);!N.done;S++,N=y.next())N=p(j,g,S,N.value,b),N!==null&&(e&&N.alternate!==null&&j.delete(N.key===null?S:N.key),m=i(N,m,S),T===null?P=N:T.sibling=N,T=N);return e&&j.forEach(function(H){return t(g,H)}),ae&&Pn(g,S),P}function k(g,m,y,b){if(typeof y=="object"&&y!==null&&y.type===Yn&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ei:e:{for(var P=y.key,T=m;T!==null;){if(T.key===P){if(P=y.type,P===Yn){if(T.tag===7){n(g,T.sibling),m=s(T,y.props.children),m.return=g,g=m;break e}}else if(T.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Qt&&Kd(P)===T.type){n(g,T.sibling),m=s(T,y.props),m.ref=Br(g,T,y),m.return=g,g=m;break e}n(g,T);break}else t(g,T);T=T.sibling}y.type===Yn?(m=Dn(y.props.children,g.mode,b,y.key),m.return=g,g=m):(b=Ri(y.type,y.key,y.props,null,g.mode,b),b.ref=Br(g,m,y),b.return=g,g=b)}return o(g);case Xn:e:{for(T=y.key;m!==null;){if(m.key===T)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){n(g,m.sibling),m=s(m,y.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=Ea(y,g.mode,b),m.return=g,g=m}return o(g);case Qt:return T=y._init,k(g,m,T(y._payload),b)}if(Kr(y))return w(g,m,y,b);if(Ir(y))return v(g,m,y,b);di(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(g,m.sibling),m=s(m,y),m.return=g,g=m):(n(g,m),m=Ca(y,g.mode,b),m.return=g,g=m),o(g)):n(g,m)}return k}var vr=Ip(!0),Vp=Ip(!1),so=kn(null),io=null,rr=null,ec=null;function tc(){ec=rr=io=null}function nc(e){var t=so.current;ie(so),e._currentValue=t}function _l(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 mr(e,t){io=e,ec=rr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ue=!0),e.firstContext=null)}function ct(e){var t=e._currentValue;if(ec!==e)if(e={context:e,memoizedValue:t,next:null},rr===null){if(io===null)throw Error(M(308));rr=e,io.dependencies={lanes:0,firstContext:e}}else rr=rr.next=e;return t}var Nn=null;function rc(e){Nn===null?Nn=[e]:Nn.push(e)}function Op(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,rc(t)):(n.next=s.next,s.next=n),t.interleaved=n,Ut(e,r)}function Ut(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 Zt=!1;function sc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fp(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 $t(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function dn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Y&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Ut(e,n)}return s=r.interleaved,s===null?(t.next=t,rc(r)):(t.next=s.next,s.next=t),r.interleaved=t,Ut(e,n)}function Ni(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,Hu(e,n)}}function Xd(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 oo(e,t,n,r){var s=e.updateQueue;Zt=!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 w=e,v=a;switch(h=t,p=n,v.tag){case 1:if(w=v.payload,typeof w=="function"){f=w.call(p,f,h);break e}f=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=v.payload,h=typeof w=="function"?w.call(p,f,h):w,h==null)break e;f=de({},f,h);break e;case 2:Zt=!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);zn|=o,e.lanes=o,e.memoizedState=f}}function Yd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t n?n:4,e(!0);var r=ba.transition;ba.transition={};try{e(!1),t()}finally{J=n,ba.transition=r}}function ng(){return dt().memoizedState}function n1(e,t,n){var r=hn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rg(e))sg(t,n);else if(n=Op(e,t,n,r),n!==null){var s=Be();kt(n,e,r,s),ig(n,t,r)}}function r1(e,t,n){var r=hn(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rg(e))sg(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,St(a,o)){var u=t.interleaved;u===null?(s.next=s,rc(t)):(s.next=u.next,u.next=s),t.interleaved=s;return}}catch{}finally{}n=Op(e,t,s,r),n!==null&&(s=Be(),kt(n,e,r,s),ig(n,t,r))}}function rg(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function sg(e,t){rs=lo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ig(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hu(e,n)}}var uo={readContext:ct,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},s1={readContext:ct,useCallback:function(e,t){return Ct().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:Qd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Mi(4194308,4,Qp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Mi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Mi(4,2,e,t)},useMemo:function(e,t){var n=Ct();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ct();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=n1.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=Ct();return e={current:e},t.memoizedState=e},useState:qd,useDebugValue:fc,useDeferredValue:function(e){return Ct().memoizedState=e},useTransition:function(){var e=qd(!1),t=e[0];return e=t1.bind(null,e[1]),Ct().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,s=Ct();if(ae){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),Te===null)throw Error(M(349));Fn&30||Hp(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,Qd(Up.bind(null,r,i,e),[e]),r.flags|=2048,Es(9,Wp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ct(),t=Te.identifierPrefix;if(ae){var n=zt,r=Ft;n=(r&~(1<<32-wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ts++,0 ")&&(u=u.replace(" ",e.displayName)),u}while(1<=o&&0<=a);break}}}finally{ia=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Gr(e):""}function Dy(e){switch(e.tag){case 5:return Gr(e.type);case 16:return Gr("Lazy");case 13:return Gr("Suspense");case 19:return Gr("SuspenseList");case 0:case 2:case 15:return e=oa(e.type,!1),e;case 11:return e=oa(e.type.render,!1),e;case 1:return e=oa(e.type,!0),e;default:return""}}function il(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 Yn:return"Fragment";case Xn:return"Portal";case nl:return"Profiler";case Ou:return"StrictMode";case rl:return"Suspense";case sl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Fm:return(e.displayName||"Context")+".Consumer";case Om:return(e._context.displayName||"Context")+".Provider";case Fu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case zu:return t=e.displayName||null,t!==null?t:il(e.type)||"Memo";case Qt:t=e._payload,e=e._init;try{return il(e(t))}catch{}}return null}function Ry(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 il(t);case 8:return t===Ou?"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 gn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Bm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Iy(e){var t=Bm(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 ti(e){e._valueTracker||(e._valueTracker=Iy(e))}function $m(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Bm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ui(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 ol(e,t){var n=t.checked;return de({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function gd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=gn(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 Hm(e,t){t=t.checked,t!=null&&Vu(e,"checked",t,!1)}function al(e,t){Hm(e,t);var n=gn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ll(e,t.type,n):t.hasOwnProperty("defaultValue")&&ll(e,t.type,gn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ll(e,t,n){(t!=="number"||Ui(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Kr=Array.isArray;function cr(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s "+t.valueOf().toString()+"",t=ni.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ms(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zr={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},Vy=["Webkit","ms","Moz","O"];Object.keys(Zr).forEach(function(e){Vy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zr[t]=Zr[e]})});function Km(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Zr.hasOwnProperty(e)&&Zr[e]?(""+t).trim():t+"px"}function Xm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Km(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var Oy=de({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 dl(e,t){if(t){if(Oy[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 fl(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 hl=null;function Bu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ml=null,dr=null,fr=null;function wd(e){if(e=zs(e)){if(typeof ml!="function")throw Error(M(280));var t=e.stateNode;t&&(t=Ro(t),ml(e.stateNode,e.type,t))}}function Ym(e){dr?fr?fr.push(e):fr=[e]:dr=e}function qm(){if(dr){var e=dr,t=fr;if(fr=dr=null,wd(e),t)for(e=0;e >>=0,e===0?32:31-(Yy(e)/qy|0)|0}var ri=64,si=4194304;function Xr(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 Yi(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=Xr(a):(i&=o,i!==0&&(r=Xr(i)))}else o=n&~s,o!==0?r=Xr(o):i!==0&&(r=Xr(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 n;n++)t.push(e);return t}function Os(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wt(t),e[t]=n}function ev(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 =es),Nd=" ",_d=!1;function gp(e,t){switch(e){case"keyup":return Ev.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qn=!1;function _v(e,t){switch(e){case"compositionend":return xp(t);case"keypress":return t.which!==32?null:(_d=!0,Nd);case"textInput":return e=t.data,e===Nd&&_d?null:e;default:return null}}function Mv(e,t){if(qn)return e==="compositionend"||!Yu&&gp(e,t)?(e=mp(),Ci=Gu=nn=null,qn=!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)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=Dd(n)}}function kp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bp(){for(var e=window,t=Ui();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ui(e.document)}return t}function qu(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 zv(e){var t=bp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&kp(n.ownerDocument.documentElement,n)){if(r!==null&&qu(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=Rd(n,i);var o=Rd(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 =document.documentMode,Qn=null,wl=null,ns=null,kl=!1;function Id(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;kl||Qn==null||Qn!==Ui(r)||(r=Qn,"selectionStart"in r&&qu(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}),ns&&ws(ns,r)||(ns=r,r=Zi(wl,"onSelect"),0 er||(e.current=Cl[er],Cl[er]=null,er--)}function re(e,t){er++,Cl[er]=e.current,e.current=t}var xn={},Ve=kn(xn),Ge=kn(!1),Vn=xn;function xr(e,t){var n=e.type.contextTypes;if(!n)return xn;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 Ke(e){return e=e.childContextTypes,e!=null}function eo(){ie(Ge),ie(Ve)}function Hd(e,t,n){if(Ve.current!==xn)throw Error(M(168));re(Ve,t),re(Ge,n)}function Mp(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,Ry(e)||"Unknown",s));return de({},n,r)}function to(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xn,Vn=Ve.current,re(Ve,e),re(Ge,Ge.current),!0}function Wd(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=Mp(e,t,Vn),r.__reactInternalMemoizedMergedChildContext=e,ie(Ge),ie(Ve),re(Ve,e)):ie(Ge),re(Ge,n)}var Ot=null,Io=!1,wa=!1;function Lp(e){Ot===null?Ot=[e]:Ot.push(e)}function Zv(e){Io=!0,Lp(e)}function bn(){if(!wa&&Ot!==null){wa=!0;var e=0,t=J;try{var n=Ot;for(J=1;e >=o,s-=o,Ft=1<<32-wt(t)+s|n< j?(L=S,S=null):L=S.sibling;var N=h(g,S,y[j],b);if(N===null){S===null&&(S=L);break}e&&S&&N.alternate===null&&t(g,S),m=i(N,m,j),T===null?P=N:T.sibling=N,T=N,S=L}if(j===y.length)return n(g,S),ae&&Pn(g,j),P;if(S===null){for(;jj?(L=S,S=null):L=S.sibling;var O=h(g,S,N.value,b);if(O===null){S===null&&(S=L);break}e&&S&&O.alternate===null&&t(g,S),m=i(O,m,j),T===null?P=O:T.sibling=O,T=O,S=L}if(N.done)return n(g,S),ae&&Pn(g,j),P;if(S===null){for(;!N.done;j++,N=y.next())N=f(g,N.value,b),N!==null&&(m=i(N,m,j),T===null?P=N:T.sibling=N,T=N);return ae&&Pn(g,j),P}for(S=r(g,S);!N.done;j++,N=y.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),T===null?P=N:T.sibling=N,T=N);return e&&S.forEach(function(H){return t(g,H)}),ae&&Pn(g,j),P}function k(g,m,y,b){if(typeof y=="object"&&y!==null&&y.type===Yn&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ei:e:{for(var P=y.key,T=m;T!==null;){if(T.key===P){if(P=y.type,P===Yn){if(T.tag===7){n(g,T.sibling),m=s(T,y.props.children),m.return=g,g=m;break e}}else if(T.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Qt&&Kd(P)===T.type){n(g,T.sibling),m=s(T,y.props),m.ref=Br(g,T,y),m.return=g,g=m;break e}n(g,T);break}else t(g,T);T=T.sibling}y.type===Yn?(m=Dn(y.props.children,g.mode,b,y.key),m.return=g,g=m):(b=Ri(y.type,y.key,y.props,null,g.mode,b),b.ref=Br(g,m,y),b.return=g,g=b)}return o(g);case Xn:e:{for(T=y.key;m!==null;){if(m.key===T)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){n(g,m.sibling),m=s(m,y.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=Ea(y,g.mode,b),m.return=g,g=m}return o(g);case Qt:return T=y._init,k(g,m,T(y._payload),b)}if(Kr(y))return w(g,m,y,b);if(Ir(y))return v(g,m,y,b);di(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(g,m.sibling),m=s(m,y),m.return=g,g=m):(n(g,m),m=Ca(y,g.mode,b),m.return=g,g=m),o(g)):n(g,m)}return k}var vr=Ip(!0),Vp=Ip(!1),so=kn(null),io=null,rr=null,ec=null;function tc(){ec=rr=io=null}function nc(e){var t=so.current;ie(so),e._currentValue=t}function _l(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 mr(e,t){io=e,ec=rr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ue=!0),e.firstContext=null)}function ct(e){var t=e._currentValue;if(ec!==e)if(e={context:e,memoizedValue:t,next:null},rr===null){if(io===null)throw Error(M(308));rr=e,io.dependencies={lanes:0,firstContext:e}}else rr=rr.next=e;return t}var Nn=null;function rc(e){Nn===null?Nn=[e]:Nn.push(e)}function Op(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,rc(t)):(n.next=s.next,s.next=n),t.interleaved=n,Ut(e,r)}function Ut(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 Zt=!1;function sc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fp(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 $t(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function dn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Y&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Ut(e,n)}return s=r.interleaved,s===null?(t.next=t,rc(r)):(t.next=s.next,s.next=t),r.interleaved=t,Ut(e,n)}function Ni(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,Hu(e,n)}}function Xd(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 oo(e,t,n,r){var s=e.updateQueue;Zt=!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 w=e,v=a;switch(h=t,p=n,v.tag){case 1:if(w=v.payload,typeof w=="function"){f=w.call(p,f,h);break e}f=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=v.payload,h=typeof w=="function"?w.call(p,f,h):w,h==null)break e;f=de({},f,h);break e;case 2:Zt=!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);zn|=o,e.lanes=o,e.memoizedState=f}}function Yd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t n?n:4,e(!0);var r=ba.transition;ba.transition={};try{e(!1),t()}finally{J=n,ba.transition=r}}function ng(){return dt().memoizedState}function n1(e,t,n){var r=hn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rg(e))sg(t,n);else if(n=Op(e,t,n,r),n!==null){var s=Be();kt(n,e,r,s),ig(n,t,r)}}function r1(e,t,n){var r=hn(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rg(e))sg(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,St(a,o)){var u=t.interleaved;u===null?(s.next=s,rc(t)):(s.next=u.next,u.next=s),t.interleaved=s;return}}catch{}finally{}n=Op(e,t,s,r),n!==null&&(s=Be(),kt(n,e,r,s),ig(n,t,r))}}function rg(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function sg(e,t){rs=lo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ig(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hu(e,n)}}var uo={readContext:ct,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},s1={readContext:ct,useCallback:function(e,t){return Ct().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:Qd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Mi(4194308,4,Qp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Mi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Mi(4,2,e,t)},useMemo:function(e,t){var n=Ct();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ct();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=n1.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=Ct();return e={current:e},t.memoizedState=e},useState:qd,useDebugValue:fc,useDeferredValue:function(e){return Ct().memoizedState=e},useTransition:function(){var e=qd(!1),t=e[0];return e=t1.bind(null,e[1]),Ct().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,s=Ct();if(ae){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),Te===null)throw Error(M(349));Fn&30||Hp(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,Qd(Up.bind(null,r,i,e),[e]),r.flags|=2048,Es(9,Wp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ct(),t=Te.identifierPrefix;if(ae){var n=zt,r=Ft;n=(r&~(1<<32-wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ts++,0 <\/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[_t]=t,e[Ss]=r,pg(e,t,!1,!1),t.stateNode=e;e:{switch(o=fl(n,r),n){case"dialog":se("cancel",e),se("close",e),s=r;break;case"iframe":case"object":case"embed":se("load",e),s=r;break;case"video":case"audio":for(s=0;s br&&(t.flags|=128,r=!0,$r(i,!1),t.lanes=4194304)}else{if(!r)if(e=ao(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$r(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ae)return Ae(t),null}else 2*pe()-i.renderingStartTime>br&&n!==1073741824&&(t.flags|=128,r=!0,$r(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=pe(),t.sibling=null,n=le.current,re(le,r?n&1|2:n&1),t):(Ae(t),null);case 22:case 23:return yc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?qe&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 f1(e,t){switch(Zu(t),t.tag){case 1:return Ke(t.type)&&eo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wr(),ie(Ge),ie(Ve),ac(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return oc(t),null;case 13:if(ie(le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));yr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(le),null;case 4:return wr(),null;case 10:return nc(t.type._context),null;case 22:case 23:return yc(),null;case 24:return null;default:return null}}var hi=!1,Ie=!1,h1=typeof WeakSet=="function"?WeakSet:Set,I=null;function sr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){me(e,t,r)}else n.current=null}function Fl(e,t,n){try{n()}catch(r){me(e,t,r)}}var uf=!1;function m1(e,t){if(bl=qi,e=bp(),qu(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(Sl={focusedElem:e,selectionRange:n},qi=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var v=w.memoizedProps,k=w.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:gt(t.type,v),k);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(b){me(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return w=uf,uf=!1,w}function ss(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&&Fl(t,n,i)}s=s.next}while(s!==r)}}function Fo(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 zl(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 yg(e){var t=e.alternate;t!==null&&(e.alternate=null,yg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_t],delete t[Ss],delete t[Tl],delete t[qv],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 vg(e){return e.tag===5||e.tag===3||e.tag===4}function cf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vg(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 Bl(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=Ji));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}function $l(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($l(e,t,n),e=e.sibling;e!==null;)$l(e,t,n),e=e.sibling}var Ee=null,xt=!1;function Yt(e,t,n){for(n=n.child;n!==null;)wg(e,t,n),n=n.sibling}function wg(e,t,n){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(Mo,n)}catch{}switch(n.tag){case 5:Ie||sr(n,t);case 6:var r=Ee,s=xt;Ee=null,Yt(e,t,n),Ee=r,xt=s,Ee!==null&&(xt?(e=Ee,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ee.removeChild(n.stateNode));break;case 18:Ee!==null&&(xt?(e=Ee,n=n.stateNode,e.nodeType===8?va(e.parentNode,n):e.nodeType===1&&va(e,n),ys(e)):va(Ee,n.stateNode));break;case 4:r=Ee,s=xt,Ee=n.stateNode.containerInfo,xt=!0,Yt(e,t,n),Ee=r,xt=s;break;case 0:case 11:case 14:case 15:if(!Ie&&(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)&&Fl(n,t,o),s=s.next}while(s!==r)}Yt(e,t,n);break;case 1:if(!Ie&&(sr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){me(n,t,a)}Yt(e,t,n);break;case 21:Yt(e,t,n);break;case 22:n.mode&1?(Ie=(r=Ie)||n.memoizedState!==null,Yt(e,t,n),Ie=r):Yt(e,t,n);break;default:Yt(e,t,n)}}function df(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new h1),t.forEach(function(r){var s=S1.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function ht(e,t){var n=t.deletions;if(n!==null)for(var r=0;r s&&(s=o),r&=~i}if(r=s,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*g1(r/1960))-r,10 e?16:e,rn===null)var r=!1;else{if(e=rn,rn=null,ho=0,Y&6)throw Error(M(331));var s=Y;for(Y|=4,I=e.current;I!==null;){var i=I,o=i.child;if(I.flags&16){var a=i.deletions;if(a!==null){for(var u=0;u pe()-gc?An(e,0):pc|=n),Xe(e,t)}function Eg(e,t){t===0&&(e.mode&1?(t=si,si<<=1,!(si&130023424)&&(si=4194304)):t=1);var n=Be();e=Ut(e,t),e!==null&&(Os(e,t,n),Xe(e,n))}function b1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Eg(e,n)}function S1(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),Eg(e,n)}var Ng;Ng=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ge.current)Ue=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ue=!1,c1(e,t,n);Ue=!!(e.flags&131072)}else Ue=!1,ae&&t.flags&1048576&&Ap(t,ro,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Li(e,t),e=t.pendingProps;var s=xr(t,Ve.current);mr(t,n),s=uc(null,t,r,e,s,n);var i=cc();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,Ke(r)?(i=!0,to(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,sc(t),s.updater=Oo,t.stateNode=s,s._reactInternals=t,Ll(t,r,e,n),t=Rl(null,t,r,!0,i,n)):(t.tag=0,ae&&i&&Qu(t),Oe(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Li(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=P1(r),e=gt(r,e),s){case 0:t=Dl(null,t,r,e,n);break e;case 1:t=of(null,t,r,e,n);break e;case 11:t=rf(null,t,r,e,n);break e;case 14:t=sf(null,t,r,gt(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:gt(r,s),Dl(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:gt(r,s),of(e,t,r,s,n);case 3:e:{if(fg(t),e===null)throw Error(M(387));r=t.pendingProps,i=t.memoizedState,s=i.element,Fp(e,t),oo(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=kr(Error(M(423)),t),t=af(e,t,r,n,s);break e}else if(r!==s){s=kr(Error(M(424)),t),t=af(e,t,r,n,s);break e}else for(Qe=cn(t.stateNode.containerInfo.firstChild),Ze=t,ae=!0,yt=null,n=Vp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(yr(),r===s){t=Gt(e,t,n);break e}Oe(e,t,r,n)}t=t.child}return t;case 5:return zp(t),e===null&&Nl(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,jl(r,s)?o=null:i!==null&&jl(r,i)&&(t.flags|=32),dg(e,t),Oe(e,t,o,n),t.child;case 6:return e===null&&Nl(t),null;case 13:return hg(e,t,n);case 4:return ic(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=vr(t,null,r,n):Oe(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:gt(r,s),rf(e,t,r,s,n);case 7:return Oe(e,t,t.pendingProps,n),t.child;case 8:return Oe(e,t,t.pendingProps.children,n),t.child;case 12:return Oe(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,re(so,r._currentValue),r._currentValue=o,i!==null)if(St(i.value,o)){if(i.children===s.children&&!Ge.current){t=Gt(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=$t(-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),_l(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),_l(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}Oe(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,mr(t,n),s=ct(s),r=r(s),t.flags|=1,Oe(e,t,r,n),t.child;case 14:return r=t.type,s=gt(r,t.pendingProps),s=gt(r.type,s),sf(e,t,r,s,n);case 15:return ug(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:gt(r,s),Li(e,t),t.tag=1,Ke(r)?(e=!0,to(t)):e=!1,mr(t,n),og(t,r,s),Ll(t,r,s,n),Rl(null,t,r,!0,e,n);case 19:return mg(e,t,n);case 22:return cg(e,t,n)}throw Error(M(156,t.tag))};function _g(e,t){return rp(e,t)}function j1(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 at(e,t,n,r){return new j1(e,t,n,r)}function wc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function P1(e){if(typeof e=="function")return wc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Fu)return 11;if(e===zu)return 14}return 2}function mn(e,t){var n=e.alternate;return n===null?(n=at(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 Ri(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")wc(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Yn:return Dn(n.children,s,i,t);case Ou:o=8,s|=8;break;case nl:return e=at(12,n,t,s|2),e.elementType=nl,e.lanes=i,e;case rl:return e=at(13,n,t,s),e.elementType=rl,e.lanes=i,e;case sl:return e=at(19,n,t,s),e.elementType=sl,e.lanes=i,e;case zm:return Bo(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Om:o=10;break e;case Fm:o=9;break e;case Fu:o=11;break e;case zu:o=14;break e;case Qt:o=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=at(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function Dn(e,t,n,r){return e=at(7,e,r,t),e.lanes=n,e}function Bo(e,t,n,r){return e=at(22,e,r,t),e.elementType=zm,e.lanes=n,e.stateNode={isHidden:!1},e}function Ca(e,t,n){return e=at(6,e,null,t),e.lanes=n,e}function Ea(e,t,n){return t=at(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function T1(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=la(0),this.expirationTimes=la(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=la(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function kc(e,t,n,r,s,i,o,a,u){return e=new T1(e,t,n,a,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=at(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},sc(i),e}function C1(e,t,n){var r=3 "u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Dg)}catch(e){console.error(e)}}Dg(),Dm.exports=tt;var Go=Dm.exports;const mN=km(Go);var vf=Go;el.createRoot=vf.createRoot,el.hydrateRoot=vf.hydrateRoot;/** +`+i.stack}return{value:e,source:t,stack:s,digest:null}}function Pa(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Al(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var a1=typeof WeakMap=="function"?WeakMap:Map;function ag(e,t,n){n=$t(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){fo||(fo=!0,Hl=r),Al(e,t)},n}function lg(e,t,n){n=$t(-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(){Al(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Al(e,t),typeof r!="function"&&(fn===null?fn=new Set([this]):fn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function ef(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new a1;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=k1.bind(null,e,t,n),t.then(e,e))}function tf(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 nf(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=$t(-1,1),t.tag=2,dn(n,t,1))),n.lanes|=1),e)}var l1=Kt.ReactCurrentOwner,Ue=!1;function Oe(e,t,n,r){t.child=e===null?Vp(t,null,n,r):vr(t,e.child,n,r)}function rf(e,t,n,r,s){n=n.render;var i=t.ref;return mr(t,s),r=uc(e,t,n,r,i,s),n=cc(),e!==null&&!Ue?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Gt(e,t,s)):(ae&&n&&Qu(t),t.flags|=1,Oe(e,t,r,s),t.child)}function sf(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!wc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,ug(e,t,i,r,s)):(e=Ri(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:ws,n(o,r)&&e.ref===t.ref)return Gt(e,t,s)}return t.flags|=1,e=mn(i,r),e.ref=t.ref,e.return=t,t.child=e}function ug(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(ws(i,r)&&e.ref===t.ref)if(Ue=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(Ue=!0);else return t.lanes=e.lanes,Gt(e,t,s)}return Dl(e,t,n,r,s)}function cg(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},re(ir,qe),qe|=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,re(ir,qe),qe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,re(ir,qe),qe|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,re(ir,qe),qe|=r;return Oe(e,t,s,n),t.child}function dg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Dl(e,t,n,r,s){var i=Ke(n)?Vn:Ve.current;return i=xr(t,i),mr(t,s),n=uc(e,t,n,r,i,s),r=cc(),e!==null&&!Ue?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Gt(e,t,s)):(ae&&r&&Qu(t),t.flags|=1,Oe(e,t,n,s),t.child)}function of(e,t,n,r,s){if(Ke(n)){var i=!0;to(t)}else i=!1;if(mr(t,s),t.stateNode===null)Li(e,t),og(t,n,r),Ll(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=ct(c):(c=Ke(n)?Vn:Ve.current,c=xr(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)&&Jd(t,o,r,c),Zt=!1;var h=t.memoizedState;o.state=h,oo(t,r,o,s),u=t.memoizedState,a!==r||h!==u||Ge.current||Zt?(typeof d=="function"&&(Ml(t,n,d,r),u=t.memoizedState),(a=Zt||Zd(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,Fp(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:gt(t.type,a),o.props=c,f=t.pendingProps,h=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=ct(u):(u=Ke(n)?Vn:Ve.current,u=xr(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)&&Jd(t,o,r,u),Zt=!1,h=t.memoizedState,o.state=h,oo(t,r,o,s);var w=t.memoizedState;a!==f||h!==w||Ge.current||Zt?(typeof p=="function"&&(Ml(t,n,p,r),w=t.memoizedState),(c=Zt||Zd(t,n,c,r,h,w,u)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,w,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,w,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=w),o.props=r,o.state=w,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 Rl(e,t,n,r,i,s)}function Rl(e,t,n,r,s,i){dg(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&Wd(t,n,!1),Gt(e,t,i);r=t.stateNode,l1.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=vr(t,e.child,null,i),t.child=vr(t,null,a,i)):Oe(e,t,a,i),t.memoizedState=r.state,s&&Wd(t,n,!0),t.child}function fg(e){var t=e.stateNode;t.pendingContext?Hd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Hd(e,t.context,!1),ic(e,t.containerInfo)}function af(e,t,n,r,s){return yr(),Ju(s),t.flags|=256,Oe(e,t,n,r),t.child}var Il={dehydrated:null,treeContext:null,retryLane:0};function Vl(e){return{baseLanes:e,cachePool:null,transitions:null}}function hg(e,t,n){var r=t.pendingProps,s=le.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),re(le,s&1),e===null)return Nl(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=Bo(o,r,0,null),e=Dn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Vl(n),t.memoizedState=Il,e):hc(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return u1(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=mn(s,u),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=mn(a,i):(i=Dn(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?Vl(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Il,r}return i=e.child,e=i.sibling,r=mn(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 hc(e,t){return t=Bo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function fi(e,t,n,r){return r!==null&&Ju(r),vr(t,e.child,null,n),e=hc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function u1(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=Pa(Error(M(422))),fi(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=Bo({mode:"visible",children:r.children},s,0,null),i=Dn(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&vr(t,e.child,null,o),t.child.memoizedState=Vl(o),t.memoizedState=Il,i);if(!(t.mode&1))return fi(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=Pa(i,r,void 0),fi(e,t,o,r)}if(a=(o&e.childLanes)!==0,Ue||a){if(r=Te,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,Ut(e,s),kt(r,e,s,-1))}return vc(),r=Pa(Error(M(421))),fi(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=b1.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Qe=cn(s.nextSibling),Ze=t,ae=!0,yt=null,e!==null&&(it[ot++]=Ft,it[ot++]=zt,it[ot++]=On,Ft=e.id,zt=e.overflow,On=t),t=hc(t,r.children),t.flags|=4096,t)}function lf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),_l(e.return,t,n)}function Ta(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 mg(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(Oe(e,t,r.children,n),r=le.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&&lf(e,n,t);else if(e.tag===19)lf(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(re(le,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&&ao(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Ta(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&&ao(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Ta(t,!0,n,null,i);break;case"together":Ta(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Li(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),zn|=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=mn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=mn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function c1(e,t,n){switch(t.tag){case 3:fg(t),yr();break;case 5:zp(t);break;case 1:Ke(t.type)&&to(t);break;case 4:ic(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;re(so,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(re(le,le.current&1),t.flags|=128,null):n&t.child.childLanes?hg(e,t,n):(re(le,le.current&1),e=Gt(e,t,n),e!==null?e.sibling:null);re(le,le.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return mg(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),re(le,le.current),r)break;return null;case 22:case 23:return t.lanes=0,cg(e,t,n)}return Gt(e,t,n)}var pg,Ol,gg,xg;pg=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}};Ol=function(){};gg=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,_n(Lt.current);var i=null;switch(n){case"input":s=ol(e,s),r=ol(e,r),i=[];break;case"select":s=de({},s,{value:void 0}),r=de({},r,{value:void 0}),i=[];break;case"textarea":s=ul(e,s),r=ul(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ji)}dl(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"&&(hs.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"&&(hs.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&se("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)}};xg=function(e,t,n,r){n!==r&&(t.flags|=4)};function $r(e,t){if(!ae)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 d1(e,t,n){var r=t.pendingProps;switch(Zu(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 Ke(t.type)&&eo(),Ae(t),null;case 3:return r=t.stateNode,wr(),ie(Ge),ie(Ve),ac(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ci(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,yt!==null&&(Gl(yt),yt=null))),Ol(e,t),Ae(t),null;case 5:oc(t);var s=_n(Ps.current);if(n=t.type,e!==null&&t.stateNode!=null)gg(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=_n(Lt.current),ci(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[_t]=t,r[Ss]=i,e=(t.mode&1)!==0,n){case"dialog":se("cancel",r),se("close",r);break;case"iframe":case"object":case"embed":se("load",r);break;case"video":case"audio":for(s=0;s <\/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[_t]=t,e[Ss]=r,pg(e,t,!1,!1),t.stateNode=e;e:{switch(o=fl(n,r),n){case"dialog":se("cancel",e),se("close",e),s=r;break;case"iframe":case"object":case"embed":se("load",e),s=r;break;case"video":case"audio":for(s=0;s br&&(t.flags|=128,r=!0,$r(i,!1),t.lanes=4194304)}else{if(!r)if(e=ao(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$r(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ae)return Ae(t),null}else 2*pe()-i.renderingStartTime>br&&n!==1073741824&&(t.flags|=128,r=!0,$r(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=pe(),t.sibling=null,n=le.current,re(le,r?n&1|2:n&1),t):(Ae(t),null);case 22:case 23:return yc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?qe&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 f1(e,t){switch(Zu(t),t.tag){case 1:return Ke(t.type)&&eo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wr(),ie(Ge),ie(Ve),ac(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return oc(t),null;case 13:if(ie(le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));yr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(le),null;case 4:return wr(),null;case 10:return nc(t.type._context),null;case 22:case 23:return yc(),null;case 24:return null;default:return null}}var hi=!1,Ie=!1,h1=typeof WeakSet=="function"?WeakSet:Set,I=null;function sr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){me(e,t,r)}else n.current=null}function Fl(e,t,n){try{n()}catch(r){me(e,t,r)}}var uf=!1;function m1(e,t){if(bl=qi,e=bp(),qu(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(Sl={focusedElem:e,selectionRange:n},qi=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var v=w.memoizedProps,k=w.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:gt(t.type,v),k);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(b){me(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return w=uf,uf=!1,w}function ss(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&&Fl(t,n,i)}s=s.next}while(s!==r)}}function Fo(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 zl(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 yg(e){var t=e.alternate;t!==null&&(e.alternate=null,yg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_t],delete t[Ss],delete t[Tl],delete t[qv],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 vg(e){return e.tag===5||e.tag===3||e.tag===4}function cf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vg(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 Bl(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=Ji));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}function $l(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($l(e,t,n),e=e.sibling;e!==null;)$l(e,t,n),e=e.sibling}var Ee=null,xt=!1;function Yt(e,t,n){for(n=n.child;n!==null;)wg(e,t,n),n=n.sibling}function wg(e,t,n){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(Mo,n)}catch{}switch(n.tag){case 5:Ie||sr(n,t);case 6:var r=Ee,s=xt;Ee=null,Yt(e,t,n),Ee=r,xt=s,Ee!==null&&(xt?(e=Ee,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ee.removeChild(n.stateNode));break;case 18:Ee!==null&&(xt?(e=Ee,n=n.stateNode,e.nodeType===8?va(e.parentNode,n):e.nodeType===1&&va(e,n),ys(e)):va(Ee,n.stateNode));break;case 4:r=Ee,s=xt,Ee=n.stateNode.containerInfo,xt=!0,Yt(e,t,n),Ee=r,xt=s;break;case 0:case 11:case 14:case 15:if(!Ie&&(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)&&Fl(n,t,o),s=s.next}while(s!==r)}Yt(e,t,n);break;case 1:if(!Ie&&(sr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){me(n,t,a)}Yt(e,t,n);break;case 21:Yt(e,t,n);break;case 22:n.mode&1?(Ie=(r=Ie)||n.memoizedState!==null,Yt(e,t,n),Ie=r):Yt(e,t,n);break;default:Yt(e,t,n)}}function df(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new h1),t.forEach(function(r){var s=S1.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function ht(e,t){var n=t.deletions;if(n!==null)for(var r=0;r s&&(s=o),r&=~i}if(r=s,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*g1(r/1960))-r,10 e?16:e,rn===null)var r=!1;else{if(e=rn,rn=null,ho=0,Y&6)throw Error(M(331));var s=Y;for(Y|=4,I=e.current;I!==null;){var i=I,o=i.child;if(I.flags&16){var a=i.deletions;if(a!==null){for(var u=0;u pe()-gc?An(e,0):pc|=n),Xe(e,t)}function Eg(e,t){t===0&&(e.mode&1?(t=si,si<<=1,!(si&130023424)&&(si=4194304)):t=1);var n=Be();e=Ut(e,t),e!==null&&(Os(e,t,n),Xe(e,n))}function b1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Eg(e,n)}function S1(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),Eg(e,n)}var Ng;Ng=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ge.current)Ue=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ue=!1,c1(e,t,n);Ue=!!(e.flags&131072)}else Ue=!1,ae&&t.flags&1048576&&Ap(t,ro,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Li(e,t),e=t.pendingProps;var s=xr(t,Ve.current);mr(t,n),s=uc(null,t,r,e,s,n);var i=cc();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,Ke(r)?(i=!0,to(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,sc(t),s.updater=Oo,t.stateNode=s,s._reactInternals=t,Ll(t,r,e,n),t=Rl(null,t,r,!0,i,n)):(t.tag=0,ae&&i&&Qu(t),Oe(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Li(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=P1(r),e=gt(r,e),s){case 0:t=Dl(null,t,r,e,n);break e;case 1:t=of(null,t,r,e,n);break e;case 11:t=rf(null,t,r,e,n);break e;case 14:t=sf(null,t,r,gt(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:gt(r,s),Dl(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:gt(r,s),of(e,t,r,s,n);case 3:e:{if(fg(t),e===null)throw Error(M(387));r=t.pendingProps,i=t.memoizedState,s=i.element,Fp(e,t),oo(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=kr(Error(M(423)),t),t=af(e,t,r,n,s);break e}else if(r!==s){s=kr(Error(M(424)),t),t=af(e,t,r,n,s);break e}else for(Qe=cn(t.stateNode.containerInfo.firstChild),Ze=t,ae=!0,yt=null,n=Vp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(yr(),r===s){t=Gt(e,t,n);break e}Oe(e,t,r,n)}t=t.child}return t;case 5:return zp(t),e===null&&Nl(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,jl(r,s)?o=null:i!==null&&jl(r,i)&&(t.flags|=32),dg(e,t),Oe(e,t,o,n),t.child;case 6:return e===null&&Nl(t),null;case 13:return hg(e,t,n);case 4:return ic(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=vr(t,null,r,n):Oe(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:gt(r,s),rf(e,t,r,s,n);case 7:return Oe(e,t,t.pendingProps,n),t.child;case 8:return Oe(e,t,t.pendingProps.children,n),t.child;case 12:return Oe(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,re(so,r._currentValue),r._currentValue=o,i!==null)if(St(i.value,o)){if(i.children===s.children&&!Ge.current){t=Gt(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=$t(-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),_l(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),_l(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}Oe(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,mr(t,n),s=ct(s),r=r(s),t.flags|=1,Oe(e,t,r,n),t.child;case 14:return r=t.type,s=gt(r,t.pendingProps),s=gt(r.type,s),sf(e,t,r,s,n);case 15:return ug(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:gt(r,s),Li(e,t),t.tag=1,Ke(r)?(e=!0,to(t)):e=!1,mr(t,n),og(t,r,s),Ll(t,r,s,n),Rl(null,t,r,!0,e,n);case 19:return mg(e,t,n);case 22:return cg(e,t,n)}throw Error(M(156,t.tag))};function _g(e,t){return rp(e,t)}function j1(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 at(e,t,n,r){return new j1(e,t,n,r)}function wc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function P1(e){if(typeof e=="function")return wc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Fu)return 11;if(e===zu)return 14}return 2}function mn(e,t){var n=e.alternate;return n===null?(n=at(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 Ri(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")wc(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Yn:return Dn(n.children,s,i,t);case Ou:o=8,s|=8;break;case nl:return e=at(12,n,t,s|2),e.elementType=nl,e.lanes=i,e;case rl:return e=at(13,n,t,s),e.elementType=rl,e.lanes=i,e;case sl:return e=at(19,n,t,s),e.elementType=sl,e.lanes=i,e;case zm:return Bo(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Om:o=10;break e;case Fm:o=9;break e;case Fu:o=11;break e;case zu:o=14;break e;case Qt:o=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=at(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function Dn(e,t,n,r){return e=at(7,e,r,t),e.lanes=n,e}function Bo(e,t,n,r){return e=at(22,e,r,t),e.elementType=zm,e.lanes=n,e.stateNode={isHidden:!1},e}function Ca(e,t,n){return e=at(6,e,null,t),e.lanes=n,e}function Ea(e,t,n){return t=at(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function T1(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=la(0),this.expirationTimes=la(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=la(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function kc(e,t,n,r,s,i,o,a,u){return e=new T1(e,t,n,a,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=at(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},sc(i),e}function C1(e,t,n){var r=3 "u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Dg)}catch(e){console.error(e)}}Dg(),Dm.exports=tt;var Go=Dm.exports;const pN=km(Go);var vf=Go;el.createRoot=vf.createRoot,el.hydrateRoot=vf.hydrateRoot;/** * @remix-run/router v1.23.3 * * Copyright (c) Remix Software Inc. @@ -65,7 +65,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function xo(){return xo=Object.assign?Object.assign.bind():function(e){for(var t=1;t {let r=e[n];return t.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function Tw(e,t){let n=ql(e);return t&&t.forEach((r,s)=>{n.has(s)||t.getAll(s).forEach(i=>{n.append(s,i)})}),n}const Cw=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Ew=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],Nw="6";try{window.__reactRouterVersion=Nw}catch{}const _w=x.createContext({isTransitioning:!1}),Mw="startTransition",Tf=ky[Mw];function Lw(e){let{basename:t,children:n,future:r,window:s}=e,i=x.useRef();i.current==null&&(i.current=L1({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&&Tf?Tf(()=>u(f)):u(f)},[u,c]);return x.useLayoutEffect(()=>o.listen(d),[o,d]),x.useEffect(()=>kw(r),[r]),x.createElement(bw,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const Aw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Dw=/^(?:[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=Ug(t,Cw),{basename:p}=x.useContext(Xt),w,v=!1;if(typeof c=="string"&&Dw.test(c)&&(w=c,Aw))try{let y=new URL(window.location.href),b=c.startsWith("//")?new URL(y.protocol+c):new URL(c),P=Sr(b.pathname,p);b.origin===y.origin&&P!=null?c=P+b.search+b.hash:v=!0}catch{}let k=sw(c,{relative:s}),g=Vw(c,{replace:o,state:a,target:u,preventScrollReset:d,relative:s,viewTransition:f});function m(y){r&&r(y),y.defaultPrevented||g(y)}return x.createElement("a",xo({},h,{href:w||k,onClick:v||i?r:m,ref:n,target:u}))}),Rw=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=Ug(t,Ew),h=qo(u,{relative:f.relative}),p=rt(),w=x.useContext(Fg),{navigator:v,basename:k}=x.useContext(Xt),g=w!=null&&Fw(h)&&c===!0,m=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,y=p.pathname,b=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;s||(y=y.toLowerCase(),b=b?b.toLowerCase():null,m=m.toLowerCase()),b&&k&&(b=Sr(b,k)||b);const P=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let T=y===m||!o&&y.startsWith(m)&&y.charAt(P)==="/",j=b!=null&&(b===m||!o&&b.startsWith(m)&&b.charAt(m.length)==="/"),S={isActive:T,isPending:j,isTransitioning:g},L=T?r:void 0,N;typeof i=="function"?N=i(S):N=[i,T?"active":null,j?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let O=typeof a=="function"?a(S):a;return x.createElement(U,xo({},f,{"aria-current":L,className:N,ref:n,style:O,to:u,viewTransition:c}),typeof d=="function"?d(S):d)});var Ql;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ql||(Ql={}));var Cf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Cf||(Cf={}));function Iw(e){let t=x.useContext(Ko);return t||ce(!1),t}function Vw(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:o,viewTransition:a}=t===void 0?{}:t,u=Yo(),c=rt(),d=qo(e,{relative:o});return x.useCallback(f=>{if(Pw(f,n)){f.preventDefault();let h=r!==void 0?r:go(c)===go(d);u(e,{replace:h,state:s,preventScrollReset:i,relative:o,viewTransition:a})}},[c,u,d,r,s,n,e,i,o,a])}function Ow(e){let t=x.useRef(ql(e)),n=x.useRef(!1),r=rt(),s=x.useMemo(()=>Tw(r.search,n.current?null:t.current),[r.search]),i=Yo(),o=x.useCallback((a,u)=>{const c=ql(typeof a=="function"?a(s):a);n.current=!0,i("?"+c,u)},[i,s]);return[s,o]}function Fw(e,t){t===void 0&&(t={});let n=x.useContext(_w);n==null&&ce(!1);let{basename:r}=Iw(Ql.useViewTransitionState),s=qo(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=Sr(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Sr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Xl(s.pathname,o)!=null||Xl(s.pathname,i)!=null}const zw="modulepreload",Bw=function(e){return"/"+e},Ef={},ee=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=Bw(u),u in Ef)return;Ef[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":zw,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 $w(){const{pathname:e}=rt();return x.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"instant"})},[e]),null}const Hw='a, button, [role="button"], label, select, summary, [data-cursor="hover"], .cursor-pointer',Ww='input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="file"]), textarea, [contenteditable="true"]';function Uw(){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),w=Math.sin(h);let v=-100,k=-100,g=0,m=2.4,y=2.4,b=16,P=6.5,T=16,j=6.5,S=!1,L,N=performance.now();const O=E=>{const C=Math.min((E-N)/1e3,.05);N=E,m+=(y-m)*Math.min(1,C*8),b+=(T-b)*Math.min(1,C*10),P+=(j-P)*Math.min(1,C*10),g+=m*C,u.style.transform=`translate3d(${v}px, ${k}px, 0)`,c.style.transform=`translate3d(${v}px, ${k}px, 0)`;const A=Math.cos(g)*b,F=Math.sin(g)*P;d.style.transform=`translate(${A*p-F*w}px, ${A*w+F*p}px)`,L=requestAnimationFrame(O)},H=E=>{a.dataset.state=E;const C=E==="hover";y=C?7:2.4,T=C?23:16,j=C?9.5:6.5},oe=E=>{v=E.clientX,k=E.clientY,S||(S=!0,a.dataset.hidden="false")},_=E=>{const C=E.target;C instanceof Element&&(C.closest(Ww)?H("text"):C.closest(Hw)?H("hover"):H("default"))},R=()=>{a.dataset.down="true",f.style.left=`${v}px`,f.style.top=`${k}px`,f.classList.remove("is-live"),f.offsetWidth,f.classList.add("is-live")},B=()=>{a.dataset.down="false"},W=()=>{S=!1,a.dataset.hidden="true"};return document.addEventListener("mousemove",oe,{passive:!0}),document.addEventListener("mouseover",_,{passive:!0}),document.addEventListener("mousedown",R,{passive:!0}),document.addEventListener("mouseup",B,{passive:!0}),document.documentElement.addEventListener("mouseleave",W),window.addEventListener("blur",W),L=requestAnimationFrame(O),()=>{cancelAnimationFrame(L),document.removeEventListener("mousemove",oe),document.removeEventListener("mouseover",_),document.removeEventListener("mousedown",R),document.removeEventListener("mouseup",B),document.documentElement.removeEventListener("mouseleave",W),window.removeEventListener("blur",W),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 Gw=`${"/".replace(/\/$/,"")}/api`;let Zl=0;const Jl=new Set,Nf=e=>{Zl+=e,Jl.forEach(t=>t(Zl))},Kw=()=>Zl,Xw=e=>(Jl.add(e),()=>Jl.delete(e));async function Wr(e,t={}){Nf(1);try{return await Yw(e,t)}finally{Nf(-1)}}async function Yw(e,t){const n=await fetch(`${Gw}${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 Z={get:(e,t)=>Wr(e,t),post:(e,t)=>Wr(e,{method:"POST",body:t instanceof FormData?t:JSON.stringify(t)}),put:(e,t)=>Wr(e,{method:"PUT",body:JSON.stringify(t)}),patch:(e,t)=>Wr(e,{method:"PATCH",body:JSON.stringify(t)}),delete:e=>Wr(e,{method:"DELETE"})};function qw({children:e}){const[t,n]=x.useState({pathname:null,needsSetup:null}),r=rt(),s=t.needsSetup===!1;x.useEffect(()=>{if(s)return;let o=!1;return Z.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(Ls,{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(Ls,{to:"/setup",replace:!0}):e}/** + */function xo(){return xo=Object.assign?Object.assign.bind():function(e){for(var t=1;t {let r=e[n];return t.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function Tw(e,t){let n=ql(e);return t&&t.forEach((r,s)=>{n.has(s)||t.getAll(s).forEach(i=>{n.append(s,i)})}),n}const Cw=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Ew=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],Nw="6";try{window.__reactRouterVersion=Nw}catch{}const _w=x.createContext({isTransitioning:!1}),Mw="startTransition",Tf=ky[Mw];function Lw(e){let{basename:t,children:n,future:r,window:s}=e,i=x.useRef();i.current==null&&(i.current=L1({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&&Tf?Tf(()=>u(f)):u(f)},[u,c]);return x.useLayoutEffect(()=>o.listen(d),[o,d]),x.useEffect(()=>kw(r),[r]),x.createElement(bw,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const Aw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Dw=/^(?:[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=Ug(t,Cw),{basename:p}=x.useContext(Xt),w,v=!1;if(typeof c=="string"&&Dw.test(c)&&(w=c,Aw))try{let y=new URL(window.location.href),b=c.startsWith("//")?new URL(y.protocol+c):new URL(c),P=Sr(b.pathname,p);b.origin===y.origin&&P!=null?c=P+b.search+b.hash:v=!0}catch{}let k=sw(c,{relative:s}),g=Vw(c,{replace:o,state:a,target:u,preventScrollReset:d,relative:s,viewTransition:f});function m(y){r&&r(y),y.defaultPrevented||g(y)}return x.createElement("a",xo({},h,{href:w||k,onClick:v||i?r:m,ref:n,target:u}))}),Rw=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=Ug(t,Ew),h=qo(u,{relative:f.relative}),p=rt(),w=x.useContext(Fg),{navigator:v,basename:k}=x.useContext(Xt),g=w!=null&&Fw(h)&&c===!0,m=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,y=p.pathname,b=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;s||(y=y.toLowerCase(),b=b?b.toLowerCase():null,m=m.toLowerCase()),b&&k&&(b=Sr(b,k)||b);const P=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let T=y===m||!o&&y.startsWith(m)&&y.charAt(P)==="/",S=b!=null&&(b===m||!o&&b.startsWith(m)&&b.charAt(m.length)==="/"),j={isActive:T,isPending:S,isTransitioning:g},L=T?r:void 0,N;typeof i=="function"?N=i(j):N=[i,T?"active":null,S?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let O=typeof a=="function"?a(j):a;return x.createElement(U,xo({},f,{"aria-current":L,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 Cf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Cf||(Cf={}));function Iw(e){let t=x.useContext(Ko);return t||ce(!1),t}function Vw(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:o,viewTransition:a}=t===void 0?{}:t,u=Yo(),c=rt(),d=qo(e,{relative:o});return x.useCallback(f=>{if(Pw(f,n)){f.preventDefault();let h=r!==void 0?r:go(c)===go(d);u(e,{replace:h,state:s,preventScrollReset:i,relative:o,viewTransition:a})}},[c,u,d,r,s,n,e,i,o,a])}function Ow(e){let t=x.useRef(ql(e)),n=x.useRef(!1),r=rt(),s=x.useMemo(()=>Tw(r.search,n.current?null:t.current),[r.search]),i=Yo(),o=x.useCallback((a,u)=>{const c=ql(typeof a=="function"?a(s):a);n.current=!0,i("?"+c,u)},[i,s]);return[s,o]}function Fw(e,t){t===void 0&&(t={});let n=x.useContext(_w);n==null&&ce(!1);let{basename:r}=Iw(Ql.useViewTransitionState),s=qo(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=Sr(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Sr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Xl(s.pathname,o)!=null||Xl(s.pathname,i)!=null}const zw="modulepreload",Bw=function(e){return"/"+e},Ef={},ee=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=Bw(u),u in Ef)return;Ef[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":zw,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 $w(){const{pathname:e}=rt();return x.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"instant"})},[e]),null}const Hw='a, button, [role="button"], label, select, summary, [data-cursor="hover"], .cursor-pointer',Ww='input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="file"]), textarea, [contenteditable="true"]';function Uw(){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),w=Math.sin(h);let v=-100,k=-100,g=0,m=2.4,y=2.4,b=16,P=6.5,T=16,S=6.5,j=!1,L,N=performance.now();const O=E=>{const C=Math.min((E-N)/1e3,.05);N=E,m+=(y-m)*Math.min(1,C*8),b+=(T-b)*Math.min(1,C*10),P+=(S-P)*Math.min(1,C*10),g+=m*C,u.style.transform=`translate3d(${v}px, ${k}px, 0)`,c.style.transform=`translate3d(${v}px, ${k}px, 0)`;const A=Math.cos(g)*b,F=Math.sin(g)*P;d.style.transform=`translate(${A*p-F*w}px, ${A*w+F*p}px)`,L=requestAnimationFrame(O)},H=E=>{a.dataset.state=E;const C=E==="hover";y=C?7:2.4,T=C?23:16,S=C?9.5:6.5},oe=E=>{v=E.clientX,k=E.clientY,j||(j=!0,a.dataset.hidden="false")},_=E=>{const C=E.target;C instanceof Element&&(C.closest(Ww)?H("text"):C.closest(Hw)?H("hover"):H("default"))},R=()=>{a.dataset.down="true",f.style.left=`${v}px`,f.style.top=`${k}px`,f.classList.remove("is-live"),f.offsetWidth,f.classList.add("is-live")},B=()=>{a.dataset.down="false"},W=()=>{j=!1,a.dataset.hidden="true"};return document.addEventListener("mousemove",oe,{passive:!0}),document.addEventListener("mouseover",_,{passive:!0}),document.addEventListener("mousedown",R,{passive:!0}),document.addEventListener("mouseup",B,{passive:!0}),document.documentElement.addEventListener("mouseleave",W),window.addEventListener("blur",W),L=requestAnimationFrame(O),()=>{cancelAnimationFrame(L),document.removeEventListener("mousemove",oe),document.removeEventListener("mouseover",_),document.removeEventListener("mousedown",R),document.removeEventListener("mouseup",B),document.documentElement.removeEventListener("mouseleave",W),window.removeEventListener("blur",W),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 Gw=`${"/".replace(/\/$/,"")}/api`;let Zl=0;const Jl=new Set,Nf=e=>{Zl+=e,Jl.forEach(t=>t(Zl))},Kw=()=>Zl,Xw=e=>(Jl.add(e),()=>Jl.delete(e));async function Wr(e,t={}){Nf(1);try{return await Yw(e,t)}finally{Nf(-1)}}async function Yw(e,t){const n=await fetch(`${Gw}${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 Z={get:(e,t)=>Wr(e,t),post:(e,t)=>Wr(e,{method:"POST",body:t instanceof FormData?t:JSON.stringify(t)}),put:(e,t)=>Wr(e,{method:"PUT",body:JSON.stringify(t)}),patch:(e,t)=>Wr(e,{method:"PATCH",body:JSON.stringify(t)}),delete:e=>Wr(e,{method:"DELETE"})};function qw({children:e}){const[t,n]=x.useState({pathname:null,needsSetup:null}),r=rt(),s=t.needsSetup===!1;x.useEffect(()=>{if(s)return;let o=!1;return Z.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(Ls,{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(Ls,{to:"/setup",replace:!0}):e}/** * @license lucide-react v1.23.0 - ISC * * This source code is licensed under the ISC license. @@ -95,7 +95,7 @@ Error generating stack: `+i.message+` * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Jw=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},Kg=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(Kg.Provider,{value:o},e)}const ek=()=>x.useContext(Kg),tk=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=""}=ek()??{},w=r??f?Number(n??d)*24/Number(t??c):n??d;return x.createElement("svg",{ref:u,..._a,width:t??c??_a.width,height:t??c??_a.height,stroke:e??h,strokeWidth:w,className:Gg("lucide",p,s),...!i&&!Jw(a)&&{"aria-hidden":"true"},...a},[...o.map(([v,k])=>x.createElement(v,k)),...Array.isArray(i)?i:[i]])});/** + */const Jw=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},Kg=x.createContext({});function gN({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(Kg.Provider,{value:o},e)}const ek=()=>x.useContext(Kg),tk=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=""}=ek()??{},w=r??f?Number(n??d)*24/Number(t??c):n??d;return x.createElement("svg",{ref:u,..._a,width:t??c??_a.width,height:t??c??_a.height,stroke:e??h,strokeWidth:w,className:Gg("lucide",p,s),...!i&&!Jw(a)&&{"aria-hidden":"true"},...a},[...o.map(([v,k])=>x.createElement(v,k)),...Array.isArray(i)?i:[i]])});/** * @license lucide-react v1.23.0 - ISC * * This source code is licensed under the ISC license. @@ -290,7 +290,7 @@ Error generating stack: `+i.message+` * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const gb=[["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"}]],xb=G("zap",gb),Qg=x.createContext(null);function yb(){const e=new Date,t=e.getHours()+e.getMinutes()/60;return t>=6.5&&t<21?"light":"dark"}function vb({children:e}){const[t,n]=x.useState(()=>{const s=localStorage.getItem("hifi-theme");return s==="light"||s==="dark"?s:yb()});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 wb(){return x.useContext(Qg)}const kb={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."}},bb={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."}},Ii={de:kb,en:bb};function Sb(){const e=localStorage.getItem("hifi-lang");return e==="de"||e==="en"?e:(navigator.language||"de").toLowerCase().startsWith("de")?"de":"en"}function eu(e,t){return t.split(".").reduce((n,r)=>n==null?void 0:n[r],e)}const Zg=x.createContext({language:"de",setLanguage:()=>{},toggleLanguage:()=>{},t:e=>{const t=eu(Ii.de,e);return t!==void 0?t:e}});function Af({children:e}){const[t,n]=x.useState(Sb);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=Ii[t]||Ii.de,a=eu(o,i);if(a!==void 0)return a;const u=eu(Ii.de,i);return u!==void 0?u:i};return l.jsx(Zg.Provider,{value:{language:t,setLanguage:n,toggleLanguage:r,t:s},children:e})}function Ce(){return x.useContext(Zg)}function Jg({overHero:e=!1,forceDark:t=!1}){const{theme:n,toggleTheme:r}=wb(),{t:s}=Ce();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 e0=x.createContext(null);function jb({children:e}){const[t,n]=x.useState(null),[r,s]=x.useState(!0);x.useEffect(()=>{Z.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 Z.post("/auth/login",{username:d,password:f});return h.requires_2fa?{requires2fa:!0}:(n(h),{requires2fa:!1})},o=async d=>{const f=await Z.post("/auth/verify-2fa",{code:d});n(f)},a=async()=>{await Z.post("/auth/logout",{}),n(null)},u=async()=>{const d=await Z.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(e0.Provider,{value:{user:t,loading:r,login:i,verifyTwoFactor:o,logout:a,refreshUser:u,hasPermission:c},children:e})}function Hs(){return x.useContext(e0)}const t0=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}),Pb=t0.Provider;function Pt(){return x.useContext(t0)}const tu="/assets/logo-dark-R-ckaBhx.png",Tb="https://www.audio4cars.de/",Df=e=>(e||"").replace(/[^\d+]/g,""),Rf=70,Cb=500;function Eb({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 Nb({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 Ma=[{code:"de",label:"Deutsch",Flag:Eb},{code:"en",label:"English",Flag:Nb}];function _b({overHero:e=!1}){const{language:t,setLanguage:n,t:r}=Ce(),[s,i]=x.useState(!1),o=x.useRef(null),a=Ma.find(u=>u.code===t)||Ma[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:Ma.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 Mb(){const[e,t]=x.useState(!1),[n,r]=x.useState(!1),[s,i]=x.useState(!1),{user:o}=Hs(),{phone:a,whatsapp:u,logo_dark_path:c,has_downloads:d}=Pt(),{t:f}=Ce(),h=6+(d?1:0)+(a?1:0)+(u?1:0),w=rt().pathname==="/",[v,k]=x.useState(!w);x.useEffect(()=>{if(!w){k(!0);return}const j=()=>k(window.scrollY>24);return j(),window.addEventListener("scroll",j,{passive:!0}),()=>window.removeEventListener("scroll",j)},[w]);const g=w&&!v;x.useEffect(()=>{if(e){r(!0);let L;const N=requestAnimationFrame(()=>{L=requestAnimationFrame(()=>i(!0))});return()=>{cancelAnimationFrame(N),L&&cancelAnimationFrame(L)}}i(!1);const j=Cb+(h-1)*Rf,S=setTimeout(()=>r(!1),j);return()=>clearTimeout(S)},[e,h]);const m=()=>`transition-all duration-500 ease-out ${s?"opacity-100":"opacity-0"}`,y=j=>({transitionDelay:`${(s?j:h-1-j)*Rf}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(Ok,{className:"h-5 w-5"})});let P=0;const T=()=>y(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||tu,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(_b,{overHero:g}),l.jsx(Jg,{overHero:g,forceDark:!0})]})]}),n&&Go.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:T(),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:T(),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:T(),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:T(),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:T(),children:f("nav.downloads")}),l.jsx("div",{className:`h-px w-16 bg-brand-500/60 ${m()}`,style:T()}),a&&l.jsxs("a",{href:`tel:${Df(a)}`,className:`flex items-center gap-2 text-sm font-semibold uppercase tracking-wide text-neutral-600 hover:text-brand-600 ${m()}`,style:T(),children:[l.jsx(yo,{className:"h-4 w-4"}),a]}),u&&l.jsxs("a",{href:`https://wa.me/${Df(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:T(),children:[l.jsx(Xk,{className:"h-4 w-4"}),f("nav.whatsapp")]}),l.jsxs("a",{href:Tb,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:T(),children:[l.jsx(ub,{className:"h-4 w-4"}),f("nav.shop")]})]})}),document.body)]})}const If="hifiplanet-cookie-consent",n0={necessary:!0,external:!1,analytics:!1},r0=x.createContext({consent:n0,decided:!1,settingsOpen:!1,acceptAll:()=>{},rejectNonEssential:()=>{},saveCustom:()=>{},openSettings:()=>{},closeSettings:()=>{}});function Lb({children:e}){const[t,n]=x.useState(n0),[r,s]=x.useState(!1),[i,o]=x.useState(!1);x.useEffect(()=>{try{const p=localStorage.getItem(If);if(p){const w=JSON.parse(p);n({necessary:!0,external:!!w.external,analytics:!!w.analytics}),s(!0)}}catch{}},[]);const a=x.useCallback(p=>{n(p),s(!0),o(!1),localStorage.setItem(If,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(r0.Provider,{value:{consent:t,decided:r,settingsOpen:i,acceptAll:u,rejectNonEssential:c,saveCustom:d,openSettings:f,closeSettings:h},children:e})}function Lr(){return x.useContext(r0)}const Ab=["mon","tue","wed","thu","fri","sat","sun"],Db=["sun","mon","tue","wed","thu","fri","sat"],La={mon:"Mo",tue:"Di",wed:"Mi",thu:"Do",fri:"Fr",sat:"Sa",sun:"So"};function Rb(e){const t=new Date,n=e==null?void 0:e[Db[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 {const s=Ib(e==null?void 0:e[r])||t,i=n[n.length-1];i&&i.label===s?i.days=`${i.firstLabel}-${La[r]}`:n.push({key:r,days:La[r],firstLabel:La[r],label:s})}),n}const Vb=e=>(e||"").replace(/[^\d+]/g,"");function Ob(){const{phone:e,contact_email:t,address_street:n,address_zip:r,address_city:s,business_hours:i,has_downloads:o}=Pt(),a=Rb(i),{openSettings:u}=Lr(),{pathname:c}=rt(),d=c==="/",{t:f}=Ce(),h=[n,[r,s].filter(Boolean).join(" ")].filter(Boolean).join(", "),p=`https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(h)}`,w=s0(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(qg,{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(eb,{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(yo,{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:${Vb(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(Yg,{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:w.map(v=>l.jsxs("div",{className:"flex items-center justify-between gap-3",children:[l.jsx("dt",{className:"text-neutral-500 dark:text-neutral-400",children:v.days}),l.jsx("dd",{className:"font-medium text-neutral-700 dark:text-neutral-200",children:v.label})]},v.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 Nc=x.createContext({});function yn(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const Fb=typeof window<"u",Ws=Fb?x.useLayoutEffect:x.useEffect,Qo=x.createContext(null);function _c(e,t){e.indexOf(t)===-1&&e.push(t)}function vo(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const jt=(e,t,n)=>n>t?t:n {};const vn={},i0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),o0=e=>typeof e=="object"&&e!==null,a0=e=>/^0[^.\s]+$/u.test(e);function l0(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ye=e=>e,Us=(...e)=>e.reduce((t,n)=>r=>n(t(r))),jr=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class Lc{constructor(){this.subscriptions=[]}add(t){return _c(this.subscriptions,t),()=>vo(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 e*1e3,lt=e=>e/1e3,Ac=(e,t)=>t?e*(1e3/t):0,u0=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,zb=1e-7,Bb=12;function $b(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=u0(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>zb&&++a$b(i,0,1,e,n);return i=>i===0||i===1?i:u0(s(i),t,r)}const c0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,d0=e=>t=>1-e(1-t),f0=Gs(.33,1.53,.69,.99),Dc=d0(f0),h0=c0(Dc),m0=e=>e>=1?1:(e*=2)<1?.5*Dc(e):.5*(2-Math.pow(2,-10*(e-1))),Rc=e=>1-Math.sin(Math.acos(e)),p0=d0(Rc),g0=c0(Rc),Hb=Gs(.42,0,1,1),Wb=Gs(0,0,.58,1),x0=Gs(.42,0,.58,1),Ub=e=>Array.isArray(e)&&typeof e[0]!="number",y0=e=>Array.isArray(e)&&typeof e[0]=="number",Gb={linear:Ye,easeIn:Hb,easeInOut:x0,easeOut:Wb,circIn:Rc,circInOut:g0,circOut:p0,backIn:Dc,backInOut:h0,backOut:f0,anticipate:m0},Kb=e=>typeof e=="string",Vf=e=>{if(y0(e)){Mc(e.length===4);const[t,n,r,s]=e;return Gs(t,n,r,s)}else if(Kb(e))return Gb[e];return e},gi=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Xb(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 Yb=40;function v0(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=gi.reduce((y,b)=>(y[b]=Xb(i),y),{}),{setup:a,read:u,resolveKeyframes:c,preUpdate:d,update:f,preRender:h,render:p,postRender:w}=o,v=()=>{const y=vn.useManualTiming,b=y?s.timestamp:performance.now();n=!1,y||(s.delta=r?1e3/60:Math.max(Math.min(b-s.timestamp,Yb),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),w.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(v))},k=()=>{n=!0,r=!0,s.isProcessing||e(v)};return{schedule:gi.reduce((y,b)=>{const P=o[b];return y[b]=(T,j=!1,S=!1)=>(n||k(),P.schedule(T,j,S)),y},{}),cancel:y=>{for(let b=0;b (Vi===void 0&&Fe.set(je.isProcessing||vn.useManualTiming?je.timestamp:performance.now()),Vi),set:e=>{Vi=e,queueMicrotask(qb)}},w0=e=>t=>typeof t=="string"&&t.startsWith(e),k0=w0("--"),Qb=w0("var(--"),Ic=e=>Qb(e)?Zb.test(e.split("/*")[0].trim()):!1,Zb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Of(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Ar={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},As={...Ar,transform:e=>jt(0,1,e)},xi={...Ar,default:1},as=e=>Math.round(e*1e5)/1e5,Vc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Jb(e){return e==null}const e2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Oc=(e,t)=>n=>!!(typeof n=="string"&&e2.test(n)&&n.startsWith(e)||t&&!Jb(n)&&Object.prototype.hasOwnProperty.call(n,t)),b0=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(Vc);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},t2=e=>jt(0,255,e),Da={...Ar,transform:e=>Math.round(t2(e))},Mn={test:Oc("rgb","red"),parse:b0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Da.transform(e)+", "+Da.transform(t)+", "+Da.transform(n)+", "+as(As.transform(r))+")"};function n2(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 nu={test:Oc("#"),parse:n2,transform:Mn.transform},Ks=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),It=Ks("deg"),At=Ks("%"),V=Ks("px"),r2=Ks("vh"),s2=Ks("vw"),Ff={...At,parse:e=>At.parse(e)/100,transform:e=>At.transform(e*100)},or={test:Oc("hsl","hue"),parse:b0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+At.transform(as(t))+", "+At.transform(as(n))+", "+as(As.transform(r))+")"},ge={test:e=>Mn.test(e)||nu.test(e)||or.test(e),parse:e=>Mn.test(e)?Mn.parse(e):or.test(e)?or.parse(e):nu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Mn.transform(e):or.transform(e),getAnimatableNone:e=>{const t=ge.parse(e);return t.alpha=0,ge.transform(t)}},i2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function o2(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Vc))==null?void 0:t.length)||0)+(((n=e.match(i2))==null?void 0:n.length)||0)>0}const S0="number",j0="color",a2="var",l2="var(",zf="${}",u2=/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 Pr(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(u2,u=>(ge.test(u)?(r.color.push(i),s.push(j0),n.push(ge.parse(u))):u.startsWith(l2)?(r.var.push(i),s.push(a2),n.push(u)):(r.number.push(i),s.push(S0),n.push(parseFloat(u))),++i,zf)).split(zf);return{values:n,split:a,indexes:r,types:s}}function c2(e){return Pr(e).values}function P0({split:e,types:t}){const n=e.length;return r=>{let s="";for(let i=0;i typeof e=="number"?0:ge.test(e)?ge.getAnimatableNone(e):e,h2=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:f2(e);function m2(e){const t=Pr(e);return P0(t)(t.values.map((r,s)=>h2(r,t.split[s])))}const bt={test:o2,parse:c2,createTransformer:d2,getAnimatableNone:m2};function Ra(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 p2({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=Ra(u,a,e+1/3),i=Ra(u,a,e),o=Ra(u,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function wo(e,t){return n=>n>0?t:e}const te=(e,t,n)=>e+(t-e)*n,Ia=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},g2=[nu,Mn,or],x2=e=>g2.find(t=>t.test(e));function Bf(e){const t=x2(e);if(!t)return!1;let n=t.parse(e);return t===or&&(n=p2(n)),n}const $f=(e,t)=>{const n=Bf(e),r=Bf(t);if(!n||!r)return wo(e,t);const s={...n};return i=>(s.red=Ia(n.red,r.red,i),s.green=Ia(n.green,r.green,i),s.blue=Ia(n.blue,r.blue,i),s.alpha=te(n.alpha,r.alpha,i),Mn.transform(s))},ru=new Set(["none","hidden"]);function y2(e,t){return ru.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function v2(e,t){return n=>te(e,t,n)}function Fc(e){return typeof e=="number"?v2:typeof e=="string"?Ic(e)?wo:ge.test(e)?$f:b2:Array.isArray(e)?T0:typeof e=="object"?ge.test(e)?$f:w2:wo}function T0(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>Fc(i)(i,t[o]));return i=>{for(let o=0;o {for(const i in r)n[i]=r[i](s);return n}}function k2(e,t){const n=[],r={color:0,var:0,number:0};for(let s=0;s {const n=bt.createTransformer(t),r=Pr(e),s=Pr(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?ru.has(e)&&!s.values.length||ru.has(t)&&!r.values.length?y2(e,t):Us(T0(k2(r,s),s.values),n):wo(e,t)};function C0(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?te(e,t,n):Fc(e)(e,t)}const S2=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>X.update(t,n),stop:()=>ft(t),now:()=>je.isProcessing?je.timestamp:Fe.now()}},E0=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i =ko?1/0:t}function j2(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(zc(r),ko);return{type:"keyframes",ease:i=>r.next(s*i).value/t,duration:lt(s)}}const he={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 su(e,t){return e*Math.sqrt(1-t*t)}const P2=12;function T2(e,t,n){let r=n;for(let s=1;s{const d=c*o,f=d*e,h=d-n,p=su(c,o),w=Math.exp(-f);return Va-h/p*w},i=c=>{const f=c*o*e,h=f*n+n,p=Math.pow(o,2)*Math.pow(c,2)*e,w=Math.exp(-f),v=su(Math.pow(c,2),o);return(-s(c)+Va>0?-1:1)*((h-p)*w)/v}):(s=c=>{const d=Math.exp(-c*e),f=(c-n)*e+1;return-Va+d*f},i=c=>{const d=Math.exp(-c*e),f=(n-c)*(e*e);return d*f});const a=5/e,u=T2(s,i,a);if(e=Je(e),isNaN(u))return{stiffness:he.stiffness,damping:he.damping,duration:e};{const c=Math.pow(u,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const E2=["duration","bounce"],N2=["stiffness","damping","mass"];function Hf(e,t){return t.some(n=>e[n]!==void 0)}function _2(e){let t={velocity:he.velocity,stiffness:he.stiffness,damping:he.damping,mass:he.mass,isResolvedFromDuration:!1,...e};if(!Hf(e,N2)&&Hf(e,E2))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*jt(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:he.mass,stiffness:s,damping:i}}else{const n=C2({...e,velocity:0});t={...t,...n,mass:he.mass},t.isResolvedFromDuration=!0}return t}function bo(e=he.visualDuration,t=he.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}=_2({...n,velocity:-lt(n.velocity||0)}),w=h||0,v=c/(2*Math.sqrt(u*d)),k=o-i,g=lt(Math.sqrt(u/d)),m=Math.abs(k)<5;r||(r=m?he.restSpeed.granular:he.restSpeed.default),s||(s=m?he.restDelta.granular:he.restDelta.default);let y,b,P,T,j,S;if(v<1)P=su(g,v),T=(w+v*g*k)/P,y=N=>{const O=Math.exp(-v*g*N);return o-O*(T*Math.sin(P*N)+k*Math.cos(P*N))},j=v*g*T+k*P,S=v*g*k-T*P,b=N=>Math.exp(-v*g*N)*(j*Math.sin(P*N)+S*Math.cos(P*N));else if(v===1){y=O=>o-Math.exp(-g*O)*(k+(w+g*k)*O);const N=w+g*k;b=O=>Math.exp(-g*O)*(g*N*O-w)}else{const N=g*Math.sqrt(v*v-1);y=_=>{const R=Math.exp(-v*g*_),B=Math.min(N*_,300);return o-R*((w+v*g*k)*Math.sinh(B)+N*k*Math.cosh(B))/N};const O=(w+v*g*k)/N,H=v*g*O-k*N,oe=v*g*k-O*N;b=_=>{const R=Math.exp(-v*g*_),B=Math.min(N*_,300);return R*(H*Math.sinh(B)+oe*Math.cosh(B))}}const L={calculatedDuration:p&&f||null,velocity:N=>Je(b(N)),next:N=>{if(!p&&v<1){const H=Math.exp(-v*g*N),oe=Math.sin(P*N),_=Math.cos(P*N),R=o-H*(T*oe+k*_),B=Je(H*(j*oe+S*_));return a.done=Math.abs(B)<=r&&Math.abs(o-R)<=s,a.value=a.done?o:R,a}const O=y(N);if(p)a.done=N>=f;else{const H=Je(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(zc(L),ko),O=E0(H=>L.next(N*H).value,N,30);return N+"ms "+O},toTransition:()=>{}};return L}bo.applyToOptions=e=>{const t=j2(e,100,bo);return e.ease=t.ease,e.duration=Je(t.duration),e.type="keyframes",e};const M2=5;function N0(e,t,n){const r=Math.max(t-M2,0);return Ac(n-e(r),t-r)}function iu({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=S=>a!==void 0&&Su,w=S=>a===void 0?u:u===void 0||Math.abs(a-S) -v*Math.exp(-S/r),y=S=>g+m(S),b=S=>{const L=m(S),N=y(S);h.done=Math.abs(L)<=c,h.value=h.done?g:N};let P,T;const j=S=>{p(h.value)&&(P=S,T=bo({keyframes:[h.value,w(h.value)],velocity:N0(y,S,h.value),damping:s,stiffness:i,restDelta:c,restSpeed:d}))};return j(0),{calculatedDuration:null,next:S=>{let L=!1;return!T&&P===void 0&&(L=!0,b(S),j(S)),P!==void 0&&S>=P?T.next(S-P):(!L&&b(S),h)}}}function L2(e,t,n){const r=[],s=n||vn.mix||C0,i=e.length-1;for(let o=0;ot[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=L2(t,r,s),u=a.length,c=d=>{if(o&&d 1)for(;f c(jt(e[0],e[i-1],d)):c}function A2(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=jr(0,t,r);e.push(te(n,1,s))}}function _0(e){const t=[0];return A2(t,e.length-1),t}function D2(e,t){return e.map(n=>n*t)}function R2(e,t){return e.map(()=>t||x0).splice(0,e.length-1)}function ls({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=Ub(r)?r.map(Vf):Vf(r),i={done:!1,value:t[0]},o=D2(n&&n.length===t.length?n:_0(t),e),a=Bc(o,t,{ease:Array.isArray(s)?s:R2(t,s)});return{calculatedDuration:e,next:u=>(i.value=a(u),i.done=u>=e,i)}}const I2=e=>e!==null;function Zo(e,{repeat:t,repeatType:n="loop"},r,s=1){const i=e.filter(I2),a=s<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const V2={decay:iu,inertia:iu,tween:ls,keyframes:ls,spring:bo};function M0(e){typeof e.type=="string"&&(e.type=V2[e.type])}class $c{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 O2=e=>e/100;class Ds extends $c{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!==Fe.now()&&this.tick(Fe.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;M0(t);const{type:n=ls,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=t;let{keyframes:a}=t;const u=n||ls;u!==ls&&typeof a[0]!="number"&&(this.mixKeyframes=Us(O2,C0(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=zc(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:w,onUpdate:v,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 y=this.currentTime,b=r;if(f){const S=Math.min(this.currentTime,s)/a;let L=Math.floor(S),N=S%1;!N&&S>=1&&(N=1),N===1&&L--,L=Math.min(L,f+1),!!(L%2)&&(h==="reverse"?(N=1-N,p&&(N-=p/a)):h==="mirror"&&(b=o)),y=jt(0,1,N)*a}let P;m?(this.delayState.value=d[0],P=this.delayState):P=b.next(y),i&&!m&&(P.value=i(P.value));let{done:T}=P;!m&&u!==null&&(T=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return j&&w!==iu&&(P.value=Zo(d,this.options,k,this.speed)),v&&v(P.value),j&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return lt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+lt(t)}get time(){return lt(this.currentTime)}set time(t){t=Je(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 N0(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(Fe.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=lt(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:t=S2,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(Fe.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 F2(e){for(let t=1;t e*180/Math.PI,ou=e=>{const t=Ln(Math.atan2(e[1],e[0]));return au(t)},z2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ou,rotateZ:ou,skewX:e=>Ln(Math.atan(e[1])),skewY:e=>Ln(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},au=e=>(e=e%360,e<0&&(e+=360),e),Wf=ou,Uf=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Gf=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),B2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Uf,scaleY:Gf,scale:e=>(Uf(e)+Gf(e))/2,rotateX:e=>au(Ln(Math.atan2(e[6],e[5]))),rotateY:e=>au(Ln(Math.atan2(-e[2],e[0]))),rotateZ:Wf,rotate:Wf,skewX:e=>Ln(Math.atan(e[4])),skewY:e=>Ln(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function lu(e){return e.includes("scale")?1:0}function uu(e,t){if(!e||e==="none")return lu(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=B2,s=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=z2,s=a}if(!s)return lu(t);const i=r[t],o=s[1].split(",").map(H2);return typeof i=="function"?i(o):o[i]}const $2=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return uu(n,t)};function H2(e){return parseFloat(e.trim())}const Dr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Rr=new Set([...Dr,"pathRotation"]),Kf=e=>e===Ar||e===V,W2=new Set(["x","y","z"]),U2=Dr.filter(e=>!W2.has(e));function G2(e){const t=[];return U2.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const on={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})=>uu(t,"x"),y:(e,{transform:t})=>uu(t,"y")};on.translateX=on.x;on.translateY=on.y;const Rn=new Set;let cu=!1,du=!1,fu=!1;function L0(){if(du){const e=Array.from(Rn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=G2(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)})}du=!1,cu=!1,Rn.forEach(e=>e.complete(fu)),Rn.clear()}function A0(){Rn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(du=!0)})}function K2(){fu=!0,A0(),L0(),fu=!1}class Hc{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?(Rn.add(this),cu||(cu=!0,X.read(A0),X.resolveKeyframes(L0))):(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])}F2(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Rn.delete(this)}cancel(){this.state==="scheduled"&&(Rn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const X2=e=>e.startsWith("--");function D0(e,t,n){X2(t)?e.style.setProperty(t,n):e.style[t]=n}const Y2={};function Wc(e,t){const n=l0(e);return()=>Y2[t]??n()}const Uc=Wc(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),R0=Wc(()=>window.ViewTimeline!==void 0,"viewTimeline"),I0=Wc(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),qr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Xf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:qr([0,.65,.55,1]),circOut:qr([.55,0,1,.45]),backIn:qr([.31,.01,.66,-.59]),backOut:qr([.33,1.53,.69,.99])};function V0(e,t){if(e)return typeof e=="function"?I0()?E0(e,t):"ease-out":y0(e)?qr(e):Array.isArray(e)?e.map(n=>V0(n,t)||Xf.easeOut):Xf[e]}function q2(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=V0(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 O0(e){return typeof e=="function"&&"applyToOptions"in e}function Q2({type:e,...t}){return O0(e)&&I0()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class F0 extends $c{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,Mc(typeof t.type!="string");const c=Q2(t);this.animation=q2(n,r,s,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=Zo(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(d),D0(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 lt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+lt(t)}get time(){return lt(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Je(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&&Uc()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),Ye):s(this)}}const z0={anticipate:m0,backInOut:h0,circInOut:g0};function Z2(e){return e in z0}function J2(e){typeof e.ease=="string"&&Z2(e.ease)&&(e.ease=z0[e.ease])}const Oa=10;class eS extends F0{constructor(t){J2(t),M0(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 Ds({...o,autoplay:!1}),u=Math.max(Oa,Fe.now()-this.startTime),c=jt(0,Oa,u-Oa),d=a.sample(u).value,{name:f}=this.options;i&&f&&D0(i,f,d),n.setWithVelocity(a.sample(Math.max(0,u-c)).value,d,c),a.stop()}}const Yf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(bt.test(e)||e==="0")&&!e.startsWith("url("));function tS(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n Object.hasOwnProperty.call(Element.prototype,"animate"));function aS(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 oS()&&n&&(B0.has(n)||iS.has(n)&&sS(a))&&(n!=="transform"||!d)&&!c&&!r&&s!=="mirror"&&i!==0&&o!=="inertia"}const lS=40;class uS extends $c{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 w;super(),this.stop=()=>{var v,k;this._animation&&(this._animation.stop(),(v=this.stopTimeline)==null||v.call(this)),(k=this.keyframeResolver)==null||k.cancel()},this.createdAt=Fe.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)||Hc;this.keyframeResolver=new p(a,(v,k,g)=>this.onKeyframesResolved(v,k,h,!g),u,c,d),(w=this.keyframeResolver)==null||w.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=Fe.now();let f=!0;nS(t,i,o,a)||(f=!1,(vn.instantAnimations||!u)&&(d==null||d(Zo(t,r,n))),t[0]=t[t.length-1],hu(r),r.repeat=0);const p={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>lS?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},w=f&&!c&&aS(p),v=(m=(g=p.motionValue)==null?void 0:g.owner)==null?void 0:m.current;let k;if(w)try{k=new eS({...p,element:v})}catch{k=new Ds(p)}else k=new Ds(p);k.finished.then(()=>{this.notifyFinished()}).catch(Ye),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(),K2()),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 $0(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 qf=30,cS=e=>!isNaN(parseFloat(e)),us={current:void 0};class dS{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const s=Fe.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=Fe.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=cS(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 Lc);const r=this.events[t].add(n);return t==="change"?()=>{r(),X.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 us.current&&us.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Fe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>qf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,qf);return Ac(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 vt(e,t){return new dS(e,t)}function H0(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Gc(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?H0(n,e):n}const fS={type:"spring",stiffness:500,damping:25,restSpeed:10},hS=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),mS={type:"keyframes",duration:.8},pS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},gS=(e,{keyframes:t})=>t.length>2?mS:Rr.has(e)?e.startsWith("scale")?hS(t[1]):fS:pS,xS=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function yS(e){for(const t in e)if(!xS.has(t))return!0;return!1}const Kc=(e,t,n,r={},s,i)=>o=>{const a=Gc(r,e)||{},u=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Je(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};yS(a)||Object.assign(d,gS(e,d)),d.duration&&(d.duration=Je(d.duration)),d.repeatDelay&&(d.repeatDelay=Je(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(hu(d),d.delay===0&&(f=!0)),(vn.instantAnimations||vn.skipAnimations||s!=null&&s.shouldSkipAnimations||a.skipAnimations)&&(f=!0,hu(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,f&&!i&&t.get()!==void 0){const h=Zo(d.keyframes,a);if(h!==void 0){X.update(()=>{d.onUpdate(h),d.onComplete()});return}}return a.isSync?new Ds(d):new uS(d)},vS=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function wS(e){const t=vS.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function W0(e,t,n=1){const[r,s]=wS(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return i0(o)?parseFloat(o):o}return Ic(s)?W0(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 Xc(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 In(e,t,n){const r=e.getProps();return Xc(r,t,n!==void 0?n:r.custom,e)}const U0=new Set(["width","height","top","left","right","bottom",...Dr]),mu=e=>Array.isArray(e);function kS(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,vt(n))}function bS(e){return mu(e)?e[e.length-1]||0:e}function SS(e,t){const n=In(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=bS(i[o]);kS(e,o,a)}}const be=e=>!!(e&&e.getVelocity);function jS(e){return!!(be(e)&&e.add)}function pu(e,t){const n=e.getValue("willChange");if(jS(n))return n.add(t);if(!n&&vn.WillChange){const r=new vn.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Yc(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const PS="framerAppearId",G0="data-"+Yc(PS);function K0(e){return e.props[G0]}function TS({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function X0(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i,transitionEnd:o,...a}=t;const u=e.getDefaultTransition();i=i?H0(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 w in a){const v=e.getValue(w,e.latestValues[w]??null),k=a[w];if(k===void 0||h&&TS(h,w))continue;const g={delay:n,...Gc(i||{},w)};d&&(g.skipAnimations=!0);const m=v.get();if(m!==void 0&&!v.isAnimating()&&!Array.isArray(k)&&k===m&&!g.velocity){X.update(()=>v.set(k));continue}let y=!1;if(window.MotionHandoffAnimation){const T=K0(e);if(T){const j=window.MotionHandoffAnimation(T,w,X);j!==null&&(g.startTime=j,y=!0)}}pu(e,w);const b=c??e.shouldReduceMotion;v.start(Kc(w,v,k,b&&U0.has(w)?{type:!1}:g,e,y));const P=v.animation;P&&f.push(P)}if(o){const w=()=>X.update(()=>{o&&SS(e,o)});f.length?Promise.all(f).then(w):w()}return f}function gu(e,t,n={}){var u;const r=In(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(X0(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:h}=s;return CS(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 CS(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(gu(u,t,{...o,delay:n+(typeof r=="function"?0:r)+$0(e.variantChildren,u,r,s,i)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(a)}function ES(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>gu(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=gu(e,t,n);else{const s=typeof t=="function"?In(e,t,n.custom):t;r=Promise.all(X0(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const NS={test:e=>e==="auto",parse:e=>e},Y0=e=>t=>t.test(e),q0=[Ar,V,At,It,s2,r2,NS],Zf=e=>q0.find(Y0(e));function _S(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||a0(e):!0}const MS=new Set(["brightness","contrast","saturate","opacity"]);function LS(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Vc)||[];if(!r)return e;const s=n.replace(r,"");let i=MS.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const AS=/\b([a-z-]*)\(.*?\)/gu,xu={...bt,getAnimatableNone:e=>{const t=e.match(AS);return t?t.map(LS).join(" "):e}},yu={...bt,getAnimatableNone:e=>{const t=bt.parse(e);return bt.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Jf={...Ar,transform:Math.round},DS={rotate:It,pathRotation:It,rotateX:It,rotateY:It,rotateZ:It,scale:xi,scaleX:xi,scaleY:xi,scaleZ:xi,skew:It,skewX:It,skewY:It,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:As,originX:Ff,originY:Ff,originZ:V},So={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,...DS,zIndex:Jf,fillOpacity:As,strokeOpacity:As,numOctaves:Jf},RS={...So,color:ge,backgroundColor:ge,outlineColor:ge,fill:ge,stroke:ge,borderColor:ge,borderTopColor:ge,borderRightColor:ge,borderBottomColor:ge,borderLeftColor:ge,filter:xu,WebkitFilter:xu,mask:yu,WebkitMask:yu},Q0=e=>RS[e],IS=new Set([xu,yu]);function Z0(e,t){let n=Q0(e);return IS.has(n)||(n=bt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const VS=new Set(["auto","none","0"]);function OS(e,t,n){let r=0,s;for(;r {t.getValue(u).set(c)}),this.resolveNoneKeyframes()}}const qc=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function J0(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 vu=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function cs(e){return o0(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Tr,cancel:ex}=v0(queueMicrotask,!1),pt={x:!1,y:!1};function tx(){return pt.x||pt.y}function zS(e){return e==="x"||e==="y"?pt[e]?null:(pt[e]=!0,()=>{pt[e]=!1}):pt.x||pt.y?null:(pt.x=pt.y=!0,()=>{pt.x=pt.y=!1})}function nx(e,t){const n=J0(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function BS(e){return!(e.pointerType==="touch"||tx())}function $S(e,t,n={}){const[r,s,i]=nx(e,n);return r.forEach(o=>{let a=!1,u=!1,c;const d=()=>{o.removeEventListener("pointerleave",w)},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)},w=k=>{if(k.pointerType!=="touch"){if(a){u=!0;return}f(k)}},v=k=>{if(!BS(k))return;u=!1;const g=t(o,k);typeof g=="function"&&(c=g,o.addEventListener("pointerleave",w,s))};o.addEventListener("pointerenter",v,s),o.addEventListener("pointerdown",p,s)}),i}const rx=(e,t)=>t?e===t?!0:rx(e,t.parentElement):!1,Qc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,HS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function WS(e){return HS.has(e.tagName)||e.isContentEditable===!0}const US=new Set(["INPUT","SELECT","TEXTAREA"]);function GS(e){return US.has(e.tagName)||e.isContentEditable===!0}const Oi=new WeakSet;function eh(e){return t=>{t.key==="Enter"&&e(t)}}function Fa(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const KS=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=eh(()=>{if(Oi.has(n))return;Fa(n,"down");const s=eh(()=>{Fa(n,"up")}),i=()=>Fa(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function th(e){return Qc(e)&&!tx()}const nh=new WeakSet;function XS(e,t,n={}){const[r,s,i]=nx(e,n),o=a=>{const u=a.currentTarget;if(!th(a)||nh.has(a))return;Oi.add(u),n.stopPropagation&&nh.add(a);const c=t(u,a),d={...s,capture:!0},f=(w,v)=>{window.removeEventListener("pointerup",h,d),window.removeEventListener("pointercancel",p,d),Oi.has(u)&&Oi.delete(u),th(w)&&typeof c=="function"&&c(w,{success:v})},h=w=>{f(w,u===window||u===document||n.useGlobalTarget||rx(u,w.target))},p=w=>{f(w,!1)};window.addEventListener("pointerup",h,d),window.addEventListener("pointercancel",p,d)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),cs(a)&&(a.addEventListener("focus",c=>KS(c,s)),!WS(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function Zc(e){return o0(e)&&"ownerSVGElement"in e}const Fi=new WeakMap;let qt;const sx=(e,t,n)=>(r,s)=>s&&s[0]?s[0][e+"Size"]:Zc(r)&&"getBBox"in r?r.getBBox()[t]:r[n],YS=sx("inline","width","offsetWidth"),qS=sx("block","height","offsetHeight");function QS({target:e,borderBoxSize:t}){var n;(n=Fi.get(e))==null||n.forEach(r=>{r(e,{get width(){return YS(e,t)},get height(){return qS(e,t)}})})}function ZS(e){e.forEach(QS)}function JS(){typeof ResizeObserver>"u"||(qt=new ResizeObserver(ZS))}function ej(e,t){qt||JS();const n=J0(e);return n.forEach(r=>{let s=Fi.get(r);s||(s=new Set,Fi.set(r,s)),s.add(t),qt==null||qt.observe(r)}),()=>{n.forEach(r=>{const s=Fi.get(r);s==null||s.delete(t),s!=null&&s.size||qt==null||qt.unobserve(r)})}}const zi=new Set;let ar;function tj(){ar=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};zi.forEach(t=>t(e))},window.addEventListener("resize",ar)}function nj(e){return zi.add(e),ar||tj(),()=>{zi.delete(e),!zi.size&&typeof ar=="function"&&(window.removeEventListener("resize",ar),ar=void 0)}}function wu(e,t){return typeof e=="function"?nj(e):ej(e,t)}function ix(e,t){let n;const r=()=>{const{currentTime:s}=t,o=(s===null?0:s.value)/100;n!==o&&e(o),n=o};return X.preUpdate(r,!0),()=>ft(r)}function rj(e){return Zc(e)&&e.tagName==="svg"}function sj(...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=Bc(s,i,o);return t?a(r):a}function ij(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=rh(e.get()),h=rh(i);if(f===h){u();return}const p=s?s.getGeneratorVelocity():e.getVelocity();u(),s=new Ds({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(za(p,a)),X.postRender(d)},u),be(t)){let f=n.skipInitialAnimation===!0;const h=t.on("change",w=>{f?(f=!1,e.jump(za(w,a),!1)):e.set(za(w,a))}),p=e.on("destroy",h);return()=>{h(),p()}}return u}function za(e,t){return t?e+t:e}function rh(e){return typeof e=="number"?e:parseFloat(e)}const oj=[...q0,ge,bt],aj=e=>oj.find(Y0(e)),sh=()=>({translate:0,scale:1,origin:0,originPoint:0}),lr=()=>({x:sh(),y:sh()}),ih=()=>({min:0,max:0}),ve=()=>({x:ih(),y:ih()}),lj=new WeakMap;function Jo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Rs(e){return typeof e=="string"||Array.isArray(e)}const Jc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ed=["initial",...Jc];function ea(e){return Jo(e.animate)||ed.some(t=>Rs(e[t]))}function ox(e){return!!(ea(e)||e.variants)}function uj(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,vt(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,vt(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ku={current:null},ax={current:!1},cj=typeof window<"u";function dj(){if(ax.current=!0,!!cj)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ku.current=e.matches;e.addEventListener("change",t),t()}else ku.current=!1}const oh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let jo={};function lx(e){jo=e}function fj(){return jo}class hj{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=Hc,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=Fe.now();this.renderScheduledAt this.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(ax.current||dj(),this.shouldReduceMotion=ku.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(),ft(this.notifyUpdate),ft(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&&B0.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:u,ease:c,duration:d}=n.accelerate,f=new F0({element:this.current,name:t,keyframes:a,times:u,ease:c,duration:Je(d)}),h=o(f);this.valueSubscriptions.set(t,()=>{h(),f.cancel()});return}const r=Rr.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&X.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 jo){const n=jo[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
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=vt(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"&&(i0(r)||a0(r))?r=parseFloat(r):!aj(r)&&bt.test(n)&&(r=Z0(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=Xc(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 Lc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Tr.render(this.render)}}class ux extends hj{constructor(){super(...arguments),this.KeyframeResolver=FS}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 Sn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function cx({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function mj({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function pj(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 Ba(e){return e===void 0||e===1}function bu({scale:e,scaleX:t,scaleY:n}){return!Ba(e)||!Ba(t)||!Ba(n)}function Cn(e){return bu(e)||dx(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function dx(e){return ah(e.x)||ah(e.y)}function ah(e){return e&&e!=="0%"}function Po(e,t,n){const r=e-n,s=t*r;return n+s}function lh(e,t,n,r,s){return s!==void 0&&(e=Po(e,s,r)),Po(e,n,r)+t}function Su(e,t=0,n=1,r,s){e.min=lh(e.min,t,n,r,s),e.max=lh(e.max,t,n,r,s)}function fx(e,{x:t,y:n}){Su(e.x,t.translate,t.scale,t.originPoint),Su(e.y,n.translate,n.scale,n.originPoint)}const uh=.999999999999,ch=1.0000000000001;function gj(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 uh&&(t.x=1),t.yuh&&(t.y=1)}function Nt(e,t){e.min+=t,e.max+=t}function dh(e,t,n,r,s=.5){const i=te(e.min,e.max,s);Su(e,t,n,i,r)}function fh(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Bi(e,t,n){const r=n??e;dh(e.x,fh(t.x,r.x),t.scaleX,t.scale,t.originX),dh(e.y,fh(t.y,r.y),t.scaleY,t.scale,t.originY)}function hx(e,t){return cx(pj(e.getBoundingClientRect(),t))}function xj(e,t,n){const r=hx(e,n),{scroll:s}=t;return s&&(Nt(r.x,s.offset.x),Nt(r.y,s.offset.y)),r}const yj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},vj=Dr.length;function wj(e,t,n){let r="",s=!0;for(let o=0;o {if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=hh(e,t.target.x),r=hh(e,t.target.y);return`${n}% ${r}%`}},kj={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=bt.parse(e);if(s.length>5)return r;const i=bt.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=te(a,u,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}},ju={borderRadius:{...Ur,applyTo:[...qc]},borderTopLeftRadius:Ur,borderTopRightRadius:Ur,borderBottomLeftRadius:Ur,borderBottomRightRadius:Ur,boxShadow:kj};function px(e,{layout:t,layoutId:n}){return Rr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ju[e]||e==="opacity")}function nd(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])||px(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(i[a]=r[a]);return i}function bj(e){return window.getComputedStyle(e)}class Sj extends ux{constructor(){super(...arguments),this.type="html",this.renderInstance=mx}readValueFromInstance(t,n){var r;if(Rr.has(n))return(r=this.projection)!=null&&r.isProjecting?lu(n):$2(t,n);{const s=bj(t),i=(k0(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return hx(t,n)}build(t,n,r){td(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return nd(t,n,r)}}const jj={offset:"stroke-dashoffset",array:"stroke-dasharray"},Pj={offset:"strokeDashoffset",array:"strokeDasharray"};function Tj(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?jj:Pj;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const Cj=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function gx(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:o=0,...a},u,c,d){if(td(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 Cj)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&&Tj(f,s,i,o,!1)}const xx=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"]),yx=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Ej(e,t,n,r){mx(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(xx.has(s)?s:Yc(s),t.attrs[s])}function vx(e,t,n){const r=nd(e,t,n);for(const s in e)if(be(e[s])||be(t[s])){const i=Dr.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}class Nj extends ux{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ve}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Rr.has(n)){const r=Q0(n);return r&&r.default||0}return n=xx.has(n)?n:Yc(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return vx(t,n,r)}build(t,n,r){gx(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){Ej(t,n,r,s)}mount(t){this.isSVGTag=yx(t.tagName),super.mount(t)}}const _j=ed.length;function wx(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?wx(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<_j;n++){const r=ed[n],s=e.props[r];(Rs(s)||s===!1)&&(t[r]=s)}return t}function kx(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r Promise.all(t.map(({animation:n,options:r})=>ES(e,n,r)))}function Dj(e){let t=Aj(e),n=mh(),r=!0,s=!1;const i=c=>(d,f)=>{var p;const h=In(e,f,c==="exit"?(p=e.presenceContext)==null?void 0:p.custom:void 0);if(h){const{transition:w,transitionEnd:v,...k}=h;d={...d,...k,...v}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,f=wx(e.parent)||{},h=[],p=new Set;let w={},v=1/0;for(let g=0;g v&&P,N=!1;const O=Array.isArray(b)?b:[b];let H=O.reduce(i(m),{});T===!1&&(H={});const{prevResolvedValues:oe={}}=y,_={...oe,...H},R=E=>{L=!0,p.has(E)&&(N=!0,p.delete(E)),y.needsAnimating[E]=!0;const C=e.getValue(E);C&&(C.liveStyle=!1)};for(const E in _){const C=H[E],A=oe[E];if(w.hasOwnProperty(E))continue;let F=!1;mu(C)&&mu(A)?F=!kx(C,A)||S:F=C!==A,F?C!=null?R(E):p.add(E):C!==void 0&&p.has(E)?R(E):y.protectedKeys[E]=!0}y.prevProp=b,y.prevResolvedValues=H,y.isActive&&(w={...w,...H}),(r||s)&&e.blockInitialAnimation&&(L=!1);const B=j&&S;L&&(!B||N)&&h.push(...O.map(E=>{const C={type:m};if(typeof E=="string"&&(r||s)&&!B&&e.manuallyAnimateOnMount&&e.parent){const{parent:A}=e,F=In(A,E);if(A.enteringChildren&&F){const{delayChildren:q}=F.transition||{};C.delay=$0(A.enteringChildren,e,q)}}return{animation:E,options:C}}))}if(p.size){const g={};if(typeof d.initial!="boolean"){const m=In(e,Array.isArray(d.initial)?d.initial[0]:d.initial);m&&m.transition&&(g.transition=m.transition)}p.forEach(m=>{const y=e.getBaseTarget(m),b=e.getValue(m);b&&(b.liveStyle=!0),g[m]=y??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 w;return(w=p.animationState)==null?void 0:w.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=mh(),s=!0}}}function Rj(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!kx(t,e):!1}function jn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mh(){return{animate:jn(!0),whileInView:jn(),whileHover:jn(),whileTap:jn(),whileDrag:jn(),whileFocus:jn(),exit:jn()}}function Pu(e,t){e.min=t.min,e.max=t.max}function mt(e,t){Pu(e.x,t.x),Pu(e.y,t.y)}function ph(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const bx=1e-4,Ij=1-bx,Vj=1+bx,Sx=.01,Oj=0-Sx,Fj=0+Sx;function ze(e){return e.max-e.min}function zj(e,t,n){return Math.abs(e-t)<=n}function gh(e,t,n,r=.5){e.origin=r,e.originPoint=te(t.min,t.max,e.origin),e.scale=ze(n)/ze(t),e.translate=te(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Ij&&e.scale<=Vj||isNaN(e.scale))&&(e.scale=1),(e.translate>=Oj&&e.translate<=Fj||isNaN(e.translate))&&(e.translate=0)}function ds(e,t,n,r){gh(e.x,t.x,n.x,r?r.originX:void 0),gh(e.y,t.y,n.y,r?r.originY:void 0)}function xh(e,t,n,r=0){const s=r?te(n.min,n.max,r):n.min;e.min=s+t.min,e.max=e.min+ze(t)}function Bj(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=0){const s=r?te(n.min,n.max,r):n.min;e.min=t.min-s,e.max=e.min+ze(t)}function To(e,t,n,r){yh(e.x,t.x,n.x,r==null?void 0:r.x),yh(e.y,t.y,n.y,r==null?void 0:r.y)}function vh(e,t,n,r,s){return e-=t,e=Po(e,1/n,r),s!==void 0&&(e=Po(e,1/s,r)),e}function $j(e,t=0,n=1,r=.5,s,i=e,o=e){if(At.test(t)&&(t=parseFloat(t),t=te(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=te(i.min,i.max,r);e===i&&(a-=t),e.min=vh(e.min,t,n,a,s),e.max=vh(e.max,t,n,a,s)}function wh(e,t,[n,r,s],i,o){$j(e,t[n],t[r],t[s],t.scale,i,o)}const Hj=["x","scaleX","originX"],Wj=["y","scaleY","originY"];function kh(e,t,n,r){wh(e.x,t,Hj,n?n.x:void 0,r?r.x:void 0),wh(e.y,t,Wj,n?n.y:void 0,r?r.y:void 0)}function bh(e){return e.translate===0&&e.scale===1}function jx(e){return bh(e.x)&&bh(e.y)}function Sh(e,t){return e.min===t.min&&e.max===t.max}function Uj(e,t){return Sh(e.x,t.x)&&Sh(e.y,t.y)}function jh(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Px(e,t){return jh(e.x,t.x)&&jh(e.y,t.y)}function Ph(e){return ze(e.x)/ze(e.y)}function Th(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Et(e){return[e("x"),e("y")]}function Gj(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:w,skewY:v}=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) `),w&&(r+=`skewX(${w}deg) `),v&&(r+=`skewY(${v}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 Kj=qc.length,Ch=e=>typeof e=="string"?parseFloat(e):e,Eh=e=>typeof e=="number"||V.test(e);function Xj(e,t,n,r,s,i){s?(e.opacity=te(0,n.opacity??1,Yj(r)),e.opacityExit=te(t.opacity??1,0,qj(r))):i&&(e.opacity=te(t.opacity??1,n.opacity??1,r));for(let o=0;o r t?1:n(jr(e,t,r))}function Qj(e,t,n){const r=be(e)?e:vt(e);return r.start(Kc("",r,t,n)),r.animation}function Is(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}const Zj=(e,t)=>e.depth-t.depth;class Jj{constructor(){this.children=[],this.isDirty=!1}add(t){_c(this.children,t),this.isDirty=!0}remove(t){vo(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Zj),this.isDirty=!1,this.children.forEach(t)}}function eP(e,t){const n=Fe.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(ft(r),e(i-t))};return X.setup(r,!0),()=>ft(r)}function $i(e){return be(e)?e.get():e}class tP{constructor(){this.members=[]}add(t){_c(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&&(vo(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(vo(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 Hi={hasAnimatedSinceResize:!0,hasEverUpdated:!1},$a=["","X","Y","Z"],nP=1e3;let rP=0;function Ha(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Cx(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=K0(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",X,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Cx(r)}function Ex({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=rP++,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(oP),this.nodes.forEach(fP),this.nodes.forEach(hP),this.nodes.forEach(aP)},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.root.updateBlockedByResize=!1;X.read(()=>{f=window.innerWidth}),e(o,()=>{const p=window.innerWidth;p!==f&&(f=p,this.root.updateBlockedByResize=!0,d&&d(),d=eP(h,250),Hi.hasAnimatedSinceResize&&(Hi.hasAnimatedSinceResize=!1,this.nodes.forEach(Lh)))})}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 w=this.options.transition||c.getDefaultTransition()||yP,{onLayoutAnimationStart:v,onLayoutAnimationComplete:k}=c.getProps(),g=!this.targetLayout||!Px(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 y={...Gc(w,"layout"),onPlay:v,onComplete:k};(c.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(d,m,y.path)}else f||Lh(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(),ft(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(mP),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&&Cx(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d {this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ze(this.snapshot.measuredBox.x)&&!ze(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 {const j=T/1e3,S=P==null?void 0:P(j);S?(h.x.translate=S.x,h.x.scale=te(o.x.scale,1,j),h.x.origin=o.x.origin,h.x.originPoint=o.x.originPoint,h.y.translate=S.y,h.y.scale=te(o.y.scale,1,j),h.y.origin=o.y.origin,h.y.originPoint=o.y.originPoint):(Ah(h.x,o.x,j),Ah(h.y,o.y,j)),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(To(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),gP(this.relativeTarget,this.relativeTargetOrigin,p,j),b&&Uj(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=ve()),mt(b,this.relativeTarget)),k&&(this.animationValues=f,Xj(f,d,this.latestValues,j,y,m)),S&&S.rotate!==void 0&&(this.animationValues||(this.animationValues=f),this.animationValues.pathRotation=S.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=j},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,u,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(u=this.resumingFrom)==null?void 0:u.currentAnimation)==null||c.stop(),this.pendingAnimation&&(ft(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=X.update(()=>{Hi.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=vt(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(nP),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&&Nx(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||ve();const f=ze(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+f;const h=ze(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+h}mt(a,u),Bi(a,d),ds(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new tP),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&&Ha("z",o,c,this.animationValues);for(let d=0;d<$a.length;d++)Ha(`rotate${$a[d]}`,o,c,this.animationValues),Ha(`skew${$a[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=$i(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=$i(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Cn(this.latestValues)&&(o.transform=u?u({},""):"none",this.hasProjected=!1);return}o.visibility="";const d=c.animationValues||c.latestValues;this.applyTransformsToTarget();let f=Gj(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 w in ju){if(d[w]===void 0)continue;const{correct:v,applyTo:k,isCSSVariable:g}=ju[w],m=f==="none"?d[w]:v(d[w],c);if(k){const y=k.length;for(let b=0;b {var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(_h),this.root.sharedNodes.clear()}}}function sP(e){e.updateLayout()}function iP(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")Et(f=>{const h=o?t.measuredBox[f]:t.layoutBox[f],p=ze(h);h.min=r[f].min,h.max=h.min+p});else if(i==="x"||i==="y"){const f=i==="x"?"y":"x";Pu(o?t.measuredBox[f]:t.layoutBox[f],r[f])}else Nx(i,t.layoutBox,r)&&Et(f=>{const h=o?t.measuredBox[f]:t.layoutBox[f],p=ze(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=lr();ds(a,r,t.layoutBox);const u=lr();o?ds(u,e.applyTransform(s,!0),t.measuredBox):ds(u,r,t.layoutBox);const c=!jx(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 w=e.options.layoutAnchor||void 0,v=ve();To(v,t.layoutBox,h.layoutBox,w);const k=ve();To(k,r,p.layoutBox,w),Px(v,k)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=k,e.relativeTargetOrigin=v,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 oP(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 aP(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function lP(e){e.clearSnapshot()}function _h(e){e.clearMeasurements()}function uP(e){e.isLayoutDirty=!0,e.updateLayout()}function Mh(e){e.isLayoutDirty=!1}function cP(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function dP(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Lh(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function fP(e){e.resolveTargetDelta()}function hP(e){e.calcProjection()}function mP(e){e.resetSkewAndRotation()}function pP(e){e.removeLeadSnapshot()}function Ah(e,t,n){e.translate=te(t.translate,0,n),e.scale=te(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Dh(e,t,n,r){e.min=te(t.min,n.min,r),e.max=te(t.max,n.max,r)}function gP(e,t,n,r){Dh(e.x,t.x,n.x,r),Dh(e.y,t.y,n.y,r)}function xP(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const yP={duration:.45,ease:[.4,0,.1,1]},Rh=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ih=Rh("applewebkit/")&&!Rh("chrome/")?Math.round:Ye;function Vh(e){e.min=Ih(e.min),e.max=Ih(e.max)}function vP(e){Vh(e.x),Vh(e.y)}function Nx(e,t,n){return e==="position"||e==="preserve-aspect"&&!zj(Ph(t),Ph(n),.2)}function wP(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const kP=Ex({attachResizeListener:(e,t)=>Is(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}),Wa={current:void 0},_x=Ex({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Wa.current){const e=new kP({});e.mount(window),e.setOptions({layoutScroll:!0}),Wa.current=e}return Wa.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Xs=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Oh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function bP(...e){return t=>{let n=!1;const r=e.map(s=>{const i=Oh(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s {const{width:p,height:w,top:v,left:k,right:g,bottom:m,direction:y}=u.current;if(t||i===!1||!a.current||!p||!w)return;const b=y==="rtl",P=n==="left"?b?`right: ${g}`:`left: ${k}`:b?`left: ${k}`:`right: ${g}`,T=r==="bottom"?`bottom: ${m}`:`top: ${v}`;a.current.dataset.motionPopId=o;const j=document.createElement("style");c&&(j.nonce=c);const S=s??document.head;return S.appendChild(j),j.sheet&&j.sheet.insertRule(` + */const gb=[["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"}]],xb=G("zap",gb),Qg=x.createContext(null);function yb(){const e=new Date,t=e.getHours()+e.getMinutes()/60;return t>=6.5&&t<21?"light":"dark"}function vb({children:e}){const[t,n]=x.useState(()=>{const s=localStorage.getItem("hifi-theme");return s==="light"||s==="dark"?s:yb()});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 wb(){return x.useContext(Qg)}const kb={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`,showMore:"Mehr anzeigen",lessBullets:"Weniger anzeigen",wheelHint:"Mit dem Mausrad blättern"},leistungen:{metaTitle:"Leistungen",metaDescription:"Car-Hifi, Wohnmobil & Caravan, Oldtimer, CNC-Zerspanung, Lasertechnik, 3D-Druck, Alarmanlagen und Dash Cams – alles aus einer Hand bei HifiPlanet in Amorbach.",title:"Unsere Leistungen",intro:"Von individuellen Sound-Umbauten bis zur eigenen CNC- und 3D-Druck-Fertigung – alles aus einer Hand in unserer Werkstatt in Amorbach.",notListedTitle:"Dein Projekt ist nicht dabei?",notListedText:"Sprich uns einfach an – wir finden gemeinsam die passende Lösung.",contact:"Kontakt aufnehmen"},contactPage:{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."}},bb={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`,showMore:"Show more",lessBullets:"Show less",wheelHint:"Scroll to browse"},leistungen:{metaTitle:"Services",metaDescription:"Car-hifi, motorhomes & caravans, classic cars, CNC machining, laser technology, 3D printing, alarm systems and dash cams – all from a single source at HifiPlanet in Amorbach.",title:"Our services",intro:"From custom sound installations to our own CNC and 3D-printing production – all from a single source in our workshop in Amorbach.",notListedTitle:"Don't see your project?",notListedText:"Just get in touch – we'll find the right solution together.",contact:"Get in touch"},contactPage:{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."}},Ii={de:kb,en:bb};function Sb(){const e=localStorage.getItem("hifi-lang");return e==="de"||e==="en"?e:(navigator.language||"de").toLowerCase().startsWith("de")?"de":"en"}function eu(e,t){return t.split(".").reduce((n,r)=>n==null?void 0:n[r],e)}const Zg=x.createContext({language:"de",setLanguage:()=>{},toggleLanguage:()=>{},t:e=>{const t=eu(Ii.de,e);return t!==void 0?t:e}});function Af({children:e}){const[t,n]=x.useState(Sb);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=Ii[t]||Ii.de,a=eu(o,i);if(a!==void 0)return a;const u=eu(Ii.de,i);return u!==void 0?u:i};return l.jsx(Zg.Provider,{value:{language:t,setLanguage:n,toggleLanguage:r,t:s},children:e})}function Ce(){return x.useContext(Zg)}function Jg({overHero:e=!1,forceDark:t=!1}){const{theme:n,toggleTheme:r}=wb(),{t:s}=Ce();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 e0=x.createContext(null);function jb({children:e}){const[t,n]=x.useState(null),[r,s]=x.useState(!0);x.useEffect(()=>{Z.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 Z.post("/auth/login",{username:d,password:f});return h.requires_2fa?{requires2fa:!0}:(n(h),{requires2fa:!1})},o=async d=>{const f=await Z.post("/auth/verify-2fa",{code:d});n(f)},a=async()=>{await Z.post("/auth/logout",{}),n(null)},u=async()=>{const d=await Z.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(e0.Provider,{value:{user:t,loading:r,login:i,verifyTwoFactor:o,logout:a,refreshUser:u,hasPermission:c},children:e})}function Hs(){return x.useContext(e0)}const t0=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}),Pb=t0.Provider;function Pt(){return x.useContext(t0)}const tu="/assets/logo-dark-R-ckaBhx.png",Tb="https://www.audio4cars.de/",Df=e=>(e||"").replace(/[^\d+]/g,""),Rf=70,Cb=500;function Eb({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 Nb({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 Ma=[{code:"de",label:"Deutsch",Flag:Eb},{code:"en",label:"English",Flag:Nb}];function _b({overHero:e=!1}){const{language:t,setLanguage:n,t:r}=Ce(),[s,i]=x.useState(!1),o=x.useRef(null),a=Ma.find(u=>u.code===t)||Ma[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:Ma.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 Mb(){const[e,t]=x.useState(!1),[n,r]=x.useState(!1),[s,i]=x.useState(!1),{user:o}=Hs(),{phone:a,whatsapp:u,logo_dark_path:c,has_downloads:d}=Pt(),{t:f}=Ce(),h=6+(d?1:0)+(a?1:0)+(u?1:0),w=rt().pathname==="/",[v,k]=x.useState(!w);x.useEffect(()=>{if(!w){k(!0);return}const S=()=>k(window.scrollY>24);return S(),window.addEventListener("scroll",S,{passive:!0}),()=>window.removeEventListener("scroll",S)},[w]);const g=w&&!v;x.useEffect(()=>{if(e){r(!0);let L;const N=requestAnimationFrame(()=>{L=requestAnimationFrame(()=>i(!0))});return()=>{cancelAnimationFrame(N),L&&cancelAnimationFrame(L)}}i(!1);const S=Cb+(h-1)*Rf,j=setTimeout(()=>r(!1),S);return()=>clearTimeout(j)},[e,h]);const m=()=>`transition-all duration-500 ease-out ${s?"opacity-100":"opacity-0"}`,y=S=>({transitionDelay:`${(s?S:h-1-S)*Rf}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(Ok,{className:"h-5 w-5"})});let P=0;const T=()=>y(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||tu,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(_b,{overHero:g}),l.jsx(Jg,{overHero:g,forceDark:!0})]})]}),n&&Go.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:T(),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:T(),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:T(),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:T(),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:T(),children:f("nav.downloads")}),l.jsx("div",{className:`h-px w-16 bg-brand-500/60 ${m()}`,style:T()}),a&&l.jsxs("a",{href:`tel:${Df(a)}`,className:`flex items-center gap-2 text-sm font-semibold uppercase tracking-wide text-neutral-600 hover:text-brand-600 ${m()}`,style:T(),children:[l.jsx(yo,{className:"h-4 w-4"}),a]}),u&&l.jsxs("a",{href:`https://wa.me/${Df(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:T(),children:[l.jsx(Xk,{className:"h-4 w-4"}),f("nav.whatsapp")]}),l.jsxs("a",{href:Tb,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:T(),children:[l.jsx(ub,{className:"h-4 w-4"}),f("nav.shop")]})]})}),document.body)]})}const If="hifiplanet-cookie-consent",n0={necessary:!0,external:!1,analytics:!1},r0=x.createContext({consent:n0,decided:!1,settingsOpen:!1,acceptAll:()=>{},rejectNonEssential:()=>{},saveCustom:()=>{},openSettings:()=>{},closeSettings:()=>{}});function Lb({children:e}){const[t,n]=x.useState(n0),[r,s]=x.useState(!1),[i,o]=x.useState(!1);x.useEffect(()=>{try{const p=localStorage.getItem(If);if(p){const w=JSON.parse(p);n({necessary:!0,external:!!w.external,analytics:!!w.analytics}),s(!0)}}catch{}},[]);const a=x.useCallback(p=>{n(p),s(!0),o(!1),localStorage.setItem(If,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(r0.Provider,{value:{consent:t,decided:r,settingsOpen:i,acceptAll:u,rejectNonEssential:c,saveCustom:d,openSettings:f,closeSettings:h},children:e})}function Lr(){return x.useContext(r0)}const Ab=["mon","tue","wed","thu","fri","sat","sun"],Db=["sun","mon","tue","wed","thu","fri","sat"],La={mon:"Mo",tue:"Di",wed:"Mi",thu:"Do",fri:"Fr",sat:"Sa",sun:"So"};function Rb(e){const t=new Date,n=e==null?void 0:e[Db[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 {const s=Ib(e==null?void 0:e[r])||t,i=n[n.length-1];i&&i.label===s?i.days=`${i.firstLabel}-${La[r]}`:n.push({key:r,days:La[r],firstLabel:La[r],label:s})}),n}const Vb=e=>(e||"").replace(/[^\d+]/g,"");function Ob(){const{phone:e,contact_email:t,address_street:n,address_zip:r,address_city:s,business_hours:i,has_downloads:o}=Pt(),a=Rb(i),{openSettings:u}=Lr(),{pathname:c}=rt(),d=c==="/",{t:f}=Ce(),h=[n,[r,s].filter(Boolean).join(" ")].filter(Boolean).join(", "),p=`https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(h)}`,w=s0(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(qg,{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(eb,{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(yo,{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:${Vb(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(Yg,{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:w.map(v=>l.jsxs("div",{className:"flex items-center justify-between gap-3",children:[l.jsx("dt",{className:"text-neutral-500 dark:text-neutral-400",children:v.days}),l.jsx("dd",{className:"font-medium text-neutral-700 dark:text-neutral-200",children:v.label})]},v.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 Nc=x.createContext({});function yn(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const Fb=typeof window<"u",Ws=Fb?x.useLayoutEffect:x.useEffect,Qo=x.createContext(null);function _c(e,t){e.indexOf(t)===-1&&e.push(t)}function vo(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const jt=(e,t,n)=>n>t?t:n {};const vn={},i0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),o0=e=>typeof e=="object"&&e!==null,a0=e=>/^0[^.\s]+$/u.test(e);function l0(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ye=e=>e,Us=(...e)=>e.reduce((t,n)=>r=>n(t(r))),jr=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class Lc{constructor(){this.subscriptions=[]}add(t){return _c(this.subscriptions,t),()=>vo(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 e*1e3,lt=e=>e/1e3,Ac=(e,t)=>t?e*(1e3/t):0,u0=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,zb=1e-7,Bb=12;function $b(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=u0(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>zb&&++a$b(i,0,1,e,n);return i=>i===0||i===1?i:u0(s(i),t,r)}const c0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,d0=e=>t=>1-e(1-t),f0=Gs(.33,1.53,.69,.99),Dc=d0(f0),h0=c0(Dc),m0=e=>e>=1?1:(e*=2)<1?.5*Dc(e):.5*(2-Math.pow(2,-10*(e-1))),Rc=e=>1-Math.sin(Math.acos(e)),p0=d0(Rc),g0=c0(Rc),Hb=Gs(.42,0,1,1),Wb=Gs(0,0,.58,1),x0=Gs(.42,0,.58,1),Ub=e=>Array.isArray(e)&&typeof e[0]!="number",y0=e=>Array.isArray(e)&&typeof e[0]=="number",Gb={linear:Ye,easeIn:Hb,easeInOut:x0,easeOut:Wb,circIn:Rc,circInOut:g0,circOut:p0,backIn:Dc,backInOut:h0,backOut:f0,anticipate:m0},Kb=e=>typeof e=="string",Vf=e=>{if(y0(e)){Mc(e.length===4);const[t,n,r,s]=e;return Gs(t,n,r,s)}else if(Kb(e))return Gb[e];return e},gi=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Xb(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 Yb=40;function v0(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=gi.reduce((y,b)=>(y[b]=Xb(i),y),{}),{setup:a,read:u,resolveKeyframes:c,preUpdate:d,update:f,preRender:h,render:p,postRender:w}=o,v=()=>{const y=vn.useManualTiming,b=y?s.timestamp:performance.now();n=!1,y||(s.delta=r?1e3/60:Math.max(Math.min(b-s.timestamp,Yb),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),w.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(v))},k=()=>{n=!0,r=!0,s.isProcessing||e(v)};return{schedule:gi.reduce((y,b)=>{const P=o[b];return y[b]=(T,S=!1,j=!1)=>(n||k(),P.schedule(T,S,j)),y},{}),cancel:y=>{for(let b=0;b (Vi===void 0&&Fe.set(je.isProcessing||vn.useManualTiming?je.timestamp:performance.now()),Vi),set:e=>{Vi=e,queueMicrotask(qb)}},w0=e=>t=>typeof t=="string"&&t.startsWith(e),k0=w0("--"),Qb=w0("var(--"),Ic=e=>Qb(e)?Zb.test(e.split("/*")[0].trim()):!1,Zb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Of(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Ar={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},As={...Ar,transform:e=>jt(0,1,e)},xi={...Ar,default:1},as=e=>Math.round(e*1e5)/1e5,Vc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Jb(e){return e==null}const e2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Oc=(e,t)=>n=>!!(typeof n=="string"&&e2.test(n)&&n.startsWith(e)||t&&!Jb(n)&&Object.prototype.hasOwnProperty.call(n,t)),b0=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(Vc);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},t2=e=>jt(0,255,e),Da={...Ar,transform:e=>Math.round(t2(e))},Mn={test:Oc("rgb","red"),parse:b0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Da.transform(e)+", "+Da.transform(t)+", "+Da.transform(n)+", "+as(As.transform(r))+")"};function n2(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 nu={test:Oc("#"),parse:n2,transform:Mn.transform},Ks=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),It=Ks("deg"),At=Ks("%"),V=Ks("px"),r2=Ks("vh"),s2=Ks("vw"),Ff={...At,parse:e=>At.parse(e)/100,transform:e=>At.transform(e*100)},or={test:Oc("hsl","hue"),parse:b0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+At.transform(as(t))+", "+At.transform(as(n))+", "+as(As.transform(r))+")"},ge={test:e=>Mn.test(e)||nu.test(e)||or.test(e),parse:e=>Mn.test(e)?Mn.parse(e):or.test(e)?or.parse(e):nu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Mn.transform(e):or.transform(e),getAnimatableNone:e=>{const t=ge.parse(e);return t.alpha=0,ge.transform(t)}},i2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function o2(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Vc))==null?void 0:t.length)||0)+(((n=e.match(i2))==null?void 0:n.length)||0)>0}const S0="number",j0="color",a2="var",l2="var(",zf="${}",u2=/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 Pr(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(u2,u=>(ge.test(u)?(r.color.push(i),s.push(j0),n.push(ge.parse(u))):u.startsWith(l2)?(r.var.push(i),s.push(a2),n.push(u)):(r.number.push(i),s.push(S0),n.push(parseFloat(u))),++i,zf)).split(zf);return{values:n,split:a,indexes:r,types:s}}function c2(e){return Pr(e).values}function P0({split:e,types:t}){const n=e.length;return r=>{let s="";for(let i=0;i typeof e=="number"?0:ge.test(e)?ge.getAnimatableNone(e):e,h2=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:f2(e);function m2(e){const t=Pr(e);return P0(t)(t.values.map((r,s)=>h2(r,t.split[s])))}const bt={test:o2,parse:c2,createTransformer:d2,getAnimatableNone:m2};function Ra(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 p2({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=Ra(u,a,e+1/3),i=Ra(u,a,e),o=Ra(u,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function wo(e,t){return n=>n>0?t:e}const te=(e,t,n)=>e+(t-e)*n,Ia=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},g2=[nu,Mn,or],x2=e=>g2.find(t=>t.test(e));function Bf(e){const t=x2(e);if(!t)return!1;let n=t.parse(e);return t===or&&(n=p2(n)),n}const $f=(e,t)=>{const n=Bf(e),r=Bf(t);if(!n||!r)return wo(e,t);const s={...n};return i=>(s.red=Ia(n.red,r.red,i),s.green=Ia(n.green,r.green,i),s.blue=Ia(n.blue,r.blue,i),s.alpha=te(n.alpha,r.alpha,i),Mn.transform(s))},ru=new Set(["none","hidden"]);function y2(e,t){return ru.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function v2(e,t){return n=>te(e,t,n)}function Fc(e){return typeof e=="number"?v2:typeof e=="string"?Ic(e)?wo:ge.test(e)?$f:b2:Array.isArray(e)?T0:typeof e=="object"?ge.test(e)?$f:w2:wo}function T0(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>Fc(i)(i,t[o]));return i=>{for(let o=0;o {for(const i in r)n[i]=r[i](s);return n}}function k2(e,t){const n=[],r={color:0,var:0,number:0};for(let s=0;s {const n=bt.createTransformer(t),r=Pr(e),s=Pr(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?ru.has(e)&&!s.values.length||ru.has(t)&&!r.values.length?y2(e,t):Us(T0(k2(r,s),s.values),n):wo(e,t)};function C0(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?te(e,t,n):Fc(e)(e,t)}const S2=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>X.update(t,n),stop:()=>ft(t),now:()=>je.isProcessing?je.timestamp:Fe.now()}},E0=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i =ko?1/0:t}function j2(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(zc(r),ko);return{type:"keyframes",ease:i=>r.next(s*i).value/t,duration:lt(s)}}const he={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 su(e,t){return e*Math.sqrt(1-t*t)}const P2=12;function T2(e,t,n){let r=n;for(let s=1;s{const d=c*o,f=d*e,h=d-n,p=su(c,o),w=Math.exp(-f);return Va-h/p*w},i=c=>{const f=c*o*e,h=f*n+n,p=Math.pow(o,2)*Math.pow(c,2)*e,w=Math.exp(-f),v=su(Math.pow(c,2),o);return(-s(c)+Va>0?-1:1)*((h-p)*w)/v}):(s=c=>{const d=Math.exp(-c*e),f=(c-n)*e+1;return-Va+d*f},i=c=>{const d=Math.exp(-c*e),f=(n-c)*(e*e);return d*f});const a=5/e,u=T2(s,i,a);if(e=Je(e),isNaN(u))return{stiffness:he.stiffness,damping:he.damping,duration:e};{const c=Math.pow(u,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const E2=["duration","bounce"],N2=["stiffness","damping","mass"];function Hf(e,t){return t.some(n=>e[n]!==void 0)}function _2(e){let t={velocity:he.velocity,stiffness:he.stiffness,damping:he.damping,mass:he.mass,isResolvedFromDuration:!1,...e};if(!Hf(e,N2)&&Hf(e,E2))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*jt(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:he.mass,stiffness:s,damping:i}}else{const n=C2({...e,velocity:0});t={...t,...n,mass:he.mass},t.isResolvedFromDuration=!0}return t}function bo(e=he.visualDuration,t=he.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}=_2({...n,velocity:-lt(n.velocity||0)}),w=h||0,v=c/(2*Math.sqrt(u*d)),k=o-i,g=lt(Math.sqrt(u/d)),m=Math.abs(k)<5;r||(r=m?he.restSpeed.granular:he.restSpeed.default),s||(s=m?he.restDelta.granular:he.restDelta.default);let y,b,P,T,S,j;if(v<1)P=su(g,v),T=(w+v*g*k)/P,y=N=>{const O=Math.exp(-v*g*N);return o-O*(T*Math.sin(P*N)+k*Math.cos(P*N))},S=v*g*T+k*P,j=v*g*k-T*P,b=N=>Math.exp(-v*g*N)*(S*Math.sin(P*N)+j*Math.cos(P*N));else if(v===1){y=O=>o-Math.exp(-g*O)*(k+(w+g*k)*O);const N=w+g*k;b=O=>Math.exp(-g*O)*(g*N*O-w)}else{const N=g*Math.sqrt(v*v-1);y=_=>{const R=Math.exp(-v*g*_),B=Math.min(N*_,300);return o-R*((w+v*g*k)*Math.sinh(B)+N*k*Math.cosh(B))/N};const O=(w+v*g*k)/N,H=v*g*O-k*N,oe=v*g*k-O*N;b=_=>{const R=Math.exp(-v*g*_),B=Math.min(N*_,300);return R*(H*Math.sinh(B)+oe*Math.cosh(B))}}const L={calculatedDuration:p&&f||null,velocity:N=>Je(b(N)),next:N=>{if(!p&&v<1){const H=Math.exp(-v*g*N),oe=Math.sin(P*N),_=Math.cos(P*N),R=o-H*(T*oe+k*_),B=Je(H*(S*oe+j*_));return a.done=Math.abs(B)<=r&&Math.abs(o-R)<=s,a.value=a.done?o:R,a}const O=y(N);if(p)a.done=N>=f;else{const H=Je(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(zc(L),ko),O=E0(H=>L.next(N*H).value,N,30);return N+"ms "+O},toTransition:()=>{}};return L}bo.applyToOptions=e=>{const t=j2(e,100,bo);return e.ease=t.ease,e.duration=Je(t.duration),e.type="keyframes",e};const M2=5;function N0(e,t,n){const r=Math.max(t-M2,0);return Ac(n-e(r),t-r)}function iu({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&&ju,w=j=>a===void 0?u:u===void 0||Math.abs(a-j) -v*Math.exp(-j/r),y=j=>g+m(j),b=j=>{const L=m(j),N=y(j);h.done=Math.abs(L)<=c,h.value=h.done?g:N};let P,T;const S=j=>{p(h.value)&&(P=j,T=bo({keyframes:[h.value,w(h.value)],velocity:N0(y,j,h.value),damping:s,stiffness:i,restDelta:c,restSpeed:d}))};return S(0),{calculatedDuration:null,next:j=>{let L=!1;return!T&&P===void 0&&(L=!0,b(j),S(j)),P!==void 0&&j>=P?T.next(j-P):(!L&&b(j),h)}}}function L2(e,t,n){const r=[],s=n||vn.mix||C0,i=e.length-1;for(let o=0;ot[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=L2(t,r,s),u=a.length,c=d=>{if(o&&d 1)for(;f c(jt(e[0],e[i-1],d)):c}function A2(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=jr(0,t,r);e.push(te(n,1,s))}}function _0(e){const t=[0];return A2(t,e.length-1),t}function D2(e,t){return e.map(n=>n*t)}function R2(e,t){return e.map(()=>t||x0).splice(0,e.length-1)}function ls({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=Ub(r)?r.map(Vf):Vf(r),i={done:!1,value:t[0]},o=D2(n&&n.length===t.length?n:_0(t),e),a=Bc(o,t,{ease:Array.isArray(s)?s:R2(t,s)});return{calculatedDuration:e,next:u=>(i.value=a(u),i.done=u>=e,i)}}const I2=e=>e!==null;function Zo(e,{repeat:t,repeatType:n="loop"},r,s=1){const i=e.filter(I2),a=s<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const V2={decay:iu,inertia:iu,tween:ls,keyframes:ls,spring:bo};function M0(e){typeof e.type=="string"&&(e.type=V2[e.type])}class $c{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 O2=e=>e/100;class Ds extends $c{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!==Fe.now()&&this.tick(Fe.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;M0(t);const{type:n=ls,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=t;let{keyframes:a}=t;const u=n||ls;u!==ls&&typeof a[0]!="number"&&(this.mixKeyframes=Us(O2,C0(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=zc(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:w,onUpdate:v,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 y=this.currentTime,b=r;if(f){const j=Math.min(this.currentTime,s)/a;let L=Math.floor(j),N=j%1;!N&&j>=1&&(N=1),N===1&&L--,L=Math.min(L,f+1),!!(L%2)&&(h==="reverse"?(N=1-N,p&&(N-=p/a)):h==="mirror"&&(b=o)),y=jt(0,1,N)*a}let P;m?(this.delayState.value=d[0],P=this.delayState):P=b.next(y),i&&!m&&(P.value=i(P.value));let{done:T}=P;!m&&u!==null&&(T=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return S&&w!==iu&&(P.value=Zo(d,this.options,k,this.speed)),v&&v(P.value),S&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return lt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+lt(t)}get time(){return lt(this.currentTime)}set time(t){t=Je(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 N0(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(Fe.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=lt(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:t=S2,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(Fe.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 F2(e){for(let t=1;t e*180/Math.PI,ou=e=>{const t=Ln(Math.atan2(e[1],e[0]));return au(t)},z2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ou,rotateZ:ou,skewX:e=>Ln(Math.atan(e[1])),skewY:e=>Ln(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},au=e=>(e=e%360,e<0&&(e+=360),e),Wf=ou,Uf=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Gf=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),B2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Uf,scaleY:Gf,scale:e=>(Uf(e)+Gf(e))/2,rotateX:e=>au(Ln(Math.atan2(e[6],e[5]))),rotateY:e=>au(Ln(Math.atan2(-e[2],e[0]))),rotateZ:Wf,rotate:Wf,skewX:e=>Ln(Math.atan(e[4])),skewY:e=>Ln(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function lu(e){return e.includes("scale")?1:0}function uu(e,t){if(!e||e==="none")return lu(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=B2,s=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=z2,s=a}if(!s)return lu(t);const i=r[t],o=s[1].split(",").map(H2);return typeof i=="function"?i(o):o[i]}const $2=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return uu(n,t)};function H2(e){return parseFloat(e.trim())}const Dr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Rr=new Set([...Dr,"pathRotation"]),Kf=e=>e===Ar||e===V,W2=new Set(["x","y","z"]),U2=Dr.filter(e=>!W2.has(e));function G2(e){const t=[];return U2.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const on={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})=>uu(t,"x"),y:(e,{transform:t})=>uu(t,"y")};on.translateX=on.x;on.translateY=on.y;const Rn=new Set;let cu=!1,du=!1,fu=!1;function L0(){if(du){const e=Array.from(Rn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=G2(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)})}du=!1,cu=!1,Rn.forEach(e=>e.complete(fu)),Rn.clear()}function A0(){Rn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(du=!0)})}function K2(){fu=!0,A0(),L0(),fu=!1}class Hc{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?(Rn.add(this),cu||(cu=!0,X.read(A0),X.resolveKeyframes(L0))):(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])}F2(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Rn.delete(this)}cancel(){this.state==="scheduled"&&(Rn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const X2=e=>e.startsWith("--");function D0(e,t,n){X2(t)?e.style.setProperty(t,n):e.style[t]=n}const Y2={};function Wc(e,t){const n=l0(e);return()=>Y2[t]??n()}const Uc=Wc(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),R0=Wc(()=>window.ViewTimeline!==void 0,"viewTimeline"),I0=Wc(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),qr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Xf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:qr([0,.65,.55,1]),circOut:qr([.55,0,1,.45]),backIn:qr([.31,.01,.66,-.59]),backOut:qr([.33,1.53,.69,.99])};function V0(e,t){if(e)return typeof e=="function"?I0()?E0(e,t):"ease-out":y0(e)?qr(e):Array.isArray(e)?e.map(n=>V0(n,t)||Xf.easeOut):Xf[e]}function q2(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=V0(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 O0(e){return typeof e=="function"&&"applyToOptions"in e}function Q2({type:e,...t}){return O0(e)&&I0()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class F0 extends $c{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,Mc(typeof t.type!="string");const c=Q2(t);this.animation=q2(n,r,s,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=Zo(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(d),D0(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 lt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+lt(t)}get time(){return lt(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Je(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&&Uc()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),Ye):s(this)}}const z0={anticipate:m0,backInOut:h0,circInOut:g0};function Z2(e){return e in z0}function J2(e){typeof e.ease=="string"&&Z2(e.ease)&&(e.ease=z0[e.ease])}const Oa=10;class eS extends F0{constructor(t){J2(t),M0(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 Ds({...o,autoplay:!1}),u=Math.max(Oa,Fe.now()-this.startTime),c=jt(0,Oa,u-Oa),d=a.sample(u).value,{name:f}=this.options;i&&f&&D0(i,f,d),n.setWithVelocity(a.sample(Math.max(0,u-c)).value,d,c),a.stop()}}const Yf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(bt.test(e)||e==="0")&&!e.startsWith("url("));function tS(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n Object.hasOwnProperty.call(Element.prototype,"animate"));function aS(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 oS()&&n&&(B0.has(n)||iS.has(n)&&sS(a))&&(n!=="transform"||!d)&&!c&&!r&&s!=="mirror"&&i!==0&&o!=="inertia"}const lS=40;class uS extends $c{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 w;super(),this.stop=()=>{var v,k;this._animation&&(this._animation.stop(),(v=this.stopTimeline)==null||v.call(this)),(k=this.keyframeResolver)==null||k.cancel()},this.createdAt=Fe.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)||Hc;this.keyframeResolver=new p(a,(v,k,g)=>this.onKeyframesResolved(v,k,h,!g),u,c,d),(w=this.keyframeResolver)==null||w.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=Fe.now();let f=!0;nS(t,i,o,a)||(f=!1,(vn.instantAnimations||!u)&&(d==null||d(Zo(t,r,n))),t[0]=t[t.length-1],hu(r),r.repeat=0);const p={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>lS?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},w=f&&!c&&aS(p),v=(m=(g=p.motionValue)==null?void 0:g.owner)==null?void 0:m.current;let k;if(w)try{k=new eS({...p,element:v})}catch{k=new Ds(p)}else k=new Ds(p);k.finished.then(()=>{this.notifyFinished()}).catch(Ye),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(),K2()),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 $0(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 qf=30,cS=e=>!isNaN(parseFloat(e)),us={current:void 0};class dS{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const s=Fe.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=Fe.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=cS(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 Lc);const r=this.events[t].add(n);return t==="change"?()=>{r(),X.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 us.current&&us.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Fe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>qf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,qf);return Ac(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 vt(e,t){return new dS(e,t)}function H0(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Gc(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?H0(n,e):n}const fS={type:"spring",stiffness:500,damping:25,restSpeed:10},hS=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),mS={type:"keyframes",duration:.8},pS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},gS=(e,{keyframes:t})=>t.length>2?mS:Rr.has(e)?e.startsWith("scale")?hS(t[1]):fS:pS,xS=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function yS(e){for(const t in e)if(!xS.has(t))return!0;return!1}const Kc=(e,t,n,r={},s,i)=>o=>{const a=Gc(r,e)||{},u=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Je(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};yS(a)||Object.assign(d,gS(e,d)),d.duration&&(d.duration=Je(d.duration)),d.repeatDelay&&(d.repeatDelay=Je(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(hu(d),d.delay===0&&(f=!0)),(vn.instantAnimations||vn.skipAnimations||s!=null&&s.shouldSkipAnimations||a.skipAnimations)&&(f=!0,hu(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,f&&!i&&t.get()!==void 0){const h=Zo(d.keyframes,a);if(h!==void 0){X.update(()=>{d.onUpdate(h),d.onComplete()});return}}return a.isSync?new Ds(d):new uS(d)},vS=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function wS(e){const t=vS.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function W0(e,t,n=1){const[r,s]=wS(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return i0(o)?parseFloat(o):o}return Ic(s)?W0(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 Xc(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 In(e,t,n){const r=e.getProps();return Xc(r,t,n!==void 0?n:r.custom,e)}const U0=new Set(["width","height","top","left","right","bottom",...Dr]),mu=e=>Array.isArray(e);function kS(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,vt(n))}function bS(e){return mu(e)?e[e.length-1]||0:e}function SS(e,t){const n=In(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=bS(i[o]);kS(e,o,a)}}const be=e=>!!(e&&e.getVelocity);function jS(e){return!!(be(e)&&e.add)}function pu(e,t){const n=e.getValue("willChange");if(jS(n))return n.add(t);if(!n&&vn.WillChange){const r=new vn.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Yc(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const PS="framerAppearId",G0="data-"+Yc(PS);function K0(e){return e.props[G0]}function TS({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function X0(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i,transitionEnd:o,...a}=t;const u=e.getDefaultTransition();i=i?H0(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 w in a){const v=e.getValue(w,e.latestValues[w]??null),k=a[w];if(k===void 0||h&&TS(h,w))continue;const g={delay:n,...Gc(i||{},w)};d&&(g.skipAnimations=!0);const m=v.get();if(m!==void 0&&!v.isAnimating()&&!Array.isArray(k)&&k===m&&!g.velocity){X.update(()=>v.set(k));continue}let y=!1;if(window.MotionHandoffAnimation){const T=K0(e);if(T){const S=window.MotionHandoffAnimation(T,w,X);S!==null&&(g.startTime=S,y=!0)}}pu(e,w);const b=c??e.shouldReduceMotion;v.start(Kc(w,v,k,b&&U0.has(w)?{type:!1}:g,e,y));const P=v.animation;P&&f.push(P)}if(o){const w=()=>X.update(()=>{o&&SS(e,o)});f.length?Promise.all(f).then(w):w()}return f}function gu(e,t,n={}){var u;const r=In(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(X0(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:h}=s;return CS(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 CS(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(gu(u,t,{...o,delay:n+(typeof r=="function"?0:r)+$0(e.variantChildren,u,r,s,i)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(a)}function ES(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>gu(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=gu(e,t,n);else{const s=typeof t=="function"?In(e,t,n.custom):t;r=Promise.all(X0(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const NS={test:e=>e==="auto",parse:e=>e},Y0=e=>t=>t.test(e),q0=[Ar,V,At,It,s2,r2,NS],Zf=e=>q0.find(Y0(e));function _S(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||a0(e):!0}const MS=new Set(["brightness","contrast","saturate","opacity"]);function LS(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Vc)||[];if(!r)return e;const s=n.replace(r,"");let i=MS.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const AS=/\b([a-z-]*)\(.*?\)/gu,xu={...bt,getAnimatableNone:e=>{const t=e.match(AS);return t?t.map(LS).join(" "):e}},yu={...bt,getAnimatableNone:e=>{const t=bt.parse(e);return bt.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Jf={...Ar,transform:Math.round},DS={rotate:It,pathRotation:It,rotateX:It,rotateY:It,rotateZ:It,scale:xi,scaleX:xi,scaleY:xi,scaleZ:xi,skew:It,skewX:It,skewY:It,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:As,originX:Ff,originY:Ff,originZ:V},So={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,...DS,zIndex:Jf,fillOpacity:As,strokeOpacity:As,numOctaves:Jf},RS={...So,color:ge,backgroundColor:ge,outlineColor:ge,fill:ge,stroke:ge,borderColor:ge,borderTopColor:ge,borderRightColor:ge,borderBottomColor:ge,borderLeftColor:ge,filter:xu,WebkitFilter:xu,mask:yu,WebkitMask:yu},Q0=e=>RS[e],IS=new Set([xu,yu]);function Z0(e,t){let n=Q0(e);return IS.has(n)||(n=bt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const VS=new Set(["auto","none","0"]);function OS(e,t,n){let r=0,s;for(;r {t.getValue(u).set(c)}),this.resolveNoneKeyframes()}}const qc=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function J0(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 vu=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function cs(e){return o0(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Tr,cancel:ex}=v0(queueMicrotask,!1),pt={x:!1,y:!1};function tx(){return pt.x||pt.y}function zS(e){return e==="x"||e==="y"?pt[e]?null:(pt[e]=!0,()=>{pt[e]=!1}):pt.x||pt.y?null:(pt.x=pt.y=!0,()=>{pt.x=pt.y=!1})}function nx(e,t){const n=J0(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function BS(e){return!(e.pointerType==="touch"||tx())}function $S(e,t,n={}){const[r,s,i]=nx(e,n);return r.forEach(o=>{let a=!1,u=!1,c;const d=()=>{o.removeEventListener("pointerleave",w)},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)},w=k=>{if(k.pointerType!=="touch"){if(a){u=!0;return}f(k)}},v=k=>{if(!BS(k))return;u=!1;const g=t(o,k);typeof g=="function"&&(c=g,o.addEventListener("pointerleave",w,s))};o.addEventListener("pointerenter",v,s),o.addEventListener("pointerdown",p,s)}),i}const rx=(e,t)=>t?e===t?!0:rx(e,t.parentElement):!1,Qc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,HS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function WS(e){return HS.has(e.tagName)||e.isContentEditable===!0}const US=new Set(["INPUT","SELECT","TEXTAREA"]);function GS(e){return US.has(e.tagName)||e.isContentEditable===!0}const Oi=new WeakSet;function eh(e){return t=>{t.key==="Enter"&&e(t)}}function Fa(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const KS=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=eh(()=>{if(Oi.has(n))return;Fa(n,"down");const s=eh(()=>{Fa(n,"up")}),i=()=>Fa(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function th(e){return Qc(e)&&!tx()}const nh=new WeakSet;function XS(e,t,n={}){const[r,s,i]=nx(e,n),o=a=>{const u=a.currentTarget;if(!th(a)||nh.has(a))return;Oi.add(u),n.stopPropagation&&nh.add(a);const c=t(u,a),d={...s,capture:!0},f=(w,v)=>{window.removeEventListener("pointerup",h,d),window.removeEventListener("pointercancel",p,d),Oi.has(u)&&Oi.delete(u),th(w)&&typeof c=="function"&&c(w,{success:v})},h=w=>{f(w,u===window||u===document||n.useGlobalTarget||rx(u,w.target))},p=w=>{f(w,!1)};window.addEventListener("pointerup",h,d),window.addEventListener("pointercancel",p,d)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),cs(a)&&(a.addEventListener("focus",c=>KS(c,s)),!WS(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function Zc(e){return o0(e)&&"ownerSVGElement"in e}const Fi=new WeakMap;let qt;const sx=(e,t,n)=>(r,s)=>s&&s[0]?s[0][e+"Size"]:Zc(r)&&"getBBox"in r?r.getBBox()[t]:r[n],YS=sx("inline","width","offsetWidth"),qS=sx("block","height","offsetHeight");function QS({target:e,borderBoxSize:t}){var n;(n=Fi.get(e))==null||n.forEach(r=>{r(e,{get width(){return YS(e,t)},get height(){return qS(e,t)}})})}function ZS(e){e.forEach(QS)}function JS(){typeof ResizeObserver>"u"||(qt=new ResizeObserver(ZS))}function ej(e,t){qt||JS();const n=J0(e);return n.forEach(r=>{let s=Fi.get(r);s||(s=new Set,Fi.set(r,s)),s.add(t),qt==null||qt.observe(r)}),()=>{n.forEach(r=>{const s=Fi.get(r);s==null||s.delete(t),s!=null&&s.size||qt==null||qt.unobserve(r)})}}const zi=new Set;let ar;function tj(){ar=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};zi.forEach(t=>t(e))},window.addEventListener("resize",ar)}function nj(e){return zi.add(e),ar||tj(),()=>{zi.delete(e),!zi.size&&typeof ar=="function"&&(window.removeEventListener("resize",ar),ar=void 0)}}function wu(e,t){return typeof e=="function"?nj(e):ej(e,t)}function ix(e,t){let n;const r=()=>{const{currentTime:s}=t,o=(s===null?0:s.value)/100;n!==o&&e(o),n=o};return X.preUpdate(r,!0),()=>ft(r)}function rj(e){return Zc(e)&&e.tagName==="svg"}function sj(...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=Bc(s,i,o);return t?a(r):a}function ij(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=rh(e.get()),h=rh(i);if(f===h){u();return}const p=s?s.getGeneratorVelocity():e.getVelocity();u(),s=new Ds({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(za(p,a)),X.postRender(d)},u),be(t)){let f=n.skipInitialAnimation===!0;const h=t.on("change",w=>{f?(f=!1,e.jump(za(w,a),!1)):e.set(za(w,a))}),p=e.on("destroy",h);return()=>{h(),p()}}return u}function za(e,t){return t?e+t:e}function rh(e){return typeof e=="number"?e:parseFloat(e)}const oj=[...q0,ge,bt],aj=e=>oj.find(Y0(e)),sh=()=>({translate:0,scale:1,origin:0,originPoint:0}),lr=()=>({x:sh(),y:sh()}),ih=()=>({min:0,max:0}),ve=()=>({x:ih(),y:ih()}),lj=new WeakMap;function Jo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Rs(e){return typeof e=="string"||Array.isArray(e)}const Jc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ed=["initial",...Jc];function ea(e){return Jo(e.animate)||ed.some(t=>Rs(e[t]))}function ox(e){return!!(ea(e)||e.variants)}function uj(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,vt(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,vt(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ku={current:null},ax={current:!1},cj=typeof window<"u";function dj(){if(ax.current=!0,!!cj)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ku.current=e.matches;e.addEventListener("change",t),t()}else ku.current=!1}const oh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let jo={};function lx(e){jo=e}function fj(){return jo}class hj{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=Hc,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=Fe.now();this.renderScheduledAt this.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(ax.current||dj(),this.shouldReduceMotion=ku.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(),ft(this.notifyUpdate),ft(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&&B0.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:u,ease:c,duration:d}=n.accelerate,f=new F0({element:this.current,name:t,keyframes:a,times:u,ease:c,duration:Je(d)}),h=o(f);this.valueSubscriptions.set(t,()=>{h(),f.cancel()});return}const r=Rr.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&X.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 jo){const n=jo[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
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=vt(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"&&(i0(r)||a0(r))?r=parseFloat(r):!aj(r)&&bt.test(n)&&(r=Z0(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=Xc(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 Lc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Tr.render(this.render)}}class ux extends hj{constructor(){super(...arguments),this.KeyframeResolver=FS}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 Sn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function cx({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function mj({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function pj(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 Ba(e){return e===void 0||e===1}function bu({scale:e,scaleX:t,scaleY:n}){return!Ba(e)||!Ba(t)||!Ba(n)}function Cn(e){return bu(e)||dx(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function dx(e){return ah(e.x)||ah(e.y)}function ah(e){return e&&e!=="0%"}function Po(e,t,n){const r=e-n,s=t*r;return n+s}function lh(e,t,n,r,s){return s!==void 0&&(e=Po(e,s,r)),Po(e,n,r)+t}function Su(e,t=0,n=1,r,s){e.min=lh(e.min,t,n,r,s),e.max=lh(e.max,t,n,r,s)}function fx(e,{x:t,y:n}){Su(e.x,t.translate,t.scale,t.originPoint),Su(e.y,n.translate,n.scale,n.originPoint)}const uh=.999999999999,ch=1.0000000000001;function gj(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 uh&&(t.x=1),t.yuh&&(t.y=1)}function Nt(e,t){e.min+=t,e.max+=t}function dh(e,t,n,r,s=.5){const i=te(e.min,e.max,s);Su(e,t,n,i,r)}function fh(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Bi(e,t,n){const r=n??e;dh(e.x,fh(t.x,r.x),t.scaleX,t.scale,t.originX),dh(e.y,fh(t.y,r.y),t.scaleY,t.scale,t.originY)}function hx(e,t){return cx(pj(e.getBoundingClientRect(),t))}function xj(e,t,n){const r=hx(e,n),{scroll:s}=t;return s&&(Nt(r.x,s.offset.x),Nt(r.y,s.offset.y)),r}const yj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},vj=Dr.length;function wj(e,t,n){let r="",s=!0;for(let o=0;o {if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=hh(e,t.target.x),r=hh(e,t.target.y);return`${n}% ${r}%`}},kj={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=bt.parse(e);if(s.length>5)return r;const i=bt.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=te(a,u,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}},ju={borderRadius:{...Ur,applyTo:[...qc]},borderTopLeftRadius:Ur,borderTopRightRadius:Ur,borderBottomLeftRadius:Ur,borderBottomRightRadius:Ur,boxShadow:kj};function px(e,{layout:t,layoutId:n}){return Rr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ju[e]||e==="opacity")}function nd(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])||px(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(i[a]=r[a]);return i}function bj(e){return window.getComputedStyle(e)}class Sj extends ux{constructor(){super(...arguments),this.type="html",this.renderInstance=mx}readValueFromInstance(t,n){var r;if(Rr.has(n))return(r=this.projection)!=null&&r.isProjecting?lu(n):$2(t,n);{const s=bj(t),i=(k0(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return hx(t,n)}build(t,n,r){td(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return nd(t,n,r)}}const jj={offset:"stroke-dashoffset",array:"stroke-dasharray"},Pj={offset:"strokeDashoffset",array:"strokeDasharray"};function Tj(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?jj:Pj;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const Cj=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function gx(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:o=0,...a},u,c,d){if(td(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 Cj)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&&Tj(f,s,i,o,!1)}const xx=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"]),yx=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Ej(e,t,n,r){mx(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(xx.has(s)?s:Yc(s),t.attrs[s])}function vx(e,t,n){const r=nd(e,t,n);for(const s in e)if(be(e[s])||be(t[s])){const i=Dr.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}class Nj extends ux{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ve}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Rr.has(n)){const r=Q0(n);return r&&r.default||0}return n=xx.has(n)?n:Yc(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return vx(t,n,r)}build(t,n,r){gx(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){Ej(t,n,r,s)}mount(t){this.isSVGTag=yx(t.tagName),super.mount(t)}}const _j=ed.length;function wx(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?wx(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<_j;n++){const r=ed[n],s=e.props[r];(Rs(s)||s===!1)&&(t[r]=s)}return t}function kx(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r Promise.all(t.map(({animation:n,options:r})=>ES(e,n,r)))}function Dj(e){let t=Aj(e),n=mh(),r=!0,s=!1;const i=c=>(d,f)=>{var p;const h=In(e,f,c==="exit"?(p=e.presenceContext)==null?void 0:p.custom:void 0);if(h){const{transition:w,transitionEnd:v,...k}=h;d={...d,...k,...v}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,f=wx(e.parent)||{},h=[],p=new Set;let w={},v=1/0;for(let g=0;g v&&P,N=!1;const O=Array.isArray(b)?b:[b];let H=O.reduce(i(m),{});T===!1&&(H={});const{prevResolvedValues:oe={}}=y,_={...oe,...H},R=E=>{L=!0,p.has(E)&&(N=!0,p.delete(E)),y.needsAnimating[E]=!0;const C=e.getValue(E);C&&(C.liveStyle=!1)};for(const E in _){const C=H[E],A=oe[E];if(w.hasOwnProperty(E))continue;let F=!1;mu(C)&&mu(A)?F=!kx(C,A)||j:F=C!==A,F?C!=null?R(E):p.add(E):C!==void 0&&p.has(E)?R(E):y.protectedKeys[E]=!0}y.prevProp=b,y.prevResolvedValues=H,y.isActive&&(w={...w,...H}),(r||s)&&e.blockInitialAnimation&&(L=!1);const B=S&&j;L&&(!B||N)&&h.push(...O.map(E=>{const C={type:m};if(typeof E=="string"&&(r||s)&&!B&&e.manuallyAnimateOnMount&&e.parent){const{parent:A}=e,F=In(A,E);if(A.enteringChildren&&F){const{delayChildren:q}=F.transition||{};C.delay=$0(A.enteringChildren,e,q)}}return{animation:E,options:C}}))}if(p.size){const g={};if(typeof d.initial!="boolean"){const m=In(e,Array.isArray(d.initial)?d.initial[0]:d.initial);m&&m.transition&&(g.transition=m.transition)}p.forEach(m=>{const y=e.getBaseTarget(m),b=e.getValue(m);b&&(b.liveStyle=!0),g[m]=y??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 w;return(w=p.animationState)==null?void 0:w.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=mh(),s=!0}}}function Rj(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!kx(t,e):!1}function jn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mh(){return{animate:jn(!0),whileInView:jn(),whileHover:jn(),whileTap:jn(),whileDrag:jn(),whileFocus:jn(),exit:jn()}}function Pu(e,t){e.min=t.min,e.max=t.max}function mt(e,t){Pu(e.x,t.x),Pu(e.y,t.y)}function ph(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const bx=1e-4,Ij=1-bx,Vj=1+bx,Sx=.01,Oj=0-Sx,Fj=0+Sx;function ze(e){return e.max-e.min}function zj(e,t,n){return Math.abs(e-t)<=n}function gh(e,t,n,r=.5){e.origin=r,e.originPoint=te(t.min,t.max,e.origin),e.scale=ze(n)/ze(t),e.translate=te(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Ij&&e.scale<=Vj||isNaN(e.scale))&&(e.scale=1),(e.translate>=Oj&&e.translate<=Fj||isNaN(e.translate))&&(e.translate=0)}function ds(e,t,n,r){gh(e.x,t.x,n.x,r?r.originX:void 0),gh(e.y,t.y,n.y,r?r.originY:void 0)}function xh(e,t,n,r=0){const s=r?te(n.min,n.max,r):n.min;e.min=s+t.min,e.max=e.min+ze(t)}function Bj(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=0){const s=r?te(n.min,n.max,r):n.min;e.min=t.min-s,e.max=e.min+ze(t)}function To(e,t,n,r){yh(e.x,t.x,n.x,r==null?void 0:r.x),yh(e.y,t.y,n.y,r==null?void 0:r.y)}function vh(e,t,n,r,s){return e-=t,e=Po(e,1/n,r),s!==void 0&&(e=Po(e,1/s,r)),e}function $j(e,t=0,n=1,r=.5,s,i=e,o=e){if(At.test(t)&&(t=parseFloat(t),t=te(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=te(i.min,i.max,r);e===i&&(a-=t),e.min=vh(e.min,t,n,a,s),e.max=vh(e.max,t,n,a,s)}function wh(e,t,[n,r,s],i,o){$j(e,t[n],t[r],t[s],t.scale,i,o)}const Hj=["x","scaleX","originX"],Wj=["y","scaleY","originY"];function kh(e,t,n,r){wh(e.x,t,Hj,n?n.x:void 0,r?r.x:void 0),wh(e.y,t,Wj,n?n.y:void 0,r?r.y:void 0)}function bh(e){return e.translate===0&&e.scale===1}function jx(e){return bh(e.x)&&bh(e.y)}function Sh(e,t){return e.min===t.min&&e.max===t.max}function Uj(e,t){return Sh(e.x,t.x)&&Sh(e.y,t.y)}function jh(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Px(e,t){return jh(e.x,t.x)&&jh(e.y,t.y)}function Ph(e){return ze(e.x)/ze(e.y)}function Th(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Et(e){return[e("x"),e("y")]}function Gj(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:w,skewY:v}=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) `),w&&(r+=`skewX(${w}deg) `),v&&(r+=`skewY(${v}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 Kj=qc.length,Ch=e=>typeof e=="string"?parseFloat(e):e,Eh=e=>typeof e=="number"||V.test(e);function Xj(e,t,n,r,s,i){s?(e.opacity=te(0,n.opacity??1,Yj(r)),e.opacityExit=te(t.opacity??1,0,qj(r))):i&&(e.opacity=te(t.opacity??1,n.opacity??1,r));for(let o=0;o r t?1:n(jr(e,t,r))}function Qj(e,t,n){const r=be(e)?e:vt(e);return r.start(Kc("",r,t,n)),r.animation}function Is(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}const Zj=(e,t)=>e.depth-t.depth;class Jj{constructor(){this.children=[],this.isDirty=!1}add(t){_c(this.children,t),this.isDirty=!0}remove(t){vo(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Zj),this.isDirty=!1,this.children.forEach(t)}}function eP(e,t){const n=Fe.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(ft(r),e(i-t))};return X.setup(r,!0),()=>ft(r)}function $i(e){return be(e)?e.get():e}class tP{constructor(){this.members=[]}add(t){_c(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&&(vo(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(vo(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 Hi={hasAnimatedSinceResize:!0,hasEverUpdated:!1},$a=["","X","Y","Z"],nP=1e3;let rP=0;function Ha(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Cx(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=K0(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",X,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Cx(r)}function Ex({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=rP++,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(oP),this.nodes.forEach(fP),this.nodes.forEach(hP),this.nodes.forEach(aP)},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.root.updateBlockedByResize=!1;X.read(()=>{f=window.innerWidth}),e(o,()=>{const p=window.innerWidth;p!==f&&(f=p,this.root.updateBlockedByResize=!0,d&&d(),d=eP(h,250),Hi.hasAnimatedSinceResize&&(Hi.hasAnimatedSinceResize=!1,this.nodes.forEach(Lh)))})}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 w=this.options.transition||c.getDefaultTransition()||yP,{onLayoutAnimationStart:v,onLayoutAnimationComplete:k}=c.getProps(),g=!this.targetLayout||!Px(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 y={...Gc(w,"layout"),onPlay:v,onComplete:k};(c.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(d,m,y.path)}else f||Lh(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(),ft(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(mP),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&&Cx(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d {this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ze(this.snapshot.measuredBox.x)&&!ze(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 {const S=T/1e3,j=P==null?void 0:P(S);j?(h.x.translate=j.x,h.x.scale=te(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=te(o.y.scale,1,S),h.y.origin=o.y.origin,h.y.originPoint=o.y.originPoint):(Ah(h.x,o.x,S),Ah(h.y,o.y,S)),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(To(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),gP(this.relativeTarget,this.relativeTargetOrigin,p,S),b&&Uj(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=ve()),mt(b,this.relativeTarget)),k&&(this.animationValues=f,Xj(f,d,this.latestValues,S,y,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&&(ft(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=X.update(()=>{Hi.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=vt(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(nP),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&&Nx(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||ve();const f=ze(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+f;const h=ze(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+h}mt(a,u),Bi(a,d),ds(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new tP),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&&Ha("z",o,c,this.animationValues);for(let d=0;d<$a.length;d++)Ha(`rotate${$a[d]}`,o,c,this.animationValues),Ha(`skew${$a[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=$i(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=$i(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Cn(this.latestValues)&&(o.transform=u?u({},""):"none",this.hasProjected=!1);return}o.visibility="";const d=c.animationValues||c.latestValues;this.applyTransformsToTarget();let f=Gj(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 w in ju){if(d[w]===void 0)continue;const{correct:v,applyTo:k,isCSSVariable:g}=ju[w],m=f==="none"?d[w]:v(d[w],c);if(k){const y=k.length;for(let b=0;b {var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(_h),this.root.sharedNodes.clear()}}}function sP(e){e.updateLayout()}function iP(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")Et(f=>{const h=o?t.measuredBox[f]:t.layoutBox[f],p=ze(h);h.min=r[f].min,h.max=h.min+p});else if(i==="x"||i==="y"){const f=i==="x"?"y":"x";Pu(o?t.measuredBox[f]:t.layoutBox[f],r[f])}else Nx(i,t.layoutBox,r)&&Et(f=>{const h=o?t.measuredBox[f]:t.layoutBox[f],p=ze(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=lr();ds(a,r,t.layoutBox);const u=lr();o?ds(u,e.applyTransform(s,!0),t.measuredBox):ds(u,r,t.layoutBox);const c=!jx(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 w=e.options.layoutAnchor||void 0,v=ve();To(v,t.layoutBox,h.layoutBox,w);const k=ve();To(k,r,p.layoutBox,w),Px(v,k)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=k,e.relativeTargetOrigin=v,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 oP(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 aP(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function lP(e){e.clearSnapshot()}function _h(e){e.clearMeasurements()}function uP(e){e.isLayoutDirty=!0,e.updateLayout()}function Mh(e){e.isLayoutDirty=!1}function cP(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function dP(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Lh(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function fP(e){e.resolveTargetDelta()}function hP(e){e.calcProjection()}function mP(e){e.resetSkewAndRotation()}function pP(e){e.removeLeadSnapshot()}function Ah(e,t,n){e.translate=te(t.translate,0,n),e.scale=te(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Dh(e,t,n,r){e.min=te(t.min,n.min,r),e.max=te(t.max,n.max,r)}function gP(e,t,n,r){Dh(e.x,t.x,n.x,r),Dh(e.y,t.y,n.y,r)}function xP(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const yP={duration:.45,ease:[.4,0,.1,1]},Rh=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ih=Rh("applewebkit/")&&!Rh("chrome/")?Math.round:Ye;function Vh(e){e.min=Ih(e.min),e.max=Ih(e.max)}function vP(e){Vh(e.x),Vh(e.y)}function Nx(e,t,n){return e==="position"||e==="preserve-aspect"&&!zj(Ph(t),Ph(n),.2)}function wP(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const kP=Ex({attachResizeListener:(e,t)=>Is(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}),Wa={current:void 0},_x=Ex({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Wa.current){const e=new kP({});e.mount(window),e.setOptions({layoutScroll:!0}),Wa.current=e}return Wa.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Xs=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Oh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function bP(...e){return t=>{let n=!1;const r=e.map(s=>{const i=Oh(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s {const{width:p,height:w,top:v,left:k,right:g,bottom:m,direction:y}=u.current;if(t||i===!1||!a.current||!p||!w)return;const b=y==="rtl",P=n==="left"?b?`right: ${g}`:`left: ${k}`:b?`left: ${k}`:`right: ${g}`,T=r==="bottom"?`bottom: ${m}`:`top: ${v}`;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; @@ -298,6 +298,6 @@ Error generating stack: `+i.message+` ${P}px !important; ${T}px !important; } - `),()=>{var L;(L=a.current)==null||L.removeAttribute("data-motion-pop-id"),S.contains(j)&&S.removeChild(j)}},[t]),l.jsx(jP,{isPresent:t,childRef:a,sizeRef:u,pop:i,children:i===!1?e:x.cloneElement(e,{ref:f})})}const TP=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o,anchorX:a,anchorY:u,root:c})=>{const d=yn(CP),f=x.useId(),h=x.useRef(n),p=x.useRef(r);Ws(()=>{h.current=n,p.current=r});let w=!0,v=x.useMemo(()=>(w=!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&&w&&(v={...v}),x.useMemo(()=>{d.forEach((k,g)=>d.set(g,!1))},[n]),x.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),e=l.jsx(PP,{pop:o==="popLayout",isPresent:n,anchorX:a,anchorY:u,root:c,children:e}),l.jsx(Qo.Provider,{value:v,children:e})};function CP(){return new Map}function Mx(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 yi=e=>e.key||"";function Fh(e){const t=[];return x.Children.forEach(e,n=>{x.isValidElement(n)&&t.push(n)}),t}const EP=({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]=Mx(o),h=x.useMemo(()=>Fh(e),[e]),p=o&&!d?[]:h.map(yi),w=x.useRef(!0),v=x.useRef(h),k=yn(()=>new Map),g=x.useRef(new Set),[m,y]=x.useState(h),[b,P]=x.useState(h);Ws(()=>{w.current=!1,v.current=h;for(let S=0;S {const L=yi(S),N=o&&!d?!1:h===b||p.includes(L),O=()=>{if(g.current.has(L))return;if(k.has(L))g.current.add(L),k.set(L,!0);else return;let H=!0;k.forEach(oe=>{oe||(H=!1)}),H&&(j==null||j(),P(v.current),o&&(f==null||f()),r&&r())};return l.jsx(TP,{isPresent:N,initial:!w.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:i,root:c,onExitComplete:N?void 0:O,anchorX:a,anchorY:u,children:S},L)})})},Lx=x.createContext({strict:!1}),zh={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 Bh=!1;function NP(){if(Bh)return;const e={};for(const t in zh)e[t]={isEnabled:n=>zh[t].some(r=>!!n[r])};lx(e),Bh=!0}function Ax(){return NP(),fj()}function _P(e){const t=Ax();for(const n in e)t[n]={...t[n],...e[n]};lx(t)}const MP=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 Co(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||MP.has(e)}let Dx=e=>!Co(e);function LP(e){typeof e=="function"&&(Dx=t=>t.startsWith("on")?!Co(t):e(t))}try{LP(require("@emotion/is-prop-valid").default)}catch{}function AP(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||be(e[s])||(Dx(s)||n===!0&&Co(s)||!t&&!Co(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const ta=x.createContext({});function DP(e,t){if(ea(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Rs(n)?n:void 0,animate:Rs(r)?r:void 0}}return e.inherit!==!1?t:{}}function RP(e){const{initial:t,animate:n}=DP(e,x.useContext(ta));return x.useMemo(()=>({initial:t,animate:n}),[$h(t),$h(n)])}function $h(e){return Array.isArray(e)?e.join(" "):e}const rd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Rx(e,t,n){for(const r in t)!be(t[r])&&!px(r,n)&&(e[r]=t[r])}function IP({transformTemplate:e},t){return x.useMemo(()=>{const n=rd();return td(n,t,e),Object.assign({},n.vars,n.style)},[t])}function VP(e,t){const n=e.style||{},r={};return Rx(r,n,e),Object.assign(r,IP(e,t)),r}function OP(e,t){const n={},r=VP(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 Ix=()=>({...rd(),attrs:{}});function FP(e,t,n,r){const s=x.useMemo(()=>{const i=Ix();return gx(i,t,yx(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Rx(i,e.style,e),s.style={...i,...s.style}}return s}const zP=["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 sd(e){return typeof e!="string"||e.includes("-")?!1:!!(zP.indexOf(e)>-1||/[A-Z]/u.test(e))}function BP(e,t,n,{latestValues:r},s,i=!1,o){const u=(o??sd(e)?FP:OP)(t,r,s,e),c=AP(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 $P({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,s){return{latestValues:HP(n,r,s,e),renderState:t()}}function HP(e,t,n,r){const s={},i=r(e,{});for(const h in i)s[h]=$i(i[h]);let{initial:o,animate:a}=e;const u=ea(e),c=ox(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"&&!Jo(f)){const h=Array.isArray(f)?f:[f];for(let p=0;p (t,n)=>{const r=x.useContext(ta),s=x.useContext(Qo),i=()=>$P(e,t,r,s);return n?i():yn(i)},WP=Vx({scrapeMotionValuesFromProps:nd,createRenderState:rd}),UP=Vx({scrapeMotionValuesFromProps:vx,createRenderState:Ix}),GP=Symbol.for("motionComponentSymbol");function KP(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 Ox=x.createContext({});function Kn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function XP(e,t,n,r,s,i){var y,b;const{visualElement:o}=x.useContext(ta),a=x.useContext(Lx),u=x.useContext(Qo),c=x.useContext(Xs),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 w=h.current,v=x.useContext(Ox);w&&!w.projection&&s&&(w.type==="html"||w.type==="svg")&&YP(h.current,n,s,v);const k=x.useRef(!1);x.useInsertionEffect(()=>{w&&k.current&&w.update(n,u)});const g=n[G0],m=x.useRef(!!g&&typeof window<"u"&&!((y=window.MotionHandoffIsComplete)!=null&&y.call(window,g))&&((b=window.MotionHasOptimisedAnimation)==null?void 0:b.call(window,g)));return Ws(()=>{p.current=!0,w&&(k.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),w.scheduleRenderMicrotask(),m.current&&w.animationState&&w.animationState.animateChanges())}),x.useEffect(()=>{w&&(!m.current&&w.animationState&&w.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var P;(P=window.MotionHandoffMarkAsComplete)==null||P.call(window,g)}),m.current=!1),w.enteringChildren=void 0)}),w}function YP(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:Fx(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&Kn(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:f,layoutScroll:u,layoutRoot:c,layoutAnchor:d})}function Fx(e){if(e)return e.options.allowProjection!==!1?e.projection:Fx(e.parent)}function Ua(e,{forwardMotionProps:t=!1,type:n}={},r,s){r&&_P(r);const i=n?n==="svg":sd(e),o=i?UP:WP;function a(c,d){let f;const h={...x.useContext(Xs),...c,layoutId:qP(c)},{isStatic:p}=h,w=RP(c),v=o(c,p);if(!p&&typeof window<"u"){QP();const k=ZP(h);f=k.MeasureLayout,w.visualElement=XP(e,v,h,s,k.ProjectionNode,i)}return l.jsxs(ta.Provider,{value:w,children:[f&&w.visualElement?l.jsx(f,{visualElement:w.visualElement,...h}):null,BP(e,c,KP(v,w.visualElement,d),v,p,t,i)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=x.forwardRef(a);return u[GP]=e,u}function qP({layoutId:e}){const t=x.useContext(Nc).id;return t&&e!==void 0?t+"-"+e:e}function QP(e,t){x.useContext(Lx).strict}function ZP(e){const t=Ax(),{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 JP(e,t){if(typeof Proxy>"u")return Ua;const n=new Map,r=(i,o)=>Ua(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,Ua(o,void 0,e,t)),n.get(o))})}const eT=(e,t)=>t.isSVG??sd(e)?new Nj(t):new Sj(t,{allowProjection:e!==x.Fragment});class tT extends Sn{constructor(t){super(t),t.animationState||(t.animationState=Dj(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Jo(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 nT=0;class rT extends Sn{constructor(){super(...arguments),this.id=nT++,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=In(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 sT={animation:{Feature:tT},exit:{Feature:rT}};function Ys(e){return{point:{x:e.pageX,y:e.pageY}}}const iT=e=>t=>Qc(t)&&e(t,Ys(t));function fs(e,t,n,r){return Is(e,t,iT(n),r)}const zx=({current:e})=>e?e.ownerDocument.defaultView:null,Hh=(e,t)=>Math.abs(e-t);function oT(e,t){const n=Hh(e.x,t.x),r=Hh(e.y,t.y);return Math.sqrt(n**2+r**2)}const Wh=new Set(["auto","scroll"]);class Bx{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=w=>{this.handleScroll(w.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=vi(this.lastRawMoveEventInfo,this.transformPagePoint));const w=Ga(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,k=oT(w.offset,{x:0,y:0})>=this.distanceThreshold;if(!v&&!k)return;const{point:g}=w,{timestamp:m}=je;this.history.push({...g,timestamp:m});const{onStart:y,onMove:b}=this.handlers;v||(y&&y(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,w)},this.handlePointerMove=(w,v)=>{this.lastMoveEvent=w,this.lastRawMoveEventInfo=v,this.lastMoveEventInfo=vi(v,this.transformPagePoint),X.update(this.updatePoint,!0)},this.handlePointerUp=(w,v)=>{this.end();const{onEnd:k,onSessionEnd:g,resumeAnimation:m}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Ga(w.type==="pointercancel"?this.lastMoveEventInfo:vi(v,this.transformPagePoint),this.history);this.startEvent&&k&&k(w,y),g&&g(w,y)},!Qc(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=s||window;const u=Ys(t),c=vi(u,this.transformPagePoint),{point:d}=c,{timestamp:f}=je;this.history=[{...d,timestamp:f}];const{onSessionStart:h}=n;h&&h(t,Ga(c,this.history));const p={passive:!0,capture:!0};this.removeListeners=Us(fs(this.contextWindow,"pointermove",this.handlePointerMove,p),fs(this.contextWindow,"pointerup",this.handlePointerUp,p),fs(this.contextWindow,"pointercancel",this.handlePointerUp,p)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(Wh.has(r.overflowX)||Wh.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),X.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ft(this.updatePoint)}}function vi(e,t){return t?{point:t(e.point)}:e}function Uh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ga({point:e},t){return{point:e,delta:Uh(e,$x(t)),offset:Uh(e,aT(t)),velocity:lT(t,.1)}}function aT(e){return e[0]}function $x(e){return e[e.length-1]}function lT(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=$x(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>Je(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&s.timestamp-r.timestamp>Je(t)*2&&(r=e[1]);const i=lt(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 uT(e,{min:t,max:n},r){return t!==void 0&&e n&&(e=r?te(n,e,r.max):Math.min(e,n)),e}function Gh(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 cT(e,{top:t,left:n,bottom:r,right:s}){return{x:Gh(e.x,n,s),y:Gh(e.y,t,r)}}function Kh(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min r?n=jr(t.min,t.max-r,e.min):r>s&&(n=jr(e.min,e.max-s,t.min)),jt(0,1,n)}function hT(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 Tu=.35;function mT(e=Tu){return e===!1?e=0:e===!0&&(e=Tu),{x:Xh(e,"left","right"),y:Xh(e,"top","bottom")}}function Xh(e,t,n){return{min:Yh(e,t),max:Yh(e,n)}}function Yh(e,t){return typeof e=="number"?e:e[t]||0}const pT=new WeakMap;class gT{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(Ys(f).point),this.stopAnimation()},o=(f,h)=>{const{drag:p,dragPropagation:w,onDragStart:v}=this.getProps();if(p&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=zS(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),Et(g=>{let m=this.getAxisMotionValue(g).get()||0;if(At.test(m)){const{projection:y}=this.visualElement;if(y&&y.layout){const b=y.layout.layoutBox[g];b&&(m=ze(b)*(parseFloat(m)/100))}}this.originPoint[g]=m}),v&&X.update(()=>v(f,h),!1,!0),pu(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:w,onDirectionLock:v,onDrag:k}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:g}=h;if(w&&this.currentDirection===null){this.currentDirection=yT(g),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",h.point,g),this.updateAxis("y",h.point,g),this.visualElement.render(),k&&X.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 Bx(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:zx(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&&X.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||!wi(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=uT(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&&Kn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=cT(r.layoutBox,t):this.constraints=!1,this.elastic=mT(n),s!==this.constraints&&!Kn(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Et(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=hT(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Kn(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=xj(r,s.root,this.visualElement.getTransformPagePoint());let o=dT(s.layout.layoutBox,i);if(n){const a=n(mj(o));this.hasMutatedConstraints=!!a,a&&(o=cx(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),u=this.constraints||{},c=Et(d=>{if(!wi(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,w={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,w)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return pu(this.visualElement,t),r.start(Kc(t,r,0,n,this.visualElement,!1))}stopAnimation(){Et(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){Et(n=>{const{drag:r}=this.getProps();if(!wi(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]-te(o,a,.5)+u)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Kn(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Et(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const u=a.get();s[o]=fT({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(),Et(o=>{if(!wi(o,t,null))return;const a=this.getAxisMotionValue(o),{min:u,max:c}=this.constraints[o];a.set(te(u,c,s[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;pT.set(this.visualElement,this);const t=this.visualElement.current,n=fs(t,"pointerdown",c=>{const{drag:d,dragListener:f=!0}=this.getProps(),h=c.target,p=h!==t&&GS(h);d&&f&&!p&&this.start(c)});let r;const s=()=>{const{dragConstraints:c}=this.getProps();Kn(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),r||(r=xT(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),X.read(s);const a=Is(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Et(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=Tu,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function qh(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function xT(e,t,n){const r=wu(e,qh(n)),s=wu(t,qh(n));return()=>{r(),s()}}function wi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function yT(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class vT extends Sn{constructor(t){super(t),this.removeGroupControls=Ye,this.removeListeners=Ye,this.controls=new gT(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ye}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 Ka=e=>(t,n)=>{e&&X.update(()=>e(t,n),!1,!0)};class wT extends Sn{constructor(){super(...arguments),this.removePointerDownListener=Ye}onPointerDown(t){this.session=new Bx(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zx(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Ka(t),onStart:Ka(n),onMove:Ka(r),onEnd:(i,o)=>{delete this.session,s&&X.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=fs(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 Xa=!1;class kT 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),Xa&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Hi.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}),Xa=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||X.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(),Tr.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;Xa=!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 Hx(e){const[t,n]=Mx(),r=x.useContext(Nc);return l.jsx(kT,{...e,layoutGroup:r,switchLayoutGroup:x.useContext(Ox),isPresent:t,safeToRemove:n})}const bT={pan:{Feature:wT},drag:{Feature:vT,ProjectionNode:_x,MeasureLayout:Hx}};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&&X.postRender(()=>i(t,Ys(t)))}class ST extends Sn{mount(){const{current:t}=this.node;t&&(this.unmount=$S(t,(n,r)=>(Qh(this.node,r,"Start"),s=>Qh(this.node,s,"End"))))}unmount(){}}class jT extends Sn{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=Us(Is(this.node.current,"focus",()=>this.onFocus()),Is(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Zh(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&&X.postRender(()=>i(t,Ys(t)))}class PT extends Sn{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=XS(t,(s,i)=>(Zh(this.node,i,"Start"),(o,{success:a})=>Zh(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const Cu=new WeakMap,Ya=new WeakMap,TT=e=>{const t=Cu.get(e.target);t&&t(e)},CT=e=>{e.forEach(TT)};function ET({root:e,...t}){const n=e||document;Ya.has(n)||Ya.set(n,{});const r=Ya.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(CT,{root:e,...t})),r[s]}function NT(e,t,n){const r=ET(t);return Cu.set(e,n),r.observe(e),()=>{Cu.delete(e),r.unobserve(e)}}const _T={some:0,all:1};class MT extends Sn{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:_T[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=NT(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(LT(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function LT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const AT={inView:{Feature:MT},tap:{Feature:PT},focus:{Feature:jT},hover:{Feature:ST}},DT={layout:{ProjectionNode:_x,MeasureLayout:Hx}},RT={...sT,...AT,...bT,...DT},Bt=JP(RT,eT);function Eo(e){return typeof window>"u"?!1:e?R0():Uc()}const IT=50,Jh=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),VT=()=>({time:0,x:Jh(),y:Jh()}),OT={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function em(e,t,n,r){const s=n[t],{length:i,position:o}=OT[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=jr(0,s.scrollLength,s.current);const c=r-u;s.velocity=c>IT?0:Ac(s.current-a,c)}function FT(e,t,n){em(e,"x",t,n),em(e,"y",t,n),t.time=n}function zT(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(cs(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 Eu={start:0,center:.5,end:1};function tm(e,t,n=0){let r=0;if(e in Eu&&(e=Eu[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 BT=[0,0];function $T(e,t,n,r){let s=Array.isArray(e)?e:BT,i=0,o=0;return typeof e=="number"?s=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?s=e.split(" "):s=[e,Eu[e]?e:"0"]),i=tm(s[0],n,r),o=tm(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]]},HT={x:0,y:0};function WT(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function UT(e,t,n){const{offset:r=Qr.All}=n,{target:s=e,axis:i="y"}=n,o=i==="y"?"height":"width",a=s!==e?zT(s,e):HT,u=s===e?{width:e.scrollWidth,height:e.scrollHeight}:WT(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 {GT(e,r.target,n),FT(e,n,s),(r.offset||r.target)&&UT(e,n,r)},notify:()=>t(n)}}const Gn=new WeakMap,nm=new WeakMap,qa=new WeakMap,rm=new WeakMap,ki=new WeakMap,sm=e=>e===document.scrollingElement?window:e;function Wx(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return Ye;let s=qa.get(t);s||(s=new Set,qa.set(t,s));const i=VT(),o=KT(t,e,i,r);if(s.add(o),!Gn.has(t)){const u=()=>{for(const h of s)h.measure(je.timestamp);X.preUpdate(c)},c=()=>{for(const h of s)h.notify()},d=()=>X.read(u);Gn.set(t,d);const f=sm(t);window.addEventListener("resize",d),t!==document.documentElement&&nm.set(t,wu(t,d)),f.addEventListener("scroll",d),d()}if(n&&!ki.has(t)){const u=Gn.get(t),c={width:t.scrollWidth,height:t.scrollHeight};rm.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=X.read(d,!0);ki.set(t,f)}const a=Gn.get(t);return X.read(a,!1,!0),()=>{var f;ft(a);const u=qa.get(t);if(!u||(u.delete(o),u.size))return;const c=Gn.get(t);Gn.delete(t),c&&(sm(t).removeEventListener("scroll",c),(f=nm.get(t))==null||f(),window.removeEventListener("resize",c));const d=ki.get(t);d&&(ft(d),ki.delete(t)),rm.delete(t)}}const XT=[[Qr.Enter,"entry"],[Qr.Exit,"exit"],[Qr.Any,"cover"],[Qr.All,"contain"]],im={start:0,end:1};function YT(e){const t=e.trim().split(/\s+/);if(t.length!==2)return;const n=im[t[0]],r=im[t[1]];if(!(n===void 0||r===void 0))return[n,r]}function qT(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=YT(n);if(!r)return;t.push(r)}else return;return t}function QT(e,t){const n=qT(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 id(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(const[t,n]of XT)if(QT(e,t))return{rangeStart:`${n} 0%`,rangeEnd:`${n} 100%`}}const om=new Map;function am(e){const t={value:0},n=Wx(r=>{t.value=r[e.axis].progress*100},e);return{currentTime:t,cancel:n}}function Ux({source:e,container:t,...n}){const{axis:r}=n;e&&(t=e);let s=om.get(t);s||(s=new Map,om.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&&Eo(n.target)?id(n.offset)?o[a]=new ViewTimeline({subject:n.target,axis:r}):o[a]=am({container:t,...n}):Eo()?o[a]=new ScrollTimeline({source:t,axis:r}):o[a]=am({container:t,...n})),o[a]}function ZT(e,t){const n=Ux(t),r=t.target?id(t.offset):void 0,s=t.target?Eo(t.target)&&!!r:Eo();return e.attachTimeline({timeline:s?n:void 0,...r&&s&&{rangeStart:r.rangeStart,rangeEnd:r.rangeEnd},observe:i=>(i.pause(),ix(o=>{i.time=i.iterationDuration*o},n))})}function JT(e){return e&&(e.target||e.offset)}function eC(e){return e.length===2}function tC(e,t){return eC(e)||JT(t)?Wx(n=>{e(n[t.axis].progress,n)},t):ix(e,Ux(t))}function Gx(e,{axis:t="y",container:n=document.scrollingElement,...r}={}){if(!n)return Ye;const s={axis:t,container:n,...r};return typeof e=="function"?tC(e,s):ZT(e,s)}const nC=()=>({scrollX:vt(0),scrollY:vt(0),scrollXProgress:vt(0),scrollYProgress:vt(0)}),ur=e=>e?!e.current:!1;function lm(e,t,n,r){return{factory:s=>{let i;const o=()=>{if(ur(n)||ur(r)){Tr.read(o);return}i=Gx(s,{...t,axis:e,container:(n==null?void 0:n.current)||void 0,target:(r==null?void 0:r.current)||void 0})};return Tr.read(o),()=>{ex(o),i==null||i()}},times:[0,1],keyframes:[0,1],ease:s=>s,duration:1}}function rC(e,t){return typeof window>"u"?!1:e?R0()&&!!id(t):Uc()}function Kx({container:e,target:t,...n}={}){const r=yn(nC);rC(t,n.offset)&&(r.scrollXProgress.accelerate=lm("x",n,e,t),r.scrollYProgress.accelerate=lm("y",n,e,t));const s=x.useRef(null),i=x.useRef(!1),o=x.useCallback(()=>(s.current=Gx((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 Ws(()=>{if(i.current=!1,ur(e)||ur(t)){i.current=!0;return}else return o()},[o]),x.useEffect(()=>{if(!i.current)return;let a;const u=()=>{const c=ur(e),d=ur(t);!c&&!d&&(a=o())};return Tr.read(u),()=>{ex(u),a==null||a()}},[o]),r}function Xx(e){const t=yn(()=>vt(e)),{isStatic:n}=x.useContext(Xs);if(n){const[,r]=x.useState(e);x.useEffect(()=>t.on("change",r),[])}return t}function Yx(e,t){const n=Xx(t()),r=()=>n.set(t());return r(),Ws(()=>{const s=()=>X.preRender(r,!1,!0),i=e.map(o=>o.on("change",s));return()=>{i.forEach(o=>o()),ft(r)}}),n}function sC(e){us.current=[],e();const t=Yx(us.current,e);return us.current=void 0,t}function Jt(e,t,n,r){if(typeof e=="function")return sC(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!="function")return iC(e,t,n,r);const o=typeof t=="function"?t:sj(t,n,r),a=Array.isArray(e)?um(e,o):um([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 um(e,t){const n=yn(()=>[]);return Yx(e,()=>{n.length=0;const r=e.length;for(let s=0;s Object.keys(n)),i=yn(()=>({}));for(const o of s)i[o]=Jt(e,t,n[o],r);return i}function oC(e,t={}){const{isStatic:n}=x.useContext(Xs),r=()=>be(e)?e.get():e;if(n)return Jt(r);const s=Xx(r());return x.useInsertionEffect(()=>ij(s,e,t),[s,JSON.stringify(t)]),s}function aC(e,t={}){return oC(e,{type:"spring",...t})}function lC(){const{scrollYProgress:e}=Kx(),t=aC(e,{stiffness:200,damping:30,restDelta:.001});return l.jsx(Bt.div,{style:{scaleX:t},className:"fixed left-0 top-0 z-40 h-0.5 w-full origin-left bg-brand-500"})}const uC=()=>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 qs({message:e,fullScreen:t=!1}){const{t:n}=Ce(),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(uC,{})}),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(Wk,{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 cm=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 Qs({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:cm}):l.jsx("div",{className:"bg-amber-500 px-4 py-2 text-center text-xs font-semibold text-white",children:cm})}function cC({onClose:e}){const{consent:t,saveCustom:n}=Lr(),[r,s]=x.useState(t.external),[i,o]=x.useState(t.analytics),{t:a}=Ce();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 dC(){const{decided:e,settingsOpen:t,acceptAll:n,rejectNonEssential:r,openSettings:s,closeSettings:i}=Lr(),{t:o}=Ce();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(cC,{onClose:i})]})}function fC(){const{consent:e}=Lr(),{ga_measurement_id:t}=Pt(),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 qx=x.createContext({global:{enabled:!1,message:null},services:{enabled:!1,message:null},vehicles:{enabled:!1,message:null},bypass:!1}),hC=qx.Provider;function na(){return x.useContext(qx)}const od=x.createContext({}),mC=od.Provider;function $n(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 Re(e){const t=x.useContext(od);return $n(t,e)}function ad(){return x.useContext(od)}const pC=[{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'}],ld=x.createContext({fonts:[],refresh:()=>{}}),Qx=ld.Provider;function Zx(){return x.useContext(ld).fonts}function xN(){return x.useContext(ld).refresh}function yN(){const e=Zx();return[...pC,...e.map(t=>({label:t.name,value:t.font_family}))]}function gC(e){const t=/\.([a-z0-9]+)$/i.exec(e||"");return t?t[1].toLowerCase():""}const xC={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype"};function Jx(){const e=Zx();if(e.length===0)return null;const t=e.map(n=>{const r=xC[gC(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 yC=150,vC=300,wC=80,kC=5e3;function bC(){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 SC({enabled:e,children:t}){const n=rt(),[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)},yC),w=()=>{s(!0),o(!1)},v=()=>{c=!0,clearTimeout(p),clearTimeout(f),clearTimeout(T),b.disconnect(),P()},k=()=>{if(c)return;v();const j=d?vC-(Date.now()-d):0;j>0?setTimeout(w,j):w()},g=()=>{clearTimeout(f),f=setTimeout(()=>{h.size===0&&Kw()===0&&k()},wC)},m=j=>{if(h.has(j)||j.complete||j.getBoundingClientRect().top>=window.innerHeight)return;j.loading==="lazy"&&(j.loading="eager"),h.add(j);const S=()=>{h.delete(j),j.removeEventListener("load",S),j.removeEventListener("error",S),g()};j.addEventListener("load",S),j.addEventListener("error",S)},y=j=>{var S;j.nodeType===1&&(j.tagName==="IMG"&&m(j),(S=j.querySelectorAll)==null||S.call(j,"img").forEach(m))},b=new MutationObserver(j=>{j.forEach(S=>S.addedNodes.forEach(y)),g()});b.observe(u,{childList:!0,subtree:!0});const P=Xw(g),T=setTimeout(k,kC);return u.querySelectorAll("img").forEach(m),g(),()=>{c||v()}},[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(bC,{})]})}const jC={global:{enabled:!1,message:null},services:{enabled:!1,message:null},vehicles:{enabled:!1,message:null}},PC={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}},TC={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:PC,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},CC=["/impressum","/datenschutz","/agb"];function EC(){const[e,t]=x.useState(null),[n,r]=x.useState(TC),[s,i]=x.useState({}),[o,a]=x.useState([]),{loading:u,hasPermission:c}=Hs(),d=rt();if(x.useEffect(()=>{Z.get("/maintenance").then(t).catch(()=>t(jC)),Z.get("/site-settings").then(r).catch(()=>{}),Z.get("/text-styles").then(i).catch(()=>{}),Z.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=CC.includes(d.pathname);return e.global.enabled&&!f&&!h?l.jsx(Af,{children:l.jsx(qs,{message:e.global.message,fullScreen:!0})}):l.jsx(Af,{children:l.jsx(hC,{value:{...e,bypass:f},children:l.jsx(Pb,{value:n,children:l.jsx(mC,{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(Jx,{}),f&&e.global.enabled&&l.jsx(Qs,{}),l.jsx(lC,{}),l.jsx(Mb,{}),l.jsx("main",{className:"flex-1",children:l.jsx(SC,{enabled:d.pathname!=="/"&&!!n.page_loader_enabled,children:l.jsx(Ec,{})})}),l.jsx(Ob,{}),l.jsx(dC,{}),l.jsx(fC,{})]})})})})})})}const dm="/assets/logo-BNfZDkmN.png",NC={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"},_C=({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 MC(){const{logout:e,user:t,hasPermission:n}=Hs(),r=Yo(),[s,i]=x.useState(!1),[o,a]=x.useState(0),[u,c]=x.useState([]);x.useEffect(()=>{n("contact.manage")&&Z.get("/contact").then(v=>a(v.filter(k=>k.status==="new").length)).catch(()=>{})},[]);const d=()=>Z.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(v=>({...v,links:v.links.filter(k=>!k.permission||n(k.permission))})).filter(v=>v.links.length>0),h=async()=>{await e(),r("/admin/login")},p=({isActive:v})=>`flex items-center justify-between gap-2 rounded-md px-3 py-2 text-sm font-medium transition ${v?"bg-brand-500 text-white":"text-neutral-600 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,w=({onNavigate:v})=>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(Rw,{to:m.to,end:m.end,className:p,onClick:v,children:[l.jsxs("span",{className:"flex items-center gap-2.5",children:[l.jsx(_C,{path:NC[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(Jx,{}),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:dm,alt:"HifiPlanet",className:"h-7 w-auto dark:hidden"}),l.jsx("img",{src:tu,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(w,{})]}),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(v=>!v),"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:dm,alt:"HifiPlanet",className:"h-6 w-auto dark:hidden"}),l.jsx("img",{src:tu,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(Jg,{}),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(w,{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(Ec,{})})})]})]})})}function LC(){const{user:e,loading:t}=Hs();return t?l.jsx("div",{className:"flex min-h-screen items-center justify-center text-neutral-500",children:"Lädt…"}):e?l.jsx(Ec,{}):l.jsx(Ls,{to:"/admin/login",replace:!0})}function De({permission:e,children:t}){const{hasPermission:n}=Hs();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 AC(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 st({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&&AC(n)},[e,t,n])}const DC=[.16,1,.3,1],fm={up:{y:40},left:{x:-56},right:{x:56}};function RC(e){return{hidden:{opacity:0,scale:.96,filter:"blur(8px)",...fm[e]||fm.up},visible:{opacity:1,scale:1,x:0,y:0,filter:"blur(0px)"}}}const IC={hidden:{x:"-130%"},visible:{x:"230%",transition:{duration:1.1,ease:"easeInOut",delay:.4}}};function Se({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(Bt.div,{className:n,style:{position:"relative",overflow:"hidden",...i},initial:"hidden",whileInView:"visible",viewport:{once:!0,amount:.25,margin:"-100px"},variants:RC(t),transition:{duration:.75,ease:DC,delay:o},children:[e,s&&l.jsx(Bt.div,{"aria-hidden":!0,variants:IC,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 VC({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(Bt.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(EP,{initial:!1,children:i&&l.jsx(Bt.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 ey({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 OC=70;function FC({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 y=(m-r.lastTime)/1e3;r.lastTime=m,!r.dragging&&!r.hovering&&!o&&(r.pos=u(r.pos+OC*y),a()),r.rafId=requestAnimationFrame(f)};r.rafId=requestAnimationFrame(f);const h=t.current,p=()=>{r.hovering=!0},w=()=>{r.hovering=!1},v=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",w),h.addEventListener("pointerdown",v),h.addEventListener("pointermove",k),h.addEventListener("pointerup",g),h.addEventListener("pointercancel",g),()=>{cancelAnimationFrame(r.rafId),d.disconnect(),h.removeEventListener("pointerenter",p),h.removeEventListener("pointerleave",w),h.removeEventListener("pointerdown",v),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(ey,{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 No(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 zC="/assets/gallery-dash2-CEVCErVK.webp",ty="/assets/gallery-amp-purple-CESAKuOf.webp",BC="/assets/gallery-speaker-CUXQZ49Q.webp",ny="/assets/gallery-subs-COSd4seJ.webp",ry="/assets/gallery-dash-Cg-7v9qo.webp",$C="/assets/hero-trunk-Dp4_JHDh.webp",HC="/assets/gallery-rear-8cIXPC7T.webp",WC="/assets/hero-highlight-Co4f1Kj5.webp",UC="/assets/youtube-hintergrund-BqSbCrLQ.mp4",bi={left:"text-left",center:"text-center",right:"text-right"},GC={left:"",center:"mx-auto",right:"ml-auto"},KC={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 hm({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 XC=[{src:ny,width:900,height:600},{src:ty,width:900,height:600},{src:BC,width:900,height:1200},{src:ry,width:900,height:814},{src:HC,width:900,height:1200},{src:$C,width:1920,height:1280}];function YC(){const{hero_image_path:e}=Pt(),t=e||zC,{t:n,language:r}=Ce(),s=n("home.stats"),i=n("home.galleryAlts"),o=XC.map((D,$)=>({...D,alt:i[$]})),[a,u]=x.useState([]),[c,d]=x.useState({}),[f,h]=x.useState([]),p=D=>{const $=c[D]||KC;return{eyebrow:$[`eyebrow_${r}`]||"",title:$[`title_${r}`]||"",bodyHtml:$[`body_html_${r}`]||"",align:$.text_align||"center",alignX:$.text_align_x,alignY:$.text_align_y,buttonLabel:$[`button_label_${r}`]||"",buttonUrl:$.button_url||"",fontFamily:$.font_family||void 0}},w=Re("home_sections.hero.eyebrow"),v=Re("home_sections.hero.title"),k=Re("home_sections.youtube.eyebrow"),g=Re("home_sections.youtube.title"),m=Re("home_sections.youtube.button_label"),y=Re("home_sections.craft.eyebrow"),b=Re("home_sections.craft.title"),P=Re("home_sections.advice.eyebrow"),T=Re("home_sections.advice.title"),j=Re("home_sections.insights.eyebrow"),S=Re("home_sections.insights.title"),L=Re("home_sections.more.eyebrow"),N=Re("home_sections.more.title"),O=Re("home_sections.more.button_label");x.useEffect(()=>{Z.get("/home-sections").then(d).catch(()=>{})},[]),x.useEffect(()=>{Z.get("/partners").then(h).catch(()=>{})},[]);const[H,oe]=x.useState(null),_=H?H.reviews.filter(D=>D.review_text).map(D=>({name:D.author_name,text:D.review_text,rating:D.rating,photo:D.profile_photo_url})):n("home.testimonials");x.useEffect(()=>{Z.get("/faqs").then(D=>{u(D.map($=>({question:r==="de"?$.question_de:$.question_en,answer:r==="de"?$.answer_de:$.answer_en})))}).catch(()=>{})},[r]),x.useEffect(()=>{Z.get("/google-reviews").then(D=>{D.rating!=null&&D.reviews.some($=>$.review_text)&&oe(D)}).catch(()=>{})},[]),st({title:n("home.metaTitle"),description:n("home.metaDescription"),path:"/"}),x.useEffect(()=>{if(a.length===0)return;const D=document.createElement("script");return D.type="application/ld+json",D.text=JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:a.map($=>({"@type":"Question",name:$.question,acceptedAnswer:{"@type":"Answer",text:$.answer}}))}),document.head.appendChild(D),()=>document.head.removeChild(D)},[a]);const R=x.useRef(null);x.useEffect(()=>{const D=R.current;if(!D)return;const $=new IntersectionObserver(([fe])=>{fe.isIntersecting?(D.getAttribute("src")||(D.src=UC),D.play().catch(()=>{})):D.paused||D.pause()},{rootMargin:"300px 0px"});return $.observe(D),()=>$.disconnect()},[]);const B=x.useRef(null),{scrollYProgress:W}=Kx({target:B,offset:["start start","end start"]}),E=Jt(W,[0,1],["-6%","6%"]),C=Jt(W,[0,1],["0%","60%"]),A=Jt(W,[0,.8],[1,0]),F=Jt(W,[.5,1],[0,1]),q=Jt(F,D=>D>.05?"auto":"none"),Me=Jt(W,[.5,1],[16,0]);return l.jsxs("div",{children:[l.jsx(Bt.div,{style:{opacity:F,pointerEvents:q,y:Me},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:B,className:"relative -mt-[89px] h-dvh min-h-[560px] overflow-hidden sm:-mt-[97px]",children:[l.jsx(Bt.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(Bt.div,{style:{y:C,opacity:A},className:"absolute inset-0",children:l.jsx("div",{className:"absolute w-full max-w-2xl px-4 text-center sm:px-6",style:{...No(p("hero").alignX,p("hero").alignY,{x:50,y:50}),fontFamily:p("hero").fontFamily},children:l.jsxs(Bt.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:w,children:p("hero").eyebrow}),l.jsx("h1",{className:"text-3xl font-extrabold tracking-tight text-white sm:text-5xl",style:v,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((D,$)=>l.jsxs(Se,{index:$,children:[l.jsx("p",{className:"text-2xl font-extrabold text-brand-400 sm:text-3xl",children:D.value}),l.jsx("p",{className:"text-sm text-neutral-400",children:D.label})]},D.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((D,$)=>l.jsx(Se,{index:$,children:D.logo_path?l.jsx("img",{src:D.logo_path,alt:D.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:D.name})},D.id))})]})}),l.jsxs("section",{className:"relative min-h-[70vh] overflow-hidden sm:min-h-[85vh]",children:[l.jsx("video",{ref:R,loop:!0,muted:!0,playsInline:!0,preload:"none",poster:ry,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:{...No(p("youtube").alignX,p("youtube").alignY,{x:50,y:50}),fontFamily:p("youtube").fontFamily},children:l.jsxs(Se,{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(hm,{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(Se,{direction:"left",shine:!0,className:"rounded-xl shadow-lg",children:l.jsx("img",{src:ny,alt:n("home.craftImageAlt"),width:900,height:600,className:"w-full rounded-xl object-cover",style:{maxHeight:380}})}),l.jsxs(Se,{direction:"right",index:1,className:bi[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:y,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(Se,{direction:"left",className:`order-2 md:order-1 ${bi[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:T,children:p("advice").title}),l.jsx("div",{className:"legal-content text-neutral-600 dark:text-neutral-300",dangerouslySetInnerHTML:{__html:p("advice").bodyHtml}})]}),l.jsx(Se,{direction:"right",index:1,shine:!0,className:"order-1 md:order-2 rounded-xl shadow-lg",children:l.jsx("img",{src:ty,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(Se,{className:`mb-8 ${bi[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:j,children:p("insights").eyebrow}),l.jsx("h2",{className:"text-2xl font-bold text-neutral-900 dark:text-white",style:S,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((D,$)=>l.jsx(Se,{index:$%3,shine:!0,className:"aspect-square overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:l.jsx("img",{src:D.src,alt:D.alt,width:D.width,height:D.height,loading:"lazy",className:"h-full w-full object-cover transition duration-300 hover:scale-105"})},D.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(Se,{className:"mb-10 text-center",children:[l.jsx("div",{className:"mb-2 flex items-center justify-center gap-2",children:l.jsx(ey,{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(Se,{children:l.jsx(FC,{testimonials:_})})]})}),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(Se,{direction:"left",shine:!0,className:"overflow-hidden rounded-xl shadow-lg",children:l.jsx("img",{src:WC,alt:n("home.moreImageAlt"),width:1600,height:905,className:"h-full w-full object-cover",loading:"lazy"})}),l.jsxs(Se,{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 ${bi[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:L,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 ${GC[p("more").align]}`,dangerouslySetInnerHTML:{__html:p("more").bodyHtml}}),l.jsx(hm,{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(Se,{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(Se,{index:1,children:l.jsx(VC,{items:a})})]})})]})}function qC(){const[e,t]=x.useState([]),[n,r]=x.useState(""),s=na(),{t:i}=Ce(),o=ad(),{vehicle_tile_width:a,vehicle_tile_height:u}=Pt(),c={width:`${a}px`,height:`${u}px`};return st({title:i("vehicleSelect.metaTitle"),description:i("vehicleSelect.metaDescription"),path:"/fahrzeuge"}),x.useEffect(()=>{s.vehicles.enabled&&!s.bypass||Z.get("/brands").then(t).catch(d=>r(d.message))},[s.vehicles.enabled,s.bypass]),s.vehicles.enabled&&!s.bypass?l.jsx(qs,{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(Qs,{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:$n(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:$n(o,`brands.${d.id}.name`),children:d.name})},d.id))})]})}function QC(){const{brandSlug:e}=$s(),[t,n]=x.useState(null),[r,s]=x.useState(""),i=na(),{t:o}=Ce(),a=ad(),u=Re(t?`brands.${t.brand.id}.name`:""),{vehicle_tile_width:c,vehicle_tile_height:d}=Pt(),f={width:`${c}px`,height:`${d}px`};return x.useEffect(()=>{i.vehicles.enabled&&!i.bypass||Z.get(`/brands/${e}/models`).then(n).catch(h=>s(h.message))},[e,i.vehicles.enabled,i.bypass]),st({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(qs,{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(Qs,{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:$n(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:$n(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 ZC({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 mm="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==",JC="/assets/base-BKOm0Bib.webp",eE="/assets/clear-DZZMSrMX.webp",tE="/assets/drive-BE2W1yna.webp",nE="/assets/prime-BTVNe2Gb.webp",rE="/assets/elite_r-BRvz_pyr.webp",sE="/assets/apex-CFy2qup8.webp",iE="/assets/statement-pTO-wTPx.webp",oE="/assets/limitless-DDs0S_PU.webp",aE=(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)]},Za=(e,t,n)=>`rgb(${aE(e,t,n).join(", ")})`,pm=e=>e.map(([t,n,r,s,i,o])=>({bgTop:Za(t,n,r),border:Za(t,n,r+8),accent:Za(s,i,o),img:null})),gm={graphite:[{accent:"#b6b6b6",border:"#2a2a2a",bgTop:"#1c1c1c",img:JC},{accent:"#d3d3d3",border:"#2e2e2e",bgTop:"#212121",img:eE},{accent:"#8fb8bd",border:"#26383b",bgTop:"#16282b",img:tE},{accent:"#6fbf73",border:"#1f3a24",bgTop:"#122916",img:nE},{accent:"#63d34f",border:"#204a1c",bgTop:"#123312",img:rE},{accent:"#8bea3c",border:"#2b5518",bgTop:"#173a0f",img:sE},{accent:"#d9a83c",border:"#4a3a16",bgTop:"#33270d",img:iE},{accent:"#f2c14e",border:"#5a4718",bgTop:"#3d2f0c",img:oE}],"deep-blue":pm([[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":pm([[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]])},lE="#f2f2f2",uE="#8a8a8a",cE="#c4c4c4",xm=5,dE={recommended:{Icon:db,className:"bg-brand-500 text-white"},popular:{Icon:Ik,className:"bg-amber-400 text-neutral-950"},tip:{Icon:zk,className:"bg-sky-500 text-white"},coming_soon:{Icon:Yg,className:"bg-white text-neutral-900"},custom:{Icon:null,className:"bg-brand-500 text-white"}};function fE({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-xm,f=u?s:s.slice(0,xm),h=ad(),p=$n(h,`packages.${e.id}.description`),w=$n(h,`packages.${e.id}.price_text`),{package_card_height:v}=Pt(),k=dE[e.badge],g=r!=="grid",m=e.badge==="custom"?e.badge_text:e.badge&&a(`modelPage.badges.${e.badge}`),y=t.img?null:{backgroundColor:t.accent,WebkitMaskImage:`url(${mm})`,maskImage:`url(${mm})`,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%)`,...g?{gridRow:"span 4",gridTemplateRows:"subgrid",rowGap:0}:{minHeight:`${v}px`}},className:r==="strip"?"relative grid snap-start overflow-hidden rounded-[18px] border shadow-xl shadow-neutral-900/20 dark:shadow-black/40":r==="coverflow"?"relative grid snap-center overflow-hidden rounded-[18px] border shadow-xl shadow-neutral-900/20 will-change-transform dark:shadow-black/40":"relative flex flex-col overflow-hidden rounded-[18px] border shadow-xl shadow-neutral-900/20 dark:shadow-black/40",children:[t.img?l.jsx("img",{src:t.img,alt:"","aria-hidden":"true",className:"pointer-events-none absolute inset-0 h-full w-full object-cover"}):l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"pointer-events-none absolute inset-0",style:{...y,opacity:.2+n*.45,filter:"blur(18px)"},"aria-hidden":"true"}),l.jsx("div",{className:"pointer-events-none absolute inset-0",style:{...y,opacity:.55+n*.45},"aria-hidden":"true"})]}),k&&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 ${k.className}`,children:[k.Icon&&l.jsx(k.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",gridRow:1},children:[l.jsx("div",{style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"30px",letterSpacing:"3px",fontWeight:600,color:t.accent,textTransform:"uppercase",lineHeight:1.1},children: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:{gridRow:2,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:cE,...b.fromDescription?p:null},children:[l.jsx(ck,{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(ZC,{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(yk,{className:"h-3.5 w-3.5"}):l.jsx(fk,{className:"h-3.5 w-3.5"})]})]}),l.jsx("div",{className:"relative z-10 flex-1",style:{gridRow:3}}),l.jsx("div",{className:"relative z-10",style:{gridRow:4,padding:"20px 20px 28px",background:"linear-gradient(180deg, rgba(8,8,8,0) 0%, rgba(8,8,8,0.85) 45%, rgba(8,8,8,0.95) 100%)"},children:l.jsxs("div",{className:"text-center",children:[!e.price_text&&l.jsx("div",{style:{fontSize:"13px",color:uE},children:a("modelPage.totalPrice")}),l.jsx("div",{style:{marginTop:"4px",fontFamily:"'Barlow Condensed', sans-serif",fontSize:"30px",fontWeight:600,letterSpacing:"1px",color:lE,...e.price_text?w: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(wk,{className:"h-4 w-4 text-red-500","aria-hidden":"true"}),a("modelPage.videoLink")]})})]})})]})}function hE(){const{brandSlug:e,modelSlug:t}=$s(),[n,r]=x.useState(null),[s,i]=x.useState(""),o=na(),{t:a,language:u}=Ce(),{package_card_theme:c,package_card_layout:d,package_wheel_hint_interval:f,package_card_width:h,package_card_height:p}=Pt(),w=gm[c]||gm.graphite,v=["grid","strip","coverflow"].includes(d)?d:"strip",k=Math.max(2,Number(f)||8)*1e3,g=x.useRef(null),m=x.useRef(null),y=x.useRef(null),[b,P]=x.useState(!1),T=_=>new Intl.NumberFormat(u==="de"?"de-DE":"en-US",{style:"currency",currency:"EUR"}).format(_);x.useEffect(()=>{o.vehicles.enabled&&!o.bypass||Z.get(`/models/${e}/${t}/packages`).then(r).catch(_=>i(_.message))},[e,t,o.vehicles.enabled,o.bypass]),x.useEffect(()=>{const _=g.current;if(v!=="coverflow"||!_)return;let R=0;const B=()=>{R=0;const C=_.scrollLeft+_.clientWidth/2;for(const A of _.children){const F=A.offsetLeft+A.offsetWidth/2,q=Math.max(-1,Math.min(1,(F-C)/(A.offsetWidth*1.4))),Me=Math.abs(q);A.style.transform=`rotateY(${(-q*35).toFixed(2)}deg) scale(${(1-Me*.13).toFixed(3)}) translateZ(${(-Me*60).toFixed(1)}px)`,A.style.zIndex=String(100-Math.round(Me*50))}},W=()=>{R||(R=requestAnimationFrame(B))};B(),_.addEventListener("scroll",W,{passive:!0});const E=new ResizeObserver(W);return E.observe(_),()=>{_.removeEventListener("scroll",W),E.disconnect(),cancelAnimationFrame(R)}},[v,n]),x.useEffect(()=>{const _=g.current;if(v==="grid"||!_)return;const R=window.matchMedia("(pointer: coarse)").matches;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let W=[],E=0;const C=()=>{const F=Math.min(_.clientWidth*.4,160);W.push(setTimeout(()=>_.scrollTo({left:F,behavior:"smooth"}),500)),W.push(setTimeout(()=>_.scrollTo({left:0,behavior:"smooth"}),1250)),R||(W.push(setTimeout(()=>P(!0),450)),W.push(setTimeout(()=>P(!1),1700)))},A=new IntersectionObserver(([F])=>{F.isIntersecting&&(A.disconnect(),C(),E=setInterval(()=>{_.scrollLeft<=1&&C()},k))},{threshold:.35});return A.observe(_),()=>{A.disconnect(),clearInterval(E),W.forEach(clearTimeout)}},[v,n,k]),x.useEffect(()=>{const _=g.current;if(v==="grid"||!_)return;let R=0,B=0,W=!1,E=0,C=0;const A=()=>[..._.children].map(D=>D.offsetLeft+D.offsetWidth/2),F=(D,$)=>{let fe=0,Q=1/0;return D.forEach((ye,Rt)=>{const Zs=Math.abs(ye-$);Zs {W=!1;const D=A();if(!D.length)return;const $=_.scrollLeft+_.clientWidth/2,fe=F(D,$);let Q=fe;fe===E&&Math.abs(C)>4&&(Q=C>0?Math.min(E+1,D.length-1):Math.max(E-1,0));const ye=_.scrollWidth-_.clientWidth,Rt=Math.max(0,Math.min(D[Q]-_.clientWidth/2,ye));_.scrollTo({left:Rt,behavior:"smooth"}),clearTimeout(B),B=setTimeout(()=>{_.style.scrollSnapType=""},450)},Me=D=>{if(Math.abs(D.deltaX)>Math.abs(D.deltaY))return;const $=_.scrollWidth-_.clientWidth;if($<=1)return;const fe=_.scrollLeft<=1,Q=_.scrollLeft>=$-1;D.deltaY<0&&fe||D.deltaY>0&&Q||(D.preventDefault(),W||(W=!0,C=0,E=F(A(),_.scrollLeft+_.clientWidth/2)),C+=D.deltaY,_.style.scrollSnapType="none",_.scrollLeft+=D.deltaY,clearTimeout(R),R=setTimeout(q,150))};return _.addEventListener("wheel",Me,{passive:!1}),()=>{_.removeEventListener("wheel",Me),clearTimeout(R),clearTimeout(B)}},[v,n]),x.useEffect(()=>{const _=g.current,R=m.current,B=y.current;if(v==="grid"||!_||!R||!B)return;let W=0;const E=()=>{W=0;const Q=_.scrollWidth-_.clientWidth;if(Q<=1){R.style.opacity="0",R.style.pointerEvents="none";return}R.style.opacity="1",R.style.pointerEvents="auto";const ye=R.clientWidth,Rt=Math.max(32,_.clientWidth/_.scrollWidth*ye);B.style.width=`${Rt}px`,B.style.transform=`translateX(${(_.scrollLeft/Q*(ye-Rt)).toFixed(1)}px)`},C=()=>{W||(W=requestAnimationFrame(E))};E(),_.addEventListener("scroll",C,{passive:!0});const A=new ResizeObserver(C);A.observe(_);let F=!1,q=0;const Me=Q=>{const ye=R.getBoundingClientRect(),Rt=B.clientWidth,Zs=Math.min(Math.max(Q-ye.left-q,0),ye.width-Rt);_.scrollLeft=Zs/(ye.width-Rt)*(_.scrollWidth-_.clientWidth)},D=Q=>{F=!0,R.setPointerCapture(Q.pointerId),_.style.scrollSnapType="none";const ye=B.getBoundingClientRect();q=Q.clientX>=ye.left&&Q.clientX<=ye.right?Q.clientX-ye.left:B.clientWidth/2,Q.clientX>=ye.left&&Q.clientX<=ye.right||Me(Q.clientX)},$=Q=>{F&&Me(Q.clientX)},fe=Q=>{var ye;F&&(F=!1,(ye=R.hasPointerCapture)!=null&&ye.call(R,Q.pointerId)&&R.releasePointerCapture(Q.pointerId),_.style.scrollSnapType="")};return R.addEventListener("pointerdown",D),R.addEventListener("pointermove",$),R.addEventListener("pointerup",fe),R.addEventListener("pointercancel",fe),()=>{_.removeEventListener("scroll",C),A.disconnect(),cancelAnimationFrame(W),R.removeEventListener("pointerdown",D),R.removeEventListener("pointermove",$),R.removeEventListener("pointerup",fe),R.removeEventListener("pointercancel",fe)}},[v,n]),st({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 j=Re(n?`car_models.${n.model.id}.name`:"");if(o.vehicles.enabled&&!o.bypass)return l.jsx(qs,{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:L}=n,N=new Map([...L].sort((_,R)=>_.total_price-R.total_price).map((_,R)=>[_.id,R])),O=_=>{const R=_.tier_count??L.length,B=_.tier_rank??N.get(_.id)??0,W=R<=1?0:B/(R-1),E=Math.round(W*(w.length-1));return{tier:w[E],tierT:W}},H=_=>[..._.products.map(R=>({text:R.name_override||R.scraped_name||a("modelPage.productLoading"),fromDescription:!1})),...(_.description||"").split(` -`).map(R=>R.trim()).filter(Boolean).map(R=>({text:R,fromDescription:!0}))],oe=_=>`/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(Qs,{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:j,children:S.name})]}),l.jsxs("h1",{className:`text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl ${L.length?"mb-2":"mb-8"}`,children:[S.brand_name," ",l.jsx("span",{style:j,children:S.name})," – ",a("modelPage.titleSuffix")]}),L.length===0&&l.jsx("p",{className:"pb-12 text-neutral-500 dark:text-neutral-400",children:a("modelPage.empty")})]}),L.length>0&&l.jsx("section",{className:"py-10 sm:py-14",style:{fontFamily:"'Barlow', sans-serif"},children:l.jsxs("div",{className:v==="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:v==="grid"?void 0:g,className:v==="grid"?"grid items-stretch gap-[18px]":"grid select-none gap-x-[18px] overflow-x-auto pb-3 snap-x snap-mandatory [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",style:v==="grid"?{gridTemplateColumns:`repeat(auto-fill, minmax(${h}px, 1fr))`,gridAutoRows:"1fr"}:{gridAutoFlow:"column",gridAutoColumns:`${h}px`,gridTemplateRows:"auto auto 1fr auto",minHeight:`${Number(p)+(v==="coverflow"?22:12)}px`,...v==="coverflow"?{perspective:"1200px",paddingLeft:`calc(50% - ${h/2}px)`,paddingRight:`calc(50% - ${h/2}px)`,paddingTop:"10px"}:null},children:L.map(_=>{const{tier:R,tierT:B}=O(_);return l.jsx(fE,{pkg:_,tier:R,tierT:B,layout:v,bullets:H(_),formatPrice:T,contactUrl:oe,t:a},_.id)})}),v!=="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 ${b?"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(mk,{className:"h-3.5 w-3.5 text-brand-400"}),l.jsx(qk,{className:"h-4 w-4 text-brand-400"}),l.jsx(gk,{className:"h-3.5 w-3.5 text-brand-400"}),l.jsx("span",{children:a("modelPage.wheelHint")})]})}),v!=="grid"&&l.jsx("div",{ref:m,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:y,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 mE(){const[e,t]=x.useState(null),[n,r]=x.useState(""),{t:s}=Ce(),{gallery_card_text_x:i,gallery_card_text_y:o}=Pt();return st({title:s("galleryOverview.metaTitle"),description:s("galleryOverview.metaDescription"),path:"/galerie"}),x.useEffect(()=>{Z.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:No(i,o,{x:0,y:100}),children:a.name})]},a.id))})]})}function pE(){const{brandSlug:e}=$s(),[t,n]=x.useState(null),[r,s]=x.useState(""),{t:i}=Ce(),{gallery_card_text_x:o,gallery_card_text_y:a}=Pt();return x.useEffect(()=>{Z.get(`/gallery-brands/${e}/projects`).then(n).catch(u=>s(u.message))},[e]),st({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:No(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 gE({photos:e,index:t,onClose:n,onNavigate:r}){const{t:s}=Ce();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 Go.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 xE(){const{brandSlug:e,projectSlug:t}=$s(),[n,r]=x.useState(null),[s,i]=x.useState(""),[o,a]=x.useState(null),{t:u}=Ce();x.useEffect(()=>{Z.get(`/gallery-brands/${e}/${t}/photos`).then(r).catch(d=>i(d.message))},[e,t]),st({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(Se,{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(gE,{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 yE={car:Xg,caravan:lk,"car-front":ik,cog:Sk,zap:xb,boxes:rk,"shield-alert":ab,video:pb},vE=x.lazy(()=>ee(()=>import("./iconRegistry-JhPXnl68.js"),__vite__mapDeps([0,1,2])));function wE({name:e,className:t="h-6 w-6",...n}){if(!e)return null;const r=yE[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(vE,{name:e,className:t,...n})})}function kE(){const[e,t]=x.useState([]),n=na(),{t:r}=Ce();return x.useEffect(()=>{Z.get("/services").then(t).catch(()=>t([]))},[]),st({title:r("leistungen.metaTitle"),description:r("leistungen.metaDescription"),path:"/leistungen"}),n.services.enabled&&!n.bypass?l.jsx(qs,{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(Qs,{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(Se,{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(wE,{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 bE({name:e,description:t,className:n="",children:r}){const{consent:s,acceptAll:i,openSettings:o}=Lr();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 sy=e=>(e||"").replace(/[^\d+]/g,""),SE=e=>`https://wa.me/${sy(e).replace(/^0/,"49").replace("+","")}`,Wi={fontFamily:"'Michroma', sans-serif"};function jE({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 PE({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 TE={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 ym({formatted:e,color:t}){const[n,r]=e.split("€");return l.jsxs("span",{style:{...Wi,color:t},children:[n,l.jsx("span",{style:{fontFamily:"'Barlow', sans-serif"},children:"€"}),r]})}function Si({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 CE(){const[e]=Ow(),{phone:t,whatsapp:n,contact_email:r,address_street:s,address_zip:i,address_city:o,business_hours:a}=Pt(),{t:u,language:c}=Ce(),{consent:d}=Lr(),f=[s,[i,o].filter(Boolean).join(" ")].filter(Boolean).join(", "),h=encodeURIComponent(f),p=`https://www.google.com/maps/dir/?api=1&destination=${h}`,w=s0(a,u("footer.closed")),v=C=>new Intl.NumberFormat(c==="de"?"de-DE":"en-US",{style:"currency",currency:"EUR"}).format(C),[k,g]=x.useState({name:"",email:"",phone:"",vin:"",message:""}),[m,y]=x.useState("idle"),[b,P]=x.useState(""),[T,j]=x.useState([]),[S,L]=x.useState([]),N=e.get("packageId"),O=e.get("total")?Number(e.get("total")):null;x.useEffect(()=>{if(!N){j([]);return}Z.get(`/packages/${N}/upgrades`).then(j).catch(()=>j([]))},[N]);const H=C=>{L(A=>A.includes(C)?A.filter(F=>F!==C):[...A,C])},oe=T.filter(C=>S.includes(C.id)).reduce((C,A)=>C+Number(A.price),0);st({title:u("contactPage.metaTitle"),description:u("contactPage.metaDescription"),path:"/kontakt"});const _={brand:e.get("brand")||"",model:e.get("model")||"",package:e.get("package")||""},R=!!(_.brand&&_.model&&_.package),B=C=>g(A=>({...A,[C.target.name]:C.target.value})),W=async C=>{C.preventDefault(),y("sending"),P("");try{await Z.post("/contact",{...k,brand_name:_.brand||null,model_name:_.model||null,package_name:_.package||null,product_name:e.get("product")||null,package_id:N||null,package_product_id:e.get("productId")||null,upgrade_ids:S}),y("sent"),g({name:"",email:"",phone:"",vin:"",message:""})}catch(A){P(A.message),y("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:{...Wi,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:[R&&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(nb,{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:_.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:_.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:_.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(ym,{formatted:v(O),color:"var(--kf-text)"}):"—"})]})]}),T.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:T.map(C=>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:S.includes(C.id),onChange:()=>H(C.id),className:"mt-0.5 h-4 w-4 rounded",style:{accentColor:"var(--kf-accent)"}}),l.jsxs("span",{className:"flex-1",children:[l.jsx("span",{className:"block font-semibold",style:{color:"var(--kf-text2)"},children:C.name}),C.description&&l.jsx("span",{className:"block text-xs",style:{color:"var(--kf-muted)"},children:C.description})]}),l.jsxs("span",{className:"font-semibold",style:{color:"var(--kf-accent2)"},children:["+",v(C.price)]})]},C.id))}),S.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(ym,{formatted:v(O+oe),color:"var(--kf-text)"})]})]}),l.jsx("h2",{className:"mb-8 text-xl",style:{...Wi,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:W,children:[l.jsxs("div",{className:"grid grid-cols-1 gap-6 min-[641px]:grid-cols-2",children:[l.jsx(Si,{icon:hb,label:u("contactPage.nameLabel"),name:"name",required:!0,value:k.name,onChange:B,placeholder:u("contactPage.namePlaceholder")}),l.jsx(Si,{icon:Lf,label:u("contactPage.emailLabel"),name:"email",type:"email",required:!0,value:k.email,onChange:B,placeholder:u("contactPage.emailPlaceholder")}),l.jsx(Si,{icon:yo,label:u("contactPage.phoneLabel"),name:"phone",value:k.phone,onChange:B,placeholder:u("contactPage.phonePlaceholder")}),l.jsx(Si,{icon:Xg,label:u("contactPage.vinLabel"),name:"vin",value:k.vin,onChange:B,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:B,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(ib,{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:{...Wi,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(yo,{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:${sy(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(Lf,{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(qg,{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(jE,{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:SE(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:w.map(C=>l.jsxs("span",{style:{display:"contents"},children:[l.jsx("span",{style:{color:"var(--kf-label)"},children:C.days}),l.jsx("span",{children:C.label})]},C.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(Ck,{className:"h-3.5 w-3.5",style:{color:"var(--kf-accent2)"}})]}),l.jsx(bE,{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(C=>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(PE,{path:TE[C.key],className:"h-[22px] w-[22px]"})}),l.jsxs("div",{children:[l.jsx("div",{className:"text-[15px] font-bold",style:{color:"var(--kf-text)"},children:C.title}),l.jsx("div",{className:"mt-0.5 text-[13px]",style:{color:"var(--kf-muted)"},children:C.sub})]})]},C.key))})]})})}const Nu={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(Nu).flat(),EE=["mp3","wav","flac","m4a","aac","ogg","opus"],ud=e=>{const t=(e||"").lastIndexOf(".");return t===-1?"":e.slice(t+1).toLowerCase()},NE=e=>{const t=ud(e);return Object.keys(Nu).find(n=>Nu[n].includes(t))||"document"},_E=e=>EE.includes(ud(e)),ME=(e,t="de-DE")=>{const n=["B","KB","MB","GB"];let r=Number(e)||0,s=0;for(;r>=1024&&s=2?1:0}).format(r)} ${n[s]}`},LE={audio:Zk,video:Ak,pdf:Mf,image:Mk,archive:Nk,document:Mf},_u="hifi-downloads-password",AE=()=>{try{return localStorage.getItem(_u)||""}catch{return""}},vm=e=>{try{e?localStorage.setItem(_u,e):localStorage.removeItem(_u)}catch{}},wm=e=>Z.get("/downloads",e?{headers:{"X-Download-Password":encodeURIComponent(e)}}:void 0);function DE(){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}=Ce();x.useEffect(()=>{const v=AE();wm(v).then(k=>{k.locked?(v&&vm(""),r(!0)):t(k.items)}).catch(k=>f(k.message))},[]);const w=async v=>{v.preventDefault(),c(!0),a(!1);try{const k=await wm(s);k.locked?a(!0):(vm(s),r(!1),t(k.items))}catch(k){f(k.message)}finally{c(!1)}};return st({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:w,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($k,{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:v=>i(v.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((v,k)=>{const g=LE[NE(v.file_name)];return l.jsx(Se,{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:v.title}),v.description&&l.jsx("p",{className:"mt-1 whitespace-pre-line text-sm text-neutral-600 dark:text-neutral-300",children:v.description}),l.jsxs("p",{className:"mt-1 text-xs text-neutral-400",children:[ud(v.file_name).toUpperCase()," · ",ME(v.file_size,p==="de"?"de-DE":"en-US")]}),_E(v.file_name)&&l.jsx("audio",{controls:!0,preload:"none",src:v.file_path,className:"mt-3 w-full"})]}),l.jsxs("a",{href:v.file_path,download:v.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(Pk,{className:"h-4 w-4","aria-hidden":"true"}),h("downloadsPage.download")]})]})},v.id)})})]})}function RE(){const[e,t]=x.useState(null);return x.useEffect(()=>{Z.get("/legal-pages/impressum").then(t).catch(()=>{})},[]),st({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 IE(){const[e,t]=x.useState(null);return x.useEffect(()=>{Z.get("/legal-pages/datenschutz").then(t).catch(()=>{})},[]),st({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 VE(){const[e,t]=x.useState(null);return x.useEffect(()=>{Z.get("/legal-pages/agb").then(t).catch(()=>{})},[]),st({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 Ja="hifi-chunk-reload",ne=e=>x.lazy(()=>e().then(t=>{try{sessionStorage.removeItem(Ja)}catch{}return t},t=>{let n=!0;try{n=!!sessionStorage.getItem(Ja),sessionStorage.setItem(Ja,"1")}catch{}if(n)throw t;return window.location.reload(),new Promise(()=>{})})),OE=ne(()=>ee(()=>import("./SetupWizard-CIy8uwq3.js"),[])),FE=ne(()=>ee(()=>import("./Login-fTqg8c9V.js"),[])),zE=ne(()=>ee(()=>import("./Dashboard-MUXgIubU.js"),[])),BE=ne(()=>ee(()=>import("./Brands-BRWaC0-0.js"),__vite__mapDeps([3,4,5]))),$E=ne(()=>ee(()=>import("./Models-ByNVJ6A4.js"),__vite__mapDeps([6,4,5]))),HE=ne(()=>ee(()=>import("./GalleryBrands-BWeaOMOt.js"),__vite__mapDeps([7,4]))),WE=ne(()=>ee(()=>import("./GalleryProjects-BkVeoOL7.js"),__vite__mapDeps([8,4]))),UE=ne(()=>ee(()=>import("./GalleryPhotos-D5ygFrO-.js"),[])),GE=ne(()=>ee(()=>import("./Packages-UHWDQQS0.js"),__vite__mapDeps([9,5,2,1]))),KE=ne(()=>ee(()=>import("./Services-Cvi-7FUn.js"),__vite__mapDeps([10,4,0,1,2]))),XE=ne(()=>ee(()=>import("./Faqs-CXPgWyog.js"),[])),YE=ne(()=>ee(()=>import("./Partners-B9LP7D0u.js"),__vite__mapDeps([11,4]))),qE=ne(()=>ee(()=>import("./Downloads-BaGHr_9J.js"),__vite__mapDeps([12,1]))),QE=ne(()=>ee(()=>import("./HomeSections-DYoEpUKZ.js"),__vite__mapDeps([13,14,5]))),ZE=ne(()=>ee(()=>import("./ContactRequests-DwsS4mwd.js"),[])),JE=ne(()=>ee(()=>import("./AccountSettings-UoYnGE7E.js"),[])),eN=ne(()=>ee(()=>import("./AdminUsers-Cg7Jo-CX.js"),[])),tN=ne(()=>ee(()=>import("./PermissionGroups-CvXd24EO.js"),[])),nN=ne(()=>ee(()=>import("./SettingsLayout-BTe6k3fi.js"),[])),rN=ne(()=>ee(()=>import("./WebsiteSettings-CtWVGmWu.js"),__vite__mapDeps([15,4]))),sN=ne(()=>ee(()=>import("./LegalSettings-Cg5eiewo.js"),__vite__mapDeps([16,14]))),iN=ne(()=>ee(()=>import("./UpdateSettings-Dd38UFEB.js"),[])),oN=ne(()=>ee(()=>import("./EmailSettings-D31gdHC7.js"),__vite__mapDeps([17,14]))),aN=ne(()=>ee(()=>import("./DatabaseSettings-BRUer3ba.js"),[])),lN=ne(()=>ee(()=>import("./ExportImportSettings-jLEeHxwa.js"),[])),uN=ne(()=>ee(()=>import("./MaintenanceSettings-CmNVVdwq.js"),[])),cN=ne(()=>ee(()=>import("./ResetSettings-CwfNQWhT.js"),[])),dN=l.jsx("div",{className:"min-h-screen bg-white dark:bg-neutral-950"});function fN(){const{packageId:e}=$s();return l.jsx(Ls,{to:`/admin/packages?paket=${e}`,replace:!0})}function hN(){return l.jsxs(l.Fragment,{children:[l.jsx($w,{}),l.jsx(Uw,{}),l.jsx(qw,{children:l.jsx(x.Suspense,{fallback:dN,children:l.jsxs(Sw,{children:[l.jsx(z,{path:"/setup",element:l.jsx(OE,{})}),l.jsxs(z,{element:l.jsx(EC,{}),children:[l.jsx(z,{path:"/",element:l.jsx(YC,{})}),l.jsx(z,{path:"/fahrzeuge",element:l.jsx(qC,{})}),l.jsx(z,{path:"/fahrzeuge/:brandSlug",element:l.jsx(QC,{})}),l.jsx(z,{path:"/fahrzeuge/:brandSlug/:modelSlug",element:l.jsx(hE,{})}),l.jsx(z,{path:"/galerie",element:l.jsx(mE,{})}),l.jsx(z,{path:"/galerie/:brandSlug",element:l.jsx(pE,{})}),l.jsx(z,{path:"/galerie/:brandSlug/:projectSlug",element:l.jsx(xE,{})}),l.jsx(z,{path:"/leistungen",element:l.jsx(kE,{})}),l.jsx(z,{path:"/kontakt",element:l.jsx(CE,{})}),l.jsx(z,{path:"/downloads",element:l.jsx(DE,{})}),l.jsx(z,{path:"/impressum",element:l.jsx(RE,{})}),l.jsx(z,{path:"/datenschutz",element:l.jsx(IE,{})}),l.jsx(z,{path:"/agb",element:l.jsx(VE,{})})]}),l.jsx(z,{path:"/admin/login",element:l.jsx(FE,{})}),l.jsx(z,{path:"/admin",element:l.jsx(LC,{}),children:l.jsxs(z,{element:l.jsx(MC,{}),children:[l.jsx(z,{index:!0,element:l.jsx(zE,{})}),l.jsx(z,{path:"account",element:l.jsx(JE,{})}),l.jsx(z,{path:"brands",element:l.jsx(De,{permission:"brands.manage",children:l.jsx(BE,{})})}),l.jsx(z,{path:"models",element:l.jsx(De,{permission:"models.manage",children:l.jsx($E,{})})}),l.jsx(z,{path:"gallery-brands",element:l.jsx(De,{permission:"gallery.manage",children:l.jsx(HE,{})})}),l.jsx(z,{path:"gallery-projects",element:l.jsx(De,{permission:"gallery.manage",children:l.jsx(WE,{})})}),l.jsx(z,{path:"gallery-projects/:projectId/photos",element:l.jsx(De,{permission:"gallery.manage",children:l.jsx(UE,{})})}),l.jsx(z,{path:"packages",element:l.jsx(De,{permission:"packages.manage",children:l.jsx(GE,{})})}),l.jsx(z,{path:"packages/:packageId/*",element:l.jsx(fN,{})}),l.jsx(z,{path:"services",element:l.jsx(De,{permission:"services.manage",children:l.jsx(KE,{})})}),l.jsx(z,{path:"faqs",element:l.jsx(De,{permission:"content.manage",children:l.jsx(XE,{})})}),l.jsx(z,{path:"partners",element:l.jsx(De,{permission:"content.manage",children:l.jsx(YE,{})})}),l.jsx(z,{path:"downloads",element:l.jsx(De,{permission:"downloads.manage",children:l.jsx(qE,{})})}),l.jsx(z,{path:"home-sections",element:l.jsx(De,{permission:"content.manage",children:l.jsx(QE,{})})}),l.jsx(z,{path:"contact-requests",element:l.jsx(De,{permission:"contact.manage",children:l.jsx(ZE,{})})}),l.jsx(z,{path:"users",element:l.jsx(De,{permission:"users.manage",children:l.jsx(eN,{})})}),l.jsx(z,{path:"permission-groups",element:l.jsx(De,{permission:"permission_groups.manage",children:l.jsx(tN,{})})}),l.jsxs(z,{path:"settings",element:l.jsx(De,{permission:"settings.manage",children:l.jsx(nN,{})}),children:[l.jsx(z,{index:!0,element:l.jsx(Ls,{to:"website",replace:!0})}),l.jsx(z,{path:"website",element:l.jsx(rN,{})}),l.jsx(z,{path:"legal",element:l.jsx(sN,{})}),l.jsx(z,{path:"email",element:l.jsx(oN,{})}),l.jsx(z,{path:"database",element:l.jsx(aN,{})}),l.jsx(z,{path:"export-import",element:l.jsx(lN,{})}),l.jsx(z,{path:"maintenance",element:l.jsx(uN,{})}),l.jsx(z,{path:"update",element:l.jsx(De,{permission:"system.update",children:l.jsx(iN,{})})}),l.jsx(z,{path:"reset",element:l.jsx(cN,{})})]})]})})]})})})]})}el.createRoot(document.getElementById("root")).render(l.jsx(Lm.StrictMode,{children:l.jsx(Lw,{basename:"/".replace(/\/$/,"")||"/",children:l.jsx(vb,{children:l.jsx(jb,{children:l.jsx(Lb,{children:l.jsx(hN,{})})})})})}));export{qk as $,vN as A,rk as B,wk as C,wE as D,ck as E,mk as F,yk as G,Yg as H,Sk as I,Pk as J,Ck as K,U as L,Nk as M,Ls as N,Ec as O,Mk as P,Ak as Q,Lm as R,Mf as S,Ik as T,Ok as U,zk as V,$k as W,Wk as X,Lf as Y,qg as Z,Xk as _,Z as a,Zk as a0,eb as a1,nb as a2,yo as a3,ib as a4,ab as a5,ub as a6,db as a7,hb as a8,pb as a9,xb as aa,tk as ab,pN as ac,ek as ad,Hs as b,Yo as c,tu as d,$s as e,Go as f,Ow as g,fk as h,gk as i,l as j,ME as k,dm as l,Gw as m,yN as n,No as o,Rw as p,Zx as q,x as r,xN as s,km as t,st as u,mN as v,G as w,Xg as x,ik as y,lk as z}; + `),()=>{var L;(L=a.current)==null||L.removeAttribute("data-motion-pop-id"),j.contains(S)&&j.removeChild(S)}},[t]),l.jsx(jP,{isPresent:t,childRef:a,sizeRef:u,pop:i,children:i===!1?e:x.cloneElement(e,{ref:f})})}const TP=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o,anchorX:a,anchorY:u,root:c})=>{const d=yn(CP),f=x.useId(),h=x.useRef(n),p=x.useRef(r);Ws(()=>{h.current=n,p.current=r});let w=!0,v=x.useMemo(()=>(w=!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&&w&&(v={...v}),x.useMemo(()=>{d.forEach((k,g)=>d.set(g,!1))},[n]),x.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),e=l.jsx(PP,{pop:o==="popLayout",isPresent:n,anchorX:a,anchorY:u,root:c,children:e}),l.jsx(Qo.Provider,{value:v,children:e})};function CP(){return new Map}function Mx(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 yi=e=>e.key||"";function Fh(e){const t=[];return x.Children.forEach(e,n=>{x.isValidElement(n)&&t.push(n)}),t}const EP=({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]=Mx(o),h=x.useMemo(()=>Fh(e),[e]),p=o&&!d?[]:h.map(yi),w=x.useRef(!0),v=x.useRef(h),k=yn(()=>new Map),g=x.useRef(new Set),[m,y]=x.useState(h),[b,P]=x.useState(h);Ws(()=>{w.current=!1,v.current=h;for(let j=0;j {const L=yi(j),N=o&&!d?!1:h===b||p.includes(L),O=()=>{if(g.current.has(L))return;if(k.has(L))g.current.add(L),k.set(L,!0);else return;let H=!0;k.forEach(oe=>{oe||(H=!1)}),H&&(S==null||S(),P(v.current),o&&(f==null||f()),r&&r())};return l.jsx(TP,{isPresent:N,initial:!w.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:i,root:c,onExitComplete:N?void 0:O,anchorX:a,anchorY:u,children:j},L)})})},Lx=x.createContext({strict:!1}),zh={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 Bh=!1;function NP(){if(Bh)return;const e={};for(const t in zh)e[t]={isEnabled:n=>zh[t].some(r=>!!n[r])};lx(e),Bh=!0}function Ax(){return NP(),fj()}function _P(e){const t=Ax();for(const n in e)t[n]={...t[n],...e[n]};lx(t)}const MP=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 Co(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||MP.has(e)}let Dx=e=>!Co(e);function LP(e){typeof e=="function"&&(Dx=t=>t.startsWith("on")?!Co(t):e(t))}try{LP(require("@emotion/is-prop-valid").default)}catch{}function AP(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||be(e[s])||(Dx(s)||n===!0&&Co(s)||!t&&!Co(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const ta=x.createContext({});function DP(e,t){if(ea(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Rs(n)?n:void 0,animate:Rs(r)?r:void 0}}return e.inherit!==!1?t:{}}function RP(e){const{initial:t,animate:n}=DP(e,x.useContext(ta));return x.useMemo(()=>({initial:t,animate:n}),[$h(t),$h(n)])}function $h(e){return Array.isArray(e)?e.join(" "):e}const rd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Rx(e,t,n){for(const r in t)!be(t[r])&&!px(r,n)&&(e[r]=t[r])}function IP({transformTemplate:e},t){return x.useMemo(()=>{const n=rd();return td(n,t,e),Object.assign({},n.vars,n.style)},[t])}function VP(e,t){const n=e.style||{},r={};return Rx(r,n,e),Object.assign(r,IP(e,t)),r}function OP(e,t){const n={},r=VP(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 Ix=()=>({...rd(),attrs:{}});function FP(e,t,n,r){const s=x.useMemo(()=>{const i=Ix();return gx(i,t,yx(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Rx(i,e.style,e),s.style={...i,...s.style}}return s}const zP=["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 sd(e){return typeof e!="string"||e.includes("-")?!1:!!(zP.indexOf(e)>-1||/[A-Z]/u.test(e))}function BP(e,t,n,{latestValues:r},s,i=!1,o){const u=(o??sd(e)?FP:OP)(t,r,s,e),c=AP(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 $P({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,s){return{latestValues:HP(n,r,s,e),renderState:t()}}function HP(e,t,n,r){const s={},i=r(e,{});for(const h in i)s[h]=$i(i[h]);let{initial:o,animate:a}=e;const u=ea(e),c=ox(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"&&!Jo(f)){const h=Array.isArray(f)?f:[f];for(let p=0;p (t,n)=>{const r=x.useContext(ta),s=x.useContext(Qo),i=()=>$P(e,t,r,s);return n?i():yn(i)},WP=Vx({scrapeMotionValuesFromProps:nd,createRenderState:rd}),UP=Vx({scrapeMotionValuesFromProps:vx,createRenderState:Ix}),GP=Symbol.for("motionComponentSymbol");function KP(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 Ox=x.createContext({});function Kn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function XP(e,t,n,r,s,i){var y,b;const{visualElement:o}=x.useContext(ta),a=x.useContext(Lx),u=x.useContext(Qo),c=x.useContext(Xs),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 w=h.current,v=x.useContext(Ox);w&&!w.projection&&s&&(w.type==="html"||w.type==="svg")&&YP(h.current,n,s,v);const k=x.useRef(!1);x.useInsertionEffect(()=>{w&&k.current&&w.update(n,u)});const g=n[G0],m=x.useRef(!!g&&typeof window<"u"&&!((y=window.MotionHandoffIsComplete)!=null&&y.call(window,g))&&((b=window.MotionHasOptimisedAnimation)==null?void 0:b.call(window,g)));return Ws(()=>{p.current=!0,w&&(k.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),w.scheduleRenderMicrotask(),m.current&&w.animationState&&w.animationState.animateChanges())}),x.useEffect(()=>{w&&(!m.current&&w.animationState&&w.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var P;(P=window.MotionHandoffMarkAsComplete)==null||P.call(window,g)}),m.current=!1),w.enteringChildren=void 0)}),w}function YP(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:Fx(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&Kn(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:f,layoutScroll:u,layoutRoot:c,layoutAnchor:d})}function Fx(e){if(e)return e.options.allowProjection!==!1?e.projection:Fx(e.parent)}function Ua(e,{forwardMotionProps:t=!1,type:n}={},r,s){r&&_P(r);const i=n?n==="svg":sd(e),o=i?UP:WP;function a(c,d){let f;const h={...x.useContext(Xs),...c,layoutId:qP(c)},{isStatic:p}=h,w=RP(c),v=o(c,p);if(!p&&typeof window<"u"){QP();const k=ZP(h);f=k.MeasureLayout,w.visualElement=XP(e,v,h,s,k.ProjectionNode,i)}return l.jsxs(ta.Provider,{value:w,children:[f&&w.visualElement?l.jsx(f,{visualElement:w.visualElement,...h}):null,BP(e,c,KP(v,w.visualElement,d),v,p,t,i)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=x.forwardRef(a);return u[GP]=e,u}function qP({layoutId:e}){const t=x.useContext(Nc).id;return t&&e!==void 0?t+"-"+e:e}function QP(e,t){x.useContext(Lx).strict}function ZP(e){const t=Ax(),{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 JP(e,t){if(typeof Proxy>"u")return Ua;const n=new Map,r=(i,o)=>Ua(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,Ua(o,void 0,e,t)),n.get(o))})}const eT=(e,t)=>t.isSVG??sd(e)?new Nj(t):new Sj(t,{allowProjection:e!==x.Fragment});class tT extends Sn{constructor(t){super(t),t.animationState||(t.animationState=Dj(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Jo(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 nT=0;class rT extends Sn{constructor(){super(...arguments),this.id=nT++,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=In(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 sT={animation:{Feature:tT},exit:{Feature:rT}};function Ys(e){return{point:{x:e.pageX,y:e.pageY}}}const iT=e=>t=>Qc(t)&&e(t,Ys(t));function fs(e,t,n,r){return Is(e,t,iT(n),r)}const zx=({current:e})=>e?e.ownerDocument.defaultView:null,Hh=(e,t)=>Math.abs(e-t);function oT(e,t){const n=Hh(e.x,t.x),r=Hh(e.y,t.y);return Math.sqrt(n**2+r**2)}const Wh=new Set(["auto","scroll"]);class Bx{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=w=>{this.handleScroll(w.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=vi(this.lastRawMoveEventInfo,this.transformPagePoint));const w=Ga(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,k=oT(w.offset,{x:0,y:0})>=this.distanceThreshold;if(!v&&!k)return;const{point:g}=w,{timestamp:m}=je;this.history.push({...g,timestamp:m});const{onStart:y,onMove:b}=this.handlers;v||(y&&y(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,w)},this.handlePointerMove=(w,v)=>{this.lastMoveEvent=w,this.lastRawMoveEventInfo=v,this.lastMoveEventInfo=vi(v,this.transformPagePoint),X.update(this.updatePoint,!0)},this.handlePointerUp=(w,v)=>{this.end();const{onEnd:k,onSessionEnd:g,resumeAnimation:m}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Ga(w.type==="pointercancel"?this.lastMoveEventInfo:vi(v,this.transformPagePoint),this.history);this.startEvent&&k&&k(w,y),g&&g(w,y)},!Qc(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=s||window;const u=Ys(t),c=vi(u,this.transformPagePoint),{point:d}=c,{timestamp:f}=je;this.history=[{...d,timestamp:f}];const{onSessionStart:h}=n;h&&h(t,Ga(c,this.history));const p={passive:!0,capture:!0};this.removeListeners=Us(fs(this.contextWindow,"pointermove",this.handlePointerMove,p),fs(this.contextWindow,"pointerup",this.handlePointerUp,p),fs(this.contextWindow,"pointercancel",this.handlePointerUp,p)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(Wh.has(r.overflowX)||Wh.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),X.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ft(this.updatePoint)}}function vi(e,t){return t?{point:t(e.point)}:e}function Uh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ga({point:e},t){return{point:e,delta:Uh(e,$x(t)),offset:Uh(e,aT(t)),velocity:lT(t,.1)}}function aT(e){return e[0]}function $x(e){return e[e.length-1]}function lT(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=$x(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>Je(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&s.timestamp-r.timestamp>Je(t)*2&&(r=e[1]);const i=lt(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 uT(e,{min:t,max:n},r){return t!==void 0&&e n&&(e=r?te(n,e,r.max):Math.min(e,n)),e}function Gh(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 cT(e,{top:t,left:n,bottom:r,right:s}){return{x:Gh(e.x,n,s),y:Gh(e.y,t,r)}}function Kh(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min r?n=jr(t.min,t.max-r,e.min):r>s&&(n=jr(e.min,e.max-s,t.min)),jt(0,1,n)}function hT(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 Tu=.35;function mT(e=Tu){return e===!1?e=0:e===!0&&(e=Tu),{x:Xh(e,"left","right"),y:Xh(e,"top","bottom")}}function Xh(e,t,n){return{min:Yh(e,t),max:Yh(e,n)}}function Yh(e,t){return typeof e=="number"?e:e[t]||0}const pT=new WeakMap;class gT{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(Ys(f).point),this.stopAnimation()},o=(f,h)=>{const{drag:p,dragPropagation:w,onDragStart:v}=this.getProps();if(p&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=zS(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),Et(g=>{let m=this.getAxisMotionValue(g).get()||0;if(At.test(m)){const{projection:y}=this.visualElement;if(y&&y.layout){const b=y.layout.layoutBox[g];b&&(m=ze(b)*(parseFloat(m)/100))}}this.originPoint[g]=m}),v&&X.update(()=>v(f,h),!1,!0),pu(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:w,onDirectionLock:v,onDrag:k}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:g}=h;if(w&&this.currentDirection===null){this.currentDirection=yT(g),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",h.point,g),this.updateAxis("y",h.point,g),this.visualElement.render(),k&&X.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 Bx(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:zx(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&&X.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||!wi(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=uT(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&&Kn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=cT(r.layoutBox,t):this.constraints=!1,this.elastic=mT(n),s!==this.constraints&&!Kn(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Et(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=hT(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Kn(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=xj(r,s.root,this.visualElement.getTransformPagePoint());let o=dT(s.layout.layoutBox,i);if(n){const a=n(mj(o));this.hasMutatedConstraints=!!a,a&&(o=cx(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),u=this.constraints||{},c=Et(d=>{if(!wi(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,w={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,w)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return pu(this.visualElement,t),r.start(Kc(t,r,0,n,this.visualElement,!1))}stopAnimation(){Et(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){Et(n=>{const{drag:r}=this.getProps();if(!wi(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]-te(o,a,.5)+u)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Kn(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Et(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const u=a.get();s[o]=fT({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(),Et(o=>{if(!wi(o,t,null))return;const a=this.getAxisMotionValue(o),{min:u,max:c}=this.constraints[o];a.set(te(u,c,s[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;pT.set(this.visualElement,this);const t=this.visualElement.current,n=fs(t,"pointerdown",c=>{const{drag:d,dragListener:f=!0}=this.getProps(),h=c.target,p=h!==t&&GS(h);d&&f&&!p&&this.start(c)});let r;const s=()=>{const{dragConstraints:c}=this.getProps();Kn(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),r||(r=xT(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),X.read(s);const a=Is(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Et(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=Tu,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function qh(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function xT(e,t,n){const r=wu(e,qh(n)),s=wu(t,qh(n));return()=>{r(),s()}}function wi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function yT(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class vT extends Sn{constructor(t){super(t),this.removeGroupControls=Ye,this.removeListeners=Ye,this.controls=new gT(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ye}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 Ka=e=>(t,n)=>{e&&X.update(()=>e(t,n),!1,!0)};class wT extends Sn{constructor(){super(...arguments),this.removePointerDownListener=Ye}onPointerDown(t){this.session=new Bx(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zx(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Ka(t),onStart:Ka(n),onMove:Ka(r),onEnd:(i,o)=>{delete this.session,s&&X.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=fs(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 Xa=!1;class kT 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),Xa&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Hi.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}),Xa=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||X.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(),Tr.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;Xa=!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 Hx(e){const[t,n]=Mx(),r=x.useContext(Nc);return l.jsx(kT,{...e,layoutGroup:r,switchLayoutGroup:x.useContext(Ox),isPresent:t,safeToRemove:n})}const bT={pan:{Feature:wT},drag:{Feature:vT,ProjectionNode:_x,MeasureLayout:Hx}};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&&X.postRender(()=>i(t,Ys(t)))}class ST extends Sn{mount(){const{current:t}=this.node;t&&(this.unmount=$S(t,(n,r)=>(Qh(this.node,r,"Start"),s=>Qh(this.node,s,"End"))))}unmount(){}}class jT extends Sn{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=Us(Is(this.node.current,"focus",()=>this.onFocus()),Is(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Zh(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&&X.postRender(()=>i(t,Ys(t)))}class PT extends Sn{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=XS(t,(s,i)=>(Zh(this.node,i,"Start"),(o,{success:a})=>Zh(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const Cu=new WeakMap,Ya=new WeakMap,TT=e=>{const t=Cu.get(e.target);t&&t(e)},CT=e=>{e.forEach(TT)};function ET({root:e,...t}){const n=e||document;Ya.has(n)||Ya.set(n,{});const r=Ya.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(CT,{root:e,...t})),r[s]}function NT(e,t,n){const r=ET(t);return Cu.set(e,n),r.observe(e),()=>{Cu.delete(e),r.unobserve(e)}}const _T={some:0,all:1};class MT extends Sn{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:_T[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=NT(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(LT(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function LT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const AT={inView:{Feature:MT},tap:{Feature:PT},focus:{Feature:jT},hover:{Feature:ST}},DT={layout:{ProjectionNode:_x,MeasureLayout:Hx}},RT={...sT,...AT,...bT,...DT},Bt=JP(RT,eT);function Eo(e){return typeof window>"u"?!1:e?R0():Uc()}const IT=50,Jh=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),VT=()=>({time:0,x:Jh(),y:Jh()}),OT={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function em(e,t,n,r){const s=n[t],{length:i,position:o}=OT[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=jr(0,s.scrollLength,s.current);const c=r-u;s.velocity=c>IT?0:Ac(s.current-a,c)}function FT(e,t,n){em(e,"x",t,n),em(e,"y",t,n),t.time=n}function zT(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(cs(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 Eu={start:0,center:.5,end:1};function tm(e,t,n=0){let r=0;if(e in Eu&&(e=Eu[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 BT=[0,0];function $T(e,t,n,r){let s=Array.isArray(e)?e:BT,i=0,o=0;return typeof e=="number"?s=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?s=e.split(" "):s=[e,Eu[e]?e:"0"]),i=tm(s[0],n,r),o=tm(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]]},HT={x:0,y:0};function WT(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function UT(e,t,n){const{offset:r=Qr.All}=n,{target:s=e,axis:i="y"}=n,o=i==="y"?"height":"width",a=s!==e?zT(s,e):HT,u=s===e?{width:e.scrollWidth,height:e.scrollHeight}:WT(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 {GT(e,r.target,n),FT(e,n,s),(r.offset||r.target)&&UT(e,n,r)},notify:()=>t(n)}}const Gn=new WeakMap,nm=new WeakMap,qa=new WeakMap,rm=new WeakMap,ki=new WeakMap,sm=e=>e===document.scrollingElement?window:e;function Wx(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return Ye;let s=qa.get(t);s||(s=new Set,qa.set(t,s));const i=VT(),o=KT(t,e,i,r);if(s.add(o),!Gn.has(t)){const u=()=>{for(const h of s)h.measure(je.timestamp);X.preUpdate(c)},c=()=>{for(const h of s)h.notify()},d=()=>X.read(u);Gn.set(t,d);const f=sm(t);window.addEventListener("resize",d),t!==document.documentElement&&nm.set(t,wu(t,d)),f.addEventListener("scroll",d),d()}if(n&&!ki.has(t)){const u=Gn.get(t),c={width:t.scrollWidth,height:t.scrollHeight};rm.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=X.read(d,!0);ki.set(t,f)}const a=Gn.get(t);return X.read(a,!1,!0),()=>{var f;ft(a);const u=qa.get(t);if(!u||(u.delete(o),u.size))return;const c=Gn.get(t);Gn.delete(t),c&&(sm(t).removeEventListener("scroll",c),(f=nm.get(t))==null||f(),window.removeEventListener("resize",c));const d=ki.get(t);d&&(ft(d),ki.delete(t)),rm.delete(t)}}const XT=[[Qr.Enter,"entry"],[Qr.Exit,"exit"],[Qr.Any,"cover"],[Qr.All,"contain"]],im={start:0,end:1};function YT(e){const t=e.trim().split(/\s+/);if(t.length!==2)return;const n=im[t[0]],r=im[t[1]];if(!(n===void 0||r===void 0))return[n,r]}function qT(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=YT(n);if(!r)return;t.push(r)}else return;return t}function QT(e,t){const n=qT(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 id(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(const[t,n]of XT)if(QT(e,t))return{rangeStart:`${n} 0%`,rangeEnd:`${n} 100%`}}const om=new Map;function am(e){const t={value:0},n=Wx(r=>{t.value=r[e.axis].progress*100},e);return{currentTime:t,cancel:n}}function Ux({source:e,container:t,...n}){const{axis:r}=n;e&&(t=e);let s=om.get(t);s||(s=new Map,om.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&&Eo(n.target)?id(n.offset)?o[a]=new ViewTimeline({subject:n.target,axis:r}):o[a]=am({container:t,...n}):Eo()?o[a]=new ScrollTimeline({source:t,axis:r}):o[a]=am({container:t,...n})),o[a]}function ZT(e,t){const n=Ux(t),r=t.target?id(t.offset):void 0,s=t.target?Eo(t.target)&&!!r:Eo();return e.attachTimeline({timeline:s?n:void 0,...r&&s&&{rangeStart:r.rangeStart,rangeEnd:r.rangeEnd},observe:i=>(i.pause(),ix(o=>{i.time=i.iterationDuration*o},n))})}function JT(e){return e&&(e.target||e.offset)}function eC(e){return e.length===2}function tC(e,t){return eC(e)||JT(t)?Wx(n=>{e(n[t.axis].progress,n)},t):ix(e,Ux(t))}function Gx(e,{axis:t="y",container:n=document.scrollingElement,...r}={}){if(!n)return Ye;const s={axis:t,container:n,...r};return typeof e=="function"?tC(e,s):ZT(e,s)}const nC=()=>({scrollX:vt(0),scrollY:vt(0),scrollXProgress:vt(0),scrollYProgress:vt(0)}),ur=e=>e?!e.current:!1;function lm(e,t,n,r){return{factory:s=>{let i;const o=()=>{if(ur(n)||ur(r)){Tr.read(o);return}i=Gx(s,{...t,axis:e,container:(n==null?void 0:n.current)||void 0,target:(r==null?void 0:r.current)||void 0})};return Tr.read(o),()=>{ex(o),i==null||i()}},times:[0,1],keyframes:[0,1],ease:s=>s,duration:1}}function rC(e,t){return typeof window>"u"?!1:e?R0()&&!!id(t):Uc()}function Kx({container:e,target:t,...n}={}){const r=yn(nC);rC(t,n.offset)&&(r.scrollXProgress.accelerate=lm("x",n,e,t),r.scrollYProgress.accelerate=lm("y",n,e,t));const s=x.useRef(null),i=x.useRef(!1),o=x.useCallback(()=>(s.current=Gx((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 Ws(()=>{if(i.current=!1,ur(e)||ur(t)){i.current=!0;return}else return o()},[o]),x.useEffect(()=>{if(!i.current)return;let a;const u=()=>{const c=ur(e),d=ur(t);!c&&!d&&(a=o())};return Tr.read(u),()=>{ex(u),a==null||a()}},[o]),r}function Xx(e){const t=yn(()=>vt(e)),{isStatic:n}=x.useContext(Xs);if(n){const[,r]=x.useState(e);x.useEffect(()=>t.on("change",r),[])}return t}function Yx(e,t){const n=Xx(t()),r=()=>n.set(t());return r(),Ws(()=>{const s=()=>X.preRender(r,!1,!0),i=e.map(o=>o.on("change",s));return()=>{i.forEach(o=>o()),ft(r)}}),n}function sC(e){us.current=[],e();const t=Yx(us.current,e);return us.current=void 0,t}function Jt(e,t,n,r){if(typeof e=="function")return sC(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!="function")return iC(e,t,n,r);const o=typeof t=="function"?t:sj(t,n,r),a=Array.isArray(e)?um(e,o):um([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 um(e,t){const n=yn(()=>[]);return Yx(e,()=>{n.length=0;const r=e.length;for(let s=0;s Object.keys(n)),i=yn(()=>({}));for(const o of s)i[o]=Jt(e,t,n[o],r);return i}function oC(e,t={}){const{isStatic:n}=x.useContext(Xs),r=()=>be(e)?e.get():e;if(n)return Jt(r);const s=Xx(r());return x.useInsertionEffect(()=>ij(s,e,t),[s,JSON.stringify(t)]),s}function aC(e,t={}){return oC(e,{type:"spring",...t})}function lC(){const{scrollYProgress:e}=Kx(),t=aC(e,{stiffness:200,damping:30,restDelta:.001});return l.jsx(Bt.div,{style:{scaleX:t},className:"fixed left-0 top-0 z-40 h-0.5 w-full origin-left bg-brand-500"})}const uC=()=>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 qs({message:e,fullScreen:t=!1}){const{t:n}=Ce(),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(uC,{})}),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(Wk,{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 cm=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 Qs({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:cm}):l.jsx("div",{className:"bg-amber-500 px-4 py-2 text-center text-xs font-semibold text-white",children:cm})}function cC({onClose:e}){const{consent:t,saveCustom:n}=Lr(),[r,s]=x.useState(t.external),[i,o]=x.useState(t.analytics),{t:a}=Ce();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 dC(){const{decided:e,settingsOpen:t,acceptAll:n,rejectNonEssential:r,openSettings:s,closeSettings:i}=Lr(),{t:o}=Ce();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(cC,{onClose:i})]})}function fC(){const{consent:e}=Lr(),{ga_measurement_id:t}=Pt(),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 qx=x.createContext({global:{enabled:!1,message:null},services:{enabled:!1,message:null},vehicles:{enabled:!1,message:null},bypass:!1}),hC=qx.Provider;function na(){return x.useContext(qx)}const od=x.createContext({}),mC=od.Provider;function $n(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 Re(e){const t=x.useContext(od);return $n(t,e)}function ad(){return x.useContext(od)}const pC=[{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'}],ld=x.createContext({fonts:[],refresh:()=>{}}),Qx=ld.Provider;function Zx(){return x.useContext(ld).fonts}function yN(){return x.useContext(ld).refresh}function vN(){const e=Zx();return[...pC,...e.map(t=>({label:t.name,value:t.font_family}))]}function gC(e){const t=/\.([a-z0-9]+)$/i.exec(e||"");return t?t[1].toLowerCase():""}const xC={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype"};function Jx(){const e=Zx();if(e.length===0)return null;const t=e.map(n=>{const r=xC[gC(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 yC=150,vC=300,wC=80,kC=5e3;function bC(){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 SC({enabled:e,children:t}){const n=rt(),[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)},yC),w=()=>{s(!0),o(!1)},v=()=>{c=!0,clearTimeout(p),clearTimeout(f),clearTimeout(T),b.disconnect(),P()},k=()=>{if(c)return;v();const S=d?vC-(Date.now()-d):0;S>0?setTimeout(w,S):w()},g=()=>{clearTimeout(f),f=setTimeout(()=>{h.size===0&&Kw()===0&&k()},wC)},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)},y=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(y)),g()});b.observe(u,{childList:!0,subtree:!0});const P=Xw(g),T=setTimeout(k,kC);return u.querySelectorAll("img").forEach(m),g(),()=>{c||v()}},[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(bC,{})]})}const jC={global:{enabled:!1,message:null},services:{enabled:!1,message:null},vehicles:{enabled:!1,message:null}},PC={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}},TC={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:PC,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},CC=["/impressum","/datenschutz","/agb"];function EC(){const[e,t]=x.useState(null),[n,r]=x.useState(TC),[s,i]=x.useState({}),[o,a]=x.useState([]),{loading:u,hasPermission:c}=Hs(),d=rt();if(x.useEffect(()=>{Z.get("/maintenance").then(t).catch(()=>t(jC)),Z.get("/site-settings").then(r).catch(()=>{}),Z.get("/text-styles").then(i).catch(()=>{}),Z.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=CC.includes(d.pathname);return e.global.enabled&&!f&&!h?l.jsx(Af,{children:l.jsx(qs,{message:e.global.message,fullScreen:!0})}):l.jsx(Af,{children:l.jsx(hC,{value:{...e,bypass:f},children:l.jsx(Pb,{value:n,children:l.jsx(mC,{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(Jx,{}),f&&e.global.enabled&&l.jsx(Qs,{}),l.jsx(lC,{}),l.jsx(Mb,{}),l.jsx("main",{className:"flex-1",children:l.jsx(SC,{enabled:d.pathname!=="/"&&!!n.page_loader_enabled,children:l.jsx(Ec,{})})}),l.jsx(Ob,{}),l.jsx(dC,{}),l.jsx(fC,{})]})})})})})})}const dm="/assets/logo-BNfZDkmN.png",NC={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"},_C=({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 MC(){const{logout:e,user:t,hasPermission:n}=Hs(),r=Yo(),[s,i]=x.useState(!1),[o,a]=x.useState(0),[u,c]=x.useState([]);x.useEffect(()=>{n("contact.manage")&&Z.get("/contact").then(v=>a(v.filter(k=>k.status==="new").length)).catch(()=>{})},[]);const d=()=>Z.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(v=>({...v,links:v.links.filter(k=>!k.permission||n(k.permission))})).filter(v=>v.links.length>0),h=async()=>{await e(),r("/admin/login")},p=({isActive:v})=>`flex items-center justify-between gap-2 rounded-md px-3 py-2 text-sm font-medium transition ${v?"bg-brand-500 text-white":"text-neutral-600 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,w=({onNavigate:v})=>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(Rw,{to:m.to,end:m.end,className:p,onClick:v,children:[l.jsxs("span",{className:"flex items-center gap-2.5",children:[l.jsx(_C,{path:NC[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(Jx,{}),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:dm,alt:"HifiPlanet",className:"h-7 w-auto dark:hidden"}),l.jsx("img",{src:tu,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(w,{})]}),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(v=>!v),"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:dm,alt:"HifiPlanet",className:"h-6 w-auto dark:hidden"}),l.jsx("img",{src:tu,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(Jg,{}),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(w,{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(Ec,{})})})]})]})})}function LC(){const{user:e,loading:t}=Hs();return t?l.jsx("div",{className:"flex min-h-screen items-center justify-center text-neutral-500",children:"Lädt…"}):e?l.jsx(Ec,{}):l.jsx(Ls,{to:"/admin/login",replace:!0})}function De({permission:e,children:t}){const{hasPermission:n}=Hs();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 AC(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 st({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&&AC(n)},[e,t,n])}const DC=[.16,1,.3,1],fm={up:{y:40},left:{x:-56},right:{x:56}};function RC(e){return{hidden:{opacity:0,scale:.96,filter:"blur(8px)",...fm[e]||fm.up},visible:{opacity:1,scale:1,x:0,y:0,filter:"blur(0px)"}}}const IC={hidden:{x:"-130%"},visible:{x:"230%",transition:{duration:1.1,ease:"easeInOut",delay:.4}}};function Se({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(Bt.div,{className:n,style:{position:"relative",overflow:"hidden",...i},initial:"hidden",whileInView:"visible",viewport:{once:!0,amount:.25,margin:"-100px"},variants:RC(t),transition:{duration:.75,ease:DC,delay:o},children:[e,s&&l.jsx(Bt.div,{"aria-hidden":!0,variants:IC,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 VC({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(Bt.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(EP,{initial:!1,children:i&&l.jsx(Bt.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 ey({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 OC=70;function FC({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 y=(m-r.lastTime)/1e3;r.lastTime=m,!r.dragging&&!r.hovering&&!o&&(r.pos=u(r.pos+OC*y),a()),r.rafId=requestAnimationFrame(f)};r.rafId=requestAnimationFrame(f);const h=t.current,p=()=>{r.hovering=!0},w=()=>{r.hovering=!1},v=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",w),h.addEventListener("pointerdown",v),h.addEventListener("pointermove",k),h.addEventListener("pointerup",g),h.addEventListener("pointercancel",g),()=>{cancelAnimationFrame(r.rafId),d.disconnect(),h.removeEventListener("pointerenter",p),h.removeEventListener("pointerleave",w),h.removeEventListener("pointerdown",v),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(ey,{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 No(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 zC="/assets/gallery-dash2-CEVCErVK.webp",ty="/assets/gallery-amp-purple-CESAKuOf.webp",BC="/assets/gallery-speaker-CUXQZ49Q.webp",ny="/assets/gallery-subs-COSd4seJ.webp",ry="/assets/gallery-dash-Cg-7v9qo.webp",$C="/assets/hero-trunk-Dp4_JHDh.webp",HC="/assets/gallery-rear-8cIXPC7T.webp",WC="/assets/hero-highlight-Co4f1Kj5.webp",UC="/assets/youtube-hintergrund-BqSbCrLQ.mp4",bi={left:"text-left",center:"text-center",right:"text-right"},GC={left:"",center:"mx-auto",right:"ml-auto"},KC={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 hm({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 XC=[{src:ny,width:900,height:600},{src:ty,width:900,height:600},{src:BC,width:900,height:1200},{src:ry,width:900,height:814},{src:HC,width:900,height:1200},{src:$C,width:1920,height:1280}];function YC(){const{hero_image_path:e}=Pt(),t=e||zC,{t:n,language:r}=Ce(),s=n("home.stats"),i=n("home.galleryAlts"),o=XC.map((D,$)=>({...D,alt:i[$]})),[a,u]=x.useState([]),[c,d]=x.useState({}),[f,h]=x.useState([]),p=D=>{const $=c[D]||KC;return{eyebrow:$[`eyebrow_${r}`]||"",title:$[`title_${r}`]||"",bodyHtml:$[`body_html_${r}`]||"",align:$.text_align||"center",alignX:$.text_align_x,alignY:$.text_align_y,buttonLabel:$[`button_label_${r}`]||"",buttonUrl:$.button_url||"",fontFamily:$.font_family||void 0}},w=Re("home_sections.hero.eyebrow"),v=Re("home_sections.hero.title"),k=Re("home_sections.youtube.eyebrow"),g=Re("home_sections.youtube.title"),m=Re("home_sections.youtube.button_label"),y=Re("home_sections.craft.eyebrow"),b=Re("home_sections.craft.title"),P=Re("home_sections.advice.eyebrow"),T=Re("home_sections.advice.title"),S=Re("home_sections.insights.eyebrow"),j=Re("home_sections.insights.title"),L=Re("home_sections.more.eyebrow"),N=Re("home_sections.more.title"),O=Re("home_sections.more.button_label");x.useEffect(()=>{Z.get("/home-sections").then(d).catch(()=>{})},[]),x.useEffect(()=>{Z.get("/partners").then(h).catch(()=>{})},[]);const[H,oe]=x.useState(null),_=H?H.reviews.filter(D=>D.review_text).map(D=>({name:D.author_name,text:D.review_text,rating:D.rating,photo:D.profile_photo_url})):n("home.testimonials");x.useEffect(()=>{Z.get("/faqs").then(D=>{u(D.map($=>({question:r==="de"?$.question_de:$.question_en,answer:r==="de"?$.answer_de:$.answer_en})))}).catch(()=>{})},[r]),x.useEffect(()=>{Z.get("/google-reviews").then(D=>{D.rating!=null&&D.reviews.some($=>$.review_text)&&oe(D)}).catch(()=>{})},[]),st({title:n("home.metaTitle"),description:n("home.metaDescription"),path:"/"}),x.useEffect(()=>{if(a.length===0)return;const D=document.createElement("script");return D.type="application/ld+json",D.text=JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:a.map($=>({"@type":"Question",name:$.question,acceptedAnswer:{"@type":"Answer",text:$.answer}}))}),document.head.appendChild(D),()=>document.head.removeChild(D)},[a]);const R=x.useRef(null);x.useEffect(()=>{const D=R.current;if(!D)return;const $=new IntersectionObserver(([fe])=>{fe.isIntersecting?(D.getAttribute("src")||(D.src=UC),D.play().catch(()=>{})):D.paused||D.pause()},{rootMargin:"300px 0px"});return $.observe(D),()=>$.disconnect()},[]);const B=x.useRef(null),{scrollYProgress:W}=Kx({target:B,offset:["start start","end start"]}),E=Jt(W,[0,1],["-6%","6%"]),C=Jt(W,[0,1],["0%","60%"]),A=Jt(W,[0,.8],[1,0]),F=Jt(W,[.5,1],[0,1]),q=Jt(F,D=>D>.05?"auto":"none"),Me=Jt(W,[.5,1],[16,0]);return l.jsxs("div",{children:[l.jsx(Bt.div,{style:{opacity:F,pointerEvents:q,y:Me},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:B,className:"relative -mt-[89px] h-dvh min-h-[560px] overflow-hidden sm:-mt-[97px]",children:[l.jsx(Bt.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(Bt.div,{style:{y:C,opacity:A},className:"absolute inset-0",children:l.jsx("div",{className:"absolute w-full max-w-2xl px-4 text-center sm:px-6",style:{...No(p("hero").alignX,p("hero").alignY,{x:50,y:50}),fontFamily:p("hero").fontFamily},children:l.jsxs(Bt.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:w,children:p("hero").eyebrow}),l.jsx("h1",{className:"text-3xl font-extrabold tracking-tight text-white sm:text-5xl",style:v,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((D,$)=>l.jsxs(Se,{index:$,children:[l.jsx("p",{className:"text-2xl font-extrabold text-brand-400 sm:text-3xl",children:D.value}),l.jsx("p",{className:"text-sm text-neutral-400",children:D.label})]},D.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((D,$)=>l.jsx(Se,{index:$,children:D.logo_path?l.jsx("img",{src:D.logo_path,alt:D.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:D.name})},D.id))})]})}),l.jsxs("section",{className:"relative min-h-[70vh] overflow-hidden sm:min-h-[85vh]",children:[l.jsx("video",{ref:R,loop:!0,muted:!0,playsInline:!0,preload:"none",poster:ry,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:{...No(p("youtube").alignX,p("youtube").alignY,{x:50,y:50}),fontFamily:p("youtube").fontFamily},children:l.jsxs(Se,{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(hm,{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(Se,{direction:"left",shine:!0,className:"rounded-xl shadow-lg",children:l.jsx("img",{src:ny,alt:n("home.craftImageAlt"),width:900,height:600,className:"w-full rounded-xl object-cover",style:{maxHeight:380}})}),l.jsxs(Se,{direction:"right",index:1,className:bi[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:y,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(Se,{direction:"left",className:`order-2 md:order-1 ${bi[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:T,children:p("advice").title}),l.jsx("div",{className:"legal-content text-neutral-600 dark:text-neutral-300",dangerouslySetInnerHTML:{__html:p("advice").bodyHtml}})]}),l.jsx(Se,{direction:"right",index:1,shine:!0,className:"order-1 md:order-2 rounded-xl shadow-lg",children:l.jsx("img",{src:ty,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(Se,{className:`mb-8 ${bi[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((D,$)=>l.jsx(Se,{index:$%3,shine:!0,className:"aspect-square overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:l.jsx("img",{src:D.src,alt:D.alt,width:D.width,height:D.height,loading:"lazy",className:"h-full w-full object-cover transition duration-300 hover:scale-105"})},D.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(Se,{className:"mb-10 text-center",children:[l.jsx("div",{className:"mb-2 flex items-center justify-center gap-2",children:l.jsx(ey,{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(Se,{children:l.jsx(FC,{testimonials:_})})]})}),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(Se,{direction:"left",shine:!0,className:"overflow-hidden rounded-xl shadow-lg",children:l.jsx("img",{src:WC,alt:n("home.moreImageAlt"),width:1600,height:905,className:"h-full w-full object-cover",loading:"lazy"})}),l.jsxs(Se,{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 ${bi[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:L,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 ${GC[p("more").align]}`,dangerouslySetInnerHTML:{__html:p("more").bodyHtml}}),l.jsx(hm,{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(Se,{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(Se,{index:1,children:l.jsx(VC,{items:a})})]})})]})}function qC(){const[e,t]=x.useState([]),[n,r]=x.useState(""),s=na(),{t:i}=Ce(),o=ad(),{vehicle_tile_width:a,vehicle_tile_height:u}=Pt(),c={width:`${a}px`,height:`${u}px`};return st({title:i("vehicleSelect.metaTitle"),description:i("vehicleSelect.metaDescription"),path:"/fahrzeuge"}),x.useEffect(()=>{s.vehicles.enabled&&!s.bypass||Z.get("/brands").then(t).catch(d=>r(d.message))},[s.vehicles.enabled,s.bypass]),s.vehicles.enabled&&!s.bypass?l.jsx(qs,{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(Qs,{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:$n(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:$n(o,`brands.${d.id}.name`),children:d.name})},d.id))})]})}function QC(){const{brandSlug:e}=$s(),[t,n]=x.useState(null),[r,s]=x.useState(""),i=na(),{t:o}=Ce(),a=ad(),u=Re(t?`brands.${t.brand.id}.name`:""),{vehicle_tile_width:c,vehicle_tile_height:d}=Pt(),f={width:`${c}px`,height:`${d}px`};return x.useEffect(()=>{i.vehicles.enabled&&!i.bypass||Z.get(`/brands/${e}/models`).then(n).catch(h=>s(h.message))},[e,i.vehicles.enabled,i.bypass]),st({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(qs,{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(Qs,{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:$n(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:$n(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 ZC({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 mm="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==",JC="/assets/base-BKOm0Bib.webp",eE="/assets/clear-DZZMSrMX.webp",tE="/assets/drive-BE2W1yna.webp",nE="/assets/prime-BTVNe2Gb.webp",rE="/assets/elite_r-BRvz_pyr.webp",sE="/assets/apex-CFy2qup8.webp",iE="/assets/statement-pTO-wTPx.webp",oE="/assets/limitless-DDs0S_PU.webp",aE=(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)]},Za=(e,t,n)=>`rgb(${aE(e,t,n).join(", ")})`,pm=e=>e.map(([t,n,r,s,i,o])=>({bgTop:Za(t,n,r),border:Za(t,n,r+8),accent:Za(s,i,o),img:null})),gm={graphite:[{accent:"#b6b6b6",border:"#2a2a2a",bgTop:"#1c1c1c",img:JC},{accent:"#d3d3d3",border:"#2e2e2e",bgTop:"#212121",img:eE},{accent:"#8fb8bd",border:"#26383b",bgTop:"#16282b",img:tE},{accent:"#6fbf73",border:"#1f3a24",bgTop:"#122916",img:nE},{accent:"#63d34f",border:"#204a1c",bgTop:"#123312",img:rE},{accent:"#8bea3c",border:"#2b5518",bgTop:"#173a0f",img:sE},{accent:"#d9a83c",border:"#4a3a16",bgTop:"#33270d",img:iE},{accent:"#f2c14e",border:"#5a4718",bgTop:"#3d2f0c",img:oE}],"deep-blue":pm([[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":pm([[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]])},lE="#f2f2f2",uE="#8a8a8a",cE="#c4c4c4",xm=5,dE=3,fE={recommended:{Icon:db,className:"bg-brand-500 text-white"},popular:{Icon:Ik,className:"bg-amber-400 text-neutral-950"},tip:{Icon:zk,className:"bg-sky-500 text-white"},coming_soon:{Icon:Yg,className:"bg-white text-neutral-900"},custom:{Icon:null,className:"bg-brand-500 text-white"}};function hE({pkg:e,tier:t,tierT:n,layout:r,bullets:s,formatPrice:i,contactUrl:o,t:a}){const[u,c]=x.useState(!1),[d,f]=x.useState(!1),h=x.useRef(null),p=s.length-xm,w=u?s:s.slice(0,xm);x.useLayoutEffect(()=>{const S=h.current;if(!S||u){f(!1);return}const j=()=>f([...S.querySelectorAll("[data-clamp]")].some(N=>N.scrollHeight>N.clientHeight+1));j();const L=new ResizeObserver(j);return L.observe(S),()=>L.disconnect()},[u,s.length,e.description]);const v=ad(),k=$n(v,`packages.${e.id}.description`),g=$n(v,`packages.${e.id}.price_text`),{package_card_height:m}=Pt(),y=fE[e.badge],b=r!=="grid",P=e.badge==="custom"?e.badge_text:e.badge&&a(`modelPage.badges.${e.badge}`),T=t.img?null:{backgroundColor:t.accent,WebkitMaskImage:`url(${mm})`,maskImage:`url(${mm})`,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%)`,...b?{gridRow:"span 4",gridTemplateRows:"subgrid",rowGap:0}:{minHeight:`${m}px`}},className:r==="strip"?"relative grid snap-start overflow-hidden rounded-[18px] border shadow-xl shadow-neutral-900/20 dark:shadow-black/40":r==="coverflow"?"relative grid snap-center overflow-hidden rounded-[18px] border shadow-xl shadow-neutral-900/20 will-change-transform dark:shadow-black/40":"relative flex flex-col overflow-hidden rounded-[18px] border shadow-xl shadow-neutral-900/20 dark:shadow-black/40",children:[t.img?l.jsx("img",{src:t.img,alt:"","aria-hidden":"true",className:"pointer-events-none absolute inset-0 h-full w-full object-cover"}):l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"pointer-events-none absolute inset-0",style:{...T,opacity:.2+n*.45,filter:"blur(18px)"},"aria-hidden":"true"}),l.jsx("div",{className:"pointer-events-none absolute inset-0",style:{...T,opacity:.55+n*.45},"aria-hidden":"true"})]}),y&&P&&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 ${y.className}`,children:[y.Icon&&l.jsx(y.Icon,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":"true"}),l.jsx("span",{className:"truncate",children:P})]}),l.jsxs("div",{className:"relative z-10 text-center",style:{padding:"34px 20px 0",gridRow:1},children:[l.jsx("div",{style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"30px",letterSpacing:"3px",fontWeight:600,color:t.accent,textTransform:"uppercase",lineHeight:1.1},children: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:{gridRow:2,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",{ref:h,className:"space-y-1.5 text-left",children:w.map((S,j)=>l.jsxs("li",{className:"flex items-start gap-2",style:{fontSize:"13px",color:cE,...S.fromDescription?k:null},children:[l.jsx(ck,{className:"mt-0.5 h-3.5 w-3.5 shrink-0",style:{color:t.accent}}),l.jsx("span",{"data-clamp":!0,className:"leading-snug",style:u?void 0:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:dE,overflow:"hidden"},children:S.fromDescription?l.jsx(ZC,{text:S.text}):S.text})]},j))}),(u||p>0||d)&&l.jsxs("button",{type:"button",onClick:()=>c(S=>!S),className:"mt-2.5 flex items-center gap-1 hover:opacity-80",style:{fontSize:"13px",color:t.accent},children:[u?a("modelPage.lessBullets"):p>0?a("modelPage.moreBullets")(p):a("modelPage.showMore"),u?l.jsx(yk,{className:"h-3.5 w-3.5"}):l.jsx(fk,{className:"h-3.5 w-3.5"})]})]}),l.jsx("div",{className:"relative z-10 flex-1",style:{gridRow:3}}),l.jsx("div",{className:"relative z-10",style:{gridRow:4,padding:"20px 20px 28px",background:"linear-gradient(180deg, rgba(8,8,8,0) 0%, rgba(8,8,8,0.85) 45%, rgba(8,8,8,0.95) 100%)"},children:l.jsxs("div",{className:"text-center",children:[!e.price_text&&l.jsx("div",{style:{fontSize:"13px",color:uE},children:a("modelPage.totalPrice")}),l.jsx("div",{style:{marginTop:"4px",fontFamily:"'Barlow Condensed', sans-serif",fontSize:"30px",fontWeight:600,letterSpacing:"1px",color:lE,...e.price_text?g: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(wk,{className:"h-4 w-4 text-red-500","aria-hidden":"true"}),a("modelPage.videoLink")]})})]})})]})}function mE(){const{brandSlug:e,modelSlug:t}=$s(),[n,r]=x.useState(null),[s,i]=x.useState(""),o=na(),{t:a,language:u}=Ce(),{package_card_theme:c,package_card_layout:d,package_wheel_hint_interval:f,package_card_width:h,package_card_height:p}=Pt(),w=gm[c]||gm.graphite,v=["grid","strip","coverflow"].includes(d)?d:"strip",k=Math.max(2,Number(f)||8)*1e3,g=x.useRef(null),m=x.useRef(null),y=x.useRef(null),[b,P]=x.useState(!1),T=_=>new Intl.NumberFormat(u==="de"?"de-DE":"en-US",{style:"currency",currency:"EUR"}).format(_);x.useEffect(()=>{o.vehicles.enabled&&!o.bypass||Z.get(`/models/${e}/${t}/packages`).then(r).catch(_=>i(_.message))},[e,t,o.vehicles.enabled,o.bypass]),x.useEffect(()=>{const _=g.current;if(v!=="coverflow"||!_)return;let R=0;const B=()=>{R=0;const C=_.scrollLeft+_.clientWidth/2;for(const A of _.children){const F=A.offsetLeft+A.offsetWidth/2,q=Math.max(-1,Math.min(1,(F-C)/(A.offsetWidth*1.4))),Me=Math.abs(q);A.style.transform=`rotateY(${(-q*35).toFixed(2)}deg) scale(${(1-Me*.13).toFixed(3)}) translateZ(${(-Me*60).toFixed(1)}px)`,A.style.zIndex=String(100-Math.round(Me*50))}},W=()=>{R||(R=requestAnimationFrame(B))};B(),_.addEventListener("scroll",W,{passive:!0});const E=new ResizeObserver(W);return E.observe(_),()=>{_.removeEventListener("scroll",W),E.disconnect(),cancelAnimationFrame(R)}},[v,n]),x.useEffect(()=>{const _=g.current;if(v==="grid"||!_)return;const R=window.matchMedia("(pointer: coarse)").matches;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let W=[],E=0;const C=()=>{const F=Math.min(_.clientWidth*.4,160);W.push(setTimeout(()=>_.scrollTo({left:F,behavior:"smooth"}),500)),W.push(setTimeout(()=>_.scrollTo({left:0,behavior:"smooth"}),1250)),R||(W.push(setTimeout(()=>P(!0),450)),W.push(setTimeout(()=>P(!1),1700)))},A=new IntersectionObserver(([F])=>{F.isIntersecting&&(A.disconnect(),C(),E=setInterval(()=>{_.scrollLeft<=1&&C()},k))},{threshold:.35});return A.observe(_),()=>{A.disconnect(),clearInterval(E),W.forEach(clearTimeout)}},[v,n,k]),x.useEffect(()=>{const _=g.current;if(v==="grid"||!_)return;let R=0,B=0,W=!1,E=0,C=0;const A=()=>[..._.children].map(D=>D.offsetLeft+D.offsetWidth/2),F=(D,$)=>{let fe=0,Q=1/0;return D.forEach((ye,Rt)=>{const Zs=Math.abs(ye-$);Zs {W=!1;const D=A();if(!D.length)return;const $=_.scrollLeft+_.clientWidth/2,fe=F(D,$);let Q=fe;fe===E&&Math.abs(C)>4&&(Q=C>0?Math.min(E+1,D.length-1):Math.max(E-1,0));const ye=_.scrollWidth-_.clientWidth,Rt=Math.max(0,Math.min(D[Q]-_.clientWidth/2,ye));_.scrollTo({left:Rt,behavior:"smooth"}),clearTimeout(B),B=setTimeout(()=>{_.style.scrollSnapType=""},450)},Me=D=>{if(Math.abs(D.deltaX)>Math.abs(D.deltaY))return;const $=_.scrollWidth-_.clientWidth;if($<=1)return;const fe=_.scrollLeft<=1,Q=_.scrollLeft>=$-1;D.deltaY<0&&fe||D.deltaY>0&&Q||(D.preventDefault(),W||(W=!0,C=0,E=F(A(),_.scrollLeft+_.clientWidth/2)),C+=D.deltaY,_.style.scrollSnapType="none",_.scrollLeft+=D.deltaY,clearTimeout(R),R=setTimeout(q,150))};return _.addEventListener("wheel",Me,{passive:!1}),()=>{_.removeEventListener("wheel",Me),clearTimeout(R),clearTimeout(B)}},[v,n]),x.useEffect(()=>{const _=g.current,R=m.current,B=y.current;if(v==="grid"||!_||!R||!B)return;let W=0;const E=()=>{W=0;const Q=_.scrollWidth-_.clientWidth;if(Q<=1){R.style.opacity="0",R.style.pointerEvents="none";return}R.style.opacity="1",R.style.pointerEvents="auto";const ye=R.clientWidth,Rt=Math.max(32,_.clientWidth/_.scrollWidth*ye);B.style.width=`${Rt}px`,B.style.transform=`translateX(${(_.scrollLeft/Q*(ye-Rt)).toFixed(1)}px)`},C=()=>{W||(W=requestAnimationFrame(E))};E(),_.addEventListener("scroll",C,{passive:!0});const A=new ResizeObserver(C);A.observe(_);let F=!1,q=0;const Me=Q=>{const ye=R.getBoundingClientRect(),Rt=B.clientWidth,Zs=Math.min(Math.max(Q-ye.left-q,0),ye.width-Rt);_.scrollLeft=Zs/(ye.width-Rt)*(_.scrollWidth-_.clientWidth)},D=Q=>{F=!0,R.setPointerCapture(Q.pointerId),_.style.scrollSnapType="none";const ye=B.getBoundingClientRect();q=Q.clientX>=ye.left&&Q.clientX<=ye.right?Q.clientX-ye.left:B.clientWidth/2,Q.clientX>=ye.left&&Q.clientX<=ye.right||Me(Q.clientX)},$=Q=>{F&&Me(Q.clientX)},fe=Q=>{var ye;F&&(F=!1,(ye=R.hasPointerCapture)!=null&&ye.call(R,Q.pointerId)&&R.releasePointerCapture(Q.pointerId),_.style.scrollSnapType="")};return R.addEventListener("pointerdown",D),R.addEventListener("pointermove",$),R.addEventListener("pointerup",fe),R.addEventListener("pointercancel",fe),()=>{_.removeEventListener("scroll",C),A.disconnect(),cancelAnimationFrame(W),R.removeEventListener("pointerdown",D),R.removeEventListener("pointermove",$),R.removeEventListener("pointerup",fe),R.removeEventListener("pointercancel",fe)}},[v,n]),st({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 S=Re(n?`car_models.${n.model.id}.name`:"");if(o.vehicles.enabled&&!o.bypass)return l.jsx(qs,{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:j,packages:L}=n,N=new Map([...L].sort((_,R)=>_.total_price-R.total_price).map((_,R)=>[_.id,R])),O=_=>{const R=_.tier_count??L.length,B=_.tier_rank??N.get(_.id)??0,W=R<=1?0:B/(R-1),E=Math.round(W*(w.length-1));return{tier:w[E],tierT:W}},H=_=>[..._.products.map(R=>({text:R.name_override||R.scraped_name||a("modelPage.productLoading"),fromDescription:!1})),...(_.description||"").split(` +`).map(R=>R.trim()).filter(Boolean).map(R=>({text:R,fromDescription:!0}))],oe=_=>`/kontakt?${new URLSearchParams({brand:j.brand_name,model:j.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(Qs,{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:j.brand_name})," / ",l.jsx("span",{style:S,children:j.name})]}),l.jsxs("h1",{className:`text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl ${L.length?"mb-2":"mb-8"}`,children:[j.brand_name," ",l.jsx("span",{style:S,children:j.name})," – ",a("modelPage.titleSuffix")]}),L.length===0&&l.jsx("p",{className:"pb-12 text-neutral-500 dark:text-neutral-400",children:a("modelPage.empty")})]}),L.length>0&&l.jsx("section",{className:"py-10 sm:py-14",style:{fontFamily:"'Barlow', sans-serif"},children:l.jsxs("div",{className:v==="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:v==="grid"?void 0:g,className:v==="grid"?"grid items-stretch gap-[18px]":"grid select-none gap-x-[18px] overflow-x-auto pb-3 snap-x snap-mandatory [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",style:v==="grid"?{gridTemplateColumns:`repeat(auto-fill, minmax(${h}px, 1fr))`,gridAutoRows:"1fr"}:{gridAutoFlow:"column",gridAutoColumns:`${h}px`,gridTemplateRows:"auto auto 1fr auto",minHeight:`${Number(p)+(v==="coverflow"?22:12)}px`,...v==="coverflow"?{perspective:"1200px",paddingLeft:`calc(50% - ${h/2}px)`,paddingRight:`calc(50% - ${h/2}px)`,paddingTop:"10px"}:null},children:L.map(_=>{const{tier:R,tierT:B}=O(_);return l.jsx(hE,{pkg:_,tier:R,tierT:B,layout:v,bullets:H(_),formatPrice:T,contactUrl:oe,t:a},_.id)})}),v!=="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 ${b?"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(mk,{className:"h-3.5 w-3.5 text-brand-400"}),l.jsx(qk,{className:"h-4 w-4 text-brand-400"}),l.jsx(gk,{className:"h-3.5 w-3.5 text-brand-400"}),l.jsx("span",{children:a("modelPage.wheelHint")})]})}),v!=="grid"&&l.jsx("div",{ref:m,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:y,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 pE(){const[e,t]=x.useState(null),[n,r]=x.useState(""),{t:s}=Ce(),{gallery_card_text_x:i,gallery_card_text_y:o}=Pt();return st({title:s("galleryOverview.metaTitle"),description:s("galleryOverview.metaDescription"),path:"/galerie"}),x.useEffect(()=>{Z.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:No(i,o,{x:0,y:100}),children:a.name})]},a.id))})]})}function gE(){const{brandSlug:e}=$s(),[t,n]=x.useState(null),[r,s]=x.useState(""),{t:i}=Ce(),{gallery_card_text_x:o,gallery_card_text_y:a}=Pt();return x.useEffect(()=>{Z.get(`/gallery-brands/${e}/projects`).then(n).catch(u=>s(u.message))},[e]),st({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:No(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 xE({photos:e,index:t,onClose:n,onNavigate:r}){const{t:s}=Ce();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 Go.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 yE(){const{brandSlug:e,projectSlug:t}=$s(),[n,r]=x.useState(null),[s,i]=x.useState(""),[o,a]=x.useState(null),{t:u}=Ce();x.useEffect(()=>{Z.get(`/gallery-brands/${e}/${t}/photos`).then(r).catch(d=>i(d.message))},[e,t]),st({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(Se,{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(xE,{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 vE={car:Xg,caravan:lk,"car-front":ik,cog:Sk,zap:xb,boxes:rk,"shield-alert":ab,video:pb},wE=x.lazy(()=>ee(()=>import("./iconRegistry-kwv2JZzi.js"),__vite__mapDeps([0,1,2])));function kE({name:e,className:t="h-6 w-6",...n}){if(!e)return null;const r=vE[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(wE,{name:e,className:t,...n})})}function bE(){const[e,t]=x.useState([]),n=na(),{t:r}=Ce();return x.useEffect(()=>{Z.get("/services").then(t).catch(()=>t([]))},[]),st({title:r("leistungen.metaTitle"),description:r("leistungen.metaDescription"),path:"/leistungen"}),n.services.enabled&&!n.bypass?l.jsx(qs,{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(Qs,{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(Se,{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(kE,{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 SE({name:e,description:t,className:n="",children:r}){const{consent:s,acceptAll:i,openSettings:o}=Lr();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 sy=e=>(e||"").replace(/[^\d+]/g,""),jE=e=>`https://wa.me/${sy(e).replace(/^0/,"49").replace("+","")}`,Wi={fontFamily:"'Michroma', sans-serif"};function PE({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 TE({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 CE={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 ym({formatted:e,color:t}){const[n,r]=e.split("€");return l.jsxs("span",{style:{...Wi,color:t},children:[n,l.jsx("span",{style:{fontFamily:"'Barlow', sans-serif"},children:"€"}),r]})}function Si({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 EE(){const[e]=Ow(),{phone:t,whatsapp:n,contact_email:r,address_street:s,address_zip:i,address_city:o,business_hours:a}=Pt(),{t:u,language:c}=Ce(),{consent:d}=Lr(),f=[s,[i,o].filter(Boolean).join(" ")].filter(Boolean).join(", "),h=encodeURIComponent(f),p=`https://www.google.com/maps/dir/?api=1&destination=${h}`,w=s0(a,u("footer.closed")),v=C=>new Intl.NumberFormat(c==="de"?"de-DE":"en-US",{style:"currency",currency:"EUR"}).format(C),[k,g]=x.useState({name:"",email:"",phone:"",vin:"",message:""}),[m,y]=x.useState("idle"),[b,P]=x.useState(""),[T,S]=x.useState([]),[j,L]=x.useState([]),N=e.get("packageId"),O=e.get("total")?Number(e.get("total")):null;x.useEffect(()=>{if(!N){S([]);return}Z.get(`/packages/${N}/upgrades`).then(S).catch(()=>S([]))},[N]);const H=C=>{L(A=>A.includes(C)?A.filter(F=>F!==C):[...A,C])},oe=T.filter(C=>j.includes(C.id)).reduce((C,A)=>C+Number(A.price),0);st({title:u("contactPage.metaTitle"),description:u("contactPage.metaDescription"),path:"/kontakt"});const _={brand:e.get("brand")||"",model:e.get("model")||"",package:e.get("package")||""},R=!!(_.brand&&_.model&&_.package),B=C=>g(A=>({...A,[C.target.name]:C.target.value})),W=async C=>{C.preventDefault(),y("sending"),P("");try{await Z.post("/contact",{...k,brand_name:_.brand||null,model_name:_.model||null,package_name:_.package||null,product_name:e.get("product")||null,package_id:N||null,package_product_id:e.get("productId")||null,upgrade_ids:j}),y("sent"),g({name:"",email:"",phone:"",vin:"",message:""})}catch(A){P(A.message),y("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:{...Wi,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:[R&&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(nb,{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:_.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:_.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:_.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(ym,{formatted:v(O),color:"var(--kf-text)"}):"—"})]})]}),T.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:T.map(C=>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(C.id),onChange:()=>H(C.id),className:"mt-0.5 h-4 w-4 rounded",style:{accentColor:"var(--kf-accent)"}}),l.jsxs("span",{className:"flex-1",children:[l.jsx("span",{className:"block font-semibold",style:{color:"var(--kf-text2)"},children:C.name}),C.description&&l.jsx("span",{className:"block text-xs",style:{color:"var(--kf-muted)"},children:C.description})]}),l.jsxs("span",{className:"font-semibold",style:{color:"var(--kf-accent2)"},children:["+",v(C.price)]})]},C.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(ym,{formatted:v(O+oe),color:"var(--kf-text)"})]})]}),l.jsx("h2",{className:"mb-8 text-xl",style:{...Wi,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:W,children:[l.jsxs("div",{className:"grid grid-cols-1 gap-6 min-[641px]:grid-cols-2",children:[l.jsx(Si,{icon:hb,label:u("contactPage.nameLabel"),name:"name",required:!0,value:k.name,onChange:B,placeholder:u("contactPage.namePlaceholder")}),l.jsx(Si,{icon:Lf,label:u("contactPage.emailLabel"),name:"email",type:"email",required:!0,value:k.email,onChange:B,placeholder:u("contactPage.emailPlaceholder")}),l.jsx(Si,{icon:yo,label:u("contactPage.phoneLabel"),name:"phone",value:k.phone,onChange:B,placeholder:u("contactPage.phonePlaceholder")}),l.jsx(Si,{icon:Xg,label:u("contactPage.vinLabel"),name:"vin",value:k.vin,onChange:B,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:B,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(ib,{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:{...Wi,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(yo,{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:${sy(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(Lf,{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(qg,{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(PE,{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:jE(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:w.map(C=>l.jsxs("span",{style:{display:"contents"},children:[l.jsx("span",{style:{color:"var(--kf-label)"},children:C.days}),l.jsx("span",{children:C.label})]},C.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(Ck,{className:"h-3.5 w-3.5",style:{color:"var(--kf-accent2)"}})]}),l.jsx(SE,{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(C=>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(TE,{path:CE[C.key],className:"h-[22px] w-[22px]"})}),l.jsxs("div",{children:[l.jsx("div",{className:"text-[15px] font-bold",style:{color:"var(--kf-text)"},children:C.title}),l.jsx("div",{className:"mt-0.5 text-[13px]",style:{color:"var(--kf-muted)"},children:C.sub})]})]},C.key))})]})})}const Nu={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"]},wN=Object.values(Nu).flat(),NE=["mp3","wav","flac","m4a","aac","ogg","opus"],ud=e=>{const t=(e||"").lastIndexOf(".");return t===-1?"":e.slice(t+1).toLowerCase()},_E=e=>{const t=ud(e);return Object.keys(Nu).find(n=>Nu[n].includes(t))||"document"},ME=e=>NE.includes(ud(e)),LE=(e,t="de-DE")=>{const n=["B","KB","MB","GB"];let r=Number(e)||0,s=0;for(;r>=1024&&s=2?1:0}).format(r)} ${n[s]}`},AE={audio:Zk,video:Ak,pdf:Mf,image:Mk,archive:Nk,document:Mf},_u="hifi-downloads-password",DE=()=>{try{return localStorage.getItem(_u)||""}catch{return""}},vm=e=>{try{e?localStorage.setItem(_u,e):localStorage.removeItem(_u)}catch{}},wm=e=>Z.get("/downloads",e?{headers:{"X-Download-Password":encodeURIComponent(e)}}:void 0);function RE(){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}=Ce();x.useEffect(()=>{const v=DE();wm(v).then(k=>{k.locked?(v&&vm(""),r(!0)):t(k.items)}).catch(k=>f(k.message))},[]);const w=async v=>{v.preventDefault(),c(!0),a(!1);try{const k=await wm(s);k.locked?a(!0):(vm(s),r(!1),t(k.items))}catch(k){f(k.message)}finally{c(!1)}};return st({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:w,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($k,{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:v=>i(v.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((v,k)=>{const g=AE[_E(v.file_name)];return l.jsx(Se,{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:v.title}),v.description&&l.jsx("p",{className:"mt-1 whitespace-pre-line text-sm text-neutral-600 dark:text-neutral-300",children:v.description}),l.jsxs("p",{className:"mt-1 text-xs text-neutral-400",children:[ud(v.file_name).toUpperCase()," · ",LE(v.file_size,p==="de"?"de-DE":"en-US")]}),ME(v.file_name)&&l.jsx("audio",{controls:!0,preload:"none",src:v.file_path,className:"mt-3 w-full"})]}),l.jsxs("a",{href:v.file_path,download:v.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(Pk,{className:"h-4 w-4","aria-hidden":"true"}),h("downloadsPage.download")]})]})},v.id)})})]})}function IE(){const[e,t]=x.useState(null);return x.useEffect(()=>{Z.get("/legal-pages/impressum").then(t).catch(()=>{})},[]),st({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 VE(){const[e,t]=x.useState(null);return x.useEffect(()=>{Z.get("/legal-pages/datenschutz").then(t).catch(()=>{})},[]),st({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 OE(){const[e,t]=x.useState(null);return x.useEffect(()=>{Z.get("/legal-pages/agb").then(t).catch(()=>{})},[]),st({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 Ja="hifi-chunk-reload",ne=e=>x.lazy(()=>e().then(t=>{try{sessionStorage.removeItem(Ja)}catch{}return t},t=>{let n=!0;try{n=!!sessionStorage.getItem(Ja),sessionStorage.setItem(Ja,"1")}catch{}if(n)throw t;return window.location.reload(),new Promise(()=>{})})),FE=ne(()=>ee(()=>import("./SetupWizard-BxMP-Ket.js"),[])),zE=ne(()=>ee(()=>import("./Login-CPglkc1d.js"),[])),BE=ne(()=>ee(()=>import("./Dashboard-B-LRfODd.js"),[])),$E=ne(()=>ee(()=>import("./Brands-BJpZlwd_.js"),__vite__mapDeps([3,4,5]))),HE=ne(()=>ee(()=>import("./Models-JxjWTTJz.js"),__vite__mapDeps([6,4,5]))),WE=ne(()=>ee(()=>import("./GalleryBrands-BisVvD4s.js"),__vite__mapDeps([7,4]))),UE=ne(()=>ee(()=>import("./GalleryProjects-Bd9vM5Qw.js"),__vite__mapDeps([8,4]))),GE=ne(()=>ee(()=>import("./GalleryPhotos-BHp7wMr5.js"),[])),KE=ne(()=>ee(()=>import("./Packages-DrlgTzAk.js"),__vite__mapDeps([9,5,2,1]))),XE=ne(()=>ee(()=>import("./Services-1IJMUw9Z.js"),__vite__mapDeps([10,4,0,1,2]))),YE=ne(()=>ee(()=>import("./Faqs-BHQAILD1.js"),[])),qE=ne(()=>ee(()=>import("./Partners-B639i75n.js"),__vite__mapDeps([11,4]))),QE=ne(()=>ee(()=>import("./Downloads-TSRdWSGM.js"),__vite__mapDeps([12,1]))),ZE=ne(()=>ee(()=>import("./HomeSections-ChbUs3qL.js"),__vite__mapDeps([13,14,5]))),JE=ne(()=>ee(()=>import("./ContactRequests-BGpswYX8.js"),[])),eN=ne(()=>ee(()=>import("./AccountSettings-wvrY9MmB.js"),[])),tN=ne(()=>ee(()=>import("./AdminUsers-hThOPEZA.js"),[])),nN=ne(()=>ee(()=>import("./PermissionGroups-DkfNwHWJ.js"),[])),rN=ne(()=>ee(()=>import("./SettingsLayout-BVDB1xIc.js"),[])),sN=ne(()=>ee(()=>import("./WebsiteSettings-Ct7A9RVP.js"),__vite__mapDeps([15,4]))),iN=ne(()=>ee(()=>import("./LegalSettings-C9r9Jk2N.js"),__vite__mapDeps([16,14]))),oN=ne(()=>ee(()=>import("./UpdateSettings-oSfYew6Q.js"),[])),aN=ne(()=>ee(()=>import("./EmailSettings-CUMDOG2w.js"),__vite__mapDeps([17,14]))),lN=ne(()=>ee(()=>import("./DatabaseSettings-DrBqBDnQ.js"),[])),uN=ne(()=>ee(()=>import("./ExportImportSettings-pszyqTTz.js"),[])),cN=ne(()=>ee(()=>import("./MaintenanceSettings-DFweFXQh.js"),[])),dN=ne(()=>ee(()=>import("./ResetSettings-DhIe8B_7.js"),[])),fN=l.jsx("div",{className:"min-h-screen bg-white dark:bg-neutral-950"});function hN(){const{packageId:e}=$s();return l.jsx(Ls,{to:`/admin/packages?paket=${e}`,replace:!0})}function mN(){return l.jsxs(l.Fragment,{children:[l.jsx($w,{}),l.jsx(Uw,{}),l.jsx(qw,{children:l.jsx(x.Suspense,{fallback:fN,children:l.jsxs(Sw,{children:[l.jsx(z,{path:"/setup",element:l.jsx(FE,{})}),l.jsxs(z,{element:l.jsx(EC,{}),children:[l.jsx(z,{path:"/",element:l.jsx(YC,{})}),l.jsx(z,{path:"/fahrzeuge",element:l.jsx(qC,{})}),l.jsx(z,{path:"/fahrzeuge/:brandSlug",element:l.jsx(QC,{})}),l.jsx(z,{path:"/fahrzeuge/:brandSlug/:modelSlug",element:l.jsx(mE,{})}),l.jsx(z,{path:"/galerie",element:l.jsx(pE,{})}),l.jsx(z,{path:"/galerie/:brandSlug",element:l.jsx(gE,{})}),l.jsx(z,{path:"/galerie/:brandSlug/:projectSlug",element:l.jsx(yE,{})}),l.jsx(z,{path:"/leistungen",element:l.jsx(bE,{})}),l.jsx(z,{path:"/kontakt",element:l.jsx(EE,{})}),l.jsx(z,{path:"/downloads",element:l.jsx(RE,{})}),l.jsx(z,{path:"/impressum",element:l.jsx(IE,{})}),l.jsx(z,{path:"/datenschutz",element:l.jsx(VE,{})}),l.jsx(z,{path:"/agb",element:l.jsx(OE,{})})]}),l.jsx(z,{path:"/admin/login",element:l.jsx(zE,{})}),l.jsx(z,{path:"/admin",element:l.jsx(LC,{}),children:l.jsxs(z,{element:l.jsx(MC,{}),children:[l.jsx(z,{index:!0,element:l.jsx(BE,{})}),l.jsx(z,{path:"account",element:l.jsx(eN,{})}),l.jsx(z,{path:"brands",element:l.jsx(De,{permission:"brands.manage",children:l.jsx($E,{})})}),l.jsx(z,{path:"models",element:l.jsx(De,{permission:"models.manage",children:l.jsx(HE,{})})}),l.jsx(z,{path:"gallery-brands",element:l.jsx(De,{permission:"gallery.manage",children:l.jsx(WE,{})})}),l.jsx(z,{path:"gallery-projects",element:l.jsx(De,{permission:"gallery.manage",children:l.jsx(UE,{})})}),l.jsx(z,{path:"gallery-projects/:projectId/photos",element:l.jsx(De,{permission:"gallery.manage",children:l.jsx(GE,{})})}),l.jsx(z,{path:"packages",element:l.jsx(De,{permission:"packages.manage",children:l.jsx(KE,{})})}),l.jsx(z,{path:"packages/:packageId/*",element:l.jsx(hN,{})}),l.jsx(z,{path:"services",element:l.jsx(De,{permission:"services.manage",children:l.jsx(XE,{})})}),l.jsx(z,{path:"faqs",element:l.jsx(De,{permission:"content.manage",children:l.jsx(YE,{})})}),l.jsx(z,{path:"partners",element:l.jsx(De,{permission:"content.manage",children:l.jsx(qE,{})})}),l.jsx(z,{path:"downloads",element:l.jsx(De,{permission:"downloads.manage",children:l.jsx(QE,{})})}),l.jsx(z,{path:"home-sections",element:l.jsx(De,{permission:"content.manage",children:l.jsx(ZE,{})})}),l.jsx(z,{path:"contact-requests",element:l.jsx(De,{permission:"contact.manage",children:l.jsx(JE,{})})}),l.jsx(z,{path:"users",element:l.jsx(De,{permission:"users.manage",children:l.jsx(tN,{})})}),l.jsx(z,{path:"permission-groups",element:l.jsx(De,{permission:"permission_groups.manage",children:l.jsx(nN,{})})}),l.jsxs(z,{path:"settings",element:l.jsx(De,{permission:"settings.manage",children:l.jsx(rN,{})}),children:[l.jsx(z,{index:!0,element:l.jsx(Ls,{to:"website",replace:!0})}),l.jsx(z,{path:"website",element:l.jsx(sN,{})}),l.jsx(z,{path:"legal",element:l.jsx(iN,{})}),l.jsx(z,{path:"email",element:l.jsx(aN,{})}),l.jsx(z,{path:"database",element:l.jsx(lN,{})}),l.jsx(z,{path:"export-import",element:l.jsx(uN,{})}),l.jsx(z,{path:"maintenance",element:l.jsx(cN,{})}),l.jsx(z,{path:"update",element:l.jsx(De,{permission:"system.update",children:l.jsx(oN,{})})}),l.jsx(z,{path:"reset",element:l.jsx(dN,{})})]})]})})]})})})]})}el.createRoot(document.getElementById("root")).render(l.jsx(Lm.StrictMode,{children:l.jsx(Lw,{basename:"/".replace(/\/$/,"")||"/",children:l.jsx(vb,{children:l.jsx(jb,{children:l.jsx(Lb,{children:l.jsx(mN,{})})})})})}));export{qk as $,wN as A,rk as B,wk as C,kE as D,ck as E,mk as F,yk as G,Yg as H,Sk as I,Pk as J,Ck as K,U as L,Nk as M,Ls as N,Ec as O,Mk as P,Ak as Q,Lm as R,Mf as S,Ik as T,Ok as U,zk as V,$k as W,Wk as X,Lf as Y,qg as Z,Xk as _,Z as a,Zk as a0,eb as a1,nb as a2,yo as a3,ib as a4,ab as a5,ub as a6,db as a7,hb as a8,pb as a9,xb as aa,tk as ab,gN as ac,ek as ad,Hs as b,Yo as c,tu as d,$s as e,Go as f,Ow as g,fk as h,gk as i,l as j,LE as k,dm as l,Gw as m,vN as n,No as o,Rw as p,Zx as q,x as r,yN as s,km as t,st as u,pN as v,G as w,Xg as x,ik as y,lk as z}; diff --git a/hifi/assets/trash-2-1fxECzax.js b/hifi/assets/trash-2-BdQKzX4s.js similarity index 97% rename from hifi/assets/trash-2-1fxECzax.js rename to hifi/assets/trash-2-BdQKzX4s.js index f0331a1..b0d683c 100644 --- a/hifi/assets/trash-2-1fxECzax.js +++ b/hifi/assets/trash-2-BdQKzX4s.js @@ -1,4 +1,4 @@ -import{w as c}from"./index-CuozEvUf.js";/** +import{w as c}from"./index-CZwY_OSZ.js";/** * @license lucide-react v1.23.0 - ISC * * This source code is licensed under the ISC license. diff --git a/hifi/index.html b/hifi/index.html index 78cae48..bc2c078 100644 --- a/hifi/index.html +++ b/hifi/index.html @@ -40,7 +40,7 @@ "sameAs": ["https://www.youtube.com/@hifiplanet2812"] } - +