(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4205],{77102:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(31549),o=n(44194);t.default=function({html:e,height:t=null,width:n=null,children:i,dataNtpc:a=""}){return(0,o.useEffect)(()=>{a&&performance.mark("mark_feature_usage",{detail:{feature:`next-third-parties-${a}`}})},[a]),(0,r.jsxs)(r.Fragment,{children:[i,e?(0,r.jsx)("div",{style:{height:null!=t?`${t}px`:"auto",width:null!=n?`${n}px`:"auto"},"data-ntpc":a,dangerouslySetInnerHTML:{__html:e}}):null]})}},14643:function(e,t,n){"use strict";let r;var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendGAEvent=t.GoogleAnalytics=void 0;let i=n(31549),a=n(44194),l=o(n(63639));t.GoogleAnalytics=function(e){let{gaId:t,dataLayerName:n="dataLayer"}=e;return void 0===r&&(r=n),(0,a.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:`
          window['${n}'] = window['${n}'] || [];
          function gtag(){window['${n}'].push(arguments);}
          gtag('js', new Date());

          gtag('config', '${t}');`}}),(0,i.jsx)(l.default,{id:"_next-ga",src:`https://www.googletagmanager.com/gtag/js?id=${t}`})]})},t.sendGAEvent=function(...e){if(void 0===r){console.warn("@next/third-parties: GA has not been initialized");return}window[r]?window[r].push(arguments):console.warn(`@next/third-parties: GA dataLayer ${r} does not exist`)}},66624:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=n(31549),i=n(38883),a=r(n(77102));t.default=function(e){let{apiKey:t,...n}=e,r={...n,key:t},{html:l}=(0,i.GoogleMapsEmbed)(r);return(0,o.jsx)(a.default,{height:r.height||null,width:r.width||null,html:l,dataNtpc:"GoogleMapsEmbed"})}},81942:function(e,t,n){"use strict";let r;var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendGTMEvent=t.GoogleTagManager=void 0;let i=n(31549),a=n(44194),l=o(n(63639));t.GoogleTagManager=function(e){let{gtmId:t,dataLayerName:n="dataLayer",auth:o,preview:u,dataLayer:s}=e;void 0===r&&(r=n);let c="dataLayer"!==n?`&l=${n}`:"",d=o?`&gtm_auth=${o}`:"",f=u?`&gtm_preview=${u}&gtm_cookies_win=x`:"";return(0,a.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:`
      (function(w,l){
        w[l]=w[l]||[];
        w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});
        ${s?`w[l].push(${JSON.stringify(s)})`:""}
      })(window,'${n}');`}}),(0,i.jsx)(l.default,{id:"_next-gtm","data-ntpc":"GTM",src:`https://www.googletagmanager.com/gtm.js?id=${t}${c}${d}${f}`})]})},t.sendGTMEvent=e=>{if(void 0===r){console.warn("@next/third-parties: GTM has not been initialized");return}window[r]?window[r].push(e):console.warn(`@next/third-parties: GTM dataLayer ${r} does not exist`)}},8937:function(e,t,n){"use strict";var r=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 o=n(66624);Object.defineProperty(t,"GoogleMapsEmbed",{enumerable:!0,get:function(){return r(o).default}});var i=n(50808);Object.defineProperty(t,"YouTubeEmbed",{enumerable:!0,get:function(){return r(i).default}});var a=n(81942);Object.defineProperty(t,"GoogleTagManager",{enumerable:!0,get:function(){return a.GoogleTagManager}}),Object.defineProperty(t,"sendGTMEvent",{enumerable:!0,get:function(){return a.sendGTMEvent}});var l=n(14643);Object.defineProperty(t,"GoogleAnalytics",{enumerable:!0,get:function(){return l.GoogleAnalytics}}),Object.defineProperty(t,"sendGAEvent",{enumerable:!0,get:function(){return l.sendGAEvent}})},50808:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=n(31549),i=r(n(63639)),a=n(38883),l=r(n(77102)),u={server:"beforeInteractive",client:"afterInteractive",idle:"lazyOnload",worker:"worker"};t.default=function(e){let{html:t,scripts:n,stylesheets:r}=(0,a.YouTubeEmbed)(e);return(0,o.jsx)(l.default,{height:e.height||null,width:e.width||null,html:t,dataNtpc:"YouTubeEmbed",children:null==n?void 0:n.map(e=>(0,o.jsx)(i.default,{src:e.url,strategy:u[e.strategy],stylesheets:r},e.url))})}},63639:function(e,t,n){e.exports=n(61782)},38883:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeEmbed=t.GoogleMapsEmbed=t.GoogleAnalytics=void 0;var r=n(87737);Object.defineProperty(t,"GoogleAnalytics",{enumerable:!0,get:function(){return r.GoogleAnalytics}});var o=n(43698);Object.defineProperty(t,"GoogleMapsEmbed",{enumerable:!0,get:function(){return o.GoogleMapsEmbed}});var i=n(30380);Object.defineProperty(t,"YouTubeEmbed",{enumerable:!0,get:function(){return i.YouTubeEmbed}})},87737:function(e,t,n){"use strict";var r=this&&this.__rest||function(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)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=void 0;let i=o(n(89833)),a=n(3140);t.GoogleAnalytics=e=>{var t=r(e,[]);return(0,a.formatData)(i.default,t)}},43698:function(e,t,n){"use strict";var r=this&&this.__rest||function(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)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleMapsEmbed=void 0;let i=o(n(66783)),a=n(3140);t.GoogleMapsEmbed=e=>{var t=r(e,[]);return(0,a.formatData)(i.default,t)}},30380:function(e,t,n){"use strict";var r=this&&this.__rest||function(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)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeEmbed=void 0;let i=o(n(29251)),a=n(3140);t.YouTubeEmbed=e=>{var t=r(e,[]);return(0,a.formatData)(i.default,t)}},3140:function(e,t){"use strict";function n(e,t,n=!1){return t?Object.keys(e).filter(e=>n?!t.includes(e):t.includes(e)).reduce((t,n)=>(t[n]=e[n],t),{}):{}}function r(e,t,n,r){let o=r&&Object.keys(r).length>0?new URL(Object.values(r)[0],e):new URL(e);return t&&n&&t.forEach(e=>{n[e]&&o.searchParams.set(e,n[e])}),o.toString()}function o(e,t,n,o,i){var a;if(!t)return`<${e}></${e}>`;let l=(null===(a=t.src)||void 0===a?void 0:a.url)?Object.assign(Object.assign({},t),{src:r(t.src.url,t.src.params,o,i)}):t,u=Object.keys(Object.assign(Object.assign({},l),n)).reduce((e,t)=>{let r=null==n?void 0:n[t],o=l[t],i=null!=r?r:o,a=!0===i?t:`${t}="${i}"`;return i?e+` ${a}`:e},"");return`<${e}${u}></${e}>`}Object.defineProperty(t,"__esModule",{value:!0}),t.formatData=t.createHtml=t.formatUrl=void 0,t.formatUrl=r,t.createHtml=o,t.formatData=function(e,t){var i,a,l,u,s;let c=n(t,null===(i=e.scripts)||void 0===i?void 0:i.reduce((e,t)=>[...e,...Array.isArray(t.params)?t.params:[]],[])),d=n(t,null===(l=null===(a=e.html)||void 0===a?void 0:a.attributes.src)||void 0===l?void 0:l.params),f=n(t,[null===(s=null===(u=e.html)||void 0===u?void 0:u.attributes.src)||void 0===s?void 0:s.slugParam]),p=n(t,[...Object.keys(c),...Object.keys(d),...Object.keys(f)],!0);return Object.assign(Object.assign({},e),{html:e.html?o(e.html.element,e.html.attributes,p,d,f):null,scripts:e.scripts?e.scripts.map(e=>Object.assign(Object.assign({},e),{url:r(e.url,e.params,c)})):null})}},55898:function(e,t,n){"use strict";n.d(t,{Nr:function(){return i}});var r=n(44194);function o(e,t){return e===t}function i(e,t,n){var i=n&&n.equalityFn||o,a=(0,r.useRef)(e),l=(0,r.useState)({})[1],u=function(e,t,n){var o=this,i=(0,r.useRef)(null),a=(0,r.useRef)(0),l=(0,r.useRef)(null),u=(0,r.useRef)([]),s=(0,r.useRef)(),c=(0,r.useRef)(),d=(0,r.useRef)(e),f=(0,r.useRef)(!0);d.current=e;var p="undefined"!=typeof window,h=!t&&0!==t&&p;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,v="maxWait"in n,y="debounceOnServer"in n&&!!n.debounceOnServer,w=v?Math.max(+n.maxWait||0,t):null;return(0,r.useEffect)(function(){return f.current=!0,function(){f.current=!1}},[]),(0,r.useMemo)(function(){var e=function(e){var t=u.current,n=s.current;return u.current=s.current=null,a.current=e,c.current=d.current.apply(n,t)},n=function(e,t){h&&cancelAnimationFrame(l.current),l.current=h?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!f.current)return!1;var n=e-i.current;return!i.current||n>=t||n<0||v&&e-a.current>=w},b=function(t){return l.current=null,m&&u.current?e(t):(u.current=s.current=null,c.current)},x=function e(){var o=Date.now();if(r(o))return b(o);if(f.current){var l=t-(o-i.current);n(e,v?Math.min(l,w-(o-a.current)):l)}},M=function(){if(p||y){var d=Date.now(),h=r(d);if(u.current=[].slice.call(arguments),s.current=o,i.current=d,h){if(!l.current&&f.current)return a.current=i.current,n(x,t),g?e(i.current):c.current;if(v)return n(x,t),e(i.current)}return l.current||n(x,t),c.current}};return M.cancel=function(){l.current&&(h?cancelAnimationFrame(l.current):clearTimeout(l.current)),a.current=0,u.current=i.current=s.current=l.current=null},M.isPending=function(){return!!l.current},M.flush=function(){return l.current?b(Date.now()):c.current},M},[g,v,t,w,m,h,p,y])}((0,r.useCallback)(function(e){a.current=e,l({})},[l]),t,n),s=(0,r.useRef)(e);return i(s.current,e)||(u(e),s.current=e),[a.current,u]}},512:function(e,t,n){"use strict";n.d(t,{B:function(){return u}});var r=n(44194),o=n(55158),i=n(57143),a=n(56735),l=n(31549);function u(e){let t=e+"CollectionProvider",[n,u]=(0,o.b)(t),[s,c]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,o=r.useRef(null),i=r.useRef(new Map).current;return(0,l.jsx)(s,{scope:t,itemMap:i,collectionRef:o,children:n})};d.displayName=t;let f=e+"CollectionSlot",p=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=c(f,n),u=(0,i.e)(t,o.collectionRef);return(0,l.jsx)(a.g7,{ref:u,children:r})});p.displayName=f;let h=e+"CollectionItemSlot",g="data-radix-collection-item",m=r.forwardRef((e,t)=>{let{scope:n,children:o,...u}=e,s=r.useRef(null),d=(0,i.e)(t,s),f=c(h,n);return r.useEffect(()=>(f.itemMap.set(s,{ref:s,...u}),()=>void f.itemMap.delete(s))),(0,l.jsx)(a.g7,{[g]:"",ref:d,children:o})});return m.displayName=h,[{Provider:d,Slot:p,ItemSlot:m},function(t){let n=c(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},u]}},55158:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(44194),o=n(31549);function i(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return i.scopeName=e,[function(t,i){let a=r.createContext(i),l=n.length;function u(t){let{scope:n,children:i,...u}=t,s=n?.[e][l]||a,c=r.useMemo(()=>u,Object.values(u));return(0,o.jsx)(s.Provider,{value:c,children:i})}return n=[...n,i],u.displayName=t+"Provider",[u,function(n,o){let u=o?.[e][l]||a,s=r.useContext(u);if(s)return s;if(void 0!==i)return i;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 o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(i,...t)]}},67874:function(e,t,n){"use strict";n.d(t,{gm:function(){return i}});var r=n(44194);n(31549);var o=r.createContext(void 0);function i(e){let t=r.useContext(o);return e||t||"ltr"}},69756:function(e,t,n){"use strict";n.d(t,{oC:function(){return tn},VY:function(){return e8},ZA:function(){return e7},ck:function(){return tt},wU:function(){return ti},__:function(){return te},Uv:function(){return e6},Ee:function(){return tr},Rk:function(){return to},fC:function(){return e9},Z0:function(){return ta},Tr:function(){return tl},tu:function(){return ts},fF:function(){return tu},xz:function(){return e5}});var r=n(44194),o=n(74810),i=n(57143),a=n(20399),l=n(86939),u=n(98637),s=n(512),c=n(67874),d=n(11252),f=n(35726),p=n(13006),h=n(85884),g=n(52781),m=n(35302),v=n(65419),y=n(88581),w=n(56735),b=n(13602),x=new WeakMap,M=new WeakMap,C={},j=0,S=function(e){return e&&(e.host||S(e.parentNode))},R=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=S(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});C[n]||(C[n]=new WeakMap);var i=C[n],a=[],l=new Set,u=new Set(o),s=function(e){!e||l.has(e)||(l.add(e),s(e.parentNode))};o.forEach(s);var c=function(e){!e||u.has(e)||Array.prototype.forEach.call(e.children,function(e){if(l.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,u=(x.get(e)||0)+1,s=(i.get(e)||0)+1;x.set(e,u),i.set(e,s),a.push(e),1===u&&o&&M.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),l.clear(),j++,function(){a.forEach(function(e){var t=x.get(e)-1,o=i.get(e)-1;x.set(e,t),i.set(e,o),t||(M.has(e)||e.removeAttribute(r),M.delete(e)),o||e.removeAttribute(n)}),--j||(x=new WeakMap,x=new WeakMap,M=new WeakMap,C={})}},E=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),R(r,o,n,"aria-hidden")):function(){return null}},P=n(54169),T=n(31549),O=["Enter"," "],_=["ArrowUp","PageDown","End"],k=["ArrowDown","PageUp","Home",..._],D={ltr:[...O,"ArrowRight"],rtl:[...O,"ArrowLeft"]},A={ltr:["ArrowLeft"],rtl:["ArrowRight"]},I="Menu",[N,L,W]=(0,s.B)(I),[F,V]=(0,a.b)(I,[W,g.D7,y.Pc]),$=(0,g.D7)(),G=(0,y.Pc)(),[H,z]=F(I),[B,K]=F(I),q=e=>{let{__scopeMenu:t,open:n=!1,children:o,dir:i,onOpenChange:a,modal:l=!0}=e,u=$(t),[s,d]=r.useState(null),f=r.useRef(!1),p=(0,b.W)(a),h=(0,c.gm)(i);return r.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,T.jsx)(g.fC,{...u,children:(0,T.jsx)(H,{scope:t,open:n,onOpenChange:p,content:s,onContentChange:d,children:(0,T.jsx)(B,{scope:t,onClose:r.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:h,modal:l,children:o})})})};q.displayName=I;var U=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=$(n);return(0,T.jsx)(g.ee,{...o,...r,ref:t})});U.displayName="MenuAnchor";var Y="MenuPortal",[Z,X]=F(Y,{forceMount:void 0}),J=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=z(Y,t);return(0,T.jsx)(Z,{scope:t,forceMount:n,children:(0,T.jsx)(v.z,{present:n||i.open,children:(0,T.jsx)(m.h,{asChild:!0,container:o,children:r})})})};J.displayName=Y;var Q="MenuContent",[ee,et]=F(Q),en=r.forwardRef((e,t)=>{let n=X(Q,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=z(Q,e.__scopeMenu),a=K(Q,e.__scopeMenu);return(0,T.jsx)(N.Provider,{scope:e.__scopeMenu,children:(0,T.jsx)(v.z,{present:r||i.open,children:(0,T.jsx)(N.Slot,{scope:e.__scopeMenu,children:a.modal?(0,T.jsx)(er,{...o,ref:t}):(0,T.jsx)(eo,{...o,ref:t})})})})}),er=r.forwardRef((e,t)=>{let n=z(Q,e.__scopeMenu),a=r.useRef(null),l=(0,i.e)(t,a);return r.useEffect(()=>{let e=a.current;if(e)return E(e)},[]),(0,T.jsx)(ei,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),eo=r.forwardRef((e,t)=>{let n=z(Q,e.__scopeMenu);return(0,T.jsx)(ei,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),ei=r.forwardRef((e,t)=>{let{__scopeMenu:n,loop:a=!1,trapFocus:l,onOpenAutoFocus:u,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:h,onEscapeKeyDown:m,onPointerDownOutside:v,onFocusOutside:b,onInteractOutside:x,onDismiss:M,disableOutsideScroll:C,...j}=e,S=z(Q,n),R=K(Q,n),E=$(n),O=G(n),D=L(n),[A,I]=r.useState(null),N=r.useRef(null),W=(0,i.e)(t,N,S.onContentChange),F=r.useRef(0),V=r.useRef(""),H=r.useRef(0),B=r.useRef(null),q=r.useRef("right"),U=r.useRef(0),Y=C?P.Z:r.Fragment,Z=C?{as:w.g7,allowPinchZoom:!0}:void 0,X=e=>{let t=V.current+e,n=D().filter(e=>!e.disabled),r=document.activeElement,o=n.find(e=>e.ref.current===r)?.textValue,i=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(i=i.filter(e=>e!==n));let a=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}(n.map(e=>e.textValue),t,o),a=n.find(e=>e.textValue===i)?.ref.current;!function e(t){V.current=t,window.clearTimeout(F.current),""!==t&&(F.current=window.setTimeout(()=>e(""),1e3))}(t),a&&setTimeout(()=>a.focus())};r.useEffect(()=>()=>window.clearTimeout(F.current),[]),(0,f.EW)();let J=r.useCallback(e=>{var t;return q.current===B.current?.side&&!!(t=B.current?.area)&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let a=t[e].x,l=t[e].y,u=t[i].x,s=t[i].y;l>r!=s>r&&n<(u-a)*(r-l)/(s-l)+a&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)},[]);return(0,T.jsx)(ee,{scope:n,searchRef:V,onItemEnter:r.useCallback(e=>{J(e)&&e.preventDefault()},[J]),onItemLeave:r.useCallback(e=>{J(e)||(N.current?.focus(),I(null))},[J]),onTriggerLeave:r.useCallback(e=>{J(e)&&e.preventDefault()},[J]),pointerGraceTimerRef:H,onPointerGraceIntentChange:r.useCallback(e=>{B.current=e},[]),children:(0,T.jsx)(Y,{...Z,children:(0,T.jsx)(p.M,{asChild:!0,trapped:l,onMountAutoFocus:(0,o.M)(u,e=>{e.preventDefault(),N.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,T.jsx)(d.XB,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:m,onPointerDownOutside:v,onFocusOutside:b,onInteractOutside:x,onDismiss:M,children:(0,T.jsx)(y.fC,{asChild:!0,...O,dir:R.dir,orientation:"vertical",loop:a,currentTabStopId:A,onCurrentTabStopIdChange:I,onEntryFocus:(0,o.M)(h,e=>{R.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,T.jsx)(g.VY,{role:"menu","aria-orientation":"vertical","data-state":eD(S.open),"data-radix-menu-content":"",dir:R.dir,...E,...j,ref:W,style:{outline:"none",...j.style},onKeyDown:(0,o.M)(j.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&X(e.key));let o=N.current;if(e.target!==o||!k.includes(e.key))return;e.preventDefault();let i=D().filter(e=>!e.disabled).map(e=>e.ref.current);_.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(i)}),onBlur:(0,o.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(F.current),V.current="")}),onPointerMove:(0,o.M)(e.onPointerMove,eN(e=>{let t=e.target,n=U.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>U.current?"right":"left";q.current=t,U.current=e.clientX}}))})})})})})})});en.displayName=Q;var ea=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,T.jsx)(u.WV.div,{role:"group",...r,ref:t})});ea.displayName="MenuGroup";var el=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,T.jsx)(u.WV.div,{...r,ref:t})});el.displayName="MenuLabel";var eu="MenuItem",es="menu.itemSelect",ec=r.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:a,...l}=e,s=r.useRef(null),c=K(eu,e.__scopeMenu),d=et(eu,e.__scopeMenu),f=(0,i.e)(t,s),p=r.useRef(!1);return(0,T.jsx)(ed,{...l,ref:f,disabled:n,onClick:(0,o.M)(e.onClick,()=>{let e=s.current;if(!n&&e){let t=new CustomEvent(es,{bubbles:!0,cancelable:!0});e.addEventListener(es,e=>a?.(e),{once:!0}),(0,u.jH)(e,t),t.defaultPrevented?p.current=!1:c.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),p.current=!0},onPointerUp:(0,o.M)(e.onPointerUp,e=>{p.current||e.currentTarget?.click()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;!n&&(!t||" "!==e.key)&&O.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});ec.displayName=eu;var ed=r.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:a=!1,textValue:l,...s}=e,c=et(eu,n),d=G(n),f=r.useRef(null),p=(0,i.e)(t,f),[h,g]=r.useState(!1),[m,v]=r.useState("");return r.useEffect(()=>{let e=f.current;e&&v((e.textContent??"").trim())},[s.children]),(0,T.jsx)(N.ItemSlot,{scope:n,disabled:a,textValue:l??m,children:(0,T.jsx)(y.ck,{asChild:!0,...d,focusable:!a,children:(0,T.jsx)(u.WV.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...s,ref:p,onPointerMove:(0,o.M)(e.onPointerMove,eN(e=>{a?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.M)(e.onPointerLeave,eN(e=>c.onItemLeave(e))),onFocus:(0,o.M)(e.onFocus,()=>g(!0)),onBlur:(0,o.M)(e.onBlur,()=>g(!1))})})})}),ef=r.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,T.jsx)(eb,{scope:e.__scopeMenu,checked:n,children:(0,T.jsx)(ec,{role:"menuitemcheckbox","aria-checked":eA(n)?"mixed":n,...i,ref:t,"data-state":eI(n),onSelect:(0,o.M)(i.onSelect,()=>r?.(!!eA(n)||!n),{checkForDefaultPrevented:!1})})})});ef.displayName="MenuCheckboxItem";var ep="MenuRadioGroup",[eh,eg]=F(ep,{value:void 0,onValueChange:()=>{}}),em=r.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,i=(0,b.W)(r);return(0,T.jsx)(eh,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,T.jsx)(ea,{...o,ref:t})})});em.displayName=ep;var ev="MenuRadioItem",ey=r.forwardRef((e,t)=>{let{value:n,...r}=e,i=eg(ev,e.__scopeMenu),a=n===i.value;return(0,T.jsx)(eb,{scope:e.__scopeMenu,checked:a,children:(0,T.jsx)(ec,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":eI(a),onSelect:(0,o.M)(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});ey.displayName=ev;var ew="MenuItemIndicator",[eb,ex]=F(ew,{checked:!1}),eM=r.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,i=ex(ew,n);return(0,T.jsx)(v.z,{present:r||eA(i.checked)||!0===i.checked,children:(0,T.jsx)(u.WV.span,{...o,ref:t,"data-state":eI(i.checked)})})});eM.displayName=ew;var eC=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,T.jsx)(u.WV.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});eC.displayName="MenuSeparator";var ej=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=$(n);return(0,T.jsx)(g.Eh,{...o,...r,ref:t})});ej.displayName="MenuArrow";var eS="MenuSub",[eR,eE]=F(eS),eP=e=>{let{__scopeMenu:t,children:n,open:o=!1,onOpenChange:i}=e,a=z(eS,t),l=$(t),[u,s]=r.useState(null),[c,d]=r.useState(null),f=(0,b.W)(i);return r.useEffect(()=>(!1===a.open&&f(!1),()=>f(!1)),[a.open,f]),(0,T.jsx)(g.fC,{...l,children:(0,T.jsx)(H,{scope:t,open:o,onOpenChange:f,content:c,onContentChange:d,children:(0,T.jsx)(eR,{scope:t,contentId:(0,h.M)(),triggerId:(0,h.M)(),trigger:u,onTriggerChange:s,children:n})})})};eP.displayName=eS;var eT="MenuSubTrigger",eO=r.forwardRef((e,t)=>{let n=z(eT,e.__scopeMenu),a=K(eT,e.__scopeMenu),l=eE(eT,e.__scopeMenu),u=et(eT,e.__scopeMenu),s=r.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=u,f={__scopeMenu:e.__scopeMenu},p=r.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return r.useEffect(()=>p,[p]),r.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),d(null)}},[c,d]),(0,T.jsx)(U,{asChild:!0,...f,children:(0,T.jsx)(ed,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":l.contentId,"data-state":eD(n.open),...e,ref:(0,i.F)(t,l.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,o.M)(e.onPointerMove,eN(t=>{u.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||s.current||(u.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:(0,o.M)(e.onPointerLeave,eN(e=>{p();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,o="right"===r,i=t[o?"left":"right"],a=t[o?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:i,y:t.top},{x:a,y:t.top},{x:a,y:t.bottom},{x:i,y:t.bottom}],side:r}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.M)(e.onKeyDown,t=>{let r=""!==u.searchRef.current;!e.disabled&&(!r||" "!==t.key)&&D[a.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});eO.displayName=eT;var e_="MenuSubContent",ek=r.forwardRef((e,t)=>{let n=X(Q,e.__scopeMenu),{forceMount:a=n.forceMount,...l}=e,u=z(Q,e.__scopeMenu),s=K(Q,e.__scopeMenu),c=eE(e_,e.__scopeMenu),d=r.useRef(null),f=(0,i.e)(t,d);return(0,T.jsx)(N.Provider,{scope:e.__scopeMenu,children:(0,T.jsx)(v.z,{present:a||u.open,children:(0,T.jsx)(N.Slot,{scope:e.__scopeMenu,children:(0,T.jsx)(ei,{id:c.contentId,"aria-labelledby":c.triggerId,...l,ref:f,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&d.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>{e.target!==c.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,o.M)(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=A[s.dir].includes(e.key);t&&n&&(u.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});function eD(e){return e?"open":"closed"}function eA(e){return"indeterminate"===e}function eI(e){return eA(e)?"indeterminate":e?"checked":"unchecked"}function eN(e){return t=>"mouse"===t.pointerType?e(t):void 0}ek.displayName=e_;var eL="DropdownMenu",[eW,eF]=(0,a.b)(eL,[V]),eV=V(),[e$,eG]=eW(eL),eH=e=>{let{__scopeDropdownMenu:t,children:n,dir:o,open:i,defaultOpen:a,onOpenChange:u,modal:s=!0}=e,c=eV(t),d=r.useRef(null),[f=!1,p]=(0,l.T)({prop:i,defaultProp:a,onChange:u});return(0,T.jsx)(e$,{scope:t,triggerId:(0,h.M)(),triggerRef:d,contentId:(0,h.M)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:s,children:(0,T.jsx)(q,{...c,open:f,onOpenChange:p,dir:o,modal:s,children:n})})};eH.displayName=eL;var ez="DropdownMenuTrigger",eB=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...a}=e,l=eG(ez,n),s=eV(n);return(0,T.jsx)(U,{asChild:!0,...s,children:(0,T.jsx)(u.WV.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...a,ref:(0,i.F)(t,l.triggerRef),onPointerDown:(0,o.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(l.onOpenToggle(),l.open||e.preventDefault())}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&l.onOpenToggle(),"ArrowDown"===e.key&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});eB.displayName=ez;var eK=e=>{let{__scopeDropdownMenu:t,...n}=e,r=eV(t);return(0,T.jsx)(J,{...r,...n})};eK.displayName="DropdownMenuPortal";var eq="DropdownMenuContent",eU=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=eG(eq,n),l=eV(n),u=r.useRef(!1);return(0,T.jsx)(en,{id:a.contentId,"aria-labelledby":a.triggerId,...l,...i,ref:t,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{u.current||a.triggerRef.current?.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,o.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!a.modal||r)&&(u.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)"}})});eU.displayName=eq;var eY=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eV(n);return(0,T.jsx)(ea,{...o,...r,ref:t})});eY.displayName="DropdownMenuGroup";var eZ=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eV(n);return(0,T.jsx)(el,{...o,...r,ref:t})});eZ.displayName="DropdownMenuLabel";var eX=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eV(n);return(0,T.jsx)(ec,{...o,...r,ref:t})});eX.displayName="DropdownMenuItem";var eJ=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eV(n);return(0,T.jsx)(ef,{...o,...r,ref:t})});eJ.displayName="DropdownMenuCheckboxItem";var eQ=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eV(n);return(0,T.jsx)(em,{...o,...r,ref:t})});eQ.displayName="DropdownMenuRadioGroup";var e0=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eV(n);return(0,T.jsx)(ey,{...o,...r,ref:t})});e0.displayName="DropdownMenuRadioItem";var e1=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eV(n);return(0,T.jsx)(eM,{...o,...r,ref:t})});e1.displayName="DropdownMenuItemIndicator";var e4=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eV(n);return(0,T.jsx)(eC,{...o,...r,ref:t})});e4.displayName="DropdownMenuSeparator",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eV(n);return(0,T.jsx)(ej,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";var e2=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eV(n);return(0,T.jsx)(eO,{...o,...r,ref:t})});e2.displayName="DropdownMenuSubTrigger";var e3=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eV(n);return(0,T.jsx)(ek,{...o,...r,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)"}})});e3.displayName="DropdownMenuSubContent";var e9=eH,e5=eB,e6=eK,e8=eU,e7=eY,te=eZ,tt=eX,tn=eJ,tr=eQ,to=e0,ti=e1,ta=e4,tl=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=eV(t),[u=!1,s]=(0,l.T)({prop:r,defaultProp:i,onChange:o});return(0,T.jsx)(eP,{...a,open:u,onOpenChange:s,children:n})},tu=e2,ts=e3},15773:function(e,t,n){"use strict";n.d(t,{f:function(){return l}});var r=n(44194),o=n(98637),i=n(31549),a=r.forwardRef((e,t)=>(0,i.jsx)(o.WV.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));a.displayName="Label";var l=a},52781:function(e,t,n){"use strict";n.d(t,{ee:function(){return eq},Eh:function(){return eY},VY:function(){return eU},fC:function(){return eK},D7:function(){return eO}});var r=n(44194);let o=["top","right","bottom","left"],i=Math.min,a=Math.max,l=Math.round,u=Math.floor,s=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},d={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 g(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function v(e){return["top","bottom"].includes(p(e))?"y":"x"}function y(e){return e.replace(/start|end/g,e=>d[e])}function w(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function b(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:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function M(e,t,n){let r,{reference:o,floating:i}=e,a=v(t),l=g(v(t)),u=m(l),s=p(t),c="y"===a,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,y=o[u]/2-i[u]/2;switch(s){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}switch(h(t)){case"start":r[l]-=y*(n&&c?-1:1);break;case"end":r[l]+=y*(n&&c?-1:1)}return r}let C=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),u=await (null==a.isRTL?void 0:a.isRTL(t)),s=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=M(s,r,u),f=r,p={},h=0;for(let n=0;n<l.length;n++){let{name:i,fn:g}=l[n],{x:m,y:v,data:y,reset:w}=await g({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:s,platform:a,elements:{reference:e,floating:t}});c=null!=m?m:c,d=null!=v?v:d,p={...p,[i]:{...p[i],...y}},w&&h<=50&&(h++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(s=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:c,y:d}=M(s,f,u)),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}};async function j(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:a,elements:l,strategy:u}=e,{boundary:s="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=f(t,e),g=b(h),m=l[p?"floating"===d?"reference":"floating":d],v=x(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:s,rootBoundary:c,strategy:u})),y="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await (null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),M=await (null==i.isElement?void 0:i.isElement(w))&&await (null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},C=x(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:w,strategy:u}):y);return{top:(v.top-C.top+g.top)/M.y,bottom:(C.bottom-v.bottom+g.bottom)/M.y,left:(v.left-C.left+g.left)/M.x,right:(C.right-v.right+g.right)/M.x}}function S(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function R(e){return o.some(t=>e[t]>=0)}async function E(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),a=p(n),l=h(n),u="y"===v(n),s=["left","top"].includes(a)?-1:1,c=i&&u?-1:1,d=f(t,e),{mainAxis:g,crossAxis:m,alignmentAxis:y}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&"number"==typeof y&&(m="end"===l?-1*y:y),u?{x:m*c,y:g*s}:{x:g*s,y:m*c}}function P(e){return _(e)?(e.nodeName||"").toLowerCase():"#document"}function T(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function O(e){var t;return null==(t=(_(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function _(e){return e instanceof Node||e instanceof T(e).Node}function k(e){return e instanceof Element||e instanceof T(e).Element}function D(e){return e instanceof HTMLElement||e instanceof T(e).HTMLElement}function A(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof T(e).ShadowRoot)}function I(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=F(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function N(e){let t=L(),n=F(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function L(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function W(e){return["html","body","#document"].includes(P(e))}function F(e){return T(e).getComputedStyle(e)}function V(e){return k(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function $(e){if("html"===P(e))return e;let t=e.assignedSlot||e.parentNode||A(e)&&e.host||O(e);return A(t)?t.host:t}function G(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=$(t);return W(n)?t.ownerDocument?t.ownerDocument.body:t.body:D(n)&&I(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=T(o);return i?t.concat(a,a.visualViewport||[],I(o)?o:[],a.frameElement&&n?G(a.frameElement):[]):t.concat(o,G(o,[],n))}function H(e){let t=F(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=D(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,u=l(n)!==i||l(r)!==a;return u&&(n=i,r=a),{width:n,height:r,$:u}}function z(e){return k(e)?e:e.contextElement}function B(e){let t=z(e);if(!D(t))return s(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=H(t),a=(i?l(n.width):n.width)/r,u=(i?l(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),u&&Number.isFinite(u)||(u=1),{x:a,y:u}}let K=s(0);function q(e){let t=T(e);return L()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:K}function U(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),a=z(e),l=s(1);t&&(r?k(r)&&(l=B(r)):l=B(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===T(a))&&o)?q(a):s(0),c=(i.left+u.x)/l.x,d=(i.top+u.y)/l.y,f=i.width/l.x,p=i.height/l.y;if(a){let e=T(a),t=r&&k(r)?T(r):r,n=e,o=n.frameElement;for(;o&&r&&t!==n;){let e=B(o),t=o.getBoundingClientRect(),r=F(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,d*=e.y,f*=e.x,p*=e.y,c+=i,d+=a,o=(n=T(o)).frameElement}}return x({width:f,height:p,x:c,y:d})}let Y=[":popover-open",":modal"];function Z(e){return Y.some(t=>{try{return e.matches(t)}catch(e){return!1}})}function X(e){return U(O(e)).left+V(e).scrollLeft}function J(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=T(e),r=O(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,u=0;if(o){i=o.width,a=o.height;let e=L();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:l,y:u}}(e,n);else if("document"===t)r=function(e){let t=O(e),n=V(e),r=e.ownerDocument.body,o=a(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=a(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+X(e),u=-n.scrollTop;return"rtl"===F(r).direction&&(l+=a(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:u}}(O(e));else if(k(t))r=function(e,t){let n=U(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=D(e)?B(e):s(1),a=e.clientWidth*i.x;return{width:a,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{let n=q(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return x(r)}function Q(e){return"static"===F(e).position}function ee(e,t){return D(e)&&"fixed"!==F(e).position?t?t(e):e.offsetParent:null}function et(e,t){let n=T(e);if(Z(e))return n;if(!D(e)){let t=$(e);for(;t&&!W(t);){if(k(t)&&!Q(t))return t;t=$(t)}return n}let r=ee(e,t);for(;r&&["table","td","th"].includes(P(r))&&Q(r);)r=ee(r,t);return r&&W(r)&&Q(r)&&!N(r)?n:r||function(e){let t=$(e);for(;D(t)&&!W(t);){if(N(t))return t;t=$(t)}return null}(e)||n}let en=async function(e){let t=this.getOffsetParent||et,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=D(t),o=O(t),i="fixed"===n,a=U(e,!0,i,t),l={scrollLeft:0,scrollTop:0},u=s(0);if(r||!r&&!i){if(("body"!==P(t)||I(o))&&(l=V(t)),r){let e=U(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=X(o))}return{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},er={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,a=O(r),l=!!t&&Z(t.floating);if(r===a||l&&i)return n;let u={scrollLeft:0,scrollTop:0},c=s(1),d=s(0),f=D(r);if((f||!f&&!i)&&(("body"!==P(r)||I(a))&&(u=V(r)),D(r))){let e=U(r);c=B(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x,y:n.y*c.y-u.scrollTop*c.y+d.y}},getDocumentElement:O,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,l=[..."clippingAncestors"===n?Z(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=G(e,[],!1).filter(e=>k(e)&&"body"!==P(e)),o=null,i="fixed"===F(e).position,a=i?$(e):e;for(;k(a)&&!W(a);){let t=F(a),n=N(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||I(a)&&!n&&function e(t,n){let r=$(t);return!(r===n||!k(r)||W(r))&&("fixed"===F(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):o=t,a=$(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],u=l[0],s=l.reduce((e,n)=>{let r=J(t,n,o);return e.top=a(r.top,e.top),e.right=i(r.right,e.right),e.bottom=i(r.bottom,e.bottom),e.left=a(r.left,e.left),e},J(t,u,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:et,getElementRects:en,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=H(e);return{width:t,height:n}},getScale:B,isElement:k,isRTL:function(e){return"rtl"===F(e).direction}},eo=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:l,platform:u,elements:s,middlewareData:c}=t,{element:d,padding:p=0}=f(e,t)||{};if(null==d)return{};let y=b(p),w={x:n,y:r},x=g(v(o)),M=m(x),C=await u.getDimensions(d),j="y"===x,S=j?"clientHeight":"clientWidth",R=l.reference[M]+l.reference[x]-w[x]-l.floating[M],E=w[x]-l.reference[x],P=await (null==u.getOffsetParent?void 0:u.getOffsetParent(d)),T=P?P[S]:0;T&&await (null==u.isElement?void 0:u.isElement(P))||(T=s.floating[S]||l.floating[M]);let O=T/2-C[M]/2-1,_=i(y[j?"top":"left"],O),k=i(y[j?"bottom":"right"],O),D=T-C[M]-k,A=T/2-C[M]/2+(R/2-E/2),I=a(_,i(A,D)),N=!c.arrow&&null!=h(o)&&A!==I&&l.reference[M]/2-(A<_?_:k)-C[M]/2<0,L=N?A<_?A-_:A-D:0;return{[x]:w[x]+L,data:{[x]:I,centerOffset:A-I-L,...N&&{alignmentOffset:L}},reset:N}}}),ei=(e,t,n)=>{let r=new Map,o={platform:er,...n},i={...o.platform,_c:r};return C(e,t,{...o,platform:i})};var ea=n(56321),el="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function eu(e,t){let n,r,o;if(e===t)return!0;if(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((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eu(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!eu(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function es(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ec(e,t){let n=es(e);return Math.round(t*n)/n}function ed(e){let t=r.useRef(e);return el(()=>{t.current=e}),t}let ef=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eo({element:n.current,padding:r}).fn(t):{}:n?eo({element:n,padding:r}).fn(t):{}}}),ep=(e,t)=>{var n;return{...(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:o,y:i,placement:a,middlewareData:l}=e,u=await E(e,n);return a===(null==(t=l.offset)?void 0:t.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:a}}}}),options:[e,t]}},eh=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o}=e,{mainAxis:l=!0,crossAxis:u=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=f(n,e),d={x:t,y:r},h=await j(e,c),m=v(p(o)),y=g(m),w=d[y],b=d[m];if(l){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=w+h[e],r=w-h[t];w=a(n,i(w,r))}if(u){let e="y"===m?"top":"left",t="y"===m?"bottom":"right",n=b+h[e],r=b-h[t];b=a(n,i(b,r))}let x=s.fn({...e,[y]:w,[m]:b});return{...x,data:{x:x.x-t,y:x.y-r}}}}),options:[e,t]}},eg=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{options:n,fn(e){let{x:t,y:r,placement:o,rects:i,middlewareData:a}=e,{offset:l=0,mainAxis:u=!0,crossAxis:s=!0}=f(n,e),c={x:t,y:r},d=v(o),h=g(d),m=c[h],y=c[d],w=f(l,e),b="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(u){let e="y"===h?"height":"width",t=i.reference[h]-i.floating[e]+b.mainAxis,n=i.reference[h]+i.reference[e]-b.mainAxis;m<t?m=t:m>n&&(m=n)}if(s){var x,M;let e="y"===h?"width":"height",t=["top","left"].includes(p(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(x=a.offset)?void 0:x[d])||0)+(t?0:b.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(M=a.offset)?void 0:M[d])||0)-(t?b.crossAxis:0);y<n?y=n:y>r&&(y=r)}return{[h]:m,[d]:y}}}),options:[e,t]}},em=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,o,i,a;let{placement:l,middlewareData:u,rects:s,initialPlacement:c,platform:d,elements:b}=e,{mainAxis:x=!0,crossAxis:M=!0,fallbackPlacements:C,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:R="none",flipAlignment:E=!0,...P}=f(n,e);if(null!=(t=u.arrow)&&t.alignmentOffset)return{};let T=p(l),O=p(c)===c,_=await (null==d.isRTL?void 0:d.isRTL(b.floating)),k=C||(O||!E?[w(c)]:function(e){let t=w(e);return[y(e),t,y(t)]}(c));C||"none"===R||k.push(...function(e,t,n,r){let o=h(e),i=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(p(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(y)))),i}(c,E,R,_));let D=[c,...k],A=await j(e,P),I=[],N=(null==(r=u.flip)?void 0:r.overflows)||[];if(x&&I.push(A[T]),M){let e=function(e,t,n){void 0===n&&(n=!1);let r=h(e),o=g(v(e)),i=m(o),a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=w(a)),[a,w(a)]}(l,s,_);I.push(A[e[0]],A[e[1]])}if(N=[...N,{placement:l,overflows:I}],!I.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=D[e];if(t)return{data:{index:e,overflows:N},reset:{placement:t}};let n=null==(i=N.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(S){case"bestFit":{let e=null==(a=N.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=c}if(l!==n)return{reset:{placement:n}}}return{}}}),options:[e,t]}},ev=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){let t,r;let{placement:o,rects:l,platform:u,elements:s}=e,{apply:c=()=>{},...d}=f(n,e),g=await j(e,d),m=p(o),y=h(o),w="y"===v(o),{width:b,height:x}=l.floating;"top"===m||"bottom"===m?(t=m,r=y===(await (null==u.isRTL?void 0:u.isRTL(s.floating))?"start":"end")?"left":"right"):(r=m,t="end"===y?"top":"bottom");let M=x-g.top-g.bottom,C=b-g.left-g.right,S=i(x-g[t],M),R=i(b-g[r],C),E=!e.middlewareData.shift,P=S,T=R;if(w?T=y||E?i(R,C):C:P=y||E?i(S,M):M,E&&!y){let e=a(g.left,0),t=a(g.right,0),n=a(g.top,0),r=a(g.bottom,0);w?T=b-2*(0!==e||0!==t?e+t:a(g.left,g.right)):P=x-2*(0!==n||0!==r?n+r:a(g.top,g.bottom))}await c({...e,availableWidth:T,availableHeight:P});let O=await u.getDimensions(s.floating);return b!==O.width||x!==O.height?{reset:{rects:!0}}:{}}}),options:[e,t]}},ey=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...o}=f(n,e);switch(r){case"referenceHidden":{let n=S(await j(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:R(n)}}}case"escaped":{let n=S(await j(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:R(n)}}}default:return{}}}}),options:[e,t]}},ew=(e,t)=>({...ef(e),options:[e,t]});var eb=n(98637),ex=n(31549),eM=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,ex.jsx)(eb.WV.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,ex.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eM.displayName="Arrow";var eC=n(57143),ej=n(55158),eS=n(13602),eR=n(11076),eE=n(45425),eP="Popper",[eT,eO]=(0,ej.b)(eP),[e_,ek]=eT(eP),eD=e=>{let{__scopePopper:t,children:n}=e,[o,i]=r.useState(null);return(0,ex.jsx)(e_,{scope:t,anchor:o,onAnchorChange:i,children:n})};eD.displayName=eP;var eA="PopperAnchor",eI=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:o,...i}=e,a=ek(eA,n),l=r.useRef(null),u=(0,eC.e)(t,l);return r.useEffect(()=>{a.onAnchorChange(o?.current||l.current)}),o?null:(0,ex.jsx)(eb.WV.div,{...i,ref:u})});eI.displayName=eA;var eN="PopperContent",[eL,eW]=eT(eN),eF=r.forwardRef((e,t)=>{let{__scopePopper:n,side:o="bottom",sideOffset:l=0,align:s="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:f=!0,collisionBoundary:p=[],collisionPadding:h=0,sticky:g="partial",hideWhenDetached:m=!1,updatePositionStrategy:v="optimized",onPlaced:y,...w}=e,b=ek(eN,n),[x,M]=r.useState(null),C=(0,eC.e)(t,e=>M(e)),[j,S]=r.useState(null),R=(0,eE.t)(j),E=R?.width??0,P=R?.height??0,T="number"==typeof h?h:{top:0,right:0,bottom:0,left:0,...h},_=Array.isArray(p)?p:[p],k=_.length>0,D={padding:T,boundary:_.filter(eH),altBoundary:k},{refs:A,floatingStyles:I,placement:N,isPositioned:L,middlewareData:W}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:l}={},transform:u=!0,whileElementsMounted:s,open:c}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=r.useState(o);eu(p,o)||h(o);let[g,m]=r.useState(null),[v,y]=r.useState(null),w=r.useCallback(e=>{e!==C.current&&(C.current=e,m(e))},[]),b=r.useCallback(e=>{e!==j.current&&(j.current=e,y(e))},[]),x=a||g,M=l||v,C=r.useRef(null),j=r.useRef(null),S=r.useRef(d),R=null!=s,E=ed(s),P=ed(i),T=r.useCallback(()=>{if(!C.current||!j.current)return;let e={placement:t,strategy:n,middleware:p};P.current&&(e.platform=P.current),ei(C.current,j.current,e).then(e=>{let t={...e,isPositioned:!0};O.current&&!eu(S.current,t)&&(S.current=t,ea.flushSync(()=>{f(t)}))})},[p,t,n,P]);el(()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let O=r.useRef(!1);el(()=>(O.current=!0,()=>{O.current=!1}),[]),el(()=>{if(x&&(C.current=x),M&&(j.current=M),x&&M){if(E.current)return E.current(x,M,T);T()}},[x,M,T,E,R]);let _=r.useMemo(()=>({reference:C,floating:j,setReference:w,setFloating:b}),[w,b]),k=r.useMemo(()=>({reference:x,floating:M}),[x,M]),D=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!k.floating)return e;let t=ec(k.floating,d.x),r=ec(k.floating,d.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...es(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,k.floating,d.x,d.y]);return r.useMemo(()=>({...d,update:T,refs:_,elements:k,floatingStyles:D}),[d,T,_,k,D])}({strategy:"fixed",placement:o+("center"!==s?"-"+s:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:l=!0,ancestorResize:s=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:f=!1}=r,p=z(e),h=l||s?[...p?G(p):[],...G(t)]:[];h.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let g=p&&d?function(e,t){let n,r=null,o=O(e);function l(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function s(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),l();let{left:f,top:p,width:h,height:g}=e.getBoundingClientRect();if(c||t(),!h||!g)return;let m=u(p),v=u(o.clientWidth-(f+h)),y={rootMargin:-m+"px "+-v+"px "+-u(o.clientHeight-(p+g))+"px "+-u(f)+"px",threshold:a(0,i(1,d))||1},w=!0;function b(e){let t=e[0].intersectionRatio;if(t!==d){if(!w)return s();t?s(!1,t):n=setTimeout(()=>{s(!1,1e-7)},1e3)}w=!1}try{r=new IntersectionObserver(b,{...y,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(b,y)}r.observe(e)}(!0),l}(p,n):null,m=-1,v=null;c&&(v=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&v&&(v.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),n()}),p&&!f&&v.observe(p),v.observe(t));let y=f?U(e):null;return f&&function t(){let r=U(e);y&&(r.x!==y.x||r.y!==y.y||r.width!==y.width||r.height!==y.height)&&n(),y=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach(e=>{l&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==g||g(),null==(e=v)||e.disconnect(),v=null,f&&cancelAnimationFrame(o)}})(...e,{animationFrame:"always"===v}),elements:{reference:b.anchor},middleware:[ep({mainAxis:l+P,alignmentAxis:c}),f&&eh({mainAxis:!0,crossAxis:!1,limiter:"partial"===g?eg():void 0,...D}),f&&em({...D}),ev({...D,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),j&&ew({element:j,padding:d}),ez({arrowWidth:E,arrowHeight:P}),m&&ey({strategy:"referenceHidden",...D})]}),[F,V]=eB(N),$=(0,eS.W)(y);(0,eR.b)(()=>{L&&$?.()},[L,$]);let H=W.arrow?.x,B=W.arrow?.y,K=W.arrow?.centerOffset!==0,[q,Y]=r.useState();return(0,eR.b)(()=>{x&&Y(window.getComputedStyle(x).zIndex)},[x]),(0,ex.jsx)("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...I,transform:L?I.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:q,"--radix-popper-transform-origin":[W.transformOrigin?.x,W.transformOrigin?.y].join(" "),...W.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,ex.jsx)(eL,{scope:n,placedSide:F,onArrowChange:S,arrowX:H,arrowY:B,shouldHideArrow:K,children:(0,ex.jsx)(eb.WV.div,{"data-side":F,"data-align":V,...w,ref:C,style:{...w.style,animation:L?void 0:"none"}})})})});eF.displayName=eN;var eV="PopperArrow",e$={top:"bottom",right:"left",bottom:"top",left:"right"},eG=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=eW(eV,n),i=e$[o.placedSide];return(0,ex.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,ex.jsx)(eM,{...r,ref:t,style:{...r.style,display:"block"}})})});function eH(e){return null!==e}eG.displayName=eV;var ez=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,s]=eB(n),c={start:"0%",center:"50%",end:"100%"}[s],d=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+l/2,p="",h="";return"bottom"===u?(p=i?c:`${d}px`,h=`${-l}px`):"top"===u?(p=i?c:`${d}px`,h=`${r.floating.height+l}px`):"right"===u?(p=`${-l}px`,h=i?c:`${f}px`):"left"===u&&(p=`${r.floating.width+l}px`,h=i?c:`${f}px`),{data:{x:p,y:h}}}});function eB(e){let[t,n="center"]=e.split("-");return[t,n]}var eK=eD,eq=eI,eU=eF,eY=eG},88581:function(e,t,n){"use strict";n.d(t,{Pc:function(){return x},ck:function(){return _},fC:function(){return O}});var r=n(44194),o=n(74810),i=n(512),a=n(57143),l=n(55158),u=n(85884),s=n(98637),c=n(13602),d=n(86939),f=n(67874),p=n(31549),h="rovingFocusGroup.onEntryFocus",g={bubbles:!1,cancelable:!0},m="RovingFocusGroup",[v,y,w]=(0,i.B)(m),[b,x]=(0,l.b)(m,[w]),[M,C]=b(m),j=r.forwardRef((e,t)=>(0,p.jsx)(v.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(v.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(S,{...e,ref:t})})}));j.displayName=m;var S=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:i,loop:l=!1,dir:u,currentTabStopId:m,defaultCurrentTabStopId:v,onCurrentTabStopIdChange:w,onEntryFocus:b,preventScrollOnEntryFocus:x=!1,...C}=e,j=r.useRef(null),S=(0,a.e)(t,j),R=(0,f.gm)(u),[E=null,P]=(0,d.T)({prop:m,defaultProp:v,onChange:w}),[O,_]=r.useState(!1),k=(0,c.W)(b),D=y(n),A=r.useRef(!1),[I,N]=r.useState(0);return r.useEffect(()=>{let e=j.current;if(e)return e.addEventListener(h,k),()=>e.removeEventListener(h,k)},[k]),(0,p.jsx)(M,{scope:n,orientation:i,dir:R,loop:l,currentTabStopId:E,onItemFocus:r.useCallback(e=>P(e),[P]),onItemShiftTab:r.useCallback(()=>_(!0),[]),onFocusableItemAdd:r.useCallback(()=>N(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>N(e=>e-1),[]),children:(0,p.jsx)(s.WV.div,{tabIndex:O||0===I?-1:0,"data-orientation":i,...C,ref:S,style:{outline:"none",...e.style},onMouseDown:(0,o.M)(e.onMouseDown,()=>{A.current=!0}),onFocus:(0,o.M)(e.onFocus,e=>{let t=!A.current;if(e.target===e.currentTarget&&t&&!O){let t=new CustomEvent(h,g);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=D().filter(e=>e.focusable);T([e.find(e=>e.active),e.find(e=>e.id===E),...e].filter(Boolean).map(e=>e.ref.current),x)}}A.current=!1}),onBlur:(0,o.M)(e.onBlur,()=>_(!1))})})}),R="RovingFocusGroupItem",E=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:i=!0,active:a=!1,tabStopId:l,...c}=e,d=(0,u.M)(),f=l||d,h=C(R,n),g=h.currentTabStopId===f,m=y(n),{onFocusableItemAdd:w,onFocusableItemRemove:b}=h;return r.useEffect(()=>{if(i)return w(),()=>b()},[i,w,b]),(0,p.jsx)(v.ItemSlot,{scope:n,id:f,focusable:i,active:a,children:(0,p.jsx)(s.WV.span,{tabIndex:g?0:-1,"data-orientation":h.orientation,...c,ref:t,onMouseDown:(0,o.M)(e.onMouseDown,e=>{i?h.onItemFocus(f):e.preventDefault()}),onFocus:(0,o.M)(e.onFocus,()=>h.onItemFocus(f)),onKeyDown:(0,o.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){h.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return P[o]}(e,h.orientation,h.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=h.loop?(n=o,r=i+1,n.map((e,t)=>n[(r+t)%n.length])):o.slice(i+1)}setTimeout(()=>T(o))}})})})});E.displayName=R;var P={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function T(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var O=j,_=E},90808:function(e,t,n){"use strict";n.d(t,{VY:function(){return eA},ZA:function(){return eN},JO:function(){return ek},ck:function(){return eW},wU:function(){return eV},eT:function(){return eF},__:function(){return eL},h_:function(){return eD},fC:function(){return eT},$G:function(){return eG},u_:function(){return e$},Z0:function(){return eH},xz:function(){return eO},B4:function(){return e_},l_:function(){return eI}});var r=n(44194),o=n(56321);function i(e,[t,n]){return Math.min(n,Math.max(t,e))}var a=n(74810),l=n(512),u=n(57143),s=n(20399),c=n(67874),d=n(11252),f=n(35726),p=n(13006),h=n(85884),g=n(52781),m=n(35302),v=n(98637),y=n(56735),w=n(13602),b=n(86939),x=n(11076),M=n(89992),C=n(31549),j=r.forwardRef((e,t)=>(0,C.jsx)(v.WV.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}}));j.displayName="VisuallyHidden";var S=n(40627),R=n(54169),E=[" ","Enter","ArrowUp","ArrowDown"],P=[" ","Enter"],T="Select",[O,_,k]=(0,l.B)(T),[D,A]=(0,s.b)(T,[k,g.D7]),I=(0,g.D7)(),[N,L]=D(T),[W,F]=D(T),V=e=>{let{__scopeSelect:t,children:n,open:o,defaultOpen:i,onOpenChange:a,value:l,defaultValue:u,onValueChange:s,dir:d,name:f,autoComplete:p,disabled:m,required:v,form:y}=e,w=I(t),[x,M]=r.useState(null),[j,S]=r.useState(null),[R,E]=r.useState(!1),P=(0,c.gm)(d),[T=!1,_]=(0,b.T)({prop:o,defaultProp:i,onChange:a}),[k,D]=(0,b.T)({prop:l,defaultProp:u,onChange:s}),A=r.useRef(null),L=!x||y||!!x.closest("form"),[F,V]=r.useState(new Set),$=Array.from(F).map(e=>e.props.value).join(";");return(0,C.jsx)(g.fC,{...w,children:(0,C.jsxs)(N,{required:v,scope:t,trigger:x,onTriggerChange:M,valueNode:j,onValueNodeChange:S,valueNodeHasChildren:R,onValueNodeHasChildrenChange:E,contentId:(0,h.M)(),value:k,onValueChange:D,open:T,onOpenChange:_,dir:P,triggerPointerDownPosRef:A,disabled:m,children:[(0,C.jsx)(O.Provider,{scope:t,children:(0,C.jsx)(W,{scope:e.__scopeSelect,onNativeOptionAdd:r.useCallback(e=>{V(t=>new Set(t).add(e))},[]),onNativeOptionRemove:r.useCallback(e=>{V(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),L?(0,C.jsxs)(eR,{"aria-hidden":!0,required:v,tabIndex:-1,name:f,autoComplete:p,value:k,onChange:e=>D(e.target.value),disabled:m,form:y,children:[void 0===k?(0,C.jsx)("option",{value:""}):null,Array.from(F)]},$):null]})})};V.displayName=T;var $="SelectTrigger",G=r.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:o=!1,...i}=e,l=I(n),s=L($,n),c=s.disabled||o,d=(0,u.e)(t,s.onTriggerChange),f=_(n),p=r.useRef("touch"),[h,m,y]=eE(e=>{let t=f().filter(e=>!e.disabled),n=t.find(e=>e.value===s.value),r=eP(t,e,n);void 0!==r&&s.onValueChange(r.value)}),w=e=>{c||(s.onOpenChange(!0),y()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,C.jsx)(g.ee,{asChild:!0,...l,children:(0,C.jsx)(v.WV.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":eS(s.value)?"":void 0,...i,ref:d,onClick:(0,a.M)(i.onClick,e=>{e.currentTarget.focus(),"mouse"!==p.current&&w(e)}),onPointerDown:(0,a.M)(i.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&&(w(e),e.preventDefault())}),onKeyDown:(0,a.M)(i.onKeyDown,e=>{let t=""!==h.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),(!t||" "!==e.key)&&E.includes(e.key)&&(w(),e.preventDefault())})})})});G.displayName=$;var H="SelectValue",z=r.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,children:i,placeholder:a="",...l}=e,s=L(H,n),{onValueNodeHasChildrenChange:c}=s,d=void 0!==i,f=(0,u.e)(t,s.onValueNodeChange);return(0,x.b)(()=>{c(d)},[c,d]),(0,C.jsx)(v.WV.span,{...l,ref:f,style:{pointerEvents:"none"},children:eS(s.value)?(0,C.jsx)(C.Fragment,{children:a}):i})});z.displayName=H;var B=r.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...o}=e;return(0,C.jsx)(v.WV.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});B.displayName="SelectIcon";var K=e=>(0,C.jsx)(m.h,{asChild:!0,...e});K.displayName="SelectPortal";var q="SelectContent",U=r.forwardRef((e,t)=>{let n=L(q,e.__scopeSelect),[i,a]=r.useState();return((0,x.b)(()=>{a(new DocumentFragment)},[]),n.open)?(0,C.jsx)(X,{...e,ref:t}):i?o.createPortal((0,C.jsx)(Y,{scope:e.__scopeSelect,children:(0,C.jsx)(O.Slot,{scope:e.__scopeSelect,children:(0,C.jsx)("div",{children:e.children})})}),i):null});U.displayName=q;var[Y,Z]=D(q),X=r.forwardRef((e,t)=>{let{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:l,onPointerDownOutside:s,side:c,sideOffset:h,align:g,alignOffset:m,arrowPadding:v,collisionBoundary:w,collisionPadding:b,sticky:x,hideWhenDetached:M,avoidCollisions:j,...E}=e,P=L(q,n),[T,O]=r.useState(null),[k,D]=r.useState(null),A=(0,u.e)(t,e=>O(e)),[I,N]=r.useState(null),[W,F]=r.useState(null),V=_(n),[$,G]=r.useState(!1),H=r.useRef(!1);r.useEffect(()=>{if(T)return(0,S.Ry)(T)},[T]),(0,f.EW)();let z=r.useCallback(e=>{let[t,...n]=V().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(let n of e)if(n===o||(n?.scrollIntoView({block:"nearest"}),n===t&&k&&(k.scrollTop=0),n===r&&k&&(k.scrollTop=k.scrollHeight),n?.focus(),document.activeElement!==o))return},[V,k]),B=r.useCallback(()=>z([I,T]),[z,I,T]);r.useEffect(()=>{$&&B()},[$,B]);let{onOpenChange:K,triggerPointerDownPosRef:U}=P;r.useEffect(()=>{if(T){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(U.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(U.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():T.contains(n.target)||K(!1),document.removeEventListener("pointermove",t),U.current=null};return null!==U.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[T,K,U]),r.useEffect(()=>{let e=()=>K(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[K]);let[Z,X]=eE(e=>{let t=V().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=eP(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),ee=r.useCallback((e,t,n)=>{let r=!H.current&&!n;(void 0!==P.value&&P.value===t||r)&&(N(e),r&&(H.current=!0))},[P.value]),et=r.useCallback(()=>T?.focus(),[T]),en=r.useCallback((e,t,n)=>{let r=!H.current&&!n;(void 0!==P.value&&P.value===t||r)&&F(e)},[P.value]),er="popper"===o?Q:J,eo=er===Q?{side:c,sideOffset:h,align:g,alignOffset:m,arrowPadding:v,collisionBoundary:w,collisionPadding:b,sticky:x,hideWhenDetached:M,avoidCollisions:j}:{};return(0,C.jsx)(Y,{scope:n,content:T,viewport:k,onViewportChange:D,itemRefCallback:ee,selectedItem:I,onItemLeave:et,itemTextRefCallback:en,focusSelectedItem:B,selectedItemText:W,position:o,isPositioned:$,searchRef:Z,children:(0,C.jsx)(R.Z,{as:y.g7,allowPinchZoom:!0,children:(0,C.jsx)(p.M,{asChild:!0,trapped:P.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,a.M)(i,e=>{P.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,C.jsx)(d.XB,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>P.onOpenChange(!1),children:(0,C.jsx)(er,{role:"listbox",id:P.contentId,"data-state":P.open?"open":"closed",dir:P.dir,onContextMenu:e=>e.preventDefault(),...E,...eo,onPlaced:()=>G(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...E.style},onKeyDown:(0,a.M)(E.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=V().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 n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>z(t)),e.preventDefault()}})})})})})})});X.displayName="SelectContentImpl";var J=r.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:o,...a}=e,l=L(q,n),s=Z(q,n),[c,d]=r.useState(null),[f,p]=r.useState(null),h=(0,u.e)(t,e=>p(e)),g=_(n),m=r.useRef(!1),y=r.useRef(!0),{viewport:w,selectedItem:b,selectedItemText:M,focusSelectedItem:j}=s,S=r.useCallback(()=>{if(l.trigger&&l.valueNode&&c&&f&&w&&b&&M){let e=l.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),n=l.valueNode.getBoundingClientRect(),r=M.getBoundingClientRect();if("rtl"!==l.dir){let o=r.left-t.left,a=n.left-o,l=e.left-a,u=e.width+l,s=Math.max(u,t.width),d=i(a,[10,Math.max(10,window.innerWidth-10-s)]);c.style.minWidth=u+"px",c.style.left=d+"px"}else{let o=t.right-r.right,a=window.innerWidth-n.right-o,l=window.innerWidth-e.right-a,u=e.width+l,s=Math.max(u,t.width),d=i(a,[10,Math.max(10,window.innerWidth-10-s)]);c.style.minWidth=u+"px",c.style.right=d+"px"}let a=g(),u=window.innerHeight-20,s=w.scrollHeight,d=window.getComputedStyle(f),p=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),v=parseInt(d.borderBottomWidth,10),y=p+h+s+parseInt(d.paddingBottom,10)+v,x=Math.min(5*b.offsetHeight,y),C=window.getComputedStyle(w),j=parseInt(C.paddingTop,10),S=parseInt(C.paddingBottom,10),R=e.top+e.height/2-10,E=b.offsetHeight/2,P=p+h+(b.offsetTop+E);if(P<=R){let e=a.length>0&&b===a[a.length-1].ref.current;c.style.bottom="0px";let t=f.clientHeight-w.offsetTop-w.offsetHeight;c.style.height=P+Math.max(u-R,E+(e?S:0)+t+v)+"px"}else{let e=a.length>0&&b===a[0].ref.current;c.style.top="0px";let t=Math.max(R,p+w.offsetTop+(e?j:0)+E);c.style.height=t+(y-P)+"px",w.scrollTop=P-R+w.offsetTop}c.style.margin="10px 0",c.style.minHeight=x+"px",c.style.maxHeight=u+"px",o?.(),requestAnimationFrame(()=>m.current=!0)}},[g,l.trigger,l.valueNode,c,f,w,b,M,l.dir,o]);(0,x.b)(()=>S(),[S]);let[R,E]=r.useState();(0,x.b)(()=>{f&&E(window.getComputedStyle(f).zIndex)},[f]);let P=r.useCallback(e=>{e&&!0===y.current&&(S(),j?.(),y.current=!1)},[S,j]);return(0,C.jsx)(ee,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:m,onScrollButtonChange:P,children:(0,C.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:(0,C.jsx)(v.WV.div,{...a,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});J.displayName="SelectItemAlignedPosition";var Q=r.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:o=10,...i}=e,a=I(n);return(0,C.jsx)(g.VY,{...a,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.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]=D(q,{}),en="SelectViewport",er=r.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:o,...i}=e,l=Z(en,n),s=et(en,n),c=(0,u.e)(t,l.onViewportChange),d=r.useRef(0);return(0,C.jsxs)(C.Fragment,{children:[(0,C.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:o}),(0,C.jsx)(O.Slot,{scope:n,children:(0,C.jsx)(v.WV.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:(0,a.M)(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=s;if(r?.current&&n){let e=Math.abs(d.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,o=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(o<r){let i=o+e,a=Math.min(r,i),l=i-a;n.style.height=a+"px","0px"===n.style.bottom&&(t.scrollTop=l>0?l:0,n.style.justifyContent="flex-end")}}}d.current=t.scrollTop})})})]})});er.displayName=en;var eo="SelectGroup",[ei,ea]=D(eo),el=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=(0,h.M)();return(0,C.jsx)(ei,{scope:n,id:o,children:(0,C.jsx)(v.WV.div,{role:"group","aria-labelledby":o,...r,ref:t})})});el.displayName=eo;var eu="SelectLabel",es=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=ea(eu,n);return(0,C.jsx)(v.WV.div,{id:o.id,...r,ref:t})});es.displayName=eu;var ec="SelectItem",[ed,ef]=D(ec),ep=r.forwardRef((e,t)=>{let{__scopeSelect:n,value:o,disabled:i=!1,textValue:l,...s}=e,c=L(ec,n),d=Z(ec,n),f=c.value===o,[p,g]=r.useState(l??""),[m,y]=r.useState(!1),w=(0,u.e)(t,e=>d.itemRefCallback?.(e,o,i)),b=(0,h.M)(),x=r.useRef("touch"),M=()=>{i||(c.onValueChange(o),c.onOpenChange(!1))};if(""===o)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,C.jsx)(ed,{scope:n,value:o,disabled:i,textId:b,isSelected:f,onItemTextChange:r.useCallback(e=>{g(t=>t||(e?.textContent??"").trim())},[]),children:(0,C.jsx)(O.ItemSlot,{scope:n,value:o,disabled:i,textValue:p,children:(0,C.jsx)(v.WV.div,{role:"option","aria-labelledby":b,"data-highlighted":m?"":void 0,"aria-selected":f&&m,"data-state":f?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...s,ref:w,onFocus:(0,a.M)(s.onFocus,()=>y(!0)),onBlur:(0,a.M)(s.onBlur,()=>y(!1)),onClick:(0,a.M)(s.onClick,()=>{"mouse"!==x.current&&M()}),onPointerUp:(0,a.M)(s.onPointerUp,()=>{"mouse"===x.current&&M()}),onPointerDown:(0,a.M)(s.onPointerDown,e=>{x.current=e.pointerType}),onPointerMove:(0,a.M)(s.onPointerMove,e=>{x.current=e.pointerType,i?d.onItemLeave?.():"mouse"===x.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,a.M)(s.onPointerLeave,e=>{e.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:(0,a.M)(s.onKeyDown,e=>{d.searchRef?.current!==""&&" "===e.key||(P.includes(e.key)&&M()," "===e.key&&e.preventDefault())})})})})});ep.displayName=ec;var eh="SelectItemText",eg=r.forwardRef((e,t)=>{let{__scopeSelect:n,className:i,style:a,...l}=e,s=L(eh,n),c=Z(eh,n),d=ef(eh,n),f=F(eh,n),[p,h]=r.useState(null),g=(0,u.e)(t,e=>h(e),d.onItemTextChange,e=>c.itemTextRefCallback?.(e,d.value,d.disabled)),m=p?.textContent,y=r.useMemo(()=>(0,C.jsx)("option",{value:d.value,disabled:d.disabled,children:m},d.value),[d.disabled,d.value,m]),{onNativeOptionAdd:w,onNativeOptionRemove:b}=f;return(0,x.b)(()=>(w(y),()=>b(y)),[w,b,y]),(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(v.WV.span,{id:d.textId,...l,ref:g}),d.isSelected&&s.valueNode&&!s.valueNodeHasChildren?o.createPortal(l.children,s.valueNode):null]})});eg.displayName=eh;var em="SelectItemIndicator",ev=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return ef(em,n).isSelected?(0,C.jsx)(v.WV.span,{"aria-hidden":!0,...r,ref:t}):null});ev.displayName=em;var ey="SelectScrollUpButton",ew=r.forwardRef((e,t)=>{let n=Z(ey,e.__scopeSelect),o=et(ey,e.__scopeSelect),[i,a]=r.useState(!1),l=(0,u.e)(t,o.onScrollButtonChange);return(0,x.b)(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),i?(0,C.jsx)(eM,{...e,ref:l,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});ew.displayName=ey;var eb="SelectScrollDownButton",ex=r.forwardRef((e,t)=>{let n=Z(eb,e.__scopeSelect),o=et(eb,e.__scopeSelect),[i,a]=r.useState(!1),l=(0,u.e)(t,o.onScrollButtonChange);return(0,x.b)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),i?(0,C.jsx)(eM,{...e,ref:l,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});ex.displayName=eb;var eM=r.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:o,...i}=e,l=Z("SelectScrollButton",n),u=r.useRef(null),s=_(n),c=r.useCallback(()=>{null!==u.current&&(window.clearInterval(u.current),u.current=null)},[]);return r.useEffect(()=>()=>c(),[c]),(0,x.b)(()=>{let e=s().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[s]),(0,C.jsx)(v.WV.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:(0,a.M)(i.onPointerDown,()=>{null===u.current&&(u.current=window.setInterval(o,50))}),onPointerMove:(0,a.M)(i.onPointerMove,()=>{l.onItemLeave?.(),null===u.current&&(u.current=window.setInterval(o,50))}),onPointerLeave:(0,a.M)(i.onPointerLeave,()=>{c()})})}),eC=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,C.jsx)(v.WV.div,{"aria-hidden":!0,...r,ref:t})});eC.displayName="SelectSeparator";var ej="SelectArrow";function eS(e){return""===e||void 0===e}r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=I(n),i=L(ej,n),a=Z(ej,n);return i.open&&"popper"===a.position?(0,C.jsx)(g.Eh,{...o,...r,ref:t}):null}).displayName=ej;var eR=r.forwardRef((e,t)=>{let{value:n,...o}=e,i=r.useRef(null),a=(0,u.e)(t,i),l=(0,M.D)(n);return r.useEffect(()=>{let e=i.current,t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(l!==n&&t){let r=new Event("change",{bubbles:!0});t.call(e,n),e.dispatchEvent(r)}},[l,n]),(0,C.jsx)(j,{asChild:!0,children:(0,C.jsx)("select",{...o,ref:a,defaultValue:n})})});function eE(e){let t=(0,w.W)(e),n=r.useRef(""),o=r.useRef(0),i=r.useCallback(e=>{let r=n.current+e;t(r),function e(t){n.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout(()=>e(""),1e3))}(r)},[t]),a=r.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return r.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,i,a]}function eP(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(i=i.filter(e=>e!==n));let a=i.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}eR.displayName="BubbleSelect";var eT=V,eO=G,e_=z,ek=B,eD=K,eA=U,eI=er,eN=el,eL=es,eW=ep,eF=eg,eV=ev,e$=ew,eG=ex,eH=eC},59765:function(e,t,n){"use strict";n.d(t,{bU:function(){return C},fC:function(){return M}});var r=n(44194),o=n(74810),i=n(57143),a=n(20399),l=n(86939),u=n(89992),s=n(45425),c=n(98637),d=n(31549),f="Switch",[p,h]=(0,a.b)(f),[g,m]=p(f),v=r.forwardRef((e,t)=>{let{__scopeSwitch:n,name:a,checked:u,defaultChecked:s,required:f,disabled:p,value:h="on",onCheckedChange:m,form:v,...y}=e,[w,M]=r.useState(null),C=(0,i.e)(t,e=>M(e)),j=r.useRef(!1),S=!w||v||!!w.closest("form"),[R=!1,E]=(0,l.T)({prop:u,defaultProp:s,onChange:m});return(0,d.jsxs)(g,{scope:n,checked:R,disabled:p,children:[(0,d.jsx)(c.WV.button,{type:"button",role:"switch","aria-checked":R,"aria-required":f,"data-state":x(R),"data-disabled":p?"":void 0,disabled:p,value:h,...y,ref:C,onClick:(0,o.M)(e.onClick,e=>{E(e=>!e),S&&(j.current=e.isPropagationStopped(),j.current||e.stopPropagation())})}),S&&(0,d.jsx)(b,{control:w,bubbles:!j.current,name:a,value:h,checked:R,required:f,disabled:p,form:v,style:{transform:"translateX(-100%)"}})]})});v.displayName=f;var y="SwitchThumb",w=r.forwardRef((e,t)=>{let{__scopeSwitch:n,...r}=e,o=m(y,n);return(0,d.jsx)(c.WV.span,{"data-state":x(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});w.displayName=y;var b=e=>{let{control:t,checked:n,bubbles:o=!0,...i}=e,a=r.useRef(null),l=(0,u.D)(n),c=(0,s.t)(t);return r.useEffect(()=>{let e=a.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(l!==n&&t){let r=new Event("click",{bubbles:o});t.call(e,n),e.dispatchEvent(r)}},[l,n,o]),(0,d.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:a,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function x(e){return e?"checked":"unchecked"}var M=v,C=w},38946:function(e,t,n){"use strict";n.d(t,{VY:function(){return _},aV:function(){return T},fC:function(){return P},xz:function(){return O}});var r=n(44194),o=n(74810),i=n(20399),a=n(88581),l=n(65419),u=n(98637),s=n(67874),c=n(86939),d=n(85884),f=n(31549),p="Tabs",[h,g]=(0,i.b)(p,[a.Pc]),m=(0,a.Pc)(),[v,y]=h(p),w=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:l,activationMode:p="automatic",...h}=e,g=(0,s.gm)(l),[m,y]=(0,c.T)({prop:r,onChange:o,defaultProp:i});return(0,f.jsx)(v,{scope:n,baseId:(0,d.M)(),value:m,onValueChange:y,orientation:a,dir:g,activationMode:p,children:(0,f.jsx)(u.WV.div,{dir:g,"data-orientation":a,...h,ref:t})})});w.displayName=p;var b="TabsList",x=r.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...o}=e,i=y(b,n),l=m(n);return(0,f.jsx)(a.fC,{asChild:!0,...l,orientation:i.orientation,dir:i.dir,loop:r,children:(0,f.jsx)(u.WV.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});x.displayName=b;var M="TabsTrigger",C=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...l}=e,s=y(M,n),c=m(n),d=R(s.baseId,r),p=E(s.baseId,r),h=r===s.value;return(0,f.jsx)(a.ck,{asChild:!0,...c,focusable:!i,active:h,children:(0,f.jsx)(u.WV.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":p,"data-state":h?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:d,...l,ref:t,onMouseDown:(0,o.M)(e.onMouseDown,e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():s.onValueChange(r)}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&s.onValueChange(r)}),onFocus:(0,o.M)(e.onFocus,()=>{let e="manual"!==s.activationMode;h||i||!e||s.onValueChange(r)})})})});C.displayName=M;var j="TabsContent",S=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:o,forceMount:i,children:a,...s}=e,c=y(j,n),d=R(c.baseId,o),p=E(c.baseId,o),h=o===c.value,g=r.useRef(h);return r.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,f.jsx)(l.z,{present:i||h,children:({present:n})=>(0,f.jsx)(u.WV.div,{"data-state":h?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!n,id:p,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:g.current?"0s":void 0},children:n&&a})})});function R(e,t){return`${e}-trigger-${t}`}function E(e,t){return`${e}-content-${t}`}S.displayName=j;var P=w,T=x,O=C,_=S},7358:function(e,t,n){"use strict";n.d(t,{N:function(){return l}});var r=n(13556),o=n(81246),i=class extends r.z{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:(0,o.Gm)()},t)}getOptimisticResult(e){return e.behavior=(0,o.Gm)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){let{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:l,isRefetchError:u}=r,s=n.fetchMeta?.fetchMore?.direction,c=l&&"forward"===s,d=i&&"forward"===s,f=l&&"backward"===s,p=i&&"backward"===s;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,o.Qy)(t,n.data),hasPreviousPage:(0,o.ZF)(t,n.data),isFetchNextPageError:c,isFetchingNextPage:d,isFetchPreviousPageError:f,isFetchingPreviousPage:p,isRefetchError:u&&!c&&!f,isRefetching:a&&!d&&!p}}},a=n(95513);function l(e,t){return(0,a.r)(e,i,t)}},39703:function(e,t,n){"use strict";n.d(t,{e:function(){return u}});var r=n(96206),o=n(16862),i=n(92192),a=n(40545),l=n(74426);async function u(e,t){let{chainId:n,timeout:u=0,...s}=t,c=e.getClient({chainId:n}),d=(0,l.s)(c,o.e,"waitForTransactionReceipt"),f=await d({...s,timeout:u});if("reverted"===f.status){let e=(0,l.s)(c,i.f,"getTransaction"),t=await e({hash:f.transactionHash}),n=(0,l.s)(c,a.R,"call"),o=await n({...t,gasPrice:"eip1559"!==t.type?t.gasPrice:void 0,maxFeePerGas:"eip1559"===t.type?t.maxFeePerGas:void 0,maxPriorityFeePerGas:"eip1559"===t.type?t.maxPriorityFeePerGas:void 0});throw Error(o?.data?(0,r.rR)(`0x${o.data.substring(138)}`):"unknown reason")}return{...f,chainId:c.chain.id}}},72911:function(e,t,n){"use strict";n.d(t,{W:function(){return o}});var r=n(44194);function o(e,t,n){(0,r.useInsertionEffect)(()=>e.on(t,n),[e,t,n])}},86072:function(e,t,n){"use strict";let r,o;n.d(t,{v:function(){return A}});var i=n(28316),a=n(46570),l=n(44194),u=n(27243);let s=new WeakMap;function c({target:e,contentRect:t,borderBoxSize:n}){var r;null===(r=s.get(e))||void 0===r||r.forEach(r=>{r({target:e,contentSize:t,get size(){return function(e,t){if(t){let{inlineSize:e,blockSize:n}=t[0];return{width:e,height:n}}return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}(e,n)}})})}function d(e){e.forEach(c)}let f=new Set;var p=n(17957),h=n(34092);let g=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),m=()=>({time:0,x:g(),y:g()}),v={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function y(e,t,n,r){let o=n[t],{length:i,position:a}=v[t],l=o.current,u=n.time;o.current=e["scroll"+a],o.scrollLength=e["scroll"+i]-e["client"+i],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=(0,p.Y)(0,o.scrollLength,o.current);let s=r-u;o.velocity=s>50?0:(0,h.R)(o.current-l,s)}let w=[[0,0],[1,1]],b={start:0,center:.5,end:1};function x(e,t,n=0){let r=0;if(void 0!==b[e]&&(e=b[e]),"string"==typeof e){let t=parseFloat(e);e.endsWith("px")?r=t:e.endsWith("%")?e=t/100:e.endsWith("vw")?r=t/100*document.documentElement.clientWidth:e.endsWith("vh")?r=t/100*document.documentElement.clientHeight:e=t}return"number"==typeof e&&(r=t*e),n+r}let M=[0,0];var C=n(61356),j=n(84783);let S={x:0,y:0};var R=n(87743);let E=new WeakMap,P=new WeakMap,T=new WeakMap,O=e=>e===document.documentElement?window:e;var _=n(85575);function k(e,t){(0,u.K)(!!(!t||t.current),`You have defined a ${e} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its \`layoutEffect: false\` option.`)}let D=()=>({scrollX:(0,i.BX)(0),scrollY:(0,i.BX)(0),scrollXProgress:(0,i.BX)(0),scrollYProgress:(0,i.BX)(0)});function A({container:e,target:t,layoutEffect:n=!0,...i}={}){let u=(0,a.h)(D);return(n?_.L:l.useEffect)(()=>(k("target",t),k("container",e),function(e,{container:t=document.documentElement,...n}={}){let i=T.get(t);i||(i=new Set,T.set(t,i));let a=function(e,t,n,r={}){return{measure:()=>(function(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight})(e,r.target,n),update:t=>{y(e,"x",n,t),y(e,"y",n,t),n.time=t,(r.offset||r.target)&&function(e,t,n){let{offset:r=w}=n,{target:o=e,axis:i="y"}=n,a="y"===i?"height":"width",l=o!==e?function(e,t){let n={x:0,y:0},r=e;for(;r&&r!==t;)if(r instanceof HTMLElement)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if("svg"===r.tagName){let e=r.getBoundingClientRect(),t=(r=r.parentElement).getBoundingClientRect();n.x+=e.left-t.left,n.y+=e.top-t.top}else if(r instanceof SVGGraphicsElement){let{x:e,y:t}=r.getBBox();n.x+=e,n.y+=t;let o=null,i=r.parentNode;for(;!o;)"svg"===i.tagName&&(o=i),i=r.parentNode;r=o}else break;return n}(o,e):S,u=o===e?{width:e.scrollWidth,height:e.scrollHeight}:"getBBox"in o&&"svg"!==o.tagName?o.getBBox():{width:o.clientWidth,height:o.clientHeight},s={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let c=!t[i].interpolate,d=r.length;for(let e=0;e<d;e++){let n=function(e,t,n,r){let o=Array.isArray(e)?e:M,i=0;return"number"==typeof e?o=[e,e]:"string"==typeof e&&(o=(e=e.trim()).includes(" ")?e.split(" "):[e,b[e]?e:"0"]),x(o[0],n,r)-x(o[1],t)}(r[e],s[a],u[a],l[i]);c||n===t[i].interpolatorOffsets[e]||(c=!0),t[i].offset[e]=n}c&&(t[i].interpolate=(0,C.s)(t[i].offset,(0,j.Y)(r)),t[i].interpolatorOffsets=[...t[i].offset]),t[i].progress=t[i].interpolate(t[i].current)}(e,n,r)},notify:()=>t(n)}}(t,e,m(),n);if(i.add(a),!E.has(t)){let e=()=>{for(let e of i)e.measure()},n=()=>{for(let e of i)e.update(R.frameData.timestamp)},a=()=>{for(let e of i)e.notify()},l=()=>{R.Wi.read(e,!1,!0),R.Wi.read(n,!1,!0),R.Wi.update(a,!1,!0)};E.set(t,l);let u=O(t);window.addEventListener("resize",l,{passive:!0}),t!==document.documentElement&&P.set(t,"function"==typeof t?(f.add(t),o||(o=()=>{let e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};f.forEach(e=>e(t))},window.addEventListener("resize",o)),()=>{f.delete(t),!f.size&&o&&(o=void 0)}):function(e,t){var n;r||"undefined"==typeof ResizeObserver||(r=new ResizeObserver(d));let o=("string"==typeof(n=e)?n=document.querySelectorAll(n):n instanceof Element&&(n=[n]),Array.from(n||[]));return o.forEach(e=>{let n=s.get(e);n||(n=new Set,s.set(e,n)),n.add(t),null==r||r.observe(e)}),()=>{o.forEach(e=>{let n=s.get(e);null==n||n.delete(t),(null==n?void 0:n.size)||null==r||r.unobserve(e)})}}(t,l)),u.addEventListener("scroll",l,{passive:!0})}let l=E.get(t);return R.Wi.read(l,!1,!0),()=>{var e;(0,R.Pn)(l);let n=T.get(t);if(!n||(n.delete(a),n.size))return;let r=E.get(t);E.delete(t),r&&(O(t).removeEventListener("scroll",r),null===(e=P.get(t))||void 0===e||e(),window.removeEventListener("resize",r))}}(({x:e,y:t})=>{u.scrollX.set(e.current),u.scrollXProgress.set(e.progress),u.scrollY.set(t.current),u.scrollYProgress.set(t.progress)},{...i,container:(null==e?void 0:e.current)||void 0,target:(null==t?void 0:t.current)||void 0})),[e,t,JSON.stringify(i.offset)]),u}},80100:function(e,t,n){"use strict";n.d(t,{q:function(){return f}});var r=n(44194),o=n(77364),i=n(28316),a=n(45482),l=n(46570),u=n(85575),s=n(11997),c=n(72193),d=n(87743);function f(e,t={}){let{isStatic:n}=(0,r.useContext)(a._),f=(0,r.useRef)(null),p=function(e){let t=(0,l.h)(()=>(0,i.BX)(e)),{isStatic:n}=(0,r.useContext)(a._);if(n){let[,n]=(0,r.useState)(e);(0,r.useEffect)(()=>t.on("change",n),[])}return t}((0,o.i)(e)?e.get():e),h=()=>{f.current&&f.current.stop()};return(0,r.useInsertionEffect)(()=>p.attach((e,r)=>{if(n)return r(e);if(h(),f.current=(0,s.y)({keyframes:[p.get(),e],velocity:p.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...t,onUpdate:r}),!d.frameData.isProcessing){let e=performance.now()-d.frameData.timestamp;e<30&&(f.current.time=(0,c.X)(e))}return p.get()},h),[JSON.stringify(t)]),(0,u.L)(()=>{if((0,o.i)(e))return e.on("change",e=>p.set(parseFloat(e)))},[p]),p}},58595:function(e,t,n){"use strict";n.d(t,{D:function(){return o}});var r=n(19904);function o(e,t){var n;return(0,r.H)(e,(n=Date.now(),e instanceof Date?new e.constructor(n):new Date(n)),t)}},24227:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(44194),o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var a=(e,t)=>{let n=(0,r.forwardRef)((n,a)=>{let{color:l="currentColor",size:u=24,strokeWidth:s=2,absoluteStrokeWidth:c,children:d,...f}=n;return(0,r.createElement)("svg",{ref:a,...o,width:u,height:u,stroke:l,strokeWidth:c?24*Number(s)/Number(u):s,className:"lucide lucide-".concat(i(e)),...f},[...t.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...(Array.isArray(d)?d:[d])||[]])});return n.displayName="".concat(e),n}},54959:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(24227).Z)("Check",[["polyline",{points:"20 6 9 17 4 12",key:"10jjfj"}]])},84194:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(24227).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},94690:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(24227).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},76773:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(24227).Z)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},78081:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(24227).Z)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},65107:function(e,t,n){"use strict";n.d(t,{YD:function(){return s}});var r=n(44194),o=Object.defineProperty,i=new Map,a=new WeakMap,l=0,u=void 0;function s({threshold:e,delay:t,trackVisibility:n,rootMargin:o,root:s,triggerOnce:c,skip:d,initialInView:f,fallbackInView:p,onChange:h}={}){var g;let[m,v]=r.useState(null),y=r.useRef(),[w,b]=r.useState({inView:!!f,entry:void 0});y.current=h,r.useEffect(()=>{let r;if(!d&&m)return r=function(e,t,n={},r=u){if(void 0===window.IntersectionObserver&&void 0!==r){let o=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),()=>{}}let{id:o,observer:s,elements:c}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var n;return`${t}_${"root"===t?(n=e.root)?(a.has(n)||(l+=1,a.set(n,l.toString())),a.get(n)):"0":e[t]}`}).toString(),n=i.get(t);if(!n){let r;let o=new Map,a=new IntersectionObserver(t=>{t.forEach(t=>{var n;let i=t.isIntersecting&&r.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(n=o.get(t.target))||n.forEach(e=>{e(i,t)})})},e);r=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:a,elements:o},i.set(t,n)}return n}(n),d=c.get(e)||[];return c.has(e)||c.set(e,d),d.push(t),s.observe(e),function(){d.splice(d.indexOf(t),1),0===d.length&&(c.delete(e),s.unobserve(e)),0===c.size&&(s.disconnect(),i.delete(o))}}(m,(e,t)=>{b({inView:e,entry:t}),y.current&&y.current(e,t),t.isIntersecting&&c&&r&&(r(),r=void 0)},{root:s,rootMargin:o,threshold:e,trackVisibility:n,delay:t},p),()=>{r&&r()}},[Array.isArray(e)?e.toString():e,m,s,o,c,d,n,p,t]);let x=null==(g=w.entry)?void 0:g.target,M=r.useRef();m||!x||c||d||M.current===x||(M.current=x,b({inView:!!f,entry:void 0}));let C=[v,w.inView,w.entry];return C.ref=C[0],C.inView=C[1],C.entry=C[2],C}r.Component},32309:function(e,t,n){"use strict";n.d(t,{EQ:function(){return N},P:function(){return D}});let r=Symbol.for("@ts-pattern/matcher"),o=Symbol.for("@ts-pattern/isVariadic"),i="@ts-pattern/anonymous-select-key",a=e=>!!(e&&"object"==typeof e),l=e=>e&&!!e[r],u=(e,t,n)=>{if(l(e)){let{matched:o,selections:i}=e[r]().match(t);return o&&i&&Object.keys(i).forEach(e=>n(e,i[e])),o}if(a(e)){if(!a(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let r=[],i=[],a=[];for(let t of e.keys()){let n=e[t];l(n)&&n[o]?a.push(n):a.length?i.push(n):r.push(n)}if(a.length){if(a.length>1)throw Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<r.length+i.length)return!1;let e=t.slice(0,r.length),o=0===i.length?[]:t.slice(-i.length),l=t.slice(r.length,0===i.length?1/0:-i.length);return r.every((t,r)=>u(t,e[r],n))&&i.every((e,t)=>u(e,o[t],n))&&(0===a.length||u(a[0],l,n))}return e.length===t.length&&e.every((e,r)=>u(e,t[r],n))}return Reflect.ownKeys(e).every(o=>{let i=e[o];return(o in t||l(i)&&"optional"===i[r]().matcherType)&&u(i,t[o],n)})}return Object.is(t,e)},s=e=>{var t,n,o;return a(e)?l(e)?null!=(t=null==(n=(o=e[r]()).getSelectionKeys)?void 0:n.call(o))?t:[]:Array.isArray(e)?c(e,s):c(Object.values(e),s):[]},c=(e,t)=>e.reduce((e,n)=>e.concat(t(n)),[]);function d(e){return Object.assign(e,{optional:()=>f(e),and:t=>g(e,t),or:t=>m(e,t),select:t=>void 0===t?y(e):y(t,e)})}function f(e){return d({[r]:()=>({match:t=>{let n={},r=(e,t)=>{n[e]=t};return void 0===t?(s(e).forEach(e=>r(e,void 0)),{matched:!0,selections:n}):{matched:u(e,t,r),selections:n}},getSelectionKeys:()=>s(e),matcherType:"optional"})})}let p=(e,t)=>{for(let n of e)if(!t(n))return!1;return!0},h=(e,t)=>{for(let[n,r]of e.entries())if(!t(r,n))return!1;return!0};function g(...e){return d({[r]:()=>({match:t=>{let n={},r=(e,t)=>{n[e]=t};return{matched:e.every(e=>u(e,t,r)),selections:n}},getSelectionKeys:()=>c(e,s),matcherType:"and"})})}function m(...e){return d({[r]:()=>({match:t=>{let n={},r=(e,t)=>{n[e]=t};return c(e,s).forEach(e=>r(e,void 0)),{matched:e.some(e=>u(e,t,r)),selections:n}},getSelectionKeys:()=>c(e,s),matcherType:"or"})})}function v(e){return{[r]:()=>({match:t=>({matched:!!e(t)})})}}function y(...e){let t="string"==typeof e[0]?e[0]:void 0,n=2===e.length?e[1]:"string"==typeof e[0]?void 0:e[0];return d({[r]:()=>({match:e=>{let r={[null!=t?t:i]:e};return{matched:void 0===n||u(n,e,(e,t)=>{r[e]=t}),selections:r}},getSelectionKeys:()=>[null!=t?t:i].concat(void 0===n?[]:s(n))})})}function w(e){return"number"==typeof e}function b(e){return"string"==typeof e}function x(e){return"bigint"==typeof e}let M=d(v(function(e){return!0})),C=e=>Object.assign(d(e),{startsWith:t=>C(g(e,v(e=>b(e)&&e.startsWith(t)))),endsWith:t=>C(g(e,v(e=>b(e)&&e.endsWith(t)))),minLength:t=>C(g(e,v(e=>b(e)&&e.length>=t))),length:t=>C(g(e,v(e=>b(e)&&e.length===t))),maxLength:t=>C(g(e,v(e=>b(e)&&e.length<=t))),includes:t=>C(g(e,v(e=>b(e)&&e.includes(t)))),regex:t=>C(g(e,v(e=>b(e)&&!!e.match(t))))}),j=C(v(b)),S=e=>Object.assign(d(e),{between:(t,n)=>S(g(e,v(e=>w(e)&&t<=e&&n>=e))),lt:t=>S(g(e,v(e=>w(e)&&e<t))),gt:t=>S(g(e,v(e=>w(e)&&e>t))),lte:t=>S(g(e,v(e=>w(e)&&e<=t))),gte:t=>S(g(e,v(e=>w(e)&&e>=t))),int:()=>S(g(e,v(e=>w(e)&&Number.isInteger(e)))),finite:()=>S(g(e,v(e=>w(e)&&Number.isFinite(e)))),positive:()=>S(g(e,v(e=>w(e)&&e>0))),negative:()=>S(g(e,v(e=>w(e)&&e<0)))}),R=S(v(w)),E=e=>Object.assign(d(e),{between:(t,n)=>E(g(e,v(e=>x(e)&&t<=e&&n>=e))),lt:t=>E(g(e,v(e=>x(e)&&e<t))),gt:t=>E(g(e,v(e=>x(e)&&e>t))),lte:t=>E(g(e,v(e=>x(e)&&e<=t))),gte:t=>E(g(e,v(e=>x(e)&&e>=t))),positive:()=>E(g(e,v(e=>x(e)&&e>0))),negative:()=>E(g(e,v(e=>x(e)&&e<0)))}),P=E(v(x)),T=d(v(function(e){return"boolean"==typeof e})),O=d(v(function(e){return"symbol"==typeof e})),_=d(v(function(e){return null==e})),k=d(v(function(e){return null!=e}));var D={__proto__:null,matcher:r,optional:f,array:function(...e){return function e(t){return Object.assign(Object.assign(t,{[Symbol.iterator](){let e=0,n=[{value:Object.assign(t,{[o]:!0}),done:!1},{done:!0,value:void 0}];return{next:()=>{var t;return null!=(t=n[e++])?t:n.at(-1)}}}}),{optional:()=>e(f(t)),select:n=>e(void 0===n?y(t):y(n,t))})}({[r]:()=>({match:t=>{if(!Array.isArray(t))return{matched:!1};if(0===e.length)return{matched:!0};let n=e[0],r={};if(0===t.length)return s(n).forEach(e=>{r[e]=[]}),{matched:!0,selections:r};let o=(e,t)=>{r[e]=(r[e]||[]).concat([t])};return{matched:t.every(e=>u(n,e,o)),selections:r}},getSelectionKeys:()=>0===e.length?[]:s(e[0])})})},set:function(...e){return d({[r]:()=>({match:t=>{if(!(t instanceof Set))return{matched:!1};let n={};if(0===t.size)return{matched:!0,selections:n};if(0===e.length)return{matched:!0};let r=(e,t)=>{n[e]=(n[e]||[]).concat([t])},o=e[0];return{matched:p(t,e=>u(o,e,r)),selections:n}},getSelectionKeys:()=>0===e.length?[]:s(e[0])})})},map:function(...e){return d({[r]:()=>({match:t=>{var n;if(!(t instanceof Map))return{matched:!1};let r={};if(0===t.size)return{matched:!0,selections:r};let o=(e,t)=>{r[e]=(r[e]||[]).concat([t])};if(0===e.length)return{matched:!0};if(1===e.length)throw Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${null==(n=e[0])?void 0:n.toString()}`);let[i,a]=e;return{matched:h(t,(e,t)=>{let n=u(i,t,o),r=u(a,e,o);return n&&r}),selections:r}},getSelectionKeys:()=>0===e.length?[]:[...s(e[0]),...s(e[1])]})})},intersection:g,union:m,not:function(e){return d({[r]:()=>({match:t=>({matched:!u(e,t,()=>{})}),getSelectionKeys:()=>[],matcherType:"not"})})},when:v,select:y,any:M,_:M,string:j,number:R,bigint:P,boolean:T,symbol:O,nullish:_,nonNullable:k,instanceOf:function(e){return d(v(t=>t instanceof e))},shape:function(e){return d(v(function(...e){if(1===e.length){let[t]=e;return e=>u(t,e,()=>{})}if(2===e.length){let[t,n]=e;return u(t,n,()=>{})}throw Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${e.length}.`)}(e)))}};class A extends Error{constructor(e){let t;try{t=JSON.stringify(e)}catch(n){t=e}super(`Pattern matching error: no pattern matches value ${t}`),this.input=void 0,this.input=e}}let I={matched:!1,value:void 0};function N(e){return new L(e,I)}class L{constructor(e,t){this.input=void 0,this.state=void 0,this.input=e,this.state=t}with(...e){let t;if(this.state.matched)return this;let n=e[e.length-1],r=[e[0]];3===e.length&&"function"==typeof e[1]?t=e[1]:e.length>2&&r.push(...e.slice(1,e.length-1));let o=!1,a={},l=(e,t)=>{o=!0,a[e]=t},s=r.some(e=>u(e,this.input,l))&&(!t||t(this.input))?{matched:!0,value:n(o?i in a?a[i]:a:this.input,this.input)}:I;return new L(this.input,s)}when(e,t){if(this.state.matched)return this;let n=!!e(this.input);return new L(this.input,n?{matched:!0,value:t(this.input,this.input)}:I)}otherwise(e){return this.state.matched?this.state.value:e(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new A(this.input)}run(){return this.exhaustive()}returnType(){return this}}},72458:function(e,t,n){"use strict";n.d(t,{T:function(){return y}});var r=n(9703),o=n(63692),i=n(11908),a=n(20268),l=n(61893),u=n(73375),s=n(81934),c=n(70806),d=n(40435),f=n(62045),p=n(73107),h=n(66776),g=n(78048),m=n(92226),v=n(54396);async function y(e,t){let{account:n=e.account,chain:y=e.chain,accessList:w,authorizationList:b,blobs:x,data:M,gas:C,gasPrice:j,maxFeePerBlobGas:S,maxFeePerGas:R,maxPriorityFeePerGas:E,nonce:P,value:T,...O}=t;if(!n)throw new o.o({docsPath:"/docs/actions/wallet/sendTransaction"});let _=(0,r.T)(n);try{(0,h.F)(t);let n=await (async()=>t.to?t.to:b&&b.length>0?await (0,a.z)({authorization:b[0]}).catch(()=>{throw new i.G("`to` is required. Could not infer from `authorizationList`.")}):void 0)();if("json-rpc"===_.type){let t;null!==y&&(t=await (0,p.s)(e,g.L,"getChainId")({}),(0,l.q)({currentChainId:t,chain:y}));let r=e.chain?.formatters?.transactionRequest?.format,o=(r||f.tG)({...(0,d.K)(O,{format:r}),accessList:w,authorizationList:b,blobs:x,chainId:t,data:M,from:_.address,gas:C,gasPrice:j,maxFeePerBlobGas:S,maxFeePerGas:R,maxPriorityFeePerGas:E,nonce:P,to:n,value:T});return await e.request({method:"eth_sendTransaction",params:[o]},{retryCount:0})}if("local"===_.type){let t=await (0,p.s)(e,m.Z,"prepareTransactionRequest")({account:_,accessList:w,authorizationList:b,blobs:x,chain:y,data:M,gas:C,gasPrice:j,maxFeePerBlobGas:S,maxFeePerGas:R,maxPriorityFeePerGas:E,nonce:P,nonceManager:_.nonceManager,parameters:[...m.Q,"sidecars"],value:T,...O,to:n}),r=y?.serializers?.transaction,o=await _.signTransaction(t,{serializer:r});return await (0,p.s)(e,v.p,"sendRawTransaction")({serializedTransaction:o})}if("smart"===_.type)throw new o.Y({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new o.Y({docsPath:"/docs/actions/wallet/sendTransaction",type:_.type})}catch(e){if(e instanceof o.Y)throw e;throw function(e,{docsPath:t,...n}){let r=(()=>{let t=(0,c.k)(e,n);return t instanceof u.cj?e:t})();return new s.mk(r,{docsPath:t,...n})}(e,{...t,account:_,chain:t.chain||void 0})}}},6422:function(e,t,n){"use strict";n.d(t,{n:function(){return s}});var r=n(9703),o=n(63692),i=n(57247),a=n(97749),l=n(73107),u=n(72458);async function s(e,t){let{abi:n,account:s=e.account,address:c,args:d,dataSuffix:f,functionName:p,...h}=t;if(!s)throw new o.o({docsPath:"/docs/contract/writeContract"});let g=(0,r.T)(s),m=(0,i.R)({abi:n,args:d,functionName:p});try{return await (0,l.s)(e,u.T,"sendTransaction")({data:`${m}${f?f.replace("0x",""):""}`,to:c,account:g,...h})}catch(e){throw(0,a.S)(e,{abi:n,address:c,args:d,docsPath:"/docs/contract/writeContract",functionName:p,sender:g.address})}}},69261:function(e,t,n){"use strict";n.d(t,{v:function(){return i}});var r=n(41931),o=n(66905);function i(e){let{key:t="public",name:n="Public Client"}=e;return(0,r.e)({...e,key:t,name:n,type:"publicClient"}).extend(o.I)}},37757:function(e,t,n){"use strict";n.d(t,{DR:function(){return r}});let r="0x0000000000000000000000000000000000000000"},61893:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(12996);function o({chain:e,currentChainId:t}){if(!e)throw new r.Bk;if(t!==e.id)throw new r.Yl({chain:e,currentChainId:t})}},3242:function(e,t,n){"use strict";n.d(t,{v:function(){return i}});var r=n(11908);class o extends r.G{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function i(e,t){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(e))throw new o({value:e});let[n,r="0"]=e.split("."),i=n.startsWith("-");if(i&&(n=n.slice(1)),r=r.replace(/(0+)$/,""),0===t)1===Math.round(Number(`.${r}`))&&(n=`${BigInt(n)+1n}`),r="";else if(r.length>t){let[e,o,i]=[r.slice(0,t-1),r.slice(t-1,t),r.slice(t)],a=Math.round(Number(`${o}.${i}`));(r=a>9?`${BigInt(e)+BigInt(1)}0`.padStart(e.length+1,"0"):`${e}${a}`).length>t&&(r=r.slice(1),n=`${BigInt(n)+1n}`),r=r.slice(0,t)}else r=r.padEnd(t,"0");return BigInt(`${i?"-":""}${n}${r}`)}},87866:function(e,t,n){"use strict";n.d(t,{G:function(){return f}});var r=n(88844),o=n(34531),i=n(74426),a=n(3683);async function l(e,t={}){let{chainId:n,formatUnits:l="gwei",...u}=t,s=e.getClient({chainId:n}),c=(0,i.s)(s,o.X,"estimateFeesPerGas"),{gasPrice:d,maxFeePerGas:f,maxPriorityFeePerGas:p}=await c({...u,chain:s.chain}),h=(0,a.W)(l);return{formatted:{gasPrice:d?(0,r.b)(d,h):void 0,maxFeePerGas:f?(0,r.b)(f,h):void 0,maxPriorityFeePerGas:p?(0,r.b)(p,h):void 0},gasPrice:d,maxFeePerGas:f,maxPriorityFeePerGas:p}}var u=n(1847),s=n(61290),c=n(14223),d=n(83011);function f(e={}){let{query:t={}}=e,n=(0,d.Z)(e),r=(0,c.x)({config:n}),o=function(e,t={}){return{async queryFn({queryKey:t}){let{scopeKey:n,...r}=t[1];return l(e,r)},queryKey:function(e={}){return["estimateFeesPerGas",(0,u.OP)(e)]}(t)}}(n,{...e,chainId:e.chainId??r});return(0,s.aM)({...t,...o})}},81027:function(e,t,n){"use strict";n.d(t,{N:function(){return s}});var r=n(60784),o=n(1847),i=n(44194),a=n(61290),l=n(14223),u=n(83011);function s(e={}){let{contracts:t=[],query:n={}}=e,s=(0,u.Z)(e),c=(0,l.x)({config:s}),d=function(e,t={}){return{async queryFn({queryKey:n}){let o=[],i=n[1].contracts.length;for(let e=0;e<i;e++){let r=n[1].contracts[e],i=(t.contracts?.[e]).abi;o.push({...r,abi:i})}let{scopeKey:a,...l}=n[1];return(0,r.J)(e,{...l,contracts:o})},queryKey:function(e={}){let t=[];for(let n of e.contracts??[]){let{abi:r,...o}=n;t.push({...o,chainId:o.chainId??e.chainId})}return["readContracts",(0,o.OP)({...e,contracts:t})]}(t)}}(s,{...e,chainId:c}),f=(0,i.useMemo)(()=>{let e=!1;for(let n of t){let{abi:t,address:r,functionName:o}=n;if(!t||!r||!o){e=!1;break}e=!0}return!!(e&&(n.enabled??!0))},[t,n.enabled]);return(0,a.aM)({...d,...n,enabled:f,structuralSharing:n.structuralSharing??o.if})}},4649:function(e,t,n){"use strict";n.d(t,{p:function(){return d}});var r=n(34299),o=n(45965),i=n(72458),a=n(74426),l=n(6961),u=n(28508);async function s(e,t){let n;let{account:r,chainId:s,connector:c,gas:d,...f}=t;n="object"==typeof r&&"local"===r.type?e.getClient({chainId:s}):await (0,u.e)(e,{account:r,chainId:s,connector:c});let{connector:p}=(0,l.D)(e),h=await (async()=>{if(!(!("data"in t)||!t.data||(c??p)?.supportsSimulation)&&null!==d)return void 0===d?(0,a.s)(n,o.Q,"estimateGas")({...f,account:r,chain:s?{id:s}:null}):d})(),g=(0,a.s)(n,i.T,"sendTransaction");return await g({...f,...r?{account:r}:{},gas:h,chain:s?{id:s}:null})}var c=n(83011);function d(e={}){var t;let{mutation:n}=e,o=(t=(0,c.Z)(e),{mutationFn:e=>s(t,e),mutationKey:["sendTransaction"]}),{mutate:i,mutateAsync:a,...l}=(0,r.D)({...n,...o});return{...l,sendTransaction:i,sendTransactionAsync:a}}},23960:function(e,t,n){"use strict";n.d(t,{p:function(){return W}});var r=n(68e3),o=n(78048),i=n(34387);async function a(e,{chain:t}){let{id:n,name:r,nativeCurrency:o,rpcUrls:a,blockExplorers:l}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:(0,i.eC)(n),chainName:r,nativeCurrency:o,rpcUrls:a.default.http,blockExplorerUrls:l?Object.values(l).map(({url:e})=>e):void 0}]},{dedupe:!0,retryCount:0})}var l=n(53066),u=n(72458),s=n(62137);async function c(e){return e.account?.type==="local"?[e.account.address]:(await e.request({method:"eth_accounts"},{dedupe:!0})).map(e=>(0,s.x)(e))}async function d(e){return await e.request({method:"wallet_getPermissions"},{dedupe:!0})}var f=n(92226);async function p(e){return(await e.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(e=>(0,s.K)(e))}async function h(e,t){return e.request({method:"wallet_requestPermissions",params:[t]},{retryCount:0})}var g=n(54396),m=n(63337),v=n(9703),y=n(63692),w=n(61893),b=n(62045),x=n(73107),M=n(66776);async function C(e,t){let{account:n=e.account,chain:r=e.chain,...a}=t;if(!n)throw new y.o({docsPath:"/docs/actions/wallet/signTransaction"});let l=(0,v.T)(n);(0,M.F)({account:l,...t});let u=await (0,x.s)(e,o.L,"getChainId")({});null!==r&&(0,w.q)({currentChainId:u,chain:r});let s=r?.formatters||e.chain?.formatters,c=s?.transactionRequest?.format||b.tG;return l.signTransaction?l.signTransaction({...a,chainId:u},{serializer:e.chain?.serializers?.transaction}):await e.request({method:"eth_signTransaction",params:[{...c(a),chainId:(0,i.eC)(u),from:l.address}]},{retryCount:0})}var j=n(73039);async function S(e,t){let{account:n=e.account,domain:r,message:o,primaryType:i}=t;if(!n)throw new y.o({docsPath:"/docs/actions/wallet/signTypedData"});let a=(0,v.T)(n),l={EIP712Domain:(0,j.cj)({domain:r}),...t.types};if((0,j.iC)({domain:r,message:o,primaryType:i,types:l}),a.signTypedData)return a.signTypedData({domain:r,message:o,primaryType:i,types:l});let u=(0,j.H6)({domain:r,message:o,primaryType:i,types:l});return e.request({method:"eth_signTypedData_v4",params:[a.address,u]},{retryCount:0})}async function R(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,i.eC)(t)}]},{retryCount:0})}async function E(e,t){return await e.request({method:"wallet_watchAsset",params:t},{retryCount:0})}var P=n(6422);function T(e){return{addChain:t=>a(e,t),deployContract:t=>(function(e,t){let{abi:n,args:r,bytecode:o,...i}=t,a=(0,l.w)({abi:n,args:r,bytecode:o});return(0,u.T)(e,{...i,data:a})})(e,t),getAddresses:()=>c(e),getChainId:()=>(0,o.L)(e),getPermissions:()=>d(e),prepareTransactionRequest:t=>(0,f.Z)(e,t),requestAddresses:()=>p(e),requestPermissions:t=>h(e,t),sendRawTransaction:t=>(0,g.p)(e,t),sendTransaction:t=>(0,u.T)(e,t),signMessage:t=>(0,m.l)(e,t),signTransaction:t=>C(e,t),signTypedData:t=>S(e,t),switchChain:t=>R(e,t),watchAsset:t=>E(e,t),writeContract:t=>(0,P.n)(e,t)}}var O=n(28508);async function _(e,t={}){return(await (0,O.e)(e,t)).extend(T)}var k=n(1847),D=n(44194),A=n(61290),I=n(91226),N=n(14223),L=n(83011);function W(e={}){let{query:t={},...n}=e,o=(0,L.Z)(n),i=(0,r.NL)(),{address:a,connector:l,status:u}=(0,I.m)({config:o}),s=(0,N.x)({config:o}),c=e.connector??l,{queryKey:d,...f}=function(e,t={}){return{gcTime:0,async queryFn({queryKey:n}){let{connector:r}=t,{connectorUid:o,scopeKey:i,...a}=n[1];return _(e,{...a,connector:r})},queryKey:function(e={}){let{connector:t,...n}=e;return["walletClient",{...(0,k.OP)(n),connectorUid:t?.uid}]}(t)}}(o,{...e,chainId:e.chainId??s,connector:e.connector??l}),p=!!(("connected"===u||"reconnecting"===u&&c?.getProvider)&&(t.enabled??!0)),h=(0,D.useRef)(a);return(0,D.useEffect)(()=>{let e=h.current;!a&&e?(i.removeQueries({queryKey:d}),h.current=void 0):a!==e&&(i.invalidateQueries({queryKey:d}),h.current=a)},[a,i]),(0,A.aM)({...t,...f,queryKey:d,enabled:p,staleTime:Number.POSITIVE_INFINITY})}},1855:function(e,t,n){"use strict";n.d(t,{S:function(){return f}});var r=n(34299),o=n(6422),i=n(74426),a=n(6961),l=n(28508),u=n(17142);async function s(e,t){let n;let{abi:r,chainId:o,connector:a,...s}=t;n=t.account?t.account:(await (0,l.e)(e,{chainId:o,connector:a})).account;let c=e.getClient({chainId:o}),d=(0,i.s)(c,u.a,"simulateContract"),{result:f,request:p}=await d({...s,abi:r,account:n});return{chainId:c.chain.id,result:f,request:{__mode:"prepared",...p,chainId:o}}}async function c(e,t){let n,r;let{account:u,chainId:c,connector:d,__mode:f,...p}=t;n="object"==typeof u&&"local"===u.type?e.getClient({chainId:c}):await (0,l.e)(e,{account:u,chainId:c,connector:d});let{connector:h}=(0,a.D)(e);if("prepared"===f||h?.supportsSimulation)r=p;else{let{request:t}=await s(e,{...p,account:u,chainId:c});r=t}let g=(0,i.s)(n,o.n,"writeContract");return await g({...r,...u?{account:u}:{},chain:c?{id:c}:null})}var d=n(83011);function f(e={}){var t;let{mutation:n}=e,o=(t=(0,d.Z)(e),{mutationFn:e=>c(t,e),mutationKey:["writeContract"]}),{mutate:i,mutateAsync:a,...l}=(0,r.D)({...n,...o});return{...l,writeContract:i,writeContractAsync:a}}},51522:function(e,t,n){"use strict";n.d(t,{tJ:function(){return a}});let r=e=>t=>{try{let n=e(t);if(n instanceof Promise)return n;return{then:e=>r(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>r(t)(e)}}},o=(e,t)=>(n,o,i)=>{let a,l,u={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},s=!1,c=new Set,d=new Set;try{a=u.getStorage()}catch(e){}if(!a)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${u.name}', the given storage is currently unavailable.`),n(...e)},o,i);let f=r(u.serialize),p=()=>{let e;let t=f({state:u.partialize({...o()}),version:u.version}).then(e=>a.setItem(u.name,e)).catch(t=>{e=t});if(e)throw e;return t},h=i.setState;i.setState=(e,t)=>{h(e,t),p()};let g=e((...e)=>{n(...e),p()},o,i),m=()=>{var e;if(!a)return;s=!1,c.forEach(e=>e(o()));let t=(null==(e=u.onRehydrateStorage)?void 0:e.call(u,o()))||void 0;return r(a.getItem.bind(a))(u.name).then(e=>{if(e)return u.deserialize(e)}).then(e=>{if(e){if("number"!=typeof e.version||e.version===u.version)return e.state;if(u.migrate)return u.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return n(l=u.merge(e,null!=(t=o())?t:g),!0),p()}).then(()=>{null==t||t(l,void 0),s=!0,d.forEach(e=>e(l))}).catch(e=>{null==t||t(void 0,e)})};return i.persist={setOptions:e=>{u={...u,...e},e.getStorage&&(a=e.getStorage())},clearStorage:()=>{null==a||a.removeItem(u.name)},getOptions:()=>u,rehydrate:()=>m(),hasHydrated:()=>s,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(d.add(e),()=>{d.delete(e)})},m(),l||g},i=(e,t)=>(n,o,i)=>{let a,l={storage:function(e,t){let n;try{n=e()}catch(e){return}return{getItem:e=>{var t;let r=e=>null===e?null:JSON.parse(e,void 0),o=null!=(t=n.getItem(e))?t:null;return o instanceof Promise?o.then(r):r(o)},setItem:(e,t)=>n.setItem(e,JSON.stringify(t,void 0)),removeItem:e=>n.removeItem(e)}}(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},u=!1,s=new Set,c=new Set,d=l.storage;if(!d)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${l.name}', the given storage is currently unavailable.`),n(...e)},o,i);let f=()=>{let e=l.partialize({...o()});return d.setItem(l.name,{state:e,version:l.version})},p=i.setState;i.setState=(e,t)=>{p(e,t),f()};let h=e((...e)=>{n(...e),f()},o,i);i.getInitialState=()=>h;let g=()=>{var e,t;if(!d)return;u=!1,s.forEach(e=>{var t;return e(null!=(t=o())?t:h)});let i=(null==(t=l.onRehydrateStorage)?void 0:t.call(l,null!=(e=o())?e:h))||void 0;return r(d.getItem.bind(d))(l.name).then(e=>{if(e){if("number"!=typeof e.version||e.version===l.version)return[!1,e.state];if(l.migrate)return[!0,l.migrate(e.state,e.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;let[r,i]=e;if(n(a=l.merge(i,null!=(t=o())?t:h),!0),r)return f()}).then(()=>{null==i||i(a,void 0),a=o(),u=!0,c.forEach(e=>e(a))}).catch(e=>{null==i||i(void 0,e)})};return i.persist={setOptions:e=>{l={...l,...e},e.storage&&(d=e.storage)},clearStorage:()=>{null==d||d.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>g(),hasHydrated:()=>u,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(c.add(e),()=>{c.delete(e)})},l.skipHydration||g(),a||h},a=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),o(e,t)):i(e,t)},89833:function(e){"use strict";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"}]}')},66783:function(e){"use strict";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","region"]},"referrerpolicy":"no-referrer-when-downgrade","frameborder":"0","style":"border:0","allowfullscreen":true,"width":null,"height":null}}}')},29251:function(e){"use strict";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"}]}')}}]);