@uoguelph/react-components 1.6.2 → 1.6.3-rc.1

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.
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
+ import { jsxs as c, jsx as o } from "react/jsx-runtime";
3
3
  import { f as u, a as l } from "./regular-BKd_6_zc.js";
4
4
  import { FontAwesomeIcon as a } from "@fortawesome/react-fontawesome";
5
5
  import { DisclosureButton as b } from "@headlessui/react";
@@ -8,7 +8,7 @@ import { twMerge as m } from "tailwind-merge";
8
8
  import { tv as p } from "tailwind-variants";
9
9
  import { AccordionContext as g } from "./accordion-context.js";
10
10
  function x({ children: n, className: e }) {
11
- const o = f(g), i = p({
11
+ const t = f(g), i = p({
12
12
  slots: {
13
13
  button: "group mb-1 inline-flex w-full cursor-pointer items-center justify-between gap-2 p-2.5 px-5 text-left text-xl transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-blue focus-visible:ring-offset-2 hocus-visible:bg-blue hocus-visible:text-blue-contrast",
14
14
  icon: "h-[1em] text-blue-on-light transition group-hocus-visible:text-blue-contrast"
@@ -25,13 +25,13 @@ function x({ children: n, className: e }) {
25
25
  }
26
26
  }
27
27
  }
28
- }), { button: s, icon: r } = i({ open: o == null ? void 0 : o.isOpen });
28
+ }), { button: s, icon: r } = i({ open: t?.isOpen });
29
29
  return /* @__PURE__ */ c(b, { className: `uofg-accordion-button ${m(e, s())}`, children: [
30
- /* @__PURE__ */ t("span", { className: "uofg-accordion-button-content", children: n }),
31
- /* @__PURE__ */ t(
30
+ /* @__PURE__ */ o("span", { className: "uofg-accordion-button-content", children: n }),
31
+ /* @__PURE__ */ o(
32
32
  a,
33
33
  {
34
- icon: o != null && o.isOpen ? u : l,
34
+ icon: t?.isOpen ? u : l,
35
35
  className: `uofg-accordion-button-icon ${r()}`
36
36
  }
37
37
  )
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- import { jsx as t } from "react/jsx-runtime";
2
+ import { jsx as o } from "react/jsx-runtime";
3
3
  import { DisclosurePanel as i } from "@headlessui/react";
4
4
  import { useContext as c } from "react";
5
5
  import m from "react-animate-height";
6
6
  import { twMerge as s } from "tailwind-merge";
7
7
  import { AccordionContext as a } from "./accordion-context.js";
8
- function p({ children: r, className: e }) {
9
- const o = c(a), n = s("border-l-4 border-yellow py-3 pl-5", e);
10
- return /* @__PURE__ */ t(m, { height: o != null && o.isOpen ? "auto" : 0, duration: 200, easing: "ease-in-out", children: /* @__PURE__ */ t(i, { static: !0, className: `uofg-accordion-content ${n}`, children: r }) });
8
+ function p({ children: t, className: e }) {
9
+ const n = c(a), r = s("border-l-4 border-yellow py-3 pl-5", e);
10
+ return /* @__PURE__ */ o(m, { height: n?.isOpen ? "auto" : 0, duration: 200, easing: "ease-in-out", children: /* @__PURE__ */ o(i, { static: !0, className: `uofg-accordion-content ${r}`, children: t }) });
11
11
  }
12
12
  p.displayName = "AccordionContent";
13
13
  export {
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsx as l } from "react/jsx-runtime";
3
- import { useContext as s } from "react";
4
- import { twMerge as c } from "tailwind-merge";
3
+ import { useContext as c } from "react";
4
+ import { twMerge as s } from "tailwind-merge";
5
5
  import { tv as m } from "tailwind-variants";
6
6
  import { BlockquoteContext as u } from "./blockquote-context.js";
7
- function b({ className: r, children: t }) {
8
- const o = s(u), e = m({
7
+ function b({ className: o, children: t }) {
8
+ const e = c(u), r = m({
9
9
  base: "uofg-blockquote-author flex flex-col items-start gap-1 border-l-4 pl-4 font-light",
10
10
  variants: {
11
11
  color: {
@@ -14,7 +14,7 @@ function b({ className: r, children: t }) {
14
14
  }
15
15
  }
16
16
  });
17
- return /* @__PURE__ */ l("div", { className: c(e({ color: (o == null ? void 0 : o.color) ?? "yellow" }), r), children: t });
17
+ return /* @__PURE__ */ l("div", { className: s(r({ color: e?.color ?? "yellow" }), o), children: t });
18
18
  }
19
19
  export {
20
20
  b as BlockquoteAuthor
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- import { jsxs as t, jsx as e, Fragment as n } from "react/jsx-runtime";
2
+ import { jsxs as t, jsx as e, Fragment as c } from "react/jsx-runtime";
3
3
  import { b as u, c as m } from "./solid-CwgZbR1c.js";
4
- import { FontAwesomeIcon as c } from "@fortawesome/react-fontawesome";
4
+ import { FontAwesomeIcon as l } from "@fortawesome/react-fontawesome";
5
5
  import { useContext as f } from "react";
6
6
  import { twMerge as b } from "tailwind-merge";
7
7
  import { tv as k } from "tailwind-variants";
8
- import { BlockquoteContext as p } from "./blockquote-context.js";
9
- function q({ className: s, children: i }) {
10
- const o = f(p), r = k({
8
+ import { BlockquoteContext as x } from "./blockquote-context.js";
9
+ function p({ className: s, children: i }) {
10
+ const o = f(x), r = k({
11
11
  slots: {
12
12
  base: "block w-full text-center text-3xl font-light italic",
13
13
  icons: "inline-block h-[1em]"
@@ -22,21 +22,21 @@ function q({ className: s, children: i }) {
22
22
  }
23
23
  }
24
24
  }
25
- }), { base: a, icons: l } = r({ color: (o == null ? void 0 : o.color) ?? "yellow" });
25
+ }), { base: a, icons: n } = r({ color: o?.color ?? "yellow" });
26
26
  return /* @__PURE__ */ t("blockquote", { className: `uofg-blockquote-content ${b(a(), s)}`, children: [
27
- !(o != null && o.hideQuotationMarks) && /* @__PURE__ */ t(n, { children: [
28
- /* @__PURE__ */ e(c, { icon: u, className: `uofg-blockquote-content-left-quote ${l()}` }),
27
+ !o?.hideQuotationMarks && /* @__PURE__ */ t(c, { children: [
28
+ /* @__PURE__ */ e(l, { icon: u, className: `uofg-blockquote-content-left-quote ${n()}` }),
29
29
  " "
30
30
  ] }),
31
31
  /* @__PURE__ */ e("span", { className: "uofg-blockquote-content-text", children: i }),
32
32
  " ",
33
- !(o != null && o.hideQuotationMarks) && /* @__PURE__ */ t(n, { children: [
33
+ !o?.hideQuotationMarks && /* @__PURE__ */ t(c, { children: [
34
34
  " ",
35
- /* @__PURE__ */ e(c, { icon: m, className: `uofg-blockquote-content-right-quote ${l()}` })
35
+ /* @__PURE__ */ e(l, { icon: m, className: `uofg-blockquote-content-right-quote ${n()}` })
36
36
  ] })
37
37
  ] });
38
38
  }
39
- q.displayName = "BlockquoteContent";
39
+ p.displayName = "BlockquoteContent";
40
40
  export {
41
- q as BlockquoteContent
41
+ p as BlockquoteContent
42
42
  };
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import { jsx as i } from "react/jsx-runtime";
3
- import { useContext as n } from "react";
2
+ import { jsx as n } from "react/jsx-runtime";
3
+ import { useContext as i } from "react";
4
4
  import { twMerge as s } from "tailwind-merge";
5
5
  import { tv as a } from "tailwind-variants";
6
6
  import { CardContext as l } from "./card-context.js";
7
- function c({ children: o, className: r }) {
8
- const t = n(l), e = a({
7
+ function c({ children: t, className: o }) {
8
+ const e = i(l), r = a({
9
9
  base: "flex flex-1 flex-col gap-2 bg-grey-light-bg p-5 text-grey-light-contrast",
10
10
  variants: {
11
11
  isLink: {
@@ -13,7 +13,7 @@ function c({ children: o, className: r }) {
13
13
  }
14
14
  }
15
15
  });
16
- return /* @__PURE__ */ i("div", { className: `uofg-card-content ${s(e({ isLink: (t == null ? void 0 : t.isLink) ?? !1 }), r)}`, children: o });
16
+ return /* @__PURE__ */ n("div", { className: `uofg-card-content ${s(r({ isLink: e?.isLink ?? !1 }), o)}`, children: t });
17
17
  }
18
18
  c.displayName = "CardContent";
19
19
  export {
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import { jsx as a } from "react/jsx-runtime";
3
- import { useContext as i } from "react";
4
- import { twMerge as n } from "tailwind-merge";
2
+ import { jsx as n } from "react/jsx-runtime";
3
+ import { useContext as a } from "react";
4
+ import { twMerge as i } from "tailwind-merge";
5
5
  import { tv as s } from "tailwind-variants";
6
6
  import { CardContext as c } from "./card-context.js";
7
7
  function m({ children: t, className: e }) {
8
- const r = i(c), o = s({
8
+ const r = a(c), o = s({
9
9
  base: "flex gap-2 bg-grey-light px-5 py-2 text-grey-light-contrast transition-colors",
10
10
  variants: {
11
11
  centered: {
@@ -13,7 +13,7 @@ function m({ children: t, className: e }) {
13
13
  }
14
14
  }
15
15
  });
16
- return /* @__PURE__ */ a("div", { className: `uofg-card-footer ${n(o({ centered: (r == null ? void 0 : r.centered) ?? !1 }), e)}`, children: t });
16
+ return /* @__PURE__ */ n("div", { className: `uofg-card-footer ${i(o({ centered: r?.centered ?? !1 }), e)}`, children: t });
17
17
  }
18
18
  m.displayName = "CardFooter";
19
19
  export {
@@ -1,20 +1,20 @@
1
1
  "use client";
2
- import { jsx as a } from "react/jsx-runtime";
2
+ import { jsx as e } from "react/jsx-runtime";
3
3
  import { useContext as u } from "react";
4
4
  import { twMerge as w } from "tailwind-merge";
5
5
  import { tv as v } from "tailwind-variants";
6
6
  import { CardContext as C } from "./card-context.js";
7
7
  const h = "img";
8
- function k({
9
- as: e,
10
- src: i,
11
- alt: o,
12
- width: n,
13
- height: t,
8
+ function x({
9
+ as: a,
10
+ src: o,
11
+ alt: t,
12
+ width: i,
13
+ height: n,
14
14
  className: m,
15
15
  ...s
16
16
  }) {
17
- const l = e ?? h, r = u(C), d = v({
17
+ const c = a ?? h, r = u(C), l = v({
18
18
  slots: {
19
19
  container: "w-full overflow-hidden",
20
20
  wrapper: "w-full overflow-hidden",
@@ -27,20 +27,20 @@ function k({
27
27
  }
28
28
  }
29
29
  }
30
- }), { container: c, wrapper: f, image: p } = d({ isLink: (r == null ? void 0 : r.isLink) ?? !1 }), g = r != null && r.isLink ? "" : o;
31
- return /* @__PURE__ */ a("div", { className: `uofg-card-image-container ${c()}`, children: /* @__PURE__ */ a("div", { className: `uofg-card-image-wrapper ${f()}`, children: /* @__PURE__ */ a(
32
- l,
30
+ }), { container: d, wrapper: f, image: p } = l({ isLink: r?.isLink ?? !1 }), g = r?.isLink ? "" : t;
31
+ return /* @__PURE__ */ e("div", { className: `uofg-card-image-container ${d()}`, children: /* @__PURE__ */ e("div", { className: `uofg-card-image-wrapper ${f()}`, children: /* @__PURE__ */ e(
32
+ c,
33
33
  {
34
34
  ...s,
35
- src: i,
35
+ src: o,
36
36
  alt: g,
37
- width: n,
38
- height: t,
37
+ width: i,
38
+ height: n,
39
39
  className: `uofg-card-image ${w(p(), m)}`
40
40
  }
41
41
  ) }) });
42
42
  }
43
- k.displayName = "CardImage";
43
+ x.displayName = "CardImage";
44
44
  export {
45
- k as CardImage
45
+ x as CardImage
46
46
  };
@@ -2,10 +2,10 @@
2
2
  import { jsx as i } from "react/jsx-runtime";
3
3
  import { useContext as n } from "react";
4
4
  import { twMerge as a } from "tailwind-merge";
5
- import { tv as m } from "tailwind-variants";
6
- import { CardContext as s } from "./card-context.js";
7
- function c({ children: t, className: r }) {
8
- const e = n(s), o = m({
5
+ import { tv as c } from "tailwind-variants";
6
+ import { CardContext as m } from "./card-context.js";
7
+ function s({ children: t, className: e }) {
8
+ const r = n(m), o = c({
9
9
  base: "flex text-lg font-bold",
10
10
  variants: {
11
11
  centered: {
@@ -13,9 +13,9 @@ function c({ children: t, className: r }) {
13
13
  }
14
14
  }
15
15
  });
16
- return /* @__PURE__ */ i("div", { className: `uofg-card-title ${a(o({ centered: (e == null ? void 0 : e.centered) ?? !1 }), r)}`, children: t });
16
+ return /* @__PURE__ */ i("div", { className: `uofg-card-title ${a(o({ centered: r?.centered ?? !1 }), e)}`, children: t });
17
17
  }
18
- c.displayName = "CardTitle";
18
+ s.displayName = "CardTitle";
19
19
  export {
20
- c as CardTitle
20
+ s as CardTitle
21
21
  };
package/dist/carousel.js CHANGED
@@ -6,43 +6,42 @@ import { Children as A, useRef as b, useState as F, useEffect as L } from "react
6
6
  import { tv as S } from "tailwind-variants";
7
7
  import { l as q, b as M, m as C, c as R } from "./math-utils-CnAd98v6.js";
8
8
  const z = (l, a, f) => {
9
- const t = l.scrollLeft, r = performance.now();
10
- return new Promise((n) => {
11
- const o = (h) => {
12
- const e = h - r, d = M(Math.min(e / f, 1), 0.25, 0, 0.25, 1);
13
- l.scrollLeft = q(t, a, d), e < f ? requestAnimationFrame(o) : n();
9
+ const t = l.scrollLeft, o = performance.now();
10
+ return new Promise((s) => {
11
+ const n = (h) => {
12
+ const e = h - o, d = M(Math.min(e / f, 1), 0.25, 0, 0.25, 1);
13
+ l.scrollLeft = q(t, a, d), e < f ? requestAnimationFrame(n) : s();
14
14
  };
15
- requestAnimationFrame(o);
15
+ requestAnimationFrame(n);
16
16
  });
17
17
  };
18
18
  function H({ id: l, children: a, display: f = 1, loop: t = "none" }) {
19
- const r = A.count(a), n = Math.max(f, 1), o = b(null), h = b(0), [e, d] = F(0), u = r - n, x = b(!1);
19
+ const o = A.count(a), s = Math.max(f, 1), n = b(null), h = b(0), [e, d] = F(0), u = o - s, x = b(!1);
20
20
  L(() => {
21
- var s;
22
- if (!o.current)
21
+ if (!n.current)
23
22
  return;
24
- const i = ((s = o.current) == null ? void 0 : s.offsetWidth) / n;
25
- (t === "jump" || t === "none") && (x.current = !0, z(o.current, i * e, 250).then(() => {
23
+ const r = n.current?.offsetWidth / s;
24
+ (t === "jump" || t === "none") && (x.current = !0, z(n.current, r * e, 250).then(() => {
26
25
  x.current = !1;
27
26
  })), h.current = e;
28
- }, [e, t, u, n]);
29
- const v = (i) => {
27
+ }, [e, t, u, s]);
28
+ const v = (r) => {
30
29
  if (x.current) return;
31
- let s;
30
+ let i;
32
31
  switch (t) {
33
32
  case "none":
34
- s = R(e + i, 0, u);
33
+ i = R(e + r, 0, u);
35
34
  break;
36
35
  case "jump":
37
- s = C(e + i, u + 1);
36
+ i = C(e + r, u + 1);
38
37
  break;
39
38
  case "continuous":
40
- s = C(e + i, r);
39
+ i = C(e + r, o);
41
40
  break;
42
41
  default:
43
- s = 0;
42
+ i = 0;
44
43
  }
45
- d(s);
44
+ d(i);
46
45
  }, y = S({
47
46
  slots: {
48
47
  base: "relative flex h-fit min-h-[7rem] w-full flex-col-reverse",
@@ -68,7 +67,7 @@ function H({ id: l, children: a, display: f = 1, loop: t = "none" }) {
68
67
  }
69
68
  }
70
69
  }
71
- }), p = r > n, { base: N, contentContainer: j, controlContainer: k, control: g } = y({ showControls: p });
70
+ }), p = o > s, { base: N, contentContainer: j, controlContainer: k, control: g } = y({ showControls: p });
72
71
  return /* @__PURE__ */ m("div", { id: l, className: `uofg-carousel ${N()}`, children: [
73
72
  p && /* @__PURE__ */ m("div", { className: `uofg-carousel-control-container ${k()}`, children: [
74
73
  /* @__PURE__ */ m(
@@ -98,11 +97,11 @@ function H({ id: l, children: a, display: f = 1, loop: t = "none" }) {
98
97
  "div",
99
98
  {
100
99
  className: `uofg-carousel-content-container ${j()}`,
101
- ref: o,
100
+ ref: n,
102
101
  style: {
103
102
  // Define CSS variables for the grid layout
104
- "--items": r,
105
- "--display": n
103
+ "--items": o,
104
+ "--display": s
106
105
  },
107
106
  children: a
108
107
  }
package/dist/checkbox.js CHANGED
@@ -1,20 +1,20 @@
1
1
  "use client";
2
- import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
+ import { jsxs as s, jsx as e } from "react/jsx-runtime";
3
3
  import { b as p } from "./regular-BKd_6_zc.js";
4
4
  import { FontAwesomeIcon as y } from "@fortawesome/react-fontawesome";
5
- import { Field as w, Checkbox as v, Label as N, Description as $ } from "@headlessui/react";
6
- import { useState as C } from "react";
5
+ import { Field as w, Checkbox as v, Label as C, Description as N } from "@headlessui/react";
6
+ import { useState as $ } from "react";
7
7
  import { tv as j } from "tailwind-variants";
8
8
  function F({
9
- checked: r = !1,
10
- label: o,
11
- description: i,
12
- color: a = "yellow",
13
- disabled: t = !1,
14
- onChange: c,
15
- ...b
9
+ checked: l = !1,
10
+ label: c,
11
+ description: o,
12
+ color: r = "yellow",
13
+ disabled: i = !1,
14
+ onChange: n,
15
+ ...a
16
16
  }) {
17
- const [n, u] = C(r), h = j({
17
+ const [b, h] = $(l), u = j({
18
18
  slots: {
19
19
  base: "flex cursor-pointer flex-col gap-0.5",
20
20
  container: "flex items-center gap-2",
@@ -58,28 +58,28 @@ function F({
58
58
  base: x,
59
59
  container: f,
60
60
  box: k,
61
- check: d,
62
- label: g,
61
+ check: g,
62
+ label: d,
63
63
  description: m
64
- } = h({ color: a, disabled: t });
65
- return /* @__PURE__ */ l(w, { className: `uofg-checkbox-field ${x()}`, children: [
66
- /* @__PURE__ */ l("div", { className: `uofg-checkbox-container ${f()}`, children: [
64
+ } = u({ color: r, disabled: i });
65
+ return /* @__PURE__ */ s(w, { className: `uofg-checkbox-field ${x()}`, children: [
66
+ /* @__PURE__ */ s("div", { className: `uofg-checkbox-container ${f()}`, children: [
67
67
  /* @__PURE__ */ e(
68
68
  v,
69
69
  {
70
- checked: n,
71
- onChange: (s) => {
72
- u(s), c == null || c(s);
70
+ checked: b,
71
+ onChange: (t) => {
72
+ h(t), n?.(t);
73
73
  },
74
- disabled: t,
74
+ disabled: i,
75
75
  className: `uofg-checkbox ${k()}`,
76
- ...b,
77
- children: /* @__PURE__ */ e(y, { className: `uofg-checkbox-icon ${d()}`, icon: p })
76
+ ...a,
77
+ children: /* @__PURE__ */ e(y, { className: `uofg-checkbox-icon ${g()}`, icon: p })
78
78
  }
79
79
  ),
80
- o && /* @__PURE__ */ e(N, { className: `uofg-checkbox-label ${g()}`, children: o })
80
+ c && /* @__PURE__ */ e(C, { className: `uofg-checkbox-label ${d()}`, children: c })
81
81
  ] }),
82
- i && /* @__PURE__ */ e($, { className: `uofg-checkbox-description ${m()}`, children: i })
82
+ o && /* @__PURE__ */ e(N, { className: `uofg-checkbox-description ${m()}`, children: o })
83
83
  ] });
84
84
  }
85
85
  F.displayName = "Checkbox";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as Z, jsxs as tr, Fragment as dr } from "react/jsx-runtime";
3
3
  import { useState as hr, useMemo as pr } from "react";
4
- import { u as gr } from "./use-dismissible-CWEoUQGp.js";
4
+ import { u as gr } from "./use-dismissible-fJ_gWdkv.js";
5
5
  import { Alert as yr } from "./alert.js";
6
6
  import { Button as mr } from "./button.js";
7
7
  import { Container as wr } from "./container.js";
@@ -18,11 +18,11 @@ function nr(O) {
18
18
  }
19
19
  var ir = { exports: {} }, cr;
20
20
  function Br() {
21
- return cr || (cr = 1, function(O, sr) {
21
+ return cr || (cr = 1, (function(O, sr) {
22
22
  (function(_) {
23
23
  O.exports = _();
24
24
  })(function() {
25
- return function _(C, U, S) {
25
+ return (function _(C, U, S) {
26
26
  function R(N, q) {
27
27
  if (!U[N]) {
28
28
  if (!C[N]) {
@@ -40,7 +40,7 @@ function Br() {
40
40
  }
41
41
  for (var z = typeof nr == "function" && nr, V = 0; V < S.length; V++) R(S[V]);
42
42
  return R;
43
- }({ 1: [function(_, C, U) {
43
+ })({ 1: [function(_, C, U) {
44
44
  (function(S, R, z, V, N, q, J, K, X) {
45
45
  var y = _("crypto");
46
46
  function E(s, f) {
@@ -263,16 +263,16 @@ Use "options.replacer" or "options.ignoreUnknown"
263
263
  return c;
264
264
  }
265
265
  function p(r, e, i, d) {
266
- return l._charsWritten = rr(function(c) {
266
+ return l._charsWritten = rr((function(c) {
267
267
  for (var w = [], L = 0; L < c.length; L++) w.push(255 & c.charCodeAt(L));
268
268
  return w;
269
- }(e), r, i, d);
269
+ })(e), r, i, d);
270
270
  }
271
271
  function b(r, e, i, d) {
272
- return l._charsWritten = rr(function(c) {
272
+ return l._charsWritten = rr((function(c) {
273
273
  for (var w, L, T = [], Y = 0; Y < c.length; Y++) L = c.charCodeAt(Y), w = L >> 8, L = L % 256, T.push(L), T.push(w);
274
274
  return T;
275
- }(e), r, i, d);
275
+ })(e), r, i, d);
276
276
  }
277
277
  function g(r, e, i) {
278
278
  var d = "";
@@ -320,7 +320,7 @@ Use "options.replacer" or "options.ignoreUnknown"
320
320
  function x(r, e, i, d, c) {
321
321
  c || (m(e != null, "missing value"), m(typeof d == "boolean", "missing or invalid endian"), m(i != null, "missing offset"), m(i + 7 < r.length, "Trying to write beyond buffer length"), fr(e, 17976931348623157e292, -17976931348623157e292)), r.length <= i || E.write(r, e, i, d, 52, 8);
322
322
  }
323
- U.Buffer = l, U.SlowBuffer = l, U.INSPECT_MAX_BYTES = 50, l.poolSize = 8192, l._useTypedArrays = function() {
323
+ U.Buffer = l, U.SlowBuffer = l, U.INSPECT_MAX_BYTES = 50, l.poolSize = 8192, l._useTypedArrays = (function() {
324
324
  try {
325
325
  var r = new ArrayBuffer(0), e = new Uint8Array(r);
326
326
  return e.foo = function() {
@@ -329,7 +329,7 @@ Use "options.replacer" or "options.ignoreUnknown"
329
329
  } catch {
330
330
  return !1;
331
331
  }
332
- }(), l.isEncoding = function(r) {
332
+ })(), l.isEncoding = function(r) {
333
333
  switch (String(r).toLowerCase()) {
334
334
  case "hex":
335
335
  case "utf8":
@@ -356,7 +356,7 @@ Use "options.replacer" or "options.ignoreUnknown"
356
356
  break;
357
357
  case "utf8":
358
358
  case "utf-8":
359
- i = $(r).length;
359
+ i = G(r).length;
360
360
  break;
361
361
  case "ascii":
362
362
  case "binary":
@@ -391,20 +391,20 @@ list should be an Array.`), r.length === 0) return new l(0);
391
391
  var c, w, L, T, Y = this.length - e;
392
392
  switch ((!i || Y < (i = Number(i))) && (i = Y), d = String(d || "utf8").toLowerCase()) {
393
393
  case "hex":
394
- c = function(G, H, W, D) {
394
+ c = (function($, H, W, D) {
395
395
  W = Number(W) || 0;
396
- var F = G.length - W;
396
+ var F = $.length - W;
397
397
  (!D || F < (D = Number(D))) && (D = F), m((F = H.length) % 2 == 0, "Invalid hex string"), F / 2 < D && (D = F / 2);
398
398
  for (var Q = 0; Q < D; Q++) {
399
399
  var lr = parseInt(H.substr(2 * Q, 2), 16);
400
- m(!isNaN(lr), "Invalid hex string"), G[W + Q] = lr;
400
+ m(!isNaN(lr), "Invalid hex string"), $[W + Q] = lr;
401
401
  }
402
402
  return l._charsWritten = 2 * Q, Q;
403
- }(this, r, e, i);
403
+ })(this, r, e, i);
404
404
  break;
405
405
  case "utf8":
406
406
  case "utf-8":
407
- w = this, L = e, T = i, c = l._charsWritten = rr($(r), w, L, T);
407
+ w = this, L = e, T = i, c = l._charsWritten = rr(G(r), w, L, T);
408
408
  break;
409
409
  case "ascii":
410
410
  case "binary":
@@ -428,21 +428,21 @@ list should be an Array.`), r.length === 0) return new l(0);
428
428
  if (r = String(r || "utf8").toLowerCase(), e = Number(e) || 0, (i = i !== void 0 ? Number(i) : T.length) === e) return "";
429
429
  switch (r) {
430
430
  case "hex":
431
- d = function(Y, G, H) {
431
+ d = (function(Y, $, H) {
432
432
  var W = Y.length;
433
- (!G || G < 0) && (G = 0), (!H || H < 0 || W < H) && (H = W);
434
- for (var D = "", F = G; F < H; F++) D += j(Y[F]);
433
+ (!$ || $ < 0) && ($ = 0), (!H || H < 0 || W < H) && (H = W);
434
+ for (var D = "", F = $; F < H; F++) D += j(Y[F]);
435
435
  return D;
436
- }(T, e, i);
436
+ })(T, e, i);
437
437
  break;
438
438
  case "utf8":
439
439
  case "utf-8":
440
- d = function(Y, G, H) {
440
+ d = (function(Y, $, H) {
441
441
  var W = "", D = "";
442
442
  H = Math.min(Y.length, H);
443
- for (var F = G; F < H; F++) Y[F] <= 127 ? (W += ar(D) + String.fromCharCode(Y[F]), D = "") : D += "%" + Y[F].toString(16);
443
+ for (var F = $; F < H; F++) Y[F] <= 127 ? (W += ar(D) + String.fromCharCode(Y[F]), D = "") : D += "%" + Y[F].toString(16);
444
444
  return W + ar(D);
445
- }(T, e, i);
445
+ })(T, e, i);
446
446
  break;
447
447
  case "ascii":
448
448
  case "binary":
@@ -455,10 +455,10 @@ list should be an Array.`), r.length === 0) return new l(0);
455
455
  case "ucs-2":
456
456
  case "utf16le":
457
457
  case "utf-16le":
458
- d = function(Y, G, H) {
459
- for (var W = Y.slice(G, H), D = "", F = 0; F < W.length; F += 2) D += String.fromCharCode(W[F] + 256 * W[F + 1]);
458
+ d = (function(Y, $, H) {
459
+ for (var W = Y.slice($, H), D = "", F = 0; F < W.length; F += 2) D += String.fromCharCode(W[F] + 256 * W[F + 1]);
460
460
  return D;
461
- }(T, e, i);
461
+ })(T, e, i);
462
462
  break;
463
463
  default:
464
464
  throw new Error("Unknown encoding");
@@ -570,7 +570,7 @@ list should be an Array.`), r.length === 0) return new l(0);
570
570
  function j(r) {
571
571
  return r < 16 ? "0" + r.toString(16) : r.toString(16);
572
572
  }
573
- function $(r) {
573
+ function G(r) {
574
574
  for (var e = [], i = 0; i < r.length; i++) {
575
575
  var d = r.charCodeAt(i);
576
576
  if (d <= 127) e.push(r.charCodeAt(i));
@@ -612,11 +612,11 @@ list should be an Array.`), r.length === 0) return new l(0);
612
612
  (function(S, R, y, V, N, q, J, K, X) {
613
613
  var y = _("buffer").Buffer, E = 4, l = new y(E);
614
614
  l.fill(0), C.exports = { hash: function(p, b, g, h) {
615
- for (var I = b(function(t, u) {
615
+ for (var I = b((function(t, u) {
616
616
  t.length % E != 0 && (a = t.length + (E - t.length % E), t = y.concat([t, l], a));
617
617
  for (var a, B = [], A = u ? t.readInt32BE : t.readInt32LE, x = 0; x < t.length; x += E) B.push(A.call(t, x));
618
618
  return B;
619
- }(p = y.isBuffer(p) ? p : new y(p), h), 8 * p.length), b = h, s = new y(g), f = b ? s.writeInt32BE : s.writeInt32LE, n = 0; n < I.length; n++) f.call(s, I[n], 4 * n, !0);
619
+ })(p = y.isBuffer(p) ? p : new y(p), h), 8 * p.length), b = h, s = new y(g), f = b ? s.writeInt32BE : s.writeInt32LE, n = 0; n < I.length; n++) f.call(s, I[n], 4 * n, !0);
620
620
  return s;
621
621
  } };
622
622
  }).call(this, _("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, _("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
@@ -628,11 +628,11 @@ list should be an Array.`), r.length === 0) return new l(0);
628
628
  return a || s("algorithm:", t, "is not yet supported"), { update: function(A) {
629
629
  return y.isBuffer(A) || (A = new y(A)), B.push(A), A.length, this;
630
630
  }, digest: function(A) {
631
- var x = y.concat(B), x = u ? function(v, k, P) {
631
+ var x = y.concat(B), x = u ? (function(v, k, P) {
632
632
  y.isBuffer(k) || (k = new y(k)), y.isBuffer(P) || (P = new y(P)), k.length > g ? k = v(k) : k.length < g && (k = y.concat([k, h], g));
633
- for (var M = new y(g), j = new y(g), $ = 0; $ < g; $++) M[$] = 54 ^ k[$], j[$] = 92 ^ k[$];
633
+ for (var M = new y(g), j = new y(g), G = 0; G < g; G++) M[G] = 54 ^ k[G], j[G] = 92 ^ k[G];
634
634
  return P = v(y.concat([M, P])), v(y.concat([j, P]));
635
- }(a, u, x) : a(x);
635
+ })(a, u, x) : a(x);
636
636
  return B = null, A ? x.toString(A) : x;
637
637
  } };
638
638
  }
@@ -791,7 +791,7 @@ list should be an Array.`), r.length === 0) return new l(0);
791
791
  }).call(this, _("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, _("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/process/browser.js", "/node_modules/gulp-browserify/node_modules/process");
792
792
  }, { buffer: 3, lYpoI2: 11 }] }, {}, [1])(1);
793
793
  });
794
- }(ir)), ir.exports;
794
+ })(ir)), ir.exports;
795
795
  }
796
796
  var xr = Br();
797
797
  const Lr = /* @__PURE__ */ Ar(xr);