collect-your-stuff 2.1.1 → 2.1.2
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/README.md +898 -213
- package/browser/collect-your-stuff.js +677 -648
- package/browser/collect-your-stuff.min.js +1 -1
- package/dist/collections/arrayable/ArrayElement.d.ts +38 -38
- package/dist/collections/arrayable/ArrayElement.js +66 -66
- package/dist/collections/arrayable/Arrayable.d.ts +122 -122
- package/dist/collections/arrayable/Arrayable.js +2 -2
- package/dist/collections/doubly-linked-list/DoubleLinker.d.ts +50 -50
- package/dist/collections/doubly-linked-list/DoubleLinker.js +1 -1
- package/dist/collections/doubly-linked-list/DoublyLinkedList.d.ts +125 -125
- package/dist/collections/doubly-linked-list/DoublyLinkedList.js +3 -3
- package/dist/collections/linked-list/LinkedList.d.ts +126 -126
- package/dist/collections/linked-list/LinkedList.js +3 -3
- package/dist/collections/linked-list/Linker.d.ts +46 -46
- package/dist/collections/linked-list/Linker.js +1 -1
- package/dist/collections/linked-tree-list/LinkedTreeList.d.ts +159 -159
- package/dist/collections/linked-tree-list/LinkedTreeList.js +3 -3
- package/dist/collections/linked-tree-list/TreeLinker.d.ts +71 -71
- package/dist/collections/linked-tree-list/TreeLinker.js +2 -2
- package/dist/collections/queue/Queue.d.ts +59 -59
- package/dist/collections/queue/Queue.js +11 -9
- package/dist/collections/queue/Queueable.d.ts +83 -83
- package/dist/collections/queue/Queueable.js +9 -7
- package/dist/collections/queue/TaskQueue.d.ts +68 -68
- package/dist/collections/queue/TaskQueue.js +2 -2
- package/dist/collections/stack/Stack.d.ts +64 -64
- package/dist/collections/stack/Stack.js +11 -9
- package/dist/collections/stack/Stackable.d.ts +59 -59
- package/dist/collections/stack/Stackable.js +1 -1
- package/dist/collections/stack/TaskStack.d.ts +65 -65
- package/dist/collections/stack/TaskStack.js +2 -2
- package/dist/main.d.ts +68 -68
- package/dist/main.js +1 -1
- package/dist/recipes/ArrayIterator.d.ts +20 -20
- package/dist/recipes/ArrayIterator.js +39 -39
- package/dist/recipes/DoubleLinkerIterator.d.ts +18 -18
- package/dist/recipes/DoubleLinkerIterator.js +33 -33
- package/dist/recipes/IsArrayable.d.ts +105 -105
- package/dist/recipes/IsArrayable.js +5 -5
- package/dist/recipes/IsDoubleLinker.d.ts +14 -14
- package/dist/recipes/IsDoubleLinker.js +5 -5
- package/dist/recipes/IsElement.d.ts +14 -14
- package/dist/recipes/IsElement.js +5 -5
- package/dist/recipes/IsLinker.d.ts +10 -10
- package/dist/recipes/IsLinker.js +5 -5
- package/dist/recipes/IsQueue.d.ts +37 -37
- package/dist/recipes/IsQueue.js +5 -5
- package/dist/recipes/IsStack.d.ts +36 -36
- package/dist/recipes/IsStack.js +5 -5
- package/dist/recipes/IsTree.d.ts +11 -11
- package/dist/recipes/IsTree.js +5 -5
- package/dist/recipes/IsTreeNode.d.ts +29 -29
- package/dist/recipes/IsTreeNode.js +5 -5
- package/dist/recipes/LinkerIterator.d.ts +18 -18
- package/dist/recipes/LinkerIterator.js +33 -33
- package/dist/recipes/Runnable.d.ts +55 -55
- package/dist/recipes/Runnable.js +69 -69
- package/dist/recipes/TreeLinkerIterator.d.ts +20 -20
- package/dist/recipes/TreeLinkerIterator.js +1 -1
- package/dist/recipes/recipes.d.ts +15 -15
- package/dist/recipes/recipes.js +2 -2
- package/dist/services/parseTree.d.ts +9 -9
- package/dist/services/parseTree.js +1 -1
- package/dist/services/parseTreeNext.d.ts +17 -17
- package/dist/services/parseTreeNext.js +42 -42
- package/dist/services/services.d.ts +13 -13
- package/dist/services/services.js +2 -2
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
!function e(t,n,r){function i(o,l){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!l&&a)return a(o,!0);if(s)return s(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[o]={exports:{}};t[o][0].call(c.exports,(function(e){return i(t[o][1][e]||e)}),c,c.exports,e,t,n,r)}return n[o].exports}for(var s="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ArrayElement=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.reduce.js");class r{constructor(e=null){this.classType=r,this.data=null,this.data=e}}n.ArrayElement=r,r.make=(e,t=r)=>null===e||"object"!=typeof e?new t(e):e.classType?e:new t(e),r.fromArray=(e=[],t=r)=>e.reduce(((e,n)=>{const r=t.make(n,t);return e.head.length?(e.head.push(r),e.tail=r,e):{head:[r],tail:r}}),{head:[],tail:null})},{"core-js/modules/esnext.iterator.constructor.js":122,"core-js/modules/esnext.iterator.reduce.js":125}],2:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Arrayable=void 0;var r=e("./ArrayElement"),i=e("../../recipes/ArrayIterator");class s{constructor(e=r.ArrayElement){this.classType=s,this.innerList=[],this.initialized=!1,this.elementClass=e}indexOfElement(e){const t=this.innerList.indexOf(e);if(t<0)throw new Error("The reference element is not in this list.");return t}initialize(e){return this.initialized?(console.warn("Attempt to initialize non-empty list."),this):(this.initialized=!0,this.innerList=e,this)}get list(){return this.innerList}get first(){return this.length?this.innerList[0]:null}get last(){return this.length?this.innerList[this.length-1]:null}get length(){return this.innerList.length}insertAfter(e,t){const n=null==e?-1:this.indexOfElement(e);return this.innerList.splice(n+1,0,this.elementClass.make(t,this.elementClass)),this}insertBefore(e,t){const n=null==e?this.length:this.indexOfElement(e);return this.innerList.splice(n,0,this.elementClass.make(t,this.elementClass)),this}append(e,t=this.last){return t===this.last?(this.innerList.push(this.elementClass.make(e,this.elementClass)),this):this.insertAfter(t,e)}prepend(e,t=this.first){return t===this.first?(this.innerList.unshift(this.elementClass.make(e,this.elementClass)),this):this.insertBefore(t,e)}remove(e){const t=this.innerList.indexOf(e);return t<0?null:(this.innerList.splice(t,1),e)}item(e){if(e>=this.length)return null;if(e>=0)return this.innerList[e];const t=this.length+e;return t<0?null:this.innerList[t]}forEach(e,t=this){for(let n=0;n<t.length;++n)e(t.item(n),n,t);return t}[Symbol.iterator](){return new i.ArrayIterator(this.innerList,0)}}n.Arrayable=s,s.fromArray=(e=[],t=r.ArrayElement,n=s)=>new n(t).initialize(t.fromArray(e).head)},{"../../recipes/ArrayIterator":16,"./ArrayElement":1}],3:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DoubleLinker=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.reduce.js");var r=e("../linked-list/Linker");class i{constructor({data:e=null,next:t=null,prev:n=null}={}){this.classType=i,this.data=null,this.next=null,this.prev=null,this.data=e,this.next=t,this.prev=n}}n.DoubleLinker=i,i.make=(e,t=i)=>r.Linker.make(e,t),i.fromArray=(e=[],t=i)=>e.reduce(((e,n)=>{const r=t.make(n,t);return null===e.head?{head:r,tail:r}:(r.prev=e.tail,e.tail.next=r,e.tail=r,e)}),{head:null,tail:null})},{"../linked-list/Linker":6,"core-js/modules/esnext.iterator.constructor.js":122,"core-js/modules/esnext.iterator.reduce.js":125}],4:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DoublyLinkedList=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.for-each.js");var r=e("./DoubleLinker"),i=e("../../recipes/DoubleLinkerIterator"),s=e("../linked-list/LinkedList");class o{constructor(e=r.DoubleLinker){this.classType=o,this.innerList=null,this.initialized=!1,this.tailCache=null,this.countCache=null,this.linkerClass=e}initialize(e){return s.LinkedList.prototype.initialize.call(this,e)}get list(){return this.innerList}get first(){let e=this.innerList;if(null===e)return null;for(;null!==e.prev;)e=e.prev;return this.innerList=e,e}get last(){if(null===this.innerList)return null;let e=null!==this.tailCache?this.tailCache:this.innerList;for(;null!==e.next;)e=e.next;return this.tailCache=e,e}get length(){return null===this.countCache&&this.reset(),this.countCache}insertAfter(e,t){if(t=this.linkerClass.make(t,this.linkerClass),null==e){const e=this.first;t.prev=null,t.next=e,e?e.prev=t:this.tailCache=t,this.innerList=t}else t.next=e.next,t.prev=e,e.next=t,t.next?t.next.prev=t:this.tailCache=t;return null!==this.countCache&&++this.countCache,this}insertBefore(e,t){if(t=this.linkerClass.make(t,this.linkerClass),null==e){const e=this.last;t.next=null,t.prev=e,null===e?this.innerList=t:e.next=t,this.tailCache=t}else t.prev=e.prev,t.next=e,e.prev=t,t.prev?t.prev.next=t:this.innerList=t;return null!==this.countCache&&++this.countCache,this}append(e,t=this.last){return this.insertAfter(t,e)}prepend(e,t=this.first){return this.insertBefore(t,e)}remove(e){return null==e?null:(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),this.innerList===e&&(this.innerList=e.next||e.prev||null),this.tailCache===e&&(this.tailCache=e.prev),null===this.innerList&&(this.tailCache=null),null!==this.countCache&&--this.countCache,e)}reset(){let e=this.innerList;if(null===e)return this.countCache=0,this.tailCache=null,null;for(;null!==e.prev;)e=e.prev;this.innerList=e;let t=0,n=e,r=e;for(;null!==r;)++t,n=r,r=r.next;return this.countCache=t,this.tailCache=n,e}item(e){if(e>=0){let t=this.first,n=-1;for(;++n<e&&null!==t;)t=t.next;return n===e?t:null}let t=this.last,n=this.length;const r=this.length+e;if(r<0)return null;for(;--n>r&&null!==t;)t=t.prev;return n===r?t:null}forEach(e,t=this){return s.LinkedList.prototype.forEach.call(this,e,t)}[Symbol.iterator](){const e=this.first;return new i.DoubleLinkerIterator(e)}}n.DoublyLinkedList=o,o.fromArray=(e=[],t=r.DoubleLinker,n=o)=>s.LinkedList.fromArray(e,t,n)},{"../../recipes/DoubleLinkerIterator":17,"../linked-list/LinkedList":5,"./DoubleLinker":3,"core-js/modules/esnext.iterator.constructor.js":122,"core-js/modules/esnext.iterator.for-each.js":123}],5:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LinkedList=void 0;var r=e("./Linker"),i=e("../../recipes/LinkerIterator"),s=e("../arrayable/Arrayable");class o{constructor(e=r.Linker){this.classType=o,this.innerList=null,this.initialized=!1,this.tailCache=null,this.countCache=null,this.linkerClass=e}initialize(e){return s.Arrayable.prototype.initialize.call(this,e)}get list(){return this.innerList}get first(){return this.innerList}get last(){if(null===this.innerList)return null;let e=null!==this.tailCache?this.tailCache:this.innerList;for(;null!==e.next;)e=e.next;return this.tailCache=e,e}get length(){return null===this.countCache&&this.reset(),this.countCache}insertAfter(e,t){return t=this.linkerClass.make(t,this.linkerClass),null==e?(t.next=this.innerList,null===this.innerList&&(this.tailCache=t),this.innerList=t):(t.next=e.next,e.next=t,null===t.next&&(this.tailCache=t)),null!==this.countCache&&++this.countCache,this}insertBefore(e,t){if(t=this.linkerClass.make(t,this.linkerClass),null==e){const e=this.last;t.next=null,null===e?this.innerList=t:e.next=t,this.tailCache=t}else{let n=null,r=this.first;for(;null!==r&&r!==e;)n=r,r=r.next;if(null===r)throw new Error("The reference node is not in this list.");t.next=e,n?n.next=t:this.innerList=t}return null!==this.countCache&&++this.countCache,this}append(e,t=this.last){return this.insertAfter(t,e)}prepend(e,t=this.first){return this.insertBefore(t,e)}remove(e){if(null==e)return null;let t=null,n=this.first;for(;null!==n&&n!==e;)t=n,n=n.next;return null===n?null:(t?t.next=e.next:this.innerList=e.next,this.tailCache===e&&(this.tailCache=t),null===this.innerList&&(this.tailCache=null),null!==this.countCache&&--this.countCache,e)}reset(){let e=0,t=null,n=this.innerList;for(;null!==n;)++e,t=n,n=n.next;return this.countCache=e,this.tailCache=t,this.innerList}item(e){if(e>=0){let t=this.first,n=-1;for(;++n<e&&null!==t;)t=t.next;return n===e?t:null}let t=this.first,n=0;const r=this.length+e;if(r<0)return null;for(;n<r&&null!==t;)t=t.next,++n;return n===r?t:null}forEach(e,t=this){let n=0,r=t.first;for(;null!==r;)e(r,n,t),r=r.next,++n;return t}[Symbol.iterator](){return new i.LinkerIterator(this.first)}}n.LinkedList=o,o.fromArray=(e=[],t=r.Linker,n=o)=>new n(t).initialize(t.fromArray(e).head)},{"../../recipes/LinkerIterator":18,"../arrayable/Arrayable":2,"./Linker":6}],6:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Linker=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.reduce.js");var r=e("../arrayable/ArrayElement");class i{constructor({data:e=null,next:t=null}={}){this.classType=i,this.data=null,this.next=null,this.data=e,this.next=t}}n.Linker=i,i.make=(e,t=i)=>null===e||"object"!=typeof e?new t({data:e}):e.classType?e:("data"in e||(e={data:e}),r.ArrayElement.make(e,t)),i.fromArray=(e=[],t=i)=>e.reduce(((e,n)=>{const r=t.make(n,t);return null===e.head?{head:r,tail:r}:(e.tail.next=r,e.tail=r,e)}),{head:null,tail:null})},{"../arrayable/ArrayElement":1,"core-js/modules/esnext.iterator.constructor.js":122,"core-js/modules/esnext.iterator.reduce.js":125}],7:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LinkedTreeList=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.for-each.js");var r=e("./TreeLinker"),i=e("../../recipes/TreeLinkerIterator"),s=e("../doubly-linked-list/DoublyLinkedList");const o=(e,t)=>Object.getOwnPropertyDescriptor(s.DoublyLinkedList.prototype,e).get.call(t);class l{constructor(e=r.TreeLinker){this.classType=l,this.innerList=null,this.initialized=!1,this.tailCache=null,this.countCache=null,this.ownerNode=void 0,this.linkerClass=e}initialize(e){return this.initialized?(console.warn("Attempt to initialize LinkedTreeList which is not empty."),this):(this.initialized=!0,this.innerList=e,this)}get list(){return this.innerList}get first(){return o("first",this)}get last(){return o("last",this)}get length(){return o("length",this)}get parent(){if(void 0!==this.ownerNode)return this.ownerNode;const e=this.first;return null===e?null:e.parent}set parent(e){this.ownerNode=e;let t=this.first;for(;null!==t;)t.parent=e,t=t.next;e&&(e.children=this)}get rootParent(){let e=this.first;if(!e)return null;let t=this.first.parent;for(;null!==t;)e=t,t=e.parent;return e}setChildren(e,t=null){let n=!1;if(this.forEach((t=>{t===e&&(n=!0)})),!n)throw new Error("The item is not one of the linkers of this list.");null!=t?t.parent=e:e.children=null}adopt(e){const t=this.linkerClass.make(e,this.linkerClass);return t.parent=this.parent,t}insertAfter(e,t){return s.DoublyLinkedList.prototype.insertAfter.call(this,e,this.adopt(t))}insertBefore(e,t){return s.DoublyLinkedList.prototype.insertBefore.call(this,e,this.adopt(t))}append(e,t=this.last){return s.DoublyLinkedList.prototype.append.call(this,e,t)}prepend(e,t=this.first){return s.DoublyLinkedList.prototype.prepend.call(this,e,t)}remove(e){const t=this.parent,n=s.DoublyLinkedList.prototype.remove.call(this,e);return n&&n.parent===t&&(this.ownerNode=t,n.parent=null),n}reset(){return s.DoublyLinkedList.prototype.reset.call(this)}item(e){return s.DoublyLinkedList.prototype.item.call(this,e)}forEach(e,t=this){let n=0,r=t.first;for(;null!==r;)e(r,n,t),r=r.next,++n;return t}[Symbol.iterator](){return new i.TreeLinkerIterator(this.first,this.parent)}}n.LinkedTreeList=l,l.fromArray=(e=[],t=r.TreeLinker,n=l)=>new n(t).initialize(t.fromArray(e).head)},{"../../recipes/TreeLinkerIterator":20,"../doubly-linked-list/DoublyLinkedList":4,"./TreeLinker":8,"core-js/modules/esnext.iterator.constructor.js":122,"core-js/modules/esnext.iterator.for-each.js":123}],8:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.TreeLinker=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.map.js");var r=e("../doubly-linked-list/DoubleLinker"),i=e("./LinkedTreeList");class s{constructor({data:e=null,next:t=null,prev:n=null,children:r=null,parent:o=null,listClass:l=i.LinkedTreeList}={}){this.classType=s,this.data=null,this.next=null,this.prev=null,this.parent=null,this.children=null,this.data=e,this.next=t,this.prev=n,this.parent=o,this.children=this.childrenFromArray(r,l)}childrenFromArray(e=null,t=i.LinkedTreeList){if(null===e)return null;const n=e.map((e=>{const t=this.classType.make(e,this.classType);return t.parent=this,t})),r=t.fromArray(n,this.classType);return r.parent=this,r}}n.TreeLinker=s,s.make=(e,t=s)=>r.DoubleLinker.make(e,t),s.fromArray=(e=[],t=s)=>r.DoubleLinker.fromArray(e,t)},{"../doubly-linked-list/DoubleLinker":3,"./LinkedTreeList":7,"core-js/modules/esnext.iterator.constructor.js":122,"core-js/modules/esnext.iterator.map.js":124}],9:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Queue=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.for-each.js");var r=e("../linked-list/LinkedList"),i=e("../linked-list/Linker");class s{constructor(e=null,t=r.LinkedList,n=i.Linker){this.linkerClass=n,this.queuedList=null===e?new t(n):e}dequeue(){const e=this.queuedList.first;return null==e?null:(this.queuedList.remove(e),e.data)}empty(){return this.size()<=0}enqueue(e){return this.queuedList.append(new this.linkerClass({data:e})),this}peek(){const e=this.queuedList.first;return null==e?null:e.data}size(){return this.queuedList.length}[Symbol.iterator](){const e=this.queuedList[Symbol.iterator]();return{next:()=>{const t=e.next();return t.done?{done:!0,value:void 0}:{done:!1,value:t.value.data}}}}}n.Queue=s,s.fromArray=(e=[],t=r.LinkedList,n=i.Linker)=>{const o=new s(null,t,n);return e.forEach((e=>o.enqueue(e))),o}},{"../linked-list/LinkedList":5,"../linked-list/Linker":6,"core-js/modules/esnext.iterator.constructor.js":122,"core-js/modules/esnext.iterator.for-each.js":123}],10:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Queueable=void 0;var r=e("../linked-list/Linker");class i{constructor({task:e=null,next:t=null,ready:n=!1}={}){this.data=null,this.next=null,this.complete=!1,this.ready=!1,this.running=!1,this.classType=i,this.data=e,this.next=t,this.complete=!1,this.ready=n,this.running=!1}get isReady(){return"function"==typeof this.ready?this.ready():this.ready}get task(){return"function"==typeof this.data?this.data:e=>"function"==typeof e?e({context:this.data}).context:this.data}markCompleted({success:e=!0,error:t=!1,context:n=null}={}){return this.complete=!0,this.running=!1,{success:e,error:t,context:n}}run(){return this.isReady?this.running?{success:!1,error:"Queued task is already running, possible missing 'complete' callback",context:this.data}:(this.running=!0,this.task(this.markCompleted.bind(this))):{success:!1,error:"Task is not ready",context:this.data}}}n.Queueable=i,i.make=(e,t=i)=>null===e||"object"!=typeof e?new t({task:e,ready:!0}):e.classType?e:("task"in e||(e={task:e,ready:!0}),new t(e)),i.fromArray=(e=[],t=i)=>r.Linker.fromArray(e,t)},{"../linked-list/Linker":6}],11:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.TaskQueue=void 0;var r=e("./Queueable"),i=e("../linked-list/LinkedList");class s{constructor(e=null,t=i.LinkedList,n=r.Queueable){this.listClass=t,this.queueableClass=n,null===e&&(e=new t(n)),this.queuedList=e}dequeue(){let e=this.remove();for(;e&&e.complete;)e=this.remove();return e?e.running?{success:!1,error:"The queue has been blocked by an unfinished task.",context:e}:e.isReady?(this.empty()||this.enqueue(e),e.run.call(e)):(this.enqueue(e),{success:!1,error:"Unable to find ready task.",context:e}):{success:"No more queueable tasks in the queue",error:!1,context:this.queuedList}}empty(){return this.size()<=0}enqueue(e){this.queuedList.append(e)}peek(){return this.queuedList.first}remove(){return this.empty()?null:this.queuedList.remove(this.queuedList.first)}size(){return this.queuedList.length}}n.TaskQueue=s,s.fromArray=(e=[],t=r.Queueable,n=i.LinkedList)=>{const o=new n(t);return o.initialize(t.fromArray(e,t).head),new s(o,n,t)}},{"../linked-list/LinkedList":5,"./Queueable":10}],12:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Stack=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.for-each.js");var r=e("../linked-list/LinkedList"),i=e("../linked-list/Linker");class s{constructor(e=null,t=r.LinkedList,n=i.Linker){this.linkerClass=n,this.stackedList=null===e?new t(n):e}empty(){return this.size()<=0}peek(){const e=this.stackedList.first;return null==e?null:e.data}pop(){const e=this.stackedList.first;return null==e?null:(this.stackedList.remove(e),e.data)}push(e){return this.stackedList.prepend(new this.linkerClass({data:e})),this}size(){return this.stackedList.length}top(){return this.peek()}[Symbol.iterator](){const e=this.stackedList[Symbol.iterator]();return{next:()=>{const t=e.next();return t.done?{done:!0,value:void 0}:{done:!1,value:t.value.data}}}}}n.Stack=s,s.fromArray=(e=[],t=r.LinkedList,n=i.Linker)=>{const o=new s(null,t,n);return e.forEach((e=>o.push(e))),o}},{"../linked-list/LinkedList":5,"../linked-list/Linker":6,"core-js/modules/esnext.iterator.constructor.js":122,"core-js/modules/esnext.iterator.for-each.js":123}],13:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Stackable=void 0;var r=e("../linked-list/Linker");class i{constructor({task:e=null,next:t=null,ready:n=!1}={}){this.data=null,this.next=null,this.classType=i,this.data=e,this.next=t}get task(){return"function"==typeof this.data?this.data:()=>this.data}run(){return this.task()}}n.Stackable=i,i.make=(e,t=i)=>null===e||"object"!=typeof e?new t({task:e}):e.classType?e:("task"in e||(e={task:e}),new t(e)),i.fromArray=(e=[],t=i)=>r.Linker.fromArray(e,t)},{"../linked-list/Linker":6}],14:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.TaskStack=void 0;var r=e("./Stackable"),i=e("../linked-list/LinkedList");class s{constructor(e=null,t=i.LinkedList,n=r.Stackable){this.listClass=t,this.stackableClass=n,null===e&&(e=new t(n)),this.stackedList=e}empty(){return this.size()<=0}top(){return this.stackedList.first}pop(){const e=this.remove();return e?e.run():{success:"No more stackable tasks in the stack",error:!1,context:this.stackedList}}push(e){this.stackedList.prepend(e)}remove(){return this.empty()?null:this.stackedList.remove(this.stackedList.first)}size(){return this.stackedList.length}}n.TaskStack=s,s.fromArray=(e=[],t=r.Stackable,n=i.LinkedList)=>{const o=new n(t);return o.initialize(t.fromArray(e,t).head),new s(o,n,t)}},{"../linked-list/LinkedList":5,"./Stackable":13}],15:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"ArrayElement",{enumerable:!0,get:function(){return r.ArrayElement}}),Object.defineProperty(n,"Arrayable",{enumerable:!0,get:function(){return i.Arrayable}}),Object.defineProperty(n,"DoubleLinker",{enumerable:!0,get:function(){return s.DoubleLinker}}),Object.defineProperty(n,"DoublyLinkedList",{enumerable:!0,get:function(){return o.DoublyLinkedList}}),Object.defineProperty(n,"LinkedList",{enumerable:!0,get:function(){return a.LinkedList}}),Object.defineProperty(n,"LinkedTreeList",{enumerable:!0,get:function(){return c.LinkedTreeList}}),Object.defineProperty(n,"Linker",{enumerable:!0,get:function(){return l.Linker}}),Object.defineProperty(n,"Queue",{enumerable:!0,get:function(){return h.Queue}}),Object.defineProperty(n,"Queueable",{enumerable:!0,get:function(){return f.Queueable}}),Object.defineProperty(n,"Stack",{enumerable:!0,get:function(){return y.Stack}}),Object.defineProperty(n,"Stackable",{enumerable:!0,get:function(){return d.Stackable}}),Object.defineProperty(n,"TaskQueue",{enumerable:!0,get:function(){return p.TaskQueue}}),Object.defineProperty(n,"TaskStack",{enumerable:!0,get:function(){return b.TaskStack}}),Object.defineProperty(n,"TreeLinker",{enumerable:!0,get:function(){return u.TreeLinker}}),n.default=void 0,Object.defineProperty(n,"recipes",{enumerable:!0,get:function(){return v.recipes}}),Object.defineProperty(n,"services",{enumerable:!0,get:function(){return k.services}});var r=e("./collections/arrayable/ArrayElement"),i=e("./collections/arrayable/Arrayable"),s=e("./collections/doubly-linked-list/DoubleLinker"),o=e("./collections/doubly-linked-list/DoublyLinkedList"),l=e("./collections/linked-list/Linker"),a=e("./collections/linked-list/LinkedList"),u=e("./collections/linked-tree-list/TreeLinker"),c=e("./collections/linked-tree-list/LinkedTreeList"),f=e("./collections/queue/Queueable"),h=e("./collections/queue/Queue"),p=e("./collections/queue/TaskQueue"),d=e("./collections/stack/Stackable"),y=e("./collections/stack/Stack"),b=e("./collections/stack/TaskStack"),v=e("./recipes/recipes"),k=e("./services/services");const m={ArrayElement:r.ArrayElement,Arrayable:i.Arrayable,DoubleLinker:s.DoubleLinker,DoublyLinkedList:o.DoublyLinkedList,Linker:l.Linker,LinkedList:a.LinkedList,TreeLinker:u.TreeLinker,LinkedTreeList:c.LinkedTreeList,Queueable:f.Queueable,Queue:h.Queue,TaskQueue:p.TaskQueue,Stackable:d.Stackable,Stack:y.Stack,TaskStack:b.TaskStack,recipes:v.recipes,services:k.services};n.default=m;"undefined"!=typeof window&&(window.collectYourStuff=m)},{"./collections/arrayable/ArrayElement":1,"./collections/arrayable/Arrayable":2,"./collections/doubly-linked-list/DoubleLinker":3,"./collections/doubly-linked-list/DoublyLinkedList":4,"./collections/linked-list/LinkedList":5,"./collections/linked-list/Linker":6,"./collections/linked-tree-list/LinkedTreeList":7,"./collections/linked-tree-list/TreeLinker":8,"./collections/queue/Queue":9,"./collections/queue/Queueable":10,"./collections/queue/TaskQueue":11,"./collections/stack/Stack":12,"./collections/stack/Stackable":13,"./collections/stack/TaskStack":14,"./recipes/recipes":21,"./services/services":24}],16:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ArrayIterator=void 0;n.ArrayIterator=class{constructor(e,t=0){this.innerList=e,this.index=t}next(e){return this.index<this.innerList.length?{value:this.innerList[this.index++],done:!1}:{value:void 0,done:!0}}}},{}],17:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DoubleLinkerIterator=void 0;n.DoubleLinkerIterator=class{constructor(e){this.current=e}next(e){const t={value:this.current,done:!this.current};return this.current=this.current?this.current.next:null,t}}},{}],18:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LinkerIterator=void 0;n.LinkerIterator=class{constructor(e){this.current=e}next(e){const t={value:this.current,done:!this.current};return this.current=this.current?this.current.next:null,t}}},{}],19:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Runnable=void 0;class r{constructor(e=null){this.data=null,this.data=e}get task(){return"function"==typeof this.data?this.data:()=>this.data}run(){return this.task()}static isRunnable(e){return void 0===e?this instanceof r:"object"==typeof e&&("function"==typeof e.task&&"function"==typeof e.run)}}n.Runnable=r},{}],20:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.TreeLinkerIterator=void 0;var r=e("../services/parseTreeNext");n.TreeLinkerIterator=class{constructor(e,t){this.current=e,this.boundaryParent=t}next(e){const t={value:this.current,done:!this.current};return this.current=(0,r.parseTreeNext)(this.current,this.boundaryParent),t}}},{"../services/parseTreeNext":23}],21:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.recipes=void 0;var r=e("./ArrayIterator"),i=e("./Runnable");n.recipes={ArrayIterator:r.ArrayIterator,Runnable:i.Runnable}},{"./ArrayIterator":16,"./Runnable":19}],22:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.parseTree=void 0;var r=e("./parseTreeNext");n.parseTree=(e,t)=>{let n=0,i=e.rootParent;for(;null!==i;)t(i,n,e),i=(0,r.parseTreeNext)(i),++n;return e}},{"./parseTreeNext":23}],23:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.parseTreeNext=void 0;n.parseTreeNext=(e,t)=>{if(!e)return null;if(e.children&&e.children.length)return e.children.first;if(e.next)return e.next;let n=e.parent;for(;n&&n!==t;){if(n.next)return n.next;n=n.parent}return null}},{}],24:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.services=void 0;var r=e("./parseTree"),i=e("./parseTreeNext");n.services={parseTree:r.parseTree,parseTreeNext:i.parseTreeNext}},{"./parseTree":22,"./parseTreeNext":23}],25:[function(e,t,n){"use strict";var r=e("../internals/is-callable"),i=e("../internals/try-to-string"),s=TypeError;t.exports=function(e){if(r(e))return e;throw new s(i(e)+" is not a function")}},{"../internals/is-callable":69,"../internals/try-to-string":112}],26:[function(e,t,n){"use strict";var r=e("../internals/object-is-prototype-of"),i=TypeError;t.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},{"../internals/object-is-prototype-of":94}],27:[function(e,t,n){"use strict";var r=e("../internals/is-object"),i=String,s=TypeError;t.exports=function(e){if(r(e))return e;throw new s(i(e)+" is not an object")}},{"../internals/is-object":72}],28:[function(e,t,n){"use strict";var r=e("../internals/to-indexed-object"),i=e("../internals/to-absolute-index"),s=e("../internals/length-of-array-like"),o=function(e){return function(t,n,o){var l=r(t),a=s(l);if(0===a)return!e&&-1;var u,c=i(o,a);if(e&&n!=n){for(;a>c;)if((u=l[c++])!=u)return!0}else for(;a>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},{"../internals/length-of-array-like":84,"../internals/to-absolute-index":105,"../internals/to-indexed-object":106}],29:[function(e,t,n){"use strict";var r=e("../internals/an-object"),i=e("../internals/iterator-close");t.exports=function(e,t,n,s){try{return s?t(r(n)[0],n[1]):t(n)}catch(t){i(e,"throw",t)}}},{"../internals/an-object":27,"../internals/iterator-close":78}],30:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=r({}.toString),s=r("".slice);t.exports=function(e){return s(i(e),8,-1)}},{"../internals/function-uncurry-this":54}],31:[function(e,t,n){"use strict";var r=e("../internals/has-own-property"),i=e("../internals/own-keys"),s=e("../internals/object-get-own-property-descriptor"),o=e("../internals/object-define-property");t.exports=function(e,t,n){for(var l=i(t),a=o.f,u=s.f,c=0;c<l.length;c++){var f=l[c];r(e,f)||n&&r(n,f)||a(e,f,u(t,f))}}},{"../internals/has-own-property":61,"../internals/object-define-property":89,"../internals/object-get-own-property-descriptor":90,"../internals/own-keys":99}],32:[function(e,t,n){"use strict";var r=e("../internals/fails");t.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},{"../internals/fails":47}],33:[function(e,t,n){"use strict";t.exports=function(e,t){return{value:e,done:t}}},{}],34:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/object-define-property"),s=e("../internals/create-property-descriptor");t.exports=r?function(e,t,n){return i.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e}},{"../internals/create-property-descriptor":35,"../internals/descriptors":41,"../internals/object-define-property":89}],35:[function(e,t,n){"use strict";t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],36:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/object-define-property"),s=e("../internals/create-property-descriptor");t.exports=function(e,t,n){r?i.f(e,t,s(0,n)):e[t]=n}},{"../internals/create-property-descriptor":35,"../internals/descriptors":41,"../internals/object-define-property":89}],37:[function(e,t,n){"use strict";var r=e("../internals/make-built-in"),i=e("../internals/object-define-property");t.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},{"../internals/make-built-in":85,"../internals/object-define-property":89}],38:[function(e,t,n){"use strict";var r=e("../internals/is-callable"),i=e("../internals/object-define-property"),s=e("../internals/make-built-in"),o=e("../internals/define-global-property");t.exports=function(e,t,n,l){l||(l={});var a=l.enumerable,u=void 0!==l.name?l.name:t;if(r(n)&&s(n,u,l),l.global)a?e[t]=n:o(t,n);else{try{l.unsafe?e[t]&&(a=!0):delete e[t]}catch(e){}a?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return e}},{"../internals/define-global-property":40,"../internals/is-callable":69,"../internals/make-built-in":85,"../internals/object-define-property":89}],39:[function(e,t,n){"use strict";var r=e("../internals/define-built-in");t.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},{"../internals/define-built-in":38}],40:[function(e,t,n){"use strict";var r=e("../internals/global-this"),i=Object.defineProperty;t.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},{"../internals/global-this":60}],41:[function(e,t,n){"use strict";var r=e("../internals/fails");t.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},{"../internals/fails":47}],42:[function(e,t,n){"use strict";var r=e("../internals/global-this"),i=e("../internals/is-object"),s=r.document,o=i(s)&&i(s.createElement);t.exports=function(e){return o?s.createElement(e):{}}},{"../internals/global-this":60,"../internals/is-object":72}],43:[function(e,t,n){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],44:[function(e,t,n){"use strict";var r=e("../internals/global-this").navigator,i=r&&r.userAgent;t.exports=i?String(i):""},{"../internals/global-this":60}],45:[function(e,t,n){"use strict";var r,i,s=e("../internals/global-this"),o=e("../internals/environment-user-agent"),l=s.process,a=s.Deno,u=l&&l.versions||a&&a.version,c=u&&u.v8;c&&(i=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},{"../internals/environment-user-agent":44,"../internals/global-this":60}],46:[function(e,t,n){"use strict";var r=e("../internals/global-this"),i=e("../internals/object-get-own-property-descriptor").f,s=e("../internals/create-non-enumerable-property"),o=e("../internals/define-built-in"),l=e("../internals/define-global-property"),a=e("../internals/copy-constructor-properties"),u=e("../internals/is-forced");t.exports=function(e,t){var n,c,f,h,p,d=e.target,y=e.global,b=e.stat;if(n=y?r:b?r[d]||l(d,{}):r[d]&&r[d].prototype)for(c in t){if(h=t[c],f=e.dontCallGetSet?(p=i(n,c))&&p.value:n[c],!u(y?c:d+(b?".":"#")+c,e.forced)&&void 0!==f){if(typeof h==typeof f)continue;a(h,f)}(e.sham||f&&f.sham)&&s(h,"sham",!0),o(n,c,h,e)}}},{"../internals/copy-constructor-properties":31,"../internals/create-non-enumerable-property":34,"../internals/define-built-in":38,"../internals/define-global-property":40,"../internals/global-this":60,"../internals/is-forced":70,"../internals/object-get-own-property-descriptor":90}],47:[function(e,t,n){"use strict";t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],48:[function(e,t,n){"use strict";var r=e("../internals/function-bind-native"),i=Function.prototype,s=i.apply,o=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(s):function(){return o.apply(s,arguments)})},{"../internals/function-bind-native":50}],49:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this-clause"),i=e("../internals/a-callable"),s=e("../internals/function-bind-native"),o=r(r.bind);t.exports=function(e,t){return i(e),void 0===t?e:s?o(e,t):function(){return e.apply(t,arguments)}}},{"../internals/a-callable":25,"../internals/function-bind-native":50,"../internals/function-uncurry-this-clause":53}],50:[function(e,t,n){"use strict";var r=e("../internals/fails");t.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},{"../internals/fails":47}],51:[function(e,t,n){"use strict";var r=e("../internals/function-bind-native"),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},{"../internals/function-bind-native":50}],52:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/has-own-property"),s=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,l=i(s,"name"),a=l&&"something"===function(){}.name,u=l&&(!r||r&&o(s,"name").configurable);t.exports={EXISTS:l,PROPER:a,CONFIGURABLE:u}},{"../internals/descriptors":41,"../internals/has-own-property":61}],53:[function(e,t,n){"use strict";var r=e("../internals/classof-raw"),i=e("../internals/function-uncurry-this");t.exports=function(e){if("Function"===r(e))return i(e)}},{"../internals/classof-raw":30,"../internals/function-uncurry-this":54}],54:[function(e,t,n){"use strict";var r=e("../internals/function-bind-native"),i=Function.prototype,s=i.call,o=r&&i.bind.bind(s,s);t.exports=r?o:function(e){return function(){return s.apply(e,arguments)}}},{"../internals/function-bind-native":50}],55:[function(e,t,n){"use strict";var r=e("../internals/global-this"),i=e("../internals/is-callable");t.exports=function(e,t){return arguments.length<2?(n=r[e],i(n)?n:void 0):r[e]&&r[e][t];var n}},{"../internals/global-this":60,"../internals/is-callable":69}],56:[function(e,t,n){"use strict";t.exports=function(e){return{iterator:e,next:e.next,done:!1}}},{}],57:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/is-callable"),s=e("../internals/an-object"),o=e("../internals/try-to-string"),l=e("../internals/get-iterator-method-internal"),a=TypeError;t.exports=function(e,t){var n=arguments.length<2?l(e):t;if(i(n))return s(r(n,e));throw new a(o(e)+" is not iterable")}},{"../internals/an-object":27,"../internals/function-call":51,"../internals/get-iterator-method-internal":58,"../internals/is-callable":69,"../internals/try-to-string":112}],58:[function(e,t,n){"use strict";var r=e("../internals/classof-raw"),i=e("../internals/is-null-or-undefined"),s=e("../internals/get-method"),o=e("../internals/well-known-symbol")("iterator"),l=Array.prototype;t.exports=function(e){if(!i(e))return s(e,o)||s(e,"@@iterator")||("Arguments"===r(e)?l[o]:void 0)}},{"../internals/classof-raw":30,"../internals/get-method":59,"../internals/is-null-or-undefined":71,"../internals/well-known-symbol":117}],59:[function(e,t,n){"use strict";var r=e("../internals/a-callable"),i=e("../internals/is-null-or-undefined");t.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},{"../internals/a-callable":25,"../internals/is-null-or-undefined":71}],60:[function(e,t,n){(function(e){(function(){"use strict";var n=function(e){return e&&e.Math===Math&&e};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],61:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/to-object"),s=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return s(i(e),t)}},{"../internals/function-uncurry-this":54,"../internals/to-object":109}],62:[function(e,t,n){"use strict";t.exports={}},{}],63:[function(e,t,n){"use strict";var r=e("../internals/get-built-in");t.exports=r("document","documentElement")},{"../internals/get-built-in":55}],64:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/fails"),s=e("../internals/document-create-element");t.exports=!r&&!i((function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},{"../internals/descriptors":41,"../internals/document-create-element":42,"../internals/fails":47}],65:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/fails"),s=e("../internals/classof-raw"),o=Object,l=r("".split);t.exports=i((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===s(e)?l(e,""):o(e)}:o},{"../internals/classof-raw":30,"../internals/fails":47,"../internals/function-uncurry-this":54}],66:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/is-callable"),s=e("../internals/shared-store"),o=r(Function.toString);i(s.inspectSource)||(s.inspectSource=function(e){return o(e)}),t.exports=s.inspectSource},{"../internals/function-uncurry-this":54,"../internals/is-callable":69,"../internals/shared-store":102}],67:[function(e,t,n){"use strict";var r,i,s,o=e("../internals/weak-map-basic-detection"),l=e("../internals/global-this"),a=e("../internals/is-object"),u=e("../internals/create-non-enumerable-property"),c=e("../internals/has-own-property"),f=e("../internals/shared-store"),h=e("../internals/shared-key"),p=e("../internals/hidden-keys"),d="Object already initialized",y=l.TypeError,b=l.WeakMap;if(o||f.state){var v=f.state||(f.state=new b);v.get=v.get,v.has=v.has,v.set=v.set,r=function(e,t){if(v.has(e))throw new y(d);return t.facade=e,v.set(e,t),t},i=function(e){return v.get(e)||{}},s=function(e){return v.has(e)}}else{var k=h("state");p[k]=!0,r=function(e,t){if(c(e,k))throw new y(d);return t.facade=e,u(e,k,t),t},i=function(e){return c(e,k)?e[k]:{}},s=function(e){return c(e,k)}}t.exports={set:r,get:i,has:s,enforce:function(e){return s(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!a(t)||(n=i(t)).type!==e)throw new y("Incompatible receiver, "+e+" required");return n}}}},{"../internals/create-non-enumerable-property":34,"../internals/global-this":60,"../internals/has-own-property":61,"../internals/hidden-keys":62,"../internals/is-object":72,"../internals/shared-key":101,"../internals/shared-store":102,"../internals/weak-map-basic-detection":116}],68:[function(e,t,n){"use strict";var r=e("../internals/well-known-symbol"),i=e("../internals/iterators"),s=r("iterator"),o=Array.prototype;t.exports=function(e){return void 0!==e&&(i.Array===e||o[s]===e)}},{"../internals/iterators":83,"../internals/well-known-symbol":117}],69:[function(e,t,n){"use strict";var r="object"==typeof document&&document.all;t.exports=void 0===r&&void 0!==r?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},{}],70:[function(e,t,n){"use strict";var r=e("../internals/fails"),i=e("../internals/is-callable"),s=/#|\.prototype\./,o=function(e,t){var n=a[l(e)];return n===c||n!==u&&(i(t)?r(t):!!t)},l=o.normalize=function(e){return String(e).replace(s,".").toLowerCase()},a=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";t.exports=o},{"../internals/fails":47,"../internals/is-callable":69}],71:[function(e,t,n){"use strict";t.exports=function(e){return null==e}},{}],72:[function(e,t,n){"use strict";var r=e("../internals/is-callable");t.exports=function(e){return"object"==typeof e?null!==e:r(e)}},{"../internals/is-callable":69}],73:[function(e,t,n){"use strict";t.exports=!1},{}],74:[function(e,t,n){"use strict";var r=e("../internals/get-built-in"),i=e("../internals/is-callable"),s=e("../internals/object-is-prototype-of"),o=e("../internals/use-symbol-as-uid"),l=Object;t.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&s(t.prototype,l(e))}},{"../internals/get-built-in":55,"../internals/is-callable":69,"../internals/object-is-prototype-of":94,"../internals/use-symbol-as-uid":114}],75:[function(e,t,n){"use strict";var r=e("../internals/function-bind-context"),i=e("../internals/function-call"),s=e("../internals/an-object"),o=e("../internals/try-to-string"),l=e("../internals/is-array-iterator-method"),a=e("../internals/length-of-array-like"),u=e("../internals/object-is-prototype-of"),c=e("../internals/get-iterator-internal"),f=e("../internals/get-iterator-method-internal"),h=e("../internals/iterator-close"),p=TypeError,d=function(e,t){this.stopped=e,this.result=t},y=d.prototype;t.exports=function(e,t,n){var b,v,k,m,g,L,x,j=n&&n.that,w=!(!n||!n.AS_ENTRIES),O=!(!n||!n.IS_RECORD),T=!(!n||!n.IS_ITERATOR),C=!(!n||!n.INTERRUPTED),S=r(t,j),A=function(e){var t=b;return b=void 0,t&&h(t,"normal"),new d(!0,e)},P=function(e){return w?(s(e),C?S(e[0],e[1],A):S(e[0],e[1])):C?S(e,A):S(e)};if(O)b=e.iterator;else if(T)b=e;else{if(!(v=f(e)))throw new p(o(e)+" is not iterable");if(l(v)){for(k=0,m=a(e);m>k;k++)if((g=P(e[k]))&&u(y,g))return g;return new d(!1)}b=c(e,v)}for(L=O?e.next:b.next;!(x=i(L,b)).done;){var E=x.value;try{g=P(E)}catch(e){if(!b)throw e;h(b,"throw",e)}if("object"==typeof g&&g&&u(y,g))return g}return new d(!1)}},{"../internals/an-object":27,"../internals/function-bind-context":49,"../internals/function-call":51,"../internals/get-iterator-internal":57,"../internals/get-iterator-method-internal":58,"../internals/is-array-iterator-method":68,"../internals/iterator-close":78,"../internals/length-of-array-like":84,"../internals/object-is-prototype-of":94,"../internals/try-to-string":112}],76:[function(e,t,n){"use strict";t.exports=function(e){e.iterator=e.next=e.nextHandler=e.mapper=e.predicate=e.inner=e.iterables=e.iters=e.openIters=e.padding=e.finishResults=e.buffer=null}},{}],77:[function(e,t,n){"use strict";var r=e("../internals/iterator-close");t.exports=function(e,t,n){for(var i=e.length-1;i>=0;i--)if(void 0!==e[i])try{n=r(e[i].iterator,t,n)}catch(e){t="throw",n=e}if("throw"===t)throw n;return n}},{"../internals/iterator-close":78}],78:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/an-object"),s=e("../internals/get-method");t.exports=function(e,t,n){var o,l;i(e);try{if(!(o=s(e,"return"))){if("throw"===t)throw n;return n}o=r(o,e)}catch(e){l=!0,o=e}if("throw"===t)throw n;if(l)throw o;return i(o),n}},{"../internals/an-object":27,"../internals/function-call":51,"../internals/get-method":59}],79:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/object-create"),s=e("../internals/create-non-enumerable-property"),o=e("../internals/define-built-ins"),l=e("../internals/well-known-symbol"),a=e("../internals/internal-state"),u=e("../internals/get-method"),c=e("../internals/iterators-core").IteratorPrototype,f=e("../internals/create-iter-result-object"),h=e("../internals/iterator-close"),p=e("../internals/iterator-close-all"),d=e("../internals/iterator-cleanup-state"),y=l("toStringTag"),b="IteratorHelper",v="WrapForValidIterator",k="normal",m="throw",g=a.set,L=function(e){var t=a.getterFor(e?v:b);return o(i(c),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return f(void 0,!0);try{var r=n.nextHandler();return n.done&&d(n),n.returnHandlerResult?r:f(r,n.done)}catch(e){throw n.done=!0,d(n),e}},return:function(){var n=t(this),i=n.iterator,s=n.inner,o=n.openIters,l=n.done;if(n.done=!0,e){var a=u(i,"return");return a?r(a,i):f(void 0,!0)}if(d(n),l)return f(void 0,!0);if(s)try{h(s.iterator,k)}catch(e){return h(i,m,e)}if(o)try{p(o,k)}catch(e){if(i)return h(i,m,e);throw e}return i&&h(i,k),f(void 0,!0)}})},x=L(!0),j=L(!1);s(j,y,"Iterator Helper"),t.exports=function(e,t,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?v:b,i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,g(this,i)};return r.prototype=t?x:j,r}},{"../internals/create-iter-result-object":33,"../internals/create-non-enumerable-property":34,"../internals/define-built-ins":39,"../internals/function-call":51,"../internals/get-method":59,"../internals/internal-state":67,"../internals/iterator-cleanup-state":76,"../internals/iterator-close":78,"../internals/iterator-close-all":77,"../internals/iterators-core":82,"../internals/object-create":87,"../internals/well-known-symbol":117}],80:[function(e,t,n){"use strict";t.exports=function(e,t){var n="function"==typeof Iterator&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch(e){return!0}}},{}],81:[function(e,t,n){"use strict";var r=e("../internals/global-this");t.exports=function(e,t){var n=r.Iterator,i=n&&n.prototype,s=i&&i[e],o=!1;if(s)try{s.call({next:function(){return{done:!0}},return:function(){o=!0}},-1)}catch(e){e instanceof t||(o=!1)}if(!o)return s}},{"../internals/global-this":60}],82:[function(e,t,n){"use strict";var r,i,s,o=e("../internals/fails"),l=e("../internals/is-callable"),a=e("../internals/is-object"),u=e("../internals/object-create"),c=e("../internals/object-get-prototype-of"),f=e("../internals/define-built-in"),h=e("../internals/well-known-symbol"),p=e("../internals/is-pure"),d=h("iterator"),y=!1;[].keys&&("next"in(s=[].keys())?(i=c(c(s)))!==Object.prototype&&(r=i):y=!0),!a(r)||o((function(){var e={};return r[d].call(e)!==e}))?r={}:p&&(r=u(r)),l(r[d])||f(r,d,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:y}},{"../internals/define-built-in":38,"../internals/fails":47,"../internals/is-callable":69,"../internals/is-object":72,"../internals/is-pure":73,"../internals/object-create":87,"../internals/object-get-prototype-of":93,"../internals/well-known-symbol":117}],83:[function(e,t,n){"use strict";t.exports=Object.create?Object.create(null):{}},{}],84:[function(e,t,n){"use strict";var r=e("../internals/to-length");t.exports=function(e){return r(e.length)}},{"../internals/to-length":108}],85:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/fails"),s=e("../internals/is-callable"),o=e("../internals/has-own-property"),l=e("../internals/descriptors"),a=e("../internals/function-name").CONFIGURABLE,u=e("../internals/inspect-source"),c=e("../internals/internal-state"),f=c.enforce,h=c.get,p=String,d=Object.defineProperty,y=r("".slice),b=r("".replace),v=r([].join),k=l&&!i((function(){return 8!==d((function(){}),"length",{value:8}).length})),m=String(String).split("String"),g=t.exports=function(e,t,n){"Symbol("===y(p(t),0,7)&&(t="["+b(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||a&&e.name!==t)&&(l?d(e,"name",{value:t,configurable:!0}):e.name=t),k&&n&&o(n,"arity")&&e.length!==n.arity&&d(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?l&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=f(e);return o(r,"source")||(r.source=v(m,"string"==typeof t?t:"")),e};Function.prototype.toString=g((function(){return s(this)&&h(this).source||u(this)}),"toString")},{"../internals/descriptors":41,"../internals/fails":47,"../internals/function-name":52,"../internals/function-uncurry-this":54,"../internals/has-own-property":61,"../internals/inspect-source":66,"../internals/internal-state":67,"../internals/is-callable":69}],86:[function(e,t,n){"use strict";var r=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?i:r)(t)}},{}],87:[function(e,t,n){"use strict";var r,i=e("../internals/an-object"),s=e("../internals/object-define-properties"),o=e("../internals/enum-bug-keys"),l=e("../internals/hidden-keys"),a=e("../internals/html"),u=e("../internals/document-create-element"),c=e("../internals/shared-key"),f="prototype",h="script",p=c("IE_PROTO"),d=function(){},y=function(e){return"<"+h+">"+e+"</"+h+">"},b=function(e){e.write(y("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;v="undefined"!=typeof document?document.domain&&r?b(r):(t=u("iframe"),n="java"+h+":",t.style.display="none",a.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(y("document.F=Object")),e.close(),e.F):b(r);for(var i=o.length;i--;)delete v[f][o[i]];return v()};l[p]=!0,t.exports=Object.create||function(e,t){var n;return null!==e?(d[f]=i(e),n=new d,d[f]=null,n[p]=e):n=v(),void 0===t?n:s.f(n,t)}},{"../internals/an-object":27,"../internals/document-create-element":42,"../internals/enum-bug-keys":43,"../internals/hidden-keys":62,"../internals/html":63,"../internals/object-define-properties":88,"../internals/shared-key":101}],88:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/v8-prototype-define-bug"),s=e("../internals/object-define-property"),o=e("../internals/an-object"),l=e("../internals/to-indexed-object"),a=e("../internals/object-keys");n.f=r&&!i?Object.defineProperties:function(e,t){o(e);for(var n,r=l(t),i=a(t),u=i.length,c=0;u>c;)s.f(e,n=i[c++],r[n]);return e}},{"../internals/an-object":27,"../internals/descriptors":41,"../internals/object-define-property":89,"../internals/object-keys":96,"../internals/to-indexed-object":106,"../internals/v8-prototype-define-bug":115}],89:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/ie8-dom-define"),s=e("../internals/v8-prototype-define-bug"),o=e("../internals/an-object"),l=e("../internals/to-property-key"),a=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",p="writable";n.f=r?s?function(e,t,n){if(o(e),t=l(t),o(n),"function"==typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var r=c(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:f in n?n[f]:r[f],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(o(e),t=l(t),o(n),i)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new a("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},{"../internals/an-object":27,"../internals/descriptors":41,"../internals/ie8-dom-define":64,"../internals/to-property-key":111,"../internals/v8-prototype-define-bug":115}],90:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/function-call"),s=e("../internals/object-property-is-enumerable"),o=e("../internals/create-property-descriptor"),l=e("../internals/to-indexed-object"),a=e("../internals/to-property-key"),u=e("../internals/has-own-property"),c=e("../internals/ie8-dom-define"),f=Object.getOwnPropertyDescriptor;n.f=r?f:function(e,t){if(e=l(e),t=a(t),c)try{return f(e,t)}catch(e){}if(u(e,t))return o(!i(s.f,e,t),e[t])}},{"../internals/create-property-descriptor":35,"../internals/descriptors":41,"../internals/function-call":51,"../internals/has-own-property":61,"../internals/ie8-dom-define":64,"../internals/object-property-is-enumerable":97,"../internals/to-indexed-object":106,"../internals/to-property-key":111}],91:[function(e,t,n){"use strict";var r=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},{"../internals/enum-bug-keys":43,"../internals/object-keys-internal":95}],92:[function(e,t,n){"use strict";n.f=Object.getOwnPropertySymbols},{}],93:[function(e,t,n){"use strict";var r=e("../internals/has-own-property"),i=e("../internals/is-callable"),s=e("../internals/to-object"),o=e("../internals/shared-key"),l=e("../internals/correct-prototype-getter"),a=o("IE_PROTO"),u=Object,c=u.prototype;t.exports=l?u.getPrototypeOf:function(e){var t=s(e);if(r(t,a))return t[a];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},{"../internals/correct-prototype-getter":32,"../internals/has-own-property":61,"../internals/is-callable":69,"../internals/shared-key":101,"../internals/to-object":109}],94:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this");t.exports=r({}.isPrototypeOf)},{"../internals/function-uncurry-this":54}],95:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/has-own-property"),s=e("../internals/to-indexed-object"),o=e("../internals/array-includes").indexOf,l=e("../internals/hidden-keys"),a=r([].push);t.exports=function(e,t){var n,r=s(e),u=0,c=[];for(n in r)!i(l,n)&&i(r,n)&&a(c,n);for(;t.length>u;)i(r,n=t[u++])&&(~o(c,n)||a(c,n));return c}},{"../internals/array-includes":28,"../internals/function-uncurry-this":54,"../internals/has-own-property":61,"../internals/hidden-keys":62,"../internals/to-indexed-object":106}],96:[function(e,t,n){"use strict";var r=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys");t.exports=Object.keys||function(e){return r(e,i)}},{"../internals/enum-bug-keys":43,"../internals/object-keys-internal":95}],97:[function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,s=i&&!r.call({1:2},1);n.f=s?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},{}],98:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/is-callable"),s=e("../internals/is-object"),o=TypeError;t.exports=function(e,t){var n,l;if("string"===t&&i(n=e.toString)&&!s(l=r(n,e)))return l;if(i(n=e.valueOf)&&!s(l=r(n,e)))return l;if("string"!==t&&i(n=e.toString)&&!s(l=r(n,e)))return l;throw new o("Can't convert object to primitive value")}},{"../internals/function-call":51,"../internals/is-callable":69,"../internals/is-object":72}],99:[function(e,t,n){"use strict";var r=e("../internals/get-built-in"),i=e("../internals/function-uncurry-this"),s=e("../internals/object-get-own-property-names"),o=e("../internals/object-get-own-property-symbols"),l=e("../internals/an-object"),a=i([].concat);t.exports=r("Reflect","ownKeys")||function(e){var t=s.f(l(e)),n=o.f;return n?a(t,n(e)):t}},{"../internals/an-object":27,"../internals/function-uncurry-this":54,"../internals/get-built-in":55,"../internals/object-get-own-property-names":91,"../internals/object-get-own-property-symbols":92}],100:[function(e,t,n){"use strict";var r=e("../internals/is-null-or-undefined"),i=TypeError;t.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},{"../internals/is-null-or-undefined":71}],101:[function(e,t,n){"use strict";var r=e("../internals/shared"),i=e("../internals/uid"),s=r("keys");t.exports=function(e){return s[e]||(s[e]=i(e))}},{"../internals/shared":103,"../internals/uid":113}],102:[function(e,t,n){"use strict";var r=e("../internals/is-pure"),i=e("../internals/global-this"),s=e("../internals/define-global-property"),o="__core-js_shared__",l=t.exports=i[o]||s(o,{});(l.versions||(l.versions=[])).push({version:"3.50.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/define-global-property":40,"../internals/global-this":60,"../internals/is-pure":73}],103:[function(e,t,n){"use strict";var r=e("../internals/shared-store"),i=Object.create||Object;t.exports=function(e,t){return r[e]||(r[e]=t||i(null))}},{"../internals/shared-store":102}],104:[function(e,t,n){"use strict";var r=e("../internals/environment-v8-version"),i=e("../internals/fails"),s=e("../internals/global-this").String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},{"../internals/environment-v8-version":45,"../internals/fails":47,"../internals/global-this":60}],105:[function(e,t,n){"use strict";var r=e("../internals/to-integer-or-infinity"),i=Math.max,s=Math.min;t.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):s(n,t)}},{"../internals/to-integer-or-infinity":107}],106:[function(e,t,n){"use strict";var r=e("../internals/indexed-object"),i=e("../internals/require-object-coercible");t.exports=function(e){return r(i(e))}},{"../internals/indexed-object":65,"../internals/require-object-coercible":100}],107:[function(e,t,n){"use strict";var r=e("../internals/math-trunc");t.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},{"../internals/math-trunc":86}],108:[function(e,t,n){"use strict";var r=e("../internals/to-integer-or-infinity"),i=Math.min;t.exports=function(e){var t=r(e);return t>0?i(t,9007199254740991):0}},{"../internals/to-integer-or-infinity":107}],109:[function(e,t,n){"use strict";var r=e("../internals/require-object-coercible"),i=Object;t.exports=function(e){return i(r(e))}},{"../internals/require-object-coercible":100}],110:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/is-object"),s=e("../internals/is-symbol"),o=e("../internals/get-method"),l=e("../internals/ordinary-to-primitive"),a=e("../internals/well-known-symbol"),u=TypeError,c=a("toPrimitive");t.exports=function(e,t){if(!i(e)||s(e))return e;var n,a=o(e,c);if(a){if(void 0===t&&(t="default"),n=r(a,e,t),!i(n)||s(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),l(e,t)}},{"../internals/function-call":51,"../internals/get-method":59,"../internals/is-object":72,"../internals/is-symbol":74,"../internals/ordinary-to-primitive":98,"../internals/well-known-symbol":117}],111:[function(e,t,n){"use strict";var r=e("../internals/to-primitive"),i=e("../internals/is-symbol");t.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},{"../internals/is-symbol":74,"../internals/to-primitive":110}],112:[function(e,t,n){"use strict";var r=String;t.exports=function(e){try{return r(e)}catch(e){return"Object"}}},{}],113:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=0,s=Math.random(),o=r(1.1.toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++i+s,36)}},{"../internals/function-uncurry-this":54}],114:[function(e,t,n){"use strict";var r=e("../internals/symbol-constructor-detection");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},{"../internals/symbol-constructor-detection":104}],115:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/fails");t.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},{"../internals/descriptors":41,"../internals/fails":47}],116:[function(e,t,n){"use strict";var r=e("../internals/global-this"),i=e("../internals/is-callable"),s=r.WeakMap;t.exports=i(s)&&/native code/.test(String(s))},{"../internals/global-this":60,"../internals/is-callable":69}],117:[function(e,t,n){"use strict";var r=e("../internals/global-this"),i=e("../internals/shared"),s=e("../internals/has-own-property"),o=e("../internals/uid"),l=e("../internals/symbol-constructor-detection"),a=e("../internals/use-symbol-as-uid"),u=r.Symbol,c=i("wks"),f=a?u.for||u:u&&u.withoutSetter||o;t.exports=function(e){return s(c,e)||(c[e]=l&&s(u,e)?u[e]:f("Symbol."+e)),c[e]}},{"../internals/global-this":60,"../internals/has-own-property":61,"../internals/shared":103,"../internals/symbol-constructor-detection":104,"../internals/uid":113,"../internals/use-symbol-as-uid":114}],118:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/global-this"),s=e("../internals/an-instance"),o=e("../internals/an-object"),l=e("../internals/is-callable"),a=e("../internals/object-get-prototype-of"),u=e("../internals/define-built-in-accessor"),c=e("../internals/create-property"),f=e("../internals/fails"),h=e("../internals/has-own-property"),p=e("../internals/well-known-symbol"),d=e("../internals/iterators-core").IteratorPrototype,y=e("../internals/descriptors"),b=e("../internals/is-pure"),v="constructor",k="Iterator",m=p("toStringTag"),g=TypeError,L=i[k],x=b||!l(L)||L.prototype!==d||!f((function(){L({})})),j=function(){if(s(this,d),a(this)===d)throw new g("Abstract class Iterator not directly constructable")},w=function(e,t){y?u(d,e,{configurable:!0,get:function(){return t},set:function(t){if(o(this),this===d)throw new g("You can't redefine this property");h(this,e)?this[e]=t:c(this,e,t)}}):d[e]=t};h(d,m)||w(m,k),!x&&h(d,v)&&d[v]!==Object||w(v,j),j.prototype=d,r({global:!0,constructor:!0,forced:x},{Iterator:j})},{"../internals/an-instance":26,"../internals/an-object":27,"../internals/create-property":36,"../internals/define-built-in-accessor":37,"../internals/descriptors":41,"../internals/export":46,"../internals/fails":47,"../internals/global-this":60,"../internals/has-own-property":61,"../internals/is-callable":69,"../internals/is-pure":73,"../internals/iterators-core":82,"../internals/object-get-prototype-of":93,"../internals/well-known-symbol":117}],119:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-call"),s=e("../internals/iterate"),o=e("../internals/a-callable"),l=e("../internals/an-object"),a=e("../internals/get-iterator-direct"),u=e("../internals/iterator-close"),c=e("../internals/iterator-helper-without-closing-on-early-error")("forEach",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:c},{forEach:function(e){l(this);try{o(e)}catch(e){u(this,"throw",e)}if(c)return i(c,this,e);var t=a(this),n=0;s(t,(function(t){e(t,n++)}),{IS_RECORD:!0})}})},{"../internals/a-callable":25,"../internals/an-object":27,"../internals/export":46,"../internals/function-call":51,"../internals/get-iterator-direct":56,"../internals/iterate":75,"../internals/iterator-close":78,"../internals/iterator-helper-without-closing-on-early-error":81}],120:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-call"),s=e("../internals/a-callable"),o=e("../internals/an-object"),l=e("../internals/get-iterator-direct"),a=e("../internals/iterator-create-proxy"),u=e("../internals/call-with-safe-iteration-closing"),c=e("../internals/iterator-close"),f=e("../internals/iterator-helper-throws-on-invalid-iterator"),h=e("../internals/iterator-helper-without-closing-on-early-error"),p=e("../internals/is-pure"),d=!p&&!f("map",(function(){})),y=!p&&!d&&h("map",TypeError),b=p||d||y,v=a((function(){var e=this.iterator,t=o(i(this.next,e));if(!(this.done=!!t.done))return u(e,this.mapper,[t.value,this.counter++],!0)}));r({target:"Iterator",proto:!0,real:!0,forced:b},{map:function(e){o(this);try{s(e)}catch(e){c(this,"throw",e)}return y?i(y,this,e):new v(l(this),{mapper:e})}})},{"../internals/a-callable":25,"../internals/an-object":27,"../internals/call-with-safe-iteration-closing":29,"../internals/export":46,"../internals/function-call":51,"../internals/get-iterator-direct":56,"../internals/is-pure":73,"../internals/iterator-close":78,"../internals/iterator-create-proxy":79,"../internals/iterator-helper-throws-on-invalid-iterator":80,"../internals/iterator-helper-without-closing-on-early-error":81}],121:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/iterate"),s=e("../internals/a-callable"),o=e("../internals/an-object"),l=e("../internals/get-iterator-direct"),a=e("../internals/iterator-close"),u=e("../internals/iterator-helper-without-closing-on-early-error"),c=e("../internals/function-apply"),f=e("../internals/fails"),h=TypeError,p=f((function(){[].keys().reduce((function(){}),void 0)})),d=!p&&u("reduce",h);r({target:"Iterator",proto:!0,real:!0,forced:p||d},{reduce:function(e){o(this);try{s(e)}catch(e){a(this,"throw",e)}var t=arguments.length<2,n=t?void 0:arguments[1];if(d)return c(d,this,t?[e]:[e,n]);var r=l(this),u=0;if(i(r,(function(r){t?(t=!1,n=r):n=e(n,r,u),u++}),{IS_RECORD:!0}),t)throw new h("Reduce of empty iterator with no initial value");return n}})},{"../internals/a-callable":25,"../internals/an-object":27,"../internals/export":46,"../internals/fails":47,"../internals/function-apply":48,"../internals/get-iterator-direct":56,"../internals/iterate":75,"../internals/iterator-close":78,"../internals/iterator-helper-without-closing-on-early-error":81}],122:[function(e,t,n){"use strict";e("../modules/es.iterator.constructor")},{"../modules/es.iterator.constructor":118}],123:[function(e,t,n){"use strict";e("../modules/es.iterator.for-each")},{"../modules/es.iterator.for-each":119}],124:[function(e,t,n){"use strict";e("../modules/es.iterator.map")},{"../modules/es.iterator.map":120}],125:[function(e,t,n){"use strict";e("../modules/es.iterator.reduce")},{"../modules/es.iterator.reduce":121}]},{},[15]);
|
|
1
|
+
!function e(t,n,r){function i(o,l){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!l&&a)return a(o,!0);if(s)return s(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[o]={exports:{}};t[o][0].call(c.exports,(function(e){return i(t[o][1][e]||e)}),c,c.exports,e,t,n,r)}return n[o].exports}for(var s="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ArrayElement=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.reduce.js");class r{constructor(e=null){this.classType=r,this.data=null,this.data=e}}n.ArrayElement=r,r.make=(e,t=r)=>null===e||"object"!=typeof e?new t(e):e.classType?e:new t(e),r.fromArray=(e=[],t=r)=>e.reduce(((e,n)=>{const r=t.make(n,t);return e.head.length?(e.head.push(r),e.tail=r,e):{head:[r],tail:r}}),{head:[],tail:null})},{"core-js/modules/esnext.iterator.constructor.js":122,"core-js/modules/esnext.iterator.reduce.js":125}],2:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Arrayable=void 0;const r=e("./ArrayElement"),i=e("../../recipes/ArrayIterator");class s{constructor(e=r.ArrayElement){this.classType=s,this.innerList=[],this.initialized=!1,this.elementClass=e}indexOfElement(e){const t=this.innerList.indexOf(e);if(t<0)throw new Error("The reference element is not in this list.");return t}initialize(e){return this.initialized?(console.warn("Attempt to initialize non-empty list."),this):(this.initialized=!0,this.innerList=e,this)}get list(){return this.innerList}get first(){return this.length?this.innerList[0]:null}get last(){return this.length?this.innerList[this.length-1]:null}get length(){return this.innerList.length}insertAfter(e,t){const n=null==e?-1:this.indexOfElement(e);return this.innerList.splice(n+1,0,this.elementClass.make(t,this.elementClass)),this}insertBefore(e,t){const n=null==e?this.length:this.indexOfElement(e);return this.innerList.splice(n,0,this.elementClass.make(t,this.elementClass)),this}append(e,t=this.last){return t===this.last?(this.innerList.push(this.elementClass.make(e,this.elementClass)),this):this.insertAfter(t,e)}prepend(e,t=this.first){return t===this.first?(this.innerList.unshift(this.elementClass.make(e,this.elementClass)),this):this.insertBefore(t,e)}remove(e){const t=this.innerList.indexOf(e);return t<0?null:(this.innerList.splice(t,1),e)}item(e){if(e>=this.length)return null;if(e>=0)return this.innerList[e];const t=this.length+e;return t<0?null:this.innerList[t]}forEach(e,t=this){for(let n=0;n<t.length;++n)e(t.item(n),n,t);return t}[Symbol.iterator](){return new i.ArrayIterator(this.innerList,0)}}n.Arrayable=s,s.fromArray=(e=[],t=r.ArrayElement,n=s)=>new n(t).initialize(t.fromArray(e).head)},{"../../recipes/ArrayIterator":16,"./ArrayElement":1}],3:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DoubleLinker=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.reduce.js");const r=e("../linked-list/Linker");class i{constructor({data:e=null,next:t=null,prev:n=null}={}){this.classType=i,this.data=null,this.next=null,this.prev=null,this.data=e,this.next=t,this.prev=n}}n.DoubleLinker=i,i.make=(e,t=i)=>r.Linker.make(e,t),i.fromArray=(e=[],t=i)=>e.reduce(((e,n)=>{const r=t.make(n,t);return null===e.head?{head:r,tail:r}:(r.prev=e.tail,e.tail.next=r,e.tail=r,e)}),{head:null,tail:null})},{"../linked-list/Linker":6,"core-js/modules/esnext.iterator.constructor.js":122,"core-js/modules/esnext.iterator.reduce.js":125}],4:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DoublyLinkedList=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.for-each.js");const r=e("./DoubleLinker"),i=e("../../recipes/DoubleLinkerIterator"),s=e("../linked-list/LinkedList");class o{constructor(e=r.DoubleLinker){this.classType=o,this.innerList=null,this.initialized=!1,this.tailCache=null,this.countCache=null,this.linkerClass=e}initialize(e){return s.LinkedList.prototype.initialize.call(this,e)}get list(){return this.innerList}get first(){let e=this.innerList;if(null===e)return null;for(;null!==e.prev;)e=e.prev;return this.innerList=e,e}get last(){if(null===this.innerList)return null;let e=null!==this.tailCache?this.tailCache:this.innerList;for(;null!==e.next;)e=e.next;return this.tailCache=e,e}get length(){return null===this.countCache&&this.reset(),this.countCache}insertAfter(e,t){if(t=this.linkerClass.make(t,this.linkerClass),null==e){const e=this.first;t.prev=null,t.next=e,e?e.prev=t:this.tailCache=t,this.innerList=t}else t.next=e.next,t.prev=e,e.next=t,t.next?t.next.prev=t:this.tailCache=t;return null!==this.countCache&&++this.countCache,this}insertBefore(e,t){if(t=this.linkerClass.make(t,this.linkerClass),null==e){const e=this.last;t.next=null,t.prev=e,null===e?this.innerList=t:e.next=t,this.tailCache=t}else t.prev=e.prev,t.next=e,e.prev=t,t.prev?t.prev.next=t:this.innerList=t;return null!==this.countCache&&++this.countCache,this}append(e,t=this.last){return this.insertAfter(t,e)}prepend(e,t=this.first){return this.insertBefore(t,e)}remove(e){return null==e?null:(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),this.innerList===e&&(this.innerList=e.next||e.prev||null),this.tailCache===e&&(this.tailCache=e.prev),null===this.innerList&&(this.tailCache=null),null!==this.countCache&&--this.countCache,e)}reset(){let e=this.innerList;if(null===e)return this.countCache=0,this.tailCache=null,null;for(;null!==e.prev;)e=e.prev;this.innerList=e;let t=0,n=e,r=e;for(;null!==r;)++t,n=r,r=r.next;return this.countCache=t,this.tailCache=n,e}item(e){if(e>=0){let t=this.first,n=-1;for(;++n<e&&null!==t;)t=t.next;return n===e?t:null}let t=this.last,n=this.length;const r=this.length+e;if(r<0)return null;for(;--n>r&&null!==t;)t=t.prev;return n===r?t:null}forEach(e,t=this){return s.LinkedList.prototype.forEach.call(this,e,t)}[Symbol.iterator](){const e=this.first;return new i.DoubleLinkerIterator(e)}}n.DoublyLinkedList=o,o.fromArray=(e=[],t=r.DoubleLinker,n=o)=>s.LinkedList.fromArray(e,t,n)},{"../../recipes/DoubleLinkerIterator":17,"../linked-list/LinkedList":5,"./DoubleLinker":3,"core-js/modules/esnext.iterator.constructor.js":122,"core-js/modules/esnext.iterator.for-each.js":123}],5:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LinkedList=void 0;const r=e("./Linker"),i=e("../../recipes/LinkerIterator"),s=e("../arrayable/Arrayable");class o{constructor(e=r.Linker){this.classType=o,this.innerList=null,this.initialized=!1,this.tailCache=null,this.countCache=null,this.linkerClass=e}initialize(e){return s.Arrayable.prototype.initialize.call(this,e)}get list(){return this.innerList}get first(){return this.innerList}get last(){if(null===this.innerList)return null;let e=null!==this.tailCache?this.tailCache:this.innerList;for(;null!==e.next;)e=e.next;return this.tailCache=e,e}get length(){return null===this.countCache&&this.reset(),this.countCache}insertAfter(e,t){return t=this.linkerClass.make(t,this.linkerClass),null==e?(t.next=this.innerList,null===this.innerList&&(this.tailCache=t),this.innerList=t):(t.next=e.next,e.next=t,null===t.next&&(this.tailCache=t)),null!==this.countCache&&++this.countCache,this}insertBefore(e,t){if(t=this.linkerClass.make(t,this.linkerClass),null==e){const e=this.last;t.next=null,null===e?this.innerList=t:e.next=t,this.tailCache=t}else{let n=null,r=this.first;for(;null!==r&&r!==e;)n=r,r=r.next;if(null===r)throw new Error("The reference node is not in this list.");t.next=e,n?n.next=t:this.innerList=t}return null!==this.countCache&&++this.countCache,this}append(e,t=this.last){return this.insertAfter(t,e)}prepend(e,t=this.first){return this.insertBefore(t,e)}remove(e){if(null==e)return null;let t=null,n=this.first;for(;null!==n&&n!==e;)t=n,n=n.next;return null===n?null:(t?t.next=e.next:this.innerList=e.next,this.tailCache===e&&(this.tailCache=t),null===this.innerList&&(this.tailCache=null),null!==this.countCache&&--this.countCache,e)}reset(){let e=0,t=null,n=this.innerList;for(;null!==n;)++e,t=n,n=n.next;return this.countCache=e,this.tailCache=t,this.innerList}item(e){if(e>=0){let t=this.first,n=-1;for(;++n<e&&null!==t;)t=t.next;return n===e?t:null}let t=this.first,n=0;const r=this.length+e;if(r<0)return null;for(;n<r&&null!==t;)t=t.next,++n;return n===r?t:null}forEach(e,t=this){let n=0,r=t.first;for(;null!==r;)e(r,n,t),r=r.next,++n;return t}[Symbol.iterator](){return new i.LinkerIterator(this.first)}}n.LinkedList=o,o.fromArray=(e=[],t=r.Linker,n=o)=>new n(t).initialize(t.fromArray(e).head)},{"../../recipes/LinkerIterator":18,"../arrayable/Arrayable":2,"./Linker":6}],6:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Linker=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.reduce.js");const r=e("../arrayable/ArrayElement");class i{constructor({data:e=null,next:t=null}={}){this.classType=i,this.data=null,this.next=null,this.data=e,this.next=t}}n.Linker=i,i.make=(e,t=i)=>null===e||"object"!=typeof e?new t({data:e}):e.classType?e:("data"in e||(e={data:e}),r.ArrayElement.make(e,t)),i.fromArray=(e=[],t=i)=>e.reduce(((e,n)=>{const r=t.make(n,t);return null===e.head?{head:r,tail:r}:(e.tail.next=r,e.tail=r,e)}),{head:null,tail:null})},{"../arrayable/ArrayElement":1,"core-js/modules/esnext.iterator.constructor.js":122,"core-js/modules/esnext.iterator.reduce.js":125}],7:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LinkedTreeList=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.for-each.js");const r=e("./TreeLinker"),i=e("../../recipes/TreeLinkerIterator"),s=e("../doubly-linked-list/DoublyLinkedList"),o=(e,t)=>Object.getOwnPropertyDescriptor(s.DoublyLinkedList.prototype,e).get.call(t);class l{constructor(e=r.TreeLinker){this.classType=l,this.innerList=null,this.initialized=!1,this.tailCache=null,this.countCache=null,this.ownerNode=void 0,this.linkerClass=e}initialize(e){return this.initialized?(console.warn("Attempt to initialize LinkedTreeList which is not empty."),this):(this.initialized=!0,this.innerList=e,this)}get list(){return this.innerList}get first(){return o("first",this)}get last(){return o("last",this)}get length(){return o("length",this)}get parent(){if(void 0!==this.ownerNode)return this.ownerNode;const e=this.first;return null===e?null:e.parent}set parent(e){this.ownerNode=e;let t=this.first;for(;null!==t;)t.parent=e,t=t.next;e&&(e.children=this)}get rootParent(){let e=this.first;if(!e)return null;let t=this.first.parent;for(;null!==t;)e=t,t=e.parent;return e}setChildren(e,t=null){let n=!1;if(this.forEach((t=>{t===e&&(n=!0)})),!n)throw new Error("The item is not one of the linkers of this list.");null!=t?t.parent=e:e.children=null}adopt(e){const t=this.linkerClass.make(e,this.linkerClass);return t.parent=this.parent,t}insertAfter(e,t){return s.DoublyLinkedList.prototype.insertAfter.call(this,e,this.adopt(t))}insertBefore(e,t){return s.DoublyLinkedList.prototype.insertBefore.call(this,e,this.adopt(t))}append(e,t=this.last){return s.DoublyLinkedList.prototype.append.call(this,e,t)}prepend(e,t=this.first){return s.DoublyLinkedList.prototype.prepend.call(this,e,t)}remove(e){const t=this.parent,n=s.DoublyLinkedList.prototype.remove.call(this,e);return n&&n.parent===t&&(this.ownerNode=t,n.parent=null),n}reset(){return s.DoublyLinkedList.prototype.reset.call(this)}item(e){return s.DoublyLinkedList.prototype.item.call(this,e)}forEach(e,t=this){let n=0,r=t.first;for(;null!==r;)e(r,n,t),r=r.next,++n;return t}[Symbol.iterator](){return new i.TreeLinkerIterator(this.first,this.parent)}}n.LinkedTreeList=l,l.fromArray=(e=[],t=r.TreeLinker,n=l)=>new n(t).initialize(t.fromArray(e).head)},{"../../recipes/TreeLinkerIterator":20,"../doubly-linked-list/DoublyLinkedList":4,"./TreeLinker":8,"core-js/modules/esnext.iterator.constructor.js":122,"core-js/modules/esnext.iterator.for-each.js":123}],8:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.TreeLinker=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.map.js");const r=e("../doubly-linked-list/DoubleLinker"),i=e("./LinkedTreeList");class s{constructor({data:e=null,next:t=null,prev:n=null,children:r=null,parent:o=null,listClass:l=i.LinkedTreeList}={}){this.classType=s,this.data=null,this.next=null,this.prev=null,this.parent=null,this.children=null,this.data=e,this.next=t,this.prev=n,this.parent=o,this.children=this.childrenFromArray(r,l)}childrenFromArray(e=null,t=i.LinkedTreeList){if(null===e)return null;const n=e.map((e=>{const t=this.classType.make(e,this.classType);return t.parent=this,t})),r=t.fromArray(n,this.classType);return r.parent=this,r}}n.TreeLinker=s,s.make=(e,t=s)=>r.DoubleLinker.make(e,t),s.fromArray=(e=[],t=s)=>r.DoubleLinker.fromArray(e,t)},{"../doubly-linked-list/DoubleLinker":3,"./LinkedTreeList":7,"core-js/modules/esnext.iterator.constructor.js":122,"core-js/modules/esnext.iterator.map.js":124}],9:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Queue=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.for-each.js");const r=e("../linked-list/LinkedList"),i=e("../linked-list/Linker");class s{constructor(e=null,t=r.LinkedList,n=i.Linker){this.linkerClass=n,this.queuedList=null===e?new t(n):e}dequeue(){const e=this.queuedList.first;return null==e?null:(this.queuedList.remove(e),e.data)}empty(){return this.size()<=0}enqueue(e){return this.queuedList.append(new this.linkerClass({data:e})),this}peek(){const e=this.queuedList.first;return null==e?null:e.data}size(){return this.queuedList.length}[Symbol.iterator](){const e=this.queuedList[Symbol.iterator]();return{next:()=>{const t=e.next();return t.done?{done:!0,value:void 0}:{done:!1,value:t.value.data}}}}}n.Queue=s,s.fromArray=(e=[],t=r.LinkedList,n=i.Linker)=>{const o=new s(null,t,n);return e.forEach((e=>o.enqueue(e))),o}},{"../linked-list/LinkedList":5,"../linked-list/Linker":6,"core-js/modules/esnext.iterator.constructor.js":122,"core-js/modules/esnext.iterator.for-each.js":123}],10:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Queueable=void 0;const r=e("../linked-list/Linker");class i{constructor({task:e=null,next:t=null,ready:n=!1}={}){this.data=null,this.next=null,this.complete=!1,this.ready=!1,this.running=!1,this.classType=i,this.data=e,this.next=t,this.complete=!1,this.ready=n,this.running=!1}get isReady(){return"function"==typeof this.ready?this.ready():this.ready}get task(){return"function"==typeof this.data?this.data:e=>"function"==typeof e?e({context:this.data}).context:this.data}markCompleted({success:e=!0,error:t=!1,context:n=null}={}){return this.complete=!0,this.running=!1,{success:e,error:t,context:n}}run(){return this.isReady?this.running?{success:!1,error:"Queued task is already running, possible missing 'complete' callback",context:this.data}:(this.running=!0,this.task(this.markCompleted.bind(this))):{success:!1,error:"Task is not ready",context:this.data}}}n.Queueable=i,i.make=(e,t=i)=>null===e||"object"!=typeof e?new t({task:e,ready:!0}):e.classType?e:("task"in e||(e={task:e,ready:!0}),new t(e)),i.fromArray=(e=[],t=i)=>r.Linker.fromArray(e,t)},{"../linked-list/Linker":6}],11:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.TaskQueue=void 0;const r=e("./Queueable"),i=e("../linked-list/LinkedList");class s{constructor(e=null,t=i.LinkedList,n=r.Queueable){this.listClass=t,this.queueableClass=n,null===e&&(e=new t(n)),this.queuedList=e}dequeue(){let e=this.remove();for(;e&&e.complete;)e=this.remove();return e?e.running?{success:!1,error:"The queue has been blocked by an unfinished task.",context:e}:e.isReady?(this.empty()||this.enqueue(e),e.run.call(e)):(this.enqueue(e),{success:!1,error:"Unable to find ready task.",context:e}):{success:"No more queueable tasks in the queue",error:!1,context:this.queuedList}}empty(){return this.size()<=0}enqueue(e){this.queuedList.append(e)}peek(){return this.queuedList.first}remove(){return this.empty()?null:this.queuedList.remove(this.queuedList.first)}size(){return this.queuedList.length}}n.TaskQueue=s,s.fromArray=(e=[],t=r.Queueable,n=i.LinkedList)=>{const o=new n(t);return o.initialize(t.fromArray(e,t).head),new s(o,n,t)}},{"../linked-list/LinkedList":5,"./Queueable":10}],12:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Stack=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.for-each.js");const r=e("../linked-list/LinkedList"),i=e("../linked-list/Linker");class s{constructor(e=null,t=r.LinkedList,n=i.Linker){this.linkerClass=n,this.stackedList=null===e?new t(n):e}empty(){return this.size()<=0}peek(){const e=this.stackedList.first;return null==e?null:e.data}pop(){const e=this.stackedList.first;return null==e?null:(this.stackedList.remove(e),e.data)}push(e){return this.stackedList.prepend(new this.linkerClass({data:e})),this}size(){return this.stackedList.length}top(){return this.peek()}[Symbol.iterator](){const e=this.stackedList[Symbol.iterator]();return{next:()=>{const t=e.next();return t.done?{done:!0,value:void 0}:{done:!1,value:t.value.data}}}}}n.Stack=s,s.fromArray=(e=[],t=r.LinkedList,n=i.Linker)=>{const o=new s(null,t,n);return e.forEach((e=>o.push(e))),o}},{"../linked-list/LinkedList":5,"../linked-list/Linker":6,"core-js/modules/esnext.iterator.constructor.js":122,"core-js/modules/esnext.iterator.for-each.js":123}],13:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Stackable=void 0;const r=e("../linked-list/Linker");class i{constructor({task:e=null,next:t=null,ready:n=!1}={}){this.data=null,this.next=null,this.classType=i,this.data=e,this.next=t}get task(){return"function"==typeof this.data?this.data:()=>this.data}run(){return this.task()}}n.Stackable=i,i.make=(e,t=i)=>null===e||"object"!=typeof e?new t({task:e}):e.classType?e:("task"in e||(e={task:e}),new t(e)),i.fromArray=(e=[],t=i)=>r.Linker.fromArray(e,t)},{"../linked-list/Linker":6}],14:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.TaskStack=void 0;const r=e("./Stackable"),i=e("../linked-list/LinkedList");class s{constructor(e=null,t=i.LinkedList,n=r.Stackable){this.listClass=t,this.stackableClass=n,null===e&&(e=new t(n)),this.stackedList=e}empty(){return this.size()<=0}top(){return this.stackedList.first}pop(){const e=this.remove();return e?e.run():{success:"No more stackable tasks in the stack",error:!1,context:this.stackedList}}push(e){this.stackedList.prepend(e)}remove(){return this.empty()?null:this.stackedList.remove(this.stackedList.first)}size(){return this.stackedList.length}}n.TaskStack=s,s.fromArray=(e=[],t=r.Stackable,n=i.LinkedList)=>{const o=new n(t);return o.initialize(t.fromArray(e,t).head),new s(o,n,t)}},{"../linked-list/LinkedList":5,"./Stackable":13}],15:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"ArrayElement",{enumerable:!0,get:function(){return r.ArrayElement}}),Object.defineProperty(n,"Arrayable",{enumerable:!0,get:function(){return i.Arrayable}}),Object.defineProperty(n,"DoubleLinker",{enumerable:!0,get:function(){return s.DoubleLinker}}),Object.defineProperty(n,"DoublyLinkedList",{enumerable:!0,get:function(){return o.DoublyLinkedList}}),Object.defineProperty(n,"LinkedList",{enumerable:!0,get:function(){return a.LinkedList}}),Object.defineProperty(n,"LinkedTreeList",{enumerable:!0,get:function(){return c.LinkedTreeList}}),Object.defineProperty(n,"Linker",{enumerable:!0,get:function(){return l.Linker}}),Object.defineProperty(n,"Queue",{enumerable:!0,get:function(){return h.Queue}}),Object.defineProperty(n,"Queueable",{enumerable:!0,get:function(){return f.Queueable}}),Object.defineProperty(n,"Stack",{enumerable:!0,get:function(){return y.Stack}}),Object.defineProperty(n,"Stackable",{enumerable:!0,get:function(){return d.Stackable}}),Object.defineProperty(n,"TaskQueue",{enumerable:!0,get:function(){return p.TaskQueue}}),Object.defineProperty(n,"TaskStack",{enumerable:!0,get:function(){return b.TaskStack}}),Object.defineProperty(n,"TreeLinker",{enumerable:!0,get:function(){return u.TreeLinker}}),n.default=void 0,Object.defineProperty(n,"recipes",{enumerable:!0,get:function(){return k.recipes}}),Object.defineProperty(n,"services",{enumerable:!0,get:function(){return m.services}});var r=e("./collections/arrayable/ArrayElement"),i=e("./collections/arrayable/Arrayable"),s=e("./collections/doubly-linked-list/DoubleLinker"),o=e("./collections/doubly-linked-list/DoublyLinkedList"),l=e("./collections/linked-list/Linker"),a=e("./collections/linked-list/LinkedList"),u=e("./collections/linked-tree-list/TreeLinker"),c=e("./collections/linked-tree-list/LinkedTreeList"),f=e("./collections/queue/Queueable"),h=e("./collections/queue/Queue"),p=e("./collections/queue/TaskQueue"),d=e("./collections/stack/Stackable"),y=e("./collections/stack/Stack"),b=e("./collections/stack/TaskStack"),k=e("./recipes/recipes"),m=e("./services/services");const v={ArrayElement:r.ArrayElement,Arrayable:i.Arrayable,DoubleLinker:s.DoubleLinker,DoublyLinkedList:o.DoublyLinkedList,Linker:l.Linker,LinkedList:a.LinkedList,TreeLinker:u.TreeLinker,LinkedTreeList:c.LinkedTreeList,Queueable:f.Queueable,Queue:h.Queue,TaskQueue:p.TaskQueue,Stackable:d.Stackable,Stack:y.Stack,TaskStack:b.TaskStack,recipes:k.recipes,services:m.services};n.default=v;"undefined"!=typeof window&&(window.collectYourStuff=v)},{"./collections/arrayable/ArrayElement":1,"./collections/arrayable/Arrayable":2,"./collections/doubly-linked-list/DoubleLinker":3,"./collections/doubly-linked-list/DoublyLinkedList":4,"./collections/linked-list/LinkedList":5,"./collections/linked-list/Linker":6,"./collections/linked-tree-list/LinkedTreeList":7,"./collections/linked-tree-list/TreeLinker":8,"./collections/queue/Queue":9,"./collections/queue/Queueable":10,"./collections/queue/TaskQueue":11,"./collections/stack/Stack":12,"./collections/stack/Stackable":13,"./collections/stack/TaskStack":14,"./recipes/recipes":21,"./services/services":24}],16:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ArrayIterator=void 0;n.ArrayIterator=class{constructor(e,t=0){this.innerList=e,this.index=t}next(e){return this.index<this.innerList.length?{value:this.innerList[this.index++],done:!1}:{value:void 0,done:!0}}}},{}],17:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DoubleLinkerIterator=void 0;n.DoubleLinkerIterator=class{constructor(e){this.current=e}next(e){const t={value:this.current,done:!this.current};return this.current=this.current?this.current.next:null,t}}},{}],18:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LinkerIterator=void 0;n.LinkerIterator=class{constructor(e){this.current=e}next(e){const t={value:this.current,done:!this.current};return this.current=this.current?this.current.next:null,t}}},{}],19:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Runnable=void 0;class r{constructor(e=null){this.data=null,this.data=e}get task(){return"function"==typeof this.data?this.data:()=>this.data}run(){return this.task()}static isRunnable(e){return void 0===e?this instanceof r:"object"==typeof e&&("function"==typeof e.task&&"function"==typeof e.run)}}n.Runnable=r},{}],20:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.TreeLinkerIterator=void 0;const r=e("../services/parseTreeNext");n.TreeLinkerIterator=class{constructor(e,t){this.current=e,this.boundaryParent=t}next(e){const t={value:this.current,done:!this.current};return this.current=(0,r.parseTreeNext)(this.current,this.boundaryParent),t}}},{"../services/parseTreeNext":23}],21:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.recipes=void 0;const r=e("./ArrayIterator"),i=e("./Runnable");n.recipes={ArrayIterator:r.ArrayIterator,Runnable:i.Runnable}},{"./ArrayIterator":16,"./Runnable":19}],22:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.parseTree=void 0;const r=e("./parseTreeNext");n.parseTree=(e,t)=>{let n=0,i=e.rootParent;for(;null!==i;)t(i,n,e),i=(0,r.parseTreeNext)(i),++n;return e}},{"./parseTreeNext":23}],23:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.parseTreeNext=void 0;n.parseTreeNext=(e,t)=>{if(!e)return null;if(e.children&&e.children.length)return e.children.first;if(e.next)return e.next;let n=e.parent;for(;n&&n!==t;){if(n.next)return n.next;n=n.parent}return null}},{}],24:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.services=void 0;const r=e("./parseTree"),i=e("./parseTreeNext");n.services={parseTree:r.parseTree,parseTreeNext:i.parseTreeNext}},{"./parseTree":22,"./parseTreeNext":23}],25:[function(e,t,n){"use strict";var r=e("../internals/is-callable"),i=e("../internals/try-to-string"),s=TypeError;t.exports=function(e){if(r(e))return e;throw new s(i(e)+" is not a function")}},{"../internals/is-callable":69,"../internals/try-to-string":112}],26:[function(e,t,n){"use strict";var r=e("../internals/object-is-prototype-of"),i=TypeError;t.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},{"../internals/object-is-prototype-of":94}],27:[function(e,t,n){"use strict";var r=e("../internals/is-object"),i=String,s=TypeError;t.exports=function(e){if(r(e))return e;throw new s(i(e)+" is not an object")}},{"../internals/is-object":72}],28:[function(e,t,n){"use strict";var r=e("../internals/to-indexed-object"),i=e("../internals/to-absolute-index"),s=e("../internals/length-of-array-like"),o=function(e){return function(t,n,o){var l=r(t),a=s(l);if(0===a)return!e&&-1;var u,c=i(o,a);if(e&&n!=n){for(;a>c;)if((u=l[c++])!=u)return!0}else for(;a>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},{"../internals/length-of-array-like":84,"../internals/to-absolute-index":105,"../internals/to-indexed-object":106}],29:[function(e,t,n){"use strict";var r=e("../internals/an-object"),i=e("../internals/iterator-close");t.exports=function(e,t,n,s){try{return s?t(r(n)[0],n[1]):t(n)}catch(t){i(e,"throw",t)}}},{"../internals/an-object":27,"../internals/iterator-close":78}],30:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=r({}.toString),s=r("".slice);t.exports=function(e){return s(i(e),8,-1)}},{"../internals/function-uncurry-this":54}],31:[function(e,t,n){"use strict";var r=e("../internals/has-own-property"),i=e("../internals/own-keys"),s=e("../internals/object-get-own-property-descriptor"),o=e("../internals/object-define-property");t.exports=function(e,t,n){for(var l=i(t),a=o.f,u=s.f,c=0;c<l.length;c++){var f=l[c];r(e,f)||n&&r(n,f)||a(e,f,u(t,f))}}},{"../internals/has-own-property":61,"../internals/object-define-property":89,"../internals/object-get-own-property-descriptor":90,"../internals/own-keys":99}],32:[function(e,t,n){"use strict";var r=e("../internals/fails");t.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},{"../internals/fails":47}],33:[function(e,t,n){"use strict";t.exports=function(e,t){return{value:e,done:t}}},{}],34:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/object-define-property"),s=e("../internals/create-property-descriptor");t.exports=r?function(e,t,n){return i.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e}},{"../internals/create-property-descriptor":35,"../internals/descriptors":41,"../internals/object-define-property":89}],35:[function(e,t,n){"use strict";t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],36:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/object-define-property"),s=e("../internals/create-property-descriptor");t.exports=function(e,t,n){r?i.f(e,t,s(0,n)):e[t]=n}},{"../internals/create-property-descriptor":35,"../internals/descriptors":41,"../internals/object-define-property":89}],37:[function(e,t,n){"use strict";var r=e("../internals/make-built-in"),i=e("../internals/object-define-property");t.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},{"../internals/make-built-in":85,"../internals/object-define-property":89}],38:[function(e,t,n){"use strict";var r=e("../internals/is-callable"),i=e("../internals/object-define-property"),s=e("../internals/make-built-in"),o=e("../internals/define-global-property");t.exports=function(e,t,n,l){l||(l={});var a=l.enumerable,u=void 0!==l.name?l.name:t;if(r(n)&&s(n,u,l),l.global)a?e[t]=n:o(t,n);else{try{l.unsafe?e[t]&&(a=!0):delete e[t]}catch(e){}a?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return e}},{"../internals/define-global-property":40,"../internals/is-callable":69,"../internals/make-built-in":85,"../internals/object-define-property":89}],39:[function(e,t,n){"use strict";var r=e("../internals/define-built-in");t.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},{"../internals/define-built-in":38}],40:[function(e,t,n){"use strict";var r=e("../internals/global-this"),i=Object.defineProperty;t.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},{"../internals/global-this":60}],41:[function(e,t,n){"use strict";var r=e("../internals/fails");t.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},{"../internals/fails":47}],42:[function(e,t,n){"use strict";var r=e("../internals/global-this"),i=e("../internals/is-object"),s=r.document,o=i(s)&&i(s.createElement);t.exports=function(e){return o?s.createElement(e):{}}},{"../internals/global-this":60,"../internals/is-object":72}],43:[function(e,t,n){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],44:[function(e,t,n){"use strict";var r=e("../internals/global-this").navigator,i=r&&r.userAgent;t.exports=i?String(i):""},{"../internals/global-this":60}],45:[function(e,t,n){"use strict";var r,i,s=e("../internals/global-this"),o=e("../internals/environment-user-agent"),l=s.process,a=s.Deno,u=l&&l.versions||a&&a.version,c=u&&u.v8;c&&(i=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},{"../internals/environment-user-agent":44,"../internals/global-this":60}],46:[function(e,t,n){"use strict";var r=e("../internals/global-this"),i=e("../internals/object-get-own-property-descriptor").f,s=e("../internals/create-non-enumerable-property"),o=e("../internals/define-built-in"),l=e("../internals/define-global-property"),a=e("../internals/copy-constructor-properties"),u=e("../internals/is-forced");t.exports=function(e,t){var n,c,f,h,p,d=e.target,y=e.global,b=e.stat;if(n=y?r:b?r[d]||l(d,{}):r[d]&&r[d].prototype)for(c in t){if(h=t[c],f=e.dontCallGetSet?(p=i(n,c))&&p.value:n[c],!u(y?c:d+(b?".":"#")+c,e.forced)&&void 0!==f){if(typeof h==typeof f)continue;a(h,f)}(e.sham||f&&f.sham)&&s(h,"sham",!0),o(n,c,h,e)}}},{"../internals/copy-constructor-properties":31,"../internals/create-non-enumerable-property":34,"../internals/define-built-in":38,"../internals/define-global-property":40,"../internals/global-this":60,"../internals/is-forced":70,"../internals/object-get-own-property-descriptor":90}],47:[function(e,t,n){"use strict";t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],48:[function(e,t,n){"use strict";var r=e("../internals/function-bind-native"),i=Function.prototype,s=i.apply,o=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(s):function(){return o.apply(s,arguments)})},{"../internals/function-bind-native":50}],49:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this-clause"),i=e("../internals/a-callable"),s=e("../internals/function-bind-native"),o=r(r.bind);t.exports=function(e,t){return i(e),void 0===t?e:s?o(e,t):function(){return e.apply(t,arguments)}}},{"../internals/a-callable":25,"../internals/function-bind-native":50,"../internals/function-uncurry-this-clause":53}],50:[function(e,t,n){"use strict";var r=e("../internals/fails");t.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},{"../internals/fails":47}],51:[function(e,t,n){"use strict";var r=e("../internals/function-bind-native"),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},{"../internals/function-bind-native":50}],52:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/has-own-property"),s=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,l=i(s,"name"),a=l&&"something"===function(){}.name,u=l&&(!r||r&&o(s,"name").configurable);t.exports={EXISTS:l,PROPER:a,CONFIGURABLE:u}},{"../internals/descriptors":41,"../internals/has-own-property":61}],53:[function(e,t,n){"use strict";var r=e("../internals/classof-raw"),i=e("../internals/function-uncurry-this");t.exports=function(e){if("Function"===r(e))return i(e)}},{"../internals/classof-raw":30,"../internals/function-uncurry-this":54}],54:[function(e,t,n){"use strict";var r=e("../internals/function-bind-native"),i=Function.prototype,s=i.call,o=r&&i.bind.bind(s,s);t.exports=r?o:function(e){return function(){return s.apply(e,arguments)}}},{"../internals/function-bind-native":50}],55:[function(e,t,n){"use strict";var r=e("../internals/global-this"),i=e("../internals/is-callable");t.exports=function(e,t){return arguments.length<2?(n=r[e],i(n)?n:void 0):r[e]&&r[e][t];var n}},{"../internals/global-this":60,"../internals/is-callable":69}],56:[function(e,t,n){"use strict";t.exports=function(e){return{iterator:e,next:e.next,done:!1}}},{}],57:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/is-callable"),s=e("../internals/an-object"),o=e("../internals/try-to-string"),l=e("../internals/get-iterator-method-internal"),a=TypeError;t.exports=function(e,t){var n=arguments.length<2?l(e):t;if(i(n))return s(r(n,e));throw new a(o(e)+" is not iterable")}},{"../internals/an-object":27,"../internals/function-call":51,"../internals/get-iterator-method-internal":58,"../internals/is-callable":69,"../internals/try-to-string":112}],58:[function(e,t,n){"use strict";var r=e("../internals/classof-raw"),i=e("../internals/is-null-or-undefined"),s=e("../internals/get-method"),o=e("../internals/well-known-symbol")("iterator"),l=Array.prototype;t.exports=function(e){if(!i(e))return s(e,o)||s(e,"@@iterator")||("Arguments"===r(e)?l[o]:void 0)}},{"../internals/classof-raw":30,"../internals/get-method":59,"../internals/is-null-or-undefined":71,"../internals/well-known-symbol":117}],59:[function(e,t,n){"use strict";var r=e("../internals/a-callable"),i=e("../internals/is-null-or-undefined");t.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},{"../internals/a-callable":25,"../internals/is-null-or-undefined":71}],60:[function(e,t,n){(function(e){(function(){"use strict";var n=function(e){return e&&e.Math===Math&&e};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],61:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/to-object"),s=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return s(i(e),t)}},{"../internals/function-uncurry-this":54,"../internals/to-object":109}],62:[function(e,t,n){"use strict";t.exports={}},{}],63:[function(e,t,n){"use strict";var r=e("../internals/get-built-in");t.exports=r("document","documentElement")},{"../internals/get-built-in":55}],64:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/fails"),s=e("../internals/document-create-element");t.exports=!r&&!i((function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},{"../internals/descriptors":41,"../internals/document-create-element":42,"../internals/fails":47}],65:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/fails"),s=e("../internals/classof-raw"),o=Object,l=r("".split);t.exports=i((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===s(e)?l(e,""):o(e)}:o},{"../internals/classof-raw":30,"../internals/fails":47,"../internals/function-uncurry-this":54}],66:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/is-callable"),s=e("../internals/shared-store"),o=r(Function.toString);i(s.inspectSource)||(s.inspectSource=function(e){return o(e)}),t.exports=s.inspectSource},{"../internals/function-uncurry-this":54,"../internals/is-callable":69,"../internals/shared-store":102}],67:[function(e,t,n){"use strict";var r,i,s,o=e("../internals/weak-map-basic-detection"),l=e("../internals/global-this"),a=e("../internals/is-object"),u=e("../internals/create-non-enumerable-property"),c=e("../internals/has-own-property"),f=e("../internals/shared-store"),h=e("../internals/shared-key"),p=e("../internals/hidden-keys"),d="Object already initialized",y=l.TypeError,b=l.WeakMap;if(o||f.state){var k=f.state||(f.state=new b);k.get=k.get,k.has=k.has,k.set=k.set,r=function(e,t){if(k.has(e))throw new y(d);return t.facade=e,k.set(e,t),t},i=function(e){return k.get(e)||{}},s=function(e){return k.has(e)}}else{var m=h("state");p[m]=!0,r=function(e,t){if(c(e,m))throw new y(d);return t.facade=e,u(e,m,t),t},i=function(e){return c(e,m)?e[m]:{}},s=function(e){return c(e,m)}}t.exports={set:r,get:i,has:s,enforce:function(e){return s(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!a(t)||(n=i(t)).type!==e)throw new y("Incompatible receiver, "+e+" required");return n}}}},{"../internals/create-non-enumerable-property":34,"../internals/global-this":60,"../internals/has-own-property":61,"../internals/hidden-keys":62,"../internals/is-object":72,"../internals/shared-key":101,"../internals/shared-store":102,"../internals/weak-map-basic-detection":116}],68:[function(e,t,n){"use strict";var r=e("../internals/well-known-symbol"),i=e("../internals/iterators"),s=r("iterator"),o=Array.prototype;t.exports=function(e){return void 0!==e&&(i.Array===e||o[s]===e)}},{"../internals/iterators":83,"../internals/well-known-symbol":117}],69:[function(e,t,n){"use strict";var r="object"==typeof document&&document.all;t.exports=void 0===r&&void 0!==r?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},{}],70:[function(e,t,n){"use strict";var r=e("../internals/fails"),i=e("../internals/is-callable"),s=/#|\.prototype\./,o=function(e,t){var n=a[l(e)];return n===c||n!==u&&(i(t)?r(t):!!t)},l=o.normalize=function(e){return String(e).replace(s,".").toLowerCase()},a=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";t.exports=o},{"../internals/fails":47,"../internals/is-callable":69}],71:[function(e,t,n){"use strict";t.exports=function(e){return null==e}},{}],72:[function(e,t,n){"use strict";var r=e("../internals/is-callable");t.exports=function(e){return"object"==typeof e?null!==e:r(e)}},{"../internals/is-callable":69}],73:[function(e,t,n){"use strict";t.exports=!1},{}],74:[function(e,t,n){"use strict";var r=e("../internals/get-built-in"),i=e("../internals/is-callable"),s=e("../internals/object-is-prototype-of"),o=e("../internals/use-symbol-as-uid"),l=Object;t.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&s(t.prototype,l(e))}},{"../internals/get-built-in":55,"../internals/is-callable":69,"../internals/object-is-prototype-of":94,"../internals/use-symbol-as-uid":114}],75:[function(e,t,n){"use strict";var r=e("../internals/function-bind-context"),i=e("../internals/function-call"),s=e("../internals/an-object"),o=e("../internals/try-to-string"),l=e("../internals/is-array-iterator-method"),a=e("../internals/length-of-array-like"),u=e("../internals/object-is-prototype-of"),c=e("../internals/get-iterator-internal"),f=e("../internals/get-iterator-method-internal"),h=e("../internals/iterator-close"),p=TypeError,d=function(e,t){this.stopped=e,this.result=t},y=d.prototype;t.exports=function(e,t,n){var b,k,m,v,g,L,x,j=n&&n.that,w=!(!n||!n.AS_ENTRIES),O=!(!n||!n.IS_RECORD),T=!(!n||!n.IS_ITERATOR),C=!(!n||!n.INTERRUPTED),S=r(t,j),A=function(e){var t=b;return b=void 0,t&&h(t,"normal"),new d(!0,e)},P=function(e){return w?(s(e),C?S(e[0],e[1],A):S(e[0],e[1])):C?S(e,A):S(e)};if(O)b=e.iterator;else if(T)b=e;else{if(!(k=f(e)))throw new p(o(e)+" is not iterable");if(l(k)){for(m=0,v=a(e);v>m;m++)if((g=P(e[m]))&&u(y,g))return g;return new d(!1)}b=c(e,k)}for(L=O?e.next:b.next;!(x=i(L,b)).done;){var E=x.value;try{g=P(E)}catch(e){if(!b)throw e;h(b,"throw",e)}if("object"==typeof g&&g&&u(y,g))return g}return new d(!1)}},{"../internals/an-object":27,"../internals/function-bind-context":49,"../internals/function-call":51,"../internals/get-iterator-internal":57,"../internals/get-iterator-method-internal":58,"../internals/is-array-iterator-method":68,"../internals/iterator-close":78,"../internals/length-of-array-like":84,"../internals/object-is-prototype-of":94,"../internals/try-to-string":112}],76:[function(e,t,n){"use strict";t.exports=function(e){e.iterator=e.next=e.nextHandler=e.mapper=e.predicate=e.inner=e.iterables=e.iters=e.openIters=e.padding=e.finishResults=e.buffer=null}},{}],77:[function(e,t,n){"use strict";var r=e("../internals/iterator-close");t.exports=function(e,t,n){for(var i=e.length-1;i>=0;i--)if(void 0!==e[i])try{n=r(e[i].iterator,t,n)}catch(e){t="throw",n=e}if("throw"===t)throw n;return n}},{"../internals/iterator-close":78}],78:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/an-object"),s=e("../internals/get-method");t.exports=function(e,t,n){var o,l;i(e);try{if(!(o=s(e,"return"))){if("throw"===t)throw n;return n}o=r(o,e)}catch(e){l=!0,o=e}if("throw"===t)throw n;if(l)throw o;return i(o),n}},{"../internals/an-object":27,"../internals/function-call":51,"../internals/get-method":59}],79:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/object-create"),s=e("../internals/create-non-enumerable-property"),o=e("../internals/define-built-ins"),l=e("../internals/well-known-symbol"),a=e("../internals/internal-state"),u=e("../internals/get-method"),c=e("../internals/iterators-core").IteratorPrototype,f=e("../internals/create-iter-result-object"),h=e("../internals/iterator-close"),p=e("../internals/iterator-close-all"),d=e("../internals/iterator-cleanup-state"),y=l("toStringTag"),b="IteratorHelper",k="WrapForValidIterator",m="normal",v="throw",g=a.set,L=function(e){var t=a.getterFor(e?k:b);return o(i(c),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return f(void 0,!0);try{var r=n.nextHandler();return n.done&&d(n),n.returnHandlerResult?r:f(r,n.done)}catch(e){throw n.done=!0,d(n),e}},return:function(){var n=t(this),i=n.iterator,s=n.inner,o=n.openIters,l=n.done;if(n.done=!0,e){var a=u(i,"return");return a?r(a,i):f(void 0,!0)}if(d(n),l)return f(void 0,!0);if(s)try{h(s.iterator,m)}catch(e){return h(i,v,e)}if(o)try{p(o,m)}catch(e){if(i)return h(i,v,e);throw e}return i&&h(i,m),f(void 0,!0)}})},x=L(!0),j=L(!1);s(j,y,"Iterator Helper"),t.exports=function(e,t,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?k:b,i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,g(this,i)};return r.prototype=t?x:j,r}},{"../internals/create-iter-result-object":33,"../internals/create-non-enumerable-property":34,"../internals/define-built-ins":39,"../internals/function-call":51,"../internals/get-method":59,"../internals/internal-state":67,"../internals/iterator-cleanup-state":76,"../internals/iterator-close":78,"../internals/iterator-close-all":77,"../internals/iterators-core":82,"../internals/object-create":87,"../internals/well-known-symbol":117}],80:[function(e,t,n){"use strict";t.exports=function(e,t){var n="function"==typeof Iterator&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch(e){return!0}}},{}],81:[function(e,t,n){"use strict";var r=e("../internals/global-this");t.exports=function(e,t){var n=r.Iterator,i=n&&n.prototype,s=i&&i[e],o=!1;if(s)try{s.call({next:function(){return{done:!0}},return:function(){o=!0}},-1)}catch(e){e instanceof t||(o=!1)}if(!o)return s}},{"../internals/global-this":60}],82:[function(e,t,n){"use strict";var r,i,s,o=e("../internals/fails"),l=e("../internals/is-callable"),a=e("../internals/is-object"),u=e("../internals/object-create"),c=e("../internals/object-get-prototype-of"),f=e("../internals/define-built-in"),h=e("../internals/well-known-symbol"),p=e("../internals/is-pure"),d=h("iterator"),y=!1;[].keys&&("next"in(s=[].keys())?(i=c(c(s)))!==Object.prototype&&(r=i):y=!0),!a(r)||o((function(){var e={};return r[d].call(e)!==e}))?r={}:p&&(r=u(r)),l(r[d])||f(r,d,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:y}},{"../internals/define-built-in":38,"../internals/fails":47,"../internals/is-callable":69,"../internals/is-object":72,"../internals/is-pure":73,"../internals/object-create":87,"../internals/object-get-prototype-of":93,"../internals/well-known-symbol":117}],83:[function(e,t,n){"use strict";t.exports=Object.create?Object.create(null):{}},{}],84:[function(e,t,n){"use strict";var r=e("../internals/to-length");t.exports=function(e){return r(e.length)}},{"../internals/to-length":108}],85:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/fails"),s=e("../internals/is-callable"),o=e("../internals/has-own-property"),l=e("../internals/descriptors"),a=e("../internals/function-name").CONFIGURABLE,u=e("../internals/inspect-source"),c=e("../internals/internal-state"),f=c.enforce,h=c.get,p=String,d=Object.defineProperty,y=r("".slice),b=r("".replace),k=r([].join),m=l&&!i((function(){return 8!==d((function(){}),"length",{value:8}).length})),v=String(String).split("String"),g=t.exports=function(e,t,n){"Symbol("===y(p(t),0,7)&&(t="["+b(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||a&&e.name!==t)&&(l?d(e,"name",{value:t,configurable:!0}):e.name=t),m&&n&&o(n,"arity")&&e.length!==n.arity&&d(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?l&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=f(e);return o(r,"source")||(r.source=k(v,"string"==typeof t?t:"")),e};Function.prototype.toString=g((function(){return s(this)&&h(this).source||u(this)}),"toString")},{"../internals/descriptors":41,"../internals/fails":47,"../internals/function-name":52,"../internals/function-uncurry-this":54,"../internals/has-own-property":61,"../internals/inspect-source":66,"../internals/internal-state":67,"../internals/is-callable":69}],86:[function(e,t,n){"use strict";var r=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?i:r)(t)}},{}],87:[function(e,t,n){"use strict";var r,i=e("../internals/an-object"),s=e("../internals/object-define-properties"),o=e("../internals/enum-bug-keys"),l=e("../internals/hidden-keys"),a=e("../internals/html"),u=e("../internals/document-create-element"),c=e("../internals/shared-key"),f="prototype",h="script",p=c("IE_PROTO"),d=function(){},y=function(e){return"<"+h+">"+e+"</"+h+">"},b=function(e){e.write(y("")),e.close();var t=e.parentWindow.Object;return e=null,t},k=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;k="undefined"!=typeof document?document.domain&&r?b(r):(t=u("iframe"),n="java"+h+":",t.style.display="none",a.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(y("document.F=Object")),e.close(),e.F):b(r);for(var i=o.length;i--;)delete k[f][o[i]];return k()};l[p]=!0,t.exports=Object.create||function(e,t){var n;return null!==e?(d[f]=i(e),n=new d,d[f]=null,n[p]=e):n=k(),void 0===t?n:s.f(n,t)}},{"../internals/an-object":27,"../internals/document-create-element":42,"../internals/enum-bug-keys":43,"../internals/hidden-keys":62,"../internals/html":63,"../internals/object-define-properties":88,"../internals/shared-key":101}],88:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/v8-prototype-define-bug"),s=e("../internals/object-define-property"),o=e("../internals/an-object"),l=e("../internals/to-indexed-object"),a=e("../internals/object-keys");n.f=r&&!i?Object.defineProperties:function(e,t){o(e);for(var n,r=l(t),i=a(t),u=i.length,c=0;u>c;)s.f(e,n=i[c++],r[n]);return e}},{"../internals/an-object":27,"../internals/descriptors":41,"../internals/object-define-property":89,"../internals/object-keys":96,"../internals/to-indexed-object":106,"../internals/v8-prototype-define-bug":115}],89:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/ie8-dom-define"),s=e("../internals/v8-prototype-define-bug"),o=e("../internals/an-object"),l=e("../internals/to-property-key"),a=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",p="writable";n.f=r?s?function(e,t,n){if(o(e),t=l(t),o(n),"function"==typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var r=c(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:f in n?n[f]:r[f],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(o(e),t=l(t),o(n),i)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new a("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},{"../internals/an-object":27,"../internals/descriptors":41,"../internals/ie8-dom-define":64,"../internals/to-property-key":111,"../internals/v8-prototype-define-bug":115}],90:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/function-call"),s=e("../internals/object-property-is-enumerable"),o=e("../internals/create-property-descriptor"),l=e("../internals/to-indexed-object"),a=e("../internals/to-property-key"),u=e("../internals/has-own-property"),c=e("../internals/ie8-dom-define"),f=Object.getOwnPropertyDescriptor;n.f=r?f:function(e,t){if(e=l(e),t=a(t),c)try{return f(e,t)}catch(e){}if(u(e,t))return o(!i(s.f,e,t),e[t])}},{"../internals/create-property-descriptor":35,"../internals/descriptors":41,"../internals/function-call":51,"../internals/has-own-property":61,"../internals/ie8-dom-define":64,"../internals/object-property-is-enumerable":97,"../internals/to-indexed-object":106,"../internals/to-property-key":111}],91:[function(e,t,n){"use strict";var r=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},{"../internals/enum-bug-keys":43,"../internals/object-keys-internal":95}],92:[function(e,t,n){"use strict";n.f=Object.getOwnPropertySymbols},{}],93:[function(e,t,n){"use strict";var r=e("../internals/has-own-property"),i=e("../internals/is-callable"),s=e("../internals/to-object"),o=e("../internals/shared-key"),l=e("../internals/correct-prototype-getter"),a=o("IE_PROTO"),u=Object,c=u.prototype;t.exports=l?u.getPrototypeOf:function(e){var t=s(e);if(r(t,a))return t[a];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},{"../internals/correct-prototype-getter":32,"../internals/has-own-property":61,"../internals/is-callable":69,"../internals/shared-key":101,"../internals/to-object":109}],94:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this");t.exports=r({}.isPrototypeOf)},{"../internals/function-uncurry-this":54}],95:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/has-own-property"),s=e("../internals/to-indexed-object"),o=e("../internals/array-includes").indexOf,l=e("../internals/hidden-keys"),a=r([].push);t.exports=function(e,t){var n,r=s(e),u=0,c=[];for(n in r)!i(l,n)&&i(r,n)&&a(c,n);for(;t.length>u;)i(r,n=t[u++])&&(~o(c,n)||a(c,n));return c}},{"../internals/array-includes":28,"../internals/function-uncurry-this":54,"../internals/has-own-property":61,"../internals/hidden-keys":62,"../internals/to-indexed-object":106}],96:[function(e,t,n){"use strict";var r=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys");t.exports=Object.keys||function(e){return r(e,i)}},{"../internals/enum-bug-keys":43,"../internals/object-keys-internal":95}],97:[function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,s=i&&!r.call({1:2},1);n.f=s?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},{}],98:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/is-callable"),s=e("../internals/is-object"),o=TypeError;t.exports=function(e,t){var n,l;if("string"===t&&i(n=e.toString)&&!s(l=r(n,e)))return l;if(i(n=e.valueOf)&&!s(l=r(n,e)))return l;if("string"!==t&&i(n=e.toString)&&!s(l=r(n,e)))return l;throw new o("Can't convert object to primitive value")}},{"../internals/function-call":51,"../internals/is-callable":69,"../internals/is-object":72}],99:[function(e,t,n){"use strict";var r=e("../internals/get-built-in"),i=e("../internals/function-uncurry-this"),s=e("../internals/object-get-own-property-names"),o=e("../internals/object-get-own-property-symbols"),l=e("../internals/an-object"),a=i([].concat);t.exports=r("Reflect","ownKeys")||function(e){var t=s.f(l(e)),n=o.f;return n?a(t,n(e)):t}},{"../internals/an-object":27,"../internals/function-uncurry-this":54,"../internals/get-built-in":55,"../internals/object-get-own-property-names":91,"../internals/object-get-own-property-symbols":92}],100:[function(e,t,n){"use strict";var r=e("../internals/is-null-or-undefined"),i=TypeError;t.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},{"../internals/is-null-or-undefined":71}],101:[function(e,t,n){"use strict";var r=e("../internals/shared"),i=e("../internals/uid"),s=r("keys");t.exports=function(e){return s[e]||(s[e]=i(e))}},{"../internals/shared":103,"../internals/uid":113}],102:[function(e,t,n){"use strict";var r=e("../internals/is-pure"),i=e("../internals/global-this"),s=e("../internals/define-global-property"),o="__core-js_shared__",l=t.exports=i[o]||s(o,{});(l.versions||(l.versions=[])).push({version:"3.50.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/define-global-property":40,"../internals/global-this":60,"../internals/is-pure":73}],103:[function(e,t,n){"use strict";var r=e("../internals/shared-store"),i=Object.create||Object;t.exports=function(e,t){return r[e]||(r[e]=t||i(null))}},{"../internals/shared-store":102}],104:[function(e,t,n){"use strict";var r=e("../internals/environment-v8-version"),i=e("../internals/fails"),s=e("../internals/global-this").String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},{"../internals/environment-v8-version":45,"../internals/fails":47,"../internals/global-this":60}],105:[function(e,t,n){"use strict";var r=e("../internals/to-integer-or-infinity"),i=Math.max,s=Math.min;t.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):s(n,t)}},{"../internals/to-integer-or-infinity":107}],106:[function(e,t,n){"use strict";var r=e("../internals/indexed-object"),i=e("../internals/require-object-coercible");t.exports=function(e){return r(i(e))}},{"../internals/indexed-object":65,"../internals/require-object-coercible":100}],107:[function(e,t,n){"use strict";var r=e("../internals/math-trunc");t.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},{"../internals/math-trunc":86}],108:[function(e,t,n){"use strict";var r=e("../internals/to-integer-or-infinity"),i=Math.min;t.exports=function(e){var t=r(e);return t>0?i(t,9007199254740991):0}},{"../internals/to-integer-or-infinity":107}],109:[function(e,t,n){"use strict";var r=e("../internals/require-object-coercible"),i=Object;t.exports=function(e){return i(r(e))}},{"../internals/require-object-coercible":100}],110:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/is-object"),s=e("../internals/is-symbol"),o=e("../internals/get-method"),l=e("../internals/ordinary-to-primitive"),a=e("../internals/well-known-symbol"),u=TypeError,c=a("toPrimitive");t.exports=function(e,t){if(!i(e)||s(e))return e;var n,a=o(e,c);if(a){if(void 0===t&&(t="default"),n=r(a,e,t),!i(n)||s(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),l(e,t)}},{"../internals/function-call":51,"../internals/get-method":59,"../internals/is-object":72,"../internals/is-symbol":74,"../internals/ordinary-to-primitive":98,"../internals/well-known-symbol":117}],111:[function(e,t,n){"use strict";var r=e("../internals/to-primitive"),i=e("../internals/is-symbol");t.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},{"../internals/is-symbol":74,"../internals/to-primitive":110}],112:[function(e,t,n){"use strict";var r=String;t.exports=function(e){try{return r(e)}catch(e){return"Object"}}},{}],113:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=0,s=Math.random(),o=r(1.1.toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++i+s,36)}},{"../internals/function-uncurry-this":54}],114:[function(e,t,n){"use strict";var r=e("../internals/symbol-constructor-detection");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},{"../internals/symbol-constructor-detection":104}],115:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/fails");t.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},{"../internals/descriptors":41,"../internals/fails":47}],116:[function(e,t,n){"use strict";var r=e("../internals/global-this"),i=e("../internals/is-callable"),s=r.WeakMap;t.exports=i(s)&&/native code/.test(String(s))},{"../internals/global-this":60,"../internals/is-callable":69}],117:[function(e,t,n){"use strict";var r=e("../internals/global-this"),i=e("../internals/shared"),s=e("../internals/has-own-property"),o=e("../internals/uid"),l=e("../internals/symbol-constructor-detection"),a=e("../internals/use-symbol-as-uid"),u=r.Symbol,c=i("wks"),f=a?u.for||u:u&&u.withoutSetter||o;t.exports=function(e){return s(c,e)||(c[e]=l&&s(u,e)?u[e]:f("Symbol."+e)),c[e]}},{"../internals/global-this":60,"../internals/has-own-property":61,"../internals/shared":103,"../internals/symbol-constructor-detection":104,"../internals/uid":113,"../internals/use-symbol-as-uid":114}],118:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/global-this"),s=e("../internals/an-instance"),o=e("../internals/an-object"),l=e("../internals/is-callable"),a=e("../internals/object-get-prototype-of"),u=e("../internals/define-built-in-accessor"),c=e("../internals/create-property"),f=e("../internals/fails"),h=e("../internals/has-own-property"),p=e("../internals/well-known-symbol"),d=e("../internals/iterators-core").IteratorPrototype,y=e("../internals/descriptors"),b=e("../internals/is-pure"),k="constructor",m="Iterator",v=p("toStringTag"),g=TypeError,L=i[m],x=b||!l(L)||L.prototype!==d||!f((function(){L({})})),j=function(){if(s(this,d),a(this)===d)throw new g("Abstract class Iterator not directly constructable")},w=function(e,t){y?u(d,e,{configurable:!0,get:function(){return t},set:function(t){if(o(this),this===d)throw new g("You can't redefine this property");h(this,e)?this[e]=t:c(this,e,t)}}):d[e]=t};h(d,v)||w(v,m),!x&&h(d,k)&&d[k]!==Object||w(k,j),j.prototype=d,r({global:!0,constructor:!0,forced:x},{Iterator:j})},{"../internals/an-instance":26,"../internals/an-object":27,"../internals/create-property":36,"../internals/define-built-in-accessor":37,"../internals/descriptors":41,"../internals/export":46,"../internals/fails":47,"../internals/global-this":60,"../internals/has-own-property":61,"../internals/is-callable":69,"../internals/is-pure":73,"../internals/iterators-core":82,"../internals/object-get-prototype-of":93,"../internals/well-known-symbol":117}],119:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-call"),s=e("../internals/iterate"),o=e("../internals/a-callable"),l=e("../internals/an-object"),a=e("../internals/get-iterator-direct"),u=e("../internals/iterator-close"),c=e("../internals/iterator-helper-without-closing-on-early-error")("forEach",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:c},{forEach:function(e){l(this);try{o(e)}catch(e){u(this,"throw",e)}if(c)return i(c,this,e);var t=a(this),n=0;s(t,(function(t){e(t,n++)}),{IS_RECORD:!0})}})},{"../internals/a-callable":25,"../internals/an-object":27,"../internals/export":46,"../internals/function-call":51,"../internals/get-iterator-direct":56,"../internals/iterate":75,"../internals/iterator-close":78,"../internals/iterator-helper-without-closing-on-early-error":81}],120:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-call"),s=e("../internals/a-callable"),o=e("../internals/an-object"),l=e("../internals/get-iterator-direct"),a=e("../internals/iterator-create-proxy"),u=e("../internals/call-with-safe-iteration-closing"),c=e("../internals/iterator-close"),f=e("../internals/iterator-helper-throws-on-invalid-iterator"),h=e("../internals/iterator-helper-without-closing-on-early-error"),p=e("../internals/is-pure"),d=!p&&!f("map",(function(){})),y=!p&&!d&&h("map",TypeError),b=p||d||y,k=a((function(){var e=this.iterator,t=o(i(this.next,e));if(!(this.done=!!t.done))return u(e,this.mapper,[t.value,this.counter++],!0)}));r({target:"Iterator",proto:!0,real:!0,forced:b},{map:function(e){o(this);try{s(e)}catch(e){c(this,"throw",e)}return y?i(y,this,e):new k(l(this),{mapper:e})}})},{"../internals/a-callable":25,"../internals/an-object":27,"../internals/call-with-safe-iteration-closing":29,"../internals/export":46,"../internals/function-call":51,"../internals/get-iterator-direct":56,"../internals/is-pure":73,"../internals/iterator-close":78,"../internals/iterator-create-proxy":79,"../internals/iterator-helper-throws-on-invalid-iterator":80,"../internals/iterator-helper-without-closing-on-early-error":81}],121:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/iterate"),s=e("../internals/a-callable"),o=e("../internals/an-object"),l=e("../internals/get-iterator-direct"),a=e("../internals/iterator-close"),u=e("../internals/iterator-helper-without-closing-on-early-error"),c=e("../internals/function-apply"),f=e("../internals/fails"),h=TypeError,p=f((function(){[].keys().reduce((function(){}),void 0)})),d=!p&&u("reduce",h);r({target:"Iterator",proto:!0,real:!0,forced:p||d},{reduce:function(e){o(this);try{s(e)}catch(e){a(this,"throw",e)}var t=arguments.length<2,n=t?void 0:arguments[1];if(d)return c(d,this,t?[e]:[e,n]);var r=l(this),u=0;if(i(r,(function(r){t?(t=!1,n=r):n=e(n,r,u),u++}),{IS_RECORD:!0}),t)throw new h("Reduce of empty iterator with no initial value");return n}})},{"../internals/a-callable":25,"../internals/an-object":27,"../internals/export":46,"../internals/fails":47,"../internals/function-apply":48,"../internals/get-iterator-direct":56,"../internals/iterate":75,"../internals/iterator-close":78,"../internals/iterator-helper-without-closing-on-early-error":81}],122:[function(e,t,n){"use strict";e("../modules/es.iterator.constructor")},{"../modules/es.iterator.constructor":118}],123:[function(e,t,n){"use strict";e("../modules/es.iterator.for-each")},{"../modules/es.iterator.for-each":119}],124:[function(e,t,n){"use strict";e("../modules/es.iterator.map")},{"../modules/es.iterator.map":120}],125:[function(e,t,n){"use strict";e("../modules/es.iterator.reduce")},{"../modules/es.iterator.reduce":121}]},{},[15]);
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file linked list item.
|
|
3
|
-
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
4
|
-
* @version 1.1.0
|
|
5
|
-
* @memberOf module:collect-your-stuff
|
|
6
|
-
*/
|
|
7
|
-
import { IsElement } from '../../recipes/IsElement';
|
|
8
|
-
/**
|
|
9
|
-
* Element represents a node in an Arrayable.
|
|
10
|
-
*/
|
|
11
|
-
export declare class ArrayElement implements IsElement {
|
|
12
|
-
/** The class used to create this instance, so that it can be recognized as valid without an instanceof check. */
|
|
13
|
-
readonly classType: typeof ArrayElement;
|
|
14
|
-
/** The data stored in this element. */
|
|
15
|
-
data: any;
|
|
16
|
-
/**
|
|
17
|
-
* Create the new Element instance, provide the data and optionally configure the type of Element.
|
|
18
|
-
* @param {*} [data=null] The data to be stored in this element.
|
|
19
|
-
*/
|
|
20
|
-
constructor(data?: any);
|
|
21
|
-
/**
|
|
22
|
-
* Make a new Element from the data given if it is not already a valid Element.
|
|
23
|
-
* @param {ArrayElement|*} element Return a valid ArrayElement instance from given data, or even an already valid one.
|
|
24
|
-
* @param {IsElement} [classType=ArrayElement] Provide the type of IsElement to use.
|
|
25
|
-
* @return {ArrayElement}
|
|
26
|
-
*/
|
|
27
|
-
static make: (element: ArrayElement | any, classType?: any) => IsElement | any;
|
|
28
|
-
/**
|
|
29
|
-
* Convert an array into Element instances, return the head and tail Elements.
|
|
30
|
-
* @param {Array<IsElement>} [values=[]] Provide an array of data that will be converted to array of elements.
|
|
31
|
-
* @param {IsElement} [classType=ArrayElement] Provide the type of IsElement to use.
|
|
32
|
-
* @returns {{head: ArrayElement[], tail: ArrayElement}}
|
|
33
|
-
*/
|
|
34
|
-
static fromArray: (values?: Array<IsElement>, classType?: any) => {
|
|
35
|
-
head: Array<ArrayElement>;
|
|
36
|
-
tail: ArrayElement;
|
|
37
|
-
};
|
|
38
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @file linked list item.
|
|
3
|
+
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
4
|
+
* @version 1.1.0
|
|
5
|
+
* @memberOf module:collect-your-stuff
|
|
6
|
+
*/
|
|
7
|
+
import { IsElement } from '../../recipes/IsElement';
|
|
8
|
+
/**
|
|
9
|
+
* Element represents a node in an Arrayable.
|
|
10
|
+
*/
|
|
11
|
+
export declare class ArrayElement implements IsElement {
|
|
12
|
+
/** The class used to create this instance, so that it can be recognized as valid without an instanceof check. */
|
|
13
|
+
readonly classType: typeof ArrayElement;
|
|
14
|
+
/** The data stored in this element. */
|
|
15
|
+
data: any;
|
|
16
|
+
/**
|
|
17
|
+
* Create the new Element instance, provide the data and optionally configure the type of Element.
|
|
18
|
+
* @param {*} [data=null] The data to be stored in this element.
|
|
19
|
+
*/
|
|
20
|
+
constructor(data?: any);
|
|
21
|
+
/**
|
|
22
|
+
* Make a new Element from the data given if it is not already a valid Element.
|
|
23
|
+
* @param {ArrayElement|*} element Return a valid ArrayElement instance from given data, or even an already valid one.
|
|
24
|
+
* @param {IsElement} [classType=ArrayElement] Provide the type of IsElement to use.
|
|
25
|
+
* @return {ArrayElement}
|
|
26
|
+
*/
|
|
27
|
+
static make: (element: ArrayElement | any, classType?: any) => IsElement | any;
|
|
28
|
+
/**
|
|
29
|
+
* Convert an array into Element instances, return the head and tail Elements.
|
|
30
|
+
* @param {Array<IsElement>} [values=[]] Provide an array of data that will be converted to array of elements.
|
|
31
|
+
* @param {IsElement} [classType=ArrayElement] Provide the type of IsElement to use.
|
|
32
|
+
* @returns {{head: ArrayElement[], tail: ArrayElement}}
|
|
33
|
+
*/
|
|
34
|
+
static fromArray: (values?: Array<IsElement>, classType?: any) => {
|
|
35
|
+
head: Array<ArrayElement>;
|
|
36
|
+
tail: ArrayElement;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', {
|
|
4
|
-
value: true
|
|
5
|
-
})
|
|
6
|
-
exports.ArrayElement = void 0
|
|
7
|
-
require('core-js/modules/esnext.iterator.constructor.js')
|
|
8
|
-
require('core-js/modules/esnext.iterator.reduce.js')
|
|
9
|
-
/**
|
|
10
|
-
* Element represents a node in an Arrayable.
|
|
11
|
-
*/
|
|
12
|
-
class ArrayElement {
|
|
13
|
-
/**
|
|
14
|
-
* Create the new Element instance, provide the data and optionally configure the type of Element.
|
|
15
|
-
* @param {*} [data=null] The data to be stored in this element.
|
|
16
|
-
*/
|
|
17
|
-
constructor (data = null) {
|
|
18
|
-
/** The class used to create this instance, so that it can be recognized as valid without an instanceof check. */
|
|
19
|
-
this.classType = ArrayElement
|
|
20
|
-
/** The data stored in this element. */
|
|
21
|
-
this.data = null
|
|
22
|
-
this.data = data
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Make a new Element from the data given if it is not already a valid Element.
|
|
27
|
-
* @param {ArrayElement|*} element Return a valid ArrayElement instance from given data, or even an already valid one.
|
|
28
|
-
* @param {IsElement} [classType=ArrayElement] Provide the type of IsElement to use.
|
|
29
|
-
* @return {ArrayElement}
|
|
30
|
-
*/
|
|
31
|
-
exports.ArrayElement = ArrayElement
|
|
32
|
-
ArrayElement.make = (element, classType = ArrayElement) => {
|
|
33
|
-
if (element === null || typeof element !== 'object') {
|
|
34
|
-
// It is not an object (or it is null), so instantiate the Element with element as the data
|
|
35
|
-
return new classType(element)
|
|
36
|
-
}
|
|
37
|
-
if (element.classType) {
|
|
38
|
-
// Already valid Element, return as-is
|
|
39
|
-
return element
|
|
40
|
-
}
|
|
41
|
-
// Create the new node as the configured #classType
|
|
42
|
-
return new classType(element)
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Convert an array into Element instances, return the head and tail Elements.
|
|
46
|
-
* @param {Array<IsElement>} [values=[]] Provide an array of data that will be converted to array of elements.
|
|
47
|
-
* @param {IsElement} [classType=ArrayElement] Provide the type of IsElement to use.
|
|
48
|
-
* @returns {{head: ArrayElement[], tail: ArrayElement}}
|
|
49
|
-
*/
|
|
50
|
-
ArrayElement.fromArray = (values = [], classType = ArrayElement) => values.reduce((references, element) => {
|
|
51
|
-
const newElement = classType.make(element, classType)
|
|
52
|
-
if (!references.head.length) {
|
|
53
|
-
// Initialize the head and tail with the new node
|
|
54
|
-
return {
|
|
55
|
-
head: [newElement],
|
|
56
|
-
tail: newElement
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
// Only update the tail once head has been set, tail is always the most recent node
|
|
60
|
-
references.head.push(newElement)
|
|
61
|
-
references.tail = newElement
|
|
62
|
-
return references
|
|
63
|
-
}, {
|
|
64
|
-
head: [],
|
|
65
|
-
tail: null
|
|
66
|
-
})
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', {
|
|
4
|
+
value: true
|
|
5
|
+
})
|
|
6
|
+
exports.ArrayElement = void 0
|
|
7
|
+
require('core-js/modules/esnext.iterator.constructor.js')
|
|
8
|
+
require('core-js/modules/esnext.iterator.reduce.js')
|
|
9
|
+
/**
|
|
10
|
+
* Element represents a node in an Arrayable.
|
|
11
|
+
*/
|
|
12
|
+
class ArrayElement {
|
|
13
|
+
/**
|
|
14
|
+
* Create the new Element instance, provide the data and optionally configure the type of Element.
|
|
15
|
+
* @param {*} [data=null] The data to be stored in this element.
|
|
16
|
+
*/
|
|
17
|
+
constructor (data = null) {
|
|
18
|
+
/** The class used to create this instance, so that it can be recognized as valid without an instanceof check. */
|
|
19
|
+
this.classType = ArrayElement
|
|
20
|
+
/** The data stored in this element. */
|
|
21
|
+
this.data = null
|
|
22
|
+
this.data = data
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Make a new Element from the data given if it is not already a valid Element.
|
|
27
|
+
* @param {ArrayElement|*} element Return a valid ArrayElement instance from given data, or even an already valid one.
|
|
28
|
+
* @param {IsElement} [classType=ArrayElement] Provide the type of IsElement to use.
|
|
29
|
+
* @return {ArrayElement}
|
|
30
|
+
*/
|
|
31
|
+
exports.ArrayElement = ArrayElement
|
|
32
|
+
ArrayElement.make = (element, classType = ArrayElement) => {
|
|
33
|
+
if (element === null || typeof element !== 'object') {
|
|
34
|
+
// It is not an object (or it is null), so instantiate the Element with element as the data
|
|
35
|
+
return new classType(element)
|
|
36
|
+
}
|
|
37
|
+
if (element.classType) {
|
|
38
|
+
// Already valid Element, return as-is
|
|
39
|
+
return element
|
|
40
|
+
}
|
|
41
|
+
// Create the new node as the configured #classType
|
|
42
|
+
return new classType(element)
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Convert an array into Element instances, return the head and tail Elements.
|
|
46
|
+
* @param {Array<IsElement>} [values=[]] Provide an array of data that will be converted to array of elements.
|
|
47
|
+
* @param {IsElement} [classType=ArrayElement] Provide the type of IsElement to use.
|
|
48
|
+
* @returns {{head: ArrayElement[], tail: ArrayElement}}
|
|
49
|
+
*/
|
|
50
|
+
ArrayElement.fromArray = (values = [], classType = ArrayElement) => values.reduce((references, element) => {
|
|
51
|
+
const newElement = classType.make(element, classType)
|
|
52
|
+
if (!references.head.length) {
|
|
53
|
+
// Initialize the head and tail with the new node
|
|
54
|
+
return {
|
|
55
|
+
head: [newElement],
|
|
56
|
+
tail: newElement
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
// Only update the tail once head has been set, tail is always the most recent node
|
|
60
|
+
references.head.push(newElement)
|
|
61
|
+
references.tail = newElement
|
|
62
|
+
return references
|
|
63
|
+
}, {
|
|
64
|
+
head: [],
|
|
65
|
+
tail: null
|
|
66
|
+
})
|