tree-multimap-typed 2.1.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +4298 -0
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/cjs-legacy/index.cjs +4300 -0
- package/dist/cjs-legacy/index.cjs.map +1 -0
- package/dist/esm/index.mjs +4287 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm-legacy/index.mjs +4289 -0
- package/dist/esm-legacy/index.mjs.map +1 -0
- package/dist/types/data-structures/base/index.d.ts +2 -1
- package/dist/types/data-structures/binary-tree/avl-tree-counter.d.ts +236 -2
- package/dist/types/data-structures/binary-tree/avl-tree-multi-map.d.ts +197 -2
- package/dist/types/data-structures/binary-tree/avl-tree.d.ts +345 -2
- package/dist/types/data-structures/binary-tree/binary-indexed-tree.d.ts +174 -1
- package/dist/types/data-structures/binary-tree/binary-tree.d.ts +754 -29
- package/dist/types/data-structures/binary-tree/bst.d.ts +467 -12
- package/dist/types/data-structures/binary-tree/index.d.ts +3 -2
- package/dist/types/data-structures/binary-tree/red-black-tree.d.ts +262 -3
- package/dist/types/data-structures/binary-tree/segment-tree.d.ts +160 -1
- package/dist/types/data-structures/binary-tree/tree-counter.d.ts +244 -2
- package/dist/types/data-structures/binary-tree/tree-multi-map.d.ts +332 -2
- package/dist/types/data-structures/graph/abstract-graph.d.ts +340 -14
- package/dist/types/data-structures/graph/directed-graph.d.ts +207 -1
- package/dist/types/data-structures/graph/index.d.ts +2 -1
- package/dist/types/data-structures/graph/map-graph.d.ts +78 -1
- package/dist/types/data-structures/graph/undirected-graph.d.ts +188 -1
- package/dist/types/data-structures/hash/hash-map.d.ts +345 -19
- package/dist/types/data-structures/hash/index.d.ts +0 -1
- package/dist/types/data-structures/heap/heap.d.ts +503 -5
- package/dist/types/data-structures/heap/index.d.ts +2 -0
- package/dist/types/data-structures/heap/max-heap.d.ts +32 -1
- package/dist/types/data-structures/heap/min-heap.d.ts +33 -1
- package/dist/types/data-structures/index.d.ts +7 -7
- package/dist/types/data-structures/linked-list/doubly-linked-list.d.ts +769 -2
- package/dist/types/data-structures/linked-list/singly-linked-list.d.ts +451 -2
- package/dist/types/data-structures/linked-list/skip-linked-list.d.ts +27 -4
- package/dist/types/data-structures/matrix/index.d.ts +1 -1
- package/dist/types/data-structures/matrix/matrix.d.ts +168 -7
- package/dist/types/data-structures/matrix/navigator.d.ts +54 -13
- package/dist/types/data-structures/priority-queue/max-priority-queue.d.ts +27 -1
- package/dist/types/data-structures/priority-queue/min-priority-queue.d.ts +26 -1
- package/dist/types/data-structures/priority-queue/priority-queue.d.ts +15 -2
- package/dist/types/data-structures/queue/deque.d.ts +431 -4
- package/dist/types/data-structures/queue/queue.d.ts +308 -4
- package/dist/types/data-structures/stack/stack.d.ts +306 -2
- package/dist/types/data-structures/tree/tree.d.ts +62 -1
- package/dist/types/data-structures/trie/trie.d.ts +350 -4
- package/dist/types/index.d.ts +17 -2
- package/dist/{interfaces → types/interfaces}/binary-tree.d.ts +1 -1
- package/dist/types/types/data-structures/base/index.d.ts +1 -0
- package/dist/types/types/data-structures/binary-tree/avl-tree-counter.d.ts +2 -0
- package/dist/types/types/data-structures/binary-tree/avl-tree-multi-map.d.ts +2 -0
- package/dist/types/types/data-structures/binary-tree/avl-tree.d.ts +2 -0
- package/dist/types/types/data-structures/binary-tree/binary-indexed-tree.d.ts +1 -0
- package/dist/types/types/data-structures/binary-tree/binary-tree.d.ts +29 -0
- package/dist/types/types/data-structures/binary-tree/bst.d.ts +12 -0
- package/dist/{data-structures → types/types/data-structures}/binary-tree/index.d.ts +2 -3
- package/dist/types/types/data-structures/binary-tree/red-black-tree.d.ts +3 -0
- package/dist/types/types/data-structures/binary-tree/segment-tree.d.ts +1 -0
- package/dist/types/types/data-structures/binary-tree/tree-counter.d.ts +2 -0
- package/dist/types/types/data-structures/binary-tree/tree-multi-map.d.ts +2 -0
- package/dist/types/types/data-structures/graph/abstract-graph.d.ts +14 -0
- package/dist/types/types/data-structures/graph/directed-graph.d.ts +1 -0
- package/dist/{data-structures → types/types/data-structures}/graph/index.d.ts +1 -2
- package/dist/types/types/data-structures/graph/map-graph.d.ts +1 -0
- package/dist/types/types/data-structures/graph/undirected-graph.d.ts +1 -0
- package/dist/types/types/data-structures/hash/hash-map.d.ts +19 -0
- package/dist/types/types/data-structures/hash/index.d.ts +2 -0
- package/dist/types/types/data-structures/heap/heap.d.ts +5 -0
- package/dist/types/types/data-structures/heap/index.d.ts +1 -0
- package/dist/types/types/data-structures/heap/max-heap.d.ts +1 -0
- package/dist/types/types/data-structures/heap/min-heap.d.ts +1 -0
- package/dist/types/types/data-structures/linked-list/doubly-linked-list.d.ts +2 -0
- package/dist/types/types/data-structures/linked-list/singly-linked-list.d.ts +2 -0
- package/dist/types/types/data-structures/linked-list/skip-linked-list.d.ts +4 -0
- package/dist/types/types/data-structures/matrix/matrix.d.ts +7 -0
- package/dist/types/types/data-structures/matrix/navigator.d.ts +14 -0
- package/dist/types/types/data-structures/priority-queue/max-priority-queue.d.ts +1 -0
- package/dist/types/types/data-structures/priority-queue/min-priority-queue.d.ts +1 -0
- package/dist/types/types/data-structures/priority-queue/priority-queue.d.ts +2 -0
- package/dist/types/types/data-structures/queue/deque.d.ts +4 -0
- package/dist/types/types/data-structures/queue/queue.d.ts +4 -0
- package/dist/types/types/data-structures/stack/stack.d.ts +2 -0
- package/dist/types/types/data-structures/tree/tree.d.ts +1 -0
- package/dist/types/types/data-structures/trie/trie.d.ts +4 -0
- package/dist/types/types/index.d.ts +3 -0
- package/dist/types/types/utils/index.d.ts +2 -0
- package/dist/types/types/utils/utils.d.ts +22 -0
- package/dist/types/utils/index.d.ts +1 -1
- package/dist/types/utils/utils.d.ts +209 -22
- package/dist/umd/tree-multimap-typed.js +4289 -0
- package/dist/umd/tree-multimap-typed.js.map +1 -0
- package/dist/umd/tree-multimap-typed.min.js +13 -0
- package/dist/umd/tree-multimap-typed.min.js.map +1 -0
- package/package.json +43 -5
- package/src/data-structures/binary-tree/avl-tree-counter.ts +106 -15
- package/src/data-structures/binary-tree/avl-tree-multi-map.ts +116 -12
- package/src/data-structures/binary-tree/avl-tree.ts +107 -16
- package/src/data-structures/binary-tree/binary-tree.ts +4 -4
- package/src/data-structures/binary-tree/bst.ts +103 -12
- package/src/data-structures/binary-tree/red-black-tree.ts +110 -20
- package/src/data-structures/binary-tree/tree-counter.ts +105 -14
- package/src/data-structures/binary-tree/tree-multi-map.ts +123 -12
- package/src/data-structures/graph/abstract-graph.ts +5 -5
- package/src/data-structures/graph/directed-graph.ts +5 -5
- package/src/data-structures/graph/undirected-graph.ts +5 -5
- package/src/data-structures/heap/heap.ts +5 -5
- package/src/data-structures/linked-list/singly-linked-list.ts +2 -2
- package/src/interfaces/binary-tree.ts +1 -1
- package/tsconfig.base.json +23 -0
- package/tsconfig.json +8 -34
- package/tsconfig.test.json +8 -0
- package/tsconfig.types.json +15 -0
- package/tsup.config.js +28 -0
- package/tsup.node.config.js +71 -0
- package/dist/common/index.js +0 -28
- package/dist/constants/index.js +0 -8
- package/dist/data-structures/base/index.d.ts +0 -2
- package/dist/data-structures/base/index.js +0 -18
- package/dist/data-structures/base/iterable-element-base.js +0 -243
- package/dist/data-structures/base/iterable-entry-base.js +0 -183
- package/dist/data-structures/base/linear-base.js +0 -415
- package/dist/data-structures/binary-tree/avl-tree-counter.d.ts +0 -182
- package/dist/data-structures/binary-tree/avl-tree-counter.js +0 -374
- package/dist/data-structures/binary-tree/avl-tree-multi-map.d.ts +0 -135
- package/dist/data-structures/binary-tree/avl-tree-multi-map.js +0 -250
- package/dist/data-structures/binary-tree/avl-tree.d.ts +0 -291
- package/dist/data-structures/binary-tree/avl-tree.js +0 -611
- package/dist/data-structures/binary-tree/binary-indexed-tree.d.ts +0 -174
- package/dist/data-structures/binary-tree/binary-indexed-tree.js +0 -294
- package/dist/data-structures/binary-tree/binary-tree.d.ts +0 -754
- package/dist/data-structures/binary-tree/binary-tree.js +0 -1925
- package/dist/data-structures/binary-tree/bst.d.ts +0 -413
- package/dist/data-structures/binary-tree/bst.js +0 -903
- package/dist/data-structures/binary-tree/index.js +0 -26
- package/dist/data-structures/binary-tree/red-black-tree.d.ts +0 -208
- package/dist/data-structures/binary-tree/red-black-tree.js +0 -546
- package/dist/data-structures/binary-tree/segment-tree.d.ts +0 -160
- package/dist/data-structures/binary-tree/segment-tree.js +0 -297
- package/dist/data-structures/binary-tree/tree-counter.d.ts +0 -190
- package/dist/data-structures/binary-tree/tree-counter.js +0 -413
- package/dist/data-structures/binary-tree/tree-multi-map.d.ts +0 -270
- package/dist/data-structures/binary-tree/tree-multi-map.js +0 -384
- package/dist/data-structures/graph/abstract-graph.d.ts +0 -340
- package/dist/data-structures/graph/abstract-graph.js +0 -896
- package/dist/data-structures/graph/directed-graph.d.ts +0 -207
- package/dist/data-structures/graph/directed-graph.js +0 -525
- package/dist/data-structures/graph/index.js +0 -20
- package/dist/data-structures/graph/map-graph.d.ts +0 -78
- package/dist/data-structures/graph/map-graph.js +0 -107
- package/dist/data-structures/graph/undirected-graph.d.ts +0 -188
- package/dist/data-structures/graph/undirected-graph.js +0 -424
- package/dist/data-structures/hash/hash-map.d.ts +0 -345
- package/dist/data-structures/hash/hash-map.js +0 -692
- package/dist/data-structures/hash/index.d.ts +0 -1
- package/dist/data-structures/hash/index.js +0 -17
- package/dist/data-structures/heap/heap.d.ts +0 -503
- package/dist/data-structures/heap/heap.js +0 -901
- package/dist/data-structures/heap/index.d.ts +0 -3
- package/dist/data-structures/heap/index.js +0 -19
- package/dist/data-structures/heap/max-heap.d.ts +0 -32
- package/dist/data-structures/heap/max-heap.js +0 -40
- package/dist/data-structures/heap/min-heap.d.ts +0 -33
- package/dist/data-structures/heap/min-heap.js +0 -31
- package/dist/data-structures/index.js +0 -28
- package/dist/data-structures/linked-list/doubly-linked-list.d.ts +0 -769
- package/dist/data-structures/linked-list/doubly-linked-list.js +0 -1111
- package/dist/data-structures/linked-list/index.js +0 -19
- package/dist/data-structures/linked-list/singly-linked-list.d.ts +0 -451
- package/dist/data-structures/linked-list/singly-linked-list.js +0 -850
- package/dist/data-structures/linked-list/skip-linked-list.d.ts +0 -27
- package/dist/data-structures/linked-list/skip-linked-list.js +0 -144
- package/dist/data-structures/matrix/index.js +0 -18
- package/dist/data-structures/matrix/matrix.d.ts +0 -168
- package/dist/data-structures/matrix/matrix.js +0 -448
- package/dist/data-structures/matrix/navigator.d.ts +0 -55
- package/dist/data-structures/matrix/navigator.js +0 -111
- package/dist/data-structures/priority-queue/index.js +0 -19
- package/dist/data-structures/priority-queue/max-priority-queue.d.ts +0 -27
- package/dist/data-structures/priority-queue/max-priority-queue.js +0 -34
- package/dist/data-structures/priority-queue/min-priority-queue.d.ts +0 -26
- package/dist/data-structures/priority-queue/min-priority-queue.js +0 -24
- package/dist/data-structures/priority-queue/priority-queue.d.ts +0 -15
- package/dist/data-structures/priority-queue/priority-queue.js +0 -20
- package/dist/data-structures/queue/deque.d.ts +0 -431
- package/dist/data-structures/queue/deque.js +0 -879
- package/dist/data-structures/queue/index.js +0 -18
- package/dist/data-structures/queue/queue.d.ts +0 -308
- package/dist/data-structures/queue/queue.js +0 -473
- package/dist/data-structures/stack/index.js +0 -17
- package/dist/data-structures/stack/stack.d.ts +0 -306
- package/dist/data-structures/stack/stack.js +0 -401
- package/dist/data-structures/tree/index.js +0 -17
- package/dist/data-structures/tree/tree.d.ts +0 -62
- package/dist/data-structures/tree/tree.js +0 -107
- package/dist/data-structures/trie/index.js +0 -17
- package/dist/data-structures/trie/trie.d.ts +0 -350
- package/dist/data-structures/trie/trie.js +0 -610
- package/dist/index.d.ts +0 -18
- package/dist/index.js +0 -34
- package/dist/interfaces/binary-tree.js +0 -2
- package/dist/interfaces/doubly-linked-list.js +0 -2
- package/dist/interfaces/graph.js +0 -2
- package/dist/interfaces/heap.js +0 -2
- package/dist/interfaces/index.js +0 -24
- package/dist/interfaces/navigator.js +0 -2
- package/dist/interfaces/priority-queue.js +0 -2
- package/dist/interfaces/segment-tree.js +0 -2
- package/dist/interfaces/singly-linked-list.js +0 -2
- package/dist/types/common.js +0 -2
- package/dist/types/data-structures/base/base.js +0 -2
- package/dist/types/data-structures/base/index.js +0 -17
- package/dist/types/data-structures/binary-tree/avl-tree-counter.js +0 -2
- package/dist/types/data-structures/binary-tree/avl-tree-multi-map.js +0 -2
- package/dist/types/data-structures/binary-tree/avl-tree.js +0 -2
- package/dist/types/data-structures/binary-tree/binary-indexed-tree.js +0 -2
- package/dist/types/data-structures/binary-tree/binary-tree.js +0 -2
- package/dist/types/data-structures/binary-tree/bst.js +0 -2
- package/dist/types/data-structures/binary-tree/index.js +0 -25
- package/dist/types/data-structures/binary-tree/red-black-tree.js +0 -2
- package/dist/types/data-structures/binary-tree/segment-tree.js +0 -2
- package/dist/types/data-structures/binary-tree/tree-counter.js +0 -2
- package/dist/types/data-structures/binary-tree/tree-multi-map.js +0 -2
- package/dist/types/data-structures/graph/abstract-graph.js +0 -2
- package/dist/types/data-structures/graph/directed-graph.js +0 -2
- package/dist/types/data-structures/graph/index.js +0 -19
- package/dist/types/data-structures/graph/map-graph.js +0 -2
- package/dist/types/data-structures/graph/undirected-graph.js +0 -2
- package/dist/types/data-structures/hash/hash-map.js +0 -2
- package/dist/types/data-structures/hash/index.js +0 -17
- package/dist/types/data-structures/heap/heap.js +0 -2
- package/dist/types/data-structures/heap/index.js +0 -17
- package/dist/types/data-structures/heap/max-heap.js +0 -2
- package/dist/types/data-structures/heap/min-heap.js +0 -2
- package/dist/types/data-structures/index.js +0 -28
- package/dist/types/data-structures/linked-list/doubly-linked-list.js +0 -2
- package/dist/types/data-structures/linked-list/index.js +0 -19
- package/dist/types/data-structures/linked-list/singly-linked-list.js +0 -2
- package/dist/types/data-structures/linked-list/skip-linked-list.js +0 -2
- package/dist/types/data-structures/matrix/index.js +0 -18
- package/dist/types/data-structures/matrix/matrix.js +0 -2
- package/dist/types/data-structures/matrix/navigator.js +0 -2
- package/dist/types/data-structures/priority-queue/index.js +0 -19
- package/dist/types/data-structures/priority-queue/max-priority-queue.js +0 -2
- package/dist/types/data-structures/priority-queue/min-priority-queue.js +0 -2
- package/dist/types/data-structures/priority-queue/priority-queue.js +0 -2
- package/dist/types/data-structures/queue/deque.js +0 -2
- package/dist/types/data-structures/queue/index.js +0 -18
- package/dist/types/data-structures/queue/queue.js +0 -2
- package/dist/types/data-structures/stack/index.js +0 -17
- package/dist/types/data-structures/stack/stack.js +0 -2
- package/dist/types/data-structures/tree/index.js +0 -17
- package/dist/types/data-structures/tree/tree.js +0 -2
- package/dist/types/data-structures/trie/index.js +0 -17
- package/dist/types/data-structures/trie/trie.js +0 -2
- package/dist/types/index.js +0 -19
- package/dist/types/utils/index.js +0 -18
- package/dist/types/utils/utils.js +0 -2
- package/dist/types/utils/validate-type.js +0 -2
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils/index.js +0 -18
- package/dist/utils/number.js +0 -24
- package/dist/utils/utils.d.ts +0 -209
- package/dist/utils/utils.js +0 -353
- package/dist/{common → types/common}/index.d.ts +0 -0
- package/dist/{constants → types/constants}/index.d.ts +0 -0
- package/dist/{data-structures → types/data-structures}/base/iterable-element-base.d.ts +0 -0
- package/dist/{data-structures → types/data-structures}/base/iterable-entry-base.d.ts +0 -0
- package/dist/{data-structures → types/data-structures}/base/linear-base.d.ts +0 -0
- package/dist/{interfaces → types/interfaces}/doubly-linked-list.d.ts +0 -0
- package/dist/{interfaces → types/interfaces}/graph.d.ts +0 -0
- package/dist/{interfaces → types/interfaces}/heap.d.ts +0 -0
- package/dist/{interfaces → types/interfaces}/index.d.ts +0 -0
- package/dist/{interfaces → types/interfaces}/navigator.d.ts +0 -0
- package/dist/{interfaces → types/interfaces}/priority-queue.d.ts +0 -0
- package/dist/{interfaces → types/interfaces}/segment-tree.d.ts +0 -0
- package/dist/{interfaces → types/interfaces}/singly-linked-list.d.ts +0 -0
- package/dist/types/{common.d.ts → types/common.d.ts} +0 -0
- package/dist/types/{data-structures → types/data-structures}/base/base.d.ts +0 -0
- package/dist/{data-structures → types/types/data-structures}/index.d.ts +7 -7
- package/dist/{data-structures → types/types/data-structures}/linked-list/index.d.ts +0 -0
- package/dist/{data-structures → types/types/data-structures}/matrix/index.d.ts +1 -1
- /package/dist/{data-structures → types/types/data-structures}/priority-queue/index.d.ts +0 -0
- /package/dist/{data-structures → types/types/data-structures}/queue/index.d.ts +0 -0
- /package/dist/{data-structures → types/types/data-structures}/stack/index.d.ts +0 -0
- /package/dist/{data-structures → types/types/data-structures}/tree/index.d.ts +0 -0
- /package/dist/{data-structures → types/types/data-structures}/trie/index.d.ts +0 -0
- /package/dist/types/{utils → types/utils}/validate-type.d.ts +0 -0
- /package/dist/{utils → types/utils}/number.d.ts +0 -0
|
@@ -6,7 +6,15 @@
|
|
|
6
6
|
* @license MIT License
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import type {
|
|
9
|
+
import type {
|
|
10
|
+
BTNOptKeyOrNull,
|
|
11
|
+
ElemOf,
|
|
12
|
+
EntryCallback,
|
|
13
|
+
FamilyPosition,
|
|
14
|
+
RBTNColor,
|
|
15
|
+
RedBlackTreeOptions,
|
|
16
|
+
TreeMultiMapOptions
|
|
17
|
+
} from '../../types';
|
|
10
18
|
import { RedBlackTree, RedBlackTreeNode } from './red-black-tree';
|
|
11
19
|
import { IBinaryTree } from '../../interfaces';
|
|
12
20
|
|
|
@@ -16,8 +24,10 @@ import { IBinaryTree } from '../../interfaces';
|
|
|
16
24
|
* @template K
|
|
17
25
|
* @template V
|
|
18
26
|
*/
|
|
19
|
-
export class TreeMultiMapNode<K = any, V = any>
|
|
20
|
-
|
|
27
|
+
export class TreeMultiMapNode<K = any, V = any> {
|
|
28
|
+
key: K;
|
|
29
|
+
value?: V[];
|
|
30
|
+
parent?: TreeMultiMapNode<K, V> = undefined;
|
|
21
31
|
|
|
22
32
|
/**
|
|
23
33
|
* Create a TreeMultiMap node with an optional value bucket.
|
|
@@ -26,18 +36,20 @@ export class TreeMultiMapNode<K = any, V = any> extends RedBlackTreeNode<K, V[]>
|
|
|
26
36
|
* @param [value] - Initial array of values.
|
|
27
37
|
* @returns New TreeMultiMapNode instance.
|
|
28
38
|
*/
|
|
29
|
-
constructor(key: K, value
|
|
30
|
-
|
|
39
|
+
constructor(key: K, value: V[] = [], color: RBTNColor = 'BLACK') {
|
|
40
|
+
this.key = key;
|
|
41
|
+
this.value = value;
|
|
42
|
+
this.color = color;
|
|
31
43
|
}
|
|
32
44
|
|
|
33
|
-
|
|
45
|
+
_left?: TreeMultiMapNode<K, V> | null | undefined = undefined;
|
|
34
46
|
|
|
35
47
|
/**
|
|
36
48
|
* Get the left child pointer.
|
|
37
49
|
* @remarks Time O(1), Space O(1)
|
|
38
50
|
* @returns Left child node, or null/undefined.
|
|
39
51
|
*/
|
|
40
|
-
|
|
52
|
+
get left(): TreeMultiMapNode<K, V> | null | undefined {
|
|
41
53
|
return this._left;
|
|
42
54
|
}
|
|
43
55
|
|
|
@@ -47,21 +59,21 @@ export class TreeMultiMapNode<K = any, V = any> extends RedBlackTreeNode<K, V[]>
|
|
|
47
59
|
* @param v - New left child node, or null/undefined.
|
|
48
60
|
* @returns void
|
|
49
61
|
*/
|
|
50
|
-
|
|
62
|
+
set left(v: TreeMultiMapNode<K, V> | null | undefined) {
|
|
51
63
|
if (v) {
|
|
52
64
|
v.parent = this;
|
|
53
65
|
}
|
|
54
66
|
this._left = v;
|
|
55
67
|
}
|
|
56
68
|
|
|
57
|
-
|
|
69
|
+
_right?: TreeMultiMapNode<K, V> | null | undefined = undefined;
|
|
58
70
|
|
|
59
71
|
/**
|
|
60
72
|
* Get the right child pointer.
|
|
61
73
|
* @remarks Time O(1), Space O(1)
|
|
62
74
|
* @returns Right child node, or null/undefined.
|
|
63
75
|
*/
|
|
64
|
-
|
|
76
|
+
get right(): TreeMultiMapNode<K, V> | null | undefined {
|
|
65
77
|
return this._right;
|
|
66
78
|
}
|
|
67
79
|
|
|
@@ -71,12 +83,98 @@ export class TreeMultiMapNode<K = any, V = any> extends RedBlackTreeNode<K, V[]>
|
|
|
71
83
|
* @param v - New right child node, or null/undefined.
|
|
72
84
|
* @returns void
|
|
73
85
|
*/
|
|
74
|
-
|
|
86
|
+
set right(v: TreeMultiMapNode<K, V> | null | undefined) {
|
|
75
87
|
if (v) {
|
|
76
88
|
v.parent = this;
|
|
77
89
|
}
|
|
78
90
|
this._right = v;
|
|
79
91
|
}
|
|
92
|
+
|
|
93
|
+
_height: number = 0;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Gets the height of the node (used in self-balancing trees).
|
|
97
|
+
* @remarks Time O(1), Space O(1)
|
|
98
|
+
*
|
|
99
|
+
* @returns The height.
|
|
100
|
+
*/
|
|
101
|
+
get height(): number {
|
|
102
|
+
return this._height;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Sets the height of the node.
|
|
107
|
+
* @remarks Time O(1), Space O(1)
|
|
108
|
+
*
|
|
109
|
+
* @param value - The new height.
|
|
110
|
+
*/
|
|
111
|
+
set height(value: number) {
|
|
112
|
+
this._height = value;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
_color: RBTNColor = 'BLACK';
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Gets the color of the node (used in Red-Black trees).
|
|
119
|
+
* @remarks Time O(1), Space O(1)
|
|
120
|
+
*
|
|
121
|
+
* @returns The node's color.
|
|
122
|
+
*/
|
|
123
|
+
get color(): RBTNColor {
|
|
124
|
+
return this._color;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Sets the color of the node.
|
|
129
|
+
* @remarks Time O(1), Space O(1)
|
|
130
|
+
*
|
|
131
|
+
* @param value - The new color.
|
|
132
|
+
*/
|
|
133
|
+
set color(value: RBTNColor) {
|
|
134
|
+
this._color = value;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
_count: number = 1;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Gets the count of nodes in the subtree rooted at this node (used in order-statistic trees).
|
|
141
|
+
* @remarks Time O(1), Space O(1)
|
|
142
|
+
*
|
|
143
|
+
* @returns The subtree node count.
|
|
144
|
+
*/
|
|
145
|
+
get count(): number {
|
|
146
|
+
return this._count;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Sets the count of nodes in the subtree.
|
|
151
|
+
* @remarks Time O(1), Space O(1)
|
|
152
|
+
*
|
|
153
|
+
* @param value - The new count.
|
|
154
|
+
*/
|
|
155
|
+
set count(value: number) {
|
|
156
|
+
this._count = value;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Gets the position of the node relative to its parent.
|
|
161
|
+
* @remarks Time O(1), Space O(1)
|
|
162
|
+
*
|
|
163
|
+
* @returns The family position (e.g., 'ROOT', 'LEFT', 'RIGHT').
|
|
164
|
+
*/
|
|
165
|
+
get familyPosition(): FamilyPosition {
|
|
166
|
+
if (!this.parent) {
|
|
167
|
+
return this.left || this.right ? 'ROOT' : 'ISOLATED';
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
if (this.parent.left === this) {
|
|
171
|
+
return this.left || this.right ? 'ROOT_LEFT' : 'LEFT';
|
|
172
|
+
} else if (this.parent.right === this) {
|
|
173
|
+
return this.left || this.right ? 'ROOT_RIGHT' : 'RIGHT';
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
return 'MAL_NODE';
|
|
177
|
+
}
|
|
80
178
|
}
|
|
81
179
|
|
|
82
180
|
/**
|
|
@@ -270,10 +368,23 @@ export class TreeMultiMap<K = any, V = any, R = any> extends RedBlackTree<K, V[]
|
|
|
270
368
|
}
|
|
271
369
|
}
|
|
272
370
|
|
|
273
|
-
override
|
|
371
|
+
override createNode(key: K, value: V[] = []): TreeMultiMapNode<K, V> {
|
|
274
372
|
return new TreeMultiMapNode<K, V>(key, this._isMapMode ? [] : value);
|
|
275
373
|
}
|
|
276
374
|
|
|
375
|
+
/**
|
|
376
|
+
* Checks if the given item is a `TreeMultiMapNode` instance.
|
|
377
|
+
* @remarks Time O(1), Space O(1)
|
|
378
|
+
*
|
|
379
|
+
* @param keyNodeOrEntry - The item to check.
|
|
380
|
+
* @returns True if it's a TreeMultiMapNode, false otherwise.
|
|
381
|
+
*/
|
|
382
|
+
override isNode(
|
|
383
|
+
keyNodeOrEntry: K | TreeMultiMapNode<K, V> | [K | null | undefined, V[] | undefined] | null | undefined
|
|
384
|
+
): keyNodeOrEntry is TreeMultiMapNode<K, V> {
|
|
385
|
+
return keyNodeOrEntry instanceof TreeMultiMapNode;
|
|
386
|
+
}
|
|
387
|
+
|
|
277
388
|
override add(
|
|
278
389
|
keyNodeOrEntry: K | TreeMultiMapNode<K, V> | [K | null | undefined, V[] | undefined] | null | undefined
|
|
279
390
|
): boolean;
|
|
@@ -50,11 +50,11 @@ export abstract class AbstractEdge<E = any> {
|
|
|
50
50
|
* @example examples will be generated by unit test
|
|
51
51
|
*/
|
|
52
52
|
export abstract class AbstractGraph<
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
V = any,
|
|
54
|
+
E = any,
|
|
55
|
+
VO extends AbstractVertex<V> = AbstractVertex<V>,
|
|
56
|
+
EO extends AbstractEdge<E> = AbstractEdge<E>
|
|
57
|
+
>
|
|
58
58
|
extends IterableEntryBase<VertexKey, V | undefined>
|
|
59
59
|
implements IGraph<V, E, VO, EO>
|
|
60
60
|
{
|
|
@@ -38,11 +38,11 @@ export class DirectedEdge<E = any> extends AbstractEdge<E> {
|
|
|
38
38
|
* @example examples will be generated by unit test
|
|
39
39
|
*/
|
|
40
40
|
export class DirectedGraph<
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
V = any,
|
|
42
|
+
E = any,
|
|
43
|
+
VO extends DirectedVertex<V> = DirectedVertex<V>,
|
|
44
|
+
EO extends DirectedEdge<E> = DirectedEdge<E>
|
|
45
|
+
>
|
|
46
46
|
extends AbstractGraph<V, E, VO, EO>
|
|
47
47
|
implements IGraph<V, E, VO, EO>
|
|
48
48
|
{
|
|
@@ -36,11 +36,11 @@ export class UndirectedEdge<E = number> extends AbstractEdge<E> {
|
|
|
36
36
|
* @example examples will be generated by unit test
|
|
37
37
|
*/
|
|
38
38
|
export class UndirectedGraph<
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
V = any,
|
|
40
|
+
E = any,
|
|
41
|
+
VO extends UndirectedVertex<V> = UndirectedVertex<V>,
|
|
42
|
+
EO extends UndirectedEdge<E> = UndirectedEdge<E>
|
|
43
|
+
>
|
|
44
44
|
extends AbstractGraph<V, E, VO, EO>
|
|
45
45
|
implements IGraph<V, E, VO, EO>
|
|
46
46
|
{
|
|
@@ -190,7 +190,7 @@ import { IterableElementBase } from '../base';
|
|
|
190
190
|
* ]);
|
|
191
191
|
* console.log(scheduleTasks(tasks, 2)); // expectedMap
|
|
192
192
|
*/
|
|
193
|
-
export class Heap<E =
|
|
193
|
+
export class Heap<E = any, R = any> extends IterableElementBase<E, R> {
|
|
194
194
|
protected _equals: (a: E, b: E) => boolean = Object.is;
|
|
195
195
|
|
|
196
196
|
/**
|
|
@@ -255,7 +255,7 @@ export class Heap<E = unknown, R = never> extends IterableElementBase<E, R> {
|
|
|
255
255
|
* @returns A new heap instance of this class.
|
|
256
256
|
*/
|
|
257
257
|
|
|
258
|
-
static from<T, R =
|
|
258
|
+
static from<T, R = any, S extends Heap<T, R> = Heap<T, R>>(
|
|
259
259
|
this: new (elements?: Iterable<T | R>, options?: HeapOptions<T, R>) => S,
|
|
260
260
|
elements?: Iterable<T | R>,
|
|
261
261
|
options?: HeapOptions<T, R>
|
|
@@ -273,7 +273,7 @@ export class Heap<E = unknown, R = never> extends IterableElementBase<E, R> {
|
|
|
273
273
|
* @returns A new Heap built from elements.
|
|
274
274
|
*/
|
|
275
275
|
|
|
276
|
-
static heapify<EE =
|
|
276
|
+
static heapify<EE = any, RR = any>(elements: Iterable<EE>, options: HeapOptions<EE, RR>): Heap<EE, RR> {
|
|
277
277
|
return new Heap<EE, RR>(elements, options);
|
|
278
278
|
}
|
|
279
279
|
|
|
@@ -788,7 +788,7 @@ export class FibonacciHeap<E> {
|
|
|
788
788
|
*/
|
|
789
789
|
|
|
790
790
|
push(element: E): this {
|
|
791
|
-
const node = this.
|
|
791
|
+
const node = this.createNode(element);
|
|
792
792
|
node.left = node;
|
|
793
793
|
node.right = node;
|
|
794
794
|
this.mergeWithRoot(node);
|
|
@@ -900,7 +900,7 @@ export class FibonacciHeap<E> {
|
|
|
900
900
|
heapToMerge.clear();
|
|
901
901
|
}
|
|
902
902
|
|
|
903
|
-
|
|
903
|
+
createNode(element: E): FibonacciHeapNode<E> {
|
|
904
904
|
return new FibonacciHeapNode<E>(element);
|
|
905
905
|
}
|
|
906
906
|
|
|
@@ -781,7 +781,7 @@ export class SinglyLinkedList<E = any, R = any> extends LinearLinkedBase<E, R, S
|
|
|
781
781
|
* @returns A new SinglyLinkedListNode instance.
|
|
782
782
|
*/
|
|
783
783
|
|
|
784
|
-
protected
|
|
784
|
+
protected createNode(value: E): SinglyLinkedListNode<E> {
|
|
785
785
|
return new SinglyLinkedListNode<E>(value);
|
|
786
786
|
}
|
|
787
787
|
|
|
@@ -807,7 +807,7 @@ export class SinglyLinkedList<E = any, R = any> extends LinearLinkedBase<E, R, S
|
|
|
807
807
|
|
|
808
808
|
protected _ensureNode(elementOrNode: E | SinglyLinkedListNode<E>) {
|
|
809
809
|
if (this.isNode(elementOrNode)) return elementOrNode;
|
|
810
|
-
return this.
|
|
810
|
+
return this.createNode(elementOrNode);
|
|
811
811
|
}
|
|
812
812
|
|
|
813
813
|
/**
|
|
@@ -32,7 +32,7 @@ export interface IBinaryTree<K = any, V = any, R = any> {
|
|
|
32
32
|
readonly isDuplicate: boolean;
|
|
33
33
|
|
|
34
34
|
// ---- construction / mutation ----
|
|
35
|
-
|
|
35
|
+
createNode(key: K, value?: BinaryTreeNode<K, V>['value']): BinaryTreeNode<K, V>;
|
|
36
36
|
|
|
37
37
|
createTree(options?: Partial<BinaryTreeOptions<K, V, R>>): IBinaryTree<K, V, R>;
|
|
38
38
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"allowJs": true,
|
|
4
|
+
"allowSyntheticDefaultImports": true,
|
|
5
|
+
"baseUrl": "./",
|
|
6
|
+
"declaration": true,
|
|
7
|
+
"esModuleInterop": true,
|
|
8
|
+
"inlineSourceMap": false,
|
|
9
|
+
"lib": ["esnext"],
|
|
10
|
+
"listEmittedFiles": false,
|
|
11
|
+
"listFiles": false,
|
|
12
|
+
"noFallthroughCasesInSwitch": true,
|
|
13
|
+
"pretty": true,
|
|
14
|
+
"resolveJsonModule": true,
|
|
15
|
+
"skipLibCheck": true,
|
|
16
|
+
"strict": true,
|
|
17
|
+
"traceResolution": false,
|
|
18
|
+
"noImplicitOverride": true,
|
|
19
|
+
"types": ["node"]
|
|
20
|
+
},
|
|
21
|
+
"compileOnSave": false,
|
|
22
|
+
"exclude": ["node_modules", "dist"]
|
|
23
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,38 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
+
"extends": "./tsconfig.base.json",
|
|
2
3
|
"compilerOptions": {
|
|
3
|
-
"
|
|
4
|
-
"outDir": "
|
|
5
|
-
"module": "
|
|
6
|
-
"target": "
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
"esnext"
|
|
10
|
-
],
|
|
11
|
-
"strict": true,
|
|
12
|
-
"esModuleInterop": true,
|
|
13
|
-
"moduleResolution": "node",
|
|
14
|
-
"declarationDir": "./dist",
|
|
15
|
-
"skipLibCheck": true,
|
|
16
|
-
"downlevelIteration": true,
|
|
17
|
-
"experimentalDecorators": true,
|
|
18
|
-
// "allowJs": true,
|
|
19
|
-
// "allowSyntheticDefaultImports": true,
|
|
20
|
-
// "forceConsistentCasingInFileNames": true,
|
|
21
|
-
// "noFallthroughCasesInSwitch": true,
|
|
22
|
-
// "resolveJsonModule": true,
|
|
23
|
-
// "isolatedModules": true,
|
|
24
|
-
// "noEmit": true,
|
|
25
|
-
"typeRoots": [
|
|
26
|
-
"node_modules/@types"
|
|
27
|
-
]
|
|
4
|
+
"rootDir": "./",
|
|
5
|
+
"outDir": "dist/dev",
|
|
6
|
+
"module": "NodeNext",
|
|
7
|
+
"target": "ESNext",
|
|
8
|
+
"moduleResolution": "NodeNext",
|
|
9
|
+
"sourceMap": true
|
|
28
10
|
},
|
|
29
|
-
"include": [
|
|
30
|
-
"src"
|
|
31
|
-
],
|
|
32
|
-
"exclude": [
|
|
33
|
-
// "node_modules/data-structure-typed",
|
|
34
|
-
"node_modules",
|
|
35
|
-
"dist"
|
|
36
|
-
]
|
|
11
|
+
"include": ["./src/**/*.ts"]
|
|
37
12
|
}
|
|
38
|
-
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.base.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "ES2018",
|
|
5
|
+
"lib": ["ES2018", "DOM"],
|
|
6
|
+
"module": "NodeNext",
|
|
7
|
+
"moduleResolution": "NodeNext",
|
|
8
|
+
"declaration": true,
|
|
9
|
+
"emitDeclarationOnly": true,
|
|
10
|
+
"declarationMap": false,
|
|
11
|
+
"outDir": "dist/types"
|
|
12
|
+
},
|
|
13
|
+
"include": ["./src/**/*.ts"],
|
|
14
|
+
"exclude": ["dist", "node_modules", "test"]
|
|
15
|
+
}
|
package/tsup.config.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineConfig } from 'tsup';
|
|
2
|
+
|
|
3
|
+
export default defineConfig([
|
|
4
|
+
{
|
|
5
|
+
entry: { "tree-multimap-typed": "src/index.ts" },
|
|
6
|
+
target: 'es2018',
|
|
7
|
+
format: ["iife"],
|
|
8
|
+
clean: true,
|
|
9
|
+
sourcemap: true,
|
|
10
|
+
minify: true,
|
|
11
|
+
outDir: "dist/umd",
|
|
12
|
+
globalName: "treeMultimapTyped",
|
|
13
|
+
platform: "browser",
|
|
14
|
+
outExtension: () => ({ js: '.min.js' }),
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
entry: { "tree-multimap-typed": "src/index.ts" },
|
|
18
|
+
target: 'es2018',
|
|
19
|
+
format: ["iife"],
|
|
20
|
+
clean: false,
|
|
21
|
+
sourcemap: true,
|
|
22
|
+
minify: false,
|
|
23
|
+
outDir: "dist/umd",
|
|
24
|
+
globalName: "treeMultimapTyped",
|
|
25
|
+
platform: "browser",
|
|
26
|
+
outExtension: () => ({ js: '.js' }),
|
|
27
|
+
}
|
|
28
|
+
]);
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { defineConfig } from "tsup";
|
|
2
|
+
|
|
3
|
+
export default defineConfig([
|
|
4
|
+
// ESM (modern) - ES2022
|
|
5
|
+
{
|
|
6
|
+
entry: { index: "src/index.ts" },
|
|
7
|
+
format: ["esm"],
|
|
8
|
+
outDir: "dist/esm",
|
|
9
|
+
splitting: false,
|
|
10
|
+
sourcemap: true,
|
|
11
|
+
minify: false,
|
|
12
|
+
keepNames: true,
|
|
13
|
+
treeshake: true,
|
|
14
|
+
clean: true,
|
|
15
|
+
target: "es2022",
|
|
16
|
+
outExtension() {
|
|
17
|
+
return { js: ".mjs" };
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
// ESM (legacy) - ES2018
|
|
22
|
+
{
|
|
23
|
+
entry: { index: "src/index.ts" },
|
|
24
|
+
format: ["esm"],
|
|
25
|
+
outDir: "dist/esm-legacy",
|
|
26
|
+
splitting: false,
|
|
27
|
+
sourcemap: true,
|
|
28
|
+
minify: false,
|
|
29
|
+
keepNames: true,
|
|
30
|
+
treeshake: true,
|
|
31
|
+
clean: false,
|
|
32
|
+
target: "es2018",
|
|
33
|
+
outExtension() {
|
|
34
|
+
return { js: ".mjs" };
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
|
|
38
|
+
// CJS (modern) - ES2022
|
|
39
|
+
{
|
|
40
|
+
entry: { index: "src/index.ts" },
|
|
41
|
+
format: ["cjs"],
|
|
42
|
+
outDir: "dist/cjs",
|
|
43
|
+
splitting: false,
|
|
44
|
+
sourcemap: true,
|
|
45
|
+
minify: false,
|
|
46
|
+
keepNames: true,
|
|
47
|
+
treeshake: true,
|
|
48
|
+
clean: false,
|
|
49
|
+
target: "es2022",
|
|
50
|
+
outExtension() {
|
|
51
|
+
return { js: ".cjs" };
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
// CJS (legacy) - ES2018
|
|
56
|
+
{
|
|
57
|
+
entry: { index: "src/index.ts" },
|
|
58
|
+
format: ["cjs"],
|
|
59
|
+
outDir: "dist/cjs-legacy",
|
|
60
|
+
splitting: false,
|
|
61
|
+
sourcemap: true,
|
|
62
|
+
minify: false,
|
|
63
|
+
keepNames: true,
|
|
64
|
+
treeshake: true,
|
|
65
|
+
clean: false,
|
|
66
|
+
target: "es2018",
|
|
67
|
+
outExtension() {
|
|
68
|
+
return { js: ".cjs" };
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
]);
|
package/dist/common/index.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Range = exports.DFSOperation = void 0;
|
|
4
|
-
const utils_1 = require("../utils");
|
|
5
|
-
var DFSOperation;
|
|
6
|
-
(function (DFSOperation) {
|
|
7
|
-
DFSOperation[DFSOperation["VISIT"] = 0] = "VISIT";
|
|
8
|
-
DFSOperation[DFSOperation["PROCESS"] = 1] = "PROCESS";
|
|
9
|
-
})(DFSOperation = exports.DFSOperation || (exports.DFSOperation = {}));
|
|
10
|
-
class Range {
|
|
11
|
-
constructor(low, high, includeLow = true, includeHigh = true) {
|
|
12
|
-
this.low = low;
|
|
13
|
-
this.high = high;
|
|
14
|
-
this.includeLow = includeLow;
|
|
15
|
-
this.includeHigh = includeHigh;
|
|
16
|
-
if (!((0, utils_1.isComparable)(low) && (0, utils_1.isComparable)(high)))
|
|
17
|
-
throw new RangeError('low or high is not comparable');
|
|
18
|
-
if (low > high)
|
|
19
|
-
throw new RangeError('low must be less than or equal to high');
|
|
20
|
-
}
|
|
21
|
-
// Determine whether a key is within the range
|
|
22
|
-
isInRange(key, comparator) {
|
|
23
|
-
const lowCheck = this.includeLow ? comparator(key, this.low) >= 0 : comparator(key, this.low) > 0;
|
|
24
|
-
const highCheck = this.includeHigh ? comparator(key, this.high) <= 0 : comparator(key, this.high) < 0;
|
|
25
|
-
return lowCheck && highCheck;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.Range = Range;
|
package/dist/constants/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DFSOperation = void 0;
|
|
4
|
-
var DFSOperation;
|
|
5
|
-
(function (DFSOperation) {
|
|
6
|
-
DFSOperation[DFSOperation["VISIT"] = 0] = "VISIT";
|
|
7
|
-
DFSOperation[DFSOperation["PROCESS"] = 1] = "PROCESS";
|
|
8
|
-
})(DFSOperation = exports.DFSOperation || (exports.DFSOperation = {}));
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./iterable-entry-base"), exports);
|
|
18
|
-
__exportStar(require("./iterable-element-base"), exports);
|