hanbiro-react16-sdk 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,32 +1,32 @@
1
- var Pt = Object.defineProperty;
2
- var Ot = (t, e, n) => e in t ? Pt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var S = (t, e, n) => Ot(t, typeof e != "symbol" ? e + "" : e, n);
1
+ var At = Object.defineProperty;
2
+ var It = (t, e, n) => e in t ? At(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var S = (t, e, n) => It(t, typeof e != "symbol" ? e + "" : e, n);
4
4
  import * as b from "react";
5
- import K, { forwardRef as We } from "react";
5
+ import Q, { forwardRef as Ne } from "react";
6
6
  let ue;
7
- const At = new Uint8Array(16);
8
- function It() {
7
+ const zt = new Uint8Array(16);
8
+ function Lt() {
9
9
  if (!ue && (ue = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !ue))
10
10
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
11
- return ue(At);
11
+ return ue(zt);
12
12
  }
13
13
  const q = [];
14
14
  for (let t = 0; t < 256; ++t)
15
15
  q.push((t + 256).toString(16).slice(1));
16
- function zt(t, e = 0) {
16
+ function jt(t, e = 0) {
17
17
  return q[t[e + 0]] + q[t[e + 1]] + q[t[e + 2]] + q[t[e + 3]] + "-" + q[t[e + 4]] + q[t[e + 5]] + "-" + q[t[e + 6]] + q[t[e + 7]] + "-" + q[t[e + 8]] + q[t[e + 9]] + "-" + q[t[e + 10]] + q[t[e + 11]] + q[t[e + 12]] + q[t[e + 13]] + q[t[e + 14]] + q[t[e + 15]];
18
18
  }
19
- const Lt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), tt = {
20
- randomUUID: Lt
19
+ const Dt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), nt = {
20
+ randomUUID: Dt
21
21
  };
22
- function jt(t, e, n) {
23
- if (tt.randomUUID && !t)
24
- return tt.randomUUID();
22
+ function Mt(t, e, n) {
23
+ if (nt.randomUUID && !t)
24
+ return nt.randomUUID();
25
25
  t = t || {};
26
- const r = t.random || (t.rng || It)();
27
- return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, zt(r);
26
+ const r = t.random || (t.rng || Lt)();
27
+ return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, jt(r);
28
28
  }
29
- function Dt(t) {
29
+ function qt(t) {
30
30
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
31
31
  }
32
32
  var Ie = { exports: {} }, pe = { exports: {} }, A = {};
@@ -38,19 +38,19 @@ var Ie = { exports: {} }, pe = { exports: {} }, A = {};
38
38
  * This source code is licensed under the MIT license found in the
39
39
  * LICENSE file in the root directory of this source tree.
40
40
  */
41
- var nt;
42
- function Mt() {
43
- if (nt) return A;
44
- nt = 1;
45
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, c = t ? Symbol.for("react.provider") : 60109, a = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, o = t ? Symbol.for("react.concurrent_mode") : 60111, l = t ? Symbol.for("react.forward_ref") : 60112, g = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, k = t ? Symbol.for("react.memo") : 60115, y = t ? Symbol.for("react.lazy") : 60116, x = t ? Symbol.for("react.block") : 60121, P = t ? Symbol.for("react.fundamental") : 60117, D = t ? Symbol.for("react.responder") : 60118, U = t ? Symbol.for("react.scope") : 60119;
41
+ var rt;
42
+ function Bt() {
43
+ if (rt) return A;
44
+ rt = 1;
45
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, c = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, a = t ? Symbol.for("react.concurrent_mode") : 60111, l = t ? Symbol.for("react.forward_ref") : 60112, g = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, k = t ? Symbol.for("react.memo") : 60115, y = t ? Symbol.for("react.lazy") : 60116, x = t ? Symbol.for("react.block") : 60121, P = t ? Symbol.for("react.fundamental") : 60117, D = t ? Symbol.for("react.responder") : 60118, H = t ? Symbol.for("react.scope") : 60119;
46
46
  function O(f) {
47
47
  if (typeof f == "object" && f !== null) {
48
- var H = f.$$typeof;
49
- switch (H) {
48
+ var U = f.$$typeof;
49
+ switch (U) {
50
50
  case e:
51
51
  switch (f = f.type, f) {
52
52
  case u:
53
- case o:
53
+ case a:
54
54
  case r:
55
55
  case s:
56
56
  case i:
@@ -58,28 +58,28 @@ function Mt() {
58
58
  return f;
59
59
  default:
60
60
  switch (f = f && f.$$typeof, f) {
61
- case a:
61
+ case o:
62
62
  case l:
63
63
  case y:
64
64
  case k:
65
65
  case c:
66
66
  return f;
67
67
  default:
68
- return H;
68
+ return U;
69
69
  }
70
70
  }
71
71
  case n:
72
- return H;
72
+ return U;
73
73
  }
74
74
  }
75
75
  }
76
76
  function M(f) {
77
- return O(f) === o;
77
+ return O(f) === a;
78
78
  }
79
- return A.AsyncMode = u, A.ConcurrentMode = o, A.ContextConsumer = a, A.ContextProvider = c, A.Element = e, A.ForwardRef = l, A.Fragment = r, A.Lazy = y, A.Memo = k, A.Portal = n, A.Profiler = s, A.StrictMode = i, A.Suspense = g, A.isAsyncMode = function(f) {
79
+ return A.AsyncMode = u, A.ConcurrentMode = a, A.ContextConsumer = o, A.ContextProvider = c, A.Element = e, A.ForwardRef = l, A.Fragment = r, A.Lazy = y, A.Memo = k, A.Portal = n, A.Profiler = s, A.StrictMode = i, A.Suspense = g, A.isAsyncMode = function(f) {
80
80
  return M(f) || O(f) === u;
81
81
  }, A.isConcurrentMode = M, A.isContextConsumer = function(f) {
82
- return O(f) === a;
82
+ return O(f) === o;
83
83
  }, A.isContextProvider = function(f) {
84
84
  return O(f) === c;
85
85
  }, A.isElement = function(f) {
@@ -101,7 +101,7 @@ function Mt() {
101
101
  }, A.isSuspense = function(f) {
102
102
  return O(f) === g;
103
103
  }, A.isValidElementType = function(f) {
104
- return typeof f == "string" || typeof f == "function" || f === r || f === o || f === s || f === i || f === g || f === p || typeof f == "object" && f !== null && (f.$$typeof === y || f.$$typeof === k || f.$$typeof === c || f.$$typeof === a || f.$$typeof === l || f.$$typeof === P || f.$$typeof === D || f.$$typeof === U || f.$$typeof === x);
104
+ return typeof f == "string" || typeof f == "function" || f === r || f === a || f === s || f === i || f === g || f === p || typeof f == "object" && f !== null && (f.$$typeof === y || f.$$typeof === k || f.$$typeof === c || f.$$typeof === o || f.$$typeof === l || f.$$typeof === P || f.$$typeof === D || f.$$typeof === H || f.$$typeof === x);
105
105
  }, A.typeOf = O, A;
106
106
  }
107
107
  var I = {};
@@ -113,13 +113,13 @@ var I = {};
113
113
  * This source code is licensed under the MIT license found in the
114
114
  * LICENSE file in the root directory of this source tree.
115
115
  */
116
- var rt;
117
- function qt() {
118
- return rt || (rt = 1, process.env.NODE_ENV !== "production" && function() {
119
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, c = t ? Symbol.for("react.provider") : 60109, a = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, o = t ? Symbol.for("react.concurrent_mode") : 60111, l = t ? Symbol.for("react.forward_ref") : 60112, g = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, k = t ? Symbol.for("react.memo") : 60115, y = t ? Symbol.for("react.lazy") : 60116, x = t ? Symbol.for("react.block") : 60121, P = t ? Symbol.for("react.fundamental") : 60117, D = t ? Symbol.for("react.responder") : 60118, U = t ? Symbol.for("react.scope") : 60119;
116
+ var it;
117
+ function Wt() {
118
+ return it || (it = 1, process.env.NODE_ENV !== "production" && function() {
119
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, c = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, a = t ? Symbol.for("react.concurrent_mode") : 60111, l = t ? Symbol.for("react.forward_ref") : 60112, g = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, k = t ? Symbol.for("react.memo") : 60115, y = t ? Symbol.for("react.lazy") : 60116, x = t ? Symbol.for("react.block") : 60121, P = t ? Symbol.for("react.fundamental") : 60117, D = t ? Symbol.for("react.responder") : 60118, H = t ? Symbol.for("react.scope") : 60119;
120
120
  function O(d) {
121
121
  return typeof d == "string" || typeof d == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
122
- d === r || d === o || d === s || d === i || d === g || d === p || typeof d == "object" && d !== null && (d.$$typeof === y || d.$$typeof === k || d.$$typeof === c || d.$$typeof === a || d.$$typeof === l || d.$$typeof === P || d.$$typeof === D || d.$$typeof === U || d.$$typeof === x);
122
+ d === r || d === a || d === s || d === i || d === g || d === p || typeof d == "object" && d !== null && (d.$$typeof === y || d.$$typeof === k || d.$$typeof === c || d.$$typeof === o || d.$$typeof === l || d.$$typeof === P || d.$$typeof === D || d.$$typeof === H || d.$$typeof === x);
123
123
  }
124
124
  function M(d) {
125
125
  if (typeof d == "object" && d !== null) {
@@ -129,21 +129,21 @@ function qt() {
129
129
  var ce = d.type;
130
130
  switch (ce) {
131
131
  case u:
132
- case o:
132
+ case a:
133
133
  case r:
134
134
  case s:
135
135
  case i:
136
136
  case g:
137
137
  return ce;
138
138
  default:
139
- var et = ce && ce.$$typeof;
140
- switch (et) {
141
- case a:
139
+ var tt = ce && ce.$$typeof;
140
+ switch (tt) {
141
+ case o:
142
142
  case l:
143
143
  case y:
144
144
  case k:
145
145
  case c:
146
- return et;
146
+ return tt;
147
147
  default:
148
148
  return F;
149
149
  }
@@ -153,15 +153,15 @@ function qt() {
153
153
  }
154
154
  }
155
155
  }
156
- var f = u, H = o, B = a, ne = c, ve = e, ke = l, oe = r, we = y, Se = k, te = n, Ee = s, Z = i, J = g, le = !1;
156
+ var f = u, U = a, B = o, ne = c, ve = e, ke = l, ae = r, we = y, Se = k, te = n, Ee = s, Z = i, J = g, le = !1;
157
157
  function Te(d) {
158
158
  return le || (le = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), h(d) || M(d) === u;
159
159
  }
160
160
  function h(d) {
161
- return M(d) === o;
161
+ return M(d) === a;
162
162
  }
163
163
  function m(d) {
164
- return M(d) === a;
164
+ return M(d) === o;
165
165
  }
166
166
  function R(d) {
167
167
  return M(d) === c;
@@ -193,22 +193,22 @@ function qt() {
193
193
  function N(d) {
194
194
  return M(d) === g;
195
195
  }
196
- I.AsyncMode = f, I.ConcurrentMode = H, I.ContextConsumer = B, I.ContextProvider = ne, I.Element = ve, I.ForwardRef = ke, I.Fragment = oe, I.Lazy = we, I.Memo = Se, I.Portal = te, I.Profiler = Ee, I.StrictMode = Z, I.Suspense = J, I.isAsyncMode = Te, I.isConcurrentMode = h, I.isContextConsumer = m, I.isContextProvider = R, I.isElement = E, I.isForwardRef = v, I.isFragment = _, I.isLazy = w, I.isMemo = T, I.isPortal = C, I.isProfiler = j, I.isStrictMode = $, I.isSuspense = N, I.isValidElementType = O, I.typeOf = M;
196
+ I.AsyncMode = f, I.ConcurrentMode = U, I.ContextConsumer = B, I.ContextProvider = ne, I.Element = ve, I.ForwardRef = ke, I.Fragment = ae, I.Lazy = we, I.Memo = Se, I.Portal = te, I.Profiler = Ee, I.StrictMode = Z, I.Suspense = J, I.isAsyncMode = Te, I.isConcurrentMode = h, I.isContextConsumer = m, I.isContextProvider = R, I.isElement = E, I.isForwardRef = v, I.isFragment = _, I.isLazy = w, I.isMemo = T, I.isPortal = C, I.isProfiler = j, I.isStrictMode = $, I.isSuspense = N, I.isValidElementType = O, I.typeOf = M;
197
197
  }()), I;
198
198
  }
199
- var it;
200
- function bt() {
201
- return it || (it = 1, process.env.NODE_ENV === "production" ? pe.exports = Mt() : pe.exports = qt()), pe.exports;
199
+ var st;
200
+ function yt() {
201
+ return st || (st = 1, process.env.NODE_ENV === "production" ? pe.exports = Bt() : pe.exports = Wt()), pe.exports;
202
202
  }
203
203
  /*
204
204
  object-assign
205
205
  (c) Sindre Sorhus
206
206
  @license MIT
207
207
  */
208
- var Re, st;
209
- function Bt() {
210
- if (st) return Re;
211
- st = 1;
208
+ var Re, ot;
209
+ function Nt() {
210
+ if (ot) return Re;
211
+ ot = 1;
212
212
  var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
213
213
  function r(s) {
214
214
  if (s == null)
@@ -222,54 +222,54 @@ function Bt() {
222
222
  var s = new String("abc");
223
223
  if (s[5] = "de", Object.getOwnPropertyNames(s)[0] === "5")
224
224
  return !1;
225
- for (var c = {}, a = 0; a < 10; a++)
226
- c["_" + String.fromCharCode(a)] = a;
225
+ for (var c = {}, o = 0; o < 10; o++)
226
+ c["_" + String.fromCharCode(o)] = o;
227
227
  var u = Object.getOwnPropertyNames(c).map(function(l) {
228
228
  return c[l];
229
229
  });
230
230
  if (u.join("") !== "0123456789")
231
231
  return !1;
232
- var o = {};
232
+ var a = {};
233
233
  return "abcdefghijklmnopqrst".split("").forEach(function(l) {
234
- o[l] = l;
235
- }), Object.keys(Object.assign({}, o)).join("") === "abcdefghijklmnopqrst";
234
+ a[l] = l;
235
+ }), Object.keys(Object.assign({}, a)).join("") === "abcdefghijklmnopqrst";
236
236
  } catch {
237
237
  return !1;
238
238
  }
239
239
  }
240
240
  return Re = i() ? Object.assign : function(s, c) {
241
- for (var a, u = r(s), o, l = 1; l < arguments.length; l++) {
242
- a = Object(arguments[l]);
243
- for (var g in a)
244
- e.call(a, g) && (u[g] = a[g]);
241
+ for (var o, u = r(s), a, l = 1; l < arguments.length; l++) {
242
+ o = Object(arguments[l]);
243
+ for (var g in o)
244
+ e.call(o, g) && (u[g] = o[g]);
245
245
  if (t) {
246
- o = t(a);
247
- for (var p = 0; p < o.length; p++)
248
- n.call(a, o[p]) && (u[o[p]] = a[o[p]]);
246
+ a = t(o);
247
+ for (var p = 0; p < a.length; p++)
248
+ n.call(o, a[p]) && (u[a[p]] = o[a[p]]);
249
249
  }
250
250
  }
251
251
  return u;
252
252
  }, Re;
253
253
  }
254
254
  var _e, at;
255
- function Ne() {
255
+ function Ue() {
256
256
  if (at) return _e;
257
257
  at = 1;
258
258
  var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
259
259
  return _e = t, _e;
260
260
  }
261
- var Ce, ot;
262
- function yt() {
263
- return ot || (ot = 1, Ce = Function.call.bind(Object.prototype.hasOwnProperty)), Ce;
261
+ var Ce, lt;
262
+ function xt() {
263
+ return lt || (lt = 1, Ce = Function.call.bind(Object.prototype.hasOwnProperty)), Ce;
264
264
  }
265
- var $e, lt;
266
- function Wt() {
267
- if (lt) return $e;
268
- lt = 1;
265
+ var $e, ct;
266
+ function Ut() {
267
+ if (ct) return $e;
268
+ ct = 1;
269
269
  var t = function() {
270
270
  };
271
271
  if (process.env.NODE_ENV !== "production") {
272
- var e = Ne(), n = {}, r = yt();
272
+ var e = Ue(), n = {}, r = xt();
273
273
  t = function(s) {
274
274
  var c = "Warning: " + s;
275
275
  typeof console < "u" && console.error(c);
@@ -279,7 +279,7 @@ function Wt() {
279
279
  }
280
280
  };
281
281
  }
282
- function i(s, c, a, u, o) {
282
+ function i(s, c, o, u, a) {
283
283
  if (process.env.NODE_ENV !== "production") {
284
284
  for (var l in s)
285
285
  if (r(s, l)) {
@@ -287,21 +287,21 @@ function Wt() {
287
287
  try {
288
288
  if (typeof s[l] != "function") {
289
289
  var p = Error(
290
- (u || "React class") + ": " + a + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
290
+ (u || "React class") + ": " + o + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
291
291
  );
292
292
  throw p.name = "Invariant Violation", p;
293
293
  }
294
- g = s[l](c, l, u, a, null, e);
294
+ g = s[l](c, l, u, o, null, e);
295
295
  } catch (y) {
296
296
  g = y;
297
297
  }
298
298
  if (g && !(g instanceof Error) && t(
299
- (u || "React class") + ": type specification of " + a + " `" + l + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof g + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
299
+ (u || "React class") + ": type specification of " + o + " `" + l + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof g + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
300
300
  ), g instanceof Error && !(g.message in n)) {
301
301
  n[g.message] = !0;
302
- var k = o ? o() : "";
302
+ var k = a ? a() : "";
303
303
  t(
304
- "Failed " + a + " type: " + g.message + (k ?? "")
304
+ "Failed " + o + " type: " + g.message + (k ?? "")
305
305
  );
306
306
  }
307
307
  }
@@ -311,14 +311,14 @@ function Wt() {
311
311
  process.env.NODE_ENV !== "production" && (n = {});
312
312
  }, $e = i, $e;
313
313
  }
314
- var Pe, ct;
315
- function Nt() {
316
- if (ct) return Pe;
317
- ct = 1;
318
- var t = bt(), e = Bt(), n = Ne(), r = yt(), i = Wt(), s = function() {
314
+ var Pe, ut;
315
+ function Ht() {
316
+ if (ut) return Pe;
317
+ ut = 1;
318
+ var t = yt(), e = Nt(), n = Ue(), r = xt(), i = Ut(), s = function() {
319
319
  };
320
- process.env.NODE_ENV !== "production" && (s = function(a) {
321
- var u = "Warning: " + a;
320
+ process.env.NODE_ENV !== "production" && (s = function(o) {
321
+ var u = "Warning: " + o;
322
322
  typeof console < "u" && console.error(u);
323
323
  try {
324
324
  throw new Error(u);
@@ -328,10 +328,10 @@ function Nt() {
328
328
  function c() {
329
329
  return null;
330
330
  }
331
- return Pe = function(a, u) {
332
- var o = typeof Symbol == "function" && Symbol.iterator, l = "@@iterator";
331
+ return Pe = function(o, u) {
332
+ var a = typeof Symbol == "function" && Symbol.iterator, l = "@@iterator";
333
333
  function g(h) {
334
- var m = h && (o && h[o] || h[l]);
334
+ var m = h && (a && h[a] || h[l]);
335
335
  if (typeof m == "function")
336
336
  return m;
337
337
  }
@@ -344,11 +344,11 @@ function Nt() {
344
344
  object: D("object"),
345
345
  string: D("string"),
346
346
  symbol: D("symbol"),
347
- any: U(),
347
+ any: H(),
348
348
  arrayOf: O,
349
349
  element: M(),
350
350
  elementType: f(),
351
- instanceOf: H,
351
+ instanceOf: U,
352
352
  node: ke(),
353
353
  objectOf: ne,
354
354
  oneOf: B,
@@ -400,7 +400,7 @@ function Nt() {
400
400
  }
401
401
  return P(m);
402
402
  }
403
- function U() {
403
+ function H() {
404
404
  return P(c);
405
405
  }
406
406
  function O(h) {
@@ -424,7 +424,7 @@ function Nt() {
424
424
  function M() {
425
425
  function h(m, R, E, v, _) {
426
426
  var w = m[R];
427
- if (!a(w)) {
427
+ if (!o(w)) {
428
428
  var T = Z(w);
429
429
  return new x("Invalid " + v + " `" + _ + "` of type " + ("`" + T + "` supplied to `" + E + "`, expected a single ReactElement."));
430
430
  }
@@ -443,7 +443,7 @@ function Nt() {
443
443
  }
444
444
  return P(h);
445
445
  }
446
- function H(h) {
446
+ function U(h) {
447
447
  function m(R, E, v, _, w) {
448
448
  if (!(R[E] instanceof h)) {
449
449
  var T = h.name || p, C = Te(R[E]);
@@ -515,7 +515,7 @@ function Nt() {
515
515
  }
516
516
  return P(h);
517
517
  }
518
- function oe(h, m, R, E, v) {
518
+ function ae(h, m, R, E, v) {
519
519
  return new x(
520
520
  (h || "React class") + ": " + m + " type `" + R + "." + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + v + "`."
521
521
  );
@@ -528,7 +528,7 @@ function Nt() {
528
528
  for (var j in h) {
529
529
  var $ = h[j];
530
530
  if (typeof $ != "function")
531
- return oe(v, _, w, j, J($));
531
+ return ae(v, _, w, j, J($));
532
532
  var N = $(T, j, v, _, w + "." + j, n);
533
533
  if (N)
534
534
  return N;
@@ -546,7 +546,7 @@ function Nt() {
546
546
  for (var $ in j) {
547
547
  var N = h[$];
548
548
  if (r(h, $) && typeof N != "function")
549
- return oe(v, _, w, $, J(N));
549
+ return ae(v, _, w, $, J(N));
550
550
  if (!N)
551
551
  return new x(
552
552
  "Invalid " + _ + " `" + w + "` key `" + $ + "` supplied to `" + v + "`.\nBad object: " + JSON.stringify(R[E], null, " ") + `
@@ -571,7 +571,7 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
571
571
  case "object":
572
572
  if (Array.isArray(h))
573
573
  return h.every(te);
574
- if (h === null || a(h))
574
+ if (h === null || o(h))
575
575
  return !0;
576
576
  var m = g(h);
577
577
  if (m) {
@@ -632,17 +632,17 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
632
632
  return k.checkPropTypes = i, k.resetWarningCache = i.resetWarningCache, k.PropTypes = k, k;
633
633
  }, Pe;
634
634
  }
635
- var Oe, ut;
636
- function Ht() {
637
- if (ut) return Oe;
638
- ut = 1;
639
- var t = Ne();
635
+ var Oe, pt;
636
+ function Yt() {
637
+ if (pt) return Oe;
638
+ pt = 1;
639
+ var t = Ue();
640
640
  function e() {
641
641
  }
642
642
  function n() {
643
643
  }
644
644
  return n.resetWarningCache = e, Oe = function() {
645
- function r(c, a, u, o, l, g) {
645
+ function r(c, o, u, a, l, g) {
646
646
  if (g !== t) {
647
647
  var p = new Error(
648
648
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
@@ -681,12 +681,12 @@ function Ht() {
681
681
  }, Oe;
682
682
  }
683
683
  if (process.env.NODE_ENV !== "production") {
684
- var Ut = bt(), Yt = !0;
685
- Ie.exports = Nt()(Ut.isElement, Yt);
684
+ var Zt = yt(), Ft = !0;
685
+ Ie.exports = Ht()(Zt.isElement, Ft);
686
686
  } else
687
- Ie.exports = Ht()();
688
- var Zt = Ie.exports;
689
- const Y = /* @__PURE__ */ Dt(Zt);
687
+ Ie.exports = Yt()();
688
+ var Gt = Ie.exports;
689
+ const Y = /* @__PURE__ */ qt(Gt);
690
690
  function ze() {
691
691
  return ze = Object.assign || function(t) {
692
692
  for (var e = 1; e < arguments.length; e++) {
@@ -697,9 +697,9 @@ function ze() {
697
697
  return t;
698
698
  }, ze.apply(this, arguments);
699
699
  }
700
- function Ft(t, e) {
700
+ function Vt(t, e) {
701
701
  if (t == null) return {};
702
- var n = Gt(t, e), r, i;
702
+ var n = Kt(t, e), r, i;
703
703
  if (Object.getOwnPropertySymbols) {
704
704
  var s = Object.getOwnPropertySymbols(t);
705
705
  for (i = 0; i < s.length; i++)
@@ -707,16 +707,16 @@ function Ft(t, e) {
707
707
  }
708
708
  return n;
709
709
  }
710
- function Gt(t, e) {
710
+ function Kt(t, e) {
711
711
  if (t == null) return {};
712
712
  var n = {}, r = Object.keys(t), i, s;
713
713
  for (s = 0; s < r.length; s++)
714
714
  i = r[s], !(e.indexOf(i) >= 0) && (n[i] = t[i]);
715
715
  return n;
716
716
  }
717
- var be = We(function(t, e) {
718
- var n = t.color, r = n === void 0 ? "currentColor" : n, i = t.size, s = i === void 0 ? 24 : i, c = Ft(t, ["color", "size"]);
719
- return /* @__PURE__ */ K.createElement("svg", ze({
717
+ var be = Ne(function(t, e) {
718
+ var n = t.color, r = n === void 0 ? "currentColor" : n, i = t.size, s = i === void 0 ? 24 : i, c = Vt(t, ["color", "size"]);
719
+ return /* @__PURE__ */ Q.createElement("svg", ze({
720
720
  ref: e,
721
721
  xmlns: "http://www.w3.org/2000/svg",
722
722
  width: s,
@@ -727,14 +727,14 @@ var be = We(function(t, e) {
727
727
  strokeWidth: "2",
728
728
  strokeLinecap: "round",
729
729
  strokeLinejoin: "round"
730
- }, c), /* @__PURE__ */ K.createElement("rect", {
730
+ }, c), /* @__PURE__ */ Q.createElement("rect", {
731
731
  x: "9",
732
732
  y: "9",
733
733
  width: "13",
734
734
  height: "13",
735
735
  rx: "2",
736
736
  ry: "2"
737
- }), /* @__PURE__ */ K.createElement("path", {
737
+ }), /* @__PURE__ */ Q.createElement("path", {
738
738
  d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"
739
739
  }));
740
740
  });
@@ -753,9 +753,9 @@ function Le() {
753
753
  return t;
754
754
  }, Le.apply(this, arguments);
755
755
  }
756
- function Vt(t, e) {
756
+ function Qt(t, e) {
757
757
  if (t == null) return {};
758
- var n = Qt(t, e), r, i;
758
+ var n = Jt(t, e), r, i;
759
759
  if (Object.getOwnPropertySymbols) {
760
760
  var s = Object.getOwnPropertySymbols(t);
761
761
  for (i = 0; i < s.length; i++)
@@ -763,16 +763,16 @@ function Vt(t, e) {
763
763
  }
764
764
  return n;
765
765
  }
766
- function Qt(t, e) {
766
+ function Jt(t, e) {
767
767
  if (t == null) return {};
768
768
  var n = {}, r = Object.keys(t), i, s;
769
769
  for (s = 0; s < r.length; s++)
770
770
  i = r[s], !(e.indexOf(i) >= 0) && (n[i] = t[i]);
771
771
  return n;
772
772
  }
773
- var He = We(function(t, e) {
774
- var n = t.color, r = n === void 0 ? "currentColor" : n, i = t.size, s = i === void 0 ? 24 : i, c = Vt(t, ["color", "size"]);
775
- return /* @__PURE__ */ K.createElement("svg", Le({
773
+ var He = Ne(function(t, e) {
774
+ var n = t.color, r = n === void 0 ? "currentColor" : n, i = t.size, s = i === void 0 ? 24 : i, c = Qt(t, ["color", "size"]);
775
+ return /* @__PURE__ */ Q.createElement("svg", Le({
776
776
  ref: e,
777
777
  xmlns: "http://www.w3.org/2000/svg",
778
778
  width: s,
@@ -783,12 +783,12 @@ var He = We(function(t, e) {
783
783
  strokeWidth: "2",
784
784
  strokeLinecap: "round",
785
785
  strokeLinejoin: "round"
786
- }, c), /* @__PURE__ */ K.createElement("line", {
786
+ }, c), /* @__PURE__ */ Q.createElement("line", {
787
787
  x1: "22",
788
788
  y1: "2",
789
789
  x2: "11",
790
790
  y2: "13"
791
- }), /* @__PURE__ */ K.createElement("polygon", {
791
+ }), /* @__PURE__ */ Q.createElement("polygon", {
792
792
  points: "22 2 15 22 11 13 2 9 22 2"
793
793
  }));
794
794
  });
@@ -807,9 +807,9 @@ function je() {
807
807
  return t;
808
808
  }, je.apply(this, arguments);
809
809
  }
810
- function Kt(t, e) {
810
+ function Xt(t, e) {
811
811
  if (t == null) return {};
812
- var n = Jt(t, e), r, i;
812
+ var n = en(t, e), r, i;
813
813
  if (Object.getOwnPropertySymbols) {
814
814
  var s = Object.getOwnPropertySymbols(t);
815
815
  for (i = 0; i < s.length; i++)
@@ -817,16 +817,16 @@ function Kt(t, e) {
817
817
  }
818
818
  return n;
819
819
  }
820
- function Jt(t, e) {
820
+ function en(t, e) {
821
821
  if (t == null) return {};
822
822
  var n = {}, r = Object.keys(t), i, s;
823
823
  for (s = 0; s < r.length; s++)
824
824
  i = r[s], !(e.indexOf(i) >= 0) && (n[i] = t[i]);
825
825
  return n;
826
826
  }
827
- var Ue = We(function(t, e) {
828
- var n = t.color, r = n === void 0 ? "currentColor" : n, i = t.size, s = i === void 0 ? 24 : i, c = Kt(t, ["color", "size"]);
829
- return /* @__PURE__ */ K.createElement("svg", je({
827
+ var Ye = Ne(function(t, e) {
828
+ var n = t.color, r = n === void 0 ? "currentColor" : n, i = t.size, s = i === void 0 ? 24 : i, c = Xt(t, ["color", "size"]);
829
+ return /* @__PURE__ */ Q.createElement("svg", je({
830
830
  ref: e,
831
831
  xmlns: "http://www.w3.org/2000/svg",
832
832
  width: s,
@@ -837,19 +837,19 @@ var Ue = We(function(t, e) {
837
837
  strokeWidth: "2",
838
838
  strokeLinecap: "round",
839
839
  strokeLinejoin: "round"
840
- }, c), /* @__PURE__ */ K.createElement("circle", {
840
+ }, c), /* @__PURE__ */ Q.createElement("circle", {
841
841
  cx: "12",
842
842
  cy: "12",
843
843
  r: "3"
844
- }), /* @__PURE__ */ K.createElement("path", {
844
+ }), /* @__PURE__ */ Q.createElement("path", {
845
845
  d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"
846
846
  }));
847
847
  });
848
- Ue.propTypes = {
848
+ Ye.propTypes = {
849
849
  color: Y.string,
850
850
  size: Y.oneOfType([Y.string, Y.number])
851
851
  };
852
- Ue.displayName = "Settings";
852
+ Ye.displayName = "Settings";
853
853
  const De = [
854
854
  { label: "Korean", value: "KR", extra: "ko" },
855
855
  { label: "English", value: "US", extra: "en" },
@@ -859,7 +859,7 @@ const De = [
859
859
  { label: "Traditional Chinese (Hong Kong)", value: "zh-HK", extra: "zh-cht" },
860
860
  { label: "Vietnamese", value: "VN", extra: "vi" },
861
861
  { label: "Indonesian", value: "ID", extra: "id" }
862
- ], Xt = ({ isGradient: t = !1, stroke: e = 1.5, size: n = 40 }) => {
862
+ ], tn = ({ isGradient: t = !1, stroke: e = 1.5, size: n = 40 }) => {
863
863
  const r = "ai-gradient-" + Math.random().toString(36).substr(2, 9);
864
864
  return /* @__PURE__ */ b.createElement(
865
865
  "svg",
@@ -918,19 +918,19 @@ const De = [
918
918
  )
919
919
  );
920
920
  };
921
- async function en(t, { setContent: e, setIsLoading: n, setConversationId: r, signer: i, baseUrl: s }) {
921
+ async function nn(t, { setContent: e, setIsLoading: n, setConversationId: r, signer: i, baseUrl: s }) {
922
922
  let c = "";
923
923
  try {
924
924
  n(!0);
925
- const a = {
925
+ const o = {
926
926
  method: "POST",
927
927
  baseURL: s,
928
928
  url: "/nmail/chatdraft",
929
929
  params: t
930
930
  };
931
931
  let u = {};
932
- i && typeof i.generateHeaders == "function" && (u = await i.generateHeaders(a));
933
- const o = await fetch(`${s}/nmail/chatdraft`, {
932
+ i && typeof i.generateHeaders == "function" && (u = await i.generateHeaders(o));
933
+ const a = await fetch(`${s}/nmail/chatdraft`, {
934
934
  method: "POST",
935
935
  body: JSON.stringify(t),
936
936
  headers: {
@@ -939,9 +939,9 @@ async function en(t, { setContent: e, setIsLoading: n, setConversationId: r, sig
939
939
  ...u
940
940
  }
941
941
  });
942
- if (n(!1), !o.body)
942
+ if (n(!1), !a.body)
943
943
  throw new Error("Response body is not available for streaming.");
944
- const l = o.body.getReader();
944
+ const l = a.body.getReader();
945
945
  let g = "", p = 0;
946
946
  for (; ; ) {
947
947
  const { done: k, value: y } = await l.read();
@@ -951,11 +951,11 @@ async function en(t, { setContent: e, setIsLoading: n, setConversationId: r, sig
951
951
  try {
952
952
  const D = new TextDecoder().decode(y);
953
953
  g += D;
954
- const U = /"answer":".*?"/g, O = /"conversation_id"\s*:\s*"([^"]+)"/, M = [...g.matchAll(U)], f = g.match(O);
954
+ const H = /"answer":".*?"/g, O = /"conversation_id"\s*:\s*"([^"]+)"/, M = [...g.matchAll(H)], f = g.match(O);
955
955
  for (f && f[1] && r(f[1]); p < M.length; ) {
956
- const H = M[p];
956
+ const U = M[p];
957
957
  try {
958
- x = H[0];
958
+ x = U[0];
959
959
  const B = x.slice(10, x.length - 1);
960
960
  P = `"${B}"`, B.endsWith("\\") && (P = `"${B}\\"`);
961
961
  const ne = JSON.parse(P);
@@ -970,14 +970,14 @@ async function en(t, { setContent: e, setIsLoading: n, setConversationId: r, sig
970
970
  }
971
971
  }
972
972
  return c;
973
- } catch (a) {
974
- console.error("Summary error:", a), e("");
973
+ } catch (o) {
974
+ console.error("Summary error:", o), e("");
975
975
  } finally {
976
976
  n(!1);
977
977
  }
978
978
  return "";
979
979
  }
980
- function Ye() {
980
+ function Ze() {
981
981
  return {
982
982
  async: !1,
983
983
  breaks: !1,
@@ -991,8 +991,8 @@ function Ye() {
991
991
  walkTokens: null
992
992
  };
993
993
  }
994
- var ee = Ye();
995
- function xt(t) {
994
+ var ee = Ze();
995
+ function vt(t) {
996
996
  ee = t;
997
997
  }
998
998
  var se = { exec: () => null };
@@ -1064,109 +1064,109 @@ var W = {
1064
1064
  fencesBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:\`\`\`|~~~)`),
1065
1065
  headingBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}#`),
1066
1066
  htmlBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}<(?:[a-z].*>|!--)`, "i")
1067
- }, tn = /^(?:[ \t]*(?:\n|$))+/, nn = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, rn = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, ae = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, sn = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ze = /(?:[*+-]|\d{1,9}[.)])/, vt = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, kt = L(vt).replace(/bull/g, Ze).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), an = L(vt).replace(/bull/g, Ze).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Fe = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, on = /^[^\n]+/, Ge = /(?!\s*\])(?:\\.|[^\[\]\\])+/, ln = L(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Ge).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), cn = L(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Ze).getRegex(), ye = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Ve = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, un = L(
1067
+ }, rn = /^(?:[ \t]*(?:\n|$))+/, sn = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, on = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, oe = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, an = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Fe = /(?:[*+-]|\d{1,9}[.)])/, kt = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, wt = L(kt).replace(/bull/g, Fe).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), ln = L(kt).replace(/bull/g, Fe).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Ge = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, cn = /^[^\n]+/, Ve = /(?!\s*\])(?:\\.|[^\[\]\\])+/, un = L(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Ve).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), pn = L(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Fe).getRegex(), ye = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Ke = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, hn = L(
1068
1068
  "^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))",
1069
1069
  "i"
1070
- ).replace("comment", Ve).replace("tag", ye).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), wt = L(Fe).replace("hr", ae).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ye).getRegex(), pn = L(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", wt).getRegex(), Qe = {
1071
- blockquote: pn,
1072
- code: nn,
1073
- def: ln,
1074
- fences: rn,
1075
- heading: sn,
1076
- hr: ae,
1077
- html: un,
1078
- lheading: kt,
1079
- list: cn,
1080
- newline: tn,
1081
- paragraph: wt,
1070
+ ).replace("comment", Ke).replace("tag", ye).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), St = L(Ge).replace("hr", oe).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ye).getRegex(), fn = L(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", St).getRegex(), Qe = {
1071
+ blockquote: fn,
1072
+ code: sn,
1073
+ def: un,
1074
+ fences: on,
1075
+ heading: an,
1076
+ hr: oe,
1077
+ html: hn,
1078
+ lheading: wt,
1079
+ list: pn,
1080
+ newline: rn,
1081
+ paragraph: St,
1082
1082
  table: se,
1083
- text: on
1084
- }, pt = L(
1083
+ text: cn
1084
+ }, ht = L(
1085
1085
  "^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"
1086
- ).replace("hr", ae).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ye).getRegex(), hn = {
1086
+ ).replace("hr", oe).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ye).getRegex(), dn = {
1087
1087
  ...Qe,
1088
- lheading: an,
1089
- table: pt,
1090
- paragraph: L(Fe).replace("hr", ae).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", pt).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ye).getRegex()
1091
- }, fn = {
1088
+ lheading: ln,
1089
+ table: ht,
1090
+ paragraph: L(Ge).replace("hr", oe).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ht).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ye).getRegex()
1091
+ }, gn = {
1092
1092
  ...Qe,
1093
1093
  html: L(
1094
1094
  `^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`
1095
- ).replace("comment", Ve).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
1095
+ ).replace("comment", Ke).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
1096
1096
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
1097
1097
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
1098
1098
  fences: se,
1099
1099
  // fences not supported
1100
1100
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
1101
- paragraph: L(Fe).replace("hr", ae).replace("heading", ` *#{1,6} *[^
1102
- ]`).replace("lheading", kt).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
1103
- }, dn = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, gn = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, St = /^( {2,}|\\)\n(?!\s*$)/, mn = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, xe = /[\p{P}\p{S}]/u, Ke = /[\s\p{P}\p{S}]/u, Et = /[^\s\p{P}\p{S}]/u, bn = L(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Ke).getRegex(), Tt = /(?!~)[\p{P}\p{S}]/u, yn = /(?!~)[\s\p{P}\p{S}]/u, xn = /(?:[^\s\p{P}\p{S}]|~)/u, vn = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Rt = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, kn = L(Rt, "u").replace(/punct/g, xe).getRegex(), wn = L(Rt, "u").replace(/punct/g, Tt).getRegex(), _t = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Sn = L(_t, "gu").replace(/notPunctSpace/g, Et).replace(/punctSpace/g, Ke).replace(/punct/g, xe).getRegex(), En = L(_t, "gu").replace(/notPunctSpace/g, xn).replace(/punctSpace/g, yn).replace(/punct/g, Tt).getRegex(), Tn = L(
1101
+ paragraph: L(Ge).replace("hr", oe).replace("heading", ` *#{1,6} *[^
1102
+ ]`).replace("lheading", wt).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
1103
+ }, mn = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, bn = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Et = /^( {2,}|\\)\n(?!\s*$)/, yn = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, xe = /[\p{P}\p{S}]/u, Je = /[\s\p{P}\p{S}]/u, Tt = /[^\s\p{P}\p{S}]/u, xn = L(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Je).getRegex(), Rt = /(?!~)[\p{P}\p{S}]/u, vn = /(?!~)[\s\p{P}\p{S}]/u, kn = /(?:[^\s\p{P}\p{S}]|~)/u, wn = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, _t = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Sn = L(_t, "u").replace(/punct/g, xe).getRegex(), En = L(_t, "u").replace(/punct/g, Rt).getRegex(), Ct = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Tn = L(Ct, "gu").replace(/notPunctSpace/g, Tt).replace(/punctSpace/g, Je).replace(/punct/g, xe).getRegex(), Rn = L(Ct, "gu").replace(/notPunctSpace/g, kn).replace(/punctSpace/g, vn).replace(/punct/g, Rt).getRegex(), _n = L(
1104
1104
  "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)",
1105
1105
  "gu"
1106
- ).replace(/notPunctSpace/g, Et).replace(/punctSpace/g, Ke).replace(/punct/g, xe).getRegex(), Rn = L(/\\(punct)/, "gu").replace(/punct/g, xe).getRegex(), _n = L(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Cn = L(Ve).replace("(?:-->|$)", "-->").getRegex(), $n = L(
1106
+ ).replace(/notPunctSpace/g, Tt).replace(/punctSpace/g, Je).replace(/punct/g, xe).getRegex(), Cn = L(/\\(punct)/, "gu").replace(/punct/g, xe).getRegex(), $n = L(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Pn = L(Ke).replace("(?:-->|$)", "-->").getRegex(), On = L(
1107
1107
  "^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>"
1108
- ).replace("comment", Cn).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), de = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Pn = L(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", de).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Ct = L(/^!?\[(label)\]\[(ref)\]/).replace("label", de).replace("ref", Ge).getRegex(), $t = L(/^!?\[(ref)\](?:\[\])?/).replace("ref", Ge).getRegex(), On = L("reflink|nolink(?!\\()", "g").replace("reflink", Ct).replace("nolink", $t).getRegex(), Je = {
1108
+ ).replace("comment", Pn).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), de = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, An = L(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", de).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), $t = L(/^!?\[(label)\]\[(ref)\]/).replace("label", de).replace("ref", Ve).getRegex(), Pt = L(/^!?\[(ref)\](?:\[\])?/).replace("ref", Ve).getRegex(), In = L("reflink|nolink(?!\\()", "g").replace("reflink", $t).replace("nolink", Pt).getRegex(), Xe = {
1109
1109
  _backpedal: se,
1110
1110
  // only used for GFM url
1111
- anyPunctuation: Rn,
1112
- autolink: _n,
1113
- blockSkip: vn,
1114
- br: St,
1115
- code: gn,
1111
+ anyPunctuation: Cn,
1112
+ autolink: $n,
1113
+ blockSkip: wn,
1114
+ br: Et,
1115
+ code: bn,
1116
1116
  del: se,
1117
- emStrongLDelim: kn,
1118
- emStrongRDelimAst: Sn,
1119
- emStrongRDelimUnd: Tn,
1120
- escape: dn,
1121
- link: Pn,
1122
- nolink: $t,
1123
- punctuation: bn,
1124
- reflink: Ct,
1125
- reflinkSearch: On,
1126
- tag: $n,
1127
- text: mn,
1117
+ emStrongLDelim: Sn,
1118
+ emStrongRDelimAst: Tn,
1119
+ emStrongRDelimUnd: _n,
1120
+ escape: mn,
1121
+ link: An,
1122
+ nolink: Pt,
1123
+ punctuation: xn,
1124
+ reflink: $t,
1125
+ reflinkSearch: In,
1126
+ tag: On,
1127
+ text: yn,
1128
1128
  url: se
1129
- }, An = {
1130
- ...Je,
1129
+ }, zn = {
1130
+ ...Xe,
1131
1131
  link: L(/^!?\[(label)\]\((.*?)\)/).replace("label", de).getRegex(),
1132
1132
  reflink: L(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", de).getRegex()
1133
1133
  }, Me = {
1134
- ...Je,
1135
- emStrongRDelimAst: En,
1136
- emStrongLDelim: wn,
1134
+ ...Xe,
1135
+ emStrongRDelimAst: Rn,
1136
+ emStrongLDelim: En,
1137
1137
  url: L(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
1138
1138
  _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
1139
1139
  del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,
1140
1140
  text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
1141
- }, In = {
1141
+ }, Ln = {
1142
1142
  ...Me,
1143
- br: L(St).replace("{2,}", "*").getRegex(),
1143
+ br: L(Et).replace("{2,}", "*").getRegex(),
1144
1144
  text: L(Me.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
1145
1145
  }, he = {
1146
1146
  normal: Qe,
1147
- gfm: hn,
1148
- pedantic: fn
1147
+ gfm: dn,
1148
+ pedantic: gn
1149
1149
  }, re = {
1150
- normal: Je,
1150
+ normal: Xe,
1151
1151
  gfm: Me,
1152
- breaks: In,
1153
- pedantic: An
1154
- }, zn = {
1152
+ breaks: Ln,
1153
+ pedantic: zn
1154
+ }, jn = {
1155
1155
  "&": "&amp;",
1156
1156
  "<": "&lt;",
1157
1157
  ">": "&gt;",
1158
1158
  '"': "&quot;",
1159
1159
  "'": "&#39;"
1160
- }, ht = (t) => zn[t];
1160
+ }, ft = (t) => jn[t];
1161
1161
  function G(t, e) {
1162
1162
  if (e) {
1163
1163
  if (W.escapeTest.test(t))
1164
- return t.replace(W.escapeReplace, ht);
1164
+ return t.replace(W.escapeReplace, ft);
1165
1165
  } else if (W.escapeTestNoEncode.test(t))
1166
- return t.replace(W.escapeReplaceNoEncode, ht);
1166
+ return t.replace(W.escapeReplaceNoEncode, ft);
1167
1167
  return t;
1168
1168
  }
1169
- function ft(t) {
1169
+ function dt(t) {
1170
1170
  try {
1171
1171
  t = encodeURI(t).replace(W.percentDecode, "%");
1172
1172
  } catch {
@@ -1174,12 +1174,12 @@ function ft(t) {
1174
1174
  }
1175
1175
  return t;
1176
1176
  }
1177
- function dt(t, e) {
1177
+ function gt(t, e) {
1178
1178
  var s;
1179
- const n = t.replace(W.findPipe, (c, a, u) => {
1180
- let o = !1, l = a;
1181
- for (; --l >= 0 && u[l] === "\\"; ) o = !o;
1182
- return o ? "|" : " |";
1179
+ const n = t.replace(W.findPipe, (c, o, u) => {
1180
+ let a = !1, l = o;
1181
+ for (; --l >= 0 && u[l] === "\\"; ) a = !a;
1182
+ return a ? "|" : " |";
1183
1183
  }), r = n.split(W.splitPipe);
1184
1184
  let i = 0;
1185
1185
  if (r[0].trim() || r.shift(), r.length > 0 && !((s = r.at(-1)) != null && s.trim()) && r.pop(), e)
@@ -1200,7 +1200,7 @@ function ie(t, e, n) {
1200
1200
  i++;
1201
1201
  return t.slice(0, r - i);
1202
1202
  }
1203
- function Ln(t, e) {
1203
+ function Dn(t, e) {
1204
1204
  if (t.indexOf(e[1]) === -1)
1205
1205
  return -1;
1206
1206
  let n = 0;
@@ -1213,20 +1213,20 @@ function Ln(t, e) {
1213
1213
  return r;
1214
1214
  return n > 0 ? -2 : -1;
1215
1215
  }
1216
- function gt(t, e, n, r, i) {
1217
- const s = e.href, c = e.title || null, a = t[1].replace(i.other.outputLinkReplace, "$1");
1216
+ function mt(t, e, n, r, i) {
1217
+ const s = e.href, c = e.title || null, o = t[1].replace(i.other.outputLinkReplace, "$1");
1218
1218
  r.state.inLink = !0;
1219
1219
  const u = {
1220
1220
  type: t[0].charAt(0) === "!" ? "image" : "link",
1221
1221
  raw: n,
1222
1222
  href: s,
1223
1223
  title: c,
1224
- text: a,
1225
- tokens: r.inlineTokens(a)
1224
+ text: o,
1225
+ tokens: r.inlineTokens(o)
1226
1226
  };
1227
1227
  return r.state.inLink = !1, u;
1228
1228
  }
1229
- function jn(t, e, n) {
1229
+ function Mn(t, e, n) {
1230
1230
  const r = t.match(n.other.indentCodeCompensation);
1231
1231
  if (r === null)
1232
1232
  return e;
@@ -1236,8 +1236,8 @@ function jn(t, e, n) {
1236
1236
  const c = s.match(n.other.beginningSpace);
1237
1237
  if (c === null)
1238
1238
  return s;
1239
- const [a] = c;
1240
- return a.length >= i.length ? s.slice(i.length) : s;
1239
+ const [o] = c;
1240
+ return o.length >= i.length ? s.slice(i.length) : s;
1241
1241
  }).join(`
1242
1242
  `);
1243
1243
  }
@@ -1274,7 +1274,7 @@ var ge = class {
1274
1274
  fences(t) {
1275
1275
  const e = this.rules.block.fences.exec(t);
1276
1276
  if (e) {
1277
- const n = e[0], r = jn(n, e[3] || "", this.rules);
1277
+ const n = e[0], r = Mn(n, e[3] || "", this.rules);
1278
1278
  return {
1279
1279
  type: "code",
1280
1280
  raw: n,
@@ -1318,21 +1318,21 @@ var ge = class {
1318
1318
  const s = [];
1319
1319
  for (; n.length > 0; ) {
1320
1320
  let c = !1;
1321
- const a = [];
1321
+ const o = [];
1322
1322
  let u;
1323
1323
  for (u = 0; u < n.length; u++)
1324
1324
  if (this.rules.other.blockquoteStart.test(n[u]))
1325
- a.push(n[u]), c = !0;
1325
+ o.push(n[u]), c = !0;
1326
1326
  else if (!c)
1327
- a.push(n[u]);
1327
+ o.push(n[u]);
1328
1328
  else
1329
1329
  break;
1330
1330
  n = n.slice(u);
1331
- const o = a.join(`
1332
- `), l = o.replace(this.rules.other.blockquoteSetextReplace, `
1331
+ const a = o.join(`
1332
+ `), l = a.replace(this.rules.other.blockquoteSetextReplace, `
1333
1333
  $1`).replace(this.rules.other.blockquoteSetextReplace2, "");
1334
1334
  r = r ? `${r}
1335
- ${o}` : o, i = i ? `${i}
1335
+ ${a}` : a, i = i ? `${i}
1336
1336
  ${l}` : l;
1337
1337
  const g = this.lexer.state.top;
1338
1338
  if (this.lexer.state.top = !0, this.lexer.blockTokens(l, s, !0), this.lexer.state.top = g, n.length === 0)
@@ -1379,56 +1379,56 @@ ${l}` : l;
1379
1379
  const s = this.rules.other.listItemRegex(n);
1380
1380
  let c = !1;
1381
1381
  for (; t; ) {
1382
- let u = !1, o = "", l = "";
1382
+ let u = !1, a = "", l = "";
1383
1383
  if (!(e = s.exec(t)) || this.rules.block.hr.test(t))
1384
1384
  break;
1385
- o = e[0], t = t.substring(o.length);
1385
+ a = e[0], t = t.substring(a.length);
1386
1386
  let g = e[2].split(`
1387
1387
  `, 1)[0].replace(this.rules.other.listReplaceTabs, (D) => " ".repeat(3 * D.length)), p = t.split(`
1388
1388
  `, 1)[0], k = !g.trim(), y = 0;
1389
- if (this.options.pedantic ? (y = 2, l = g.trimStart()) : k ? y = e[1].length + 1 : (y = e[2].search(this.rules.other.nonSpaceChar), y = y > 4 ? 1 : y, l = g.slice(y), y += e[1].length), k && this.rules.other.blankLine.test(p) && (o += p + `
1389
+ if (this.options.pedantic ? (y = 2, l = g.trimStart()) : k ? y = e[1].length + 1 : (y = e[2].search(this.rules.other.nonSpaceChar), y = y > 4 ? 1 : y, l = g.slice(y), y += e[1].length), k && this.rules.other.blankLine.test(p) && (a += p + `
1390
1390
  `, t = t.substring(p.length + 1), u = !0), !u) {
1391
- const D = this.rules.other.nextBulletRegex(y), U = this.rules.other.hrRegex(y), O = this.rules.other.fencesBeginRegex(y), M = this.rules.other.headingBeginRegex(y), f = this.rules.other.htmlBeginRegex(y);
1391
+ const D = this.rules.other.nextBulletRegex(y), H = this.rules.other.hrRegex(y), O = this.rules.other.fencesBeginRegex(y), M = this.rules.other.headingBeginRegex(y), f = this.rules.other.htmlBeginRegex(y);
1392
1392
  for (; t; ) {
1393
- const H = t.split(`
1393
+ const U = t.split(`
1394
1394
  `, 1)[0];
1395
1395
  let B;
1396
- if (p = H, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), B = p) : B = p.replace(this.rules.other.tabCharGlobal, " "), O.test(p) || M.test(p) || f.test(p) || D.test(p) || U.test(p))
1396
+ if (p = U, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), B = p) : B = p.replace(this.rules.other.tabCharGlobal, " "), O.test(p) || M.test(p) || f.test(p) || D.test(p) || H.test(p))
1397
1397
  break;
1398
1398
  if (B.search(this.rules.other.nonSpaceChar) >= y || !p.trim())
1399
1399
  l += `
1400
1400
  ` + B.slice(y);
1401
1401
  else {
1402
- if (k || g.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || O.test(g) || M.test(g) || U.test(g))
1402
+ if (k || g.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || O.test(g) || M.test(g) || H.test(g))
1403
1403
  break;
1404
1404
  l += `
1405
1405
  ` + p;
1406
1406
  }
1407
- !k && !p.trim() && (k = !0), o += H + `
1408
- `, t = t.substring(H.length + 1), g = B.slice(y);
1407
+ !k && !p.trim() && (k = !0), a += U + `
1408
+ `, t = t.substring(U.length + 1), g = B.slice(y);
1409
1409
  }
1410
1410
  }
1411
- i.loose || (c ? i.loose = !0 : this.rules.other.doubleBlankLine.test(o) && (c = !0));
1411
+ i.loose || (c ? i.loose = !0 : this.rules.other.doubleBlankLine.test(a) && (c = !0));
1412
1412
  let x = null, P;
1413
1413
  this.options.gfm && (x = this.rules.other.listIsTask.exec(l), x && (P = x[0] !== "[ ] ", l = l.replace(this.rules.other.listReplaceTask, ""))), i.items.push({
1414
1414
  type: "list_item",
1415
- raw: o,
1415
+ raw: a,
1416
1416
  task: !!x,
1417
1417
  checked: P,
1418
1418
  loose: !1,
1419
1419
  text: l,
1420
1420
  tokens: []
1421
- }), i.raw += o;
1421
+ }), i.raw += a;
1422
1422
  }
1423
- const a = i.items.at(-1);
1424
- if (a)
1425
- a.raw = a.raw.trimEnd(), a.text = a.text.trimEnd();
1423
+ const o = i.items.at(-1);
1424
+ if (o)
1425
+ o.raw = o.raw.trimEnd(), o.text = o.text.trimEnd();
1426
1426
  else
1427
1427
  return;
1428
1428
  i.raw = i.raw.trimEnd();
1429
1429
  for (let u = 0; u < i.items.length; u++)
1430
1430
  if (this.lexer.state.top = !1, i.items[u].tokens = this.lexer.blockTokens(i.items[u].text, []), !i.loose) {
1431
- const o = i.items[u].tokens.filter((g) => g.type === "space"), l = o.length > 0 && o.some((g) => this.rules.other.anyLine.test(g.raw));
1431
+ const a = i.items[u].tokens.filter((g) => g.type === "space"), l = a.length > 0 && a.some((g) => this.rules.other.anyLine.test(g.raw));
1432
1432
  i.loose = l;
1433
1433
  }
1434
1434
  if (i.loose)
@@ -1466,7 +1466,7 @@ ${l}` : l;
1466
1466
  const e = this.rules.block.table.exec(t);
1467
1467
  if (!e || !this.rules.other.tableDelimiter.test(e[2]))
1468
1468
  return;
1469
- const n = dt(e[1]), r = e[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = (c = e[3]) != null && c.trim() ? e[3].replace(this.rules.other.tableRowBlankLine, "").split(`
1469
+ const n = gt(e[1]), r = e[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = (c = e[3]) != null && c.trim() ? e[3].replace(this.rules.other.tableRowBlankLine, "").split(`
1470
1470
  `) : [], s = {
1471
1471
  type: "table",
1472
1472
  raw: e[0],
@@ -1475,21 +1475,21 @@ ${l}` : l;
1475
1475
  rows: []
1476
1476
  };
1477
1477
  if (n.length === r.length) {
1478
- for (const a of r)
1479
- this.rules.other.tableAlignRight.test(a) ? s.align.push("right") : this.rules.other.tableAlignCenter.test(a) ? s.align.push("center") : this.rules.other.tableAlignLeft.test(a) ? s.align.push("left") : s.align.push(null);
1480
- for (let a = 0; a < n.length; a++)
1478
+ for (const o of r)
1479
+ this.rules.other.tableAlignRight.test(o) ? s.align.push("right") : this.rules.other.tableAlignCenter.test(o) ? s.align.push("center") : this.rules.other.tableAlignLeft.test(o) ? s.align.push("left") : s.align.push(null);
1480
+ for (let o = 0; o < n.length; o++)
1481
1481
  s.header.push({
1482
- text: n[a],
1483
- tokens: this.lexer.inline(n[a]),
1482
+ text: n[o],
1483
+ tokens: this.lexer.inline(n[o]),
1484
1484
  header: !0,
1485
- align: s.align[a]
1485
+ align: s.align[o]
1486
1486
  });
1487
- for (const a of i)
1488
- s.rows.push(dt(a, s.header.length).map((u, o) => ({
1487
+ for (const o of i)
1488
+ s.rows.push(gt(o, s.header.length).map((u, a) => ({
1489
1489
  text: u,
1490
1490
  tokens: this.lexer.inline(u),
1491
1491
  header: !1,
1492
- align: s.align[o]
1492
+ align: s.align[a]
1493
1493
  })));
1494
1494
  return s;
1495
1495
  }
@@ -1560,12 +1560,12 @@ ${l}` : l;
1560
1560
  if ((n.length - s.length) % 2 === 0)
1561
1561
  return;
1562
1562
  } else {
1563
- const s = Ln(e[2], "()");
1563
+ const s = Dn(e[2], "()");
1564
1564
  if (s === -2)
1565
1565
  return;
1566
1566
  if (s > -1) {
1567
- const a = (e[0].indexOf("!") === 0 ? 5 : 4) + e[1].length + s;
1568
- e[2] = e[2].substring(0, s), e[0] = e[0].substring(0, a).trim(), e[3] = "";
1567
+ const o = (e[0].indexOf("!") === 0 ? 5 : 4) + e[1].length + s;
1568
+ e[2] = e[2].substring(0, s), e[0] = e[0].substring(0, o).trim(), e[3] = "";
1569
1569
  }
1570
1570
  }
1571
1571
  let r = e[2], i = "";
@@ -1574,7 +1574,7 @@ ${l}` : l;
1574
1574
  s && (r = s[1], i = s[3]);
1575
1575
  } else
1576
1576
  i = e[3] ? e[3].slice(1, -1) : "";
1577
- return r = r.trim(), this.rules.other.startAngleBracket.test(r) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r = r.slice(1) : r = r.slice(1, -1)), gt(e, {
1577
+ return r = r.trim(), this.rules.other.startAngleBracket.test(r) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r = r.slice(1) : r = r.slice(1, -1)), mt(e, {
1578
1578
  href: r && r.replace(this.rules.inline.anyPunctuation, "$1"),
1579
1579
  title: i && i.replace(this.rules.inline.anyPunctuation, "$1")
1580
1580
  }, e[0], this.lexer, this.rules);
@@ -1592,7 +1592,7 @@ ${l}` : l;
1592
1592
  text: s
1593
1593
  };
1594
1594
  }
1595
- return gt(n, i, n[0], this.lexer, this.rules);
1595
+ return mt(n, i, n[0], this.lexer, this.rules);
1596
1596
  }
1597
1597
  }
1598
1598
  emStrong(t, e, n = "") {
@@ -1600,21 +1600,21 @@ ${l}` : l;
1600
1600
  if (!r || r[3] && n.match(this.rules.other.unicodeAlphaNumeric)) return;
1601
1601
  if (!(r[1] || r[2] || "") || !n || this.rules.inline.punctuation.exec(n)) {
1602
1602
  const s = [...r[0]].length - 1;
1603
- let c, a, u = s, o = 0;
1603
+ let c, o, u = s, a = 0;
1604
1604
  const l = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
1605
1605
  for (l.lastIndex = 0, e = e.slice(-1 * t.length + s); (r = l.exec(e)) != null; ) {
1606
1606
  if (c = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !c) continue;
1607
- if (a = [...c].length, r[3] || r[4]) {
1608
- u += a;
1607
+ if (o = [...c].length, r[3] || r[4]) {
1608
+ u += o;
1609
1609
  continue;
1610
- } else if ((r[5] || r[6]) && s % 3 && !((s + a) % 3)) {
1611
- o += a;
1610
+ } else if ((r[5] || r[6]) && s % 3 && !((s + o) % 3)) {
1611
+ a += o;
1612
1612
  continue;
1613
1613
  }
1614
- if (u -= a, u > 0) continue;
1615
- a = Math.min(a, a + u + o);
1616
- const g = [...r[0]][0].length, p = t.slice(0, s + r.index + g + a);
1617
- if (Math.min(s, a) % 2) {
1614
+ if (u -= o, u > 0) continue;
1615
+ o = Math.min(o, o + u + a);
1616
+ const g = [...r[0]][0].length, p = t.slice(0, s + r.index + g + o);
1617
+ if (Math.min(s, o) % 2) {
1618
1618
  const y = p.slice(1, -1);
1619
1619
  return {
1620
1620
  type: "em",
@@ -1778,98 +1778,98 @@ ${l}` : l;
1778
1778
  blockTokens(e, n = [], r = !1) {
1779
1779
  var i, s, c;
1780
1780
  for (this.options.pedantic && (e = e.replace(W.tabCharGlobal, " ").replace(W.spaceLine, "")); e; ) {
1781
- let a;
1782
- if ((s = (i = this.options.extensions) == null ? void 0 : i.block) != null && s.some((o) => (a = o.call({ lexer: this }, e, n)) ? (e = e.substring(a.raw.length), n.push(a), !0) : !1))
1781
+ let o;
1782
+ if ((s = (i = this.options.extensions) == null ? void 0 : i.block) != null && s.some((a) => (o = a.call({ lexer: this }, e, n)) ? (e = e.substring(o.raw.length), n.push(o), !0) : !1))
1783
1783
  continue;
1784
- if (a = this.tokenizer.space(e)) {
1785
- e = e.substring(a.raw.length);
1786
- const o = n.at(-1);
1787
- a.raw.length === 1 && o !== void 0 ? o.raw += `
1788
- ` : n.push(a);
1784
+ if (o = this.tokenizer.space(e)) {
1785
+ e = e.substring(o.raw.length);
1786
+ const a = n.at(-1);
1787
+ o.raw.length === 1 && a !== void 0 ? a.raw += `
1788
+ ` : n.push(o);
1789
1789
  continue;
1790
1790
  }
1791
- if (a = this.tokenizer.code(e)) {
1792
- e = e.substring(a.raw.length);
1793
- const o = n.at(-1);
1794
- (o == null ? void 0 : o.type) === "paragraph" || (o == null ? void 0 : o.type) === "text" ? (o.raw += `
1795
- ` + a.raw, o.text += `
1796
- ` + a.text, this.inlineQueue.at(-1).src = o.text) : n.push(a);
1791
+ if (o = this.tokenizer.code(e)) {
1792
+ e = e.substring(o.raw.length);
1793
+ const a = n.at(-1);
1794
+ (a == null ? void 0 : a.type) === "paragraph" || (a == null ? void 0 : a.type) === "text" ? (a.raw += `
1795
+ ` + o.raw, a.text += `
1796
+ ` + o.text, this.inlineQueue.at(-1).src = a.text) : n.push(o);
1797
1797
  continue;
1798
1798
  }
1799
- if (a = this.tokenizer.fences(e)) {
1800
- e = e.substring(a.raw.length), n.push(a);
1799
+ if (o = this.tokenizer.fences(e)) {
1800
+ e = e.substring(o.raw.length), n.push(o);
1801
1801
  continue;
1802
1802
  }
1803
- if (a = this.tokenizer.heading(e)) {
1804
- e = e.substring(a.raw.length), n.push(a);
1803
+ if (o = this.tokenizer.heading(e)) {
1804
+ e = e.substring(o.raw.length), n.push(o);
1805
1805
  continue;
1806
1806
  }
1807
- if (a = this.tokenizer.hr(e)) {
1808
- e = e.substring(a.raw.length), n.push(a);
1807
+ if (o = this.tokenizer.hr(e)) {
1808
+ e = e.substring(o.raw.length), n.push(o);
1809
1809
  continue;
1810
1810
  }
1811
- if (a = this.tokenizer.blockquote(e)) {
1812
- e = e.substring(a.raw.length), n.push(a);
1811
+ if (o = this.tokenizer.blockquote(e)) {
1812
+ e = e.substring(o.raw.length), n.push(o);
1813
1813
  continue;
1814
1814
  }
1815
- if (a = this.tokenizer.list(e)) {
1816
- e = e.substring(a.raw.length), n.push(a);
1815
+ if (o = this.tokenizer.list(e)) {
1816
+ e = e.substring(o.raw.length), n.push(o);
1817
1817
  continue;
1818
1818
  }
1819
- if (a = this.tokenizer.html(e)) {
1820
- e = e.substring(a.raw.length), n.push(a);
1819
+ if (o = this.tokenizer.html(e)) {
1820
+ e = e.substring(o.raw.length), n.push(o);
1821
1821
  continue;
1822
1822
  }
1823
- if (a = this.tokenizer.def(e)) {
1824
- e = e.substring(a.raw.length);
1825
- const o = n.at(-1);
1826
- (o == null ? void 0 : o.type) === "paragraph" || (o == null ? void 0 : o.type) === "text" ? (o.raw += `
1827
- ` + a.raw, o.text += `
1828
- ` + a.raw, this.inlineQueue.at(-1).src = o.text) : this.tokens.links[a.tag] || (this.tokens.links[a.tag] = {
1829
- href: a.href,
1830
- title: a.title
1823
+ if (o = this.tokenizer.def(e)) {
1824
+ e = e.substring(o.raw.length);
1825
+ const a = n.at(-1);
1826
+ (a == null ? void 0 : a.type) === "paragraph" || (a == null ? void 0 : a.type) === "text" ? (a.raw += `
1827
+ ` + o.raw, a.text += `
1828
+ ` + o.raw, this.inlineQueue.at(-1).src = a.text) : this.tokens.links[o.tag] || (this.tokens.links[o.tag] = {
1829
+ href: o.href,
1830
+ title: o.title
1831
1831
  });
1832
1832
  continue;
1833
1833
  }
1834
- if (a = this.tokenizer.table(e)) {
1835
- e = e.substring(a.raw.length), n.push(a);
1834
+ if (o = this.tokenizer.table(e)) {
1835
+ e = e.substring(o.raw.length), n.push(o);
1836
1836
  continue;
1837
1837
  }
1838
- if (a = this.tokenizer.lheading(e)) {
1839
- e = e.substring(a.raw.length), n.push(a);
1838
+ if (o = this.tokenizer.lheading(e)) {
1839
+ e = e.substring(o.raw.length), n.push(o);
1840
1840
  continue;
1841
1841
  }
1842
1842
  let u = e;
1843
1843
  if ((c = this.options.extensions) != null && c.startBlock) {
1844
- let o = 1 / 0;
1844
+ let a = 1 / 0;
1845
1845
  const l = e.slice(1);
1846
1846
  let g;
1847
1847
  this.options.extensions.startBlock.forEach((p) => {
1848
- g = p.call({ lexer: this }, l), typeof g == "number" && g >= 0 && (o = Math.min(o, g));
1849
- }), o < 1 / 0 && o >= 0 && (u = e.substring(0, o + 1));
1850
- }
1851
- if (this.state.top && (a = this.tokenizer.paragraph(u))) {
1852
- const o = n.at(-1);
1853
- r && (o == null ? void 0 : o.type) === "paragraph" ? (o.raw += `
1854
- ` + a.raw, o.text += `
1855
- ` + a.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = o.text) : n.push(a), r = u.length !== e.length, e = e.substring(a.raw.length);
1848
+ g = p.call({ lexer: this }, l), typeof g == "number" && g >= 0 && (a = Math.min(a, g));
1849
+ }), a < 1 / 0 && a >= 0 && (u = e.substring(0, a + 1));
1850
+ }
1851
+ if (this.state.top && (o = this.tokenizer.paragraph(u))) {
1852
+ const a = n.at(-1);
1853
+ r && (a == null ? void 0 : a.type) === "paragraph" ? (a.raw += `
1854
+ ` + o.raw, a.text += `
1855
+ ` + o.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = a.text) : n.push(o), r = u.length !== e.length, e = e.substring(o.raw.length);
1856
1856
  continue;
1857
1857
  }
1858
- if (a = this.tokenizer.text(e)) {
1859
- e = e.substring(a.raw.length);
1860
- const o = n.at(-1);
1861
- (o == null ? void 0 : o.type) === "text" ? (o.raw += `
1862
- ` + a.raw, o.text += `
1863
- ` + a.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = o.text) : n.push(a);
1858
+ if (o = this.tokenizer.text(e)) {
1859
+ e = e.substring(o.raw.length);
1860
+ const a = n.at(-1);
1861
+ (a == null ? void 0 : a.type) === "text" ? (a.raw += `
1862
+ ` + o.raw, a.text += `
1863
+ ` + o.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = a.text) : n.push(o);
1864
1864
  continue;
1865
1865
  }
1866
1866
  if (e) {
1867
- const o = "Infinite loop on byte: " + e.charCodeAt(0);
1867
+ const a = "Infinite loop on byte: " + e.charCodeAt(0);
1868
1868
  if (this.options.silent) {
1869
- console.error(o);
1869
+ console.error(a);
1870
1870
  break;
1871
1871
  } else
1872
- throw new Error(o);
1872
+ throw new Error(a);
1873
1873
  }
1874
1874
  }
1875
1875
  return this.state.top = !0, n;
@@ -1881,7 +1881,7 @@ ${l}` : l;
1881
1881
  * Lexing/Compiling
1882
1882
  */
1883
1883
  inlineTokens(e, n = []) {
1884
- var a, u, o;
1884
+ var o, u, a;
1885
1885
  let r = e, i = null;
1886
1886
  if (this.tokens.links) {
1887
1887
  const l = Object.keys(this.tokens.links);
@@ -1897,7 +1897,7 @@ ${l}` : l;
1897
1897
  for (; e; ) {
1898
1898
  s || (c = ""), s = !1;
1899
1899
  let l;
1900
- if ((u = (a = this.options.extensions) == null ? void 0 : a.inline) != null && u.some((p) => (l = p.call({ lexer: this }, e, n)) ? (e = e.substring(l.raw.length), n.push(l), !0) : !1))
1900
+ if ((u = (o = this.options.extensions) == null ? void 0 : o.inline) != null && u.some((p) => (l = p.call({ lexer: this }, e, n)) ? (e = e.substring(l.raw.length), n.push(l), !0) : !1))
1901
1901
  continue;
1902
1902
  if (l = this.tokenizer.escape(e)) {
1903
1903
  e = e.substring(l.raw.length), n.push(l);
@@ -1942,7 +1942,7 @@ ${l}` : l;
1942
1942
  continue;
1943
1943
  }
1944
1944
  let g = e;
1945
- if ((o = this.options.extensions) != null && o.startInline) {
1945
+ if ((a = this.options.extensions) != null && a.startInline) {
1946
1946
  let p = 1 / 0;
1947
1947
  const k = e.slice(1);
1948
1948
  let y;
@@ -2005,8 +2005,8 @@ ${this.parser.parse(t)}</blockquote>
2005
2005
  const e = t.ordered, n = t.start;
2006
2006
  let r = "";
2007
2007
  for (let c = 0; c < t.items.length; c++) {
2008
- const a = t.items[c];
2009
- r += this.listitem(a);
2008
+ const o = t.items[c];
2009
+ r += this.listitem(o);
2010
2010
  }
2011
2011
  const i = e ? "ol" : "ul", s = e && n !== 1 ? ' start="' + n + '"' : "";
2012
2012
  return "<" + i + s + `>
@@ -2083,7 +2083,7 @@ ${t}</tr>
2083
2083
  return `<del>${this.parser.parseInline(t)}</del>`;
2084
2084
  }
2085
2085
  link({ href: t, title: e, tokens: n }) {
2086
- const r = this.parser.parseInline(n), i = ft(t);
2086
+ const r = this.parser.parseInline(n), i = dt(t);
2087
2087
  if (i === null)
2088
2088
  return r;
2089
2089
  t = i;
@@ -2092,7 +2092,7 @@ ${t}</tr>
2092
2092
  }
2093
2093
  image({ href: t, title: e, text: n, tokens: r }) {
2094
2094
  r && (n = this.parser.parseInline(r, this.parser.textRenderer));
2095
- const i = ft(t);
2095
+ const i = dt(t);
2096
2096
  if (i === null)
2097
2097
  return G(n);
2098
2098
  t = i;
@@ -2102,7 +2102,7 @@ ${t}</tr>
2102
2102
  text(t) {
2103
2103
  return "tokens" in t && t.tokens ? this.parser.parseInline(t.tokens) : "escaped" in t && t.escaped ? t.text : G(t.text);
2104
2104
  }
2105
- }, Xe = class {
2105
+ }, et = class {
2106
2106
  // no need for block level renderers
2107
2107
  strong({ text: t }) {
2108
2108
  return t;
@@ -2131,12 +2131,12 @@ ${t}</tr>
2131
2131
  br() {
2132
2132
  return "";
2133
2133
  }
2134
- }, Q = class Be {
2134
+ }, K = class Be {
2135
2135
  constructor(e) {
2136
2136
  S(this, "options");
2137
2137
  S(this, "renderer");
2138
2138
  S(this, "textRenderer");
2139
- this.options = e || ee, this.options.renderer = this.options.renderer || new me(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Xe();
2139
+ this.options = e || ee, this.options.renderer = this.options.renderer || new me(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new et();
2140
2140
  }
2141
2141
  /**
2142
2142
  * Static Parse Method
@@ -2157,15 +2157,15 @@ ${t}</tr>
2157
2157
  var i, s;
2158
2158
  let r = "";
2159
2159
  for (let c = 0; c < e.length; c++) {
2160
- const a = e[c];
2161
- if ((s = (i = this.options.extensions) == null ? void 0 : i.renderers) != null && s[a.type]) {
2162
- const o = a, l = this.options.extensions.renderers[o.type].call({ parser: this }, o);
2163
- if (l !== !1 || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "paragraph", "text"].includes(o.type)) {
2160
+ const o = e[c];
2161
+ if ((s = (i = this.options.extensions) == null ? void 0 : i.renderers) != null && s[o.type]) {
2162
+ const a = o, l = this.options.extensions.renderers[a.type].call({ parser: this }, a);
2163
+ if (l !== !1 || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "paragraph", "text"].includes(a.type)) {
2164
2164
  r += l || "";
2165
2165
  continue;
2166
2166
  }
2167
2167
  }
2168
- const u = a;
2168
+ const u = o;
2169
2169
  switch (u.type) {
2170
2170
  case "space": {
2171
2171
  r += this.renderer.space(u);
@@ -2204,10 +2204,10 @@ ${t}</tr>
2204
2204
  continue;
2205
2205
  }
2206
2206
  case "text": {
2207
- let o = u, l = this.renderer.text(o);
2207
+ let a = u, l = this.renderer.text(a);
2208
2208
  for (; c + 1 < e.length && e[c + 1].type === "text"; )
2209
- o = e[++c], l += `
2210
- ` + this.renderer.text(o);
2209
+ a = e[++c], l += `
2210
+ ` + this.renderer.text(a);
2211
2211
  n ? r += this.renderer.paragraph({
2212
2212
  type: "paragraph",
2213
2213
  raw: l,
@@ -2217,10 +2217,10 @@ ${t}</tr>
2217
2217
  continue;
2218
2218
  }
2219
2219
  default: {
2220
- const o = 'Token with "' + u.type + '" type was not found.';
2220
+ const a = 'Token with "' + u.type + '" type was not found.';
2221
2221
  if (this.options.silent)
2222
- return console.error(o), "";
2223
- throw new Error(o);
2222
+ return console.error(a), "";
2223
+ throw new Error(a);
2224
2224
  }
2225
2225
  }
2226
2226
  }
@@ -2233,15 +2233,15 @@ ${t}</tr>
2233
2233
  var i, s;
2234
2234
  let r = "";
2235
2235
  for (let c = 0; c < e.length; c++) {
2236
- const a = e[c];
2237
- if ((s = (i = this.options.extensions) == null ? void 0 : i.renderers) != null && s[a.type]) {
2238
- const o = this.options.extensions.renderers[a.type].call({ parser: this }, a);
2239
- if (o !== !1 || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(a.type)) {
2240
- r += o || "";
2236
+ const o = e[c];
2237
+ if ((s = (i = this.options.extensions) == null ? void 0 : i.renderers) != null && s[o.type]) {
2238
+ const a = this.options.extensions.renderers[o.type].call({ parser: this }, o);
2239
+ if (a !== !1 || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(o.type)) {
2240
+ r += a || "";
2241
2241
  continue;
2242
2242
  }
2243
2243
  }
2244
- const u = a;
2244
+ const u = o;
2245
2245
  switch (u.type) {
2246
2246
  case "escape": {
2247
2247
  r += n.text(u);
@@ -2284,10 +2284,10 @@ ${t}</tr>
2284
2284
  break;
2285
2285
  }
2286
2286
  default: {
2287
- const o = 'Token with "' + u.type + '" type was not found.';
2287
+ const a = 'Token with "' + u.type + '" type was not found.';
2288
2288
  if (this.options.silent)
2289
- return console.error(o), "";
2290
- throw new Error(o);
2289
+ return console.error(a), "";
2290
+ throw new Error(a);
2291
2291
  }
2292
2292
  }
2293
2293
  }
@@ -2327,21 +2327,21 @@ ${t}</tr>
2327
2327
  * Provide function to parse tokens
2328
2328
  */
2329
2329
  provideParser() {
2330
- return this.block ? Q.parse : Q.parseInline;
2330
+ return this.block ? K.parse : K.parseInline;
2331
2331
  }
2332
2332
  }, S(Ae, "passThroughHooks", /* @__PURE__ */ new Set([
2333
2333
  "preprocess",
2334
2334
  "postprocess",
2335
2335
  "processAllTokens"
2336
- ])), Ae), Dn = class {
2336
+ ])), Ae), qn = class {
2337
2337
  constructor(...t) {
2338
- S(this, "defaults", Ye());
2338
+ S(this, "defaults", Ze());
2339
2339
  S(this, "options", this.setOptions);
2340
2340
  S(this, "parse", this.parseMarkdown(!0));
2341
2341
  S(this, "parseInline", this.parseMarkdown(!1));
2342
- S(this, "Parser", Q);
2342
+ S(this, "Parser", K);
2343
2343
  S(this, "Renderer", me);
2344
- S(this, "TextRenderer", Xe);
2344
+ S(this, "TextRenderer", et);
2345
2345
  S(this, "Lexer", V);
2346
2346
  S(this, "Tokenizer", ge);
2347
2347
  S(this, "Hooks", fe);
@@ -2357,10 +2357,10 @@ ${t}</tr>
2357
2357
  switch (n = n.concat(e.call(this, s)), s.type) {
2358
2358
  case "table": {
2359
2359
  const c = s;
2360
- for (const a of c.header)
2361
- n = n.concat(this.walkTokens(a.tokens, e));
2362
- for (const a of c.rows)
2363
- for (const u of a)
2360
+ for (const o of c.header)
2361
+ n = n.concat(this.walkTokens(o.tokens, e));
2362
+ for (const o of c.rows)
2363
+ for (const u of o)
2364
2364
  n = n.concat(this.walkTokens(u.tokens, e));
2365
2365
  break;
2366
2366
  }
@@ -2371,8 +2371,8 @@ ${t}</tr>
2371
2371
  }
2372
2372
  default: {
2373
2373
  const c = s;
2374
- (i = (r = this.defaults.extensions) == null ? void 0 : r.childTokens) != null && i[c.type] ? this.defaults.extensions.childTokens[c.type].forEach((a) => {
2375
- const u = c[a].flat(1 / 0);
2374
+ (i = (r = this.defaults.extensions) == null ? void 0 : r.childTokens) != null && i[c.type] ? this.defaults.extensions.childTokens[c.type].forEach((o) => {
2375
+ const u = c[o].flat(1 / 0);
2376
2376
  n = n.concat(this.walkTokens(u, e));
2377
2377
  }) : c.tokens && (n = n.concat(this.walkTokens(c.tokens, e)));
2378
2378
  }
@@ -2389,8 +2389,8 @@ ${t}</tr>
2389
2389
  if ("renderer" in i) {
2390
2390
  const s = e.renderers[i.name];
2391
2391
  s ? e.renderers[i.name] = function(...c) {
2392
- let a = i.renderer.apply(this, c);
2393
- return a === !1 && (a = s.apply(this, c)), a;
2392
+ let o = i.renderer.apply(this, c);
2393
+ return o === !1 && (o = s.apply(this, c)), o;
2394
2394
  } : e.renderers[i.name] = i.renderer;
2395
2395
  }
2396
2396
  if ("tokenizer" in i) {
@@ -2407,10 +2407,10 @@ ${t}</tr>
2407
2407
  throw new Error(`renderer '${s}' does not exist`);
2408
2408
  if (["options", "parser"].includes(s))
2409
2409
  continue;
2410
- const c = s, a = n.renderer[c], u = i[c];
2411
- i[c] = (...o) => {
2412
- let l = a.apply(i, o);
2413
- return l === !1 && (l = u.apply(i, o)), l || "";
2410
+ const c = s, o = n.renderer[c], u = i[c];
2411
+ i[c] = (...a) => {
2412
+ let l = o.apply(i, a);
2413
+ return l === !1 && (l = u.apply(i, a)), l || "";
2414
2414
  };
2415
2415
  }
2416
2416
  r.renderer = i;
@@ -2422,10 +2422,10 @@ ${t}</tr>
2422
2422
  throw new Error(`tokenizer '${s}' does not exist`);
2423
2423
  if (["options", "rules", "lexer"].includes(s))
2424
2424
  continue;
2425
- const c = s, a = n.tokenizer[c], u = i[c];
2426
- i[c] = (...o) => {
2427
- let l = a.apply(i, o);
2428
- return l === !1 && (l = u.apply(i, o)), l;
2425
+ const c = s, o = n.tokenizer[c], u = i[c];
2426
+ i[c] = (...a) => {
2427
+ let l = o.apply(i, a);
2428
+ return l === !1 && (l = u.apply(i, a)), l;
2429
2429
  };
2430
2430
  }
2431
2431
  r.tokenizer = i;
@@ -2437,15 +2437,15 @@ ${t}</tr>
2437
2437
  throw new Error(`hook '${s}' does not exist`);
2438
2438
  if (["options", "block"].includes(s))
2439
2439
  continue;
2440
- const c = s, a = n.hooks[c], u = i[c];
2441
- fe.passThroughHooks.has(s) ? i[c] = (o) => {
2440
+ const c = s, o = n.hooks[c], u = i[c];
2441
+ fe.passThroughHooks.has(s) ? i[c] = (a) => {
2442
2442
  if (this.defaults.async)
2443
- return Promise.resolve(a.call(i, o)).then((g) => u.call(i, g));
2444
- const l = a.call(i, o);
2443
+ return Promise.resolve(o.call(i, a)).then((g) => u.call(i, g));
2444
+ const l = o.call(i, a);
2445
2445
  return u.call(i, l);
2446
- } : i[c] = (...o) => {
2447
- let l = a.apply(i, o);
2448
- return l === !1 && (l = u.apply(i, o)), l;
2446
+ } : i[c] = (...a) => {
2447
+ let l = o.apply(i, a);
2448
+ return l === !1 && (l = u.apply(i, a)), l;
2449
2449
  };
2450
2450
  }
2451
2451
  r.hooks = i;
@@ -2453,8 +2453,8 @@ ${t}</tr>
2453
2453
  if (n.walkTokens) {
2454
2454
  const i = this.defaults.walkTokens, s = n.walkTokens;
2455
2455
  r.walkTokens = function(c) {
2456
- let a = [];
2457
- return a.push(s.call(this, c)), i && (a = a.concat(i.call(this, c))), a;
2456
+ let o = [];
2457
+ return o.push(s.call(this, c)), i && (o = o.concat(i.call(this, c))), o;
2458
2458
  };
2459
2459
  }
2460
2460
  this.defaults = { ...this.defaults, ...r };
@@ -2467,7 +2467,7 @@ ${t}</tr>
2467
2467
  return V.lex(t, e ?? this.defaults);
2468
2468
  }
2469
2469
  parser(t, e) {
2470
- return Q.parse(t, e ?? this.defaults);
2470
+ return K.parse(t, e ?? this.defaults);
2471
2471
  }
2472
2472
  parseMarkdown(t) {
2473
2473
  return (n, r) => {
@@ -2479,17 +2479,17 @@ ${t}</tr>
2479
2479
  if (typeof n != "string")
2480
2480
  return c(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
2481
2481
  s.hooks && (s.hooks.options = s, s.hooks.block = t);
2482
- const a = s.hooks ? s.hooks.provideLexer() : t ? V.lex : V.lexInline, u = s.hooks ? s.hooks.provideParser() : t ? Q.parse : Q.parseInline;
2482
+ const o = s.hooks ? s.hooks.provideLexer() : t ? V.lex : V.lexInline, u = s.hooks ? s.hooks.provideParser() : t ? K.parse : K.parseInline;
2483
2483
  if (s.async)
2484
- return Promise.resolve(s.hooks ? s.hooks.preprocess(n) : n).then((o) => a(o, s)).then((o) => s.hooks ? s.hooks.processAllTokens(o) : o).then((o) => s.walkTokens ? Promise.all(this.walkTokens(o, s.walkTokens)).then(() => o) : o).then((o) => u(o, s)).then((o) => s.hooks ? s.hooks.postprocess(o) : o).catch(c);
2484
+ return Promise.resolve(s.hooks ? s.hooks.preprocess(n) : n).then((a) => o(a, s)).then((a) => s.hooks ? s.hooks.processAllTokens(a) : a).then((a) => s.walkTokens ? Promise.all(this.walkTokens(a, s.walkTokens)).then(() => a) : a).then((a) => u(a, s)).then((a) => s.hooks ? s.hooks.postprocess(a) : a).catch(c);
2485
2485
  try {
2486
2486
  s.hooks && (n = s.hooks.preprocess(n));
2487
- let o = a(n, s);
2488
- s.hooks && (o = s.hooks.processAllTokens(o)), s.walkTokens && this.walkTokens(o, s.walkTokens);
2489
- let l = u(o, s);
2487
+ let a = o(n, s);
2488
+ s.hooks && (a = s.hooks.processAllTokens(a)), s.walkTokens && this.walkTokens(a, s.walkTokens);
2489
+ let l = u(a, s);
2490
2490
  return s.hooks && (l = s.hooks.postprocess(l)), l;
2491
- } catch (o) {
2492
- return c(o);
2491
+ } catch (a) {
2492
+ return c(a);
2493
2493
  }
2494
2494
  };
2495
2495
  }
@@ -2505,26 +2505,26 @@ Please report this to https://github.com/markedjs/marked.`, t) {
2505
2505
  throw n;
2506
2506
  };
2507
2507
  }
2508
- }, X = new Dn();
2508
+ }, X = new qn();
2509
2509
  function z(t, e) {
2510
2510
  return X.parse(t, e);
2511
2511
  }
2512
2512
  z.options = z.setOptions = function(t) {
2513
- return X.setOptions(t), z.defaults = X.defaults, xt(z.defaults), z;
2513
+ return X.setOptions(t), z.defaults = X.defaults, vt(z.defaults), z;
2514
2514
  };
2515
- z.getDefaults = Ye;
2515
+ z.getDefaults = Ze;
2516
2516
  z.defaults = ee;
2517
2517
  z.use = function(...t) {
2518
- return X.use(...t), z.defaults = X.defaults, xt(z.defaults), z;
2518
+ return X.use(...t), z.defaults = X.defaults, vt(z.defaults), z;
2519
2519
  };
2520
2520
  z.walkTokens = function(t, e) {
2521
2521
  return X.walkTokens(t, e);
2522
2522
  };
2523
2523
  z.parseInline = X.parseInline;
2524
- z.Parser = Q;
2525
- z.parser = Q.parse;
2524
+ z.Parser = K;
2525
+ z.parser = K.parse;
2526
2526
  z.Renderer = me;
2527
- z.TextRenderer = Xe;
2527
+ z.TextRenderer = et;
2528
2528
  z.Lexer = V;
2529
2529
  z.lexer = V.lex;
2530
2530
  z.Tokenizer = ge;
@@ -2535,9 +2535,9 @@ z.setOptions;
2535
2535
  z.use;
2536
2536
  z.walkTokens;
2537
2537
  z.parseInline;
2538
- Q.parse;
2538
+ K.parse;
2539
2539
  V.lex;
2540
- const mt = ({ data: t, style: e }) => /* @__PURE__ */ b.createElement(
2540
+ const bt = ({ data: t, style: e }) => /* @__PURE__ */ b.createElement(
2541
2541
  "div",
2542
2542
  {
2543
2543
  style: {
@@ -2553,7 +2553,7 @@ const mt = ({ data: t, style: e }) => /* @__PURE__ */ b.createElement(
2553
2553
  }
2554
2554
  }
2555
2555
  ) : /* @__PURE__ */ b.createElement("p", { style: { margin: 0, whiteSpace: "pre-wrap" } }, t ? t.question : "")
2556
- ), Mn = ({
2556
+ ), Bn = ({
2557
2557
  items: t,
2558
2558
  onApply: e,
2559
2559
  getEditorContent: n
@@ -2562,9 +2562,9 @@ const mt = ({ data: t, style: e }) => /* @__PURE__ */ b.createElement(
2562
2562
  const s = /제목:[^\n]*/g;
2563
2563
  ((s.exec(i) || [])[0] || "").replace("제목: ", "").replace(`
2564
2564
  `, "");
2565
- const a = i.replace(s, "").replace("본문: ", "");
2566
- let u = await z.parse(a);
2567
- const o = /<!--HanbiroSignatureStart-->([\s\S]*?)<!--HanbiroSignatureEnd-->/g, l = n ? n() : "", g = o.exec(l) || [];
2565
+ const o = i.replace(s, "").replace("본문: ", "");
2566
+ let u = await z.parse(o);
2567
+ const a = /<!--HanbiroSignatureStart-->([\s\S]*?)<!--HanbiroSignatureEnd-->/g, l = n ? n() : "", g = a.exec(l) || [];
2568
2568
  g[0] && (u = u + "<br>" + g[0]), e({ html: u });
2569
2569
  };
2570
2570
  return /* @__PURE__ */ b.createElement(
@@ -2605,7 +2605,7 @@ const mt = ({ data: t, style: e }) => /* @__PURE__ */ b.createElement(
2605
2605
  }
2606
2606
  },
2607
2607
  /* @__PURE__ */ b.createElement(
2608
- mt,
2608
+ bt,
2609
2609
  {
2610
2610
  data: { question: i.question },
2611
2611
  style: {
@@ -2650,7 +2650,7 @@ const mt = ({ data: t, style: e }) => /* @__PURE__ */ b.createElement(
2650
2650
  }
2651
2651
  },
2652
2652
  /* @__PURE__ */ b.createElement(
2653
- mt,
2653
+ bt,
2654
2654
  {
2655
2655
  data: { subject: i.subject, body: i.body },
2656
2656
  style: {
@@ -2687,7 +2687,7 @@ const mt = ({ data: t, style: e }) => /* @__PURE__ */ b.createElement(
2687
2687
  ))
2688
2688
  );
2689
2689
  };
2690
- class qn extends b.Component {
2690
+ class Wn extends b.Component {
2691
2691
  constructor(n) {
2692
2692
  super(n);
2693
2693
  S(this, "containerRef");
@@ -2724,7 +2724,7 @@ class qn extends b.Component {
2724
2724
  onClick: this.togglePopper,
2725
2725
  className: "icon-button small"
2726
2726
  },
2727
- /* @__PURE__ */ b.createElement(Ue, { size: 16 })
2727
+ /* @__PURE__ */ b.createElement(Ye, { size: 16 })
2728
2728
  ),
2729
2729
  c && /* @__PURE__ */ b.createElement(
2730
2730
  "div",
@@ -2766,7 +2766,7 @@ class qn extends b.Component {
2766
2766
  }
2767
2767
  },
2768
2768
  /* @__PURE__ */ b.createElement("option", { value: "", disabled: !0 }, "Select Language"),
2769
- De.map((a) => /* @__PURE__ */ b.createElement("option", { key: a.value, value: a.value }, a.label))
2769
+ De.map((o) => /* @__PURE__ */ b.createElement("option", { key: o.value, value: o.value }, o.label))
2770
2770
  )), /* @__PURE__ */ b.createElement("div", { style: { display: "flex", flexDirection: "column", gap: 4 } }, /* @__PURE__ */ b.createElement(
2771
2771
  "div",
2772
2772
  {
@@ -2793,8 +2793,8 @@ class qn extends b.Component {
2793
2793
  type: "button",
2794
2794
  title: "Copy from origin email",
2795
2795
  onClick: () => {
2796
- const a = s();
2797
- i(a);
2796
+ const o = s();
2797
+ i(o);
2798
2798
  },
2799
2799
  className: "icon-button"
2800
2800
  },
@@ -2804,7 +2804,7 @@ class qn extends b.Component {
2804
2804
  "textarea",
2805
2805
  {
2806
2806
  value: r,
2807
- onChange: (a) => i(a.target.value),
2807
+ onChange: (o) => i(o.target.value),
2808
2808
  style: {
2809
2809
  width: "100%",
2810
2810
  height: 120,
@@ -2822,7 +2822,7 @@ class qn extends b.Component {
2822
2822
  );
2823
2823
  }
2824
2824
  }
2825
- class Nn extends b.Component {
2825
+ class Zn extends b.Component {
2826
2826
  constructor(n) {
2827
2827
  super(n);
2828
2828
  // Equivalent to useImperativeHandle
@@ -2833,11 +2833,11 @@ class Nn extends b.Component {
2833
2833
  this.setState({ message: n.target.value });
2834
2834
  });
2835
2835
  S(this, "handleSubmit", async () => {
2836
- const { message: n, messages: r, lang: i, originalEmail: s, conversationId: c } = this.state, { signer: a, baseUrl: u = "" } = this.props;
2836
+ const { message: n, messages: r, lang: i, originalEmail: s, conversationId: c } = this.state, { signer: o, baseUrl: u = "" } = this.props;
2837
2837
  if (!n.trim()) return;
2838
- const o = jt();
2838
+ const a = Mt();
2839
2839
  let l = {
2840
- id: o,
2840
+ id: a,
2841
2841
  question: n,
2842
2842
  subject: "",
2843
2843
  body: "",
@@ -2856,10 +2856,10 @@ class Nn extends b.Component {
2856
2856
  original_email: s,
2857
2857
  debug_grpc: !0
2858
2858
  };
2859
- c && (p.conversation_id = c), await en(p, {
2859
+ c && (p.conversation_id = c), await nn(p, {
2860
2860
  setContent: (P) => {
2861
2861
  this.setState((D) => ({ messages: D.messages.map(
2862
- (O) => O.id === o ? {
2862
+ (O) => O.id === a ? {
2863
2863
  ...O,
2864
2864
  subject: "Some thing not used",
2865
2865
  body: P,
@@ -2870,13 +2870,13 @@ class Nn extends b.Component {
2870
2870
  },
2871
2871
  setIsLoading: (P) => {
2872
2872
  this.setState((D) => ({ messages: D.messages.map(
2873
- (O) => O.id === o ? { ...O, isLoading: P } : O
2873
+ (O) => O.id === a ? { ...O, isLoading: P } : O
2874
2874
  ) }));
2875
2875
  },
2876
2876
  setConversationId: (P) => {
2877
2877
  this.setState({ conversationId: P });
2878
2878
  },
2879
- signer: a,
2879
+ signer: o,
2880
2880
  baseUrl: u
2881
2881
  }), this.setState({ isSending: !1 });
2882
2882
  });
@@ -2899,7 +2899,7 @@ class Nn extends b.Component {
2899
2899
  };
2900
2900
  }
2901
2901
  render() {
2902
- const { onApply: n, getEditorContent: r } = this.props, { message: i, messages: s, isSending: c, lang: a, originalEmail: u } = this.state;
2902
+ const { onApply: n, getEditorContent: r } = this.props, { message: i, messages: s, isSending: c, lang: o, originalEmail: u } = this.state;
2903
2903
  return /* @__PURE__ */ b.createElement(
2904
2904
  "div",
2905
2905
  {
@@ -2914,7 +2914,7 @@ class Nn extends b.Component {
2914
2914
  }
2915
2915
  },
2916
2916
  s.length > 0 ? /* @__PURE__ */ b.createElement(
2917
- Mn,
2917
+ Bn,
2918
2918
  {
2919
2919
  items: s,
2920
2920
  onApply: n,
@@ -2933,7 +2933,7 @@ class Nn extends b.Component {
2933
2933
  color: "var(--grey-light)"
2934
2934
  }
2935
2935
  },
2936
- /* @__PURE__ */ b.createElement(Xt, { size: 46 }),
2936
+ /* @__PURE__ */ b.createElement(tn, { size: 46 }),
2937
2937
  /* @__PURE__ */ b.createElement(
2938
2938
  "h2",
2939
2939
  {
@@ -2997,9 +2997,9 @@ class Nn extends b.Component {
2997
2997
  }
2998
2998
  },
2999
2999
  /* @__PURE__ */ b.createElement(
3000
- qn,
3000
+ Wn,
3001
3001
  {
3002
- lang: a,
3002
+ lang: o,
3003
3003
  setLang: this.setLang,
3004
3004
  originalEmail: u,
3005
3005
  setOriginalEmail: this.setOriginalEmail,
@@ -3021,6 +3021,40 @@ class Nn extends b.Component {
3021
3021
  );
3022
3022
  }
3023
3023
  }
3024
+ const We = {
3025
+ baseUrl: "V3",
3026
+ signer: null
3027
+ }, Fn = ({ baseUrl: t, signer: e }) => {
3028
+ We.baseUrl = t, We.signer = e;
3029
+ }, Nn = () => {
3030
+ const t = window.location, { hostname: e } = t;
3031
+ return e === "localhost" || e === "127.0.0.1";
3032
+ }, Ot = Nn(), Un = () => {
3033
+ var n;
3034
+ let t = window.location;
3035
+ const { host: e } = t;
3036
+ if (Ot) {
3037
+ const r = (n = We.baseUrl) == null ? void 0 : n.split("/");
3038
+ return r ? "https://" + (r == null ? void 0 : r[2]) : "https://vndev.hanbiro.com";
3039
+ } else {
3040
+ const r = localStorage.getItem("host") || e, i = r == null ? void 0 : r.split("/");
3041
+ return "https://" + (i == null ? void 0 : i[0]);
3042
+ }
3043
+ }, Gn = () => {
3044
+ let t = window.location;
3045
+ if (Ot)
3046
+ return Un() || "https://vndev.hanbiro.com/ngw";
3047
+ {
3048
+ window.location !== window.parent.location && (t = window.parent.location);
3049
+ const { hostname: e, protocol: n } = t;
3050
+ return [n, "//", e, "/ngw"].join("");
3051
+ }
3052
+ };
3024
3053
  export {
3025
- Nn as C
3054
+ Zn as ChatAIDraft,
3055
+ We as SDKConfig,
3056
+ Un as getBaseUrl,
3057
+ Gn as getGroupwareUrl,
3058
+ Fn as initHanbiroReactSDK,
3059
+ Ot as isDevelopment
3026
3060
  };