zudoku 0.3.0-dev.33 → 0.3.0-dev.35

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 (58) hide show
  1. package/dist/app/main.js +1 -2
  2. package/dist/app/main.js.map +1 -1
  3. package/dist/lib/components/index.d.ts +3 -0
  4. package/dist/lib/components/index.js +2 -0
  5. package/dist/lib/components/index.js.map +1 -1
  6. package/dist/vite/config.js +1 -1
  7. package/dist/vite/config.js.map +1 -1
  8. package/dist/vite/plugin-component.js +1 -1
  9. package/dist/vite/plugin-component.js.map +1 -1
  10. package/lib/{index.esm-CPEExBJE.js → AnchorLink-DCzimaMt.js} +166 -156
  11. package/lib/AnchorLink-DCzimaMt.js.map +1 -0
  12. package/lib/{DevPortalProvider-BlxLX6GG.js → DevPortalProvider-Demv4Ngx.js} +250 -230
  13. package/lib/DevPortalProvider-Demv4Ngx.js.map +1 -0
  14. package/lib/{Markdown-CL8KPvJN.js → Markdown-kde-UTpz.js} +3 -3
  15. package/lib/{Markdown-CL8KPvJN.js.map → Markdown-kde-UTpz.js.map} +1 -1
  16. package/lib/{MdxComponents-Ev_hBHb2.js → MdxComponents-BZ-Y_6jI.js} +8 -8
  17. package/lib/{MdxComponents-Ev_hBHb2.js.map → MdxComponents-BZ-Y_6jI.js.map} +1 -1
  18. package/lib/{MdxPage-Z3HKNTrj.js → MdxPage-CGTgSCJL.js} +82 -88
  19. package/lib/MdxPage-CGTgSCJL.js.map +1 -0
  20. package/lib/{OperationList-DfkWNe8Y.js → OperationList-BDAtLdf9.js} +1693 -1862
  21. package/lib/OperationList-BDAtLdf9.js.map +1 -0
  22. package/lib/{Route-Bf1_D_vC.js → Route-BqfQoDR2.js} +2 -2
  23. package/lib/{Route-Bf1_D_vC.js.map → Route-BqfQoDR2.js.map} +1 -1
  24. package/lib/Select-DIOQWPp3.js +4571 -0
  25. package/lib/Select-DIOQWPp3.js.map +1 -0
  26. package/lib/Spinner-B9MAj2Pw.js +182 -0
  27. package/lib/Spinner-B9MAj2Pw.js.map +1 -0
  28. package/lib/{hook-CTmJ6CWq.js → hook-D1DiFbcT.js} +3 -3
  29. package/lib/{hook-CTmJ6CWq.js.map → hook-D1DiFbcT.js.map} +1 -1
  30. package/lib/index-BB2EBBgh.js +412 -0
  31. package/lib/index-BB2EBBgh.js.map +1 -0
  32. package/lib/{index-BjSy8IQO.js → index-CdZQPXUQ.js} +6 -6
  33. package/lib/{index-BjSy8IQO.js.map → index-CdZQPXUQ.js.map} +1 -1
  34. package/lib/{jsx-runtime-CM0TzjGp.js → jsx-runtime-Bt86M5tA.js} +5 -5
  35. package/lib/{jsx-runtime-CM0TzjGp.js.map → jsx-runtime-Bt86M5tA.js.map} +1 -1
  36. package/lib/util-CYBrkBUo.js +41 -0
  37. package/lib/util-CYBrkBUo.js.map +1 -0
  38. package/lib/zudoku.auth-openid.js +1 -1
  39. package/lib/zudoku.components.js +548 -280
  40. package/lib/zudoku.components.js.map +1 -1
  41. package/lib/zudoku.plugin-api-keys.js +99 -111
  42. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  43. package/lib/zudoku.plugin-markdown.js +46 -2
  44. package/lib/zudoku.plugin-markdown.js.map +1 -1
  45. package/lib/zudoku.plugin-openapi.js +3 -3
  46. package/package.json +1 -1
  47. package/src/app/main.tsx +1 -2
  48. package/src/lib/components/index.ts +2 -0
  49. package/lib/DevPortalProvider-BlxLX6GG.js.map +0 -1
  50. package/lib/MdxPage-Z3HKNTrj.js.map +0 -1
  51. package/lib/OperationList-DfkWNe8Y.js.map +0 -1
  52. package/lib/Select-DSa3bN4t.js +0 -4770
  53. package/lib/Select-DSa3bN4t.js.map +0 -1
  54. package/lib/index-BdWBDosx.js +0 -74
  55. package/lib/index-BdWBDosx.js.map +0 -1
  56. package/lib/index.esm-CPEExBJE.js.map +0 -1
  57. package/lib/mutation-91kw0lHb.js +0 -208
  58. package/lib/mutation-91kw0lHb.js.map +0 -1
