"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_p)}catch(e){console.error(e)}}_p(),Sf.exports=rt;var Rp=Sf.exports;const Vm=sf(Rp);var Ep={};function zm(e){const t=new Error(e);if(t.stack===void 0)try{throw t}catch{}return t}var Dm=zm,X=Dm;function Om(e){return!!e&&typeof e.then=="function"}var ae=Om;function Um(e,t){if(e!=null)return e;throw X(t??"Got unexpected null or undefined")}var ve=Um;function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class li{getValue(){throw X("BaseLoadable")}toPromise(){throw X("BaseLoadable")}valueMaybe(){throw X("BaseLoadable")}valueOrThrow(){throw X(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw X("BaseLoadable")}promiseOrThrow(){throw X(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw X("BaseLoadable")}errorOrThrow(){throw X(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw X("BaseLoadable")}}class Fm extends li{constructor(t){super(),Z(this,"state","hasValue"),Z(this,"contents",void 0),this.contents=t}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(t){try{const n=t(this.contents);return ae(n)?xn(n):fr(n)?n:Ro(n)}catch(n){return ae(n)?xn(n.next(()=>this.map(t))):ii(n)}}}class Bm extends li{constructor(t){super(),Z(this,"state","hasError"),Z(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(t){return this}}class kp extends li{constructor(t){super(),Z(this,"state","loading"),Z(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(t){return xn(this.contents.then(n=>{const r=t(n);if(fr(r)){const o=r;switch(o.state){case"hasValue":return o.contents;case"hasError":throw o.contents;case"loading":return o.contents}}return r}).catch(n=>{if(ae(n))return n.then(()=>this.map(t).contents);throw n}))}}function Ro(e){return Object.freeze(new Fm(e))}function ii(e){return Object.freeze(new Bm(e))}function xn(e){return Object.freeze(new kp(e))}function Tp(){return Object.freeze(new kp(new Promise(()=>{})))}function jm(e){return e.every(t=>t.state==="hasValue")?Ro(e.map(t=>t.contents)):e.some(t=>t.state==="hasError")?ii(ve(e.find(t=>t.state==="hasError"),"Invalid loadable passed to loadableAll").contents):xn(Promise.all(e.map(t=>t.contents)))}function Cp(e){const n=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(o=>e[o])).map(o=>fr(o)?o:ae(o)?xn(o):Ro(o)),r=jm(n);return Array.isArray(e)?r:r.map(o=>Object.getOwnPropertyNames(e).reduce((l,i,u)=>({...l,[i]:o[u]}),{}))}function fr(e){return e instanceof li}const Wm={of:e=>ae(e)?xn(e):fr(e)?e:Ro(e),error:e=>ii(e),loading:()=>Tp(),all:Cp,isLoadable:fr};var In={loadableWithValue:Ro,loadableWithError:ii,loadableWithPromise:xn,loadableLoading:Tp,loadableAll:Cp,isLoadable:fr,RecoilLoadable:Wm},Hm=In.loadableWithValue,bm=In.loadableWithError,Km=In.loadableWithPromise,Gm=In.loadableLoading,Qm=In.loadableAll,Zm=In.isLoadable,Ym=In.RecoilLoadable,Eo=Object.freeze({__proto__:null,loadableWithValue:Hm,loadableWithError:bm,loadableWithPromise:Km,loadableLoading:Gm,loadableAll:Qm,isLoadable:Zm,RecoilLoadable:Ym});const ns={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0,RECOIL_GKS_ENABLED:new Set(["recoil_hamt_2020","recoil_sync_external_store","recoil_suppress_rerender_in_callback","recoil_memory_managament_2020"])};function Xm(e,t){var n,r;const o=(n=Ep[e])===null||n===void 0||(r=n.toLowerCase())===null||r===void 0?void 0:r.trim();if(o==null||o==="")return;if(!["true","false"].includes(o))throw X(`process.env.${e} value must be 'true', 'false', or empty: ${o}`);t(o==="true")}function qm(e,t){var n;const r=(n=Ep[e])===null||n===void 0?void 0:n.trim();r==null||r===""||t(r.split(/\s*,\s*|\s+/))}function Jm(){var e;typeof process>"u"||((e=process)===null||e===void 0?void 0:e.env)!=null&&(Xm("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",t=>{ns.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=t}),qm("RECOIL_GKS_ENABLED",t=>{t.forEach(n=>{ns.RECOIL_GKS_ENABLED.add(n)})}))}Jm();var Sr=ns;function ui(e){return Sr.RECOIL_GKS_ENABLED.has(e)}ui.setPass=e=>{Sr.RECOIL_GKS_ENABLED.add(e)};ui.setFail=e=>{Sr.RECOIL_GKS_ENABLED.delete(e)};ui.clear=()=>{Sr.RECOIL_GKS_ENABLED.clear()};var ie=ui;function e1(e,t,{error:n}={}){return null}var t1=e1,ia=t1,eu,tu,nu;const n1=(eu=me.createMutableSource)!==null&&eu!==void 0?eu:me.unstable_createMutableSource,Np=(tu=me.useMutableSource)!==null&&tu!==void 0?tu:me.unstable_useMutableSource,Lp=(nu=me.useSyncExternalStore)!==null&&nu!==void 0?nu:me.unstable_useSyncExternalStore;function r1(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;return((e=t==null?void 0:t.current)!==null&&e!==void 0?e:n.currentDispatcher).useSyncExternalStore!=null}function o1(){return ie("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:ie("recoil_sync_external_store")&&Lp!=null?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:ie("recoil_mutable_source")&&Np!=null&&typeof window<"u"&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?ie("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:ie("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}}function l1(){return!1}var ko={createMutableSource:n1,useMutableSource:Np,useSyncExternalStore:Lp,currentRendererSupportsUseSyncExternalStore:r1,reactMode:o1,isFastRefreshEnabled:l1};class ua{constructor(t){Z(this,"key",void 0),this.key=t}toJSON(){return{key:this.key}}}class Ap extends ua{}class xp extends ua{}function i1(e){return e instanceof Ap||e instanceof xp}var si={AbstractRecoilValue:ua,RecoilState:Ap,RecoilValueReadOnly:xp,isRecoilValue:i1},u1=si.AbstractRecoilValue,s1=si.RecoilState,a1=si.RecoilValueReadOnly,c1=si.isRecoilValue,dr=Object.freeze({__proto__:null,AbstractRecoilValue:u1,RecoilState:s1,RecoilValueReadOnly:a1,isRecoilValue:c1});function f1(e,t){return function*(){let n=0;for(const r of e)yield t(r,n++)}()}var ai=f1;class Mp{}const d1=new Mp,Mn=new Map,sa=new Map;function p1(e){return ai(e,t=>ve(sa.get(t)))}function h1(e){if(Mn.has(e)){const t=`Duplicate atom key "${e}". This is a FATAL ERROR in
production. But it is safe to ignore this warning if it occurred because of
- hot module replacement.`;console.warn(t)}}function v1(e){Sr.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&h1(e.key),Mn.set(e.key,e);const t=e.set==null?new dr.RecoilValueReadOnly(e.key):new dr.RecoilState(e.key);return sa.set(e.key,t),t}class Pp extends Error{}function m1(e){const t=Mn.get(e);if(t==null)throw new Pp(`Missing definition for RecoilValue: "${e}""`);return t}function y1(e){return Mn.get(e)}const Ol=new Map;function g1(e){var t;if(!ie("recoil_memory_managament_2020"))return;const n=Mn.get(e);if(n!=null&&(t=n.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(n)){var r;Mn.delete(e),(r=$p(e))===null||r===void 0||r(),Ol.delete(e)}}function S1(e,t){ie("recoil_memory_managament_2020")&&(t===void 0?Ol.delete(e):Ol.set(e,t))}function $p(e){return Ol.get(e)}var Ye={nodes:Mn,recoilValues:sa,registerNode:v1,getNode:m1,getNodeMaybe:y1,deleteNodeConfigIfPossible:g1,setConfigDeletionHandler:S1,getConfigDeletionHandler:$p,recoilValuesForKeys:p1,NodeMissingError:Pp,DefaultValue:Mp,DEFAULT_VALUE:d1};function w1(e,t){t()}var _1={enqueueExecution:w1};function R1(e,t){return t={exports:{}},e(t,t.exports),t.exports}var E1=R1(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},n={},r=5,o=Math.pow(2,r),l=o-1,i=o/2,u=o/4,s={},a=function(v){return function(){return v}},d=n.hash=function(g){var v=typeof g>"u"?"undefined":t(g);if(v==="number")return g;v!=="string"&&(g+="");for(var T=0,M=0,P=g.length;M>1&1431655765,v=(v&858993459)+(v>>2&858993459),v=v+(v>>4)&252645135,v+=v>>8,v+=v>>16,v&127},m=function(v,T){return T>>>v&l},_=function(v){return 1<=T;)P[Q--]=P[Q];return P[T]=M,P}for(var b=0,K=0,q=new Array(O+1);b>>=1;return Q[T]=M,fe(v,K+1,Q)},$e=function(v,T,M,P){for(var O=new Array(T-1),Q=0,b=0,K=0,q=P.length;K1?te(v,this.hash,q):q[0]}var pe=P();return pe===s?this:(++b.value,Mt(v,M,this.hash,this,O,V(v,O,Q,pe)))},I=function(v,T,M,P,O,Q,b){var K=this.mask,q=this.children,pe=m(M,O),We=_(pe),Ne=S(K,We),ut=K&We,vt=ut?q[Ne]:L,zn=vt._modify(v,T,M+r,P,O,Q,b);if(vt===zn)return this;var Po=Xe(v,this),_r=K,Rr=void 0;if(ut&&N(zn)){if(_r&=~We,!_r)return L;if(q.length<=2&<(q[Ne^1]))return q[Ne^1];Rr=B(Po,Ne,q)}else if(!ut&&!N(zn)){if(q.length>=i)return oe(v,pe,zn,K,q);_r|=We,Rr=h(Po,Ne,zn,q)}else Rr=R(Po,Ne,zn,q);return Po?(this.mask=_r,this.children=Rr,this):U(v,_r,Rr)},j=function(v,T,M,P,O,Q,b){var K=this.size,q=this.children,pe=m(M,O),We=q[pe],Ne=(We||L)._modify(v,T,M+r,P,O,Q,b);if(We===Ne)return this;var ut=Xe(v,this),vt=void 0;if(N(We)&&!N(Ne))++K,vt=R(ut,pe,Ne,q);else if(!N(We)&&N(Ne)){if(--K,K<=u)return $e(v,K,pe,q);vt=R(ut,pe,L,q)}else vt=R(ut,pe,Ne,q);return ut?(this.size=K,this.children=vt,this):fe(v,K,vt)};L._modify=function(g,v,T,M,P,O,Q){var b=M();return b===s?L:(++Q.value,V(g,P,O,b))};function y(g,v,T,M,P){this._editable=g,this._edit=v,this._config=T,this._root=M,this._size=P}y.prototype.setTree=function(g,v){return this._editable?(this._root=g,this._size=v,this):g===this._root?this:new y(this._editable,this._edit,this._config,g,v)};var A=n.tryGetHash=function(g,v,T,M){for(var P=M._root,O=0,Q=M._config.keyEq;;)switch(P.type){case c:return Q(T,P.key)?P.value:g;case p:{if(v===P.hash)for(var b=P.children,K=0,q=b.length;K{n.set(o,t(r,o))}),n}var Ul=A1;function x1(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function M1(e){return{nodeDeps:Ul(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:Ul(e.nodeToNodeSubscriptions,t=>new Set(t))}}function ru(e,t,n,r){const{nodeDeps:o,nodeToNodeSubscriptions:l}=n,i=o.get(e);if(i&&r&&i!==r.nodeDeps.get(e))return;o.set(e,t);const u=i==null?t:Yr(t,i);for(const s of u)l.has(s)||l.set(s,new Set),ve(l.get(s)).add(e);if(i){const s=Yr(i,t);for(const a of s){if(!l.has(a))return;const d=ve(l.get(a));d.delete(e),d.size===0&&l.delete(a)}}}function P1(e,t,n,r){var o,l,i,u;const s=n.getState();r===s.currentTree.version||r===((o=s.nextTree)===null||o===void 0?void 0:o.version)||((l=s.previousTree)===null||l===void 0||l.version);const a=n.getGraph(r);if(ru(e,t,a),r===((i=s.previousTree)===null||i===void 0?void 0:i.version)){const f=n.getGraph(s.currentTree.version);ru(e,t,f,a)}if(r===((u=s.previousTree)===null||u===void 0?void 0:u.version)||r===s.currentTree.version){var d;const f=(d=s.nextTree)===null||d===void 0?void 0:d.version;if(f!==void 0){const m=n.getGraph(f);ru(e,t,m,a)}}}var To={cloneGraph:M1,graph:x1,saveDepsToStore:P1};let $1=0;const I1=()=>$1++;let V1=0;const z1=()=>V1++;let D1=0;const O1=()=>D1++;var ci={getNextTreeStateVersion:I1,getNextStoreID:z1,getNextComponentID:O1};const{persistentMap:Dc}=N1,{graph:U1}=To,{getNextTreeStateVersion:Ip}=ci;function Vp(){const e=Ip();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:Dc(),nonvalidatedAtoms:Dc()}}function F1(){const e=Vp();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(e.version,U1()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var zp={makeEmptyTreeState:Vp,makeEmptyStoreState:F1,getNextTreeStateVersion:Ip};class Dp{}function B1(){return new Dp}var fi={RetentionZone:Dp,retentionZone:B1};function j1(e,t){const n=new Set(e);return n.add(t),n}function W1(e,t){const n=new Set(e);return n.delete(t),n}function H1(e,t,n){const r=new Map(e);return r.set(t,n),r}function b1(e,t,n){const r=new Map(e);return r.set(t,n(r.get(t))),r}function K1(e,t){const n=new Map(e);return n.delete(t),n}function G1(e,t){const n=new Map(e);return t.forEach(r=>n.delete(r)),n}var Op={setByAddingToSet:j1,setByDeletingFromSet:W1,mapBySettingInMap:H1,mapByUpdatingInMap:b1,mapByDeletingFromMap:K1,mapByDeletingMultipleFromMap:G1};function*Q1(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)}var fa=Q1;function Z1(e,t){return new Proxy(e,{get:(r,o)=>(!(o in r)&&o in t&&(r[o]=t[o]()),r[o]),ownKeys:r=>Object.keys(r)})}var Up=Z1;const{getNode:Co,getNodeMaybe:Y1,recoilValuesForKeys:Oc}=Ye,{RetentionZone:Uc}=fi,{setByAddingToSet:X1}=Op,q1=Object.freeze(new Set);class J1 extends Error{}function ey(e,t,n){if(!ie("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:r}=e.getState().retention;function o(l){let i=r.get(l);i||r.set(l,i=new Set),i.add(t)}if(n instanceof Uc)o(n);else if(Array.isArray(n))for(const l of n)o(l);return()=>{if(!ie("recoil_memory_managament_2020"))return;const{retention:l}=e.getState();function i(u){const s=l.nodesRetainedByZone.get(u);s==null||s.delete(t),s&&s.size===0&&l.nodesRetainedByZone.delete(u)}if(n instanceof Uc)i(n);else if(Array.isArray(n))for(const u of n)i(u)}}function da(e,t,n,r){const o=e.getState();if(o.nodeCleanupFunctions.has(n))return;const l=Co(n),i=ey(e,n,l.retainedBy),u=l.init(e,t,r);o.nodeCleanupFunctions.set(n,()=>{u(),i()})}function ty(e,t,n){da(e,e.getState().currentTree,t,n)}function ny(e,t){var n;const r=e.getState();(n=r.nodeCleanupFunctions.get(t))===null||n===void 0||n(),r.nodeCleanupFunctions.delete(t)}function ry(e,t,n){return da(e,t,n,"get"),Co(n).get(e,t)}function Fp(e,t,n){return Co(n).peek(e,t)}function oy(e,t,n){var r;const o=Y1(t);return o==null||(r=o.invalidate)===null||r===void 0||r.call(o,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:X1(e.dirtyAtoms,t)}}function ly(e,t,n,r){const o=Co(n);if(o.set==null)throw new J1(`Attempt to set read-only RecoilValue: ${n}`);const l=o.set;return da(e,t,n,"set"),l(e,t,r)}function iy(e,t,n){const r=e.getState(),o=e.getGraph(t.version),l=Co(n).nodeType;return Up({type:l},{loadable:()=>Fp(e,t,n),isActive:()=>r.knownAtoms.has(n)||r.knownSelectors.has(n),isSet:()=>l==="selector"?!1:t.atomValues.has(n),isModified:()=>t.dirtyAtoms.has(n),deps:()=>{var i;return Oc((i=o.nodeDeps.get(n))!==null&&i!==void 0?i:[])},subscribers:()=>{var i,u;return{nodes:Oc(fa(Bp(e,t,new Set([n])),s=>s!==n)),components:ai((i=(u=r.nodeToComponentSubscriptions.get(n))===null||u===void 0?void 0:u.values())!==null&&i!==void 0?i:[],([s])=>({name:s}))}}})}function Bp(e,t,n){const r=new Set,o=Array.from(n),l=e.getGraph(t.version);for(let u=o.pop();u;u=o.pop()){var i;r.add(u);const s=(i=l.nodeToNodeSubscriptions.get(u))!==null&&i!==void 0?i:q1;for(const a of s)r.has(a)||o.push(a)}return r}var hn={getNodeLoadable:ry,peekNodeLoadable:Fp,setNodeValue:ly,initializeNode:ty,cleanUpNode:ny,setUnvalidatedAtomValue_DEPRECATED:oy,peekNodeInfo:iy,getDownstreamNodes:Bp};let jp=null;function uy(e){jp=e}function sy(){var e;(e=jp)===null||e===void 0||e()}var Wp={setInvalidateMemoizedSnapshot:uy,invalidateMemoizedSnapshot:sy};const{getDownstreamNodes:ay,getNodeLoadable:Hp,setNodeValue:cy}=hn,{getNextComponentID:fy}=ci,{getNode:dy,getNodeMaybe:bp}=Ye,{DefaultValue:pa}=Ye,{reactMode:py}=ko,{AbstractRecoilValue:hy,RecoilState:vy,RecoilValueReadOnly:my,isRecoilValue:yy}=dr,{invalidateMemoizedSnapshot:gy}=Wp;function Sy(e,{key:t},n=e.getState().currentTree){var r,o;const l=e.getState();n.version===l.currentTree.version||n.version===((r=l.nextTree)===null||r===void 0?void 0:r.version)||(n.version,(o=l.previousTree)===null||o===void 0||o.version);const i=Hp(e,n,t);return i.state==="loading"&&i.contents.catch(()=>{}),i}function wy(e,t){const n=e.clone();return t.forEach((r,o)=>{r.state==="hasValue"&&r.contents instanceof pa?n.delete(o):n.set(o,r)}),n}function _y(e,t,{key:n},r){if(typeof r=="function"){const o=Hp(e,t,n);if(o.state==="loading"){const l=`Tried to set atom or selector "${n}" using an updater function while the current state is pending, this is not currently supported.`;throw X(l)}else if(o.state==="hasError")throw o.contents;return r(o.contents)}else return r}function Ry(e,t,n){if(n.type==="set"){const{recoilValue:o,valueOrUpdater:l}=n,i=_y(e,t,o,l),u=cy(e,t,o.key,i);for(const[s,a]of u.entries())rs(t,s,a)}else if(n.type==="setLoadable"){const{recoilValue:{key:o},loadable:l}=n;rs(t,o,l)}else if(n.type==="markModified"){const{recoilValue:{key:o}}=n;t.dirtyAtoms.add(o)}else if(n.type==="setUnvalidated"){var r;const{recoilValue:{key:o},unvalidatedValue:l}=n,i=bp(o);i==null||(r=i.invalidate)===null||r===void 0||r.call(i,t),t.atomValues.delete(o),t.nonvalidatedAtoms.set(o,l),t.dirtyAtoms.add(o)}else ia(`Unknown action ${n.type}`)}function rs(e,t,n){n.state==="hasValue"&&n.contents instanceof pa?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function Kp(e,t){e.replaceState(n=>{const r=Gp(n);for(const o of t)Ry(e,r,o);return Qp(e,r),gy(),r})}function di(e,t){if(Xr.length){const n=Xr[Xr.length-1];let r=n.get(e);r||n.set(e,r=[]),r.push(t)}else Kp(e,[t])}const Xr=[];function Ey(){const e=new Map;return Xr.push(e),()=>{for(const[t,n]of e)Kp(t,n);Xr.pop()}}function Gp(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function Qp(e,t){const n=ay(e,t,t.dirtyAtoms);for(const l of n){var r,o;(r=bp(l))===null||r===void 0||(o=r.invalidate)===null||o===void 0||o.call(r,t)}}function Zp(e,t,n){di(e,{type:"set",recoilValue:t,valueOrUpdater:n})}function ky(e,t,n){if(n instanceof pa)return Zp(e,t,n);di(e,{type:"setLoadable",recoilValue:t,loadable:n})}function Ty(e,t){di(e,{type:"markModified",recoilValue:t})}function Cy(e,t,n){di(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})}function Ny(e,{key:t},n,r=null){const o=fy(),l=e.getState();l.nodeToComponentSubscriptions.has(t)||l.nodeToComponentSubscriptions.set(t,new Map),ve(l.nodeToComponentSubscriptions.get(t)).set(o,[r??"",n]);const i=py();if(i.early&&(i.mode==="LEGACY"||i.mode==="MUTABLE_SOURCE")){const u=e.getState().nextTree;u&&u.dirtyAtoms.has(t)&&n(u)}return{release:()=>{const u=e.getState(),s=u.nodeToComponentSubscriptions.get(t);s===void 0||!s.has(o)||(s.delete(o),s.size===0&&u.nodeToComponentSubscriptions.delete(t))}}}function Ly(e,t){var n;const{currentTree:r}=e.getState(),o=dy(t.key);(n=o.clearCache)===null||n===void 0||n.call(o,e,r)}var At={RecoilValueReadOnly:my,AbstractRecoilValue:hy,RecoilState:vy,getRecoilValueAsLoadable:Sy,setRecoilValue:Zp,setRecoilValueLoadable:ky,markRecoilValueModified:Ty,setUnvalidatedRecoilValue:Cy,subscribeToRecoilValue:Ny,isRecoilValue:yy,applyAtomValueWrites:wy,batchStart:Ey,writeLoadableToTreeState:rs,invalidateDownstreams:Qp,copyTreeState:Gp,refreshRecoilValue:Ly};function Ay(e,t,n){const r=e.entries();let o=r.next();for(;!o.done;){const l=o.value;if(t.call(n,l[1],l[0],e))return!0;o=r.next()}return!1}var xy=Ay;const{cleanUpNode:My}=hn,{deleteNodeConfigIfPossible:Py,getNode:Yp}=Ye,{RetentionZone:Xp}=fi,$y=12e4,qp=new Set;function Jp(e,t){const n=e.getState(),r=n.currentTree;if(n.nextTree)return;const o=new Set;for(const i of t)if(i instanceof Xp)for(const u of Dy(n,i))o.add(u);else o.add(i);const l=Iy(e,o);for(const i of l)zy(e,r,i)}function Iy(e,t){const n=e.getState(),r=n.currentTree,o=e.getGraph(r.version),l=new Set,i=new Set;return u(t),l;function u(s){const a=new Set,d=Vy(e,r,s,l,i);for(const S of d){var f;if(Yp(S).retainedBy==="recoilRoot"){i.add(S);continue}if(((f=n.retention.referenceCounts.get(S))!==null&&f!==void 0?f:0)>0){i.add(S);continue}if(eh(S).some(B=>n.retention.referenceCounts.get(B))){i.add(S);continue}const R=o.nodeToNodeSubscriptions.get(S);if(R&&xy(R,B=>i.has(B))){i.add(S);continue}l.add(S),a.add(S)}const m=new Set;for(const S of a)for(const R of(_=o.nodeDeps.get(S))!==null&&_!==void 0?_:qp){var _;l.has(R)||m.add(R)}m.size&&u(m)}}function Vy(e,t,n,r,o){const l=e.getGraph(t.version),i=[],u=new Set;for(;n.size>0;)s(ve(n.values().next().value));return i;function s(a){if(r.has(a)||o.has(a)){n.delete(a);return}if(u.has(a))return;const d=l.nodeToNodeSubscriptions.get(a);if(d)for(const f of d)s(f);u.add(a),n.delete(a),i.push(a)}}function zy(e,t,n){if(!ie("recoil_memory_managament_2020"))return;My(e,n);const r=e.getState();r.knownAtoms.delete(n),r.knownSelectors.delete(n),r.nodeTransactionSubscriptions.delete(n),r.retention.referenceCounts.delete(n);const o=eh(n);for(const s of o){var l;(l=r.retention.nodesRetainedByZone.get(s))===null||l===void 0||l.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);const i=r.graphsByVersion.get(t.version);if(i){const s=i.nodeDeps.get(n);if(s!==void 0){i.nodeDeps.delete(n);for(const a of s){var u;(u=i.nodeToNodeSubscriptions.get(a))===null||u===void 0||u.delete(n)}}i.nodeToNodeSubscriptions.delete(n)}Py(n)}function Dy(e,t){var n;return(n=e.retention.nodesRetainedByZone.get(t))!==null&&n!==void 0?n:qp}function eh(e){const t=Yp(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof Xp?[t]:t}function Oy(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):Jp(e,new Set([t]))}function Uy(e,t,n){var r;if(!ie("recoil_memory_managament_2020"))return;const o=e.getState().retention.referenceCounts,l=((r=o.get(t))!==null&&r!==void 0?r:0)+n;l===0?th(e,t):o.set(t,l)}function th(e,t){if(!ie("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),Oy(e,t)}function Fy(e){if(!ie("recoil_memory_managament_2020"))return;const t=e.getState();Jp(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function By(e){return e===void 0?"recoilRoot":e}var Vn={SUSPENSE_TIMEOUT_MS:$y,updateRetainCount:Uy,updateRetainCountToZero:th,releaseScheduledRetainablesNow:Fy,retainedByOptionWithDefault:By};const{unstable_batchedUpdates:jy}=Vm;var Wy={unstable_batchedUpdates:jy};const{unstable_batchedUpdates:Hy}=Wy;var by={unstable_batchedUpdates:Hy};const{batchStart:Ky}=At,{unstable_batchedUpdates:Gy}=by;let ha=Gy||(e=>e());const Qy=e=>{ha=e},Zy=()=>ha,Yy=e=>{ha(()=>{let t=()=>{};try{t=Ky(),e()}finally{t()}})};var pi={getBatcher:Zy,setBatcher:Qy,batchUpdates:Yy};function*Xy(e){for(const t of e)for(const n of t)yield n}var nh=Xy;const rh=typeof Window>"u"||typeof window>"u",qy=e=>!rh&&(e===window||e instanceof Window),Jy=typeof navigator<"u"&&navigator.product==="ReactNative";var hi={isSSR:rh,isReactNative:Jy,isWindow:qy};function eg(e,t){let n;return(...r)=>{n||(n={});const o=t(...r);return Object.hasOwnProperty.call(n,o)||(n[o]=e(...r)),n[o]}}function tg(e,t){let n,r;return(...o)=>{const l=t(...o);return n===l||(n=l,r=e(...o)),r}}function ng(e,t){let n,r;return[(...i)=>{const u=t(...i);return n===u||(n=u,r=e(...i)),r},()=>{n=null}]}var rg={memoizeWithArgsHash:eg,memoizeOneWithArgsHash:tg,memoizeOneWithArgsHashAndInvalidation:ng};const{batchUpdates:os}=pi,{initializeNode:og,peekNodeInfo:lg}=hn,{graph:ig}=To,{getNextStoreID:ug}=ci,{DEFAULT_VALUE:sg,recoilValues:Fc,recoilValuesForKeys:Bc}=Ye,{AbstractRecoilValue:ag,getRecoilValueAsLoadable:cg,setRecoilValue:jc,setUnvalidatedRecoilValue:fg}=At,{updateRetainCount:pl}=Vn,{setInvalidateMemoizedSnapshot:dg}=Wp,{getNextTreeStateVersion:pg,makeEmptyStoreState:hg}=zp,{isSSR:vg}=hi,{memoizeOneWithArgsHashAndInvalidation:mg}=rg;class vi{constructor(t,n){Z(this,"_store",void 0),Z(this,"_refCount",1),Z(this,"getLoadable",r=>(this.checkRefCount_INTERNAL(),cg(this._store,r))),Z(this,"getPromise",r=>(this.checkRefCount_INTERNAL(),this.getLoadable(r).toPromise())),Z(this,"getNodes_UNSTABLE",r=>{if(this.checkRefCount_INTERNAL(),(r==null?void 0:r.isModified)===!0){if((r==null?void 0:r.isInitialized)===!1)return[];const i=this._store.getState().currentTree;return Bc(i.dirtyAtoms)}const o=this._store.getState().knownAtoms,l=this._store.getState().knownSelectors;return(r==null?void 0:r.isInitialized)==null?Fc.values():r.isInitialized===!0?Bc(nh([o,l])):fa(Fc.values(),({key:i})=>!o.has(i)&&!l.has(i))}),Z(this,"getInfo_UNSTABLE",({key:r})=>(this.checkRefCount_INTERNAL(),lg(this._store,this._store.getState().currentTree,r))),Z(this,"map",r=>{this.checkRefCount_INTERNAL();const o=new ls(this,os);return r(o),o}),Z(this,"asyncMap",async r=>{this.checkRefCount_INTERNAL();const o=new ls(this,os);return o.retain(),await r(o),o.autoRelease_INTERNAL(),o}),this._store={storeID:ug(),parentStoreID:n,getState:()=>t,replaceState:r=>{t.currentTree=r(t.currentTree)},getGraph:r=>{const o=t.graphsByVersion;if(o.has(r))return ve(o.get(r));const l=ig();return o.set(r,l),l},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw X("Cannot subscribe to Snapshots")}};for(const r of this._store.getState().knownAtoms)og(this._store,r,"get"),pl(this._store,r,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){vg||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,this._refCount===0){if(this._store.getState().nodeCleanupFunctions.forEach(t=>t()),this._store.getState().nodeCleanupFunctions.clear(),!ie("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){ie("recoil_memory_managament_2020")&&this._refCount<=0}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function oh(e,t,n=!1){const r=e.getState(),o=n?pg():t.version;return{currentTree:{version:n?o:t.version,stateID:n?o:t.stateID,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(r.knownAtoms),knownSelectors:new Set(r.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(o,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(ai(r.nodeCleanupFunctions.entries(),([l])=>[l,()=>{}]))}}function yg(e){const t=new vi(hg());return e!=null?t.map(e):t}const[Wc,lh]=mg((e,t)=>{var n;const r=e.getState(),o=t==="latest"?(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree:ve(r.previousTree);return new vi(oh(e,o),e.storeID)},(e,t)=>{var n,r;return String(t)+String(e.storeID)+String((n=e.getState().nextTree)===null||n===void 0?void 0:n.version)+String(e.getState().currentTree.version)+String((r=e.getState().previousTree)===null||r===void 0?void 0:r.version)});dg(lh);function gg(e,t="latest"){const n=Wc(e,t);return n.isRetained()?n:(lh(),Wc(e,t))}class ls extends vi{constructor(t,n){super(oh(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),Z(this,"_batch",void 0),Z(this,"set",(r,o)=>{this.checkRefCount_INTERNAL();const l=this.getStore_INTERNAL();this._batch(()=>{pl(l,r.key,1),jc(this.getStore_INTERNAL(),r,o)})}),Z(this,"reset",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();this._batch(()=>{pl(o,r.key,1),jc(this.getStore_INTERNAL(),r,sg)})}),Z(this,"setUnvalidatedAtomValues_DEPRECATED",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();os(()=>{for(const[l,i]of r.entries())pl(o,l,1),fg(o,new ag(l),i)})}),this._batch=n}}var mi={Snapshot:vi,MutableSnapshot:ls,freshSnapshot:yg,cloneSnapshot:gg},Sg=mi.Snapshot,wg=mi.MutableSnapshot,_g=mi.freshSnapshot,Rg=mi.cloneSnapshot,yi=Object.freeze({__proto__:null,Snapshot:Sg,MutableSnapshot:wg,freshSnapshot:_g,cloneSnapshot:Rg});function Eg(...e){const t=new Set;for(const n of e)for(const r of n)t.add(r);return t}var kg=Eg;const{useRef:Tg}=me;function Cg(e){const t=Tg(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var Hc=Cg;const{getNextTreeStateVersion:Ng,makeEmptyStoreState:ih}=zp,{cleanUpNode:Lg,getDownstreamNodes:Ag,initializeNode:xg,setNodeValue:Mg,setUnvalidatedAtomValue_DEPRECATED:Pg}=hn,{graph:$g}=To,{cloneGraph:Ig}=To,{getNextStoreID:uh}=ci,{createMutableSource:ou,reactMode:sh}=ko,{applyAtomValueWrites:Vg}=At,{releaseScheduledRetainablesNow:ah}=Vn,{freshSnapshot:zg}=yi,{useCallback:Dg,useContext:ch,useEffect:is,useMemo:Og,useRef:Ug,useState:Fg}=me;function Mr(){throw X("This component must be used inside a component.")}const fh=Object.freeze({storeID:uh(),getState:Mr,replaceState:Mr,getGraph:Mr,subscribeToTransactions:Mr,addTransactionMetadata:Mr});let us=!1;function bc(e){if(us)throw X("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const t=e.getState();if(t.nextTree===null){ie("recoil_memory_managament_2020")&&ie("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&ah(e);const n=t.currentTree.version,r=Ng();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,Ig(ve(t.graphsByVersion.get(n))))}}const dh=me.createContext({current:fh}),gi=()=>ch(dh),ph=me.createContext(null);function Bg(){return ch(ph)}function va(e,t,n){const r=Ag(e,n,n.dirtyAtoms);for(const o of r){const l=t.nodeToComponentSubscriptions.get(o);if(l)for(const[i,[u,s]]of l)s(n)}}function hh(e){const t=e.getState(),n=t.currentTree,r=n.dirtyAtoms;if(r.size){for(const[o,l]of t.nodeTransactionSubscriptions)if(r.has(o))for(const[i,u]of l)u(e);for(const[o,l]of t.transactionSubscriptions)l(e);(!sh().early||t.suspendedComponentResolvers.size>0)&&(va(e,t,n),t.suspendedComponentResolvers.forEach(o=>o()),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach(o=>o(n)),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function jg(e){const t=e.getState();t.commitDepth++;try{const{nextTree:n}=t;if(n==null)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,hh(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):ia("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,ie("recoil_memory_managament_2020")&&n==null&&ah(e)}finally{t.commitDepth--}}function Wg({setNotifyBatcherOfChange:e}){const t=gi(),[,n]=Fg([]);return e(()=>n({})),is(()=>(e(()=>n({})),()=>{e(()=>{})}),[e]),is(()=>{_1.enqueueExecution("Batcher",()=>{jg(t.current)})}),null}function Hg(e,t){const n=ih();return t({set:(r,o)=>{const l=n.currentTree,i=Mg(e,l,r.key,o),u=new Set(i.keys()),s=l.nonvalidatedAtoms.clone();for(const a of u)s.delete(a);n.currentTree={...l,dirtyAtoms:kg(l.dirtyAtoms,u),atomValues:Vg(l.atomValues,i),nonvalidatedAtoms:s}},setUnvalidatedAtomValues:r=>{r.forEach((o,l)=>{n.currentTree=Pg(n.currentTree,l,o)})}}),n}function bg(e){const t=zg(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach(r=>r()),n.nodeCleanupFunctions.clear(),n}let Kc=0;function Kg({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){let o;const l=_=>{const S=o.current.graphsByVersion;if(S.has(_))return ve(S.get(_));const R=$g();return S.set(_,R),R},i=(_,S)=>{if(S==null){const{transactionSubscriptions:R}=f.current.getState(),B=Kc++;return R.set(B,_),{release:()=>{R.delete(B)}}}else{const{nodeTransactionSubscriptions:R}=f.current.getState();R.has(S)||R.set(S,new Map);const B=Kc++;return ve(R.get(S)).set(B,_),{release:()=>{const h=R.get(S);h&&(h.delete(B),h.size===0&&R.delete(S))}}}},u=_=>{bc(f.current);for(const S of Object.keys(_))ve(f.current.getState().nextTree).transactionMetadata[S]=_[S]},s=_=>{bc(f.current);const S=ve(o.current.nextTree);let R;try{us=!0,R=_(S)}finally{us=!1}R!==S&&(o.current.nextTree=R,sh().early&&va(f.current,o.current,R),ve(a.current)())},a=Ug(null),d=Dg(_=>{a.current=_},[a]),f=Hc(()=>n??{storeID:uh(),getState:()=>o.current,replaceState:s,getGraph:l,subscribeToTransactions:i,addTransactionMetadata:u});n!=null&&(f.current=n),o=Hc(()=>e!=null?Hg(f.current,e):t!=null?bg(t):ih());const m=Og(()=>ou==null?void 0:ou(o,()=>o.current.currentTree.version),[o]);return is(()=>{const _=f.current;for(const S of new Set(_.getState().knownAtoms))xg(_,S,"get");return()=>{for(const S of _.getState().knownAtoms)Lg(_,S)}},[f]),me.createElement(dh.Provider,{value:f},me.createElement(ph.Provider,{value:m},me.createElement(Wg,{setNotifyBatcherOfChange:d}),r))}function Gg(e){const{override:t,...n}=e,r=gi();return t===!1&&r.current!==fh?e.children:me.createElement(Kg,n)}function Qg(){return gi().current.storeID}var jt={RecoilRoot:Gg,useStoreRef:gi,useRecoilMutableSource:Bg,useRecoilStoreID:Qg,notifyComponents_FOR_TESTING:va,sendEndOfBatchNotifications_FOR_TESTING:hh};function Zg(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n{t.current=e}),t.current}var vh=Jg;const{useStoreRef:eS}=jt,{SUSPENSE_TIMEOUT_MS:tS}=Vn,{updateRetainCount:Pr}=Vn,{RetentionZone:nS}=fi,{useEffect:rS,useRef:oS}=me,{isSSR:Gc}=hi;function lS(e){if(ie("recoil_memory_managament_2020"))return iS(e)}function iS(e){const n=(Array.isArray(e)?e:[e]).map(i=>i instanceof nS?i:i.key),r=eS();rS(()=>{if(!ie("recoil_memory_managament_2020"))return;const i=r.current;if(o.current&&!Gc)window.clearTimeout(o.current),o.current=null;else for(const u of n)Pr(i,u,1);return()=>{for(const u of n)Pr(i,u,-1)}},[r,...n]);const o=oS(),l=vh(n);if(!Gc&&(l===void 0||!Yg(l,n))){const i=r.current;for(const u of n)Pr(i,u,1);if(l)for(const u of l)Pr(i,u,-1);o.current&&window.clearTimeout(o.current),o.current=window.setTimeout(()=>{o.current=null;for(const u of n)Pr(i,u,-1)},tS)}}var ma=lS;function uS(){return""}var No=uS;const{batchUpdates:sS}=pi,{DEFAULT_VALUE:mh}=Ye,{currentRendererSupportsUseSyncExternalStore:aS,reactMode:wr,useMutableSource:cS,useSyncExternalStore:fS}=ko,{useRecoilMutableSource:dS,useStoreRef:xt}=jt,{AbstractRecoilValue:ss,getRecoilValueAsLoadable:Lo,setRecoilValue:Fl,setUnvalidatedRecoilValue:pS,subscribeToRecoilValue:pr}=At,{useCallback:Ze,useEffect:hr,useMemo:yh,useRef:qr,useState:ya}=me,{setByAddingToSet:hS}=Op,{isSSR:vS}=hi;function ga(e,t,n){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(o=>{const l=n.current.getState().suspendedComponentResolvers;l.add(o),vS&&ae(e.contents)&&e.contents.finally(()=>{l.delete(o)})}):e.state==="hasError"?e.contents:X(`Invalid value of loadable atom "${t.key}"`)}function mS(){const e=No(),t=xt(),[,n]=ya([]),r=qr(new Set);r.current=new Set;const o=qr(new Set),l=qr(new Map),i=Ze(s=>{const a=l.current.get(s);a&&(a.release(),l.current.delete(s))},[l]),u=Ze((s,a)=>{l.current.has(a)&&n([])},[]);return hr(()=>{const s=t.current;Yr(r.current,o.current).forEach(a=>{if(l.current.has(a))return;const d=pr(s,new ss(a),m=>u(m,a),e);l.current.set(a,d),s.getState().nextTree?s.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{u(s.getState(),a)}):u(s.getState(),a)}),Yr(o.current,r.current).forEach(a=>{i(a)}),o.current=r.current}),hr(()=>{const s=l.current;return Yr(r.current,new Set(s.keys())).forEach(a=>{const d=pr(t.current,new ss(a),f=>u(f,a),e);s.set(a,d)}),()=>s.forEach((a,d)=>i(d))},[e,t,i,u]),yh(()=>{function s(S){return R=>{Fl(t.current,S,R)}}function a(S){return()=>Fl(t.current,S,mh)}function d(S){var R;r.current.has(S.key)||(r.current=hS(r.current,S.key));const B=t.current.getState();return Lo(t.current,S,wr().early&&(R=B.nextTree)!==null&&R!==void 0?R:B.currentTree)}function f(S){const R=d(S);return ga(R,S,t)}function m(S){return[f(S),s(S)]}function _(S){return[d(S),s(S)]}return{getRecoilValue:f,getRecoilValueLoadable:d,getRecoilState:m,getRecoilStateLoadable:_,getSetRecoilState:s,getResetRecoilState:a}},[r,t])}const yS={current:0};function gS(e){const t=xt(),n=No(),r=Ze(()=>{var u;const s=t.current,a=s.getState(),d=wr().early&&(u=a.nextTree)!==null&&u!==void 0?u:a.currentTree;return{loadable:Lo(s,e,d),key:e.key}},[t,e]),o=Ze(u=>{let s;return()=>{var a,d;const f=u();return(a=s)!==null&&a!==void 0&&a.loadable.is(f.loadable)&&((d=s)===null||d===void 0?void 0:d.key)===f.key?s:(s=f,f)}},[]),l=yh(()=>o(r),[r,o]),i=Ze(u=>{const s=t.current;return pr(s,e,u,n).release},[t,e,n]);return fS(i,l,l).loadable}function SS(e){const t=xt(),n=Ze(()=>{var a;const d=t.current,f=d.getState(),m=wr().early&&(a=f.nextTree)!==null&&a!==void 0?a:f.currentTree;return Lo(d,e,m)},[t,e]),r=Ze(()=>n(),[n]),o=No(),l=Ze((a,d)=>{const f=t.current;return pr(f,e,()=>{if(!ie("recoil_suppress_rerender_in_callback"))return d();const _=n();s.current.is(_)||d(),s.current=_},o).release},[t,e,o,n]),i=dS();if(i==null)throw X("Recoil hooks must be used in components contained within a component.");const u=cS(i,r,l),s=qr(u);return hr(()=>{s.current=u}),u}function as(e){const t=xt(),n=No(),r=Ze(()=>{var s;const a=t.current,d=a.getState(),f=wr().early&&(s=d.nextTree)!==null&&s!==void 0?s:d.currentTree;return Lo(a,e,f)},[t,e]),o=Ze(()=>({loadable:r(),key:e.key}),[r,e.key]),l=Ze(s=>{const a=o();return s.loadable.is(a.loadable)&&s.key===a.key?s:a},[o]);hr(()=>{const s=pr(t.current,e,a=>{u(l)},n);return u(l),s.release},[n,e,t,l]);const[i,u]=ya(o);return i.key!==e.key?o().loadable:i.loadable}function wS(e){const t=xt(),[,n]=ya([]),r=No(),o=Ze(()=>{var u;const s=t.current,a=s.getState(),d=wr().early&&(u=a.nextTree)!==null&&u!==void 0?u:a.currentTree;return Lo(s,e,d)},[t,e]),l=o(),i=qr(l);return hr(()=>{i.current=l}),hr(()=>{const u=t.current,s=u.getState(),a=pr(u,e,f=>{var m;if(!ie("recoil_suppress_rerender_in_callback"))return n([]);const _=o();(m=i.current)!==null&&m!==void 0&&m.is(_)||n(_),i.current=_},r);if(s.nextTree)u.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{i.current=null,n([])});else{var d;if(!ie("recoil_suppress_rerender_in_callback"))return n([]);const f=o();(d=i.current)!==null&&d!==void 0&&d.is(f)||n(f),i.current=f}return a.release},[r,o,e,t]),l}function Sa(e){return ie("recoil_memory_managament_2020")&&ma(e),{TRANSITION_SUPPORT:as,SYNC_EXTERNAL_STORE:aS()?gS:as,MUTABLE_SOURCE:SS,LEGACY:wS}[wr().mode](e)}function gh(e){const t=xt(),n=Sa(e);return ga(n,e,t)}function Si(e){const t=xt();return Ze(n=>{Fl(t.current,e,n)},[t,e])}function _S(e){const t=xt();return Ze(()=>{Fl(t.current,e,mh)},[t,e])}function RS(e){return[gh(e),Si(e)]}function ES(e){return[Sa(e),Si(e)]}function kS(){const e=xt();return(t,n={})=>{sS(()=>{e.current.addTransactionMetadata(n),t.forEach((r,o)=>pS(e.current,new ss(o),r))})}}function Sh(e){return ie("recoil_memory_managament_2020")&&ma(e),as(e)}function wh(e){const t=xt(),n=Sh(e);return ga(n,e,t)}function TS(e){return[wh(e),Si(e)]}var CS={recoilComponentGetRecoilValueCount_FOR_TESTING:yS,useRecoilInterface:mS,useRecoilState:RS,useRecoilStateLoadable:ES,useRecoilValue:gh,useRecoilValueLoadable:Sa,useResetRecoilState:_S,useSetRecoilState:Si,useSetUnvalidatedAtomValues:kS,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Sh,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:wh,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:TS};function NS(e,t){const n=new Map;for(const[r,o]of e)t(o,r)&&n.set(r,o);return n}var LS=NS;function AS(e,t){const n=new Set;for(const r of e)t(r)&&n.add(r);return n}var xS=AS;function MS(...e){const t=new Map;for(let n=0;nt.current.subscribeToTransactions(e).release,[e,t])}function Yc(e){const t=e.atomValues.toMap(),n=Ul(LS(t,(r,o)=>{const i=_h(o).persistence_UNSTABLE;return i!=null&&i.type!=="none"&&r.state==="hasValue"}),r=>r.contents);return PS(e.nonvalidatedAtoms.toMap(),n)}function FS(e){_i(wi(t=>{let n=t.getState().previousTree;const r=t.getState().currentTree;n||(n=t.getState().currentTree);const o=Yc(r),l=Yc(n),i=Ul(VS,s=>{var a,d,f,m;return{persistence_UNSTABLE:{type:(a=(d=s.persistence_UNSTABLE)===null||d===void 0?void 0:d.type)!==null&&a!==void 0?a:"none",backButton:(f=(m=s.persistence_UNSTABLE)===null||m===void 0?void 0:m.backButton)!==null&&f!==void 0?f:!1}}}),u=xS(r.dirtyAtoms,s=>o.has(s)||l.has(s));e({atomValues:o,previousAtomValues:l,atomInfo:i,modifiedAtoms:u,transactionMetadata:{...r.transactionMetadata}})},[e]))}function BS(e){_i(wi(t=>{const n=Bl(t,"latest"),r=Bl(t,"previous");e({snapshot:n,previousSnapshot:r})},[e]))}function jS(){const e=wa(),[t,n]=US(()=>Bl(e.current)),r=vh(t),o=Qc(),l=Qc();if(_i(wi(u=>n(Bl(u)),[])),Rh(()=>{const u=t.retain();if(o.current&&!Zc){var s;window.clearTimeout(o.current),o.current=null,(s=l.current)===null||s===void 0||s.call(l),l.current=null}return()=>{window.setTimeout(u,10)}},[t]),r!==t&&!Zc){if(o.current){var i;window.clearTimeout(o.current),o.current=null,(i=l.current)===null||i===void 0||i.call(l),l.current=null}l.current=t.retain(),o.current=window.setTimeout(()=>{var u;o.current=null,(u=l.current)===null||u===void 0||u.call(l),l.current=null},OS)}return t}function Eh(e,t){var n;const r=e.getState(),o=(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree,l=t.getStore_INTERNAL().getState().currentTree;$S(()=>{const i=new Set;for(const a of[o.atomValues.keys(),l.atomValues.keys()])for(const d of a){var u,s;((u=o.atomValues.get(d))===null||u===void 0?void 0:u.contents)!==((s=l.atomValues.get(d))===null||s===void 0?void 0:s.contents)&&_h(d).shouldRestoreFromSnapshots&&i.add(d)}i.forEach(a=>{DS(e,new zS(a),l.atomValues.has(a)?ve(l.atomValues.get(a)):IS)}),e.replaceState(a=>({...a,stateID:t.getID()}))})}function WS(){const e=wa();return wi(t=>Eh(e.current,t),[e])}var kh={useRecoilSnapshot:jS,gotoSnapshot:Eh,useGotoRecoilSnapshot:WS,useRecoilTransactionObserver:BS,useTransactionObservation_DEPRECATED:FS,useTransactionSubscription_DEPRECATED:_i};const{peekNodeInfo:HS}=hn,{useStoreRef:bS}=jt;function KS(){const e=bS();return({key:t})=>HS(e.current,e.current.getState().currentTree,t)}var GS=KS;const{reactMode:QS}=ko,{RecoilRoot:ZS,useStoreRef:YS}=jt,{useMemo:XS}=me;function qS(){QS().mode==="MUTABLE_SOURCE"&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.");const e=YS().current;return XS(()=>{function t({children:n}){return me.createElement(ZS,{store_INTERNAL:e},n)}return t},[e])}var JS=qS;const{loadableWithValue:e2}=Eo,{initializeNode:t2}=hn,{DEFAULT_VALUE:n2,getNode:r2}=Ye,{copyTreeState:o2,getRecoilValueAsLoadable:l2,invalidateDownstreams:i2,writeLoadableToTreeState:u2}=At;function Xc(e){return r2(e.key).nodeType==="atom"}class s2{constructor(t,n){Z(this,"_store",void 0),Z(this,"_treeState",void 0),Z(this,"_changes",void 0),Z(this,"get",r=>{if(this._changes.has(r.key))return this._changes.get(r.key);if(!Xc(r))throw X("Reading selectors within atomicUpdate is not supported");const o=l2(this._store,r,this._treeState);if(o.state==="hasValue")return o.contents;throw o.state==="hasError"?o.contents:X(`Expected Recoil atom ${r.key} to have a value, but it is in a loading state.`)}),Z(this,"set",(r,o)=>{if(!Xc(r))throw X("Setting selectors within atomicUpdate is not supported");if(typeof o=="function"){const l=this.get(r);this._changes.set(r.key,o(l))}else t2(this._store,r.key,"set"),this._changes.set(r.key,o)}),Z(this,"reset",r=>{this.set(r,n2)}),this._store=t,this._treeState=n,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=o2(this._treeState);for(const[n,r]of this._changes)u2(t,n,e2(r));return i2(this._store,t),t}}function a2(e){return t=>{e.replaceState(n=>{const r=new s2(e,n);return t(r),r.newTreeState_INTERNAL()})}}var c2={atomicUpdater:a2},f2=c2.atomicUpdater,Th=Object.freeze({__proto__:null,atomicUpdater:f2});function d2(e,t){if(!e)throw new Error(t)}var p2=d2,Fr=p2;const{atomicUpdater:h2}=Th,{batchUpdates:v2}=pi,{DEFAULT_VALUE:m2}=Ye,{useStoreRef:y2}=jt,{refreshRecoilValue:g2,setRecoilValue:qc}=At,{cloneSnapshot:S2}=yi,{gotoSnapshot:w2}=kh,{useCallback:_2}=me;class Ch{}const R2=new Ch;function Nh(e,t,n,r){let o=R2,l;if(v2(()=>{const u="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 t!="function")throw X(u);const s=Up({...r??{},set:(d,f)=>qc(e,d,f),reset:d=>qc(e,d,m2),refresh:d=>g2(e,d),gotoSnapshot:d=>w2(e,d),transact_UNSTABLE:d=>h2(e)(d)},{snapshot:()=>{const d=S2(e);return l=d.retain(),d}}),a=t(s);if(typeof a!="function")throw X(u);o=a(...n)}),o instanceof Ch&&Fr(!1),ae(o))o=o.finally(()=>{var u;(u=l)===null||u===void 0||u()});else{var i;(i=l)===null||i===void 0||i()}return o}function E2(e,t){const n=y2();return _2((...r)=>Nh(n.current,e,r),t!=null?[...t,n]:void 0)}var Lh={recoilCallback:Nh,useRecoilCallback:E2};const{useStoreRef:k2}=jt,{refreshRecoilValue:T2}=At,{useCallback:C2}=me;function N2(e){const t=k2();return C2(()=>{const n=t.current;T2(n,e)},[e,t])}var L2=N2;const{atomicUpdater:A2}=Th,{useStoreRef:x2}=jt,{useMemo:M2}=me;function P2(e,t){const n=x2();return M2(()=>(...r)=>{A2(n.current)(l=>{e(l)(...r)})},t!=null?[...t,n]:void 0)}var $2=P2;class I2{constructor(t){Z(this,"value",void 0),this.value=t}}var V2={WrappedValue:I2},z2=V2.WrappedValue,Ah=Object.freeze({__proto__:null,WrappedValue:z2});const{isFastRefreshEnabled:D2}=ko;class Jc extends Error{}class O2{constructor(t){var n,r,o;Z(this,"_name",void 0),Z(this,"_numLeafs",void 0),Z(this,"_root",void 0),Z(this,"_onHit",void 0),Z(this,"_onSet",void 0),Z(this,"_mapNodeValue",void 0),this._name=t==null?void 0:t.name,this._numLeafs=0,this._root=null,this._onHit=(n=t==null?void 0:t.onHit)!==null&&n!==void 0?n:()=>{},this._onSet=(r=t==null?void 0:t.onSet)!==null&&r!==void 0?r:()=>{},this._mapNodeValue=(o=t==null?void 0:t.mapNodeValue)!==null&&o!==void 0?o:l=>l}size(){return this._numLeafs}root(){return this._root}get(t,n){var r;return(r=this.getLeafNode(t,n))===null||r===void 0?void 0:r.value}getLeafNode(t,n){if(this._root==null)return;let r=this._root;for(;r;){if(n==null||n.onNodeVisit(r),r.type==="leaf")return this._onHit(r),r;const o=this._mapNodeValue(t(r.nodeKey));r=r.branches.get(o)}}set(t,n,r){const o=()=>{var l,i,u,s;let a,d;for(const[B,h]of t){var f,m,_;const c=this._root;if((c==null?void 0:c.type)==="leaf")throw this.invalidCacheError();const p=a;if(a=p?p.branches.get(d):c,a=(f=a)!==null&&f!==void 0?f:{type:"branch",nodeKey:B,parent:p,branches:new Map,branchKey:d},a.type!=="branch"||a.nodeKey!==B)throw this.invalidCacheError();p==null||p.branches.set(d,a),r==null||(m=r.onNodeVisit)===null||m===void 0||m.call(r,a),d=this._mapNodeValue(h),this._root=(_=this._root)!==null&&_!==void 0?_:a}const S=a?(l=a)===null||l===void 0?void 0:l.branches.get(d):this._root;if(S!=null&&(S.type!=="leaf"||S.branchKey!==d))throw this.invalidCacheError();const R={type:"leaf",value:n,parent:a,branchKey:d};(i=a)===null||i===void 0||i.branches.set(d,R),this._root=(u=this._root)!==null&&u!==void 0?u:R,this._numLeafs++,this._onSet(R),r==null||(s=r.onNodeVisit)===null||s===void 0||s.call(r,R)};try{o()}catch(l){if(l instanceof Jc)this.clear(),o();else throw l}}delete(t){const n=this.root();if(!n)return!1;if(t===n)return this._root=null,this._numLeafs=0,!0;let r=t.parent,o=t.branchKey;for(;r;){var l;if(r.branches.delete(o),r===n)return r.branches.size===0?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(r.branches.size>0)break;o=(l=r)===null||l===void 0?void 0:l.branchKey,r=r.parent}for(;r!==n;r=r.parent)if(r==null)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const t=D2()?"Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.";throw ia(t+(this._name!=null?` - ${this._name}`:"")),new Jc}}var U2={TreeCache:O2},F2=U2.TreeCache,xh=Object.freeze({__proto__:null,TreeCache:F2});class B2{constructor(t){var n;Z(this,"_maxSize",void 0),Z(this,"_size",void 0),Z(this,"_head",void 0),Z(this,"_tail",void 0),Z(this,"_map",void 0),Z(this,"_keyMapper",void 0),this._maxSize=t.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(n=t.mapKey)!==null&&n!==void 0?n:r=>r}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(t){return this._map.has(this._keyMapper(t))}get(t){const n=this._keyMapper(t),r=this._map.get(n);if(r)return this.set(t,r.value),r.value}set(t,n){const r=this._keyMapper(t);this._map.get(r)&&this.delete(t);const l=this.head(),i={key:t,right:l,left:null,value:n};l?l.left=i:this._tail=i,this._map.set(r,i),this._head=i,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const t=this.tail();t&&this.delete(t.key)}delete(t){const n=this._keyMapper(t);if(!this._size||!this._map.has(n))return;const r=ve(this._map.get(n)),o=r.right,l=r.left;o&&(o.left=r.left),l&&(l.right=r.right),r===this.head()&&(this._head=o),r===this.tail()&&(this._tail=l),this._map.delete(n),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var j2={LRUCache:B2},W2=j2.LRUCache,Mh=Object.freeze({__proto__:null,LRUCache:W2});const{LRUCache:H2}=Mh,{TreeCache:b2}=xh;function K2({name:e,maxSize:t,mapNodeValue:n=r=>r}){const r=new H2({maxSize:t}),o=new b2({name:e,mapNodeValue:n,onHit:l=>{r.set(l,!0)},onSet:l=>{const i=r.tail();r.set(l,!0),i&&o.size()>t&&o.delete(i.key)}});return o}var ef=K2;function yt(e,t,n){if(typeof e=="string"&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if((t==null?void 0:t.allowFunctions)!==!0)throw X("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var r;return(r=JSON.stringify(e))!==null&&r!==void 0?r:""}if(ae(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((o,l)=>yt(o,t,l.toString()))}]`;if(typeof e.toJSON=="function")return yt(e.toJSON(n),t,n);if(e instanceof Map){const o={};for(const[l,i]of e)o[typeof l=="string"?l:yt(l,t)]=i;return yt(o,t,n)}return e instanceof Set?yt(Array.from(e).sort((o,l)=>yt(o,t).localeCompare(yt(l,t))),t,n):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?yt(Array.from(e),t,n):`{${Object.keys(e).filter(o=>e[o]!==void 0).sort().map(o=>`${yt(o,t)}:${yt(e[o],t,o)}`).join(",")}}`}function G2(e,t={allowFunctions:!1}){return yt(e,t)}var Ri=G2;const{TreeCache:Q2}=xh,Yo={equality:"reference",eviction:"keep-all",maxSize:1/0};function Z2({equality:e=Yo.equality,eviction:t=Yo.eviction,maxSize:n=Yo.maxSize}=Yo,r){const o=Y2(e);return X2(t,n,o,r)}function Y2(e){switch(e){case"reference":return t=>t;case"value":return t=>Ri(t)}throw X(`Unrecognized equality policy ${e}`)}function X2(e,t,n,r){switch(e){case"keep-all":return new Q2({name:r,mapNodeValue:n});case"lru":return ef({name:r,maxSize:ve(t),mapNodeValue:n});case"most-recent":return ef({name:r,maxSize:1,mapNodeValue:n})}throw X(`Unrecognized eviction policy ${e}`)}var q2=Z2;function J2(e){return()=>null}var ew={startPerfBlock:J2};const{isLoadable:tw,loadableWithError:Xo,loadableWithPromise:nw,loadableWithValue:lu}=Eo,{WrappedValue:Ph}=Ah,{getNodeLoadable:qo,peekNodeLoadable:rw,setNodeValue:ow}=hn,{saveDepsToStore:lw}=To,{DEFAULT_VALUE:iw,getConfigDeletionHandler:uw,getNode:sw,registerNode:tf}=Ye,{isRecoilValue:aw}=dr,{markRecoilValueModified:nf}=At,{retainedByOptionWithDefault:cw}=Vn,{recoilCallback:fw}=Lh,{startPerfBlock:dw}=ew;class $h{}const $r=new $h,Ir=[],Jo=new Map,pw=(()=>{let e=0;return()=>e++})();function Ih(e){let t=null;const{key:n,get:r,cachePolicy_UNSTABLE:o}=e,l=e.set!=null?e.set:void 0,i=new Set,u=q2(o??{equality:"reference",eviction:"keep-all"},n),s=cw(e.retainedBy_UNSTABLE),a=new Map;let d=0;function f(){return!ie("recoil_memory_managament_2020")||d>0}function m(y){return y.getState().knownSelectors.add(n),d++,()=>{d--}}function _(){return uw(n)!==void 0&&!f()}function S(y,A,x,G,z){Ie(A,G,z),R(y,x)}function R(y,A){$e(y,A)&&oe(y),h(A,!0)}function B(y,A){$e(y,A)&&(ve(U(y)).stateVersions.clear(),h(A,!1))}function h(y,A){const x=Jo.get(y);if(x!=null){for(const G of x)nf(G,ve(t));A&&Jo.delete(y)}}function c(y,A){let x=Jo.get(A);x==null&&Jo.set(A,x=new Set),x.add(y)}function p(y,A,x,G,z,Y){return A.then(J=>{if(!f())throw oe(y),$r;const W=lu(J);return S(y,x,z,W,G),J}).catch(J=>{if(!f())throw oe(y),$r;if(ae(J))return w(y,J,x,G,z,Y);const W=Xo(J);throw S(y,x,z,W,G),J})}function w(y,A,x,G,z,Y){return A.then(J=>{if(!f())throw oe(y),$r;Y.loadingDepKey!=null&&Y.loadingDepPromise===A?x.atomValues.set(Y.loadingDepKey,lu(J)):y.getState().knownSelectors.forEach(le=>{x.atomValues.delete(le)});const W=N(y,x);if(W&&W.state!=="loading"){if(($e(y,z)||U(y)==null)&&R(y,z),W.state==="hasValue")return W.contents;throw W.contents}if(!$e(y,z)){const le=te(y,x);if(le!=null)return le.loadingLoadable.contents}const[de,ke]=L(y,x,z);if(de.state!=="loading"&&S(y,x,z,de,ke),de.state==="hasError")throw de.contents;return de.contents}).catch(J=>{if(J instanceof $h)throw $r;if(!f())throw oe(y),$r;const W=Xo(J);throw S(y,x,z,W,G),J})}function E(y,A,x,G){var z,Y,J,W;if($e(y,G)||A.version===((z=y.getState())===null||z===void 0||(Y=z.currentTree)===null||Y===void 0?void 0:Y.version)||A.version===((J=y.getState())===null||J===void 0||(W=J.nextTree)===null||W===void 0?void 0:W.version)){var de,ke,le;lw(n,x,y,(de=(ke=y.getState())===null||ke===void 0||(le=ke.nextTree)===null||le===void 0?void 0:le.version)!==null&&de!==void 0?de:y.getState().currentTree.version)}for(const ye of x)i.add(ye)}function L(y,A,x){const G=dw(n);let z=!0,Y=!0;const J=()=>{G(),Y=!1};let W,de=!1,ke;const le={loadingDepKey:null,loadingDepPromise:null},ye=new Map;function ht({key:it}){const qe=qo(y,A,it);switch(ye.set(it,qe),z||(E(y,A,new Set(ye.keys()),x),B(y,x)),qe.state){case"hasValue":return qe.contents;case"hasError":throw qe.contents;case"loading":throw le.loadingDepKey=it,le.loadingDepPromise=qe.contents,qe.contents}throw X("Invalid Loadable state")}const mn=it=>(...qe)=>{if(Y)throw X("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return t==null&&Fr(!1),fw(y,it,qe,{node:t})};try{W=r({get:ht,getCallback:mn}),W=aw(W)?ht(W):W,tw(W)&&(W.state==="hasError"&&(de=!0),W=W.contents),ae(W)?W=p(y,W,A,ye,x,le).finally(J):J(),W=W instanceof Ph?W.value:W}catch(it){W=it,ae(W)?W=w(y,W,A,ye,x,le).finally(J):(de=!0,J())}return de?ke=Xo(W):ae(W)?ke=nw(W):ke=lu(W),z=!1,lt(y,x,ye),E(y,A,new Set(ye.keys()),x),[ke,ye]}function N(y,A){let x=A.atomValues.get(n);if(x!=null)return x;const G=new Set;try{x=u.get(Y=>(typeof Y!="string"&&Fr(!1),qo(y,A,Y).contents),{onNodeVisit:Y=>{Y.type==="branch"&&Y.nodeKey!==n&&G.add(Y.nodeKey)}})}catch(Y){throw X(`Problem with cache lookup for selector "${n}": ${Y.message}`)}if(x){var z;A.atomValues.set(n,x),E(y,A,G,(z=U(y))===null||z===void 0?void 0:z.executionID)}return x}function V(y,A){const x=N(y,A);if(x!=null)return oe(y),x;const G=te(y,A);if(G!=null){var z;return((z=G.loadingLoadable)===null||z===void 0?void 0:z.state)==="loading"&&c(y,G.executionID),G.loadingLoadable}const Y=pw(),[J,W]=L(y,A,Y);return J.state==="loading"?(fe(y,Y,J,W,A),c(y,Y)):(oe(y),Ie(A,J,W)),J}function te(y,A){const x=nh([a.has(y)?[ve(a.get(y))]:[],ai(fa(a,([z])=>z!==y),([,z])=>z)]);function G(z){for(const[Y,J]of z)if(!qo(y,A,Y).is(J))return!0;return!1}for(const z of x){if(z.stateVersions.get(A.version)||!G(z.depValuesDiscoveredSoFarDuringAsyncWork))return z.stateVersions.set(A.version,!0),z;z.stateVersions.set(A.version,!1)}}function U(y){return a.get(y)}function fe(y,A,x,G,z){a.set(y,{depValuesDiscoveredSoFarDuringAsyncWork:G,executionID:A,loadingLoadable:x,stateVersions:new Map([[z.version,!0]])})}function lt(y,A,x){if($e(y,A)){const G=U(y);G!=null&&(G.depValuesDiscoveredSoFarDuringAsyncWork=x)}}function oe(y){a.delete(y)}function $e(y,A){var x;return A===((x=U(y))===null||x===void 0?void 0:x.executionID)}function Mt(y){return Array.from(y.entries()).map(([A,x])=>[A,x.contents])}function Ie(y,A,x){y.atomValues.set(n,A);try{u.set(Mt(x),A)}catch(G){throw X(`Problem with setting cache for selector "${n}": ${G.message}`)}}function Xe(y){if(Ir.includes(n)){const A=`Recoil selector has circular dependencies: ${Ir.slice(Ir.indexOf(n)).join(" → ")}`;return Xo(X(A))}Ir.push(n);try{return y()}finally{Ir.pop()}}function $(y,A){const x=A.atomValues.get(n);return x??u.get(G=>{var z;return typeof G!="string"&&Fr(!1),(z=rw(y,A,G))===null||z===void 0?void 0:z.contents})}function H(y,A){return Xe(()=>V(y,A))}function I(y){y.atomValues.delete(n)}function j(y,A){t==null&&Fr(!1);for(const G of i){var x;const z=sw(G);(x=z.clearCache)===null||x===void 0||x.call(z,y,A)}i.clear(),I(A),u.clear(),nf(y,t)}return l!=null?t=tf({key:n,nodeType:"selector",peek:$,get:H,set:(A,x,G)=>{let z=!1;const Y=new Map;function J({key:le}){if(z)throw X("Recoil: Async selector sets are not currently supported.");const ye=qo(A,x,le);if(ye.state==="hasValue")return ye.contents;if(ye.state==="loading"){const ht=`Getting value of asynchronous atom or selector "${le}" in a pending state while setting selector "${n}" is not yet supported.`;throw X(ht)}else throw ye.contents}function W(le,ye){if(z)throw X("Recoil: Async selector sets are not currently supported.");const ht=typeof ye=="function"?ye(J(le)):ye;ow(A,x,le.key,ht).forEach((it,qe)=>Y.set(qe,it))}function de(le){W(le,iw)}const ke=l({set:W,get:J,reset:de},G);if(ke!==void 0)throw ae(ke)?X("Recoil: Async selector sets are not currently supported."):X("Recoil: selector set should be a void function.");return z=!0,Y},init:m,invalidate:I,clearCache:j,shouldDeleteConfigOnRelease:_,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:s}):t=tf({key:n,nodeType:"selector",peek:$,get:H,init:m,invalidate:I,clearCache:j,shouldDeleteConfigOnRelease:_,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:s})}Ih.value=e=>new Ph(e);var vr=Ih;const{isLoadable:hw,loadableWithError:iu,loadableWithPromise:uu,loadableWithValue:On}=Eo,{WrappedValue:Vh}=Ah,{peekNodeInfo:vw}=hn,{DEFAULT_VALUE:Sn,DefaultValue:Kt,getConfigDeletionHandler:zh,registerNode:mw,setConfigDeletionHandler:yw}=Ye,{isRecoilValue:gw}=dr,{getRecoilValueAsLoadable:Sw,markRecoilValueModified:ww,setRecoilValue:rf,setRecoilValueLoadable:_w}=At,{retainedByOptionWithDefault:Rw}=Vn,Vr=e=>e instanceof Vh?e.value:e;function Ew(e){const{key:t,persistence_UNSTABLE:n}=e,r=Rw(e.retainedBy_UNSTABLE);let o=0;function l(c){return uu(c.then(p=>(i=On(p),p)).catch(p=>{throw i=iu(p),p}))}let i=ae(e.default)?l(e.default):hw(e.default)?e.default.state==="loading"?l(e.default.contents):e.default:On(Vr(e.default));i.contents;let u;const s=new Map;function a(c){return c}function d(c,p){const w=p.then(E=>{var L,N;return((N=((L=c.getState().nextTree)!==null&&L!==void 0?L:c.getState().currentTree).atomValues.get(t))===null||N===void 0?void 0:N.contents)===w&&rf(c,h,E),E}).catch(E=>{var L,N;throw((N=((L=c.getState().nextTree)!==null&&L!==void 0?L:c.getState().currentTree).atomValues.get(t))===null||N===void 0?void 0:N.contents)===w&&_w(c,h,iu(E)),E});return w}function f(c,p,w){var E;o++;const L=()=>{var U;o--,(U=s.get(c))===null||U===void 0||U.forEach(fe=>fe()),s.delete(c)};if(c.getState().knownAtoms.add(t),i.state==="loading"){const U=()=>{var fe;((fe=c.getState().nextTree)!==null&&fe!==void 0?fe:c.getState().currentTree).atomValues.has(t)||ww(c,h)};i.contents.finally(U)}const N=(E=e.effects)!==null&&E!==void 0?E:e.effects_UNSTABLE;if(N!=null){let U=function(I){if($e&&I.key===t){const j=oe;return j instanceof Kt?m(c,p):ae(j)?uu(j.then(y=>y instanceof Kt?i.toPromise():y)):On(j)}return Sw(c,I)},fe=function(I){return U(I).toPromise()},lt=function(I){var j;const y=vw(c,(j=c.getState().nextTree)!==null&&j!==void 0?j:c.getState().currentTree,I.key);return $e&&I.key===t&&!(oe instanceof Kt)?{...y,isSet:!0,loadable:U(I)}:y},oe=Sn,$e=!0,Mt=!1,Ie=null;const Xe=I=>j=>{if($e){const y=U(h),A=y.state==="hasValue"?y.contents:Sn;oe=typeof j=="function"?j(A):j,ae(oe)&&(oe=oe.then(x=>(Ie={effect:I,value:x},x)))}else{if(ae(j))throw X("Setting atoms to async values is not implemented.");typeof j!="function"&&(Ie={effect:I,value:Vr(j)}),rf(c,h,typeof j=="function"?y=>{const A=Vr(j(y));return Ie={effect:I,value:A},A}:Vr(j))}},$=I=>()=>Xe(I)(Sn),H=I=>j=>{var y;const{release:A}=c.subscribeToTransactions(x=>{var G;let{currentTree:z,previousTree:Y}=x.getState();Y||(Y=z);const J=(G=z.atomValues.get(t))!==null&&G!==void 0?G:i;if(J.state==="hasValue"){var W,de,ke,le;const ye=J.contents,ht=(W=Y.atomValues.get(t))!==null&&W!==void 0?W:i,mn=ht.state==="hasValue"?ht.contents:Sn;((de=Ie)===null||de===void 0?void 0:de.effect)!==I||((ke=Ie)===null||ke===void 0?void 0:ke.value)!==ye?j(ye,mn,!z.atomValues.has(t)):((le=Ie)===null||le===void 0?void 0:le.effect)===I&&(Ie=null)}},t);s.set(c,[...(y=s.get(c))!==null&&y!==void 0?y:[],A])};for(const I of N)try{const j=I({node:h,storeID:c.storeID,parentStoreID_UNSTABLE:c.parentStoreID,trigger:w,setSelf:Xe(I),resetSelf:$(I),onSet:H(I),getPromise:fe,getLoadable:U,getInfo_UNSTABLE:lt});if(j!=null){var V;s.set(c,[...(V=s.get(c))!==null&&V!==void 0?V:[],j])}}catch(j){oe=j,Mt=!0}if($e=!1,!(oe instanceof Kt)){var te;const I=Mt?iu(oe):ae(oe)?uu(d(c,oe)):On(Vr(oe));I.contents,p.atomValues.set(t,I),(te=c.getState().nextTree)===null||te===void 0||te.atomValues.set(t,I)}}return L}function m(c,p){var w,E;return(w=(E=p.atomValues.get(t))!==null&&E!==void 0?E:u)!==null&&w!==void 0?w:i}function _(c,p){if(p.atomValues.has(t))return ve(p.atomValues.get(t));if(p.nonvalidatedAtoms.has(t)){if(u!=null)return u;if(n==null)return i;const w=p.nonvalidatedAtoms.get(t),E=n.validator(w,Sn);return u=E instanceof Kt?i:On(E),u}else return i}function S(){u=void 0}function R(c,p,w){if(p.atomValues.has(t)){const E=ve(p.atomValues.get(t));if(E.state==="hasValue"&&w===E.contents)return new Map}else if(!p.nonvalidatedAtoms.has(t)&&w instanceof Kt)return new Map;return u=void 0,new Map().set(t,On(w))}function B(){return zh(t)!==void 0&&o<=0}const h=mw({key:t,nodeType:"atom",peek:m,get:_,set:R,init:f,invalidate:S,shouldDeleteConfigOnRelease:B,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:r});return h}function _a(e){const{...t}=e,n="default"in e?e.default:new Promise(()=>{});return gw(n)?kw({...t,default:n}):Ew({...t,default:n})}function kw(e){const t=_a({...e,default:Sn,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:r=>r instanceof Kt?r:ve(e.persistence_UNSTABLE).validator(r,Sn)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=vr({key:`${e.key}__withFallback`,get:({get:r})=>{const o=r(t);return o instanceof Kt?e.default:o},set:({set:r},o)=>r(t,o),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return yw(n.key,zh(e.key)),n}_a.value=e=>new Vh(e);var Dh=_a;class Tw{constructor(t){var n;Z(this,"_map",void 0),Z(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(n=t==null?void 0:t.mapKey)!==null&&n!==void 0?n:r=>r}size(){return this._map.size}has(t){return this._map.has(this._keyMapper(t))}get(t){return this._map.get(this._keyMapper(t))}set(t,n){this._map.set(this._keyMapper(t),n)}delete(t){this._map.delete(this._keyMapper(t))}clear(){this._map.clear()}}var Cw={MapCache:Tw},Nw=Cw.MapCache,Lw=Object.freeze({__proto__:null,MapCache:Nw});const{LRUCache:of}=Mh,{MapCache:Aw}=Lw,el={equality:"reference",eviction:"none",maxSize:1/0};function xw({equality:e=el.equality,eviction:t=el.eviction,maxSize:n=el.maxSize}=el){const r=Mw(e);return Pw(t,n,r)}function Mw(e){switch(e){case"reference":return t=>t;case"value":return t=>Ri(t)}throw X(`Unrecognized equality policy ${e}`)}function Pw(e,t,n){switch(e){case"keep-all":return new Aw({mapKey:n});case"lru":return new of({mapKey:n,maxSize:ve(t)});case"most-recent":return new of({mapKey:n,maxSize:1})}throw X(`Unrecognized eviction policy ${e}`)}var Oh=xw;const{setConfigDeletionHandler:$w}=Ye;function Iw(e){var t,n;const r=Oh({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var l,i;const u=r.get(o);if(u!=null)return u;const{cachePolicyForParams_UNSTABLE:s,...a}=e,d="default"in e?e.default:new Promise(()=>{}),f=Dh({...a,key:`${e.key}__${(l=Ri(o))!==null&&l!==void 0?l:"void"}`,default:typeof d=="function"?d(o):d,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(o):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(o):(i=e.effects)!==null&&i!==void 0?i:e.effects_UNSTABLE});return r.set(o,f),$w(f.key,()=>{r.delete(o)}),f}}var Vw=Iw;const{setConfigDeletionHandler:zw}=Ye;let Dw=0;function Ow(e){var t,n;const r=Oh({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var l;let i;try{i=r.get(o)}catch(m){throw X(`Problem with cache lookup for selector ${e.key}: ${m.message}`)}if(i!=null)return i;const u=`${e.key}__selectorFamily/${(l=Ri(o,{allowFunctions:!0}))!==null&&l!==void 0?l:"void"}/${Dw++}`,s=m=>e.get(o)(m),a=e.cachePolicy_UNSTABLE,d=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE;let f;if(e.set!=null){const m=e.set;f=vr({key:u,get:s,set:(S,R)=>m(o)(S,R),cachePolicy_UNSTABLE:a,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:d})}else f=vr({key:u,get:s,cachePolicy_UNSTABLE:a,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:d});return r.set(o,f),zw(f.key,()=>{r.delete(o)}),f}}var vn=Ow;const Uw=vn({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function Fw(e){return Uw(e)}var Bw=Fw;const jw=vn({key:"__error",get:e=>()=>{throw X(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function Ww(e){return jw(e)}var Hw=Ww;function bw(e){return e}var Kw=bw;const{loadableWithError:Uh,loadableWithPromise:Fh,loadableWithValue:Bh}=Eo;function Ei(e,t){const n=Array(t.length).fill(void 0),r=Array(t.length).fill(void 0);for(const[o,l]of t.entries())try{n[o]=e(l)}catch(i){r[o]=i}return[n,r]}function Gw(e){return e!=null&&!ae(e)}function ki(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function cs(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((n,r,o)=>({...n,[r]:t[o]}),{})}function rr(e,t,n){const r=n.map((o,l)=>o==null?Bh(t[l]):ae(o)?Fh(o):Uh(o));return cs(e,r)}function Qw(e,t){return t.map((n,r)=>n===void 0?e[r]:n)}const Zw=vn({key:"__waitForNone",get:e=>({get:t})=>{const n=ki(e),[r,o]=Ei(t,n);return rr(e,r,o)},dangerouslyAllowMutability:!0}),Yw=vn({key:"__waitForAny",get:e=>({get:t})=>{const n=ki(e),[r,o]=Ei(t,n);return o.some(l=>!ae(l))?rr(e,r,o):new Promise(l=>{for(const[i,u]of o.entries())ae(u)&&u.then(s=>{r[i]=s,o[i]=void 0,l(rr(e,r,o))}).catch(s=>{o[i]=s,l(rr(e,r,o))})})},dangerouslyAllowMutability:!0}),Xw=vn({key:"__waitForAll",get:e=>({get:t})=>{const n=ki(e),[r,o]=Ei(t,n);if(o.every(i=>i==null))return cs(e,r);const l=o.find(Gw);if(l!=null)throw l;return Promise.all(o).then(i=>cs(e,Qw(r,i)))},dangerouslyAllowMutability:!0}),qw=vn({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=ki(e),[r,o]=Ei(t,n);return o.every(l=>!ae(l))?rr(e,r,o):Promise.all(o.map((l,i)=>ae(l)?l.then(u=>{r[i]=u,o[i]=void 0}).catch(u=>{r[i]=void 0,o[i]=u}):null)).then(()=>rr(e,r,o))},dangerouslyAllowMutability:!0}),Jw=vn({key:"__noWait",get:e=>({get:t})=>{try{return vr.value(Bh(t(e)))}catch(n){return vr.value(ae(n)?Fh(n):Uh(n))}},dangerouslyAllowMutability:!0});var e_={waitForNone:Zw,waitForAny:Yw,waitForAll:Xw,waitForAllSettled:qw,noWait:Jw};const{RecoilLoadable:t_}=Eo,{DefaultValue:n_}=Ye,{RecoilRoot:r_,useRecoilStoreID:o_}=jt,{isRecoilValue:l_}=dr,{retentionZone:i_}=fi,{freshSnapshot:u_}=yi,{useRecoilState:s_,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:a_,useRecoilStateLoadable:c_,useRecoilValue:f_,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:d_,useRecoilValueLoadable:p_,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:h_,useResetRecoilState:v_,useSetRecoilState:m_}=CS,{useGotoRecoilSnapshot:y_,useRecoilSnapshot:g_,useRecoilTransactionObserver:S_}=kh,{useRecoilCallback:w_}=Lh,{noWait:__,waitForAll:R_,waitForAllSettled:E_,waitForAny:k_,waitForNone:T_}=e_;var Ao={DefaultValue:n_,isRecoilValue:l_,RecoilLoadable:t_,RecoilEnv:Sr,RecoilRoot:r_,useRecoilStoreID:o_,useRecoilBridgeAcrossReactRoots_UNSTABLE:JS,atom:Dh,selector:vr,atomFamily:Vw,selectorFamily:vn,constSelector:Bw,errorSelector:Hw,readOnlySelector:Kw,noWait:__,waitForNone:T_,waitForAny:k_,waitForAll:R_,waitForAllSettled:E_,useRecoilValue:f_,useRecoilValueLoadable:p_,useRecoilState:s_,useRecoilStateLoadable:c_,useSetRecoilState:m_,useResetRecoilState:v_,useGetRecoilValueInfo_UNSTABLE:GS,useRecoilRefresher_UNSTABLE:L2,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:h_,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:d_,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:a_,useRecoilCallback:w_,useRecoilTransaction_UNSTABLE:$2,useGotoRecoilSnapshot:y_,useRecoilSnapshot:g_,useRecoilTransactionObserver_UNSTABLE:S_,snapshot_UNSTABLE:u_,useRetain:ma,retentionZone:i_},C_=Ao.RecoilRoot,xo=Ao.atom,N_=Ao.selector,L_=Ao.useRecoilValue,Mo=Ao.useRecoilState;function jh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t'),!0):t?e.some(function(n){return t.includes(n)})||e.includes("*"):!0}var z_=function(t,n,r){r===void 0&&(r=!1);var o=n.alt,l=n.meta,i=n.mod,u=n.shift,s=n.ctrl,a=n.keys,d=t.key,f=t.code,m=t.ctrlKey,_=t.metaKey,S=t.shiftKey,R=t.altKey,B=Xt(f),h=d.toLowerCase();if(!(a!=null&&a.includes(B))&&!(a!=null&&a.includes(h))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(B))return!1;if(!r){if(o===!R&&h!=="alt"||u===!S&&h!=="shift")return!1;if(i){if(!_&&!m)return!1}else if(l===!_&&h!=="meta"&&h!=="os"||s===!m&&h!=="ctrl"&&h!=="control")return!1}return a&&a.length===1&&(a.includes(h)||a.includes(B))?!0:a?M_(a):!a},D_=k.createContext(void 0),O_=function(){return k.useContext(D_)};function Gh(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(n,r){return n&&Gh(e[r],t[r])},!0):e===t}var U_=k.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),F_=function(){return k.useContext(U_)};function B_(e){var t=k.useRef(void 0);return Gh(t.current,e)||(t.current=e),t.current}var lf=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},j_=typeof window<"u"?k.useLayoutEffect:k.useEffect;function cn(e,t,n,r){var o=k.useRef(null),l=k.useRef(!1),i=n instanceof Array?r instanceof Array?void 0:r:n,u=Ra(e)?e.join(i==null?void 0:i.splitKey):e,s=n instanceof Array?n:r instanceof Array?r:void 0,a=k.useCallback(t,s??[]),d=k.useRef(a);s?d.current=a:d.current=t;var f=B_(i),m=F_(),_=m.enabledScopes,S=O_();return j_(function(){if(!((f==null?void 0:f.enabled)===!1||!V_(_,f==null?void 0:f.scopes))){var R=function(w,E){var L;if(E===void 0&&(E=!1),!(I_(w)&&!Kh(w,f==null?void 0:f.enableOnFormTags))){if(o.current!==null){var N=o.current.getRootNode();if((N instanceof Document||N instanceof ShadowRoot)&&N.activeElement!==o.current&&!o.current.contains(N.activeElement)){lf(w);return}}(L=w.target)!=null&&L.isContentEditable&&!(f!=null&&f.enableOnContentEditable)||su(u,f==null?void 0:f.splitKey).forEach(function(V){var te,U=au(V,f==null?void 0:f.combinationKey);if(z_(w,U,f==null?void 0:f.ignoreModifiers)||(te=U.keys)!=null&&te.includes("*")){if(f!=null&&f.ignoreEventWhen!=null&&f.ignoreEventWhen(w)||E&&l.current)return;if(P_(w,U,f==null?void 0:f.preventDefault),!$_(w,U,f==null?void 0:f.enabled)){lf(w);return}d.current(w,U),E||(l.current=!0)}})}},B=function(w){w.key!==void 0&&(Hh(Xt(w.code)),((f==null?void 0:f.keydown)===void 0&&(f==null?void 0:f.keyup)!==!0||f!=null&&f.keydown)&&R(w))},h=function(w){w.key!==void 0&&(bh(Xt(w.code)),l.current=!1,f!=null&&f.keyup&&R(w,!0))},c=o.current||(i==null?void 0:i.document)||document;return c.addEventListener("keyup",h),c.addEventListener("keydown",B),S&&su(u,f==null?void 0:f.splitKey).forEach(function(p){return S.addHotkey(au(p,f==null?void 0:f.combinationKey,f==null?void 0:f.description))}),function(){c.removeEventListener("keyup",h),c.removeEventListener("keydown",B),S&&su(u,f==null?void 0:f.splitKey).forEach(function(p){return S.removeHotkey(au(p,f==null?void 0:f.combinationKey,f==null?void 0:f.description))})}}},[u,f,_]),o}const W_=xo({key:"open",default:!1}),H_=()=>Mo(W_),b_=xo({key:"context",default:"ACTIONS"}),Ea=()=>Mo(b_);function K_(e){const t=k.useRef();return k.useEffect(()=>{const n=r=>{t.current&&!t.current.contains(r.target)&&e()};return document.addEventListener("click",n,!0),()=>{document.removeEventListener("click",n,!0)}},[t]),t}const Qh=xo({key:"query",default:""}),Zh=()=>Mo(Qh);function Yh(){let e="/";return window.palette&&window.palette.baseUrl&&(e=`${window.palette.baseUrl}/`,e=e.replace(/\/+$/,"/")),e}const Xh=xo({key:"unfilteredActionsState",default:[]}),G_=N_({key:"actionsState",get:({get:e})=>{const t=e(Qh);return e(Xh).filter(r=>r.name.toLowerCase().includes(t.toLowerCase())||r.subtitle.toLowerCase().includes(t.toLowerCase()))}});function Q_(){const[e,t]=Mo(Xh),n=L_(G_);async function r(){const o=Yh(),i=await(await fetch(`${o}actions/palette/actions`)).json();t(i)}return{getActions:r,actions:n}}const Z_=xo({key:"focus",default:0});function ka(e){const[t,n]=Mo(Z_);k.useEffect(()=>{n(0)},[e]);async function r(o,l){l.length!==0&&(o==="up"&&t===0||o==="down"&&t===l.length-1||(o==="up"&&n(i=>i-1),o==="down"&&n(i=>i+1)))}return{setFocus:n,moveFocus:r,focus:t}}function Y_({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 13.5V3.75m0 9.75a1.5 1.5 0 0 1 0 3m0-3a1.5 1.5 0 0 0 0 3m0 3.75V16.5m12-3V3.75m0 9.75a1.5 1.5 0 0 1 0 3m0-3a1.5 1.5 0 0 0 0 3m0 3.75V16.5m-6-9V3.75m0 3.75a1.5 1.5 0 0 1 0 3m0-3a1.5 1.5 0 0 0 0 3m0 9.75V10.5"}))}const X_=k.forwardRef(Y_),q_=X_;function J_({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15M12 9l-3 3m0 0 3 3m-3-3h12.75"}))}const e5=k.forwardRef(J_),t5=e5;function n5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 15 3 9m0 0 6-6M3 9h12a6 6 0 0 1 0 12h-3"}))}const r5=k.forwardRef(n5),o5=r5;function l5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))}const i5=k.forwardRef(l5),u5=i5;function s5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"}))}const a5=k.forwardRef(s5),c5=a5;function f5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"}))}const d5=k.forwardRef(f5),p5=d5;function h5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 9.75 16.5 12l-2.25 2.25m-4.5 0L7.5 12l2.25-2.25M6 20.25h12A2.25 2.25 0 0 0 20.25 18V6A2.25 2.25 0 0 0 18 3.75H6A2.25 2.25 0 0 0 3.75 6v12A2.25 2.25 0 0 0 6 20.25Z"}))}const v5=k.forwardRef(h5),m5=v5;function y5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.343 3.94c.09-.542.56-.94 1.11-.94h1.093c.55 0 1.02.398 1.11.94l.149.894c.07.424.384.764.78.93.398.164.855.142 1.205-.108l.737-.527a1.125 1.125 0 0 1 1.45.12l.773.774c.39.389.44 1.002.12 1.45l-.527.737c-.25.35-.272.806-.107 1.204.165.397.505.71.93.78l.893.15c.543.09.94.559.94 1.109v1.094c0 .55-.397 1.02-.94 1.11l-.894.149c-.424.07-.764.383-.929.78-.165.398-.143.854.107 1.204l.527.738c.32.447.269 1.06-.12 1.45l-.774.773a1.125 1.125 0 0 1-1.449.12l-.738-.527c-.35-.25-.806-.272-1.203-.107-.398.165-.71.505-.781.929l-.149.894c-.09.542-.56.94-1.11.94h-1.094c-.55 0-1.019-.398-1.11-.94l-.148-.894c-.071-.424-.384-.764-.781-.93-.398-.164-.854-.142-1.204.108l-.738.527c-.447.32-1.06.269-1.45-.12l-.773-.774a1.125 1.125 0 0 1-.12-1.45l.527-.737c.25-.35.272-.806.108-1.204-.165-.397-.506-.71-.93-.78l-.894-.15c-.542-.09-.94-.56-.94-1.109v-1.094c0-.55.398-1.02.94-1.11l.894-.149c.424-.07.765-.383.93-.78.165-.398.143-.854-.108-1.204l-.526-.738a1.125 1.125 0 0 1 .12-1.45l.773-.773a1.125 1.125 0 0 1 1.45-.12l.737.527c.35.25.807.272 1.204.107.397-.165.71-.505.78-.929l.15-.894Z"}),k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const g5=k.forwardRef(y5),S5=g5;function w5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m6.75 7.5 3 2.25-3 2.25m4.5 0h3m-9 8.25h13.5A2.25 2.25 0 0 0 21 18V6a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 6v12a2.25 2.25 0 0 0 2.25 2.25Z"}))}const _5=k.forwardRef(w5),R5=_5;function E5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75"}))}const k5=k.forwardRef(E5),T5=k5;function C5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))}const N5=k.forwardRef(C5),uf=N5;function L5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"}))}const A5=k.forwardRef(L5),x5=A5;function M5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const P5=k.forwardRef(M5),$5=P5;function I5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m18.375 12.739-7.693 7.693a4.5 4.5 0 0 1-6.364-6.364l10.94-10.94A3 3 0 1 1 19.5 7.372L8.552 18.32m.009-.01-.01.01m5.699-9.941-7.81 7.81a1.5 1.5 0 0 0 2.112 2.13"}))}const V5=k.forwardRef(I5),z5=V5;function D5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"}))}const O5=k.forwardRef(D5),U5=O5;function F5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18v-2.25Z"}))}const B5=k.forwardRef(F5),j5=B5;function W5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.375 19.5h17.25m-17.25 0a1.125 1.125 0 0 1-1.125-1.125M3.375 19.5h7.5c.621 0 1.125-.504 1.125-1.125m-9.75 0V5.625m0 12.75v-1.5c0-.621.504-1.125 1.125-1.125m18.375 2.625V5.625m0 12.75c0 .621-.504 1.125-1.125 1.125m1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125m0 3.75h-7.5A1.125 1.125 0 0 1 12 18.375m9.75-12.75c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125m19.5 0v1.5c0 .621-.504 1.125-1.125 1.125M2.25 5.625v1.5c0 .621.504 1.125 1.125 1.125m0 0h17.25m-17.25 0h7.5c.621 0 1.125.504 1.125 1.125M3.375 8.25c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125m17.25-3.75h-7.5c-.621 0-1.125.504-1.125 1.125m8.625-1.125c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125M12 10.875v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 10.875c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125M13.125 12h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125M20.625 12c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5M12 14.625v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 14.625c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125m0 1.5v-1.5m0 0c0-.621.504-1.125 1.125-1.125m0 0h7.5"}))}const H5=k.forwardRef(W5),b5=H5;function K5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const G5=k.forwardRef(K5),Q5=G5;function Z5({name:e,...t}){return e==="document"?F.jsx(uf,{...t}):e==="table"?F.jsx(b5,{...t}):e==="section"?F.jsx(j5,{...t}):e==="code"?F.jsx(m5,{...t}):e==="bolt"?F.jsx(c5,{...t}):e==="settings"?F.jsx(S5,{...t}):e==="search"?F.jsx($5,{...t}):e==="globe"?F.jsx(x5,{...t}):e==="edit"?F.jsx(U5,{...t}):e==="menu"?F.jsx(u5,{...t}):e==="attachment"?F.jsx(z5,{...t}):e==="database"?F.jsx(p5,{...t}):e==="utility"?F.jsx(q_,{...t}):e==="docs"?F.jsx(T5,{...t}):e==="user"?F.jsx(Q5,{...t}):e==="logout"?F.jsx(t5,{...t}):F.jsx(uf,{...t})}function qh({url:e,title:t,subtitle:n,icon:r,type:o,focused:l}){const i=k.useRef(null),[u,s]=Ea(),{focus:a,setFocus:d}=ka();return cn("enter",()=>{l&&(o==="link"?window.location=e:s(e))},{enableOnFormTags:!0}),cn("meta+enter",()=>{l&&(o==="link"?window.open(e,"_blank"):s(e))},{enableOnFormTags:!0}),k.useEffect(()=>{l&&i.current.scrollIntoView({block:"center"})},[a]),F.jsx("a",{className:jl("p-flex p-items-center p-gap-2","p-font-sans p-text-sm p-text-zinc-700 dark:p-text-zinc-300 p-no-underline","p-px-3 p-py-2.5 p-mx-2 p-rounded-lg",l&&"p-bg-zinc-200/75 dark:p-bg-zinc-700/50","hover:p-bg-zinc-200/75 dark:hover:p-bg-zinc-700/50"),onMouseEnter:()=>d(null),href:o==="link"?e:null,onClick:()=>o==="context"?s(e):null,ref:i,children:F.jsx("div",{className:"p-flex p-items-center p-justify-between p-gap-2 p-flex-1",children:F.jsxs("div",{className:"p-flex p-items-center p-gap-3 p-flex-1",children:[F.jsx(Z5,{name:r,className:"p-size-5 p-opacity-75"}),F.jsxs("div",{className:"p-flex-1 p-flex p-justify-between p-items-center p-gap-1",children:[F.jsx("p",{className:"p-block p-leading-none p-m-0 p-font-sans p-font-medium",children:t}),n&&F.jsx("p",{className:"p-block p-leading-none p-text-xs p-m-0 p-font-sans p-opacity-75",children:n})]})]})})})}function Jh({text:e="No matching results found"}){return F.jsxs("div",{className:"p-flex p-flex-col p-justify-center p-items-center p-py-6 p-text-zinc-400 dark:p-text-zinc-500",children:[F.jsx("div",{children:F.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"p-size-12",children:F.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"})})}),F.jsx("p",{className:"p-text-lg p-mt-1",children:e})]})}function Y5(){const{actions:e,getActions:t}=Q_(),{focus:n,moveFocus:r}=ka(e);return cn("up",()=>r("up",e),{enableOnFormTags:!0,preventDefault:!0}),cn("down",()=>r("down",e),{enableOnFormTags:!0,preventDefault:!0}),k.useEffect(()=>{t()},[]),F.jsxs(F.Fragment,{children:[e.length===0&&F.jsx(Jh,{}),e.map((o,l)=>F.jsx(qh,{url:o.url,title:o.name,subtitle:o.subtitle,icon:o.icon,focused:l===n,type:o.type},o.url))]})}function X5(e,t,n){k.useEffect(()=>{const r=setTimeout(()=>e(),n);return()=>clearTimeout(r)},[...t||[],n])}function q5(){const[e]=Zh(),[t,n]=k.useState([]),{focus:r,moveFocus:o}=ka(t);return X5(()=>{const l=Yh();fetch(`${l}actions/palette/search?query=${e}`).then(i=>i.json()).then(i=>n(i))},[e],200),cn("up",()=>o("up",t),{enableOnFormTags:!0,preventDefault:!0}),cn("down",()=>o("down",t),{enableOnFormTags:!0,preventDefault:!0}),F.jsxs(F.Fragment,{children:[t.length===0&&F.jsx(Jh,{text:"No matching entries found"}),t.map((l,i)=>F.jsx(qh,{url:l.url,title:l.name,subtitle:l.subtitle,icon:l.icon,focused:i===r,type:l.type},l.url))]})}function J5({placeholder:e="Search"}){const[t,n]=Zh(),[r,o]=Ea();return k.useEffect(()=>{n("")},[r]),F.jsxs("div",{className:"p-flex p-px-2 p-items-center p-gap-1 p-border-b p-border-zinc-200 dark:p-border-zinc-700",children:[r!=="ACTIONS"&&F.jsx("div",{children:F.jsx("button",{className:"p-size-8 p-flex p-items-center p-justify-center p-border p-border-zinc-300 dark:p-border-zinc-700 p-rounded-lg dark:p-bg-zinc-900",onClick:()=>o("ACTIONS"),children:F.jsx(o5,{className:"p-size-4 p-text-zinc-500"})})}),F.jsx("input",{type:"text",className:jl(["p-bg-transparent","p-w-full p-px-2 p-py-3","p-outline-none p-ring-0 p-shadow-none p-border-0","p-text-base placeholder:p-text-zinc-400 placeholder:dark:p-text-zinc-500 p-text-zinc-700 dark:p-text-zinc-200"]),placeholder:e,onInput:({target:l})=>n(l.value),value:t,autoFocus:!0,spellCheck:!1})]})}function eR(){const[e,t]=H_(),[n,r]=Ea(),o=K_(()=>t(!1));return cn(["ctrl+k, meta+k"],()=>{t(l=>!l),r("ACTIONS")},{enableOnFormTags:!0,preventDefault:!0}),cn("esc",()=>{n==="ACTIONS"&&t(!1),r("ACTIONS")},{enableOnFormTags:!0}),F.jsxs(F.Fragment,{children:[e&&F.jsx("div",{className:"p-fixed p-inset-0 p-z-[9999] p-size-full p-flex p-justify-center p-antialiased",children:F.jsx("div",{className:"p-w-full p-max-w-2xl",children:F.jsxs("div",{ref:o,className:jl(["p-bg-white/70 dark:p-bg-zinc-950/90","p-outline-zinc-300 dark:p-outline-zinc-900 p-outline p-outline-1","p-border p-border-white dark:p-border-zinc-500","p-rounded-lg p-translate-y-24 p-overflow-hidden p-backdrop-blur-xl p-shadow-2xl"]),children:[F.jsx(J5,{}),F.jsxs("div",{className:"dark:p-bg-zinc-950/10 p-max-h-96 p-overflow-scroll p-py-2",children:[n==="ACTIONS"&&F.jsx(Y5,{}),n==="SEARCH_ENTRIES"&&F.jsx(q5,{})]})]})})}),F.jsx("button",{className:jl(["p-fixed p-bottom-5 p-left-5 p-z-[100]","p-flex p-items-center p-justify-center","p-backdrop-blur-md p-shadow p-rounded-full","p-bg-zinc-50/70 dark:p-bg-neutral-800/90","dark:p-text-neutral-300","p-size-8","p-cursor-pointer","p-border-0","p-transition-transform hover:p-scale-110 active:p-scale-90"]),onClick:()=>t(!0),"aria-label":"Open Palette",children:F.jsx(R5,{className:"p-size-5"})})]})}function tR(){return F.jsx(C_,{children:F.jsx(eR,{})})}const ev=document.createElement("div");ev.setAttribute("data-palette","");document.body.appendChild(ev);document.querySelectorAll("[data-palette]").forEach(e=>Rp.render(F.jsx(tR,{}),e));
+ hot module replacement.`;console.warn(t)}}function v1(e){Sr.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&h1(e.key),Mn.set(e.key,e);const t=e.set==null?new dr.RecoilValueReadOnly(e.key):new dr.RecoilState(e.key);return sa.set(e.key,t),t}class Pp extends Error{}function m1(e){const t=Mn.get(e);if(t==null)throw new Pp(`Missing definition for RecoilValue: "${e}""`);return t}function y1(e){return Mn.get(e)}const Ol=new Map;function g1(e){var t;if(!ie("recoil_memory_managament_2020"))return;const n=Mn.get(e);if(n!=null&&(t=n.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(n)){var r;Mn.delete(e),(r=$p(e))===null||r===void 0||r(),Ol.delete(e)}}function S1(e,t){ie("recoil_memory_managament_2020")&&(t===void 0?Ol.delete(e):Ol.set(e,t))}function $p(e){return Ol.get(e)}var Ye={nodes:Mn,recoilValues:sa,registerNode:v1,getNode:m1,getNodeMaybe:y1,deleteNodeConfigIfPossible:g1,setConfigDeletionHandler:S1,getConfigDeletionHandler:$p,recoilValuesForKeys:p1,NodeMissingError:Pp,DefaultValue:Mp,DEFAULT_VALUE:d1};function w1(e,t){t()}var _1={enqueueExecution:w1};function R1(e,t){return t={exports:{}},e(t,t.exports),t.exports}var E1=R1(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},n={},r=5,o=Math.pow(2,r),l=o-1,i=o/2,u=o/4,s={},a=function(v){return function(){return v}},d=n.hash=function(g){var v=typeof g>"u"?"undefined":t(g);if(v==="number")return g;v!=="string"&&(g+="");for(var T=0,M=0,P=g.length;M>1&1431655765,v=(v&858993459)+(v>>2&858993459),v=v+(v>>4)&252645135,v+=v>>8,v+=v>>16,v&127},m=function(v,T){return T>>>v&l},_=function(v){return 1<=T;)P[Q--]=P[Q];return P[T]=M,P}for(var b=0,K=0,q=new Array(O+1);b>>=1;return Q[T]=M,fe(v,K+1,Q)},$e=function(v,T,M,P){for(var O=new Array(T-1),Q=0,b=0,K=0,q=P.length;K1?te(v,this.hash,q):q[0]}var pe=P();return pe===s?this:(++b.value,Mt(v,M,this.hash,this,O,V(v,O,Q,pe)))},I=function(v,T,M,P,O,Q,b){var K=this.mask,q=this.children,pe=m(M,O),We=_(pe),Ne=S(K,We),ut=K&We,vt=ut?q[Ne]:L,zn=vt._modify(v,T,M+r,P,O,Q,b);if(vt===zn)return this;var Po=Xe(v,this),_r=K,Rr=void 0;if(ut&&N(zn)){if(_r&=~We,!_r)return L;if(q.length<=2&<(q[Ne^1]))return q[Ne^1];Rr=B(Po,Ne,q)}else if(!ut&&!N(zn)){if(q.length>=i)return oe(v,pe,zn,K,q);_r|=We,Rr=h(Po,Ne,zn,q)}else Rr=R(Po,Ne,zn,q);return Po?(this.mask=_r,this.children=Rr,this):U(v,_r,Rr)},j=function(v,T,M,P,O,Q,b){var K=this.size,q=this.children,pe=m(M,O),We=q[pe],Ne=(We||L)._modify(v,T,M+r,P,O,Q,b);if(We===Ne)return this;var ut=Xe(v,this),vt=void 0;if(N(We)&&!N(Ne))++K,vt=R(ut,pe,Ne,q);else if(!N(We)&&N(Ne)){if(--K,K<=u)return $e(v,K,pe,q);vt=R(ut,pe,L,q)}else vt=R(ut,pe,Ne,q);return ut?(this.size=K,this.children=vt,this):fe(v,K,vt)};L._modify=function(g,v,T,M,P,O,Q){var b=M();return b===s?L:(++Q.value,V(g,P,O,b))};function y(g,v,T,M,P){this._editable=g,this._edit=v,this._config=T,this._root=M,this._size=P}y.prototype.setTree=function(g,v){return this._editable?(this._root=g,this._size=v,this):g===this._root?this:new y(this._editable,this._edit,this._config,g,v)};var A=n.tryGetHash=function(g,v,T,M){for(var P=M._root,O=0,Q=M._config.keyEq;;)switch(P.type){case c:return Q(T,P.key)?P.value:g;case p:{if(v===P.hash)for(var b=P.children,K=0,q=b.length;K{n.set(o,t(r,o))}),n}var Ul=A1;function x1(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function M1(e){return{nodeDeps:Ul(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:Ul(e.nodeToNodeSubscriptions,t=>new Set(t))}}function ru(e,t,n,r){const{nodeDeps:o,nodeToNodeSubscriptions:l}=n,i=o.get(e);if(i&&r&&i!==r.nodeDeps.get(e))return;o.set(e,t);const u=i==null?t:Yr(t,i);for(const s of u)l.has(s)||l.set(s,new Set),ve(l.get(s)).add(e);if(i){const s=Yr(i,t);for(const a of s){if(!l.has(a))return;const d=ve(l.get(a));d.delete(e),d.size===0&&l.delete(a)}}}function P1(e,t,n,r){var o,l,i,u;const s=n.getState();r===s.currentTree.version||r===((o=s.nextTree)===null||o===void 0?void 0:o.version)||((l=s.previousTree)===null||l===void 0||l.version);const a=n.getGraph(r);if(ru(e,t,a),r===((i=s.previousTree)===null||i===void 0?void 0:i.version)){const f=n.getGraph(s.currentTree.version);ru(e,t,f,a)}if(r===((u=s.previousTree)===null||u===void 0?void 0:u.version)||r===s.currentTree.version){var d;const f=(d=s.nextTree)===null||d===void 0?void 0:d.version;if(f!==void 0){const m=n.getGraph(f);ru(e,t,m,a)}}}var To={cloneGraph:M1,graph:x1,saveDepsToStore:P1};let $1=0;const I1=()=>$1++;let V1=0;const z1=()=>V1++;let D1=0;const O1=()=>D1++;var ci={getNextTreeStateVersion:I1,getNextStoreID:z1,getNextComponentID:O1};const{persistentMap:Dc}=N1,{graph:U1}=To,{getNextTreeStateVersion:Ip}=ci;function Vp(){const e=Ip();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:Dc(),nonvalidatedAtoms:Dc()}}function F1(){const e=Vp();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(e.version,U1()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var zp={makeEmptyTreeState:Vp,makeEmptyStoreState:F1,getNextTreeStateVersion:Ip};class Dp{}function B1(){return new Dp}var fi={RetentionZone:Dp,retentionZone:B1};function j1(e,t){const n=new Set(e);return n.add(t),n}function W1(e,t){const n=new Set(e);return n.delete(t),n}function H1(e,t,n){const r=new Map(e);return r.set(t,n),r}function b1(e,t,n){const r=new Map(e);return r.set(t,n(r.get(t))),r}function K1(e,t){const n=new Map(e);return n.delete(t),n}function G1(e,t){const n=new Map(e);return t.forEach(r=>n.delete(r)),n}var Op={setByAddingToSet:j1,setByDeletingFromSet:W1,mapBySettingInMap:H1,mapByUpdatingInMap:b1,mapByDeletingFromMap:K1,mapByDeletingMultipleFromMap:G1};function*Q1(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)}var fa=Q1;function Z1(e,t){return new Proxy(e,{get:(r,o)=>(!(o in r)&&o in t&&(r[o]=t[o]()),r[o]),ownKeys:r=>Object.keys(r)})}var Up=Z1;const{getNode:Co,getNodeMaybe:Y1,recoilValuesForKeys:Oc}=Ye,{RetentionZone:Uc}=fi,{setByAddingToSet:X1}=Op,q1=Object.freeze(new Set);class J1 extends Error{}function ey(e,t,n){if(!ie("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:r}=e.getState().retention;function o(l){let i=r.get(l);i||r.set(l,i=new Set),i.add(t)}if(n instanceof Uc)o(n);else if(Array.isArray(n))for(const l of n)o(l);return()=>{if(!ie("recoil_memory_managament_2020"))return;const{retention:l}=e.getState();function i(u){const s=l.nodesRetainedByZone.get(u);s==null||s.delete(t),s&&s.size===0&&l.nodesRetainedByZone.delete(u)}if(n instanceof Uc)i(n);else if(Array.isArray(n))for(const u of n)i(u)}}function da(e,t,n,r){const o=e.getState();if(o.nodeCleanupFunctions.has(n))return;const l=Co(n),i=ey(e,n,l.retainedBy),u=l.init(e,t,r);o.nodeCleanupFunctions.set(n,()=>{u(),i()})}function ty(e,t,n){da(e,e.getState().currentTree,t,n)}function ny(e,t){var n;const r=e.getState();(n=r.nodeCleanupFunctions.get(t))===null||n===void 0||n(),r.nodeCleanupFunctions.delete(t)}function ry(e,t,n){return da(e,t,n,"get"),Co(n).get(e,t)}function Fp(e,t,n){return Co(n).peek(e,t)}function oy(e,t,n){var r;const o=Y1(t);return o==null||(r=o.invalidate)===null||r===void 0||r.call(o,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:X1(e.dirtyAtoms,t)}}function ly(e,t,n,r){const o=Co(n);if(o.set==null)throw new J1(`Attempt to set read-only RecoilValue: ${n}`);const l=o.set;return da(e,t,n,"set"),l(e,t,r)}function iy(e,t,n){const r=e.getState(),o=e.getGraph(t.version),l=Co(n).nodeType;return Up({type:l},{loadable:()=>Fp(e,t,n),isActive:()=>r.knownAtoms.has(n)||r.knownSelectors.has(n),isSet:()=>l==="selector"?!1:t.atomValues.has(n),isModified:()=>t.dirtyAtoms.has(n),deps:()=>{var i;return Oc((i=o.nodeDeps.get(n))!==null&&i!==void 0?i:[])},subscribers:()=>{var i,u;return{nodes:Oc(fa(Bp(e,t,new Set([n])),s=>s!==n)),components:ai((i=(u=r.nodeToComponentSubscriptions.get(n))===null||u===void 0?void 0:u.values())!==null&&i!==void 0?i:[],([s])=>({name:s}))}}})}function Bp(e,t,n){const r=new Set,o=Array.from(n),l=e.getGraph(t.version);for(let u=o.pop();u;u=o.pop()){var i;r.add(u);const s=(i=l.nodeToNodeSubscriptions.get(u))!==null&&i!==void 0?i:q1;for(const a of s)r.has(a)||o.push(a)}return r}var hn={getNodeLoadable:ry,peekNodeLoadable:Fp,setNodeValue:ly,initializeNode:ty,cleanUpNode:ny,setUnvalidatedAtomValue_DEPRECATED:oy,peekNodeInfo:iy,getDownstreamNodes:Bp};let jp=null;function uy(e){jp=e}function sy(){var e;(e=jp)===null||e===void 0||e()}var Wp={setInvalidateMemoizedSnapshot:uy,invalidateMemoizedSnapshot:sy};const{getDownstreamNodes:ay,getNodeLoadable:Hp,setNodeValue:cy}=hn,{getNextComponentID:fy}=ci,{getNode:dy,getNodeMaybe:bp}=Ye,{DefaultValue:pa}=Ye,{reactMode:py}=ko,{AbstractRecoilValue:hy,RecoilState:vy,RecoilValueReadOnly:my,isRecoilValue:yy}=dr,{invalidateMemoizedSnapshot:gy}=Wp;function Sy(e,{key:t},n=e.getState().currentTree){var r,o;const l=e.getState();n.version===l.currentTree.version||n.version===((r=l.nextTree)===null||r===void 0?void 0:r.version)||(n.version,(o=l.previousTree)===null||o===void 0||o.version);const i=Hp(e,n,t);return i.state==="loading"&&i.contents.catch(()=>{}),i}function wy(e,t){const n=e.clone();return t.forEach((r,o)=>{r.state==="hasValue"&&r.contents instanceof pa?n.delete(o):n.set(o,r)}),n}function _y(e,t,{key:n},r){if(typeof r=="function"){const o=Hp(e,t,n);if(o.state==="loading"){const l=`Tried to set atom or selector "${n}" using an updater function while the current state is pending, this is not currently supported.`;throw X(l)}else if(o.state==="hasError")throw o.contents;return r(o.contents)}else return r}function Ry(e,t,n){if(n.type==="set"){const{recoilValue:o,valueOrUpdater:l}=n,i=_y(e,t,o,l),u=cy(e,t,o.key,i);for(const[s,a]of u.entries())rs(t,s,a)}else if(n.type==="setLoadable"){const{recoilValue:{key:o},loadable:l}=n;rs(t,o,l)}else if(n.type==="markModified"){const{recoilValue:{key:o}}=n;t.dirtyAtoms.add(o)}else if(n.type==="setUnvalidated"){var r;const{recoilValue:{key:o},unvalidatedValue:l}=n,i=bp(o);i==null||(r=i.invalidate)===null||r===void 0||r.call(i,t),t.atomValues.delete(o),t.nonvalidatedAtoms.set(o,l),t.dirtyAtoms.add(o)}else ia(`Unknown action ${n.type}`)}function rs(e,t,n){n.state==="hasValue"&&n.contents instanceof pa?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function Kp(e,t){e.replaceState(n=>{const r=Gp(n);for(const o of t)Ry(e,r,o);return Qp(e,r),gy(),r})}function di(e,t){if(Xr.length){const n=Xr[Xr.length-1];let r=n.get(e);r||n.set(e,r=[]),r.push(t)}else Kp(e,[t])}const Xr=[];function Ey(){const e=new Map;return Xr.push(e),()=>{for(const[t,n]of e)Kp(t,n);Xr.pop()}}function Gp(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function Qp(e,t){const n=ay(e,t,t.dirtyAtoms);for(const l of n){var r,o;(r=bp(l))===null||r===void 0||(o=r.invalidate)===null||o===void 0||o.call(r,t)}}function Zp(e,t,n){di(e,{type:"set",recoilValue:t,valueOrUpdater:n})}function ky(e,t,n){if(n instanceof pa)return Zp(e,t,n);di(e,{type:"setLoadable",recoilValue:t,loadable:n})}function Ty(e,t){di(e,{type:"markModified",recoilValue:t})}function Cy(e,t,n){di(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})}function Ny(e,{key:t},n,r=null){const o=fy(),l=e.getState();l.nodeToComponentSubscriptions.has(t)||l.nodeToComponentSubscriptions.set(t,new Map),ve(l.nodeToComponentSubscriptions.get(t)).set(o,[r??"",n]);const i=py();if(i.early&&(i.mode==="LEGACY"||i.mode==="MUTABLE_SOURCE")){const u=e.getState().nextTree;u&&u.dirtyAtoms.has(t)&&n(u)}return{release:()=>{const u=e.getState(),s=u.nodeToComponentSubscriptions.get(t);s===void 0||!s.has(o)||(s.delete(o),s.size===0&&u.nodeToComponentSubscriptions.delete(t))}}}function Ly(e,t){var n;const{currentTree:r}=e.getState(),o=dy(t.key);(n=o.clearCache)===null||n===void 0||n.call(o,e,r)}var At={RecoilValueReadOnly:my,AbstractRecoilValue:hy,RecoilState:vy,getRecoilValueAsLoadable:Sy,setRecoilValue:Zp,setRecoilValueLoadable:ky,markRecoilValueModified:Ty,setUnvalidatedRecoilValue:Cy,subscribeToRecoilValue:Ny,isRecoilValue:yy,applyAtomValueWrites:wy,batchStart:Ey,writeLoadableToTreeState:rs,invalidateDownstreams:Qp,copyTreeState:Gp,refreshRecoilValue:Ly};function Ay(e,t,n){const r=e.entries();let o=r.next();for(;!o.done;){const l=o.value;if(t.call(n,l[1],l[0],e))return!0;o=r.next()}return!1}var xy=Ay;const{cleanUpNode:My}=hn,{deleteNodeConfigIfPossible:Py,getNode:Yp}=Ye,{RetentionZone:Xp}=fi,$y=12e4,qp=new Set;function Jp(e,t){const n=e.getState(),r=n.currentTree;if(n.nextTree)return;const o=new Set;for(const i of t)if(i instanceof Xp)for(const u of Dy(n,i))o.add(u);else o.add(i);const l=Iy(e,o);for(const i of l)zy(e,r,i)}function Iy(e,t){const n=e.getState(),r=n.currentTree,o=e.getGraph(r.version),l=new Set,i=new Set;return u(t),l;function u(s){const a=new Set,d=Vy(e,r,s,l,i);for(const S of d){var f;if(Yp(S).retainedBy==="recoilRoot"){i.add(S);continue}if(((f=n.retention.referenceCounts.get(S))!==null&&f!==void 0?f:0)>0){i.add(S);continue}if(eh(S).some(B=>n.retention.referenceCounts.get(B))){i.add(S);continue}const R=o.nodeToNodeSubscriptions.get(S);if(R&&xy(R,B=>i.has(B))){i.add(S);continue}l.add(S),a.add(S)}const m=new Set;for(const S of a)for(const R of(_=o.nodeDeps.get(S))!==null&&_!==void 0?_:qp){var _;l.has(R)||m.add(R)}m.size&&u(m)}}function Vy(e,t,n,r,o){const l=e.getGraph(t.version),i=[],u=new Set;for(;n.size>0;)s(ve(n.values().next().value));return i;function s(a){if(r.has(a)||o.has(a)){n.delete(a);return}if(u.has(a))return;const d=l.nodeToNodeSubscriptions.get(a);if(d)for(const f of d)s(f);u.add(a),n.delete(a),i.push(a)}}function zy(e,t,n){if(!ie("recoil_memory_managament_2020"))return;My(e,n);const r=e.getState();r.knownAtoms.delete(n),r.knownSelectors.delete(n),r.nodeTransactionSubscriptions.delete(n),r.retention.referenceCounts.delete(n);const o=eh(n);for(const s of o){var l;(l=r.retention.nodesRetainedByZone.get(s))===null||l===void 0||l.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);const i=r.graphsByVersion.get(t.version);if(i){const s=i.nodeDeps.get(n);if(s!==void 0){i.nodeDeps.delete(n);for(const a of s){var u;(u=i.nodeToNodeSubscriptions.get(a))===null||u===void 0||u.delete(n)}}i.nodeToNodeSubscriptions.delete(n)}Py(n)}function Dy(e,t){var n;return(n=e.retention.nodesRetainedByZone.get(t))!==null&&n!==void 0?n:qp}function eh(e){const t=Yp(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof Xp?[t]:t}function Oy(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):Jp(e,new Set([t]))}function Uy(e,t,n){var r;if(!ie("recoil_memory_managament_2020"))return;const o=e.getState().retention.referenceCounts,l=((r=o.get(t))!==null&&r!==void 0?r:0)+n;l===0?th(e,t):o.set(t,l)}function th(e,t){if(!ie("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),Oy(e,t)}function Fy(e){if(!ie("recoil_memory_managament_2020"))return;const t=e.getState();Jp(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function By(e){return e===void 0?"recoilRoot":e}var Vn={SUSPENSE_TIMEOUT_MS:$y,updateRetainCount:Uy,updateRetainCountToZero:th,releaseScheduledRetainablesNow:Fy,retainedByOptionWithDefault:By};const{unstable_batchedUpdates:jy}=Vm;var Wy={unstable_batchedUpdates:jy};const{unstable_batchedUpdates:Hy}=Wy;var by={unstable_batchedUpdates:Hy};const{batchStart:Ky}=At,{unstable_batchedUpdates:Gy}=by;let ha=Gy||(e=>e());const Qy=e=>{ha=e},Zy=()=>ha,Yy=e=>{ha(()=>{let t=()=>{};try{t=Ky(),e()}finally{t()}})};var pi={getBatcher:Zy,setBatcher:Qy,batchUpdates:Yy};function*Xy(e){for(const t of e)for(const n of t)yield n}var nh=Xy;const rh=typeof Window>"u"||typeof window>"u",qy=e=>!rh&&(e===window||e instanceof Window),Jy=typeof navigator<"u"&&navigator.product==="ReactNative";var hi={isSSR:rh,isReactNative:Jy,isWindow:qy};function eg(e,t){let n;return(...r)=>{n||(n={});const o=t(...r);return Object.hasOwnProperty.call(n,o)||(n[o]=e(...r)),n[o]}}function tg(e,t){let n,r;return(...o)=>{const l=t(...o);return n===l||(n=l,r=e(...o)),r}}function ng(e,t){let n,r;return[(...i)=>{const u=t(...i);return n===u||(n=u,r=e(...i)),r},()=>{n=null}]}var rg={memoizeWithArgsHash:eg,memoizeOneWithArgsHash:tg,memoizeOneWithArgsHashAndInvalidation:ng};const{batchUpdates:os}=pi,{initializeNode:og,peekNodeInfo:lg}=hn,{graph:ig}=To,{getNextStoreID:ug}=ci,{DEFAULT_VALUE:sg,recoilValues:Fc,recoilValuesForKeys:Bc}=Ye,{AbstractRecoilValue:ag,getRecoilValueAsLoadable:cg,setRecoilValue:jc,setUnvalidatedRecoilValue:fg}=At,{updateRetainCount:pl}=Vn,{setInvalidateMemoizedSnapshot:dg}=Wp,{getNextTreeStateVersion:pg,makeEmptyStoreState:hg}=zp,{isSSR:vg}=hi,{memoizeOneWithArgsHashAndInvalidation:mg}=rg;class vi{constructor(t,n){Z(this,"_store",void 0),Z(this,"_refCount",1),Z(this,"getLoadable",r=>(this.checkRefCount_INTERNAL(),cg(this._store,r))),Z(this,"getPromise",r=>(this.checkRefCount_INTERNAL(),this.getLoadable(r).toPromise())),Z(this,"getNodes_UNSTABLE",r=>{if(this.checkRefCount_INTERNAL(),(r==null?void 0:r.isModified)===!0){if((r==null?void 0:r.isInitialized)===!1)return[];const i=this._store.getState().currentTree;return Bc(i.dirtyAtoms)}const o=this._store.getState().knownAtoms,l=this._store.getState().knownSelectors;return(r==null?void 0:r.isInitialized)==null?Fc.values():r.isInitialized===!0?Bc(nh([o,l])):fa(Fc.values(),({key:i})=>!o.has(i)&&!l.has(i))}),Z(this,"getInfo_UNSTABLE",({key:r})=>(this.checkRefCount_INTERNAL(),lg(this._store,this._store.getState().currentTree,r))),Z(this,"map",r=>{this.checkRefCount_INTERNAL();const o=new ls(this,os);return r(o),o}),Z(this,"asyncMap",async r=>{this.checkRefCount_INTERNAL();const o=new ls(this,os);return o.retain(),await r(o),o.autoRelease_INTERNAL(),o}),this._store={storeID:ug(),parentStoreID:n,getState:()=>t,replaceState:r=>{t.currentTree=r(t.currentTree)},getGraph:r=>{const o=t.graphsByVersion;if(o.has(r))return ve(o.get(r));const l=ig();return o.set(r,l),l},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw X("Cannot subscribe to Snapshots")}};for(const r of this._store.getState().knownAtoms)og(this._store,r,"get"),pl(this._store,r,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){vg||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,this._refCount===0){if(this._store.getState().nodeCleanupFunctions.forEach(t=>t()),this._store.getState().nodeCleanupFunctions.clear(),!ie("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){ie("recoil_memory_managament_2020")&&this._refCount<=0}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function oh(e,t,n=!1){const r=e.getState(),o=n?pg():t.version;return{currentTree:{version:n?o:t.version,stateID:n?o:t.stateID,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(r.knownAtoms),knownSelectors:new Set(r.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(o,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(ai(r.nodeCleanupFunctions.entries(),([l])=>[l,()=>{}]))}}function yg(e){const t=new vi(hg());return e!=null?t.map(e):t}const[Wc,lh]=mg((e,t)=>{var n;const r=e.getState(),o=t==="latest"?(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree:ve(r.previousTree);return new vi(oh(e,o),e.storeID)},(e,t)=>{var n,r;return String(t)+String(e.storeID)+String((n=e.getState().nextTree)===null||n===void 0?void 0:n.version)+String(e.getState().currentTree.version)+String((r=e.getState().previousTree)===null||r===void 0?void 0:r.version)});dg(lh);function gg(e,t="latest"){const n=Wc(e,t);return n.isRetained()?n:(lh(),Wc(e,t))}class ls extends vi{constructor(t,n){super(oh(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),Z(this,"_batch",void 0),Z(this,"set",(r,o)=>{this.checkRefCount_INTERNAL();const l=this.getStore_INTERNAL();this._batch(()=>{pl(l,r.key,1),jc(this.getStore_INTERNAL(),r,o)})}),Z(this,"reset",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();this._batch(()=>{pl(o,r.key,1),jc(this.getStore_INTERNAL(),r,sg)})}),Z(this,"setUnvalidatedAtomValues_DEPRECATED",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();os(()=>{for(const[l,i]of r.entries())pl(o,l,1),fg(o,new ag(l),i)})}),this._batch=n}}var mi={Snapshot:vi,MutableSnapshot:ls,freshSnapshot:yg,cloneSnapshot:gg},Sg=mi.Snapshot,wg=mi.MutableSnapshot,_g=mi.freshSnapshot,Rg=mi.cloneSnapshot,yi=Object.freeze({__proto__:null,Snapshot:Sg,MutableSnapshot:wg,freshSnapshot:_g,cloneSnapshot:Rg});function Eg(...e){const t=new Set;for(const n of e)for(const r of n)t.add(r);return t}var kg=Eg;const{useRef:Tg}=me;function Cg(e){const t=Tg(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var Hc=Cg;const{getNextTreeStateVersion:Ng,makeEmptyStoreState:ih}=zp,{cleanUpNode:Lg,getDownstreamNodes:Ag,initializeNode:xg,setNodeValue:Mg,setUnvalidatedAtomValue_DEPRECATED:Pg}=hn,{graph:$g}=To,{cloneGraph:Ig}=To,{getNextStoreID:uh}=ci,{createMutableSource:ou,reactMode:sh}=ko,{applyAtomValueWrites:Vg}=At,{releaseScheduledRetainablesNow:ah}=Vn,{freshSnapshot:zg}=yi,{useCallback:Dg,useContext:ch,useEffect:is,useMemo:Og,useRef:Ug,useState:Fg}=me;function Mr(){throw X("This component must be used inside a component.")}const fh=Object.freeze({storeID:uh(),getState:Mr,replaceState:Mr,getGraph:Mr,subscribeToTransactions:Mr,addTransactionMetadata:Mr});let us=!1;function bc(e){if(us)throw X("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const t=e.getState();if(t.nextTree===null){ie("recoil_memory_managament_2020")&&ie("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&ah(e);const n=t.currentTree.version,r=Ng();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,Ig(ve(t.graphsByVersion.get(n))))}}const dh=me.createContext({current:fh}),gi=()=>ch(dh),ph=me.createContext(null);function Bg(){return ch(ph)}function va(e,t,n){const r=Ag(e,n,n.dirtyAtoms);for(const o of r){const l=t.nodeToComponentSubscriptions.get(o);if(l)for(const[i,[u,s]]of l)s(n)}}function hh(e){const t=e.getState(),n=t.currentTree,r=n.dirtyAtoms;if(r.size){for(const[o,l]of t.nodeTransactionSubscriptions)if(r.has(o))for(const[i,u]of l)u(e);for(const[o,l]of t.transactionSubscriptions)l(e);(!sh().early||t.suspendedComponentResolvers.size>0)&&(va(e,t,n),t.suspendedComponentResolvers.forEach(o=>o()),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach(o=>o(n)),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function jg(e){const t=e.getState();t.commitDepth++;try{const{nextTree:n}=t;if(n==null)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,hh(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):ia("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,ie("recoil_memory_managament_2020")&&n==null&&ah(e)}finally{t.commitDepth--}}function Wg({setNotifyBatcherOfChange:e}){const t=gi(),[,n]=Fg([]);return e(()=>n({})),is(()=>(e(()=>n({})),()=>{e(()=>{})}),[e]),is(()=>{_1.enqueueExecution("Batcher",()=>{jg(t.current)})}),null}function Hg(e,t){const n=ih();return t({set:(r,o)=>{const l=n.currentTree,i=Mg(e,l,r.key,o),u=new Set(i.keys()),s=l.nonvalidatedAtoms.clone();for(const a of u)s.delete(a);n.currentTree={...l,dirtyAtoms:kg(l.dirtyAtoms,u),atomValues:Vg(l.atomValues,i),nonvalidatedAtoms:s}},setUnvalidatedAtomValues:r=>{r.forEach((o,l)=>{n.currentTree=Pg(n.currentTree,l,o)})}}),n}function bg(e){const t=zg(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach(r=>r()),n.nodeCleanupFunctions.clear(),n}let Kc=0;function Kg({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){let o;const l=_=>{const S=o.current.graphsByVersion;if(S.has(_))return ve(S.get(_));const R=$g();return S.set(_,R),R},i=(_,S)=>{if(S==null){const{transactionSubscriptions:R}=f.current.getState(),B=Kc++;return R.set(B,_),{release:()=>{R.delete(B)}}}else{const{nodeTransactionSubscriptions:R}=f.current.getState();R.has(S)||R.set(S,new Map);const B=Kc++;return ve(R.get(S)).set(B,_),{release:()=>{const h=R.get(S);h&&(h.delete(B),h.size===0&&R.delete(S))}}}},u=_=>{bc(f.current);for(const S of Object.keys(_))ve(f.current.getState().nextTree).transactionMetadata[S]=_[S]},s=_=>{bc(f.current);const S=ve(o.current.nextTree);let R;try{us=!0,R=_(S)}finally{us=!1}R!==S&&(o.current.nextTree=R,sh().early&&va(f.current,o.current,R),ve(a.current)())},a=Ug(null),d=Dg(_=>{a.current=_},[a]),f=Hc(()=>n??{storeID:uh(),getState:()=>o.current,replaceState:s,getGraph:l,subscribeToTransactions:i,addTransactionMetadata:u});n!=null&&(f.current=n),o=Hc(()=>e!=null?Hg(f.current,e):t!=null?bg(t):ih());const m=Og(()=>ou==null?void 0:ou(o,()=>o.current.currentTree.version),[o]);return is(()=>{const _=f.current;for(const S of new Set(_.getState().knownAtoms))xg(_,S,"get");return()=>{for(const S of _.getState().knownAtoms)Lg(_,S)}},[f]),me.createElement(dh.Provider,{value:f},me.createElement(ph.Provider,{value:m},me.createElement(Wg,{setNotifyBatcherOfChange:d}),r))}function Gg(e){const{override:t,...n}=e,r=gi();return t===!1&&r.current!==fh?e.children:me.createElement(Kg,n)}function Qg(){return gi().current.storeID}var jt={RecoilRoot:Gg,useStoreRef:gi,useRecoilMutableSource:Bg,useRecoilStoreID:Qg,notifyComponents_FOR_TESTING:va,sendEndOfBatchNotifications_FOR_TESTING:hh};function Zg(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n{t.current=e}),t.current}var vh=Jg;const{useStoreRef:eS}=jt,{SUSPENSE_TIMEOUT_MS:tS}=Vn,{updateRetainCount:Pr}=Vn,{RetentionZone:nS}=fi,{useEffect:rS,useRef:oS}=me,{isSSR:Gc}=hi;function lS(e){if(ie("recoil_memory_managament_2020"))return iS(e)}function iS(e){const n=(Array.isArray(e)?e:[e]).map(i=>i instanceof nS?i:i.key),r=eS();rS(()=>{if(!ie("recoil_memory_managament_2020"))return;const i=r.current;if(o.current&&!Gc)window.clearTimeout(o.current),o.current=null;else for(const u of n)Pr(i,u,1);return()=>{for(const u of n)Pr(i,u,-1)}},[r,...n]);const o=oS(),l=vh(n);if(!Gc&&(l===void 0||!Yg(l,n))){const i=r.current;for(const u of n)Pr(i,u,1);if(l)for(const u of l)Pr(i,u,-1);o.current&&window.clearTimeout(o.current),o.current=window.setTimeout(()=>{o.current=null;for(const u of n)Pr(i,u,-1)},tS)}}var ma=lS;function uS(){return""}var No=uS;const{batchUpdates:sS}=pi,{DEFAULT_VALUE:mh}=Ye,{currentRendererSupportsUseSyncExternalStore:aS,reactMode:wr,useMutableSource:cS,useSyncExternalStore:fS}=ko,{useRecoilMutableSource:dS,useStoreRef:xt}=jt,{AbstractRecoilValue:ss,getRecoilValueAsLoadable:Lo,setRecoilValue:Fl,setUnvalidatedRecoilValue:pS,subscribeToRecoilValue:pr}=At,{useCallback:Ze,useEffect:hr,useMemo:yh,useRef:qr,useState:ya}=me,{setByAddingToSet:hS}=Op,{isSSR:vS}=hi;function ga(e,t,n){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(o=>{const l=n.current.getState().suspendedComponentResolvers;l.add(o),vS&&ae(e.contents)&&e.contents.finally(()=>{l.delete(o)})}):e.state==="hasError"?e.contents:X(`Invalid value of loadable atom "${t.key}"`)}function mS(){const e=No(),t=xt(),[,n]=ya([]),r=qr(new Set);r.current=new Set;const o=qr(new Set),l=qr(new Map),i=Ze(s=>{const a=l.current.get(s);a&&(a.release(),l.current.delete(s))},[l]),u=Ze((s,a)=>{l.current.has(a)&&n([])},[]);return hr(()=>{const s=t.current;Yr(r.current,o.current).forEach(a=>{if(l.current.has(a))return;const d=pr(s,new ss(a),m=>u(m,a),e);l.current.set(a,d),s.getState().nextTree?s.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{u(s.getState(),a)}):u(s.getState(),a)}),Yr(o.current,r.current).forEach(a=>{i(a)}),o.current=r.current}),hr(()=>{const s=l.current;return Yr(r.current,new Set(s.keys())).forEach(a=>{const d=pr(t.current,new ss(a),f=>u(f,a),e);s.set(a,d)}),()=>s.forEach((a,d)=>i(d))},[e,t,i,u]),yh(()=>{function s(S){return R=>{Fl(t.current,S,R)}}function a(S){return()=>Fl(t.current,S,mh)}function d(S){var R;r.current.has(S.key)||(r.current=hS(r.current,S.key));const B=t.current.getState();return Lo(t.current,S,wr().early&&(R=B.nextTree)!==null&&R!==void 0?R:B.currentTree)}function f(S){const R=d(S);return ga(R,S,t)}function m(S){return[f(S),s(S)]}function _(S){return[d(S),s(S)]}return{getRecoilValue:f,getRecoilValueLoadable:d,getRecoilState:m,getRecoilStateLoadable:_,getSetRecoilState:s,getResetRecoilState:a}},[r,t])}const yS={current:0};function gS(e){const t=xt(),n=No(),r=Ze(()=>{var u;const s=t.current,a=s.getState(),d=wr().early&&(u=a.nextTree)!==null&&u!==void 0?u:a.currentTree;return{loadable:Lo(s,e,d),key:e.key}},[t,e]),o=Ze(u=>{let s;return()=>{var a,d;const f=u();return(a=s)!==null&&a!==void 0&&a.loadable.is(f.loadable)&&((d=s)===null||d===void 0?void 0:d.key)===f.key?s:(s=f,f)}},[]),l=yh(()=>o(r),[r,o]),i=Ze(u=>{const s=t.current;return pr(s,e,u,n).release},[t,e,n]);return fS(i,l,l).loadable}function SS(e){const t=xt(),n=Ze(()=>{var a;const d=t.current,f=d.getState(),m=wr().early&&(a=f.nextTree)!==null&&a!==void 0?a:f.currentTree;return Lo(d,e,m)},[t,e]),r=Ze(()=>n(),[n]),o=No(),l=Ze((a,d)=>{const f=t.current;return pr(f,e,()=>{if(!ie("recoil_suppress_rerender_in_callback"))return d();const _=n();s.current.is(_)||d(),s.current=_},o).release},[t,e,o,n]),i=dS();if(i==null)throw X("Recoil hooks must be used in components contained within a component.");const u=cS(i,r,l),s=qr(u);return hr(()=>{s.current=u}),u}function as(e){const t=xt(),n=No(),r=Ze(()=>{var s;const a=t.current,d=a.getState(),f=wr().early&&(s=d.nextTree)!==null&&s!==void 0?s:d.currentTree;return Lo(a,e,f)},[t,e]),o=Ze(()=>({loadable:r(),key:e.key}),[r,e.key]),l=Ze(s=>{const a=o();return s.loadable.is(a.loadable)&&s.key===a.key?s:a},[o]);hr(()=>{const s=pr(t.current,e,a=>{u(l)},n);return u(l),s.release},[n,e,t,l]);const[i,u]=ya(o);return i.key!==e.key?o().loadable:i.loadable}function wS(e){const t=xt(),[,n]=ya([]),r=No(),o=Ze(()=>{var u;const s=t.current,a=s.getState(),d=wr().early&&(u=a.nextTree)!==null&&u!==void 0?u:a.currentTree;return Lo(s,e,d)},[t,e]),l=o(),i=qr(l);return hr(()=>{i.current=l}),hr(()=>{const u=t.current,s=u.getState(),a=pr(u,e,f=>{var m;if(!ie("recoil_suppress_rerender_in_callback"))return n([]);const _=o();(m=i.current)!==null&&m!==void 0&&m.is(_)||n(_),i.current=_},r);if(s.nextTree)u.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{i.current=null,n([])});else{var d;if(!ie("recoil_suppress_rerender_in_callback"))return n([]);const f=o();(d=i.current)!==null&&d!==void 0&&d.is(f)||n(f),i.current=f}return a.release},[r,o,e,t]),l}function Sa(e){return ie("recoil_memory_managament_2020")&&ma(e),{TRANSITION_SUPPORT:as,SYNC_EXTERNAL_STORE:aS()?gS:as,MUTABLE_SOURCE:SS,LEGACY:wS}[wr().mode](e)}function gh(e){const t=xt(),n=Sa(e);return ga(n,e,t)}function Si(e){const t=xt();return Ze(n=>{Fl(t.current,e,n)},[t,e])}function _S(e){const t=xt();return Ze(()=>{Fl(t.current,e,mh)},[t,e])}function RS(e){return[gh(e),Si(e)]}function ES(e){return[Sa(e),Si(e)]}function kS(){const e=xt();return(t,n={})=>{sS(()=>{e.current.addTransactionMetadata(n),t.forEach((r,o)=>pS(e.current,new ss(o),r))})}}function Sh(e){return ie("recoil_memory_managament_2020")&&ma(e),as(e)}function wh(e){const t=xt(),n=Sh(e);return ga(n,e,t)}function TS(e){return[wh(e),Si(e)]}var CS={recoilComponentGetRecoilValueCount_FOR_TESTING:yS,useRecoilInterface:mS,useRecoilState:RS,useRecoilStateLoadable:ES,useRecoilValue:gh,useRecoilValueLoadable:Sa,useResetRecoilState:_S,useSetRecoilState:Si,useSetUnvalidatedAtomValues:kS,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Sh,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:wh,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:TS};function NS(e,t){const n=new Map;for(const[r,o]of e)t(o,r)&&n.set(r,o);return n}var LS=NS;function AS(e,t){const n=new Set;for(const r of e)t(r)&&n.add(r);return n}var xS=AS;function MS(...e){const t=new Map;for(let n=0;nt.current.subscribeToTransactions(e).release,[e,t])}function Yc(e){const t=e.atomValues.toMap(),n=Ul(LS(t,(r,o)=>{const i=_h(o).persistence_UNSTABLE;return i!=null&&i.type!=="none"&&r.state==="hasValue"}),r=>r.contents);return PS(e.nonvalidatedAtoms.toMap(),n)}function FS(e){_i(wi(t=>{let n=t.getState().previousTree;const r=t.getState().currentTree;n||(n=t.getState().currentTree);const o=Yc(r),l=Yc(n),i=Ul(VS,s=>{var a,d,f,m;return{persistence_UNSTABLE:{type:(a=(d=s.persistence_UNSTABLE)===null||d===void 0?void 0:d.type)!==null&&a!==void 0?a:"none",backButton:(f=(m=s.persistence_UNSTABLE)===null||m===void 0?void 0:m.backButton)!==null&&f!==void 0?f:!1}}}),u=xS(r.dirtyAtoms,s=>o.has(s)||l.has(s));e({atomValues:o,previousAtomValues:l,atomInfo:i,modifiedAtoms:u,transactionMetadata:{...r.transactionMetadata}})},[e]))}function BS(e){_i(wi(t=>{const n=Bl(t,"latest"),r=Bl(t,"previous");e({snapshot:n,previousSnapshot:r})},[e]))}function jS(){const e=wa(),[t,n]=US(()=>Bl(e.current)),r=vh(t),o=Qc(),l=Qc();if(_i(wi(u=>n(Bl(u)),[])),Rh(()=>{const u=t.retain();if(o.current&&!Zc){var s;window.clearTimeout(o.current),o.current=null,(s=l.current)===null||s===void 0||s.call(l),l.current=null}return()=>{window.setTimeout(u,10)}},[t]),r!==t&&!Zc){if(o.current){var i;window.clearTimeout(o.current),o.current=null,(i=l.current)===null||i===void 0||i.call(l),l.current=null}l.current=t.retain(),o.current=window.setTimeout(()=>{var u;o.current=null,(u=l.current)===null||u===void 0||u.call(l),l.current=null},OS)}return t}function Eh(e,t){var n;const r=e.getState(),o=(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree,l=t.getStore_INTERNAL().getState().currentTree;$S(()=>{const i=new Set;for(const a of[o.atomValues.keys(),l.atomValues.keys()])for(const d of a){var u,s;((u=o.atomValues.get(d))===null||u===void 0?void 0:u.contents)!==((s=l.atomValues.get(d))===null||s===void 0?void 0:s.contents)&&_h(d).shouldRestoreFromSnapshots&&i.add(d)}i.forEach(a=>{DS(e,new zS(a),l.atomValues.has(a)?ve(l.atomValues.get(a)):IS)}),e.replaceState(a=>({...a,stateID:t.getID()}))})}function WS(){const e=wa();return wi(t=>Eh(e.current,t),[e])}var kh={useRecoilSnapshot:jS,gotoSnapshot:Eh,useGotoRecoilSnapshot:WS,useRecoilTransactionObserver:BS,useTransactionObservation_DEPRECATED:FS,useTransactionSubscription_DEPRECATED:_i};const{peekNodeInfo:HS}=hn,{useStoreRef:bS}=jt;function KS(){const e=bS();return({key:t})=>HS(e.current,e.current.getState().currentTree,t)}var GS=KS;const{reactMode:QS}=ko,{RecoilRoot:ZS,useStoreRef:YS}=jt,{useMemo:XS}=me;function qS(){QS().mode==="MUTABLE_SOURCE"&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.");const e=YS().current;return XS(()=>{function t({children:n}){return me.createElement(ZS,{store_INTERNAL:e},n)}return t},[e])}var JS=qS;const{loadableWithValue:e2}=Eo,{initializeNode:t2}=hn,{DEFAULT_VALUE:n2,getNode:r2}=Ye,{copyTreeState:o2,getRecoilValueAsLoadable:l2,invalidateDownstreams:i2,writeLoadableToTreeState:u2}=At;function Xc(e){return r2(e.key).nodeType==="atom"}class s2{constructor(t,n){Z(this,"_store",void 0),Z(this,"_treeState",void 0),Z(this,"_changes",void 0),Z(this,"get",r=>{if(this._changes.has(r.key))return this._changes.get(r.key);if(!Xc(r))throw X("Reading selectors within atomicUpdate is not supported");const o=l2(this._store,r,this._treeState);if(o.state==="hasValue")return o.contents;throw o.state==="hasError"?o.contents:X(`Expected Recoil atom ${r.key} to have a value, but it is in a loading state.`)}),Z(this,"set",(r,o)=>{if(!Xc(r))throw X("Setting selectors within atomicUpdate is not supported");if(typeof o=="function"){const l=this.get(r);this._changes.set(r.key,o(l))}else t2(this._store,r.key,"set"),this._changes.set(r.key,o)}),Z(this,"reset",r=>{this.set(r,n2)}),this._store=t,this._treeState=n,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=o2(this._treeState);for(const[n,r]of this._changes)u2(t,n,e2(r));return i2(this._store,t),t}}function a2(e){return t=>{e.replaceState(n=>{const r=new s2(e,n);return t(r),r.newTreeState_INTERNAL()})}}var c2={atomicUpdater:a2},f2=c2.atomicUpdater,Th=Object.freeze({__proto__:null,atomicUpdater:f2});function d2(e,t){if(!e)throw new Error(t)}var p2=d2,Fr=p2;const{atomicUpdater:h2}=Th,{batchUpdates:v2}=pi,{DEFAULT_VALUE:m2}=Ye,{useStoreRef:y2}=jt,{refreshRecoilValue:g2,setRecoilValue:qc}=At,{cloneSnapshot:S2}=yi,{gotoSnapshot:w2}=kh,{useCallback:_2}=me;class Ch{}const R2=new Ch;function Nh(e,t,n,r){let o=R2,l;if(v2(()=>{const u="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 t!="function")throw X(u);const s=Up({...r??{},set:(d,f)=>qc(e,d,f),reset:d=>qc(e,d,m2),refresh:d=>g2(e,d),gotoSnapshot:d=>w2(e,d),transact_UNSTABLE:d=>h2(e)(d)},{snapshot:()=>{const d=S2(e);return l=d.retain(),d}}),a=t(s);if(typeof a!="function")throw X(u);o=a(...n)}),o instanceof Ch&&Fr(!1),ae(o))o=o.finally(()=>{var u;(u=l)===null||u===void 0||u()});else{var i;(i=l)===null||i===void 0||i()}return o}function E2(e,t){const n=y2();return _2((...r)=>Nh(n.current,e,r),t!=null?[...t,n]:void 0)}var Lh={recoilCallback:Nh,useRecoilCallback:E2};const{useStoreRef:k2}=jt,{refreshRecoilValue:T2}=At,{useCallback:C2}=me;function N2(e){const t=k2();return C2(()=>{const n=t.current;T2(n,e)},[e,t])}var L2=N2;const{atomicUpdater:A2}=Th,{useStoreRef:x2}=jt,{useMemo:M2}=me;function P2(e,t){const n=x2();return M2(()=>(...r)=>{A2(n.current)(l=>{e(l)(...r)})},t!=null?[...t,n]:void 0)}var $2=P2;class I2{constructor(t){Z(this,"value",void 0),this.value=t}}var V2={WrappedValue:I2},z2=V2.WrappedValue,Ah=Object.freeze({__proto__:null,WrappedValue:z2});const{isFastRefreshEnabled:D2}=ko;class Jc extends Error{}class O2{constructor(t){var n,r,o;Z(this,"_name",void 0),Z(this,"_numLeafs",void 0),Z(this,"_root",void 0),Z(this,"_onHit",void 0),Z(this,"_onSet",void 0),Z(this,"_mapNodeValue",void 0),this._name=t==null?void 0:t.name,this._numLeafs=0,this._root=null,this._onHit=(n=t==null?void 0:t.onHit)!==null&&n!==void 0?n:()=>{},this._onSet=(r=t==null?void 0:t.onSet)!==null&&r!==void 0?r:()=>{},this._mapNodeValue=(o=t==null?void 0:t.mapNodeValue)!==null&&o!==void 0?o:l=>l}size(){return this._numLeafs}root(){return this._root}get(t,n){var r;return(r=this.getLeafNode(t,n))===null||r===void 0?void 0:r.value}getLeafNode(t,n){if(this._root==null)return;let r=this._root;for(;r;){if(n==null||n.onNodeVisit(r),r.type==="leaf")return this._onHit(r),r;const o=this._mapNodeValue(t(r.nodeKey));r=r.branches.get(o)}}set(t,n,r){const o=()=>{var l,i,u,s;let a,d;for(const[B,h]of t){var f,m,_;const c=this._root;if((c==null?void 0:c.type)==="leaf")throw this.invalidCacheError();const p=a;if(a=p?p.branches.get(d):c,a=(f=a)!==null&&f!==void 0?f:{type:"branch",nodeKey:B,parent:p,branches:new Map,branchKey:d},a.type!=="branch"||a.nodeKey!==B)throw this.invalidCacheError();p==null||p.branches.set(d,a),r==null||(m=r.onNodeVisit)===null||m===void 0||m.call(r,a),d=this._mapNodeValue(h),this._root=(_=this._root)!==null&&_!==void 0?_:a}const S=a?(l=a)===null||l===void 0?void 0:l.branches.get(d):this._root;if(S!=null&&(S.type!=="leaf"||S.branchKey!==d))throw this.invalidCacheError();const R={type:"leaf",value:n,parent:a,branchKey:d};(i=a)===null||i===void 0||i.branches.set(d,R),this._root=(u=this._root)!==null&&u!==void 0?u:R,this._numLeafs++,this._onSet(R),r==null||(s=r.onNodeVisit)===null||s===void 0||s.call(r,R)};try{o()}catch(l){if(l instanceof Jc)this.clear(),o();else throw l}}delete(t){const n=this.root();if(!n)return!1;if(t===n)return this._root=null,this._numLeafs=0,!0;let r=t.parent,o=t.branchKey;for(;r;){var l;if(r.branches.delete(o),r===n)return r.branches.size===0?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(r.branches.size>0)break;o=(l=r)===null||l===void 0?void 0:l.branchKey,r=r.parent}for(;r!==n;r=r.parent)if(r==null)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const t=D2()?"Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.";throw ia(t+(this._name!=null?` - ${this._name}`:"")),new Jc}}var U2={TreeCache:O2},F2=U2.TreeCache,xh=Object.freeze({__proto__:null,TreeCache:F2});class B2{constructor(t){var n;Z(this,"_maxSize",void 0),Z(this,"_size",void 0),Z(this,"_head",void 0),Z(this,"_tail",void 0),Z(this,"_map",void 0),Z(this,"_keyMapper",void 0),this._maxSize=t.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(n=t.mapKey)!==null&&n!==void 0?n:r=>r}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(t){return this._map.has(this._keyMapper(t))}get(t){const n=this._keyMapper(t),r=this._map.get(n);if(r)return this.set(t,r.value),r.value}set(t,n){const r=this._keyMapper(t);this._map.get(r)&&this.delete(t);const l=this.head(),i={key:t,right:l,left:null,value:n};l?l.left=i:this._tail=i,this._map.set(r,i),this._head=i,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const t=this.tail();t&&this.delete(t.key)}delete(t){const n=this._keyMapper(t);if(!this._size||!this._map.has(n))return;const r=ve(this._map.get(n)),o=r.right,l=r.left;o&&(o.left=r.left),l&&(l.right=r.right),r===this.head()&&(this._head=o),r===this.tail()&&(this._tail=l),this._map.delete(n),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var j2={LRUCache:B2},W2=j2.LRUCache,Mh=Object.freeze({__proto__:null,LRUCache:W2});const{LRUCache:H2}=Mh,{TreeCache:b2}=xh;function K2({name:e,maxSize:t,mapNodeValue:n=r=>r}){const r=new H2({maxSize:t}),o=new b2({name:e,mapNodeValue:n,onHit:l=>{r.set(l,!0)},onSet:l=>{const i=r.tail();r.set(l,!0),i&&o.size()>t&&o.delete(i.key)}});return o}var ef=K2;function yt(e,t,n){if(typeof e=="string"&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if((t==null?void 0:t.allowFunctions)!==!0)throw X("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var r;return(r=JSON.stringify(e))!==null&&r!==void 0?r:""}if(ae(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((o,l)=>yt(o,t,l.toString()))}]`;if(typeof e.toJSON=="function")return yt(e.toJSON(n),t,n);if(e instanceof Map){const o={};for(const[l,i]of e)o[typeof l=="string"?l:yt(l,t)]=i;return yt(o,t,n)}return e instanceof Set?yt(Array.from(e).sort((o,l)=>yt(o,t).localeCompare(yt(l,t))),t,n):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?yt(Array.from(e),t,n):`{${Object.keys(e).filter(o=>e[o]!==void 0).sort().map(o=>`${yt(o,t)}:${yt(e[o],t,o)}`).join(",")}}`}function G2(e,t={allowFunctions:!1}){return yt(e,t)}var Ri=G2;const{TreeCache:Q2}=xh,Yo={equality:"reference",eviction:"keep-all",maxSize:1/0};function Z2({equality:e=Yo.equality,eviction:t=Yo.eviction,maxSize:n=Yo.maxSize}=Yo,r){const o=Y2(e);return X2(t,n,o,r)}function Y2(e){switch(e){case"reference":return t=>t;case"value":return t=>Ri(t)}throw X(`Unrecognized equality policy ${e}`)}function X2(e,t,n,r){switch(e){case"keep-all":return new Q2({name:r,mapNodeValue:n});case"lru":return ef({name:r,maxSize:ve(t),mapNodeValue:n});case"most-recent":return ef({name:r,maxSize:1,mapNodeValue:n})}throw X(`Unrecognized eviction policy ${e}`)}var q2=Z2;function J2(e){return()=>null}var ew={startPerfBlock:J2};const{isLoadable:tw,loadableWithError:Xo,loadableWithPromise:nw,loadableWithValue:lu}=Eo,{WrappedValue:Ph}=Ah,{getNodeLoadable:qo,peekNodeLoadable:rw,setNodeValue:ow}=hn,{saveDepsToStore:lw}=To,{DEFAULT_VALUE:iw,getConfigDeletionHandler:uw,getNode:sw,registerNode:tf}=Ye,{isRecoilValue:aw}=dr,{markRecoilValueModified:nf}=At,{retainedByOptionWithDefault:cw}=Vn,{recoilCallback:fw}=Lh,{startPerfBlock:dw}=ew;class $h{}const $r=new $h,Ir=[],Jo=new Map,pw=(()=>{let e=0;return()=>e++})();function Ih(e){let t=null;const{key:n,get:r,cachePolicy_UNSTABLE:o}=e,l=e.set!=null?e.set:void 0,i=new Set,u=q2(o??{equality:"reference",eviction:"keep-all"},n),s=cw(e.retainedBy_UNSTABLE),a=new Map;let d=0;function f(){return!ie("recoil_memory_managament_2020")||d>0}function m(y){return y.getState().knownSelectors.add(n),d++,()=>{d--}}function _(){return uw(n)!==void 0&&!f()}function S(y,A,x,G,z){Ie(A,G,z),R(y,x)}function R(y,A){$e(y,A)&&oe(y),h(A,!0)}function B(y,A){$e(y,A)&&(ve(U(y)).stateVersions.clear(),h(A,!1))}function h(y,A){const x=Jo.get(y);if(x!=null){for(const G of x)nf(G,ve(t));A&&Jo.delete(y)}}function c(y,A){let x=Jo.get(A);x==null&&Jo.set(A,x=new Set),x.add(y)}function p(y,A,x,G,z,Y){return A.then(J=>{if(!f())throw oe(y),$r;const W=lu(J);return S(y,x,z,W,G),J}).catch(J=>{if(!f())throw oe(y),$r;if(ae(J))return w(y,J,x,G,z,Y);const W=Xo(J);throw S(y,x,z,W,G),J})}function w(y,A,x,G,z,Y){return A.then(J=>{if(!f())throw oe(y),$r;Y.loadingDepKey!=null&&Y.loadingDepPromise===A?x.atomValues.set(Y.loadingDepKey,lu(J)):y.getState().knownSelectors.forEach(le=>{x.atomValues.delete(le)});const W=N(y,x);if(W&&W.state!=="loading"){if(($e(y,z)||U(y)==null)&&R(y,z),W.state==="hasValue")return W.contents;throw W.contents}if(!$e(y,z)){const le=te(y,x);if(le!=null)return le.loadingLoadable.contents}const[de,ke]=L(y,x,z);if(de.state!=="loading"&&S(y,x,z,de,ke),de.state==="hasError")throw de.contents;return de.contents}).catch(J=>{if(J instanceof $h)throw $r;if(!f())throw oe(y),$r;const W=Xo(J);throw S(y,x,z,W,G),J})}function E(y,A,x,G){var z,Y,J,W;if($e(y,G)||A.version===((z=y.getState())===null||z===void 0||(Y=z.currentTree)===null||Y===void 0?void 0:Y.version)||A.version===((J=y.getState())===null||J===void 0||(W=J.nextTree)===null||W===void 0?void 0:W.version)){var de,ke,le;lw(n,x,y,(de=(ke=y.getState())===null||ke===void 0||(le=ke.nextTree)===null||le===void 0?void 0:le.version)!==null&&de!==void 0?de:y.getState().currentTree.version)}for(const ye of x)i.add(ye)}function L(y,A,x){const G=dw(n);let z=!0,Y=!0;const J=()=>{G(),Y=!1};let W,de=!1,ke;const le={loadingDepKey:null,loadingDepPromise:null},ye=new Map;function ht({key:it}){const qe=qo(y,A,it);switch(ye.set(it,qe),z||(E(y,A,new Set(ye.keys()),x),B(y,x)),qe.state){case"hasValue":return qe.contents;case"hasError":throw qe.contents;case"loading":throw le.loadingDepKey=it,le.loadingDepPromise=qe.contents,qe.contents}throw X("Invalid Loadable state")}const mn=it=>(...qe)=>{if(Y)throw X("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return t==null&&Fr(!1),fw(y,it,qe,{node:t})};try{W=r({get:ht,getCallback:mn}),W=aw(W)?ht(W):W,tw(W)&&(W.state==="hasError"&&(de=!0),W=W.contents),ae(W)?W=p(y,W,A,ye,x,le).finally(J):J(),W=W instanceof Ph?W.value:W}catch(it){W=it,ae(W)?W=w(y,W,A,ye,x,le).finally(J):(de=!0,J())}return de?ke=Xo(W):ae(W)?ke=nw(W):ke=lu(W),z=!1,lt(y,x,ye),E(y,A,new Set(ye.keys()),x),[ke,ye]}function N(y,A){let x=A.atomValues.get(n);if(x!=null)return x;const G=new Set;try{x=u.get(Y=>(typeof Y!="string"&&Fr(!1),qo(y,A,Y).contents),{onNodeVisit:Y=>{Y.type==="branch"&&Y.nodeKey!==n&&G.add(Y.nodeKey)}})}catch(Y){throw X(`Problem with cache lookup for selector "${n}": ${Y.message}`)}if(x){var z;A.atomValues.set(n,x),E(y,A,G,(z=U(y))===null||z===void 0?void 0:z.executionID)}return x}function V(y,A){const x=N(y,A);if(x!=null)return oe(y),x;const G=te(y,A);if(G!=null){var z;return((z=G.loadingLoadable)===null||z===void 0?void 0:z.state)==="loading"&&c(y,G.executionID),G.loadingLoadable}const Y=pw(),[J,W]=L(y,A,Y);return J.state==="loading"?(fe(y,Y,J,W,A),c(y,Y)):(oe(y),Ie(A,J,W)),J}function te(y,A){const x=nh([a.has(y)?[ve(a.get(y))]:[],ai(fa(a,([z])=>z!==y),([,z])=>z)]);function G(z){for(const[Y,J]of z)if(!qo(y,A,Y).is(J))return!0;return!1}for(const z of x){if(z.stateVersions.get(A.version)||!G(z.depValuesDiscoveredSoFarDuringAsyncWork))return z.stateVersions.set(A.version,!0),z;z.stateVersions.set(A.version,!1)}}function U(y){return a.get(y)}function fe(y,A,x,G,z){a.set(y,{depValuesDiscoveredSoFarDuringAsyncWork:G,executionID:A,loadingLoadable:x,stateVersions:new Map([[z.version,!0]])})}function lt(y,A,x){if($e(y,A)){const G=U(y);G!=null&&(G.depValuesDiscoveredSoFarDuringAsyncWork=x)}}function oe(y){a.delete(y)}function $e(y,A){var x;return A===((x=U(y))===null||x===void 0?void 0:x.executionID)}function Mt(y){return Array.from(y.entries()).map(([A,x])=>[A,x.contents])}function Ie(y,A,x){y.atomValues.set(n,A);try{u.set(Mt(x),A)}catch(G){throw X(`Problem with setting cache for selector "${n}": ${G.message}`)}}function Xe(y){if(Ir.includes(n)){const A=`Recoil selector has circular dependencies: ${Ir.slice(Ir.indexOf(n)).join(" → ")}`;return Xo(X(A))}Ir.push(n);try{return y()}finally{Ir.pop()}}function $(y,A){const x=A.atomValues.get(n);return x??u.get(G=>{var z;return typeof G!="string"&&Fr(!1),(z=rw(y,A,G))===null||z===void 0?void 0:z.contents})}function H(y,A){return Xe(()=>V(y,A))}function I(y){y.atomValues.delete(n)}function j(y,A){t==null&&Fr(!1);for(const G of i){var x;const z=sw(G);(x=z.clearCache)===null||x===void 0||x.call(z,y,A)}i.clear(),I(A),u.clear(),nf(y,t)}return l!=null?t=tf({key:n,nodeType:"selector",peek:$,get:H,set:(A,x,G)=>{let z=!1;const Y=new Map;function J({key:le}){if(z)throw X("Recoil: Async selector sets are not currently supported.");const ye=qo(A,x,le);if(ye.state==="hasValue")return ye.contents;if(ye.state==="loading"){const ht=`Getting value of asynchronous atom or selector "${le}" in a pending state while setting selector "${n}" is not yet supported.`;throw X(ht)}else throw ye.contents}function W(le,ye){if(z)throw X("Recoil: Async selector sets are not currently supported.");const ht=typeof ye=="function"?ye(J(le)):ye;ow(A,x,le.key,ht).forEach((it,qe)=>Y.set(qe,it))}function de(le){W(le,iw)}const ke=l({set:W,get:J,reset:de},G);if(ke!==void 0)throw ae(ke)?X("Recoil: Async selector sets are not currently supported."):X("Recoil: selector set should be a void function.");return z=!0,Y},init:m,invalidate:I,clearCache:j,shouldDeleteConfigOnRelease:_,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:s}):t=tf({key:n,nodeType:"selector",peek:$,get:H,init:m,invalidate:I,clearCache:j,shouldDeleteConfigOnRelease:_,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:s})}Ih.value=e=>new Ph(e);var vr=Ih;const{isLoadable:hw,loadableWithError:iu,loadableWithPromise:uu,loadableWithValue:On}=Eo,{WrappedValue:Vh}=Ah,{peekNodeInfo:vw}=hn,{DEFAULT_VALUE:Sn,DefaultValue:Kt,getConfigDeletionHandler:zh,registerNode:mw,setConfigDeletionHandler:yw}=Ye,{isRecoilValue:gw}=dr,{getRecoilValueAsLoadable:Sw,markRecoilValueModified:ww,setRecoilValue:rf,setRecoilValueLoadable:_w}=At,{retainedByOptionWithDefault:Rw}=Vn,Vr=e=>e instanceof Vh?e.value:e;function Ew(e){const{key:t,persistence_UNSTABLE:n}=e,r=Rw(e.retainedBy_UNSTABLE);let o=0;function l(c){return uu(c.then(p=>(i=On(p),p)).catch(p=>{throw i=iu(p),p}))}let i=ae(e.default)?l(e.default):hw(e.default)?e.default.state==="loading"?l(e.default.contents):e.default:On(Vr(e.default));i.contents;let u;const s=new Map;function a(c){return c}function d(c,p){const w=p.then(E=>{var L,N;return((N=((L=c.getState().nextTree)!==null&&L!==void 0?L:c.getState().currentTree).atomValues.get(t))===null||N===void 0?void 0:N.contents)===w&&rf(c,h,E),E}).catch(E=>{var L,N;throw((N=((L=c.getState().nextTree)!==null&&L!==void 0?L:c.getState().currentTree).atomValues.get(t))===null||N===void 0?void 0:N.contents)===w&&_w(c,h,iu(E)),E});return w}function f(c,p,w){var E;o++;const L=()=>{var U;o--,(U=s.get(c))===null||U===void 0||U.forEach(fe=>fe()),s.delete(c)};if(c.getState().knownAtoms.add(t),i.state==="loading"){const U=()=>{var fe;((fe=c.getState().nextTree)!==null&&fe!==void 0?fe:c.getState().currentTree).atomValues.has(t)||ww(c,h)};i.contents.finally(U)}const N=(E=e.effects)!==null&&E!==void 0?E:e.effects_UNSTABLE;if(N!=null){let U=function(I){if($e&&I.key===t){const j=oe;return j instanceof Kt?m(c,p):ae(j)?uu(j.then(y=>y instanceof Kt?i.toPromise():y)):On(j)}return Sw(c,I)},fe=function(I){return U(I).toPromise()},lt=function(I){var j;const y=vw(c,(j=c.getState().nextTree)!==null&&j!==void 0?j:c.getState().currentTree,I.key);return $e&&I.key===t&&!(oe instanceof Kt)?{...y,isSet:!0,loadable:U(I)}:y},oe=Sn,$e=!0,Mt=!1,Ie=null;const Xe=I=>j=>{if($e){const y=U(h),A=y.state==="hasValue"?y.contents:Sn;oe=typeof j=="function"?j(A):j,ae(oe)&&(oe=oe.then(x=>(Ie={effect:I,value:x},x)))}else{if(ae(j))throw X("Setting atoms to async values is not implemented.");typeof j!="function"&&(Ie={effect:I,value:Vr(j)}),rf(c,h,typeof j=="function"?y=>{const A=Vr(j(y));return Ie={effect:I,value:A},A}:Vr(j))}},$=I=>()=>Xe(I)(Sn),H=I=>j=>{var y;const{release:A}=c.subscribeToTransactions(x=>{var G;let{currentTree:z,previousTree:Y}=x.getState();Y||(Y=z);const J=(G=z.atomValues.get(t))!==null&&G!==void 0?G:i;if(J.state==="hasValue"){var W,de,ke,le;const ye=J.contents,ht=(W=Y.atomValues.get(t))!==null&&W!==void 0?W:i,mn=ht.state==="hasValue"?ht.contents:Sn;((de=Ie)===null||de===void 0?void 0:de.effect)!==I||((ke=Ie)===null||ke===void 0?void 0:ke.value)!==ye?j(ye,mn,!z.atomValues.has(t)):((le=Ie)===null||le===void 0?void 0:le.effect)===I&&(Ie=null)}},t);s.set(c,[...(y=s.get(c))!==null&&y!==void 0?y:[],A])};for(const I of N)try{const j=I({node:h,storeID:c.storeID,parentStoreID_UNSTABLE:c.parentStoreID,trigger:w,setSelf:Xe(I),resetSelf:$(I),onSet:H(I),getPromise:fe,getLoadable:U,getInfo_UNSTABLE:lt});if(j!=null){var V;s.set(c,[...(V=s.get(c))!==null&&V!==void 0?V:[],j])}}catch(j){oe=j,Mt=!0}if($e=!1,!(oe instanceof Kt)){var te;const I=Mt?iu(oe):ae(oe)?uu(d(c,oe)):On(Vr(oe));I.contents,p.atomValues.set(t,I),(te=c.getState().nextTree)===null||te===void 0||te.atomValues.set(t,I)}}return L}function m(c,p){var w,E;return(w=(E=p.atomValues.get(t))!==null&&E!==void 0?E:u)!==null&&w!==void 0?w:i}function _(c,p){if(p.atomValues.has(t))return ve(p.atomValues.get(t));if(p.nonvalidatedAtoms.has(t)){if(u!=null)return u;if(n==null)return i;const w=p.nonvalidatedAtoms.get(t),E=n.validator(w,Sn);return u=E instanceof Kt?i:On(E),u}else return i}function S(){u=void 0}function R(c,p,w){if(p.atomValues.has(t)){const E=ve(p.atomValues.get(t));if(E.state==="hasValue"&&w===E.contents)return new Map}else if(!p.nonvalidatedAtoms.has(t)&&w instanceof Kt)return new Map;return u=void 0,new Map().set(t,On(w))}function B(){return zh(t)!==void 0&&o<=0}const h=mw({key:t,nodeType:"atom",peek:m,get:_,set:R,init:f,invalidate:S,shouldDeleteConfigOnRelease:B,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:r});return h}function _a(e){const{...t}=e,n="default"in e?e.default:new Promise(()=>{});return gw(n)?kw({...t,default:n}):Ew({...t,default:n})}function kw(e){const t=_a({...e,default:Sn,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:r=>r instanceof Kt?r:ve(e.persistence_UNSTABLE).validator(r,Sn)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=vr({key:`${e.key}__withFallback`,get:({get:r})=>{const o=r(t);return o instanceof Kt?e.default:o},set:({set:r},o)=>r(t,o),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return yw(n.key,zh(e.key)),n}_a.value=e=>new Vh(e);var Dh=_a;class Tw{constructor(t){var n;Z(this,"_map",void 0),Z(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(n=t==null?void 0:t.mapKey)!==null&&n!==void 0?n:r=>r}size(){return this._map.size}has(t){return this._map.has(this._keyMapper(t))}get(t){return this._map.get(this._keyMapper(t))}set(t,n){this._map.set(this._keyMapper(t),n)}delete(t){this._map.delete(this._keyMapper(t))}clear(){this._map.clear()}}var Cw={MapCache:Tw},Nw=Cw.MapCache,Lw=Object.freeze({__proto__:null,MapCache:Nw});const{LRUCache:of}=Mh,{MapCache:Aw}=Lw,el={equality:"reference",eviction:"none",maxSize:1/0};function xw({equality:e=el.equality,eviction:t=el.eviction,maxSize:n=el.maxSize}=el){const r=Mw(e);return Pw(t,n,r)}function Mw(e){switch(e){case"reference":return t=>t;case"value":return t=>Ri(t)}throw X(`Unrecognized equality policy ${e}`)}function Pw(e,t,n){switch(e){case"keep-all":return new Aw({mapKey:n});case"lru":return new of({mapKey:n,maxSize:ve(t)});case"most-recent":return new of({mapKey:n,maxSize:1})}throw X(`Unrecognized eviction policy ${e}`)}var Oh=xw;const{setConfigDeletionHandler:$w}=Ye;function Iw(e){var t,n;const r=Oh({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var l,i;const u=r.get(o);if(u!=null)return u;const{cachePolicyForParams_UNSTABLE:s,...a}=e,d="default"in e?e.default:new Promise(()=>{}),f=Dh({...a,key:`${e.key}__${(l=Ri(o))!==null&&l!==void 0?l:"void"}`,default:typeof d=="function"?d(o):d,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(o):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(o):(i=e.effects)!==null&&i!==void 0?i:e.effects_UNSTABLE});return r.set(o,f),$w(f.key,()=>{r.delete(o)}),f}}var Vw=Iw;const{setConfigDeletionHandler:zw}=Ye;let Dw=0;function Ow(e){var t,n;const r=Oh({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var l;let i;try{i=r.get(o)}catch(m){throw X(`Problem with cache lookup for selector ${e.key}: ${m.message}`)}if(i!=null)return i;const u=`${e.key}__selectorFamily/${(l=Ri(o,{allowFunctions:!0}))!==null&&l!==void 0?l:"void"}/${Dw++}`,s=m=>e.get(o)(m),a=e.cachePolicy_UNSTABLE,d=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE;let f;if(e.set!=null){const m=e.set;f=vr({key:u,get:s,set:(S,R)=>m(o)(S,R),cachePolicy_UNSTABLE:a,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:d})}else f=vr({key:u,get:s,cachePolicy_UNSTABLE:a,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:d});return r.set(o,f),zw(f.key,()=>{r.delete(o)}),f}}var vn=Ow;const Uw=vn({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function Fw(e){return Uw(e)}var Bw=Fw;const jw=vn({key:"__error",get:e=>()=>{throw X(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function Ww(e){return jw(e)}var Hw=Ww;function bw(e){return e}var Kw=bw;const{loadableWithError:Uh,loadableWithPromise:Fh,loadableWithValue:Bh}=Eo;function Ei(e,t){const n=Array(t.length).fill(void 0),r=Array(t.length).fill(void 0);for(const[o,l]of t.entries())try{n[o]=e(l)}catch(i){r[o]=i}return[n,r]}function Gw(e){return e!=null&&!ae(e)}function ki(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function cs(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((n,r,o)=>({...n,[r]:t[o]}),{})}function rr(e,t,n){const r=n.map((o,l)=>o==null?Bh(t[l]):ae(o)?Fh(o):Uh(o));return cs(e,r)}function Qw(e,t){return t.map((n,r)=>n===void 0?e[r]:n)}const Zw=vn({key:"__waitForNone",get:e=>({get:t})=>{const n=ki(e),[r,o]=Ei(t,n);return rr(e,r,o)},dangerouslyAllowMutability:!0}),Yw=vn({key:"__waitForAny",get:e=>({get:t})=>{const n=ki(e),[r,o]=Ei(t,n);return o.some(l=>!ae(l))?rr(e,r,o):new Promise(l=>{for(const[i,u]of o.entries())ae(u)&&u.then(s=>{r[i]=s,o[i]=void 0,l(rr(e,r,o))}).catch(s=>{o[i]=s,l(rr(e,r,o))})})},dangerouslyAllowMutability:!0}),Xw=vn({key:"__waitForAll",get:e=>({get:t})=>{const n=ki(e),[r,o]=Ei(t,n);if(o.every(i=>i==null))return cs(e,r);const l=o.find(Gw);if(l!=null)throw l;return Promise.all(o).then(i=>cs(e,Qw(r,i)))},dangerouslyAllowMutability:!0}),qw=vn({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=ki(e),[r,o]=Ei(t,n);return o.every(l=>!ae(l))?rr(e,r,o):Promise.all(o.map((l,i)=>ae(l)?l.then(u=>{r[i]=u,o[i]=void 0}).catch(u=>{r[i]=void 0,o[i]=u}):null)).then(()=>rr(e,r,o))},dangerouslyAllowMutability:!0}),Jw=vn({key:"__noWait",get:e=>({get:t})=>{try{return vr.value(Bh(t(e)))}catch(n){return vr.value(ae(n)?Fh(n):Uh(n))}},dangerouslyAllowMutability:!0});var e_={waitForNone:Zw,waitForAny:Yw,waitForAll:Xw,waitForAllSettled:qw,noWait:Jw};const{RecoilLoadable:t_}=Eo,{DefaultValue:n_}=Ye,{RecoilRoot:r_,useRecoilStoreID:o_}=jt,{isRecoilValue:l_}=dr,{retentionZone:i_}=fi,{freshSnapshot:u_}=yi,{useRecoilState:s_,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:a_,useRecoilStateLoadable:c_,useRecoilValue:f_,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:d_,useRecoilValueLoadable:p_,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:h_,useResetRecoilState:v_,useSetRecoilState:m_}=CS,{useGotoRecoilSnapshot:y_,useRecoilSnapshot:g_,useRecoilTransactionObserver:S_}=kh,{useRecoilCallback:w_}=Lh,{noWait:__,waitForAll:R_,waitForAllSettled:E_,waitForAny:k_,waitForNone:T_}=e_;var Ao={DefaultValue:n_,isRecoilValue:l_,RecoilLoadable:t_,RecoilEnv:Sr,RecoilRoot:r_,useRecoilStoreID:o_,useRecoilBridgeAcrossReactRoots_UNSTABLE:JS,atom:Dh,selector:vr,atomFamily:Vw,selectorFamily:vn,constSelector:Bw,errorSelector:Hw,readOnlySelector:Kw,noWait:__,waitForNone:T_,waitForAny:k_,waitForAll:R_,waitForAllSettled:E_,useRecoilValue:f_,useRecoilValueLoadable:p_,useRecoilState:s_,useRecoilStateLoadable:c_,useSetRecoilState:m_,useResetRecoilState:v_,useGetRecoilValueInfo_UNSTABLE:GS,useRecoilRefresher_UNSTABLE:L2,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:h_,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:d_,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:a_,useRecoilCallback:w_,useRecoilTransaction_UNSTABLE:$2,useGotoRecoilSnapshot:y_,useRecoilSnapshot:g_,useRecoilTransactionObserver_UNSTABLE:S_,snapshot_UNSTABLE:u_,useRetain:ma,retentionZone:i_},C_=Ao.RecoilRoot,xo=Ao.atom,N_=Ao.selector,L_=Ao.useRecoilValue,Mo=Ao.useRecoilState;function jh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t'),!0):t?e.some(function(n){return t.includes(n)})||e.includes("*"):!0}var z_=function(t,n,r){r===void 0&&(r=!1);var o=n.alt,l=n.meta,i=n.mod,u=n.shift,s=n.ctrl,a=n.keys,d=t.key,f=t.code,m=t.ctrlKey,_=t.metaKey,S=t.shiftKey,R=t.altKey,B=Xt(f),h=d.toLowerCase();if(!(a!=null&&a.includes(B))&&!(a!=null&&a.includes(h))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(B))return!1;if(!r){if(o===!R&&h!=="alt"||u===!S&&h!=="shift")return!1;if(i){if(!_&&!m)return!1}else if(l===!_&&h!=="meta"&&h!=="os"||s===!m&&h!=="ctrl"&&h!=="control")return!1}return a&&a.length===1&&(a.includes(h)||a.includes(B))?!0:a?M_(a):!a},D_=k.createContext(void 0),O_=function(){return k.useContext(D_)};function Gh(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(n,r){return n&&Gh(e[r],t[r])},!0):e===t}var U_=k.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),F_=function(){return k.useContext(U_)};function B_(e){var t=k.useRef(void 0);return Gh(t.current,e)||(t.current=e),t.current}var lf=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},j_=typeof window<"u"?k.useLayoutEffect:k.useEffect;function cn(e,t,n,r){var o=k.useRef(null),l=k.useRef(!1),i=n instanceof Array?r instanceof Array?void 0:r:n,u=Ra(e)?e.join(i==null?void 0:i.splitKey):e,s=n instanceof Array?n:r instanceof Array?r:void 0,a=k.useCallback(t,s??[]),d=k.useRef(a);s?d.current=a:d.current=t;var f=B_(i),m=F_(),_=m.enabledScopes,S=O_();return j_(function(){if(!((f==null?void 0:f.enabled)===!1||!V_(_,f==null?void 0:f.scopes))){var R=function(w,E){var L;if(E===void 0&&(E=!1),!(I_(w)&&!Kh(w,f==null?void 0:f.enableOnFormTags))){if(o.current!==null){var N=o.current.getRootNode();if((N instanceof Document||N instanceof ShadowRoot)&&N.activeElement!==o.current&&!o.current.contains(N.activeElement)){lf(w);return}}(L=w.target)!=null&&L.isContentEditable&&!(f!=null&&f.enableOnContentEditable)||su(u,f==null?void 0:f.splitKey).forEach(function(V){var te,U=au(V,f==null?void 0:f.combinationKey);if(z_(w,U,f==null?void 0:f.ignoreModifiers)||(te=U.keys)!=null&&te.includes("*")){if(f!=null&&f.ignoreEventWhen!=null&&f.ignoreEventWhen(w)||E&&l.current)return;if(P_(w,U,f==null?void 0:f.preventDefault),!$_(w,U,f==null?void 0:f.enabled)){lf(w);return}d.current(w,U),E||(l.current=!0)}})}},B=function(w){w.key!==void 0&&(Hh(Xt(w.code)),((f==null?void 0:f.keydown)===void 0&&(f==null?void 0:f.keyup)!==!0||f!=null&&f.keydown)&&R(w))},h=function(w){w.key!==void 0&&(bh(Xt(w.code)),l.current=!1,f!=null&&f.keyup&&R(w,!0))},c=o.current||(i==null?void 0:i.document)||document;return c.addEventListener("keyup",h),c.addEventListener("keydown",B),S&&su(u,f==null?void 0:f.splitKey).forEach(function(p){return S.addHotkey(au(p,f==null?void 0:f.combinationKey,f==null?void 0:f.description))}),function(){c.removeEventListener("keyup",h),c.removeEventListener("keydown",B),S&&su(u,f==null?void 0:f.splitKey).forEach(function(p){return S.removeHotkey(au(p,f==null?void 0:f.combinationKey,f==null?void 0:f.description))})}}},[u,f,_]),o}const W_=xo({key:"open",default:!1}),H_=()=>Mo(W_),b_=xo({key:"context",default:"ACTIONS"}),Ea=()=>Mo(b_);function K_(e){const t=k.useRef();return k.useEffect(()=>{const n=r=>{t.current&&!t.current.contains(r.target)&&e()};return document.addEventListener("click",n,!0),()=>{document.removeEventListener("click",n,!0)}},[t]),t}const Qh=xo({key:"query",default:""}),Zh=()=>Mo(Qh);function Yh(){let e="/";return window.palette&&window.palette.baseUrl&&(e=`${window.palette.baseUrl}/`,e=e.replace(/\/+$/,"/")),e}const Xh=xo({key:"unfilteredActionsState",default:[]}),G_=N_({key:"actionsState",get:({get:e})=>{const t=e(Qh);return e(Xh).filter(r=>r.name.toLowerCase().includes(t.toLowerCase())||r.subtitle.toLowerCase().includes(t.toLowerCase()))}});function Q_(){const[e,t]=Mo(Xh),n=L_(G_);async function r(){const o=Yh(),i=await(await fetch(`${o}actions/palette/actions`)).json();t(i)}return{getActions:r,actions:n}}const Z_=xo({key:"focus",default:0});function ka(e){const[t,n]=Mo(Z_);k.useEffect(()=>{n(0)},[e]);async function r(o,l){l.length!==0&&(o==="up"&&t===0||o==="down"&&t===l.length-1||(o==="up"&&n(i=>i-1),o==="down"&&n(i=>i+1)))}return{setFocus:n,moveFocus:r,focus:t}}function Y_({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 13.5V3.75m0 9.75a1.5 1.5 0 0 1 0 3m0-3a1.5 1.5 0 0 0 0 3m0 3.75V16.5m12-3V3.75m0 9.75a1.5 1.5 0 0 1 0 3m0-3a1.5 1.5 0 0 0 0 3m0 3.75V16.5m-6-9V3.75m0 3.75a1.5 1.5 0 0 1 0 3m0-3a1.5 1.5 0 0 0 0 3m0 9.75V10.5"}))}const X_=k.forwardRef(Y_),q_=X_;function J_({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15M12 9l-3 3m0 0 3 3m-3-3h12.75"}))}const e5=k.forwardRef(J_),t5=e5;function n5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 15 3 9m0 0 6-6M3 9h12a6 6 0 0 1 0 12h-3"}))}const r5=k.forwardRef(n5),o5=r5;function l5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))}const i5=k.forwardRef(l5),u5=i5;function s5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"}))}const a5=k.forwardRef(s5),c5=a5;function f5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"}))}const d5=k.forwardRef(f5),p5=d5;function h5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 9.75 16.5 12l-2.25 2.25m-4.5 0L7.5 12l2.25-2.25M6 20.25h12A2.25 2.25 0 0 0 20.25 18V6A2.25 2.25 0 0 0 18 3.75H6A2.25 2.25 0 0 0 3.75 6v12A2.25 2.25 0 0 0 6 20.25Z"}))}const v5=k.forwardRef(h5),m5=v5;function y5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.343 3.94c.09-.542.56-.94 1.11-.94h1.093c.55 0 1.02.398 1.11.94l.149.894c.07.424.384.764.78.93.398.164.855.142 1.205-.108l.737-.527a1.125 1.125 0 0 1 1.45.12l.773.774c.39.389.44 1.002.12 1.45l-.527.737c-.25.35-.272.806-.107 1.204.165.397.505.71.93.78l.893.15c.543.09.94.559.94 1.109v1.094c0 .55-.397 1.02-.94 1.11l-.894.149c-.424.07-.764.383-.929.78-.165.398-.143.854.107 1.204l.527.738c.32.447.269 1.06-.12 1.45l-.774.773a1.125 1.125 0 0 1-1.449.12l-.738-.527c-.35-.25-.806-.272-1.203-.107-.398.165-.71.505-.781.929l-.149.894c-.09.542-.56.94-1.11.94h-1.094c-.55 0-1.019-.398-1.11-.94l-.148-.894c-.071-.424-.384-.764-.781-.93-.398-.164-.854-.142-1.204.108l-.738.527c-.447.32-1.06.269-1.45-.12l-.773-.774a1.125 1.125 0 0 1-.12-1.45l.527-.737c.25-.35.272-.806.108-1.204-.165-.397-.506-.71-.93-.78l-.894-.15c-.542-.09-.94-.56-.94-1.109v-1.094c0-.55.398-1.02.94-1.11l.894-.149c.424-.07.765-.383.93-.78.165-.398.143-.854-.108-1.204l-.526-.738a1.125 1.125 0 0 1 .12-1.45l.773-.773a1.125 1.125 0 0 1 1.45-.12l.737.527c.35.25.807.272 1.204.107.397-.165.71-.505.78-.929l.15-.894Z"}),k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const g5=k.forwardRef(y5),S5=g5;function w5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m6.75 7.5 3 2.25-3 2.25m4.5 0h3m-9 8.25h13.5A2.25 2.25 0 0 0 21 18V6a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 6v12a2.25 2.25 0 0 0 2.25 2.25Z"}))}const _5=k.forwardRef(w5),R5=_5;function E5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75"}))}const k5=k.forwardRef(E5),T5=k5;function C5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))}const N5=k.forwardRef(C5),uf=N5;function L5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"}))}const A5=k.forwardRef(L5),x5=A5;function M5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const P5=k.forwardRef(M5),$5=P5;function I5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m18.375 12.739-7.693 7.693a4.5 4.5 0 0 1-6.364-6.364l10.94-10.94A3 3 0 1 1 19.5 7.372L8.552 18.32m.009-.01-.01.01m5.699-9.941-7.81 7.81a1.5 1.5 0 0 0 2.112 2.13"}))}const V5=k.forwardRef(I5),z5=V5;function D5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"}))}const O5=k.forwardRef(D5),U5=O5;function F5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18v-2.25Z"}))}const B5=k.forwardRef(F5),j5=B5;function W5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.375 19.5h17.25m-17.25 0a1.125 1.125 0 0 1-1.125-1.125M3.375 19.5h7.5c.621 0 1.125-.504 1.125-1.125m-9.75 0V5.625m0 12.75v-1.5c0-.621.504-1.125 1.125-1.125m18.375 2.625V5.625m0 12.75c0 .621-.504 1.125-1.125 1.125m1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125m0 3.75h-7.5A1.125 1.125 0 0 1 12 18.375m9.75-12.75c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125m19.5 0v1.5c0 .621-.504 1.125-1.125 1.125M2.25 5.625v1.5c0 .621.504 1.125 1.125 1.125m0 0h17.25m-17.25 0h7.5c.621 0 1.125.504 1.125 1.125M3.375 8.25c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125m17.25-3.75h-7.5c-.621 0-1.125.504-1.125 1.125m8.625-1.125c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125M12 10.875v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 10.875c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125M13.125 12h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125M20.625 12c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5M12 14.625v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 14.625c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125m0 1.5v-1.5m0 0c0-.621.504-1.125 1.125-1.125m0 0h7.5"}))}const H5=k.forwardRef(W5),b5=H5;function K5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const G5=k.forwardRef(K5),Q5=G5;function Z5({name:e,...t}){return e==="document"?F.jsx(uf,{...t}):e==="table"?F.jsx(b5,{...t}):e==="section"?F.jsx(j5,{...t}):e==="code"?F.jsx(m5,{...t}):e==="bolt"?F.jsx(c5,{...t}):e==="settings"?F.jsx(S5,{...t}):e==="search"?F.jsx($5,{...t}):e==="globe"?F.jsx(x5,{...t}):e==="edit"?F.jsx(U5,{...t}):e==="menu"?F.jsx(u5,{...t}):e==="attachment"?F.jsx(z5,{...t}):e==="database"?F.jsx(p5,{...t}):e==="utility"?F.jsx(q_,{...t}):e==="docs"?F.jsx(T5,{...t}):e==="user"?F.jsx(Q5,{...t}):e==="logout"?F.jsx(t5,{...t}):F.jsx(uf,{...t})}function qh({url:e,title:t,subtitle:n,icon:r,type:o,focused:l}){const i=k.useRef(null),[u,s]=Ea(),{focus:a,setFocus:d}=ka();return cn("enter",()=>{l&&(o==="link"?window.location=e:s(e))},{enableOnFormTags:!0}),cn("meta+enter",()=>{l&&(o==="link"?window.open(e,"_blank"):s(e))},{enableOnFormTags:!0}),k.useEffect(()=>{l&&i.current.scrollIntoView({block:"center"})},[a]),F.jsx("a",{className:jl("p-flex p-items-center p-gap-2","p-font-sans p-text-sm p-text-zinc-700 dark:p-text-zinc-300 p-no-underline","p-px-3 p-py-2.5 p-mx-2 p-rounded-lg",l&&"p-bg-zinc-200/75 dark:p-bg-zinc-700/50","hover:p-bg-zinc-200/75 dark:hover:p-bg-zinc-700/50"),onMouseEnter:()=>d(null),href:o==="link"?e:null,onClick:()=>o==="context"?s(e):null,ref:i,children:F.jsx("div",{className:"p-flex p-items-center p-justify-between p-gap-2 p-flex-1",children:F.jsxs("div",{className:"p-flex p-items-center p-gap-3 p-flex-1",children:[F.jsx(Z5,{name:r,className:"p-size-5 p-opacity-75"}),F.jsxs("div",{className:"p-flex-1 p-flex p-flex-col sm:p-flex-row sm:p-justify-between sm:p-items-center p-gap-1",children:[F.jsx("p",{className:"p-flex-1 p-leading-none p-m-0 p-font-sans p-font-medium p-line-clamp-1",children:t}),n&&F.jsx("p",{className:"p-block p-leading-none p-text-xs p-m-0 p-font-sans p-opacity-75",children:n})]})]})})})}function Jh({text:e="No matching results found"}){return F.jsxs("div",{className:"p-flex p-flex-col p-justify-center p-items-center p-py-6 p-text-zinc-400 dark:p-text-zinc-500",children:[F.jsx("div",{children:F.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"p-size-12",children:F.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"})})}),F.jsx("p",{className:"p-text-lg p-mt-1",children:e})]})}function Y5(){const{actions:e,getActions:t}=Q_(),{focus:n,moveFocus:r}=ka(e);return cn("up",()=>r("up",e),{enableOnFormTags:!0,preventDefault:!0}),cn("down",()=>r("down",e),{enableOnFormTags:!0,preventDefault:!0}),k.useEffect(()=>{t()},[]),F.jsxs(F.Fragment,{children:[e.length===0&&F.jsx(Jh,{}),e.map((o,l)=>F.jsx(qh,{url:o.url,title:o.name,subtitle:o.subtitle,icon:o.icon,focused:l===n,type:o.type},o.url))]})}function X5(e,t,n){k.useEffect(()=>{const r=setTimeout(()=>e(),n);return()=>clearTimeout(r)},[...t||[],n])}function q5(){const[e]=Zh(),[t,n]=k.useState([]),{focus:r,moveFocus:o}=ka(t);return X5(()=>{const l=Yh();fetch(`${l}actions/palette/search?query=${e}`).then(i=>i.json()).then(i=>n(i))},[e],200),cn("up",()=>o("up",t),{enableOnFormTags:!0,preventDefault:!0}),cn("down",()=>o("down",t),{enableOnFormTags:!0,preventDefault:!0}),F.jsxs(F.Fragment,{children:[t.length===0&&F.jsx(Jh,{text:"No matching entries found"}),t.map((l,i)=>F.jsx(qh,{url:l.url,title:l.name,subtitle:l.subtitle,icon:l.icon,focused:i===r,type:l.type},l.url))]})}function J5({placeholder:e="Search"}){const[t,n]=Zh(),[r,o]=Ea();return k.useEffect(()=>{n("")},[r]),F.jsxs("div",{className:"p-flex p-px-2 p-items-center p-gap-1 p-border-b p-border-zinc-200 dark:p-border-zinc-700",children:[r!=="ACTIONS"&&F.jsx("div",{children:F.jsx("button",{className:"p-size-8 p-flex p-items-center p-justify-center p-border p-border-zinc-300 dark:p-border-zinc-700 p-rounded-lg dark:p-bg-zinc-900",onClick:()=>o("ACTIONS"),children:F.jsx(o5,{className:"p-size-4 p-text-zinc-500"})})}),F.jsx("input",{type:"text",className:jl(["p-bg-transparent","p-w-full p-px-2 p-py-3","p-outline-none p-ring-0 p-shadow-none p-border-0","p-text-base placeholder:p-text-zinc-400 placeholder:dark:p-text-zinc-500 p-text-zinc-700 dark:p-text-zinc-200"]),placeholder:e,onInput:({target:l})=>n(l.value),value:t,autoFocus:!0,spellCheck:!1})]})}function eR(){const[e,t]=H_(),[n,r]=Ea(),o=K_(()=>t(!1));return cn(["ctrl+k, meta+k"],()=>{t(l=>!l),r("ACTIONS")},{enableOnFormTags:!0,preventDefault:!0}),cn("esc",()=>{n==="ACTIONS"&&t(!1),r("ACTIONS")},{enableOnFormTags:!0}),F.jsxs(F.Fragment,{children:[e&&F.jsx("div",{className:"p-fixed p-inset-0 p-z-[9999] p-size-full p-flex p-justify-center p-antialiased",children:F.jsx("div",{className:"p-w-full p-max-w-2xl",children:F.jsxs("div",{ref:o,className:jl(["p-bg-white/70 dark:p-bg-zinc-950/90","p-outline-zinc-300 dark:p-outline-zinc-900 p-outline p-outline-1","p-border p-border-white dark:p-border-zinc-500","p-rounded-lg p-translate-y-24 p-overflow-hidden p-backdrop-blur-xl p-shadow-2xl"]),children:[F.jsx(J5,{}),F.jsxs("div",{className:"dark:p-bg-zinc-950/10 p-max-h-96 p-overflow-scroll p-py-2",children:[n==="ACTIONS"&&F.jsx(Y5,{}),n==="SEARCH_ENTRIES"&&F.jsx(q5,{})]})]})})}),F.jsx("button",{className:jl(["p-fixed p-bottom-5 p-left-5 p-z-[100]","p-flex p-items-center p-justify-center","p-backdrop-blur-md p-shadow p-rounded-full","p-bg-zinc-50/70 dark:p-bg-neutral-800/90","dark:p-text-neutral-300","p-size-8","p-cursor-pointer","p-border-0","p-transition-transform hover:p-scale-110 active:p-scale-90"]),onClick:()=>t(!0),"aria-label":"Open Palette",children:F.jsx(R5,{className:"p-size-5"})})]})}function tR(){return F.jsx(C_,{children:F.jsx(eR,{})})}const ev=document.createElement("div");ev.setAttribute("data-palette","");document.body.appendChild(ev);document.querySelectorAll("[data-palette]").forEach(e=>Rp.render(F.jsx(tR,{}),e));
})()
\ No newline at end of file
diff --git a/src/assetbundles/resources/palette.css b/src/assetbundles/resources/palette.css
index 28a0b74..7f70bc8 100644
--- a/src/assetbundles/resources/palette.css
+++ b/src/assetbundles/resources/palette.css
@@ -1 +1 @@
-*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.p-fixed{position:fixed!important}.p-inset-0{top:0!important;right:0!important;bottom:0!important;left:0!important}.p-bottom-5{bottom:1.25rem!important}.p-left-5{left:1.25rem!important}.p-z-\[100\]{z-index:100!important}.p-z-\[9999\]{z-index:9999!important}.p-m-0{margin:0!important}.p-mx-2{margin-left:.5rem!important;margin-right:.5rem!important}.p-mt-1{margin-top:.25rem!important}.p-block{display:block!important}.p-flex{display:flex!important}.p-size-12{width:3rem!important;height:3rem!important}.p-size-4{width:1rem!important;height:1rem!important}.p-size-5{width:1.25rem!important;height:1.25rem!important}.p-size-8{width:2rem!important;height:2rem!important}.p-size-full{width:100%!important;height:100%!important}.p-max-h-96{max-height:24rem!important}.p-w-full{width:100%!important}.p-max-w-2xl{max-width:42rem!important}.p-flex-1{flex:1 1 0%!important}.p-translate-y-24{--tw-translate-y: 6rem !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.p-cursor-pointer{cursor:pointer!important}.p-flex-col{flex-direction:column!important}.p-items-center{align-items:center!important}.p-justify-center{justify-content:center!important}.p-justify-between{justify-content:space-between!important}.p-gap-1{gap:.25rem!important}.p-gap-2{gap:.5rem!important}.p-gap-3{gap:.75rem!important}.p-overflow-hidden{overflow:hidden!important}.p-overflow-scroll{overflow:scroll!important}.p-rounded-full{border-radius:9999px!important}.p-rounded-lg{border-radius:.5rem!important}.p-border{border-width:1px!important}.p-border-0{border-width:0px!important}.p-border-b{border-bottom-width:1px!important}.p-border-white{--tw-border-opacity: 1 !important;border-color:rgb(255 255 255 / var(--tw-border-opacity))!important}.p-border-zinc-200{--tw-border-opacity: 1 !important;border-color:rgb(228 228 231 / var(--tw-border-opacity))!important}.p-border-zinc-300{--tw-border-opacity: 1 !important;border-color:rgb(212 212 216 / var(--tw-border-opacity))!important}.p-bg-transparent{background-color:transparent!important}.p-bg-white\/70{background-color:#ffffffb3!important}.p-bg-zinc-200\/75{background-color:#e4e4e7bf!important}.p-bg-zinc-50\/70{background-color:#fafafab3!important}.p-px-2{padding-left:.5rem!important;padding-right:.5rem!important}.p-px-3{padding-left:.75rem!important;padding-right:.75rem!important}.p-py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.p-py-2\.5{padding-top:.625rem!important;padding-bottom:.625rem!important}.p-py-3{padding-top:.75rem!important;padding-bottom:.75rem!important}.p-py-6{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.p-font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"!important}.p-text-base{font-size:1rem!important;line-height:1.5rem!important}.p-text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.p-text-sm{font-size:.875rem!important;line-height:1.25rem!important}.p-text-xs{font-size:.75rem!important;line-height:1rem!important}.p-font-medium{font-weight:500!important}.p-leading-none{line-height:1!important}.p-text-zinc-400{--tw-text-opacity: 1 !important;color:rgb(161 161 170 / var(--tw-text-opacity))!important}.p-text-zinc-500{--tw-text-opacity: 1 !important;color:rgb(113 113 122 / var(--tw-text-opacity))!important}.p-text-zinc-700{--tw-text-opacity: 1 !important;color:rgb(63 63 70 / var(--tw-text-opacity))!important}.p-no-underline{text-decoration-line:none!important}.p-antialiased{-webkit-font-smoothing:antialiased!important;-moz-osx-font-smoothing:grayscale!important}.p-opacity-75{opacity:.75!important}.p-shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.p-shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25) !important;--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.p-shadow-none{--tw-shadow: 0 0 #0000 !important;--tw-shadow-colored: 0 0 #0000 !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.p-outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.p-outline{outline-style:solid!important}.p-outline-1{outline-width:1px!important}.p-outline-zinc-300{outline-color:#d4d4d8!important}.p-ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.p-backdrop-blur-md{--tw-backdrop-blur: blur(12px) !important;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important}.p-backdrop-blur-xl{--tw-backdrop-blur: blur(24px) !important;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important}.p-transition-transform{transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.placeholder\:p-text-zinc-400::-moz-placeholder{--tw-text-opacity: 1 !important;color:rgb(161 161 170 / var(--tw-text-opacity))!important}.placeholder\:p-text-zinc-400::placeholder{--tw-text-opacity: 1 !important;color:rgb(161 161 170 / var(--tw-text-opacity))!important}.hover\:p-scale-110:hover{--tw-scale-x: 1.1 !important;--tw-scale-y: 1.1 !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.hover\:p-bg-zinc-200\/75:hover{background-color:#e4e4e7bf!important}.active\:p-scale-90:active{--tw-scale-x: .9 !important;--tw-scale-y: .9 !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}@media (prefers-color-scheme: dark){.dark\:p-border-zinc-500{--tw-border-opacity: 1 !important;border-color:rgb(113 113 122 / var(--tw-border-opacity))!important}.dark\:p-border-zinc-700{--tw-border-opacity: 1 !important;border-color:rgb(63 63 70 / var(--tw-border-opacity))!important}.dark\:p-bg-neutral-800\/90{background-color:#262626e6!important}.dark\:p-bg-zinc-700\/50{background-color:#3f3f4680!important}.dark\:p-bg-zinc-900{--tw-bg-opacity: 1 !important;background-color:rgb(24 24 27 / var(--tw-bg-opacity))!important}.dark\:p-bg-zinc-950\/10{background-color:#09090b1a!important}.dark\:p-bg-zinc-950\/90{background-color:#09090be6!important}.dark\:p-text-neutral-300{--tw-text-opacity: 1 !important;color:rgb(212 212 212 / var(--tw-text-opacity))!important}.dark\:p-text-zinc-200{--tw-text-opacity: 1 !important;color:rgb(228 228 231 / var(--tw-text-opacity))!important}.dark\:p-text-zinc-300{--tw-text-opacity: 1 !important;color:rgb(212 212 216 / var(--tw-text-opacity))!important}.dark\:p-text-zinc-500{--tw-text-opacity: 1 !important;color:rgb(113 113 122 / var(--tw-text-opacity))!important}.dark\:p-outline-zinc-900{outline-color:#18181b!important}.placeholder\:dark\:p-text-zinc-500::-moz-placeholder{--tw-text-opacity: 1 !important;color:rgb(113 113 122 / var(--tw-text-opacity))!important}.placeholder\:dark\:p-text-zinc-500::placeholder{--tw-text-opacity: 1 !important;color:rgb(113 113 122 / var(--tw-text-opacity))!important}.dark\:hover\:p-bg-zinc-700\/50:hover{background-color:#3f3f4680!important}}
+*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.p-fixed{position:fixed!important}.p-inset-0{top:0!important;right:0!important;bottom:0!important;left:0!important}.p-bottom-5{bottom:1.25rem!important}.p-left-5{left:1.25rem!important}.p-z-\[100\]{z-index:100!important}.p-z-\[9999\]{z-index:9999!important}.p-m-0{margin:0!important}.p-mx-2{margin-left:.5rem!important;margin-right:.5rem!important}.p-mt-1{margin-top:.25rem!important}.p-line-clamp-1{overflow:hidden!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:1!important}.p-block{display:block!important}.p-flex{display:flex!important}.p-size-12{width:3rem!important;height:3rem!important}.p-size-4{width:1rem!important;height:1rem!important}.p-size-5{width:1.25rem!important;height:1.25rem!important}.p-size-8{width:2rem!important;height:2rem!important}.p-size-full{width:100%!important;height:100%!important}.p-max-h-96{max-height:24rem!important}.p-w-full{width:100%!important}.p-max-w-2xl{max-width:42rem!important}.p-flex-1{flex:1 1 0%!important}.p-translate-y-24{--tw-translate-y: 6rem !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.p-cursor-pointer{cursor:pointer!important}.p-flex-col{flex-direction:column!important}.p-items-center{align-items:center!important}.p-justify-center{justify-content:center!important}.p-justify-between{justify-content:space-between!important}.p-gap-1{gap:.25rem!important}.p-gap-2{gap:.5rem!important}.p-gap-3{gap:.75rem!important}.p-overflow-hidden{overflow:hidden!important}.p-overflow-scroll{overflow:scroll!important}.p-rounded-full{border-radius:9999px!important}.p-rounded-lg{border-radius:.5rem!important}.p-border{border-width:1px!important}.p-border-0{border-width:0px!important}.p-border-b{border-bottom-width:1px!important}.p-border-white{--tw-border-opacity: 1 !important;border-color:rgb(255 255 255 / var(--tw-border-opacity))!important}.p-border-zinc-200{--tw-border-opacity: 1 !important;border-color:rgb(228 228 231 / var(--tw-border-opacity))!important}.p-border-zinc-300{--tw-border-opacity: 1 !important;border-color:rgb(212 212 216 / var(--tw-border-opacity))!important}.p-bg-transparent{background-color:transparent!important}.p-bg-white\/70{background-color:#ffffffb3!important}.p-bg-zinc-200\/75{background-color:#e4e4e7bf!important}.p-bg-zinc-50\/70{background-color:#fafafab3!important}.p-px-2{padding-left:.5rem!important;padding-right:.5rem!important}.p-px-3{padding-left:.75rem!important;padding-right:.75rem!important}.p-py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.p-py-2\.5{padding-top:.625rem!important;padding-bottom:.625rem!important}.p-py-3{padding-top:.75rem!important;padding-bottom:.75rem!important}.p-py-6{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.p-font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"!important}.p-text-base{font-size:1rem!important;line-height:1.5rem!important}.p-text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.p-text-sm{font-size:.875rem!important;line-height:1.25rem!important}.p-text-xs{font-size:.75rem!important;line-height:1rem!important}.p-font-medium{font-weight:500!important}.p-leading-none{line-height:1!important}.p-text-zinc-400{--tw-text-opacity: 1 !important;color:rgb(161 161 170 / var(--tw-text-opacity))!important}.p-text-zinc-500{--tw-text-opacity: 1 !important;color:rgb(113 113 122 / var(--tw-text-opacity))!important}.p-text-zinc-700{--tw-text-opacity: 1 !important;color:rgb(63 63 70 / var(--tw-text-opacity))!important}.p-no-underline{text-decoration-line:none!important}.p-antialiased{-webkit-font-smoothing:antialiased!important;-moz-osx-font-smoothing:grayscale!important}.p-opacity-75{opacity:.75!important}.p-shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.p-shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25) !important;--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.p-shadow-none{--tw-shadow: 0 0 #0000 !important;--tw-shadow-colored: 0 0 #0000 !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.p-outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.p-outline{outline-style:solid!important}.p-outline-1{outline-width:1px!important}.p-outline-zinc-300{outline-color:#d4d4d8!important}.p-ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.p-backdrop-blur-md{--tw-backdrop-blur: blur(12px) !important;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important}.p-backdrop-blur-xl{--tw-backdrop-blur: blur(24px) !important;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important}.p-transition-transform{transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.placeholder\:p-text-zinc-400::-moz-placeholder{--tw-text-opacity: 1 !important;color:rgb(161 161 170 / var(--tw-text-opacity))!important}.placeholder\:p-text-zinc-400::placeholder{--tw-text-opacity: 1 !important;color:rgb(161 161 170 / var(--tw-text-opacity))!important}.hover\:p-scale-110:hover{--tw-scale-x: 1.1 !important;--tw-scale-y: 1.1 !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.hover\:p-bg-zinc-200\/75:hover{background-color:#e4e4e7bf!important}.active\:p-scale-90:active{--tw-scale-x: .9 !important;--tw-scale-y: .9 !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}@media (min-width: 640px){.sm\:p-flex-row{flex-direction:row!important}.sm\:p-items-center{align-items:center!important}.sm\:p-justify-between{justify-content:space-between!important}}@media (prefers-color-scheme: dark){.dark\:p-border-zinc-500{--tw-border-opacity: 1 !important;border-color:rgb(113 113 122 / var(--tw-border-opacity))!important}.dark\:p-border-zinc-700{--tw-border-opacity: 1 !important;border-color:rgb(63 63 70 / var(--tw-border-opacity))!important}.dark\:p-bg-neutral-800\/90{background-color:#262626e6!important}.dark\:p-bg-zinc-700\/50{background-color:#3f3f4680!important}.dark\:p-bg-zinc-900{--tw-bg-opacity: 1 !important;background-color:rgb(24 24 27 / var(--tw-bg-opacity))!important}.dark\:p-bg-zinc-950\/10{background-color:#09090b1a!important}.dark\:p-bg-zinc-950\/90{background-color:#09090be6!important}.dark\:p-text-neutral-300{--tw-text-opacity: 1 !important;color:rgb(212 212 212 / var(--tw-text-opacity))!important}.dark\:p-text-zinc-200{--tw-text-opacity: 1 !important;color:rgb(228 228 231 / var(--tw-text-opacity))!important}.dark\:p-text-zinc-300{--tw-text-opacity: 1 !important;color:rgb(212 212 216 / var(--tw-text-opacity))!important}.dark\:p-text-zinc-500{--tw-text-opacity: 1 !important;color:rgb(113 113 122 / var(--tw-text-opacity))!important}.dark\:p-outline-zinc-900{outline-color:#18181b!important}.placeholder\:dark\:p-text-zinc-500::-moz-placeholder{--tw-text-opacity: 1 !important;color:rgb(113 113 122 / var(--tw-text-opacity))!important}.placeholder\:dark\:p-text-zinc-500::placeholder{--tw-text-opacity: 1 !important;color:rgb(113 113 122 / var(--tw-text-opacity))!important}.dark\:hover\:p-bg-zinc-700\/50:hover{background-color:#3f3f4680!important}}
diff --git a/tailwind.config.js b/tailwind.config.js
index 02c2778..31a4fa1 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -6,4 +6,9 @@ module.exports = {
},
prefix: 'p-',
important: true,
+ screens: {
+ xs: '480px',
+ sm: '640px',
+ md: '768px',
+ },
}