12 lines
33 KiB
JavaScript
12 lines
33 KiB
JavaScript
;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="252a5b97-f957-1a7b-7f54-ebb65d3ee8ba")}catch(e){}}();
|
|
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,209157,e=>{"use strict";function t(e,t){let i=t&&t.cache?t.cache:l,a=t&&t.serializer?t.serializer:o;return(t&&t.strategy?t.strategy:function(e,t){var o,i;let l=1===e.length?r:n;return o=t.cache.create(),i=t.serializer,l.bind(this,e,o,i)})(e,{cache:i,serializer:a})}function r(e,t,r,n){let o=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),i=t.get(o);return void 0===i&&(i=e.call(this,n),t.set(o,i)),i}function n(e,t,r){let n=Array.prototype.slice.call(arguments,3),o=r(n),i=t.get(o);return void 0===i&&(i=e.apply(this,n),t.set(o,i)),i}let o=function(){return JSON.stringify(arguments)};class i{cache;constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}}let l={create:function(){return new i}};e.s(["memoize",()=>t,"strategies",0,{variadic:function(e,t){var r,o;return r=t.cache.create(),o=t.serializer,n.bind(this,e,r,o)},monadic:function(e,t){var n,o;return n=t.cache.create(),o=t.serializer,r.bind(this,e,n,o)}}])},801296,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return s},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return a}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});function i(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function l(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function a(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,l(e));else t.set(r,l(n));return t}function s(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},462307,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return a},formatWithValidation:function(){return u},urlObjectKeys:function(){return s}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=e.r(744066)._(e.r(801296)),l=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",a=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(i.urlQueryToSearchParams(s)));let c=e.search||s&&`?${s}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||l.test(n))&&!1!==u?(u="//"+(u||""),o&&"/"!==o[0]&&(o="/"+o)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),c&&"?"!==c[0]&&(c="?"+c),o=o.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${o}${c}${a}`}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return a(e)}},97872,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return v},NormalizeError:function(){return x},PageNotFoundError:function(){return b},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return i},execOnce:function(){return l},getDisplayName:function(){return f},getLocationOrigin:function(){return u},getURL:function(){return c},isAbsoluteUrl:function(){return s},isResSent:function(){return d},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return j}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function l(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=e=>a.test(e);function u(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=u();return e.substring(t.length)}function f(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function d(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&d(r))return n;if(!n)throw Object.defineProperty(Error(`"${f(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let m="u">typeof performance,g=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class x extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class v extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class w extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function j(e){return JSON.stringify({message:e.message,stack:e.stack})}},171064,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return i}});let n=e.r(97872),o=e.r(33905);function i(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},7284,e=>{"use strict";function t(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(r=0;r<i;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}(e))&&(n&&(n+=" "),n+=t);return n}e.s(["clsx",()=>t])},437698,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},391736,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(907358);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=i(e,n)),t&&(o.current=i(t,n))},[e,t])}function i(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},818127,(e,t,r)=>{"use strict";function n(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return n}})},50239,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return o}});let n=e.r(880813);function o({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new n.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},445929,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return s}});let n=e.r(452797),o=e.r(910353),i=e.r(306648),l=e.r(818127),a=e.r(954633);function s({moduleIds:e}){if("u">typeof window)return null;let t=i.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let n=t.reactLoadableManifest;for(let t of e){if(!n[t])continue;let e=n[t].files;r.push(...e)}}if(0===r.length)return null;let s=(0,a.getDeploymentIdQueryOrEmptyString)();return(0,n.jsx)(n.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,l.encodeURIPath)(e)}${s}`;return e.endsWith(".css")?(0,n.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,o.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},768337,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return u}});let n=e.r(452797),o=e.r(907358),i=e.r(50239),l=e.r(445929);function a(e){return{default:e&&"default"in e?e.default:e}}let s={loader:()=>Promise.resolve(a(()=>null)),loading:null,ssr:!0},u=function(e){let t={...s,...e},r=(0,o.lazy)(()=>t.loader().then(a)),u=t.loading;function c(e){let a=u?(0,n.jsx)(u,{isLoading:!0,pastDelay:!0,error:null}):null,s=!t.ssr||!!t.loading,c=s?o.Suspense:o.Fragment,f=t.ssr?(0,n.jsxs)(n.Fragment,{children:["u"<typeof window?(0,n.jsx)(l.PreloadChunks,{moduleIds:t.modules}):null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(i.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(c,{...s?{fallback:a}:{},children:f})}return c.displayName="LoadableComponent",c}},902498,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return o}});let n=e.r(481258)._(e.r(768337));function o(e,t){let r={};"function"==typeof e&&(r.loader=e);let o={...r,...t};return(0,n.default)({...o,modules:o.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},140802,e=>{"use strict";e.i(653782);var t=e.i(452797),r=e.i(907358),n=e.i(807464),o=e.i(134174),i=e.i(736986),l=e.i(370338),a=e.i(250438),s=r,u=e.i(753942);function c(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class f extends s.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,a.isHTMLElement)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,r=(0,a.isHTMLElement)(e)&&e.offsetWidth||0,n=(0,a.isHTMLElement)(e)&&e.offsetHeight||0,o=getComputedStyle(t),i=this.props.sizeRef.current;i.height=parseFloat(o.height),i.width=parseFloat(o.width),i.top=t.offsetTop,i.left=t.offsetLeft,i.right=r-i.width-i.left,i.bottom=n-i.height-i.top}return null}componentDidUpdate(){}render(){return this.props.children}}function d({children:e,isPresent:n,anchorX:o,anchorY:i,root:l,pop:a}){let d=(0,s.useId)(),p=(0,s.useRef)(null),h=(0,s.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:m}=(0,s.useContext)(u.MotionConfigContext),g=function(...e){return r.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=c(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():c(e[t],null)}}}}(...e),e)}(p,e.props?.ref??e?.ref);return(0,s.useInsertionEffect)(()=>{let{width:e,height:t,top:r,left:s,right:u,bottom:c}=h.current;if(n||!1===a||!p.current||!e||!t)return;let f="left"===o?`left: ${s}`:`right: ${u}`,g="bottom"===i?`bottom: ${c}`:`top: ${r}`;p.current.dataset.motionPopId=d;let y=document.createElement("style");m&&(y.nonce=m);let x=l??document.head;return x.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
[data-motion-pop-id="${d}"] {
|
|
position: absolute !important;
|
|
width: ${e}px !important;
|
|
height: ${t}px !important;
|
|
${f}px !important;
|
|
${g}px !important;
|
|
}
|
|
`),()=>{p.current?.removeAttribute("data-motion-pop-id"),x.contains(y)&&x.removeChild(y)}},[n]),(0,t.jsx)(f,{isPresent:n,childRef:p,sizeRef:h,pop:a,children:!1===a?e:s.cloneElement(e,{ref:g})})}let p=({children:e,initial:n,isPresent:i,onExitComplete:a,custom:s,presenceAffectsLayout:u,mode:c,anchorX:f,anchorY:p,root:m})=>{let g=(0,o.useConstant)(h),y=(0,r.useId)(),x=!0,b=(0,r.useMemo)(()=>(x=!1,{id:y,initial:n,isPresent:i,custom:s,onExitComplete:e=>{for(let t of(g.set(e,!0),g.values()))if(!t)return;a&&a()},register:e=>(g.set(e,!1),()=>g.delete(e))}),[i,g,a]);return u&&x&&(b={...b}),(0,r.useMemo)(()=>{g.forEach((e,t)=>g.set(t,!1))},[i]),r.useEffect(()=>{i||g.size||!a||a()},[i]),e=(0,t.jsx)(d,{pop:"popLayout"===c,isPresent:i,anchorX:f,anchorY:p,root:m,children:e}),(0,t.jsx)(l.PresenceContext.Provider,{value:b,children:e})};function h(){return new Map}var m=e.i(718015);let g=e=>e.key||"";function y(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}let x=({children:e,custom:l,initial:a=!0,onExitComplete:s,presenceAffectsLayout:u=!0,mode:c="sync",propagate:f=!1,anchorX:d="left",anchorY:h="top",root:x})=>{let[b,v]=(0,m.usePresence)(f),w=(0,r.useMemo)(()=>y(e),[e]),j=f&&!b?[]:w.map(g),P=(0,r.useRef)(!0),E=(0,r.useRef)(w),N=(0,o.useConstant)(()=>new Map),k=(0,r.useRef)(new Set),[$,C]=(0,r.useState)(w),[O,L]=(0,r.useState)(w);(0,i.useIsomorphicLayoutEffect)(()=>{P.current=!1,E.current=w;for(let e=0;e<O.length;e++){let t=g(O[e]);j.includes(t)?(N.delete(t),k.current.delete(t)):!0!==N.get(t)&&N.set(t,!1)}},[O,j.length,j.join("-")]);let S=[];if(w!==$){let e=[...w];for(let t=0;t<O.length;t++){let r=O[t],n=g(r);j.includes(n)||(e.splice(t,0,r),S.push(r))}return"wait"===c&&S.length&&(e=S),L(y(e)),C(w),null}let{forceRender:_}=(0,r.useContext)(n.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:O.map(e=>{let r=g(e),n=(!f||!!b)&&(w===O||j.includes(r));return(0,t.jsx)(p,{isPresent:n,initial:(!P.current||!!a)&&void 0,custom:l,presenceAffectsLayout:u,mode:c,root:x,onExitComplete:n?void 0:()=>{if(k.current.has(r)||!N.has(r))return;k.current.add(r),N.set(r,!0);let e=!0;N.forEach(t=>{t||(e=!1)}),e&&(_?.(),L(E.current),f&&v?.(),s&&s())},anchorX:d,anchorY:h,children:e},r)})})};e.s(["AnimatePresence",()=>x],140802)},46946,202355,e=>{"use strict";var t=e.i(651692),r=e.i(702915),n=e.i(26809),o=e.i(907358),i=e.i(470919),l=e.i(967682);function a(e,t){let r,n=()=>{let{currentTime:n}=t,o=(null===n?0:n.value)/100;r!==o&&e(o),r=o};return l.frame.preUpdate(n,!0),()=>(0,l.cancelFrame)(n)}function s(e){return!("u"<typeof window)&&(e?(0,t.supportsViewTimeline)():(0,t.supportsScrollTimeline)())}var u=e.i(460208),c=e.i(241058),f=e.i(921692);let d=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),p={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function h(e,t,r,n){let o=r[t],{length:i,position:l}=p[t],a=o.current,s=r.time;o.current=Math.abs(e[`scroll${l}`]),o.scrollLength=e[`scroll${i}`]-e[`client${i}`],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=(0,c.progress)(0,o.scrollLength,o.current);let u=n-s;o.velocity=u>50?0:(0,f.velocityPerSecond)(o.current-a,u)}e.i(653782);var m=e.i(498920),g=e.i(805639),y=e.i(493858),x=e.i(250438);let b={start:0,center:.5,end:1};function v(e,t,r=0){let n=0;if(e in b&&(e=b[e]),"string"==typeof e){let t=parseFloat(e);e.endsWith("px")?n=t:e.endsWith("%")?e=t/100:e.endsWith("vw")?n=t/100*document.documentElement.clientWidth:e.endsWith("vh")?n=t/100*document.documentElement.clientHeight:e=t}return"number"==typeof e&&(n=t*e),r+n}let w=[0,0],j=[[0,0],[1,1]],P={x:0,y:0},E=new WeakMap,N=new WeakMap,k=new WeakMap,$=new WeakMap,C=new WeakMap,O=e=>e===document.scrollingElement?window:e;function L(e,{container:t=document.scrollingElement,trackContentSize:r=!1,...n}={}){if(!t)return i.noop;let o=k.get(t);o||(o=new Set,k.set(t,o));let a=function(e,t,r,n={}){return{measure:t=>{!function(e,t=e,r){if(r.x.targetOffset=0,r.y.targetOffset=0,t!==e){let n=t;for(;n&&n!==e;)r.x.targetOffset+=n.offsetLeft,r.y.targetOffset+=n.offsetTop,n=n.offsetParent}r.x.targetLength=t===e?t.scrollWidth:t.clientWidth,r.y.targetLength=t===e?t.scrollHeight:t.clientHeight,r.x.containerLength=e.clientWidth,r.y.containerLength=e.clientHeight}(e,n.target,r),h(e,"x",r,t),h(e,"y",r,t),r.time=t,(n.offset||n.target)&&function(e,t,r){let{offset:n=j}=r,{target:o=e,axis:i="y"}=r,l="y"===i?"height":"width",a=o!==e?function(e,t){let r={x:0,y:0},n=e;for(;n&&n!==t;)if((0,x.isHTMLElement)(n))r.x+=n.offsetLeft,r.y+=n.offsetTop,n=n.offsetParent;else if("svg"===n.tagName){let e=n.getBoundingClientRect(),t=(n=n.parentElement).getBoundingClientRect();r.x+=e.left-t.left,r.y+=e.top-t.top}else if(n instanceof SVGGraphicsElement){let{x:e,y:t}=n.getBBox();r.x+=e,r.y+=t;let o=null,i=n.parentNode;for(;!o;)"svg"===i.tagName&&(o=i),i=n.parentNode;n=o}else break;return r}(o,e):P,s=o===e?{width:e.scrollWidth,height:e.scrollHeight}:"getBBox"in o&&"svg"!==o.tagName?o.getBBox():{width:o.clientWidth,height:o.clientHeight},u={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let c=!t[i].interpolate,f=n.length;for(let e=0;e<f;e++){let r=function(e,t,r,n){let o=Array.isArray(e)?e:w,i=0;return"number"==typeof e?o=[e,e]:"string"==typeof e&&(o=(e=e.trim()).includes(" ")?e.split(" "):[e,b[e]?e:"0"]),(i=v(o[0],r,n))-v(o[1],t)}(n[e],u[l],s[l],a[i]);c||r===t[i].interpolatorOffsets[e]||(c=!0),t[i].offset[e]=r}c&&(t[i].interpolate=(0,m.interpolate)(t[i].offset,(0,g.defaultOffset)(n),{clamp:!1}),t[i].interpolatorOffsets=[...t[i].offset]),t[i].progress=(0,y.clamp)(0,1,t[i].interpolate(t[i].current))}(e,r,n)},notify:()=>t(r)}}(t,e,{time:0,x:d(),y:d()},n);if(o.add(a),!E.has(t)){let e=()=>{for(let e of o)e.measure(l.frameData.timestamp);l.frame.preUpdate(r)},r=()=>{for(let e of o)e.notify()},n=()=>l.frame.read(e);E.set(t,n);let i=O(t);window.addEventListener("resize",n),t!==document.documentElement&&N.set(t,(0,u.resize)(t,n)),i.addEventListener("scroll",n),n()}if(r&&!C.has(t)){let e=E.get(t),r={width:t.scrollWidth,height:t.scrollHeight};$.set(t,r);let n=l.frame.read(()=>{let n=t.scrollWidth,o=t.scrollHeight;(r.width!==n||r.height!==o)&&(e(),r.width=n,r.height=o)},!0);C.set(t,n)}let s=E.get(t);return l.frame.read(s,!1,!0),()=>{(0,l.cancelFrame)(s);let e=k.get(t);if(!e||(e.delete(a),e.size))return;let r=E.get(t);E.delete(t),r&&(O(t).removeEventListener("scroll",r),N.get(t)?.(),window.removeEventListener("resize",r));let n=C.get(t);n&&((0,l.cancelFrame)(n),C.delete(t)),$.delete(t)}}let S=[[[[0,1],[1,1]],"entry"],[[[0,0],[1,0]],"exit"],[[[1,0],[0,1]],"cover"],[j,"contain"]],_={start:0,end:1};function M(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(let[t,r]of S)if(function(e,t){let r=function(e){if(2!==e.length)return;let t=[];for(let r of e)if(Array.isArray(r))t.push(r);else{if("string"!=typeof r)return;let e=function(e){let t=e.trim().split(/\s+/);if(2!==t.length)return;let r=_[t[0]],n=_[t[1]];if(void 0!==r&&void 0!==n)return[r,n]}(r);if(!e)return;t.push(e)}return t}(e);if(!r)return!1;for(let e=0;e<2;e++){let n=r[e],o=t[e];if(n[0]!==o[0]||n[1]!==o[1])return!1}return!0}(e,t))return{rangeStart:`${r} 0%`,rangeEnd:`${r} 100%`}}let T=new Map;function R(e){let t={value:0},r=L(r=>{t.value=100*r[e.axis].progress},e);return{currentTime:t,cancel:r}}function A({source:e,container:t,...r}){let{axis:n}=r;e&&(t=e);let o=T.get(t);o||(o=new Map,T.set(t,o));let i=r.target??"self",l=o.get(i);l||(l={},o.set(i,l));let a=n+(r.offset??[]).join(",");return l[a]||(r.target&&s(r.target)?M(r.offset)?l[a]=new ViewTimeline({subject:r.target,axis:n}):l[a]=R({container:t,...r}):s()?l[a]=new ScrollTimeline({source:t,axis:n}):l[a]=R({container:t,...r})),l[a]}function z(e,{axis:t="y",container:r=document.scrollingElement,...n}={}){var o,l;let u,c,f;if(!r)return i.noop;let d={axis:t,container:r,...n};return"function"==typeof e?(o=e,l=d,2===o.length?L(e=>{o(e[l.axis].progress,e)},l):a(o,A(l))):(u=A(d),c=d.target?M(d.offset):void 0,f=d.target?s(d.target)&&!!c:s(),e.attachTimeline({timeline:f?u:void 0,...c&&f&&{rangeStart:c.rangeStart,rangeEnd:c.rangeEnd},observe:e=>(e.pause(),a(t=>{e.time=e.iterationDuration*t},u))}))}var W=e.i(134174),I=e.i(736986);let B=()=>({scrollX:(0,r.motionValue)(0),scrollY:(0,r.motionValue)(0),scrollXProgress:(0,r.motionValue)(0),scrollYProgress:(0,r.motionValue)(0)}),F=e=>!!e&&!e.current;function U(e,t,r,n){return{factory:o=>z(o,{...t,axis:e,container:r?.current||void 0,target:n?.current||void 0}),times:[0,1],keyframes:[0,1],ease:e=>e,duration:1}}function H({container:e,target:r,...i}={}){var l;let a=(0,W.useConstant)(B);l=i.offset,!("u"<typeof window)&&(r?(0,t.supportsViewTimeline)()&&!!M(l):(0,t.supportsScrollTimeline)())&&(a.scrollXProgress.accelerate=U("x",i,e,r),a.scrollYProgress.accelerate=U("y",i,e,r));let s=(0,o.useRef)(null),u=(0,o.useRef)(!1),c=(0,o.useCallback)(()=>(s.current=z((e,{x:t,y:r})=>{a.scrollX.set(t.current),a.scrollXProgress.set(t.progress),a.scrollY.set(r.current),a.scrollYProgress.set(r.progress)},{...i,container:e?.current||void 0,target:r?.current||void 0}),()=>{s.current?.()}),[e,r,JSON.stringify(i.offset)]);return(0,I.useIsomorphicLayoutEffect)(()=>{if(u.current=!1,!(F(e)||F(r)))return c();u.current=!0},[c]),(0,o.useEffect)(()=>u.current?((0,n.invariant)(!F(e),"Container ref is defined but not hydrated","use-scroll-ref"),(0,n.invariant)(!F(r),"Target ref is defined but not hydrated","use-scroll-ref"),c()):void 0,[c]),a}e.s(["useScroll",()=>H],46946);var V=e.i(753942);function D(e,t){let n=function(e){let t=(0,W.useConstant)(()=>(0,r.motionValue)(e)),{isStatic:n}=(0,o.useContext)(V.MotionConfigContext);if(n){let[,r]=(0,o.useState)(e);(0,o.useEffect)(()=>t.on("change",r),[])}return t}(t()),i=()=>n.set(t());return i(),(0,I.useIsomorphicLayoutEffect)(()=>{let t=()=>l.frame.preRender(i,!1,!0),r=e.map(e=>e.on("change",t));return()=>{r.forEach(e=>e()),(0,l.cancelFrame)(i)}}),n}function G(e,t){let r=(0,W.useConstant)(()=>[]);return D(e,()=>{r.length=0;let n=e.length;for(let t=0;t<n;t++)r[t]=e[t].get();return t(r)})}e.s(["useTransform",()=>function e(t,n,o,i){if("function"==typeof t){let e;return r.collectMotionValues.current=[],t(),e=D(r.collectMotionValues.current,t),r.collectMotionValues.current=void 0,e}if(void 0!==o&&!Array.isArray(o)&&"function"!=typeof n){var l=t,a=n,s=o,u=i;let r=(0,W.useConstant)(()=>Object.keys(s)),c=(0,W.useConstant)(()=>({}));for(let t of r)c[t]=e(l,a,s[t],u);return c}let c="function"==typeof n?n:function(...e){let t=!Array.isArray(e[0]),r=t?0:-1,n=e[0+r],o=e[1+r],i=e[2+r],l=e[3+r],a=(0,m.interpolate)(o,i,l);return t?a(n):a}(n,o,i),f=Array.isArray(t)?G(t,c):G([t],([e])=>c(e)),d=Array.isArray(t)?void 0:t.accelerate;return d&&!d.isTransformed&&"function"!=typeof n&&Array.isArray(o)&&i?.clamp!==!1&&(f.accelerate={...d,times:n,keyframes:o,isTransformed:!0,...i?.ease?{ease:i.ease}:{}}),f}],202355)},287564,e=>{"use strict";var t=e.i(452797),r=e.i(184868),n=e.i(976819),o=e.i(808496);function i({mobile:e=!1,isSolidMode:i=!1}){let l=(0,n.usePathname)()||"/",a=l.startsWith("/en")?"en":"de",s=e=>{let t=l.replace(/^\/(en|de)/,"");return`/${e}${""===t?"":t}`},u=[{code:"de",label:"DE",fullLabel:"Deutsch",flag:"🇩🇪"},{code:"en",label:"EN",fullLabel:"English",flag:"🇬🇧"}];return e?(0,t.jsx)("div",{className:"flex flex-col gap-3",children:u.map(e=>(0,t.jsxs)(r.default,{href:s(e.code),className:`group relative overflow-hidden flex items-center gap-3 px-5 py-3 rounded-xl text-lg font-semibold transition-all duration-300 ${a===e.code?"bg-primary/10 text-primary border border-primary/20":"text-text-secondary hover:bg-neutral-50 border border-transparent"}`,children:[(0,t.jsx)(o.HoverShineOverlay,{shineColor:"via-primary/5"}),(0,t.jsx)("span",{className:"relative z-10 text-2xl","aria-hidden":"true",children:e.flag}),(0,t.jsx)("span",{className:"relative z-10",children:e.fullLabel}),a===e.code&&(0,t.jsx)("svg",{className:"relative z-10 w-5 h-5 ml-auto text-primary",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("polyline",{points:"20 6 9 17 4 12"})})]},e.code))}):(0,t.jsxs)("div",{className:`group relative overflow-hidden flex items-center rounded-full p-0.5 border ${i?"bg-neutral-100 border-neutral-200":"bg-white/10 backdrop-blur-sm border-white/10"} transition-colors duration-300`,children:[(0,t.jsx)(o.HoverShineOverlay,{shineColor:i?"via-primary/10":"via-white/20"}),u.map(e=>{let n=a===e.code,o="";return o=n?"bg-white text-primary shadow-sm":i?"text-text-secondary hover:text-primary":"text-white/70 hover:text-white",(0,t.jsxs)(r.default,{href:s(e.code),className:`relative z-10 flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-bold uppercase tracking-wider transition-all duration-300 ${o}`,"aria-label":`Switch to ${e.fullLabel}`,children:[(0,t.jsx)("span",{className:"text-sm","aria-hidden":"true",children:e.flag}),(0,t.jsx)("span",{children:e.label})]},e.code)})]})}e.s(["LanguageSwitcher",()=>i])},993983,e=>{"use strict";var t=e.i(452797),r=e.i(907358),n=e.i(184868),o=e.i(663067),i=e.i(976819),l=e.i(112086),a=e.i(140802),s=e.i(46946),u=e.i(202355),c=e.i(287564);function f({navLinks:e}){let[f,d]=r.useState(!1),[p,h]=r.useState(!1),[m,g]=r.useState(!1),y=(0,i.usePathname)()||"/",{scrollY:x}=(0,s.useScroll)(),b=(0,u.useTransform)(x,e=>{let t=Math.max(0,e-20);return`${-150+t%800/800*300}%`}),v=y.startsWith("/en")?"en":"de";r.useEffect(()=>{let e=()=>{d(window.scrollY>20)};window.addEventListener("scroll",e);let t=()=>{g("true"===document.body.getAttribute("data-force-solid-header"))};t();let r=new MutationObserver(t);return r.observe(document.body,{attributes:!0,attributeFilter:["data-force-solid-header"]}),t(),()=>{window.removeEventListener("scroll",e),r.disconnect()}},[y]),r.useEffect(()=>{h(!1)},[y]);let w=f||m;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("header",{className:`fixed top-0 left-0 right-0 z-50 flex justify-center transition-all duration-700 ease-[cubic-bezier(0.16,1,0.3,1)] ${w?"pt-4 px-4":"pt-0 px-0"}`,children:(0,t.jsxs)("div",{className:`relative overflow-hidden w-full max-w-[1400px] mx-auto transition-all duration-700 ease-[cubic-bezier(0.16,1,0.3,1)] flex items-center justify-between ${w?"rounded-full bg-white/50 backdrop-blur-xl shadow-[0_8px_32px_rgba(0,0,0,0.08)] border border-white/40 py-2.5 px-6 md:px-8":"rounded-none bg-transparent py-6 px-4 md:px-8 border border-transparent"}`,children:[(0,t.jsx)("div",{className:"absolute inset-0 z-0 pointer-events-none overflow-hidden rounded-full",children:(0,t.jsx)(l.motion.div,{style:{x:b},className:`absolute top-0 h-[200%] w-[150%] bg-gradient-to-r from-transparent via-white to-transparent skew-x-[-20deg] mix-blend-overlay transition-opacity duration-300 ${w?"opacity-100":"opacity-0"}`})}),(0,t.jsx)(n.default,{href:`/${v}`,className:`relative flex items-center transition-all duration-500 ease-out z-50 group ${w?"h-9 w-36":"h-12 w-48"}`,children:(0,t.jsx)(o.default,{src:w||p?"/assets/logo.png":"/assets/logo-white.png",alt:"E-TIB Gruppe",fill:!0,className:"object-contain object-left group-hover:scale-105 transition-transform duration-500 origin-left",priority:!0,sizes:"192px"})}),(0,t.jsxs)("nav",{className:"relative z-10 hidden md:flex items-center gap-8 lg:gap-10",children:[e&&e.length>0&&e.map(e=>{let r=e.url.startsWith("/")&&!e.url.match(/^\/(en|de)/)?`/${v}${e.url}`:e.url,o=y===r||r!==`/${v}`&&y?.startsWith(`${r}/`);return(0,t.jsxs)(n.default,{href:r,className:`relative font-bold text-xs lg:text-sm uppercase tracking-widest transition-colors duration-300 group py-2 ${w?o?"text-primary":"text-text-primary hover:text-primary":o?"text-white":"text-white/80 hover:text-white"}`,children:[e.label,o&&(0,t.jsx)(l.motion.div,{layoutId:"header-active-indicator",className:`absolute -bottom-1 left-0 right-0 h-0.5 rounded-full ${w?"bg-primary":"bg-white"}`,transition:{type:"spring",stiffness:400,damping:30}}),(0,t.jsx)("span",{className:`absolute -bottom-1 left-1/2 w-0 h-0.5 -translate-x-1/2 rounded-full transition-all duration-300 ease-out group-hover:w-full ${w?"bg-primary/30":"bg-white/30"} ${o?"opacity-0":"opacity-100"}`})]},e.url)}),(0,t.jsx)("div",{className:`h-5 w-px transition-colors duration-300 ${w?"bg-neutral-200":"bg-white/20"}`}),(0,t.jsx)(c.LanguageSwitcher,{isSolidMode:w}),(0,t.jsxs)(n.default,{href:`/${v}/${"de"===v?"kontakt":"contact"}`,className:`relative ml-2 px-7 py-2.5 rounded-full font-bold text-xs lg:text-sm uppercase tracking-widest transition-all duration-500 overflow-hidden group/cta isolate ${w?"bg-primary text-white shadow-lg shadow-primary/20 hover:shadow-primary/40 hover:-translate-y-0.5 border border-transparent":"bg-white/10 text-white backdrop-blur-md border border-white/30 hover:bg-white/20 hover:-translate-y-0.5 hover:shadow-[0_0_20px_rgba(255,255,255,0.2)]"}`,children:[(0,t.jsx)("span",{className:"relative z-10 transition-transform duration-300 group-hover/cta:scale-105 inline-block",children:"de"===v?"Kontakt":"Contact"}),(0,t.jsx)("span",{className:"absolute top-0 -left-[150%] h-[200%] w-[150%] bg-gradient-to-r from-transparent via-white/30 to-transparent skew-x-[-20deg] group-hover/cta:left-[100%] transition-all duration-1000 ease-[cubic-bezier(0.16,1,0.3,1)] z-30 pointer-events-none"})]})]}),(0,t.jsxs)("button",{className:"md:hidden z-50 p-2 relative group",onClick:()=>h(!p),"aria-label":"Toggle menu",children:[(0,t.jsx)("div",{className:`absolute inset-0 rounded-full transition-all duration-300 ${w?"bg-neutral-100 group-hover:bg-neutral-200":"bg-white/10 group-hover:bg-white/20"}`}),(0,t.jsx)("svg",{className:"relative z-10 transition-transform duration-300 group-hover:scale-110",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:w||p?"currentColor":"white",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:p?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18",className:"origin-center animate-in fade-in zoom-in duration-300"}),(0,t.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18",className:"origin-center animate-in fade-in zoom-in duration-300"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("line",{x1:"3",x2:"21",y1:"6",y2:"6",className:"transition-all duration-300 group-hover:translate-x-1"}),(0,t.jsx)("line",{x1:"3",x2:"21",y1:"12",y2:"12"}),(0,t.jsx)("line",{x1:"3",x2:"21",y1:"18",y2:"18",className:"transition-all duration-300 group-hover:-translate-x-1"})]})})]})]})}),(0,t.jsx)(a.AnimatePresence,{children:p&&(0,t.jsx)(l.motion.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.2},className:"fixed inset-0 z-40 bg-white md:hidden pt-32 pb-8 px-6 overflow-y-auto",children:(0,t.jsxs)("nav",{className:"flex flex-col gap-6",children:[e&&e.length>0&&e.map(e=>{let r=e.url.startsWith("/")&&!e.url.match(/^\/(en|de)/)?`/${v}${e.url}`:e.url;return(0,t.jsx)(n.default,{href:r,className:"text-2xl font-heading font-bold text-neutral-dark border-b border-neutral-100 pb-4",children:e.label},e.url)}),(0,t.jsx)(n.default,{href:`/${v}/${"de"===v?"kontakt":"contact"}`,className:"text-2xl font-heading font-bold text-primary border-b border-neutral-100 pb-4",children:"de"===v?"Kontakt":"Contact"}),(0,t.jsxs)("div",{className:"mt-8 pt-6",children:[(0,t.jsx)("p",{className:"text-text-secondary text-sm font-bold uppercase tracking-widest mb-4",children:"Sprache wählen"}),(0,t.jsx)(c.LanguageSwitcher,{mobile:!0})]})]})})})]})}e.s(["Header",()=>f])},814508,e=>{"use strict";var t=e.i(452797),r=e.i(190422);function n(){let e=(0,r.useTranslations)("Navigation");return(0,t.jsx)("a",{href:"#main-content",className:"fixed -top-full left-4 z-[100] px-6 py-3 bg-white text-primary-dark font-bold rounded-lg shadow-xl outline-none ring-2 ring-accent transition-all duration-300 focus:top-4",children:e("skipToContent")})}e.s(["default",()=>n])},531518,e=>{"use strict";var t=e.i(653782),r=e.i(452797),n=e.i(902498),o=e.i(907358);let i=(0,n.default)(()=>e.A(348814),{loadableGenerated:{modules:[565071]},ssr:!1}),l=(0,n.default)(()=>e.A(740018),{loadableGenerated:{modules:[248785]},ssr:!1}),a=(0,n.default)(()=>e.A(225514),{loadableGenerated:{modules:[950648]},ssr:!1});function s(){let[e,n]=(0,o.useState)(!1);return((0,o.useEffect)(()=>{if("true"!==t.default.env.NEXT_PUBLIC_CI)if("requestIdleCallback"in window)window.requestIdleCallback(()=>n(!0),{timeout:3e3});else{let e=setTimeout(()=>n(!0),2500);return()=>clearTimeout(e)}},[]),e)?(0,r.jsxs)(o.Suspense,{fallback:null,children:[(0,r.jsx)(i,{}),(0,r.jsx)(l,{}),(0,r.jsx)(a,{})]}):null}e.s(["default",()=>s])},600023,e=>{"use strict";var t=e.i(883647),r=e.i(452797);function n({locale:e,...n}){if(!e)throw Error(void 0);return(0,r.jsx)(t.IntlProvider,{locale:e,...n})}e.s(["default",()=>n])},689647,e=>{"use strict";var t=e.i(452797);let r=(0,e.i(902498).default)(()=>e.A(262386).then(e=>e.FeedbackOverlay),{loadableGenerated:{modules:[566137]},ssr:!1});function n({feedbackEnabled:e}){return e?(0,t.jsx)(r,{}):null}e.s(["default",()=>n])},348814,e=>{e.v(t=>Promise.all(["static/chunks/c5d96e51563873b4.js","static/chunks/0ff158dd58fe47c8.js"].map(t=>e.l(t))).then(()=>t(565071)))},740018,e=>{e.v(t=>Promise.all(["static/chunks/713074f66bd59ddb.js","static/chunks/0ff158dd58fe47c8.js"].map(t=>e.l(t))).then(()=>t(248785)))},225514,e=>{e.v(t=>Promise.all(["static/chunks/2b15ac85c8f20948.js","static/chunks/0ff158dd58fe47c8.js"].map(t=>e.l(t))).then(()=>t(950648)))},262386,e=>{e.v(t=>Promise.all(["static/chunks/9c4a690cd48e1298.js","static/chunks/c9e4534297dc4d54.js"].map(t=>e.l(t))).then(()=>t(566137)))}]);
|
|
|
|
//# debugId=252a5b97-f957-1a7b-7f54-ebb65d3ee8ba
|