@@ -1,27 +1,29 @@
1
1
  var re = Object.defineProperty;
2
2
  var ne = (e, t, r) => t in e ? re(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var T = (e, t, r) => ne(e, typeof t != "symbol" ? t + "" : t, r);
4
- import m, { Component as L } from "react";
4
+ import d, { Component as L } from "react";
5
5
  import { g as F } from "./_commonjsHelpers-BkfeUUK-.js";
6
- const H = {}, B = m.createContext(H);
7
- function se(e) {
8
- const t = m.useContext(B);
9
- return m.useMemo(
6
+ import { u as se, j as oe } from "./jsx-runtime-Bt86M5tA.js";
7
+ import { L as ie } from "./MdxComponents-BZ-Y_6jI.js";
8
+ const k = {}, X = d.createContext(k);
9
+ function ae(e) {
10
+ const t = d.useContext(X);
11
+ return d.useMemo(
10
12
  function() {
11
13
  return typeof e == "function" ? e(t) : { ...t, ...e };
12
14
  },
13
15
  [t, e]
14
16
  );
15
17
  }
16
- function je(e) {
18
+ function Ke(e) {
17
19
  let t;
18
- return e.disableParentContext ? t = typeof e.components == "function" ? e.components(H) : e.components || H : t = se(e.components), m.createElement(
19
- B.Provider,
20
+ return e.disableParentContext ? t = typeof e.components == "function" ? e.components(k) : e.components || k : t = ae(e.components), d.createElement(
21
+ X.Provider,
20
22
  { value: t },
21
23
  e.children
22
24
  );
23
25
  }
24
- var ie = typeof Element < "u", oe = typeof Map == "function", ae = typeof Set == "function", le = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
26
+ var le = typeof Element < "u", ce = typeof Map == "function", ue = typeof Set == "function", fe = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
25
27
  function x(e, t) {
26
28
  if (e === t) return !0;
27
29
  if (e && t && typeof e == "object" && typeof t == "object") {
@@ -33,22 +35,22 @@ function x(e, t) {
33
35
  if (!x(e[n], t[n])) return !1;
34
36
  return !0;
35
37
  }
36
- var i;
37
- if (oe && e instanceof Map && t instanceof Map) {
38
+ var o;
39
+ if (ce && e instanceof Map && t instanceof Map) {
38
40
  if (e.size !== t.size) return !1;
39
- for (i = e.entries(); !(n = i.next()).done; )
41
+ for (o = e.entries(); !(n = o.next()).done; )
40
42
  if (!t.has(n.value[0])) return !1;
41
- for (i = e.entries(); !(n = i.next()).done; )
43
+ for (o = e.entries(); !(n = o.next()).done; )
42
44
  if (!x(n.value[1], t.get(n.value[0]))) return !1;
43
45
  return !0;
44
46
  }
45
- if (ae && e instanceof Set && t instanceof Set) {
47
+ if (ue && e instanceof Set && t instanceof Set) {
46
48
  if (e.size !== t.size) return !1;
47
- for (i = e.entries(); !(n = i.next()).done; )
49
+ for (o = e.entries(); !(n = o.next()).done; )
48
50
  if (!t.has(n.value[0])) return !1;
49
51
  return !0;
50
52
  }
51
- if (le && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
53
+ if (fe && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
52
54
  if (r = e.length, r != t.length) return !1;
53
55
  for (n = r; n-- !== 0; )
54
56
  if (e[n] !== t[n]) return !1;
@@ -60,7 +62,7 @@ function x(e, t) {
60
62
  if (s = Object.keys(e), r = s.length, r !== Object.keys(t).length) return !1;
61
63
  for (n = r; n-- !== 0; )
62
64
  if (!Object.prototype.hasOwnProperty.call(t, s[n])) return !1;
63
- if (ie && e instanceof Element) return !1;
65
+ if (le && e instanceof Element) return !1;
64
66
  for (n = r; n-- !== 0; )
65
67
  if (!((s[n] === "_owner" || s[n] === "__v" || s[n] === "__o") && e.$$typeof) && !x(e[s[n]], t[s[n]]))
66
68
  return !1;
@@ -68,7 +70,7 @@ function x(e, t) {
68
70
  }
69
71
  return e !== e && t !== t;
70
72
  }
71
- var ce = function(t, r) {
73
+ var pe = function(t, r) {
72
74
  try {
73
75
  return x(t, r);
74
76
  } catch (n) {
@@ -77,8 +79,8 @@ var ce = function(t, r) {
77
79
  throw n;
78
80
  }
79
81
  };
80
- const ue = /* @__PURE__ */ F(ce);
81
- var fe = function(e, t, r, n, s, i, c, o) {
82
+ const me = /* @__PURE__ */ F(pe);
83
+ var de = function(e, t, r, n, s, o, c, i) {
82
84
  if (process.env.NODE_ENV !== "production" && t === void 0)
83
85
  throw new Error("invariant requires an error message argument");
84
86
  if (!e) {
@@ -88,7 +90,7 @@ var fe = function(e, t, r, n, s, i, c, o) {
88
90
  "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
89
91
  );
90
92
  else {
91
- var a = [r, n, s, i, c, o], u = 0;
93
+ var a = [r, n, s, o, c, i], u = 0;
92
94
  l = new Error(
93
95
  t.replace(/%s/g, function() {
94
96
  return a[u++];
@@ -97,31 +99,31 @@ var fe = function(e, t, r, n, s, i, c, o) {
97
99
  }
98
100
  throw l.framesToPop = 1, l;
99
101
  }
100
- }, pe = fe;
101
- const z = /* @__PURE__ */ F(pe);
102
- var de = function(t, r, n, s) {
103
- var i = n ? n.call(s, t, r) : void 0;
104
- if (i !== void 0)
105
- return !!i;
102
+ }, he = de;
103
+ const z = /* @__PURE__ */ F(he);
104
+ var ye = function(t, r, n, s) {
105
+ var o = n ? n.call(s, t, r) : void 0;
106
+ if (o !== void 0)
107
+ return !!o;
106
108
  if (t === r)
107
109
  return !0;
108
110
  if (typeof t != "object" || !t || typeof r != "object" || !r)
109
111
  return !1;
110
- var c = Object.keys(t), o = Object.keys(r);
111
- if (c.length !== o.length)
112
+ var c = Object.keys(t), i = Object.keys(r);
113
+ if (c.length !== i.length)
112
114
  return !1;
113
115
  for (var l = Object.prototype.hasOwnProperty.bind(r), a = 0; a < c.length; a++) {
114
116
  var u = c[a];
115
117
  if (!l(u))
116
118
  return !1;
117
119
  var f = t[u], h = r[u];
118
- if (i = n ? n.call(s, f, h, u) : void 0, i === !1 || i === void 0 && f !== h)
120
+ if (o = n ? n.call(s, f, h, u) : void 0, o === !1 || o === void 0 && f !== h)
119
121
  return !1;
120
122
  }
121
123
  return !0;
122
124
  };
123
- const me = /* @__PURE__ */ F(de);
124
- var Z = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(Z || {}), $ = {
125
+ const Te = /* @__PURE__ */ F(ye);
126
+ var W = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(W || {}), I = {
125
127
  link: { rel: ["amphtml", "canonical", "alternate"] },
126
128
  script: { type: ["application/ld+json"] },
127
129
  meta: {
@@ -143,7 +145,7 @@ var Z = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
143
145
  "twitter:site"
144
146
  ]
145
147
  }
146
- }, N = Object.values(Z), U = {
148
+ }, N = Object.values(W), U = {
147
149
  accesskey: "accessKey",
148
150
  charset: "charSet",
149
151
  class: "className",
@@ -152,7 +154,7 @@ var Z = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
152
154
  "http-equiv": "httpEquiv",
153
155
  itemprop: "itemProp",
154
156
  tabindex: "tabIndex"
155
- }, he = Object.entries(U).reduce(
157
+ }, ge = Object.entries(U).reduce(
156
158
  (e, [t, r]) => (e[r] = t, e),
157
159
  {}
158
160
  ), y = "data-rh", C = {
@@ -169,7 +171,7 @@ var Z = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
169
171
  return n[t];
170
172
  }
171
173
  return null;
172
- }, ye = (e) => {
174
+ }, ve = (e) => {
173
175
  let t = E(
174
176
  e,
175
177
  "title"
@@ -180,24 +182,24 @@ var Z = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
180
182
  return r.replace(/%s/g, () => t);
181
183
  const n = E(e, C.DEFAULT_TITLE);
182
184
  return t || n || void 0;
183
- }, Te = (e) => E(e, C.ON_CHANGE_CLIENT_STATE) || (() => {
184
- }), I = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}), ge = (e, t) => t.filter((r) => typeof r.base < "u").map((r) => r.base).reverse().reduce((r, n) => {
185
+ }, Ae = (e) => E(e, C.ON_CHANGE_CLIENT_STATE) || (() => {
186
+ }), $ = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}), Ce = (e, t) => t.filter((r) => typeof r.base < "u").map((r) => r.base).reverse().reduce((r, n) => {
185
187
  if (!r.length) {
186
188
  const s = Object.keys(n);
187
- for (let i = 0; i < s.length; i += 1) {
188
- const o = s[i].toLowerCase();
189
- if (e.indexOf(o) !== -1 && n[o])
189
+ for (let o = 0; o < s.length; o += 1) {
190
+ const i = s[o].toLowerCase();
191
+ if (e.indexOf(i) !== -1 && n[i])
190
192
  return r.concat(n);
191
193
  }
192
194
  }
193
195
  return r;
194
- }, []), ve = (e) => console && typeof console.warn == "function" && console.warn(e), b = (e, t, r) => {
196
+ }, []), Ee = (e) => console && typeof console.warn == "function" && console.warn(e), b = (e, t, r) => {
195
197
  const n = {};
196
- return r.filter((s) => Array.isArray(s[e]) ? !0 : (typeof s[e] < "u" && ve(
198
+ return r.filter((s) => Array.isArray(s[e]) ? !0 : (typeof s[e] < "u" && Ee(
197
199
  `Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`
198
- ), !1)).map((s) => s[e]).reverse().reduce((s, i) => {
200
+ ), !1)).map((s) => s[e]).reverse().reduce((s, o) => {
199
201
  const c = {};
200
- i.filter((l) => {
202
+ o.filter((l) => {
201
203
  let a;
202
204
  const u = Object.keys(l);
203
205
  for (let h = 0; h < u.length; h += 1) {
@@ -209,9 +211,9 @@ var Z = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
209
211
  const f = l[a].toLowerCase();
210
212
  return n[a] || (n[a] = {}), c[a] || (c[a] = {}), n[a][f] ? !1 : (c[a][f] = !0, !0);
211
213
  }).reverse().forEach((l) => s.push(l));
212
- const o = Object.keys(c);
213
- for (let l = 0; l < o.length; l += 1) {
214
- const a = o[l], u = {
214
+ const i = Object.keys(c);
215
+ for (let l = 0; l < i.length; l += 1) {
216
+ const a = i[l], u = {
215
217
  ...n[a],
216
218
  ...c[a]
217
219
  };
@@ -219,22 +221,22 @@ var Z = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
219
221
  }
220
222
  return s;
221
223
  }, []).reverse();
222
- }, Ae = (e, t) => {
224
+ }, be = (e, t) => {
223
225
  if (Array.isArray(e) && e.length) {
224
226
  for (let r = 0; r < e.length; r += 1)
225
227
  if (e[r][t])
226
228
  return !0;
227
229
  }
228
230
  return !1;
229
- }, Ce = (e) => ({
230
- baseTag: ge([
231
+ }, Oe = (e) => ({
232
+ baseTag: Ce([
231
233
  "href"
232
234
  /* HREF */
233
235
  ], e),
234
- bodyAttributes: I("bodyAttributes", e),
236
+ bodyAttributes: $("bodyAttributes", e),
235
237
  defer: E(e, C.DEFER),
236
238
  encode: E(e, C.ENCODE_SPECIAL_CHARACTERS),
237
- htmlAttributes: I("htmlAttributes", e),
239
+ htmlAttributes: $("htmlAttributes", e),
238
240
  linkTags: b(
239
241
  "link",
240
242
  [
@@ -260,7 +262,7 @@ var Z = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
260
262
  "innerHTML"
261
263
  /* INNER_HTML */
262
264
  ], e),
263
- onChangeClientState: Te(e),
265
+ onChangeClientState: Ae(e),
264
266
  scriptTags: b(
265
267
  "script",
266
268
  [
@@ -274,118 +276,118 @@ var Z = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
274
276
  "cssText"
275
277
  /* CSS_TEXT */
276
278
  ], e),
277
- title: ye(e),
278
- titleAttributes: I("titleAttributes", e),
279
- prioritizeSeoTags: Ae(e, C.PRIORITIZE_SEO_TAGS)
280
- }), G = (e) => Array.isArray(e) ? e.join("") : e, Ee = (e, t) => {
279
+ title: ve(e),
280
+ titleAttributes: $("titleAttributes", e),
281
+ prioritizeSeoTags: be(e, C.PRIORITIZE_SEO_TAGS)
282
+ }), Z = (e) => Array.isArray(e) ? e.join("") : e, Se = (e, t) => {
281
283
  const r = Object.keys(e);
282
284
  for (let n = 0; n < r.length; n += 1)
283
285
  if (t[r[n]] && t[r[n]].includes(e[r[n]]))
284
286
  return !0;
285
287
  return !1;
286
- }, M = (e, t) => Array.isArray(e) ? e.reduce(
287
- (r, n) => (Ee(n, t) ? r.priority.push(n) : r.default.push(n), r),
288
+ }, D = (e, t) => Array.isArray(e) ? e.reduce(
289
+ (r, n) => (Se(n, t) ? r.priority.push(n) : r.default.push(n), r),
288
290
  { priority: [], default: [] }
289
291
  ) : { default: e, priority: [] }, V = (e, t) => ({
290
292
  ...e,
291
293
  [t]: void 0
292
- }), be = [
294
+ }), we = [
293
295
  "noscript",
294
296
  "script",
295
297
  "style"
296
298
  /* STYLE */
297
- ], _ = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;"), W = (e) => Object.keys(e).reduce((t, r) => {
299
+ ], H = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;"), G = (e) => Object.keys(e).reduce((t, r) => {
298
300
  const n = typeof e[r] < "u" ? `${r}="${e[r]}"` : `${r}`;
299
301
  return t ? `${t} ${n}` : n;
300
- }, ""), Oe = (e, t, r, n) => {
301
- const s = W(r), i = G(t);
302
- return s ? `<${e} ${y}="true" ${s}>${_(
303
- i,
302
+ }, ""), xe = (e, t, r, n) => {
303
+ const s = G(r), o = Z(t);
304
+ return s ? `<${e} ${y}="true" ${s}>${H(
305
+ o,
304
306
  n
305
- )}</${e}>` : `<${e} ${y}="true">${_(
306
- i,
307
+ )}</${e}>` : `<${e} ${y}="true">${H(
308
+ o,
307
309
  n
308
310
  )}</${e}>`;
309
- }, Se = (e, t, r = !0) => t.reduce((n, s) => {
310
- const i = s, c = Object.keys(i).filter(
311
+ }, Pe = (e, t, r = !0) => t.reduce((n, s) => {
312
+ const o = s, c = Object.keys(o).filter(
311
313
  (a) => !(a === "innerHTML" || a === "cssText")
312
314
  ).reduce((a, u) => {
313
- const f = typeof i[u] > "u" ? u : `${u}="${_(i[u], r)}"`;
315
+ const f = typeof o[u] > "u" ? u : `${u}="${H(o[u], r)}"`;
314
316
  return a ? `${a} ${f}` : f;
315
- }, ""), o = i.innerHTML || i.cssText || "", l = be.indexOf(e) === -1;
316
- return `${n}<${e} ${y}="true" ${c}${l ? "/>" : `>${o}</${e}>`}`;
317
+ }, ""), i = o.innerHTML || o.cssText || "", l = we.indexOf(e) === -1;
318
+ return `${n}<${e} ${y}="true" ${c}${l ? "/>" : `>${i}</${e}>`}`;
317
319
  }, ""), J = (e, t = {}) => Object.keys(e).reduce((r, n) => {
318
320
  const s = U[n];
319
321
  return r[s || n] = e[n], r;
320
- }, t), we = (e, t, r) => {
322
+ }, t), Ie = (e, t, r) => {
321
323
  const n = {
322
324
  key: t,
323
325
  [y]: !0
324
326
  }, s = J(r, n);
325
- return [m.createElement("title", s, t)];
327
+ return [d.createElement("title", s, t)];
326
328
  }, P = (e, t) => t.map((r, n) => {
327
329
  const s = {
328
330
  key: n,
329
331
  [y]: !0
330
332
  };
331
- return Object.keys(r).forEach((i) => {
332
- const o = U[i] || i;
333
- if (o === "innerHTML" || o === "cssText") {
333
+ return Object.keys(r).forEach((o) => {
334
+ const i = U[o] || o;
335
+ if (i === "innerHTML" || i === "cssText") {
334
336
  const l = r.innerHTML || r.cssText;
335
337
  s.dangerouslySetInnerHTML = { __html: l };
336
338
  } else
337
- s[o] = r[i];
338
- }), m.createElement(e, s);
339
- }), d = (e, t, r = !0) => {
339
+ s[i] = r[o];
340
+ }), d.createElement(e, s);
341
+ }), m = (e, t, r = !0) => {
340
342
  switch (e) {
341
343
  case "title":
342
344
  return {
343
- toComponent: () => we(e, t.title, t.titleAttributes),
344
- toString: () => Oe(e, t.title, t.titleAttributes, r)
345
+ toComponent: () => Ie(e, t.title, t.titleAttributes),
346
+ toString: () => xe(e, t.title, t.titleAttributes, r)
345
347
  };
346
348
  case "bodyAttributes":
347
349
  case "htmlAttributes":
348
350
  return {
349
351
  toComponent: () => J(t),
350
- toString: () => W(t)
352
+ toString: () => G(t)
351
353
  };
352
354
  default:
353
355
  return {
354
356
  toComponent: () => P(e, t),
355
- toString: () => Se(e, t, r)
357
+ toString: () => Pe(e, t, r)
356
358
  };
357
359
  }
358
- }, xe = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
359
- const s = M(e, $.meta), i = M(t, $.link), c = M(r, $.script);
360
+ }, $e = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
361
+ const s = D(e, I.meta), o = D(t, I.link), c = D(r, I.script);
360
362
  return {
361
363
  priorityMethods: {
362
364
  toComponent: () => [
363
365
  ...P("meta", s.priority),
364
- ...P("link", i.priority),
366
+ ...P("link", o.priority),
365
367
  ...P("script", c.priority)
366
368
  ],
367
369
  toString: () => (
368
370
  // generate all the tags as strings and concatenate them
369
- `${d("meta", s.priority, n)} ${d(
371
+ `${m("meta", s.priority, n)} ${m(
370
372
  "link",
371
- i.priority,
373
+ o.priority,
372
374
  n
373
- )} ${d("script", c.priority, n)}`
375
+ )} ${m("script", c.priority, n)}`
374
376
  )
375
377
  },
376
378
  metaTags: s.default,
377
- linkTags: i.default,
379
+ linkTags: o.default,
378
380
  scriptTags: c.default
379
381
  };
380
- }, Pe = (e) => {
382
+ }, De = (e) => {
381
383
  const {
382
384
  baseTag: t,
383
385
  bodyAttributes: r,
384
386
  encode: n = !0,
385
387
  htmlAttributes: s,
386
- noscriptTags: i,
388
+ noscriptTags: o,
387
389
  styleTags: c,
388
- title: o = "",
390
+ title: i = "",
389
391
  titleAttributes: l,
390
392
  prioritizeSeoTags: a
391
393
  } = e;
@@ -394,19 +396,19 @@ var Z = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
394
396
  },
395
397
  toString: () => ""
396
398
  };
397
- return a && ({ priorityMethods: p, linkTags: u, metaTags: f, scriptTags: h } = xe(e)), {
399
+ return a && ({ priorityMethods: p, linkTags: u, metaTags: f, scriptTags: h } = $e(e)), {
398
400
  priority: p,
399
- base: d("base", t, n),
400
- bodyAttributes: d("bodyAttributes", r, n),
401
- htmlAttributes: d("htmlAttributes", s, n),
402
- link: d("link", u, n),
403
- meta: d("meta", f, n),
404
- noscript: d("noscript", i, n),
405
- script: d("script", h, n),
406
- style: d("style", c, n),
407
- title: d("title", { title: o, titleAttributes: l }, n)
401
+ base: m("base", t, n),
402
+ bodyAttributes: m("bodyAttributes", r, n),
403
+ htmlAttributes: m("htmlAttributes", s, n),
404
+ link: m("link", u, n),
405
+ meta: m("meta", f, n),
406
+ noscript: m("noscript", o, n),
407
+ script: m("script", h, n),
408
+ style: m("style", c, n),
409
+ title: m("title", { title: i, titleAttributes: l }, n)
408
410
  };
409
- }, k = Pe, w = [], Q = !!(typeof window < "u" && window.document && window.document.createElement), R = class {
411
+ }, _ = De, w = [], Q = !!(typeof window < "u" && window.document && window.document.createElement), R = class {
410
412
  constructor(e, t) {
411
413
  T(this, "instances", []);
412
414
  T(this, "canUseDOM", Q);
@@ -426,7 +428,7 @@ var Z = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
426
428
  }
427
429
  }
428
430
  });
429
- this.context = e, this.canUseDOM = t || !1, t || (e.helmet = k({
431
+ this.context = e, this.canUseDOM = t || !1, t || (e.helmet = _({
430
432
  baseTag: [],
431
433
  bodyAttributes: {},
432
434
  encodeSpecialCharacters: !0,
@@ -440,77 +442,77 @@ var Z = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
440
442
  titleAttributes: {}
441
443
  }));
442
444
  }
443
- }, $e = {}, ee = m.createContext($e), v, Ie = (v = class extends L {
445
+ }, Me = {}, ee = d.createContext(Me), v, ke = (v = class extends L {
444
446
  constructor(r) {
445
447
  super(r);
446
448
  T(this, "helmetData");
447
449
  this.helmetData = new R(this.props.context || {}, v.canUseDOM);
448
450
  }
449
451
  render() {
450
- return /* @__PURE__ */ m.createElement(ee.Provider, { value: this.helmetData.value }, this.props.children);
452
+ return /* @__PURE__ */ d.createElement(ee.Provider, { value: this.helmetData.value }, this.props.children);
451
453
  }
452
454
  }, T(v, "canUseDOM", Q), v), A = (e, t) => {
453
455
  const r = document.head || document.querySelector(
454
456
  "head"
455
457
  /* HEAD */
456
- ), n = r.querySelectorAll(`${e}[${y}]`), s = [].slice.call(n), i = [];
458
+ ), n = r.querySelectorAll(`${e}[${y}]`), s = [].slice.call(n), o = [];
457
459
  let c;
458
- return t && t.length && t.forEach((o) => {
460
+ return t && t.length && t.forEach((i) => {
459
461
  const l = document.createElement(e);
460
- for (const a in o)
461
- if (Object.prototype.hasOwnProperty.call(o, a))
462
+ for (const a in i)
463
+ if (Object.prototype.hasOwnProperty.call(i, a))
462
464
  if (a === "innerHTML")
463
- l.innerHTML = o.innerHTML;
465
+ l.innerHTML = i.innerHTML;
464
466
  else if (a === "cssText")
465
- l.styleSheet ? l.styleSheet.cssText = o.cssText : l.appendChild(document.createTextNode(o.cssText));
467
+ l.styleSheet ? l.styleSheet.cssText = i.cssText : l.appendChild(document.createTextNode(i.cssText));
466
468
  else {
467
- const u = a, f = typeof o[u] > "u" ? "" : o[u];
469
+ const u = a, f = typeof i[u] > "u" ? "" : i[u];
468
470
  l.setAttribute(a, f);
469
471
  }
470
- l.setAttribute(y, "true"), s.some((a, u) => (c = u, l.isEqualNode(a))) ? s.splice(c, 1) : i.push(l);
471
- }), s.forEach((o) => {
472
+ l.setAttribute(y, "true"), s.some((a, u) => (c = u, l.isEqualNode(a))) ? s.splice(c, 1) : o.push(l);
473
+ }), s.forEach((i) => {
472
474
  var l;
473
- return (l = o.parentNode) == null ? void 0 : l.removeChild(o);
474
- }), i.forEach((o) => r.appendChild(o)), {
475
+ return (l = i.parentNode) == null ? void 0 : l.removeChild(i);
476
+ }), o.forEach((i) => r.appendChild(i)), {
475
477
  oldTags: s,
476
- newTags: i
478
+ newTags: o
477
479
  };
478
480
  }, j = (e, t) => {
479
481
  const r = document.getElementsByTagName(e)[0];
480
482
  if (!r)
481
483
  return;
482
- const n = r.getAttribute(y), s = n ? n.split(",") : [], i = [...s], c = Object.keys(t);
483
- for (const o of c) {
484
- const l = t[o] || "";
485
- r.getAttribute(o) !== l && r.setAttribute(o, l), s.indexOf(o) === -1 && s.push(o);
486
- const a = i.indexOf(o);
487
- a !== -1 && i.splice(a, 1);
484
+ const n = r.getAttribute(y), s = n ? n.split(",") : [], o = [...s], c = Object.keys(t);
485
+ for (const i of c) {
486
+ const l = t[i] || "";
487
+ r.getAttribute(i) !== l && r.setAttribute(i, l), s.indexOf(i) === -1 && s.push(i);
488
+ const a = o.indexOf(i);
489
+ a !== -1 && o.splice(a, 1);
488
490
  }
489
- for (let o = i.length - 1; o >= 0; o -= 1)
490
- r.removeAttribute(i[o]);
491
- s.length === i.length ? r.removeAttribute(y) : r.getAttribute(y) !== c.join(",") && r.setAttribute(y, c.join(","));
492
- }, Me = (e, t) => {
493
- typeof e < "u" && document.title !== e && (document.title = G(e)), j("title", t);
491
+ for (let i = o.length - 1; i >= 0; i -= 1)
492
+ r.removeAttribute(o[i]);
493
+ s.length === o.length ? r.removeAttribute(y) : r.getAttribute(y) !== c.join(",") && r.setAttribute(y, c.join(","));
494
+ }, He = (e, t) => {
495
+ typeof e < "u" && document.title !== e && (document.title = Z(e)), j("title", t);
494
496
  }, Y = (e, t) => {
495
497
  const {
496
498
  baseTag: r,
497
499
  bodyAttributes: n,
498
500
  htmlAttributes: s,
499
- linkTags: i,
501
+ linkTags: o,
500
502
  metaTags: c,
501
- noscriptTags: o,
503
+ noscriptTags: i,
502
504
  onChangeClientState: l,
503
505
  scriptTags: a,
504
506
  styleTags: u,
505
507
  title: f,
506
508
  titleAttributes: h
507
509
  } = e;
508
- j("body", n), j("html", s), Me(f, h);
510
+ j("body", n), j("html", s), He(f, h);
509
511
  const p = {
510
512
  baseTag: A("base", r),
511
- linkTags: A("link", i),
513
+ linkTags: A("link", o),
512
514
  metaTags: A("meta", c),
513
- noscriptTags: A("noscript", o),
515
+ noscriptTags: A("noscript", i),
514
516
  scriptTags: A("script", a),
515
517
  styleTags: A("style", u)
516
518
  }, g = {}, q = {};
@@ -518,19 +520,19 @@ var Z = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
518
520
  const { newTags: K, oldTags: te } = p[S];
519
521
  K.length && (g[S] = K), te.length && (q[S] = p[S].oldTags);
520
522
  }), t && t(), l(e, g, q);
521
- }, O = null, De = (e) => {
523
+ }, O = null, _e = (e) => {
522
524
  O && cancelAnimationFrame(O), e.defer ? O = requestAnimationFrame(() => {
523
525
  Y(e, () => {
524
526
  O = null;
525
527
  });
526
528
  }) : (Y(e), O = null);
527
- }, He = De, X = class extends L {
529
+ }, Re = _e, B = class extends L {
528
530
  constructor() {
529
531
  super(...arguments);
530
532
  T(this, "rendered", !1);
531
533
  }
532
534
  shouldComponentUpdate(t) {
533
- return !me(t, this.props);
535
+ return !Te(t, this.props);
534
536
  }
535
537
  componentDidUpdate() {
536
538
  this.emitChange();
@@ -542,13 +544,13 @@ var Z = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
542
544
  emitChange() {
543
545
  const { helmetInstances: t, setHelmet: r } = this.props.context;
544
546
  let n = null;
545
- const s = Ce(
546
- t.get().map((i) => {
547
- const c = { ...i.props };
547
+ const s = Oe(
548
+ t.get().map((o) => {
549
+ const c = { ...o.props };
548
550
  return delete c.context, c;
549
551
  })
550
552
  );
551
- Ie.canUseDOM ? He(s) : k && (n = k(s)), r(n);
553
+ ke.canUseDOM ? Re(s) : _ && (n = _(s)), r(n);
552
554
  }
553
555
  // componentWillMount will be deprecated
554
556
  // for SSR, initialize on first render
@@ -563,9 +565,9 @@ var Z = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
563
565
  render() {
564
566
  return this.init(), null;
565
567
  }
566
- }, D, Le = (D = class extends L {
568
+ }, M, ze = (M = class extends L {
567
569
  shouldComponentUpdate(e) {
568
- return !ue(V(this.props, "helmetData"), V(e, "helmetData"));
570
+ return !me(V(this.props, "helmetData"), V(e, "helmetData"));
569
571
  }
570
572
  mapNestedChildrenToProps(e, t) {
571
573
  if (!t)
@@ -645,12 +647,12 @@ var Z = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
645
647
  }
646
648
  mapChildrenToProps(e, t) {
647
649
  let r = {};
648
- return m.Children.forEach(e, (n) => {
650
+ return d.Children.forEach(e, (n) => {
649
651
  if (!n || !n.props)
650
652
  return;
651
- const { children: s, ...i } = n.props, c = Object.keys(i).reduce((l, a) => (l[he[a] || a] = i[a], l), {});
652
- let { type: o } = n;
653
- switch (typeof o == "symbol" ? o = o.toString() : this.warnOnInvalidChildren(n, s), o) {
653
+ const { children: s, ...o } = n.props, c = Object.keys(o).reduce((l, a) => (l[ge[a] || a] = o[a], l), {});
654
+ let { type: i } = n;
655
+ switch (typeof i == "symbol" ? i = i.toString() : this.warnOnInvalidChildren(n, s), i) {
654
656
  case "Symbol(react.fragment)":
655
657
  t = this.mapChildrenToProps(s, t);
656
658
  break;
@@ -679,16 +681,24 @@ var Z = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
679
681
  const s = n;
680
682
  n = new R(s.context, !0), delete r.helmetData;
681
683
  }
682
- return n ? /* @__PURE__ */ m.createElement(X, { ...r, context: n.value }) : /* @__PURE__ */ m.createElement(ee.Consumer, null, (s) => /* @__PURE__ */ m.createElement(X, { ...r, context: s }));
684
+ return n ? /* @__PURE__ */ d.createElement(B, { ...r, context: n.value }) : /* @__PURE__ */ d.createElement(ee.Consumer, null, (s) => /* @__PURE__ */ d.createElement(B, { ...r, context: s }));
683
685
  }
684
- }, T(D, "defaultProps", {
686
+ }, T(M, "defaultProps", {
685
687
  defer: !0,
686
688
  encodeSpecialCharacters: !0,
687
689
  prioritizeSeoTags: !1
688
- }), D);
690
+ }), M);
691
+ const Ne = (e) => {
692
+ const t = se(), r = typeof e.to == "string" ? e.to : e.to.hash, n = (s) => {
693
+ var o;
694
+ !(r != null && r.startsWith("#")) || r !== t.hash || (s.preventDefault(), (o = document.getElementById(r.slice(1))) == null || o.scrollIntoView());
695
+ };
696
+ return /* @__PURE__ */ oe.jsx(ie, { onClick: n, ...e });
697
+ };
689
698
  export {
690
- Le as H,
691
- je as M,
692
- se as u
699
+ Ne as A,
700
+ ze as H,
701
+ Ke as M,
702
+ ae as u
693
703
  };
694
- //# sourceMappingURL=index.esm-CPEExBJE.js.map
704
+ //# sourceMappingURL=AnchorLink-DCzimaMt.js.map