@shopify/create-app 4.1.0 → 4.3.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.
Files changed (95) hide show
  1. package/dist/{acorn-B7Z74OJ7.js → acorn-MAWEBG4K.js} +4 -4
  2. package/dist/analytics-3PMXYIP7.js +39 -0
  3. package/dist/analytics-UKSMSQBS.js +33 -0
  4. package/dist/angular-75GZFSHJ.js +3117 -0
  5. package/dist/{babel-CJ53QMMG.js → babel-KZNQAA3R.js} +4 -4
  6. package/dist/{chokidar-HTKREZL3.js → chokidar-JYHMNWDF.js} +4 -4
  7. package/dist/{chunk-TVUF42MB.js → chunk-3HO4OGB2.js} +4 -4
  8. package/dist/{chunk-PKR7KJ6P.js → chunk-3XNI6LP4.js} +13 -4
  9. package/dist/{chunk-A6TJPMVH.js → chunk-5UUZHSUY.js} +28 -28
  10. package/dist/{chunk-SWITKWBS.js → chunk-76IXOUER.js} +4 -4
  11. package/dist/{chunk-DJW2W7VA.js → chunk-7OHJH7BF.js} +2 -2
  12. package/dist/{chunk-DWGHKWV5.js → chunk-BEUNBVME.js} +21 -21
  13. package/dist/{chunk-32DG2OXV.js → chunk-BL35W5EH.js} +25 -18
  14. package/dist/{chunk-S4YEA2XG.js → chunk-BLEIVACU.js} +10911 -2155
  15. package/dist/{chunk-ACS6S42W.js → chunk-C3J4HVUN.js} +2 -2
  16. package/dist/{chunk-OO33NRTL.js → chunk-D6NYWNY2.js} +2 -2
  17. package/dist/{chunk-C5OLLQWI.js → chunk-EBLNNEPP.js} +61 -55
  18. package/dist/{chunk-VBBBCVMH.js → chunk-G53O4PDO.js} +2 -2
  19. package/dist/{chunk-CEGG2EWP.js → chunk-GYXZK243.js} +3 -3
  20. package/dist/{chunk-7IK72W75.js → chunk-HABWQC37.js} +2 -2
  21. package/dist/{chunk-PVHOBK32.js → chunk-HIWQ3G6P.js} +10 -7
  22. package/dist/{chunk-BMI6QCMV.js → chunk-HJATSDRW.js} +560 -898
  23. package/dist/{chunk-PES3XMQM.js → chunk-JGGOQOPO.js} +2 -2
  24. package/dist/{chunk-UX6FRPFM.js → chunk-KWG6VAVE.js} +592 -351
  25. package/dist/{chunk-G2ZZKGSV.js → chunk-LBXDGVFS.js} +2 -2
  26. package/dist/{chunk-CE4S2SGM.js → chunk-LDYT4FTV.js} +233 -152
  27. package/dist/{chunk-TS6LOJXS.js → chunk-LQOISCOF.js} +31 -30
  28. package/dist/{chunk-JCETIRLI.js → chunk-MSED5ZFM.js} +2 -2
  29. package/dist/{chunk-X2WZCKNE.js → chunk-ODCXYGJ2.js} +3 -3
  30. package/dist/{chunk-AROS7RI6.js → chunk-OE3FSIHW.js} +3 -3
  31. package/dist/{chunk-MIECGF3H.js → chunk-OFTMFPMR.js} +6 -6
  32. package/dist/{chunk-6OOTYTVB.js → chunk-OQ3KXXGH.js} +219 -110
  33. package/dist/{chunk-X7YTIMNN.js → chunk-RIQNGBMO.js} +2 -2
  34. package/dist/{chunk-JT5MT2JE.js → chunk-WJSRZNB2.js} +10 -10
  35. package/dist/{chunk-RB7BXTZQ.js → chunk-ZNNK6ZF5.js} +140 -140
  36. package/dist/{chunk-7OFS6B2C.js → chunk-ZTXAANY4.js} +3 -3
  37. package/dist/{conf-store-R26LOTXD.js → conf-store-HDH4Y2F3.js} +15 -15
  38. package/dist/{custom-oclif-loader-354VAVF4.js → custom-oclif-loader-7BTLNXYR.js} +8 -8
  39. package/dist/{deprecations-JWETMJFF.js → deprecations-AREYHAI7.js} +19 -19
  40. package/dist/{devtools-4EY2MEDN.js → devtools-MQLG4C6G.js} +3 -3
  41. package/dist/dist-CECUBBYR.js +510 -0
  42. package/dist/environments-C3Z4TCZS.js +26 -0
  43. package/dist/error-handler-C3IHDYS6.js +37 -0
  44. package/dist/{estree-UBDGCTT2.js → estree-5HWY3OB4.js} +5 -5
  45. package/dist/{flow-FUOSTAYW.js → flow-2RRPTAWK.js} +4 -4
  46. package/dist/{fs-HPLMOQQD.js → fs-BANPZ2MD.js} +8 -8
  47. package/dist/{glimmer-XBFG6K3P.js → glimmer-CEC5WUBW.js} +4 -4
  48. package/dist/{graphql-C5WOGPMM.js → graphql-HWYKHSDS.js} +4 -4
  49. package/dist/hooks/postrun.js +9 -9
  50. package/dist/hooks/prerun.js +7 -7
  51. package/dist/{html-QRIT6TOU.js → html-QFC3GCRO.js} +925 -831
  52. package/dist/{http-proxy-node16-XB2DSBCB.js → http-proxy-node16-5LMQ6YXS.js} +4 -4
  53. package/dist/index.js +6619 -5437
  54. package/dist/index.test.js +7252 -8137
  55. package/dist/{is-global-OXCPPXM7.js → is-global-G56KES2Y.js} +8 -8
  56. package/dist/{is-wsl-YAJ3DFN7.js → is-wsl-63MHD6QC.js} +7 -6
  57. package/dist/{latest-version-3PFKLJZM.js → latest-version-6X5NXQEO.js} +4 -4
  58. package/dist/lib-NKDE2QNY.js +11 -0
  59. package/dist/{local-6ARTMTVE.js → local-JBCA7C7D.js} +4 -4
  60. package/dist/{magic-string.es-TVG7HRZ2.js → magic-string.es-PUBJJZST.js} +2 -2
  61. package/dist/{markdown-M5KQ3F3U.js → markdown-4ZM5GKW2.js} +5 -5
  62. package/dist/{meriyah-QX42RF3Q.js → meriyah-SUZXHXAS.js} +4 -4
  63. package/dist/{metadata-Z65VJ53L.js → metadata-FSAZEGLO.js} +5 -5
  64. package/dist/{multipart-parser-WKKMXACL.js → multipart-parser-QFOUP2TT.js} +3 -3
  65. package/dist/{node-package-manager-Q3Y2FSRM.js → node-package-manager-MQEWWORU.js} +20 -20
  66. package/dist/notifications-system-LRNZSYSG.js +40 -0
  67. package/dist/{open-BHIF7E3E.js → open-JSCXNUDN.js} +3 -3
  68. package/dist/out-B5JNCU2S.js +7 -0
  69. package/dist/{output-MCH67S5U.js → output-SAJPYFUY.js} +8 -8
  70. package/dist/{path-EOPO7QNL.js → path-2WA5R6GG.js} +3 -3
  71. package/dist/{postcss-4PDU7IQT.js → postcss-JKZFHYDB.js} +8 -6
  72. package/dist/{prettier-UAG5TKE4.js → prettier-SS3RRDXK.js} +3 -3
  73. package/dist/system-ERPUEL46.js +47 -0
  74. package/dist/tsconfig.tsbuildinfo +1 -1
  75. package/dist/typescript-4FFXOVC6.js +6 -0
  76. package/dist/{typescript-LCSPQIRD.js → typescript-HLNUID2L.js} +4 -4
  77. package/dist/{ui-AYUE37Z3.js → ui-SD2MSDNB.js} +18 -18
  78. package/dist/{upgrade-DNAT5W4B.js → upgrade-UCWZU5UX.js} +26 -26
  79. package/dist/version-ODTNTG3P.js +8 -0
  80. package/dist/version-ZWXWXLYG.js +30 -0
  81. package/dist/{yaml-VGESS2QB.js → yaml-Y6GPRGAB.js} +4 -4
  82. package/oclif.manifest.json +1 -1
  83. package/package.json +5 -5
  84. package/dist/analytics-RYQKQ4DG.js +0 -39
  85. package/dist/analytics-ZSO2XN53.js +0 -33
  86. package/dist/angular-IKHE4H7C.js +0 -2771
  87. package/dist/environments-VKYG7DMX.js +0 -26
  88. package/dist/error-handler-YXGIUGKI.js +0 -37
  89. package/dist/lib-HWIFANCM.js +0 -11
  90. package/dist/notifications-system-2HPAOE4P.js +0 -40
  91. package/dist/out-JJWXGPI4.js +0 -7
  92. package/dist/system-YW6RJ2KQ.js +0 -47
  93. package/dist/typescript-TKTDYKKG.js +0 -6
  94. package/dist/version-2J64V5CP.js +0 -8
  95. package/dist/version-V77ZX5N2.js +0 -30
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  init_cjs_shims
3
- } from "./chunk-PKR7KJ6P.js";
3
+ } from "./chunk-3XNI6LP4.js";
4
4
 
