5905-65797fbfc532ef1c.js 14 KB

1
  1. "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5905],{28373:(e,t,n)=>{function r(){return(r=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}).apply(null,arguments)}n.d(t,{default:()=>l});var o=n(57749),i=n(79336);function l(e){let{locale:t,...n}=e;if(!t)throw Error("Failed to determine locale in `NextIntlClientProvider`, please provide the `locale` prop explicitly.\n\nSee https://next-intl-docs.vercel.app/docs/configuration#locale");return o.createElement(i.IntlProvider,r({locale:t},n))}},94208:(e,t,n)=>{n.d(t,{UC:()=>el,Y9:()=>eo,q7:()=>er,bL:()=>en,l9:()=>ei});var r=n(57749),o=n(59151),i=n(2256),l=n(68448),a=n(16513),s=n(45864),c=n(32644),d=n(56872),f=n(44296),u=n(64464),p=n(34001),h="Collapsible",[g,v]=(0,o.A)(h),[m,y]=g(h),w=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:o,defaultOpen:i,disabled:l,onOpenChange:a,...d}=e,[f=!1,h]=(0,s.i)({prop:o,defaultProp:i,onChange:a});return(0,p.jsx)(m,{scope:n,disabled:l,contentId:(0,u.B)(),open:f,onOpenToggle:r.useCallback(()=>h(e=>!e),[h]),children:(0,p.jsx)(c.sG.div,{"data-state":C(f),"data-disabled":l?"":void 0,...d,ref:t})})});w.displayName=h;var x="CollapsibleTrigger",b=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,o=y(x,n);return(0,p.jsx)(c.sG.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":C(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:(0,a.m)(e.onClick,o.onOpenToggle)})});b.displayName=x;var E="CollapsibleContent",A=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=y(E,e.__scopeCollapsible);return(0,p.jsx)(f.C,{present:n||o.open,children:e=>{let{present:n}=e;return(0,p.jsx)(j,{...r,ref:t,present:n})}})});A.displayName=E;var j=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:o,children:i,...a}=e,s=y(E,n),[f,u]=r.useState(o),h=r.useRef(null),g=(0,l.s)(t,h),v=r.useRef(0),m=v.current,w=r.useRef(0),x=w.current,b=s.open||f,A=r.useRef(b),j=r.useRef();return r.useEffect(()=>{let e=requestAnimationFrame(()=>A.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,d.N)(()=>{let e=h.current;if(e){j.current=j.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();v.current=t.height,w.current=t.width,A.current||(e.style.transitionDuration=j.current.transitionDuration,e.style.animationName=j.current.animationName),u(o)}},[s.open,o]),(0,p.jsx)(c.sG.div,{"data-state":C(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!b,...a,ref:g,style:{"--radix-collapsible-content-height":m?"".concat(m,"px"):void 0,"--radix-collapsible-content-width":x?"".concat(x,"px"):void 0,...e.style},children:b&&i})});function C(e){return e?"open":"closed"}var R=n(84664),L="Accordion",N=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[O,k,W]=(0,i.N)(L),[G,I]=(0,o.A)(L,[W,v]),_=v(),B=r.forwardRef((e,t)=>{let{type:n,...r}=e;return(0,p.jsx)(O.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,p.jsx)(D,{...r,ref:t}):(0,p.jsx)(T,{...r,ref:t})})});B.displayName=L;var[H,S]=G(L),[z,P]=G(L,{collapsible:!1}),T=r.forwardRef((e,t)=>{let{value:n,defaultValue:o,onValueChange:i=()=>{},collapsible:l=!1,...a}=e,[c,d]=(0,s.i)({prop:n,defaultProp:o,onChange:i});return(0,p.jsx)(H,{scope:e.__scopeAccordion,value:c?[c]:[],onItemOpen:d,onItemClose:r.useCallback(()=>l&&d(""),[l,d]),children:(0,p.jsx)(z,{scope:e.__scopeAccordion,collapsible:l,children:(0,p.jsx)(Y,{...a,ref:t})})})}),D=r.forwardRef((e,t)=>{let{value:n,defaultValue:o,onValueChange:i=()=>{},...l}=e,[a=[],c]=(0,s.i)({prop:n,defaultProp:o,onChange:i}),d=r.useCallback(e=>c(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[c]),f=r.useCallback(e=>c(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[c]);return(0,p.jsx)(H,{scope:e.__scopeAccordion,value:a,onItemOpen:d,onItemClose:f,children:(0,p.jsx)(z,{scope:e.__scopeAccordion,collapsible:!0,children:(0,p.jsx)(Y,{...l,ref:t})})})}),[M,Q]=G(L),Y=r.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:o,dir:i,orientation:s="vertical",...d}=e,f=r.useRef(null),u=(0,l.s)(f,t),h=k(n),g="ltr"===(0,R.jH)(i),v=(0,a.m)(e.onKeyDown,e=>{var t;if(!N.includes(e.key))return;let n=e.target,r=h().filter(e=>{var t;return!(null===(t=e.ref.current)||void 0===t?void 0:t.disabled)}),o=r.findIndex(e=>e.ref.current===n),i=r.length;if(-1===o)return;e.preventDefault();let l=o,a=i-1,c=()=>{(l=o+1)>a&&(l=0)},d=()=>{(l=o-1)<0&&(l=a)};switch(e.key){case"Home":l=0;break;case"End":l=a;break;case"ArrowRight":"horizontal"===s&&(g?c():d());break;case"ArrowDown":"vertical"===s&&c();break;case"ArrowLeft":"horizontal"===s&&(g?d():c());break;case"ArrowUp":"vertical"===s&&d()}null===(t=r[l%i].ref.current)||void 0===t||t.focus()});return(0,p.jsx)(M,{scope:n,disabled:o,direction:i,orientation:s,children:(0,p.jsx)(O.Slot,{scope:n,children:(0,p.jsx)(c.sG.div,{...d,"data-orientation":s,ref:u,onKeyDown:o?void 0:v})})})}),$="AccordionItem",[F,X]=G($),q=r.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...o}=e,i=Q($,n),l=S($,n),a=_(n),s=(0,u.B)(),c=r&&l.value.includes(r)||!1,d=i.disabled||e.disabled;return(0,p.jsx)(F,{scope:n,open:c,disabled:d,triggerId:s,children:(0,p.jsx)(w,{"data-orientation":i.orientation,"data-state":et(c),...a,...o,ref:t,disabled:d,open:c,onOpenChange:e=>{e?l.onItemOpen(r):l.onItemClose(r)}})})});q.displayName=$;var J="AccordionHeader",K=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=Q(L,n),i=X(J,n);return(0,p.jsx)(c.sG.h3,{"data-orientation":o.orientation,"data-state":et(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});K.displayName=J;var U="AccordionTrigger",V=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=Q(L,n),i=X(U,n),l=P(U,n),a=_(n);return(0,p.jsx)(O.ItemSlot,{scope:n,children:(0,p.jsx)(b,{"aria-disabled":i.open&&!l.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...a,...r,ref:t})})});V.displayName=U;var Z="AccordionContent",ee=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=Q(L,n),i=X(Z,n),l=_(n);return(0,p.jsx)(A,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...l,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function et(e){return e?"open":"closed"}ee.displayName=Z;var en=B,er=q,eo=K,ei=V,el=ee},6342:(e,t,n)=>{n.d(t,{L:()=>o});var r=n(57749);function o(e,t,n){(0,r.useInsertionEffect)(()=>e.on(t,n),[e,t,n])}},22577:(e,t,n)=>{n.d(t,{d:()=>a});var r=n(57749),o=n(48573),i=n(58902),l=n(16335);function a(e){let t=(0,l.M)(()=>(0,o.OQ)(e)),{isStatic:n}=(0,r.useContext)(i.Q);if(n){let[,n]=(0,r.useState)(e);(0,r.useEffect)(()=>t.on("change",n),[])}return t}},24309:(e,t,n)=>{let r,o;n.d(t,{L:()=>M});var i=n(48573),l=n(16335),a=n(57749),s=n(28363),c=n(8251);let d=new WeakMap;function f({target:e,contentRect:t,borderBoxSize:n}){var r;null===(r=d.get(e))||void 0===r||r.forEach(r=>{r({target:e,contentSize:t,get size(){return function(e,t){if(t){let{inlineSize:e,blockSize:n}=t[0];return{width:e,height:n}}return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}(e,n)}})})}function u(e){e.forEach(f)}let p=new Set;var h=n(44036),g=n(48121);let v=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),m=()=>({time:0,x:v(),y:v()}),y={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function w(e,t,n,r){let o=n[t],{length:i,position:l}=y[t],a=o.current,s=n.time;o.current=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,h.q)(0,o.scrollLength,o.current);let c=r-s;o.velocity=c>50?0:(0,g.f)(o.current-a,c)}let x={All:[[0,0],[1,1]]},b={start:0,center:.5,end:1};function E(e,t,n=0){let r=0;if(e in b&&(e=b[e]),"string"==typeof e){let t=parseFloat(e);e.endsWith("px")?r=t:e.endsWith("%")?e=t/100:e.endsWith("vw")?r=t/100*document.documentElement.clientWidth:e.endsWith("vh")?r=t/100*document.documentElement.clientHeight:e=t}return"number"==typeof e&&(r=t*e),n+r}let A=[0,0];var j=n(52912),C=n(63209);let R={x:0,y:0};var L=n(41916);let N=new WeakMap,O=new WeakMap,k=new WeakMap,W=e=>e===document.documentElement?window:e;function G(e,{container:t=document.documentElement,...n}={}){let i=k.get(t);i||(i=new Set,k.set(t,i));let l=function(e,t,n,r={}){return{measure:()=>(function(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})(e,r.target,n),update:t=>{w(e,"x",n,t),w(e,"y",n,t),n.time=t,(r.offset||r.target)&&function(e,t,n){let{offset:r=x.All}=n,{target:o=e,axis:i="y"}=n,l="y"===i?"height":"width",a=o!==e?function(e,t){let n={x:0,y:0},r=e;for(;r&&r!==t;)if(r instanceof HTMLElement)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if("svg"===r.tagName){let e=r.getBoundingClientRect(),t=(r=r.parentElement).getBoundingClientRect();n.x+=e.left-t.left,n.y+=e.top-t.top}else if(r instanceof SVGGraphicsElement){let{x:e,y:t}=r.getBBox();n.x+=e,n.y+=t;let o=null,i=r.parentNode;for(;!o;)"svg"===i.tagName&&(o=i),i=r.parentNode;r=o}else break;return n}(o,e):R,s=o===e?{width:e.scrollWidth,height:e.scrollHeight}:"getBBox"in o&&"svg"!==o.tagName?o.getBBox():{width:o.clientWidth,height:o.clientHeight},c={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let d=!t[i].interpolate,f=r.length;for(let e=0;e<f;e++){let n=function(e,t,n,r){let o=Array.isArray(e)?e:A,i=0;return"number"==typeof e?o=[e,e]:"string"==typeof e&&(o=(e=e.trim()).includes(" ")?e.split(" "):[e,b[e]?e:"0"]),E(o[0],n,r)-E(o[1],t)}(r[e],c[l],s[l],a[i]);d||n===t[i].interpolatorOffsets[e]||(d=!0),t[i].offset[e]=n}d&&(t[i].interpolate=(0,j.G)(t[i].offset,(0,C.Z)(r)),t[i].interpolatorOffsets=[...t[i].offset]),t[i].progress=t[i].interpolate(t[i].current)}(e,n,r)},notify:()=>t(n)}}(t,e,m(),n);if(i.add(l),!N.has(t)){let e=()=>{for(let e of i)e.measure()},n=()=>{for(let e of i)e.update(L.uv.timestamp)},l=()=>{for(let e of i)e.notify()},a=()=>{L.Gt.read(e,!1,!0),L.Gt.read(n,!1,!0),L.Gt.update(l,!1,!0)};N.set(t,a);let s=W(t);window.addEventListener("resize",a,{passive:!0}),t!==document.documentElement&&O.set(t,"function"==typeof t?(p.add(t),o||(o=()=>{let e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};p.forEach(e=>e(t))},window.addEventListener("resize",o)),()=>{p.delete(t),!p.size&&o&&(o=void 0)}):function(e,t){r||"undefined"==typeof ResizeObserver||(r=new ResizeObserver(u));let n=(0,c.KJ)(e);return n.forEach(e=>{let n=d.get(e);n||(n=new Set,d.set(e,n)),n.add(t),null==r||r.observe(e)}),()=>{n.forEach(e=>{let n=d.get(e);null==n||n.delete(t),(null==n?void 0:n.size)||null==r||r.unobserve(e)})}}(t,a)),s.addEventListener("scroll",a,{passive:!0})}let a=N.get(t);return L.Gt.read(a,!1,!0),()=>{var e;(0,L.WG)(a);let n=k.get(t);if(!n||(n.delete(l),n.size))return;let r=N.get(t);N.delete(t),r&&(W(t).removeEventListener("scroll",r),null===(e=O.get(t))||void 0===e||e(),window.removeEventListener("resize",r))}}function I(e,t){let n;let r=()=>{let{currentTime:r}=t,o=(null===r?0:r.value)/100;n!==o&&e(o),n=o};return L.Gt.update(r,!0),()=>(0,L.WG)(r)}var _=n(34065),B=n(17758);let H=new Map;function S({source:e,container:t=document.documentElement,axis:n="y"}={}){e&&(t=e),H.has(t)||H.set(t,{});let r=H.get(t);return r[n]||(r[n]=(0,_.J)()?new ScrollTimeline({source:t,axis:n}):function({source:e,container:t,axis:n="y"}){e&&(t=e);let r={value:0},o=G(e=>{r.value=100*e[n].progress},{container:t,axis:n});return{currentTime:r,cancel:o}}({source:t,axis:n})),r[n]}function z(e){return e&&(e.target||e.offset)}var P=n(79024);function T(e,t){(0,s.$)(!!(!t||t.current),`You have defined a ${e} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its \`layoutEffect: false\` option.`)}let D=()=>({scrollX:(0,i.OQ)(0),scrollY:(0,i.OQ)(0),scrollXProgress:(0,i.OQ)(0),scrollYProgress:(0,i.OQ)(0)});function M({container:e,target:t,layoutEffect:n=!0,...r}={}){let o=(0,l.M)(D);return(n?P.E:a.useEffect)(()=>(T("target",t),T("container",e),function(e,{axis:t="y",...n}={}){let r={axis:t,...n};return"function"==typeof e?2===e.length||z(r)?G(t=>{e(t[r.axis].progress,t)},r):I(e,S(r)):function(e,t){if(e.flatten(),z(t))return e.pause(),G(n=>{e.time=e.duration*n[t.axis].progress},t);{let n=S(t);return e.attachTimeline?e.attachTimeline(n,e=>(e.pause(),I(t=>{e.time=e.duration*t},n))):B.l}}(e,r)}((e,{x:t,y:n})=>{o.scrollX.set(t.current),o.scrollXProgress.set(t.progress),o.scrollY.set(n.current),o.scrollYProgress.set(n.progress)},{...r,container:(null==e?void 0:e.current)||void 0,target:(null==t?void 0:t.current)||void 0})),[e,t,JSON.stringify(r.offset)]),o}},31635:(e,t,n)=>{n.d(t,{G:()=>u});var r=n(52912);let o=e=>e&&"object"==typeof e&&e.mix,i=e=>o(e)?e.mix:void 0;var l=n(22577),a=n(79024),s=n(41916);function c(e,t){let n=(0,l.d)(t()),r=()=>n.set(t());return r(),(0,a.E)(()=>{let t=()=>s.Gt.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),(0,s.WG)(r)}}),n}var d=n(16335),f=n(48573);function u(e,t,n,o){if("function"==typeof e)return function(e){f.bt.current=[],e();let t=c(f.bt.current,e);return f.bt.current=void 0,t}(e);let l="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),n=t?0:-1,o=e[0+n],l=e[1+n],a=e[2+n],s=e[3+n],c=(0,r.G)(l,a,{mixer:i(a[0]),...s});return t?c(o):c}(t,n,o);return Array.isArray(e)?p(e,l):p([e],([e])=>l(e))}function p(e,t){let n=(0,d.M)(()=>[]);return c(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}}}]);