ordify-chat-widget 1.0.21 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,9 +1,10 @@
1
- var ko = Object.defineProperty;
2
- var So = (e, t, r) => t in e ? ko(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var _r = (e, t, r) => So(e, typeof t != "symbol" ? t + "" : t, r);
4
- import * as hn from "react";
5
- import J, { useState as Ne, useRef as Ut, useCallback as jr, useEffect as Eo, useMemo as Co, useDebugValue as Or, createElement as ht, useContext as $o, forwardRef as mn } from "react";
6
- var Bt = { exports: {} }, Ge = {};
1
+ var Er = Object.defineProperty;
2
+ var jr = (t, n, i) => n in t ? Er(t, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[n] = i;
3
+ var yt = (t, n, i) => jr(t, typeof n != "symbol" ? n + "" : n, i);
4
+ import * as Ft from "react";
5
+ import q, { useState as de, useRef as bt, useCallback as vt, useEffect as Cr, useMemo as Rr, forwardRef as Lt, createElement as Be } from "react";
6
+ import Y from "styled-components";
7
+ var Ye = { exports: {} }, ye = {};
7
8
  /**
8
9
  * @license React
9
10
  * react-jsx-runtime.production.min.js
@@ -13,21 +14,21 @@ var Bt = { exports: {} }, Ge = {};
13
14
  * This source code is licensed under the MIT license found in the
14
15
  * LICENSE file in the root directory of this source tree.
15
16
  */
16
- var Tr;
17
- function Ro() {
18
- if (Tr) return Ge;
19
- Tr = 1;
20
- var e = J, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
21
- function d(u, p, S) {
22
- var v, m = {}, E = null, w = null;
23
- S !== void 0 && (E = "" + S), p.key !== void 0 && (E = "" + p.key), p.ref !== void 0 && (w = p.ref);
24
- for (v in p) n.call(p, v) && !l.hasOwnProperty(v) && (m[v] = p[v]);
25
- if (u && u.defaultProps) for (v in p = u.defaultProps, p) m[v] === void 0 && (m[v] = p[v]);
26
- return { $$typeof: t, type: u, key: E, ref: w, props: m, _owner: i.current };
27
- }
28
- return Ge.Fragment = r, Ge.jsx = d, Ge.jsxs = d, Ge;
29
- }
30
- var qe = {};
17
+ var kt;
18
+ function _r() {
19
+ if (kt) return ye;
20
+ kt = 1;
21
+ var t = q, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, h = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
22
+ function g(l, p, w) {
23
+ var v, m = {}, $ = null, k = null;
24
+ w !== void 0 && ($ = "" + w), p.key !== void 0 && ($ = "" + p.key), p.ref !== void 0 && (k = p.ref);
25
+ for (v in p) c.call(p, v) && !y.hasOwnProperty(v) && (m[v] = p[v]);
26
+ if (l && l.defaultProps) for (v in p = l.defaultProps, p) m[v] === void 0 && (m[v] = p[v]);
27
+ return { $$typeof: n, type: l, key: $, ref: k, props: m, _owner: h.current };
28
+ }
29
+ return ye.Fragment = i, ye.jsx = g, ye.jsxs = g, ye;
30
+ }
31
+ var be = {};
31
32
  /**
32
33
  * @license React
33
34
  * react-jsx-runtime.development.js
@@ -37,91 +38,91 @@ var qe = {};
37
38
  * This source code is licensed under the MIT license found in the
38
39
  * LICENSE file in the root directory of this source tree.
39
40
  */
40
- var Pr;
41
- function _o() {
42
- return Pr || (Pr = 1, process.env.NODE_ENV !== "production" && function() {
43
- var e = J, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), u = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), _ = Symbol.iterator, C = "@@iterator";
44
- function N(a) {
45
- if (a === null || typeof a != "object")
41
+ var wt;
42
+ function Sr() {
43
+ return wt || (wt = 1, process.env.NODE_ENV !== "production" && function() {
44
+ var t = q, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), l = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), $ = Symbol.for("react.lazy"), k = Symbol.for("react.offscreen"), L = Symbol.iterator, T = "@@iterator";
45
+ function W(e) {
46
+ if (e === null || typeof e != "object")
46
47
  return null;
47
- var f = _ && a[_] || a[C];
48
- return typeof f == "function" ? f : null;
48
+ var s = L && e[L] || e[T];
49
+ return typeof s == "function" ? s : null;
49
50
  }
50
- var o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
- function c(a) {
51
+ var r = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
52
+ function o(e) {
52
53
  {
53
- for (var f = arguments.length, k = new Array(f > 1 ? f - 1 : 0), $ = 1; $ < f; $++)
54
- k[$ - 1] = arguments[$];
55
- s("error", a, k);
54
+ for (var s = arguments.length, d = new Array(s > 1 ? s - 1 : 0), b = 1; b < s; b++)
55
+ d[b - 1] = arguments[b];
56
+ a("error", e, d);
56
57
  }
57
58
  }
58
- function s(a, f, k) {
59
+ function a(e, s, d) {
59
60
  {
60
- var $ = o.ReactDebugCurrentFrame, A = $.getStackAddendum();
61
- A !== "" && (f += "%s", k = k.concat([A]));
62
- var L = k.map(function(O) {
63
- return String(O);
61
+ var b = r.ReactDebugCurrentFrame, _ = b.getStackAddendum();
62
+ _ !== "" && (s += "%s", d = d.concat([_]));
63
+ var O = d.map(function(C) {
64
+ return String(C);
64
65
  });
65
- L.unshift("Warning: " + f), Function.prototype.apply.call(console[a], console, L);
66
+ O.unshift("Warning: " + s), Function.prototype.apply.call(console[e], console, O);
66
67
  }
67
68
  }
68
- var g = !1, h = !1, x = !1, b = !1, T = !1, M;
69
+ var x = !1, f = !1, j = !1, S = !1, I = !1, M;
69
70
  M = Symbol.for("react.module.reference");
70
- function V(a) {
71
- return !!(typeof a == "string" || typeof a == "function" || a === n || a === l || T || a === i || a === S || a === v || b || a === w || g || h || x || typeof a == "object" && a !== null && (a.$$typeof === E || a.$$typeof === m || a.$$typeof === d || a.$$typeof === u || a.$$typeof === p || // This needs to include all possible module reference object
71
+ function N(e) {
72
+ return !!(typeof e == "string" || typeof e == "function" || e === c || e === y || I || e === h || e === w || e === v || S || e === k || x || f || j || typeof e == "object" && e !== null && (e.$$typeof === $ || e.$$typeof === m || e.$$typeof === g || e.$$typeof === l || e.$$typeof === p || // This needs to include all possible module reference object
72
73
  // types supported by any Flight configuration anywhere since
73
74
  // we don't know which Flight build this will end up being used
74
75
  // with.
75
- a.$$typeof === M || a.getModuleId !== void 0));
76
+ e.$$typeof === M || e.getModuleId !== void 0));
76
77
  }
77
- function D(a, f, k) {
78
- var $ = a.displayName;
79
- if ($)
80
- return $;
81
- var A = f.displayName || f.name || "";
82
- return A !== "" ? k + "(" + A + ")" : k;
78
+ function P(e, s, d) {
79
+ var b = e.displayName;
80
+ if (b)
81
+ return b;
82
+ var _ = s.displayName || s.name || "";
83
+ return _ !== "" ? d + "(" + _ + ")" : d;
83
84
  }
84
- function Y(a) {
85
- return a.displayName || "Context";
85
+ function U(e) {
86
+ return e.displayName || "Context";
86
87
  }
87
- function P(a) {
88
- if (a == null)
88
+ function R(e) {
89
+ if (e == null)
89
90
  return null;
90
- if (typeof a.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof a == "function")
91
- return a.displayName || a.name || null;
92
- if (typeof a == "string")
93
- return a;
94
- switch (a) {
95
- case n:
91
+ if (typeof e.tag == "number" && o("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
92
+ return e.displayName || e.name || null;
93
+ if (typeof e == "string")
94
+ return e;
95
+ switch (e) {
96
+ case c:
96
97
  return "Fragment";
97
- case r:
98
+ case i:
98
99
  return "Portal";
99
- case l:
100
+ case y:
100
101
  return "Profiler";
101
- case i:
102
+ case h:
102
103
  return "StrictMode";
103
- case S:
104
+ case w:
104
105
  return "Suspense";
105
106
  case v:
106
107
  return "SuspenseList";
107
108
  }
108
- if (typeof a == "object")
109
- switch (a.$$typeof) {
110
- case u:
111
- var f = a;
112
- return Y(f) + ".Consumer";
113
- case d:
114
- var k = a;
115
- return Y(k._context) + ".Provider";
109
+ if (typeof e == "object")
110
+ switch (e.$$typeof) {
111
+ case l:
112
+ var s = e;
113
+ return U(s) + ".Consumer";
114
+ case g:
115
+ var d = e;
116
+ return U(d._context) + ".Provider";
116
117
  case p:
117
- return D(a, a.render, "ForwardRef");
118
+ return P(e, e.render, "ForwardRef");
118
119
  case m:
119
- var $ = a.displayName || null;
120
- return $ !== null ? $ : P(a.type) || "Memo";
121
- case E: {
122
- var A = a, L = A._payload, O = A._init;
120
+ var b = e.displayName || null;
121
+ return b !== null ? b : R(e.type) || "Memo";
122
+ case $: {
123
+ var _ = e, O = _._payload, C = _._init;
123
124
  try {
124
- return P(O(L));
125
+ return R(C(O));
125
126
  } catch {
126
127
  return null;
127
128
  }
@@ -129,556 +130,556 @@ function _o() {
129
130
  }
130
131
  return null;
131
132
  }
132
- var Q = Object.assign, H = 0, ae, ee, ne, G, ie, oe, F;
133
- function q() {
133
+ var V = Object.assign, F = 0, J, G, Z, ae, le, oe, X;
134
+ function K() {
134
135
  }
135
- q.__reactDisabledLog = !0;
136
- function se() {
136
+ K.__reactDisabledLog = !0;
137
+ function te() {
137
138
  {
138
- if (H === 0) {
139
- ae = console.log, ee = console.info, ne = console.warn, G = console.error, ie = console.group, oe = console.groupCollapsed, F = console.groupEnd;
140
- var a = {
139
+ if (F === 0) {
140
+ J = console.log, G = console.info, Z = console.warn, ae = console.error, le = console.group, oe = console.groupCollapsed, X = console.groupEnd;
141
+ var e = {
141
142
  configurable: !0,
142
143
  enumerable: !0,
143
- value: q,
144
+ value: K,
144
145
  writable: !0
145
146
  };
146
147
  Object.defineProperties(console, {
147
- info: a,
148
- log: a,
149
- warn: a,
150
- error: a,
151
- group: a,
152
- groupCollapsed: a,
153
- groupEnd: a
148
+ info: e,
149
+ log: e,
150
+ warn: e,
151
+ error: e,
152
+ group: e,
153
+ groupCollapsed: e,
154
+ groupEnd: e
154
155
  });
155
156
  }
156
- H++;
157
+ F++;
157
158
  }
158
159
  }
159
- function me() {
160
+ function he() {
160
161
  {
161
- if (H--, H === 0) {
162
- var a = {
162
+ if (F--, F === 0) {
163
+ var e = {
163
164
  configurable: !0,
164
165
  enumerable: !0,
165
166
  writable: !0
166
167
  };
167
168
  Object.defineProperties(console, {
168
- log: Q({}, a, {
169
- value: ae
169
+ log: V({}, e, {
170
+ value: J
170
171
  }),
171
- info: Q({}, a, {
172
- value: ee
172
+ info: V({}, e, {
173
+ value: G
173
174
  }),
174
- warn: Q({}, a, {
175
- value: ne
175
+ warn: V({}, e, {
176
+ value: Z
176
177
  }),
177
- error: Q({}, a, {
178
- value: G
178
+ error: V({}, e, {
179
+ value: ae
179
180
  }),
180
- group: Q({}, a, {
181
- value: ie
181
+ group: V({}, e, {
182
+ value: le
182
183
  }),
183
- groupCollapsed: Q({}, a, {
184
+ groupCollapsed: V({}, e, {
184
185
  value: oe
185
186
  }),
186
- groupEnd: Q({}, a, {
187
- value: F
187
+ groupEnd: V({}, e, {
188
+ value: X
188
189
  })
189
190
  });
190
191
  }
191
- H < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
+ F < 0 && o("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
193
  }
193
194
  }
194
- var ue = o.ReactCurrentDispatcher, ge;
195
- function de(a, f, k) {
195
+ var me = r.ReactCurrentDispatcher, ge;
196
+ function we(e, s, d) {
196
197
  {
197
198
  if (ge === void 0)
198
199
  try {
199
200
  throw Error();
200
- } catch (A) {
201
- var $ = A.stack.trim().match(/\n( *(at )?)/);
202
- ge = $ && $[1] || "";
201
+ } catch (_) {
202
+ var b = _.stack.trim().match(/\n( *(at )?)/);
203
+ ge = b && b[1] || "";
203
204
  }
204
205
  return `
205
- ` + ge + a;
206
+ ` + ge + e;
206
207
  }
207
208
  }
208
- var pe = !1, we;
209
+ var $e = !1, Ee;
209
210
  {
210
- var Pe = typeof WeakMap == "function" ? WeakMap : Map;
211
- we = new Pe();
211
+ var Xt = typeof WeakMap == "function" ? WeakMap : Map;
212
+ Ee = new Xt();
212
213
  }
213
- function fe(a, f) {
214
- if (!a || pe)
214
+ function nt(e, s) {
215
+ if (!e || $e)
215
216
  return "";
216
217
  {
217
- var k = we.get(a);
218
- if (k !== void 0)
219
- return k;
218
+ var d = Ee.get(e);
219
+ if (d !== void 0)
220
+ return d;
220
221
  }
221
- var $;
222
- pe = !0;
223
- var A = Error.prepareStackTrace;
222
+ var b;
223
+ $e = !0;
224
+ var _ = Error.prepareStackTrace;
224
225
  Error.prepareStackTrace = void 0;
225
- var L;
226
- L = ue.current, ue.current = null, se();
226
+ var O;
227
+ O = me.current, me.current = null, te();
227
228
  try {
228
- if (f) {
229
- var O = function() {
229
+ if (s) {
230
+ var C = function() {
230
231
  throw Error();
231
232
  };
232
- if (Object.defineProperty(O.prototype, "props", {
233
+ if (Object.defineProperty(C.prototype, "props", {
233
234
  set: function() {
234
235
  throw Error();
235
236
  }
236
237
  }), typeof Reflect == "object" && Reflect.construct) {
237
238
  try {
238
- Reflect.construct(O, []);
239
- } catch (te) {
240
- $ = te;
239
+ Reflect.construct(C, []);
240
+ } catch (B) {
241
+ b = B;
241
242
  }
242
- Reflect.construct(a, [], O);
243
+ Reflect.construct(e, [], C);
243
244
  } else {
244
245
  try {
245
- O.call();
246
- } catch (te) {
247
- $ = te;
246
+ C.call();
247
+ } catch (B) {
248
+ b = B;
248
249
  }
249
- a.call(O.prototype);
250
+ e.call(C.prototype);
250
251
  }
251
252
  } else {
252
253
  try {
253
254
  throw Error();
254
- } catch (te) {
255
- $ = te;
255
+ } catch (B) {
256
+ b = B;
256
257
  }
257
- a();
258
+ e();
258
259
  }
259
- } catch (te) {
260
- if (te && $ && typeof te.stack == "string") {
261
- for (var j = te.stack.split(`
262
- `), X = $.stack.split(`
263
- `), U = j.length - 1, B = X.length - 1; U >= 1 && B >= 0 && j[U] !== X[B]; )
264
- B--;
265
- for (; U >= 1 && B >= 0; U--, B--)
266
- if (j[U] !== X[B]) {
267
- if (U !== 1 || B !== 1)
260
+ } catch (B) {
261
+ if (B && b && typeof B.stack == "string") {
262
+ for (var E = B.stack.split(`
263
+ `), z = b.stack.split(`
264
+ `), A = E.length - 1, D = z.length - 1; A >= 1 && D >= 0 && E[A] !== z[D]; )
265
+ D--;
266
+ for (; A >= 1 && D >= 0; A--, D--)
267
+ if (E[A] !== z[D]) {
268
+ if (A !== 1 || D !== 1)
268
269
  do
269
- if (U--, B--, B < 0 || j[U] !== X[B]) {
270
- var ce = `
271
- ` + j[U].replace(" at new ", " at ");
272
- return a.displayName && ce.includes("<anonymous>") && (ce = ce.replace("<anonymous>", a.displayName)), typeof a == "function" && we.set(a, ce), ce;
270
+ if (A--, D--, D < 0 || E[A] !== z[D]) {
271
+ var H = `
272
+ ` + E[A].replace(" at new ", " at ");
273
+ return e.displayName && H.includes("<anonymous>") && (H = H.replace("<anonymous>", e.displayName)), typeof e == "function" && Ee.set(e, H), H;
273
274
  }
274
- while (U >= 1 && B >= 0);
275
+ while (A >= 1 && D >= 0);
275
276
  break;
276
277
  }
277
278
  }
278
279
  } finally {
279
- pe = !1, ue.current = L, me(), Error.prepareStackTrace = A;
280
+ $e = !1, me.current = O, he(), Error.prepareStackTrace = _;
280
281
  }
281
- var Ie = a ? a.displayName || a.name : "", Ce = Ie ? de(Ie) : "";
282
- return typeof a == "function" && we.set(a, Ce), Ce;
282
+ var ue = e ? e.displayName || e.name : "", ie = ue ? we(ue) : "";
283
+ return typeof e == "function" && Ee.set(e, ie), ie;
283
284
  }
284
- function Xn(a, f, k) {
285
- return fe(a, !1);
285
+ function Qt(e, s, d) {
286
+ return nt(e, !1);
286
287
  }
287
- function Zn(a) {
288
- var f = a.prototype;
289
- return !!(f && f.isReactComponent);
288
+ function er(e) {
289
+ var s = e.prototype;
290
+ return !!(s && s.isReactComponent);
290
291
  }
291
- function et(a, f, k) {
292
- if (a == null)
292
+ function je(e, s, d) {
293
+ if (e == null)
293
294
  return "";
294
- if (typeof a == "function")
295
- return fe(a, Zn(a));
296
- if (typeof a == "string")
297
- return de(a);
298
- switch (a) {
299
- case S:
300
- return de("Suspense");
295
+ if (typeof e == "function")
296
+ return nt(e, er(e));
297
+ if (typeof e == "string")
298
+ return we(e);
299
+ switch (e) {
300
+ case w:
301
+ return we("Suspense");
301
302
  case v:
302
- return de("SuspenseList");
303
+ return we("SuspenseList");
303
304
  }
304
- if (typeof a == "object")
305
- switch (a.$$typeof) {
305
+ if (typeof e == "object")
306
+ switch (e.$$typeof) {
306
307
  case p:
307
- return Xn(a.render);
308
+ return Qt(e.render);
308
309
  case m:
309
- return et(a.type, f, k);
310
- case E: {
311
- var $ = a, A = $._payload, L = $._init;
310
+ return je(e.type, s, d);
311
+ case $: {
312
+ var b = e, _ = b._payload, O = b._init;
312
313
  try {
313
- return et(L(A), f, k);
314
+ return je(O(_), s, d);
314
315
  } catch {
315
316
  }
316
317
  }
317
318
  }
318
319
  return "";
319
320
  }
320
- var Ke = Object.prototype.hasOwnProperty, hr = {}, mr = o.ReactDebugCurrentFrame;
321
- function tt(a) {
322
- if (a) {
323
- var f = a._owner, k = et(a.type, a._source, f ? f.type : null);
324
- mr.setExtraStackFrame(k);
321
+ var xe = Object.prototype.hasOwnProperty, at = {}, ot = r.ReactDebugCurrentFrame;
322
+ function Ce(e) {
323
+ if (e) {
324
+ var s = e._owner, d = je(e.type, e._source, s ? s.type : null);
325
+ ot.setExtraStackFrame(d);
325
326
  } else
326
- mr.setExtraStackFrame(null);
327
+ ot.setExtraStackFrame(null);
327
328
  }
328
- function Qn(a, f, k, $, A) {
329
+ function tr(e, s, d, b, _) {
329
330
  {
330
- var L = Function.call.bind(Ke);
331
- for (var O in a)
332
- if (L(a, O)) {
333
- var j = void 0;
331
+ var O = Function.call.bind(xe);
332
+ for (var C in e)
333
+ if (O(e, C)) {
334
+ var E = void 0;
334
335
  try {
335
- if (typeof a[O] != "function") {
336
- var X = Error(($ || "React class") + ": " + k + " type `" + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[O] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
- throw X.name = "Invariant Violation", X;
336
+ if (typeof e[C] != "function") {
337
+ var z = Error((b || "React class") + ": " + d + " type `" + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[C] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
338
+ throw z.name = "Invariant Violation", z;
338
339
  }
339
- j = a[O](f, O, $, k, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
- } catch (U) {
341
- j = U;
340
+ E = e[C](s, C, b, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
341
+ } catch (A) {
342
+ E = A;
342
343
  }
343
- j && !(j instanceof Error) && (tt(A), c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", $ || "React class", k, O, typeof j), tt(null)), j instanceof Error && !(j.message in hr) && (hr[j.message] = !0, tt(A), c("Failed %s type: %s", k, j.message), tt(null));
344
+ E && !(E instanceof Error) && (Ce(_), o("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", b || "React class", d, C, typeof E), Ce(null)), E instanceof Error && !(E.message in at) && (at[E.message] = !0, Ce(_), o("Failed %s type: %s", d, E.message), Ce(null));
344
345
  }
345
346
  }
346
347
  }
347
- var eo = Array.isArray;
348
- function $t(a) {
349
- return eo(a);
348
+ var rr = Array.isArray;
349
+ function Pe(e) {
350
+ return rr(e);
350
351
  }
351
- function to(a) {
352
+ function nr(e) {
352
353
  {
353
- var f = typeof Symbol == "function" && Symbol.toStringTag, k = f && a[Symbol.toStringTag] || a.constructor.name || "Object";
354
- return k;
354
+ var s = typeof Symbol == "function" && Symbol.toStringTag, d = s && e[Symbol.toStringTag] || e.constructor.name || "Object";
355
+ return d;
355
356
  }
356
357
  }
357
- function ro(a) {
358
+ function ar(e) {
358
359
  try {
359
- return gr(a), !1;
360
+ return it(e), !1;
360
361
  } catch {
361
362
  return !0;
362
363
  }
363
364
  }
364
- function gr(a) {
365
- return "" + a;
365
+ function it(e) {
366
+ return "" + e;
366
367
  }
367
- function yr(a) {
368
- if (ro(a))
369
- return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", to(a)), gr(a);
368
+ function st(e) {
369
+ if (ar(e))
370
+ return o("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", nr(e)), it(e);
370
371
  }
371
- var vr = o.ReactCurrentOwner, no = {
372
+ var lt = r.ReactCurrentOwner, or = {
372
373
  key: !0,
373
374
  ref: !0,
374
375
  __self: !0,
375
376
  __source: !0
376
- }, xr, br;
377
- function oo(a) {
378
- if (Ke.call(a, "ref")) {
379
- var f = Object.getOwnPropertyDescriptor(a, "ref").get;
380
- if (f && f.isReactWarning)
377
+ }, ct, ut;
378
+ function ir(e) {
379
+ if (xe.call(e, "ref")) {
380
+ var s = Object.getOwnPropertyDescriptor(e, "ref").get;
381
+ if (s && s.isReactWarning)
381
382
  return !1;
382
383
  }
383
- return a.ref !== void 0;
384
+ return e.ref !== void 0;
384
385
  }
385
- function ao(a) {
386
- if (Ke.call(a, "key")) {
387
- var f = Object.getOwnPropertyDescriptor(a, "key").get;
388
- if (f && f.isReactWarning)
386
+ function sr(e) {
387
+ if (xe.call(e, "key")) {
388
+ var s = Object.getOwnPropertyDescriptor(e, "key").get;
389
+ if (s && s.isReactWarning)
389
390
  return !1;
390
391
  }
391
- return a.key !== void 0;
392
+ return e.key !== void 0;
392
393
  }
393
- function io(a, f) {
394
- typeof a.ref == "string" && vr.current;
394
+ function lr(e, s) {
395
+ typeof e.ref == "string" && lt.current;
395
396
  }
396
- function so(a, f) {
397
+ function cr(e, s) {
397
398
  {
398
- var k = function() {
399
- xr || (xr = !0, c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
399
+ var d = function() {
400
+ ct || (ct = !0, o("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", s));
400
401
  };
401
- k.isReactWarning = !0, Object.defineProperty(a, "key", {
402
- get: k,
402
+ d.isReactWarning = !0, Object.defineProperty(e, "key", {
403
+ get: d,
403
404
  configurable: !0
404
405
  });
405
406
  }
406
407
  }
407
- function co(a, f) {
408
+ function ur(e, s) {
408
409
  {
409
- var k = function() {
410
- br || (br = !0, c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
410
+ var d = function() {
411
+ ut || (ut = !0, o("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", s));
411
412
  };
412
- k.isReactWarning = !0, Object.defineProperty(a, "ref", {
413
- get: k,
413
+ d.isReactWarning = !0, Object.defineProperty(e, "ref", {
414
+ get: d,
414
415
  configurable: !0
415
416
  });
416
417
  }
417
418
  }
418
- var lo = function(a, f, k, $, A, L, O) {
419
- var j = {
419
+ var dr = function(e, s, d, b, _, O, C) {
420
+ var E = {
420
421
  // This tag allows us to uniquely identify this as a React Element
421
- $$typeof: t,
422
+ $$typeof: n,
422
423
  // Built-in properties that belong on the element
423
- type: a,
424
- key: f,
425
- ref: k,
426
- props: O,
424
+ type: e,
425
+ key: s,
426
+ ref: d,
427
+ props: C,
427
428
  // Record the component responsible for creating this element.
428
- _owner: L
429
+ _owner: O
429
430
  };
430
- return j._store = {}, Object.defineProperty(j._store, "validated", {
431
+ return E._store = {}, Object.defineProperty(E._store, "validated", {
431
432
  configurable: !1,
432
433
  enumerable: !1,
433
434
  writable: !0,
434
435
  value: !1
435
- }), Object.defineProperty(j, "_self", {
436
+ }), Object.defineProperty(E, "_self", {
436
437
  configurable: !1,
437
438
  enumerable: !1,
438
439
  writable: !1,
439
- value: $
440
- }), Object.defineProperty(j, "_source", {
440
+ value: b
441
+ }), Object.defineProperty(E, "_source", {
441
442
  configurable: !1,
442
443
  enumerable: !1,
443
444
  writable: !1,
444
- value: A
445
- }), Object.freeze && (Object.freeze(j.props), Object.freeze(j)), j;
445
+ value: _
446
+ }), Object.freeze && (Object.freeze(E.props), Object.freeze(E)), E;
446
447
  };
447
- function uo(a, f, k, $, A) {
448
+ function fr(e, s, d, b, _) {
448
449
  {
449
- var L, O = {}, j = null, X = null;
450
- k !== void 0 && (yr(k), j = "" + k), ao(f) && (yr(f.key), j = "" + f.key), oo(f) && (X = f.ref, io(f, A));
451
- for (L in f)
452
- Ke.call(f, L) && !no.hasOwnProperty(L) && (O[L] = f[L]);
453
- if (a && a.defaultProps) {
454
- var U = a.defaultProps;
455
- for (L in U)
456
- O[L] === void 0 && (O[L] = U[L]);
450
+ var O, C = {}, E = null, z = null;
451
+ d !== void 0 && (st(d), E = "" + d), sr(s) && (st(s.key), E = "" + s.key), ir(s) && (z = s.ref, lr(s, _));
452
+ for (O in s)
453
+ xe.call(s, O) && !or.hasOwnProperty(O) && (C[O] = s[O]);
454
+ if (e && e.defaultProps) {
455
+ var A = e.defaultProps;
456
+ for (O in A)
457
+ C[O] === void 0 && (C[O] = A[O]);
457
458
  }
458
- if (j || X) {
459
- var B = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
460
- j && so(O, B), X && co(O, B);
459
+ if (E || z) {
460
+ var D = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
461
+ E && cr(C, D), z && ur(C, D);
461
462
  }
462
- return lo(a, j, X, A, $, vr.current, O);
463
+ return dr(e, E, z, _, b, lt.current, C);
463
464
  }
464
465
  }
465
- var Rt = o.ReactCurrentOwner, wr = o.ReactDebugCurrentFrame;
466
- function Ae(a) {
467
- if (a) {
468
- var f = a._owner, k = et(a.type, a._source, f ? f.type : null);
469
- wr.setExtraStackFrame(k);
466
+ var Ie = r.ReactCurrentOwner, dt = r.ReactDebugCurrentFrame;
467
+ function ce(e) {
468
+ if (e) {
469
+ var s = e._owner, d = je(e.type, e._source, s ? s.type : null);
470
+ dt.setExtraStackFrame(d);
470
471
  } else
471
- wr.setExtraStackFrame(null);
472
+ dt.setExtraStackFrame(null);
472
473
  }
473
- var _t;
474
- _t = !1;
475
- function jt(a) {
476
- return typeof a == "object" && a !== null && a.$$typeof === t;
474
+ var Ae;
475
+ Ae = !1;
476
+ function Me(e) {
477
+ return typeof e == "object" && e !== null && e.$$typeof === n;
477
478
  }
478
- function kr() {
479
+ function ft() {
479
480
  {
480
- if (Rt.current) {
481
- var a = P(Rt.current.type);
482
- if (a)
481
+ if (Ie.current) {
482
+ var e = R(Ie.current.type);
483
+ if (e)
483
484
  return `
484
485
 
485
- Check the render method of \`` + a + "`.";
486
+ Check the render method of \`` + e + "`.";
486
487
  }
487
488
  return "";
488
489
  }
489
490
  }
490
- function po(a) {
491
+ function pr(e) {
491
492
  return "";
492
493
  }
493
- var Sr = {};
494
- function fo(a) {
494
+ var pt = {};
495
+ function hr(e) {
495
496
  {
496
- var f = kr();
497
- if (!f) {
498
- var k = typeof a == "string" ? a : a.displayName || a.name;
499
- k && (f = `
497
+ var s = ft();
498
+ if (!s) {
499
+ var d = typeof e == "string" ? e : e.displayName || e.name;
500
+ d && (s = `
500
501
 
501
- Check the top-level render call using <` + k + ">.");
502
+ Check the top-level render call using <` + d + ">.");
502
503
  }
503
- return f;
504
+ return s;
504
505
  }
505
506
  }
506
- function Er(a, f) {
507
+ function ht(e, s) {
507
508
  {
508
- if (!a._store || a._store.validated || a.key != null)
509
+ if (!e._store || e._store.validated || e.key != null)
509
510
  return;
510
- a._store.validated = !0;
511
- var k = fo(f);
512
- if (Sr[k])
511
+ e._store.validated = !0;
512
+ var d = hr(s);
513
+ if (pt[d])
513
514
  return;
514
- Sr[k] = !0;
515
- var $ = "";
516
- a && a._owner && a._owner !== Rt.current && ($ = " It was passed a child from " + P(a._owner.type) + "."), Ae(a), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', k, $), Ae(null);
515
+ pt[d] = !0;
516
+ var b = "";
517
+ e && e._owner && e._owner !== Ie.current && (b = " It was passed a child from " + R(e._owner.type) + "."), ce(e), o('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, b), ce(null);
517
518
  }
518
519
  }
519
- function Cr(a, f) {
520
+ function mt(e, s) {
520
521
  {
521
- if (typeof a != "object")
522
+ if (typeof e != "object")
522
523
  return;
523
- if ($t(a))
524
- for (var k = 0; k < a.length; k++) {
525
- var $ = a[k];
526
- jt($) && Er($, f);
524
+ if (Pe(e))
525
+ for (var d = 0; d < e.length; d++) {
526
+ var b = e[d];
527
+ Me(b) && ht(b, s);
527
528
  }
528
- else if (jt(a))
529
- a._store && (a._store.validated = !0);
530
- else if (a) {
531
- var A = N(a);
532
- if (typeof A == "function" && A !== a.entries)
533
- for (var L = A.call(a), O; !(O = L.next()).done; )
534
- jt(O.value) && Er(O.value, f);
529
+ else if (Me(e))
530
+ e._store && (e._store.validated = !0);
531
+ else if (e) {
532
+ var _ = W(e);
533
+ if (typeof _ == "function" && _ !== e.entries)
534
+ for (var O = _.call(e), C; !(C = O.next()).done; )
535
+ Me(C.value) && ht(C.value, s);
535
536
  }
536
537
  }
537
538
  }
538
- function ho(a) {
539
+ function mr(e) {
539
540
  {
540
- var f = a.type;
541
- if (f == null || typeof f == "string")
541
+ var s = e.type;
542
+ if (s == null || typeof s == "string")
542
543
  return;
543
- var k;
544
- if (typeof f == "function")
545
- k = f.propTypes;
546
- else if (typeof f == "object" && (f.$$typeof === p || // Note: Memo only checks outer props here.
544
+ var d;
545
+ if (typeof s == "function")
546
+ d = s.propTypes;
547
+ else if (typeof s == "object" && (s.$$typeof === p || // Note: Memo only checks outer props here.
547
548
  // Inner props are checked in the reconciler.
548
- f.$$typeof === m))
549
- k = f.propTypes;
549
+ s.$$typeof === m))
550
+ d = s.propTypes;
550
551
  else
551
552
  return;
552
- if (k) {
553
- var $ = P(f);
554
- Qn(k, a.props, "prop", $, a);
555
- } else if (f.PropTypes !== void 0 && !_t) {
556
- _t = !0;
557
- var A = P(f);
558
- c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", A || "Unknown");
553
+ if (d) {
554
+ var b = R(s);
555
+ tr(d, e.props, "prop", b, e);
556
+ } else if (s.PropTypes !== void 0 && !Ae) {
557
+ Ae = !0;
558
+ var _ = R(s);
559
+ o("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _ || "Unknown");
559
560
  }
560
- typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
561
+ typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && o("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
561
562
  }
562
563
  }
563
- function mo(a) {
564
+ function gr(e) {
564
565
  {
565
- for (var f = Object.keys(a.props), k = 0; k < f.length; k++) {
566
- var $ = f[k];
567
- if ($ !== "children" && $ !== "key") {
568
- Ae(a), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", $), Ae(null);
566
+ for (var s = Object.keys(e.props), d = 0; d < s.length; d++) {
567
+ var b = s[d];
568
+ if (b !== "children" && b !== "key") {
569
+ ce(e), o("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", b), ce(null);
569
570
  break;
570
571
  }
571
572
  }
572
- a.ref !== null && (Ae(a), c("Invalid attribute `ref` supplied to `React.Fragment`."), Ae(null));
573
+ e.ref !== null && (ce(e), o("Invalid attribute `ref` supplied to `React.Fragment`."), ce(null));
573
574
  }
574
575
  }
575
- var $r = {};
576
- function Rr(a, f, k, $, A, L) {
576
+ var gt = {};
577
+ function xt(e, s, d, b, _, O) {
577
578
  {
578
- var O = V(a);
579
- if (!O) {
580
- var j = "";
581
- (a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (j += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
582
- var X = po();
583
- X ? j += X : j += kr();
584
- var U;
585
- a === null ? U = "null" : $t(a) ? U = "array" : a !== void 0 && a.$$typeof === t ? (U = "<" + (P(a.type) || "Unknown") + " />", j = " Did you accidentally export a JSX literal instead of a component?") : U = typeof a, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", U, j);
579
+ var C = N(e);
580
+ if (!C) {
581
+ var E = "";
582
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (E += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
583
+ var z = pr();
584
+ z ? E += z : E += ft();
585
+ var A;
586
+ e === null ? A = "null" : Pe(e) ? A = "array" : e !== void 0 && e.$$typeof === n ? (A = "<" + (R(e.type) || "Unknown") + " />", E = " Did you accidentally export a JSX literal instead of a component?") : A = typeof e, o("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", A, E);
586
587
  }
587
- var B = uo(a, f, k, A, L);
588
- if (B == null)
589
- return B;
590
- if (O) {
591
- var ce = f.children;
592
- if (ce !== void 0)
593
- if ($)
594
- if ($t(ce)) {
595
- for (var Ie = 0; Ie < ce.length; Ie++)
596
- Cr(ce[Ie], a);
597
- Object.freeze && Object.freeze(ce);
588
+ var D = fr(e, s, d, _, O);
589
+ if (D == null)
590
+ return D;
591
+ if (C) {
592
+ var H = s.children;
593
+ if (H !== void 0)
594
+ if (b)
595
+ if (Pe(H)) {
596
+ for (var ue = 0; ue < H.length; ue++)
597
+ mt(H[ue], e);
598
+ Object.freeze && Object.freeze(H);
598
599
  } else
599
- c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
600
+ o("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
600
601
  else
601
- Cr(ce, a);
602
+ mt(H, e);
602
603
  }
603
- if (Ke.call(f, "key")) {
604
- var Ce = P(a), te = Object.keys(f).filter(function(wo) {
605
- return wo !== "key";
606
- }), Ot = te.length > 0 ? "{key: someKey, " + te.join(": ..., ") + ": ...}" : "{key: someKey}";
607
- if (!$r[Ce + Ot]) {
608
- var bo = te.length > 0 ? "{" + te.join(": ..., ") + ": ...}" : "{}";
609
- c(`A props object containing a "key" prop is being spread into JSX:
604
+ if (xe.call(s, "key")) {
605
+ var ie = R(e), B = Object.keys(s).filter(function(wr) {
606
+ return wr !== "key";
607
+ }), De = B.length > 0 ? "{key: someKey, " + B.join(": ..., ") + ": ...}" : "{key: someKey}";
608
+ if (!gt[ie + De]) {
609
+ var kr = B.length > 0 ? "{" + B.join(": ..., ") + ": ...}" : "{}";
610
+ o(`A props object containing a "key" prop is being spread into JSX:
610
611
  let props = %s;
611
612
  <%s {...props} />
612
613
  React keys must be passed directly to JSX without using spread:
613
614
  let props = %s;
614
- <%s key={someKey} {...props} />`, Ot, Ce, bo, Ce), $r[Ce + Ot] = !0;
615
+ <%s key={someKey} {...props} />`, De, ie, kr, ie), gt[ie + De] = !0;
615
616
  }
616
617
  }
617
- return a === n ? mo(B) : ho(B), B;
618
+ return e === c ? gr(D) : mr(D), D;
618
619
  }
619
620
  }
620
- function go(a, f, k) {
621
- return Rr(a, f, k, !0);
621
+ function xr(e, s, d) {
622
+ return xt(e, s, d, !0);
622
623
  }
623
- function yo(a, f, k) {
624
- return Rr(a, f, k, !1);
624
+ function yr(e, s, d) {
625
+ return xt(e, s, d, !1);
625
626
  }
626
- var vo = yo, xo = go;
627
- qe.Fragment = n, qe.jsx = vo, qe.jsxs = xo;
628
- }()), qe;
627
+ var br = yr, vr = xr;
628
+ be.Fragment = c, be.jsx = br, be.jsxs = vr;
629
+ }()), be;
629
630
  }
630
- process.env.NODE_ENV === "production" ? Bt.exports = Ro() : Bt.exports = _o();
631
- var y = Bt.exports;
632
- function Ar() {
631
+ process.env.NODE_ENV === "production" ? Ye.exports = _r() : Ye.exports = Sr();
632
+ var u = Ye.exports;
633
+ function Et() {
633
634
  return Math.random().toString(36).substr(2, 9);
634
635
  }
635
- function Xt(e) {
636
+ function Ke(t) {
636
637
  return new Intl.DateTimeFormat("en-US", {
637
638
  hour: "2-digit",
638
639
  minute: "2-digit",
639
640
  hour12: !0
640
- }).format(e);
641
+ }).format(t);
641
642
  }
642
- function us(e, t) {
643
- let r;
644
- return (...n) => {
645
- clearTimeout(r), r = setTimeout(() => e(...n), t);
643
+ function oa(t, n) {
644
+ let i;
645
+ return (...c) => {
646
+ clearTimeout(i), i = setTimeout(() => t(...c), n);
646
647
  };
647
648
  }
648
- function ds(e, t) {
649
- let r;
650
- return (...n) => {
651
- r || (e(...n), r = !0, setTimeout(() => r = !1, t));
649
+ function ia(t, n) {
650
+ let i;
651
+ return (...c) => {
652
+ i || (t(...c), i = !0, setTimeout(() => i = !1, n));
652
653
  };
653
654
  }
654
- class jo {
655
- constructor(t) {
656
- _r(this, "config");
657
- this.config = t;
655
+ class Tr {
656
+ constructor(n) {
657
+ yt(this, "config");
658
+ this.config = n;
658
659
  }
659
- async sendMessage(t, r) {
660
- const n = `${this.config.apiBaseUrl}/chat/agents/${this.config.agentId}`, i = {
661
- message: t,
662
- sessionId: r
663
- }, l = await fetch(n, {
660
+ async sendMessage(n, i) {
661
+ const c = `${this.config.apiBaseUrl}/chat/agents/${this.config.agentId}`, h = {
662
+ message: n,
663
+ sessionId: i
664
+ }, y = await fetch(c, {
664
665
  method: "POST",
665
666
  headers: {
666
667
  "Content-Type": "application/json",
667
668
  "api-key": this.config.apiKey,
668
669
  accept: "application/json"
669
670
  },
670
- body: JSON.stringify(i)
671
+ body: JSON.stringify(h)
671
672
  });
672
- if (!l.ok) {
673
- const d = await l.json();
674
- throw new Error(`API Error: ${d.detail}`);
673
+ if (!y.ok) {
674
+ const g = await y.json();
675
+ throw new Error(`API Error: ${g.detail}`);
675
676
  }
676
- if (!l.body)
677
+ if (!y.body)
677
678
  throw new Error("No response body");
678
- return l.body;
679
+ return y.body;
679
680
  }
680
681
  async createSession() {
681
- const t = `${this.config.apiBaseUrl}/sessions`, r = await fetch(t, {
682
+ const n = `${this.config.apiBaseUrl}/sessions`, i = await fetch(n, {
682
683
  method: "POST",
683
684
  headers: {
684
685
  "Content-Type": "application/json",
@@ -693,527 +694,527 @@ class jo {
693
694
  }
694
695
  })
695
696
  });
696
- if (!r.ok) {
697
- const n = await r.json();
698
- throw new Error(`API Error: ${n.detail}`);
697
+ if (!i.ok) {
698
+ const c = await i.json();
699
+ throw new Error(`API Error: ${c.detail}`);
699
700
  }
700
- return r.json();
701
+ return i.json();
701
702
  }
702
703
  async getAgents() {
703
- const t = `${this.config.apiBaseUrl}/chat/agents`, r = await fetch(t, {
704
+ const n = `${this.config.apiBaseUrl}/chat/agents`, i = await fetch(n, {
704
705
  method: "GET",
705
706
  headers: {
706
707
  "api-key": this.config.apiKey,
707
708
  accept: "application/json"
708
709
  }
709
710
  });
710
- if (!r.ok) {
711
- const i = await r.json();
712
- throw new Error(`API Error: ${i.detail}`);
711
+ if (!i.ok) {
712
+ const h = await i.json();
713
+ throw new Error(`API Error: ${h.detail}`);
713
714
  }
714
- return (await r.json()).agents || [];
715
+ return (await i.json()).agents || [];
715
716
  }
716
717
  async getSessions() {
717
- const t = `${this.config.apiBaseUrl}/sessions`, r = await fetch(t, {
718
+ const n = `${this.config.apiBaseUrl}/sessions`, i = await fetch(n, {
718
719
  method: "GET",
719
720
  headers: {
720
721
  "api-key": this.config.apiKey,
721
722
  accept: "application/json"
722
723
  }
723
724
  });
724
- if (!r.ok) {
725
- const n = await r.json();
726
- throw new Error(`API Error: ${n.detail}`);
725
+ if (!i.ok) {
726
+ const c = await i.json();
727
+ throw new Error(`API Error: ${c.detail}`);
727
728
  }
728
- return r.json();
729
+ return i.json();
729
730
  }
730
731
  }
731
- function Oo(e) {
732
+ function Or(t) {
732
733
  try {
733
- if (e.startsWith("data: ")) {
734
- const t = e.slice(6);
735
- return t === "[DONE]" ? { text: "", sessionId: "", type: "done" } : JSON.parse(t);
734
+ if (t.startsWith("data: ")) {
735
+ const n = t.slice(6);
736
+ return n === "[DONE]" ? { text: "", sessionId: "", type: "done" } : JSON.parse(n);
736
737
  }
737
- } catch (t) {
738
- console.warn("Failed to parse streaming response:", t);
738
+ } catch (n) {
739
+ console.warn("Failed to parse streaming response:", n);
739
740
  }
740
741
  return null;
741
742
  }
742
- function To(e) {
743
- const [t, r] = Ne([]), [n, i] = Ne(!1), [l, d] = Ne(null), [u, p] = Ne(null), [S, v] = Ne(!1), [m, E] = Ne(!1), w = Ut(null), _ = Ut(!1);
744
- w.current || (w.current = new jo({
745
- apiKey: e.apiKey,
746
- apiBaseUrl: e.apiBaseUrl || "https://api.ordify.ai",
747
- agentId: e.agentId
743
+ function $r(t) {
744
+ const [n, i] = de([]), [c, h] = de(!1), [y, g] = de(null), [l, p] = de(null), [w, v] = de(!1), [m, $] = de(!1), k = bt(null), L = bt(!1);
745
+ k.current || (k.current = new Tr({
746
+ apiKey: t.apiKey,
747
+ apiBaseUrl: t.apiBaseUrl || "https://api.ordify.ai",
748
+ agentId: t.agentId
748
749
  }));
749
- const C = jr(() => {
750
- d(null);
751
- }, []), N = jr(async (o) => {
752
- if (!(!o.trim() || n)) {
753
- i(!0), d(null);
750
+ const T = vt(() => {
751
+ g(null);
752
+ }, []), W = vt(async (r) => {
753
+ if (!(!r.trim() || c)) {
754
+ h(!0), g(null);
754
755
  try {
755
- const c = {
756
- id: Ar(),
757
- content: o.trim(),
756
+ const o = {
757
+ id: Et(),
758
+ content: r.trim(),
758
759
  role: "user",
759
760
  timestamp: /* @__PURE__ */ new Date(),
760
- sessionId: u || void 0
761
+ sessionId: l || void 0
761
762
  };
762
- r((T) => [...T, c]);
763
- let s = u;
764
- s || (s = (await w.current.createSession()).id, p(s), e.onSessionCreated && e.onSessionCreated(s));
765
- const h = (await w.current.sendMessage(o.trim(), s)).getReader(), x = new TextDecoder();
766
- let b = {
767
- id: Ar(),
763
+ i((I) => [...I, o]);
764
+ let a = l;
765
+ a || (a = (await k.current.createSession()).id, p(a), t.onSessionCreated && t.onSessionCreated(a));
766
+ const f = (await k.current.sendMessage(r.trim(), a)).getReader(), j = new TextDecoder();
767
+ let S = {
768
+ id: Et(),
768
769
  content: "",
769
770
  role: "assistant",
770
771
  timestamp: /* @__PURE__ */ new Date(),
771
- sessionId: s
772
+ sessionId: a
772
773
  };
773
- for (r((T) => [...T, b]); ; ) {
774
- const { done: T, value: M } = await h.read();
775
- if (T) break;
776
- const D = x.decode(M, { stream: !0 }).split(`
774
+ for (i((I) => [...I, S]); ; ) {
775
+ const { done: I, value: M } = await f.read();
776
+ if (I) break;
777
+ const P = j.decode(M, { stream: !0 }).split(`
777
778
  `);
778
- for (const Y of D) {
779
- const P = Oo(Y);
780
- if (P) {
781
- if (P.type === "stream" && P.text)
782
- r(
783
- (Q) => Q.map(
784
- (H) => H.id === b.id ? { ...H, content: H.content + P.text } : H
779
+ for (const U of P) {
780
+ const R = Or(U);
781
+ if (R) {
782
+ if (R.type === "stream" && R.text)
783
+ i(
784
+ (V) => V.map(
785
+ (F) => F.id === S.id ? { ...F, content: F.content + R.text } : F
785
786
  )
786
787
  );
787
- else if (P.type === "done")
788
+ else if (R.type === "done")
788
789
  break;
789
790
  }
790
791
  }
791
792
  }
792
- e.onMessage && e.onMessage(b);
793
- } catch (c) {
794
- const s = c instanceof Error ? c.message : "Failed to send message";
795
- d(s), e.onError && e.onError(c instanceof Error ? c : new Error(s));
793
+ t.onMessage && t.onMessage(S);
794
+ } catch (o) {
795
+ const a = o instanceof Error ? o.message : "Failed to send message";
796
+ g(a), t.onError && t.onError(o instanceof Error ? o : new Error(a));
796
797
  } finally {
797
- i(!1);
798
+ h(!1);
798
799
  }
799
800
  }
800
- }, [e.onSessionCreated, e.onMessage, e.onError, n, u]);
801
- return Eo(() => {
802
- e.initialMessage && !m && !n && !_.current && (E(!0), _.current = !0, setTimeout(() => {
803
- N(e.initialMessage);
801
+ }, [t.onSessionCreated, t.onMessage, t.onError, c, l]);
802
+ return Cr(() => {
803
+ t.initialMessage && !m && !c && !L.current && ($(!0), L.current = !0, setTimeout(() => {
804
+ W(t.initialMessage);
804
805
  }, 0));
805
- }, [e.initialMessage, m, n, N]), {
806
- messages: t,
807
- sendMessage: N,
808
- isLoading: n,
809
- error: l,
810
- clearError: C,
811
- sessionId: u,
812
- isOpen: S,
806
+ }, [t.initialMessage, m, c, W]), {
807
+ messages: n,
808
+ sendMessage: W,
809
+ isLoading: c,
810
+ error: y,
811
+ clearError: T,
812
+ sessionId: l,
813
+ isOpen: w,
813
814
  setIsOpen: v
814
815
  };
815
816
  }
816
- function Po(e) {
817
- return Co(() => {
818
- const t = e.agentId || process.env.ORDIFY_AGENT_ID, r = e.apiKey || process.env.ORDIFY_API_KEY, n = e.apiBaseUrl || process.env.ORDIFY_API_BASE_URL || "https://r.ordify.ai";
819
- if (!t)
817
+ function Pr(t) {
818
+ return Rr(() => {
819
+ const n = t.agentId || process.env.ORDIFY_AGENT_ID, i = t.apiKey || process.env.ORDIFY_API_KEY, c = t.apiBaseUrl || process.env.ORDIFY_API_BASE_URL || "https://r.ordify.ai";
820
+ if (!n)
820
821
  throw new Error("Ordify agent ID is required. Provide agentId prop or set ORDIFY_AGENT_ID environment variable.");
821
- if (!r)
822
+ if (!i)
822
823
  throw new Error("Ordify API key is required. Provide apiKey prop or set ORDIFY_API_KEY environment variable.");
823
824
  return {
824
- agentId: t,
825
- apiKey: r,
826
- apiBaseUrl: n,
827
- mode: e.mode || "floating",
828
- position: e.position || "bottom-right",
829
- theme: e.theme || "light",
830
- placeholder: e.placeholder || "Type a message...",
831
- height: e.height || "500px",
832
- className: e.className || "",
833
- buttonStyle: e.buttonStyle || {},
834
- chatWindowStyle: e.chatWindowStyle || {},
835
- showHeader: e.showHeader !== !1,
836
- onMessage: e.onMessage,
837
- onError: e.onError,
838
- onClose: e.onClose,
839
- onSessionCreated: e.onSessionCreated,
840
- initialMessage: e.initialMessage
825
+ agentId: n,
826
+ apiKey: i,
827
+ apiBaseUrl: c,
828
+ mode: t.mode || "floating",
829
+ position: t.position || "bottom-right",
830
+ theme: t.theme || "light",
831
+ placeholder: t.placeholder || "Type a message...",
832
+ height: t.height || "500px",
833
+ className: t.className || "",
834
+ buttonStyle: t.buttonStyle || {},
835
+ chatWindowStyle: t.chatWindowStyle || {},
836
+ showHeader: t.showHeader !== !1,
837
+ onMessage: t.onMessage,
838
+ onError: t.onError,
839
+ onClose: t.onClose,
840
+ onSessionCreated: t.onSessionCreated,
841
+ initialMessage: t.initialMessage
841
842
  };
842
- }, [e]);
843
- }
844
- function $e() {
845
- return $e = Object.assign ? Object.assign.bind() : function(e) {
846
- for (var t = 1; t < arguments.length; t++) {
847
- var r = arguments[t];
848
- for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
849
- }
850
- return e;
851
- }, $e.apply(this, arguments);
852
- }
853
- const Ao = ["children", "options"], Ir = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus", "autoPlay", "cellPadding", "cellSpacing", "charSet", "classId", "colSpan", "contentEditable", "contextMenu", "crossOrigin", "encType", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "frameBorder", "hrefLang", "inputMode", "keyParams", "keyType", "marginHeight", "marginWidth", "maxLength", "mediaGroup", "minLength", "noValidate", "radioGroup", "readOnly", "rowSpan", "spellCheck", "srcDoc", "srcLang", "srcSet", "tabIndex", "useMap"].reduce((e, t) => (e[t.toLowerCase()] = t, e), { class: "className", for: "htmlFor" }), Nr = { amp: "&", apos: "'", gt: ">", lt: "<", nbsp: " ", quot: "“" }, Io = ["style", "script", "pre"], No = ["src", "href", "data", "formAction", "srcDoc", "action"], Do = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, Mo = /mailto:/i, Lo = /\n{2,}$/, Dr = /^(\s*>[\s\S]*?)(?=\n\n|$)/, zo = /^ *> ?/gm, Fo = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, Uo = /^ {2,}\n/, Bo = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, Mr = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, Lr = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, Wo = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, Vo = /^(?:\n *)*\n/, Yo = /\r\n?/g, Ho = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, Ko = /^\[\^([^\]]+)]/, Go = /\f/g, qo = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, Jo = /^\s*?\[(x|\s)\]/, zr = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Fr = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Ur = /^([^\n]+)\n *(=|-){3,} *\n/, Tt = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, Xo = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, Br = /^<!--[\s\S]*?(?:-->)/, Zo = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, Pt = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, Qo = /^\{.*\}$/, ea = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, ta = /^<([^ >]+@[^ >]+)>/, ra = /^<([^ >]+:\/[^ >]+)>/, na = /-([a-z])?/gi, Wr = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, oa = /^[^\n]+(?: \n|\n{2,})/, aa = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, ia = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, sa = /^\[([^\]]*)\] ?\[([^\]]*)\]/, ca = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, la = /\t/g, ua = /(^ *\||\| *$)/g, da = /^ *:-+: *$/, pa = /^ *:-+ *$/, fa = /^ *-+: *$/, vt = (e) => `(?=[\\s\\S]+?\\1${e ? "\\1" : ""})`, xt = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", ha = RegExp(`^([*_])\\1${vt(1)}${xt}\\1\\1(?!\\1)`), ma = RegExp(`^([*_])${vt(0)}${xt}\\1(?!\\1)`), ga = RegExp(`^(==)${vt(0)}${xt}\\1`), ya = RegExp(`^(~~)${vt(0)}${xt}\\1`), va = /^(:[a-zA-Z0-9-_]+:)/, xa = /^\\([^0-9A-Za-z\s])/, ba = /\\([^0-9A-Za-z\s])/g, wa = /^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/, ka = /^\n+/, Sa = /^([ \t]*)/, Ea = /(?:^|\n)( *)$/, Zt = "(?:\\d+\\.)", Qt = "(?:[*+-])";
854
- function gn(e) {
855
- return "( *)(" + (e === 1 ? Zt : Qt) + ") +";
856
- }
857
- const yn = gn(1), vn = gn(2);
858
- function xn(e) {
859
- return RegExp("^" + (e === 1 ? yn : vn));
860
- }
861
- const Ca = xn(1), $a = xn(2);
862
- function bn(e) {
863
- return RegExp("^" + (e === 1 ? yn : vn) + "[^\\n]*(?:\\n(?!\\1" + (e === 1 ? Zt : Qt) + " )[^\\n]*)*(\\n|$)", "gm");
864
- }
865
- const Ra = bn(1), _a = bn(2);
866
- function wn(e) {
867
- const t = e === 1 ? Zt : Qt;
868
- return RegExp("^( *)(" + t + ") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1" + t + " (?!" + t + " ))\\n*|\\s*\\n*$)");
843
+ }, [t]);
869
844
  }
870
- const kn = wn(1), Sn = wn(2);
871
- function Vr(e, t) {
872
- const r = t === 1, n = r ? kn : Sn, i = r ? Ra : _a, l = r ? Ca : $a;
873
- return { t: (d) => l.test(d), o: Me(function(d, u) {
874
- const p = Ea.exec(u.prevCapture);
875
- return p && (u.list || !u.inline && !u.simple) ? n.exec(d = p[1] + d) : null;
876
- }), i: 1, u(d, u, p) {
877
- const S = r ? +d[2] : void 0, v = d[0].replace(Lo, `
878
- `).match(i);
845
+ function se() {
846
+ return se = Object.assign ? Object.assign.bind() : function(t) {
847
+ for (var n = 1; n < arguments.length; n++) {
848
+ var i = arguments[n];
849
+ for (var c in i) Object.prototype.hasOwnProperty.call(i, c) && (t[c] = i[c]);
850
+ }
851
+ return t;
852
+ }, se.apply(this, arguments);
853
+ }
854
+ const Ir = ["children", "options"], jt = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus", "autoPlay", "cellPadding", "cellSpacing", "charSet", "classId", "colSpan", "contentEditable", "contextMenu", "crossOrigin", "encType", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "frameBorder", "hrefLang", "inputMode", "keyParams", "keyType", "marginHeight", "marginWidth", "maxLength", "mediaGroup", "minLength", "noValidate", "radioGroup", "readOnly", "rowSpan", "spellCheck", "srcDoc", "srcLang", "srcSet", "tabIndex", "useMap"].reduce((t, n) => (t[n.toLowerCase()] = n, t), { class: "className", for: "htmlFor" }), Ct = { amp: "&", apos: "'", gt: ">", lt: "<", nbsp: " ", quot: "“" }, Ar = ["style", "script", "pre"], Mr = ["src", "href", "data", "formAction", "srcDoc", "action"], Dr = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, Nr = /mailto:/i, Ur = /\n{2,}$/, Rt = /^(\s*>[\s\S]*?)(?=\n\n|$)/, Fr = /^ *> ?/gm, Lr = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, zr = /^ {2,}\n/, Wr = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, _t = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, St = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, Br = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, Yr = /^(?:\n *)*\n/, Kr = /\r\n?/g, Vr = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, Hr = /^\[\^([^\]]+)]/, qr = /\f/g, Jr = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, Gr = /^\s*?\[(x|\s)\]/, Tt = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Ot = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, $t = /^([^\n]+)\n *(=|-){3,} *\n/, Ne = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, Zr = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, Pt = /^<!--[\s\S]*?(?:-->)/, Xr = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, Ue = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, Qr = /^\{.*\}$/, en = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, tn = /^<([^ >]+@[^ >]+)>/, rn = /^<([^ >]+:\/[^ >]+)>/, nn = /-([a-z])?/gi, It = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, an = /^[^\n]+(?: \n|\n{2,})/, on = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, sn = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, ln = /^\[([^\]]*)\] ?\[([^\]]*)\]/, cn = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, un = /\t/g, dn = /(^ *\||\| *$)/g, fn = /^ *:-+: *$/, pn = /^ *:-+ *$/, hn = /^ *-+: *$/, Te = (t) => `(?=[\\s\\S]+?\\1${t ? "\\1" : ""})`, Oe = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", mn = RegExp(`^([*_])\\1${Te(1)}${Oe}\\1\\1(?!\\1)`), gn = RegExp(`^([*_])${Te(0)}${Oe}\\1(?!\\1)`), xn = RegExp(`^(==)${Te(0)}${Oe}\\1`), yn = RegExp(`^(~~)${Te(0)}${Oe}\\1`), bn = /^(:[a-zA-Z0-9-_]+:)/, vn = /^\\([^0-9A-Za-z\s])/, kn = /\\([^0-9A-Za-z\s])/g, wn = /^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/, En = /^\n+/, jn = /^([ \t]*)/, Cn = /(?:^|\n)( *)$/, Ve = "(?:\\d+\\.)", He = "(?:[*+-])";
855
+ function zt(t) {
856
+ return "( *)(" + (t === 1 ? Ve : He) + ") +";
857
+ }
858
+ const Wt = zt(1), Bt = zt(2);
859
+ function Yt(t) {
860
+ return RegExp("^" + (t === 1 ? Wt : Bt));
861
+ }
862
+ const Rn = Yt(1), _n = Yt(2);
863
+ function Kt(t) {
864
+ return RegExp("^" + (t === 1 ? Wt : Bt) + "[^\\n]*(?:\\n(?!\\1" + (t === 1 ? Ve : He) + " )[^\\n]*)*(\\n|$)", "gm");
865
+ }
866
+ const Sn = Kt(1), Tn = Kt(2);
867
+ function Vt(t) {
868
+ const n = t === 1 ? Ve : He;
869
+ return RegExp("^( *)(" + n + ") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1" + n + " (?!" + n + " ))\\n*|\\s*\\n*$)");
870
+ }
871
+ const Ht = Vt(1), qt = Vt(2);
872
+ function At(t, n) {
873
+ const i = n === 1, c = i ? Ht : qt, h = i ? Sn : Tn, y = i ? Rn : _n;
874
+ return { t: (g) => y.test(g), o: fe(function(g, l) {
875
+ const p = Cn.exec(l.prevCapture);
876
+ return p && (l.list || !l.inline && !l.simple) ? c.exec(g = p[1] + g) : null;
877
+ }), i: 1, u(g, l, p) {
878
+ const w = i ? +g[2] : void 0, v = g[0].replace(Ur, `
879
+ `).match(h);
879
880
  let m = !1;
880
- return { items: v.map(function(E, w) {
881
- const _ = l.exec(E)[0].length, C = RegExp("^ {1," + _ + "}", "gm"), N = E.replace(C, "").replace(l, ""), o = w === v.length - 1, c = N.indexOf(`
881
+ return { items: v.map(function($, k) {
882
+ const L = y.exec($)[0].length, T = RegExp("^ {1," + L + "}", "gm"), W = $.replace(T, "").replace(y, ""), r = k === v.length - 1, o = W.indexOf(`
882
883
 
883
- `) !== -1 || o && m;
884
- m = c;
885
- const s = p.inline, g = p.list;
886
- let h;
887
- p.list = !0, c ? (p.inline = !1, h = Ze(N) + `
884
+ `) !== -1 || r && m;
885
+ m = o;
886
+ const a = p.inline, x = p.list;
887
+ let f;
888
+ p.list = !0, o ? (p.inline = !1, f = ke(W) + `
888
889
 
889
- `) : (p.inline = !0, h = Ze(N));
890
- const x = u(h, p);
891
- return p.inline = s, p.list = g, x;
892
- }), ordered: r, start: S };
893
- }, l: (d, u, p) => e(d.ordered ? "ol" : "ul", { key: p.key, start: d.type === "20" ? d.start : void 0 }, d.items.map(function(S, v) {
894
- return e("li", { key: v }, u(S, p));
890
+ `) : (p.inline = !0, f = ke(W));
891
+ const j = l(f, p);
892
+ return p.inline = a, p.list = x, j;
893
+ }), ordered: i, start: w };
894
+ }, l: (g, l, p) => t(g.ordered ? "ol" : "ul", { key: p.key, start: g.type === "20" ? g.start : void 0 }, g.items.map(function(w, v) {
895
+ return t("li", { key: v }, l(w, p));
895
896
  })) };
896
897
  }
897
- const ja = RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`), Oa = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;
898
- function Ze(e) {
899
- let t = e.length;
900
- for (; t > 0 && e[t - 1] <= " "; ) t--;
901
- return e.slice(0, t);
898
+ const On = RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`), $n = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;
899
+ function ke(t) {
900
+ let n = t.length;
901
+ for (; n > 0 && t[n - 1] <= " "; ) n--;
902
+ return t.slice(0, n);
902
903
  }
903
- function st(e, t) {
904
- return e.startsWith(t);
904
+ function _e(t, n) {
905
+ return t.startsWith(n);
905
906
  }
906
- function Ta(e, t, r) {
907
- if (Array.isArray(r)) {
908
- for (let n = 0; n < r.length; n++) if (st(e, r[n])) return !0;
907
+ function Pn(t, n, i) {
908
+ if (Array.isArray(i)) {
909
+ for (let c = 0; c < i.length; c++) if (_e(t, i[c])) return !0;
909
910
  return !1;
910
911
  }
911
- return r(e, t);
912
- }
913
- function Je(e) {
914
- return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g, "a").replace(/[çÇ]/g, "c").replace(/[ðÐ]/g, "d").replace(/[ÈÉÊËéèêë]/g, "e").replace(/[ÏïÎîÍíÌì]/g, "i").replace(/[Ññ]/g, "n").replace(/[øØœŒÕõÔôÓóÒò]/g, "o").replace(/[ÜüÛûÚúÙù]/g, "u").replace(/[ŸÿÝý]/g, "y").replace(/[^a-z0-9- ]/gi, "").replace(/ /gi, "-").toLowerCase();
915
- }
916
- function Pa(e) {
917
- return fa.test(e) ? "right" : da.test(e) ? "center" : pa.test(e) ? "left" : null;
918
- }
919
- function Yr(e, t, r, n) {
920
- const i = r.inTable;
921
- r.inTable = !0;
922
- let l = [[]], d = "";
923
- function u() {
924
- if (!d) return;
925
- const p = l[l.length - 1];
926
- p.push.apply(p, t(d, r)), d = "";
927
- }
928
- return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((p, S, v) => {
929
- p.trim() === "|" && (u(), n) ? S !== 0 && S !== v.length - 1 && l.push([]) : d += p;
930
- }), u(), r.inTable = i, l;
931
- }
932
- function Aa(e, t, r) {
933
- r.inline = !0;
934
- const n = e[2] ? e[2].replace(ua, "").split("|").map(Pa) : [], i = e[3] ? function(d, u, p) {
935
- return d.trim().split(`
936
- `).map(function(S) {
937
- return Yr(S, u, p, !0);
912
+ return i(t, n);
913
+ }
914
+ function ve(t) {
915
+ return t.replace(/[ÀÁÂÃÄÅàáâãä忯]/g, "a").replace(/[çÇ]/g, "c").replace(/[ðÐ]/g, "d").replace(/[ÈÉÊËéèêë]/g, "e").replace(/[ÏïÎîÍíÌì]/g, "i").replace(/[Ññ]/g, "n").replace(/[øØœŒÕõÔôÓóÒò]/g, "o").replace(/[ÜüÛûÚúÙù]/g, "u").replace(/[ŸÿÝý]/g, "y").replace(/[^a-z0-9- ]/gi, "").replace(/ /gi, "-").toLowerCase();
916
+ }
917
+ function In(t) {
918
+ return hn.test(t) ? "right" : fn.test(t) ? "center" : pn.test(t) ? "left" : null;
919
+ }
920
+ function Mt(t, n, i, c) {
921
+ const h = i.inTable;
922
+ i.inTable = !0;
923
+ let y = [[]], g = "";
924
+ function l() {
925
+ if (!g) return;
926
+ const p = y[y.length - 1];
927
+ p.push.apply(p, n(g, i)), g = "";
928
+ }
929
+ return t.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((p, w, v) => {
930
+ p.trim() === "|" && (l(), c) ? w !== 0 && w !== v.length - 1 && y.push([]) : g += p;
931
+ }), l(), i.inTable = h, y;
932
+ }
933
+ function An(t, n, i) {
934
+ i.inline = !0;
935
+ const c = t[2] ? t[2].replace(dn, "").split("|").map(In) : [], h = t[3] ? function(g, l, p) {
936
+ return g.trim().split(`
937
+ `).map(function(w) {
938
+ return Mt(w, l, p, !0);
938
939
  });
939
- }(e[3], t, r) : [], l = Yr(e[1], t, r, !!i.length);
940
- return r.inline = !1, i.length ? { align: n, cells: i, header: l, type: "25" } : { children: l, type: "21" };
940
+ }(t[3], n, i) : [], y = Mt(t[1], n, i, !!h.length);
941
+ return i.inline = !1, h.length ? { align: c, cells: h, header: y, type: "25" } : { children: y, type: "21" };
941
942
  }
942
- function Hr(e, t) {
943
- return e.align[t] == null ? {} : { textAlign: e.align[t] };
943
+ function Dt(t, n) {
944
+ return t.align[n] == null ? {} : { textAlign: t.align[n] };
944
945
  }
945
- function Me(e) {
946
- return e.inline = 1, e;
946
+ function fe(t) {
947
+ return t.inline = 1, t;
947
948
  }
948
- function ke(e) {
949
- return Me(function(t, r) {
950
- return r.inline ? e.exec(t) : null;
949
+ function re(t) {
950
+ return fe(function(n, i) {
951
+ return i.inline ? t.exec(n) : null;
951
952
  });
952
953
  }
953
- function Se(e) {
954
- return Me(function(t, r) {
955
- return r.inline || r.simple ? e.exec(t) : null;
954
+ function ne(t) {
955
+ return fe(function(n, i) {
956
+ return i.inline || i.simple ? t.exec(n) : null;
956
957
  });
957
958
  }
958
- function xe(e) {
959
- return function(t, r) {
960
- return r.inline || r.simple ? null : e.exec(t);
959
+ function ee(t) {
960
+ return function(n, i) {
961
+ return i.inline || i.simple ? null : t.exec(n);
961
962
  };
962
963
  }
963
- function rt(e) {
964
- return Me(function(t) {
965
- return e.exec(t);
964
+ function Re(t) {
965
+ return fe(function(n) {
966
+ return t.exec(n);
966
967
  });
967
968
  }
968
- const Ia = /(javascript|vbscript|data(?!:image)):/i;
969
- function Na(e) {
969
+ const Mn = /(javascript|vbscript|data(?!:image)):/i;
970
+ function Dn(t) {
970
971
  try {
971
- const t = decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g, "");
972
- if (Ia.test(t)) return null;
972
+ const n = decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g, "");
973
+ if (Mn.test(n)) return null;
973
974
  } catch {
974
975
  return null;
975
976
  }
976
- return e;
977
+ return t;
977
978
  }
978
- function ye(e) {
979
- return e && e.replace(ba, "$1");
979
+ function Q(t) {
980
+ return t && t.replace(kn, "$1");
980
981
  }
981
- function ct(e, t, r) {
982
- const n = r.inline || !1, i = r.simple || !1;
983
- r.inline = !0, r.simple = !0;
984
- const l = e(t, r);
985
- return r.inline = n, r.simple = i, l;
982
+ function Se(t, n, i) {
983
+ const c = i.inline || !1, h = i.simple || !1;
984
+ i.inline = !0, i.simple = !0;
985
+ const y = t(n, i);
986
+ return i.inline = c, i.simple = h, y;
986
987
  }
987
- function Da(e, t, r) {
988
- const n = r.inline || !1, i = r.simple || !1;
989
- r.inline = !1, r.simple = !0;
990
- const l = e(t, r);
991
- return r.inline = n, r.simple = i, l;
988
+ function Nn(t, n, i) {
989
+ const c = i.inline || !1, h = i.simple || !1;
990
+ i.inline = !1, i.simple = !0;
991
+ const y = t(n, i);
992
+ return i.inline = c, i.simple = h, y;
992
993
  }
993
- function Ma(e, t, r) {
994
- const n = r.inline || !1;
995
- r.inline = !1;
996
- const i = e(t, r);
997
- return r.inline = n, i;
994
+ function Un(t, n, i) {
995
+ const c = i.inline || !1;
996
+ i.inline = !1;
997
+ const h = t(n, i);
998
+ return i.inline = c, h;
998
999
  }
999
- const At = (e, t, r) => ({ children: ct(t, e[2], r) });
1000
- function It() {
1000
+ const Fe = (t, n, i) => ({ children: Se(n, t[2], i) });
1001
+ function Le() {
1001
1002
  return {};
1002
1003
  }
1003
- function Nt() {
1004
+ function ze() {
1004
1005
  return null;
1005
1006
  }
1006
- function La(...e) {
1007
- return e.filter(Boolean).join(" ");
1008
- }
1009
- function Dt(e, t, r) {
1010
- let n = e;
1011
- const i = t.split(".");
1012
- for (; i.length && (n = n[i[0]], n !== void 0); ) i.shift();
1013
- return n || r;
1014
- }
1015
- function za(e = "", t = {}) {
1016
- t.overrides = t.overrides || {}, t.namedCodesToUnicode = t.namedCodesToUnicode ? $e({}, Nr, t.namedCodesToUnicode) : Nr;
1017
- const r = t.slugify || Je, n = t.sanitizer || Na, i = t.createElement || hn.createElement, l = [Dr, Mr, Lr, t.enforceAtxHeadings ? Fr : zr, Ur, Wr, kn, Sn], d = [...l, oa, Tt, Br, Pt];
1018
- function u(o, c, ...s) {
1019
- const g = Dt(t.overrides, o + ".props", {});
1020
- return i(function(h, x) {
1021
- const b = Dt(x, h);
1022
- return b ? typeof b == "function" || typeof b == "object" && "render" in b ? b : Dt(x, h + ".component", h) : h;
1023
- }(o, t.overrides), $e({}, c, g, { className: La(c == null ? void 0 : c.className, g.className) || void 0 }), ...s);
1024
- }
1025
- function p(o) {
1026
- o = o.replace(qo, "");
1027
- let c = !1;
1028
- t.forceInline ? c = !0 : t.forceBlock || (c = ca.test(o) === !1);
1029
- const s = _(w(c ? o : Ze(o).replace(ka, "") + `
1007
+ function Fn(...t) {
1008
+ return t.filter(Boolean).join(" ");
1009
+ }
1010
+ function We(t, n, i) {
1011
+ let c = t;
1012
+ const h = n.split(".");
1013
+ for (; h.length && (c = c[h[0]], c !== void 0); ) h.shift();
1014
+ return c || i;
1015
+ }
1016
+ function Ln(t = "", n = {}) {
1017
+ n.overrides = n.overrides || {}, n.namedCodesToUnicode = n.namedCodesToUnicode ? se({}, Ct, n.namedCodesToUnicode) : Ct;
1018
+ const i = n.slugify || ve, c = n.sanitizer || Dn, h = n.createElement || Ft.createElement, y = [Rt, _t, St, n.enforceAtxHeadings ? Ot : Tt, $t, It, Ht, qt], g = [...y, an, Ne, Pt, Ue];
1019
+ function l(r, o, ...a) {
1020
+ const x = We(n.overrides, r + ".props", {});
1021
+ return h(function(f, j) {
1022
+ const S = We(j, f);
1023
+ return S ? typeof S == "function" || typeof S == "object" && "render" in S ? S : We(j, f + ".component", f) : f;
1024
+ }(r, n.overrides), se({}, o, x, { className: Fn(o == null ? void 0 : o.className, x.className) || void 0 }), ...a);
1025
+ }
1026
+ function p(r) {
1027
+ r = r.replace(Jr, "");
1028
+ let o = !1;
1029
+ n.forceInline ? o = !0 : n.forceBlock || (o = cn.test(r) === !1);
1030
+ const a = L(k(o ? r : ke(r).replace(En, "") + `
1030
1031
 
1031
- `, { inline: c }));
1032
- for (; typeof s[s.length - 1] == "string" && !s[s.length - 1].trim(); ) s.pop();
1033
- if (t.wrapper === null) return s;
1034
- const g = t.wrapper || (c ? "span" : "div");
1035
- let h;
1036
- if (s.length > 1 || t.forceWrapper) h = s;
1032
+ `, { inline: o }));
1033
+ for (; typeof a[a.length - 1] == "string" && !a[a.length - 1].trim(); ) a.pop();
1034
+ if (n.wrapper === null) return a;
1035
+ const x = n.wrapper || (o ? "span" : "div");
1036
+ let f;
1037
+ if (a.length > 1 || n.forceWrapper) f = a;
1037
1038
  else {
1038
- if (s.length === 1) return h = s[0], typeof h == "string" ? u("span", { key: "outer" }, h) : h;
1039
- h = null;
1040
- }
1041
- return i(g, { key: "outer" }, h);
1042
- }
1043
- function S(o, c) {
1044
- if (!c || !c.trim()) return null;
1045
- const s = c.match(Do);
1046
- return s ? s.reduce(function(g, h) {
1047
- const x = h.indexOf("=");
1048
- if (x !== -1) {
1049
- const b = function(D) {
1050
- return D.indexOf("-") !== -1 && D.match(Zo) === null && (D = D.replace(na, function(Y, P) {
1051
- return P.toUpperCase();
1052
- })), D;
1053
- }(h.slice(0, x)).trim(), T = function(D) {
1054
- const Y = D[0];
1055
- return (Y === '"' || Y === "'") && D.length >= 2 && D[D.length - 1] === Y ? D.slice(1, -1) : D;
1056
- }(h.slice(x + 1).trim()), M = Ir[b] || b;
1057
- if (M === "ref") return g;
1058
- const V = g[M] = function(D, Y, P, Q) {
1059
- return Y === "style" ? function(H) {
1060
- const ae = [];
1061
- let ee = "", ne = !1, G = !1, ie = "";
1062
- if (!H) return ae;
1063
- for (let F = 0; F < H.length; F++) {
1064
- const q = H[F];
1065
- if (q !== '"' && q !== "'" || ne || (G ? q === ie && (G = !1, ie = "") : (G = !0, ie = q)), q === "(" && ee.endsWith("url") ? ne = !0 : q === ")" && ne && (ne = !1), q !== ";" || G || ne) ee += q;
1039
+ if (a.length === 1) return f = a[0], typeof f == "string" ? l("span", { key: "outer" }, f) : f;
1040
+ f = null;
1041
+ }
1042
+ return h(x, { key: "outer" }, f);
1043
+ }
1044
+ function w(r, o) {
1045
+ if (!o || !o.trim()) return null;
1046
+ const a = o.match(Dr);
1047
+ return a ? a.reduce(function(x, f) {
1048
+ const j = f.indexOf("=");
1049
+ if (j !== -1) {
1050
+ const S = function(P) {
1051
+ return P.indexOf("-") !== -1 && P.match(Xr) === null && (P = P.replace(nn, function(U, R) {
1052
+ return R.toUpperCase();
1053
+ })), P;
1054
+ }(f.slice(0, j)).trim(), I = function(P) {
1055
+ const U = P[0];
1056
+ return (U === '"' || U === "'") && P.length >= 2 && P[P.length - 1] === U ? P.slice(1, -1) : P;
1057
+ }(f.slice(j + 1).trim()), M = jt[S] || S;
1058
+ if (M === "ref") return x;
1059
+ const N = x[M] = function(P, U, R, V) {
1060
+ return U === "style" ? function(F) {
1061
+ const J = [];
1062
+ let G = "", Z = !1, ae = !1, le = "";
1063
+ if (!F) return J;
1064
+ for (let X = 0; X < F.length; X++) {
1065
+ const K = F[X];
1066
+ if (K !== '"' && K !== "'" || Z || (ae ? K === le && (ae = !1, le = "") : (ae = !0, le = K)), K === "(" && G.endsWith("url") ? Z = !0 : K === ")" && Z && (Z = !1), K !== ";" || ae || Z) G += K;
1066
1067
  else {
1067
- const se = ee.trim();
1068
- if (se) {
1069
- const me = se.indexOf(":");
1070
- if (me > 0) {
1071
- const ue = se.slice(0, me).trim(), ge = se.slice(me + 1).trim();
1072
- ae.push([ue, ge]);
1068
+ const te = G.trim();
1069
+ if (te) {
1070
+ const he = te.indexOf(":");
1071
+ if (he > 0) {
1072
+ const me = te.slice(0, he).trim(), ge = te.slice(he + 1).trim();
1073
+ J.push([me, ge]);
1073
1074
  }
1074
1075
  }
1075
- ee = "";
1076
+ G = "";
1076
1077
  }
1077
1078
  }
1078
- const oe = ee.trim();
1079
+ const oe = G.trim();
1079
1080
  if (oe) {
1080
- const F = oe.indexOf(":");
1081
- if (F > 0) {
1082
- const q = oe.slice(0, F).trim(), se = oe.slice(F + 1).trim();
1083
- ae.push([q, se]);
1081
+ const X = oe.indexOf(":");
1082
+ if (X > 0) {
1083
+ const K = oe.slice(0, X).trim(), te = oe.slice(X + 1).trim();
1084
+ J.push([K, te]);
1084
1085
  }
1085
1086
  }
1086
- return ae;
1087
- }(P).reduce(function(H, [ae, ee]) {
1088
- return H[ae.replace(/(-[a-z])/g, (ne) => ne[1].toUpperCase())] = Q(ee, D, ae), H;
1089
- }, {}) : No.indexOf(Y) !== -1 ? Q(ye(P), D, Y) : (P.match(Qo) && (P = ye(P.slice(1, P.length - 1))), P === "true" || P !== "false" && P);
1090
- }(o, b, T, n);
1091
- typeof V == "string" && (Tt.test(V) || Pt.test(V)) && (g[M] = p(V.trim()));
1092
- } else h !== "style" && (g[Ir[h] || h] = !0);
1093
- return g;
1087
+ return J;
1088
+ }(R).reduce(function(F, [J, G]) {
1089
+ return F[J.replace(/(-[a-z])/g, (Z) => Z[1].toUpperCase())] = V(G, P, J), F;
1090
+ }, {}) : Mr.indexOf(U) !== -1 ? V(Q(R), P, U) : (R.match(Qr) && (R = Q(R.slice(1, R.length - 1))), R === "true" || R !== "false" && R);
1091
+ }(r, S, I, c);
1092
+ typeof N == "string" && (Ne.test(N) || Ue.test(N)) && (x[M] = p(N.trim()));
1093
+ } else f !== "style" && (x[jt[f] || f] = !0);
1094
+ return x;
1094
1095
  }, {}) : null;
1095
1096
  }
1096
- const v = [], m = {}, E = { 0: { t: [">"], o: xe(Dr), i: 1, u(o, c, s) {
1097
- const [, g, h] = o[0].replace(zo, "").match(Fo);
1098
- return { alert: g, children: c(h, s) };
1099
- }, l(o, c, s) {
1100
- const g = { key: s.key };
1101
- return o.alert && (g.className = "markdown-alert-" + r(o.alert.toLowerCase(), Je), o.children.unshift({ attrs: {}, children: [{ type: "27", text: o.alert }], noInnerParse: !0, type: "11", tag: "header" })), u("blockquote", g, c(o.children, s));
1102
- } }, 1: { o: rt(Uo), i: 1, u: It, l: (o, c, s) => u("br", { key: s.key }) }, 2: { t: (o) => {
1103
- const c = o[0];
1104
- return c === "-" || c === "*" || c === "_";
1105
- }, o: xe(Bo), i: 1, u: It, l: (o, c, s) => u("hr", { key: s.key }) }, 3: { t: [" "], o: xe(Lr), i: 0, u: (o) => ({ lang: void 0, text: ye(Ze(o[0].replace(/^ {4}/gm, ""))) }), l: (o, c, s) => u("pre", { key: s.key }, u("code", $e({}, o.attrs, { className: o.lang ? "lang-" + o.lang : "" }), o.text)) }, 4: { t: ["```", "~~~"], o: xe(Mr), i: 0, u: (o) => ({ attrs: S("code", o[3] || ""), lang: o[2] || void 0, text: o[4], type: "3" }) }, 5: { t: ["`"], o: Se(Wo), i: 3, u: (o) => ({ text: ye(o[2]) }), l: (o, c, s) => u("code", { key: s.key }, o.text) }, 6: { t: ["[^"], o: xe(Ho), i: 0, u: (o) => (v.push({ footnote: o[2], identifier: o[1] }), {}), l: Nt }, 7: { t: ["[^"], o: ke(Ko), i: 1, u: (o) => ({ target: "#" + r(o[1], Je), text: o[1] }), l: (o, c, s) => u("a", { key: s.key, href: n(o.target, "a", "href") }, u("sup", { key: s.key }, o.text)) }, 8: { t: ["[ ]", "[x]"], o: ke(Jo), i: 1, u: (o) => ({ completed: o[1].toLowerCase() === "x" }), l: (o, c, s) => u("input", { checked: o.completed, key: s.key, readOnly: !0, type: "checkbox" }) }, 9: { t: ["#"], o: xe(t.enforceAtxHeadings ? Fr : zr), i: 1, u: (o, c, s) => ({ children: ct(c, o[2], s), id: r(o[2], Je), level: o[1].length }), l: (o, c, s) => u("h" + o.level, { id: o.id, key: s.key }, c(o.children, s)) }, 10: { o: xe(Ur), i: 0, u: (o, c, s) => ({ children: ct(c, o[1], s), level: o[2] === "=" ? 1 : 2, type: "9" }) }, 11: { t: ["<"], o: rt(Tt), i: 1, u(o, c, s) {
1106
- const [, g] = o[3].match(Sa), h = RegExp("^" + g, "gm"), x = o[3].replace(h, ""), b = (T = x, d.some((P) => P.test(T)) ? Ma : ct);
1107
- var T;
1108
- const M = o[1].toLowerCase(), V = Io.indexOf(M) !== -1, D = (V ? M : o[1]).trim(), Y = { attrs: S(D, o[2]), noInnerParse: V, tag: D };
1109
- if (s.inAnchor = s.inAnchor || M === "a", V) Y.text = o[3];
1097
+ const v = [], m = {}, $ = { 0: { t: [">"], o: ee(Rt), i: 1, u(r, o, a) {
1098
+ const [, x, f] = r[0].replace(Fr, "").match(Lr);
1099
+ return { alert: x, children: o(f, a) };
1100
+ }, l(r, o, a) {
1101
+ const x = { key: a.key };
1102
+ return r.alert && (x.className = "markdown-alert-" + i(r.alert.toLowerCase(), ve), r.children.unshift({ attrs: {}, children: [{ type: "27", text: r.alert }], noInnerParse: !0, type: "11", tag: "header" })), l("blockquote", x, o(r.children, a));
1103
+ } }, 1: { o: Re(zr), i: 1, u: Le, l: (r, o, a) => l("br", { key: a.key }) }, 2: { t: (r) => {
1104
+ const o = r[0];
1105
+ return o === "-" || o === "*" || o === "_";
1106
+ }, o: ee(Wr), i: 1, u: Le, l: (r, o, a) => l("hr", { key: a.key }) }, 3: { t: [" "], o: ee(St), i: 0, u: (r) => ({ lang: void 0, text: Q(ke(r[0].replace(/^ {4}/gm, ""))) }), l: (r, o, a) => l("pre", { key: a.key }, l("code", se({}, r.attrs, { className: r.lang ? "lang-" + r.lang : "" }), r.text)) }, 4: { t: ["```", "~~~"], o: ee(_t), i: 0, u: (r) => ({ attrs: w("code", r[3] || ""), lang: r[2] || void 0, text: r[4], type: "3" }) }, 5: { t: ["`"], o: ne(Br), i: 3, u: (r) => ({ text: Q(r[2]) }), l: (r, o, a) => l("code", { key: a.key }, r.text) }, 6: { t: ["[^"], o: ee(Vr), i: 0, u: (r) => (v.push({ footnote: r[2], identifier: r[1] }), {}), l: ze }, 7: { t: ["[^"], o: re(Hr), i: 1, u: (r) => ({ target: "#" + i(r[1], ve), text: r[1] }), l: (r, o, a) => l("a", { key: a.key, href: c(r.target, "a", "href") }, l("sup", { key: a.key }, r.text)) }, 8: { t: ["[ ]", "[x]"], o: re(Gr), i: 1, u: (r) => ({ completed: r[1].toLowerCase() === "x" }), l: (r, o, a) => l("input", { checked: r.completed, key: a.key, readOnly: !0, type: "checkbox" }) }, 9: { t: ["#"], o: ee(n.enforceAtxHeadings ? Ot : Tt), i: 1, u: (r, o, a) => ({ children: Se(o, r[2], a), id: i(r[2], ve), level: r[1].length }), l: (r, o, a) => l("h" + r.level, { id: r.id, key: a.key }, o(r.children, a)) }, 10: { o: ee($t), i: 0, u: (r, o, a) => ({ children: Se(o, r[1], a), level: r[2] === "=" ? 1 : 2, type: "9" }) }, 11: { t: ["<"], o: Re(Ne), i: 1, u(r, o, a) {
1107
+ const [, x] = r[3].match(jn), f = RegExp("^" + x, "gm"), j = r[3].replace(f, ""), S = (I = j, g.some((R) => R.test(I)) ? Un : Se);
1108
+ var I;
1109
+ const M = r[1].toLowerCase(), N = Ar.indexOf(M) !== -1, P = (N ? M : r[1]).trim(), U = { attrs: w(P, r[2]), noInnerParse: N, tag: P };
1110
+ if (a.inAnchor = a.inAnchor || M === "a", N) U.text = r[3];
1110
1111
  else {
1111
- const P = s.inHTML;
1112
- s.inHTML = !0, Y.children = b(c, x, s), s.inHTML = P;
1113
- }
1114
- return s.inAnchor = !1, Y;
1115
- }, l: (o, c, s) => u(o.tag, $e({ key: s.key }, o.attrs), o.text || (o.children ? c(o.children, s) : "")) }, 13: { t: ["<"], o: rt(Pt), i: 1, u(o) {
1116
- const c = o[1].trim();
1117
- return { attrs: S(c, o[2] || ""), tag: c };
1118
- }, l: (o, c, s) => u(o.tag, $e({}, o.attrs, { key: s.key })) }, 12: { t: ["<!--"], o: rt(Br), i: 1, u: () => ({}), l: Nt }, 14: { t: ["!["], o: Se(Oa), i: 1, u: (o) => ({ alt: ye(o[1]), target: ye(o[2]), title: ye(o[3]) }), l: (o, c, s) => u("img", { key: s.key, alt: o.alt || void 0, title: o.title || void 0, src: n(o.target, "img", "src") }) }, 15: { t: ["["], o: ke(ja), i: 3, u: (o, c, s) => ({ children: Da(c, o[1], s), target: ye(o[2]), title: ye(o[3]) }), l: (o, c, s) => u("a", { key: s.key, href: n(o.target, "a", "href"), title: o.title }, c(o.children, s)) }, 16: { t: ["<"], o: ke(ra), i: 0, u: (o) => ({ children: [{ text: o[1], type: "27" }], target: o[1], type: "15" }) }, 17: { t: (o, c) => !c.inAnchor && !t.disableAutoLink && (st(o, "http://") || st(o, "https://")), o: ke(ea), i: 0, u: (o) => ({ children: [{ text: o[1], type: "27" }], target: o[1], title: void 0, type: "15" }) }, 18: { t: ["<"], o: ke(ta), i: 0, u(o) {
1119
- let c = o[1], s = o[1];
1120
- return Mo.test(s) || (s = "mailto:" + s), { children: [{ text: c.replace("mailto:", ""), type: "27" }], target: s, type: "15" };
1121
- } }, 20: Vr(u, 1), 33: Vr(u, 2), 19: { o: xe(Vo), i: 3, u: It, l: () => `
1122
- ` }, 21: { o: Me(function(o, c) {
1123
- if (c.inline || c.simple || c.inHTML && o.indexOf(`
1112
+ const R = a.inHTML;
1113
+ a.inHTML = !0, U.children = S(o, j, a), a.inHTML = R;
1114
+ }
1115
+ return a.inAnchor = !1, U;
1116
+ }, l: (r, o, a) => l(r.tag, se({ key: a.key }, r.attrs), r.text || (r.children ? o(r.children, a) : "")) }, 13: { t: ["<"], o: Re(Ue), i: 1, u(r) {
1117
+ const o = r[1].trim();
1118
+ return { attrs: w(o, r[2] || ""), tag: o };
1119
+ }, l: (r, o, a) => l(r.tag, se({}, r.attrs, { key: a.key })) }, 12: { t: ["<!--"], o: Re(Pt), i: 1, u: () => ({}), l: ze }, 14: { t: ["!["], o: ne($n), i: 1, u: (r) => ({ alt: Q(r[1]), target: Q(r[2]), title: Q(r[3]) }), l: (r, o, a) => l("img", { key: a.key, alt: r.alt || void 0, title: r.title || void 0, src: c(r.target, "img", "src") }) }, 15: { t: ["["], o: re(On), i: 3, u: (r, o, a) => ({ children: Nn(o, r[1], a), target: Q(r[2]), title: Q(r[3]) }), l: (r, o, a) => l("a", { key: a.key, href: c(r.target, "a", "href"), title: r.title }, o(r.children, a)) }, 16: { t: ["<"], o: re(rn), i: 0, u: (r) => ({ children: [{ text: r[1], type: "27" }], target: r[1], type: "15" }) }, 17: { t: (r, o) => !o.inAnchor && !n.disableAutoLink && (_e(r, "http://") || _e(r, "https://")), o: re(en), i: 0, u: (r) => ({ children: [{ text: r[1], type: "27" }], target: r[1], title: void 0, type: "15" }) }, 18: { t: ["<"], o: re(tn), i: 0, u(r) {
1120
+ let o = r[1], a = r[1];
1121
+ return Nr.test(a) || (a = "mailto:" + a), { children: [{ text: o.replace("mailto:", ""), type: "27" }], target: a, type: "15" };
1122
+ } }, 20: At(l, 1), 33: At(l, 2), 19: { o: ee(Yr), i: 3, u: Le, l: () => `
1123
+ ` }, 21: { o: fe(function(r, o) {
1124
+ if (o.inline || o.simple || o.inHTML && r.indexOf(`
1124
1125
 
1125
- `) === -1 && c.prevCapture.indexOf(`
1126
+ `) === -1 && o.prevCapture.indexOf(`
1126
1127
 
1127
1128
  `) === -1) return null;
1128
- let s = "";
1129
- o.split(`
1130
- `).every((h) => (h += `
1131
- `, !l.some((x) => x.test(h)) && (s += h, !!h.trim())));
1132
- const g = Ze(s);
1133
- return g === "" ? null : [s, , g];
1134
- }), i: 3, u: At, l: (o, c, s) => u("p", { key: s.key }, c(o.children, s)) }, 22: { t: ["["], o: ke(aa), i: 0, u: (o) => (m[o[1]] = { target: o[2], title: o[4] }, {}), l: Nt }, 23: { t: ["!["], o: Se(ia), i: 0, u: (o) => ({ alt: o[1] ? ye(o[1]) : void 0, ref: o[2] }), l: (o, c, s) => m[o.ref] ? u("img", { key: s.key, alt: o.alt, src: n(m[o.ref].target, "img", "src"), title: m[o.ref].title }) : null }, 24: { t: (o) => o[0] === "[" && o.indexOf("](") === -1, o: ke(sa), i: 0, u: (o, c, s) => ({ children: c(o[1], s), fallbackChildren: o[0], ref: o[2] }), l: (o, c, s) => m[o.ref] ? u("a", { key: s.key, href: n(m[o.ref].target, "a", "href"), title: m[o.ref].title }, c(o.children, s)) : u("span", { key: s.key }, o.fallbackChildren) }, 25: { t: ["|"], o: xe(Wr), i: 1, u: Aa, l(o, c, s) {
1135
- const g = o;
1136
- return u("table", { key: s.key }, u("thead", null, u("tr", null, g.header.map(function(h, x) {
1137
- return u("th", { key: x, style: Hr(g, x) }, c(h, s));
1138
- }))), u("tbody", null, g.cells.map(function(h, x) {
1139
- return u("tr", { key: x }, h.map(function(b, T) {
1140
- return u("td", { key: T, style: Hr(g, T) }, c(b, s));
1129
+ let a = "";
1130
+ r.split(`
1131
+ `).every((f) => (f += `
1132
+ `, !y.some((j) => j.test(f)) && (a += f, !!f.trim())));
1133
+ const x = ke(a);
1134
+ return x === "" ? null : [a, , x];
1135
+ }), i: 3, u: Fe, l: (r, o, a) => l("p", { key: a.key }, o(r.children, a)) }, 22: { t: ["["], o: re(on), i: 0, u: (r) => (m[r[1]] = { target: r[2], title: r[4] }, {}), l: ze }, 23: { t: ["!["], o: ne(sn), i: 0, u: (r) => ({ alt: r[1] ? Q(r[1]) : void 0, ref: r[2] }), l: (r, o, a) => m[r.ref] ? l("img", { key: a.key, alt: r.alt, src: c(m[r.ref].target, "img", "src"), title: m[r.ref].title }) : null }, 24: { t: (r) => r[0] === "[" && r.indexOf("](") === -1, o: re(ln), i: 0, u: (r, o, a) => ({ children: o(r[1], a), fallbackChildren: r[0], ref: r[2] }), l: (r, o, a) => m[r.ref] ? l("a", { key: a.key, href: c(m[r.ref].target, "a", "href"), title: m[r.ref].title }, o(r.children, a)) : l("span", { key: a.key }, r.fallbackChildren) }, 25: { t: ["|"], o: ee(It), i: 1, u: An, l(r, o, a) {
1136
+ const x = r;
1137
+ return l("table", { key: a.key }, l("thead", null, l("tr", null, x.header.map(function(f, j) {
1138
+ return l("th", { key: j, style: Dt(x, j) }, o(f, a));
1139
+ }))), l("tbody", null, x.cells.map(function(f, j) {
1140
+ return l("tr", { key: j }, f.map(function(S, I) {
1141
+ return l("td", { key: I, style: Dt(x, I) }, o(S, a));
1141
1142
  }));
1142
1143
  })));
1143
- } }, 27: { o: Me(function(o, c) {
1144
- let s;
1145
- return st(o, ":") && (s = va.exec(o)), s || wa.exec(o);
1146
- }), i: 4, u(o) {
1147
- const c = o[0];
1148
- return { text: c.indexOf("&") === -1 ? c : c.replace(Xo, (s, g) => t.namedCodesToUnicode[g] || s) };
1149
- }, l: (o) => o.text }, 28: { t: ["**", "__"], o: Se(ha), i: 2, u: (o, c, s) => ({ children: c(o[2], s) }), l: (o, c, s) => u("strong", { key: s.key }, c(o.children, s)) }, 29: { t: (o) => {
1150
- const c = o[0];
1151
- return (c === "*" || c === "_") && o[1] !== c;
1152
- }, o: Se(ma), i: 3, u: (o, c, s) => ({ children: c(o[2], s) }), l: (o, c, s) => u("em", { key: s.key }, c(o.children, s)) }, 30: { t: ["\\"], o: Se(xa), i: 1, u: (o) => ({ text: o[1], type: "27" }) }, 31: { t: ["=="], o: Se(ga), i: 3, u: At, l: (o, c, s) => u("mark", { key: s.key }, c(o.children, s)) }, 32: { t: ["~~"], o: Se(ya), i: 3, u: At, l: (o, c, s) => u("del", { key: s.key }, c(o.children, s)) } };
1153
- t.disableParsingRawHTML === !0 && (delete E[11], delete E[13]);
1154
- const w = function(o) {
1155
- var c = Object.keys(o);
1156
- function s(g, h) {
1157
- var x = [];
1158
- if (h.prevCapture = h.prevCapture || "", g.trim()) for (; g; ) for (var b = 0; b < c.length; ) {
1159
- var T = c[b], M = o[T];
1160
- if (!M.t || Ta(g, h, M.t)) {
1161
- var V = M.o(g, h);
1162
- if (V && V[0]) {
1163
- g = g.substring(V[0].length);
1164
- var D = M.u(V, s, h);
1165
- h.prevCapture += V[0], D.type || (D.type = T), x.push(D);
1144
+ } }, 27: { o: fe(function(r, o) {
1145
+ let a;
1146
+ return _e(r, ":") && (a = bn.exec(r)), a || wn.exec(r);
1147
+ }), i: 4, u(r) {
1148
+ const o = r[0];
1149
+ return { text: o.indexOf("&") === -1 ? o : o.replace(Zr, (a, x) => n.namedCodesToUnicode[x] || a) };
1150
+ }, l: (r) => r.text }, 28: { t: ["**", "__"], o: ne(mn), i: 2, u: (r, o, a) => ({ children: o(r[2], a) }), l: (r, o, a) => l("strong", { key: a.key }, o(r.children, a)) }, 29: { t: (r) => {
1151
+ const o = r[0];
1152
+ return (o === "*" || o === "_") && r[1] !== o;
1153
+ }, o: ne(gn), i: 3, u: (r, o, a) => ({ children: o(r[2], a) }), l: (r, o, a) => l("em", { key: a.key }, o(r.children, a)) }, 30: { t: ["\\"], o: ne(vn), i: 1, u: (r) => ({ text: r[1], type: "27" }) }, 31: { t: ["=="], o: ne(xn), i: 3, u: Fe, l: (r, o, a) => l("mark", { key: a.key }, o(r.children, a)) }, 32: { t: ["~~"], o: ne(yn), i: 3, u: Fe, l: (r, o, a) => l("del", { key: a.key }, o(r.children, a)) } };
1154
+ n.disableParsingRawHTML === !0 && (delete $[11], delete $[13]);
1155
+ const k = function(r) {
1156
+ var o = Object.keys(r);
1157
+ function a(x, f) {
1158
+ var j = [];
1159
+ if (f.prevCapture = f.prevCapture || "", x.trim()) for (; x; ) for (var S = 0; S < o.length; ) {
1160
+ var I = o[S], M = r[I];
1161
+ if (!M.t || Pn(x, f, M.t)) {
1162
+ var N = M.o(x, f);
1163
+ if (N && N[0]) {
1164
+ x = x.substring(N[0].length);
1165
+ var P = M.u(N, a, f);
1166
+ f.prevCapture += N[0], P.type || (P.type = I), j.push(P);
1166
1167
  break;
1167
1168
  }
1168
- b++;
1169
- } else b++;
1169
+ S++;
1170
+ } else S++;
1170
1171
  }
1171
- return h.prevCapture = "", x;
1172
- }
1173
- return c.sort(function(g, h) {
1174
- return o[g].i - o[h].i || (g < h ? -1 : 1);
1175
- }), function(g, h) {
1176
- return s(function(x) {
1177
- return x.replace(Yo, `
1178
- `).replace(Go, "").replace(la, " ");
1179
- }(g), h);
1172
+ return f.prevCapture = "", j;
1173
+ }
1174
+ return o.sort(function(x, f) {
1175
+ return r[x].i - r[f].i || (x < f ? -1 : 1);
1176
+ }), function(x, f) {
1177
+ return a(function(j) {
1178
+ return j.replace(Kr, `
1179
+ `).replace(qr, "").replace(un, " ");
1180
+ }(x), f);
1180
1181
  };
1181
- }(E), _ = (C = /* @__PURE__ */ function(o, c) {
1182
- return function(s, g, h) {
1183
- const x = o[s.type].l;
1184
- return c ? c(() => x(s, g, h), s, g, h) : x(s, g, h);
1182
+ }($), L = (T = /* @__PURE__ */ function(r, o) {
1183
+ return function(a, x, f) {
1184
+ const j = r[a.type].l;
1185
+ return o ? o(() => j(a, x, f), a, x, f) : j(a, x, f);
1185
1186
  };
1186
- }(E, t.renderRule), function o(c, s = {}) {
1187
- if (Array.isArray(c)) {
1188
- const g = s.key, h = [];
1189
- let x = !1;
1190
- for (let b = 0; b < c.length; b++) {
1191
- s.key = b;
1192
- const T = o(c[b], s), M = typeof T == "string";
1193
- M && x ? h[h.length - 1] += T : T !== null && h.push(T), x = M;
1187
+ }($, n.renderRule), function r(o, a = {}) {
1188
+ if (Array.isArray(o)) {
1189
+ const x = a.key, f = [];
1190
+ let j = !1;
1191
+ for (let S = 0; S < o.length; S++) {
1192
+ a.key = S;
1193
+ const I = r(o[S], a), M = typeof I == "string";
1194
+ M && j ? f[f.length - 1] += I : I !== null && f.push(I), j = M;
1194
1195
  }
1195
- return s.key = g, h;
1196
+ return a.key = x, f;
1196
1197
  }
1197
- return C(c, o, s);
1198
+ return T(o, r, a);
1198
1199
  });
1199
- var C;
1200
- const N = p(e);
1201
- return v.length ? u("div", null, N, u("footer", { key: "footer" }, v.map(function(o) {
1202
- return u("div", { id: r(o.identifier, Je), key: o.identifier }, o.identifier, _(w(o.footnote, { inline: !0 })));
1203
- }))) : N;
1204
- }
1205
- const Fa = (e) => {
1206
- let { children: t = "", options: r } = e, n = function(i, l) {
1207
- if (i == null) return {};
1208
- var d, u, p = {}, S = Object.keys(i);
1209
- for (u = 0; u < S.length; u++) l.indexOf(d = S[u]) >= 0 || (p[d] = i[d]);
1200
+ var T;
1201
+ const W = p(t);
1202
+ return v.length ? l("div", null, W, l("footer", { key: "footer" }, v.map(function(r) {
1203
+ return l("div", { id: i(r.identifier, ve), key: r.identifier }, r.identifier, L(k(r.footnote, { inline: !0 })));
1204
+ }))) : W;
1205
+ }
1206
+ const zn = (t) => {
1207
+ let { children: n = "", options: i } = t, c = function(h, y) {
1208
+ if (h == null) return {};
1209
+ var g, l, p = {}, w = Object.keys(h);
1210
+ for (l = 0; l < w.length; l++) y.indexOf(g = w[l]) >= 0 || (p[g] = h[g]);
1210
1211
  return p;
1211
- }(e, Ao);
1212
- return hn.cloneElement(za(t, r), n);
1212
+ }(t, Ir);
1213
+ return Ft.cloneElement(Ln(n, i), c);
1213
1214
  };
1214
- function er({ content: e, className: t }) {
1215
- return /* @__PURE__ */ y.jsx("div", { className: t, children: /* @__PURE__ */ y.jsx(
1216
- Fa,
1215
+ function qe({ content: t, className: n }) {
1216
+ return /* @__PURE__ */ u.jsx("div", { className: n, children: /* @__PURE__ */ u.jsx(
1217
+ zn,
1217
1218
  {
1218
1219
  options: {
1219
1220
  overrides: {
@@ -1307,1094 +1308,11 @@ function er({ content: e, className: t }) {
1307
1308
  }
1308
1309
  }
1309
1310
  },
1310
- children: e
1311
+ children: t
1311
1312
  }
1312
1313
  ) });
1313
1314
  }
1314
- var re = function() {
1315
- return re = Object.assign || function(t) {
1316
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1317
- r = arguments[n];
1318
- for (var l in r) Object.prototype.hasOwnProperty.call(r, l) && (t[l] = r[l]);
1319
- }
1320
- return t;
1321
- }, re.apply(this, arguments);
1322
- };
1323
- function Le(e, t, r) {
1324
- if (r || arguments.length === 2) for (var n = 0, i = t.length, l; n < i; n++)
1325
- (l || !(n in t)) && (l || (l = Array.prototype.slice.call(t, 0, n)), l[n] = t[n]);
1326
- return e.concat(l || Array.prototype.slice.call(t));
1327
- }
1328
- function Ua(e) {
1329
- var t = /* @__PURE__ */ Object.create(null);
1330
- return function(r) {
1331
- return t[r] === void 0 && (t[r] = e(r)), t[r];
1332
- };
1333
- }
1334
- var Ba = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Wa = /* @__PURE__ */ Ua(
1335
- function(e) {
1336
- return Ba.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
1337
- }
1338
- /* Z+1 */
1339
- ), z = "-ms-", Qe = "-moz-", I = "-webkit-", En = "comm", bt = "rule", tr = "decl", Va = "@import", Cn = "@keyframes", Ya = "@layer", $n = Math.abs, rr = String.fromCharCode, Wt = Object.assign;
1340
- function Ha(e, t) {
1341
- return K(e, 0) ^ 45 ? (((t << 2 ^ K(e, 0)) << 2 ^ K(e, 1)) << 2 ^ K(e, 2)) << 2 ^ K(e, 3) : 0;
1342
- }
1343
- function Rn(e) {
1344
- return e.trim();
1345
- }
1346
- function be(e, t) {
1347
- return (e = t.exec(e)) ? e[0] : e;
1348
- }
1349
- function R(e, t, r) {
1350
- return e.replace(t, r);
1351
- }
1352
- function lt(e, t, r) {
1353
- return e.indexOf(t, r);
1354
- }
1355
- function K(e, t) {
1356
- return e.charCodeAt(t) | 0;
1357
- }
1358
- function ze(e, t, r) {
1359
- return e.slice(t, r);
1360
- }
1361
- function ve(e) {
1362
- return e.length;
1363
- }
1364
- function _n(e) {
1365
- return e.length;
1366
- }
1367
- function Xe(e, t) {
1368
- return t.push(e), e;
1369
- }
1370
- function Ka(e, t) {
1371
- return e.map(t).join("");
1372
- }
1373
- function Kr(e, t) {
1374
- return e.filter(function(r) {
1375
- return !be(r, t);
1376
- });
1377
- }
1378
- var wt = 1, Fe = 1, jn = 0, le = 0, W = 0, Ye = "";
1379
- function kt(e, t, r, n, i, l, d, u) {
1380
- return { value: e, root: t, parent: r, type: n, props: i, children: l, line: wt, column: Fe, length: d, return: "", siblings: u };
1381
- }
1382
- function Ee(e, t) {
1383
- return Wt(kt("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
1384
- }
1385
- function De(e) {
1386
- for (; e.root; )
1387
- e = Ee(e.root, { children: [e] });
1388
- Xe(e, e.siblings);
1389
- }
1390
- function Ga() {
1391
- return W;
1392
- }
1393
- function qa() {
1394
- return W = le > 0 ? K(Ye, --le) : 0, Fe--, W === 10 && (Fe = 1, wt--), W;
1395
- }
1396
- function he() {
1397
- return W = le < jn ? K(Ye, le++) : 0, Fe++, W === 10 && (Fe = 1, wt++), W;
1398
- }
1399
- function je() {
1400
- return K(Ye, le);
1401
- }
1402
- function ut() {
1403
- return le;
1404
- }
1405
- function St(e, t) {
1406
- return ze(Ye, e, t);
1407
- }
1408
- function Vt(e) {
1409
- switch (e) {
1410
- case 0:
1411
- case 9:
1412
- case 10:
1413
- case 13:
1414
- case 32:
1415
- return 5;
1416
- case 33:
1417
- case 43:
1418
- case 44:
1419
- case 47:
1420
- case 62:
1421
- case 64:
1422
- case 126:
1423
- case 59:
1424
- case 123:
1425
- case 125:
1426
- return 4;
1427
- case 58:
1428
- return 3;
1429
- case 34:
1430
- case 39:
1431
- case 40:
1432
- case 91:
1433
- return 2;
1434
- case 41:
1435
- case 93:
1436
- return 1;
1437
- }
1438
- return 0;
1439
- }
1440
- function Ja(e) {
1441
- return wt = Fe = 1, jn = ve(Ye = e), le = 0, [];
1442
- }
1443
- function Xa(e) {
1444
- return Ye = "", e;
1445
- }
1446
- function Mt(e) {
1447
- return Rn(St(le - 1, Yt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
1448
- }
1449
- function Za(e) {
1450
- for (; (W = je()) && W < 33; )
1451
- he();
1452
- return Vt(e) > 2 || Vt(W) > 3 ? "" : " ";
1453
- }
1454
- function Qa(e, t) {
1455
- for (; --t && he() && !(W < 48 || W > 102 || W > 57 && W < 65 || W > 70 && W < 97); )
1456
- ;
1457
- return St(e, ut() + (t < 6 && je() == 32 && he() == 32));
1458
- }
1459
- function Yt(e) {
1460
- for (; he(); )
1461
- switch (W) {
1462
- case e:
1463
- return le;
1464
- case 34:
1465
- case 39:
1466
- e !== 34 && e !== 39 && Yt(W);
1467
- break;
1468
- case 40:
1469
- e === 41 && Yt(e);
1470
- break;
1471
- case 92:
1472
- he();
1473
- break;
1474
- }
1475
- return le;
1476
- }
1477
- function ei(e, t) {
1478
- for (; he() && e + W !== 57; )
1479
- if (e + W === 84 && je() === 47)
1480
- break;
1481
- return "/*" + St(t, le - 1) + "*" + rr(e === 47 ? e : he());
1482
- }
1483
- function ti(e) {
1484
- for (; !Vt(je()); )
1485
- he();
1486
- return St(e, le);
1487
- }
1488
- function ri(e) {
1489
- return Xa(dt("", null, null, null, [""], e = Ja(e), 0, [0], e));
1490
- }
1491
- function dt(e, t, r, n, i, l, d, u, p) {
1492
- for (var S = 0, v = 0, m = d, E = 0, w = 0, _ = 0, C = 1, N = 1, o = 1, c = 0, s = "", g = i, h = l, x = n, b = s; N; )
1493
- switch (_ = c, c = he()) {
1494
- case 40:
1495
- if (_ != 108 && K(b, m - 1) == 58) {
1496
- lt(b += R(Mt(c), "&", "&\f"), "&\f", $n(S ? u[S - 1] : 0)) != -1 && (o = -1);
1497
- break;
1498
- }
1499
- case 34:
1500
- case 39:
1501
- case 91:
1502
- b += Mt(c);
1503
- break;
1504
- case 9:
1505
- case 10:
1506
- case 13:
1507
- case 32:
1508
- b += Za(_);
1509
- break;
1510
- case 92:
1511
- b += Qa(ut() - 1, 7);
1512
- continue;
1513
- case 47:
1514
- switch (je()) {
1515
- case 42:
1516
- case 47:
1517
- Xe(ni(ei(he(), ut()), t, r, p), p);
1518
- break;
1519
- default:
1520
- b += "/";
1521
- }
1522
- break;
1523
- case 123 * C:
1524
- u[S++] = ve(b) * o;
1525
- case 125 * C:
1526
- case 59:
1527
- case 0:
1528
- switch (c) {
1529
- case 0:
1530
- case 125:
1531
- N = 0;
1532
- case 59 + v:
1533
- o == -1 && (b = R(b, /\f/g, "")), w > 0 && ve(b) - m && Xe(w > 32 ? qr(b + ";", n, r, m - 1, p) : qr(R(b, " ", "") + ";", n, r, m - 2, p), p);
1534
- break;
1535
- case 59:
1536
- b += ";";
1537
- default:
1538
- if (Xe(x = Gr(b, t, r, S, v, i, u, s, g = [], h = [], m, l), l), c === 123)
1539
- if (v === 0)
1540
- dt(b, t, x, x, g, l, m, u, h);
1541
- else
1542
- switch (E === 99 && K(b, 3) === 110 ? 100 : E) {
1543
- case 100:
1544
- case 108:
1545
- case 109:
1546
- case 115:
1547
- dt(e, x, x, n && Xe(Gr(e, x, x, 0, 0, i, u, s, i, g = [], m, h), h), i, h, m, u, n ? g : h);
1548
- break;
1549
- default:
1550
- dt(b, x, x, x, [""], h, 0, u, h);
1551
- }
1552
- }
1553
- S = v = w = 0, C = o = 1, s = b = "", m = d;
1554
- break;
1555
- case 58:
1556
- m = 1 + ve(b), w = _;
1557
- default:
1558
- if (C < 1) {
1559
- if (c == 123)
1560
- --C;
1561
- else if (c == 125 && C++ == 0 && qa() == 125)
1562
- continue;
1563
- }
1564
- switch (b += rr(c), c * C) {
1565
- case 38:
1566
- o = v > 0 ? 1 : (b += "\f", -1);
1567
- break;
1568
- case 44:
1569
- u[S++] = (ve(b) - 1) * o, o = 1;
1570
- break;
1571
- case 64:
1572
- je() === 45 && (b += Mt(he())), E = je(), v = m = ve(s = b += ti(ut())), c++;
1573
- break;
1574
- case 45:
1575
- _ === 45 && ve(b) == 2 && (C = 0);
1576
- }
1577
- }
1578
- return l;
1579
- }
1580
- function Gr(e, t, r, n, i, l, d, u, p, S, v, m) {
1581
- for (var E = i - 1, w = i === 0 ? l : [""], _ = _n(w), C = 0, N = 0, o = 0; C < n; ++C)
1582
- for (var c = 0, s = ze(e, E + 1, E = $n(N = d[C])), g = e; c < _; ++c)
1583
- (g = Rn(N > 0 ? w[c] + " " + s : R(s, /&\f/g, w[c]))) && (p[o++] = g);
1584
- return kt(e, t, r, i === 0 ? bt : u, p, S, v, m);
1585
- }
1586
- function ni(e, t, r, n) {
1587
- return kt(e, t, r, En, rr(Ga()), ze(e, 2, -2), 0, n);
1588
- }
1589
- function qr(e, t, r, n, i) {
1590
- return kt(e, t, r, tr, ze(e, 0, n), ze(e, n + 1, -1), n, i);
1591
- }
1592
- function On(e, t, r) {
1593
- switch (Ha(e, t)) {
1594
- case 5103:
1595
- return I + "print-" + e + e;
1596
- case 5737:
1597
- case 4201:
1598
- case 3177:
1599
- case 3433:
1600
- case 1641:
1601
- case 4457:
1602
- case 2921:
1603
- case 5572:
1604
- case 6356:
1605
- case 5844:
1606
- case 3191:
1607
- case 6645:
1608
- case 3005:
1609
- case 6391:
1610
- case 5879:
1611
- case 5623:
1612
- case 6135:
1613
- case 4599:
1614
- case 4855:
1615
- case 4215:
1616
- case 6389:
1617
- case 5109:
1618
- case 5365:
1619
- case 5621:
1620
- case 3829:
1621
- return I + e + e;
1622
- case 4789:
1623
- return Qe + e + e;
1624
- case 5349:
1625
- case 4246:
1626
- case 4810:
1627
- case 6968:
1628
- case 2756:
1629
- return I + e + Qe + e + z + e + e;
1630
- case 5936:
1631
- switch (K(e, t + 11)) {
1632
- case 114:
1633
- return I + e + z + R(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
1634
- case 108:
1635
- return I + e + z + R(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
1636
- case 45:
1637
- return I + e + z + R(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
1638
- }
1639
- case 6828:
1640
- case 4268:
1641
- case 2903:
1642
- return I + e + z + e + e;
1643
- case 6165:
1644
- return I + e + z + "flex-" + e + e;
1645
- case 5187:
1646
- return I + e + R(e, /(\w+).+(:[^]+)/, I + "box-$1$2" + z + "flex-$1$2") + e;
1647
- case 5443:
1648
- return I + e + z + "flex-item-" + R(e, /flex-|-self/g, "") + (be(e, /flex-|baseline/) ? "" : z + "grid-row-" + R(e, /flex-|-self/g, "")) + e;
1649
- case 4675:
1650
- return I + e + z + "flex-line-pack" + R(e, /align-content|flex-|-self/g, "") + e;
1651
- case 5548:
1652
- return I + e + z + R(e, "shrink", "negative") + e;
1653
- case 5292:
1654
- return I + e + z + R(e, "basis", "preferred-size") + e;
1655
- case 6060:
1656
- return I + "box-" + R(e, "-grow", "") + I + e + z + R(e, "grow", "positive") + e;
1657
- case 4554:
1658
- return I + R(e, /([^-])(transform)/g, "$1" + I + "$2") + e;
1659
- case 6187:
1660
- return R(R(R(e, /(zoom-|grab)/, I + "$1"), /(image-set)/, I + "$1"), e, "") + e;
1661
- case 5495:
1662
- case 3959:
1663
- return R(e, /(image-set\([^]*)/, I + "$1$`$1");
1664
- case 4968:
1665
- return R(R(e, /(.+:)(flex-)?(.*)/, I + "box-pack:$3" + z + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + I + e + e;
1666
- case 4200:
1667
- if (!be(e, /flex-|baseline/)) return z + "grid-column-align" + ze(e, t) + e;
1668
- break;
1669
- case 2592:
1670
- case 3360:
1671
- return z + R(e, "template-", "") + e;
1672
- case 4384:
1673
- case 3616:
1674
- return r && r.some(function(n, i) {
1675
- return t = i, be(n.props, /grid-\w+-end/);
1676
- }) ? ~lt(e + (r = r[t].value), "span", 0) ? e : z + R(e, "-start", "") + e + z + "grid-row-span:" + (~lt(r, "span", 0) ? be(r, /\d+/) : +be(r, /\d+/) - +be(e, /\d+/)) + ";" : z + R(e, "-start", "") + e;
1677
- case 4896:
1678
- case 4128:
1679
- return r && r.some(function(n) {
1680
- return be(n.props, /grid-\w+-start/);
1681
- }) ? e : z + R(R(e, "-end", "-span"), "span ", "") + e;
1682
- case 4095:
1683
- case 3583:
1684
- case 4068:
1685
- case 2532:
1686
- return R(e, /(.+)-inline(.+)/, I + "$1$2") + e;
1687
- case 8116:
1688
- case 7059:
1689
- case 5753:
1690
- case 5535:
1691
- case 5445:
1692
- case 5701:
1693
- case 4933:
1694
- case 4677:
1695
- case 5533:
1696
- case 5789:
1697
- case 5021:
1698
- case 4765:
1699
- if (ve(e) - 1 - t > 6)
1700
- switch (K(e, t + 1)) {
1701
- case 109:
1702
- if (K(e, t + 4) !== 45)
1703
- break;
1704
- case 102:
1705
- return R(e, /(.+:)(.+)-([^]+)/, "$1" + I + "$2-$3$1" + Qe + (K(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
1706
- case 115:
1707
- return ~lt(e, "stretch", 0) ? On(R(e, "stretch", "fill-available"), t, r) + e : e;
1708
- }
1709
- break;
1710
- case 5152:
1711
- case 5920:
1712
- return R(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, i, l, d, u, p, S) {
1713
- return z + i + ":" + l + S + (d ? z + i + "-span:" + (u ? p : +p - +l) + S : "") + e;
1714
- });
1715
- case 4949:
1716
- if (K(e, t + 6) === 121)
1717
- return R(e, ":", ":" + I) + e;
1718
- break;
1719
- case 6444:
1720
- switch (K(e, K(e, 14) === 45 ? 18 : 11)) {
1721
- case 120:
1722
- return R(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + I + (K(e, 14) === 45 ? "inline-" : "") + "box$3$1" + I + "$2$3$1" + z + "$2box$3") + e;
1723
- case 100:
1724
- return R(e, ":", ":" + z) + e;
1725
- }
1726
- break;
1727
- case 5719:
1728
- case 2647:
1729
- case 2135:
1730
- case 3927:
1731
- case 2391:
1732
- return R(e, "scroll-", "scroll-snap-") + e;
1733
- }
1734
- return e;
1735
- }
1736
- function mt(e, t) {
1737
- for (var r = "", n = 0; n < e.length; n++)
1738
- r += t(e[n], n, e, t) || "";
1739
- return r;
1740
- }
1741
- function oi(e, t, r, n) {
1742
- switch (e.type) {
1743
- case Ya:
1744
- if (e.children.length) break;
1745
- case Va:
1746
- case tr:
1747
- return e.return = e.return || e.value;
1748
- case En:
1749
- return "";
1750
- case Cn:
1751
- return e.return = e.value + "{" + mt(e.children, n) + "}";
1752
- case bt:
1753
- if (!ve(e.value = e.props.join(","))) return "";
1754
- }
1755
- return ve(r = mt(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
1756
- }
1757
- function ai(e) {
1758
- var t = _n(e);
1759
- return function(r, n, i, l) {
1760
- for (var d = "", u = 0; u < t; u++)
1761
- d += e[u](r, n, i, l) || "";
1762
- return d;
1763
- };
1764
- }
1765
- function ii(e) {
1766
- return function(t) {
1767
- t.root || (t = t.return) && e(t);
1768
- };
1769
- }
1770
- function si(e, t, r, n) {
1771
- if (e.length > -1 && !e.return)
1772
- switch (e.type) {
1773
- case tr:
1774
- e.return = On(e.value, e.length, r);
1775
- return;
1776
- case Cn:
1777
- return mt([Ee(e, { value: R(e.value, "@", "@" + I) })], n);
1778
- case bt:
1779
- if (e.length)
1780
- return Ka(r = e.props, function(i) {
1781
- switch (be(i, n = /(::plac\w+|:read-\w+)/)) {
1782
- case ":read-only":
1783
- case ":read-write":
1784
- De(Ee(e, { props: [R(i, /:(read-\w+)/, ":" + Qe + "$1")] })), De(Ee(e, { props: [i] })), Wt(e, { props: Kr(r, n) });
1785
- break;
1786
- case "::placeholder":
1787
- De(Ee(e, { props: [R(i, /:(plac\w+)/, ":" + I + "input-$1")] })), De(Ee(e, { props: [R(i, /:(plac\w+)/, ":" + Qe + "$1")] })), De(Ee(e, { props: [R(i, /:(plac\w+)/, z + "input-$1")] })), De(Ee(e, { props: [i] })), Wt(e, { props: Kr(r, n) });
1788
- break;
1789
- }
1790
- return "";
1791
- });
1792
- }
1793
- }
1794
- var ci = {
1795
- animationIterationCount: 1,
1796
- aspectRatio: 1,
1797
- borderImageOutset: 1,
1798
- borderImageSlice: 1,
1799
- borderImageWidth: 1,
1800
- boxFlex: 1,
1801
- boxFlexGroup: 1,
1802
- boxOrdinalGroup: 1,
1803
- columnCount: 1,
1804
- columns: 1,
1805
- flex: 1,
1806
- flexGrow: 1,
1807
- flexPositive: 1,
1808
- flexShrink: 1,
1809
- flexNegative: 1,
1810
- flexOrder: 1,
1811
- gridRow: 1,
1812
- gridRowEnd: 1,
1813
- gridRowSpan: 1,
1814
- gridRowStart: 1,
1815
- gridColumn: 1,
1816
- gridColumnEnd: 1,
1817
- gridColumnSpan: 1,
1818
- gridColumnStart: 1,
1819
- msGridRow: 1,
1820
- msGridRowSpan: 1,
1821
- msGridColumn: 1,
1822
- msGridColumnSpan: 1,
1823
- fontWeight: 1,
1824
- lineHeight: 1,
1825
- opacity: 1,
1826
- order: 1,
1827
- orphans: 1,
1828
- tabSize: 1,
1829
- widows: 1,
1830
- zIndex: 1,
1831
- zoom: 1,
1832
- WebkitLineClamp: 1,
1833
- // SVG-related properties
1834
- fillOpacity: 1,
1835
- floodOpacity: 1,
1836
- stopOpacity: 1,
1837
- strokeDasharray: 1,
1838
- strokeDashoffset: 1,
1839
- strokeMiterlimit: 1,
1840
- strokeOpacity: 1,
1841
- strokeWidth: 1
1842
- }, Te = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Tn = "active", Pn = "data-styled-version", Et = "6.1.19", nr = `/*!sc*/
1843
- `, gt = typeof window < "u" && typeof document < "u", li = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), Jr = /invalid hook call/i, nt = /* @__PURE__ */ new Set(), ui = function(e, t) {
1844
- if (process.env.NODE_ENV !== "production") {
1845
- var r = t ? ' with the id of "'.concat(t, '"') : "", n = "The component ".concat(e).concat(r, ` has been created dynamically.
1846
- `) + `You may see this warning because you've called styled inside another component.
1847
- To resolve this only create new StyledComponents outside of any render method and function component.
1848
- See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
1849
- `, i = console.error;
1850
- try {
1851
- var l = !0;
1852
- console.error = function(d) {
1853
- for (var u = [], p = 1; p < arguments.length; p++) u[p - 1] = arguments[p];
1854
- Jr.test(d) ? (l = !1, nt.delete(n)) : i.apply(void 0, Le([d], u, !1));
1855
- }, Ut(), l && !nt.has(n) && (console.warn(n), nt.add(n));
1856
- } catch (d) {
1857
- Jr.test(d.message) && nt.delete(n);
1858
- } finally {
1859
- console.error = i;
1860
- }
1861
- }
1862
- }, Ct = Object.freeze([]), Ue = Object.freeze({});
1863
- function di(e, t, r) {
1864
- return r === void 0 && (r = Ue), e.theme !== r.theme && e.theme || t || r.theme;
1865
- }
1866
- var Ht = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), pi = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, fi = /(^-|-$)/g;
1867
- function Xr(e) {
1868
- return e.replace(pi, "-").replace(fi, "");
1869
- }
1870
- var hi = /(a)(d)/gi, ot = 52, Zr = function(e) {
1871
- return String.fromCharCode(e + (e > 25 ? 39 : 97));
1872
- };
1873
- function Kt(e) {
1874
- var t, r = "";
1875
- for (t = Math.abs(e); t > ot; t = t / ot | 0) r = Zr(t % ot) + r;
1876
- return (Zr(t % ot) + r).replace(hi, "$1-$2");
1877
- }
1878
- var Lt, An = 5381, Re = function(e, t) {
1879
- for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r);
1880
- return e;
1881
- }, In = function(e) {
1882
- return Re(An, e);
1883
- };
1884
- function mi(e) {
1885
- return Kt(In(e) >>> 0);
1886
- }
1887
- function Nn(e) {
1888
- return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
1889
- }
1890
- function zt(e) {
1891
- return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
1892
- }
1893
- var Dn = typeof Symbol == "function" && Symbol.for, Mn = Dn ? Symbol.for("react.memo") : 60115, gi = Dn ? Symbol.for("react.forward_ref") : 60112, yi = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, vi = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, Ln = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, xi = ((Lt = {})[gi] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Lt[Mn] = Ln, Lt);
1894
- function Qr(e) {
1895
- return ("type" in (t = e) && t.type.$$typeof) === Mn ? Ln : "$$typeof" in e ? xi[e.$$typeof] : yi;
1896
- var t;
1897
- }
1898
- var bi = Object.defineProperty, wi = Object.getOwnPropertyNames, en = Object.getOwnPropertySymbols, ki = Object.getOwnPropertyDescriptor, Si = Object.getPrototypeOf, tn = Object.prototype;
1899
- function zn(e, t, r) {
1900
- if (typeof t != "string") {
1901
- if (tn) {
1902
- var n = Si(t);
1903
- n && n !== tn && zn(e, n, r);
1904
- }
1905
- var i = wi(t);
1906
- en && (i = i.concat(en(t)));
1907
- for (var l = Qr(e), d = Qr(t), u = 0; u < i.length; ++u) {
1908
- var p = i[u];
1909
- if (!(p in vi || r && r[p] || d && p in d || l && p in l)) {
1910
- var S = ki(t, p);
1911
- try {
1912
- bi(e, p, S);
1913
- } catch {
1914
- }
1915
- }
1916
- }
1917
- }
1918
- return e;
1919
- }
1920
- function Be(e) {
1921
- return typeof e == "function";
1922
- }
1923
- function or(e) {
1924
- return typeof e == "object" && "styledComponentId" in e;
1925
- }
1926
- function _e(e, t) {
1927
- return e && t ? "".concat(e, " ").concat(t) : e || t || "";
1928
- }
1929
- function rn(e, t) {
1930
- if (e.length === 0) return "";
1931
- for (var r = e[0], n = 1; n < e.length; n++) r += e[n];
1932
- return r;
1933
- }
1934
- function We(e) {
1935
- return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
1936
- }
1937
- function Gt(e, t, r) {
1938
- if (r === void 0 && (r = !1), !r && !We(e) && !Array.isArray(e)) return t;
1939
- if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] = Gt(e[n], t[n]);
1940
- else if (We(t)) for (var n in t) e[n] = Gt(e[n], t[n]);
1941
- return e;
1942
- }
1943
- function ar(e, t) {
1944
- Object.defineProperty(e, "toString", { value: t });
1945
- }
1946
- var Ei = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
1947
-
1948
- `, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
1949
-
1950
- - Are you trying to reuse it across renders?
1951
- - Are you accidentally calling collectStyles twice?
1952
-
1953
- `, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
1954
-
1955
- `, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
1956
-
1957
- - Does this error occur on the client and is your target falsy?
1958
- - Does this error occur on the server and is the sheet falsy?
1959
-
1960
- `, 5: `The clone method cannot be used on the client!
1961
-
1962
- - Are you running in a client-like environment on the server?
1963
- - Are you trying to run SSR on the client?
1964
-
1965
- `, 6: `Trying to insert a new style tag, but the given Node is unmounted!
1966
-
1967
- - Are you using a custom target that isn't mounted?
1968
- - Does your document not have a valid head element?
1969
- - Have you accidentally removed a style tag manually?
1970
-
1971
- `, 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: `ThemeProvider: Please make your "theme" prop an object.
1972
-
1973
- `, 9: "Missing document `<head>`\n\n", 10: `Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
1974
-
1975
- `, 11: `_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
1976
-
1977
- `, 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: `%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
1978
-
1979
- `, 14: `ThemeProvider: "theme" prop is required.
1980
-
1981
- `, 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: `Reached the limit of how many styled components may be created at group %s.
1982
- You may only create up to 1,073,741,824 components. If you're creating components dynamically,
1983
- as for instance in your render method then you may be running into this limitation.
1984
-
1985
- `, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
1986
- Has styled-components' style tag been unmounted or altered by another script?
1987
- `, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
1988
- function Ci() {
1989
- for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
1990
- for (var r = e[0], n = [], i = 1, l = e.length; i < l; i += 1) n.push(e[i]);
1991
- return n.forEach(function(d) {
1992
- r = r.replace(/%[a-z]/, d);
1993
- }), r;
1994
- }
1995
- function He(e) {
1996
- for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
1997
- return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(Ci.apply(void 0, Le([Ei[e]], t, !1)).trim());
1998
- }
1999
- var $i = function() {
2000
- function e(t) {
2001
- this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
2002
- }
2003
- return e.prototype.indexOfGroup = function(t) {
2004
- for (var r = 0, n = 0; n < t; n++) r += this.groupSizes[n];
2005
- return r;
2006
- }, e.prototype.insertRules = function(t, r) {
2007
- if (t >= this.groupSizes.length) {
2008
- for (var n = this.groupSizes, i = n.length, l = i; t >= l; ) if ((l <<= 1) < 0) throw He(16, "".concat(t));
2009
- this.groupSizes = new Uint32Array(l), this.groupSizes.set(n), this.length = l;
2010
- for (var d = i; d < l; d++) this.groupSizes[d] = 0;
2011
- }
2012
- for (var u = this.indexOfGroup(t + 1), p = (d = 0, r.length); d < p; d++) this.tag.insertRule(u, r[d]) && (this.groupSizes[t]++, u++);
2013
- }, e.prototype.clearGroup = function(t) {
2014
- if (t < this.length) {
2015
- var r = this.groupSizes[t], n = this.indexOfGroup(t), i = n + r;
2016
- this.groupSizes[t] = 0;
2017
- for (var l = n; l < i; l++) this.tag.deleteRule(n);
2018
- }
2019
- }, e.prototype.getGroup = function(t) {
2020
- var r = "";
2021
- if (t >= this.length || this.groupSizes[t] === 0) return r;
2022
- for (var n = this.groupSizes[t], i = this.indexOfGroup(t), l = i + n, d = i; d < l; d++) r += "".concat(this.tag.getRule(d)).concat(nr);
2023
- return r;
2024
- }, e;
2025
- }(), Ri = 1 << 30, pt = /* @__PURE__ */ new Map(), yt = /* @__PURE__ */ new Map(), ft = 1, at = function(e) {
2026
- if (pt.has(e)) return pt.get(e);
2027
- for (; yt.has(ft); ) ft++;
2028
- var t = ft++;
2029
- if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > Ri)) throw He(16, "".concat(t));
2030
- return pt.set(e, t), yt.set(t, e), t;
2031
- }, _i = function(e, t) {
2032
- ft = t + 1, pt.set(e, t), yt.set(t, e);
2033
- }, ji = "style[".concat(Te, "][").concat(Pn, '="').concat(Et, '"]'), Oi = new RegExp("^".concat(Te, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), Ti = function(e, t, r) {
2034
- for (var n, i = r.split(","), l = 0, d = i.length; l < d; l++) (n = i[l]) && e.registerName(t, n);
2035
- }, Pi = function(e, t) {
2036
- for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(nr), i = [], l = 0, d = n.length; l < d; l++) {
2037
- var u = n[l].trim();
2038
- if (u) {
2039
- var p = u.match(Oi);
2040
- if (p) {
2041
- var S = 0 | parseInt(p[1], 10), v = p[2];
2042
- S !== 0 && (_i(v, S), Ti(e, v, p[3]), e.getTag().insertRules(S, i)), i.length = 0;
2043
- } else i.push(u);
2044
- }
2045
- }
2046
- }, nn = function(e) {
2047
- for (var t = document.querySelectorAll(ji), r = 0, n = t.length; r < n; r++) {
2048
- var i = t[r];
2049
- i && i.getAttribute(Te) !== Tn && (Pi(e, i), i.parentNode && i.parentNode.removeChild(i));
2050
- }
2051
- };
2052
- function Ai() {
2053
- return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
2054
- }
2055
- var Fn = function(e) {
2056
- var t = document.head, r = e || t, n = document.createElement("style"), i = function(u) {
2057
- var p = Array.from(u.querySelectorAll("style[".concat(Te, "]")));
2058
- return p[p.length - 1];
2059
- }(r), l = i !== void 0 ? i.nextSibling : null;
2060
- n.setAttribute(Te, Tn), n.setAttribute(Pn, Et);
2061
- var d = Ai();
2062
- return d && n.setAttribute("nonce", d), r.insertBefore(n, l), n;
2063
- }, Ii = function() {
2064
- function e(t) {
2065
- this.element = Fn(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) {
2066
- if (r.sheet) return r.sheet;
2067
- for (var n = document.styleSheets, i = 0, l = n.length; i < l; i++) {
2068
- var d = n[i];
2069
- if (d.ownerNode === r) return d;
2070
- }
2071
- throw He(17);
2072
- }(this.element), this.length = 0;
2073
- }
2074
- return e.prototype.insertRule = function(t, r) {
2075
- try {
2076
- return this.sheet.insertRule(r, t), this.length++, !0;
2077
- } catch {
2078
- return !1;
2079
- }
2080
- }, e.prototype.deleteRule = function(t) {
2081
- this.sheet.deleteRule(t), this.length--;
2082
- }, e.prototype.getRule = function(t) {
2083
- var r = this.sheet.cssRules[t];
2084
- return r && r.cssText ? r.cssText : "";
2085
- }, e;
2086
- }(), Ni = function() {
2087
- function e(t) {
2088
- this.element = Fn(t), this.nodes = this.element.childNodes, this.length = 0;
2089
- }
2090
- return e.prototype.insertRule = function(t, r) {
2091
- if (t <= this.length && t >= 0) {
2092
- var n = document.createTextNode(r);
2093
- return this.element.insertBefore(n, this.nodes[t] || null), this.length++, !0;
2094
- }
2095
- return !1;
2096
- }, e.prototype.deleteRule = function(t) {
2097
- this.element.removeChild(this.nodes[t]), this.length--;
2098
- }, e.prototype.getRule = function(t) {
2099
- return t < this.length ? this.nodes[t].textContent : "";
2100
- }, e;
2101
- }(), Di = function() {
2102
- function e(t) {
2103
- this.rules = [], this.length = 0;
2104
- }
2105
- return e.prototype.insertRule = function(t, r) {
2106
- return t <= this.length && (this.rules.splice(t, 0, r), this.length++, !0);
2107
- }, e.prototype.deleteRule = function(t) {
2108
- this.rules.splice(t, 1), this.length--;
2109
- }, e.prototype.getRule = function(t) {
2110
- return t < this.length ? this.rules[t] : "";
2111
- }, e;
2112
- }(), on = gt, Mi = { isServer: !gt, useCSSOMInjection: !li }, Un = function() {
2113
- function e(t, r, n) {
2114
- t === void 0 && (t = Ue), r === void 0 && (r = {});
2115
- var i = this;
2116
- this.options = re(re({}, Mi), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && gt && on && (on = !1, nn(this)), ar(this, function() {
2117
- return function(l) {
2118
- for (var d = l.getTag(), u = d.length, p = "", S = function(m) {
2119
- var E = function(o) {
2120
- return yt.get(o);
2121
- }(m);
2122
- if (E === void 0) return "continue";
2123
- var w = l.names.get(E), _ = d.getGroup(m);
2124
- if (w === void 0 || !w.size || _.length === 0) return "continue";
2125
- var C = "".concat(Te, ".g").concat(m, '[id="').concat(E, '"]'), N = "";
2126
- w !== void 0 && w.forEach(function(o) {
2127
- o.length > 0 && (N += "".concat(o, ","));
2128
- }), p += "".concat(_).concat(C, '{content:"').concat(N, '"}').concat(nr);
2129
- }, v = 0; v < u; v++) S(v);
2130
- return p;
2131
- }(i);
2132
- });
2133
- }
2134
- return e.registerId = function(t) {
2135
- return at(t);
2136
- }, e.prototype.rehydrate = function() {
2137
- !this.server && gt && nn(this);
2138
- }, e.prototype.reconstructWithOptions = function(t, r) {
2139
- return r === void 0 && (r = !0), new e(re(re({}, this.options), t), this.gs, r && this.names || void 0);
2140
- }, e.prototype.allocateGSInstance = function(t) {
2141
- return this.gs[t] = (this.gs[t] || 0) + 1;
2142
- }, e.prototype.getTag = function() {
2143
- return this.tag || (this.tag = (t = function(r) {
2144
- var n = r.useCSSOMInjection, i = r.target;
2145
- return r.isServer ? new Di(i) : n ? new Ii(i) : new Ni(i);
2146
- }(this.options), new $i(t)));
2147
- var t;
2148
- }, e.prototype.hasNameForId = function(t, r) {
2149
- return this.names.has(t) && this.names.get(t).has(r);
2150
- }, e.prototype.registerName = function(t, r) {
2151
- if (at(t), this.names.has(t)) this.names.get(t).add(r);
2152
- else {
2153
- var n = /* @__PURE__ */ new Set();
2154
- n.add(r), this.names.set(t, n);
2155
- }
2156
- }, e.prototype.insertRules = function(t, r, n) {
2157
- this.registerName(t, r), this.getTag().insertRules(at(t), n);
2158
- }, e.prototype.clearNames = function(t) {
2159
- this.names.has(t) && this.names.get(t).clear();
2160
- }, e.prototype.clearRules = function(t) {
2161
- this.getTag().clearGroup(at(t)), this.clearNames(t);
2162
- }, e.prototype.clearTag = function() {
2163
- this.tag = void 0;
2164
- }, e;
2165
- }(), Li = /&/g, zi = /^\s*\/\/.*$/gm;
2166
- function Bn(e, t) {
2167
- return e.map(function(r) {
2168
- return r.type === "rule" && (r.value = "".concat(t, " ").concat(r.value), r.value = r.value.replaceAll(",", ",".concat(t, " ")), r.props = r.props.map(function(n) {
2169
- return "".concat(t, " ").concat(n);
2170
- })), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = Bn(r.children, t)), r;
2171
- });
2172
- }
2173
- function Fi(e) {
2174
- var t, r, n, i = Ue, l = i.options, d = l === void 0 ? Ue : l, u = i.plugins, p = u === void 0 ? Ct : u, S = function(E, w, _) {
2175
- return _.startsWith(r) && _.endsWith(r) && _.replaceAll(r, "").length > 0 ? ".".concat(t) : E;
2176
- }, v = p.slice();
2177
- v.push(function(E) {
2178
- E.type === bt && E.value.includes("&") && (E.props[0] = E.props[0].replace(Li, r).replace(n, S));
2179
- }), d.prefix && v.push(si), v.push(oi);
2180
- var m = function(E, w, _, C) {
2181
- w === void 0 && (w = ""), _ === void 0 && (_ = ""), C === void 0 && (C = "&"), t = C, r = w, n = new RegExp("\\".concat(r, "\\b"), "g");
2182
- var N = E.replace(zi, ""), o = ri(_ || w ? "".concat(_, " ").concat(w, " { ").concat(N, " }") : N);
2183
- d.namespace && (o = Bn(o, d.namespace));
2184
- var c = [];
2185
- return mt(o, ai(v.concat(ii(function(s) {
2186
- return c.push(s);
2187
- })))), c;
2188
- };
2189
- return m.hash = p.length ? p.reduce(function(E, w) {
2190
- return w.name || He(15), Re(E, w.name);
2191
- }, An).toString() : "", m;
2192
- }
2193
- var Ui = new Un(), qt = Fi(), Wn = J.createContext({ shouldForwardProp: void 0, styleSheet: Ui, stylis: qt });
2194
- Wn.Consumer;
2195
- J.createContext(void 0);
2196
- function an() {
2197
- return $o(Wn);
2198
- }
2199
- var sn = function() {
2200
- function e(t, r) {
2201
- var n = this;
2202
- this.inject = function(i, l) {
2203
- l === void 0 && (l = qt);
2204
- var d = n.name + l.hash;
2205
- i.hasNameForId(n.id, d) || i.insertRules(n.id, d, l(n.rules, d, "@keyframes"));
2206
- }, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r, ar(this, function() {
2207
- throw He(12, String(n.name));
2208
- });
2209
- }
2210
- return e.prototype.getName = function(t) {
2211
- return t === void 0 && (t = qt), this.name + t.hash;
2212
- }, e;
2213
- }(), Bi = function(e) {
2214
- return e >= "A" && e <= "Z";
2215
- };
2216
- function cn(e) {
2217
- for (var t = "", r = 0; r < e.length; r++) {
2218
- var n = e[r];
2219
- if (r === 1 && n === "-" && e[0] === "-") return e;
2220
- Bi(n) ? t += "-" + n.toLowerCase() : t += n;
2221
- }
2222
- return t.startsWith("ms-") ? "-" + t : t;
2223
- }
2224
- var Vn = function(e) {
2225
- return e == null || e === !1 || e === "";
2226
- }, Yn = function(e) {
2227
- var t, r, n = [];
2228
- for (var i in e) {
2229
- var l = e[i];
2230
- e.hasOwnProperty(i) && !Vn(l) && (Array.isArray(l) && l.isCss || Be(l) ? n.push("".concat(cn(i), ":"), l, ";") : We(l) ? n.push.apply(n, Le(Le(["".concat(i, " {")], Yn(l), !1), ["}"], !1)) : n.push("".concat(cn(i), ": ").concat((t = i, (r = l) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || t in ci || t.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
2231
- }
2232
- return n;
2233
- };
2234
- function Oe(e, t, r, n) {
2235
- if (Vn(e)) return [];
2236
- if (or(e)) return [".".concat(e.styledComponentId)];
2237
- if (Be(e)) {
2238
- if (!Be(l = e) || l.prototype && l.prototype.isReactComponent || !t) return [e];
2239
- var i = e(t);
2240
- return process.env.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || i instanceof sn || We(i) || i === null || console.error("".concat(Nn(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), Oe(i, t, r, n);
2241
- }
2242
- var l;
2243
- return e instanceof sn ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : We(e) ? Yn(e) : Array.isArray(e) ? Array.prototype.concat.apply(Ct, e.map(function(d) {
2244
- return Oe(d, t, r, n);
2245
- })) : [e.toString()];
2246
- }
2247
- function Wi(e) {
2248
- for (var t = 0; t < e.length; t += 1) {
2249
- var r = e[t];
2250
- if (Be(r) && !or(r)) return !1;
2251
- }
2252
- return !0;
2253
- }
2254
- var Vi = In(Et), Yi = function() {
2255
- function e(t, r, n) {
2256
- this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (n === void 0 || n.isStatic) && Wi(t), this.componentId = r, this.baseHash = Re(Vi, r), this.baseStyle = n, Un.registerId(r);
2257
- }
2258
- return e.prototype.generateAndInjectStyles = function(t, r, n) {
2259
- var i = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, n) : "";
2260
- if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) i = _e(i, this.staticRulesId);
2261
- else {
2262
- var l = rn(Oe(this.rules, t, r, n)), d = Kt(Re(this.baseHash, l) >>> 0);
2263
- if (!r.hasNameForId(this.componentId, d)) {
2264
- var u = n(l, ".".concat(d), void 0, this.componentId);
2265
- r.insertRules(this.componentId, d, u);
2266
- }
2267
- i = _e(i, d), this.staticRulesId = d;
2268
- }
2269
- else {
2270
- for (var p = Re(this.baseHash, n.hash), S = "", v = 0; v < this.rules.length; v++) {
2271
- var m = this.rules[v];
2272
- if (typeof m == "string") S += m, process.env.NODE_ENV !== "production" && (p = Re(p, m));
2273
- else if (m) {
2274
- var E = rn(Oe(m, t, r, n));
2275
- p = Re(p, E + v), S += E;
2276
- }
2277
- }
2278
- if (S) {
2279
- var w = Kt(p >>> 0);
2280
- r.hasNameForId(this.componentId, w) || r.insertRules(this.componentId, w, n(S, ".".concat(w), void 0, this.componentId)), i = _e(i, w);
2281
- }
2282
- }
2283
- return i;
2284
- }, e;
2285
- }(), Hn = J.createContext(void 0);
2286
- Hn.Consumer;
2287
- var Ft = {}, ln = /* @__PURE__ */ new Set();
2288
- function Hi(e, t, r) {
2289
- var n = or(e), i = e, l = !zt(e), d = t.attrs, u = d === void 0 ? Ct : d, p = t.componentId, S = p === void 0 ? function(g, h) {
2290
- var x = typeof g != "string" ? "sc" : Xr(g);
2291
- Ft[x] = (Ft[x] || 0) + 1;
2292
- var b = "".concat(x, "-").concat(mi(Et + x + Ft[x]));
2293
- return h ? "".concat(h, "-").concat(b) : b;
2294
- }(t.displayName, t.parentComponentId) : p, v = t.displayName, m = v === void 0 ? function(g) {
2295
- return zt(g) ? "styled.".concat(g) : "Styled(".concat(Nn(g), ")");
2296
- }(e) : v, E = t.displayName && t.componentId ? "".concat(Xr(t.displayName), "-").concat(t.componentId) : t.componentId || S, w = n && i.attrs ? i.attrs.concat(u).filter(Boolean) : u, _ = t.shouldForwardProp;
2297
- if (n && i.shouldForwardProp) {
2298
- var C = i.shouldForwardProp;
2299
- if (t.shouldForwardProp) {
2300
- var N = t.shouldForwardProp;
2301
- _ = function(g, h) {
2302
- return C(g, h) && N(g, h);
2303
- };
2304
- } else _ = C;
2305
- }
2306
- var o = new Yi(r, E, n ? i.componentStyle : void 0);
2307
- function c(g, h) {
2308
- return function(x, b, T) {
2309
- var M = x.attrs, V = x.componentStyle, D = x.defaultProps, Y = x.foldedComponentIds, P = x.styledComponentId, Q = x.target, H = J.useContext(Hn), ae = an(), ee = x.shouldForwardProp || ae.shouldForwardProp;
2310
- process.env.NODE_ENV !== "production" && Or(P);
2311
- var ne = di(b, H, D) || Ue, G = function(me, ue, ge) {
2312
- for (var de, pe = re(re({}, ue), { className: void 0, theme: ge }), we = 0; we < me.length; we += 1) {
2313
- var Pe = Be(de = me[we]) ? de(pe) : de;
2314
- for (var fe in Pe) pe[fe] = fe === "className" ? _e(pe[fe], Pe[fe]) : fe === "style" ? re(re({}, pe[fe]), Pe[fe]) : Pe[fe];
2315
- }
2316
- return ue.className && (pe.className = _e(pe.className, ue.className)), pe;
2317
- }(M, b, ne), ie = G.as || Q, oe = {};
2318
- for (var F in G) G[F] === void 0 || F[0] === "$" || F === "as" || F === "theme" && G.theme === ne || (F === "forwardedAs" ? oe.as = G.forwardedAs : ee && !ee(F, ie) || (oe[F] = G[F], ee || process.env.NODE_ENV !== "development" || Wa(F) || ln.has(F) || !Ht.has(ie) || (ln.add(F), console.warn('styled-components: it looks like an unknown prop "'.concat(F, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
2319
- var q = function(me, ue) {
2320
- var ge = an(), de = me.generateAndInjectStyles(ue, ge.styleSheet, ge.stylis);
2321
- return process.env.NODE_ENV !== "production" && Or(de), de;
2322
- }(V, G);
2323
- process.env.NODE_ENV !== "production" && x.warnTooManyClasses && x.warnTooManyClasses(q);
2324
- var se = _e(Y, P);
2325
- return q && (se += " " + q), G.className && (se += " " + G.className), oe[zt(ie) && !Ht.has(ie) ? "class" : "className"] = se, T && (oe.ref = T), ht(ie, oe);
2326
- }(s, g, h);
2327
- }
2328
- c.displayName = m;
2329
- var s = J.forwardRef(c);
2330
- return s.attrs = w, s.componentStyle = o, s.displayName = m, s.shouldForwardProp = _, s.foldedComponentIds = n ? _e(i.foldedComponentIds, i.styledComponentId) : "", s.styledComponentId = E, s.target = n ? i.target : e, Object.defineProperty(s, "defaultProps", { get: function() {
2331
- return this._foldedDefaultProps;
2332
- }, set: function(g) {
2333
- this._foldedDefaultProps = n ? function(h) {
2334
- for (var x = [], b = 1; b < arguments.length; b++) x[b - 1] = arguments[b];
2335
- for (var T = 0, M = x; T < M.length; T++) Gt(h, M[T], !0);
2336
- return h;
2337
- }({}, i.defaultProps, g) : g;
2338
- } }), process.env.NODE_ENV !== "production" && (ui(m, E), s.warnTooManyClasses = /* @__PURE__ */ function(g, h) {
2339
- var x = {}, b = !1;
2340
- return function(T) {
2341
- if (!b && (x[T] = !0, Object.keys(x).length >= 200)) {
2342
- var M = h ? ' with the id of "'.concat(h, '"') : "";
2343
- console.warn("Over ".concat(200, " classes were generated for component ").concat(g).concat(M, `.
2344
- `) + `Consider using the attrs method, together with a style object for frequently changed styles.
2345
- Example:
2346
- const Component = styled.div.attrs(props => ({
2347
- style: {
2348
- background: props.background,
2349
- },
2350
- }))\`width: 100%;\`
2351
-
2352
- <Component />`), b = !0, x = {};
2353
- }
2354
- };
2355
- }(m, E)), ar(s, function() {
2356
- return ".".concat(s.styledComponentId);
2357
- }), l && zn(s, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), s;
2358
- }
2359
- function un(e, t) {
2360
- for (var r = [e[0]], n = 0, i = t.length; n < i; n += 1) r.push(t[n], e[n + 1]);
2361
- return r;
2362
- }
2363
- var dn = function(e) {
2364
- return Object.assign(e, { isCss: !0 });
2365
- };
2366
- function Ki(e) {
2367
- for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
2368
- if (Be(e) || We(e)) return dn(Oe(un(Ct, Le([e], t, !0))));
2369
- var n = e;
2370
- return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? Oe(n) : dn(Oe(un(n, t)));
2371
- }
2372
- function Jt(e, t, r) {
2373
- if (r === void 0 && (r = Ue), !t) throw He(1, t);
2374
- var n = function(i) {
2375
- for (var l = [], d = 1; d < arguments.length; d++) l[d - 1] = arguments[d];
2376
- return e(t, r, Ki.apply(void 0, Le([i], l, !1)));
2377
- };
2378
- return n.attrs = function(i) {
2379
- return Jt(e, t, re(re({}, r), { attrs: Array.prototype.concat(r.attrs, i).filter(Boolean) }));
2380
- }, n.withConfig = function(i) {
2381
- return Jt(e, t, re(re({}, r), i));
2382
- }, n;
2383
- }
2384
- var Kn = function(e) {
2385
- return Jt(Hi, e);
2386
- }, Z = Kn;
2387
- Ht.forEach(function(e) {
2388
- Z[e] = Kn(e);
2389
- });
2390
- process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
2391
- Perhaps you're looking to import 'styled-components/native'?
2392
- Read more about this at https://www.styled-components.com/docs/basics#react-native`);
2393
- var it = "__sc-".concat(Te, "__");
2394
- process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[it] || (window[it] = 0), window[it] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
2395
-
2396
- See https://s-c.sh/2BAXzed for more info.`), window[it] += 1);
2397
- const Gn = Z.div`
1315
+ const Jt = Y.div`
2398
1316
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
2399
1317
  background-color: white;
2400
1318
  border: 1px solid #e5e7eb;
@@ -2410,19 +1328,19 @@ const Gn = Z.div`
2410
1328
  background-color: #1f2937;
2411
1329
  border-color: #374151;
2412
1330
  }
2413
- `, Ve = Z.div`
1331
+ `, pe = Y.div`
2414
1332
  max-width: 80%;
2415
1333
  padding: 12px;
2416
1334
  border-radius: 8px;
2417
1335
  font-size: 14px;
2418
1336
  word-break: break-word;
2419
- margin-left: ${(e) => e.$isUser ? "auto" : "0"};
2420
- margin-right: ${(e) => e.$isUser ? "0" : "auto"};
1337
+ margin-left: ${(t) => t.$isUser ? "auto" : "0"};
1338
+ margin-right: ${(t) => t.$isUser ? "0" : "auto"};
2421
1339
  line-height: 1.5;
2422
1340
 
2423
1341
  /* User message styles */
2424
- background-color: ${(e) => e.$isUser ? "#e5e7eb" : "transparent"};
2425
- color: ${(e) => (e.$isUser, "#111827")};
1342
+ background-color: ${(t) => t.$isUser ? "#e5e7eb" : "transparent"};
1343
+ color: ${(t) => (t.$isUser, "#111827")};
2426
1344
 
2427
1345
  /* Ensure bold text has proper contrast */
2428
1346
  strong, b {
@@ -2432,15 +1350,15 @@ const Gn = Z.div`
2432
1350
 
2433
1351
  /* Dark mode support */
2434
1352
  @media (prefers-color-scheme: dark) {
2435
- background-color: ${(e) => e.$isUser ? "#374151" : "transparent"};
2436
- color: ${(e) => (e.$isUser, "#f9fafb")};
1353
+ background-color: ${(t) => t.$isUser ? "#374151" : "transparent"};
1354
+ color: ${(t) => (t.$isUser, "#f9fafb")};
2437
1355
 
2438
1356
  strong, b {
2439
1357
  color: #ffffff;
2440
1358
  font-weight: 700;
2441
1359
  }
2442
1360
  }
2443
- `, ir = Z.div`
1361
+ `, Je = Y.div`
2444
1362
  display: flex;
2445
1363
  align-items: center;
2446
1364
  gap: 8px;
@@ -2452,7 +1370,7 @@ const Gn = Z.div`
2452
1370
  background-color: #1f2937;
2453
1371
  border-top-color: #374151;
2454
1372
  }
2455
- `, Gi = Z.textarea`
1373
+ `, Wn = Y.textarea`
2456
1374
  flex: 1;
2457
1375
  width: 100%;
2458
1376
  min-height: 40px;
@@ -2496,7 +1414,7 @@ const Gn = Z.div`
2496
1414
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
2497
1415
  }
2498
1416
  }
2499
- `, sr = Z.button`
1417
+ `, Ge = Y.button`
2500
1418
  width: 32px;
2501
1419
  height: 32px;
2502
1420
  min-width: 32px;
@@ -2528,7 +1446,7 @@ const Gn = Z.div`
2528
1446
  width: 16px;
2529
1447
  height: 16px;
2530
1448
  }
2531
- `, qi = Z.button`
1449
+ `, Bn = Y.button`
2532
1450
  position: fixed;
2533
1451
  z-index: 50;
2534
1452
  height: 48px;
@@ -2547,8 +1465,8 @@ const Gn = Z.div`
2547
1465
  transition: all 0.2s ease;
2548
1466
 
2549
1467
  /* Responsive positioning */
2550
- ${(e) => {
2551
- switch (e.$position) {
1468
+ ${(t) => {
1469
+ switch (t.$position) {
2552
1470
  case "bottom-left":
2553
1471
  return `
2554
1472
  bottom: max(12px, 1vw);
@@ -2612,7 +1530,7 @@ const Gn = Z.div`
2612
1530
  align-items: center;
2613
1531
  justify-content: center;
2614
1532
  }
2615
- `, Ji = Z.div`
1533
+ `, Yn = Y.div`
2616
1534
  position: fixed;
2617
1535
  z-index: 50;
2618
1536
  width: 320px;
@@ -2624,8 +1542,8 @@ const Gn = Z.div`
2624
1542
  flex-direction: column;
2625
1543
 
2626
1544
  /* Responsive positioning */
2627
- ${(e) => {
2628
- switch (e.$position) {
1545
+ ${(t) => {
1546
+ switch (t.$position) {
2629
1547
  case "bottom-left":
2630
1548
  return `
2631
1549
  bottom: max(12px, 1vw);
@@ -2668,9 +1586,9 @@ const Gn = Z.div`
2668
1586
  @media (min-width: 640px) {
2669
1587
  width: 384px;
2670
1588
  }
2671
- `, Xi = Z.div`
1589
+ `, Kn = Y.div`
2672
1590
  padding: 12px 16px;
2673
- background: ${(e) => e.primaryColor || "#3b82f6"};
1591
+ background: ${(t) => t.primaryColor || "#3b82f6"};
2674
1592
  color: white;
2675
1593
  border-radius: 8px 8px 0 0;
2676
1594
  display: flex;
@@ -2690,7 +1608,7 @@ const Gn = Z.div`
2690
1608
  gap: 4px;
2691
1609
  }
2692
1610
  `;
2693
- Z.button`
1611
+ Y.button`
2694
1612
  width: 24px;
2695
1613
  height: 24px;
2696
1614
  background: transparent;
@@ -2712,7 +1630,7 @@ Z.button`
2712
1630
  height: 16px;
2713
1631
  }
2714
1632
  `;
2715
- const cr = Z.div`
1633
+ const Ze = Y.div`
2716
1634
  flex: 1;
2717
1635
  overflow-y: auto;
2718
1636
  padding: 16px;
@@ -2751,7 +1669,7 @@ const cr = Z.div`
2751
1669
  background: #9ca3af;
2752
1670
  }
2753
1671
  }
2754
- `, lr = Z.div`
1672
+ `, Xe = Y.div`
2755
1673
  display: flex;
2756
1674
  gap: 4px;
2757
1675
  align-items: center;
@@ -2782,15 +1700,15 @@ const cr = Z.div`
2782
1700
  background: #9ca3af;
2783
1701
  }
2784
1702
  }
2785
- `, ur = Z.div`
1703
+ `, Qe = Y.div`
2786
1704
  font-size: 12px;
2787
1705
  margin-top: 4px;
2788
- color: ${(e) => (e.$isUser, "#6b7280")};
1706
+ color: ${(t) => (t.$isUser, "#6b7280")};
2789
1707
 
2790
1708
  @media (prefers-color-scheme: dark) {
2791
- color: ${(e) => (e.$isUser, "#9ca3af")};
1709
+ color: ${(t) => (t.$isUser, "#9ca3af")};
2792
1710
  }
2793
- `, dr = Z.div`
1711
+ `, et = Y.div`
2794
1712
  font-size: 14px;
2795
1713
  color: #dc2626;
2796
1714
  text-align: center;
@@ -2800,15 +1718,15 @@ const cr = Z.div`
2800
1718
  @media (prefers-color-scheme: dark) {
2801
1719
  color: #f87171;
2802
1720
  }
2803
- `, Zi = Z.div`
1721
+ `, Vn = Y.div`
2804
1722
  position: absolute;
2805
- ${(e) => e.$position === "top" ? "top: 0;" : "bottom: 0;"}
1723
+ ${(t) => t.$position === "top" ? "top: 0;" : "bottom: 0;"}
2806
1724
  left: 0;
2807
1725
  right: 0;
2808
1726
  height: 6px;
2809
1727
  background: linear-gradient(90deg, #e5e7eb 0%, #3b82f6 50%, #e5e7eb 100%);
2810
- cursor: ${(e) => (e.$position === "top", "ns-resize")};
2811
- border-radius: ${(e) => e.$position === "top" ? "8px 8px 0 0" : "0 0 8px 8px"};
1728
+ cursor: ${(t) => (t.$position === "top", "ns-resize")};
1729
+ border-radius: ${(t) => t.$position === "top" ? "8px 8px 0 0" : "0 0 8px 8px"};
2812
1730
  opacity: 0.7;
2813
1731
  transition: opacity 0.2s ease;
2814
1732
 
@@ -2824,34 +1742,34 @@ const cr = Z.div`
2824
1742
  background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 50%, #3b82f6 100%);
2825
1743
  }
2826
1744
  }
2827
- `, pr = J.forwardRef(function({
2828
- value: t,
2829
- onChange: r,
2830
- onKeyDown: n,
2831
- placeholder: i = "Type a message...",
2832
- disabled: l = !1,
2833
- className: d,
2834
- maxLength: u = 2e3
1745
+ `, tt = q.forwardRef(function({
1746
+ value: n,
1747
+ onChange: i,
1748
+ onKeyDown: c,
1749
+ placeholder: h = "Type a message...",
1750
+ disabled: y = !1,
1751
+ className: g,
1752
+ maxLength: l = 2e3
2835
1753
  }, p) {
2836
- const S = (m) => {
2837
- r(m.target.value);
1754
+ const w = (m) => {
1755
+ i(m.target.value);
2838
1756
  }, v = (m) => {
2839
- m.key === "Enter" && !m.shiftKey && m.preventDefault(), n(m);
1757
+ m.key === "Enter" && !m.shiftKey && m.preventDefault(), c(m);
2840
1758
  };
2841
- return /* @__PURE__ */ y.jsx(
2842
- Gi,
1759
+ return /* @__PURE__ */ u.jsx(
1760
+ Wn,
2843
1761
  {
2844
1762
  ref: p,
2845
- value: t,
2846
- onChange: S,
1763
+ value: n,
1764
+ onChange: w,
2847
1765
  onKeyDown: v,
2848
- placeholder: i,
2849
- disabled: l,
2850
- maxLength: u,
2851
- className: d,
1766
+ placeholder: h,
1767
+ disabled: y,
1768
+ maxLength: l,
1769
+ className: g,
2852
1770
  onInput: (m) => {
2853
- const E = m.target;
2854
- E.style.height = "auto", E.style.height = `${Math.min(E.scrollHeight, 120)}px`;
1771
+ const $ = m.target;
1772
+ $.style.height = "auto", $.style.height = `${Math.min($.scrollHeight, 120)}px`;
2855
1773
  }
2856
1774
  }
2857
1775
  );
@@ -2862,15 +1780,15 @@ const cr = Z.div`
2862
1780
  * This source code is licensed under the ISC license.
2863
1781
  * See the LICENSE file in the root directory of this source tree.
2864
1782
  */
2865
- const Qi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), es = (e) => e.replace(
1783
+ const Hn = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), qn = (t) => t.replace(
2866
1784
  /^([A-Z])|[\s-_]+(\w)/g,
2867
- (t, r, n) => n ? n.toUpperCase() : r.toLowerCase()
2868
- ), pn = (e) => {
2869
- const t = es(e);
2870
- return t.charAt(0).toUpperCase() + t.slice(1);
2871
- }, qn = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim(), ts = (e) => {
2872
- for (const t in e)
2873
- if (t.startsWith("aria-") || t === "role" || t === "title")
1785
+ (n, i, c) => c ? c.toUpperCase() : i.toLowerCase()
1786
+ ), Nt = (t) => {
1787
+ const n = qn(t);
1788
+ return n.charAt(0).toUpperCase() + n.slice(1);
1789
+ }, Gt = (...t) => t.filter((n, i, c) => !!n && n.trim() !== "" && c.indexOf(n) === i).join(" ").trim(), Jn = (t) => {
1790
+ for (const n in t)
1791
+ if (n.startsWith("aria-") || n === "role" || n === "title")
2874
1792
  return !0;
2875
1793
  };
2876
1794
  /**
@@ -2879,7 +1797,7 @@ const Qi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), es = (
2879
1797
  * This source code is licensed under the ISC license.
2880
1798
  * See the LICENSE file in the root directory of this source tree.
2881
1799
  */
2882
- var rs = {
1800
+ var Gn = {
2883
1801
  xmlns: "http://www.w3.org/2000/svg",
2884
1802
  width: 24,
2885
1803
  height: 24,
@@ -2896,32 +1814,32 @@ var rs = {
2896
1814
  * This source code is licensed under the ISC license.
2897
1815
  * See the LICENSE file in the root directory of this source tree.
2898
1816
  */
2899
- const ns = mn(
1817
+ const Zn = Lt(
2900
1818
  ({
2901
- color: e = "currentColor",
2902
- size: t = 24,
2903
- strokeWidth: r = 2,
2904
- absoluteStrokeWidth: n,
2905
- className: i = "",
2906
- children: l,
2907
- iconNode: d,
2908
- ...u
2909
- }, p) => ht(
1819
+ color: t = "currentColor",
1820
+ size: n = 24,
1821
+ strokeWidth: i = 2,
1822
+ absoluteStrokeWidth: c,
1823
+ className: h = "",
1824
+ children: y,
1825
+ iconNode: g,
1826
+ ...l
1827
+ }, p) => Be(
2910
1828
  "svg",
2911
1829
  {
2912
1830
  ref: p,
2913
- ...rs,
2914
- width: t,
2915
- height: t,
2916
- stroke: e,
2917
- strokeWidth: n ? Number(r) * 24 / Number(t) : r,
2918
- className: qn("lucide", i),
2919
- ...!l && !ts(u) && { "aria-hidden": "true" },
2920
- ...u
1831
+ ...Gn,
1832
+ width: n,
1833
+ height: n,
1834
+ stroke: t,
1835
+ strokeWidth: c ? Number(i) * 24 / Number(n) : i,
1836
+ className: Gt("lucide", h),
1837
+ ...!y && !Jn(l) && { "aria-hidden": "true" },
1838
+ ...l
2921
1839
  },
2922
1840
  [
2923
- ...d.map(([S, v]) => ht(S, v)),
2924
- ...Array.isArray(l) ? l : [l]
1841
+ ...g.map(([w, v]) => Be(w, v)),
1842
+ ...Array.isArray(y) ? y : [y]
2925
1843
  ]
2926
1844
  )
2927
1845
  );
@@ -2931,20 +1849,20 @@ const ns = mn(
2931
1849
  * This source code is licensed under the ISC license.
2932
1850
  * See the LICENSE file in the root directory of this source tree.
2933
1851
  */
2934
- const Jn = (e, t) => {
2935
- const r = mn(
2936
- ({ className: n, ...i }, l) => ht(ns, {
2937
- ref: l,
2938
- iconNode: t,
2939
- className: qn(
2940
- `lucide-${Qi(pn(e))}`,
2941
- `lucide-${e}`,
2942
- n
1852
+ const Zt = (t, n) => {
1853
+ const i = Lt(
1854
+ ({ className: c, ...h }, y) => Be(Zn, {
1855
+ ref: y,
1856
+ iconNode: n,
1857
+ className: Gt(
1858
+ `lucide-${Hn(Nt(t))}`,
1859
+ `lucide-${t}`,
1860
+ c
2943
1861
  ),
2944
- ...i
1862
+ ...h
2945
1863
  })
2946
1864
  );
2947
- return r.displayName = pn(e), r;
1865
+ return i.displayName = Nt(t), i;
2948
1866
  };
2949
1867
  /**
2950
1868
  * @license lucide-react v0.544.0 - ISC
@@ -2952,7 +1870,7 @@ const Jn = (e, t) => {
2952
1870
  * This source code is licensed under the ISC license.
2953
1871
  * See the LICENSE file in the root directory of this source tree.
2954
1872
  */
2955
- const os = [
1873
+ const Xn = [
2956
1874
  [
2957
1875
  "path",
2958
1876
  {
@@ -2960,14 +1878,14 @@ const os = [
2960
1878
  key: "18887p"
2961
1879
  }
2962
1880
  ]
2963
- ], as = Jn("message-square", os);
1881
+ ], Qn = Zt("message-square", Xn);
2964
1882
  /**
2965
1883
  * @license lucide-react v0.544.0 - ISC
2966
1884
  *
2967
1885
  * This source code is licensed under the ISC license.
2968
1886
  * See the LICENSE file in the root directory of this source tree.
2969
1887
  */
2970
- const is = [
1888
+ const ea = [
2971
1889
  [
2972
1890
  "path",
2973
1891
  {
@@ -2976,77 +1894,77 @@ const is = [
2976
1894
  }
2977
1895
  ],
2978
1896
  ["path", { d: "m21.854 2.147-10.94 10.939", key: "12cjpa" }]
2979
- ], fr = Jn("send", is);
2980
- function ss({ config: e, chat: t }) {
2981
- const { messages: r, sendMessage: n, isLoading: i, error: l } = t, [d, u] = J.useState(""), [p, S] = J.useState(!1), v = J.useRef(null);
2982
- J.useEffect(() => {
2983
- const w = () => {
2984
- S(window.matchMedia("(prefers-color-scheme: dark)").matches);
1897
+ ], rt = Zt("send", ea);
1898
+ function ta({ config: t, chat: n }) {
1899
+ const { messages: i, sendMessage: c, isLoading: h, error: y } = n, [g, l] = q.useState(""), [p, w] = q.useState(!1), v = q.useRef(null);
1900
+ q.useEffect(() => {
1901
+ const k = () => {
1902
+ w(window.matchMedia("(prefers-color-scheme: dark)").matches);
2985
1903
  };
2986
- w();
2987
- const _ = window.matchMedia("(prefers-color-scheme: dark)");
2988
- return _.addEventListener("change", w), () => _.removeEventListener("change", w);
1904
+ k();
1905
+ const L = window.matchMedia("(prefers-color-scheme: dark)");
1906
+ return L.addEventListener("change", k), () => L.removeEventListener("change", k);
2989
1907
  }, []);
2990
1908
  const m = async () => {
2991
- !d.trim() || i || (await n(d.trim()), u(""), setTimeout(() => {
2992
- var w;
2993
- (w = v.current) == null || w.focus();
1909
+ !g.trim() || h || (await c(g.trim()), l(""), setTimeout(() => {
1910
+ var k;
1911
+ (k = v.current) == null || k.focus();
2994
1912
  }, 100));
2995
- }, E = (w) => {
2996
- w.key === "Enter" && !w.shiftKey && (w.preventDefault(), m());
1913
+ }, $ = (k) => {
1914
+ k.key === "Enter" && !k.shiftKey && (k.preventDefault(), m());
2997
1915
  };
2998
- return /* @__PURE__ */ y.jsxs(
2999
- Gn,
1916
+ return /* @__PURE__ */ u.jsxs(
1917
+ Jt,
3000
1918
  {
3001
1919
  "data-theme": p ? "dark" : "light",
3002
1920
  style: {
3003
- height: e.height,
1921
+ height: t.height,
3004
1922
  display: "flex",
3005
1923
  flexDirection: "column",
3006
1924
  borderRadius: "8px"
3007
1925
  },
3008
1926
  children: [
3009
- /* @__PURE__ */ y.jsxs(cr, { style: { flex: 1, padding: "16px" }, children: [
3010
- r.map((w) => /* @__PURE__ */ y.jsx(
1927
+ /* @__PURE__ */ u.jsxs(Ze, { style: { flex: 1, padding: "16px" }, children: [
1928
+ i.map((k) => /* @__PURE__ */ u.jsx(
3011
1929
  "div",
3012
1930
  {
3013
1931
  style: {
3014
1932
  display: "flex",
3015
1933
  marginBottom: "16px",
3016
- justifyContent: w.role === "user" ? "flex-end" : "flex-start"
1934
+ justifyContent: k.role === "user" ? "flex-end" : "flex-start"
3017
1935
  },
3018
- children: /* @__PURE__ */ y.jsxs(Ve, { $isUser: w.role === "user", children: [
3019
- w.role === "assistant" ? /* @__PURE__ */ y.jsx(er, { content: w.content }) : w.content,
3020
- /* @__PURE__ */ y.jsx(ur, { $isUser: w.role === "user", children: Xt(w.timestamp) })
1936
+ children: /* @__PURE__ */ u.jsxs(pe, { $isUser: k.role === "user", children: [
1937
+ k.role === "assistant" ? /* @__PURE__ */ u.jsx(qe, { content: k.content }) : k.content,
1938
+ /* @__PURE__ */ u.jsx(Qe, { $isUser: k.role === "user", children: Ke(k.timestamp) })
3021
1939
  ] })
3022
1940
  },
3023
- w.id
1941
+ k.id
3024
1942
  )),
3025
- i && /* @__PURE__ */ y.jsx("div", { style: { display: "flex", justifyContent: "flex-start", marginBottom: "16px" }, children: /* @__PURE__ */ y.jsx(Ve, { $isUser: !1, children: /* @__PURE__ */ y.jsxs(lr, { children: [
3026
- /* @__PURE__ */ y.jsx("div", { className: "dot" }),
3027
- /* @__PURE__ */ y.jsx("div", { className: "dot" }),
3028
- /* @__PURE__ */ y.jsx("div", { className: "dot" })
1943
+ h && /* @__PURE__ */ u.jsx("div", { style: { display: "flex", justifyContent: "flex-start", marginBottom: "16px" }, children: /* @__PURE__ */ u.jsx(pe, { $isUser: !1, children: /* @__PURE__ */ u.jsxs(Xe, { children: [
1944
+ /* @__PURE__ */ u.jsx("div", { className: "dot" }),
1945
+ /* @__PURE__ */ u.jsx("div", { className: "dot" }),
1946
+ /* @__PURE__ */ u.jsx("div", { className: "dot" })
3029
1947
  ] }) }) }),
3030
- l && /* @__PURE__ */ y.jsx(dr, { children: l })
1948
+ y && /* @__PURE__ */ u.jsx(et, { children: y })
3031
1949
  ] }),
3032
- /* @__PURE__ */ y.jsxs(ir, { children: [
3033
- /* @__PURE__ */ y.jsx(
3034
- pr,
1950
+ /* @__PURE__ */ u.jsxs(Je, { children: [
1951
+ /* @__PURE__ */ u.jsx(
1952
+ tt,
3035
1953
  {
3036
1954
  ref: v,
3037
- value: d,
3038
- onChange: u,
3039
- onKeyDown: E,
3040
- placeholder: e.placeholder,
3041
- disabled: i
1955
+ value: g,
1956
+ onChange: l,
1957
+ onKeyDown: $,
1958
+ placeholder: t.placeholder,
1959
+ disabled: h
3042
1960
  }
3043
1961
  ),
3044
- /* @__PURE__ */ y.jsx(
3045
- sr,
1962
+ /* @__PURE__ */ u.jsx(
1963
+ Ge,
3046
1964
  {
3047
1965
  onClick: m,
3048
- disabled: i || !d.trim(),
3049
- children: /* @__PURE__ */ y.jsx(fr, { size: 16 })
1966
+ disabled: h || !g.trim(),
1967
+ children: /* @__PURE__ */ u.jsx(rt, { size: 16 })
3050
1968
  }
3051
1969
  )
3052
1970
  ] })
@@ -3054,139 +1972,139 @@ function ss({ config: e, chat: t }) {
3054
1972
  }
3055
1973
  );
3056
1974
  }
3057
- function fn({ config: e, chat: t }) {
3058
- const { messages: r, sendMessage: n, isLoading: i, error: l, isOpen: d, setIsOpen: u } = t, [p, S] = J.useState(""), [v, m] = J.useState(e.height || 400), E = J.useRef(null), w = async () => {
3059
- !p.trim() || i || (await n(p.trim()), S(""), setTimeout(() => {
3060
- var C;
3061
- (C = E.current) == null || C.focus();
1975
+ function Ut({ config: t, chat: n }) {
1976
+ const { messages: i, sendMessage: c, isLoading: h, error: y, isOpen: g, setIsOpen: l } = n, [p, w] = q.useState(""), [v, m] = q.useState(t.height || 400), $ = q.useRef(null), k = async () => {
1977
+ !p.trim() || h || (await c(p.trim()), w(""), setTimeout(() => {
1978
+ var T;
1979
+ (T = $.current) == null || T.focus();
3062
1980
  }, 100));
3063
- }, _ = (C) => {
3064
- C.key === "Enter" && !C.shiftKey && (C.preventDefault(), w());
1981
+ }, L = (T) => {
1982
+ T.key === "Enter" && !T.shiftKey && (T.preventDefault(), k());
3065
1983
  };
3066
- return d ? /* @__PURE__ */ y.jsxs(
3067
- Ji,
1984
+ return g ? /* @__PURE__ */ u.jsxs(
1985
+ Yn,
3068
1986
  {
3069
- $position: e.position || "bottom-right",
1987
+ $position: t.position || "bottom-right",
3070
1988
  style: {
3071
1989
  height: v,
3072
- ...e.chatWindowStyle
1990
+ ...t.chatWindowStyle
3073
1991
  },
3074
1992
  children: [
3075
- e.resizable !== !1 && /* @__PURE__ */ y.jsx(
3076
- Zi,
1993
+ t.resizable !== !1 && /* @__PURE__ */ u.jsx(
1994
+ Vn,
3077
1995
  {
3078
1996
  $position: "top",
3079
- onMouseDown: (C) => {
3080
- C.preventDefault();
3081
- const N = C.clientY, o = typeof v == "number" ? v : 400, c = (g) => {
3082
- const h = g.clientY - N, x = o - h;
3083
- m(Math.max(200, Math.min(600, x)));
3084
- }, s = () => {
3085
- document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", s);
1997
+ onMouseDown: (T) => {
1998
+ T.preventDefault();
1999
+ const W = T.clientY, r = typeof v == "number" ? v : 400, o = (x) => {
2000
+ const f = x.clientY - W, j = r - f;
2001
+ m(Math.max(200, Math.min(600, j)));
2002
+ }, a = () => {
2003
+ document.removeEventListener("mousemove", o), document.removeEventListener("mouseup", a);
3086
2004
  };
3087
- document.addEventListener("mousemove", c), document.addEventListener("mouseup", s);
2005
+ document.addEventListener("mousemove", o), document.addEventListener("mouseup", a);
3088
2006
  }
3089
2007
  }
3090
2008
  ),
3091
- e.showHeader !== !1 && /* @__PURE__ */ y.jsxs(Xi, { primaryColor: e.primaryColor, children: [
3092
- /* @__PURE__ */ y.jsx("div", { className: "header-content", children: /* @__PURE__ */ y.jsx("div", { className: "font-medium", children: e.chatName || "Chat Assistant" }) }),
3093
- /* @__PURE__ */ y.jsx("div", { className: "header-actions", children: /* @__PURE__ */ y.jsx(
2009
+ t.showHeader !== !1 && /* @__PURE__ */ u.jsxs(Kn, { primaryColor: t.primaryColor, children: [
2010
+ /* @__PURE__ */ u.jsx("div", { className: "header-content", children: /* @__PURE__ */ u.jsx("div", { className: "font-medium", children: t.chatName || "Customer Service" }) }),
2011
+ /* @__PURE__ */ u.jsx("div", { className: "header-actions", children: /* @__PURE__ */ u.jsx(
3094
2012
  "button",
3095
2013
  {
3096
- onClick: () => u(!1),
2014
+ onClick: () => l(!1),
3097
2015
  className: "hover:bg-white/10 p-1 rounded",
3098
- children: /* @__PURE__ */ y.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
3099
- /* @__PURE__ */ y.jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
3100
- /* @__PURE__ */ y.jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
2016
+ children: /* @__PURE__ */ u.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
2017
+ /* @__PURE__ */ u.jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
2018
+ /* @__PURE__ */ u.jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
3101
2019
  ] })
3102
2020
  }
3103
2021
  ) })
3104
2022
  ] }),
3105
- /* @__PURE__ */ y.jsxs(cr, { children: [
3106
- r.map((C) => /* @__PURE__ */ y.jsx(
2023
+ /* @__PURE__ */ u.jsxs(Ze, { children: [
2024
+ i.map((T) => /* @__PURE__ */ u.jsx(
3107
2025
  "div",
3108
2026
  {
3109
2027
  style: {
3110
2028
  display: "flex",
3111
2029
  marginBottom: "16px",
3112
- justifyContent: C.role === "user" ? "flex-end" : "flex-start"
2030
+ justifyContent: T.role === "user" ? "flex-end" : "flex-start"
3113
2031
  },
3114
- children: /* @__PURE__ */ y.jsxs(Ve, { $isUser: C.role === "user", children: [
3115
- C.role === "assistant" ? /* @__PURE__ */ y.jsx(er, { content: C.content }) : C.content,
3116
- /* @__PURE__ */ y.jsx(ur, { $isUser: C.role === "user", children: Xt(C.timestamp) })
2032
+ children: /* @__PURE__ */ u.jsxs(pe, { $isUser: T.role === "user", children: [
2033
+ T.role === "assistant" ? /* @__PURE__ */ u.jsx(qe, { content: T.content }) : T.content,
2034
+ /* @__PURE__ */ u.jsx(Qe, { $isUser: T.role === "user", children: Ke(T.timestamp) })
3117
2035
  ] })
3118
2036
  },
3119
- C.id
2037
+ T.id
3120
2038
  )),
3121
- i && /* @__PURE__ */ y.jsx("div", { style: { display: "flex", justifyContent: "flex-start", marginBottom: "16px" }, children: /* @__PURE__ */ y.jsx(Ve, { $isUser: !1, children: /* @__PURE__ */ y.jsxs(lr, { children: [
3122
- /* @__PURE__ */ y.jsx("div", { className: "dot" }),
3123
- /* @__PURE__ */ y.jsx("div", { className: "dot" }),
3124
- /* @__PURE__ */ y.jsx("div", { className: "dot" })
2039
+ h && /* @__PURE__ */ u.jsx("div", { style: { display: "flex", justifyContent: "flex-start", marginBottom: "16px" }, children: /* @__PURE__ */ u.jsx(pe, { $isUser: !1, children: /* @__PURE__ */ u.jsxs(Xe, { children: [
2040
+ /* @__PURE__ */ u.jsx("div", { className: "dot" }),
2041
+ /* @__PURE__ */ u.jsx("div", { className: "dot" }),
2042
+ /* @__PURE__ */ u.jsx("div", { className: "dot" })
3125
2043
  ] }) }) }),
3126
- l && /* @__PURE__ */ y.jsx(dr, { children: l })
2044
+ y && /* @__PURE__ */ u.jsx(et, { children: y })
3127
2045
  ] }),
3128
- /* @__PURE__ */ y.jsxs(ir, { children: [
3129
- /* @__PURE__ */ y.jsx(
3130
- pr,
2046
+ /* @__PURE__ */ u.jsxs(Je, { children: [
2047
+ /* @__PURE__ */ u.jsx(
2048
+ tt,
3131
2049
  {
3132
- ref: E,
2050
+ ref: $,
3133
2051
  value: p,
3134
- onChange: S,
3135
- onKeyDown: _,
3136
- placeholder: e.placeholder,
3137
- disabled: i
2052
+ onChange: w,
2053
+ onKeyDown: L,
2054
+ placeholder: t.placeholder,
2055
+ disabled: h
3138
2056
  }
3139
2057
  ),
3140
- /* @__PURE__ */ y.jsx(
3141
- sr,
2058
+ /* @__PURE__ */ u.jsx(
2059
+ Ge,
3142
2060
  {
3143
- onClick: w,
3144
- disabled: i || !p.trim(),
3145
- children: /* @__PURE__ */ y.jsx(fr, { size: 16 })
2061
+ onClick: k,
2062
+ disabled: h || !p.trim(),
2063
+ children: /* @__PURE__ */ u.jsx(rt, { size: 16 })
3146
2064
  }
3147
2065
  )
3148
2066
  ] })
3149
2067
  ]
3150
2068
  }
3151
- ) : /* @__PURE__ */ y.jsxs(
3152
- qi,
2069
+ ) : /* @__PURE__ */ u.jsxs(
2070
+ Bn,
3153
2071
  {
3154
- $position: e.position || "bottom-right",
3155
- onClick: () => u(!0),
3156
- style: e.buttonStyle,
2072
+ $position: t.position || "bottom-right",
2073
+ onClick: () => l(!0),
2074
+ style: t.buttonStyle,
3157
2075
  "aria-label": "Open chat",
3158
2076
  children: [
3159
- /* @__PURE__ */ y.jsx("div", { className: "icon-container", children: /* @__PURE__ */ y.jsx(as, { size: 16 }) }),
3160
- /* @__PURE__ */ y.jsx("span", { children: e.buttonText || e.chatName || "AI Chat" })
2077
+ /* @__PURE__ */ u.jsx("div", { className: "icon-container", children: /* @__PURE__ */ u.jsx(Qn, { size: 16 }) }),
2078
+ /* @__PURE__ */ u.jsx("span", { children: t.buttonText || t.chatName || "Need help?" })
3161
2079
  ]
3162
2080
  }
3163
2081
  );
3164
2082
  }
3165
- function ps(e) {
3166
- const t = Po(e), r = To(t);
3167
- switch (t.mode) {
2083
+ function sa(t) {
2084
+ const n = Pr(t), i = $r(n);
2085
+ switch (n.mode) {
3168
2086
  case "floating":
3169
- return /* @__PURE__ */ y.jsx(fn, { config: t, chat: r });
2087
+ return /* @__PURE__ */ u.jsx(Ut, { config: n, chat: i });
3170
2088
  case "embedded":
3171
- return /* @__PURE__ */ y.jsx(ss, { config: t, chat: r });
2089
+ return /* @__PURE__ */ u.jsx(ta, { config: n, chat: i });
3172
2090
  default:
3173
- return /* @__PURE__ */ y.jsx(fn, { config: t, chat: r });
2091
+ return /* @__PURE__ */ u.jsx(Ut, { config: n, chat: i });
3174
2092
  }
3175
2093
  }
3176
- function fs({ config: e, chat: t }) {
3177
- const { messages: r, sendMessage: n, isLoading: i, error: l } = t, [d, u] = J.useState(""), p = J.useRef(null), S = async () => {
3178
- !d.trim() || i || (await n(d.trim()), u(""), setTimeout(() => {
2094
+ function la({ config: t, chat: n }) {
2095
+ const { messages: i, sendMessage: c, isLoading: h, error: y } = n, [g, l] = q.useState(""), p = q.useRef(null), w = async () => {
2096
+ !g.trim() || h || (await c(g.trim()), l(""), setTimeout(() => {
3179
2097
  var m;
3180
2098
  (m = p.current) == null || m.focus();
3181
2099
  }, 100));
3182
2100
  }, v = (m) => {
3183
- m.key === "Enter" && !m.shiftKey && (m.preventDefault(), S());
2101
+ m.key === "Enter" && !m.shiftKey && (m.preventDefault(), w());
3184
2102
  };
3185
- return /* @__PURE__ */ y.jsxs(
3186
- Gn,
2103
+ return /* @__PURE__ */ u.jsxs(
2104
+ Jt,
3187
2105
  {
3188
2106
  style: {
3189
- height: e.height,
2107
+ height: t.height,
3190
2108
  display: "flex",
3191
2109
  flexDirection: "column",
3192
2110
  backgroundColor: "white",
@@ -3194,8 +2112,8 @@ function fs({ config: e, chat: t }) {
3194
2112
  borderRadius: "8px"
3195
2113
  },
3196
2114
  children: [
3197
- /* @__PURE__ */ y.jsxs(cr, { style: { flex: 1, padding: "12px" }, children: [
3198
- r.map((m) => /* @__PURE__ */ y.jsx(
2115
+ /* @__PURE__ */ u.jsxs(Ze, { style: { flex: 1, padding: "12px" }, children: [
2116
+ i.map((m) => /* @__PURE__ */ u.jsx(
3199
2117
  "div",
3200
2118
  {
3201
2119
  style: {
@@ -3203,38 +2121,38 @@ function fs({ config: e, chat: t }) {
3203
2121
  marginBottom: "12px",
3204
2122
  justifyContent: m.role === "user" ? "flex-end" : "flex-start"
3205
2123
  },
3206
- children: /* @__PURE__ */ y.jsxs(Ve, { $isUser: m.role === "user", children: [
3207
- m.role === "assistant" ? /* @__PURE__ */ y.jsx(er, { content: m.content }) : m.content,
3208
- /* @__PURE__ */ y.jsx(ur, { $isUser: m.role === "user", children: Xt(m.timestamp) })
2124
+ children: /* @__PURE__ */ u.jsxs(pe, { $isUser: m.role === "user", children: [
2125
+ m.role === "assistant" ? /* @__PURE__ */ u.jsx(qe, { content: m.content }) : m.content,
2126
+ /* @__PURE__ */ u.jsx(Qe, { $isUser: m.role === "user", children: Ke(m.timestamp) })
3209
2127
  ] })
3210
2128
  },
3211
2129
  m.id
3212
2130
  )),
3213
- i && /* @__PURE__ */ y.jsx("div", { style: { display: "flex", justifyContent: "flex-start", marginBottom: "12px" }, children: /* @__PURE__ */ y.jsx(Ve, { $isUser: !1, children: /* @__PURE__ */ y.jsxs(lr, { children: [
3214
- /* @__PURE__ */ y.jsx("div", { className: "dot" }),
3215
- /* @__PURE__ */ y.jsx("div", { className: "dot" }),
3216
- /* @__PURE__ */ y.jsx("div", { className: "dot" })
2131
+ h && /* @__PURE__ */ u.jsx("div", { style: { display: "flex", justifyContent: "flex-start", marginBottom: "12px" }, children: /* @__PURE__ */ u.jsx(pe, { $isUser: !1, children: /* @__PURE__ */ u.jsxs(Xe, { children: [
2132
+ /* @__PURE__ */ u.jsx("div", { className: "dot" }),
2133
+ /* @__PURE__ */ u.jsx("div", { className: "dot" }),
2134
+ /* @__PURE__ */ u.jsx("div", { className: "dot" })
3217
2135
  ] }) }) }),
3218
- l && /* @__PURE__ */ y.jsx(dr, { children: l })
2136
+ y && /* @__PURE__ */ u.jsx(et, { children: y })
3219
2137
  ] }),
3220
- /* @__PURE__ */ y.jsxs(ir, { children: [
3221
- /* @__PURE__ */ y.jsx(
3222
- pr,
2138
+ /* @__PURE__ */ u.jsxs(Je, { children: [
2139
+ /* @__PURE__ */ u.jsx(
2140
+ tt,
3223
2141
  {
3224
2142
  ref: p,
3225
- value: d,
3226
- onChange: u,
2143
+ value: g,
2144
+ onChange: l,
3227
2145
  onKeyDown: v,
3228
- placeholder: e.placeholder,
3229
- disabled: i
2146
+ placeholder: t.placeholder,
2147
+ disabled: h
3230
2148
  }
3231
2149
  ),
3232
- /* @__PURE__ */ y.jsx(
3233
- sr,
2150
+ /* @__PURE__ */ u.jsx(
2151
+ Ge,
3234
2152
  {
3235
- onClick: S,
3236
- disabled: i || !d.trim(),
3237
- children: /* @__PURE__ */ y.jsx(fr, { size: 16 })
2153
+ onClick: w,
2154
+ disabled: h || !g.trim(),
2155
+ children: /* @__PURE__ */ u.jsx(rt, { size: 16 })
3238
2156
  }
3239
2157
  )
3240
2158
  ] })
@@ -3243,17 +2161,17 @@ function fs({ config: e, chat: t }) {
3243
2161
  );
3244
2162
  }
3245
2163
  export {
3246
- ss as EmbeddedChat,
3247
- fn as FloatingChat,
3248
- fs as InlineChat,
3249
- er as MarkdownRenderer,
3250
- jo as OrdifyApiClient,
3251
- ps as OrdifyChat,
3252
- us as debounce,
3253
- Xt as formatTime,
3254
- Ar as generateId,
3255
- Oo as parseStreamingResponse,
3256
- ds as throttle,
3257
- To as useOrdifyChat,
3258
- Po as useOrdifyConfig
2164
+ ta as EmbeddedChat,
2165
+ Ut as FloatingChat,
2166
+ la as InlineChat,
2167
+ qe as MarkdownRenderer,
2168
+ Tr as OrdifyApiClient,
2169
+ sa as OrdifyChat,
2170
+ oa as debounce,
2171
+ Ke as formatTime,
2172
+ Et as generateId,
2173
+ Or as parseStreamingResponse,
2174
+ ia as throttle,
2175
+ $r as useOrdifyChat,
2176
+ Pr as useOrdifyConfig
3259
2177
  };