"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[426],{34492:function(e,t,n){/**
 * @license React
 * use-sync-external-store-shim.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=n(2265),u="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,i=r.useEffect,l=r.useLayoutEffect,s=r.useDebugValue;function a(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!u(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),u=r[0].inst,c=r[1];return l(function(){u.value=n,u.getSnapshot=t,a(u)&&c({inst:u})},[e,n,t]),i(function(){return a(u)&&c({inst:u}),e(function(){a(u)&&c({inst:u})})},[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},85107:function(e,t,n){/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=n(2265),u=n(10554),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=u.useSyncExternalStore,l=r.useRef,s=r.useEffect,a=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=l(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var v=i(e,(d=a(function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return l=t}return l=e}if(t=l,o(i,e))return t;var n=r(e);return void 0!==u&&u(t,n)?t:(i=e,l=n)}var i,l,s=!1,a=void 0===n?null:n;return[function(){return e(t())},null===a?void 0:function(){return e(a())}]},[t,n,r,u]))[0],d[1]);return s(function(){f.hasValue=!0,f.value=v},[v]),c(v),v}},10554:function(e,t,n){e.exports=n(34492)},35006:function(e,t,n){e.exports=n(85107)},90976:function(e,t,n){n.d(t,{B:function(){return l}});var r=n(2265),u=n(98324),o=n(1584),i=n(71538);function l(e){let t=e+"CollectionProvider",[n,l]=(0,u.b)(t),[s,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=e+"CollectionSlot",d=r.forwardRef((e,t)=>{let{scope:n,children:u}=e,l=a(c,n),s=(0,o.e)(t,l.collectionRef);return r.createElement(i.g7,{ref:s},u)}),f=e+"CollectionItemSlot",v="data-radix-collection-item";return[{Provider:e=>{let{scope:t,children:n}=e,u=r.useRef(null),o=r.useRef(new Map).current;return r.createElement(s,{scope:t,itemMap:o,collectionRef:u},n)},Slot:d,ItemSlot:r.forwardRef((e,t)=>{let{scope:n,children:u,...l}=e,s=r.useRef(null),c=(0,o.e)(t,s),d=a(f,n);return r.useEffect(()=>(d.itemMap.set(s,{ref:s,...l}),()=>void d.itemMap.delete(s))),r.createElement(i.g7,{[v]:"",ref:c},u)})},function(t){let n=a(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${v}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},l]}},53938:function(e,t,n){let r;n.d(t,{I0:function(){return m},XB:function(){return f},fC:function(){return p}});var u=n(22988),o=n(2265),i=n(78149),l=n(25171),s=n(1584),a=n(75137);let c="dismissableLayer.update",d=(0,o.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=(0,o.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:f=!1,onEscapeKeyDown:v,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:y,onDismiss:h,...w}=e,g=(0,o.useContext)(d),[S,C]=(0,o.useState)(null),D=null!==(n=null==S?void 0:S.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,O]=(0,o.useState)({}),P=(0,s.e)(t,e=>C(e)),R=Array.from(g.layers),[T]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),L=R.indexOf(T),W=S?R.indexOf(S):-1,x=g.layersWithOutsidePointerEventsDisabled.size>0,k=W>=L,M=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,a.W)(e),r=(0,o.useRef)(!1),u=(0,o.useRef)(()=>{});return(0,o.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function o(){b("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",u.current),u.current=o,t.addEventListener("click",u.current,{once:!0})):o()}else t.removeEventListener("click",u.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",u.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...g.branches].some(e=>e.contains(t));!k||n||(null==p||p(e),null==y||y(e),e.defaultPrevented||null==h||h())},D),j=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,a.W)(e),r=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{let e=e=>{e.target&&!r.current&&b("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;[...g.branches].some(e=>e.contains(t))||(null==m||m(e),null==y||y(e),e.defaultPrevented||null==h||h())},D);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,a.W)(e);(0,o.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{W!==g.layers.size-1||(null==v||v(e),!e.defaultPrevented&&h&&(e.preventDefault(),h()))},D),(0,o.useEffect)(()=>{if(S)return f&&(0===g.layersWithOutsidePointerEventsDisabled.size&&(r=D.body.style.pointerEvents,D.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(S)),g.layers.add(S),E(),()=>{f&&1===g.layersWithOutsidePointerEventsDisabled.size&&(D.body.style.pointerEvents=r)}},[S,D,f,g]),(0,o.useEffect)(()=>()=>{S&&(g.layers.delete(S),g.layersWithOutsidePointerEventsDisabled.delete(S),E())},[S,g]),(0,o.useEffect)(()=>{let e=()=>O({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,o.createElement)(l.WV.div,(0,u.Z)({},w,{ref:P,style:{pointerEvents:x?k?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.M)(e.onFocusCapture,j.onFocusCapture),onBlurCapture:(0,i.M)(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:(0,i.M)(e.onPointerDownCapture,M.onPointerDownCapture)}))}),v=(0,o.forwardRef)((e,t)=>{let n=(0,o.useContext)(d),r=(0,o.useRef)(null),i=(0,s.e)(t,r);return(0,o.useEffect)(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,o.createElement)(l.WV.div,(0,u.Z)({},e,{ref:i}))});function E(){let e=new CustomEvent(c);document.dispatchEvent(e)}function b(e,t,n,{discrete:r}){let u=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&u.addEventListener(e,t,{once:!0}),r?(0,l.jH)(u,o):u.dispatchEvent(o)}let p=f,m=v},56935:function(e,t,n){n.d(t,{h:function(){return l}});var r=n(22988),u=n(2265),o=n(54887),i=n(25171);let l=(0,u.forwardRef)((e,t)=>{var n;let{container:l=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...s}=e;return l?o.createPortal((0,u.createElement)(i.WV.div,(0,r.Z)({},s,{ref:t})),l):null})},39099:function(e,t,n){n.d(t,{Ue:function(){return f}});let r=e=>{let t;let n=new Set,r=(e,r)=>{let u="function"==typeof e?e(t):e;if(!Object.is(u,t)){let e=t;t=(null!=r?r:"object"!=typeof u||null===u)?u:Object.assign({},t,u),n.forEach(n=>n(t,e))}},u=()=>t,o={setState:r,getState:u,getInitialState:()=>i,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},i=t=e(r,u,o);return o},u=e=>e?r(e):r;var o=n(2265),i=n(35006);let{useDebugValue:l}=o,{useSyncExternalStoreWithSelector:s}=i,a=!1,c=e=>e,d=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let t="function"==typeof e?u(e):e,n=(e,n)=>(function(e,t=c,n){n&&!a&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),a=!0);let r=s(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return l(r),r})(t,e,n);return Object.assign(n,t),n},f=e=>e?d(e):d}}]);