5
5
  // ../cli-kit/dist/public/common/version.js
6
6
  init_cjs_shims();
7
- var CLI_KIT_VERSION = "4.1.0";
7
+ var CLI_KIT_VERSION = "4.3.0";
8
8
 
9
9
  export {
10
10
  CLI_KIT_VERSION
11
11
  };
12
- //# sourceMappingURL=chunk-7OFS6B2C.js.map
12
+ //# sourceMappingURL=chunk-ZTXAANY4.js.map
@@ -17,20 +17,20 @@ import {
17
17
  setCurrentSessionId,
18
18
  setSessions,
19
19
  timeIntervalToMilliseconds
20
- } from "./chunk-RB7BXTZQ.js";
21
- import "./chunk-MIECGF3H.js";
22
- import "./chunk-UX6FRPFM.js";
23
- import "./chunk-X2WZCKNE.js";
24
- import "./chunk-G2ZZKGSV.js";
25
- import "./chunk-OO33NRTL.js";
26
- import "./chunk-6OOTYTVB.js";
27
- import "./chunk-BMI6QCMV.js";
28
- import "./chunk-A6TJPMVH.js";
29
- import "./chunk-DJW2W7VA.js";
30
- import "./chunk-ACS6S42W.js";
31
- import "./chunk-AROS7RI6.js";
32
- import "./chunk-7IK72W75.js";
33
- import "./chunk-PKR7KJ6P.js";
20
+ } from "./chunk-ZNNK6ZF5.js";
21
+ import "./chunk-OFTMFPMR.js";
22
+ import "./chunk-KWG6VAVE.js";
23
+ import "./chunk-ODCXYGJ2.js";
24
+ import "./chunk-LBXDGVFS.js";
25
+ import "./chunk-D6NYWNY2.js";
26
+ import "./chunk-OQ3KXXGH.js";
27
+ import "./chunk-HJATSDRW.js";
28
+ import "./chunk-5UUZHSUY.js";
29
+ import "./chunk-7OHJH7BF.js";
30
+ import "./chunk-C3J4HVUN.js";
31
+ import "./chunk-OE3FSIHW.js";
32
+ import "./chunk-HABWQC37.js";
33
+ import "./chunk-3XNI6LP4.js";
34
34
  export {
35
35
  cacheClear,
36
36
  cacheRetrieve,
@@ -51,4 +51,4 @@ export {
51
51
  setSessions,
52
52
  timeIntervalToMilliseconds
53
53
  };
54
- //# sourceMappingURL=conf-store-R26LOTXD.js.map
54
+ //# sourceMappingURL=conf-store-HDH4Y2F3.js.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-UX6FRPFM.js";
4
- import "./chunk-X2WZCKNE.js";
5
- import "./chunk-G2ZZKGSV.js";
6
- import "./chunk-OO33NRTL.js";
7
- import "./chunk-6OOTYTVB.js";
8
- import "./chunk-DJW2W7VA.js";
3
+ } from "./chunk-KWG6VAVE.js";
4
+ import "./chunk-ODCXYGJ2.js";
5
+ import "./chunk-LBXDGVFS.js";
6
+ import "./chunk-D6NYWNY2.js";
7
+ import "./chunk-OQ3KXXGH.js";
8
+ import "./chunk-7OHJH7BF.js";
9
9
  import {
10
10
  __toESM,
11
11
  init_cjs_shims
12
- } from "./chunk-PKR7KJ6P.js";
12
+ } from "./chunk-3XNI6LP4.js";
13
13
 
