PageSourceSearch

https://capitalise-staging.vercel.app/_next/static/chunks/764-8c47…?dpl=dpl_FdSjzT6C8gf8L6vH7CNZbmAjZeem

js capitalise-staging.vercel.app collected 2026-10-03 06:20:52 UTC 514,308 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[764],{1056:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{bindSnapshot:function(){return a},createAsyncLocalStorage:function(){return o},createSnapshot:function(){return s}});let r=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}static bind(e){return e}}let i="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function o(){return i?new i:new n}function a(e){return i?i.bind(e):n.bind(e)}function s(){return i?i.snapshot():function(e,...t){return e(...t)}}},1447:(e,t,r)=>{r.d(t,{A:()=>i});let n={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function i(e={}){let t,r,o,a,s=null,l=0,u=!1,d=!1,c=!1,f=!1;function p(){if(!o){if(v()){c=!0;return}u||r.emit("autoplay:play");let{ownerWindow:e}=r.internalEngine();e.clearTimeout(l),l=e.setTimeout(x,a[r.selectedScrollSnap()]),s=new Date().getTime(),r.emit("autoplay:timerset"),u=!0}}function h(){if(!o){u&&r.emit("autoplay:stop");let{ownerWindow:e}=r.internalEngine();e.clearTimeout(l),l=0,s=null,r.emit("autoplay:timerstopped"),u=!1}}function m(){if(v())return c=u,h();c&&p()}function v(){let{ownerDocument:e}=r.internalEngine();return"hidden"===e.visibilityState}function g(){d||h()}function y(){d||p()}function b(){d=!0,h()}function w(){d=!1,p()}function x(){let{index:e}=r.internalEngine(),n=e.clone().add(1).get(),i=r.scrollSnapList().length-1,o=t.stopOnLastSnap&&n===i;if(r.canScrollNext()?r.scrollNext(f):r.scrollTo(0,f),r.emit("autoplay:select"),o)return h();p()}return{name:"autoplay",options:e,init:function(s,l){r=s;let{mergeOptions:u,optionsAtMedia:d}=l,c=u(n,i.globalOptions);if(t=d(u(c,e)),r.scrollSnapList().length<=1)return;f=t.jump,o=!1,a=function(e,t){let r=e.scrollSnapList();return"number"==typeof t?r.map(()=>t):t(r,e)}(r,t.delay);let{eventStore:v,ownerDocument:x}=r.internalEngine(),_=!!r.internalEngine().options.watchDrag,E=function(e,t){let r=e.rootNode();return t&&t(r)||r}(r,t.rootNode);v.add(x,"visibilitychange",m),_&&r.on("pointerDown",g),_&&!t.stopOnInteraction&&r.on("pointerUp",y),t.stopOnMouseEnter&&v.add(E,"mouseenter",b),t.stopOnMouseEnter&&!t.stopOnInteraction&&v.add(E,"mouseleave",w),t.stopOnFocusIn&&r.on("slideFocusStart",h),t.stopOnFocusIn&&!t.stopOnInteraction&&v.add(r.containerNode(),"focusout",p),t.playOnInit&&p()},destroy:function(){r.off("pointerDown",g).off("pointerUp",y).off("slideFocusStart",h),h(),o=!0,u=!1},play:function(e){void 0!==e&&(f=e),p()},stop:function(){u&&h()},reset:function(){u&&p()},isPlaying:function(){return u},timeUntilNext:function(){return s?a[r.selectedScrollSnap()]-(new Date().getTime()-s):null}}}i.globalOptions=void 0},2373:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(47049),i=r(44189);function o(e,t=[]){let r=[],a=()=>{let t=r.map(e=>n.createContext(e));return function(r){let i=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return a.scopeName=e,[function(t,o){let a=n.createContext(o),s=r.length;r=[...r,o];let l=t=>{let{scope:r,children:o,...l}=t,u=r?.[e]?.[s]||a,d=n.useMemo(()=>l,Object.values(l));return(0,i.jsx)(u.Provider,{value:d,children:o})};return l.displayName=t+"Provider",[l,function(r,i){let l=i?.[e]?.[s]||a,u=n.useContext(l);if(u)return u;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}(a,...t)]}},2387:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{html:t,scripts:r,stylesheets:n}=(0,a.YouTubeEmbed)(e);return(0,i.jsx)(s.default,{height:e.height||null,width:e.width||null,html:t,dataNtpc:"YouTubeEmbed",children:null==r?void 0:r.map(e=>(0,i.jsx)(o.default,{src:e.url,strategy:l[e.strategy],stylesheets:n},e.url))})};let i=r(44189),o=n(r(42466)),a=r(95871),s=n(r(42459)),l={server:"beforeInteractive",client:"afterInteractive",idle:"lazyOnload",worker:"worker"}},4153:(e,t,r)=>{function n(e,t){-1===e.indexOf(t)&&e.push(t)}function i(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}r.d(t,{Ai:()=>i,Kq:()=>n})},4166:(e,t,r)=>{let n,i;r.d(t,{L:()=>W});var o=r(52238),a=r(26502),s=r(47049),l=r(69743),u=r(95124);let d=new WeakMap;function c({target:e,contentRect:t,borderBoxSize:r}){var n;null===(n=d.get(e))||void 0===n||n.forEach(n=>{n({target:e,contentSize:t,get size(){if(r){let{inlineSize:e,blockSize:t}=r[0];return{width:e,height:t}}if(e instanceof SVGElement&&"getBBox"in e)return e.getBBox();return{width:e.offsetWidth,height:e.offsetHeight}}})})}function f(e){e.forEach(c)}let p=new Set;var h=r(72233),m=r(4522);let v=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),g=()=>({time:0,x:v(),y:v()}),y={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function b(e,t,r,n){let i=r[t],{length:o,position:a}=y[t],s=i.current,l=r.time;i.current=e[`scroll${a}`],i.scrollLength=e[`scroll${o}`]-e[`client${o}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=(0,h.q)(0,i.scrollLength,i.current);let u=n-l;i.velocity=u>50?0:(0,m.f)(i.current-s,u)}let w={All:[[0,0],[1,1]]},x={start:0,center:.5,end:1};function _(e,t,r=0){let n=0;if(e in x&&(e=x[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 E=[0,0];var S=r(63851),C=r(28474);let k={x:0,y:0};var P=r(62343);let T=new WeakMap,j=new WeakMap,A=new WeakMap,R=e=>e===document.documentElement?window:e;function M(e,{container:t=document.documentElement,...r}={}){let o=A.get(t);o||(o=new Set,A.set(t,o));let a=function(e,t,r,n={}){return{measure:()=>(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),update:t=>{b(e,"x",r,t),b(e,"y",r,t),r.time=t,(n.offset||n.target)&&function(e,t,r){let{offset:n=w.All}=r,{target:i=e,axis:o="y"}=r,a="y"===o?"height":"width",s=i!==e?function(e,t){let r={x:0,y:0},n=e;for(;n&&n!==t;)if(n instanceof HTMLElement)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 i=null,o=n.parentNode;for(;!i;)"svg"===o.tagName&&(i=o),o=n.parentNode;n=i}else break;return r}(i,e):k,l=i===e?{width:e.scrollWidth,height:e.scrollHeight}:"getBBox"in i&&"svg"!==i.tagName?i.getBBox():{width:i.clientWidth,height:i.clientHeight},u={width:e.clientWidth,height:e.clientHeight};t[o].offset.length=0;let d=!t[o].interpolate,c=n.length;for(let e=0;e<c;e++){let r=function(e,t,r,n){let i=Array.isArray(e)?e:E,o=0,a=0;return"number"==typeof e?i=[e,e]:"string"==typeof e&&(i=(e=e.trim()).includes(" ")?e.split(" "):[e,x[e]?e:"0"]),(o=_(i[0],r,n
1))-_(i[1],t)}(n[e],u[a],l[a],s[o]);d||r===t[o].interpolatorOffsets[e]||(d=!0),t[o].offset[e]=r}d&&(t[o].interpolate=(0,S.G)(t[o].offset,(0,C.Z)(n)),t[o].interpolatorOffsets=[...t[o].offset]),t[o].progress=t[o].interpolate(t[o].current)}(e,r,n)},notify:()=>t(r)}}(t,e,g(),r);if(o.add(a),!T.has(t)){let e=()=>{for(let e of o)e.measure()},r=()=>{for(let e of o)e.update(P.uv.timestamp)},a=()=>{for(let e of o)e.notify()},s=()=>{P.Gt.read(e,!1,!0),P.Gt.read(r,!1,!0),P.Gt.update(a,!1,!0)};T.set(t,s);let l=R(t);if(window.addEventListener("resize",s,{passive:!0}),t!==document.documentElement)j.set(t,"function"==typeof t?(p.add(t),i||(i=()=>{let e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};p.forEach(e=>e(t))},window.addEventListener("resize",i)),()=>{p.delete(t),!p.size&&i&&(i=void 0)}):function(e,t){n||"undefined"==typeof ResizeObserver||(n=new ResizeObserver(f));let r=(0,u.KJ)(e);return r.forEach(e=>{let r=d.get(e);r||(r=new Set,d.set(e,r)),r.add(t),null==n||n.observe(e)}),()=>{r.forEach(e=>{let r=d.get(e);null==r||r.delete(t),(null==r?void 0:r.size)||null==n||n.unobserve(e)})}}(t,s));l.addEventListener("scroll",s,{passive:!0})}let s=T.get(t);return P.Gt.read(s,!1,!0),()=>{var e;(0,P.WG)(s);let r=A.get(t);if(!r||(r.delete(a),r.size))return;let n=T.get(t);T.delete(t),n&&(R(t).removeEventListener("scroll",n),null===(e=j.get(t))||void 0===e||e(),window.removeEventListener("resize",n))}}function O(e,t){let r,n=()=>{let{currentTime:n}=t,i=(null===n?0:n.value)/100;r!==i&&e(i),r=i};return P.Gt.update(n,!0),()=>(0,P.WG)(n)}var D=r(12367),N=r(10202);let I=new Map;
1function L({source:e,container:t=document.documentElement,axis:r="y"}={}){e&&(t=e),I.has(t)||I.set(t,{});let n=I.get(t);return n[r]||(n[r]=(0,D.J)()?new ScrollTimeline({source:t,axis:r}):function({source:e,container:t,axis:r="y"}){e&&(t=e);let n={value:0},i=M(e=>{n.value=100*e[r].progress},{container:t,axis:r});return{currentTime:n,cancel:i}}({source:t,axis:r})),n[r]}function F(e){return e&&(e.target||e.offset)}var V=r(45911);function B(e,t){(0,l.$)(!!(!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 z=()=>({scrollX:(0,o.OQ)(0),scrollY:(0,o.OQ)(0),scrollXProgress:(0,o.OQ)(0),scrollYProgress:(0,o.OQ)(0)});function W({container:e,target:t,layoutEffect:r=!0,...n}={}){let i=(0,a.M)(z);return(r?V.E:s.useEffect)(()=>(B("target",t),B("container",e),function(e,{axis:t="y",...r}={}){var n,i;let o={axis:t,...r};return"function"==typeof e?(n=e,i=o,2===n.length||F(i)?M(e=>{n(e[i.axis].progress,e)},i):O(n,L(i))):function(e,t){if(e.flatten(),F(t))return e.pause(),M(r=>{e.time=e.duration*r[t.axis].progress},t);{let r=L(t);return e.attachTimeline?e.attachTimeline(r,e=>(e.pause(),O(t=>{e.time=e.duration*t},r))):N.l}}(e,o)}((e,{x:t,y:r})=>{i.scrollX.set(t.current),i.scrollXProgress.set(t.progress),i.scrollY.set(r.current),i.scrollYProgress.set(r.progress)},{...n,container:(null==e?void 0:e.current)||void 0,target:(null==t?void 0:t.current)||void 0})),[e,t,JSON.stringify(n.offset)]),i}},4522:(e,t,r)=>{r.d(t,{f:()=>n});function n(e,t){return t?1e3/t*e:0}},4824:(e,t,r)=>{r.d(t,{hO:()=>l,sG:()=>s});var n=r(47049),i=r(34748),o=r(72195),a=r(44189),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=n.forwardRef((e,r)=>{let{asChild:n,...i}=e,s=n?o.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(s,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function l(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},5115:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return y},handleClientScriptLoad:function(){return m},initScriptLoader:function(){return v}});let n=r(42740),i=r(89425),o=r(44189),a=n._(r(34748)),s=i._(r(47049)),l=r(55758),u=r(89530),d=r(43574),c=new Map,f=new Set,p=e=>{if(a.default.preinit){e.forEach(e=>{a.default.preinit(e,{as:"style"})});return}{let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}},h=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:i=null,dangerouslySetInnerHTML:o,children:a="",strategy:s="afterInteractive",onError:l,stylesheets:d}=e,h=r||t;if(h&&f.has(h))return;if(c.has(t)){f.add(h),c.get(t).then(n,l);return}let m=()=>{i&&i(),f.add(h)},v=document.createElement("script"),g=new Promise((e,t)=>{v.addEventListener("load",function(t){e(),n&&n.call(this,t),m()}),v.addEventListener("error",function(e){t(e)})}).catch(function(e){l&&l(e)});o?(v.innerHTML=o.__html||"",m()):a?(v.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",m()):t&&(v.src=t,c.set(t,g)),(0,u.setAttributesFromProps)(v,e),"worker"===s&&v.setAttribute("type","text/partytown"),v.setAttribute("data-nscript",s),d&&p(d),document.body.appendChild(v)};function m(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,d.requestIdleCallback)(()=>h(e))}):h(e)}function v(e){e.forEach(m),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");f.add(t)})}function g(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:i=null,strategy:u="afterInteractive",onError:c,stylesheets:p,...m}=e,{updateScripts:v,scripts:g,getIsSsr:y,appDir:b,nonce:w}=(0,s.useContext)(l.HeadManagerContext),x=(0,s.useRef)(!1);(0,s.useEffect)(()=>{let e=t||r;x.current||(i&&e&&f.has(e)&&i(),x.current=!0)},[i,t,r]);let _=(0,s.useRef)(!1);if((0,s.useEffect)(()=>
1{if(!_.current){if("afterInteractive"===u)h(e);else if("lazyOnload"===u)"complete"===document.readyState?(0,d.requestIdleCallback)(()=>h(e)):window.addEventListener("load",()=>{(0,d.requestIdleCallback)(()=>h(e))});_.current=!0}},[e,u]),("beforeInteractive"===u||"worker"===u)&&(v?(g[u]=(g[u]||[]).concat([{id:t,src:r,onLoad:n,onReady:i,onError:c,...m}]),v(g)):y&&y()?f.add(t||r):y&&!y()&&h(e)),b){if(p&&p.forEach(e=>{a.default.preinit(e,{as:"style"})}),"beforeInteractive"===u)if(!r)return m.dangerouslySetInnerHTML&&(m.children=m.dangerouslySetInnerHTML.__html,delete m.dangerouslySetInnerHTML),(0,o.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...m,id:t}])+")"}});else return a.default.preload(r,m.integrity?{as:"script",integrity:m.integrity,nonce:w,crossOrigin:m.crossOrigin}:{as:"script",nonce:w,crossOrigin:m.crossOrigin}),(0,o.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([r,{...m,id:t}])+")"}});"afterInteractive"===u&&r&&a.default.preload(r,m.integrity?{as:"script",integrity:m.integrity,nonce:w,crossOrigin:m.crossOrigin}:{as:"script",nonce:w,crossOrigin:m.crossOrigin})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let y=g;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5402:(e,t,r)=>{r.d(t,{K:()=>i});var n=r(88278);function i(e,t,r){let i=e.getProps();return(0,n.a)(i,t,void 0!==r?r:i.custom,e)}},6209:(e,t,r)=>{r.d(t,{c:()=>i});var n=r(47049);function i(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},6218:(e,t,r)=>{r.d(t,{C1:()=>V,bL:()=>L,q7:()=>F});var n=r(47049),i=r(74053),o=r(63783),a=r(2373),s=r(21913),l=r(37121),u=r(79242),d=r(57438),c=r(32730),f=r(53826),p=r(87635),h=r(44189),m="Radio",[v,g]=(0,a.A)(m),[y,b]=v(m),w=n.forwardRef((e,t)=>{let{__scopeRadio:r,name:a,checked:l=!1,required:u,disabled:d,value:c="on",onCheck:f,form:p,...m}=e,[v,g]=n.useState(null),b=(0,o.s)(t,e=>g(e)),w=n.useRef(!1),x=!v||p||!!v.closest("form");return(0,h.jsxs)(y,{scope:r,checked:l,disabled:d,children:[(0,h.jsx)(s.sG.button,{type:"button",role:"radio","aria-checked":l,"data-state":S(l),"data-disabled":d?"":void 0,disabled:d,value:c,...m,ref:b,onClick:(0,i.m)(e.onClick,e=>{l||null==f||f(),x&&(w.current=e.isPropagationStopped(),w.current||e.stopPropagation())})}),x&&(0,h.jsx)(E,{control:v,bubbles:!w.current,name:a,value:c,checked:l,required:u,disabled:d,form:p,style:{transform:"translateX(-100%)"}})]})});w.displayName=m;var x="RadioIndicator",_=n.forwardRef((e,t)=>{let{__scopeRadio:r,forceMount:n,...i}=e,o=b(x,r);return(0,h.jsx)(p.C,{present:n||o.checked,children:(0,h.jsx)(s.sG.span,{"data-state":S(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t})})});_.displayName=x;var E=n.forwardRef((e,t)=>{let{__scopeRadio:r,control:i,checked:a,bubbles:l=!0,...u}=e,d=n.useRef(null),p=(0,o.s)(d,t),m=(0,f.Z)(a),v=(0,c.X)(i);return n.useEffect(()=>{let e=d.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(m!==a&&t){let r=new Event("click",{bubbles:l});t.call(e,a),e.dispatchEvent(r)}},[m,a,l]),(0,h.jsx)(s.sG.input,{type:"radio","aria-hidden":!0,defaultChecked:a,...u,tabIndex:-1,ref:p,style:{...u.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function S(e){return e?"checked":"unchecked"}E.displayName="RadioBubbleInput";var C=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],k="RadioGroup",[P,T]=(0,a.A)(k,[l.RG,g]),j=(0,l.RG)(),A=g(),[R,M]=P(k),O=n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,name:n,defaultValue:i,value:o,required:a=!1,disabled:c=!1,orientation:f,dir:p,loop:m=!0,onValueChange:v,...g}=e,y=j(r),b=(0,d.jH)(p),[w,x]=(0,u.i)({prop:o,defaultProp:null!=i?i:null,onChange:v,caller:k});return(0,h.jsx)(R,{scope:r,name:n,required:a,disabled:c,value:w,onValueChange:x,children:(0,h.jsx)(l.bL,{asChild:!0,...y,orientation:f,dir:b,loop:m,children:(0,h.jsx)(s.sG.div,{role:"radiogroup","aria-required":a,"aria-orientation":f,"data-disabled":c?"":void 0,dir:b,...g,ref:t})})})});O.displayName=k;var D="RadioGroupItem",N=n.forwardRef((e,t)=>
1{let{__scopeRadioGroup:r,disabled:a,...s}=e,u=M(D,r),d=u.disabled||a,c=j(r),f=A(r),p=n.useRef(null),m=(0,o.s)(t,p),v=u.value===s.value,g=n.useRef(!1);return n.useEffect(()=>{let e=e=>{C.includes(e.key)&&(g.current=!0)},t=()=>g.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,h.jsx)(l.q7,{asChild:!0,...c,focusable:!d,active:v,children:(0,h.jsx)(w,{disabled:d,required:u.required,checked:v,...f,...s,name:u.name,ref:m,onCheck:()=>u.onValueChange(s.value),onKeyDown:(0,i.m)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,i.m)(s.onFocus,()=>{var e;g.current&&(null===(e=p.current)||void 0===e||e.click())})})})});N.displayName=D;var I=n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,...n}=e,i=A(r);return(0,h.jsx)(_,{...i,...n,ref:t})});I.displayName="RadioGroupIndicator";var L=O,F=N,V=I},7013:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return o},formatWithValidation:function(){return s},urlObjectKeys:function(){return a}});let n=r(89425)._(r(95691)),i=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,o=e.protocol||"",a=e.pathname||"",s=e.hash||"",l=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)),l&&"object"==typeof l&&(l=String(n.urlQueryToSearchParams(l)));let d=e.search||l&&"?"+l||"";return o&&!o.endsWith(":")&&(o+=":"),e.slashes||(!o||i.test(o))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),s&&"#"!==s[0]&&(s="#"+s),d&&"?"!==d[0]&&(d="?"+d),""+o+u+(a=a.replace(/[?#]/g,encodeURIComponent))+(d=d.replace("#","%23"))+s}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(e){return o(e)}},8135:(e,t,r)=>{r.d(t,{i:()=>n});let n=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)},8670:(e,t,r)=>{r.d(t,{s:()=>a,t:()=>o});var n=r(47049);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t=>{let r=!1,n=e.map(e=>{let n=i(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():i(e[t],null)}}}}function a(...e){return n.useCallback(o(...e),e)}},10202:(e,t,r)=>{r.d(t,{l:()=>n});let n=e=>e},12335:(e,t,r)=>{r.d(t,{$y:()=>a,E4:()=>s,Hr:()=>p,W9:()=>f});var n=r(23863),i=r(51019),o=r(25434);let a=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),s=e=>e===i.ai||e===o.px,l=(e,t)=>parseFloat(e.split(", ")[t]),u=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;let i=n.match(/^matrix3d\((.+)\)$/u);if(i)return l(i[1],t);{let t=n.match(/^matrix\((.+)\)$/u);return t?l(t[1],e):0}},d=new Set(["x","y","z"]),c=n.U.filter(e=>!d.has(e));function f(e){let t=[];return c.forEach(r=>{let n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(+!!r.startsWith("scale")))}),t}let p={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),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:u(4,13),y:u(5,14)};p.translateX=p.x,p.translateY=p.y},12367:(e,t,r)=>{r.d(t,{J:()=>n});let n=(0,r(46050).p)(()=>void 0!==window.ScrollTimeline)},12502:(e,t,r)=>{r.d(t,{A:()=>a,q:()=>o});var n=r(47049),i=r(44189);function o(e,t){let r=n.createContext(t),o=e=>{let{children:t,...o}=e,a=n.useMemo(()=>o,Object.values(o));return(0,i.jsx)(r.Provider,{value:a,children:t})};return o.displayName=e+"Provider",[o,function(i){let o=n.useContext(r);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function a(e,t=[]){let r=[],o=()=>{let t=r.map(e=>n.createContext(e));return function(r){let i=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return o.scopeName=e,[function(t,o){let a=n.createContext(o),s=r.length;r=[...r,o];let l=t=>{let{scope:r,children:o,...l}=t,u=r?.[e]?.[s]||a,d=n.useMemo(()=>l,Object.values(l));return(0,i.jsx)(u.Provider,{value:d,children:o})};return l.displayName=t+"Provider",[l,function(r,i){let l=i?.[e]?.[s]||a,u=n.useContext(l);if(u)return u;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}(o,...t)]}},12661:(e,t,r)=>{r.d(t,{v:()=>i});var n=r(4153);class i{constructor(){this.subscriptions=[]}add(e){return(0,n.Kq)(this.subscriptions,e),()=>(0,n.Ai)(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i<n;i++){let n=this.subscriptions[i];n&&n(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},12832:(e,t,r)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=r(42740)._(r(47049)).default.createContext({})},12857:(e,t)=>{function r(e){var t;let{config:r,src:n,width:i,quality:o}=e,a=o||(null==(t=r.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return r.path+"?url="+encodeURIComponent(n)+"&w="+i+"&q="+a+(n.startsWith("/_next/static/media/")?"&dpl=dpl_FdSjzT6C8gf8L6vH7CNZbmAjZeem":"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},13769:(e,t,r)=>{r.d(t,{_:()=>n});function n(e,t,r){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,r)}},13937:(e,t,r)=>{let n;r.d(t,{k:()=>s});var i=r(48611),o=r(62343);function a(){n=void 0}let s={now:()=>(void 0===n&&s.set(o.uv.isProcessing||i.W.useManualTiming?o.uv.timestamp:performance.now()),n),set:e=>{n=e,queueMicrotask(a)}}},14261:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(42740)._(r(47049)).default.createContext(null)},14418:(e,t,r)=>{r.d(t,{B:()=>i,K:()=>o});var n=r(24119);let i=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),o=e=>(0,n.p)(e)?e[e.length-1]||0:e},14587:(e,t,r)=>{r.d(t,{Kq:()=>W,UC:()=>$,ZL:()=>Z,bL:()=>U,l9:()=>G});var n=r(47049),i=r(47998),o=r(8670),a=r(12502),s=r(38572),l=r(18497),u=r(36898),d=r(17460),c=r(17303),f=r(4824),p=r(72195),h=r(86349),m=r(64185),v=r(44189),[g,y]=(0,a.A)("Tooltip",[u.Bk]),b=(0,u.Bk)(),w="TooltipProvider",x="tooltip.open",[_,E]=g(w),S=e=>{let{__scopeTooltip:t,delayDuration:r=700,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:a}=e,[s,l]=n.useState(!0),u=n.useRef(!1),d=n.useRef(0);return n.useEffect(()=>{let e=d.current;return()=>window.clearTimeout(e)},[]),(0,v.jsx)(_,{scope:t,isOpenDelayed:s,delayDuration:r,onOpen:n.useCallback(()=>{window.clearTimeout(d.current),l(!1)},[]),onClose:n.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>l(!0),i)},[i]),isPointerInTransitRef:u,onPointerInTransitChange:n.useCallback(e=>{u.current=e},[]),disableHoverableContent:o,children:a})};S.displayName=w;var C="Tooltip",[k,P]=g(C),T=e=>{let{__scopeTooltip:t,children:r,open:i,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:d}=e,c=E(C,e.__scopeTooltip),f=b(t),[p,m]=n.useState(null),g=(0,l.B)(),y=n.useRef(0),w=null!=s?s:c.disableHoverableContent,_=null!=d?d:c.delayDuration,S=n.useRef(!1),[P=!1,T]=(0,h.i)({prop:i,defaultProp:o,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(x))):c.onClose(),null==a||a(e)}}),j=n.useMemo(()=>P?S.current?"delayed-open":"instant-open":"closed",[P]),A=n.useCallback(()=>{window.clearTimeout(y.current),y.current=0,S.current=!1,T(!0)},[T]),R=n.useCallback(()=>{window.clearTimeout(y.current),y.current=0,T(!1)},[T]),M=n.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{S.current=!0,T(!0),y.current=0},_)},[_,T]);return n.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),(0,v.jsx)(u.bL,{...f,children:(0,v.jsx)(k,{scope:t,contentId:g,open:P,stateAttribute:j,trigger:p,onTriggerChange:m,onTriggerEnter:n.useCallback(()=>{c.isOpenDelayed?M():A()},[c.isOpenDelayed,M,A]),onTriggerLeave:n.useCallback(()=>{w?R():(window.clearTimeout(y.current),y.current=0)},[R,w]),onOpen:A,onClose:R,disableHoverableContent:w,children:r})})};T.displayName=C;var j="TooltipTrigger",A=n.forwardRef((e,t)=>{let{__scopeTooltip:r,...a}=e,s=P(j,r),l=E(j,r),d=b(r),c=n.useRef(null),p=(0,o.s)(t,c,s.onTriggerChange),h=n.useRef(!1),m=n.useRef(!1),g=n.useCallback(()=>h.current=!1,[]);return n.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),(0,v.jsx)(u.Mz,{asChild:!0,...d,children:(0,v.jsx)(f.sG.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...a,ref:p,onPointerMove:(0,i.m)(e.onPointerMove,e=>{"touch"===e.pointerType||m.current||l.isPointerInTransitRef.current||(s.onTriggerEnter(),m.current=!0)}),onPointerLeave:(0,i.m)(e.onPointerLeave,()=>{s.onTriggerLeave(),m.current=!1}),onPointerDown:(0,i.m)(e.onPointerDown,()=>{h.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:(0,i.m)(e.onFocus,()=>{h.current||s.onOpen()}),onBlur:(0,i.m)(e.onBlur,s.onClose),onClick:(0,i.m)(e.onClick,s.onClose)})})});A.displayName=j;var R="TooltipPortal",[M,O]=g(R,{forceMount:void 0}),D=e=>{let{__scopeTooltip:t,forceMount:r,children:n,container:i}=e,o=P(R,t);return(0,v.jsx)(M,{scope:t,forceMount:r,children:(0,v.jsx)(c.C,{present:r||o.open,children:(0,v.jsx)(d.Z,{asChild:!0,container:i,children:n})})})};D.displayName=R;var N="TooltipContent",I=n.forwardRef((e,t)=>
1{let r=O(N,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...o}=e,a=P(N,e.__scopeTooltip);return(0,v.jsx)(c.C,{present:n||a.open,children:a.disableHoverableContent?(0,v.jsx)(B,{side:i,...o,ref:t}):(0,v.jsx)(L,{side:i,...o,ref:t})})}),L=n.forwardRef((e,t)=>{let r=P(N,e.__scopeTooltip),i=E(N,e.__scopeTooltip),a=n.useRef(null),s=(0,o.s)(t,a),[l,u]=n.useState(null),{trigger:d,onClose:c}=r,f=a.current,{onPointerInTransitChange:p}=i,h=n.useCallback(()=>{u(null),p(!1)},[p]),m=n.useCallback((e,t)=>{let r=e.currentTarget,n={x:e.clientX,y:e.clientY},i=function(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,i,o)){case o:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:throw Error("unreachable")}}(n,r.getBoundingClientRect());u(function(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r<e.length;r++){let n=e[r];for(;t.length>=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(t)}([...function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}(n,i),...function(e){let{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}(t.getBoundingClientRect())])),p(!0)},[p]);return n.useEffect(()=>()=>h(),[h]),n.useEffect(()=>{if(d&&f){let e=e=>m(e,f),t=e=>m(e,d);return d.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{d.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}},[d,f,m,h]),n.useEffect(()=>{if(l){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=(null==d?void 0:d.contains(t))||(null==f?void 0:f.contains(t)),i=!function(e,t){let{x:r,y:n}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let a=t[e].x,s=t[e].y,l=t[o].x,u=t[o].y;s>n!=u>n&&r<(l-a)*(n-s)/(u-s)+a&&(i=!i)}return i}(r,l);n?h():i&&(h(),c())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[d,f,l,c,h]),(0,v.jsx)(B,{...e,ref:s})}),[F,V]=g(C,{isInside:!1}),B=n.forwardRef((e,t)=>{let{__scopeTooltip:r,children:i,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:l,...d}=e,c=P(N,r),f=b(r),{onClose:h}=c;return n.useEffect(()=>(document.addEventListener(x,h),()=>document.removeEventListener(x,h)),[h]),n.useEffect(()=>{if(c.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(c.trigger))&&h()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[c.trigger,h]),(0,v.jsx)(s.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:h,children:(0,v.jsxs)(u.UC,{"data-state":c.stateAttribute,...f,...d,ref:t,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,v.jsx)(p.xV,{children:i}),(0,v.jsx)(F,{scope:r,isInside:!0,children:(0,v.jsx)(m.b,{id:c.contentId,role:"tooltip",children:o||i})})]})})});I.displayName=N;var z="TooltipArrow";n.forwardRef((e,t)=>{let{__scopeTooltip:r,...n}=e,i=b(r);return V(z,r).isInside?null:(0,v.jsx)(u.i3,{...i,...n,ref:t})}).displayName=z;var W=S,U=T,G=A,Z=D,$=I},15525:(e,t,r)=>{r.d(t,{U:()=>a});
1var n=r(14418),i=r(52238),o=r(5402);function a(e,t){let{transitionEnd:r={},transition:a={},...s}=(0,o.K)(e,t)||{};for(let t in s={...s,...r}){let r=(0,n.K)(s[t]);e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,(0,i.OQ)(r))}}},16448:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:void 0,unoptimized:!1}},16462:(e,t,r)=>{r.d(t,{Oh:()=>o});var n=r(47049),i=0;function o(){n.useEffect(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=r[0])&&void 0!==e?e:a()),document.body.insertAdjacentElement("beforeend",null!==(t=r[1])&&void 0!==t?t:a()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},16800:(e,t,r)=>{r.d(t,{N:()=>i});var n=r(47049),i=globalThis?.document?n.useLayoutEffect:()=>{}},17226:(e,t,r)=>{r.d(t,{g:()=>i});var n=r(70175);function i(e,t){let r=e.getValue("willChange");if((0,n.S)(r)&&r.add)return r.add(t)}},17303:(e,t,r)=>{r.d(t,{C:()=>a});var n=r(47049),i=r(8670),o=r(95193),a=e=>{let{present:t,children:r}=e,a=function(e){var t,r;let[i,a]=n.useState(),l=n.useRef({}),u=n.useRef(e),d=n.useRef("none"),[c,f]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return n.useEffect(()=>{let e=s(l.current);d.current="mounted"===c?e:"none"},[c]),(0,o.N)(()=>{let t=l.current,r=u.current;if(r!==e){let n=d.current,i=s(t);e?f("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):r&&n!==i?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,o.N)(()=>{if(i){var e;let t,r=null!==(e=i.ownerDocument.defaultView)&&void 0!==e?e:window,n=e=>{let n=s(l.current).includes(e.animationName);if(e.target===i&&n&&(f("ANIMATION_END"),!u.current)){let e=i.style.animationFillMode;i.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=e)})}},o=e=>{e.target===i&&(d.current=s(l.current))};return i.addEventListener("animationstart",o),i.addEventListener("animationcancel",n),i.addEventListener("animationend",n),()=>{r.clearTimeout(t),i.removeEventListener("animationstart",o),i.removeEventListener("animationcancel",n),i.removeEventListener("animationend",n)}}f("ANIMATION_END")},[i,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:n.useCallback(e=>{e&&(l.current=getComputedStyle(e)),a(e)},[])}}(t),l="function"==typeof r?r({present:a.isPresent}):n.Children.only(r),u=(0,i.s)(a.ref,function(e){var t,r;let n=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,i=n&&"isReactWarning"in n&&n.isReactWarning;return i?e.ref:(i=(n=null===(r=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===r?void 0:r.get)&&"isReactWarning"in n&&n.isReactWarning)?e.props.ref:e.props.ref||e.ref}(l));return"function"==typeof r||a.isPresent?n.cloneElement(l,{ref:u}):null};function s(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"},17460:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(47049),i=r(34748),o=r(4824),a=r(95193),s=r(44189),l=n.forwardRef((e,t)=>{var r,l;let{container:u,...d}=e,[c,f]=n.useState(!1);(0,a.N)(()=>f(!0),[]);let p=u||c&&(null===(l=globalThis)||void 0===l?void 0:null===(r=l.document)||void 0===r?void 0:r.body);return p?i.createPortal((0,s.jsx)(o.sG.div,{...d,ref:t}),p):null});l.displayName="Portal"},18497:(e,t,r)=>{r.d(t,{B:()=>l});var n,i=r(47049),o=r(95193),a=(n||(n=r.t(i,2)))["useId".toString()]||(()=>void 0),s=0;function l(e){let[t,r]=i.useState(a());return(0,o.N)(()=>{e||r(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},19118:(e,t,r)=>{r.d(t,{default:()=>i.a});var n=r(79277),i=r.n(n)},19739:(e,t,r)=>{r.d(t,{L:()=>i});var n=r(47049);function i(e,t,r){(0,n.useInsertionEffect)(()=>e.on(t,r),[e,t,r])}},19948:e=>{e.exports=JSON.parse('{"id":"google-analytics","description":"Install a Google Analytics tag on your website","website":"https://analytics.google.com/analytics/web/","scripts":[{"url":"https://www.googletagmanager.com/gtag/js","params":["id"],"strategy":"worker","location":"head","action":"append"},{"code":"window.dataLayer=window.dataLayer||[];window.gtag=function gtag(){window.dataLayer.push(arguments);};gtag(\'js\',new Date());gtag(\'config\',\'${args.id}\')","strategy":"worker","location":"head","action":"append"}]}')},20204:(e,t,r)=>{function n(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}r.d(t,{P:()=>r0});var i,o,a=r(24119);function s(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function l(e){return"string"==typeof e||Array.isArray(e)}var u=r(5402);let d=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],c=["initial",...d];var f=r(30533);let p=c.length,h=[...d].reverse(),m=d.length;function v(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function g(){return{animate:v(!0),whileInView:v(),whileHover:v(),whileTap:v(),whileDrag:v(),whileFocus:v(),exit:v()}}class y{constructor(e){this.isMounted=!1,this.node=e}update(){}}class b extends y{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>(0,f._)(e,t,r))),r=g(),i=!0,o=t=>(r,n)=>{var i;let o=(0,u.K)(e,n,"exit"===t?null===(i=e.presenceContext)||void 0===i?void 0:i.custom:void 0);if(o){let{transition:e,transitionEnd:t,...n}=o;r={...r,...n,...t}}return r};function d(u){let{props:d}=e,f=function e(t){if(!t)return;if(!t.isControllingVariants){let r=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(r.initial=t.props.initial),r}let r={};for(let e=0;e<p;e++){let n=c[e],i=t.props[n];(l(i)||!1===i)&&(r[n]=i)}return r}(e.parent)||{},v=[],g=new Set,y={},b=1/0;for(let t=0;t<m;t++){var w,x;let c=h[t],p=r[c],m=void 0!==d[c]?d[c]:f[c],_=l(m),E=c===u?p.isActive:null;!1===E&&(b=t);let S=m===f[c]&&m!==d[c]&&_;if(S&&i&&e.manuallyAnimateOnMount&&(S=!1),p.protectedKeys={...y},!p.isActive&&null===E||!m&&!p.prevProp||n(m)||"boolean"==typeof m)continue;let C=(w=p.prevProp,"string"==typeof(x=m)?x!==w:!!Array.isArray(x)&&!s(x,w)),k=C||c===u&&p.isActive&&!S&&_||t>b&&_,P=!1,T=Array.isArray(m)?m:[m],j=T.reduce(o(c),{});!1===E&&(j={});let{prevResolvedValues:A={}}=p,R={...A,...j},M=t=>{k=!0,g.has(t)&&(P=!0,g.delete(t)),p.needsAnimating[t]=!0;let r=e.getValue(t);r&&(r.liveStyle=!1)};for(let e in R){let t=j[e],r=A[e];if(y.hasOwnProperty(e))continue;let n=!1;((0,a.p)(t)&&(0,a.p)(r)?s(t,r):t===r)?void 0!==t&&g.has(e)?M(e):p.protectedKeys[e]=!0:null!=t?M(e):g.add(e)}p.prevProp=m,p.prevResolvedValues=j,p.isActive&&(y={...y,...j}),i&&e.blockInitialAnimation&&(k=!1);let O=!(S&&C)||P;k&&O&&v.push(...T.map(e=>({animation:e,options:{type:c}})))}if(g.size){let t={};g.forEach(r=>{let n=e.getBaseTarget(r),i=e.getValue(r);i&&(i.liveStyle=!0),t[r]=null!=n?n:null}),v.push({animation:t})}let _=!!v.length;return i&&(!1===d.initial||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(_=!1),i=!1,_?t(v):Promise.resolve()}
1return{animateChanges:d,setActive:function(t,n){var i;if(r[t].isActive===n)return Promise.resolve();null===(i=e.variantChildren)||void 0===i||i.forEach(e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n;let o=d(t);for(let e in r)r[e].protectedKeys={};return o},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=g(),i=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();n(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}let w=0;class x extends y{constructor(){super(...arguments),this.id=w++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;let n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}var _=r(10202),E=r(69743),S=r(95124);function C(e){return{point:{x:e.pageX,y:e.pageY}}}let k=e=>t=>(0,S.Mc)(t)&&e(t,C(t));var P=r(23338);function T(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function j(e,t,r,n){return T(e,t,k(r),n)}var A=r(98904);let R=(e,t)=>Math.abs(e-t);var M=r(62343);class O{constructor(e,t,{transformPagePoint:r,contextWindow:n,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=I(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){return Math.sqrt(R(e.x,t.x)**2+R(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;let{point:n}=e,{timestamp:i}=M.uv;this.history.push({...n,timestamp:i});let{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=D(t,this.transformPagePoint),M.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:n,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=I("pointercancel"===e.type?this.lastMoveEventInfo:D(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,o),n&&n(e,o)},!(0,S.Mc)(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=r,this.contextWindow=n||window;let o=D(C(e),this.transformPagePoint),{point:a}=o,{timestamp:s}=M.uv;this.history=[{...a,timestamp:s}];let{onSessionStart:l}=t;l&&l(e,I(o,this.history)),this.removeListeners=(0,A.F)(j(this.contextWindow,"pointermove",this.handlePointerMove),j(this.contextWindow,"pointerup",this.handlePointerUp),j(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,M.WG)(this.updatePoint)}}function D(e,t){return t?{point:t(e.point)}:e}function N(e,t){return{x:e.x-t.x,y:e.y-t.y}}function I({point:e},t){return{point:e,delta:N(e,L(t)),offset:N(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,i=L(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>(0,P.f)(.1)));)r--;if(!n)return{x:0,y:0};let o=(0,P.X)(i.timestamp-n.timestamp);if(0===o)return{x:0,y:0};let a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,.1)}}function L(e){return e[e.length-1]}function F(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}var V=r(72233),B=r(85838);function z(e){return e.max-e.min}function W(e,t,r,n=.5){e.origin=n,e.originPoint=(0,B.k)(t.min,t.max,e.origin),e.scale=z(r)/z(t),e.translate=(0,B.k)(r.min,r.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function U(e,t,r,n){W(e.x,t.x,r.x,n?n.originX:void 0),W(e.y,t.y,r.y,n?n.originY:void 0)}function G(e,t,r){e.min=r.min+t.min,e.max=e.min+z(t)}function Z(e,t,r){e.min=t.min-r.min,e.max=e.min+z(t)}function $(e,t,r){Z(e.x,t.x,r.x),Z(e.y,t.y,r.y)}var H=r(70767);function K(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function q(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function Y(e,t,r){return{min:X(e,t),max:X(e,r)}}function X(e,t){return"number"==typeof e?e:e[t]||0}let J=()=>({translate:0,scale:1,origin:0,originPoint:0}),Q=()=>({x:J(),y:J()}),ee=()=>({min:0,max:0}),et=()=>({x:ee(),y:ee()});function er(e){return[e("x"),e("y")]}function en({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function ei(e){return void 0===e||1===e}function eo({scale:e,scaleX:t,scaleY:r}){return!ei(e)||!ei(t)||!ei(r)}function ea(e){return eo(e)||es(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function es(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function el(e,t,r,n,i){return void 0!==i&&(e=n+i*(e-n)),n+r*(e-n)+t}function eu(e,t=0,r=1,n,i){e.min=el(e.min,t,r,n,i),e.max=el(e.max,t,r,n,i)}function ed(e,{x:t,y:r}){eu(e.x,t.translate,t.scale,t.originPoint),eu(e.y,r.translate,r.scale,r.originPoint)}function ec(e,t){e.min=e.min+t,e.max=e.max+t}function ef(e,t,r,n,i=.5){let o=(0,B.k)(e.min,e.max,i);eu(e,t,r,o,n)}function ep(e,t){ef(e.x,t.x,t.scaleX,t.scale,t.originX),ef(e.y,t.y,t.scaleY,t.scale,t.originY)}function eh(e,t){return en(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}var em=r(25434),ev=r(32576);let eg=({current:e})=>e?e.ownerDocument.defaultView:null;var ey=r(17226);let eb=new WeakMap;class ew{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=et(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new O(e,{onSessionStart:e=>{let{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(C(e).point)},onStart:(e,t)=>{let{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,S.Wp)(r),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),er(e=>{let t=this.getAxisMotionValue(e).get()||0;if(em.KN.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let n=r.layout.layoutBox[e];n&&(t=z(n)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&M.Gt.postRender(()=>i(e,t)),(0,ey.g)(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>
1{let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:o}=this.getProps();if(!r&&!this.openDragLock)return;let{offset:a}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>er(e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:eg(this.visualElement)})}stop(e,t){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:n}=t;this.startAnimation(n);let{onDragEnd:i}=this.getProps();i&&M.Gt.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){let{drag:n}=this.getProps();if(!r||!ex(e,n,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?(0,B.k)(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?(0,B.k)(r,e,n.max):Math.min(e,r)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,i=this.constraints;t&&F(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=function(e,{top:t,left:r,bottom:n,right:i}){return{x:K(e.x,r,i),y:K(e.y,t,n)}}(n.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:Y(e,"left","right"),y:Y(e,"top","bottom")}}(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&er(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!F(t))return!1;let n=t.current;(0,E.V)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,r){let n=eh(e,r),{scroll:i}=t;return i&&(ec(n.x,i.offset.x),ec(n.y,i.offset.y)),n}(n,i.root,this.visualElement.getTransformPagePoint()),a={x:q((e=i.layout.layoutBox).x,o.x),y:q(e.y,o.y)};if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=en(e))}return a}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all(er(a=>{if(!ex(a,t,this.currentDirection))return;let l=s&&s[a]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:r?e[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return(0,ey.g)(this.visualElement,e),r.start((0,ev.f)(e,r,0,t,this.visualElement,!1))}stopAnimation(){er(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){er(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps();return r[t]||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){er(t=>{let{drag:r}=this.getProps();if(!ex(t,r,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){let{min:r,max:o}=n.layout.layoutBox[t];i.set(e[t]-(0,B.k)(r,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!F(t)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};er(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let r=t.get();n[e]=function(e,t){let r=.5,n=z(e),i=z(t);return i>n?r=(0,V.q)(t.min,t.max-n,e.min):n>i&&(r=(0,V.q)(e.min,e.max-i,t.min)),(0,H.q)(0,1,r)}({min:r,max:r},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),er(t=>{if(!ex(t,e,null))return;let r=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];r.set((0,B.k)(i,o,n[t]))})}addListeners(){if(!this.visualElement.current)return;eb.set(this.visualElement,this);let e=j(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();F(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),M.Gt.read(t);let i=T(window,"resize",()=>this.scalePositionWithinConstraints()),o=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(er(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),n(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function ex(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}class e_ extends y{constructor(e){super(e),this.removeGroupControls=_.l,this.removeListeners=_.l,this.controls=new ew(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||_.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let eE=e=>(t,r)=>{e&&M.Gt.postRender(()=>e(t,r))};class eS extends y{constructor(){super(...arguments),this.removePointerDownListener=_.l}onPointerDown(e){this.session=new O(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:eg(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:eE(e),onStart:eE(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&M.Gt.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=j(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var eC=r(44189),ek=r(47049),eP=r(36812),eT=r(31850);let ej=(0,ek.createContext)({}),eA={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function eR(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let eM={correct:(e,t)=>
1{if(!t.target)return e;if("string"==typeof e)if(!em.px.test(e))return e;else e=parseFloat(e);let r=eR(e,t.target.x),n=eR(e,t.target.y);return`${r}% ${n}%`}};var eO=r(69870);let eD={},{schedule:eN,cancel:eI}=(0,r(64050).I)(queueMicrotask,!1);class eL extends ek.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;Object.assign(eD,eV),i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),eA.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:n,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,n||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||M.Gt.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),eN.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function eF(e){let[t,r]=function(){let e=(0,ek.useContext)(eP.t);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,i=(0,ek.useId)();(0,ek.useEffect)(()=>n(i),[]);let o=(0,ek.useCallback)(()=>r&&r(i),[i,r]);return!t&&r?[!1,o]:[!0]}(),n=(0,ek.useContext)(eT.L);return(0,eC.jsx)(eL,{...e,layoutGroup:n,switchLayoutGroup:(0,ek.useContext)(ej),isPresent:t,safeToRemove:r})}let eV={borderRadius:{...eM,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eM,borderTopRightRadius:eM,borderBottomLeftRadius:eM,borderBottomRightRadius:eM,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let n=eO.f.parse(e);if(n.length>5)return e;let i=eO.f.createTransformer(e),o=+("number"!=typeof n[0]),a=r.x.scale*t.x,s=r.y.scale*t.y;n[0+o]/=a,n[1+o]/=s;let l=(0,B.k)(a,s,.5);return"number"==typeof n[2+o]&&(n[2+o]/=l),"number"==typeof n[3+o]&&(n[3+o]/=l),i(n)}}};var eB=r(12661),ez=r(89803);let eW=["TopLeft","TopRight","BottomLeft","BottomRight"],eU=eW.length,eG=e=>"string"==typeof e?parseFloat(e):e,eZ=e=>"number"==typeof e||em.px.test(e);function e$(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let eH=eq(0,.5,ez.yT),eK=eq(.5,.95,_.l);function eq(e,t,r){return n=>n<e?0:n>t?1:r((0,V.q)(e,t,n))}function eY(e,t){e.min=t.min,e.max=t.max}function eX(e,t){eY(e.x,t.x),eY(e.y,t.y)}function eJ(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function eQ(e,t,r,n,i){return e-=t,e=n+1/r*(e-n),void 0!==i&&(e=n+1/i*(e-n)),e}function e0(e,t,[r,n,i],o,a){!function(e,t=0,r=1,n=.5,i,o=e,a=e){if(em.KN.test(t)&&(t=parseFloat(t),t=(0,B.k)(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=(0,B.k)(o.min,o.max,n);e===o&&(s-=t),e.min=eQ(e.min,t,r,s,i),e.max=eQ(e.max,t,r,s,i)}(e,t[r],t[n],t[i],t.scale,o,a)}let e1=["x","scaleX","originX"],e4=["y","scaleY","originY"];function e2(e,t,r,n){e0(e.x,t,e1,r?r.x:void 0,n?n.x:void 0),e0(e.y,t,e4,r?r.y:void 0,n?n.y:void 0)}var e9=r(93181);function e3(e){return 0===e.translate&&1===e.scale}function e7(e){return e3(e.x)&&e3(e.y)}function e5(e,t){return e.min===t.min&&e.max===t.max}function e8(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function e6(e,t){return e8(e.x,t.x)&&e8(e.y,t.y)}function te(e){return z(e.x)/z(e.y)}function tt(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var tr=r(4153);class tn{constructor(){this.members=[]}add(e){(0,tr.Kq)(this.members,e),e.scheduleRender()}remove(e){if((0,tr.Ai)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,r=this.members.findIndex(t=>e===t);if(0===r)return!1;for(let e=r;e>=0;e--){let r=this.members[e];if(!1!==r.isPresent){t=r;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:n}=e.options;!1===n&&r.hide()}}
1exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let ti=(e,t)=>e.depth-t.depth;class to{constructor(){this.children=[],this.isDirty=!1}add(e){(0,tr.Kq)(this.children,e),this.isDirty=!0}remove(e){(0,tr.Ai)(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ti),this.isDirty=!1,this.children.forEach(e)}}var ta=r(14418),ts=r(70175);function tl(e){let t=(0,ts.S)(e)?e.get():e;return(0,ta.B)(t)?t.toValue():t}var tu=r(13937),td=r(52238),tc=r(67745);let tf={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},tp="undefined"!=typeof window&&void 0!==window.MotionDebug,th=["","X","Y","Z"],tm={visibility:"hidden"},tv=0;function tg(e,t,r,n){let{latestValues:i}=t;i[e]&&(r[e]=i[e],t.setStaticValue(e,0),n&&(n[e]=0))}function ty({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(e={},r=null==t?void 0:t()){this.id=tv++,this.animationId=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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,tp&&(tf.totalNodes=tf.resolvedTargetDeltas=tf.recalculatedProjection=0),this.nodes.forEach(tx),this.nodes.forEach(tT),this.nodes.forEach(tj),this.nodes.forEach(t_),tp&&window.MotionDebug.record(tf)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new to)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new eB.v),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,r=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:n,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(i||n)&&(this.isLayoutDirty=!0),e){let r,n=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){let r=tu.k.now(),n=({timestamp:i})=>{let o=i-r;o>=250&&((0,M.WG)(n),e(o-t))};return M.Gt.read(n,!0),()=>(0,M.WG)(n)}(n,250),eA.hasAnimatedSinceResize&&(eA.hasAnimatedSinceResize=!1,this.nodes.forEach(tP))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&o&&(n||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||o.getDefaultTransition()||tN,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=o.getProps(),l=!this.targetLayout||!e6(this.targetLayout,n)||r,u=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...(0,e9.r)(i,"layout"),onPlay:a,onComplete:s};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||tP(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,M.WG)(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.forEac
1h(tA),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:r}=t.options;if(!r)return;let n=(0,tc.P)(r);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:e,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",M.Gt,!(e||r))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(tS);return}this.isUpdating||this.nodes.forEach(tC),this.isUpdating=!1,this.nodes.forEach(tk),this.nodes.forEach(tb),this.nodes.forEach(tw),this.clearAllSnapshots();let e=tu.k.now();M.uv.delta=(0,H.q)(0,1e3/60,e-M.uv.timestamp),M.uv.timestamp=e,M.uv.isProcessing=!0,M.PP.update.process(M.uv),M.PP.preRender.process(M.uv),M.PP.render.process(M.uv),M.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,eN.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tE),this.sharedNodes.forEach(tR)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,M.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){M.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=et(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){let t=n(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!e7(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,o=n!==this.prevTransformTemplateValue;e&&(t||ea(this.latestValues)||o)&&(i(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let r=this.measurePageBox(),n=this.removeElementScroll(r);return e&&(n=this.removeTransform(n)),tF((t=n).x),tF(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;let{visualElement:t}=this.options;if(!t)return et();let r=t.measureViewportBox();if(!((null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)||this.path.some(tB))){let{scroll:e}=this.root;e&&(ec(r.x,e.offset.x),ec(r.y,e.offset.y))}return r}removeElementScroll(e){var t;let r=et();if(eX(r,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return r;for(let t=0;t<this.path.length;t++){let n=this.path[t],{scroll:i,options:o}=n;n!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&eX(r,e),ec(r.x,i.offset.x),ec(r.y,i.offset.y))}return r}applyTransform(e,t=!1){let r=et();eX(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&ep(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),ea(n.latestValues)&&ep(r,n.latestValues)}return ea(this.latestValues)&&ep(r,this.latestValues),r}removeTransform(e){let t=et();eX(t,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];if(!r.instance||!ea(r.latestValues))continue;eo(r.latestValues)&&r.updateSnapshot();let n=et();eX(n,r.measurePageBox()),e2(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return ea(this.latestValues)&&e2(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}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!==M.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,r,n,i;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let a=!!this.resumingFrom||this!==o;if(!(e||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:l}=this.options;if(this.layout&&(s||l)){if(this.resolvedRelativeTargetAt=M.uv.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=et(),this.relativeTargetOrigin=et(),$(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),eX(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=et(),this.targetWithTransforms=et()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),r=this.target,n=this.relativeTarget,i=this.relativeParent.target,G(r.x,n.x,i.x),G(r.y,n.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):eX(this.target,this.layout.layoutBox),ed(this.target,this.targetDelta)):eX(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=et(),this.relativeTargetOrigin=et(),$(this.relativeTargetOrigin,this.target,e.target),eX(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}tp&&tf.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||eo(this.parent.latestValues)||es(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),r=!!this.resumingFrom||this!==t,n=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(n=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===M.uv.timestamp&&(n=!1),n)return;let{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||o))return;eX(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,s=this.treeScale.y;!function(e,t,r,n=!1){let i,o,a=r.length;if(a){t.x=t.y=1;for(let s=0;s<a;s++){o=(i=r[s]).projectionDelta;let{visualElement:a}=i.options;
1(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&ep(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,ed(e,o)),n&&ea(i.latestValues)&&ep(e,i.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,r),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=et());let{target:l}=t;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(eJ(this.prevProjectionDelta.x,this.projectionDelta.x),eJ(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),U(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===s&&tt(this.projectionDelta.x,this.prevProjectionDelta.x)&&tt(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),tp&&tf.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Q(),this.projectionDelta=Q(),this.projectionDeltaWithTransform=Q()}setAnimationOrigin(e,t=!1){let r,n=this.snapshot,i=n?n.latestValues:{},o={...this.latestValues},a=Q();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=et(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),d=!u||u.members.length<=1,c=!!(l&&!d&&!0===this.options.crossfade&&!this.path.some(tD));this.animationProgress=0,this.mixTargetDelta=t=>{let n=t/1e3;if(tM(a.x,e.x,n),tM(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,f,p,h,m,v;if($(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,h=this.relativeTargetOrigin,m=s,v=n,tO(p.x,h.x,m.x,v),tO(p.y,h.y,m.y,v),r&&(u=this.relativeTarget,f=r,e5(u.x,f.x)&&e5(u.y,f.y)))this.isProjectionDirty=!1;r||(r=et()),eX(r,this.relativeTarget)}l&&(this.animationValues=o,function(e,t,r,n,i,o){i?(e.opacity=(0,B.k)(0,void 0!==r.opacity?r.opacity:1,eH(n)),e.opacityExit=(0,B.k)(void 0!==t.opacity?t.opacity:1,0,eK(n))):o&&(e.opacity=(0,B.k)(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,n));for(let i=0;i<eU;i++){let o=`border${eW[i]}Radius`,a=e$(t,o),s=e$(r,o);(void 0!==a||void 0!==s)&&(a||(a=0),s||(s=0),0===a||0===s||eZ(a)===eZ(s)?(e[o]=Math.max((0,B.k)(eG(a),eG(s),n),0),(em.KN.test(s)||em.KN.test(a))&&(e[o]+="%")):e[o]=s)}(t.rotate||r.rotate)&&(e.rotate=(0,B.k)(t.rotate||0,r.rotate||0,n))}(o,i,this.latestValues,n,c,d)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,M.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=M.Gt.update(()=>{eA.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r){let n=(0,ts.S)(0)?0:(0,td.OQ)(e);return n.start((0,ev.f)("",n,1e3,r)),n.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.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);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:r,layout:n,latestValues:i}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&tV(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||et();let t=z(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let n=z(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}eX(t,r),ep(t,i),U(this.projectionDeltaWithTransform,this.layoutCorrected,t,i
1)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new tn),this.sharedNodes.get(e).add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){let n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;let n={};r.z&&tg("z",e,n,this.animationValues);for(let t=0;t<th.length;t++)tg(`rotate${th[t]}`,e,n,this.animationValues),tg(`skew${th[t]}`,e,n,this.animationValues);for(let t in e.render(),n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}getProjectionStyles(e){var t,r;if(!this.instance||this.isSVG)return;if(!this.isVisible)return tm;let n={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=tl(null==e?void 0:e.pointerEvents)||"",n.transform=i?i(this.latestValues,""):"none",n;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=tl(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!ea(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}let a=o.animationValues||o.latestValues;this.applyTransformsToTarget(),n.transform=function(e,t,r){let n="",i=e.x.translate/t.x,o=e.
1y.translate/t.y,a=(null==r?void 0:r.z)||0;if((i||o||a)&&(n=`translate3d(${i}px, ${o}px, ${a}px) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:o,skewX:a,skewY:s}=r;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),i&&(n+=`rotateX(${i}deg) `),o&&(n+=`rotateY(${o}deg) `),a&&(n+=`skewX(${a}deg) `),s&&(n+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(n+=`scale(${s}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,a),i&&(n.transform=i(a,n.transform));let{x:s,y:l}=this.projectionDelta;for(let e in n.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,o.animationValues?n.opacity=o===this?null!==(r=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:n.opacity=o===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,eD){if(void 0===a[e])continue;let{correct:t,applyTo:r}=eD[e],i="none"===n.transform?a[e]:t(a[e],o);if(r){let e=r.length;for(let t=0;t<e;t++)n[r[t]]=i}else n[e]=i}return this.options.layoutId&&(n.pointerEvents=o===this?tl(null==e?void 0:e.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(tS),this.root.sharedNodes.clear()}}}function tb(e){e.updateLayout()}function tw(e){var t;let r=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:n}=e.layout,{animationType:i}=e.options,o=r.source!==e.layout.source;"size"===i?er(e=>{let n=o?r.measuredBox[e]:r.layoutBox[e],i=z(n);n.min=t[e].min,n.max=n.min+i}):tV(i,r.layoutBox,t)&&er(n=>{let i=o?r.measuredBox[n]:r.layoutBox[n],a=z(t[n]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)});let a=Q();U(a,t,r.layoutBox);let s=Q();o?U(s,e.applyTransform(n,!0),r.measuredBox):U(s,t,r.layoutBox);let l=!e7(a),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:i,layout:o}=n;if(i&&o){let a=et();$(a,r.layoutBox,i.layoutBox);let s=et();$(s,t,o.layoutBox),e6(a,s)||(u=!0),n.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function tx(e){tp&&tf.totalNodes++,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 t_(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function tE(e){e.clearSnapshot()}function tS(e){e.clearMeasurements()}function tC(e){e.isLayoutDirty=!1}function tk(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function tP(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function tT(e){e.resolveTargetDelta()}function tj(e){e.calcProjection()}function tA(e){e.resetSkewAndRotation()}function tR(e){e.removeLeadSnapshot()}function tM(e,t,r){e.translate=(0,B.k)(t.translate,0,r),e.scale=(0,B.k)(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function tO(e,t,r,n){e.min=(0,B.k)(t.min,r.min,n),e.max=(0,B.k)(t.max,r.max,n)}function tD(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let tN={duration:.45,ease:[.4,0,.1,1]},tI=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),tL=tI("applewebkit/")&&!tI("chrome/")?Math.round:_.l;function tF(e){e.min=tL(e.min),e.max=tL(e.max)}function tV(e,t,r){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(te(t)-te(r)))}function tB(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}let tz=ty({attachResizeListener:(e,t)=>T(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),tW={current:void 0},tU=ty({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!tW.current){let e=new tz({});e.mount(window),e.setOptions({layoutScroll:!0}),tW.current=e}return tW.current},resetTransform:(e,t)=>
1{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function tG(e,t,r){let{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover","Start"===r);let i=n["onHover"+r];i&&M.Gt.postRender(()=>i(t,C(t)))}class tZ extends y{mount(){let{current:e}=this.node;e&&(this.unmount=(0,S.PT)(e,e=>(tG(this.node,e,"Start"),e=>tG(this.node,e,"End"))))}unmount(){}}class t$ extends y{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&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=(0,A.F)(T(this.node.current,"focus",()=>this.onFocus()),T(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function tH(e,t,r){let{props:n}=e;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap","Start"===r);let i=n["onTap"+("End"===r?"":r)];i&&M.Gt.postRender(()=>i(t,C(t)))}class tK extends y{mount(){let{current:e}=this.node;e&&(this.unmount=(0,S.c$)(e,e=>(tH(this.node,e,"Start"),(e,{success:t})=>tH(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let tq=new WeakMap,tY=new WeakMap,tX=e=>{let t=tq.get(e.target);t&&t(e)},tJ=e=>{e.forEach(tX)},tQ={some:0,all:1};class t0 extends y{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:tQ[n]};return function(e,t,r){let n=function({root:e,...t}){let r=e||document;tY.has(r)||tY.set(r,{});let n=tY.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(tJ,{root:e,...t})),n[i]}(t);return tq.set(e,r),n.observe(e),()=>{tq.delete(e),n.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),o=t?r:n;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}var t1=r(62733);let t4=(0,ek.createContext)({});var t2=r(45911);let t9=(0,ek.createContext)({strict:!1});var t3=r(96631);function t7(e){return n(e.animate)||c.some(t=>l(e[t]))}function t5(e){return!!(t7(e)||e.variants)}function t8(e){return Array.isArray(e)?e.join(" "):e}let t6={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"]},re={};for(let e in t6)re[e]={isEnabled:t=>t6[e].some(e=>!!t[e])};var rt=r(37227);let rr=Symbol.for("motionComponentSymbol"),rn=["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 ri(e){if("string"!=typeof e||e.includes("-"));else if(rn.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var ro=r(49577);function ra(e,{style:t,vars:r},n,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(n)),r)e.style.setProperty(o,r[o])}let rs=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"]);function rl(e,t,r,n){for(let r in ra(e,t,void 0,n),t.attrs)e.setAttribute(rs.has(r)?r:(0,ro.I)(r),t.attrs[r])}var ru=r(23863);function rd(e,{layout:t,layoutId:r}){return ru.f.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!eD[e]||"opacity"===e)}function rc(e,t,r){var n;let{style:i}=e,o={};for(let a in i)((0,ts.S)(i[a])||t.style&&(0,ts.S)(t.style[a])||rd(a,e)||(null===(n=null==r?void 0:r.getValue(a))||void 0===n?void 0:n.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function rf(e,t,r){let n=rc(e,t,r);for(let r in e)((0,ts.S)(e[r])||(0,ts.S)(t[r]))&&(n[-1!==ru.U.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}var rp=r(88278),rh=r(26502);let rm=e=>(t,r)=>{let i=(0,ek.useContext)(t4),o=(0,ek.useContext)(eP.t),a=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},i,o,a){let s={latestValues:function(e,t,r,i){let o={},a=i(e,{});for(let e in a)o[e]=tl(a[e]);let{initial:s,animate:l}=e,u=t7(e),d=t5(e);t&&d&&!u&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===l&&(l=t.animate));let c=!!r&&!1===r.initial,f=(c=c||!1===s)?l:s;if(f&&"boolean"!=typeof f&&!n(f)){let t=Array.isArray(f)?f:[f];for(let r=0;r<t.length;r++){let n=(0,rp.a)(e,t[r]);if(n){let{transitionEnd:e,transition:t,...r}=n;for(let e in r){let t=r[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(o[e]=t)}for(let t in e)o[t]=e[t]}}}return o}(i,o,a,e),renderState:t()};return r&&(s.mount=e=>r(i,e,s)),s})(e,t,i,o);return r?a():(0,rh.M)(a)},rv=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),rg=()=>({...rv(),attrs:{}}),ry=(e,t)=>t&&"number"==typeof e?t.transform(e):e;var rb=r(29694);let rw={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rx=ru.U.length;var r_=r(89811);function rE(e,t,r){let{style:n,vars:i,transformOrigin:o}=e,a=!1,s=!1;for(let e in t){let r=t[e];if(ru.f.has(e)){a=!0;continue}if((0,r_.j)(e)){i[e]=r;continue}{let t=ry(r,rb.W[e]);e.startsWith("origin")?(s=!0,o[e]=t):n[e]=t}}if(!t.transform&&(a||r?n.transform=function(e,t,r){let n="",i=!0;for(let o=0;o<rx;o++){let a=ru.U[o],s=e[a];if(void 0===s)continue;let l=!0;if(!(l="number"==typeof s?s===+!!a.startsWith("scale"):0===parseFloat(s))||r){let e=ry(s,rb.W[a]);if(!l){i=!1;let t=rw[a]||a;n+=`${t}(${e}) `}r&&(t[a]=e)}}return n=n.trim(),r?n=r(t,i?"":n):i&&(n="none"),n}(t,e.transform,r):n.transform&&(n.transform="none")),s){let{originX:e="50%",originY:t="50%",originZ:r=0}=o;n.transformOrigin=`${e} ${t} ${r}`}}function rS(e,t,r){return"string"==typeof e?e:em.px.transform(t+r*e)}let rC={offset:"stroke-dashoffset",array:"stroke-dasharray"},rk={offset:"strokeDashoffset",array:"strokeDasharray"};function rP(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u}
1,d,c){if(rE(e,u,c),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:f,style:p,dimensions:h}=e;f.transform&&(h&&(p.transform=f.transform),delete f.transform),h&&(void 0!==i||void 0!==o||p.transform)&&(p.transformOrigin=function(e,t,r){let n=rS(t,e.x,e.width),i=rS(r,e.y,e.height);return`${n} ${i}`}(h,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==t&&(f.x=t),void 0!==r&&(f.y=r),void 0!==n&&(f.scale=n),void 0!==a&&function(e,t,r=1,n=0,i=!0){e.pathLength=1;let o=i?rC:rk;e[o.offset]=em.px.transform(-n);let a=em.px.transform(t),s=em.px.transform(r);e[o.array]=`${a} ${s}`}(f,a,s,l,!1)}let rT=e=>"string"==typeof e&&"svg"===e.toLowerCase(),rj={useVisualState:rm({scrapeMotionValuesFromProps:rf,createRenderState:rg,onMount:(e,t,{renderState:r,latestValues:n})=>{M.Gt.read(()=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}}),M.Gt.render(()=>{rP(r,n,rT(t.tagName),e.transformTemplate),rl(t,r)})}})},rA={useVisualState:rm({scrapeMotionValuesFromProps:rc,createRenderState:rv})};function rR(e,t,r){for(let n in t)(0,ts.S)(t[n])||rd(n,r)||(e[n]=t[n])}let rM=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","ignoreStrict","viewport"]);function rO(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||rM.has(e)}let rD=e=>!rO(e);try{!function(e){e&&(rD=t=>t.startsWith("on")?!rO(t):e(t))}(require("@emotion/is-prop-valid").default)}catch(e){}var rN=r(79992);let rI={current:null},rL={current:!1},rF=new WeakMap;var rV=r(77700),rB=r(8135),rz=r(36787),rW=r(27716),rU=r(68634),rG=r(89378);let rZ=[...rU.T,rW.y,eO.f],r$=e=>rZ.find((0,rG.w)(e));var rH=r(37895);let rK=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class rq{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=rV.h,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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=()=>{let e=tu.k.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,M.Gt.render(this.render,!1,!0))};let{latestValues:s,renderState:l}=o;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=t7(t),this.isVariantNode=t5(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];void 0!==s[e]&&(0,ts.S)(t)&&t.set(s[e],!1)}}mount(e){if(this.current=e,rF.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),!rL.current&&(rL.current=!0,rt.B))if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>rI.current=e.matches;e.addListener(t),t()}else rI.current=!1;this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rI.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in rF.delete(this.current),this.projection&&this.projection.unmount(),(0,M.WG)(this.notifyUpdate),(0,M.WG)(this.render),this.valueSubscriptions.forEach(e
1=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){let r;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=ru.f.has(e),i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&M.Gt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),o(),r&&r(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in re){let t=re[e];if(!t)continue;let{isEnabled:r,Feature:n}=t;if(!this.features[e]&&n&&r(this.props)&&(this.features[e]=new n(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):et()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<rK.length;t++){let r=rK[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n=e["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(e,t,r){for(let n in t){let i=t[n],o=r[n];if((0,ts.S)(i))e.addValue(n,i);else if((0,ts.S)(o))e.addValue(n,(0,td.OQ)(i,{owner:e}));else if(o!==i)if(e.hasValue(n)){let t=e.getValue(n);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(n);e.addValue(n,(0,td.OQ)(void 0!==t?t:i,{owner:e}))}}for(let n in r)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=(0,td.OQ)(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){var r;let n=void 0===this.latestValues[e]&&this.current?null!==(r=this.getBaseTargetFromProps(this.props,e))&&void 0!==r?r:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=n&&("string"==typeof n&&((0,rB.i)(n)||(0,rz.$)(n))?n=parseFloat(n):!r$(n)&&eO.f.test(t)&&(n=(0,rH.J)(e,t)),this.setBaseTarget(e,(0,ts.S)(n)?n.get():n)),(0,ts.S)(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let r,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let i=(0,rp.a)(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);i&&(r=i[e])}if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||(0,ts.S)(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new eB.v),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}var rY=r(74421);class rX extends rq{constructor(){super(...arguments),this.KeyframeResolver=rY.K}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;(0,ts.S)(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class rJ extends rX{constructor(){super(...arguments),this.type="html",this.renderInstance=ra}readValueFromInstance(e,t){if(ru.f.has(t)){let e=(0,rN.D)(t);return e&&e.default||0}{let r=window.getComputedStyle(e),n=((0,r_.j)(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return eh(e,t)}build(e,t,r){rE(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return rc(e,t,r)}}class rQ extends rX{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=et}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(ru.f.has(t)){let e=(0,rN.D)(t);return e&&e.default||0}return t=rs.has(t)?t:(0,ro.I)(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return rf(e,t,r)}build(e,t,r){rP(e,t,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,r,n){rl(e,t,r,n)}mount(e){this.isSVGTag=rT(e.tagName),super.mount(e)}}let r0=function(e){if("undefined"==typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(r,n)=>"create"===n?e:(t.has(n)||t.set(n,e(n)),t.get(n))})}((i={animation:{Feature:b},exit:{Feature:x},inView:{Feature:t0},tap:{Feature:tK},focus:{Feature:t$},hover:{Feature:tZ},pan:{Feature:eS},drag:{Feature:e_,ProjectionNode:tU,MeasureLayout:eF},layout:{ProjectionNode:tU,MeasureLayout:eF}},o=(e,t)=>ri(e)?new rQ(t):new rJ(t,{allowProjection:e!==ek.Fragment}),function(e,{forwardMotionProps:t}={forwardMotionProps:!1}){return function(e){let{preloadedFeatures:t,createVisualElement:r,useRender:n,useVisualState:i,Component:o}=e;t&&function(e){for(let t in e)re[t]={...re[t],...e[t]}}(t);let a=(0,ek.forwardRef)(function(e,t){var a,s,u;let d,c={...(0,ek.useContext)(t1.Q),...e,layoutId:function(e){let{layoutId:t}=e,r=(0,ek.useContext)(eT.L).id;return r&&void 0!==t?r+"-"+t:t}(e)},{isStatic:f}=c,p=function(e){let{initial:t,animate:r}=function(e,t){if(t7(e)){let{initial:t,animate:r}=e;return{initial:!1===t||l(t)?t:void 0,animate:l(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,ek.useContext)(t4));return(0,ek.useMemo)(()=>({initial:t,animate:r}),[t8(t),t8(r)])}(e),h=i(e,f);if(!f&&rt.B){s=0,u=0,(0,ek.useContext)(t9).strict;let e=function(e){let{drag:t,layout:r}=re;if(!t&&!r)return{};let n={...t,...r};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==r?void 0:r.isEnabled(e))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
1(c);d=e.MeasureLayout,p.visualElement=function(e,t,r,n,i){var o,a;let{visualElement:s}=(0,ek.useContext)(t4),l=(0,ek.useContext)(t9),u=(0,ek.useContext)(eP.t),d=(0,ek.useContext)(t1.Q).reducedMotion,c=(0,ek.useRef)(null);n=n||l.renderer,!c.current&&n&&(c.current=n(e,{visualState:t,parent:s,props:r,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:d}));let f=c.current,p=(0,ek.useContext)(ej);f&&!f.projection&&i&&("html"===f.type||"svg"===f.type)&&function(e,t,r,n){let{layoutId:i,layout:o,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:u}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||s&&F(s),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(c.current,r,i,p);let h=(0,ek.useRef)(!1);(0,ek.useInsertionEffect)(()=>{f&&h.current&&f.update(r,u)});let m=r[t3.n],v=(0,ek.useRef)(!!m&&!(null===(o=window.MotionHandoffIsComplete)||void 0===o?void 0:o.call(window,m))&&(null===(a=window.MotionHasOptimisedAnimation)||void 0===a?void 0:a.call(window,m)));return(0,t2.E)(()=>{f&&(h.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),eN.render(f.render),v.current&&f.animationState&&f.animationState.animateChanges())}),(0,ek.useEffect)(()=>{f&&(!v.current&&f.animationState&&f.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,m)}),v.current=!1))}),f}(o,h,c,r,e.ProjectionNode)}return(0,eC.jsxs)(t4.Provider,{value:p,children:[d&&p.visualElement?(0,eC.jsx)(d,{visualElement:p.visualElement,...c}):null,n(o,e,(a=p.visualElement,(0,ek.useCallback)(e=>{e&&h.mount&&h.mount(e),a&&(e?a.mount(e):a.unmount()),t&&("function"==typeof t?t(e):F(t)&&(t.current=e))},[a])),h,f,p.visualElement)]})});return a[rr]=o,a}({...ri(e)?rj:rA,preloadedFeatures:i,useRender:function(e=!1){return(t,r,n,{latestValues:i},o)=>{let a=(ri(t)?function(e,t,r,n){let i=(0,ek.useMemo)(()=>{let r=rg();return rP(r,t,rT(n),e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};rR(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let r={},n=function(e,t){let r=e.style||{},n={};return rR(n,r,e),Object.assign(n,function({transformTemplate:e},t){return(0,ek.useMemo)(()=>{let r=rv();return rE(r,t,e),Object.assign({},r.vars,r.style)},[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r})(r,i,o,t),s=function(e,t,r){let n={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(rD(i)||!0===r&&rO(i)||!t&&!rO(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(r,"string"==typeof t,e),l=t!==ek.Fragment?{...s,...a,ref:n}:{},{children:u}=r,d=(0,ek.useMemo)(()=>(0,ts.S)(u)?u.get():u,[u]);return(0,ek.createElement)(t,{...l,children:d})}}(t),createVisualElement:o,Component:e})}))},21913:(e,t,r)=>{r.d(t,{sG:()=>a});var n=r(47049);r(34748);var i=r(88725),o=r(44189),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,i.TL)(`Primitive.${t}`),a=n.forwardRef((e,n)=>{let{asChild:i,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(i?r:t,{...a,ref:n})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{})},22590:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=r(47049);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=o(e,n)),t&&(i.current=o(t,n))},[e,t])}function o(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 t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},23338:(e,t,r)=>{r.d(t,{X:()=>i,f:()=>n});let n=e=>1e3*e,i=e=>e/1e3},23368:(e,t)=>{function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},23863:(e,t,r)=>{r.d(t,{U:()=>n,f:()=>i});let n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],i=new Set(n)},24119:(e,t,r)=>{r.d(t,{p:()=>n});let n=e=>Array.isArray(e)},24768:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return o}});let n=r(42740)._(r(47049)),i=r(16448),o=n.default.createContext(i.imageConfigDefault)},24808:(e,t,r)=>{r.d(t,{B8:()=>j,UC:()=>R,bL:()=>T,l9:()=>A});var n=r(47049),i=r(74053),o=r(2373),a=r(37121),s=r(87635),l=r(21913),u=r(57438),d=r(79242),c=r(44926),f=r(44189),p="Tabs",[h,m]=(0,o.A)(p,[a.RG]),v=(0,a.RG)(),[g,y]=h(p),b=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,onValueChange:i,defaultValue:o,orientation:a="horizontal",dir:s,activationMode:h="automatic",...m}=e,v=(0,u.jH)(s),[y,b]=(0,d.i)({prop:n,onChange:i,defaultProp:null!=o?o:"",caller:p});return(0,f.jsx)(g,{scope:r,baseId:(0,c.B)(),value:y,onValueChange:b,orientation:a,dir:v,activationMode:h,children:(0,f.jsx)(l.sG.div,{dir:v,"data-orientation":a,...m,ref:t})})});b.displayName=p;var w="TabsList",x=n.forwardRef((e,t)=>{let{__scopeTabs:r,loop:n=!0,...i}=e,o=y(w,r),s=v(r);return(0,f.jsx)(a.bL,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:n,children:(0,f.jsx)(l.sG.div,{role:"tablist","aria-orientation":o.orientation,...i,ref:t})})});x.displayName=w;var _="TabsTrigger",E=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,disabled:o=!1,...s}=e,u=y(_,r),d=v(r),c=k(u.baseId,n),p=P(u.baseId,n),h=n===u.value;return(0,f.jsx)(a.q7,{asChild:!0,...d,focusable:!o,active:h,children:(0,f.jsx)(l.sG.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":p,"data-state":h?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...s,ref:t,onMouseDown:(0,i.m)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():u.onValueChange(n)}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&u.onValueChange(n)}),onFocus:(0,i.m)(e.onFocus,()=>{let e="manual"!==u.activationMode;h||o||!e||u.onValueChange(n)})})})});E.displayName=_;var S="TabsContent",C=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:i,forceMount:o,children:a,...u}=e,d=y(S,r),c=k(d.baseId,i),p=P(d.baseId,i),h=i===d.value,m=n.useRef(h);return n.useEffect(()=>{let e=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,f.jsx)(s.C,{present:o||h,children:r=>{let{present:n}=r;return(0,f.jsx)(l.sG.div,{"data-state":h?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":c,hidden:!n,id:p,tabIndex:0,...u,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:n&&a})}})});function k(e,t){return"".concat(e,"-trigger-").concat(t)}function P(e,t){return"".concat(e,"-content-").concat(t)}C.displayName=S;var T=b,j=x,A=E,R=C},25434:(e,t,r)=>{r.d(t,{KN:()=>o,gQ:()=>u,px:()=>a,uj:()=>i,vh:()=>s,vw:()=>l});let n=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),i=n("deg"),o=n("%"),a=n("px"),s=n("vh"),l=n("vw"),u={...o,parse:e=>o.parse(e)/100,transform:e=>o.transform(100*e)}},26284:(e,t,r)=>{r.d(t,{$:()=>o,q:()=>a});var n=r(32642);let i=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,o=(e,t)=>r=>!!("string"==typeof r&&i.test(r)&&r.startsWith(e)||t&&null!=r&&Object.prototype.hasOwnProperty.call(r,t)),a=(e,t,r)=>i=>{if("string"!=typeof i)return i;let[o,a,s,l]=i.match(n.S);return{[e]:parseFloat(o),[t]:parseFloat(a),[r]:parseFloat(s),alpha:void 0!==l?parseFloat(l):1}}},26502:(e,t,r)=>{r.d(t,{M:()=>i});var n=r(47049);function i(e){let t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}},26531:(e,t,r)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),r(96382);let n=r(85596),i=r(16448);function o(e){return void 0!==e.default}function a(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s(e,t){var r,s;let l,u,d,{src:c,sizes:f,unoptimized:p=!1,priority:h=!1,loading:m,className:v,quality:g,width:y,height:b,fill:w=!1,style:x,overrideSrc:_,onLoad:E,onLoadingComplete:S,placeholder:C="empty",blurDataURL:k,fetchPriority:P,decoding:T="async",layout:j,objectFit:A,objectPosition:R,lazyBoundary:M,lazyRoot:O,...D}=e,{imgConf:N,showAltText:I,blurComplete:L,defaultLoader:F}=t,V=N||i.imageConfigDefault;if("allSizes"in V)l=V;else{let e=[...V.deviceSizes,...V.imageSizes].sort((e,t)=>e-t),t=V.deviceSizes.sort((e,t)=>e-t),n=null==(r=V.qualities)?void 0:r.sort((e,t)=>e-t);l={...V,allSizes:e,deviceSizes:t,qualities:n}}if(void 0===F)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let B=D.loader||F;delete D.loader,delete D.srcSet;let z="__next_img_default"in B;if(z){if("custom"===l.loader)throw Object.defineProperty(Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=B;B=t=>{let{config:r,...n}=t;return e(n)}}if(j){"fill"===j&&(w=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[j];e&&(x={...x,...e});let t={responsive:"100vw",fill:"100vw"}[j];t&&!f&&(f=t)}let W="",U=a(y),G=a(b);if((s=c)&&"object"==typeof s&&(o(s)||void 0!==s.src)){let e=o(c)?c.default:c;if(!e.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(u=e.blurWidth,d=e.blurHeight,k=k||e.blurDataURL,W=e.src,!w)if(U||G){if(U&&!G){let t=U/e.width;G=Math.round(e.height*t)}else if(!U&&G){let t=G/e.height;U=Math.round(e.width*t)}}else U=e.width,G=e.height}let Z=!h&&("lazy"===m||void 0===m);(!(c="string"==typeof c?c:W)||c.startsWith("data:")||c.startsWith("blob:"))&&(p=!0,Z=!1),l.unoptimized&&(p=!0),z&&!l.dangerouslyAllowSVG&&c.split("?",1)[0].endsWith(".svg")&&(p=!0);let $=a(g),H=Object.assign(w?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:A,objectPosition:R}:{},I?{}:{color:"transparent"},x),K=L||"empty"===C?null:"blur"===C?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:U,heightInt:G,blurWidth:u,blurHeight:d,blurDataURL:k||"",objectFit:H.objectFit})+'")':'url("'+C+'")',q=K?{backgroundSize:H.objectFit||"cover",backgroundPosition:H.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:K}:{},Y=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:o,sizes:a,loader:s}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:n,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,a),d=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,n)=>s({config:t,src:r,quality:o,width:e})+" "+("w"===u?e:n+1)+u).join(", "),src:s({config:t,src:r,quality:o,width:l[d]})}}({config:l,src:c,unoptimized:p,width:U,quality:$,sizes:f,loader:B});return{props:{...D,loading:Z?"lazy":m,fetchPriority:P,width:U,height:G,decoding:T,className:v,style:{...H,...q}
1,sizes:Y.sizes,srcSet:Y.srcSet,src:_||Y.src},meta:{unoptimized:p,priority:h,placeholder:C,fill:w}}}},27716:(e,t,r)=>{r.d(t,{y:()=>a});var n=r(49899),i=r(76248),o=r(36660);let a={test:e=>o.B.test(e)||n.u.test(e)||i.V.test(e),parse:e=>o.B.test(e)?o.B.parse(e):i.V.test(e)?i.V.parse(e):n.u.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?o.B.transform(e):i.V.transform(e)}},27768:(e,t,r)=>{r.d(t,{UC:()=>G,ZL:()=>U,bL:()=>z,l9:()=>W});var n=r(47049),i=r(47998),o=r(8670),a=r(12502),s=r(38572),l=r(16462),u=r(56674),d=r(18497),c=r(36898),f=r(17460),p=r(17303),h=r(4824),m=r(72195),v=r(86349),g=r(77790),y=r(35592),b=r(44189),w="Popover",[x,_]=(0,a.A)(w,[c.Bk]),E=(0,c.Bk)(),[S,C]=x(w),k=e=>{let{__scopePopover:t,children:r,open:i,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,l=E(t),u=n.useRef(null),[f,p]=n.useState(!1),[h=!1,m]=(0,v.i)({prop:i,defaultProp:o,onChange:a});return(0,b.jsx)(c.bL,{...l,children:(0,b.jsx)(S,{scope:t,contentId:(0,d.B)(),triggerRef:u,open:h,onOpenChange:m,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:f,onCustomAnchorAdd:n.useCallback(()=>p(!0),[]),onCustomAnchorRemove:n.useCallback(()=>p(!1),[]),modal:s,children:r})})};k.displayName=w;var P="PopoverAnchor";n.forwardRef((e,t)=>{let{__scopePopover:r,...i}=e,o=C(P,r),a=E(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=o;return n.useEffect(()=>(s(),()=>l()),[s,l]),(0,b.jsx)(c.Mz,{...a,...i,ref:t})}).displayName=P;var T="PopoverTrigger",j=n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,a=C(T,r),s=E(r),l=(0,o.s)(t,a.triggerRef),u=(0,b.jsx)(h.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":B(a.open),...n,ref:l,onClick:(0,i.m)(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?u:(0,b.jsx)(c.Mz,{asChild:!0,...s,children:u})});j.displayName=T;var A="PopoverPortal",[R,M]=x(A,{forceMount:void 0}),O=e=>{let{__scopePopover:t,forceMount:r,children:n,container:i}=e,o=C(A,t);return(0,b.jsx)(R,{scope:t,forceMount:r,children:(0,b.jsx)(p.C,{present:r||o.open,children:(0,b.jsx)(f.Z,{asChild:!0,container:i,children:n})})})};O.displayName=A;var D="PopoverContent",N=n.forwardRef((e,t)=>{let r=M(D,e.__scopePopover),{forceMount:n=r.forceMount,...i}=e,o=C(D,e.__scopePopover);return(0,b.jsx)(p.C,{present:n||o.open,children:o.modal?(0,b.jsx)(I,{...i,ref:t}):(0,b.jsx)(L,{...i,ref:t})})});N.displayName=D;var I=n.forwardRef((e,t)=>{let r=C(D,e.__scopePopover),a=n.useRef(null),s=(0,o.s)(t,a),l=n.useRef(!1);return n.useEffect(()=>{let e=a.current;if(e)return(0,g.Eq)(e)},[]),(0,b.jsx)(y.A,{as:m.DX,allowPinchZoom:!0,children:(0,b.jsx)(F,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),l.current||null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,i.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;l.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,i.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),L=n.forwardRef((e,t)=>{let r=C(D,e.__scopePopover),i=n.useRef(!1),o=n.useRef(!1);return(0,b.jsx)(F,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,a;null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented||(i.current||null===(a=r.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{var n,a;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let s=t.target;(null===(a=r.triggerRef.current)||void 0===a?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),F=n.forwardRef((e,t)=>{let{__scopePopover:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:h,...m}=e,v=C(D,r),g=E(r);return(0,l.Oh)(),(0,b.jsx)(u.n,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,b.jsx)(s.qW,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:h,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onDismiss:()=>v.onOpenChange(!1),children:(0,b.jsx)(c.UC,{"data-state":B(v.open),role:"dialog",id:v.contentId,...g,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),V="PopoverClose";function B(e){return e?"open":"closed"}n.forwardRef((e,t)=>
1{let{__scopePopover:r,...n}=e,o=C(V,r);return(0,b.jsx)(h.sG.button,{type:"button",...n,ref:t,onClick:(0,i.m)(e.onClick,()=>o.onOpenChange(!1))})}).displayName=V,n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,i=E(r);return(0,b.jsx)(c.i3,{...i,...n,ref:t})}).displayName="PopoverArrow";var z=k,W=j,U=O,G=N},28474:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(85838),i=r(72233);function o(e){let t=[0];return!function(e,t){let r=e[e.length-1];for(let o=1;o<=t;o++){let a=(0,i.q)(0,t,o);e.push((0,n.k)(r,1,a))}}(t,e.length-1),t}},29410:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendGAEvent=t.GoogleAnalytics=t.sendGTMEvent=t.GoogleTagManager=t.YouTubeEmbed=t.GoogleMapsEmbed=void 0;var i=r(97867);Object.defineProperty(t,"GoogleMapsEmbed",{enumerable:!0,get:function(){return n(i).default}});var o=r(2387);Object.defineProperty(t,"YouTubeEmbed",{enumerable:!0,get:function(){return n(o).default}});var a=r(31132);Object.defineProperty(t,"GoogleTagManager",{enumerable:!0,get:function(){return a.GoogleTagManager}}),Object.defineProperty(t,"sendGTMEvent",{enumerable:!0,get:function(){return a.sendGTMEvent}});var s=r(62194);Object.defineProperty(t,"GoogleAnalytics",{enumerable:!0,get:function(){return s.GoogleAnalytics}}),Object.defineProperty(t,"sendGAEvent",{enumerable:!0,get:function(){return s.sendGAEvent}})},29511:(e,t,r)=>{r.d(t,{Gb:()=>O,Jt:()=>g,Op:()=>P,hZ:()=>x,mN:()=>eE,xI:()=>M,xW:()=>k});var n=r(47049),i=e=>"checkbox"===e.type,o=e=>e instanceof Date,a=e=>null==e;let s=e=>"object"==typeof e;var l=e=>!a(e)&&!Array.isArray(e)&&s(e)&&!o(e),u=e=>l(e)&&e.target?i(e.target)?e.target.checked:e.target.value:e,d=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,c=(e,t)=>e.has(d(t)),f=e=>{let t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},p="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function h(e){let t,r=Array.isArray(e),n="undefined"!=typeof FileList&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(p&&(e instanceof Blob||n))&&(r||l(e))))return e;else if(t=r?[]:{},r||f(e))for(let r in e)e.hasOwnProperty(r)&&(t[r]=h(e[r]));else t=e;return t}var m=e=>Array.isArray(e)?e.filter(Boolean):[],v=e=>void 0===e,g=(e,t,r)=>{if(!t||!l(e))return r;let n=m(t.split(/[,[\].]+?/)).reduce((e,t)=>a(e)?e:e[t],e);return v(n)||n===e?v(e[t])?r:e[t]:n},y=e=>"boolean"==typeof e,b=e=>/^\w*$/.test(e),w=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/)),x=(e,t,r)=>{let n=-1,i=b(t)?[t]:w(t),o=i.length,a=o-1;for(;++n<o;){let t=i[n],o=r;if(n!==a){let r=e[t];
1o=l(r)||Array.isArray(r)?r:isNaN(+i[n+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=o,e=e[t]}};let _={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},E={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},S={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},C=n.createContext(null),k=()=>n.useContext(C),P=e=>{let{children:t,...r}=e;return n.createElement(C.Provider,{value:r},t)};var T=(e,t,r,n=!0)=>{let i={defaultValues:t._defaultValues};for(let o in e)Object.defineProperty(i,o,{get:()=>(t._proxyFormState[o]!==E.all&&(t._proxyFormState[o]=!n||E.all),r&&(r[o]=!0),e[o])});return i};let j="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;var A=e=>"string"==typeof e,R=(e,t,r,n,i)=>A(e)?(n&&t.watch.add(e),g(r,e,i)):Array.isArray(e)?e.map(e=>(n&&t.watch.add(e),g(r,e))):(n&&(t.watchAll=!0),r);let M=e=>e.render(function(e){let t=k(),{name:r,disabled:i,control:o=t.control,shouldUnregister:a}=e,s=c(o._names.array,r),l=function(e){let t=k(),{control:r=t.control,name:i,defaultValue:o,disabled:a,exact:s}=e||{},l=n.useRef(o),[u,d]=n.useState(r._getWatch(i,l.current));return j(()=>r._subscribe({name:i,formState:{values:!0},exact:s,callback:e=>!a&&d(R(i,r._names,e.values||r._formValues,!1,l.current))}),[i,r,a,s]),n.useEffect(()=>r._removeUnmounted()),u}({control:o,name:r,defaultValue:g(o._formValues,r,g(o._defaultValues,r,e.defaultValue)),exact:!0}),d=function(e){let t=k(),{control:r=t.control,disabled:i,name:o,exact:a}=e||{},[s,l]=n.useState(r._formState),u=n.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return j(()=>r._subscribe({name:o,formState:u.current,exact:a,callback:e=>{i||l({...r._formState,...e})}}),[o,i,a]),n.useEffect(()=>{u.current.isValid&&r._setValid(!0)},[r]),n.useMemo(()=>T(s,r,u.current,!1),[s,r])}({control:o,name:r,exact:!0}),f=n.useRef(e),p=n.useRef(o.register(r,{...e.rules,value:l,...y(e.disabled)?{disabled:e.disabled}:{}})),m=n.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!g(d.errors,r)},isDirty:{enumerable:!0,get:()=>!!g(d.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!g(d.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!g(d.validatingFields,r)},error:{enumerable:!0,get:()=>g(d.errors,r)}}),[d,r]),b=n.useCallback(e=>p.current.onChange({target:{value:u(e),name:r},type:_.CHANGE}),[r]),w=n.useCallback(()=>p.current.onBlur({target:{value:g(o._formValues,r),name:r},type:_.BLUR}),[r,o._formValues]),E=n.useCallback(e=>{let t=g(o._fields,r);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})},[o._fields,r]),S=n.useMemo(()=>({name:r,value:l,...y(i)||d.disabled?{disabled:d.disabled||i}:{},onChange:b,onBlur:w,ref:E}),[r,i,d.disabled,b,w,E,l]);return n.useEffect(()=>{let e=o._options.shouldUnregister||a;o.register(r,{...f.current.rules,...y(f.current.disabled)?{disabled:f.current.disabled}:{}});let t=(e,t)=>{let r=g(o._fields,e);r&&r._f&&(r._f.mount=t)};if(t(r,!0),e){let e=h(g(o._options.defaultValues,r));x(o._defaultValues,r,e),v(g(o._formValues,r))&&x(o._formValues,r,e)}return s||o.register(r),()=>{(s?e&&!o._state.action:e)?o.unregister(r):t(r,!1)}},[r,o,s,a]),n.useEffect(()=>{o._setDisabledField({disabled:i,name:r})},[i,r,o]),n.useMemo(()=>({field:S,formState:d,fieldState:m}),[S,d,m])}(e));var O=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},D=e=>Array.isArray(e)?e:[e],N=()=>{let e=[];return{get observers(){return e},next:t=>{for(let r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},I=e=>a(e)||!s(e);function L(e,t){if(I(e)||I(t))return e===t;if(o(e)&&o(t))return e.getTime()===t.getTime();let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i of r){let r=e[i];if(!n.includes(i))return!1;if("ref"!==i){let e=t[i];if(o(r)&&o(e)||l(r)&&l(e)||Array.isArray(r)&&Array.isArray(e)?!L(r,e):r!==e)return!1}}return!0}var F=e=>l(e)&&!Object.keys(e).length,V=e=>
1"file"===e.type,B=e=>"function"==typeof e,z=e=>{if(!p)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},W=e=>"select-multiple"===e.type,U=e=>"radio"===e.type,G=e=>U(e)||i(e),Z=e=>z(e)&&e.isConnected;function $(e,t){let r=Array.isArray(t)?t:b(t)?[t]:w(t),n=1===r.length?e:function(e,t){let r=t.slice(0,-1).length,n=0;for(;n<r;)e=v(e)?n++:e[t[n++]];return e}(e,r),i=r.length-1,o=r[i];return n&&delete n[o],0!==i&&(l(n)&&F(n)||Array.isArray(n)&&function(e){for(let t in e)if(e.hasOwnProperty(t)&&!v(e[t]))return!1;return!0}(n))&&$(e,r.slice(0,-1)),e}var H=e=>{for(let t in e)if(B(e[t]))return!0;return!1};function K(e,t={}){let r=Array.isArray(e);if(l(e)||r)for(let r in e)Array.isArray(e[r])||l(e[r])&&!H(e[r])?(t[r]=Array.isArray(e[r])?[]:{},K(e[r],t[r])):a(e[r])||(t[r]=!0);return t}var q=(e,t)=>(function e(t,r,n){let i=Array.isArray(t);if(l(t)||i)for(let i in t)Array.isArray(t[i])||l(t[i])&&!H(t[i])?v(r)||I(n[i])?n[i]=Array.isArray(t[i])?K(t[i],[]):{...K(t[i])}:e(t[i],a(r)?{}:r[i],n[i]):n[i]=!L(t[i],r[i]);return n})(e,t,K(t));let Y={value:!1,isValid:!1},X={value:!0,isValid:!0};var J=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!v(e[0].attributes.value)?v(e[0].value)||""===e[0].value?X:{value:e[0].value,isValid:!0}:X:Y}return Y},Q=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>v(e)?e:t?""===e?NaN:e?+e:e:r&&A(e)?new Date(e):n?n(e):e;let ee={isValid:!1,value:null};var et=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,ee):ee;function er(e){let t=e.ref;return V(t)?t.files:U(t)?et(e.refs).value:W(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?J(e.refs).value:Q(v(t.value)?e.ref.value:t.value,e)}var en=(e,t,r,n)=>{let i={};for(let r of e){let e=g(t,r);e&&x(i,r,e._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},ei=e=>e instanceof RegExp,eo=e=>v(e)?e:ei(e)?e.source:l(e)?ei(e.value)?e.value.source:e.value:e,ea=e=>({isOnSubmit:!e||e===E.onSubmit,isOnBlur:e===E.onBlur,isOnChange:e===E.onChange,isOnAll:e===E.all,isOnTouch:e===E.onTouched});let es="AsyncFunction";var el=e=>!!e&&!!e.validate&&!!(B(e.validate)&&e.validate.constructor.name===es||l(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===es)),eu=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),ed=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));let ec=(e,t,r,n)=>{for(let i of r||Object.keys(e)){let r=g(e,i);if(r){let{_f:e,...o}=r;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!n)return!0;else if(e.ref&&t(e.ref,e.name)&&!n)return!0;else if(ec(o,t))break}else if(l(o)&&ec(o,t))break}}};function ef(e,t,r){let n=g(e,r);if(n||b(r))return{error:n,name:r};let i=r.split(".");for(;i.length;){let n=i.join("."),o=g(t,n),a=g(e,n);if(o&&!Array.isArray(o)&&r!==n)break;if(a&&a.type)return{name:n,error:a};i.pop()}return{name:r}}var ep=(e,t,r,n)=>{r(e);let{name:i,...o}=e;return F(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(e=>t[e]===(!n||E.all))},eh=(e,t,r)=>!e||!t||e===t||D(e).some(e=>e&&(r?e===t:e.startsWith(t)||t.startsWith(e))),em=(e,t,r,n,i)=>!i.isOnAll&&(!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:(r?!n.isOnChange:!i.isOnChange)||e),ev=(e,t)=>
1!m(g(e,t)).length&&$(e,t),eg=(e,t,r)=>{let n=D(g(e,r));return x(n,"root",t[r]),x(e,r,n),e},ey=e=>A(e);function eb(e,t,r="validate"){if(ey(e)||Array.isArray(e)&&e.every(ey)||y(e)&&!e)return{type:r,message:ey(e)?e:"",ref:t}}var ew=e=>l(e)&&!ei(e)?e:{value:e,message:""},ex=async(e,t,r,n,o,s)=>{let{ref:u,refs:d,required:c,maxLength:f,minLength:p,min:h,max:m,pattern:b,validate:w,name:x,valueAsNumber:_,mount:E}=e._f,C=g(r,x);if(!E||t.has(x))return{};let k=d?d[0]:u,P=e=>{o&&k.reportValidity&&(k.setCustomValidity(y(e)?"":e||""),k.reportValidity())},T={},j=U(u),R=i(u),M=(_||V(u))&&v(u.value)&&v(C)||z(u)&&""===u.value||""===C||Array.isArray(C)&&!C.length,D=O.bind(null,x,n,T),N=(e,t,r,n=S.maxLength,i=S.minLength)=>{let o=e?t:r;T[x]={type:e?n:i,message:o,ref:u,...D(e?n:i,o)}};if(s?!Array.isArray(C)||!C.length:c&&(!(j||R)&&(M||a(C))||y(C)&&!C||R&&!J(d).isValid||j&&!et(d).isValid)){let{value:e,message:t}=ey(c)?{value:!!c,message:c}:ew(c);if(e&&(T[x]={type:S.required,message:t,ref:k,...D(S.required,t)},!n))return P(t),T}if(!M&&(!a(h)||!a(m))){let e,t,r=ew(m),i=ew(h);if(a(C)||isNaN(C)){let n=u.valueAsDate||new Date(C),o=e=>new Date(new Date().toDateString()+" "+e),a="time"==u.type,s="week"==u.type;A(r.value)&&C&&(e=a?o(C)>o(r.value):s?C>r.value:n>new Date(r.value)),A(i.value)&&C&&(t=a?o(C)<o(i.value):s?C<i.value:n<new Date(i.value))}else{let n=u.valueAsNumber||(C?+C:C);a(r.value)||(e=n>r.value),a(i.value)||(t=n<i.value)}if((e||t)&&(N(!!e,r.message,i.message,S.max,S.min),!n))return P(T[x].message),T}if((f||p)&&!M&&(A(C)||s&&Array.isArray(C))){let e=ew(f),t=ew(p),r=!a(e.value)&&C.length>+e.value,i=!a(t.value)&&C.length<+t.value;if((r||i)&&(N(r,e.message,t.message),!n))return P(T[x].message),T}if(b&&!M&&A(C)){let{value:e,message:t}=ew(b);if(ei(e)&&!C.match(e)&&(T[x]={type:S.pattern,message:t,ref:u,...D(S.pattern,t)},!n))return P(t),T}if(w){if(B(w)){let e=eb(await w(C,r),k);if(e&&(T[x]={...e,...D(S.validate,e.message)},!n))return P(e.message),T}else if(l(w)){let e={};for(let t in w){if(!F(e)&&!n)break;let i=eb(await w[t](C,r),k,t);i&&(e={...i,...D(t,i.message)},P(i.message),n&&(T[x]=e))}if(!F(e)&&(T[x]={ref:k,...e},!n))return T}}return P(!0),T};let e_={mode:E.onSubmit,reValidateMode:E.onChange,shouldFocusError:!0};function eE(e={}){let t=n.useRef(void 0),r=n.useRef(void 0),[s,d]=n.useState({isDirty:!1,isValidating:!1,isLoading:B(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:B(e.defaultValues)?void 0:e.defaultValues});!t.current&&(t.current={...e.formControl?e.formControl:function(e={}){let t,r={...e_,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:B(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},s={},d=(l(r.defaultValues)||l(r.values))&&h(r.defaultValues||r.values)||{},f=r.shouldUnregister?{}:h(d),b={action:!1,mount:!1,watch:!1},w={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},S=0,C={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},k={...C},P={array:N(),state:N()},T=r.criteriaMode===E.all,j=e=>t=>{clearTimeout(S),S=setTimeout(e,t)},M=async e=>{if(!r.disabled&&(C.isValid||k.isValid||e)){let e=r.resolver?F((await Y()).errors):await J(s,!0);e!==n.isValid&&P.state.next({isValid:e})}},O=(e,t)=>{!r.disabled&&(C.isValidating||C.validatingFields||k.isValidating||k.validatingFields)&&((e||Array.from(w.mount)).forEach(e=>{e&&(t?x(n.validatingFields,e,t):$(n.validatingFields,e))}),P.state.next({validatingFields:n.validatingFields,isValidating:!F(n.validatingFields)}))},I=(e,t)=>{x(n.errors,e,t),P.state.next({errors:n.errors})},U=(e,t,r,n)=>{let i=g(s,e);if(i){let o=g(f,e,v(r)?g(d,e):r);v(o)||n&&n.defaultChecked||t?x(f,e,t?o:er(i._f)):ei(e,o),b.mount&&M()}},H=(e,t,i,o,a)=>{let s=!1,l=!1,u={name:e};if(!r.disabled){if(!i||o){(C.isDirty||k.isDirty)&&(l=n.isDirty,n.isDirty=u.isDirty=ee(),s=l!==u.isDirty);let r=L(g(d,e),t);l=!!g(n.dirtyFields,e),r?$(n.dirtyFields,e):x(n.dirtyFields,e,!0),u.dirtyFields=n.dirtyFields,s=s||(C.dirtyFields||k.dirtyFields)&&!r!==l}if(i){let t=g(n.touchedFields,e);t||(x(n.touchedFields,e,i),u.touchedFields=n.touchedFields,s=s||(C.touchedFields||k.touchedFields)&&t!==i)}s&&a&&P.state.next(u)}return s?u:{}},K=(e,i,o,a)=>{let s=g(n.errors,e),l=(C.isValid||k.isValid)&&y(i)&&n.isValid!==i;if(r.delayError&&o?(t=j(()=>I(e,o)))(r.delayError):(clearTimeout(S),t=null,o?x(n.errors,e,o):$(n.errors,e)),(o?!L(s,o):s)||
1!F(a)||l){let t={...a,...l&&y(i)?{isValid:i}:{},errors:n.errors,name:e};n={...n,...t},P.state.next(t)}},Y=async e=>{O(e,!0);let t=await r.resolver(f,r.context,en(e||w.mount,s,r.criteriaMode,r.shouldUseNativeValidation));return O(e),t},X=async e=>{let{errors:t}=await Y(e);if(e)for(let r of e){let e=g(t,r);e?x(n.errors,r,e):$(n.errors,r)}else n.errors=t;return t},J=async(e,t,i={valid:!0})=>{for(let o in e){let a=e[o];if(a){let{_f:e,...s}=a;if(e){let s=w.array.has(e.name),l=a._f&&el(a._f);l&&C.validatingFields&&O([o],!0);let u=await ex(a,w.disabled,f,T,r.shouldUseNativeValidation&&!t,s);if(l&&C.validatingFields&&O([o]),u[e.name]&&(i.valid=!1,t))break;t||(g(u,e.name)?s?eg(n.errors,u,e.name):x(n.errors,e.name,u[e.name]):$(n.errors,e.name))}F(s)||await J(s,t,i)}}return i.valid},ee=(e,t)=>!r.disabled&&(e&&t&&x(f,e,t),!L(eS(),d)),et=(e,t,r)=>R(e,w,{...b.mount?f:v(t)?d:A(e)?{[e]:t}:t},r,t),ei=(e,t,r={})=>{let n=g(s,e),o=t;if(n){let r=n._f;r&&(r.disabled||x(f,e,Q(t,r)),o=z(r.ref)&&a(t)?"":t,W(r.ref)?[...r.ref.options].forEach(e=>e.selected=o.includes(e.value)):r.refs?i(r.ref)?r.refs.forEach(e=>{e.defaultChecked&&e.disabled||(Array.isArray(o)?e.checked=!!o.find(t=>t===e.value):e.checked=o===e.value||!!o)}):r.refs.forEach(e=>e.checked=e.value===o):V(r.ref)?r.ref.value="":(r.ref.value=o,r.ref.type||P.state.next({name:e,values:h(f)})))}(r.shouldDirty||r.shouldTouch)&&H(e,o,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&eE(e)},es=(e,t,r)=>{for(let n in t){if(!t.hasOwnProperty(n))return;let i=t[n],a=`${e}.${n}`,u=g(s,a);(w.array.has(e)||l(i)||u&&!u._f)&&!o(i)?es(a,i,r):ei(a,i,r)}},ey=(e,t,r={})=>{let i=g(s,e),o=w.array.has(e),l=h(t);x(f,e,l),o?(P.array.next({name:e,values:h(f)}),(C.isDirty||C.dirtyFields||k.isDirty||k.dirtyFields)&&r.shouldDirty&&P.state.next({name:e,dirtyFields:q(d,f),isDirty:ee(e,l)})):!i||i._f||a(l)?ei(e,l,r):es(e,l,r),ed(e,w)&&P.state.next({...n}),P.state.next({name:b.mount?e:void 0,values:h(f)})},eb=async e=>{b.mount=!0;let i=e.target,a=i.name,l=!0,d=g(s,a),c=e=>{l=Number.isNaN(e)||o(e)&&isNaN(e.getTime())||L(e,g(f,a,e))},p=ea(r.mode),m=ea(r.reValidateMode);if(d){let o,v,y=i.type?er(d._f):u(e),b=e.type===_.BLUR||e.type===_.FOCUS_OUT,E=!eu(d._f)&&!r.resolver&&!g(n.errors,a)&&!d._f.deps||em(b,g(n.touchedFields,a),n.isSubmitted,m,p),S=ed(a,w,b);x(f,a,y),b?(d._f.onBlur&&d._f.onBlur(e),t&&t(0)):d._f.onChange&&d._f.onChange(e);let j=H(a,y,b),A=!F(j)||S;if(b||P.state.next({name:a,type:e.type,values:h(f)}),E)return(C.isValid||k.isValid)&&("onBlur"===r.mode?b&&M():b||M()),A&&P.state.next({name:a,...S?{}:j});if(!b&&S&&P.state.next({...n}),r.resolver){let{errors:e}=await Y([a]);if(c(y),l){let t=ef(n.errors,s,a),r=ef(e,s,t.name||a);o=r.error,a=r.name,v=F(e)}}else O([a],!0),o=(await ex(d,w.disabled,f,T,r.shouldUseNativeValidation))[a],O([a]),c(y),l&&(o?v=!1:(C.isValid||k.isValid)&&(v=await J(s,!0)));l&&(d._f.deps&&eE(d._f.deps),K(a,v,o,j))}},ew=(e,t)=>{if(g(n.errors,t)&&e.focus)return e.focus(),1},eE=async(e,t={})=>{let i,o,a=D(e);if(r.resolver){let t=await X(v(e)?e:a);i=F(t),o=e?!a.some(e=>g(t,e)):i}else e?((o=(await Promise.all(a.map(async e=>{let t=g(s,e);return await J(t&&t._f?{[e]:t}:t)}))).every(Boolean))||n.isValid)&&M():o=i=await J(s);return P.state.next({...!A(e)||(C.isValid||k.isValid)&&i!==n.isValid?{}:{name:e},...r.resolver||!e?{isValid:i}:{},errors:n.errors}),t.shouldFocus&&!o&&ec(s,ew,e?a:w.mount),o},eS=e=>{let t={...b.mount?f:d};return v(e)?t:A(e)?g(t,e):e.map(e=>g(t,e))},eC=(e,t)=>({invalid:!!g((t||n).errors,e),isDirty:!!g((t||n).dirtyFields,e),error:g((t||n).errors,e),isValidating:!!g(n.validatingFields,e),isTouched:!!g((t||n).touchedFields,e)}),ek=(e,t,r)=>{let i=(g(s,e,{_f:{}})._f||{}).ref,{ref:o,message:a,type:l,...u}=g(n.errors,e)||{};x(n.errors,e,{...u,...t,ref:i}),P.state.next({name:e,errors:n.errors,isValid:!1}),r&&r.shouldFocus&&i&&i.focus&&i.focus()},eP=e=>P.state.subscribe({next:t=>{eh(e.name,t.name,e.exact)&&ep(t,e.formState||C,eN,e.reRenderRoot)&&e.callback({values:{...f},...n,...t})}}).unsubscribe,eT=(e,t={})=>{for(let i of e?D(e):w.mount)w.mount.delete(i),w.array.delete(i),t.keepValue||($(s,i),$(f,i)),t.keepError||$(n.errors,i),t.keepDirty||$(n.dirtyFields,i),t.keepTouched||$(n.touchedFields,i),t.keepIsValidating||$(n.validatingFields,i),r.shouldUnregister||t.keepDefaultValue||$(d,i);P.state.next({values:h(f)}),P.state.next({...n,...t.keepDirty?{isDirty:ee()}:{}}),t.keepIsValid||M()},ej=({disabled:e,name:t})=>{(y(e)&&b.mount||e||w.disabled.has(t))&&(e?w.disabled.add(t):w.disabled.delete(t))},eA=(e,t={})=>{let n=g(s,e),i=y(t.disabled)||y(r.disabled);return x(s,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),w.mount.add(e),n?ej({disabled:y(t.disabled)?t.disabled:r.disabled,name:e}):U(e,!0,t.value),{...i?{disabled:t.disabled||r.disabled}:{},...r.progressive?{required:!!t.required,min:eo(t.min),max:eo(t.max),minLength:eo(t.minLength),maxLength:eo(t.maxLength),pattern:eo(t.pattern)}:{}
1,name:e,onChange:eb,onBlur:eb,ref:i=>{if(i){eA(e,t),n=g(s,e);let r=v(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,o=G(r),a=n._f.refs||[];(o?a.find(e=>e===r):r===n._f.ref)||(x(s,e,{_f:{...n._f,...o?{refs:[...a.filter(Z),r,...Array.isArray(g(d,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),U(e,!1,void 0,r))}else(n=g(s,e,{}))._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&!(c(w.array,e)&&b.action)&&w.unMount.add(e)}}},eR=()=>r.shouldFocusError&&ec(s,ew,w.mount),eM=(e,t)=>async i=>{let o;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let a=h(f);if(P.state.next({isSubmitting:!0}),r.resolver){let{errors:e,values:t}=await Y();n.errors=e,a=t}else await J(s);if(w.disabled.size)for(let e of w.disabled)x(a,e,void 0);if($(n.errors,"root"),F(n.errors)){P.state.next({errors:{}});try{await e(a,i)}catch(e){o=e}}else t&&await t({...n.errors},i),eR(),setTimeout(eR);if(P.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:F(n.errors)&&!o,submitCount:n.submitCount+1,errors:n.errors}),o)throw o},eO=(e,t={})=>{let i=e?h(e):d,o=h(i),a=F(e),l=a?d:o;if(t.keepDefaultValues||(d=i),!t.keepValues){if(t.keepDirtyValues)for(let e of Array.from(new Set([...w.mount,...Object.keys(q(d,f))])))g(n.dirtyFields,e)?x(l,e,g(f,e)):ey(e,g(l,e));else{if(p&&v(e))for(let e of w.mount){let t=g(s,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(z(e)){let t=e.closest("form");if(t){t.reset();break}}}}for(let e of w.mount)ey(e,g(l,e))}f=h(l),P.array.next({values:{...l}}),P.state.next({values:{...l}})}w={mount:t.keepDirtyValues?w.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},b.mount=!C.isValid||!!t.keepIsValid||!!t.keepDirtyValues,b.watch=!!r.shouldUnregister,P.state.next({submitCount:t.keepSubmitCount?n.submitCount:0,isDirty:!a&&(t.keepDirty?n.isDirty:!!(t.keepDefaultValues&&!L(e,d))),isSubmitted:!!t.keepIsSubmitted&&n.isSubmitted,dirtyFields:a?{}:t.keepDirtyValues?t.keepDefaultValues&&f?q(d,f):n.dirtyFields:t.keepDefaultValues&&e?q(d,e):t.keepDirty?n.dirtyFields:{},touchedFields:t.keepTouched?n.touchedFields:{},errors:t.keepErrors?n.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1})},eD=(e,t)=>eO(B(e)?e(f):e,t),eN=e=>{n={...n,...e}},eI={control:{register:eA,unregister:eT,getFieldState:eC,handleSubmit:eM,setError:ek,_subscribe:eP,_runSchema:Y,_getWatch:et,_getDirty:ee,_setValid:M,_setFieldArray:(e,t=[],i,o,a=!0,l=!0)=>{if(o&&i&&!r.disabled){if(b.action=!0,l&&Array.isArray(g(s,e))){let t=i(g(s,e),o.argA,o.argB);a&&x(s,e,t)}if(l&&Array.isArray(g(n.errors,e))){let t=i(g(n.errors,e),o.argA,o.argB);a&&x(n.errors,e,t),ev(n.errors,e)}if((C.touchedFields||k.touchedFields)&&l&&Array.isArray(g(n.touchedFields,e))){let t=i(g(n.touchedFields,e),o.argA,o.argB);a&&x(n.touchedFields,e,t)}(C.dirtyFields||k.dirtyFields)&&(n.dirtyFields=q(d,f)),P.state.next({name:e,isDirty:ee(e,t),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else x(f,e,t)},_setDisabledField:ej,_setErrors:e=>{n.errors=e,P.state.next({errors:n.errors,isValid:!1})},_getFieldArray:e=>m(g(b.mount?f:d,e,r.shouldUnregister?g(d,e,[]):[])),_reset:eO,_resetDefaultValues:()=>B(r.defaultValues)&&r.defaultValues().then(e=>{eD(e,r.resetOptions),P.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(let e of w.unMount){let t=g(s,e);t&&(t._f.refs?t._f.refs.every(e=>!Z(e)):!Z(t._f.ref))&&eT(e)}w.unMount=new Set},_disableForm:e=>{y(e)&&(P.state.next({disabled:e}),ec(s,(t,r)=>{let n=g(s,r);n&&(t.disabled=n._f.disabled||e,Array.isArray(n._f.refs)&&n._f.refs.forEach(t=>{t.disabled=n._f.disabled||e}))},0,!1))},_subjects:P,_proxyFormState:C,get _fields(){return s},get _formValues(){return f},get _state(){return b},set _state(value){b=value},get _defaultValues(){return d},get _names(){return w},set _names(value){w=value},get _formState(){return n},get _options(){return r},set _options(value){r={...r,...value}}},subscribe:e=>(b.mount=!0,k={...k,...e.formState},eP({...e,formState:k})),trigger:eE,register:eA,handleSubmit:eM,watch:(e,t)=>B(e)?P.state.subscribe({next:r=>e(et(void 0,t),r)}):et(e,t,!0),setValue:ey,getValues:eS,reset:eD,resetField:(e,t={})=>{g(s,e)&&(v(t.defaultValue)?ey(e,h(g(d,e))):(ey(e,t.defaultValue),x(d,e,h(t.defaultValue))),t.keepTouched||$(n.touchedFields,e),t.keepDirty||($(n.dirtyFields,e),n.isDirty=t.defaultValue?ee(e,h(g(d,e))):ee()),!t.keepError&&($(n.errors,e),C.isValid&&M()),P.state.next({...n}))},clearErrors:e=>
1{e&&D(e).forEach(e=>$(n.errors,e)),P.state.next({errors:e?n.errors:{}})},unregister:eT,setError:ek,setFocus:(e,t={})=>{let r=g(s,e),n=r&&r._f;if(n){let e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&B(e.select)&&e.select())}},getFieldState:eC};return{...eI,formControl:eI}}(e),formState:s},e.formControl&&e.defaultValues&&!B(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions));let f=t.current.control;return f._options=e,j(()=>{let e=f._subscribe({formState:f._proxyFormState,callback:()=>d({...f._formState}),reRenderRoot:!0});return d(e=>({...e,isReady:!0})),f._formState.isReady=!0,e},[f]),n.useEffect(()=>f._disableForm(e.disabled),[f,e.disabled]),n.useEffect(()=>{e.mode&&(f._options.mode=e.mode),e.reValidateMode&&(f._options.reValidateMode=e.reValidateMode),e.errors&&!F(e.errors)&&f._setErrors(e.errors)},[f,e.errors,e.mode,e.reValidateMode]),n.useEffect(()=>{e.shouldUnregister&&f._subjects.state.next({values:f._getWatch()})},[f,e.shouldUnregister]),n.useEffect(()=>{if(f._proxyFormState.isDirty){let e=f._getDirty();e!==s.isDirty&&f._subjects.state.next({isDirty:e})}},[f,s.isDirty]),n.useEffect(()=>{e.values&&!L(e.values,r.current)?(f._reset(e.values,f._options.resetOptions),r.current=e.values,d(e=>({...e}))):f._resetDefaultValues()},[f,e.values]),n.useEffect(()=>{f._state.mount||(f._setValid(),f._state.mount=!0),f._state.watch&&(f._state.watch=!1,f._subjects.state.next({...f._formState})),f._removeUnmounted()}),t.current.formState=T(s,f),t.current}},29694:(e,t,r)=>{r.d(t,{W:()=>l});var n=r(51019),i=r(25434);let o={borderWidth:i.px,borderTopWidth:i.px,borderRightWidth:i.px,borderBottomWidth:i.px,borderLeftWidth:i.px,borderRadius:i.px,radius:i.px,borderTopLeftRadius:i.px,borderTopRightRadius:i.px,borderBottomRightRadius:i.px,borderBottomLeftRadius:i.px,width:i.px,maxWidth:i.px,height:i.px,maxHeight:i.px,top:i.px,right:i.px,bottom:i.px,left:i.px,padding:i.px,paddingTop:i.px,paddingRight:i.px,paddingBottom:i.px,paddingLeft:i.px,margin:i.px,marginTop:i.px,marginRight:i.px,marginBottom:i.px,marginLeft:i.px,backgroundPositionX:i.px,backgroundPositionY:i.px},a={rotate:i.uj,rotateX:i.uj,rotateY:i.uj,rotateZ:i.uj,scale:n.hs,scaleX:n.hs,scaleY:n.hs,scaleZ:n.hs,skew:i.uj,skewX:i.uj,skewY:i.uj,distance:i.px,translateX:i.px,translateY:i.px,translateZ:i.px,x:i.px,y:i.px,z:i.px,perspective:i.px,transformPerspective:i.px,opacity:n.X4,originX:i.gQ,originY:i.gQ,originZ:i.px},s={...n.ai,transform:Math.round},l={...o,...a,zIndex:s,size:i.px,fillOpacity:n.X4,strokeOpacity:n.X4,numOctaves:s}},30533:(e,t,r)=>{r.d(t,{_:()=>h});var n=r(5402),i=r(23863),o=r(32576),a=r(15525),s=r(93181),l=r(67745),u=r(17226),d=r(62343);function c(e,t,{delay:r=0,transitionOverride:n,type:f}={}){var p;let{transition:h=e.getDefaultTransition(),transitionEnd:m,...v}=t;n&&(h=n);let g=[],y=f&&e.animationState&&e.animationState.getState()[f];for(let t in v){let n=e.getValue(t,null!==(p=e.latestValues[t])&&void 0!==p?p:null),a=v[t];if(void 0===a||y&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(y,t))continue;let c={delay:r,...(0,s.r)(h||{},t)},f=!1;if(window.MotionHandoffAnimation){let r=(0,l.P)(e);if(r){let e=window.MotionHandoffAnimation(r,t,d.Gt);null!==e&&(c.startTime=e,f=!0)}}(0,u.g)(e,t),n.start((0,o.f)(t,n,a,e.shouldReduceMotion&&i.f.has(t)?{type:!1}:c,e,f));let m=n.animation;m&&g.push(m)}return m&&Promise.all(g).then(()=>{d.Gt.update(()=>{m&&(0,a.U)(e,m)})}),g}function f(e,t,r={}){var i;let o=(0,n.K)(e,t,"exit"===r.type?null===(i=e.presenceContext)||void 0===i?void 0:i.custom:void 0),{transition:a=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(a=r.transitionOverride);let s=o?()=>Promise.all(c(e,o,r)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:i=0,staggerChildren:o,staggerDirection:s}=a;return function(e,t,r=0,n=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*n,l=1===i?(e=0)=>e*n:(e=0)=>s-e*n;return Array.from(e.variantChildren).sort(p).forEach((e,n)=>{e.notify("AnimationStart",t),a.push(f(e,t,{...o,delay:r+l(n)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,i+n,o,s,r)}:()=>Promise.resolve(),{when:u}=a;if(!u)return Promise.all([s(),l(r.delay)]);{let[e,t]="beforeChildren"===u?[s,l]:[l,s];return e().then(()=>t())}}function p(e,t){return e.sortNodePosition(t)}function h(e,t,r={}){let i;if(e.notify("AnimationStart",t),Array.isArray(t))i=Promise.all(t.map(t=>f(e,t,r)));else if("string"==typeof t)i=f(e,t,r);else{let o="function"==typeof t?(0,n.K)(e,t,r.custom):t;i=Promise.all(c(e,o,r))}return i.then(()=>
1{e.notify("AnimationComplete",t)})}},31132:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sendGTMEvent=void 0,t.GoogleTagManager=function(e){let{gtmId:t,gtmScriptUrl:r="https://www.googletagmanager.com/gtm.js",dataLayerName:s="dataLayer",auth:l,preview:u,dataLayer:d,nonce:c}=e;a=s;let f="dataLayer"!==s?"&l=".concat(s):"";return(0,i.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:"\n      (function(w,l){\n        w[l]=w[l]||[];\n        w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});\n        ".concat(d?"w[l].push(".concat(JSON.stringify(d),")"):"","\n      })(window,'").concat(s,"');")},nonce:c}),(0,n.jsx)(o.default,{id:"_next-gtm","data-ntpc":"GTM",src:"".concat(r,"?id=").concat(t).concat(f).concat(l?"&gtm_auth=".concat(l):"").concat(u?"&gtm_preview=".concat(u,"&gtm_cookies_win=x"):""),nonce:c})]})};let n=r(44189),i=r(47049),o=function(e){return e&&e.__esModule?e:{default:e}}(r(42466)),a="dataLayer";t.sendGTMEvent=(e,t)=>{let r=t||a;window[r]=window[r]||[],window[r].push(e)}},31521:(e,t,r)=>{r.d(t,{W:()=>a});var n=r(47049),i=r(95124);let o={some:0,all:1};function a(e,{root:t,margin:r,amount:s,once:l=!1}={}){let[u,d]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(!e.current||l&&u)return;let n={root:t&&t.current||void 0,margin:r,amount:s};return function(e,t,{root:r,margin:n,amount:a="some"}={}){let s=(0,i.KJ)(e),l=new WeakMap,u=new IntersectionObserver(e=>{e.forEach(e=>{let r=l.get(e.target);if(!!r!==e.isIntersecting)if(e.isIntersecting){let r=t(e);"function"==typeof r?l.set(e.target,r):u.unobserve(e.target)}else r&&(r(e),l.delete(e.target))})},{root:r,rootMargin:n,threshold:"number"==typeof a?a:o[a]});return s.forEach(e=>u.observe(e)),()=>u.disconnect()}(e.current,()=>(d(!0),l?void 0:()=>d(!1)),n)},[t,e,r,l,s]),u}},31597:(e,t,r)=>{r.d(t,{X:()=>o});var n=r(47049),i=r(95193);function o(e){let[t,r]=n.useState(void 0);return(0,i.N)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,i=t.blockSize}else n=e.offsetWidth,i=e.offsetHeight;r({width:n,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},31850:(e,t,r)=>{r.d(t,{L:()=>n});let n=(0,r(47049).createContext)({})},32576:(e,t,r)=>{r.d(t,{f:()=>ex});var n=r(23338),i=r(23863);let o={type:"spring",stiffness:500,damping:25,restSpeed:10},a=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),s={type:"keyframes",duration:.8},l={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},u=(e,{keyframes:t})=>t.length>2?s:i.f.has(e)?e.startsWith("scale")?a(t[1]):o:l;var d=r(93181),c=r(48611);let f={current:!1},p=e=>null!==e;function h(e,{repeat:t,repeatType:r="loop"},n){let i=e.filter(p),o=t&&"loop"!==r&&t%2==1?0:i.length-1;return o&&void 0!==n?n:i[o]}var m=r(62343),v=r(10202);let g=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function y(e,t,r,n){if(e===t&&r===n)return v.l;let i=t=>(function(e,t,r,n,i){let o,a,s=0;do(o=g(a=t+(r-t)/2,n,i)-e)>0?r=a:t=a;while(Math.abs(o)>1e-7&&++s<12);return a})(t,0,1,e,r);return e=>0===e||1===e?e:g(i(e),t,n)}var b=r(72230),w=r(71509);let x=y(.33,1.53,.69,.99),_=(0,w.G)(x),E=(0,b.V)(_),S=e=>(e*=2)<1?.5*_(e):.5*(2-Math.pow(2,-10*(e-1)));var C=r(89803),k=r(74421);function P(e){return"function"==typeof e}var T=r(13937),j=r(77700),A=r(69743),R=r(69870);let M=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(R.f.test(e)||"0"===e)&&!e.startsWith("url("));class O{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=T.k.now(),this.options={autoplay:e,delay:t,type:r,repeat:n,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(0,j.q)(),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=T.k.now(),this.hasAttemptedResolve=!0;
1let{name:r,type:n,velocity:i,delay:o,onComplete:a,onUpdate:s,isGenerator:l}=this.options;if(!l&&!function(e,t,r,n){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],a=M(i,t),s=M(o,t);return(0,A.$)(a===s,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!!a&&!!s&&(function(e){let t=e[0];if(1===e.length)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}(e)||("spring"===r||P(r))&&n)}(e,r,n,i))if(f.current||!o){null==s||s(h(e,this.options,t)),null==a||a(),this.resolveFinishedPromise();return}else this.options.duration=0;let u=this.initPlayback(e,t);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}var D=r(72233);let N=(e,t,r=10)=>{let n="",i=Math.max(Math.round(t/r),2);for(let t=0;t<i;t++)n+=e((0,D.q)(0,i-1,t))+", ";return`linear(${n.substring(0,n.length-2)})`};var I=r(4522);function L(e,t,r){let n=Math.max(t-5,0);return(0,I.f)(r-e(n),t-n)}var F=r(70767);let V={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 B(e,t){return e*Math.sqrt(1-t*t)}function z(e){let t=0,r=e.next(t);for(;!r.done&&t<2e4;)t+=50,r=e.next(t);return t>=2e4?1/0:t}let W=["duration","bounce"],U=["stiffness","damping","mass"];function G(e,t){return t.some(t=>void 0!==e[t])}function Z(e=V.visualDuration,t=V.bounce){let r,i="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:o,restDelta:a}=i,s=i.keyframes[0],l=i.keyframes[i.keyframes.length-1],u={done:!1,value:s},{stiffness:d,damping:c,mass:f,duration:p,velocity:h,isResolvedFromDuration:m}=function(e){let t={velocity:V.velocity,stiffness:V.stiffness,damping:V.damping,mass:V.mass,isResolvedFromDuration:!1,...e};if(!G(e,U)&&G(e,W))if(e.visualDuration){let r=2*Math.PI/(1.2*e.visualDuration),n=r*r,i=2*(0,F.q)(.05,1,1-e.bounce)*Math.sqrt(n);t={...t,mass:V.mass,stiffness:n,damping:i}}else{let r=function({duration:e=V.duration,bounce:t=V.bounce,velocity:r=V.velocity,mass:i=V.mass}){let o,a;(0,A.$)(e<=(0,n.f)(V.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=(0,F.q)(V.minDamping,V.maxDamping,s),e=(0,F.q)(V.minDuration,V.maxDuration,(0,n.X)(e)),s<1?(o=t=>{let n=t*s,i=n*e;return .001-(n-r)/B(t,s)*Math.exp(-i)},a=t=>{let n=t*s*e,i=Math.pow(s,2)*Math.pow(t,2)*e,a=Math.exp(-n),l=B(Math.pow(t,2),s);return(n*r+r-i)*a*(-o(t)+.001>0?-1:1)/l}):(o=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),a=t=>e*e*(r-t)*Math.exp(-t*e));let l=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(o,a,5/e);if(e=(0,n.f)(e),isNaN(l))return{stiffness:V.stiffness,damping:V.damping,duration:e};{let t=Math.pow(l,2)*i;return{stiffness:t,damping:2*s*Math.sqrt(i*t),duration:e}}}(e);(t={...t,...r,mass:V.mass}).isResolvedFromDuration=!0}return t}({...i,velocity:-(0,n.X)(i.velocity||0)}),v=h||0,g=c/(2*Math.sqrt(d*f)),y=l-s,b=(0,n.X)(Math.sqrt(d/f)),w=5>Math.abs(y);if(o||(o=w?V.restSpeed.granular:V.restSpeed.default),a||(a=w?V.restDelta.granular:V.restDelta.default),g<1){let e=B(b,g);r=t=>l-Math.exp(-g*b*t)*((v+g*b*y)/e*Math.sin(e*t)+y*Math.cos(e*t))}else if(1===g)r=e=>l-Math.exp(-b*e)*(y+(v+b*y)*e);else{let e=b*Math.sqrt(g*g-1);r=t=>{let r=Math.exp(-g*b*t),n=Math.min(e*t,300);return l-r*((v+g*b*y)*Math.sinh(n)+e*y*Math.cosh(n))/e}}let x={calculatedDuration:m&&p||null,next:e=>{let t=r(e);if(m)u.done=e>=p;else{let i=0;g<1&&(i=0===e?(0,n.f)(v):L(r,e,t));let s=Math.abs(l-t)<=a;u.done=Math.abs(i)<=o&&s}return u.value=u.done?l:t,u},toString:()=>{let e=Math.min(z(x),2e4),t=N(t=>
1x.next(e*t).value,e,30);return e+"ms "+t}};return x}function $({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:d}){let c,f,p=e[0],h={done:!1,value:p},m=e=>void 0!==s&&e<s||void 0!==l&&e>l,v=e=>void 0===s?l:void 0===l?s:Math.abs(s-e)<Math.abs(l-e)?s:l,g=r*t,y=p+g,b=void 0===a?y:a(y);b!==y&&(g=b-p);let w=e=>-g*Math.exp(-e/n),x=e=>b+w(e),_=e=>{let t=w(e),r=x(e);h.done=Math.abs(t)<=u,h.value=h.done?b:r},E=e=>{m(h.value)&&(c=e,f=Z({keyframes:[h.value,v(h.value)],velocity:L(x,e,h.value),damping:i,stiffness:o,restDelta:u,restSpeed:d}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return(f||void 0!==c||(t=!0,_(e),E(e)),void 0!==c&&e>=c)?f.next(e-c):(t||_(e),h)}}}let H=y(.42,0,1,1),K=y(0,0,.58,1),q=y(.42,0,.58,1),Y=e=>Array.isArray(e)&&"number"!=typeof e[0],X=e=>Array.isArray(e)&&"number"==typeof e[0],J={linear:v.l,easeIn:H,easeInOut:q,easeOut:K,circIn:C.po,circInOut:C.tn,circOut:C.yT,backIn:_,backInOut:E,backOut:x,anticipate:S},Q=e=>{if(X(e)){(0,A.V)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return y(t,r,n,i)}return"string"==typeof e?((0,A.V)(void 0!==J[e],`Invalid easing type '${e}'`),J[e]):e};var ee=r(63851),et=r(28474);function er({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){let i=Y(n)?n.map(Q):Q(n),o={done:!1,value:t[0]},a=(r&&r.length===t.length?r:(0,et.Z)(t)).map(t=>t*e),s=(0,ee.G)(a,t,{ease:Array.isArray(i)?i:t.map(()=>i||q).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=s(t),o.done=t>=e,o)}}var en=r(98904),ei=r(48742);let eo=e=>{let t=({timestamp:t})=>e(t);return{start:()=>m.Gt.update(t,!0),stop:()=>(0,m.WG)(t),now:()=>m.uv.isProcessing?m.uv.timestamp:T.k.now()}},ea={decay:$,inertia:$,tween:er,keyframes:er,spring:Z},es=e=>e/100;class el extends O{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()};let{name:t,motionValue:r,element:n,keyframes:i}=this.options,o=(null==n?void 0:n.KeyframeResolver)||j.h;this.resolver=new o(i,(e,t)=>this.onKeyframesResolved(e,t),t,r,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let t,r,{type:n="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a,velocity:s=0}=this.options,l=P(n)?n:ea[n]||er;l!==er&&"number"!=typeof e[0]&&(t=(0,en.F)(es,(0,ei.j)(e[0],e[1])),e=[0,100]);let u=l({...this.options,keyframes:e});"mirror"===a&&(r=l({...this.options,keyframes:[...e].reverse(),velocity:-s})),null===u.calculatedDuration&&(u.calculatedDuration=z(u));let{calculatedDuration:d}=u,c=d+o;return{generator:u,mirroredGenerator:r,mapPercentToKeyframes:t,calculatedDuration:d,resolvedDuration:c,totalDuration:c*(i+1)-o}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){let{resolved:r}=this;if(!r){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:n,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:s,calculatedDuration:l,totalDuration:u,resolvedDuration:d}=r;if(null===this.startTime)return i.next(0);let{delay:c,repeat:f,repeatType:p,repeatDelay:m,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let g=this.currentTime-c*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let b=this.currentTime,w=i;if(f){let e=Math.min(this.currentTime,u)/d,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,(t=Math.min(t,f+1))%2&&("reverse"===p?(r=1-r,m&&(r-=m/d)):"mirror"===p&&(w=o)
1),b=(0,F.q)(0,1,r)*d}let x=y?{done:!1,value:s[0]}:w.next(b);a&&(x.value=a(x.value));let{done:_}=x;y||null===l||(_=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let E=null===this.holdTime&&("finished"===this.state||"running"===this.state&&_);return E&&void 0!==n&&(x.value=h(s,this.options,n)),v&&v(x.value),E&&this.finish(),x}get duration(){let{resolved:e}=this;return e?(0,n.X)(e.calculatedDuration):0}get time(){return(0,n.X)(this.currentTime)}set time(e){e=(0,n.f)(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=(0,n.X)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=eo,onPlay:t,startTime:r}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=null!=r?r:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}let eu=new Set(["opacity","clipPath","filter","transform"]);var ed=r(46050);let ec={linearEasing:void 0},ef=function(e,t){let r=(0,ed.p)(e);return()=>{var e;return null!==(e=ec[t])&&void 0!==e?e:r()}}(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),ep=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,eh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ep([0,.65,.55,1]),circOut:ep([.55,0,1,.45]),backIn:ep([.31,.01,.66,-.59]),backOut:ep([.33,1.53,.69,.99])};function em(e,t){e.timeline=t,e.onfinish=null}let ev=(0,ed.p)(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),eg={anticipate:S,backInOut:E,circInOut:C.tn};class ey extends O{constructor(e){super(e);let{name:t,motionValue:r,element:n,keyframes:i}=this.options;this.resolver=new k.K(i,(e,t)=>this.onKeyframesResolved(e,t),t,r,n),this.resolver.scheduleResolve()}initPlayback(e,t){var r,n;let{duration:i=300,times:o,ease:a,type:s,motionValue:l,name:u,startTime:d}=this.options;if(!(null===(r=l.owner)||void 0===r?void 0:r.current))return!1;if("string"==typeof a&&ef()&&a in eg&&(a=eg[a]),P((n=this.options).type)||"spring"===n.type||!function e(t){return!!("function"==typeof t&&ef()||!t||"string"==typeof t&&(t in eh||ef())||X(t)||Array.isArray(t)&&t.every(e))}(n.ease)){let{onComplete:t,onUpdate:r,motionValue:n,element:l,...u}=this.options,d=function(e,t){let r=new el({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:e[0]},i=[],o=0;for(;!n.done&&o<2e4;)i.push((n=r.sample(o)).value),o+=10;return{times:void 0,keyframes:i,duration:o-10,ease:"linear"}}(e,u);1===(e=d.keyframes).length&&(e[1]=e[0]),i=d.duration,o=d.times,a=d.ease,s="keyframes"}let c=function(e,t,r,{delay:n=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s="easeInOut",times:l}={}){let u={[t]:r};l&&(u.offset=l);let d=function e(t,r){if(t)return"function"==typeof t&&ef()?N(t,r):X(t)?ep(t):Array.isArray(t)?t.map(t=>e(t,r)||eh.easeOut):eh[t]}(s,i);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:n,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(l.owner.current,u,e,{...this.options,duration:i,times:o,ease:a});return c.startTime=null!=d?d:this.calcStartTime(),this.pendingTimeline?(em(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:r}=this.options;l.set(h(e,this.options,t)),r&&r(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:o,type:s,ease:a,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return(0,n.X)(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return(0,n.X)(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.currentTime=(0,n.f)(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return v.l;let{animation:r}=t;em(r,e)}else this.pendingTimeline=e;return v.l}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:r,duration:i,type:o,ease:a,times:s}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){let{motionValue:e,onUpdate:t,onComplete:l,element:u,...d}=this.options,c=new el({...d,keyframes:r,duration:i,type:o,ease:a,times:s,isGenerator:!0}),f=(0,n.f)(this.time);e.setWithVelocity(c.sample(f-10).value,c.sample(f).value,10)}let{onStop:l}=this.options;l&&l(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:r,repeatDelay:n,repeatType:i,damping:o,type:a}=e;return ev()&&r&&eu.has(r)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUp
1date&&!n&&"mirror"!==i&&0!==o&&"inertia"!==a}}var eb=r(12367);class ew{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=t}attachTimeline(e,t){let r=this.animations.map(r=>(0,eb.J)()&&r.attachTimeline?r.attachTimeline(e):t(r));return()=>{r.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}let ex=(e,t,r,i={},o,a)=>s=>{let l=(0,d.r)(i,e)||{},p=l.delay||i.delay||0,{elapsed:v=0}=i;v-=(0,n.f)(p);let g={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-v,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{s(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:a?void 0:o};!function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,elapsed:u,...d}){return!!Object.keys(d).length}(l)&&(g={...g,...u(e,g)}),g.duration&&(g.duration=(0,n.f)(g.duration)),g.repeatDelay&&(g.repeatDelay=(0,n.f)(g.repeatDelay)),void 0!==g.from&&(g.keyframes[0]=g.from);let y=!1;if(!1!==g.type&&(0!==g.duration||g.repeatDelay)||(g.duration=0,0!==g.delay||(y=!0)),(f.current||c.W.skipAnimations)&&(y=!0,g.duration=0,g.delay=0),y&&!a&&void 0!==t.get()){let e=h(g.keyframes,l);if(void 0!==e)return m.Gt.update(()=>{g.onUpdate(e),g.onComplete()}),new ew([])}return!a&&ey.supports(g)?new ey(g):new el(g)}},32642:(e,t,r)=>{r.d(t,{S:()=>n});let n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},32730:(e,t,r)=>{r.d(t,{X:()=>o});var n=r(47049),i=r(16800);function o(e){let[t,r]=n.useState(void 0);return(0,i.N)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,i=t.blockSize}else n=e.offsetWidth,i=e.offsetHeight;r({width:n,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},33114:(e,t,r)=>{r.d(t,{H_:()=>tc,UC:()=>ts,YJ:()=>tl,q7:()=>td,VF:()=>th,JU:()=>tu,ZL:()=>ta,z6:()=>tf,hN:()=>tp,bL:()=>ti,wv:()=>tm,Pb:()=>tv,G5:()=>ty,ZP:()=>tg,l9:()=>to});var n=r(47049),i=r(47998),o=r(8670),a=r(12502),s=r(86349),l=r(4824),u=r(56756),d=r(47663),c=r(38572),f=r(16462),p=r(56674),h=r(18497),m=r(36898),v=r(17460),g=r(17303),y=r(6209),b=r(44189),w="rovingFocusGroup.onEntryFocus",x={bubbles:!1,cancelable:!0},_="RovingFocusGroup",[E,S,C]=(0,u.N)(_),[k,P]=(0,a.A)(_,[C]),[T,j]=k(_),A=n.forwardRef((e,t)=>(0,b.jsx)(E.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,b.jsx)(E.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,b.jsx)(R,{...e,ref:t})})}));A.displayName=_;var R=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:a,loop:u=!1,dir:c,currentTabStopId:f,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:h,onEntryFocus:m,preventScrollOnEntryFocus:v=!1,...g}=e,_=n.useRef(null),E=(0,o.s)(t,_),C=(0,d.jH)(c),[k=null,P]=(0,s.i)({prop:f,defaultProp:p,onChange:h}),[j,A]=n.useState(!1),R=(0,y.c)(m),M=S(r),O=n.useRef(!1),[D,I]=n.useState(0);return n.useEffect(()=>{let e=_.current;if(e)return e.addEventListener(w,R),()=>e.removeEventListener(w,R)},[R]),(0,b.jsx)(T,{scope:r,orientation:a,dir:C,loop:u,currentTabStopId:k,onItemFocus:n.useCallback(e=>P(e),[P]),onItemShiftTab:n.useCallback(()=>A(!0),[]),onFocusableItemAdd:n.useCallback(()=>I(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>I(e=>e-1),[]),children:(0,b.jsx)(l.sG.div,{tabIndex:j||0===D?-1:0,"data-orientation":a,...g,ref:E,style:{outline:"none",...e.style},onMouseDown:(0,i.m)(e.onMouseDown,()=>{O.current=!0}),onFocus:(0,i.m)(e.onFocus,e=>{let t=!O.current;if(e.target===e.currentTarget&&t&&!j){let t=new CustomEvent(w,x);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=M().filter(e=>
1e.focusable);N([e.find(e=>e.active),e.find(e=>e.id===k),...e].filter(Boolean).map(e=>e.ref.current),v)}}O.current=!1}),onBlur:(0,i.m)(e.onBlur,()=>A(!1))})})}),M="RovingFocusGroupItem",O=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:o=!0,active:a=!1,tabStopId:s,...u}=e,d=(0,h.B)(),c=s||d,f=j(M,r),p=f.currentTabStopId===c,m=S(r),{onFocusableItemAdd:v,onFocusableItemRemove:g}=f;return n.useEffect(()=>{if(o)return v(),()=>g()},[o,v,g]),(0,b.jsx)(E.ItemSlot,{scope:r,id:c,focusable:o,active:a,children:(0,b.jsx)(l.sG.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...u,ref:t,onMouseDown:(0,i.m)(e.onMouseDown,e=>{o?f.onItemFocus(c):e.preventDefault()}),onFocus:(0,i.m)(e.onFocus,()=>f.onItemFocus(c)),onKeyDown:(0,i.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){f.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let i=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return D[i]}(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=f.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>N(r))}})})})});O.displayName=M;var D={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function N(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var I=r(72195),L=r(77790),F=r(35592),V=["Enter"," "],B=["ArrowUp","PageDown","End"],z=["ArrowDown","PageUp","Home",...B],W={ltr:[...V,"ArrowRight"],rtl:[...V,"ArrowLeft"]},U={ltr:["ArrowLeft"],rtl:["ArrowRight"]},G="Menu",[Z,$,H]=(0,u.N)(G),[K,q]=(0,a.A)(G,[H,m.Bk,P]),Y=(0,m.Bk)(),X=P(),[J,Q]=K(G),[ee,et]=K(G),er=e=>{let{__scopeMenu:t,open:r=!1,children:i,dir:o,onOpenChange:a,modal:s=!0}=e,l=Y(t),[u,c]=n.useState(null),f=n.useRef(!1),p=(0,y.c)(a),h=(0,d.jH)(o);return n.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,b.jsx)(m.bL,{...l,children:(0,b.jsx)(J,{scope:t,open:r,onOpenChange:p,content:u,onContentChange:c,children:(0,b.jsx)(ee,{scope:t,onClose:n.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:h,modal:s,children:i})})})};er.displayName=G;var en=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,i=Y(r);return(0,b.jsx)(m.Mz,{...i,...n,ref:t})});en.displayName="MenuAnchor";var ei="MenuPortal",[eo,ea]=K(ei,{forceMount:void 0}),es=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:i}=e,o=Q(ei,t);return(0,b.jsx)(eo,{scope:t,forceMount:r,children:(0,b.jsx)(g.C,{present:r||o.open,children:(0,b.jsx)(v.Z,{asChild:!0,container:i,children:n})})})};es.displayName=ei;var el="MenuContent",[eu,ed]=K(el),ec=n.forwardRef((e,t)=>{let r=ea(el,e.__scopeMenu),{forceMount:n=r.forceMount,...i}=e,o=Q(el,e.__scopeMenu),a=et(el,e.__scopeMenu);return(0,b.jsx)(Z.Provider,{scope:e.__scopeMenu,children:(0,b.jsx)(g.C,{present:n||o.open,children:(0,b.jsx)(Z.Slot,{scope:e.__scopeMenu,children:a.modal?(0,b.jsx)(ef,{...i,ref:t}):(0,b.jsx)(ep,{...i,ref:t})})})})}),ef=n.forwardRef((e,t)=>{let r=Q(el,e.__scopeMenu),a=n.useRef(null),s=(0,o.s)(t,a);return n.useEffect(()=>{let e=a.current;if(e)return(0,L.Eq)(e)},[]),(0,b.jsx)(eh,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,i.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),ep=n.forwardRef((e,t)=>
1{let r=Q(el,e.__scopeMenu);return(0,b.jsx)(eh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),eh=n.forwardRef((e,t)=>{let{__scopeMenu:r,loop:a=!1,trapFocus:s,onOpenAutoFocus:l,onCloseAutoFocus:u,disableOutsidePointerEvents:d,onEntryFocus:h,onEscapeKeyDown:v,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:w,onDismiss:x,disableOutsideScroll:_,...E}=e,S=Q(el,r),C=et(el,r),k=Y(r),P=X(r),T=$(r),[j,R]=n.useState(null),M=n.useRef(null),O=(0,o.s)(t,M,S.onContentChange),D=n.useRef(0),N=n.useRef(""),L=n.useRef(0),V=n.useRef(null),W=n.useRef("right"),U=n.useRef(0),G=_?F.A:n.Fragment,Z=_?{as:I.DX,allowPinchZoom:!0}:void 0,H=e=>{var t,r;let n=N.current+e,i=T().filter(e=>!e.disabled),o=document.activeElement,a=null===(t=i.find(e=>e.ref.current===o))||void 0===t?void 0:t.textValue,s=function(e,t,r){var n;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=(n=Math.max(r?e.indexOf(r):-1,0),e.map((t,r)=>e[(n+r)%e.length]));1===i.length&&(o=o.filter(e=>e!==r));let a=o.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return a!==r?a:void 0}(i.map(e=>e.textValue),n,a),l=null===(r=i.find(e=>e.textValue===s))||void 0===r?void 0:r.ref.current;!function e(t){N.current=t,window.clearTimeout(D.current),""!==t&&(D.current=window.setTimeout(()=>e(""),1e3))}(n),l&&setTimeout(()=>l.focus())};n.useEffect(()=>()=>window.clearTimeout(D.current),[]),(0,f.Oh)();let K=n.useCallback(e=>{var t,r;return W.current===(null===(t=V.current)||void 0===t?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:r,y:n}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let a=t[e].x,s=t[e].y,l=t[o].x,u=t[o].y;s>n!=u>n&&r<(l-a)*(n-s)/(u-s)+a&&(i=!i)}return i}({x:e.clientX,y:e.clientY},t)}(e,null===(r=V.current)||void 0===r?void 0:r.area)},[]);return(0,b.jsx)(eu,{scope:r,searchRef:N,onItemEnter:n.useCallback(e=>{K(e)&&e.preventDefault()},[K]),onItemLeave:n.useCallback(e=>{var t;K(e)||(null===(t=M.current)||void 0===t||t.focus(),R(null))},[K]),onTriggerLeave:n.useCallback(e=>{K(e)&&e.preventDefault()},[K]),pointerGraceTimerRef:L,onPointerGraceIntentChange:n.useCallback(e=>{V.current=e},[]),children:(0,b.jsx)(G,{...Z,children:(0,b.jsx)(p.n,{asChild:!0,trapped:s,onMountAutoFocus:(0,i.m)(l,e=>{var t;e.preventDefault(),null===(t=M.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:(0,b.jsx)(c.qW,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:v,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:w,onDismiss:x,children:(0,b.jsx)(A,{asChild:!0,...P,dir:C.dir,orientation:"vertical",loop:a,currentTabStopId:j,onCurrentTabStopIdChange:R,onEntryFocus:(0,i.m)(h,e=>{C.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,b.jsx)(m.UC,{role:"menu","aria-orientation":"vertical","data-state":eW(S.open),"data-radix-menu-content":"",dir:C.dir,...k,...E,ref:O,style:{outline:"none",...E.style},onKeyDown:(0,i.m)(E.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&H(e.key));let i=M.current;if(e.target!==i||!z.includes(e.key))return;e.preventDefault();let o=T().filter(e=>!e.disabled).map(e=>e.ref.current);B.includes(e.key)&&o.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(o)}),onBlur:(0,i.m)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(D.current),N.current="")}),onPointerMove:(0,i.m)(e.onPointerMove,eZ(e=>{let t=e.target,r=U.current!==e.clientX;e.currentTarget.contains(t)&&r&&(W.current=e.clientX>U.current?"right":"left",U.current=e.clientX)}))})})})})})})});ec.displayName=el;var em=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,b.jsx)(l.sG.div,{role:"group",...n,ref:t})});em.displayName="MenuGroup";var ev=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,b.jsx)(l.sG.div,{...n,ref:t})});ev.displayName="MenuLabel";var eg="MenuItem",ey="menu.itemSelect",eb=n.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:a,...s}=e,u=n.useRef(null),d=et(eg,e.__scopeMenu),c=ed(eg,e.__scopeMenu),f=(0,o.s)(t,u),p=n.useRef(!1);return(0,b.jsx)(ew,{...s,ref:f,disabled:r,onClick:(0,i.m)(e.onClick,()=>{let e=u.current;if(!r&&e){let t=new CustomEvent(ey,{bubbles:!0,cancelable:!0});e.addEventListener(ey,e=>null==a?void 0:a(e),{once:!0}),(0,l.hO)(e,t),t.defaultPrevented?p.current=!1:d.onClose()}}),onPointerDown:t=>{var r;null===(r=e.onPointerDown)||void 0===r||r.call(e,t),p.current=!0},onPointerUp:(0,i.m)(e.onPointerUp,e=>{var t;p.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{let t=""!==c.searchRef.current;
1!r&&(!t||" "!==e.key)&&V.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eb.displayName=eg;var ew=n.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:a=!1,textValue:s,...u}=e,d=ed(eg,r),c=X(r),f=n.useRef(null),p=(0,o.s)(t,f),[h,m]=n.useState(!1),[v,g]=n.useState("");return n.useEffect(()=>{let e=f.current;if(e){var t;g((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[u.children]),(0,b.jsx)(Z.ItemSlot,{scope:r,disabled:a,textValue:null!=s?s:v,children:(0,b.jsx)(O,{asChild:!0,...c,focusable:!a,children:(0,b.jsx)(l.sG.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...u,ref:p,onPointerMove:(0,i.m)(e.onPointerMove,eZ(e=>{a?d.onItemLeave(e):(d.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,i.m)(e.onPointerLeave,eZ(e=>d.onItemLeave(e))),onFocus:(0,i.m)(e.onFocus,()=>m(!0)),onBlur:(0,i.m)(e.onBlur,()=>m(!1))})})})}),ex=n.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...o}=e;return(0,b.jsx)(ej,{scope:e.__scopeMenu,checked:r,children:(0,b.jsx)(eb,{role:"menuitemcheckbox","aria-checked":eU(r)?"mixed":r,...o,ref:t,"data-state":eG(r),onSelect:(0,i.m)(o.onSelect,()=>null==n?void 0:n(!!eU(r)||!r),{checkForDefaultPrevented:!1})})})});ex.displayName="MenuCheckboxItem";var e_="MenuRadioGroup",[eE,eS]=K(e_,{value:void 0,onValueChange:()=>{}}),eC=n.forwardRef((e,t)=>{let{value:r,onValueChange:n,...i}=e,o=(0,y.c)(n);return(0,b.jsx)(eE,{scope:e.__scopeMenu,value:r,onValueChange:o,children:(0,b.jsx)(em,{...i,ref:t})})});eC.displayName=e_;var ek="MenuRadioItem",eP=n.forwardRef((e,t)=>{let{value:r,...n}=e,o=eS(ek,e.__scopeMenu),a=r===o.value;return(0,b.jsx)(ej,{scope:e.__scopeMenu,checked:a,children:(0,b.jsx)(eb,{role:"menuitemradio","aria-checked":a,...n,ref:t,"data-state":eG(a),onSelect:(0,i.m)(n.onSelect,()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,r)},{checkForDefaultPrevented:!1})})})});eP.displayName=ek;var eT="MenuItemIndicator",[ej,eA]=K(eT,{checked:!1}),eR=n.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...i}=e,o=eA(eT,r);return(0,b.jsx)(g.C,{present:n||eU(o.checked)||!0===o.checked,children:(0,b.jsx)(l.sG.span,{...i,ref:t,"data-state":eG(o.checked)})})});eR.displayName=eT;var eM=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,b.jsx)(l.sG.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});eM.displayName="MenuSeparator";var eO=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,i=Y(r);return(0,b.jsx)(m.i3,{...i,...n,ref:t})});eO.displayName="MenuArrow";var eD="MenuSub",[eN,eI]=K(eD),eL=e=>{let{__scopeMenu:t,children:r,open:i=!1,onOpenChange:o}=e,a=Q(eD,t),s=Y(t),[l,u]=n.useState(null),[d,c]=n.useState(null),f=(0,y.c)(o);return n.useEffect(()=>(!1===a.open&&f(!1),()=>f(!1)),[a.open,f]),(0,b.jsx)(m.bL,{...s,children:(0,b.jsx)(J,{scope:t,open:i,onOpenChange:f,content:d,onContentChange:c,children:(0,b.jsx)(eN,{scope:t,contentId:(0,h.B)(),triggerId:(0,h.B)(),trigger:l,onTriggerChange:u,children:r})})})};eL.displayName=eD;var eF="MenuSubTrigger",eV=n.forwardRef((e,t)=>{let r=Q(eF,e.__scopeMenu),a=et(eF,e.__scopeMenu),s=eI(eF,e.__scopeMenu),l=ed(eF,e.__scopeMenu),u=n.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:c}=l,f={__scopeMenu:e.__scopeMenu},p=n.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return n.useEffect(()=>p,[p]),n.useEffect(()=>{let e=d.current;return()=>{window.clearTimeout(e),c(null)}},[d,c]),(0,b.jsx)(en,{asChild:!0,...f,children:(0,b.jsx)(ew,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":eW(r.open),...e,ref:(0,o.t)(t,s.onTriggerChange),onClick:t=>{var n;null===(n=e.onClick)||void 0===n||n.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,i.m)(e.onPointerMove,eZ(t=>{l.onItemEnter(t),t.defaultPrevented||e.disabled||r.open||u.current||(l.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100))})),onPointerLeave:(0,i.m)(e.onPointerLeave,eZ(e=>{var t,n;p();let i=null===(t=r.content)||void 0===t?void 0:t.getBoundingClientRect();if(i){let t=null===(n=r.content)||void 0===n?void 0:n.dataset.side,o="right"===t,a=i[o?"left":"right"],s=i[o?"right":"left"];l.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:a,y:i.top},{x:s,y:i.top},{x:s,y:i.bottom},{x:a,y:i.bottom}],side:t}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:(0,i.m)(e.onKeyDown,t=>{let n=""!==l.searchRef.current;if(!e.disabled&&(!n||" "!==t.key)&&W[a.dir].includes(t.key)){var i;r.onOpenChange(!0),null===(i=r.content)||void 0===i||i.focus(),t.preventDefault()}})})})});eV.displayName=eF;var eB="MenuSubContent",ez=n.forwardRef((e,t)=>
1{let r=ea(el,e.__scopeMenu),{forceMount:a=r.forceMount,...s}=e,l=Q(el,e.__scopeMenu),u=et(el,e.__scopeMenu),d=eI(eB,e.__scopeMenu),c=n.useRef(null),f=(0,o.s)(t,c);return(0,b.jsx)(Z.Provider,{scope:e.__scopeMenu,children:(0,b.jsx)(g.C,{present:a||l.open,children:(0,b.jsx)(Z.Slot,{scope:e.__scopeMenu,children:(0,b.jsx)(eh,{id:d.contentId,"aria-labelledby":d.triggerId,...s,ref:f,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;u.isUsingKeyboardRef.current&&(null===(t=c.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,i.m)(e.onFocusOutside,e=>{e.target!==d.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:(0,i.m)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=U[u.dir].includes(e.key);if(t&&r){var n;l.onOpenChange(!1),null===(n=d.trigger)||void 0===n||n.focus(),e.preventDefault()}})})})})})});function eW(e){return e?"open":"closed"}function eU(e){return"indeterminate"===e}function eG(e){return eU(e)?"indeterminate":e?"checked":"unchecked"}function eZ(e){return t=>"mouse"===t.pointerType?e(t):void 0}ez.displayName=eB;var e$="DropdownMenu",[eH,eK]=(0,a.A)(e$,[q]),eq=q(),[eY,eX]=eH(e$),eJ=e=>{let{__scopeDropdownMenu:t,children:r,dir:i,open:o,defaultOpen:a,onOpenChange:l,modal:u=!0}=e,d=eq(t),c=n.useRef(null),[f=!1,p]=(0,s.i)({prop:o,defaultProp:a,onChange:l});return(0,b.jsx)(eY,{scope:t,triggerId:(0,h.B)(),triggerRef:c,contentId:(0,h.B)(),open:f,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),modal:u,children:(0,b.jsx)(er,{...d,open:f,onOpenChange:p,dir:i,modal:u,children:r})})};eJ.displayName=e$;var eQ="DropdownMenuTrigger",e0=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...a}=e,s=eX(eQ,r),u=eq(r);return(0,b.jsx)(en,{asChild:!0,...u,children:(0,b.jsx)(l.sG.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...a,ref:(0,o.t)(t,s.triggerRef),onPointerDown:(0,i.m)(e.onPointerDown,e=>{n||0!==e.button||!1!==e.ctrlKey||(s.onOpenToggle(),s.open||e.preventDefault())}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&s.onOpenToggle(),"ArrowDown"===e.key&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});e0.displayName=eQ;var e1=e=>{let{__scopeDropdownMenu:t,...r}=e,n=eq(t);return(0,b.jsx)(es,{...n,...r})};e1.displayName="DropdownMenuPortal";var e4="DropdownMenuContent",e2=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...o}=e,a=eX(e4,r),s=eq(r),l=n.useRef(!1);return(0,b.jsx)(ec,{id:a.contentId,"aria-labelledby":a.triggerId,...s,...o,ref:t,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,e=>{var t;l.current||null===(t=a.triggerRef.current)||void 0===t||t.focus(),l.current=!1,e.preventDefault()}),onInteractOutside:(0,i.m)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!a.modal||n)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});e2.displayName=e4;var e9=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=eq(r);return(0,b.jsx)(em,{...i,...n,ref:t})});e9.displayName="DropdownMenuGroup";var e3=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=eq(r);return(0,b.jsx)(ev,{...i,...n,ref:t})});e3.displayName="DropdownMenuLabel";var e7=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=eq(r);return(0,b.jsx)(eb,{...i,...n,ref:t})});e7.displayName="DropdownMenuItem";var e5=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=eq(r);return(0,b.jsx)(ex,{...i,...n,ref:t})});e5.displayName="DropdownMenuCheckboxItem";var e8=n.forwardRef((e,t)=>
1{let{__scopeDropdownMenu:r,...n}=e,i=eq(r);return(0,b.jsx)(eC,{...i,...n,ref:t})});e8.displayName="DropdownMenuRadioGroup";var e6=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=eq(r);return(0,b.jsx)(eP,{...i,...n,ref:t})});e6.displayName="DropdownMenuRadioItem";var te=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=eq(r);return(0,b.jsx)(eR,{...i,...n,ref:t})});te.displayName="DropdownMenuItemIndicator";var tt=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=eq(r);return(0,b.jsx)(eM,{...i,...n,ref:t})});tt.displayName="DropdownMenuSeparator",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=eq(r);return(0,b.jsx)(eO,{...i,...n,ref:t})}).displayName="DropdownMenuArrow";var tr=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=eq(r);return(0,b.jsx)(eV,{...i,...n,ref:t})});tr.displayName="DropdownMenuSubTrigger";var tn=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=eq(r);return(0,b.jsx)(ez,{...i,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tn.displayName="DropdownMenuSubContent";var ti=eJ,to=e0,ta=e1,ts=e2,tl=e9,tu=e3,td=e7,tc=e5,tf=e8,tp=e6,th=te,tm=tt,tv=e=>{let{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:i,defaultOpen:o}=e,a=eq(t),[l=!1,u]=(0,s.i)({prop:n,defaultProp:o,onChange:i});return(0,b.jsx)(eL,{...a,open:l,onOpenChange:u,children:r})},tg=tr,ty=tn},34612:(e,t,r)=>{r.d(t,{default:()=>i.a});var n=r(42181),i=r.n(n)},34946:(e,t,r)=>{function n(e){let{reason:t,children:r}=e;return r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return n}}),r(51886)},35592:(e,t,r)=>{r.d(t,{A:()=>Z});var n,i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function o(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}Object.create;Object.create;var a=("function"==typeof SuppressedError&&SuppressedError,r(47049)),s="right-scroll-bar-position",l="width-before-scroll-bar";function u(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var d="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,c=new WeakMap;function f(e){return e}var p=function(e){void 0===e&&(e={});var t,r,n,o,a=(t=null,void 0===r&&(r=f),n=[],o=!1,{read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var t=r(e,o);return n.push(t),function(){n=n.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(o=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){o=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var i=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}});return a.options=i({async:!0,ssr:!1},e),a}(),h=function(){},m=a.forwardRef(function(e,t){var r,n,s,l,f=a.useRef(null),m=a.useState({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:h}),v=m[0],g=m[1],y=e.forwardProps,b=e.children,w=e.className,x=e.removeScrollBar,_=e.enabled,E=e.shards,S=e.sideCar,C=e.noIsolation,k=e.inert,P=e.allowPinchZoom,T=e.as,j=e.gapMode,A=o(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=(r=[f,t],n=function(e){return r.forEach(function(t){return u(t,e)})},(s=(0,a.useState)(function(){return{value:null,callback:n,facade:{get current(){return s.value},set current(value){var e=s.value;e!==value&&(s.value=value,s.callback(value,e))}}}})[0]).callback=n,l=s.facade,d(function(){var e=c.get(l);if(e){var t=new Set(e),n=new Set(r),i=l.current;t.forEach(function(e){n.has(e)||u(e,null)}
1),n.forEach(function(e){t.has(e)||u(e,i)})}c.set(l,r)},[r]),l),M=i(i({},A),v);return a.createElement(a.Fragment,null,_&&a.createElement(S,{sideCar:p,removeScrollBar:x,shards:E,noIsolation:C,inert:k,setCallbacks:g,allowPinchZoom:!!P,lockRef:f,gapMode:j}),y?a.cloneElement(a.Children.only(b),i(i({},M),{ref:R})):a.createElement(void 0===T?"div":T,i({},M,{className:w,ref:R}),b))});m.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},m.classNames={fullWidth:l,zeroRight:s};var v=function(e){var t=e.sideCar,r=o(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return a.createElement(n,i({},r))};v.isSideCarExport=!0;var g=function(){var e=0,t=null;return{add:function(i){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=n||r.nc;return t&&e.setAttribute("nonce",t),e}())){var o,a;(o=t).styleSheet?o.styleSheet.cssText=i:o.appendChild(document.createTextNode(i)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},y=function(){var e=g();return function(t,r){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},b=function(){var e=y();return function(t){return e(t.styles,t.dynamic),null}},w={left:0,top:0,right:0,gap:0},x=function(e){return parseInt(e||"",10)||0},_=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[x(r),x(n),x(i)]},E=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return w;var t=_(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},S=b(),C="data-scroll-locked",k=function(e,t,r,n){var i=e.left,o=e.top,a=e.right,u=e.gap;return void 0===r&&(r="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(n,";\n   padding-right: ").concat(u,"px ").concat(n,";\n  }\n  body[").concat(C,"] {\n    overflow: hidden ").concat(n,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n    padding-left: ".concat(i,"px;\n    padding-top: ").concat(o,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(u,"px ").concat(n,";\n    "),"padding"===r&&"padding-right: ".concat(u,"px ").concat(n,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(s," {\n    right: ").concat(u,"px ").concat(n,";\n  }\n  \n  .").concat(l," {\n    margin-right: ").concat(u,"px ").concat(n,";\n  }\n  \n  .").concat(s," .").concat(s," {\n    right: 0 ").concat(n,";\n  }\n  \n  .").concat(l," .").concat(l," {\n    margin-right: 0 ").concat(n,";\n  }\n  \n  body[").concat(C,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n  }\n")},P=function(){var e=parseInt(document.body.getAttribute(C)||"0",10);return isFinite(e)?e:0},T=function(){a.useEffect(function(){return document.body.setAttribute(C,(P()+1).toString()),function(){var e=P()-1;e<=0?document.body.removeAttribute(C):document.body.setAttribute(C,e.toString())}},[])},j=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=void 0===n?"margin":n;T();var o=a.useMemo(function(){return E(i)},[i]);return a.createElement(S,{styles:k(o,!t,i,r?"":"!important")})},A=!1;if("undefined"!=typeof window)try{var R=Object.defineProperty({},"passive",{get:function(){return A=!0,!0}});window.addEventListener("test",R,R),window.removeEventListener("test",R,R)}catch(e){A=!1}var M=!!A&&{passive:!1},O=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},D=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),N(e,n)){var i=I(e,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},N=function(e,t){return"v"===e?O(t,"overflowY"):O(t,"overflowX")},I=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},L=function(e,t,r,n,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*n,l=r.target,u=t.contains(l),d=!1,c=s>0,f=0,p=0;do{var h=I(e,l),m=h[0],v=h[1]-h[2]-a*m;(m||v)&&N(e,l)&&(f+=v,p+=m),l=l instanceof ShadowRoot?l.host:l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return c&&(i&&1>Math.abs(f)||!i&&s>f)?d=!0:!c&&(i&&1>Math.abs(p)||!i&&-s>p)&&(d=!0),d},F=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},V=function(e){return[e.deltaX,e.deltaY]},B=function(e){return e&&"current"in e?e.current:e},z=0,W=[];let U=(p.useMedium(function(e){var t=a.useRef([]),r=a.useRef([0,0]),n=a.useRef(),i=a.useState(z++)[0],o=a.useState(b)[0],s=a.useRef(e);a.useEffect(function(){s.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}
1)([e.lockRef.current],(e.shards||[]).map(B),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=a.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var i,o=F(e),a=r.current,l="deltaX"in e?e.deltaX:a[0]-o[0],u="deltaY"in e?e.deltaY:a[1]-o[1],d=e.target,c=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===c&&"range"===d.type)return!1;var f=D(c,d);if(!f)return!0;if(f?i=c:(i="v"===c?"h":"v",f=D(c,d)),!f)return!1;if(!n.current&&"changedTouches"in e&&(l||u)&&(n.current=i),!i)return!0;var p=n.current||i;return L(p,t,e,"h"===p?l:u,!0)},[]),u=a.useCallback(function(e){if(W.length&&W[W.length-1]===o){var r="deltaY"in e?V(e):F(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta)[0]===r[0]&&n[1]===r[1]})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var i=(s.current.shards||[]).map(B).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?l(e,i[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),d=a.useCallback(function(e,r,n,i){var o={name:e,delta:r,target:n,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),c=a.useCallback(function(e){r.current=F(e),n.current=void 0},[]),f=a.useCallback(function(t){d(t.type,V(t),t.target,l(t,e.lockRef.current))},[]),p=a.useCallback(function(t){d(t.type,F(t),t.target,l(t,e.lockRef.current))},[]);a.useEffect(function(){return W.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,M),document.addEventListener("touchmove",u,M),document.addEventListener("touchstart",c,M),function(){W=W.filter(function(e){return e!==o}),document.removeEventListener("wheel",u,M),document.removeEventListener("touchmove",u,M),document.removeEventListener("touchstart",c,M)}},[]);var h=e.removeScrollBar,m=e.inert;return a.createElement(a.Fragment,null,m?a.createElement(o,{styles:"\n  .block-interactivity-".concat(i," {pointer-events: none;}\n  .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,h?a.createElement(j,{gapMode:e.gapMode}):null)}),v);var G=a.forwardRef(function(e,t){return a.createElement(m,i({},e,{ref:t,sideCar:U}))});G.classNames=m.classNames;let Z=G},35736:(e,t,r)=>{r.d(t,{Content:()=>eb,Indicator:()=>ey,Item:()=>em,Link:()=>eg,List:()=>eh,Root:()=>ep,Viewport:()=>ew,l9:()=>ev});var n=r(47049),i=r(34748),o=r(12502),a=r(47998),s=r(4824),l=r(86349),u=r(8670),d=r(47663),c=r(17303),f=r(18497),p=r(56756),h=r(38572),m=r(95149),v=r(95193),g=r(6209),y=r(64185),b=r(44189),w="NavigationMenu",[x,_,E]=(0,p.N)(w),[S,C,k]=(0,p.N)(w),[P,T]=(0,o.A)(w,[E,k]),[j,A]=P(w),[R,M]=P(w),O=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:i,onValueChange:o,defaultValue:a,delayDuration:c=200,skipDelayDuration:f=300,orientation:p="horizontal",dir:h,...m}=e,[v,g]=n.useState(null),y=(0,u.s)(t,e=>g(e)),w=(0,d.jH)(h),x=n.useRef(0),_=n.useRef(0),E=n.useRef(0),[S,C]=n.useState(!0),[k="",P]=(0,l.i)({prop:i,onChange:e=>{let t=f>0;""!==e?(window.clearTimeout(E.current),t&&C(!1)):(window.clearTimeout(E.current),E.current=window.setTimeout(()=>C(!0),f)),null==o||o(e)},defaultProp:a}),T=n.useCallback(()=>{window.clearTimeout(_.current),_.current=window.setTimeout(()=>P(""),150)},[P]),j=n.useCallback(e=>{window.clearTimeout(_.current),P(e)},[P]),A=n.useCallback(e=>{k===e?window.clearTimeout(_.current):x.current=window.setTimeout(()=>{window.clearTimeout(_.current),P(e)},c)},[k,P,c]);return n.useEffect(()=>()=>{window.clearTimeout(x.current),window.clearTimeout(_.current),window.clearTimeout(E.current)},[]),(0,b.jsx)(N,{scope:r,isRootMenu:!0,value:k,dir:w,orientation:p,rootNavigationMenu:v,onTriggerEnter:e=>{window.clearTimeout(x.current),S?A(e):j(e)},onTriggerLeave:()=>{window.clearTimeout(x.current),T()},onContentEnter:()=>window.clearTimeout(_.current),onContentLeave:T,onItemSelect:e=>{P(t=>t===e?"":e)},onItemDismiss:()=>P(""),children:(0,b.jsx)(s.sG.nav,{"aria-label":"Main","data-orientation":p,dir:w,...m,ref:y})})});O.displayName=w;var D="NavigationMenuSub";n.forwardRef((e,t)=>
1{let{__scopeNavigationMenu:r,value:n,onValueChange:i,defaultValue:o,orientation:a="horizontal",...u}=e,d=A(D,r),[c="",f]=(0,l.i)({prop:n,onChange:i,defaultProp:o});return(0,b.jsx)(N,{scope:r,isRootMenu:!1,value:c,dir:d.dir,orientation:a,rootNavigationMenu:d.rootNavigationMenu,onTriggerEnter:e=>f(e),onItemSelect:e=>f(e),onItemDismiss:()=>f(""),children:(0,b.jsx)(s.sG.div,{"data-orientation":a,...u,ref:t})})}).displayName=D;var N=e=>{let{scope:t,isRootMenu:r,rootNavigationMenu:i,dir:o,orientation:a,children:s,value:l,onItemSelect:u,onItemDismiss:d,onTriggerEnter:c,onTriggerLeave:p,onContentEnter:h,onContentLeave:v}=e,[y,w]=n.useState(null),[_,E]=n.useState(new Map),[S,C]=n.useState(null);return(0,b.jsx)(j,{scope:t,isRootMenu:r,rootNavigationMenu:i,value:l,previousValue:(0,m.Z)(l),baseId:(0,f.B)(),dir:o,orientation:a,viewport:y,onViewportChange:w,indicatorTrack:S,onIndicatorTrackChange:C,onTriggerEnter:(0,g.c)(c),onTriggerLeave:(0,g.c)(p),onContentEnter:(0,g.c)(h),onContentLeave:(0,g.c)(v),onItemSelect:(0,g.c)(u),onItemDismiss:(0,g.c)(d),onViewportContentChange:n.useCallback((e,t)=>{E(r=>(r.set(e,t),new Map(r)))},[]),onViewportContentRemove:n.useCallback(e=>{E(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,b.jsx)(x.Provider,{scope:t,children:(0,b.jsx)(R,{scope:t,items:_,children:s})})})},I="NavigationMenuList",L=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,i=A(I,r),o=(0,b.jsx)(s.sG.ul,{"data-orientation":i.orientation,...n,ref:t});return(0,b.jsx)(s.sG.div,{style:{position:"relative"},ref:i.onIndicatorTrackChange,children:(0,b.jsx)(x.Slot,{scope:r,children:i.isRootMenu?(0,b.jsx)(en,{asChild:!0,children:o}):o})})});L.displayName=I;var F="NavigationMenuItem",[V,B]=P(F),z=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:i,...o}=e,a=(0,f.B)(),l=n.useRef(null),u=n.useRef(null),d=n.useRef(null),c=n.useRef(()=>{}),p=n.useRef(!1),h=n.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"start";if(l.current){c.current();let t=ea(l.current);t.length&&es("start"===e?t:t.reverse())}},[]),m=n.useCallback(()=>{if(l.current){let e=ea(l.current);e.length&&(c.current=function(e){return e.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})}}(e))}},[]);return(0,b.jsx)(V,{scope:r,value:i||a||"LEGACY_REACT_AUTO_VALUE",triggerRef:u,contentRef:l,focusProxyRef:d,wasEscapeCloseRef:p,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:m,onContentFocusOutside:m,children:(0,b.jsx)(s.sG.li,{...o,ref:t})})});z.displayName=F;var W="NavigationMenuTrigger",U=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,disabled:i,...o}=e,l=A(W,e.__scopeNavigationMenu),d=B(W,e.__scopeNavigationMenu),c=n.useRef(null),f=(0,u.s)(c,d.triggerRef,t),p=ed(l.baseId,d.value),h=ec(l.baseId,d.value),m=n.useRef(!1),v=n.useRef(!1),g=d.value===l.value;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(x.ItemSlot,{scope:r,value:d.value,children:(0,b.jsx)(eo,{asChild:!0,children:(0,b.jsx)(s.sG.button,{id:p,disabled:i,"data-disabled":i?"":void 0,"data-state":eu(g),"aria-expanded":g,"aria-controls":h,...o,ref:f,onPointerEnter:(0,a.m)(e.onPointerEnter,()=>{v.current=!1,d.wasEscapeCloseRef.current=!1}),onPointerMove:(0,a.m)(e.onPointerMove,ef(()=>{i||v.current||d.wasEscapeCloseRef.current||m.current||(l.onTriggerEnter(d.value),m.current=!0)})),onPointerLeave:(0,a.m)(e.onPointerLeave,ef(()=>{i||(l.onTriggerLeave(),m.current=!1)})),onClick:(0,a.m)(e.onClick,()=>{l.onItemSelect(d.value),v.current=g}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===l.dir?"ArrowLeft":"ArrowRight"}[l.orientation];g&&e.key===t&&(d.onEntryKeyDown(),e.preventDefault())})})})}),g&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(y.b,{"aria-hidden":!0,tabIndex:0,ref:d.focusProxyRef,onFocus:e=>{let t=d.contentRef.current,r=e.relatedTarget,n=r===c.current,i=null==t?void 0:t.contains(r);(n||!i)&&d.onFocusProxyEnter(n?"start":"end")}}),l.viewport&&(0,b.jsx)("span",{"aria-owns":h})]})]})});U.displayName=W;var G="navigationMenu.linkSelect",Z=n.forwardRef((e,t)=>
1{let{__scopeNavigationMenu:r,active:n,onSelect:i,...o}=e;return(0,b.jsx)(eo,{asChild:!0,children:(0,b.jsx)(s.sG.a,{"data-active":n?"":void 0,"aria-current":n?"page":void 0,...o,ref:t,onClick:(0,a.m)(e.onClick,e=>{let t=e.target,r=new CustomEvent(G,{bubbles:!0,cancelable:!0});if(t.addEventListener(G,e=>null==i?void 0:i(e),{once:!0}),(0,s.hO)(t,r),!r.defaultPrevented&&!e.metaKey){let e=new CustomEvent(J,{bubbles:!0,cancelable:!0});(0,s.hO)(t,e)}},{checkForDefaultPrevented:!1})})})});Z.displayName="NavigationMenuLink";var $="NavigationMenuIndicator",H=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=A($,e.__scopeNavigationMenu),a=!!o.value;return o.indicatorTrack?i.createPortal((0,b.jsx)(c.C,{present:r||a,children:(0,b.jsx)(K,{...n,ref:t})}),o.indicatorTrack):null});H.displayName=$;var K=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...i}=e,o=A($,r),a=_(r),[l,u]=n.useState(null),[d,c]=n.useState(null),f="horizontal"===o.orientation,p=!!o.value;n.useEffect(()=>{var e;let t=null===(e=a().find(e=>e.value===o.value))||void 0===e?void 0:e.ref.current;t&&u(t)},[a,o.value]);let h=()=>{l&&c({size:f?l.offsetWidth:l.offsetHeight,offset:f?l.offsetLeft:l.offsetTop})};return el(l,h),el(o.indicatorTrack,h),d?(0,b.jsx)(s.sG.div,{"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":o.orientation,...i,ref:t,style:{position:"absolute",...f?{left:0,width:d.size+"px",transform:"translateX(".concat(d.offset,"px)")}:{top:0,height:d.size+"px",transform:"translateY(".concat(d.offset,"px)")},...i.style}}):null}),q="NavigationMenuContent",Y=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,i=A(q,e.__scopeNavigationMenu),o=B(q,e.__scopeNavigationMenu),s=(0,u.s)(o.contentRef,t),l=o.value===i.value,d={value:o.value,triggerRef:o.triggerRef,focusProxyRef:o.focusProxyRef,wasEscapeCloseRef:o.wasEscapeCloseRef,onContentFocusOutside:o.onContentFocusOutside,onRootContentClose:o.onRootContentClose,...n};return i.viewport?(0,b.jsx)(X,{forceMount:r,...d,ref:s}):(0,b.jsx)(c.C,{present:r||l,children:(0,b.jsx)(Q,{"data-state":eu(l),...d,ref:s,onPointerEnter:(0,a.m)(e.onPointerEnter,i.onContentEnter),onPointerLeave:(0,a.m)(e.onPointerLeave,ef(i.onContentLeave)),style:{pointerEvents:!l&&i.isRootMenu?"none":void 0,...d.style}})})});Y.displayName=q;var X=n.forwardRef((e,t)=>{let{onViewportContentChange:r,onViewportContentRemove:n}=A(q,e.__scopeNavigationMenu);return(0,v.N)(()=>{r(e.value,{ref:t,...e})},[e,t,r]),(0,v.N)(()=>()=>n(e.value),[e.value,n]),null}),J="navigationMenu.rootContentDismiss",Q=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:i,triggerRef:o,focusProxyRef:s,wasEscapeCloseRef:l,onRootContentClose:d,onContentFocusOutside:c,...f}=e,p=A(q,r),m=n.useRef(null),v=(0,u.s)(m,t),g=ed(p.baseId,i),y=ec(p.baseId,i),w=_(r),x=n.useRef(null),{onItemDismiss:E}=p;n.useEffect(()=>{let e=m.current;if(p.isRootMenu&&e){let t=()=>{var t;E(),d(),e.contains(document.activeElement)&&(null===(t=o.current)||void 0===t||t.focus())};return e.addEventListener(J,t),()=>e.removeEventListener(J,t)}},[p.isRootMenu,e.value,o,E,d]);let S=n.useMemo(()=>{let e=w().map(e=>e.value);"rtl"===p.dir&&e.reverse();let t=e.indexOf(p.value),r=e.indexOf(p.previousValue),n=i===p.value,o=r===e.indexOf(i);if(!n&&!o)return x.current;let a=(()=>{if(t!==r){if(n&&-1!==r)return t>r?"from-end":"from-start";if(o&&-1!==t)return t>r?"to-start":"to-end"}return null})();return x.current=a,a},[p.previousValue,p.value,p.dir,w,i]);return(0,b.jsx)(en,{asChild:!0,children:(0,b.jsx)(h.qW,{id:y,"aria-labelledby":g,"data-motion":S,"data-orientation":p.orientation,...f,ref:v,disableOutsidePointerEvents:!1,onDismiss:()=>{var e;let t=new Event(J,{bubbles:!0,cancelable:!0});null===(e=m.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:(0,a.m)(e.onFocusOutside,e=>{var t;c();let r=e.target;(null===(t=p.rootNavigationMenu)||void 0===t?void 0:t.contains(r))&&e.preventDefault()}),onPointerDownOutside:(0,a.m)(e.onPointerDownOutside,e=>{var t;let r=e.target,n=w().some(e=>{var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(r)}),i=p.isRootMenu&&(null===(t=p.viewport)||void 0===t?void 0:t.contains(r));(n||i||!p.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=ea(e.currentTarget),n=document.activeElement,i=t.findIndex(e=>e===n);if(es(e.shiftKey?t.slice(0,i).reverse():t.slice(i+1,t.length)))e.preventDefault();else{var r;null===(r=s.current)||void 0===r||r.focus()}}}),onEscapeKeyDown:(0,a.m)(e.onEscapeKeyDown,e=>{l.current=!0})})})}),ee="NavigationMenuViewport",et=n.forwardRef((e,t)=>
1{let{forceMount:r,...n}=e,i=!!A(ee,e.__scopeNavigationMenu).value;return(0,b.jsx)(c.C,{present:r||i,children:(0,b.jsx)(er,{...n,ref:t})})});et.displayName=ee;var er=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,children:i,...o}=e,l=A(ee,r),d=(0,u.s)(t,l.onViewportChange),f=M(q,e.__scopeNavigationMenu),[p,h]=n.useState(null),[m,v]=n.useState(null),g=p?(null==p?void 0:p.width)+"px":void 0,y=p?(null==p?void 0:p.height)+"px":void 0,w=!!l.value,x=w?l.value:l.previousValue;return el(m,()=>{m&&h({width:m.offsetWidth,height:m.offsetHeight})}),(0,b.jsx)(s.sG.div,{"data-state":eu(w),"data-orientation":l.orientation,...o,ref:d,style:{pointerEvents:!w&&l.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":g,"--radix-navigation-menu-viewport-height":y,...o.style},onPointerEnter:(0,a.m)(e.onPointerEnter,l.onContentEnter),onPointerLeave:(0,a.m)(e.onPointerLeave,ef(l.onContentLeave)),children:Array.from(f.items).map(e=>{let[t,{ref:r,forceMount:n,...i}]=e,o=x===t;return(0,b.jsx)(c.C,{present:n||o,children:(0,b.jsx)(Q,{...i,ref:(0,u.t)(r,e=>{o&&e&&v(e)})})},t)})})}),en=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,i=A("FocusGroup",r);return(0,b.jsx)(S.Provider,{scope:r,children:(0,b.jsx)(S.Slot,{scope:r,children:(0,b.jsx)(s.sG.div,{dir:i.dir,...n,ref:t})})})}),ei=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],eo=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,i=C(r),o=A("FocusGroupItem",r);return(0,b.jsx)(S.ItemSlot,{scope:r,children:(0,b.jsx)(s.sG.button,{...n,ref:t,onKeyDown:(0,a.m)(e.onKeyDown,e=>{if(["Home","End",...ei].includes(e.key)){let t=i().map(e=>e.ref.current);if(["rtl"===o.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),ei.includes(e.key)){let r=t.indexOf(e.currentTarget);t=t.slice(r+1)}setTimeout(()=>es(t)),e.preventDefault()}})})})});function ea(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function es(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function el(e,t){let r=(0,g.c)(t);(0,v.N)(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}function eu(e){return e?"open":"closed"}function ed(e,t){return"".concat(e,"-trigger-").concat(t)}function ec(e,t){return"".concat(e,"-content-").concat(t)}function ef(e){return t=>"mouse"===t.pointerType?e(t):void 0}var ep=O,eh=L,em=z,ev=U,eg=Z,ey=H,eb=Y,ew=et},35847:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return y},MissingStaticPage:function(){return g},NormalizeError:function(){return m},PageNotFoundError:function(){return v},SP:function(){return f},ST:function(){return p},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return l},getLocationOrigin:function(){return a},getURL:function(){return s},isAbsoluteUrl:function(){return o},isResSent:function(){return u},loadGetInitialProps:function(){return c},normalizeRepeatedSlashes:function(){return d},stringifyError:function(){return b}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return r||(r=!0,t=e(...i)),t}}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>i.test(e);function a(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function s(){let{href:e}=window.location,t=a();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function d(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function c(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await c(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&u(r))return n;if(!n)throw Object.defineProperty(Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,
1configurable:!0});return n}let f="undefined"!=typeof performance,p=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class m extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class g extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class y extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function b(e){return JSON.stringify({message:e.message,stack:e.stack})}},36660:(e,t,r)=>{r.d(t,{B:()=>u});var n=r(70767),i=r(51019),o=r(44529),a=r(26284);let s=e=>(0,n.q)(0,255,e),l={...i.ai,transform:e=>Math.round(s(e))},u={test:(0,a.$)("rgb","red"),parse:(0,a.q)("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+l.transform(e)+", "+l.transform(t)+", "+l.transform(r)+", "+(0,o.a)(i.X4.transform(n))+")"}},36787:(e,t,r)=>{r.d(t,{$:()=>n});let n=e=>/^0[^.\s]+$/u.test(e)},36812:(e,t,r)=>{r.d(t,{t:()=>n});let n=(0,r(47049).createContext)(null)},36898:(e,t,r)=>{r.d(t,{Mz:()=>eY,i3:()=>eJ,UC:()=>eX,bL:()=>eq,Bk:()=>eO});var n=r(47049);let i=["top","right","bottom","left"],o=Math.min,a=Math.max,s=Math.round,l=Math.floor,u=e=>({x:e,y:e}),d={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function f(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function v(e){return"y"===e?"height":"width"}function g(e){return["top","bottom"].includes(p(e))?"y":"x"}function y(e){return e.replace(/start|end/g,e=>c[e])}function b(e){return e.replace(/left|right|bottom|top/g,e=>d[e])}function w(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function x(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function _(e,t,r){let n,{reference:i,floating:o}=e,a=g(t),s=m(g(t)),l=v(s),u=p(t),d="y"===a,c=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,y=i[l]/2-o[l]/2;switch(u){case"top":n={x:c,y:i.y-o.height};break;case"bottom":n={x:c,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:f};break;case"left":n={x:i.x-o.width,y:f};break;default:n={x:i.x,y:i.y}}switch(h(t)){case"start":n[s]-=y*(r&&d?-1:1);break;case"end":n[s]+=y*(r&&d?-1:1)}return n}let E=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=r,s=o.filter(Boolean),l=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:c}=_(u,n,l),f=n,p={},h=0;for(let r=0;r<s.length;r++){let{name:o,fn:m}=s[r],{x:v,y:g,data:y,reset:b}=await m({x:d,y:c,initialPlacement:n,placement:f,strategy:i,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});d=null!=v?v:d,c=null!=g?g:c,p={...p,[o]:{...p[o],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:d,y:c}=_(u,f,l)),r=-1)}return{x:d,y:c,placement:f,strategy:i,middlewareData:p}};async function S(e,t){var r;void 0===t&&(t={});let{x:n,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:p=!1,padding:h=0}=f(t,e),m=w(h),v=s[p?"floating"===c?"reference":"floating":c],g=x(await o.getClippingRect({element:null==(r=await (null==o.isElement?void 0:o.isElement(v)))||r?v:v.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:l})),y="floating"===c?{x:n,y:i,width:a.floating.width,height:a.floating.height}:a.reference,b=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),_=await (null==o.isElement?void 0:o.isElement(b))&&await (null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},E=x(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(g.top-E.top+m.top)/_.y,bottom:(E.bottom-g.bottom+m.bottom)/_.y,left
1:(g.left-E.left+m.left)/_.x,right:(E.right-g.right+m.right)/_.x}}function C(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function k(e){return i.some(t=>e[t]>=0)}async function P(e,t){let{placement:r,platform:n,elements:i}=e,o=await (null==n.isRTL?void 0:n.isRTL(i.floating)),a=p(r),s=h(r),l="y"===g(r),u=["left","top"].includes(a)?-1:1,d=o&&l?-1:1,c=f(t,e),{mainAxis:m,crossAxis:v,alignmentAxis:y}="number"==typeof c?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&"number"==typeof y&&(v="end"===s?-+y:y),l?{x:v*d,y:m*u}:{x:m*u,y:v*d}}function T(){return"undefined"!=typeof window}function j(e){return M(e)?(e.nodeName||"").toLowerCase():"#document"}function A(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function R(e){var t;return null==(t=(M(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function M(e){return!!T()&&(e instanceof Node||e instanceof A(e).Node)}function O(e){return!!T()&&(e instanceof Element||e instanceof A(e).Element)}function D(e){return!!T()&&(e instanceof HTMLElement||e instanceof A(e).HTMLElement)}function N(e){return!!T()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof A(e).ShadowRoot)}function I(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=z(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function L(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function F(e){let t=V(),r=O(e)?z(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(r.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(r.contain||"").includes(e))}function V(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function B(e){return["html","body","#document"].includes(j(e))}function z(e){return A(e).getComputedStyle(e)}function W(e){return O(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function U(e){if("html"===j(e))return e;let t=e.assignedSlot||e.parentNode||N(e)&&e.host||R(e);return N(t)?t.host:t}function G(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let i=function e(t){let r=U(t);return B(r)?t.ownerDocument?t.ownerDocument.body:t.body:D(r)&&I(r)?r:e(r)}(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),a=A(i);if(o){let e=Z(a);return t.concat(a,a.visualViewport||[],I(i)?i:[],e&&r?G(e):[])}return t.concat(i,G(i,[],r))}function Z(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function $(e){let t=z(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=D(e),o=i?e.offsetWidth:r,a=i?e.offsetHeight:n,l=s(r)!==o||s(n)!==a;return l&&(r=o,n=a),{width:r,height:n,$:l}}function H(e){return O(e)?e:e.contextElement}function K(e){let t=H(e);if(!D(t))return u(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=$(t),a=(o?s(r.width):r.width)/n,l=(o?s(r.height):r.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let q=u(0);function Y(e){let t=A(e);return V()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:q}function X(e,t,r,n){var i;void 0===t&&(t=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),a=H(e),s=u(1);t&&(n?O(n)&&(s=K(n)):s=K(e));let l=(void 0===(i=r)&&(i=!1),n&&(!i||n===A(a))&&i)?Y(a):u(0),d=(o.left+l.x)/s.x,c=(o.top+l.y)/s.y,f=o.width/s.x,p=o.height/s.y;if(a){let e=A(a),t=n&&O(n)?A(n):n,r=e,i=Z(r);for(;i&&n&&t!==r;){let e=K(i),t=i.getBoundingClientRect(),n=z(i),o=t.left+(i.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(n.paddingTop))*e.y;d*=e.x,c*=e.y,f*=e.x,p*=e.y,d+=o,c+=a,i=Z(r=A(i))}}return x({width:f,height:p,x:d,y:c})}function J(e,t){let r=W(e).scrollLeft;return t?t.left+r:X(R(e)).left+r}function Q(e,t,r){void 0===r&&(r=!1);let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-(r?0:J(e,n)),y:n.top+t.scrollTop}}function ee(e,t,r){let n;if("viewport"===t)n=function(e,t){let r=A(e),n=R(e),i=r.visualVie
1wport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=V();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,r);else if("document"===t)n=function(e){let t=R(e),r=W(e),n=e.ownerDocument.body,i=a(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=a(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+J(e),l=-r.scrollTop;return"rtl"===z(n).direction&&(s+=a(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:l}}(R(e));else if(O(t))n=function(e,t){let r=X(e,!0,"fixed"===t),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=D(e)?K(e):u(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y;return{width:a,height:s,x:i*o.x,y:n*o.y}}(t,r);else{let r=Y(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return x(n)}function et(e){return"static"===z(e).position}function er(e,t){if(!D(e)||"fixed"===z(e).position)return null;if(t)return t(e);let r=e.offsetParent;return R(e)===r&&(r=r.ownerDocument.body),r}function en(e,t){let r=A(e);if(L(e))return r;if(!D(e)){let t=U(e);for(;t&&!B(t);){if(O(t)&&!et(t))return t;t=U(t)}return r}let n=er(e,t);for(;n&&["table","td","th"].includes(j(n))&&et(n);)n=er(n,t);return n&&B(n)&&et(n)&&!F(n)?r:n||function(e){let t=U(e);for(;D(t)&&!B(t);){if(F(t))return t;if(L(t))break;t=U(t)}return null}(e)||r}let ei=async function(e){let t=this.getOffsetParent||en,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=D(t),i=R(t),o="fixed"===r,a=X(e,!0,o,t),s={scrollLeft:0,scrollTop:0},l=u(0);if(n||!n&&!o)if(("body"!==j(t)||I(i))&&(s=W(t)),n){let e=X(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=J(i));let d=!i||n||o?u(0):Q(i,s);return{x:a.left+s.scrollLeft-l.x-d.x,y:a.top+s.scrollTop-l.y-d.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},eo={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o="fixed"===i,a=R(n),s=!!t&&L(t.floating);if(n===a||s&&o)return r;let l={scrollLeft:0,scrollTop:0},d=u(1),c=u(0),f=D(n);if((f||!f&&!o)&&(("body"!==j(n)||I(a))&&(l=W(n)),D(n))){let e=X(n);d=K(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}let p=!a||f||o?u(0):Q(a,l,!0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-l.scrollLeft*d.x+c.x+p.x,y:r.y*d.y-l.scrollTop*d.y+c.y+p.y}},getDocumentElement:R,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,s=[..."clippingAncestors"===r?L(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=G(e,[],!1).filter(e=>O(e)&&"body"!==j(e)),i=null,o="fixed"===z(e).position,a=o?U(e):e;for(;O(a)&&!B(a);){let t=z(a),r=F(a);r||"fixed"!==t.position||(i=null),(o?!r&&!i:!r&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||I(a)&&!r&&function e(t,r){let n=U(t);return!(n===r||!O(n)||B(n))&&("fixed"===z(n).position||e(n,r))}(e,a))?n=n.filter(e=>e!==a):i=t,a=U(a)}return t.set(e,n),n}(t,this._c):[].concat(r),n],l=s[0],u=s.reduce((e,r)=>{let n=ee(t,r,i);return e.top=a(n.top,e.top),e.right=o(n.right,e.right),e.bottom=o(n.bottom,e.bottom),e.left=a(n.left,e.left),e},ee(t,l,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:en,getElementRects:ei,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=$(e);return{width:t,height:r}},getScale:K,isElement:O,isRTL:function(e){return"rtl"===z(e).direction}};function ea(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let es=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:i,rects:s,platform:l,elements:u,middlewareData:d}=t,{element:c,padding:p=0}=f(e,t)||{};if(null==c)return{};let y=w(p),b={x:r,y:n},x=m(g(i)),_=v(x),E=await l.getDimensions(c),S="y"===x,C=S?"clientHeight":"clientWidth",k=s.reference[_]+s.reference[x]-b[x]-s.floating[_],P=b[x]-s.reference[x],T=await (null==l.getOffsetParent?void 0:l.getOffsetParent(c)),j=T?T[C]:0;j&&await (null==l.isElement?void 0:l.isElement(T))||(j=u.floating[C]||s.floating[_]);let A=j/2-E[_]/2-1,R=o(y[S?"top":"left"],A),M=o(y[S?"bottom":"right"],A),O=j-E[_]-M,D=j/2-E[_]/2+(k/2-P/2),N=a(R,o(D,O)),I=!d.arrow&&null!=h(i)&&D!==N&&s.reference[_]/2-(D<R?R:M)-E[_]/2<0,L=I?D<R?D-R:D-O:0;return{[x]:b[x]+L,data:{[x]:N,centerOffset:D-N-L,...I&&{alignmentOffset:L}},reset:I}}}),el=(e,t,r)=>{let n=new Map,i={platform:eo,...r},o={...i.platform,_c:n};return E(e,t,{...i,platform:o})};var eu=r(34748),ed="undefined"!=typeof document?n.useLayoutEffect:n.useEffect;function ec(e,t){let r,n,i;if(e===t)return!0;
1if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!ec(e[n],t[n]))return!1;return!0}if((r=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!=n--;){let r=i[n];if(("_owner"!==r||!e.$$typeof)&&!ec(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function ef(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ep(e,t){let r=ef(e);return Math.round(t*r)/r}function eh(e){let t=n.useRef(e);return ed(()=>{t.current=e}),t}let em=e=>({name:"arrow",options:e,fn(t){let{element:r,padding:n}="function"==typeof e?e(t):e;return r&&({}).hasOwnProperty.call(r,"current")?null!=r.current?es({element:r.current,padding:n}).fn(t):{}:r?es({element:r,padding:n}).fn(t):{}}}),ev=(e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:i,y:o,placement:a,middlewareData:s}=t,l=await P(t,e);return a===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}}(e),options:[e,t]}),eg=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...d}=f(e,t),c={x:r,y:n},h=await S(t,d),v=g(p(i)),y=m(v),b=c[y],w=c[v];if(s){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",r=b+h[e],n=b-h[t];b=a(r,o(b,n))}if(l){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",r=w+h[e],n=w-h[t];w=a(r,o(w,n))}let x=u.fn({...t,[y]:b,[v]:w});return{...x,data:{x:x.x-r,y:x.y-n,enabled:{[y]:s,[v]:l}}}}}}(e),options:[e,t]}),ey=(e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:r,y:n,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=f(e,t),d={x:r,y:n},c=g(i),h=m(c),v=d[h],y=d[c],b=f(s,t),w="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){let e="y"===h?"height":"width",t=o.reference[h]-o.floating[e]+w.mainAxis,r=o.reference[h]+o.reference[e]-w.mainAxis;v<t?v=t:v>r&&(v=r)}if(u){var x,_;let e="y"===h?"width":"height",t=["top","left"].includes(p(i)),r=o.reference[c]-o.floating[e]+(t&&(null==(x=a.offset)?void 0:x[c])||0)+(t?0:w.crossAxis),n=o.reference[c]+o.reference[e]+(t?0:(null==(_=a.offset)?void 0:_[c])||0)-(t?w.crossAxis:0);y<r?y=r:y>n&&(y=n)}return{[h]:v,[c]:y}}}}(e),options:[e,t]}),eb=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n,i,o,a;let{placement:s,middlewareData:l,rects:u,initialPlacement:d,platform:c,elements:w}=t,{mainAxis:x=!0,crossAxis:_=!0,fallbackPlacements:E,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:P=!0,...T}=f(e,t);if(null!=(r=l.arrow)&&r.alignmentOffset)return{};let j=p(s),A=g(d),R=p(d)===d,M=await (null==c.isRTL?void 0:c.isRTL(w.floating)),O=E||(R||!P?[b(d)]:function(e){let t=b(e);return[y(e),t,y(t)]}(d)),D="none"!==k;!E&&D&&O.push(...function(e,t,r,n){let i=h(e),o=function(e,t,r){let n=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(r)return t?i:n;return t?n:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(p(e),"start"===r,n);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(y)))),o}(d,P,k,M));let N=[d,...O],I=await S(t,T),L=[],F=(null==(n=l.flip)?void 0:n.overflows)||[];if(x&&L.push(I[j]),_){let e=function(e,t,r){void 0===r&&(r=!1);let n=h(e),i=m(g(e)),o=v(i),a="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=b(a)),[a,b(a)]}(s,u,M);L.push(I[e[0]],I[e[1]])}if(F=[...F,{placement:s,overflows:L}],!L.every(e=>e<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=N[e];if(t)return{data:{index:e,overflows:F},reset:{placement:t}};let r=null==(o=F.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!r)switch(C){case"bestFit":{let e=null==(a=F.filter(e=>{if(D){let t=g(e.placement);return t===A||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>
1e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(r=e);break}case"initialPlacement":r=d}if(s!==r)return{reset:{placement:r}}}return{}}}}(e),options:[e,t]}),ew=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;let i,s,{placement:l,rects:u,platform:d,elements:c}=t,{apply:m=()=>{},...v}=f(e,t),y=await S(t,v),b=p(l),w=h(l),x="y"===g(l),{width:_,height:E}=u.floating;"top"===b||"bottom"===b?(i=b,s=w===(await (null==d.isRTL?void 0:d.isRTL(c.floating))?"start":"end")?"left":"right"):(s=b,i="end"===w?"top":"bottom");let C=E-y.top-y.bottom,k=_-y.left-y.right,P=o(E-y[i],C),T=o(_-y[s],k),j=!t.middlewareData.shift,A=P,R=T;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(R=k),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(A=C),j&&!w){let e=a(y.left,0),t=a(y.right,0),r=a(y.top,0),n=a(y.bottom,0);x?R=_-2*(0!==e||0!==t?e+t:a(y.left,y.right)):A=E-2*(0!==r||0!==n?r+n:a(y.top,y.bottom))}await m({...t,availableWidth:R,availableHeight:A});let M=await d.getDimensions(c.floating);return _!==M.width||E!==M.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}),ex=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:n="referenceHidden",...i}=f(e,t);switch(n){case"referenceHidden":{let e=C(await S(t,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:k(e)}}}case"escaped":{let e=C(await S(t,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:k(e)}}}default:return{}}}}}(e),options:[e,t]}),e_=(e,t)=>({...em(e),options:[e,t]});var eE=r(4824),eS=r(44189),eC=n.forwardRef((e,t)=>{let{children:r,width:n=10,height:i=5,...o}=e;return(0,eS.jsx)(eE.sG.svg,{...o,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,eS.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eC.displayName="Arrow";var ek=r(8670),eP=r(12502),eT=r(6209),ej=r(95193),eA=r(31597),eR="Popper",[eM,eO]=(0,eP.A)(eR),[eD,eN]=eM(eR),eI=e=>{let{__scopePopper:t,children:r}=e,[i,o]=n.useState(null);return(0,eS.jsx)(eD,{scope:t,anchor:i,onAnchorChange:o,children:r})};eI.displayName=eR;var eL="PopperAnchor",eF=n.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:i,...o}=e,a=eN(eL,r),s=n.useRef(null),l=(0,ek.s)(t,s);return n.useEffect(()=>{a.onAnchorChange((null==i?void 0:i.current)||s.current)}),i?null:(0,eS.jsx)(eE.sG.div,{...o,ref:l})});eF.displayName=eL;var eV="PopperContent",[eB,ez]=eM(eV),eW=n.forwardRef((e,t)=>{var r,i,s,u,d,c,f,p;let{__scopePopper:h,side:m="bottom",sideOffset:v=0,align:g="center",alignOffset:y=0,arrowPadding:b=0,avoidCollisions:w=!0,collisionBoundary:x=[],collisionPadding:_=0,sticky:E="partial",hideWhenDetached:S=!1,updatePositionStrategy:C="optimized",onPlaced:k,...P}=e,T=eN(eV,h),[j,A]=n.useState(null),M=(0,ek.s)(t,e=>A(e)),[O,D]=n.useState(null),N=(0,eA.X)(O),I=null!==(f=null==N?void 0:N.width)&&void 0!==f?f:0,L=null!==(p=null==N?void 0:N.height)&&void 0!==p?p:0,F="number"==typeof _?_:{top:0,right:0,bottom:0,left:0,..._},V=Array.isArray(x)?x:[x],B=V.length>0,z={padding:F,boundary:V.filter(e$),altBoundary:B},{refs:W,floatingStyles:U,placement:Z,isPositioned:$,middlewareData:K}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:i=[],platform:o,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:d}=e,[c,f]=n.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=n.useState(i);ec(p,i)||h(i);let[m,v]=n.useState(null),[g,y]=n.useState(null),b=n.useCallback(e=>{e!==E.current&&(E.current=e,v(e))},[]),w=n.useCallback(e=>{e!==S.current&&(S.current=e,y(e))},[]),x=a||m,_=s||g,E=n.useRef(null),S=n.useRef(null),C=n.useRef(c),k=null!=u,P=eh(u),T=eh(o),j=eh(d),A=n.useCallback(()=>{if(!E.current||!S.current)return;let e={placement:t,strategy:r,middleware:p};T.current&&(e.platform=T.current),el(E.current,S.current,e).then(e=>{let t={...e,isPositioned:!1!==j.current};R.current&&!ec(C.current,t)&&(C.current=t,eu.flushSync(()=>{f(t)}))})},[p,t,r,T,j]);ed(()=>{!1===d&&C.current.isPositioned&&(C.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[d]);let R=n.useRef(!1);ed(()=>(R.current=!0,()=>{R.current=!1}),[]),ed(()=>
1{if(x&&(E.current=x),_&&(S.current=_),x&&_){if(P.current)return P.current(x,_,A);A()}},[x,_,A,P,k]);let M=n.useMemo(()=>({reference:E,floating:S,setReference:b,setFloating:w}),[b,w]),O=n.useMemo(()=>({reference:x,floating:_}),[x,_]),D=n.useMemo(()=>{let e={position:r,left:0,top:0};if(!O.floating)return e;let t=ep(O.floating,c.x),n=ep(O.floating,c.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...ef(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,l,O.floating,c.x,c.y]);return n.useMemo(()=>({...c,update:A,refs:M,elements:O,floatingStyles:D}),[c,A,M,O,D])}({strategy:"fixed",placement:m+("center"!==g?"-"+g:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,t,r,n){let i;void 0===n&&(n={});let{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:d="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:f=!1}=n,p=H(e),h=s||u?[...p?G(p):[],...G(t)]:[];h.forEach(e=>{s&&e.addEventListener("scroll",r,{passive:!0}),u&&e.addEventListener("resize",r)});let m=p&&c?function(e,t){let r,n=null,i=R(e);function s(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function u(d,c){void 0===d&&(d=!1),void 0===c&&(c=1),s();let f=e.getBoundingClientRect(),{left:p,top:h,width:m,height:v}=f;if(d||t(),!m||!v)return;let g=l(h),y=l(i.clientWidth-(p+m)),b={rootMargin:-g+"px "+-y+"px "+-l(i.clientHeight-(h+v))+"px "+-l(p)+"px",threshold:a(0,o(1,c))||1},w=!0;function x(t){let n=t[0].intersectionRatio;if(n!==c){if(!w)return u();n?u(!1,n):r=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==n||ea(f,e.getBoundingClientRect())||u(),w=!1}try{n=new IntersectionObserver(x,{...b,root:i.ownerDocument})}catch(e){n=new IntersectionObserver(x,b)}n.observe(e)}(!0),s}(p,r):null,v=-1,g=null;d&&(g=new ResizeObserver(e=>{let[n]=e;n&&n.target===p&&g&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),r()}),p&&!f&&g.observe(p),g.observe(t));let y=f?X(e):null;return f&&function t(){let n=X(e);y&&!ea(y,n)&&r(),y=n,i=requestAnimationFrame(t)}(),r(),()=>{var e;h.forEach(e=>{s&&e.removeEventListener("scroll",r),u&&e.removeEventListener("resize",r)}),null==m||m(),null==(e=g)||e.disconnect(),g=null,f&&cancelAnimationFrame(i)}}(...t,{animationFrame:"always"===C})},elements:{reference:T.anchor},middleware:[ev({mainAxis:v+L,alignmentAxis:y}),w&&eg({mainAxis:!0,crossAxis:!1,limiter:"partial"===E?ey():void 0,...z}),w&&eb({...z}),ew({...z,apply:e=>{let{elements:t,rects:r,availableWidth:n,availableHeight:i}=e,{width:o,height:a}=r.reference,s=t.floating.style;s.setProperty("--radix-popper-available-width","".concat(n,"px")),s.setProperty("--radix-popper-available-height","".concat(i,"px")),s.setProperty("--radix-popper-anchor-width","".concat(o,"px")),s.setProperty("--radix-popper-anchor-height","".concat(a,"px"))}}),O&&e_({element:O,padding:b}),eH({arrowWidth:I,arrowHeight:L}),S&&ex({strategy:"referenceHidden",...z})]}),[q,Y]=eK(Z),J=(0,eT.c)(k);(0,ej.N)(()=>{$&&(null==J||J())},[$,J]);let Q=null===(r=K.arrow)||void 0===r?void 0:r.x,ee=null===(i=K.arrow)||void 0===i?void 0:i.y,et=(null===(s=K.arrow)||void 0===s?void 0:s.centerOffset)!==0,[er,en]=n.useState();return(0,ej.N)(()=>{j&&en(window.getComputedStyle(j).zIndex)},[j]),(0,eS.jsx)("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:$?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:er,"--radix-popper-transform-origin":[null===(u=K.transformOrigin)||void 0===u?void 0:u.x,null===(d=K.transformOrigin)||void 0===d?void 0:d.y].join(" "),...(null===(c=K.hide)||void 0===c?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eS.jsx)(eB,{scope:h,placedSide:q,onArrowChange:D,arrowX:Q,arrowY:ee,shouldHideArrow:et,children:(0,eS.jsx)(eE.sG.div,{"data-side":q,"data-align":Y,...P,ref:M,style:{...P.style,animation:$?void 0:"none"}})})})});eW.displayName=eV;var eU="PopperArrow",eG={top:"bottom",right:"left",bottom:"top",left:"right"},eZ=n.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,i=ez(eU,r),o=eG[i.placedSide];return(0,eS.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,eS.jsx)(eC,{...n,ref:t,style:{...n.style,display:"block"}})})});function e$(e){return null!==e}eZ.displayName=eU;var eH=e=>({name:"transformOrigin",options:e,fn(t){var r,n,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,d=(null===(r=u.arrow)||void 0===r?void 0:r.centerOffset)!==0,c=d?0:e.arrowWidth,f=d?0:e.arrowHeight,[p,h]=eK(s),m={start:"0%",center:"50%",end:"100%"}[h],v=(null!==(o=null===(n=u.arrow)||void 0===n?void 0:n.x)&&void 0!==o?o:0)+c/2,g=(null!==(a=null===(i=u.arrow)||void 0===i?void 0:i.y)&&void 0!==a?a:0)+f/2,y="",b="";return"bottom"===p?(y=d?m:"".concat(v,"px"),b="".concat(-f,"px")):"top"===p?(y=d?m:"".concat(v,"px"),b="".concat(l.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),b=d?m:"".concat(g,"px")):"left"===p&&(y="".concat(l.floating.width+f,"px"),b=d?m:"".concat(g,"px")),{data:{x:y,y:b}}}});function eK(e){let[t,r="center"]=e.split("-");return[t,r]}var eq=eI,eY=eF,eX=eW,eJ=eZ},37121:(e,t,r)=>{r.d(t,{q7:()=>F,bL:()=>L,RG:()=>T});var n,i=r(47049),o=r(74053),a=r(63895),s=r(13769),l=r(90440),u=r(2373),d=r(63783),c=r(88725),f=r(44189),p=new WeakMap;function h(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=function(e,t){let r=e.length,n=m(t),i=n>=0?n:r+n;return i<0||i>=r?-1:i}(e,t);return -1===r?void 0:e[r]}function m(e){return e!=e||0===e?0:Math.trunc(e)}n=new WeakMap;var v=r(44926),g=r(21913),y=r(47766),b=r(79242),w=r(57438),x="rovingFocusGroup.onEntryFocus",_={bubbles:!1,cancelable:!0},E="RovingFocusGroup",[S,C,k]=function(e){let t=e+"CollectionProvider",[r,n]=(0,u.A)(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:r}=e,n=i.useRef(null),a=i.useRef(new Map).current;return(0,f.jsx)(o,{scope:t,itemMap:a,collectionRef:n,children:r})};s.displayName=t;let l=e+"CollectionSlot",p=(0,c.TL)(l),h=i.forwardRef((e,t)=>
1{let{scope:r,children:n}=e,i=a(l,r),o=(0,d.s)(t,i.collectionRef);return(0,f.jsx)(p,{ref:o,children:n})});h.displayName=l;let m=e+"CollectionItemSlot",v="data-radix-collection-item",g=(0,c.TL)(m),y=i.forwardRef((e,t)=>{let{scope:r,children:n,...o}=e,s=i.useRef(null),l=(0,d.s)(t,s),u=a(m,r);return i.useEffect(()=>(u.itemMap.set(s,{ref:s,...o}),()=>void u.itemMap.delete(s))),(0,f.jsx)(g,{[v]:"",ref:l,children:n})});return y.displayName=m,[{Provider:s,Slot:h,ItemSlot:y},function(t){let r=a(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(v,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}(E),[P,T]=(0,u.A)(E,[k]),[j,A]=P(E),R=i.forwardRef((e,t)=>(0,f.jsx)(S.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(S.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(M,{...e,ref:t})})}));R.displayName=E;var M=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:n,loop:a=!1,dir:s,currentTabStopId:l,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:c,onEntryFocus:p,preventScrollOnEntryFocus:h=!1,...m}=e,v=i.useRef(null),S=(0,d.s)(t,v),k=(0,w.jH)(s),[P,T]=(0,b.i)({prop:l,defaultProp:null!=u?u:null,onChange:c,caller:E}),[A,R]=i.useState(!1),M=(0,y.c)(p),O=C(r),D=i.useRef(!1),[N,L]=i.useState(0);return i.useEffect(()=>{let e=v.current;if(e)return e.addEventListener(x,M),()=>e.removeEventListener(x,M)},[M]),(0,f.jsx)(j,{scope:r,orientation:n,dir:k,loop:a,currentTabStopId:P,onItemFocus:i.useCallback(e=>T(e),[T]),onItemShiftTab:i.useCallback(()=>R(!0),[]),onFocusableItemAdd:i.useCallback(()=>L(e=>e+1),[]),onFocusableItemRemove:i.useCallback(()=>L(e=>e-1),[]),children:(0,f.jsx)(g.sG.div,{tabIndex:A||0===N?-1:0,"data-orientation":n,...m,ref:S,style:{outline:"none",...e.style},onMouseDown:(0,o.m)(e.onMouseDown,()=>{D.current=!0}),onFocus:(0,o.m)(e.onFocus,e=>{let t=!D.current;if(e.target===e.currentTarget&&t&&!A){let t=new CustomEvent(x,_);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=O().filter(e=>e.focusable);I([e.find(e=>e.active),e.find(e=>e.id===P),...e].filter(Boolean).map(e=>e.ref.current),h)}}D.current=!1}),onBlur:(0,o.m)(e.onBlur,()=>R(!1))})})}),O="RovingFocusGroupItem",D=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:n=!0,active:a=!1,tabStopId:s,children:l,...u}=e,d=(0,v.B)(),c=s||d,p=A(O,r),h=p.currentTabStopId===c,m=C(r),{onFocusableItemAdd:y,onFocusableItemRemove:b,currentTabStopId:w}=p;return i.useEffect(()=>{if(n)return y(),()=>b()},[n,y,b]),(0,f.jsx)(S.ItemSlot,{scope:r,id:c,focusable:n,active:a,children:(0,f.jsx)(g.sG.span,{tabIndex:h?0:-1,"data-orientation":p.orientation,...u,ref:t,onMouseDown:(0,o.m)(e.onMouseDown,e=>{n?p.onItemFocus(c):e.preventDefault()}),onFocus:(0,o.m)(e.onFocus,()=>p.onItemFocus(c)),onKeyDown:(0,o.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){p.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let i=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return N[i]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=p.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>I(r))}}),children:"function"==typeof l?l({isCurrentTabStop:h,hasTabStop:null!=w}):l})})});D.displayName=O;var N={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function I(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var L=R,F=D},37227:(e,t,r)=>{r.d(t,{B:()=>n});let n="undefined"!=typeof window},37895:(e,t,r)=>{r.d(t,{J:()=>a});var n=r(69870),i=r(61879),o=r(79992);function a(e,t){let r=(0,o.D)(e);return r!==i.p&&(r=n.f),r.getAnimatableNone?r.getAnimatableNone(t):void 0}},38572:(e,t,r)=>{r.d(t,{qW:()=>f});var n,i=r(47049),o=r(47998),a=r(4824),s=r(8670),l=r(6209),u=r(44189),d="dismissableLayer.update",c=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=i.forwardRef((e,t)=>
1{var r,f;let{disableOutsidePointerEvents:m=!1,onEscapeKeyDown:v,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:b,onDismiss:w,...x}=e,_=i.useContext(c),[E,S]=i.useState(null),C=null!==(f=null==E?void 0:E.ownerDocument)&&void 0!==f?f:null===(r=globalThis)||void 0===r?void 0:r.document,[,k]=i.useState({}),P=(0,s.s)(t,e=>S(e)),T=Array.from(_.layers),[j]=[..._.layersWithOutsidePointerEventsDisabled].slice(-1),A=T.indexOf(j),R=E?T.indexOf(E):-1,M=_.layersWithOutsidePointerEventsDisabled.size>0,O=R>=A,D=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,n=(0,l.c)(e),o=i.useRef(!1),a=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){h("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",a.current),a.current=t,r.addEventListener("click",a.current,{once:!0})):t()}else r.removeEventListener("click",a.current);o.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",a.current)}},[r,n]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,r=[..._.branches].some(e=>e.contains(t));!O||r||(null==g||g(e),null==b||b(e),e.defaultPrevented||null==w||w())},C),N=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,n=(0,l.c)(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!o.current&&h("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[..._.branches].some(e=>e.contains(t))||(null==y||y(e),null==b||b(e),e.defaultPrevented||null==w||w())},C);return!function(e,t=globalThis?.document){let r=(0,l.c)(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{R===_.layers.size-1&&(null==v||v(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))},C),i.useEffect(()=>{if(E)return m&&(0===_.layersWithOutsidePointerEventsDisabled.size&&(n=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),_.layersWithOutsidePointerEventsDisabled.add(E)),_.layers.add(E),p(),()=>{m&&1===_.layersWithOutsidePointerEventsDisabled.size&&(C.body.style.pointerEvents=n)}},[E,C,m,_]),i.useEffect(()=>()=>{E&&(_.layers.delete(E),_.layersWithOutsidePointerEventsDisabled.delete(E),p())},[E,_]),i.useEffect(()=>{let e=()=>k({});return document.addEventListener(d,e),()=>document.removeEventListener(d,e)},[]),(0,u.jsx)(a.sG.div,{...x,ref:P,style:{pointerEvents:M?O?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.m)(e.onFocusCapture,N.onFocusCapture),onBlurCapture:(0,o.m)(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:(0,o.m)(e.onPointerDownCapture,D.onPointerDownCapture)})});function p(){let e=new CustomEvent(d);document.dispatchEvent(e)}function h(e,t,r,n){let{discrete:i}=n,o=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),i?(0,a.hO)(o,s):o.dispatchEvent(s)}f.displayName="DismissableLayer",i.forwardRef((e,t)=>{let r=i.useContext(c),n=i.useRef(null),o=(0,s.s)(t,n);return i.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,u.jsx)(a.sG.div,{...e,ref:o})}).displayName="DismissableLayerBranch"},42181:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(42740)._(r(49213));function i(e,t){var r;let i={};"function"==typeof e&&(i.loader=e);let o={...i,...t};return(0,n.default)({...o,modules:null==(r=o.loadableGenerated)?void 0:r.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42287:(e,t,r)=>{function n(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(r=0;r<o;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}(e))&&(n&&(n+=" "),n+=t);return n}r.d(t,{$:()=>n,A:()=>i});let i=n},42459:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{html:t,height:r=null,width:o=null,children:a,dataNtpc:s=""}=e;return(0,i.useEffect)(()=>{s&&performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-".concat(s)}})},[s]),(0,n.jsxs)(n.Fragment,{children:[a,t?(0,n.jsx)("div",{style:{height:null!=r?"".concat(r,"px"):"auto",width:null!=o?"".concat(o,"px"):"auto"},"data-ntpc":s,dangerouslySetInnerHTML:{__html:t}}):null]})};let n=r(44189),i=r(47049)},42466:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i.a});var n=r(5115),i=r.n(n),o={};for(let e in n)"default"!==e&&(o[e]=()=>n[e]);r.d(t,o)},43574:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return r}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},44236:(e,t,r)=>{var n=r(37811);Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return v},defaultHead:function(){return f}});let i=r(42740),o=r(89425),a=r(44189),s=o._(r(47049)),l=i._(r(52133)),u=r(12832),d=r(55758),c=r(23368);function f(e){void 0===e&&(e=!1);let t=[(0,a.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function p(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===s.default.Fragment?e.concat(s.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(96382);let h=["name","httpEquiv","charSet","itemProp"];function m(e,t){let{inAmpMode:r}=t;return e.reduce(p,[]).reverse().concat(f(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return i=>{let o=!0,a=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){a=!0;let t=i.key.slice(i.key.indexOf("$")+1);e.has(t)?o=!1:e.add(t)}switch(i.type){case"title":case"base":t.has(i.type)?o=!1:t.add(i.type);break;case"meta":for(let e=0,t=h.length;e<t;e++){let t=h[e];if(i.props.hasOwnProperty(t))if("charSet"===t)r.has(t)?o=!1:r.add(t);else{let e=i.props[t],r=n[t]||new Set;("name"!==t||!a)&&r.has(e)?o=!1:(r.add(e),n[t]=r)}}}return o}}()).reverse().map((e,t)=>{let i=e.key||t;if(n.env.__NEXT_OPTIMIZE_FONTS&&!r&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,s.default.cloneElement(e,t)}return s.default.cloneElement(e,{key:i})})}let v=function(e){let{children:t}=e,r=(0,s.useContext)(u.AmpStateContext),n=(0,s.useContext)(d.HeadManagerContext);return(0,a.jsx)(l.default,{reduceComponentsToState:m,headManager:n,inAmpMode:(0,c.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},44529:(e,t,r)=>{r.d(t,{a:()=>n});let n=e=>Math.round(1e5*e)/1e5},44926:(e,t,r)=>{r.d(t,{B:()=>l});var n,i=r(47049),o=r(16800),a=(n||(n=r.t(i,2)))[" useId ".trim().toString()]||(()=>void 0),s=0;function l(e){let[t,r]=i.useState(a());return(0,o.N)(()=>{e||r(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},45911:(e,t,r)=>{r.d(t,{E:()=>i});var n=r(47049);let i=r(37227).B?n.useLayoutEffect:n.useEffect},46050:(e,t,r)=>{r.d(t,{p:()=>n});function n(e){let t;return()=>(void 0===t&&(t=e()),t)}},46334:(e,t,r)=>{r.d(t,{zu:()=>et});let n=e=>{let t=s(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{let r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),i(r,t)||a(e)},getConflictingClassGroupIds:(e,t)=>{let i=r[e]||[];return t&&n[e]?[...i,...n[e]]:i}}},i=(e,t)=>{if(0===e.length)return t.classGroupId;let r=e[0],n=t.nextPart.get(r),o=n?i(e.slice(1),n):void 0;if(o)return o;if(0===t.validators.length)return;let a=e.join("-");return t.validators.find(({validator:e})=>e(a))?.classGroupId},o=/^\[(.+)\]$/,a=e=>
1{if(o.test(e)){let t=o.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},s=e=>{let{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return c(Object.entries(e.classGroups),r).forEach(([e,r])=>{l(r,n,e,t)}),n},l=(e,t,r,n)=>{e.forEach(e=>{if("string"==typeof e){(""===e?t:u(t,e)).classGroupId=r;return}if("function"==typeof e){if(d(e)){l(e(n),t,r,n);return}t.validators.push({validator:e,classGroupId:r});return}Object.entries(e).forEach(([e,i])=>{l(i,u(t,e),r,n)})})},u=(e,t)=>{let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},d=e=>e.isThemeGetter,c=(e,t)=>t?e.map(([e,r])=>[e,r.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,r])=>[t+e,r])):e)]):e,f=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=new Map,n=new Map,i=(i,o)=>{r.set(i,o),++t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(i(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):i(e,t)}}},p=e=>{let{separator:t,experimentalParseClassName:r}=e,n=1===t.length,i=t[0],o=t.length,a=e=>{let r,a=[],s=0,l=0;for(let u=0;u<e.length;u++){let d=e[u];if(0===s){if(d===i&&(n||e.slice(u,u+o)===t)){a.push(e.slice(l,u)),l=u+o;continue}if("/"===d){r=u;continue}}"["===d?s++:"]"===d&&s--}let u=0===a.length?e:e.substring(l),d=u.startsWith("!"),c=d?u.substring(1):u;return{modifiers:a,hasImportantModifier:d,baseClassName:c,maybePostfixModifierPosition:r&&r>l?r-l:void 0}};return r?e=>r({className:e,parseClassName:a}):a},h=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)}),t.push(...r.sort()),t},m=e=>({cache:f(e.cacheSize),parseClassName:p(e),...n(e)}),v=/\s+/,g=(e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,o=[],a=e.trim().split(v),s="";for(let e=a.length-1;e>=0;e-=1){let t=a[e],{modifiers:l,hasImportantModifier:u,baseClassName:d,maybePostfixModifierPosition:c}=r(t),f=!!c,p=n(f?d.substring(0,c):d);if(!p){if(!f||!(p=n(d))){s=t+(s.length>0?" "+s:s);continue}f=!1}let m=h(l).join(":"),v=u?m+"!":m,g=v+p;if(o.includes(g))continue;o.push(g);let y=i(p,f);for(let e=0;e<y.length;++e){let t=y[e];o.push(v+t)}s=t+(s.length>0?" "+s:s)}return s};function y(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=b(e))&&(n&&(n+=" "),n+=t);return n}let b=e=>{let t;if("string"==typeof e)return e;let r="";for(let n=0;n<e.length;n++)e[n]&&(t=b(e[n]))&&(r&&(r+=" "),r+=t);return r};function w(e,...t){let r,n,i,o=function(s){return n=(r=m(t.reduce((e,t)=>t(e),e()))).cache.get,i=r.cache.set,o=a,a(s)};function a(e){let t=n(e);if(t)return t;let o=g(e,r);return i(e,o),o}return function(){return o(y.apply(null,arguments))}}let x=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},_=/^\[(?:([a-z-]+):)?(.+)\]$/i,E=/^\d+\/\d+$/,S=new Set(["px","full","screen"]),C=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,k=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,P=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,T=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,j=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,A=e=>M(e)||S.has(e)||E.test(e),R=e=>Z(e,"length",$),M=e=>!!e&&!Number.isNaN(Number(e)),O=e=>Z(e,"number",M),D=e=>!!e&&Number.isInteger(Number(e)),N=e=>e.endsWith("%")&&M(e.slice(0,-1)),I=e=>_.test(e),L=e=>C.test(e),F=new Set(["length","size","percentage"]),V=e=>Z(e,F,H),B=e=>Z(e,"position",H),z=new Set(["image","url"]),W=e=>Z(e,z,q),U=e=>Z(e,"",K),G=()=>!0,Z=(e,t,r)=>{let n=_.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))},$=e=>k.test(e)&&!P.test(e),H=()=>!1,K=e=>T.test(e),q=e=>j.test(e);Symbol.toStringTag;let Y=()=>{let e=x("colors"),t=x("spacing"),r=x("blur"),n=x("brightness"),i=x("borderColor"),o=x("borderRadius"),a=x("borderSpacing"),s=x("borderWidth"),l=x("contrast"),u=x("grayscale"),d=x("hueRotate"),c=x("invert"),f=x("gap"),p=x("gradientColorStops"),h=x("gradientColorStopPositions"),m=x("inset"),v=x("margin"),g=x("opacity"),y=x("padding"),b=x("saturate"),w=x("scale"),_=x("sepia"),E=x("skew"),S=x("space"),C=x("translate"),k=()=>["auto","contain","none"],P=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto",I,t],j=()=>[I,t],F=()=>["",A,R],z=()=>["auto",M,I],Z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>["start","end","center","between","around","evenly","stretch"],q=()=>["","0",I],Y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],X=()=>[M,I];return{cacheSize:500,separator:":",theme:{colors:[G],spacing:[A,R],blur:["none","",L,I],brightness:X(),borderColor:[e],borderRadius:["n
1one","","full",L,I],borderSpacing:j(),borderWidth:F(),contrast:X(),grayscale:q(),hueRotate:X(),invert:q(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[N,R],inset:T(),margin:T(),opacity:X(),padding:j(),saturate:X(),scale:X(),sepia:q(),skew:X(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",I]}],container:["container"],columns:[{columns:[L]}],"break-after":[{"break-after":Y()}],"break-before":[{"break-before":Y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Z(),I]}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",D,I]}],basis:[{basis:T()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",I]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",D,I]}],"grid-cols":[{"grid-cols":[G]}],"col-start-end":[{col:["auto",{span:["full",D,I]},I]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[G]}],"row-start-end":[{row:["auto",{span:[D,I]},I]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",I]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",I]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...K()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...K(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...K(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",I,t]}],"min-w":[{"min-w":[I,t,"min","max","fit"]}],"max-w":[{"max-w":[I,t,"none","full","min","max","fit","prose",{screen:[L]},L]}],h:[{h:[I,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[I,t,"auto","min","max","fit"]}],"font-size":[{text:["base",L,R]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",O]}],"font-family":[{font:[G]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",I]}],"line-clamp":[{"line-clamp":["none",M,O]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",A,I]}],"list-image":[{"list-image":["none",I]}],"list-style-type":[{list:["none","disc","decimal",I]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",A,R]}],"underline-offset":[{"underline-offset":["auto",A,I]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Z(),B]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",V]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},W]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}
vendor: 5,162 bytes, line 1
1],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:$()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[A,I]}],"outline-w":[{outline:[A,R]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[A,R]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",L,U]}],"shadow-color":[{shadow:[G]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...H(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":H()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",L,I]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[c]}],saturate:[{saturate:[b]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",I]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",I]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",I]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[D,I]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",I]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",I]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
1],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",I]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[A,R,O]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},X=(e,{cacheSize:t,prefix:r,separator:n,experimentalParseClassName:i,extend:o={},override:a={}})=>{for(let o in J(e,"cacheSize",t),J(e,"prefix",r),J(e,"separator",n),J(e,"experimentalParseClassName",i),a)Q(e[o],a[o]);for(let t in o)ee(e[t],o[t]);return e},J=(e,t,r)=>{void 0!==r&&(e[t]=r)},Q=(e,t)=>{if(t)for(let r in t)J(e,r,t[r])},ee=(e,t)=>{if(t)for(let r in t){let n=t[r];void 0!==n&&(e[r]=(e[r]||[]).concat(n))}},et=(e,...t)=>"function"==typeof e?w(Y,e,...t):w(()=>X(Y(),e),...t)},46718:function(e,t,r){var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleMapsEmbed=void 0;let o=i(r(47465)),a=r(66969);t.GoogleMapsEmbed=e=>{var t=n(e,[]);return(0,a.formatData)(o.default,t)}},47465:e=>{e.exports=JSON.parse('{"id":"google-maps-embed","description":"Embed a Google Maps embed on your webpage","website":"https://developers.google.com/maps/documentation/embed/get-started","html":{"element":"iframe","attributes":{"loading":"lazy","src":{"url":"https://www.google.com/maps/embed/v1/place","slugParam":"mode","params":["key","q","center","zoom","maptype","language","regi
1on"]},"referrerpolicy":"no-referrer-when-downgrade","frameborder":"0","style":"border:0","allowfullscreen":true,"width":null,"height":null}}}')},47663:(e,t,r)=>{r.d(t,{jH:()=>o});var n=r(47049);r(44189);var i=n.createContext(void 0);function o(e){let t=n.useContext(i);return e||t||"ltr"}},47766:(e,t,r)=>{r.d(t,{c:()=>i});var n=r(47049);function i(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},47998:(e,t,r)=>{r.d(t,{m:()=>n});function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}},48611:(e,t,r)=>{r.d(t,{W:()=>n});let n={skipAnimations:!1,useManualTiming:!1}},48742:(e,t,r)=>{r.d(t,{j:()=>C});var n=r(85838),i=r(69743);function o(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}var a=r(49899),s=r(36660),l=r(76248);function u(e,t){return r=>r>0?t:e}let d=(e,t,r)=>{let n=e*e,i=r*(t*t-n)+n;return i<0?0:Math.sqrt(i)},c=[a.u,s.B,l.V],f=e=>c.find(t=>t.test(e));function p(e){let t=f(e);
1if((0,i.$)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let r=t.parse(e);return t===l.V&&(r=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,a=0,s=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,l=2*r-n;i=o(l,n,e+1/3),a=o(l,n,e),s=o(l,n,e-1/3)}else i=a=s=r;return{red:Math.round(255*i),green:Math.round(255*a),blue:Math.round(255*s),alpha:n}}(r)),r}let h=(e,t)=>{let r=p(e),i=p(t);if(!r||!i)return u(e,t);let o={...r};return e=>(o.red=d(r.red,i.red,e),o.green=d(r.green,i.green,e),o.blue=d(r.blue,i.blue,e),o.alpha=(0,n.k)(r.alpha,i.alpha,e),s.B.transform(o))};var m=r(98904),v=r(27716),g=r(69870),y=r(89811);let b=new Set(["none","hidden"]);function w(e,t){return r=>(0,n.k)(e,t,r)}function x(e){return"number"==typeof e?w:"string"==typeof e?(0,y.p)(e)?u:v.y.test(e)?h:S:Array.isArray(e)?_:"object"==typeof e?v.y.test(e)?h:E:u}function _(e,t){let r=[...e],n=r.length,i=e.map((e,r)=>x(e)(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=i[t](e);return r}}function E(e,t){let r={...e,...t},n={};for(let i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=x(e[i])(e[i],t[i]));return e=>{for(let t in n)r[t]=n[t](e);return r}}let S=(e,t)=>{let r=g.f.createTransformer(t),n=(0,g.V)(e),o=(0,g.V)(t);return n.indexes.var.length===o.indexes.var.length&&n.indexes.color.length===o.indexes.color.length&&n.indexes.number.length>=o.indexes.number.length?b.has(e)&&!o.values.length||b.has(t)&&!n.values.length?function(e,t){return b.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}(e,t):(0,m.F)(_(function(e,t){var r;let n=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){let a=t.types[o],s=e.indexes[a][i[a]],l=null!==(r=e.values[s])&&void 0!==r?r:0;n[o]=l,i[a]++}return n}(n,o),o.values),r):((0,i.$)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),u(e,t))};function C(e,t,r){return"number"==typeof e&&"number"==typeof t&&"number"==typeof r?(0,n.k)(e,t,r):x(e)(e,t)}},49213:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let n=r(44189),i=r(47049),o=r(34946);function a(e){return{default:e&&"default"in e?e.default:e}}r(64047);let s={loader:()=>Promise.resolve(a(()=>null)),loading:null,ssr:!0},l=function(e){let t={...s,...e},r=(0,i.lazy)(()=>t.loader().then(a)),l=t.loading;function u(e){let a=l?(0,n.jsx)(l,{isLoading:!0,pastDelay:!0,error:null}):null,s=!t.ssr||!!t.loading,u=s?i.Suspense:i.Fragment,d=t.ssr?(0,n.jsxs)(n.Fragment,{children:[null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(o.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(u,{...s?{fallback:a}:{},children:d})}return u.displayName="LoadableComponent",u}},49577:(e,t,r)=>{r.d(t,{I:()=>n});let n=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},49899:(e,t,r)=>{r.d(t,{u:()=>i});var n=r(36660);let i={test:(0,r(26284).$)("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:n.B.transform}},51019:(e,t,r)=>{r.d(t,{X4:()=>o,ai:()=>i,hs:()=>a});var n=r(70767);let i={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},o={...i,transform:e=>(0,n.q)(0,1,e)},a={...i,default:1}},51247:(e,t,r)=>{var n=r(51031);r.o(n,"useParams")&&r.d(t,{useParams:function(){return n.useParams}}),r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},51974:(e,t,r)=>{r.d(t,{GP:()=>F});let n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function i(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}let o={date:i({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:i({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:i({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function s(e){return(t,r)=>{let n;if("formatting"===((null==r?void 0:r.context)?String(r.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,i=(null==r?void 0:r.width)?String(r.width):t;n=e.formattingValues[i]||e.formattingValues[t]}else{let t=e.defaultWidth,i=(null==r?void 0:r.width)?String(r.width):e.defaultWidth;n=e.values[i]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}function l(e){return function(t){let r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;let s=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}(l,e=>e.test(s)):function(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}(l,e=>e.test(s));return r=e.valueCallback?e.valueCallback(u):u,{value:r=n.valueCallback?n.valueCallback(r):r,rest:t.slice(s.length)}}}let u={code:"en-US",formatDistance:(e,t,r)=>{let i,o=n[e];if(i="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null==r?void 0:r.addSuffix)if(r.comparison&&r.comparison>0)return"in "+i;else return i+" ago";return i},formatLong:o,formatRelative:(e,t,r,n)=>a[e],localize:{ordinalNumber:(e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:s({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:s({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:s({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function(e){return function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;let i=n[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:a=r.valueCallback?r.valueCallback(a):a,rest:t.slice(i.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:l({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:l({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:l({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:l({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:l({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},d={},c=Symbol.for("constructDateFrom");function f(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&c in e?e[c](t):e instanceof Date?new e.constructor(t):new Date(t)}function p(e,t){return f(t||e,e)}function h(e){let t=p(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function m(e,t){let r=p(e,null==t?void 0:t.in);return r.setHours(0,0,0,0),r}function v(e,t){var r,n,i,o,a,s,l,u;let c=null!==(u=null!==(l=null!==(s=null!==(a=null==t?void 0:t.weekStartsOn)&&void 0!==a?a:null==t?void 0:null===(n=t.locale)||void 0===n?void 0:null===(r=n.options)||void 0===r?void 0:r.weekStartsOn)&&void 0!==s?s:d.weekStartsOn)&&void 0!==l?l:null===(o=d.locale)||void 0===o?void 0:null===(i=o.options)||void 0===i?void 0:i.weekStartsOn)&&void 0!==u?u:0,f=p(e,null==t?void 0:t.in),h=f.getDay();return f.setDate(f.getDate()-(7*(h<c)+h-c)),f.setHours(0,0,0,0),f}function g(e,t){return v(e,{...t,weekStartsOn:1}
1)}function y(e,t){let r=p(e,null==t?void 0:t.in),n=r.getFullYear(),i=f(r,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);let o=g(i),a=f(r,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);let s=g(a);return r.getTime()>=o.getTime()?n+1:r.getTime()>=s.getTime()?n:n-1}function b(e,t){var r,n,i,o,a,s,l,u;let c=p(e,null==t?void 0:t.in),h=c.getFullYear(),m=null!==(u=null!==(l=null!==(s=null!==(a=null==t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null==t?void 0:null===(n=t.locale)||void 0===n?void 0:null===(r=n.options)||void 0===r?void 0:r.firstWeekContainsDate)&&void 0!==s?s:d.firstWeekContainsDate)&&void 0!==l?l:null===(o=d.locale)||void 0===o?void 0:null===(i=o.options)||void 0===i?void 0:i.firstWeekContainsDate)&&void 0!==u?u:1,g=f((null==t?void 0:t.in)||e,0);g.setFullYear(h+1,0,m),g.setHours(0,0,0,0);let y=v(g,t),b=f((null==t?void 0:t.in)||e,0);b.setFullYear(h,0,m),b.setHours(0,0,0,0);let w=v(b,t);return+c>=+y?h+1:+c>=+w?h:h-1}function w(e,t){let r=Math.abs(e).toString().padStart(t,"0");return(e<0?"-":"")+r}let x={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return w("yy"===t?n%100:n,t.length)},M(e,t){let r=e.getMonth();return"M"===t?String(r+1):w(r+1,2)},d:(e,t)=>w(e.getDate(),t.length),a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>w(e.getHours()%12||12,t.length),H:(e,t)=>w(e.getHours(),t.length),m:(e,t)=>w(e.getMinutes(),t.length),s:(e,t)=>w(e.getSeconds(),t.length),S(e,t){let r=t.length;return w(Math.trunc(e.getMilliseconds()*Math.pow(10,r-3)),t.length)}},_={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},E={G:function(e,t,r){let n=+(e.getFullYear()>0);switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){let t=e.getFullYear();return r.ordinalNumber(t>0?t:1-t,{unit:"year"})}return x.y(e,t)},Y:function(e,t,r,n){let i=b(e,n),o=i>0?i:1-i;return"YY"===t?w(o%100,2):"Yo"===t?r.ordinalNumber(o,{unit:"year"}):w(o,t.length)},R:function(e,t){return w(y(e),t.length)},u:function(e,t){return w(e.getFullYear(),t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return w(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return w(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return x.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return w(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let i=function(e,t){let r=p(e,null==t?void 0:t.in);return Math.round((+v(r,t)-+function(e,t){var r,n,i,o,a,s,l,u;let c=null!==(u=null!==(l=null!==(s=null!==(a=null==t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null==t?void 0:null===(n=t.locale)||void 0===n?void 0:null===(r=n.options)||void 0===r?void 0:r.firstWeekContainsDate)&&void 0!==s?s:d.firstWeekContainsDate)&&void 0!==l?l:null===(o=d.locale)||void 0===o?void 0:null===(i=o.options)||void 0===i?void 0:i.firstWeekContainsDate)&&void 0!==u?u:1,p=b(e,t),h=f((null==t?void 0:t.in)||e,0);return h.setFullYear(p,0,c),h.setHours(0,0,0,0),v(h,t)}(r,t))/6048e5)+1}(e,n);return"wo"===t?r.ordinalNumber(i,{unit:"week"}):w(i,t.length)},I:function(e,t,r){let n=function(e,t){let r=p(e,void 0);return Math.round((+g(r)-+function(e,t){let r=y(e,void 0),n=f(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),g(n)}(r))/6048e5)+1}(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):w(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):x.d(e,t)},D:function(e,t,r){let n=function(e,t){let r=p(e,void 0);return function(e,t,r){let[n,i]=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];let i=f.bind(null,e||r.find(e=>"object"==typeof e));return r.map(i)}(void 0,e,t),o=m(n),a=m(i);return Math.round((+o-h(o)-(+a-h(a)))/864e5)}(r,function(e,t){let r=p(e,void 0);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}(r))+1}(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):w(n,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return w(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){let i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return w(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return w(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n,i=e.getHours();switch(n=12===i?_.noon:0===i?_.midnight:i/12>
1=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n,i=e.getHours();switch(n=i>=17?_.evening:i>=12?_.afternoon:i>=4?_.morning:_.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return x.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):x.H(e,t)},K:function(e,t,r){let n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):w(n,t.length)},k:function(e,t,r){let n=e.getHours();return(0===n&&(n=24),"ko"===t)?r.ordinalNumber(n,{unit:"hour"}):w(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):x.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):x.s(e,t)},S:function(e,t){return x.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return C(n);case"XXXX":case"XX":return k(n);default:return k(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return C(n);case"xxxx":case"xx":return k(n);default:return k(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+S(n,":");default:return"GMT"+k(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+S(n,":");default:return"GMT"+k(n,":")}},t:function(e,t,r){return w(Math.trunc(+e/1e3),t.length)},T:function(e,t,r){return w(+e,t.length)}};function S(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e>0?"-":"+",n=Math.abs(e),i=Math.trunc(n/60),o=n%60;return 0===o?r+String(i):r+String(i)+t+w(o,2)}function C(e,t){return e%60==0?(e>0?"-":"+")+w(Math.abs(e)/60,2):k(e,t)}function k(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=Math.abs(e);return(e>0?"-":"+")+w(Math.trunc(r/60),2)+t+w(r%60,2)}let P=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},T=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},j={p:T,P:(e,t)=>{let r,n=e.match(/(P+)(p+)?/)||[],i=n[1],o=n[2];if(!o)return P(e,t);switch(i){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",P(i,t)).replace("{{time}}",T(o,t))}},A=/^D+$/,R=/^Y+$/,M=["D","DD","YY","YYYY"],O=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,D=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,N=/^'([^]*?)'?$/,I=/''/g,L=/[a-zA-Z]/;function F(e,t,r){var n,i,o,a,s,l,c,f,h,m,v,g,y,b,w,x,_,S;let C=null!==(m=null!==(h=null==r?void 0:r.locale)&&void 0!==h?h:d.locale)&&void 0!==m?m:u,k=null!==(b=null!==(y=null!==(g=null!==(v=null==r?void 0:r.firstWeekContainsDate)&&void 0!==v?v:null==r?void 0:null===(i=r.locale)||void 0===i?void 0:null===(n=i.options)||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==g?g:d.firstWeekContainsDate)&&void 0!==y?y:null===(a=d.locale)||void 0===a?void 0:null===(o=a.options)||void 0===o?void 0:o.firstWeekContainsDate)&&void 0!==b?b:1,P=null!==(S=null!==(_=null!==(x=null!==(w=null==r?void 0:r.weekStartsOn)&&void 0!==w?w:null==r?void 0:null===(l=r.locale)||void 0===l?void 0:null===(s=l.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==x?x:d.weekStartsOn)&&void 0!==_?_:null===(f=d.locale)||void 0===f?void 0:null===(c=f.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==S?S:0,T=p(e,null==r?void 0:r.in);if(!(T instanceof Date||"object"==typeof T&&"[object Date]"===Object.prototype.toString.call(T))&&"number"!=typeof T||isNaN(+p(T)))throw RangeError("Invalid time value");let F=t.match(D).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,j[t])(e,C.formatLong):e}).join("").match(O).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t)return{isToken:!1,value:function(e){let t=e.match(N);return t?t[1].replace(I,"'"):e}(e)};if(E[t])return{isToken:!0,value:e};
1if(t.match(L))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});C.localize.preprocessor&&(F=C.localize.preprocessor(T,F));let V={firstWeekContainsDate:k,weekStartsOn:P,locale:C};return F.map(n=>{if(!n.isToken)return n.value;let i=n.value;if(!(null==r?void 0:r.useAdditionalWeekYearTokens)&&R.test(i)||!(null==r?void 0:r.useAdditionalDayOfYearTokens)&&A.test(i)){let r=function(e,t,r){let n="Y"===e[0]?"years":"days of the month";return"Use `".concat(e.toLowerCase(),"` instead of `").concat(e,"` (in `").concat(t,"`) for formatting ").concat(n," to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}(i,t,String(e));if(console.warn(r),M.includes(i))throw RangeError(r)}return(0,E[i[0]])(T,i,C.localize,V)}).join("")}},52133:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let n=r(47049),i=n.useLayoutEffect,o=n.useEffect;function a(e){let{headManager:t,reduceComponentsToState:r}=e;function a(){if(t&&t.mountedInstances){let i=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(i,e))}}return i(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),i(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),o(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},52238:(e,t,r)=>{r.d(t,{OQ:()=>d});var n=r(12661),i=r(4522),o=r(13937),a=r(62343);let s=e=>!isNaN(parseFloat(e)),l={current:void 0};class u{constructor(e,t={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let r=o.k.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=o.k.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=s(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new n.v);let r=this.events[e].add(t);return"change"===e?()=>{r(),a.Gt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return l.current&&l.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=o.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,i.f)(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function d(e,t){return new u(e,t)}},53608:(e,t,r)=>{r.d(t,{UC:()=>ea,Y9:()=>ei,q7:()=>en,bL:()=>er,l9:()=>eo});
1var n=r(47049),i=r(12502),o=r(56756),a=r(8670),s=r(47998),l=r(86349),u=r(4824),d=r(95193),c=r(17303),f=r(18497),p=r(44189),h="Collapsible",[m,v]=(0,i.A)(h),[g,y]=m(h),b=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,open:i,defaultOpen:o,disabled:a,onOpenChange:s,...d}=e,[c=!1,h]=(0,l.i)({prop:i,defaultProp:o,onChange:s});return(0,p.jsx)(g,{scope:r,disabled:a,contentId:(0,f.B)(),open:c,onOpenToggle:n.useCallback(()=>h(e=>!e),[h]),children:(0,p.jsx)(u.sG.div,{"data-state":C(c),"data-disabled":a?"":void 0,...d,ref:t})})});b.displayName=h;var w="CollapsibleTrigger",x=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,...n}=e,i=y(w,r);return(0,p.jsx)(u.sG.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":C(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...n,ref:t,onClick:(0,s.m)(e.onClick,i.onOpenToggle)})});x.displayName=w;var _="CollapsibleContent",E=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,i=y(_,e.__scopeCollapsible);return(0,p.jsx)(c.C,{present:r||i.open,children:e=>{let{present:r}=e;return(0,p.jsx)(S,{...n,ref:t,present:r})}})});E.displayName=_;var S=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,present:i,children:o,...s}=e,l=y(_,r),[c,f]=n.useState(i),h=n.useRef(null),m=(0,a.s)(t,h),v=n.useRef(0),g=v.current,b=n.useRef(0),w=b.current,x=l.open||c,E=n.useRef(x),S=n.useRef(void 0);return n.useEffect(()=>{let e=requestAnimationFrame(()=>E.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,d.N)(()=>{let e=h.current;if(e){S.current=S.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,b.current=t.width,E.current||(e.style.transitionDuration=S.current.transitionDuration,e.style.animationName=S.current.animationName),f(i)}},[l.open,i]),(0,p.jsx)(u.sG.div,{"data-state":C(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!x,...s,ref:m,style:{"--radix-collapsible-content-height":g?"".concat(g,"px"):void 0,"--radix-collapsible-content-width":w?"".concat(w,"px"):void 0,...e.style},children:x&&o})});function C(e){return e?"open":"closed"}var k=r(47663),P="Accordion",T=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[j,A,R]=(0,o.N)(P),[M,O]=(0,i.A)(P,[R,v]),D=v(),N=n.forwardRef((e,t)=>{let{type:r,...n}=e;return(0,p.jsx)(j.Provider,{scope:e.__scopeAccordion,children:"multiple"===r?(0,p.jsx)(z,{...n,ref:t}):(0,p.jsx)(B,{...n,ref:t})})});N.displayName=P;var[I,L]=M(P),[F,V]=M(P,{collapsible:!1}),B=n.forwardRef((e,t)=>{let{value:r,defaultValue:i,onValueChange:o=()=>{},collapsible:a=!1,...s}=e,[u,d]=(0,l.i)({prop:r,defaultProp:i,onChange:o});return(0,p.jsx)(I,{scope:e.__scopeAccordion,value:u?[u]:[],onItemOpen:d,onItemClose:n.useCallback(()=>a&&d(""),[a,d]),children:(0,p.jsx)(F,{scope:e.__scopeAccordion,collapsible:a,children:(0,p.jsx)(G,{...s,ref:t})})})}),z=n.forwardRef((e,t)=>{let{value:r,defaultValue:i,onValueChange:o=()=>{},...a}=e,[s=[],u]=(0,l.i)({prop:r,defaultProp:i,onChange:o}),d=n.useCallback(e=>u(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[u]),c=n.useCallback(e=>u(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[u]);return(0,p.jsx)(I,{scope:e.__scopeAccordion,value:s,onItemOpen:d,onItemClose:c,children:(0,p.jsx)(F,{scope:e.__scopeAccordion,collapsible:!0,children:(0,p.jsx)(G,{...a,ref:t})})})}),[W,U]=M(P),G=n.forwardRef((e,t)=>{let{__scopeAccordion:r,disabled:i,dir:o,orientation:l="vertical",...d}=e,c=n.useRef(null),f=(0,a.s)(c,t),h=A(r),m="ltr"===(0,k.jH)(o),v=(0,s.m)(e.onKeyDown,e=>{var t;if(!T.includes(e.key))return;let r=e.target,n=h().filter(e=>{var t;return!(null===(t=e.ref.current)||void 0===t?void 0:t.disabled)}),i=n.findIndex(e=>e.ref.current===r),o=n.length;if(-1===i)return;e.preventDefault();let a=i,s=o-1,u=()=>{(a=i+1)>s&&(a=0)},d=()=>{(a=i-1)<0&&(a=s)};switch(e.key){case"Home":a=0;break;case"End":a=s;break;case"ArrowRight":"horizontal"===l&&(m?u():d());break;case"ArrowDown":"vertical"===l&&u();break;case"ArrowLeft":"horizontal"===l&&(m?d():u());break;case"ArrowUp":"vertical"===l&&d()}null===(t=n[a%o].ref.current)||void 0===t||t.focus()});return(0,p.jsx)(W,{scope:r,disabled:i,direction:o,orientation:l,children:(0,p.jsx)(j.Slot,{scope:r,children:(0,p.jsx)(u.sG.div,{...d,"data-orientation":l,ref:f,onKeyDown:i?void 0:v})})})}),Z="AccordionItem",[$,H]=M(Z),K=n.forwardRef((e,t)=>
1{let{__scopeAccordion:r,value:n,...i}=e,o=U(Z,r),a=L(Z,r),s=D(r),l=(0,f.B)(),u=n&&a.value.includes(n)||!1,d=o.disabled||e.disabled;return(0,p.jsx)($,{scope:r,open:u,disabled:d,triggerId:l,children:(0,p.jsx)(b,{"data-orientation":o.orientation,"data-state":et(u),...s,...i,ref:t,disabled:d,open:u,onOpenChange:e=>{e?a.onItemOpen(n):a.onItemClose(n)}})})});K.displayName=Z;var q="AccordionHeader",Y=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=U(P,r),o=H(q,r);return(0,p.jsx)(u.sG.h3,{"data-orientation":i.orientation,"data-state":et(o.open),"data-disabled":o.disabled?"":void 0,...n,ref:t})});Y.displayName=q;var X="AccordionTrigger",J=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=U(P,r),o=H(X,r),a=V(X,r),s=D(r);return(0,p.jsx)(j.ItemSlot,{scope:r,children:(0,p.jsx)(x,{"aria-disabled":o.open&&!a.collapsible||void 0,"data-orientation":i.orientation,id:o.triggerId,...s,...n,ref:t})})});J.displayName=X;var Q="AccordionContent",ee=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=U(P,r),o=H(Q,r),a=D(r);return(0,p.jsx)(E,{role:"region","aria-labelledby":o.triggerId,"data-orientation":i.orientation,...a,...n,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=Q;var er=N,en=K,ei=Y,eo=J,ea=ee},53826:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(47049);function i(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},54161:(e,t,r)=>{r.d(t,{UC:()=>et,VY:()=>en,ZL:()=>Q,bL:()=>X,bm:()=>ei,hE:()=>er,hJ:()=>ee,l9:()=>J});var n=r(47049),i=r(47998),o=r(8670),a=r(12502),s=r(18497),l=r(86349),u=r(38572),d=r(56674),c=r(17460),f=r(17303),p=r(4824),h=r(16462),m=r(35592),v=r(77790),g=r(72195),y=r(44189),b="Dialog",[w,x]=(0,a.A)(b),[_,E]=w(b),S=e=>{let{__scopeDialog:t,children:r,open:i,defaultOpen:o,onOpenChange:a,modal:u=!0}=e,d=n.useRef(null),c=n.useRef(null),[f=!1,p]=(0,l.i)({prop:i,defaultProp:o,onChange:a});return(0,y.jsx)(_,{scope:t,triggerRef:d,contentRef:c,contentId:(0,s.B)(),titleId:(0,s.B)(),descriptionId:(0,s.B)(),open:f,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),modal:u,children:r})};S.displayName=b;var C="DialogTrigger",k=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=E(C,r),s=(0,o.s)(t,a.triggerRef);return(0,y.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Z(a.open),...n,ref:s,onClick:(0,i.m)(e.onClick,a.onOpenToggle)})});k.displayName=C;var P="DialogPortal",[T,j]=w(P,{forceMount:void 0}),A=e=>{let{__scopeDialog:t,forceMount:r,children:i,container:o}=e,a=E(P,t);return(0,y.jsx)(T,{scope:t,forceMount:r,children:n.Children.map(i,e=>(0,y.jsx)(f.C,{present:r||a.open,children:(0,y.jsx)(c.Z,{asChild:!0,container:o,children:e})}))})};A.displayName=P;var R="DialogOverlay",M=n.forwardRef((e,t)=>{let r=j(R,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=E(R,e.__scopeDialog);return o.modal?(0,y.jsx)(f.C,{present:n||o.open,children:(0,y.jsx)(O,{...i,ref:t})}):null});M.displayName=R;var O=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=E(R,r);return(0,y.jsx)(m.A,{as:g.DX,allowPinchZoom:!0,shards:[i.contentRef],children:(0,y.jsx)(p.sG.div,{"data-state":Z(i.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),D="DialogContent",N=n.forwardRef((e,t)=>{let r=j(D,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=E(D,e.__scopeDialog);return(0,y.jsx)(f.C,{present:n||o.open,children:o.modal?(0,y.jsx)(I,{...i,ref:t}):(0,y.jsx)(L,{...i,ref:t})})});N.displayName=D;var I=n.forwardRef((e,t)=>{let r=E(D,e.__scopeDialog),a=n.useRef(null),s=(0,o.s)(t,r.contentRef,a);return n.useEffect(()=>{let e=a.current;
1if(e)return(0,v.Eq)(e)},[]),(0,y.jsx)(F,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,i.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,i.m)(e.onFocusOutside,e=>e.preventDefault())})}),L=n.forwardRef((e,t)=>{let r=E(D,e.__scopeDialog),i=n.useRef(!1),o=n.useRef(!1);return(0,y.jsx)(F,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,a;null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented||(i.current||null===(a=r.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{var n,a;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let s=t.target;(null===(a=r.triggerRef.current)||void 0===a?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),F=n.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,...l}=e,c=E(D,r),f=n.useRef(null),p=(0,o.s)(t,f);return(0,h.Oh)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(d.n,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:s,children:(0,y.jsx)(u.qW,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Z(c.open),...l,ref:p,onDismiss:()=>c.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(q,{titleId:c.titleId}),(0,y.jsx)(Y,{contentRef:f,descriptionId:c.descriptionId})]})]})}),V="DialogTitle",B=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=E(V,r);return(0,y.jsx)(p.sG.h2,{id:i.titleId,...n,ref:t})});B.displayName=V;var z="DialogDescription",W=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=E(z,r);return(0,y.jsx)(p.sG.p,{id:i.descriptionId,...n,ref:t})});W.displayName=z;var U="DialogClose",G=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=E(U,r);return(0,y.jsx)(p.sG.button,{type:"button",...n,ref:t,onClick:(0,i.m)(e.onClick,()=>o.onOpenChange(!1))})});function Z(e){return e?"open":"closed"}G.displayName=U;var $="DialogTitleWarning",[H,K]=(0,a.q)($,{contentName:D,titleName:V,docsSlug:"dialog"}),q=e=>{let{titleId:t}=e,r=K($),i="`".concat(r.contentName,"` requires a `").concat(r.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(r.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(r.docsSlug);return n.useEffect(()=>{t&&!document.getElementById(t)&&console.error(i)},[i,t]),null},Y=e=>{let{contentRef:t,descriptionId:r}=e,i=K("DialogDescriptionWarning"),o="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(i.contentName,"}.");return n.useEffect(()=>{var e;let n=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");r&&n&&!document.getElementById(r)&&console.warn(o)},[o,t,r]),null},X=S,J=k,Q=A,ee=M,et=N,er=B,en=W,ei=G},56674:(e,t,r)=>{r.d(t,{n:()=>c});var n=r(47049),i=r(8670),o=r(4824),a=r(6209),s=r(44189),l="focusScope.autoFocusOnMount",u="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},c=n.forwardRef((e,t)=>{let{loop:r=!1,trapped:c=!1,onMountAutoFocus:v,onUnmountAutoFocus:g,...y}=e,[b,w]=n.useState(null),x=(0,a.c)(v),_=(0,a.c)(g),E=n.useRef(null),S=(0,i.s)(t,e=>w(e)),C=n.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;n.useEffect(()=>{if(c){let e=function(e){if(C.paused||!b)return;let t=e.target;b.contains(t)?E.current=t:h(E.current,{select:!0})},t=function(e){if(C.paused||!b)return;let t=e.relatedTarget;null===t||b.contains(t)||h(E.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&h(b)});return b&&r.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[c,b,C.paused]),n.useEffect(()=>{if(b){m.add(C);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(l,d);b.addEventListener(l,x),b.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=document.activeElement;for(let n of e)if(h(n,{select:t}),document.activeElement!==r)return}(f(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&h(b))}return()=>{b.removeEventListener(l,x),setTimeout(()=>{let t=new CustomEvent(u,d);
1b.addEventListener(u,_),b.dispatchEvent(t),t.defaultPrevented||h(null!=e?e:document.body,{select:!0}),b.removeEventListener(u,_),m.remove(C)},0)}}},[b,x,_,C]);let k=n.useCallback(e=>{if(!r&&!c||C.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[i,o]=function(e){let t=f(e);return[p(t,e),p(t.reverse(),e)]}(t);i&&o?e.shiftKey||n!==o?e.shiftKey&&n===i&&(e.preventDefault(),r&&h(o,{select:!0})):(e.preventDefault(),r&&h(i,{select:!0})):n===t&&e.preventDefault()}},[r,c,C.paused]);return(0,s.jsx)(o.sG.div,{tabIndex:-1,...y,ref:S,onKeyDown:k})});function f(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function p(e,t){for(let r of e)if(!function(e,t){let{upTo:r}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===r||e!==r);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function h(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}c.displayName="FocusScope";var m=function(){let e=[];return{add(t){let r=e[0];t!==r&&(null==r||r.pause()),(e=v(e,t)).unshift(t)},remove(t){var r;null===(r=(e=v(e,t))[0])||void 0===r||r.resume()}}}();function v(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}},56756:(e,t,r)=>{r.d(t,{N:()=>l});var n=r(47049),i=r(12502),o=r(8670),a=r(72195),s=r(44189);function l(e){let t=e+"CollectionProvider",[r,l]=(0,i.A)(t),[u,d]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:t,children:r}=e,i=n.useRef(null),o=n.useRef(new Map).current;return(0,s.jsx)(u,{scope:t,itemMap:o,collectionRef:i,children:r})};c.displayName=t;let f=e+"CollectionSlot",p=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=d(f,r),l=(0,o.s)(t,i.collectionRef);return(0,s.jsx)(a.DX,{ref:l,children:n})});p.displayName=f;let h=e+"CollectionItemSlot",m="data-radix-collection-item",v=n.forwardRef((e,t)=>{let{scope:r,children:i,...l}=e,u=n.useRef(null),c=(0,o.s)(t,u),f=d(h,r);return n.useEffect(()=>(f.itemMap.set(u,{ref:u,...l}),()=>void f.itemMap.delete(u))),(0,s.jsx)(a.DX,{[m]:"",ref:c,children:i})});return v.displayName=h,[{Provider:c,Slot:p,ItemSlot:v},function(t){let r=d(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(m,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},l]}},57438:(e,t,r)=>{r.d(t,{jH:()=>o});var n=r(47049);r(44189);var i=n.createContext(void 0);function o(e){let t=n.useContext(i);return e||t||"ltr"}},58743:(e,t,r)=>{r.d(t,{F:()=>a});var n=r(42287);let i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,o=n.$,a=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return o(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==r?void 0:r[e],n=null==s?void 0:s[e];if(null===t)return null;let o=i(t)||i(n);return a[e][o]}),u=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return o(e,l,null==t?void 0:null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...s,...u}[t]):({...s,...u})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},58758:(e,t,r)=>{r.d(t,{In:()=>eM,JU:()=>eL,LM:()=>eN,PP:()=>ez,UC:()=>eD,VF:()=>eB,WT:()=>eR,YJ:()=>eI,ZL:()=>eO,bL:()=>ej,l9:()=>eA,p4:()=>eV,q7:()=>eF,wn:()=>eW,wv:()=>eU});var n=r(47049),i=r(34748),o=r(97237),a=r(47998),s=r(56756),l=r(8670),u=r(12502),d=r(47663),c=r(38572),f=r(16462),p=r(56674),h=r(18497),m=r(36898),v=r(17460),g=r(4824),y=r(72195),b=r(6209),w=r(86349),x=r(95193),_=r(95149),E=r(64185),S=r(77790),C=r(35592),k=r(44189),P=[" ","Enter","ArrowUp","ArrowDown"],T=[" ","Enter"],j="Select",[A,R,M]=(0,s.N)(j),[O,D]=(0,u.A)(j,[M,m.Bk]),N=(0,m.Bk)(),[I,L]=O(j),[F,V]=O(j),B=e=>{let{__scopeSelect:t,children:r,open:i,defaultOpen:o,onOpenChange:a,value:s,defaultValue:l,onValueChange:u,dir:c,name:f,autoComplete:p,disabled:v,required:g,form:y}=e,b=N(t),[x,_]=n.useState(null),[E,S]=n.useState(null),[C,P]=n.useState(!1),T=(0,d.jH)(c),[j=!1,R]=(0,w.i)({prop:i,defaultProp:o,onChange:a}),[M,O]=(0,w.i)({prop:s,defaultProp:l,onChange:u}),D=n.useRef(null),L=!x||y||!!x.closest("form"),[V,B]=n.useState(new Set),z=Array.from(V).map(e=>e.props.value).join(";");return(0,k.jsx)(m.bL,{...b,children:(0,k.jsxs)(I,{required:g,scope:t,trigger:x,onTriggerChange:_,valueNode:E,onValueNodeChange:S,valueNodeHasChildren:C,onValueNodeHasChildrenChange:P,contentId:(0,h.B)(),value:M,onValueChange:O,open:j,onOpenChange:R,dir:T,triggerPointerDownPosRef:D,disabled:v,children:[(0,k.jsx)(A.Provider,{scope:t,children:(0,k.jsx)(F,{scope:e.__scopeSelect,onNativeOptionAdd:n.useCallback(e=>{B(t=>new Set(t).add(e))},[]),onNativeOptionRemove:n.useCallback(e=>{B(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:r})}),L?(0,k.jsxs)(ek,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:p,value:M,onChange:e=>O(e.target.value),disabled:v,form:y,children:[void 0===M?(0,k.jsx)("option",{value:""}):null,Array.from(V)]},z):null]})})};B.displayName=j;var z="SelectTrigger",W=n.forwardRef((e,t)=>
1{let{__scopeSelect:r,disabled:i=!1,...o}=e,s=N(r),u=L(z,r),d=u.disabled||i,c=(0,l.s)(t,u.onTriggerChange),f=R(r),p=n.useRef("touch"),[h,v,y]=eP(e=>{let t=f().filter(e=>!e.disabled),r=t.find(e=>e.value===u.value),n=eT(t,e,r);void 0!==n&&u.onValueChange(n.value)}),b=e=>{d||(u.onOpenChange(!0),y()),e&&(u.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,k.jsx)(m.Mz,{asChild:!0,...s,children:(0,k.jsx)(g.sG.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:d,"data-disabled":d?"":void 0,"data-placeholder":eC(u.value)?"":void 0,...o,ref:c,onClick:(0,a.m)(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==p.current&&b(e)}),onPointerDown:(0,a.m)(o.onPointerDown,e=>{p.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(b(e),e.preventDefault())}),onKeyDown:(0,a.m)(o.onKeyDown,e=>{let t=""!==h.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||v(e.key),(!t||" "!==e.key)&&P.includes(e.key)&&(b(),e.preventDefault())})})})});W.displayName=z;var U="SelectValue",G=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:i,children:o,placeholder:a="",...s}=e,u=L(U,r),{onValueNodeHasChildrenChange:d}=u,c=void 0!==o,f=(0,l.s)(t,u.onValueNodeChange);return(0,x.N)(()=>{d(c)},[d,c]),(0,k.jsx)(g.sG.span,{...s,ref:f,style:{pointerEvents:"none"},children:eC(u.value)?(0,k.jsx)(k.Fragment,{children:a}):o})});G.displayName=U;var Z=n.forwardRef((e,t)=>{let{__scopeSelect:r,children:n,...i}=e;return(0,k.jsx)(g.sG.span,{"aria-hidden":!0,...i,ref:t,children:n||"▼"})});Z.displayName="SelectIcon";var $=e=>(0,k.jsx)(v.Z,{asChild:!0,...e});$.displayName="SelectPortal";var H="SelectContent",K=n.forwardRef((e,t)=>{let r=L(H,e.__scopeSelect),[o,a]=n.useState();return((0,x.N)(()=>{a(new DocumentFragment)},[]),r.open)?(0,k.jsx)(X,{...e,ref:t}):o?i.createPortal((0,k.jsx)(q,{scope:e.__scopeSelect,children:(0,k.jsx)(A.Slot,{scope:e.__scopeSelect,children:(0,k.jsx)("div",{children:e.children})})}),o):null});K.displayName=H;var[q,Y]=O(H),X=n.forwardRef((e,t)=>{let{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:u,side:d,sideOffset:h,align:m,alignOffset:v,arrowPadding:g,collisionBoundary:b,collisionPadding:w,sticky:x,hideWhenDetached:_,avoidCollisions:E,...P}=e,T=L(H,r),[j,A]=n.useState(null),[M,O]=n.useState(null),D=(0,l.s)(t,e=>A(e)),[N,I]=n.useState(null),[F,V]=n.useState(null),B=R(r),[z,W]=n.useState(!1),U=n.useRef(!1);n.useEffect(()=>{if(j)return(0,S.Eq)(j)},[j]),(0,f.Oh)();let G=n.useCallback(e=>{let[t,...r]=B().map(e=>e.ref.current),[n]=r.slice(-1),i=document.activeElement;for(let r of e)if(r===i||(null==r||r.scrollIntoView({block:"nearest"}),r===t&&M&&(M.scrollTop=0),r===n&&M&&(M.scrollTop=M.scrollHeight),null==r||r.focus(),document.activeElement!==i))return},[B,M]),Z=n.useCallback(()=>G([N,j]),[G,N,j]);n.useEffect(()=>{z&&Z()},[z,Z]);let{onOpenChange:$,triggerPointerDownPosRef:K}=T;n.useEffect(()=>{if(j){let e={x:0,y:0},t=t=>{var r,n,i,o;e={x:Math.abs(Math.round(t.pageX)-(null!==(i=null===(r=K.current)||void 0===r?void 0:r.x)&&void 0!==i?i:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(n=K.current)||void 0===n?void 0:n.y)&&void 0!==o?o:0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():j.contains(r.target)||$(!1),document.removeEventListener("pointermove",t),K.current=null};return null!==K.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[j,$,K]),n.useEffect(()=>{let e=()=>$(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[$]);let[Y,X]=eP(e=>{let t=B().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=eT(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),ee=n.useCallback((e,t,r)=>{let n=!U.current&&!r;(void 0!==T.value&&T.value===t||n)&&(I(e),n&&(U.current=!0))},[T.value]),et=n.useCallback(()=>null==j?void 0:j.focus(),[j]),er=n.useCallback((e,t,r)=>{let n=!U.current&&!r;
1(void 0!==T.value&&T.value===t||n)&&V(e)},[T.value]),en="popper"===i?Q:J,ei=en===Q?{side:d,sideOffset:h,align:m,alignOffset:v,arrowPadding:g,collisionBoundary:b,collisionPadding:w,sticky:x,hideWhenDetached:_,avoidCollisions:E}:{};return(0,k.jsx)(q,{scope:r,content:j,viewport:M,onViewportChange:O,itemRefCallback:ee,selectedItem:N,onItemLeave:et,itemTextRefCallback:er,focusSelectedItem:Z,selectedItemText:F,position:i,isPositioned:z,searchRef:Y,children:(0,k.jsx)(C.A,{as:y.DX,allowPinchZoom:!0,children:(0,k.jsx)(p.n,{asChild:!0,trapped:T.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,a.m)(o,e=>{var t;null===(t=T.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,k.jsx)(c.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:(0,k.jsx)(en,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:e=>e.preventDefault(),...P,...ei,onPlaced:()=>W(!0),ref:D,style:{display:"flex",flexDirection:"column",outline:"none",...P.style},onKeyDown:(0,a.m)(P.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||X(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=B().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>G(t)),e.preventDefault()}})})})})})})});X.displayName="SelectContentImpl";var J=n.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:i,...a}=e,s=L(H,r),u=Y(H,r),[d,c]=n.useState(null),[f,p]=n.useState(null),h=(0,l.s)(t,e=>p(e)),m=R(r),v=n.useRef(!1),y=n.useRef(!0),{viewport:b,selectedItem:w,selectedItemText:_,focusSelectedItem:E}=u,S=n.useCallback(()=>{if(s.trigger&&s.valueNode&&d&&f&&b&&w&&_){let e=s.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),r=s.valueNode.getBoundingClientRect(),n=_.getBoundingClientRect();if("rtl"!==s.dir){let i=n.left-t.left,a=r.left-i,s=e.left-a,l=e.width+s,u=Math.max(l,t.width),c=window.innerWidth-10,f=(0,o.q)(a,[10,Math.max(10,c-u)]);d.style.minWidth=l+"px",d.style.left=f+"px"}else{let i=t.right-n.right,a=window.innerWidth-r.right-i,s=window.innerWidth-e.right-a,l=e.width+s,u=Math.max(l,t.width),c=window.innerWidth-10,f=(0,o.q)(a,[10,Math.max(10,c-u)]);d.style.minWidth=l+"px",d.style.right=f+"px"}let a=m(),l=window.innerHeight-20,u=b.scrollHeight,c=window.getComputedStyle(f),p=parseInt(c.borderTopWidth,10),h=parseInt(c.paddingTop,10),g=parseInt(c.borderBottomWidth,10),y=p+h+u+parseInt(c.paddingBottom,10)+g,x=Math.min(5*w.offsetHeight,y),E=window.getComputedStyle(b),S=parseInt(E.paddingTop,10),C=parseInt(E.paddingBottom,10),k=e.top+e.height/2-10,P=w.offsetHeight/2,T=p+h+(w.offsetTop+P);if(T<=k){let e=a.length>0&&w===a[a.length-1].ref.current;d.style.bottom="0px";let t=Math.max(l-k,P+(e?C:0)+(f.clientHeight-b.offsetTop-b.offsetHeight)+g);d.style.height=T+t+"px"}else{let e=a.length>0&&w===a[0].ref.current;d.style.top="0px";let t=Math.max(k,p+b.offsetTop+(e?S:0)+P);d.style.height=t+(y-T)+"px",b.scrollTop=T-k+b.offsetTop}d.style.margin="".concat(10,"px 0"),d.style.minHeight=x+"px",d.style.maxHeight=l+"px",null==i||i(),requestAnimationFrame(()=>v.current=!0)}},[m,s.trigger,s.valueNode,d,f,b,w,_,s.dir,i]);(0,x.N)(()=>S(),[S]);let[C,P]=n.useState();(0,x.N)(()=>{f&&P(window.getComputedStyle(f).zIndex)},[f]);let T=n.useCallback(e=>{e&&!0===y.current&&(S(),null==E||E(),y.current=!1)},[S,E]);return(0,k.jsx)(ee,{scope:r,contentWrapper:d,shouldExpandOnScrollRef:v,onScrollButtonChange:T,children:(0,k.jsx)("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:(0,k.jsx)(g.sG.div,{...a,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});J.displayName="SelectItemAlignedPosition";var Q=n.forwardRef((e,t)=>{let{__scopeSelect:r,align:n="start",collisionPadding:i=10,...o}=e,a=N(r);return(0,k.jsx)(m.UC,{...a,...o,ref:t,align:n,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Q.displayName="SelectPopperPosition";var[ee,et]=O(H,{}),er="SelectViewport",en=n.forwardRef((e,t)=>
1{let{__scopeSelect:r,nonce:i,...o}=e,s=Y(er,r),u=et(er,r),d=(0,l.s)(t,s.onViewportChange),c=n.useRef(0);return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),(0,k.jsx)(A.Slot,{scope:r,children:(0,k.jsx)(g.sG.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:(0,a.m)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=u;if((null==n?void 0:n.current)&&r){let e=Math.abs(c.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,i=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(i<n){let o=i+e,a=Math.min(n,o),s=o-a;r.style.height=a+"px","0px"===r.style.bottom&&(t.scrollTop=s>0?s:0,r.style.justifyContent="flex-end")}}}c.current=t.scrollTop})})})]})});en.displayName=er;var ei="SelectGroup",[eo,ea]=O(ei),es=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,i=(0,h.B)();return(0,k.jsx)(eo,{scope:r,id:i,children:(0,k.jsx)(g.sG.div,{role:"group","aria-labelledby":i,...n,ref:t})})});es.displayName=ei;var el="SelectLabel",eu=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,i=ea(el,r);return(0,k.jsx)(g.sG.div,{id:i.id,...n,ref:t})});eu.displayName=el;var ed="SelectItem",[ec,ef]=O(ed),ep=n.forwardRef((e,t)=>{let{__scopeSelect:r,value:i,disabled:o=!1,textValue:s,...u}=e,d=L(ed,r),c=Y(ed,r),f=d.value===i,[p,m]=n.useState(null!=s?s:""),[v,y]=n.useState(!1),b=(0,l.s)(t,e=>{var t;return null===(t=c.itemRefCallback)||void 0===t?void 0:t.call(c,e,i,o)}),w=(0,h.B)(),x=n.useRef("touch"),_=()=>{o||(d.onValueChange(i),d.onOpenChange(!1))};if(""===i)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,k.jsx)(ec,{scope:r,value:i,disabled:o,textId:w,isSelected:f,onItemTextChange:n.useCallback(e=>{m(t=>{var r;return t||(null!==(r=null==e?void 0:e.textContent)&&void 0!==r?r:"").trim()})},[]),children:(0,k.jsx)(A.ItemSlot,{scope:r,value:i,disabled:o,textValue:p,children:(0,k.jsx)(g.sG.div,{role:"option","aria-labelledby":w,"data-highlighted":v?"":void 0,"aria-selected":f&&v,"data-state":f?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...u,ref:b,onFocus:(0,a.m)(u.onFocus,()=>y(!0)),onBlur:(0,a.m)(u.onBlur,()=>y(!1)),onClick:(0,a.m)(u.onClick,()=>{"mouse"!==x.current&&_()}),onPointerUp:(0,a.m)(u.onPointerUp,()=>{"mouse"===x.current&&_()}),onPointerDown:(0,a.m)(u.onPointerDown,e=>{x.current=e.pointerType}),onPointerMove:(0,a.m)(u.onPointerMove,e=>{if(x.current=e.pointerType,o){var t;null===(t=c.onItemLeave)||void 0===t||t.call(c)}else"mouse"===x.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,a.m)(u.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null===(t=c.onItemLeave)||void 0===t||t.call(c)}}),onKeyDown:(0,a.m)(u.onKeyDown,e=>{var t;((null===(t=c.searchRef)||void 0===t?void 0:t.current)===""||" "!==e.key)&&(T.includes(e.key)&&_()," "===e.key&&e.preventDefault())})})})})});ep.displayName=ed;var eh="SelectItemText",em=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:o,style:a,...s}=e,u=L(eh,r),d=Y(eh,r),c=ef(eh,r),f=V(eh,r),[p,h]=n.useState(null),m=(0,l.s)(t,e=>h(e),c.onItemTextChange,e=>{var t;return null===(t=d.itemTextRefCallback)||void 0===t?void 0:t.call(d,e,c.value,c.disabled)}),v=null==p?void 0:p.textContent,y=n.useMemo(()=>(0,k.jsx)("option",{value:c.value,disabled:c.disabled,children:v},c.value),[c.disabled,c.value,v]),{onNativeOptionAdd:b,onNativeOptionRemove:w}=f;return(0,x.N)(()=>(b(y),()=>w(y)),[b,w,y]),(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(g.sG.span,{id:c.textId,...s,ref:m}),c.isSelected&&u.valueNode&&!u.valueNodeHasChildren?i.createPortal(s.children,u.valueNode):null]})});em.displayName=eh;var ev="SelectItemIndicator",eg=n.forwardRef((e,t)=>
1{let{__scopeSelect:r,...n}=e;return ef(ev,r).isSelected?(0,k.jsx)(g.sG.span,{"aria-hidden":!0,...n,ref:t}):null});eg.displayName=ev;var ey="SelectScrollUpButton",eb=n.forwardRef((e,t)=>{let r=Y(ey,e.__scopeSelect),i=et(ey,e.__scopeSelect),[o,a]=n.useState(!1),s=(0,l.s)(t,i.onScrollButtonChange);return(0,x.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){a(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,k.jsx)(e_,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});eb.displayName=ey;var ew="SelectScrollDownButton",ex=n.forwardRef((e,t)=>{let r=Y(ew,e.__scopeSelect),i=et(ew,e.__scopeSelect),[o,a]=n.useState(!1),s=(0,l.s)(t,i.onScrollButtonChange);return(0,x.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,k.jsx)(e_,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});ex.displayName=ew;var e_=n.forwardRef((e,t)=>{let{__scopeSelect:r,onAutoScroll:i,...o}=e,s=Y("SelectScrollButton",r),l=n.useRef(null),u=R(r),d=n.useCallback(()=>{null!==l.current&&(window.clearInterval(l.current),l.current=null)},[]);return n.useEffect(()=>()=>d(),[d]),(0,x.N)(()=>{var e;let t=u().find(e=>e.ref.current===document.activeElement);null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})},[u]),(0,k.jsx)(g.sG.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,a.m)(o.onPointerDown,()=>{null===l.current&&(l.current=window.setInterval(i,50))}),onPointerMove:(0,a.m)(o.onPointerMove,()=>{var e;null===(e=s.onItemLeave)||void 0===e||e.call(s),null===l.current&&(l.current=window.setInterval(i,50))}),onPointerLeave:(0,a.m)(o.onPointerLeave,()=>{d()})})}),eE=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return(0,k.jsx)(g.sG.div,{"aria-hidden":!0,...n,ref:t})});eE.displayName="SelectSeparator";var eS="SelectArrow";function eC(e){return""===e||void 0===e}n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,i=N(r),o=L(eS,r),a=Y(eS,r);return o.open&&"popper"===a.position?(0,k.jsx)(m.i3,{...i,...n,ref:t}):null}).displayName=eS;var ek=n.forwardRef((e,t)=>{let{value:r,...i}=e,o=n.useRef(null),a=(0,l.s)(t,o),s=(0,_.Z)(r);return n.useEffect(()=>{let e=o.current,t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(s!==r&&t){let n=new Event("change",{bubbles:!0});t.call(e,r),e.dispatchEvent(n)}},[s,r]),(0,k.jsx)(E.s,{asChild:!0,children:(0,k.jsx)("select",{...i,ref:a,defaultValue:r})})});function eP(e){let t=(0,b.c)(e),r=n.useRef(""),i=n.useRef(0),o=n.useCallback(e=>{let n=r.current+e;t(n),function e(t){r.current=t,window.clearTimeout(i.current),""!==t&&(i.current=window.setTimeout(()=>e(""),1e3))}(n)},[t]),a=n.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return n.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,o,a]}function eT(e,t,r){var n,i;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=r?e.indexOf(r):-1,s=(n=e,i=Math.max(a,0),n.map((e,t)=>n[(i+t)%n.length]));1===o.length&&(s=s.filter(e=>e!==r));let l=s.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==r?l:void 0}ek.displayName="BubbleSelect";var ej=B,eA=W,eR=G,eM=Z,eO=$,eD=K,eN=en,eI=es,eL=eu,eF=ep,eV=em,eB=eg,ez=eb,eW=ex,eU=eE},60183:(e,t,r)=>{r.d(t,{CC:()=>U,Q6:()=>G,bL:()=>W,zi:()=>Z});var n=r(47049),i=r(97237),o=r(47998),a=r(8670),s=r(12502),l=r(86349),u=r(47663),d=r(95149),c=r(31597),f=r(4824),p=r(56756),h=r(44189),m=["PageUp","PageDown"],v=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],g={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]}
1,y="Slider",[b,w,x]=(0,p.N)(y),[_,E]=(0,s.A)(y,[x]),[S,C]=_(y),k=n.forwardRef((e,t)=>{let{name:r,min:a=0,max:s=100,step:u=1,orientation:d="horizontal",disabled:c=!1,minStepsBetweenThumbs:f=0,defaultValue:p=[a],value:g,onValueChange:y=()=>{},onValueCommit:w=()=>{},inverted:x=!1,form:_,...E}=e,C=n.useRef(new Set),k=n.useRef(0),P="horizontal"===d,[T=[],R]=(0,l.i)({prop:g,defaultProp:p,onChange:e=>{var t;null===(t=[...C.current][k.current])||void 0===t||t.focus(),y(e)}}),M=n.useRef(T);function O(e,t){let{commit:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{commit:!1};let n=(String(u).split(".")[1]||"").length,o=function(e,t){let r=Math.pow(10,t);return Math.round(e*r)/r}(Math.round((e-a)/u)*u+a,n),l=(0,i.q)(o,[a,s]);R(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=[...e];return n[r]=t,n.sort((e,t)=>e-t)}(e,l,t);if(!function(e,t){if(t>0)return Math.min(...e.slice(0,-1).map((t,r)=>e[r+1]-t))>=t;return!0}(n,f*u))return e;{k.current=n.indexOf(l);let t=String(n)!==String(e);return t&&r&&w(n),t?n:e}})}return(0,h.jsx)(S,{scope:e.__scopeSlider,name:r,disabled:c,min:a,max:s,valueIndexToChangeRef:k,thumbs:C.current,values:T,orientation:d,form:_,children:(0,h.jsx)(b.Provider,{scope:e.__scopeSlider,children:(0,h.jsx)(b.Slot,{scope:e.__scopeSlider,children:(0,h.jsx)(P?j:A,{"aria-disabled":c,"data-disabled":c?"":void 0,...E,ref:t,onPointerDown:(0,o.m)(E.onPointerDown,()=>{c||(M.current=T)}),min:a,max:s,inverted:x,onSlideStart:c?void 0:function(e){let t=function(e,t){if(1===e.length)return 0;let r=e.map(e=>Math.abs(e-t)),n=Math.min(...r);return r.indexOf(n)}(T,e);O(e,t)},onSlideMove:c?void 0:function(e){O(e,k.current)},onSlideEnd:c?void 0:function(){let e=M.current[k.current];T[k.current]!==e&&w(T)},onHomeKeyDown:()=>!c&&O(a,0,{commit:!0}),onEndKeyDown:()=>!c&&O(s,T.length-1,{commit:!0}),onStepKeyDown:e=>{let{event:t,direction:r}=e;if(!c){let e=m.includes(t.key)||t.shiftKey&&v.includes(t.key),n=k.current;O(T[n]+u*(e?10:1)*r,n,{commit:!0})}}})})})})});k.displayName=y;var[P,T]=_(y,{startEdge:"left",endEdge:"right",size:"width",direction:1}),j=n.forwardRef((e,t)=>{let{min:r,max:i,dir:o,inverted:s,onSlideStart:l,onSlideMove:d,onSlideEnd:c,onStepKeyDown:f,...p}=e,[m,v]=n.useState(null),y=(0,a.s)(t,e=>v(e)),b=n.useRef(void 0),w=(0,u.jH)(o),x="ltr"===w,_=x&&!s||!x&&s;function E(e){let t=b.current||m.getBoundingClientRect(),n=z([0,t.width],_?[r,i]:[i,r]);return b.current=t,n(e-t.left)}return(0,h.jsx)(P,{scope:e.__scopeSlider,startEdge:_?"left":"right",endEdge:_?"right":"left",direction:_?1:-1,size:"width",children:(0,h.jsx)(R,{dir:w,"data-orientation":"horizontal",...p,ref:y,style:{...p.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=E(e.clientX);null==l||l(t)},onSlideMove:e=>{let t=E(e.clientX);null==d||d(t)},onSlideEnd:()=>{b.current=void 0,null==c||c()},onStepKeyDown:e=>{let t=g[_?"from-left":"from-right"].includes(e.key);null==f||f({event:e,direction:t?-1:1})}})})}),A=n.forwardRef((e,t)=>{let{min:r,max:i,inverted:o,onSlideStart:s,onSlideMove:l,onSlideEnd:u,onStepKeyDown:d,...c}=e,f=n.useRef(null),p=(0,a.s)(t,f),m=n.useRef(void 0),v=!o;function y(e){let t=m.current||f.current.getBoundingClientRect(),n=z([0,t.height],v?[i,r]:[r,i]);return m.current=t,n(e-t.top)}return(0,h.jsx)(P,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:(0,h.jsx)(R,{"data-orientation":"vertical",...c,ref:p,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=y(e.clientY);null==s||s(t)},onSlideMove:e=>{let t=y(e.clientY);null==l||l(t)},onSlideEnd:()=>{m.current=void 0,null==u||u()},onStepKeyDown:e=>{let t=g[v?"from-bottom":"from-top"].includes(e.key);null==d||d({event:e,direction:t?-1:1})}})})}),R=n.forwardRef((e,t)=>{let{__scopeSlider:r,onSlideStart:n,onSlideMove:i,onSlideEnd:a,onHomeKeyDown:s,onEndKeyDown:l,onStepKeyDown:u,...d}=e,c=C(y,r);return(0,h.jsx)(f.sG.span,{...d,ref:t,onKeyDown:(0,o.m)(e.onKeyDown,e=>{"Home"===e.key?(s(e),e.preventDefault()):"End"===e.key?(l(e),e.preventDefault()):m.concat(v).includes(e.ke
1y)&&(u(e),e.preventDefault())}),onPointerDown:(0,o.m)(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),c.thumbs.has(t)?t.focus():n(e)}),onPointerMove:(0,o.m)(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&i(e)}),onPointerUp:(0,o.m)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))})})}),M="SliderTrack",O=n.forwardRef((e,t)=>{let{__scopeSlider:r,...n}=e,i=C(M,r);return(0,h.jsx)(f.sG.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...n,ref:t})});O.displayName=M;var D="SliderRange",N=n.forwardRef((e,t)=>{let{__scopeSlider:r,...i}=e,o=C(D,r),s=T(D,r),l=n.useRef(null),u=(0,a.s)(t,l),d=o.values.length,c=o.values.map(e=>B(e,o.min,o.max)),p=d>1?Math.min(...c):0,m=100-Math.max(...c);return(0,h.jsx)(f.sG.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...i,ref:u,style:{...e.style,[s.startEdge]:p+"%",[s.endEdge]:m+"%"}})});N.displayName=D;var I="SliderThumb",L=n.forwardRef((e,t)=>{let r=w(e.__scopeSlider),[i,o]=n.useState(null),s=(0,a.s)(t,e=>o(e)),l=n.useMemo(()=>i?r().findIndex(e=>e.ref.current===i):-1,[r,i]);return(0,h.jsx)(F,{...e,ref:s,index:l})}),F=n.forwardRef((e,t)=>{let{__scopeSlider:r,index:i,name:s,...l}=e,u=C(I,r),d=T(I,r),[p,m]=n.useState(null),v=(0,a.s)(t,e=>m(e)),g=!p||u.form||!!p.closest("form"),y=(0,c.X)(p),w=u.values[i],x=void 0===w?0:B(w,u.min,u.max),_=function(e,t){return t>2?"Value ".concat(e+1," of ").concat(t):2===t?["Minimum","Maximum"][e]:void 0}(i,u.values.length),E=null==y?void 0:y[d.size],S=E?function(e,t,r){let n=e/2,i=z([0,50],[0,n]);return(n-i(t)*r)*r}(E,x,d.direction):0;return n.useEffect(()=>{if(p)return u.thumbs.add(p),()=>{u.thumbs.delete(p)}},[p,u.thumbs]),(0,h.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[d.startEdge]:"calc(".concat(x,"% + ").concat(S,"px)")},children:[(0,h.jsx)(b.ItemSlot,{scope:e.__scopeSlider,children:(0,h.jsx)(f.sG.span,{role:"slider","aria-label":e["aria-label"]||_,"aria-valuemin":u.min,"aria-valuenow":w,"aria-valuemax":u.max,"aria-orientation":u.orientation,"data-orientation":u.orientation,"data-disabled":u.disabled?"":void 0,tabIndex:u.disabled?void 0:0,...l,ref:v,style:void 0===w?{display:"none"}:e.style,onFocus:(0,o.m)(e.onFocus,()=>{u.valueIndexToChangeRef.current=i})})}),g&&(0,h.jsx)(V,{name:null!=s?s:u.name?u.name+(u.values.length>1?"[]":""):void 0,form:u.form,value:w},i)]})});L.displayName=I;var V=e=>{let{value:t,...r}=e,i=n.useRef(null),o=(0,d.Z)(t);return n.useEffect(()=>{let e=i.current,r=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(o!==t&&r){let n=new Event("input",{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[o,t]),(0,h.jsx)("input",{style:{display:"none"},...r,ref:i,defaultValue:t})};function B(e,t,r){return(0,i.q)(100/(r-t)*(e-t),[0,100])}function z(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}var W=k,U=O,G=N,Z=L},61879:(e,t,r)=>{r.d(t,{p:()=>l});var n=r(69870),i=r(32642);let o=new Set(["brightness","contrast","saturate","opacity"]);function a(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(i.S)||[];if(!n)return e;let a=r.replace(n,""),s=+!!o.has(t);return n!==r&&(s*=100),t+"("+s+a+")"}let s=/\b([a-z-]*)\(.*?\)/gu,l={...n.f,getAnimatableNone:e=>{let t=e.match(s);return t?t.map(a).join(" "):e}}},62194:(e,t,r)=>{let n;Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=function(e){let{gaId:t,debugMode:r,dataLayerName:s="dataLayer",nonce:l}=e;return void 0===n&&(n=s),(0,o.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:"\n          window['".concat(s,"'] = window['").concat(s,"'] || [];\n          function gtag(){window['").concat(s,"'].push(arguments);}\n          gtag('js', new Date());\n\n          gtag('config', '").concat(t,"' ").concat(r?",{ 'debug_mode': true }":"",");")},nonce:l}),(0,i.jsx)(a.default,{id:"_next-ga",src:"https://www.googletagmanager.com/gtag/js?i
1d=".concat(t),nonce:l})]})},t.sendGAEvent=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(void 0===n){console.warn("@next/third-parties: GA has not been initialized");return}window[n]?window[n].push(arguments):console.warn("@next/third-parties: GA dataLayer ".concat(n," does not exist"))};let i=r(44189),o=r(47049),a=function(e){return e&&e.__esModule?e:{default:e}}(r(42466))},62343:(e,t,r)=>{r.d(t,{Gt:()=>i,PP:()=>s,WG:()=>o,uv:()=>a});var n=r(10202);let{schedule:i,cancel:o,state:a,steps:s}=(0,r(64050).I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.l,!0)},62733:(e,t,r)=>{r.d(t,{Q:()=>n});let n=(0,r(47049).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},62967:(e,t,r)=>{r.d(t,{w:()=>a});var n=r(86041),i=r(37811),o=r(37811);function a(e){let t="object"==typeof e.client?e.client:{},r="object"==typeof e.server?e.server:{},a=e.shared,s=e.runtimeEnv?e.runtimeEnv:{...o.env,...e.experimental__runtimeEnv};return function(e){let t=e.runtimeEnvStrict??e.runtimeEnv??i.env;if(e.emptyStringAsUndefined)for(let[e,r]of Object.entries(t))""===r&&delete t[e];if(e.skipValidation)return t;let r="object"==typeof e.client?e.client:{},o="object"==typeof e.server?e.server:{},a="object"==typeof e.shared?e.shared:{},s=(0,n.Ik)(r),l=(0,n.Ik)(o),u=(0,n.Ik)(a),d=e.isServer??("undefined"==typeof window||"Deno"in window),c=s.merge(u),f=l.merge(u).merge(s),p=d?f.safeParse(t):c.safeParse(t),h=e.onValidationError??(e=>{throw console.error("❌ Invalid environment variables:",e.flatten().fieldErrors),Error("Invalid environment variables")}),m=e.onInvalidAccess??(e=>{throw Error("❌ Attempted to access a server-side environment variable on the client")});if(!1===p.success)return h(p.error);let v=t=>!e.clientPrefix||!t.startsWith(e.clientPrefix)&&!(t in u.shape),g=e=>d||!v(e),y=e=>"__esModule"===e||"$$typeof"===e,b=(e.extends??[]).reduce((e,t)=>Object.assign(e,t),{});return new Proxy(Object.assign(p.data,b),{get(e,t){if("string"==typeof t&&!y(t))return g(t)?Reflect.get(e,t):m(t)}})}({...e,shared:a,client:t,server:r,clientPrefix:"NEXT_PUBLIC_",runtimeEnv:s})}},63783:(e,t,r)=>{r.d(t,{s:()=>a,t:()=>o});var n=r(47049);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t=>{let r=!1,n=e.map(e=>{let n=i(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():i(e[t],null)}}}}function a(...e){return n.useCallback(o(...e),e)}},63851:(e,t,r)=>{r.d(t,{G:()=>u});var n=r(70767),i=r(98904),o=r(72233),a=r(10202),s=r(69743),l=r(48742);function u(e,t,{clamp:r=!0,ease:d,mixer:c}={}){let f=e.length;if((0,s.V)(f===t.length,"Both input and output ranges must be the same length"),1===f)return()=>t[0];if(2===f&&e[0]===e[1])return()=>t[1];e[0]>e[f-1]&&(e=[...e].reverse(),t=[...t].reverse());let p=function(e,t,r){let n=[],o=r||l.j,s=e.length-1;for(let r=0;r<s;r++){let s=o(e[r],e[r+1]);if(t){let e=Array.isArray(t)?t[r]||a.l:t;s=(0,i.F)(e,s)}n.push(s)}return n}(t,d,c),h=p.length,m=t=>{let r=0;if(h>1)for(;r<e.length-2&&!(t<e[r+1]);r++);let n=(0,o.q)(e[r],e[r+1],t);return p[r](n)};return r?t=>m((0,n.q)(e[0],e[f-1],t)):m}},63895:(e,t,r)=>{r.d(t,{_:()=>i});var n=r(92442);function i(e,t){var r=(0,n._)(e,t,"get");return r.get?r.get.call(e):r.value}},64047:(e,t,r)=>{function n(e){let{moduleIds:t}=e;return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return n}}),r(44189),r(34748),r(95344),r(20877)},64050:(e,t,r)=>{r.d(t,{I:()=>o});var n=r(48611);let i=["read","resolveKeyframes","update","preRender","render","postRender"];function o(e,t){let r=!1,o=!0,a={delta:0,timestamp:0,isProcessing:!1},s=()=>r=!0,l=i.reduce((e,t)=>(e[t]=function(e){let t=new Set,r=new Set,n=!1,i=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1};function s(t){o.has(t)&&(l.schedule(t),e()),t(a)}let l={schedule:(e,i=!1,a=!1)=>{let s=a&&n?t:r;return i&&o.add(e),s.has(e)||s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(a=e,n){i=!0;return}n=!0,[t,r]=[r,t],t.forEach(s),t.clear(),n=!1,i&&(i=!1,l.process(e))}};return l}(s),e),{}),{read:u,resolveKeyframes:d,update:c,preRender:f,render:p,postRender:h}=l,m=()=>{let i=n.W.useManualTiming?a.timestamp:performance.now();r=!1,a.delta=o?1e3/60:Math.max(Math.min(i-a.timestamp,40),1),a.timestamp=i,a.isProcessing=!0,u.process(a),d.process(a),c.process(a),f.process(a),p.process(a),h.process(a),a.isProcessing=!1,r&&t&&(o=!1,e(m))},v=()=>{r=!0,o=!0,a.isProcessing||e(m)};return{schedule:i.reduce((e,t)=>
1{let n=l[t];return e[t]=(e,t=!1,i=!1)=>(r||v(),n.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<i.length;t++)l[i[t]].cancel(e)},state:a,steps:l}}},64185:(e,t,r)=>{r.d(t,{b:()=>s,s:()=>a});var n=r(47049),i=r(4824),o=r(44189),a=n.forwardRef((e,t)=>(0,o.jsx)(i.sG.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));a.displayName="VisuallyHidden";var s=a},66969:(e,t)=>{function r(e,t,n=!1){return t?Object.keys(e).filter(e=>n?!t.includes(e):t.includes(e)).reduce((t,r)=>(t[r]=e[r],t),{}):{}}function n(e,t,r,n){let i=n&&Object.keys(n).length>0?new URL(Object.values(n)[0],e):new URL(e);return t&&r&&t.forEach(e=>{r[e]&&i.searchParams.set(e,r[e])}),i.toString()}function i(e,t,r,i,o){var a;if(!t)return`<${e}></${e}>`;let s=(null===(a=t.src)||void 0===a?void 0:a.url)?Object.assign(Object.assign({},t),{src:n(t.src.url,t.src.params,i,o)}):t,l=Object.keys(Object.assign(Object.assign({},s),r)).reduce((e,t)=>{let n=null==r?void 0:r[t],i=s[t],o=null!=n?n:i,a=!0===o?t:`${t}="${o}"`;return o?e+` ${a}`:e},"");return`<${e}${l}></${e}>`}Object.defineProperty(t,"__esModule",{value:!0}),t.formatData=t.createHtml=t.formatUrl=void 0,t.formatUrl=n,t.createHtml=i,t.formatData=function(e,t){var o,a,s,l,u;let d=r(t,null===(o=e.scripts)||void 0===o?void 0:o.reduce((e,t)=>[...e,...Array.isArray(t.params)?t.params:[]],[])),c=r(t,null===(s=null===(a=e.html)||void 0===a?void 0:a.attributes.src)||void 0===s?void 0:s.params),f=r(t,[null===(u=null===(l=e.html)||void 0===l?void 0:l.attributes.src)||void 0===u?void 0:u.slugParam]),p=r(t,[...Object.keys(d),...Object.keys(c),...Object.keys(f)],!0);return Object.assign(Object.assign({},e),{html:e.html?i(e.html.element,e.html.attributes,p,c,f):null,scripts:e.scripts?e.scripts.map(e=>Object.assign(Object.assign({},e),{url:n(e.url,e.params,d)})):null})}},67745:(e,t,r)=>{r.d(t,{P:()=>i});var n=r(96631);function i(e){return e.props[n.n]}},68626:(e,t,r)=>{r.d(t,{b:()=>s});var n=r(47049),i=r(4824),o=r(44189),a=n.forwardRef((e,t)=>(0,o.jsx)(i.sG.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));a.displayName="Label";var s=a},68634:(e,t,r)=>{r.d(t,{T:()=>a,n:()=>s});var n=r(51019),i=r(25434),o=r(89378);let a=[n.ai,i.px,i.KN,i.uj,i.vw,i.vh,{test:e=>"auto"===e,parse:e=>e}],s=e=>a.find((0,o.w)(e))},69743:(e,t,r)=>{r.d(t,{$:()=>i,V:()=>o});var n=r(10202);let i=n.l,o=n.l},69870:(e,t,r)=>{r.d(t,{V:()=>d,f:()=>h});var n=r(27716);let i=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var o=r(32642),a=r(44529);let s="number",l="color",u=/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 d(e){let t=e.toString(),r=[],i={color:[],number:[],var:[]},o=[],a=0,d=t.replace(u,e=>(n.y.test(e)?(i.color.push(a),o.push(l),r.push(n.y.parse(e))):e.startsWith("var(")?(i.var.push(a),o.push("var"),r.push(e)):(i.number.push(a),o.push(s),r.push(parseFloat(e))),++a,"${}")).split("${}");return{values:r,split:d,indexes:i,types:o}}function c(e){return d(e).values}function f(e){let{split:t,types:r}=d(e),i=t.length;return e=>{let o="";for(let u=0;u<i;u++)if(o+=t[u],void 0!==e[u]){let t=r[u];t===s?o+=(0,a.a)(e[u]):t===l?o+=n.y.transform(e[u]):o+=e[u]}return o}}let p=e=>"number"==typeof e?0:e,h={test:function(e){var t,r;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(o.S))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(i))||void 0===r?void 0:r.length)||0)>0},parse:c,createTransformer:f,getAnimatableNone:function(e){let t=c(e);return f(e)(t.map(p))}}},70175:(e,t,r)=>{r.d(t,{S:()=>n});let n=e=>!!(e&&e.getVelocity)},70323:(e,t,r)=>{r.d(t,{FQ:()=>I});var n,i={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};function o(e,t){return t}function a(e,t){return e.filter(e=>void 0!==e)}function s(e){return"object"!=typeof e||null===e?0:Array.isArray(e)?2:!function(e){if(!u.includes(Object.prototype.toString.call(e)))return!1;let{constructor:t}=e;if(void 0===t)return!0;let r=t.prototype;return!!(null!==r&&"object"==typeof r&&u.includes(Object.prototype.toString.call(r))&&r.hasOwnProperty("isPrototypeOf"))}(e)?e instanceof Set?3:e instanceof Map?4:5:1}function l(e){let t=0,r=e[0]?.[Symbol.iterator]();return{[Symbol.iterator]:()=>({next(){for(;;){if(void 0===r)return{done:!0,value:void 0};let n=r.next();if(!0===n.done){t+=1,r=e[t]?.[Symbol.iterator]();continue}return{done:!1,value:n.value}}}})}}i.defaultMerge,function(e){e[e.NOT=0]="NOT",e[e.RECORD=1]="RECORD",e[e.ARRAY=2]="ARRAY",e[e.SET=3]="SET",e[e.MAP=4]="MAP",e[e.OTHER=5]="OTHER"}(n||(n={}));var u=["[object Object]","[object Module]"],d={mergeRecords:function(e,t,r){let n={};for(let o of function(e){let t=new Set;for(let r of e)for(let e of[...Object.keys(r),...Object.getOwnPropertySymbols(r)])t.add(e);return t}(e)){let a=[];for(let t of e)"object"==typeof t&&Object.prototype.propertyIsEnumerable.call(t,o)&&a.push(t[o]);if(0===a.length)continue;let s=t.metaDataUpdater(r,{key:o,parents:e}),l=c(a,t,s);l!==i.skip&&("__proto__"===o?Object.defineProperty(n,o,{value:l,configurable:!0,enumerable:!0,writable:!0}):n[o]=l)}return n},mergeArrays:function(e){return e.flat()},mergeSets:function(e){return new Set(l(e))},mergeMaps:function(e){return new Map(l(e))},mergeOthers:function(e){return e.at(-1)}};function c(e,t,r){let n=t.filterValues?.(e,r)??e;if(0===n.length)return;if(1===n.length)return f(n,t,r);let o=s(n[0]);if(0!==o&&5!==o){for(let e=1;e<n.length;e++)if(s(n[e])!==o)return f(n,t,r)}switch(o){case 1:var a=n,l=t,u=r;let d=l.mergeFunctions.mergeRecords(a,l,u);return d===i.defaultMerge||l.useImplicitDefaultMerging&&void 0===d&&l.mergeFunctions.mergeRecords!==l.defaultMergeFunctions.mergeRecords?l.defaultMergeFunctions.mergeRecords(a,l,u):d;case 2:var c=n,p=t,h=r;let m=p.mergeFunctions.mergeArrays(c,p,h);return m===i.defaultMerge||p.useImplicitDefaultMerging&&void 0===m&&p.mergeFunctions.mergeArrays!==p.defaultMergeFunctions.mergeArrays?p.defaultMergeFunctions.mergeArrays(c):m;case 3:var v=n,g=t,y=r;let b=g.mergeFunctions.mergeSets(v,g,y);return b===i.defaultMerge||g.useImplicitDefaultMerging&&void 0===b&&g.mergeFunctions.mergeSets!==g.defaultMergeFunctions.mergeSets?g.defaultMergeFunctions.mergeSets(v):b;case 4:var w=n,x=t,_=r;let E=x.mergeFunctions.mergeMaps(w,x,_);return E===i.defaultMerge||x.useImplicitDefaultMerging&&void 0===E&&x.mergeFunctions.mergeMaps!==x.defaultMergeFunctions.mergeMaps?x.defaultMergeFunctions.mergeMaps(w):E;default:return f(n,t,r)}}function f(e,t,r){let n=t.mergeFunctions.mergeOthers(e,t,r);return n===i.defaultMerge||t.useImplicitDefaultMerging&&void 0===n&&t.mergeFunctions.mergeOthers!==t.defaultMergeFunctions.mergeOthers?t.defaultMergeFunctions.mergeOthers(e):n}function p(e){return"object"==typeof e&&null!==e&&"digest"in e&&"BAILOUT_TO_CLIENT_SIDE_RENDERING"===e.digest}var h=new Set(Object.values({NOT_FOUND:404,FORBIDDEN:403,UNAUTHORIZED:401}));function m(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r]=e.digest.split(";");
1return"NEXT_HTTP_ERROR_FALLBACK"===t&&h.has(Number(r))}function v(e){return Number(e.digest.split(";")[1])}var g=(e=>(e[e.SeeOther=303]="SeeOther",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e))(g||{});function y(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let t=e.digest.split(";"),[r,n]=t,i=t.slice(2,-2).join(";"),o=Number(t.at(-2));return"NEXT_REDIRECT"===r&&("replace"===n||"push"===n)&&"string"==typeof i&&!isNaN(o)&&o in g}var b=e=>(function(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&"DYNAMIC_SERVER_USAGE"===e.digest})(e)||p(e)||function(e){return y(e)||m(e)}(e)||function(e){if("object"==typeof e&&null!==e&&"string"==typeof e.message){var t;return(t=e.message).includes("needs to bail out of prerendering at this point because it used")&&t.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error")}return!1}(e),w=Symbol.for("react.postpone"),x=class e{#e;static isNavigationError(e){return y(e)||m(e)||p(e)||b(e)||"object"==typeof e&&null!==e&&e.$$typeof===w}static getNavigationKind(e){return y(e)?"redirect":m(e)&&404===v(e)?"notFound":m(e)&&403===v(e)?"forbidden":m(e)&&401===v(e)?"unauthorized":"other"}handleError(t){if(e.isNavigationError(t)){this.#e=t;return}throw t}get error(){return this.#e}};async function _(e,t){return e["~standard"].validate(t)}var E="Something went wrong while executing the operation.",S=e=>e instanceof Error,C=(...e)=>e.reduce((e,t)=>"boolean"==typeof t?t:e,!1),k=e=>"object"==typeof e?e.key:e,P=e=>e.unionErrors?e.unionErrors.map(e=>e.issues.map(e=>e.message)).flat():e.message,T=e=>{let t={};for(let r of e){let{path:e,message:n,unionErrors:i}=r;if(!e||0===e.length){t._errors=t._errors?[...t._errors,n]:[n];continue}let o=t;for(let t=0;t<e.length-1;t++){let r=k(e[t]);o[r]||(o[r]={}),o=o[r]}let a=k(e[e.length-1]),s=P(r);o[a]=o[a]?._errors?{...structuredClone(o[a]),_errors:[...o[a]._errors,s]}:{...structuredClone(o[a]),_errors:i?s:[s]}}return t},j=class extends Error{validationErrors;constructor(e){super("Server Action server validation error(s) occurred"),this.validationErrors=e}},A=class extends Error{validationErrors;constructor(e,t){super(t??"Server Action validation error(s) occurred"),this.validationErrors=e}},R=class extends Error{validationErrors;constructor(e){super("Server Action bind args validation error(s) occurred"),this.validationErrors=e}},M=class extends Error{validationErrors;constructor(e){super("Invalid metadata input. Please be sure to pass metadata via `metadata` method before defining the action."),this.name="ActionMetadataError",this.validationErrors=e}},O=class extends Error{validationErrors;constructor(e){super("Invalid action data (output). Please be sure to return data following the shape of the schema passed to `dataSchema` method."),this.name="ActionOutputDataError",this.validationErrors=e}};function D(e){let t=e.bindArgsSchemas??[];function r({withState:r}){return{action:(n,s)=>async(...l)=>{let u={},f={success:!1},p={},h=[],m=new x;r&&(p=l.splice(t.length,1)[0]),t.length+1>l.length&&l.push(void 0);let v=async(s=0)=>{if(m.error)return;let g=e.middlewareFns[s];f.ctx=u;try{if(0===s&&e.metadataSchema){let t=await _(e.metadataSchema,e.metadata);if(t.issues)throw new M(T(t.issues))}if(g)await g({clientInput:l.at(-1),bindArgsClientInputs:t.length?l.slice(0,-1):[],ctx:u,metadata:e.metadata,next:async e=>(u=function(...e){return(function(e,t){var r,n;let s=(r=e,n=l,{defaultMergeFunctions:d,mergeFunctions:{...d,...Object.fromEntries(Object.entries(r).filter(([e,t])=>Object.hasOwn(d,e)).map(([e,t])=>!1===t?[e,d.mergeOthers]:[e,t]))},metaDataUpdater:r.metaDataUpdater??o,deepmerge:n,useImplicitDefaultMerging:r.enableImplicitDefaultMerging??!1,filterValues:!1===r.filterValues?void 0:r.filterValues??a,actions:i});function l(...e){return c(e,s,void 0)}return l})({})(...e)}(u,e?.ctx??{}),await v(s+1),f)}).catch(e=>{m.handleError(e),m.error&&(f.success=!1,f.navigationKind=x.getNavigationKind(m.error))});else{let i=await Promise.all(l.map(async(r,n)=>n===l.length-1?void 0===e.inputSchemaFn?{value:void 0}:_(await e.inputSchemaFn(),r):_(t[n],r))),o=!1,a=Array(i.length-1).fill({});for(let r=0;r<i.length;r++){let n=i[r];if(n.issues)if(r<i.length-1)a[r]=T(n.issues),o=!0;else{let r=T(n.issues);f.validationErrors=await Promise.resolve(e.handleValidationErrorsShape(r,{clientInput:l.at(-1),bindArgsClientInputs:t.length?l.slice(0,-1):[],ctx:u,metadata:e.metadata}))}else h.push(n.value)}if(o)throw new R(a);if(f.validationErrors)return;let s=[];s[0]={parsedInput:h.at(-1),bindArgsParsedInputs:h.slice(0,-1),clientInput:l.at(-1),bindArgsClientInputs:t.length?l.slice(0,-1):[],ctx:u,metadata:e.metadata},r&&(s[1]={prevResult:structuredClone(p)});let d=await n(...s).catch(e=>m.handleError(e));
1if(void 0!==e.outputSchema&&!m.error){let t=await _(e.outputSchema,d);if(t.issues)throw new O(T(t.issues))}m.error?(f.success=!1,f.navigationKind=x.getNavigationKind(m.error)):(f.success=!0,f.data=d),f.parsedInput=h.at(-1),f.bindArgsParsedInputs=h.slice(0,-1)}}catch(r){if(r instanceof j){let n=r.validationErrors;f.validationErrors=await Promise.resolve(e.handleValidationErrorsShape(n,{clientInput:l.at(-1),bindArgsClientInputs:t.length?l.slice(0,-1):[],ctx:u,metadata:e.metadata}))}else{let n=S(r)?r:Error(E);f.serverError=await Promise.resolve(e.handleServerError(n,{clientInput:l.at(-1),bindArgsClientInputs:t.length?l.slice(0,-1):[],ctx:u,metadata:e.metadata}))}}};await v();let g=[];if(m.error)throw g.push(s?.onNavigation?.({metadata:e.metadata,ctx:u,clientInput:l.at(-1),bindArgsClientInputs:t.length?l.slice(0,-1):[],navigationKind:x.getNavigationKind(m.error)})),g.push(s?.onSettled?.({metadata:e.metadata,ctx:u,clientInput:l.at(-1),bindArgsClientInputs:t.length?l.slice(0,-1):[],result:{},navigationKind:x.getNavigationKind(m.error)})),await Promise.all(g),m.error;let y={};if(void 0!==f.validationErrors)if(C(e.throwValidationErrors,void 0===s?.throwValidationErrors?void 0:!!s.throwValidationErrors)){let e="object"==typeof s?.throwValidationErrors&&s?.throwValidationErrors.overrideErrorMessage?s?.throwValidationErrors.overrideErrorMessage:void 0;throw new A(f.validationErrors,await e?.(f.validationErrors))}else y.validationErrors=f.validationErrors;if(void 0!==f.serverError)if(s?.throwServerError)throw f.serverError;else y.serverError=f.serverError;return f.success?(void 0!==f.data&&(y.data=f.data),g.push(s?.onSuccess?.({metadata:e.metadata,ctx:u,data:y.data,clientInput:l.at(-1),bindArgsClientInputs:t.length?l.slice(0,-1):[],parsedInput:h.at(-1),bindArgsParsedInputs:h.slice(0,-1)}))):g.push(s?.onError?.({metadata:e.metadata,ctx:u,clientInput:l.at(-1),bindArgsClientInputs:t.length?l.slice(0,-1):[],error:y})),g.push(s?.onSettled?.({metadata:e.metadata,ctx:u,clientInput:l.at(-1),bindArgsClientInputs:t.length?l.slice(0,-1):[],result:y})),await Promise.all(g),y}}}return{action:r({withState:!1}).action,stateAction:r({withState:!0}).action}}var N=class e{#t;constructor(e){this.#t=e}use(t){return new e({...this.#t,middlewareFns:[...this.#t.middlewareFns,t],ctxType:{}})}metadata(t){return new e({...this.#t,metadata:t,metadataProvided:!0})}inputSchema(t,r){return new e({...this.#t,inputSchemaFn:"AsyncFunction"===t[Symbol.toStringTag]?async()=>t(await this.#t.inputSchemaFn?.()):async()=>t,handleValidationErrorsShape:r?.handleValidationErrorsShape??this.#t.handleValidationErrorsShape})}schema=this.inputSchema;bindArgsSchemas(t){return new e({...this.#t,bindArgsSchemas:t,handleValidationErrorsShape:this.#t.handleValidationErrorsShape})}outputSchema(t){return new e({...this.#t,outputSchema:t})}action(e,t){return D(this.#t).action(e,t)}stateAction(e,t){return D(this.#t).stateAction(e,t)}},I=e=>new N({middlewareFns:[async({next:e})=>e({ctx:{}})],handleServerError:e?.handleServerError||(e=>(console.error("Action error:",e.message),E)),inputSchemaFn:void 0,bindArgsSchemas:[],outputSchema:void 0,ctxType:{},metadataSchema:e?.defineMetadataSchema?.()??void 0,metadata:void 0,defaultValidationErrorsShape:e?.defaultValidationErrorsShape??"formatted",throwValidationErrors:!!e?.throwValidationErrors,handleValidationErrorsShape:async t=>e?.defaultValidationErrorsShape==="flattened"?function(e){let t={formErrors:[],fieldErrors:{}};for(let[r,n]of Object.entries(e??{}))"_errors"===r&&Array.isArray(n)?t.formErrors=[...n]:"_errors"in n&&(t.fieldErrors[r]=[...n._errors]);return t}(t):t})},70767:(e,t,r)=>{r.d(t,{q:()=>n});let n=(e,t,r)=>r>t?t:r<e?e:r},71060:(e,t,r)=>{r.d(t,{C1:()=>E,bL:()=>x});var n=r(47049),i=r(63783),o=r(2373),a=r(74053),s=r(79242),l=r(53826),u=r(32730),d=r(87635),c=r(21913),f=r(44189),p="Checkbox",[h,m]=(0,o.A)(p),[v,g]=h(p);function y(e){let{__scopeCheckbox:t,checked:r,children:i,defaultChecked:o,disabled:a,form:l,name:u,onCheckedChange:d,required:c,value:h="on",internal_do_not_use_render:m}=e,[g,y]=(0,s.i)({prop:r,defaultProp:null!=o&&o,onChange:d,caller:p}),[b,w]=n.useState(null),[x,_]=n.useState(null),E=n.useRef(!1),S=!b||!!l||!!b.closest("form"),C={checked:g,disabled:a,setChecked:y,control:b,setControl:w,name:u,form:l,value:h,hasConsumerStoppedPropagationRef:E,required:c,defaultChecked:!k(o)&&o,isFormControl:S,bubbleInput:x,setBubbleInput:_};return(0,f.jsx)(v,{scope:t,...C,children:"function"==typeof m?m(C):i})}var b="CheckboxTrigger",w=n.forwardRef((e,t)=>
1{let{__scopeCheckbox:r,onKeyDown:o,onClick:s,...l}=e,{control:u,value:d,disabled:p,checked:h,required:m,setControl:v,setChecked:y,hasConsumerStoppedPropagationRef:w,isFormControl:x,bubbleInput:_}=g(b,r),E=(0,i.s)(t,v),S=n.useRef(h);return n.useEffect(()=>{let e=null==u?void 0:u.form;if(e){let t=()=>y(S.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[u,y]),(0,f.jsx)(c.sG.button,{type:"button",role:"checkbox","aria-checked":k(h)?"mixed":h,"aria-required":m,"data-state":P(h),"data-disabled":p?"":void 0,disabled:p,value:d,...l,ref:E,onKeyDown:(0,a.m)(o,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,a.m)(s,e=>{y(e=>!!k(e)||!e),_&&x&&(w.current=e.isPropagationStopped(),w.current||e.stopPropagation())})})});w.displayName=b;var x=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,name:n,checked:i,defaultChecked:o,required:a,disabled:s,value:l,onCheckedChange:u,form:d,...c}=e;return(0,f.jsx)(y,{__scopeCheckbox:r,checked:i,defaultChecked:o,disabled:s,required:a,onCheckedChange:u,name:n,form:d,value:l,internal_do_not_use_render:e=>{let{isFormControl:n}=e;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(w,{...c,ref:t,__scopeCheckbox:r}),n&&(0,f.jsx)(C,{__scopeCheckbox:r})]})}})});x.displayName=p;var _="CheckboxIndicator",E=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,forceMount:n,...i}=e,o=g(_,r);return(0,f.jsx)(d.C,{present:n||k(o.checked)||!0===o.checked,children:(0,f.jsx)(c.sG.span,{"data-state":P(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});E.displayName=_;var S="CheckboxBubbleInput",C=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,...o}=e,{control:a,hasConsumerStoppedPropagationRef:s,checked:d,defaultChecked:p,required:h,disabled:m,name:v,value:y,form:b,bubbleInput:w,setBubbleInput:x}=g(S,r),_=(0,i.s)(t,x),E=(0,l.Z)(d),C=(0,u.X)(a);n.useEffect(()=>{if(!w)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!s.current;if(E!==d&&e){let r=new Event("click",{bubbles:t});w.indeterminate=k(d),e.call(w,!k(d)&&d),w.dispatchEvent(r)}},[w,E,d,s]);let P=n.useRef(!k(d)&&d);return(0,f.jsx)(c.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:null!=p?p:P.current,required:h,disabled:m,name:v,value:y,form:b,...o,tabIndex:-1,ref:_,style:{...o.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function k(e){return"indeterminate"===e}function P(e){return k(e)?"indeterminate":e?"checked":"unchecked"}C.displayName=S},71509:(e,t,r)=>{r.d(t,{G:()=>n});let n=e=>t=>1-e(1-t)},72195:(e,t,r)=>{r.d(t,{DX:()=>a,xV:()=>l});var n=r(47049),i=r(8670),o=r(44189),a=n.forwardRef((e,t)=>{let{children:r,...i}=e,a=n.Children.toArray(r),l=a.find(u);if(l){let e=l.props.children,r=a.map(t=>t!==l?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,o.jsx)(s,{...i,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,o.jsx)(s,{...i,ref:t,children:r})});a.displayName="Slot";var s=n.forwardRef((e,t)=>{let{children:r,...o}=e;if(n.isValidElement(r)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(r),a=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{o(...e),i(...e)}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(o,r.props);return r.type!==n.Fragment&&(a.ref=t?(0,i.t)(t,e):e),n.cloneElement(r,a)}return n.Children.count(r)>1?n.Children.only(null):null});s.displayName="SlotClone";var l=({children:e})=>(0,o.jsx)(o.Fragment,{children:e});function u(e){return n.isValidElement(e)&&e.type===l}},72230:(e,t,r)=>{r.d(t,{V:()=>n});let n=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2},72233:(e,t,r)=>{r.d(t,{q:()=>n});let n=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n}},74053:(e,t,r)=>{r.d(t,{m:()=>n});function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}},74421:(e,t,r)=>{r.d(t,{K:()=>h});var n=r(36787),i=r(69743),o=r(8135),a=r(89811);let s=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
1var l=r(12335),u=r(68634),d=r(77700),c=r(69870),f=r(37895);let p=new Set(["auto","none","0"]);class h extends d.h{constructor(e,t,r,n,i){super(e,t,r,n,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:r}=this;if(!t||!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let n=e[r];if("string"==typeof n&&(n=n.trim(),(0,a.p)(n))){let l=function e(t,r,n=1){(0,i.V)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[l,u]=function(e){let t=s.exec(e);if(!t)return[,];let[,r,n,i]=t;return[`--${null!=r?r:n}`,i]}(t);if(!l)return;let d=window.getComputedStyle(r).getPropertyValue(l);if(d){let e=d.trim();return(0,o.i)(e)?parseFloat(e):e}return(0,a.p)(u)?e(u,r,n+1):u}(n,t.current);void 0!==l&&(e[r]=l),r===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!l.$y.has(r)||2!==e.length)return;let[n,d]=e,c=(0,u.n)(n),f=(0,u.n)(d);if(c!==f)if((0,l.E4)(c)&&(0,l.E4)(f))for(let t=0;t<e.length;t++){let r=e[t];"string"==typeof r&&(e[t]=parseFloat(r))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,r=[];for(let t=0;t<e.length;t++){var i;("number"==typeof(i=e[t])?0===i:null===i||"none"===i||"0"===i||(0,n.$)(i))&&r.push(t)}if(r.length){let n,i=0;for(;i<e.length&&!n;){let t=e[i];"string"==typeof t&&!p.has(t)&&(0,c.V)(t).values.length&&(n=e[i]),i++}if(n&&t)for(let i of r)e[i]=(0,f.J)(t,n)}}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:r}=this;if(!e||!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=l.Hr[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let n=t[t.length-1];void 0!==n&&e.getValue(r,n).jump(n,!1)}measureEndState(){var e;let{element:t,name:r,unresolvedKeyframes:n}=this;if(!t||!t.current)return;let i=t.getValue(r);i&&i.jump(this.measuredOrigin,!1);let o=n.length-1,a=n[o];n[o]=l.Hr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEac
1h(([e,r])=>{t.getValue(e).set(r)}),this.resolveNoneKeyframes()}}},74718:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(1056).createAsyncLocalStorage)()},75258:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let n=r(42740),i=r(44189),o=n._(r(47049)),a=r(7013),s=r(21883),l=r(40698),u=r(22590),d=r(35847),c=r(15817);r(96382);let f=r(44834);function p(e){return"string"==typeof e?e:(0,a.formatUrl)(e)}let h=o.default.forwardRef(function(e,t){let r,n,{href:a,as:h,children:m,prefetch:v=null,passHref:g,replace:y,shallow:b,scroll:w,onClick:x,onMouseEnter:_,onTouchStart:E,legacyBehavior:S=!1,...C}=e;r=m,S&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let k=o.default.useContext(s.AppRouterContext),P=!1!==v,T=null===v?l.PrefetchKind.AUTO:l.PrefetchKind.FULL,{href:j,as:A}=o.default.useMemo(()=>{let e=p(a);return{href:e,as:h?p(h):e}},[a,h]);S&&(n=o.default.Children.only(r));let R=S?n&&"object"==typeof n&&n.ref:t,M=o.default.useCallback(e=>(P&&null!==k&&(0,f.mountLinkInstance)(e,j,k,T),()=>{(0,f.unmountLinkInstance)(e)}),[P,j,k,T]),O={ref:(0,u.useMergedRef)(M,R),onClick(e){S||"function"!=typeof x||x(e),S&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),k&&(e.defaultPrevented||function(e,t,r,n,i,a,s){let{nodeName:l}=e.currentTarget;!("A"===l.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e))&&(e.preventDefault(),o.default.startTransition(()=>{let e=null==s||s;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:a,scroll:e}):t[i?"replace":"push"](n||r,{scroll:e})}))}(e,k,j,A,y,b,w))},onMouseEnter(e){S||"function"!=typeof _||_(e),S&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),k&&P&&(0,f.onNavigationIntent)(e.currentTarget)},onTouchStart:function(e){S||"function"!=typeof E||E(e),S&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),k&&P&&(0,f.onNavigationIntent)(e.currentTarget)}};return(0,d.isAbsoluteUrl)(A)?O.href=A:S&&!g&&("a"!==n.type||"href"in n.props)||(O.href=(0,c.addBasePath)(A)),S?o.default.cloneElement(n,O):(0,i.jsx)("a",{...C,...O,children:r})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76248:(e,t,r)=>{r.d(t,{V:()=>s});var n=r(51019),i=r(25434),o=r(44529),a=r(26284);let s={test:(0,a.$)("hsl","hue"),parse:(0,a.q)("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:a=1})=>"hsla("+Math.round(e)+", "+i.KN.transform((0,o.a)(t))+", "+i.KN.transform((0,o.a)(r))+", "+(0,o.a)(n.X4.transform(a))+")"}},76989:e=>{e.exports=JSON.parse('{"id":"youtube-embed","description":"Embed a YouTube embed on your webpage.","website":"https://github.com/paulirish/lite-youtube-embed","html":{"element":"lite-youtube","attributes":{"videoid":null,"playlabel":null}},"stylesheets":["https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.css"],"scripts":[{"url":"https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.js","strategy":"idle","location":"head","action":"append"}]}')},77559:(e,t,r)=>{r.d(t,{u:()=>u});var n=r(29511);let i=(e,t,r)=>{if(e&&"reportValidity"in e){let i=(0,n.Jt)(r,t);e.setCustomValidity(i&&i.message||""),e.reportValidity()}},o=(e,t)=>{for(let r in t.fields){let n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?i(n.ref,r,e):n&&n.refs&&n.refs.forEach(t=>i(t,r,e))}},a=(e,t)=>{t.shouldUseNativeValidation&&o(e,t);let r={};for(let i in e){let o=(0,n.Jt)(t.fields,i),a=Object.assign(e[i]||{},{ref:o&&o.ref});if(s(t.names||Object.keys(e),i)){let e=Object.assign({},(0,n.Jt)(r,i));(0,n.hZ)(e,"root",a),(0,n.hZ)(r,i,e)}else(0,n.hZ)(r,i,a)}return r},s=(e,t)=>{let r=l(t);return e.some(e=>l(e).match(`^${r}\\.\\d+`))};function l(e){return e.replace(/\]|\[/g,"")}function u(e,t,r){return void 0===r&&(r={}),function(i,s,l){try{return Promise.resolve(function(n,a){try{var s=Promise.resolve(e["sync"===r.mode?"parse":"parseAsync"](i,t)).then(function(e){return l.shouldUseNativeValidation&&o({},l),{errors:{},values:r.raw?Object.assign({},i):e}})}catch(e){return a(e)}return s&&s.then?s.then(void 0,a):s}(0,function(e){if(Array.isArray(null==e?void 0:e.errors))return{values:{},errors:a(function(e,t){for(var r={};e.length;){var i=e[0],o=i.code,a=i.message,s=i.path.join(".");
1if(!r[s])if("unionErrors"in i){var l=i.unionErrors[0].errors[0];r[s]={message:l.message,type:l.code}}else r[s]={message:a,type:o};if("unionErrors"in i&&i.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var u=r[s].types,d=u&&u[i.code];r[s]=(0,n.Gb)(s,t,r,o,d?[].concat(d,i.message):i.message)}e.shift()}return r}(e.errors,!l.shouldUseNativeValidation&&"all"===l.criteriaMode),l)};throw e}))}catch(e){return Promise.reject(e)}}}},77700:(e,t,r)=>{r.d(t,{h:()=>c,q:()=>d});var n=r(12335),i=r(62343);let o=new Set,a=!1,s=!1;function l(){if(s){let e=Array.from(o).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),r=new Map;t.forEach(e=>{let t=(0,n.W9)(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,r])=>{var n;null===(n=e.getValue(t))||void 0===n||n.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}s=!1,a=!1,o.forEach(e=>e.complete()),o.clear()}function u(){o.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(s=!0)})}function d(){u(),l()}class c{constructor(e,t,r,n,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=n,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(o.add(this),a||(a=!0,i.Gt.read(u),i.Gt.resolveKeyframes(l))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:r,motionValue:n}=this;for(let i=0;i<e.length;i++)if(null===e[i])if(0===i){let i=null==n?void 0:n.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(r&&t){let n=r.readValue(t,o);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=o),n&&void 0===i&&n.set(e[0])}else e[i]=e[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),o.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,o.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}},77790:(e,t,r)=>{r.d(t,{Eq:()=>d});var n=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},i=new WeakMap,o=new WeakMap,a={},s=0,l=function(e){return e&&(e.host||l(e.parentNode))},u=function(e,t,r,n){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=l(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});a[r]||(a[r]=new WeakMap);var d=a[r],c=[],f=new Set,p=new Set(u),h=function(e){!e||f.has(e)||(f.add(e),h(e.parentNode))};u.forEach(h);var m=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))m(e);else try{var t=e.getAttribute(n),a=null!==t&&"false"!==t,s=(i.get(e)||0)+1,l=(d.get(e)||0)+1;i.set(e,s),d.set(e,l),c.push(e),1===s&&a&&o.set(e,!0),1===l&&e.setAttribute(r,"true"),a||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),f.clear(),s++,function(){c.forEach(function(e){var t=i.get(e)-1,a=d.get(e)-1;i.set(e,t),d.set(e,a),t||(o.has(e)||e.removeAttribute(n),o.delete(e)),a||e.removeAttribute(r)}),--s||(i=new WeakMap,i=new WeakMap,o=new WeakMap,a={})}},d=function(e,t,r){void 0===r&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),o=t||n(e);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live]"))),u(i,o,r,"aria-hidden")):function(){return null}}},78085:(e,t,r)=>{r.d(t,{LM:()=>K,OK:()=>q,VM:()=>E,bL:()=>H,lr:()=>D});var n=r(47049),i=r(4824),o=r(17303),a=r(12502),s=r(8670),l=r(6209),u=r(47663),d=r(95193),c=r(97237),f=r(47998),p=r(44189),h="ScrollArea",[m,v]=(0,a.A)(h),[g,y]=m(h),b=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:o="hover",dir:a,scrollHideDelay:l=600,...d}=e,[c,f]=n.useState(null),[h,m]=n.useState(null),[v,y]=n.useState(null),[b,w]=n.useState(null),[x,_]=n.useState(null),[E,S]=n.useState(0),[C,k]=n.useState(0),[P,T]=n.useState(!1),[j,A]=n.useState(!1),R=(0,s.s)(t,e=>f(e)),M=(0,u.jH)(a);return(0,p.jsx)(g,{scope:r,type:o,dir:M,scrollHideDelay:l,scrollArea:c,viewport:h,onViewportChange:m,content:v,onContentChange:y,scrollbarX:b,onScrollbarXChange:w,scrollbarXEnabled:P,onScrollbarXEnabledChange:T,scrollbarY:x,onScrollbarYChange:_,scrollbarYEnabled:j,onScrollbarYEnabledChange:A,onCornerWidthChange:S,onCornerHeight
1Change:k,children:(0,p.jsx)(i.sG.div,{dir:M,...d,ref:R,style:{position:"relative","--radix-scroll-area-corner-width":E+"px","--radix-scroll-area-corner-height":C+"px",...e.style}})})});b.displayName=h;var w="ScrollAreaViewport",x=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:o,nonce:a,...l}=e,u=y(w,r),d=n.useRef(null),c=(0,s.s)(t,d,u.onViewportChange);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),(0,p.jsx)(i.sG.div,{"data-radix-scroll-area-viewport":"",...l,ref:c,style:{overflowX:u.scrollbarXEnabled?"scroll":"hidden",overflowY:u.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,p.jsx)("div",{ref:u.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});x.displayName=w;var _="ScrollAreaScrollbar",E=n.forwardRef((e,t)=>{let{forceMount:r,...i}=e,o=y(_,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:s}=o,l="horizontal"===e.orientation;return n.useEffect(()=>(l?a(!0):s(!0),()=>{l?a(!1):s(!1)}),[l,a,s]),"hover"===o.type?(0,p.jsx)(S,{...i,ref:t,forceMount:r}):"scroll"===o.type?(0,p.jsx)(C,{...i,ref:t,forceMount:r}):"auto"===o.type?(0,p.jsx)(k,{...i,ref:t,forceMount:r}):"always"===o.type?(0,p.jsx)(P,{...i,ref:t}):null});E.displayName=_;var S=n.forwardRef((e,t)=>{let{forceMount:r,...i}=e,a=y(_,e.__scopeScrollArea),[s,l]=n.useState(!1);return n.useEffect(()=>{let e=a.scrollArea,t=0;if(e){let r=()=>{window.clearTimeout(t),l(!0)},n=()=>{t=window.setTimeout(()=>l(!1),a.scrollHideDelay)};return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",n),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",n)}}},[a.scrollArea,a.scrollHideDelay]),(0,p.jsx)(o.C,{present:r||s,children:(0,p.jsx)(k,{"data-state":s?"visible":"hidden",...i,ref:t})})}),C=n.forwardRef((e,t)=>{var r;let{forceMount:i,...a}=e,s=y(_,e.__scopeScrollArea),l="horizontal"===e.orientation,u=Z(()=>c("SCROLL_END"),100),[d,c]=(r={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},n.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},"hidden"));return n.useEffect(()=>{if("idle"===d){let e=window.setTimeout(()=>c("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(e)}},[d,s.scrollHideDelay,c]),n.useEffect(()=>{let e=s.viewport,t=l?"scrollLeft":"scrollTop";if(e){let r=e[t],n=()=>{let n=e[t];r!==n&&(c("SCROLL"),u()),r=n};return e.addEventListener("scroll",n),()=>e.removeEventListener("scroll",n)}},[s.viewport,l,c,u]),(0,p.jsx)(o.C,{present:i||"hidden"!==d,children:(0,p.jsx)(P,{"data-state":"hidden"===d?"hidden":"visible",...a,ref:t,onPointerEnter:(0,f.m)(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:(0,f.m)(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),k=n.forwardRef((e,t)=>{let r=y(_,e.__scopeScrollArea),{forceMount:i,...a}=e,[s,l]=n.useState(!1),u="horizontal"===e.orientation,d=Z(()=>{if(r.viewport){let e=r.viewport.offsetWidth<r.viewport.scrollWidth,t=r.viewport.offsetHeight<r.viewport.scrollHeight;l(u?e:t)}},10);return $(r.viewport,d),$(r.content,d),(0,p.jsx)(o.C,{present:i||s,children:(0,p.jsx)(P,{"data-state":s?"visible":"hidden",...a,ref:t})})}),P=n.forwardRef((e,t)=>{let{orientation:r="vertical",...i}=e,o=y(_,e.__scopeScrollArea),a=n.useRef(null),s=n.useRef(0),[l,u]=n.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=B(l.viewport,l.content),c={...i,sizes:l,onSizesChange:u,hasThumb:!!(d>0&&d<1),onThumbChange:e=>a.current=e,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:e=>s.current=e};function f(e,t){return function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ltr",i=z(r),o=t||i/2,a=r.scrollbar.paddingStart+o,s=r.scrollbar.size-r.scrollbar.paddingEnd-(i-o),l=r.content-r.viewport;return U([a,s],"ltr"===n?[0,l]:[-+l,0])(e)}(e,s.current,l,t)}return"horizontal"===r?(0,p.jsx)(T,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){let e=W(o.viewport.scrollLeft,l,o.dir);a.current.style.transform="translate3d(".concat(e,"px, 0, 0)")}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollLeft=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollLeft=f(e,o.dir))}}):"vertical"===r?(0,p.jsx)(j,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){let e=W(o.viewport.scrollTop,l);a.current.style.transform="translate3d(0, ".concat(e,"px, 0)")}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollTop=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollTop=f(e))}}):null}),T=n.forwardRef((e,t)=>
1{let{sizes:r,onSizesChange:i,...o}=e,a=y(_,e.__scopeScrollArea),[l,u]=n.useState(),d=n.useRef(null),c=(0,s.s)(t,d,a.onScrollbarXChange);return n.useEffect(()=>{d.current&&u(getComputedStyle(d.current))},[d]),(0,p.jsx)(M,{"data-orientation":"horizontal",...o,ref:c,sizes:r,style:{bottom:0,left:"rtl"===a.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===a.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":z(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,r)=>{if(a.viewport){let n=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(n),function(e,t){return e>0&&e<t}(n,r)&&t.preventDefault()}},onResize:()=>{d.current&&a.viewport&&l&&i({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:V(l.paddingLeft),paddingEnd:V(l.paddingRight)}})}})}),j=n.forwardRef((e,t)=>{let{sizes:r,onSizesChange:i,...o}=e,a=y(_,e.__scopeScrollArea),[l,u]=n.useState(),d=n.useRef(null),c=(0,s.s)(t,d,a.onScrollbarYChange);return n.useEffect(()=>{d.current&&u(getComputedStyle(d.current))},[d]),(0,p.jsx)(M,{"data-orientation":"vertical",...o,ref:c,sizes:r,style:{top:0,right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":z(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,r)=>{if(a.viewport){let n=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(n),function(e,t){return e>0&&e<t}(n,r)&&t.preventDefault()}},onResize:()=>{d.current&&a.viewport&&l&&i({content:a.viewport.scrollHeight,viewport:
1a.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:V(l.paddingTop),paddingEnd:V(l.paddingBottom)}})}})}),[A,R]=m(_),M=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:o,hasThumb:a,onThumbChange:u,onThumbPointerUp:d,onThumbPointerDown:c,onThumbPositionChange:h,onDragScroll:m,onWheelScroll:v,onResize:g,...b}=e,w=y(_,r),[x,E]=n.useState(null),S=(0,s.s)(t,e=>E(e)),C=n.useRef(null),k=n.useRef(""),P=w.viewport,T=o.content-o.viewport,j=(0,l.c)(v),R=(0,l.c)(h),M=Z(g,10);function O(e){C.current&&m({x:e.clientX-C.current.left,y:e.clientY-C.current.top})}return n.useEffect(()=>{let e=e=>{let t=e.target;(null==x?void 0:x.contains(t))&&j(e,T)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[P,x,T,j]),n.useEffect(R,[o,R]),$(x,M),$(w.content,M),(0,p.jsx)(A,{scope:r,scrollbar:x,hasThumb:a,onThumbChange:(0,l.c)(u),onThumbPointerUp:(0,l.c)(d),onThumbPositionChange:R,onThumbPointerDown:(0,l.c)(c),children:(0,p.jsx)(i.sG.div,{...b,ref:S,style:{position:"absolute",...b.style},onPointerDown:(0,f.m)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),C.current=x.getBoundingClientRect(),k.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w.viewport&&(w.viewport.style.scrollBehavior="auto"),O(e))}),onPointerMove:(0,f.m)(e.onPointerMove,O),onPointerUp:(0,f.m)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=k.current,w.viewport&&(w.viewport.style.scrollBehavior=""),C.current=null})})})}),O="ScrollAreaThumb",D=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,i=R(O,e.__scopeScrollArea);return(0,p.jsx)(o.C,{present:r||i.hasThumb,children:(0,p.jsx)(N,{ref:t,...n})})}),N=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:o,...a}=e,l=y(O,r),u=R(O,r),{onThumbPositionChange:d}=u,c=(0,s.s)(t,e=>u.onThumbChange(e)),h=n.useRef(void 0),m=Z(()=>{h.current&&(h.current(),h.current=void 0)},100);return n.useEffect(()=>{let e=l.viewport;if(e){let t=()=>{m(),h.current||(h.current=G(e,d),d())};return d(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[l.viewport,m,d]),(0,p.jsx)(i.sG.div,{"data-state":u.hasThumb?"visible":"hidden",...a,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:(0,f.m)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),r=e.clientX-t.left,n=e.clientY-t.top;u.onThumbPointerDown({x:r,y:n})}),onPointerUp:(0,f.m)(e.onPointerUp,u.onThumbPointerUp)})});D.displayName=O;var I="ScrollAreaCorner",L=n.forwardRef((e,t)=>{let r=y(I,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return"scroll"!==r.type&&n?(0,p.jsx)(F,{...e,ref:t}):null});L.displayName=I;var F=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,...o}=e,a=y(I,r),[s,l]=n.useState(0),[u,d]=n.useState(0),c=!!(s&&u);return $(a.scrollbarX,()=>{var e;let t=(null===(e=a.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;a.onCornerHeightChange(t),d(t)}),$(a.scrollbarY,()=>{var e;let t=(null===(e=a.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;a.onCornerWidthChange(t),l(t)}),c?(0,p.jsx)(i.sG.div,{...o,ref:t,style:{width:s,height:u,position:"absolute",right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:0,...e.style}}):null});function V(e){return e?parseInt(e,10):0}function B(e,t){let r=e/t;return isNaN(r)?0:r}function z(e){let t=B(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-r)*t,18)}function W(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",n=z(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s=(0,c.q)(e,"ltr"===r?[0,a]:[-+a,0]);return U([0,a],[0,o-n])(s)}function U(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}var G=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},r={left:e.scrollLeft,top:e.scrollTop},n=0;return!function i(){let o={left:e.scrollLeft,top:e.scrollTop},a=r.left!==o.left,s=r.top!==o.top;
1(a||s)&&t(),r=o,n=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(n)};function Z(e,t){let r=(0,l.c)(e),i=n.useRef(0);return n.useEffect(()=>()=>window.clearTimeout(i.current),[]),n.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(r,t)},[r,t])}function $(e,t){let r=(0,l.c)(t);(0,d.N)(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}var H=b,K=x,q=L},79242:(e,t,r)=>{r.d(t,{i:()=>s});var n,i=r(47049),o=r(16800),a=(n||(n=r.t(i,2)))[" useInsertionEffect ".trim().toString()]||o.N;function s({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[o,s,l]=function({defaultProp:e,onChange:t}){let[r,n]=i.useState(e),o=i.useRef(r),s=i.useRef(t);return a(()=>{s.current=t},[t]),i.useEffect(()=>{o.current!==r&&(s.current?.(r),o.current=r)},[r,o]),[r,n,s]}({defaultProp:t,onChange:r}),u=void 0!==e,d=u?e:o;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,n])}return[d,i.useCallback(t=>{if(u){let r="function"==typeof t?t(e):t;r!==e&&l.current?.(r)}else s(t)},[u,e,s,l])]}Symbol("RADIX:SYNC_STATE")},79277:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return l},getImageProps:function(){return s}});let n=r(42740),i=r(26531),o=r(90311),a=n._(r(12857));function s(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let l=o.Image},79992:(e,t,r)=>{r.d(t,{D:()=>a});var n=r(27716),i=r(61879);let o={...r(29694).W,color:n.y,backgroundColor:n.y,outlineColor:n.y,fill:n.y,stroke:n.y,borderColor:n.y,borderTopColor:n.y,borderRightColor:n.y,borderBottomColor:n.y,borderLeftColor:n.y,filter:i.p,WebkitFilter:i.p},a=e=>o[e]},80614:(e,t,r)=>{r.d(t,{E:()=>d});var n=r(69743),i=r(15525),o=r(30533);function a(e,t){[...t].reverse().forEach(r=>{let n=e.getVariant(r);n&&(0,i.U)(e,n),e.variantChildren&&e.variantChildren.forEach(e=>{a(e,t)})})}function s(){let e=!1,t=new Set,r={subscribe:e=>(t.add(e),()=>void t.delete(e)),start(r,i){(0,n.V)(e,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let a=[];return t.forEach(e=>{a.push((0,o._)(e,r,{transitionOverride:i}))}),Promise.all(a)},set:r=>((0,n.V)(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),t.forEach(e=>{var t,n;t=e,Array.isArray(n=r)?a(t,n):"string"==typeof n?a(t,[n]):(0,i.U)(t,n)})),stop(){t.forEach(e=>{!function(e){e.values.forEach(e=>e.stop())}(e)})},mount:()=>(e=!0,()=>{e=!1,r.stop()})};return r}var l=r(26502),u=r(45911);function d(){let e=(0,l.M)(s);return(0,u.E)(e.mount,[]),e}},81379:(e,t,r)=>{r.d(t,{useAction:()=>w});var n,i=r(63895),o=r(13769),a=r(90440),s=r(47049);function l(e){return"object"==typeof e&&null!==e&&"digest"in e&&"BAILOUT_TO_CLIENT_SIDE_RENDERING"===e.digest}var u=new Set(Object.values({NOT_FOUND:404,FORBIDDEN:403,UNAUTHORIZED:401}));function d(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r]=e.digest.split(";");return"NEXT_HTTP_ERROR_FALLBACK"===t&&u.has(Number(r))}function c(e){return Number(e.digest.split(";")[1])}var f=(e=>(e[e.SeeOther=303]="SeeOther",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e))(f||{});function p(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let t=e.digest.split(";"),[r,n]=t,i=t.slice(2,-2).join(";"),o=Number(t.at(-2));
1return"NEXT_REDIRECT"===r&&("replace"===n||"push"===n)&&"string"==typeof i&&!isNaN(o)&&o in f}var h=e=>(function(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&"DYNAMIC_SERVER_USAGE"===e.digest})(e)||l(e)||function(e){return p(e)||d(e)}(e)||function(e){if("object"==typeof e&&null!==e&&"string"==typeof e.message){var t;return(t=e.message).includes("needs to bail out of prerendering at this point because it used")&&t.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error")}return!1}(e),m=Symbol.for("react.postpone"),v=(n=new WeakMap,class e{static isNavigationError(e){return p(e)||d(e)||l(e)||h(e)||"object"==typeof e&&null!==e&&e.$$typeof===m}static getNavigationKind(e){return p(e)?"redirect":d(e)&&404===c(e)?"notFound":d(e)&&403===c(e)?"forbidden":d(e)&&401===c(e)?"unauthorized":"other"}handleError(t){if(e.isNavigationError(t)){(0,a._)(this,n,t);return}throw t}get error(){return(0,i._)(this,n)}constructor(){(0,o._)(this,n,{writable:!0,value:void 0})}}),g=e=>{let{isIdle:t,isExecuting:r,isTransitioning:n,result:i,hasNavigated:o,hasThrownError:a}=e;if(t)return"idle";if(r)return"executing";if(n)return"transitioning";if(a||void 0!==i.validationErrors||void 0!==i.serverError)return"hasErrored";if(o)return"hasNavigated";else return"hasSucceeded"},y=e=>({isIdle:"idle"===e,isExecuting:"executing"===e,isTransitioning:"transitioning"===e,isPending:"executing"===e||"transitioning"===e,hasSucceeded:"hasSucceeded"===e,hasErrored:"hasErrored"===e,hasNavigated:"hasNavigated"===e}),b=e=>{let{result:t,input:r,status:n,cb:i,navigationError:o,thrownError:a}=e,l=s.useRef(null==i?void 0:i.onExecute),u=s.useRef(null==i?void 0:i.onSuccess),d=s.useRef(null==i?void 0:i.onError),c=s.useRef(null==i?void 0:i.onSettled),f=s.useRef(null==i?void 0:i.onNavigation);s.useEffect(()=>{let e=l.current,i=u.current,s=d.current,p=c.current,h=f.current;(async()=>{switch(n){case"executing":await Promise.resolve(null==e?void 0:e({input:r})).then(()=>{});break;case"transitioning":break;case"hasSucceeded":if(o||a)break;await Promise.all([Promise.resolve(null==i?void 0:i({data:null==t?void 0:t.data,input:r})),Promise.resolve(null==p?void 0:p({result:t,input:r}))]);break;case"hasErrored":await Promise.all([Promise.resolve(null==s?void 0:s({error:{...t,...a?{thrownError:a}:{}},input:r})),Promise.resolve(null==p?void 0:p({result:t,input:r}))])}if(o){if("redirect"===v.getNavigationKind(o)||"hasNavigated"===n){let e=v.getNavigationKind(o);await Promise.all([Promise.resolve(null==h?void 0:h({input:r,navigationKind:e})),Promise.resolve(null==p?void 0:p({result:t,input:r,navigationKind:e}))])}throw o}})().catch(console.error)},[r,n,t,o,a])},w=(e,t)=>{let[r,n]=s.useTransition(),[i,o]=s.useState({}),[a,l]=s.useState(),[u,d]=s.useState(!1),[c,f]=s.useState(null),[p,h]=s.useState(null),[m,w]=s.useState(!0),x=g({isExecuting:u,isTransitioning:r,result:i,isIdle:m,hasNavigated:null!==c,hasThrownError:null!==p}),_=s.useCallback(t=>{setTimeout(()=>{w(!1),f(null),h(null),l(t),d(!0)},0),n(()=>{e(t).then(e=>o(null!=e?e:{})).catch(e=>{if(o({}),v.isNavigationError(e)){f(e);return}throw h(e),e}).finally(()=>{d(!1)})})},[e]),E=s.useCallback(t=>new Promise((r,i)=>{setTimeout(()=>{w(!1),f(null),h(null),l(t),d(!0)},0),n(()=>{e(t).then(e=>{o(null!=e?e:{}),r(e)}).catch(e=>{if(o({}),v.isNavigationError(e)){f(e);return}h(e),i(e)}).finally(()=>{d(!1)})})}),[e]),S=s.useCallback(()=>{w(!0),f(null),h(null),l(void 0),o({})},[]);return b({result:null!=i?i:{},input:a,status:x,navigationError:c,thrownError:p,cb:t}),{execute:_,executeAsync:E,input:a,result:i,reset:S,status:x,...y(x)}}},81385:function(e,t,r){var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};
1Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=void 0;let o=i(r(19948)),a=r(66969);t.GoogleAnalytics=e=>{var t=n(e,[]);return(0,a.formatData)(o.default,t)}},85348:(e,t,r)=>{function n(e,t,r){return Math.min(Math.max(e,t),r)}function i(e){return"number"==typeof e&&!isNaN(e)}function o(e={}){let t,r,a,s,l=[],u=0,d=0,c=0,f=!1;function p(){g(t.selectedScrollSnap(),1)}function h(){f=!1}function m(){f=!1,u=0,d=0}function v(){let e=t.internalEngine().scrollBody.duration();d=+!e,f=!0,e||p()}function g(e,r){t.scrollSnapList().forEach((i,o)=>{let a=Math.abs(r),s=l[o],d=o===e,p=n(d?s+a:s-a,0,1);l[o]=p;let h=d&&f,m=t.previousScrollSnap();h&&(l[m]=1-p),d&&function(e,r){let{index:n,dragHandler:i,scrollSnaps:o}=t.internalEngine(),a=i.pointerDown(),s=1/(o.length-1),l=e,d=a?t.selectedScrollSnap():t.previousScrollSnap();if(a&&l===d){let e=-+Math.sign(u);l=d,d=n.clone().set(d).add(e).get()}c=d*s+(l-d)*s*r}(e,p),function(e){let r=t.internalEngine().slideRegistry[e],{scrollSnaps:n,containerRect:i}=t.internalEngine(),o=l[e];r.forEach(r=>{let a=t.slideNodes()[r].style,s=parseFloat(o.toFixed(2)),l=s>0,u=function(e){let{axis:r}=t.internalEngine(),n=r.scroll.toUpperCase();return`translate${n}(${r.direction(e)}px)`}(l?n[e]:i.width+2);l&&(a.transform=u),a.opacity=s.toString(),a.pointerEvents=o>.5?"auto":"none",l||(a.transform=u)})}(o)})}function y(){let{dragHandler:e,index:r,scrollBody:n}=t.internalEngine(),i=t.selectedScrollSnap();if(!e.pointerDown())return i;let o=Math.sign(n.velocity()),a=Math.sign(u),s=r.clone().set(i).add(-+o).get();return o&&a?a===o?s:i:null}function b(){let{target:e,location:n}=t.internalEngine(),o=Math.abs(e.get()-n.get())>=1,a=y(),s=!i(a);return!function(e){let{dragHandler:n,scrollBody:o}=e.internalEngine(),a=n.pointerDown(),s=o.velocity(),c=o.duration(),f=y(),p=!i(f);if(a){if(!s)return;u+=s,d=Math.abs(s/r);let{scrollSnaps:e,location:n,target:o}=t.internalEngine();i(f)&&!(l[f]<.5)&&(n.set(e[f]),o.set(n))}if(!a){if(!c||p)return;d+=(1-l[f])/c,d*=.68}p||g(f,d)}(t),!s&&!o&&l[a]>.999}function w(){return c}return{name:"fade",options:e,init:function(e){let i=(t=e).selectedScrollSnap(),{scrollBody:o,containerRect:u,axis:d}=t.internalEngine();r=n(.75*d.measureSize(u),200,500),f=!1,l=t.scrollSnapList().map((e,t)=>+(t===i)),a=o.settled,s=t.scrollProgress,o.settled=b,t.scrollProgress=w,t.on("select",v).on("slideFocus",p).on("pointerDown",m).on("pointerUp",h),function(){let{translate:e,slideLooper:r}=t.internalEngine();e.clear(),e.toggleActive(!1),r.loopPoints.forEach(({translate:e})=>{e.clear(),e.toggleActive(!1)})}(),p()},destroy:function(){let{scrollBody:e}=t.internalEngine();e.settled=a,t.scrollProgress=s,t.off("select",v).off("slideFocus",p).off("pointerDown",m).off("pointerUp",h),t.slideNodes().forEach(e=>{let t=e.style;t.opacity="",t.transform="",t.pointerEvents="",e.getAttribute("style")||e.removeAttribute("style")})}}}r.d(t,{A:()=>o}),o.globalOptions=void 0},85596:(e,t)=>{function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:o,objectFit:a}=e,s=n?40*n:t,l=i?40*i:r,u=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},85676:(e,t,r)=>{r.d(t,{b:()=>u});var n=r(47049),i=r(4824),o=r(44189),a="horizontal",s=["horizontal","vertical"],l=n.forwardRef((e,t)=>{var r;let{decorative:n,orientation:l=a,...u}=e,d=(r=l,s.includes(r))?l:a;return(0,o.jsx)(i.sG.div,{"data-orientation":d,...n?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...u,ref:t})});l.displayName="Separator";var u=l},85838:(e,t,r)=>{r.d(t,{k:()=>n});let n=(e,t,r)=>e+(t-e)*r},86010:function(e,t,r){var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}
1,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeEmbed=void 0;let o=i(r(76989)),a=r(66969);t.YouTubeEmbed=e=>{var t=n(e,[]);return(0,a.formatData)(o.default,t)}},86041:(e,t,r)=>{let n;r.d(t,{Ik:()=>eH,z:()=>tu}),function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},e.getValidEnumValues=t=>{let r=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),n={};for(let e of r)n[e]=t[e];return e.objectValues(n)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(let r of e)if(t(r))return r},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(tn||(tn={})),(ti||(ti={})).mergeShapes=(e,t)=>({...e,...t});let i=tn.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),o=e=>{switch(typeof e){case"undefined":return i.undefined;case"string":return i.string;case"number":return isNaN(e)?i.nan:i.number;case"boolean":return i.boolean;case"function":return i.function;case"bigint":return i.bigint;case"symbol":return i.symbol;case"object":if(Array.isArray(e))return i.array;if(null===e)return i.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return i.promise;if("undefined"!=typeof Map&&e instanceof Map)return i.map;if("undefined"!=typeof Set&&e instanceof Set)return i.set;if("undefined"!=typeof Date&&e instanceof Date)return i.date;return i.object;default:return i.unknown}}
vendor: 5,774 bytes, line 1
1,a=tn.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class s extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;n<i.path.length;){let r=i.path[n];n===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof s))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,tn.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)n.path.length>0?(t[n.path[0]]=t[n.path[0]]||[],t[n.path[0]].push(e(n))):r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}s.create=e=>new s(e);let l=(e,t)=>{let r;switch(e.code){case a.invalid_type:r=e.received===i.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case a.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,tn.jsonStringifyReplacer)}`;break;case a.unrecognized_keys:r=`Unrecognized key(s) in object: ${tn.joinValues(e.keys,", ")}`;break;case a.invalid_union:r="Invalid input";break;case a.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${tn.joinValues(e.options)}`;break;case a.invalid_enum_value:r=`Invalid enum value. Expected ${tn.joinValues(e.options)}, received '${e.received}'`;break;case a.invalid_arguments:r="Invalid function arguments";break;case a.invalid_return_type:r="Invalid function return type";break;case a.invalid_date:r="Invalid date";break;case a.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:tn.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case a.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case a.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case a.custom:r="Invalid input";break;case a.invalid_intersection_types:r="Intersection results could not be merged";break;case a.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case a.not_finite:r="Number must be finite";break;default:r=t.defaultError,tn.assertNever(e)}return{message:r}},u=l;function d(){return u}let c=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,o=[...r,...i.path||[]],a={...i,path:o};if(void 0!==i.message)return{...i,path:o,message:i.message};let s="";for(let e of n.filter(e=>!!e).slice().reverse())s=e(a,{data:t,defaultError:s}).message;return{...i,path:o,message:s}};function f(e,t){let r=d(),n=c({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===l?void 0:l].filter(e=>!!e)});e.common.issues.push(n)}class p{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return h;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return p.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:i}=n;if("aborted"===t.status||"aborted"===i.status)return h;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||n.alwaysSet)&&(r[t.value]=i.value)}return{status:e.value,value:r}}}let h=Object.freeze({status:"aborted"}),m=e=>({status:"dirty",value:e}),v=e=>
1({status:"valid",value:e}),g=e=>"aborted"===e.status,y=e=>"dirty"===e.status,b=e=>"valid"===e.status,w=e=>"undefined"!=typeof Promise&&e instanceof Promise;function x(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function _(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}"function"==typeof SuppressedError&&SuppressedError,function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(to||(to={}));class E{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let S=(e,t)=>{if(b(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new s(e.common.issues);return this._error=t,this._error}}};function C(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{var o,a;let{message:s}=e;return"invalid_enum_value"===t.code?{message:null!=s?s:i.defaultError}:void 0===i.data?{message:null!==(o=null!=s?s:n)&&void 0!==o?o:i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:null!==(a=null!=s?s:r)&&void 0!==a?a:i.defaultError}},description:i}}class k{get description(){return this._def.description}_getType(e){return o(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:o(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new p,ctx:{common:e.parent.common,data:e.data,parsedType:o(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(w(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;let n={common:{issues:[],async:null!==(r=null==t?void 0:t.async)&&void 0!==r&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:o(e)},i=this._parseSync({data:e,path:n.path,parent:n});return S(n,i)}"~validate"(e){var t,r;let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:o(e)};if(!this["~standard"].async)try{let t=this._parseSync({data:e,path:[],parent:n});return b(t)?{value:t.value}:{issues:n.common.issues}}catch(e){(null===(r=null===(t=null==e?void 0:e.message)||void 0===t?void 0:t.toLowerCase())||void 0===r?void 0:r.includes("encountered"))&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then(e=>b(e)?{value:e.value}:{issues:n.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:o(e)},n=this._parse({data:e,path:r.path,parent:r});return S(r,await (w(n)?n:Promise.resolve(n)))}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,n)=>{let i=e(t),o=()=>n.addIssue({code:a.custom,...r(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(o(),!1)):!!i||(o(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new ew({schema:this,typeName:tl.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return ex.create(this,this._def)}nullable(){return e_.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return en.create(this)}promise(){return eb.create(this,this._def)}or(e){return eo.create([this,e],this._def)}and(e){return el.create(this,e,this._def)}transform(e){return new ew({...C(this._def),schema:this,typeName:tl.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new eE({...C(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:tl.ZodDefault})}brand(){return new eP({typeName:tl.ZodBranded,type:this,...C(this._def)})}catch(e){return new eS({...C(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:tl.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eT.create(this,e)}readonly(){return ej.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let P=/^c[^\s-]{8,}
1$/i,T=/^[0-9a-z]+$/,j=/^[0-9A-HJKMNP-TV-Z]{26}$/i,A=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,R=/^[a-z0-9_-]{21}$/i,M=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,O=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,D=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,N=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,I=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,L=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,F=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,V=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,B=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,z="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",W=RegExp(`^${z}$`);function U(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function G(e){let t=`${z}T${U(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)}class Z extends k{_parse(e){var t,r,o,s;let l;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==i.string){let t=this._getOrReturnCtx(e);return f(t,{code:a.invalid_type,expected:i.string,received:t.parsedType}),h}let u=new p;for(let i of this._def.checks)if("min"===i.kind)e.data.length<i.value&&(f(l=this._getOrReturnCtx(e,l),{code:a.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),u.dirty());else if("max"===i.kind)e.data.length>i.value&&(f(l=this._getOrReturnCtx(e,l),{code:a.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),u.dirty());else if("length"===i.kind){let t=e.data.length>i.value,r=e.data.length<i.value;(t||r)&&(l=this._getOrReturnCtx(e,l),t?f(l,{code:a.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):r&&f(l,{code:a.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),u.dirty())}else if("email"===i.kind)D.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"email",code:a.invalid_string,message:i.message}),u.dirty());else if("emoji"===i.kind)n||(n=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),n.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"emoji",code:a.invalid_string,message:i.message}),u.dirty());else if("uuid"===i.kind)A.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"uuid",code:a.invalid_string,message:i.message}),u.dirty());else if("nanoid"===i.kind)R.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"nanoid",code:a.invalid_string,message:i.message}),u.dirty());else if("cuid"===i.kind)P.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"cuid",code:a.invalid_string,message:i.message}),u.dirty());else if("cuid2"===i.kind)T.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"cuid2",code:a.invalid_string,message:i.message}),u.dirty());else if("ulid"===i.kind)j.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"ulid",code:a.invalid_string,message:i.message}),u.dirty());else if("url"===i.kind)try{new URL(e.data)}catch(t){f(l=this._getOrReturnCtx(e,l),{validation:"url",code:a.invalid_string,message:i.message}),u.dirty()}else"regex"===i.kind?(i.regex.lastIndex=0,i.regex.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"regex",code:a.invalid_string,message:i.message}),u.dirty())):"trim"===i.kind?e.data=e.data.trim():"includes"===i.kind?e.data.includes(i.value,i.position)||(f(l=this._getOrReturnCtx(e,l),{code:a.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),u.dirty()):"toLowerCase"===i.kind?e.data=e.data.toLowerCase():"toUpperCase"===i.kind?e.data=e.data.toUpperCase():"startsWith"===i.kind?e.data.startsWith(i.value)||(f(l=this._getOrReturnCtx(e,l),{code:a.invalid_string,validation:{startsWith:i.value},message:i.message}),u.dirty()):"endsWith"===i.kind?e.data.endsWith(i.value)||(f(l=this._getOrReturnCtx(e,l),{code:a.invalid_string,validation:{endsWith:i.value},message:i.message}),u.dirty()):"datetime"===i.kind?G(i).test(e.data)||(f(l=this._getOrReturnCtx(e,l),{code:a.invalid_string,validation:"datetime",message:i.message}),u.dirty()):"date"===i.kind?W.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{code:a.invalid_string,validation:"date",message:i.message}),u.dirty()):"time"===i.kind?RegExp(`^${U(i)}$`).test(e.data)||(f(l=this._getOrReturnCtx(e,l),{code:a.invalid_string,validation:"time",message:i.message}),u.dirty()):"duration"===i.kind?O.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"duration",code:a.invalid_string,message:i.message}),u.dirty()):"ip"===i.kind?(t=e.data,!(("v4"===(r=i.version)||!r)&&N.test(t)||("v6"===r||!r)&&L.test(t))&&(f(l=this._getOrReturnCtx(e,l),{validation:"ip",code:a.invalid_string,message:i.message}),u.dirty())):"jwt"===i.kind?!function(e,t){if(!M.test(e))return!1;try{let[r]=e.split("."),n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));if("object"!=typeof i||null===i||!i.typ||!i.alg||t&&i.alg!==t)return!1;return!0}catch(e){return!1}}(e.data,i.alg)&&(f(l=this._getOrReturnCtx(e,l),{validation:"jwt",code:a.invalid_string,message:i.message}),u.dirty()):"cidr"===i.kind?(o=e.data,!(("v4"===(s=i.version)||!s)&&I.test(o)||("v6"===s||!s)&&F.test(o))&&(f(l=this._getOrReturnCtx(e,l),{validation:"cidr",code:a.invalid_string,message:i.message}),u.dirty())):"base64"===i.kind?V.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"base64",code:a.invalid_string,message:i.message}),u.dirty()):"base64url"===i.kind?B.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"base64url",code:a.invalid_string,message:i.message}),u.dirty()):tn.assertNever(i);return{status:u.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:a.invalid_string,...to.errToObj(r)})}_addCheck(e){return new Z({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...to.errToObj(e)})}url(e){return this._addCheck({kind:"url",...to.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...to.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...to.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...to.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...to.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...to.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...to.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...to.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...to.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...to.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...to.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...to.errToObj(e)})}datetime(e){var t,r;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,local:null!==(r=null==e?void 0:e.local)&&void 0!==r&&r,...to.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...to.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...to.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...to.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...to.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...to.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...to.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...to.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...to.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...to.errToObj(t)})}nonempty(e){return this.min(1,to.errToObj(e))}trim(){return new Z({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Z({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Z({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}
1get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}Z.create=e=>{var t;return new Z({checks:[],typeName:tl.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...C(e)})};class $ extends k{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==i.number){let t=this._getOrReturnCtx(e);return f(t,{code:a.invalid_type,expected:i.number,received:t.parsedType}),h}let r=new p;for(let n of this._def.checks)"int"===n.kind?tn.isInteger(e.data)||(f(t=this._getOrReturnCtx(e,t),{code:a.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(f(t=this._getOrReturnCtx(e,t),{code:a.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(f(t=this._getOrReturnCtx(e,t),{code:a.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return parseInt(e.toFixed(i).replace(".",""))%parseInt(t.toFixed(i).replace(".",""))/Math.pow(10,i)}(e.data,n.value)&&(f(t=this._getOrReturnCtx(e,t),{code:a.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(f(t=this._getOrReturnCtx(e,t),{code:a.not_finite,message:n.message}),r.dirty()):tn.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,to.toString(t))}gt(e,t){return this.setLimit("min",e,!1,to.toString(t))}lte(e,t){return this.setLimit("max",e,!0,to.toString(t))}lt(e,t){return this.setLimit("max",e,!1,to.toString(t))}setLimit(e,t,r,n){return new $({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:to.toString(n)}]})}_addCheck(e){return new $({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:to.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:to.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:to.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:to.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:to.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:to.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:to.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:to.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:to.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&tn.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value);return Number.isFinite(t)&&Number.isFinite(e)}}$.create=e=>new $({checks:[],typeName:tl.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...C(e)});class H extends k{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch(t){return this._getInvalidInput(e)}if(this._getType(e)!==i.bigint)return this._getInvalidInput(e);let r=new p;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(f(t=this._getOrReturnCtx(e,t),{code:a.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(f(t=this._getOrReturnCtx(e,t),{code:a.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(f(t=this._getOrReturnCtx(e,t),{code:a.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):tn.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return f(t,{code:a.invalid_type,expected:i.bigint,received:t.parsedType}),h}gte(e,t){return this.setLimit("min",e,!0,to.toString(t))}gt(e,t){return this.setLimit("min",e,!1,to.toString(t))}lte(e,t){return this.setLimit("max",e,!0,to.toString(t))}lt(e,t){return this.setLimit("max",e,!1,to.toString(t))}setLimit(e,t,r,n){return new H({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:to.toString(n)}]})}_addCheck(e){return new H({...this._def,checks:[...this._def.checks,e]})}
1positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:to.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:to.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:to.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:to.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:to.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}H.create=e=>{var t;return new H({checks:[],typeName:tl.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...C(e)})};class K extends k{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==i.boolean){let t=this._getOrReturnCtx(e);return f(t,{code:a.invalid_type,expected:i.boolean,received:t.parsedType}),h}return v(e.data)}}K.create=e=>new K({typeName:tl.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...C(e)});class q extends k{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==i.date){let t=this._getOrReturnCtx(e);return f(t,{code:a.invalid_type,expected:i.date,received:t.parsedType}),h}if(isNaN(e.data.getTime()))return f(this._getOrReturnCtx(e),{code:a.invalid_date}),h;let r=new p;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(f(t=this._getOrReturnCtx(e,t),{code:a.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(f(t=this._getOrReturnCtx(e,t),{code:a.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):tn.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new q({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:to.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:to.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}q.create=e=>new q({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:tl.ZodDate,...C(e)});class Y extends k{_parse(e){if(this._getType(e)!==i.symbol){let t=this._getOrReturnCtx(e);return f(t,{code:a.invalid_type,expected:i.symbol,received:t.parsedType}),h}return v(e.data)}}Y.create=e=>new Y({typeName:tl.ZodSymbol,...C(e)});class X extends k{_parse(e){if(this._getType(e)!==i.undefined){let t=this._getOrReturnCtx(e);return f(t,{code:a.invalid_type,expected:i.undefined,received:t.parsedType}),h}return v(e.data)}}X.create=e=>new X({typeName:tl.ZodUndefined,...C(e)});class J extends k{_parse(e){if(this._getType(e)!==i.null){let t=this._getOrReturnCtx(e);return f(t,{code:a.invalid_type,expected:i.null,received:t.parsedType}),h}return v(e.data)}}J.create=e=>new J({typeName:tl.ZodNull,...C(e)});class Q extends k{constructor(){super(...arguments),this._any=!0}_parse(e){return v(e.data)}}Q.create=e=>new Q({typeName:tl.ZodAny,...C(e)});class ee extends k{constructor(){super(...arguments),this._unknown=!0}_parse(e){return v(e.data)}}ee.create=e=>new ee({typeName:tl.ZodUnknown,...C(e)});class et extends k{_parse(e){let t=this._getOrReturnCtx(e);return f(t,{code:a.invalid_type,expected:i.never,received:t.parsedType}),h}}et.create=e=>new et({typeName:tl.ZodNever,...C(e)});class er extends k{_parse(e){if(this._getType(e)!==i.undefined){let t=this._getOrReturnCtx(e);return f(t,{code:a.invalid_type,expected:i.void,received:t.parsedType}),h}return v(e.data)}}er.create=e=>new er({typeName:tl.ZodVoid,...C(e)});class en extends k{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==i.array)return f(t,{code:a.invalid_type,expected:i.array,received:t.parsedType}),h;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.length<n.exactLength.value;(e||i)&&(f(t,{code:e?a.too_big:a.too_small,minimum:i?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(f(t,{code:a.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(f(t,{code:a.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new E(t,e,t.path,r)))).then(e=>p.mergeArray(r,e));let o=[...t.data].map((e,r)=>n.type._parseSync(new E(t,e,t.path,r)));return p.mergeArray(r,o)}
1get element(){return this._def.type}min(e,t){return new en({...this._def,minLength:{value:e,message:to.toString(t)}})}max(e,t){return new en({...this._def,maxLength:{value:e,message:to.toString(t)}})}length(e,t){return new en({...this._def,exactLength:{value:e,message:to.toString(t)}})}nonempty(e){return this.min(1,e)}}en.create=(e,t)=>new en({type:e,minLength:null,maxLength:null,exactLength:null,typeName:tl.ZodArray,...C(t)});class ei extends k{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=tn.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==i.object){let t=this._getOrReturnCtx(e);return f(t,{code:a.invalid_type,expected:i.object,received:t.parsedType}),h}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof et&&"strip"===this._def.unknownKeys))for(let e in r.data)o.includes(e)||s.push(e);let l=[];for(let e of o){let t=n[e],i=r.data[e];l.push({key:{status:"valid",value:e},value:t._parse(new E(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof et){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of s)l.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)s.length>0&&(f(r,{code:a.unrecognized_keys,keys:s}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of s){let n=r.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new E(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of l){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>p.mergeObjectSync(t,e)):p.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return to.errToObj,new ei({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var n,i,o,a;let s=null!==(o=null===(i=(n=this._def).errorMap)||void 0===i?void 0:i.call(n,t,r).message)&&void 0!==o?o:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(a=to.errToObj(e).message)&&void 0!==a?a:s}:{message:s}}}:{}})}strip(){return new ei({...this._def,unknownKeys:"strip"})}passthrough(){return new ei({...this._def,unknownKeys:"passthrough"})}extend(e){return new ei({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ei({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:tl.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ei({...this._def,catchall:e})}pick(e){let t={};return tn.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(t[r]=this.shape[r])}),new ei({...this._def,shape:()=>t})}omit(e){let t={};return tn.objectKeys(this.shape).forEach(r=>{e[r]||(t[r]=this.shape[r])}),new ei({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof ei){let r={};for(let n in t.shape){let i=t.shape[n];r[n]=ex.create(e(i))}return new ei({...t._def,shape:()=>r})}if(t instanceof en)return new en({...t._def,type:e(t.element)});if(t instanceof ex)return ex.create(e(t.unwrap()));if(t instanceof e_)return e_.create(e(t.unwrap()));if(t instanceof eu)return eu.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};return tn.objectKeys(this.shape).forEach(r=>{let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}),new ei({...this._def,shape:()=>t})}required(e){let t={};return tn.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof ex;)e=e._def.innerType;t[r]=e}}),new ei({...this._def,shape:()=>t})}keyof(){return ev(tn.objectKeys(this.shape))}}ei.create=(e,t)=>new ei({shape:()=>e,unknownKeys:"strip",catchall:et.create(),typeName:tl.ZodObject,...C(t)}),ei.strictCreate=(e,t)=>new ei({shape:()=>e,unknownKeys:"strict",catchall:et.create(),typeName:tl.ZodObject,...C(t)}),ei.lazycreate=(e,t)=>
1new ei({shape:e,unknownKeys:"strip",catchall:et.create(),typeName:tl.ZodObject,...C(t)});class eo extends k{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new s(e.ctx.common.issues));return f(t,{code:a.invalid_union,unionErrors:r}),h});{let e,n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},o=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new s(e));return f(t,{code:a.invalid_union,unionErrors:i}),h}}get options(){return this._def.options}}eo.create=(e,t)=>new eo({options:e,typeName:tl.ZodUnion,...C(t)});let ea=e=>{if(e instanceof eh)return ea(e.schema);if(e instanceof ew)return ea(e.innerType());if(e instanceof em)return[e.value];if(e instanceof eg)return e.options;if(e instanceof ey)return tn.objectValues(e.enum);else if(e instanceof eE)return ea(e._def.innerType);else if(e instanceof X)return[void 0];else if(e instanceof J)return[null];else if(e instanceof ex)return[void 0,...ea(e.unwrap())];else if(e instanceof e_)return[null,...ea(e.unwrap())];else if(e instanceof eP)return ea(e.unwrap());else if(e instanceof ej)return ea(e.unwrap());else if(e instanceof eS)return ea(e._def.innerType);else return[]};class es extends k{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.object)return f(t,{code:a.invalid_type,expected:i.object,received:t.parsedType}),h;let r=this.discriminator,n=t.data[r],o=this.optionsMap.get(n);return o?t.common.async?o._parseAsync({data:t.data,path:t.path,parent:t}):o._parseSync({data:t.data,path:t.path,parent:t}):(f(t,{code:a.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),h)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let r of t){let t=ea(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(n.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);n.set(i,r)}}return new es({typeName:tl.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...C(r)})}}class el extends k{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(g(e)||g(n))return h;let s=function e(t,r){let n=o(t),a=o(r);if(t===r)return{valid:!0,data:t};if(n===i.object&&a===i.object){let n=tn.objectKeys(r),i=tn.objectKeys(t).filter(e=>-1!==n.indexOf(e)),o={...t,...r};for(let n of i){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1};o[n]=i.data}return{valid:!0,data:o}}if(n===i.array&&a===i.array){if(t.length!==r.length)return{valid:!1};let n=[];for(let i=0;i<t.length;i++){let o=e(t[i],r[i]);if(!o.valid)return{valid:!1};n.push(o.data)}return{valid:!0,data:n}}if(n===i.date&&a===i.date&&+t==+r)return{valid:!0,data:t};return{valid:!1}}(e.value,n.value);return s.valid?((y(e)||y(n))&&t.dirty(),{status:t.value,value:s.data}):(f(r,{code:a.invalid_intersection_types}),h)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}el.create=(e,t,r)=>new el({left:e,right:t,typeName:tl.ZodIntersection,...C(r)});class eu extends k{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.array)return f(r,{code:a.invalid_type,expected:i.array,received:r.parsedType}),h;if(r.data.length<this._def.items.length)return f(r,{code:a.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),h;!this._def.rest&&r.data.length>this._def.items.length&&(f(r,{code:a.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new E(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>p.mergeArray(t,e)):p.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new eu({...this._def,rest:e})}}eu.create=(e,t)=>
1{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new eu({items:e,typeName:tl.ZodTuple,rest:null,...C(t)})};class ed extends k{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.object)return f(r,{code:a.invalid_type,expected:i.object,received:r.parsedType}),h;let n=[],o=this._def.keyType,s=this._def.valueType;for(let e in r.data)n.push({key:o._parse(new E(r,e,r.path,e)),value:s._parse(new E(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?p.mergeObjectAsync(t,n):p.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new ed(t instanceof k?{keyType:e,valueType:t,typeName:tl.ZodRecord,...C(r)}:{keyType:Z.create(),valueType:e,typeName:tl.ZodRecord,...C(t)})}}class ec extends k{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.map)return f(r,{code:a.invalid_type,expected:i.map,received:r.parsedType}),h;let n=this._def.keyType,o=this._def.valueType,s=[...r.data.entries()].map(([e,t],i)=>({key:n._parse(new E(r,e,r.path,[i,"key"])),value:o._parse(new E(r,t,r.path,[i,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of s){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return h;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of s){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return h;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}ec.create=(e,t,r)=>new ec({valueType:t,keyType:e,typeName:tl.ZodMap,...C(r)});class ef extends k{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.set)return f(r,{code:a.invalid_type,expected:i.set,received:r.parsedType}),h;let n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(f(r,{code:a.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(f(r,{code:a.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let o=this._def.valueType;function s(e){let r=new Set;for(let n of e){if("aborted"===n.status)return h;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let l=[...r.data.values()].map((e,t)=>o._parse(new E(r,e,r.path,t)));return r.common.async?Promise.all(l).then(e=>s(e)):s(l)}min(e,t){return new ef({...this._def,minSize:{value:e,message:to.toString(t)}})}max(e,t){return new ef({...this._def,maxSize:{value:e,message:to.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ef.create=(e,t)=>new ef({valueType:e,minSize:null,maxSize:null,typeName:tl.ZodSet,...C(t)});class ep extends k{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.function)return f(t,{code:a.invalid_type,expected:i.function,received:t.parsedType}),h;function r(e,r){return c({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),l].filter(e=>!!e),issueData:{code:a.invalid_arguments,argumentsError:r}})}function n(e,r){return c({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),l].filter(e=>!!e),issueData:{code:a.invalid_return_type,returnTypeError:r}})}let o={errorMap:t.common.contextualErrorMap},u=t.data;if(this._def.returns instanceof eb){let e=this;return v(async function(...t){let i=new s([]),a=await e._def.args.parseAsync(t,o).catch(e=>{throw i.addIssue(r(t,e)),i}),l=await Reflect.apply(u,this,a);return await e._def.returns._def.type.parseAsync(l,o).catch(e=>{throw i.addIssue(n(l,e)),i})})}{let e=this;return v(function(...t){let i=e._def.args.safeParse(t,o);if(!i.success)throw new s([r(t,i.error)]);let a=Reflect.apply(u,this,i.data),l=e._def.returns.safeParse(a,o);if(!l.success)throw new s([n(a,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ep({...this._def,args:eu.create(e).rest(ee.create())})}returns(e){return new ep({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new ep({args:e||eu.create([]).rest(ee.create()),returns:t||ee.create(),typeName:tl.ZodFunction,...C(r)})}}class eh extends k{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}eh.create=(e,t)=>
1new eh({getter:e,typeName:tl.ZodLazy,...C(t)});class em extends k{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return f(t,{received:t.data,code:a.invalid_literal,expected:this._def.value}),h}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ev(e,t){return new eg({values:e,typeName:tl.ZodEnum,...C(t)})}em.create=(e,t)=>new em({value:e,typeName:tl.ZodLiteral,...C(t)});class eg extends k{constructor(){super(...arguments),ta.set(this,void 0)}_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return f(t,{expected:tn.joinValues(r),received:t.parsedType,code:a.invalid_type}),h}if(x(this,ta,"f")||_(this,ta,new Set(this._def.values),"f"),!x(this,ta,"f").has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return f(t,{received:t.data,code:a.invalid_enum_value,options:r}),h}return v(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return eg.create(e,{...this._def,...t})}exclude(e,t=this._def){return eg.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}ta=new WeakMap,eg.create=ev;class ey extends k{constructor(){super(...arguments),ts.set(this,void 0)}_parse(e){let t=tn.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==i.string&&r.parsedType!==i.number){let e=tn.objectValues(t);return f(r,{expected:tn.joinValues(e),received:r.parsedType,code:a.invalid_type}),h}if(x(this,ts,"f")||_(this,ts,new Set(tn.getValidEnumValues(this._def.values)),"f"),!x(this,ts,"f").has(e.data)){let e=tn.objectValues(t);return f(r,{received:r.data,code:a.invalid_enum_value,options:e}),h}return v(e.data)}get enum(){return this._def.values}}ts=new WeakMap,ey.create=(e,t)=>new ey({values:e,typeName:tl.ZodNativeEnum,...C(t)});class eb extends k{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==i.promise&&!1===t.common.async?(f(t,{code:a.invalid_type,expected:i.promise,received:t.parsedType}),h):v((t.parsedType===i.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eb.create=(e,t)=>new eb({type:e,typeName:tl.ZodPromise,...C(t)});class ew extends k{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===tl.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{f(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return h;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?h:"dirty"===n.status||"dirty"===t.value?m(n.value):n});{if("aborted"===t.value)return h;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?h:"dirty"===n.status||"dirty"===t.value?m(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?h:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?h:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>b(e)?Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})):e);else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!b(e))return e;let o=n.transform(e.value,i);if(o instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}tn.assertNever(n)}}ew.create=(e,t,r)=>new ew({schema:e,typeName:tl.ZodEffects,effect:t,...C(r)}),ew.createWithPreprocess=(e,t,r)=>new ew({schema:t,effect:{type:"preprocess",transform:e},typeName:tl.ZodEffects,...C(r)});class ex extends k{_parse(e){return this._getType(e)===i.undefined?v(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ex.create=(e,t)=>
1new ex({innerType:e,typeName:tl.ZodOptional,...C(t)});class e_ extends k{_parse(e){return this._getType(e)===i.null?v(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}e_.create=(e,t)=>new e_({innerType:e,typeName:tl.ZodNullable,...C(t)});class eE extends k{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===i.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eE.create=(e,t)=>new eE({innerType:e,typeName:tl.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...C(t)});class eS extends k{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return w(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new s(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new s(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}eS.create=(e,t)=>new eS({innerType:e,typeName:tl.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...C(t)});class eC extends k{_parse(e){if(this._getType(e)!==i.nan){let t=this._getOrReturnCtx(e);return f(t,{code:a.invalid_type,expected:i.nan,received:t.parsedType}),h}return{status:"valid",value:e.data}}}eC.create=e=>new eC({typeName:tl.ZodNaN,...C(e)});let ek=Symbol("zod_brand");class eP extends k{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class eT extends k{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),m(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new eT({in:e,out:t,typeName:tl.ZodPipeline})}}class ej extends k{_parse(e){let t=this._def.innerType._parse(e),r=e=>(b(e)&&(e.value=Object.freeze(e.value)),e);return w(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}function eA(e,t){let r="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof r?{message:r}:r}function eR(e,t={},r){return e?Q.create().superRefine((n,i)=>{var o,a;let s=e(n);if(s instanceof Promise)return s.then(e=>{var o,a;if(!e){let e=eA(t,n),s=null===(a=null!==(o=e.fatal)&&void 0!==o?o:r)||void 0===a||a;i.addIssue({code:"custom",...e,fatal:s})}});if(!s){let e=eA(t,n),s=null===(a=null!==(o=e.fatal)&&void 0!==o?o:r)||void 0===a||a;i.addIssue({code:"custom",...e,fatal:s})}}):Q.create()}ej.create=(e,t)=>new ej({innerType:e,typeName:tl.ZodReadonly,...C(t)});let eM={object:ei.lazycreate};!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(tl||(tl={}));let eO=Z.create,eD=$.create,eN=eC.create,eI=H.create,eL=K.create,eF=q.create,eV=Y.create,eB=X.create,ez=J.create,eW=Q.create,eU=ee.create,eG=et.create,eZ=er.create,e$=en.create,eH=ei.create,eK=ei.str
1ictCreate,eq=eo.create,eY=es.create,eX=el.create,eJ=eu.create,eQ=ed.create,e0=ec.create,e1=ef.create,e4=ep.create,e2=eh.create,e9=em.create,e3=eg.create,e7=ey.create,e5=eb.create,e8=ew.create,e6=ex.create,te=e_.create,tt=ew.createWithPreprocess,tr=eT.create;var tn,ti,to,ta,ts,tl,tu=Object.freeze({__proto__:null,defaultErrorMap:l,setErrorMap:function(e){u=e},getErrorMap:d,makeIssue:c,EMPTY_PATH:[],addIssueToContext:f,ParseStatus:p,INVALID:h,DIRTY:m,OK:v,isAborted:g,isDirty:y,isValid:b,isAsync:w,get util(){return tn},get objectUtil(){return ti},ZodParsedType:i,getParsedType:o,ZodType:k,datetimeRegex:G,ZodString:Z,ZodNumber:$,ZodBigInt:H,ZodBoolean:K,ZodDate:q,ZodSymbol:Y,ZodUndefined:X,ZodNull:J,ZodAny:Q,ZodUnknown:ee,ZodNever:et,ZodVoid:er,ZodArray:en,ZodObject:ei,ZodUnion:eo,ZodDiscriminatedUnion:es,ZodIntersection:el,ZodTuple:eu,ZodRecord:ed,ZodMap:ec,ZodSet:ef,ZodFunction:ep,ZodLazy:eh,ZodLiteral:em,ZodEnum:eg,ZodNativeEnum:ey,ZodPromise:eb,ZodEffects:ew,ZodTransformer:ew,ZodOptional:ex,ZodNullable:e_,ZodDefault:eE,ZodCatch:eS,ZodNaN:eC,BRAND:ek,ZodBranded:eP,ZodPipeline:eT,ZodReadonly:ej,custom:eR,Schema:k,ZodSchema:k,late:eM,get ZodFirstPartyTypeKind(){return tl},coerce:{string:e=>Z.create({...e,coerce:!0}),number:e=>$.create({...e,coerce:!0}),boolean:e=>K.create({...e,coerce:!0}),bigint:e=>H.create({...e,coerce:!0}),date:e=>q.create({...e,coerce:!0})},any:eW,array:e$,bigint:eI,boolean:eL,date:eF,discriminatedUnion:eY,effect:e8,enum:e3,function:e4,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>eR(t=>t instanceof e,t),intersection:eX,lazy:e2,literal:e9,map:e0,nan:eN,nativeEnum:e7,never:eG,null:ez,nullable:te,number:eD,object:eH,oboolean:()=>eL().optional(),onumber:()=>eD().optional(),optional:e6,ostring:()=>eO().optional(),pipeline:tr,preprocess:tt,promise:e5,record:eQ,set:e1,strictObject:eK,string:eO,symbol:eV,transformer:e8,tuple:eJ,undefined:eB,union:eq,unknown:eU,void:eZ,NEVER:h,ZodIssueCode:a,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:s})},86349:(e,t,r)=>{r.d(t,{i:()=>o});var n=r(47049),i=r(6209);function o({prop:e,defaultProp:t,onChange:r=()=>{}}){let[o,a]=function({defaultProp:e,onChange:t}){let r=n.useState(e),[o]=r,a=n.useRef(o),s=(0,i.c)(t);return n.useEffect(()=>{a.current!==o&&(s(o),a.current=o)},[o,a,s]),r}({defaultProp:t,onChange:r}),s=void 0!==e,l=s?e:o,u=(0,i.c)(r);return[l,n.useCallback(t=>{if(s){let r="function"==typeof t?t(e):t;r!==e&&u(r)}else a(t)},[s,e,a,u])]}},87635:(e,t,r)=>{r.d(t,{C:()=>a});var n=r(47049),i=r(63783),o=r(16800),a=e=>{let{present:t,children:r}=e,a=function(e){var t,r;let[i,a]=n.useState(),l=n.useRef(null),u=n.useRef(e),d=n.useRef("none"),[c,f]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return n.useEffect(()=>{let e=s(l.current);d.current="mounted"===c?e:"none"},[c]),(0,o.N)(()=>{let t=l.current,r=u.current;if(r!==e){let n=d.current,i=s(t);e?f("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):r&&n!==i?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,o.N)(()=>{if(i){var e;let t,r=null!==(e=i.ownerDocument.defaultView)&&void 0!==e?e:window,n=e=>{let n=s(l.current).includes(e.animationName);if(e.target===i&&n&&(f("ANIMATION_END"),!u.current)){let e=i.style.animationFillMode;i.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=e)})}},o=e=>{e.target===i&&(d.current=s(l.current))};return i.addEventListener("animationstart",o),i.addEventListener("animationcancel",n),i.addEventListener("animationend",n),()=>{r.clearTimeout(t),i.removeEventListener("animationstart",o),i.removeEventListener("animationcancel",n),i.removeEventListener("animationend",n)}}f("ANIMATION_END")},[i,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:n.useCallback(e=>{l.current=e?getComputedStyle(e):null,a(e)},[])}}(t),l="function"==typeof r?r({present:a.isPresent}):n.Children.only(r),u=(0,i.s)(a.ref,function(e){var t,r;let n=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,i=n&&"isReactWarning"in n&&n.isReactWarning;return i?e.ref:(i=(n=null===(r=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===r?void 0:r.get)&&"isReactWarning"in n&&n.isReactWarning)?e.props.ref:e.props.ref||e.ref}(l));return"function"==typeof r||a.isPresent?n.cloneElement(l,{ref:u}):null};function s(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"},88278:(e,t,r)=>{function n(e){let t=[{},{}];
1return null==e||e.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}function i(e,t,r,i){if("function"==typeof t){let[o,a]=n(i);t=t(void 0!==r?r:e.custom,o,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[o,a]=n(i);t=t(void 0!==r?r:e.custom,o,a)}return t}r.d(t,{a:()=>i})},88725:(e,t,r)=>{r.d(t,{TL:()=>a});var n=r(47049),i=r(63783),o=r(44189);function a(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:r,...o}=e;if(n.isValidElement(r)){var a;let e,s,l=(a=r,(s=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(s=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(o,r.props);return r.type!==n.Fragment&&(u.ref=t?(0,i.t)(t,l):l),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:i,...a}=e,s=n.Children.toArray(i),u=s.find(l);if(u){let e=u.props.children,i=s.map(t=>t!==u?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,o.jsx)(t,{...a,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,i):null})}return(0,o.jsx)(t,{...a,ref:r,children:i})});return r.displayName=`${e}.Slot`,r}var s=Symbol("radix.slottable");function l(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===s}},89378:(e,t,r)=>{r.d(t,{w:()=>n});let n=e=>t=>t.test(e)},89530:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"setAttributesFromProps",{enumerable:!0,get:function(){return o}});let r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},n=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function i(e){return["async","defer","noModule"].includes(e)}function o(e,t){for(let[o,a]of Object.entries(t)){if(!t.hasOwnProperty(o)||n.includes(o)||void 0===a)continue;let s=r[o]||o.toLowerCase();"SCRIPT"===e.tagName&&i(s)?e[s]=!!a:e.setAttribute(s,String(a)),(!1===a||"SCRIPT"===e.tagName&&i(s)&&(!a||"false"===a))&&(e.setAttribute(s,""),e.removeAttribute(s))}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},89803:(e,t,r)=>{r.d(t,{po:()=>o,tn:()=>s,yT:()=>a});var n=r(72230),i=r(71509);let o=e=>1-Math.sin(Math.acos(e)),a=(0,i.G)(o),s=(0,n.V)(o)},89811:(e,t,r)=>{r.d(t,{j:()=>i,p:()=>a});let n=e=>t=>"string"==typeof t&&t.startsWith(e),i=n("--"),o=n("var(--"),a=e=>!!o(e)&&s.test(e.split("/*")[0].trim()),s=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},90311:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return w}});let n=r(42740),i=r(89425),o=r(44189),a=i._(r(47049)),s=n._(r(34748)),l=n._(r(44236)),u=r(26531),d=r(16448),c=r(24768);r(96382);let f=r(14261),p=n._(r(12857)),h=r(22590),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function v(e,t,r,n,i,o,a){let s=null==e?void 0:e.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function g(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}let y=(0,a.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:s,width:l,decoding:u,className:d,style:c,fetchPriority:f,placeholder:p,loading:m,unoptimized:y,fill:b,onLoadRef:w,onLoadingCompleteRef:x,setBlurComplete:_,setShowAltText:E,sizesInput:S,onLoad:C,onError:k,...P}=e,T=(0,a.useCallback)(e=>{e&&(k&&(e.src=e.src),e.complete&&v(e,p,w,x,_,y,S))},[r,p,w,x,_,k,y,S]),j=(0,h.useMergedRef)(t,T);return(0,o.jsx)("img",{...P,...g(f),loading:m,width:l,height:s,decoding:u,"data-nimg":b?"fill":"1",className:d,style:c,sizes:i,srcSet:n,src:r,ref:j,onLoad:e=>{v(e.currentTarget,p,w,x,_,y,S)},onError:e=>{E(!0),"empty"!==p&&_(!0),k&&k(e)}})});function b(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...g(r.fetchPriority)};return t&&s.default.preload?(s.default.preload(r.src,n),null):(0,o.jsx)(l.default,{children:(0,o.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let w=(0,a.forwardRef)((e,t)=>{let r=(0,a.useContext)(f.RouterContext),n=(0,a.useContext)(c.ImageConfigContext),i=(0,a.useMemo)(()=>{var e;let t=m||n||d.imageConfigDefault,r=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>
1e-t),i=t.deviceSizes.sort((e,t)=>e-t),o=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:r,deviceSizes:i,qualities:o}},[n]),{onLoad:s,onLoadingComplete:l}=e,h=(0,a.useRef)(s);(0,a.useEffect)(()=>{h.current=s},[s]);let v=(0,a.useRef)(l);(0,a.useEffect)(()=>{v.current=l},[l]);let[g,w]=(0,a.useState)(!1),[x,_]=(0,a.useState)(!1),{props:E,meta:S}=(0,u.getImgProps)(e,{defaultLoader:p.default,imgConf:i,blurComplete:g,showAltText:x});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(y,{...E,unoptimized:S.unoptimized,placeholder:S.placeholder,fill:S.fill,onLoadRef:h,onLoadingCompleteRef:v,setBlurComplete:w,setShowAltText:_,sizesInput:e.sizes,ref:t}),S.priority?(0,o.jsx)(b,{isAppRouter:!r,imgAttributes:E}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},90440:(e,t,r)=>{r.d(t,{_:()=>i});var n=r(92442);function i(e,t,r){var i=(0,n._)(e,t,"set");if(i.set)i.set.call(e,r);else{if(!i.writable)throw TypeError("attempted to set read only private field");i.value=r}return r}},92442:(e,t,r)=>{r.d(t,{_:()=>n});function n(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}},93181:(e,t,r)=>{r.d(t,{r:()=>n});function n(e,t){return e?e[t]||e.default||e:void 0}},94400:(e,t,r)=>{r.d(t,{H4:()=>k,_V:()=>C,bL:()=>S});var n=r(47049),i=r(2373),o=r(47766),a=r(16800);r(34748);var s=r(63783),l=r(44189),u=Symbol("radix.slottable");function d(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===u}var c=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=function(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:r,...i}=e;if(n.isValidElement(r)){var o;let e,a,l=(o=r,(a=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(a=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),u=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{o(...e),i(...e)}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(i,r.props);return r.type!==n.Fragment&&(u.ref=t?(0,s.t)(t,l):l),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:i,...o}=e,a=n.Children.toArray(i),s=a.find(d);if(s){let e=s.props.children,i=a.map(t=>t!==s?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,l.jsx)(t,{...o,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,i):null})}return(0,l.jsx)(t,{...o,ref:r,children:i})});return r.displayName=`${e}.Slot`,r}(`Primitive.${t}`),i=n.forwardRef((e,n)=>{let{asChild:i,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(i?r:t,{...o,ref:n})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),f="Avatar",[p,h]=(0,i.A)(f),[m,v]=p(f),g=n.forwardRef((e,t)=>{let{__scopeAvatar:r,...i}=e,[o,a]=n.useState("idle");return(0,l.jsx)(m,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:(0,l.jsx)(c.span,{...i,ref:t})})});g.displayName=f;var y="AvatarImage",b=n.forwardRef((e,t)=>{let{__scopeAvatar:r,src:i,onLoadingStatusChange:s=()=>{},...u}=e,d=v(y,r),f=function(e,t){let{referrerPolicy:r,crossOrigin:i}=t,o=n.useSyncExternalStore(E,()=>!0,()=>!1),s=n.useRef(null),l=o?(s.current||(s.current=new window.Image),s.current):null,[u,d]=n.useState(()=>_(l,e));return(0,a.N)(()=>{d(_(l,e))},[l,e]),(0,a.N)(()=>{let e=e=>()=>{d(e)};if(!l)return;let t=e("loaded"),n=e("error");return l.addEventListener("load",t),l.addEventListener("error",n),r&&(l.referrerPolicy=r),"string"==typeof i&&(l.crossOrigin=i),()=>{l.removeEventListener("load",t),l.removeEventListener("error",n)}},[l,i,r]),u}(i,u),p=(0,o.c)(e=>{s(e),d.onImageLoadingStatusChange(e)}
1);return(0,a.N)(()=>{"idle"!==f&&p(f)},[f,p]),"loaded"===f?(0,l.jsx)(c.img,{...u,ref:t,src:i}):null});b.displayName=y;var w="AvatarFallback",x=n.forwardRef((e,t)=>{let{__scopeAvatar:r,delayMs:i,...o}=e,a=v(w,r),[s,u]=n.useState(void 0===i);return n.useEffect(()=>{if(void 0!==i){let e=window.setTimeout(()=>u(!0),i);return()=>window.clearTimeout(e)}},[i]),s&&"loaded"!==a.imageLoadingStatus?(0,l.jsx)(c.span,{...o,ref:t}):null});function _(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function E(){return()=>{}}x.displayName=w;var S=g,C=b,k=x},95124:(e,t,r)=>{r.d(t,{PT:()=>f,Mc:()=>h,c$:()=>x,KJ:()=>u,Wp:()=>_});let n={linearEasing:void 0},i=(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n});function o(e){return!!("function"==typeof e&&supportsLinearEasing()||!e||"string"==typeof e&&(e in s||supportsLinearEasing())||isBezierDefinition(e)||Array.isArray(e)&&e.every(o))}let a=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,s={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:a([0,.65,.55,1]),circOut:a([.55,0,1,.45]),backIn:a([.31,.01,.66,-.59]),backOut:a([.33,1.53,.69,.99])},l={x:!1,y:!1};function u(e,t,r){var n;if(e instanceof Element)return[e];if("string"==typeof e){let i=document;t&&(i=t.current);let o=null!==(n=null==r?void 0:r[e])&&void 0!==n?n:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function d(e,t){let r=u(e),n=new AbortController;return[r,{passive:!0,...t,signal:n.signal},()=>n.abort()]}function c(e){return t=>{"touch"===t.pointerType||l.x||l.y||e(t)}}function f(e,t,r={}){let[n,i,o]=d(e,r),a=c(e=>{let{target:r}=e,n=t(e);if("function"!=typeof n||!r)return;let o=c(e=>{n(e),r.removeEventListener("pointerleave",o)});r.addEventListener("pointerleave",o,i)});return n.forEach(e=>{e.addEventListener("pointerenter",a,i)}),o}let p=(e,t)=>!!t&&(e===t||p(e,t.parentElement)),h=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,m=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),v=new WeakSet;function g(e){return t=>{"Enter"===t.key&&e(t)}}function y(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}let b=(e,t)=>{let r=e.currentTarget;if(!r)return;let n=g(()=>{if(v.has(r))return;y(r,"down");let e=g(()=>{y(r,"up")});r.addEventListener("keyup",e,t),r.addEventListener("blur",()=>y(r,"cancel"),t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)};function w(e){return h(e)&&!(l.x||l.y)}function x(e,t,r={}){let[n,i,o]=d(e,r),a=e=>{let n=e.currentTarget;if(!w(e)||v.has(n))return;v.add(n);let o=t(e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),w(e)&&v.has(n)&&(v.delete(n),"function"==typeof o&&o(e,{success:t}))},s=e=>{a(e,r.useGlobalTarget||p(n,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",s,i),window.addEventListener("pointercancel",l,i)};return n.forEach(e=>{!m.has(e.tagName)&&-1===e.tabIndex&&null===e.getAttribute("tabindex")&&(e.tabIndex=0),(r.useGlobalTarget?window:e).addEventListener("pointerdown",a,i),e.addEventListener("focus",e=>b(e,i),i)}),o}r(10202);function _(e){if("x"===e||"y"===e)if(l[e])return null;else return l[e]=!0,()=>{l[e]=!1};return l.x||l.y?null:(l.x=l.y=!0,()=>{l.x=l.y=!1})}},95149:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(47049);function i(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},95193:(e,t,r)=>{r.d(t,{N:()=>i});var n=r(47049),i=globalThis?.document?n.useLayoutEffect:()=>{}},95344:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=r(74718)},95691:(e,t)=>{function r(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 n(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;for(let[r,i]of Object.entries(e))if(Array.isArray(i))for(let e of i)t.append(r,n(e));else t.set(r,n(i));return t}function o(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(let t of r){for(let r of t.keys())e.delete(r);for(let[r,n]of t.entries())e.append(r,n)}return e}
1Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{assign:function(){return o},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return i}})},95871:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeEmbed=t.GoogleMapsEmbed=t.GoogleAnalytics=void 0;var n=r(81385);Object.defineProperty(t,"GoogleAnalytics",{enumerable:!0,get:function(){return n.GoogleAnalytics}});var i=r(46718);Object.defineProperty(t,"GoogleMapsEmbed",{enumerable:!0,get:function(){return i.GoogleMapsEmbed}});var o=r(86010);Object.defineProperty(t,"YouTubeEmbed",{enumerable:!0,get:function(){return o.YouTubeEmbed}})},96631:(e,t,r)=>{r.d(t,{n:()=>n});let n="data-"+(0,r(49577).I)("framerAppearId")},97237:(e,t,r)=>{r.d(t,{q:()=>n});function n(e,[t,r]){return Math.min(r,Math.max(t,e))}},97867:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{apiKey:t,...r}=e,n={...r,key:t},{html:s}=(0,o.GoogleMapsEmbed)(n);return(0,i.jsx)(a.default,{height:n.height||null,width:n.width||null,html:s,dataNtpc:"GoogleMapsEmbed"})};let i=r(44189),o=r(95871),a=n(r(42459))},98904:(e,t,r)=>{r.d(t,{F:()=>i});let n=(e,t)=>r=>t(e(r)),i=(...e)=>e.reduce(n)},99579:(e,t,r)=>{r.d(t,{A:()=>C});var n=r(47049);function i(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function o(e,t){let r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&r.every(r=>{let n=e[r],a=t[r];return"function"==typeof n?`${n}`==`${a}`:i(n)&&i(a)?o(n,a):n===a})}function a(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function s(e){return"number"==typeof e}function l(e){return"string"==typeof e}function u(e){return"boolean"==typeof e}function d(e){return"[object Object]"===Object.prototype.toString.call(e)}function c(e){return Math.abs(e)}function f(e){return Math.sign(e)}function p(e){return g(e).map(Number)}function h(e){return e[m(e)]}function m(e){return Math.max(0,e.length-1)}function v(e,t=0){return Array.from(Array(e),(e,r)=>t+r)}function g(e){return Object.keys(e)}function y(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function b(){let e=[],t={add:function(r,n,i,o={passive:!0}){let a;return"addEventListener"in r?(r.addEventListener(n,i,o),a=()=>r.removeEventListener(n,i,o)):(r.addListener(i),a=()=>r.removeListener(i)),e.push(a),t},clear:function(){e=e.filter(e=>e())}};return t}function w(e=0,t=0){let r=c(e-t);function n(r){return r<e||r>t}return{length:r,max:t,min:e,constrain:function(r){return n(r)?r<e?e:t:r},reachedAny:n,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return r?e-r*Math.ceil((e-t)/r):e}}}function x(e){let t=e;function r(e){return s(e)?e:e.get()}return{get:function(){return t},set:function(e){t=r(e)},add:function(e){t+=r(e)},subtract:function(e){t-=r(e)}}}function _(e,t){let r="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},n=t.style,i=null,o=!1;return{clear:function(){o||(n.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(o)return;let a=Math.round(100*e.direction(t))/100;a!==i&&(n.transform=r(a),i=a)},toggleActive:function(e){o=!e}}}let E={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function S(e,t,r){let n,i,o,a,C,k=e.ownerDocument,P=k.defaultView,T=function(e){function t(e,t){return function e(t,r){return[t,r].reduce((t,r)=>(g(r).forEach(n=>{let i=t[n],o=r[n],a=d(i)&&d(o);t[n]=a?e(i,o):o}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(r){let n=r.breakpoints||{},i=g(n).filter(t=>e.matchMedia(t).matches).map(e=>n[e]).reduce((e,r)=>t(e,r),{});return t(r,i)},optionsMediaQueries:function(t){return t.map(e=>g(e.breakpoints||{})).reduce((e,t)=>
1e.concat(t),[]).map(e.matchMedia)}}}(P),j=(C=[],{init:function(e,t){return(C=t.filter(({options:e})=>!1!==T.optionsAtMedia(e).active)).forEach(t=>t.init(e,T)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){C=C.filter(e=>e.destroy())}}),A=b(),R=function(){let e,t={},r={init:function(t){e=t},emit:function(n){return(t[n]||[]).forEach(t=>t(e,n)),r},off:function(e,n){return t[e]=(t[e]||[]).filter(e=>e!==n),r},on:function(e,n){return t[e]=(t[e]||[]).concat([n]),r},clear:function(){t={}}};return r}(),{mergeOptions:M,optionsAtMedia:O,optionsMediaQueries:D}=T,{on:N,off:I,emit:L}=R,F=!1,V=M(E,S.globalOptions),B=M(V),z=[];function W(t,r){if(F)return;B=O(V=M(V,t)),z=r||z;let{container:d,slides:E}=B;o=(l(d)?e.querySelector(d):d)||e.children[0];let S=l(E)?o.querySelectorAll(E):E;a=[].slice.call(S||o.children),n=function t(r){let n=function(e,t,r,n,i,o,a){let d,E,{align:S,axis:C,direction:k,startIndex:P,loop:T,duration:j,dragFree:A,dragThreshold:R,inViewThreshold:M,slidesToScroll:O,skipSnaps:D,containScroll:N,watchResize:I,watchSlides:L,watchDrag:F,watchFocus:V}=o,B={measure:function(e){let{offsetTop:t,offsetLeft:r,offsetWidth:n,offsetHeight:i}=e;return{top:t,right:r+n,bottom:t+i,left:r,width:n,height:i}}},z=B.measure(t),W=r.map(B.measure),U=function(e,t){let r="rtl"===t,n="y"===e,i=!n&&r?-1:1;return{scroll:n?"y":"x",cross:n?"x":"y",startEdge:n?"top":r?"right":"left",endEdge:n?"bottom":r?"left":"right",measureSize:function(e){let{height:t,width:r}=e;return n?t:r},direction:function(e){return e*i}}}(C,k),G=U.measureSize(z),Z={measure:function(e){return e/100*G}},$=function(e,t){let r={start:function(){return 0},center:function(e){return(t-e)/2},end:function(e){return t-e}};return{measure:function(n,i){return l(e)?r[e](n):e(t,n,i)}}}(S,G),H=!T&&!!N,{slideSizes:K,slideSizesWithGaps:q,startGap:Y,endGap:X}=function(e,t,r,n,i,o){let{measureSize:a,startEdge:s,endEdge:l}=e,u=r[0]&&i,d=function(){if(!u)return 0;let e=r[0];return c(t[s]-e[s])}(),f=u?parseFloat(o.getComputedStyle(h(n)).getPropertyValue(`margin-${l}`)):0,p=r.map(a),v=r.map((e,t,r)=>{let n=t===m(r);return t?n?p[t]+f:r[t+1][s]-e[s]:p[t]+d}).map(c);return{slideSizes:p,slideSizesWithGaps:v,startGap:d,endGap:f}}(U,z,W,r,T||!!N,i),J=function(e,t,r,n,i,o,a,l,u){let{startEdge:d,endEdge:f,direction:v}=e,g=s(r);return{groupSlides:function(e){return g?p(e).filter(e=>e%r==0).map(t=>e.slice(t,t+r)):e.length?p(e).reduce((r,s,u)=>{let p=h(r)||0,g=s===m(e),y=i[d]-o[p][d],b=i[d]-o[s][f],w=n||0!==p?0:v(a),x=c(b-(!n&&g?v(l):0)-(y+w));return u&&x>t+2&&r.push(s),g&&r.push(e.length),r},[]).map((t,r,n)=>{let i=Math.max(n[r-1]||0);return e.slice(i,t)}):[]}}}(U,G,O,T,z,W,Y,X,0),{snaps:Q,snapsAligned:ee}=function(e,t,r,n,i){let{startEdge:o,endEdge:a}=e,{groupSlides:s}=i,l=s(n).map(e=>h(e)[a]-e[0][o]).map(c).map(t.measure),u=n.map(e=>r[o]-e[o]).map(e=>-c(e)),d=s(u).map(e=>e[0]).map((e,t)=>e+l[t]);return{snaps:u,snapsAligned:d}}(U,$,z,W,J),et=-h(Q)+h(q),{snapsContained:er,scrollContainLimit:en}=function(e,t,r,n,i){let o=w(-t+e,0),a=r.map((e,t)=>{let{min:n,max:i}=o,a=o.constrain(e),s=t===m(r);return t?s||function(e,t){return 1>=c(e-t)}(n,a)?n:function(e,t){return 1>=c(e-t)}(i,a)?i:a:i}).map(e=>parseFloat(e.toFixed(3))),s=function(){let e=a[0],t=h(a);return w(a.lastIndexOf(e),a.indexOf(t)+1)}();function l(e,t){return 1>=c(e-t)}return{snapsContained:function(){if(t<=e+2)return[o.max];if("keepSnaps"===n)return a;let{min:r,max:i}=s;return a.slice(r,i)}(),scrollContainLimit:s}}(G,et,ee,N,0),ei=H?er:ee,{limit:eo}=function(e,t,r){let n=t[0];return{limit:w(r?n-e:h(t),n)}}(et,ei,T),ea=function e(t,r,n){let{constrain:i}=w(0,t),o=t+1,a=s(r);function s(e){return n?c((o+e)%o):i(e)}function l(){return e(t,a,n)}let u={get:function(){return a}
1,set:function(e){return a=s(e),u},add:function(e){return l().set(a+e)},clone:l};return u}(m(ei),P,T),es=ea.clone(),el=p(r),eu=({dragHandler:e,scrollBody:t,scrollBounds:r,options:{loop:n}})=>{n||r.constrain(e.pointerDown()),t.seek()},ed=({scrollBody:e,translate:t,location:r,offsetLocation:n,previousLocation:i,scrollLooper:o,slideLooper:a,dragHandler:s,animation:l,eventHandler:u,scrollBounds:d,options:{loop:c}},f)=>{let p=e.settled(),h=!d.shouldConstrain(),m=c?p:p&&h;m&&!s.pointerDown()&&(l.stop(),u.emit("settle")),m||u.emit("scroll");let v=r.get()*f+i.get()*(1-f);n.set(v),c&&(o.loop(e.direction()),a.loop()),t.to(n.get())},ec=function(e,t,r,n){let i=b(),o=1e3/60,a=null,s=0,l=0;function u(e){if(!l)return;a||(a=e,r(),r());let i=e-a;for(a=e,s+=i;s>=o;)r(),s-=o;n(s/o),l&&(l=t.requestAnimationFrame(u))}function d(){t.cancelAnimationFrame(l),a=null,s=0,l=0}return{init:function(){i.add(e,"visibilitychange",()=>{e.hidden&&(a=null,s=0)})},destroy:function(){d(),i.clear()},start:function(){l||(l=t.requestAnimationFrame(u))},stop:d,update:r,render:n}}(n,i,()=>eu(eC),e=>ed(eC,e)),ef=ei[ea.get()],ep=x(ef),eh=x(ef),em=x(ef),ev=x(ef),eg=function(e,t,r,n,i,o){let a=0,s=0,l=i,u=.68,d=e.get(),p=0;function h(e){return l=e,v}function m(e){return u=e,v}let v={direction:function(){return s},duration:function(){return l},velocity:function(){return a},seek:function(){let t=n.get()-e.get(),i=0;return l?(r.set(e),a+=t/l,a*=u,d+=a,e.add(a),i=d-p):(a=0,r.set(n),e.set(n),i=t),s=f(i),p=d,v},settled:function(){return .001>c(n.get()-t.get())},useBaseFriction:function(){return m(.68)},useBaseDuration:function(){return h(i)},useFriction:m,useDuration:h};return v}(ep,em,eh,ev,j,.68),ey=function(e,t,r,n,i){let{reachedAny:o,removeOffset:a,constrain:s}=n;function l(e){return e.concat().sort((e,t)=>c(e)-c(t))[0]}function u(t,n){let i=[t,t+r,t-r];if(!e)return t;if(!n)return l(i);let o=i.filter(e=>f(e)===n);return o.length?l(o):h(i)-r}return{byDistance:function(r,n){let l=i.get()+r,{index:d,distance:f}=function(r){let n=e?a(r):s(r),{index:i}=t.map((e,t)=>({diff:u(e-n,0),index:t})).sort((e,t)=>c(e.diff)-c(t.diff))[0];return{index:i,distance:n}}(l),p=!e&&o(l);if(!n||p)return{index:d,distance:r};let h=r+u(t[d]-f,0);return{index:d,distance:h}},byIndex:function(e,r){let n=u(t[e]-i.get(),r);return{index:e,distance:n}},shortcut:u}}(T,ei,et,eo,ev),eb=function(e,t,r,n,i,o,a){function s(i){let s=i.distance,l=i.index!==t.get();
1o.add(s),s&&(n.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(r.set(t.get()),t.set(i.index),a.emit("select"))}return{distance:function(e,t){s(i.byDistance(e,t))},index:function(e,r){let n=t.clone().set(e);s(i.byIndex(n.get(),r))}}}(ec,ea,es,eg,ey,ev,a),ew=function(e){let{max:t,length:r}=e;return{get:function(e){return r?-((e-t)/r):0}}}(eo),ex=b(),e_=function(e,t,r,n){let i,o={},a=null,s=null,l=!1;return{init:function(){i=new IntersectionObserver(e=>{l||(e.forEach(e=>{o[t.indexOf(e.target)]=e}),a=null,s=null,r.emit("slidesInView"))},{root:e.parentElement,threshold:n}),t.forEach(e=>i.observe(e))},destroy:function(){i&&i.disconnect(),l=!0},get:function(e=!0){if(e&&a)return a;if(!e&&s)return s;let t=g(o).reduce((t,r)=>{let n=parseInt(r),{isIntersecting:i}=o[n];return(e&&i||!e&&!i)&&t.push(n),t},[]);return e&&(a=t),e||(s=t),t}}}(t,r,a,M),{slideRegistry:eE}=function(e,t,r,n,i,o){let{groupSlides:a}=i,{min:s,max:l}=n;return{slideRegistry:function(){let n=a(o);return 1===r.length?[o]:e&&"keepSnaps"!==t?n.slice(s,l).map((e,t,r)=>{let n=t===m(r);return t?n?v(m(o)-h(r)[0]+1,h(r)[0]):e:v(h(r[0])+1)}):n}()}}(H,N,ei,en,J,el),eS=function(e,t,r,n,i,o,a,l){let d={passive:!0,capture:!0},c=0;function f(e){"Tab"===e.code&&(c=new Date().getTime())}return{init:function(p){l&&(o.add(document,"keydown",f,!1),t.forEach((t,f)=>{o.add(t,"focus",t=>{(u(l)||l(p,t))&&function(t){if(new Date().getTime()-c>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;let o=r.findIndex(e=>e.includes(t));s(o)&&(i.useDuration(0),n.index(o,0),a.emit("slideFocus"))}(f)},d)}))}}}(e,r,eE,eb,eg,ex,a,V),eC={ownerDocument:n,ownerWindow:i,eventHandler:a,containerRect:z,slideRects:W,animation:ec,axis:U,dragHandler:function(e,t,r,n,i,o,a,s,l,d,p,h,m,v,g,x,_,E,S){let{cross:C,direction:k}=e,P=["INPUT","SELECT","TEXTAREA"],T={passive:!1},j=b(),A=b(),R=w(50,225).constrain(v.measure(20)),M={mouse:300,touch:400},O={mouse:500,touch:600},D=g?43:25,N=!1,I=0,L=0,F=!1,V=!1,B=!1,z=!1;function W(e){if(!y(e,n)&&e.touches.length>=2)return U(e);let t=o.readPoint(e),r=o.readPoint(e,C),a=c(t-I),l=c(r-L);if(!V&&!z&&(!e.cancelable||!(V=a>l)))return U(e);let u=o.pointerMove(e);a>x&&(B=!0),d.useFriction(.3).useDuration(.75),s.start(),i.add(k(u)),e.preventDefault()}function U(e){let t=p.byDistance(0,!1).index!==h.get(),r=o.pointerUp(e)*(g?O:M)[z?"mouse":"touch"],n=function(e,t){let r=h.add(-+f(e)),n=p.byDistance(e,!g).distance;return g||c(e)<R?n:_&&t?.5*n:p.byIndex(r.get(),0).distance}(k(r),t),i=function(e,t){var r,n;if(0===e||0===t||c(e)<=c(t))return 0;let i=(r=c(e),n=c(t),c(r-n));return c(i/e)}(r,n);V=!1,F=!1,A.clear(),d.useDuration(D-10*i).useFriction(.68+i/50),l.distance(n,!g),z=!1,m.emit("pointerUp")}function G(e){B&&(e.stopPropagation(),e.preventDefault(),B=!1)}return{init:function(e){S&&j.add(t,"dragstart",e=>e.preventDefault(),T).add(t,"touchmove",()=>void 0,T).add(t,"touchend",()=>void 0).add(t,"touchstart",s).add(t,"mousedown",s).add(t,"touchcancel",U).add(t,"contextmenu",U).add(t,"click",G,!0);function s(s){(u(S)||S(e,s))&&function(e){let s=y(e,n);if(z=s,B=g&&s&&!e.buttons&&N,N=c(i.get()-a.get())>=2,(!s||0===e.button)&&!function(e){let t=e.nodeName||"";return P.includes(t)}(e.target)){F=!0,o.pointerDown(e),d.useFriction(0).useDuration(0),i.set(a);let n=z?r:t;A.add(n,"touchmove",W,T).add(n,"touchend",U).add(n,"mousemove",W,T).add(n,"mouseup",U),I=o.readPoint(e),L=o.readPoint(e,C),m.emit("pointerDown")}}(s)}},destroy:function(){j.clear(),A.clear()},pointerDown:function(){return F}}}(U,e,n,i,ev,function(e,t){let r,n;function i(e){return e.timeStamp}function o(r,n){let i=n||e.scroll,o=`client${"x"===i?"X":"Y"}`;return(y(r,t)?r:r.touches[0])[o]}return{pointerDown:function(e){return r=e,n=e,o(e)},pointerMove:function(e){let t=o(e)-o(n),a=i(e)-i(r)>170;return n=e,a&&(r=e),t},pointerUp:function(e){if(!r||!n)return 0;let t=o(n)-o(r),a=i(e)-i(r),s=i(e)-i(n)>170,l=t/a;return a&&!s&&c(l)>.1?l:0},readPoint:o}}(U,i),ep,ec,eb,eg,ey,ea,a,Z,A,R,D,0,F),eventStore:ex,percentOfView:Z,index:ea,indexPrevious:es,limit:eo,location:ep,offsetLocation:em,previousLocation:eh,options:o,resizeHandler:function(e,t,r,n,i,o,a){let s,l,d=[e].concat(n),f=[],p=!1;function h(e){return i.measureSize(a.measure(e))}return{init:function(i){o&&(l=h(e),f=n.map(h),s=new ResizeObserver(r=>{(u(o)||o(i,r))&&function(r){for(let o of r){if(p)return;let r=o.target===e,a=n.indexOf(o.target),s=r?l:f[a];if(c(h(r?e:n[a])-s)>=.5){i.reInit(),t.emit("resize");break}}}(r)}),r.requestAnimationFrame(()=>
1{d.forEach(e=>s.observe(e))}))},destroy:function(){p=!0,s&&s.disconnect()}}}(t,a,i,r,U,I,B),scrollBody:eg,scrollBounds:function(e,t,r,n,i){let o=i.measure(10),a=i.measure(50),s=w(.1,.99),l=!1;function u(){return!!(!l&&e.reachedAny(r.get())&&e.reachedAny(t.get()))}return{shouldConstrain:u,constrain:function(i){if(!u())return;let l=e.reachedMin(t.get())?"min":"max",d=c(e[l]-t.get()),f=r.get()-t.get(),p=s.constrain(d/a);r.subtract(f*p),!i&&c(f)<o&&(r.set(e.constrain(r.get())),n.useDuration(25).useBaseFriction())},toggleActive:function(e){l=!e}}}(eo,em,ev,eg,Z),scrollLooper:function(e,t,r,n){let{reachedMin:i,reachedMax:o}=w(t.min+.1,t.max+.1);return{loop:function(t){if(!(1===t?o(r.get()):-1===t&&i(r.get())))return;let a=-(e*+t);n.forEach(e=>e.add(a))}}}(et,eo,em,[ep,em,eh,ev]),scrollProgress:ew,scrollSnapList:ei.map(ew.get),scrollSnaps:ei,scrollTarget:ey,scrollTo:eb,slideLooper:function(e,t,r,n,i,o,a,s,l){let u=p(i),d=p(i).reverse(),c=m(h(d,a[0]),r,!1).concat(m(h(u,t-a[0]-1),-r,!0));function f(e,t){return e.reduce((e,t)=>e-i[t],t)}function h(e,t){return e.reduce((e,r)=>f(e,t)>0?e.concat([r]):e,[])}function m(i,a,u){let d=o.map((e,r)=>({start:e-n[r]+.5+a,end:e+t-.5+a}));return i.map(t=>{let n=u?0:-r,i=u?r:0,o=d[t][u?"end":"start"];return{index:t,loopPoint:o,slideLocation:x(-1),translate:_(e,l[t]),target:()=>s.get()>o?n:i}})}return{canLoop:function(){return c.every(({index:e})=>.1>=f(u.filter(t=>t!==e),t))},clear:function(){c.forEach(e=>e.translate.clear())},loop:function(){c.forEach(e=>{let{target:t,translate:r,slideLocation:n}=e,i=t();i!==n.get()&&(r.to(i),n.set(i))})},loopPoints:c}}(U,G,et,K,q,Q,ei,em,r),slideFocus:eS,slidesHandler:(E=!1,{init:function(e){L&&(d=new MutationObserver(t=>{!E&&(u(L)||L(e,t))&&function(t){for(let r of t)if("childList"===r.type){e.reInit(),a.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){d&&d.disconnect(),E=!0}}),slidesInView:e_,slideIndexes:el,slideRegistry:eE,slidesToScroll:J,target:ev,translate:_(U,t)};return eC}(e,o,a,k,P,r,R);return r.loop&&!n.slideLooper.canLoop()?t(Object.assign({},r,{loop:!1})):n}(B),D([V,...z.map(({options:e})=>e)]).forEach(e=>A.add(e,"change",U)),B.active&&(n.translate.to(n.location.get()),n.animation.init(),n.slidesInView.init(),n.slideFocus.init(H),n.eventHandler.init(H),n.resizeHandler.init(H),n.slidesHandler.init(H),n.options.loop&&n.slideLooper.loop(),o.offsetParent&&a.length&&n.dragHandler.init(H),i=j.init(H,z))}function U(e,t){let r=$();G(),W(M({startIndex:r},e),t),R.emit("reInit")}function G(){n.dragHandler.destroy(),n.eventStore.clear(),n.translate.clear(),n.slideLooper.clear(),n.resizeHandler.destroy(),n.slidesHandler.destroy(),n.slidesInView.destroy(),n.animation.destroy(),j.destroy(),A.clear()}function Z(e,t,r){B.active&&!F&&(n.scrollBody.useBaseFriction().useDuration(!0===t?0:B.duration),n.scrollTo.index(e,r||0))}function $(){return n.index.get()}let H={canScrollNext:function(){return n.index.add(1).get()!==$()},canScrollPrev:function(){return n.index.add(-1).get()!==$()},containerNode:function(){return o},internalEngine:function(){return n},destroy:function(){F||(F=!0,A.clear(),G(),R.emit("destroy"),R.clear())},off:I,on:N,emit:L,plugins:function(){return i},previousScrollSnap:function(){return n.indexPrevious.get()},reInit:U,rootNode:function(){return e},scrollNext:function(e){Z(n.index.add(1).get(),e,-1)},scrollPrev:function(e){Z(n.index.add(-1).get(),e,1)},scrollProgress:function(){return n.scrollProgress.get(n.location.get())},scrollSnapList:function(){return n.scrollSnapList},scrollTo:Z,selectedScrollSnap:$,slideNodes:function(){return a},slidesInView:function(){return n.slidesInView.get()},slidesNotInView:function(){return n.slidesInView.get(!1)}};return W(t,r),setTimeout(()=>R.emit("init"),0),H}function C(e={}
1,t=[]){let r=(0,n.useRef)(e),i=(0,n.useRef)(t),[s,l]=(0,n.useState)(),[u,d]=(0,n.useState)(),c=(0,n.useCallback)(()=>{s&&s.reInit(r.current,i.current)},[s]);return(0,n.useEffect)(()=>{o(r.current,e)||(r.current=e,c())},[e,c]),(0,n.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let r=a(e),n=a(t);return r.every((e,t)=>o(e,n[t]))}(i.current,t)&&(i.current=t,c())},[t,c]),(0,n.useEffect)(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&u){S.globalOptions=C.globalOptions;let e=S(u,r.current,i.current);return l(e),()=>e.destroy()}l(void 0)},[u,l]),[d,s]}S.globalOptions=void 0,C.globalOptions=void 0}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.