HifiPlanet-Website/hifi/assets/index-BBjAHUAg.js
Max Olchov 83bc2d8195
Handy: fester Anruf-/WhatsApp-Button unten rechts
Weicht dem Cookie-Banner und der Startseiten-Leiste aus, entfaellt auf der
Modellseite (eigene Anruf/WhatsApp-Leiste).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BLE4qe4T44VBJuvGUq7urH
2026-10-26 09:41:31 +00:00

301 lines
545 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ImageUploadField-DJjkYIyq.js","assets/resizeImage-C6PvAwh0.js","assets/iconRegistry-DGdCa1eX.js","assets/music-CQp27_lu.js","assets/grip-vertical-BDi-Yp9M.js","assets/trash-2-COtrCxAH.js","assets/DownloadsPage-C4oU3BD1.js","assets/downloads-B9pqFegV.js","assets/Impressum-CqsUDzsX.js","assets/LegalPageView-D48KrBzF.js","assets/Datenschutz-DZkhNEY0.js","assets/AGB-DdmSbwED.js","assets/Dashboard-CW4pLHou.js","assets/ImageOptimizer-DBe8qX38.js","assets/contactRequests-Qfsfq7Lb.js","assets/Brands-CjpbffVT.js","assets/TextStyleWidget-DCyLNm12.js","assets/SortableList-b68nJAo9.js","assets/sortable.esm-Csg9SDfn.js","assets/VehicleCatalogDialog-BzQvB-ME.js","assets/Models-D636IvZl.js","assets/GalleryBrands-Dab6Yn6a.js","assets/ViewOnSite-B22I3dfo.js","assets/GalleryProjects-CZtr1G06.js","assets/GalleryPhotos-DncT1Eas.js","assets/Packages-hJmwX0i2.js","assets/packageTiers-DOLFlFAh.js","assets/Services-DC3iDQcC.js","assets/EntityList-DYjGBh9Z.js","assets/Faqs-r2Enrc17.js","assets/Partners-B2GlgbaG.js","assets/Downloads-CGNfTlgZ.js","assets/HomeSections-CN0u2c2D.js","assets/RichTextEditor-BQVBVwow.js","assets/SaveBar-CwDeG1Eb.js","assets/ContactRequests-J7cHaUWk.js","assets/WebsiteSettings-C3D3Fx8C.js","assets/LegalSettings-0KkFi3OT.js","assets/EmailSettings-D9QXbFdm.js","assets/DatabaseSettings-3UBP2xHY.js","assets/HiggsfieldSettings-6YLtOuK1.js"])))=>i.map(i=>d[i]);
function zv(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function Vp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fp={exports:{}},fo={},Op={exports:{}},ee={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var pi=Symbol.for("react.element"),Bv=Symbol.for("react.portal"),$v=Symbol.for("react.fragment"),Hv=Symbol.for("react.strict_mode"),Uv=Symbol.for("react.profiler"),Wv=Symbol.for("react.provider"),Gv=Symbol.for("react.context"),Kv=Symbol.for("react.forward_ref"),qv=Symbol.for("react.suspense"),Yv=Symbol.for("react.memo"),Xv=Symbol.for("react.lazy"),yf=Symbol.iterator;function Zv(e){return e===null||typeof e!="object"?null:(e=yf&&e[yf]||e["@@iterator"],typeof e=="function"?e:null)}var zp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Bp=Object.assign,$p={};function ss(e,t,n){this.props=e,this.context=t,this.refs=$p,this.updater=n||zp}ss.prototype.isReactComponent={};ss.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ss.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Hp(){}Hp.prototype=ss.prototype;function jc(e,t,n){this.props=e,this.context=t,this.refs=$p,this.updater=n||zp}var Ec=jc.prototype=new Hp;Ec.constructor=jc;Bp(Ec,ss.prototype);Ec.isPureReactComponent=!0;var vf=Array.isArray,Up=Object.prototype.hasOwnProperty,Cc={current:null},Wp={key:!0,ref:!0,__self:!0,__source:!0};function Gp(e,t,n){var r,s={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Up.call(t,r)&&!Wp.hasOwnProperty(r)&&(s[r]=t[r]);var l=arguments.length-2;if(l===1)s.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];s.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)s[r]===void 0&&(s[r]=l[r]);return{$$typeof:pi,type:e,key:i,ref:a,props:s,_owner:Cc.current}}function Qv(e,t){return{$$typeof:pi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Tc(e){return typeof e=="object"&&e!==null&&e.$$typeof===pi}function Jv(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var wf=/\/+/g;function Wo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Jv(""+e.key):t.toString(36)}function na(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case pi:case Bv:a=!0}}if(a)return a=e,s=s(a),e=r===""?"."+Wo(a,0):r,vf(s)?(n="",e!=null&&(n=e.replace(wf,"$&/")+"/"),na(s,t,n,"",function(c){return c})):s!=null&&(Tc(s)&&(s=Qv(s,n+(!s.key||a&&a.key===s.key?"":(""+s.key).replace(wf,"$&/")+"/")+e)),t.push(s)),1;if(a=0,r=r===""?".":r+":",vf(e))for(var l=0;l<e.length;l++){i=e[l];var u=r+Wo(i,l);a+=na(i,t,n,u,s)}else if(u=Zv(e),typeof u=="function")for(e=u.call(e),l=0;!(i=e.next()).done;)i=i.value,u=r+Wo(i,l++),a+=na(i,t,n,u,s);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Ni(e,t,n){if(e==null)return e;var r=[],s=0;return na(e,r,"","",function(i){return t.call(n,i,s++)}),r}function e1(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var it={current:null},ra={transition:null},t1={ReactCurrentDispatcher:it,ReactCurrentBatchConfig:ra,ReactCurrentOwner:Cc};function Kp(){throw Error("act(...) is not supported in production builds of React.")}ee.Children={map:Ni,forEach:function(e,t,n){Ni(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ni(e,function(){t++}),t},toArray:function(e){return Ni(e,function(t){return t})||[]},only:function(e){if(!Tc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ee.Component=ss;ee.Fragment=$v;ee.Profiler=Uv;ee.PureComponent=jc;ee.StrictMode=Hv;ee.Suspense=qv;ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=t1;ee.act=Kp;ee.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Bp({},e.props),s=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=Cc.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)Up.call(t,u)&&!Wp.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&l!==void 0?l[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:pi,type:e.type,key:s,ref:i,props:r,_owner:a}};ee.createContext=function(e){return e={$$typeof:Gv,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Wv,_context:e},e.Consumer=e};ee.createElement=Gp;ee.createFactory=function(e){var t=Gp.bind(null,e);return t.type=e,t};ee.createRef=function(){return{current:null}};ee.forwardRef=function(e){return{$$typeof:Kv,render:e}};ee.isValidElement=Tc;ee.lazy=function(e){return{$$typeof:Xv,_payload:{_status:-1,_result:e},_init:e1}};ee.memo=function(e,t){return{$$typeof:Yv,type:e,compare:t===void 0?null:t}};ee.startTransition=function(e){var t=ra.transition;ra.transition={};try{e()}finally{ra.transition=t}};ee.unstable_act=Kp;ee.useCallback=function(e,t){return it.current.useCallback(e,t)};ee.useContext=function(e){return it.current.useContext(e)};ee.useDebugValue=function(){};ee.useDeferredValue=function(e){return it.current.useDeferredValue(e)};ee.useEffect=function(e,t){return it.current.useEffect(e,t)};ee.useId=function(){return it.current.useId()};ee.useImperativeHandle=function(e,t,n){return it.current.useImperativeHandle(e,t,n)};ee.useInsertionEffect=function(e,t){return it.current.useInsertionEffect(e,t)};ee.useLayoutEffect=function(e,t){return it.current.useLayoutEffect(e,t)};ee.useMemo=function(e,t){return it.current.useMemo(e,t)};ee.useReducer=function(e,t,n){return it.current.useReducer(e,t,n)};ee.useRef=function(e){return it.current.useRef(e)};ee.useState=function(e){return it.current.useState(e)};ee.useSyncExternalStore=function(e,t,n){return it.current.useSyncExternalStore(e,t,n)};ee.useTransition=function(){return it.current.useTransition()};ee.version="18.3.1";Op.exports=ee;var m=Op.exports;const qp=Vp(m),n1=zv({__proto__:null,default:qp},[m]);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r1=m,s1=Symbol.for("react.element"),i1=Symbol.for("react.fragment"),a1=Object.prototype.hasOwnProperty,o1=r1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l1={key:!0,ref:!0,__self:!0,__source:!0};function Yp(e,t,n){var r,s={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)a1.call(t,r)&&!l1.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:s1,type:e,key:i,ref:a,props:s,_owner:o1.current}}fo.Fragment=i1;fo.jsx=Yp;fo.jsxs=Yp;Fp.exports=fo;var o=Fp.exports,Gl={},Xp={exports:{}},wt={},Zp={exports:{}},Qp={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(T,M){var L=T.length;T.push(M);e:for(;0<L;){var D=L-1>>>1,H=T[D];if(0<s(H,M))T[D]=M,T[L]=H,L=D;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var M=T[0],L=T.pop();if(L!==M){T[0]=L;e:for(var D=0,H=T.length,_=H>>>1;D<_;){var R=2*(D+1)-1,X=T[R],Q=R+1,de=T[Q];if(0>s(X,L))Q<H&&0>s(de,X)?(T[D]=de,T[Q]=L,D=Q):(T[D]=X,T[R]=L,D=R);else if(Q<H&&0>s(de,L))T[D]=de,T[Q]=L,D=Q;else break e}}return M}function s(T,M){var L=T.sortIndex-M.sortIndex;return L!==0?L:T.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var u=[],c=[],d=1,f=null,h=3,g=!1,y=!1,b=!1,w=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(T){for(var M=n(c);M!==null;){if(M.callback===null)r(c);else if(M.startTime<=T)r(c),M.sortIndex=M.expirationTime,t(u,M);else break;M=n(c)}}function k(T){if(b=!1,v(T),!y)if(n(u)!==null)y=!0,W(E);else{var M=n(c);M!==null&&I(k,M.startTime-T)}}function E(T,M){y=!1,b&&(b=!1,p(S),S=-1),g=!0;var L=h;try{for(v(M),f=n(u);f!==null&&(!(f.expirationTime>M)||T&&!V());){var D=f.callback;if(typeof D=="function"){f.callback=null,h=f.priorityLevel;var H=D(f.expirationTime<=M);M=e.unstable_now(),typeof H=="function"?f.callback=H:f===n(u)&&r(u),v(M)}else r(u);f=n(u)}if(f!==null)var _=!0;else{var R=n(c);R!==null&&I(k,R.startTime-M),_=!1}return _}finally{f=null,h=L,g=!1}}var C=!1,j=null,S=-1,N=5,P=-1;function V(){return!(e.unstable_now()-P<N)}function B(){if(j!==null){var T=e.unstable_now();P=T;var M=!0;try{M=j(!0,T)}finally{M?se():(C=!1,j=null)}}else C=!1}var se;if(typeof x=="function")se=function(){x(B)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,q=ne.port2;ne.port1.onmessage=B,se=function(){q.postMessage(null)}}else se=function(){w(B,0)};function W(T){j=T,C||(C=!0,se())}function I(T,M){S=w(function(){T(e.unstable_now())},M)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(T){T.callback=null},e.unstable_continueExecution=function(){y||g||(y=!0,W(E))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(T){switch(h){case 1:case 2:case 3:var M=3;break;default:M=h}var L=h;h=M;try{return T()}finally{h=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,M){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var L=h;h=T;try{return M()}finally{h=L}},e.unstable_scheduleCallback=function(T,M,L){var D=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?D+L:D):L=D,T){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=L+H,T={id:d++,callback:M,priorityLevel:T,startTime:L,expirationTime:H,sortIndex:-1},L>D?(T.sortIndex=L,t(c,T),n(u)===null&&T===n(c)&&(b?(p(S),S=-1):b=!0,I(k,L-D))):(T.sortIndex=H,t(u,T),y||g||(y=!0,W(E))),T},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(T){var M=h;return function(){var L=h;h=M;try{return T.apply(this,arguments)}finally{h=L}}}})(Qp);Zp.exports=Qp;var u1=Zp.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var c1=m,vt=u1;function A(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Jp=new Set,Gs={};function pr(e,t){Gr(e,t),Gr(e+"Capture",t)}function Gr(e,t){for(Gs[e]=t,e=0;e<t.length;e++)Jp.add(t[e])}var ln=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Kl=Object.prototype.hasOwnProperty,d1=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,bf={},kf={};function f1(e){return Kl.call(kf,e)?!0:Kl.call(bf,e)?!1:d1.test(e)?kf[e]=!0:(bf[e]=!0,!1)}function h1(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function m1(e,t,n,r){if(t===null||typeof t>"u"||h1(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function at(e,t,n,r,s,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var He={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){He[e]=new at(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];He[t]=new at(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){He[e]=new at(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){He[e]=new at(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){He[e]=new at(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){He[e]=new at(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){He[e]=new at(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){He[e]=new at(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){He[e]=new at(e,5,!1,e.toLowerCase(),null,!1,!1)});var Pc=/[\-:]([a-z])/g;function Nc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Pc,Nc);He[t]=new at(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Pc,Nc);He[t]=new at(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Pc,Nc);He[t]=new at(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){He[e]=new at(e,1,!1,e.toLowerCase(),null,!1,!1)});He.xlinkHref=new at("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){He[e]=new at(e,1,!1,e.toLowerCase(),null,!0,!0)});function _c(e,t,n,r){var s=He.hasOwnProperty(t)?He[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(m1(t,n,s,r)&&(n=null),r||s===null?f1(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var hn=c1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_i=Symbol.for("react.element"),jr=Symbol.for("react.portal"),Er=Symbol.for("react.fragment"),Mc=Symbol.for("react.strict_mode"),ql=Symbol.for("react.profiler"),eg=Symbol.for("react.provider"),tg=Symbol.for("react.context"),Lc=Symbol.for("react.forward_ref"),Yl=Symbol.for("react.suspense"),Xl=Symbol.for("react.suspense_list"),Ac=Symbol.for("react.memo"),xn=Symbol.for("react.lazy"),ng=Symbol.for("react.offscreen"),Sf=Symbol.iterator;function fs(e){return e===null||typeof e!="object"?null:(e=Sf&&e[Sf]||e["@@iterator"],typeof e=="function"?e:null)}var Se=Object.assign,Go;function js(e){if(Go===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Go=t&&t[1]||""}return`
`+Go+e}var Ko=!1;function qo(e,t){if(!e||Ko)return"";Ko=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var s=c.stack.split(`
`),i=r.stack.split(`
`),a=s.length-1,l=i.length-1;1<=a&&0<=l&&s[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(s[a]!==i[l]){if(a!==1||l!==1)do if(a--,l--,0>l||s[a]!==i[l]){var u=`
`+s[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=a&&0<=l);break}}}finally{Ko=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?js(e):""}function p1(e){switch(e.tag){case 5:return js(e.type);case 16:return js("Lazy");case 13:return js("Suspense");case 19:return js("SuspenseList");case 0:case 2:case 15:return e=qo(e.type,!1),e;case 11:return e=qo(e.type.render,!1),e;case 1:return e=qo(e.type,!0),e;default:return""}}function Zl(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 Er:return"Fragment";case jr:return"Portal";case ql:return"Profiler";case Mc:return"StrictMode";case Yl:return"Suspense";case Xl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case tg:return(e.displayName||"Context")+".Consumer";case eg:return(e._context.displayName||"Context")+".Provider";case Lc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ac:return t=e.displayName||null,t!==null?t:Zl(e.type)||"Memo";case xn:t=e._payload,e=e._init;try{return Zl(e(t))}catch{}}return null}function g1(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 Zl(t);case 8:return t===Mc?"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 Vn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function x1(e){var t=rg(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(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mi(e){e._valueTracker||(e._valueTracker=x1(e))}function sg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=rg(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ja(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 Ql(e,t){var n=t.checked;return Se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function jf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Vn(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 ig(e,t){t=t.checked,t!=null&&_c(e,"checked",t,!1)}function Jl(e,t){ig(e,t);var n=Vn(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")?eu(e,t.type,n):t.hasOwnProperty("defaultValue")&&eu(e,t.type,Vn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ef(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 eu(e,t,n){(t!=="number"||ja(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Es=Array.isArray;function zr(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Vn(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function tu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(A(91));return Se({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Cf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(A(92));if(Es(n)){if(1<n.length)throw Error(A(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Vn(n)}}function ag(e,t){var n=Vn(t.value),r=Vn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Tf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function og(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function nu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?og(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Li,lg=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Li=Li||document.createElement("div"),Li.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Li.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ks(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var _s={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},y1=["Webkit","ms","Moz","O"];Object.keys(_s).forEach(function(e){y1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),_s[t]=_s[e]})});function ug(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||_s.hasOwnProperty(e)&&_s[e]?(""+t).trim():t+"px"}function cg(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=ug(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var v1=Se({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 ru(e,t){if(t){if(v1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function su(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 iu=null;function Dc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var au=null,Br=null,$r=null;function Pf(e){if(e=yi(e)){if(typeof au!="function")throw Error(A(280));var t=e.stateNode;t&&(t=xo(t),au(e.stateNode,e.type,t))}}function dg(e){Br?$r?$r.push(e):$r=[e]:Br=e}function fg(){if(Br){var e=Br,t=$r;if($r=Br=null,Pf(e),t)for(e=0;e<t.length;e++)Pf(t[e])}}function hg(e,t){return e(t)}function mg(){}var Yo=!1;function pg(e,t,n){if(Yo)return e(t,n);Yo=!0;try{return hg(e,t,n)}finally{Yo=!1,(Br!==null||$r!==null)&&(mg(),fg())}}function qs(e,t){var n=e.stateNode;if(n===null)return null;var r=xo(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(A(231,t,typeof n));return n}var ou=!1;if(ln)try{var hs={};Object.defineProperty(hs,"passive",{get:function(){ou=!0}}),window.addEventListener("test",hs,hs),window.removeEventListener("test",hs,hs)}catch{ou=!1}function w1(e,t,n,r,s,i,a,l,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var Ms=!1,Ea=null,Ca=!1,lu=null,b1={onError:function(e){Ms=!0,Ea=e}};function k1(e,t,n,r,s,i,a,l,u){Ms=!1,Ea=null,w1.apply(b1,arguments)}function S1(e,t,n,r,s,i,a,l,u){if(k1.apply(this,arguments),Ms){if(Ms){var c=Ea;Ms=!1,Ea=null}else throw Error(A(198));Ca||(Ca=!0,lu=c)}}function gr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function gg(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Nf(e){if(gr(e)!==e)throw Error(A(188))}function j1(e){var t=e.alternate;if(!t){if(t=gr(e),t===null)throw Error(A(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return Nf(s),e;if(i===r)return Nf(s),t;i=i.sibling}throw Error(A(188))}if(n.return!==r.return)n=s,r=i;else{for(var a=!1,l=s.child;l;){if(l===n){a=!0,n=s,r=i;break}if(l===r){a=!0,r=s,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=s;break}if(l===r){a=!0,r=i,n=s;break}l=l.sibling}if(!a)throw Error(A(189))}}if(n.alternate!==r)throw Error(A(190))}if(n.tag!==3)throw Error(A(188));return n.stateNode.current===n?e:t}function xg(e){return e=j1(e),e!==null?yg(e):null}function yg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=yg(e);if(t!==null)return t;e=e.sibling}return null}var vg=vt.unstable_scheduleCallback,_f=vt.unstable_cancelCallback,E1=vt.unstable_shouldYield,C1=vt.unstable_requestPaint,Te=vt.unstable_now,T1=vt.unstable_getCurrentPriorityLevel,Rc=vt.unstable_ImmediatePriority,wg=vt.unstable_UserBlockingPriority,Ta=vt.unstable_NormalPriority,P1=vt.unstable_LowPriority,bg=vt.unstable_IdlePriority,ho=null,qt=null;function N1(e){if(qt&&typeof qt.onCommitFiberRoot=="function")try{qt.onCommitFiberRoot(ho,e,void 0,(e.current.flags&128)===128)}catch{}}var Ft=Math.clz32?Math.clz32:L1,_1=Math.log,M1=Math.LN2;function L1(e){return e>>>=0,e===0?32:31-(_1(e)/M1|0)|0}var Ai=64,Di=4194304;function Cs(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 Pa(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~s;l!==0?r=Cs(l):(i&=a,i!==0&&(r=Cs(i)))}else a=n&~s,a!==0?r=Cs(a):i!==0&&(r=Cs(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ft(t),s=1<<n,r|=e[n],t&=~s;return r}function A1(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function D1(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-Ft(i),l=1<<a,u=s[a];u===-1?(!(l&n)||l&r)&&(s[a]=A1(l,t)):u<=t&&(e.expiredLanes|=l),i&=~l}}function uu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function kg(){var e=Ai;return Ai<<=1,!(Ai&4194240)&&(Ai=64),e}function Xo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ft(t),e[t]=n}function R1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-Ft(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Ic(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ft(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var ce=0;function Sg(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var jg,Vc,Eg,Cg,Tg,cu=!1,Ri=[],Tn=null,Pn=null,Nn=null,Ys=new Map,Xs=new Map,wn=[],I1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mf(e,t){switch(e){case"focusin":case"focusout":Tn=null;break;case"dragenter":case"dragleave":Pn=null;break;case"mouseover":case"mouseout":Nn=null;break;case"pointerover":case"pointerout":Ys.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xs.delete(t.pointerId)}}function ms(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=yi(t),t!==null&&Vc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function V1(e,t,n,r,s){switch(t){case"focusin":return Tn=ms(Tn,e,t,n,r,s),!0;case"dragenter":return Pn=ms(Pn,e,t,n,r,s),!0;case"mouseover":return Nn=ms(Nn,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return Ys.set(i,ms(Ys.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,Xs.set(i,ms(Xs.get(i)||null,e,t,n,r,s)),!0}return!1}function Pg(e){var t=Qn(e.target);if(t!==null){var n=gr(t);if(n!==null){if(t=n.tag,t===13){if(t=gg(n),t!==null){e.blockedOn=t,Tg(e.priority,function(){Eg(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function sa(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=du(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);iu=r,n.target.dispatchEvent(r),iu=null}else return t=yi(n),t!==null&&Vc(t),e.blockedOn=n,!1;t.shift()}return!0}function Lf(e,t,n){sa(e)&&n.delete(t)}function F1(){cu=!1,Tn!==null&&sa(Tn)&&(Tn=null),Pn!==null&&sa(Pn)&&(Pn=null),Nn!==null&&sa(Nn)&&(Nn=null),Ys.forEach(Lf),Xs.forEach(Lf)}function ps(e,t){e.blockedOn===t&&(e.blockedOn=null,cu||(cu=!0,vt.unstable_scheduleCallback(vt.unstable_NormalPriority,F1)))}function Zs(e){function t(s){return ps(s,e)}if(0<Ri.length){ps(Ri[0],e);for(var n=1;n<Ri.length;n++){var r=Ri[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Tn!==null&&ps(Tn,e),Pn!==null&&ps(Pn,e),Nn!==null&&ps(Nn,e),Ys.forEach(t),Xs.forEach(t),n=0;n<wn.length;n++)r=wn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<wn.length&&(n=wn[0],n.blockedOn===null);)Pg(n),n.blockedOn===null&&wn.shift()}var Hr=hn.ReactCurrentBatchConfig,Na=!0;function O1(e,t,n,r){var s=ce,i=Hr.transition;Hr.transition=null;try{ce=1,Fc(e,t,n,r)}finally{ce=s,Hr.transition=i}}function z1(e,t,n,r){var s=ce,i=Hr.transition;Hr.transition=null;try{ce=4,Fc(e,t,n,r)}finally{ce=s,Hr.transition=i}}function Fc(e,t,n,r){if(Na){var s=du(e,t,n,r);if(s===null)al(e,t,r,_a,n),Mf(e,r);else if(V1(s,e,t,n,r))r.stopPropagation();else if(Mf(e,r),t&4&&-1<I1.indexOf(e)){for(;s!==null;){var i=yi(s);if(i!==null&&jg(i),i=du(e,t,n,r),i===null&&al(e,t,r,_a,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else al(e,t,r,null,n)}}var _a=null;function du(e,t,n,r){if(_a=null,e=Dc(r),e=Qn(e),e!==null)if(t=gr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=gg(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return _a=e,null}function Ng(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(T1()){case Rc:return 1;case wg:return 4;case Ta:case P1:return 16;case bg:return 536870912;default:return 16}default:return 16}}var kn=null,Oc=null,ia=null;function _g(){if(ia)return ia;var e,t=Oc,n=t.length,r,s="value"in kn?kn.value:kn.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===s[i-r];r++);return ia=s.slice(e,1<r?1-r:void 0)}function aa(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ii(){return!0}function Af(){return!1}function bt(e){function t(n,r,s,i,a){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ii:Af,this.isPropagationStopped=Af,this}return Se(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ii)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ii)},persist:function(){},isPersistent:Ii}),t}var is={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zc=bt(is),xi=Se({},is,{view:0,detail:0}),B1=bt(xi),Zo,Qo,gs,mo=Se({},xi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==gs&&(gs&&e.type==="mousemove"?(Zo=e.screenX-gs.screenX,Qo=e.screenY-gs.screenY):Qo=Zo=0,gs=e),Zo)},movementY:function(e){return"movementY"in e?e.movementY:Qo}}),Df=bt(mo),$1=Se({},mo,{dataTransfer:0}),H1=bt($1),U1=Se({},xi,{relatedTarget:0}),Jo=bt(U1),W1=Se({},is,{animationName:0,elapsedTime:0,pseudoElement:0}),G1=bt(W1),K1=Se({},is,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),q1=bt(K1),Y1=Se({},is,{data:0}),Rf=bt(Y1),X1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Z1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Q1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function J1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Q1[e])?!!t[e]:!1}function Bc(){return J1}var ew=Se({},xi,{key:function(e){if(e.key){var t=X1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=aa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Z1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bc,charCode:function(e){return e.type==="keypress"?aa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?aa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),tw=bt(ew),nw=Se({},mo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),If=bt(nw),rw=Se({},xi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bc}),sw=bt(rw),iw=Se({},is,{propertyName:0,elapsedTime:0,pseudoElement:0}),aw=bt(iw),ow=Se({},mo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),lw=bt(ow),uw=[9,13,27,32],$c=ln&&"CompositionEvent"in window,Ls=null;ln&&"documentMode"in document&&(Ls=document.documentMode);var cw=ln&&"TextEvent"in window&&!Ls,Mg=ln&&(!$c||Ls&&8<Ls&&11>=Ls),Vf=" ",Ff=!1;function Lg(e,t){switch(e){case"keyup":return uw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ag(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cr=!1;function dw(e,t){switch(e){case"compositionend":return Ag(t);case"keypress":return t.which!==32?null:(Ff=!0,Vf);case"textInput":return e=t.data,e===Vf&&Ff?null:e;default:return null}}function fw(e,t){if(Cr)return e==="compositionend"||!$c&&Lg(e,t)?(e=_g(),ia=Oc=kn=null,Cr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mg&&t.locale!=="ko"?null:t.data;default:return null}}var hw={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Of(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!hw[e.type]:t==="textarea"}function Dg(e,t,n,r){dg(r),t=Ma(t,"onChange"),0<t.length&&(n=new zc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var As=null,Qs=null;function mw(e){Wg(e,0)}function po(e){var t=Nr(e);if(sg(t))return e}function pw(e,t){if(e==="change")return t}var Rg=!1;if(ln){var el;if(ln){var tl="oninput"in document;if(!tl){var zf=document.createElement("div");zf.setAttribute("oninput","return;"),tl=typeof zf.oninput=="function"}el=tl}else el=!1;Rg=el&&(!document.documentMode||9<document.documentMode)}function Bf(){As&&(As.detachEvent("onpropertychange",Ig),Qs=As=null)}function Ig(e){if(e.propertyName==="value"&&po(Qs)){var t=[];Dg(t,Qs,e,Dc(e)),pg(mw,t)}}function gw(e,t,n){e==="focusin"?(Bf(),As=t,Qs=n,As.attachEvent("onpropertychange",Ig)):e==="focusout"&&Bf()}function xw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return po(Qs)}function yw(e,t){if(e==="click")return po(t)}function vw(e,t){if(e==="input"||e==="change")return po(t)}function ww(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bt=typeof Object.is=="function"?Object.is:ww;function Js(e,t){if(Bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!Kl.call(t,s)||!Bt(e[s],t[s]))return!1}return!0}function $f(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hf(e,t){var n=$f(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$f(n)}}function Vg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Vg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fg(){for(var e=window,t=ja();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ja(e.document)}return t}function Hc(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 bw(e){var t=Fg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Vg(n.ownerDocument.documentElement,n)){if(r!==null&&Hc(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=Hf(n,i);var a=Hf(n,r);s&&a&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var kw=ln&&"documentMode"in document&&11>=document.documentMode,Tr=null,fu=null,Ds=null,hu=!1;function Uf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;hu||Tr==null||Tr!==ja(r)||(r=Tr,"selectionStart"in r&&Hc(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}),Ds&&Js(Ds,r)||(Ds=r,r=Ma(fu,"onSelect"),0<r.length&&(t=new zc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Tr)))}function Vi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Pr={animationend:Vi("Animation","AnimationEnd"),animationiteration:Vi("Animation","AnimationIteration"),animationstart:Vi("Animation","AnimationStart"),transitionend:Vi("Transition","TransitionEnd")},nl={},Og={};ln&&(Og=document.createElement("div").style,"AnimationEvent"in window||(delete Pr.animationend.animation,delete Pr.animationiteration.animation,delete Pr.animationstart.animation),"TransitionEvent"in window||delete Pr.transitionend.transition);function go(e){if(nl[e])return nl[e];if(!Pr[e])return e;var t=Pr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Og)return nl[e]=t[n];return e}var zg=go("animationend"),Bg=go("animationiteration"),$g=go("animationstart"),Hg=go("transitionend"),Ug=new Map,Wf="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Bn(e,t){Ug.set(e,t),pr(t,[e])}for(var rl=0;rl<Wf.length;rl++){var sl=Wf[rl],Sw=sl.toLowerCase(),jw=sl[0].toUpperCase()+sl.slice(1);Bn(Sw,"on"+jw)}Bn(zg,"onAnimationEnd");Bn(Bg,"onAnimationIteration");Bn($g,"onAnimationStart");Bn("dblclick","onDoubleClick");Bn("focusin","onFocus");Bn("focusout","onBlur");Bn(Hg,"onTransitionEnd");Gr("onMouseEnter",["mouseout","mouseover"]);Gr("onMouseLeave",["mouseout","mouseover"]);Gr("onPointerEnter",["pointerout","pointerover"]);Gr("onPointerLeave",["pointerout","pointerover"]);pr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));pr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));pr("onBeforeInput",["compositionend","keypress","textInput","paste"]);pr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));pr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));pr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ts="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ew=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ts));function Gf(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,S1(r,t,void 0,e),e.currentTarget=null}function Wg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],u=l.instance,c=l.currentTarget;if(l=l.listener,u!==i&&s.isPropagationStopped())break e;Gf(s,l,c),i=u}else for(a=0;a<r.length;a++){if(l=r[a],u=l.instance,c=l.currentTarget,l=l.listener,u!==i&&s.isPropagationStopped())break e;Gf(s,l,c),i=u}}}if(Ca)throw e=lu,Ca=!1,lu=null,e}function ge(e,t){var n=t[yu];n===void 0&&(n=t[yu]=new Set);var r=e+"__bubble";n.has(r)||(Gg(t,e,2,!1),n.add(r))}function il(e,t,n){var r=0;t&&(r|=4),Gg(n,e,r,t)}var Fi="_reactListening"+Math.random().toString(36).slice(2);function ei(e){if(!e[Fi]){e[Fi]=!0,Jp.forEach(function(n){n!=="selectionchange"&&(Ew.has(n)||il(n,!1,e),il(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fi]||(t[Fi]=!0,il("selectionchange",!1,t))}}function Gg(e,t,n,r){switch(Ng(t)){case 1:var s=O1;break;case 4:s=z1;break;default:s=Fc}n=s.bind(null,t,n,e),s=void 0,!ou||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function al(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(a===4)for(a=r.return;a!==null;){var u=a.tag;if((u===3||u===4)&&(u=a.stateNode.containerInfo,u===s||u.nodeType===8&&u.parentNode===s))return;a=a.return}for(;l!==null;){if(a=Qn(l),a===null)return;if(u=a.tag,u===5||u===6){r=i=a;continue e}l=l.parentNode}}r=r.return}pg(function(){var c=i,d=Dc(n),f=[];e:{var h=Ug.get(e);if(h!==void 0){var g=zc,y=e;switch(e){case"keypress":if(aa(n)===0)break e;case"keydown":case"keyup":g=tw;break;case"focusin":y="focus",g=Jo;break;case"focusout":y="blur",g=Jo;break;case"beforeblur":case"afterblur":g=Jo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=Df;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=H1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=sw;break;case zg:case Bg:case $g:g=G1;break;case Hg:g=aw;break;case"scroll":g=B1;break;case"wheel":g=lw;break;case"copy":case"cut":case"paste":g=q1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=If}var b=(t&4)!==0,w=!b&&e==="scroll",p=b?h!==null?h+"Capture":null:h;b=[];for(var x=c,v;x!==null;){v=x;var k=v.stateNode;if(v.tag===5&&k!==null&&(v=k,p!==null&&(k=qs(x,p),k!=null&&b.push(ti(x,k,v)))),w)break;x=x.return}0<b.length&&(h=new g(h,y,null,n,d),f.push({event:h,listeners:b}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",h&&n!==iu&&(y=n.relatedTarget||n.fromElement)&&(Qn(y)||y[un]))break e;if((g||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,g?(y=n.relatedTarget||n.toElement,g=c,y=y?Qn(y):null,y!==null&&(w=gr(y),y!==w||y.tag!==5&&y.tag!==6)&&(y=null)):(g=null,y=c),g!==y)){if(b=Df,k="onMouseLeave",p="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(b=If,k="onPointerLeave",p="onPointerEnter",x="pointer"),w=g==null?h:Nr(g),v=y==null?h:Nr(y),h=new b(k,x+"leave",g,n,d),h.target=w,h.relatedTarget=v,k=null,Qn(d)===c&&(b=new b(p,x+"enter",y,n,d),b.target=v,b.relatedTarget=w,k=b),w=k,g&&y)t:{for(b=g,p=y,x=0,v=b;v;v=wr(v))x++;for(v=0,k=p;k;k=wr(k))v++;for(;0<x-v;)b=wr(b),x--;for(;0<v-x;)p=wr(p),v--;for(;x--;){if(b===p||p!==null&&b===p.alternate)break t;b=wr(b),p=wr(p)}b=null}else b=null;g!==null&&Kf(f,h,g,b,!1),y!==null&&w!==null&&Kf(f,w,y,b,!0)}}e:{if(h=c?Nr(c):window,g=h.nodeName&&h.nodeName.toLowerCase(),g==="select"||g==="input"&&h.type==="file")var E=pw;else if(Of(h))if(Rg)E=vw;else{E=xw;var C=gw}else(g=h.nodeName)&&g.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(E=yw);if(E&&(E=E(e,c))){Dg(f,E,n,d);break e}C&&C(e,h,c),e==="focusout"&&(C=h._wrapperState)&&C.controlled&&h.type==="number"&&eu(h,"number",h.value)}switch(C=c?Nr(c):window,e){case"focusin":(Of(C)||C.contentEditable==="true")&&(Tr=C,fu=c,Ds=null);break;case"focusout":Ds=fu=Tr=null;break;case"mousedown":hu=!0;break;case"contextmenu":case"mouseup":case"dragend":hu=!1,Uf(f,n,d);break;case"selectionchange":if(kw)break;case"keydown":case"keyup":Uf(f,n,d)}var j;if($c)e:{switch(e){case"compositionstart":var S="onCompositionStart";break e;case"compositionend":S="onCompositionEnd";break e;case"compositionupdate":S="onCompositionUpdate";break e}S=void 0}else Cr?Lg(e,n)&&(S="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(S="onCompositionStart");S&&(Mg&&n.locale!=="ko"&&(Cr||S!=="onCompositionStart"?S==="onCompositionEnd"&&Cr&&(j=_g()):(kn=d,Oc="value"in kn?kn.value:kn.textContent,Cr=!0)),C=Ma(c,S),0<C.length&&(S=new Rf(S,e,null,n,d),f.push({event:S,listeners:C}),j?S.data=j:(j=Ag(n),j!==null&&(S.data=j)))),(j=cw?dw(e,n):fw(e,n))&&(c=Ma(c,"onBeforeInput"),0<c.length&&(d=new Rf("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:c}),d.data=j))}Wg(f,t)})}function ti(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ma(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=qs(e,n),i!=null&&r.unshift(ti(e,i,s)),i=qs(e,t),i!=null&&r.push(ti(e,i,s))),e=e.return}return r}function wr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Kf(e,t,n,r,s){for(var i=t._reactName,a=[];n!==null&&n!==r;){var l=n,u=l.alternate,c=l.stateNode;if(u!==null&&u===r)break;l.tag===5&&c!==null&&(l=c,s?(u=qs(n,i),u!=null&&a.unshift(ti(n,u,l))):s||(u=qs(n,i),u!=null&&a.push(ti(n,u,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var Cw=/\r\n?/g,Tw=/\u0000|\uFFFD/g;function qf(e){return(typeof e=="string"?e:""+e).replace(Cw,`
`).replace(Tw,"")}function Oi(e,t,n){if(t=qf(t),qf(e)!==t&&n)throw Error(A(425))}function La(){}var mu=null,pu=null;function gu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var xu=typeof setTimeout=="function"?setTimeout:void 0,Pw=typeof clearTimeout=="function"?clearTimeout:void 0,Yf=typeof Promise=="function"?Promise:void 0,Nw=typeof queueMicrotask=="function"?queueMicrotask:typeof Yf<"u"?function(e){return Yf.resolve(null).then(e).catch(_w)}:xu;function _w(e){setTimeout(function(){throw e})}function ol(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),Zs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Zs(t)}function _n(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Xf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var as=Math.random().toString(36).slice(2),Kt="__reactFiber$"+as,ni="__reactProps$"+as,un="__reactContainer$"+as,yu="__reactEvents$"+as,Mw="__reactListeners$"+as,Lw="__reactHandles$"+as;function Qn(e){var t=e[Kt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[un]||n[Kt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Xf(e);e!==null;){if(n=e[Kt])return n;e=Xf(e)}return t}e=n,n=e.parentNode}return null}function yi(e){return e=e[Kt]||e[un],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Nr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(A(33))}function xo(e){return e[ni]||null}var vu=[],_r=-1;function $n(e){return{current:e}}function xe(e){0>_r||(e.current=vu[_r],vu[_r]=null,_r--)}function me(e,t){_r++,vu[_r]=e.current,e.current=t}var Fn={},Ze=$n(Fn),ut=$n(!1),or=Fn;function Kr(e,t){var n=e.type.contextTypes;if(!n)return Fn;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 ct(e){return e=e.childContextTypes,e!=null}function Aa(){xe(ut),xe(Ze)}function Zf(e,t,n){if(Ze.current!==Fn)throw Error(A(168));me(Ze,t),me(ut,n)}function Kg(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(A(108,g1(e)||"Unknown",s));return Se({},n,r)}function Da(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Fn,or=Ze.current,me(Ze,e),me(ut,ut.current),!0}function Qf(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=Kg(e,t,or),r.__reactInternalMemoizedMergedChildContext=e,xe(ut),xe(Ze),me(Ze,e)):xe(ut),me(ut,n)}var nn=null,yo=!1,ll=!1;function qg(e){nn===null?nn=[e]:nn.push(e)}function Aw(e){yo=!0,qg(e)}function Hn(){if(!ll&&nn!==null){ll=!0;var e=0,t=ce;try{var n=nn;for(ce=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}nn=null,yo=!1}catch(s){throw nn!==null&&(nn=nn.slice(e+1)),vg(Rc,Hn),s}finally{ce=t,ll=!1}}return null}var Mr=[],Lr=0,Ra=null,Ia=0,St=[],jt=0,lr=null,rn=1,sn="";function Yn(e,t){Mr[Lr++]=Ia,Mr[Lr++]=Ra,Ra=e,Ia=t}function Yg(e,t,n){St[jt++]=rn,St[jt++]=sn,St[jt++]=lr,lr=e;var r=rn;e=sn;var s=32-Ft(r)-1;r&=~(1<<s),n+=1;var i=32-Ft(t)+s;if(30<i){var a=s-s%5;i=(r&(1<<a)-1).toString(32),r>>=a,s-=a,rn=1<<32-Ft(t)+s|n<<s|r,sn=i+e}else rn=1<<i|n<<s|r,sn=e}function Uc(e){e.return!==null&&(Yn(e,1),Yg(e,1,0))}function Wc(e){for(;e===Ra;)Ra=Mr[--Lr],Mr[Lr]=null,Ia=Mr[--Lr],Mr[Lr]=null;for(;e===lr;)lr=St[--jt],St[jt]=null,sn=St[--jt],St[jt]=null,rn=St[--jt],St[jt]=null}var xt=null,gt=null,ve=!1,It=null;function Xg(e,t){var n=Et(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Jf(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,xt=e,gt=_n(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,xt=e,gt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=lr!==null?{id:rn,overflow:sn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Et(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,xt=e,gt=null,!0):!1;default:return!1}}function wu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function bu(e){if(ve){var t=gt;if(t){var n=t;if(!Jf(e,t)){if(wu(e))throw Error(A(418));t=_n(n.nextSibling);var r=xt;t&&Jf(e,t)?Xg(r,n):(e.flags=e.flags&-4097|2,ve=!1,xt=e)}}else{if(wu(e))throw Error(A(418));e.flags=e.flags&-4097|2,ve=!1,xt=e}}}function eh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;xt=e}function zi(e){if(e!==xt)return!1;if(!ve)return eh(e),ve=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!gu(e.type,e.memoizedProps)),t&&(t=gt)){if(wu(e))throw Zg(),Error(A(418));for(;t;)Xg(e,t),t=_n(t.nextSibling)}if(eh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){gt=_n(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}gt=null}}else gt=xt?_n(e.stateNode.nextSibling):null;return!0}function Zg(){for(var e=gt;e;)e=_n(e.nextSibling)}function qr(){gt=xt=null,ve=!1}function Gc(e){It===null?It=[e]:It.push(e)}var Dw=hn.ReactCurrentBatchConfig;function xs(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(A(309));var r=n.stateNode}if(!r)throw Error(A(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var l=s.refs;a===null?delete l[i]:l[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(A(284));if(!n._owner)throw Error(A(290,e))}return e}function Bi(e,t){throw e=Object.prototype.toString.call(t),Error(A(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function th(e){var t=e._init;return t(e._payload)}function Qg(e){function t(p,x){if(e){var v=p.deletions;v===null?(p.deletions=[x],p.flags|=16):v.push(x)}}function n(p,x){if(!e)return null;for(;x!==null;)t(p,x),x=x.sibling;return null}function r(p,x){for(p=new Map;x!==null;)x.key!==null?p.set(x.key,x):p.set(x.index,x),x=x.sibling;return p}function s(p,x){return p=Dn(p,x),p.index=0,p.sibling=null,p}function i(p,x,v){return p.index=v,e?(v=p.alternate,v!==null?(v=v.index,v<x?(p.flags|=2,x):v):(p.flags|=2,x)):(p.flags|=1048576,x)}function a(p){return e&&p.alternate===null&&(p.flags|=2),p}function l(p,x,v,k){return x===null||x.tag!==6?(x=pl(v,p.mode,k),x.return=p,x):(x=s(x,v),x.return=p,x)}function u(p,x,v,k){var E=v.type;return E===Er?d(p,x,v.props.children,k,v.key):x!==null&&(x.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===xn&&th(E)===x.type)?(k=s(x,v.props),k.ref=xs(p,x,v),k.return=p,k):(k=ha(v.type,v.key,v.props,null,p.mode,k),k.ref=xs(p,x,v),k.return=p,k)}function c(p,x,v,k){return x===null||x.tag!==4||x.stateNode.containerInfo!==v.containerInfo||x.stateNode.implementation!==v.implementation?(x=gl(v,p.mode,k),x.return=p,x):(x=s(x,v.children||[]),x.return=p,x)}function d(p,x,v,k,E){return x===null||x.tag!==7?(x=sr(v,p.mode,k,E),x.return=p,x):(x=s(x,v),x.return=p,x)}function f(p,x,v){if(typeof x=="string"&&x!==""||typeof x=="number")return x=pl(""+x,p.mode,v),x.return=p,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case _i:return v=ha(x.type,x.key,x.props,null,p.mode,v),v.ref=xs(p,null,x),v.return=p,v;case jr:return x=gl(x,p.mode,v),x.return=p,x;case xn:var k=x._init;return f(p,k(x._payload),v)}if(Es(x)||fs(x))return x=sr(x,p.mode,v,null),x.return=p,x;Bi(p,x)}return null}function h(p,x,v,k){var E=x!==null?x.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return E!==null?null:l(p,x,""+v,k);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case _i:return v.key===E?u(p,x,v,k):null;case jr:return v.key===E?c(p,x,v,k):null;case xn:return E=v._init,h(p,x,E(v._payload),k)}if(Es(v)||fs(v))return E!==null?null:d(p,x,v,k,null);Bi(p,v)}return null}function g(p,x,v,k,E){if(typeof k=="string"&&k!==""||typeof k=="number")return p=p.get(v)||null,l(x,p,""+k,E);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case _i:return p=p.get(k.key===null?v:k.key)||null,u(x,p,k,E);case jr:return p=p.get(k.key===null?v:k.key)||null,c(x,p,k,E);case xn:var C=k._init;return g(p,x,v,C(k._payload),E)}if(Es(k)||fs(k))return p=p.get(v)||null,d(x,p,k,E,null);Bi(x,k)}return null}function y(p,x,v,k){for(var E=null,C=null,j=x,S=x=0,N=null;j!==null&&S<v.length;S++){j.index>S?(N=j,j=null):N=j.sibling;var P=h(p,j,v[S],k);if(P===null){j===null&&(j=N);break}e&&j&&P.alternate===null&&t(p,j),x=i(P,x,S),C===null?E=P:C.sibling=P,C=P,j=N}if(S===v.length)return n(p,j),ve&&Yn(p,S),E;if(j===null){for(;S<v.length;S++)j=f(p,v[S],k),j!==null&&(x=i(j,x,S),C===null?E=j:C.sibling=j,C=j);return ve&&Yn(p,S),E}for(j=r(p,j);S<v.length;S++)N=g(j,p,S,v[S],k),N!==null&&(e&&N.alternate!==null&&j.delete(N.key===null?S:N.key),x=i(N,x,S),C===null?E=N:C.sibling=N,C=N);return e&&j.forEach(function(V){return t(p,V)}),ve&&Yn(p,S),E}function b(p,x,v,k){var E=fs(v);if(typeof E!="function")throw Error(A(150));if(v=E.call(v),v==null)throw Error(A(151));for(var C=E=null,j=x,S=x=0,N=null,P=v.next();j!==null&&!P.done;S++,P=v.next()){j.index>S?(N=j,j=null):N=j.sibling;var V=h(p,j,P.value,k);if(V===null){j===null&&(j=N);break}e&&j&&V.alternate===null&&t(p,j),x=i(V,x,S),C===null?E=V:C.sibling=V,C=V,j=N}if(P.done)return n(p,j),ve&&Yn(p,S),E;if(j===null){for(;!P.done;S++,P=v.next())P=f(p,P.value,k),P!==null&&(x=i(P,x,S),C===null?E=P:C.sibling=P,C=P);return ve&&Yn(p,S),E}for(j=r(p,j);!P.done;S++,P=v.next())P=g(j,p,S,P.value,k),P!==null&&(e&&P.alternate!==null&&j.delete(P.key===null?S:P.key),x=i(P,x,S),C===null?E=P:C.sibling=P,C=P);return e&&j.forEach(function(B){return t(p,B)}),ve&&Yn(p,S),E}function w(p,x,v,k){if(typeof v=="object"&&v!==null&&v.type===Er&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case _i:e:{for(var E=v.key,C=x;C!==null;){if(C.key===E){if(E=v.type,E===Er){if(C.tag===7){n(p,C.sibling),x=s(C,v.props.children),x.return=p,p=x;break e}}else if(C.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===xn&&th(E)===C.type){n(p,C.sibling),x=s(C,v.props),x.ref=xs(p,C,v),x.return=p,p=x;break e}n(p,C);break}else t(p,C);C=C.sibling}v.type===Er?(x=sr(v.props.children,p.mode,k,v.key),x.return=p,p=x):(k=ha(v.type,v.key,v.props,null,p.mode,k),k.ref=xs(p,x,v),k.return=p,p=k)}return a(p);case jr:e:{for(C=v.key;x!==null;){if(x.key===C)if(x.tag===4&&x.stateNode.containerInfo===v.containerInfo&&x.stateNode.implementation===v.implementation){n(p,x.sibling),x=s(x,v.children||[]),x.return=p,p=x;break e}else{n(p,x);break}else t(p,x);x=x.sibling}x=gl(v,p.mode,k),x.return=p,p=x}return a(p);case xn:return C=v._init,w(p,x,C(v._payload),k)}if(Es(v))return y(p,x,v,k);if(fs(v))return b(p,x,v,k);Bi(p,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,x!==null&&x.tag===6?(n(p,x.sibling),x=s(x,v),x.return=p,p=x):(n(p,x),x=pl(v,p.mode,k),x.return=p,p=x),a(p)):n(p,x)}return w}var Yr=Qg(!0),Jg=Qg(!1),Va=$n(null),Fa=null,Ar=null,Kc=null;function qc(){Kc=Ar=Fa=null}function Yc(e){var t=Va.current;xe(Va),e._currentValue=t}function ku(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 Ur(e,t){Fa=e,Kc=Ar=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(lt=!0),e.firstContext=null)}function Pt(e){var t=e._currentValue;if(Kc!==e)if(e={context:e,memoizedValue:t,next:null},Ar===null){if(Fa===null)throw Error(A(308));Ar=e,Fa.dependencies={lanes:0,firstContext:e}}else Ar=Ar.next=e;return t}var Jn=null;function Xc(e){Jn===null?Jn=[e]:Jn.push(e)}function e0(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,Xc(t)):(n.next=s.next,s.next=n),t.interleaved=n,cn(e,r)}function cn(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 yn=!1;function Zc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function t0(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 on(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Mn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ie&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,cn(e,n)}return s=r.interleaved,s===null?(t.next=t,Xc(r)):(t.next=s.next,s.next=t),r.interleaved=t,cn(e,n)}function oa(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,Ic(e,n)}}function nh(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 a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=a:i=i.next=a,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 Oa(e,t,n,r){var s=e.updateQueue;yn=!1;var i=s.firstBaseUpdate,a=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var u=l,c=u.next;u.next=null,a===null?i=c:a.next=c,a=u;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=u))}if(i!==null){var f=s.baseState;a=0,d=c=u=null,l=i;do{var h=l.lane,g=l.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,b=l;switch(h=t,g=n,b.tag){case 1:if(y=b.payload,typeof y=="function"){f=y.call(g,f,h);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=b.payload,h=typeof y=="function"?y.call(g,f,h):y,h==null)break e;f=Se({},f,h);break e;case 2:yn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[l]:h.push(l))}else g={eventTime:g,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=g,u=f):d=d.next=g,a|=h;if(l=l.next,l===null){if(l=s.shared.pending,l===null)break;h=l,l=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 a|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);cr|=a,e.lanes=a,e.memoizedState=f}}function rh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(A(191,s));s.call(r)}}}var vi={},Yt=$n(vi),ri=$n(vi),si=$n(vi);function er(e){if(e===vi)throw Error(A(174));return e}function Qc(e,t){switch(me(si,t),me(ri,e),me(Yt,vi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:nu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=nu(t,e)}xe(Yt),me(Yt,t)}function Xr(){xe(Yt),xe(ri),xe(si)}function n0(e){er(si.current);var t=er(Yt.current),n=nu(t,e.type);t!==n&&(me(ri,e),me(Yt,n))}function Jc(e){ri.current===e&&(xe(Yt),xe(ri))}var we=$n(0);function za(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ul=[];function ed(){for(var e=0;e<ul.length;e++)ul[e]._workInProgressVersionPrimary=null;ul.length=0}var la=hn.ReactCurrentDispatcher,cl=hn.ReactCurrentBatchConfig,ur=0,be=null,Ae=null,Fe=null,Ba=!1,Rs=!1,ii=0,Rw=0;function We(){throw Error(A(321))}function td(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Bt(e[n],t[n]))return!1;return!0}function nd(e,t,n,r,s,i){if(ur=i,be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,la.current=e===null||e.memoizedState===null?Ow:zw,e=n(r,s),Rs){i=0;do{if(Rs=!1,ii=0,25<=i)throw Error(A(301));i+=1,Fe=Ae=null,t.updateQueue=null,la.current=Bw,e=n(r,s)}while(Rs)}if(la.current=$a,t=Ae!==null&&Ae.next!==null,ur=0,Fe=Ae=be=null,Ba=!1,t)throw Error(A(300));return e}function rd(){var e=ii!==0;return ii=0,e}function Ut(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fe===null?be.memoizedState=Fe=e:Fe=Fe.next=e,Fe}function Nt(){if(Ae===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=Ae.next;var t=Fe===null?be.memoizedState:Fe.next;if(t!==null)Fe=t,Ae=e;else{if(e===null)throw Error(A(310));Ae=e,e={memoizedState:Ae.memoizedState,baseState:Ae.baseState,baseQueue:Ae.baseQueue,queue:Ae.queue,next:null},Fe===null?be.memoizedState=Fe=e:Fe=Fe.next=e}return Fe}function ai(e,t){return typeof t=="function"?t(e):t}function dl(e){var t=Nt(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var r=Ae,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var a=s.next;s.next=i.next,i.next=a}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var l=a=null,u=null,c=i;do{var d=c.lane;if((ur&d)===d)u!==null&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(l=u=f,a=r):u=u.next=f,be.lanes|=d,cr|=d}c=c.next}while(c!==null&&c!==i);u===null?a=r:u.next=l,Bt(r,t.memoizedState)||(lt=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,be.lanes|=i,cr|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function fl(e){var t=Nt(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var a=s=s.next;do i=e(i,a.action),a=a.next;while(a!==s);Bt(i,t.memoizedState)||(lt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function r0(){}function s0(e,t){var n=be,r=Nt(),s=t(),i=!Bt(r.memoizedState,s);if(i&&(r.memoizedState=s,lt=!0),r=r.queue,sd(o0.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Fe!==null&&Fe.memoizedState.tag&1){if(n.flags|=2048,oi(9,a0.bind(null,n,r,s,t),void 0,null),Oe===null)throw Error(A(349));ur&30||i0(n,t,s)}return s}function i0(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=be.updateQueue,t===null?(t={lastEffect:null,stores:null},be.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function a0(e,t,n,r){t.value=n,t.getSnapshot=r,l0(t)&&u0(e)}function o0(e,t,n){return n(function(){l0(t)&&u0(e)})}function l0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Bt(e,n)}catch{return!0}}function u0(e){var t=cn(e,1);t!==null&&Ot(t,e,1,-1)}function sh(e){var t=Ut();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ai,lastRenderedState:e},t.queue=e,e=e.dispatch=Fw.bind(null,be,e),[t.memoizedState,e]}function oi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=be.updateQueue,t===null?(t={lastEffect:null,stores:null},be.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function c0(){return Nt().memoizedState}function ua(e,t,n,r){var s=Ut();be.flags|=e,s.memoizedState=oi(1|t,n,void 0,r===void 0?null:r)}function vo(e,t,n,r){var s=Nt();r=r===void 0?null:r;var i=void 0;if(Ae!==null){var a=Ae.memoizedState;if(i=a.destroy,r!==null&&td(r,a.deps)){s.memoizedState=oi(t,n,i,r);return}}be.flags|=e,s.memoizedState=oi(1|t,n,i,r)}function ih(e,t){return ua(8390656,8,e,t)}function sd(e,t){return vo(2048,8,e,t)}function d0(e,t){return vo(4,2,e,t)}function f0(e,t){return vo(4,4,e,t)}function h0(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function m0(e,t,n){return n=n!=null?n.concat([e]):null,vo(4,4,h0.bind(null,t,e),n)}function id(){}function p0(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&td(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function g0(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&td(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function x0(e,t,n){return ur&21?(Bt(n,t)||(n=kg(),be.lanes|=n,cr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,lt=!0),e.memoizedState=n)}function Iw(e,t){var n=ce;ce=n!==0&&4>n?n:4,e(!0);var r=cl.transition;cl.transition={};try{e(!1),t()}finally{ce=n,cl.transition=r}}function y0(){return Nt().memoizedState}function Vw(e,t,n){var r=An(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},v0(e))w0(t,n);else if(n=e0(e,t,n,r),n!==null){var s=st();Ot(n,e,r,s),b0(n,t,r)}}function Fw(e,t,n){var r=An(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(v0(e))w0(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(s.hasEagerState=!0,s.eagerState=l,Bt(l,a)){var u=t.interleaved;u===null?(s.next=s,Xc(t)):(s.next=u.next,u.next=s),t.interleaved=s;return}}catch{}finally{}n=e0(e,t,s,r),n!==null&&(s=st(),Ot(n,e,r,s),b0(n,t,r))}}function v0(e){var t=e.alternate;return e===be||t!==null&&t===be}function w0(e,t){Rs=Ba=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function b0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ic(e,n)}}var $a={readContext:Pt,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useInsertionEffect:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useSyncExternalStore:We,useId:We,unstable_isNewReconciler:!1},Ow={readContext:Pt,useCallback:function(e,t){return Ut().memoizedState=[e,t===void 0?null:t],e},useContext:Pt,useEffect:ih,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ua(4194308,4,h0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ua(4194308,4,e,t)},useInsertionEffect:function(e,t){return ua(4,2,e,t)},useMemo:function(e,t){var n=Ut();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ut();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=Vw.bind(null,be,e),[r.memoizedState,e]},useRef:function(e){var t=Ut();return e={current:e},t.memoizedState=e},useState:sh,useDebugValue:id,useDeferredValue:function(e){return Ut().memoizedState=e},useTransition:function(){var e=sh(!1),t=e[0];return e=Iw.bind(null,e[1]),Ut().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=be,s=Ut();if(ve){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),Oe===null)throw Error(A(349));ur&30||i0(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,ih(o0.bind(null,r,i,e),[e]),r.flags|=2048,oi(9,a0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ut(),t=Oe.identifierPrefix;if(ve){var n=sn,r=rn;n=(r&~(1<<32-Ft(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ii++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Rw++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},zw={readContext:Pt,useCallback:p0,useContext:Pt,useEffect:sd,useImperativeHandle:m0,useInsertionEffect:d0,useLayoutEffect:f0,useMemo:g0,useReducer:dl,useRef:c0,useState:function(){return dl(ai)},useDebugValue:id,useDeferredValue:function(e){var t=Nt();return x0(t,Ae.memoizedState,e)},useTransition:function(){var e=dl(ai)[0],t=Nt().memoizedState;return[e,t]},useMutableSource:r0,useSyncExternalStore:s0,useId:y0,unstable_isNewReconciler:!1},Bw={readContext:Pt,useCallback:p0,useContext:Pt,useEffect:sd,useImperativeHandle:m0,useInsertionEffect:d0,useLayoutEffect:f0,useMemo:g0,useReducer:fl,useRef:c0,useState:function(){return fl(ai)},useDebugValue:id,useDeferredValue:function(e){var t=Nt();return Ae===null?t.memoizedState=e:x0(t,Ae.memoizedState,e)},useTransition:function(){var e=fl(ai)[0],t=Nt().memoizedState;return[e,t]},useMutableSource:r0,useSyncExternalStore:s0,useId:y0,unstable_isNewReconciler:!1};function Dt(e,t){if(e&&e.defaultProps){t=Se({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Su(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Se({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var wo={isMounted:function(e){return(e=e._reactInternals)?gr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=st(),s=An(e),i=on(r,s);i.payload=t,n!=null&&(i.callback=n),t=Mn(e,i,s),t!==null&&(Ot(t,e,s,r),oa(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=st(),s=An(e),i=on(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Mn(e,i,s),t!==null&&(Ot(t,e,s,r),oa(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=st(),r=An(e),s=on(n,r);s.tag=2,t!=null&&(s.callback=t),t=Mn(e,s,r),t!==null&&(Ot(t,e,r,n),oa(t,e,r))}};function ah(e,t,n,r,s,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!Js(n,r)||!Js(s,i):!0}function k0(e,t,n){var r=!1,s=Fn,i=t.contextType;return typeof i=="object"&&i!==null?i=Pt(i):(s=ct(t)?or:Ze.current,r=t.contextTypes,i=(r=r!=null)?Kr(e,s):Fn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=wo,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function oh(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&wo.enqueueReplaceState(t,t.state,null)}function ju(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},Zc(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=Pt(i):(i=ct(t)?or:Ze.current,s.context=Kr(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Su(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&wo.enqueueReplaceState(s,s.state,null),Oa(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Zr(e,t){try{var n="",r=t;do n+=p1(r),r=r.return;while(r);var s=n}catch(i){s=`
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:s,digest:null}}function hl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Eu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var $w=typeof WeakMap=="function"?WeakMap:Map;function S0(e,t,n){n=on(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ua||(Ua=!0,Ru=r),Eu(e,t)},n}function j0(e,t,n){n=on(-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(){Eu(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Eu(e,t),typeof r!="function"&&(Ln===null?Ln=new Set([this]):Ln.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function lh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new $w;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=nb.bind(null,e,t,n),t.then(e,e))}function uh(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 ch(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=on(-1,1),t.tag=2,Mn(n,t,1))),n.lanes|=1),e)}var Hw=hn.ReactCurrentOwner,lt=!1;function tt(e,t,n,r){t.child=e===null?Jg(t,null,n,r):Yr(t,e.child,n,r)}function dh(e,t,n,r,s){n=n.render;var i=t.ref;return Ur(t,s),r=nd(e,t,n,r,i,s),n=rd(),e!==null&&!lt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,dn(e,t,s)):(ve&&n&&Uc(t),t.flags|=1,tt(e,t,r,s),t.child)}function fh(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!hd(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,E0(e,t,i,r,s)):(e=ha(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 a=i.memoizedProps;if(n=n.compare,n=n!==null?n:Js,n(a,r)&&e.ref===t.ref)return dn(e,t,s)}return t.flags|=1,e=Dn(i,r),e.ref=t.ref,e.return=t,t.child=e}function E0(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(Js(i,r)&&e.ref===t.ref)if(lt=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(lt=!0);else return t.lanes=e.lanes,dn(e,t,s)}return Cu(e,t,n,r,s)}function C0(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},me(Rr,pt),pt|=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,me(Rr,pt),pt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,me(Rr,pt),pt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,me(Rr,pt),pt|=r;return tt(e,t,s,n),t.child}function T0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cu(e,t,n,r,s){var i=ct(n)?or:Ze.current;return i=Kr(t,i),Ur(t,s),n=nd(e,t,n,r,i,s),r=rd(),e!==null&&!lt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,dn(e,t,s)):(ve&&r&&Uc(t),t.flags|=1,tt(e,t,n,s),t.child)}function hh(e,t,n,r,s){if(ct(n)){var i=!0;Da(t)}else i=!1;if(Ur(t,s),t.stateNode===null)ca(e,t),k0(t,n,r),ju(t,n,r,s),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var u=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=Pt(c):(c=ct(n)?or:Ze.current,c=Kr(t,c));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||u!==c)&&oh(t,a,r,c),yn=!1;var h=t.memoizedState;a.state=h,Oa(t,r,a,s),u=t.memoizedState,l!==r||h!==u||ut.current||yn?(typeof d=="function"&&(Su(t,n,d,r),u=t.memoizedState),(l=yn||ah(t,n,l,r,h,u,c))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=c,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,t0(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Dt(t.type,l),a.props=c,f=t.pendingProps,h=a.context,u=n.contextType,typeof u=="object"&&u!==null?u=Pt(u):(u=ct(n)?or:Ze.current,u=Kr(t,u));var g=n.getDerivedStateFromProps;(d=typeof g=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==f||h!==u)&&oh(t,a,r,u),yn=!1,h=t.memoizedState,a.state=h,Oa(t,r,a,s);var y=t.memoizedState;l!==f||h!==y||ut.current||yn?(typeof g=="function"&&(Su(t,n,g,r),y=t.memoizedState),(c=yn||ah(t,n,c,r,h,y,u)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,y,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,y,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),a.props=r,a.state=y,a.context=u,r=c):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Tu(e,t,n,r,i,s)}function Tu(e,t,n,r,s,i){T0(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return s&&Qf(t,n,!1),dn(e,t,i);r=t.stateNode,Hw.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Yr(t,e.child,null,i),t.child=Yr(t,null,l,i)):tt(e,t,l,i),t.memoizedState=r.state,s&&Qf(t,n,!0),t.child}function P0(e){var t=e.stateNode;t.pendingContext?Zf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Zf(e,t.context,!1),Qc(e,t.containerInfo)}function mh(e,t,n,r,s){return qr(),Gc(s),t.flags|=256,tt(e,t,n,r),t.child}var Pu={dehydrated:null,treeContext:null,retryLane:0};function Nu(e){return{baseLanes:e,cachePool:null,transitions:null}}function N0(e,t,n){var r=t.pendingProps,s=we.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(s&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),me(we,s&1),e===null)return bu(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):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=So(a,r,0,null),e=sr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Nu(n),t.memoizedState=Pu,e):ad(t,a));if(s=e.memoizedState,s!==null&&(l=s.dehydrated,l!==null))return Uw(e,t,a,r,l,s,n);if(i){i=r.fallback,a=t.mode,s=e.child,l=s.sibling;var u={mode:"hidden",children:r.children};return!(a&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Dn(s,u),r.subtreeFlags=s.subtreeFlags&14680064),l!==null?i=Dn(l,i):(i=sr(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?Nu(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=Pu,r}return i=e.child,e=i.sibling,r=Dn(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 ad(e,t){return t=So({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function $i(e,t,n,r){return r!==null&&Gc(r),Yr(t,e.child,null,n),e=ad(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Uw(e,t,n,r,s,i,a){if(n)return t.flags&256?(t.flags&=-257,r=hl(Error(A(422))),$i(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=So({mode:"visible",children:r.children},s,0,null),i=sr(i,s,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Yr(t,e.child,null,a),t.child.memoizedState=Nu(a),t.memoizedState=Pu,i);if(!(t.mode&1))return $i(e,t,a,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(A(419)),r=hl(i,r,void 0),$i(e,t,a,r)}if(l=(a&e.childLanes)!==0,lt||l){if(r=Oe,r!==null){switch(a&-a){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|a)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,cn(e,s),Ot(r,e,s,-1))}return fd(),r=hl(Error(A(421))),$i(e,t,a,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=rb.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,gt=_n(s.nextSibling),xt=t,ve=!0,It=null,e!==null&&(St[jt++]=rn,St[jt++]=sn,St[jt++]=lr,rn=e.id,sn=e.overflow,lr=t),t=ad(t,r.children),t.flags|=4096,t)}function ph(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ku(e.return,t,n)}function ml(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 _0(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(tt(e,t,r.children,n),r=we.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&&ph(e,n,t);else if(e.tag===19)ph(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(me(we,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&&za(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),ml(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&&za(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}ml(t,!0,n,null,i);break;case"together":ml(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ca(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function dn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),cr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(A(153));if(t.child!==null){for(e=t.child,n=Dn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Dn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ww(e,t,n){switch(t.tag){case 3:P0(t),qr();break;case 5:n0(t);break;case 1:ct(t.type)&&Da(t);break;case 4:Qc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;me(Va,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(me(we,we.current&1),t.flags|=128,null):n&t.child.childLanes?N0(e,t,n):(me(we,we.current&1),e=dn(e,t,n),e!==null?e.sibling:null);me(we,we.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return _0(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),me(we,we.current),r)break;return null;case 22:case 23:return t.lanes=0,C0(e,t,n)}return dn(e,t,n)}var M0,_u,L0,A0;M0=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}};_u=function(){};L0=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,er(Yt.current);var i=null;switch(n){case"input":s=Ql(e,s),r=Ql(e,r),i=[];break;case"select":s=Se({},s,{value:void 0}),r=Se({},r,{value:void 0}),i=[];break;case"textarea":s=tu(e,s),r=tu(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=La)}ru(n,r);var a;n=null;for(c in s)if(!r.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var l=s[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Gs.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var u=r[c];if(l=s!=null?s[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(u!=null||l!=null))if(c==="style")if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(i||(i=[]),i.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,l=l?l.__html:void 0,u!=null&&l!==u&&(i=i||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Gs.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&ge("scroll",e),i||l===u||(i=[])):(i=i||[]).push(c,u))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};A0=function(e,t,n,r){n!==r&&(t.flags|=4)};function ys(e,t){if(!ve)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 Ge(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 Gw(e,t,n){var r=t.pendingProps;switch(Wc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ge(t),null;case 1:return ct(t.type)&&Aa(),Ge(t),null;case 3:return r=t.stateNode,Xr(),xe(ut),xe(Ze),ed(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(zi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,It!==null&&(Fu(It),It=null))),_u(e,t),Ge(t),null;case 5:Jc(t);var s=er(si.current);if(n=t.type,e!==null&&t.stateNode!=null)L0(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(A(166));return Ge(t),null}if(e=er(Yt.current),zi(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Kt]=t,r[ni]=i,e=(t.mode&1)!==0,n){case"dialog":ge("cancel",r),ge("close",r);break;case"iframe":case"object":case"embed":ge("load",r);break;case"video":case"audio":for(s=0;s<Ts.length;s++)ge(Ts[s],r);break;case"source":ge("error",r);break;case"img":case"image":case"link":ge("error",r),ge("load",r);break;case"details":ge("toggle",r);break;case"input":jf(r,i),ge("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ge("invalid",r);break;case"textarea":Cf(r,i),ge("invalid",r)}ru(n,i),s=null;for(var a in i)if(i.hasOwnProperty(a)){var l=i[a];a==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&Oi(r.textContent,l,e),s=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&Oi(r.textContent,l,e),s=["children",""+l]):Gs.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&ge("scroll",r)}switch(n){case"input":Mi(r),Ef(r,i,!0);break;case"textarea":Mi(r),Tf(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=La)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=og(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Kt]=t,e[ni]=r,M0(e,t,!1,!1),t.stateNode=e;e:{switch(a=su(n,r),n){case"dialog":ge("cancel",e),ge("close",e),s=r;break;case"iframe":case"object":case"embed":ge("load",e),s=r;break;case"video":case"audio":for(s=0;s<Ts.length;s++)ge(Ts[s],e);s=r;break;case"source":ge("error",e),s=r;break;case"img":case"image":case"link":ge("error",e),ge("load",e),s=r;break;case"details":ge("toggle",e),s=r;break;case"input":jf(e,r),s=Ql(e,r),ge("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=Se({},r,{value:void 0}),ge("invalid",e);break;case"textarea":Cf(e,r),s=tu(e,r),ge("invalid",e);break;default:s=r}ru(n,s),l=s;for(i in l)if(l.hasOwnProperty(i)){var u=l[i];i==="style"?cg(e,u):i==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&lg(e,u)):i==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Ks(e,u):typeof u=="number"&&Ks(e,""+u):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Gs.hasOwnProperty(i)?u!=null&&i==="onScroll"&&ge("scroll",e):u!=null&&_c(e,i,u,a))}switch(n){case"input":Mi(e),Ef(e,r,!1);break;case"textarea":Mi(e),Tf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Vn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?zr(e,!!r.multiple,i,!1):r.defaultValue!=null&&zr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=La)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ge(t),null;case 6:if(e&&t.stateNode!=null)A0(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(A(166));if(n=er(si.current),er(Yt.current),zi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Kt]=t,(i=r.nodeValue!==n)&&(e=xt,e!==null))switch(e.tag){case 3:Oi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Oi(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Kt]=t,t.stateNode=r}return Ge(t),null;case 13:if(xe(we),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ve&&gt!==null&&t.mode&1&&!(t.flags&128))Zg(),qr(),t.flags|=98560,i=!1;else if(i=zi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(A(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(A(317));i[Kt]=t}else qr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ge(t),i=!1}else It!==null&&(Fu(It),It=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||we.current&1?De===0&&(De=3):fd())),t.updateQueue!==null&&(t.flags|=4),Ge(t),null);case 4:return Xr(),_u(e,t),e===null&&ei(t.stateNode.containerInfo),Ge(t),null;case 10:return Yc(t.type._context),Ge(t),null;case 17:return ct(t.type)&&Aa(),Ge(t),null;case 19:if(xe(we),i=t.memoizedState,i===null)return Ge(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)ys(i,!1);else{if(De!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=za(e),a!==null){for(t.flags|=128,ys(i,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return me(we,we.current&1|2),t.child}e=e.sibling}i.tail!==null&&Te()>Qr&&(t.flags|=128,r=!0,ys(i,!1),t.lanes=4194304)}else{if(!r)if(e=za(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ys(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!ve)return Ge(t),null}else 2*Te()-i.renderingStartTime>Qr&&n!==1073741824&&(t.flags|=128,r=!0,ys(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Te(),t.sibling=null,n=we.current,me(we,r?n&1|2:n&1),t):(Ge(t),null);case 22:case 23:return dd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?pt&1073741824&&(Ge(t),t.subtreeFlags&6&&(t.flags|=8192)):Ge(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function Kw(e,t){switch(Wc(t),t.tag){case 1:return ct(t.type)&&Aa(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xr(),xe(ut),xe(Ze),ed(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Jc(t),null;case 13:if(xe(we),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));qr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xe(we),null;case 4:return Xr(),null;case 10:return Yc(t.type._context),null;case 22:case 23:return dd(),null;case 24:return null;default:return null}}var Hi=!1,Xe=!1,qw=typeof WeakSet=="function"?WeakSet:Set,F=null;function Dr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ce(e,t,r)}else n.current=null}function Mu(e,t,n){try{n()}catch(r){Ce(e,t,r)}}var gh=!1;function Yw(e,t){if(mu=Na,e=Fg(),Hc(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 a=0,l=-1,u=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var g;f!==n||s!==0&&f.nodeType!==3||(l=a+s),f!==i||r!==0&&f.nodeType!==3||(u=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(g=f.firstChild)!==null;)h=f,f=g;for(;;){if(f===e)break t;if(h===n&&++c===s&&(l=a),h===i&&++d===r&&(u=a),(g=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=g}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(pu={focusedElem:e,selectionRange:n},Na=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var b=y.memoizedProps,w=y.memoizedState,p=t.stateNode,x=p.getSnapshotBeforeUpdate(t.elementType===t.type?b:Dt(t.type,b),w);p.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(k){Ce(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return y=gh,gh=!1,y}function Is(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&&Mu(t,n,i)}s=s.next}while(s!==r)}}function bo(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 Lu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function D0(e){var t=e.alternate;t!==null&&(e.alternate=null,D0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Kt],delete t[ni],delete t[yu],delete t[Mw],delete t[Lw])),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 R0(e){return e.tag===5||e.tag===3||e.tag===4}function xh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||R0(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 Au(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=La));else if(r!==4&&(e=e.child,e!==null))for(Au(e,t,n),e=e.sibling;e!==null;)Au(e,t,n),e=e.sibling}function Du(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(Du(e,t,n),e=e.sibling;e!==null;)Du(e,t,n),e=e.sibling}var ze=null,Rt=!1;function pn(e,t,n){for(n=n.child;n!==null;)I0(e,t,n),n=n.sibling}function I0(e,t,n){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(ho,n)}catch{}switch(n.tag){case 5:Xe||Dr(n,t);case 6:var r=ze,s=Rt;ze=null,pn(e,t,n),ze=r,Rt=s,ze!==null&&(Rt?(e=ze,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ze.removeChild(n.stateNode));break;case 18:ze!==null&&(Rt?(e=ze,n=n.stateNode,e.nodeType===8?ol(e.parentNode,n):e.nodeType===1&&ol(e,n),Zs(e)):ol(ze,n.stateNode));break;case 4:r=ze,s=Rt,ze=n.stateNode.containerInfo,Rt=!0,pn(e,t,n),ze=r,Rt=s;break;case 0:case 11:case 14:case 15:if(!Xe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Mu(n,t,a),s=s.next}while(s!==r)}pn(e,t,n);break;case 1:if(!Xe&&(Dr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ce(n,t,l)}pn(e,t,n);break;case 21:pn(e,t,n);break;case 22:n.mode&1?(Xe=(r=Xe)||n.memoizedState!==null,pn(e,t,n),Xe=r):pn(e,t,n);break;default:pn(e,t,n)}}function yh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new qw),t.forEach(function(r){var s=sb.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Mt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:ze=l.stateNode,Rt=!1;break e;case 3:ze=l.stateNode.containerInfo,Rt=!0;break e;case 4:ze=l.stateNode.containerInfo,Rt=!0;break e}l=l.return}if(ze===null)throw Error(A(160));I0(i,a,s),ze=null,Rt=!1;var u=s.alternate;u!==null&&(u.return=null),s.return=null}catch(c){Ce(s,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)V0(t,e),t=t.sibling}function V0(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Mt(t,e),Ht(e),r&4){try{Is(3,e,e.return),bo(3,e)}catch(b){Ce(e,e.return,b)}try{Is(5,e,e.return)}catch(b){Ce(e,e.return,b)}}break;case 1:Mt(t,e),Ht(e),r&512&&n!==null&&Dr(n,n.return);break;case 5:if(Mt(t,e),Ht(e),r&512&&n!==null&&Dr(n,n.return),e.flags&32){var s=e.stateNode;try{Ks(s,"")}catch(b){Ce(e,e.return,b)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,a=n!==null?n.memoizedProps:i,l=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&ig(s,i),su(l,a);var c=su(l,i);for(a=0;a<u.length;a+=2){var d=u[a],f=u[a+1];d==="style"?cg(s,f):d==="dangerouslySetInnerHTML"?lg(s,f):d==="children"?Ks(s,f):_c(s,d,f,c)}switch(l){case"input":Jl(s,i);break;case"textarea":ag(s,i);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?zr(s,!!i.multiple,g,!1):h!==!!i.multiple&&(i.defaultValue!=null?zr(s,!!i.multiple,i.defaultValue,!0):zr(s,!!i.multiple,i.multiple?[]:"",!1))}s[ni]=i}catch(b){Ce(e,e.return,b)}}break;case 6:if(Mt(t,e),Ht(e),r&4){if(e.stateNode===null)throw Error(A(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(b){Ce(e,e.return,b)}}break;case 3:if(Mt(t,e),Ht(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Zs(t.containerInfo)}catch(b){Ce(e,e.return,b)}break;case 4:Mt(t,e),Ht(e);break;case 13:Mt(t,e),Ht(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(ud=Te())),r&4&&yh(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Xe=(c=Xe)||d,Mt(t,e),Xe=c):Mt(t,e),Ht(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(F=e,d=e.child;d!==null;){for(f=F=d;F!==null;){switch(h=F,g=h.child,h.tag){case 0:case 11:case 14:case 15:Is(4,h,h.return);break;case 1:Dr(h,h.return);var y=h.stateNode;if(typeof y.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(b){Ce(r,n,b)}}break;case 5:Dr(h,h.return);break;case 22:if(h.memoizedState!==null){wh(f);continue}}g!==null?(g.return=h,F=g):wh(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{s=f.stateNode,c?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=f.stateNode,u=f.memoizedProps.style,a=u!=null&&u.hasOwnProperty("display")?u.display:null,l.style.display=ug("display",a))}catch(b){Ce(e,e.return,b)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(b){Ce(e,e.return,b)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Mt(t,e),Ht(e),r&4&&yh(e);break;case 21:break;default:Mt(t,e),Ht(e)}}function Ht(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(R0(n)){var r=n;break e}n=n.return}throw Error(A(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Ks(s,""),r.flags&=-33);var i=xh(e);Du(e,i,s);break;case 3:case 4:var a=r.stateNode.containerInfo,l=xh(e);Au(e,l,a);break;default:throw Error(A(161))}}catch(u){Ce(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Xw(e,t,n){F=e,F0(e)}function F0(e,t,n){for(var r=(e.mode&1)!==0;F!==null;){var s=F,i=s.child;if(s.tag===22&&r){var a=s.memoizedState!==null||Hi;if(!a){var l=s.alternate,u=l!==null&&l.memoizedState!==null||Xe;l=Hi;var c=Xe;if(Hi=a,(Xe=u)&&!c)for(F=s;F!==null;)a=F,u=a.child,a.tag===22&&a.memoizedState!==null?bh(s):u!==null?(u.return=a,F=u):bh(s);for(;i!==null;)F=i,F0(i),i=i.sibling;F=s,Hi=l,Xe=c}vh(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,F=i):vh(e)}}function vh(e){for(;F!==null;){var t=F;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Xe||bo(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Xe)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:Dt(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&rh(t,i,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}rh(t,a,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&Zs(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(A(163))}Xe||t.flags&512&&Lu(t)}catch(h){Ce(t,t.return,h)}}if(t===e){F=null;break}if(n=t.sibling,n!==null){n.return=t.return,F=n;break}F=t.return}}function wh(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var n=t.sibling;if(n!==null){n.return=t.return,F=n;break}F=t.return}}function bh(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{bo(4,t)}catch(u){Ce(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(u){Ce(t,s,u)}}var i=t.return;try{Lu(t)}catch(u){Ce(t,i,u)}break;case 5:var a=t.return;try{Lu(t)}catch(u){Ce(t,a,u)}}}catch(u){Ce(t,t.return,u)}if(t===e){F=null;break}var l=t.sibling;if(l!==null){l.return=t.return,F=l;break}F=t.return}}var Zw=Math.ceil,Ha=hn.ReactCurrentDispatcher,od=hn.ReactCurrentOwner,Tt=hn.ReactCurrentBatchConfig,ie=0,Oe=null,Ne=null,$e=0,pt=0,Rr=$n(0),De=0,li=null,cr=0,ko=0,ld=0,Vs=null,ot=null,ud=0,Qr=1/0,tn=null,Ua=!1,Ru=null,Ln=null,Ui=!1,Sn=null,Wa=0,Fs=0,Iu=null,da=-1,fa=0;function st(){return ie&6?Te():da!==-1?da:da=Te()}function An(e){return e.mode&1?ie&2&&$e!==0?$e&-$e:Dw.transition!==null?(fa===0&&(fa=kg()),fa):(e=ce,e!==0||(e=window.event,e=e===void 0?16:Ng(e.type)),e):1}function Ot(e,t,n,r){if(50<Fs)throw Fs=0,Iu=null,Error(A(185));gi(e,n,r),(!(ie&2)||e!==Oe)&&(e===Oe&&(!(ie&2)&&(ko|=n),De===4&&bn(e,$e)),dt(e,r),n===1&&ie===0&&!(t.mode&1)&&(Qr=Te()+500,yo&&Hn()))}function dt(e,t){var n=e.callbackNode;D1(e,t);var r=Pa(e,e===Oe?$e:0);if(r===0)n!==null&&_f(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&_f(n),t===1)e.tag===0?Aw(kh.bind(null,e)):qg(kh.bind(null,e)),Nw(function(){!(ie&6)&&Hn()}),n=null;else{switch(Sg(r)){case 1:n=Rc;break;case 4:n=wg;break;case 16:n=Ta;break;case 536870912:n=bg;break;default:n=Ta}n=G0(n,O0.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function O0(e,t){if(da=-1,fa=0,ie&6)throw Error(A(327));var n=e.callbackNode;if(Wr()&&e.callbackNode!==n)return null;var r=Pa(e,e===Oe?$e:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ga(e,r);else{t=r;var s=ie;ie|=2;var i=B0();(Oe!==e||$e!==t)&&(tn=null,Qr=Te()+500,rr(e,t));do try{eb();break}catch(l){z0(e,l)}while(!0);qc(),Ha.current=i,ie=s,Ne!==null?t=0:(Oe=null,$e=0,t=De)}if(t!==0){if(t===2&&(s=uu(e),s!==0&&(r=s,t=Vu(e,s))),t===1)throw n=li,rr(e,0),bn(e,r),dt(e,Te()),n;if(t===6)bn(e,r);else{if(s=e.current.alternate,!(r&30)&&!Qw(s)&&(t=Ga(e,r),t===2&&(i=uu(e),i!==0&&(r=i,t=Vu(e,i))),t===1))throw n=li,rr(e,0),bn(e,r),dt(e,Te()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(A(345));case 2:Xn(e,ot,tn);break;case 3:if(bn(e,r),(r&130023424)===r&&(t=ud+500-Te(),10<t)){if(Pa(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){st(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=xu(Xn.bind(null,e,ot,tn),t);break}Xn(e,ot,tn);break;case 4:if(bn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var a=31-Ft(r);i=1<<a,a=t[a],a>s&&(s=a),r&=~i}if(r=s,r=Te()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Zw(r/1960))-r,10<r){e.timeoutHandle=xu(Xn.bind(null,e,ot,tn),r);break}Xn(e,ot,tn);break;case 5:Xn(e,ot,tn);break;default:throw Error(A(329))}}}return dt(e,Te()),e.callbackNode===n?O0.bind(null,e):null}function Vu(e,t){var n=Vs;return e.current.memoizedState.isDehydrated&&(rr(e,t).flags|=256),e=Ga(e,t),e!==2&&(t=ot,ot=n,t!==null&&Fu(t)),e}function Fu(e){ot===null?ot=e:ot.push.apply(ot,e)}function Qw(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!Bt(i(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function bn(e,t){for(t&=~ld,t&=~ko,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ft(t),r=1<<n;e[n]=-1,t&=~r}}function kh(e){if(ie&6)throw Error(A(327));Wr();var t=Pa(e,0);if(!(t&1))return dt(e,Te()),null;var n=Ga(e,t);if(e.tag!==0&&n===2){var r=uu(e);r!==0&&(t=r,n=Vu(e,r))}if(n===1)throw n=li,rr(e,0),bn(e,t),dt(e,Te()),n;if(n===6)throw Error(A(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Xn(e,ot,tn),dt(e,Te()),null}function cd(e,t){var n=ie;ie|=1;try{return e(t)}finally{ie=n,ie===0&&(Qr=Te()+500,yo&&Hn())}}function dr(e){Sn!==null&&Sn.tag===0&&!(ie&6)&&Wr();var t=ie;ie|=1;var n=Tt.transition,r=ce;try{if(Tt.transition=null,ce=1,e)return e()}finally{ce=r,Tt.transition=n,ie=t,!(ie&6)&&Hn()}}function dd(){pt=Rr.current,xe(Rr)}function rr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Pw(n)),Ne!==null)for(n=Ne.return;n!==null;){var r=n;switch(Wc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Aa();break;case 3:Xr(),xe(ut),xe(Ze),ed();break;case 5:Jc(r);break;case 4:Xr();break;case 13:xe(we);break;case 19:xe(we);break;case 10:Yc(r.type._context);break;case 22:case 23:dd()}n=n.return}if(Oe=e,Ne=e=Dn(e.current,null),$e=pt=t,De=0,li=null,ld=ko=cr=0,ot=Vs=null,Jn!==null){for(t=0;t<Jn.length;t++)if(n=Jn[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var a=i.next;i.next=s,r.next=a}n.pending=r}Jn=null}return e}function z0(e,t){do{var n=Ne;try{if(qc(),la.current=$a,Ba){for(var r=be.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Ba=!1}if(ur=0,Fe=Ae=be=null,Rs=!1,ii=0,od.current=null,n===null||n.return===null){De=1,li=t,Ne=null;break}e:{var i=e,a=n.return,l=n,u=t;if(t=$e,l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u,d=l,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var g=uh(a);if(g!==null){g.flags&=-257,ch(g,a,l,i,t),g.mode&1&&lh(i,c,t),t=g,u=c;var y=t.updateQueue;if(y===null){var b=new Set;b.add(u),t.updateQueue=b}else y.add(u);break e}else{if(!(t&1)){lh(i,c,t),fd();break e}u=Error(A(426))}}else if(ve&&l.mode&1){var w=uh(a);if(w!==null){!(w.flags&65536)&&(w.flags|=256),ch(w,a,l,i,t),Gc(Zr(u,l));break e}}i=u=Zr(u,l),De!==4&&(De=2),Vs===null?Vs=[i]:Vs.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var p=S0(i,u,t);nh(i,p);break e;case 1:l=u;var x=i.type,v=i.stateNode;if(!(i.flags&128)&&(typeof x.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Ln===null||!Ln.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t;var k=j0(i,l,t);nh(i,k);break e}}i=i.return}while(i!==null)}H0(n)}catch(E){t=E,Ne===n&&n!==null&&(Ne=n=n.return);continue}break}while(!0)}function B0(){var e=Ha.current;return Ha.current=$a,e===null?$a:e}function fd(){(De===0||De===3||De===2)&&(De=4),Oe===null||!(cr&268435455)&&!(ko&268435455)||bn(Oe,$e)}function Ga(e,t){var n=ie;ie|=2;var r=B0();(Oe!==e||$e!==t)&&(tn=null,rr(e,t));do try{Jw();break}catch(s){z0(e,s)}while(!0);if(qc(),ie=n,Ha.current=r,Ne!==null)throw Error(A(261));return Oe=null,$e=0,De}function Jw(){for(;Ne!==null;)$0(Ne)}function eb(){for(;Ne!==null&&!E1();)$0(Ne)}function $0(e){var t=W0(e.alternate,e,pt);e.memoizedProps=e.pendingProps,t===null?H0(e):Ne=t,od.current=null}function H0(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Kw(n,t),n!==null){n.flags&=32767,Ne=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{De=6,Ne=null;return}}else if(n=Gw(n,t,pt),n!==null){Ne=n;return}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);De===0&&(De=5)}function Xn(e,t,n){var r=ce,s=Tt.transition;try{Tt.transition=null,ce=1,tb(e,t,n,r)}finally{Tt.transition=s,ce=r}return null}function tb(e,t,n,r){do Wr();while(Sn!==null);if(ie&6)throw Error(A(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(A(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(R1(e,i),e===Oe&&(Ne=Oe=null,$e=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ui||(Ui=!0,G0(Ta,function(){return Wr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Tt.transition,Tt.transition=null;var a=ce;ce=1;var l=ie;ie|=4,od.current=null,Yw(e,n),V0(n,e),bw(pu),Na=!!mu,pu=mu=null,e.current=n,Xw(n),C1(),ie=l,ce=a,Tt.transition=i}else e.current=n;if(Ui&&(Ui=!1,Sn=e,Wa=s),i=e.pendingLanes,i===0&&(Ln=null),N1(n.stateNode),dt(e,Te()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(Ua)throw Ua=!1,e=Ru,Ru=null,e;return Wa&1&&e.tag!==0&&Wr(),i=e.pendingLanes,i&1?e===Iu?Fs++:(Fs=0,Iu=e):Fs=0,Hn(),null}function Wr(){if(Sn!==null){var e=Sg(Wa),t=Tt.transition,n=ce;try{if(Tt.transition=null,ce=16>e?16:e,Sn===null)var r=!1;else{if(e=Sn,Sn=null,Wa=0,ie&6)throw Error(A(331));var s=ie;for(ie|=4,F=e.current;F!==null;){var i=F,a=i.child;if(F.flags&16){var l=i.deletions;if(l!==null){for(var u=0;u<l.length;u++){var c=l[u];for(F=c;F!==null;){var d=F;switch(d.tag){case 0:case 11:case 15:Is(8,d,i)}var f=d.child;if(f!==null)f.return=d,F=f;else for(;F!==null;){d=F;var h=d.sibling,g=d.return;if(D0(d),d===c){F=null;break}if(h!==null){h.return=g,F=h;break}F=g}}}var y=i.alternate;if(y!==null){var b=y.child;if(b!==null){y.child=null;do{var w=b.sibling;b.sibling=null,b=w}while(b!==null)}}F=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,F=a;else e:for(;F!==null;){if(i=F,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Is(9,i,i.return)}var p=i.sibling;if(p!==null){p.return=i.return,F=p;break e}F=i.return}}var x=e.current;for(F=x;F!==null;){a=F;var v=a.child;if(a.subtreeFlags&2064&&v!==null)v.return=a,F=v;else e:for(a=x;F!==null;){if(l=F,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:bo(9,l)}}catch(E){Ce(l,l.return,E)}if(l===a){F=null;break e}var k=l.sibling;if(k!==null){k.return=l.return,F=k;break e}F=l.return}}if(ie=s,Hn(),qt&&typeof qt.onPostCommitFiberRoot=="function")try{qt.onPostCommitFiberRoot(ho,e)}catch{}r=!0}return r}finally{ce=n,Tt.transition=t}}return!1}function Sh(e,t,n){t=Zr(n,t),t=S0(e,t,1),e=Mn(e,t,1),t=st(),e!==null&&(gi(e,1,t),dt(e,t))}function Ce(e,t,n){if(e.tag===3)Sh(e,e,n);else for(;t!==null;){if(t.tag===3){Sh(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ln===null||!Ln.has(r))){e=Zr(n,e),e=j0(t,e,1),t=Mn(t,e,1),e=st(),t!==null&&(gi(t,1,e),dt(t,e));break}}t=t.return}}function nb(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=st(),e.pingedLanes|=e.suspendedLanes&n,Oe===e&&($e&n)===n&&(De===4||De===3&&($e&130023424)===$e&&500>Te()-ud?rr(e,0):ld|=n),dt(e,t)}function U0(e,t){t===0&&(e.mode&1?(t=Di,Di<<=1,!(Di&130023424)&&(Di=4194304)):t=1);var n=st();e=cn(e,t),e!==null&&(gi(e,t,n),dt(e,n))}function rb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),U0(e,n)}function sb(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(A(314))}r!==null&&r.delete(t),U0(e,n)}var W0;W0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ut.current)lt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return lt=!1,Ww(e,t,n);lt=!!(e.flags&131072)}else lt=!1,ve&&t.flags&1048576&&Yg(t,Ia,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ca(e,t),e=t.pendingProps;var s=Kr(t,Ze.current);Ur(t,n),s=nd(null,t,r,e,s,n);var i=rd();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,ct(r)?(i=!0,Da(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Zc(t),s.updater=wo,t.stateNode=s,s._reactInternals=t,ju(t,r,e,n),t=Tu(null,t,r,!0,i,n)):(t.tag=0,ve&&i&&Uc(t),tt(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ca(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=ab(r),e=Dt(r,e),s){case 0:t=Cu(null,t,r,e,n);break e;case 1:t=hh(null,t,r,e,n);break e;case 11:t=dh(null,t,r,e,n);break e;case 14:t=fh(null,t,r,Dt(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Dt(r,s),Cu(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Dt(r,s),hh(e,t,r,s,n);case 3:e:{if(P0(t),e===null)throw Error(A(387));r=t.pendingProps,i=t.memoizedState,s=i.element,t0(e,t),Oa(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=Zr(Error(A(423)),t),t=mh(e,t,r,n,s);break e}else if(r!==s){s=Zr(Error(A(424)),t),t=mh(e,t,r,n,s);break e}else for(gt=_n(t.stateNode.containerInfo.firstChild),xt=t,ve=!0,It=null,n=Jg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(qr(),r===s){t=dn(e,t,n);break e}tt(e,t,r,n)}t=t.child}return t;case 5:return n0(t),e===null&&bu(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,a=s.children,gu(r,s)?a=null:i!==null&&gu(r,i)&&(t.flags|=32),T0(e,t),tt(e,t,a,n),t.child;case 6:return e===null&&bu(t),null;case 13:return N0(e,t,n);case 4:return Qc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Yr(t,null,r,n):tt(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Dt(r,s),dh(e,t,r,s,n);case 7:return tt(e,t,t.pendingProps,n),t.child;case 8:return tt(e,t,t.pendingProps.children,n),t.child;case 12:return tt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,a=s.value,me(Va,r._currentValue),r._currentValue=a,i!==null)if(Bt(i.value,a)){if(i.children===s.children&&!ut.current){t=dn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var u=l.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=on(-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),ku(i.return,n,t),l.lanes|=n;break}u=u.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(A(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),ku(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}tt(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Ur(t,n),s=Pt(s),r=r(s),t.flags|=1,tt(e,t,r,n),t.child;case 14:return r=t.type,s=Dt(r,t.pendingProps),s=Dt(r.type,s),fh(e,t,r,s,n);case 15:return E0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Dt(r,s),ca(e,t),t.tag=1,ct(r)?(e=!0,Da(t)):e=!1,Ur(t,n),k0(t,r,s),ju(t,r,s,n),Tu(null,t,r,!0,e,n);case 19:return _0(e,t,n);case 22:return C0(e,t,n)}throw Error(A(156,t.tag))};function G0(e,t){return vg(e,t)}function ib(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 Et(e,t,n,r){return new ib(e,t,n,r)}function hd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ab(e){if(typeof e=="function")return hd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Lc)return 11;if(e===Ac)return 14}return 2}function Dn(e,t){var n=e.alternate;return n===null?(n=Et(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 ha(e,t,n,r,s,i){var a=2;if(r=e,typeof e=="function")hd(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Er:return sr(n.children,s,i,t);case Mc:a=8,s|=8;break;case ql:return e=Et(12,n,t,s|2),e.elementType=ql,e.lanes=i,e;case Yl:return e=Et(13,n,t,s),e.elementType=Yl,e.lanes=i,e;case Xl:return e=Et(19,n,t,s),e.elementType=Xl,e.lanes=i,e;case ng:return So(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case eg:a=10;break e;case tg:a=9;break e;case Lc:a=11;break e;case Ac:a=14;break e;case xn:a=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=Et(a,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function sr(e,t,n,r){return e=Et(7,e,r,t),e.lanes=n,e}function So(e,t,n,r){return e=Et(22,e,r,t),e.elementType=ng,e.lanes=n,e.stateNode={isHidden:!1},e}function pl(e,t,n){return e=Et(6,e,null,t),e.lanes=n,e}function gl(e,t,n){return t=Et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ob(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=Xo(0),this.expirationTimes=Xo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xo(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function md(e,t,n,r,s,i,a,l,u){return e=new ob(e,t,n,l,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Et(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zc(i),e}function lb(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:jr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function K0(e){if(!e)return Fn;e=e._reactInternals;e:{if(gr(e)!==e||e.tag!==1)throw Error(A(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ct(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(A(171))}if(e.tag===1){var n=e.type;if(ct(n))return Kg(e,n,t)}return t}function q0(e,t,n,r,s,i,a,l,u){return e=md(n,r,!0,e,s,i,a,l,u),e.context=K0(null),n=e.current,r=st(),s=An(n),i=on(r,s),i.callback=t??null,Mn(n,i,s),e.current.lanes=s,gi(e,s,r),dt(e,r),e}function jo(e,t,n,r){var s=t.current,i=st(),a=An(s);return n=K0(n),t.context===null?t.context=n:t.pendingContext=n,t=on(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Mn(s,t,a),e!==null&&(Ot(e,s,a,i),oa(e,s,a)),a}function Ka(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function jh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function pd(e,t){jh(e,t),(e=e.alternate)&&jh(e,t)}function ub(){return null}var Y0=typeof reportError=="function"?reportError:function(e){console.error(e)};function gd(e){this._internalRoot=e}Eo.prototype.render=gd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(A(409));jo(e,t,null,null)};Eo.prototype.unmount=gd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dr(function(){jo(null,e,null,null)}),t[un]=null}};function Eo(e){this._internalRoot=e}Eo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Cg();e={blockedOn:null,target:e,priority:t};for(var n=0;n<wn.length&&t!==0&&t<wn[n].priority;n++);wn.splice(n,0,e),n===0&&Pg(e)}};function xd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Co(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Eh(){}function cb(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var c=Ka(a);i.call(c)}}var a=q0(t,r,e,0,null,!1,!1,"",Eh);return e._reactRootContainer=a,e[un]=a.current,ei(e.nodeType===8?e.parentNode:e),dr(),a}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var l=r;r=function(){var c=Ka(u);l.call(c)}}var u=md(e,0,!1,null,null,!1,!1,"",Eh);return e._reactRootContainer=u,e[un]=u.current,ei(e.nodeType===8?e.parentNode:e),dr(function(){jo(t,u,n,r)}),u}function To(e,t,n,r,s){var i=n._reactRootContainer;if(i){var a=i;if(typeof s=="function"){var l=s;s=function(){var u=Ka(a);l.call(u)}}jo(t,a,e,s)}else a=cb(n,t,e,s,r);return Ka(a)}jg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Cs(t.pendingLanes);n!==0&&(Ic(t,n|1),dt(t,Te()),!(ie&6)&&(Qr=Te()+500,Hn()))}break;case 13:dr(function(){var r=cn(e,1);if(r!==null){var s=st();Ot(r,e,1,s)}}),pd(e,1)}};Vc=function(e){if(e.tag===13){var t=cn(e,134217728);if(t!==null){var n=st();Ot(t,e,134217728,n)}pd(e,134217728)}};Eg=function(e){if(e.tag===13){var t=An(e),n=cn(e,t);if(n!==null){var r=st();Ot(n,e,t,r)}pd(e,t)}};Cg=function(){return ce};Tg=function(e,t){var n=ce;try{return ce=e,t()}finally{ce=n}};au=function(e,t,n){switch(t){case"input":if(Jl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=xo(r);if(!s)throw Error(A(90));sg(r),Jl(r,s)}}}break;case"textarea":ag(e,n);break;case"select":t=n.value,t!=null&&zr(e,!!n.multiple,t,!1)}};hg=cd;mg=dr;var db={usingClientEntryPoint:!1,Events:[yi,Nr,xo,dg,fg,cd]},vs={findFiberByHostInstance:Qn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},fb={bundleType:vs.bundleType,version:vs.version,rendererPackageName:vs.rendererPackageName,rendererConfig:vs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:hn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=xg(e),e===null?null:e.stateNode},findFiberByHostInstance:vs.findFiberByHostInstance||ub,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wi.isDisabled&&Wi.supportsFiber)try{ho=Wi.inject(fb),qt=Wi}catch{}}wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=db;wt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!xd(t))throw Error(A(200));return lb(e,t,null,n)};wt.createRoot=function(e,t){if(!xd(e))throw Error(A(299));var n=!1,r="",s=Y0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=md(e,1,!1,null,null,n,!1,r,s),e[un]=t.current,ei(e.nodeType===8?e.parentNode:e),new gd(t)};wt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(A(188)):(e=Object.keys(e).join(","),Error(A(268,e)));return e=xg(t),e=e===null?null:e.stateNode,e};wt.flushSync=function(e){return dr(e)};wt.hydrate=function(e,t,n){if(!Co(t))throw Error(A(200));return To(null,e,t,!0,n)};wt.hydrateRoot=function(e,t,n){if(!xd(e))throw Error(A(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",a=Y0;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=q0(t,null,e,1,n??null,s,!1,i,a),e[un]=t.current,ei(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Eo(t)};wt.render=function(e,t,n){if(!Co(t))throw Error(A(200));return To(null,e,t,!1,n)};wt.unmountComponentAtNode=function(e){if(!Co(e))throw Error(A(40));return e._reactRootContainer?(dr(function(){To(null,null,e,!1,function(){e._reactRootContainer=null,e[un]=null})}),!0):!1};wt.unstable_batchedUpdates=cd;wt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Co(n))throw Error(A(200));if(e==null||e._reactInternals===void 0)throw Error(A(38));return To(e,t,n,!1,r)};wt.version="18.3.1-next-f1338f8080-20240426";function X0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(X0)}catch(e){console.error(e)}}X0(),Xp.exports=wt;var yd=Xp.exports;const S4=Vp(yd);var Ch=yd;Gl.createRoot=Ch.createRoot,Gl.hydrateRoot=Ch.hydrateRoot;/**
* @remix-run/router v1.23.3
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function ui(){return ui=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ui.apply(null,arguments)}var jn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(jn||(jn={}));const Th="popstate";function hb(e){e===void 0&&(e={});function t(r,s){let{pathname:i,search:a,hash:l}=r.location;return Ou("",{pathname:i,search:a,hash:l},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:qa(s)}return pb(t,n,null,e)}function ke(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function vd(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function mb(){return Math.random().toString(36).substr(2,8)}function Ph(e,t){return{usr:e.state,key:e.key,idx:t}}function Ou(e,t,n,r){return n===void 0&&(n=null),ui({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?os(t):t,{state:n,key:t&&t.key||r||mb()})}function qa(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function os(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function pb(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,a=s.history,l=jn.Pop,u=null,c=d();c==null&&(c=0,a.replaceState(ui({},a.state,{idx:c}),""));function d(){return(a.state||{idx:null}).idx}function f(){l=jn.Pop;let w=d(),p=w==null?null:w-c;c=w,u&&u({action:l,location:b.location,delta:p})}function h(w,p){l=jn.Push;let x=Ou(b.location,w,p);c=d()+1;let v=Ph(x,c),k=b.createHref(x);try{a.pushState(v,"",k)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;s.location.assign(k)}i&&u&&u({action:l,location:b.location,delta:1})}function g(w,p){l=jn.Replace;let x=Ou(b.location,w,p);c=d();let v=Ph(x,c),k=b.createHref(x);a.replaceState(v,"",k),i&&u&&u({action:l,location:b.location,delta:0})}function y(w){let p=s.location.origin!=="null"?s.location.origin:s.location.href,x=typeof w=="string"?w:qa(w);return x=x.replace(/ $/,"%20"),ke(p,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,p)}let b={get action(){return l},get location(){return e(s,a)},listen(w){if(u)throw new Error("A history only accepts one active listener");return s.addEventListener(Th,f),u=w,()=>{s.removeEventListener(Th,f),u=null}},createHref(w){return t(s,w)},createURL:y,encodeLocation(w){let p=y(w);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:h,replace:g,go(w){return a.go(w)}};return b}var Nh;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Nh||(Nh={}));function gb(e,t,n){return n===void 0&&(n="/"),xb(e,t,n)}function xb(e,t,n,r){let s=typeof t=="string"?os(t):t,i=Jr(s.pathname||"/",n);if(i==null)return null;let a=Z0(e);yb(a);let l=null,u=Nb(i);for(let c=0;l==null&&c<a.length;++c)l=Tb(a[c],u);return l}function Z0(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(i,a,l)=>{let u={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};u.relativePath.startsWith("/")&&(ke(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=Rn([r,u.relativePath]),d=n.concat(u);i.children&&i.children.length>0&&(ke(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Z0(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:Eb(c,i.index),routesMeta:d})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))s(i,a);else for(let u of Q0(i.path))s(i,a,u)}),t}function Q0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let a=Q0(r.join("/")),l=[];return l.push(...a.map(u=>u===""?i:[i,u].join("/"))),s&&l.push(...a),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function yb(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Cb(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const vb=/^:[\w-]+$/,wb=3,bb=2,kb=1,Sb=10,jb=-2,_h=e=>e==="*";function Eb(e,t){let n=e.split("/"),r=n.length;return n.some(_h)&&(r+=jb),t&&(r+=bb),n.filter(s=>!_h(s)).reduce((s,i)=>s+(vb.test(i)?wb:i===""?kb:Sb),r)}function Cb(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function Tb(e,t,n){let{routesMeta:r}=e,s={},i="/",a=[];for(let l=0;l<r.length;++l){let u=r[l],c=l===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",f=zu({path:u.relativePath,caseSensitive:u.caseSensitive,end:c},d),h=u.route;if(!f)return null;Object.assign(s,f.params),a.push({params:s,pathname:Rn([i,f.pathname]),pathnameBase:Db(Rn([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=Rn([i,f.pathnameBase]))}return a}function zu(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Pb(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let i=s[0],a=i.replace(/(.)\/+$/,"$1"),l=s.slice(1);return{params:r.reduce((c,d,f)=>{let{paramName:h,isOptional:g}=d;if(h==="*"){let b=l[f]||"";a=i.slice(0,i.length-b.length).replace(/(.)\/+$/,"$1")}const y=l[f];return g&&!y?c[h]=void 0:c[h]=(y||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function Pb(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),vd(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,u)=>(r.push({paramName:l,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function Nb(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return vd(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Jr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const _b=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Mb=e=>_b.test(e);function Lb(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?os(e):e,i;if(n)if(Mb(n))i=n;else{if(n.includes("//")){let a=n;n=J0(n),vd(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?i=Mh(n.substring(1),"/"):i=Mh(n,t)}else i=t;return{pathname:i,search:Rb(r),hash:Ib(s)}}function Mh(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function xl(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Ab(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function wd(e,t){let n=Ab(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function bd(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=os(e):(s=ui({},e),ke(!s.pathname||!s.pathname.includes("?"),xl("?","pathname","search",s)),ke(!s.pathname||!s.pathname.includes("#"),xl("#","pathname","hash",s)),ke(!s.search||!s.search.includes("#"),xl("#","search","hash",s)));let i=e===""||s.pathname==="",a=i?"/":s.pathname,l;if(a==null)l=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),f-=1;s.pathname=h.join("/")}l=f>=0?t[f]:"/"}let u=Lb(s,l),c=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}const J0=e=>e.replace(/\/\/+/g,"/"),Rn=e=>J0(e.join("/")),Db=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Rb=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ib=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Vb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ex=["post","put","patch","delete"];new Set(ex);const Fb=["get",...ex];new Set(Fb);/**
* React Router v6.30.4
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function ci(){return ci=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ci.apply(null,arguments)}const Po=m.createContext(null),tx=m.createContext(null),mn=m.createContext(null),No=m.createContext(null),Qt=m.createContext({outlet:null,matches:[],isDataRoute:!1}),nx=m.createContext(null);function Ob(e,t){let{relative:n}=t===void 0?{}:t;ls()||ke(!1);let{basename:r,navigator:s}=m.useContext(mn),{hash:i,pathname:a,search:l}=_o(e,{relative:n}),u=a;return r!=="/"&&(u=a==="/"?r:Rn([r,a])),s.createHref({pathname:u,search:l,hash:i})}function ls(){return m.useContext(No)!=null}function Qe(){return ls()||ke(!1),m.useContext(No).location}function rx(e){m.useContext(mn).static||m.useLayoutEffect(e)}function xr(){let{isDataRoute:e}=m.useContext(Qt);return e?ek():zb()}function zb(){ls()||ke(!1);let e=m.useContext(Po),{basename:t,future:n,navigator:r}=m.useContext(mn),{matches:s}=m.useContext(Qt),{pathname:i}=Qe(),a=JSON.stringify(wd(s,n.v7_relativeSplatPath)),l=m.useRef(!1);return rx(()=>{l.current=!0}),m.useCallback(function(c,d){if(d===void 0&&(d={}),!l.current)return;if(typeof c=="number"){r.go(c);return}let f=bd(c,JSON.parse(a),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Rn([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,a,i,e])}const Bb=m.createContext(null);function $b(e){let t=m.useContext(Qt).outlet;return t&&m.createElement(Bb.Provider,{value:e},t)}function kd(){let{matches:e}=m.useContext(Qt),t=e[e.length-1];return t?t.params:{}}function _o(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=m.useContext(mn),{matches:s}=m.useContext(Qt),{pathname:i}=Qe(),a=JSON.stringify(wd(s,r.v7_relativeSplatPath));return m.useMemo(()=>bd(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function Hb(e,t){return Ub(e,t)}function Ub(e,t,n,r){ls()||ke(!1);let{navigator:s}=m.useContext(mn),{matches:i}=m.useContext(Qt),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let u=a?a.pathnameBase:"/";a&&a.route;let c=Qe(),d;if(t){var f;let w=typeof t=="string"?os(t):t;u==="/"||(f=w.pathname)!=null&&f.startsWith(u)||ke(!1),d=w}else d=c;let h=d.pathname||"/",g=h;if(u!=="/"){let w=u.replace(/^\//,"").split("/");g="/"+h.replace(/^\//,"").split("/").slice(w.length).join("/")}let y=gb(e,{pathname:g}),b=Yb(y&&y.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:Rn([u,s.encodeLocation?s.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?u:Rn([u,s.encodeLocation?s.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&b?m.createElement(No.Provider,{value:{location:ci({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:jn.Pop}},b):b}function Wb(){let e=Jb(),t=Vb(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:s},n):null,null)}const Gb=m.createElement(Wb,null);class Kb extends m.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?m.createElement(Qt.Provider,{value:this.props.routeContext},m.createElement(nx.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function qb(e){let{routeContext:t,match:n,children:r}=e,s=m.useContext(Po);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),m.createElement(Qt.Provider,{value:t},r)}function Yb(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(s=n)==null?void 0:s.errors;if(l!=null){let d=a.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);d>=0||ke(!1),a=a.slice(0,Math.min(a.length,d+1))}let u=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<a.length;d++){let f=a[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(c=d),f.route.id){let{loaderData:h,errors:g}=n,y=f.route.loader&&h[f.route.id]===void 0&&(!g||g[f.route.id]===void 0);if(f.route.lazy||y){u=!0,c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((d,f,h)=>{let g,y=!1,b=null,w=null;n&&(g=l&&f.route.id?l[f.route.id]:void 0,b=f.route.errorElement||Gb,u&&(c<0&&h===0?(tk("route-fallback"),y=!0,w=null):c===h&&(y=!0,w=f.route.hydrateFallbackElement||null)));let p=t.concat(a.slice(0,h+1)),x=()=>{let v;return g?v=b:y?v=w:f.route.Component?v=m.createElement(f.route.Component,null):f.route.element?v=f.route.element:v=d,m.createElement(qb,{match:f,routeContext:{outlet:d,matches:p,isDataRoute:n!=null},children:v})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?m.createElement(Kb,{location:n.location,revalidation:n.revalidation,component:b,error:g,children:x(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):x()},null)}var sx=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(sx||{}),ix=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ix||{});function Xb(e){let t=m.useContext(Po);return t||ke(!1),t}function Zb(e){let t=m.useContext(tx);return t||ke(!1),t}function Qb(e){let t=m.useContext(Qt);return t||ke(!1),t}function ax(e){let t=Qb(),n=t.matches[t.matches.length-1];return n.route.id||ke(!1),n.route.id}function Jb(){var e;let t=m.useContext(nx),n=Zb(),r=ax();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function ek(){let{router:e}=Xb(sx.UseNavigateStable),t=ax(ix.UseNavigateStable),n=m.useRef(!1);return rx(()=>{n.current=!0}),m.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,ci({fromRouteId:t},i)))},[e,t])}const Lh={};function tk(e,t,n){Lh[e]||(Lh[e]=!0)}function nk(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function fr(e){let{to:t,replace:n,state:r,relative:s}=e;ls()||ke(!1);let{future:i,static:a}=m.useContext(mn),{matches:l}=m.useContext(Qt),{pathname:u}=Qe(),c=xr(),d=bd(t,wd(l,i.v7_relativeSplatPath),u,s==="path"),f=JSON.stringify(d);return m.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:s}),[c,f,s,n,r]),null}function Sd(e){return $b(e.context)}function $(e){ke(!1)}function rk(e){let{basename:t="/",children:n=null,location:r,navigationType:s=jn.Pop,navigator:i,static:a=!1,future:l}=e;ls()&&ke(!1);let u=t.replace(/^\/*/,"/"),c=m.useMemo(()=>({basename:u,navigator:i,static:a,future:ci({v7_relativeSplatPath:!1},l)}),[u,l,i,a]);typeof r=="string"&&(r=os(r));let{pathname:d="/",search:f="",hash:h="",state:g=null,key:y="default"}=r,b=m.useMemo(()=>{let w=Jr(d,u);return w==null?null:{location:{pathname:w,search:f,hash:h,state:g,key:y},navigationType:s}},[u,d,f,h,g,y,s]);return b==null?null:m.createElement(mn.Provider,{value:c},m.createElement(No.Provider,{children:n,value:b}))}function sk(e){let{children:t,location:n}=e;return Hb(Bu(t),n)}new Promise(()=>{});function Bu(e,t){t===void 0&&(t=[]);let n=[];return m.Children.forEach(e,(r,s)=>{if(!m.isValidElement(r))return;let i=[...t,s];if(r.type===m.Fragment){n.push.apply(n,Bu(r.props.children,i));return}r.type!==$&&ke(!1),!r.props.index||!r.props.children||ke(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=Bu(r.props.children,i)),n.push(a)}),n}/**
* React Router DOM v6.30.4
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Ya(){return Ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ya.apply(null,arguments)}function ox(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ik(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ak(e,t){return e.button===0&&(!t||t==="_self")&&!ik(e)}function $u(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function ok(e,t){let n=$u(e);return t&&t.forEach((r,s)=>{n.has(s)||t.getAll(s).forEach(i=>{n.append(s,i)})}),n}const lk=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],uk=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],ck="6";try{window.__reactRouterVersion=ck}catch{}const dk=m.createContext({isTransitioning:!1}),fk="startTransition",Ah=n1[fk];function hk(e){let{basename:t,children:n,future:r,window:s}=e,i=m.useRef();i.current==null&&(i.current=hb({window:s,v5Compat:!0}));let a=i.current,[l,u]=m.useState({action:a.action,location:a.location}),{v7_startTransition:c}=r||{},d=m.useCallback(f=>{c&&Ah?Ah(()=>u(f)):u(f)},[u,c]);return m.useLayoutEffect(()=>a.listen(d),[a,d]),m.useEffect(()=>nk(r),[r]),m.createElement(rk,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const mk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",pk=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,G=m.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:i,replace:a,state:l,target:u,to:c,preventScrollReset:d,viewTransition:f}=t,h=ox(t,lk),{basename:g}=m.useContext(mn),y,b=!1;if(typeof c=="string"&&pk.test(c)&&(y=c,mk))try{let v=new URL(window.location.href),k=c.startsWith("//")?new URL(v.protocol+c):new URL(c),E=Jr(k.pathname,g);k.origin===v.origin&&E!=null?c=E+k.search+k.hash:b=!0}catch{}let w=Ob(c,{relative:s}),p=yk(c,{replace:a,state:l,target:u,preventScrollReset:d,relative:s,viewTransition:f});function x(v){r&&r(v),v.defaultPrevented||p(v)}return m.createElement("a",Ya({},h,{href:y||w,onClick:b||i?r:x,ref:n,target:u}))}),gk=m.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:s=!1,className:i="",end:a=!1,style:l,to:u,viewTransition:c,children:d}=t,f=ox(t,uk),h=_o(u,{relative:f.relative}),g=Qe(),y=m.useContext(tx),{navigator:b,basename:w}=m.useContext(mn),p=y!=null&&wk(h)&&c===!0,x=b.encodeLocation?b.encodeLocation(h).pathname:h.pathname,v=g.pathname,k=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;s||(v=v.toLowerCase(),k=k?k.toLowerCase():null,x=x.toLowerCase()),k&&w&&(k=Jr(k,w)||k);const E=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let C=v===x||!a&&v.startsWith(x)&&v.charAt(E)==="/",j=k!=null&&(k===x||!a&&k.startsWith(x)&&k.charAt(x.length)==="/"),S={isActive:C,isPending:j,isTransitioning:p},N=C?r:void 0,P;typeof i=="function"?P=i(S):P=[i,C?"active":null,j?"pending":null,p?"transitioning":null].filter(Boolean).join(" ");let V=typeof l=="function"?l(S):l;return m.createElement(G,Ya({},f,{"aria-current":N,className:P,ref:n,style:V,to:u,viewTransition:c}),typeof d=="function"?d(S):d)});var Hu;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Hu||(Hu={}));var Dh;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Dh||(Dh={}));function xk(e){let t=m.useContext(Po);return t||ke(!1),t}function yk(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:a,viewTransition:l}=t===void 0?{}:t,u=xr(),c=Qe(),d=_o(e,{relative:a});return m.useCallback(f=>{if(ak(f,n)){f.preventDefault();let h=r!==void 0?r:qa(c)===qa(d);u(e,{replace:h,state:s,preventScrollReset:i,relative:a,viewTransition:l})}},[c,u,d,r,s,n,e,i,a,l])}function vk(e){let t=m.useRef($u(e)),n=m.useRef(!1),r=Qe(),s=m.useMemo(()=>ok(r.search,n.current?null:t.current),[r.search]),i=xr(),a=m.useCallback((l,u)=>{const c=$u(typeof l=="function"?l(s):l);n.current=!0,i("?"+c,u)},[i,s]);return[s,a]}function wk(e,t){t===void 0&&(t={});let n=m.useContext(dk);n==null&&ke(!1);let{basename:r}=xk(Hu.useViewTransitionState),s=_o(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=Jr(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Jr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return zu(s.pathname,a)!=null||zu(s.pathname,i)!=null}const bk="modulepreload",kk=function(e){return"/"+e},Rh={},Y=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));s=Promise.allSettled(n.map(u=>{if(u=kk(u),u in Rh)return;Rh[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":bk,c||(f.as="script"),f.crossOrigin="",f.href=u,l&&f.setAttribute("nonce",l),document.head.appendChild(f),c)return new Promise((h,g)=>{f.addEventListener("load",h),f.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(a){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a}return s.then(a=>{for(const l of a||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})},jd=m.createContext({});function fn(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const Sk=typeof window<"u",wi=Sk?m.useLayoutEffect:m.useEffect,Mo=m.createContext(null);function Ed(e,t){e.indexOf(t)===-1&&e.push(t)}function Xa(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const $t=(e,t,n)=>n>t?t:n<e?e:n;let Cd=()=>{};const On={},lx=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ux=e=>typeof e=="object"&&e!==null,cx=e=>/^0[^.\s]+$/u.test(e);function dx(e){let t;return()=>(t===void 0&&(t=e()),t)}const ft=e=>e,bi=(...e)=>e.reduce((t,n)=>r=>n(t(r))),es=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class Td{constructor(){this.subscriptions=[]}add(t){return Ed(this.subscriptions,t),()=>Xa(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i<s;i++){const a=this.subscriptions[i];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const yt=e=>e*1e3,Ct=e=>e/1e3,Pd=(e,t)=>t?e*(1e3/t):0,fx=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,jk=1e-7,Ek=12;function Ck(e,t,n,r,s){let i,a,l=0;do a=t+(n-t)/2,i=fx(a,r,s)-e,i>0?n=a:t=a;while(Math.abs(i)>jk&&++l<Ek);return a}function ki(e,t,n,r){if(e===t&&n===r)return ft;const s=i=>Ck(i,0,1,e,n);return i=>i===0||i===1?i:fx(s(i),t,r)}const hx=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,mx=e=>t=>1-e(1-t),px=ki(.33,1.53,.69,.99),Nd=mx(px),gx=hx(Nd),xx=e=>e>=1?1:(e*=2)<1?.5*Nd(e):.5*(2-Math.pow(2,-10*(e-1))),_d=e=>1-Math.sin(Math.acos(e)),yx=mx(_d),vx=hx(_d),Tk=ki(.42,0,1,1),Pk=ki(0,0,.58,1),wx=ki(.42,0,.58,1),Nk=e=>Array.isArray(e)&&typeof e[0]!="number",bx=e=>Array.isArray(e)&&typeof e[0]=="number",_k={linear:ft,easeIn:Tk,easeInOut:wx,easeOut:Pk,circIn:_d,circInOut:vx,circOut:yx,backIn:Nd,backInOut:gx,backOut:px,anticipate:xx},Mk=e=>typeof e=="string",Ih=e=>{if(bx(e)){Cd(e.length===4);const[t,n,r,s]=e;return ki(t,n,r,s)}else if(Mk(e))return _k[e];return e},Gi=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Lk(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){i.has(c)&&(u.schedule(c),e()),c(a)}const u={schedule:(c,d=!1,f=!1)=>{const g=f&&r?t:n;return d&&i.add(c),g.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(a=c,r){s=!0;return}r=!0;const d=t;t=n,n=d,t.forEach(l),t.clear(),r=!1,s&&(s=!1,u.process(c))}};return u}const Ak=40;function kx(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=Gi.reduce((v,k)=>(v[k]=Lk(i),v),{}),{setup:l,read:u,resolveKeyframes:c,preUpdate:d,update:f,preRender:h,render:g,postRender:y}=a,b=()=>{const v=On.useManualTiming,k=v?s.timestamp:performance.now();n=!1,v||(s.delta=r?1e3/60:Math.max(Math.min(k-s.timestamp,Ak),1)),s.timestamp=k,s.isProcessing=!0,l.process(s),u.process(s),c.process(s),d.process(s),f.process(s),h.process(s),g.process(s),y.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(b))},w=()=>{n=!0,r=!0,s.isProcessing||e(b)};return{schedule:Gi.reduce((v,k)=>{const E=a[k];return v[k]=(C,j=!1,S=!1)=>(n||w(),E.schedule(C,j,S)),v},{}),cancel:v=>{for(let k=0;k<Gi.length;k++)a[Gi[k]].cancel(v)},state:s,steps:a}}const{schedule:re,cancel:_t,state:Ve,steps:yl}=kx(typeof requestAnimationFrame<"u"?requestAnimationFrame:ft,!0);let ma;function Dk(){ma=void 0}const nt={now:()=>(ma===void 0&&nt.set(Ve.isProcessing||On.useManualTiming?Ve.timestamp:performance.now()),ma),set:e=>{ma=e,queueMicrotask(Dk)}},Sx=e=>t=>typeof t=="string"&&t.startsWith(e),jx=Sx("--"),Rk=Sx("var(--"),Md=e=>Rk(e)?Ik.test(e.split("/*")[0].trim()):!1,Ik=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Vh(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const us={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},di={...us,transform:e=>$t(0,1,e)},Ki={...us,default:1},Os=e=>Math.round(e*1e5)/1e5,Ld=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Vk(e){return e==null}const Fk=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ad=(e,t)=>n=>!!(typeof n=="string"&&Fk.test(n)&&n.startsWith(e)||t&&!Vk(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ex=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,a,l]=r.match(Ld);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},Ok=e=>$t(0,255,e),vl={...us,transform:e=>Math.round(Ok(e))},tr={test:Ad("rgb","red"),parse:Ex("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+vl.transform(e)+", "+vl.transform(t)+", "+vl.transform(n)+", "+Os(di.transform(r))+")"};function zk(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 Uu={test:Ad("#"),parse:zk,transform:tr.transform},Si=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Jt=Si("deg"),Xt=Si("%"),O=Si("px"),Bk=Si("vh"),$k=Si("vw"),Fh={...Xt,parse:e=>Xt.parse(e)/100,transform:e=>Xt.transform(e*100)},Ir={test:Ad("hsl","hue"),parse:Ex("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Xt.transform(Os(t))+", "+Xt.transform(Os(n))+", "+Os(di.transform(r))+")"},Pe={test:e=>tr.test(e)||Uu.test(e)||Ir.test(e),parse:e=>tr.test(e)?tr.parse(e):Ir.test(e)?Ir.parse(e):Uu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?tr.transform(e):Ir.transform(e),getAnimatableNone:e=>{const t=Pe.parse(e);return t.alpha=0,Pe.transform(t)}},Hk=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Uk(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Ld))==null?void 0:t.length)||0)+(((n=e.match(Hk))==null?void 0:n.length)||0)>0}const Cx="number",Tx="color",Wk="var",Gk="var(",Oh="${}",Kk=/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 ts(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const l=t.replace(Kk,u=>(Pe.test(u)?(r.color.push(i),s.push(Tx),n.push(Pe.parse(u))):u.startsWith(Gk)?(r.var.push(i),s.push(Wk),n.push(u)):(r.number.push(i),s.push(Cx),n.push(parseFloat(u))),++i,Oh)).split(Oh);return{values:n,split:l,indexes:r,types:s}}function qk(e){return ts(e).values}function Px({split:e,types:t}){const n=e.length;return r=>{let s="";for(let i=0;i<n;i++)if(s+=e[i],r[i]!==void 0){const a=t[i];a===Cx?s+=Os(r[i]):a===Tx?s+=Pe.transform(r[i]):s+=r[i]}return s}}function Yk(e){return Px(ts(e))}const Xk=e=>typeof e=="number"?0:Pe.test(e)?Pe.getAnimatableNone(e):e,Zk=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:Xk(e);function Qk(e){const t=ts(e);return Px(t)(t.values.map((r,s)=>Zk(r,t.split[s])))}const zt={test:Uk,parse:qk,createTransformer:Yk,getAnimatableNone:Qk};function wl(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 Jk({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,a=0;if(!t)s=i=a=n;else{const l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;s=wl(u,l,e+1/3),i=wl(u,l,e),a=wl(u,l,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}function Za(e,t){return n=>n>0?t:e}const he=(e,t,n)=>e+(t-e)*n,bl=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},e2=[Uu,tr,Ir],t2=e=>e2.find(t=>t.test(e));function zh(e){const t=t2(e);if(!t)return!1;let n=t.parse(e);return t===Ir&&(n=Jk(n)),n}const Bh=(e,t)=>{const n=zh(e),r=zh(t);if(!n||!r)return Za(e,t);const s={...n};return i=>(s.red=bl(n.red,r.red,i),s.green=bl(n.green,r.green,i),s.blue=bl(n.blue,r.blue,i),s.alpha=he(n.alpha,r.alpha,i),tr.transform(s))},Wu=new Set(["none","hidden"]);function n2(e,t){return Wu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function r2(e,t){return n=>he(e,t,n)}function Dd(e){return typeof e=="number"?r2:typeof e=="string"?Md(e)?Za:Pe.test(e)?Bh:a2:Array.isArray(e)?Nx:typeof e=="object"?Pe.test(e)?Bh:s2:Za}function Nx(e,t){const n=[...e],r=n.length,s=e.map((i,a)=>Dd(i)(i,t[a]));return i=>{for(let a=0;a<r;a++)n[a]=s[a](i);return n}}function s2(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=Dd(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function i2(e,t){const n=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const i=t.types[s],a=e.indexes[i][r[i]],l=e.values[a]??0;n[s]=l,r[i]++}return n}const a2=(e,t)=>{const n=zt.createTransformer(t),r=ts(e),s=ts(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?Wu.has(e)&&!s.values.length||Wu.has(t)&&!r.values.length?n2(e,t):bi(Nx(i2(r,s),s.values),n):Za(e,t)};function _x(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?he(e,t,n):Dd(e)(e,t)}const o2=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>re.update(t,n),stop:()=>_t(t),now:()=>Ve.isProcessing?Ve.timestamp:nt.now()}},Mx=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)r+=Math.round(e(i/(s-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Qa=2e4;function Rd(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Qa;)t+=n,r=e.next(t);return t>=Qa?1/0:t}function l2(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(Rd(r),Qa);return{type:"keyframes",ease:i=>r.next(s*i).value/t,duration:Ct(s)}}const Ee={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 Gu(e,t){return e*Math.sqrt(1-t*t)}const u2=12;function c2(e,t,n){let r=n;for(let s=1;s<u2;s++)r=r-e(r)/t(r);return r}const kl=.001;function d2({duration:e=Ee.duration,bounce:t=Ee.bounce,velocity:n=Ee.velocity,mass:r=Ee.mass}){let s,i,a=1-t;a=$t(Ee.minDamping,Ee.maxDamping,a),e=$t(Ee.minDuration,Ee.maxDuration,Ct(e)),a<1?(s=c=>{const d=c*a,f=d*e,h=d-n,g=Gu(c,a),y=Math.exp(-f);return kl-h/g*y},i=c=>{const f=c*a*e,h=f*n+n,g=Math.pow(a,2)*Math.pow(c,2)*e,y=Math.exp(-f),b=Gu(Math.pow(c,2),a);return(-s(c)+kl>0?-1:1)*((h-g)*y)/b}):(s=c=>{const d=Math.exp(-c*e),f=(c-n)*e+1;return-kl+d*f},i=c=>{const d=Math.exp(-c*e),f=(n-c)*(e*e);return d*f});const l=5/e,u=c2(s,i,l);if(e=yt(e),isNaN(u))return{stiffness:Ee.stiffness,damping:Ee.damping,duration:e};{const c=Math.pow(u,2)*r;return{stiffness:c,damping:a*2*Math.sqrt(r*c),duration:e}}}const f2=["duration","bounce"],h2=["stiffness","damping","mass"];function $h(e,t){return t.some(n=>e[n]!==void 0)}function m2(e){let t={velocity:Ee.velocity,stiffness:Ee.stiffness,damping:Ee.damping,mass:Ee.mass,isResolvedFromDuration:!1,...e};if(!$h(e,h2)&&$h(e,f2))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*$t(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:Ee.mass,stiffness:s,damping:i}}else{const n=d2({...e,velocity:0});t={...t,...n,mass:Ee.mass},t.isResolvedFromDuration=!0}return t}function Ja(e=Ee.visualDuration,t=Ee.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],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:i},{stiffness:u,damping:c,mass:d,duration:f,velocity:h,isResolvedFromDuration:g}=m2({...n,velocity:-Ct(n.velocity||0)}),y=h||0,b=c/(2*Math.sqrt(u*d)),w=a-i,p=Ct(Math.sqrt(u/d)),x=Math.abs(w)<5;r||(r=x?Ee.restSpeed.granular:Ee.restSpeed.default),s||(s=x?Ee.restDelta.granular:Ee.restDelta.default);let v,k,E,C,j,S;if(b<1)E=Gu(p,b),C=(y+b*p*w)/E,v=P=>{const V=Math.exp(-b*p*P);return a-V*(C*Math.sin(E*P)+w*Math.cos(E*P))},j=b*p*C+w*E,S=b*p*w-C*E,k=P=>Math.exp(-b*p*P)*(j*Math.sin(E*P)+S*Math.cos(E*P));else if(b===1){v=V=>a-Math.exp(-p*V)*(w+(y+p*w)*V);const P=y+p*w;k=V=>Math.exp(-p*V)*(p*P*V-y)}else{const P=p*Math.sqrt(b*b-1);v=ne=>{const q=Math.exp(-b*p*ne),W=Math.min(P*ne,300);return a-q*((y+b*p*w)*Math.sinh(W)+P*w*Math.cosh(W))/P};const V=(y+b*p*w)/P,B=b*p*V-w*P,se=b*p*w-V*P;k=ne=>{const q=Math.exp(-b*p*ne),W=Math.min(P*ne,300);return q*(B*Math.sinh(W)+se*Math.cosh(W))}}const N={calculatedDuration:g&&f||null,velocity:P=>yt(k(P)),next:P=>{if(!g&&b<1){const B=Math.exp(-b*p*P),se=Math.sin(E*P),ne=Math.cos(E*P),q=a-B*(C*se+w*ne),W=yt(B*(j*se+S*ne));return l.done=Math.abs(W)<=r&&Math.abs(a-q)<=s,l.value=l.done?a:q,l}const V=v(P);if(g)l.done=P>=f;else{const B=yt(k(P));l.done=Math.abs(B)<=r&&Math.abs(a-V)<=s}return l.value=l.done?a:V,l},toString:()=>{const P=Math.min(Rd(N),Qa),V=Mx(B=>N.next(P*B).value,P,30);return P+"ms "+V},toTransition:()=>{}};return N}Ja.applyToOptions=e=>{const t=l2(e,100,Ja);return e.ease=t.ease,e.duration=yt(t.duration),e.type="keyframes",e};const p2=5;function Lx(e,t,n){const r=Math.max(t-p2,0);return Pd(n-e(r),t-r)}function Ku({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:a,min:l,max:u,restDelta:c=.5,restSpeed:d}){const f=e[0],h={done:!1,value:f},g=S=>l!==void 0&&S<l||u!==void 0&&S>u,y=S=>l===void 0?u:u===void 0||Math.abs(l-S)<Math.abs(u-S)?l:u;let b=n*t;const w=f+b,p=a===void 0?w:a(w);p!==w&&(b=p-f);const x=S=>-b*Math.exp(-S/r),v=S=>p+x(S),k=S=>{const N=x(S),P=v(S);h.done=Math.abs(N)<=c,h.value=h.done?p:P};let E,C;const j=S=>{g(h.value)&&(E=S,C=Ja({keyframes:[h.value,y(h.value)],velocity:Lx(v,S,h.value),damping:s,stiffness:i,restDelta:c,restSpeed:d}))};return j(0),{calculatedDuration:null,next:S=>{let N=!1;return!C&&E===void 0&&(N=!0,k(S),j(S)),E!==void 0&&S>=E?C.next(S-E):(!N&&k(S),h)}}}function g2(e,t,n){const r=[],s=n||On.mix||_x,i=e.length-1;for(let a=0;a<i;a++){let l=s(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||ft:t;l=bi(u,l)}r.push(l)}return r}function Id(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(Cd(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=g2(t,r,s),u=l.length,c=d=>{if(a&&d<e[0])return t[0];let f=0;if(u>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=es(e[f],e[f+1],d);return l[f](h)};return n?d=>c($t(e[0],e[i-1],d)):c}function x2(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=es(0,t,r);e.push(he(n,1,s))}}function Ax(e){const t=[0];return x2(t,e.length-1),t}function y2(e,t){return e.map(n=>n*t)}function v2(e,t){return e.map(()=>t||wx).splice(0,e.length-1)}function zs({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=Nk(r)?r.map(Ih):Ih(r),i={done:!1,value:t[0]},a=y2(n&&n.length===t.length?n:Ax(t),e),l=Id(a,t,{ease:Array.isArray(s)?s:v2(t,s)});return{calculatedDuration:e,next:u=>(i.value=l(u),i.done=u>=e,i)}}const w2=e=>e!==null;function Lo(e,{repeat:t,repeatType:n="loop"},r,s=1){const i=e.filter(w2),l=s<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!l||r===void 0?i[l]:r}const b2={decay:Ku,inertia:Ku,tween:zs,keyframes:zs,spring:Ja};function Dx(e){typeof e.type=="string"&&(e.type=b2[e.type])}class Vd{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 k2=e=>e/100;class fi extends Vd{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!==nt.now()&&this.tick(nt.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;Dx(t);const{type:n=zs,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:a=0}=t;let{keyframes:l}=t;const u=n||zs;u!==zs&&typeof l[0]!="number"&&(this.mixKeyframes=bi(k2,_x(l[0],l[1])),l=[0,100]);const c=u({...t,keyframes:l});i==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...l].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Rd(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:a,resolvedDuration:l,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:d,repeat:f,repeatType:h,repeatDelay:g,type:y,onUpdate:b,finalKeyframe:w}=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 p=this.currentTime-c*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?p<0:p>s;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let v=this.currentTime,k=r;if(f){const S=Math.min(this.currentTime,s)/l;let N=Math.floor(S),P=S%1;!P&&S>=1&&(P=1),P===1&&N--,N=Math.min(N,f+1),!!(N%2)&&(h==="reverse"?(P=1-P,g&&(P-=g/l)):h==="mirror"&&(k=a)),v=$t(0,1,P)*l}let E;x?(this.delayState.value=d[0],E=this.delayState):E=k.next(v),i&&!x&&(E.value=i(E.value));let{done:C}=E;!x&&u!==null&&(C=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return j&&y!==Ku&&(E.value=Lo(d,this.options,w,this.speed)),b&&b(E.value),j&&this.finish(),E}then(t,n){return this.finished.then(t,n)}get duration(){return Ct(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ct(t)}get time(){return Ct(this.currentTime)}set time(t){t=yt(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 Lx(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(nt.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=Ct(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:t=o2,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),(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(nt.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 S2(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const nr=e=>e*180/Math.PI,qu=e=>{const t=nr(Math.atan2(e[1],e[0]));return Yu(t)},j2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:qu,rotateZ:qu,skewX:e=>nr(Math.atan(e[1])),skewY:e=>nr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Yu=e=>(e=e%360,e<0&&(e+=360),e),Hh=qu,Uh=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Wh=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),E2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Uh,scaleY:Wh,scale:e=>(Uh(e)+Wh(e))/2,rotateX:e=>Yu(nr(Math.atan2(e[6],e[5]))),rotateY:e=>Yu(nr(Math.atan2(-e[2],e[0]))),rotateZ:Hh,rotate:Hh,skewX:e=>nr(Math.atan(e[4])),skewY:e=>nr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Xu(e){return e.includes("scale")?1:0}function Zu(e,t){if(!e||e==="none")return Xu(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=E2,s=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=j2,s=l}if(!s)return Xu(t);const i=r[t],a=s[1].split(",").map(T2);return typeof i=="function"?i(a):a[i]}const C2=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Zu(n,t)};function T2(e){return parseFloat(e.trim())}const cs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ds=new Set([...cs,"pathRotation"]),Gh=e=>e===us||e===O,P2=new Set(["x","y","z"]),N2=cs.filter(e=>!P2.has(e));function _2(e){const t=[];return N2.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const En={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})=>Zu(t,"x"),y:(e,{transform:t})=>Zu(t,"y")};En.translateX=En.x;En.translateY=En.y;const ir=new Set;let Qu=!1,Ju=!1,ec=!1;function Rx(){if(Ju){const e=Array.from(ir).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=_2(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,a])=>{var l;(l=r.getValue(i))==null||l.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Ju=!1,Qu=!1,ir.forEach(e=>e.complete(ec)),ir.clear()}function Ix(){ir.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ju=!0)})}function M2(){ec=!0,Ix(),Rx(),ec=!1}class Fd{constructor(t,n,r,s,i,a=!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=a}scheduleResolve(){this.state="scheduled",this.isAsync?(ir.add(this),Qu||(Qu=!0,re.read(Ix),re.resolveKeyframes(Rx))):(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(),a=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),s&&i===void 0&&s.set(t[0])}S2(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ir.delete(this)}cancel(){this.state==="scheduled"&&(ir.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const L2=e=>e.startsWith("--");function Vx(e,t,n){L2(t)?e.style.setProperty(t,n):e.style[t]=n}const A2={};function Od(e,t){const n=dx(e);return()=>A2[t]??n()}const zd=Od(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Fx=Od(()=>window.ViewTimeline!==void 0,"viewTimeline"),Ox=Od(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ps=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Kh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ps([0,.65,.55,1]),circOut:Ps([.55,0,1,.45]),backIn:Ps([.31,.01,.66,-.59]),backOut:Ps([.33,1.53,.69,.99])};function zx(e,t){if(e)return typeof e=="function"?Ox()?Mx(e,t):"ease-out":bx(e)?Ps(e):Array.isArray(e)?e.map(n=>zx(n,t)||Kh.easeOut):Kh[e]}function D2(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:a="loop",ease:l="easeOut",times:u}={},c=void 0){const d={[t]:n};u&&(d.offset=u);const f=zx(l,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:a==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(d,h)}function Bx(e){return typeof e=="function"&&"applyToOptions"in e}function R2({type:e,...t}){return Bx(e)&&Ox()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class $x extends Vd{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:a=!1,finalKeyframe:l,onComplete:u}=t;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=t,Cd(typeof t.type!="string");const c=R2(t);this.animation=D2(n,r,s,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=Lo(s,this.options,l,this.speed);this.updateMotionValue&&this.updateMotionValue(d),Vx(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 Ct(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ct(t)}get time(){return Ct(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=yt(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&&zd()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),ft):s(this)}}const Hx={anticipate:xx,backInOut:gx,circInOut:vx};function I2(e){return e in Hx}function V2(e){typeof e.ease=="string"&&I2(e.ease)&&(e.ease=Hx[e.ease])}const Sl=10;class F2 extends $x{constructor(t){V2(t),Dx(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,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const l=new fi({...a,autoplay:!1}),u=Math.max(Sl,nt.now()-this.startTime),c=$t(0,Sl,u-Sl),d=l.sample(u).value,{name:f}=this.options;i&&f&&Vx(i,f,d),n.setWithVelocity(l.sample(Math.max(0,u-c)).value,d,c),l.stop()}}const qh=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(zt.test(e)||e==="0")&&!e.startsWith("url("));function O2(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function z2(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],a=qh(s,t),l=qh(i,t);return!a||!l?!1:O2(e)||(n==="spring"||Bx(n))&&r}function tc(e){e.duration=0,e.type="keyframes"}const Ux=new Set(["opacity","clipPath","filter","transform"]),B2=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function $2(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&B2.test(e[t]))return!0;return!1}const H2=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),U2=dx(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function W2(e){var f;const{motionValue:t,name:n,repeatDelay:r,repeatType:s,damping:i,type:a,keyframes:l}=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 U2()&&n&&(Ux.has(n)||H2.has(n)&&$2(l))&&(n!=="transform"||!d)&&!c&&!r&&s!=="mirror"&&i!==0&&a!=="inertia"}const G2=40;class K2 extends Vd{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:a="loop",keyframes:l,name:u,motionValue:c,element:d,...f}){var y;super(),this.stop=()=>{var b,w;this._animation&&(this._animation.stop(),(b=this.stopTimeline)==null||b.call(this)),(w=this.keyframeResolver)==null||w.cancel()},this.createdAt=nt.now();const h={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:a,name:u,motionValue:c,element:d,...f},g=(d==null?void 0:d.KeyframeResolver)||Fd;this.keyframeResolver=new g(l,(b,w,p)=>this.onKeyframesResolved(b,w,h,!p),u,c,d),(y=this.keyframeResolver)==null||y.scheduleResolve()}onKeyframesResolved(t,n,r,s){var p,x;this.keyframeResolver=void 0;const{name:i,type:a,velocity:l,delay:u,isHandoff:c,onUpdate:d}=r;this.resolvedAt=nt.now();let f=!0;z2(t,i,a,l)||(f=!1,(On.instantAnimations||!u)&&(d==null||d(Lo(t,r,n))),t[0]=t[t.length-1],tc(r),r.repeat=0);const g={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>G2?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},y=f&&!c&&W2(g),b=(x=(p=g.motionValue)==null?void 0:p.owner)==null?void 0:x.current;let w;if(y)try{w=new F2({...g,element:b})}catch{w=new fi(g)}else w=new fi(g);w.finished.then(()=>{this.notifyFinished()}).catch(ft),this.pendingTimeline&&(this.stopTimeline=w.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=w}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(),M2()),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 Wx(e,t,n,r=0,s=1){const i=Array.from(e).sort((c,d)=>c.sortNodePosition(d)).indexOf(t),a=e.size,l=(a-1)*r;return typeof n=="function"?n(i,a):s===1?i*r:l-i*r}const Yh=30,q2=e=>!isNaN(parseFloat(e)),Bs={current:void 0};class Y2{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const s=nt.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 a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=nt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=q2(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 Td);const r=this.events[t].add(n);return t==="change"?()=>{r(),re.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 Bs.current&&Bs.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=nt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Yh)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Yh);return Pd(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 Y2(e,t)}function Bd(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function $d(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?Bd(n,e):n}const X2={type:"spring",stiffness:500,damping:25,restSpeed:10},Z2=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Q2={type:"keyframes",duration:.8},J2={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},eS=(e,{keyframes:t})=>t.length>2?Q2:ds.has(e)?e.startsWith("scale")?Z2(t[1]):X2:J2,tS=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function nS(e){for(const t in e)if(!tS.has(t))return!0;return!1}const Hd=(e,t,n,r={},s,i)=>a=>{const l=$d(r,e)||{},u=l.delay||r.delay||0;let{elapsed:c=0}=r;c=c-yt(u);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-c,onUpdate:h=>{t.set(h),l.onUpdate&&l.onUpdate(h)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:i?void 0:s};nS(l)||Object.assign(d,eS(e,d)),d.duration&&(d.duration=yt(d.duration)),d.repeatDelay&&(d.repeatDelay=yt(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(tc(d),d.delay===0&&(f=!0)),(On.instantAnimations||On.skipAnimations||s!=null&&s.shouldSkipAnimations||l.skipAnimations)&&(f=!0,tc(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,f&&!i&&t.get()!==void 0){const h=Lo(d.keyframes,l);if(h!==void 0){re.update(()=>{d.onUpdate(h),d.onComplete()});return}}return l.isSync?new fi(d):new K2(d)},rS=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function sS(e){const t=rS.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function Gx(e,t,n=1){const[r,s]=sS(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return lx(a)?parseFloat(a):a}return Md(s)?Gx(s,t,n+1):s}function Xh(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ud(e,t,n,r){if(typeof t=="function"){const[s,i]=Xh(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]=Xh(r);t=t(n!==void 0?n:e.custom,s,i)}return t}function ar(e,t,n){const r=e.getProps();return Ud(r,t,n!==void 0?n:r.custom,e)}const Kx=new Set(["width","height","top","left","right","bottom",...cs]),nc=e=>Array.isArray(e);function iS(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Vt(n))}function aS(e){return nc(e)?e[e.length-1]||0:e}function oS(e,t){const n=ar(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const a in i){const l=aS(i[a]);iS(e,a,l)}}const Re=e=>!!(e&&e.getVelocity);function lS(e){return!!(Re(e)&&e.add)}function rc(e,t){const n=e.getValue("willChange");if(lS(n))return n.add(t);if(!n&&On.WillChange){const r=new On.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Wd(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const uS="framerAppearId",qx="data-"+Wd(uS);function Yx(e){return e.props[qx]}function cS({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Xx(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i,transitionEnd:a,...l}=t;const u=e.getDefaultTransition();i=i?Bd(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],g=i==null?void 0:i.path;g&&g.animateVisualElement(e,l,i,n,f);for(const y in l){const b=e.getValue(y,e.latestValues[y]??null),w=l[y];if(w===void 0||h&&cS(h,y))continue;const p={delay:n,...$d(i||{},y)};d&&(p.skipAnimations=!0);const x=b.get();if(x!==void 0&&!b.isAnimating()&&!Array.isArray(w)&&w===x&&!p.velocity){re.update(()=>b.set(w));continue}let v=!1;if(window.MotionHandoffAnimation){const C=Yx(e);if(C){const j=window.MotionHandoffAnimation(C,y,re);j!==null&&(p.startTime=j,v=!0)}}rc(e,y);const k=c??e.shouldReduceMotion;b.start(Hd(y,b,w,k&&Kx.has(y)?{type:!1}:p,e,v));const E=b.animation;E&&f.push(E)}if(a){const y=()=>re.update(()=>{a&&oS(e,a)});f.length?Promise.all(f).then(y):y()}return f}function sc(e,t,n={}){var u;const r=ar(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(Xx(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:h}=s;return dS(e,t,c,d,f,h,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[c,d]=l==="beforeChildren"?[i,a]:[a,i];return c().then(()=>d())}else return Promise.all([i(),a(n.delay)])}function dS(e,t,n=0,r=0,s=0,i=1,a){const l=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),l.push(sc(u,t,{...a,delay:n+(typeof r=="function"?0:r)+Wx(e.variantChildren,u,r,s,i)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(l)}function fS(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>sc(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=sc(e,t,n);else{const s=typeof t=="function"?ar(e,t,n.custom):t;r=Promise.all(Xx(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const hS={test:e=>e==="auto",parse:e=>e},Zx=e=>t=>t.test(e),Qx=[us,O,Xt,Jt,$k,Bk,hS],Zh=e=>Qx.find(Zx(e));function mS(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||cx(e):!0}const pS=new Set(["brightness","contrast","saturate","opacity"]);function gS(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ld)||[];if(!r)return e;const s=n.replace(r,"");let i=pS.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const xS=/\b([a-z-]*)\(.*?\)/gu,ic={...zt,getAnimatableNone:e=>{const t=e.match(xS);return t?t.map(gS).join(" "):e}},ac={...zt,getAnimatableNone:e=>{const t=zt.parse(e);return zt.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Qh={...us,transform:Math.round},yS={rotate:Jt,pathRotation:Jt,rotateX:Jt,rotateY:Jt,rotateZ:Jt,scale:Ki,scaleX:Ki,scaleY:Ki,scaleZ:Ki,skew:Jt,skewX:Jt,skewY:Jt,distance:O,translateX:O,translateY:O,translateZ:O,x:O,y:O,z:O,perspective:O,transformPerspective:O,opacity:di,originX:Fh,originY:Fh,originZ:O},eo={borderWidth:O,borderTopWidth:O,borderRightWidth:O,borderBottomWidth:O,borderLeftWidth:O,borderRadius:O,borderTopLeftRadius:O,borderTopRightRadius:O,borderBottomRightRadius:O,borderBottomLeftRadius:O,width:O,maxWidth:O,height:O,maxHeight:O,top:O,right:O,bottom:O,left:O,inset:O,insetBlock:O,insetBlockStart:O,insetBlockEnd:O,insetInline:O,insetInlineStart:O,insetInlineEnd:O,padding:O,paddingTop:O,paddingRight:O,paddingBottom:O,paddingLeft:O,paddingBlock:O,paddingBlockStart:O,paddingBlockEnd:O,paddingInline:O,paddingInlineStart:O,paddingInlineEnd:O,margin:O,marginTop:O,marginRight:O,marginBottom:O,marginLeft:O,marginBlock:O,marginBlockStart:O,marginBlockEnd:O,marginInline:O,marginInlineStart:O,marginInlineEnd:O,fontSize:O,backgroundPositionX:O,backgroundPositionY:O,...yS,zIndex:Qh,fillOpacity:di,strokeOpacity:di,numOctaves:Qh},vS={...eo,color:Pe,backgroundColor:Pe,outlineColor:Pe,fill:Pe,stroke:Pe,borderColor:Pe,borderTopColor:Pe,borderRightColor:Pe,borderBottomColor:Pe,borderLeftColor:Pe,filter:ic,WebkitFilter:ic,mask:ac,WebkitMask:ac},Jx=e=>vS[e],wS=new Set([ic,ac]);function ey(e,t){let n=Jx(e);return wS.has(n)||(n=zt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const bS=new Set(["auto","none","0"]);function kS(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!bS.has(i)&&ts(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=ey(n,s)}class SS extends Fd{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let f=t[d];if(typeof f=="string"&&(f=f.trim(),Md(f))){const h=Gx(f,n.current);h!==void 0&&(t[d]=h),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!Kx.has(r)||t.length!==2)return;const[s,i]=t,a=Zh(s),l=Zh(i),u=Vh(s),c=Vh(i);if(u!==c&&En[r]){this.needsMeasurement=!0;return}if(a!==l)if(Gh(a)&&Gh(l))for(let d=0;d<t.length;d++){const f=t[d];typeof f=="string"&&(t[d]=parseFloat(f))}else En[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)(t[s]===null||mS(t[s]))&&r.push(s);r.length&&kS(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=En[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var l;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const i=r.length-1,a=r[i];r[i]=En[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),(l=this.removedTransforms)!=null&&l.length&&this.removedTransforms.forEach(([u,c])=>{t.getValue(u).set(c)}),this.resolveNoneKeyframes()}}const Gd=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function ty(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 oc=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function $s(e){return ux(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:ns,cancel:ny}=kx(queueMicrotask,!1),At={x:!1,y:!1};function ry(){return At.x||At.y}function jS(e){return e==="x"||e==="y"?At[e]?null:(At[e]=!0,()=>{At[e]=!1}):At.x||At.y?null:(At.x=At.y=!0,()=>{At.x=At.y=!1})}function sy(e,t){const n=ty(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function ES(e){return!(e.pointerType==="touch"||ry())}function CS(e,t,n={}){const[r,s,i]=sy(e,n);return r.forEach(a=>{let l=!1,u=!1,c;const d=()=>{a.removeEventListener("pointerleave",y)},f=w=>{c&&(c(w),c=void 0),d()},h=w=>{l=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),u&&(u=!1,f(w))},g=()=>{l=!0,window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",h,s)},y=w=>{if(w.pointerType!=="touch"){if(l){u=!0;return}f(w)}},b=w=>{if(!ES(w))return;u=!1;const p=t(a,w);typeof p=="function"&&(c=p,a.addEventListener("pointerleave",y,s))};a.addEventListener("pointerenter",b,s),a.addEventListener("pointerdown",g,s)}),i}const iy=(e,t)=>t?e===t?!0:iy(e,t.parentElement):!1,Kd=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,TS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function PS(e){return TS.has(e.tagName)||e.isContentEditable===!0}const NS=new Set(["INPUT","SELECT","TEXTAREA"]);function _S(e){return NS.has(e.tagName)||e.isContentEditable===!0}const pa=new WeakSet;function Jh(e){return t=>{t.key==="Enter"&&e(t)}}function jl(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const MS=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Jh(()=>{if(pa.has(n))return;jl(n,"down");const s=Jh(()=>{jl(n,"up")}),i=()=>jl(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 em(e){return Kd(e)&&!ry()}const tm=new WeakSet;function LS(e,t,n={}){const[r,s,i]=sy(e,n),a=l=>{const u=l.currentTarget;if(!em(l)||tm.has(l))return;pa.add(u),n.stopPropagation&&tm.add(l);const c=t(u,l),d={...s,capture:!0},f=(y,b)=>{window.removeEventListener("pointerup",h,d),window.removeEventListener("pointercancel",g,d),pa.has(u)&&pa.delete(u),em(y)&&typeof c=="function"&&c(y,{success:b})},h=y=>{f(y,u===window||u===document||n.useGlobalTarget||iy(u,y.target))},g=y=>{f(y,!1)};window.addEventListener("pointerup",h,d),window.addEventListener("pointercancel",g,d)};return r.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,s),$s(l)&&(l.addEventListener("focus",c=>MS(c,s)),!PS(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),i}function qd(e){return ux(e)&&"ownerSVGElement"in e}const ga=new WeakMap;let gn;const ay=(e,t,n)=>(r,s)=>s&&s[0]?s[0][e+"Size"]:qd(r)&&"getBBox"in r?r.getBBox()[t]:r[n],AS=ay("inline","width","offsetWidth"),DS=ay("block","height","offsetHeight");function RS({target:e,borderBoxSize:t}){var n;(n=ga.get(e))==null||n.forEach(r=>{r(e,{get width(){return AS(e,t)},get height(){return DS(e,t)}})})}function IS(e){e.forEach(RS)}function VS(){typeof ResizeObserver>"u"||(gn=new ResizeObserver(IS))}function FS(e,t){gn||VS();const n=ty(e);return n.forEach(r=>{let s=ga.get(r);s||(s=new Set,ga.set(r,s)),s.add(t),gn==null||gn.observe(r)}),()=>{n.forEach(r=>{const s=ga.get(r);s==null||s.delete(t),s!=null&&s.size||gn==null||gn.unobserve(r)})}}const xa=new Set;let Vr;function OS(){Vr=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};xa.forEach(t=>t(e))},window.addEventListener("resize",Vr)}function zS(e){return xa.add(e),Vr||OS(),()=>{xa.delete(e),!xa.size&&typeof Vr=="function"&&(window.removeEventListener("resize",Vr),Vr=void 0)}}function lc(e,t){return typeof e=="function"?zS(e):FS(e,t)}function oy(e,t){let n;const r=()=>{const{currentTime:s}=t,a=(s===null?0:s.value)/100;n!==a&&e(a),n=a};return re.preUpdate(r,!0),()=>_t(r)}function BS(e){return qd(e)&&e.tagName==="svg"}function $S(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],s=e[1+n],i=e[2+n],a=e[3+n],l=Id(s,i,a);return t?l(r):l}function HS(e,t,n={}){const r=e.get();let s=null,i=r,a;const l=typeof r=="string"?r.replace(/[\d.-]/g,""):void 0,u=()=>{s&&(s.stop(),s=null),e.animation=void 0},c=()=>{const f=nm(e.get()),h=nm(i);if(f===h){u();return}const g=s?s.getGeneratorVelocity():e.getVelocity();u(),s=new fi({keyframes:[f,h],velocity:g,type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:a})},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,a=g=>h(El(g,l)),re.postRender(d)},u),Re(t)){let f=n.skipInitialAnimation===!0;const h=t.on("change",y=>{f?(f=!1,e.jump(El(y,l),!1)):e.set(El(y,l))}),g=e.on("destroy",h);return()=>{h(),g()}}return u}function El(e,t){return t?e+t:e}function nm(e){return typeof e=="number"?e:parseFloat(e)}const US=[...Qx,Pe,zt],WS=e=>US.find(Zx(e)),rm=()=>({translate:0,scale:1,origin:0,originPoint:0}),Fr=()=>({x:rm(),y:rm()}),sm=()=>({min:0,max:0}),Le=()=>({x:sm(),y:sm()}),GS=new WeakMap;function Ao(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function hi(e){return typeof e=="string"||Array.isArray(e)}const Yd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Xd=["initial",...Yd];function Do(e){return Ao(e.animate)||Xd.some(t=>hi(e[t]))}function ly(e){return!!(Do(e)||e.variants)}function KS(e,t,n){for(const r in t){const s=t[r],i=n[r];if(Re(s))e.addValue(r,s);else if(Re(i))e.addValue(r,Vt(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(s):a.hasAnimated||a.set(s)}else{const a=e.getStaticValue(r);e.addValue(r,Vt(a!==void 0?a:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const to={current:null},Zd={current:!1},qS=typeof window<"u";function uy(){if(Zd.current=!0,!!qS)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>to.current=e.matches;e.addEventListener("change",t),t()}else to.current=!1}const im=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let no={};function cy(e){no=e}function YS(){return no}class XS{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,skipAnimations:i,blockInitialAnimation:a,visualState:l},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=Fd,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 g=nt.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,re.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=l;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=i,this.options=u,this.blockInitialAnimation=!!a,this.isControllingVariants=Do(n),this.isVariantNode=ly(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in h){const y=h[g];c[g]!==void 0&&Re(y)&&y.set(c[g])}}mount(t){var n,r;if(this.hasBeenMounted)for(const s in this.initialValues)(n=this.values.get(s))==null||n.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=t,GS.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,i)=>this.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Zd.current||uy(),this.shouldReduceMotion=to.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(),_t(this.notifyUpdate),_t(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&&Ux.has(t)&&this.current instanceof HTMLElement){const{factory:a,keyframes:l,times:u,ease:c,duration:d}=n.accelerate,f=new $x({element:this.current,name:t,keyframes:l,times:u,ease:c,duration:yt(d)}),h=a(f);this.valueSubscriptions.set(t,()=>{h(),f.cancel()});return}const r=ds.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&re.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 no){const n=no[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):Le()}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<im.length;r++){const s=im[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,a=t[i];a&&(this.propEventSubscriptions[s]=this.on(s,a))}this.prevMotionValues=KS(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=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"&&(lx(r)||cx(r))?r=parseFloat(r):!WS(r)&&zt.test(n)&&(r=ey(t,n)),this.setBaseTarget(t,Re(r)?r.get():r)),Re(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 a=Ud(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!Re(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 Td),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){ns.render(this.render)}}class dy extends XS{constructor(){super(...arguments),this.KeyframeResolver=SS}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;Re(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Un{constructor(t){this.isMounted=!1,this.node=t}update(){}}function fy({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ZS({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function QS(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 Cl(e){return e===void 0||e===1}function uc({scale:e,scaleX:t,scaleY:n}){return!Cl(e)||!Cl(t)||!Cl(n)}function Zn(e){return uc(e)||hy(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function hy(e){return am(e.x)||am(e.y)}function am(e){return e&&e!=="0%"}function ro(e,t,n){const r=e-n,s=t*r;return n+s}function om(e,t,n,r,s){return s!==void 0&&(e=ro(e,s,r)),ro(e,n,r)+t}function cc(e,t=0,n=1,r,s){e.min=om(e.min,t,n,r,s),e.max=om(e.max,t,n,r,s)}function my(e,{x:t,y:n}){cc(e.x,t.translate,t.scale,t.originPoint),cc(e.y,n.translate,n.scale,n.originPoint)}const lm=.999999999999,um=1.0000000000001;function JS(e,t,n,r=!1){var l;const s=n.length;if(!s)return;t.x=t.y=1;let i,a;for(let u=0;u<s;u++){i=n[u],a=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(Gt(e.x,-i.scroll.offset.x),Gt(e.y,-i.scroll.offset.y)),a&&(t.x*=a.x.scale,t.y*=a.y.scale,my(e,a)),r&&Zn(i.latestValues)&&ya(e,i.latestValues,(l=i.layout)==null?void 0:l.layoutBox))}t.x<um&&t.x>lm&&(t.x=1),t.y<um&&t.y>lm&&(t.y=1)}function Gt(e,t){e.min+=t,e.max+=t}function cm(e,t,n,r,s=.5){const i=he(e.min,e.max,s);cc(e,t,n,i,r)}function dm(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function ya(e,t,n){const r=n??e;cm(e.x,dm(t.x,r.x),t.scaleX,t.scale,t.originX),cm(e.y,dm(t.y,r.y),t.scaleY,t.scale,t.originY)}function py(e,t){return fy(QS(e.getBoundingClientRect(),t))}function ej(e,t,n){const r=py(e,n),{scroll:s}=t;return s&&(Gt(r.x,s.offset.x),Gt(r.y,s.offset.y)),r}const tj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nj=cs.length;function rj(e,t,n){let r="",s=!0;for(let a=0;a<nj;a++){const l=cs[a],u=e[l];if(u===void 0)continue;let c=!0;if(typeof u=="number")c=u===(l.startsWith("scale")?1:0);else{const d=parseFloat(u);c=l.startsWith("scale")?d===1:d===0}if(!c||n){const d=oc(u,eo[l]);if(!c){s=!1;const f=tj[l]||l;r+=`${f}(${d}) `}n&&(t[l]=d)}}const i=e.pathRotation;return i&&(s=!1,r+=`rotate(${oc(i,eo.pathRotation)}) `),r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Qd(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let a=!1,l=!1;for(const u in t){const c=t[u];if(ds.has(u)){a=!0;continue}else if(jx(u)){s[u]=c;continue}else{const d=oc(c,eo[u]);u.startsWith("origin")?(l=!0,i[u]=d):r[u]=d}}if(t.transform||(a||n?r.transform=rj(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:u="50%",originY:c="50%",originZ:d=0}=i;r.transformOrigin=`${u} ${c} ${d}`}}function gy(e,{style:t,vars:n},r,s){const i=e.style;let a;for(a in t)i[a]=t[a];s==null||s.applyProjectionStyles(i,r);for(a in n)i.setProperty(a,n[a])}function fm(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ws={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(O.test(e))e=parseFloat(e);else return e;const n=fm(e,t.target.x),r=fm(e,t.target.y);return`${n}% ${r}%`}},sj={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=zt.parse(e);if(s.length>5)return r;const i=zt.createTransformer(e),a=typeof s[0]!="number"?1:0,l=n.x.scale*t.x,u=n.y.scale*t.y;s[0+a]/=l,s[1+a]/=u;const c=he(l,u,.5);return typeof s[2+a]=="number"&&(s[2+a]/=c),typeof s[3+a]=="number"&&(s[3+a]/=c),i(s)}},dc={borderRadius:{...ws,applyTo:[...Gd]},borderTopLeftRadius:ws,borderTopRightRadius:ws,borderBottomLeftRadius:ws,borderBottomRightRadius:ws,boxShadow:sj};function xy(e,{layout:t,layoutId:n}){return ds.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!dc[e]||e==="opacity")}function Jd(e,t,n){var a;const r=e.style,s=t==null?void 0:t.style,i={};if(!r)return i;for(const l in r)(Re(r[l])||s&&Re(s[l])||xy(l,e)||((a=n==null?void 0:n.getValue(l))==null?void 0:a.liveStyle)!==void 0)&&(i[l]=r[l]);return i}function ij(e){return window.getComputedStyle(e)}class aj extends dy{constructor(){super(...arguments),this.type="html",this.renderInstance=gy}readValueFromInstance(t,n){var r;if(ds.has(n))return(r=this.projection)!=null&&r.isProjecting?Xu(n):C2(t,n);{const s=ij(t),i=(jx(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return py(t,n)}build(t,n,r){Qd(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Jd(t,n,r)}}const oj={offset:"stroke-dashoffset",array:"stroke-dasharray"},lj={offset:"strokeDashoffset",array:"strokeDasharray"};function uj(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?oj:lj;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const cj=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function yy(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:a=0,...l},u,c,d){if(Qd(e,l,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 g of cj)f[g]!==void 0&&(h[g]=f[g],delete f[g]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),s!==void 0&&uj(f,s,i,a,!1)}const vy=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"]),wy=e=>typeof e=="string"&&e.toLowerCase()==="svg";function dj(e,t,n,r){gy(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(vy.has(s)?s:Wd(s),t.attrs[s])}function by(e,t,n){const r=Jd(e,t,n);for(const s in e)if(Re(e[s])||Re(t[s])){const i=cs.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}class fj extends dy{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Le}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ds.has(n)){const r=Jx(n);return r&&r.default||0}return n=vy.has(n)?n:Wd(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return by(t,n,r)}build(t,n,r){yy(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){dj(t,n,r,s)}mount(t){this.isSVGTag=wy(t.tagName),super.mount(t)}}const hj=Xd.length;function ky(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?ky(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<hj;n++){const r=Xd[n],s=e.props[r];(hi(s)||s===!1)&&(t[r]=s)}return t}function Sy(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const mj=[...Yd].reverse(),pj=Yd.length;function gj(e){return t=>Promise.all(t.map(({animation:n,options:r})=>fS(e,n,r)))}function xj(e){let t=gj(e),n=hm(),r=!0,s=!1;const i=c=>(d,f)=>{var g;const h=ar(e,f,c==="exit"?(g=e.presenceContext)==null?void 0:g.custom:void 0);if(h){const{transition:y,transitionEnd:b,...w}=h;d={...d,...w,...b}}return d};function a(c){t=c(e)}function l(c){const{props:d}=e,f=ky(e.parent)||{},h=[],g=new Set;let y={},b=1/0;for(let p=0;p<pj;p++){const x=mj[p],v=n[x],k=d[x]!==void 0?d[x]:f[x],E=hi(k),C=x===c?v.isActive:null;C===!1&&(b=p);let j=k===f[x]&&k!==d[x]&&E;if(j&&(r||s)&&e.manuallyAnimateOnMount&&(j=!1),v.protectedKeys={...y},!v.isActive&&C===null||!k&&!v.prevProp||Ao(k)||typeof k=="boolean")continue;if(x==="exit"&&v.isActive&&C!==!0){v.prevResolvedValues&&(y={...y,...v.prevResolvedValues});continue}const S=yj(v.prevProp,k);let N=S||x===c&&v.isActive&&!j&&E||p>b&&E,P=!1;const V=Array.isArray(k)?k:[k];let B=V.reduce(i(x),{});C===!1&&(B={});const{prevResolvedValues:se={}}=v,ne={...se,...B},q=T=>{N=!0,g.has(T)&&(P=!0,g.delete(T)),v.needsAnimating[T]=!0;const M=e.getValue(T);M&&(M.liveStyle=!1)};for(const T in ne){const M=B[T],L=se[T];if(y.hasOwnProperty(T))continue;let D=!1;nc(M)&&nc(L)?D=!Sy(M,L)||S:D=M!==L,D?M!=null?q(T):g.add(T):M!==void 0&&g.has(T)?q(T):v.protectedKeys[T]=!0}v.prevProp=k,v.prevResolvedValues=B,v.isActive&&(y={...y,...B}),(r||s)&&e.blockInitialAnimation&&(N=!1);const W=j&&S;N&&(!W||P)&&h.push(...V.map(T=>{const M={type:x};if(typeof T=="string"&&(r||s)&&!W&&e.manuallyAnimateOnMount&&e.parent){const{parent:L}=e,D=ar(L,T);if(L.enteringChildren&&D){const{delayChildren:H}=D.transition||{};M.delay=Wx(L.enteringChildren,e,H)}}return{animation:T,options:M}}))}if(g.size){const p={};if(typeof d.initial!="boolean"){const x=ar(e,Array.isArray(d.initial)?d.initial[0]:d.initial);x&&x.transition&&(p.transition=x.transition)}g.forEach(x=>{const v=e.getBaseTarget(x),k=e.getValue(x);k&&(k.liveStyle=!0),p[x]=v??null}),h.push({animation:p})}let w=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,s=!1,w?t(h):Promise.resolve()}function u(c,d){var h;if(n[c].isActive===d)return Promise.resolve();(h=e.variantChildren)==null||h.forEach(g=>{var y;return(y=g.animationState)==null?void 0:y.setActive(c,d)}),n[c].isActive=d;const f=l(c);for(const g in n)n[g].protectedKeys={};return f}return{animateChanges:l,setActive:u,setAnimateFunction:a,getState:()=>n,reset:()=>{n=hm(),s=!0}}}function yj(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Sy(t,e):!1}function Kn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function hm(){return{animate:Kn(!0),whileInView:Kn(),whileHover:Kn(),whileTap:Kn(),whileDrag:Kn(),whileFocus:Kn(),exit:Kn()}}function fc(e,t){e.min=t.min,e.max=t.max}function Lt(e,t){fc(e.x,t.x),fc(e.y,t.y)}function mm(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const jy=1e-4,vj=1-jy,wj=1+jy,Ey=.01,bj=0-Ey,kj=0+Ey;function rt(e){return e.max-e.min}function Sj(e,t,n){return Math.abs(e-t)<=n}function pm(e,t,n,r=.5){e.origin=r,e.originPoint=he(t.min,t.max,e.origin),e.scale=rt(n)/rt(t),e.translate=he(n.min,n.max,e.origin)-e.originPoint,(e.scale>=vj&&e.scale<=wj||isNaN(e.scale))&&(e.scale=1),(e.translate>=bj&&e.translate<=kj||isNaN(e.translate))&&(e.translate=0)}function Hs(e,t,n,r){pm(e.x,t.x,n.x,r?r.originX:void 0),pm(e.y,t.y,n.y,r?r.originY:void 0)}function gm(e,t,n,r=0){const s=r?he(n.min,n.max,r):n.min;e.min=s+t.min,e.max=e.min+rt(t)}function jj(e,t,n,r){gm(e.x,t.x,n.x,r==null?void 0:r.x),gm(e.y,t.y,n.y,r==null?void 0:r.y)}function xm(e,t,n,r=0){const s=r?he(n.min,n.max,r):n.min;e.min=t.min-s,e.max=e.min+rt(t)}function so(e,t,n,r){xm(e.x,t.x,n.x,r==null?void 0:r.x),xm(e.y,t.y,n.y,r==null?void 0:r.y)}function ym(e,t,n,r,s){return e-=t,e=ro(e,1/n,r),s!==void 0&&(e=ro(e,1/s,r)),e}function Ej(e,t=0,n=1,r=.5,s,i=e,a=e){if(Xt.test(t)&&(t=parseFloat(t),t=he(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=he(i.min,i.max,r);e===i&&(l-=t),e.min=ym(e.min,t,n,l,s),e.max=ym(e.max,t,n,l,s)}function vm(e,t,[n,r,s],i,a){Ej(e,t[n],t[r],t[s],t.scale,i,a)}const Cj=["x","scaleX","originX"],Tj=["y","scaleY","originY"];function wm(e,t,n,r){vm(e.x,t,Cj,n?n.x:void 0,r?r.x:void 0),vm(e.y,t,Tj,n?n.y:void 0,r?r.y:void 0)}function bm(e){return e.translate===0&&e.scale===1}function Cy(e){return bm(e.x)&&bm(e.y)}function km(e,t){return e.min===t.min&&e.max===t.max}function Pj(e,t){return km(e.x,t.x)&&km(e.y,t.y)}function Sm(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ty(e,t){return Sm(e.x,t.x)&&Sm(e.y,t.y)}function jm(e){return rt(e.x)/rt(e.y)}function Em(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Wt(e){return[e("x"),e("y")]}function Nj(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((s||i||a)&&(r=`translate3d(${s}px, ${i}px, ${a}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:g,skewX:y,skewY:b}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotate(${f}deg) `),h&&(r+=`rotateX(${h}deg) `),g&&(r+=`rotateY(${g}deg) `),y&&(r+=`skewX(${y}deg) `),b&&(r+=`skewY(${b}deg) `)}const l=e.x.scale*t.x,u=e.y.scale*t.y;return(l!==1||u!==1)&&(r+=`scale(${l}, ${u})`),r||"none"}const _j=Gd.length,Cm=e=>typeof e=="string"?parseFloat(e):e,Tm=e=>typeof e=="number"||O.test(e);function Mj(e,t,n,r,s,i){s?(e.opacity=he(0,n.opacity??1,Lj(r)),e.opacityExit=he(t.opacity??1,0,Aj(r))):i&&(e.opacity=he(t.opacity??1,n.opacity??1,r));for(let a=0;a<_j;a++){const l=Gd[a];let u=Pm(t,l),c=Pm(n,l);if(u===void 0&&c===void 0)continue;u||(u=0),c||(c=0),u===0||c===0||Tm(u)===Tm(c)?(e[l]=Math.max(he(Cm(u),Cm(c),r),0),(Xt.test(c)||Xt.test(u))&&(e[l]+="%")):e[l]=c}(t.rotate||n.rotate)&&(e.rotate=he(t.rotate||0,n.rotate||0,r))}function Pm(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Lj=Py(0,.5,yx),Aj=Py(.5,.95,ft);function Py(e,t,n){return r=>r<e?0:r>t?1:n(es(e,t,r))}function Dj(e,t,n){const r=Re(e)?e:Vt(e);return r.start(Hd("",r,t,n)),r.animation}function mi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}const Rj=(e,t)=>e.depth-t.depth;class Ij{constructor(){this.children=[],this.isDirty=!1}add(t){Ed(this.children,t),this.isDirty=!0}remove(t){Xa(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Rj),this.isDirty=!1,this.children.forEach(t)}}function Vj(e,t){const n=nt.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(_t(r),e(i-t))};return re.setup(r,!0),()=>_t(r)}function va(e){return Re(e)?e.get():e}class Fj{constructor(){this.members=[]}add(t){Ed(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&&(Xa(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(Xa(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:a}=t.options;(i===void 0||i!==a)&&(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,a;(r=(n=t.options).onExitComplete)==null||r.call(n),(a=(s=t.resumingFrom)==null?void 0:(i=s.options).onExitComplete)==null||a.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 wa={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Tl=["","X","Y","Z"],Oj=1e3;let zj=0;function Pl(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ny(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Yx(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",re,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Ny(r)}function _y({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(a={},l=t==null?void 0:t()){this.id=zj++,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(Hj),this.nodes.forEach(Yj),this.nodes.forEach(Xj),this.nodes.forEach(Uj)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ij)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Td),this.eventHandlers.get(a).add(l)}notifyListeners(a,...l){const u=this.eventHandlers.get(a);u&&u.notify(...l)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=qd(a)&&!BS(a),this.instance=a;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||l)&&(this.isLayoutDirty=!0),e){let d,f=0;const h=()=>this.root.updateBlockedByResize=!1;re.read(()=>{f=window.innerWidth}),e(a,()=>{const g=window.innerWidth;g!==f&&(f=g,this.root.updateBlockedByResize=!0,d&&d(),d=Vj(h,250),wa.hasAnimatedSinceResize&&(wa.hasAnimatedSinceResize=!1,this.nodes.forEach(Mm)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||tE,{onLayoutAnimationStart:b,onLayoutAnimationComplete:w}=c.getProps(),p=!this.targetLayout||!Ty(this.targetLayout,g),x=!f&&h;if(this.options.layoutRoot||this.resumeFrom||x||f&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...$d(y,"layout"),onPlay:b,onComplete:w};(c.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(d,x,v.path)}else f||Mm(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),_t(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(Zj),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ny(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,(typeof f.latestValues.x=="string"||typeof f.latestValues.y=="string")&&(f.isLayoutDirty=!0),f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:l,layout:u}=this.options;if(l===void 0&&!u)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const u=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),u&&this.nodes.forEach(Gj),this.nodes.forEach(Nm);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(_m);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Kj),this.nodes.forEach(qj),this.nodes.forEach(Bj),this.nodes.forEach($j)):this.nodes.forEach(_m),this.clearAllSnapshots();const l=nt.now();Ve.delta=$t(0,1e3/60,l-Ve.timestamp),Ve.timestamp=l,Ve.isProcessing=!0,yl.update.process(Ve),yl.preRender.process(Ve),yl.render.process(Ve),Ve.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ns.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Wj),this.sharedNodes.forEach(Qj)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,re.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){re.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!rt(this.snapshot.measuredBox.x)&&!rt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Le()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(l=!1),l&&this.instance){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!s)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Cy(this.projectionDelta),u=this.getTransformTemplate(),c=u?u(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;a&&this.instance&&(l||Zn(this.latestValues)||d)&&(s(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const l=this.measurePageBox();let u=this.removeElementScroll(l);return a&&(u=this.removeTransform(u)),nE(u),{animationId:this.root.animationId,measuredBox:l,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:a}=this.options;if(!a)return Le();const l=a.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(rE))){const{scroll:d}=this.root;d&&(Gt(l.x,d.offset.x),Gt(l.y,d.offset.y))}return l}removeElementScroll(a){var u;const l=Le();if(Lt(l,a),(u=this.scroll)!=null&&u.wasRoot)return l;for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:f,options:h}=d;d!==this.root&&f&&h.layoutScroll&&(f.wasRoot&&Lt(l,a),Gt(l.x,f.offset.x),Gt(l.y,f.offset.y))}return l}applyTransform(a,l=!1,u){var d,f;const c=u||Le();Lt(c,a);for(let h=0;h<this.path.length;h++){const g=this.path[h];!l&&g.options.layoutScroll&&g.scroll&&g!==g.root&&(Gt(c.x,-g.scroll.offset.x),Gt(c.y,-g.scroll.offset.y)),Zn(g.latestValues)&&ya(c,g.latestValues,(d=g.layout)==null?void 0:d.layoutBox)}return Zn(this.latestValues)&&ya(c,this.latestValues,(f=this.layout)==null?void 0:f.layoutBox),c}removeTransform(a){var u;const l=Le();Lt(l,a);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!Zn(d.latestValues))continue;let f;d.instance&&(uc(d.latestValues)&&d.updateSnapshot(),f=Le(),Lt(f,d.measurePageBox())),wm(l,d.latestValues,(u=d.snapshot)==null?void 0:u.layoutBox,f)}return Zn(this.latestValues)&&wm(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ve.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var g;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(a||u&&this.isSharedProjectionDirty||this.isProjectionDirty||(g=this.parent)!=null&&g.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!this.layout||!(d||f))return;this.resolvedRelativeTargetAt=Ve.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Le(),this.targetWithTransforms=Le()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),jj(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Lt(this.target,this.layout.layoutBox),my(this.target,this.targetDelta)):Lt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||uc(this.parent.latestValues)||hy(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,l,u){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Le(),this.relativeTargetOrigin=Le(),so(this.relativeTargetOrigin,l,u,this.options.layoutAnchor||void 0),Lt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var y;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||(y=this.parent)!=null&&y.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Ve.timestamp&&(u=!1),u)return;const{layout:c,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||d))return;Lt(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;JS(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Le());const{target:g}=a;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(mm(this.prevProjectionDelta.x,this.projectionDelta.x),mm(this.prevProjectionDelta.y,this.projectionDelta.y)),Hs(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!Em(this.projectionDelta.x,this.prevProjectionDelta.x)||!Em(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var l;if((l=this.options.visualElement)==null||l.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Fr(),this.projectionDelta=Fr(),this.projectionDeltaWithTransform=Fr()}setAnimationOrigin(a,l=!1,u){const c=this.snapshot,d=c?c.latestValues:{},f={...this.latestValues},h=Fr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const g=Le(),y=c?c.source:void 0,b=this.layout?this.layout.source:void 0,w=y!==b,p=this.getStack(),x=!p||p.members.length<=1,v=!!(w&&!x&&this.options.crossfade===!0&&!this.path.some(eE));this.animationProgress=0;let k;const E=u==null?void 0:u.interpolateProjection(a);this.mixTargetDelta=C=>{const j=C/1e3,S=E==null?void 0:E(j);S?(h.x.translate=S.x,h.x.scale=he(a.x.scale,1,j),h.x.origin=a.x.origin,h.x.originPoint=a.x.originPoint,h.y.translate=S.y,h.y.scale=he(a.y.scale,1,j),h.y.origin=a.y.origin,h.y.originPoint=a.y.originPoint):(Lm(h.x,a.x,j),Lm(h.y,a.y,j)),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(so(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Jj(this.relativeTarget,this.relativeTargetOrigin,g,j),k&&Pj(this.relativeTarget,k)&&(this.isProjectionDirty=!1),k||(k=Le()),Lt(k,this.relativeTarget)),w&&(this.animationValues=f,Mj(f,d,this.latestValues,j,v,x)),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(a){var l,u,c;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(c=(u=this.resumingFrom)==null?void 0:u.currentAnimation)==null||c.stop(),this.pendingAnimation&&(_t(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=re.update(()=>{wa.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Vt(0)),this.motionValue.jump(0,!1),this.currentAnimation=Dj(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Oj),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:u,layout:c,latestValues:d}=a;if(!(!l||!u||!c)){if(this!==a&&this.layout&&c&&My(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||Le();const f=rt(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+f;const h=rt(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+h}Lt(l,u),ya(l,d),Hs(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new Fj),this.sharedNodes.get(a).add(l);const c=l.options.initialPromotionConfig;l.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(l):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var l;const{layoutId:a}=this.options;return a?((l=this.getStack())==null?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:a}=this.options;return a?(l=this.getStack())==null?void 0:l.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:u}={}){const c=this.getStack();c&&c.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(l=!0),!l)return;const c={};u.z&&Pl("z",a,c,this.animationValues);for(let d=0;d<Tl.length;d++)Pl(`rotate${Tl[d]}`,a,c,this.animationValues),Pl(`skew${Tl[d]}`,a,c,this.animationValues);a.render();for(const d in c)a.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);a.scheduleRender()}applyProjectionStyles(a,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=va(l==null?void 0:l.pointerEvents)||"",a.transform=u?u(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=va(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!Zn(this.latestValues)&&(a.transform=u?u({},""):"none",this.hasProjected=!1);return}a.visibility="";const d=c.animationValues||c.latestValues;this.applyTransformsToTarget();let f=Nj(this.projectionDeltaWithTransform,this.treeScale,d);u&&(f=u(d,f)),a.transform=f;const{x:h,y:g}=this.projectionDelta;a.transformOrigin=`${h.origin*100}% ${g.origin*100}% 0`,c.animationValues?a.opacity=c===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:a.opacity=c===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const y in dc){if(d[y]===void 0)continue;const{correct:b,applyTo:w,isCSSVariable:p}=dc[y],x=f==="none"?d[y]:b(d[y],c);if(w){const v=w.length;for(let k=0;k<v;k++)a[w[k]]=x}else p?this.options.visualElement.renderState.vars[y]=x:a[y]=x}this.options.layoutId&&(a.pointerEvents=c===this?va(l==null?void 0:l.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var l;return(l=a.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(Nm),this.root.sharedNodes.clear()}}}function Bj(e){e.updateLayout()}function $j(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,a=t.source!==e.layout.source;if(i==="size")Wt(f=>{const h=a?t.measuredBox[f]:t.layoutBox[f],g=rt(h);h.min=r[f].min,h.max=h.min+g});else if(i==="x"||i==="y"){const f=i==="x"?"y":"x";fc(a?t.measuredBox[f]:t.layoutBox[f],r[f])}else My(i,t.layoutBox,r)&&Wt(f=>{const h=a?t.measuredBox[f]:t.layoutBox[f],g=rt(r[f]);h.max=h.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+g)});const l=Fr();Hs(l,r,t.layoutBox);const u=Fr();a?Hs(u,e.applyTransform(s,!0),t.measuredBox):Hs(u,r,t.layoutBox);const c=!Cy(l);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:g}=f;if(h&&g){const y=e.options.layoutAnchor||void 0,b=Le();so(b,t.layoutBox,h.layoutBox,y);const w=Le();so(w,r,g.layoutBox,y),Ty(b,w)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=b,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:u,layoutDelta:l,hasLayoutChanged:c,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Hj(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 Uj(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Wj(e){e.clearSnapshot()}function Nm(e){e.clearMeasurements()}function Gj(e){e.isLayoutDirty=!0,e.updateLayout()}function _m(e){e.isLayoutDirty=!1}function Kj(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function qj(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Mm(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Yj(e){e.resolveTargetDelta()}function Xj(e){e.calcProjection()}function Zj(e){e.resetSkewAndRotation()}function Qj(e){e.removeLeadSnapshot()}function Lm(e,t,n){e.translate=he(t.translate,0,n),e.scale=he(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Am(e,t,n,r){e.min=he(t.min,n.min,r),e.max=he(t.max,n.max,r)}function Jj(e,t,n,r){Am(e.x,t.x,n.x,r),Am(e.y,t.y,n.y,r)}function eE(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const tE={duration:.45,ease:[.4,0,.1,1]},Dm=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Rm=Dm("applewebkit/")&&!Dm("chrome/")?Math.round:ft;function Im(e){e.min=Rm(e.min),e.max=Rm(e.max)}function nE(e){Im(e.x),Im(e.y)}function My(e,t,n){return e==="position"||e==="preserve-aspect"&&!Sj(jm(t),jm(n),.2)}function rE(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const sE=_y({attachResizeListener:(e,t)=>mi(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}),Nl={current:void 0},Ly=_y({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Nl.current){const e=new sE({});e.mount(window),e.setOptions({layoutScroll:!0}),Nl.current=e}return Nl.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),hr=m.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Vm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function iE(...e){return t=>{let n=!1;const r=e.map(s=>{const i=Vm(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():Vm(e[s],null)}}}}function aE(...e){return m.useCallback(iE(...e),e)}class oE extends m.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if($s(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,s=$s(r)&&r.offsetWidth||0,i=$s(r)&&r.offsetHeight||0,a=getComputedStyle(n),l=this.props.sizeRef.current;l.height=parseFloat(a.height),l.width=parseFloat(a.width),l.top=n.offsetTop,l.left=n.offsetLeft,l.right=s-l.width-l.left,l.bottom=i-l.height-l.top,l.direction=a.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function lE({children:e,isPresent:t,anchorX:n,anchorY:r,root:s,pop:i}){var h;const a=m.useId(),l=m.useRef(null),u=m.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:c}=m.useContext(hr),d=((h=e.props)==null?void 0:h.ref)??(e==null?void 0:e.ref),f=aE(l,d);return m.useInsertionEffect(()=>{const{width:g,height:y,top:b,left:w,right:p,bottom:x,direction:v}=u.current;if(t||i===!1||!l.current||!g||!y)return;const k=v==="rtl",E=n==="left"?k?`right: ${p}`:`left: ${w}`:k?`left: ${w}`:`right: ${p}`,C=r==="bottom"?`bottom: ${x}`:`top: ${b}`;l.current.dataset.motionPopId=a;const j=document.createElement("style");c&&(j.nonce=c);const S=s??document.head;return S.appendChild(j),j.sheet&&j.sheet.insertRule(`
[data-motion-pop-id="${a}"] {
position: absolute !important;
width: ${g}px !important;
height: ${y}px !important;
${E}px !important;
${C}px !important;
}
`),()=>{var N;(N=l.current)==null||N.removeAttribute("data-motion-pop-id"),S.contains(j)&&S.removeChild(j)}},[t]),o.jsx(oE,{isPresent:t,childRef:l,sizeRef:u,pop:i,children:i===!1?e:m.cloneElement(e,{ref:f})})}const uE=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:a,anchorX:l,anchorY:u,root:c})=>{const d=fn(cE),f=m.useId(),h=m.useRef(n),g=m.useRef(r);wi(()=>{h.current=n,g.current=r});let y=!0,b=m.useMemo(()=>(y=!1,{id:f,initial:t,isPresent:n,custom:s,onExitComplete:w=>{d.set(w,!0);for(const p of d.values())if(!p)return;r&&r()},register:w=>(d.set(w,!1),()=>{var p;d.delete(w),!h.current&&!d.size&&((p=g.current)==null||p.call(g))})}),[n,d,r]);return i&&y&&(b={...b}),m.useMemo(()=>{d.forEach((w,p)=>d.set(p,!1))},[n]),m.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),e=o.jsx(lE,{pop:a==="popLayout",isPresent:n,anchorX:l,anchorY:u,root:c,children:e}),o.jsx(Mo.Provider,{value:b,children:e})};function cE(){return new Map}function Ay(e=!0){const t=m.useContext(Mo);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=m.useId();m.useEffect(()=>{if(e)return s(i)},[e]);const a=m.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,a]:[!0]}const qi=e=>e.key||"";function Fm(e){const t=[];return m.Children.forEach(e,n=>{m.isValidElement(n)&&t.push(n)}),t}const dE=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:a=!1,anchorX:l="left",anchorY:u="top",root:c})=>{const[d,f]=Ay(a),h=m.useMemo(()=>Fm(e),[e]),g=a&&!d?[]:h.map(qi),y=m.useRef(!0),b=m.useRef(h),w=fn(()=>new Map),p=m.useRef(new Set),[x,v]=m.useState(h),[k,E]=m.useState(h);wi(()=>{y.current=!1,b.current=h;for(let S=0;S<k.length;S++){const N=qi(k[S]);g.includes(N)?(w.delete(N),p.current.delete(N)):w.get(N)!==!0&&w.set(N,!1)}},[k,g.length,g.join("-")]);const C=[];if(h!==x){let S=[...h];for(let N=0;N<k.length;N++){const P=k[N],V=qi(P);g.includes(V)||(S.splice(N,0,P),C.push(P))}return i==="wait"&&C.length&&(S=C),E(Fm(S)),v(h),null}const{forceRender:j}=m.useContext(jd);return o.jsx(o.Fragment,{children:k.map(S=>{const N=qi(S),P=a&&!d?!1:h===k||g.includes(N),V=()=>{if(p.current.has(N))return;if(w.has(N))p.current.add(N),w.set(N,!0);else return;let B=!0;w.forEach(se=>{se||(B=!1)}),B&&(j==null||j(),E(b.current),a&&(f==null||f()),r&&r())};return o.jsx(uE,{isPresent:P,initial:!y.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:i,root:c,onExitComplete:P?void 0:V,anchorX:l,anchorY:u,children:S},N)})})},Dy=m.createContext({strict:!1}),Om={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 zm=!1;function fE(){if(zm)return;const e={};for(const t in Om)e[t]={isEnabled:n=>Om[t].some(r=>!!n[r])};cy(e),zm=!0}function Ry(){return fE(),YS()}function hE(e){const t=Ry();for(const n in e)t[n]={...t[n],...e[n]};cy(t)}const mE=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 io(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||mE.has(e)}let Iy=e=>!io(e);function Vy(e){typeof e=="function"&&(Iy=t=>t.startsWith("on")?!io(t):e(t))}try{Vy(require("@emotion/is-prop-valid").default)}catch{}function pE(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||Re(e[s])||(Iy(s)||n===!0&&io(s)||!t&&!io(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function gE({children:e,isValidProp:t,...n}){t&&Vy(t);const r=m.useContext(hr);n={...r,...n},n.transition=Bd(n.transition,r.transition),n.isStatic=fn(()=>n.isStatic);const s=m.useMemo(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion,n.skipAnimations]);return o.jsx(hr.Provider,{value:s,children:e})}const Ro=m.createContext({});function xE(e,t){if(Do(e)){const{initial:n,animate:r}=e;return{initial:n===!1||hi(n)?n:void 0,animate:hi(r)?r:void 0}}return e.inherit!==!1?t:{}}function yE(e){const{initial:t,animate:n}=xE(e,m.useContext(Ro));return m.useMemo(()=>({initial:t,animate:n}),[Bm(t),Bm(n)])}function Bm(e){return Array.isArray(e)?e.join(" "):e}const ef=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fy(e,t,n){for(const r in t)!Re(t[r])&&!xy(r,n)&&(e[r]=t[r])}function vE({transformTemplate:e},t){return m.useMemo(()=>{const n=ef();return Qd(n,t,e),Object.assign({},n.vars,n.style)},[t])}function wE(e,t){const n=e.style||{},r={};return Fy(r,n,e),Object.assign(r,vE(e,t)),r}function bE(e,t){const n={},r=wE(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 Oy=()=>({...ef(),attrs:{}});function kE(e,t,n,r){const s=m.useMemo(()=>{const i=Oy();return yy(i,t,wy(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Fy(i,e.style,e),s.style={...i,...s.style}}return s}const SE=["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 tf(e){return typeof e!="string"||e.includes("-")?!1:!!(SE.indexOf(e)>-1||/[A-Z]/u.test(e))}function jE(e,t,n,{latestValues:r},s,i=!1,a){const u=(a??tf(e)?kE:bE)(t,r,s,e),c=pE(t,typeof e=="string",i),d=e!==m.Fragment?{...c,...u,ref:n}:{},{children:f}=t,h=m.useMemo(()=>Re(f)?f.get():f,[f]);return m.createElement(e,{...d,children:h})}function EE({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,s){return{latestValues:CE(n,r,s,e),renderState:t()}}function CE(e,t,n,r){const s={},i=r(e,{});for(const h in i)s[h]=va(i[h]);let{initial:a,animate:l}=e;const u=Do(e),c=ly(e);t&&c&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const f=d?l:a;if(f&&typeof f!="boolean"&&!Ao(f)){const h=Array.isArray(f)?f:[f];for(let g=0;g<h.length;g++){const y=Ud(e,h[g]);if(y){const{transitionEnd:b,transition:w,...p}=y;for(const x in p){let v=p[x];if(Array.isArray(v)){const k=d?v.length-1:0;v=v[k]}v!==null&&(s[x]=v)}for(const x in b)s[x]=b[x]}}}return s}const zy=e=>(t,n)=>{const r=m.useContext(Ro),s=m.useContext(Mo),i=()=>EE(e,t,r,s);return n?i():fn(i)},TE=zy({scrapeMotionValuesFromProps:Jd,createRenderState:ef}),PE=zy({scrapeMotionValuesFromProps:by,createRenderState:Oy}),NE=Symbol.for("motionComponentSymbol");function _E(e,t,n){const r=m.useRef(n);m.useInsertionEffect(()=>{r.current=n});const s=m.useRef(null);return m.useCallback(i=>{var l;i&&((l=e.onMount)==null||l.call(e,i)),t&&(i?t.mount(i):t.unmount());const a=r.current;if(typeof a=="function")if(i){const u=a(i);typeof u=="function"&&(s.current=u)}else s.current?(s.current(),s.current=null):a(i);else a&&(a.current=i)},[t])}const By=m.createContext({});function Sr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ME(e,t,n,r,s,i){var v,k;const{visualElement:a}=m.useContext(Ro),l=m.useContext(Dy),u=m.useContext(Mo),c=m.useContext(hr),d=c.reducedMotion,f=c.skipAnimations,h=m.useRef(null),g=m.useRef(!1);r=r||l.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d,skipAnimations:f,isSVG:i}),g.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const y=h.current,b=m.useContext(By);y&&!y.projection&&s&&(y.type==="html"||y.type==="svg")&&LE(h.current,n,s,b);const w=m.useRef(!1);m.useInsertionEffect(()=>{y&&w.current&&y.update(n,u)});const p=n[qx],x=m.useRef(!!p&&typeof window<"u"&&!((v=window.MotionHandoffIsComplete)!=null&&v.call(window,p))&&((k=window.MotionHasOptimisedAnimation)==null?void 0:k.call(window,p)));return wi(()=>{g.current=!0,y&&(w.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),x.current&&y.animationState&&y.animationState.animateChanges())}),m.useEffect(()=>{y&&(!x.current&&y.animationState&&y.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var E;(E=window.MotionHandoffMarkAsComplete)==null||E.call(window,p)}),x.current=!1),y.enteringChildren=void 0)}),y}function LE(e,t,n,r){const{layoutId:s,layout:i,drag:a,dragConstraints:l,layoutScroll:u,layoutRoot:c,layoutAnchor:d,layoutCrossfade:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:$y(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!a||l&&Sr(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:f,layoutScroll:u,layoutRoot:c,layoutAnchor:d})}function $y(e){if(e)return e.options.allowProjection!==!1?e.projection:$y(e.parent)}function _l(e,{forwardMotionProps:t=!1,type:n}={},r,s){r&&hE(r);const i=n?n==="svg":tf(e),a=i?PE:TE;function l(c,d){let f;const h={...m.useContext(hr),...c,layoutId:AE(c)},{isStatic:g}=h,y=yE(c),b=a(c,g);if(!g&&typeof window<"u"){DE();const w=RE(h);f=w.MeasureLayout,y.visualElement=ME(e,b,h,s,w.ProjectionNode,i)}return o.jsxs(Ro.Provider,{value:y,children:[f&&y.visualElement?o.jsx(f,{visualElement:y.visualElement,...h}):null,jE(e,c,_E(b,y.visualElement,d),b,g,t,i)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=m.forwardRef(l);return u[NE]=e,u}function AE({layoutId:e}){const t=m.useContext(jd).id;return t&&e!==void 0?t+"-"+e:e}function DE(e,t){m.useContext(Dy).strict}function RE(e){const t=Ry(),{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 IE(e,t){if(typeof Proxy>"u")return _l;const n=new Map,r=(i,a)=>_l(i,a,e,t),s=(i,a)=>r(i,a);return new Proxy(s,{get:(i,a)=>a==="create"?r:(n.has(a)||n.set(a,_l(a,void 0,e,t)),n.get(a))})}const VE=(e,t)=>t.isSVG??tf(e)?new fj(t):new aj(t,{allowProjection:e!==m.Fragment});class FE extends Un{constructor(t){super(t),t.animationState||(t.animationState=xj(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ao(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 OE=0;class zE extends Un{constructor(){super(...arguments),this.id=OE++,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:a,custom:l}=this.node.getProps();if(typeof a=="string"||typeof a=="object"&&a!==null&&!Array.isArray(a)){const u=ar(this.node,a,l);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 BE={animation:{Feature:FE},exit:{Feature:zE}};function ji(e){return{point:{x:e.pageX,y:e.pageY}}}const $E=e=>t=>Kd(t)&&e(t,ji(t));function Us(e,t,n,r){return mi(e,t,$E(n),r)}const Hy=({current:e})=>e?e.ownerDocument.defaultView:null,$m=(e,t)=>Math.abs(e-t);function HE(e,t){const n=$m(e.x,t.x),r=$m(e.y,t.y);return Math.sqrt(n**2+r**2)}const Hm=new Set(["auto","scroll"]);class Uy{constructor(t,n,{transformPagePoint:r,contextWindow:s=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=y=>{this.handleScroll(y.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Yi(this.lastRawMoveEventInfo,this.transformPagePoint));const y=Ml(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,w=HE(y.offset,{x:0,y:0})>=this.distanceThreshold;if(!b&&!w)return;const{point:p}=y,{timestamp:x}=Ve;this.history.push({...p,timestamp:x});const{onStart:v,onMove:k}=this.handlers;b||(v&&v(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),k&&k(this.lastMoveEvent,y)},this.handlePointerMove=(y,b)=>{this.lastMoveEvent=y,this.lastRawMoveEventInfo=b,this.lastMoveEventInfo=Yi(b,this.transformPagePoint),re.update(this.updatePoint,!0)},this.handlePointerUp=(y,b)=>{this.end();const{onEnd:w,onSessionEnd:p,resumeAnimation:x}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Ml(y.type==="pointercancel"?this.lastMoveEventInfo:Yi(b,this.transformPagePoint),this.history);this.startEvent&&w&&w(y,v),p&&p(y,v)},!Kd(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=s||window;const u=ji(t),c=Yi(u,this.transformPagePoint),{point:d}=c,{timestamp:f}=Ve;this.history=[{...d,timestamp:f}];const{onSessionStart:h}=n;h&&h(t,Ml(c,this.history));const g={passive:!0,capture:!0};this.removeListeners=bi(Us(this.contextWindow,"pointermove",this.handlePointerMove,g),Us(this.contextWindow,"pointerup",this.handlePointerUp,g),Us(this.contextWindow,"pointercancel",this.handlePointerUp,g)),l&&this.startScrollTracking(l)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(Hm.has(r.overflowX)||Hm.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),re.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),_t(this.updatePoint)}}function Yi(e,t){return t?{point:t(e.point)}:e}function Um(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ml({point:e},t){return{point:e,delta:Um(e,Wy(t)),offset:Um(e,UE(t)),velocity:WE(t,.1)}}function UE(e){return e[0]}function Wy(e){return e[e.length-1]}function WE(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=Wy(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>yt(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&s.timestamp-r.timestamp>yt(t)*2&&(r=e[1]);const i=Ct(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function GE(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?he(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?he(n,e,r.max):Math.min(e,n)),e}function Wm(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 KE(e,{top:t,left:n,bottom:r,right:s}){return{x:Wm(e.x,n,s),y:Wm(e.y,t,r)}}function Gm(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function qE(e,t){return{x:Gm(e.x,t.x),y:Gm(e.y,t.y)}}function YE(e,t){let n=.5;const r=rt(e),s=rt(t);return s>r?n=es(t.min,t.max-r,e.min):r>s&&(n=es(e.min,e.max-s,t.min)),$t(0,1,n)}function XE(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 hc=.35;function ZE(e=hc){return e===!1?e=0:e===!0&&(e=hc),{x:Km(e,"left","right"),y:Km(e,"top","bottom")}}function Km(e,t,n){return{min:qm(e,t),max:qm(e,n)}}function qm(e,t){return typeof e=="number"?e:e[t]||0}const QE=new WeakMap;class JE{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=Le(),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(ji(f).point),this.stopAnimation()},a=(f,h)=>{const{drag:g,dragPropagation:y,onDragStart:b}=this.getProps();if(g&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=jS(g),!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),Wt(p=>{let x=this.getAxisMotionValue(p).get()||0;if(Xt.test(x)){const{projection:v}=this.visualElement;if(v&&v.layout){const k=v.layout.layoutBox[p];k&&(x=rt(k)*(parseFloat(x)/100))}}this.originPoint[p]=x}),b&&re.update(()=>b(f,h),!1,!0),rc(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},l=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:g,dragDirectionLock:y,onDirectionLock:b,onDrag:w}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:p}=h;if(y&&this.currentDirection===null){this.currentDirection=tC(p),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",h.point,p),this.updateAxis("y",h.point,p),this.visualElement.render(),w&&re.update(()=>w(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 Uy(t,{onSessionStart:i,onStart:a,onMove:l,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:Hy(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:a}=s;this.startAnimation(a);const{onDragEnd:l}=this.getProps();l&&re.postRender(()=>l(r,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!Xi(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=GE(a,this.constraints[t],this.elastic[t])),i.set(a)}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&&Sr(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=KE(r.layoutBox,t):this.constraints=!1,this.elastic=ZE(n),s!==this.constraints&&!Sr(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Wt(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=XE(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Sr(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=ej(r,s.root,this.visualElement.getTransformPagePoint());let a=qE(s.layout.layoutBox,i);if(n){const l=n(ZS(a));this.hasMutatedConstraints=!!l,l&&(a=fy(l))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),u=this.constraints||{},c=Wt(d=>{if(!Xi(d,n,this.currentDirection))return;let f=u&&u[d]||{};(a===!0||a===d)&&(f={min:0,max:0});const h=s?200:1e6,g=s?40:1e7,y={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,y)});return Promise.all(c).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return rc(this.visualElement,t),r.start(Hd(t,r,0,n,this.visualElement,!1))}stopAnimation(){Wt(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){Wt(n=>{const{drag:r}=this.getProps();if(!Xi(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:a,max:l}=s.layout.layoutBox[n],u=i.get()||0;i.set(t[n]-he(a,l,.5)+u)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Sr(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Wt(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const u=l.get();s[a]=YE({min:u,max:u},this.constraints[a])}});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(),Wt(a=>{if(!Xi(a,t,null))return;const l=this.getAxisMotionValue(a),{min:u,max:c}=this.constraints[a];l.set(he(u,c,s[a]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;QE.set(this.visualElement,this);const t=this.visualElement.current,n=Us(t,"pointerdown",c=>{const{drag:d,dragListener:f=!0}=this.getProps(),h=c.target,g=h!==t&&_S(h);d&&f&&!g&&this.start(c)});let r;const s=()=>{const{dragConstraints:c}=this.getProps();Sr(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),r||(r=eC(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,a=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),re.read(s);const l=mi(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Wt(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=c[f].translate,h.set(h.get()+c[f].translate))}),this.visualElement.render())});return()=>{l(),n(),a(),u&&u(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:a=hc,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:a,dragMomentum:l}}}function Ym(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function eC(e,t,n){const r=lc(e,Ym(n)),s=lc(t,Ym(n));return()=>{r(),s()}}function Xi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function tC(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class nC extends Un{constructor(t){super(t),this.removeGroupControls=ft,this.removeListeners=ft,this.controls=new JE(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ft}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 Ll=e=>(t,n)=>{e&&re.update(()=>e(t,n),!1,!0)};class rC extends Un{constructor(){super(...arguments),this.removePointerDownListener=ft}onPointerDown(t){this.session=new Uy(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Hy(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Ll(t),onStart:Ll(n),onMove:Ll(r),onEnd:(i,a)=>{delete this.session,s&&re.postRender(()=>s(i,a))}}}mount(){this.removePointerDownListener=Us(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 Al=!1;class sC extends m.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),Al&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),wa.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,{projection:a}=r;return a&&(a.isPresent=i,t.layoutDependency!==n&&a.setOptions({...a.options,layoutDependency:n}),Al=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==i?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||re.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),ns.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;Al=!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 Gy(e){const[t,n]=Ay(),r=m.useContext(jd);return o.jsx(sC,{...e,layoutGroup:r,switchLayoutGroup:m.useContext(By),isPresent:t,safeToRemove:n})}const iC={pan:{Feature:rC},drag:{Feature:nC,ProjectionNode:Ly,MeasureLayout:Gy}};function Xm(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&&re.postRender(()=>i(t,ji(t)))}class aC extends Un{mount(){const{current:t}=this.node;t&&(this.unmount=CS(t,(n,r)=>(Xm(this.node,r,"Start"),s=>Xm(this.node,s,"End"))))}unmount(){}}class oC extends Un{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=bi(mi(this.node.current,"focus",()=>this.onFocus()),mi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Zm(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&&re.postRender(()=>i(t,ji(t)))}class lC extends Un{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=LS(t,(s,i)=>(Zm(this.node,i,"Start"),(a,{success:l})=>Zm(this.node,a,l?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const mc=new WeakMap,Dl=new WeakMap,uC=e=>{const t=mc.get(e.target);t&&t(e)},cC=e=>{e.forEach(uC)};function dC({root:e,...t}){const n=e||document;Dl.has(n)||Dl.set(n,{});const r=Dl.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(cC,{root:e,...t})),r[s]}function fC(e,t,n){const r=dC(t);return mc.set(e,n),r.observe(e),()=>{mc.delete(e),r.unobserve(e)}}const hC={some:0,all:1};class mC extends Un{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,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:hC[s]},l=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(),g=d?f:h;g&&g(c)};this.stopObserver=fC(this.node.current,a,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(pC(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function pC({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const gC={inView:{Feature:mC},tap:{Feature:lC},focus:{Feature:oC},hover:{Feature:aC}},xC={layout:{ProjectionNode:Ly,MeasureLayout:Gy}},yC={...BE,...gC,...iC,...xC},an=IE(yC,VE);function vC(e,t,n){m.useInsertionEffect(()=>e.on(t,n),[e,t,n])}function ao(e){return typeof window>"u"?!1:e?Fx():zd()}const wC=50,Qm=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),bC=()=>({time:0,x:Qm(),y:Qm()}),kC={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Jm(e,t,n,r){const s=n[t],{length:i,position:a}=kC[t],l=s.current,u=n.time;s.current=Math.abs(e[`scroll${a}`]),s.scrollLength=e[`scroll${i}`]-e[`client${i}`],s.offset.length=0,s.offset[0]=0,s.offset[1]=s.scrollLength,s.progress=es(0,s.scrollLength,s.current);const c=r-u;s.velocity=c>wC?0:Pd(s.current-l,c)}function SC(e,t,n){Jm(e,"x",t,n),Jm(e,"y",t,n),t.time=n}function jC(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if($s(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 a=null,l=r.parentNode;for(;!a;)l.tagName==="svg"&&(a=l),l=r.parentNode;r=a}else break;return n}const pc={start:0,center:.5,end:1};function ep(e,t,n=0){let r=0;if(e in pc&&(e=pc[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 EC=[0,0];function CC(e,t,n,r){let s=Array.isArray(e)?e:EC,i=0,a=0;return typeof e=="number"?s=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?s=e.split(" "):s=[e,pc[e]?e:"0"]),i=ep(s[0],n,r),a=ep(s[1],t),i-a}const Ns={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},TC={x:0,y:0};function PC(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function NC(e,t,n){const{offset:r=Ns.All}=n,{target:s=e,axis:i="y"}=n,a=i==="y"?"height":"width",l=s!==e?jC(s,e):TC,u=s===e?{width:e.scrollWidth,height:e.scrollHeight}:PC(s),c={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let d=!t[i].interpolate;const f=r.length;for(let h=0;h<f;h++){const g=CC(r[h],c[a],u[a],l[i]);!d&&g!==t[i].interpolatorOffsets[h]&&(d=!0),t[i].offset[h]=g}d&&(t[i].interpolate=Id(t[i].offset,Ax(r),{clamp:!1}),t[i].interpolatorOffsets=[...t[i].offset]),t[i].progress=$t(0,1,t[i].interpolate(t[i].current))}function _C(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function MC(e,t,n,r={}){return{measure:s=>{_C(e,r.target,n),SC(e,n,s),(r.offset||r.target)&&NC(e,n,r)},notify:()=>t(n)}}const br=new WeakMap,tp=new WeakMap,Rl=new WeakMap,np=new WeakMap,Zi=new WeakMap,rp=e=>e===document.scrollingElement?window:e;function Ky(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return ft;let s=Rl.get(t);s||(s=new Set,Rl.set(t,s));const i=bC(),a=MC(t,e,i,r);if(s.add(a),!br.has(t)){const u=()=>{for(const h of s)h.measure(Ve.timestamp);re.preUpdate(c)},c=()=>{for(const h of s)h.notify()},d=()=>re.read(u);br.set(t,d);const f=rp(t);window.addEventListener("resize",d),t!==document.documentElement&&tp.set(t,lc(t,d)),f.addEventListener("scroll",d),d()}if(n&&!Zi.has(t)){const u=br.get(t),c={width:t.scrollWidth,height:t.scrollHeight};np.set(t,c);const d=()=>{const h=t.scrollWidth,g=t.scrollHeight;(c.width!==h||c.height!==g)&&(u(),c.width=h,c.height=g)},f=re.read(d,!0);Zi.set(t,f)}const l=br.get(t);return re.read(l,!1,!0),()=>{var f;_t(l);const u=Rl.get(t);if(!u||(u.delete(a),u.size))return;const c=br.get(t);br.delete(t),c&&(rp(t).removeEventListener("scroll",c),(f=tp.get(t))==null||f(),window.removeEventListener("resize",c));const d=Zi.get(t);d&&(_t(d),Zi.delete(t)),np.delete(t)}}const LC=[[Ns.Enter,"entry"],[Ns.Exit,"exit"],[Ns.Any,"cover"],[Ns.All,"contain"]],sp={start:0,end:1};function AC(e){const t=e.trim().split(/\s+/);if(t.length!==2)return;const n=sp[t[0]],r=sp[t[1]];if(!(n===void 0||r===void 0))return[n,r]}function DC(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=AC(n);if(!r)return;t.push(r)}else return;return t}function RC(e,t){const n=DC(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 nf(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(const[t,n]of LC)if(RC(e,t))return{rangeStart:`${n} 0%`,rangeEnd:`${n} 100%`}}const ip=new Map;function ap(e){const t={value:0},n=Ky(r=>{t.value=r[e.axis].progress*100},e);return{currentTime:t,cancel:n}}function qy({source:e,container:t,...n}){const{axis:r}=n;e&&(t=e);let s=ip.get(t);s||(s=new Map,ip.set(t,s));const i=n.target??"self";let a=s.get(i);a||(a={},s.set(i,a));const l=r+(n.offset??[]).join(",");return a[l]||(n.target&&ao(n.target)?nf(n.offset)?a[l]=new ViewTimeline({subject:n.target,axis:r}):a[l]=ap({container:t,...n}):ao()?a[l]=new ScrollTimeline({source:t,axis:r}):a[l]=ap({container:t,...n})),a[l]}function IC(e,t){const n=qy(t),r=t.target?nf(t.offset):void 0,s=t.target?ao(t.target)&&!!r:ao();return e.attachTimeline({timeline:s?n:void 0,...r&&s&&{rangeStart:r.rangeStart,rangeEnd:r.rangeEnd},observe:i=>(i.pause(),oy(a=>{i.time=i.iterationDuration*a},n))})}function VC(e){return e&&(e.target||e.offset)}function FC(e){return e.length===2}function OC(e,t){return FC(e)||VC(t)?Ky(n=>{e(n[t.axis].progress,n)},t):oy(e,qy(t))}function Yy(e,{axis:t="y",container:n=document.scrollingElement,...r}={}){if(!n)return ft;const s={axis:t,container:n,...r};return typeof e=="function"?OC(e,s):IC(e,s)}const zC=()=>({scrollX:Vt(0),scrollY:Vt(0),scrollXProgress:Vt(0),scrollYProgress:Vt(0)}),Or=e=>e?!e.current:!1;function op(e,t,n,r){return{factory:s=>{let i;const a=()=>{if(Or(n)||Or(r)){ns.read(a);return}i=Yy(s,{...t,axis:e,container:(n==null?void 0:n.current)||void 0,target:(r==null?void 0:r.current)||void 0})};return ns.read(a),()=>{ny(a),i==null||i()}},times:[0,1],keyframes:[0,1],ease:s=>s,duration:1}}function BC(e,t){return typeof window>"u"?!1:e?Fx()&&!!nf(t):zd()}function Xy({container:e,target:t,...n}={}){const r=fn(zC);BC(t,n.offset)&&(r.scrollXProgress.accelerate=op("x",n,e,t),r.scrollYProgress.accelerate=op("y",n,e,t));const s=m.useRef(null),i=m.useRef(!1),a=m.useCallback(()=>(s.current=Yy((l,{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 l;(l=s.current)==null||l.call(s)}),[e,t,JSON.stringify(n.offset)]);return wi(()=>{if(i.current=!1,Or(e)||Or(t)){i.current=!0;return}else return a()},[a]),m.useEffect(()=>{if(!i.current)return;let l;const u=()=>{const c=Or(e),d=Or(t);!c&&!d&&(l=a())};return ns.read(u),()=>{ny(u),l==null||l()}},[a]),r}function Zy(e){const t=fn(()=>Vt(e)),{isStatic:n}=m.useContext(hr);if(n){const[,r]=m.useState(e);m.useEffect(()=>t.on("change",r),[])}return t}function Qy(e,t){const n=Zy(t()),r=()=>n.set(t());return r(),wi(()=>{const s=()=>re.preRender(r,!1,!0),i=e.map(a=>a.on("change",s));return()=>{i.forEach(a=>a()),_t(r)}}),n}function $C(e){Bs.current=[],e();const t=Qy(Bs.current,e);return Bs.current=void 0,t}function vn(e,t,n,r){if(typeof e=="function")return $C(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!="function")return HC(e,t,n,r);const a=typeof t=="function"?t:$S(t,n,r),l=Array.isArray(e)?lp(e,a):lp([e],([c])=>a(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&&(l.accelerate={...u,times:t,keyframes:n,isTransformed:!0}),l}function lp(e,t){const n=fn(()=>[]);return Qy(e,()=>{n.length=0;const r=e.length;for(let s=0;s<r;s++)n[s]=e[s].get();return t(n)})}function HC(e,t,n,r){const s=fn(()=>Object.keys(n)),i=fn(()=>({}));for(const a of s)i[a]=vn(e,t,n[a],r);return i}function UC(e,t={}){const{isStatic:n}=m.useContext(hr),r=()=>Re(e)?e.get():e;if(n)return vn(r);const s=Zy(r());return m.useInsertionEffect(()=>HS(s,e,t),[s,JSON.stringify(t)]),s}function WC(e,t={}){return UC(e,{type:"spring",...t})}function GC(){!Zd.current&&uy();const[e]=m.useState(to.current);return e}function KC(){const{pathname:e}=Qe();return m.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"instant"})},[e]),null}const qC='a, button, [role="button"], label, select, summary, [data-cursor="hover"], .cursor-pointer',YC='input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="file"]), textarea, [contenteditable="true"]';function XC(){const e=m.useRef(null),t=m.useRef(null),n=m.useRef(null),r=m.useRef(null),s=m.useRef(null);return m.useEffect(()=>{const i=window.matchMedia("(pointer: fine)"),a=window.matchMedia("(prefers-reduced-motion: reduce)");if(!i.matches||a.matches)return;const l=e.current,u=t.current,c=n.current,d=r.current,f=s.current;if(!l||!u||!c||!d||!f)return;document.documentElement.classList.add("hifi-cursor-on");const h=-24*Math.PI/180,g=Math.cos(h),y=Math.sin(h);let b=-100,w=-100,p=0,x=2.4,v=2.4,k=16,E=6.5,C=16,j=6.5,S=!1,N,P=performance.now();const V=T=>{const M=Math.min((T-P)/1e3,.05);P=T,x+=(v-x)*Math.min(1,M*8),k+=(C-k)*Math.min(1,M*10),E+=(j-E)*Math.min(1,M*10),p+=x*M,u.style.transform=`translate3d(${b}px, ${w}px, 0)`,c.style.transform=`translate3d(${b}px, ${w}px, 0)`;const L=Math.cos(p)*k,D=Math.sin(p)*E;d.style.transform=`translate(${L*g-D*y}px, ${L*y+D*g}px)`,N=requestAnimationFrame(V)},B=T=>{l.dataset.state=T;const M=T==="hover";v=M?7:2.4,C=M?23:16,j=M?9.5:6.5},se=T=>{b=T.clientX,w=T.clientY,S||(S=!0,l.dataset.hidden="false")},ne=T=>{const M=T.target;M instanceof Element&&(M.closest(YC)?B("text"):M.closest(qC)?B("hover"):B("default"))},q=()=>{l.dataset.down="true",f.style.left=`${b}px`,f.style.top=`${w}px`,f.classList.remove("is-live"),f.offsetWidth,f.classList.add("is-live")},W=()=>{l.dataset.down="false"},I=()=>{S=!1,l.dataset.hidden="true"};return document.addEventListener("mousemove",se,{passive:!0}),document.addEventListener("mouseover",ne,{passive:!0}),document.addEventListener("mousedown",q,{passive:!0}),document.addEventListener("mouseup",W,{passive:!0}),document.documentElement.addEventListener("mouseleave",I),window.addEventListener("blur",I),N=requestAnimationFrame(V),()=>{cancelAnimationFrame(N),document.removeEventListener("mousemove",se),document.removeEventListener("mouseover",ne),document.removeEventListener("mousedown",q),document.removeEventListener("mouseup",W),document.documentElement.removeEventListener("mouseleave",I),window.removeEventListener("blur",I),document.documentElement.classList.remove("hifi-cursor-on")}},[]),o.jsxs("div",{ref:e,className:"hifi-cursor","data-state":"default","data-hidden":"true","data-down":"false","aria-hidden":"true",children:[o.jsxs("div",{ref:n,className:"hifi-cursor__orbit",children:[o.jsx("div",{className:"hifi-cursor__ring"}),o.jsx("div",{ref:r,className:"hifi-cursor__sat"})]}),o.jsx("div",{ref:t,className:"hifi-cursor__core"}),o.jsx("div",{ref:s,className:"hifi-cursor__pulse"})]})}const ZC=`${"/".replace(/\/$/,"")}/api`;let gc=0;const xc=new Set,up=e=>{gc+=e,xc.forEach(t=>t(gc))},QC=()=>gc,JC=e=>(xc.add(e),()=>xc.delete(e)),yc=new Set,eT=e=>(yc.add(e),()=>yc.delete(e));async function bs(e,t={}){up(1);try{return await tT(e,t)}finally{up(-1)}}async function tT(e,t){const n=await fetch(`${ZC}${e}`,{credentials:"include",headers:t.body instanceof FormData?{}:{"Content-Type":"application/json"},...t}),r=await n.text();let s=null;if(r)try{s=JSON.parse(r)}catch{}if(!n.ok){const i=new Error((s==null?void 0:s.error)||`Fehler ${n.status}`);throw i.status=n.status,i.code=(s==null?void 0:s.code)||null,n.status===401&&!e.startsWith("/auth/")&&yc.forEach(a=>a()),i}if(s===null&&r){const i=new Error("Unerwartete Server-Antwort (kein gültiges JSON)");throw i.status=n.status,i.code="invalid_response",i}return s}const oe={get:(e,t)=>bs(e,t),post:(e,t)=>bs(e,{method:"POST",body:t instanceof FormData?t:JSON.stringify(t)}),put:(e,t)=>bs(e,{method:"PUT",body:JSON.stringify(t)}),patch:(e,t)=>bs(e,{method:"PATCH",body:JSON.stringify(t)}),delete:e=>bs(e,{method:"DELETE"})};function nT({children:e}){const[t,n]=m.useState({pathname:null,needsSetup:null}),r=Qe(),s=t.needsSetup===!1;m.useEffect(()=>{if(s)return;let a=!1;return oe.get("/setup/status").then(l=>{a||n({pathname:r.pathname,needsSetup:l.needs_setup})}).catch(()=>{a||n({pathname:r.pathname,needsSetup:!1})}),()=>{a=!0}},[r.pathname,s]);const i=t.pathname===r.pathname;return r.pathname==="/setup"?s?o.jsx(fr,{to:"/",replace:!0}):!i||t.needsSetup===null?o.jsx("div",{className:"min-h-screen bg-white dark:bg-neutral-950"}):e:i&&t.needsSetup?o.jsx(fr,{to:"/setup",replace:!0}):e}/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Jy=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const rT=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const sT=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cp=e=>{const t=sT(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Il={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const iT=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},ev=m.createContext({});function E4({children:e,size:t,color:n,strokeWidth:r,absoluteStrokeWidth:s,className:i}){const a=m.useMemo(()=>({size:t,color:n,strokeWidth:r,absoluteStrokeWidth:s,className:i}),[t,n,r,s,i]);return m.createElement(ev.Provider,{value:a},e)}const aT=()=>m.useContext(ev),oT=m.forwardRef(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:s="",children:i,iconNode:a,...l},u)=>{const{size:c=24,strokeWidth:d=2,absoluteStrokeWidth:f=!1,color:h="currentColor",className:g=""}=aT()??{},y=r??f?Number(n??d)*24/Number(t??c):n??d;return m.createElement("svg",{ref:u,...Il,width:t??c??Il.width,height:t??c??Il.height,stroke:e??h,strokeWidth:y,className:Jy("lucide",g,s),...!i&&!iT(l)&&{"aria-hidden":"true"},...l},[...a.map(([b,w])=>m.createElement(b,w)),...Array.isArray(i)?i:[i]])});/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const te=(e,t)=>{const n=m.forwardRef(({className:r,...s},i)=>m.createElement(oT,{ref:i,iconNode:t,className:Jy(`lucide-${rT(cp(e))}`,`lucide-${e}`,r),...s}));return n.displayName=cp(e),n};/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const lT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],uT=te("arrow-right",lT);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cT=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],dT=te("boxes",cT);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fT=[["path",{d:"m21 8-2 2-1.5-3.7A2 2 0 0 0 15.646 5H8.4a2 2 0 0 0-1.903 1.257L5 10 3 8",key:"1imjwt"}],["path",{d:"M7 14h.01",key:"1qa3f1"}],["path",{d:"M17 14h.01",key:"7oqj8z"}],["rect",{width:"18",height:"8",x:"3",y:"10",rx:"2",key:"a7itu8"}],["path",{d:"M5 18v2",key:"ppbyun"}],["path",{d:"M19 18v2",key:"gy7782"}]],hT=te("car-front",fT);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const mT=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],oo=te("car",mT);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const pT=[["path",{d:"M18 19V9a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v8a2 2 0 0 0 2 2h2",key:"19jm3t"}],["path",{d:"M2 9h3a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H2",key:"13hakp"}],["path",{d:"M22 17v1a1 1 0 0 1-1 1H10v-9a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v9",key:"1crci8"}],["circle",{cx:"8",cy:"19",r:"2",key:"t8fc5s"}]],gT=te("caravan",pT);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xT=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],tv=te("check",xT);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yT=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],vT=te("chevron-down",yT);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const wT=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],bT=te("chevron-left",wT);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const kT=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ST=te("chevron-right",kT);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const jT=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],ET=te("chevron-up",jT);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const CT=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],TT=te("circle-play",CT);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const PT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],nv=te("clock",PT);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const NT=[["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}]],_T=te("cog",NT);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const MT=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],LT=te("external-link",MT);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const AT=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],DT=te("flame",AT);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const RT=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],IT=te("layout-dashboard",RT);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const VT=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],FT=te("lightbulb",VT);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const OT=[["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"M3 10a2 2 0 0 0 2 2h3",key:"1npucw"}],["path",{d:"M3 5v12a2 2 0 0 0 2 2h3",key:"x1gjn2"}]],zT=te("list-tree",OT);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const BT=[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]],rv=te("log-in",BT);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $T=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],vc=te("mail",$T);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const HT=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],sv=te("map-pin",HT);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const UT=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],rf=te("message-circle",UT);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const WT=[["rect",{x:"5",y:"2",width:"14",height:"20",rx:"7",key:"11ol66"}],["path",{d:"M12 6v4",key:"16clxf"}]],GT=te("mouse",WT);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const KT=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],qT=te("navigation",KT);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const YT=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],XT=te("package",YT);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ZT=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],iv=te("pencil",ZT);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const QT=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],zn=te("phone",QT);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const JT=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],eP=te("rotate-ccw",JT);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const tP=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],nP=te("search",tP);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const rP=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],sP=te("send",rP);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const iP=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],aP=te("shield-alert",iP);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const oP=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],lP=te("shopping-bag",oP);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const uP=[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]],cP=te("thumbs-up",uP);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const dP=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],fP=te("user",dP);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const hP=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],mP=te("video",hP);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const pP=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ei=te("x",pP);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const gP=[["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"}]],xP=te("zap",gP),av=m.createContext(null);function yP(){const e=new Date,t=e.getHours()+e.getMinutes()/60;return t>=6.5&&t<21?"light":"dark"}function vP({children:e}){const[t,n]=m.useState(()=>{const s=localStorage.getItem("hifi-theme");return s==="light"||s==="dark"?s:yP()});m.useEffect(()=>{document.documentElement.classList.toggle("dark",t==="dark"),localStorage.setItem("hifi-theme",t)},[t]);const r=()=>n(s=>s==="dark"?"light":"dark");return o.jsx(av.Provider,{value:{theme:t,toggleTheme:r},children:e})}function ov(){return m.useContext(av)}const wP={nav:{mainNav:"Hauptnavigation",menu:"Menü",call:"Anrufen",openMenu:"Menü öffnen",closeMenu:"Menü schließen",close:"Schließen",adminPanel:"Zum Admin-Panel",vehicles:"Fahrzeuge",services:"Leistungen",gallery:"Galerie",contact:"Kontakt",whatsapp:"WhatsApp",shop:"Zum Shop",downloads:"Downloads"},floatingContact:{call:"Jetzt anrufen",whatsapp:"Per WhatsApp schreiben"},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 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 (Kontaktseite). 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"},countdown:{eyebrow:"Neue Website",title:"Bald wird’s laut.",message:"Wir drehen gerade die letzten Schrauben fest. Unsere neue Website mit allen Paketen für dein Fahrzeug startet in Kürze.",days:"Tage",hours:"Stunden",minutes:"Minuten",seconds:"Sekunden",launchPrefix:"Start",launchAt:"um",clock:"Uhr",addToCalendar:"In den Kalender",calendarTitle:"Launch der neuen HifiPlanet-Website",questions:"Fragen vorab?",liveEyebrow:"Jetzt online",liveTitle:"Wir sind live!",liveMessage:"Einen Moment, die Seite öffnet sich …",preview:"Vorschau – nur für dich sichtbar",closePreview:"Vorschau schließen",adminActive:"Countdown aktiv – Besucher sehen bis {date} nur den Teaser.",adminPreview:"Vorschau ansehen"},lightbox:{close:"Schließen",previous:"Vorheriges Bild",next:"Nächstes Bild"},home:{metaTitle:"Car-Hifi Umbauten nach Maß",metaDescription:"HifiPlanet – dein Car-Hifi Spezialist in Amorbach. Marke und Modell wählen, passende Sound-Pakete entdecken und unverbindlich anfragen.",stickyCta:"Bereit für deinen Sound-Umbau?",selectVehicle:"Fahrzeug auswählen",getInTouch:"Kontakt aufnehmen",welcome:"Willkommen bei HifiPlanet",heroTitle:"Home of pure Sound",heroSubtitle:"Dein Car-Hifi Spezialist für individuelle Sound-Umbauten. Wähle dein Fahrzeug, entdecke passende Pakete und frag unverbindlich an – wir kümmern uns um den Rest.",stats:[{value:"20+",label:"Jahre Erfahrung"},{value:"Riesige",label:"3D-Druckfarm im eigenen Haus"},{value:"Eigene",label:"CNC- & Laserwerkstatt"},{value:"International",label:"anerkannter Car-Hifi-Spezialist"}],brandsHeading:"Marken, mit denen wir arbeiten",youtubeBadge:"HifiPlanet präsentiert",youtubeTitle:"Das Handwerk hinter deinem Sound",youtubeText:"Entdecke die Handwerkskunst hinter unserer Arbeit",youtubeCta:"Jetzt ansehen",heroImageAlt:"Ground Zero Subwoofer und Endstufen mit violetter Ambiente-Beleuchtung",craftImageAlt:"Individueller Subwoofer-Bau",adviceImageAlt:"Endstufen-Einbau mit Ambiente-Beleuchtung",moreImageAlt:"Hochwertige Endstufe und Subwoofer, Studioaufnahme",craftEyebrow:"Handwerk",craftTitle:"Präzisionsarbeit in jedem Detail",craftText:"Ob eigens gefertigte Subwoofer-Gehäuse, integrierte Beleuchtung oder unsichtbar verlegte Kabelwege – dank eigener CNC-, Laser- und 3D-Druck-Fertigung entstehen bei uns Lösungen, die es von der Stange nicht gibt.",adviceEyebrow:"Beratung",adviceTitle:"Von der ersten Idee bis zum letzten Schliff",adviceText:"Jedes Fahrzeug und jeder Anspruch ist anders. Deshalb beraten wir dich persönlich und unverbindlich – vom dezenten Upgrade bis zum kompromisslosen High-End-System.",insightsTitle:"Einblicke in unsere Umbauten",insightsText:"Vom unauffälligen Sound-Upgrade bis zum aufwendigen Komplettumbau – Handarbeit aus unserer Werkstatt in Amorbach.",galleryAlts:["Individueller Subwoofer-Bau mit Ground Zero Bässen","Endstufen-Einbau mit violetter Ambiente-Beleuchtung","Hochtöner- und Mitteltöner-Einbau von Focal Utopia","Sony Navigationssystem mit Apple CarPlay im Cockpit","Verbauter Hochtöner im Kofferraum","Individueller Subwoofer-Einbau mit LED-Beleuchtung im Kofferraum"],reviewsRating:"5,0 von 181 Kunden bewertet",reviewsRatingDynamic:(e,t)=>`${e.toFixed(1).replace(".",",")} von ${t} Kunden bewertet`,reviewsText:"Das sagen unsere Kunden über uns.",reviewsLink:"Alle Bewertungen auf Google ansehen →",testimonials:[{name:"Thomas K.",text:"Über YouTube auf dieses Klang-Juwel gestoßen. Beratung und Empfehlungen sind erstklassig – der Tesla-Vorführwagen hat meine Leidenschaft für guten Sound neu entfacht."},{name:"Andreas I.",text:"Sehr professionelle Beratung und Service. Obwohl ich von VAG zu Mercedes gewechselt bin, wurde alles reibungslos angepasst. Die 3-Wege-Lautsprecher und zwei Subwoofer liefern außergewöhnliche Leistung."},{name:"Thomas F.",text:"Kompletter Audi A4 B9 Umbau hat meine Erwartungen übertroffen. Von Anfang bis Ende professionell, mit tadelloser Verarbeitung und Klangqualität."},{name:"Drago G.",text:"Beeindruckt von der CNC-Arbeit, die auf YouTube gezeigt wird. Angefangen mit 3D-gedruckten Lautsprecherringen für meinen Ford Mustang – daraus wurde ein viel größeres Projekt."},{name:"Leonardo B.",text:"Toller Service und meisterhafte Handwerkskunst. Saubere Installation, Leidenschaft in jedem Detail erkennbar."},{name:"Marcel S.",text:"Unschlagbares Preis-Leistungs-Verhältnis. Das Team hat sich viel Zeit genommen, um genau die Lösung für mein Budget zu finden."},{name:"Julia W.",text:"Endlich ein Betrieb, der auch Wohnmobile ernst nimmt. Die Soundanlage in unserem Camper klingt jetzt wie im Wohnzimmer."},{name:"Kevin R.",text:"Dashcam und Alarmanlage in einem Termin sauber verbaut, keine sichtbaren Kabel. Absolute Empfehlung für alle, die Wert auf Verarbeitung legen."},{name:"Sabrina H.",text:"Mein Oldtimer hat jetzt modernen Sound, ohne dass es dem Original-Look geschadet hätte. Genau das habe ich gesucht."},{name:"Niklas P.",text:"Von der ersten Anfrage bis zum fertigen Umbau lief alles reibungslos. Ehrliche Beratung ohne Verkaufsdruck."}],moreTitle:"Mehr als nur Car-Hifi",moreText:"Neben individuellen Sound-Umbauten bieten wir CNC-Zerspanung, Lasertechnik, 3D-Druck und mehr – alles aus einer Hand in unserer eigenen Werkstatt.",moreCta:"Alle Leistungen entdecken",faqHeading:"Häufig gestellte Fragen"},vehicleSelect:{loading:"Marken werden geladen…",metaTitle:"Fahrzeug auswählen",metaDescription:"Wähle deine Fahrzeugmarke und dein Modell und entdecke passende Car-Hifi Sound-Pakete von HifiPlanet.",title:"Fahrzeug auswählen",intro:"Wähle zuerst deine Marke, dann dein Modell – wir zeigen dir direkt die passenden Sound-Pakete.",empty:"Es sind noch keine Marken hinterlegt."},vehicleSearch:{label:"Fahrzeug direkt suchen",placeholder:"Direkt suchen, z. B. Golf 7 oder BMW 3er",clear:"Suche leeren",loading:"Suche läuft…",noResults:"Kein passendes Fahrzeug gefunden.",contact:"Frag uns einfach direkt.",allModels:"Alle Modelle"},brandPage:{metaTitleFallback:"Modell auswählen",metaDescription:e=>`Wähle dein ${e} Modell und entdecke passende Car-Hifi Sound-Pakete von HifiPlanet.`,loading:"Lädt…",breadcrumbVehicles:"Fahrzeuge",titleSuffix:"Modell wählen",empty:"Für diese Marke sind noch keine Modelle hinterlegt."},modelPage:{customRequest:"Individuell anfragen",customHint:"Nicht das Passende dabei? Wir stellen dir gerne ein Paket nach deinen Wünschen zusammen.",whatsappText:(e,t)=>`Hallo HifiPlanet, ich interessiere mich für einen Car-Hifi-Umbau für meinen ${e} ${t}.`,metaTitleFallback:"Sound-Pakete",metaTitle:(e,t)=>`${e} ${t} Sound-Pakete`,metaDescription:(e,t)=>`Car-Hifi Sound-Pakete für ${e} ${t} inkl. aktueller Preise – von HifiPlanet unverbindlich anfragen.`,loading:"Lädt…",breadcrumbVehicles:"Fahrzeuge",titleSuffix:"Sound-Pakete",empty:"Für dieses Modell sind noch keine Pakete hinterlegt.",totalPrice:"ab ca.",productLoading:"Produkt wird geladen…",requestContact:"Kontakt anfragen",badges:{recommended:"Empfohlen",popular:"Am beliebtesten",tip:"Tipp",coming_soon:"Coming soon"},videoLink:"Zum Video",moreBullets:e=>e===1?"+ 1 weitere Leistung":`+ ${e} weitere Leistungen`,showMore:"Mehr anzeigen",lessBullets:"Weniger anzeigen",wheelHint:"Mit dem Mausrad blättern"},leistungen:{metaTitle:"Leistungen",metaDescription:"Car-Hifi, Wohnmobil & Caravan, Oldtimer, CNC-Zerspanung, Lasertechnik, 3D-Druck, Alarmanlagen und Dash Cams – alles aus einer Hand bei HifiPlanet in Amorbach.",title:"Unsere Leistungen",intro:"Von individuellen Sound-Umbauten bis zur eigenen CNC- und 3D-Druck-Fertigung – alles aus einer Hand in unserer Werkstatt in Amorbach.",notListedTitle:"Dein Projekt ist nicht dabei?",notListedText:"Sprich uns einfach an – wir finden gemeinsam die passende Lösung.",contact:"Kontakt aufnehmen"},contactPage:{sendAnother:"Weitere Anfrage senden",vehicleBoxTitle:"Dein Fahrzeug:",privacyPre:"Mit dem Absenden stimmst du zu, dass wir deine Angaben zur Bearbeitung der Anfrage verwenden. Mehr dazu in der ",privacyLink:"Datenschutzerklärung",privacyPost:".",mapIframeTitle:"Standort von HifiPlanet in Amorbach auf Google Maps",whatsappText:(e,t,n)=>`Hallo HifiPlanet, ich interessiere mich für das Paket "${n}" für meinen ${e} ${t}.`,metaTitle:"Kontakt",metaDescription:"Kontaktiere HifiPlanet in Amorbach für dein individuelles Car-Hifi Projekt – wir beraten dich gerne unverbindlich.",title:"Kontakt aufnehmen",heroEyebrow:"Kontakt",heroTitlePre:"Sprich",heroTitleAccent:"mit",heroTitlePost:"uns.",heroSubtitle:"Ob Anlage, Einbau oder Klang-Tuning für dein Fahrzeug — schreib uns, wir melden uns schnellstmöglich zurück.",packageBoxTitle:"Deine Anfrage bezieht sich auf",formTitle:"Anfrage senden",sentTitle:"Anfrage gesendet ✓",sentText:"Danke! Wir melden uns innerhalb eines Werktags bei dir.",contextIntro:"Deine Anfrage bezieht sich auf:",contextBrand:"Marke",contextModel:"Modell",contextPackage:"Paket",contextProduct:"Produkt",packagePrice:"Paketpreis",upgrades:"Upgrades",optionalUpgrades:"Optionale Upgrades",totalWithUpgrades:"Gesamt inkl. Upgrades",nameLabel:"Name *",namePlaceholder:"Max Mustermann",emailLabel:"E-Mail *",emailPlaceholder:"max@mail.de",phoneLabel:"Telefon",phonePlaceholder:"Optional",vinLabel:"Fahrgestellnummer (FIN)",vinPlaceholder:"Optional – hilft bei der Einschätzung",messageLabel:"Nachricht",messagePlaceholder:"Erzähl uns von deinem Projekt – Fahrzeug, Wunschklang, Budget …",requiredHint:"* Pflichtfelder",sending:"Wird gesendet…",submit:"Anfrage senden",cardTitle:"HiFi Planet Amorbach",address:"Adresse",phone:"Telefon",email:"E-Mail",hours:"Öffnungszeiten",hoursWeek:"Mo–Fr: 9:00–18:00 Uhr",hoursSat:"Sa: 10:00–13:00 Uhr",hoursWeekDays:"Mo–Fr",hoursWeekTime:"9:00 – 18:00 Uhr",hoursSatDay:"Sa",hoursSatTime:"10:00 – 13:00 Uhr",directionsTitle:"Anfahrt",mapEmbedName:"Die Google-Maps-Karte",mapOpenChip:"In Maps öffnen",routePlan:"Route planen",featurePremiumTitle:"Premium Klang",featurePremiumSub:"Höchste Qualität",featureGermanyTitle:"Made in Germany",featureGermanySub:"Präzise Handarbeit",featureIndividualTitle:"Individuell",featureIndividualSub:"Maßgeschneiderte Lösungen",featureExpertsTitle:"Experten Team",featureExpertsSub:"Leidenschaft & Know-how"},galleryOverview:{metaTitle:"Bildergalerie",metaDescription:"Einblicke in unsere Car-Hifi Umbauten – nach Marke sortiert. Wähle eine Marke und entdecke die Projekte.",title:"Bildergalerie",intro:"Wähle eine Marke und entdecke unsere Umbauten im Detail.",loading:"Lädt…",empty:"Es sind noch keine Galerie-Marken hinterlegt."},galleryBrandPage:{metaTitleFallback:"Bildergalerie",metaTitle:e=>`${e} Umbauten`,metaDescription:e=>`Einblicke in unsere ${e} Car-Hifi Umbauten.`,loading:"Lädt…",breadcrumbGallery:"Galerie",titleSuffix:"Projekt wählen",empty:"Für diese Marke sind noch keine Projekte hinterlegt."},galleryProjectPage:{ctaTitle:"So etwas für dein Auto?",ctaText:"Erzähl uns von deinem Fahrzeug – wir planen einen ähnlichen Umbau für dich.",ctaButton:"Ähnlichen Umbau anfragen",ctaTopic:e=>`Mich interessiert ein ähnlicher Umbau wie "${e}" aus eurer Galerie.`,metaTitleFallback:"Bildergalerie",metaDescription:e=>`Fotos unseres ${e} Umbaus.`,loading:"Lädt…",breadcrumbGallery:"Galerie",empty:"Für dieses Projekt sind noch keine Fotos hinterlegt.",enlargeImage:"Bild vergrößern"},downloadsPage:{metaTitle:"Downloads",metaDescription:"Dateien und Songs von HifiPlanet zum Anhören und Herunterladen.",title:"Downloads",intro:"Hier stellen wir dir Dateien und Songs bereit – direkt anhören oder herunterladen.",loading:"Lädt…",empty:"Aktuell stehen keine Downloads bereit.",download:"Herunterladen",lockedTitle:"Geschützter Bereich",lockedText:"Bitte gib das Passwort ein, das du von uns bekommen hast.",passwordLabel:"Passwort",unlock:"Freischalten",unlocking:"Wird geprüft…",wrongPassword:"Das Passwort stimmt leider nicht."},errors:{generic:"Da ist etwas schiefgelaufen. Bitte versuche es noch einmal.",network:"Keine Verbindung zum Server. Bitte prüfe deine Internetverbindung.",notFound:"Diese Seite gibt es nicht (mehr).",rateLimited:"Zu viele Anfragen in kurzer Zeit. Bitte versuche es später noch einmal oder ruf uns an.",invalidInput:"Bitte gib deinen Namen und eine gültige E-Mail-Adresse an.",server:"Auf dem Server ist ein Fehler aufgetreten. Bitte versuche es später noch einmal.",maintenance:"Dieser Bereich wird gerade überarbeitet. Bitte schau später wieder vorbei."},notFound:{metaTitle:"Seite nicht gefunden",title:"Diese Seite haben wir nicht gefunden",text:"Vielleicht ist der Link veraltet oder hat einen Tippfehler. Hier geht es direkt weiter:",toVehicles:"Fahrzeug wählen",toContact:"Kontakt aufnehmen",toHome:"Zur Startseite"}},bP={nav:{mainNav:"Main navigation",menu:"Menu",call:"Call",openMenu:"Open menu",closeMenu:"Close menu",close:"Close",adminPanel:"Go to admin panel",vehicles:"Vehicles",services:"Services",gallery:"Gallery",contact:"Contact",whatsapp:"WhatsApp",shop:"Visit shop",downloads:"Downloads"},floatingContact:{call:"Call now",whatsapp:"Message us on WhatsApp"},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 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 (contact page). Loading it 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"},countdown:{eyebrow:"New website",title:"Things are about to get loud.",message:"We are tightening the last screws. Our new website with every package for your vehicle launches shortly.",days:"Days",hours:"Hours",minutes:"Minutes",seconds:"Seconds",launchPrefix:"Launch",launchAt:"at",clock:"",addToCalendar:"Add to calendar",calendarTitle:"Launch of the new HifiPlanet website",questions:"Questions?",liveEyebrow:"Now online",liveTitle:"We are live!",liveMessage:"One moment, the site is opening …",preview:"Preview – only visible to you",closePreview:"Close preview",adminActive:"Countdown active – visitors only see the teaser until {date}.",adminPreview:"Open preview"},lightbox:{close:"Close",previous:"Previous image",next:"Next image"},home:{metaTitle:"Custom Car-Hifi Installations",metaDescription:"HifiPlanet – your car-hifi specialist in Amorbach, Germany. Choose your make and model, discover matching sound packages and get in touch, no obligation.",stickyCta:"Ready for your sound upgrade?",selectVehicle:"Select vehicle",getInTouch:"Get in touch",welcome:"Welcome to HifiPlanet",heroTitle:"Home of pure Sound",heroSubtitle:"Your car-hifi specialist for custom sound installations. Choose your vehicle, discover the right package and get in touch, no obligation – we take care of the rest.",stats:[{value:"20+",label:"years of experience"},{value:"Huge",label:"in-house 3D print farm"},{value:"In-house",label:"CNC & laser workshop"},{value:"International",label:"recognized car-hifi specialist"}],brandsHeading:"Brands we work with",youtubeBadge:"HifiPlanet presents",youtubeTitle:"The craft behind your sound",youtubeText:"Discover the artistry behind our work",youtubeCta:"Watch now",heroImageAlt:"Ground Zero subwoofer and amplifiers with purple ambient lighting",craftImageAlt:"Custom subwoofer build",adviceImageAlt:"Amplifier installation with ambient lighting",moreImageAlt:"High-end amplifier and subwoofer, studio shot",craftEyebrow:"Craftsmanship",craftTitle:"Precision work in every detail",craftText:"Whether custom-built subwoofer enclosures, integrated lighting or invisibly routed cabling – our own CNC, laser and 3D-printing production means we can build solutions you simply can't buy off the shelf.",adviceEyebrow:"Consultation",adviceTitle:"From the first idea to the final touch",adviceText:"Every vehicle and every requirement is different. That's why we advise you personally and without obligation – from a subtle upgrade to an uncompromising high-end system.",insightsTitle:"A look at our installations",insightsText:"From subtle sound upgrades to elaborate full installations – handcrafted in our workshop in Amorbach.",galleryAlts:["Custom subwoofer build with Ground Zero bass drivers","Amplifier installation with purple ambient lighting","Tweeter and midrange installation by Focal Utopia","Sony navigation system with Apple CarPlay in the cockpit","Installed tweeter in the trunk","Custom subwoofer installation with LED lighting in the trunk"],reviewsRating:"Rated 5.0 by 181 customers",reviewsRatingDynamic:(e,t)=>`Rated ${e.toFixed(1)} by ${t} customers`,reviewsText:"Here's what our customers say about us.",reviewsLink:"See all reviews on Google →",testimonials:[{name:"Thomas K.",text:"Found this gem through YouTube. Advice and recommendations are top-notch – the Tesla demo car reignited my passion for great sound."},{name:"Andreas I.",text:"Very professional advice and service. Even though I switched from VAG to Mercedes, everything was adapted smoothly. The 3-way speakers and two subwoofers deliver outstanding performance."},{name:"Thomas F.",text:"The complete Audi A4 B9 build exceeded my expectations. Professional from start to finish, with flawless workmanship and sound quality."},{name:"Drago G.",text:"Impressed by the CNC work shown on YouTube. Started with 3D-printed speaker rings for my Ford Mustang – it turned into a much bigger project."},{name:"Leonardo B.",text:"Great service and masterful craftsmanship. Clean installation, passion visible in every detail."},{name:"Marcel S.",text:"Unbeatable value for money. The team took a lot of time to find the exact solution for my budget."},{name:"Julia W.",text:"Finally a shop that takes motorhomes seriously too. The sound system in our camper now sounds like a living room."},{name:"Kevin R.",text:"Dash cam and alarm system installed cleanly in a single appointment, no visible cables. Highly recommended for anyone who values quality workmanship."},{name:"Sabrina H.",text:"My classic car now has modern sound without compromising the original look. Exactly what I was looking for."},{name:"Niklas P.",text:"From the first inquiry to the finished build, everything went smoothly. Honest advice with no sales pressure."}],moreTitle:"More than just car-hifi",moreText:"Besides custom sound installations, we also offer CNC machining, laser technology, 3D printing and more – all from a single source in our own workshop.",moreCta:"Discover all our services",faqHeading:"Frequently asked questions"},vehicleSelect:{loading:"Loading brands…",metaTitle:"Select your vehicle",metaDescription:"Choose your vehicle make and model and discover matching car-hifi sound packages from HifiPlanet.",title:"Select your vehicle",intro:"Choose your make first, then your model – we'll show you the matching sound packages right away.",empty:"No brands have been added yet."},vehicleSearch:{label:"Search for your vehicle",placeholder:"Search directly, e.g. Golf 7 or BMW 3 Series",clear:"Clear search",loading:"Searching…",noResults:"No matching vehicle found.",contact:"Just ask us directly.",allModels:"All models"},brandPage:{metaTitleFallback:"Select a model",metaDescription:e=>`Choose your ${e} model and discover matching car-hifi sound packages from HifiPlanet.`,loading:"Loading…",breadcrumbVehicles:"Vehicles",titleSuffix:"Select a model",empty:"No models have been added for this brand yet."},modelPage:{customRequest:"Request a custom setup",customHint:"Nothing quite right? We will happily put together a package to suit you.",whatsappText:(e,t)=>`Hello HifiPlanet, I am interested in a car audio upgrade for my ${e} ${t}.`,metaTitleFallback:"Sound packages",metaTitle:(e,t)=>`${e} ${t} sound packages`,metaDescription:(e,t)=>`Car-hifi sound packages for the ${e} ${t} including current prices – get in touch with HifiPlanet, no obligation.`,loading:"Loading…",breadcrumbVehicles:"Vehicles",titleSuffix:"Sound packages",empty:"No packages have been added for this model yet.",totalPrice:"from approx.",productLoading:"Loading product…",requestContact:"Request contact",badges:{recommended:"Recommended",popular:"Most popular",tip:"Tip",coming_soon:"Coming soon"},videoLink:"Watch video",moreBullets:e=>e===1?"+ 1 more feature":`+ ${e} more features`,showMore:"Show more",lessBullets:"Show less",wheelHint:"Scroll to browse"},leistungen:{metaTitle:"Services",metaDescription:"Car-hifi, motorhomes & caravans, classic cars, CNC machining, laser technology, 3D printing, alarm systems and dash cams – all from a single source at HifiPlanet in Amorbach.",title:"Our services",intro:"From custom sound installations to our own CNC and 3D-printing production – all from a single source in our workshop in Amorbach.",notListedTitle:"Don't see your project?",notListedText:"Just get in touch – we'll find the right solution together.",contact:"Get in touch"},contactPage:{sendAnother:"Send another request",vehicleBoxTitle:"Your vehicle:",privacyPre:"By sending this form you agree that we use your details to handle your request. Learn more in our ",privacyLink:"privacy policy",privacyPost:".",mapIframeTitle:"HifiPlanet location in Amorbach on Google Maps",whatsappText:(e,t,n)=>`Hello HifiPlanet, I am interested in the "${n}" package for my ${e} ${t}.`,metaTitle:"Contact",metaDescription:"Get in touch with HifiPlanet in Amorbach for your custom car-hifi project – we're happy to advise you, no obligation.",title:"Get in touch",heroEyebrow:"Contact",heroTitlePre:"Talk",heroTitleAccent:"to",heroTitlePost:"us.",heroSubtitle:"Whether it's a system, installation, or sound tuning for your car — write to us, we'll get back to you as soon as possible.",packageBoxTitle:"Your inquiry relates to",formTitle:"Send inquiry",sentTitle:"Inquiry sent ✓",sentText:"Thanks! We'll get back to you within one business day.",contextIntro:"Your inquiry relates to:",contextBrand:"Brand",contextModel:"Model",contextPackage:"Package",contextProduct:"Product",packagePrice:"Package price",upgrades:"Upgrades",optionalUpgrades:"Optional upgrades",totalWithUpgrades:"Total incl. upgrades",nameLabel:"Name *",namePlaceholder:"Max Mustermann",emailLabel:"Email *",emailPlaceholder:"max@mail.de",phoneLabel:"Phone",phonePlaceholder:"Optional",vinLabel:"Vehicle identification number (VIN)",vinPlaceholder:"Optional – helps us assess your vehicle",messageLabel:"Message",messagePlaceholder:"Tell us about your project – vehicle, desired sound, budget …",requiredHint:"* Required fields",sending:"Sending…",submit:"Send inquiry",cardTitle:"HiFi Planet Amorbach",address:"Address",phone:"Phone",email:"Email",hours:"Opening hours",hoursWeek:"Mon–Fri: 9:00 AM–6:00 PM",hoursSat:"Sat: 10:00 AM–1:00 PM",hoursWeekDays:"Mon–Fri",hoursWeekTime:"9:00 AM – 6:00 PM",hoursSatDay:"Sat",hoursSatTime:"10:00 AM – 1:00 PM",directionsTitle:"Directions",mapEmbedName:"The Google Maps map",mapOpenChip:"Open in Maps",routePlan:"Get directions",featurePremiumTitle:"Premium Sound",featurePremiumSub:"Highest quality",featureGermanyTitle:"Made in Germany",featureGermanySub:"Precision craftsmanship",featureIndividualTitle:"Custom-built",featureIndividualSub:"Tailored solutions",featureExpertsTitle:"Expert Team",featureExpertsSub:"Passion & know-how"},galleryOverview:{metaTitle:"Photo gallery",metaDescription:"A look at our car-hifi installations – sorted by brand. Choose a brand and explore the projects.",title:"Photo gallery",intro:"Choose a brand and explore our installations in detail.",loading:"Loading…",empty:"No gallery brands have been added yet."},galleryBrandPage:{metaTitleFallback:"Photo gallery",metaTitle:e=>`${e} installations`,metaDescription:e=>`A look at our ${e} car-hifi installations.`,loading:"Loading…",breadcrumbGallery:"Gallery",titleSuffix:"Select a project",empty:"No projects have been added for this brand yet."},galleryProjectPage:{ctaTitle:"Want something like this for your car?",ctaText:"Tell us about your vehicle and we will plan a similar build for you.",ctaButton:"Request a similar build",ctaTopic:e=>`I am interested in a build similar to "${e}" from your gallery.`,metaTitleFallback:"Photo gallery",metaDescription:e=>`Photos of our ${e} installation.`,loading:"Loading…",breadcrumbGallery:"Gallery",empty:"No photos have been added for this project yet.",enlargeImage:"Enlarge image"},downloadsPage:{metaTitle:"Downloads",metaDescription:"Files and songs from HifiPlanet to listen to and download.",title:"Downloads",intro:"Here you will find files and songs we provide for you – listen right here or download them.",loading:"Loading…",empty:"There are no downloads available right now.",download:"Download",lockedTitle:"Protected area",lockedText:"Please enter the password you received from us.",passwordLabel:"Password",unlock:"Unlock",unlocking:"Checking…",wrongPassword:"Sorry, that password is not correct."},errors:{generic:"Something went wrong. Please try again.",network:"No connection to the server. Please check your internet connection.",notFound:"This page does not exist (anymore).",rateLimited:"Too many requests in a short time. Please try again later or give us a call.",invalidInput:"Please enter your name and a valid email address.",server:"A server error occurred. Please try again later.",maintenance:"This section is being updated. Please check back later."},notFound:{metaTitle:"Page not found",title:"We could not find this page",text:"The link may be outdated or contain a typo. Continue here:",toVehicles:"Choose your vehicle",toContact:"Get in touch",toHome:"Back to the homepage"}},Cn={de:wP,en:bP},lv=m.createContext(null);function kP({children:e}){const[t,n]=m.useState(null),[r,s]=m.useState(!0);m.useEffect(()=>{oe.get("/auth/me").then(h=>n(h.authenticated===!1?null:h)).catch(()=>n(null)).finally(()=>s(!1))},[]);const i=async(h,g)=>{const y=await oe.post("/auth/login",{username:h,password:g});return y.requires_2fa?{requires2fa:!0,method:y.method||"totp",methods:y.methods||[y.method||"totp"],emailHint:y.email_hint||""}:(n(y),{requires2fa:!1})},a=async h=>{const g=await oe.post("/auth/verify-2fa",{code:h});n(g)},l=()=>oe.post("/auth/resend-code",{}),u=h=>oe.post("/auth/2fa-method",{method:h}),c=async()=>{await oe.post("/auth/logout",{}),n(null)},d=async()=>{const h=await oe.get("/auth/me");n(h.authenticated===!1?null:h)},f=h=>{var g;return!!t&&(t.is_super_admin||((g=t.permissions)==null?void 0:g.includes(h)))};return o.jsx(lv.Provider,{value:{user:t,loading:r,login:i,verifyTwoFactor:a,resendLoginCode:l,switchTwoFactorMethod:u,logout:c,refreshUser:d,hasPermission:f},children:e})}function Wn(){return m.useContext(lv)}const Vl={home_sections:"content.manage",faqs:"content.manage",partners:"content.manage",text:"content.manage",site_images:"content.manage",services:"services.manage",packages:"packages.manage",brands:"brands.manage",car_models:"models.manage",gallery_brands:"gallery.manage",gallery_projects:"gallery.manage",gallery_photos:"gallery.manage",legal_pages:"settings.manage"},wc="hifi-live-edit",SP={de:{},en:{}},ks=(e,t,n,r)=>`${e}|${t}|${n}|${r}`;function jP(){try{const e=new URLSearchParams(window.location.search);if(e.get("bearbeiten")==="1"){sessionStorage.setItem(wc,"1"),e.delete("bearbeiten");const t=e.toString();return window.history.replaceState(window.history.state,"",window.location.pathname+(t?`?${t}`:"")+window.location.hash),!0}return sessionStorage.getItem(wc)==="1"}catch{return!1}}const qn=()=>{},uv=m.createContext({available:!1,enabled:!1,setEnabled:qn,canEdit:()=>!1,getValue:(e,t,n,r,s)=>s,setValue:qn,resetValue:qn,hasPending:()=>!1,textOverride:()=>{},trackTextKey:qn,usedTextKeys:()=>[],pendingCount:0,saving:!1,error:"",save:async()=>{},discard:qn,editor:null,openEditor:qn,closeEditor:qn});function Fl({serverOverrides:e,children:t}){const{user:n,hasPermission:r}=Wn(),s=!!n&&Object.values(Vl).some(L=>r(L)),[i,a]=m.useState(jP),l=s&&i,[u,c]=m.useState({}),[d,f]=m.useState({}),[h,g]=m.useState(!1),[y,b]=m.useState(""),[w,p]=m.useState(null),x=m.useRef(l);x.current=l;const v=m.useRef(new Map),k=m.useCallback(L=>{a(L);try{sessionStorage.setItem(wc,L?"1":"0")}catch{}L||p(null)},[]),E=m.useCallback(L=>l&&!!Vl[L]&&r(Vl[L]),[l,r]),C=m.useCallback((L,D,H,_,R)=>{const X=ks(L,D,H,_);return X in u?u[X]:X in d?d[X]:R},[u,d]),j=m.useCallback((L,D,H,_,R)=>{b(""),c(X=>({...X,[ks(L,D,H,_)]:R}))},[]),S=m.useCallback((L,D,H,_)=>{c(R=>{const X=ks(L,D,H,_);if(!(X in R))return R;const Q={...R};return delete Q[X],Q})},[]),N=m.useCallback((L,D,H,_)=>ks(L,D,H,_)in u,[u]),P=e||SP,V=m.useCallback((L,D)=>{var R;const H=ks("text",D,"value",L),_=H in u?u[H]:H in d?d[H]:(R=P[L])==null?void 0:R[D];return _||void 0},[u,d,P]),B=m.useCallback(L=>{if(!x.current)return;const D=window.location.pathname,H=v.current.get(L);H?H.add(D):v.current.set(L,new Set([D]))},[]),se=m.useCallback(L=>{const D=[];return v.current.forEach((H,_)=>{H.has(L)&&D.push(_)}),D.sort()},[]),ne=Object.keys(u).length,q=m.useCallback(async()=>{const L=Object.entries(u);if(!L.length)return;const D=L.map(([H,_])=>{const[R,X,Q,de]=H.split("|");return{entity:R,id:X,field:Q,lang:de,value:_??""}});g(!0),b("");try{await oe.put("/live-edit",{changes:D}),f(H=>({...H,...u})),c({})}catch(H){b(H.status===401?"Deine Anmeldung ist abgelaufen. Bitte im Admin-Bereich neu anmelden, die Änderungen bleiben hier so lange erhalten.":H.message)}finally{g(!1)}},[u]),W=m.useCallback(()=>{c({}),b(""),p(null)},[]),I=m.useCallback(L=>p(L),[]),T=m.useCallback(()=>p(null),[]);m.useEffect(()=>{if(!ne)return;const L=D=>{D.preventDefault(),D.returnValue=""};return window.addEventListener("beforeunload",L),()=>window.removeEventListener("beforeunload",L)},[ne]);const M=m.useMemo(()=>({available:s,enabled:l,setEnabled:k,canEdit:E,getValue:C,setValue:j,resetValue:S,hasPending:N,textOverride:V,trackTextKey:B,usedTextKeys:se,pendingCount:ne,saving:h,error:y,save:q,discard:W,editor:w,openEditor:I,closeEditor:T}),[s,l,k,E,C,j,S,N,V,B,se,ne,h,y,q,W,w,I,T]);return o.jsx(uv.Provider,{value:M,children:t})}function Ue(){return m.useContext(uv)}function EP(){const e=localStorage.getItem("hifi-lang");return e==="de"||e==="en"?e:(navigator.language||"de").toLowerCase().startsWith("de")?"de":"en"}function ba(e,t){return t.split(".").reduce((n,r)=>n==null?void 0:n[r],e)}const cv=m.createContext({language:"de",setLanguage:()=>{},toggleLanguage:()=>{},t:e=>{const t=ba(Cn.de,e);return t!==void 0?t:e}});function Ol({children:e}){const[t,n]=m.useState(EP),{textOverride:r,trackTextKey:s}=Ue();m.useEffect(()=>{document.documentElement.setAttribute("lang",t),localStorage.setItem("hifi-lang",t)},[t]);const i=()=>n(l=>l==="de"?"en":"de"),a=l=>{const u=Cn[t]||Cn.de,c=ba(u,l);if(typeof c=="string"||c===void 0&&typeof ba(Cn.de,l)=="string"){s(l);const f=r(t,l);if(f!==void 0)return f}if(c!==void 0)return c;const d=ba(Cn.de,l);return d!==void 0?d:l};return o.jsx(cv.Provider,{value:{language:t,setLanguage:n,toggleLanguage:i,t:a},children:e})}function ye(){return m.useContext(cv)}function CP({overHero:e=!1,forceDark:t=!1}){const{theme:n,toggleTheme:r}=ov(),{t:s}=ye();return o.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"?o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"h-5 w-5",children:o.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"})}):o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"h-5 w-5",children:o.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 sf=m.createContext({phone:"09373 20 62 390",whatsapp:null,contact_email:"info@hifi-planet-amorbach.de",address_street:"Boxbrunner Str. 20a",address_zip:"63916",address_city:"Amorbach",logo_path:null,logo_dark_path:null,business_hours:null,hero_image_path:null,ga_measurement_id:null,gallery_card_text_x:0,gallery_card_text_y:100,site_font:null,page_loader_enabled:1,package_card_width:210,package_card_height:480,vehicle_tile_width:240,vehicle_tile_height:180,hidden_areas:[]}),TP=sf.Provider;function kt(){return m.useContext(sf)}function Io(){const{hidden_areas:e}=m.useContext(sf);return t=>(e||[]).includes(t)}const af="/assets/logo-dark-R-ckaBhx.png",dv=e=>(e||"").replace(/[^\d+]/g,""),rs=e=>`tel:${dv(e)}`,Vo=(e,t="")=>`https://wa.me/${dv(e).replace(/^0/,"49").replace("+","")}${t?`?text=${encodeURIComponent(t)}`:""}`;function Zt(e,t={}){typeof window>"u"||typeof window.gtag!="function"||window.gtag("event",e,t)}const PP="https://www.audio4cars.de/",dp=70,NP=500;function _P({className:e}){return o.jsxs("svg",{viewBox:"0 0 3 2",className:e,"aria-hidden":"true",children:[o.jsx("rect",{width:"3",height:"0.667",y:"0",fill:"#000"}),o.jsx("rect",{width:"3",height:"0.667",y:"0.667",fill:"#D00"}),o.jsx("rect",{width:"3",height:"0.666",y:"1.334",fill:"#FFCE00"})]})}function MP({className:e}){return o.jsxs("svg",{viewBox:"0 0 60 30",className:e,"aria-hidden":"true",children:[o.jsx("clipPath",{id:"fgb-t",children:o.jsx("path",{d:"M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z"})}),o.jsx("path",{d:"M0,0 v30 h60 v-30 z",fill:"#00247d"}),o.jsx("path",{d:"M0,0 L60,30 M60,0 L0,30",stroke:"#fff",strokeWidth:"6"}),o.jsx("path",{d:"M0,0 L60,30 M60,0 L0,30",clipPath:"url(#fgb-t)",stroke:"#cf142b",strokeWidth:"4"}),o.jsx("path",{d:"M30,0 v30 M0,15 h60",stroke:"#fff",strokeWidth:"10"}),o.jsx("path",{d:"M30,0 v30 M0,15 h60",stroke:"#cf142b",strokeWidth:"6"})]})}const zl=[{code:"de",label:"Deutsch",Flag:_P},{code:"en",label:"English",Flag:MP}];function LP({overHero:e=!1}){const{language:t,setLanguage:n,t:r}=ye(),[s,i]=m.useState(!1),a=m.useRef(null),l=zl.find(u=>u.code===t)||zl[0];return m.useEffect(()=>{if(!s)return;const u=d=>{a.current&&!a.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]),o.jsxs("div",{className:"relative",ref:a,children:[o.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:[o.jsx("span",{className:`block h-4 w-6 shrink-0 overflow-hidden rounded-[3px] ring-1 ${e?"ring-white/50":"ring-neutral-600"}`,children:o.jsx(l.Flag,{className:"h-full w-full"})}),o.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:o.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&&o.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:zl.map(u=>o.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:[o.jsx("span",{className:"block h-4 w-6 shrink-0 overflow-hidden rounded-[3px] ring-1 ring-neutral-600",children:o.jsx(u.Flag,{className:"h-full w-full"})}),u.label]},u.code))})]})}function AP(){const[e,t]=m.useState(!1),[n,r]=m.useState(!1),[s,i]=m.useState(!1),{user:a}=Wn(),{phone:l,whatsapp:u,logo_dark_path:c,has_downloads:d}=kt(),f=Io(),{t:h}=ye(),g=!f("page.vehicles"),y=!f("page.services"),b=!f("page.gallery"),w=d&&!f("page.downloads"),p=3+[g,y,b,w,l,u].filter(Boolean).length,v=Qe().pathname==="/",[k,E]=m.useState(!v);m.useEffect(()=>{if(!v){E(!0);return}const W=()=>E(window.scrollY>24);return W(),window.addEventListener("scroll",W,{passive:!0}),()=>window.removeEventListener("scroll",W)},[v]);const C=v&&!k,j=m.useRef(null),S=m.useRef(null);m.useEffect(()=>{if(!e)return;const W=document.body.style.overflow;document.body.style.overflow="hidden";const I=setTimeout(()=>{var M,L;return(L=(M=j.current)==null?void 0:M.querySelector("button, a"))==null?void 0:L.focus()},50),T=M=>{if(M.key==="Escape"){t(!1);return}if(M.key!=="Tab"||!j.current)return;const L=[...j.current.querySelectorAll("a[href], button")];if(!L.length)return;const D=L[0],H=L[L.length-1];M.shiftKey&&document.activeElement===D?(M.preventDefault(),H.focus()):!M.shiftKey&&document.activeElement===H&&(M.preventDefault(),D.focus())};return document.addEventListener("keydown",T),()=>{var M;clearTimeout(I),document.body.style.overflow=W,document.removeEventListener("keydown",T),(M=S.current)==null||M.focus({preventScroll:!0})}},[e]),m.useEffect(()=>{if(e){r(!0);let T;const M=requestAnimationFrame(()=>{T=requestAnimationFrame(()=>i(!0))});return()=>{cancelAnimationFrame(M),T&&cancelAnimationFrame(T)}}i(!1);const W=NP+(p-1)*dp,I=setTimeout(()=>r(!1),W);return()=>clearTimeout(I)},[e,p]);const N=()=>`transition-all duration-500 ease-out ${s?"opacity-100":"opacity-0"}`,P=W=>({transitionDelay:`${(s?W:p-1-W)*dp}ms`,transform:s?"translateY(0)":"translateY(-140px)"}),V=a&&o.jsx(G,{to:"/admin","aria-label":h("nav.adminPanel"),title:h("nav.adminPanel"),className:`rounded-full p-2 transition ${C?"text-white hover:bg-white/10":"text-neutral-300 hover:bg-neutral-800"}`,children:o.jsx(IT,{className:"h-5 w-5"})}),B=Ue(),se=B.available&&o.jsx("button",{type:"button",onClick:()=>B.setEnabled(!B.enabled),"aria-pressed":B.enabled,"aria-label":"Seite bearbeiten",title:B.enabled?"Bearbeiten beenden":"Seite bearbeiten",className:`rounded-full p-2 transition ${B.enabled?"bg-brand-500 text-white hover:bg-brand-600":C?"text-white hover:bg-white/10":"text-neutral-300 hover:bg-neutral-800"}`,children:o.jsx(iv,{className:"h-5 w-5"})});let ne=0;const q=()=>P(ne++);return o.jsxs("header",{className:`sticky top-0 z-30 border-b transition-colors duration-300 ${C?"border-transparent bg-transparent":"border-neutral-800 bg-neutral-950/90 backdrop-blur"}`,children:[o.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:[o.jsx("div",{className:"flex items-center justify-self-start",children:o.jsxs("button",{ref:S,onClick:()=>t(!0),"aria-label":h("nav.openMenu"),"aria-expanded":e,"aria-haspopup":"dialog",className:`flex items-center gap-2 rounded-md p-2 transition ${C?"text-white hover:bg-white/10":"text-neutral-300 hover:bg-neutral-800"}`,children:[o.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:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h16"})}),o.jsx("span",{className:"text-sm font-semibold","aria-hidden":"true",children:h("nav.menu")})]})}),o.jsx(G,{to:"/",className:"flex items-center justify-self-center rounded-lg px-2 py-1",children:o.jsx("img",{src:c||af,alt:"HifiPlanet",className:"h-14 w-auto sm:h-16"})}),o.jsxs("div",{className:"flex items-center justify-self-end gap-1",children:[se,V,!e&&o.jsx(LP,{overHero:C}),o.jsx(CP,{overHero:C,forceDark:!0})]})]}),n&&yd.createPortal(o.jsx("div",{ref:j,role:"dialog","aria-modal":"true","aria-label":h("nav.menu"),className:"fixed inset-0 z-[100] overflow-y-auto text-left backdrop-blur-xl",style:{background:"linear-gradient(135deg, rgba(241,245,249,0.55) 0%, rgba(227,240,207,0.55) 50%, rgba(248,250,252,0.55) 100%)"},children:o.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:[o.jsxs("button",{onClick:()=>t(!1),"aria-label":h("nav.closeMenu"),className:"absolute left-6 top-8 flex items-center gap-2 text-neutral-600 hover:text-brand-600 sm:left-8 sm:top-[65px]",children:[o.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:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6l12 12M18 6 6 18"})}),o.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide",children:h("nav.close")})]}),g&&o.jsx(G,{to:"/fahrzeuge",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${N()}`,style:q(),children:h("nav.vehicles")}),y&&o.jsx(G,{to:"/leistungen",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${N()}`,style:q(),children:h("nav.services")}),b&&o.jsx(G,{to:"/galerie",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${N()}`,style:q(),children:h("nav.gallery")}),o.jsx(G,{to:"/kontakt",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${N()}`,style:q(),children:h("nav.contact")}),w&&o.jsx(G,{to:"/downloads",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${N()}`,style:q(),children:h("nav.downloads")}),o.jsx("div",{className:`h-px w-16 bg-brand-500/60 ${N()}`,style:q()}),l&&o.jsxs("a",{href:rs(l),onClick:()=>Zt("contact_call"),className:`flex items-center gap-2 text-sm font-semibold uppercase tracking-wide text-neutral-600 hover:text-brand-600 ${N()}`,style:q(),children:[o.jsx(zn,{className:"h-4 w-4"}),l]}),u&&o.jsxs("a",{href:Vo(u),onClick:()=>Zt("contact_whatsapp"),target:"_blank",rel:"noopener noreferrer",className:`flex items-center gap-2 text-sm font-semibold uppercase tracking-wide text-neutral-600 hover:text-brand-600 ${N()}`,style:q(),children:[o.jsx(rf,{className:"h-4 w-4"}),h("nav.whatsapp")]}),o.jsxs("a",{href:PP,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 ${N()}`,style:q(),children:[o.jsx(lP,{className:"h-4 w-4"}),h("nav.shop")]})]})}),document.body)]})}const fp="hifiplanet-cookie-consent",fv={necessary:!0,external:!1,analytics:!1},hv=m.createContext({consent:fv,decided:!1,settingsOpen:!1,acceptAll:()=>{},rejectNonEssential:()=>{},saveCustom:()=>{},openSettings:()=>{},closeSettings:()=>{}});function DP({children:e}){const[t,n]=m.useState(fv),[r,s]=m.useState(!1),[i,a]=m.useState(!1);m.useEffect(()=>{try{const g=localStorage.getItem(fp);if(g){const y=JSON.parse(g);n({necessary:!0,external:!!y.external,analytics:!!y.analytics}),s(!0)}}catch{}},[]);const l=m.useCallback(g=>{n(g),s(!0),a(!1),localStorage.setItem(fp,JSON.stringify({...g,decidedAt:new Date().toISOString()}))},[]),u=m.useCallback(()=>l({necessary:!0,external:!0,analytics:!0}),[l]),c=m.useCallback(()=>l({necessary:!0,external:!1,analytics:!1}),[l]),d=m.useCallback(g=>l({necessary:!0,external:!!g.external,analytics:!!g.analytics}),[l]),f=m.useCallback(()=>a(!0),[]),h=m.useCallback(()=>a(!1),[]);return o.jsx(hv.Provider,{value:{consent:t,decided:r,settingsOpen:i,acceptAll:u,rejectNonEssential:c,saveCustom:d,openSettings:f,closeSettings:h},children:e})}function yr(){return m.useContext(hv)}const RP=["mon","tue","wed","thu","fri","sat","sun"],IP=["sun","mon","tue","wed","thu","fri","sat"],Bl={mon:"Mo",tue:"Di",wed:"Mi",thu:"Do",fri:"Fr",sat:"Sa",sun:"So"};function VP(e){const t=new Date,n=e==null?void 0:e[IP[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),[a,l]=n.close.split(":").map(Number);return r>=s*60+i&&r<a*60+l}function FP(e){return!e||e.closed||!e.open||!e.close?null:`${e.open} – ${e.close} Uhr`}function mv(e,t="Geschlossen"){const n=[];return RP.forEach(r=>{const s=FP(e==null?void 0:e[r])||t,i=n[n.length-1];i&&i.label===s?i.days=`${i.firstLabel}-${Bl[r]}`:n.push({key:r,days:Bl[r],firstLabel:Bl[r],label:s})}),n}const OP=e=>(e||"").replace(/[^\d+]/g,"");function zP(){const{phone:e,contact_email:t,address_street:n,address_zip:r,address_city:s,business_hours:i,has_downloads:a}=kt(),l=Io(),u=a&&!l("page.downloads"),c=VP(i),{openSettings:d}=yr(),{pathname:f}=Qe(),h=f==="/",{t:g}=ye(),y=[n,[r,s].filter(Boolean).join(" ")].filter(Boolean).join(", "),b=`https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(y)}`,w=mv(i,g("footer.closed"));return o.jsxs("footer",{className:`border-t border-neutral-200 bg-neutral-50 py-10 text-sm text-neutral-600 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-300 ${h?"pb-24":""}`,children:[o.jsxs("div",{className:"mx-auto grid max-w-6xl gap-4 px-4 sm:grid-cols-3 sm:px-6",children:[o.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[o.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[o.jsx(sv,{className:"h-4 w-4 text-brand-500"}),o.jsx("p",{className:"font-semibold text-neutral-900 dark:text-white",children:"HifiPlanet"})]}),n&&o.jsx("p",{children:n}),(r||s)&&o.jsx("p",{children:[r,s].filter(Boolean).join(" ")}),o.jsxs("a",{href:b,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:[o.jsx(qT,{className:"h-3.5 w-3.5"}),g("footer.routePlan")]})]}),o.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[o.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[o.jsx(zn,{className:"h-4 w-4 text-brand-500"}),o.jsx("p",{className:"font-semibold text-neutral-900 dark:text-white",children:g("footer.contactHeading")})]}),o.jsx("p",{children:o.jsx("a",{href:`tel:${OP(e)}`,className:"inline-block py-1 hover:text-brand-500",children:e})}),o.jsx("p",{children:o.jsx("a",{href:`mailto:${t}`,className:"inline-block py-1 hover:text-brand-500",children:t})}),o.jsx(G,{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:g("footer.contactForm")})]}),o.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[o.jsxs("div",{className:"mb-3 flex items-center justify-between gap-2",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(nv,{className:"h-4 w-4 text-brand-500"}),o.jsx("p",{className:"font-semibold text-neutral-900 dark:text-white",children:g("footer.hoursHeading")})]}),o.jsxs("span",{className:`flex items-center gap-1.5 rounded-full px-2 py-0.5 text-[11px] font-semibold ${c?"bg-green-100 text-green-700 dark:bg-green-900/40 dark:text-green-300":"bg-neutral-100 text-neutral-500 dark:bg-neutral-800 dark:text-neutral-400"}`,children:[o.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${c?"bg-green-500":"bg-neutral-400"}`}),g(c?"footer.open":"footer.closed")]})]}),o.jsx("dl",{className:"space-y-1.5",children:w.map(p=>o.jsxs("div",{className:"flex items-center justify-between gap-3",children:[o.jsx("dt",{className:"text-neutral-500 dark:text-neutral-400",children:p.days}),o.jsx("dd",{className:"font-medium text-neutral-700 dark:text-neutral-200",children:p.label})]},p.key))})]})]}),o.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:o.jsxs("p",{className:"flex flex-wrap items-center justify-center gap-x-2 gap-y-1",children:[o.jsx("span",{children:g("footer.copyright")(new Date().getFullYear())}),o.jsx("span",{children:"·"}),o.jsx(G,{to:"/impressum",className:"hover:text-brand-500",children:g("footer.imprint")}),o.jsx("span",{children:"·"}),o.jsx(G,{to:"/datenschutz",className:"hover:text-brand-500",children:g("footer.privacy")}),o.jsx("span",{children:"·"}),o.jsx(G,{to:"/agb",className:"hover:text-brand-500",children:g("footer.terms")}),o.jsx("span",{children:"·"}),u&&o.jsxs(o.Fragment,{children:[o.jsx(G,{to:"/downloads",className:"hover:text-brand-500",children:g("footer.downloads")}),o.jsx("span",{children:"·"})]}),o.jsx("button",{type:"button",onClick:d,className:"hover:text-brand-500",children:g("footer.cookieSettings")})]})})]})}function BP(){const{scrollYProgress:e}=Xy(),t=WC(e,{stiffness:200,damping:30,restDelta:.001});return o.jsx(an.div,{style:{scaleX:t},className:"fixed left-0 top-0 z-40 h-0.5 w-full origin-left bg-brand-500"})}const $P=()=>o.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:o.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 Ci({message:e,fullScreen:t=!1}){const{t:n}=ye(),r=o.jsxs("div",{className:"mx-auto max-w-md text-center",children:[o.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:o.jsx($P,{})}),o.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:n("maintenance.title")}),o.jsx("p",{className:"text-neutral-600 dark:text-neutral-300",children:e||n("maintenance.defaultMessage")})]});return t?o.jsxs("div",{className:"relative flex min-h-screen items-center justify-center bg-white px-4 dark:bg-neutral-950",children:[r,o.jsxs(G,{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:[o.jsx(rv,{className:"h-4 w-4"}),n("maintenance.login")]})]}):o.jsx("div",{className:"mx-auto max-w-6xl px-4 py-20 sm:px-6",children:r})}const hp=o.jsx(o.Fragment,{children:'Wartungsmodus aktiv – Besucher sehen aktuell eine Wartungsmeldung. Du siehst diese Seite nur, weil du die Berechtigung "Wartungsmodus umgehen" hast.'});function Ti({inline:e=!1}){return e?o.jsx("div",{className:"mb-8 rounded-lg bg-amber-500 px-4 py-2 text-center text-xs font-semibold text-white",children:hp}):o.jsx("div",{className:"bg-amber-500 px-4 py-2 text-center text-xs font-semibold text-white",children:hp})}const mp='a[href], button:not([disabled]), input:not([disabled]), select, textarea, [tabindex]:not([tabindex="-1"])';function Pi(e,t,n){m.useEffect(()=>{if(!t)return;const r=document.activeElement,s=document.body.style.overflow;document.body.style.overflow="hidden";const i=setTimeout(()=>{var l,u;return(u=(l=e.current)==null?void 0:l.querySelector(mp))==null?void 0:u.focus()},30),a=l=>{if(l.key==="Escape"){l.stopPropagation(),n==null||n();return}if(l.key!=="Tab"||!e.current)return;const u=[...e.current.querySelectorAll(mp)];if(!u.length)return;const c=u[0],d=u[u.length-1];l.shiftKey&&document.activeElement===c?(l.preventDefault(),d.focus()):!l.shiftKey&&document.activeElement===d&&(l.preventDefault(),c.focus())};return document.addEventListener("keydown",a),()=>{clearTimeout(i),document.body.style.overflow=s,document.removeEventListener("keydown",a),r instanceof HTMLElement&&r.focus({preventScroll:!0})}},[t,e])}function HP({onClose:e}){const{consent:t,saveCustom:n}=yr(),[r,s]=m.useState(t.external),[i,a]=m.useState(t.analytics),{t:l}=ye(),u=m.useRef(null);return Pi(u,!0,e),o.jsx("div",{className:"fixed inset-0 z-[60] flex items-center justify-center bg-black/50 p-4",onClick:e,children:o.jsxs("div",{ref:u,role:"dialog","aria-modal":"true","aria-label":l("cookieConsent.modalTitle"),className:"w-full max-w-md rounded-xl bg-white p-6 dark:bg-neutral-900",onClick:c=>c.stopPropagation(),children:[o.jsx("h2",{className:"mb-1 text-lg font-bold text-neutral-900 dark:text-white",children:l("cookieConsent.modalTitle")}),o.jsxs("p",{className:"mb-4 text-sm text-neutral-600 dark:text-neutral-300",children:[l("cookieConsent.modalIntro")," ",o.jsx(G,{to:"/datenschutz",className:"underline hover:text-brand-500",onClick:e,children:l("cookieConsent.privacyPolicy")}),"."]}),o.jsxs("div",{className:"space-y-3",children:[o.jsxs("div",{className:"flex items-start justify-between gap-3 rounded-lg border border-neutral-200 p-3 dark:border-neutral-700",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-semibold text-neutral-800 dark:text-neutral-100",children:l("cookieConsent.necessaryTitle")}),o.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:l("cookieConsent.necessaryDesc")})]}),o.jsx("input",{type:"checkbox",checked:!0,disabled:!0,className:"mt-1 h-4 w-4 shrink-0"})]}),o.jsxs("div",{className:"flex items-start justify-between gap-3 rounded-lg border border-neutral-200 p-3 dark:border-neutral-700",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-semibold text-neutral-800 dark:text-neutral-100",children:l("cookieConsent.externalTitle")}),o.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:l("cookieConsent.externalDesc")})]}),o.jsx("input",{type:"checkbox",checked:r,onChange:c=>s(c.target.checked),className:"mt-1 h-4 w-4 shrink-0"})]}),o.jsxs("div",{className:"flex items-start justify-between gap-3 rounded-lg border border-neutral-200 p-3 dark:border-neutral-700",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-semibold text-neutral-800 dark:text-neutral-100",children:l("cookieConsent.analyticsTitle")}),o.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:l("cookieConsent.analyticsDesc")})]}),o.jsx("input",{type:"checkbox",checked:i,onChange:c=>a(c.target.checked),className:"mt-1 h-4 w-4 shrink-0"})]})]}),o.jsxs("div",{className:"mt-5 flex justify-end gap-2",children:[o.jsx("button",{type:"button",onClick:e,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:l("cookieConsent.cancel")}),o.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:l("cookieConsent.saveSelection")})]})]})})}function UP(){const{decided:e,settingsOpen:t,acceptAll:n,rejectNonEssential:r,openSettings:s,closeSettings:i}=yr(),{t:a}=ye();return o.jsxs(o.Fragment,{children:[!e&&o.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:o.jsxs("div",{className:"mx-auto flex max-w-6xl flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[o.jsxs("p",{className:"text-sm text-neutral-600 dark:text-neutral-300",children:[a("cookieConsent.bannerText")," ",a("cookieConsent.moreInfo")," ",o.jsx(G,{to:"/datenschutz",className:"underline hover:text-brand-500",children:a("cookieConsent.privacyPolicy")}),"."]}),o.jsxs("div",{className:"flex flex-wrap gap-2 sm:shrink-0",children:[o.jsx("button",{type:"button",onClick:s,className:"rounded-md border border-neutral-300 px-3 py-2 text-sm dark:border-neutral-700",children:a("cookieConsent.settings")}),o.jsx("button",{type:"button",onClick:r,className:"rounded-md border border-neutral-300 px-3 py-2 text-sm dark:border-neutral-700",children:a("cookieConsent.onlyNecessary")}),o.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:a("cookieConsent.acceptAll")})]})]})}),t&&o.jsx(HP,{onClose:i})]})}let pv={offset:0,hidesContact:!1};const bc=new Set;function pp(e){pv=e,bc.forEach(t=>t())}function WP(e){return bc.add(e),()=>bc.delete(e)}function gv(e,{offset:t=0,hidesContact:n=!1}={}){m.useEffect(()=>{if(e)return pp({offset:t,hidesContact:n}),()=>pp({offset:0,hidesContact:!1})},[e,t,n])}function GP(){const{phone:e,whatsapp:t}=kt(),{t:n}=ye(),{decided:r}=yr(),{enabled:s}=Ue(),i=m.useSyncExternalStore(WP,()=>pv);return!e&&!t||!r||s||i.hidesContact?null:o.jsxs("div",{className:"fixed right-4 z-40 flex flex-col items-center gap-3 transition-[bottom] duration-300 sm:hidden",style:{bottom:`calc(1rem + ${i.offset}px + env(safe-area-inset-bottom, 0px))`},children:[e&&o.jsx("a",{href:rs(e),onClick:()=>Zt("contact_call",{source:"floating_button"}),"aria-label":n("floatingContact.call"),title:n("floatingContact.call"),className:"flex h-12 w-12 items-center justify-center rounded-full bg-brand-500 text-white shadow-lg ring-1 ring-black/5 transition active:scale-95",children:o.jsx(zn,{className:"h-5 w-5"})}),t&&o.jsx("a",{href:Vo(t),target:"_blank",rel:"noopener noreferrer",onClick:()=>Zt("contact_whatsapp",{source:"floating_button"}),"aria-label":n("floatingContact.whatsapp"),title:n("floatingContact.whatsapp"),className:"flex h-14 w-14 items-center justify-center rounded-full bg-[#25D366] text-white shadow-lg ring-1 ring-black/5 transition active:scale-95",children:o.jsx(rf,{className:"h-7 w-7"})})]})}const xv="/assets/gallery-subs-COSd4seJ.webp",yv="/assets/gallery-amp-purple-CESAKuOf.webp",KP="/assets/gallery-speaker-CUXQZ49Q.webp",vv="/assets/gallery-dash-Cg-7v9qo.webp",qP="/assets/hero-trunk-Dp4_JHDh.webp",YP="/assets/gallery-rear-8cIXPC7T.webp",XP="/assets/hero-highlight-Co4f1Kj5.webp",ZP="/assets/bg-light-CBAG2tPV.webp",gp="/assets/bg-dark-B4R1klEI.webp",wv="/assets/base-BKOm0Bib.webp",bv="/assets/clear-DZZMSrMX.webp",kv="/assets/drive-BE2W1yna.webp",Sv="/assets/prime-BTVNe2Gb.webp",jv="/assets/elite_r-BRvz_pyr.webp",Ev="/assets/apex-CFy2qup8.webp",Cv="/assets/statement-pTO-wTPx.webp",Tv="/assets/limitless-DDs0S_PU.webp",en={og_image:{src:"/og-image.jpg",label:"Link-Vorschaubild",aspect:1200/630},favicon:{src:"/favicon.png",label:"Browser-Symbol (Favicon)",aspect:1},craft:{src:xv,label:"Startseite: Bild bei „Präzisionsarbeit“",aspect:3/2},advice:{src:yv,label:"Startseite: Bild bei „Von der ersten Idee …“",aspect:3/2},youtube_poster:{src:vv,label:"Startseite: Standbild des Videos",aspect:16/9},more:{src:XP,label:"Startseite: Bild bei „Mehr als nur Car-Hifi“",aspect:16/9},contact_bg_light:{src:ZP,label:"Kontaktseite: Hintergrund hell"},contact_bg_dark:{src:gp,label:"Kontaktseite: Hintergrund dunkel"},countdown_bg:{src:gp,label:"Launch-Countdown: Hintergrund"}},lo=[{src:xv,width:900,height:600},{src:yv,width:900,height:600},{src:KP,width:900,height:1200},{src:vv,width:900,height:814},{src:YP,width:900,height:1200},{src:qP,width:1920,height:1280}],C4=24,QP=()=>lo.map((e,t)=>`default:${t}`),JP=[wv,bv,kv,Sv,jv,Ev,Cv,Tv];function eN(e){var n;const t=/^default:(\d+)$/.exec(e||"");return t?((n=lo[Number(t[1])])==null?void 0:n.src)||null:e||null}function Fo(e){const t=kt(),n=Ue(),r=(e||t).site_images||{},s=(u,c)=>n.getValue("site_images",u,"path","de",c||"")||"";return{slot:u=>{const c=s(u,r[u]);return{src:c||en[u].src,custom:c}},insights:()=>(Array.isArray(r.insights)?r.insights:QP()).map((c,d)=>{let f=s(`insights.${d}`,c);f||(f=d<lo.length?`default:${d}`:"");const h=/^default:(\d+)$/.exec(f),g=h?lo[Number(h[1])]:{};return{id:`insights.${d}`,src:eN(f),width:g.width,height:g.height,custom:h?"":f}}).filter(c=>c.src),packageTier:u=>{const c=Array.isArray(r.package_tiers)?r.package_tiers:[],d=s(`package_tiers.${u}`,c[u]);return{src:d||JP[u],custom:d}}}}const Me={card:"#14170e",cardBorder:"rgba(168,225,12,0.16)",divider:"rgba(168,225,12,0.15)",text:"#f3f6ea",muted:"#9aa38c",label:"#8f987f",accent:"#b6e619",pillBorder:"rgba(168,225,12,0.28)"},xp={fontFamily:"'Michroma', sans-serif"};function uo(e,t=0){return e!=null&&e.launch_at?new Date(e.launch_at).getTime()-(Date.now()+t):0}function tN(e,t){return!(e!=null&&e.server_time)||!t?0:new Date(e.server_time).getTime()-t}function nN(e){const t=Math.max(0,Math.floor(e/1e3));return{days:Math.floor(t/86400),hours:Math.floor(t%86400/3600),minutes:Math.floor(t%3600/60),seconds:t%60}}function rN(e,t){const n=new Date(e),r=new Date(n.getTime()+60*60*1e3),s=a=>a.toISOString().replace(/[-:]/g,"").replace(/\.\d{3}/,""),i=["BEGIN:VCALENDAR","VERSION:2.0","PRODID:-//HifiPlanet//Countdown//DE","BEGIN:VEVENT",`UID:launch-${s(n)}@hifi-planet.de`,`DTSTAMP:${s(new Date)}`,`DTSTART:${s(n)}`,`DTEND:${s(r)}`,`SUMMARY:${t}`,`URL:${window.location.origin}`,"END:VEVENT","END:VCALENDAR"].join(`\r
`);return`data:text/calendar;charset=utf-8,${encodeURIComponent(i)}`}function sN({text:e}){const t=e.trimEnd().lastIndexOf(" ");return t<0?e:o.jsxs(o.Fragment,{children:[e.slice(0,t+1),o.jsx("span",{style:{color:Me.accent},children:e.slice(t+1)})]})}function iN({countdown:e,clockOffset:t=0,settings:n={},preview:r=!1,onClosePreview:s,onLaunch:i}){const{t:a,language:l,toggleLanguage:u}=ye(),[c,d]=m.useState(()=>uo(e,t)),f=Fo(n).slot("countdown_bg"),h=c<=0;m.useEffect(()=>{const k=()=>d(uo(e,t));k();const E=setInterval(k,250);return()=>clearInterval(E)},[e,t]),m.useEffect(()=>{if(!h||r)return;const k=setTimeout(()=>i==null?void 0:i(),2600);return()=>clearTimeout(k)},[h,r,i]),m.useEffect(()=>{const k=document.title;return document.title=`HifiPlanet – ${a("countdown.eyebrow")}`,()=>{document.title=k}},[a]);const g=nN(c),y=l==="en",b=h?a("countdown.liveTitle"):(y?e.title_en:e.title)||a("countdown.title"),w=h?a("countdown.liveMessage"):(y?e.message_en:e.message)||a("countdown.message"),p=e.launch_at?new Date(e.launch_at):null,x=p?p.toLocaleString(y?"en-GB":"de-DE",{weekday:"long",day:"numeric",month:"long",hour:"2-digit",minute:"2-digit",timeZone:"Europe/Berlin"}):"",v=[[g.days,a("countdown.days")],[g.hours,a("countdown.hours")],[g.minutes,a("countdown.minutes")],[g.seconds,a("countdown.seconds")]];return o.jsxs("div",{className:"flex min-h-[100svh] flex-col bg-[#0a0c06] bg-cover bg-center",style:{backgroundImage:`url(${f.src})`,color:Me.text,fontFamily:"'Barlow', sans-serif"},children:[r&&o.jsxs("div",{className:"flex items-center justify-center gap-3 px-4 py-2 text-xs font-semibold",style:{background:Me.accent,color:"#0f1208"},children:[a("countdown.preview"),o.jsxs("button",{type:"button",onClick:s,className:"inline-flex items-center gap-1 underline",children:[o.jsx(Ei,{className:"h-3.5 w-3.5"}),a("countdown.closePreview")]})]}),o.jsxs("div",{className:"mx-auto flex w-full max-w-[1280px] flex-1 flex-col px-4 pb-6 sm:px-10 sm:pb-10",children:[o.jsxs("header",{className:"flex items-center justify-between gap-4 border-b pb-5 pt-6 sm:pt-8",style:{borderColor:Me.divider},children:[o.jsx("img",{src:n.logo_dark_path||af,alt:"HifiPlanet",className:"h-12 w-auto sm:h-14"}),o.jsxs("div",{className:"flex items-center gap-5",children:[o.jsx("button",{type:"button",onClick:u,"aria-label":a("languageToggle.label"),className:"text-xs font-semibold uppercase tracking-[3px] hover:text-white",style:{color:Me.muted},children:l==="de"?"EN":"DE"}),n.phone&&o.jsxs("a",{href:rs(n.phone),className:"hidden items-center gap-2.5 rounded-full border py-2 pl-2 pr-5 text-sm font-semibold sm:inline-flex",style:{borderColor:Me.pillBorder,background:Me.card},children:[o.jsx("span",{className:"flex h-7 w-7 items-center justify-center rounded-full",style:{background:"rgba(168,225,12,0.1)",color:Me.accent},children:o.jsx(zn,{className:"h-3.5 w-3.5"})}),n.phone]})]})]}),o.jsxs("main",{className:"flex flex-1 flex-col justify-center py-12 sm:py-16",children:[o.jsx("p",{className:"mb-3 text-[13px] font-semibold uppercase tracking-[6px]",style:{color:Me.accent},children:a(h?"countdown.liveEyebrow":"countdown.eyebrow")}),o.jsx("h1",{style:xp,className:"max-w-3xl text-[34px] leading-[1.08] sm:text-[clamp(34px,5vw,60px)]",children:o.jsx(sN,{text:b})}),o.jsx("p",{className:"mb-10 mt-5 max-w-[520px] text-lg leading-[1.55]",style:{color:Me.muted},children:w}),o.jsx("div",{className:"grid w-full max-w-[720px] grid-cols-4 rounded-[14px] border shadow-[0_24px_60px_rgba(0,0,0,0.55)]",style:{background:Me.card,borderColor:Me.cardBorder},children:v.map(([k,E],C)=>o.jsxs("div",{className:`px-2 py-5 text-center sm:px-6 sm:py-7 ${C>0?"border-l":""}`,style:{borderColor:Me.divider},children:[o.jsx("div",{style:xp,className:"text-[22px] tabular-nums leading-none min-[400px]:text-[26px] sm:text-[44px]",children:String(k).padStart(2,"0")}),o.jsx("div",{className:"mt-3 text-[10px] font-semibold uppercase tracking-[2px] sm:text-[11px] sm:tracking-[3px]",style:{color:Me.label},children:E})]},E))}),p&&!h&&o.jsxs("div",{className:"mt-6 flex flex-col gap-3 text-[15px] sm:flex-row sm:items-center sm:gap-8",children:[o.jsxs("p",{style:{color:Me.muted},children:[a("countdown.launchPrefix"),": ",o.jsx("span",{className:"font-semibold",style:{color:Me.text},children:x}),a("countdown.clock")&&` ${a("countdown.clock")}`]}),o.jsxs("a",{href:rN(e.launch_at,a("countdown.calendarTitle")),download:"hifiplanet-launch.ics",className:"text-[13px] font-bold uppercase tracking-[3px] hover:underline",style:{color:Me.accent},children:[a("countdown.addToCalendar")," →"]})]})]}),o.jsxs("footer",{className:"flex flex-wrap gap-x-6 gap-y-2 border-t pt-5 text-[13px]",style:{borderColor:Me.divider,color:Me.label},children:[n.phone&&o.jsx("a",{href:rs(n.phone),className:"hover:text-white sm:hidden",children:n.phone}),n.address_city&&o.jsxs("span",{children:[n.address_street,", ",n.address_zip," ",n.address_city]}),o.jsx(G,{to:"/impressum",className:"hover:text-white",children:"Impressum"}),o.jsx(G,{to:"/datenschutz",className:"hover:text-white",children:y?"Privacy":"Datenschutz"}),o.jsx(G,{to:"/admin/login","aria-label":a("maintenance.login"),title:a("maintenance.login"),className:"hover:text-white",children:o.jsx(rv,{className:"h-3.5 w-3.5"})})]})]})]})}function aN({countdown:e}){const{t,language:n}=ye(),r=new Date(e.launch_at).toLocaleString(n==="en"?"en-GB":"de-DE",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",timeZone:"Europe/Berlin"});return o.jsxs("div",{className:"bg-neutral-900 px-4 py-2 text-center text-xs font-semibold text-neutral-200",children:[t("countdown.adminActive").replace("{date}",r)," ",o.jsx(G,{to:"/?countdown=vorschau",className:"text-brand-300 underline hover:text-brand-200",children:t("countdown.adminPreview")})]})}function oN(){const{consent:e}=yr(),{ga_measurement_id:t}=kt(),n=m.useRef(!1),r=Qe();return m.useEffect(()=>{if(!t||!e.analytics||n.current)return;n.current=!0;const s=document.createElement("script");s.src=`https://www.googletagmanager.com/gtag/js?id=${t}`,s.async=!0,document.head.appendChild(s),window.dataLayer=window.dataLayer||[];function i(){window.dataLayer.push(arguments)}window.gtag=i,i("js",new Date),i("config",t,{anonymize_ip:!0,send_page_view:!1})},[t,e.analytics]),m.useEffect(()=>{!n.current||typeof window.gtag!="function"||window.gtag("consent","update",{analytics_storage:e.analytics?"granted":"denied"})},[e.analytics]),m.useEffect(()=>{!e.analytics||typeof window.gtag!="function"||window.gtag("event","page_view",{page_path:r.pathname+r.search,page_location:window.location.href,page_title:document.title})},[r.pathname,r.search,e.analytics,t]),null}const Pv=m.createContext({global:{enabled:!1,message:null},services:{enabled:!1,message:null},vehicles:{enabled:!1,message:null},bypass:!1}),lN=Pv.Provider;function Oo(){return m.useContext(Pv)}const of=m.createContext({}),uN=of.Provider;function mr(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 qe(e){const t=m.useContext(of);return mr(t,e)}function lf(){return m.useContext(of)}const cN=[{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'}],uf=m.createContext({fonts:[],refresh:()=>{}}),Nv=uf.Provider;function _v(){return m.useContext(uf).fonts}function T4(){return m.useContext(uf).refresh}function P4(){const e=_v();return[...cN,...e.map(t=>({label:t.name,value:t.font_family}))]}function dN(e){const t=/\.([a-z0-9]+)$/i.exec(e||"");return t?t[1].toLowerCase():""}const fN={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype"};function Mv(){const e=_v();if(e.length===0)return null;const t=e.map(n=>{const r=fN[dN(n.file_path)]||"woff2";return`@font-face { font-family: "${n.font_family}"; src: url("${n.file_path}") format("${r}"); font-display: swap; }`}).join(`
`);return o.jsx("style",{children:t})}const hN=150,mN=300,pN=80,gN=5e3;function xN(){return o.jsx("div",{className:"fixed inset-0 z-[200] flex items-center justify-center bg-white dark:bg-neutral-950",children:o.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 yN({enabled:e,children:t}){const n=Qe(),[r,s]=m.useState(!e),[i,a]=m.useState(!1),l=m.useRef(null);return m.useLayoutEffect(()=>{const u=l.current;if(!e||!u){s(!0),a(!1);return}s(!1),a(!1);let c=!1,d=0,f=null;const h=new Set,g=setTimeout(()=>{d=Date.now(),a(!0)},hN),y=()=>{s(!0),a(!1)},b=()=>{c=!0,clearTimeout(g),clearTimeout(f),clearTimeout(C),k.disconnect(),E()},w=()=>{if(c)return;b();const j=d?mN-(Date.now()-d):0;j>0?setTimeout(y,j):y()},p=()=>{clearTimeout(f),f=setTimeout(()=>{h.size===0&&QC()===0&&w()},pN)},x=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),p()};j.addEventListener("load",S),j.addEventListener("error",S)},v=j=>{var S;j.nodeType===1&&(j.tagName==="IMG"&&x(j),(S=j.querySelectorAll)==null||S.call(j,"img").forEach(x))},k=new MutationObserver(j=>{j.forEach(S=>S.addedNodes.forEach(v)),p()});k.observe(u,{childList:!0,subtree:!0});const E=JC(p),C=setTimeout(w,gN);return u.querySelectorAll("img").forEach(x),p(),()=>{c||b()}},[n.pathname,e]),o.jsxs("div",{className:"relative",children:[o.jsx("div",{ref:l,style:e?{visibility:r?"visible":"hidden"}:void 0,children:t}),e&&i&&o.jsx(xN,{})]})}const vN=m.lazy(()=>Y(()=>import("./RichTextEditor-BQVBVwow.js"),[])),wN=m.lazy(()=>Y(()=>import("./ImageUploadField-DJjkYIyq.js"),__vite__mapDeps([0,1]))),cf={de:"Deutsch",en:"Englisch"},bN=["nav.","footer.","cookieConsent.","languageToggle.","themeToggle.","maintenance."],Qi=e=>bN.some(t=>e.startsWith(t));function $l(e,t){return t.split(".").reduce((n,r)=>n==null?void 0:n[r],e)}function kN({editor:e}){const t=Ue(),{entity:n,id:r,field:s,lang:i,kind:a,label:l,hint:u,original:c,aspect:d}=e,[f]=m.useState(()=>({value:c,wasPending:t.hasPending(n,r,s,i)})),[h,g]=m.useState(c),y=w=>{g(w),t.setValue(n,r,s,i,w)},b=()=>{f.wasPending?t.setValue(n,r,s,i,f.value):t.resetValue(n,r,s,i),t.closeEditor()};return o.jsxs("div",{className:"pointer-events-auto w-full rounded-xl border border-neutral-200 bg-white p-4 text-neutral-900 shadow-2xl dark:border-neutral-700 dark:bg-neutral-900 dark:text-neutral-100 sm:w-[min(92vw,520px)]",children:[o.jsxs("div",{className:"mb-2 flex items-center justify-between gap-3",children:[o.jsxs("p",{className:"text-sm font-semibold",children:[l," ",a!=="image"&&o.jsxs("span",{className:"font-normal text-neutral-500",children:["(",cf[i],")"]})]}),o.jsx("button",{type:"button",onClick:b,"aria-label":"Abbrechen",className:"rounded p-1 text-neutral-500 hover:bg-neutral-100 dark:hover:bg-neutral-800",children:o.jsx(Ei,{className:"h-4 w-4"})})]}),u&&o.jsx("p",{className:"mb-2 text-xs text-neutral-500 dark:text-neutral-400",children:u}),a==="image"?o.jsxs(m.Suspense,{fallback:o.jsx("p",{className:"p-3 text-sm text-neutral-500",children:"Lädt…"}),children:[o.jsx(wN,{value:h,onChange:w=>y(w||""),label:"Eigenes Bild",aspect:d}),o.jsx("p",{className:"mt-2 text-xs text-neutral-500 dark:text-neutral-400",children:"Ohne eigenes Bild (× am Vorschaubild) erscheint wieder das Standardbild."})]}):a==="html"?o.jsx("div",{className:"max-h-[45vh] overflow-y-auto rounded-md border border-neutral-300 dark:border-neutral-700",children:o.jsx(m.Suspense,{fallback:o.jsx("p",{className:"p-3 text-sm text-neutral-500",children:"Editor lädt…"}),children:o.jsx(vN,{value:h,onChange:y})})}):a==="input"?o.jsx("input",{autoFocus:!0,value:h,onChange:w=>y(w.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-800"}):o.jsx("textarea",{autoFocus:!0,rows:7,value:h,onChange:w=>y(w.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-800"}),o.jsxs("div",{className:"mt-3 flex justify-end gap-2",children:[o.jsx("button",{type:"button",onClick:b,className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm font-medium hover:bg-neutral-50 dark:border-neutral-700 dark:hover:bg-neutral-800",children:"Abbrechen"}),o.jsx("button",{type:"button",onClick:t.closeEditor,className:"rounded-md bg-brand-500 px-3 py-1.5 text-sm font-semibold text-white hover:bg-brand-600",children:"Übernehmen"})]})]})}function SN({onClose:e}){const t=Ue(),{language:n,t:r}=ye(),s=Qe(),[i,a]=m.useState(""),[l,u]=m.useState(0);m.useEffect(()=>{const h=setTimeout(()=>u(g=>g+1),400);return()=>clearTimeout(h)},[s.pathname]);const c=m.useMemo(()=>t.usedTextKeys(s.pathname).filter(h=>typeof $l(Cn.de,h)=="string").sort((h,g)=>Qi(h)-Qi(g)||h.localeCompare(g)),[s.pathname,l,t.usedTextKeys]),d=i.trim().toLowerCase(),f=c.filter(h=>!d||h.toLowerCase().includes(d)||r(h).toLowerCase().includes(d));return o.jsxs("div",{className:"pointer-events-auto flex max-h-[60vh] w-full flex-col rounded-xl border border-neutral-200 bg-white text-neutral-900 shadow-2xl dark:border-neutral-700 dark:bg-neutral-900 dark:text-neutral-100 sm:w-[min(92vw,520px)]",children:[o.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-neutral-200 p-4 pb-3 dark:border-neutral-800",children:[o.jsxs("div",{children:[o.jsxs("p",{className:"text-sm font-semibold",children:["Feste Texte auf dieser Seite ",o.jsxs("span",{className:"font-normal text-neutral-500",children:["(",cf[n],")"]})]}),o.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:"Buttons, Beschriftungen, Menü und Fußzeile. Leer lassen = Standardtext."})]}),o.jsx("button",{type:"button",onClick:e,"aria-label":"Schließen",className:"rounded p-1 text-neutral-500 hover:bg-neutral-100 dark:hover:bg-neutral-800",children:o.jsx(Ei,{className:"h-4 w-4"})})]}),o.jsx("div",{className:"px-4 pt-3",children:o.jsx("input",{type:"search",value:i,onChange:h=>a(h.target.value),placeholder:"Suchen…",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-1.5 text-sm dark:border-neutral-700 dark:bg-neutral-800"})}),o.jsxs("ul",{className:"flex-1 space-y-3 overflow-y-auto p-4",children:[f.length===0&&o.jsx("li",{className:"text-sm text-neutral-500",children:"Keine Texte gefunden."}),f.map((h,g)=>{const y=$l(Cn[n],h)??$l(Cn.de,h),b=t.textOverride(n,h)!==void 0,w=r(h);return o.jsxs("li",{children:[Qi(h)&&(g===0||!Qi(f[g-1]))&&o.jsx("p",{className:"mb-3 border-t border-neutral-200 pt-3 text-xs font-semibold uppercase tracking-wide text-neutral-500 dark:border-neutral-800",children:"Auf allen Seiten (Menü, Fußzeile, Cookie-Hinweis)"}),o.jsxs("div",{className:"mb-1 flex items-center justify-between gap-2",children:[o.jsx("label",{htmlFor:`live-text-${h}`,className:"truncate font-mono text-[11px] text-neutral-500",title:h,children:h}),b&&o.jsxs("button",{type:"button",onClick:()=>t.setValue("text",h,"value",n,""),className:"flex shrink-0 items-center gap-1 text-[11px] text-neutral-500 hover:text-brand-600",title:`Standard: ${y}`,children:[o.jsx(eP,{className:"h-3 w-3"})," Standard"]})]}),o.jsx("textarea",{id:`live-text-${h}`,rows:w.length>60?3:1,value:w,onChange:p=>t.setValue("text",h,"value",n,p.target.value===y?"":p.target.value),className:`w-full resize-y rounded-md border bg-white px-2.5 py-1.5 text-sm dark:bg-neutral-800 ${b?"border-amber-400 dark:border-amber-500":"border-neutral-300 dark:border-neutral-700"}`})]},h)})]})]})}function jN(){const e=Ue(),{language:t}=ye(),[n,r]=m.useState(!1);if(!e.enabled)return null;const s=()=>{e.pendingCount&&!window.confirm("Es gibt ungespeicherte Änderungen. Bearbeiten trotzdem beenden? Die Änderungen gehen dann verloren.")||(e.discard(),e.setEnabled(!1))},i=e.editor&&`${e.editor.entity}|${e.editor.id}|${e.editor.field}|${e.editor.lang}`;return o.jsxs("div",{className:"pointer-events-none fixed inset-x-0 bottom-0 z-[150] flex flex-col items-end gap-2 p-2 sm:p-4",children:[e.editor?o.jsx(kN,{editor:e.editor},i):n&&o.jsx(SN,{onClose:()=>r(!1)}),o.jsxs("div",{className:"pointer-events-auto flex w-full flex-wrap items-center justify-between gap-2 rounded-xl border border-neutral-700 bg-neutral-950/95 px-3 py-2.5 text-sm text-neutral-100 shadow-2xl backdrop-blur sm:px-4",children:[o.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[o.jsx(iv,{className:"h-4 w-4 shrink-0 text-brand-400"}),o.jsxs("p",{className:"min-w-0 truncate",children:[o.jsx("span",{className:"font-semibold",children:"Bearbeiten"}),o.jsxs("span",{className:"hidden text-neutral-400 sm:inline",children:[" · ",cf[t]," · gestrichelte Stellen anklicken"]})]})]}),o.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.error&&o.jsx("span",{className:"max-w-xs text-xs text-red-400",children:e.error}),o.jsxs("button",{type:"button",onClick:()=>{e.closeEditor(),r(a=>!a)},className:`flex items-center gap-1.5 rounded-md border px-3 py-1.5 font-medium ${n?"border-brand-400 text-brand-300":"border-neutral-700 hover:bg-neutral-800"}`,children:[o.jsx(zT,{className:"h-4 w-4"}),o.jsx("span",{className:"hidden sm:inline",children:"Feste Texte"})]}),e.pendingCount>0&&o.jsx("button",{type:"button",onClick:e.discard,className:"rounded-md border border-neutral-700 px-3 py-1.5 font-medium hover:bg-neutral-800",children:"Verwerfen"}),o.jsxs("button",{type:"button",onClick:e.save,disabled:!e.pendingCount||e.saving,className:"flex items-center gap-1.5 rounded-md bg-brand-500 px-3 py-1.5 font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:[o.jsx(tv,{className:"h-4 w-4"}),e.saving?"Speichere…":e.pendingCount?`Speichern (${e.pendingCount})`:"Gespeichert"]}),o.jsx("button",{type:"button",onClick:s,"aria-label":"Bearbeiten beenden",title:"Bearbeiten beenden",className:"rounded-md p-1.5 text-neutral-400 hover:bg-neutral-800 hover:text-white",children:o.jsx(Ei,{className:"h-4 w-4"})})]})]})]})}const Lv=[{title:"Seiten",hint:"Ausgeblendete Seiten verschwinden aus dem Menü und leiten Besucher auf die Startseite um.",areas:[{key:"page.vehicles",label:"Fahrzeuge & Pakete",path:"/fahrzeuge"},{key:"page.services",label:"Leistungen",path:"/leistungen"},{key:"page.gallery",label:"Galerie",path:"/galerie"},{key:"page.downloads",label:"Downloads",path:"/downloads",note:"Erscheint ohnehin nur, wenn Downloads hinterlegt sind."}]},{title:"Startseite",hint:"Einzelne Abschnitte der Startseite. Das große Titelbild oben bleibt immer sichtbar.",areas:[{key:"home.stats",label:"Zahlen-Leiste"},{key:"home.partners",label:"Marken / Partner-Logos"},{key:"home.youtube",label:"Video-Abschnitt"},{key:"home.craft",label:"Handwerk & Beratung"},{key:"home.insights",label:"Einblicke (Bilder)"},{key:"home.reviews",label:"Kundenbewertungen"},{key:"home.more",label:'„Mehr als Car-Hifi"'},{key:"home.faq",label:"Häufige Fragen (FAQ)"}]}],EN=Lv[0].areas;function CN(e){if(!e)return null;const t=EN.find(n=>e===n.path||e.startsWith(`${n.path}/`));return t?t.key:null}function Av(e,t=[]){const n=CN(e);return!!n&&t.includes(n)}const TN=Lv.flatMap(e=>e.areas),PN={global:{enabled:!1,message:null},services:{enabled:!1,message:null},vehicles:{enabled:!1,message:null}},NN={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}},Hl={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:NN,hero_image_path:null,ga_measurement_id:null,package_card_theme:"graphite",package_card_layout:"strip",package_wheel_hint_interval:8,package_card_width:210,package_card_height:480,vehicle_tile_width:240,vehicle_tile_height:180,gallery_card_text_x:0,gallery_card_text_y:100,site_font:null,page_loader_enabled:1,has_downloads:!1,hidden_areas:[],price_note:null,price_note_en:null},_N=["/impressum","/datenschutz","/agb"],yp="hifi-site-settings",vp="hifi-maintenance";function wp(e){try{const t=localStorage.getItem(e);return t?JSON.parse(t):null}catch{return null}}function bp(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch{}}const MN={mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday",sun:"Sunday"};function LN(e){var n,r,s;const t=document.getElementById("ld-business");if(t)try{const i=JSON.parse(t.textContent),a=(e.phone||"").replace(/[^\d+]/g,"");a&&(i.telephone=a.startsWith("+")?a:`+49${a.replace(/^0/,"")}`),e.contact_email&&(i.email=e.contact_email),i.address={"@type":"PostalAddress",streetAddress:e.address_street||((n=i.address)==null?void 0:n.streetAddress),postalCode:e.address_zip||((r=i.address)==null?void 0:r.postalCode),addressLocality:e.address_city||((s=i.address)==null?void 0:s.addressLocality),addressCountry:"DE"};const l=e.business_hours;l&&typeof l=="object"&&(i.openingHoursSpecification=Object.entries(MN).filter(([u])=>l[u]&&!l[u].closed&&l[u].open&&l[u].close).map(([u,c])=>({"@type":"OpeningHoursSpecification",dayOfWeek:c,opens:l[u].open,closes:l[u].close}))),t.textContent=JSON.stringify(i)}catch{}}function AN(){var N;const[e]=m.useState(()=>wp(yp)),[t,n]=m.useState(()=>wp(vp)),[r,s]=m.useState(()=>e?{...Hl,...e}:Hl),[i,a]=m.useState(!!e),[l,u]=m.useState({}),[c,d]=m.useState([]),{loading:f,hasPermission:h,user:g}=Wn(),y=Qe(),b=xr(),[w,p]=m.useState(!1),[x]=m.useState(()=>new Date(Date.now()+(7*24+3)*3600*1e3+42*60*1e3).toISOString());m.useEffect(()=>{oe.get("/maintenance").then(P=>{const V={...P,_received_at:Date.now()};n(V),bp(vp,V)}).catch(()=>n(P=>P||PN)),oe.get("/site-settings").then(P=>{s({...Hl,...P}),bp(yp,P)}).catch(()=>{}).finally(()=>a(!0)),oe.get("/text-styles").then(u).catch(()=>{}),oe.get("/custom-fonts").then(d).catch(()=>{})},[]),m.useEffect(()=>{r.site_font?document.documentElement.style.setProperty("--site-font",r.site_font):document.documentElement.style.removeProperty("--site-font")},[r.site_font]),m.useEffect(()=>{i&&LN(r)},[r,i]);const v=t==null?void 0:t.countdown,k=tN(v,t==null?void 0:t._received_at),E=!!(v!=null&&v.active)&&!w&&uo(v,k)>0;if(t===null||!i||((N=t.global)!=null&&N.enabled||E)&&f)return o.jsx("div",{className:"min-h-screen bg-white dark:bg-neutral-950"});const C=h("maintenance.bypass"),j=_N.includes(y.pathname),S=!!g&&new URLSearchParams(y.search).get("countdown")==="vorschau";if(!j&&(E&&!g||S)){const P=S&&!(v!=null&&v.launch_at&&uo(v,k)>0)?{...v,launch_at:x}:v;return o.jsx(Fl,{serverOverrides:r.text_overrides,children:o.jsx(Ol,{children:o.jsx(iN,{countdown:P,clockOffset:P===v?k:0,settings:r,preview:S,onClosePreview:()=>b("/",{replace:!0}),onLaunch:()=>p(!0)})})})}return t.global.enabled&&!C&&!j?o.jsx(Fl,{serverOverrides:r.text_overrides,children:o.jsx(Ol,{children:o.jsx(Ci,{message:t.global.message,fullScreen:!0})})}):o.jsx(Fl,{serverOverrides:r.text_overrides,children:o.jsx(Ol,{children:o.jsx(lN,{value:{...t,bypass:C},children:o.jsx(TP,{value:r,children:o.jsx(uN,{value:l,children:o.jsx(Nv,{value:{fonts:c,refresh:()=>{}},children:o.jsxs("div",{className:"page-texture flex min-h-screen flex-col text-neutral-900 dark:text-neutral-100",children:[o.jsx(Mv,{}),C&&t.global.enabled&&o.jsx(Ti,{}),!!g&&E&&o.jsx(aN,{countdown:v}),o.jsx(BP,{}),o.jsx(AP,{}),o.jsx("main",{className:"flex-1",children:o.jsx(yN,{enabled:y.pathname!=="/"&&!!r.page_loader_enabled,children:Av(y.pathname,r.hidden_areas)?o.jsx(fr,{to:"/",replace:!0}):o.jsx(m.Suspense,{fallback:o.jsx("div",{className:"min-h-[60vh]"}),children:o.jsx(Sd,{})})})}),o.jsx(zP,{}),o.jsx(GP,{}),o.jsx(UP,{}),o.jsx(oN,{}),o.jsx(jN,{})]})})})})})})})}const zo=m.createContext({toast:{success:()=>{},error:()=>{},info:()=>{}},setDirty:()=>{},confirmLeave:()=>!0,refreshCounters:()=>{}});let DN=0;function RN({children:e,onRefreshCounters:t}){const[n,r]=m.useState([]),s=m.useRef(new Set),i=m.useCallback(f=>r(h=>h.filter(g=>g.id!==f)),[]),a=m.useCallback((f,h,g={})=>{const y=++DN;return r(b=>[...b.slice(-3),{id:y,type:f,message:h,action:g.action}]),setTimeout(()=>i(y),g.duration||(f==="error"?7e3:3500)),y},[i]),l=m.useMemo(()=>({success:(f,h)=>a("success",f,h),error:(f,h)=>a("error",f,h),info:(f,h)=>a("info",f,h)}),[a]),u=m.useCallback((f,h)=>{h?s.current.add(f):s.current.delete(f)},[]),c=m.useCallback(()=>{if(s.current.size===0)return!0;const f=window.confirm("Du hast ungespeicherte Änderungen. Seite trotzdem verlassen? Die Änderungen gehen dann verloren.");return f&&s.current.clear(),f},[]);m.useEffect(()=>{const f=g=>{s.current.size!==0&&(g.preventDefault(),g.returnValue="")},h=g=>{var w,p;if(s.current.size===0||g.defaultPrevented||g.button!==0)return;const y=(p=(w=g.target).closest)==null?void 0:p.call(w,"a[href]");if(!y||y.target==="_blank"||g.metaKey||g.ctrlKey||g.shiftKey)return;const b=new URL(y.href,window.location.href);b.origin!==window.location.origin||b.pathname===window.location.pathname||c()||(g.preventDefault(),g.stopPropagation())};return window.addEventListener("beforeunload",f),document.addEventListener("click",h,!0),()=>{window.removeEventListener("beforeunload",f),document.removeEventListener("click",h,!0)}},[c]);const d=m.useMemo(()=>({toast:l,setDirty:u,confirmLeave:c,refreshCounters:t||(()=>{})}),[l,u,c,t]);return o.jsxs(zo.Provider,{value:d,children:[e,o.jsx("div",{className:"pointer-events-none fixed bottom-4 right-4 z-[300] flex w-[min(92vw,380px)] flex-col gap-2","aria-live":"polite",children:n.map(f=>o.jsxs("div",{role:f.type==="error"?"alert":"status",className:`pointer-events-auto flex items-start justify-between gap-3 rounded-lg border px-4 py-3 text-sm shadow-lg ${f.type==="error"?"border-red-200 bg-red-50 text-red-800 dark:border-red-900 dark:bg-red-950 dark:text-red-200":f.type==="success"?"border-green-200 bg-green-50 text-green-800 dark:border-green-900 dark:bg-green-950 dark:text-green-200":"border-neutral-200 bg-white text-neutral-800 dark:border-neutral-700 dark:bg-neutral-900 dark:text-neutral-100"}`,children:[o.jsxs("span",{children:[f.type==="success"?"✓ ":"",f.message]}),o.jsxs("span",{className:"flex shrink-0 items-center gap-3",children:[f.action&&o.jsx("button",{type:"button",onClick:()=>{f.action.onClick(),i(f.id)},className:"font-semibold underline",children:f.action.label}),o.jsx("button",{type:"button",onClick:()=>i(f.id),"aria-label":"Meldung schließen",className:"opacity-60 hover:opacity-100",children:"✕"})]})]},f.id))})]})}function N4(){return m.useContext(zo)}function _4(){return m.useContext(zo).toast}function M4(e,t="page"){const{setDirty:n}=m.useContext(zo);m.useEffect(()=>{n(t,!!e)},[e,t,n]),m.useEffect(()=>()=>n(t,!1),[t,n])}const IN=5*60*1e3,VN=30*60*1e3;function FN(){const{user:e,login:t,verifyTwoFactor:n}=Wn(),[r,s]=m.useState(!1),[i,a]=m.useState("credentials"),[l,u]=m.useState((e==null?void 0:e.username)||""),[c,d]=m.useState(""),[f,h]=m.useState(""),[g,y]=m.useState(""),[b,w]=m.useState(""),[p,x]=m.useState(!1),v=m.useRef(Date.now()),k=m.useRef(null);if(Pi(k,r,()=>{}),m.useEffect(()=>eT(()=>s(!0)),[]),m.useEffect(()=>{const N=()=>{v.current=Date.now()},P=["keydown","pointerdown","scroll"];P.forEach(B=>window.addEventListener(B,N,{passive:!0}));const V=setInterval(()=>{document.hidden||Date.now()-v.current>VN||oe.get("/auth/me").then(B=>{(B==null?void 0:B.authenticated)===!1&&s(!0)}).catch(()=>{})},IN);return()=>{P.forEach(B=>window.removeEventListener(B,N)),clearInterval(V)}},[]),!r)return null;const E=()=>{s(!1),a("credentials"),d(""),h(""),w("")},C=async N=>{N.preventDefault(),x(!0),w("");try{const P=await t(l,c);P.requires2fa?(y(P.method==="email"?`6-stelliger Code aus der Mail an ${P.emailHint}`:"6-stelliger Code aus der App"),a("code")):E()}catch(P){w(P.message)}finally{x(!1)}},j=async N=>{N.preventDefault(),x(!0),w("");try{await n(f),E()}catch(P){w(P.message)}finally{x(!1)}},S="w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm focus:border-brand-500 focus:outline-none dark:border-neutral-700 dark:bg-neutral-900";return o.jsx("div",{className:"fixed inset-0 z-[400] flex items-center justify-center bg-black/50 p-4",children:o.jsxs("div",{ref:k,role:"dialog","aria-modal":"true","aria-labelledby":"session-expired-title",className:"w-full max-w-sm rounded-xl bg-white p-6 shadow-xl dark:bg-neutral-900",children:[o.jsx("h2",{id:"session-expired-title",className:"mb-1 text-lg font-bold text-neutral-900 dark:text-white",children:"Bitte erneut anmelden"}),o.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Deine Sitzung ist abgelaufen. Deine Eingaben auf dieser Seite bleiben erhalten – nach dem Anmelden einfach noch einmal speichern."}),i==="credentials"?o.jsxs("form",{onSubmit:C,className:"space-y-3",children:[o.jsx("input",{value:l,onChange:N=>u(N.target.value),required:!0,placeholder:"Benutzername oder E-Mail",autoComplete:"username",className:S}),o.jsx("input",{type:"password",value:c,onChange:N=>d(N.target.value),required:!0,placeholder:"Passwort",autoComplete:"current-password",className:S}),b&&o.jsx("p",{className:"text-sm text-red-600",children:b}),o.jsx("button",{type:"submit",disabled:p,className:"w-full rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:p?"Melde an…":"Anmelden"})]}):o.jsxs("form",{onSubmit:j,className:"space-y-3",children:[o.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-300",children:g}),o.jsx("input",{value:f,onChange:N=>h(N.target.value),required:!0,inputMode:"numeric",autoComplete:"one-time-code",placeholder:"123456",className:S}),b&&o.jsx("p",{className:"text-sm text-red-600",children:b}),o.jsx("button",{type:"submit",disabled:p,className:"w-full rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:p?"Prüfe…":"Bestätigen"})]})]})})}const _e=(...e)=>e.filter(Boolean).join(" "),Bo="focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-500/60 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:focus-visible:ring-offset-neutral-950",ON={primary:"bg-brand-500 text-white shadow-sm hover:bg-brand-600 active:bg-brand-700",secondary:"border border-neutral-300 bg-white text-neutral-700 shadow-sm hover:bg-neutral-50 hover:border-neutral-400 dark:border-neutral-700 dark:bg-neutral-900 dark:text-neutral-200 dark:hover:bg-neutral-800",danger:"bg-red-600 text-white shadow-sm hover:bg-red-700",ghost:"text-neutral-600 hover:bg-neutral-100 hover:text-neutral-900 dark:text-neutral-300 dark:hover:bg-neutral-800 dark:hover:text-white"},zN={sm:"h-8 gap-1.5 px-3 text-sm",md:"h-10 gap-2 px-4 text-sm"};function kc({variant:e="primary",size:t="md",className:n}={}){return _e("inline-flex shrink-0 items-center justify-center whitespace-nowrap rounded-lg font-semibold transition disabled:cursor-not-allowed disabled:opacity-50",Bo,ON[e],zN[t],n)}function L4({variant:e,size:t,className:n,icon:r,children:s,to:i,href:a,type:l="button",...u}){const c=kc({variant:e,size:t,className:n}),d=o.jsxs(o.Fragment,{children:[r&&o.jsx(Be,{name:r,className:"h-4 w-4"}),s]});return i?o.jsx(G,{to:i,className:c,...u,children:d}):a?o.jsx("a",{href:a,className:c,...u,children:d}):o.jsx("button",{type:l,className:c,...u,children:d})}const BN={default:"text-neutral-500 hover:bg-neutral-100 hover:text-neutral-900 dark:text-neutral-400 dark:hover:bg-neutral-800 dark:hover:text-white",danger:"text-neutral-400 hover:bg-red-50 hover:text-red-600 dark:text-neutral-500 dark:hover:bg-red-950/50 dark:hover:text-red-400"};function $N({icon:e,label:t,tone:n="default",className:r,to:s,href:i,...a}){const l=_e("inline-flex h-8 w-8 items-center justify-center rounded-lg transition",Bo,BN[n],r),u=o.jsx(Be,{name:e,className:"h-[18px] w-[18px]"});return s?o.jsx(G,{to:s,className:l,title:t,"aria-label":t,...a,children:u}):i?o.jsx("a",{href:i,className:l,title:t,"aria-label":t,...a,children:u}):o.jsx("button",{type:"button",className:l,title:t,"aria-label":t,...a,children:u})}const df=_e("block w-full rounded-lg border border-neutral-300 bg-white px-3 text-sm text-neutral-900 shadow-sm transition placeholder:text-neutral-400","focus:border-brand-500 focus:outline-none focus:ring-2 focus:ring-brand-500/25","disabled:cursor-not-allowed disabled:bg-neutral-50 disabled:text-neutral-500","dark:border-neutral-700 dark:bg-neutral-900 dark:text-neutral-100 dark:placeholder:text-neutral-500 dark:disabled:bg-neutral-800"),A4=m.forwardRef(function({className:t,...n},r){return o.jsx("input",{ref:r,className:_e(df,"h-10",t),...n})}),D4=m.forwardRef(function({className:t,rows:n=4,...r},s){return o.jsx("textarea",{ref:s,rows:n,className:_e(df,"py-2",t),...r})}),R4=m.forwardRef(function({className:t,children:n,...r},s){return o.jsx("select",{ref:s,className:_e(df,"h-10 pr-8",t),...r,children:n})});function I4({label:e,hint:t,error:n,required:r,children:s,className:i}){const a=m.useId(),l=typeof s=="function"?s(a):s;return o.jsxs("div",{className:i,children:[e&&o.jsxs("label",{htmlFor:a,className:"mb-1.5 block text-sm font-medium text-neutral-800 dark:text-neutral-200",children:[e,r&&o.jsx("span",{className:"ml-0.5 text-brand-600 dark:text-brand-400",children:"*"})]}),m.isValidElement(l)&&!l.props.id?m.cloneElement(l,{id:a}):l,n?o.jsx("p",{className:"mt-1.5 text-xs font-medium text-red-600 dark:text-red-400",children:n}):t&&o.jsx("p",{className:"mt-1.5 text-xs text-neutral-500 dark:text-neutral-400",children:t})]})}function V4({checked:e,indeterminate:t=!1,onChange:n,label:r,disabled:s,className:i}){const a=m.useRef(null);return m.useEffect(()=>{a.current&&(a.current.indeterminate=!!t&&!e)},[t,e]),o.jsx("input",{ref:a,type:"checkbox",checked:!!e,disabled:s,"aria-label":r,onChange:l=>n==null?void 0:n(l.target.checked),onClick:l=>l.stopPropagation(),className:_e("h-4 w-4 shrink-0 cursor-pointer accent-brand-500 disabled:cursor-not-allowed disabled:opacity-50",i)})}function F4({checked:e,onChange:t,label:n,description:r,disabled:s,className:i}){const a=m.useId();return o.jsxs("div",{className:_e("flex items-center justify-between gap-4",i),children:[(n||r)&&o.jsxs("label",{htmlFor:a,className:"min-w-0 cursor-pointer",children:[n&&o.jsx("span",{className:"block text-sm font-medium text-neutral-800 dark:text-neutral-100",children:n}),r&&o.jsx("span",{className:"block text-xs text-neutral-500 dark:text-neutral-400",children:r})]}),o.jsx("button",{id:a,type:"button",role:"switch","aria-checked":!!e,disabled:s,onClick:()=>t==null?void 0:t(!e),className:_e("relative inline-flex h-6 w-11 shrink-0 items-center rounded-full transition disabled:opacity-50",Bo,e?"bg-brand-500":"bg-neutral-300 dark:bg-neutral-700"),children:o.jsx("span",{className:_e("inline-block h-5 w-5 rounded-full bg-white shadow transition",e?"translate-x-[22px]":"translate-x-0.5")})})]})}function O4({title:e,description:t,actions:n,children:r,className:s,padded:i=!0}){return o.jsxs("section",{className:_e("rounded-xl border border-neutral-200/80 bg-white shadow-sm shadow-neutral-900/[0.03] dark:border-neutral-800 dark:bg-neutral-900 dark:shadow-none",i&&"p-5 sm:p-6",s),children:[(e||n)&&o.jsxs("div",{className:_e("flex flex-wrap items-start justify-between gap-3",(t||r)&&"mb-4"),children:[o.jsxs("div",{className:"min-w-0",children:[e&&o.jsx("h2",{className:"text-base font-semibold text-neutral-900 dark:text-white",children:e}),t&&o.jsx("p",{className:"mt-0.5 text-sm text-neutral-500 dark:text-neutral-400",children:t})]}),n&&o.jsx("div",{className:"flex shrink-0 flex-wrap gap-2",children:n})]}),r]})}function z4({title:e,description:t,actions:n,className:r}){return o.jsxs("div",{className:_e("mb-6 flex flex-wrap items-end justify-between gap-4",r),children:[o.jsxs("div",{className:"min-w-0",children:[o.jsx("h1",{className:"text-2xl font-bold tracking-tight text-neutral-900 dark:text-white",children:e}),t&&o.jsx("p",{className:"mt-1 max-w-2xl text-sm text-neutral-500 dark:text-neutral-400",children:t})]}),n&&o.jsx("div",{className:"flex flex-wrap items-center gap-2",children:n})]})}const HN={neutral:"bg-neutral-100 text-neutral-700 dark:bg-neutral-800 dark:text-neutral-300",brand:"bg-brand-100 text-brand-800 dark:bg-brand-900/50 dark:text-brand-300",amber:"bg-amber-100 text-amber-800 dark:bg-amber-900/40 dark:text-amber-300",red:"bg-red-500 text-white"};function B4({tone:e="neutral",children:t,className:n}){return o.jsx("span",{className:_e("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-semibold",HN[e],n),children:t})}function $4({icon:e="inbox",title:t,description:n,actions:r}){return o.jsxs("div",{className:"flex flex-col items-center px-6 py-12 text-center",children:[o.jsx("span",{className:"mb-3 flex h-12 w-12 items-center justify-center rounded-full bg-brand-50 text-brand-600 dark:bg-brand-900/30 dark:text-brand-400",children:o.jsx(Be,{name:e,className:"h-6 w-6"})}),o.jsx("p",{className:"font-semibold text-neutral-900 dark:text-white",children:t}),n&&o.jsx("p",{className:"mt-1 max-w-sm text-sm text-neutral-500 dark:text-neutral-400",children:n}),r&&o.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-2",children:r})]})}const UN={md:"max-w-md",lg:"max-w-xl",xl:"max-w-3xl"};function H4({open:e,onClose:t,title:n,description:r,headerExtra:s,children:i,footer:a,size:l="md",as:u="div",...c}){const d=m.useRef(null);return Pi(d,e,t),e?o.jsxs("div",{className:"fixed inset-0 z-50",children:[o.jsx("div",{className:"absolute inset-0 bg-neutral-950/40 backdrop-blur-[2px]",onClick:t}),o.jsxs(u,{ref:d,role:"dialog","aria-modal":"true","aria-label":n,className:_e("absolute inset-y-0 right-0 flex w-full flex-col bg-white shadow-2xl dark:bg-neutral-900",UN[l]),...c,children:[o.jsxs("div",{className:"flex items-start justify-between gap-4 border-b border-neutral-200 px-6 py-5 dark:border-neutral-800",children:[o.jsxs("div",{className:"min-w-0",children:[o.jsx("h2",{className:"text-lg font-semibold text-neutral-900 dark:text-white",children:n}),r&&o.jsx("p",{className:"mt-0.5 text-sm text-neutral-500 dark:text-neutral-400",children:r})]}),s&&o.jsx("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:s}),o.jsx($N,{icon:"close",label:"Schließen",onClick:t,className:"-mr-2 -mt-1"})]}),o.jsx("div",{className:"flex-1 space-y-5 overflow-y-auto px-6 py-6",children:i}),a&&o.jsx("div",{className:"flex flex-wrap items-center justify-end gap-2 border-t border-neutral-200 bg-neutral-50 px-6 py-4 dark:border-neutral-800 dark:bg-neutral-900/60",children:a})]})]}):null}function U4({file:e,onChange:t,accept:n,hint:r,current:s,disabled:i}){const a=m.useId(),[l,u]=m.useState(!1),c=f=>!i&&f&&t(f),d=f=>f>=1048576?`${(f/1048576).toFixed(1).replace(".",",")} MB`:`${Math.max(1,Math.round(f/1024))} KB`;return o.jsxs("label",{htmlFor:a,onDragOver:f=>{f.preventDefault(),u(!0)},onDragLeave:()=>u(!1),onDrop:f=>{var h;f.preventDefault(),u(!1),c((h=f.dataTransfer.files)==null?void 0:h[0])},className:_e("flex cursor-pointer flex-col items-center justify-center gap-1.5 rounded-xl border-2 border-dashed px-4 py-6 text-center transition",l?"border-brand-500 bg-brand-50 dark:bg-brand-900/20":"border-neutral-300 hover:border-brand-400 hover:bg-neutral-50 dark:border-neutral-700 dark:hover:bg-neutral-800/50",i&&"pointer-events-none opacity-60"),children:[o.jsx("input",{id:a,type:"file",accept:n,className:"sr-only",disabled:i,onChange:f=>{var h;return c((h=f.target.files)==null?void 0:h[0])}}),o.jsx("span",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-brand-50 text-brand-600 dark:bg-brand-900/30 dark:text-brand-400",children:o.jsx(Be,{name:e?"file":"download",className:_e("h-5 w-5",!e&&"rotate-180")})}),e?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"max-w-full truncate text-sm font-semibold text-neutral-900 dark:text-white",children:e.name}),o.jsxs("span",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:[d(e.size)," · Klicken, um eine andere Datei zu wählen"]})]}):o.jsxs(o.Fragment,{children:[o.jsxs("span",{className:"text-sm font-semibold text-neutral-800 dark:text-neutral-100",children:["Datei hierher ziehen oder ",o.jsx("span",{className:"text-brand-600 dark:text-brand-400",children:"auswählen"})]}),s&&o.jsxs("span",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:["Aktuell: ",s]}),r&&o.jsx("span",{className:"text-xs text-neutral-400",children:r})]})]})}function W4({value:e,onChange:t,options:n,size:r="md",className:s}){return o.jsx("div",{role:"radiogroup",className:_e("inline-flex rounded-lg bg-neutral-100 p-1 dark:bg-neutral-800",s),children:n.map(i=>o.jsx("button",{type:"button",role:"radio","aria-checked":e===i.value,onClick:()=>t(i.value),className:_e("rounded-md font-medium transition",Bo,r==="sm"?"px-2.5 py-1 text-xs":"px-3 py-1.5 text-sm",e===i.value?"bg-white text-neutral-900 shadow-sm dark:bg-neutral-950 dark:text-white":"text-neutral-500 hover:text-neutral-800 dark:text-neutral-400 dark:hover:text-neutral-200"),children:i.label},i.value))})}const WN={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:"M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm-7 9v-1a6 6 0 0 1 12 0v1M16 3.5a4 4 0 0 1 0 7.5M22 20v-1a6 6 0 0 0-4-5.6",user:"M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm-7 8a7 7 0 0 1 14 0",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",key:"M15 7a3 3 0 1 1 0 .01M21 3l-6.5 6.5M8.5 13.5a5 5 0 1 0 2 2L21 5M17 7l2 2",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",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",images:"M7 3h13a1 1 0 0 1 1 1v11M3 7h13a1 1 0 0 1 1 1v12H4a1 1 0 0 1-1-1V7Zm2 11 3.5-4 2.5 3 2-2 3 3",camera:"M4 8h3l2-3h6l2 3h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1Zm8 9a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z",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",transfer:"M7 4v13m0 0-3-3m3 3 3-3M17 20V7m0 0-3 3m3-3 3 3",gauge:"M4 13a8 8 0 1 1 16 0M12 13l3.5-3.5M6 17h12",inbox:"M3 13h5l1.5 2.5h5L16 13h5M5 5h14l2 8v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-5l2-8Z",building:"M4 21V5a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v16M15 9h4a1 1 0 0 1 1 1v11M3 21h18M8 8h3M8 12h3M8 16h3",palette:"M12 3a9 9 0 1 0 0 18c1 0 1.5-.7 1.5-1.5 0-.4-.2-.8-.4-1.1-.3-.3-.4-.7-.4-1.1 0-.8.7-1.5 1.5-1.5H16a5 5 0 0 0 5-5c0-4.4-4-7.8-9-7.8ZM7.5 12h.01M10 7.5h.01M15 7.5h.01",file:"M7 3h7l5 5v12a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm7 0v5h5M9 13h6M9 17h6",server:"M4 4h16v6H4V4Zm0 10h16v6H4v-6Zm3-7h.01M7 17h.01",link:"M10 13a5 5 0 0 0 7.07 0l3-3a5 5 0 0 0-7.07-7.07l-1.5 1.5M14 11a5 5 0 0 0-7.07 0l-3 3a5 5 0 0 0 7.07 7.07l1.5-1.5",globe:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm-9-9h18M12 3c2.5 2.5 3.5 5.5 3.5 9s-1 6.5-3.5 9c-2.5-2.5-3.5-5.5-3.5-9s1-6.5 3.5-9Z",send:"M4 12 20 4l-4 16-4-7-8-1Zm8 1 8-9",refresh:"M20 11a8 8 0 0 0-14.9-3M4 4v4h4m-4 5a8 8 0 0 0 14.9 3M20 20v-4h-4",trash:"M5 7h14M10 11v6m4-6v6M6 7l1 13h10l1-13M9 7V4h6v3",external:"M14 4h6v6m0-6-9 9M19 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h5",pause:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm-2-12v6m4-6v6",timer:"M10 2h4M12 14l3-3M12 22a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z",pencil:"M4 20h4L19 9l-4-4L4 16v4Zm9-13 4 4",eye:"M2.5 12S6 5 12 5s9.5 7 9.5 7-3.5 7-9.5 7-9.5-7-9.5-7Zm9.5 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",plus:"M12 5v14M5 12h14",search:"M11 18a7 7 0 1 0 0-14 7 7 0 0 0 0 14Zm5-2 4 4",chevron:"m9 6 6 6-6 6",menu:"M4 6h16M4 12h16M4 18h16",close:"M6 6l12 12M18 6 6 18",logout:"M15 4h3a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-3M10 8l-4 4 4 4M6 12h10",sun:"M12 16a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm0-13v2m0 14v2M3 12h2m14 0h2M5.6 5.6 7 7m10 10 1.4 1.4M5.6 18.4 7 17M17 7l1.4-1.4",moon:"M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5Z",wand:"M5 19 15 9m2-6v2m0 4v2m-3-5h2m4 0h2M4 20l1-1",template:"M4 4h16v5H4V4Zm0 9h7v7H4v-7Zm11 0h5v7h-5v-7Z",copy:"M8 8h11a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1Zm-4 8V4a1 1 0 0 1 1-1h12",eyeOff:"M3 3l18 18M10.6 5.1A10 10 0 0 1 12 5c6 0 9.5 7 9.5 7a17 17 0 0 1-3 3.9M6.6 6.6A17 17 0 0 0 2.5 12S6 19 12 19a9.6 9.6 0 0 0 4.4-1.1M9.9 9.9a3 3 0 0 0 4.2 4.2",play:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm-2-12.5v7l6-3.5-6-3.5Z",list:"M8 6h12M8 12h12M8 18h12M4 6h.01M4 12h.01M4 18h.01",grip:"M9 6h.01M15 6h.01M9 12h.01M15 12h.01M9 18h.01M15 18h.01",check:"M5 12.5l4.5 4.5L19 7.5",chart:"M4 4v15a1 1 0 0 0 1 1h15M8 15l3.5-4 3 2.5L20 7"};function Be({name:e,className:t="h-5 w-5"}){return o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",className:_e("shrink-0",t),"aria-hidden":"true",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:WN[e]||""})})}const Dv=e=>String(e||"").toLowerCase().replace(/ä/g,"ae").replace(/ö/g,"oe").replace(/ü/g,"ue").replace(/ß/g,"ss").normalize("NFD").replace(/[̀-ͯ]/g,""),kp=(e,t)=>{const n=Dv(`${e.label} ${e.group||""} ${e.keywords||""}`);return t.every(r=>n.includes(r))};function GN({open:e,onClose:t,pages:n}){const r=xr(),{hasPermission:s}=Wn(),i=m.useRef(null),a=m.useRef(null),[l,u]=m.useState(""),[c,d]=m.useState(0),[f,h]=m.useState(null);Pi(i,e,t),m.useEffect(()=>{e&&(u(""),d(0),f===null&&(s("packages.manage")||s("models.manage"))&&oe.get("/models").then(w=>h(w)).catch(()=>h([])))},[e]);const g=m.useMemo(()=>{const w=Dv(l).split(/\s+/).filter(Boolean),p=n.map(v=>({...v,kind:"page"}));if(w.length===0)return p.slice(0,8);const x=(f||[]).map(v=>({key:`model-${v.id}`,kind:"model",icon:"car",label:`${v.brand_name||""} ${v.name}`.trim(),group:s("packages.manage")?"Pakete bearbeiten":"Modelle",to:s("packages.manage")?`/admin/packages?model=${v.id}`:"/admin/models"}));return[...p.filter(v=>kp(v,w)),...x.filter(v=>kp(v,w)).slice(0,8)]},[l,n,f,s]);if(m.useEffect(()=>{d(0)},[l]),m.useEffect(()=>{var w,p;(p=(w=a.current)==null?void 0:w.querySelector('[data-active="true"]'))==null||p.scrollIntoView({block:"nearest"})},[c]),!e)return null;const y=w=>{t(),w.href?window.open(w.href,"_blank","noopener"):r(w.to)},b=w=>{w.key==="ArrowDown"?(w.preventDefault(),d(p=>Math.min(p+1,g.length-1))):w.key==="ArrowUp"?(w.preventDefault(),d(p=>Math.max(p-1,0))):w.key==="Enter"&&g[c]&&(w.preventDefault(),y(g[c]))};return o.jsx("div",{className:"fixed inset-0 z-50 flex items-start justify-center bg-neutral-950/40 px-4 pt-[12vh] backdrop-blur-sm",onMouseDown:t,children:o.jsxs("div",{ref:i,role:"dialog","aria-modal":"true","aria-label":"Schnellsuche",onMouseDown:w=>w.stopPropagation(),className:"w-full max-w-xl overflow-hidden rounded-2xl border border-neutral-200 bg-white shadow-2xl dark:border-neutral-800 dark:bg-neutral-900",children:[o.jsxs("div",{className:"flex items-center gap-3 border-b border-neutral-200 px-4 dark:border-neutral-800",children:[o.jsx(Be,{name:"search",className:"h-5 w-5 text-neutral-400"}),o.jsx("input",{value:l,onChange:w=>u(w.target.value),onKeyDown:b,placeholder:"Seite oder Fahrzeug suchen …",className:"h-14 flex-1 bg-transparent text-base text-neutral-900 placeholder:text-neutral-400 focus:outline-none dark:text-white"}),o.jsx("kbd",{className:"hidden rounded border border-neutral-200 px-1.5 py-0.5 text-[11px] font-medium text-neutral-400 dark:border-neutral-700 sm:block",children:"Esc"})]}),o.jsxs("ul",{ref:a,className:"max-h-[50vh] overflow-y-auto p-2",children:[g.length===0&&o.jsxs("li",{className:"px-3 py-8 text-center text-sm text-neutral-500 dark:text-neutral-400",children:["Nichts gefunden für „",l,"“."]}),g.map((w,p)=>o.jsx("li",{children:o.jsxs("button",{type:"button","data-active":p===c,onMouseMove:()=>d(p),onClick:()=>y(w),className:`flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-left text-sm ${p===c?"bg-brand-50 text-brand-800 dark:bg-brand-900/30 dark:text-brand-200":"text-neutral-700 dark:text-neutral-200"}`,children:[o.jsx(Be,{name:w.icon,className:"h-[18px] w-[18px] opacity-70"}),o.jsx("span",{className:"flex-1 truncate font-medium",children:w.label}),w.group&&o.jsx("span",{className:"shrink-0 text-xs text-neutral-400",children:w.group})]})},w.key||w.to))]}),o.jsxs("div",{className:"flex items-center gap-4 border-t border-neutral-200 px-4 py-2 text-[11px] text-neutral-400 dark:border-neutral-800",children:[o.jsx("span",{children:"↑ ↓ auswählen"}),o.jsx("span",{children:"↵ öffnen"})]})]})})}const KN="/assets/logo-BNfZDkmN.png",Rv="hifi-admin-nav-collapsed",Sp={system:!0};function qN(){try{return{...Sp,...JSON.parse(localStorage.getItem(Rv)||"{}")}}catch{return Sp}}const jp=(e,t)=>t.end?e===t.to:e===t.to||e.startsWith(`${t.to}/`);function YN({user:e,onLogout:t}){const[n,r]=m.useState(!1),s=m.useRef(null),{theme:i,toggleTheme:a}=ov(),l=(e==null?void 0:e.username)||"",u=l.slice(0,2).toUpperCase();m.useEffect(()=>{if(!n)return;const d=h=>{var g;return!((g=s.current)!=null&&g.contains(h.target))&&r(!1)},f=h=>h.key==="Escape"&&r(!1);return document.addEventListener("mousedown",d),document.addEventListener("keydown",f),()=>{document.removeEventListener("mousedown",d),document.removeEventListener("keydown",f)}},[n]);const c="flex w-full items-center gap-3 rounded-lg px-3 py-2 text-left text-sm text-neutral-700 hover:bg-neutral-100 dark:text-neutral-200 dark:hover:bg-neutral-800";return o.jsxs("div",{ref:s,className:"relative",children:[o.jsx("button",{type:"button",onClick:()=>r(d=>!d),"aria-haspopup":"menu","aria-expanded":n,title:`Angemeldet als ${l}`,className:"flex h-9 w-9 items-center justify-center rounded-full bg-brand-500 text-xs font-bold text-white ring-2 ring-white transition hover:bg-brand-600 focus-visible:outline-none focus-visible:ring-brand-500/60 dark:ring-neutral-950",children:u}),n&&o.jsxs("div",{role:"menu",className:"absolute right-0 top-11 z-40 w-60 rounded-xl border border-neutral-200 bg-white p-1.5 shadow-xl dark:border-neutral-800 dark:bg-neutral-900",children:[o.jsxs("div",{className:"px-3 pb-2 pt-1.5",children:[o.jsx("p",{className:"truncate text-sm font-semibold text-neutral-900 dark:text-white",children:l}),o.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:e!=null&&e.is_super_admin?"Super-Admin":"Admin"})]}),o.jsx("div",{className:"my-1 border-t border-neutral-100 dark:border-neutral-800"}),o.jsxs(G,{to:"/admin/account",role:"menuitem",onClick:()=>r(!1),className:c,children:[o.jsx(Be,{name:"user",className:"h-4 w-4"})," Mein Konto"]}),o.jsxs("button",{type:"button",role:"menuitem",onClick:a,className:c,children:[o.jsx(Be,{name:i==="dark"?"sun":"moon",className:"h-4 w-4"}),i==="dark"?"Helles Design":"Dunkles Design"]}),o.jsx("div",{className:"my-1 border-t border-neutral-100 dark:border-neutral-800"}),o.jsxs("button",{type:"button",role:"menuitem",onClick:t,className:`${c} text-red-600 dark:text-red-400`,children:[o.jsx(Be,{name:"logout",className:"h-4 w-4"})," Abmelden"]})]})]})}function XN(){const{logout:e,user:t,hasPermission:n}=Wn(),r=xr(),{pathname:s}=Qe(),[i,a]=m.useState(!1),[l,u]=m.useState(!1),[c,d]=m.useState(qN),[f,h]=m.useState(0),[g,y]=m.useState([]),b=m.useRef(null),[w,p]=m.useState([]),[x,v]=m.useState(!1),[k,E]=m.useState(null);Pi(b,i,()=>a(!1));const C=m.useCallback(()=>{n("contact.manage")&&oe.get("/contact").then(I=>h(I.filter(T=>T.status==="new").length)).catch(()=>{}),oe.get("/site-settings").then(I=>p(I.hidden_areas||[])).catch(()=>{}),oe.get("/maintenance").then(I=>{var T,M;v(!!((T=I==null?void 0:I.global)!=null&&T.enabled)),E((M=I==null?void 0:I.countdown)!=null&&M.active?I.countdown.launch_at:null)}).catch(()=>{})},[t==null?void 0:t.id]);m.useEffect(()=>{C();const I=setInterval(C,2*60*1e3);return()=>clearInterval(I)},[C]),m.useEffect(()=>{const I=T=>{(T.ctrlKey||T.metaKey)&&T.key.toLowerCase()==="k"&&(T.preventDefault(),u(!0))};return document.addEventListener("keydown",I),()=>document.removeEventListener("keydown",I)},[]),m.useEffect(()=>{a(!1)},[s]);const j=TN.filter(I=>w.includes(I.key)).map(I=>I.label),S=()=>oe.get("/custom-fonts").then(y).catch(()=>{});m.useEffect(()=>{S()},[]);const N=m.useMemo(()=>[{id:"main",title:null,links:[{to:"/admin",label:"Übersicht",icon:"gauge",end:!0,keywords:"dashboard start"},{to:"/admin/traffic",label:"Besucher",icon:"chart",permission:"system.admin",keywords:"statistik analytics traffic zugriffe trend"},{to:"/admin/contact-requests",label:"Anfragen",icon:"inbox",permission:"contact.manage",badge:f,keywords:"kontakt kunden nachrichten"}]},{id:"vehicles",title:"Fahrzeuge & Pakete",links:[{to:"/admin/brands",label:"Fahrzeugmarken",icon:"tag",permission:"brands.manage",keywords:"hersteller vorlage"},{to:"/admin/models",label:"Modelle",icon:"car",permission:"models.manage",keywords:"fahrzeuge"},{to:"/admin/packages",label:"Pakete",icon:"box",permission:"packages.manage",keywords:"preise produkte upgrades"}]},{id:"content",title:"Website-Inhalte",links:[{to:"/admin/home-sections",label:"Startseite",icon:"home",permission:"content.manage",keywords:"titelbild texte"},{to:"/admin/services",label:"Leistungen",icon:"briefcase",permission:"services.manage"},{to:"/admin/faqs",label:"FAQ",icon:"help",permission:"content.manage",keywords:"fragen"},{to:"/admin/partners",label:"Partner-Logos",icon:"shield",permission:"content.manage"},{to:"/admin/downloads",label:"Downloads",icon:"download",permission:"downloads.manage",keywords:"dateien pdf"}]},{id:"gallery",title:"Bildergalerie",links:[{to:"/admin/gallery-brands",label:"Galerie-Marken",icon:"images",permission:"gallery.manage"},{to:"/admin/gallery-projects",label:"Projekte & Fotos",icon:"camera",permission:"gallery.manage",keywords:"bilder hochladen"}]},{id:"company",title:"Firma & Aussehen",links:[{to:"/admin/settings/company",label:"Firmendaten",icon:"building",permission:"settings.manage",keywords:"oeffnungszeiten telefon adresse whatsapp email preis hinweis"},{to:"/admin/settings/design",label:"Aussehen",icon:"palette",permission:"settings.manage",keywords:"schrift farben kacheln"},{to:"/admin/settings/images",label:"Bilder",icon:"image",permission:"settings.manage",keywords:"logo favicon hintergrund"},{to:"/admin/settings/legal",label:"Rechtstexte",icon:"file",permission:"settings.manage",keywords:"impressum datenschutz agb"},{to:"/admin/settings/maintenance",label:"Wartungsmodus",icon:"pause",permission:"settings.manage",keywords:"wartung offline"},{to:"/admin/settings/countdown",label:"Launch-Countdown",icon:"timer",permission:"settings.manage",keywords:"start eroeffnung"}]},{id:"system",title:"System (Experten)",links:[{to:"/admin/users",label:"Benutzer",icon:"users",permission:"users.manage",keywords:"mitarbeiter konten"},{to:"/admin/permission-groups",label:"Berechtigungsgruppen",icon:"key",permission:"permission_groups.manage",keywords:"rechte rollen"},{to:"/admin/settings/email",label:"E-Mail-Versand",icon:"send",permission:"system.admin",keywords:"smtp mail"},{to:"/admin/settings/google",label:"Google-Dienste",icon:"globe",permission:"system.admin",keywords:"analytics rezensionen bewertungen"},{to:"/admin/settings/ai-images",label:"KI-Modellbilder",icon:"wand",permission:"system.admin",keywords:"higgsfield ki bilder generieren"},{to:"/admin/settings/connections",label:"Verbindungstest",icon:"link",permission:"system.admin"},{to:"/admin/settings/database",label:"Datenbank",icon:"server",permission:"system.admin"},{to:"/admin/settings/export-import",label:"Export & Import",icon:"transfer",permission:"system.admin",keywords:"sicherung backup"},{to:"/admin/settings/update",label:"Updates",icon:"refresh",permission:"system.update",keywords:"git version"},{to:"/admin/settings/reset",label:"Zurücksetzen",icon:"trash",permission:"system.admin",keywords:"loeschen"}]}].map(I=>({...I,links:I.links.filter(T=>!T.permission||n(T.permission))})).filter(I=>I.links.length>0),[t==null?void 0:t.id,f]),P=m.useMemo(()=>[...N.flatMap(I=>I.links.map(T=>({...T,group:I.title}))),{to:"/admin/account",label:"Mein Konto",icon:"user",keywords:"passwort 2fa profil"}],[N]),V=P.filter(I=>jp(s,I)).sort((I,T)=>T.to.length-I.to.length)[0],B=I=>{d(T=>{const M={...T,[I]:!T[I]};try{localStorage.setItem(Rv,JSON.stringify(M))}catch{}return M})},se=async()=>{await e(),r("/admin/login")},ne=["content.manage","services.manage","packages.manage","gallery.manage","settings.manage"].some(n),q=({isActive:I})=>`group relative flex items-center justify-between gap-2 rounded-lg px-3 py-2 text-sm transition ${I?"bg-brand-50 font-semibold text-brand-800 before:absolute before:inset-y-1.5 before:left-0 before:w-[3px] before:rounded-full before:bg-brand-500 dark:bg-brand-500/10 dark:text-brand-300":"font-medium text-neutral-600 hover:bg-neutral-100 hover:text-neutral-900 dark:text-neutral-400 dark:hover:bg-neutral-800/70 dark:hover:text-neutral-100"}`,W=o.jsxs("div",{className:"flex h-full flex-col",children:[o.jsxs("div",{className:"flex items-center gap-2 px-5 pb-4 pt-5",children:[o.jsxs(G,{to:"/admin",className:"rounded-lg",children:[o.jsx("img",{src:KN,alt:"HifiPlanet",className:"h-7 w-auto dark:hidden"}),o.jsx("img",{src:af,alt:"HifiPlanet",className:"hidden h-7 w-auto dark:block"})]}),o.jsx("span",{className:"rounded-md bg-neutral-100 px-1.5 py-0.5 text-[11px] font-semibold uppercase tracking-wide text-neutral-500 dark:bg-neutral-800 dark:text-neutral-400",children:"Admin"})]}),o.jsx("div",{className:"px-3 pb-3",children:o.jsxs("button",{type:"button",onClick:()=>u(!0),className:"flex h-9 w-full items-center gap-2 rounded-lg border border-neutral-200 bg-white px-3 text-sm text-neutral-400 shadow-sm transition hover:border-neutral-300 hover:text-neutral-600 dark:border-neutral-800 dark:bg-neutral-900 dark:hover:border-neutral-700 dark:hover:text-neutral-300",children:[o.jsx(Be,{name:"search",className:"h-4 w-4"}),o.jsx("span",{className:"flex-1 text-left",children:"Suchen …"}),o.jsx("kbd",{className:"hidden rounded border border-neutral-200 px-1 text-[10px] font-medium dark:border-neutral-700 lg:block",children:"Strg K"})]})}),o.jsx("nav",{className:"flex-1 space-y-4 overflow-y-auto px-3 pb-6",children:N.map(I=>{const T=I.links.some(D=>jp(s,D)),M=I.title&&c[I.id]&&!T,L=I.links.reduce((D,H)=>D+(H.badge||0),0);return o.jsxs("div",{children:[I.title&&o.jsxs("button",{type:"button",onClick:()=>B(I.id),"aria-expanded":!M,className:"mb-1 flex w-full items-center justify-between rounded-md px-3 py-1 text-[11px] font-semibold uppercase tracking-wider text-neutral-400 hover:text-neutral-600 dark:text-neutral-500 dark:hover:text-neutral-300",children:[o.jsx("span",{children:I.title}),o.jsxs("span",{className:"flex items-center gap-1.5",children:[M&&L>0&&o.jsx("span",{className:"h-2 w-2 rounded-full bg-red-500"}),o.jsx(Be,{name:"chevron",className:`h-3.5 w-3.5 transition-transform ${M?"":"rotate-90"}`})]})]}),!M&&o.jsx("div",{className:"space-y-0.5",children:I.links.map(D=>o.jsxs(gk,{to:D.to,end:D.end,className:q,children:[o.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[o.jsx(Be,{name:D.icon,className:"h-[18px] w-[18px] opacity-80"}),o.jsx("span",{className:"truncate",children:D.label})]}),!!D.badge&&o.jsx("span",{className:"min-w-[20px] rounded-full bg-red-500 px-1.5 py-0.5 text-center text-[11px] font-bold leading-none text-white",children:D.badge})]},D.to))})]},I.id)})})]});return o.jsxs(RN,{onRefreshCounters:C,children:[o.jsx(FN,{}),o.jsxs(Nv,{value:{fonts:g,refresh:S},children:[o.jsxs("div",{className:"flex min-h-screen bg-neutral-100/60 text-neutral-900 dark:bg-neutral-950 dark:text-neutral-100",children:[o.jsx(Mv,{}),o.jsx("aside",{className:"sticky top-0 hidden h-screen w-64 shrink-0 border-r border-neutral-200 bg-white dark:border-neutral-800 dark:bg-neutral-900/40 lg:block",children:W}),i&&o.jsxs("div",{className:"fixed inset-0 z-40 lg:hidden",children:[o.jsx("div",{className:"absolute inset-0 bg-neutral-950/50 backdrop-blur-sm",onClick:()=>a(!1)}),o.jsxs("div",{ref:b,role:"dialog","aria-modal":"true","aria-label":"Menü",className:"absolute inset-y-0 left-0 w-72 max-w-[85vw] bg-white shadow-2xl dark:bg-neutral-900",children:[o.jsx("button",{type:"button",onClick:()=>a(!1),"aria-label":"Menü schließen",className:"absolute right-3 top-4 rounded-lg p-1.5 text-neutral-500 hover:bg-neutral-100 dark:hover:bg-neutral-800",children:o.jsx(Be,{name:"close",className:"h-5 w-5"})}),W]})]}),o.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[o.jsx("header",{className:"sticky top-0 z-30 border-b border-neutral-200 bg-white/85 backdrop-blur dark:border-neutral-800 dark:bg-neutral-950/85",children:o.jsxs("div",{className:"flex h-16 items-center gap-3 px-4 sm:px-6",children:[o.jsx("button",{type:"button",onClick:()=>a(!0),"aria-label":"Menü öffnen",className:"-ml-1 rounded-lg p-2 text-neutral-600 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800 lg:hidden",children:o.jsx(Be,{name:"menu",className:"h-6 w-6"})}),o.jsxs("div",{className:"min-w-0 flex-1",children:[(V==null?void 0:V.group)&&o.jsx("p",{className:"hidden truncate text-xs font-medium text-neutral-400 sm:block",children:V.group}),o.jsx("p",{className:"truncate text-sm font-semibold text-neutral-900 dark:text-white",children:(V==null?void 0:V.label)||"Admin"})]}),o.jsx("button",{type:"button",onClick:()=>u(!0),"aria-label":"Suchen",className:"rounded-lg p-2 text-neutral-600 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800 lg:hidden",children:o.jsx(Be,{name:"search",className:"h-5 w-5"})}),ne&&o.jsxs("a",{href:"/?bearbeiten=1",target:"_blank",rel:"noopener noreferrer",className:kc({variant:"secondary",size:"sm",className:"hidden sm:inline-flex"}),children:[o.jsx(Be,{name:"pencil",className:"h-4 w-4"}),"Live bearbeiten"]}),o.jsxs("a",{href:"/",target:"_blank",rel:"noopener noreferrer",title:"Website in neuem Tab öffnen",className:kc({variant:"secondary",size:"sm",className:"px-2 sm:px-3"}),children:[o.jsx(Be,{name:"external",className:"h-4 w-4"}),o.jsx("span",{className:"hidden sm:inline",children:"Website"})]}),o.jsx(YN,{user:t,onLogout:se})]})}),(x||k||j.length>0)&&o.jsxs("div",{className:"border-b border-amber-200 bg-amber-50 px-4 py-2 text-sm text-amber-900 dark:border-amber-900 dark:bg-amber-950 dark:text-amber-200 sm:px-6",children:[x&&o.jsxs("p",{children:[o.jsx("strong",{children:"Wartungsmodus ist aktiv"})," – Besucher sehen gerade nur die Wartungsseite."," ",n("settings.manage")&&o.jsx(G,{to:"/admin/settings/maintenance",className:"underline",children:"Ändern"})]}),k&&o.jsxs("p",{children:[o.jsx("strong",{children:"Launch-Countdown läuft"})," – Besucher sehen bis"," ",new Date(k).toLocaleString("de-DE",{dateStyle:"medium",timeStyle:"short",timeZone:"Europe/Berlin"})," Uhr nur den Countdown."," ",n("settings.manage")&&o.jsx(G,{to:"/admin/settings/countdown",className:"underline",children:"Ändern"})]}),j.length>0&&o.jsxs("p",{children:[o.jsx("strong",{children:"Ausgeblendet für Besucher:"})," ",j.join(", "),"."," ",o.jsx(G,{to:"/admin",className:"underline",children:"Auf der Übersicht ändern"})]})]}),o.jsx("main",{className:"mx-auto w-full max-w-7xl flex-1 p-4 sm:p-6 lg:p-8",children:o.jsx(m.Suspense,{fallback:o.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}),children:o.jsx(Sd,{})})})]})]}),o.jsx(GN,{open:l,onClose:()=>u(!1),pages:P})]})]})}function ZN(){const{user:e,loading:t}=Wn();return t?o.jsx("div",{className:"flex min-h-screen items-center justify-center text-neutral-500",children:"Lädt…"}):e?o.jsx(Sd,{}):o.jsx(fr,{to:"/admin/login",replace:!0})}function ue({permission:e,children:t}){const{hasPermission:n}=Wn();return(Array.isArray(e)?e:[e]).some(i=>n(i))?t:o.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-8 text-center dark:border-neutral-800 dark:bg-neutral-900",children:[o.jsx("h1",{className:"mb-2 text-lg font-bold text-neutral-900 dark:text-white",children:"Keine Berechtigung"}),o.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 ka(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 QN(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}`),ka("og:url",`https://hifi-planet.de${e}`,"property")}function Ep(e){let t=document.head.querySelector('meta[name="robots"]');if(!e){t==null||t.remove();return}t||(t=document.createElement("meta"),t.setAttribute("name","robots"),document.head.appendChild(t)),t.setAttribute("content","noindex")}function vr({title:e,description:t,path:n,noindex:r=!1}){m.useEffect(()=>(Ep(r),()=>Ep(!1)),[r]),m.useEffect(()=>{e&&(document.title=`${e} | HifiPlanet`,ka("og:title",`${e} | HifiPlanet`,"property")),t&&(ka("description",t),ka("og:description",t,"property")),n&&QN(n)},[e,t,n])}const JN=[.16,1,.3,1],Cp={up:{y:40},left:{x:-56},right:{x:56}};function e5(e){return{hidden:{opacity:0,scale:.96,filter:"blur(8px)",...Cp[e]||Cp.up},visible:{opacity:1,scale:1,x:0,y:0,filter:"blur(0px)"}}}const t5={hidden:{x:"-130%"},visible:{x:"230%",transition:{duration:1.1,ease:"easeInOut",delay:.4}}};function Ke({children:e,direction:t="up",className:n="",index:r=0,shine:s=!1,style:i}){const a=Math.min(r*.09,.45);return o.jsxs(an.div,{className:n,style:{position:"relative",overflow:"hidden",...i},initial:"hidden",whileInView:"visible",viewport:{once:!0,amount:.25,margin:"-100px"},variants:e5(t),transition:{duration:.75,ease:JN,delay:a},children:[e,s&&o.jsx(an.div,{"aria-hidden":!0,variants:t5,className:"pointer-events-none absolute inset-y-0 -left-1/3 w-1/3 rotate-12 bg-gradient-to-r from-transparent via-white/40 to-transparent"})]})}const $o=e=>{e.preventDefault(),e.stopPropagation()};function n5(e){e.preventDefault();const t=e.clipboardData.getData("text/plain");document.execCommand("insertText",!1,t)}function fe({entity:e,id:t,field:n,lang:r,value:s,as:i="span",multiline:a=!1,placeholder:l="Text eingeben…",className:u="",...c}){const{language:d}=ye(),f=Ue(),h=r||d,g=f.getValue(e,t,n,h,s??"")??"";if(!f.canEdit(e))return o.jsx(i,{className:u,...c,children:g});const y=b=>{const w=a?b.innerText.replace(/\n{3,}/g,`
`).trim():b.innerText.replace(/\s+/g," ").trim();w!==g.trim()&&f.setValue(e,t,n,h,w),b.innerText!==w&&(b.innerText=w)};return o.jsx(i,{...c,className:`${u} live-editable${f.hasPending(e,t,n,h)?" live-editable-changed":""}`,contentEditable:!0,suppressContentEditableWarning:!0,spellCheck:!0,"data-live-placeholder":l,onClick:$o,onPaste:n5,onKeyDown:b=>{b.key==="Enter"&&!a?(b.preventDefault(),b.currentTarget.blur()):b.key==="Escape"&&(b.currentTarget.innerText=g,b.currentTarget.blur()),b.stopPropagation()},onKeyUp:b=>b.stopPropagation(),onBlur:b=>y(b.currentTarget),children:g},`${h}:${g}`)}function Ye({k:e,...t}){const{t:n}=ye();return o.jsx(fe,{entity:"text",id:e,field:"value",value:n(e),placeholder:"Leer = Standardtext",...t})}function kr({entity:e,id:t,field:n,lang:r,value:s,label:i="Text",className:a="",...l}){const{language:u}=ye(),c=Ue(),d=r||u,f=c.getValue(e,t,n,d,s??"")??"";if(!c.canEdit(e))return o.jsx("div",{className:a,...l,dangerouslySetInnerHTML:{__html:f}});const h=g=>{$o(g),c.openEditor({kind:"html",entity:e,id:t,field:n,lang:d,label:i,original:f})};return o.jsx("div",{...l,className:`${a} live-editable live-editable-block${c.hasPending(e,t,n,d)?" live-editable-changed":""}`,role:"button",tabIndex:0,title:"Klicken zum Bearbeiten",onClick:h,onKeyDown:g=>g.key==="Enter"&&h(g),"data-live-placeholder":"Text hinzufügen…",dangerouslySetInnerHTML:{__html:f}})}function Sc({entity:e,id:t,field:n,lang:r,value:s,label:i,kind:a="textarea",hint:l,as:u="div",className:c="",children:d,...f}){const{language:h}=ye(),g=Ue(),y=r||h;if(!g.canEdit(e))return o.jsx(u,{className:c,...f,children:d});const b=g.getValue(e,t,n,y,s??"")??"",w=p=>{$o(p),g.openEditor({kind:a,entity:e,id:t,field:n,lang:y,label:i,hint:l,original:b})};return o.jsx(u,{...f,className:`${c} live-editable live-editable-block${g.hasPending(e,t,n,y)?" live-editable-changed":""}`,role:"button",tabIndex:0,title:`${i} bearbeiten`,onClickCapture:w,onKeyDown:p=>p.key==="Enter"&&w(p),children:d})}function Ss({id:e,value:t,label:n="Bild",aspect:r,buttonLabel:s="Bild tauschen",as:i="div",className:a="",children:l,...u}){const c=Ue();if(!c.canEdit("site_images"))return l?o.jsx(i,{className:a,...u,children:l}):null;const d=f=>{$o(f),c.openEditor({kind:"image",entity:"site_images",id:e,field:"path",lang:"de",label:n,aspect:r,original:t||""})};return o.jsxs(i,{...u,className:`${a}${/\babsolute\b/.test(a)?"":" relative"}${c.hasPending("site_images",e,"path","de")?" live-editable-changed":""}`,children:[l,o.jsxs("button",{type:"button",onClick:d,className:"absolute left-2 top-2 z-10 inline-flex items-center gap-1.5 rounded-full bg-black/75 px-3 py-1.5 text-xs font-semibold text-white shadow-lg ring-1 ring-white/30 backdrop-blur hover:bg-black/90",children:[o.jsxs("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",children:[o.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),o.jsx("circle",{cx:"9",cy:"9",r:"2"}),o.jsx("path",{d:"m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21"})]}),s]})]})}function r5({items:e,entity:t="faqs"}){const[n,r]=m.useState(null),s=Ue(),{language:i}=ye();return s.canEdit(t)?o.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((a,l)=>o.jsxs("div",{className:"space-y-3 px-5 py-4",children:[o.jsx(fe,{entity:t,id:a.id,field:"question",value:a.question,as:"p",className:"block font-medium text-neutral-900 dark:text-white",placeholder:"Frage"}),o.jsx(fe,{entity:t,id:a.id,field:"answer",value:a.answer,as:"p",multiline:!0,className:"block whitespace-pre-line text-sm text-neutral-600 dark:text-neutral-300",placeholder:"Antwort"})]},a.id??l))}):o.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((a,l)=>{const u=n===l,c=a.id?{...a,question:s.getValue(t,a.id,"question",i,a.question),answer:s.getValue(t,a.id,"answer",i,a.answer)}:a;return o.jsxs("div",{children:[o.jsxs("button",{onClick:()=>r(u?null:l),className:"flex w-full items-center justify-between gap-4 px-5 py-4 text-left","aria-expanded":u,children:[o.jsx("span",{className:"font-medium text-neutral-900 dark:text-white",children:c.question}),o.jsx(an.svg,{animate:{rotate:u?180:0},transition:{duration:.2},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-5 w-5 shrink-0 text-neutral-500",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m6 9 6 6 6-6"})})]}),o.jsx(dE,{initial:!1,children:u&&o.jsx(an.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:o.jsx("p",{className:"px-5 pb-4 text-sm text-neutral-600 dark:text-neutral-300",children:c.answer})})})]},c.id??c.question)})})}function Iv({count:e=5,className:t="h-4 w-4"}){return o.jsx("div",{className:"flex gap-0.5 text-amber-400",children:Array.from({length:e}).map((n,r)=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:t,children:o.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 s5=70;function i5({testimonials:e}){const t=m.useRef(null),n=m.useRef(null),r=m.useRef({pos:0,half:0,hovering:!1,dragging:!1,dragStartX:0,dragStartPos:0,lastTime:null,rafId:null}).current;m.useLayoutEffect(()=>{const i=n.current,a=window.matchMedia("(prefers-reduced-motion: reduce)").matches,l=()=>{i.style.transform=`translateX(${r.pos}px)`},u=x=>{if(r.half<=0)return x;for(;x>0;)x-=r.half;for(;x<=-r.half;)x+=r.half;return x},c=()=>{r.half=i.scrollWidth/2,r.pos===0?r.pos=-r.half:r.pos=u(r.pos),l()};c();const d=new ResizeObserver(c);d.observe(i);const f=x=>{r.lastTime===null&&(r.lastTime=x);const v=(x-r.lastTime)/1e3;r.lastTime=x,!r.dragging&&!r.hovering&&!a&&(r.pos=u(r.pos+s5*v),l()),r.rafId=requestAnimationFrame(f)};r.rafId=requestAnimationFrame(f);const h=t.current,g=()=>{r.hovering=!0},y=()=>{r.hovering=!1},b=x=>{r.dragging=!0,r.dragStartX=x.clientX,r.dragStartPos=r.pos,h.setPointerCapture(x.pointerId),h.classList.add("cursor-grabbing"),h.classList.remove("cursor-grab")},w=x=>{r.dragging&&(r.pos=u(r.dragStartPos+(x.clientX-r.dragStartX)),l())},p=x=>{r.dragging&&(r.dragging=!1,h.hasPointerCapture(x.pointerId)&&h.releasePointerCapture(x.pointerId),h.classList.remove("cursor-grabbing"),h.classList.add("cursor-grab"))};return h.addEventListener("pointerenter",g),h.addEventListener("pointerleave",y),h.addEventListener("pointerdown",b),h.addEventListener("pointermove",w),h.addEventListener("pointerup",p),h.addEventListener("pointercancel",p),()=>{cancelAnimationFrame(r.rafId),d.disconnect(),h.removeEventListener("pointerenter",g),h.removeEventListener("pointerleave",y),h.removeEventListener("pointerdown",b),h.removeEventListener("pointermove",w),h.removeEventListener("pointerup",p),h.removeEventListener("pointercancel",p)}},[e.length]);const s=[...e,...e];return o.jsx("div",{ref:t,className:"marquee-viewport cursor-grab touch-pan-y select-none overflow-hidden",children:o.jsx("div",{ref:n,className:"marquee-track flex w-max gap-5",children:s.map((i,a)=>o.jsx("div",{className:"w-64 shrink-0 sm:w-72 lg:w-80",children:o.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:[o.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:o.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"})}),o.jsx(Iv,{className:"relative z-10 mb-3 h-4 w-4",count:i.rating||5}),o.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,'"']}),o.jsxs("div",{className:"relative z-10 mt-auto flex items-center gap-3",children:[i.photo?o.jsx("img",{src:i.photo,alt:"",referrerPolicy:"no-referrer",className:"h-9 w-9 shrink-0 rounded-full object-cover"}):o.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()}),o.jsx("p",{className:"text-sm font-semibold text-neutral-900 dark:text-white",children:i.name})]})]})},`${i.name}-${a}`))})})}function Tp(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 a5="/assets/gallery-dash2-CEVCErVK.webp",o5="/assets/youtube-hintergrund-BqSbCrLQ.mp4",l5="/assets/youtube-hintergrund-mobil-BolxAIc0.mp4",Ji={left:"text-left",center:"text-center",right:"text-right"},u5={left:"",center:"mx-auto",right:"ml-auto"},c5={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 Pp({slug:e,label:t,url:n,className:r,style:s}){const{hidden_areas:i}=kt(),a=Ue();return e&&a.canEdit("home_sections")?o.jsxs("span",{className:"inline-flex flex-wrap items-center justify-center gap-2",children:[o.jsx(fe,{entity:"home_sections",id:e,field:"button_label",value:t,className:r,style:s,placeholder:"Button-Text (leer = kein Button)"}),o.jsxs(Sc,{entity:"home_sections",id:e,field:"button_url",lang:"de",value:n,kind:"input",label:"Button-Ziel",hint:"Interne Seite mit / am Anfang (z. B. /leistungen) oder volle Adresse (https://...).",as:"span",className:"rounded bg-black/60 px-2 py-1 text-xs font-medium text-white",children:["Ziel: ",n||"–"]})]}):!t||!n||Av(n,i)?null:n.startsWith("/")?o.jsx(G,{to:n,className:r,style:s,children:t}):o.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:r,style:s,children:t})}function d5(){const{hero_image_path:e}=kt(),t=e||a5,{t:n,language:r}=ye(),s=Io(),i=Ue(),a=i.canEdit("home_sections"),l=!s("page.vehicles"),u=n("home.stats"),c=Fo(),d=c.slot("craft"),f=c.slot("advice"),h=c.slot("youtube_poster"),g=c.slot("more"),y=n("home.galleryAlts"),b=c.insights().map((z,ae)=>({...z,alt:y[ae]||y[0]||""})),[w,p]=m.useState([]),[x,v]=m.useState({}),[k,E]=m.useState(!1),[C,j]=m.useState([]),S=z=>{const ae=x[z]||c5,Uo=k&&{hero:n("home.heroTitle"),craft:n("home.craftTitle")}[z]||"",hf=k&&z==="hero"?`<p>${n("home.heroSubtitle")}</p>`:"";return{eyebrow:i.getValue("home_sections",z,"eyebrow",r,ae[`eyebrow_${r}`]||""),title:i.getValue("home_sections",z,"title",r,ae[`title_${r}`]||Uo),bodyHtml:i.getValue("home_sections",z,"body_html",r,ae[`body_html_${r}`]||hf),align:ae.text_align||"center",alignX:ae.text_align_x,alignY:ae.text_align_y,buttonLabel:i.getValue("home_sections",z,"button_label",r,ae[`button_label_${r}`]||""),buttonUrl:i.getValue("home_sections",z,"button_url","de",ae.button_url||""),fontFamily:ae.font_family||void 0}},N=qe("home_sections.hero.eyebrow"),P=qe("home_sections.hero.title"),V=qe("home_sections.youtube.eyebrow"),B=qe("home_sections.youtube.title"),se=qe("home_sections.youtube.button_label"),ne=qe("home_sections.craft.eyebrow"),q=qe("home_sections.craft.title"),W=qe("home_sections.advice.eyebrow"),I=qe("home_sections.advice.title"),T=qe("home_sections.insights.eyebrow"),M=qe("home_sections.insights.title"),L=qe("home_sections.more.eyebrow"),D=qe("home_sections.more.title"),H=qe("home_sections.more.button_label");m.useEffect(()=>{oe.get("/home-sections").then(v).catch(()=>E(!0))},[]),m.useEffect(()=>{oe.get("/partners").then(j).catch(()=>{})},[]);const[_,R]=m.useState(null),X=_?_.reviews.filter(z=>z.review_text).map(z=>({name:z.author_name,text:z.review_text,rating:z.rating,photo:z.profile_photo_url})):n("home.testimonials");m.useEffect(()=>{oe.get("/faqs").then(z=>{p(z.map(ae=>({id:ae.id,question:r==="de"?ae.question_de:ae.question_en,answer:r==="de"?ae.answer_de:ae.answer_en})))}).catch(()=>{})},[r]),m.useEffect(()=>{oe.get("/google-reviews").then(z=>{z.rating!=null&&z.reviews.some(ae=>ae.review_text)&&R(z)}).catch(()=>{})},[]),vr({title:n("home.metaTitle"),description:n("home.metaDescription"),path:"/"}),m.useEffect(()=>{if(w.length===0||s("home.faq"))return;const z=document.createElement("script");return z.type="application/ld+json",z.text=JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:w.map(ae=>({"@type":"Question",name:ae.question,acceptedAnswer:{"@type":"Answer",text:ae.answer}}))}),document.head.appendChild(z),()=>document.head.removeChild(z)},[w]),m.useEffect(()=>{var z;w.length>0&&window.location.hash==="#faq"&&((z=document.getElementById("faq"))==null||z.scrollIntoView())},[w]);const Q=m.useRef(null);m.useEffect(()=>{var pf,gf,xf;const z=Q.current;if(!z)return;const ae=(pf=window.matchMedia)==null?void 0:pf.call(window,"(prefers-reduced-motion: reduce)").matches,Uo=(gf=navigator.connection)==null?void 0:gf.saveData;if(ae||Uo)return;const Fv=((xf=window.matchMedia)==null?void 0:xf.call(window,"(max-width: 767px), (pointer: coarse)").matches)?l5:o5,mf=new IntersectionObserver(([Ov])=>{Ov.isIntersecting?(z.getAttribute("src")||(z.src=Fv),z.play().catch(()=>{})):z.paused||z.pause()},{rootMargin:"300px 0px"});return mf.observe(z),()=>mf.disconnect()},[]);const de=m.useRef(null),{scrollYProgress:J}=Xy({target:de,offset:["start start","end start"]}),je=GC(),Ie=vn(J,[0,1],je?["0%","0%"]:["-6%","6%"]),Je=vn(J,[0,1],je?["0%","0%"]:["0%","60%"]),ht=vn(J,[0,.8],[1,0]),pe=vn(J,[.5,1],[0,1]),et=vn(pe,z=>z>.05?"auto":"none"),U=vn(J,[.5,1],[16,0]),K=m.useRef(null),[le,mt]=m.useState(()=>et.get()==="auto");vC(et,"change",z=>mt(z==="auto"));const[Gn,Vv]=m.useState(0);return m.useEffect(()=>{le&&K.current&&Vv(K.current.offsetHeight)},[le]),gv(le&&Gn>0,{offset:Gn}),o.jsxs("div",{children:[o.jsx(an.div,{ref:K,style:{opacity:pe,pointerEvents:et,y:U},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:o.jsxs("div",{className:"mx-auto flex max-w-6xl items-center justify-between gap-3",children:[o.jsx(Ye,{k:"home.stickyCta",as:"p",className:"hidden text-sm font-medium text-neutral-600 dark:text-neutral-300 sm:block"}),o.jsxs("div",{className:"flex w-full gap-3 sm:w-auto",children:[l&&o.jsx(G,{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:o.jsx(Ye,{k:"home.selectVehicle"})}),o.jsx(G,{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:o.jsx(Ye,{k:"home.getInTouch"})})]})]})}),o.jsxs("section",{ref:de,className:"relative -mt-[89px] h-svh min-h-[560px] overflow-hidden sm:-mt-[97px]",children:[o.jsx(an.img,{style:{y:Ie,scale:1.15},src:t,alt:n("home.heroImageAlt"),className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-neutral-950 via-neutral-950/80 to-neutral-950/40"}),o.jsx(an.div,{style:{y:Je,opacity:ht},className:"absolute inset-0",children:o.jsx("div",{className:"absolute w-full max-w-2xl px-4 text-center sm:px-6",style:{...Tp(S("hero").alignX,S("hero").alignY,{x:50,y:50}),fontFamily:S("hero").fontFamily},children:o.jsxs(an.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.7,ease:"easeOut"},children:[(S("hero").eyebrow||a)&&o.jsx(fe,{entity:"home_sections",id:"hero",field:"eyebrow",value:S("hero").eyebrow,as:"p",className:"mb-3 text-sm font-semibold uppercase tracking-wide text-brand-400",style:N,placeholder:"Vorspann (optional)"}),o.jsx(fe,{entity:"home_sections",id:"hero",field:"title",value:S("hero").title,as:"h1",className:"text-3xl font-extrabold tracking-tight text-white sm:text-5xl",style:P,placeholder:"Überschrift"}),o.jsx(kr,{entity:"home_sections",id:"hero",field:"body_html",value:S("hero").bodyHtml,label:"Text",className:"legal-content mx-auto mt-4 max-w-2xl text-base text-neutral-200 sm:text-lg"}),o.jsxs("div",{className:"mt-8 flex flex-wrap items-center justify-center gap-3",children:[l&&o.jsx(G,{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:o.jsx(Ye,{k:"home.selectVehicle"})}),o.jsx(G,{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:o.jsx(Ye,{k:"home.getInTouch"})})]})]})})})]}),!s("home.stats")&&o.jsx("section",{className:"border-b border-neutral-200 bg-neutral-950 py-8 dark:border-neutral-800",children:o.jsx("div",{className:"mx-auto grid max-w-6xl grid-cols-2 gap-6 px-4 text-center sm:grid-cols-4 sm:px-6",children:u.map((z,ae)=>o.jsxs(Ke,{index:ae,children:[o.jsx("p",{className:"text-2xl font-extrabold text-brand-400 sm:text-3xl",children:z.value}),o.jsx("p",{className:"text-sm text-neutral-400",children:z.label})]},z.label))})}),!s("home.partners")&&o.jsx("section",{className:"border-b border-neutral-200 py-8 dark:border-neutral-800",children:o.jsxs("div",{className:"mx-auto max-w-6xl px-4 sm:px-6",children:[o.jsx(Ye,{k:"home.brandsHeading",as:"p",className:"mb-4 block text-center text-xs font-semibold uppercase tracking-wide text-neutral-400"}),o.jsx("div",{className:"flex flex-wrap items-center justify-center gap-x-8 gap-y-3",children:C.map((z,ae)=>o.jsx(Ke,{index:ae,children:z.logo_path?o.jsx("img",{src:z.logo_path,alt:z.name,className:"h-8 max-w-[8rem] object-contain opacity-70 grayscale transition hover:opacity-100 hover:grayscale-0"}):o.jsx(fe,{entity:"partners",id:z.id,field:"name",lang:"de",value:z.name,className:"text-lg font-bold text-neutral-400 dark:text-neutral-600"})},z.id))})]})}),!s("home.youtube")&&o.jsxs("section",{className:"relative min-h-[70vh] overflow-hidden sm:min-h-[85vh]",children:[o.jsx("video",{ref:Q,loop:!0,muted:!0,playsInline:!0,preload:"none",poster:h.src,className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-black/55"}),o.jsx(Ss,{id:"youtube_poster",value:h.custom,label:en.youtube_poster.label,aspect:en.youtube_poster.aspect,buttonLabel:"Video-Standbild tauschen",className:"absolute left-0 top-0 h-12 w-64"}),o.jsx("div",{className:"absolute w-full max-w-3xl px-4 text-center sm:px-6",style:{...Tp(S("youtube").alignX,S("youtube").alignY,{x:50,y:50}),fontFamily:S("youtube").fontFamily},children:o.jsxs(Ke,{children:[(S("youtube").eyebrow||a)&&o.jsx(fe,{entity:"home_sections",id:"youtube",field:"eyebrow",value:S("youtube").eyebrow,as:"p",className:"mb-4 text-xs font-semibold uppercase tracking-[0.2em] text-neutral-200 sm:text-sm",style:V,placeholder:"Vorspann (optional)"}),o.jsx(fe,{entity:"home_sections",id:"youtube",field:"title",value:S("youtube").title,as:"h2",className:"text-3xl font-bold uppercase tracking-wide text-white sm:text-5xl",style:B,placeholder:"Überschrift"}),o.jsx(kr,{entity:"home_sections",id:"youtube",field:"body_html",value:S("youtube").bodyHtml,label:"Text",className:"legal-content mt-4 text-xs font-semibold uppercase tracking-wide text-neutral-200 sm:text-sm"}),o.jsx(Pp,{slug:"youtube",label:S("youtube").buttonLabel,url:S("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:se})]})})]}),!s("home.craft")&&o.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:o.jsxs("div",{className:"mx-auto max-w-6xl space-y-16 overflow-hidden px-4 sm:px-6",children:[o.jsxs("div",{className:"grid items-center gap-8 md:grid-cols-2",children:[o.jsx(Ke,{direction:"left",shine:!0,className:"rounded-xl shadow-lg",children:o.jsx(Ss,{id:"craft",value:d.custom,label:en.craft.label,aspect:en.craft.aspect,children:o.jsx("img",{src:d.src,alt:n("home.craftImageAlt"),width:900,height:600,className:"w-full rounded-xl object-cover",style:{maxHeight:380}})})}),o.jsxs(Ke,{direction:"right",index:1,className:Ji[S("craft").align],style:{fontFamily:S("craft").fontFamily},children:[(S("craft").eyebrow||a)&&o.jsx(fe,{entity:"home_sections",id:"craft",field:"eyebrow",value:S("craft").eyebrow,as:"p",className:"mb-2 text-sm font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",style:ne,placeholder:"Vorspann (optional)"}),o.jsx(fe,{entity:"home_sections",id:"craft",field:"title",value:S("craft").title,as:"h2",className:"mb-3 text-2xl font-bold text-neutral-900 dark:text-white",style:q,placeholder:"Überschrift"}),o.jsx(kr,{entity:"home_sections",id:"craft",field:"body_html",value:S("craft").bodyHtml,label:"Text",className:"legal-content text-neutral-600 dark:text-neutral-300"})]})]}),o.jsxs("div",{className:"grid items-center gap-8 md:grid-cols-2",children:[o.jsxs(Ke,{direction:"left",className:`order-2 md:order-1 ${Ji[S("advice").align]}`,style:{fontFamily:S("advice").fontFamily},children:[(S("advice").eyebrow||a)&&o.jsx(fe,{entity:"home_sections",id:"advice",field:"eyebrow",value:S("advice").eyebrow,as:"p",className:"mb-2 text-sm font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",style:W,placeholder:"Vorspann (optional)"}),o.jsx(fe,{entity:"home_sections",id:"advice",field:"title",value:S("advice").title,as:"h2",className:"mb-3 text-2xl font-bold text-neutral-900 dark:text-white",style:I,placeholder:"Überschrift"}),o.jsx(kr,{entity:"home_sections",id:"advice",field:"body_html",value:S("advice").bodyHtml,label:"Text",className:"legal-content text-neutral-600 dark:text-neutral-300"})]}),o.jsx(Ke,{direction:"right",index:1,shine:!0,className:"order-1 md:order-2 rounded-xl shadow-lg",children:o.jsx(Ss,{id:"advice",value:f.custom,label:en.advice.label,aspect:en.advice.aspect,children:o.jsx("img",{src:f.src,alt:n("home.adviceImageAlt"),width:900,height:600,className:"w-full rounded-xl object-cover",style:{maxHeight:380}})})})]})]})}),!s("home.insights")&&o.jsxs("section",{className:"mx-auto max-w-6xl px-4 py-16 sm:px-6",children:[o.jsxs(Ke,{className:`mb-8 ${Ji[S("insights").align]}`,style:{fontFamily:S("insights").fontFamily},children:[(S("insights").eyebrow||a)&&o.jsx(fe,{entity:"home_sections",id:"insights",field:"eyebrow",value:S("insights").eyebrow,as:"p",className:"mb-2 text-sm font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",style:T,placeholder:"Vorspann (optional)"}),o.jsx(fe,{entity:"home_sections",id:"insights",field:"title",value:S("insights").title,as:"h2",className:"text-2xl font-bold text-neutral-900 dark:text-white",style:M,placeholder:"Überschrift"}),o.jsx(kr,{entity:"home_sections",id:"insights",field:"body_html",value:S("insights").bodyHtml,label:"Text",className:"legal-content mt-2 text-neutral-600 dark:text-neutral-300"})]}),o.jsx("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3",children:b.map((z,ae)=>o.jsx(Ke,{index:ae%3,shine:!0,className:"aspect-square overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:o.jsx(Ss,{id:z.id,value:z.custom,label:`Einblicke: Foto ${ae+1}`,aspect:1,className:"h-full w-full",children:o.jsx("img",{src:z.src,alt:z.alt,width:z.width,height:z.height,loading:"lazy",className:"h-full w-full object-cover transition duration-300 hover:scale-105"})})},z.id))})]}),!s("home.reviews")&&o.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:o.jsxs("div",{className:"mx-auto max-w-6xl px-4 sm:px-6",children:[o.jsxs(Ke,{className:"mb-10 text-center",children:[o.jsx("div",{className:"mb-2 flex items-center justify-center gap-2",children:o.jsx(Iv,{className:"h-6 w-6",count:_?Math.round(_.rating):5})}),o.jsx("h2",{className:"text-2xl font-bold text-neutral-900 dark:text-white",children:_?n("home.reviewsRatingDynamic")(_.rating,_.rating_count):n("home.reviewsRating")}),o.jsx(Ye,{k:"home.reviewsText",as:"p",className:"mt-1 text-neutral-600 dark:text-neutral-300"}),o.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:o.jsx(Ye,{k:"home.reviewsLink"})})]}),o.jsx(Ke,{children:o.jsx(i5,{testimonials:X})})]})}),!s("home.more")&&o.jsx("section",{className:"mx-auto max-w-6xl overflow-hidden px-4 py-16 sm:px-6",children:o.jsxs("div",{className:"grid items-center gap-10 md:grid-cols-2",children:[o.jsx(Ke,{direction:"left",shine:!0,className:"overflow-hidden rounded-xl shadow-lg",children:o.jsx(Ss,{id:"more",value:g.custom,label:en.more.label,aspect:en.more.aspect,className:"h-full w-full",children:o.jsx("img",{src:g.src,alt:n("home.moreImageAlt"),width:1600,height:905,className:"h-full w-full object-cover",loading:"lazy"})})}),o.jsxs(Ke,{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 ${Ji[S("more").align]}`,style:{fontFamily:S("more").fontFamily},children:[(S("more").eyebrow||a)&&o.jsx(fe,{entity:"home_sections",id:"more",field:"eyebrow",value:S("more").eyebrow,as:"p",className:"mb-2 text-sm font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",style:L,placeholder:"Vorspann (optional)"}),o.jsx(fe,{entity:"home_sections",id:"more",field:"title",value:S("more").title,as:"h2",className:"mb-3 text-2xl font-bold text-neutral-900 dark:text-white",style:D,placeholder:"Überschrift"}),o.jsx(kr,{entity:"home_sections",id:"more",field:"body_html",value:S("more").bodyHtml,label:"Text",className:`legal-content mb-8 max-w-2xl text-neutral-600 dark:text-neutral-300 ${u5[S("more").align]}`}),o.jsx(Pp,{slug:"more",label:S("more").buttonLabel,url:S("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:H})]})]})}),!s("home.faq")&&o.jsx("section",{id:"faq",className:"scroll-mt-20 border-t border-neutral-300 py-16 dark:border-neutral-700",children:o.jsxs("div",{className:"mx-auto max-w-3xl px-4 sm:px-6",children:[o.jsx(Ke,{className:"mb-8 text-center",children:o.jsx(Ye,{k:"home.faqHeading",as:"h2",className:"text-2xl font-bold text-neutral-900 dark:text-white"})}),o.jsx(Ke,{index:1,children:o.jsx(r5,{items:w})})]})})]})}function Ho(e,t){return e?e.code==="rate_limited"||e.status===429?t("errors.rateLimited"):e.code==="invalid_input"||e.status===422?t("errors.invalidInput"):e.status===404?t("errors.notFound"):e.status===503?t("errors.maintenance"):e.status>=500?t("errors.server"):e.status?t("errors.generic"):t("errors.network"):""}const Np={vw:"volkswagen",mercedes:"mercedes-benz",benz:"mercedes-benz",mb:"mercedes-benz",chevy:"chevrolet",alfa:"alfa romeo"},f5=8,Ws=e=>String(e||"").toLowerCase().normalize("NFD").replace(/[̀-ͯ]/g,"").replace(/ß/g,"ss").replace(/[-_./]+/g," ").replace(/\s+/g," ").trim(),co=e=>e.replace(/\s/g,"");function h5(e,t){const n=(e||[]).map(s=>{const i=Ws(s.name);return{key:`b${s.id}`,type:"brand",label:s.name,to:`/fahrzeuge/${s.slug}`,text:i,flat:co(i)}}),r=(t||[]).map(s=>{const i=Ws(`${s.brand_name} ${s.name}`);return{key:`m${s.id}`,type:"model",label:s.name,brand:s.brand_name,image:s.image_path,to:`/fahrzeuge/${s.brand_slug}/${s.slug}`,text:i,flat:co(i),modelText:Ws(s.name)}});return[...n,...r]}function m5(e,t){const n=Ws(t).split(" ").filter(Boolean);if(n.length===0)return[];const r=n.map(a=>Np[a]?[a,Ws(Np[a])]:[a]),s=co(n.join("")),i=[];for(const a of e){const l=c=>a.text.includes(c)||a.flat.includes(co(c));if(!r.every(c=>c.some(l))&&!a.flat.includes(s))continue;let u=0;for(const c of r)c.some(d=>a.text.startsWith(d))?u+=3:c.some(d=>` ${a.text}`.includes(` ${d}`))&&(u+=2),c.some(d=>{var f;return(f=a.modelText)==null?void 0:f.startsWith(d)})&&(u+=2);a.type==="brand"&&(u+=1),i.push({entry:a,score:u})}return i.sort((a,l)=>l.score-a.score||a.entry.text.localeCompare(l.entry.text,void 0,{numeric:!0})),i.slice(0,f5).map(a=>a.entry)}function p5({brands:e,width:t}){const{t:n}=ye(),r=xr(),s=m.useId(),i=m.useRef(null),[a,l]=m.useState(null),[u,c]=m.useState(""),[d,f]=m.useState(!1),[h,g]=m.useState(0),y=m.useRef(!1),b=()=>{a||y.current||(y.current=!0,oe.get("/vehicle-search").then(l).catch(()=>l([])).finally(()=>{y.current=!1}))},w=m.useMemo(()=>h5(e,a),[e,a]),p=m.useMemo(()=>m5(w,u),[w,u]),x=d&&u.trim()!=="",v=p.some(j=>j.image);m.useEffect(()=>g(0),[u]),m.useEffect(()=>{if(!x)return;const j=S=>{var N;(N=i.current)!=null&&N.contains(S.target)||f(!1)};return document.addEventListener("pointerdown",j),()=>document.removeEventListener("pointerdown",j)},[x]);const k=j=>{f(!1),r(j.to)},E=j=>{j.key==="ArrowDown"&&p.length?(j.preventDefault(),f(!0),g(S=>(S+1)%p.length)):j.key==="ArrowUp"&&p.length?(j.preventDefault(),g(S=>(S-1+p.length)%p.length)):j.key==="Enter"&&x&&p[h]?(j.preventDefault(),k(p[h])):j.key==="Escape"&&(x?f(!1):c(""))},C=a===null&&u.trim()!=="";return o.jsxs("div",{ref:i,className:"relative mb-8 max-w-full",style:{width:t?`${t}px`:"100%"},children:[o.jsx("label",{htmlFor:`${s}-input`,className:"sr-only",children:n("vehicleSearch.label")}),o.jsxs("div",{className:"relative flex items-center",children:[o.jsx(nP,{className:"pointer-events-none absolute left-4 h-[18px] w-[18px] text-neutral-400","aria-hidden":"true"}),o.jsx("input",{id:`${s}-input`,type:"search",role:"combobox","aria-expanded":x,"aria-controls":`${s}-list`,"aria-autocomplete":"list","aria-activedescendant":x&&p[h]?`${s}-${p[h].key}`:void 0,autoComplete:"off",spellCheck:!1,value:u,placeholder:n("vehicleSearch.placeholder"),onFocus:()=>{b(),f(!0)},onChange:j=>{b(),c(j.target.value),f(!0)},onKeyDown:E,className:"vehicle-search-input w-full rounded-xl border border-neutral-300 bg-gradient-to-b from-white to-neutral-50 py-3.5 pl-11 pr-11 text-[15px] text-neutral-900 outline-none transition-[border-color,box-shadow] duration-200 placeholder:text-neutral-400 focus:border-brand-500 dark:border-neutral-700 dark:from-neutral-800 dark:to-neutral-900 dark:text-white dark:placeholder:text-neutral-500 [&::-webkit-search-cancel-button]:hidden"}),u&&o.jsx("button",{type:"button",onClick:()=>c(""),"aria-label":n("vehicleSearch.clear"),className:"absolute right-3 rounded-md p-1 text-neutral-400 transition hover:text-neutral-700 dark:hover:text-neutral-200",children:o.jsx(Ei,{className:"h-4 w-4"})})]}),x&&o.jsx("div",{className:"absolute inset-x-0 top-full z-30 mt-2 overflow-hidden rounded-xl border border-neutral-200 bg-white shadow-lg dark:border-neutral-800 dark:bg-neutral-900",children:p.length>0?o.jsx("ul",{id:`${s}-list`,role:"listbox",className:"max-h-[360px] overflow-y-auto py-1",children:p.map((j,S)=>o.jsx("li",{id:`${s}-${j.key}`,role:"option","aria-selected":S===h,children:o.jsxs(G,{to:j.to,onClick:()=>f(!1),onMouseEnter:()=>g(S),className:`flex items-center gap-3 px-4 py-2.5 text-[15px] ${S===h?"bg-neutral-100 dark:bg-neutral-800":""}`,children:[j.type==="model"?o.jsxs(o.Fragment,{children:[j.image?o.jsx("img",{src:j.image,alt:"",loading:"lazy",className:"h-9 w-14 shrink-0 rounded object-cover"}):v&&o.jsx("span",{className:"h-9 w-14 shrink-0 rounded bg-neutral-100 dark:bg-neutral-800"}),o.jsxs("span",{className:"min-w-0 flex-1 truncate text-neutral-900 dark:text-white",children:[o.jsx("span",{className:"text-neutral-500 dark:text-neutral-400",children:j.brand})," ",j.label]})]}):o.jsxs("span",{className:"min-w-0 flex-1 truncate text-neutral-900 dark:text-white",children:[j.label,o.jsx("span",{className:"ml-2 text-xs uppercase tracking-wider text-neutral-500 dark:text-neutral-400",children:n("vehicleSearch.allModels")})]}),o.jsx(uT,{className:`h-4 w-4 shrink-0 text-brand-500 transition-opacity ${S===h?"opacity-100":"opacity-0"}`,"aria-hidden":"true"})]})},j.key))}):o.jsx("div",{id:`${s}-list`,className:"px-4 py-3 text-sm text-neutral-500 dark:text-neutral-400",children:C?n("vehicleSearch.loading"):o.jsxs(o.Fragment,{children:[n("vehicleSearch.noResults")," ",o.jsx(G,{to:"/kontakt",className:"font-semibold text-brand-500 hover:underline",children:n("vehicleSearch.contact")})]})})})]})}function g5(){const[e,t]=m.useState(null),[n,r]=m.useState(null),s=Oo(),{t:i}=ye(),a=lf(),{vehicle_tile_width:l,vehicle_tile_height:u}=kt(),c={width:`${l}px`,height:`${u}px`},d=m.useRef(null),[f,h]=m.useState(0);m.useEffect(()=>{const p=d.current;if(!p)return;const x=new ResizeObserver(([v])=>h(v.contentRect.width));return x.observe(p),()=>x.disconnect()},[]);const g=16,y=e?e.length:6,b=Math.max(1,Math.min(y,Math.floor((f+g)/(Number(l)+g)))),w=f&&y?b*Number(l)+(b-1)*g:void 0;return vr({title:i("vehicleSelect.metaTitle"),description:i("vehicleSelect.metaDescription"),path:"/fahrzeuge"}),m.useEffect(()=>{s.vehicles.enabled&&!s.bypass||oe.get("/brands").then(t).catch(p=>r(p))},[s.vehicles.enabled,s.bypass]),s.vehicles.enabled&&!s.bypass?o.jsx(Ci,{message:s.vehicles.message}):o.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[o.jsx("div",{ref:d}),s.vehicles.enabled&&s.bypass&&o.jsx(Ti,{inline:!0}),o.jsx(Ye,{k:"vehicleSelect.title",as:"h1",className:"mb-2 block text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl"}),o.jsx(Ye,{k:"vehicleSelect.intro",as:"p",className:"mb-6 block text-neutral-600 dark:text-neutral-300"}),o.jsx(p5,{brands:e,width:w}),n&&o.jsx("p",{className:"text-red-600",children:typeof n=="string"?n:Ho(n,i)}),e===null&&!n&&o.jsx("div",{className:"flex flex-wrap gap-4","aria-busy":"true","aria-label":i("vehicleSelect.loading"),children:Array.from({length:6},(p,x)=>o.jsx("div",{style:c,className:"shrink-0 animate-pulse rounded-xl bg-neutral-200 dark:bg-neutral-800"},x))}),(e==null?void 0:e.length)===0&&!n&&o.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:i("vehicleSelect.empty")}),o.jsx("div",{className:"flex flex-wrap gap-4",children:(e||[]).map(p=>p.image_path?o.jsxs(G,{to:`/fahrzeuge/${p.slug}`,style:c,className:"group relative block shrink-0 overflow-hidden rounded-xl bg-neutral-900 shadow-sm transition hover:shadow-lg",children:[o.jsx("img",{src:p.image_path,alt:"",loading:"lazy",decoding:"async",width:l,height:u,className:"h-full w-full object-cover transition duration-300 group-hover:scale-105"}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent transition group-hover:from-black/95"}),o.jsx(fe,{entity:"brands",id:p.id,field:"name",lang:"de",value:p.name,className:"absolute inset-x-0 bottom-0 p-4 text-center text-lg font-extrabold text-white",style:mr(a,`brands.${p.id}.name`)})]},p.id):o.jsx(G,{to:`/fahrzeuge/${p.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:o.jsx(fe,{entity:"brands",id:p.id,field:"name",lang:"de",value:p.name,style:mr(a,`brands.${p.id}.name`)})},p.id))})]})}function ff(){const{t:e}=ye(),{phone:t}=kt(),n=Io();return vr({title:e("notFound.metaTitle"),noindex:!0}),o.jsxs("div",{className:"mx-auto max-w-2xl px-4 py-20 text-center sm:px-6",children:[o.jsx("p",{className:"text-sm font-semibold uppercase tracking-[4px] text-brand-500",children:"404"}),o.jsx("h1",{className:"mt-3 text-3xl font-bold text-neutral-900 dark:text-white sm:text-4xl",children:e("notFound.title")}),o.jsx("p",{className:"mx-auto mt-4 max-w-md text-neutral-600 dark:text-neutral-300",children:e("notFound.text")}),o.jsxs("div",{className:"mt-10 flex flex-wrap justify-center gap-3",children:[!n("page.vehicles")&&o.jsxs(G,{to:"/fahrzeuge",className:"inline-flex items-center gap-2 rounded-md bg-brand-500 px-5 py-3 text-sm font-semibold text-white shadow-sm hover:bg-brand-600",children:[o.jsx(oo,{className:"h-4 w-4"}),e("notFound.toVehicles")]}),o.jsxs(G,{to:"/kontakt",className:"inline-flex items-center gap-2 rounded-md border border-neutral-300 px-5 py-3 text-sm font-semibold text-neutral-700 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800",children:[o.jsx(vc,{className:"h-4 w-4"}),e("notFound.toContact")]}),t&&o.jsxs("a",{href:rs(t),className:"inline-flex items-center gap-2 rounded-md border border-neutral-300 px-5 py-3 text-sm font-semibold text-neutral-700 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800",children:[o.jsx(zn,{className:"h-4 w-4"}),t]})]}),o.jsx(G,{to:"/",className:"mt-8 inline-block text-sm text-neutral-500 underline hover:text-brand-500",children:e("notFound.toHome")})]})}function x5(){const{brandSlug:e}=kd(),[t,n]=m.useState(null),[r,s]=m.useState(null),i=Oo(),{t:a}=ye(),l=lf(),u=qe(t?`brands.${t.brand.id}.name`:""),{vehicle_tile_width:c,vehicle_tile_height:d}=kt(),f={width:`${c}px`,height:`${d}px`};return m.useEffect(()=>{i.vehicles.enabled&&!i.bypass||oe.get(`/brands/${e}/models`).then(n).catch(h=>s(h))},[e,i.vehicles.enabled,i.bypass]),vr({title:t?`${t.brand.name} ${a("brandPage.titleSuffix")}`:a("brandPage.metaTitleFallback"),description:t?a("brandPage.metaDescription")(t.brand.name):void 0,path:`/fahrzeuge/${e}`}),i.vehicles.enabled&&!i.bypass?o.jsx(Ci,{message:i.vehicles.message}):r?r.status===404?o.jsx(ff,{}):o.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-red-600 sm:px-6",children:Ho(r,a)}):t?o.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[i.vehicles.enabled&&i.bypass&&o.jsx(Ti,{inline:!0}),o.jsxs("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:[o.jsx("span",{style:u,children:t.brand.name})," – ",a("brandPage.titleSuffix")]}),t.models.length===0&&o.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:a("brandPage.empty")}),o.jsx("div",{className:"flex flex-wrap gap-4",children:t.models.map(h=>h.image_path?o.jsxs(G,{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:[o.jsx("img",{src:h.image_path,alt:"",loading:"lazy",decoding:"async",width:c,height:d,className:"h-full w-full object-cover transition duration-300 group-hover:scale-105"}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent transition group-hover:from-black/95"}),o.jsx(fe,{entity:"car_models",id:h.id,field:"name",lang:"de",value:h.name,className:"absolute inset-x-0 bottom-0 p-4 text-center text-lg font-extrabold text-white",style:mr(l,`car_models.${h.id}.name`)})]},h.id):o.jsx(G,{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:o.jsx(fe,{entity:"car_models",id:h.id,field:"name",lang:"de",value:h.name,style:mr(l,`car_models.${h.id}.name`)})},h.id))})]}):o.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-neutral-500 sm:px-6",children:a("brandPage.loading")})}function y5({text:e}){return e?e.split(/(\*\*[^*]+\*\*)/g).map((n,r)=>{const s=n.match(/^\*\*([^*]+)\*\*$/);return s?o.jsx("strong",{children:s[1]},r):o.jsx("span",{children:n},r)}):null}const _p="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==";function In(e,t,n){if(!e)return"";if(n==="en"){const r=e[`${t}_en`];if(r)return r}return e[t]}const v5=(e,t,n)=>{t/=100,n/=100;const r=a=>(a+e/30)%12,s=t*Math.min(n,1-n),i=a=>n-s*Math.max(-1,Math.min(r(a)-3,Math.min(9-r(a),1)));return[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)]},Ul=(e,t,n)=>`rgb(${v5(e,t,n).join(", ")})`,Mp=e=>e.map(([t,n,r,s,i,a])=>({bgTop:Ul(t,n,r),border:Ul(t,n,r+8),accent:Ul(s,i,a),img:null})),Lp={graphite:[{accent:"#b6b6b6",border:"#2a2a2a",bgTop:"#1c1c1c",img:wv},{accent:"#d3d3d3",border:"#2e2e2e",bgTop:"#212121",img:bv},{accent:"#8fb8bd",border:"#26383b",bgTop:"#16282b",img:kv},{accent:"#6fbf73",border:"#1f3a24",bgTop:"#122916",img:Sv},{accent:"#63d34f",border:"#204a1c",bgTop:"#123312",img:jv},{accent:"#8bea3c",border:"#2b5518",bgTop:"#173a0f",img:Ev},{accent:"#d9a83c",border:"#4a3a16",bgTop:"#33270d",img:Cv},{accent:"#f2c14e",border:"#5a4718",bgTop:"#3d2f0c",img:Tv}],"deep-blue":Mp([[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":Mp([[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]])},w5="#f2f2f2",Ap="#8a8a8a",Dp="#c4c4c4",Rp=5,b5=3,k5={recommended:{Icon:cP,className:"bg-brand-500 text-white"},popular:{Icon:DT,className:"bg-amber-400 text-neutral-950"},tip:{Icon:FT,className:"bg-sky-500 text-white"},coming_soon:{Icon:nv,className:"bg-white text-neutral-900"},custom:{Icon:null,className:"bg-brand-500 text-white"}};function S5({pkg:e,tier:t,tierT:n,layout:r,bullets:s,formatPrice:i,contactUrl:a,priceNote:l,t:u}){const[c,d]=m.useState(!1),f=Ue().canEdit("packages"),[h,g]=m.useState(!1),y=m.useRef(null),b=s.length-Rp,w=c?s:s.slice(0,Rp);m.useLayoutEffect(()=>{const N=y.current;if(!N||c){g(!1);return}const P=()=>g([...N.querySelectorAll("[data-clamp]")].some(B=>B.scrollHeight>B.clientHeight+1));P();const V=new ResizeObserver(P);return V.observe(N),()=>V.disconnect()},[c,s.length,e.description]);const p=lf(),x=mr(p,`packages.${e.id}.description`),v=mr(p,`packages.${e.id}.price_text`),{package_card_height:k}=kt(),E=k5[e.badge],C=r!=="grid",j=e.badge==="custom"?e.badge_text:e.badge&&u(`modelPage.badges.${e.badge}`),S=t.img?null:{backgroundColor:t.accent,WebkitMaskImage:`url(${_p})`,maskImage:`url(${_p})`,maskMode:"luminance",WebkitMaskSize:"cover",maskSize:"cover",WebkitMaskPosition:"center",maskPosition:"center",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat"};return o.jsxs("div",{style:{borderColor:t.border,background:`linear-gradient(180deg, ${t.bgTop} 0%, #0b0b0b 55%, #080808 100%)`,...C?{gridRow:"span 4",gridTemplateRows:"subgrid",gridTemplateColumns:"minmax(0, 1fr)",rowGap:0}:{minHeight:`${k}px`}},className:r==="strip"?"relative grid snap-start overflow-hidden rounded-[18px] border shadow-xl shadow-neutral-900/20 dark:shadow-black/40":r==="coverflow"?"relative grid snap-center overflow-hidden rounded-[18px] border shadow-xl shadow-neutral-900/20 will-change-transform dark:shadow-black/40":"relative flex flex-col overflow-hidden rounded-[18px] border shadow-xl shadow-neutral-900/20 dark:shadow-black/40",children:[t.img?o.jsx("img",{src:t.img,alt:"","aria-hidden":"true",className:"pointer-events-none absolute inset-0 h-full w-full object-cover"}):o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"pointer-events-none absolute inset-0",style:{...S,opacity:.2+n*.45,filter:"blur(18px)"},"aria-hidden":"true"}),o.jsx("div",{className:"pointer-events-none absolute inset-0",style:{...S,opacity:.55+n*.45},"aria-hidden":"true"})]}),E&&j&&o.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 ${E.className}`,children:[E.Icon&&o.jsx(E.Icon,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":"true"}),o.jsx("span",{className:"truncate",children:j})]}),o.jsxs("div",{className:"relative z-10 text-center",style:{padding:"34px 20px 0",gridRow:1},children:[o.jsx("div",{style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"30px",letterSpacing:"3px",fontWeight:600,color:t.accent,textTransform:"uppercase",lineHeight:1.1},children:o.jsx(fe,{entity:"packages",id:e.id,field:"name",lang:"de",value:e.name,placeholder:"Paketname"})}),o.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&&o.jsxs("div",{className:"relative z-10",style:{gridRow:2,padding:"18px 20px 14px",background:c?"linear-gradient(180deg, rgba(8,8,8,0.7) 0%, rgba(8,8,8,0.62) 94%, rgba(8,8,8,0) 100%)":"linear-gradient(180deg, rgba(8,8,8,0.55) 0%, rgba(8,8,8,0.48) 92%, rgba(8,8,8,0) 100%)"},children:[o.jsx(Sc,{entity:"packages",id:e.id,field:"description",value:e.description,label:"Zusätzliche Stichpunkte",hint:"Eine Zeile = ein Stichpunkt (unter den Produkten). **fett** wird fett dargestellt. Die Produkte selbst pflegst du im Admin unter Pakete.",children:o.jsx("ul",{ref:y,className:"space-y-1.5 text-left",children:w.map((N,P)=>o.jsxs("li",{className:"flex items-start gap-2",style:{fontSize:"13px",color:Dp,...N.fromDescription?x:null},children:[o.jsx(tv,{className:"mt-0.5 h-3.5 w-3.5 shrink-0",style:{color:t.accent}}),o.jsx("span",{"data-clamp":!0,className:"min-w-0 leading-snug",style:c?{overflowWrap:"anywhere",hyphens:"auto"}:{overflowWrap:"anywhere",hyphens:"auto",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:b5,overflow:"hidden"},children:N.fromDescription?o.jsx(y5,{text:N.text}):N.text.replace(/\//g,"/​")})]},P))})}),(c||b>0||h)&&o.jsxs("button",{type:"button",onClick:()=>d(N=>!N),className:"mt-2.5 flex items-center gap-1 hover:opacity-80",style:{fontSize:"13px",color:t.accent},children:[c?u("modelPage.lessBullets"):b>0?u("modelPage.moreBullets")(b):u("modelPage.showMore"),c?o.jsx(ET,{className:"h-3.5 w-3.5"}):o.jsx(vT,{className:"h-3.5 w-3.5"})]})]}),s.length===0&&f&&o.jsx(Sc,{entity:"packages",id:e.id,field:"description",value:e.description,label:"Zusätzliche Stichpunkte",hint:"Eine Zeile = ein Stichpunkt. **fett** wird fett dargestellt.",className:"relative z-10 mx-5 mt-4 text-center text-xs",style:{gridRow:2,color:Dp},children:"+ Stichpunkte hinzufügen"}),o.jsx("div",{className:"relative z-10 flex-1",style:{gridRow:3}}),o.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:o.jsxs("div",{className:"text-center",children:[!e.price_text&&o.jsx("div",{style:{fontSize:"13px",color:Ap},children:u("modelPage.totalPrice")}),o.jsx("div",{style:{marginTop:"4px",fontFamily:"'Barlow Condensed', sans-serif",fontSize:"30px",fontWeight:600,letterSpacing:"1px",color:w5,...e.price_text?v:null},children:f?o.jsx(fe,{entity:"packages",id:e.id,field:"price_text",value:e.price_text,placeholder:i(e.total_price),title:"Leer lassen = Preis automatisch aus den Produkten"}):e.price_text||i(e.total_price)}),!e.price_text&&l&&o.jsx("div",{style:{marginTop:"2px",fontSize:"11px",color:Ap},children:l}),o.jsx(G,{to:a(e),onClick:()=>Zt("select_package",{package_name:e.name,value:Number(e.total_price)||void 0,currency:"EUR"}),className:"mt-4 inline-block rounded-md bg-brand-500 px-4 py-2 text-center text-sm font-semibold text-white shadow-lg shadow-brand-500/30 hover:bg-brand-400",children:u("modelPage.requestContact")}),e.video_url&&o.jsx("div",{className:"mt-3",children:o.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:[o.jsx(TT,{className:"h-4 w-4 text-red-500","aria-hidden":"true"}),u("modelPage.videoLink")]})})]})})]})}function j5(){const{brandSlug:e,modelSlug:t}=kd(),[n,r]=m.useState(null),[s,i]=m.useState(null),a=Oo(),{t:l,language:u}=ye(),c=Ue(),{package_card_theme:d,package_card_layout:f,package_wheel_hint_interval:h,package_card_width:g,package_card_height:y,phone:b,whatsapp:w,price_note:p,price_note_en:x}=kt();gv(!!n&&!!(b||w),{hidesContact:!0});const v=u==="en"&&x||p,k=Fo(),E=(Lp[d]||Lp.graphite).map((_,R)=>{const{custom:X}=k.packageTier(R);return X?{..._,img:X}:_}),C=["grid","strip","coverflow"].includes(f)?f:"strip",j=Math.max(2,Number(h)||8)*1e3,S=m.useRef(null),N=m.useRef(null),P=m.useRef(null),[V,B]=m.useState(!1),se=_=>new Intl.NumberFormat(u==="de"?"de-DE":"en-US",{style:"currency",currency:"EUR"}).format(_);m.useEffect(()=>{a.vehicles.enabled&&!a.bypass||oe.get(`/models/${e}/${t}/packages`).then(r).catch(_=>i(_))},[e,t,a.vehicles.enabled,a.bypass]),m.useEffect(()=>{const _=S.current;if(C!=="coverflow"||!_)return;let R=0;const X=()=>{R=0;const J=_.scrollLeft+_.clientWidth/2;for(const je of _.children){const Ie=je.offsetLeft+je.offsetWidth/2,Je=Math.max(-1,Math.min(1,(Ie-J)/(je.offsetWidth*1.4))),ht=Math.abs(Je);je.style.transform=`rotateY(${(-Je*35).toFixed(2)}deg) scale(${(1-ht*.13).toFixed(3)}) translateZ(${(-ht*60).toFixed(1)}px)`,je.style.zIndex=String(100-Math.round(ht*50))}},Q=()=>{R||(R=requestAnimationFrame(X))};X(),_.addEventListener("scroll",Q,{passive:!0});const de=new ResizeObserver(Q);return de.observe(_),()=>{_.removeEventListener("scroll",Q),de.disconnect(),cancelAnimationFrame(R)}},[C,n]),m.useEffect(()=>{const _=S.current;if(C==="grid"||!_)return;const R=window.matchMedia("(pointer: coarse)").matches;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let Q=[],de=0;const J=()=>{const Ie=Math.min(_.clientWidth*.4,160);Q.push(setTimeout(()=>_.scrollTo({left:Ie,behavior:"smooth"}),500)),Q.push(setTimeout(()=>_.scrollTo({left:0,behavior:"smooth"}),1250)),R||(Q.push(setTimeout(()=>B(!0),450)),Q.push(setTimeout(()=>B(!1),1700)))},je=new IntersectionObserver(([Ie])=>{Ie.isIntersecting&&(je.disconnect(),J(),de=setInterval(()=>{_.scrollLeft<=1&&J()},j))},{threshold:.35});return je.observe(_),()=>{je.disconnect(),clearInterval(de),Q.forEach(clearTimeout)}},[C,n,j]),m.useEffect(()=>{const _=S.current;if(C==="grid"||!_)return;let R=0,X=0,Q=!1,de=0,J=0;const je=()=>[..._.children].map(pe=>pe.offsetLeft+pe.offsetWidth/2),Ie=(pe,et)=>{let U=0,K=1/0;return pe.forEach((le,mt)=>{const Gn=Math.abs(le-et);Gn<K&&(K=Gn,U=mt)}),U},Je=()=>{Q=!1;const pe=je();if(!pe.length)return;const et=_.scrollLeft+_.clientWidth/2,U=Ie(pe,et);let K=U;U===de&&Math.abs(J)>4&&(K=J>0?Math.min(de+1,pe.length-1):Math.max(de-1,0));const le=_.scrollWidth-_.clientWidth,mt=Math.max(0,Math.min(pe[K]-_.clientWidth/2,le));_.scrollTo({left:mt,behavior:"smooth"}),clearTimeout(X),X=setTimeout(()=>{_.style.scrollSnapType=""},450)},ht=pe=>{if(Math.abs(pe.deltaX)>Math.abs(pe.deltaY))return;const et=_.scrollWidth-_.clientWidth;if(et<=1)return;const U=_.scrollLeft<=1,K=_.scrollLeft>=et-1;pe.deltaY<0&&U||pe.deltaY>0&&K||(pe.preventDefault(),Q||(Q=!0,J=0,de=Ie(je(),_.scrollLeft+_.clientWidth/2)),J+=pe.deltaY,_.style.scrollSnapType="none",_.scrollLeft+=pe.deltaY,clearTimeout(R),R=setTimeout(Je,150))};return _.addEventListener("wheel",ht,{passive:!1}),()=>{_.removeEventListener("wheel",ht),clearTimeout(R),clearTimeout(X)}},[C,n]),m.useEffect(()=>{const _=S.current,R=N.current,X=P.current;if(C==="grid"||!_||!R||!X)return;let Q=0;const de=()=>{Q=0;const K=_.scrollWidth-_.clientWidth;if(K<=1){R.style.opacity="0",R.style.pointerEvents="none";return}R.style.opacity="1",R.style.pointerEvents="auto";const le=R.clientWidth,mt=Math.max(32,_.clientWidth/_.scrollWidth*le);X.style.width=`${mt}px`,X.style.transform=`translateX(${(_.scrollLeft/K*(le-mt)).toFixed(1)}px)`},J=()=>{Q||(Q=requestAnimationFrame(de))};de(),_.addEventListener("scroll",J,{passive:!0});const je=new ResizeObserver(J);je.observe(_);let Ie=!1,Je=0;const ht=K=>{const le=R.getBoundingClientRect(),mt=X.clientWidth,Gn=Math.min(Math.max(K-le.left-Je,0),le.width-mt);_.scrollLeft=Gn/(le.width-mt)*(_.scrollWidth-_.clientWidth)},pe=K=>{Ie=!0,R.setPointerCapture(K.pointerId),_.style.scrollSnapType="none";const le=X.getBoundingClientRect();Je=K.clientX>=le.left&&K.clientX<=le.right?K.clientX-le.left:X.clientWidth/2,K.clientX>=le.left&&K.clientX<=le.right||ht(K.clientX)},et=K=>{Ie&&ht(K.clientX)},U=K=>{var le;Ie&&(Ie=!1,(le=R.hasPointerCapture)!=null&&le.call(R,K.pointerId)&&R.releasePointerCapture(K.pointerId),_.style.scrollSnapType="")};return R.addEventListener("pointerdown",pe),R.addEventListener("pointermove",et),R.addEventListener("pointerup",U),R.addEventListener("pointercancel",U),()=>{_.removeEventListener("scroll",J),je.disconnect(),cancelAnimationFrame(Q),R.removeEventListener("pointerdown",pe),R.removeEventListener("pointermove",et),R.removeEventListener("pointerup",U),R.removeEventListener("pointercancel",U)}},[C,n]),vr({title:n?l("modelPage.metaTitle")(n.model.brand_name,n.model.name):l("modelPage.metaTitleFallback"),description:n?l("modelPage.metaDescription")(n.model.brand_name,n.model.name):void 0,path:`/fahrzeuge/${e}/${t}`});const ne=qe(n?`car_models.${n.model.id}.name`:"");if(a.vehicles.enabled&&!a.bypass)return o.jsx(Ci,{message:a.vehicles.message});if(s)return s.status===404?o.jsx(ff,{}):o.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-red-600 sm:px-6",children:Ho(s,l)});if(!n)return o.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-neutral-500 sm:px-6",children:l("modelPage.loading")});const{model:q}=n,W=n.packages.map(_=>({..._,name:c.getValue("packages",_.id,"name","de",_.name),description:c.getValue("packages",_.id,"description",u,In(_,"description",u)),tagline:In(_,"tagline",u),price_text:c.getValue("packages",_.id,"price_text",u,In(_,"price_text",u))})),I=new Map([...W].sort((_,R)=>_.total_price-R.total_price).map((_,R)=>[_.id,R])),T=_=>{const R=_.tier_count??W.length,X=_.tier_rank??I.get(_.id)??0,Q=R<=1?0:X/(R-1),de=Math.round(Q*(E.length-1));return{tier:E[de],tierT:Q}},M=_=>[..._.products.map(R=>({text:R.name_override||R.scraped_name||l("modelPage.productLoading"),fromDescription:!1})),...(_.description||"").split(`
`).map(R=>R.trim()).filter(Boolean).map(R=>({text:R,fromDescription:!0}))],L=_=>`/kontakt?${new URLSearchParams({brand:q.brand_name,model:q.name,package:_.name,packageId:_.id,total:_.total_price,brandSlug:e,modelSlug:t}).toString()}`,D=`/kontakt?${new URLSearchParams({brand:q.brand_name,model:q.name}).toString()}`,H=l("modelPage.whatsappText")(q.brand_name,q.name);return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"mx-auto max-w-6xl px-4 pt-12 sm:px-6",children:[a.vehicles.enabled&&a.bypass&&o.jsx(Ti,{inline:!0}),o.jsxs("h1",{className:`text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl ${W.length?"mb-2":"mb-8"}`,children:[q.brand_name," ",o.jsx(fe,{entity:"car_models",id:q.id,field:"name",lang:"de",value:q.name,style:ne})," – ",l("modelPage.titleSuffix")]}),W.length===0&&o.jsxs("div",{className:"pb-12",children:[o.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:l("modelPage.empty")}),o.jsx(G,{to:D,className:"mt-5 inline-block rounded-md bg-brand-500 px-5 py-3 text-sm font-semibold text-white shadow-sm hover:bg-brand-600",children:l("modelPage.customRequest")})]})]}),W.length>0&&o.jsx("section",{className:"py-10 sm:py-14",style:{fontFamily:"'Barlow', sans-serif"},children:o.jsxs("div",{className:C==="grid"?"mx-auto max-w-6xl px-4 sm:px-6":"relative mx-auto max-w-[1880px] px-4 sm:px-6",children:[o.jsx("div",{ref:C==="grid"?void 0:S,className:C==="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:C==="grid"?{gridTemplateColumns:`repeat(auto-fill, minmax(${g}px, 1fr))`,gridAutoRows:"1fr"}:{gridAutoFlow:"column",gridAutoColumns:`${g}px`,gridTemplateRows:"auto auto 1fr auto",minHeight:`${Number(y)+(C==="coverflow"?22:12)}px`,...C==="coverflow"?{perspective:"1200px",paddingLeft:`calc(50% - ${g/2}px)`,paddingRight:`calc(50% - ${g/2}px)`,paddingTop:"10px"}:null},children:W.map(_=>{const{tier:R,tierT:X}=T(_);return o.jsx(S5,{pkg:_,tier:R,tierT:X,layout:C,bullets:M(_),formatPrice:se,contactUrl:L,priceNote:v,t:l},_.id)})}),C!=="grid"&&o.jsx("div",{className:`pointer-events-none absolute inset-x-0 top-1/2 z-[200] flex -translate-y-1/2 justify-center transition-opacity duration-300 ${V?"opacity-100":"opacity-0"}`,"aria-hidden":"true",children:o.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:[o.jsx(bT,{className:"h-3.5 w-3.5 text-brand-400"}),o.jsx(GT,{className:"h-4 w-4 text-brand-400"}),o.jsx(ST,{className:"h-3.5 w-3.5 text-brand-400"}),o.jsx("span",{children:l("modelPage.wheelHint")})]})}),C!=="grid"&&o.jsx("div",{ref:N,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:o.jsx("div",{ref:P,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"}})})]})}),W.length>0&&o.jsxs("div",{className:"mx-auto max-w-6xl px-4 pb-24 text-center sm:px-6 sm:pb-14",children:[o.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-300",children:l("modelPage.customHint")}),o.jsx(G,{to:D,className:"mt-2 inline-block text-sm font-semibold text-brand-600 underline hover:text-brand-500",children:l("modelPage.customRequest")})]}),(b||w)&&o.jsxs("div",{className:"fixed inset-x-0 bottom-0 z-20 flex gap-3 border-t border-neutral-200 bg-white/95 px-4 py-3 shadow-[0_-8px_24px_rgba(0,0,0,0.08)] backdrop-blur dark:border-neutral-800 dark:bg-neutral-950/95 sm:hidden",children:[b&&o.jsxs("a",{href:rs(b),onClick:()=>Zt("contact_call"),className:"flex flex-1 items-center justify-center gap-2 rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white",children:[o.jsx(zn,{className:"h-4 w-4"}),l("nav.call")]}),w&&o.jsxs("a",{href:Vo(w,H),target:"_blank",rel:"noopener noreferrer",onClick:()=>Zt("contact_whatsapp"),className:"flex flex-1 items-center justify-center gap-2 rounded-md border border-neutral-300 px-4 py-2.5 text-sm font-semibold text-neutral-700 dark:border-neutral-700 dark:text-neutral-200",children:[o.jsx(rf,{className:"h-4 w-4"}),l("nav.whatsapp")]})]})]})}const E5={car:oo,caravan:gT,"car-front":hT,cog:_T,zap:xP,boxes:dT,"shield-alert":aP,video:mP},C5=m.lazy(()=>Y(()=>import("./iconRegistry-DGdCa1eX.js"),__vite__mapDeps([2,3,4,5])));function T5({name:e,className:t="h-6 w-6",...n}){if(!e)return null;const r=E5[e];return r?o.jsx(r,{className:t,...n}):o.jsx(m.Suspense,{fallback:o.jsx("span",{className:`inline-block ${t}`,"aria-hidden":"true"}),children:o.jsx(C5,{name:e,className:t,...n})})}function P5(){const[e,t]=m.useState([]),n=Oo(),{t:r,language:s}=ye(),i=Ue();return m.useEffect(()=>{oe.get("/services").then(t).catch(()=>t([]))},[]),vr({title:r("leistungen.metaTitle"),description:r("leistungen.metaDescription"),path:"/leistungen"}),n.services.enabled&&!n.bypass?o.jsx(Ci,{message:n.services.message}):o.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[n.services.enabled&&n.bypass&&o.jsx(Ti,{inline:!0}),o.jsx(Ye,{k:"leistungen.title",as:"h1",className:"mb-2 block text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl"}),o.jsx(Ye,{k:"leistungen.intro",as:"p",className:"mb-10 block max-w-2xl text-neutral-600 dark:text-neutral-300"}),o.jsx("div",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:e.map(a=>({...a,title:In(a,"title",s),description:In(a,"description",s),cta_label:In(a,"cta_label",s)})).map((a,l)=>o.jsxs(Ke,{index:l%3,shine:!0,className:"overflow-hidden rounded-xl border border-neutral-200 bg-white dark:border-neutral-800 dark:bg-neutral-900",children:[o.jsxs("div",{className:"relative aspect-[4/3]",children:[a.image_path&&o.jsx("img",{src:a.image_path,alt:a.title,className:"h-full w-full object-cover",loading:"lazy"}),o.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:o.jsx(T5,{name:a.icon_name,className:"h-6 w-6"})})]}),o.jsxs("div",{className:"p-6 pt-8",children:[o.jsx(fe,{entity:"services",id:a.id,field:"title",value:a.title,as:"h2",className:"mb-2 block font-semibold text-neutral-900 dark:text-white"}),o.jsx(fe,{entity:"services",id:a.id,field:"description",value:a.description,as:"p",multiline:!0,className:"mb-3 block text-sm text-neutral-600 dark:text-neutral-300"}),o.jsxs(G,{to:a.cta_url||"/kontakt",className:"text-sm font-semibold text-brand-600 hover:underline dark:text-brand-400",children:[i.canEdit("services")||a.cta_label?o.jsx(fe,{entity:"services",id:a.id,field:"cta_label",value:a.cta_label,placeholder:r("leistungen.contact")}):r("leistungen.contact")," ","→"]})]})]},a.id))}),o.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:[o.jsx(Ye,{k:"leistungen.notListedTitle",as:"h2",className:"mb-2 block text-xl font-bold text-neutral-900 dark:text-white"}),o.jsx(Ye,{k:"leistungen.notListedText",as:"p",className:"mb-5 block text-neutral-600 dark:text-neutral-300"}),o.jsx(G,{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:o.jsx(Ye,{k:"leistungen.contact"})})]})]})}function N5({name:e,description:t,className:n="",children:r}){const{consent:s,acceptAll:i,openSettings:a}=yr();return s.external?r:o.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:[o.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.`}),o.jsxs("div",{className:"flex flex-wrap justify-center gap-2",children:[o.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"}),o.jsx("button",{type:"button",onClick:a,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Cookie-Einstellungen"})]})]})}const _5=e=>(e||"").replace(/[^\d+]/g,""),Sa={fontFamily:"'Michroma', sans-serif"};function M5({className:e}){return o.jsx("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:o.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 L5({path:e,className:t}){return o.jsx("svg",{className:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o.jsx("path",{d:e})})}const A5={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 Ip({formatted:e,color:t}){const[n,r]=e.split("€");return o.jsxs("span",{style:{...Sa,color:t},children:[n,o.jsx("span",{style:{fontFamily:"'Barlow', sans-serif"},children:"€"}),r]})}function ea({icon:e,label:t,name:n,type:r="text",required:s,value:i,onChange:a,placeholder:l,autoComplete:u,inputMode:c}){return o.jsxs("div",{className:"flex flex-col gap-2",children:[o.jsx("label",{htmlFor:`kf-${n}`,className:"text-xs font-semibold uppercase tracking-[2px]",style:{color:"var(--kf-label)"},children:t}),o.jsxs("div",{className:"relative flex items-center",children:[o.jsx(e,{className:"pointer-events-none absolute left-[14px] h-[17px] w-[17px]",style:{color:"var(--kf-fieldicon)"}}),o.jsx("input",{id:`kf-${n}`,name:n,type:r,required:s,autoComplete:u,inputMode:c,value:i,onChange:a,placeholder:l,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 D5(){const[e]=vk(),{phone:t,whatsapp:n,contact_email:r,address_street:s,address_zip:i,address_city:a,business_hours:l,price_note:u,price_note_en:c}=kt(),{t:d,language:f}=ye(),h=Fo(),g=h.slot("contact_bg_light").custom,y=h.slot("contact_bg_dark").custom,b={...g&&{"--kontakt-bg-light":`url("${g}")`},...y&&{"--kontakt-bg-dark":`url("${y}")`}},{consent:w}=yr(),p=[s,[i,a].filter(Boolean).join(" ")].filter(Boolean).join(", "),x=encodeURIComponent(p),v=`https://www.google.com/maps/dir/?api=1&destination=${x}`,k=mv(l,d("footer.closed")),E=U=>new Intl.NumberFormat(f==="de"?"de-DE":"en-US",{style:"currency",currency:"EUR"}).format(U),[C,j]=m.useState(()=>({name:"",email:"",phone:"",vin:"",message:e.get("topic")||""})),[S,N]=m.useState("idle"),[P,V]=m.useState(""),[B,se]=m.useState([]),[ne,q]=m.useState([]),W=m.useRef(Date.now()),I=m.useRef(null),T=e.get("packageId"),M=e.get("brandSlug"),L=e.get("modelSlug"),[D,H]=m.useState(e.get("total")?Number(e.get("total")):null),[_,R]=m.useState(null),X=f==="en"&&c||u;m.useEffect(()=>{!T||!M||!L||oe.get(`/models/${encodeURIComponent(M)}/${encodeURIComponent(L)}/packages`).then(U=>{var le;const K=(le=U==null?void 0:U.packages)==null?void 0:le.find(mt=>String(mt.id)===String(T));K&&(H(Number(K.total_price)),R(K.price_text||null))}).catch(()=>{})},[T,M,L]),m.useEffect(()=>{if(!T){se([]);return}oe.get(`/packages/${T}/upgrades`).then(se).catch(()=>se([]))},[T]);const Q=U=>{q(K=>K.includes(U)?K.filter(le=>le!==U):[...K,U])},de=B.filter(U=>ne.includes(U.id)).reduce((U,K)=>U+Number(K.price),0);vr({title:d("contactPage.metaTitle"),description:d("contactPage.metaDescription"),path:"/kontakt"});const J={brand:e.get("brand")||"",model:e.get("model")||"",package:e.get("package")||""},je=!!(J.brand&&J.model&&J.package),Ie=!je&&!!(J.brand&&J.model),Je=U=>j(K=>({...K,[U.target.name]:U.target.value})),ht=async U=>{var K;U.preventDefault(),N("sending"),V("");try{await oe.post("/contact",{...C,website:((K=U.target.elements.website)==null?void 0:K.value)||"",fill_ms:Date.now()-W.current,brand_name:J.brand||null,model_name:J.model||null,package_name:J.package||null,product_name:e.get("product")||null,package_id:T||null,package_product_id:e.get("productId")||null,upgrade_ids:ne}),N("sent"),j({name:"",email:"",phone:"",vin:"",message:""}),Zt("generate_lead",{package_name:J.package||void 0,value:D||void 0,currency:"EUR"})}catch(le){V(Ho(le,d)),N("idle")}};m.useEffect(()=>{S==="sent"&&I.current&&(I.current.scrollIntoView({behavior:"smooth",block:"center"}),I.current.focus({preventScroll:!0}))},[S]);const pe=je?d("contactPage.whatsappText")(J.brand,J.model,J.package):Ie?d("modelPage.whatsappText")(J.brand,J.model):"",et=[{key:"premium",title:d("contactPage.featurePremiumTitle"),sub:d("contactPage.featurePremiumSub")},{key:"germany",title:d("contactPage.featureGermanyTitle"),sub:d("contactPage.featureGermanySub")},{key:"individual",title:d("contactPage.featureIndividualTitle"),sub:d("contactPage.featureIndividualSub")},{key:"experts",title:d("contactPage.featureExpertsTitle"),sub:d("contactPage.featureExpertsSub")}];return o.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",...b},children:o.jsxs("div",{className:"relative z-10 mx-auto max-w-[1280px] pt-10 sm:pt-14",children:[o.jsx("div",{className:"mb-3 text-[13px] font-semibold uppercase tracking-[6px]",style:{color:"var(--kf-accent2)"},children:d("contactPage.heroEyebrow")}),o.jsxs("h1",{className:"text-[34px] leading-[1.08] sm:text-[46px] lg:text-[60px]",style:{...Sa,color:"var(--kf-text)"},children:[d("contactPage.heroTitlePre")," ",o.jsx("span",{style:{color:"var(--kf-accent2)"},children:d("contactPage.heroTitleAccent")})," ",d("contactPage.heroTitlePost")]}),o.jsx("p",{className:"mb-10 mt-5 max-w-[520px] text-lg leading-[1.55]",style:{color:"var(--kf-muted)"},children:d("contactPage.heroSubtitle")}),o.jsxs("div",{className:"grid grid-cols-1 items-start gap-10 min-[981px]:grid-cols-[minmax(0,1.35fr)_minmax(320px,1fr)]",children:[o.jsx("div",{children:o.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:[je&&o.jsxs("div",{className:"mb-8 rounded-xl border px-6 py-[22px]",style:{background:"var(--kf-pkgbg)",borderColor:"var(--kf-pkgbrd)"},children:[o.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:[o.jsx(XT,{className:"h-4 w-4"}),d("contactPage.packageBoxTitle")]}),o.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-5 gap-y-2 text-[15px]",children:[o.jsx("span",{style:{color:"var(--kf-label)"},children:d("contactPage.contextBrand")}),o.jsx("span",{className:"font-semibold",style:{color:"var(--kf-text2)"},children:J.brand}),o.jsx("span",{style:{color:"var(--kf-label)"},children:d("contactPage.contextModel")}),o.jsx("span",{className:"font-semibold",style:{color:"var(--kf-text2)"},children:J.model}),o.jsx("span",{style:{color:"var(--kf-label)"},children:d("contactPage.contextPackage")}),o.jsx("span",{className:"font-semibold",style:{color:"var(--kf-text2)"},children:J.package})]}),o.jsxs("div",{className:"mt-3.5 flex items-baseline justify-between border-t pt-3.5",style:{borderColor:"var(--kf-pkgbrd)"},children:[o.jsx("span",{className:"text-[13px] font-semibold uppercase tracking-wide",style:{color:"var(--kf-muted)"},children:d("contactPage.packagePrice")}),o.jsx("span",{className:"text-xl",children:_||(D!=null?o.jsx(Ip,{formatted:E(D),color:"var(--kf-text)"}):"—")})]}),X&&!_&&o.jsx("div",{className:"mt-1 text-right text-xs",style:{color:"var(--kf-muted)"},children:X})]}),Ie&&o.jsxs("div",{className:"mb-8 flex items-center gap-3 rounded-xl border px-6 py-4 text-[15px]",style:{background:"var(--kf-pkgbg)",borderColor:"var(--kf-pkgbrd)"},children:[o.jsx(oo,{className:"h-4 w-4",style:{color:"var(--kf-accent2)"}}),o.jsx("span",{style:{color:"var(--kf-label)"},children:d("contactPage.vehicleBoxTitle")}),o.jsxs("span",{className:"font-semibold",style:{color:"var(--kf-text2)"},children:[J.brand," ",J.model]})]}),B.length>0&&o.jsxs("div",{className:"mb-8 rounded-xl border p-5",style:{background:"var(--kf-field)",borderColor:"var(--kf-fieldbrd)"},children:[o.jsx("div",{className:"mb-3 text-xs font-bold uppercase tracking-[2px]",style:{color:"var(--kf-accent2)"},children:d("contactPage.optionalUpgrades")}),o.jsx("div",{className:"space-y-2",children:B.map(U=>o.jsxs("label",{className:"flex cursor-pointer items-start gap-3 rounded-lg border p-3 text-sm",style:{borderColor:"var(--kf-fieldbrd)"},children:[o.jsx("input",{type:"checkbox",checked:ne.includes(U.id),onChange:()=>Q(U.id),className:"mt-0.5 h-4 w-4 rounded",style:{accentColor:"var(--kf-accent)"}}),o.jsxs("span",{className:"flex-1",children:[o.jsx("span",{className:"block font-semibold",style:{color:"var(--kf-text2)"},children:In(U,"name",f)}),U.description&&o.jsx("span",{className:"block text-xs",style:{color:"var(--kf-muted)"},children:In(U,"description",f)})]}),o.jsxs("span",{className:"font-semibold",style:{color:"var(--kf-accent2)"},children:["+",E(U.price)]})]},U.id))}),ne.length>0&&D!=null&&!_&&o.jsxs("div",{className:"mt-3 flex items-baseline justify-between border-t pt-3 text-sm",style:{borderColor:"var(--kf-pkgbrd)"},children:[o.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide",style:{color:"var(--kf-muted)"},children:d("contactPage.totalWithUpgrades")}),o.jsx(Ip,{formatted:E(D+de),color:"var(--kf-text)"})]})]}),o.jsx("h2",{className:"mb-8 text-xl",style:{...Sa,color:"var(--kf-text)"},children:d("contactPage.formTitle")}),o.jsx("div",{role:"status","aria-live":"polite",children:S==="sent"&&o.jsxs("div",{ref:I,tabIndex:-1,className:"rounded-[10px] border p-5 outline-none",style:{borderColor:"var(--kf-accent)",background:"var(--kf-accentsoft)"},children:[o.jsx("div",{className:"text-base font-bold",style:{color:"var(--kf-accent2)"},children:d("contactPage.sentTitle")}),o.jsx("div",{className:"mt-1 text-sm",style:{color:"var(--kf-muted)"},children:d("contactPage.sentText")}),o.jsx("button",{type:"button",onClick:()=>{W.current=Date.now(),N("idle")},className:"mt-4 text-sm font-semibold underline",style:{color:"var(--kf-text2)"},children:d("contactPage.sendAnother")})]})}),S!=="sent"&&o.jsxs("form",{onSubmit:ht,noValidate:!1,children:[o.jsxs("div",{"aria-hidden":"true",style:{position:"absolute",left:"-10000px",width:"1px",height:"1px",overflow:"hidden"},children:[o.jsx("label",{htmlFor:"kf-website",children:"Website"}),o.jsx("input",{id:"kf-website",name:"website",type:"text",tabIndex:-1,autoComplete:"off",defaultValue:""})]}),o.jsxs("div",{className:"grid grid-cols-1 gap-6 min-[641px]:grid-cols-2",children:[o.jsx(ea,{icon:fP,label:d("contactPage.nameLabel"),name:"name",autoComplete:"name",required:!0,value:C.name,onChange:Je,placeholder:d("contactPage.namePlaceholder")}),o.jsx(ea,{icon:vc,label:d("contactPage.emailLabel"),name:"email",type:"email",autoComplete:"email",required:!0,value:C.email,onChange:Je,placeholder:d("contactPage.emailPlaceholder")}),o.jsx(ea,{icon:zn,label:d("contactPage.phoneLabel"),name:"phone",type:"tel",inputMode:"tel",autoComplete:"tel",value:C.phone,onChange:Je,placeholder:d("contactPage.phonePlaceholder")}),o.jsx(ea,{icon:oo,label:d("contactPage.vinLabel"),name:"vin",value:C.vin,onChange:Je,placeholder:d("contactPage.vinPlaceholder")})]}),o.jsxs("div",{className:"mt-6 flex flex-col gap-2",children:[o.jsx("label",{htmlFor:"kf-message",className:"text-xs font-semibold uppercase tracking-[2px]",style:{color:"var(--kf-label)"},children:d("contactPage.messageLabel")}),o.jsx("textarea",{id:"kf-message",name:"message",rows:5,value:C.message,onChange:Je,placeholder:d("contactPage.messagePlaceholder"),className:"w-full resize-y rounded-lg border px-4 py-3.5 text-[15px] outline-none",style:{background:"var(--kf-field)",borderColor:"var(--kf-fieldbrd)",color:"var(--kf-text2)"}})]}),o.jsx("div",{role:"alert","aria-live":"assertive",children:P&&o.jsx("p",{className:"mt-4 text-sm text-red-600 dark:text-red-400",children:P})}),o.jsxs("div",{className:"mt-8 flex flex-wrap items-center gap-5",children:[o.jsxs("button",{type:"submit",disabled:S==="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:[o.jsx(sP,{className:"h-[18px] w-[18px]"}),d(S==="sending"?"contactPage.sending":"contactPage.submit")]}),o.jsx("div",{className:"text-[13px]",style:{color:"var(--kf-label)"},children:d("contactPage.requiredHint")})]}),o.jsxs("p",{className:"mt-5 text-[13px] leading-relaxed",style:{color:"var(--kf-muted)"},children:[d("contactPage.privacyPre"),o.jsx(G,{to:"/datenschutz",className:"underline",style:{color:"var(--kf-text2)"},children:d("contactPage.privacyLink")}),d("contactPage.privacyPost")]})]})]})}),o.jsxs("div",{className:"flex flex-col gap-6",children:[o.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:[o.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)"}}),o.jsx("h2",{className:"mb-7 text-[17px]",style:{...Sa,color:"var(--kf-text)"},children:d("contactPage.cardTitle")}),o.jsxs("div",{className:"flex flex-col gap-5",children:[o.jsxs("div",{className:"flex items-start gap-4",children:[o.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full",style:{background:"var(--kf-accentsoft)"},children:o.jsx(zn,{className:"h-[18px] w-[18px]",style:{color:"var(--kf-accent2)"}})}),o.jsxs("div",{children:[o.jsx("div",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:d("contactPage.phone")}),o.jsx("a",{href:`tel:${_5(t)}`,onClick:()=>Zt("contact_call"),className:"text-base font-semibold",style:{color:"var(--kf-text2)"},children:t})]})]}),o.jsxs("div",{className:"flex items-start gap-4",children:[o.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full",style:{background:"var(--kf-accentsoft)"},children:o.jsx(vc,{className:"h-[18px] w-[18px]",style:{color:"var(--kf-accent2)"}})}),o.jsxs("div",{children:[o.jsx("div",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:d("contactPage.email")}),o.jsx("a",{href:`mailto:${r}`,className:"text-base font-semibold",style:{color:"var(--kf-text2)"},children:r})]})]}),o.jsxs("div",{className:"flex items-start gap-4",children:[o.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full",style:{background:"var(--kf-accentsoft)"},children:o.jsx(sv,{className:"h-[18px] w-[18px]",style:{color:"var(--kf-accent2)"}})}),o.jsxs("div",{children:[o.jsx("div",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:d("contactPage.address")}),o.jsxs("div",{className:"text-base font-semibold leading-[1.4]",style:{color:"var(--kf-text2)"},children:[s,o.jsx("br",{}),[i,a].filter(Boolean).join(" ")]})]})]}),n&&o.jsxs("div",{className:"flex items-start gap-4",children:[o.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full",style:{background:"var(--kf-accentsoft)"},children:o.jsx(M5,{className:"h-[18px] w-[18px]",style:{color:"var(--kf-accent2)"}})}),o.jsxs("div",{children:[o.jsx("div",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:d("nav.whatsapp")}),o.jsx("a",{href:Vo(n,pe),target:"_blank",rel:"noopener noreferrer",onClick:()=>Zt("contact_whatsapp"),className:"text-base font-semibold",style:{color:"var(--kf-text2)"},children:n})]})]})]}),o.jsxs("div",{className:"mt-7 border-t pt-6",style:{borderColor:"var(--kf-divider)"},children:[o.jsx("div",{className:"mb-3 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:d("contactPage.hours")}),o.jsx("div",{className:"grid grid-cols-[auto_1fr] gap-x-6 gap-y-2 text-[15px]",children:k.map(U=>o.jsxs("span",{style:{display:"contents"},children:[o.jsx("span",{style:{color:"var(--kf-label)"},children:U.days}),o.jsx("span",{children:U.label})]},U.key))})]})]}),o.jsxs("div",{className:"relative overflow-hidden rounded-2xl border",style:{background:"var(--kf-card)",borderColor:"var(--kf-cardbrd)",boxShadow:"var(--kf-shadow)"},children:[w.external&&o.jsxs("a",{href:v,target:"_blank",rel:"noopener noreferrer",className:"absolute left-3.5 top-3.5 z-10 inline-flex items-center gap-2 rounded-lg border px-3.5 py-2 text-[13px] font-semibold hover:border-[var(--kf-accent)]",style:{background:"var(--kf-pill)",borderColor:"var(--kf-pillbrd)",color:"var(--kf-text2)",boxShadow:"var(--kf-shadow2)"},children:[d("contactPage.mapOpenChip"),o.jsx(LT,{className:"h-3.5 w-3.5",style:{color:"var(--kf-accent2)"}})]}),o.jsx(N5,{name:d("contactPage.mapEmbedName"),className:"h-[210px] w-full",children:o.jsx("div",{className:"h-[210px] overflow-hidden",children:o.jsx("iframe",{title:d("contactPage.mapIframeTitle"),src:`https://www.google.com/maps?q=${x}&output=embed`,width:"100%",height:"290",style:{border:0,display:"block",marginTop:"-60px"},loading:"lazy",referrerPolicy:"no-referrer-when-downgrade"})})}),o.jsxs("a",{href:v,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2.5 border-t px-4 py-4 text-[13px] font-bold uppercase tracking-[3px] hover:bg-[var(--kf-accentsoft)]",style:{borderColor:"var(--kf-divider)",color:"var(--kf-accent2)"},children:[d("contactPage.routePlan")," →"]})]})]})]}),o.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:et.map(U=>o.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:[o.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:o.jsx(L5,{path:A5[U.key],className:"h-[22px] w-[22px]"})}),o.jsxs("div",{children:[o.jsx("div",{className:"text-[15px] font-bold",style:{color:"var(--kf-text)"},children:U.title}),o.jsx("div",{className:"mt-0.5 text-[13px]",style:{color:"var(--kf-muted)"},children:U.sub})]})]},U.key))})]})})}const Wl="hifi-chunk-reload",Z=e=>m.lazy(()=>e().then(t=>{try{sessionStorage.removeItem(Wl)}catch{}return t},t=>{let n=!0;try{n=!!sessionStorage.getItem(Wl),sessionStorage.setItem(Wl,"1")}catch{}if(n)throw t;return window.location.reload(),new Promise(()=>{})})),R5=Z(()=>Y(()=>import("./GalleryOverview-BjhhRzy4.js"),[])),I5=Z(()=>Y(()=>import("./GalleryBrandPage-B8648MwY.js"),[])),V5=Z(()=>Y(()=>import("./GalleryProjectPage-x_7enCay.js"),[])),F5=Z(()=>Y(()=>import("./DownloadsPage-C4oU3BD1.js"),__vite__mapDeps([6,7,3]))),O5=Z(()=>Y(()=>import("./Impressum-CqsUDzsX.js"),__vite__mapDeps([8,9]))),z5=Z(()=>Y(()=>import("./Datenschutz-DZkhNEY0.js"),__vite__mapDeps([10,9]))),B5=Z(()=>Y(()=>import("./AGB-DdmSbwED.js"),__vite__mapDeps([11,9]))),$5=Z(()=>Y(()=>import("./SetupWizard-Bk7jDQz1.js"),[])),H5=Z(()=>Y(()=>import("./Login-eQfHc9mc.js"),[])),U5=Z(()=>Y(()=>import("./ConfirmEmail-DNhvEY5W.js"),[])),W5=Z(()=>Y(()=>import("./ResetPassword-BLLRbHQO.js"),[])),G5=Z(()=>Y(()=>import("./Dashboard-CW4pLHou.js"),__vite__mapDeps([12,13,14]))),K5=Z(()=>Y(()=>import("./Traffic-Ce8aXsLe.js"),[])),q5=Z(()=>Y(()=>import("./Brands-CjpbffVT.js"),__vite__mapDeps([15,0,1,16,17,18,4,19]))),Y5=Z(()=>Y(()=>import("./Models-D636IvZl.js"),__vite__mapDeps([20,0,1,16,17,18,4,19]))),X5=Z(()=>Y(()=>import("./GalleryBrands-Dab6Yn6a.js"),__vite__mapDeps([21,0,1,17,18,4,22]))),Z5=Z(()=>Y(()=>import("./GalleryProjects-CZtr1G06.js"),__vite__mapDeps([23,0,1,17,18,4,22]))),Q5=Z(()=>Y(()=>import("./GalleryPhotos-DncT1Eas.js"),__vite__mapDeps([24,17,18,4,22,1]))),J5=Z(()=>Y(()=>import("./Packages-hJmwX0i2.js"),__vite__mapDeps([25,26,16,18,5,4]))),e4=Z(()=>Y(()=>import("./Services-DC3iDQcC.js"),__vite__mapDeps([27,0,1,2,3,4,5,28,17,18]))),t4=Z(()=>Y(()=>import("./Faqs-r2Enrc17.js"),__vite__mapDeps([29,28,17,18,4]))),n4=Z(()=>Y(()=>import("./Partners-B2GlgbaG.js"),__vite__mapDeps([30,0,1,28,17,18,4]))),r4=Z(()=>Y(()=>import("./Downloads-CGNfTlgZ.js"),__vite__mapDeps([31,7,28,17,18,4]))),s4=Z(()=>Y(()=>import("./HomeSections-CN0u2c2D.js"),__vite__mapDeps([32,33,16,34]))),i4=Z(()=>Y(()=>import("./ContactRequests-J7cHaUWk.js"),__vite__mapDeps([35,14]))),a4=Z(()=>Y(()=>import("./AccountSettings-BHuzDIHq.js"),[])),o4=Z(()=>Y(()=>import("./AdminUsers-De-9lldc.js"),[])),l4=Z(()=>Y(()=>import("./PermissionGroups-B_oFmBLZ.js"),[])),u4=Z(()=>Y(()=>import("./SettingsLayout-Bdjn3IM6.js"),[])),ta=Z(()=>Y(()=>import("./WebsiteSettings-C3D3Fx8C.js"),__vite__mapDeps([36,0,1,34,17,18,4,26]))),c4=Z(()=>Y(()=>import("./LegalSettings-0KkFi3OT.js"),__vite__mapDeps([37,33]))),d4=Z(()=>Y(()=>import("./UpdateSettings-C1AinrWn.js"),[])),f4=Z(()=>Y(()=>import("./EmailSettings-D9QXbFdm.js"),__vite__mapDeps([38,33]))),h4=Z(()=>Y(()=>import("./DatabaseSettings-3UBP2xHY.js"),__vite__mapDeps([39,13]))),m4=Z(()=>Y(()=>import("./ExportImportSettings-Zgsg5sZ8.js"),[])),p4=Z(()=>Y(()=>import("./MaintenanceSettings-BAaE5XQz.js"),[])),g4=Z(()=>Y(()=>import("./CountdownSettings-CBe7ZBg2.js"),[])),x4=Z(()=>Y(()=>import("./ConnectionSettings-CwVBkv1K.js"),[])),y4=Z(()=>Y(()=>import("./HiggsfieldSettings-6YLtOuK1.js"),__vite__mapDeps([40,0,1]))),v4=Z(()=>Y(()=>import("./ResetSettings-D69mCGIf.js"),[])),w4=o.jsx("div",{className:"min-h-screen bg-white dark:bg-neutral-950"});function b4(){const{packageId:e}=kd();return o.jsx(fr,{to:`/admin/packages?paket=${e}`,replace:!0})}function k4(){return o.jsxs(gE,{reducedMotion:"user",children:[o.jsx(KC,{}),o.jsx(XC,{}),o.jsx(nT,{children:o.jsx(m.Suspense,{fallback:w4,children:o.jsxs(sk,{children:[o.jsx($,{path:"/setup",element:o.jsx($5,{})}),o.jsxs($,{element:o.jsx(AN,{}),children:[o.jsx($,{path:"/",element:o.jsx(d5,{})}),o.jsx($,{path:"/fahrzeuge",element:o.jsx(g5,{})}),o.jsx($,{path:"/fahrzeuge/:brandSlug",element:o.jsx(x5,{})}),o.jsx($,{path:"/fahrzeuge/:brandSlug/:modelSlug",element:o.jsx(j5,{})}),o.jsx($,{path:"/galerie",element:o.jsx(R5,{})}),o.jsx($,{path:"/galerie/:brandSlug",element:o.jsx(I5,{})}),o.jsx($,{path:"/galerie/:brandSlug/:projectSlug",element:o.jsx(V5,{})}),o.jsx($,{path:"/leistungen",element:o.jsx(P5,{})}),o.jsx($,{path:"/kontakt",element:o.jsx(D5,{})}),o.jsx($,{path:"/downloads",element:o.jsx(F5,{})}),o.jsx($,{path:"/impressum",element:o.jsx(O5,{})}),o.jsx($,{path:"/datenschutz",element:o.jsx(z5,{})}),o.jsx($,{path:"/agb",element:o.jsx(B5,{})}),o.jsx($,{path:"*",element:o.jsx(ff,{})})]}),o.jsx($,{path:"/admin/login",element:o.jsx(H5,{})}),o.jsx($,{path:"/admin/email-bestaetigen",element:o.jsx(U5,{})}),o.jsx($,{path:"/admin/passwort-zuruecksetzen",element:o.jsx(W5,{})}),o.jsx($,{path:"/admin",element:o.jsx(ZN,{}),children:o.jsxs($,{element:o.jsx(XN,{}),children:[o.jsx($,{index:!0,element:o.jsx(G5,{})}),o.jsx($,{path:"traffic",element:o.jsx(ue,{permission:"system.admin",children:o.jsx(K5,{})})}),o.jsx($,{path:"account",element:o.jsx(a4,{})}),o.jsx($,{path:"brands",element:o.jsx(ue,{permission:"brands.manage",children:o.jsx(q5,{})})}),o.jsx($,{path:"models",element:o.jsx(ue,{permission:"models.manage",children:o.jsx(Y5,{})})}),o.jsx($,{path:"gallery-brands",element:o.jsx(ue,{permission:"gallery.manage",children:o.jsx(X5,{})})}),o.jsx($,{path:"gallery-projects",element:o.jsx(ue,{permission:"gallery.manage",children:o.jsx(Z5,{})})}),o.jsx($,{path:"gallery-projects/:projectId/photos",element:o.jsx(ue,{permission:"gallery.manage",children:o.jsx(Q5,{})})}),o.jsx($,{path:"packages",element:o.jsx(ue,{permission:"packages.manage",children:o.jsx(J5,{})})}),o.jsx($,{path:"packages/:packageId/*",element:o.jsx(b4,{})}),o.jsx($,{path:"services",element:o.jsx(ue,{permission:"services.manage",children:o.jsx(e4,{})})}),o.jsx($,{path:"faqs",element:o.jsx(ue,{permission:"content.manage",children:o.jsx(t4,{})})}),o.jsx($,{path:"partners",element:o.jsx(ue,{permission:"content.manage",children:o.jsx(n4,{})})}),o.jsx($,{path:"downloads",element:o.jsx(ue,{permission:"downloads.manage",children:o.jsx(r4,{})})}),o.jsx($,{path:"home-sections",element:o.jsx(ue,{permission:"content.manage",children:o.jsx(s4,{})})}),o.jsx($,{path:"contact-requests",element:o.jsx(ue,{permission:"contact.manage",children:o.jsx(i4,{})})}),o.jsx($,{path:"users",element:o.jsx(ue,{permission:"users.manage",children:o.jsx(o4,{})})}),o.jsx($,{path:"permission-groups",element:o.jsx(ue,{permission:"permission_groups.manage",children:o.jsx(l4,{})})}),o.jsxs($,{path:"settings",element:o.jsx(ue,{permission:["settings.manage","system.admin","system.update"],children:o.jsx(u4,{})}),children:[o.jsx($,{index:!0,element:o.jsx(fr,{to:"company",replace:!0})}),o.jsx($,{path:"website",element:o.jsx(fr,{to:"../company",replace:!0})}),o.jsx($,{path:"company",element:o.jsx(ue,{permission:"settings.manage",children:o.jsx(ta,{section:"company"})})}),o.jsx($,{path:"design",element:o.jsx(ue,{permission:"settings.manage",children:o.jsx(ta,{section:"design"})})}),o.jsx($,{path:"images",element:o.jsx(ue,{permission:"settings.manage",children:o.jsx(ta,{section:"images"})})}),o.jsx($,{path:"legal",element:o.jsx(ue,{permission:"settings.manage",children:o.jsx(c4,{})})}),o.jsx($,{path:"maintenance",element:o.jsx(ue,{permission:"settings.manage",children:o.jsx(p4,{})})}),o.jsx($,{path:"countdown",element:o.jsx(ue,{permission:"settings.manage",children:o.jsx(g4,{})})}),o.jsx($,{path:"google",element:o.jsx(ue,{permission:"system.admin",children:o.jsx(ta,{section:"google"})})}),o.jsx($,{path:"connections",element:o.jsx(ue,{permission:"system.admin",children:o.jsx(x4,{})})}),o.jsx($,{path:"ai-images",element:o.jsx(ue,{permission:"system.admin",children:o.jsx(y4,{})})}),o.jsx($,{path:"email",element:o.jsx(ue,{permission:"system.admin",children:o.jsx(f4,{})})}),o.jsx($,{path:"database",element:o.jsx(ue,{permission:"system.admin",children:o.jsx(h4,{})})}),o.jsx($,{path:"export-import",element:o.jsx(ue,{permission:"system.admin",children:o.jsx(m4,{})})}),o.jsx($,{path:"update",element:o.jsx(ue,{permission:"system.update",children:o.jsx(d4,{})})}),o.jsx($,{path:"reset",element:o.jsx(ue,{permission:"system.admin",children:o.jsx(v4,{})})})]})]})})]})})})]})}Gl.createRoot(document.getElementById("root")).render(o.jsx(qp.StrictMode,{children:o.jsx(hk,{basename:"/".replace(/\/$/,"")||"/",children:o.jsx(vP,{children:o.jsx(kP,{children:o.jsx(DP,{children:o.jsx(k4,{})})})})})}));export{ZC as $,V4 as A,L4 as B,O4 as C,R4 as D,Ye as E,I4 as F,Pi as G,nP as H,Be as I,vT as J,ST as K,G as L,LT as M,ff as N,B4 as O,z4 as P,kc as Q,Ke as R,Lv as S,F4 as T,iv as U,df as V,D4 as W,Ei as X,JP as Y,T5 as Z,U4 as _,kt as a,P4 as a0,Qe as a1,Sd as a2,QP as a3,eN as a4,C4 as a5,en as a6,_v as a7,T4 as a8,qp as a9,sP as aA,aP as aB,lP as aC,cP as aD,fP as aE,mP as aF,xP as aG,oT as aH,E4 as aI,aT as aJ,S4 as aK,te as aa,Vp as ab,uT as ac,dT as ad,oo as ae,hT as af,gT as ag,tv as ah,bT as ai,ET as aj,TT as ak,nv as al,_T as am,DT as an,IT as ao,FT as ap,zT as aq,rv as ar,vc as as,sv as at,rf as au,GT as av,qT as aw,XT as ax,zn as ay,eP as az,vr as b,oe as c,fe as d,Ho as e,Tp as f,kd as g,yd as h,kr as i,o as j,Wn as k,KN as l,xr as m,fr as n,af as o,vk as p,N4 as q,m as r,$4 as s,W4 as t,ye as u,_4 as v,M4 as w,A4 as x,$N as y,H4 as z};