(()=>{"use strict";vart={717:(t,e,i)=>{consts=i(112);constn=Symbol("max");constl=Symbol("length");constr=Symbol("lengthCalculator");consth=Symbol("allowStale");consta=Symbol("maxAge");consto=Symbol("dispose");constu=Symbol("noDisposeOnSet");constf=Symbol("lruList");constp=Symbol("cache");constv=Symbol("updateAgeOnGet");constnaiveLength=()=>1;classLRUCache{constructor(t){if(typeoft==="number")t={max:t};if(!t)t={};if(t.max&&(typeoft.max!=="number"||t.max<0))thrownewTypeError("max must be a non-negative number");conste=this[n]=t.max||Infinity;consti=t.length||naiveLength;this[r]=typeofi!=="function"?naiveLength:i;this[h]=t.stale||false;if(t.maxAge&&typeoft.maxAge!=="number")thrownewTypeError("maxAge must be a number");this[a]=t.maxAge||0;this[o]=t.dispose;this[u]=t.noDisposeOnSet||false;this[v]=t.updateAgeOnGet||false;this.reset()}setmax(t){if(typeoft!=="number"||t<0)thrownewTypeError("max must be a non-negative number");this[n]=t||Infinity;trim(this)}getmax(){returnthis[n]}setallowStale(t){this[h]=!!t}getallowStale(){returnthis[h]}setmaxAge(t){if(typeoft!=="number")thrownewTypeError("maxAge must be a non-negative number");this[a]=t;trim(this)}getmaxAge(){returnthis[a]}setlengthCalculator(t){if(typeoft!=="function")t=naiveLength;if(t!==this[r]){this[r]=t;this[l]=0;this[f].forEach((t=>{t.length=this[r](t.value,t.key);this[l]+=t.length}))}trim(this)}getlengthCalculator(){returnthis[r]}getlength(){returnthis[l]}getitemCount(){returnthis[f].length}rforEach(t,e){e=e||this;for(leti=this[f].tail;i!==null;){consts=i.prev;forEachStep(this,t,i,e);i=s}}forEach(t,e){e=e||this;for(leti=this[f].head;i!==null;){consts=i.next;forEachStep(this,t,i,e);i=s}}keys(){returnthis[f].toArray().map((t=>t.key))}values(){returnthis[f].toArray().map((t=>t.value))}reset(){if(this[o]&&this[f]&&this[f].length){this[f].forEach((t=>this[o](t.key,t.value)))}this[p]=newMap;this[f]=news;this[l]=0}dump(){returnthis[f].map((t=>isStale(this,t)?false:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)})).toArray().filter((t=>t))}dumpLru(){returnthis[f]}set(t,e,i){i=i||this[a];if(i&&typeofi!=="number")thrownewTypeError("maxAge must be a number");consts=i?Date.now():0;consth=this[r](e,t);if(this[p].has(t)){if(h>this[n]){del(this,this[p].get(t));returnfalse}constr=this[p].get(t);consta=r.value;if(this[o]){if(!this[u])this[o](t,a.value)}a.now=s;a.maxAge=i;a.value=e;this[l]+=h-a.length;a.length=h;this.get(t);trim(this);returntrue}constv=newEntry(t,e,h,s,i);if(v.length>this[n]){if(this[o])this[o](t,e);returnfalse}this[l]+=v.length;this[f].unshift(v);this[p].set(t,this[f].head);trim(this);returntrue}has(t){if(!this[p].has(t))returnfalse;conste=this[p].get(t).value;return!isStale(this,e)}get(t){returnget(this,t,true)}peek(t){returnget(this,t,false)}pop(){constt=this[f].tail;if(!t)returnnull;del(this,t);returnt.value}del(t){del(this,this[p].get(t))}load(t){this.reset();conste=Date.now();for(leti=t.length-1;i>=0;i--){consts=t[i];constn=s.e||0;if(n===0)this.set(s.k,s.v);else{constt=n-e;if(t>0){this.set(s.k,s.v,t)}}}}prune(){this[p].forEach(((t,e)=>get(this,e,false)))}}constget=(t,e,i)=>{consts=t[p].get(e);if(s){conste=s.value;if(isStale(t,e)){del(t,s);if(!t[h])returnundefined}else{if(i){if(t[v])s.value.now=Date.now();t[f].unshiftNode(s)}}returne.value}};constisStale=(t,e)=>{if(!e||!e.maxAge&&!t[a])returnfalse;consti=Date.now()-e.now;returne.maxAge?i>e.maxAge:t[a]&&i>t[a]};consttrim=t=>{if(t[l]>t[n]){for(lete=t[f].tail;t[l]>t[n]&&e!==null;){consti=e.prev;del(t,e);e=i}}};constdel=(t,e)=>{if(e){consti=e.value;if(t[o])t[o](i.key,i.value);t[l]-=i.length;t[p].delete(i.key);t[f].removeNode(e)}};classEntry{constructor(t,e,i,s,n){this.key=t;this.value=e;this.length=i;this.now=s;this.maxAge=n||0}}constforEachStep=(t,e,i,s)=>{letn=i.value;if(isStale(t,n)){del(t,i);if(!t[h])n=undefined}if(n)e.call(s,n.value,n.key,t)};t.exports=LRUCache},598:t=>{t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(lett=this.head;t;t=t.next){yieldt.value}}}},112:(t,e,i)=>{t.exports=Yallist;Yallist.Node