;/*FB_PKG_DELIM*/ __d("KnowledgeNotesReadPermalinkGeminiRootQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="24767652509515357"}),null); __d("RecoilUsageLogFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("1744252");b=d("FalcoLoggerInternal").create("recoil_usage_log",a);e=b;g["default"]=e}),98); __d("RecoilusagelogEvent",[],(function(a,b,c,d,e,f){a=Object.freeze({RECOIL_ROOT_MOUNTED:"RECOIL_ROOT_MOUNTED"});f["default"]=a}),66); __d("recoil-shared/util/Recoil_isPromise",[],(function(a,b,c,d,e,f){"use strict";function a(a){return!!a&&typeof a.then==="function"}e.exports=a}),null); __d("recoil-shared/util/Recoil_nullthrows",["recoil-shared/util/Recoil_err"],(function(a,b,c,d,e,f){"use strict";function a(a,c){if(a!=null)return a;throw b("recoil-shared/util/Recoil_err")((a=c)!=null?a:"Got unexpected null or undefined")}e.exports=a}),null); __d("recoil-oss/adt/Recoil_Loadable",["Promise","recoil-shared/util/Recoil_err","recoil-shared/util/Recoil_isPromise","recoil-shared/util/Recoil_nullthrows"],(function(a,b,c,d,e,f){"use strict";var g,h=function(){function a(){}var c=a.prototype;c.getValue=function(){throw b("recoil-shared/util/Recoil_err")("BaseLoadable")};c.toPromise=function(){throw b("recoil-shared/util/Recoil_err")("BaseLoadable")};c.valueMaybe=function(){throw b("recoil-shared/util/Recoil_err")("BaseLoadable")};c.valueOrThrow=function(){throw b("recoil-shared/util/Recoil_err")('Loadable expected value, but in "'+this.state+'" state')};c.promiseMaybe=function(){throw b("recoil-shared/util/Recoil_err")("BaseLoadable")};c.promiseOrThrow=function(){throw b("recoil-shared/util/Recoil_err")('Loadable expected promise, but in "'+this.state+'" state')};c.errorMaybe=function(){throw b("recoil-shared/util/Recoil_err")("BaseLoadable")};c.errorOrThrow=function(){throw b("recoil-shared/util/Recoil_err")('Loadable expected error, but in "'+this.state+'" state')};c.is=function(a){return a.state===this.state&&a.contents===this.contents};c.map=function(a){throw b("recoil-shared/util/Recoil_err")("BaseLoadable")};return a}(),i=function(c){babelHelpers.inheritsLoose(a,c);function a(a){var b;b=c.call(this)||this;b.state="hasValue";b.contents=a;return b}var d=a.prototype;d.getValue=function(){return this.contents};d.toPromise=function(){return(g||(g=b("Promise"))).resolve(this.contents)};d.valueMaybe=function(){return this.contents};d.valueOrThrow=function(){return this.contents};d.promiseMaybe=function(){return void 0};d.errorMaybe=function(){return void 0};d.map=function(a){var c=this;try{var d=a(this.contents);return b("recoil-shared/util/Recoil_isPromise")(d)?n(d):q(d)?d:l(d)}catch(d){return b("recoil-shared/util/Recoil_isPromise")(d)?n(d.next(function(){return c.map(a)})):m(d)}};return a}(h),j=function(c){babelHelpers.inheritsLoose(a,c);function a(a){var b;b=c.call(this)||this;b.state="hasError";b.contents=a;return b}var d=a.prototype;d.getValue=function(){throw this.contents};d.toPromise=function(){return(g||(g=b("Promise"))).reject(this.contents)};d.valueMaybe=function(){return void 0};d.promiseMaybe=function(){return void 0};d.errorMaybe=function(){return this.contents};d.errorOrThrow=function(){return this.contents};d.map=function(a){return this};return a}(h),k=function(c){babelHelpers.inheritsLoose(a,c);function a(a){var b;b=c.call(this)||this;b.state="loading";b.contents=a;return b}var d=a.prototype;d.getValue=function(){throw this.contents};d.toPromise=function(){return this.contents};d.valueMaybe=function(){return void 0};d.promiseMaybe=function(){return this.contents};d.promiseOrThrow=function(){return this.contents};d.errorMaybe=function(){return void 0};d.map=function(a){var c=this;return n(this.contents.then(function(b){b=a(b);if(q(b)){var c=b;switch(c.state){case"hasValue":return c.contents;case"hasError":throw c.contents;case"loading":return c.contents}}return b})["catch"](function(d){if(b("recoil-shared/util/Recoil_isPromise")(d))return d.then(function(){return c.map(a).contents});throw d}))};return a}(h);function l(a){return Object.freeze(new i(a))}function m(a){return Object.freeze(new j(a))}function n(a){return Object.freeze(new k(a))}function o(){return Object.freeze(new k(new(g||(g=b("Promise")))(function(){})))}function p(a){return a.every(function(a){return a.state==="hasValue"})?l(a.map(function(a){return a.contents})):a.some(function(a){return a.state==="hasError"})?m(b("recoil-shared/util/Recoil_nullthrows")(a.find(function(a){return a.state==="hasError"}),"Invalid loadable passed to loadableAll").contents):n((g||(g=b("Promise"))).all(a.map(function(a){return a.contents})))}function a(a){var c=Array.isArray(a)?a:Object.getOwnPropertyNames(a).map(function(b){return a[b]});c=c.map(function(a){return q(a)?a:b("recoil-shared/util/Recoil_isPromise")(a)?n(a):l(a)});c=p(c);return Array.isArray(a)?c:c.map(function(b){return Object.getOwnPropertyNames(a).reduce(function(a,c,d){return babelHelpers["extends"]({},a,(a={},a[c]=b[d],a))},{})})}function q(a){return a instanceof h}c={of:function(a){return b("recoil-shared/util/Recoil_isPromise")(a)?n(a):q(a)?a:l(a)},error:function(a){return m(a)},loading:function(){return o()},all:a,isLoadable:q};e.exports={loadableWithValue:l,loadableWithError:m,loadableWithPromise:n,loadableLoading:o,loadableAll:a,isLoadable:q,RecoilLoadable:c}}),null); __d("recoil-shared/util/Recoil_RecoilEnv",["recoil-shared/util/Recoil_err"],(function(a,b,c,d,e,f){"use strict";var g={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0,RECOIL_GKS_ENABLED:new Set(["recoil_hamt_2020","recoil_suppress_rerender_in_callback","recoil_memory_managament_2020"])};function h(a,c){var d;d=(d=process.env[a])==null?void 0:(d=d.toLowerCase())==null?void 0:d.trim();if(d==null||d==="")return;var e=["true","false"];if(!e.includes(d))throw b("recoil-shared/util/Recoil_err")("process.env."+a+" value must be 'true', 'false', or empty: "+d);c(d==="true")}function i(a,b){a=(a=process.env[a])==null?void 0:a.trim();if(a==null||a==="")return;b(a.split(/\s*,\s*|\s+/))}function a(){var a;if(typeof process==="undefined")return;if(((a=process)==null?void 0:a.env)==null)return;h("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",function(a){g.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=a});i("RECOIL_GKS_ENABLED",function(a){a.forEach(function(a){g.RECOIL_GKS_ENABLED.add(a)})})}a();e.exports=g}),null); __d("recoil-shared/util/Recoil_gkx",["gkx","recoil-shared/util/Recoil_RecoilEnv"],(function(a,b,c,d,e,f){"use strict";function a(a){return b("recoil-shared/util/Recoil_RecoilEnv").RECOIL_GKS_ENABLED.has(a)}a.setPass=function(a){b("recoil-shared/util/Recoil_RecoilEnv").RECOIL_GKS_ENABLED.add(a)};a.setFail=function(a){b("recoil-shared/util/Recoil_RecoilEnv").RECOIL_GKS_ENABLED["delete"](a)};a.clear=function(){b("recoil-shared/util/Recoil_RecoilEnv").RECOIL_GKS_ENABLED.clear()};e.exports=b("gkx")}),null); __d("recoil-shared/util/Recoil_recoverableViolation",["recoverableViolation"],(function(a,b,c,d,e,f){"use strict";e.exports=b("recoverableViolation")}),null); __d("recoil-oss/core/Recoil_ReactMode",["__debug","react","recoil-shared/util/Recoil_gkx","recoil-shared/util/Recoil_recoverableViolation"],(function(a,b,c,d,e,f){"use strict";var g,h=g||b("react"),i=(f=h.useSyncExternalStore)!=null?f:h.unstable_useSyncExternalStore,j=!1;function a(){var a=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,c=a.ReactCurrentDispatcher;a=a.ReactCurrentOwner;c=(c=c==null?void 0:c.current)!=null?c:a.currentDispatcher;a=c.useSyncExternalStore!=null;i&&!a&&!j&&(j=!0,b("recoil-shared/util/Recoil_recoverableViolation")("A React renderer without React 18+ API support is being used with React 18+.","recoil"));return a}function c(){if(b("recoil-shared/util/Recoil_gkx")("4523"))return{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0};return i!=null?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:b("recoil-shared/util/Recoil_gkx")("1841868")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}}function d(){var a=b("__debug");a=a.isAcceptingUpdate;return typeof a==="function"&&a()}e.exports={useSyncExternalStore:i,currentRendererSupportsUseSyncExternalStore:a,reactMode:c,isFastRefreshEnabled:d}}),null); __d("recoil-oss/core/Recoil_RecoilValue",[],(function(a,b,c,d,e,f){"use strict";b=function(){function a(a){this.key=a}var b=a.prototype;b.toJSON=function(){return{key:this.key}};return a}();var g=function(b){babelHelpers.inheritsLoose(a,b);function a(){return b.apply(this,arguments)||this}return a}(b),h=function(b){babelHelpers.inheritsLoose(a,b);function a(){return b.apply(this,arguments)||this}return a}(b);function a(a){return a instanceof g||a instanceof h}e.exports={AbstractRecoilValue:b,RecoilState:g,RecoilValueReadOnly:h,isRecoilValue:a}}),null); __d("recoil-shared/util/Recoil_expectationViolation",["expectationViolation"],(function(a,b,c,d,e,f){"use strict";e.exports=b("expectationViolation")}),null); __d("recoil-shared/util/Recoil_mapIterable",["regeneratorRuntime"],(function(a,b,c,d,e,f){"use strict";function a(a,c){return b("regeneratorRuntime").mark(function d(){var e,f,g,h,i,j;return b("regeneratorRuntime").wrap(function(b){while(1)switch(b.prev=b.next){case 0:e=0,(f=a,g=Array.isArray(f),h=0,f=g?f:f[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]());case 2:if(!g){b.next=8;break}if(!(h>=f.length)){b.next=5;break}return b.abrupt("break",17);case 5:i=f[h++];b.next=12;break;case 8:h=f.next();if(!h.done){b.next=11;break}return b.abrupt("break",17);case 11:i=h.value;case 12:j=i;b.next=15;return c(j,e++);case 15:b.next=2;break;case 17:case"end":return b.stop()}},d,this)})()}e.exports=a}),null); __d("recoil-oss/core/Recoil_Node",["recoil-oss/core/Recoil_ReactMode","recoil-oss/core/Recoil_RecoilValue","recoil-shared/util/Recoil_RecoilEnv","recoil-shared/util/Recoil_expectationViolation","recoil-shared/util/Recoil_gkx","recoil-shared/util/Recoil_mapIterable","recoil-shared/util/Recoil_nullthrows","recoil-shared/util/Recoil_recoverableViolation"],(function(a,b,c,d,e,f){"use strict";var g=b("recoil-oss/core/Recoil_ReactMode").isFastRefreshEnabled;g=function(){};var h=new g(),i=new Map(),j=new Map();function a(a){return b("recoil-shared/util/Recoil_mapIterable")(a,function(a){return b("recoil-shared/util/Recoil_nullthrows")(j.get(a))})}function k(a){if(i.has(a)){a='Duplicate atom key "'+a+'". 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.';b("recoil-shared/util/Recoil_recoverableViolation")(a,"recoil")}}function c(a){b("recoil-shared/util/Recoil_RecoilEnv").RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&k(a.key);i.set(a.key,a);var c=a.set==null?new(b("recoil-oss/core/Recoil_RecoilValue").RecoilValueReadOnly)(a.key):new(b("recoil-oss/core/Recoil_RecoilValue").RecoilState)(a.key);j.set(a.key,c);return c}var l=function(b){babelHelpers.inheritsLoose(a,b);function a(){return b.apply(this,arguments)||this}return a}(babelHelpers.wrapNativeSuper(Error));function d(a){var b=i.get(a);if(b==null)throw new l('Missing definition for RecoilValue: "'+a+'""');return b}function f(a){return i.get(a)}var m=new Map();function n(a){if(!b("recoil-shared/util/Recoil_gkx")("1842165"))return;var c=i.get(a);(c==null?void 0:c.shouldDeleteConfigOnRelease==null?void 0:c.shouldDeleteConfigOnRelease())&&(i["delete"](a),p(a)==null?void 0:p(a)(),m["delete"](a))}function o(a,c){if(!b("recoil-shared/util/Recoil_gkx")("1842165"))return;c===void 0?m["delete"](a):m.set(a,c)}function p(a){return m.get(a)}e.exports={nodes:i,recoilValues:j,registerNode:c,getNode:d,getNodeMaybe:f,deleteNodeConfigIfPossible:n,setConfigDeletionHandler:o,getConfigDeletionHandler:p,recoilValuesForKeys:a,NodeMissingError:l,DefaultValue:g,DEFAULT_VALUE:h}}),null); __d("recoil-oss/adt/Recoil_Queue",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){b()}e.exports={enqueueExecution:a}}),null); __d("recoil-oss/core/Recoil_RetentionZone",[],(function(a,b,c,d,e,f){"use strict";var g=function(){};function a(){return new g()}e.exports={RetentionZone:g,retentionZone:a}}),null); __d("recoil-shared/util/Recoil_CopyOnWrite",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){a=new Set(a);a.add(b);return a}function b(a,b){a=new Set(a);a["delete"](b);return a}function c(a,b,c){a=new Map(a);a.set(b,c);return a}function d(a,b,c){a=new Map(a);a.set(b,c(a.get(b)));return a}function f(a,b){a=new Map(a);a["delete"](b);return a}function g(a,b){var c=new Map(a);b.forEach(function(a){return c["delete"](a)});return c}e.exports={setByAddingToSet:a,setByDeletingFromSet:b,mapBySettingInMap:c,mapByUpdatingInMap:d,mapByDeletingFromMap:f,mapByDeletingMultipleFromMap:g}}),null); __d("recoil-shared/util/Recoil_filterIterable",["regeneratorRuntime"],(function(a,b,c,d,e,f){"use strict";var g=b("regeneratorRuntime").mark(a);function a(a,c){var d,e,f,h,i,j;return b("regeneratorRuntime").wrap(function(b){while(1)switch(b.prev=b.next){case 0:d=0,(e=a,f=Array.isArray(e),h=0,e=f?e:e[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]());case 2:if(!f){b.next=8;break}if(!(h>=e.length)){b.next=5;break}return b.abrupt("break",18);case 5:i=e[h++];b.next=12;break;case 8:h=e.next();if(!h.done){b.next=11;break}return b.abrupt("break",18);case 11:i=h.value;case 12:j=i;if(!c(j,d++)){b.next=16;break}b.next=16;return j;case 16:b.next=2;break;case 18:case"end":return b.stop()}},g,this)}e.exports=a}),null); __d("recoil-shared/util/Recoil_lazyProxy",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){var c=new Proxy(a,{get:function(a,c){!(c in a)&&c in b&&(a[c]=b[c]());return a[c]},ownKeys:function(a){for(var d in b)c[d];return Object.keys(a)}});return c}e.exports=a}),null); __d("recoil-oss/core/Recoil_FunctionalCore",["recoil-oss/core/Recoil_Node","recoil-oss/core/Recoil_RetentionZone","recoil-shared/util/Recoil_CopyOnWrite","recoil-shared/util/Recoil_filterIterable","recoil-shared/util/Recoil_gkx","recoil-shared/util/Recoil_lazyProxy","recoil-shared/util/Recoil_mapIterable"],(function(a,b,c,d,e,f){"use strict";var g=b("recoil-oss/core/Recoil_Node").getNode,h=b("recoil-oss/core/Recoil_Node").getNodeMaybe,i=b("recoil-oss/core/Recoil_Node").recoilValuesForKeys,j=b("recoil-oss/core/Recoil_RetentionZone").RetentionZone,k=b("recoil-shared/util/Recoil_CopyOnWrite").setByAddingToSet,l=Object.freeze(new Set()),m=function(b){babelHelpers.inheritsLoose(a,b);function a(){return b.apply(this,arguments)||this}return a}(babelHelpers.wrapNativeSuper(Error));function n(a,c,d){if(!b("recoil-shared/util/Recoil_gkx")("1842165"))return function(){return void 0};var e=a.getState().retention.nodesRetainedByZone;function f(a){var b=e.get(a);b||e.set(a,b=new Set());b.add(c)}if(d instanceof j)f(d);else if(Array.isArray(d))for(var g=d,h=Array.isArray(g),i=0,g=h?g:g[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var k;if(h){if(i>=g.length)break;k=g[i++]}else{i=g.next();if(i.done)break;k=i.value}k=k;f(k)}return function(){if(!b("recoil-shared/util/Recoil_gkx")("1842165"))return;var e=a.getState(),f=e.retention;function g(a){var b=f.nodesRetainedByZone.get(a);b==null?void 0:b["delete"](c);b&&b.size===0&&f.nodesRetainedByZone["delete"](a)}if(d instanceof j)g(d);else if(Array.isArray(d))for(var e=d,h=Array.isArray(e),i=0,e=h?e:e[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var k;if(h){if(i>=e.length)break;k=e[i++]}else{i=e.next();if(i.done)break;k=i.value}k=k;g(k)}}}function o(a,b,c,d){var e=a.getState();if(e.nodeCleanupFunctions.has(c))return;var f=g(c),h=n(a,c,f.retainedBy),i=f.init(a,b,d);e.nodeCleanupFunctions.set(c,function(){i(),h()})}function a(a,b,c){o(a,a.getState().currentTree,b,c)}function c(a,b){a=a.getState();a.nodeCleanupFunctions.get(b)==null?void 0:a.nodeCleanupFunctions.get(b)();a.nodeCleanupFunctions["delete"](b)}function d(a,b,c){o(a,b,c,"get");return g(c).get(a,b)}function p(a,b,c){return g(c).peek(a,b)}function f(a,b,c){var d=h(b);d==null?void 0:d.invalidate==null?void 0:d.invalidate(a);return babelHelpers["extends"]({},a,{atomValues:a.atomValues.clone()["delete"](b),nonvalidatedAtoms:a.nonvalidatedAtoms.clone().set(b,c),dirtyAtoms:k(a.dirtyAtoms,b)})}function q(a,b,c,d){var e=g(c);if(e.set==null)throw new m("Attempt to set read-only RecoilValue: "+c);e=e.set;o(a,b,c,"set");return e(a,b,d)}function r(a,c,d){var e=a.getState(),f=a.getGraph(c.version),h=g(d).nodeType;return b("recoil-shared/util/Recoil_lazyProxy")({type:h},{loadable:function(){return p(a,c,d)},isActive:function(){return e.knownAtoms.has(d)||e.knownSelectors.has(d)},isSet:function(){return h==="selector"?!1:c.atomValues.has(d)},isModified:function(){return c.dirtyAtoms.has(d)},deps:function(){var a;return i((a=f.nodeDeps.get(d))!=null?a:[])},subscribers:function(){var f;return{nodes:i(b("recoil-shared/util/Recoil_filterIterable")(s(a,c,new Set([d])),function(a){return a!==d})),components:b("recoil-shared/util/Recoil_mapIterable")((f=(f=e.nodeToComponentSubscriptions.get(d))==null?void 0:f.values())!=null?f:[],function(a){a=a[0];return{name:a}})}}})}function s(a,b,c){var d=new Set();c=Array.from(c);a=a.getGraph(b.version);for(b=c.pop();b;b=c.pop()){var e;d.add(b);e=(e=a.nodeToNodeSubscriptions.get(b))!=null?e:l;for(var e=e,f=Array.isArray(e),g=0,e=f?e:e[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var h;if(f){if(g>=e.length)break;h=e[g++]}else{g=e.next();if(g.done)break;h=g.value}h=h;d.has(h)||c.push(h)}}return d}e.exports={getNodeLoadable:d,peekNodeLoadable:p,setNodeValue:q,initializeNode:a,cleanUpNode:c,setUnvalidatedAtomValue_DEPRECATED:f,peekNodeInfo:r,getDownstreamNodes:s}}),null); __d("recoil-shared/util/Recoil_differenceSets",[],(function(a,b,c,d,e,f){"use strict";function a(a){var b=new Set();for(var c=arguments.length,d=new Array(c>1?c-1:0),e=1;e=f.length)break;i=f[h++]}else{h=f.next();if(h.done)break;i=h.value}var j=i;for(var k=0;k=f.length)break;i=f[h++]}else{h=f.next();if(h.done)break;i=h.value}i=i;d.has(i)||d.set(i,new Set());i=b("recoil-shared/util/Recoil_nullthrows")(d.get(i));i.add(a)}if(g){i=b("recoil-shared/util/Recoil_differenceSets")(g,c);for(h=i,e=Array.isArray(h),f=0,h=e?h:h[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){if(e){if(f>=h.length)break;g=h[f++]}else{f=h.next();if(f.done)break;g=f.value}c=g;if(!d.has(c))return;i=b("recoil-shared/util/Recoil_nullthrows")(d.get(c));i["delete"](a);i.size===0&&d["delete"](c)}}}function d(a,c,d,e){var f,h,i=d.getState();e===i.currentTree.version||e===((f=i.nextTree)==null?void 0:f.version)||e===((f=i.previousTree)==null?void 0:f.version)||b("recoil-shared/util/Recoil_recoverableViolation")("Tried to save dependencies to a discarded tree","recoil");f=d.getGraph(e);g(a,c,f);if(e===((h=i.previousTree)==null?void 0:h.version)){h=d.getGraph(i.currentTree.version);g(a,c,h,f)}if(e===((h=i.previousTree)==null?void 0:h.version)||e===i.currentTree.version){e=(h=i.nextTree)==null?void 0:h.version;if(e!==void 0){i=d.getGraph(e);g(a,c,i,f)}}}e.exports={cloneGraph:c,graph:a,saveDepsToStore:d}}),null); __d("recoil-oss/core/Recoil_Keys",[],(function(a,b,c,d,e,f){"use strict";var g=0;a=function(){return g++};var h=0;b=function(){return h++};var i=0;c=function(){return i++};e.exports={getNextTreeStateVersion:a,getNextStoreID:b,getNextComponentID:c}}),null); __d("recoil-oss/core/Recoil_SnapshotCache",[],(function(a,b,c,d,e,f){"use strict";var g=null;function a(a){g=a}function b(){g==null?void 0:g()}e.exports={setInvalidateMemoizedSnapshot:a,invalidateMemoizedSnapshot:b}}),null); __d("recoil-oss/core/Recoil_RecoilValueInterface",["recoil-oss/core/Recoil_FunctionalCore","recoil-oss/core/Recoil_Keys","recoil-oss/core/Recoil_Node","recoil-oss/core/Recoil_ReactMode","recoil-oss/core/Recoil_RecoilValue","recoil-oss/core/Recoil_SnapshotCache","recoil-shared/util/Recoil_err","recoil-shared/util/Recoil_nullthrows","recoil-shared/util/Recoil_recoverableViolation"],(function(a,b,c,d,e,f){"use strict";var g,h=b("recoil-oss/core/Recoil_FunctionalCore").getDownstreamNodes,i=b("recoil-oss/core/Recoil_FunctionalCore").getNodeLoadable,j=b("recoil-oss/core/Recoil_FunctionalCore").setNodeValue,k=b("recoil-oss/core/Recoil_Keys").getNextComponentID,l=b("recoil-oss/core/Recoil_Node").getNode,m=b("recoil-oss/core/Recoil_Node").getNodeMaybe,n=b("recoil-oss/core/Recoil_Node").DefaultValue,o=b("recoil-oss/core/Recoil_ReactMode").reactMode,p=(g=b("recoil-oss/core/Recoil_RecoilValue")).AbstractRecoilValue,q=g.RecoilState,r=g.RecoilValueReadOnly;g=g.isRecoilValue;var s=b("recoil-oss/core/Recoil_SnapshotCache").invalidateMemoizedSnapshot;function a(a,c,d){var e;c=c.key;d===void 0&&(d=a.getState().currentTree);var f=a.getState();d.version===f.currentTree.version||d.version===((e=f.nextTree)==null?void 0:e.version)||d.version===((e=f.previousTree)==null?void 0:e.version)||b("recoil-shared/util/Recoil_recoverableViolation")("Tried to read from a discarded tree","recoil");f=i(a,d,c);f.state==="loading"&&f.contents["catch"](function(){return});return f}function c(a,b){var c=a.clone();b.forEach(function(a,b){a.state==="hasValue"&&a.contents instanceof n?c["delete"](b):c.set(b,a)});return c}function t(a,c,d,e){d=d.key;if(typeof e==="function"){a=i(a,c,d);if(a.state==="loading"){c='Tried to set atom or selector "'+d+'" using an updater function while the current state is pending, this is not currently supported.';b("recoil-shared/util/Recoil_recoverableViolation")(c,"recoil");throw b("recoil-shared/util/Recoil_err")(c)}else if(a.state==="hasError")throw a.contents;return e(a.contents)}else return e}function u(a,c,d){if(d.type==="set"){var e=d.recoilValue,f=d.valueOrUpdater;f=t(a,c,e,f);a=j(a,c,e.key,f);for(e=a.entries(),f=Array.isArray(e),a=0,e=f?e:e[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(f){if(a>=e.length)break;g=e[a++]}else{a=e.next();if(a.done)break;g=a.value}g=g;var h=g[0];g=g[1];v(c,h,g)}}else if(d.type==="setLoadable"){h=d.recoilValue.key;g=d.loadable;v(c,h,g)}else if(d.type==="markModified"){a=d.recoilValue.key;c.dirtyAtoms.add(a)}else if(d.type==="setUnvalidated"){f=d.recoilValue.key;e=d.unvalidatedValue;h=m(f);h==null?void 0:h.invalidate==null?void 0:h.invalidate(c);c.atomValues["delete"](f);c.nonvalidatedAtoms.set(f,e);c.dirtyAtoms.add(f)}else b("recoil-shared/util/Recoil_recoverableViolation")("Unknown action "+d.type,"recoil")}function v(a,b,c){c.state==="hasValue"&&c.contents instanceof n?a.atomValues["delete"](b):a.atomValues.set(b,c),a.dirtyAtoms.add(b),a.nonvalidatedAtoms["delete"](b)}function w(a,b){a.replaceState(function(c){c=z(c);for(var d=0;d=c.length)break;f=c[e++]}else{e=c.next();if(e.done)break;f=e.value}f=f;var g=f[0];f=f[1];w(g,f)}g=y.pop();g!==a&&b("recoil-shared/util/Recoil_recoverableViolation")("Incorrect order of batch popping","recoil")}}function z(a){return babelHelpers["extends"]({},a,{atomValues:a.atomValues.clone(),nonvalidatedAtoms:a.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(a.dirtyAtoms)})}function A(a,b){a=h(a,b,b.dirtyAtoms);for(var a=a,c=Array.isArray(a),d=0,a=c?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=a.length)break;e=a[d++]}else{d=a.next();if(d.done)break;e=d.value}e=e;(e=m(e))==null?void 0:e.invalidate==null?void 0:e.invalidate(b)}}function B(a,b,c){x(a,{type:"set",recoilValue:b,valueOrUpdater:c})}function f(a,b,c){if(c instanceof n)return B(a,b,c);x(a,{type:"setLoadable",recoilValue:b,loadable:c})}function C(a,b){x(a,{type:"markModified",recoilValue:b})}function D(a,b,c){x(a,{type:"setUnvalidated",recoilValue:b,unvalidatedValue:c})}function E(a,c,d,e){var f=c.key;e===void 0&&(e=null);var g=k();c=a.getState();c.nodeToComponentSubscriptions.has(f)||c.nodeToComponentSubscriptions.set(f,new Map());b("recoil-shared/util/Recoil_nullthrows")(c.nodeToComponentSubscriptions.get(f)).set(g,[(c=e)!=null?c:"",d]);e=o();if(e.early&&e.mode==="LEGACY"){c=a.getState().nextTree;c&&c.dirtyAtoms.has(f)&&d(c)}return{release:function(){var c=a.getState(),d=c.nodeToComponentSubscriptions.get(f);if(d===void 0||!d.has(g)){b("recoil-shared/util/Recoil_recoverableViolation")("Subscription missing at release time for atom "+f+". This is a bug in Recoil.","recoil");return}d["delete"](g);d.size===0&&c.nodeToComponentSubscriptions["delete"](f)}}}function F(a,b){var c=a.getState();c=c.currentTree;b=l(b.key);b.clearCache==null?void 0:b.clearCache(a,c)}e.exports={RecoilValueReadOnly:r,AbstractRecoilValue:p,RecoilState:q,getRecoilValueAsLoadable:a,setRecoilValue:B,setRecoilValueLoadable:f,markRecoilValueModified:C,setUnvalidatedRecoilValue:D,subscribeToRecoilValue:E,isRecoilValue:g,applyAtomValueWrites:c,batchStart:d,writeLoadableToTreeState:v,invalidateDownstreams:A,copyTreeState:z,refreshRecoilValue:F}}),null); __d("recoil-shared/util/Recoil_someSet",[],(function(a,b,c,d,e,f){"use strict";function a(a,b,c){var d=a.entries(),e=d.next();while(!e.done){var f=e.value;if(b.call(c,f[1],f[0],a))return!0;e=d.next()}return!1}e.exports=a}),null); __d("recoil-oss/core/Recoil_Retention",["recoil-oss/core/Recoil_FunctionalCore","recoil-oss/core/Recoil_Node","recoil-oss/core/Recoil_RetentionZone","recoil-shared/util/Recoil_gkx","recoil-shared/util/Recoil_nullthrows","recoil-shared/util/Recoil_recoverableViolation","recoil-shared/util/Recoil_someSet"],(function(a,b,c,d,e,f){"use strict";var g=b("recoil-oss/core/Recoil_FunctionalCore").cleanUpNode,h=b("recoil-oss/core/Recoil_Node").deleteNodeConfigIfPossible,i=b("recoil-oss/core/Recoil_Node").getNode,j=b("recoil-oss/core/Recoil_RetentionZone").RetentionZone;f=12e4;var k=new Set();function l(a,c){var d=a.getState(),e=d.currentTree;if(d.nextTree){b("recoil-shared/util/Recoil_recoverableViolation")("releaseNodesNowOnCurrentTree should only be called at the end of a batch","recoil");return}var f=new Set();for(var c=c,g=Array.isArray(c),h=0,c=g?c:c[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var i;if(g){if(h>=c.length)break;i=c[h++]}else{h=c.next();if(h.done)break;i=h.value}i=i;if(i instanceof j)for(var k=p(d,i),l=Array.isArray(k),n=0,k=l?k:k[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var q;if(l){if(n>=k.length)break;q=k[n++]}else{n=k.next();if(n.done)break;q=n.value}q=q;f.add(q)}else f.add(i)}q=m(a,f);for(n=q,l=Array.isArray(n),k=0,n=l?n:n[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){if(l){if(k>=n.length)break;i=n[k++]}else{k=n.next();if(k.done)break;i=k.value}h=i;o(a,e,h)}}function m(a,c){var d=a.getState(),e=d.currentTree,f=a.getGraph(e.version),g=new Set(),h=new Set();j(c);return g;function j(c){var l=new Set();c=n(a,e,c,g,h);for(var m=0;m0){h.add(p);continue}if(q(p).some(function(a){return d.retention.referenceCounts.get(a)})){h.add(p);continue}o=f.nodeToNodeSubscriptions.get(p);if(o&&b("recoil-shared/util/Recoil_someSet")(o,function(a){return h.has(a)})){h.add(p);continue}g.add(p);l.add(p)}o=new Set();for(p=l,m=Array.isArray(p),c=0,p=m?p:p[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){if(m){if(c>=p.length)break;l=p[c++]}else{c=p.next();if(c.done)break;l=c.value}l=l;for(var l=(l=f.nodeDeps.get(l))!=null?l:k,r=Array.isArray(l),s=0,l=r?l:l[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var t;if(r){if(s>=l.length)break;t=l[s++]}else{s=l.next();if(s.done)break;t=s.value}t=t;g.has(t)||o.add(t)}}o.size&&j(o)}}function n(a,c,d,e,f){var g=a.getGraph(c.version),h=[],i=new Set();while(d.size>0)j(b("recoil-shared/util/Recoil_nullthrows")(d.values().next().value));return h;function j(a){if(e.has(a)||f.has(a)){d["delete"](a);return}if(i.has(a))return;var b=g.nodeToNodeSubscriptions.get(a);if(b)for(var b=b,c=Array.isArray(b),k=0,b=c?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var l;if(c){if(k>=b.length)break;l=b[k++]}else{k=b.next();if(k.done)break;l=k.value}l=l;j(l)}i.add(a);d["delete"](a);h.push(a)}}function o(a,c,d){if(!b("recoil-shared/util/Recoil_gkx")("1842165"))return;g(a,d);a=a.getState();a.knownAtoms["delete"](d);a.knownSelectors["delete"](d);a.nodeTransactionSubscriptions["delete"](d);a.retention.referenceCounts["delete"](d);var e=q(d);for(var f=0;f=e.length)break;f=e[c++]}else{c=e.next();if(c.done)break;f=c.value}f=f;(f=i.nodeToNodeSubscriptions.get(f))==null?void 0:f["delete"](d)}}i.nodeToNodeSubscriptions["delete"](d)}h(d)}function p(a,b){return(a=a.retention.nodesRetainedByZone.get(b))!=null?a:k}function q(a){a=i(a).retainedBy;if(a===void 0||a==="components"||a==="recoilRoot")return[];else if(a instanceof j)return[a];else return a}function r(a,b){var c=a.getState();c.nextTree?c.retention.retainablesToCheckForRelease.add(b):l(a,new Set([b]))}function a(a,c,d){var e;if(!b("recoil-shared/util/Recoil_gkx")("1842165"))return;var f=a.getState().retention.referenceCounts;e=((e=f.get(c))!=null?e:0)+d;e===0?s(a,c):f.set(c,e)}function s(a,c){if(!b("recoil-shared/util/Recoil_gkx")("1842165"))return;var d=a.getState().retention.referenceCounts;d["delete"](c);r(a,c)}function c(a){if(!b("recoil-shared/util/Recoil_gkx")("1842165"))return;var c=a.getState();l(a,c.retention.retainablesToCheckForRelease);c.retention.retainablesToCheckForRelease.clear()}function d(a){return a===void 0?"recoilRoot":a}e.exports={SUSPENSE_TIMEOUT_MS:f,updateRetainCount:a,updateRetainCountToZero:s,releaseScheduledRetainablesNow:c,retainedByOptionWithDefault:d}}),null); __d("recoil-shared/util/Recoil_ReactBatchedUpdates",["ReactDOMComet"],(function(a,b,c,d,e,f){a=b("ReactDOMComet").unstable_batchedUpdates;e.exports={unstable_batchedUpdates:a}}),null); __d("recoil-oss/core/Recoil_Batching",["recoil-oss/core/Recoil_RecoilValueInterface","recoil-shared/util/Recoil_ReactBatchedUpdates"],(function(a,b,c,d,e,f){var g=b("recoil-oss/core/Recoil_RecoilValueInterface").batchStart;a=b("recoil-shared/util/Recoil_ReactBatchedUpdates").unstable_batchedUpdates;var h=a||function(a){return a()};c=function(a){h=a};d=function(){return h};f=function(a){h(function(){var b=function(){return void 0};try{b=g(),a()}finally{b()}})};e.exports={getBatcher:d,setBatcher:c,batchUpdates:f}}),null); __d("recoil-oss/adt/Recoil_PersistentMap",["hamt_plus","recoil-shared/util/Recoil_gkx"],(function(a,b,c,d,e,f){"use strict";var g=function(){function a(a){this.$1=new Map(a==null?void 0:a.entries())}var b=a.prototype;b.keys=function(){return this.$1.keys()};b.entries=function(){return this.$1.entries()};b.get=function(a){return this.$1.get(a)};b.has=function(a){return this.$1.has(a)};b.set=function(a,b){this.$1.set(a,b);return this};b["delete"]=function(a){this.$1["delete"](a);return this};b.clone=function(){return i(this)};b.toMap=function(){return new Map(this.$1)};return a}(),h=function(){function a(c){this.$1=b("hamt_plus").empty.beginMutation();if(c instanceof a){var d=c.$1.endMutation();c.$1=d.beginMutation();this.$1=d.beginMutation()}else if(c)for(var d=c.entries(),c=Array.isArray(d),e=0,d=c?d:d[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(c){if(e>=d.length)break;f=d[e++]}else{e=d.next();if(e.done)break;f=e.value}f=f;var g=f[0];f=f[1];this.$1.set(g,f)}}var c=a.prototype;c.keys=function(){return this.$1.keys()};c.entries=function(){return this.$1.entries()};c.get=function(a){return this.$1.get(a)};c.has=function(a){return this.$1.has(a)};c.set=function(a,b){this.$1.set(a,b);return this};c["delete"]=function(a){this.$1["delete"](a);return this};c.clone=function(){return i(this)};c.toMap=function(){return new Map(this.$1)};return a}();function i(a){if(b("recoil-shared/util/Recoil_gkx")("1865551"))return new h(a);else return new g(a)}e.exports={persistentMap:i}}),null); __d("recoil-oss/core/Recoil_State",["recoil-oss/adt/Recoil_PersistentMap","recoil-oss/core/Recoil_Graph","recoil-oss/core/Recoil_Keys"],(function(a,b,c,d,e,f){"use strict";var g=b("recoil-oss/adt/Recoil_PersistentMap").persistentMap,h=b("recoil-oss/core/Recoil_Graph").graph,i=b("recoil-oss/core/Recoil_Keys").getNextTreeStateVersion;function j(){var a=i();return{version:a,stateID:a,transactionMetadata:{},dirtyAtoms:new Set(),atomValues:g(),nonvalidatedAtoms:g()}}function a(){var a=j();return{currentTree:a,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(a.version,h()),retention:{referenceCounts:new Map(),nodesRetainedByZone:new Map(),retainablesToCheckForRelease:new Set()},nodeCleanupFunctions:new Map()}}e.exports={makeEmptyTreeState:j,makeEmptyStoreState:a,getNextTreeStateVersion:i}}),null); __d("recoil-shared/util/Recoil_Environment",[],(function(a,b,c,d,e,f){"use strict";var g=typeof Window==="undefined"||typeof window==="undefined";a=function(a){return!g&&(a===window||a instanceof Window)};b=typeof navigator!=="undefined"&&navigator.product==="ReactNative";e.exports={isSSR:g,isReactNative:b,isWindow:a}}),null); __d("recoil-shared/util/Recoil_Memoize",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){var c;return function(){c||(c={});var d=b.apply(void 0,arguments);Object.hasOwnProperty.call(c,d)||(c[d]=a.apply(void 0,arguments));return c[d]}}function b(a,b){var c,d;return function(){var e=b.apply(void 0,arguments);if(c===e)return d;c=e;d=a.apply(void 0,arguments);return d}}function c(a,b){var c,d,e=function(){var e=b.apply(void 0,arguments);if(c===e)return d;c=e;d=a.apply(void 0,arguments);return d},f=function(){c=null};return[e,f]}e.exports={memoizeWithArgsHash:a,memoizeOneWithArgsHash:b,memoizeOneWithArgsHashAndInvalidation:c}}),null); __d("recoil-shared/util/Recoil_concatIterables",["regeneratorRuntime"],(function(a,b,c,d,e,f){"use strict";var g=b("regeneratorRuntime").mark(a);function a(a){var c,d,e,f,h,i,j,k,l,m;return b("regeneratorRuntime").wrap(function(b){while(1)switch(b.prev=b.next){case 0:c=a,d=Array.isArray(c),e=0,c=d?c:c[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();case 1:if(!d){b.next=7;break}if(!(e>=c.length)){b.next=4;break}return b.abrupt("break",30);case 4:f=c[e++];b.next=11;break;case 7:e=c.next();if(!e.done){b.next=10;break}return b.abrupt("break",30);case 10:f=e.value;case 11:h=f,(i=h,j=Array.isArray(i),k=0,i=j?i:i[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]());case 13:if(!j){b.next=19;break}if(!(k>=i.length)){b.next=16;break}return b.abrupt("break",28);case 16:l=i[k++];b.next=23;break;case 19:k=i.next();if(!k.done){b.next=22;break}return b.abrupt("break",28);case 22:l=k.value;case 23:m=l;b.next=26;return m;case 26:b.next=13;break;case 28:b.next=1;break;case 30:case"end":return b.stop()}},g,this)}e.exports=a}),null); __d("recoil-oss/core/Recoil_Snapshot",["recoil-oss/core/Recoil_Batching","recoil-oss/core/Recoil_FunctionalCore","recoil-oss/core/Recoil_Graph","recoil-oss/core/Recoil_Keys","recoil-oss/core/Recoil_Node","recoil-oss/core/Recoil_RecoilValueInterface","recoil-oss/core/Recoil_Retention","recoil-oss/core/Recoil_SnapshotCache","recoil-oss/core/Recoil_State","recoil-shared/util/Recoil_Environment","recoil-shared/util/Recoil_Memoize","recoil-shared/util/Recoil_concatIterables","recoil-shared/util/Recoil_err","recoil-shared/util/Recoil_filterIterable","recoil-shared/util/Recoil_gkx","recoil-shared/util/Recoil_mapIterable","recoil-shared/util/Recoil_nullthrows","recoil-shared/util/Recoil_recoverableViolation","regeneratorRuntime"],(function(a,b,c,d,e,f){"use strict";var g=b("recoil-oss/core/Recoil_Batching").batchUpdates,h=b("recoil-oss/core/Recoil_FunctionalCore").initializeNode,i=b("recoil-oss/core/Recoil_FunctionalCore").peekNodeInfo,j=b("recoil-oss/core/Recoil_Graph").graph,k=b("recoil-oss/core/Recoil_Keys").getNextStoreID,l=b("recoil-oss/core/Recoil_Node").DEFAULT_VALUE,m=b("recoil-oss/core/Recoil_Node").recoilValues,n=b("recoil-oss/core/Recoil_Node").recoilValuesForKeys,o=(d=b("recoil-oss/core/Recoil_RecoilValueInterface")).AbstractRecoilValue,p=d.getRecoilValueAsLoadable,q=d.setRecoilValue,r=d.setUnvalidatedRecoilValue,s=b("recoil-oss/core/Recoil_Retention").updateRetainCount;f=b("recoil-oss/core/Recoil_SnapshotCache").setInvalidateMemoizedSnapshot;var t=b("recoil-oss/core/Recoil_State").getNextTreeStateVersion,u=b("recoil-oss/core/Recoil_State").makeEmptyStoreState,v=b("recoil-shared/util/Recoil_Environment").isSSR;d=b("recoil-shared/util/Recoil_Memoize").memoizeOneWithArgsHashAndInvalidation;var w="\nRecoil Snapshots only last for the duration of the callback they are provided to. To keep a Snapshot longer, do this:\n\n const release = snapshot.retain();\n try {\n await doSomethingWithSnapshot(snapshot);\n } finally {\n release();\n }\n\nThis is currently a DEV-only warning but will become a thrown exception in the next release of Recoil.\n",x=function(){function a(a,c){var d=this;this.$2=1;this.getLoadable=function(a){d.checkRefCount_INTERNAL();return p(d.$1,a)};this.getPromise=function(a){d.checkRefCount_INTERNAL();return d.getLoadable(a).toPromise()};this.getNodes_UNSTABLE=function(a){d.checkRefCount_INTERNAL();if((a==null?void 0:a.isModified)===!0){if((a==null?void 0:a.isInitialized)===!1)return[];var c=d.$1.getState().currentTree;return n(c.dirtyAtoms)}var e=d.$1.getState().knownAtoms,f=d.$1.getState().knownSelectors;return(a==null?void 0:a.isInitialized)==null?m.values():a.isInitialized===!0?n(b("recoil-shared/util/Recoil_concatIterables")([e,f])):b("recoil-shared/util/Recoil_filterIterable")(m.values(),function(a){a=a.key;return!e.has(a)&&!f.has(a)})};this.getInfo_UNSTABLE=function(a){a=a.key;d.checkRefCount_INTERNAL();return i(d.$1,d.$1.getState().currentTree,a)};this.map=function(a){d.checkRefCount_INTERNAL();var b=new B(d,g);a(b);return b};this.asyncMap=function(a){var c;return b("regeneratorRuntime").async(function(e){while(1)switch(e.prev=e.next){case 0:d.checkRefCount_INTERNAL();c=new B(d,g);c.retain();e.next=5;return b("regeneratorRuntime").awrap(a(c));case 5:c.autoRelease_INTERNAL();return e.abrupt("return",c);case 7:case"end":return e.stop()}},null,this)};this.$1={storeID:k(),parentStoreID:c,getState:function(){return a},replaceState:function(b){a.currentTree=b(a.currentTree)},getGraph:function(c){var d=a.graphsByVersion;if(d.has(c))return b("recoil-shared/util/Recoil_nullthrows")(d.get(c));var e=j();d.set(c,e);return e},subscribeToTransactions:function(){return{release:function(){}}},addTransactionMetadata:function(){throw b("recoil-shared/util/Recoil_err")("Cannot subscribe to Snapshots")}};for(var c=this.$1.getState().knownAtoms,e=Array.isArray(c),f=0,c=e?c:c[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var l;if(e){if(f>=c.length)break;l=c[f++]}else{f=c.next();if(f.done)break;l=f.value}l=l;h(this.$1,l,"get");s(this.$1,l,1)}this.autoRelease_INTERNAL()}var c=a.prototype;c.retain=function(){var a=this;this.$2<=0&&b("recoil-shared/util/Recoil_recoverableViolation")("Attempt to retain() Snapshot that was already released.","recoil");this.$2++;var c=!1;return function(){c||(c=!0,a.$3())}};c.autoRelease_INTERNAL=function(){var a=this;v||window.setTimeout(function(){return a.$3()},10)};c.$3=function(){this.$2--;if(this.$2===0){this.$1.getState().nodeCleanupFunctions.forEach(function(a){return a()});this.$1.getState().nodeCleanupFunctions.clear();if(!b("recoil-shared/util/Recoil_gkx")("1842165"))return}else this.$2<0};c.isRetained=function(){return this.$2>0};c.checkRefCount_INTERNAL=function(){b("recoil-shared/util/Recoil_gkx")("1842165")&&this.$2<=0};c.getStore_INTERNAL=function(){this.checkRefCount_INTERNAL();return this.$1};c.getID=function(){this.checkRefCount_INTERNAL();return this.$1.getState().currentTree.stateID};c.getStoreID=function(){this.checkRefCount_INTERNAL();return this.$1.storeID};return a}();function y(a,c,d){d===void 0&&(d=!1);var e=a.getState(),f=d?t():c.version;return{currentTree:{version:d?f:c.version,stateID:d?f:c.stateID,transactionMetadata:babelHelpers["extends"]({},c.transactionMetadata),dirtyAtoms:new Set(c.dirtyAtoms),atomValues:c.atomValues.clone(),nonvalidatedAtoms:c.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(e.knownAtoms),knownSelectors:new Set(e.knownSelectors),transactionSubscriptions:new Map(),nodeTransactionSubscriptions:new Map(),nodeToComponentSubscriptions:new Map(),queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set(),graphsByVersion:new Map().set(f,a.getGraph(c.version)),retention:{referenceCounts:new Map(),nodesRetainedByZone:new Map(),retainablesToCheckForRelease:new Set()},nodeCleanupFunctions:new Map(b("recoil-shared/util/Recoil_mapIterable")(e.nodeCleanupFunctions.entries(),function(a){a=a[0];return[a,function(){}]}))}}function a(a){var b=new x(u());return a!=null?b.map(a):b}w=d(function(a,c){var d=a.getState();c=c==="latest"?(c=d.nextTree)!=null?c:d.currentTree:b("recoil-shared/util/Recoil_nullthrows")(d.previousTree);return new x(y(a,c),a.storeID)},function(a,b){return String(b)+String(a.storeID)+String((b=a.getState().nextTree)==null?void 0:b.version)+String(a.getState().currentTree.version)+String((b=a.getState().previousTree)==null?void 0:b.version)});var z=w[0],A=w[1];f(A);function c(a,b){b===void 0&&(b="latest");var c=z(a,b);if(!c.isRetained()){A();return z(a,b)}return c}var B=function(b){babelHelpers.inheritsLoose(a,b);function a(a,c){var d;d=b.call(this,y(a.getStore_INTERNAL(),a.getStore_INTERNAL().getState().currentTree,!0),a.getStoreID())||this;d.set=function(a,b){d.checkRefCount_INTERNAL();var c=d.getStore_INTERNAL();d.$MutableSnapshot1(function(){s(c,a.key,1),q(d.getStore_INTERNAL(),a,b)})};d.reset=function(a){d.checkRefCount_INTERNAL();var b=d.getStore_INTERNAL();d.$MutableSnapshot1(function(){s(b,a.key,1),q(d.getStore_INTERNAL(),a,l)})};d.setUnvalidatedAtomValues_DEPRECATED=function(a){d.checkRefCount_INTERNAL();var b=d.getStore_INTERNAL();g(function(){for(var c=a.entries(),d=Array.isArray(c),e=0,c=d?c:c[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(d){if(e>=c.length)break;f=c[e++]}else{e=c.next();if(e.done)break;f=e.value}f=f;var g=f[0];f=f[1];s(b,g,1);r(b,new o(g),f)}})};d.$MutableSnapshot1=c;return d}return a}(x);e.exports={Snapshot:x,MutableSnapshot:B,freshSnapshot:a,cloneSnapshot:c}}),null); __d("recoil-shared/util/Recoil_unionSets",[],(function(a,b,c,d,e,f){"use strict";function a(){var a=new Set();for(var b=arguments.length,c=new Array(b),d=0;d=g.length)break;j=g[i++]}else{i=g.next();if(i.done)break;j=i.value}var k=j;a.add(k)}}return a}e.exports=a}),null); __d("recoil-shared/util/Recoil_useRefInitOnce",["react"],(function(a,b,c,d,e,f){"use strict";var g;c=g||b("react");var h=c.useRef;function a(a){var b=h(a);b.current===a&&typeof a==="function"&&(b.current=a());return b}e.exports=a}),null); __d("recoil-oss/core/Recoil_RecoilRoot",["FBLogger","RecoilUsageLogFalcoEvent","RecoilusagelogEvent","URI","react","recoil-oss/adt/Recoil_Queue","recoil-oss/core/Recoil_FunctionalCore","recoil-oss/core/Recoil_Graph","recoil-oss/core/Recoil_Keys","recoil-oss/core/Recoil_ReactMode","recoil-oss/core/Recoil_RecoilValueInterface","recoil-oss/core/Recoil_Retention","recoil-oss/core/Recoil_Snapshot","recoil-oss/core/Recoil_State","recoil-shared/util/Recoil_err","recoil-shared/util/Recoil_gkx","recoil-shared/util/Recoil_nullthrows","recoil-shared/util/Recoil_recoverableViolation","recoil-shared/util/Recoil_unionSets","recoil-shared/util/Recoil_useRefInitOnce"],(function(a,b,c,d,e,f){"use strict";var g,h,i=b("recoil-oss/core/Recoil_State").getNextTreeStateVersion,j=b("recoil-oss/core/Recoil_State").makeEmptyStoreState,k=(f=b("recoil-oss/core/Recoil_FunctionalCore")).cleanUpNode,l=f.getDownstreamNodes,m=f.initializeNode,n=f.setNodeValue,o=f.setUnvalidatedAtomValue_DEPRECATED,p=b("recoil-oss/core/Recoil_Graph").graph,q=b("recoil-oss/core/Recoil_Graph").cloneGraph,r=b("recoil-oss/core/Recoil_Keys").getNextStoreID,s=b("recoil-oss/core/Recoil_ReactMode").reactMode,t=b("recoil-oss/core/Recoil_RecoilValueInterface").applyAtomValueWrites,u=b("recoil-oss/core/Recoil_Retention").releaseScheduledRetainablesNow,v=b("recoil-oss/core/Recoil_Snapshot").freshSnapshot,w=g||(g=b("react"));f=g;var x=f.Suspense,y=f.useCallback,z=f.useContext,A=f.useEffect,B=f.useRef,C=f.useState;function a(){throw b("recoil-shared/util/Recoil_err")("This component must be used inside a component.")}var D=Object.freeze({storeID:r(),getState:a,replaceState:a,getGraph:a,subscribeToTransactions:a,addTransactionMetadata:a}),E=!1;function F(a){if(E)throw b("recoil-shared/util/Recoil_err")("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");var c=a.getState();if(c.nextTree===null){b("recoil-shared/util/Recoil_gkx")("1842165")&&b("recoil-shared/util/Recoil_gkx")("1098")&&(c.commitDepth>0&&u(a));a=c.currentTree.version;var d=i();c.nextTree=babelHelpers["extends"]({},c.currentTree,{version:d,stateID:d,dirtyAtoms:new Set(),transactionMetadata:{}});c.graphsByVersion.set(d,q(b("recoil-shared/util/Recoil_nullthrows")(c.graphsByVersion.get(a))))}}var G=w.createContext({current:D}),H=function(){return z(G)};function I(a,b,c){a=l(a,c,c.dirtyAtoms);for(var a=a,d=Array.isArray(a),e=0,a=d?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(d){if(e>=a.length)break;f=a[e++]}else{e=a.next();if(e.done)break;f=e.value}f=f;f=b.nodeToComponentSubscriptions.get(f);if(f)for(var f=f,g=Array.isArray(f),h=0,f=g?f:f[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var i;if(g){if(h>=f.length)break;i=f[h++]}else{h=f.next();if(h.done)break;i=h.value}i=i;i[0];i=i[1];i[0];i=i[1];i(c)}}}function J(a){var b=a.getState(),c=b.currentTree,d=c.dirtyAtoms;if(d.size){for(var e=b.nodeTransactionSubscriptions,f=Array.isArray(e),g=0,e=f?e:e[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var h;if(f){if(g>=e.length)break;h=e[g++]}else{g=e.next();if(g.done)break;h=g.value}h=h;var i=h[0];h=h[1];if(d.has(i))for(var i=h,h=Array.isArray(i),j=0,i=h?i:i[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var k;if(h){if(j>=i.length)break;k=i[j++]}else{j=i.next();if(j.done)break;k=j.value}k=k;k[0];k=k[1];k(a)}}for(k=b.transactionSubscriptions,j=Array.isArray(k),h=0,k=j?k:k[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){if(j){if(h>=k.length)break;i=k[h++]}else{h=k.next();if(h.done)break;i=h.value}g=i;g[0];f=g[1];f(a)}(!s().early||b.suspendedComponentResolvers.size>0)&&(I(a,b,c),b.suspendedComponentResolvers.forEach(function(a){return a()}),b.suspendedComponentResolvers.clear())}b.queuedComponentCallbacks_DEPRECATED.forEach(function(a){return a(c)});b.queuedComponentCallbacks_DEPRECATED.splice(0,b.queuedComponentCallbacks_DEPRECATED.length)}function K(a){var c=a.getState();c.commitDepth++;try{var d=c.nextTree;if(d==null)return;c.previousTree=c.currentTree;c.currentTree=d;c.nextTree=null;J(a);c.previousTree!=null?c.graphsByVersion["delete"](c.previousTree.version):b("recoil-shared/util/Recoil_recoverableViolation")("Ended batch with no previous state, which is unexpected","recoil");c.previousTree=null;b("recoil-shared/util/Recoil_gkx")("1842165")&&(d==null&&u(a))}finally{c.commitDepth--}}function L(a){var c=a.setNotifyBatcherOfChange,d=H();a=C([]);var e=a[1];c(function(){return e({})});A(function(){c(function(){return e({})});return function(){c(function(){})}},[c]);A(function(){b("recoil-oss/adt/Recoil_Queue").enqueueExecution("Batcher",function(){K(d.current)})});return null}function M(a,c){var d=j();c({set:function(c,e){var f=d.currentTree;c=n(a,f,c.key,e);e=new Set(c.keys());var g=f.nonvalidatedAtoms.clone();for(var h=e,i=Array.isArray(h),j=0,h=i?h:h[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var k;if(i){if(j>=h.length)break;k=h[j++]}else{j=h.next();if(j.done)break;k=j.value}k=k;g["delete"](k)}d.currentTree=babelHelpers["extends"]({},f,{dirtyAtoms:b("recoil-shared/util/Recoil_unionSets")(f.dirtyAtoms,e),atomValues:t(f.atomValues,c),nonvalidatedAtoms:g})},setUnvalidatedAtomValues:function(a){a.forEach(function(a,b){d.currentTree=o(d.currentTree,b,a)})}});return d}function N(a){a=v(a);var b=a.getStore_INTERNAL().getState();a.retain();b.nodeCleanupFunctions.forEach(function(a){return a()});b.nodeCleanupFunctions.clear();return b}var O=!1;function P(){O||(O=!0,b("FBLogger")("recoil","root_suspended").warn("Suspended detected. The children of should be wrapped in a boundary since RecoilRoot is not designed to suspend."));return null}var Q=0;function R(a){var c=a.children,d=a.initializeState,e=a.initializeState_DEPRECATED,f=a.skipCircularDependencyDetection_DANGEROUS,g=a.store_INTERNAL;A(function(){b("recoil-shared/util/Recoil_gkx")("1649436")&&b("RecoilUsageLogFalcoEvent").log(function(){return{type:b("RecoilusagelogEvent").RECOIL_ROOT_MOUNTED,path:(h||(h=b("URI"))).getRequestURI().getPath()}})},[]);var i,l=function(a){var c=i.current.graphsByVersion;if(c.has(a))return b("recoil-shared/util/Recoil_nullthrows")(c.get(a));var d=p();c.set(a,d);return d},n=function(a,c){if(c==null){var d=u.current.getState(),e=d.transactionSubscriptions,f=Q++;e.set(f,a);return{release:function(){e["delete"](f)}}}else{d=u.current.getState();var g=d.nodeTransactionSubscriptions;g.has(c)||g.set(c,new Map());var h=Q++;b("recoil-shared/util/Recoil_nullthrows")(g.get(c)).set(h,a);return{release:function(){var a=g.get(c);a&&(a["delete"](h),a.size===0&&g["delete"](c))}}}},o=function(a){F(u.current);var c=Object.keys(a);for(var d=0;d=b.length)break;e=b[d++]}else{d=b.next();if(d.done)break;e=d.value}e=e;m(a,e,"get")}return function(){for(var b=a.getState().knownAtoms,c=Array.isArray(b),d=0,b=c?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=b.length)break;e=b[d++]}else{d=b.next();if(d.done)break;e=d.value}e=e;k(a,e)}}},[u]);return w.jsxs(G.Provider,{value:u,children:[w.jsx(L,{setNotifyBatcherOfChange:a}),w.jsx(x,{fallback:w.jsx(P,{}),children:c})]})}R.displayName=R.name+" [from "+e.id+"]";function c(a){var b=a.override,c=babelHelpers.objectWithoutPropertiesLoose(a,["override"]),d=H();return b===!1&&d.current!==D?a.children:w.jsx(R,babelHelpers["extends"]({},c))}c.displayName=c.name+" [from "+e.id+"]";function d(){return H().current.storeID}e.exports={RecoilRoot:c,useStoreRef:H,useRecoilStoreID:d,notifyComponents_FOR_TESTING:I,sendEndOfBatchNotifications_FOR_TESTING:J}}),null); __d("recoil-shared/util/Recoil_shallowArrayEqual",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){if(a===b)return!0;if(a.length!==b.length)return!1;for(var c=0,d=a.length;c=f.length)break;i=f[h++]}else{h=f.next();if(h.done)break;i=h.value}i=i;j(a,i,1)}return function(){for(var b=c,d=Array.isArray(b),e=0,b=d?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(d){if(e>=b.length)break;f=b[e++]}else{e=b.next();if(e.done)break;f=e.value}f=f;j(a,f,-1)}}},[d].concat(c));var e=m();a=b("recoil-shared/util/Recoil_usePrevious")(c);if(!n&&(a===void 0||!b("recoil-shared/util/Recoil_shallowArrayEqual")(a,c))){var f=d.current;for(var g=c,o=Array.isArray(g),p=0,g=o?g:g[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var q;if(o){if(p>=g.length)break;q=g[p++]}else{p=g.next();if(p.done)break;q=p.value}q=q;j(f,q,1)}if(a)for(q=a,p=Array.isArray(q),o=0,q=p?q:q[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){if(p){if(o>=q.length)break;g=q[o++]}else{o=q.next();if(o.done)break;g=o.value}a=g;j(f,a,-1)}e.current&&window.clearTimeout(e.current);e.current=window.setTimeout(function(){e.current=null;for(var a=c,b=Array.isArray(a),d=0,a=b?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(b){if(d>=a.length)break;g=a[d++]}else{d=a.next();if(d.done)break;g=d.value}g=g;j(f,g,-1)}},i)}}e.exports=a}),null); __d("recoil-shared/util/Recoil_useComponentName",[],(function(a,b,c,d,e,f){"use strict";function a(){return""}e.exports=a}),null); __d("recoil-oss/hooks/Recoil_Hooks",["Promise","react","recoil-oss/core/Recoil_Batching","recoil-oss/core/Recoil_Node","recoil-oss/core/Recoil_ReactMode","recoil-oss/core/Recoil_RecoilRoot","recoil-oss/core/Recoil_RecoilValue","recoil-oss/core/Recoil_RecoilValueInterface","recoil-oss/hooks/Recoil_useRetain","recoil-shared/util/Recoil_CopyOnWrite","recoil-shared/util/Recoil_Environment","recoil-shared/util/Recoil_differenceSets","recoil-shared/util/Recoil_err","recoil-shared/util/Recoil_expectationViolation","recoil-shared/util/Recoil_gkx","recoil-shared/util/Recoil_isPromise","recoil-shared/util/Recoil_recoverableViolation","recoil-shared/util/Recoil_useComponentName"],(function(a,b,c,d,e,f){"use strict";var g,h,i,j=b("recoil-oss/core/Recoil_Batching").batchUpdates,k=b("recoil-oss/core/Recoil_Node").DEFAULT_VALUE,l=b("recoil-oss/core/Recoil_ReactMode").currentRendererSupportsUseSyncExternalStore,m=b("recoil-oss/core/Recoil_ReactMode").reactMode,n=b("recoil-oss/core/Recoil_ReactMode").useSyncExternalStore,o=b("recoil-oss/core/Recoil_RecoilRoot").useStoreRef,p=b("recoil-oss/core/Recoil_RecoilValue").isRecoilValue,q=(i=b("recoil-oss/core/Recoil_RecoilValueInterface")).AbstractRecoilValue,r=i.getRecoilValueAsLoadable,s=i.setRecoilValue,t=i.setUnvalidatedRecoilValue,u=i.subscribeToRecoilValue;i=g||(g=b("react"));var v=i.useCallback,w=i.useEffect,x=i.useMemo,y=i.useRef,z=i.useState,A=b("recoil-shared/util/Recoil_CopyOnWrite").setByAddingToSet,B=b("recoil-shared/util/Recoil_Environment").isSSR;function C(a,c,d){if(a.state==="hasValue")return a.contents;else if(a.state==="loading"){var e=new(h||(h=b("Promise")))(function(c){var e=d.current.getState().suspendedComponentResolvers;e.add(c);B&&b("recoil-shared/util/Recoil_isPromise")(a.contents)&&a.contents["finally"](function(){e["delete"](c)})});e.displayName="Recoil State: "+c.key;throw e}else if(a.state==="hasError")throw a.contents;else throw b("recoil-shared/util/Recoil_err")('Invalid value of loadable atom "'+c.key+'"')}function a(a,c){if(!p(a))throw b("recoil-shared/util/Recoil_err")("Invalid argument to "+c+": expected an atom or selector but got "+String(a))}function c(){var a=b("recoil-shared/util/Recoil_useComponentName")(),c=o(),d=z([]),e=d[1],f=y(new Set());f.current=new Set();var g=y(new Set()),h=y(new Map()),i=v(function(a){var b=h.current.get(a);b&&(b.release(),h.current["delete"](a))},[h]),j=v(function(a,b){h.current.has(b)&&e([])},[]);w(function(){var d=c.current;b("recoil-shared/util/Recoil_differenceSets")(f.current,g.current).forEach(function(c){if(h.current.has(c)){b("recoil-shared/util/Recoil_expectationViolation")('Double subscription to RecoilValue "'+c+'"');return}var e=u(d,new q(c),function(a){return j(a,c)},a);h.current.set(c,e);e=d.getState();e.nextTree?d.getState().queuedComponentCallbacks_DEPRECATED.push(function(){j(d.getState(),c)}):j(d.getState(),c)});b("recoil-shared/util/Recoil_differenceSets")(g.current,f.current).forEach(function(a){i(a)});g.current=f.current});w(function(){var d=h.current;b("recoil-shared/util/Recoil_differenceSets")(f.current,new Set(d.keys())).forEach(function(b){var e=u(c.current,new q(b),function(a){return j(a,b)},a);d.set(b,e)});return function(){return d.forEach(function(a,b){return i(b)})}},[a,c,i,j]);return x(function(){function d(a){return function(b){s(c.current,a,b)}}function e(a){return function(){return s(c.current,a,k)}}function a(a){f.current.has(a.key)||(f.current=A(f.current,a.key));var b=c.current.getState();return r(c.current,a,m().early?(a=b.nextTree)!=null?a:b.currentTree:b.currentTree)}function b(b){var d=a(b);return C(d,b,c)}function g(a){return[b(a),d(a)]}function h(b){return[a(b),d(b)]}return{getRecoilValue:b,getRecoilValueLoadable:a,getRecoilState:g,getRecoilStateLoadable:h,getSetRecoilState:d,getResetRecoilState:e}},[f,c])}i={current:0};function D(a){var c=o(),d=b("recoil-shared/util/Recoil_useComponentName")(),e=v(function(){var b,d=c.current,e=d.getState();b=m().early?(b=e.nextTree)!=null?b:e.currentTree:e.currentTree;e=r(d,a,b);return{loadable:e,key:a.key}},[c,a]),f=v(function(a){var b;return function(){var c,d=a();if(((c=b)==null?void 0:c.loadable.is(d.loadable))&&((c=b)==null?void 0:c.key)===d.key)return b;b=d;return d}},[]),g=x(function(){return f(e)},[e,f]),h=v(function(b){var e=c.current;e=u(e,a,b,d);return e.release},[c,a,d]);return n(h,g,g).loadable}function E(a){var c=o(),d=b("recoil-shared/util/Recoil_useComponentName")(),e=v(function(){var b,d=c.current,e=d.getState();b=m().early?(b=e.nextTree)!=null?b:e.currentTree:e.currentTree;return r(d,a,b)},[c,a]),f=v(function(){return{loadable:e(),key:a.key}},[e,a.key]),g=v(function(a){var b=f();return a.loadable.is(b.loadable)&&a.key===b.key?a:b},[f]);w(function(){var b=u(c.current,a,function(a){j(g)},d);j(g);return b.release},[d,a,c,g]);var h=z(f),i=h[0],j=h[1];return i.key!==a.key?f().loadable:i.loadable}function F(a){var c=o(),d=z([]),e=d[1],f=b("recoil-shared/util/Recoil_useComponentName")(),g=v(function(){var b,d=c.current,e=d.getState();b=m().early?(b=e.nextTree)!=null?b:e.currentTree:e.currentTree;return r(d,a,b)},[c,a]),h=g(),i=y(h);w(function(){i.current=h});w(function(){var d=c.current,h=d.getState(),j=u(d,a,function(a){var c;if(!b("recoil-shared/util/Recoil_gkx")("1841868"))return e([]);a=g();((c=i.current)==null?void 0:c.is(a))||e(a);i.current=a},f);if(h.nextTree)d.getState().queuedComponentCallbacks_DEPRECATED.push(function(){i.current=null,e([])});else{if(!b("recoil-shared/util/Recoil_gkx")("1841868"))return e([]);h=g();((d=i.current)==null?void 0:d.is(h))||e(h);i.current=h}return j.release},[f,g,a,c]);return h}function G(a){b("recoil-shared/util/Recoil_gkx")("1842165")&&b("recoil-oss/hooks/Recoil_useRetain")(a);return{TRANSITION_SUPPORT:E,SYNC_EXTERNAL_STORE:l()?D:E,LEGACY:F}[m().mode](a)}function H(a){var b=o(),c=G(a);return C(c,a,b)}function I(a){var b=o();return v(function(c){s(b.current,a,c)},[b,a])}function d(a){var b=o();return v(function(){s(b.current,a,k)},[b,a])}function f(a){return[H(a),I(a)]}function a(a){return[G(a),I(a)]}function J(){var a=o();return function(b,c){c===void 0&&(c={}),j(function(){a.current.addTransactionMetadata(c),b.forEach(function(b,c){return t(a.current,new q(c),b)})})}}function K(a){b("recoil-shared/util/Recoil_gkx")("1842165")&&b("recoil-oss/hooks/Recoil_useRetain")(a);return E(a)}function L(a){var b=o(),c=K(a);return C(c,a,b)}function M(a){return[L(a),I(a)]}e.exports={recoilComponentGetRecoilValueCount_FOR_TESTING:i,useRecoilInterface:c,useRecoilState:f,useRecoilStateLoadable:a,useRecoilValue:H,useRecoilValueLoadable:G,useResetRecoilState:d,useSetRecoilState:I,useSetUnvalidatedAtomValues:J,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:K,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:L,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:M}}),null); __d("recoil-shared/util/Recoil_filterMap",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){var c=new Map();for(var a=a,d=Array.isArray(a),e=0,a=d?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(d){if(e>=a.length)break;f=a[e++]}else{e=a.next();if(e.done)break;f=e.value}f=f;var g=f[0];f=f[1];b(f,g)&&c.set(g,f)}return c}e.exports=a}),null); __d("recoil-shared/util/Recoil_filterSet",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){var c=new Set();for(var a=a,d=Array.isArray(a),e=0,a=d?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(d){if(e>=a.length)break;f=a[e++]}else{e=a.next();if(e.done)break;f=e.value}f=f;b(f)&&c.add(f)}return c}e.exports=a}),null); __d("recoil-shared/util/Recoil_mergeMaps",[],(function(a,b,c,d,e,f){"use strict";function a(){var a=new Map();for(var b=arguments.length,c=new Array(b),d=0;d=k.length)break;q=k[o++]}else{o=k.next();if(o.done)break;q=o.value}q=q;((p=f.atomValues.get(q))==null?void 0:p.contents)!==((p=g.atomValues.get(q))==null?void 0:p.contents)&&j(q).shouldRestoreFromSnapshots&&d.add(q)}}d.forEach(function(c){n(a,new m(c),g.atomValues.has(c)?b("recoil-shared/util/Recoil_nullthrows")(g.atomValues.get(c)):i)});a.replaceState(function(a){return babelHelpers["extends"]({},a,{stateID:c.getID()})})})}function f(){var a=l();return r(function(b){return y(a.current,b)},[a])}e.exports={useRecoilSnapshot:d,gotoSnapshot:y,useGotoRecoilSnapshot:f,useRecoilTransactionObserver:c,useTransactionObservation_DEPRECATED:a,useTransactionSubscription_DEPRECATED:w}}),null); __d("recoil-oss/hooks/Recoil_useGetRecoilValueInfo",["recoil-oss/core/Recoil_FunctionalCore","recoil-oss/core/Recoil_RecoilRoot"],(function(a,b,c,d,e,f){"use strict";var g=b("recoil-oss/core/Recoil_FunctionalCore").peekNodeInfo,h=b("recoil-oss/core/Recoil_RecoilRoot").useStoreRef;function a(){var a=h();return function(b){b=b.key;return g(a.current,a.current.getState().currentTree,b)}}e.exports=a}),null); __d("recoil-oss/hooks/Recoil_useRecoilBridgeAcrossReactRoots",["react","recoil-oss/core/Recoil_RecoilRoot"],(function(a,b,c,d,e,f){"use strict";var g,h=b("recoil-oss/core/Recoil_RecoilRoot").RecoilRoot,i=b("recoil-oss/core/Recoil_RecoilRoot").useStoreRef,j=g||(g=b("react"));c=g;var k=c.useMemo;function a(){var a=i().current;return k(function(){function b(b){b=b.children;return j.jsx(h,{store_INTERNAL:a,children:b})}b.displayName=b.name+" [from "+e.id+"]";return b},[a])}e.exports=a}),null); __d("recoil-oss/core/Recoil_AtomicUpdates",["recoil-oss/adt/Recoil_Loadable","recoil-oss/core/Recoil_FunctionalCore","recoil-oss/core/Recoil_Node","recoil-oss/core/Recoil_RecoilValueInterface","recoil-shared/util/Recoil_err"],(function(a,b,c,d,e,f){"use strict";var g=b("recoil-oss/adt/Recoil_Loadable").loadableWithValue,h=b("recoil-oss/core/Recoil_FunctionalCore").initializeNode,i=b("recoil-oss/core/Recoil_Node").DEFAULT_VALUE,j=b("recoil-oss/core/Recoil_Node").getNode,k=(c=b("recoil-oss/core/Recoil_RecoilValueInterface")).copyTreeState,l=c.getRecoilValueAsLoadable,m=c.invalidateDownstreams,n=c.writeLoadableToTreeState;function o(a){return j(a.key).nodeType==="atom"}var p=function(){function a(a,c){var d=this;this.get=function(a){if(d.$3.has(a.key))return d.$3.get(a.key);if(!o(a))throw b("recoil-shared/util/Recoil_err")("Reading selectors within atomicUpdate is not supported");var c=l(d.$1,a,d.$2);if(c.state==="hasValue")return c.contents;else if(c.state==="hasError")throw c.contents;else throw b("recoil-shared/util/Recoil_err")("Expected Recoil atom "+a.key+" to have a value, but it is in a loading state.")};this.set=function(a,c){if(!o(a))throw b("recoil-shared/util/Recoil_err")("Setting selectors within atomicUpdate is not supported");if(typeof c==="function"){var e=d.get(a);d.$3.set(a.key,c(e))}else h(d.$1,a.key,"set"),d.$3.set(a.key,c)};this.reset=function(a){d.set(a,i)};this.$1=a;this.$2=c;this.$3=new Map()}var c=a.prototype;c.newTreeState_INTERNAL=function(){if(this.$3.size===0)return this.$2;var a=k(this.$2);for(var b=this.$3,c=Array.isArray(b),d=0,b=c?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=b.length)break;e=b[d++]}else{d=b.next();if(d.done)break;e=d.value}e=e;var f=e[0];e=e[1];n(a,f,g(e))}m(this.$1,a);return a};return a}();function a(a){return function(b){a.replaceState(function(c){c=new p(a,c);b(c);return c.newTreeState_INTERNAL()})}}e.exports={atomicUpdater:a}}),null); __d("recoil-shared/util/Recoil_invariant",["invariant"],(function(a,b,c,d,e,f,g){"use strict";e.exports=g}),null); __d("recoil-oss/hooks/Recoil_useRecoilCallback",["react","recoil-oss/core/Recoil_AtomicUpdates","recoil-oss/core/Recoil_Batching","recoil-oss/core/Recoil_Node","recoil-oss/core/Recoil_RecoilRoot","recoil-oss/core/Recoil_RecoilValueInterface","recoil-oss/core/Recoil_Snapshot","recoil-oss/hooks/Recoil_SnapshotHooks","recoil-shared/util/Recoil_err","recoil-shared/util/Recoil_invariant","recoil-shared/util/Recoil_isPromise","recoil-shared/util/Recoil_lazyProxy"],(function(a,b,c,d,e,f){"use strict";var g,h=b("recoil-oss/core/Recoil_AtomicUpdates").atomicUpdater,i=b("recoil-oss/core/Recoil_Batching").batchUpdates,j=b("recoil-oss/core/Recoil_Node").DEFAULT_VALUE,k=b("recoil-oss/core/Recoil_RecoilRoot").useStoreRef,l=b("recoil-oss/core/Recoil_RecoilValueInterface").refreshRecoilValue,m=b("recoil-oss/core/Recoil_RecoilValueInterface").setRecoilValue,n=b("recoil-oss/core/Recoil_Snapshot").cloneSnapshot,o=b("recoil-oss/hooks/Recoil_SnapshotHooks").gotoSnapshot;c=g||(g=b("react"));var p=c.useCallback,q=function(){},r=new q();function s(a,c,d,e){var f=r,g;i(function(){var i,k="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(typeof c!=="function")throw b("recoil-shared/util/Recoil_err")(k);i=b("recoil-shared/util/Recoil_lazyProxy")(babelHelpers["extends"]({},(i=e)!=null?i:{},{set:function(b,c){return m(a,b,c)},reset:function(b){return m(a,b,j)},refresh:function(b){return l(a,b)},gotoSnapshot:function(b){return o(a,b)},transact_UNSTABLE:function(b){return h(a)(b)}}),{snapshot:function(){var b=n(a);g=b.retain();return b}});i=c(i);if(typeof i!=="function")throw b("recoil-shared/util/Recoil_err")(k);f=i.apply(void 0,d)});f instanceof q&&b("recoil-shared/util/Recoil_invariant")(0,27155);b("recoil-shared/util/Recoil_isPromise")(f)?f=f["finally"](function(){g==null?void 0:g()}):g==null?void 0:g();return f}function a(a,b){var c=k();return p(function(){for(var b=arguments.length,d=new Array(b),e=0;e=g.length)break;j=g[i++]}else{i=g.next();if(i.done)break;j=i.value}j=j;var k=j[0];j=j[1];var l=d.$3;if((l==null?void 0:l.type)==="leaf")throw d.invalidCacheError();var m=e;e=m?m.branches.get(f):l;e=(l=e)!=null?l:{type:"branch",nodeKey:k,parent:m,branches:new Map(),branchKey:f};if(e.type!=="branch"||e.nodeKey!==k)throw d.invalidCacheError();m==null?void 0:m.branches.set(f,e);c==null?void 0:c.onNodeVisit==null?void 0:c.onNodeVisit(e);f=d.$6(j);d.$3=(l=d.$3)!=null?l:e}m=e?(k=e)==null?void 0:k.branches.get(f):d.$3;if(m!=null&&(m.type!=="leaf"||m.branchKey!==f))throw d.invalidCacheError();j={type:"leaf",value:b,parent:e,branchKey:f};(l=e)==null?void 0:l.branches.set(f,j);d.$3=(i=d.$3)!=null?i:j;d.$2++;d.$5(j);c==null?void 0:c.onNodeVisit==null?void 0:c.onNodeVisit(j)};try{e()}catch(a){if(a instanceof h)this.clear(),e();else throw a}};c["delete"]=function(a){var b=this.root();if(!b)return!1;if(a===b){this.$3=null;this.$2=0;return!0}var c=a.parent;a=a.branchKey;while(c){var d;c.branches["delete"](a);if(c===b){c.branches.size===0?(this.$3=null,this.$2=0):this.$2--;return!0}if(c.branches.size>0)break;a=(d=c)==null?void 0:d.branchKey;c=c.parent}for(;c!==b;c=c.parent)if(c==null)return!1;this.$2--;return!0};c.clear=function(){this.$2=0,this.$3=null};c.invalidCacheError=function(){var a=g()?"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.";b("recoil-shared/util/Recoil_recoverableViolation")(a+(this.$1!=null?" - "+this.$1:""),"recoil");throw new h()};return a}();e.exports={TreeCache:a}}),null); __d("recoil-oss/caches/Recoil_LRUCache",["recoil-shared/util/Recoil_nullthrows"],(function(a,b,c,d,e,f){"use strict";a=function(){function a(a){this.$1=a.maxSize;this.$2=0;this.$3=null;this.$4=null;this.$5=new Map();this.$6=(a=a.mapKey)!=null?a:function(a){return a}}var c=a.prototype;c.head=function(){return this.$3};c.tail=function(){return this.$4};c.size=function(){return this.$2};c.maxSize=function(){return this.$1};c.has=function(a){return this.$5.has(this.$6(a))};c.get=function(a){var b=this.$6(a);b=this.$5.get(b);if(!b)return void 0;this.set(a,b.value);return b.value};c.set=function(a,b){var c=this.$6(a),d=this.$5.get(c);d&&this["delete"](a);d=this.head();a={key:a,right:d,left:null,value:b};d?d.left=a:this.$4=a;this.$5.set(c,a);this.$3=a;this.$2++;this.$7()};c.$7=function(){this.size()>this.maxSize()&&this.deleteLru()};c.deleteLru=function(){var a=this.tail();a&&this["delete"](a.key)};c["delete"]=function(a){a=this.$6(a);if(!this.$2||!this.$5.has(a))return;var c=b("recoil-shared/util/Recoil_nullthrows")(this.$5.get(a)),d=c.right,e=c.left;d&&(d.left=c.left);e&&(e.right=c.right);c===this.head()&&(this.$3=d);c===this.tail()&&(this.$4=e);this.$5["delete"](a);this.$2--};c.clear=function(){this.$2=0,this.$3=null,this.$4=null,this.$5=new Map()};return a}();e.exports={LRUCache:a}}),null); __d("recoil-oss/caches/Recoil_treeCacheLRU",["recoil-oss/caches/Recoil_LRUCache","recoil-oss/caches/Recoil_TreeCache"],(function(a,b,c,d,e,f){"use strict";var g=b("recoil-oss/caches/Recoil_LRUCache").LRUCache,h=b("recoil-oss/caches/Recoil_TreeCache").TreeCache;function a(a){var b=a.name,c=a.maxSize;a=a.mapNodeValue;a=a===void 0?function(a){return a}:a;var d=new g({maxSize:c}),e=new h({name:b,mapNodeValue:a,onHit:function(a){d.set(a,!0)},onSet:function(a){var b=d.tail();d.set(a,!0);b&&e.size()>c&&e["delete"](b.key)}});return e}e.exports=a}),null); __d("recoil-shared/util/Recoil_stableStringify",["recoil-shared/util/Recoil_err","recoil-shared/util/Recoil_isPromise"],(function(a,b,c,d,e,f){"use strict";c=15;function g(a,c,d){if(typeof a==="string"&&!a.includes('"')&&!a.includes("\\"))return'"'+a+'"';switch(typeof a){case"undefined":return"";case"boolean":return a?"true":"false";case"number":case"symbol":return String(a);case"string":return JSON.stringify(a);case"function":if((c==null?void 0:c.allowFunctions)!==!0)throw b("recoil-shared/util/Recoil_err")("Attempt to serialize function in a Recoil cache key");return"__FUNCTION("+a.name+")__"}if(a===null)return"null";if(typeof a!=="object"){var e;return(e=JSON.stringify(a))!=null?e:""}if(b("recoil-shared/util/Recoil_isPromise")(a))return"__PROMISE__";if(Array.isArray(a))return"["+a.map(function(a,b){return g(a,c,b.toString())})+"]";if(typeof a.toJSON==="function")return g(a.toJSON(d),c,d);if(a instanceof Map){e={};for(var f=a,h=Array.isArray(f),i=0,f=h?f:f[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var j;if(h){if(i>=f.length)break;j=f[i++]}else{i=f.next();if(i.done)break;j=i.value}j=j;var k=j[0];j=j[1];e[typeof k==="string"?k:g(k,c)]=j}return g(e,c,d)}if(a instanceof Set)return g(Array.from(a).sort(function(a,b){return g(a,c).localeCompare(g(b,c))}),c,d);return Symbol!==void 0&&a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]!=null&&typeof a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]==="function"?g(Array.from(a),c,d):"{"+Object.keys(a).filter(function(b){return a[b]!==void 0}).sort().map(function(b){return g(b,c)+":"+g(a[b],c,b)}).join(",")+"}"}function a(a,b){b===void 0&&(b={allowFunctions:!1});return g(a,b)}e.exports=a}),null); __d("recoil-oss/caches/Recoil_treeCacheFromPolicy",["recoil-oss/caches/Recoil_TreeCache","recoil-oss/caches/Recoil_treeCacheLRU","recoil-shared/util/Recoil_err","recoil-shared/util/Recoil_nullthrows","recoil-shared/util/Recoil_stableStringify"],(function(a,b,c,d,e,f){"use strict";var g=b("recoil-oss/caches/Recoil_TreeCache").TreeCache,h={equality:"reference",eviction:"keep-all",maxSize:Infinity};function a(a,b){a=a===void 0?h:a;var c=a.equality;c=c===void 0?h.equality:c;var d=a.eviction;d=d===void 0?h.eviction:d;a=a.maxSize;a=a===void 0?h.maxSize:a;c=i(c);return j(d,a,c,b)}function i(a){switch(a){case"reference":return function(a){return a};case"value":return function(a){return b("recoil-shared/util/Recoil_stableStringify")(a)}}throw b("recoil-shared/util/Recoil_err")("Unrecognized equality policy "+a)}function j(a,c,d,e){switch(a){case"keep-all":return new g({name:e,mapNodeValue:d});case"lru":return b("recoil-oss/caches/Recoil_treeCacheLRU")({name:e,maxSize:b("recoil-shared/util/Recoil_nullthrows")(c),mapNodeValue:d});case"most-recent":return b("recoil-oss/caches/Recoil_treeCacheLRU")({name:e,maxSize:1,mapNodeValue:d})}throw b("recoil-shared/util/Recoil_err")("Unrecognized eviction policy "+a)}e.exports=a}),null); __d("recoil-shared/util/Recoil_PerformanceTimings",[],(function(a,b,c,d,e,f){function a(a){return function(){return null}}e.exports={startPerfBlock:a}}),null); __d("recoil-shared/util/Recoil_isNode",[],(function(a,b,c,d,e,f){"use strict";function a(a){var b;if(typeof window==="undefined")return!1;b=a!=null?(b=a.ownerDocument)!=null?b:a:document;b=(b=b.defaultView)!=null?b:window;return!!(a!=null&&(typeof b.Node==="function"?a instanceof b.Node:typeof a==="object"&&typeof a.nodeType==="number"&&typeof a.nodeName==="string"))}e.exports=a}),null); __d("recoil-shared/util/Recoil_deepFreezeValue",["recoil-shared/util/Recoil_Environment","recoil-shared/util/Recoil_isNode","recoil-shared/util/Recoil_isPromise"],(function(a,b,c,d,e,f){"use strict";var g=b("recoil-shared/util/Recoil_Environment").isReactNative,h=b("recoil-shared/util/Recoil_Environment").isWindow;function i(a){if(a===null||typeof a!=="object")return!0;switch(typeof a.$$typeof){case"symbol":return!0;case"number":return!0}if(a["@@__IMMUTABLE_ITERABLE__@@"]!=null||a["@@__IMMUTABLE_KEYED__@@"]!=null||a["@@__IMMUTABLE_INDEXED__@@"]!=null||a["@@__IMMUTABLE_ORDERED__@@"]!=null||a["@@__IMMUTABLE_RECORD__@@"]!=null)return!0;if(b("recoil-shared/util/Recoil_isNode")(a))return!0;if(b("recoil-shared/util/Recoil_isPromise")(a))return!0;if(a instanceof Error)return!0;if(ArrayBuffer.isView(a))return!0;return!g&&h(a)?!0:!1}function j(a){if(typeof a!=="object"||i(a))return;Object.freeze(a);for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b)){var c=a[b];typeof c==="object"&&c!=null&&!Object.isFrozen(c)&&j(c)}Object.seal(a)}e.exports=j}),null); __d("recoil-oss/recoil_values/Recoil_selector",["recoil-oss/adt/Recoil_Loadable","recoil-oss/adt/Recoil_Wrapper","recoil-oss/caches/Recoil_treeCacheFromPolicy","recoil-oss/core/Recoil_FunctionalCore","recoil-oss/core/Recoil_Graph","recoil-oss/core/Recoil_Node","recoil-oss/core/Recoil_RecoilValue","recoil-oss/core/Recoil_RecoilValueInterface","recoil-oss/core/Recoil_Retention","recoil-oss/hooks/Recoil_useRecoilCallback","recoil-shared/util/Recoil_PerformanceTimings","recoil-shared/util/Recoil_concatIterables","recoil-shared/util/Recoil_deepFreezeValue","recoil-shared/util/Recoil_err","recoil-shared/util/Recoil_filterIterable","recoil-shared/util/Recoil_gkx","recoil-shared/util/Recoil_invariant","recoil-shared/util/Recoil_isPromise","recoil-shared/util/Recoil_mapIterable","recoil-shared/util/Recoil_nullthrows","recoil-shared/util/Recoil_recoverableViolation"],(function(a,b,c,d,e,f){"use strict";var g=(c=b("recoil-oss/adt/Recoil_Loadable")).isLoadable,h=c.loadableWithError,i=c.loadableWithPromise,j=c.loadableWithValue,k=b("recoil-oss/adt/Recoil_Wrapper").WrappedValue,l=b("recoil-oss/core/Recoil_FunctionalCore").getNodeLoadable,m=b("recoil-oss/core/Recoil_FunctionalCore").peekNodeLoadable,n=b("recoil-oss/core/Recoil_FunctionalCore").setNodeValue,o=b("recoil-oss/core/Recoil_Graph").saveDepsToStore,p=(d=b("recoil-oss/core/Recoil_Node")).DEFAULT_VALUE,q=d.getConfigDeletionHandler,r=d.getNode,s=d.registerNode,t=b("recoil-oss/core/Recoil_RecoilValue").isRecoilValue,u=b("recoil-oss/core/Recoil_RecoilValueInterface").markRecoilValueModified,v=b("recoil-oss/core/Recoil_Retention").retainedByOptionWithDefault,w=b("recoil-oss/hooks/Recoil_useRecoilCallback").recoilCallback,aa=b("recoil-shared/util/Recoil_PerformanceTimings").startPerfBlock,x=function(){},y=new x(),z=[],A=new Map(),ba=function(){var a=0;return function(){return a++}}();function a(a){var c=null,d=a.key,e=a.get,f=a.cachePolicy_UNSTABLE,B=a.set!=null?a.set:void 0,C=new Set(),D=b("recoil-oss/caches/Recoil_treeCacheFromPolicy")((f=f)!=null?f:{equality:"reference",eviction:"keep-all"},d);f=v(a.retainedBy_UNSTABLE);var E=new Map(),F=0;function G(){return!b("recoil-shared/util/Recoil_gkx")("1842165")||F>0}function H(a){a.getState().knownSelectors.add(d);F++;return function(){F--}}function I(){return q(d)!==void 0&&!G()}function J(a,b,c,d,e){W(b,d,e),K(a,c)}function K(a,b){V(a,b)&&U(a),L(b,!0)}function ca(a,c){if(V(a,c)){a=b("recoil-shared/util/Recoil_nullthrows")(T(a));a.stateVersions.clear();L(c,!1)}}function L(a,d){var e=A.get(a);if(e!=null){for(var e=e,f=Array.isArray(e),g=0,e=f?e:e[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var h;if(f){if(g>=e.length)break;h=e[g++]}else{g=e.next();if(g.done)break;h=g.value}h=h;u(h,b("recoil-shared/util/Recoil_nullthrows")(c))}d&&A["delete"](a)}}function M(a,b){var c=A.get(b);c==null&&A.set(b,c=new Set());c.add(a)}function da(a,c,d,e,f,g){return c.then(function(b){if(!G()){U(a);throw y}var c=j(b);J(a,d,f,c,e);return b})["catch"](function(c){if(!G()){U(a);throw y}if(b("recoil-shared/util/Recoil_isPromise")(c))return N(a,c,d,e,f,g);var i=h(c);J(a,d,f,i,e);throw c})}function N(a,b,c,d,e,f){return b.then(function(d){if(!G()){U(a);throw y}f.loadingDepKey!=null&&f.loadingDepPromise===b?c.atomValues.set(f.loadingDepKey,j(d)):a.getState().knownSelectors.forEach(function(a){c.atomValues["delete"](a)});d=Q(a,c);if(d&&d.state!=="loading"){(V(a,e)||T(a)==null)&&K(a,e);if(d.state==="hasValue")return d.contents;else throw d.contents}if(!V(a,e)){d=S(a,c);if(d!=null)return d.loadingLoadable.contents}d=P(a,c,e);var g=d[0];d=d[1];g.state!=="loading"&&J(a,c,e,g,d);if(g.state==="hasError")throw g.contents;return g.contents})["catch"](function(b){if(b instanceof x)throw y;if(!G()){U(a);throw y}var f=h(b);J(a,c,e,f,d);throw b})}function O(a,b,c,e){if(V(a,e)||b.version===((e=a.getState())==null?void 0:(e=e.currentTree)==null?void 0:e.version)||b.version===((e=a.getState())==null?void 0:(b=e.nextTree)==null?void 0:b.version)){o(d,c,a,(e=(e=a.getState())==null?void 0:(b=e.nextTree)==null?void 0:b.version)!=null?e:a.getState().currentTree.version)}for(b=c,e=Array.isArray(b),a=0,b=e?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){if(e){if(a>=b.length)break;c=b[a++]}else{a=b.next();if(a.done)break;c=a.value}c=c;C.add(c)}}function P(a,f,m){var n=aa(d),o=!0,p=!0,q=function(){n(),p=!1},r=!1,s={loadingDepKey:null,loadingDepPromise:null},u=new Map();function v(c){c=c.key;var d=l(a,f,c);u.set(c,d);o||(O(a,f,new Set(u.keys()),m),ca(a,m));switch(d.state){case"hasValue":return d.contents;case"hasError":throw d.contents;case"loading":s.loadingDepKey=c;s.loadingDepPromise=d.contents;throw d.contents}throw b("recoil-shared/util/Recoil_err")("Invalid Loadable state")}var x=function(d){return function(){if(p)throw b("recoil-shared/util/Recoil_err")("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.");c!=null||b("recoil-shared/util/Recoil_invariant")(0,54579);for(var e=arguments.length,f=new Array(e),g=0;g=b.length)break;f=b[e++]}else{e=b.next();if(e.done)break;f=e.value}f=f;var g=f[0];f=f[1];if(!l(a,c,g).is(f))return!0}return!1}for(var d=d,f=Array.isArray(d),g=0,d=f?d:d[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var h;if(f){if(g>=d.length)break;h=d[g++]}else{g=d.next();if(g.done)break;h=g.value}h=h;if(h.stateVersions.get(c.version)||!e(h.depValuesDiscoveredSoFarDuringAsyncWork)){h.stateVersions.set(c.version,!0);return h}else h.stateVersions.set(c.version,!1)}return void 0}function T(a){return E.get(a)}function ea(a,b,c,d,e){E.set(a,{depValuesDiscoveredSoFarDuringAsyncWork:d,executionID:b,loadingLoadable:c,stateVersions:new Map([[e.version,!0]])})}function fa(a,b,c){if(V(a,b)){b=T(a);b!=null&&(b.depValuesDiscoveredSoFarDuringAsyncWork=c)}}function U(a){E["delete"](a)}function V(a,b){return b===((b=T(a))==null?void 0:b.executionID)}function ga(a){return Array.from(a.entries()).map(function(a){var b=a[0];a=a[1];return[b,a.contents]})}function W(a,c,e){a.atomValues.set(d,c);try{D.set(ga(e),c)}catch(a){throw b("recoil-shared/util/Recoil_err")('Problem with setting cache for selector "'+d+'": '+a.message)}}function ha(a){if(z.includes(d)){var c="Recoil selector has circular dependencies: "+z.slice(z.indexOf(d)).join(" \u2192 ");return h(b("recoil-shared/util/Recoil_err")(c))}z.push(d);try{return a()}finally{z.pop()}}function X(a,c){var e=c.atomValues.get(d);return e!=null?e:D.get(function(d){typeof d==="string"||b("recoil-shared/util/Recoil_invariant")(0,35201);return(d=m(a,c,d))==null?void 0:d.contents})}function Y(a,b){return a.skipCircularDependencyDetection_DANGEROUS===!0?R(a,b):ha(function(){return R(a,b)})}function Z(a){a.atomValues["delete"](d)}function $(a,d){c!=null||b("recoil-shared/util/Recoil_invariant")(0,54579);for(var e=C,f=Array.isArray(e),g=0,e=f?e:e[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var h;if(f){if(g>=e.length)break;h=e[g++]}else{g=e.next();if(g.done)break;h=g.value}h=h;h=r(h);h.clearCache==null?void 0:h.clearCache(a,d)}C.clear();Z(d);D.clear();u(a,c)}if(B!=null){var ia=function(a,c,e){var f=!1,g=new Map();function h(e){e=e.key;if(f)throw b("recoil-shared/util/Recoil_err")("Recoil: Async selector sets are not currently supported.");var g=l(a,c,e);if(g.state==="hasValue")return g.contents;else if(g.state==="loading"){e='Getting value of asynchronous atom or selector "'+e+'" in a pending state while setting selector "'+d+'" is not yet supported.';b("recoil-shared/util/Recoil_recoverableViolation")(e,"recoil");throw b("recoil-shared/util/Recoil_err")(e)}else throw g.contents}function i(d,e){if(f){var i="Recoil: Async selector sets are not currently supported.";b("recoil-shared/util/Recoil_recoverableViolation")(i,"recoil");throw b("recoil-shared/util/Recoil_err")(i)}i=typeof e==="function"?e(h(d)):e;e=n(a,c,d.key,i);e.forEach(function(a,b){return g.set(b,a)})}function j(a){i(a,p)}j=B({set:i,get:h,reset:j},e);if(j!==void 0)throw b("recoil-shared/util/Recoil_isPromise")(j)?b("recoil-shared/util/Recoil_err")("Recoil: Async selector sets are not currently supported."):b("recoil-shared/util/Recoil_err")("Recoil: selector set should be a void function.");f=!0;return g};return c=s({key:d,nodeType:"selector",peek:X,get:Y,set:ia,init:H,invalidate:Z,clearCache:$,shouldDeleteConfigOnRelease:I,dangerouslyAllowMutability:a.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:f})}else return c=s({key:d,nodeType:"selector",peek:X,get:Y,init:H,invalidate:Z,clearCache:$,shouldDeleteConfigOnRelease:I,dangerouslyAllowMutability:a.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:f})}a.value=function(a){return new k(a)};e.exports=a}),null); __d("recoil-oss/caches/Recoil_MapCache",[],(function(a,b,c,d,e,f){"use strict";a=function(){function a(a){this.$1=new Map();this.$2=(a=a==null?void 0:a.mapKey)!=null?a:function(a){return a}}var b=a.prototype;b.size=function(){return this.$1.size};b.has=function(a){return this.$1.has(this.$2(a))};b.get=function(a){return this.$1.get(this.$2(a))};b.set=function(a,b){this.$1.set(this.$2(a),b)};b["delete"]=function(a){this.$1["delete"](this.$2(a))};b.clear=function(){this.$1.clear()};return a}();e.exports={MapCache:a}}),null); __d("recoil-oss/caches/Recoil_cacheFromPolicy",["recoil-oss/caches/Recoil_LRUCache","recoil-oss/caches/Recoil_MapCache","recoil-shared/util/Recoil_err","recoil-shared/util/Recoil_nullthrows","recoil-shared/util/Recoil_stableStringify"],(function(a,b,c,d,e,f){"use strict";var g=b("recoil-oss/caches/Recoil_LRUCache").LRUCache,h=b("recoil-oss/caches/Recoil_MapCache").MapCache,i={equality:"reference",eviction:"none",maxSize:Infinity};function a(a){a=a===void 0?i:a;var b=a.equality;b=b===void 0?i.equality:b;var c=a.eviction;c=c===void 0?i.eviction:c;a=a.maxSize;a=a===void 0?i.maxSize:a;b=j(b);c=k(c,a,b);return c}function j(a){switch(a){case"reference":return function(a){return a};case"value":return function(a){return b("recoil-shared/util/Recoil_stableStringify")(a)}}throw b("recoil-shared/util/Recoil_err")("Unrecognized equality policy "+a)}function k(a,c,d){switch(a){case"keep-all":return new h({mapKey:d});case"lru":return new g({mapKey:d,maxSize:b("recoil-shared/util/Recoil_nullthrows")(c)});case"most-recent":return new g({mapKey:d,maxSize:1})}throw b("recoil-shared/util/Recoil_err")("Unrecognized eviction policy "+a)}e.exports=a}),null); __d("recoil-oss/recoil_values/Recoil_selectorFamily",["recoil-oss/caches/Recoil_cacheFromPolicy","recoil-oss/core/Recoil_Node","recoil-oss/recoil_values/Recoil_selector","recoil-shared/util/Recoil_err","recoil-shared/util/Recoil_stableStringify"],(function(a,b,c,d,e,f){"use strict";var g=b("recoil-oss/core/Recoil_Node").setConfigDeletionHandler,h=0;function a(a){var c,d=b("recoil-oss/caches/Recoil_cacheFromPolicy")({equality:(c=(c=a.cachePolicyForParams_UNSTABLE)==null?void 0:c.equality)!=null?c:"value",eviction:"keep-all"});return function(c){var e,f;try{f=d.get(c)}catch(c){throw b("recoil-shared/util/Recoil_err")("Problem with cache lookup for selector "+a.key+": "+c.message)}if(f!=null)return f;e=a.key+"__selectorFamily/"+((e=b("recoil-shared/util/Recoil_stableStringify")(c,{allowFunctions:!0}))!=null?e:"void")+"/"+h++;var i=function(b){return a.get(c)(b)},j=a.cachePolicy_UNSTABLE,k=typeof a.retainedBy_UNSTABLE==="function"?a.retainedBy_UNSTABLE(c):a.retainedBy_UNSTABLE;if(a.set!=null){var l=a.set,m=function(a,b){return l(c)(a,b)};m=b("recoil-oss/recoil_values/Recoil_selector")({key:e,get:i,set:m,cachePolicy_UNSTABLE:j,dangerouslyAllowMutability:a.dangerouslyAllowMutability,retainedBy_UNSTABLE:k})}else m=b("recoil-oss/recoil_values/Recoil_selector")({key:e,get:i,cachePolicy_UNSTABLE:j,dangerouslyAllowMutability:a.dangerouslyAllowMutability,retainedBy_UNSTABLE:k});d.set(c,m);g(m.key,function(){d["delete"](c)});return m}}e.exports=a}),null); __d("recoil-oss/recoil_values/Recoil_WaitFor",["Promise","recoil-oss/adt/Recoil_Loadable","recoil-oss/recoil_values/Recoil_selector","recoil-oss/recoil_values/Recoil_selectorFamily","recoil-shared/util/Recoil_isPromise"],(function(a,b,c,d,e,f){"use strict";var g,h=b("recoil-oss/adt/Recoil_Loadable").loadableWithError,i=b("recoil-oss/adt/Recoil_Loadable").loadableWithPromise,j=b("recoil-oss/adt/Recoil_Loadable").loadableWithValue;function k(a,b){var c=Array(b.length).fill(void 0),d=Array(b.length).fill(void 0);for(var b=b.entries(),e=Array.isArray(b),f=0,b=e?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=b.length)break;g=b[f++]}else{f=b.next();if(f.done)break;g=f.value}g=g;var h=g[0];g=g[1];try{c[h]=a(g)}catch(a){d[h]=a}}return[c,d]}function l(a){return a!=null&&!b("recoil-shared/util/Recoil_isPromise")(a)}function m(a){return Array.isArray(a)?a:Object.getOwnPropertyNames(a).map(function(b){return a[b]})}function n(a,b){return Array.isArray(a)?b:Object.getOwnPropertyNames(a).reduce(function(a,c,d){return babelHelpers["extends"]({},a,(a={},a[c]=b[d],a))},{})}function o(a,c,d){d=d.map(function(a,d){return a==null?j(c[d]):b("recoil-shared/util/Recoil_isPromise")(a)?i(a):h(a)});return n(a,d)}function p(a,b){return b.map(function(b,c){return b===void 0?a[c]:b})}c=(a=b("recoil-oss/recoil_values/Recoil_selectorFamily"))({key:"__waitForNone",get:function(a){return function(b){b=b.get;var c=m(a);b=k(b,c);c=b[0];b=b[1];return o(a,c,b)}},dangerouslyAllowMutability:!0});d=a({key:"__waitForAny",get:function(a){return function(c){c=c.get;var d=m(a);c=k(c,d);var e=c[0],f=c[1];return f.some(function(a){return!b("recoil-shared/util/Recoil_isPromise")(a)})?o(a,e,f):new(g||(g=b("Promise")))(function(c){var d=function(){if(h){if(i>=g.length)return"break";j=g[i++]}else{i=g.next();if(i.done)return"break";j=i.value}var d=j,k=d[0];d=d[1];b("recoil-shared/util/Recoil_isPromise")(d)&&d.then(function(b){e[k]=b,f[k]=void 0,c(o(a,e,f))})["catch"](function(b){f[k]=b,c(o(a,e,f))})};for(var g=f.entries(),h=Array.isArray(g),i=0,g=h?g:g[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var j,k=d();if(k==="break")break}})}},dangerouslyAllowMutability:!0});f=a({key:"__waitForAll",get:function(a){return function(c){c=c.get;var d=m(a);c=k(c,d);var e=c[0];d=c[1];if(d.every(function(a){return a==null}))return n(a,e);c=d.find(l);if(c!=null)throw c;return(g||(g=b("Promise"))).all(d).then(function(b){return n(a,p(e,b))})}},dangerouslyAllowMutability:!0});var q=a({key:"__waitForAllSettled",get:function(a){return function(c){c=c.get;var d=m(a);c=k(c,d);var e=c[0],f=c[1];return f.every(function(a){return!b("recoil-shared/util/Recoil_isPromise")(a)})?o(a,e,f):(g||(g=b("Promise"))).all(f.map(function(a,c){return b("recoil-shared/util/Recoil_isPromise")(a)?a.then(function(a){e[c]=a,f[c]=void 0})["catch"](function(a){e[c]=void 0,f[c]=a}):null})).then(function(){return o(a,e,f)})}},dangerouslyAllowMutability:!0});a=a({key:"__noWait",get:function(a){return function(c){c=c.get;try{return b("recoil-oss/recoil_values/Recoil_selector").value(j(c(a)))}catch(a){return b("recoil-oss/recoil_values/Recoil_selector").value(b("recoil-shared/util/Recoil_isPromise")(a)?i(a):h(a))}}},dangerouslyAllowMutability:!0});e.exports={waitForNone:c,waitForAny:d,waitForAll:f,waitForAllSettled:q,noWait:a}}),null); __d("Recoil_ScopedAtomTaggedValue",[],(function(a,b,c,d,e,f){"use strict";a=function(a){this.entries=a};f["default"]=a}),66); __d("recoil-oss/adt/Recoil_ArrayKeyedMap",[],(function(a,b,c,d,e,f){"use strict";var g={},h=new Map();a=function(){function a(b){this.$1=new Map();if(b instanceof a)for(var c=b.entries(),d=Array.isArray(c),e=0,c=d?c:c[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(d){if(e>=c.length)break;f=c[e++]}else{e=c.next();if(e.done)break;f=e.value}f=f;var g=f[0];f=f[1];this.set(g,f)}else if(b)for(g=b,f=Array.isArray(g),e=0,g=f?g:g[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){if(f){if(e>=g.length)break;d=g[e++]}else{e=g.next();if(e.done)break;d=e.value}c=d;b=c[0];d=c[1];this.set(b,d)}return this}var b=a.prototype;b.get=function(a){a=Array.isArray(a)?a:[a];var b=this.$1;a.forEach(function(a){b=(a=b.get(a))!=null?a:h});return b===void 0?void 0:b.get(g)};b.set=function(a,b){a=Array.isArray(a)?a:[a];var c=this.$1,d=c;a.forEach(function(a){d=c.get(a),d||(d=new Map(),c.set(a,d)),c=d});d.set(g,b);return this};b["delete"]=function(a){a=Array.isArray(a)?a:[a];var b=this.$1,c=b;a.forEach(function(a){c=b.get(a),c||(c=new Map(),b.set(a,c)),b=c});c["delete"](g);return this};b.entries=function(){var a=[];function b(c,d){c.forEach(function(c,e){e===g?a.push([d,c]):b(c,d.concat(e))})}b(this.$1,[]);return a.values()};b.toBuiltInMap=function(){return new Map(this.entries())};return a}();e.exports={ArrayKeyedMap:a}}),null); __d("Recoil_ScopedAtom",["Recoil_ScopedAtomTaggedValue","recoil-oss/adt/Recoil_ArrayKeyedMap","recoil-oss/core/Recoil_Node","recoil-oss/recoil_values/Recoil_WaitFor","recoil-oss/recoil_values/Recoil_atom","recoil-oss/recoil_values/Recoil_selector","recoil-oss/recoil_values/Recoil_selectorFamily","recoil-shared/util/Recoil_mapIterable","recoil-shared/util/Recoil_stableStringify"],(function(a,b,c,d,e,f,g){"use strict";function h(a){return a.map(function(a){var b=a[0];a=a[1];return[b,new(d("recoil-oss/adt/Recoil_ArrayKeyedMap").ArrayKeyedMap)(a)]})}function i(a){return a.map(function(a){return typeof a==="string"||typeof a==="number"||typeof a==="boolean"||a==null?a:c("recoil-shared/util/Recoil_stableStringify")(a)})}function j(a,b,e){if(!(b instanceof c("Recoil_ScopedAtomTaggedValue")))return b;for(var b=b.entries,f=Array.isArray(b),g=0,b=f?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var h;if(f){if(g>=b.length)break;h=b[g++]}else{g=b.next();if(g.done)break;h=g.value}h=h;var j=h[0];h=h[1];h=h.get(i(e[j]));if(h!==void 0)return h instanceof d("recoil-oss/core/Recoil_Node").DefaultValue?a:h}return a}function k(a,b,e){b=b instanceof c("Recoil_ScopedAtomTaggedValue")?b.entries:[];var f=e.length-1;e=i(e[f]);var g=h(b);b.length>0&&b[0][0]===f?g[0][1].set(e,a):g.unshift([f,new(d("recoil-oss/adt/Recoil_ArrayKeyedMap").ArrayKeyedMap)().set(e,a)]);return new(c("Recoil_ScopedAtomTaggedValue"))(g)}function l(a,b){if(a===null||a===void 0)return void 0;var e=a;return babelHelpers["extends"]({},a,{validator:function(a){if(a instanceof c("Recoil_ScopedAtomTaggedValue"))return new(c("Recoil_ScopedAtomTaggedValue"))(a.entries.filter(function(a){var b=a[0];a=a[1];return typeof b==="number"&&a instanceof d("recoil-oss/adt/Recoil_ArrayKeyedMap").ArrayKeyedMap}).map(function(a){var f=a[0];a=a[1];return[f,new(d("recoil-oss/adt/Recoil_ArrayKeyedMap").ArrayKeyedMap)(c("recoil-shared/util/Recoil_mapIterable")(a.entries(),function(a){var c=a[0];a=a[1];a=e.validator(a,d("recoil-oss/core/Recoil_Node").DEFAULT_VALUE);return[c,a instanceof d("recoil-oss/core/Recoil_Node").DefaultValue?b:a]}))]}));else return e.validator(a,d("recoil-oss/core/Recoil_Node").DEFAULT_VALUE)}})}function a(a){var b=a.scopeRules_APPEND_ONLY_READ_THE_DOCS,e=babelHelpers.objectWithoutPropertiesLoose(a,["scopeRules_APPEND_ONLY_READ_THE_DOCS"]),f=b.map(function(a){return Array.isArray(a)?d("recoil-oss/recoil_values/Recoil_WaitFor").waitForAll(a):a}),g=c("recoil-oss/recoil_values/Recoil_atom")(babelHelpers["extends"]({},e,{"default":new(c("Recoil_ScopedAtomTaggedValue"))([]),persistence_UNSTABLE:l(e.persistence_UNSTABLE,e["default"]),dangerouslyAllowMutability:e.dangerouslyAllowMutability,effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}));return c("recoil-oss/recoil_values/Recoil_selector")({key:e.key+"__scopedAtom",get:function(a){a=a.get;return j(e["default"],a(g),a(d("recoil-oss/recoil_values/Recoil_WaitFor").waitForAll(f)))},set:function(a,b){var c=a.set,e=a.get;return c(g,function(a){return k(b,a,e(d("recoil-oss/recoil_values/Recoil_WaitFor").waitForAll(f)))})},dangerouslyAllowMutability:e.dangerouslyAllowMutability})}function m(a){return a.map(function(a){return Array.isArray(a)?function(b){return d("recoil-oss/recoil_values/Recoil_WaitFor").waitForAll(a.map(function(a){return typeof a==="function"?a(b):a}))}:function(){return a}})}function b(a){var b=a.scopeRules_APPEND_ONLY_READ_THE_DOCS,e=babelHelpers.objectWithoutPropertiesLoose(a,["scopeRules_APPEND_ONLY_READ_THE_DOCS"]),f=m(b),g=c("recoil-oss/recoil_values/Recoil_atom")(babelHelpers["extends"]({},e,{"default":new(c("Recoil_ScopedAtomTaggedValue"))([]),persistence_UNSTABLE:l(e.persistence_UNSTABLE,e["default"]),dangerouslyAllowMutability:e.dangerouslyAllowMutability,effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}));return c("recoil-oss/recoil_values/Recoil_selectorFamily")({key:e.key+"__scopedAtom",get:function(a){return function(b){b=b.get;return j(e["default"],b(g),b(d("recoil-oss/recoil_values/Recoil_WaitFor").waitForAll(f.map(function(b){return b(a)}))))}},set:function(a){return function(b,c){var e=b.set,h=b.get;return e(g,function(b){return k(c,b,h(d("recoil-oss/recoil_values/Recoil_WaitFor").waitForAll(f.map(function(b){return b(a)}))))})}},dangerouslyAllowMutability:e.dangerouslyAllowMutability})}g.scopedAtom=a;g.parameterizedScopedAtomLegacy=b}),98); __d("recoil-oss/recoil_values/Recoil_atom",["Promise","Recoil_ScopedAtom","recoil-oss/adt/Recoil_Loadable","recoil-oss/adt/Recoil_Wrapper","recoil-oss/core/Recoil_FunctionalCore","recoil-oss/core/Recoil_Node","recoil-oss/core/Recoil_RecoilValue","recoil-oss/core/Recoil_RecoilValueInterface","recoil-oss/core/Recoil_Retention","recoil-oss/recoil_values/Recoil_selector","recoil-shared/util/Recoil_deepFreezeValue","recoil-shared/util/Recoil_err","recoil-shared/util/Recoil_expectationViolation","recoil-shared/util/Recoil_isPromise","recoil-shared/util/Recoil_nullthrows","recoil-shared/util/Recoil_recoverableViolation"],(function(a,b,c,d,e,f){"use strict";var g,h=b("Recoil_ScopedAtom").scopedAtom,i=(a=b("recoil-oss/adt/Recoil_Loadable")).isLoadable,j=a.loadableWithError,k=a.loadableWithPromise,l=a.loadableWithValue,m=b("recoil-oss/adt/Recoil_Wrapper").WrappedValue,n=b("recoil-oss/core/Recoil_FunctionalCore").peekNodeInfo,o=(c=b("recoil-oss/core/Recoil_Node")).DEFAULT_VALUE,p=c.DefaultValue,q=c.getConfigDeletionHandler,r=c.registerNode,s=c.setConfigDeletionHandler,t=b("recoil-oss/core/Recoil_RecoilValue").isRecoilValue,u=(d=b("recoil-oss/core/Recoil_RecoilValueInterface")).getRecoilValueAsLoadable,v=d.markRecoilValueModified,w=d.setRecoilValue,x=d.setRecoilValueLoadable,y=b("recoil-oss/core/Recoil_Retention").retainedByOptionWithDefault,z=function(a){return a instanceof m?a.value:a};function A(a){var c=a.key,d=a.persistence_UNSTABLE,e=y(a.retainedBy_UNSTABLE),f=0;function g(a){return k(a.then(function(a){h=l(a);return a})["catch"](function(a){h=j(a);throw a}))}var h=b("recoil-shared/util/Recoil_isPromise")(a["default"])?g(a["default"]):i(a["default"])?a["default"].state==="loading"?g(a["default"].contents):a["default"]:l(z(a["default"]));t(h.contents);var m=void 0,s=new Map();function t(a){return a}function A(a,b){var d=b.then(function(b){var e;e=(e=a.getState().nextTree)!=null?e:a.getState().currentTree;((e=e.atomValues.get(c))==null?void 0:e.contents)===d&&(v(a,H),w(a,H,b));return b})["catch"](function(b){var e;e=(e=a.getState().nextTree)!=null?e:a.getState().currentTree;((e=e.atomValues.get(c))==null?void 0:e.contents)===d&&(v(a,H),x(a,H,j(b)));throw b});return d}function B(d,e,g){f++;var i=function(){var a;f--;(a=s.get(d))==null?void 0:a.forEach(function(a){return a()});s["delete"](d)};d.getState().knownAtoms.add(c);if(h.state==="loading"){var m=function(){var a;a=(a=d.getState().nextTree)!=null?a:d.getState().currentTree;a.atomValues.has(c)||v(d,H)};h.contents["finally"](m)}m=(m=a.effects)!=null?m:a.effects_UNSTABLE;if(m!=null){var q=function(a){if(B&&a.key===c){var f=y;return f instanceof p?C(d,e):b("recoil-shared/util/Recoil_isPromise")(f)?k(f.then(function(a){return a instanceof p?h.toPromise():a})):l(f)}return u(d,a)},r=function(a){return q(a).toPromise()},x=function(a){var b;b=n(d,(b=d.getState().nextTree)!=null?b:d.getState().currentTree,a.key);return B&&a.key===c&&!(y instanceof p)?babelHelpers["extends"]({},b,{isSet:!0,loadable:q(a)}):b},y=o,B=!0,D=!1,E=null,F=function(a){return function(c){if(B){var e=q(H);e=e.state==="hasValue"?e.contents:o;y=typeof c==="function"?c(e):c;b("recoil-shared/util/Recoil_isPromise")(y)&&(y=y.then(function(b){E={effect:a,value:b};return b}))}else{if(b("recoil-shared/util/Recoil_isPromise")(c))throw b("recoil-shared/util/Recoil_err")("Setting atoms to async values is not implemented.");typeof c!=="function"&&(E={effect:a,value:z(c)});w(d,H,typeof c==="function"?function(d){d=c(d);if(b("recoil-shared/util/Recoil_isPromise")(d))throw b("recoil-shared/util/Recoil_err")("Setting atoms to async values is not yet implemented.");d=z(d);E={effect:a,value:d};return d}:z(c))}}},G=function(a){return function(){return F(a)(o)}},I=function(a){return function(e){var f,g=d.subscribeToTransactions(function(d){var f;d=d.getState();var g=d.currentTree;d=d.previousTree;d||(b("recoil-shared/util/Recoil_recoverableViolation")("Transaction subscribers notified without a next tree being present -- this is a bug in Recoil","recoil"),d=g);f=(f=g.atomValues.get(c))!=null?f:h;if(f.state==="hasValue"){var i;f=f.contents;d=(d=d.atomValues.get(c))!=null?d:h;d=d.state==="hasValue"?d.contents:o;((i=E)==null?void 0:i.effect)!==a||((i=E)==null?void 0:i.value)!==f?e(f,d,!g.atomValues.has(c)):((i=E)==null?void 0:i.effect)===a&&(E=null)}},c);g=g.release;s.set(d,[].concat((f=s.get(d))!=null?f:[],[g]))}};for(var m=m,J=Array.isArray(m),K=0,m=J?m:m[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var L;if(J){if(K>=m.length)break;L=m[K++]}else{K=m.next();if(K.done)break;L=K.value}L=L;try{L=L({node:H,storeID:d.storeID,parentStoreID_UNSTABLE:d.parentStoreID,trigger:g,setSelf:F(L),resetSelf:G(L),onSet:I(L),getPromise:r,getLoadable:q,getInfo_UNSTABLE:x});if(L!=null){var M;s.set(d,[].concat((M=s.get(d))!=null?M:[],[L]))}}catch(a){y=a,D=!0}}B=!1;if(!(y instanceof p)){M=D?j(y):b("recoil-shared/util/Recoil_isPromise")(y)?k(A(d,y)):l(z(y));t(M.contents);e.atomValues.set(c,M);(L=d.getState().nextTree)==null?void 0:L.atomValues.set(c,M)}}return i}function C(a,b){return(b=(a=b.atomValues.get(c))!=null?a:m)!=null?b:h}function D(a,e){if(e.atomValues.has(c))return b("recoil-shared/util/Recoil_nullthrows")(e.atomValues.get(c));else if(e.nonvalidatedAtoms.has(c)){if(m!=null)return m;if(d==null){b("recoil-shared/util/Recoil_expectationViolation")("Tried to restore a persisted value for atom "+c+" but it has no persistence settings.");return h}a=e.nonvalidatedAtoms.get(c);e=d.validator(a,o);a=e instanceof p?h:l(e);m=a;return m}else return h}function E(){m=void 0}function F(a,d,e){if(d.atomValues.has(c)){a=b("recoil-shared/util/Recoil_nullthrows")(d.atomValues.get(c));if(a.state==="hasValue"&&e===a.contents)return new Map()}else if(!d.nonvalidatedAtoms.has(c)&&e instanceof p)return new Map();t(e);m=void 0;return new Map().set(c,l(e))}function G(){return q(c)!==void 0&&f<=0}var H=r({key:c,nodeType:"atom",peek:C,get:D,set:F,init:B,invalidate:E,shouldDeleteConfigOnRelease:G,dangerouslyAllowMutability:a.dangerouslyAllowMutability,persistence_UNSTABLE:a.persistence_UNSTABLE?{type:a.persistence_UNSTABLE.type,backButton:a.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:e});return H}function B(a){var c=a.scopeRules_APPEND_ONLY_READ_THE_DOCS,d=babelHelpers.objectWithoutPropertiesLoose(a,["scopeRules_APPEND_ONLY_READ_THE_DOCS"]);a="default"in a?a["default"]:new(g||(g=b("Promise")))(function(){});if(t(a)||b("recoil-shared/util/Recoil_isPromise")(a)&&c||i(a)&&c)return C(babelHelpers["extends"]({},d,{"default":a,scopeRules_APPEND_ONLY_READ_THE_DOCS:c}));else if(c&&!b("recoil-shared/util/Recoil_isPromise")(a)&&!i(a))return h(babelHelpers["extends"]({},d,{"default":z(a),scopeRules_APPEND_ONLY_READ_THE_DOCS:c}));else return A(babelHelpers["extends"]({},d,{"default":a}))}function C(a){var c=B(babelHelpers["extends"]({},a,{"default":o,persistence_UNSTABLE:a.persistence_UNSTABLE===void 0?void 0:babelHelpers["extends"]({},a.persistence_UNSTABLE,{validator:function(c){return c instanceof p?c:b("recoil-shared/util/Recoil_nullthrows")(a.persistence_UNSTABLE).validator(c,o)}}),effects:a.effects,effects_UNSTABLE:a.effects_UNSTABLE})),d=b("recoil-oss/recoil_values/Recoil_selector")({key:a.key+"__withFallback",get:function(b){b=b.get;b=b(c);return b instanceof p?a["default"]:b},set:function(a,b){a=a.set;return a(c,b)},cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:a.dangerouslyAllowMutability});s(d.key,q(a.key));return d}B.value=function(a){return new m(a)};e.exports=B}),null); __d("recoil-oss/recoil_values/Recoil_atomFamily",["Promise","recoil-oss/caches/Recoil_cacheFromPolicy","recoil-oss/core/Recoil_Node","recoil-oss/recoil_values/Recoil_atom","recoil-shared/util/Recoil_stableStringify"],(function(a,b,c,d,e,f){"use strict";var g,h=b("recoil-oss/core/Recoil_Node").setConfigDeletionHandler;function i(a,b){return a==null?void 0:a.map(function(a){return Array.isArray(a)?a.map(function(a){return typeof a==="function"?a(b):a}):a})}function a(a){var c,d=b("recoil-oss/caches/Recoil_cacheFromPolicy")({equality:(c=(c=a.cachePolicyForParams_UNSTABLE)==null?void 0:c.equality)!=null?c:"value",eviction:"keep-all"});return function(c){var e=d.get(c);if(e!=null)return e;a.cachePolicyForParams_UNSTABLE;e=babelHelpers.objectWithoutPropertiesLoose(a,["cachePolicyForParams_UNSTABLE"]);var f="default"in a?a["default"]:new(g||(g=b("Promise")))(function(){});f=b("recoil-oss/recoil_values/Recoil_atom")(babelHelpers["extends"]({},e,{key:a.key+"__"+((e=b("recoil-shared/util/Recoil_stableStringify")(c))!=null?e:"void"),"default":typeof f==="function"?f(c):f,retainedBy_UNSTABLE:typeof a.retainedBy_UNSTABLE==="function"?a.retainedBy_UNSTABLE(c):a.retainedBy_UNSTABLE,effects:typeof a.effects==="function"?a.effects(c):typeof a.effects_UNSTABLE==="function"?a.effects_UNSTABLE(c):(e=a.effects)!=null?e:a.effects_UNSTABLE,scopeRules_APPEND_ONLY_READ_THE_DOCS:i(a.scopeRules_APPEND_ONLY_READ_THE_DOCS,c)}));d.set(c,f);h(f.key,function(){d["delete"](c)});return f}}e.exports=a}),null); __d("recoil-oss/recoil_values/Recoil_constSelector",["recoil-oss/recoil_values/Recoil_selectorFamily"],(function(a,b,c,d,e,f){"use strict";var g=b("recoil-oss/recoil_values/Recoil_selectorFamily")({key:"__constant",get:function(a){return function(){return a}},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function a(a){return g(a)}e.exports=a}),null); __d("recoil-oss/recoil_values/Recoil_errorSelector",["recoil-oss/recoil_values/Recoil_selectorFamily","recoil-shared/util/Recoil_err"],(function(a,b,c,d,e,f){"use strict";var g=b("recoil-oss/recoil_values/Recoil_selectorFamily")({key:"__error",get:function(a){return function(){throw b("recoil-shared/util/Recoil_err")(a)}},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function a(a){return g(a)}e.exports=a}),null); __d("recoil-oss/recoil_values/Recoil_readOnlySelector",[],(function(a,b,c,d,e,f){"use strict";function a(a){return a}e.exports=a}),null); __d("recoil-oss",["recoil-oss/adt/Recoil_Loadable","recoil-oss/core/Recoil_Node","recoil-oss/core/Recoil_RecoilRoot","recoil-oss/core/Recoil_RecoilValue","recoil-oss/core/Recoil_RetentionZone","recoil-oss/core/Recoil_Snapshot","recoil-oss/hooks/Recoil_Hooks","recoil-oss/hooks/Recoil_SnapshotHooks","recoil-oss/hooks/Recoil_useGetRecoilValueInfo","recoil-oss/hooks/Recoil_useRecoilBridgeAcrossReactRoots","recoil-oss/hooks/Recoil_useRecoilCallback","recoil-oss/hooks/Recoil_useRecoilRefresher","recoil-oss/hooks/Recoil_useRecoilTransaction","recoil-oss/hooks/Recoil_useRetain","recoil-oss/recoil_values/Recoil_WaitFor","recoil-oss/recoil_values/Recoil_atom","recoil-oss/recoil_values/Recoil_atomFamily","recoil-oss/recoil_values/Recoil_constSelector","recoil-oss/recoil_values/Recoil_errorSelector","recoil-oss/recoil_values/Recoil_readOnlySelector","recoil-oss/recoil_values/Recoil_selector","recoil-oss/recoil_values/Recoil_selectorFamily","recoil-shared/util/Recoil_RecoilEnv"],(function(a,b,c,d,e,f){"use strict";var g,h;a=b("recoil-oss/adt/Recoil_Loadable").RecoilLoadable;c=b("recoil-oss/core/Recoil_Node").DefaultValue;d=b("recoil-oss/core/Recoil_RecoilRoot").RecoilRoot;f=b("recoil-oss/core/Recoil_RecoilRoot").useRecoilStoreID;var i=b("recoil-oss/core/Recoil_RecoilValue").isRecoilValue,j=b("recoil-oss/core/Recoil_RetentionZone").retentionZone,k=b("recoil-oss/core/Recoil_Snapshot").freshSnapshot,l=(g=b("recoil-oss/hooks/Recoil_Hooks")).useRecoilState,m=g.useRecoilState_TRANSITION_SUPPORT_UNSTABLE,n=g.useRecoilStateLoadable,o=g.useRecoilValue,p=g.useRecoilValue_TRANSITION_SUPPORT_UNSTABLE,q=g.useRecoilValueLoadable,r=g.useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE,s=g.useResetRecoilState;g=g.useSetRecoilState;var t=b("recoil-oss/hooks/Recoil_SnapshotHooks").useGotoRecoilSnapshot,u=b("recoil-oss/hooks/Recoil_SnapshotHooks").useRecoilSnapshot,v=b("recoil-oss/hooks/Recoil_SnapshotHooks").useRecoilTransactionObserver,w=b("recoil-oss/hooks/Recoil_useRecoilCallback").useRecoilCallback,x=(h=b("recoil-oss/recoil_values/Recoil_WaitFor")).noWait,y=h.waitForAll,z=h.waitForAllSettled,A=h.waitForAny;h=h.waitForNone;e.exports={DefaultValue:c,isRecoilValue:i,RecoilLoadable:a,RecoilEnv:b("recoil-shared/util/Recoil_RecoilEnv"),RecoilRoot:d,useRecoilStoreID:f,useRecoilBridgeAcrossReactRoots_UNSTABLE:b("recoil-oss/hooks/Recoil_useRecoilBridgeAcrossReactRoots"),atom:b("recoil-oss/recoil_values/Recoil_atom"),selector:b("recoil-oss/recoil_values/Recoil_selector"),atomFamily:b("recoil-oss/recoil_values/Recoil_atomFamily"),selectorFamily:b("recoil-oss/recoil_values/Recoil_selectorFamily"),constSelector:b("recoil-oss/recoil_values/Recoil_constSelector"),errorSelector:b("recoil-oss/recoil_values/Recoil_errorSelector"),readOnlySelector:b("recoil-oss/recoil_values/Recoil_readOnlySelector"),noWait:x,waitForNone:h,waitForAny:A,waitForAll:y,waitForAllSettled:z,useRecoilValue:o,useRecoilValueLoadable:q,useRecoilState:l,useRecoilStateLoadable:n,useSetRecoilState:g,useResetRecoilState:s,useGetRecoilValueInfo_UNSTABLE:b("recoil-oss/hooks/Recoil_useGetRecoilValueInfo"),useRecoilRefresher_UNSTABLE:b("recoil-oss/hooks/Recoil_useRecoilRefresher"),useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:r,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:p,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:m,useRecoilCallback:w,useRecoilTransaction_UNSTABLE:b("recoil-oss/hooks/Recoil_useRecoilTransaction"),useGotoRecoilSnapshot:t,useRecoilSnapshot:u,useRecoilTransactionObserver_UNSTABLE:v,snapshot_UNSTABLE:k,useRetain:b("recoil-oss/hooks/Recoil_useRetain"),retentionZone:j}}),null); __d("Recoil",["recoil-oss"],(function(a,b,c,d,e,f,g){"use strict";g.DefaultValue=(a=d("recoil-oss")).DefaultValue;g.RecoilEnv=a.RecoilEnv;g.RecoilLoadable=a.RecoilLoadable;g.RecoilRoot=a.RecoilRoot;g.atom=a.atom;g.atomFamily=a.atomFamily;g.constSelector=a.constSelector;g.errorSelector=a.errorSelector;g.isRecoilValue=a.isRecoilValue;g.noWait=a.noWait;g.readOnlySelector=a.readOnlySelector;g.retentionZone=a.retentionZone;g.selector=a.selector;g.selectorFamily=a.selectorFamily;g.snapshot_UNSTABLE=a.snapshot_UNSTABLE;g.useGetRecoilValueInfo_UNSTABLE=a.useGetRecoilValueInfo_UNSTABLE;g.useGotoRecoilSnapshot=a.useGotoRecoilSnapshot;g.useRecoilBridgeAcrossReactRoots_UNSTABLE=a.useRecoilBridgeAcrossReactRoots_UNSTABLE;g.useRecoilCallback=a.useRecoilCallback;g.useRecoilRefresher_UNSTABLE=a.useRecoilRefresher_UNSTABLE;g.useRecoilSnapshot=a.useRecoilSnapshot;g.useRecoilState=a.useRecoilState;g.useRecoilState_TRANSITION_SUPPORT_UNSTABLE=a.useRecoilState_TRANSITION_SUPPORT_UNSTABLE;g.useRecoilStateLoadable=a.useRecoilStateLoadable;g.useRecoilStoreID=a.useRecoilStoreID;g.useRecoilTransaction_UNSTABLE=a.useRecoilTransaction_UNSTABLE;g.useRecoilTransactionObserver_UNSTABLE=a.useRecoilTransactionObserver_UNSTABLE;g.useRecoilValue=a.useRecoilValue;g.useRecoilValue_TRANSITION_SUPPORT_UNSTABLE=a.useRecoilValue_TRANSITION_SUPPORT_UNSTABLE;g.useRecoilValueLoadable=a.useRecoilValueLoadable;g.useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE=a.useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE;g.useResetRecoilState=a.useResetRecoilState;g.useRetain=a.useRetain;g.useSetRecoilState=a.useSetRecoilState;g.waitForAll=a.waitForAll;g.waitForAllSettled=a.waitForAllSettled;g.waitForAny=a.waitForAny;g.waitForNone=a.waitForNone}),98);