@byloth/core 2.0.0-rc.8 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.js +3372 -609
- package/dist/core.js.map +1 -1
- package/dist/core.umd.cjs +2 -2
- package/dist/core.umd.cjs.map +1 -1
- package/package.json +13 -10
- package/src/core/types.ts +41 -0
- package/src/helpers.ts +11 -2
- package/src/index.ts +12 -9
- package/src/models/aggregators/aggregated-async-iterator.ts +765 -21
- package/src/models/aggregators/aggregated-iterator.ts +698 -22
- package/src/models/aggregators/reduced-iterator.ts +699 -10
- package/src/models/aggregators/types.ts +153 -10
- package/src/models/callbacks/callable-object.ts +42 -6
- package/src/models/callbacks/index.ts +2 -2
- package/src/models/callbacks/publisher.ts +140 -5
- package/src/models/callbacks/switchable-callback.ts +143 -5
- package/src/models/callbacks/types.ts +16 -0
- package/src/models/exceptions/core.ts +112 -3
- package/src/models/exceptions/index.ts +340 -13
- package/src/models/index.ts +4 -8
- package/src/models/iterators/smart-async-iterator.ts +687 -22
- package/src/models/iterators/smart-iterator.ts +631 -21
- package/src/models/iterators/types.ts +268 -9
- package/src/models/json/json-storage.ts +388 -110
- package/src/models/json/types.ts +10 -1
- package/src/models/promises/deferred-promise.ts +75 -5
- package/src/models/promises/index.ts +1 -3
- package/src/models/promises/smart-promise.ts +232 -4
- package/src/models/promises/timed-promise.ts +38 -1
- package/src/models/promises/types.ts +84 -2
- package/src/models/timers/clock.ts +91 -19
- package/src/models/timers/countdown.ts +152 -22
- package/src/models/timers/game-loop.ts +243 -0
- package/src/models/timers/index.ts +2 -1
- package/src/models/types.ts +6 -5
- package/src/utils/async.ts +43 -0
- package/src/utils/curve.ts +75 -0
- package/src/utils/date.ts +204 -10
- package/src/utils/dom.ts +16 -2
- package/src/utils/index.ts +3 -2
- package/src/utils/iterator.ts +200 -17
- package/src/utils/math.ts +55 -3
- package/src/utils/random.ts +109 -2
- package/src/utils/string.ts +11 -0
- package/src/models/game-loop.ts +0 -83
- package/src/models/promises/long-running-task.ts +0 -294
- package/src/models/promises/thenable.ts +0 -97
package/dist/core.umd.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(a,h){typeof exports=="object"&&typeof module<"u"?h(exports):typeof define=="function"&&define.amd?define(["exports"],h):(a=typeof globalThis<"u"?globalThis:a||self,h(a.Core={}))})(this,function(a){"use strict";var Tt=Object.defineProperty;var Mt=(a,h,x)=>h in a?Tt(a,h,{enumerable:!0,configurable:!0,writable:!0,value:x}):a[h]=x;var l=(a,h,x)=>Mt(a,typeof h!="symbol"?h+"":h,x);var G,K,H,V,Q,X,Z,W,U,ee,te,ne,ie,se,re,oe,ae,le,ue,ce,he,fe,de,me,we,ye,_e,pe,be,ge,xe,ve,ke,Se,Ee,Te,Me,Re,Fe,Pe,Ce,Ie,je,Ae,Ne,Oe,qe,$e,De,ze,Be,Je,Le,Ye,Ge,Ke,He;const h=typeof window<"u"&&typeof window.document<"u",x=typeof process<"u"&&!!((G=process.versions)!=null&&G.node),Qe=typeof self=="object"&&((K=self.constructor)==null?void 0:K.name)==="DedicatedWorkerGlobalScope";class f extends(V=Error,H=Symbol.toStringTag,V){constructor(e,n,i="Exception"){super(e);l(this,H,"Exception");this.cause=n,this.name=i,n&&(n instanceof Error?this.stack+=`
|
|
2
2
|
|
|
3
3
|
Caused by ${n.stack}`:this.stack+=`
|
|
4
4
|
|
|
5
|
-
Caused by ${n}`)}static FromUnknown(e){if(e instanceof m)return e;if(e instanceof Error){const n=new m(e.message);return n.stack=e.stack,n.name=e.name,n}return new m(`${e}`)}}class S extends(X=m,Q=Symbol.toStringTag,X){constructor(e,n,i="FatalErrorException"){e===void 0&&(e="The program has encountered an unrecoverable error and cannot continue as expected. Please, try again later. If the problem persists, contact the support team.");super(e,n,i);a(this,Q,"FatalErrorException")}}class z extends(U=S,Z=Symbol.toStringTag,U){constructor(e,n,i="NotImplementedException"){e===void 0&&(e="This feature is not implemented yet. Please, try again later.");super(e,n,i);a(this,Z,"NotImplementedException")}}class C extends(te=m,ee=Symbol.toStringTag,te){constructor(e,n,i="FileException"){super(e,n,i);a(this,ee,"FileException")}}class Ke extends(ie=C,ne=Symbol.toStringTag,ie){constructor(e,n,i="FileExistsException"){super(e,n,i);a(this,ne,"FileExistsException")}}class He extends(se=C,re=Symbol.toStringTag,se){constructor(e,n,i="FileNotFoundException"){super(e,n,i);a(this,re,"FileNotFoundException")}}class T extends(ae=m,oe=Symbol.toStringTag,ae){constructor(e,n,i="KeyException"){super(e,n,i);a(this,oe,"KeyException")}}class Qe extends(ue=m,le=Symbol.toStringTag,ue){constructor(e,n,i="NetworkException"){super(e,n,i);a(this,le,"NetworkException")}}class Xe extends(he=m,ce=Symbol.toStringTag,he){constructor(e,n,i="PermissionException"){super(e,n,i);a(this,ce,"PermissionException")}}class V extends(de=m,fe=Symbol.toStringTag,de){constructor(e,n,i="ReferenceException"){super(e,n,i);a(this,fe,"ReferenceException")}}class w extends(_e=m,me=Symbol.toStringTag,_e){constructor(e,n,i="RuntimeException"){super(e,n,i);a(this,me,"RuntimeException")}}class Ze extends(ye=w,we=Symbol.toStringTag,ye){constructor(e,n,i="EnvironmentException"){super(e,n,i);a(this,we,"EnvironmentException")}}class W extends(ge=m,pe=Symbol.toStringTag,ge){constructor(e,n,i="TimeoutException"){super(e,n,i);a(this,pe,"TimeoutException")}}class Ue extends(ve=m,be=Symbol.toStringTag,ve){constructor(e,n,i="TypeException"){super(e,n,i);a(this,be,"TypeException")}}class p extends(ke=m,xe=Symbol.toStringTag,ke){constructor(e,n,i="ValueException"){super(e,n,i);a(this,xe,"ValueException")}}class D extends(Te=p,Se=Symbol.toStringTag,Te){constructor(e,n,i="RangeException"){super(e,n,i);a(this,Se,"RangeException")}}class c{constructor(t){a(this,"_iterator");a(this,"return");a(this,"throw");a(this,Ee,"SmartIterator");t instanceof Function?this._iterator=t():Symbol.iterator in t?this._iterator=t[Symbol.iterator]():this._iterator=t,this._iterator.return&&(this.return=e=>this._iterator.return(e)),this._iterator.throw&&(this.throw=e=>this._iterator.throw(e))}every(t){let e=0;for(;;){const n=this._iterator.next();if(n.done)return!0;if(!t(n.value,e))return!1;e+=1}}some(t){let e=0;for(;;){const n=this._iterator.next();if(n.done)return!1;if(t(n.value,e))return!0;e+=1}}filter(t){const e=this._iterator;return new c(function*(){let n=0;for(;;){const i=e.next();if(i.done)return i.value;t(i.value,n)&&(yield i.value),n+=1}})}map(t){const e=this._iterator;return new c(function*(){let n=0;for(;;){const i=e.next();if(i.done)return i.value;yield t(i.value,n),n+=1}})}reduce(t,e){let n=0,i=e;if(i===void 0){const r=this._iterator.next();if(r.done)throw new p("Cannot reduce an empty iterator without an initial value.");i=r.value,n+=1}for(;;){const r=this._iterator.next();if(r.done)return i;i=t(i,r.value,n),n+=1}}flatMap(t){const e=this._iterator;return new c(function*(){let n=0;for(;;){const i=e.next();if(i.done)return i.value;const r=t(i.value,n);for(const s of r)yield s;n+=1}})}drop(t){const e=this._iterator;return new c(function*(){let n=0;for(;n<t;){if(e.next().done)return;n+=1}for(;;){const i=e.next();if(i.done)return i.value;yield i.value}})}take(t){const e=this._iterator;return new c(function*(){let n=0;for(;n<t;){const i=e.next();if(i.done)return i.value;yield i.value,n+=1}})}find(t){let e=0;for(;;){const n=this._iterator.next();if(n.done)return;if(t(n.value,e))return n.value;e+=1}}enumerate(){return this.map((t,e)=>[e,t])}unique(){const t=this._iterator;return new c(function*(){const e=new Set;for(;;){const n=t.next();if(n.done)return n.value;e.has(n.value)||(e.add(n.value),yield n.value)}})}count(){let t=0;for(;;){if(this._iterator.next().done)return t;t+=1}}forEach(t){let e=0;for(;;){const n=this._iterator.next();if(n.done)return;t(n.value,e),e+=1}}next(...t){return this._iterator.next(...t)}groupBy(t){return new E(this.map((e,n)=>[t(e,n),e]))}toArray(){return Array.from(this)}[(Ee=Symbol.toStringTag,Symbol.iterator)](){return this}}Me=Symbol.toStringTag;const x=class x{constructor(t){a(this,"_elements");a(this,Me,"ReducedIterator");this._elements=new c(t)}every(t){for(const[e,[n,i]]of this._elements.enumerate())if(!t(n,i,e))return!1;return!0}some(t){for(const[e,[n,i]]of this._elements.enumerate())if(t(n,i,e))return!0;return!1}filter(t){const e=this._elements.enumerate();return new x(function*(){for(const[n,[i,r]]of e)t(i,r,n)&&(yield[i,r])})}map(t){const e=this._elements.enumerate();return new x(function*(){for(const[n,[i,r]]of e)yield[i,t(i,r,n)]})}reduce(t,e){let n=0,i=e;if(i===void 0){const r=this._elements.next();if(r.done)throw new p("Cannot reduce an empty iterator without an initial value.");i=r.value[1],n+=1}for(const[r,s]of this._elements)i=t(r,i,s,n),n+=1;return i}flatMap(t){const e=this._elements.enumerate();return new E(function*(){for(const[n,[i,r]]of e)for(const s of t(i,r,n))yield[i,s]})}drop(t){const e=this._elements.enumerate();return new x(function*(){for(const[n,[i,r]]of e)n>=t&&(yield[i,r])})}take(t){const e=this._elements.enumerate();return new x(function*(){for(const[n,[i,r]]of e){if(n>=t)break;yield[i,r]}})}enumerate(){return this.map((t,e,n)=>[n,e])}unique(){const t=this._elements;return new x(function*(){const e=new Set;for(const[n,i]of t)e.has(i)||(e.add(i),yield[n,i])})}count(){let t=0;for(const e of this._elements)t+=1;return t}forEach(t){for(const[e,[n,i]]of this._elements.enumerate())t(n,i,e)}keys(){const t=this._elements;return new c(function*(){for(const[e]of t)yield e})}items(){return this._elements}values(){const t=this._elements;return new c(function*(){for(const[e,n]of t)yield n})}toArray(){return Array.from(this.values())}toMap(){return new Map(this.items())}toObject(){return Object.fromEntries(this.items())}};let _=x;Fe=Symbol.toStringTag;const b=class b{constructor(t){a(this,"_elements");a(this,Fe,"AggregatedAsyncIterator");this._elements=new y(t)}async every(t){const e=new Map;for await(const[n,i]of this._elements){const[r,s]=e.get(n)??[0,!0];s&&e.set(n,[r+1,await t(n,i,r)])}return new _(function*(){for(const[n,[i,r]]of e)yield[n,r]})}async some(t){const e=new Map;for await(const[n,i]of this._elements){const[r,s]=e.get(n)??[0,!1];s||e.set(n,[r+1,await t(n,i,r)])}return new _(function*(){for(const[n,[i,r]]of e)yield[n,r]})}filter(t){const e=this._elements;return new b(async function*(){const n=new Map;for await(const[i,r]of e){const s=n.get(i)??0;await t(i,r,s)&&(yield[i,r]),n.set(i,s+1)}})}map(t){const e=this._elements;return new b(async function*(){const n=new Map;for await(const[i,r]of e){const s=n.get(i)??0;yield[i,await t(i,r,s)],n.set(i,s+1)}})}async reduce(t,e){const n=new Map;for await(const[i,r]of this._elements){let s,u;if(n.has(i))[s,u]=n.get(i);else if(e!==void 0)s=0,u=await e(i);else{n.set(i,[0,r]);continue}n.set(i,[s+1,await t(i,u,r,s)])}return new _(function*(){for(const[i,[r,s]]of n)yield[i,s]})}flatMap(t){const e=this._elements;return new b(async function*(){const n=new Map;for await(const[i,r]of e){const s=n.get(i)??0,u=await t(i,r,s);for await(const h of u)yield[i,h];n.set(i,s+1)}})}drop(t){const e=this._elements;return new b(async function*(){const n=new Map;for await(const[i,r]of e){const s=n.get(i)??0;if(s<t){n.set(i,s+1);continue}yield[i,r]}})}take(t){const e=this._elements;return new b(async function*(){const n=new Map;for await(const[i,r]of e){const s=n.get(i)??0;s>=t||(yield[i,r],n.set(i,s+1))}})}async find(t){const e=new Map;for await(const[n,i]of this._elements){let[r,s]=e.get(n)??[0,void 0];s===void 0&&(await t(n,i,r)&&(s=i),e.set(n,[r+1,s]))}return new _(function*(){for(const[n,[i,r]]of e)yield[n,r]})}unique(){const t=this._elements;return new b(async function*(){const e=new Map;for await(const[n,i]of t){const r=e.get(n)??new Set;r.has(i)||(r.add(i),e.set(n,r),yield[n,i])}})}async count(){const t=new Map;for await(const[e]of this._elements){const n=t.get(e)??0;t.set(e,n+1)}return new _(function*(){for(const[e,n]of t)yield[e,n]})}async forEach(t){const e=new Map;for await(const[n,i]of this._elements){const r=e.get(n)??0;t(n,i,r),e.set(n,r+1)}}keys(){const t=this._elements;return new y(async function*(){const e=new Set;for await(const[n]of t)e.has(n)||(e.add(n),yield n)})}items(){return this._elements}values(){const t=this._elements;return new y(async function*(){for await(const[e,n]of t)yield n})}async toArray(){const t=await this.toMap();return Array.from(t.values())}async toMap(){const t=new Map;for await(const[e,n]of this._elements){const i=t.get(e)??[];i.push(n),t.set(e,i)}return t}async toObject(){const t={};for await(const[e,n]of this._elements){const i=t[e]??[];i.push(n),t[e]=i}return t}};let R=b;class y{constructor(t){a(this,"_iterator");a(this,"return");a(this,"throw");a(this,Re,"SmartAsyncIterator");if(t instanceof Function){const e=t();Symbol.asyncIterator in e?this._iterator=e:this._iterator=async function*(){let n=[];for(;;){const i=e.next(...n);if(i.done)return i.value;n=[yield i.value]}}()}else if(Symbol.asyncIterator in t)this._iterator=t[Symbol.asyncIterator]();else if(Symbol.iterator in t){const e=t[Symbol.iterator]();this._iterator=async function*(){for(;;){const n=e.next();if(n.done)return n.value;yield n.value}}()}else this._iterator=async function*(){let e=[];for(;;){const n=await t.next(...e);if(n.done)return n.value;e=[yield n.value]}}();this._iterator.return&&(this.return=e=>this._iterator.return(e)),this._iterator.throw&&(this.throw=e=>this._iterator.throw(e))}async every(t){let e=0;for(;;){const n=await this._iterator.next();if(n.done)return!0;if(!await t(n.value,e))return!1;e+=1}}async some(t){let e=0;for(;;){const n=await this._iterator.next();if(n.done)return!1;if(await t(n.value,e))return!0;e+=1}}filter(t){const e=this._iterator;return new y(async function*(){let n=0;for(;;){const i=await e.next();if(i.done)return i.value;await t(i.value,n)&&(yield i.value),n+=1}})}map(t){const e=this._iterator;return new y(async function*(){let n=0;for(;;){const i=await e.next();if(i.done)return i.value;yield await t(i.value,n),n+=1}})}async reduce(t,e){let n=0,i=e;if(i===void 0){const r=await this._iterator.next();if(r.done)throw new p("Cannot reduce an empty iterator without an initial value.");i=r.value,n+=1}for(;;){const r=await this._iterator.next();if(r.done)return i;i=await t(i,r.value,n),n+=1}}flatMap(t){const e=this._iterator;return new y(async function*(){let n=0;for(;;){const i=await e.next();if(i.done)return i.value;const r=await t(i.value,n);for await(const s of r)yield s;n+=1}})}drop(t){const e=this._iterator;return new y(async function*(){let n=0;for(;n<t;){if((await e.next()).done)return;n+=1}for(;;){const i=await e.next();if(i.done)return i.value;yield i.value}})}take(t){const e=this._iterator;return new y(async function*(){let n=0;for(;n<t;){const i=await e.next();if(i.done)return i.value;yield i.value,n+=1}})}async find(t){let e=0;for(;;){const n=await this._iterator.next();if(n.done)return;if(await t(n.value,e))return n.value;e+=1}}enumerate(){return this.map((t,e)=>[e,t])}unique(){const t=this._iterator;return new y(async function*(){const e=new Set;for(;;){const n=await t.next();if(n.done)return n.value;e.has(n.value)||(e.add(n.value),yield n.value)}})}async count(){let t=0;for(;;){if((await this._iterator.next()).done)return t;t+=1}}async forEach(t){let e=0;for(;;){const n=await this._iterator.next();if(n.done)return;await t(n.value,e),e+=1}}next(...t){return this._iterator.next(...t)}groupBy(t){return new R(this.map(async(e,n)=>[await t(e,n),e]))}toArray(){return Array.fromAsync(this)}[(Re=Symbol.toStringTag,Symbol.asyncIterator)](){return this}}Pe=Symbol.toStringTag;const v=class v{constructor(t){a(this,"_elements");a(this,Pe,"AggregatedIterator");this._elements=new c(t)}every(t){const e=new Map;for(const[n,i]of this._elements){const[r,s]=e.get(n)??[0,!0];s&&e.set(n,[r+1,t(n,i,r)])}return new _(function*(){for(const[n,[i,r]]of e)yield[n,r]})}some(t){const e=new Map;for(const[n,i]of this._elements){const[r,s]=e.get(n)??[0,!1];s||e.set(n,[r+1,t(n,i,r)])}return new _(function*(){for(const[n,[i,r]]of e)yield[n,r]})}filter(t){const e=this._elements;return new v(function*(){const n=new Map;for(const[i,r]of e){const s=n.get(i)??0;t(i,r,s)&&(yield[i,r]),n.set(i,s+1)}})}map(t){const e=this._elements;return new v(function*(){const n=new Map;for(const[i,r]of e){const s=n.get(i)??0;yield[i,t(i,r,s)],n.set(i,s+1)}})}reduce(t,e){const n=new Map;for(const[i,r]of this._elements){let s,u;if(n.has(i))[s,u]=n.get(i);else if(e!==void 0)s=0,u=e(i);else{n.set(i,[0,r]);continue}n.set(i,[s+1,t(i,u,r,s)])}return new _(function*(){for(const[i,[r,s]]of n)yield[i,s]})}flatMap(t){const e=this._elements;return new v(function*(){const n=new Map;for(const[i,r]of e){const s=n.get(i)??0,u=t(i,r,s);for(const h of u)yield[i,h];n.set(i,s+1)}})}drop(t){const e=this._elements;return new v(function*(){const n=new Map;for(const[i,r]of e){const s=n.get(i)??0;if(s<t){n.set(i,s+1);continue}yield[i,r]}})}take(t){const e=this._elements;return new v(function*(){const n=new Map;for(const[i,r]of e){const s=n.get(i)??0;s>=t||(yield[i,r],n.set(i,s+1))}})}find(t){const e=new Map;for(const[n,i]of this._elements){let[r,s]=e.get(n)??[0,void 0];s===void 0&&(t(n,i,r)&&(s=i),e.set(n,[r+1,s]))}return new _(function*(){for(const[n,[i,r]]of e)yield[n,r]})}enumerate(){return this.map((t,e,n)=>[n,e])}unique(){const t=this._elements;return new v(function*(){const e=new Map;for(const[n,i]of t){const r=e.get(n)??new Set;r.has(i)||(r.add(i),e.set(n,r),yield[n,i])}})}count(){const t=new Map;for(const[e]of this._elements){const n=t.get(e)??0;t.set(e,n+1)}return new _(function*(){for(const[e,n]of t)yield[e,n]})}forEach(t){const e=new Map;for(const[n,i]of this._elements){const r=e.get(n)??0;t(n,i,r),e.set(n,r+1)}}keys(){const t=this._elements;return new c(function*(){const e=new Set;for(const[n]of t)e.has(n)||(e.add(n),yield n)})}items(){return this._elements}values(){const t=this._elements;return new c(function*(){for(const[e,n]of t)yield n})}toArray(){const t=this.toMap();return Array.from(t.values())}toMap(){const t=new Map;for(const[e,n]of this._elements){const i=t.get(e)??[];i.push(n),t.set(e,i)}return t}toObject(){const t={};for(const[e,n]of this._elements){const i=t[e]??[];i.push(n),t[e]=i}return t}};let E=v;const et=Function;class J extends et{constructor(){super("return this.invoke(...arguments);");const t=this.bind(this);return Object.setPrototypeOf(this,t),t}}Ie=Symbol.toStringTag;class P{constructor(){a(this,"_subscribers");a(this,Ie,"Publisher");this._subscribers=new Map}subscribe(t,e){this._subscribers.has(t)||this._subscribers.set(t,[]);const n=this._subscribers.get(t);return n.push(e),()=>{const i=n.indexOf(e);if(i<0)throw new V("Unable to unsubscribe the required subscriber. The subscription was already unsubscribed.");n.splice(i,1)}}publish(t,...e){const n=this._subscribers.get(t);return n?n.slice().map(i=>i(...e)):[]}}class tt extends J{constructor(){const e=()=>{throw new z("The `SwitchableCallback` has no callback defined yet. Did you forget to call the `register` method?")};super();a(this,"_callback");a(this,"_callbacks");a(this,"_isEnabled");a(this,"_key");a(this,"invoke");this._callback=e,this._callbacks=new Map,this._isEnabled=!1,this._key="",this.invoke=(...n)=>this._callback(...n)}get isEnabled(){return this._isEnabled}get key(){return this._key}enable(){if(!this._key)throw new T("The `SwitchableCallback` has no callback defined yet. Did you forget to call the `register` method?");if(this._isEnabled)throw new w("The `SwitchableCallback` is already enabled.");this._callback=this._callbacks.get(this._key),this._isEnabled=!0}disable(){if(!this._isEnabled)throw new w("The `SwitchableCallback` is already disabled.");this._callback=()=>{},this._isEnabled=!1}register(e,n){if(this._callbacks.size===0)this._key=e,this._callback=n;else if(this._callbacks.has(e))throw new T(`The key '${e}' has already been used for another callback.`);this._callbacks.set(e,n)}unregister(e){if(!this._callbacks.has(e))throw new T(`The key '${e}' doesn't yet have any associated callback.`);this._callbacks.delete(e)}switch(e){if(!this._callbacks.has(e))throw new T(`The key '${e}' doesn't yet have any associated callback.`);this._key=e,this._callback=this._callbacks.get(e)}}Ce=Symbol.toStringTag;class j{constructor(t,e=40){a(this,"_handle");a(this,"_startTime");a(this,"_isRunning");a(this,"_start");a(this,"_stop");a(this,Ce,"GameLoop");this._startTime=0,this._isRunning=!1,d?(this._start=()=>{t(this.elapsedTime),this._handle=window.requestAnimationFrame(this._start)},this._stop=()=>window.cancelAnimationFrame(this._handle)):(console.warn(`Not a browser environment detected. Using setInterval@${e}ms instead of requestAnimationFrame...`),this._start=()=>{this._handle=setInterval(()=>t(this.elapsedTime),e)},this._stop=()=>clearInterval(this._handle))}get startTime(){return this._startTime}get isRunning(){return this._isRunning}get elapsedTime(){return performance.now()-this._startTime}start(t=0){if(this._isRunning)throw new w("The game loop has already been started.");this._startTime=performance.now()-t,this._start(),this._isRunning=!0}stop(){if(!this._isRunning)throw new w("The game loop hadn't yet started.");if(!this._handle)throw new S;this._stop(),this._handle=void 0,this._isRunning=!1}}De=Symbol.toStringTag;class nt{constructor(t=!0){a(this,"_preferPersistence");a(this,"_volatile");a(this,"_persistent");a(this,De,"JSONStorage");if(this._preferPersistence=t,!d)throw new Ze("The `JSONStorage` class can only be instantiated within a browser environment.");this._volatile=window.sessionStorage,this._persistent=window.localStorage}_get(t,e,n){const i=t.getItem(e);if(i)try{return JSON.parse(i)}catch{console.warn(`The "${i}" value for "${e}" property cannot be parsed. Clearing the storage...`),t.removeItem(e)}return n}_set(t,e,n){const i=JSON.stringify(n);i?t.setItem(e,i):t.removeItem(e)}get(t,e,n=this._preferPersistence){const i=n?this._persistent:this._volatile;return this._get(i,t,e)}recall(t,e){return this._get(this._volatile,t,e)}retrieve(t,e){return this.recall(t)??this.read(t,e)}read(t,e){return this._get(this._persistent,t,e)}has(t,e){return(e?this._persistent:this._volatile).getItem(t)!==null}knows(t){return this._volatile.getItem(t)!==null}find(t){return this.knows(t)??this.exists(t)}exists(t){return this._persistent.getItem(t)!==null}set(t,e,n=this._preferPersistence){const i=n?this._persistent:this._volatile;this._set(i,t,e)}remember(t,e){this._set(this._volatile,t,e)}write(t,e){this._set(this._persistent,t,e)}forget(t){this._volatile.removeItem(t)}erase(t){this._persistent.removeItem(t)}clear(t){this._volatile.removeItem(t),this._persistent.removeItem(t)}}je=Symbol.toStringTag;const N=class N{constructor(t){a(this,"_isPending");a(this,"_isFulfilled");a(this,"_isRejected");a(this,"_promise");a(this,je,"SmartPromise");this._isPending=!0,this._isFulfilled=!1,this._isRejected=!1;const e=i=>(this._isPending=!1,this._isFulfilled=!0,i),n=i=>{throw this._isPending=!1,this._isRejected=!0,i};this._promise=new Promise(t).then(e,n)}static FromPromise(t){return new N((e,n)=>t.then(e,n))}get isPending(){return this._isPending}get isFulfilled(){return this._isFulfilled}get isRejected(){return this._isRejected}then(t,e){return this._promise.then(t,e)}catch(t){return this._promise.catch(t)}finally(t){return this._promise.finally(t)}};let M=N;class L extends(Ae=M,Oe=Symbol.toStringTag,Ae){constructor(e,n){let i,r;super((s,u)=>{i=s,r=u});a(this,"_resolve");a(this,"_reject");a(this,Oe,"DeferredPromise");this._promise.then(e,n),this._resolve=i,this._reject=r}get resolve(){return this._resolve}get reject(){return this._reject}watch(e){return e.then(this.resolve,this.reject),this}}function it(o){return new Promise(t=>setTimeout(t,o))}function rt(){return new Promise(o=>requestAnimationFrame(()=>o()))}function F(){return new Promise(o=>setTimeout(o))}Ne=Symbol.toStringTag;const $=class ${constructor(t,e){a(this,"_startTime");a(this,"_estimatedTime");a(this,"_endTime");a(this,"_currentStep");a(this,"_percentage");a(this,"_isRunning");a(this,"_hasCompleted");a(this,"_hasFailed");a(this,"_promise");a(this,"_publisher");a(this,Ne,"LongRunningTask");this._startTime=0,this._estimatedTime=0,this._currentStep=0,this._percentage=0,this._isRunning=!0,this._hasCompleted=!1,this._hasFailed=!1;const n=s=>(this._estimatedTime=0,this._endTime=Date.now(),this._percentage=100,this._isRunning=!1,this._hasCompleted=!0,s),i=s=>{throw this._endTime=Date.now(),this._isRunning=!1,this._hasFailed=!0,s};let r;if(e={...$._DefaultOptions,...e},e.trackProgress){let s;this._publisher=new P,e.totalSteps?e.stepIncrement?s=u=>{u?this._currentStep+=u:this._currentStep+=e.stepIncrement,this._percentage=this._currentStep/e.totalSteps*100;const h=Date.now()-this._startTime,f=e.totalSteps-this._currentStep;this._estimatedTime=h/this._currentStep*f}:s=u=>{if(u){this._currentStep+=u,this._percentage=this._currentStep/e.totalSteps*100;const h=Date.now()-this._startTime,f=e.totalSteps-this._currentStep;this._estimatedTime=h/this._currentStep*f}}:e.stepIncrement?s=u=>{u?this._currentStep+=u:this._currentStep+=e.stepIncrement}:s=u=>{u&&(this._currentStep+=u)},e.ignoreErrors?r=async u=>{const h=t();for(this._startTime=Date.now();;){try{const{done:f,value:g}=await h.next();if(f)return u(g);s(g)}catch(f){console.error(f)}this._publisher.publish("progress"),await F()}}:r=async(u,h)=>{try{const f=t();for(this._startTime=Date.now();;){const{done:g,value:Be}=await f.next();if(g)return u(Be);s(Be),this._publisher.publish("progress"),await F()}}catch(f){h(f)}}}else e.ignoreErrors?r=async s=>{const u=t();for(this._startTime=Date.now();;){try{const{done:h,value:f}=await u.next();if(h)return s(f)}catch(h){console.error(h)}await F()}}:r=async(s,u)=>{try{const h=t();for(this._startTime=Date.now();;){const{done:f,value:g}=await h.next();if(f)return s(g);await F()}}catch(h){u(h)}};this._promise=new Promise(r).then(n,i)}static get _DefaultOptions(){return{ignoreErrors:!1,stepIncrement:1,totalSteps:null,trackProgress:!1}}get startTime(){return this._startTime}get elapsedTime(){return this._isRunning?Date.now()-this._startTime:this._endTime-this._startTime}get estimatedTime(){return this._estimatedTime}get endTime(){if(this._isRunning)throw new w("The task is still running and has no end time yet.");return this._endTime}get currentStep(){return this._currentStep}get percentage(){return this._percentage}get isRunning(){return this._isRunning}get hasCompleted(){return this._hasCompleted}get hasFailed(){return this._hasFailed}then(t,e){return this._promise.then(t,e)}catch(t){return this._promise.catch(t)}finally(t){return this._promise.finally(t)}onProgress(t){if(!this._publisher)throw new w("You cannot subscribe to progress events without enabling progress tracking. Did you forget to set the `trackProgress` option to `true` when creating the task?");return this._publisher.subscribe("progress",t)}};let O=$;$e=Symbol.toStringTag;class st{constructor(){a(this,"_onFulfilled");a(this,$e,"Thenable");this._onFulfilled=t=>t}_resolve(t){return this._onFulfilled(t)}then(t,e){if(e){const n=this._onFulfilled;this._onFulfilled=i=>{try{return i=n(i),t(i)}catch(r){return e(r)}}}else if(t){const n=this._onFulfilled;this._onFulfilled=i=>(i=n(i),t(i))}return this}catch(t){if(t){const e=this._onFulfilled;this._onFulfilled=n=>{try{return e(n)}catch(i){return t(i)}}}return this}finally(t){if(t){const e=this._onFulfilled;this._onFulfilled=n=>{try{return e(n)}finally{t()}}}return this}}class ot extends(ze=M,qe=Symbol.toStringTag,ze){constructor(e,n){super((i,r)=>{const s=g=>{clearTimeout(f),i(g)},u=g=>{clearTimeout(f),r(g)},f=setTimeout(()=>u(new W("The operation has timed out.")),n);e(s,u)});a(this,qe,"TimedPromise")}}var I=(o=>(o[o.Millisecond=1]="Millisecond",o[o.Second=1e3]="Second",o[o.Minute=6e4]="Minute",o[o.Hour=36e5]="Hour",o[o.Day=864e5]="Day",o[o.Week=6048e5]="Week",o[o.Month=2592e6]="Month",o[o.Year=31536e6]="Year",o))(I||{});function at(o,t,e=864e5){return o=new Date(o),t=new Date(t),Math.floor((t.getTime()-o.getTime())/e)}function lt(o,t,e=864e5){return o=new Date(o),t=new Date(t),new c(function*(){const n=t.getTime();let i=o.getTime();for(;i<n;)yield new Date(i),i+=e})}function ut(o,t=864e5){return o=new Date(o),new Date(Math.floor(o.getTime()/t)*t)}class ct extends(We=j,Ve=Symbol.toStringTag,We){constructor(e=I.Second){super(n=>this._publisher.publish("tick",n),e);a(this,"_publisher");a(this,Ve,"Clock");this._publisher=new P}start(e=0){if(this._isRunning)throw new w("The clock has already been started.");super.start(e),this._publisher.publish("start")}stop(){if(!this._isRunning)throw new w("The clock hadn't yet started.");super.stop(),this._publisher.publish("stop")}onStart(e){return this._publisher.subscribe("start",e)}onStop(e){return this._publisher.subscribe("stop",e)}onTick(e,n=0){if(n<0)throw new D("The tick step must be a non-negative number.");if(n===0)return this._publisher.subscribe("tick",e);let i=0;return this._publisher.subscribe("tick",r=>{r-i<n||(e(r),i=r)})}}class ht extends(Le=j,Je=Symbol.toStringTag,Le){constructor(e,n=I.Second){super(()=>{const r=this.remainingTime;this._publisher.publish("tick",r),r<=0&&(this._deferrerStop(),this._publisher.publish("expire"))},n);a(this,"_deferrer");a(this,"_publisher");a(this,"_duration");a(this,Je,"Countdown");this._publisher=new P,this._duration=e}get duration(){return this._duration}get remainingTime(){return this._duration-this.elapsedTime}_deferrerStop(e){if(!this._isRunning)throw new w("The countdown hadn't yet started.");if(!this._deferrer)throw new S;super.stop(),e!==void 0?this._deferrer.reject(e):this._deferrer.resolve(),this._deferrer=void 0}start(e=this.duration){if(this._isRunning)throw new w("The countdown has already been started.");if(this._deferrer)throw new S;return this._deferrer=new L,super.start(this.duration-e),this._publisher.publish("start"),this._deferrer}stop(e){this._deferrerStop(e),this._publisher.publish("stop",e)}onExpire(e){return this._publisher.subscribe("expire",e)}onStart(e){return this._publisher.subscribe("start",e)}onStop(e){return this._publisher.subscribe("stop",e)}onTick(e,n=0){if(n<0)throw new D("The tick step must be a non-negative number.");if(n===0)return this._publisher.subscribe("tick",e);let i=0;return this._publisher.subscribe("tick",r=>{i-r<n||(e(r),i=r)})}}Ye=Symbol.toStringTag;const q=class q{constructor(){a(this,Ye,"Random")}static Boolean(t=.5){return Math.random()<t}static Integer(t,e){return Math.floor(e===void 0?Math.random()*t:Math.random()*(e-t)+t)}static Decimal(t,e){return t===void 0?Math.random():e===void 0?Math.random()*t:Math.random()*(e-t)+t}static Index(t){if(t.length===0)throw new p("You must provide at least one element.");return this.Integer(t.length)}static Choice(t){return t[q.Index(t)]}};let A=q;function ft(o,t="text/javascript"){return new Promise((e,n)=>{const i=document.createElement("script");i.async=!0,i.defer=!0,i.src=o,i.type=t,i.onload=()=>e(),i.onerror=()=>n(),document.body.appendChild(i)})}function dt(...o){return new c(function*(){for(const t of o)for(const e of t)yield e})}function mt(o){if(Array.isArray(o))return o.length;let t=0;for(const e of o)t+=1;return t}function _t(o){return new c(function*(){let t=0;for(const e of o)yield[t,e],t+=1})}function wt(o,t,e=1){return new c(function*(){t===void 0&&(t=o,o=0),o>t&&(e=e??-1);for(let n=o;n<t;n+=e)yield n})}function yt(o){const t=Array.from(o);for(let e=t.length-1;e>0;e-=1){const n=Math.floor(Math.random()*(e+1));[t[e],t[n]]=[t[n],t[e]]}return t}function pt(o){return new c(function*(){const t=new Set;for(const e of o)t.has(e)||(t.add(e),yield e)})}function Y(o,t){return new c(function*(){const e=o[Symbol.iterator](),n=t[Symbol.iterator]();for(;;){const i=e.next(),r=n.next();if(i.done||r.done)break;yield[i.value,r.value]}})}function gt(o,t){if(t===void 0){let r=0,s=0;for(const u of o)r+=u,s+=1;if(s===0)throw new p("You must provide at least one value.");return r/s}let e=0,n=0,i=0;for(const[r,s]of Y(o,t)){if(s<=0)throw new p(`The weight for the value #${i} must be greater than zero.`);e+=r*s,n+=s,i+=1}if(i===0)throw new p("You must provide at least one value and weight.");if(n>0)throw new p("The sum of weights must be greater than zero.");return e/n}function bt(o){let t=0;for(let e=0;e<o.length;e+=1){const n=o.charCodeAt(e);t=(t<<5)-t+n,t|=0}return t}function vt(o){let t=0;for(const e of o)t+=e;return t}function xt(o){return`${o.charAt(0).toUpperCase()}${o.slice(1)}`}const kt="2.0.0-rc.8";l.AggregatedAsyncIterator=R,l.AggregatedIterator=E,l.CallableObject=J,l.Clock=ct,l.Countdown=ht,l.DeferredPromise=L,l.Exception=m,l.FatalErrorException=S,l.FileException=C,l.FileExistsException=Ke,l.FileNotFoundException=He,l.GameLoop=j,l.JSONStorage=nt,l.KeyException=T,l.LongRunningTask=O,l.NetworkException=Qe,l.NotImplementedException=z,l.PermissionException=Xe,l.Publisher=P,l.Random=A,l.RangeException=D,l.ReducedIterator=_,l.ReferenceException=V,l.RuntimeException=w,l.SmartAsyncIterator=y,l.SmartIterator=c,l.SmartPromise=M,l.SwitchableCallback=tt,l.Thenable=st,l.TimeUnit=I,l.TimedPromise=ot,l.TimeoutException=W,l.TypeException=Ue,l.VERSION=kt,l.ValueException=p,l.average=gt,l.capitalize=xt,l.chain=dt,l.count=mt,l.dateDifference=at,l.dateRange=lt,l.dateRound=ut,l.delay=it,l.enumerate=_t,l.hash=bt,l.isBrowser=d,l.isNode=k,l.isWebWorker=Ge,l.loadScript=ft,l.nextAnimationFrame=rt,l.range=wt,l.shuffle=yt,l.sum=vt,l.unique=pt,l.yieldToEventLoop=F,l.zip=Y,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})});
|
|
5
|
+
Caused by ${n}`)}static FromUnknown(e){if(e instanceof f)return e;if(e instanceof Error){const n=new f(e.message);return n.stack=e.stack,n.name=e.name,n}return new f(`${e}`)}}class v extends(X=f,Q=Symbol.toStringTag,X){constructor(e,n,i="FatalErrorException"){e===void 0&&(e="The program has encountered an unrecoverable error and cannot continue as expected. Please, try again later. If the problem persists, contact the support team.");super(e,n,i);l(this,Q,"FatalErrorException")}}class q extends(W=v,Z=Symbol.toStringTag,W){constructor(e,n,i="NotImplementedException"){e===void 0&&(e="This feature isn't implemented yet. Please, try again later.");super(e,n,i);l(this,Z,"NotImplementedException")}}class P extends(ee=f,U=Symbol.toStringTag,ee){constructor(e,n,i="FileException"){super(e,n,i);l(this,U,"FileException")}}class Xe extends(ne=P,te=Symbol.toStringTag,ne){constructor(e,n,i="FileExistsException"){super(e,n,i);l(this,te,"FileExistsException")}}class Ze extends(se=P,ie=Symbol.toStringTag,se){constructor(e,n,i="FileNotFoundException"){super(e,n,i);l(this,ie,"FileNotFoundException")}}class k extends(oe=f,re=Symbol.toStringTag,oe){constructor(e,n,i="KeyException"){super(e,n,i);l(this,re,"KeyException")}}class We extends(le=f,ae=Symbol.toStringTag,le){constructor(e,n,i="NetworkException"){super(e,n,i);l(this,ae,"NetworkException")}}class Ue extends(ce=f,ue=Symbol.toStringTag,ce){constructor(e,n,i="PermissionException"){super(e,n,i);l(this,ue,"PermissionException")}}class C extends(fe=f,he=Symbol.toStringTag,fe){constructor(e,n,i="ReferenceException"){super(e,n,i);l(this,he,"ReferenceException")}}class y extends(me=f,de=Symbol.toStringTag,me){constructor(e,n,i="RuntimeException"){super(e,n,i);l(this,de,"RuntimeException")}}class $ extends(ye=y,we=Symbol.toStringTag,ye){constructor(e,n,i="EnvironmentException"){super(e,n,i);l(this,we,"EnvironmentException")}}class D extends(pe=f,_e=Symbol.toStringTag,pe){constructor(e,n,i="TimeoutException"){super(e,n,i);l(this,_e,"TimeoutException")}}class et extends(ge=f,be=Symbol.toStringTag,ge){constructor(e,n,i="TypeException"){super(e,n,i);l(this,be,"TypeException")}}class m extends(ve=f,xe=Symbol.toStringTag,ve){constructor(e,n,i="ValueException"){super(e,n,i);l(this,xe,"ValueException")}}class b extends(Se=m,ke=Symbol.toStringTag,Se){constructor(e,n,i="RangeException"){super(e,n,i);l(this,ke,"RangeException")}}class c{constructor(t){l(this,"_iterator");l(this,Ee,"SmartIterator");t instanceof Function?this._iterator=t():Symbol.iterator in t?this._iterator=t[Symbol.iterator]():this._iterator=t}every(t){let e=0;for(;;){const n=this._iterator.next();if(n.done)return!0;if(!t(n.value,e))return!1;e+=1}}some(t){let e=0;for(;;){const n=this._iterator.next();if(n.done)return!1;if(t(n.value,e))return!0;e+=1}}filter(t){const e=this._iterator;return new c(function*(){let n=0;for(;;){const i=e.next();if(i.done)return i.value;t(i.value,n)&&(yield i.value),n+=1}})}map(t){const e=this._iterator;return new c(function*(){let n=0;for(;;){const i=e.next();if(i.done)return i.value;yield t(i.value,n),n+=1}})}reduce(t,e){let n=0,i=e;if(i===void 0){const s=this._iterator.next();if(s.done)throw new m("Cannot reduce an empty iterator without an initial value.");i=s.value,n+=1}for(;;){const s=this._iterator.next();if(s.done)return i;i=t(i,s.value,n),n+=1}}flatMap(t){const e=this._iterator;return new c(function*(){let n=0;for(;;){const i=e.next();if(i.done)return i.value;const s=t(i.value,n);if(s instanceof Array)for(const o of s)yield o;else yield s;n+=1}})}drop(t){const e=this._iterator;return new c(function*(){let n=0;for(;n<t;){if(e.next().done)return;n+=1}for(;;){const i=e.next();if(i.done)return i.value;yield i.value}})}take(t){const e=this._iterator;return new c(function*(){let n=0;for(;n<t;){const i=e.next();if(i.done)return i.value;yield i.value,n+=1}})}find(t){let e=0;for(;;){const n=this._iterator.next();if(n.done)return;if(t(n.value,e))return n.value;e+=1}}enumerate(){return this.map((t,e)=>[e,t])}unique(){const t=this._iterator;return new c(function*(){const e=new Set;for(;;){const n=t.next();if(n.done)return n.value;e.has(n.value)||(e.add(n.value),yield n.value)}})}count(){let t=0;for(;;){if(this._iterator.next().done)return t;t+=1}}forEach(t){let e=0;for(;;){const n=this._iterator.next();if(n.done)return;t(n.value,e),e+=1}}next(...t){return this._iterator.next(...t)}return(t){return this._iterator.return?this._iterator.return(t):{done:!0,value:t}}throw(t){if(this._iterator.throw)return this._iterator.throw(t);throw t}groupBy(t){return new S(this.map((e,n)=>[t(e,n),e]))}toArray(){return Array.from(this)}[(Ee=Symbol.toStringTag,Symbol.iterator)](){return this}}Te=Symbol.toStringTag;const g=class g{constructor(t){l(this,"_elements");l(this,Te,"ReducedIterator");this._elements=new c(t)}every(t){for(const[e,[n,i]]of this._elements.enumerate())if(!t(n,i,e))return!1;return!0}some(t){for(const[e,[n,i]]of this._elements.enumerate())if(t(n,i,e))return!0;return!1}filter(t){const e=this._elements.enumerate();return new g(function*(){for(const[n,[i,s]]of e)t(i,s,n)&&(yield[i,s])})}map(t){const e=this._elements.enumerate();return new g(function*(){for(const[n,[i,s]]of e)yield[i,t(i,s,n)]})}reduce(t,e){let n=0,i=e;if(i===void 0){const s=this._elements.next();if(s.done)throw new m("Cannot reduce an empty iterator without an initial value.");i=s.value[1],n+=1}for(const[s,o]of this._elements)i=t(s,i,o,n),n+=1;return i}flatMap(t){const e=this._elements.enumerate();return new S(function*(){for(const[n,[i,s]]of e){const o=t(i,s,n);if(o instanceof Array)for(const u of o)yield[i,u];else yield[i,o]}})}drop(t){const e=this._elements.enumerate();return new g(function*(){for(const[n,[i,s]]of e)n>=t&&(yield[i,s])})}take(t){const e=this._elements.enumerate();return new g(function*(){for(const[n,[i,s]]of e){if(n>=t)break;yield[i,s]}})}find(t){for(const[e,[n,i]]of this._elements.enumerate())if(t(n,i,e))return i}enumerate(){return this.map((t,e,n)=>[n,e])}unique(){const t=this._elements;return new g(function*(){const e=new Set;for(const[n,i]of t)e.has(i)||(e.add(i),yield[n,i])})}count(){let t=0;for(const e of this._elements)t+=1;return t}forEach(t){for(const[e,[n,i]]of this._elements.enumerate())t(n,i,e)}reorganizeBy(t){const e=this._elements.enumerate();return new S(function*(){for(const[n,[i,s]]of e)yield[t(i,s,n),s]})}keys(){const t=this._elements;return new c(function*(){for(const[e]of t)yield e})}entries(){return this._elements}values(){const t=this._elements;return new c(function*(){for(const[e,n]of t)yield n})}toArray(){return Array.from(this.values())}toMap(){return new Map(this.entries())}toObject(){return Object.fromEntries(this.entries())}};let d=g;Me=Symbol.toStringTag;const _=class _{constructor(t){l(this,"_elements");l(this,Me,"AggregatedAsyncIterator");this._elements=new w(t)}async every(t){const e=new Map;for await(const[n,i]of this._elements){const[s,o]=e.get(n)??[0,!0];o&&e.set(n,[s+1,await t(n,i,s)])}return new d(function*(){for(const[n,[i,s]]of e)yield[n,s]})}async some(t){const e=new Map;for await(const[n,i]of this._elements){const[s,o]=e.get(n)??[0,!1];o||e.set(n,[s+1,await t(n,i,s)])}return new d(function*(){for(const[n,[i,s]]of e)yield[n,s]})}filter(t){const e=this._elements;return new _(async function*(){const n=new Map;for await(const[i,s]of e){const o=n.get(i)??0;await t(i,s,o)&&(yield[i,s]),n.set(i,o+1)}})}map(t){const e=this._elements;return new _(async function*(){const n=new Map;for await(const[i,s]of e){const o=n.get(i)??0;yield[i,await t(i,s,o)],n.set(i,o+1)}})}async reduce(t,e){const n=new Map;for await(const[i,s]of this._elements){let o,u;if(n.has(i))[o,u]=n.get(i);else if(e!==void 0)o=0,e instanceof Function?u=await e(i):u=await e;else{n.set(i,[0,s]);continue}n.set(i,[o+1,await t(i,u,s,o)])}return new d(function*(){for(const[i,[s,o]]of n)yield[i,o]})}flatMap(t){const e=this._elements;return new _(async function*(){const n=new Map;for await(const[i,s]of e){const o=n.get(i)??0,u=await t(i,s,o);if(u instanceof Array)for(const F of u)yield[i,F];else yield[i,u];n.set(i,o+1)}})}drop(t){const e=this._elements;return new _(async function*(){const n=new Map;for await(const[i,s]of e){const o=n.get(i)??0;if(o<t){n.set(i,o+1);continue}yield[i,s]}})}take(t){const e=this._elements;return new _(async function*(){const n=new Map;for await(const[i,s]of e){const o=n.get(i)??0;o>=t||(yield[i,s],n.set(i,o+1))}})}async find(t){const e=new Map;for await(const[n,i]of this._elements){let[s,o]=e.get(n)??[0,void 0];o===void 0&&(await t(n,i,s)&&(o=i),e.set(n,[s+1,o]))}return new d(function*(){for(const[n,[i,s]]of e)yield[n,s]})}enumerate(){return this.map((t,e,n)=>[n,e])}unique(){const t=this._elements;return new _(async function*(){const e=new Map;for await(const[n,i]of t){const s=e.get(n)??new Set;s.has(i)||(s.add(i),e.set(n,s),yield[n,i])}})}async count(){const t=new Map;for await(const[e]of this._elements){const n=t.get(e)??0;t.set(e,n+1)}return new d(function*(){for(const[e,n]of t)yield[e,n]})}async forEach(t){const e=new Map;for await(const[n,i]of this._elements){const s=e.get(n)??0;await t(n,i,s),e.set(n,s+1)}}reorganizeBy(t){const e=this._elements;return new _(async function*(){const n=new Map;for await(const[i,s]of e){const o=n.get(i)??0;yield[await t(i,s,o),s],n.set(i,o+1)}})}keys(){const t=this._elements;return new w(async function*(){const e=new Set;for await(const[n]of t)e.has(n)||(e.add(n),yield n)})}entries(){return this._elements}values(){const t=this._elements;return new w(async function*(){for await(const[e,n]of t)yield n})}async toArray(){const t=await this.toMap();return Array.from(t.values())}async toMap(){const t=new Map;for await(const[e,n]of this._elements){const i=t.get(e)??[];i.push(n),t.set(e,i)}return t}async toObject(){const t={};for await(const[e,n]of this._elements){const i=t[e]??[];i.push(n),t[e]=i}return t}};let T=_;class w{constructor(t){l(this,"_iterator");l(this,Re,"SmartAsyncIterator");if(t instanceof Function){const e=t();Symbol.asyncIterator in e?this._iterator=e:this._iterator=async function*(){let n=[];for(;;){const i=e.next(...n);if(i.done)return i.value;n=[yield i.value]}}()}else if(Symbol.asyncIterator in t)this._iterator=t[Symbol.asyncIterator]();else if(Symbol.iterator in t){const e=t[Symbol.iterator]();this._iterator=async function*(){for(;;){const n=e.next();if(n.done)return n.value;yield n.value}}()}else this._iterator=async function*(){let e=[];for(;;){const n=await t.next(...e);if(n.done)return n.value;e=[yield n.value]}}()}async every(t){let e=0;for(;;){const n=await this._iterator.next();if(n.done)return!0;if(!await t(n.value,e))return!1;e+=1}}async some(t){let e=0;for(;;){const n=await this._iterator.next();if(n.done)return!1;if(await t(n.value,e))return!0;e+=1}}filter(t){const e=this._iterator;return new w(async function*(){let n=0;for(;;){const i=await e.next();if(i.done)return i.value;await t(i.value,n)&&(yield i.value),n+=1}})}map(t){const e=this._iterator;return new w(async function*(){let n=0;for(;;){const i=await e.next();if(i.done)return i.value;yield await t(i.value,n),n+=1}})}async reduce(t,e){let n=0,i=e;if(i===void 0){const s=await this._iterator.next();if(s.done)throw new m("Cannot reduce an empty iterator without an initial value.");i=s.value,n+=1}for(;;){const s=await this._iterator.next();if(s.done)return i;i=await t(i,s.value,n),n+=1}}flatMap(t){const e=this._iterator;return new w(async function*(){let n=0;for(;;){const i=await e.next();if(i.done)return i.value;const s=await t(i.value,n);if(s instanceof Array)for(const o of s)yield o;else yield s;n+=1}})}drop(t){const e=this._iterator;return new w(async function*(){let n=0;for(;n<t;){if((await e.next()).done)return;n+=1}for(;;){const i=await e.next();if(i.done)return i.value;yield i.value}})}take(t){const e=this._iterator;return new w(async function*(){let n=0;for(;n<t;){const i=await e.next();if(i.done)return i.value;yield i.value,n+=1}})}async find(t){let e=0;for(;;){const n=await this._iterator.next();if(n.done)return;if(await t(n.value,e))return n.value;e+=1}}enumerate(){return this.map((t,e)=>[e,t])}unique(){const t=this._iterator;return new w(async function*(){const e=new Set;for(;;){const n=await t.next();if(n.done)return n.value;e.has(n.value)||(e.add(n.value),yield n.value)}})}async count(){let t=0;for(;;){if((await this._iterator.next()).done)return t;t+=1}}async forEach(t){let e=0;for(;;){const n=await this._iterator.next();if(n.done)return;await t(n.value,e),e+=1}}next(...t){return this._iterator.next(...t)}async return(t){const e=await t;return this._iterator.return?await this._iterator.return(e):{done:!0,value:e}}throw(t){if(this._iterator.throw)return this._iterator.throw(t);throw t}groupBy(t){return new T(this.map(async(e,n)=>[await t(e,n),e]))}toArray(){return Array.fromAsync(this)}[(Re=Symbol.toStringTag,Symbol.asyncIterator)](){return this}}Fe=Symbol.toStringTag;const p=class p{constructor(t){l(this,"_elements");l(this,Fe,"AggregatedIterator");this._elements=new c(t)}every(t){const e=new Map;for(const[n,i]of this._elements){const[s,o]=e.get(n)??[0,!0];o&&e.set(n,[s+1,t(n,i,s)])}return new d(function*(){for(const[n,[i,s]]of e)yield[n,s]})}some(t){const e=new Map;for(const[n,i]of this._elements){const[s,o]=e.get(n)??[0,!1];o||e.set(n,[s+1,t(n,i,s)])}return new d(function*(){for(const[n,[i,s]]of e)yield[n,s]})}filter(t){const e=this._elements;return new p(function*(){const n=new Map;for(const[i,s]of e){const o=n.get(i)??0;t(i,s,o)&&(yield[i,s]),n.set(i,o+1)}})}map(t){const e=this._elements;return new p(function*(){const n=new Map;for(const[i,s]of e){const o=n.get(i)??0;yield[i,t(i,s,o)],n.set(i,o+1)}})}reduce(t,e){const n=new Map;for(const[i,s]of this._elements){let o,u;if(n.has(i))[o,u]=n.get(i);else if(e!==void 0)o=0,e instanceof Function?u=e(i):u=e;else{n.set(i,[0,s]);continue}n.set(i,[o+1,t(i,u,s,o)])}return new d(function*(){for(const[i,[s,o]]of n)yield[i,o]})}flatMap(t){const e=this._elements;return new p(function*(){const n=new Map;for(const[i,s]of e){const o=n.get(i)??0,u=t(i,s,o);if(u instanceof Array)for(const F of u)yield[i,F];else yield[i,u];n.set(i,o+1)}})}drop(t){const e=this._elements;return new p(function*(){const n=new Map;for(const[i,s]of e){const o=n.get(i)??0;if(o<t){n.set(i,o+1);continue}yield[i,s]}})}take(t){const e=this._elements;return new p(function*(){const n=new Map;for(const[i,s]of e){const o=n.get(i)??0;o>=t||(yield[i,s],n.set(i,o+1))}})}find(t){const e=new Map;for(const[n,i]of this._elements){let[s,o]=e.get(n)??[0,void 0];o===void 0&&(t(n,i,s)&&(o=i),e.set(n,[s+1,o]))}return new d(function*(){for(const[n,[i,s]]of e)yield[n,s]})}enumerate(){return this.map((t,e,n)=>[n,e])}unique(){const t=this._elements;return new p(function*(){const e=new Map;for(const[n,i]of t){const s=e.get(n)??new Set;s.has(i)||(s.add(i),e.set(n,s),yield[n,i])}})}count(){const t=new Map;for(const[e]of this._elements){const n=t.get(e)??0;t.set(e,n+1)}return new d(function*(){for(const[e,n]of t)yield[e,n]})}forEach(t){const e=new Map;for(const[n,i]of this._elements){const s=e.get(n)??0;t(n,i,s),e.set(n,s+1)}}reorganizeBy(t){const e=this._elements;return new p(function*(){const n=new Map;for(const[i,s]of e){const o=n.get(i)??0;yield[t(i,s,o),s],n.set(i,o+1)}})}keys(){const t=this._elements;return new c(function*(){const e=new Set;for(const[n]of t)e.has(n)||(e.add(n),yield n)})}entries(){return this._elements}values(){const t=this._elements;return new c(function*(){for(const[e,n]of t)yield n})}toArray(){const t=this.toMap();return Array.from(t.values())}toMap(){const t=new Map;for(const[e,n]of this._elements){const i=t.get(e)??[];i.push(n),t.set(e,i)}return t}toObject(){const t={};for(const[e,n]of this._elements){const i=t[e]??[];i.push(n),t[e]=i}return t}};let S=p;const tt=Function;class z extends(Ce=tt,Pe=Symbol.toStringTag,Ce){constructor(){super("return this._invoke(...arguments);");l(this,Pe,"CallableObject");const e=this.bind(this);return Object.setPrototypeOf(this,e),e}}Ie=Symbol.toStringTag;class M{constructor(){l(this,"_subscribers");l(this,Ie,"Publisher");this._subscribers=new Map}clear(){this._subscribers.clear()}publish(t,...e){const n=this._subscribers.get(t);return n?n.slice().map(i=>i(...e)):[]}subscribe(t,e){this._subscribers.has(t)||this._subscribers.set(t,[]);const n=this._subscribers.get(t);return n.push(e),()=>{const i=n.indexOf(e);if(i<0)throw new C("Unable to unsubscribe the required subscriber. The subscription was already unsubscribed.");n.splice(i,1)}}unsubscribe(t,e){const n=this._subscribers.get(t);if(!n)return;const i=n.indexOf(e);if(i<0)throw new C("Unable to unsubscribe the required subscriber. The subscription was already unsubscribed or was never subscribed.");n.splice(i,1)}}class nt extends(Ae=z,je=Symbol.toStringTag,Ae){constructor(){const e=()=>{throw new q("The `SwitchableCallback` has no callback defined yet. Did you forget to call the `register` method?")};super();l(this,"_callback");l(this,"_callbacks");l(this,"_isEnabled");l(this,"_key");l(this,"_invoke");l(this,je,"SwitchableCallback");this._callback=e,this._callbacks=new Map,this._isEnabled=!0,this._key="",this._invoke=(...n)=>this._callback(...n)}get isEnabled(){return this._isEnabled}get key(){return this._key}enable(){if(!this._key)throw new k("The `SwitchableCallback` has no callback defined yet. Did you forget to call the `register` method?");if(this._isEnabled)throw new y("The `SwitchableCallback` is already enabled.");this._callback=this._callbacks.get(this._key),this._isEnabled=!0}disable(){if(!this._isEnabled)throw new y("The `SwitchableCallback` is already disabled.");this._callback=()=>{},this._isEnabled=!1}register(e,n){if(this._callbacks.size===0)this._key=e,this._callback=n;else if(this._callbacks.has(e))throw new k(`The key '${e}' has already been used for another callback.`);this._callbacks.set(e,n)}unregister(e){if(this._key===e)throw new k("Unable to unregister the currently selected callback.");if(!this._callbacks.has(e))throw new k(`The key '${e}' doesn't yet have any associated callback.`);this._callbacks.delete(e)}switch(e){if(!this._callbacks.has(e))throw new k(`The key '${e}' doesn't yet have any associated callback.`);this._key=e,this._isEnabled&&(this._callback=this._callbacks.get(e))}}Ne=Symbol.toStringTag;class it{constructor(t=!0){l(this,"_preferPersistence");l(this,"_volatile");l(this,"_persistent");l(this,Ne,"JSONStorage");if(!h)throw new $("The `JSONStorage` class can only be instantiated within a browser environment.");this._preferPersistence=t,this._volatile=window.sessionStorage,this._persistent=window.localStorage}_get(t,e,n){const i=t.getItem(e);if(i)try{return JSON.parse(i)}catch{console.warn(`The "${i}" value for "${e}" property cannot be parsed. Clearing the storage...`),t.removeItem(e)}return n}_set(t,e,n){const i=JSON.stringify(n);i?t.setItem(e,i):t.removeItem(e)}get(t,e,n=this._preferPersistence){const i=n?this._persistent:this._volatile;return this._get(i,t,e)}recall(t,e){return this._get(this._volatile,t,e)}retrieve(t,e){return this.recall(t)??this.read(t,e)}read(t,e){return this._get(this._persistent,t,e)}has(t,e){return(e?this._persistent:this._volatile).getItem(t)!==null}knows(t){return this._volatile.getItem(t)!==null}find(t){return this.knows(t)??this.exists(t)}exists(t){return this._persistent.getItem(t)!==null}set(t,e,n=this._preferPersistence){const i=n?this._persistent:this._volatile;this._set(i,t,e)}remember(t,e){this._set(this._volatile,t,e)}write(t,e){this._set(this._persistent,t,e)}delete(t,e){(e?this._persistent:this._volatile).removeItem(t)}forget(t){this._volatile.removeItem(t)}erase(t){this._persistent.removeItem(t)}clear(t){this._volatile.removeItem(t),this._persistent.removeItem(t)}}Oe=Symbol.toStringTag;const A=class A{constructor(t){l(this,"_isPending");l(this,"_isFulfilled");l(this,"_isRejected");l(this,"_promise");l(this,Oe,"SmartPromise");this._isPending=!0,this._isFulfilled=!1,this._isRejected=!1;const e=i=>(this._isPending=!1,this._isFulfilled=!0,i),n=i=>{throw this._isPending=!1,this._isRejected=!0,i};this._promise=new Promise(t).then(e,n)}static FromPromise(t){return new A((e,n)=>t.then(e,n))}get isPending(){return this._isPending}get isFulfilled(){return this._isFulfilled}get isRejected(){return this._isRejected}then(t,e){return this._promise.then(t,e)}catch(t){return this._promise.catch(t)}finally(t){return this._promise.finally(t)}};let E=A;class B extends($e=E,qe=Symbol.toStringTag,$e){constructor(e,n){let i,s;super((o,u)=>{i=o,s=u});l(this,"_resolve");l(this,"_reject");l(this,qe,"DeferredPromise");this._promise=this._promise.then(e,n),this._resolve=i,this._reject=s}get resolve(){return this._resolve}get reject(){return this._reject}watch(e){return e.then(this.resolve,this.reject),this}}class st extends(ze=E,De=Symbol.toStringTag,ze){constructor(e,n){super((i,s)=>{const o=O=>{clearTimeout(Ve),i(O)},u=O=>{clearTimeout(Ve),s(O)},Ve=setTimeout(()=>u(new D("The operation has timed out.")),n);e(o,u)});l(this,De,"TimedPromise")}}var R=(r=>(r[r.Millisecond=1]="Millisecond",r[r.Second=1e3]="Second",r[r.Minute=6e4]="Minute",r[r.Hour=36e5]="Hour",r[r.Day=864e5]="Day",r[r.Week=6048e5]="Week",r[r.Month=2592e6]="Month",r[r.Year=31536e6]="Year",r))(R||{}),J=(r=>(r[r.Sunday=0]="Sunday",r[r.Monday=1]="Monday",r[r.Tuesday=2]="Tuesday",r[r.Wednesday=3]="Wednesday",r[r.Thursday=4]="Thursday",r[r.Friday=5]="Friday",r[r.Saturday=6]="Saturday",r))(J||{});function rt(r,t,e=864e5){let n;return r=new Date(r),t=new Date(t),r<t?n=Math.floor:n=Math.ceil,n((t.getTime()-r.getTime())/e)}function ot(r,t,e=864e5){if(r>=t)throw new b("The end date must be greater than the start date.");return new c(function*(){const n=new Date(t).getTime();let i=new Date(r).getTime();for(;i<n;)yield new Date(i),i+=e})}function L(r,t=864e5){if(t<=1)throw new b("Rounding a timestamp by milliseconds or less makes no sense.Use the timestamp value directly instead.");if(t>864e5)throw new b("Rounding by more than a day leads to unexpected results. Consider using other methods to round dates by weeks, months or years.");return r=new Date(r),new Date(Math.floor(r.getTime()/t)*t)}function at(r,t=0){r=new Date(r);const e=7-t,n=(r.getUTCDay()+e)%7,i=r.getTime()-864e5*n;return L(new Date(i))}Be=Symbol.toStringTag;class I{constructor(t,e=40){l(this,"_handle");l(this,"_startTime");l(this,"_isRunning");l(this,"_publisher");l(this,"_start");l(this,"_stop");l(this,Be,"GameLoop");this._startTime=0,this._isRunning=!1,h?(this._start=()=>{t(this.elapsedTime),this._handle=window.requestAnimationFrame(this._start)},this._stop=()=>window.cancelAnimationFrame(this._handle)):(console.warn(`Not a browser environment detected. Using setInterval@${e}ms instead of requestAnimationFrame...`),this._start=()=>{this._handle=setInterval(()=>t(this.elapsedTime),e)},this._stop=()=>clearInterval(this._handle)),this._publisher=new M}get startTime(){return this._startTime}get isRunning(){return this._isRunning}get elapsedTime(){return performance.now()-this._startTime}start(t=0){if(this._isRunning)throw new y("The game loop has already been started.");this._startTime=performance.now()-t,this._start(),this._isRunning=!0,this._publisher.publish("start")}stop(){if(!this._isRunning)throw new y("The game loop had already stopped or hadn't yet started.");if(!this._handle)throw new v;this._stop(),this._handle=void 0,this._isRunning=!1,this._publisher.publish("stop")}onStart(t){return this._publisher.subscribe("start",t)}onStop(t){return this._publisher.subscribe("stop",t)}}class lt extends(Le=I,Je=Symbol.toStringTag,Le){constructor(e=R.Second){super(n=>this._publisher.publish("tick",n),e);l(this,"_publisher");l(this,Je,"Clock");this._publisher=new M}start(e=0){if(this._isRunning)throw new y("The clock has already been started.");this._startTime=performance.now()-e,this._start(),this._isRunning=!0,this._publisher.publish("start")}stop(){if(!this._isRunning)throw new y("The clock had already stopped or hadn't yet started.");if(!this._handle)throw new v;this._stop(),this._handle=void 0,this._isRunning=!1,this._publisher.publish("stop")}onTick(e,n=0){if(n<0)throw new b("The tick step must be a non-negative number.");if(n===0)return this._publisher.subscribe("tick",e);let i=0;return this._publisher.subscribe("tick",s=>{s-i<n||(e(s),i=s)})}}class ut extends(Ge=I,Ye=Symbol.toStringTag,Ge){constructor(e,n=R.Second){super(()=>{const s=this.remainingTime;s<=0?(this._deferrerStop(),this._publisher.publish("tick",0),this._publisher.publish("expire")):this._publisher.publish("tick",s)},n);l(this,"_publisher");l(this,"_duration");l(this,"_deferrer");l(this,Ye,"Countdown");this._publisher=new M,this._duration=e}get duration(){return this._duration}get remainingTime(){return this._duration-this.elapsedTime}_deferrerStop(e){if(!this._isRunning)throw new y("The countdown hadn't yet started.");if(!this._deferrer)throw new v;this._stop(),this._handle=void 0,this._isRunning=!1,e!==void 0?this._deferrer.reject(e):this._deferrer.resolve(),this._deferrer=void 0}start(e=this.duration){if(this._isRunning)throw new y("The countdown had already stopped or hadn't yet started.");if(this._deferrer)throw new v;return this._deferrer=new B,super.start(this.duration-e),this._publisher.publish("start"),this._deferrer}stop(e){this._deferrerStop(e),this._publisher.publish("stop",e)}onExpire(e){return this._publisher.subscribe("expire",e)}onTick(e,n=0){if(n<0)throw new b("The tick step must be a non-negative number.");if(n===0)return this._publisher.subscribe("tick",e);let i=this.remainingTime;return this._publisher.subscribe("tick",s=>{i-s<n||(e(s),i=s)})}}Ke=Symbol.toStringTag;class ct{constructor(){l(this,Ke,"Curve")}static Linear(t){const e=t-1;return new c(function*(){for(let n=0;n<t;n+=1)yield n/e})}static Exponential(t,e=2){if(e<0)throw new m("The base of the exponential curve cannot be negative.");const n=t-1;return new c(function*(){for(let i=0;i<t;i+=1)yield Math.pow(i/n,e)})}}He=Symbol.toStringTag;const N=class N{constructor(){l(this,He,"Random")}static Boolean(t=.5){return Math.random()<t}static Integer(t,e){return Math.floor(e===void 0?Math.random()*t:Math.random()*(e-t)+t)}static Decimal(t,e){return t===void 0?Math.random():e===void 0?Math.random()*t:Math.random()*(e-t)+t}static Index(t){if(t.length===0)throw new m("You must provide at least one element.");return this.Integer(t.length)}static Choice(t){return t[N.Index(t)]}};let j=N;function ht(r){return new Promise(t=>setTimeout(t,r))}function ft(){return new Promise(r=>requestAnimationFrame(()=>r()))}function dt(){return new Promise(r=>setTimeout(r))}function mt(r,t="text/javascript"){return new Promise((e,n)=>{const i=document.createElement("script");i.async=!0,i.defer=!0,i.src=r,i.type=t,i.onload=s=>e(),i.onerror=s=>n(s),document.body.appendChild(i)})}function wt(...r){return new c(function*(){for(const t of r)for(const e of t)yield e})}function yt(r){if(r instanceof Array)return r.length;let t=0;for(const e of r)t+=1;return t}function _t(r){return new c(function*(){let t=0;for(const e of r)yield[t,e],t+=1})}function pt(r,t,e=1){if(e<=0)throw new b("Step must be always a positive number, even when generating numbers in reverse order.");return t===void 0&&(t=r,r=0),r>t?new c(function*(){for(let n=r;n>t;n-=e)yield n}):new c(function*(){for(let n=r;n<t;n+=e)yield n})}function bt(r){const t=Array.from(r);for(let e=t.length-1;e>0;e-=1){const n=Math.floor(Math.random()*(e+1));[t[e],t[n]]=[t[n],t[e]]}return t}function gt(r){return new c(function*(){const t=new Set;for(const e of r)t.has(e)||(t.add(e),yield e)})}function Y(r,t){const e=r[Symbol.iterator](),n=t[Symbol.iterator]();return new c(function*(){for(;;){const i=e.next(),s=n.next();if(i.done||s.done)break;yield[i.value,s.value]}})}function xt(r,t){if(t===void 0){let s=0,o=0;for(const u of r)s+=u,o+=1;if(o===0)throw new m("You must provide at least one value.");return s/o}let e=0,n=0,i=0;for(const[s,o]of Y(r,t)){if(o<=0)throw new m(`The weight for the value #${i} must be greater than zero.`);e+=s*o,n+=o,i+=1}if(i===0)throw new m("You must provide at least one value and weight.");if(n<=0)throw new m("The sum of weights must be greater than zero.");return e/n}function vt(r){let t=0;for(let e=0;e<r.length;e+=1){const n=r.charCodeAt(e);t=(t<<5)-t+n,t|=0}return t}function kt(r){let t=0;for(const e of r)t+=e;return t}function St(r){return`${r.charAt(0).toUpperCase()}${r.slice(1)}`}const Et="2.0.0";a.AggregatedAsyncIterator=T,a.AggregatedIterator=S,a.CallableObject=z,a.Clock=lt,a.Countdown=ut,a.Curve=ct,a.DeferredPromise=B,a.EnvironmentException=$,a.Exception=f,a.FatalErrorException=v,a.FileException=P,a.FileExistsException=Xe,a.FileNotFoundException=Ze,a.GameLoop=I,a.JSONStorage=it,a.KeyException=k,a.NetworkException=We,a.NotImplementedException=q,a.PermissionException=Ue,a.Publisher=M,a.Random=j,a.RangeException=b,a.ReducedIterator=d,a.ReferenceException=C,a.RuntimeException=y,a.SmartAsyncIterator=w,a.SmartIterator=c,a.SmartPromise=E,a.SwitchableCallback=nt,a.TimeUnit=R,a.TimedPromise=st,a.TimeoutException=D,a.TypeException=et,a.VERSION=Et,a.ValueException=m,a.WeekDay=J,a.average=xt,a.capitalize=St,a.chain=wt,a.count=yt,a.dateDifference=rt,a.dateRange=ot,a.dateRound=L,a.delay=ht,a.enumerate=_t,a.getWeek=at,a.hash=vt,a.isBrowser=h,a.isNode=x,a.isWorker=Qe,a.loadScript=mt,a.nextAnimationFrame=ft,a.range=pt,a.shuffle=bt,a.sum=kt,a.unique=gt,a.yieldToEventLoop=dt,a.zip=Y,Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})});
|
|
6
6
|
//# sourceMappingURL=core.umd.cjs.map
|