@hot-updater/console 0.27.1 → 0.29.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 (93) hide show
  1. package/.output/nitro.json +17 -0
  2. package/.output/public/apple-touch-icon.png +0 -0
  3. package/.output/public/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  4. package/.output/public/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  5. package/.output/public/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  6. package/.output/public/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  7. package/.output/public/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  8. package/.output/public/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  9. package/.output/public/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  10. package/.output/public/assets/main-Dlx8-qN-.js +61 -0
  11. package/.output/public/assets/routes-DB0tWmiJ.js +10 -0
  12. package/.output/public/assets/styles-Bfxg4M1x.css +2 -0
  13. package/.output/public/favicon-16x16.png +0 -0
  14. package/.output/public/favicon-32x32.png +0 -0
  15. package/.output/public/favicon.ico +0 -0
  16. package/.output/public/logo.svg +1 -0
  17. package/.output/public/manifest.json +30 -0
  18. package/.output/public/robots.txt +3 -0
  19. package/.output/server/_chunks/ssr-renderer.mjs +15 -0
  20. package/.output/server/_libs/@floating-ui/core+[...].mjs +698 -0
  21. package/.output/server/_libs/@floating-ui/dom+[...].mjs +644 -0
  22. package/.output/server/_libs/@floating-ui/react-dom+[...].mjs +839 -0
  23. package/.output/server/_libs/@radix-ui/react-alert-dialog+[...].mjs +2093 -0
  24. package/.output/server/_libs/@radix-ui/react-popper+[...].mjs +287 -0
  25. package/.output/server/_libs/@radix-ui/react-select+[...].mjs +1003 -0
  26. package/.output/server/_libs/@tanstack/devtools-event-client+[...].mjs +196 -0
  27. package/.output/server/_libs/@tanstack/form-core+[...].mjs +2396 -0
  28. package/.output/server/_libs/@tanstack/react-form+[...].mjs +298 -0
  29. package/.output/server/_libs/@tanstack/react-router+[...].mjs +13068 -0
  30. package/.output/server/_libs/@tanstack/react-table+[...].mjs +2372 -0
  31. package/.output/server/_libs/chownr.mjs +60 -0
  32. package/.output/server/_libs/class-variance-authority+clsx.mjs +69 -0
  33. package/.output/server/_libs/core-util-is.mjs +67 -0
  34. package/.output/server/_libs/dayjs.mjs +408 -0
  35. package/.output/server/_libs/h3+rou3+srvx.mjs +1158 -0
  36. package/.output/server/_libs/hookable.mjs +41 -0
  37. package/.output/server/_libs/immediate.mjs +57 -0
  38. package/.output/server/_libs/inherits.mjs +39 -0
  39. package/.output/server/_libs/isaacs__fs-minipass+minipass.mjs +1120 -0
  40. package/.output/server/_libs/isarray.mjs +10 -0
  41. package/.output/server/_libs/jszip+[...].mjs +8311 -0
  42. package/.output/server/_libs/lucide-react.mjs +371 -0
  43. package/.output/server/_libs/minizlib.mjs +345 -0
  44. package/.output/server/_libs/next-themes.mjs +49 -0
  45. package/.output/server/_libs/radix-ui__number.mjs +6 -0
  46. package/.output/server/_libs/radix-ui__primitive.mjs +9 -0
  47. package/.output/server/_libs/radix-ui__react-arrow.mjs +23 -0
  48. package/.output/server/_libs/radix-ui__react-collection.mjs +78 -0
  49. package/.output/server/_libs/radix-ui__react-direction.mjs +11 -0
  50. package/.output/server/_libs/radix-ui__react-label.mjs +22 -0
  51. package/.output/server/_libs/radix-ui__react-separator.mjs +31 -0
  52. package/.output/server/_libs/radix-ui__react-slider.mjs +451 -0
  53. package/.output/server/_libs/radix-ui__react-switch.mjs +118 -0
  54. package/.output/server/_libs/radix-ui__react-tooltip.mjs +491 -0
  55. package/.output/server/_libs/semver.mjs +1339 -0
  56. package/.output/server/_libs/sonner.mjs +908 -0
  57. package/.output/server/_libs/tailwind-merge.mjs +1962 -0
  58. package/.output/server/_libs/tanstack__history.mjs +322 -0
  59. package/.output/server/_libs/tanstack__query-core.mjs +2073 -0
  60. package/.output/server/_libs/tanstack__react-query.mjs +146 -0
  61. package/.output/server/_libs/tanstack__router-core.mjs +6 -0
  62. package/.output/server/_libs/tar.mjs +1996 -0
  63. package/.output/server/_libs/ufo.mjs +64 -0
  64. package/.output/server/_runtime.mjs +26 -0
  65. package/.output/server/_ssr/api-rpc-D3ZehMIN.mjs +217 -0
  66. package/.output/server/_ssr/config.server-JUYQ7UbI.mjs +26 -0
  67. package/.output/server/_ssr/deleteBundle-DWUxu9-K.mjs +22 -0
  68. package/.output/server/_ssr/extract-timestamp-from-uuidv7-B90UBADU.mjs +24 -0
  69. package/.output/server/_ssr/promoteBundle-DtMHuubR.mjs +1571 -0
  70. package/.output/server/_ssr/router-pgc7NX76.mjs +250 -0
  71. package/.output/server/_ssr/routes-PqTTQSoI.mjs +1833 -0
  72. package/.output/server/_ssr/sidebar-DXng0IOP.mjs +439 -0
  73. package/.output/server/_ssr/ssr.mjs +5050 -0
  74. package/.output/server/_ssr/start-DQK0r85G.mjs +4 -0
  75. package/.output/server/_tanstack-start-manifest_v-DTbQVOpU.mjs +17 -0
  76. package/.output/server/index.mjs +417 -0
  77. package/.output/server/node_modules/tslib/modules/index.js +70 -0
  78. package/.output/server/node_modules/tslib/modules/package.json +3 -0
  79. package/.output/server/node_modules/tslib/package.json +47 -0
  80. package/.output/server/node_modules/tslib/tslib.js +484 -0
  81. package/.output/server/package.json +9 -0
  82. package/README.md +191 -2
  83. package/package.json +77 -50
  84. package/dist/.gitkeep +0 -0
  85. package/dist/assets/favicon-BkwcEHsj.ico +0 -0
  86. package/dist/assets/index-DUlKsori.css +0 -1
  87. package/dist/assets/index-ijmIcyn1.js +0 -27
  88. package/dist/assets/logo-BYNFyja1.png +0 -0
  89. package/dist/index.cjs +0 -2129
  90. package/dist/index.d.cts +0 -218
  91. package/dist/index.d.ts +0 -218
  92. package/dist/index.html +0 -14
  93. package/dist/index.js +0 -2125
