@highstate/designer 0.7.2 → 0.7.3

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.
Files changed (131) hide show
  1. package/package.json +14 -7
  2. package/.output/nitro.json +0 -15
  3. package/.output/public/_nuxt/1_b4y8eQ.js +0 -1
  4. package/.output/public/_nuxt/BjOhMR1f.js +0 -242
  5. package/.output/public/_nuxt/CPAAHz3G.js +0 -1
  6. package/.output/public/_nuxt/CmGpyJTe.js +0 -1
  7. package/.output/public/_nuxt/builds/latest.json +0 -1
  8. package/.output/public/_nuxt/builds/meta/f777d22c-e958-4e7c-865d-11bb8a560858.json +0 -1
  9. package/.output/public/_nuxt/entry.Vs8IncyG.css +0 -5
  10. package/.output/public/_nuxt/error-404.BJkSn6RI.css +0 -1
  11. package/.output/public/_nuxt/error-500.TOCKLquH.css +0 -1
  12. package/.output/public/_nuxt/materialdesignicons-webfont.B6OSyW2I.woff2 +0 -0
  13. package/.output/public/_nuxt/materialdesignicons-webfont.BpRar1d5.ttf +0 -0
  14. package/.output/public/_nuxt/materialdesignicons-webfont.Bvl3VxMs.woff +0 -0
  15. package/.output/public/_nuxt/materialdesignicons-webfont.TEmAk13K.eot +0 -0
  16. package/.output/public/favicon.ico +0 -0
  17. package/.output/public/libavoid.wasm +0 -0
  18. package/.output/public/robots.txt +0 -1
  19. package/.output/server/index.mjs +0 -11426
  20. package/.output/server/index.mjs.map +0 -1
  21. package/.output/server/node_modules/@babel/parser/lib/index.js +0 -14246
  22. package/.output/server/node_modules/@babel/parser/package.json +0 -50
  23. package/.output/server/node_modules/@trpc/server/dist/adapters/fetch/fetchRequestHandler.mjs +0 -74
  24. package/.output/server/node_modules/@trpc/server/dist/adapters/fetch/index.mjs +0 -1
  25. package/.output/server/node_modules/@trpc/server/dist/adapters/node-http/incomingMessageToRequest.mjs +0 -119
  26. package/.output/server/node_modules/@trpc/server/dist/adapters/node-http/index.mjs +0 -2
  27. package/.output/server/node_modules/@trpc/server/dist/adapters/node-http/nodeHTTPRequestHandler.mjs +0 -92
  28. package/.output/server/node_modules/@trpc/server/dist/adapters/node-http/writeResponse.mjs +0 -79
  29. package/.output/server/node_modules/@trpc/server/dist/index.mjs +0 -12
  30. package/.output/server/node_modules/@trpc/server/dist/observable/observable.mjs +0 -175
  31. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/createProxy.mjs +0 -73
  32. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/error/TRPCError.mjs +0 -79
  33. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/error/formatter.mjs +0 -5
  34. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/error/getErrorShape.mjs +0 -29
  35. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/abortError.mjs +0 -10
  36. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/contentType.mjs +0 -229
  37. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/getHTTPStatusCode.mjs +0 -76
  38. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/parseConnectionParams.mjs +0 -39
  39. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/resolveResponse.mjs +0 -570
  40. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/initTRPC.mjs +0 -80
  41. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/middleware.mjs +0 -90
  42. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/parser.mjs +0 -52
  43. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs +0 -198
  44. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/rootConfig.mjs +0 -6
  45. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/router.mjs +0 -278
  46. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/rpc/codes.mjs +0 -54
  47. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/jsonl.mjs +0 -603
  48. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/sse.mjs +0 -369
  49. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/tracked.mjs +0 -25
  50. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/asyncIterable.mjs +0 -165
  51. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/createDeferred.mjs +0 -15
  52. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/disposable.mjs +0 -43
  53. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/mergeAsyncIterables.mjs +0 -239
  54. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/readableStreamFrom.mjs +0 -23
  55. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/timerResource.mjs +0 -23
  56. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/withPing.mjs +0 -127
  57. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/transformer.mjs +0 -101
  58. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/utils.mjs +0 -83
  59. package/.output/server/node_modules/@trpc/server/dist/vendor/standard-schema-v1/error.mjs +0 -26
  60. package/.output/server/node_modules/@trpc/server/dist/vendor/unpromise/unpromise.mjs +0 -289
  61. package/.output/server/node_modules/@trpc/server/package.json +0 -156
  62. package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +0 -6690
  63. package/.output/server/node_modules/@vue/compiler-core/package.json +0 -58
  64. package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +0 -686
  65. package/.output/server/node_modules/@vue/compiler-dom/package.json +0 -57
  66. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +0 -1404
  67. package/.output/server/node_modules/@vue/compiler-ssr/package.json +0 -34
  68. package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +0 -1789
  69. package/.output/server/node_modules/@vue/reactivity/package.json +0 -55
  70. package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +0 -6654
  71. package/.output/server/node_modules/@vue/runtime-core/package.json +0 -52
  72. package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +0 -1669
  73. package/.output/server/node_modules/@vue/runtime-dom/package.json +0 -60
  74. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +0 -857
  75. package/.output/server/node_modules/@vue/server-renderer/package.json +0 -55
  76. package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +0 -594
  77. package/.output/server/node_modules/@vue/shared/package.json +0 -47
  78. package/.output/server/node_modules/devalue/index.js +0 -3
  79. package/.output/server/node_modules/devalue/package.json +0 -34
  80. package/.output/server/node_modules/devalue/src/base64.js +0 -110
  81. package/.output/server/node_modules/devalue/src/constants.js +0 -6
  82. package/.output/server/node_modules/devalue/src/parse.js +0 -160
  83. package/.output/server/node_modules/devalue/src/stringify.js +0 -232
  84. package/.output/server/node_modules/devalue/src/uneval.js +0 -351
  85. package/.output/server/node_modules/devalue/src/utils.js +0 -113
  86. package/.output/server/node_modules/entities/lib/decode.js +0 -536
  87. package/.output/server/node_modules/entities/lib/decode_codepoint.js +0 -76
  88. package/.output/server/node_modules/entities/lib/generated/decode-data-html.js +0 -9
  89. package/.output/server/node_modules/entities/lib/generated/decode-data-xml.js +0 -9
  90. package/.output/server/node_modules/entities/package.json +0 -90
  91. package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +0 -344
  92. package/.output/server/node_modules/estree-walker/package.json +0 -37
  93. package/.output/server/node_modules/hookable/dist/index.mjs +0 -290
  94. package/.output/server/node_modules/hookable/package.json +0 -49
  95. package/.output/server/node_modules/source-map-js/lib/array-set.js +0 -121
  96. package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +0 -140
  97. package/.output/server/node_modules/source-map-js/lib/base64.js +0 -67
  98. package/.output/server/node_modules/source-map-js/lib/binary-search.js +0 -111
  99. package/.output/server/node_modules/source-map-js/lib/mapping-list.js +0 -79
  100. package/.output/server/node_modules/source-map-js/lib/quick-sort.js +0 -132
  101. package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +0 -1188
  102. package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +0 -444
  103. package/.output/server/node_modules/source-map-js/lib/source-node.js +0 -413
  104. package/.output/server/node_modules/source-map-js/lib/util.js +0 -594
  105. package/.output/server/node_modules/source-map-js/package.json +0 -71
  106. package/.output/server/node_modules/source-map-js/source-map.js +0 -8
  107. package/.output/server/node_modules/ufo/dist/index.mjs +0 -630
  108. package/.output/server/node_modules/ufo/package.json +0 -47
  109. package/.output/server/node_modules/unhead/dist/plugins.mjs +0 -94
  110. package/.output/server/node_modules/unhead/dist/server.mjs +0 -220
  111. package/.output/server/node_modules/unhead/dist/shared/unhead.C13swrCa.mjs +0 -48
  112. package/.output/server/node_modules/unhead/dist/shared/unhead.CApf5sj3.mjs +0 -148
  113. package/.output/server/node_modules/unhead/dist/shared/unhead.Cp0iF6eN.mjs +0 -177
  114. package/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +0 -196
  115. package/.output/server/node_modules/unhead/dist/shared/unhead.DZbvapt-.mjs +0 -70
  116. package/.output/server/node_modules/unhead/dist/shared/unhead.DeCxexjU.mjs +0 -166
  117. package/.output/server/node_modules/unhead/dist/shared/unhead.Txd0XTIP.mjs +0 -172
  118. package/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +0 -38
  119. package/.output/server/node_modules/unhead/dist/utils.mjs +0 -5
  120. package/.output/server/node_modules/unhead/package.json +0 -101
  121. package/.output/server/node_modules/vue/dist/vue.cjs.js +0 -80
  122. package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +0 -66
  123. package/.output/server/node_modules/vue/index.js +0 -7
  124. package/.output/server/node_modules/vue/index.mjs +0 -1
  125. package/.output/server/node_modules/vue/package.json +0 -112
  126. package/.output/server/node_modules/vue/server-renderer/index.mjs +0 -1
  127. package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +0 -196
  128. package/.output/server/node_modules/vue-bundle-renderer/package.json +0 -50
  129. package/.output/server/node_modules/zod/lib/index.mjs +0 -4405
  130. package/.output/server/node_modules/zod/package.json +0 -122
  131. package/.output/server/package.json +0 -1
