"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3391],{49604:(e,t,n)=>{var r=n(12115),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.useSyncExternalStore,i=r.useRef,a=r.useEffect,l=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,s){var f=i(null);if(null===f.current){var p={hasValue:!1,value:null};f.current=p}else p=f.current;var d=o(e,(f=l(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),void 0!==s&&p.hasValue){var t=p.value;if(s(t,e))return i=t}return i=e}if(t=i,u(o,e))return t;var n=r(e);return void 0!==s&&s(t,n)?(o=e,t):(o=e,i=n)}var o,i,a=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,r,s]))[0],f[1]);return a(function(){p.hasValue=!0,p.value=d},[d]),c(d),d}},31356:(e,t,n)=>{e.exports=n(49604)},83391:(e,t,n)=>{n.d(t,{Kq:()=>S,d4:()=>C,wA:()=>w});var r=n(12115),u=n(31356),o=Symbol.for("react.forward_ref"),i=Symbol.for("react.memo"),a={notify(){},get:()=>[]},l=!!("undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement),c="undefined"!=typeof navigator&&"ReactNative"===navigator.product,s=l||c?r.useLayoutEffect:r.useEffect,f={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},p={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},d={[o]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[i]:p};Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var y=Symbol.for("react-redux-context"),b="undefined"!=typeof globalThis?globalThis:{},v=function(){if(!r.createContext)return{};let e=b[y]??=new Map,t=e.get(r.createContext);return t||(t=r.createContext(null),e.set(r.createContext,t)),t}(),S=function(e){let{children:t,context:n,serverState:u,store:o}=e,i=r.useMemo(()=>{let e=function(e,t){let n;let r=a,u=0,o=!1;function i(){s.onStateChange&&s.onStateChange()}function l(){if(u++,!n){let t,u;n=e.subscribe(i),t=null,u=null,r={clear(){t=null,u=null},notify(){(()=>{let e=t;for(;e;)e.callback(),e=e.next})()},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let n=!0,r=u={callback:e,next:null,prev:u};return r.prev?r.prev.next=r:t=r,function(){n&&null!==t&&(n=!1,r.next?r.next.prev=r.prev:u=r.prev,r.prev?r.prev.next=r.next:t=r.next)}}}}}function c(){u--,n&&0===u&&(n(),n=void 0,r.clear(),r=a)}let s={addNestedSub:function(e){l();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,l())},tryUnsubscribe:function(){o&&(o=!1,c())},getListeners:()=>r};return s}(o);return{store:o,subscription:e,getServerState:u?()=>u:void 0}},[o,u]),l=r.useMemo(()=>o.getState(),[o]);return s(()=>{let{subscription:e}=i;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),l!==o.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[i,l]),r.createElement((n||v).Provider,{value:i},t)};function g(e=v){return function(){return r.useContext(e)}}var x=g();function m(e=v){let t=e===v?x:g(e),n=()=>{let{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var h=m(),w=function(e=v){let t=e===v?h:m(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}(),O=(e,t)=>e===t,C=function(e=v){let t=e===v?x:g(e),n=(e,n={})=>{let{equalityFn:o=O}="function"==typeof n?{equalityFn:n}:n,{store:i,subscription:a,getServerState:l}=t();r.useRef(!0);let c=r.useCallback({[e.name]:t=>e(t)}[e.name],[e]),s=(0,u.useSyncExternalStoreWithSelector)(a.addNestedSub,i.getState,l||i.getState,c,o);return r.useDebugValue(s),s};return Object.assign(n,{withTypes:()=>n}),n}()}}]);