@@ -0,0 +1,371 @@
1
+ import { r as __toESM } from "../_runtime.mjs";
2
+ import { u as require_react } from "./@floating-ui/react-dom+[...].mjs";
3
+ //#region ../../node_modules/.pnpm/lucide-react@0.577.0_react@19.2.4/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
4
+ /**
5
+ * @license lucide-react v0.577.0 - ISC
6
+ *
7
+ * This source code is licensed under the ISC license.
8
+ * See the LICENSE file in the root directory of this source tree.
9
+ */
10
+ var mergeClasses = (...classes) => classes.filter((className, index, array) => {
11
+ return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
12
+ }).join(" ").trim();
13
+ //#endregion
14
+ //#region ../../node_modules/.pnpm/lucide-react@0.577.0_react@19.2.4/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.js
15
+ /**
16
+ * @license lucide-react v0.577.0 - ISC
17
+ *
18
+ * This source code is licensed under the ISC license.
19
+ * See the LICENSE file in the root directory of this source tree.
20
+ */
21
+ var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
22
+ //#endregion
23
+ //#region ../../node_modules/.pnpm/lucide-react@0.577.0_react@19.2.4/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.js
24
+ /**
25
+ * @license lucide-react v0.577.0 - ISC
26
+ *
27
+ * This source code is licensed under the ISC license.
28
+ * See the LICENSE file in the root directory of this source tree.
29
+ */
30
+ var toCamelCase = (string) => string.replace(/^([A-Z])|[\s-_]+(\w)/g, (match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase());
31
+ //#endregion
32
+ //#region ../../node_modules/.pnpm/lucide-react@0.577.0_react@19.2.4/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.js
33
+ /**
34
+ * @license lucide-react v0.577.0 - ISC
35
+ *
36
+ * This source code is licensed under the ISC license.
37
+ * See the LICENSE file in the root directory of this source tree.
38
+ */
39
+ var toPascalCase = (string) => {
40
+ const camelCase = toCamelCase(string);
41
+ return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
42
+ };
43
+ //#endregion
44
+ //#region ../../node_modules/.pnpm/lucide-react@0.577.0_react@19.2.4/node_modules/lucide-react/dist/esm/defaultAttributes.js
45
+ /**
46
+ * @license lucide-react v0.577.0 - ISC
47
+ *
48
+ * This source code is licensed under the ISC license.
49
+ * See the LICENSE file in the root directory of this source tree.
50
+ */
51
+ var defaultAttributes = {
52
+ xmlns: "http://www.w3.org/2000/svg",
53
+ width: 24,
54
+ height: 24,
55
+ viewBox: "0 0 24 24",
56
+ fill: "none",
57
+ stroke: "currentColor",
58
+ strokeWidth: 2,
59
+ strokeLinecap: "round",
60
+ strokeLinejoin: "round"
61
+ };
62
+ //#endregion
63
+ //#region ../../node_modules/.pnpm/lucide-react@0.577.0_react@19.2.4/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.js
64
+ /**
65
+ * @license lucide-react v0.577.0 - ISC
66
+ *
67
+ * This source code is licensed under the ISC license.
68
+ * See the LICENSE file in the root directory of this source tree.
69
+ */
70
+ var hasA11yProp = (props) => {
71
+ for (const prop in props) if (prop.startsWith("aria-") || prop === "role" || prop === "title") return true;
72
+ return false;
73
+ };
74
+ //#endregion
75
+ //#region ../../node_modules/.pnpm/lucide-react@0.577.0_react@19.2.4/node_modules/lucide-react/dist/esm/Icon.js
76
+ var import_react = /* @__PURE__ */ __toESM(require_react());
77
+ var Icon = (0, import_react.forwardRef)(({ color = "currentColor", size = 24, strokeWidth = 2, absoluteStrokeWidth, className = "", children, iconNode, ...rest }, ref) => (0, import_react.createElement)("svg", {
78
+ ref,
79
+ ...defaultAttributes,
80
+ width: size,
81
+ height: size,
82
+ stroke: color,
83
+ strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
84
+ className: mergeClasses("lucide", className),
85
+ ...!children && !hasA11yProp(rest) && { "aria-hidden": "true" },
86
+ ...rest
87
+ }, [...iconNode.map(([tag, attrs]) => (0, import_react.createElement)(tag, attrs)), ...Array.isArray(children) ? children : [children]]));
88
+ //#endregion
89
+ //#region ../../node_modules/.pnpm/lucide-react@0.577.0_react@19.2.4/node_modules/lucide-react/dist/esm/createLucideIcon.js
90
+ /**
91
+ * @license lucide-react v0.577.0 - ISC
92
+ *
93
+ * This source code is licensed under the ISC license.
94
+ * See the LICENSE file in the root directory of this source tree.
95
+ */
96
+ var createLucideIcon = (iconName, iconNode) => {
97
+ const Component = (0, import_react.forwardRef)(({ className, ...props }, ref) => (0, import_react.createElement)(Icon, {
98
+ ref,
99
+ iconNode,
100
+ className: mergeClasses(`lucide-${toKebabCase(toPascalCase(iconName))}`, `lucide-${iconName}`, className),
101
+ ...props
102
+ }));
103
+ Component.displayName = toPascalCase(iconName);
104
+ return Component;
105
+ };
106
+ var Check = createLucideIcon("check", [["path", {
107
+ d: "M20 6 9 17l-5-5",
108
+ key: "1gmf2c"
109
+ }]]);
110
+ var ChevronDown = createLucideIcon("chevron-down", [["path", {
111
+ d: "m6 9 6 6 6-6",
112
+ key: "qrunsl"
113
+ }]]);
114
+ var ChevronLeft = createLucideIcon("chevron-left", [["path", {
115
+ d: "m15 18-6-6 6-6",
116
+ key: "1wnfg3"
117
+ }]]);
118
+ var ChevronRight = createLucideIcon("chevron-right", [["path", {
119
+ d: "m9 18 6-6-6-6",
120
+ key: "mthhwq"
121
+ }]]);
122
+ var ChevronUp = createLucideIcon("chevron-up", [["path", {
123
+ d: "m18 15-6-6-6 6",
124
+ key: "153udz"
125
+ }]]);
126
+ var CircleCheck = createLucideIcon("circle-check", [["circle", {
127
+ cx: "12",
128
+ cy: "12",
129
+ r: "10",
130
+ key: "1mglay"
131
+ }], ["path", {
132
+ d: "m9 12 2 2 4-4",
133
+ key: "dzmm74"
134
+ }]]);
135
+ var Download = createLucideIcon("download", [
136
+ ["path", {
137
+ d: "M12 15V3",
138
+ key: "m9g1x1"
139
+ }],
140
+ ["path", {
141
+ d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",
142
+ key: "ih7n3h"
143
+ }],
144
+ ["path", {
145
+ d: "m7 10 5 5 5-5",
146
+ key: "brsn70"
147
+ }]
148
+ ]);
149
+ var ExternalLink = createLucideIcon("external-link", [
150
+ ["path", {
151
+ d: "M15 3h6v6",
152
+ key: "1q9fwt"
153
+ }],
154
+ ["path", {
155
+ d: "M10 14 21 3",
156
+ key: "gplh6r"
157
+ }],
158
+ ["path", {
159
+ d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",
160
+ key: "a6xqqp"
161
+ }]
162
+ ]);
163
+ var FingerprintPattern = createLucideIcon("fingerprint-pattern", [
164
+ ["path", {
165
+ d: "M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",
166
+ key: "1nerag"
167
+ }],
168
+ ["path", {
169
+ d: "M14 13.12c0 2.38 0 6.38-1 8.88",
170
+ key: "o46ks0"
171
+ }],
172
+ ["path", {
173
+ d: "M17.29 21.02c.12-.6.43-2.3.5-3.02",
174
+ key: "ptglia"
175
+ }],
176
+ ["path", {
177
+ d: "M2 12a10 10 0 0 1 18-6",
178
+ key: "ydlgp0"
179
+ }],
180
+ ["path", {
181
+ d: "M2 16h.01",
182
+ key: "1gqxmh"
183
+ }],
184
+ ["path", {
185
+ d: "M21.8 16c.2-2 .131-5.354 0-6",
186
+ key: "drycrb"
187
+ }],
188
+ ["path", {
189
+ d: "M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",
190
+ key: "1tidbn"
191
+ }],
192
+ ["path", {
193
+ d: "M8.65 22c.21-.66.45-1.32.57-2",
194
+ key: "13wd9y"
195
+ }],
196
+ ["path", {
197
+ d: "M9 6.8a6 6 0 0 1 9 5.2v2",
198
+ key: "1fr1j5"
199
+ }]
200
+ ]);
201
+ var Funnel = createLucideIcon("funnel", [["path", {
202
+ d: "M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",
203
+ key: "sc7q7i"
204
+ }]]);
205
+ var Info = createLucideIcon("info", [
206
+ ["circle", {
207
+ cx: "12",
208
+ cy: "12",
209
+ r: "10",
210
+ key: "1mglay"
211
+ }],
212
+ ["path", {
213
+ d: "M12 16v-4",
214
+ key: "1dtifu"
215
+ }],
216
+ ["path", {
217
+ d: "M12 8h.01",
218
+ key: "e9boi3"
219
+ }]
220
+ ]);
221
+ var List = createLucideIcon("list", [
222
+ ["path", {
223
+ d: "M3 5h.01",
224
+ key: "18ugdj"
225
+ }],
226
+ ["path", {
227
+ d: "M3 12h.01",
228
+ key: "nlz23k"
229
+ }],
230
+ ["path", {
231
+ d: "M3 19h.01",
232
+ key: "noohij"
233
+ }],
234
+ ["path", {
235
+ d: "M8 5h13",
236
+ key: "1pao27"
237
+ }],
238
+ ["path", {
239
+ d: "M8 12h13",
240
+ key: "1za7za"
241
+ }],
242
+ ["path", {
243
+ d: "M8 19h13",
244
+ key: "m83p4d"
245
+ }]
246
+ ]);
247
+ var LoaderCircle = createLucideIcon("loader-circle", [["path", {
248
+ d: "M21 12a9 9 0 1 1-6.219-8.56",
249
+ key: "13zald"
250
+ }]]);
251
+ var Minus = createLucideIcon("minus", [["path", {
252
+ d: "M5 12h14",
253
+ key: "1ays0h"
254
+ }]]);
255
+ var Moon = createLucideIcon("moon", [["path", {
256
+ d: "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",
257
+ key: "kfwtm"
258
+ }]]);
259
+ var OctagonX = createLucideIcon("octagon-x", [
260
+ ["path", {
261
+ d: "m15 9-6 6",
262
+ key: "1uzhvr"
263
+ }],
264
+ ["path", {
265
+ d: "M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",
266
+ key: "2d38gg"
267
+ }],
268
+ ["path", {
269
+ d: "m9 9 6 6",
270
+ key: "z0biqf"
271
+ }]
272
+ ]);
273
+ var Package = createLucideIcon("package", [
274
+ ["path", {
275
+ d: "M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",
276
+ key: "1a0edw"
277
+ }],
278
+ ["path", {
279
+ d: "M12 22V12",
280
+ key: "d0xqtd"
281
+ }],
282
+ ["polyline", {
283
+ points: "3.29 7 12 12 20.71 7",
284
+ key: "ousv84"
285
+ }],
286
+ ["path", {
287
+ d: "m7.5 4.27 9 5.15",
288
+ key: "1c824w"
289
+ }]
290
+ ]);
291
+ var PanelLeft = createLucideIcon("panel-left", [["rect", {
292
+ width: "18",
293
+ height: "18",
294
+ x: "3",
295
+ y: "3",
296
+ rx: "2",
297
+ key: "afitv7"
298
+ }], ["path", {
299
+ d: "M9 3v18",
300
+ key: "fh3hqa"
301
+ }]]);
302
+ var Plus = createLucideIcon("plus", [["path", {
303
+ d: "M5 12h14",
304
+ key: "1ays0h"
305
+ }], ["path", {
306
+ d: "M12 5v14",
307
+ key: "s699le"
308
+ }]]);
309
+ var Sun = createLucideIcon("sun", [
310
+ ["circle", {
311
+ cx: "12",
312
+ cy: "12",
313
+ r: "4",
314
+ key: "4exip2"
315
+ }],
316
+ ["path", {
317
+ d: "M12 2v2",
318
+ key: "tus03m"
319
+ }],
320
+ ["path", {
321
+ d: "M12 20v2",
322
+ key: "1lh1kg"
323
+ }],
324
+ ["path", {
325
+ d: "m4.93 4.93 1.41 1.41",
326
+ key: "149t6j"
327
+ }],
328
+ ["path", {
329
+ d: "m17.66 17.66 1.41 1.41",
330
+ key: "ptbguv"
331
+ }],
332
+ ["path", {
333
+ d: "M2 12h2",
334
+ key: "1t8f8n"
335
+ }],
336
+ ["path", {
337
+ d: "M20 12h2",
338
+ key: "1q8mjw"
339
+ }],
340
+ ["path", {
341
+ d: "m6.34 17.66-1.41 1.41",
342
+ key: "1m8zz5"
343
+ }],
344
+ ["path", {
345
+ d: "m19.07 4.93-1.41 1.41",
346
+ key: "1shlcs"
347
+ }]
348
+ ]);
349
+ var TriangleAlert = createLucideIcon("triangle-alert", [
350
+ ["path", {
351
+ d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
352
+ key: "wmoenq"
353
+ }],
354
+ ["path", {
355
+ d: "M12 9v4",
356
+ key: "juzpu7"
357
+ }],
358
+ ["path", {
359
+ d: "M12 17h.01",
360
+ key: "p32p05"
361
+ }]
362
+ ]);
363
+ var X = createLucideIcon("x", [["path", {
364
+ d: "M18 6 6 18",
365
+ key: "1bl5f8"
366
+ }], ["path", {
367
+ d: "m6 6 12 12",
368
+ key: "d8bk6v"
369
+ }]]);
370
+ //#endregion
371
+ export { Check as S, CircleCheck as _, PanelLeft as a, ChevronLeft as b, Moon as c, List as d, Info as f, Download as g, ExternalLink as h, Plus as i, Minus as l, FingerprintPattern as m, TriangleAlert as n, Package as o, Funnel as p, Sun as r, OctagonX as s, X as t, LoaderCircle as u, ChevronUp as v, ChevronDown as x, ChevronRight as y };
@@ -0,0 +1,345 @@
1
+ import { i as Minipass } from "./isaacs__fs-minipass+minipass.mjs";
2
+ import { Buffer } from "buffer";
3
+ import assert from "assert";
4
+ import * as realZlib$1 from "zlib";
5
+ import realZlib from "zlib";
6
+ //#region ../../node_modules/.pnpm/minizlib@3.1.0/node_modules/minizlib/dist/esm/constants.js
7
+ /* c8 ignore start */
8
+ var realZlibConstants = realZlib.constants || { ZLIB_VERNUM: 4736 };
9
+ /* c8 ignore stop */
10
+ var constants = Object.freeze(Object.assign(Object.create(null), {
11
+ Z_NO_FLUSH: 0,
12
+ Z_PARTIAL_FLUSH: 1,
13
+ Z_SYNC_FLUSH: 2,
14
+ Z_FULL_FLUSH: 3,
15
+ Z_FINISH: 4,
16
+ Z_BLOCK: 5,
17
+ Z_OK: 0,
18
+ Z_STREAM_END: 1,
19
+ Z_NEED_DICT: 2,
20
+ Z_ERRNO: -1,
21
+ Z_STREAM_ERROR: -2,
22
+ Z_DATA_ERROR: -3,
23
+ Z_MEM_ERROR: -4,
24
+ Z_BUF_ERROR: -5,
25
+ Z_VERSION_ERROR: -6,
26
+ Z_NO_COMPRESSION: 0,
27
+ Z_BEST_SPEED: 1,
28
+ Z_BEST_COMPRESSION: 9,
29
+ Z_DEFAULT_COMPRESSION: -1,
30
+ Z_FILTERED: 1,
31
+ Z_HUFFMAN_ONLY: 2,
32
+ Z_RLE: 3,
33
+ Z_FIXED: 4,
34
+ Z_DEFAULT_STRATEGY: 0,
35
+ DEFLATE: 1,
36
+ INFLATE: 2,
37
+ GZIP: 3,
38
+ GUNZIP: 4,
39
+ DEFLATERAW: 5,
40
+ INFLATERAW: 6,
41
+ UNZIP: 7,
42
+ BROTLI_DECODE: 8,
43
+ BROTLI_ENCODE: 9,
44
+ Z_MIN_WINDOWBITS: 8,
45
+ Z_MAX_WINDOWBITS: 15,
46
+ Z_DEFAULT_WINDOWBITS: 15,
47
+ Z_MIN_CHUNK: 64,
48
+ Z_MAX_CHUNK: Infinity,
49
+ Z_DEFAULT_CHUNK: 16384,
50
+ Z_MIN_MEMLEVEL: 1,
51
+ Z_MAX_MEMLEVEL: 9,
52
+ Z_DEFAULT_MEMLEVEL: 8,
53
+ Z_MIN_LEVEL: -1,
54
+ Z_MAX_LEVEL: 9,
55
+ Z_DEFAULT_LEVEL: -1,
56
+ BROTLI_OPERATION_PROCESS: 0,
57
+ BROTLI_OPERATION_FLUSH: 1,
58
+ BROTLI_OPERATION_FINISH: 2,
59
+ BROTLI_OPERATION_EMIT_METADATA: 3,
60
+ BROTLI_MODE_GENERIC: 0,
61
+ BROTLI_MODE_TEXT: 1,
62
+ BROTLI_MODE_FONT: 2,
63
+ BROTLI_DEFAULT_MODE: 0,
64
+ BROTLI_MIN_QUALITY: 0,
65
+ BROTLI_MAX_QUALITY: 11,
66
+ BROTLI_DEFAULT_QUALITY: 11,
67
+ BROTLI_MIN_WINDOW_BITS: 10,
68
+ BROTLI_MAX_WINDOW_BITS: 24,
69
+ BROTLI_LARGE_MAX_WINDOW_BITS: 30,
70
+ BROTLI_DEFAULT_WINDOW: 22,
71
+ BROTLI_MIN_INPUT_BLOCK_BITS: 16,
72
+ BROTLI_MAX_INPUT_BLOCK_BITS: 24,
73
+ BROTLI_PARAM_MODE: 0,
74
+ BROTLI_PARAM_QUALITY: 1,
75
+ BROTLI_PARAM_LGWIN: 2,
76
+ BROTLI_PARAM_LGBLOCK: 3,
77
+ BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING: 4,
78
+ BROTLI_PARAM_SIZE_HINT: 5,
79
+ BROTLI_PARAM_LARGE_WINDOW: 6,
80
+ BROTLI_PARAM_NPOSTFIX: 7,
81
+ BROTLI_PARAM_NDIRECT: 8,
82
+ BROTLI_DECODER_RESULT_ERROR: 0,
83
+ BROTLI_DECODER_RESULT_SUCCESS: 1,
84
+ BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT: 2,
85
+ BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT: 3,
86
+ BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION: 0,
87
+ BROTLI_DECODER_PARAM_LARGE_WINDOW: 1,
88
+ BROTLI_DECODER_NO_ERROR: 0,
89
+ BROTLI_DECODER_SUCCESS: 1,
90
+ BROTLI_DECODER_NEEDS_MORE_INPUT: 2,
91
+ BROTLI_DECODER_NEEDS_MORE_OUTPUT: 3,
92
+ BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE: -1,
93
+ BROTLI_DECODER_ERROR_FORMAT_RESERVED: -2,
94
+ BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE: -3,
95
+ BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET: -4,
96
+ BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME: -5,
97
+ BROTLI_DECODER_ERROR_FORMAT_CL_SPACE: -6,
98
+ BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE: -7,
99
+ BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT: -8,
100
+ BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1: -9,
101
+ BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2: -10,
102
+ BROTLI_DECODER_ERROR_FORMAT_TRANSFORM: -11,
103
+ BROTLI_DECODER_ERROR_FORMAT_DICTIONARY: -12,
104
+ BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS: -13,
105
+ BROTLI_DECODER_ERROR_FORMAT_PADDING_1: -14,
106
+ BROTLI_DECODER_ERROR_FORMAT_PADDING_2: -15,
107
+ BROTLI_DECODER_ERROR_FORMAT_DISTANCE: -16,
108
+ BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET: -19,
109
+ BROTLI_DECODER_ERROR_INVALID_ARGUMENTS: -20,
110
+ BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: -21,
111
+ BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS: -22,
112
+ BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP: -25,
113
+ BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1: -26,
114
+ BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: -27,
115
+ BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: -30,
116
+ BROTLI_DECODER_ERROR_UNREACHABLE: -31
117
+ }, realZlibConstants));
118
+ //#endregion
119
+ //#region ../../node_modules/.pnpm/minizlib@3.1.0/node_modules/minizlib/dist/esm/index.js
120
+ var OriginalBufferConcat = Buffer.concat;
121
+ var desc = Object.getOwnPropertyDescriptor(Buffer, "concat");
122
+ var noop = (args) => args;
123
+ var passthroughBufferConcat = desc?.writable === true || desc?.set !== void 0 ? (makeNoOp) => {
124
+ Buffer.concat = makeNoOp ? noop : OriginalBufferConcat;
125
+ } : (_) => {};
126
+ var _superWrite = Symbol("_superWrite");
127
+ var ZlibError = class extends Error {
128
+ code;
129
+ errno;
130
+ constructor(err, origin) {
131
+ super("zlib: " + err.message, { cause: err });
132
+ this.code = err.code;
133
+ this.errno = err.errno;
134
+ /* c8 ignore next */
135
+ if (!this.code) this.code = "ZLIB_ERROR";
136
+ this.message = "zlib: " + err.message;
137
+ Error.captureStackTrace(this, origin ?? this.constructor);
138
+ }
139
+ get name() {
140
+ return "ZlibError";
141
+ }
142
+ };
143
+ var _flushFlag = Symbol("flushFlag");
144
+ var ZlibBase = class extends Minipass {
145
+ #sawError = false;
146
+ #ended = false;
147
+ #flushFlag;
148
+ #finishFlushFlag;
149
+ #fullFlushFlag;
150
+ #handle;
151
+ #onError;
152
+ get sawError() {
153
+ return this.#sawError;
154
+ }
155
+ get handle() {
156
+ return this.#handle;
157
+ }
158
+ /* c8 ignore start */
159
+ get flushFlag() {
160
+ return this.#flushFlag;
161
+ }
162
+ /* c8 ignore stop */
163
+ constructor(opts, mode) {
164
+ if (!opts || typeof opts !== "object") throw new TypeError("invalid options for ZlibBase constructor");
165
+ super(opts);
166
+ /* c8 ignore start */
167
+ this.#flushFlag = opts.flush ?? 0;
168
+ this.#finishFlushFlag = opts.finishFlush ?? 0;
169
+ this.#fullFlushFlag = opts.fullFlushFlag ?? 0;
170
+ /* c8 ignore stop */
171
+ if (typeof realZlib$1[mode] !== "function") throw new TypeError("Compression method not supported: " + mode);
172
+ try {
173
+ this.#handle = new realZlib$1[mode](opts);
174
+ } catch (er) {
175
+ throw new ZlibError(er, this.constructor);
176
+ }
177
+ this.#onError = (err) => {
178
+ if (this.#sawError) return;
179
+ this.#sawError = true;
180
+ this.close();
181
+ this.emit("error", err);
182
+ };
183
+ this.#handle?.on("error", (er) => this.#onError(new ZlibError(er)));
184
+ this.once("end", () => this.close);
185
+ }
186
+ close() {
187
+ if (this.#handle) {
188
+ this.#handle.close();
189
+ this.#handle = void 0;
190
+ this.emit("close");
191
+ }
192
+ }
193
+ reset() {
194
+ if (!this.#sawError) {
195
+ assert(this.#handle, "zlib binding closed");
196
+ return this.#handle.reset?.();
197
+ }
198
+ }
199
+ flush(flushFlag) {
200
+ if (this.ended) return;
201
+ if (typeof flushFlag !== "number") flushFlag = this.#fullFlushFlag;
202
+ this.write(Object.assign(Buffer.alloc(0), { [_flushFlag]: flushFlag }));
203
+ }
204
+ end(chunk, encoding, cb) {
205
+ /* c8 ignore start */
206
+ if (typeof chunk === "function") {
207
+ cb = chunk;
208
+ encoding = void 0;
209
+ chunk = void 0;
210
+ }
211
+ if (typeof encoding === "function") {
212
+ cb = encoding;
213
+ encoding = void 0;
214
+ }
215
+ /* c8 ignore stop */
216
+ if (chunk) if (encoding) this.write(chunk, encoding);
217
+ else this.write(chunk);
218
+ this.flush(this.#finishFlushFlag);
219
+ this.#ended = true;
220
+ return super.end(cb);
221
+ }
222
+ get ended() {
223
+ return this.#ended;
224
+ }
225
+ [_superWrite](data) {
226
+ return super.write(data);
227
+ }
228
+ write(chunk, encoding, cb) {
229
+ if (typeof encoding === "function") cb = encoding, encoding = "utf8";
230
+ if (typeof chunk === "string") chunk = Buffer.from(chunk, encoding);
231
+ if (this.#sawError) return;
232
+ assert(this.#handle, "zlib binding closed");
233
+ const nativeHandle = this.#handle._handle;
234
+ const originalNativeClose = nativeHandle.close;
235
+ nativeHandle.close = () => {};
236
+ const originalClose = this.#handle.close;
237
+ this.#handle.close = () => {};
238
+ passthroughBufferConcat(true);
239
+ let result = void 0;
240
+ try {
241
+ const flushFlag = typeof chunk[_flushFlag] === "number" ? chunk[_flushFlag] : this.#flushFlag;
242
+ result = this.#handle._processChunk(chunk, flushFlag);
243
+ passthroughBufferConcat(false);
244
+ } catch (err) {
245
+ passthroughBufferConcat(false);
246
+ this.#onError(new ZlibError(err, this.write));
247
+ } finally {
248
+ if (this.#handle) {
249
+ this.#handle._handle = nativeHandle;
250
+ nativeHandle.close = originalNativeClose;
251
+ this.#handle.close = originalClose;
252
+ this.#handle.removeAllListeners("error");
253
+ }
254
+ }
255
+ if (this.#handle) this.#handle.on("error", (er) => this.#onError(new ZlibError(er, this.write)));
256
+ let writeReturn;
257
+ if (result) if (Array.isArray(result) && result.length > 0) {
258
+ const r = result[0];
259
+ writeReturn = this[_superWrite](Buffer.from(r));
260
+ for (let i = 1; i < result.length; i++) writeReturn = this[_superWrite](result[i]);
261
+ } else writeReturn = this[_superWrite](Buffer.from(result));
262
+ if (cb) cb();
263
+ return writeReturn;
264
+ }
265
+ };
266
+ var Zlib = class extends ZlibBase {
267
+ #level;
268
+ #strategy;
269
+ constructor(opts, mode) {
270
+ opts = opts || {};
271
+ opts.flush = opts.flush || constants.Z_NO_FLUSH;
272
+ opts.finishFlush = opts.finishFlush || constants.Z_FINISH;
273
+ opts.fullFlushFlag = constants.Z_FULL_FLUSH;
274
+ super(opts, mode);
275
+ this.#level = opts.level;
276
+ this.#strategy = opts.strategy;
277
+ }
278
+ params(level, strategy) {
279
+ if (this.sawError) return;
280
+ if (!this.handle) throw new Error("cannot switch params when binding is closed");
281
+ /* c8 ignore start */
282
+ if (!this.handle.params) throw new Error("not supported in this implementation");
283
+ /* c8 ignore stop */
284
+ if (this.#level !== level || this.#strategy !== strategy) {
285
+ this.flush(constants.Z_SYNC_FLUSH);
286
+ assert(this.handle, "zlib binding closed");
287
+ const origFlush = this.handle.flush;
288
+ this.handle.flush = (flushFlag, cb) => {
289
+ /* c8 ignore start */
290
+ if (typeof flushFlag === "function") {
291
+ cb = flushFlag;
292
+ flushFlag = this.flushFlag;
293
+ }
294
+ /* c8 ignore stop */
295
+ this.flush(flushFlag);
296
+ cb?.();
297
+ };
298
+ try {
299
+ this.handle.params(level, strategy);
300
+ } finally {
301
+ this.handle.flush = origFlush;
302
+ }
303
+ /* c8 ignore start */
304
+ if (this.handle) {
305
+ this.#level = level;
306
+ this.#strategy = strategy;
307
+ }
308
+ }
309
+ }
310
+ };
311
+ var Unzip = class extends Zlib {
312
+ constructor(opts) {
313
+ super(opts, "Unzip");
314
+ }
315
+ };
316
+ var Brotli = class extends ZlibBase {
317
+ constructor(opts, mode) {
318
+ opts = opts || {};
319
+ opts.flush = opts.flush || constants.BROTLI_OPERATION_PROCESS;
320
+ opts.finishFlush = opts.finishFlush || constants.BROTLI_OPERATION_FINISH;
321
+ opts.fullFlushFlag = constants.BROTLI_OPERATION_FLUSH;
322
+ super(opts, mode);
323
+ }
324
+ };
325
+ var BrotliDecompress = class extends Brotli {
326
+ constructor(opts) {
327
+ super(opts, "BrotliDecompress");
328
+ }
329
+ };
330
+ var Zstd = class extends ZlibBase {
331
+ constructor(opts, mode) {
332
+ opts = opts || {};
333
+ opts.flush = opts.flush || constants.ZSTD_e_continue;
334
+ opts.finishFlush = opts.finishFlush || constants.ZSTD_e_end;
335
+ opts.fullFlushFlag = constants.ZSTD_e_flush;
336
+ super(opts, mode);
337
+ }
338
+ };
339
+ var ZstdDecompress = class extends Zstd {
340
+ constructor(opts) {
341
+ super(opts, "ZstdDecompress");
342
+ }
343
+ };
344
+ //#endregion
345
+ export { Unzip as n, ZstdDecompress as r, BrotliDecompress as t };