@kosdev-code/kos-ui-plugin 2.1.1 → 2.1.3

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/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import * as J from "react/jsx-runtime";
1
+ import * as Q from "react/jsx-runtime";
2
2
  import * as V from "react";
3
- import Q, { forwardRef as Ot, useContext as qe, createContext as It, useState as j, useEffect as ee, Suspense as Dt, useMemo as Y } from "react";
3
+ import K, { forwardRef as Ot, useContext as Xe, createContext as It, useState as j, useEffect as ee, Suspense as Dt, useMemo as Y } from "react";
4
4
  import h from "@emotion/styled";
5
- import { a as Vt, b as jt, r as Se, m as Yt, P as te, g as Kt, c as Ze, D as Bt } from "./documentation-generator-B8FuhDjB.js";
5
+ import { a as Vt, b as jt, r as Se, m as Yt, P as te, g as Bt, c as Te, D as Kt } from "./documentation-generator-BVDETA08.js";
6
6
  import "zod";
7
7
  function Wt(e) {
8
8
  if (e.sheet)
@@ -18,9 +18,9 @@ function Ht(e) {
18
18
  var Ut = /* @__PURE__ */ function() {
19
19
  function e(n) {
20
20
  var r = this;
21
- this._insertTag = function(i) {
22
- var o;
23
- r.tags.length === 0 ? r.insertionPoint ? o = r.insertionPoint.nextSibling : r.prepend ? o = r.container.firstChild : o = r.before : o = r.tags[r.tags.length - 1].nextSibling, r.container.insertBefore(i, o), r.tags.push(i);
21
+ this._insertTag = function(o) {
22
+ var i;
23
+ r.tags.length === 0 ? r.insertionPoint ? i = r.insertionPoint.nextSibling : r.prepend ? i = r.container.firstChild : i = r.before : i = r.tags[r.tags.length - 1].nextSibling, r.container.insertBefore(o, i), r.tags.push(o);
24
24
  }, this.isSpeedy = n.speedy === void 0 ? !0 : n.speedy, this.tags = [], this.ctr = 0, this.nonce = n.nonce, this.key = n.key, this.container = n.container, this.prepend = n.prepend, this.insertionPoint = n.insertionPoint, this.before = null;
25
25
  }
26
26
  var t = e.prototype;
@@ -28,27 +28,27 @@ var Ut = /* @__PURE__ */ function() {
28
28
  r.forEach(this._insertTag);
29
29
  }, t.insert = function(r) {
30
30
  this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Ht(this));
31
- var i = this.tags[this.tags.length - 1];
31
+ var o = this.tags[this.tags.length - 1];
32
32
  if (this.isSpeedy) {
33
- var o = Wt(i);
33
+ var i = Wt(o);
34
34
  try {
35
- o.insertRule(r, o.cssRules.length);
35
+ i.insertRule(r, i.cssRules.length);
36
36
  } catch {
37
37
  }
38
38
  } else
39
- i.appendChild(document.createTextNode(r));
39
+ o.appendChild(document.createTextNode(r));
40
40
  this.ctr++;
41
41
  }, t.flush = function() {
42
42
  this.tags.forEach(function(r) {
43
- var i;
44
- return (i = r.parentNode) == null ? void 0 : i.removeChild(r);
43
+ var o;
44
+ return (o = r.parentNode) == null ? void 0 : o.removeChild(r);
45
45
  }), this.tags = [], this.ctr = 0;
46
46
  }, e;
47
- }(), z = "-ms-", he = "-moz-", v = "-webkit-", Xe = "comm", Te = "rule", Re = "decl", Gt = "@import", Je = "@keyframes", qt = "@layer", Zt = Math.abs, me = String.fromCharCode, Xt = Object.assign;
47
+ }(), z = "-ms-", he = "-moz-", v = "-webkit-", Je = "comm", Re = "rule", Me = "decl", Gt = "@import", Qe = "@keyframes", qt = "@layer", Zt = Math.abs, me = String.fromCharCode, Xt = Object.assign;
48
48
  function Jt(e, t) {
49
49
  return A(e, 0) ^ 45 ? (((t << 2 ^ A(e, 0)) << 2 ^ A(e, 1)) << 2 ^ A(e, 2)) << 2 ^ A(e, 3) : 0;
50
50
  }
51
- function Qe(e) {
51
+ function et(e) {
52
52
  return e.trim();
53
53
  }
54
54
  function Qt(e, t) {
@@ -69,7 +69,7 @@ function ne(e, t, n) {
69
69
  function O(e) {
70
70
  return e.length;
71
71
  }
72
- function Me(e) {
72
+ function Ae(e) {
73
73
  return e.length;
74
74
  }
75
75
  function le(e, t) {
@@ -78,30 +78,30 @@ function le(e, t) {
78
78
  function en(e, t) {
79
79
  return e.map(t).join("");
80
80
  }
81
- var ge = 1, U = 1, et = 0, F = 0, R = 0, G = "";
82
- function xe(e, t, n, r, i, o, a) {
83
- return { value: e, root: t, parent: n, type: r, props: i, children: o, line: ge, column: U, length: a, return: "" };
81
+ var ge = 1, G = 1, tt = 0, F = 0, R = 0, q = "";
82
+ function xe(e, t, n, r, o, i, a) {
83
+ return { value: e, root: t, parent: n, type: r, props: o, children: i, line: ge, column: G, length: a, return: "" };
84
84
  }
85
- function q(e, t) {
85
+ function Z(e, t) {
86
86
  return Xt(xe("", null, null, "", null, null, 0), e, { length: -e.length }, t);
87
87
  }
88
88
  function tn() {
89
89
  return R;
90
90
  }
91
91
  function nn() {
92
- return R = F > 0 ? A(G, --F) : 0, U--, R === 10 && (U = 1, ge--), R;
92
+ return R = F > 0 ? A(q, --F) : 0, G--, R === 10 && (G = 1, ge--), R;
93
93
  }
94
94
  function L() {
95
- return R = F < et ? A(G, F++) : 0, U++, R === 10 && (U = 1, ge++), R;
95
+ return R = F < tt ? A(q, F++) : 0, G++, R === 10 && (G = 1, ge++), R;
96
96
  }
97
97
  function D() {
98
- return A(G, F);
98
+ return A(q, F);
99
99
  }
100
100
  function fe() {
101
101
  return F;
102
102
  }
103
- function oe(e, t) {
104
- return ne(G, e, t);
103
+ function ie(e, t) {
104
+ return ne(q, e, t);
105
105
  }
106
106
  function re(e) {
107
107
  switch (e) {
@@ -135,14 +135,14 @@ function re(e) {
135
135
  }
136
136
  return 0;
137
137
  }
138
- function tt(e) {
139
- return ge = U = 1, et = O(G = e), F = 0, [];
140
- }
141
138
  function nt(e) {
142
- return G = "", e;
139
+ return ge = G = 1, tt = O(q = e), F = 0, [];
140
+ }
141
+ function rt(e) {
142
+ return q = "", e;
143
143
  }
144
144
  function ue(e) {
145
- return Qe(oe(F - 1, Pe(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
145
+ return et(ie(F - 1, Pe(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
146
146
  }
147
147
  function rn(e) {
148
148
  for (; (R = D()) && R < 33; )
@@ -152,7 +152,7 @@ function rn(e) {
152
152
  function on(e, t) {
153
153
  for (; --t && L() && !(R < 48 || R > 102 || R > 57 && R < 65 || R > 70 && R < 97); )
154
154
  ;
155
- return oe(e, fe() + (t < 6 && D() == 32 && L() == 32));
155
+ return ie(e, fe() + (t < 6 && D() == 32 && L() == 32));
156
156
  }
157
157
  function Pe(e) {
158
158
  for (; L(); )
@@ -176,18 +176,18 @@ function an(e, t) {
176
176
  for (; L() && e + R !== 57; )
177
177
  if (e + R === 84 && D() === 47)
178
178
  break;
179
- return "/*" + oe(t, F - 1) + "*" + me(e === 47 ? e : L());
179
+ return "/*" + ie(t, F - 1) + "*" + me(e === 47 ? e : L());
180
180
  }
181
181
  function sn(e) {
182
182
  for (; !re(D()); )
183
183
  L();
184
- return oe(e, F);
184
+ return ie(e, F);
185
185
  }
186
186
  function cn(e) {
187
- return nt(pe("", null, null, null, [""], e = tt(e), 0, [0], e));
187
+ return rt(pe("", null, null, null, [""], e = nt(e), 0, [0], e));
188
188
  }
189
- function pe(e, t, n, r, i, o, a, f, d) {
190
- for (var p = 0, l = 0, s = a, x = 0, b = 0, y = 0, E = 1, M = 1, $ = 1, T = 0, k = "", _ = i, u = o, N = r, P = k; M; )
189
+ function pe(e, t, n, r, o, i, a, d, f) {
190
+ for (var p = 0, l = 0, s = a, x = 0, b = 0, y = 0, E = 1, M = 1, $ = 1, T = 0, k = "", _ = o, u = i, N = r, P = k; M; )
191
191
  switch (y = T, T = L()) {
192
192
  case 40:
193
193
  if (y != 108 && A(P, s - 1) == 58) {
@@ -212,14 +212,14 @@ function pe(e, t, n, r, i, o, a, f, d) {
212
212
  switch (D()) {
213
213
  case 42:
214
214
  case 47:
215
- le(ln(an(L(), fe()), t, n), d);
215
+ le(ln(an(L(), fe()), t, n), f);
216
216
  break;
217
217
  default:
218
218
  P += "/";
219
219
  }
220
220
  break;
221
221
  case 123 * E:
222
- f[p++] = O(P) * $;
222
+ d[p++] = O(P) * $;
223
223
  case 125 * E:
224
224
  case 59:
225
225
  case 0:
@@ -228,24 +228,24 @@ function pe(e, t, n, r, i, o, a, f, d) {
228
228
  case 125:
229
229
  M = 0;
230
230
  case 59 + l:
231
- $ == -1 && (P = w(P, /\f/g, "")), b > 0 && O(P) - s && le(b > 32 ? Oe(P + ";", r, n, s - 1) : Oe(w(P, " ", "") + ";", r, n, s - 2), d);
231
+ $ == -1 && (P = w(P, /\f/g, "")), b > 0 && O(P) - s && le(b > 32 ? De(P + ";", r, n, s - 1) : De(w(P, " ", "") + ";", r, n, s - 2), f);
232
232
  break;
233
233
  case 59:
234
234
  P += ";";
235
235
  default:
236
- if (le(N = Le(P, t, n, p, l, i, f, k, _ = [], u = [], s), o), T === 123)
236
+ if (le(N = Ie(P, t, n, p, l, o, d, k, _ = [], u = [], s), i), T === 123)
237
237
  if (l === 0)
238
- pe(P, t, N, N, _, o, s, f, u);
238
+ pe(P, t, N, N, _, i, s, d, u);
239
239
  else
240
240
  switch (x === 99 && A(P, 3) === 110 ? 100 : x) {
241
241
  case 100:
242
242
  case 108:
243
243
  case 109:
244
244
  case 115:
245
- pe(e, N, N, r && le(Le(e, N, N, 0, 0, i, f, k, i, _ = [], s), u), i, u, s, f, r ? _ : u);
245
+ pe(e, N, N, r && le(Ie(e, N, N, 0, 0, o, d, k, o, _ = [], s), u), o, u, s, d, r ? _ : u);
246
246
  break;
247
247
  default:
248
- pe(P, N, N, N, [""], u, 0, f, u);
248
+ pe(P, N, N, N, [""], u, 0, d, u);
249
249
  }
250
250
  }
251
251
  p = l = b = 0, E = $ = 1, k = P = "", s = a;
@@ -264,7 +264,7 @@ function pe(e, t, n, r, i, o, a, f, d) {
264
264
  $ = l > 0 ? 1 : (P += "\f", -1);
265
265
  break;
266
266
  case 44:
267
- f[p++] = (O(P) - 1) * $, $ = 1;
267
+ d[p++] = (O(P) - 1) * $, $ = 1;
268
268
  break;
269
269
  case 64:
270
270
  D() === 45 && (P += ue(L())), x = D(), l = s = O(k = P += sn(fe())), T++;
@@ -273,23 +273,23 @@ function pe(e, t, n, r, i, o, a, f, d) {
273
273
  y === 45 && O(P) == 2 && (E = 0);
274
274
  }
275
275
  }
276
- return o;
276
+ return i;
277
277
  }
278
- function Le(e, t, n, r, i, o, a, f, d, p, l) {
279
- for (var s = i - 1, x = i === 0 ? o : [""], b = Me(x), y = 0, E = 0, M = 0; y < r; ++y)
278
+ function Ie(e, t, n, r, o, i, a, d, f, p, l) {
279
+ for (var s = o - 1, x = o === 0 ? i : [""], b = Ae(x), y = 0, E = 0, M = 0; y < r; ++y)
280
280
  for (var $ = 0, T = ne(e, s + 1, s = Zt(E = a[y])), k = e; $ < b; ++$)
281
- (k = Qe(E > 0 ? x[$] + " " + T : w(T, /&\f/g, x[$]))) && (d[M++] = k);
282
- return xe(e, t, n, i === 0 ? Te : f, d, p, l);
281
+ (k = et(E > 0 ? x[$] + " " + T : w(T, /&\f/g, x[$]))) && (f[M++] = k);
282
+ return xe(e, t, n, o === 0 ? Re : d, f, p, l);
283
283
  }
284
284
  function ln(e, t, n) {
285
- return xe(e, t, n, Xe, me(tn()), ne(e, 2, -2), 0);
285
+ return xe(e, t, n, Je, me(tn()), ne(e, 2, -2), 0);
286
286
  }
287
- function Oe(e, t, n, r) {
288
- return xe(e, t, n, Re, ne(e, 0, r), ne(e, r + 1, -1), r);
287
+ function De(e, t, n, r) {
288
+ return xe(e, t, n, Me, ne(e, 0, r), ne(e, r + 1, -1), r);
289
289
  }
290
- function H(e, t) {
291
- for (var n = "", r = Me(e), i = 0; i < r; i++)
292
- n += t(e[i], i, e, t) || "";
290
+ function U(e, t) {
291
+ for (var n = "", r = Ae(e), o = 0; o < r; o++)
292
+ n += t(e[o], o, e, t) || "";
293
293
  return n;
294
294
  }
295
295
  function dn(e, t, n, r) {
@@ -298,22 +298,22 @@ function dn(e, t, n, r) {
298
298
  if (e.children.length)
299
299
  break;
300
300
  case Gt:
301
- case Re:
301
+ case Me:
302
302
  return e.return = e.return || e.value;
303
- case Xe:
304
- return "";
305
303
  case Je:
306
- return e.return = e.value + "{" + H(e.children, r) + "}";
307
- case Te:
304
+ return "";
305
+ case Qe:
306
+ return e.return = e.value + "{" + U(e.children, r) + "}";
307
+ case Re:
308
308
  e.value = e.props.join(",");
309
309
  }
310
- return O(n = H(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
310
+ return O(n = U(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
311
311
  }
312
312
  function fn(e) {
313
- var t = Me(e);
314
- return function(n, r, i, o) {
315
- for (var a = "", f = 0; f < t; f++)
316
- a += e[f](n, r, i, o) || "";
313
+ var t = Ae(e);
314
+ return function(n, r, o, i) {
315
+ for (var a = "", d = 0; d < t; d++)
316
+ a += e[d](n, r, o, i) || "";
317
317
  return a;
318
318
  };
319
319
  }
@@ -323,43 +323,43 @@ function un(e) {
323
323
  };
324
324
  }
325
325
  var pn = function(t, n, r) {
326
- for (var i = 0, o = 0; i = o, o = D(), i === 38 && o === 12 && (n[r] = 1), !re(o); )
326
+ for (var o = 0, i = 0; o = i, i = D(), o === 38 && i === 12 && (n[r] = 1), !re(i); )
327
327
  L();
328
- return oe(t, F);
328
+ return ie(t, F);
329
329
  }, hn = function(t, n) {
330
- var r = -1, i = 44;
330
+ var r = -1, o = 44;
331
331
  do
332
- switch (re(i)) {
332
+ switch (re(o)) {
333
333
  case 0:
334
- i === 38 && D() === 12 && (n[r] = 1), t[r] += pn(F - 1, n, r);
334
+ o === 38 && D() === 12 && (n[r] = 1), t[r] += pn(F - 1, n, r);
335
335
  break;
336
336
  case 2:
337
- t[r] += ue(i);
337
+ t[r] += ue(o);
338
338
  break;
339
339
  case 4:
340
- if (i === 44) {
340
+ if (o === 44) {
341
341
  t[++r] = D() === 58 ? "&\f" : "", n[r] = t[r].length;
342
342
  break;
343
343
  }
344
344
  default:
345
- t[r] += me(i);
345
+ t[r] += me(o);
346
346
  }
347
- while (i = L());
347
+ while (o = L());
348
348
  return t;
349
349
  }, mn = function(t, n) {
350
- return nt(hn(tt(t), n));
351
- }, Ie = /* @__PURE__ */ new WeakMap(), gn = function(t) {
350
+ return rt(hn(nt(t), n));
351
+ }, Ve = /* @__PURE__ */ new WeakMap(), gn = function(t) {
352
352
  if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
353
353
  // negative .length indicates that this rule has been already prefixed
354
354
  t.length < 1)) {
355
- for (var n = t.value, r = t.parent, i = t.column === r.column && t.line === r.line; r.type !== "rule"; )
355
+ for (var n = t.value, r = t.parent, o = t.column === r.column && t.line === r.line; r.type !== "rule"; )
356
356
  if (r = r.parent, !r)
357
357
  return;
358
- if (!(t.props.length === 1 && n.charCodeAt(0) !== 58 && !Ie.get(r)) && !i) {
359
- Ie.set(t, !0);
360
- for (var o = [], a = mn(n, o), f = r.props, d = 0, p = 0; d < a.length; d++)
361
- for (var l = 0; l < f.length; l++, p++)
362
- t.props[p] = o[d] ? a[d].replace(/&\f/g, f[l]) : f[l] + " " + a[d];
358
+ if (!(t.props.length === 1 && n.charCodeAt(0) !== 58 && !Ve.get(r)) && !o) {
359
+ Ve.set(t, !0);
360
+ for (var i = [], a = mn(n, i), d = r.props, f = 0, p = 0; f < a.length; f++)
361
+ for (var l = 0; l < d.length; l++, p++)
362
+ t.props[p] = i[f] ? a[f].replace(/&\f/g, d[l]) : d[l] + " " + a[f];
363
363
  }
364
364
  }
365
365
  }, xn = function(t) {
@@ -370,7 +370,7 @@ var pn = function(t, n, r) {
370
370
  n.charCodeAt(2) === 98 && (t.return = "", t.value = "");
371
371
  }
372
372
  };
373
- function rt(e, t) {
373
+ function ot(e, t) {
374
374
  switch (Jt(e, t)) {
375
375
  case 5103:
376
376
  return v + "print-" + e + e;
@@ -457,7 +457,7 @@ function rt(e, t) {
457
457
  case 102:
458
458
  return w(e, /(.+:)(.+)-([^]+)/, "$1" + v + "$2-$3$1" + he + (A(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
459
459
  case 115:
460
- return ~Ce(e, "stretch") ? rt(w(e, "stretch", "fill-available"), t) + e : e;
460
+ return ~Ce(e, "stretch") ? ot(w(e, "stretch", "fill-available"), t) + e : e;
461
461
  }
462
462
  break;
463
463
  case 4949:
@@ -484,33 +484,33 @@ function rt(e, t) {
484
484
  }
485
485
  return e;
486
486
  }
487
- var yn = function(t, n, r, i) {
487
+ var yn = function(t, n, r, o) {
488
488
  if (t.length > -1 && !t.return)
489
489
  switch (t.type) {
490
- case Re:
491
- t.return = rt(t.value, t.length);
490
+ case Me:
491
+ t.return = ot(t.value, t.length);
492
492
  break;
493
- case Je:
494
- return H([q(t, {
493
+ case Qe:
494
+ return U([Z(t, {
495
495
  value: w(t.value, "@", "@" + v)
496
- })], i);
497
- case Te:
496
+ })], o);
497
+ case Re:
498
498
  if (t.length)
499
- return en(t.props, function(o) {
500
- switch (Qt(o, /(::plac\w+|:read-\w+)/)) {
499
+ return en(t.props, function(i) {
500
+ switch (Qt(i, /(::plac\w+|:read-\w+)/)) {
501
501
  case ":read-only":
502
502
  case ":read-write":
503
- return H([q(t, {
504
- props: [w(o, /:(read-\w+)/, ":" + he + "$1")]
505
- })], i);
503
+ return U([Z(t, {
504
+ props: [w(i, /:(read-\w+)/, ":" + he + "$1")]
505
+ })], o);
506
506
  case "::placeholder":
507
- return H([q(t, {
508
- props: [w(o, /:(plac\w+)/, ":" + v + "input-$1")]
509
- }), q(t, {
510
- props: [w(o, /:(plac\w+)/, ":" + he + "$1")]
511
- }), q(t, {
512
- props: [w(o, /:(plac\w+)/, z + "input-$1")]
513
- })], i);
507
+ return U([Z(t, {
508
+ props: [w(i, /:(plac\w+)/, ":" + v + "input-$1")]
509
+ }), Z(t, {
510
+ props: [w(i, /:(plac\w+)/, ":" + he + "$1")]
511
+ }), Z(t, {
512
+ props: [w(i, /:(plac\w+)/, z + "input-$1")]
513
+ })], o);
514
514
  }
515
515
  return "";
516
516
  });
@@ -524,25 +524,25 @@ var yn = function(t, n, r, i) {
524
524
  M.indexOf(" ") !== -1 && (document.head.appendChild(E), E.setAttribute("data-s", ""));
525
525
  });
526
526
  }
527
- var i = t.stylisPlugins || bn, o = {}, a, f = [];
527
+ var o = t.stylisPlugins || bn, i = {}, a, d = [];
528
528
  a = t.container || document.head, Array.prototype.forEach.call(
529
529
  // this means we will ignore elements which don't have a space in them which
530
530
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
531
531
  document.querySelectorAll('style[data-emotion^="' + n + ' "]'),
532
532
  function(E) {
533
533
  for (var M = E.getAttribute("data-emotion").split(" "), $ = 1; $ < M.length; $++)
534
- o[M[$]] = !0;
535
- f.push(E);
534
+ i[M[$]] = !0;
535
+ d.push(E);
536
536
  }
537
537
  );
538
- var d, p = [gn, xn];
538
+ var f, p = [gn, xn];
539
539
  {
540
540
  var l, s = [dn, un(function(E) {
541
541
  l.insert(E);
542
- })], x = fn(p.concat(i, s)), b = function(M) {
543
- return H(cn(M), x);
542
+ })], x = fn(p.concat(o, s)), b = function(M) {
543
+ return U(cn(M), x);
544
544
  };
545
- d = function(M, $, T, k) {
545
+ f = function(M, $, T, k) {
546
546
  l = T, b(M ? M + "{" + $.styles + "}" : $.styles), k && (y.inserted[$.name] = !0);
547
547
  };
548
548
  }
@@ -557,11 +557,11 @@ var yn = function(t, n, r, i) {
557
557
  insertionPoint: t.insertionPoint
558
558
  }),
559
559
  nonce: t.nonce,
560
- inserted: o,
560
+ inserted: i,
561
561
  registered: {},
562
- insert: d
562
+ insert: f
563
563
  };
564
- return y.sheet.hydrate(f), y;
564
+ return y.sheet.hydrate(d), y;
565
565
  }, ke = { exports: {} }, S = {};
566
566
  /** @license React v16.13.1
567
567
  * react-is.production.min.js
@@ -571,28 +571,28 @@ var yn = function(t, n, r, i) {
571
571
  * This source code is licensed under the MIT license found in the
572
572
  * LICENSE file in the root directory of this source tree.
573
573
  */
574
- var De;
574
+ var je;
575
575
  function wn() {
576
- if (De)
576
+ if (je)
577
577
  return S;
578
- De = 1;
579
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, s = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, E = e ? Symbol.for("react.block") : 60121, M = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
578
+ je = 1;
579
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, s = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, E = e ? Symbol.for("react.block") : 60121, M = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
580
580
  function k(u) {
581
581
  if (typeof u == "object" && u !== null) {
582
582
  var N = u.$$typeof;
583
583
  switch (N) {
584
584
  case t:
585
585
  switch (u = u.type, u) {
586
- case d:
586
+ case f:
587
587
  case p:
588
588
  case r:
589
- case o:
590
589
  case i:
590
+ case o:
591
591
  case s:
592
592
  return u;
593
593
  default:
594
594
  switch (u = u && u.$$typeof, u) {
595
- case f:
595
+ case d:
596
596
  case l:
597
597
  case y:
598
598
  case b:
@@ -610,10 +610,10 @@ function wn() {
610
610
  function _(u) {
611
611
  return k(u) === p;
612
612
  }
613
- return S.AsyncMode = d, S.ConcurrentMode = p, S.ContextConsumer = f, S.ContextProvider = a, S.Element = t, S.ForwardRef = l, S.Fragment = r, S.Lazy = y, S.Memo = b, S.Portal = n, S.Profiler = o, S.StrictMode = i, S.Suspense = s, S.isAsyncMode = function(u) {
614
- return _(u) || k(u) === d;
613
+ return S.AsyncMode = f, S.ConcurrentMode = p, S.ContextConsumer = d, S.ContextProvider = a, S.Element = t, S.ForwardRef = l, S.Fragment = r, S.Lazy = y, S.Memo = b, S.Portal = n, S.Profiler = i, S.StrictMode = o, S.Suspense = s, S.isAsyncMode = function(u) {
614
+ return _(u) || k(u) === f;
615
615
  }, S.isConcurrentMode = _, S.isContextConsumer = function(u) {
616
- return k(u) === f;
616
+ return k(u) === d;
617
617
  }, S.isContextProvider = function(u) {
618
618
  return k(u) === a;
619
619
  }, S.isElement = function(u) {
@@ -629,13 +629,13 @@ function wn() {
629
629
  }, S.isPortal = function(u) {
630
630
  return k(u) === n;
631
631
  }, S.isProfiler = function(u) {
632
- return k(u) === o;
633
- }, S.isStrictMode = function(u) {
634
632
  return k(u) === i;
633
+ }, S.isStrictMode = function(u) {
634
+ return k(u) === o;
635
635
  }, S.isSuspense = function(u) {
636
636
  return k(u) === s;
637
637
  }, S.isValidElementType = function(u) {
638
- return typeof u == "string" || typeof u == "function" || u === r || u === p || u === o || u === i || u === s || u === x || typeof u == "object" && u !== null && (u.$$typeof === y || u.$$typeof === b || u.$$typeof === a || u.$$typeof === f || u.$$typeof === l || u.$$typeof === M || u.$$typeof === $ || u.$$typeof === T || u.$$typeof === E);
638
+ return typeof u == "string" || typeof u == "function" || u === r || u === p || u === i || u === o || u === s || u === x || typeof u == "object" && u !== null && (u.$$typeof === y || u.$$typeof === b || u.$$typeof === a || u.$$typeof === d || u.$$typeof === l || u.$$typeof === M || u.$$typeof === $ || u.$$typeof === T || u.$$typeof === E);
639
639
  }, S.typeOf = k, S;
640
640
  }
641
641
  var C = {};
@@ -647,13 +647,13 @@ var C = {};
647
647
  * This source code is licensed under the MIT license found in the
648
648
  * LICENSE file in the root directory of this source tree.
649
649
  */
650
- var Ve;
650
+ var Ye;
651
651
  function En() {
652
- return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && function() {
653
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, s = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, E = e ? Symbol.for("react.block") : 60121, M = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
652
+ return Ye || (Ye = 1, process.env.NODE_ENV !== "production" && function() {
653
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, s = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, E = e ? Symbol.for("react.block") : 60121, M = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
654
654
  function k(m) {
655
655
  return typeof m == "string" || typeof m == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
656
- m === r || m === p || m === o || m === i || m === s || m === x || typeof m == "object" && m !== null && (m.$$typeof === y || m.$$typeof === b || m.$$typeof === a || m.$$typeof === f || m.$$typeof === l || m.$$typeof === M || m.$$typeof === $ || m.$$typeof === T || m.$$typeof === E);
656
+ m === r || m === p || m === i || m === o || m === s || m === x || typeof m == "object" && m !== null && (m.$$typeof === y || m.$$typeof === b || m.$$typeof === a || m.$$typeof === d || m.$$typeof === l || m.$$typeof === M || m.$$typeof === $ || m.$$typeof === T || m.$$typeof === E);
657
657
  }
658
658
  function _(m) {
659
659
  if (typeof m == "object" && m !== null) {
@@ -662,22 +662,22 @@ function En() {
662
662
  case t:
663
663
  var ce = m.type;
664
664
  switch (ce) {
665
- case d:
665
+ case f:
666
666
  case p:
667
667
  case r:
668
- case o:
669
668
  case i:
669
+ case o:
670
670
  case s:
671
671
  return ce;
672
672
  default:
673
- var Fe = ce && ce.$$typeof;
674
- switch (Fe) {
675
- case f:
673
+ var Oe = ce && ce.$$typeof;
674
+ switch (Oe) {
675
+ case d:
676
676
  case l:
677
677
  case y:
678
678
  case b:
679
679
  case a:
680
- return Fe;
680
+ return Oe;
681
681
  default:
682
682
  return be;
683
683
  }
@@ -687,15 +687,15 @@ function En() {
687
687
  }
688
688
  }
689
689
  }
690
- var u = d, N = p, P = f, mt = a, gt = t, xt = l, yt = r, bt = y, vt = b, wt = n, Et = o, St = i, Ct = s, Ne = !1;
690
+ var u = f, N = p, P = d, mt = a, gt = t, xt = l, yt = r, bt = y, vt = b, wt = n, Et = i, St = o, Ct = s, Fe = !1;
691
691
  function Pt(m) {
692
- return Ne || (Ne = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), ze(m) || _(m) === d;
692
+ return Fe || (Fe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Le(m) || _(m) === f;
693
693
  }
694
- function ze(m) {
694
+ function Le(m) {
695
695
  return _(m) === p;
696
696
  }
697
697
  function kt(m) {
698
- return _(m) === f;
698
+ return _(m) === d;
699
699
  }
700
700
  function $t(m) {
701
701
  return _(m) === a;
@@ -719,15 +719,15 @@ function En() {
719
719
  return _(m) === n;
720
720
  }
721
721
  function zt(m) {
722
- return _(m) === o;
722
+ return _(m) === i;
723
723
  }
724
724
  function Ft(m) {
725
- return _(m) === i;
725
+ return _(m) === o;
726
726
  }
727
727
  function Lt(m) {
728
728
  return _(m) === s;
729
729
  }
730
- C.AsyncMode = u, C.ConcurrentMode = N, C.ContextConsumer = P, C.ContextProvider = mt, C.Element = gt, C.ForwardRef = xt, C.Fragment = yt, C.Lazy = bt, C.Memo = vt, C.Portal = wt, C.Profiler = Et, C.StrictMode = St, C.Suspense = Ct, C.isAsyncMode = Pt, C.isConcurrentMode = ze, C.isContextConsumer = kt, C.isContextProvider = $t, C.isElement = _t, C.isForwardRef = Tt, C.isFragment = Rt, C.isLazy = Mt, C.isMemo = At, C.isPortal = Nt, C.isProfiler = zt, C.isStrictMode = Ft, C.isSuspense = Lt, C.isValidElementType = k, C.typeOf = _;
730
+ C.AsyncMode = u, C.ConcurrentMode = N, C.ContextConsumer = P, C.ContextProvider = mt, C.Element = gt, C.ForwardRef = xt, C.Fragment = yt, C.Lazy = bt, C.Memo = vt, C.Portal = wt, C.Profiler = Et, C.StrictMode = St, C.Suspense = Ct, C.isAsyncMode = Pt, C.isConcurrentMode = Le, C.isContextConsumer = kt, C.isContextProvider = $t, C.isElement = _t, C.isForwardRef = Tt, C.isFragment = Rt, C.isLazy = Mt, C.isMemo = At, C.isPortal = Nt, C.isProfiler = zt, C.isStrictMode = Ft, C.isSuspense = Lt, C.isValidElementType = k, C.typeOf = _;
731
731
  }()), C;
732
732
  }
733
733
  process.env.NODE_ENV === "production" ? ke.exports = wn() : ke.exports = En();
@@ -744,18 +744,18 @@ var Sn = ke.exports, it = Sn, Cn = {
744
744
  displayName: !0,
745
745
  propTypes: !0,
746
746
  type: !0
747
- }, ot = {};
748
- ot[it.ForwardRef] = Cn;
749
- ot[it.Memo] = Pn;
747
+ }, at = {};
748
+ at[it.ForwardRef] = Cn;
749
+ at[it.Memo] = Pn;
750
750
  var kn = !0;
751
751
  function $n(e, t, n) {
752
752
  var r = "";
753
- return n.split(" ").forEach(function(i) {
754
- e[i] !== void 0 ? t.push(e[i] + ";") : i && (r += i + " ");
753
+ return n.split(" ").forEach(function(o) {
754
+ e[o] !== void 0 ? t.push(e[o] + ";") : o && (r += o + " ");
755
755
  }), r;
756
756
  }
757
- var at = function(t, n, r) {
758
- var i = t.key + "-" + n.name;
757
+ var st = function(t, n, r) {
758
+ var o = t.key + "-" + n.name;
759
759
  // we only need to add the styles to the registered cache if the
760
760
  // class name could be used further down
761
761
  // the tree but if it's a string tag, we know it won't
@@ -765,25 +765,25 @@ var at = function(t, n, r) {
765
765
  // in node since emotion-server relies on whether a style is in
766
766
  // the registered cache to know whether a style is global or not
767
767
  // also, note that this check will be dead code eliminated in the browser
768
- kn === !1) && t.registered[i] === void 0 && (t.registered[i] = n.styles);
768
+ kn === !1) && t.registered[o] === void 0 && (t.registered[o] = n.styles);
769
769
  }, _n = function(t, n, r) {
770
- at(t, n, r);
771
- var i = t.key + "-" + n.name;
770
+ st(t, n, r);
771
+ var o = t.key + "-" + n.name;
772
772
  if (t.inserted[n.name] === void 0) {
773
- var o = n;
773
+ var i = n;
774
774
  do
775
- t.insert(n === o ? "." + i : "", o, t.sheet, !0), o = o.next;
776
- while (o !== void 0);
775
+ t.insert(n === i ? "." + o : "", i, t.sheet, !0), i = i.next;
776
+ while (i !== void 0);
777
777
  }
778
778
  };
779
779
  function Tn(e) {
780
- for (var t = 0, n, r = 0, i = e.length; i >= 4; ++r, i -= 4)
780
+ for (var t = 0, n, r = 0, o = e.length; o >= 4; ++r, o -= 4)
781
781
  n = e.charCodeAt(r) & 255 | (e.charCodeAt(++r) & 255) << 8 | (e.charCodeAt(++r) & 255) << 16 | (e.charCodeAt(++r) & 255) << 24, n = /* Math.imul(k, m): */
782
782
  (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
783
783
  n >>> 24, t = /* Math.imul(k, m): */
784
784
  (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
785
785
  (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
786
- switch (i) {
786
+ switch (o) {
787
787
  case 3:
788
788
  t ^= (e.charCodeAt(r + 2) & 255) << 16;
789
789
  case 2:
@@ -851,28 +851,28 @@ function Mn(e) {
851
851
  return t[n] === void 0 && (t[n] = e(n)), t[n];
852
852
  };
853
853
  }
854
- var An = /[A-Z]|^ms/g, Nn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, st = function(t) {
854
+ var An = /[A-Z]|^ms/g, Nn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, ct = function(t) {
855
855
  return t.charCodeAt(1) === 45;
856
- }, je = function(t) {
856
+ }, Be = function(t) {
857
857
  return t != null && typeof t != "boolean";
858
858
  }, ve = /* @__PURE__ */ Mn(function(e) {
859
- return st(e) ? e : e.replace(An, "-$&").toLowerCase();
860
- }), Ye = function(t, n) {
859
+ return ct(e) ? e : e.replace(An, "-$&").toLowerCase();
860
+ }), Ke = function(t, n) {
861
861
  switch (t) {
862
862
  case "animation":
863
863
  case "animationName":
864
864
  if (typeof n == "string")
865
- return n.replace(Nn, function(r, i, o) {
865
+ return n.replace(Nn, function(r, o, i) {
866
866
  return I = {
867
- name: i,
868
- styles: o,
867
+ name: o,
868
+ styles: i,
869
869
  next: I
870
- }, i;
870
+ }, o;
871
871
  });
872
872
  }
873
- return Rn[t] !== 1 && !st(t) && typeof n == "number" && n !== 0 ? n + "px" : n;
873
+ return Rn[t] !== 1 && !ct(t) && typeof n == "number" && n !== 0 ? n + "px" : n;
874
874
  };
875
- function ie(e, t, n) {
875
+ function oe(e, t, n) {
876
876
  if (n == null)
877
877
  return "";
878
878
  var r = n;
@@ -882,16 +882,16 @@ function ie(e, t, n) {
882
882
  case "boolean":
883
883
  return "";
884
884
  case "object": {
885
- var i = n;
886
- if (i.anim === 1)
885
+ var o = n;
886
+ if (o.anim === 1)
887
887
  return I = {
888
- name: i.name,
889
- styles: i.styles,
888
+ name: o.name,
889
+ styles: o.styles,
890
890
  next: I
891
- }, i.name;
892
- var o = n;
893
- if (o.styles !== void 0) {
894
- var a = o.next;
891
+ }, o.name;
892
+ var i = n;
893
+ if (i.styles !== void 0) {
894
+ var a = i.next;
895
895
  if (a !== void 0)
896
896
  for (; a !== void 0; )
897
897
  I = {
@@ -899,15 +899,15 @@ function ie(e, t, n) {
899
899
  styles: a.styles,
900
900
  next: I
901
901
  }, a = a.next;
902
- var f = o.styles + ";";
903
- return f;
902
+ var d = i.styles + ";";
903
+ return d;
904
904
  }
905
905
  return zn(e, t, n);
906
906
  }
907
907
  case "function": {
908
908
  if (e !== void 0) {
909
- var d = I, p = n(e);
910
- return I = d, ie(e, t, p);
909
+ var f = I, p = n(e);
910
+ return I = f, oe(e, t, p);
911
911
  }
912
912
  break;
913
913
  }
@@ -918,63 +918,63 @@ function ie(e, t, n) {
918
918
  function zn(e, t, n) {
919
919
  var r = "";
920
920
  if (Array.isArray(n))
921
- for (var i = 0; i < n.length; i++)
922
- r += ie(e, t, n[i]) + ";";
921
+ for (var o = 0; o < n.length; o++)
922
+ r += oe(e, t, n[o]) + ";";
923
923
  else
924
- for (var o in n) {
925
- var a = n[o];
924
+ for (var i in n) {
925
+ var a = n[i];
926
926
  if (typeof a != "object") {
927
- var f = a;
928
- je(f) && (r += ve(o) + ":" + Ye(o, f) + ";");
927
+ var d = a;
928
+ Be(d) && (r += ve(i) + ":" + Ke(i, d) + ";");
929
929
  } else if (Array.isArray(a) && typeof a[0] == "string" && t == null)
930
- for (var d = 0; d < a.length; d++)
931
- je(a[d]) && (r += ve(o) + ":" + Ye(o, a[d]) + ";");
930
+ for (var f = 0; f < a.length; f++)
931
+ Be(a[f]) && (r += ve(i) + ":" + Ke(i, a[f]) + ";");
932
932
  else {
933
- var p = ie(e, t, a);
934
- switch (o) {
933
+ var p = oe(e, t, a);
934
+ switch (i) {
935
935
  case "animation":
936
936
  case "animationName": {
937
- r += ve(o) + ":" + p + ";";
937
+ r += ve(i) + ":" + p + ";";
938
938
  break;
939
939
  }
940
940
  default:
941
- r += o + "{" + p + "}";
941
+ r += i + "{" + p + "}";
942
942
  }
943
943
  }
944
944
  }
945
945
  return r;
946
946
  }
947
- var Ke = /label:\s*([^\s;{]+)\s*(;|$)/g, I;
948
- function Be(e, t, n) {
947
+ var We = /label:\s*([^\s;{]+)\s*(;|$)/g, I;
948
+ function He(e, t, n) {
949
949
  if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
950
950
  return e[0];
951
- var r = !0, i = "";
951
+ var r = !0, o = "";
952
952
  I = void 0;
953
- var o = e[0];
954
- if (o == null || o.raw === void 0)
955
- r = !1, i += ie(n, t, o);
953
+ var i = e[0];
954
+ if (i == null || i.raw === void 0)
955
+ r = !1, o += oe(n, t, i);
956
956
  else {
957
- var a = o;
958
- i += a[0];
957
+ var a = i;
958
+ o += a[0];
959
959
  }
960
- for (var f = 1; f < e.length; f++)
961
- if (i += ie(n, t, e[f]), r) {
962
- var d = o;
963
- i += d[f];
960
+ for (var d = 1; d < e.length; d++)
961
+ if (o += oe(n, t, e[d]), r) {
962
+ var f = i;
963
+ o += f[d];
964
964
  }
965
- Ke.lastIndex = 0;
966
- for (var p = "", l; (l = Ke.exec(i)) !== null; )
965
+ We.lastIndex = 0;
966
+ for (var p = "", l; (l = We.exec(o)) !== null; )
967
967
  p += "-" + l[1];
968
- var s = Tn(i) + p;
968
+ var s = Tn(o) + p;
969
969
  return {
970
970
  name: s,
971
- styles: i,
971
+ styles: o,
972
972
  next: I
973
973
  };
974
974
  }
975
975
  var Fn = function(t) {
976
976
  return t();
977
- }, Ln = V.useInsertionEffect ? V.useInsertionEffect : !1, On = Ln || Fn, ye = {}.hasOwnProperty, Ae = /* @__PURE__ */ V.createContext(
977
+ }, Ln = V.useInsertionEffect ? V.useInsertionEffect : !1, On = Ln || Fn, ye = {}.hasOwnProperty, Ne = /* @__PURE__ */ V.createContext(
978
978
  // we're doing this to avoid preconstruct's dead code elimination in this one case
979
979
  // because this module is primarily intended for the browser and node
980
980
  // but it's also required in react native and similar environments sometimes
@@ -985,82 +985,82 @@ var Fn = function(t) {
985
985
  key: "css"
986
986
  }) : null
987
987
  );
988
- process.env.NODE_ENV !== "production" && (Ae.displayName = "EmotionCacheContext");
989
- Ae.Provider;
988
+ process.env.NODE_ENV !== "production" && (Ne.displayName = "EmotionCacheContext");
989
+ Ne.Provider;
990
990
  var In = function(t) {
991
991
  return /* @__PURE__ */ Ot(function(n, r) {
992
- var i = qe(Ae);
993
- return t(n, i, r);
992
+ var o = Xe(Ne);
993
+ return t(n, o, r);
994
994
  });
995
- }, ct = /* @__PURE__ */ V.createContext({});
996
- process.env.NODE_ENV !== "production" && (ct.displayName = "EmotionThemeContext");
997
- var We = function(t) {
995
+ }, lt = /* @__PURE__ */ V.createContext({});
996
+ process.env.NODE_ENV !== "production" && (lt.displayName = "EmotionThemeContext");
997
+ var Ue = function(t) {
998
998
  var n = t.split(".");
999
999
  return n[n.length - 1];
1000
1000
  }, Dn = function(t) {
1001
1001
  var n = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(t);
1002
1002
  if (n || (n = /^([A-Za-z0-9$.]+)@/.exec(t), n))
1003
- return We(n[1]);
1003
+ return Ue(n[1]);
1004
1004
  }, Vn = /* @__PURE__ */ new Set(["renderWithHooks", "processChild", "finishClassComponent", "renderToString"]), jn = function(t) {
1005
1005
  return t.replace(/\$/g, "-");
1006
1006
  }, Yn = function(t) {
1007
1007
  if (t)
1008
1008
  for (var n = t.split(`
1009
1009
  `), r = 0; r < n.length; r++) {
1010
- var i = Dn(n[r]);
1011
- if (i) {
1012
- if (Vn.has(i))
1010
+ var o = Dn(n[r]);
1011
+ if (o) {
1012
+ if (Vn.has(o))
1013
1013
  break;
1014
- if (/^[A-Z]/.test(i))
1015
- return jn(i);
1014
+ if (/^[A-Z]/.test(o))
1015
+ return jn(o);
1016
1016
  }
1017
1017
  }
1018
- }, $e = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", _e = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", lt = function(t, n) {
1018
+ }, $e = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", _e = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", dt = function(t, n) {
1019
1019
  if (process.env.NODE_ENV !== "production" && typeof n.css == "string" && // check if there is a css declaration
1020
1020
  n.css.indexOf(":") !== -1)
1021
1021
  throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`" + n.css + "`");
1022
1022
  var r = {};
1023
- for (var i in n)
1024
- ye.call(n, i) && (r[i] = n[i]);
1023
+ for (var o in n)
1024
+ ye.call(n, o) && (r[o] = n[o]);
1025
1025
  if (r[$e] = t, process.env.NODE_ENV !== "production" && n.css && (typeof n.css != "object" || typeof n.css.name != "string" || n.css.name.indexOf("-") === -1)) {
1026
- var o = Yn(new Error().stack);
1027
- o && (r[_e] = o);
1026
+ var i = Yn(new Error().stack);
1027
+ i && (r[_e] = i);
1028
1028
  }
1029
1029
  return r;
1030
- }, Kn = function(t) {
1031
- var n = t.cache, r = t.serialized, i = t.isStringTag;
1032
- return at(n, r, i), On(function() {
1033
- return _n(n, r, i);
1030
+ }, Bn = function(t) {
1031
+ var n = t.cache, r = t.serialized, o = t.isStringTag;
1032
+ return st(n, r, o), On(function() {
1033
+ return _n(n, r, o);
1034
1034
  }), null;
1035
- }, dt = /* @__PURE__ */ In(function(e, t, n) {
1035
+ }, ft = /* @__PURE__ */ In(function(e, t, n) {
1036
1036
  var r = e.css;
1037
1037
  typeof r == "string" && t.registered[r] !== void 0 && (r = t.registered[r]);
1038
- var i = e[$e], o = [r], a = "";
1039
- typeof e.className == "string" ? a = $n(t.registered, o, e.className) : e.className != null && (a = e.className + " ");
1040
- var f = Be(o, void 0, V.useContext(ct));
1041
- if (process.env.NODE_ENV !== "production" && f.name.indexOf("-") === -1) {
1042
- var d = e[_e];
1043
- d && (f = Be([f, "label:" + d + ";"]));
1038
+ var o = e[$e], i = [r], a = "";
1039
+ typeof e.className == "string" ? a = $n(t.registered, i, e.className) : e.className != null && (a = e.className + " ");
1040
+ var d = He(i, void 0, V.useContext(lt));
1041
+ if (process.env.NODE_ENV !== "production" && d.name.indexOf("-") === -1) {
1042
+ var f = e[_e];
1043
+ f && (d = He([d, "label:" + f + ";"]));
1044
1044
  }
1045
- a += t.key + "-" + f.name;
1045
+ a += t.key + "-" + d.name;
1046
1046
  var p = {};
1047
1047
  for (var l in e)
1048
1048
  ye.call(e, l) && l !== "css" && l !== $e && (process.env.NODE_ENV === "production" || l !== _e) && (p[l] = e[l]);
1049
- return p.ref = n, p.className = a, /* @__PURE__ */ V.createElement(V.Fragment, null, /* @__PURE__ */ V.createElement(Kn, {
1049
+ return p.ref = n, p.className = a, /* @__PURE__ */ V.createElement(V.Fragment, null, /* @__PURE__ */ V.createElement(Bn, {
1050
1050
  cache: t,
1051
- serialized: f,
1052
- isStringTag: typeof i == "string"
1053
- }), /* @__PURE__ */ V.createElement(i, p));
1051
+ serialized: d,
1052
+ isStringTag: typeof o == "string"
1053
+ }), /* @__PURE__ */ V.createElement(o, p));
1054
1054
  });
1055
- process.env.NODE_ENV !== "production" && (dt.displayName = "EmotionCssPropInternal");
1056
- var ft = dt, K = J.Fragment;
1055
+ process.env.NODE_ENV !== "production" && (ft.displayName = "EmotionCssPropInternal");
1056
+ var ut = ft, B = Q.Fragment;
1057
1057
  function c(e, t, n) {
1058
- return ye.call(t, "css") ? J.jsx(ft, lt(e, t), n) : J.jsx(e, t, n);
1058
+ return ye.call(t, "css") ? Q.jsx(ut, dt(e, t), n) : Q.jsx(e, t, n);
1059
1059
  }
1060
1060
  function g(e, t, n) {
1061
- return ye.call(t, "css") ? J.jsxs(ft, lt(e, t), n) : J.jsxs(e, t, n);
1061
+ return ye.call(t, "css") ? Q.jsxs(ut, dt(e, t), n) : Q.jsxs(e, t, n);
1062
1062
  }
1063
- const ut = It(void 0), He = h.div`
1063
+ const pt = It(void 0), Ge = h.div`
1064
1064
  padding-inline: 20px;
1065
1065
  width: 100%;
1066
1066
  height: 100vh;
@@ -1074,7 +1074,7 @@ const ut = It(void 0), He = h.div`
1074
1074
  left: 0;
1075
1075
  z-index: 10000;
1076
1076
  `, qr = ({ remotesOverride: e, onBeforeInitialize: t, pluginConfig: n, children: r }) => {
1077
- const [i, o] = j(), [a, f] = j(null);
1077
+ const [o, i] = j(), [a, d] = j(null);
1078
1078
  return ee(() => {
1079
1079
  (async () => {
1080
1080
  var p, l;
@@ -1088,46 +1088,46 @@ const ut = It(void 0), He = h.div`
1088
1088
  "KosPluginProvider: Using existing plugin initialization"
1089
1089
  ), s = x) : (console.log("KosPluginProvider: Initializing plugins..."), await Vt(n), s = (l = window.KosPlugins) == null ? void 0 : l.__dynamicRemotes));
1090
1090
  const b = await jt(s);
1091
- o(b);
1091
+ i(b);
1092
1092
  } catch (s) {
1093
- console.error("KosPluginProvider: Failed to initialize plugins", s), f(s);
1093
+ console.error("KosPluginProvider: Failed to initialize plugins", s), d(s);
1094
1094
  }
1095
1095
  })();
1096
- }, [e, t, n]), a ? /* @__PURE__ */ g(He, { children: [
1096
+ }, [e, t, n]), a ? /* @__PURE__ */ g(Ge, { children: [
1097
1097
  /* @__PURE__ */ c("div", { children: "Failed to load plugins" }),
1098
1098
  /* @__PURE__ */ c("div", { style: { fontSize: "12px", marginTop: "10px", opacity: 0.8 }, children: a.message })
1099
- ] }) : /* @__PURE__ */ c(ut.Provider, { value: i, children: i ? r : /* @__PURE__ */ c(He, { children: "Loading remote plugins..." }) });
1099
+ ] }) : /* @__PURE__ */ c(pt.Provider, { value: o, children: o ? r : /* @__PURE__ */ c(Ge, { children: "Loading remote plugins..." }) });
1100
1100
  }, ae = () => {
1101
- const e = qe(ut);
1101
+ const e = Xe(pt);
1102
1102
  if (!e)
1103
1103
  throw new Error(
1104
1104
  "useKosPluginsContext must be used within a KosPluginProvider"
1105
1105
  );
1106
1106
  return e;
1107
- }, Bn = (e) => {
1107
+ }, Kn = (e) => {
1108
1108
  var t;
1109
1109
  return ((t = e == null ? void 0 : e.view) == null ? void 0 : t.component) !== void 0;
1110
1110
  }, Wn = ({
1111
1111
  extension: e,
1112
1112
  module: t
1113
1113
  }) => {
1114
- const { extensions: n } = ae(), [r, i] = j(
1114
+ const { extensions: n } = ae(), [r, o] = j(
1115
1115
  null
1116
- ), [o, a] = j(null);
1116
+ ), [i, a] = j(null);
1117
1117
  return ee(() => {
1118
- async function f() {
1119
- const d = Se(n == null ? void 0 : n[e], t);
1120
- a(d ?? null);
1121
- const p = (d == null ? void 0 : d.remote) || "", l = Bn(d) ? d.view.component : d == null ? void 0 : d.component, s = l ? `./${l}` : "";
1118
+ async function d() {
1119
+ const f = Se(n == null ? void 0 : n[e], t);
1120
+ a(f ?? null);
1121
+ const p = (f == null ? void 0 : f.remote) || "", l = Kn(f) ? f.view.component : f == null ? void 0 : f.component, s = l ? `./${l}` : "";
1122
1122
  if (!p)
1123
1123
  return;
1124
- const x = Q.lazy(() => Yt.loadRemoteModule(p, s));
1125
- i(x);
1124
+ const x = K.lazy(() => Yt.loadRemoteModule(p, s));
1125
+ o(x);
1126
1126
  }
1127
- f();
1128
- }, [n, t, e]), [r, o];
1127
+ d();
1128
+ }, [n, t, e]), [r, i];
1129
1129
  };
1130
- class Hn extends Q.Component {
1130
+ class Hn extends K.Component {
1131
1131
  constructor(t) {
1132
1132
  super(t), this.state = { hasError: !1 };
1133
1133
  }
@@ -1155,30 +1155,30 @@ const Un = h.div`
1155
1155
  height: ${(e) => e.height};
1156
1156
  justify-content: center;
1157
1157
  width: ${(e) => e.width};
1158
- `, pt = ({
1158
+ `, ze = ({
1159
1159
  extension: e,
1160
1160
  fallback: t,
1161
1161
  module: n,
1162
1162
  props: r
1163
1163
  }) => {
1164
- const [i, o] = Wn({
1164
+ const [o, i] = Wn({
1165
1165
  extension: e,
1166
1166
  module: n
1167
1167
  });
1168
- if (!i)
1168
+ if (!o)
1169
1169
  return null;
1170
1170
  const a = t || /* @__PURE__ */ c(Un, { children: `Dynamic component, ${e}, not found...` });
1171
1171
  return /* @__PURE__ */ c(Hn, { fallback: a, children: /* @__PURE__ */ c(
1172
1172
  Dt,
1173
1173
  {
1174
- fallback: o != null && o.size ? /* @__PURE__ */ c(
1174
+ fallback: i != null && i.size ? /* @__PURE__ */ c(
1175
1175
  Gn,
1176
1176
  {
1177
- width: o.size.width,
1178
- height: o.size.height
1177
+ width: i.size.width,
1178
+ height: i.size.height
1179
1179
  }
1180
1180
  ) : null,
1181
- children: /* @__PURE__ */ c(i, { ...r })
1181
+ children: /* @__PURE__ */ c(o, { ...r })
1182
1182
  }
1183
1183
  ) });
1184
1184
  }, qn = h.div`
@@ -1234,7 +1234,7 @@ const Un = h.div`
1234
1234
  color: #656d76;
1235
1235
  display: flex;
1236
1236
  justify-content: space-between;
1237
- `, Ue = h.span`
1237
+ `, qe = h.span`
1238
1238
  display: inline-block;
1239
1239
  padding: 2px 6px;
1240
1240
  border-radius: 12px;
@@ -1258,14 +1258,14 @@ const Un = h.div`
1258
1258
  text-align: center;
1259
1259
  color: #656d76;
1260
1260
  font-size: 14px;
1261
- `, ir = ({
1261
+ `, or = ({
1262
1262
  extensionPoints: e,
1263
1263
  selectedExtensionId: t,
1264
1264
  onExtensionSelect: n,
1265
1265
  searchTerm: r,
1266
- onSearchChange: i,
1267
- className: o
1268
- }) => /* @__PURE__ */ g(qn, { className: o, children: [
1266
+ onSearchChange: o,
1267
+ className: i
1268
+ }) => /* @__PURE__ */ g(qn, { className: i, children: [
1269
1269
  /* @__PURE__ */ g(Zn, { children: [
1270
1270
  /* @__PURE__ */ c(Xn, { children: "Extension Points" }),
1271
1271
  /* @__PURE__ */ c(
@@ -1273,12 +1273,12 @@ const Un = h.div`
1273
1273
  {
1274
1274
  placeholder: "Search extension points...",
1275
1275
  value: r,
1276
- onChange: (a) => i(a.target.value)
1276
+ onChange: (a) => o(a.target.value)
1277
1277
  }
1278
1278
  )
1279
1279
  ] }),
1280
1280
  /* @__PURE__ */ c(Qn, { children: e.length > 0 ? e.map((a) => {
1281
- var f;
1281
+ var d;
1282
1282
  return /* @__PURE__ */ g(
1283
1283
  er,
1284
1284
  {
@@ -1288,8 +1288,8 @@ const Un = h.div`
1288
1288
  /* @__PURE__ */ c(tr, { children: a.displayName || a.id }),
1289
1289
  /* @__PURE__ */ g(nr, { children: [
1290
1290
  /* @__PURE__ */ g("div", { children: [
1291
- /* @__PURE__ */ c(Ue, { variant: a.source, children: a.source }),
1292
- ((f = a.metadata) == null ? void 0 : f.deprecated) && /* @__PURE__ */ c(Ue, { variant: "deprecated", style: { marginLeft: 4 }, children: "deprecated" })
1291
+ /* @__PURE__ */ c(qe, { variant: a.source, children: a.source }),
1292
+ ((d = a.metadata) == null ? void 0 : d.deprecated) && /* @__PURE__ */ c(qe, { variant: "deprecated", style: { marginLeft: 4 }, children: "deprecated" })
1293
1293
  ] }),
1294
1294
  /* @__PURE__ */ g("div", { children: [
1295
1295
  a.pluginCount,
@@ -1310,10 +1310,10 @@ function ht(e) {
1310
1310
  const r = te.getExtensionPoints(
1311
1311
  t,
1312
1312
  e
1313
- ), i = te.calculateHealthStats(r);
1313
+ ), o = te.calculateHealthStats(r);
1314
1314
  return {
1315
1315
  extensionPoints: r,
1316
- healthStats: i,
1316
+ healthStats: o,
1317
1317
  isLoading: !1,
1318
1318
  error: void 0
1319
1319
  };
@@ -1334,7 +1334,7 @@ function ht(e) {
1334
1334
  }
1335
1335
  }, [t, e]);
1336
1336
  }
1337
- function or(e, t) {
1337
+ function ir(e, t) {
1338
1338
  const n = ht(t), r = Y(
1339
1339
  () => te.filterExtensionPoints(
1340
1340
  n.extensionPoints,
@@ -1401,7 +1401,7 @@ const ar = h.div`
1401
1401
  line-height: 1.4;
1402
1402
  display: grid;
1403
1403
  gap: 2px;
1404
- `, Z = h.div`
1404
+ `, X = h.div`
1405
1405
  display: grid;
1406
1406
  grid-template-columns: 80px 1fr; /* Fixed label width, flexible value */
1407
1407
  gap: 8px;
@@ -1484,11 +1484,11 @@ const ar = h.div`
1484
1484
  flex: 1;
1485
1485
  `;
1486
1486
  function br(e, t) {
1487
- if (Ze().getExtensionPoint(t) && e.data)
1487
+ if (Te().getExtensionPoint(t) && e.data)
1488
1488
  return e.data;
1489
1489
  }
1490
1490
  function vr(e) {
1491
- const n = Ze().getExtensionPoint(e);
1491
+ const n = Te().getExtensionPoint(e);
1492
1492
  return n != null && n.getSchemaFieldInfo ? n.getSchemaFieldInfo().map((r) => r.name) : [];
1493
1493
  }
1494
1494
  const wr = ({
@@ -1496,38 +1496,38 @@ const wr = ({
1496
1496
  extensionPointId: t,
1497
1497
  className: n
1498
1498
  }) => {
1499
- const r = te.analyzePlugin(e), { hasComponent: i, healthStatus: o, capabilities: a } = r, f = Kt(e.id), d = br(e, t), p = vr(t);
1499
+ const r = te.analyzePlugin(e), { hasComponent: o, healthStatus: i, capabilities: a } = r, d = Bt(e.id), f = br(e, t), p = vr(t);
1500
1500
  return /* @__PURE__ */ g(ar, { className: n, children: [
1501
1501
  /* @__PURE__ */ c(sr, { children: /* @__PURE__ */ g(cr, { children: [
1502
- /* @__PURE__ */ c(lr, { status: o }),
1502
+ /* @__PURE__ */ c(lr, { status: i }),
1503
1503
  /* @__PURE__ */ c(dr, { children: e.id })
1504
1504
  ] }) }),
1505
1505
  /* @__PURE__ */ g(fr, { children: [
1506
- /* @__PURE__ */ g(Z, { children: [
1506
+ /* @__PURE__ */ g(X, { children: [
1507
1507
  /* @__PURE__ */ c("strong", { children: "Source:" }),
1508
1508
  /* @__PURE__ */ c("span", { children: e.remote ? `${e.remote} plugin` : "Local" })
1509
1509
  ] }),
1510
- /* @__PURE__ */ g(Z, { children: [
1510
+ /* @__PURE__ */ g(X, { children: [
1511
1511
  /* @__PURE__ */ c("strong", { children: "Type:" }),
1512
1512
  /* @__PURE__ */ c("span", { children: e.type })
1513
1513
  ] }),
1514
- typeof e.rank == "number" && /* @__PURE__ */ g(Z, { children: [
1514
+ typeof e.rank == "number" && /* @__PURE__ */ g(X, { children: [
1515
1515
  /* @__PURE__ */ c("strong", { children: "Priority:" }),
1516
1516
  /* @__PURE__ */ g("span", { children: [
1517
1517
  e.rank,
1518
1518
  " (higher = preferred)"
1519
1519
  ] })
1520
1520
  ] }),
1521
- e.component && /* @__PURE__ */ g(Z, { children: [
1521
+ e.component && /* @__PURE__ */ g(X, { children: [
1522
1522
  /* @__PURE__ */ c("strong", { children: "Component:" }),
1523
1523
  /* @__PURE__ */ c("span", { children: e.component })
1524
1524
  ] }),
1525
- d && p.map((l) => {
1526
- const s = d[l];
1525
+ f && p.map((l) => {
1526
+ const s = f[l];
1527
1527
  if (s == null)
1528
1528
  return null;
1529
1529
  const x = l.replace(/([A-Z])/g, " $1").replace(/^./, (b) => b.toUpperCase()).trim();
1530
- return /* @__PURE__ */ g(Z, { children: [
1530
+ return /* @__PURE__ */ g(X, { children: [
1531
1531
  /* @__PURE__ */ g("strong", { children: [
1532
1532
  x,
1533
1533
  ":"
@@ -1535,9 +1535,9 @@ const wr = ({
1535
1535
  /* @__PURE__ */ c("span", { children: String(s) })
1536
1536
  ] }, l);
1537
1537
  }),
1538
- !i && /* @__PURE__ */ c(ur, { children: "No UI component (data/utility plugin)" }),
1538
+ !o && /* @__PURE__ */ c(ur, { children: "No UI component (data/utility plugin)" }),
1539
1539
  a.length > 0 && /* @__PURE__ */ c(pr, { children: a.map((l) => /* @__PURE__ */ c(hr, { children: l }, l)) }),
1540
- f.length > 0 && /* @__PURE__ */ c(mr, { children: f.map((l, s) => /* @__PURE__ */ g(gr, { type: l.type, children: [
1540
+ d.length > 0 && /* @__PURE__ */ c(mr, { children: d.map((l, s) => /* @__PURE__ */ g(gr, { type: l.type, children: [
1541
1541
  /* @__PURE__ */ c(xr, { type: l.type }),
1542
1542
  /* @__PURE__ */ c(yr, { children: l.message })
1543
1543
  ] }, s)) })
@@ -1553,7 +1553,7 @@ const wr = ({
1553
1553
  font-weight: 600;
1554
1554
  margin-bottom: 8px;
1555
1555
  color: #24292f;
1556
- `, Ge = h.div`
1556
+ `, Ze = h.div`
1557
1557
  display: flex;
1558
1558
  gap: 12px;
1559
1559
  align-items: center;
@@ -1561,7 +1561,7 @@ const wr = ({
1561
1561
  &:not(:last-child) {
1562
1562
  margin-bottom: 4px;
1563
1563
  }
1564
- `, X = h.div`
1564
+ `, J = h.div`
1565
1565
  display: flex;
1566
1566
  align-items: center;
1567
1567
  gap: 4px;
@@ -1628,14 +1628,14 @@ const wr = ({
1628
1628
  }) => {
1629
1629
  const { extensions: n } = ae(), {
1630
1630
  totalPlugins: r,
1631
- extensionPointsWithPlugins: i,
1632
- totalExtensionPoints: o,
1631
+ extensionPointsWithPlugins: o,
1632
+ totalExtensionPoints: i,
1633
1633
  simplifiedExtensionPoints: a,
1634
- legacyExtensionPoints: f,
1635
- deprecatedExtensionPoints: d
1634
+ legacyExtensionPoints: d,
1635
+ deprecatedExtensionPoints: f
1636
1636
  } = e, p = () => {
1637
1637
  try {
1638
- const l = Bt.generateFullDocumentation(
1638
+ const l = Kt.generateFullDocumentation(
1639
1639
  n,
1640
1640
  {
1641
1641
  includeUsageExamples: !0,
@@ -1651,32 +1651,32 @@ const wr = ({
1651
1651
  };
1652
1652
  return /* @__PURE__ */ g(Er, { className: t, children: [
1653
1653
  /* @__PURE__ */ c(Sr, { children: "System Health" }),
1654
- /* @__PURE__ */ g(Ge, { children: [
1655
- /* @__PURE__ */ g(X, { children: [
1654
+ /* @__PURE__ */ g(Ze, { children: [
1655
+ /* @__PURE__ */ g(J, { children: [
1656
1656
  /* @__PURE__ */ c(Cr, { status: "healthy" }),
1657
1657
  /* @__PURE__ */ g("span", { children: [
1658
1658
  r,
1659
1659
  " plugins"
1660
1660
  ] })
1661
1661
  ] }),
1662
- /* @__PURE__ */ c(X, { children: /* @__PURE__ */ g("span", { children: [
1663
- i,
1664
- "/",
1662
+ /* @__PURE__ */ c(J, { children: /* @__PURE__ */ g("span", { children: [
1665
1663
  o,
1664
+ "/",
1665
+ i,
1666
1666
  " active"
1667
1667
  ] }) })
1668
1668
  ] }),
1669
- /* @__PURE__ */ g(Ge, { children: [
1670
- /* @__PURE__ */ g(X, { children: [
1669
+ /* @__PURE__ */ g(Ze, { children: [
1670
+ /* @__PURE__ */ g(J, { children: [
1671
1671
  /* @__PURE__ */ c(we, { variant: "simplified", children: a }),
1672
1672
  /* @__PURE__ */ c("span", { children: "simplified" })
1673
1673
  ] }),
1674
- /* @__PURE__ */ g(X, { children: [
1675
- /* @__PURE__ */ c(we, { variant: "legacy", children: f }),
1674
+ /* @__PURE__ */ g(J, { children: [
1675
+ /* @__PURE__ */ c(we, { variant: "legacy", children: d }),
1676
1676
  /* @__PURE__ */ c("span", { children: "legacy" })
1677
1677
  ] }),
1678
- d > 0 && /* @__PURE__ */ g(X, { children: [
1679
- /* @__PURE__ */ c(we, { variant: "deprecated", children: d }),
1678
+ f > 0 && /* @__PURE__ */ g(J, { children: [
1679
+ /* @__PURE__ */ c(we, { variant: "deprecated", children: f }),
1680
1680
  /* @__PURE__ */ c("span", { children: "deprecated" })
1681
1681
  ] })
1682
1682
  ] }),
@@ -1764,24 +1764,24 @@ const wr = ({
1764
1764
  grid-template-columns: auto 1fr;
1765
1765
  gap: 8px 16px;
1766
1766
  font-size: 12px;
1767
- `, B = h.div`
1767
+ `, W = h.div`
1768
1768
  color: #656d76;
1769
1769
  font-weight: 500;
1770
- `, W = h.div`
1770
+ `, H = h.div`
1771
1771
  color: #24292f;
1772
1772
  `, Or = ({
1773
1773
  className: e,
1774
1774
  showLegacyExtensions: t = !0,
1775
1775
  extensionFilter: n = ""
1776
1776
  }) => {
1777
- const [r, i] = j(
1777
+ const [r, o] = j(
1778
1778
  null
1779
- ), [o, a] = j(n), { filteredExtensionPoints: f, healthStats: d, isLoading: p, error: l } = or(o, {
1779
+ ), [i, a] = j(n), { filteredExtensionPoints: d, healthStats: f, isLoading: p, error: l } = ir(i, {
1780
1780
  includeLegacyExtensions: t
1781
- }), s = f.find(
1781
+ }), s = d.find(
1782
1782
  (y) => y.id === r
1783
1783
  ), x = (y) => {
1784
- i(y);
1784
+ o(y);
1785
1785
  }, b = (y) => {
1786
1786
  a(y);
1787
1787
  };
@@ -1790,25 +1790,25 @@ const wr = ({
1790
1790
  l.message
1791
1791
  ] }) }) }) : p ? /* @__PURE__ */ c(Ee, { className: e, children: /* @__PURE__ */ c(de, { children: /* @__PURE__ */ c("div", { children: "Loading plugins..." }) }) }) : /* @__PURE__ */ g(Ee, { className: e, children: [
1792
1792
  /* @__PURE__ */ g($r, { children: [
1793
- /* @__PURE__ */ c(kr, { healthStats: d }),
1793
+ /* @__PURE__ */ c(kr, { healthStats: f }),
1794
1794
  /* @__PURE__ */ c(
1795
- ir,
1795
+ or,
1796
1796
  {
1797
- extensionPoints: f,
1797
+ extensionPoints: d,
1798
1798
  selectedExtensionId: r,
1799
1799
  onExtensionSelect: x,
1800
- searchTerm: o,
1800
+ searchTerm: i,
1801
1801
  onSearchChange: b
1802
1802
  }
1803
1803
  )
1804
1804
  ] }),
1805
- /* @__PURE__ */ c(_r, { children: s ? /* @__PURE__ */ g(K, { children: [
1805
+ /* @__PURE__ */ c(_r, { children: s ? /* @__PURE__ */ g(B, { children: [
1806
1806
  /* @__PURE__ */ g(Tr, { children: [
1807
1807
  /* @__PURE__ */ c(Rr, { children: s.displayName || s.id }),
1808
1808
  s.description && /* @__PURE__ */ c(Mr, { children: s.description })
1809
1809
  ] }),
1810
1810
  /* @__PURE__ */ g(Ar, { children: [
1811
- s.plugins.length > 0 ? /* @__PURE__ */ g(K, { children: [
1811
+ s.plugins.length > 0 ? /* @__PURE__ */ g(B, { children: [
1812
1812
  /* @__PURE__ */ g(
1813
1813
  "h5",
1814
1814
  {
@@ -1850,25 +1850,25 @@ const wr = ({
1850
1850
  s.metadata && /* @__PURE__ */ g(zr, { children: [
1851
1851
  /* @__PURE__ */ c(Fr, { children: "Extension Point Details" }),
1852
1852
  /* @__PURE__ */ g(Lr, { children: [
1853
- /* @__PURE__ */ c(B, { children: "ID:" }),
1854
- /* @__PURE__ */ c(W, { children: s.id }),
1855
- /* @__PURE__ */ c(B, { children: "Source:" }),
1856
- /* @__PURE__ */ c(W, { children: s.source }),
1857
- s.metadata.category && /* @__PURE__ */ g(K, { children: [
1858
- /* @__PURE__ */ c(B, { children: "Category:" }),
1859
- /* @__PURE__ */ c(W, { children: s.metadata.category })
1853
+ /* @__PURE__ */ c(W, { children: "ID:" }),
1854
+ /* @__PURE__ */ c(H, { children: s.id }),
1855
+ /* @__PURE__ */ c(W, { children: "Source:" }),
1856
+ /* @__PURE__ */ c(H, { children: s.source }),
1857
+ s.metadata.category && /* @__PURE__ */ g(B, { children: [
1858
+ /* @__PURE__ */ c(W, { children: "Category:" }),
1859
+ /* @__PURE__ */ c(H, { children: s.metadata.category })
1860
1860
  ] }),
1861
- s.metadata.owner && /* @__PURE__ */ g(K, { children: [
1862
- /* @__PURE__ */ c(B, { children: "Owner:" }),
1863
- /* @__PURE__ */ c(W, { children: s.metadata.owner })
1861
+ s.metadata.owner && /* @__PURE__ */ g(B, { children: [
1862
+ /* @__PURE__ */ c(W, { children: "Owner:" }),
1863
+ /* @__PURE__ */ c(H, { children: s.metadata.owner })
1864
1864
  ] }),
1865
- s.metadata.since && /* @__PURE__ */ g(K, { children: [
1866
- /* @__PURE__ */ c(B, { children: "Since:" }),
1867
- /* @__PURE__ */ c(W, { children: s.metadata.since })
1865
+ s.metadata.since && /* @__PURE__ */ g(B, { children: [
1866
+ /* @__PURE__ */ c(W, { children: "Since:" }),
1867
+ /* @__PURE__ */ c(H, { children: s.metadata.since })
1868
1868
  ] }),
1869
- s.metadata.tags && s.metadata.tags.length > 0 && /* @__PURE__ */ g(K, { children: [
1870
- /* @__PURE__ */ c(B, { children: "Tags:" }),
1871
- /* @__PURE__ */ c(W, { children: s.metadata.tags.join(", ") })
1869
+ s.metadata.tags && s.metadata.tags.length > 0 && /* @__PURE__ */ g(B, { children: [
1870
+ /* @__PURE__ */ c(W, { children: "Tags:" }),
1871
+ /* @__PURE__ */ c(H, { children: s.metadata.tags.join(", ") })
1872
1872
  ] })
1873
1873
  ] })
1874
1874
  ] })
@@ -1933,7 +1933,7 @@ const wr = ({
1933
1933
  background: #f0f0f0;
1934
1934
  color: #24292f;
1935
1935
  }
1936
- `, Kr = h.button`
1936
+ `, Br = h.button`
1937
1937
  position: fixed;
1938
1938
  ${(e) => {
1939
1939
  switch (e.position) {
@@ -1974,7 +1974,7 @@ const wr = ({
1974
1974
  &:active {
1975
1975
  transform: scale(0.95);
1976
1976
  }
1977
- `, Br = h.div`
1977
+ `, Kr = h.div`
1978
1978
  font-size: 12px;
1979
1979
  color: #656d76;
1980
1980
  margin-left: 8px;
@@ -1984,32 +1984,32 @@ const wr = ({
1984
1984
  toggleButtonPosition: n = "bottom-right",
1985
1985
  ...r
1986
1986
  }) => {
1987
- const [i, o] = j(!1);
1987
+ const [o, i] = j(!1);
1988
1988
  ee(() => {
1989
- const d = (p) => {
1989
+ const f = (p) => {
1990
1990
  const s = e.toLowerCase().split("+").map((y) => y.trim());
1991
1991
  let x = !0;
1992
1992
  s.includes("ctrl") && !p.ctrlKey && (x = !1), s.includes("shift") && !p.shiftKey && (x = !1), s.includes("alt") && !p.altKey && (x = !1), s.includes("meta") && !p.metaKey && (x = !1);
1993
1993
  const b = s.find(
1994
1994
  (y) => !["ctrl", "shift", "alt", "meta"].includes(y)
1995
1995
  );
1996
- b && p.key.toLowerCase() !== b.toLowerCase() && (x = !1), x && (p.preventDefault(), o((y) => !y));
1996
+ b && p.key.toLowerCase() !== b.toLowerCase() && (x = !1), x && (p.preventDefault(), i((y) => !y));
1997
1997
  };
1998
- return document.addEventListener("keydown", d), () => document.removeEventListener("keydown", d);
1998
+ return document.addEventListener("keydown", f), () => document.removeEventListener("keydown", f);
1999
1999
  }, [e]), ee(() => {
2000
- const d = (p) => {
2001
- p.key === "Escape" && i && o(!1);
2000
+ const f = (p) => {
2001
+ p.key === "Escape" && o && i(!1);
2002
2002
  };
2003
- return document.addEventListener("keydown", d), () => document.removeEventListener("keydown", d);
2004
- }, [i]);
2003
+ return document.addEventListener("keydown", f), () => document.removeEventListener("keydown", f);
2004
+ }, [o]);
2005
2005
  const a = () => {
2006
- o((d) => !d);
2007
- }, f = (d) => {
2008
- d.target === d.currentTarget && o(!1);
2006
+ i((f) => !f);
2007
+ }, d = (f) => {
2008
+ f.target === f.currentTarget && i(!1);
2009
2009
  };
2010
- return process.env.NODE_ENV !== "development" ? null : /* @__PURE__ */ g(K, { children: [
2010
+ return process.env.NODE_ENV !== "development" ? null : /* @__PURE__ */ g(B, { children: [
2011
2011
  t && /* @__PURE__ */ c(
2012
- Kr,
2012
+ Br,
2013
2013
  {
2014
2014
  position: n,
2015
2015
  onClick: a,
@@ -2047,16 +2047,16 @@ const wr = ({
2047
2047
  )
2048
2048
  }
2049
2049
  ),
2050
- /* @__PURE__ */ c(Ir, { visible: i, onClick: f, children: /* @__PURE__ */ g(Dr, { children: [
2050
+ /* @__PURE__ */ c(Ir, { visible: o, onClick: d, children: /* @__PURE__ */ g(Dr, { children: [
2051
2051
  /* @__PURE__ */ g(Vr, { children: [
2052
2052
  /* @__PURE__ */ g("div", { style: { display: "flex", alignItems: "center" }, children: [
2053
2053
  /* @__PURE__ */ c(jr, { children: "KOS Plugin Explorer" }),
2054
- /* @__PURE__ */ g(Br, { children: [
2054
+ /* @__PURE__ */ g(Kr, { children: [
2055
2055
  e,
2056
2056
  " to toggle"
2057
2057
  ] })
2058
2058
  ] }),
2059
- /* @__PURE__ */ c(Yr, { onClick: () => o(!1), "aria-label": "Close", children: "×" })
2059
+ /* @__PURE__ */ c(Yr, { onClick: () => i(!1), "aria-label": "Close", children: "×" })
2060
2060
  ] }),
2061
2061
  /* @__PURE__ */ c(Or, { ...r })
2062
2062
  ] }) })
@@ -2066,13 +2066,13 @@ function se(e) {
2066
2066
  const { extensions: t, getExtensions: n } = ae();
2067
2067
  return Y(() => {
2068
2068
  if (typeof e == "object" && e.id) {
2069
- const i = e;
2070
- if (i.getExtensions && t) {
2071
- const a = i.getExtensions(t);
2069
+ const o = e;
2070
+ if (o.getExtensions && t) {
2071
+ const a = o.getExtensions(t);
2072
2072
  return Object.values(a);
2073
2073
  }
2074
- const o = (t == null ? void 0 : t[i.id]) || {};
2075
- return Object.values(o);
2074
+ const i = (t == null ? void 0 : t[o.id]) || {};
2075
+ return Object.values(i);
2076
2076
  }
2077
2077
  return n(e);
2078
2078
  }, [e, t, n]);
@@ -2085,8 +2085,8 @@ function Jr(e, t) {
2085
2085
  if (t != null && t.customRanker)
2086
2086
  return t.customRanker(r);
2087
2087
  if (typeof e == "object" && t) {
2088
- let f = r;
2089
- if (t.propertyMatches && (f = f.filter(
2088
+ let d = r;
2089
+ if (t.propertyMatches && (d = d.filter(
2090
2090
  (p) => Object.entries(t.propertyMatches).every(
2091
2091
  ([l, s]) => {
2092
2092
  var x;
@@ -2094,44 +2094,44 @@ function Jr(e, t) {
2094
2094
  }
2095
2095
  )
2096
2096
  )), t.preferredModule) {
2097
- const p = f.find(
2097
+ const p = d.find(
2098
2098
  (l) => l.sectionId === t.preferredModule
2099
2099
  );
2100
2100
  if (p)
2101
2101
  return p;
2102
2102
  }
2103
- const d = f.reduce((p, l) => (p[l.id] = l, p), {});
2104
- return Se(d);
2103
+ const f = d.reduce((p, l) => (p[l.id] = l, p), {});
2104
+ return Se(f);
2105
2105
  }
2106
- const i = typeof e == "string" ? e : e.id, o = (n == null ? void 0 : n[i]) || {};
2107
- return Se(o, t == null ? void 0 : t.preferredModule);
2106
+ const o = typeof e == "string" ? e : e.id, i = (n == null ? void 0 : n[o]) || {};
2107
+ return Se(i, t == null ? void 0 : t.preferredModule);
2108
2108
  }, [e, r, n, t]);
2109
2109
  }
2110
2110
  function Qr(e) {
2111
2111
  return se(e).length > 0;
2112
2112
  }
2113
- function ei(e) {
2113
+ function eo(e) {
2114
2114
  return se(e).length;
2115
2115
  }
2116
- function ti(e, t) {
2116
+ function to(e, t) {
2117
2117
  const n = se(e);
2118
2118
  return Y(() => {
2119
2119
  let r = n.filter(t.filter);
2120
2120
  return t.sort && (r = r.sort(t.sort)), r;
2121
2121
  }, [n, t.filter, t.sort]);
2122
2122
  }
2123
- function ni(e, t) {
2124
- const n = se(e), [r, i] = j(/* @__PURE__ */ new Map()), o = Y(
2123
+ function no(e, t) {
2124
+ const n = se(e), [r, o] = j(/* @__PURE__ */ new Map()), i = Y(
2125
2125
  () => t != null && t.filter ? n.filter(t.filter) : n,
2126
2126
  [n, t == null ? void 0 : t.filter]
2127
2127
  ), a = (t == null ? void 0 : t.moduleProperty) || "module";
2128
2128
  return ee(() => {
2129
2129
  (async () => {
2130
- var d;
2131
- for (const p of o) {
2130
+ var f;
2131
+ for (const p of i) {
2132
2132
  const l = p.id;
2133
2133
  if (!r.has(l)) {
2134
- i(
2134
+ o(
2135
2135
  (s) => new Map(s).set(l, {
2136
2136
  module: null,
2137
2137
  loading: !0,
@@ -2139,11 +2139,11 @@ function ni(e, t) {
2139
2139
  })
2140
2140
  );
2141
2141
  try {
2142
- const s = ((d = p.data) == null ? void 0 : d[a]) || p[a] || `./${p.id}`, x = p.remote;
2142
+ const s = ((f = p.data) == null ? void 0 : f[a]) || p[a] || `./${p.id}`, x = p.remote;
2143
2143
  if (!x)
2144
2144
  throw new Error(`No remote specified for extension ${l}`);
2145
- const { loadRemoteModule: b } = await import("./documentation-generator-B8FuhDjB.js").then((E) => E.i), y = await b(x, s);
2146
- i(
2145
+ const { loadRemoteModule: b } = await import("./documentation-generator-BVDETA08.js").then((E) => E.i), y = await b(x, s);
2146
+ o(
2147
2147
  (E) => new Map(E).set(l, {
2148
2148
  module: y,
2149
2149
  loading: !1,
@@ -2152,7 +2152,7 @@ function ni(e, t) {
2152
2152
  );
2153
2153
  } catch (s) {
2154
2154
  const x = s instanceof Error ? s.message : "Unknown error";
2155
- i(
2155
+ o(
2156
2156
  (b) => new Map(b).set(l, {
2157
2157
  module: null,
2158
2158
  loading: !1,
@@ -2163,74 +2163,94 @@ function ni(e, t) {
2163
2163
  }
2164
2164
  }
2165
2165
  })();
2166
- }, [o, a, r]), Y(
2167
- () => o.map((f) => {
2168
- const d = r.get(f.id) || {
2166
+ }, [i, a, r]), Y(
2167
+ () => i.map((d) => {
2168
+ const f = r.get(d.id) || {
2169
2169
  module: null,
2170
2170
  loading: !0,
2171
2171
  error: null
2172
2172
  };
2173
2173
  return {
2174
- extension: f,
2175
- module: d.module,
2176
- loading: d.loading,
2177
- error: d.error
2174
+ extension: d,
2175
+ module: f.module,
2176
+ loading: f.loading,
2177
+ error: f.error
2178
2178
  };
2179
2179
  }),
2180
- [o, r]
2180
+ [i, r]
2181
2181
  );
2182
2182
  }
2183
- function ri(e) {
2184
- return Q.useMemo(() => {
2183
+ function ro(e) {
2184
+ return K.useMemo(() => {
2185
2185
  if (!e.config.hasView)
2186
2186
  return null;
2187
2187
  const t = (n) => {
2188
- const { module: r, fallback: i, ...o } = n;
2189
- return Q.createElement(pt, {
2188
+ const { module: r, fallback: o, ...i } = n;
2189
+ return K.createElement(ze, {
2190
2190
  extension: e.id,
2191
2191
  module: r,
2192
- fallback: i,
2193
- props: o
2192
+ fallback: o,
2193
+ props: i
2194
2194
  });
2195
2195
  };
2196
2196
  return t.displayName = `${e.config.displayName || e.id}.Component`, t;
2197
2197
  }, [e]);
2198
2198
  }
2199
- function ii(e) {
2199
+ function oo(e) {
2200
2200
  if (!e.config.hasView)
2201
2201
  return null;
2202
2202
  const t = (n) => {
2203
- const { module: r, fallback: i, ...o } = n;
2204
- return Q.createElement(pt, {
2203
+ const { module: r, fallback: o, ...i } = n;
2204
+ return K.createElement(ze, {
2205
2205
  extension: e.id,
2206
2206
  module: r,
2207
- fallback: i,
2208
- props: o
2207
+ fallback: o,
2208
+ props: i
2209
2209
  });
2210
2210
  };
2211
2211
  return t.displayName = `${e.config.displayName || e.id}.Component`, t;
2212
2212
  }
2213
+ function io(e) {
2214
+ return K.useMemo(() => {
2215
+ const n = Te().getExtensionPoint(e);
2216
+ if (!n)
2217
+ return console.warn(`Extension point not found: ${e}`), null;
2218
+ if (!n.config.hasView)
2219
+ return null;
2220
+ const r = (o) => {
2221
+ const { module: i, fallback: a, ...d } = o;
2222
+ return K.createElement(ze, {
2223
+ extension: e,
2224
+ module: i,
2225
+ fallback: a,
2226
+ props: d
2227
+ });
2228
+ };
2229
+ return r.displayName = `${n.config.displayName || e}.Component`, r;
2230
+ }, [e]);
2231
+ }
2213
2232
  export {
2214
- pt as DynamicComponent,
2215
- ir as ExtensionPointList,
2233
+ ze as DynamicComponent,
2234
+ or as ExtensionPointList,
2216
2235
  Xr as FloatingPluginExplorer,
2217
2236
  qr as KosPluginProvider,
2218
2237
  wr as PluginCard,
2219
2238
  Or as PluginExplorer,
2220
2239
  kr as PluginHealthDashboard,
2221
- ut as RemotesContext,
2222
- ii as createExtensionComponent,
2240
+ pt as RemotesContext,
2241
+ oo as createExtensionComponent,
2223
2242
  Jr as useBest,
2224
2243
  Wn as useDynamicComponent,
2225
- ri as useExtensionComponent,
2226
- ei as useExtensionCount,
2244
+ ro as useExtensionComponent,
2245
+ io as useExtensionComponentById,
2246
+ eo as useExtensionCount,
2227
2247
  Zr as useExtensionPoint,
2228
2248
  se as useExtensions,
2229
- or as useFilteredExtensionPoints,
2230
- ti as useFilteredExtensions,
2249
+ ir as useFilteredExtensionPoints,
2250
+ to as useFilteredExtensions,
2231
2251
  Qr as useHasExtensions,
2232
2252
  ae as useKosPluginsContext,
2233
- ni as useModules,
2253
+ no as useModules,
2234
2254
  ht as usePluginDiscovery
2235
2255
  };
2236
2256
  //# sourceMappingURL=index.js.map