"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[241],{88751:(ce,ie,O)=>{var C="Expected a function",K=NaN,V="[object Symbol]",ee=/^\s+|\s+$/g,m=/^[-+]0x[0-9a-f]+$/i,E=/^0b[01]+$/i,ae=/^0o[0-7]+$/i,de=parseInt,te=typeof O.g=="object"&&O.g&&O.g.Object===Object&&O.g,ne=typeof self=="object"&&self&&self.Object===Object&&self,le=te||ne||Function("return this")(),I=Object.prototype,$=I.toString,G=Math.max,re=Math.min,M=function(){return le.Date.now()};function oe(f,w,p){var L,_,A,D,y,R,x=0,B=!1,W=!1,F=!0;if(typeof f!="function")throw new TypeError(C);w=z(w)||0,j(p)&&(B=!!p.leading,W="maxWait"in p,A=W?G(z(p.maxWait)||0,w):A,F="trailing"in p?!!p.trailing:F);function N(v){var k=L,T=_;return L=_=void 0,x=v,D=f.apply(T,k),D}function ge(v){return x=v,y=setTimeout(U,w),B?N(v):D}function P(v){var k=v-R,T=v-x,se=w-k;return W?re(se,A-T):se}function Q(v){var k=v-R,T=v-x;return R===void 0||k>=w||k<0||W&&T>=A}function U(){var v=M();if(Q(v))return X(v);y=setTimeout(U,P(v))}function X(v){return y=void 0,F&&L?N(v):(L=_=void 0,D)}function ve(){y!==void 0&&clearTimeout(y),x=0,L=R=_=y=void 0}function H(){return y===void 0?D:X(M())}function Z(){var v=M(),k=Q(v);if(L=arguments,_=this,R=v,k){if(y===void 0)return ge(R);if(W)return y=setTimeout(U,w),N(R)}return y===void 0&&(y=setTimeout(U,w)),D}return Z.cancel=ve,Z.flush=H,Z}function j(f){var w=typeof f;return!!f&&(w=="object"||w=="function")}function fe(f){return!!f&&typeof f=="object"}function Y(f){return typeof f=="symbol"||fe(f)&&$.call(f)==V}function z(f){if(typeof f=="number")return f;if(Y(f))return K;if(j(f)){var w=typeof f.valueOf=="function"?f.valueOf():f;f=j(w)?w+"":w}if(typeof f!="string")return f===0?f:+f;f=f.replace(ee,"");var p=E.test(f);return p||ae.test(f)?de(f.slice(2),p?2:8):m.test(f)?K:+f}ce.exports=oe},35241:(ce,ie,O)=>{O.d(ie,{Es:()=>m,ML:()=>E,lW:()=>he});var C=O(48322),K=O(88751),V=O.n(K);function ee(e=!1){if(typeof e!="boolean")throw new Error("defaultValue must be `true` or `false`");const[t,n]=useState(e),o=useCallback(()=>{n(!0)},[]),s=useCallback(()=>{n(!1)},[]),c=useCallback(()=>{n(r=>!r)},[]);return{value:t,setValue:n,setTrue:o,setFalse:s,toggle:c}}var m=typeof window<"u"?C.useLayoutEffect:C.useEffect;function E(e,t,n,o){const s=(0,C.useRef)(t);m(()=>{s.current=t},[t]),(0,C.useEffect)(()=>{const c=n?.current??window;if(!(c&&c.addEventListener))return;const r=u=>{s.current(u)};return c.addEventListener(e,r,o),()=>{c.removeEventListener(e,r,o)}},[e,n,o])}function ae(e){E("click",t=>{e(t)})}function de(){const[e,t]=useState(null),n=useCallback(async o=>{if(!navigator?.clipboard)return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(o),t(o),!0}catch(s){return console.warn("Copy failed",s),t(null),!1}},[]);return[e,n]}function te(e){const[t,n]=useState(e??0),o=useCallback(()=>{n(r=>r+1)},[]),s=useCallback(()=>{n(r=>r-1)},[]),c=useCallback(()=>{n(e??0)},[e]);return{count:t,increment:o,decrement:s,reset:c,setCount:n}}function ne(e,t){const n=useRef(e);m(()=>{n.current=e},[e]),useEffect(()=>{if(t===null)return;const o=setInterval(()=>{n.current()},t);return()=>{clearInterval(o)}},[t])}function le({countStart:e,countStop:t=0,intervalMs:n=1e3,isIncrement:o=!1}){const{count:s,increment:c,decrement:r,reset:u}=te(e),{value:a,setTrue:d,setFalse:g}=ee(!1),S=useCallback(()=>{g(),u()},[g,u]),i=useCallback(()=>{if(s===t){g();return}o?c():r()},[s,t,r,c,o,g]);return ne(i,a?n:null),[s,{startCountdown:d,stopCountdown:g,resetCountdown:S}]}function I(e){const t=useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return m(()=>{t.current=e},[e]),useCallback((...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[t])}var $=typeof window>"u";function G(e,t,n={}){const{initializeWithValue:o=!0}=n,s=useCallback(i=>n.serializer?n.serializer(i):JSON.stringify(i),[n]),c=useCallback(i=>{if(n.deserializer)return n.deserializer(i);if(i==="undefined")return;const l=t instanceof Function?t():t;let h;try{h=JSON.parse(i)}catch(b){return console.error("Error parsing JSON:",b),l}return h},[n,t]),r=useCallback(()=>{const i=t instanceof Function?t():t;if($)return i;try{const l=window.localStorage.getItem(e);return l?c(l):i}catch(l){return console.warn(`Error reading localStorage key \u201C${e}\u201D:`,l),i}},[t,e,c]),[u,a]=useState(()=>o?r():t instanceof Function?t():t),d=I(i=>{$&&console.warn(`Tried setting localStorage key \u201C${e}\u201D even though environment is not a client`);try{const l=i instanceof Function?i(r()):i;window.localStorage.setItem(e,s(l)),a(l),window.dispatchEvent(new StorageEvent("local-storage",{key:e}))}catch(l){console.warn(`Error setting localStorage key \u201C${e}\u201D:`,l)}}),g=I(()=>{$&&console.warn(`Tried removing localStorage key \u201C${e}\u201D even though environment is not a client`);const i=t instanceof Function?t():t;window.localStorage.removeItem(e),a(i),window.dispatchEvent(new StorageEvent("local-storage",{key:e}))});useEffect(()=>{a(r())},[e]);const S=useCallback(i=>{i.key&&i.key!==e||a(r())},[e,r]);return E("storage",S),E("local-storage",S),[u,d,g]}var re=typeof window>"u";function M(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){const o=u=>re?t:window.matchMedia(u).matches,[s,c]=useState(()=>n?o(e):t);function r(){c(o(e))}return m(()=>{const u=window.matchMedia(e);return r(),u.addListener?u.addListener(r):u.addEventListener("change",r),()=>{u.removeListener?u.removeListener(r):u.removeEventListener("change",r)}},[e]),s}var oe="(prefers-color-scheme: dark)",j="usehooks-ts-dark-mode";function fe(e={}){const{defaultValue:t,localStorageKey:n=j,initializeWithValue:o=!0}=e,s=M(oe,{initializeWithValue:o,defaultValue:t}),[c,r]=G(n,t??s??!1,{initializeWithValue:o});return m(()=>{s!==c&&r(s)},[s]),{isDarkMode:c,toggle:()=>{r(u=>!u)},enable:()=>{r(!0)},disable:()=>{r(!1)},set:u=>{r(u)}}}function Y(e){const t=(0,C.useRef)(e);t.current=e,(0,C.useEffect)(()=>()=>{t.current()},[])}function z(e,t=500,n){const o=(0,C.useRef)();Y(()=>{o.current&&o.current.cancel()});const s=(0,C.useMemo)(()=>{const c=V()(e,t,n),r=(...u)=>c(...u);return r.cancel=()=>{c.cancel()},r.isPending=()=>!!o.current,r.flush=()=>c.flush(),r},[e,t,n]);return(0,C.useEffect)(()=>{o.current=V()(e,t,n)},[e,t,n]),s}function f(e,t,n){const o=n?.equalityFn??((d,g)=>d===g),s=e instanceof Function?e():e,[c,r]=useState(s),u=useRef(s),a=z(r,t,n);return o(u.current,s)||(a(s),u.current=s),[c,a]}function w(e,t={}){const{preserveTitleOnUnmount:n=!0}=t,o=useRef(null);m(()=>{o.current=window.document.title},[]),m(()=>{window.document.title=e},[e]),Y(()=>{!n&&o.current&&(window.document.title=o.current)})}function p(e){const[t,n]=useState(!1),o=()=>{n(!0)},s=()=>{n(!1)};return E("mouseenter",o,e),E("mouseleave",s,e),t}function L({threshold:e=0,root:t=null,rootMargin:n="0%",freezeOnceVisible:o=!1,initialIsIntersecting:s=!1,onChange:c}={}){var r;const[u,a]=useState(null),[d,g]=useState(()=>({isIntersecting:s,entry:void 0})),S=useRef();S.current=c;const i=((r=d.entry)==null?void 0:r.isIntersecting)&&o;useEffect(()=>{if(!u||!("IntersectionObserver"in window)||i)return;let b;const J=new IntersectionObserver(we=>{const Ee=Array.isArray(J.thresholds)?J.thresholds:[J.thresholds];we.forEach(q=>{const ue=q.isIntersecting&&Ee.some(be=>q.intersectionRatio>=be);g({isIntersecting:ue,entry:q}),S.current&&S.current(ue,q),ue&&o&&b&&(b(),b=void 0)})},{threshold:e,root:t,rootMargin:n});return J.observe(u),()=>{J.disconnect()}},[u,JSON.stringify(e),t,n,i,o]);const l=useRef(null);useEffect(()=>{var b;!u&&((b=d.entry)!=null&&b.target)&&!o&&!i&&l.current!==d.entry.target&&(l.current=d.entry.target,g({isIntersecting:s,entry:void 0}))},[u,d.entry,o,i,s]);const h=[a,!!d.isIntersecting,d.entry];return h.ref=h[0],h.isIntersecting=h[1],h.entry=h[2],h}function _(){const[e,t]=useState(!1);return useEffect(()=>{t(!0)},[]),e}function A(){const e=useRef(!1);return useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),useCallback(()=>e.current,[])}function D(e=new Map){const[t,n]=useState(new Map(e)),o={set:useCallback((s,c)=>{n(r=>{const u=new Map(r);return u.set(s,c),u})},[]),setAll:useCallback(s=>{n(()=>new Map(s))},[]),remove:useCallback(s=>{n(c=>{const r=new Map(c);return r.delete(s),r})},[]),reset:useCallback(()=>{n(()=>new Map)},[])};return[t,o]}function y(e,t,n="mousedown",o={}){E(n,s=>{const c=s.target;if(!c||!c.isConnected)return;(Array.isArray(e)?e.filter(u=>Boolean(u.current)).every(u=>u.current&&!u.current.contains(c)):e.current&&!e.current.contains(c))&&t(s)},void 0,o)}var R=typeof window>"u";function x(e,t={}){let{initializeWithValue:n=!0}=t;R&&(n=!1);const o=useCallback(a=>{if(t.deserializer)return t.deserializer(a);if(a==="undefined")return;let d;try{d=JSON.parse(a)}catch(g){return console.error("Error parsing JSON:",g),null}return d},[t]),s=useCallback(()=>{if(R)return null;try{const a=window.localStorage.getItem(e);return a?o(a):null}catch(a){return console.warn(`Error reading localStorage key \u201C${e}\u201D:`,a),null}},[e,o]),[c,r]=useState(()=>{if(n)return s()});useEffect(()=>{r(s())},[e]);const u=useCallback(a=>{a.key&&a.key!==e||r(s())},[e,s]);return E("storage",u),E("local-storage",u),c}var B={width:void 0,height:void 0};function W(e){const{ref:t,box:n="content-box"}=e,[{width:o,height:s},c]=useState(B),r=A(),u=useRef({...B}),a=useRef(void 0);return a.current=e.onResize,useEffect(()=>{if(!t.current||typeof window>"u"||!("ResizeObserver"in window))return;const d=new ResizeObserver(([g])=>{const S=n==="border-box"?"borderBoxSize":n==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",i=F(g,S,"inlineSize"),l=F(g,S,"blockSize");if(u.current.width!==i||u.current.height!==l){const b={width:i,height:l};u.current.width=i,u.current.height=l,a.current?a.current(b):r()&&c(b)}});return d.observe(t.current,{box:n}),()=>{d.disconnect()}},[n,t,r]),{width:o,height:s}}function F(e,t,n){return e[t]?Array.isArray(e[t])?e[t][0][n]:e[t][n]:t==="contentBoxSize"?e.contentRect[n==="inlineSize"?"width":"height"]:void 0}var N=typeof window>"u";function ge(e={}){let{initializeWithValue:t=!0}=e;N&&(t=!1);const n=()=>{if(!N)return window.screen},[o,s]=useState(()=>{if(t)return n()}),c=z(s,e.debounceDelay);function r(){const u=n(),a=e.debounceDelay?c:s;if(u){const{width:d,height:g,availHeight:S,availWidth:i,colorDepth:l,orientation:h,pixelDepth:b}=u;a({width:d,height:g,availHeight:S,availWidth:i,colorDepth:l,orientation:h,pixelDepth:b})}}return E("resize",r),m(()=>{r()},[]),o}var P=new Map;function Q(e){const t=document.querySelector(`script[src="${e}"]`),n=t?.getAttribute("data-status");return{node:t,status:n}}function U(e,t){const[n,o]=useState(()=>!e||t?.shouldPreventLoad?"idle":typeof window>"u"?"loading":P.get(e)??"loading");return useEffect(()=>{if(!e||t?.shouldPreventLoad)return;const s=P.get(e);if(s==="ready"||s==="error"){o(s);return}const c=Q(e);let r=c.node;if(r)o(c.status??s??"loading");else{r=document.createElement("script"),r.src=e,r.async=!0,t?.id&&(r.id=t.id),r.setAttribute("data-status","loading"),document.body.appendChild(r);const a=d=>{const g=d.type==="load"?"ready":"error";r?.setAttribute("data-status",g)};r.addEventListener("load",a),r.addEventListener("error",a)}const u=a=>{const d=a.type==="load"?"ready":"error";o(d),P.set(e,d)};return r.addEventListener("load",u),r.addEventListener("error",u),()=>{r&&(r.removeEventListener("load",u),r.removeEventListener("error",u)),r&&t?.removeOnUnmount&&(r.remove(),P.delete(e))}},[e,t?.shouldPreventLoad,t?.removeOnUnmount,t?.id]),n}var X=typeof window>"u";function ve(e={}){const{autoLock:t=!0,lockTarget:n,widthreflow:o=!0}=e,[s,c]=useState(!1),r=useRef(null),u=useRef(null),a=()=>{if(r.current){const{overflow:g,paddingRight:S}=r.current.style;if(u.current={overflow:g,paddingRight:S},o){const i=r.current===document.body?window.innerWidth:r.current.offsetWidth,l=parseInt(window.getComputedStyle(r.current).paddingRight,10)||0,h=i-r.current.scrollWidth;r.current.style.paddingRight=`${h+l}px`}r.current.style.overflow="hidden",c(!0)}},d=()=>{r.current&&u.current&&(r.current.style.overflow=u.current.overflow,o&&(r.current.style.paddingRight=u.current.paddingRight)),c(!1)};return m(()=>{if(!X)return n&&(r.current=typeof n=="string"?document.querySelector(n):n),r.current||(r.current=document.body),t&&a(),()=>{d()}},[t,n,o]),{isLocked:s,lock:a,unlock:d}}var H=typeof window>"u";function Z(e,t,n={}){const{initializeWithValue:o=!0}=n,s=useCallback(i=>n.serializer?n.serializer(i):JSON.stringify(i),[n]),c=useCallback(i=>{if(n.deserializer)return n.deserializer(i);if(i==="undefined")return;const l=t instanceof Function?t():t;let h;try{h=JSON.parse(i)}catch(b){return console.error("Error parsing JSON:",b),l}return h},[n,t]),r=useCallback(()=>{const i=t instanceof Function?t():t;if(H)return i;try{const l=window.sessionStorage.getItem(e);return l?c(l):i}catch(l){return console.warn(`Error reading sessionStorage key \u201C${e}\u201D:`,l),i}},[t,e,c]),[u,a]=useState(()=>o?r():t instanceof Function?t():t),d=I(i=>{H&&console.warn(`Tried setting sessionStorage key \u201C${e}\u201D even though environment is not a client`);try{const l=i instanceof Function?i(r()):i;window.sessionStorage.setItem(e,s(l)),a(l),window.dispatchEvent(new StorageEvent("session-storage",{key:e}))}catch(l){console.warn(`Error setting sessionStorage key \u201C${e}\u201D:`,l)}}),g=I(()=>{H&&console.warn(`Tried removing sessionStorage key \u201C${e}\u201D even though environment is not a client`);const i=t instanceof Function?t():t;window.sessionStorage.removeItem(e),a(i),window.dispatchEvent(new StorageEvent("session-storage",{key:e}))});useEffect(()=>{a(r())},[e]);const S=useCallback(i=>{i.key&&i.key!==e||a(r())},[e,r]);return E("storage",S),E("session-storage",S),[u,d,g]}function v(e){const[t,n]=useState(1),o=t+1<=e,s=t-1>0,c=useCallback(d=>{const g=d instanceof Function?d(t):d;if(g>=1&&g<=e){n(g);return}throw new Error("Step not valid")},[e,t]),r=useCallback(()=>{o&&n(d=>d+1)},[o]),u=useCallback(()=>{s&&n(d=>d-1)},[s]),a=useCallback(()=>{n(1)},[]);return[t,{goToNextStep:r,goToPrevStep:u,canGoToNextStep:o,canGoToPrevStep:s,setStep:c,reset:a}]}var k="(prefers-color-scheme: dark)",T="usehooks-ts-ternary-dark-mode";function se({defaultValue:e="system",localStorageKey:t=T,initializeWithValue:n=!0}={}){const o=M(k,{initializeWithValue:n}),[s,c]=G(t,e,{initializeWithValue:n});return{isDarkMode:s==="dark"||s==="system"&&o,ternaryDarkMode:s,setTernaryDarkMode:c,toggleTernaryDarkMode:()=>{const a=["light","system","dark"];c(d=>{const g=(a.indexOf(d)+1)%a.length;return a[g]})}}}function me(e,t){const n=useRef(e);m(()=>{n.current=e},[e]),useEffect(()=>{if(!t&&t!==0)return;const o=setTimeout(()=>{n.current()},t);return()=>{clearTimeout(o)}},[t])}function Ce(e){const[t,n]=useState(!!e),o=useCallback(()=>{n(s=>!s)},[]);return[t,o,n]}var Se=typeof window>"u";function he(e={}){let{initializeWithValue:t=!0}=e;Se&&(t=!1);const[n,o]=(0,C.useState)(()=>t?{width:window.innerWidth,height:window.innerHeight}:{width:void 0,height:void 0}),s=z(o,e.debounceDelay);function c(){(e.debounceDelay?s:o)({width:window.innerWidth,height:window.innerHeight})}return E("resize",c),m(()=>{c()},[]),n}}}]);