@asafarim/progress-bars 1.0.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/index.js ADDED
@@ -0,0 +1,1072 @@
1
+ import Je, { forwardRef as $r, useMemo as wr } from "react";
2
+ var he = { exports: {} }, V = {};
3
+ /**
4
+ * @license React
5
+ * react-jsx-runtime.production.min.js
6
+ *
7
+ * Copyright (c) Facebook, Inc. and its affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
12
+ var Ve;
13
+ function xr() {
14
+ if (Ve) return V;
15
+ Ve = 1;
16
+ var i = Je, a = Symbol.for("react.element"), c = Symbol.for("react.fragment"), v = Object.prototype.hasOwnProperty, m = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
17
+ function s(d, f, b) {
18
+ var h, E = {}, k = null, N = null;
19
+ b !== void 0 && (k = "" + b), f.key !== void 0 && (k = "" + f.key), f.ref !== void 0 && (N = f.ref);
20
+ for (h in f) v.call(f, h) && !p.hasOwnProperty(h) && (E[h] = f[h]);
21
+ if (d && d.defaultProps) for (h in f = d.defaultProps, f) E[h] === void 0 && (E[h] = f[h]);
22
+ return { $$typeof: a, type: d, key: k, ref: N, props: E, _owner: m.current };
23
+ }
24
+ return V.Fragment = c, V.jsx = s, V.jsxs = s, V;
25
+ }
26
+ var U = {};
27
+ /**
28
+ * @license React
29
+ * react-jsx-runtime.development.js
30
+ *
31
+ * Copyright (c) Facebook, Inc. and its affiliates.
32
+ *
33
+ * This source code is licensed under the MIT license found in the
34
+ * LICENSE file in the root directory of this source tree.
35
+ */
36
+ var Ue;
37
+ function Er() {
38
+ return Ue || (Ue = 1, process.env.NODE_ENV !== "production" && function() {
39
+ var i = Je, a = Symbol.for("react.element"), c = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), d = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), N = Symbol.for("react.offscreen"), B = Symbol.iterator, ae = "@@iterator";
40
+ function te(e) {
41
+ if (e === null || typeof e != "object")
42
+ return null;
43
+ var r = B && e[B] || e[ae];
44
+ return typeof r == "function" ? r : null;
45
+ }
46
+ var P = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
47
+ function $(e) {
48
+ {
49
+ for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), t = 1; t < r; t++)
50
+ n[t - 1] = arguments[t];
51
+ se("error", e, n);
52
+ }
53
+ }
54
+ function se(e, r, n) {
55
+ {
56
+ var t = P.ReactDebugCurrentFrame, _ = t.getStackAddendum();
57
+ _ !== "" && (r += "%s", n = n.concat([_]));
58
+ var g = n.map(function(l) {
59
+ return String(l);
60
+ });
61
+ g.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, g);
62
+ }
63
+ }
64
+ var ie = !1, oe = !1, O = !1, S = !1, J = !1, q;
65
+ q = Symbol.for("react.module.reference");
66
+ function K(e) {
67
+ return !!(typeof e == "string" || typeof e == "function" || e === v || e === p || J || e === m || e === b || e === h || S || e === N || ie || oe || O || typeof e == "object" && e !== null && (e.$$typeof === k || e.$$typeof === E || e.$$typeof === s || e.$$typeof === d || e.$$typeof === f || // This needs to include all possible module reference object
68
+ // types supported by any Flight configuration anywhere since
69
+ // we don't know which Flight build this will end up being used
70
+ // with.
71
+ e.$$typeof === q || e.getModuleId !== void 0));
72
+ }
73
+ function ce(e, r, n) {
74
+ var t = e.displayName;
75
+ if (t)
76
+ return t;
77
+ var _ = r.displayName || r.name || "";
78
+ return _ !== "" ? n + "(" + _ + ")" : n;
79
+ }
80
+ function ye(e) {
81
+ return e.displayName || "Context";
82
+ }
83
+ function D(e) {
84
+ if (e == null)
85
+ return null;
86
+ if (typeof e.tag == "number" && $("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
87
+ return e.displayName || e.name || null;
88
+ if (typeof e == "string")
89
+ return e;
90
+ switch (e) {
91
+ case v:
92
+ return "Fragment";
93
+ case c:
94
+ return "Portal";
95
+ case p:
96
+ return "Profiler";
97
+ case m:
98
+ return "StrictMode";
99
+ case b:
100
+ return "Suspense";
101
+ case h:
102
+ return "SuspenseList";
103
+ }
104
+ if (typeof e == "object")
105
+ switch (e.$$typeof) {
106
+ case d:
107
+ var r = e;
108
+ return ye(r) + ".Consumer";
109
+ case s:
110
+ var n = e;
111
+ return ye(n._context) + ".Provider";
112
+ case f:
113
+ return ce(e, e.render, "ForwardRef");
114
+ case E:
115
+ var t = e.displayName || null;
116
+ return t !== null ? t : D(e.type) || "Memo";
117
+ case k: {
118
+ var _ = e, g = _._payload, l = _._init;
119
+ try {
120
+ return D(l(g));
121
+ } catch {
122
+ return null;
123
+ }
124
+ }
125
+ }
126
+ return null;
127
+ }
128
+ var F = Object.assign, Y = 0, $e, we, xe, Ee, Re, je, ke;
129
+ function Pe() {
130
+ }
131
+ Pe.__reactDisabledLog = !0;
132
+ function Ke() {
133
+ {
134
+ if (Y === 0) {
135
+ $e = console.log, we = console.info, xe = console.warn, Ee = console.error, Re = console.group, je = console.groupCollapsed, ke = console.groupEnd;
136
+ var e = {
137
+ configurable: !0,
138
+ enumerable: !0,
139
+ value: Pe,
140
+ writable: !0
141
+ };
142
+ Object.defineProperties(console, {
143
+ info: e,
144
+ log: e,
145
+ warn: e,
146
+ error: e,
147
+ group: e,
148
+ groupCollapsed: e,
149
+ groupEnd: e
150
+ });
151
+ }
152
+ Y++;
153
+ }
154
+ }
155
+ function Ge() {
156
+ {
157
+ if (Y--, Y === 0) {
158
+ var e = {
159
+ configurable: !0,
160
+ enumerable: !0,
161
+ writable: !0
162
+ };
163
+ Object.defineProperties(console, {
164
+ log: F({}, e, {
165
+ value: $e
166
+ }),
167
+ info: F({}, e, {
168
+ value: we
169
+ }),
170
+ warn: F({}, e, {
171
+ value: xe
172
+ }),
173
+ error: F({}, e, {
174
+ value: Ee
175
+ }),
176
+ group: F({}, e, {
177
+ value: Re
178
+ }),
179
+ groupCollapsed: F({}, e, {
180
+ value: je
181
+ }),
182
+ groupEnd: F({}, e, {
183
+ value: ke
184
+ })
185
+ });
186
+ }
187
+ Y < 0 && $("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
188
+ }
189
+ }
190
+ var le = P.ReactCurrentDispatcher, ue;
191
+ function G(e, r, n) {
192
+ {
193
+ if (ue === void 0)
194
+ try {
195
+ throw Error();
196
+ } catch (_) {
197
+ var t = _.stack.trim().match(/\n( *(at )?)/);
198
+ ue = t && t[1] || "";
199
+ }
200
+ return `
201
+ ` + ue + e;
202
+ }
203
+ }
204
+ var _e = !1, X;
205
+ {
206
+ var Xe = typeof WeakMap == "function" ? WeakMap : Map;
207
+ X = new Xe();
208
+ }
209
+ function Oe(e, r) {
210
+ if (!e || _e)
211
+ return "";
212
+ {
213
+ var n = X.get(e);
214
+ if (n !== void 0)
215
+ return n;
216
+ }
217
+ var t;
218
+ _e = !0;
219
+ var _ = Error.prepareStackTrace;
220
+ Error.prepareStackTrace = void 0;
221
+ var g;
222
+ g = le.current, le.current = null, Ke();
223
+ try {
224
+ if (r) {
225
+ var l = function() {
226
+ throw Error();
227
+ };
228
+ if (Object.defineProperty(l.prototype, "props", {
229
+ set: function() {
230
+ throw Error();
231
+ }
232
+ }), typeof Reflect == "object" && Reflect.construct) {
233
+ try {
234
+ Reflect.construct(l, []);
235
+ } catch (R) {
236
+ t = R;
237
+ }
238
+ Reflect.construct(e, [], l);
239
+ } else {
240
+ try {
241
+ l.call();
242
+ } catch (R) {
243
+ t = R;
244
+ }
245
+ e.call(l.prototype);
246
+ }
247
+ } else {
248
+ try {
249
+ throw Error();
250
+ } catch (R) {
251
+ t = R;
252
+ }
253
+ e();
254
+ }
255
+ } catch (R) {
256
+ if (R && t && typeof R.stack == "string") {
257
+ for (var o = R.stack.split(`
258
+ `), x = t.stack.split(`
259
+ `), y = o.length - 1, w = x.length - 1; y >= 1 && w >= 0 && o[y] !== x[w]; )
260
+ w--;
261
+ for (; y >= 1 && w >= 0; y--, w--)
262
+ if (o[y] !== x[w]) {
263
+ if (y !== 1 || w !== 1)
264
+ do
265
+ if (y--, w--, w < 0 || o[y] !== x[w]) {
266
+ var j = `
267
+ ` + o[y].replace(" at new ", " at ");
268
+ return e.displayName && j.includes("<anonymous>") && (j = j.replace("<anonymous>", e.displayName)), typeof e == "function" && X.set(e, j), j;
269
+ }
270
+ while (y >= 1 && w >= 0);
271
+ break;
272
+ }
273
+ }
274
+ } finally {
275
+ _e = !1, le.current = g, Ge(), Error.prepareStackTrace = _;
276
+ }
277
+ var z = e ? e.displayName || e.name : "", A = z ? G(z) : "";
278
+ return typeof e == "function" && X.set(e, A), A;
279
+ }
280
+ function He(e, r, n) {
281
+ return Oe(e, !1);
282
+ }
283
+ function Ze(e) {
284
+ var r = e.prototype;
285
+ return !!(r && r.isReactComponent);
286
+ }
287
+ function H(e, r, n) {
288
+ if (e == null)
289
+ return "";
290
+ if (typeof e == "function")
291
+ return Oe(e, Ze(e));
292
+ if (typeof e == "string")
293
+ return G(e);
294
+ switch (e) {
295
+ case b:
296
+ return G("Suspense");
297
+ case h:
298
+ return G("SuspenseList");
299
+ }
300
+ if (typeof e == "object")
301
+ switch (e.$$typeof) {
302
+ case f:
303
+ return He(e.render);
304
+ case E:
305
+ return H(e.type, r, n);
306
+ case k: {
307
+ var t = e, _ = t._payload, g = t._init;
308
+ try {
309
+ return H(g(_), r, n);
310
+ } catch {
311
+ }
312
+ }
313
+ }
314
+ return "";
315
+ }
316
+ var L = Object.prototype.hasOwnProperty, Te = {}, Se = P.ReactDebugCurrentFrame;
317
+ function Z(e) {
318
+ if (e) {
319
+ var r = e._owner, n = H(e.type, e._source, r ? r.type : null);
320
+ Se.setExtraStackFrame(n);
321
+ } else
322
+ Se.setExtraStackFrame(null);
323
+ }
324
+ function Qe(e, r, n, t, _) {
325
+ {
326
+ var g = Function.call.bind(L);
327
+ for (var l in e)
328
+ if (g(e, l)) {
329
+ var o = void 0;
330
+ try {
331
+ if (typeof e[l] != "function") {
332
+ var x = Error((t || "React class") + ": " + n + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
333
+ throw x.name = "Invariant Violation", x;
334
+ }
335
+ o = e[l](r, l, t, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
336
+ } catch (y) {
337
+ o = y;
338
+ }
339
+ o && !(o instanceof Error) && (Z(_), $("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", t || "React class", n, l, typeof o), Z(null)), o instanceof Error && !(o.message in Te) && (Te[o.message] = !0, Z(_), $("Failed %s type: %s", n, o.message), Z(null));
340
+ }
341
+ }
342
+ }
343
+ var er = Array.isArray;
344
+ function fe(e) {
345
+ return er(e);
346
+ }
347
+ function rr(e) {
348
+ {
349
+ var r = typeof Symbol == "function" && Symbol.toStringTag, n = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
350
+ return n;
351
+ }
352
+ }
353
+ function nr(e) {
354
+ try {
355
+ return Ce(e), !1;
356
+ } catch {
357
+ return !0;
358
+ }
359
+ }
360
+ function Ce(e) {
361
+ return "" + e;
362
+ }
363
+ function Ne(e) {
364
+ if (nr(e))
365
+ return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", rr(e)), Ce(e);
366
+ }
367
+ var De = P.ReactCurrentOwner, ar = {
368
+ key: !0,
369
+ ref: !0,
370
+ __self: !0,
371
+ __source: !0
372
+ }, Fe, Ae;
373
+ function tr(e) {
374
+ if (L.call(e, "ref")) {
375
+ var r = Object.getOwnPropertyDescriptor(e, "ref").get;
376
+ if (r && r.isReactWarning)
377
+ return !1;
378
+ }
379
+ return e.ref !== void 0;
380
+ }
381
+ function sr(e) {
382
+ if (L.call(e, "key")) {
383
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
384
+ if (r && r.isReactWarning)
385
+ return !1;
386
+ }
387
+ return e.key !== void 0;
388
+ }
389
+ function ir(e, r) {
390
+ typeof e.ref == "string" && De.current;
391
+ }
392
+ function or(e, r) {
393
+ {
394
+ var n = function() {
395
+ Fe || (Fe = !0, $("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
396
+ };
397
+ n.isReactWarning = !0, Object.defineProperty(e, "key", {
398
+ get: n,
399
+ configurable: !0
400
+ });
401
+ }
402
+ }
403
+ function cr(e, r) {
404
+ {
405
+ var n = function() {
406
+ Ae || (Ae = !0, $("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
407
+ };
408
+ n.isReactWarning = !0, Object.defineProperty(e, "ref", {
409
+ get: n,
410
+ configurable: !0
411
+ });
412
+ }
413
+ }
414
+ var lr = function(e, r, n, t, _, g, l) {
415
+ var o = {
416
+ // This tag allows us to uniquely identify this as a React Element
417
+ $$typeof: a,
418
+ // Built-in properties that belong on the element
419
+ type: e,
420
+ key: r,
421
+ ref: n,
422
+ props: l,
423
+ // Record the component responsible for creating this element.
424
+ _owner: g
425
+ };
426
+ return o._store = {}, Object.defineProperty(o._store, "validated", {
427
+ configurable: !1,
428
+ enumerable: !1,
429
+ writable: !0,
430
+ value: !1
431
+ }), Object.defineProperty(o, "_self", {
432
+ configurable: !1,
433
+ enumerable: !1,
434
+ writable: !1,
435
+ value: t
436
+ }), Object.defineProperty(o, "_source", {
437
+ configurable: !1,
438
+ enumerable: !1,
439
+ writable: !1,
440
+ value: _
441
+ }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
442
+ };
443
+ function ur(e, r, n, t, _) {
444
+ {
445
+ var g, l = {}, o = null, x = null;
446
+ n !== void 0 && (Ne(n), o = "" + n), sr(r) && (Ne(r.key), o = "" + r.key), tr(r) && (x = r.ref, ir(r, _));
447
+ for (g in r)
448
+ L.call(r, g) && !ar.hasOwnProperty(g) && (l[g] = r[g]);
449
+ if (e && e.defaultProps) {
450
+ var y = e.defaultProps;
451
+ for (g in y)
452
+ l[g] === void 0 && (l[g] = y[g]);
453
+ }
454
+ if (o || x) {
455
+ var w = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
456
+ o && or(l, w), x && cr(l, w);
457
+ }
458
+ return lr(e, o, x, _, t, De.current, l);
459
+ }
460
+ }
461
+ var de = P.ReactCurrentOwner, Ie = P.ReactDebugCurrentFrame;
462
+ function W(e) {
463
+ if (e) {
464
+ var r = e._owner, n = H(e.type, e._source, r ? r.type : null);
465
+ Ie.setExtraStackFrame(n);
466
+ } else
467
+ Ie.setExtraStackFrame(null);
468
+ }
469
+ var ve;
470
+ ve = !1;
471
+ function ge(e) {
472
+ return typeof e == "object" && e !== null && e.$$typeof === a;
473
+ }
474
+ function Me() {
475
+ {
476
+ if (de.current) {
477
+ var e = D(de.current.type);
478
+ if (e)
479
+ return `
480
+
481
+ Check the render method of \`` + e + "`.";
482
+ }
483
+ return "";
484
+ }
485
+ }
486
+ function _r(e) {
487
+ return "";
488
+ }
489
+ var qe = {};
490
+ function fr(e) {
491
+ {
492
+ var r = Me();
493
+ if (!r) {
494
+ var n = typeof e == "string" ? e : e.displayName || e.name;
495
+ n && (r = `
496
+
497
+ Check the top-level render call using <` + n + ">.");
498
+ }
499
+ return r;
500
+ }
501
+ }
502
+ function We(e, r) {
503
+ {
504
+ if (!e._store || e._store.validated || e.key != null)
505
+ return;
506
+ e._store.validated = !0;
507
+ var n = fr(r);
508
+ if (qe[n])
509
+ return;
510
+ qe[n] = !0;
511
+ var t = "";
512
+ e && e._owner && e._owner !== de.current && (t = " It was passed a child from " + D(e._owner.type) + "."), W(e), $('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, t), W(null);
513
+ }
514
+ }
515
+ function ze(e, r) {
516
+ {
517
+ if (typeof e != "object")
518
+ return;
519
+ if (fe(e))
520
+ for (var n = 0; n < e.length; n++) {
521
+ var t = e[n];
522
+ ge(t) && We(t, r);
523
+ }
524
+ else if (ge(e))
525
+ e._store && (e._store.validated = !0);
526
+ else if (e) {
527
+ var _ = te(e);
528
+ if (typeof _ == "function" && _ !== e.entries)
529
+ for (var g = _.call(e), l; !(l = g.next()).done; )
530
+ ge(l.value) && We(l.value, r);
531
+ }
532
+ }
533
+ }
534
+ function dr(e) {
535
+ {
536
+ var r = e.type;
537
+ if (r == null || typeof r == "string")
538
+ return;
539
+ var n;
540
+ if (typeof r == "function")
541
+ n = r.propTypes;
542
+ else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
543
+ // Inner props are checked in the reconciler.
544
+ r.$$typeof === E))
545
+ n = r.propTypes;
546
+ else
547
+ return;
548
+ if (n) {
549
+ var t = D(r);
550
+ Qe(n, e.props, "prop", t, e);
551
+ } else if (r.PropTypes !== void 0 && !ve) {
552
+ ve = !0;
553
+ var _ = D(r);
554
+ $("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _ || "Unknown");
555
+ }
556
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && $("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
557
+ }
558
+ }
559
+ function vr(e) {
560
+ {
561
+ for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
562
+ var t = r[n];
563
+ if (t !== "children" && t !== "key") {
564
+ W(e), $("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", t), W(null);
565
+ break;
566
+ }
567
+ }
568
+ e.ref !== null && (W(e), $("Invalid attribute `ref` supplied to `React.Fragment`."), W(null));
569
+ }
570
+ }
571
+ var Ye = {};
572
+ function Le(e, r, n, t, _, g) {
573
+ {
574
+ var l = K(e);
575
+ if (!l) {
576
+ var o = "";
577
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
578
+ var x = _r();
579
+ x ? o += x : o += Me();
580
+ var y;
581
+ e === null ? y = "null" : fe(e) ? y = "array" : e !== void 0 && e.$$typeof === a ? (y = "<" + (D(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : y = typeof e, $("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", y, o);
582
+ }
583
+ var w = ur(e, r, n, _, g);
584
+ if (w == null)
585
+ return w;
586
+ if (l) {
587
+ var j = r.children;
588
+ if (j !== void 0)
589
+ if (t)
590
+ if (fe(j)) {
591
+ for (var z = 0; z < j.length; z++)
592
+ ze(j[z], e);
593
+ Object.freeze && Object.freeze(j);
594
+ } else
595
+ $("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
596
+ else
597
+ ze(j, e);
598
+ }
599
+ if (L.call(r, "key")) {
600
+ var A = D(e), R = Object.keys(r).filter(function(yr) {
601
+ return yr !== "key";
602
+ }), pe = R.length > 0 ? "{key: someKey, " + R.join(": ..., ") + ": ...}" : "{key: someKey}";
603
+ if (!Ye[A + pe]) {
604
+ var hr = R.length > 0 ? "{" + R.join(": ..., ") + ": ...}" : "{}";
605
+ $(`A props object containing a "key" prop is being spread into JSX:
606
+ let props = %s;
607
+ <%s {...props} />
608
+ React keys must be passed directly to JSX without using spread:
609
+ let props = %s;
610
+ <%s key={someKey} {...props} />`, pe, A, hr, A), Ye[A + pe] = !0;
611
+ }
612
+ }
613
+ return e === v ? vr(w) : dr(w), w;
614
+ }
615
+ }
616
+ function gr(e, r, n) {
617
+ return Le(e, r, n, !0);
618
+ }
619
+ function pr(e, r, n) {
620
+ return Le(e, r, n, !1);
621
+ }
622
+ var mr = pr, br = gr;
623
+ U.Fragment = v, U.jsx = mr, U.jsxs = br;
624
+ }()), U;
625
+ }
626
+ process.env.NODE_ENV === "production" ? he.exports = xr() : he.exports = Er();
627
+ var u = he.exports;
628
+ const Rr = "_root_aq7ts_1", jr = "_brand_aq7ts_14", kr = "_success_aq7ts_18", Pr = "_warning_aq7ts_22", Or = "_danger_aq7ts_26", Tr = "_neutral_aq7ts_30", Sr = "_info_aq7ts_34", Cr = "_track_aq7ts_38", Nr = "_size_sm_aq7ts_49", Dr = "_size_md_aq7ts_53", Fr = "_size_lg_aq7ts_57", Ar = "_bar_aq7ts_61", Ir = "_striped_aq7ts_75", Mr = "_animated_aq7ts_86", qr = "_variant_indeterminate_aq7ts_99", C = {
629
+ root: Rr,
630
+ brand: jr,
631
+ success: kr,
632
+ warning: Pr,
633
+ danger: Or,
634
+ neutral: Tr,
635
+ info: Sr,
636
+ track: Cr,
637
+ size_sm: Nr,
638
+ size_md: Dr,
639
+ size_lg: Fr,
640
+ bar: Ar,
641
+ striped: Ir,
642
+ animated: Mr,
643
+ "stripe-move": "_stripe-move_aq7ts_1",
644
+ variant_indeterminate: qr,
645
+ "lp-indeterminate": "_lp-indeterminate_aq7ts_1"
646
+ };
647
+ function Be(i, a, c) {
648
+ return !Number.isFinite(i) || i < a ? a : i > c ? c : i;
649
+ }
650
+ const ja = $r(function({
651
+ variant: a = "determinate",
652
+ size: c = "md",
653
+ tone: v = "brand",
654
+ value: m = 0,
655
+ min: p = 0,
656
+ max: s = 100,
657
+ striped: d = !1,
658
+ animated: f = !1,
659
+ thickness: b,
660
+ ariaLabel: h,
661
+ ariaLabelledBy: E,
662
+ ariaValueText: k,
663
+ className: N,
664
+ style: B,
665
+ ...ae
666
+ }, te) {
667
+ const P = a === "determinate", $ = wr(() => {
668
+ const S = Number.isFinite(p) ? p : 0, J = Number.isFinite(s) ? s : S + 100, q = J <= S ? S + 100 : J, K = Be(Number(m), S, q), ce = (K - S) / (q - S) * 100;
669
+ return {
670
+ min: S,
671
+ max: q,
672
+ value: K,
673
+ percent: Be(ce, 0, 100)
674
+ };
675
+ }, [m, p, s]), se = [
676
+ C.root,
677
+ C[`size_${c}`],
678
+ C[v],
679
+ P ? C.variant_determinate : C.variant_indeterminate,
680
+ d && C.striped,
681
+ f && C.animated,
682
+ N
683
+ ].filter(Boolean).join(" "), ie = P ? { width: `${$.percent}%` } : void 0, oe = {
684
+ ...B,
685
+ ...b ? { "--lp-track-height": `${b}px` } : {}
686
+ }, O = {
687
+ role: "progressbar"
688
+ };
689
+ return P ? (O["aria-valuemin"] = $.min, O["aria-valuemax"] = $.max, O["aria-valuenow"] = $.value) : O["aria-valuetext"] = k ?? "Loading", E ? O["aria-labelledby"] = E : h ? O["aria-label"] = h : O["aria-label"] = "Progress", /* @__PURE__ */ u.jsx("div", { ref: te, className: se, style: oe, ...O, ...ae, children: /* @__PURE__ */ u.jsx("div", { className: C.track, style: b ? { height: `${b}px` } : void 0, "aria-hidden": "true", children: /* @__PURE__ */ u.jsx("div", { className: C.bar, style: ie }) }) });
690
+ }), Wr = "_track_ddhgy_1", zr = "_linear_ddhgy_11", Yr = "_vertical_ddhgy_18", Lr = "_circular_ddhgy_25", Vr = "_noBg_ddhgy_29", Ur = "_brand_ddhgy_33", Br = "_success_ddhgy_37", Jr = "_warning_ddhgy_41", Kr = "_danger_ddhgy_45", Gr = "_neutral_ddhgy_49", Xr = "_info_ddhgy_53", Q = {
691
+ track: Wr,
692
+ linear: zr,
693
+ vertical: Yr,
694
+ circular: Lr,
695
+ noBg: Vr,
696
+ brand: Ur,
697
+ success: Br,
698
+ warning: Jr,
699
+ danger: Kr,
700
+ neutral: Gr,
701
+ info: Xr
702
+ };
703
+ function ka({
704
+ className: i,
705
+ style: a,
706
+ thickness: c = 8,
707
+ radius: v,
708
+ variant: m = "linear",
709
+ tone: p = "brand",
710
+ showBg: s = !0,
711
+ children: d
712
+ }) {
713
+ const f = {
714
+ ...a,
715
+ "--pb-track-thickness": `${c}px`,
716
+ "--pb-track-radius": v ? `${v}px` : void 0
717
+ };
718
+ return /* @__PURE__ */ u.jsx(
719
+ "div",
720
+ {
721
+ className: `${Q.track} ${Q[m]} ${Q[p]} ${s ? "" : Q.noBg} ${i || ""}`,
722
+ style: f,
723
+ children: d
724
+ }
725
+ );
726
+ }
727
+ const Hr = "_label_3ne5f_1", Zr = "_text_3ne5f_10", Qr = "_value_3ne5f_14", en = "_srOnly_3ne5f_19", ee = {
728
+ label: Hr,
729
+ text: Zr,
730
+ value: Qr,
731
+ srOnly: en
732
+ };
733
+ function Pa({
734
+ label: i,
735
+ value: a,
736
+ format: c = (s) => `${Math.round(s)}%`,
737
+ showValue: v = !0,
738
+ srOnly: m = !1,
739
+ id: p
740
+ }) {
741
+ const s = a !== void 0 && v ? c(a) : null;
742
+ return m ? /* @__PURE__ */ u.jsxs("span", { id: p, className: ee.srOnly, children: [
743
+ i,
744
+ " ",
745
+ s
746
+ ] }) : /* @__PURE__ */ u.jsxs("div", { id: p, className: ee.label, children: [
747
+ i && /* @__PURE__ */ u.jsx("span", { className: ee.text, children: i }),
748
+ s && /* @__PURE__ */ u.jsx("span", { className: ee.value, children: s })
749
+ ] });
750
+ }
751
+ const rn = "_spinner_fdu71_1", nn = "_circle_fdu71_14", an = "_spin_fdu71_1", tn = "_brand_fdu71_37", sn = "_success_fdu71_41", on = "_warning_fdu71_45", cn = "_danger_fdu71_49", ln = "_neutral_fdu71_53", un = "_info_fdu71_57", me = {
752
+ spinner: rn,
753
+ circle: nn,
754
+ spin: an,
755
+ brand: tn,
756
+ success: sn,
757
+ warning: on,
758
+ danger: cn,
759
+ neutral: ln,
760
+ info: un
761
+ };
762
+ function Oa({
763
+ size: i = 24,
764
+ thickness: a = 3,
765
+ tone: c = "brand",
766
+ label: v = "Loading"
767
+ }) {
768
+ const m = {
769
+ "--spinner-size": `${i}px`,
770
+ "--spinner-thickness": `${a}px`
771
+ };
772
+ return /* @__PURE__ */ u.jsx(
773
+ "div",
774
+ {
775
+ className: `${me.spinner} ${me[c]}`,
776
+ style: m,
777
+ role: "status",
778
+ "aria-label": v,
779
+ "aria-busy": "true",
780
+ children: /* @__PURE__ */ u.jsx("div", { className: me.circle })
781
+ }
782
+ );
783
+ }
784
+ const _n = "_container_cz85r_1", fn = "_circular_cz85r_8", dn = "_track_cz85r_18", vn = "_progress_cz85r_23", gn = "_indeterminate_cz85r_32", pn = "_labelOverlay_cz85r_63", mn = "_brand_cz85r_70", bn = "_success_cz85r_74", hn = "_warning_cz85r_78", yn = "_danger_cz85r_82", $n = "_neutral_cz85r_86", wn = "_info_cz85r_90", I = {
785
+ container: _n,
786
+ circular: fn,
787
+ track: dn,
788
+ progress: vn,
789
+ indeterminate: gn,
790
+ "circular-rotate": "_circular-rotate_cz85r_1",
791
+ labelOverlay: pn,
792
+ brand: mn,
793
+ success: bn,
794
+ warning: hn,
795
+ danger: yn,
796
+ neutral: $n,
797
+ info: wn
798
+ };
799
+ function Ta({
800
+ value: i,
801
+ size: a = 56,
802
+ thickness: c = 6,
803
+ tone: v = "brand",
804
+ label: m,
805
+ showLabel: p = !1,
806
+ formatValue: s = (d) => `${Math.round(d)}%`
807
+ }) {
808
+ const d = i === void 0, f = (a - c) / 2, b = 2 * Math.PI * f, h = d ? 0 : Math.min(100, Math.max(0, i)), E = b - h / 100 * b, k = {
809
+ "--circular-size": `${a}px`,
810
+ "--circular-thickness": `${c}px`,
811
+ "--circular-circumference": `${b}px`,
812
+ "--circular-offset": `${E}px`
813
+ }, N = d ? { role: "status", "aria-busy": "true" } : {
814
+ role: "progressbar",
815
+ "aria-valuenow": h,
816
+ "aria-valuemin": 0,
817
+ "aria-valuemax": 100
818
+ };
819
+ return /* @__PURE__ */ u.jsxs("div", { className: I.container, children: [
820
+ /* @__PURE__ */ u.jsxs(
821
+ "svg",
822
+ {
823
+ className: `${I.circular} ${I[v]} ${d ? I.indeterminate : ""}`,
824
+ width: a,
825
+ height: a,
826
+ viewBox: `0 0 ${a} ${a}`,
827
+ style: k,
828
+ "aria-label": m,
829
+ ...N,
830
+ children: [
831
+ /* @__PURE__ */ u.jsx(
832
+ "circle",
833
+ {
834
+ className: I.track,
835
+ cx: a / 2,
836
+ cy: a / 2,
837
+ r: f,
838
+ strokeWidth: c,
839
+ fill: "none"
840
+ }
841
+ ),
842
+ /* @__PURE__ */ u.jsx(
843
+ "circle",
844
+ {
845
+ className: I.progress,
846
+ cx: a / 2,
847
+ cy: a / 2,
848
+ r: f,
849
+ strokeWidth: c,
850
+ fill: "none"
851
+ }
852
+ )
853
+ ]
854
+ }
855
+ ),
856
+ p && !d && /* @__PURE__ */ u.jsx("div", { className: I.labelOverlay, children: s(h) })
857
+ ] });
858
+ }
859
+ const xn = "_vertical_1kj4o_1", En = "_fill_1kj4o_16", Rn = "_indeterminate_1kj4o_27", jn = "_brand_1kj4o_58", kn = "_success_1kj4o_62", Pn = "_warning_1kj4o_66", On = "_danger_1kj4o_70", Tn = "_neutral_1kj4o_74", Sn = "_info_1kj4o_78", re = {
860
+ vertical: xn,
861
+ fill: En,
862
+ indeterminate: Rn,
863
+ "vertical-indeterminate": "_vertical-indeterminate_1kj4o_1",
864
+ brand: jn,
865
+ success: kn,
866
+ warning: Pn,
867
+ danger: On,
868
+ neutral: Tn,
869
+ info: Sn
870
+ };
871
+ function Sa({
872
+ value: i,
873
+ height: a = 200,
874
+ width: c = 8,
875
+ tone: v = "brand",
876
+ label: m
877
+ }) {
878
+ const p = i === void 0, s = p ? 0 : Math.min(100, Math.max(0, i)), d = {
879
+ "--vertical-height": typeof a == "number" ? `${a}px` : a,
880
+ "--vertical-width": `${c}px`,
881
+ "--vertical-progress": `${s}%`
882
+ }, f = p ? { role: "status", "aria-busy": "true" } : {
883
+ role: "progressbar",
884
+ "aria-valuenow": s,
885
+ "aria-valuemin": 0,
886
+ "aria-valuemax": 100
887
+ };
888
+ return /* @__PURE__ */ u.jsx(
889
+ "div",
890
+ {
891
+ className: `${re.vertical} ${re[v]} ${p ? re.indeterminate : ""}`,
892
+ style: d,
893
+ "aria-label": m,
894
+ ...f,
895
+ children: /* @__PURE__ */ u.jsx("div", { className: re.fill })
896
+ }
897
+ );
898
+ }
899
+ const Cn = "_segmented_31o4i_1", Nn = "_rounded_31o4i_13", Dn = "_segment_31o4i_1", Fn = "_brand_31o4i_38", An = "_success_31o4i_42", In = "_warning_31o4i_46", Mn = "_danger_31o4i_50", qn = "_neutral_31o4i_54", Wn = "_info_31o4i_58", ne = {
900
+ segmented: Cn,
901
+ rounded: Nn,
902
+ segment: Dn,
903
+ brand: Fn,
904
+ success: An,
905
+ warning: In,
906
+ danger: Mn,
907
+ neutral: qn,
908
+ info: Wn
909
+ };
910
+ function Ca({
911
+ segments: i,
912
+ max: a = 100,
913
+ height: c = 10,
914
+ gap: v = 2,
915
+ rounded: m = !0,
916
+ label: p
917
+ }) {
918
+ const s = i.reduce((b, h) => b + h.value, 0), d = i.map((b) => ({
919
+ ...b,
920
+ percentage: b.value / a * 100
921
+ })), f = {
922
+ "--segmented-height": `${c}px`,
923
+ "--segmented-gap": `${v}px`
924
+ };
925
+ return /* @__PURE__ */ u.jsx(
926
+ "div",
927
+ {
928
+ className: `${ne.segmented} ${m ? ne.rounded : ""}`,
929
+ style: f,
930
+ role: "progressbar",
931
+ "aria-label": p,
932
+ "aria-valuenow": s,
933
+ "aria-valuemin": 0,
934
+ "aria-valuemax": a,
935
+ children: d.map((b, h) => /* @__PURE__ */ u.jsx(
936
+ "div",
937
+ {
938
+ className: `${ne.segment} ${ne[b.tone || "brand"]}`,
939
+ style: { width: `${b.percentage}%` },
940
+ title: b.label
941
+ },
942
+ h
943
+ ))
944
+ }
945
+ );
946
+ }
947
+ const zn = "_stepProgress_huai5_1", Yn = "_step_huai5_1", Ln = "_indicator_huai5_16", Vn = "_dots_huai5_21", Un = "_dot_huai5_21", Bn = "_bars_huai5_30", Jn = "_bar_huai5_30", Kn = "_completed_huai5_38", Gn = "_current_huai5_47", Xn = "_label_huai5_59", Hn = "_connector_huai5_76", Zn = "_brand_huai5_94", Qn = "_success_huai5_98", ea = "_warning_huai5_102", ra = "_danger_huai5_106", na = "_neutral_huai5_110", aa = "_info_huai5_114", T = {
948
+ stepProgress: zn,
949
+ step: Yn,
950
+ indicator: Ln,
951
+ dots: Vn,
952
+ dot: Un,
953
+ bars: Bn,
954
+ bar: Jn,
955
+ completed: Kn,
956
+ current: Gn,
957
+ label: Xn,
958
+ connector: Hn,
959
+ brand: Zn,
960
+ success: Qn,
961
+ warning: ea,
962
+ danger: ra,
963
+ neutral: na,
964
+ info: aa
965
+ };
966
+ function Na({
967
+ steps: i,
968
+ currentStep: a,
969
+ variant: c = "dots",
970
+ label: v
971
+ }) {
972
+ var m;
973
+ return /* @__PURE__ */ u.jsx(
974
+ "div",
975
+ {
976
+ className: `${T.stepProgress} ${T[c]}`,
977
+ role: "progressbar",
978
+ "aria-label": v,
979
+ "aria-valuenow": a + 1,
980
+ "aria-valuemin": 1,
981
+ "aria-valuemax": i.length,
982
+ "aria-valuetext": `Step ${a + 1} of ${i.length}: ${((m = i[a]) == null ? void 0 : m.label) || ""}`,
983
+ children: i.map((p, s) => {
984
+ const d = s < a ? "completed" : s === a ? "current" : "upcoming", f = p.tone || "brand";
985
+ return /* @__PURE__ */ u.jsxs("div", { className: `${T.step} ${T[d]}`, children: [
986
+ /* @__PURE__ */ u.jsxs("div", { className: `${T.indicator} ${T[f]}`, children: [
987
+ c === "dots" && /* @__PURE__ */ u.jsx("div", { className: T.dot }),
988
+ c === "bars" && /* @__PURE__ */ u.jsx("div", { className: T.bar })
989
+ ] }),
990
+ /* @__PURE__ */ u.jsx("div", { className: T.label, children: p.label }),
991
+ s < i.length - 1 && /* @__PURE__ */ u.jsx("div", { className: T.connector })
992
+ ] }, s);
993
+ })
994
+ }
995
+ );
996
+ }
997
+ const ta = "_legend_14gfu_1", sa = "_row_14gfu_6", ia = "_column_14gfu_11", oa = "_item_14gfu_15", ca = "_swatch_14gfu_21", la = "_label_14gfu_28", ua = "_value_14gfu_33", _a = "_brand_14gfu_40", fa = "_success_14gfu_44", da = "_warning_14gfu_48", va = "_danger_14gfu_52", ga = "_neutral_14gfu_56", pa = "_info_14gfu_60", M = {
998
+ legend: ta,
999
+ row: sa,
1000
+ column: ia,
1001
+ item: oa,
1002
+ swatch: ca,
1003
+ label: la,
1004
+ value: ua,
1005
+ brand: _a,
1006
+ success: fa,
1007
+ warning: da,
1008
+ danger: va,
1009
+ neutral: ga,
1010
+ info: pa
1011
+ };
1012
+ function Da({ items: i, layout: a = "row" }) {
1013
+ return /* @__PURE__ */ u.jsx("div", { className: `${M.legend} ${M[a]}`, children: i.map((c, v) => /* @__PURE__ */ u.jsxs("div", { className: M.item, children: [
1014
+ /* @__PURE__ */ u.jsx("div", { className: `${M.swatch} ${M[c.tone || "brand"]}` }),
1015
+ /* @__PURE__ */ u.jsx("span", { className: M.label, children: c.label }),
1016
+ c.value !== void 0 && /* @__PURE__ */ u.jsxs("span", { className: M.value, children: [
1017
+ c.value,
1018
+ "%"
1019
+ ] })
1020
+ ] }, v)) });
1021
+ }
1022
+ const ma = "_stack_wk9ii_1", ba = "_item_wk9ii_12", ha = "_brand_wk9ii_33", ya = "_success_wk9ii_37", $a = "_warning_wk9ii_41", wa = "_danger_wk9ii_45", xa = "_neutral_wk9ii_49", Ea = "_info_wk9ii_53", be = {
1023
+ stack: ma,
1024
+ item: ba,
1025
+ brand: ha,
1026
+ success: ya,
1027
+ warning: $a,
1028
+ danger: wa,
1029
+ neutral: xa,
1030
+ info: Ea
1031
+ };
1032
+ function Fa({ items: i, height: a = 12, label: c }) {
1033
+ const v = i.reduce((s, d) => s + d.value, 0), m = i.map((s) => ({
1034
+ ...s,
1035
+ percentage: s.value / 100 * 100
1036
+ })), p = {
1037
+ "--stack-height": `${a}px`
1038
+ };
1039
+ return /* @__PURE__ */ u.jsx(
1040
+ "div",
1041
+ {
1042
+ className: be.stack,
1043
+ style: p,
1044
+ role: "progressbar",
1045
+ "aria-label": c,
1046
+ "aria-valuenow": v,
1047
+ "aria-valuemin": 0,
1048
+ "aria-valuemax": 100,
1049
+ children: m.map((s, d) => /* @__PURE__ */ u.jsx(
1050
+ "div",
1051
+ {
1052
+ className: `${be.item} ${be[s.tone || "brand"]}`,
1053
+ style: { width: `${s.percentage}%` },
1054
+ title: s.label
1055
+ },
1056
+ d
1057
+ ))
1058
+ }
1059
+ );
1060
+ }
1061
+ export {
1062
+ Ta as CircularProgress,
1063
+ ja as LinearProgress,
1064
+ Pa as ProgressLabel,
1065
+ Da as ProgressLegend,
1066
+ Fa as ProgressStack,
1067
+ ka as ProgressTrack,
1068
+ Ca as SegmentedProgress,
1069
+ Oa as Spinner,
1070
+ Na as StepProgress,
1071
+ Sa as VerticalProgress
1072
+ };