14
14
  // ../cli-kit/dist/public/node/custom-oclif-loader.js
15
15
  init_cjs_shims();
@@ -51,4 +51,4 @@ var import_core = __toESM(require_lib(), 1), ShopifyConfig = class extends impor
51
51
  export {
52
52
  ShopifyConfig
53
53
  };
54
- //# sourceMappingURL=custom-oclif-loader-354VAVF4.js.map
54
+ //# sourceMappingURL=custom-oclif-loader-7BTLNXYR.js.map
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  getNextDeprecationDate
3
- } from "./chunk-JCETIRLI.js";
3
+ } from "./chunk-MSED5ZFM.js";
4
4
  import {
5
5
  renderWarning
6
- } from "./chunk-C5OLLQWI.js";
7
- import "./chunk-SWITKWBS.js";
8
- import "./chunk-MIECGF3H.js";
9
- import "./chunk-UX6FRPFM.js";
10
- import "./chunk-X2WZCKNE.js";
11
- import "./chunk-G2ZZKGSV.js";
12
- import "./chunk-OO33NRTL.js";
13
- import "./chunk-PES3XMQM.js";
14
- import "./chunk-6OOTYTVB.js";
15
- import "./chunk-CEGG2EWP.js";
16
- import "./chunk-BMI6QCMV.js";
17
- import "./chunk-A6TJPMVH.js";
18
- import "./chunk-DJW2W7VA.js";
19
- import "./chunk-ACS6S42W.js";
20
- import "./chunk-AROS7RI6.js";
21
- import "./chunk-7IK72W75.js";
6
+ } from "./chunk-EBLNNEPP.js";
7
+ import "./chunk-76IXOUER.js";
8
+ import "./chunk-OFTMFPMR.js";
9
+ import "./chunk-KWG6VAVE.js";
10
+ import "./chunk-ODCXYGJ2.js";
11
+ import "./chunk-LBXDGVFS.js";
12
+ import "./chunk-D6NYWNY2.js";
13
+ import "./chunk-JGGOQOPO.js";
14
+ import "./chunk-OQ3KXXGH.js";
15
+ import "./chunk-GYXZK243.js";
16
+ import "./chunk-HJATSDRW.js";
17
+ import "./chunk-5UUZHSUY.js";
18
+ import "./chunk-7OHJH7BF.js";
19
+ import "./chunk-C3J4HVUN.js";
20
+ import "./chunk-OE3FSIHW.js";
21
+ import "./chunk-HABWQC37.js";
22
22
  import {
23
23
  init_cjs_shims
24
- } from "./chunk-PKR7KJ6P.js";
24
+ } from "./chunk-3XNI6LP4.js";
25
25
 
