diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-09-04 08:57:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-09-04 08:57:43 +0000 |
commit | 42ad44d1fea072d23f2e0067bca4ba6bc0b2a523 (patch) | |
tree | b1c1459c6914f1d4c5b123b601b9dbecb049360c /web/gui/v2/4480.acae0ad582eb5265622a.js | |
parent | Adding upstream version 1.42.1. (diff) | |
download | netdata-upstream/1.42.2.tar.xz netdata-upstream/1.42.2.zip |
Adding upstream version 1.42.2.upstream/1.42.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'web/gui/v2/4480.acae0ad582eb5265622a.js')
-rw-r--r-- | web/gui/v2/4480.acae0ad582eb5265622a.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/web/gui/v2/4480.acae0ad582eb5265622a.js b/web/gui/v2/4480.acae0ad582eb5265622a.js new file mode 100644 index 000000000..417c28182 --- /dev/null +++ b/web/gui/v2/4480.acae0ad582eb5265622a.js @@ -0,0 +1 @@ +!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="acdba44d-fb96-4d10-9c20-6632a7bd1578",e._sentryDebugIdIdentifier="sentry-dbid-acdba44d-fb96-4d10-9c20-6632a7bd1578")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"6845f9ce010d5a446e5d4a40f17204cb8341a07a"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[4480],{4480:function(e,t,n){n.d(t,{$P:function(){return ys},C:function(){return gs},CG:function(){return ps},FV:function(){return _s},Wh:function(){return ls},Zl:function(){return ms},_8:function(){return bs},cn:function(){return ds},nZ:function(){return fs},rb:function(){return Ss},sJ:function(){return vs},xu:function(){return hs}});var o=n(67294),r=n(73935);var a=function(e){const t=new Error(e);if(void 0===t.stack)try{throw t}catch(n){}return t};var i=function(e){return!!e&&"function"===typeof e.then};var s=function(e,t){if(null!=e)return e;throw a(null!==t&&void 0!==t?t:"Got unexpected null or undefined")};function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c{getValue(){throw a("BaseLoadable")}toPromise(){throw a("BaseLoadable")}valueMaybe(){throw a("BaseLoadable")}valueOrThrow(){throw a(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw a("BaseLoadable")}promiseOrThrow(){throw a(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw a("BaseLoadable")}errorOrThrow(){throw a(`Loadable expected error, but in "${this.state}" state`)}is(e){return e.state===this.state&&e.contents===this.contents}map(e){throw a("BaseLoadable")}}class l extends c{constructor(e){super(),u(this,"state","hasValue"),u(this,"contents",void 0),this.contents=e}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(e){try{const t=e(this.contents);return i(t)?v(t):m(t)?t:h(t)}catch(t){return i(t)?v(t.next((()=>this.map(e)))):p(t)}}}class d extends c{constructor(e){super(),u(this,"state","hasError"),u(this,"contents",void 0),this.contents=e}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(e){return this}}class f extends c{constructor(e){super(),u(this,"state","loading"),u(this,"contents",void 0),this.contents=e}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(e){return v(this.contents.then((t=>{const n=e(t);if(m(n)){const e=n;switch(e.state){case"hasValue":case"loading":return e.contents;case"hasError":throw e.contents}}return n})).catch((t=>{if(i(t))return t.then((()=>this.map(e).contents));throw t})))}}function h(e){return Object.freeze(new l(e))}function p(e){return Object.freeze(new d(e))}function v(e){return Object.freeze(new f(e))}function y(){return Object.freeze(new f(new Promise((()=>{}))))}function _(e){const t=function(e){return e.every((e=>"hasValue"===e.state))?h(e.map((e=>e.contents))):e.some((e=>"hasError"===e.state))?p(s(e.find((e=>"hasError"===e.state)),"Invalid loadable passed to loadableAll").contents):v(Promise.all(e.map((e=>e.contents))))}((Array.isArray(e)?e:Object.getOwnPropertyNames(e).map((t=>e[t]))).map((e=>m(e)?e:i(e)?v(e):h(e))));return Array.isArray(e)?t:t.map((t=>Object.getOwnPropertyNames(e).reduce(((e,n,o)=>({...e,[n]:t[o]})),{})))}function m(e){return e instanceof c}const S={of:e=>i(e)?v(e):m(e)?e:h(e),error:e=>p(e),loading:()=>y(),all:_,isLoadable:m};var g={loadableWithValue:h,loadableWithError:p,loadableWithPromise:v,loadableLoading:y,loadableAll:_,isLoadable:m,RecoilLoadable:S},b=g.loadableWithValue,T=g.loadableWithError,R=g.loadableWithPromise,w=g.loadableLoading,A=g.loadableAll,E=g.isLoadable,N=g.RecoilLoadable,k=Object.freeze({__proto__:null,loadableWithValue:b,loadableWithError:T,loadableWithPromise:R,loadableLoading:w,loadableAll:A,isLoadable:E,RecoilLoadable:N});const L={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0,RECOIL_GKS_ENABLED:new Set(["recoil_hamt_2020","recoil_sync_external_store","recoil_suppress_rerender_in_callback","recoil_memory_managament_2020"])};!function(){var e;"undefined"!==typeof process&&null!=(null===(e=process)||void 0===e?void 0:e.env)&&(function(e,t){var n,o;const r=null===(n=process.env[e])||void 0===n||null===(o=n.toLowerCase())||void 0===o?void 0:o.trim();if(null==r||""===r)return;if(!["true","false"].includes(r))throw a(`process.env.${e} value must be 'true', 'false', or empty: ${r}`);t("true"===r)}("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",(e=>{L.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=e})),function(e,t){var n;const o=null===(n=process.env[e])||void 0===n?void 0:n.trim();null!=o&&""!==o&&t(o.split(/\s*,\s*|\s+/))}("RECOIL_GKS_ENABLED",(e=>{e.forEach((e=>{L.RECOIL_GKS_ENABLED.add(e)}))})))}();var V=L;function C(e){return V.RECOIL_GKS_ENABLED.has(e)}C.setPass=e=>{V.RECOIL_GKS_ENABLED.add(e)},C.setFail=e=>{V.RECOIL_GKS_ENABLED.delete(e)},C.clear=()=>{V.RECOIL_GKS_ENABLED.clear()};var M=C;var U,D,I,B=function(e,t,{error:n}={}){return null};const O=null!==(U=o.createMutableSource)&&void 0!==U?U:o.unstable_createMutableSource,x=null!==(D=o.useMutableSource)&&void 0!==D?D:o.unstable_useMutableSource,P=null!==(I=o.useSyncExternalStore)&&void 0!==I?I:o.unstable_useSyncExternalStore;let z=!1;var F={createMutableSource:O,useMutableSource:x,useSyncExternalStore:P,currentRendererSupportsUseSyncExternalStore:function(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,r=null!=(null!==(e=null===t||void 0===t?void 0:t.current)&&void 0!==e?e:n.currentDispatcher).useSyncExternalStore;return!P||r||z||(z=!0,B("A React renderer without React 18+ API support is being used with React 18+.")),r},reactMode:function(){return M("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:M("recoil_sync_external_store")&&null!=P?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:M("recoil_mutable_source")&&null!=x&&"undefined"!==typeof window&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?M("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:M("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}},isFastRefreshEnabled:function(){return!1}};class W{constructor(e){u(this,"key",void 0),this.key=e}toJSON(){return{key:this.key}}}class G extends W{}class $ extends W{}var K={AbstractRecoilValue:W,RecoilState:G,RecoilValueReadOnly:$,isRecoilValue:function(e){return e instanceof G||e instanceof $}},H=K.AbstractRecoilValue,j=K.RecoilState,q=K.RecoilValueReadOnly,Z=K.isRecoilValue,Y=Object.freeze({__proto__:null,AbstractRecoilValue:H,RecoilState:j,RecoilValueReadOnly:q,isRecoilValue:Z});var J=function(e,...t){0};var X=function(e,t){return function*(){let n=0;for(const o of e)yield t(o,n++)}()};const{isFastRefreshEnabled:Q}=F;class ee{}const te=new ee,ne=new Map,oe=new Map;class re extends Error{}const ae=new Map;function ie(e){return ae.get(e)}var se={nodes:ne,recoilValues:oe,registerNode:function(e){V.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&function(e){if(ne.has(e)){const t=`Duplicate atom key "${e}". This is a FATAL ERROR in\n production. But it is safe to ignore this warning if it occurred because of\n hot module replacement.`;console.warn(t)}}(e.key),ne.set(e.key,e);const t=null==e.set?new Y.RecoilValueReadOnly(e.key):new Y.RecoilState(e.key);return oe.set(e.key,t),t},getNode:function(e){const t=ne.get(e);if(null==t)throw new re(`Missing definition for RecoilValue: "${e}""`);return t},getNodeMaybe:function(e){return ne.get(e)},deleteNodeConfigIfPossible:function(e){var t;if(!M("recoil_memory_managament_2020"))return;const n=ne.get(e);var o;null!==n&&void 0!==n&&null!==(t=n.shouldDeleteConfigOnRelease)&&void 0!==t&&t.call(n)&&(ne.delete(e),null===(o=ie(e))||void 0===o||o(),ae.delete(e))},setConfigDeletionHandler:function(e,t){M("recoil_memory_managament_2020")&&(void 0===t?ae.delete(e):ae.set(e,t))},getConfigDeletionHandler:ie,recoilValuesForKeys:function(e){return X(e,(e=>s(oe.get(e))))},NodeMissingError:re,DefaultValue:ee,DEFAULT_VALUE:te};var ue={enqueueExecution:function(e,t){t()}};var ce,le,de=(ce=function(e){var t="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n={},o=Math.pow(2,5),r=o-1,a=o/2,i=o/4,s={},u=function(e){return function(){return e}},c=n.hash=function(e){var n="undefined"===typeof e?"undefined":t(e);if("number"===n)return e;"string"!==n&&(e+="");for(var o=0,r=0,a=e.length;r<a;++r)o=(o<<5)-o+e.charCodeAt(r)|0;return o},l=function(e,t){return t>>>e&r},d=function(e){return 1<<e},f=function(e,t){return n=e&t-1,n=(n=(858993459&(n-=n>>1&1431655765))+(n>>2&858993459))+(n>>4)&252645135,127&(n+=n>>8)+(n>>16);var n},h=function(e,t,n,o){var r=o;if(!e){var a=o.length;r=new Array(a);for(var i=0;i<a;++i)r[i]=o[i]}return r[t]=n,r},p=function(e,t,n){var o=n.length-1,r=0,a=0,i=n;if(e)r=a=t;else for(i=new Array(o);r<t;)i[a++]=n[r++];for(++r;r<=o;)i[a++]=n[r++];return e&&(i.length=o),i},v={__hamt_isEmpty:!0},y=function(e){return e===v||e&&e.__hamt_isEmpty},_=function(e,t,n,o){return{type:1,edit:e,hash:t,key:n,value:o,_modify:R}},m=function(e,t,n){return{type:2,edit:e,hash:t,children:n,_modify:w}},S=function(e,t,n){return{type:3,edit:e,mask:t,children:n,_modify:A}},g=function(e,t,n){return{type:4,edit:e,size:t,children:n,_modify:E}},b=function e(t,n,o,r,a,i){if(o===a)return m(t,o,[i,r]);var s=l(n,o),u=l(n,a);return S(t,d(s)|d(u),s===u?[e(t,n+5,o,r,a,i)]:s<u?[r,i]:[i,r])},T=function(e,t){return e===t.edit},R=function(e,t,n,o,r,a,i){if(t(a,this.key)){var u=o(this.value);return u===this.value?this:u===s?(--i.value,v):T(e,this)?(this.value=u,this):_(e,r,a,u)}var c=o();return c===s?this:(++i.value,b(e,n,this.hash,this,r,_(e,r,a,c)))},w=function(e,t,n,o,r,a,i){if(r===this.hash){var u=function(e,t,n,o,r,a,i,u){for(var c=r.length,l=0;l<c;++l){var d=r[l];if(n(i,d.key)){var f=d.value,v=a(f);return v===f?r:v===s?(--u.value,p(e,l,r)):h(e,l,_(t,o,i,v),r)}}var y=a();return y===s?r:(++u.value,h(e,c,_(t,o,i,y),r))}(T(e,this),e,t,this.hash,this.children,o,a,i);return u===this.children?this:u.length>1?m(e,this.hash,u):u[0]}var c=o();return c===s?this:(++i.value,b(e,n,this.hash,this,r,_(e,r,a,c)))},A=function(e,t,n,o,r,i,s){var u=this.mask,c=this.children,_=l(n,r),m=d(_),b=f(u,m),R=u&m,w=R?c[b]:v,A=w._modify(e,t,n+5,o,r,i,s);if(w===A)return this;var E,N=T(e,this),k=u,L=void 0;if(R&&y(A)){if(!(k&=~m))return v;if(c.length<=2&&((E=c[1^b])===v||1===E.type||2===E.type))return c[1^b];L=p(N,b,c)}else if(R||y(A))L=h(N,b,A,c);else{if(c.length>=a)return function(e,t,n,o,r){for(var a=[],i=o,s=0,u=0;i;++u)1&i&&(a[u]=r[s++]),i>>>=1;return a[t]=n,g(e,s+1,a)}(e,_,A,u,c);k|=m,L=function(e,t,n,o){var r=o.length;if(e){for(var a=r;a>=t;)o[a--]=o[a];return o[t]=n,o}for(var i=0,s=0,u=new Array(r+1);i<t;)u[s++]=o[i++];for(u[t]=n;i<r;)u[++s]=o[i++];return u}(N,b,A,c)}return N?(this.mask=k,this.children=L,this):S(e,k,L)},E=function(e,t,n,o,r,a,s){var u=this.size,c=this.children,d=l(n,r),f=c[d],p=(f||v)._modify(e,t,n+5,o,r,a,s);if(f===p)return this;var _=T(e,this),m=void 0;if(y(f)&&!y(p))++u,m=h(_,d,p,c);else if(!y(f)&&y(p)){if(--u<=i)return function(e,t,n,o){for(var r=new Array(t-1),a=0,i=0,s=0,u=o.length;s<u;++s)if(s!==n){var c=o[s];c&&!y(c)&&(r[a++]=c,i|=1<<s)}return S(e,i,r)}(e,u,d,c);m=h(_,d,v,c)}else m=h(_,d,p,c);return _?(this.size=u,this.children=m,this):g(e,u,m)};function N(e,t,n,o,r){this._editable=e,this._edit=t,this._config=n,this._root=o,this._size=r}v._modify=function(e,t,n,o,r,a,i){var u=o();return u===s?v:(++i.value,_(e,r,a,u))},N.prototype.setTree=function(e,t){return this._editable?(this._root=e,this._size=t,this):e===this._root?this:new N(this._editable,this._edit,this._config,e,t)};var k=n.tryGetHash=function(e,t,n,o){for(var r=o._root,a=0,i=o._config.keyEq;;)switch(r.type){case 1:return i(n,r.key)?r.value:e;case 2:if(t===r.hash)for(var s=r.children,u=0,c=s.length;u<c;++u){var h=s[u];if(i(n,h.key))return h.value}return e;case 3:var p=l(a,t),v=d(p);if(r.mask&v){r=r.children[f(r.mask,v)],a+=5;break}return e;case 4:if(r=r.children[l(a,t)]){a+=5;break}return e;default:return e}};N.prototype.tryGetHash=function(e,t,n){return k(e,t,n,this)};var L=n.tryGet=function(e,t,n){return k(e,n._config.hash(t),t,n)};N.prototype.tryGet=function(e,t){return L(e,t,this)};var V=n.getHash=function(e,t,n){return k(void 0,e,t,n)};N.prototype.getHash=function(e,t){return V(e,t,this)},n.get=function(e,t){return k(void 0,t._config.hash(e),e,t)},N.prototype.get=function(e,t){return L(t,e,this)};var C=n.has=function(e,t,n){return k(s,e,t,n)!==s};N.prototype.hasHash=function(e,t){return C(e,t,this)};var M=n.has=function(e,t){return C(t._config.hash(e),e,t)};N.prototype.has=function(e){return M(e,this)};var U=function(e,t){return e===t};n.make=function(e){return new N(0,0,{keyEq:e&&e.keyEq||U,hash:e&&e.hash||c},v,0)},n.empty=n.make();var D=n.isEmpty=function(e){return e&&!!y(e._root)};N.prototype.isEmpty=function(){return D(this)};var I=n.modifyHash=function(e,t,n,o){var r={value:o._size},a=o._root._modify(o._editable?o._edit:NaN,o._config.keyEq,0,e,t,n,r);return o.setTree(a,r.value)};N.prototype.modifyHash=function(e,t,n){return I(n,e,t,this)};var B=n.modify=function(e,t,n){return I(e,n._config.hash(t),t,n)};N.prototype.modify=function(e,t){return B(t,e,this)};var O=n.setHash=function(e,t,n,o){return I(u(n),e,t,o)};N.prototype.setHash=function(e,t,n){return O(e,t,n,this)};var x=n.set=function(e,t,n){return O(n._config.hash(e),e,t,n)};N.prototype.set=function(e,t){return x(e,t,this)};var P=u(s),z=n.removeHash=function(e,t,n){return I(P,e,t,n)};N.prototype.removeHash=N.prototype.deleteHash=function(e,t){return z(e,t,this)};var F=n.remove=function(e,t){return z(t._config.hash(e),e,t)};N.prototype.remove=N.prototype.delete=function(e){return F(e,this)};var W=n.beginMutation=function(e){return new N(e._editable+1,e._edit+1,e._config,e._root,e._size)};N.prototype.beginMutation=function(){return W(this)};var G=n.endMutation=function(e){return e._editable=e._editable&&e._editable-1,e};N.prototype.endMutation=function(){return G(this)};var $=n.mutate=function(e,t){var n=W(t);return e(n),G(n)};N.prototype.mutate=function(e){return $(e,this)};var K=function(e){return e&&H(e[0],e[1],e[2],e[3],e[4])},H=function(e,t,n,o,r){for(;n<e;){var a=t[n++];if(a&&!y(a))return j(a,o,[e,t,n,o,r])}return K(r)},j=function(e,t,n){switch(e.type){case 1:return{value:t(e),rest:n};case 2:case 4:case 3:var o=e.children;return H(o.length,o,0,t,n);default:return K(n)}},q={done:!0};function Z(e){this.v=e}Z.prototype.next=function(){if(!this.v)return q;var e=this.v;return this.v=K(e.rest),e},Z.prototype[Symbol.iterator]=function(){return this};var Y=function(e,t){return new Z(j(e._root,t))},J=function(e){return[e.key,e.value]},X=n.entries=function(e){return Y(e,J)};N.prototype.entries=N.prototype[Symbol.iterator]=function(){return X(this)};var Q=function(e){return e.key},ee=n.keys=function(e){return Y(e,Q)};N.prototype.keys=function(){return ee(this)};var te=function(e){return e.value},ne=n.values=N.prototype.values=function(e){return Y(e,te)};N.prototype.values=function(){return ne(this)};var oe=n.fold=function(e,t,n){var o=n._root;if(1===o.type)return e(t,o.value,o.key);for(var r=[o.children],a=void 0;a=r.pop();)for(var i=0,s=a.length;i<s;){var u=a[i++];u&&u.type&&(1===u.type?t=e(t,u.value,u.key):r.push(u.children))}return t};N.prototype.fold=function(e,t){return oe(e,t,this)};var re=n.forEach=function(e,t){return oe((function(n,o,r){return e(o,r,t)}),null,t)};N.prototype.forEach=function(e){return re(e,this)};var ae=n.count=function(e){return e._size};N.prototype.count=function(){return ae(this)},Object.defineProperty(N.prototype,"size",{get:N.prototype.count}),e.exports?e.exports=n:(void 0).hamt=n},ce(le={exports:{}},le.exports),le.exports);class fe{constructor(e){u(this,"_map",void 0),this._map=new Map(null===e||void 0===e?void 0:e.entries())}keys(){return this._map.keys()}entries(){return this._map.entries()}get(e){return this._map.get(e)}has(e){return this._map.has(e)}set(e,t){return this._map.set(e,t),this}delete(e){return this._map.delete(e),this}clone(){return pe(this)}toMap(){return new Map(this._map)}}class he{constructor(e){if(u(this,"_hamt",de.empty.beginMutation()),e instanceof he){const t=e._hamt.endMutation();e._hamt=t.beginMutation(),this._hamt=t.beginMutation()}else if(e)for(const[t,n]of e.entries())this._hamt.set(t,n)}keys(){return this._hamt.keys()}entries(){return this._hamt.entries()}get(e){return this._hamt.get(e)}has(e){return this._hamt.has(e)}set(e,t){return this._hamt.set(e,t),this}delete(e){return this._hamt.delete(e),this}clone(){return pe(this)}toMap(){return new Map(this._hamt)}}function pe(e){return M("recoil_hamt_2020")?new he(e):new fe(e)}var ve=pe,ye=Object.freeze({__proto__:null,persistentMap:ve});var _e=function(e,...t){const n=new Set;e:for(const o of e){for(const e of t)if(e.has(o))continue e;n.add(o)}return n};var me=function(e,t){const n=new Map;return e.forEach(((e,o)=>{n.set(o,t(e,o))})),n};function Se(e,t,n,o){const{nodeDeps:r,nodeToNodeSubscriptions:a}=n,i=r.get(e);if(i&&o&&i!==o.nodeDeps.get(e))return;r.set(e,t);const u=null==i?t:_e(t,i);for(const c of u){a.has(c)||a.set(c,new Set);s(a.get(c)).add(e)}if(i){const n=_e(i,t);for(const t of n){if(!a.has(t))return;const n=s(a.get(t));n.delete(e),0===n.size&&a.delete(t)}}}var ge={cloneGraph:function(e){return{nodeDeps:me(e.nodeDeps,(e=>new Set(e))),nodeToNodeSubscriptions:me(e.nodeToNodeSubscriptions,(e=>new Set(e)))}},graph:function(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}},saveDepsToStore:function(e,t,n,o){var r,a,i,s;const u=n.getState();o!==u.currentTree.version&&o!==(null===(r=u.nextTree)||void 0===r?void 0:r.version)&&o!==(null===(a=u.previousTree)||void 0===a?void 0:a.version)&&B("Tried to save dependencies to a discarded tree");const c=n.getGraph(o);if(Se(e,t,c),o===(null===(i=u.previousTree)||void 0===i?void 0:i.version)){Se(e,t,n.getGraph(u.currentTree.version),c)}if(o===(null===(s=u.previousTree)||void 0===s?void 0:s.version)||o===u.currentTree.version){var l;const o=null===(l=u.nextTree)||void 0===l?void 0:l.version;if(void 0!==o){Se(e,t,n.getGraph(o),c)}}}};let be=0;let Te=0;let Re=0;var we={getNextTreeStateVersion:()=>be++,getNextStoreID:()=>Te++,getNextComponentID:()=>Re++};const{persistentMap:Ae}=ye,{graph:Ee}=ge,{getNextTreeStateVersion:Ne}=we;function ke(){const e=Ne();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:Ae(),nonvalidatedAtoms:Ae()}}var Le={makeEmptyTreeState:ke,makeEmptyStoreState:function(){const e=ke();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:(new Map).set(e.version,Ee()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}},getNextTreeStateVersion:Ne};class Ve{}var Ce={RetentionZone:Ve,retentionZone:function(){return new Ve}};var Me={setByAddingToSet:function(e,t){const n=new Set(e);return n.add(t),n},setByDeletingFromSet:function(e,t){const n=new Set(e);return n.delete(t),n},mapBySettingInMap:function(e,t,n){const o=new Map(e);return o.set(t,n),o},mapByUpdatingInMap:function(e,t,n){const o=new Map(e);return o.set(t,n(o.get(t))),o},mapByDeletingFromMap:function(e,t){const n=new Map(e);return n.delete(t),n},mapByDeletingMultipleFromMap:function(e,t){const n=new Map(e);return t.forEach((e=>n.delete(e))),n}};var Ue=function*(e,t){let n=0;for(const o of e)t(o,n++)&&(yield o)};var De=function(e,t){return new Proxy(e,{get:(e,n)=>(!(n in e)&&n in t&&(e[n]=t[n]()),e[n]),ownKeys:e=>Object.keys(e)})};const{getNode:Ie,getNodeMaybe:Be,recoilValuesForKeys:Oe}=se,{RetentionZone:xe}=Ce,{setByAddingToSet:Pe}=Me,ze=Object.freeze(new Set);class Fe extends Error{}function We(e,t,n,o){const r=e.getState();if(r.nodeCleanupFunctions.has(n))return;const a=Ie(n),i=function(e,t,n){if(!M("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:o}=e.getState().retention;function r(e){let n=o.get(e);n||o.set(e,n=new Set),n.add(t)}if(n instanceof xe)r(n);else if(Array.isArray(n))for(const a of n)r(a);return()=>{if(!M("recoil_memory_managament_2020"))return;const{retention:o}=e.getState();function r(e){const n=o.nodesRetainedByZone.get(e);null===n||void 0===n||n.delete(t),n&&0===n.size&&o.nodesRetainedByZone.delete(e)}if(n instanceof xe)r(n);else if(Array.isArray(n))for(const e of n)r(e)}}(e,n,a.retainedBy),s=a.init(e,t,o);r.nodeCleanupFunctions.set(n,(()=>{s(),i()}))}function Ge(e,t,n){return Ie(n).peek(e,t)}function $e(e,t,n){const o=new Set,r=Array.from(n),a=e.getGraph(t.version);for(let s=r.pop();s;s=r.pop()){var i;o.add(s);const e=null!==(i=a.nodeToNodeSubscriptions.get(s))&&void 0!==i?i:ze;for(const t of e)o.has(t)||r.push(t)}return o}var Ke={getNodeLoadable:function(e,t,n){return We(e,t,n,"get"),Ie(n).get(e,t)},peekNodeLoadable:Ge,setNodeValue:function(e,t,n,o){const r=Ie(n);if(null==r.set)throw new Fe(`Attempt to set read-only RecoilValue: ${n}`);const a=r.set;return We(e,t,n,"set"),a(e,t,o)},initializeNode:function(e,t,n){We(e,e.getState().currentTree,t,n)},cleanUpNode:function(e,t){var n;const o=e.getState();null===(n=o.nodeCleanupFunctions.get(t))||void 0===n||n(),o.nodeCleanupFunctions.delete(t)},setUnvalidatedAtomValue_DEPRECATED:function(e,t,n){var o;const r=Be(t);return null===r||void 0===r||null===(o=r.invalidate)||void 0===o||o.call(r,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:Pe(e.dirtyAtoms,t)}},peekNodeInfo:function(e,t,n){const o=e.getState(),r=e.getGraph(t.version),a=Ie(n).nodeType;return De({type:a},{loadable:()=>Ge(e,t,n),isActive:()=>o.knownAtoms.has(n)||o.knownSelectors.has(n),isSet:()=>"selector"!==a&&t.atomValues.has(n),isModified:()=>t.dirtyAtoms.has(n),deps:()=>{var e;return Oe(null!==(e=r.nodeDeps.get(n))&&void 0!==e?e:[])},subscribers:()=>{var r,a;return{nodes:Oe(Ue($e(e,t,new Set([n])),(e=>e!==n))),components:X(null!==(r=null===(a=o.nodeToComponentSubscriptions.get(n))||void 0===a?void 0:a.values())&&void 0!==r?r:[],(([e])=>({name:e})))}}})},getDownstreamNodes:$e};let He=null;var je={setInvalidateMemoizedSnapshot:function(e){He=e},invalidateMemoizedSnapshot:function(){var e;null===(e=He)||void 0===e||e()}};const{getDownstreamNodes:qe,getNodeLoadable:Ze,setNodeValue:Ye}=Ke,{getNextComponentID:Je}=we,{getNode:Xe,getNodeMaybe:Qe}=se,{DefaultValue:et}=se,{reactMode:tt}=F,{AbstractRecoilValue:nt,RecoilState:ot,RecoilValueReadOnly:rt,isRecoilValue:at}=Y,{invalidateMemoizedSnapshot:it}=je;function st(e,t,n){if("set"===n.type){const{recoilValue:o,valueOrUpdater:r}=n,i=function(e,t,{key:n},o){if("function"===typeof o){const r=Ze(e,t,n);if("loading"===r.state){const e=`Tried to set atom or selector "${n}" using an updater function while the current state is pending, this is not currently supported.`;throw B(e),a(e)}if("hasError"===r.state)throw r.contents;return o(r.contents)}return o}(e,t,o,r),s=Ye(e,t,o.key,i);for(const[e,n]of s.entries())ut(t,e,n)}else if("setLoadable"===n.type){const{recoilValue:{key:e},loadable:o}=n;ut(t,e,o)}else if("markModified"===n.type){const{recoilValue:{key:e}}=n;t.dirtyAtoms.add(e)}else if("setUnvalidated"===n.type){var o;const{recoilValue:{key:e},unvalidatedValue:r}=n,a=Qe(e);null===a||void 0===a||null===(o=a.invalidate)||void 0===o||o.call(a,t),t.atomValues.delete(e),t.nonvalidatedAtoms.set(e,r),t.dirtyAtoms.add(e)}else B(`Unknown action ${n.type}`)}function ut(e,t,n){"hasValue"===n.state&&n.contents instanceof et?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function ct(e,t){e.replaceState((n=>{const o=ft(n);for(const r of t)st(e,o,r);return ht(e,o),it(),o}))}function lt(e,t){if(dt.length){const n=dt[dt.length-1];let o=n.get(e);o||n.set(e,o=[]),o.push(t)}else ct(e,[t])}const dt=[];function ft(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function ht(e,t){const n=qe(e,t,t.dirtyAtoms);for(const a of n){var o,r;null===(o=Qe(a))||void 0===o||null===(r=o.invalidate)||void 0===r||r.call(o,t)}}function pt(e,t,n){lt(e,{type:"set",recoilValue:t,valueOrUpdater:n})}var vt={RecoilValueReadOnly:rt,AbstractRecoilValue:nt,RecoilState:ot,getRecoilValueAsLoadable:function(e,{key:t},n=e.getState().currentTree){var o,r;const a=e.getState();n.version!==a.currentTree.version&&n.version!==(null===(o=a.nextTree)||void 0===o?void 0:o.version)&&n.version!==(null===(r=a.previousTree)||void 0===r?void 0:r.version)&&B("Tried to read from a discarded tree");const i=Ze(e,n,t);return"loading"===i.state&&i.contents.catch((()=>{})),i},setRecoilValue:pt,setRecoilValueLoadable:function(e,t,n){if(n instanceof et)return pt(e,t,n);lt(e,{type:"setLoadable",recoilValue:t,loadable:n})},markRecoilValueModified:function(e,t){lt(e,{type:"markModified",recoilValue:t})},setUnvalidatedRecoilValue:function(e,t,n){lt(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})},subscribeToRecoilValue:function(e,{key:t},n,o=null){const r=Je(),a=e.getState();a.nodeToComponentSubscriptions.has(t)||a.nodeToComponentSubscriptions.set(t,new Map),s(a.nodeToComponentSubscriptions.get(t)).set(r,[null!==o&&void 0!==o?o:"<not captured>",n]);const i=tt();if(i.early&&("LEGACY"===i.mode||"MUTABLE_SOURCE"===i.mode)){const o=e.getState().nextTree;o&&o.dirtyAtoms.has(t)&&n(o)}return{release:()=>{const n=e.getState(),o=n.nodeToComponentSubscriptions.get(t);void 0!==o&&o.has(r)?(o.delete(r),0===o.size&&n.nodeToComponentSubscriptions.delete(t)):B(`Subscription missing at release time for atom ${t}. This is a bug in Recoil.`)}}},isRecoilValue:at,applyAtomValueWrites:function(e,t){const n=e.clone();return t.forEach(((e,t)=>{"hasValue"===e.state&&e.contents instanceof et?n.delete(t):n.set(t,e)})),n},batchStart:function(){const e=new Map;return dt.push(e),()=>{for(const[t,n]of e)ct(t,n);dt.pop()!==e&&B("Incorrect order of batch popping")}},writeLoadableToTreeState:ut,invalidateDownstreams:ht,copyTreeState:ft,refreshRecoilValue:function(e,t){var n;const{currentTree:o}=e.getState(),r=Xe(t.key);null===(n=r.clearCache)||void 0===n||n.call(r,e,o)}};var yt=function(e,t,n){const o=e.entries();let r=o.next();for(;!r.done;){const a=r.value;if(t.call(n,a[1],a[0],e))return!0;r=o.next()}return!1};const{cleanUpNode:_t}=Ke,{deleteNodeConfigIfPossible:mt,getNode:St}=se,{RetentionZone:gt}=Ce,bt=new Set;function Tt(e,t){const n=e.getState(),o=n.currentTree;if(n.nextTree)return void B("releaseNodesNowOnCurrentTree should only be called at the end of a batch");const r=new Set;for(const i of t)if(i instanceof gt)for(const e of wt(n,i))r.add(e);else r.add(i);const a=function(e,t){const n=e.getState(),o=n.currentTree,r=e.getGraph(o.version),a=new Set,i=new Set;return u(t),a;function u(t){const c=new Set,l=function(e,t,n,o,r){const a=e.getGraph(t.version),i=[],u=new Set;for(;n.size>0;)c(s(n.values().next().value));return i;function c(e){if(o.has(e)||r.has(e))return void n.delete(e);if(u.has(e))return;const t=a.nodeToNodeSubscriptions.get(e);if(t)for(const n of t)c(n);u.add(e),n.delete(e),i.push(e)}}(e,o,t,a,i);for(const e of l){var d;if("recoilRoot"===St(e).retainedBy){i.add(e);continue}if((null!==(d=n.retention.referenceCounts.get(e))&&void 0!==d?d:0)>0){i.add(e);continue}if(At(e).some((e=>n.retention.referenceCounts.get(e)))){i.add(e);continue}const t=r.nodeToNodeSubscriptions.get(e);t&&yt(t,(e=>i.has(e)))?i.add(e):(a.add(e),c.add(e))}const f=new Set;for(const e of c)for(const t of null!==(h=r.nodeDeps.get(e))&&void 0!==h?h:bt){var h;a.has(t)||f.add(t)}f.size&&u(f)}}(e,r);for(const i of a)Rt(e,o,i)}function Rt(e,t,n){if(!M("recoil_memory_managament_2020"))return;_t(e,n);const o=e.getState();o.knownAtoms.delete(n),o.knownSelectors.delete(n),o.nodeTransactionSubscriptions.delete(n),o.retention.referenceCounts.delete(n);const r=At(n);for(const u of r){var a;null===(a=o.retention.nodesRetainedByZone.get(u))||void 0===a||a.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);const i=o.graphsByVersion.get(t.version);if(i){const e=i.nodeDeps.get(n);if(void 0!==e){i.nodeDeps.delete(n);for(const t of e){var s;null===(s=i.nodeToNodeSubscriptions.get(t))||void 0===s||s.delete(n)}}i.nodeToNodeSubscriptions.delete(n)}mt(n)}function wt(e,t){var n;return null!==(n=e.retention.nodesRetainedByZone.get(t))&&void 0!==n?n:bt}function At(e){const t=St(e).retainedBy;return void 0===t||"components"===t||"recoilRoot"===t?[]:t instanceof gt?[t]:t}function Et(e,t){if(!M("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),function(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):Tt(e,new Set([t]))}(e,t)}var Nt={SUSPENSE_TIMEOUT_MS:12e4,updateRetainCount:function(e,t,n){var o;if(!M("recoil_memory_managament_2020"))return;const r=e.getState().retention.referenceCounts,a=(null!==(o=r.get(t))&&void 0!==o?o:0)+n;0===a?Et(e,t):r.set(t,a)},updateRetainCountToZero:Et,releaseScheduledRetainablesNow:function(e){if(!M("recoil_memory_managament_2020"))return;const t=e.getState();Tt(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()},retainedByOptionWithDefault:function(e){return void 0===e?"recoilRoot":e}};const{unstable_batchedUpdates:kt}=r;var Lt={unstable_batchedUpdates:kt};const{unstable_batchedUpdates:Vt}=Lt;var Ct={unstable_batchedUpdates:Vt};const{batchStart:Mt}=vt,{unstable_batchedUpdates:Ut}=Ct;let Dt=Ut||(e=>e());var It={getBatcher:()=>Dt,setBatcher:e=>{Dt=e},batchUpdates:e=>{Dt((()=>{let t=()=>{};try{t=Mt(),e()}finally{t()}}))}};var Bt=function*(e){for(const t of e)for(const e of t)yield e};const Ot="undefined"===typeof Window||"undefined"===typeof window,xt="undefined"!==typeof navigator&&"ReactNative"===navigator.product;var Pt={isSSR:Ot,isReactNative:xt,isWindow:e=>!Ot&&(e===window||e instanceof Window)};var zt={memoizeWithArgsHash:function(e,t){let n;return(...o)=>{n||(n={});const r=t(...o);return Object.hasOwnProperty.call(n,r)||(n[r]=e(...o)),n[r]}},memoizeOneWithArgsHash:function(e,t){let n,o;return(...r)=>{const a=t(...r);return n===a||(n=a,o=e(...r)),o}},memoizeOneWithArgsHashAndInvalidation:function(e,t){let n,o;return[(...r)=>{const a=t(...r);return n===a||(n=a,o=e(...r)),o},()=>{n=null}]}};const{batchUpdates:Ft}=It,{initializeNode:Wt,peekNodeInfo:Gt}=Ke,{graph:$t}=ge,{getNextStoreID:Kt}=we,{DEFAULT_VALUE:Ht,recoilValues:jt,recoilValuesForKeys:qt}=se,{AbstractRecoilValue:Zt,getRecoilValueAsLoadable:Yt,setRecoilValue:Jt,setUnvalidatedRecoilValue:Xt}=vt,{updateRetainCount:Qt}=Nt,{setInvalidateMemoizedSnapshot:en}=je,{getNextTreeStateVersion:tn,makeEmptyStoreState:nn}=Le,{isSSR:on}=Pt,{memoizeOneWithArgsHashAndInvalidation:rn}=zt;class an{constructor(e,t){u(this,"_store",void 0),u(this,"_refCount",1),u(this,"getLoadable",(e=>(this.checkRefCount_INTERNAL(),Yt(this._store,e)))),u(this,"getPromise",(e=>(this.checkRefCount_INTERNAL(),this.getLoadable(e).toPromise()))),u(this,"getNodes_UNSTABLE",(e=>{if(this.checkRefCount_INTERNAL(),!0===(null===e||void 0===e?void 0:e.isModified)){if(!1===(null===e||void 0===e?void 0:e.isInitialized))return[];const t=this._store.getState().currentTree;return qt(t.dirtyAtoms)}const t=this._store.getState().knownAtoms,n=this._store.getState().knownSelectors;return null==(null===e||void 0===e?void 0:e.isInitialized)?jt.values():!0===e.isInitialized?qt(Bt([t,n])):Ue(jt.values(),(({key:e})=>!t.has(e)&&!n.has(e)))})),u(this,"getInfo_UNSTABLE",(({key:e})=>(this.checkRefCount_INTERNAL(),Gt(this._store,this._store.getState().currentTree,e)))),u(this,"map",(e=>{this.checkRefCount_INTERNAL();const t=new ln(this,Ft);return e(t),t})),u(this,"asyncMap",(async e=>{this.checkRefCount_INTERNAL();const t=new ln(this,Ft);return t.retain(),await e(t),t.autoRelease_INTERNAL(),t})),this._store={storeID:Kt(),parentStoreID:t,getState:()=>e,replaceState:t=>{e.currentTree=t(e.currentTree)},getGraph:t=>{const n=e.graphsByVersion;if(n.has(t))return s(n.get(t));const o=$t();return n.set(t,o),o},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw a("Cannot subscribe to Snapshots")}};for(const n of this._store.getState().knownAtoms)Wt(this._store,n,"get"),Qt(this._store,n,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0&&B("Attempt to retain() Snapshot that was already released."),this._refCount++;let e=!1;return()=>{e||(e=!0,this._release())}}autoRelease_INTERNAL(){on||window.setTimeout((()=>this._release()),10)}_release(){if(this._refCount--,0===this._refCount){if(this._store.getState().nodeCleanupFunctions.forEach((e=>e())),this._store.getState().nodeCleanupFunctions.clear(),!M("recoil_memory_managament_2020"))return}else this._refCount}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){M("recoil_memory_managament_2020")&&this._refCount}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function sn(e,t,n=!1){const o=e.getState(),r=n?tn():t.version;return{currentTree:{version:n?r:t.version,stateID:n?r:t.stateID,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(o.knownAtoms),knownSelectors:new Set(o.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:(new Map).set(r,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(X(o.nodeCleanupFunctions.entries(),(([e])=>[e,()=>{}])))}}const[un,cn]=rn(((e,t)=>{var n;const o=e.getState(),r="latest"===t?null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree:s(o.previousTree);return new an(sn(e,r),e.storeID)}),((e,t)=>{var n,o;return String(t)+String(e.storeID)+String(null===(n=e.getState().nextTree)||void 0===n?void 0:n.version)+String(e.getState().currentTree.version)+String(null===(o=e.getState().previousTree)||void 0===o?void 0:o.version)}));en(cn);class ln extends an{constructor(e,t){super(sn(e.getStore_INTERNAL(),e.getStore_INTERNAL().getState().currentTree,!0),e.getStoreID()),u(this,"_batch",void 0),u(this,"set",((e,t)=>{this.checkRefCount_INTERNAL();const n=this.getStore_INTERNAL();this._batch((()=>{Qt(n,e.key,1),Jt(this.getStore_INTERNAL(),e,t)}))})),u(this,"reset",(e=>{this.checkRefCount_INTERNAL();const t=this.getStore_INTERNAL();this._batch((()=>{Qt(t,e.key,1),Jt(this.getStore_INTERNAL(),e,Ht)}))})),u(this,"setUnvalidatedAtomValues_DEPRECATED",(e=>{this.checkRefCount_INTERNAL();const t=this.getStore_INTERNAL();Ft((()=>{for(const[n,o]of e.entries())Qt(t,n,1),Xt(t,new Zt(n),o)}))})),this._batch=t}}var dn={Snapshot:an,MutableSnapshot:ln,freshSnapshot:function(e){const t=new an(nn());return null!=e?t.map(e):t},cloneSnapshot:function(e,t="latest"){const n=un(e,t);return n.isRetained()?n:(cn(),un(e,t))}},fn=dn.Snapshot,hn=dn.MutableSnapshot,pn=dn.freshSnapshot,vn=dn.cloneSnapshot,yn=Object.freeze({__proto__:null,Snapshot:fn,MutableSnapshot:hn,freshSnapshot:pn,cloneSnapshot:vn});var _n=function(...e){const t=new Set;for(const n of e)for(const e of n)t.add(e);return t};const{useRef:mn}=o;var Sn=function(e){const t=mn(e);return t.current===e&&"function"===typeof e&&(t.current=e()),t};const{getNextTreeStateVersion:gn,makeEmptyStoreState:bn}=Le,{cleanUpNode:Tn,getDownstreamNodes:Rn,initializeNode:wn,setNodeValue:An,setUnvalidatedAtomValue_DEPRECATED:En}=Ke,{graph:Nn}=ge,{cloneGraph:kn}=ge,{getNextStoreID:Ln}=we,{createMutableSource:Vn,reactMode:Cn}=F,{applyAtomValueWrites:Mn}=vt,{releaseScheduledRetainablesNow:Un}=Nt,{freshSnapshot:Dn}=yn,{useCallback:In,useContext:Bn,useEffect:On,useMemo:xn,useRef:Pn,useState:zn}=o;function Fn(){throw a("This component must be used inside a <RecoilRoot> component.")}const Wn=Object.freeze({storeID:Ln(),getState:Fn,replaceState:Fn,getGraph:Fn,subscribeToTransactions:Fn,addTransactionMetadata:Fn});let Gn=!1;function $n(e){if(Gn)throw a("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const t=e.getState();if(null===t.nextTree){M("recoil_memory_managament_2020")&&M("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&Un(e);const n=t.currentTree.version,o=gn();t.nextTree={...t.currentTree,version:o,stateID:o,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(o,kn(s(t.graphsByVersion.get(n))))}}const Kn=o.createContext({current:Wn}),Hn=()=>Bn(Kn),jn=o.createContext(null);function qn(e,t,n){const o=Rn(e,n,n.dirtyAtoms);for(const r of o){const e=t.nodeToComponentSubscriptions.get(r);if(e)for(const[t,[o,r]]of e)r(n)}}function Zn(e){const t=e.getState(),n=t.currentTree,o=n.dirtyAtoms;if(o.size){for(const[n,r]of t.nodeTransactionSubscriptions)if(o.has(n))for(const[t,o]of r)o(e);for(const[n,o]of t.transactionSubscriptions)o(e);(!Cn().early||t.suspendedComponentResolvers.size>0)&&(qn(e,t,n),t.suspendedComponentResolvers.forEach((e=>e())),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach((e=>e(n))),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function Yn({setNotifyBatcherOfChange:e}){const t=Hn(),[,n]=zn([]);return e((()=>n({}))),On((()=>(e((()=>n({}))),()=>{e((()=>{}))})),[e]),On((()=>{ue.enqueueExecution("Batcher",(()=>{!function(e){const t=e.getState();t.commitDepth++;try{const{nextTree:n}=t;if(null==n)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,Zn(e),null!=t.previousTree?t.graphsByVersion.delete(t.previousTree.version):B("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,M("recoil_memory_managament_2020")&&null==n&&Un(e)}finally{t.commitDepth--}}(t.current)}))})),null}let Jn=0;function Xn({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){let a;const i=e=>{const t=a.current.graphsByVersion;if(t.has(e))return s(t.get(e));const n=Nn();return t.set(e,n),n},u=(e,t)=>{if(null==t){const{transactionSubscriptions:t}=h.current.getState(),n=Jn++;return t.set(n,e),{release:()=>{t.delete(n)}}}{const{nodeTransactionSubscriptions:n}=h.current.getState();n.has(t)||n.set(t,new Map);const o=Jn++;return s(n.get(t)).set(o,e),{release:()=>{const e=n.get(t);e&&(e.delete(o),0===e.size&&n.delete(t))}}}},c=e=>{$n(h.current);for(const t of Object.keys(e))s(h.current.getState().nextTree).transactionMetadata[t]=e[t]},l=e=>{$n(h.current);const t=s(a.current.nextTree);let n;try{Gn=!0,n=e(t)}finally{Gn=!1}n!==t&&(a.current.nextTree=n,Cn().early&&qn(h.current,a.current,n),s(d.current)())},d=Pn(null),f=In((e=>{d.current=e}),[d]),h=Sn((()=>null!==n&&void 0!==n?n:{storeID:Ln(),getState:()=>a.current,replaceState:l,getGraph:i,subscribeToTransactions:u,addTransactionMetadata:c}));null!=n&&(h.current=n),a=Sn((()=>null!=e?function(e,t){const n=bn();return t({set:(t,o)=>{const r=n.currentTree,a=An(e,r,t.key,o),i=new Set(a.keys()),s=r.nonvalidatedAtoms.clone();for(const e of i)s.delete(e);n.currentTree={...r,dirtyAtoms:_n(r.dirtyAtoms,i),atomValues:Mn(r.atomValues,a),nonvalidatedAtoms:s}},setUnvalidatedAtomValues:e=>{e.forEach(((e,t)=>{n.currentTree=En(n.currentTree,t,e)}))}}),n}(h.current,e):null!=t?function(e){const t=Dn(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach((e=>e())),n.nodeCleanupFunctions.clear(),n}(t):bn()));const p=xn((()=>null===Vn||void 0===Vn?void 0:Vn(a,(()=>a.current.currentTree.version))),[a]);return On((()=>{const e=h.current;for(const t of new Set(e.getState().knownAtoms))wn(e,t,"get");return()=>{for(const t of e.getState().knownAtoms)Tn(e,t)}}),[h]),o.createElement(Kn.Provider,{value:h},o.createElement(jn.Provider,{value:p},o.createElement(Yn,{setNotifyBatcherOfChange:f}),r))}var Qn={RecoilRoot:function(e){const{override:t,...n}=e,r=Hn();return!1===t&&r.current!==Wn?e.children:o.createElement(Xn,n)},useStoreRef:Hn,useRecoilMutableSource:function(){const e=Bn(jn);return null==e&&J("Attempted to use a Recoil hook outside of a <RecoilRoot>. <RecoilRoot> must be an ancestor of any component that uses Recoil hooks."),e},useRecoilStoreID:function(){return Hn().current.storeID},notifyComponents_FOR_TESTING:qn,sendEndOfBatchNotifications_FOR_TESTING:Zn};var eo=function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,o=e.length;n<o;n++)if(e[n]!==t[n])return!1;return!0};const{useEffect:to,useRef:no}=o;var oo=function(e){const t=no();return to((()=>{t.current=e})),t.current};const{useStoreRef:ro}=Qn,{SUSPENSE_TIMEOUT_MS:ao}=Nt,{updateRetainCount:io}=Nt,{RetentionZone:so}=Ce,{useEffect:uo,useRef:co}=o,{isSSR:lo}=Pt;var fo=function(e){if(M("recoil_memory_managament_2020"))return function(e){const t=Array.isArray(e)?e:[e],n=t.map((e=>e instanceof so?e:e.key)),o=ro();uo((()=>{if(!M("recoil_memory_managament_2020"))return;const e=o.current;if(r.current&&!lo)window.clearTimeout(r.current),r.current=null;else for(const t of n)io(e,t,1);return()=>{for(const t of n)io(e,t,-1)}}),[o,...n]);const r=co(),a=oo(n);if(!lo&&(void 0===a||!eo(a,n))){const e=o.current;for(const t of n)io(e,t,1);if(a)for(const t of a)io(e,t,-1);r.current&&window.clearTimeout(r.current),r.current=window.setTimeout((()=>{r.current=null;for(const t of n)io(e,t,-1)}),ao)}}(e)};var ho=function(){return"<component name not available>"};const{batchUpdates:po}=It,{DEFAULT_VALUE:vo}=se,{currentRendererSupportsUseSyncExternalStore:yo,reactMode:_o,useMutableSource:mo,useSyncExternalStore:So}=F,{useRecoilMutableSource:go,useStoreRef:bo}=Qn,{isRecoilValue:To}=Y,{AbstractRecoilValue:Ro,getRecoilValueAsLoadable:wo,setRecoilValue:Ao,setUnvalidatedRecoilValue:Eo,subscribeToRecoilValue:No}=vt,{useCallback:ko,useEffect:Lo,useMemo:Vo,useRef:Co,useState:Mo}=o,{setByAddingToSet:Uo}=Me,{isSSR:Do}=Pt;function Io(e,t,n){if("hasValue"===e.state)return e.contents;if("loading"===e.state){throw new Promise((t=>{const o=n.current.getState().suspendedComponentResolvers;o.add(t),Do&&i(e.contents)&&e.contents.finally((()=>{o.delete(t)}))}))}throw"hasError"===e.state?e.contents:a(`Invalid value of loadable atom "${t.key}"`)}function Bo(e){const t=bo(),n=ho(),o=ko((()=>{var n;const o=t.current,r=o.getState(),a=_o().early&&null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree;return{loadable:wo(o,e,a),key:e.key}}),[t,e]),r=ko((e=>{let t;return()=>{var n,o;const r=e();return null!==(n=t)&&void 0!==n&&n.loadable.is(r.loadable)&&(null===(o=t)||void 0===o?void 0:o.key)===r.key?t:(t=r,r)}}),[]),a=Vo((()=>r(o)),[o,r]),i=ko((o=>{const r=t.current;return No(r,e,o,n).release}),[t,e,n]);return So(i,a,a).loadable}function Oo(e){const t=bo(),n=ko((()=>{var n;const o=t.current,r=o.getState(),a=_o().early&&null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree;return wo(o,e,a)}),[t,e]),o=ko((()=>n()),[n]),r=ho(),i=ko(((o,a)=>{const i=t.current;return No(i,e,(()=>{if(!M("recoil_suppress_rerender_in_callback"))return a();const e=n();c.current.is(e)||a(),c.current=e}),r).release}),[t,e,r,n]),s=go();if(null==s)throw a("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const u=mo(s,o,i),c=Co(u);return Lo((()=>{c.current=u})),u}function xo(e){const t=bo(),n=ho(),o=ko((()=>{var n;const o=t.current,r=o.getState(),a=_o().early&&null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree;return wo(o,e,a)}),[t,e]),r=ko((()=>({loadable:o(),key:e.key})),[o,e.key]),a=ko((e=>{const t=r();return e.loadable.is(t.loadable)&&e.key===t.key?e:t}),[r]);Lo((()=>{const o=No(t.current,e,(e=>{s(a)}),n);return s(a),o.release}),[n,e,t,a]);const[i,s]=Mo(r);return i.key!==e.key?r().loadable:i.loadable}function Po(e){const t=bo(),[,n]=Mo([]),o=ho(),r=ko((()=>{var n;const o=t.current,r=o.getState(),a=_o().early&&null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree;return wo(o,e,a)}),[t,e]),a=r(),i=Co(a);return Lo((()=>{i.current=a})),Lo((()=>{const a=t.current,s=a.getState(),u=No(a,e,(e=>{var t;if(!M("recoil_suppress_rerender_in_callback"))return n([]);const o=r();null!==(t=i.current)&&void 0!==t&&t.is(o)||n(o),i.current=o}),o);if(s.nextTree)a.getState().queuedComponentCallbacks_DEPRECATED.push((()=>{i.current=null,n([])}));else{var c;if(!M("recoil_suppress_rerender_in_callback"))return n([]);const e=r();null!==(c=i.current)&&void 0!==c&&c.is(e)||n(e),i.current=e}return u.release}),[o,r,e,t]),a}function zo(e){return M("recoil_memory_managament_2020")&&fo(e),{TRANSITION_SUPPORT:xo,SYNC_EXTERNAL_STORE:yo()?Bo:xo,MUTABLE_SOURCE:Oo,LEGACY:Po}[_o().mode](e)}function Fo(e){const t=bo();return Io(zo(e),e,t)}function Wo(e){const t=bo();return ko((n=>{Ao(t.current,e,n)}),[t,e])}function Go(e){return M("recoil_memory_managament_2020")&&fo(e),xo(e)}function $o(e){const t=bo();return Io(Go(e),e,t)}var Ko={recoilComponentGetRecoilValueCount_FOR_TESTING:{current:0},useRecoilInterface:function(){const e=ho(),t=bo(),[,n]=Mo([]),o=Co(new Set);o.current=new Set;const r=Co(new Set),a=Co(new Map),i=ko((e=>{const t=a.current.get(e);t&&(t.release(),a.current.delete(e))}),[a]),s=ko(((e,t)=>{a.current.has(t)&&n([])}),[]);return Lo((()=>{const n=t.current;_e(o.current,r.current).forEach((t=>{if(a.current.has(t))return void J(`Double subscription to RecoilValue "${t}"`);const o=No(n,new Ro(t),(e=>s(e,t)),e);a.current.set(t,o);n.getState().nextTree?n.getState().queuedComponentCallbacks_DEPRECATED.push((()=>{s(n.getState(),t)})):s(n.getState(),t)})),_e(r.current,o.current).forEach((e=>{i(e)})),r.current=o.current})),Lo((()=>{const n=a.current;return _e(o.current,new Set(n.keys())).forEach((o=>{const r=No(t.current,new Ro(o),(e=>s(e,o)),e);n.set(o,r)})),()=>n.forEach(((e,t)=>i(t)))}),[e,t,i,s]),Vo((()=>{function e(e){return n=>{Ao(t.current,e,n)}}function n(e){var n;o.current.has(e.key)||(o.current=Uo(o.current,e.key));const r=t.current.getState();return wo(t.current,e,_o().early&&null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree)}function r(e){return Io(n(e),e,t)}return{getRecoilValue:r,getRecoilValueLoadable:n,getRecoilState:function(t){return[r(t),e(t)]},getRecoilStateLoadable:function(t){return[n(t),e(t)]},getSetRecoilState:e,getResetRecoilState:function(e){return()=>Ao(t.current,e,vo)}}}),[o,t])},useRecoilState:function(e){return[Fo(e),Wo(e)]},useRecoilStateLoadable:function(e){return[zo(e),Wo(e)]},useRecoilValue:Fo,useRecoilValueLoadable:zo,useResetRecoilState:function(e){const t=bo();return ko((()=>{Ao(t.current,e,vo)}),[t,e])},useSetRecoilState:Wo,useSetUnvalidatedAtomValues:function(){const e=bo();return(t,n={})=>{po((()=>{e.current.addTransactionMetadata(n),t.forEach(((t,n)=>Eo(e.current,new Ro(n),t)))}))}},useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Go,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:$o,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:function(e){return[$o(e),Wo(e)]}};var Ho=function(e,t){const n=new Map;for(const[o,r]of e)t(r,o)&&n.set(o,r);return n};var jo=function(e,t){const n=new Set;for(const o of e)t(o)&&n.add(o);return n};var qo=function(...e){const t=new Map;for(let n=0;n<e.length;n++){const o=e[n].keys();let r;for(;!(r=o.next()).done;)t.set(r.value,e[n].get(r.value))}return t};const{batchUpdates:Zo}=It,{DEFAULT_VALUE:Yo,getNode:Jo,nodes:Xo}=se,{useStoreRef:Qo}=Qn,{AbstractRecoilValue:er,setRecoilValueLoadable:tr}=vt,{SUSPENSE_TIMEOUT_MS:nr}=Nt,{cloneSnapshot:or}=yn,{useCallback:rr,useEffect:ar,useRef:ir,useState:sr}=o,{isSSR:ur}=Pt;function cr(e){const t=Qo();ar((()=>t.current.subscribeToTransactions(e).release),[e,t])}function lr(e){const t=e.atomValues.toMap(),n=me(Ho(t,((e,t)=>{const n=Jo(t).persistence_UNSTABLE;return null!=n&&"none"!==n.type&&"hasValue"===e.state})),(e=>e.contents));return qo(e.nonvalidatedAtoms.toMap(),n)}function dr(e,t){var n;const o=e.getState(),r=null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree,a=t.getStore_INTERNAL().getState().currentTree;Zo((()=>{const n=new Set;for(const e of[r.atomValues.keys(),a.atomValues.keys()])for(const t of e){var o,i;(null===(o=r.atomValues.get(t))||void 0===o?void 0:o.contents)!==(null===(i=a.atomValues.get(t))||void 0===i?void 0:i.contents)&&Jo(t).shouldRestoreFromSnapshots&&n.add(t)}n.forEach((t=>{tr(e,new er(t),a.atomValues.has(t)?s(a.atomValues.get(t)):Yo)})),e.replaceState((e=>({...e,stateID:t.getID()})))}))}var fr={useRecoilSnapshot:function(){const e=Qo(),[t,n]=sr((()=>or(e.current))),o=oo(t),r=ir(),a=ir();if(cr(rr((e=>n(or(e))),[])),ar((()=>{const e=t.retain();var n;r.current&&!ur&&(window.clearTimeout(r.current),r.current=null,null===(n=a.current)||void 0===n||n.call(a),a.current=null);return()=>{window.setTimeout(e,10)}}),[t]),o!==t&&!ur){var i;if(r.current)window.clearTimeout(r.current),r.current=null,null===(i=a.current)||void 0===i||i.call(a),a.current=null;a.current=t.retain(),r.current=window.setTimeout((()=>{var e;r.current=null,null===(e=a.current)||void 0===e||e.call(a),a.current=null}),nr)}return t},gotoSnapshot:dr,useGotoRecoilSnapshot:function(){const e=Qo();return rr((t=>dr(e.current,t)),[e])},useRecoilTransactionObserver:function(e){cr(rr((t=>{const n=or(t,"latest"),o=or(t,"previous");e({snapshot:n,previousSnapshot:o})}),[e]))},useTransactionObservation_DEPRECATED:function(e){cr(rr((t=>{let n=t.getState().previousTree;const o=t.getState().currentTree;n||(B("Transaction subscribers notified without a previous tree being present -- this is a bug in Recoil"),n=t.getState().currentTree);const r=lr(o),a=lr(n),i=me(Xo,(e=>{var t,n,o,r;return{persistence_UNSTABLE:{type:null!==(t=null===(n=e.persistence_UNSTABLE)||void 0===n?void 0:n.type)&&void 0!==t?t:"none",backButton:null!==(o=null===(r=e.persistence_UNSTABLE)||void 0===r?void 0:r.backButton)&&void 0!==o&&o}}})),s=jo(o.dirtyAtoms,(e=>r.has(e)||a.has(e)));e({atomValues:r,previousAtomValues:a,atomInfo:i,modifiedAtoms:s,transactionMetadata:{...o.transactionMetadata}})}),[e]))},useTransactionSubscription_DEPRECATED:cr};const{peekNodeInfo:hr}=Ke,{useStoreRef:pr}=Qn;var vr=function(){const e=pr();return({key:t})=>hr(e.current,e.current.getState().currentTree,t)};const{reactMode:yr}=F,{RecoilRoot:_r,useStoreRef:mr}=Qn,{useMemo:Sr}=o;var gr=function(){"MUTABLE_SOURCE"===yr().mode&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.");const e=mr().current;return Sr((()=>function({children:t}){return o.createElement(_r,{store_INTERNAL:e},t)}),[e])};const{loadableWithValue:br}=k,{initializeNode:Tr}=Ke,{DEFAULT_VALUE:Rr,getNode:wr}=se,{copyTreeState:Ar,getRecoilValueAsLoadable:Er,invalidateDownstreams:Nr,writeLoadableToTreeState:kr}=vt;function Lr(e){return"atom"===wr(e.key).nodeType}class Vr{constructor(e,t){u(this,"_store",void 0),u(this,"_treeState",void 0),u(this,"_changes",void 0),u(this,"get",(e=>{if(this._changes.has(e.key))return this._changes.get(e.key);if(!Lr(e))throw a("Reading selectors within atomicUpdate is not supported");const t=Er(this._store,e,this._treeState);if("hasValue"===t.state)return t.contents;throw"hasError"===t.state?t.contents:a(`Expected Recoil atom ${e.key} to have a value, but it is in a loading state.`)})),u(this,"set",((e,t)=>{if(!Lr(e))throw a("Setting selectors within atomicUpdate is not supported");if("function"===typeof t){const n=this.get(e);this._changes.set(e.key,t(n))}else Tr(this._store,e.key,"set"),this._changes.set(e.key,t)})),u(this,"reset",(e=>{this.set(e,Rr)})),this._store=e,this._treeState=t,this._changes=new Map}newTreeState_INTERNAL(){if(0===this._changes.size)return this._treeState;const e=Ar(this._treeState);for(const[t,n]of this._changes)kr(e,t,br(n));return Nr(this._store,e),e}}var Cr=function(e){return t=>{e.replaceState((n=>{const o=new Vr(e,n);return t(o),o.newTreeState_INTERNAL()}))}},Mr=Cr,Ur=Object.freeze({__proto__:null,atomicUpdater:Mr});var Dr=function(e,t){if(!e)throw new Error(t)};const{atomicUpdater:Ir}=Ur,{batchUpdates:Br}=It,{DEFAULT_VALUE:Or}=se,{useStoreRef:xr}=Qn,{refreshRecoilValue:Pr,setRecoilValue:zr}=vt,{cloneSnapshot:Fr}=yn,{gotoSnapshot:Wr}=fr,{useCallback:Gr}=o;class $r{}const Kr=new $r;function Hr(e,t,n,o){let r,s=Kr;var u;(Br((()=>{const i="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if("function"!==typeof t)throw a(i);const u=De({...null!==o&&void 0!==o?o:{},set:(t,n)=>zr(e,t,n),reset:t=>zr(e,t,Or),refresh:t=>Pr(e,t),gotoSnapshot:t=>Wr(e,t),transact_UNSTABLE:t=>Ir(e)(t)},{snapshot:()=>{const t=Fr(e);return r=t.retain(),t}}),c=t(u);if("function"!==typeof c)throw a(i);s=c(...n)})),s instanceof $r&&Dr(!1),i(s))?s=s.finally((()=>{var e;null===(e=r)||void 0===e||e()})):null===(u=r)||void 0===u||u();return s}var jr={recoilCallback:Hr,useRecoilCallback:function(e,t){const n=xr();return Gr(((...t)=>Hr(n.current,e,t)),null!=t?[...t,n]:void 0)}};const{useStoreRef:qr}=Qn,{refreshRecoilValue:Zr}=vt,{useCallback:Yr}=o;var Jr=function(e){const t=qr();return Yr((()=>{const n=t.current;Zr(n,e)}),[e,t])};const{atomicUpdater:Xr}=Ur,{useStoreRef:Qr}=Qn,{useMemo:ea}=o;var ta=function(e,t){const n=Qr();return ea((()=>(...t)=>{Xr(n.current)((n=>{e(n)(...t)}))}),null!=t?[...t,n]:void 0)};var na=class{constructor(e){u(this,"value",void 0),this.value=e}},oa=Object.freeze({__proto__:null,WrappedValue:na});const{isFastRefreshEnabled:ra}=F;class aa extends Error{}var ia=class{constructor(e){var t,n,o;u(this,"_name",void 0),u(this,"_numLeafs",void 0),u(this,"_root",void 0),u(this,"_onHit",void 0),u(this,"_onSet",void 0),u(this,"_mapNodeValue",void 0),this._name=null===e||void 0===e?void 0:e.name,this._numLeafs=0,this._root=null,this._onHit=null!==(t=null===e||void 0===e?void 0:e.onHit)&&void 0!==t?t:()=>{},this._onSet=null!==(n=null===e||void 0===e?void 0:e.onSet)&&void 0!==n?n:()=>{},this._mapNodeValue=null!==(o=null===e||void 0===e?void 0:e.mapNodeValue)&&void 0!==o?o:e=>e}size(){return this._numLeafs}root(){return this._root}get(e,t){var n;return null===(n=this.getLeafNode(e,t))||void 0===n?void 0:n.value}getLeafNode(e,t){if(null==this._root)return;let n=this._root;for(;n;){if(null===t||void 0===t||t.onNodeVisit(n),"leaf"===n.type)return this._onHit(n),n;const o=this._mapNodeValue(e(n.nodeKey));n=n.branches.get(o)}}set(e,t,n){const o=()=>{var o,r,a,i;let s,u;for(const[t,p]of e){var c,l,d;const e=this._root;if("leaf"===(null===e||void 0===e?void 0:e.type))throw this.invalidCacheError();const o=s;if(s=o?o.branches.get(u):e,s=null!==(c=s)&&void 0!==c?c:{type:"branch",nodeKey:t,parent:o,branches:new Map,branchKey:u},"branch"!==s.type||s.nodeKey!==t)throw this.invalidCacheError();null===o||void 0===o||o.branches.set(u,s),null===n||void 0===n||null===(l=n.onNodeVisit)||void 0===l||l.call(n,s),u=this._mapNodeValue(p),this._root=null!==(d=this._root)&&void 0!==d?d:s}const f=s?null===(o=s)||void 0===o?void 0:o.branches.get(u):this._root;if(null!=f&&("leaf"!==f.type||f.branchKey!==u))throw this.invalidCacheError();const h={type:"leaf",value:t,parent:s,branchKey:u};null===(r=s)||void 0===r||r.branches.set(u,h),this._root=null!==(a=this._root)&&void 0!==a?a:h,this._numLeafs++,this._onSet(h),null===n||void 0===n||null===(i=n.onNodeVisit)||void 0===i||i.call(n,h)};try{o()}catch(r){if(!(r instanceof aa))throw r;this.clear(),o()}}delete(e){const t=this.root();if(!t)return!1;if(e===t)return this._root=null,this._numLeafs=0,!0;let n=e.parent,o=e.branchKey;for(;n;){var r;if(n.branches.delete(o),n===t)return 0===n.branches.size?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(n.branches.size>0)break;o=null===(r=n)||void 0===r?void 0:r.branchKey,n=n.parent}for(;n!==t;n=n.parent)if(null==n)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const e=ra()?"Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.";throw B(e+(null!=this._name?` - ${this._name}`:"")),new aa}},sa=Object.freeze({__proto__:null,TreeCache:ia});var ua=class{constructor(e){var t;u(this,"_maxSize",void 0),u(this,"_size",void 0),u(this,"_head",void 0),u(this,"_tail",void 0),u(this,"_map",void 0),u(this,"_keyMapper",void 0),this._maxSize=e.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=null!==(t=e.mapKey)&&void 0!==t?t:e=>e}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(e){return this._map.has(this._keyMapper(e))}get(e){const t=this._keyMapper(e),n=this._map.get(t);if(n)return this.set(e,n.value),n.value}set(e,t){const n=this._keyMapper(e);this._map.get(n)&&this.delete(e);const o=this.head(),r={key:e,right:o,left:null,value:t};o?o.left=r:this._tail=r,this._map.set(n,r),this._head=r,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const e=this.tail();e&&this.delete(e.key)}delete(e){const t=this._keyMapper(e);if(!this._size||!this._map.has(t))return;const n=s(this._map.get(t)),o=n.right,r=n.left;o&&(o.left=n.left),r&&(r.right=n.right),n===this.head()&&(this._head=o),n===this.tail()&&(this._tail=r),this._map.delete(t),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}},ca=Object.freeze({__proto__:null,LRUCache:ua});const{LRUCache:la}=ca,{TreeCache:da}=sa;var fa=function({name:e,maxSize:t,mapNodeValue:n=(e=>e)}){const o=new la({maxSize:t}),r=new da({name:e,mapNodeValue:n,onHit:e=>{o.set(e,!0)},onSet:e=>{const n=o.tail();o.set(e,!0),n&&r.size()>t&&r.delete(n.key)}});return r};function ha(e,t,n){if("string"===typeof e&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if(!0!==(null===t||void 0===t?void 0:t.allowFunctions))throw a("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(null===e)return"null";var o;if("object"!==typeof e)return null!==(o=JSON.stringify(e))&&void 0!==o?o:"";if(i(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map(((e,n)=>ha(e,t,n.toString())))}]`;if("function"===typeof e.toJSON)return ha(e.toJSON(n),t,n);if(e instanceof Map){const o={};for(const[n,r]of e)o["string"===typeof n?n:ha(n,t)]=r;return ha(o,t,n)}return e instanceof Set?ha(Array.from(e).sort(((e,n)=>ha(e,t).localeCompare(ha(n,t)))),t,n):void 0!==Symbol&&null!=e[Symbol.iterator]&&"function"===typeof e[Symbol.iterator]?ha(Array.from(e),t,n):`{${Object.keys(e).filter((t=>void 0!==e[t])).sort().map((n=>`${ha(n,t)}:${ha(e[n],t,n)}`)).join(",")}}`}var pa=function(e,t={allowFunctions:!1}){return ha(e,t)};const{TreeCache:va}=sa,ya={equality:"reference",eviction:"keep-all",maxSize:1/0};var _a=function({equality:e=ya.equality,eviction:t=ya.eviction,maxSize:n=ya.maxSize}=ya,o){const r=function(e){switch(e){case"reference":return e=>e;case"value":return e=>pa(e)}throw a(`Unrecognized equality policy ${e}`)}(e);return function(e,t,n,o){switch(e){case"keep-all":return new va({name:o,mapNodeValue:n});case"lru":return fa({name:o,maxSize:s(t),mapNodeValue:n});case"most-recent":return fa({name:o,maxSize:1,mapNodeValue:n})}throw a(`Unrecognized eviction policy ${e}`)}(t,n,r,o)};const{isReactNative:ma,isWindow:Sa}=Pt;var ga={startPerfBlock:function(e){return()=>null}};const{isLoadable:ba,loadableWithError:Ta,loadableWithPromise:Ra,loadableWithValue:wa}=k,{WrappedValue:Aa}=oa,{getNodeLoadable:Ea,peekNodeLoadable:Na,setNodeValue:ka}=Ke,{saveDepsToStore:La}=ge,{DEFAULT_VALUE:Va,getConfigDeletionHandler:Ca,getNode:Ma,registerNode:Ua}=se,{isRecoilValue:Da}=Y,{markRecoilValueModified:Ia}=vt,{retainedByOptionWithDefault:Ba}=Nt,{recoilCallback:Oa}=jr,{startPerfBlock:xa}=ga;class Pa{}const za=new Pa,Fa=[],Wa=new Map,Ga=(()=>{let e=0;return()=>e++})();function $a(e){let t=null;const{key:n,get:o,cachePolicy_UNSTABLE:r}=e,u=null!=e.set?e.set:void 0;const c=new Set,l=_a(null!==r&&void 0!==r?r:{equality:"reference",eviction:"keep-all"},n),d=Ba(e.retainedBy_UNSTABLE),f=new Map;let h=0;function p(){return!M("recoil_memory_managament_2020")||h>0}function v(e){return e.getState().knownSelectors.add(n),h++,()=>{h--}}function y(){return void 0!==Ca(n)&&!p()}function _(e,t,n,o,r){V(t,o,r),m(e,n)}function m(e,t){L(e,t)&&k(e),S(t,!0)}function S(e,n){const o=Wa.get(e);if(null!=o){for(const e of o)Ia(e,s(t));n&&Wa.delete(e)}}function g(e,t){let n=Wa.get(t);null==n&&Wa.set(t,n=new Set),n.add(e)}function b(e,t,n,o,r,a){return t.then((o=>{if(!p())throw k(e),za;null!=a.loadingDepKey&&a.loadingDepPromise===t?n.atomValues.set(a.loadingDepKey,wa(o)):e.getState().knownSelectors.forEach((e=>{n.atomValues.delete(e)}));const i=w(e,n);if(i&&"loading"!==i.state){if((L(e,r)||null==N(e))&&m(e,r),"hasValue"===i.state)return i.contents;throw i.contents}if(!L(e,r)){const t=E(e,n);if(null!=t)return t.loadingLoadable.contents}const[s,u]=R(e,n,r);if("loading"!==s.state&&_(e,n,r,s,u),"hasError"===s.state)throw s.contents;return s.contents})).catch((t=>{if(t instanceof Pa)throw za;if(!p())throw k(e),za;const a=Ta(t);throw _(e,n,r,a,o),t}))}function T(e,t,o,r){var a,i,s,u,l,d,f;(L(e,r)||t.version===(null===(a=e.getState())||void 0===a||null===(i=a.currentTree)||void 0===i?void 0:i.version)||t.version===(null===(s=e.getState())||void 0===s||null===(u=s.nextTree)||void 0===u?void 0:u.version))&&La(n,o,e,null!==(l=null===(d=e.getState())||void 0===d||null===(f=d.nextTree)||void 0===f?void 0:f.version)&&void 0!==l?l:e.getState().currentTree.version);for(const n of o)c.add(n)}function R(e,r,u){const c=xa(n);let l=!0,d=!0;const f=()=>{c(),d=!1};let h,v,y=!1;const m={loadingDepKey:null,loadingDepPromise:null},g=new Map;function R({key:t}){const n=Ea(e,r,t);switch(g.set(t,n),l||(T(e,r,new Set(g.keys()),u),function(e,t){L(e,t)&&(s(N(e)).stateVersions.clear(),S(t,!1))}(e,u)),n.state){case"hasValue":return n.contents;case"hasError":throw n.contents;case"loading":throw m.loadingDepKey=t,m.loadingDepPromise=n.contents,n.contents}throw a("Invalid Loadable state")}const w=n=>(...o)=>{if(d)throw a("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return null==t&&Dr(!1),Oa(e,n,o,{node:t})};try{h=o({get:R,getCallback:w}),h=Da(h)?R(h):h,ba(h)&&("hasError"===h.state&&(y=!0),h=h.contents),i(h)?h=function(e,t,n,o,r,a){return t.then((t=>{if(!p())throw k(e),za;const a=wa(t);return _(e,n,r,a,o),t})).catch((t=>{if(!p())throw k(e),za;if(i(t))return b(e,t,n,o,r,a);const s=Ta(t);throw _(e,n,r,s,o),t}))}(e,h,r,g,u,m).finally(f):f(),h=h instanceof Aa?h.value:h}catch(A){h=A,i(h)?h=b(e,h,r,g,u,m).finally(f):(y=!0,f())}return v=y?Ta(h):i(h)?Ra(h):wa(h),l=!1,function(e,t,n){if(L(e,t)){const t=N(e);null!=t&&(t.depValuesDiscoveredSoFarDuringAsyncWork=n)}}(e,u,g),T(e,r,new Set(g.keys()),u),[v,g]}function w(e,t){let o=t.atomValues.get(n);if(null!=o)return o;const r=new Set;try{o=l.get((n=>("string"!==typeof n&&Dr(!1),Ea(e,t,n).contents)),{onNodeVisit:e=>{"branch"===e.type&&e.nodeKey!==n&&r.add(e.nodeKey)}})}catch(s){throw a(`Problem with cache lookup for selector "${n}": ${s.message}`)}var i;o&&(t.atomValues.set(n,o),T(e,t,r,null===(i=N(e))||void 0===i?void 0:i.executionID));return o}function A(e,t){const n=w(e,t);if(null!=n)return k(e),n;const o=E(e,t);var r;if(null!=o)return"loading"===(null===(r=o.loadingLoadable)||void 0===r?void 0:r.state)&&g(e,o.executionID),o.loadingLoadable;const a=Ga(),[i,s]=R(e,t,a);return"loading"===i.state?(!function(e,t,n,o,r){f.set(e,{depValuesDiscoveredSoFarDuringAsyncWork:o,executionID:t,loadingLoadable:n,stateVersions:new Map([[r.version,!0]])})}(e,a,i,s,t),g(e,a)):(k(e),V(t,i,s)),i}function E(e,t){const n=Bt([f.has(e)?[s(f.get(e))]:[],X(Ue(f,(([t])=>t!==e)),(([,e])=>e))]);function o(n){for(const[o,r]of n)if(!Ea(e,t,o).is(r))return!0;return!1}for(const r of n){if(r.stateVersions.get(t.version)||!o(r.depValuesDiscoveredSoFarDuringAsyncWork))return r.stateVersions.set(t.version,!0),r;r.stateVersions.set(t.version,!1)}}function N(e){return f.get(e)}function k(e){f.delete(e)}function L(e,t){var n;return t===(null===(n=N(e))||void 0===n?void 0:n.executionID)}function V(e,t,o){e.atomValues.set(n,t);try{l.set(function(e){return Array.from(e.entries()).map((([e,t])=>[e,t.contents]))}(o),t)}catch(r){throw a(`Problem with setting cache for selector "${n}": ${r.message}`)}}function C(e,t){const o=t.atomValues.get(n);return null!=o?o:l.get((n=>{var o;return"string"!==typeof n&&Dr(!1),null===(o=Na(e,t,n))||void 0===o?void 0:o.contents}))}function U(e,t){return function(e){if(Fa.includes(n)){const e=`Recoil selector has circular dependencies: ${Fa.slice(Fa.indexOf(n)).join(" \u2192 ")}`;return Ta(a(e))}Fa.push(n);try{return e()}finally{Fa.pop()}}((()=>A(e,t)))}function D(e){e.atomValues.delete(n)}function I(e,n){null==t&&Dr(!1);for(const t of c){var o;const r=Ma(t);null===(o=r.clearCache)||void 0===o||o.call(r,e,n)}c.clear(),D(n),l.clear(),Ia(e,t)}if(null!=u){return t=Ua({key:n,nodeType:"selector",peek:C,get:U,set:(e,t,o)=>{let r=!1;const s=new Map;function c({key:o}){if(r)throw a("Recoil: Async selector sets are not currently supported.");const i=Ea(e,t,o);if("hasValue"===i.state)return i.contents;if("loading"===i.state){const e=`Getting value of asynchronous atom or selector "${o}" in a pending state while setting selector "${n}" is not yet supported.`;throw B(e),a(e)}throw i.contents}function l(n,o){if(r){const e="Recoil: Async selector sets are not currently supported.";throw B(e),a(e)}const i="function"===typeof o?o(c(n)):o;ka(e,t,n.key,i).forEach(((e,t)=>s.set(t,e)))}const d=u({set:l,get:c,reset:function(e){l(e,Va)}},o);if(void 0!==d)throw i(d)?a("Recoil: Async selector sets are not currently supported."):a("Recoil: selector set should be a void function.");return r=!0,s},init:v,invalidate:D,clearCache:I,shouldDeleteConfigOnRelease:y,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:d})}return t=Ua({key:n,nodeType:"selector",peek:C,get:U,init:v,invalidate:D,clearCache:I,shouldDeleteConfigOnRelease:y,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:d})}$a.value=e=>new Aa(e);var Ka=$a;const{isLoadable:Ha,loadableWithError:ja,loadableWithPromise:qa,loadableWithValue:Za}=k,{WrappedValue:Ya}=oa,{peekNodeInfo:Ja}=Ke,{DEFAULT_VALUE:Xa,DefaultValue:Qa,getConfigDeletionHandler:ei,registerNode:ti,setConfigDeletionHandler:ni}=se,{isRecoilValue:oi}=Y,{getRecoilValueAsLoadable:ri,markRecoilValueModified:ai,setRecoilValue:ii,setRecoilValueLoadable:si}=vt,{retainedByOptionWithDefault:ui}=Nt,ci=e=>e instanceof Ya?e.value:e;function li(e){const{key:t,persistence_UNSTABLE:n}=e,o=ui(e.retainedBy_UNSTABLE);let r=0;function u(e){return qa(e.then((e=>(l=Za(e),e))).catch((e=>{throw l=ja(e),e})))}let c,l=i(e.default)?u(e.default):Ha(e.default)?"loading"===e.default.state?u(e.default.contents):e.default:Za(ci(e.default));f(l.contents);const d=new Map;function f(e){return e}function h(e,n){var o,r;return null!==(o=null!==(r=n.atomValues.get(t))&&void 0!==r?r:c)&&void 0!==o?o:l}const p=ti({key:t,nodeType:"atom",peek:h,get:function(e,o){if(o.atomValues.has(t))return s(o.atomValues.get(t));if(o.nonvalidatedAtoms.has(t)){if(null!=c)return c;if(null==n)return J(`Tried to restore a persisted value for atom ${t} but it has no persistence settings.`),l;const e=o.nonvalidatedAtoms.get(t),r=n.validator(e,Xa),a=r instanceof Qa?l:Za(r);return c=a,c}return l},set:function(e,n,o){if(n.atomValues.has(t)){const e=s(n.atomValues.get(t));if("hasValue"===e.state&&o===e.contents)return new Map}else if(!n.nonvalidatedAtoms.has(t)&&o instanceof Qa)return new Map;return c=void 0,(new Map).set(t,Za(o))},init:function(n,o,s){var u;if(r++,n.getState().knownAtoms.add(t),"loading"===l.state){const g=()=>{var e;(null!==(e=n.getState().nextTree)&&void 0!==e?e:n.getState().currentTree).atomValues.has(t)||ai(n,p)};l.contents.finally(g)}const c=null!==(u=e.effects)&&void 0!==u?u:e.effects_UNSTABLE;if(null!=c){let b=Xa,T=!0,R=!1,w=null;function f(e){if(T&&e.key===t){const e=b;return e instanceof Qa?h(n,o):i(e)?qa(e.then((e=>e instanceof Qa?l.toPromise():e))):Za(e)}return ri(n,e)}function v(e){return f(e).toPromise()}function y(e){var o;const r=Ja(n,null!==(o=n.getState().nextTree)&&void 0!==o?o:n.getState().currentTree,e.key);return!T||e.key!==t||b instanceof Qa?r:{...r,isSet:!0,loadable:f(e)}}const A=e=>t=>{if(T){const n=f(p),o="hasValue"===n.state?n.contents:Xa;b="function"===typeof t?t(o):t,i(b)&&(b=b.then((t=>(w={effect:e,value:t},t))))}else{if(i(t))throw a("Setting atoms to async values is not implemented.");"function"!==typeof t&&(w={effect:e,value:ci(t)}),ii(n,p,"function"===typeof t?n=>{const o=ci(t(n));return w={effect:e,value:o},o}:ci(t))}},E=e=>()=>A(e)(Xa),N=e=>o=>{var r;const{release:a}=n.subscribeToTransactions((n=>{var r;let{currentTree:a,previousTree:i}=n.getState();i||(B("Transaction subscribers notified without a next tree being present -- this is a bug in Recoil"),i=a);const s=null!==(r=a.atomValues.get(t))&&void 0!==r?r:l;if("hasValue"===s.state){var u,c,d,f;const n=s.contents,r=null!==(u=i.atomValues.get(t))&&void 0!==u?u:l,h="hasValue"===r.state?r.contents:Xa;(null===(c=w)||void 0===c?void 0:c.effect)!==e||(null===(d=w)||void 0===d?void 0:d.value)!==n?o(n,h,!a.atomValues.has(t)):(null===(f=w)||void 0===f?void 0:f.effect)===e&&(w=null)}}),t);d.set(n,[...null!==(r=d.get(n))&&void 0!==r?r:[],a])};for(const k of c)try{const L=k({node:p,storeID:n.storeID,parentStoreID_UNSTABLE:n.parentStoreID,trigger:s,setSelf:A(k),resetSelf:E(k),onSet:N(k),getPromise:v,getLoadable:f,getInfo_UNSTABLE:y});var _;if(null!=L)d.set(n,[...null!==(_=d.get(n))&&void 0!==_?_:[],L])}catch(S){b=S,R=!0}if(T=!1,!(b instanceof Qa)){var m;const V=R?ja(b):i(b)?qa(function(e,n){const o=n.then((n=>{var r,a;return(null===(a=(null!==(r=e.getState().nextTree)&&void 0!==r?r:e.getState().currentTree).atomValues.get(t))||void 0===a?void 0:a.contents)===o&&ii(e,p,n),n})).catch((n=>{var r,a;throw(null===(a=(null!==(r=e.getState().nextTree)&&void 0!==r?r:e.getState().currentTree).atomValues.get(t))||void 0===a?void 0:a.contents)===o&&si(e,p,ja(n)),n}));return o}(n,b)):Za(ci(b));V.contents,o.atomValues.set(t,V),null===(m=n.getState().nextTree)||void 0===m||m.atomValues.set(t,V)}}return()=>{var e;r--,null===(e=d.get(n))||void 0===e||e.forEach((e=>e())),d.delete(n)}},invalidate:function(){c=void 0},shouldDeleteConfigOnRelease:function(){return void 0!==ei(t)&&r<=0},dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:o});return p}function di(e){const{...t}=e,n="default"in e?e.default:new Promise((()=>{}));return oi(n)?function(e){const t=di({...e,default:Xa,persistence_UNSTABLE:void 0===e.persistence_UNSTABLE?void 0:{...e.persistence_UNSTABLE,validator:t=>t instanceof Qa?t:s(e.persistence_UNSTABLE).validator(t,Xa)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=Ka({key:`${e.key}__withFallback`,get:({get:n})=>{const o=n(t);return o instanceof Qa?e.default:o},set:({set:e},n)=>e(t,n),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return ni(n.key,ei(e.key)),n}({...t,default:n}):li({...t,default:n})}di.value=e=>new Ya(e);var fi=di;var hi=class{constructor(e){var t;u(this,"_map",void 0),u(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=null!==(t=null===e||void 0===e?void 0:e.mapKey)&&void 0!==t?t:e=>e}size(){return this._map.size}has(e){return this._map.has(this._keyMapper(e))}get(e){return this._map.get(this._keyMapper(e))}set(e,t){this._map.set(this._keyMapper(e),t)}delete(e){this._map.delete(this._keyMapper(e))}clear(){this._map.clear()}},pi=Object.freeze({__proto__:null,MapCache:hi});const{LRUCache:vi}=ca,{MapCache:yi}=pi,_i={equality:"reference",eviction:"none",maxSize:1/0};var mi=function({equality:e=_i.equality,eviction:t=_i.eviction,maxSize:n=_i.maxSize}=_i){const o=function(e){switch(e){case"reference":return e=>e;case"value":return e=>pa(e)}throw a(`Unrecognized equality policy ${e}`)}(e);return function(e,t,n){switch(e){case"keep-all":return new yi({mapKey:n});case"lru":return new vi({mapKey:n,maxSize:s(t)});case"most-recent":return new vi({mapKey:n,maxSize:1})}throw a(`Unrecognized eviction policy ${e}`)}(t,n,o)};const{setConfigDeletionHandler:Si}=se;var gi=function(e){var t,n;const o=mi({equality:null!==(t=null===(n=e.cachePolicyForParams_UNSTABLE)||void 0===n?void 0:n.equality)&&void 0!==t?t:"value",eviction:"keep-all"});return t=>{var n,r;const a=o.get(t);if(null!=a)return a;const{cachePolicyForParams_UNSTABLE:i,...s}=e,u="default"in e?e.default:new Promise((()=>{})),c=fi({...s,key:`${e.key}__${null!==(n=pa(t))&&void 0!==n?n:"void"}`,default:"function"===typeof u?u(t):u,retainedBy_UNSTABLE:"function"===typeof e.retainedBy_UNSTABLE?e.retainedBy_UNSTABLE(t):e.retainedBy_UNSTABLE,effects:"function"===typeof e.effects?e.effects(t):"function"===typeof e.effects_UNSTABLE?e.effects_UNSTABLE(t):null!==(r=e.effects)&&void 0!==r?r:e.effects_UNSTABLE});return o.set(t,c),Si(c.key,(()=>{o.delete(t)})),c}};const{setConfigDeletionHandler:bi}=se;let Ti=0;var Ri=function(e){var t,n;const o=mi({equality:null!==(t=null===(n=e.cachePolicyForParams_UNSTABLE)||void 0===n?void 0:n.equality)&&void 0!==t?t:"value",eviction:"keep-all"});return t=>{var n;let r;try{r=o.get(t)}catch(d){throw a(`Problem with cache lookup for selector ${e.key}: ${d.message}`)}if(null!=r)return r;const i=`${e.key}__selectorFamily/${null!==(n=pa(t,{allowFunctions:!0}))&&void 0!==n?n:"void"}/${Ti++}`,s=n=>e.get(t)(n),u=e.cachePolicy_UNSTABLE,c="function"===typeof e.retainedBy_UNSTABLE?e.retainedBy_UNSTABLE(t):e.retainedBy_UNSTABLE;let l;if(null!=e.set){const n=e.set;l=Ka({key:i,get:s,set:(e,o)=>n(t)(e,o),cachePolicy_UNSTABLE:u,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:c})}else l=Ka({key:i,get:s,cachePolicy_UNSTABLE:u,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:c});return o.set(t,l),bi(l.key,(()=>{o.delete(t)})),l}};const wi=Ri({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});var Ai=function(e){return wi(e)};const Ei=Ri({key:"__error",get:e=>()=>{throw a(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});var Ni=function(e){return Ei(e)};var ki=function(e){return e};const{loadableWithError:Li,loadableWithPromise:Vi,loadableWithValue:Ci}=k;function Mi(e,t){const n=Array(t.length).fill(void 0),o=Array(t.length).fill(void 0);for(const[a,i]of t.entries())try{n[a]=e(i)}catch(r){o[a]=r}return[n,o]}function Ui(e){return null!=e&&!i(e)}function Di(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map((t=>e[t]))}function Ii(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce(((e,n,o)=>({...e,[n]:t[o]})),{})}function Bi(e,t,n){return Ii(e,n.map(((e,n)=>null==e?Ci(t[n]):i(e)?Vi(e):Li(e))))}var Oi={waitForNone:Ri({key:"__waitForNone",get:e=>({get:t})=>{const n=Di(e),[o,r]=Mi(t,n);return Bi(e,o,r)},dangerouslyAllowMutability:!0}),waitForAny:Ri({key:"__waitForAny",get:e=>({get:t})=>{const n=Di(e),[o,r]=Mi(t,n);return r.some((e=>!i(e)))?Bi(e,o,r):new Promise((t=>{for(const[n,a]of r.entries())i(a)&&a.then((a=>{o[n]=a,r[n]=void 0,t(Bi(e,o,r))})).catch((a=>{r[n]=a,t(Bi(e,o,r))}))}))},dangerouslyAllowMutability:!0}),waitForAll:Ri({key:"__waitForAll",get:e=>({get:t})=>{const n=Di(e),[o,r]=Mi(t,n);if(r.every((e=>null==e)))return Ii(e,o);const a=r.find(Ui);if(null!=a)throw a;return Promise.all(r).then((t=>{return Ii(e,(n=o,t.map(((e,t)=>void 0===e?n[t]:e))));var n}))},dangerouslyAllowMutability:!0}),waitForAllSettled:Ri({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=Di(e),[o,r]=Mi(t,n);return r.every((e=>!i(e)))?Bi(e,o,r):Promise.all(r.map(((e,t)=>i(e)?e.then((e=>{o[t]=e,r[t]=void 0})).catch((e=>{o[t]=void 0,r[t]=e})):null))).then((()=>Bi(e,o,r)))},dangerouslyAllowMutability:!0}),noWait:Ri({key:"__noWait",get:e=>({get:t})=>{try{return Ka.value(Ci(t(e)))}catch(n){return Ka.value(i(n)?Vi(n):Li(n))}},dangerouslyAllowMutability:!0})};const{RecoilLoadable:xi}=k,{DefaultValue:Pi}=se,{RecoilRoot:zi,useRecoilStoreID:Fi}=Qn,{isRecoilValue:Wi}=Y,{retentionZone:Gi}=Ce,{freshSnapshot:$i}=yn,{useRecoilState:Ki,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Hi,useRecoilStateLoadable:ji,useRecoilValue:qi,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Zi,useRecoilValueLoadable:Yi,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Ji,useResetRecoilState:Xi,useSetRecoilState:Qi}=Ko,{useGotoRecoilSnapshot:es,useRecoilSnapshot:ts,useRecoilTransactionObserver:ns}=fr,{useRecoilCallback:os}=jr,{noWait:rs,waitForAll:as,waitForAllSettled:is,waitForAny:ss,waitForNone:us}=Oi;var cs={DefaultValue:Pi,isRecoilValue:Wi,RecoilLoadable:xi,RecoilEnv:V,RecoilRoot:zi,useRecoilStoreID:Fi,useRecoilBridgeAcrossReactRoots_UNSTABLE:gr,atom:fi,selector:Ka,atomFamily:gi,selectorFamily:Ri,constSelector:Ai,errorSelector:Ni,readOnlySelector:ki,noWait:rs,waitForNone:us,waitForAny:ss,waitForAll:as,waitForAllSettled:is,useRecoilValue:qi,useRecoilValueLoadable:Yi,useRecoilState:Ki,useRecoilStateLoadable:ji,useSetRecoilState:Qi,useResetRecoilState:Xi,useGetRecoilValueInfo_UNSTABLE:vr,useRecoilRefresher_UNSTABLE:Jr,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Ji,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Zi,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Hi,useRecoilCallback:os,useRecoilTransaction_UNSTABLE:ta,useGotoRecoilSnapshot:es,useRecoilSnapshot:ts,useRecoilTransactionObserver_UNSTABLE:ns,snapshot_UNSTABLE:$i,useRetain:fo,retentionZone:Gi},ls=cs.RecoilRoot,ds=cs.atom,fs=cs.selector,hs=cs.atomFamily,ps=cs.selectorFamily,vs=cs.useRecoilValue,ys=cs.useRecoilValueLoadable,_s=cs.useRecoilState,ms=cs.useSetRecoilState,Ss=cs.useResetRecoilState,gs=cs.useRecoilRefresher_UNSTABLE,bs=cs.useRecoilCallback}}]);
\ No newline at end of file |