@@ -1,111 +0,0 @@
1
- /* -*- Mode: js; js-indent-level: 2; -*- */
2
- /*
3
- * Copyright 2011 Mozilla Foundation and contributors
4
- * Licensed under the New BSD license. See LICENSE or:
5
- * http://opensource.org/licenses/BSD-3-Clause
6
- */
7
-
8
- exports.GREATEST_LOWER_BOUND = 1;
9
- exports.LEAST_UPPER_BOUND = 2;
10
-
11
- /**
12
- * Recursive implementation of binary search.
13
- *
14
- * @param aLow Indices here and lower do not contain the needle.
15
- * @param aHigh Indices here and higher do not contain the needle.
16
- * @param aNeedle The element being searched for.
17
- * @param aHaystack The non-empty array being searched.
18
- * @param aCompare Function which takes two elements and returns -1, 0, or 1.
19
- * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or
20
- * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the
21
- * closest element that is smaller than or greater than the one we are
22
- * searching for, respectively, if the exact element cannot be found.
23
- */
24
- function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) {
25
- // This function terminates when one of the following is true:
26
- //
27
- // 1. We find the exact element we are looking for.
28
- //
29
- // 2. We did not find the exact element, but we can return the index of
30
- // the next-closest element.
31
- //
32
- // 3. We did not find the exact element, and there is no next-closest
33
- // element than the one we are searching for, so we return -1.
34
- var mid = Math.floor((aHigh - aLow) / 2) + aLow;
35
- var cmp = aCompare(aNeedle, aHaystack[mid], true);
36
- if (cmp === 0) {
37
- // Found the element we are looking for.
38
- return mid;
39
- }
40
- else if (cmp > 0) {
41
- // Our needle is greater than aHaystack[mid].
42
- if (aHigh - mid > 1) {
43
- // The element is in the upper half.
44
- return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias);
45
- }
46
-
47
- // The exact needle element was not found in this haystack. Determine if
48
- // we are in termination case (3) or (2) and return the appropriate thing.
49
- if (aBias == exports.LEAST_UPPER_BOUND) {
50
- return aHigh < aHaystack.length ? aHigh : -1;
51
- } else {
52
- return mid;
53
- }
54
- }
55
- else {
56
- // Our needle is less than aHaystack[mid].
57
- if (mid - aLow > 1) {
58
- // The element is in the lower half.
59
- return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias);
60
- }
61
-
62
- // we are in termination case (3) or (2) and return the appropriate thing.
63
- if (aBias == exports.LEAST_UPPER_BOUND) {
64
- return mid;
65
- } else {
66
- return aLow < 0 ? -1 : aLow;
67
- }
68
- }
69
- }
70
-
71
- /**
72
- * This is an implementation of binary search which will always try and return
73
- * the index of the closest element if there is no exact hit. This is because
74
- * mappings between original and generated line/col pairs are single points,
75
- * and there is an implicit region between each of them, so a miss just means
76
- * that you aren't on the very start of a region.
77
- *
78
- * @param aNeedle The element you are looking for.
79
- * @param aHaystack The array that is being searched.
80
- * @param aCompare A function which takes the needle and an element in the
81
- * array and returns -1, 0, or 1 depending on whether the needle is less
82
- * than, equal to, or greater than the element, respectively.
83
- * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or
84
- * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the
85
- * closest element that is smaller than or greater than the one we are
86
- * searching for, respectively, if the exact element cannot be found.
87
- * Defaults to 'binarySearch.GREATEST_LOWER_BOUND'.
88
- */
89
- exports.search = function search(aNeedle, aHaystack, aCompare, aBias) {
90
- if (aHaystack.length === 0) {
91
- return -1;
92
- }
93
-
94
- var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack,
95
- aCompare, aBias || exports.GREATEST_LOWER_BOUND);
96
- if (index < 0) {
97
- return -1;
98
- }
99
-
100
- // We have found either the exact element, or the next-closest element than
101
- // the one we are searching for. However, there may be more than one such
102
- // element. Make sure we always return the smallest of these.
103
- while (index - 1 >= 0) {
104
- if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) {
105
- break;
106
- }
107
- --index;
108
- }
109
-
110
- return index;
111
- };
@@ -1,79 +0,0 @@
1
- /* -*- Mode: js; js-indent-level: 2; -*- */
2
- /*
3
- * Copyright 2014 Mozilla Foundation and contributors
4
- * Licensed under the New BSD license. See LICENSE or:
5
- * http://opensource.org/licenses/BSD-3-Clause
6
- */
7
-
8
- var util = require('./util');
9
-
10
- /**
11
- * Determine whether mappingB is after mappingA with respect to generated
12
- * position.
13
- */
14
- function generatedPositionAfter(mappingA, mappingB) {
15
- // Optimized for most common case
16
- var lineA = mappingA.generatedLine;
17
- var lineB = mappingB.generatedLine;
18
- var columnA = mappingA.generatedColumn;
19
- var columnB = mappingB.generatedColumn;
20
- return lineB > lineA || lineB == lineA && columnB >= columnA ||
21
- util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0;
22
- }
23
-
24
- /**
25
- * A data structure to provide a sorted view of accumulated mappings in a
26
- * performance conscious manner. It trades a neglibable overhead in general
27
- * case for a large speedup in case of mappings being added in order.
28
- */
29
- function MappingList() {
30
- this._array = [];
31
- this._sorted = true;
32
- // Serves as infimum
33
- this._last = {generatedLine: -1, generatedColumn: 0};
34
- }
35
-
36
- /**
37
- * Iterate through internal items. This method takes the same arguments that
38
- * `Array.prototype.forEach` takes.
39
- *
40
- * NOTE: The order of the mappings is NOT guaranteed.
41
- */
42
- MappingList.prototype.unsortedForEach =
43
- function MappingList_forEach(aCallback, aThisArg) {
44
- this._array.forEach(aCallback, aThisArg);
45
- };
46
-
47
- /**
48
- * Add the given source mapping.
49
- *
50
- * @param Object aMapping
51
- */
52
- MappingList.prototype.add = function MappingList_add(aMapping) {
53
- if (generatedPositionAfter(this._last, aMapping)) {
54
- this._last = aMapping;
55
- this._array.push(aMapping);
56
- } else {
57
- this._sorted = false;
58
- this._array.push(aMapping);
59
- }
60
- };
61
-
62
- /**
63
- * Returns the flat, sorted array of mappings. The mappings are sorted by
64
- * generated position.
65
- *
66
- * WARNING: This method returns internal data without copying, for
67
- * performance. The return value must NOT be mutated, and should be treated as
68
- * an immutable borrow. If you want to take ownership, you must make your own
69
- * copy.
70
- */
71
- MappingList.prototype.toArray = function MappingList_toArray() {
72
- if (!this._sorted) {
73
- this._array.sort(util.compareByGeneratedPositionsInflated);
74
- this._sorted = true;
75
- }
76
- return this._array;
77
- };
78
-
79
- exports.MappingList = MappingList;
@@ -1,132 +0,0 @@
1
- /* -*- Mode: js; js-indent-level: 2; -*- */
2
- /*
3
- * Copyright 2011 Mozilla Foundation and contributors
4
- * Licensed under the New BSD license. See LICENSE or:
5
- * http://opensource.org/licenses/BSD-3-Clause
6
- */
7
-
8
- // It turns out that some (most?) JavaScript engines don't self-host
9
- // `Array.prototype.sort`. This makes sense because C++ will likely remain
10
- // faster than JS when doing raw CPU-intensive sorting. However, when using a
11
- // custom comparator function, calling back and forth between the VM's C++ and
12
- // JIT'd JS is rather slow *and* loses JIT type information, resulting in
13
- // worse generated code for the comparator function than would be optimal. In
14
- // fact, when sorting with a comparator, these costs outweigh the benefits of
15
- // sorting in C++. By using our own JS-implemented Quick Sort (below), we get
16
- // a ~3500ms mean speed-up in `bench/bench.html`.
17
-
18
- function SortTemplate(comparator) {
19
-
20
- /**
21
- * Swap the elements indexed by `x` and `y` in the array `ary`.
22
- *
23
- * @param {Array} ary
24
- * The array.
25
- * @param {Number} x
26
- * The index of the first item.
27
- * @param {Number} y
28
- * The index of the second item.
29
- */
30
- function swap(ary, x, y) {
31
- var temp = ary[x];
32
- ary[x] = ary[y];
33
- ary[y] = temp;
34
- }
35
-
36
- /**
37
- * Returns a random integer within the range `low .. high` inclusive.
38
- *
39
- * @param {Number} low
40
- * The lower bound on the range.
41
- * @param {Number} high
42
- * The upper bound on the range.
43
- */
44
- function randomIntInRange(low, high) {
45
- return Math.round(low + (Math.random() * (high - low)));
46
- }
47
-
48
- /**
49
- * The Quick Sort algorithm.
50
- *
51
- * @param {Array} ary
52
- * An array to sort.
53
- * @param {function} comparator
54
- * Function to use to compare two items.
55
- * @param {Number} p
56
- * Start index of the array
57
- * @param {Number} r
58
- * End index of the array
59
- */
60
- function doQuickSort(ary, comparator, p, r) {
61
- // If our lower bound is less than our upper bound, we (1) partition the
62
- // array into two pieces and (2) recurse on each half. If it is not, this is
63
- // the empty array and our base case.
64
-
65
- if (p < r) {
66
- // (1) Partitioning.
67
- //
68
- // The partitioning chooses a pivot between `p` and `r` and moves all
69
- // elements that are less than or equal to the pivot to the before it, and
70
- // all the elements that are greater than it after it. The effect is that
71
- // once partition is done, the pivot is in the exact place it will be when
72
- // the array is put in sorted order, and it will not need to be moved
73
- // again. This runs in O(n) time.
74
-
75
- // Always choose a random pivot so that an input array which is reverse
76
- // sorted does not cause O(n^2) running time.
77
- var pivotIndex = randomIntInRange(p, r);
78
- var i = p - 1;
79
-
80
- swap(ary, pivotIndex, r);
81
- var pivot = ary[r];
82
-
83
- // Immediately after `j` is incremented in this loop, the following hold
84
- // true:
85
- //
86
- // * Every element in `ary[p .. i]` is less than or equal to the pivot.
87
- //
88
- // * Every element in `ary[i+1 .. j-1]` is greater than the pivot.
89
- for (var j = p; j < r; j++) {
90
- if (comparator(ary[j], pivot, false) <= 0) {
91
- i += 1;
92
- swap(ary, i, j);
93
- }
94
- }
95
-
96
- swap(ary, i + 1, j);
97
- var q = i + 1;
98
-
99
- // (2) Recurse on each half.
100
-
101
- doQuickSort(ary, comparator, p, q - 1);
102
- doQuickSort(ary, comparator, q + 1, r);
103
- }
104
- }
105
-
106
- return doQuickSort;
107
- }
108
-
109
- function cloneSort(comparator) {
110
- let template = SortTemplate.toString();
111
- let templateFn = new Function(`return ${template}`)();
112
- return templateFn(comparator);
113
- }
114
-
115
- /**
116
- * Sort the given array in-place with the given comparator function.
117
- *
118
- * @param {Array} ary
119
- * An array to sort.
120
- * @param {function} comparator
121
- * Function to use to compare two items.
122
- */
123
-
124
- let sortCache = new WeakMap();
125
- exports.quickSort = function (ary, comparator, start = 0) {
126
- let doQuickSort = sortCache.get(comparator);
127
- if (doQuickSort === void 0) {
128
- doQuickSort = cloneSort(comparator);
129
- sortCache.set(comparator, doQuickSort);
130
- }
131
- doQuickSort(ary, comparator, start, ary.length - 1);
132
- };