26
26
  // ../cli-kit/dist/public/node/hooks/deprecations.js
27
27
  init_cjs_shims();
@@ -52,4 +52,4 @@ function renderUpgradeWarning(upgradeByDate, forThemes) {
52
52
  export {
53
53
  postrun
54
54
  };
55
- //# sourceMappingURL=deprecations-JWETMJFF.js.map
55
+ //# sourceMappingURL=deprecations-AREYHAI7.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  wrapper_default
3
- } from "./chunk-CE4S2SGM.js";
3
+ } from "./chunk-LDYT4FTV.js";
4
4
  import {
5
5
  init_cjs_shims
6
- } from "./chunk-PKR7KJ6P.js";
6
+ } from "./chunk-3XNI6LP4.js";
7
7
 
8
8
  // ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/devtools.js
9
9
  init_cjs_shims();
@@ -70,4 +70,4 @@ customGlobal.window.__REACT_DEVTOOLS_COMPONENT_FILTERS__ = [
70
70
  import devtools from "react-devtools-core";
71
71
  devtools.initialize();
72
72
  devtools.connectToDevTools();
73
- //# sourceMappingURL=devtools-4EY2MEDN.js.map
73
+ //# sourceMappingURL=devtools-MQLG4C6G.js.map
@@ -0,0 +1,510 @@
1
+ import {
2
+ init_cjs_shims
3
+ } from "./chunk-3XNI6LP4.js";
4
+
5
+ // ../../node_modules/.pnpm/tinybench@2.9.0/node_modules/tinybench/dist/index.js
6
+ init_cjs_shims();
7
+ var $ = Object.defineProperty, C = (s) => {
8
+ throw TypeError(s);
9
+ }, D = (s, n, t) => n in s ? $(s, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[n] = t, O = (s, n, t) => D(s, typeof n != "symbol" ? n + "" : n, t), q = (s, n, t) => n.has(s) || C("Cannot " + t), d = (s, n, t) => (q(s, n, "read from private field"), t ? t.call(s) : n.get(s)), k = (s, n, t) => n.has(s) ? C("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(s) : n.set(s, t), f = (s, n, t, e) => (q(s, n, "write to private field"), e ? e.call(s, t) : n.set(s, t), t), F = (s, n, t, e) => ({
10
+ set _(r) {
11
+ f(s, n, r, t);
12
+ },
13
+ get _() {
14
+ return d(s, n, e);
15
+ }
16
+ }), M = class {
17
+ constructor(n) {
18
+ O(this, "value"), O(this, "next"), this.value = n;
19
+ }
20
+ }, m, w, E, g = class {
21
+ constructor() {
22
+ k(this, m), k(this, w), k(this, E), this.clear();
23
+ }
24
+ enqueue(n) {
25
+ let t = new M(n);
26
+ d(this, m) ? (d(this, w).next = t, f(this, w, t)) : (f(this, m, t), f(this, w, t)), F(this, E)._++;
27
+ }
28
+ dequeue() {
29
+ let n = d(this, m);
30
+ if (n)
31
+ return f(this, m, d(this, m).next), F(this, E)._--, n.value;
32
+ }
33
+ clear() {
34
+ f(this, m, void 0), f(this, w, void 0), f(this, E, 0);
35
+ }
36
+ get size() {
37
+ return d(this, E);
38
+ }
39
+ *[Symbol.iterator]() {
40
+ let n = d(this, m);
41
+ for (; n; )
42
+ yield n.value, n = n.next;
43
+ }
44
+ };
45
+ m = /* @__PURE__ */ new WeakMap(), w = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap();
46
+ function y(s) {
47
+ if (!((Number.isInteger(s) || s === Number.POSITIVE_INFINITY) && s > 0))
48
+ throw new TypeError("Expected `concurrency` to be a number from 1 and up");
49
+ let n = new g(), t = 0, e = () => {
50
+ t--, n.size > 0 && n.dequeue()();
51
+ }, r = async (h, p, a) => {
52
+ t++;
53
+ let l = (async () => h(...a))();
54
+ p(l);
55
+ try {
56
+ await l;
57
+ } catch {
58
+ }
59
+ e();
60
+ }, i = (h, p, a) => {
61
+ n.enqueue(r.bind(void 0, h, p, a)), (async () => (await Promise.resolve(), t < s && n.size > 0 && n.dequeue()()))();
62
+ }, c = (h, ...p) => new Promise((a) => {
63
+ i(h, a, p);
64
+ });
65
+ return Object.defineProperties(c, {
66
+ activeCount: {
67
+ get: () => t
68
+ },
69
+ pendingCount: {
70
+ get: () => n.size
71
+ },
72
+ clearQueue: {
73
+ value: () => {
74
+ n.clear();
75
+ }
76
+ }
77
+ }), c;
78
+ }
79
+ function o(s, n = null) {
80
+ let t = new Event(s);
81
+ return n && Object.defineProperty(t, "task", {
82
+ value: n,
83
+ enumerable: !0,
84
+ writable: !1,
85
+ configurable: !1
86
+ }), t;
87
+ }
88
+ var G = {
89
+ 1: 12.71,
90
+ 2: 4.303,
91
+ 3: 3.182,
92
+ 4: 2.776,
93
+ 5: 2.571,
94
+ 6: 2.447,
95
+ 7: 2.365,
96
+ 8: 2.306,
97
+ 9: 2.262,
98
+ 10: 2.228,
99
+ 11: 2.201,
100
+ 12: 2.179,
101
+ 13: 2.16,
102
+ 14: 2.145,
103
+ 15: 2.131,
104
+ 16: 2.12,
105
+ 17: 2.11,
106
+ 18: 2.101,
107
+ 19: 2.093,
108
+ 20: 2.086,
109
+ 21: 2.08,
110
+ 22: 2.074,
111
+ 23: 2.069,
112
+ 24: 2.064,
113
+ 25: 2.06,
114
+ 26: 2.056,
115
+ 27: 2.052,
116
+ 28: 2.048,
117
+ 29: 2.045,
118
+ 30: 2.042,
119
+ 31: 2.0399,
120
+ 32: 2.0378,
121
+ 33: 2.0357,
122
+ 34: 2.0336,
123
+ 35: 2.0315,
124
+ 36: 2.0294,
125
+ 37: 2.0273,
126
+ 38: 2.0252,
127
+ 39: 2.0231,
128
+ 40: 2.021,
129
+ 41: 2.0198,
130
+ 42: 2.0186,
131
+ 43: 2.0174,
132
+ 44: 2.0162,
133
+ 45: 2.015,
134
+ 46: 2.0138,
135
+ 47: 2.0126,
136
+ 48: 2.0114,
137
+ 49: 2.0102,
138
+ 50: 2.009,
139
+ 51: 2.0081,
140
+ 52: 2.0072,
141
+ 53: 2.0063,
142
+ 54: 2.0054,
143
+ 55: 2.0045,
144
+ 56: 2.0036,
145
+ 57: 2.0027,
146
+ 58: 2.0018,
147
+ 59: 2.0009,
148
+ 60: 2,
149
+ 61: 1.9995,
150
+ 62: 1.999,
151
+ 63: 1.9985,
152
+ 64: 1.998,
153
+ 65: 1.9975,
154
+ 66: 1.997,
155
+ 67: 1.9965,
156
+ 68: 1.996,
157
+ 69: 1.9955,
158
+ 70: 1.995,
159
+ 71: 1.9945,
160
+ 72: 1.994,
161
+ 73: 1.9935,
162
+ 74: 1.993,
163
+ 75: 1.9925,
164
+ 76: 1.992,
165
+ 77: 1.9915,
166
+ 78: 1.991,
167
+ 79: 1.9905,
168
+ 80: 1.99,
169
+ 81: 1.9897,
170
+ 82: 1.9894,
171
+ 83: 1.9891,
172
+ 84: 1.9888,
173
+ 85: 1.9885,
174
+ 86: 1.9882,
175
+ 87: 1.9879,
176
+ 88: 1.9876,
177
+ 89: 1.9873,
178
+ 90: 1.987,
179
+ 91: 1.9867,
180
+ 92: 1.9864,
181
+ 93: 1.9861,
182
+ 94: 1.9858,
183
+ 95: 1.9855,
184
+ 96: 1.9852,
185
+ 97: 1.9849,
186
+ 98: 1.9846,
187
+ 99: 1.9843,
188
+ 100: 1.984,
189
+ 101: 1.9838,
190
+ 102: 1.9836,
191
+ 103: 1.9834,
192
+ 104: 1.9832,
193
+ 105: 1.983,
194
+ 106: 1.9828,
195
+ 107: 1.9826,
196
+ 108: 1.9824,
197
+ 109: 1.9822,
198
+ 110: 1.982,
199
+ 111: 1.9818,
200
+ 112: 1.9816,
201
+ 113: 1.9814,
202
+ 114: 1.9812,
203
+ 115: 1.9819,
204
+ 116: 1.9808,
205
+ 117: 1.9806,
206
+ 118: 1.9804,
207
+ 119: 1.9802,
208
+ 120: 1.98,
209
+ infinity: 1.96
210
+ }, N = G, J = (s) => s / 1e6, U = () => J(Number(process.hrtime.bigint())), B = () => performance.now();
211
+ function W(s) {
212
+ return s !== null && typeof s == "object" && typeof s.then == "function";
213
+ }
214
+ var S = (s, n) => s.reduce((e, r) => e + (r - n) ** 2, 0) / (s.length - 1) || 0, X = (async () => {
215
+ }).constructor, Z = (s) => s.constructor === X, z = async (s) => {
216
+ if (Z(s.fn))
217
+ return !0;
218
+ try {
219
+ if (s.opts.beforeEach != null)
220
+ try {
221
+ await s.opts.beforeEach.call(s);
222
+ } catch {
223
+ }
224
+ let n = s.fn(), t = W(n);
225
+ if (t)
226
+ try {
227
+ await n;
228
+ } catch {
229
+ }
230
+ if (s.opts.afterEach != null)
231
+ try {
232
+ await s.opts.afterEach.call(s);
233
+ } catch {
234
+ }
235
+ return t;
236
+ } catch {
237
+ return !1;
238
+ }
239
+ }, b = class extends EventTarget {
240
+ constructor(t, e, r, i = {}) {
241
+ super(), this.runs = 0, this.bench = t, this.name = e, this.fn = r, this.opts = i;
242
+ }
243
+ async loop(t, e) {
244
+ var T;
245
+ let r = this.bench.concurrency === "task", { threshold: i } = this.bench, c = 0, h = [];
246
+ if (this.opts.beforeAll != null)
247
+ try {
248
+ await this.opts.beforeAll.call(this);
249
+ } catch (u) {
250
+ return { error: u };
251
+ }
252
+ let p = await z(this), a = async () => {
253
+ this.opts.beforeEach != null && await this.opts.beforeEach.call(this);
254
+ let u = 0;
255
+ if (p) {
256
+ let v = this.bench.now();
257
+ await this.fn.call(this), u = this.bench.now() - v;
258
+ } else {
259
+ let v = this.bench.now();
260
+ this.fn.call(this), u = this.bench.now() - v;
261
+ }
262
+ h.push(u), c += u, this.opts.afterEach != null && await this.opts.afterEach.call(this);
263
+ }, l = y(i);
264
+ try {
265
+ let u = [];
266
+ for (; (c < t || h.length + l.activeCount + l.pendingCount < e) && !((T = this.bench.signal) != null && T.aborted); )
267
+ r ? u.push(l(a)) : await a();
268
+ u.length && await Promise.all(u);
269
+ } catch (u) {
270
+ return { error: u };
271
+ }
272
+ if (this.opts.afterAll != null)
273
+ try {
274
+ await this.opts.afterAll.call(this);
275
+ } catch (u) {
276
+ return { error: u };
277
+ }
278
+ return { samples: h };
279
+ }
280
+ /**
281
+ * run the current task and write the results in `Task.result` object
282
+ */
283
+ async run() {
284
+ var r, i;
285
+ if ((r = this.result) != null && r.error)
286
+ return this;
287
+ this.dispatchEvent(o("start", this)), await this.bench.setup(this, "run");
288
+ let { samples: t, error: e } = await this.loop(this.bench.time, this.bench.iterations);
289
+ if (this.bench.teardown(this, "run"), t) {
290
+ let c = t.reduce((L, A) => L + A, 0);
291
+ this.runs = t.length, t.sort((L, A) => L - A);
292
+ let h = c / this.runs, p = 1e3 / h, a = t.length, l = a - 1, T = t[0], u = t[l], v = c / t.length || 0, P = S(t, v), R = Math.sqrt(P), I = R / Math.sqrt(a), _ = N[String(Math.round(l) || 1)] || N.infinity, K = I * _, j = K / v * 100, H = t[Math.ceil(a * 0.75) - 1], V = t[Math.ceil(a * 0.99) - 1], Q = t[Math.ceil(a * 0.995) - 1], Y = t[Math.ceil(a * 0.999) - 1];
293
+ if ((i = this.bench.signal) != null && i.aborted)
294
+ return this;
295
+ this.setResult({
296
+ totalTime: c,
297
+ min: T,
298
+ max: u,
299
+ hz: p,
300
+ period: h,
301
+ samples: t,
302
+ mean: v,
303
+ variance: P,
304
+ sd: R,
305
+ sem: I,
306
+ df: l,
307
+ critical: _,
308
+ moe: K,
309
+ rme: j,
310
+ p75: H,
311
+ p99: V,
312
+ p995: Q,
313
+ p999: Y
314
+ });
315
+ }
316
+ if (e) {
317
+ if (this.setResult({ error: e }), this.bench.throws)
318
+ throw e;
319
+ this.dispatchEvent(o("error", this)), this.bench.dispatchEvent(o("error", this));
320
+ }
321
+ return this.dispatchEvent(o("cycle", this)), this.bench.dispatchEvent(o("cycle", this)), this.dispatchEvent(o("complete", this)), this;
322
+ }
323
+ /**
324
+ * warmup the current task
325
+ */
326
+ async warmup() {
327
+ var e;
328
+ if ((e = this.result) != null && e.error)
329
+ return;
330
+ this.dispatchEvent(o("warmup", this)), await this.bench.setup(this, "warmup");
331
+ let { error: t } = await this.loop(this.bench.warmupTime, this.bench.warmupIterations);
332
+ if (this.bench.teardown(this, "warmup"), t && (this.setResult({ error: t }), this.bench.throws))
333
+ throw t;
334
+ }
335
+ addEventListener(t, e, r) {
336
+ super.addEventListener(t, e, r);
337
+ }
338
+ removeEventListener(t, e, r) {
339
+ super.removeEventListener(t, e, r);
340
+ }
341
+ /**
342
+ * change the result object values
343
+ */
344
+ setResult(t) {
345
+ this.result = { ...this.result, ...t }, Object.freeze(this.result);
346
+ }
347
+ /**
348
+ * reset the task to make the `Task.runs` a zero-value and remove the `Task.result`
349
+ * object
350
+ */
351
+ reset() {
352
+ this.dispatchEvent(o("reset", this)), this.runs = 0, this.result = void 0;
353
+ }
354
+ }, x = class extends EventTarget {
355
+ constructor(t = {}) {
356
+ var e, r, i, c, h, p, a, l;
357
+ super(), this._tasks = /* @__PURE__ */ new Map(), this._todos = /* @__PURE__ */ new Map(), this.concurrency = null, this.threshold = 1 / 0, this.warmupTime = 100, this.warmupIterations = 5, this.time = 500, this.iterations = 10, this.now = B, this.now = (e = t.now) != null ? e : this.now, this.warmupTime = (r = t.warmupTime) != null ? r : this.warmupTime, this.warmupIterations = (i = t.warmupIterations) != null ? i : this.warmupIterations, this.time = (c = t.time) != null ? c : this.time, this.iterations = (h = t.iterations) != null ? h : this.iterations, this.signal = t.signal, this.throws = (p = t.throws) != null ? p : !1, this.setup = (a = t.setup) != null ? a : () => {
358
+ }, this.teardown = (l = t.teardown) != null ? l : () => {
359
+ }, this.signal && this.signal.addEventListener(
360
+ "abort",
361
+ () => {
362
+ this.dispatchEvent(o("abort"));
363
+ },
364
+ { once: !0 }
365
+ );
366
+ }
367
+ runTask(t) {
368
+ var e;
369
+ return (e = this.signal) != null && e.aborted ? t : t.run();
370
+ }
371
+ /**
372
+ * run the added tasks that were registered using the
373
+ * {@link add} method.
374
+ * Note: This method does not do any warmup. Call {@link warmup} for that.
375
+ */
376
+ async run() {
377
+ if (this.concurrency === "bench")
378
+ return this.runConcurrently(this.threshold, this.concurrency);
379
+ this.dispatchEvent(o("start"));
380
+ let t = [];
381
+ for (let e of [...this._tasks.values()])
382
+ t.push(await this.runTask(e));
383
+ return this.dispatchEvent(o("complete")), t;
384
+ }
385
+ /**
386
+ * See Bench.{@link concurrency}
387
+ */
388
+ async runConcurrently(t = 1 / 0, e = "bench") {
389
+ if (this.threshold = t, this.concurrency = e, e === "task")
390
+ return this.run();
391
+ this.dispatchEvent(o("start"));
392
+ let r = y(t), i = [];
393
+ for (let h of [...this._tasks.values()])
394
+ i.push(r(() => this.runTask(h)));
395
+ let c = await Promise.all(i);
396
+ return this.dispatchEvent(o("complete")), c;
397
+ }
398
+ /**
399
+ * warmup the benchmark tasks.
400
+ * This is not run by default by the {@link run} method.
401
+ */
402
+ async warmup() {
403
+ if (this.concurrency === "bench") {
404
+ await this.warmupConcurrently(this.threshold, this.concurrency);
405
+ return;
406
+ }
407
+ this.dispatchEvent(o("warmup"));
408
+ for (let [, t] of this._tasks)
409
+ await t.warmup();
410
+ }
411
+ /**
412
+ * warmup the benchmark tasks concurrently.
413
+ * This is not run by default by the {@link runConcurrently} method.
414
+ */
415
+ async warmupConcurrently(t = 1 / 0, e = "bench") {
416
+ if (this.threshold = t, this.concurrency = e, e === "task") {
417
+ await this.warmup();
418
+ return;
419
+ }
420
+ this.dispatchEvent(o("warmup"));
421
+ let r = y(t), i = [];
422
+ for (let [, c] of this._tasks)
423
+ i.push(r(() => c.warmup()));
424
+ await Promise.all(i);
425
+ }
426
+ /**
427
+ * reset each task and remove its result
428
+ */
429
+ reset() {
430
+ this.dispatchEvent(o("reset")), this._tasks.forEach((t) => {
431
+ t.reset();
432
+ });
433
+ }
434
+ /**
435
+ * add a benchmark task to the task map
436
+ */
437
+ add(t, e, r = {}) {
438
+ let i = new b(this, t, e, r);
439
+ return this._tasks.set(t, i), this.dispatchEvent(o("add", i)), this;
440
+ }
441
+ /**
442
+ * add a benchmark todo to the todo map
443
+ */
444
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
445
+ todo(t, e = () => {
446
+ }, r = {}) {
447
+ let i = new b(this, t, e, r);
448
+ return this._todos.set(t, i), this.dispatchEvent(o("todo", i)), this;
449
+ }
450
+ /**
451
+ * remove a benchmark task from the task map
452
+ */
453
+ remove(t) {
454
+ let e = this.getTask(t);
455
+ return e && (this.dispatchEvent(o("remove", e)), this._tasks.delete(t)), this;
456
+ }
457
+ addEventListener(t, e, r) {
458
+ super.addEventListener(t, e, r);
459
+ }
460
+ removeEventListener(t, e, r) {
461
+ super.removeEventListener(t, e, r);
462
+ }
463
+ /**
464
+ * table of the tasks results
465
+ */
466
+ table(t) {
467
+ return this.tasks.map((e) => {
468
+ if (e.result) {
469
+ if (e.result.error)
470
+ throw e.result.error;
471
+ return t?.(e) || {
472
+ "Task Name": e.name,
473
+ "ops/sec": e.result.error ? "NaN" : parseInt(e.result.hz.toString(), 10).toLocaleString(),
474
+ "Average Time (ns)": e.result.error ? "NaN" : e.result.mean * 1e3 * 1e3,
475
+ Margin: e.result.error ? "NaN" : `\xB1${e.result.rme.toFixed(2)}%`,
476
+ Samples: e.result.error ? "NaN" : e.result.samples.length
477
+ };
478
+ }
479
+ return null;
480
+ });
481
+ }
482
+ /**
483
+ * (getter) tasks results as an array
484
+ */
485
+ get results() {
486
+ return [...this._tasks.values()].map((t) => t.result);
487
+ }
488
+ /**
489
+ * (getter) tasks as an array
490
+ */
491
+ get tasks() {
492
+ return [...this._tasks.values()];
493
+ }
494
+ get todos() {
495
+ return [...this._todos.values()];
496
+ }
497
+ /**
498
+ * get a task based on the task name
499
+ */
500
+ getTask(t) {
501
+ return this._tasks.get(t);
502
+ }
503
+ };
504
+ export {
505
+ x as Bench,
506
+ b as Task,
507
+ U as hrtimeNow,
508
+ B as now
509
+ };
510
+ //# sourceMappingURL=dist-CECUBBYR.js.map
@@ -0,0 +1,26 @@
1
+ import {
2
+ environmentFilePath,
3
+ loadEnvironment
4
+ } from "./chunk-HIWQ3G6P.js";
5
+ import "./chunk-EBLNNEPP.js";
6
+ import "./chunk-76IXOUER.js";
7
+ import "./chunk-OFTMFPMR.js";
8
+ import "./chunk-KWG6VAVE.js";
9
+ import "./chunk-ODCXYGJ2.js";
10
+ import "./chunk-LBXDGVFS.js";
11
+ import "./chunk-D6NYWNY2.js";
12
+ import "./chunk-JGGOQOPO.js";
13
+ import "./chunk-OQ3KXXGH.js";
14
+ import "./chunk-GYXZK243.js";
15
+ import "./chunk-HJATSDRW.js";
16
+ import "./chunk-5UUZHSUY.js";
17
+ import "./chunk-7OHJH7BF.js";
18
+ import "./chunk-C3J4HVUN.js";
19
+ import "./chunk-OE3FSIHW.js";
20
+ import "./chunk-HABWQC37.js";
21
+ import "./chunk-3XNI6LP4.js";
22
+ export {
23
+ environmentFilePath,
24
+ loadEnvironment
25
+ };
26
+ //# sourceMappingURL=environments-C3Z4TCZS.js.map