(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7378],{7544:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(2265),a=n(7715),i=r&&"object"==typeof r&&"default"in r?r:{default:r},o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function l(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)0>t.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function u(){return Math.min(Math.max(1,"undefined"!=typeof window&&"number"==typeof window.devicePixelRatio?window.devicePixelRatio:1),3)}"function"==typeof SuppressedError&&SuppressedError;var c=function(){function e(){}return e.prototype.observe=function(){},e.prototype.unobserve=function(){},e.prototype.disconnect=function(){},e}(),s=globalThis.ResizeObserver||c,f=void 0!==globalThis.ResizeObserver,d=!f,h={useDevicePixelRatio:!0,fitCanvasToArtboardHeight:!1,useOffscreenRenderer:!0,shouldResizeCanvasToContainer:!0};function p(e){return Object.assign({},h,e)}function v(e){var t,n,a,i,o,l,c,h,v,m,y,b=e.riveLoaded,g=void 0!==b&&b,w=e.canvasElem,E=e.containerRef,P=e.options,O=e.onCanvasHasResized,x=e.artboardBounds,R=p(void 0===P?{}:P),C=r.useState({height:0,width:0}),j=C[0],_=j.height,N=j.width,S=C[1],k=r.useState({height:0,width:0}),M=k[0],L=M.height,z=M.width,T=k[1],H=r.useState(!0),A=H[0],$=H[1],I=R.fitCanvasToArtboardHeight,W=R.shouldResizeCanvasToContainer,D=R.useDevicePixelRatio,V=R.customDevicePixelRatio,F=(void 0===(t=W)&&(t=!0),a=(n=r.useState({width:0,height:0}))[0],i=n[1],r.useEffect(function(){if("undefined"!=typeof window&&t){var e=function(){i({width:window.innerWidth,height:window.innerHeight})};return d&&(e(),window.addEventListener("resize",e)),function(){return window.removeEventListener("resize",e)}}},[]),c=r.useRef(new s((o=function(e){f&&i({width:e[e.length-1].contentRect.width,height:e[e.length-1].contentRect.height})},l=0,function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];clearTimeout(l),l=window.setTimeout(function(){return o.apply(e,t)},0)}))),r.useEffect(function(){var e=c.current;if(t){var n=E.current;return E.current&&f&&e.observe(E.current),function(){e.disconnect(),n&&f&&e.unobserve(n)}}e.disconnect()},[E,c]),a),Z=(h=V||u(),m=(v=r.useState(h))[0],y=v[1],r.useEffect(function(){if("undefined"!=typeof window&&"matchMedia"in window){var e=function(){y(V||u())},t=window.matchMedia("screen and (resolution: ".concat(m,"dppx)"));return t.hasOwnProperty("addEventListener")?t.addEventListener("change",e):t.addListener(e),function(){t.hasOwnProperty("removeEventListener")?t.removeEventListener("change",e):t.removeListener(e)}}},[m,V]),m),B=null!=x?x:{},U=B.maxX,X=B.maxY,Y=r.useCallback(function(){var e,t,n,r,a=null!==(t=null===(e=E.current)||void 0===e?void 0:e.clientWidth)&&void 0!==t?t:0,i=null!==(r=null===(n=E.current)||void 0===n?void 0:n.clientHeight)&&void 0!==r?r:0;return I&&x?{width:a,height:x.maxY/x.maxX*a}:{width:a,height:i}},[E,I,U,X]);r.useEffect(function(){if(W&&E.current&&g){var e=Y(),t=e.width,n=e.height,r=!1;if(w){var a=t!==N||n!==_;if(R.fitCanvasToArtboardHeight&&a&&(E.current.style.height=n+"px",r=!0),R.useDevicePixelRatio){if(a||t*Z!==z||n*Z!==L){var i=Z*t,o=Z*n;w.width=i,w.height=o,w.style.width=t+"px",w.style.height=n+"px",T({width:i,height:o}),r=!0}}else a&&(w.width=t,w.height=n,T({width:t,height:n}),r=!0);S({width:t,height:n})}O&&(A||r)&&O&&O(),A&&$(!1)}},[w,E,F,Z,Y,A,$,L,z,_,N,O,W,I,D,g]),r.useEffect(function(){T({width:0,height:0})},[w])}var m,y=function(){function e(){}return e.prototype.observe=function(){},e.prototype.unobserve=function(){},e.prototype.disconnect=function(){},e}(),b=globalThis.IntersectionObserver||y,g=function(){function e(){var e=this;this.elementsMap=new Map,this.onObserved=function(t){t.forEach(function(t){var n=e.elementsMap.get(t.target);n&&n(t)})},this.observer=new b(this.onObserved)}return e.prototype.registerCallback=function(e,t){this.observer.observe(e),this.elementsMap.set(e,t)},e.prototype.removeCallback=function(e){this.observer.unobserve(e),this.elementsMap.delete(e)},e}(),w=function(){return m||(m=new g),m};function E(e){var t=e.setContainerRef,n=e.setCanvasRef,r=e.className,a=void 0===r?"":r,u=e.style,c=e.children,s=l(e,["setContainerRef","setCanvasRef","className","style","children"]),f=o({width:"100%",height:"100%"},u);return i.default.createElement("div",o({ref:t,className:a},!a&&{style:f}),i.default.createElement("canvas",o({ref:n,style:{verticalAlign:"top",width:0,height:0}},s),c))}function P(e,t){void 0===t&&(t={});var n=r.useState(null),l=n[0],u=n[1],c=r.useRef(null),s=r.useState(null),f=s[0],d=s[1],h=p(t),m=r.useCallback(function(){f&&(f.startRendering(),f.resizeToCanvas())},[f]);v({riveLoaded:!!f,canvasElem:l,containerRef:c,options:h,onCanvasHasResized:m,artboardBounds:null==f?void 0:f.bounds});var y=r.useCallback(function(e){null===e&&l&&(l.height=0,l.width=0),u(e)},[]);r.useEffect(function(){if(l&&e&&null==f){var t=h.useOffscreenRenderer,n=new a.Rive(o(o({useOffscreenRenderer:t},e),{canvas:l}));n.on(a.EventType.Load,function(){l?d(n):n.cleanup()})}},[l,!!e,f]);var b=r.useCallback(function(e){c.current=e},[]),g={observe:r.useCallback(function(e,t){w().registerCallback(e,t)},[]),unobserve:r.useCallback(function(e){w().removeCallback(e)},[])},P=g.observe,O=g.unobserve;r.useEffect(function(){var e,t=!1,n=function(){if(l&&t){var e=l.getBoundingClientRect();e.width>0&&e.height>0&&e.top<(window.innerHeight||document.documentElement.clientHeight)&&e.bottom>0&&e.left<(window.innerWidth||document.documentElement.clientWidth)&&e.right>0&&(null==f||f.startRendering(),t=!1)}};return l&&!1!==h.shouldUseIntersectionObserver&&P(l,function(r){r.isIntersecting?f&&f.startRendering():f&&f.stopRendering(),t=!r.isIntersecting,clearTimeout(e),r.isIntersecting||0!==r.boundingClientRect.width||(e=setTimeout(n,10))}),function(){l&&O(l)}},[P,O,f,l,h.shouldUseIntersectionObserver]),r.useEffect(function(){return function(){f&&(f.cleanup(),d(null))}},[f,l]);var x=null==e?void 0:e.animations;r.useEffect(function(){f&&x&&(f.isPlaying?(f.stop(f.animationNames),f.play(x)):f.isPaused&&(f.stop(f.animationNames),f.pause(x)))},[x,f]);var R=r.useCallback(function(e){return i.default.createElement(E,o({setContainerRef:b,setCanvasRef:y},e))},[y,b]);return{canvas:l,container:c.current,setCanvasRef:y,setContainerRef:b,rive:f,RiveComponent:R}}t.default=function(e){var t=e.src,n=e.artboard,r=e.animations,a=e.stateMachines,u=e.layout,c=e.useOffscreenRenderer,s=e.shouldDisableRiveListeners,f=e.shouldResizeCanvasToContainer,d=e.automaticallyHandleEvents,h=e.children,p=l(e,["src","artboard","animations","stateMachines","layout","useOffscreenRenderer","shouldDisableRiveListeners","shouldResizeCanvasToContainer","automaticallyHandleEvents","children"]),v=P({src:t,artboard:n,animations:r,layout:u,stateMachines:a,autoplay:!0,shouldDisableRiveListeners:void 0!==s&&s,automaticallyHandleEvents:void 0!==d&&d},{useOffscreenRenderer:void 0===c||c,shouldResizeCanvasToContainer:void 0===f||f}).RiveComponent;return i.default.createElement(v,o({},p),h)},t.useResizeCanvas=v,t.useRive=P,t.useRiveFile=function(e){var t=this,n=r.useState(null),i=n[0],o=n[1],l=r.useState("idle"),u=l[0],c=l[1];return r.useEffect(function(){var n,r,i,l=null;return n=void 0,r=void 0,i=function(){return function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(u){return function(l){if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(o=0)),o;)try{if(n=1,r&&(a=2&l[0]?r.return:l[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,l[1])).done)return a;switch(r=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===l[0]||2===l[0])){o=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){o.label=l[1];break}if(6===l[0]&&o.label<a[1]){o.label=a[1],a=l;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(l);break}a[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(e){l=[6,e],r=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,u])}}}(this,function(t){return c("loading"),(l=new a.RiveFile(e)).init(),l.on(a.EventType.Load,function(){null==l||l.getInstance(),o(l),c("success")}),l.on(a.EventType.LoadError,function(){c("failed")}),o(l),[2]})},new(r||(r=Promise))(function(e,a){function o(e){try{u(i.next(e))}catch(e){a(e)}}function l(e){try{u(i.throw(e))}catch(e){a(e)}}function u(t){var n;t.done?e(t.value):((n=t.value)instanceof r?n:new r(function(e){e(n)})).then(o,l)}u((i=i.apply(t,n||[])).next())}),function(){null==l||l.cleanup()}},[e.src,e.buffer]),{riveFile:i,status:u}},t.useStateMachineInput=function(e,t,n,i){var o=r.useState(null),l=o[0],u=o[1];return r.useEffect(function(){function r(){if(e&&t&&n||u(null),e&&t&&n){var r=e.stateMachineInputs(t);if(r){var a=r.find(function(e){return e.name===n});void 0!==i&&a&&(a.value=i),u(a||null)}}else u(null)}r(),e&&e.on(a.EventType.Play,function(){r()})},[e]),l},Object.keys(a).forEach(function(e){"default"===e||t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})})},2182:function(e,t,n){"use strict";n.d(t,{default:function(){return h}});var r=n(2887),a=n(7138),i=n(6463),o=n(2265),l=n(9773);let u="locale";function c(e){return"object"==typeof e?null==e.host&&null==e.hostname:!/^[a-z]+:/i.test(e)}function s(e,t){let n;return"string"==typeof e?n=f(t,e):(n={...e},e.pathname&&(n.pathname=f(t,e.pathname))),n}function f(e,t){let n="/"+e;return/^\/(\?.*)?$/.test(t)&&(t=t.slice(1)),n+=t}let d=(0,o.forwardRef)(function(e,t){let{href:n,locale:f,localePrefix:d,prefetch:h,...p}=e,v=(0,i.usePathname)(),m=function(){let e;let t=(0,i.useParams)();try{e=(0,l.useLocale)()}catch(n){if("string"!=typeof(null==t?void 0:t[u]))throw n;e=t[u]}return e}(),y=f!==m,[b,g]=(0,o.useState)(()=>c(n)&&("never"!==d||y)?s(n,f):n);return(0,o.useEffect)(()=>{v&&"never"!==d&&g(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3?arguments[3]:void 0;if(!c(e)||function(e){let t="object"==typeof e?e.pathname:e;return null!=t&&!t.startsWith("/")}(e))return e;let a=t!==n,i=null==t||function(e,t){let n="/".concat(e);return t===n||t.startsWith("".concat(n,"/"))}(t,r);return(a||i)&&null!=t?s(e,t):e}(n,f,m,null!=v?v:void 0))},[m,n,f,d,v]),y&&(h&&console.error("The `prefetch` prop is currently not supported when using the `locale` prop on `Link` to switch the locale.`"),h=!1),o.createElement(a.default,(0,r.g)({ref:t,href:b,prefetch:h},p))});d.displayName="ClientLink";var h=d},11:function(e,t,n){"use strict";n.d(t,{default:function(){return o}});var r=n(2887),a=n(2265),i=n(4480);function o(e){let{locale:t,...n}=e;if(!t)throw Error("Failed to determine locale in `NextIntlClientProvider`, please provide the `locale` prop explicitly.\n\nSee https://next-intl-docs.vercel.app/docs/configuration#locale");return a.createElement(i.IntlProvider,(0,r.g)({locale:t},n))}},5758:function(e,t,n){"use strict";var r=n(5332),a=n(6693);t.iV=r.default,a.default},8379:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(925),a=n(2265),i=n(294),o=n(1165),l=a&&a.__esModule?a:{default:a};let u=a.forwardRef(function(e,t){let{locale:n,...a}=e,u=i.default(),c=n||u;return l.default.createElement(o.default,r.extends({ref:t,hrefLang:c,locale:c},a))});u.displayName="ClientLink",t.default=u},6477:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(294),a=n(1265);t.default=function(e){let t;try{t=r.default()}catch(e){throw Error(void 0)}for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return a.default({...e,locale:t},...i)}},6693:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(925),a=n(2265),i=n(294),o=n(6569),l=n(8379),u=n(6477),c=n(6148),s=n(1337),f=a&&a.__esModule?a:{default:a};t.default=function(e){function t(){let t=i.default();if(!e.locales.includes(t))throw Error(void 0);return t}let n=a.forwardRef(function(n,a){let{href:i,locale:u,...c}=n,s=t(),d=u||s;return f.default.createElement(l.default,r.extends({ref:a,href:o.compileLocalizedPathname({locale:d,pathname:i,params:"object"==typeof i?i.params:void 0,pathnames:e.pathnames}),locale:u,localePrefix:e.localePrefix},c))});function d(t){let{href:n,locale:r}=t;return o.compileLocalizedPathname({...o.normalizeNameOrNameWithParams(n),locale:r,pathnames:e.pathnames})}return n.displayName="Link",{Link:n,redirect:function(n){let r=d({href:n,locale:t()});for(var a=arguments.length,i=Array(a>1?a-1:0),o=1;o<a;o++)i[o-1]=arguments[o];return u.default({...e,pathname:r},...i)},usePathname:function(){let n=c.default(),r=t();return n?o.getRoute({pathname:n,locale:r,pathnames:e.pathnames}):n},useRouter:function(){let e=s.default(),n=t();return{...e,push(t){for(var r,a=arguments.length,i=Array(a>1?a-1:0),o=1;o<a;o++)i[o-1]=arguments[o];let l=d({href:t,locale:(null===(r=i[0])||void 0===r?void 0:r.locale)||n});return e.push(l,...i)},replace(t){for(var r,a=arguments.length,i=Array(a>1?a-1:0),o=1;o<a;o++)i[o-1]=arguments[o];let l=d({href:t,locale:(null===(r=i[0])||void 0===r?void 0:r.locale)||n});return e.replace(l,...i)},prefetch(t){for(var r,a=arguments.length,i=Array(a>1?a-1:0),o=1;o<a;o++)i[o-1]=arguments[o];let l=d({href:t,locale:(null===(r=i[0])||void 0===r?void 0:r.locale)||n});return e.prefetch(l,...i)}}},getPathname:d}}},5332:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(925),a=n(2265),i=n(8379),o=n(6477),l=n(6148),u=n(1337),c=a&&a.__esModule?a:{default:a};t.default=function(e){let t=a.forwardRef(function(t,n){return c.default.createElement(i.default,r.extends({ref:n,localePrefix:e.localePrefix},t))});return t.displayName="Link",{Link:t,redirect:function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return o.default({...e,pathname:t},...r)},usePathname:function(){return l.default()},useRouter:u.default}}},6148:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6463),a=n(2265),i=n(294),o=n(8830);t.default=function(){let e=r.usePathname(),t=i.default();return a.useMemo(()=>e&&o.hasPathnamePrefixed(t,e)?o.unlocalizePathname(e,t):e,[t,e])}},1337:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6463),a=n(2265),i=n(294),o=n(8830);t.default=function(){let e=r.useRouter(),t=i.default();return a.useMemo(()=>{function n(e,n){return o.localizeHref(e,n||t,t,window.location.pathname)}return{...e,push(t,r){let{locale:a,...i}=r||{},o=[n(t,a)];return Object.keys(i).length>0&&o.push(i),e.push(...o)},replace(t,r){let{locale:a,...i}=r||{},o=[n(t,a)];return Object.keys(i).length>0&&o.push(i),e.replace(...o)},prefetch(t,r){let{locale:a,...i}=r||{},o=[n(t,a)];return Object.keys(i).length>0&&o.push(i),e.prefetch(...o)}}},[t,e])}},1165:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(925),a=n(7138),i=n(6463),o=n(2265),l=n(294),u=n(8830);function c(e){return e&&e.__esModule?e:{default:e}}var s=c(a),f=c(o);let d=o.forwardRef(function(e,t){let{href:n,locale:a,localePrefix:c,prefetch:d,...h}=e,p=i.usePathname(),v=l.default(),m=a!==v,[y,b]=o.useState(()=>u.isLocalHref(n)&&("never"!==c||m)?u.prefixHref(n,a):n);return o.useEffect(()=>{p&&"never"!==c&&b(u.localizeHref(n,a,v,null!=p?p:void 0))},[v,n,a,c,p]),m&&(d=!1),f.default.createElement(s.default,r.extends({ref:t,href:y,prefetch:d},h))});d.displayName="ClientLink",t.default=d},1265:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6463),a=n(8830);t.default=function(e){let t="never"===e.localePrefix?e.pathname:a.prefixPathname(e.locale,e.pathname);for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return r.redirect(t,...i)}},6569:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8830);function a(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))Array.isArray(r)?r.forEach(e=>{t.append(n,String(e))}):t.set(n,String(r));return"?"+t.toString()}t.compileLocalizedPathname=function(e){let{pathname:t,locale:n,params:r,pathnames:i,query:o}=e;function l(e){let t=i[e];return t||(t=e),t}function u(e){let t="string"==typeof e?e:e[n];return r&&Object.entries(r).forEach(e=>{let[n,r]=e;t=Array.isArray(r)?t.replace(RegExp("(\\[)?\\[...".concat(n,"\\](\\])?"),"g"),r.map(e=>String(e)).join("/")):t.replace("[".concat(n,"]"),String(r))}),o&&(t+=a(o)),t}if("string"==typeof t)return u(l(t));{let{pathname:e,...n}=t;return{...n,pathname:u(l(e))}}},t.getRoute=function(e){var t;let{locale:n,pathname:a,pathnames:i}=e,o=r.unlocalizePathname(a,n),l=null===(t=Object.entries(i).find(e=>{let[,t]=e,a="string"!=typeof t?t[n]:t;return r.matchesPathname(a,o)}))||void 0===t?void 0:t[0];return l||(l=a),l},t.normalizeNameOrNameWithParams=function(e){return"string"==typeof e?{pathname:e}:e},t.serializeSearchParams=a},8830:function(e,t){"use strict";function n(e){let t="object"==typeof e?e.pathname:e;return null!=t&&!t.startsWith("/")}function r(e){return"object"==typeof e?null==e.host&&null==e.hostname:!/^[a-z]+:/i.test(e)}function a(e,t){let n;return"string"==typeof e?n=i(t,e):(n={...e},e.pathname&&(n.pathname=i(t,e.pathname))),n}function i(e,t){let n="/"+e;return/^\/(\?.*)?$/.test(t)&&(t=t.slice(1)),n+=t}function o(e,t){let n="/".concat(e);return t===n||t.startsWith("".concat(n,"/"))}function l(e){let t=e.replace(/\[([^\]]+)\]/g,e=>e.startsWith("[...")||e.startsWith("[[...")?"(.*)":"([^/]+)").replaceAll("(.*)]","(.*)");return new RegExp("^".concat(t,"$"))}Object.defineProperty(t,"__esModule",{value:!0}),t.hasPathnamePrefixed=o,t.isLocalHref=r,t.isRelativeHref=n,t.localizeHref=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,l=arguments.length>3?arguments[3]:void 0;if(!r(e)||n(e))return e;let u=t!==i,c=null==t||o(t,l);return(u||c)&&null!=t?a(e,t):e},t.matchesPathname=function(e,t){return l(e).test(t)},t.prefixHref=a,t.prefixPathname=i,t.templateToRegex=l,t.unlocalizePathname=function(e,t){return e.replace(new RegExp("^/".concat(t)),"")||"/"}},2988:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}n.d(t,{Z:function(){return r}})},1584:function(e,t,n){"use strict";n.d(t,{F:function(){return a},e:function(){return i}});var r=n(2265);function a(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function i(...e){return(0,r.useCallback)(a(...e),e)}},8324:function(e,t,n){"use strict";n.d(t,{b:function(){return i},k:function(){return a}});var r=n(2265);function a(e,t){let n=(0,r.createContext)(t);function a(e){let{children:t,...a}=e,i=(0,r.useMemo)(()=>a,Object.values(a));return(0,r.createElement)(n.Provider,{value:i},t)}return a.displayName=e+"Provider",[a,function(a){let i=(0,r.useContext)(n);if(i)return i;if(void 0!==t)return t;throw Error(`\`${a}\` must be used within \`${e}\``)}]}function i(e,t=[]){let n=[],a=()=>{let t=n.map(e=>(0,r.createContext)(e));return function(n){let a=(null==n?void 0:n[e])||t;return(0,r.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:a}}),[n,a])}};return a.scopeName=e,[function(t,a){let i=(0,r.createContext)(a),o=n.length;function l(t){let{scope:n,children:a,...l}=t,u=(null==n?void 0:n[e][o])||i,c=(0,r.useMemo)(()=>l,Object.values(l));return(0,r.createElement)(u.Provider,{value:c},a)}return n=[...n,a],l.displayName=t+"Provider",[l,function(n,l){let u=(null==l?void 0:l[e][o])||i,c=(0,r.useContext)(u);if(c)return c;if(void 0!==a)return a;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let a=n.reduce((t,{useScope:n,scopeName:r})=>{let a=n(e)[`__scope${r}`];return{...t,...a}},{});return(0,r.useMemo)(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}(a,...t)]}},5171:function(e,t,n){"use strict";n.d(t,{WV:function(){return l},jH:function(){return u}});var r=n(2988),a=n(2265),i=n(4887),o=n(1538);let l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,a.forwardRef)((e,n)=>{let{asChild:i,...l}=e,u=i?o.g7:t;return(0,a.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,a.createElement)(u,(0,r.Z)({},l,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function u(e,t){e&&(0,i.flushSync)(()=>e.dispatchEvent(t))}},6506:function(e,t,n){"use strict";n.d(t,{fC:function(){return g},z$:function(){return w}});var r=n(2988),a=n(2265),i=n(8324),o=n(5171);let l="Progress",[u,c]=(0,i.b)(l),[s,f]=u(l),d=(0,a.forwardRef)((e,t)=>{let{__scopeProgress:n,value:i,max:l,getValueLabel:u=p,...c}=e,f=y(l)?l:100,d=b(i,f)?i:null,h=m(d)?u(d,f):void 0;return(0,a.createElement)(s,{scope:n,value:d,max:f},(0,a.createElement)(o.WV.div,(0,r.Z)({"aria-valuemax":f,"aria-valuemin":0,"aria-valuenow":m(d)?d:void 0,"aria-valuetext":h,role:"progressbar","data-state":v(d,f),"data-value":null!=d?d:void 0,"data-max":f},c,{ref:t})))});d.propTypes={max(e,t,n){let r=e[t],a=String(r);return r&&!y(r)?Error(`Invalid prop \`max\` of value \`${a}\` supplied to \`${n}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`):null},value(e,t,n){let r=e[t],a=String(r),i=y(e.max)?e.max:100;return null==r||b(r,i)?null:Error(`Invalid prop \`value\` of value \`${a}\` supplied to \`${n}\`. The \`value\` prop must be:
  - a positive number
  - less than the value passed to \`max\` (or 100 if no \`max\` prop is set)
  - \`null\` if the progress is indeterminate.

Defaulting to \`null\`.`)}};let h=(0,a.forwardRef)((e,t)=>{var n;let{__scopeProgress:i,...l}=e,u=f("ProgressIndicator",i);return(0,a.createElement)(o.WV.div,(0,r.Z)({"data-state":v(u.value,u.max),"data-value":null!==(n=u.value)&&void 0!==n?n:void 0,"data-max":u.max},l,{ref:t}))});function p(e,t){return`${Math.round(e/t*100)}%`}function v(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function m(e){return"number"==typeof e}function y(e){return m(e)&&!isNaN(e)&&e>0}function b(e,t){return m(e)&&!isNaN(e)&&e<=t&&e>=0}let g=d,w=h},1538:function(e,t,n){"use strict";n.d(t,{g7:function(){return o}});var r=n(2988),a=n(2265),i=n(1584);let o=(0,a.forwardRef)((e,t)=>{let{children:n,...i}=e,o=a.Children.toArray(n),u=o.find(c);if(u){let e=u.props.children,n=o.map(t=>t!==u?t:a.Children.count(e)>1?a.Children.only(null):(0,a.isValidElement)(e)?e.props.children:null);return(0,a.createElement)(l,(0,r.Z)({},i,{ref:t}),(0,a.isValidElement)(e)?(0,a.cloneElement)(e,void 0,n):null)}return(0,a.createElement)(l,(0,r.Z)({},i,{ref:t}),n)});o.displayName="Slot";let l=(0,a.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,a.isValidElement)(n)?(0,a.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...e)=>{i(...e),a(...e)}:a&&(n[r]=a):"style"===r?n[r]={...a,...i}:"className"===r&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?(0,i.F)(t,n.ref):n.ref}):a.Children.count(n)>1?a.Children.only(null):null});l.displayName="SlotClone";let u=({children:e})=>(0,a.createElement)(a.Fragment,null,e);function c(e){return(0,a.isValidElement)(e)&&e.type===u}},1810:function(e,t,n){"use strict";n.d(t,{w_:function(){return s}});var r=n(2265),a={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i=r.createContext&&r.createContext(a),o=["attr","size","title"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){var r,a;r=t,a=n[t],(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(r))in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e){return t=>r.createElement(f,l({attr:c({},e.attr)},t),function e(t){return t&&t.map((t,n)=>r.createElement(t.tag,c({key:n},t.attr),e(t.child)))}(e.child))}function f(e){var t=t=>{var n,{attr:a,size:i,title:u}=e,s=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,o),f=i||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",l({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,a,s,{className:n,style:c(c({color:e.color||t.color},t.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),u&&r.createElement("title",null,u),e.children)};return void 0!==i?r.createElement(i.Consumer,null,e=>t(e)):t(a)}}}]);